nolo-cli 0.248.0-alpha.2 → 0.249.0-alpha.10

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 (87) hide show
  1. package/{_executeModel-H72XB2UR.js → _executeModel-F4MT6OPO.js} +20 -20
  2. package/{agentDeleteCommand-4AFQNHDD.js → agentDeleteCommand-KKS2Q6WB.js} +27 -27
  3. package/{agentEmailCommands-6FR6TBJM.js → agentEmailCommands-UDLBG3BE.js} +27 -27
  4. package/{agentListCommands-IXKBP3W5.js → agentListCommands-5ULWKQ3E.js} +14 -14
  5. package/{agentMachineCommands-KCTPKYZM.js → agentMachineCommands-IX72KH5L.js} +11 -11
  6. package/{agentRecordCommands-JG3TB55T.js → agentRecordCommands-5OPLKH4R.js} +27 -27
  7. package/{agentRunCommand-ZUKU7SYB.js → agentRunCommand-U6AGCU3C.js} +27 -27
  8. package/{agentRunControl-RN2P6AOD.js → agentRunControl-QMWTWV7C.js} +2 -2
  9. package/{agentRuntimeLocal-LVXPQ7QA.js → agentRuntimeLocal-KKXJOBD3.js} +8 -8
  10. package/{agentSlice-6EPEKSJT.js → agentSlice-FWYXP332.js} +1 -1
  11. package/{appDeleteCommands-BESCJOQM.js → appDeleteCommands-ERJK367V.js} +12 -12
  12. package/{appDeployCommands-LPTR6IOX.js → appDeployCommands-LUV6QKQJ.js} +12 -12
  13. package/{appDeployStatusCommands-BZ7KZ5RD.js → appDeployStatusCommands-WW7IYQD4.js} +12 -12
  14. package/{appGetCommands-EDWGJV4S.js → appGetCommands-G7XYYSFO.js} +12 -12
  15. package/{appListCommands-OPRWYPM6.js → appListCommands-4RXCIDNI.js} +12 -12
  16. package/{builtinSkillRegistry-VRCMQ77Q.js → builtinSkillRegistry-PFTTFPWW.js} +2 -1
  17. package/{chunk-Y4NPF2UN.js → chunk-222CJNC2.js} +3 -3
  18. package/{chunk-2JWRKVDC.js → chunk-32WTED6G.js} +80 -121
  19. package/{chunk-RR3MB26M.js → chunk-3IVFGQIM.js} +1 -1
  20. package/{chunk-CTIEJRTP.js → chunk-5BRVDQTX.js} +5 -1
  21. package/{chunk-LQ7WOIVV.js → chunk-6QL3SUEK.js} +2 -2
  22. package/{chunk-6MTVACLN.js → chunk-75TXQ4GY.js} +4 -38
  23. package/{chunk-VFXMN3QM.js → chunk-7IQA2VJF.js} +23 -18
  24. package/{chunk-JT4HJLIL.js → chunk-AKWA6PCE.js} +3 -3
  25. package/{chunk-KFGL66WO.js → chunk-ATRU65OK.js} +7 -7
  26. package/{chunk-JEWMQR6J.js → chunk-BQ4CZEVZ.js} +1 -1
  27. package/{chunk-IVY2CQBD.js → chunk-BY6UZMLH.js} +22 -24
  28. package/{chunk-WFGNWWJI.js → chunk-CDIRKCPD.js} +141 -1
  29. package/{chunk-ITBX27W6.js → chunk-CFDOIIOZ.js} +2 -2
  30. package/chunk-EUGTFFO6.js +42 -0
  31. package/{chunk-E2CYOBQS.js → chunk-EVIPLO5D.js} +2 -2
  32. package/{chunk-LDX32FHM.js → chunk-GIRXQFGW.js} +11 -11
  33. package/{chunk-7UVVLYKC.js → chunk-HEIIOJGN.js} +3 -3
  34. package/{chunk-KABDRAUT.js → chunk-I3J7HO3U.js} +2 -2
  35. package/{chunk-QMNVV3YM.js → chunk-I3OW5RAX.js} +3 -3
  36. package/{chunk-XCA4WHX5.js → chunk-KHVTT4WW.js} +2 -2
  37. package/{chunk-CIUZXD5D.js → chunk-KJDN2YRH.js} +2 -2
  38. package/{chunk-Z7KE4K3H.js → chunk-LXKK7QFI.js} +4 -3
  39. package/{chunk-3IQEZYPF.js → chunk-OKKA4BCM.js} +4 -4
  40. package/{chunk-RMA5H7R5.js → chunk-PGDM7AM2.js} +5 -5
  41. package/{chunk-W2PX6LH4.js → chunk-PGQ2KTMC.js} +3 -3
  42. package/{chunk-CIGCTSBF.js → chunk-SHDJLJWV.js} +1 -1
  43. package/{chunk-2BKNICGK.js → chunk-SLUZ6FBJ.js} +1 -1
  44. package/{chunk-Y6DW3JTS.js → chunk-U7OMQLRE.js} +2 -2
  45. package/{chunk-XSRSAU3O.js → chunk-UR4ZMRV3.js} +3 -3
  46. package/{chunk-YMKSYLT7.js → chunk-VHMPJGT4.js} +2 -2
  47. package/{chunk-OAZP4TSA.js → chunk-VZCBYCHV.js} +1 -1
  48. package/{chunk-XNTZD4AE.js → chunk-W4G25PVP.js} +9 -11
  49. package/{chunk-4OXPN3WC.js → chunk-WMKA2DPK.js} +1 -1
  50. package/{chunk-UOUMPHS5.js → chunk-WMMKHEGQ.js} +1 -1
  51. package/{chunk-OY3XGLWR.js → chunk-X6LYQDN5.js} +1 -1
  52. package/{chunk-XSZLVTD3.js → chunk-XHG7QROB.js} +3 -3
  53. package/{chunk-A6BALTVL.js → chunk-YQO5UKHP.js} +8 -8
  54. package/{chunk-AEZBAFC6.js → chunk-YWNCRUBZ.js} +1 -1
  55. package/{chunk-IJZC2KIJ.js → chunk-Z7A2ZQ5X.js} +1 -1
  56. package/{chunk-WZFQBO5N.js → chunk-ZKMS73DK.js} +2 -2
  57. package/{chunk-PBPXXMWZ.js → chunk-ZTWDSOXD.js} +1 -1
  58. package/{cliLocalAgentRecordReader-MCQVRWBR.js → cliLocalAgentRecordReader-R4CLUHYO.js} +10 -10
  59. package/{commandRegistry-OXNZPSGC.js → commandRegistry-2AUUZC2C.js} +46 -46
  60. package/{contentThunks-RHE6A4AH.js → contentThunks-ZQSZA4GH.js} +3 -3
  61. package/{createAgentAutomationAction-TZ2CN6BM.js → createAgentAutomationAction-RQE4F6PR.js} +3 -3
  62. package/{createDialogAction-4JC5EYQT.js → createDialogAction-JDSMQ34U.js} +4 -4
  63. package/{createPageAction-WQREAKL3.js → createPageAction-VLF6XCYO.js} +4 -4
  64. package/{dialogCommands-KZTZLWPZ.js → dialogCommands-PLM7ZFWH.js} +14 -14
  65. package/{dialogSlice-DI2DW4UP.js → dialogSlice-63DD2ER2.js} +2 -2
  66. package/{docCreateCommands-26HJ5NAY.js → docCreateCommands-BST5DO7L.js} +11 -11
  67. package/{docDeleteCommands-UAOHH5XK.js → docDeleteCommands-YE6G2SO4.js} +12 -12
  68. package/{docReadCommands-4ADG7YE6.js → docReadCommands-M6T35U3G.js} +11 -11
  69. package/{docStore-A4UDG56G.js → docStore-7QNJWRJ2.js} +1 -1
  70. package/{docUpdateCommands-OGFJZENF.js → docUpdateCommands-6DFWGPVG.js} +11 -11
  71. package/{handleSendMessageAction-RO647P4V.js → handleSendMessageAction-FCEFFAV4.js} +15 -27
  72. package/{hostCredentialCreate-4CHXN6U5.js → hostCredentialCreate-R2Q4EDKF.js} +27 -27
  73. package/index.js +4 -4
  74. package/{localRuntimeAdapter-UB3RWVUD.js → localRuntimeAdapter-AZEBBP33.js} +26 -26
  75. package/{machineCommands-EMUNGUKT.js → machineCommands-HQYKFZSQ.js} +27 -27
  76. package/{machineWsRunDispatch-GL4IASSZ.js → machineWsRunDispatch-BQW5G3G3.js} +27 -27
  77. package/package.json +1 -1
  78. package/{projectArchive-ZRQPLQEI.js → projectArchive-4XUC5SLF.js} +4 -4
  79. package/{readlineWorkspace-IUUODHF4.js → readlineWorkspace-JOZQCS6W.js} +34 -34
  80. package/{runAgentClientLoop-HHKMRV4B.js → runAgentClientLoop-7D7UCAS2.js} +18 -18
  81. package/{settingThunks-T4FXSV6M.js → settingThunks-IHXUF276.js} +3 -7
  82. package/{spaceCommands-W5TAVFDT.js → spaceCommands-WCLD36WH.js} +11 -11
  83. package/{streamAgentChatTurn-URBDXKCY.js → streamAgentChatTurn-DVTOINT3.js} +47 -25
  84. package/{tools-USMXBZZV.js → tools-BOPINT5S.js} +14 -14
  85. package/{tuiRestart-EOGC2BYY.js → tuiRestart-5F2APN66.js} +3 -3
  86. package/{updateDialogTitleAction-LTDUWMHQ.js → updateDialogTitleAction-S76PUCLQ.js} +3 -3
  87. package/chunk-YDRRGVT5.js +0 -142
