nolo-cli 0.226.0-alpha.2 → 0.228.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 (198) hide show
  1. package/{_executeModel-IKZGZZXW.js → _executeModel-WZKT6XEU.js} +74 -75
  2. package/{action-CK64LS6S.js → action-GDZDXPMB.js} +7 -7
  3. package/{addContentAction-EQXMFNPR.js → addContentAction-7RO4AMRI.js} +12 -12
  4. package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-EVYBGTXB.js} +14 -14
  5. package/{agentDeleteCommand-IZY3VF5F.js → agentDeleteCommand-PZWRHNXY.js} +114 -116
  6. package/{agentEmailCommands-YWL567CL.js → agentEmailCommands-QTKMEICX.js} +115 -117
  7. package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
  8. package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
  9. package/{agentListCommands-YBNOQ5T3.js → agentListCommands-GUGMORTK.js} +84 -70
  10. package/{agentMachineCommands-AXJ4A772.js → agentMachineCommands-7QGICJLM.js} +56 -55
  11. package/{agentProviderCommands-7BSJH7TO.js → agentProviderCommands-STI3DQ6A.js} +6 -6
  12. package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-KHV4EELF.js} +5 -5
  13. package/{agentRecordCommands-WUUC2CX7.js → agentRecordCommands-SLLADS5C.js} +102 -104
  14. package/{agentRunCommand-W6MDKVLJ.js → agentRunCommand-OFQLOF5Y.js} +113 -114
  15. package/{agentRunControl-DFEEOFC7.js → agentRunControl-MBG4U6SL.js} +20 -14
  16. package/{agentRuntimeLocal-GSTYFEX4.js → agentRuntimeLocal-TU4LA353.js} +39 -39
  17. package/{agentSlice-5F5U5X2U.js → agentSlice-L4SBGWTB.js} +16 -16
  18. package/{appDeleteCommands-L7HL4AWF.js → appDeleteCommands-JWP3XPUA.js} +50 -49
  19. package/{appDeployCommands-SGSUNFZR.js → appDeployCommands-6E4TQCWI.js} +50 -49
  20. package/{appDeployStatusCommands-AAA3XD54.js → appDeployStatusCommands-ALU4SADG.js} +50 -49
  21. package/{appGetCommands-LN72GAOA.js → appGetCommands-JEY4L6L4.js} +50 -49
  22. package/{appListCommands-IJQQ3VND.js → appListCommands-PCAVHU7M.js} +50 -49
  23. package/{authCommand-7JXW54U4.js → authCommand-CGRIIOOV.js} +26 -27
  24. package/{authCommands-YDNAIDEY.js → authCommands-55OGQGCR.js} +9 -10
  25. package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-BAE2LDXF.js} +4 -4
  26. package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-WAA45NCS.js} +6 -6
  27. package/{chunk-OB6DVWPF.js → chunk-262R3XNN.js} +16 -2
  28. package/{chunk-N5PQJKCY.js → chunk-2MCB7CD7.js} +13 -12
  29. package/{chunk-VFBVA3U2.js → chunk-2NPD3FTX.js} +3 -3
  30. package/{chunk-SBVTHMEG.js → chunk-2X7WFDT6.js} +1 -1
  31. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  32. package/{chunk-JWXITTQB.js → chunk-3P54D2E4.js} +1 -1
  33. package/{chunk-ZH6MUQEO.js → chunk-3U44JB3O.js} +1 -1
  34. package/{chunk-EUCFKKDM.js → chunk-4I2MXV5Q.js} +38 -10
  35. package/{chunk-C4WTX5TU.js → chunk-4ZGPHFLE.js} +2 -2
  36. package/{chunk-MOMR7NMG.js → chunk-547ENH5T.js} +1 -1
  37. package/chunk-5ZUOVCKT.js +32 -0
  38. package/{chunk-KOXKKHFE.js → chunk-6QHKRARD.js} +2 -2
  39. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  40. package/{chunk-EWPDMS4N.js → chunk-7JGMNKKG.js} +18 -14
  41. package/{chunk-2TIQO6TC.js → chunk-AGYPUBFW.js} +31 -205
  42. package/{chunk-UYOICCYG.js → chunk-ALAES342.js} +59 -88
  43. package/{chunk-VREDDN25.js → chunk-ATEKLSLR.js} +1 -1
  44. package/{chunk-GBZ4YKEO.js → chunk-AUAJTAFM.js} +8 -8
  45. package/chunk-BIDSIRTS.js +307 -0
  46. package/chunk-BIWI5M4E.js +62 -0
  47. package/{chunk-L5I543VB.js → chunk-BNMPUQW6.js} +1 -1
  48. package/{chunk-BGGHA5DV.js → chunk-BP5ZJ6B4.js} +1 -1
  49. package/{chunk-3QFLXA24.js → chunk-CBUZ6DKA.js} +3 -3
  50. package/{chunk-KYH7XW3K.js → chunk-CD3RU7XL.js} +16 -1
  51. package/{chunk-AVHRSJUH.js → chunk-CMMI3DAT.js} +13 -13
  52. package/{chunk-XN23AUVU.js → chunk-CYWNWA77.js} +5 -5
  53. package/{chunk-2VA6TU4I.js → chunk-D6YNCNM6.js} +17 -14
  54. package/{chunk-GOAPXKQU.js → chunk-DBUR22G5.js} +5 -5
  55. package/{chunk-QTMIHVLE.js → chunk-DDC6P6EH.js} +22 -19
  56. package/{chunk-PVZY6P3S.js → chunk-DEA37IUY.js} +2 -2
  57. package/{chunk-QLFCTYRH.js → chunk-DGYCDA6W.js} +3 -3
  58. package/{chunk-KNIIRXHF.js → chunk-DUUDXSLX.js} +21 -7
  59. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  60. package/{chunk-JM5C4EUA.js → chunk-EEOOBRA7.js} +5 -5
  61. package/{chunk-KN3HEZIQ.js → chunk-EVGU5P4U.js} +1 -1
  62. package/{chunk-GBUDWITV.js → chunk-EXJK7TQO.js} +1837 -1112
  63. package/{chunk-YDBMZ7FV.js → chunk-F6Z6ZCUV.js} +2 -2
  64. package/{chunk-EOWLBDY6.js → chunk-FJSNBZXR.js} +1 -1
  65. package/{chunk-GNHMRBYZ.js → chunk-G7IUT2V3.js} +4 -3
  66. package/{chunk-4AMQZTE7.js → chunk-GACR7H6T.js} +14 -14
  67. package/{chunk-NEKH3XDV.js → chunk-GOCSSER3.js} +3 -3
  68. package/{chunk-3KNEE64G.js → chunk-GPOV42YM.js} +14 -14
  69. package/{chunk-UEKXWO7A.js → chunk-GUXZK7SE.js} +2 -2
  70. package/{chunk-JHRQXQ4A.js → chunk-GYS5FUYR.js} +19 -19
  71. package/{chunk-6O5YP6FX.js → chunk-H6L2NFHY.js} +6 -6
  72. package/{chunk-45LZIYXB.js → chunk-HBRDSQ3M.js} +1 -1
  73. package/{chunk-KZU52OJ5.js → chunk-HHFGE2WF.js} +6 -6
  74. package/{chunk-VV7TXWOC.js → chunk-HSSBDZLD.js} +3 -3
  75. package/{chunk-GIABSSWQ.js → chunk-HYLRQDEE.js} +4 -4
  76. package/{chunk-EFX3Q5SM.js → chunk-IAAIUH64.js} +15 -15
  77. package/{chunk-UJKTI5PG.js → chunk-ILHQ2AXT.js} +0 -1
  78. package/{chunk-EJU6WCDH.js → chunk-IXG6YXQM.js} +146 -114
  79. package/{chunk-KC4SCKXO.js → chunk-JUSHVFNF.js} +238 -185
  80. package/{chunk-BLSNUIZD.js → chunk-K67C2JUC.js} +10 -10
  81. package/{chunk-IZIN2UNJ.js → chunk-L32W3PRP.js} +46 -16
  82. package/{chunk-67BE44IS.js → chunk-M4SFKP5L.js} +1 -1
  83. package/{chunk-L4NFXFFF.js → chunk-MDZWUD3R.js} +18 -18
  84. package/{chunk-QZI44GWV.js → chunk-NHY322ZU.js} +150 -9
  85. package/{chunk-DISQCYPE.js → chunk-OBIC6EG7.js} +6 -6
  86. package/{chunk-AZQZ5XPM.js → chunk-OG6MQOQG.js} +96 -28
  87. package/{chunk-VQUWV3YR.js → chunk-OOJNQK6V.js} +1 -1
  88. package/{chunk-F7DU25CE.js → chunk-OWKNSIXL.js} +149 -54
  89. package/{chunk-RRVQ446B.js → chunk-OYU2MA5S.js} +25 -25
  90. package/{chunk-CKT6QUE2.js → chunk-Q3IVPFVO.js} +1 -1
  91. package/{chunk-FTQWYWUI.js → chunk-QBZCGP34.js} +1 -1
  92. package/{chunk-2ZKFCIJJ.js → chunk-QCB42576.js} +1 -1
  93. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  94. package/{chunk-LM2PS3YS.js → chunk-QRGDJA4B.js} +9 -9
  95. package/{chunk-SOG7OEXX.js → chunk-QYB23WUH.js} +1 -1
  96. package/{chunk-W772FYAQ.js → chunk-R3NEQZ53.js} +285 -92
  97. package/{chunk-2VUZSVAS.js → chunk-R6Z5S5GA.js} +7 -7
  98. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  99. package/{chunk-GGKNJ42M.js → chunk-RBPUNSG5.js} +2 -2
  100. package/{chunk-GVGOEMNV.js → chunk-RG2DGNL6.js} +3 -3
  101. package/{chunk-4NA3YTBC.js → chunk-RTHFJZ6M.js} +7 -7
  102. package/{chunk-C4VAR65S.js → chunk-RYOLWYBK.js} +120 -116
  103. package/{chunk-D726I5AZ.js → chunk-S6FDXXZV.js} +2 -2
  104. package/{chunk-JVRQ6YVK.js → chunk-S6K5F3KP.js} +1 -1
  105. package/{chunk-HHL7WG65.js → chunk-SMJEXX2S.js} +122 -11
  106. package/{chunk-LJSNEV7M.js → chunk-SRCCSTIM.js} +7 -7
  107. package/{chunk-WSJMT3FA.js → chunk-STJ6LSQE.js} +746 -2519
  108. package/{chunk-6J4TTPS2.js → chunk-TGNIKIHR.js} +5 -5
  109. package/{chunk-AK5O76CC.js → chunk-TI2EPRHE.js} +2 -2
  110. package/{chunk-4HFTBHBF.js → chunk-TSPMLCWI.js} +6 -6
  111. package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
  112. package/{chunk-2COEG5ZV.js → chunk-UE2EVEYS.js} +2 -2
  113. package/{chunk-E5EIYI34.js → chunk-UWAIJOF2.js} +19 -19
  114. package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
  115. package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
  116. package/{chunk-BYH3HMUP.js → chunk-VSYTM22R.js} +3 -3
  117. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  118. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  119. package/{chunk-T3T57NVP.js → chunk-XJPLSAPJ.js} +11 -11
  120. package/{chunk-UKS7D2NL.js → chunk-XSW4EXQV.js} +82 -18
  121. package/{chunk-TXGQ4O5S.js → chunk-YKY4OVOX.js} +11 -11
  122. package/{chunk-5RKUPJYL.js → chunk-ZH3KXFHS.js} +11 -3
  123. package/chunk-ZOHO6MOF.js +376 -0
  124. package/{chunk-OLMJR6UM.js → chunk-ZXF6D3I6.js} +9 -7
  125. package/{cliAgentConfigHelpers-KICKKNYQ.js → cliAgentConfigHelpers-BTRHMPW2.js} +12 -12
  126. package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
  127. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  128. package/{cliLocalAgentRecordReader-6FXGFBI3.js → cliLocalAgentRecordReader-M3F76NIP.js} +45 -45
  129. package/{commandRegistry-6EQXVODF.js → commandRegistry-ZLWHQVAI.js} +93 -93
  130. package/{contentThunks-ANUP57QV.js → contentThunks-4ZX2TO7C.js} +36 -35
  131. package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-YB5H5BBK.js} +4 -4
  132. package/{createAgentAutomationAction-XMUWUDKQ.js → createAgentAutomationAction-L4CYUZJG.js} +36 -35
  133. package/{createDialogAction-43QJIQDH.js → createDialogAction-QTU2R2Q3.js} +37 -37
  134. package/{createPageAction-SJO7UC3J.js → createPageAction-F3GJTHW2.js} +37 -36
  135. package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
  136. package/{dbSlice-ZJPDIFER.js → dbSlice-XRUZOGSU.js} +11 -11
  137. package/{deleteFile-Q3YDB4ML.js → deleteFile-6URDHYRB.js} +7 -7
  138. package/{dialogCommands-V5IYEOQP.js → dialogCommands-NRLCOPJR.js} +52 -52
  139. package/{dialogNotifyCommand-77B57PL6.js → dialogNotifyCommand-SHGPCU22.js} +13 -13
  140. package/{dialogSlice-FQ6WOKWJ.js → dialogSlice-P2S4LXQD.js} +34 -33
  141. package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-W2WCSGKF.js} +1 -1
  142. package/{docCreateCommands-36WS33BK.js → docCreateCommands-YJRDA3RX.js} +48 -47
  143. package/{docDeleteCommands-C4CS4XLF.js → docDeleteCommands-A5QIHZNF.js} +50 -49
  144. package/{docReadCommands-QZMSFMPN.js → docReadCommands-CF2LTMYH.js} +48 -47
  145. package/{docStore-BZ2O7WLF.js → docStore-6O7NYL6A.js} +12 -12
  146. package/{docUpdateCommands-BYI64HVV.js → docUpdateCommands-QRKV4ZXE.js} +48 -47
  147. package/fetchMessages-TQEUZD7H.js +1 -1
  148. package/{getPricing-VNGFM4PN.js → getPricing-LF5C4XSI.js} +5 -5
  149. package/{handleSendMessageAction-I5J7QR7K.js → handleSendMessageAction-7IHLR37A.js} +65 -65
  150. package/{hostCredentialCreate-AVPMK7EQ.js → hostCredentialCreate-VNCQUAFT.js} +102 -104
  151. package/index.js +56 -18
  152. package/keys-RWF7UCB4.js +1 -1
  153. package/{localDialogRead-SVTPA5GY.js → localDialogRead-CCOCVGAP.js} +1 -1
  154. package/{localRuntimeAdapter-S56R76HN.js → localRuntimeAdapter-FOWVNMIK.js} +109 -111
  155. package/{machineCommands-77NFB2AE.js → machineCommands-ZGC3J4JB.js} +111 -113
  156. package/{machineWsRunDispatch-5XWFUJ53.js → machineWsRunDispatch-KK5U4M3G.js} +100 -102
  157. package/{memberThunks-JRYNONYV.js → memberThunks-7Y3OYSJQ.js} +15 -15
  158. package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
  159. package/{overlay-THLKYIWY.js → overlay-BBQZXGYI.js} +5 -3
  160. package/package.json +1 -1
  161. package/{projectArchive-GNOSYH6F.js → projectArchive-7ZDYBXAX.js} +42 -41
  162. package/{providerPresetApply-J3WMRPD2.js → providerPresetApply-WHAMP2D5.js} +6 -6
  163. package/{providerRegistry-KJGB5XWS.js → providerRegistry-ZI2KORJ7.js} +6 -6
  164. package/{read-Q7GOHGNP.js → read-TYMBGEXO.js} +8 -8
  165. package/{readDocTool-Z5OQ6422.js → readDocTool-SKQVHBLO.js} +1 -1
  166. package/{readlineWorkspace-2PONGBUP.js → readlineWorkspace-YHT4SX2C.js} +4794 -5229
  167. package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-F5QE2O2B.js} +16 -16
  168. package/{runAgentClientLoop-WEXFFHVS.js → runAgentClientLoop-H4ED5V3K.js} +71 -68
  169. package/{runtimeDoctorCommands-UXKXYBW6.js → runtimeDoctorCommands-RRKPBGVO.js} +14 -14
  170. package/{secretCommands-LJXOOYA7.js → secretCommands-KZWBZIYS.js} +4 -4
  171. package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-72L27ERM.js} +13 -13
  172. package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-GJJDUSGJ.js} +16 -16
  173. package/{settingThunks-AXTBX3Q5.js → settingThunks-ZRGWVGZD.js} +15 -15
  174. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-I37M5KJC.js} +3 -3
  175. package/{spaceCommands-GUKMDRWN.js → spaceCommands-MEH3HJBC.js} +53 -52
  176. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  177. package/{streamAgentChatTurn-D2WFS5MF.js → streamAgentChatTurn-ZXPOXU33.js} +89 -129
  178. package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-IIJBPND3.js} +14 -14
  179. package/{tableCommands-HITDSLHS.js → tableCommands-FTAOCBTX.js} +11 -11
  180. package/{tools-YKE6PQHT.js → tools-2MRWA2PP.js} +58 -59
  181. package/tuiRestart-2IL37YIB.js +41 -0
  182. package/{tuiSummaryLlmCaller-7WLUKNP2.js → tuiSummaryLlmCaller-W2QN4VAC.js} +18 -18
  183. package/{updateCommands-RJVCRSBP.js → updateCommands-CPATDG6J.js} +8 -6
  184. package/{updateDialogTitleAction-D5NCA4FC.js → updateDialogTitleAction-RZ3KZSGQ.js} +36 -35
  185. package/{usageCommand-YPJ2ZI2F.js → usageCommand-2BF74MKF.js} +2 -2
  186. package/{usageRebuildCommand-FERQO74C.js → usageRebuildCommand-UHB55BQM.js} +3 -3
  187. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-ZFD6J5HF.js} +2 -2
  188. package/chunk-2THCNKE4.js +0 -147
  189. package/chunk-BJF2MHJ3.js +0 -118
  190. package/chunk-KEPOVMF4.js +0 -91
  191. package/chunk-PMDVQBGA.js +0 -100
  192. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  193. package/{chunk-AGP3YSEC.js → chunk-4N6G2CKP.js} +3 -3
  194. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  195. package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
  196. package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
  197. package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
  198. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  upsertSSREntity,
