nolo-cli 0.252.0-alpha.3 → 0.254.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 (108) hide show
  1. package/{_executeModel-RXHY2BDR.js → _executeModel-OMDET3E2.js} +29 -29
  2. package/{addContentAction-F4XO3VRF.js → addContentAction-MT4BECXT.js} +6 -6
  3. package/{addDialogAgentAction-NSCVHTZJ.js → addDialogAgentAction-ZZTJ5GBD.js} +5 -5
  4. package/{agentDeleteCommand-OKR6IDGK.js → agentDeleteCommand-5WXEECFH.js} +36 -36
  5. package/{agentEmailCommands-UKPURCCI.js → agentEmailCommands-3QWBB2JL.js} +36 -36
  6. package/{agentListCommands-CTY7WAMN.js → agentListCommands-WTEF5RKJ.js} +16 -16
  7. package/{agentMachineCommands-WTCQHXHZ.js → agentMachineCommands-DP44GKA6.js} +12 -11
  8. package/{agentRecordCommands-IM2WIFKB.js → agentRecordCommands-4I7P34GJ.js} +36 -36
  9. package/{agentRunCommand-7MCCRUJY.js → agentRunCommand-VAKWFXJV.js} +36 -36
  10. package/{agentRunControl-KNNDEEDI.js → agentRunControl-5ABAIBQT.js} +2 -2
  11. package/{agentRuntimeLocal-EOW6FFXL.js → agentRuntimeLocal-IO3GGTCJ.js} +7 -7
  12. package/{agentSlice-PVFGBJXB.js → agentSlice-5ZSVWJHV.js} +6 -6
  13. package/{appDeleteCommands-3VCRRWUX.js → appDeleteCommands-ZQ4ZEKTC.js} +13 -12
  14. package/{appDeployCommands-XN6IEMYK.js → appDeployCommands-4XT7PFW5.js} +13 -12
  15. package/{appDeployStatusCommands-ZSJJXMVR.js → appDeployStatusCommands-5RVMRYQW.js} +13 -12
  16. package/{appGetCommands-DJ7YQCEE.js → appGetCommands-VH5W3RFK.js} +13 -12
  17. package/{appListCommands-4KU5CV5H.js → appListCommands-TAHZLAL3.js} +13 -12
  18. package/{builtinSkillRegistry-PQWEXSFW.js → builtinSkillRegistry-66PEOD4Y.js} +1 -1
  19. package/{chunk-25GCVHBZ.js → chunk-25BDZGD7.js} +1 -1
  20. package/chunk-2G3XMM3O.js +336 -0
  21. package/{chunk-VZWYP7LD.js → chunk-2RCMFPUZ.js} +2 -2
  22. package/{chunk-OQOXDQLB.js → chunk-2VYX3ZCR.js} +3 -3
  23. package/{chunk-UDQZ5JT7.js → chunk-3SEBCWLD.js} +17394 -17306
  24. package/{chunk-YWLMUFZ5.js → chunk-4GWNEPY6.js} +1 -1
  25. package/{chunk-SE7UURHT.js → chunk-4Z7Q4QZF.js} +12 -12
  26. package/{chunk-GJ4UTSAW.js → chunk-53UOBNTI.js} +4 -4
  27. package/{chunk-RGWYRTSY.js → chunk-6WI4PFPP.js} +21 -23
  28. package/{chunk-V644LXPC.js → chunk-7STRX24O.js} +3 -3
  29. package/chunk-AIHNB5QH.js +1394 -0
  30. package/{chunk-FJPVVLP3.js → chunk-AX63ZU2W.js} +4 -4
  31. package/{chunk-EQJK6LSN.js → chunk-D4CUS6NT.js} +3 -3
  32. package/{chunk-SBBSUBY3.js → chunk-DNY33GGQ.js} +1 -1
  33. package/{chunk-N2ZAY2DK.js → chunk-GFXPPQZN.js} +1 -1
  34. package/{chunk-GUFTHWDO.js → chunk-GJKEOBCV.js} +9 -9
  35. package/{chunk-BTQU2PRC.js → chunk-GK772DEV.js} +1 -1
  36. package/{chunk-N7UXTVAR.js → chunk-HEQJ5XND.js} +1 -1
  37. package/{chunk-BLBGVSLB.js → chunk-HEUHCHAR.js} +5 -5
  38. package/{chunk-MOAVLCCM.js → chunk-HKPIFK7F.js} +3 -3
  39. package/{chunk-WNIBQBOR.js → chunk-HS4JGZQH.js} +1 -1
  40. package/{chunk-BVCCRSGK.js → chunk-IDCGMZLC.js} +5 -5
  41. package/{chunk-KO6JNZCF.js → chunk-IGK4OXAO.js} +21 -8
  42. package/{chunk-64ACTEAE.js → chunk-JKO32CCL.js} +1 -1
  43. package/{chunk-ZMXO5G3E.js → chunk-K4LLTJUO.js} +4 -2
  44. package/{chunk-CSTCYYCR.js → chunk-KR4W72OK.js} +9 -9
  45. package/{chunk-MDWHMQON.js → chunk-M7GMJBQJ.js} +1 -1
  46. package/{chunk-EPBEZKYK.js → chunk-MCQXBKC6.js} +2 -2
  47. package/{chunk-26KL6533.js → chunk-MICGEDCN.js} +18 -18
  48. package/{chunk-RE32BIKY.js → chunk-MR72IIX5.js} +3 -3
  49. package/{chunk-WJOC3AEM.js → chunk-MRYKRL2V.js} +1 -1
  50. package/{chunk-2HF6DINU.js → chunk-MW3XUUYS.js} +6 -6
  51. package/{chunk-4KBKOG2L.js → chunk-NEDBPW44.js} +2 -2
  52. package/{chunk-Z47UZT27.js → chunk-NMGG3NUB.js} +1 -1
  53. package/{chunk-N2MDL5AZ.js → chunk-NXNHG3QT.js} +9 -9
  54. package/{chunk-3LL5HRIJ.js → chunk-OLS2J3WE.js} +1 -1
  55. package/{chunk-7XO73H5X.js → chunk-P4JX7YMQ.js} +1 -1
  56. package/{chunk-Q5M27DUE.js → chunk-PR25J652.js} +1 -1
  57. package/{chunk-JX2IG37T.js → chunk-PTY2VZM5.js} +1 -1
  58. package/{chunk-OTNPEE4G.js → chunk-SID2TFMV.js} +87 -63
  59. package/{chunk-NWZRCUHM.js → chunk-TA2JQUWA.js} +101 -192
  60. package/{chunk-UGHNYYOE.js → chunk-VPSPVLCM.js} +2 -2
  61. package/{chunk-OTOPQXP5.js → chunk-XWR2YD4L.js} +1 -1
  62. package/{chunk-K7RWY7JH.js → chunk-YW5L3XOO.js} +7 -7
  63. package/{chunk-IQXMWBI6.js → chunk-YYHWEVBI.js} +2 -2
  64. package/{chunk-ZMWDHPNG.js → chunk-Z2ZCKNKX.js} +1 -5
  65. package/{chunk-U3ZK2MXG.js → chunk-ZAKWT4XQ.js} +3 -3
  66. package/{cliLocalAgentRecordReader-OHAC4JTY.js → cliLocalAgentRecordReader-2WBUVRVD.js} +9 -9
  67. package/{commandRegistry-YSV6ZWPO.js → commandRegistry-DONNI3FW.js} +46 -117
  68. package/{contentThunks-GSMUNWBA.js → contentThunks-THSXC6WQ.js} +11 -11
  69. package/{createAgentAutomationAction-RMADR4LG.js → createAgentAutomationAction-WNQOJ4DG.js} +11 -11
  70. package/{createDialogAction-CM5CBQVH.js → createDialogAction-YORDQFFC.js} +12 -12
  71. package/{createPageAction-JMGVMCTH.js → createPageAction-2S7V5OCW.js} +12 -12
  72. package/{dbSlice-Q637QR4L.js → dbSlice-HXFRXGI3.js} +5 -5
  73. package/{deleteFile-TP6MKFUX.js → deleteFile-QDSZVTUJ.js} +3 -3
  74. package/{dialogCommands-IZSD4CQM.js → dialogCommands-MEH4CVRL.js} +15 -14
  75. package/{dialogSlice-ARQKXXTD.js → dialogSlice-JOICDGQU.js} +9 -9
  76. package/{docCreateCommands-ZJFHCZV4.js → docCreateCommands-MVAYVGQ5.js} +12 -11
  77. package/{docDeleteCommands-LY5MF2BI.js → docDeleteCommands-TKXPRA3O.js} +13 -12
  78. package/{docReadCommands-4X2DHCNZ.js → docReadCommands-MR2YKCZP.js} +12 -11
  79. package/{docStore-QWRVKIRI.js → docStore-NKVLWCXX.js} +6 -6
  80. package/{docUpdateCommands-5TIT7DAJ.js → docUpdateCommands-VJ6A6F7F.js} +12 -11
  81. package/{handleSendMessageAction-TVR55KVT.js → handleSendMessageAction-SNNYOQ4P.js} +22 -22
  82. package/{hostCredentialCreate-T33O7WLA.js → hostCredentialCreate-SDQUFL23.js} +36 -36
  83. package/index.js +4 -4
  84. package/{localRuntimeAdapter-CNFP7ZEP.js → localRuntimeAdapter-JHYH5ZIR.js} +35 -35
  85. package/{machineCommands-TGA5EH2G.js → machineCommands-BXSBRM7L.js} +36 -36
  86. package/{machineWsRunDispatch-LMJPGTTZ.js → machineWsRunDispatch-KEXSHGSD.js} +36 -36
  87. package/{memberThunks-IGYRMEQC.js → memberThunks-ZXEUM6DH.js} +7 -7
  88. package/package.json +1 -1
  89. package/{projectArchive-Q46BYZQ6.js → projectArchive-FDYE7VNC.js} +12 -12
  90. package/{read-MPPXZHAO.js → read-T5WPCAY7.js} +3 -3
  91. package/{readDocTool-PKZ35PCR.js → readDocTool-DW4DCRQG.js} +1 -1
  92. package/{readlineWorkspace-HA6DWK4N.js → readlineWorkspace-ME2C64XI.js} +46 -64
  93. package/{removeDialogAgentAction-H6S7VLNA.js → removeDialogAgentAction-MXJEB77K.js} +6 -6
  94. package/{runAgentClientLoop-WZJ4HXOH.js → runAgentClientLoop-UAGXVYW5.js} +27 -27
  95. package/{setDialogExtraReferencesAction-CARUTAWS.js → setDialogExtraReferencesAction-BILVMHM7.js} +6 -6
  96. package/{setPrimaryDialogAgentAction-VRV56MLG.js → setPrimaryDialogAgentAction-CUBBWACR.js} +6 -6
  97. package/{settingThunks-4FC4HXGN.js → settingThunks-BRBBAGEK.js} +5 -5
  98. package/{spaceCommands-27Z5JAU3.js → spaceCommands-K4HHG7OO.js} +12 -11
  99. package/{streamAgentChatTurn-JKMBFM2O.js → streamAgentChatTurn-RZUB6JTH.js} +35 -35
  100. package/{switchDialogAgentAction-O236K6HB.js → switchDialogAgentAction-SSI2CSNE.js} +5 -5
  101. package/{tools-4RFLNHUW.js → tools-23F5EEVM.js} +23 -23
  102. package/{tuiRestart-GF4DGAAN.js → tuiRestart-7IKI6JZK.js} +3 -3
  103. package/{updateDialogTitleAction-F3ONQM3N.js → updateDialogTitleAction-TJWT4LXL.js} +11 -11
  104. package/chunk-CGSIW2KI.js +0 -594
  105. package/chunk-HF4C5WIU.js +0 -980
  106. package/chunk-U5LOKQ2R.js +0 -176
  107. package/{chunk-REINTCQF.js → chunk-4CL6QIQZ.js} +3 -3
  108. package/{chunk-5BRVDQTX.js → chunk-KWARDHBI.js} +7 -7
