nolo-cli 0.16.0-alpha.9 → 0.17.0

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 (127) hide show
  1. package/{_executeModel-ABTND4KZ.js → _executeModel-WPNX5DH4.js} +46 -41
  2. package/{action-F5JACQBG.js → action-LT7BRFLK.js} +10 -9
  3. package/{addContentAction-AQXEYRBE.js → addContentAction-PL3KKBDH.js} +9 -8
  4. package/{addDialogAgentAction-EJHHJZWW.js → addDialogAgentAction-FCMSKYAF.js} +8 -7
  5. package/{agentDeleteCommand-ARMAV46L.js → agentDeleteCommand-L3357EFL.js} +28 -26
  6. package/{agentEmailCommands-BKPZP4UP.js → agentEmailCommands-N65AVLEI.js} +58 -53
  7. package/{agentListCommands-5J7RRXUO.js → agentListCommands-CH27FTI2.js} +27 -25
  8. package/{agentMachineCommands-VXWJXXPF.js → agentMachineCommands-PPK5HJZB.js} +26 -24
  9. package/{agentPullCommand-6HWUT3SW.js → agentPullCommand-ZZGU5KOY.js} +4 -4
  10. package/{agentRecordCommands-INDJINPN.js → agentRecordCommands-HTVXD4TT.js} +53 -48
  11. package/{agentRunCommand-KBN6HBY4.js → agentRunCommand-MGLVJUA5.js} +59 -51
  12. package/{agentRunControl-6ADXVYMR.js → agentRunControl-P75VPTGS.js} +24 -1
  13. package/{agentRuntimeLocal-AH2RYWGP.js → agentRuntimeLocal-QUTBSY3I.js} +22 -20
  14. package/{agentSlice-R4PELU57.js → agentSlice-DOGRCMWK.js} +9 -8
  15. package/{appDeleteCommands-FRWMPQNS.js → appDeleteCommands-FEEVXUBG.js} +25 -23
  16. package/{appDeployCommands-IRF3T35Z.js → appDeployCommands-C4HCGC4B.js} +25 -23
  17. package/{appDeployStatusCommands-ADFERYPU.js → appDeployStatusCommands-IR5ZUZBQ.js} +25 -23
  18. package/{appGetCommands-FTEOXWMS.js → appGetCommands-6RJGZ66Z.js} +25 -23
  19. package/{appListCommands-WBY7UWYD.js → appListCommands-VMTF5YZF.js} +25 -23
  20. package/{authCommand-QU5BXRBH.js → authCommand-WJZPOLSS.js} +13 -12
  21. package/{authCommands-YXGOXNBZ.js → authCommands-XTBV7OFZ.js} +6 -5
  22. package/{chunk-XPC5C7BK.js → chunk-3ND52WIL.js} +2 -2
  23. package/{chunk-SOTZ6RDN.js → chunk-3Q7WHGCB.js} +1 -1
  24. package/{chunk-WVDAUR2S.js → chunk-45BY7RLP.js} +2 -8
  25. package/{chunk-KKY4B2Q2.js → chunk-4PWB7JRR.js} +4 -1
  26. package/{chunk-6N4KODMN.js → chunk-4T5F7YZQ.js} +1 -1
  27. package/chunk-7BUYEZ6U.js +671 -0
  28. package/{chunk-AS3ZQ3O2.js → chunk-7OBMZCRD.js} +1 -1
  29. package/{chunk-4N7QA72L.js → chunk-AAODAAUQ.js} +1 -1
  30. package/{chunk-QLUFR47U.js → chunk-AL2V7U3E.js} +1 -1
  31. package/{chunk-MTU75CZ2.js → chunk-B5TOXZAK.js} +1 -1
  32. package/{chunk-VK2HVKAO.js → chunk-BT6K76S7.js} +192 -249
  33. package/{chunk-G63IH3ZK.js → chunk-CEFXYF66.js} +1 -1
  34. package/{chunk-RLCXU7A5.js → chunk-D3HVJJIA.js} +1 -1
  35. package/{chunk-B4KT7RN2.js → chunk-DKZFOK24.js} +18 -89
  36. package/chunk-DL6EPNIK.js +50 -0
  37. package/{chunk-OELQ67TN.js → chunk-EGPCU42M.js} +57 -7
  38. package/{chunk-IWLUTMYX.js → chunk-ELT65PZW.js} +2 -2
  39. package/chunk-FKXFCYVO.js +221 -0
  40. package/{chunk-5Y5KEB7V.js → chunk-FPKLD4KB.js} +4 -4
  41. package/{chunk-FMYTM25W.js → chunk-FVIPEIVX.js} +10 -3
  42. package/{chunk-66X4VSRC.js → chunk-HQPG2PIV.js} +41 -1
  43. package/{chunk-ZPPTWRPT.js → chunk-HV2A3B4W.js} +1 -1
  44. package/{chunk-ASZ2C44S.js → chunk-IOOMJJ4Z.js} +1 -1
  45. package/{setDialogExtraReferencesAction-LR6MSIXO.js → chunk-JLA4FXYC.js} +2 -17
  46. package/{chunk-IFPY2BIE.js → chunk-JP7REMYP.js} +18 -0
  47. package/{chunk-R6ALN5F5.js → chunk-L2MLZQXU.js} +3 -3
  48. package/{chunk-HSLJ7QER.js → chunk-L6NVTGI7.js} +1 -1
  49. package/{chunk-BHVBFI6B.js → chunk-MD3V54DA.js} +6 -6
  50. package/{chunk-ZVDRAEZL.js → chunk-MUCU6ATG.js} +1 -1
  51. package/{chunk-KFHN5NGJ.js → chunk-MVQ4TBSD.js} +1 -1
  52. package/{chunk-7HECYFOI.js → chunk-NEKFSXOP.js} +316 -212
  53. package/{chunk-LSHKV3S7.js → chunk-NVB267BZ.js} +397 -324
  54. package/{chunk-SGRDLYRZ.js → chunk-NYUXSXLY.js} +33 -14
  55. package/{chunk-PEDT43JF.js → chunk-PZCBZO4J.js} +2 -2
  56. package/{chunk-LZYEWFPK.js → chunk-QCJITMYO.js} +16 -10
  57. package/{chunk-OOSFSFMA.js → chunk-R5V5G73M.js} +2 -0
  58. package/{chunk-QLWU2KOT.js → chunk-RG2U2MTJ.js} +1 -1
  59. package/{chunk-2XA3QGOH.js → chunk-RRGVDPH3.js} +3 -3
  60. package/{chunk-EABWT43X.js → chunk-RVOUXDFU.js} +5 -5
  61. package/{chunk-JTINRTBT.js → chunk-SKDNBYZK.js} +2 -2
  62. package/{chunk-BG7AP3Q7.js → chunk-SNZV4QCE.js} +34 -18
  63. package/{chunk-KMQPSTMJ.js → chunk-TRT4I4UD.js} +2 -2
  64. package/{chunk-MYMMNKYL.js → chunk-TSIYZBTH.js} +156 -6
  65. package/{chunk-J3VQSU5W.js → chunk-UB4RYYNQ.js} +1 -1
  66. package/{chunk-YJKXGHJ6.js → chunk-UGUW3FHG.js} +4 -4
  67. package/{chunk-XECKIDGJ.js → chunk-UZY4BEBR.js} +938 -91
  68. package/chunk-V5R4NZP2.js +78 -0
  69. package/{chunk-GWESD7AS.js → chunk-VDNQF5VI.js} +6 -6
  70. package/{chunk-ZVC2PCZN.js → chunk-VGMJ6PDJ.js} +5 -5
  71. package/{chunk-W4NVOSFF.js → chunk-WFHXMLHZ.js} +1 -1
  72. package/{chunk-H33743XH.js → chunk-WJRJDX2W.js} +1 -1
  73. package/chunk-X4Q4UZEY.js +26 -0
  74. package/{chunk-RPDGJO4D.js → chunk-XHG22OEX.js} +4 -4
  75. package/{chunk-DVRHHFEA.js → chunk-XMLRJUU5.js} +1 -1
  76. package/{chunk-3S2VOMIF.js → chunk-XRZJGPFI.js} +7 -7
  77. package/{chunk-AFNJWHKL.js → chunk-YLRTBX4Y.js} +26 -14
  78. package/{chunk-4EME3YTO.js → chunk-YXTRNO5W.js} +3 -3
  79. package/{chunk-VAT72PDP.js → chunk-ZJZCMKOR.js} +103 -174
  80. package/{chunk-F6JSVFHX.js → chunk-ZVOZH2HW.js} +1 -1
  81. package/chunk-ZZ2MH7LE.js +84 -0
  82. package/{cliExecutor-K3F7DMRO.js → cliExecutor-DNE7TCC4.js} +2 -2
  83. package/codingSkills-36KN5NQT.js +48 -0
  84. package/{createAgentAutomationAction-3KKRAYGE.js → createAgentAutomationAction-PMOLEPGJ.js} +18 -17
  85. package/{createDialogAction-S7NMQ4TZ.js → createDialogAction-DPRTYNAK.js} +20 -19
  86. package/{createPageAction-2EFBT4LQ.js → createPageAction-JGZK3WAM.js} +24 -23
  87. package/{dbSlice-7KQH6GOU.js → dbSlice-CGSRFJN3.js} +8 -7
  88. package/{deleteFile-WPWVZE4B.js → deleteFile-WDZ3VM7B.js} +3 -3
  89. package/{dialogCommands-J7XFIQRD.js → dialogCommands-XED6DKLV.js} +26 -24
  90. package/{dialogSlice-LNRRBUIC.js → dialogSlice-KO4NRNKC.js} +18 -17
  91. package/{docCreateCommands-MKO5WB34.js → docCreateCommands-P6DYWHH3.js} +24 -22
  92. package/{docDeleteCommands-RCBHRKUE.js → docDeleteCommands-KUWXAMSN.js} +25 -23
  93. package/{docReadCommands-66527P4G.js → docReadCommands-ECW55TKB.js} +24 -22
  94. package/{docStore-67MYPX7P.js → docStore-6KMERNUY.js} +19 -18
  95. package/{docUpdateCommands-UT5HSLOJ.js → docUpdateCommands-5J4BTJQN.js} +24 -22
  96. package/{fetchMessages-KTNM7QAR.js → fetchMessages-BMGVZVSE.js} +4 -3
  97. package/{getPricing-P4XRJRZB.js → getPricing-RYY6OBA4.js} +2 -2
  98. package/{handleSendMessageAction-VZ7226PB.js → handleSendMessageAction-R3ZHTVU4.js} +19 -18
  99. package/index.js +68 -68
  100. package/{localDialogRead-2VRI24F4.js → localDialogRead-HQZPVIE3.js} +1 -1
  101. package/{localRuntimeDb-LGDF6FQP.js → localRuntimeDb-THJZGAOJ.js} +1 -1
  102. package/{machineCommands-ATA7OSBJ.js → machineCommands-JF2YL34J.js} +59 -54
  103. package/{machineWsRunDispatch-ZDCZ645H.js → machineWsRunDispatch-ON4AEOJL.js} +51 -46
  104. package/package.json +1 -1
  105. package/queryRunOverlay-O4LOMMPO.js +161 -0
  106. package/{read-CN3TNXIP.js → read-3FMPZPER.js} +3 -3
  107. package/{readDocTool-WF3675ED.js → readDocTool-VSYHKK3V.js} +1 -1
  108. package/{readlineWorkspace-UUNABTLB.js → readlineWorkspace-SUCINTL7.js} +302 -134
  109. package/{removeDialogAgentAction-YDHBFEGI.js → removeDialogAgentAction-OAGA2G3U.js} +10 -9
  110. package/{runAgentClientLoop-2A577WBM.js → runAgentClientLoop-OBD2AVEL.js} +41 -36
  111. package/runOverlayPresentation-ZO4VCWEU.js +11 -0
  112. package/{runtimeDoctorCommands-THIHX2SY.js → runtimeDoctorCommands-E2OUORHK.js} +6 -6
  113. package/setDialogExtraReferencesAction-JZEXA5SL.js +27 -0
  114. package/{setPrimaryDialogAgentAction-IIVDCY5C.js → setPrimaryDialogAgentAction-4ZUQQKDG.js} +26 -17
  115. package/{settingSlice-O23YDK2O.js → settingSlice-7MNKHZ6R.js} +9 -8
  116. package/{skillDiscovery-6M2BZUFN.js → skillDiscovery-KJWT7JBU.js} +3 -3
  117. package/{spaceCommands-UNZVR2OS.js → spaceCommands-32NTNLHS.js} +27 -25
  118. package/{spaceSlice-MC7FYPMZ.js → spaceSlice-P7VOXLY6.js} +18 -17
  119. package/{streamAgentChatTurn-IEKPNM33.js → streamAgentChatTurn-UHEMNI3X.js} +91 -48
  120. package/{tableCommands-3P7MJ3PF.js → tableCommands-BEQAGE4I.js} +1 -1
  121. package/{tools-E6FHKTCF.js → tools-BMXIXHMB.js} +31 -26
  122. package/{tuiSummaryLlmCaller-QHPDD4WP.js → tuiSummaryLlmCaller-VUNVBRX3.js} +3 -3
  123. package/types-ZSTJ7MPR.js +7 -0
  124. package/{updateDialogTitleAction-SQJEEW2K.js → updateDialogTitleAction-LJBDYZLH.js} +21 -20
  125. package/{chunk-O4BU24WZ.js → chunk-6Y7A3OQQ.js} +3 -3
  126. package/{chunk-CMKUBIGW.js → chunk-X7W4TNB4.js} +3 -3
  127. package/{localRuntimeAuthority-TEGCOWX4.js → localRuntimeAuthority-4IXJCHZ7.js} +3 -3