3
3
  write
4
- } from "./chunk-AVHRSJUH.js";
4
+ } from "./chunk-CMMI3DAT.js";
5
5
  import {
6
6
  getRuntimeServerContext,
7
7
  resolveRecordAuthority
8
- } from "./chunk-2VUZSVAS.js";
8
+ } from "./chunk-R6Z5S5GA.js";
9
9
  import {
10
10
  TIMEOUT,
11
11
  asyncThunkCreator,
@@ -16,13 +16,13 @@ import {
16
16
  applyAgentSecretMigrationUpdates,
17
17
  migrateAgentSecrets,
18
18
  normalizeAgentRuntimeToolPolicy
19
- } from "./chunk-47ITIXO7.js";
19
+ } from "./chunk-USGHJSGO.js";
20
20
  import {
21
21
  asRecordOrEmpty
22
22
  } from "./chunk-KX6YBIHG.js";
23
23
  import {
24
24
  createFileCredentialBroker
25
- } from "./chunk-SNBZZPYH.js";
25
+ } from "./chunk-OQHIVPG4.js";
26
26
  import {
27
27
  isLevelNotFoundError
28
28
  } from "./chunk-OW765XBU.js";
@@ -31,15 +31,15 @@ import {
31
31
  createUserKey,
32
32
  toTrimmedString
33
33
  } from "./chunk-SYTHYBMI.js";
