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:
Affaan Mustafa
2026-02-12 15:35:53 -08:00
parent e6e28882db
commit e4f4c2c36d
2 changed files with 51 additions and 17 deletions

View File

@@ -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');