@@ -0,0 +1,78 @@
1
+ // packages/core/chat/runOverlayPresentation.ts
2
+ var STATUS_ORDER = [
3
+ "running",
4
+ "reviewing",
5
+ "testing",
6
+ "done",
7
+ "failed",
8
+ "cancelled",
9
+ "orphaned"
10
+ ];
11
+ var STATUS_DISPLAY = {
12
+ running: { icon: "\u25B6", label: "\u6B63\u5728\u8FD0\u884C" },
13
+ reviewing: { icon: "\u{1F441}", label: "\u5F85 review" },
14
+ testing: { icon: "\u{1F9EA}", label: "\u5728\u6D4B\u8BD5" },
15
+ done: { icon: "\u2705", label: "\u5DF2\u5B8C\u6210" },
16
+ failed: { icon: "\u274C", label: "\u5931\u8D25" },
17
+ cancelled: { icon: "\u23F9", label: "\u5DF2\u53D6\u6D88" },
18
+ orphaned: { icon: "\u{1F47B}", label: "\u5B64\u513F" }
19
+ };
20
+ function statusLabel(status) {
21
+ return STATUS_DISPLAY[status]?.label ?? status;
22
+ }
23
+ function groupByStatus(runs) {
24
+ const buckets = /* @__PURE__ */ new Map();
25
+ for (const run of runs.values()) {
26
+ const arr = buckets.get(run.status);
27
+ if (arr) arr.push(run);
28
+ else buckets.set(run.status, [run]);
29
+ }
30
+ const grouped = [];
31
+ for (const status of STATUS_ORDER) {
32
+ const arr = buckets.get(status);
33
+ if (arr && arr.length > 0) grouped.push({ status, runs: arr });
34
+ }
35
+ return grouped;
36
+ }
37
+ function buildOverlayPresentation(state) {
38
+ if (state.runs.size === 0) return null;
39
+ const grouped = groupByStatus(state.runs);
40
+ const lines = [];
41
+ for (const { status, runs } of grouped) {
42
+ const { icon, label } = STATUS_DISPLAY[status];
43
+ lines.push(`${icon} ${runs.length} \u4E2A${label}`);
44
+ }
45
+ lines.push("");
46
+ lines.push("--- \u8BE6\u60C5 ---");
47
+ for (const { runs } of grouped) {
48
+ for (const run of runs) {
49
+ lines.push(detailLine(run));
50
+ }
51
+ }
52
+ return lines.join("\n");
53
+ }
54
+ function detailLine(run) {
55
+ const short = shortStatusLabel(run.status);
56
+ let suffix = short;
57
+ if (run.summary) suffix += ` \u2014 ${run.summary}`;
58
+ else if (run.status === "failed" && run.errorMessage) suffix += ` \u2014 ${run.errorMessage}`;
59
+ return `\u2022 ${run.runId} (${run.name}): ${suffix}`;
60
+ }
61
+ var SHORT_STATUS_LABEL = {
62
+ running: "\u8FD0\u884C\u4E2D",
63
+ reviewing: "\u5F85 review",
64
+ testing: "\u6D4B\u8BD5\u4E2D",
65
+ done: "\u5DF2\u5B8C\u6210",
66
+ failed: "\u5931\u8D25",
67
+ cancelled: "\u5DF2\u53D6\u6D88",
68
+ orphaned: "\u5B64\u513F"
69
+ };
70
+ function shortStatusLabel(status) {
71
+ return SHORT_STATUS_LABEL[status];
72
+ }
73
+
74
+ export {
75
+ statusLabel,
76
+ groupByStatus,
77
+ buildOverlayPresentation
78
+ };
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  updateContentTitle
3
- } from "./chunk-LSHKV3S7.js";
3
+ } from "./chunk-NVB267BZ.js";
4
4
  import {
5
5
  require_date_fns
6
6
  } from "./chunk-M76ECQRD.js";
