nolo-cli 0.249.0-alpha.1 → 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-IJLWI2HH.js → _executeModel-F4MT6OPO.js} +20 -20
  2. package/{agentDeleteCommand-ULJLNEHW.js → agentDeleteCommand-KKS2Q6WB.js} +27 -27
  3. package/{agentEmailCommands-JATJHJJS.js → agentEmailCommands-UDLBG3BE.js} +27 -27
  4. package/{agentListCommands-HQ6YW7ZE.js → agentListCommands-5ULWKQ3E.js} +14 -14
  5. package/{agentMachineCommands-U56PM7BR.js → agentMachineCommands-IX72KH5L.js} +11 -11
  6. package/{agentRecordCommands-35VKRYFY.js → agentRecordCommands-5OPLKH4R.js} +27 -27
  7. package/{agentRunCommand-MKM7DYNL.js → agentRunCommand-U6AGCU3C.js} +27 -27
  8. package/{agentRunControl-RN2P6AOD.js → agentRunControl-QMWTWV7C.js} +2 -2
  9. package/{agentRuntimeLocal-FIOWO47Y.js → agentRuntimeLocal-KKXJOBD3.js} +8 -8
  10. package/{agentSlice-5NJEWRIO.js → agentSlice-FWYXP332.js} +1 -1
  11. package/{appDeleteCommands-NMU43D3Y.js → appDeleteCommands-ERJK367V.js} +12 -12
  12. package/{appDeployCommands-ICYG4DB2.js → appDeployCommands-LUV6QKQJ.js} +12 -12
  13. package/{appDeployStatusCommands-QBK3FXPB.js → appDeployStatusCommands-WW7IYQD4.js} +12 -12
  14. package/{appGetCommands-C4ABVH3V.js → appGetCommands-G7XYYSFO.js} +12 -12
  15. package/{appListCommands-RQIKFAX6.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-5JZ7FFOO.js → chunk-32WTED6G.js} +8 -10
  19. package/{chunk-RR3MB26M.js → chunk-3IVFGQIM.js} +1 -1
  20. package/{chunk-CTIEJRTP.js → chunk-5BRVDQTX.js} +5 -1
  21. package/{chunk-EZ7Q2XPO.js → chunk-6QL3SUEK.js} +2 -2
  22. package/{chunk-6MTVACLN.js → chunk-75TXQ4GY.js} +4 -38
  23. package/{chunk-XFOZH7NP.js → chunk-7IQA2VJF.js} +21 -16
  24. package/{chunk-OWLQL7CW.js → chunk-AKWA6PCE.js} +3 -3
  25. package/{chunk-KQSX5NJX.js → chunk-ATRU65OK.js} +7 -7
  26. package/{chunk-JEWMQR6J.js → chunk-BQ4CZEVZ.js} +1 -1
  27. package/{chunk-U4LYOYSA.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-4Q252GDP.js → chunk-EVIPLO5D.js} +2 -2
  32. package/{chunk-7DOVWWXO.js → chunk-GIRXQFGW.js} +11 -11
  33. package/{chunk-YK7OTNON.js → chunk-HEIIOJGN.js} +3 -3
  34. package/{chunk-2XIREU2L.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-7QZ2B7RL.js → chunk-LXKK7QFI.js} +2 -2
  39. package/{chunk-AK7V6IDG.js → chunk-OKKA4BCM.js} +4 -4
  40. package/{chunk-YWPPXECC.js → chunk-PGDM7AM2.js} +5 -5
  41. package/{chunk-M7M5QM3I.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-P5Q24OJZ.js → chunk-U7OMQLRE.js} +2 -2
  45. package/{chunk-XSRSAU3O.js → chunk-UR4ZMRV3.js} +3 -3
  46. package/{chunk-4P5ZLADR.js → chunk-VHMPJGT4.js} +2 -2
  47. package/{chunk-OAZP4TSA.js → chunk-VZCBYCHV.js} +1 -1
  48. package/{chunk-PAWBC6HC.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-H7TICFO4.js → chunk-X6LYQDN5.js} +1 -1
  52. package/{chunk-34ZQTND7.js → chunk-XHG7QROB.js} +3 -3
  53. package/{chunk-PO7FTSGP.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-2YV2QQND.js → chunk-ZKMS73DK.js} +2 -2
  57. package/{chunk-PBPXXMWZ.js → chunk-ZTWDSOXD.js} +1 -1
  58. package/{cliLocalAgentRecordReader-SA5LZVMI.js → cliLocalAgentRecordReader-R4CLUHYO.js} +10 -10
  59. package/{commandRegistry-AFWOTN5H.js → commandRegistry-2AUUZC2C.js} +46 -46
  60. package/{contentThunks-3XFPEGLX.js → contentThunks-ZQSZA4GH.js} +3 -3
  61. package/{createAgentAutomationAction-YLP5IJ26.js → createAgentAutomationAction-RQE4F6PR.js} +3 -3
  62. package/{createDialogAction-LV2RAA4A.js → createDialogAction-JDSMQ34U.js} +4 -4
  63. package/{createPageAction-Q7WCMY4P.js → createPageAction-VLF6XCYO.js} +4 -4
  64. package/{dialogCommands-TFPF7PCC.js → dialogCommands-PLM7ZFWH.js} +14 -14
  65. package/{dialogSlice-UPUUJMMH.js → dialogSlice-63DD2ER2.js} +2 -2
  66. package/{docCreateCommands-7MWOJKEE.js → docCreateCommands-BST5DO7L.js} +11 -11
  67. package/{docDeleteCommands-UO3DFGTF.js → docDeleteCommands-YE6G2SO4.js} +12 -12
  68. package/{docReadCommands-RTZXLDMJ.js → docReadCommands-M6T35U3G.js} +11 -11
  69. package/{docStore-KETXRY6J.js → docStore-7QNJWRJ2.js} +1 -1
  70. package/{docUpdateCommands-BPHMJPJX.js → docUpdateCommands-6DFWGPVG.js} +11 -11
  71. package/{handleSendMessageAction-47XS4QHV.js → handleSendMessageAction-FCEFFAV4.js} +14 -14
  72. package/{hostCredentialCreate-ITXE4237.js → hostCredentialCreate-R2Q4EDKF.js} +27 -27
  73. package/index.js +4 -4
  74. package/{localRuntimeAdapter-FCU7BQAX.js → localRuntimeAdapter-AZEBBP33.js} +26 -26
  75. package/{machineCommands-B53U27WZ.js → machineCommands-HQYKFZSQ.js} +27 -27
  76. package/{machineWsRunDispatch-ZBA55H5E.js → machineWsRunDispatch-BQW5G3G3.js} +27 -27
  77. package/package.json +1 -1
  78. package/{projectArchive-GWJTAEK6.js → projectArchive-4XUC5SLF.js} +4 -4
  79. package/{readlineWorkspace-YFTXLYGM.js → readlineWorkspace-JOZQCS6W.js} +34 -34
  80. package/{runAgentClientLoop-7GBH7I5H.js → runAgentClientLoop-7D7UCAS2.js} +18 -18
  81. package/{settingThunks-T4FXSV6M.js → settingThunks-IHXUF276.js} +3 -7
  82. package/{spaceCommands-DQZJ6GLU.js → spaceCommands-WCLD36WH.js} +11 -11
  83. package/{streamAgentChatTurn-2QVGBCVC.js → streamAgentChatTurn-DVTOINT3.js} +22 -22
  84. package/{tools-TL5UMV3N.js → tools-BOPINT5S.js} +14 -14
  85. package/{tuiRestart-EOGC2BYY.js → tuiRestart-5F2APN66.js} +3 -3
  86. package/{updateDialogTitleAction-B3BLRMTZ.js → updateDialogTitleAction-S76PUCLQ.js} +3 -3
  87. package/chunk-YDRRGVT5.js +0 -142
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-34ZQTND7.js";
4
+ } from "./chunk-XHG7QROB.js";
5
5
  import {
6
6
  updateTokensAction
7
- } from "./chunk-PO7FTSGP.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-YWPPXECC.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-2YV2QQND.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-4P5ZLADR.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-H7TICFO4.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-PO7FTSGP.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-OWLQL7CW.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-UPUUJMMH.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();
@@ -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-KETXRY6J.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-IJLWI2HH.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-7GBH7I5H.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-2QVGBCVC.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-2XIREU2L.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-AK7V6IDG.js";
17
+ } from "./chunk-OKKA4BCM.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-XFOZH7NP.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-YWPPXECC.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-PO7FTSGP.js";
38
+ } from "./chunk-YQO5UKHP.js";
39
39
  import {
40
40
  streamAgentChatTurn
41
- } from "./chunk-OWLQL7CW.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";
@@ -72,7 +72,7 @@ import {
72
72
  import {
73
73
  inlineImageUrlsForCustomProvider,
74
74
  prepareTools
75
- } from "./chunk-2XIREU2L.js";
75
+ } from "./chunk-I3J7HO3U.js";
76
76
  import {
77
77
  getServerProviderSecret
78
78
  } from "./chunk-HS7MLR74.js";
@@ -95,25 +95,25 @@ import {
95
95
  resolveCliLocalSpawnDispatch,
96
96
  resolveRunContextFacts,
97
97
  resolveStartAgentRunCwd
98
- } from "./chunk-XFOZH7NP.js";
98
+ } from "./chunk-7IQA2VJF.js";
99
99
  import {
100
100
  deriveCredentialGroup,
101
101
  deriveCustomProviderCredentialGroup
102
- } from "./chunk-XCA4WHX5.js";
102
+ } from "./chunk-KHVTT4WW.js";
103
103
  import {
104
104
  resolveUserSkillRuntime
105
- } from "./chunk-XSRSAU3O.js";
105
+ } from "./chunk-UR4ZMRV3.js";
106
106
  import {
107
107
  normalizeEnabledPromptSkills,
108
108
  resolveUserEnabledSkills
109
- } from "./chunk-UOUMPHS5.js";
109
+ } from "./chunk-WMMKHEGQ.js";
110
110
  import {
111
111
  validateAskChoiceInput
112
- } from "./chunk-4P5ZLADR.js";
112
+ } from "./chunk-VHMPJGT4.js";
113
113
  import {
114
114
  prepareTokenUsageData,
115
115
  runKeyed
116
- } from "./chunk-PO7FTSGP.js";
116
+ } from "./chunk-YQO5UKHP.js";
117
117
  import {
118
118
  applyTokenUsageToDayStats,
119
119
  require_format
@@ -124,16 +124,16 @@ import {
124
124
  } from "./chunk-523DITKR.js";
125
125
  import {
126
126
  fetchServerSyncedCredential
127
- } from "./chunk-OWLQL7CW.js";
127
+ } from "./chunk-AKWA6PCE.js";
128
128
  import {
129
129
  defaultLoopbackRequest,
130
130
  loadLocalRunChildDialogIds
131
- } from "./chunk-CIGCTSBF.js";
131
+ } from "./chunk-SHDJLJWV.js";
132
132
  import {
133
133
  CREDENTIAL_STORE_SESSION_FALLBACK_WARNING,
134
134
  OAUTH_PROVIDER_REFS,
135
135
  getSharedSessionCredentialBroker
136
- } from "./chunk-CIUZXD5D.js";
136
+ } from "./chunk-KJDN2YRH.js";
137
137
  import {
138
138
  fetchWithTransientRetry,
139
139
  isTransientFetchError
@@ -163,7 +163,7 @@ import {
163
163
  terminateRunProcess,
164
164
  transitionRunToTerminal,
165
165
  withQueueLock
166
- } from "./chunk-AEZBAFC6.js";
166
+ } from "./chunk-YWNCRUBZ.js";
167
167
  import {
168
168
  TASK_PREVIEW_MAX,
169
169
  formatControlRunMessageCard,
@@ -189,7 +189,7 @@ import {
189
189
  readDialogMessageRecords,
190
190
  readDialogMessages,
191
191
  resolveBuiltinLocalCliAgentConfig
192
- } from "./chunk-YK7OTNON.js";
192
+ } from "./chunk-HEIIOJGN.js";
193
193
  import {
194
194
  applyPublicAgentCatalogOverride
195
195
  } from "./chunk-MZVCFV3T.js";
@@ -246,7 +246,7 @@ import {
246
246
  runExecShellGates,
247
247
  validateConfiguredRootExecutionLease,
248
248
  verifyOwnerRouteAck
249
- } from "./chunk-PAWBC6HC.js";
249
+ } from "./chunk-W4G25PVP.js";
250
250
  import {
251
251
  createHostCredentialBrokerChain,
252
252
  createStrictHostCredentialBroker
@@ -285,13 +285,13 @@ import {
285
285
  } from "./chunk-HNUWUO75.js";
286
286
  import {
287
287
  resolveAgentRuntimeConfigFromRecord
288
- } from "./chunk-4OXPN3WC.js";
288
+ } from "./chunk-WMKA2DPK.js";
289
289
  import {
290
290
  assertDispatchSelectionAdmission,
291
291
  buildNoloWorkspaceOpenAiTools,
292
292
  filterClientNoloWorkspaceToolNames,
293
293
  parseNoloWorkspaceToolArguments
294
- } from "./chunk-ITBX27W6.js";
294
+ } from "./chunk-CFDOIIOZ.js";
295
295
  import {
296
296
  MCP_TOOL_NAMES
297
297
  } from "./chunk-KXOPLLFP.js";
@@ -327,15 +327,13 @@ import {
327
327
  withLiveImageSupport
328
328
  } from "./chunk-SX6AWTNK.js";
