cc-dev-template 0.1.106 → 0.1.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -242,6 +242,12 @@ function main() {
|
|
|
242
242
|
try { state = JSON.parse(readFileSync(sessionFile, 'utf-8')); }
|
|
243
243
|
catch { process.exit(0); }
|
|
244
244
|
|
|
245
|
+
// Completed sessions should not enforce policy — clean up stale file
|
|
246
|
+
if (state.phase === 'complete') {
|
|
247
|
+
try { unlinkSync(sessionFile); } catch {}
|
|
248
|
+
process.exit(0);
|
|
249
|
+
}
|
|
250
|
+
|
|
245
251
|
const caller = input.agent_type || 'orchestrator';
|
|
246
252
|
const tool = input.tool_name;
|
|
247
253
|
const toolInput = input.tool_input || {};
|