open-coleslaw 0.2.1 → 0.2.2

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/index.js CHANGED
@@ -1215,10 +1215,12 @@ async function invokeReal(options) {
1215
1215
  "--print",
1216
1216
  "--output-format",
1217
1217
  "json",
1218
- "--no-session-persistence"
1218
+ "--no-session-persistence",
1219
+ "--bare"
1220
+ // CRITICAL: skip hooks, plugins, MCP — prevents infinite recursion
1219
1221
  ];
1220
1222
  if (systemPrompt) {
1221
- args.push("--append-system-prompt", systemPrompt);
1223
+ args.push("--system-prompt", systemPrompt);
1222
1224
  }
1223
1225
  if (allowedTools.length > 0) {
1224
1226
  args.push("--allowedTools", allowedTools.join(","));
@@ -6459,11 +6461,14 @@ function startDashboard(options) {
6459
6461
  // src/index.ts
6460
6462
  async function main() {
6461
6463
  ensureDataDirs();
6462
- const sessionId = randomUUID();
6463
- const projectPath = process.cwd();
6464
- const projectName = projectPath.split("/").pop() ?? "unknown";
6465
- startDashboard({ sessionId, projectPath, projectName }).catch(() => {
6466
- });
6464
+ const isBareSubprocess = process.env["CLAUDE_CODE_SIMPLE"] === "1";
6465
+ if (!isBareSubprocess) {
6466
+ const sessionId = randomUUID();
6467
+ const projectPath = process.cwd();
6468
+ const projectName = projectPath.split("/").pop() ?? "unknown";
6469
+ startDashboard({ sessionId, projectPath, projectName }).catch(() => {
6470
+ });
6471
+ }
6467
6472
  const server = createServer();
6468
6473
  const transport = new StdioServerTransport();
6469
6474
  await server.connect(transport);