nolo-cli 0.224.1 → 0.225.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/{_executeModel-5NA4USGG.js → _executeModel-UCWDB72C.js} +50 -50
  2. package/{action-X75O3XPH.js → action-24MZYW2B.js} +6 -6
  3. package/{addContentAction-GVC77QSN.js → addContentAction-HEMCSSHT.js} +9 -9
  4. package/{addDialogAgentAction-KKDVAMW3.js → addDialogAgentAction-SQYDOXHA.js} +8 -8
  5. package/{agentDeleteCommand-2RFGKFAB.js → agentDeleteCommand-P7O3ACNJ.js} +76 -77
  6. package/{agentEmailCommands-GQCQKKOR.js → agentEmailCommands-A5BRSYWK.js} +80 -81
  7. package/{agentListCommands-HSGLDPDQ.js → agentListCommands-LDRCOOMO.js} +37 -36
  8. package/{agentMachineCommands-BISF6PVV.js → agentMachineCommands-AYL53KJV.js} +31 -30
  9. package/{agentProviderCommands-O3Q25PKU.js → agentProviderCommands-N5EA3ED2.js} +2 -2
  10. package/{agentPullCommand-G6U2LHMW.js → agentPullCommand-QQQZSC6S.js} +1 -1
  11. package/{agentRecordCommands-AOXPGYAJ.js → agentRecordCommands-FICBZ57C.js} +75 -76
  12. package/{agentRunCommand-AFAIP7U7.js → agentRunCommand-CTXQGDUM.js} +81 -80
  13. package/{agentRunControl-VBL7UFSG.js → agentRunControl-CO6BASZF.js} +7 -7
  14. package/{agentRuntimeLocal-T7BX2WGL.js → agentRuntimeLocal-5YN4D5WT.js} +26 -25
  15. package/{agentSlice-XJNKE3PG.js → agentSlice-DJ5D4DU4.js} +9 -9
  16. package/{appDeleteCommands-LURUSPY7.js → appDeleteCommands-B4E7N7M2.js} +32 -31
  17. package/{appDeployCommands-SMEW4AK2.js → appDeployCommands-E4DTXRRM.js} +32 -31
  18. package/{appDeployStatusCommands-VYPJTBJK.js → appDeployStatusCommands-FCNHYHZM.js} +32 -31
  19. package/{appGetCommands-N4NI5GGJ.js → appGetCommands-4DXSQHUZ.js} +32 -31
  20. package/{appListCommands-5C6ONN3Z.js → appListCommands-2NN5E4F6.js} +32 -31
  21. package/{authCommand-4CVBDADE.js → authCommand-47DR6GZT.js} +22 -18
  22. package/{authCommands-EHU2BHOX.js → authCommands-ZZ3L5IFM.js} +10 -6
  23. package/builtinSkillRegistry-AYWYQVA4.js +1 -1
  24. package/{chromeOpsCommands-CSDG2HYN.js → chromeOpsCommands-VZWAY2KR.js} +1 -1
  25. package/{chunk-UFC4J7OY.js → chunk-24GVXSWK.js} +3 -3
  26. package/{chunk-4IQVE43Z.js → chunk-25OCZXSX.js} +15 -15
  27. package/{chunk-4X5AVCM7.js → chunk-2BSLGODA.js} +258 -23
  28. package/{chunk-U3G7RRXJ.js → chunk-2XMKW2OY.js} +4 -4
  29. package/{chunk-MYOSN6BT.js → chunk-3NFWMSTA.js} +31 -10
  30. package/{chunk-A74QP4FI.js → chunk-3V6JT6WN.js} +343 -136
  31. package/{chunk-2X7WFDT6.js → chunk-4FE3IWRE.js} +1 -1
  32. package/{chunk-XS5A3EKX.js → chunk-4YFC3DWW.js} +75 -1
  33. package/chunk-53W5BXLN.js +340 -0
  34. package/{chunk-H7ZYKHAZ.js → chunk-5TJE4QCL.js} +102 -31
  35. package/{chunk-FZKA3XFA.js → chunk-6BGJHJRN.js} +9 -9
  36. package/{chunk-6WOLPIPY.js → chunk-6RSNVJGO.js} +2 -102
  37. package/{chunk-L32W3PRP.js → chunk-6X3CS6NJ.js} +161 -12
  38. package/{chunk-3FBAVU2Y.js → chunk-6XBOPKUH.js} +11 -76
  39. package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
  40. package/{chunk-7TTMMOKH.js → chunk-7OTNBI77.js} +1 -1
  41. package/{chunk-BGGV6B5O.js → chunk-7Q7MKJZN.js} +83 -50
  42. package/{chunk-2574ANSV.js → chunk-7U2TFUWW.js} +1 -1
  43. package/{chunk-A3LUWRQK.js → chunk-B72AFRR2.js} +4 -4
  44. package/{chunk-P3IZUMIC.js → chunk-BDERPCJW.js} +4 -4
  45. package/{chunk-MYPKBJJO.js → chunk-BIJTI5SX.js} +2 -2
  46. package/{chunk-ZEKUFJLW.js → chunk-BWW6WRX6.js} +3 -3
  47. package/chunk-C5A54QS7.js +108 -0
  48. package/{chunk-IUTUWIKE.js → chunk-C646JEUV.js} +1 -1
  49. package/{chunk-FFYE5ATM.js → chunk-CT6GT2BG.js} +7 -7
  50. package/{chunk-T6VROBY7.js → chunk-CZLSTOVM.js} +2 -2
  51. package/{chunk-SRCCSTIM.js → chunk-DGUUOHBF.js} +2 -2
  52. package/{chunk-A5EVA6HU.js → chunk-DIBQXNGW.js} +2 -2
  53. package/{chunk-AVJDELEA.js → chunk-DLT2DN4M.js} +1 -1
  54. package/{chunk-IJTXNLQE.js → chunk-DLTMAXLF.js} +6 -6
  55. package/{chunk-5QZSEQSK.js → chunk-DWWUVRB5.js} +1 -1
  56. package/{chunk-TRHJ4NJB.js → chunk-EIFSCI4C.js} +381 -155
  57. package/{chunk-DXW5WDHZ.js → chunk-EW37CXCQ.js} +3 -3
  58. package/{chunk-GXXY2NL3.js → chunk-F3FQPVHE.js} +37 -2
  59. package/{chunk-7AJRJGSQ.js → chunk-FCAMGBLY.js} +378 -146
  60. package/{chunk-YGCOJNFZ.js → chunk-FPMPWNVQ.js} +3 -3
  61. package/{chunk-MECDGHLK.js → chunk-FSIEHQNH.js} +2 -2
  62. package/{chunk-B7DE5XJW.js → chunk-FXX6VFMV.js} +208 -25
  63. package/{chunk-Z2WZAE4P.js → chunk-G6OPRPXH.js} +11 -11
  64. package/{chunk-VSRISJXZ.js → chunk-GAHJLSDO.js} +1 -1
  65. package/{chunk-PGKA77TZ.js → chunk-GCVFX6ZL.js} +169 -106
  66. package/{chunk-E5KJOZWY.js → chunk-H6CHPU6M.js} +3 -3
  67. package/{chunk-RETQOQ4D.js → chunk-HNWZJI4N.js} +1 -1
  68. package/{chunk-BGGAY6OK.js → chunk-IPRPYKBP.js} +3 -3
  69. package/{chunk-G22P367E.js → chunk-IUXBKS5L.js} +57 -13
  70. package/{chunk-PRMEU7BT.js → chunk-KGIIZXPL.js} +4 -4
  71. package/chunk-KK3FCYZM.js +647 -0
  72. package/{chunk-4Q6HQORG.js → chunk-KOIDLCAQ.js} +1 -1
  73. package/{chunk-PROOOQZ3.js → chunk-LCQJH7KN.js} +1 -1
  74. package/{chunk-Y2MF4DCJ.js → chunk-LELADM5Q.js} +1 -1
  75. package/{chunk-RTHFJZ6M.js → chunk-LMFMV5UC.js} +2 -2
  76. package/{chunk-ANJRDS6U.js → chunk-LMZRXDWG.js} +3 -3
  77. package/{chunk-6CKUO32A.js → chunk-LN4ZVSO7.js} +6 -3
  78. package/{chunk-N2JROHD3.js → chunk-LT3DMEIB.js} +3 -3
  79. package/{chunk-F6YWDVIB.js → chunk-MDVP5TLI.js} +1 -1
  80. package/chunk-MVOZ22RZ.js +26 -0
  81. package/{chunk-CBUZ6DKA.js → chunk-N6EN3HK3.js} +1 -1
  82. package/{chunk-3EMIEC27.js → chunk-NBB2EBQD.js} +1 -1
  83. package/{chunk-TWTJV35S.js → chunk-NL7J2J5Z.js} +3 -3
  84. package/{chunk-EEOOBRA7.js → chunk-NQQL2DKF.js} +2 -2
  85. package/{chunk-AEQMKYZN.js → chunk-NWWQY2J5.js} +4 -4
  86. package/{chunk-AH5R7BYW.js → chunk-OATIWAKN.js} +5 -5
  87. package/{chunk-CD3RU7XL.js → chunk-OJRTTERA.js} +62 -2
  88. package/{chunk-HOM6LTEW.js → chunk-OYHJ4TW7.js} +6 -6
  89. package/{chunk-BXSMFPTG.js → chunk-QES2NCVM.js} +3 -3
  90. package/{chunk-Y5OWZQMJ.js → chunk-QGMIUVBT.js} +5 -5
  91. package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
  92. package/chunk-SR4FE5VD.js +9 -0
  93. package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
  94. package/{chunk-CKZPMJNU.js → chunk-T444ENEC.js} +3 -3
  95. package/{chunk-TEMLHVGX.js → chunk-TE2XH4KH.js} +1 -1
  96. package/{chunk-4FIO2S7Z.js → chunk-TFGGNRT6.js} +1 -1
  97. package/{chunk-HCNOO374.js → chunk-TTEBPPUV.js} +1 -1
  98. package/{chunk-RM4UMFY4.js → chunk-TXFYIWAW.js} +7 -7
  99. package/{chunk-6WZVM33D.js → chunk-TXQVH72L.js} +2 -2
  100. package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
  101. package/{chunk-OX6GNNVT.js → chunk-U5LOKQ2R.js} +24 -13
  102. package/{chunk-VM72HKW2.js → chunk-UAHUJ4HH.js} +11 -11
  103. package/{chunk-BIABIPGW.js → chunk-UAOFSUG7.js} +1 -1
  104. package/{chunk-D374I563.js → chunk-UKSKCDBG.js} +1 -1
  105. package/{chunk-IUMS6F53.js → chunk-WHO3LYDW.js} +9 -5
  106. package/{chunk-F3XI6WQP.js → chunk-X37RQEA3.js} +2 -2
  107. package/{chunk-B5SV4H3J.js → chunk-XAFOLWLU.js} +1 -1
  108. package/{chunk-HBRDSQ3M.js → chunk-XNEDFWT4.js} +2 -2
  109. package/{chunk-VREG6ANQ.js → chunk-Y5RN44VH.js} +8 -8
  110. package/{chunk-S2MHR4PU.js → chunk-YFRJAE3R.js} +178 -114
  111. package/{chunk-GDUC4VS2.js → chunk-YMCSR7PA.js} +7 -7
  112. package/{chunk-5ZUOVCKT.js → chunk-YUZ2DAIH.js} +3 -1
  113. package/{chunk-CVJRVBJL.js → chunk-ZBQ5UGYY.js} +3 -3
  114. package/{chunk-O6IPRAVV.js → chunk-ZQUCJBS4.js} +2 -2
  115. package/{chunk-KZPEGO6D.js → chunk-ZT3DYK5T.js} +3 -3
  116. package/{chunk-DNZ4JJ7C.js → chunk-ZTLTDUV6.js} +16 -3
  117. package/{cliAgentConfigHelpers-U5OAVAKQ.js → cliAgentConfigHelpers-RFR7ZCSK.js} +6 -6
  118. package/{cliAuthorityBrokerClient-S42VMGB6.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
  119. package/{cliLocalAgentRecordReader-HVZAQCUD.js → cliLocalAgentRecordReader-AJ4UKHKT.js} +30 -29
  120. package/{commandRegistry-TME7INFU.js → commandRegistry-IHWZVV4G.js} +86 -86
  121. package/{contentThunks-U6OC4R2N.js → contentThunks-YQRCBDKF.js} +22 -21
  122. package/{cooldownCommands-U7XSRVJP.js → cooldownCommands-W67DE765.js} +1 -1
  123. package/{createAgentAutomationAction-IP4LFN3W.js → createAgentAutomationAction-ERSDNR4R.js} +22 -21
  124. package/{createDialogAction-IAGQJ3LH.js → createDialogAction-QXC7JZPE.js} +23 -22
  125. package/{createPageAction-AZ3UIFKA.js → createPageAction-RLZ7776F.js} +24 -23
  126. package/{db-M7FU2GNK.js → db-6NRZLEW2.js} +1 -1
  127. package/{dbSlice-DKKMJJYY.js → dbSlice-7M2ESEUO.js} +8 -8
  128. package/{deleteFile-TQSONMVU.js → deleteFile-WO6WSSNK.js} +5 -5
  129. package/{dialogCommands-PCDRMBWG.js → dialogCommands-UIRO4QNN.js} +37 -36
  130. package/{dialogNotifyCommand-O35MWMOS.js → dialogNotifyCommand-VDUFYBZV.js} +8 -8
  131. package/{dialogSlice-QAKYN4DE.js → dialogSlice-A4U3C76D.js} +20 -19
  132. package/{dialogUsageCommand-2SSLTXKO.js → dialogUsageCommand-SEC6UZWM.js} +2 -2
  133. package/{docCreateCommands-CFQFZOAD.js → docCreateCommands-MHPYTJWR.js} +31 -30
  134. package/{docDeleteCommands-5CPNTIIS.js → docDeleteCommands-VYULMBAQ.js} +32 -31
  135. package/{docReadCommands-XQILYSAJ.js → docReadCommands-FV3GGZ7V.js} +31 -30
  136. package/{docStore-GIVRT7TQ.js → docStore-AWWI72FA.js} +9 -9
  137. package/{docUpdateCommands-VETKSUDD.js → docUpdateCommands-JNS3HX7F.js} +31 -30
  138. package/fetchMessages-TQEUZD7H.js +1 -1
  139. package/{getPricing-LF5C4XSI.js → getPricing-U5AR7ZHS.js} +3 -3
  140. package/{handleSendMessageAction-HKIW4ZNO.js → handleSendMessageAction-WDJOUDNV.js} +41 -40
  141. package/{hostCredentialCreate-6VDJFNDO.js → hostCredentialCreate-H3FF2SAO.js} +75 -76
  142. package/index.js +8 -8
  143. package/keys-RWF7UCB4.js +1 -1
  144. package/{localDialogRead-AV2VKKPG.js → localDialogRead-3T2KMCRC.js} +1 -1
  145. package/{localRuntimeAdapter-BQ4F5PZV.js → localRuntimeAdapter-JAQQXZJP.js} +74 -73
  146. package/{localRuntimeAuthority-WCNA4A3G.js → localRuntimeAuthority-7DKIT7UH.js} +2 -2
  147. package/{localRuntimeDb-CRNIBOOM.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
  148. package/{machineCommands-K6XIGOAD.js → machineCommands-WYOFNB5I.js} +73 -74
  149. package/{machineWsRunDispatch-4OO7Z6UM.js → machineWsRunDispatch-Y7UIAZNM.js} +73 -74
  150. package/markdownToSlate-KIYM7B3P.js +8 -0
  151. package/{mcpLocalAuthorizeCommand-ZP6ESAGE.js → mcpLocalAuthorizeCommand-SCYEFLRK.js} +9 -9
  152. package/{memberThunks-PBJPZ2JU.js → memberThunks-DIITWU4M.js} +10 -10
  153. package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
  154. package/package.json +1 -1
  155. package/{projectArchive-G7AOQPRW.js → projectArchive-IZJXBW5N.js} +26 -25
  156. package/{providerPresetApply-OPBCAONX.js → providerPresetApply-2QWXPJXZ.js} +5 -5
  157. package/{providerRegistry-J2HCVTHE.js → providerRegistry-W4LCKK6V.js} +5 -5
  158. package/{read-JEGPITEW.js → read-OBLJNMA2.js} +5 -5
  159. package/{readDocTool-TE3XIU4Y.js → readDocTool-QQZ4DAER.js} +1 -1
  160. package/{readlineWorkspace-SOW5QUGZ.js → readlineWorkspace-WF3SWZGR.js} +2914 -1240
  161. package/rememberExplicit-CPAPONSI.js +15 -0
  162. package/{removeDialogAgentAction-CX3OAH4Y.js → removeDialogAgentAction-HC3SOY3G.js} +10 -10
  163. package/{runAgentClientLoop-HQJPDFGQ.js → runAgentClientLoop-Z7V6TA3O.js} +48 -48
  164. package/{runtimeDoctorCommands-GUH2YGMH.js → runtimeDoctorCommands-KX6YLPWV.js} +8 -8
  165. package/{secretCommands-NJXFVHZU.js → secretCommands-STRAX275.js} +2 -2
  166. package/{setDialogExtraReferencesAction-CGM67EEQ.js → setDialogExtraReferencesAction-DDZUQPY6.js} +9 -9
  167. package/{setPrimaryDialogAgentAction-3ABWPPXR.js → setPrimaryDialogAgentAction-EB67OMAJ.js} +10 -10
  168. package/{settingThunks-AY76OHYX.js → settingThunks-TN6GFASU.js} +8 -8
  169. package/{spaceCommands-G63QGYQO.js → spaceCommands-HBYQUVJI.js} +30 -29
  170. package/{streamAgentChatTurn-E3XH2KFD.js → streamAgentChatTurn-CM7QQXOS.js} +78 -78
  171. package/{switchDialogAgentAction-G6EZRKCQ.js → switchDialogAgentAction-XY5TKQQE.js} +8 -8
  172. package/{tableCommands-JI75ZHDI.js → tableCommands-MXFL3JIT.js} +2 -2
  173. package/{toolApiClient-62UUPDUA.js → toolApiClient-53YMJ2G6.js} +7 -3
  174. package/{tools-7RSX22FT.js → tools-AT6H73LD.js} +39 -40
  175. package/{tuiRestart-KAAA7TND.js → tuiRestart-272SAYSK.js} +8 -8
  176. package/{tuiSummaryLlmCaller-BVNHMWLR.js → tuiSummaryLlmCaller-K2OVRVHG.js} +13 -12
  177. package/{updateCommands-ASK5XYPH.js → updateCommands-O3BOVVVN.js} +3 -3
  178. package/{updateDialogTitleAction-SEWV252V.js → updateDialogTitleAction-PGY4UPLH.js} +22 -21
  179. package/{usageCommand-JVT5J3DC.js → usageCommand-SCF3ROV2.js} +3 -3
  180. package/{usageRebuildCommand-IZYYUTEW.js → usageRebuildCommand-K5WPIBA5.js} +4 -4
  181. package/{windowsSelfUpdate-BSDIS2J5.js → windowsSelfUpdate-WJDUZLEO.js} +2 -2
  182. package/{workContext-MM3P5GP5.js → workContext-Y3ADAPZU.js} +2 -1
  183. package/chunk-XBAEM4RI.js +0 -272
  184. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  185. package/{chunk-ULLHVDTZ.js → chunk-C3GOEQJF.js} +3 -3
  186. package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
  187. package/{workloadLifecycle-YIZ7KLUP.js → workloadLifecycle-HFJIN5IZ.js} +5 -5
@@ -3,26 +3,19 @@ import {
3
3
  } from "./chunk-HS7MLR74.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-Y5OWZQMJ.js";
6
+ } from "./chunk-QGMIUVBT.js";
7
7
  import {
8
8
  fetchServerSyncedCredential
9
- } from "./chunk-IJTXNLQE.js";
9
+ } from "./chunk-DLTMAXLF.js";
10
10
  import {
11
- CREDENTIAL_HYGIENE_RULE,
12
- DELETE_SAFETY_RED_LINE,
13
- DISPATCH_BACKEND_POLICY,
14
- DISPATCH_CANDIDATE_POLICY,
15
- PARALLEL_DISPATCH_DEFAULT_RULE,
16
- PLATFORM_RISK_CONTROL_RULE,
17
- VERIFY_BEFORE_CONCLUDING_RULE,
18
- buildConsultationModeBlock,
19
11
  buildIdentityBlock,
12
+ buildPlatformStaticContextLayers,
20
13
  buildResponseGuidelines,
21
14
  buildRuntimeGuidanceBlocks,
22
15
  compileContextLayers,
23
16
  detectDispatchIntentFromMessages,
24
17
  resolveToolGuidedSections
25
- } from "./chunk-PGKA77TZ.js";
18
+ } from "./chunk-GCVFX6ZL.js";
26
19
  import {
27
20
  convertMessagesToResponsesInput,
28
21
  getUsageRequestOptions,
@@ -31,16 +24,15 @@ import {
31
24
  resolveReasoningReplayOptions,
32
25
  shouldStripReasoningContentForOutbound,
33
26
  stablePromptCacheKey
34
- } from "./chunk-EEOOBRA7.js";
27
+ } from "./chunk-NQQL2DKF.js";
35
28
  import {
36
29
  resolveAgentCallPlan,
37
30
  resolveClientWire
38
- } from "./chunk-TWTJV35S.js";
31
+ } from "./chunk-NL7J2J5Z.js";
39
32
  import {
40
33
  createFileCredentialBroker
41
34
  } from "./chunk-OQHIVPG4.js";