@@ -3,24 +3,22 @@ import {
3
3
  mergeReferences,
4
4
  resolveReferenceAssets,
5
5
  resolveToolsFromKeys
6
- } from "./chunk-XSZLVTD3.js";
6
+ } from "./chunk-XHG7QROB.js";
7
7
  import {
8
8
  UI_CARD_ENVELOPE_MAX_BYTES,
9
9
  getAllToolRuns,
10
10
  parseUiCard,
11
11
  uiCardFallback
12
- } from "./chunk-RMA5H7R5.js";
12
+ } from "./chunk-PGDM7AM2.js";
13
13
  import {
14
14
  getDocState
15
- } from "./chunk-WZFQBO5N.js";
15
+ } from "./chunk-ZKMS73DK.js";
16
16
  import {
17
17
  getTableState
18
- } from "./chunk-OY3XGLWR.js";
18
+ } from "./chunk-X6LYQDN5.js";
19
19
  import {
20
- messageStreaming,
21
- removeTransientMessage,
22
20
  selectAllMsgs
23
- } from "./chunk-A6BALTVL.js";
21
+ } from "./chunk-YQO5UKHP.js";
24
22
  import {
25
23
  getCurrentSpaceIdRaw,
26
24
  getViewMode
@@ -40,12 +38,10 @@ import {
40
38
  selectIdentityUserId
41
39
  } from "./chunk-PXYBUFDB.js";
42
40
  import {
43
- projectToolMessageContent
44
- } from "./chunk-WFGNWWJI.js";
45
- import {
41
+ projectToolMessageContent,
46
42
  resolveAgentRecommendedSkillNames,
47
43
  resolveAgentRequiredPackIds
48
- } from "./chunk-YDRRGVT5.js";
44
+ } from "./chunk-CDIRKCPD.js";
49
45
  import {
50
46
  attachmentKind,
51
47
  extractReferenceKeysFromMessage,
@@ -67,13 +63,10 @@ import {
67
63
  expandEnabledPackPromptPatches,
68
64
  expandEnabledPacks,
69
65
  resolveEffectiveEnabledPacks
70
- } from "./chunk-6MTVACLN.js";
66
+ } from "./chunk-75TXQ4GY.js";
71
67
  import {
72
68
  metaKey
73
69
  } from "./chunk-SYTHYBMI.js";
