@scotthamilton77/sidekick 0.0.8-alpha.4 → 0.0.8-alpha.6
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/dist/bin.js +7 -4
- package/dist/daemon.js +3 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -51667,6 +51667,7 @@ var require_setup_status_service = __commonJS({
|
|
|
51667
51667
|
}
|
|
51668
51668
|
};
|
|
51669
51669
|
const child = (0, node_child_process_1.spawn)("claude", ["plugin", "list", "--json"], {
|
|
51670
|
+
cwd: this.projectDir,
|
|
51670
51671
|
stdio: ["ignore", "pipe", "pipe"]
|
|
51671
51672
|
});
|
|
51672
51673
|
let stdout = "";
|
|
@@ -52092,7 +52093,8 @@ var require_setup_status_service = __commonJS({
|
|
|
52092
52093
|
}
|
|
52093
52094
|
};
|
|
52094
52095
|
const child = (0, node_child_process_1.spawn)("claude", ["-p", prompt], {
|
|
52095
|
-
|
|
52096
|
+
cwd: this.projectDir,
|
|
52097
|
+
env: { ...process.env, SIDEKICK_LIVENESS_CHECK: safeWord },
|
|
52096
52098
|
stdio: ["ignore", "pipe", "pipe"]
|
|
52097
52099
|
});
|
|
52098
52100
|
let stdout = "";
|
|
@@ -68333,7 +68335,8 @@ var require_hook_command = __commonJS({
|
|
|
68333
68335
|
await maybeAutoConfigureProject(projectRoot, logger);
|
|
68334
68336
|
}
|
|
68335
68337
|
await ensureDaemonForHook(projectRoot, logger);
|
|
68336
|
-
const
|
|
68338
|
+
const isLivenessCheck = !!process.env.SIDEKICK_LIVENESS_CHECK;
|
|
68339
|
+
const degradedResponse = isLivenessCheck ? null : await checkSetupState(projectRoot, hookName, logger);
|
|
68337
68340
|
if (degradedResponse !== null) {
|
|
68338
68341
|
const claudeResponse2 = translateToClaudeCodeFormat(hookName, degradedResponse);
|
|
68339
68342
|
const outputStr2 = JSON.stringify(claudeResponse2);
|
|
@@ -68358,7 +68361,7 @@ var require_hook_command = __commonJS({
|
|
|
68358
68361
|
}, logger, captureStream);
|
|
68359
68362
|
const internalResponse = parseInternalResponse(internalOutput.trim(), hookName, logger);
|
|
68360
68363
|
if (hookName === "SessionStart") {
|
|
68361
|
-
const safeWord = process.env.
|
|
68364
|
+
const safeWord = process.env.SIDEKICK_LIVENESS_CHECK ?? "nope";
|
|
68362
68365
|
const safeWordContext = loadSafeWordContext(safeWord, projectRoot, logger);
|
|
68363
68366
|
if (safeWordContext) {
|
|
68364
68367
|
internalResponse.additionalContext = internalResponse.additionalContext ? `${internalResponse.additionalContext}
|
|
@@ -73852,7 +73855,7 @@ var require_cli = __commonJS({
|
|
|
73852
73855
|
var promises_12 = require("node:fs/promises");
|
|
73853
73856
|
var node_stream_1 = require("node:stream");
|
|
73854
73857
|
var yargs_parser_1 = __importDefault2(require_build());
|
|
73855
|
-
var VERSION = true ? "0.0.8-alpha.
|
|
73858
|
+
var VERSION = true ? "0.0.8-alpha.6" : "dev";
|
|
73856
73859
|
function isInSandbox() {
|
|
73857
73860
|
return process.env.SANDBOX_RUNTIME === "1";
|
|
73858
73861
|
}
|
package/dist/daemon.js
CHANGED
|
@@ -50691,6 +50691,7 @@ var require_setup_status_service = __commonJS({
|
|
|
50691
50691
|
}
|
|
50692
50692
|
};
|
|
50693
50693
|
const child = (0, node_child_process_1.spawn)("claude", ["plugin", "list", "--json"], {
|
|
50694
|
+
cwd: this.projectDir,
|
|
50694
50695
|
stdio: ["ignore", "pipe", "pipe"]
|
|
50695
50696
|
});
|
|
50696
50697
|
let stdout = "";
|
|
@@ -51116,7 +51117,8 @@ var require_setup_status_service = __commonJS({
|
|
|
51116
51117
|
}
|
|
51117
51118
|
};
|
|
51118
51119
|
const child = (0, node_child_process_1.spawn)("claude", ["-p", prompt], {
|
|
51119
|
-
|
|
51120
|
+
cwd: this.projectDir,
|
|
51121
|
+
env: { ...process.env, SIDEKICK_LIVENESS_CHECK: safeWord },
|
|
51120
51122
|
stdio: ["ignore", "pipe", "pipe"]
|
|
51121
51123
|
});
|
|
51122
51124
|
let stdout = "";
|
package/package.json
CHANGED