@clawos-dev/clawd 0.2.136-beta.286.f41a8a0 → 0.2.136-beta.288.d5a2c71

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.
Files changed (2) hide show
  1. package/dist/cli.cjs +21 -2
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -36775,9 +36775,28 @@ function buildTuiSpawnArgs(ctx, isResume = false) {
36775
36775
  args.push(isResume ? "--resume" : "--session-id", ctx.toolSessionId);
36776
36776
  }
36777
36777
  if (ctx.model) args.push("--model", ctx.model);
36778
- args.push("--permission-mode", ctx.permissionMode || "bypassPermissions");
36779
- if (ctx.effort) args.push("--effort", ctx.effort);
36778
+ switch (ctx.personaMode) {
36779
+ case "guest":
36780
+ args.push("--setting-sources", "project,local");
36781
+ break;
36782
+ case "owner":
36783
+ args.push("--setting-sources", "user,project,local");
36784
+ args.push("--permission-mode", "bypassPermissions");
36785
+ break;
36786
+ case void 0:
36787
+ args.push("--permission-mode", ctx.permissionMode || "bypassPermissions");
36788
+ break;
36789
+ default: {
36790
+ const _exhaustive = ctx.personaMode;
36791
+ throw new Error(`unexpected personaMode: ${String(_exhaustive)}`);
36792
+ }
36793
+ }
36780
36794
  if (ctx.extraSettings) args.push("--settings", ctx.extraSettings);
36795
+ if (ctx.extraSystemPrompt) args.push("--append-system-prompt", ctx.extraSystemPrompt);
36796
+ if (ctx.addDirs) {
36797
+ for (const dir of ctx.addDirs) args.push("--add-dir", dir);
36798
+ }
36799
+ if (ctx.effort) args.push("--effort", ctx.effort);
36781
36800
  return args;
36782
36801
  }
36783
36802
  function jsonlExistsForCtx(ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawos-dev/clawd",
3
- "version": "0.2.136-beta.286.f41a8a0",
3
+ "version": "0.2.136-beta.288.d5a2c71",
4
4
  "description": "Standalone clawd daemon — Claude Code (and future Codex) session server over WebSocket",
5
5
  "type": "module",
6
6
  "license": "MIT",