34
+ import {
35
+ API_ENDPOINTS
36
+ } from "./chunk-LCBAMY2M.js";
34
37
  import {
35
38
  asTrimmedString
36
39
  } from "./chunk-3EUW3WEO.js";
37
40
  import {
38
41
  isRecord
39
42
  } from "./chunk-KUG52IAP.js";
40
- import {
41
- API_ENDPOINTS
42
- } from "./chunk-LCBAMY2M.js";
43
43
  import {
44
44
  asOptionalTrimmedString
45
45
  } from "./chunk-G3SUCT4W.js";
@@ -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-IKZGZZXW.js");
461
+ const { _executeModel } = await import("./_executeModel-WZKT6XEU.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-WEXFFHVS.js");
482
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-H4ED5V3K.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-D2WFS5MF.js");
498
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-ZXPOXU33.js");
499
499
  return streamAgentChatTurnHandler(args, thunkApi);
500
500
  }),
501
501
  /**
@@ -5,28 +5,28 @@ import {
5
5
  isAbortError
6
6
  } from "./chunk-7DPNBQSV.js";
7
7
  import {
8
- ALL_MODELS
9
- } from "./chunk-62HXNQVV.js";
8
+ estimateTokenCount
9
+ } from "./chunk-PSCNXBYA.js";
10
10
  import {
11
11
  asTrimmedNonEmptyStringArray
12
12
  } from "./chunk-I42VC5KR.js";
13
13
  import {
14
- estimateTokenCount
15
- } from "./chunk-PSCNXBYA.js";
14
+ ALL_MODELS
15
+ } from "./chunk-62HXNQVV.js";
16
16
  import {
17
17
  MODEL_LOOKUP_MAP
18
- } from "./chunk-KYH7XW3K.js";
19
- import {
20
- PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
21
- isPlatformManagedProvider,
22
- resolvePlatformEffectiveModel
23
- } from "./chunk-OBSEKCVK.js";
18
+ } from "./chunk-CD3RU7XL.js";
24
19
  import {
25
20
  asOptionalFiniteNumber
26
21
  } from "./chunk-WWC7I6TA.js";
27
22
  import {
28
23
  asOptionalTrimmedString
29
24
  } from "./chunk-G3SUCT4W.js";
25
+ import {
26
+ PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
27
+ isPlatformManagedProvider,
28
+ resolvePlatformEffectiveModel
29
+ } from "./chunk-OBSEKCVK.js";
30
30
 
31
31
  // packages/core/chat/messageContentSerialize.ts
32
32
  var serializeMessageContent = (content, imagePlaceholder = "[\u56FE\u7247]") => {
@@ -1145,6 +1145,35 @@ function computeSummarySourceMetadata(messagesWithIds, summarizedBeforeId) {
1145
1145
  schemaVersion: COMPACTION_SUMMARY_SCHEMA_VERSION
1146
1146
  };
1147
1147
  }
1148
+ function buildSummarySourceDiagnostics(messages, anchor) {
1149
+ const end = anchor ? messages.findIndex((message) => message.id === anchor) : -1;
1150
+ if (end < 0) return [];
1151
+ const width = Math.max(1, Math.ceil((end + 1) / 64));
1152
+ const sorted = (value) => {
1153
+ if (Array.isArray(value)) return value.map(sorted);
1154
+ if (value && typeof value === "object") return Object.fromEntries(
1155
+ Object.entries(value).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, child]) => [key, sorted(child)])
1156
+ );
1157
+ return value;
1158
+ };
1159
+ const rows = [];
1160
+ for (let start = 0; start <= end; start += width) {
1161
+ const group = messages.slice(start, Math.min(end + 1, start + width));
1162
+ const content = group.map((message) => ({
1163
+ role: message.role,
1164
+ content: message.content ?? "",
1165
+ ...Array.isArray(message.tool_calls) ? { tool_calls: message.tool_calls } : {}
1166
+ }));
1167
+ rows.push({
1168
+ start,
1169
+ count: group.length,
1170
+ idHash: sha256Hex(JSON.stringify(group.map((message) => message.id ?? null))).slice(0, 16),
1171
+ messageHash: sha256Hex(JSON.stringify(content)).slice(0, 16),
1172
+ canonicalHash: sha256Hex(JSON.stringify(sorted(content))).slice(0, 16)
1173
+ });
1174
+ }
1175
+ return rows;
1176
+ }
1148
1177
 
1149
1178
  // packages/ai/llm/getModelContextWindow.ts
1150
1179
  var DEFAULT_CONTEXT_WINDOW = 256e3;
@@ -1351,6 +1380,11 @@ var getModelInfo = (modelName) => {
1351
1380
  };
1352
1381
 
1353
1382
  export {
1383
+ DEFAULT_CONTEXT_WINDOW,
1384
+ findCodexOAuthPinnedContextWindow,
1385
+ findModelContextWindow,
1386
+ getModelContextWindow,
1387
+ getModelInfo,
1354
1388
  readCacheReadInputTokens,
1355
1389
  readCacheReadInputTokensOrNull,
1356
1390
  readCacheCreationInputTokens,
@@ -1361,11 +1395,6 @@ export {
1361
1395
  getMessageTokenCount,
1362
1396
  resolveEffectiveCompactionBudgets,
1363
1397
  planCompression,
1364
- DEFAULT_CONTEXT_WINDOW,
1365
- findCodexOAuthPinnedContextWindow,
1366
- findModelContextWindow,
1367
- getModelContextWindow,
1368
- getModelInfo,
1369
1398
  createSummaryBudget,
1370
1399
  classifySummaryError,
1371
1400
  isTruncatedCompletion,
@@ -1378,5 +1407,6 @@ export {
1378
1407
  buildBoundedCompactionRequest,
1379
1408
  buildCompactionMetricsFromPlan,
1380
1409
  formatCompactionMetricsLog,
1381
- computeSummarySourceMetadata
1410
+ computeSummarySourceMetadata,
1411
+ buildSummarySourceDiagnostics
1382
1412
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveLocalUserId
3
- } from "./chunk-KZU52OJ5.js";
3
+ } from "./chunk-HHFGE2WF.js";
4
4
  import {
5
5
  resolveNoloHome
6
6
  } from "./chunk-GLKOYSRU.js";
@@ -2,46 +2,49 @@ import {
2
2
  clipMultilineText,
3
3
  fetchAndSerializeTable,
4
4
  waitForAbortableDelay
5
- } from "./chunk-T3T57NVP.js";
5
+ } from "./chunk-XJPLSAPJ.js";
6
6
  import {
7
7
  isGatewayHttpStatus
8
8
  } from "./chunk-NF64D32W.js";
9
9
  import {
10
- createDrainExhaustedResponse,
11
- isCoreDrainingBody,
12
- normalizeNonNegativeMs,
13
- parseRetryAfterHeaderMs
14
- } from "./chunk-3L2WKC3W.js";
10
+ resolvePageReadMarkdown,
11
+ slateToSimplifiedMarkdown
12
+ } from "./chunk-BP5ZJ6B4.js";
15
13
  import {
16
14
  extractCategorizedMentions
17
15
  } from "./chunk-AGIM7IMJ.js";
18
- import {
19
- resolvePageReadMarkdown,
20
- slateToSimplifiedMarkdown
21
- } from "./chunk-BGGHA5DV.js";
22
16
  import {
23
17
  fetchAndCacheMessages
24
- } from "./chunk-W772FYAQ.js";
18
+ } from "./chunk-R3NEQZ53.js";
19
+ import {
20
+ createDrainExhaustedResponse,
21
+ isCoreDrainingBody,
22
+ normalizeNonNegativeMs,
23
+ parseRetryAfterHeaderMs
24
+ } from "./chunk-3L2WKC3W.js";
25
25
  import {
26
26
  createSpaceKey
27
27
  } from "./chunk-UAD2WT54.js";
28
28
  import {
29
29
  read
30
- } from "./chunk-AVHRSJUH.js";
30
+ } from "./chunk-CMMI3DAT.js";
31
31
  import {
32
32
  getRuntimeServerContext
33
- } from "./chunk-2VUZSVAS.js";
33
+ } from "./chunk-R6Z5S5GA.js";
34
34
  import {
35
35
  classifyGenerationError
36
36
  } from "./chunk-TLE77UJ5.js";
37
37
  import {
38
38
  isAbortError
39
39
  } from "./chunk-7DPNBQSV.js";
40
+ import {
41
+ estimateTokenCount
42
+ } from "./chunk-PSCNXBYA.js";
40
43
  import {
41
44
  extractRuntimePageCapabilities,
42
45
  resolveBuiltinSkillPage,
43
46
  resolveSkillGraphFromRoots
44
- } from "./chunk-GNHMRBYZ.js";
47
+ } from "./chunk-G7IUT2V3.js";
45
48
  import {
46
49
  extractCustomId
47
50
  } from "./chunk-M2EJHDJP.js";
@@ -50,10 +53,7 @@ import {
50
53
  } from "./chunk-OJKUU3LP.js";
51
54
  import {
52
55
  wrapHistoricalSummaryWithReplayGuard
53
- } from "./chunk-L5I543VB.js";
54
- import {
55
- estimateTokenCount
56
- } from "./chunk-PSCNXBYA.js";
56
+ } from "./chunk-BNMPUQW6.js";
57
57
  import {
58
58
  asTrimmedString
59
59
  } from "./chunk-3EUW3WEO.js";
@@ -4,15 +4,20 @@ import {
4
4
  import {
5
5
  compareAgentSelection,
6
6
  resolveModelTier
7
- } from "./chunk-C4VAR65S.js";
7
+ } from "./chunk-RYOLWYBK.js";
8
8
  import {
9
9
  DEFAULT_PROVIDER_RETRY_MS,
10
10
  isAgentUnavailableNow,
11
11
  resolveAgentAvailability
12
- } from "./chunk-HOCHUZQ7.js";
12
+ } from "./chunk-QJTZ76CP.js";
13
13
  import {
14
14
  isOAuthApiKeyRef
15
15
  } from "./chunk-UKZX3NHN.js";
16
+ import {
17
+ isOwnedAgentKey,
18
+ ownedAgentKey,
19
+ publicAgentKey
20
+ } from "./chunk-M2EJHDJP.js";
16
21
  import {
17
22
  getModelAbility
18
23
  } from "./chunk-62HXNQVV.js";
@@ -20,12 +25,64 @@ import {
20
25
  isAntigravityOAuthAgent,
21
26
  isSubscriptionEndpoint,
22
27
  isSubscriptionOAuthCredential
23
- } from "./chunk-EWPDMS4N.js";
28
+ } from "./chunk-7JGMNKKG.js";
24
29
  import {
25
- isOwnedAgentKey,
26
- ownedAgentKey,
27
- publicAgentKey
28
- } from "./chunk-M2EJHDJP.js";
30
+ asTrimmedLowercaseString
31
+ } from "./chunk-QSJ3HFEF.js";
32
+
33
+ // packages/core/gptProTier.ts
34
+ var GPT_PRO_REQUIRED_RECHARGE_AMOUNT = 199;
35
+ var SUPPORTED_TIER_PROVIDERS = /* @__PURE__ */ new Set([
36
+ "nolo",
37
+ "openai",
38
+ "deepinfra"
39
+ ]);
40
+ var CLAUDE_PREMIUM_RE = /^(?:anthropic\/)?claude-(opus|fable)(?:-\d+(?:[.-]\d+)*(?:-[a-z0-9]+)*)?$/i;
41
+ var GPT_PRO_RE = /^(?:openai\/)?gpt-[a-z0-9.-]+-pro(?:-[a-z0-9]+(?:[.-][a-z0-9]+)*)?$/i;
42
+ var GPT_SOL_RE = /^(?:openai\/)?gpt-\d+(?:\.\d+)*-sol(?:-[a-z0-9]+(?:[.-][a-z0-9]+)*)?$/i;
43
+ var GPT_ASTRA_RE = /^(?:openai\/)?gpt-\d+(?:\.\d+)*-astra(?:-[a-z0-9]+(?:[.-][a-z0-9]+)*)?$/i;
44
+ var KIMI_K3_MODELS = /* @__PURE__ */ new Set([
45
+ "kimi-k3",
46
+ "moonshotai/kimi-k3"
47
+ ]);
48
+ function classifyPremiumModel(model) {
49
+ const normalizedModel = asTrimmedLowercaseString(model);
50
+ if (!normalizedModel) return void 0;
51
+ const claudeMatch = CLAUDE_PREMIUM_RE.exec(normalizedModel);
52
+ if (claudeMatch) {
53
+ return claudeMatch[1].toLowerCase() === "opus" ? "claude-opus" : "claude-fable";
54
+ }
55
+ if (GPT_PRO_RE.test(normalizedModel)) {
56
+ return "gpt-pro";
57
+ }
58
+ if (GPT_SOL_RE.test(normalizedModel)) {
59
+ return "gpt-sol";
60
+ }
61
+ if (GPT_ASTRA_RE.test(normalizedModel)) {
62
+ return "gpt-astra";
63
+ }
64
+ if (KIMI_K3_MODELS.has(normalizedModel)) {
65
+ return "kimi-k3";
66
+ }
67
+ return void 0;
68
+ }
69
+ function isGptProModel(provider, model) {
70
+ const normalizedProvider = asTrimmedLowercaseString(provider);
71
+ if (!SUPPORTED_TIER_PROVIDERS.has(normalizedProvider)) {
72
+ return false;
73
+ }
74
+ return classifyPremiumModel(model) !== void 0;
75
+ }
76
+ var GPT_PRO_BLOCKED_MESSAGE = `GPT Pro / Kimi K3 \u7B49\u9AD8\u7EA7\u6A21\u578B\u9700\u8981\u5148\u5F00\u901A ${GPT_PRO_REQUIRED_RECHARGE_AMOUNT} \u79EF\u5206\u6863\u4F4D\u3002`;
77
+ function shouldBlockForGptPro(input) {
78
+ if (input?.premium !== true || input?.platformPaid !== true) {
79
+ return { blocked: false };
80
+ }
81
+ if (asTrimmedLowercaseString(input.gptProStatus) === "active") {
82
+ return { blocked: false };
83
+ }
84
+ return { blocked: true, message: GPT_PRO_BLOCKED_MESSAGE };
85
+ }
29
86
 