7
- import {
8
- require_react
9
- } from "./chunk-3ASDTTEI.js";
10
7
  import {
11
8
  toErrorMessage
12
9
  } from "./chunk-HNMXYYJR.js";
10
+ import {
11
+ require_react
12
+ } from "./chunk-3ASDTTEI.js";
13
13
  import {
14
14
  patch,
15
15
  readAndWait
16
- } from "./chunk-3S2VOMIF.js";
16
+ } from "./chunk-XRZJGPFI.js";
17
17
  import {
18
18
  asOptionalTrimmedString
19
19
  } from "./chunk-G3SUCT4W.js";
@@ -367,7 +367,7 @@ async function saveDocState(arg, { dispatch, getState }) {
367
367
  }
368
368
  }
369
369
  async function createDocState(args, thunkApi) {
370
- const { createPageAction } = await import("./createPageAction-2EFBT4LQ.js");
370
+ const { createPageAction } = await import("./createPageAction-JGZK3WAM.js");
371
371
  return createPageAction(args, thunkApi);
372
372
  }
373
373
  function subscribe(listener) {
@@ -1,9 +1,6 @@
1
- import {
2
- clearCliLocalRuntimePreparedAgentCache
3
- } from "./chunk-XECKIDGJ.js";
4
1
  import {
5
2
  getReadableCliDb
6
- } from "./chunk-W4NVOSFF.js";
3
+ } from "./chunk-WFHXMLHZ.js";
7
4
  import {
8
5
  buildCreatedAgentRecord,
9
6
  buildUpdatedAgentRecord,
@@ -12,7 +9,10 @@ import {
12
9
  resolveAgentRecordFromHybridStore,
13
10
  sanitizeAgentRecordForCliOutput,
14
11
  writeAgentRecord
15
- } from "./chunk-FMYTM25W.js";
12
+ } from "./chunk-FVIPEIVX.js";
13
+ import {
14
+ clearCliLocalRuntimePreparedAgentCache
15
+ } from "./chunk-UZY4BEBR.js";
16
16
  import {
17
17
  resolveCliAgentKeyInput
18
18
  } from "./chunk-VHBWHNVT.js";
