mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
fix: pass transcript_path via stdin JSON in integration tests (#209)
Integration tests were still passing CLAUDE_TRANSCRIPT_PATH as an env var, but evaluate-session.js now reads transcript_path from stdin JSON. Also improves strategic-compact skill with decision guide and survival table.
This commit is contained in:
parent
e6e28882db
commit
e4f4c2c36d
2 changed files with 51 additions and 17 deletions
|
|
@ -307,8 +307,7 @@ async function runTests() {
|
|||
try {
|
||||
const result = await runHookWithInput(
|
||||
path.join(scriptsDir, 'evaluate-session.js'),
|
||||
{},
|
||||
{ CLAUDE_TRANSCRIPT_PATH: transcriptPath }
|
||||
{ transcript_path: transcriptPath }
|
||||
);
|
||||
|
||||
// Should not crash, just skip processing
|
||||
|
|
@ -364,8 +363,7 @@ async function runTests() {
|
|||
try {
|
||||
const result = await runHookWithInput(
|
||||
path.join(scriptsDir, 'evaluate-session.js'),
|
||||
{},
|
||||
{ CLAUDE_TRANSCRIPT_PATH: transcriptPath }
|
||||
{ transcript_path: transcriptPath }
|
||||
);
|
||||
|
||||
assert.ok(result.stderr.includes('15 messages'), 'Should process session');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue