nolo-cli 0.198.0-alpha.2 → 0.199.0-alpha.1

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 (65) hide show
  1. package/{_executeModel-3D4HLADO.js → _executeModel-KGMFBND7.js} +15 -16
  2. package/{agentDeleteCommand-EXBU3PZJ.js → agentDeleteCommand-ITQN4QLD.js} +15 -15
  3. package/{agentEmailCommands-3T7NAJHR.js → agentEmailCommands-3LDZFOFC.js} +17 -17
  4. package/{agentListCommands-AFR6XDWI.js → agentListCommands-SW3QUAOF.js} +1 -1
  5. package/{agentMachineCommands-JXXDCTG5.js → agentMachineCommands-QH2BUSWC.js} +2 -2
  6. package/{agentRecordCommands-RLHYIRGY.js → agentRecordCommands-NE36A7IH.js} +16 -16
  7. package/{agentRunCommand-7KO6SQPF.js → agentRunCommand-KNNJSEDV.js} +17 -17
  8. package/{agentRuntimeLocal-N7LXMTFO.js → agentRuntimeLocal-FZQTLBN6.js} +1 -1
  9. package/{agentSlice-JFRZAKR4.js → agentSlice-CB25SUJB.js} +1 -1
  10. package/{appDeleteCommands-IVQD7JC4.js → appDeleteCommands-TUCRDFU2.js} +1 -1
  11. package/{appDeployCommands-PXFX5INY.js → appDeployCommands-BQCYEC3R.js} +1 -1
  12. package/{appDeployStatusCommands-PWQEL3ED.js → appDeployStatusCommands-SX26DRSV.js} +1 -1
  13. package/{appGetCommands-GJHFSJMP.js → appGetCommands-CDFTFOOZ.js} +1 -1
  14. package/{appListCommands-ARUY6PBR.js → appListCommands-7ARRUYU3.js} +1 -1
  15. package/{builtinSkillRegistry-7MBUY5EY.js → builtinSkillRegistry-36WIAYXB.js} +2 -3
  16. package/{chunk-X26GHKRS.js → chunk-4BBAP7E4.js} +1 -1
  17. package/{chunk-3Z7KHXVE.js → chunk-4G5YV3EG.js} +19 -9
  18. package/{chunk-SM56M7N7.js → chunk-6OEPWZV7.js} +38 -4
  19. package/{chunk-UL57BAAE.js → chunk-6YJA5FPA.js} +3 -3
  20. package/{chunk-MKDEI64N.js → chunk-74YOBGG6.js} +3 -3
  21. package/{chunk-VYNMQ6HW.js → chunk-76OXA55E.js} +75 -0
  22. package/{chunk-HGS3XV5K.js → chunk-C4RTTV4V.js} +1 -1
  23. package/{chunk-RYPJRIFF.js → chunk-DEOPS4PJ.js} +4 -79
  24. package/{chunk-S5DELBWY.js → chunk-E7B4CR5M.js} +3 -3
  25. package/{chunk-HN3XRWSP.js → chunk-GQ3QPQEP.js} +2 -2
  26. package/{chunk-YQH5IYWZ.js → chunk-IYI5Y74S.js} +7 -7
  27. package/{chunk-7MB72UW6.js → chunk-JNRGTW6S.js} +13 -13
  28. package/{chunk-POEYAIBT.js → chunk-KJZFDQF3.js} +8 -8
  29. package/{chunk-OYZLT2BN.js → chunk-LKZ7FZTI.js} +3 -3
  30. package/{chunk-TXQ5BC57.js → chunk-MQKPELXS.js} +2 -2
  31. package/{chunk-5HAPEKNH.js → chunk-O2H2Z7U4.js} +82 -15
  32. package/{chunk-L577NIDI.js → chunk-R33OLTYJ.js} +1 -1
  33. package/{chunk-MGFRMNK5.js → chunk-RJVYCYLQ.js} +8 -8
  34. package/{chunk-4SEOTTFQ.js → chunk-RMRLWIQS.js} +2 -2
  35. package/{chunk-JW2GK3KC.js → chunk-RRKJTPWB.js} +3 -3
  36. package/{chunk-2WVRUUXO.js → chunk-SYGZQMC2.js} +30 -10
  37. package/{chunk-W7JWTQTJ.js → chunk-TDVJP4KY.js} +1 -1
  38. package/{chunk-INFHX73M.js → chunk-TS2LLPTD.js} +1 -1
  39. package/chunk-TYQAGKPR.js +57 -0
  40. package/{commandRegistry-A4AXQVI6.js → commandRegistry-5IWG5Y44.js} +40 -40
  41. package/{contentThunks-6BAKBO7Q.js → contentThunks-HLK4P4WY.js} +3 -3
  42. package/{createAgentAutomationAction-HJWAZ7RX.js → createAgentAutomationAction-PGEMZSPA.js} +3 -3
  43. package/{createDialogAction-BDI3T4C7.js → createDialogAction-3YFKJAL3.js} +5 -6
  44. package/{createPageAction-P5NL5NIZ.js → createPageAction-3DYXFT6A.js} +3 -3
  45. package/{dialogCommands-HA674SBZ.js → dialogCommands-VPPMDS7O.js} +1 -1
  46. package/{dialogSlice-UZXUHU3F.js → dialogSlice-7MTH65XY.js} +2 -2
  47. package/{docCreateCommands-GIUFPKTR.js → docCreateCommands-RBSXLMXE.js} +1 -1
  48. package/{docDeleteCommands-J5CEAHTI.js → docDeleteCommands-KNDHZJ5P.js} +1 -1
  49. package/{docReadCommands-JNMDIG7M.js → docReadCommands-WOPIYED3.js} +1 -1
  50. package/{docStore-624W4Z63.js → docStore-GUGX22ZK.js} +1 -1
  51. package/{docUpdateCommands-NMC2U3X5.js → docUpdateCommands-4QEUPC27.js} +1 -1
  52. package/{handleSendMessageAction-LTXSYSV6.js → handleSendMessageAction-VNFSQCOL.js} +14 -13
  53. package/index.js +3 -3
  54. package/{localRuntimeAdapter-TXW7C4C6.js → localRuntimeAdapter-55YKDA6C.js} +15 -15
  55. package/{machineCommands-NA7OPUFC.js → machineCommands-PLM7EYGX.js} +16 -16
  56. package/{machineWsRunDispatch-H5BYGTVO.js → machineWsRunDispatch-5GAWU7VZ.js} +16 -16
  57. package/package.json +1 -1
  58. package/{readlineWorkspace-6P3HJ6GO.js → readlineWorkspace-ZQBXJDCB.js} +17 -17
  59. package/{runAgentClientLoop-GSEMKTPY.js → runAgentClientLoop-P56EMBCN.js} +13 -14
  60. package/{settingThunks-GH326IL5.js → settingThunks-MH2OF52M.js} +22 -2
  61. package/{spaceCommands-AC5MPPXS.js → spaceCommands-E7DW3KLI.js} +1 -1
  62. package/{streamAgentChatTurn-6UMDQLPT.js → streamAgentChatTurn-45SHUYWK.js} +17 -17
  63. package/{tools-3GCMXU2R.js → tools-WFX2BG5Y.js} +10 -11
  64. package/{updateDialogTitleAction-SO5P7F64.js → updateDialogTitleAction-3HRLWCWE.js} +3 -3
  65. package/chunk-EUGTFFO6.js +0 -42
@@ -1,7 +1,3 @@
1
- import {
2
- SYSTEM_AGENT_CAPABILITIES,
3
- SYSTEM_AGENT_CAPABILITY_IDS
4
- } from "./chunk-EUGTFFO6.js";
5
1
  import {
6
2
  buildSkillDocMarkdown
7
3
  } from "./chunk-AETZ7AD6.js";
@@ -12,6 +8,43 @@ import {
12
8
  createKey
13
9
  } from "./chunk-ECX3NKRD.js";
14
10
 
11
+ // packages/ai/tools/agentCapabilities.ts
12
+ var SYSTEM_AGENT_CAPABILITIES = [
13
+ {
14
+ id: "web-search",
15
+ label: "\u8054\u7F51\u641C\u7D22",
16
+ description: "\u8BA9 agent \u80FD\u641C\u7D22\u4E92\u8054\u7F51\u3001\u6293\u53D6\u7F51\u9875\u5185\u5BB9\uFF0C\u83B7\u53D6\u6700\u65B0\u4FE1\u606F\u3002",
17
+ tools: ["exa_search", "fetchWebpage"],
18
+ defaultEnabled: true,
19
+ icon: "\u{1F310}"
20
+ },
21
+ {
22
+ id: "web-scrape",
23
+ label: "\u6DF1\u5EA6\u7F51\u9875\u6293\u53D6",
24
+ 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",
25
+ tools: ["firecrawl_search", "firecrawl_scrape"],
26
+ defaultEnabled: false,
27
+ icon: "\u{1F578}\uFE0F"
28
+ },
29
+ {
30
+ id: "agent-orchestration",
31
+ label: "\u591A agent \u7F16\u6392",
32
+ 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",
33
+ tools: ["startAgentRun", "controlAgentRun", "listAgents", "listRuntimes"],
34
+ defaultEnabled: true,
35
+ icon: "\u{1F9E9}"
36
+ }
37
+ ];
38
+ var SYSTEM_AGENT_CAPABILITY_IDS = SYSTEM_AGENT_CAPABILITIES.map(
39
+ ({ id }) => id
40
+ );
41
+ var DEFAULT_SYSTEM_AGENT_CAPABILITIES = Object.fromEntries(
42
+ SYSTEM_AGENT_CAPABILITIES.map(({ id, defaultEnabled }) => [
43
+ id,
44
+ defaultEnabled
45
+ ])
46
+ );
47
+
15
48
  // packages/ai/tools/codeWorkDiscipline.ts
16
49
  var CODE_WORK_DISCIPLINE_BODY = `## \u6548\u7387\u4F18\u5148\uFF08\u7701 token\uFF09
17
50
  - \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
@@ -578,6 +611,7 @@ ${def.description}`,
578
611
  }
579
612
 
580
613
  export {
614
+ DEFAULT_SYSTEM_AGENT_CAPABILITIES,
581
615
  buildCodeWorkDiscipline,
582
616
  TOOL_PACKS,
583
617
  CAPABILITY_PACKS,
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-HS7MLR74.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-OYZLT2BN.js";
6
+ } from "./chunk-LKZ7FZTI.js";
7
7
  import {
8
8
  fetchServerSyncedCredential
9
- } from "./chunk-S5DELBWY.js";
9
+ } from "./chunk-E7B4CR5M.js";
10
10
  import {
11
11
  buildSkillGuidancePromptBlock
12
- } from "./chunk-5HAPEKNH.js";
12
+ } from "./chunk-O2H2Z7U4.js";
13
13
  import {
14
14
  CREDENTIAL_HYGIENE_RULE,
15
15
  DELETE_SAFETY_RED_LINE,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-2WVRUUXO.js";
4
+ } from "./chunk-SYGZQMC2.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-RYPJRIFF.js";
7
+ } from "./chunk-DEOPS4PJ.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-X26GHKRS.js";
10
+ } from "./chunk-4BBAP7E4.js";
11
11
  import {
12
12
  applyToolSurfaceConstraints
13
13
  } from "./chunk-NABJEYPJ.js";
@@ -1,9 +1,16 @@
1
+ import {
2
+ resolveBuiltinCapability,
3
+ resolveBuiltinSkillEntry
4
+ } from "./chunk-O2H2Z7U4.js";
1
5
  import {
2
6
  noloAgentId
3
7
  } from "./chunk-Y6ORVLSS.js";
4
8
  import {
5
9
  normalizeServerOrigin
6
10
  } from "./chunk-CF7PE763.js";
11
+ import {
12
+ asTrimmedNonEmptyStringArray
13
+ } from "./chunk-I42VC5KR.js";
7
14
 
8
15
  // packages/ai/policy/types.ts
9
16
  var DEFAULT_AGENT_BASE_POLICY = {
@@ -77,6 +84,71 @@ var normalizeSystemBuiltinSkills = (value, defaults) => {
77
84
  return result;
78
85
  };
79
86
 
87
+ // packages/ai/tools/agentSkillConfig.ts
88
+ var MODES = [
89
+ "required",
90
+ "recommended",
91
+ "disabled"
92
+ ];
93
+ var DEFAULT_RECOMMENDED_SKILL_SLUGS = [
94
+ "worktree-isolation",
95
+ "systematic-investigation",
96
+ "show-me",
97
+ // 凭据管理:仓库已有 nolo secret(set/list/run/bind),但技能发现只扫
98
+ // `.agents/skills`,内置的 secrets-manager 不会出现在"可用技能"里。放进默认
99
+ // 提示名单让它至少以一行提示出现(不授工具、不放宽权限)。
100
+ "secrets-manager"
101
+ ];
102
+ var asMode = (value) => typeof value === "string" && MODES.includes(value) ? value : null;
103
+ var resolveAgentSkillConfig = (source) => {
104
+ const out = {};
105
+ const skills = source?.skills;
106
+ if (skills && typeof skills === "object" && !Array.isArray(skills)) {
107
+ for (const [rawSlug, rawMode] of Object.entries(skills)) {
108
+ const slug = typeof rawSlug === "string" ? rawSlug.trim() : "";
109
+ const mode = asMode(rawMode);
110
+ if (slug && mode) out[slug] = mode;
111
+ }
112
+ return out;
113
+ }
114
+ for (const slug of asTrimmedNonEmptyStringArray(source?.enabledPacks) ?? []) {
115
+ out[slug] = "required";
116
+ }
117
+ return out;
118
+ };
119
+ var resolveAgentRequiredPackIds = (source) => {
120
+ const config = resolveAgentSkillConfig(source);
121
+ return Object.keys(config).filter((slug) => config[slug] === "required");
122
+ };
123
+ var resolveAgentRecommendedSkillNames = (source, lookup) => {
124
+ const config = resolveAgentSkillConfig(source);
125
+ const resolve = lookup ?? defaultSkillTitleLookup;
126
+ const seen = /* @__PURE__ */ new Set();
127
+ const out = [];
128
+ const push = (slug) => {
129
+ const title = resolve(slug)?.title || slug;
130
+ if (seen.has(title)) return;
131
+ seen.add(title);
132
+ out.push(title);
133
+ };
134
+ for (const slug of Object.keys(config)) {
135
+ if (config[slug] !== "recommended") continue;
136
+ push(slug);
137
+ }
138
+ for (const slug of DEFAULT_RECOMMENDED_SKILL_SLUGS) {
139
+ if (Object.hasOwn(config, slug)) continue;
140
+ push(slug);
141
+ }
142
+ return out;
143
+ };
144
+ var defaultSkillTitleLookup = (slug) => {
145
+ const cap = resolveBuiltinCapability(slug);
146
+ if (cap) return { title: cap.title };
147
+ const skill = resolveBuiltinSkillEntry(slug);
148
+ return skill ? { title: skill.title } : null;
149
+ };
150
+ var isAgentSkillDisabled = (source, slug) => resolveAgentSkillConfig(source)[slug] === "disabled";
151
+
80
152
  // packages/ai/policy/selfUpdateFields.ts
81
153
  var AGENT_UPDATE_FIELD_NAMES = [
82
154
  "name",
@@ -121,6 +193,9 @@ var normalizeAgentUpdateFieldList = (value, fallback = DEFAULT_AUTO_APPROVED_SEL
121
193
  };
122
194
 
123
195
  export {
196
+ resolveAgentRequiredPackIds,
197
+ resolveAgentRecommendedSkillNames,
198
+ isAgentSkillDisabled,
124
199
  DEFAULT_AGENT_BASE_POLICY,
125
200
  DEFAULT_USER_PREFERENCE_PROFILE,
126
201
  AGENT_UPDATE_FIELD_NAMES,
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-6WZQGT5X.js";
17
17
  import {
18
18
  clearCliLocalRuntimePreparedAgentCache
19
- } from "./chunk-2WVRUUXO.js";
19
+ } from "./chunk-SYGZQMC2.js";
20
20
  import {
21
21
  readCredentialAvailability
22
22
  } from "./chunk-HAB2UDLT.js";
@@ -5,10 +5,10 @@ import {
5
5
  normalizePolicyLevelSetting,
6
6
  normalizeSystemBuiltinSkills,
7
7
  normalizeTonePresetSetting
8
- } from "./chunk-VYNMQ6HW.js";
8
+ } from "./chunk-76OXA55E.js";
9
9
  import {
10
10
  fetchAndCacheTableRows
11
- } from "./chunk-W7JWTQTJ.js";
11
+ } from "./chunk-TDVJP4KY.js";
12
12
  import {
13
13
  require_react
14
14
  } from "./chunk-YDH3FDFQ.js";
@@ -19,19 +19,12 @@ import {
19
19
  import {
20
20
  selectIdentityUserId
21
21
  } from "./chunk-PXYBUFDB.js";
22
- import {
23
- resolveBuiltinCapability,
24
- resolveBuiltinSkillEntry
25
- } from "./chunk-5HAPEKNH.js";
26
22
  import {
27
23
  DEFAULT_SYSTEM_AGENT_CAPABILITIES
28
- } from "./chunk-EUGTFFO6.js";
24
+ } from "./chunk-6OEPWZV7.js";
29
25
  import {
30
26
  toErrorMessage
31
27
  } from "./chunk-HNMXYYJR.js";
32
- import {
33
- asTrimmedNonEmptyStringArray
34
- } from "./chunk-I42VC5KR.js";
35
28
  import {
36
29
  asOptionalTrimmedString
37
30
  } from "./chunk-G3SUCT4W.js";
@@ -278,71 +271,6 @@ ${block.question.choices.map((item) => `- ${item.label}${item.detail ? ` \u2014
278
271
  }).join("\n\n");
279
272
  }
280
273
 
281
- // packages/ai/tools/agentSkillConfig.ts
282
- var MODES = [
283
- "required",
284
- "recommended",
285
- "disabled"
286
- ];
287
- var DEFAULT_RECOMMENDED_SKILL_SLUGS = [
288
- "worktree-isolation",
289
- "systematic-investigation",
290
- "show-me",
291
- // 凭据管理:仓库已有 nolo secret(set/list/run/bind),但技能发现只扫
292
- // `.agents/skills`,内置的 secrets-manager 不会出现在"可用技能"里。放进默认
293
- // 提示名单让它至少以一行提示出现(不授工具、不放宽权限)。
294
- "secrets-manager"
295
- ];
296
- var asMode = (value) => typeof value === "string" && MODES.includes(value) ? value : null;
297
- var resolveAgentSkillConfig = (source) => {
298
- const out = {};
299
- const skills = source?.skills;
300
- if (skills && typeof skills === "object" && !Array.isArray(skills)) {
301
- for (const [rawSlug, rawMode] of Object.entries(skills)) {
302
- const slug = typeof rawSlug === "string" ? rawSlug.trim() : "";
303
- const mode = asMode(rawMode);
304
- if (slug && mode) out[slug] = mode;
305
- }
306
- return out;
307
- }
308
- for (const slug of asTrimmedNonEmptyStringArray(source?.enabledPacks) ?? []) {
309
- out[slug] = "required";
310
- }
311
- return out;
312
- };
313
- var resolveAgentRequiredPackIds = (source) => {
314
- const config = resolveAgentSkillConfig(source);
315
- return Object.keys(config).filter((slug) => config[slug] === "required");
316
- };
317
- var resolveAgentRecommendedSkillNames = (source, lookup) => {
318
- const config = resolveAgentSkillConfig(source);
319
- const resolve = lookup ?? defaultSkillTitleLookup;
320
- const seen = /* @__PURE__ */ new Set();
321
- const out = [];
322
- const push = (slug) => {
323
- const title = resolve(slug)?.title || slug;
324
- if (seen.has(title)) return;
325
- seen.add(title);
326
- out.push(title);
327
- };
328
- for (const slug of Object.keys(config)) {
329
- if (config[slug] !== "recommended") continue;
330
- push(slug);
331
- }
332
- for (const slug of DEFAULT_RECOMMENDED_SKILL_SLUGS) {
333
- if (Object.hasOwn(config, slug)) continue;
334
- push(slug);
335
- }
336
- return out;
337
- };
338
- var defaultSkillTitleLookup = (slug) => {
339
- const cap = resolveBuiltinCapability(slug);
340
- if (cap) return { title: cap.title };
341
- const skill = resolveBuiltinSkillEntry(slug);
342
- return skill ? { title: skill.title } : null;
343
- };
344
- var isAgentSkillDisabled = (source, slug) => resolveAgentSkillConfig(source)[slug] === "disabled";
345
-
346
274
  // packages/core/clipMultilineText.ts
347
275
  function clipMultilineText(value, max) {
348
276
  const trimmed = value.trim();
@@ -521,7 +449,7 @@ var executeToolRun = createAsyncThunk(
521
449
  if (!executionInput) {
522
450
  throw new Error(`ToolRun ${id} has no input to execute with.`);
523
451
  }
524
- const { findToolExecutor } = await import("./tools-3GCMXU2R.js");
452
+ const { findToolExecutor } = await import("./tools-WFX2BG5Y.js");
525
453
  const { executor } = findToolExecutor(run.toolName);
526
454
  toolRunStarted({
527
455
  id: run.id,
@@ -573,9 +501,6 @@ export {
573
501
  uiCardFallback,
574
502
  createSSEParser,
575
503
  waitForAbortableDelay,
576
- resolveAgentRequiredPackIds,
577
- resolveAgentRecommendedSkillNames,
578
- isAgentSkillDisabled,
579
504
  clipMultilineText,
580
505
  fetchAndSerializeTable,
581
506
  selectMaxExecutionTime,
@@ -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-3D4HLADO.js");
461
+ const { _executeModel } = await import("./_executeModel-KGMFBND7.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-GSEMKTPY.js");
482
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-P56EMBCN.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-6UMDQLPT.js");
498
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-45SHUYWK.js");
499
499
  return streamAgentChatTurnHandler(args, thunkApi);
500
500
  }),
501
501
  /**
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-OYZLT2BN.js";
4
+ } from "./chunk-LKZ7FZTI.js";
5
5
  import {
6
6
  updateTokensAction
7
- } from "./chunk-MGFRMNK5.js";
7
+ } from "./chunk-RJVYCYLQ.js";
8
8
  import {
9
9
  applyUpdateTokensFulfilled
10
10
  } from "./chunk-OWYYDMGJ.js";
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-4SEOTTFQ.js";
8
+ } from "./chunk-RMRLWIQS.js";
9
9
  import {
10
10
  CONFIRMATION_INPUT_KEYS,
11
11
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -14,16 +14,16 @@ import {
14
14
  performFetchRequest,
15
15
  sanitizeOutboundMessages,
16
16
  stripModelToolArgs
17
- } from "./chunk-UL57BAAE.js";
17
+ } from "./chunk-6YJA5FPA.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-7MB72UW6.js";
21
+ } from "./chunk-JNRGTW6S.js";
22
22
  import {
23
23
  classifyApiError,
24
24
  classifyGenerationError,
25
25
  extractErrorDiagnostics
26
- } from "./chunk-OYZLT2BN.js";
26
+ } from "./chunk-LKZ7FZTI.js";
27
27
  import {
28
28
  createSSEParser,
29
29
  createToolRunId,
@@ -32,7 +32,7 @@ import {
32
32
  toolRunSetPending,
33
33
  toolRunStarted,
34
34
  toolRunSucceeded
35
- } from "./chunk-RYPJRIFF.js";
35
+ } from "./chunk-DEOPS4PJ.js";
36
36
  import {
37
37
  getPublicImageAgentMode
38
38
  } from "./chunk-VIDPVFP3.js";
@@ -45,10 +45,10 @@ import {
45
45
  messageStreaming,
46
46
  toolResultNeedsUserConfirmation,
47
47
  updateToolMessage
48
- } from "./chunk-MGFRMNK5.js";
48
+ } from "./chunk-RJVYCYLQ.js";
49
49
  import {
50
50
  streamAgentChatTurn
51
- } from "./chunk-S5DELBWY.js";
51
+ } from "./chunk-E7B4CR5M.js";
52
52
  import {
53
53
  addActiveController,
54
54
  removeActiveController,
@@ -32,13 +32,12 @@ import {
32
32
  clipMultilineText,
33
33
  createSSEParser,
34
34
  fetchAndSerializeTable,
35
- isAgentSkillDisabled,
36
35
  parseUiCard,
37
36
  selectAutoApproveSelfUpdateFields,
38
37
  toolRunUpdated,
39
38
  uiCardFallback,
40
39
  waitForAbortableDelay
41
- } from "./chunk-RYPJRIFF.js";
40
+ } from "./chunk-DEOPS4PJ.js";
42
41
  import {
43
42
  isGatewayHttpStatus
44
43
  } from "./chunk-NF64D32W.js";
@@ -51,11 +50,12 @@ import {
51
50
  } from "./chunk-3L2WKC3W.js";
52
51
  import {
53
52
  AGENT_UPDATE_FIELD_NAMES,
53
+ isAgentSkillDisabled,
54
54
  normalizeAgentUpdateFieldList
55
- } from "./chunk-VYNMQ6HW.js";
55
+ } from "./chunk-76OXA55E.js";
56
56
  import {
57
57
  createDocState
58
- } from "./chunk-TXQ5BC57.js";
58
+ } from "./chunk-MQKPELXS.js";
59
59
  import {
60
60
  ToolApiError,
61
61
  buildToolRequestHeaders,
@@ -82,7 +82,7 @@ import {
82
82
  } from "./chunk-63W5N6P3.js";
83
83
  import {
84
84
  createDialogAction
85
- } from "./chunk-JW2GK3KC.js";
85
+ } from "./chunk-RRKJTPWB.js";
86
86
  import {
87
87
  DEFAULT_COLLAPSED_CATEGORIES,
88
88
  addContentToSpace,
@@ -99,7 +99,7 @@ import {
99
99
  updateContentCategory,
100
100
  updateContentTitle,
101
101
  writeStoredCollapsedCategories
102
- } from "./chunk-W7JWTQTJ.js";
102
+ } from "./chunk-TDVJP4KY.js";
103
103
  import {
104
104
  getCurrentSpaceId,
105
105
  getCurrentSpaceIdRaw,
@@ -122,14 +122,14 @@ import {
122
122
  selectMsgById,
123
123
  uiAskChoiceFunc,
124
124
  uiAskChoiceFunctionSchema
125
- } from "./chunk-MGFRMNK5.js";
125
+ } from "./chunk-RJVYCYLQ.js";
126
126
  import {
127
127
  createAgent,
128
128
  deleteServerSyncedCredential,
129
129
  runLlm,
130
130
  streamAgentChatTurn,
131
131
  updateAgent
132
- } from "./chunk-S5DELBWY.js";
132
+ } from "./chunk-E7B4CR5M.js";
133
133
  import {
134
134
  buildMediaToolConfirmation,
135
135
  normalizeMediaConfirmExecutionRevision
@@ -199,10 +199,10 @@ import {
199
199
  import {
200
200
  listBuiltinSkills,
201
201
  resolveBuiltinSkillByName
202
- } from "./chunk-5HAPEKNH.js";
202
+ } from "./chunk-O2H2Z7U4.js";
203
203
  import {
204
204
  CAPABILITY_PACKS
205
- } from "./chunk-SM56M7N7.js";
205
+ } from "./chunk-6OEPWZV7.js";
206
206
  import {
207
207
  buildSkillDocMarkdown,
208
208
  normalizeSkillModalities,
@@ -3884,7 +3884,7 @@ async function deleteDialogsFunc(args, thunkApi) {
3884
3884
  const deletedDialogIds = [];
3885
3885
  const deletedDialogKeys = [];
3886
3886
  const failures = [];
3887
- const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-UZXUHU3F.js");
3887
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-7MTH65XY.js");
3888
3888
  for (const target of targets) {
3889
3889
  try {
3890
3890
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -18590,7 +18590,7 @@ async function updateDocFunc(args, thunkApi) {
18590
18590
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
18591
18591
  };
18592
18592
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
18593
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-624W4Z63.js");
18593
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-GUGX22ZK.js");
18594
18594
  if (getDocState().pageKey === id) {
18595
18595
  applyExternalDocUpdate({
18596
18596
  slateData: finalSlateData,
@@ -18615,7 +18615,7 @@ async function updateDocFunc(args, thunkApi) {
18615
18615
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
18616
18616
  async function dispatchSetSettings(thunkApi, changes) {
18617
18617
  const injectedSetSettings = thunkApi?.extra?.setSettings;
18618
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-GH326IL5.js")).setSettings;
18618
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-MH2OF52M.js")).setSettings;
18619
18619
  await thunkApi.dispatch(setSettings(changes)).unwrap();
18620
18620
  }
18621
18621
  var updateUserPreferenceProfileFunctionSchema = {
@@ -9,7 +9,7 @@ import {
9
9
  resolveRawAgentInput,
10
10
  resolveServerUrl,
11
11
  writeUsage
12
- } from "./chunk-L577NIDI.js";
12
+ } from "./chunk-R33OLTYJ.js";
13
13
  import {
14
14
  parsePositiveFiniteNumberOrFallback
15
15
  } from "./chunk-Y5GCAMGP.js";
@@ -38,7 +38,7 @@ import {
38
38
  resolveFileWriteGateEnabled,
39
39
  resolveLocalUserId,
40
40
  validateInstaboxWorkspaceSelection
41
- } from "./chunk-2WVRUUXO.js";
41
+ } from "./chunk-SYGZQMC2.js";
42
42
  import {
43
43
  clearCredentialAvailability,
44
44
  readEffectiveCredentialEntry,
@@ -72,14 +72,14 @@ import {
72
72
  } from "./chunk-BMQ2MJUK.js";
73
73
  import {
74
74
  resolveCliLocalRuntimeKeyCapability
75
- } from "./chunk-7MB72UW6.js";
75
+ } from "./chunk-JNRGTW6S.js";
76
76
  import {
77
77
  isTransientFetchError
78
78
  } from "./chunk-KFHREHUQ.js";
79
79
  import {
80
80
  parseUiCard,
81
81
  uiCardFallback
82
- } from "./chunk-RYPJRIFF.js";
82
+ } from "./chunk-DEOPS4PJ.js";
83
83
  import {
84
84
  isGatewayHttpStatus
85
85
  } from "./chunk-NF64D32W.js";
@@ -88,7 +88,7 @@ import {
88
88
  chooseMemoryOwners,
89
89
  loadMemoryCandidatesFromDb,
90
90
  resolveAgentMemoryPolicy
91
- } from "./chunk-JW2GK3KC.js";
91
+ } from "./chunk-RRKJTPWB.js";
92
92
  import {
93
93
  API_REPORTED_COST_MULTIPLIER,
94
94
  estimateMessagesTokens,
@@ -96,7 +96,7 @@ import {
96
96
  resolveAgentContextWindow,
97
97
  resolveOccupancy,
98
98
  resolveOccupancyWindow
99
- } from "./chunk-MGFRMNK5.js";
99
+ } from "./chunk-RJVYCYLQ.js";
100
100
  import {
101
101
  isCliAuthorityBrokerProtocolError,
102
102
  isCliAuthorityBrokerTimeoutError,
@@ -116,7 +116,7 @@ import {
116
116
  LOCAL_AGENT_CONFIG_MISSING_CODE,
117
117
  LOCAL_TURN_ABORTED_CODE,
118
118
  readActionGate
119
- } from "./chunk-X26GHKRS.js";
119
+ } from "./chunk-4BBAP7E4.js";
120
120
  import {
121
121
  resolveAgentRuntimeConfigFromRecord
122
122
  } from "./chunk-N7E3LQ4A.js";
@@ -11378,7 +11378,7 @@ function isBalanceExhaustedError(error) {
11378
11378
 
11379
11379
  // packages/cli/client/agentRun.ts
11380
11380
  async function loadRunLocalAgentTurn() {
11381
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-N7LXMTFO.js");
11381
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-FZQTLBN6.js");
11382
11382
  return runLocalAgentTurn;
11383
11383
  }
11384
11384
  var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
@@ -2,7 +2,7 @@ import {
2
2
  clipMultilineText,
3
3
  fetchAndSerializeTable,
4
4
  waitForAbortableDelay
5
- } from "./chunk-RYPJRIFF.js";
5
+ } from "./chunk-DEOPS4PJ.js";
6
6
  import {
7
7
  isGatewayHttpStatus
8
8
  } from "./chunk-NF64D32W.js";
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-AGIM7IMJ.js";
22
22
  import {
23
23
  fetchAndCacheMessages
24
- } from "./chunk-MGFRMNK5.js";
24
+ } from "./chunk-RJVYCYLQ.js";
25
25
  import {
26
26
  createSpaceKey
27
27
  } from "./chunk-UAD2WT54.js";
@@ -35,7 +35,7 @@ import {
35
35
  extractRuntimePageCapabilities,
36
36
  resolveBuiltinSkillPage,
37
37
  resolveSkillGraphFromRoots
38
- } from "./chunk-5HAPEKNH.js";
38
+ } from "./chunk-O2H2Z7U4.js";
39
39
  import {
40
40
  isAbortError
41
41
  } from "./chunk-7DPNBQSV.js";
@@ -333,7 +333,7 @@ async function saveDocState(arg, { dispatch, getState }) {
333
333
  ).unwrap();
334
334
  if (dbSpaceId) {
335
335
  try {
336
- const { updateContentTitle } = await import("./contentThunks-6BAKBO7Q.js");
336
+ const { updateContentTitle } = await import("./contentThunks-HLK4P4WY.js");
337
337
  await dispatch(
338
338
  updateContentTitle({
339
339
  spaceId: dbSpaceId,
@@ -372,7 +372,7 @@ async function saveDocState(arg, { dispatch, getState }) {
372
372
  }
373
373
  }
374
374
  async function createDocState(args, thunkApi) {
375
- const { createPageAction } = await import("./createPageAction-P5NL5NIZ.js");
375
+ const { createPageAction } = await import("./createPageAction-3DYXFT6A.js");
376
376
  return createPageAction(args, thunkApi);
377
377
  }
378
378
  function subscribe(listener) {