@@ -4,7 +4,7 @@ import {
4
4
 
5
5
  // packages/cli/agentCommandSupport.ts
6
6
  async function getDefaultCliDb() {
7
- const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-LGDF6FQP.js");
7
+ const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-THJZGAOJ.js");
8
8
  return getDefaultCliLocalRuntimeDb();
9
9
  }
10
10
  function createNullCliDb() {
@@ -14,7 +14,7 @@ function buildCliLocalRuntimeDbEnv(env = process.env) {
14
14
  };
15
15
  }
16
16
  async function getDefaultCliLocalRuntimeDb(options = {}) {
17
- const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-TEGCOWX4.js");
17
+ const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-4IXJCHZ7.js");
18
18
  return getAuthorityBackedDb(options);
19
19
  }
20
20
 
@@ -0,0 +1,26 @@
1
+ // packages/create/types.ts
2
+ var DataType = /* @__PURE__ */ ((DataType2) => {
3
+ DataType2["AGENT"] = "agent";
4
+ DataType2["DOC"] = "page";
5
+ DataType2["DIALOG"] = "dialog";
6
+ DataType2["NOTIFICATION"] = "notification";
7
+ DataType2["MSG"] = "msg";
8
+ DataType2["TOKEN"] = "token";
9
+ DataType2["SPACE"] = "space";
10
+ DataType2["TRANSACTION"] = "transaction";
11
+ DataType2["SETTING"] = "setting";
12
+ DataType2["TASK"] = "task";
13
+ DataType2["AGENT_AUTOMATION"] = "agent-automation";
14
+ DataType2["TABLE"] = "table";
15
+ DataType2["TABLE_ROW"] = "table_row";
16
+ DataType2["FILE"] = "file";
17
+ DataType2["IMAGE"] = "image";
18
+ DataType2["APP"] = "app";
19
+ DataType2["EMAIL"] = "email";
20
+ DataType2["Category"] = "category";
21
+ return DataType2;
22
+ })(DataType || {});
23
+
24
+ export {
25
+ DataType
26
+ };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  selectCurrentServer
3
- } from "./chunk-EABWT43X.js";
3
+ } from "./chunk-RVOUXDFU.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-3S2VOMIF.js";
6
+ } from "./chunk-XRZJGPFI.js";
7
7
  import {
8
8
  selectIdentityToken
9
- } from "./chunk-DVRHHFEA.js";
9
+ } from "./chunk-XMLRJUU5.js";
10
10
  import {
11
11
  getIsDesktopApp
12
- } from "./chunk-OOSFSFMA.js";
12
+ } from "./chunk-R5V5G73M.js";
13
13
 