@@ -14,16 +14,16 @@ import {
14
14
  import {
15
15
  addContentToSpace,
16
16
  resolveCreationSpaceId
17
- } from "./chunk-K7RWY7JH.js";
17
+ } from "./chunk-YW5L3XOO.js";
18
18
  import {
19
19
  runtime_default
20
- } from "./chunk-26KL6533.js";
20
+ } from "./chunk-MICGEDCN.js";
21
21
  import {
22
22
  getCurrentSpaceId
23
- } from "./chunk-SBBSUBY3.js";
23
+ } from "./chunk-DNY33GGQ.js";
24
24
  import {
25
25
  write
26
- } from "./chunk-GJ4UTSAW.js";
26
+ } from "./chunk-53UOBNTI.js";
27
27
  import {
28
28
  selectIdentityUserId
29
29
  } from "./chunk-PXYBUFDB.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  resolveDefaultReasoningEffort
3
- } from "./chunk-CGSIW2KI.js";
3
+ } from "./chunk-AIHNB5QH.js";
4
4
  import {
5
5
  buildLocalAgentLookupKeys,
6
6
  shouldReadAgentKeyRemotely
7
- } from "./chunk-64ACTEAE.js";
7
+ } from "./chunk-JKO32CCL.js";
8
8
  import {
9
9
  createHostCredentialBrokerChain,
10
10
  createStrictHostCredentialBroker
@@ -14,7 +14,7 @@ import {
14
14
  formatInvalidAgentSkillModeMessage,
15
15
  formatInvalidAgentSkillModesFieldMessage,
16
16
  isAgentSkillModesFieldShapeValid
17
- } from "./chunk-JX2IG37T.js";
17
+ } from "./chunk-PTY2VZM5.js";
18
18
  import {
19
19
  buildAgentApiKeyCredentialRef,
20
20
  migrateAgentSecrets
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-UAD2WT54.js";
4
4
  import {
5
5
  toTimestampMs
6
- } from "./chunk-GJ4UTSAW.js";
6
+ } from "./chunk-53UOBNTI.js";
7
7
  import {
8
8
  require_react
9
9
  } from "./chunk-RD3QLZQV.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveRunsDir
3
- } from "./chunk-7XO73H5X.js";
3
+ } from "./chunk-P4JX7YMQ.js";
4
4
  import {
5
5
  isLoopbackHostname
6
6
  } from "./chunk-4SN6J65J.js";
@@ -3,25 +3,25 @@ import {
3
3
  } from "./chunk-VF4K2QE6.js";
4
4
  import {
5
5
  setDialogExtraReferencesAction
6
- } from "./chunk-3LL5HRIJ.js";
6
+ } from "./chunk-OLS2J3WE.js";
7
7
  import {
8
8
  fetchAndCacheTableRows
9
- } from "./chunk-K7RWY7JH.js";
9
+ } from "./chunk-YW5L3XOO.js";
10
10
  import {
11
11
  resolveDialogRuntimeAgentKey
12
- } from "./chunk-26KL6533.js";
12
+ } from "./chunk-MICGEDCN.js";
13
13
  import {
14
14
  createSpaceKey
15
15
  } from "./chunk-UAD2WT54.js";
16
16
  import {
17
17
  selectById
18
- } from "./chunk-GJ4UTSAW.js";
18
+ } from "./chunk-53UOBNTI.js";
19
19
  import {
20
20
  require_react
21
21
  } from "./chunk-RD3QLZQV.js";
22
22
  import {
23
23
  selectRuntimeSnapshot
24
- } from "./chunk-REINTCQF.js";
24
+ } from "./chunk-4CL6QIQZ.js";
25
25
  import {
26
26
  createAsyncThunk
27
27
  } from "./chunk-W4S5FQWQ.js";
@@ -30,11 +30,11 @@ import {
30
30
  } from "./chunk-PXYBUFDB.js";
