@clawos-dev/clawd 0.2.338 → 0.2.339

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/cli.cjs CHANGED
@@ -44324,6 +44324,12 @@ var NO_ASK_USER_QUESTION_HINT = `## \u9700\u8981\u8001\u677F\u62CD\u677F\u65F6\u
44324
44324
 
44325
44325
  \u8981\u8001\u677F\u9009\u62E9 / \u786E\u8BA4 / \u62CD\u677F\u65F6\uFF0C\u76F4\u63A5\u6B63\u6587\u5199\u95EE\u9898 + \u5217 A/B/C \u9009\u9879\u3002\u4E0D\u8981\u8C03 AskUserQuestion tool\u3002`;
44326
44326
 
44327
+ // src/persona/file-link-prompt.ts
44328
+ var FILE_LINK_HINT = `## \u8BA9\u7528\u6237\u53BB\u770B\u6587\u4EF6\u65F6\u7ED9\u53EF\u70B9\u7684\u94FE\u63A5
44329
+
44330
+ \u8BF7\u7528\u6237\u67E5\u770B\u67D0\u4E2A\u6587\u4EF6\u65F6\uFF0C\u7528 markdown \u94FE\u63A5\u7ED9**\u7EDD\u5BF9\u8DEF\u5F84**\uFF1A\`[\u8BF4\u660E.md](/Users/xxx/project/\u8BF4\u660E.md)\`\u3002
44331
+ \u53EA\u7ED9\u6587\u4EF6\u540D\u6216\u76F8\u5BF9\u8DEF\u5F84\u7528\u6237\u70B9\u4E0D\u5F00\u4E5F\u627E\u4E0D\u5230\u3002`;
44332
+
44327
44333
  // src/dispatch/system-prompt.ts
44328
44334
  var DISPATCH_SYSTEM_PROMPT_HINT = `## \u59D4\u6D3E\u7ED9\u53E6\u4E00\u4E2A persona\uFF08dispatch\uFF09
44329
44335
 
@@ -44531,6 +44537,9 @@ function buildSpawnContext(state, deps) {
44531
44537
  if (meta?.personaMode && (file.tool ?? "claude") === "claude") {
44532
44538
  ctx.extraSystemPrompt = (ctx.extraSystemPrompt ? ctx.extraSystemPrompt + "\n\n" : "") + NO_ASK_USER_QUESTION_HINT;
44533
44539
  }
44540
+ if (meta?.personaMode) {
44541
+ ctx.extraSystemPrompt = (ctx.extraSystemPrompt ? ctx.extraSystemPrompt + "\n\n" : "") + FILE_LINK_HINT;
44542
+ }
44534
44543
  if (meta?.extraSettings) {
44535
44544
  ctx.extraSettings = meta.extraSettings;
44536
44545
  }
@@ -44880,7 +44889,14 @@ function applyCommand(state, command, deps) {
44880
44889
  (k2) => patch[k2] !== void 0
44881
44890
  );
44882
44891
  const markerOnly = isMarkerOnlyPatch(patch);
44883
- next.file = markerOnly ? { ...next.file, ...patch } : { ...next.file, ...patch, updatedAt: nowIso(deps) };
44892
+ const base = { ...next.file };
44893
+ if (patch.model !== void 0) {
44894
+ delete base.resolvedModel;
44895
+ delete base.resolvedEffort;
44896
+ } else if (patch.effort !== void 0) {
44897
+ delete base.resolvedEffort;
44898
+ }
44899
+ next.file = markerOnly ? { ...base, ...patch } : { ...base, ...patch, updatedAt: nowIso(deps) };
44884
44900
  effects.push({ kind: "persist-file", file: next.file });
44885
44901
  effects.push(sessionInfoFrame(next.file));
44886
44902
  if (runtimePatch && next.procAlive) {
@@ -60134,7 +60150,7 @@ function computeMethodAccess(args) {
60134
60150
  }
60135
60151
 
60136
60152
  // src/version.ts
60137
- var version = "0.2.338".length > 0 ? "0.2.338" : "dev";
60153
+ var version = "0.2.339".length > 0 ? "0.2.339" : "dev";
60138
60154
 
60139
60155
  // src/cli-probe/probe.ts
60140
60156
  var fs59 = __toESM(require("fs"), 1);