30
87
  // packages/ai/agent/agentBilling.ts
31
88
  function resolveBillingSource(candidate) {
@@ -451,6 +508,14 @@ function toSafeAgentSummary(record, options) {
451
508
  isFavorite: favStatus.isFavorite,
452
509
  favoritedAt: favStatus.favoritedAt,
453
510
  isPublic,
511
+ // 复用 platformPaidCall.ts 的唯一判据(该文件头明确它是「谁出钱」的真源):
512
+ // 自己写 billingSource === "platform_credits" 会与 199 门槛口径分叉——
513
+ // 例如 apiSource==="cli" 的本地 CLI Agent 在 resolveBillingSource 里会落到
514
+ // platform_credits,但 isPlatformPaidAgentCall 显式短路为「非平台垫付」。
515
+ requiresPaidApproval: isPlatformPaidAgentCall({
516
+ agentConfig: record ?? void 0,
517
+ callerUserId: currentUserId ?? void 0
518
+ }),
454
519
  ...economics ? { economics } : {},
455
520
  isOwned,
456
521
  isOAuth,
@@ -478,6 +543,10 @@ var COMPACT_AGENT_SUMMARY_FIELDS = [
478
543
  "model",
479
544
  "modelTier",
480
545
  "billingSource",
546
+ // 扣费授权判据:listAgents 默认走 compact 投影,缺了它模型在默认派发
547
+ // 流程里读不到「派它之前要先问用户」(2026-11-15 事故成因)。
548
+ // 与 ULTRA_COMPACT 白名单必须同时保留——两处任何一处缺失都等于该字段不存在。
549
+ "requiresPaidApproval",
481
550
  "availabilityStatus",
482
551
  "credentialGroup",
483
552
  "isFavorite",
@@ -528,6 +597,9 @@ var ULTRA_COMPACT_AGENT_SUMMARY_FIELDS = [
528
597
  "model",
529
598
  "modelTier",
530
599
  "billingSource",
600
+ // 扣费授权判据必须随投影一起走:精简投影里没有它,模型就看不到
601
+ // 「派它之前要先问用户」,等于该字段不存在(2026-11-15 事故的直接成因)。
602
+ "requiresPaidApproval",
531
603
  "availabilityStatus",
532
604
  "credentialGroup",
533
605
  "isFavorite",
@@ -555,6 +627,39 @@ function toUltraCompactAgentSummary(summary) {
555
627
  return compact;
556
628
  }
557
629
 
630
+ // packages/ai/agent/platformPaidCall.ts
631
+ var asTrimmed = (value) => typeof value === "string" ? value.trim() : "";
632
+ var hasOAuthCredentialShape = (agentConfig) => isOAuthApiKeyRef(agentConfig?.apiKeyRef) || isAntigravityOAuthAgent({
633
+ key: "platform-paid-call-probe",
634
+ apiKeyRef: agentConfig?.apiKeyRef ?? void 0,
635
+ provider: agentConfig?.provider ?? void 0,
636
+ customProviderUrl: agentConfig?.customProviderUrl ?? void 0
637
+ });
638
+ function isPlatformPaidAgentCall(probe) {
639
+ const agentConfig = probe?.agentConfig ?? {};
640
+ const authKind = asTrimmed(probe?.authKind);
641
+ if (authKind) return authKind === "platform-key";
642
+ if (asTrimmed(agentConfig.apiSource) === "cli") return false;
643
+ return resolveBillingSource({
644
+ local: agentConfig.local,
645
+ isLocal: agentConfig.isLocal,
646
+ cliProvider: agentConfig.cliProvider,
647
+ apiSource: agentConfig.apiSource,
648
+ provider: agentConfig.provider,
649
+ billingSource: agentConfig.billingSource,
650
+ // 形态证明而非记录自声明(见文件头):自声明 isOAuth 不足以证明 OAuth 通道归属。
651
+ isOAuth: hasOAuthCredentialShape(agentConfig),
652
+ apiKeyRef: agentConfig.apiKeyRef,
653
+ customProviderUrl: agentConfig.customProviderUrl,
654
+ isOwned: isOwnedAgentRecord(
655
+ agentConfig,
656
+ asTrimmed(probe?.callerUserId) || void 0
657
+ ),
658
+ userId: agentConfig.userId,
659
+ ownerId: agentConfig.ownerId
660
+ }) === "platform_credits";
661
+ }
662
+
558
663
  // packages/ai/agent/agentDiscovery.ts
559
664
  function isPreferredAgent(agent) {
560
665
  return agent.isFavorite === true || agent.isOwned === true || agent.isOAuth === true || agent.billingSource === "user_subscription" || agent.billingSource === "user_api" || agent.billingSource === "local";
@@ -616,6 +721,36 @@ function filterAgentsByScope(agents, scope) {
616
721
  if (scope === "public") return unique.filter((agent) => isPublicDiscoveryAgent(agent));
617
722
  return unique.filter((agent) => isPreferredAgent(agent) || agent.isPublic === true);
618
723
  }
724
+ function recommendPlanning(agents, caller, poolComplete) {
725
+ const callerKey = typeof caller?.agentKey === "string" && caller.agentKey.trim() ? caller.agentKey : void 0;
726
+ const current = callerKey ? agents.find((a) => a.agentKey === callerKey) : void 0;
727
+ const currentTier = callerKey ? resolveModelTier(caller?.effectiveModel ?? current?.model) : "unknown";
728
+ const base = {
729
+ condition: "when_planning_needed_and_candidate_suitable",
730
+ action: "self",
731
+ currentTier,
732
+ poolComplete,
733
+ requiresPaidApproval: false
734
+ };
735
+ if (caller?.runKind === "subtask") return { ...base, reason: "bounded_subtask" };
736
+ if (!callerKey) return { ...base, reason: "caller_unknown" };
737
+ if (currentTier === "unknown") return { ...base, reason: "caller_tier_unknown" };
738
+ if (!poolComplete) return { ...base, reason: "pool_incomplete" };
739
+ const ranks = { easy: 0, normal: 1, complex: 2, extreme: 3 };
740
+ const higher = agents.filter((a) => a.agentKey && a.agentKey !== callerKey && a.modelTier !== "unknown" && ranks[a.modelTier] > ranks[currentTier]);
741
+ const free = higher.filter((a) => a.requiresPaidApproval === false);
742
+ free.sort((a, b) => ranks[b.modelTier] - ranks[a.modelTier]);
743
+ const best = free[0];
744
+ if (best) return {
745
+ ...base,
746
+ action: "delegate",
747
+ reason: "higher_suitable_agent",
748
+ agentKey: best.agentKey,
749
+ recommendedTier: best.modelTier
750
+ };
751
+ if (higher.length) return { ...base, reason: "paid_approval_required", requiresPaidApproval: true };
752
+ return { ...base, reason: "no_higher_suitable_agent" };
753
+ }
619
754
  function resolvePaginationArgs(args) {
620
755
  let limit;
621
756
  let offset;
@@ -754,6 +889,11 @@ function buildAgentDiscoveryResult(options) {
754
889
  ...isTruncated ? { truncated: true } : {},
755
890
  unavailableCount,
756
891
  agents: projectedAgents,
892
+ planningRecommendation: recommendPlanning(
893
+ sortedAgents,
894
+ options.caller,
895
+ !isTruncated && scope === "all" && !hasQuery && !options.poolRestricted
896
+ ),
757
897
  credentialGroups
758
898
  };
759
899
  }
@@ -763,11 +903,12 @@ function toDiscoverySafeAgentSummary(record, options) {
763
903
  }
764
904
 
765
905
  export {
766
- resolveBillingSource,
906
+ isGptProModel,
907
+ shouldBlockForGptPro,
908
+ isPlatformPaidAgentCall,
767
909
  deriveCredentialGroup,
768
910
  deriveCustomProviderCredentialGroup,
769
911
  summarizeCredentialGroups,
770
- isOwnedAgentRecord,
771
912
  resolveDiscoveryScope,
772
913
  resolvePaginationArgs,
773
914
  matchesAgentQuery,
@@ -5,21 +5,21 @@ import {
5
5
  ANTIGRAVITY_CLOUD_CODE_BASE_URL,
6
6
  isAntigravityCloudCodeBaseUrl,
7
7
  isAntigravityOAuthAgent
8
- } from "./chunk-EWPDMS4N.js";
8
+ } from "./chunk-7JGMNKKG.js";
9
9
  import {
10
10
  isOpenAiResponsesModel,
11
11
  resolvePlatformChatCompletionsEndpoint,
12
12
  resolvePlatformResponsesEndpoint
13
- } from "./chunk-45LZIYXB.js";
13
+ } from "./chunk-HBRDSQ3M.js";
14
14
  import {
15
15
  findModelConfig
16
- } from "./chunk-KYH7XW3K.js";
17
- import {
18
- asTrimmedLowercaseString
19
- } from "./chunk-QSJ3HFEF.js";
16
+ } from "./chunk-CD3RU7XL.js";
20
17
  import {
21
18
  asOptionalTrimmedString
22
19
  } from "./chunk-G3SUCT4W.js";
20
+ import {
21
+ asTrimmedLowercaseString
22
+ } from "./chunk-QSJ3HFEF.js";
23
23
 
24
24
  // packages/agent-runtime/agentCallPlan.ts
25
25
  var CODEX_RESPONSES_URL = "https://chatgpt.com/backend-api/codex/responses";