31
31
  import {
32
32
  isAgentSkillDisabled
33
- } from "./chunk-JX2IG37T.js";
33
+ } from "./chunk-PTY2VZM5.js";
34
34
  import {
35
35
  listBuiltinSkills,
36
36
  resolveBuiltinSkillByName
37
- } from "./chunk-ZMWDHPNG.js";
37
+ } from "./chunk-Z2ZCKNKX.js";
38
38
  import {
39
39
  parseSkillDocProtocol
40
40
  } from "./chunk-AETZ7AD6.js";
@@ -791,7 +791,7 @@ var executeToolRun = createAsyncThunk(
791
791
  if (!executionInput) {
792
792
  throw new Error(`ToolRun ${id} has no input to execute with.`);
793
793
  }
794
- const { findToolExecutor } = await import("./tools-4RFLNHUW.js");
794
+ const { findToolExecutor } = await import("./tools-23F5EEVM.js");
795
795
  const { executor } = findToolExecutor(run.toolName);
796
796
  toolRunStarted({
797
797
  id: run.id,
@@ -815,7 +815,7 @@ var executeToolRun = createAsyncThunk(
815
815
  const latestState = thunkApi.getState();
816
816
  const userId = selectIdentityUserId(latestState);
817
817
  if (userId) {
818
- const { fetchUserSpaceMemberships } = await import("./memberThunks-IGYRMEQC.js");
818
+ const { fetchUserSpaceMemberships } = await import("./memberThunks-ZXEUM6DH.js");
819
819
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
820
820
  }
821
821
  }
@@ -7,7 +7,7 @@ import {
7
7
  scheduleExistingRecordReplication,
8
8
  shouldReplaceLocalWithRemoteRecord,
9
9
  shouldReplicateLocalRecord
10
- } from "./chunk-REINTCQF.js";
10
+ } from "./chunk-4CL6QIQZ.js";
11
11
  import {
12
12
  fetchFromClientDb,
13
13
  fetchFromServer,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRuntimeServerContext,
3
3
  scheduleDeleteReplication
4
- } from "./chunk-REINTCQF.js";
4
+ } from "./chunk-4CL6QIQZ.js";
5
5
  import {
6
6
  fetchFromClientDb
7
7
  } from "./chunk-VYRTLHIT.js";
@@ -1,13 +1,13 @@
1
- import {
2
- deriveCredentialGroup
3
- } from "./chunk-HF4C5WIU.js";
4
1
  import {
5
2
  listUserRecordsFromServers,
6
3
  readLiveDbRecordAfterTombstoneMerge
7
- } from "./chunk-YWLMUFZ5.js";
4
+ } from "./chunk-4GWNEPY6.js";
8
5
  import {
9
6
  agentRecordHasConfiguredCredential
10
- } from "./chunk-EQJK6LSN.js";
7
+ } from "./chunk-D4CUS6NT.js";
8
+ import {
9
+ deriveCredentialGroup
10
+ } from "./chunk-AIHNB5QH.js";
11
11
  import {
12
12
  isTombstoneRecord
13
13
  } from "./chunk-BV3FLP2L.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-K7RWY7JH.js";
3
+ } from "./chunk-YW5L3XOO.js";
4
4
  import {
5
5
  prepareAndPersistMessage
6
- } from "./chunk-26KL6533.js";
6
+ } from "./chunk-MICGEDCN.js";
7
7
  import {
8
8
  require_format
9
9
  } from "./chunk-BUDVRYES.js";
@@ -16,7 +16,7 @@ import {
16
16
  removeCachedEntity,
17
17
  upsertSSREntity,
18
18
  write
19
- } from "./chunk-GJ4UTSAW.js";
19
+ } from "./chunk-53UOBNTI.js";
20
20
  import {
21
21
  isDevelopment
22
22
  } from "./chunk-VYRTLHIT.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isPidGone
3
- } from "./chunk-7XO73H5X.js";
3
+ } from "./chunk-P4JX7YMQ.js";
4
4
 
5
5
  // packages/cli/tui/tuiRestart.ts
6
6
  import { realpathSync } from "node:fs";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  upsertSSREntity,
3
3
  write