14
14
  // packages/ai/agent/cliChatClient.ts
15
15
  function getCliChatRequestConfig(thunkApi) {
@@ -2,7 +2,7 @@ import {
2
2
  getAllServers,
3
3
  getIsDesktopApp,
4
4
  isAbortError
5
- } from "./chunk-OOSFSFMA.js";
5
+ } from "./chunk-R5V5G73M.js";
6
6
  import {
7
7
  asTrimmedString
8
8
  } from "./chunk-3EUW3WEO.js";
@@ -2,17 +2,17 @@ import {
2
2
  fileKey,
3
3
  getFileIdFromKey,
4
4
  ulid
5
- } from "./chunk-O4BU24WZ.js";
5
+ } from "./chunk-6Y7A3OQQ.js";
6
6
  import {
7
7
  loadFileFromIndexedDb,
8
8
  removeAction,
9
9
  saveFileToIndexedDb
10
- } from "./chunk-JTINRTBT.js";
10
+ } from "./chunk-SKDNBYZK.js";
11
11
  import {
12
12
  readAction,
13
13
  readRequestManager,
14
14
  resolveAgentReadServers
15
- } from "./chunk-XPC5C7BK.js";
15
+ } from "./chunk-3ND52WIL.js";
16
16
  import {
17
17
  asyncThunkCreator,
18
18
  buildCreateSlice,
@@ -32,13 +32,13 @@ import {
32
32
  shouldReplaceLocalWithRemoteRecord,
33
33
  shouldReplicateLocalRecord,
34
34
  uploadToCurrentServer
35
- } from "./chunk-DVRHHFEA.js";
35
+ } from "./chunk-XMLRJUU5.js";
36
36
  import {
37
37
  fetchFromClientDb,
38
38
  fetchFromServer,
39
39
  logger,
40
40
  normalizeTimeFields
41
- } from "./chunk-OOSFSFMA.js";
41
+ } from "./chunk-R5V5G73M.js";
42
42
  import {
43
43
  isTombstoneRecord
44
44
  } from "./chunk-GBRG75BQ.js";