329
329
  import {
330
+ resolveAgentRequiredPackIds,
331
+ resolveAgentSkillConfig,
330
332
  resolveHistoricalToolContentCap
331
- } from "./chunk-WFGNWWJI.js";
333
+ } from "./chunk-CDIRKCPD.js";
332
334
  import {
333
335
  resolveAgentCallPlan
334
336
  } from "./chunk-VUHKG4KS.js";
335
- import {
336
- resolveAgentRequiredPackIds,
337
- resolveAgentSkillConfig
338
- } from "./chunk-YDRRGVT5.js";
339
337
  import {
340
338
  buildDialogFallbackTitleFromUserInput,
341
339
  normalizeDialogTitle
@@ -383,7 +381,7 @@ import {
383
381
  } from "./chunk-KX6YBIHG.js";
384
382
  import {
385
383
  withShellChildEnvironment
386
- } from "./chunk-CTIEJRTP.js";
384
+ } from "./chunk-5BRVDQTX.js";
387
385
  import {
388
386
  estimateTokenCount
389
387
  } from "./chunk-PSCNXBYA.js";
@@ -413,7 +411,7 @@ import {
413
411
  expandEnabledPacks,
414
412
  resolveBuiltinSkillEntry,
415
413
  resolveEffectiveEnabledPacks
416
- } from "./chunk-6MTVACLN.js";
414
+ } from "./chunk-75TXQ4GY.js";
417
415
  import {
418
416
  DIALOG_AGENT_LIST_INDEX_PREFIX,
419
417
  TOKEN_DIALOG_INDEX_PREFIX,
@@ -15385,7 +15383,7 @@ function createCliLocalRuntimeAdapter(deps) {
15385
15383
  emitRunIsolationNotice(fact, { runId });
15386
15384
  try {
15387
15385
  const { writeFileSync: writeFileSync4, mkdirSync: mkdirSync5 } = await import("node:fs");
15388
- const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-RN2P6AOD.js");
15386
+ const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-QMWTWV7C.js");
15389
15387
  recordLocalRunExecutionIsolation({
15390
15388
  runId,
15391
15389
  runsDir: resolveRunsDir2(deps.env),
@@ -15410,7 +15408,7 @@ function createCliLocalRuntimeAdapter(deps) {
15410
15408
  dockerWorkloadReleased = true;
15411
15409
  dockerWorkloadLoad = null;
15412
15410
  if (loaded) {
15413
- const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-RN2P6AOD.js");
15411
+ const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-QMWTWV7C.js");
15414
15412
  const exportRunDiff = deps.exportDockerRunDiffArtifact ?? exportDockerRunDiffArtifact;
15415
15413
  const warn = (message) => process.stderr.write(`[nolo] ${message}
15416
15414
  `);
@@ -1,3 +1,50 @@
1
+ import {
2
+ resolveBuiltinCapability,
3
+ resolveBuiltinSkillEntry
4
+ } from "./chunk-75TXQ4GY.js";
5
+ import {
6
+ asTrimmedNonEmptyStringArray
7
+ } from "./chunk-I42VC5KR.js";
8
+
9
+ // packages/core/agentSkillModes.ts
10
+ var AGENT_SKILL_MODES = [
11
+ "required",
12
+ "recommended",
13
+ "disabled"
14
+ ];
15
+ var isAgentSkillMode = (value) => typeof value === "string" && AGENT_SKILL_MODES.includes(value);
16
+ var collectInvalidAgentSkillModes = (skills) => {
17
+ if (!skills || typeof skills !== "object" || Array.isArray(skills)) return [];
18
+ const out = [];
19
+ for (const [slug, value] of Object.entries(skills)) {
20
+ if (value === null) continue;
21
+ if (!isAgentSkillMode(value)) out.push({ slug, value });
22
+ }
23
+ return out;
24
+ };
25
+ var describeAgentSkillModeValue = (value) => {
26
+ let text;
27
+ if (typeof value === "string") {
28
+ text = JSON.stringify(value.length > 40 ? `${value.slice(0, 40)}\u2026` : value);
29
+ } else if (value === void 0) {
30
+ text = "undefined";
31
+ } else {
32
+ try {
33
+ const serialized = JSON.stringify(value);
34
+ text = typeof serialized === "string" ? serialized : String(value);
35
+ } catch {
36
+ text = typeof value;
37
+ }
38
+ }
39
+ return text.length > 60 ? `${text.slice(0, 60)}\u2026` : text;
40
+ };
41
+ var formatInvalidAgentSkillModeMessage = (invalid, allowed = AGENT_SKILL_MODES) => `Invalid agent skill mode for "${invalid.slug}": ${describeAgentSkillModeValue(invalid.value)}. Allowed values: ${allowed.join(", ")}.`;
42
+ var isAgentSkillModesFieldShapeValid = (skills) => {
43
+ if (skills === null || skills === void 0) return true;
44
+ return typeof skills === "object" && !Array.isArray(skills);
45
+ };
46
+ var formatInvalidAgentSkillModesFieldMessage = (allowed = AGENT_SKILL_MODES) => `Invalid agent skills field: expected an object mapping slug \u2192 mode (${allowed.join(" | ")}).`;
47
+
1
48
  // packages/agent-runtime/toolOutputSanitizer.ts
2
49
  var SANITIZE_REPLACEMENT_CHAR = "\uFFFD";
3
50
  var MAX_CONTROL_SEQUENCE_CHARS = 256;
@@ -307,7 +354,95 @@ function clipToolText(content, maxChars, headRatio, marker = "\n\n[... tool outp
307
354
  return `${normalized.slice(0, headChars)}${marker}${normalized.slice(-tailChars)}`;
308
355
  }
309
356
 
357
+ // packages/ai/tools/agentSkillConfig.ts
358
+ var MODES = AGENT_SKILL_MODES;
359
+ var DEFAULT_RECOMMENDED_SKILL_SLUGS = [
360
+ // `worktree-isolation` 已上移为系统层固定前置(agent-runtime/worktreeIsolationPrelude),
361
+ // 不再依赖「相关技能」提示行被发现,也不再是用户可关项——见 skillExploreDirectory 的
362
+ // PLATFORM_CORE_SKILL_SLUGS。注册表解析与 legacy 读取保留。
363
+ "systematic-investigation",
364
+ "show-me",
365
+ // 凭据管理:仓库已有 nolo secret(set/list/run/bind),但技能发现只扫
366
+ // `.agents/skills`,内置的 secrets-manager 不会出现在"可用技能"里。放进默认
367
+ // 提示名单让它至少以一行提示出现(不授工具、不放宽权限)。
368
+ "secrets-manager"
369
+ ];
370
+ var asMode = (value) => typeof value === "string" && MODES.includes(value) ? value : null;
371
+ var resolveAgentSkillConfig = (source) => {
372
+ const out = {};
373
+ const skills = source?.skills;
374
+ if (skills && typeof skills === "object" && !Array.isArray(skills)) {
375
+ for (const [rawSlug, rawMode] of Object.entries(skills)) {
376
+ const slug = typeof rawSlug === "string" ? rawSlug.trim() : "";
377
+ const mode = asMode(rawMode);
378
+ if (slug && mode) out[slug] = mode;
379
+ }
380
+ return out;
381
+ }
382
+ for (const slug of asTrimmedNonEmptyStringArray(source?.enabledPacks) ?? []) {
383
+ out[slug] = "required";
384
+ }
385
+ return out;
386
+ };
387
+ var collectAgentSkillConfigIssues = (source) => {
388
+ const issues = [];
389
+ const skills = source?.skills;
390
+ if (skills === void 0 || skills === null) return issues;
391
+ if (typeof skills !== "object" || Array.isArray(skills)) {
392
+ issues.push({ slug: "", value: skills, reason: "invalid-skills-field" });
393
+ return issues;
394
+ }
395
+ for (const [rawSlug, rawMode] of Object.entries(skills)) {
396
+ const slug = rawSlug.trim();
397
+ if (!slug) {
398
+ issues.push({ slug: rawSlug, value: rawMode, reason: "invalid-slug" });
399
+ continue;
400
+ }
401
+ if (!isAgentSkillMode(rawMode)) {
402
+ issues.push({ slug, value: rawMode, reason: "invalid-mode" });
403
+ }
404
+ }
405
+ return issues;
406
+ };
407
+ var resolveAgentRequiredPackIds = (source) => {
408
+ const config = resolveAgentSkillConfig(source);
409
+ return Object.keys(config).filter((slug) => config[slug] === "required");
410
+ };
411
+ var resolveAgentRecommendedSkillNames = (source, lookup) => {
412
+ const config = resolveAgentSkillConfig(source);
413
+ const resolve = lookup ?? defaultSkillTitleLookup;
414
+ const seen = /* @__PURE__ */ new Set();
415
+ const out = [];
416
+ const push = (slug) => {
417
+ const title = resolve(slug)?.title || slug;
418
+ if (seen.has(title)) return;
419
+ seen.add(title);
420
+ out.push(title);
421
+ };
422
+ for (const slug of Object.keys(config)) {
423
+ if (config[slug] !== "recommended") continue;
424
+ push(slug);
425
+ }
426
+ for (const slug of DEFAULT_RECOMMENDED_SKILL_SLUGS) {
427
+ if (Object.hasOwn(config, slug)) continue;
428
+ push(slug);
429
+ }
430
+ return out;
431
+ };
432
+ var defaultSkillTitleLookup = (slug) => {
433
+ const cap = resolveBuiltinCapability(slug);
434
+ if (cap) return { title: cap.title };
435
+ const skill = resolveBuiltinSkillEntry(slug);
436
+ return skill ? { title: skill.title } : null;
437
+ };
438
+ var isAgentSkillDisabled = (source, slug) => resolveAgentSkillConfig(source)[slug] === "disabled";
439
+
310
440
  export {
441
+ collectInvalidAgentSkillModes,
442
+ describeAgentSkillModeValue,
443
+ formatInvalidAgentSkillModeMessage,
444
+ isAgentSkillModesFieldShapeValid,
445
+ formatInvalidAgentSkillModesFieldMessage,
311
446
  sanitizeToolOutputText,
312
447
  sanitizeToolOutputContent,
313
448
  SECRET_PATTERNS,
@@ -322,5 +457,10 @@ export {
322
457
  resolveToolOutputProfile,
323
458
  resolveHistoricalToolContentCap,
324
459
  projectToolMessageContent,
325
- clipToolText
460
+ clipToolText,
461
+ resolveAgentSkillConfig,
462
+ collectAgentSkillConfigIssues,
463
+ resolveAgentRequiredPackIds,
464
+ resolveAgentRecommendedSkillNames,
465
+ isAgentSkillDisabled
326
466
  };
@@ -585,8 +585,8 @@ function shouldFetchAgentRuntimeRecordRemotely(dbKey) {
585
585
  var MODEL_TIERS = [
586
586
  {
587
587
  tier: "extreme",
588
- models: ["GPT-6.2 Astra", "GPT-6 Astra", "Claude Opus 5.5"],
589
- pattern: /^(?:gpt-6(?:[.-]2)?-astra|claude-opus-5[.-]5)(?:$|[-@])/
588
+ models: ["GPT-6.2 Astra", "GPT-6 Astra", "Claude Opus 5.5", "Gemini 4 Neon"],
589
+ pattern: /^(?:gpt-6(?:[.-]2)?-astra|claude-opus-5[.-]5|gemini-4-neon)(?:$|[-@])/
590
590
  },
591
591
  {
592
592
  tier: "complex",
@@ -0,0 +1,42 @@
1
+ // packages/ai/tools/agentCapabilities.ts
2
+ var SYSTEM_AGENT_CAPABILITIES = [
3
+ {
4
+ id: "web-search",
5
+ label: "\u8054\u7F51\u641C\u7D22",
6
+ description: "\u8BA9 agent \u80FD\u641C\u7D22\u4E92\u8054\u7F51\u3001\u6293\u53D6\u7F51\u9875\u5185\u5BB9\uFF0C\u83B7\u53D6\u6700\u65B0\u4FE1\u606F\u3002",
7
+ tools: ["exa_search", "fetchWebpage"],
8
+ defaultEnabled: true,
9
+ icon: "\u{1F310}"
10
+ },
11
+ {
12
+ id: "web-scrape",
13
+ label: "\u6DF1\u5EA6\u7F51\u9875\u6293\u53D6",
14
+ 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",
15
+ tools: ["firecrawl_search", "firecrawl_scrape"],
16
+ defaultEnabled: false,
17
+ icon: "\u{1F578}\uFE0F"
18
+ },
19
+ {
20
+ id: "agent-orchestration",
21
+ label: "\u591A agent \u7F16\u6392",
22
+ 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",
23
+ tools: ["startAgentRun", "controlAgentRun", "listAgents", "listRuntimes"],
24
+ defaultEnabled: true,
25
+ icon: "\u{1F9E9}"
26
+ }
27
+ ];
28
+ var SYSTEM_AGENT_CAPABILITY_IDS = SYSTEM_AGENT_CAPABILITIES.map(
29
+ ({ id }) => id
30
+ );
31
+ var DEFAULT_SYSTEM_AGENT_CAPABILITIES = Object.fromEntries(
32
+ SYSTEM_AGENT_CAPABILITIES.map(({ id, defaultEnabled }) => [
33
+ id,
34
+ defaultEnabled
35
+ ])
36
+ );
37
+
38
+ export {
39
+ SYSTEM_AGENT_CAPABILITIES,
40
+ SYSTEM_AGENT_CAPABILITY_IDS,
41
+ DEFAULT_SYSTEM_AGENT_CAPABILITIES
42
+ };