4
- } from "./chunk-GJ4UTSAW.js";
4
+ } from "./chunk-53UOBNTI.js";
5
5
  import {
6
6
  getRuntimeServerContext,
7
7
  resolveRecordAuthority
8
- } from "./chunk-REINTCQF.js";
8
+ } from "./chunk-4CL6QIQZ.js";
9
9
  import {
10
10
  TIMEOUT,
11
11
  asyncThunkCreator,
@@ -471,7 +471,7 @@ var slice = createSliceWithThunks({
471
471
  const overrides = {};
472
472
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
473
473
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
474
- const { _executeModel } = await import("./_executeModel-RXHY2BDR.js");
474
+ const { _executeModel } = await import("./_executeModel-OMDET3E2.js");
475
475
  return _executeModel(
476
476
  {
477
477
  isStreaming: args.isStreaming ?? false,
@@ -492,7 +492,7 @@ var slice = createSliceWithThunks({
492
492
  * - 循环直到无工具调用或触发其他运行时停止条件
493
493
  */
494
494
  runAgent: create.asyncThunk(async (args, thunkApi) => {
495
- const { runAgentClientLoop } = await import("./runAgentClientLoop-WZJ4HXOH.js");
495
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-UAGXVYW5.js");
496
496
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
497
497
  {
498
498
  agentKey: args.agentKey,
@@ -508,7 +508,7 @@ var slice = createSliceWithThunks({
508
508
  * 聊天轮次流式 Agent 调用
509
509
  */
510
510
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
511
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-JKMBFM2O.js");
511
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-RZUB6JTH.js");
512
512
  return streamAgentChatTurnHandler(args, thunkApi);
513
513
  }),
514
514
  /**
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-KZ4A7EIV.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-2HF6DINU.js";
6
+ } from "./chunk-MW3XUUYS.js";
7
7
  import {
8
8
  fetchServerSyncedCredential
9
- } from "./chunk-BVCCRSGK.js";
9
+ } from "./chunk-IDCGMZLC.js";
10
10
  import {
11
11
  buildIdentityBlock,
12
12
  buildPlatformStaticContextLayers,
@@ -15,7 +15,7 @@ import {
15
15
  compileContextLayers,
16
16
  detectDispatchIntentFromMessages,
17
17
  resolveToolGuidedSections
18
- } from "./chunk-OTNPEE4G.js";
18
+ } from "./chunk-SID2TFMV.js";
19
19
  import {
20
20
  convertMessagesToResponsesInput,
21
21
  getUsageRequestOptions,
@@ -45,7 +45,7 @@ import {
45
45
  } from "./chunk-2SXN7LAY.js";
46
46
  import {
47
47
  buildSkillGuidancePromptBlock
48
- } from "./chunk-ZMWDHPNG.js";
48
+ } from "./chunk-Z2ZCKNKX.js";
49
49
  import {
50
50
  canonicalizeToolNames
51
51
  } from "./chunk-YLAHYLDQ.js";
@@ -342,7 +342,13 @@ var prependPromptMessage = (messages, agentConfig, resolvedModel, language, cont
342
342
  if (!contexts && !agentConfig.prompt) return messages;
343
343
  const dispatchIntent = detectDispatchIntentFromMessages(messages);
344
344
  if (isClaudeModel(resolvedModel)) {
345
- const compiled = buildSystemPromptContext({ agentConfig, language, contexts, dispatchIntent });
345
+ const compiled = buildSystemPromptContext({
346
+ agentConfig,
347
+ language,
348
+ contexts,
349
+ dispatchIntent,
350
+ callerModel: agentConfig?.model
351
+ });
346
352
  if (!compiled.content.trim()) return messages;
347
353
  const content = applyClaudeCache(
348
354
  compiled.stablePrefixContent,
@@ -353,7 +359,13 @@ var prependPromptMessage = (messages, agentConfig, resolvedModel, language, cont
353
359
  }
354
360
  const promptProvenance = preservePromptProvenance && agentConfig.prompt?.trim() ? { agent_prompt_in_messages: true } : {};
355
361
  if (preservePromptBoundary) {
356
- const compiled = buildSystemPromptContext({ agentConfig, language, contexts, dispatchIntent });
362
+ const compiled = buildSystemPromptContext({
363
+ agentConfig,
364
+ language,
365
+ contexts,
366
+ dispatchIntent,
367
+ callerModel: agentConfig?.model
368
+ });
357
369
  if (!compiled.content.trim()) return messages;
358
370
  return [{
359
371
  role: "system",
@@ -362,7 +374,7 @@ var prependPromptMessage = (messages, agentConfig, resolvedModel, language, cont
362
374
  ...promptProvenance
363
375
  }, ...messages];
364
376
  }
365
- const promptContent = buildSystemPrompt({ agentConfig, language, contexts, dispatchIntent });
377
+ const promptContent = buildSystemPrompt({ agentConfig, language, contexts, dispatchIntent, callerModel: agentConfig?.model });
366
378
  if (!promptContent.trim()) return messages;
367
379
  const systemMessage = { role: "system", content: promptContent, ...promptProvenance };
368
380
  return [systemMessage, ...messages];
@@ -608,7 +620,8 @@ function generateResponseRequestBody(agentConfig, msgs, contexts, prependSystemP
608
620
  language,
609
621
  contexts,
610
622
  // 按当前用户输入检测派发意图:无意图只注入最小派发协议(安全硬门常在)。
611
- dispatchIntent: detectDispatchIntentFromMessages(msgs)
623
+ dispatchIntent: detectDispatchIntentFromMessages(msgs),
624
+ callerModel: agentConfig?.model
612
625
  });
613
626
  const legacyContinuation = supportsServerState && responsesState === void 0 && agentConfig.previous_response_id !== void 0;
614
627
  if (!stateful && !legacyContinuation && usesGpt62DeveloperPrefix(agentConfig)) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildAgentRuntimeAgentLookupKeys,
3
3
  shouldFetchAgentRuntimeRecordRemotely
4
- } from "./chunk-ZMXO5G3E.js";
4
+ } from "./chunk-K4LLTJUO.js";
5
5
 
6
6
  // packages/cli/client/localAgentRecords.ts
7
7
  var buildLocalAgentLookupKeys = buildAgentRuntimeAgentLookupKeys;
@@ -795,6 +795,8 @@ var CLOSED_OBJECT_SCHEMA_TOOL_NAMES = /* @__PURE__ */ new Set([
795
795
  function stringToolParam(description) {
796
796
  return { type: "string", description };
797
797
  }
798
+ var READ_DIALOG_TOOL_DESCRIPTION = `Read a persisted dialog (meta + messages) by full dbKey (dialog-<userId>-<id>) or dialog URL; use listDialogs when unclear. A bare id only resolves for the currently logged-in user \u2014 pass user/server. For runs, do not poll a running dialog's full transcript: prefer controlAgentRun, else mode="status" for a compact snapshot; read the transcript only after done/failed/cancelled. Response is budgeted: reasoning_content, tool_calls, tool results and metadata are head-truncated (truncated, messagesTotal/messagesReturned, estimatedOriginalChars/omittedChars). For review or verification, read mode="status" plus the final verdict and take diffs from the worktree instead of pulling the full execution transcript.`;
799
+ var LIST_AGENTS_TOOL_DESCRIPTION = "List agents for delegation. Default scope='all' dedupes the user's own/favorite agents (owned, OAuth, custom-API, local) with the public marketplace; scope='public' discovers shared/marketplace agents only. Public agents may consume platform credits \u2014 check billingSource. Each entry's agentKey is runnable (agent-<userId>-<id> / agent-pub-<id>): Copy the agentKey verbatim; use the runnable agentKey exactly and do not infer it from the display name. Copy `agentKey` verbatim into startAgentRun. Returns planningRecommendation (reason, currentTier, requiresPaidApproval): advice when planning is needed, not authorization. Rate-limited agents are listed too: availabilityStatus/availabilityReason/nextAvailableAt are reference info \u2014 advisory annotations, not dispatch gates; unavailableCount counts them. Fan-out guard limits only same-batch concurrency (sharing a credential alone is not a dependency) unless allowUnknownCredential confirms.";
798
800
  function buildNoloWorkspaceOpenAiTools(args) {
799
801
  const toolNames = new Set(args.toolNames ?? []);
800
802
  const tools = [];
@@ -820,7 +822,7 @@ function buildNoloWorkspaceOpenAiTools(args) {
820
822
  limit: { type: "integer", description: "Maximum dialogs to return." },
821
823
  space: stringToolParam("Optional space id or URL.")
822
824
  });
823
- add("readDialog", `Read one persisted dialog (metadata + messages) by full dbKey (dialog-<userId>-<id>) or URL. Use listDialogs first if target is unclear; a bare id resolves against the current user, pass user for someone else's dialog. Reading an agent run's dialog is fine at any time, but do not poll a still-running one through the full transcript: if controlAgentRun is available prefer it for live runs, otherwise use mode="status" for a compact snapshot, and pull the full transcript once the run is done/failed/cancelled. The response is budgeted: reasoning_content, tool_calls arguments, tool result content and metadata are head-truncated with projection stats (truncated, messagesTotal/messagesReturned, estimatedOriginalChars/omittedChars). For review or verification, read mode="status" plus the final verdict and take diffs from the worktree instead of pulling the full execution transcript.`, {
825
+ add("readDialog", READ_DIALOG_TOOL_DESCRIPTION, {
824
826
  dialog: stringToolParam("Dialog dbKey (dialog-<userId>-<id>), dialog URL, or bare id (resolved against user/current account)."),
825
827
  mode: {
826
828
  type: "string",
@@ -855,7 +857,7 @@ function buildNoloWorkspaceOpenAiTools(args) {
855
857
  description: "Confirmed dialog ids or dbKeys to delete."
856
858
  }
857
859
  }, ["query"]);
858
- add("listAgents", "List agents for delegation. Default scope='all' returns the user's favorites, owned, OAuth, custom API, and local agents plus the public marketplace; scope='public' discovers shared/marketplace agents only. Public agents may consume platform credits. Copy the agentKey verbatim; use the runnable agentKey exactly and do not infer it from the display name. publicOnly is deprecated compatibility for scope='public'. Returns planningRecommendation: conditional advice only when planning is needed and the candidate is suitable; simple questions need no extra planning call. action self/delegate, reason, currentTier, optional agentKey/recommendedTier, poolComplete, requiresPaidApproval. Caller identity/model/runKind are host-owned, not tool arguments. Unknown tiers are not ranked; incomplete pools cannot establish a highest candidate. Bounded subtasks do not delegate planning. Recommendation is not authorization and never starts a run; paid channels require separate approval. All agents in the selected scope are listed; cooldown and quota status are advisory annotations, not dispatch gates.", {
860
+ add("listAgents", LIST_AGENTS_TOOL_DESCRIPTION, {
859
861
  query: stringToolParam("Optional case-insensitive search substring matching agent name, model, provider, handle, or agentKey."),
860
862
  scope: { type: "string", enum: ["all", "public"], description: "Discovery scope; all is the default and includes the public marketplace." },
861
863
  publicOnly: { type: "boolean", description: "Deprecated compatibility alias for scope='public'." },
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-EPBEZKYK.js";
8
+ } from "./chunk-MCQXBKC6.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-KO6JNZCF.js";
17
+ } from "./chunk-IGK4OXAO.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-NWZRCUHM.js";
21
+ } from "./chunk-TA2JQUWA.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-GUFTHWDO.js";
30
+ } from "./chunk-GJKEOBCV.js";
31
31
  import {
32
32
  addToolMessage,
33
33
  messageStreamEnd,
@@ -35,19 +35,19 @@ import {
35
35
  toast,
36
36
  toolResultNeedsUserConfirmation,
37
37
  updateToolMessage
38
- } from "./chunk-26KL6533.js";
38
+ } from "./chunk-MICGEDCN.js";
39
39
  import {
40
40
  streamAgentChatTurn
41
- } from "./chunk-BVCCRSGK.js";
41
+ } from "./chunk-IDCGMZLC.js";
42
42
  import {
43
43
  getCurrentSpaceId
44
- } from "./chunk-SBBSUBY3.js";
44
+ } from "./chunk-DNY33GGQ.js";
45
45
  import {
46
46
  selectCurrentServer
47
47
  } from "./chunk-SCY2O7CU.js";
48
48
  import {
49
49
  write
50
- } from "./chunk-GJ4UTSAW.js";
50
+ } from "./chunk-53UOBNTI.js";
51
51
  import {
52
52
  addActiveController,
53
53
  getActiveDialogKey,
@@ -93,7 +93,7 @@ import {
93
93
  isCompleteInstructionOutput,
94
94
  sanitizeToolOutputText,
95
95
  scrubSecrets
96
- } from "./chunk-JX2IG37T.js";
96
+ } from "./chunk-PTY2VZM5.js";
97
97
  import {
98
98
  EMPTY_ASSISTANT_REPAIR_PROMPT
99
99
  } from "./chunk-CIAV4WK2.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-SCY2O7CU.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-GJ4UTSAW.js";
6
+ } from "./chunk-53UOBNTI.js";
7
7
  import {
8
8
  getIsDesktopApp
9
9
  } from "./chunk-VYRTLHIT.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-NWZRCUHM.js";
3
+ } from "./chunk-TA2JQUWA.js";
4
4
  import {
5
5
  INLINE_IMAGE_MAX_BYTES,
6
6
  INLINE_IMAGE_TOTAL_MAX_BYTES,
7
7
  runtime_default
8
- } from "./chunk-26KL6533.js";
8
+ } from "./chunk-MICGEDCN.js";
9
9
  import {
10
10
  canonicalizeToolNames
11
11
  } from "./chunk-YLAHYLDQ.js";
@@ -10,10 +10,10 @@ import {
10
10
  } from "./chunk-523DITKR.js";
11
11
  import {
12
12
  runLlm
13
- } from "./chunk-BVCCRSGK.js";
13
+ } from "./chunk-IDCGMZLC.js";
14
14
  import {
15
15
  cleanupCliSessionForDialog
16
- } from "./chunk-MDWHMQON.js";
16
+ } from "./chunk-M7GMJBQJ.js";
17
17
  import {
18
18
  getActiveDialogAgentId,
19
19
  getDialogAgentIds,
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-5RGU3J7P.js";
22
22
  import {
23
23
  addContentAction
24
- } from "./chunk-VZWYP7LD.js";
24
+ } from "./chunk-2RCMFPUZ.js";
25
25
  import {
26
26
  patch,
27
27
  read,
@@ -29,7 +29,7 @@ import {
29
29
  selectById,
30
30
  upload,
31
31
  write
32
- } from "./chunk-GJ4UTSAW.js";
32
+ } from "./chunk-53UOBNTI.js";
33
33
  import {
34
34
  fetchMessages
35
35
  } from "./chunk-HXER7YJF.js";
@@ -66,7 +66,7 @@ import {
66
66
  resolveUserAuthorityServer,
67
67
  scheduleDeleteReplication,
68
68
  waitForWriteAck
69
- } from "./chunk-REINTCQF.js";
69
+ } from "./chunk-4CL6QIQZ.js";
70
70
  import {
71
71
  asyncThunkCreator,
72
72
  buildCreateSlice,
@@ -15192,7 +15192,7 @@ var messageSlice = createSliceWithThunks({
15192
15192
  runtimeOptions: args.runtimeOptions
15193
15193
  });
15194
15194
  if (agentKeyToUse) {
15195
- const { streamAgentChatTurn } = await import("./agentSlice-PVFGBJXB.js");
15195
+ const { streamAgentChatTurn } = await import("./agentSlice-5ZSVWJHV.js");
15196
15196
  await dispatch(
15197
15197
  streamAgentChatTurn({
15198
15198
  agentKey: agentKeyToUse,
@@ -16276,7 +16276,7 @@ var deleteOwnedDialogAttachments = async (args) => {
16276
16276
  metadataReadFailures
16277
16277
  });
16278
16278
  if (!plan.deleteCandidates.length) return plan;
16279
- const { deleteFileAction } = await import("./deleteFile-TP6MKFUX.js");
16279
+ const { deleteFileAction } = await import("./deleteFile-QDSZVTUJ.js");
16280
16280
  for (const candidate of plan.deleteCandidates) {
16281
16281
  if (candidate.fileDbKey) {
16282
16282
  await deleteFileAction(candidate.fileDbKey, args.thunkApi);
@@ -16338,7 +16338,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
16338
16338
  }
16339
16339
  if (isCurrentDialog) {
16340
16340
  await thunkApi.dispatch(resetMsgs());
16341
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-ARQKXXTD.js");
16341
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-JOICDGQU.js");
16342
16342
  dispatch(clearPendingAttachments2());
16343
16343
  }
16344
16344
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -16346,39 +16346,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
16346
16346
 
16347
16347
  // packages/chat/dialog/dialogSlice.ts
16348
16348
  var runCreateDialogAction = async (args, thunkApi) => {
16349
- const { createDialogAction } = await import("./createDialogAction-CM5CBQVH.js");
16349
+ const { createDialogAction } = await import("./createDialogAction-YORDQFFC.js");
16350
16350
  return createDialogAction(args, thunkApi);
16351
16351
  };
16352
16352
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
16353
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-RMADR4LG.js");
16353
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-WNQOJ4DG.js");
16354
16354
  return createAgentAutomationAction(args, thunkApi);
16355
16355
  };
16356
16356
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
16357
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-F3ONQM3N.js");
16357
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-TJWT4LXL.js");
16358
16358
  return updateDialogTitleAction(args, thunkApi);
16359
16359
  };
16360
16360
  var runAddDialogAgentAction = async (args, thunkApi) => {
16361
- const { addDialogAgentAction } = await import("./addDialogAgentAction-NSCVHTZJ.js");
16361
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-ZZTJ5GBD.js");
16362
16362
  return addDialogAgentAction(args, thunkApi);
16363
16363
  };
16364
16364
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
16365
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-H6S7VLNA.js");
16365
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-MXJEB77K.js");
16366
16366
  return removeDialogAgentAction(args, thunkApi);
16367
16367
  };
16368
16368
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
16369
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-VRV56MLG.js");
16369
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-CUBBWACR.js");
16370
16370
  return setPrimaryDialogAgentAction(args, thunkApi);
16371
16371
  };
16372
16372
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
16373
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-O236K6HB.js");
16373
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-SSI2CSNE.js");
16374
16374
  return switchDialogAgentAction(args, thunkApi);
16375
16375
  };
16376
16376
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
16377
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-CARUTAWS.js");
16377
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-BILVMHM7.js");
16378
16378
  return setDialogExtraReferencesAction(args, thunkApi);
16379
16379
  };
16380
16380
  var runHandleSendMessageAction = async (args, thunkApi) => {
16381
- const { handleSendMessageAction } = await import("./handleSendMessageAction-TVR55KVT.js");
16381
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-SNNYOQ4P.js");
16382
16382
  return handleSendMessageAction(args, thunkApi);
16383
16383
  };
16384
16384
  function clearDialogState() {
@@ -16391,7 +16391,7 @@ var createPageAndAddReference = createAsyncThunk(
16391
16391
  async (payload, { dispatch, getState, rejectWithValue }) => {
16392
16392
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
16393
16393
  try {
16394
- const { createDocState } = await import("./docStore-QWRVKIRI.js");
16394
+ const { createDocState } = await import("./docStore-NKVLWCXX.js");
16395
16395
  const pageKey = await createDocState(
16396
16396
  { slateData, title },
16397
16397
  { dispatch, getState }
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-RGWYRTSY.js";
4
+ } from "./chunk-6WI4PFPP.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-GUFTHWDO.js";
7
+ } from "./chunk-GJKEOBCV.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-UDQZ5JT7.js";
10
+ } from "./chunk-3SEBCWLD.js";
11
11
  import {
12
12
  resolveLocalRuntimeEnvFromPolicy
13
13
  } from "./chunk-USGHJSGO.js";
@@ -2,7 +2,7 @@ import {
2
2
  getCurrentSpaceIdRaw,
3
3
  setCurrentSpaceBoth,
4
4
  setSpaceInitialized
5
- } from "./chunk-SBBSUBY3.js";
5
+ } from "./chunk-DNY33GGQ.js";
6
6
  import {
7
7
  createSpaceKey,
8
8
  normalizeSpaceId
@@ -2,26 +2,26 @@ import {
2
2
  clipMultilineText,
3
3
  fetchAndSerializeTable,
4
4
  waitForAbortableDelay
5
- } from "./chunk-GUFTHWDO.js";
5
+ } from "./chunk-GJKEOBCV.js";
6
6
  import {
7
7
  isGatewayHttpStatus
8
8
  } from "./chunk-NF64D32W.js";
9
9
  import {
10
10
  resolvePageReadMarkdown,
11
11
  slateToSimplifiedMarkdown
12
- } from "./chunk-Z47UZT27.js";
12
+ } from "./chunk-NMGG3NUB.js";
13
13
  import {
14
14
  extractCategorizedMentions
15
15
  } from "./chunk-AGIM7IMJ.js";
16
16
  import {
17
17
  fetchAndCacheMessages
18
- } from "./chunk-26KL6533.js";
18
+ } from "./chunk-MICGEDCN.js";
19
19
  import {
20
20
  createSpaceKey
21
21
  } from "./chunk-UAD2WT54.js";
22
22
  import {
23
23
  read
24
- } from "./chunk-GJ4UTSAW.js";
24
+ } from "./chunk-53UOBNTI.js";
25
25
  import {
26
26
  createDrainExhaustedResponse,
27
27
  isCoreDrainingBody,
@@ -30,7 +30,7 @@ import {
30
30
  } from "./chunk-3L2WKC3W.js";
31
31
  import {
32
32
  getRuntimeServerContext
33
- } from "./chunk-REINTCQF.js";
33
+ } from "./chunk-4CL6QIQZ.js";
34
34
  import {
35
35
  classifyGenerationError
36
36
  } from "./chunk-TLE77UJ5.js";
@@ -49,7 +49,7 @@ import {
49
49
  resolveBuiltinSkillEntry,
50
50
  resolveBuiltinSkillPage,
51
51
  resolveSkillGraphFromRoots
52
- } from "./chunk-ZMWDHPNG.js";
52
+ } from "./chunk-Z2ZCKNKX.js";
53
53
  import {
54
54
  resolvePageSkillMetadata
55
55
  } from "./chunk-AETZ7AD6.js";