@@ -704,7 +704,7 @@ var dbSlice = createSliceWithThunks({
704
704
  // 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
705
705
  read: create.asyncThunk(
706
706
  async (payload, thunkApi) => {
707
- const { readAction: readAction2 } = await import("./read-CN3TNXIP.js");
707
+ const { readAction: readAction2 } = await import("./read-3FMPZPER.js");
708
708
  return readAction2(payload, thunkApi);
709
709
  },
710
710
  {
@@ -778,7 +778,7 @@ var dbSlice = createSliceWithThunks({
778
778
  // 这里改成动态 import,运行期才解析,彻底断开这条边。
779
779
  share: create.asyncThunk(
780
780
  async (config, thunkApi) => {
781
- const { shareResourceAction } = await import("./action-F5JACQBG.js");
781
+ const { shareResourceAction } = await import("./action-LT7BRFLK.js");
782
782
  return shareResourceAction(config, thunkApi);
783
783
  }
784
784
  ),
@@ -4,10 +4,10 @@ import {
4
4
  providerHttpFailure,
5
5
  readSseFrames,
6
6
  throwIfChatCompletionStreamFailed
7
- } from "./chunk-4N7QA72L.js";
7
+ } from "./chunk-AAODAAUQ.js";
8
8
  import {
9
9
  parseToolArgumentsJson
10
- } from "./chunk-LZYEWFPK.js";
10
+ } from "./chunk-QCJITMYO.js";
11
11
  import {
12
12
  createThinkParserState,
13
13
  createToolCallAccumulator,
@@ -18,7 +18,7 @@ import {
18
18
  import {
19
19
  requiresBareImageUrl,
20
20
  toBareImageUrlMessages
21
- } from "./chunk-ASZ2C44S.js";
21
+ } from "./chunk-IOOMJJ4Z.js";
22
22
  import {
23
23
  shouldStripReasoningContentForOutbound,
24
24
  toOpenAiCompatibleMessages
@@ -26,27 +26,29 @@ import {
26
26
  import {
27
27
  buildProviderAuthHeaders,
28
28
  buildProviderExecutionPlan
29
- } from "./chunk-ZVDRAEZL.js";
29
+ } from "./chunk-MUCU6ATG.js";
30
30
  import {
31
- canonicalizeToolName,
32
31
  createGlob,
33
32
  resolveExecutableOnPath
34
- } from "./chunk-B4KT7RN2.js";
33
+ } from "./chunk-DKZFOK24.js";
35
34
  import {
36
35
  toErrorMessage
37
36
  } from "./chunk-HNMXYYJR.js";
37
+ import {
38
+ canonicalizeToolName
39
+ } from "./chunk-ZZ2MH7LE.js";
38
40
  import {
39
41
  asRecordOrEmpty
40
42
  } from "./chunk-KX6YBIHG.js";
41
43
  import {
42
44
  dialogMessageKey
43
- } from "./chunk-O4BU24WZ.js";
44
- import {
45
- asTrimmedNonEmptyStringArray
46
- } from "./chunk-I42VC5KR.js";
45
+ } from "./chunk-6Y7A3OQQ.js";
47
46
  import {
48
47
  asOptionalFiniteNumber
49
48
  } from "./chunk-WWC7I6TA.js";
49
+ import {
50
+ asTrimmedNonEmptyStringArray
51
+ } from "./chunk-I42VC5KR.js";
50
52
  import {
51
53
  asTrimmedLowercaseString
52
54
  } from "./chunk-QSJ3HFEF.js";
@@ -537,14 +539,24 @@ function buildAgentRuntimeDialogWritePlan(args) {
537
539
  const nowIso = new Date(args.now).toISOString();
538
540
  const dialogKey = `dialog-${args.userId}-${dialogId}`;
539
541
  const subjectRefs = buildRuntimeSubjectRefs(args.input.runtimeContext);
542
+ const requestedAgentMode = args.input.runtimeContext?.dialogAgentMode === "auto" || args.input.runtimeContext?.dialogAgentMode === "fixed" ? args.input.runtimeContext.dialogAgentMode : void 0;
543
+ const agentMode = requestedAgentMode ?? (args.existingDialog?.agentMode === "auto" ? "auto" : "fixed");
544
+ const dialogAgentFields = agentMode === "auto" ? {
545
+ agentMode: "auto",
546
+ cybots: [],
547
+ primaryAgentKey: void 0
548
+ } : {
549
+ agentMode: "fixed",
550
+ cybots: [args.input.agentKey],
551
+ primaryAgentKey: args.input.agentKey
552
+ };
540
553
  const dialogRecord = {
541
554
  ...asRecordOrEmpty(args.existingDialog),
542
555
  id: dialogId,
543
556
  dbKey: dialogKey,
544
557
  type: "dialog",
545
558
  userId: args.userId,
546
- cybots: [args.input.agentKey],
547
- primaryAgentKey: args.input.agentKey,
559
+ ...dialogAgentFields,
548
560
  title: pickDialogTitle({
549
561
  existingDialog: args.existingDialog,
550
562
  titleOverride: args.titleOverride,
@@ -2978,7 +2990,7 @@ async function searchFilesTool(args) {
2978
2990
  const literal = parsed.literal === true;
2979
2991
  const caseSensitive = parsed.caseSensitive === false ? false : true;
2980
2992
  const requestedPath = pickFirstAlias(parsed, PATH_FIELD_ALIASES) ?? ".";
2981
- const includeIgnored = parsed.includeIgnored === true;
2993
+ const includeIgnored = parsed.includeIgnored === true || args.workspaceRoot.includes(".worktrees");
2982
2994
  const searchPath = await resolveLocalWorkspaceToolPath({
2983
2995
  workspaceRoot: args.workspaceRoot,
2984
2996
  requestedPath,
@@ -3254,7 +3266,7 @@ async function globFilesTool(args) {
3254
3266
  const exclude = readWorkspaceExcludeGlobs(parsed);
3255
3267
  const maxResults = readWorkspaceMaxResults(parsed, warnings);
3256
3268
  const requestedPath = pickFirstAlias(parsed, PATH_FIELD_ALIASES) ?? ".";
3257
- const includeIgnored = parsed.includeIgnored === true;
3269
+ const includeIgnored = parsed.includeIgnored === true || args.workspaceRoot.includes(".worktrees");
3258
3270
  const searchPath = await resolveLocalWorkspaceToolPath({
3259
3271
  workspaceRoot: args.workspaceRoot,
3260
3272
  requestedPath,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-XECKIDGJ.js";
4
+ } from "./chunk-UZY4BEBR.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-7HECYFOI.js";
7
+ } from "./chunk-NEKFSXOP.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-LZYEWFPK.js";
10
+ } from "./chunk-QCJITMYO.js";
11
11
  import {
12
12
  resolveLocalRuntimeEnvFromPolicy
13
13
  } from "./chunk-5CS33IBL.js";