42
35
  import {
43
- WORKTREE_ISOLATION_PRELUDE,
44
36
  buildSkillGuidancePromptBlock
45
37
  } from "./chunk-EBKHA63G.js";
46
38
  import {
@@ -58,7 +50,7 @@ import {
58
50
  } from "./chunk-LCBAMY2M.js";
59
51
  import {
60
52
  buildProviderAuthHeaders
61
- } from "./chunk-RTHFJZ6M.js";
53
+ } from "./chunk-LMFMV5UC.js";
62
54
  import {
63
55
  toErrorMessage
64
56
  } from "./chunk-HNMXYYJR.js";
@@ -69,7 +61,7 @@ import {
69
61
  clampReasoningEffort,
70
62
  getModelConfig,
71
63
  isModelSupportReasoningEffort
72
- } from "./chunk-CD3RU7XL.js";
64
+ } from "./chunk-OJRTTERA.js";
73
65
  import {
74
66
  isRecord
75
67
  } from "./chunk-KUG52IAP.js";
@@ -84,7 +76,7 @@ import {
84
76
  isFireworksKimiModel,
85
77
  isPlatformMimoProviderModel,
86
78
  resolveFireworksKimiModel
87
- } from "./chunk-OBSEKCVK.js";
79
+ } from "./chunk-U4VSBDO5.js";
88
80
 
