mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 13:43:26 +08: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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user