@clawos-dev/clawd 0.2.137 → 0.2.138

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
@@ -36742,9 +36742,28 @@ function buildTuiSpawnArgs(ctx, isResume = false) {
36742
36742
  args.push(isResume ? "--resume" : "--session-id", ctx.toolSessionId);
36743
36743
  }
36744
36744
  if (ctx.model) args.push("--model", ctx.model);
36745
- args.push("--permission-mode", ctx.permissionMode ?? "bypassPermissions");
36746
- if (ctx.effort) args.push("--effort", ctx.effort);
36745
+ switch (ctx.personaMode) {
36746
+ case "guest":
36747
+ args.push("--setting-sources", "project,local");
36748
+ break;
36749
+ case "owner":
36750
+ args.push("--setting-sources", "user,project,local");
36751
+ args.push("--permission-mode", "bypassPermissions");
36752
+ break;
36753
+ case void 0:
36754
+ args.push("--permission-mode", ctx.permissionMode || "bypassPermissions");
36755
+ break;
36756
+ default: {
36757
+ const _exhaustive = ctx.personaMode;
36758
+ throw new Error(`unexpected personaMode: ${String(_exhaustive)}`);
36759
+ }
36760
+ }
36747
36761
  if (ctx.extraSettings) args.push("--settings", ctx.extraSettings);
36762
+ if (ctx.extraSystemPrompt) args.push("--append-system-prompt", ctx.extraSystemPrompt);
36763
+ if (ctx.addDirs) {
36764
+ for (const dir of ctx.addDirs) args.push("--add-dir", dir);
36765
+ }
36766
+ if (ctx.effort) args.push("--effort", ctx.effort);
36748
36767
  return args;
36749
36768
  }
36750
36769
  function jsonlExistsForCtx(ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawos-dev/clawd",
3
- "version": "0.2.137",
3
+ "version": "0.2.138",
4
4
  "description": "Standalone clawd daemon — Claude Code (and future Codex) session server over WebSocket",
5
5
  "type": "module",
6
6
  "license": "MIT",