89
81
  // packages/agent-runtime/responsesConversationState.ts
90
82
  function supportsResponsesConversationState(agent) {
@@ -268,65 +260,8 @@ ${mainPrompt}` : "";
268
260
  const dialogSummarySection = contexts.dialogSummary?.trim() ? `--- \u5386\u53F2\u5BF9\u8BDD\u6458\u8981 ---
269
261
  ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
270
262
  return compileContextLayers([
271
- // 删除安全红线:系统层最高优先级约束,位于所有层之前(含身份信息),
272
- // owner 要求常驻「根本提示词」的最顶部(2026-09-26 批量误删事故)。
273
- {
274
- id: "delete-safety-red-line",
275
- owner: "platform",
276
- cacheScope: "static",
277
- content: DELETE_SAFETY_RED_LINE
278
- },
279
- // 凭据纪律:与红线同为无条件系统层块,四条装配线同源。
280
- {
281
- id: "credential-hygiene",
282
- owner: "platform",
283
- cacheScope: "static",
284
- content: CREDENTIAL_HYGIENE_RULE
285
- },
286
- // 先验证再下结论:一切动作的前提,紧随凭据纪律、先于并行/派发/发布规则。
287
- {
288
- id: "verify-before-concluding",
289
- owner: "platform",
290
- cacheScope: "static",
291
- content: VERIFY_BEFORE_CONCLUDING_RULE
292
- },
293
- // 并行是默认:系统层固定块,紧随红线(同为无条件前缀,不随工具/轮次变化)。
294
- {
295
- id: "parallel-dispatch-default",
296
- owner: "platform",
297
- cacheScope: "static",
298
- content: PARALLEL_DISPATCH_DEFAULT_RULE
299
- },
300
- // 派发落点:并行派发纪律的下一层(派到哪个执行后端),紧随并行块。
301
- {
302
- id: "dispatch-backend-policy",
303
- owner: "platform",
304
- cacheScope: "static",
305
- content: DISPATCH_BACKEND_POLICY
306
- },
307
- // 派发选人:可用性重扫与速度口径(与后端块同级,紧随其后)。
308
- {
309
- id: "dispatch-candidate-policy",
310
- owner: "platform",
311
- cacheScope: "static",
312
- content: DISPATCH_CANDIDATE_POLICY
313
- },
314
- // 平台风控纪律:无条件静态前缀,紧随并行派发块。
315
- {
316
- id: "platform-risk-control",
317
- owner: "platform",
318
- cacheScope: "static",
319
- content: PLATFORM_RISK_CONTROL_RULE
320
- },
321
- { id: "consultation-mode", owner: "platform", cacheScope: "static", content: buildConsultationModeBlock() },
322
- // Git 任务隔离:仓库改动前置,系统层固定块(原 worktree-isolation skill 上移,
323
- // 不受 skill 配置 disabled 影响)。排在既有平台块之后,不扰动其顺序契约。
324
- {
325
- id: "worktree-isolation-prelude",
326
- owner: "platform",
327
- cacheScope: "static",
328
- content: WORKTREE_ISOLATION_PRELUDE
329
- },
263
+ // 顶部固定平台层(唯一真源见 agent-runtime/platformStaticPromptLayers.ts)。
264
+ ...buildPlatformStaticContextLayers(),
330
265
  { id: "identity", owner: "platform", cacheScope: "session", content: identitySection },
331
266
  { id: "user-response-language", owner: "platform", cacheScope: "session", content: buildUserResponseLanguageContext({ language: safeLanguage }) },
332
267
  { id: "startup-protocol", owner: "platform", cacheScope: "static", content: startupProtocol },
@@ -4,7 +4,7 @@ import {
4
4
  openrouterModels,
5
5
  platformHostedModels,
6
6
  zaiModels
7
- } from "./chunk-OBSEKCVK.js";
7
+ } from "./chunk-U4VSBDO5.js";
8
8
 
9
9
  // packages/ai/llm/modelAbility.ts
10
10
  var MODEL_ABILITY_TABLE = {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  googleSessionRequestToken,
3
3
  isGoogleAuthoritySession
4
- } from "./chunk-ULLHVDTZ.js";
4
+ } from "./chunk-C3GOEQJF.js";
5
5
  import {
6
6
  selectIdentityToken
7
7
  } from "./chunk-PXYBUFDB.js";
@@ -6,7 +6,10 @@ import {
6
6
  resolveDiscoveryScope,
7
7
  resolvePaginationArgs,
8
8
  toDiscoverySafeAgentSummary
9
- } from "./chunk-ZEKUFJLW.js";
9
+ } from "./chunk-BWW6WRX6.js";
10
+ import {
11
+ normalizeTopicKey
12
+ } from "./chunk-MVOZ22RZ.js";
10
13
  import {
11
14
  formatWorkContextWriteNotice
12
15
  } from "./chunk-WDWZPASX.js";