74
- import {
75
- createDialogMessageKeyAndId
76
- } from "./chunk-OJKUU3LP.js";
77
70
  import {
78
71
  canonicalizeToolNames,
79
72
  prioritizeToolNames
@@ -107,108 +100,6 @@ import {
107
100
  asOptionalTrimmedString
108
101
  } from "./chunk-G3SUCT4W.js";
109
102
 
110
- // packages/app/utils/desktopActionGateChannel.ts
111
- function targetForRunKind(kind, ctx = {}) {
112
- if (kind === "server-run") {
113
- return {
114
- kind: "web",
115
- server: ctx.server?.trim() ?? "",
116
- token: ctx.token ?? null
117
- };
118
- }
119
- return { kind: "desktop" };
120
- }
121
- var NEEDS_LOGIN_MESSAGE = "\u9700\u8981\u767B\u5F55\u540E\u624D\u80FD\u5904\u7406\u8BE5\u6388\u6743\u8BF7\u6C42";
122
- var MISSING_SERVER_MESSAGE = "\u672A\u914D\u7F6E\u670D\u52A1\u5668\u5730\u5740\uFF0C\u65E0\u6CD5\u5904\u7406\u8BE5\u6388\u6743\u8BF7\u6C42";
123
- var gates = /* @__PURE__ */ new Map();
124
- var targets = /* @__PURE__ */ new Map();
125
- var failures = /* @__PURE__ */ new Map();
126
- var metadata = /* @__PURE__ */ new Map();
127
- var errors = /* @__PURE__ */ new Map();
128
- var listeners = /* @__PURE__ */ new Set();
129
- var cachedSnapshot = null;
130
- function invalidateSnapshot() {
131
- cachedSnapshot = null;
132
- }
133
- function notify() {
134
- for (const listener of listeners) {
135
- try {
136
- listener();
137
- } catch {
138
- }
139
- }
140
- }
141
- function pushGate(gate, target = { kind: "desktop" }, meta) {
142
- if (!gate || typeof gate.id !== "string" || gate.id.length === 0) return;
143
- failures.delete(gate.id);
144
- if (target.kind === "web" && (!target.token || !target.server.trim())) {
145
- const message = !target.token ? NEEDS_LOGIN_MESSAGE : MISSING_SERVER_MESSAGE;
146
- if (meta) failures.set(gate.id, { gateId: gate.id, meta: { ...meta, storage: "web" }, message });
147
- gates.delete(gate.id);
148
- targets.delete(gate.id);
149
- metadata.delete(gate.id);
150
- errors.set(gate.id, message);
151
- invalidateSnapshot();
152
- notify();
153
- return;
154
- }
155
- metadata.delete(gate.id);
156
- if (meta && target.kind !== "local") metadata.set(gate.id, { ...meta, storage: target.kind });
157
- errors.delete(gate.id);
158
- targets.set(gate.id, target);
159
- gates.set(gate.id, gate);
160
- invalidateSnapshot();
161
- notify();
162
- }
163
- function clearGateTurn(turnId) {
164
- for (const [id, failure] of failures) {
165
- if (failure.meta.turnId === turnId) failures.delete(id);
166
- }
167
- for (const [id, meta] of metadata) {
168
- if (meta.turnId !== turnId) continue;
169
- gates.delete(id);
170
- targets.delete(id);
171
- metadata.delete(id);
172
- errors.delete(id);
173
- }
174
- invalidateSnapshot();
175
- notify();
176
- }
177
-
178
- // packages/ai/agent/turnActionGateReceiver.ts
179
- function createTurnActionGateReceiver(dispatch, foregroundMessageId) {
180
- const turnId = createDialogMessageKeyAndId("secret-gate").messageId;
181
- const secretGateAnchors = /* @__PURE__ */ new Set();
182
- let cleared = false;
183
- function receiveActionGate(gate, target, dialogId) {
184
- if (cleared) return;
185
- const secret = gate.kind === "input" && gate.payload?.action === "secret_request";
186
- if (!secret || target?.kind === "local") {
187
- pushGate(gate, target, foregroundMessageId ? { dialogId, turnId, messageId: foregroundMessageId } : void 0);
188
- return;
189
- }
190
- const { messageId, key } = createDialogMessageKeyAndId(dialogId);
191
- secretGateAnchors.add(messageId);
192
- pushGate(gate, target, { dialogId, turnId, messageId });
193
- dispatch(messageStreaming({
194
- id: messageId,
195
- dbKey: key,
196
- dialogId,
197
- role: "tool",
198
- toolName: "secret-request",
199
- content: "",
200
- isStreaming: true
201
- }));
202
- }
203
- function clearActionGates() {
204
- if (cleared) return;
205
- cleared = true;
206
- clearGateTurn(turnId);
207
- for (const id of secretGateAnchors) dispatch(removeTransientMessage(id));
208
- }
209
- return { receiveActionGate, clearActionGates };
210
- }
211
-
212
103
  // packages/ai/agent/foregroundTurnAdmissionFetch.ts
213
104
  var FOREGROUND_TURN_KEEPALIVE_MAX_BODY_BYTES = 60 * 1024;
214
105
  function getUtf8ByteLength(value) {
@@ -1862,10 +1753,75 @@ async function resolveTurnToolContext(input) {
1862
1753
  };
1863
1754
  }
1864
1755
 
1756
+ // packages/app/utils/desktopActionGateChannel.ts
1757
+ function targetForRunKind(kind, ctx = {}) {
1758
+ if (kind === "server-run") {
1759
+ return {
1760
+ kind: "web",
1761
+ server: ctx.server?.trim() ?? "",
1762
+ token: ctx.token ?? null
1763
+ };
1764
+ }
1765
+ return { kind: "desktop" };
1766
+ }
1767
+ var NEEDS_LOGIN_MESSAGE = "\u9700\u8981\u767B\u5F55\u540E\u624D\u80FD\u5904\u7406\u8BE5\u6388\u6743\u8BF7\u6C42";
1768
+ var MISSING_SERVER_MESSAGE = "\u672A\u914D\u7F6E\u670D\u52A1\u5668\u5730\u5740\uFF0C\u65E0\u6CD5\u5904\u7406\u8BE5\u6388\u6743\u8BF7\u6C42";
1769
+ var gates = /* @__PURE__ */ new Map();
1770
+ var targets = /* @__PURE__ */ new Map();
1771
+ var failures = /* @__PURE__ */ new Map();
1772
+ var metadata = /* @__PURE__ */ new Map();
1773
+ var errors = /* @__PURE__ */ new Map();
1774
+ var listeners = /* @__PURE__ */ new Set();
1775
+ var cachedSnapshot = null;
1776
+ function invalidateSnapshot() {
1777
+ cachedSnapshot = null;
1778
+ }
1779
+ function notify() {
1780
+ for (const listener of listeners) {
1781
+ try {
1782
+ listener();
1783
+ } catch {
1784
+ }
1785
+ }
1786
+ }
1787
+ function pushGate(gate, target = { kind: "desktop" }, meta) {
1788
+ if (!gate || typeof gate.id !== "string" || gate.id.length === 0) return;
1789
+ failures.delete(gate.id);
1790
+ if (target.kind === "web" && (!target.token || !target.server.trim())) {
1791
+ const message = !target.token ? NEEDS_LOGIN_MESSAGE : MISSING_SERVER_MESSAGE;
1792
+ if (meta) failures.set(gate.id, { gateId: gate.id, meta: { ...meta, storage: "web" }, message });
1793
+ gates.delete(gate.id);
1794
+ targets.delete(gate.id);
1795
+ metadata.delete(gate.id);
1796
+ errors.set(gate.id, message);
1797
+ invalidateSnapshot();
1798
+ notify();
1799
+ return;
1800
+ }
1801
+ metadata.delete(gate.id);
1802
+ if (meta && target.kind !== "local") metadata.set(gate.id, { ...meta, storage: target.kind });
1803
+ errors.delete(gate.id);
1804
+ targets.set(gate.id, target);
1805
+ gates.set(gate.id, gate);
1806
+ invalidateSnapshot();
1807
+ notify();
1808
+ }
1809
+ function clearGateTurn(turnId) {
1810
+ for (const [id, failure] of failures) {
1811
+ if (failure.meta.turnId === turnId) failures.delete(id);
1812
+ }
1813
+ for (const [id, meta] of metadata) {
1814
+ if (meta.turnId !== turnId) continue;
1815
+ gates.delete(id);
1816
+ targets.delete(id);
1817
+ metadata.delete(id);
1818
+ errors.delete(id);
1819
+ }
1820
+ invalidateSnapshot();
1821
+ notify();
1822
+ }
1823
+
1865
1824
  export {
1866
- targetForRunKind,
1867
- pushGate,
1868
- createTurnActionGateReceiver,
1869
1825
  buildForegroundTurnAdmissionFetchInit,
1870
1826
  consumeAgentRunStream,
1871
1827
  projectDesktopToolUiContent,
@@ -1878,5 +1834,8 @@ export {
1878
1834
  mergeAgentToolsWithRuntime,
1879
1835
  applyImageConfigRuntimeOverride,
1880
1836
  resolveImageGenerationStreamingState,
1881
- resolveTurnToolContext
1837
+ resolveTurnToolContext,
1838
+ targetForRunKind,
1839
+ pushGate,
1840
+ clearGateTurn
1882
1841
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-2BKNICGK.js";
3
+ } from "./chunk-SLUZ6FBJ.js";
4
4
  import {
5
5
  resolveServerUrl
6
6
  } from "./chunk-BIDSIRTS.js";
@@ -2059,7 +2059,11 @@ Use listProcesses to inspect or stop it.`,
2059
2059
  label,
2060
2060
  taskId,
2061
2061
  status: "running",
2062
- ...immediate ? { reason: "long-running-command" } : {}
2062
+ ...immediate ? { reason: "long-running-command" } : {},
2063
+ // 近场行动约束:这条回执正好出现在模型决定「继续还是收尾」的位置。
2064
+ // 同类规则在静态提示词里已重复 5 处(并行块/工具描述/工具指引/回复准则),
2065
+ // 但都沉在数万 token 之前,容易被「回执已收到、先汇报」的局部惯性盖过。
2066
+ turnAction: "This task is tracked. Do NOT end this turn to wait if any other independent authorized work remains \u2014 invoke tools for it now. End the turn only when no independent work is left."
2063
2067
  })
2064
2068
  };
2065
2069
  }
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-XSZLVTD3.js";
4
+ } from "./chunk-XHG7QROB.js";
5
5
  import {
6
6
  updateTokensAction
7
- } from "./chunk-A6BALTVL.js";
7
+ } from "./chunk-YQO5UKHP.js";
8
8
  import {
9
9
  applyUpdateTokensFulfilled
10
10
  } from "./chunk-U35UUM5K.js";
@@ -1,3 +1,7 @@
1
+ import {
2
+ SYSTEM_AGENT_CAPABILITIES,
3
+ SYSTEM_AGENT_CAPABILITY_IDS
4
+ } from "./chunk-EUGTFFO6.js";
1
5
  import {
2
6
  buildSkillDocMarkdown,
3
7
  resolvePageSkillMetadata
@@ -168,43 +172,6 @@ function buildPluginConfigurationSkillContent(_slug) {
168
172
  });
169
173
  }
170
174
 
171
- // packages/ai/tools/agentCapabilities.ts
172
- var SYSTEM_AGENT_CAPABILITIES = [
173
- {
174
- id: "web-search",
175
- label: "\u8054\u7F51\u641C\u7D22",
176
- description: "\u8BA9 agent \u80FD\u641C\u7D22\u4E92\u8054\u7F51\u3001\u6293\u53D6\u7F51\u9875\u5185\u5BB9\uFF0C\u83B7\u53D6\u6700\u65B0\u4FE1\u606F\u3002",
177
- tools: ["exa_search", "fetchWebpage"],
178
- defaultEnabled: true,
179
- icon: "\u{1F310}"
180
- },
181
- {
182
- id: "web-scrape",
183
- label: "\u6DF1\u5EA6\u7F51\u9875\u6293\u53D6",
184
- description: "\u5728\u666E\u901A\u8054\u7F51\u641C\u7D22\u4E4B\u5916\uFF0C\u7528 Firecrawl \u505A\u7ED3\u6784\u5316\u641C\u7D22\u4E0E\u6574\u9875\u6293\u53D6\uFF0C\u9002\u5408\u9700\u8981\u5B8C\u6574\u6B63\u6587\u3001\u6587\u6863\u7AD9\u70B9\u6216\u7AD9\u5185\u68C0\u7D22\u7684\u573A\u666F\u3002",
185
- tools: ["firecrawl_search", "firecrawl_scrape"],
186
- defaultEnabled: false,
187
- icon: "\u{1F578}\uFE0F"
188
- },
189
- {
190
- id: "agent-orchestration",
191
- label: "\u591A agent \u7F16\u6392",
192
- description: "\u5148\u6309\u6536\u85CF\u3001\u7B80\u4ECB\u3001\u80FD\u529B\u548C\u6210\u672C\u5217\u51FA\u5B89\u5168 agent \u6458\u8981\uFF0C\u6309\u9700\u8BFB\u53D6\u5019\u9009\u914D\u7F6E\u89E3\u6790\u53EF\u8FD0\u884C key\uFF0C\u518D\u540E\u53F0\u542F\u52A8\u5176\u4ED6 agent \u6267\u884C\u5B50\u4EFB\u52A1\uFF0C\u5E76\u89C2\u5BDF\u3001\u67E5\u8BE2\u3001\u505C\u6B62\u8FD0\u884C\u4E2D\u7684 agent run\u2014\u2014\u9002\u5408\u5E76\u884C\u6D3E\u53D1\u3001\u957F\u4EFB\u52A1\u8DDF\u8E2A\u3001\u4E2D\u9014\u53EB\u505C\u7B49\u7F16\u6392\u573A\u666F\u3002",
193
- tools: ["startAgentRun", "controlAgentRun", "listAgents", "listRuntimes"],
194
- defaultEnabled: true,
195
- icon: "\u{1F9E9}"
196
- }
197
- ];
198
- var SYSTEM_AGENT_CAPABILITY_IDS = SYSTEM_AGENT_CAPABILITIES.map(
199
- ({ id }) => id
200
- );
201
- var DEFAULT_SYSTEM_AGENT_CAPABILITIES = Object.fromEntries(
202
- SYSTEM_AGENT_CAPABILITIES.map(({ id, defaultEnabled }) => [
203
- id,
204
- defaultEnabled
205
- ])
206
- );
207
-
208
175
  // packages/ai/tools/codeWorkDiscipline.ts
209
176
  var CODE_WORK_DISCIPLINE_BODY = `## \u6548\u7387\u4F18\u5148\uFF08\u7701 token\uFF09
210
177
  - \u4E0D\u590D\u8FF0\u9700\u6C42\u3001\u4E0D\u89E3\u91CA\u300C\u6253\u7B97\u600E\u4E48\u505A\u300D\uFF0C\u76F4\u63A5\u52A8\u624B\uFF1B\u6539\u5B8C\u4E00\u4E24\u53E5\u8BDD\u8BF4\u6E05\u300C\u6539\u4E86\u4EC0\u4E48\u3001\u53BB\u54EA\u770B\u300D\u3002\u601D\u8003\u7B80\u77ED\u3002
@@ -3132,7 +3099,6 @@ export {
3132
3099
  managementFailure,
3133
3100
  PLUGIN_MANAGEMENT_SCHEMAS,
3134
3101
  parsePluginManagementInput,
3135
- DEFAULT_SYSTEM_AGENT_CAPABILITIES,
3136
3102
  TOOL_PACKS,
3137
3103
  CAPABILITY_PACKS,
3138
3104
  resolveEffectiveEnabledPacks,
@@ -6,7 +6,7 @@ import {
6
6
  resolveDiscoveryScope,
7
7
  resolvePaginationArgs,
8
8
  toDiscoverySafeAgentSummary
9
- } from "./chunk-XCA4WHX5.js";
9
+ } from "./chunk-KHVTT4WW.js";
10
10
  import {
11
11
  normalizeTopicKey
12
12
  } from "./chunk-MVOZ22RZ.js";
@@ -19,7 +19,7 @@ import {
19
19
  normalizeAgentUpdateFieldList,
20
20
  normalizeSystemBuiltinSkills,
21
21
  normalizeUiPlugins
22
- } from "./chunk-OAZP4TSA.js";
22
+ } from "./chunk-VZCBYCHV.js";
23
23
  import {
24
24
  applyFetchSpaceFulfilled,
25
25
  fetchAuthoritativeRemoteSpace,
@@ -38,16 +38,16 @@ import {
38
38
  toolRunUpdated,
39
39
  uiCardFallback,
40
40
  waitForAbortableDelay
41
- } from "./chunk-RMA5H7R5.js";
41
+ } from "./chunk-PGDM7AM2.js";
42
42
  import {
43
43
  isGatewayHttpStatus
44
44
  } from "./chunk-NF64D32W.js";
45
45
  import {
46
46
  resolveUserEnabledSkills
47
- } from "./chunk-UOUMPHS5.js";
47
+ } from "./chunk-WMMKHEGQ.js";
48
48
  import {
49
49
  createDocState
50
- } from "./chunk-WZFQBO5N.js";
50
+ } from "./chunk-ZKMS73DK.js";
51
51
  import {
52
52
  readDocFunc,
53
53
  readDocFunctionSchema,
@@ -59,7 +59,7 @@ import {
59
59
  createDialogAction,
60
60
  uiAskChoiceFunc,
61
61
  uiAskChoiceFunctionSchema
62
- } from "./chunk-YMKSYLT7.js";
62
+ } from "./chunk-VHMPJGT4.js";
63
63
  import {
64
64
  DEFAULT_COLLAPSED_CATEGORIES,
65
65
  addContentToSpace,
@@ -76,7 +76,7 @@ import {
76
76
  updateContentCategory,
77
77
  updateContentTitle,
78
78
  writeStoredCollapsedCategories
79
- } from "./chunk-OY3XGLWR.js";
79
+ } from "./chunk-X6LYQDN5.js";
80
80
  import {
81
81
  buildDatabaseFileContentUrl,
82
82
  deleteDialog,
@@ -85,14 +85,14 @@ import {
85
85
  selectCurrentDialogConfig,
86
86
  selectCurrentDialogId,
87
87
  selectMsgById
88
- } from "./chunk-A6BALTVL.js";
88
+ } from "./chunk-YQO5UKHP.js";
89
89
  import {
90
90
  createAgent,
91
91
  deleteServerSyncedCredential,
92
92
  runLlm,
93
93
  streamAgentChatTurn,
94
94
  updateAgent
95
- } from "./chunk-JT4HJLIL.js";
95
+ } from "./chunk-AKWA6PCE.js";
96
96
  import {
97
97
  addMemberSpace,
98
98
  getAllMemberSpaces,
@@ -234,7 +234,7 @@ import {
234
234
  normalizeNoloSpaceInput,
235
235
  resolveNoloDialogInput,
236
236
  verifyNoloDialogSubjectRefQuery
237
- } from "./chunk-ITBX27W6.js";
237
+ } from "./chunk-CFDOIIOZ.js";
238
238
  import {
239
239
  MCP_CALL_TOOL_INPUT_SCHEMA,
240
240
  MCP_LIST_CONNECTIONS_INPUT_SCHEMA,
@@ -265,12 +265,14 @@ import {
265
265
  } from "./chunk-BV3FLP2L.js";
266
266
  import {
267
267
  CAPABILITY_PACKS,
268
- DEFAULT_SYSTEM_AGENT_CAPABILITIES,
269
268
  PLUGIN_MANAGEMENT_SCHEMAS,
270
269
  PLUGIN_MANAGEMENT_TOOL_NAMES,
271
270
  managementFailure,
272
271
  parsePluginManagementInput
273
- } from "./chunk-6MTVACLN.js";
272
+ } from "./chunk-75TXQ4GY.js";
273
+ import {
274
+ DEFAULT_SYSTEM_AGENT_CAPABILITIES
275
+ } from "./chunk-EUGTFFO6.js";
274
276
  import {
275
277
  buildSkillDocMarkdown,
276
278
  normalizeSkillModalities,
@@ -4012,7 +4014,7 @@ async function deleteDialogsFunc(args, thunkApi) {
4012
4014
  const deletedDialogIds = [];
4013
4015
  const deletedDialogKeys = [];
4014
4016
  const failures = [];
4015
- const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-DI2DW4UP.js");
4017
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-63DD2ER2.js");
4016
4018
  for (const target of targets) {
4017
4019
  try {
4018
4020
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -12854,12 +12856,12 @@ var rememberMemoryFunctionSchema = {
12854
12856
  type: "object",
12855
12857
  properties: {
12856
12858
  storage: { type: "string", enum: ["local", "server"], description: "CLI \u5DE5\u4F5C\u8BB0\u5FC6\u5B58\u50A8\uFF1B\u9ED8\u8BA4 local\u3002\u4E24\u7AEF\u72EC\u7ACB\uFF0C\u4E0D\u81EA\u52A8\u540C\u6B65\u3002" },
12857
- mode: { type: "string", enum: ["work"], description: "\u5DE5\u4F5C\u63A5\u7EED\u7528 work\uFF1B\u7701\u7565\u4E3A\u666E\u901A\u957F\u671F\u8BB0\u5FC6\u3002\u72B6\u6001\u662F\u57FA\u4E8E\u7528\u6237\u6D88\u606F\u6216\u6267\u884C\u8BC1\u636E\u7684\u8BB0\u5F55\u8005\u5224\u65AD\uFF0C\u53EF\u80FD\u8FC7\u65F6\uFF0C\u4E0D\u662F\u9A8C\u6536\u7ED3\u8BBA\u3001\u6388\u6743\u6216\u4EFB\u4F55\u884C\u52A8\u6743\u9650\u3002\u5148\u67E5\u8BE2\u83B7\u5F97 activityId \u548C revision\uFF0C\u4E0D\u8981\u6C42\u7528\u6237\u63D0\u4F9B ID\u3002" },
12859
+ mode: { type: "string", enum: ["work"], description: "\u5DE5\u4F5C\u63A5\u7EED\u7528 work\uFF1B\u7701\u7565\u4E3A\u666E\u901A\u957F\u671F\u8BB0\u5FC6\u3002\u8BB0\u300C\u4EE5\u540E\u600E\u4E48\u53D6\u820D/\u6211\u559C\u6B22\u4EC0\u4E48\u300D\u8FD9\u7C7B\u504F\u597D\uFF1A\u7701\u7565 mode\uFF0C\u76F4\u63A5\u4F20 content\uFF1B\u8BB0\u300C\u8FD9\u9879\u5DE5\u4F5C\u505A\u5230\u54EA\u3001\u4E0B\u4E00\u6B65\u662F\u4EC0\u4E48\u300D\uFF1A\u624D\u4F20 mode=work\uFF0C\u4E14\u6765\u6E90 ID \u7531\u5BBF\u4E3B\u63D0\u4F9B\uFF0C\u4E0D\u80FD\u5728\u53C2\u6570\u91CC\u81EA\u5E26\u3002\u72B6\u6001\u662F\u57FA\u4E8E\u7528\u6237\u6D88\u606F\u6216\u6267\u884C\u8BC1\u636E\u7684\u8BB0\u5F55\u8005\u5224\u65AD\uFF0C\u53EF\u80FD\u8FC7\u65F6\uFF0C\u4E0D\u662F\u9A8C\u6536\u7ED3\u8BBA\u3001\u6388\u6743\u6216\u4EFB\u4F55\u884C\u52A8\u6743\u9650\u3002\u5148\u67E5\u8BE2\u83B7\u5F97 activityId \u548C revision\uFF0C\u4E0D\u8981\u6C42\u7528\u6237\u63D0\u4F9B ID\u3002" },
12858
12860
  itemKey: { type: "string", description: "\u521B\u5EFA\u5DE5\u4F5C\u65F6\u7684\u7A33\u5B9A\u9879\u76EE\u952E\u3002" },
12859
12861
  activityId: { type: "string", description: "\u66F4\u65B0\u65F6\u4F20\u5DF2\u6709\u5DE5\u4F5C ID\u3002" },
12860
12862
  expectedRevision: { type: "integer", minimum: 1, description: "\u66F4\u65B0\u65F6\u4F20\u4E0A\u6B21\u8BFB\u53D6\u7684\u7248\u672C\u3002" },
12861
12863
  changeId: { type: "string", description: "\u6BCF\u6B21\u4E0D\u540C\u903B\u8F91\u8BF7\u6C42\u4F7F\u7528\u65B0 ID\uFF1B\u91CD\u8BD5\u4FDD\u6301\u4E0D\u53D8\u3002\u65E0\u53D8\u5316\u4E0D\u8BB0\u5F55\u53BB\u91CD\u56DE\u6267\u3002" },
12862
- patch: { type: "object", description: "\u521B\u5EFA\u9ED8\u8BA4 active\uFF1B\u72B6\u6001\u6309\u6765\u6E90\u4F5C\u8BB0\u5F55\u8005\u5224\u65AD\uFF0C\u4E0D\u662F\u884C\u52A8\u6388\u6743\u6216\u9A8C\u6536\u3002", properties: { goal: { type: "string" }, constraints: { type: "array", items: { type: "string" } }, openItems: { type: "array", items: { type: "string" } }, nextStep: { type: "string" }, status: { type: "string", enum: ["active", "paused", "completed", "cancelled"] } } },
12864
+ patch: { type: "object", description: "\u4EC5 mode=work \u65F6\u7528\u3002\u65B0\u5EFA\u5DE5\u4F5C\u5FC5\u586B\u975E\u7A7A goal\uFF1B\u66F4\u65B0\u5DF2\u6709\u5DE5\u4F5C\u53EF\u7701\u7565 goal \u800C\u6CBF\u7528\u65E7\u503C\u3002\u72B6\u6001\u6309\u6765\u6E90\u4F5C\u8BB0\u5F55\u8005\u5224\u65AD\uFF0C\u4E0D\u662F\u884C\u52A8\u6388\u6743\u6216\u9A8C\u6536\u3002", properties: { goal: { type: "string", description: "\u65B0\u5EFA\u5FC5\u586B\uFF1B\u66F4\u65B0\u53EF\u7701\u7565\u3002\u4F20\u5165\u65F6\u4E0D\u5F97\u4E3A\u7A7A\u6216\u7EAF\u7A7A\u767D\uFF0C\u957F\u5EA6 \u2264 4096\u3002" }, constraints: { type: "array", items: { type: "string" } }, openItems: { type: "array", items: { type: "string" } }, nextStep: { type: "string" }, status: { type: "string", enum: ["active", "paused", "completed", "cancelled"] } } },
12863
12865
  content: {
12864
12866
  type: "string",
12865
12867
  description: "\u8981\u8BB0\u4F4F\u7684\u5185\u5BB9\u3002\u8BF7\u5199\u6210\u4E00\u53E5\u672A\u6765\u4ECD\u7136\u53EF\u7406\u89E3\u7684\u7B80\u6D01\u63CF\u8FF0\uFF0C\u4F8B\u5982\u201C\u8FD9\u4E2A\u7528\u6237\u5728\u590D\u6742\u95EE\u9898\u91CC\u66F4\u559C\u6B22\u5148\u770B\u7ED3\u8BBA\u201D\u3002"
@@ -15056,7 +15058,10 @@ async function startAgentRunFunc(args, thunkApi, context2) {
15056
15058
  ...taskPreview ? { taskPreview } : {},
15057
15059
  ...title ? { title } : {},
15058
15060
  payloadMetrics,
15059
- selectionCheck
15061
+ selectionCheck,
15062
+ // 近场行动约束(与 workspaceShell 的 detach 回执同源):
15063
+ // 同类规则在静态提示词里已重复 5 处仍会被稀释,这里放到决策点旁边。
15064
+ turnAction: "This run is tracked. Do NOT end this turn to wait if any other independent authorized work remains \u2014 invoke tools for it now. End the turn only when no independent work is left."
15060
15065
  },
15061
15066
  displayData: formatStartRunCard(resolveRunLabel(identity), status, {
15062
15067
  task: taskPreview,
@@ -19396,7 +19401,7 @@ async function updateDocFunc(args, thunkApi) {
19396
19401
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
19397
19402
  };
19398
19403
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
19399
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-A4UDG56G.js");
19404
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-7QNJWRJ2.js");
19400
19405
  if (getDocState().pageKey === id) {
19401
19406
  applyExternalDocUpdate({
19402
19407
  slateData: finalSlateData,
@@ -19421,7 +19426,7 @@ async function updateDocFunc(args, thunkApi) {
19421
19426
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
19422
19427
  async function dispatchSetSettings(thunkApi, changes) {
19423
19428
  const injectedSetSettings = thunkApi?.extra?.setSettings;
19424
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-T4FXSV6M.js")).setSettings;
19429
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-IHXUF276.js")).setSettings;
19425
19430
  await thunkApi.dispatch(setSettings(changes)).unwrap();
19426
19431
  }
19427
19432
  var updateUserPreferenceProfileFunctionSchema = {
@@ -458,7 +458,7 @@ var slice = createSliceWithThunks({
458
458
  const overrides = {};
459
459
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
460
460
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
461
- const { _executeModel } = await import("./_executeModel-H72XB2UR.js");
461
+ const { _executeModel } = await import("./_executeModel-F4MT6OPO.js");
462
462
  return _executeModel(
463
463
  {
464
464
  isStreaming: args.isStreaming ?? false,
@@ -479,7 +479,7 @@ var slice = createSliceWithThunks({
479
479
  * - 循环直到无工具调用或触发其他运行时停止条件
480
480
  */
481
481
  runAgent: create.asyncThunk(async (args, thunkApi) => {
482
- const { runAgentClientLoop } = await import("./runAgentClientLoop-HHKMRV4B.js");
482
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-7D7UCAS2.js");
483
483
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
484
484
  {
485
485
  agentKey: args.agentKey,
@@ -495,7 +495,7 @@ var slice = createSliceWithThunks({
495
495
  * 聊天轮次流式 Agent 调用
496
496
  */
497
497
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
498
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-URBDXKCY.js");
498
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-DVTOINT3.js");
499
499
  return streamAgentChatTurnHandler(args, thunkApi);
500
500
  }),
501
501
  /**
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-KABDRAUT.js";
8
+ } from "./chunk-I3J7HO3U.js";
9
9
  import {
10
10
  CONFIRMATION_INPUT_KEYS,
11
11
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -14,11 +14,11 @@ import {
14
14
  performFetchRequest,
15
15
  sanitizeOutboundMessages,
16
16
  stripModelToolArgs
17
- } from "./chunk-3IQEZYPF.js";
17
+ } from "./chunk-OKKA4BCM.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-VFXMN3QM.js";
21
+ } from "./chunk-7IQA2VJF.js";
22
22
  import {
23
23
  createSSEParser,
24
24
  createToolRunId,
@@ -27,7 +27,7 @@ import {
27
27
  toolRunSetPending,
28
28
  toolRunStarted,
29
29
  toolRunSucceeded
30
- } from "./chunk-RMA5H7R5.js";
30
+ } from "./chunk-PGDM7AM2.js";
31
31
  import {
32
32
  addToolMessage,
33
33
  messageStreamEnd,
@@ -35,10 +35,10 @@ import {
35
35
  toast,
36
36
  toolResultNeedsUserConfirmation,
37
37
  updateToolMessage
38
- } from "./chunk-A6BALTVL.js";
38
+ } from "./chunk-YQO5UKHP.js";
39
39
  import {
40
40
  streamAgentChatTurn
41
- } from "./chunk-JT4HJLIL.js";
41
+ } from "./chunk-AKWA6PCE.js";
42
42
  import {
43
43
  getCurrentSpaceId
44
44
  } from "./chunk-FFFKAOJN.js";
@@ -93,7 +93,7 @@ import {
93
93
  isCompleteInstructionOutput,
94
94
  sanitizeToolOutputText,
95
95
  scrubSecrets
96
- } from "./chunk-WFGNWWJI.js";
96
+ } from "./chunk-CDIRKCPD.js";
97
97
  import {
98
98
  EMPTY_ASSISTANT_REPAIR_PROMPT
99
99
  } from "./chunk-LTVEOOZL.js";
@@ -2,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-CIUZXD5D.js";
5
+ } from "./chunk-KJDN2YRH.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-GBWGPTA7.js";