cc-dev-template 0.1.106 → 0.1.108
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/bin/install.js +7 -0
- package/package.json +1 -1
- package/src/scripts/ship-policy.js +6 -0
package/bin/install.js
CHANGED
|
@@ -453,6 +453,13 @@ if (fs.existsSync(settingsFile)) {
|
|
|
453
453
|
settingsModified = true;
|
|
454
454
|
}
|
|
455
455
|
|
|
456
|
+
// Disable background agents (all agent calls are blocking/foreground)
|
|
457
|
+
if (settings.env.CLAUDE_CODE_DISABLE_BACKGROUND_TASKS !== '1') {
|
|
458
|
+
settings.env.CLAUDE_CODE_DISABLE_BACKGROUND_TASKS = '1';
|
|
459
|
+
console.log('✓ Set CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1');
|
|
460
|
+
settingsModified = true;
|
|
461
|
+
}
|
|
462
|
+
|
|
456
463
|
// Enable MCP tool search (loads MCP tools on-demand instead of in context)
|
|
457
464
|
if (settings.env.ENABLE_TOOL_SEARCH !== 'true') {
|
|
458
465
|
settings.env.ENABLE_TOOL_SEARCH = 'true';
|
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 || {};
|