@@ -21,7 +24,7 @@ import {
21
24
  applyFetchSpaceFulfilled,
22
25
  fetchAuthoritativeRemoteSpace,
23
26
  selectSpaceRemoteAuth
24
- } from "./chunk-6WZVM33D.js";
27
+ } from "./chunk-TXQVH72L.js";
25
28
  import {
26
29
  ToolResultError,
27
30
  clipMultilineText,
@@ -35,7 +38,7 @@ import {
35
38
  toolRunUpdated,
36
39
  uiCardFallback,
37
40
  waitForAbortableDelay
38
- } from "./chunk-VREG6ANQ.js";
41
+ } from "./chunk-Y5RN44VH.js";
39
42
  import {
40
43
  isGatewayHttpStatus
41
44
  } from "./chunk-NF64D32W.js";
@@ -44,7 +47,7 @@ import {
44
47
  } from "./chunk-DVYAFH2Q.js";
45
48
  import {
46
49
  createDocState
47
- } from "./chunk-DXW5WDHZ.js";
50
+ } from "./chunk-EW37CXCQ.js";
48
51
  import {
49
52
  ToolApiError,
50
53
  buildToolRequestHeaders,
@@ -52,28 +55,19 @@ import {
52
55
  getRequestConfig,
53
56
  getToolBaseUrl,
54
57
  getToolRequestContext
55
- } from "./chunk-XS5A3EKX.js";
58
+ } from "./chunk-4YFC3DWW.js";
56
59
  import {
57
60
  readDocFunc,
58
61
  readDocFunctionSchema,
59
62
  readPageFunc,
60
63
  readPageFunctionSchema,
61
64
  resolvePageReadMarkdown
62
- } from "./chunk-BIABIPGW.js";
63
- import {
64
- markdownToSlate
65
- } from "./chunk-FJ23FZXF.js";
66
- import {
67
- extractMentionsFromSlate
68
- } from "./chunk-AGIM7IMJ.js";
69
- import {
70
- slateToRenderMarkdown
71
- } from "./chunk-63W5N6P3.js";
65
+ } from "./chunk-UAOFSUG7.js";
72
66
  import {
73
67
  createDialogAction,
74
68
  uiAskChoiceFunc,
75
69
  uiAskChoiceFunctionSchema
76
- } from "./chunk-PRMEU7BT.js";
70
+ } from "./chunk-KGIIZXPL.js";
77
71
  import {
78
72
  DEFAULT_COLLAPSED_CATEGORIES,
79
73
  addContentToSpace,
@@ -90,7 +84,7 @@ import {
90
84
  updateContentCategory,
91
85
  updateContentTitle,
92
86
  writeStoredCollapsedCategories
93
- } from "./chunk-FZKA3XFA.js";
87
+ } from "./chunk-6BGJHJRN.js";
94
88
  import {
95
89
  addMemberSpace,
96
90
  getAllMemberSpaces,
@@ -107,7 +101,7 @@ import {
107
101
  setViewMode,
108
102
  updateCurrentSpaceIfMatch,
109
103
  updateMemberSpaceName
110
- } from "./chunk-IUTUWIKE.js";
104
+ } from "./chunk-C646JEUV.js";
111
105
  import {
112
106
  buildDatabaseFileContentUrl,
113
107
  deleteDialog,
@@ -116,14 +110,14 @@ import {
116
110
  selectCurrentDialogConfig,
117
111
  selectCurrentDialogId,
118
112
  selectMsgById
119
- } from "./chunk-B7DE5XJW.js";
113
+ } from "./chunk-FXX6VFMV.js";
120
114
  import {
121
115
  createAgent,
122
116
  deleteServerSyncedCredential,
123
117
  runLlm,
124
118
  streamAgentChatTurn,
125
119
  updateAgent
126
- } from "./chunk-IJTXNLQE.js";
120
+ } from "./chunk-DLTMAXLF.js";
127
121
  import {
128
122
  buildMediaToolConfirmation,
129
123
  normalizeMediaConfirmExecutionRevision
@@ -136,7 +130,7 @@ import {
136
130
  } from "./chunk-RD3QLZQV.js";
137
131
  import {
138
132
  resolveDefaultReasoningEffort
139
- } from "./chunk-5ZUOVCKT.js";
133
+ } from "./chunk-YUZ2DAIH.js";
140
134
  import {
141
135
  fetchWithTransientRetry
142
136
  } from "./chunk-DXWGFL2Z.js";
@@ -149,16 +143,16 @@ import {
149
143
  } from "./chunk-3L2WKC3W.js";
150
144
  import {
151
145
  shareResourceAction
152
- } from "./chunk-YGCOJNFZ.js";
146
+ } from "./chunk-FPMPWNVQ.js";
153
147
  import {
154
148
  selectCurrentServer,
155
149
  selectSyncServers
156
- } from "./chunk-O6IPRAVV.js";
150
+ } from "./chunk-ZQUCJBS4.js";
157
151
  import {
158
152
  UNCATEGORIZED_ID,
159
153
  addContentAction,
160
154
  checkSpaceMembership
161
- } from "./chunk-T6VROBY7.js";
155
+ } from "./chunk-CZLSTOVM.js";
162
156
  import {
163
157
  createSpaceKey,
164
158
  normalizeSpaceId
@@ -174,10 +168,10 @@ import {
174
168
  selectEntities,
175
169
  toTimestampMs,
176
170
  write
177
- } from "./chunk-RM4UMFY4.js";
171
+ } from "./chunk-TXFYIWAW.js";
178
172
  import {
179
173
  readAction
180
- } from "./chunk-F3XI6WQP.js";
174
+ } from "./chunk-X37RQEA3.js";
181
175
  import {
182
176
  DEVICE_LOCAL_OWNER_ID,
183
177
  getRuntimeServerContext,
@@ -187,12 +181,12 @@ import {
187
181
  resolveEffectiveSpaceActorId,
188
182
  resolveRecordOwnerUserId,
189
183
  selectRuntimeSnapshot
190
- } from "./chunk-GXXY2NL3.js";
184
+ } from "./chunk-F3FQPVHE.js";
191
185
  import {
192
186
  createAsyncThunk,
193
187
  createSelector,
194
188
  noloWriteRequest
195
- } from "./chunk-7TTMMOKH.js";
189
+ } from "./chunk-7OTNBI77.js";
196
190
  import {
197
191
  selectIdentityToken,
198
192
  selectIdentityUserBalance,
@@ -216,7 +210,7 @@ import {
216
210
  normalizeRunTitle,
217
211
  resolveAgentRunName,
218
212
  resolveRunLabel
219
- } from "./chunk-OOJNQK6V.js";
213
+ } from "./chunk-S25VJYXV.js";
220
214
  import {
221
215
  buildTombstoneRecord,
222
216
  isTombstoneRecord
@@ -239,7 +233,7 @@ import {
239
233
  normalizeNoloSpaceInput,
240
234
  resolveNoloDialogInput,
241
235
  verifyNoloDialogSubjectRefQuery
242
- } from "./chunk-G22P367E.js";
236
+ } from "./chunk-IUXBKS5L.js";
243
237
  import {
244
238
  mergeAvailabilityDeadline,
245
239
  resolveCredentialKeyWithFallback
@@ -329,7 +323,7 @@ import {
329
323
  DEFAULT_MODEL,
330
324
  clampReasoningEffort,
331
325
  resolveModelReasoningCapabilityWithCache
332
- } from "./chunk-CD3RU7XL.js";
326
+ } from "./chunk-OJRTTERA.js";
333
327
  import {
334
328
  isRecord
335
329
  } from "./chunk-KUG52IAP.js";
@@ -1040,7 +1034,7 @@ var HOSTED_EXEC_RUNTIME_TOOL_POLICY = {
1040
1034
  workspace: { mode: "lease" }
1041
1035
  };
1042
1036
  var findModelConfig = async (modelName, provider) => {
1043
- const { ALL_MODELS } = await import("./models-H5NNZRLH.js");
1037
+ const { ALL_MODELS } = await import("./models-CINY5UZR.js");
1044
1038
  const name = toTrimmedString(modelName);
1045
1039
  const prov = toTrimmedString(provider ?? "");
1046
1040
  if (!name) return null;
@@ -1285,7 +1279,7 @@ var buildPlatformFormDataFromArgs = async (args) => {
1285
1279
  const trimmedModel = toTrimmedString(model);
1286
1280
  const trimmedProvider = toTrimmedString(provider);
1287
1281
  const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
1288
- const { getModelPricing } = await import("./getPricing-LF5C4XSI.js");
1282
+ const { getModelPricing } = await import("./getPricing-U5AR7ZHS.js");
1289
1283
  const normalizedTools = tools ?? [];
1290
1284
  const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
1291
1285
  const formData = {
@@ -3959,7 +3953,7 @@ async function deleteDialogsFunc(args, thunkApi) {
3959
3953
  const deletedDialogIds = [];
3960
3954
  const deletedDialogKeys = [];
3961
3955
  const failures = [];
3962
- const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-QAKYN4DE.js");
3956
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-A4U3C76D.js");
3963
3957
  for (const target of targets) {
3964
3958
  try {
3965
3959
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -4397,7 +4391,7 @@ var readSkillDocFunctionSchema = {
4397
4391
  }
4398
4392
  };
4399
4393
  async function readSkillDocFunc(args, thunkApi) {
4400
- const { buildReadDocResult } = await import("./readDocTool-TE3XIU4Y.js");
4394
+ const { buildReadDocResult } = await import("./readDocTool-QQZ4DAER.js");
4401
4395
  const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
4402
4396
  if (typeof id !== "string" || !id.trim()) {
4403
4397
  throw new Error("readSkillDoc requires id or doc.");
@@ -5249,7 +5243,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
5249
5243
  const spaceKey = createSpaceKey.space(spaceId);
5250
5244
  const readSpace = async (dbKey) => {
5251
5245
  try {
5252
- const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-DKKMJJYY.js");
5246
+ const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-7M2ESEUO.js");
5253
5247
  const readPromise = fresh ? dispatch(readAndWait2(dbKey)).unwrap() : dispatch(read2({ dbKey })).unwrap();
5254
5248
  return await withTimeout(readPromise);
5255
5249
  } catch {
@@ -11162,7 +11156,7 @@ var cloudflareCrawlStatusFunctionSchema = {
11162
11156
  async function cloudflareCrawlStatusFunc(args, thunkApi) {
11163
11157
  const { jobId, limit, status, cursor } = args;
11164
11158
  if (!jobId) throw new Error("\u5FC5\u987B\u63D0\u4F9B jobId");
11165
- const { getToolRequestContext: getToolRequestContext2 } = await import("./toolApiClient-62UUPDUA.js");
11159
+ const { getToolRequestContext: getToolRequestContext2 } = await import("./toolApiClient-53YMJ2G6.js");
11166
11160
  const { baseUrl, token } = getToolRequestContext2(thunkApi);
11167
11161
  const params = new URLSearchParams();
11168
11162
  if (limit !== void 0) params.set("limit", String(limit));
@@ -11938,7 +11932,7 @@ var selectUserIdFromState = (state2) => {
11938
11932
  var selectCurrentServerFromState = (state2) => typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : null;
11939
11933
  async function addImageContentToSpace(input) {
11940
11934
  const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
11941
- const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-GVC77QSN.js")).addContentAction;
11935
+ const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-HEMCSSHT.js")).addContentAction;
11942
11936
  await addContentAction2(
11943
11937
  {
11944
11938
  spaceId: input.spaceId,
@@ -12682,7 +12676,7 @@ var rememberMemoryFunctionSchema = {
12682
12676
  "\u628A\u503C\u5F97\u957F\u671F\u8BB0\u4F4F\u7684\u7528\u6237\u504F\u597D\u3001\u7EA0\u6B63\u3001\u51B3\u7B56\u4E60\u60EF\u6216\u5F53\u524D Space \u5171\u8BC6\u5199\u6210\u4E00\u6761 memory\u3002",
12683
12677
  "\u9ED8\u8BA4\u503E\u5411\u4E8E\u8BB0\uFF1A\u7528\u6237\u8BF4\u51FA\u300C\u8BB0\u4F4F/\u8BB0\u5F97/\u522B\u5FD8\u4E86/\u4EE5\u540E\u90FD/\u522B\u518D/\u6211\u559C\u6B22/\u6211\u4E0D\u559C\u6B22/\u4E0B\u6B21\u300D\u8FD9\u7C7B\u8BDD\u65F6\uFF0C\u9ED8\u8BA4\u5C31\u8C03\u7528\u672C\u5DE5\u5177\uFF0C\u4E0D\u8981\u53CD\u590D\u81EA\u95EE\u662F\u5426\u591F\u683C\u3002",
12684
12678
  "\u666E\u901A\u957F\u671F\u8BB0\u5FC6\u4ECD\u4E0D\u8BB0\u4E00\u6B21\u6027\u4EFB\u52A1\u7EC6\u8282\u3001\u5F53\u524D\u4EFB\u52A1\u8FDB\u5EA6\u6216\u5F88\u5FEB\u8FC7\u671F\u7684\u4E8B\u5B9E\uFF1B\u9700\u8DE8\u8F6E\u63A5\u7EED\u7684\u5DE5\u4F5C\u7528 mode=work\u3002",
12685
- "\u3010\u7248\u672C\u4E0E\u6F14\u8FDB\u8BF4\u660E\u3011\u8C03\u7528\u672C\u5DE5\u5177\u662F\u5199\u5165\u65B0\u8BB0\u5F55\uFF0C\u5E95\u5C42\u4E0D\u4FDD\u8BC1\u81EA\u52A8\u8BC6\u522B\u3001\u5408\u5E76\u6216\u66FF\u4EE3\u540C\u4E00\u4E8B\u5B9E\u7684\u65E7\u8BB0\u5F55\uFF1B\u5199\u5165\u65F6\u8BF7\u7528\u5F53\u524D\u6700\u65B0\u7684\u5B8C\u6574\u8868\u8FF0\u8BF4\u6E05\uFF0C\u4F46\u4E0D\u8981\u5047\u8BBE\u65E7\u8BB0\u5F55\u5DF2\u88AB\u81EA\u52A8\u8986\u76D6\u3002\u4E25\u7981\u6A21\u578B\u81EA\u884C\u8C03\u7528 deleteMemory \u7EF4\u62A4\u7248\u672C\u6216\u6E05\u7406\u65E7\u6761\u3002",
12679
+ '\u3010\u7248\u672C\u4E0E\u6F14\u8FDB\u8BF4\u660E\u3011\u672A\u4F20 topicKey \u65F6\uFF0C\u8C03\u7528\u672C\u5DE5\u5177\u662F\u5199\u5165\u65B0\u8BB0\u5F55\uFF0C\u5E95\u5C42\u4E0D\u4FDD\u8BC1\u81EA\u52A8\u8BC6\u522B\u3001\u5408\u5E76\u6216\u66FF\u4EE3\u540C\u4E00\u4E8B\u5B9E\u7684\u65E7\u8BB0\u5F55\uFF1B\u82E5\u540C\u4E00\u504F\u597D/\u4E8B\u5B9E\u53D1\u751F\u6F14\u8FDB\uFF0C\u8BF7\u4F20\u76F8\u540C\u7684\u7A33\u5B9A topicKey\uFF08\u5982 "code-formatter"\uFF09\u4EE5\u81EA\u52A8\u9000\u5F79\u65E7\u7248\u672C\u5E76\u4FDD\u7559\u5386\u53F2\u5BA1\u8BA1\u94FE\u3002\u4E25\u7981\u6A21\u578B\u81EA\u884C\u8C03\u7528 deleteMemory \u7EF4\u62A4\u7248\u672C\u6216\u6E05\u7406\u65E7\u6761\u3002',
12686
12680
  "\u3010\u65F6\u6548\u72B6\u6001\u7981\u5165\u3011\u914D\u989D\u4F59\u91CF\u3001\u9650\u6D41\u51B7\u5374\u671F\u9650\u3001\u90E8\u7F72\u5F53\u524D\u72B6\u6001\u7B49\u5F88\u5FEB\u8FC7\u671F\u7684\u5FEB\u7167\u4E0D\u8FDB\u957F\u671F\u8BB0\u5FC6\uFF1B\u8FD9\u7C7B\u4FE1\u606F\u7528\u5B9E\u65F6\u67E5\u8BE2\uFF08\u5982 listAgents\u3001\u90E8\u7F72\u65E5\u5FD7\uFF09\u83B7\u53D6\u5F53\u4E0B\u771F\u503C\uFF0C\u4E0D\u8981\u843D\u8FDB\u8BB0\u5FC6\u3002",
12687
12681
  "\u3010procedural \u786C\u95E8\u3011kind=procedural \u5FC5\u987B\u540C\u65F6\u4F20 recurrenceEvidence\uFF08\u8BF4\u660E\u540C\u4E00\u95EE\u9898\u6B64\u524D\u5728\u4EC0\u4E48\u65F6\u5019\u9047\u5230\u8FC7\uFF09\uFF1B",
12688
12682
  "\u7ED9\u4E0D\u51FA\u590D\u73B0\u8BC1\u636E\u7684\u4E00\u5F8B\u6309 episodic \u5B58\u50A8\uFF08\u4E0D\u62A5\u9519\uFF0C\u4F46\u4F60\u4F1A\u5728\u8FD4\u56DE\u503C\u91CC\u770B\u5230\u964D\u7EA7\u63D0\u793A\uFF09\u3002",
@@ -12735,6 +12729,10 @@ var rememberMemoryFunctionSchema = {
12735
12729
  recurrenceEvidence: {
12736
12730
  type: "string",
12737
12731
  description: "kind=procedural \u65F6\u5FC5\u586B\uFF1A\u540C\u4E00\u95EE\u9898\u6B64\u524D\u5728\u4EC0\u4E48\u65F6\u5019\u9047\u5230\u8FC7\uFF08\u65F6\u95F4/\u573A\u666F/\u5BF9\u8BDD\uFF09\uFF0C\u7528\u4E8E\u8BC1\u660E\u5B83\u786E\u5B9E\u91CD\u590D\u51FA\u73B0\u3002\u4F8B\u5982\u201C2026-08-27 \u548C 2026-09-01 \u4E24\u6B21\u90E8\u7F72\u90FD\u5361\u5728\u540C\u4E00\u5904 PM2 \u6B8B\u7559\u5B9E\u4F8B\u201D\u3002\u7F3A\u5931\u5219\u672C\u6761\u964D\u7EA7\u4E3A episodic\u3002"
12732
+ },
12733
+ topicKey: {
12734
+ type: "string",
12735
+ description: '\u53EF\u9009\u7A33\u5B9A\u4E3B\u9898\u952E\uFF08\u5982 "code-formatter"\u3001"report-language"\uFF0C\u4EC5\u7528\u5C0F\u5199\u5B57\u6BCD/\u6570\u5B57/._:-\uFF0C\u2264128 \u5B57\u7B26\uFF09\u3002\u540C\u4E00\u504F\u597D\u6216\u4E8B\u5B9E\u6F14\u8FDB\u65F6\u4F20\u76F8\u540C\u7A33\u5B9A\u952E\uFF0C\u5E95\u5C42\u4F1A\u81EA\u52A8\u9000\u5F79\u540C\u4E3B\u4F53\u540C\u7C7B\u578B\u7684\u65E7\u7248\u672C\u5E76\u4FDD\u7559\u5386\u53F2\u5BA1\u8BA1\u94FE\uFF1B\u4E0D\u4F20\u5219\u6309\u72EC\u7ACB\u65B0\u8BB0\u5F55\u4FDD\u7559\u3002'
12738
12736
  }
12739
12737
  },
12740
12738
  required: []
@@ -12744,26 +12742,48 @@ var rememberMemoryFunctionSchema = {
12744
12742
  // packages/ai/tools/rememberMemoryTool.ts
12745
12743
  async function rememberMemoryFunc(args, thunkApi, context2) {
12746
12744
  if (args.mode === "work") {
12747
- if (args.storage === "local") throw new Error("Web work memory only supports server storage");
12745
+ if (args.storage === "local")
12746
+ throw new Error("Web work memory only supports server storage");
12748
12747
  const dialogId2 = context2?.dialogId;
12749
12748
  const messageId = context2?.userMessageId;
12750
- if (!dialogId2 || !messageId) throw new Error("work memory requires a bound persisted user message");
12749
+ if (!dialogId2 || !messageId)
12750
+ throw new Error("work memory requires a bound persisted user message");
12751
12751
  const key2 = dialogMessageKey(dialogId2, messageId);
12752
12752
  const db = thunkApi.extra?.db;
12753
- if (!db || typeof db.get !== "function") throw new Error("work memory requires a bound persisted user message");
12753
+ if (!db || typeof db.get !== "function")
12754
+ throw new Error("work memory requires a bound persisted user message");
12754
12755
  let persisted;
12755
12756
  try {
12756
12757
  persisted = await db.get(key2);
12757
12758
  } catch {
12758
12759
  throw new Error("work memory requires a bound persisted user message");
12759
12760
  }
12760
- if (!persisted || persisted.dbKey !== key2 || persisted.id !== messageId || persisted.role !== "user" || persisted.metadata?.queueState === "pending" || isTombstoneRecord(persisted) || typeof persisted.content !== "string") throw new Error("work memory requires a bound persisted user message");
12761
+ if (!persisted || persisted.dbKey !== key2 || persisted.id !== messageId || persisted.role !== "user" || persisted.metadata?.queueState === "pending" || isTombstoneRecord(persisted) || typeof persisted.content !== "string")
12762
+ throw new Error("work memory requires a bound persisted user message");
12761
12763
  resolveMemoryToolContext(thunkApi.getState(), context2);
12762
- const result2 = await callToolApi(thunkApi, "/api/memory/remember", { mode: "work", dialogId: dialogId2, userMessageId: persisted.id, itemKey: args.itemKey, activityId: args.activityId, expectedRevision: args.expectedRevision, changeId: args.changeId, patch: args.patch }, { withAuth: true });
12763
- if (result2?.error) throw new Error(result2.error.message ?? "work memory rejected");
12764
+ const result2 = await callToolApi(
12765
+ thunkApi,
12766
+ "/api/memory/remember",
12767
+ {
12768
+ mode: "work",
12769
+ dialogId: dialogId2,
12770
+ userMessageId: persisted.id,
12771
+ itemKey: args.itemKey,
12772
+ activityId: args.activityId,
12773
+ expectedRevision: args.expectedRevision,
12774
+ changeId: args.changeId,
12775
+ patch: args.patch
12776
+ },
12777
+ { withAuth: true }
12778
+ );
12779
+ if (result2?.error)
12780
+ throw new Error(result2.error.message ?? "work memory rejected");
12764
12781
  const notice = formatWorkContextWriteNotice(result2);
12765
12782
  return {
12766
- rawData: { ...result2, notice: [notice, result2?.notice].filter(Boolean).join("\n") },
12783
+ rawData: {
12784
+ ...result2,
12785
+ notice: [notice, result2?.notice].filter(Boolean).join("\n")
12786
+ },
12767
12787
  displayData: notice
12768
12788
  };
12769
12789
  }
@@ -12775,6 +12795,7 @@ async function rememberMemoryFunc(args, thunkApi, context2) {
12775
12795
  const scope = args.scope ?? "auto";
12776
12796
  const kind = args.kind ?? "episodic";
12777
12797
  const recurrenceEvidence = String(args.recurrenceEvidence ?? "").trim();
12798
+ const topicKey = normalizeTopicKey(args.topicKey);
12778
12799
  if (!content) {
12779
12800
  throw new Error("rememberMemory \u9700\u8981\u975E\u7A7A content\u3002");
12780
12801
  }
@@ -12790,11 +12811,14 @@ async function rememberMemoryFunc(args, thunkApi, context2) {
12790
12811
  ...agentKey ? { agentKey } : {},
12791
12812
  source: "agent-inferred",
12792
12813
  ...recurrenceEvidence ? { recurrenceEvidence } : {},
12793
- ...args.provenance ? { provenance: args.provenance } : {}
12814
+ ...args.provenance ? { provenance: args.provenance } : {},
12815
+ ...topicKey ? { topicKey } : {}
12794
12816
  },
12795
12817
  { withAuth: true }
12796
12818
  );
12797
12819
  const scopeLabel = result.resolvedScopes?.[0]?.ownerType === "space" ? "\u5F53\u524D\u7A7A\u95F4" : "\u5F53\u524D\u7528\u6237";
12820
+ const supersededCount = result.savedItems?.[0]?.supersedesStateIds?.length ?? 0;
12821
+ const supersedeHint = supersededCount ? "\uFF08\u5DF2\u81EA\u52A8\u9000\u5F79\u540C\u4E3B\u9898\u65E7\u7248\u672C\u5E76\u4FDD\u7559\u5386\u53F2\u8BB0\u5F55\uFF09" : "";
12798
12822
  const similar = result.similarMemories ?? [];
12799
12823
  const similarHint = similar.length ? `
12800
12824
  \u63D0\u793A\uFF1A\u5DF2\u6709 ${similar.length} \u6761\u8BED\u4E49\u76F8\u8FD1\u7684\u65E2\u6709\u8BB0\u5FC6\uFF08\u5982 ${similar[0].id}\uFF1A"${similar[0].content.slice(0, 48)}\u2026"\uFF09\u3002\u4E0D\u5F97\u81EA\u884C\u5220\u9664\u6216\u5F52\u6863\u65E7\u6761\uFF1B\u4EC5\u5728\u7528\u6237\u660E\u786E\u8981\u6C42\u4E14\u7B26\u5408\u5220\u9664\u6743\u9650\u65F6\u624D\u5904\u7406\u3002` : "";
@@ -12802,7 +12826,7 @@ async function rememberMemoryFunc(args, thunkApi, context2) {
12802
12826
  \u6CE8\u610F\uFF1A${result.kindDowngradeReason}` : "";
12803
12827
  return {
12804
12828
  rawData: result,
12805
- displayData: `\u5DF2\u8BB0\u4F4F\u8FD9\u6761${scopeLabel}\u8BB0\u5FC6\u3002${downgradeHint}${similarHint}`
12829
+ displayData: `\u5DF2\u8BB0\u4F4F\u8FD9\u6761${scopeLabel}\u8BB0\u5FC6\u3002${supersedeHint}${downgradeHint}${similarHint}`
12806
12830
  };
12807
12831
  }
12808
12832
 
@@ -19179,6 +19203,15 @@ async function updateDocFunc(args, thunkApi) {
19179
19203
  if (!originalData) {
19180
19204
  throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
19181
19205
  }
19206
+ const [
19207
+ { markdownToSlate },
19208
+ { slateToRenderMarkdown },
19209
+ { extractMentionsFromSlate }
19210
+ ] = await Promise.all([
19211
+ import("./markdownToSlate-KIYM7B3P.js"),
19212
+ import("./slateToRenderMarkdown-R3X74MCX.js"),
19213
+ import("./slateUtils-ESQAJ6RN.js")
19214
+ ]);
19182
19215
  const currentMarkdown = typeof originalData.content === "string" && originalData.content.trim() ? originalData.content : slateToRenderMarkdown(
19183
19216
  Array.isArray(originalData.slateData) ? originalData.slateData : []
19184
19217
  );
@@ -19199,7 +19232,7 @@ async function updateDocFunc(args, thunkApi) {
19199
19232
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
19200
19233
  };
19201
19234
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
19202
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-GIVRT7TQ.js");
19235
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-AWWI72FA.js");
19203
19236
  if (getDocState().pageKey === id) {
19204
19237
  applyExternalDocUpdate({
19205
19238
  slateData: finalSlateData,
@@ -19224,7 +19257,7 @@ async function updateDocFunc(args, thunkApi) {
19224
19257
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
19225
19258
  async function dispatchSetSettings(thunkApi, changes) {
19226
19259
  const injectedSetSettings = thunkApi?.extra?.setSettings;
19227
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-AY76OHYX.js")).setSettings;
19260
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-TN6GFASU.js")).setSettings;
19228
19261
  await thunkApi.dispatch(setSettings(changes)).unwrap();
19229
19262
  }
19230
19263
  var updateUserPreferenceProfileFunctionSchema = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveRuntimeAuthToken
3
- } from "./chunk-2X7WFDT6.js";
3
+ } from "./chunk-4FE3IWRE.js";
4
4
  import {
5
5
  NOLO_DEFAULT_AGENT_ID,
6
6
  NOLO_DEFAULT_AGENT_KEY
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-TUSTONB3.js";
4
4
  import {
5
5
  getReadableCliDb
6
- } from "./chunk-AVJDELEA.js";
6
+ } from "./chunk-DLT2DN4M.js";
7
7
  import {
8
8
  clearCliLocalRuntimePreparedAgentCache
9
- } from "./chunk-7AJRJGSQ.js";
9
+ } from "./chunk-FCAMGBLY.js";
10
10
  import {
11
11
  readCredentialAvailability
12
12
  } from "./chunk-WWTSEBDF.js";
@@ -25,7 +25,7 @@ import {
25
25
  resolveAgentRecordFromHybridStore,
26
26
  sanitizeAgentRecordForCliOutput,
27
27
  writeAgentRecord
28
- } from "./chunk-BXSMFPTG.js";
28
+ } from "./chunk-QES2NCVM.js";
29
29
  import {
30
30
  resolveCliAgentKeyInput
31
31
  } from "./chunk-BR3GT6MR.js";
@@ -256,7 +256,7 @@ async function runAgentCreateCommand(args, deps = {}) {
256
256
  let verifyResult;
257
257
  if (parsed.verify) {
258
258
  try {
259
- const { verifyCustomProvider } = await import("./agentProviderCommands-O3Q25PKU.js");
259
+ const { verifyCustomProvider } = await import("./agentProviderCommands-N5EA3ED2.js");
260
260
  const rec = built.nextRecord;
261
261
  const verifyCredentialRef = typeof rec.credentialRef === "string" && rec.credentialRef.trim() ? rec.credentialRef.trim() : "";
262
262
  if (verifyCredentialRef) {
@@ -10,7 +10,7 @@ import {
10
10
  canUsePlatformChatProvider,
11
11
  parsePlatformChatCompletionResponse,
12
12
  resolvePlatformChatProviderConfig
13
- } from "./chunk-HOM6LTEW.js";
13
+ } from "./chunk-OYHJ4TW7.js";
14
14
  import {
15
15
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
16
16
  classifySummaryError,
@@ -18,7 +18,7 @@ import {
18
18
  isTruncatedCompletion,
19
19
  selectSummaryRoute,
20
20
  summaryCompletionTokens
21
- } from "./chunk-L32W3PRP.js";
21
+ } from "./chunk-6X3CS6NJ.js";
22
22
  import {
23
23
  isAbortError
24
24
  } from "./chunk-7DPNBQSV.js";
@@ -28,10 +28,10 @@ import {
28
28
  import {
29
29
  resolvePlatformAuthToken,
30
30
  resolvePlatformServerUrl
31
- } from "./chunk-RTHFJZ6M.js";
31
+ } from "./chunk-LMFMV5UC.js";
32
32
  import {
33
33
  PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL
34
- } from "./chunk-OBSEKCVK.js";
34
+ } from "./chunk-U4VSBDO5.js";
35
35
 
36
36
  // packages/core/accountSession/fetchAccountProfile.ts
37
37
  async function fetchAccountProfile(input) {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-4Q6HQORG.js";
3
+ } from "./chunk-KOIDLCAQ.js";
4
4
  import {
5
5
  resolveServerUrl
6
6
  } from "./chunk-BIDSIRTS.js";
7
7
  import {
8
8
  t
9
- } from "./chunk-S2MHR4PU.js";
9
+ } from "./chunk-YFRJAE3R.js";
10
10
 
11
11
  // packages/cli/cliApiClient.ts
12
12
  var CliApiError = class extends Error {
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  compareAgentSelection,
9
9
  resolveModelTier
10
- } from "./chunk-G22P367E.js";
10
+ } from "./chunk-IUXBKS5L.js";
11
11
  import {
12
12
  DEFAULT_PROVIDER_RETRY_MS,
13
13
  isAgentUnavailableNow,
@@ -32,12 +32,12 @@ import {
32
32
  } from "./chunk-SYTHYBMI.js";
33
33
  import {
34
34
  getModelAbility
35
- } from "./chunk-62HXNQVV.js";
35
+ } from "./chunk-776CXKMX.js";
36
36
  import {
37
37
  isAntigravityOAuthAgent,
38
38
  isSubscriptionEndpoint,
39
39
  isSubscriptionOAuthCredential
40
- } from "./chunk-6CKUO32A.js";
40
+ } from "./chunk-LN4ZVSO7.js";
41
41
  import {
42
42
  asTrimmedLowercaseString
43
43
  } from "./chunk-QSJ3HFEF.js";