nolo-cli 0.243.0-alpha.3 → 0.244.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 (143) hide show
  1. package/{_executeModel-UY5HUVTA.js → _executeModel-CXOFYVHC.js} +40 -40
  2. package/{action-4V2UISXC.js → action-R2EIXR7I.js} +3 -3
  3. package/{addContentAction-5MZDMGI6.js → addContentAction-W6JVLQ6H.js} +6 -6
  4. package/{addDialogAgentAction-ONVFHUOL.js → addDialogAgentAction-LVNKMXKZ.js} +5 -5
  5. package/{agentDeleteCommand-OHPH75ZB.js → agentDeleteCommand-VFSZPEQ5.js} +55 -55
  6. package/{agentEmailCommands-2SAJVWW6.js → agentEmailCommands-KRUIF4EH.js} +56 -56
  7. package/{agentListCommands-B2GNRH2Z.js → agentListCommands-TDFOLWN3.js} +27 -27
  8. package/{agentMachineCommands-LEMOMUN6.js → agentMachineCommands-PSH7Q5PF.js} +24 -24
  9. package/{agentProviderCommands-BQP2IK4C.js → agentProviderCommands-C5T7C5KZ.js} +2 -2
  10. package/{agentRecordCommands-VYSZFGDR.js → agentRecordCommands-KCKCW2QU.js} +55 -55
  11. package/{agentRunCommand-LCQHSWUW.js → agentRunCommand-EF2T2QWD.js} +55 -55
  12. package/{agentRunControl-CVCHDDDC.js → agentRunControl-CSMSJFFB.js} +6 -6
  13. package/{agentRuntimeLocal-AMQJ3DDY.js → agentRuntimeLocal-6QXQS3TS.js} +20 -20
  14. package/{agentSlice-6X4IOT64.js → agentSlice-IZ5ANAF7.js} +6 -6
  15. package/{appDeleteCommands-YNA5MDFB.js → appDeleteCommands-4M7ETEEG.js} +25 -25
  16. package/{appDeployCommands-G4AZK4SE.js → appDeployCommands-2VJ2NDW5.js} +25 -25
  17. package/{appDeployStatusCommands-EGXAYHGY.js → appDeployStatusCommands-LDFSWOPQ.js} +25 -25
  18. package/{appGetCommands-IU2EM4WN.js → appGetCommands-RHVNOPT4.js} +25 -25
  19. package/{appListCommands-2T366VJ2.js → appListCommands-U3XEVTL4.js} +25 -25
  20. package/{authCommand-KVLFWXDS.js → authCommand-PVZ45QRO.js} +11 -11
  21. package/{chunk-R67A5KZE.js → chunk-22YUCKMK.js} +6 -6
  22. package/{chunk-UIX35POB.js → chunk-2COM7SAH.js} +3 -3
  23. package/{chunk-A4RK66EV.js → chunk-2FK2KZSL.js} +1 -1
  24. package/{chunk-YO4DCVD2.js → chunk-2IPR4PBB.js} +1 -1
  25. package/{chunk-GYFNNEWL.js → chunk-3YYFU6H7.js} +15 -15
  26. package/{chunk-AERVJIZ2.js → chunk-4OXPN3WC.js} +1 -1
  27. package/{chunk-BEJ243X3.js → chunk-4TVOZGOS.js} +1 -1
  28. package/{chunk-RXCP7AIJ.js → chunk-56O2J2Y4.js} +2 -2
  29. package/{chunk-6EZ5GDQF.js → chunk-56PB7FEN.js} +4 -4
  30. package/{chunk-LADIVKVA.js → chunk-5UAKGCQG.js} +1 -1
  31. package/{chunk-DEOPZE4S.js → chunk-5VVP7DW3.js} +1 -1
  32. package/{chunk-4JFSDWTN.js → chunk-6ASGEP5D.js} +1 -1
  33. package/{chunk-7N4O3VUH.js → chunk-6YYTTLJV.js} +4 -4
  34. package/{chunk-G3SJCNHX.js → chunk-76HAJUOJ.js} +1 -1
  35. package/{chunk-INREDOGO.js → chunk-7DXFOL5B.js} +32 -32
  36. package/{chunk-IEKRWRCK.js → chunk-AKPKOI5Z.js} +3 -3
  37. package/{chunk-HZN5VE32.js → chunk-AO6T7U62.js} +2 -2
  38. package/{chunk-LNFCR5IA.js → chunk-AS6L5KSD.js} +2 -2
  39. package/{chunk-TRN54YTP.js → chunk-AVSZ6PBM.js} +2 -2
  40. package/{chunk-IBQHHCQE.js → chunk-CD2DK5JA.js} +58 -13
  41. package/{chunk-SGI2FIGK.js → chunk-CJQBWHNM.js} +2 -2
  42. package/{chunk-I2VMBOG6.js → chunk-CT5JXREL.js} +3 -3
  43. package/{chunk-JFGKVVLB.js → chunk-CTWCZKNS.js} +13 -3
  44. package/{chunk-UEMUDUHP.js → chunk-CX2LYFZQ.js} +3 -3
  45. package/{chunk-HBO6UW3O.js → chunk-EDT65EUE.js} +4 -4
  46. package/{chunk-KMIDT4SW.js → chunk-EQZZASCD.js} +1 -1
  47. package/{chunk-RRYDDDV7.js → chunk-ESN4WNWU.js} +3 -2
  48. package/{chunk-SYWYGUPT.js → chunk-F4XIS5DL.js} +16 -16
  49. package/{chunk-OXFJWWOT.js → chunk-FGHEF6WI.js} +1 -1
  50. package/{chunk-ZGHHY2PV.js → chunk-FMYNIAI6.js} +1 -1
  51. package/{chunk-4GM57GL6.js → chunk-FNT5VENS.js} +3 -3
  52. package/{chunk-ES5W7DYB.js → chunk-GVTFSLNI.js} +8 -8
  53. package/{chunk-XRFUYUS7.js → chunk-GX6DITLQ.js} +1 -1
  54. package/{chunk-YFDLRLW7.js → chunk-HIDVLMZC.js} +3 -3
  55. package/{chunk-XMSAOVF3.js → chunk-IDFGIROZ.js} +3 -3
  56. package/{chunk-SEDJEJBH.js → chunk-IFWXH7LH.js} +1 -1
  57. package/{chunk-PDA22NY3.js → chunk-J45ACAOQ.js} +36 -29
  58. package/{chunk-FQFSLPNJ.js → chunk-K26XPZRB.js} +2 -2
  59. package/{chunk-B5U64NZU.js → chunk-KB5RQRSJ.js} +1 -1
  60. package/{chunk-5D6NHP4U.js → chunk-KMDHRVS7.js} +1 -1
  61. package/{chunk-TWW562TN.js → chunk-KW72WVHO.js} +19 -19
  62. package/{chunk-IUK5NHLN.js → chunk-KZKMH374.js} +1 -1
  63. package/{chunk-4Q4ZDPGC.js → chunk-L6BLA6BT.js} +5 -5
  64. package/{chunk-3IQ5GP5Y.js → chunk-LC5CVWP2.js} +2 -2
  65. package/{chunk-QXUVCIPB.js → chunk-LOF2EFUE.js} +1 -1
  66. package/{chunk-FBVN3B5T.js → chunk-LTVEOOZL.js} +1 -1
  67. package/{chunk-V2COUWMQ.js → chunk-MAA42MMV.js} +71 -4
  68. package/{chunk-VVNP722P.js → chunk-MECW2HJG.js} +3 -3
  69. package/{chunk-KV5FDJOD.js → chunk-MYYNZG2M.js} +11 -2
  70. package/{chunk-GEY2UH2I.js → chunk-MZVCFV3T.js} +3 -3
  71. package/{chunk-2HZWYJ4G.js → chunk-N7MXFYLU.js} +1 -1
  72. package/{chunk-BZLF2LAP.js → chunk-OHUYN3YU.js} +1 -1
  73. package/{chunk-VTB6V4UF.js → chunk-PDAXMBLW.js} +6 -6
  74. package/{chunk-O5MEXHJW.js → chunk-PQ63BDV3.js} +57 -5
  75. package/{chunk-HKT7KOIX.js → chunk-QIVE5WJE.js} +4 -4
  76. package/{chunk-T3CUXNV4.js → chunk-QOURTDZL.js} +84 -5
  77. package/{chunk-BH6FBRQE.js → chunk-QWSH3UAQ.js} +3 -3
  78. package/{chunk-YAAQJJ6P.js → chunk-RDPAIR67.js} +3 -3
  79. package/{chunk-WXZZQRAH.js → chunk-RXTZB2DH.js} +1 -1
  80. package/{chunk-YDTLGWBU.js → chunk-SESKIWB4.js} +1 -1
  81. package/{chunk-OMWHO2G7.js → chunk-SQRKAYQW.js} +8 -8
  82. package/{chunk-KOTJT7CY.js → chunk-SX6AWTNK.js} +3 -3
  83. package/{chunk-VCU5GV42.js → chunk-T4QY3HZ5.js} +1 -1
  84. package/{chunk-GEKRDIMM.js → chunk-UPOW5HTG.js} +1 -1
  85. package/{chunk-YTYVSOY4.js → chunk-VUHKG4KS.js} +3 -3
  86. package/{chunk-CQG24S2Q.js → chunk-W3HSD32M.js} +2 -2
  87. package/{chunk-A5QJU3RD.js → chunk-W5OJBZLZ.js} +3 -3
  88. package/{chunk-HTENYMO3.js → chunk-XGWRH3OF.js} +1 -1
  89. package/{chunk-SMYUQDYW.js → chunk-XKV53E4E.js} +1 -1
  90. package/{chunk-OGNWW4SU.js → chunk-XYRTC2Y3.js} +10 -10
  91. package/{chunk-3ZIF6MH3.js → chunk-YHWMKGOX.js} +49 -12
  92. package/{chunk-GJE6Y2Y5.js → chunk-ZP26NIZE.js} +51 -27
  93. package/{chunk-W4EAF272.js → chunk-ZQ6K57FJ.js} +1 -1
  94. package/{cliAgentConfigHelpers-H3VR6JID.js → cliAgentConfigHelpers-37ZNEY5Y.js} +6 -6
  95. package/{cliLocalAgentRecordReader-V6CTIXXV.js → cliLocalAgentRecordReader-53773JID.js} +24 -24
  96. package/{commandRegistry-M5HTHRLM.js → commandRegistry-RJUO2VOD.js} +59 -59
  97. package/{contentThunks-Y5AUFZBZ.js → contentThunks-4EFHLUTB.js} +18 -18
  98. package/{createAgentAutomationAction-BBR4YHVB.js → createAgentAutomationAction-ZFFGJ7CZ.js} +18 -18
  99. package/{createDialogAction-XPCCKG5B.js → createDialogAction-SDUGVTPS.js} +19 -19
  100. package/{createPageAction-IUWX34KS.js → createPageAction-NNM3OFLY.js} +19 -19
  101. package/{dbSlice-JBLCCYKC.js → dbSlice-5MQ3ELID.js} +5 -5
  102. package/{deleteFile-KV5VTKAT.js → deleteFile-VCCHS72Y.js} +3 -3
  103. package/{dialogCommands-BL4F6CUD.js → dialogCommands-SJK5KWXU.js} +27 -27
  104. package/{dialogNotifyCommand-KOKWBD5H.js → dialogNotifyCommand-PST75COP.js} +7 -7
  105. package/{dialogSlice-BMBKSODJ.js → dialogSlice-2KLMHECR.js} +16 -16
  106. package/{docCreateCommands-V7WKJK6O.js → docCreateCommands-K7CDL2HY.js} +24 -24
  107. package/{docDeleteCommands-2OQMG3A2.js → docDeleteCommands-ZEY5YCSP.js} +25 -25
  108. package/{docReadCommands-FVABF2BU.js → docReadCommands-A4ROLIQG.js} +24 -24
  109. package/{docStore-L34AMWWI.js → docStore-A4O6YJAM.js} +6 -6
  110. package/{docUpdateCommands-H2AZNG2G.js → docUpdateCommands-6HTFQY4O.js} +24 -24
  111. package/{getPricing-XZXEWFPY.js → getPricing-FCHYVRJU.js} +3 -3
  112. package/{handleSendMessageAction-QGYRCZQ7.js → handleSendMessageAction-6WEFYBUC.js} +31 -31
  113. package/{hostCredentialCreate-3KTIFSQP.js → hostCredentialCreate-WOWCNOYM.js} +55 -55
  114. package/index.js +5 -5
  115. package/{localRuntimeAdapter-JY7KHLCE.js → localRuntimeAdapter-7EDBDRYW.js} +54 -54
  116. package/{machineCommands-2HYICEWT.js → machineCommands-XRPC67LL.js} +55 -55
  117. package/{machineWsRunDispatch-HGGCWIL2.js → machineWsRunDispatch-SOGFW472.js} +55 -55
  118. package/{mcpLocalAuthorizeCommand-BDSRBFJB.js → mcpLocalAuthorizeCommand-VOJARP3M.js} +6 -6
  119. package/{memberThunks-Z7PURCRT.js → memberThunks-KC3WJGL3.js} +7 -7
  120. package/{models-RIKQRH6B.js → models-EP7VG6N2.js} +2 -2
  121. package/package.json +1 -1
  122. package/{projectArchive-KXK5HLGA.js → projectArchive-GDVPIZX2.js} +19 -19
  123. package/{providerPresetApply-JBCXP3JP.js → providerPresetApply-4H7YP5D7.js} +5 -5
  124. package/{providerRegistry-AMR7WUWQ.js → providerRegistry-F3UPOTIY.js} +5 -5
  125. package/{read-CO6HMH5W.js → read-T7VU2IMO.js} +3 -3
  126. package/{readDocTool-P4MDVRNW.js → readDocTool-BPQ3QJSD.js} +1 -1
  127. package/{readlineWorkspace-YTHGX6EV.js → readlineWorkspace-OWQIIUGH.js} +68 -67
  128. package/{removeDialogAgentAction-D3R3QNPD.js → removeDialogAgentAction-FEUUVMYC.js} +7 -7
  129. package/{runAgentClientLoop-EIHHWDKF.js → runAgentClientLoop-SJREK2B7.js} +37 -37
  130. package/{runtimeDoctorCommands-EQS62LQV.js → runtimeDoctorCommands-XQD4MN4I.js} +5 -5
  131. package/{setDialogExtraReferencesAction-VORDLM57.js → setDialogExtraReferencesAction-JSTQJPXL.js} +6 -6
  132. package/{setPrimaryDialogAgentAction-P5A65M32.js → setPrimaryDialogAgentAction-Z2BQE3IY.js} +7 -7
  133. package/{settingThunks-JGBSDOC6.js → settingThunks-C2YWCNYI.js} +5 -5
  134. package/{spaceCommands-GFDX7H5J.js → spaceCommands-YRBQ52PG.js} +24 -24
  135. package/{streamAgentChatTurn-3IGMGLIN.js → streamAgentChatTurn-NCA4BKDZ.js} +44 -44
  136. package/{switchDialogAgentAction-DMMWH5FG.js → switchDialogAgentAction-G7XVAOGH.js} +5 -5
  137. package/{tools-CKA42QDP.js → tools-6WQVUGKV.js} +31 -31
  138. package/{tuiRestart-RATR636G.js → tuiRestart-3J7LRMPR.js} +7 -7
  139. package/{tuiSummaryLlmCaller-J5HB4XVS.js → tuiSummaryLlmCaller-2J6NG53N.js} +12 -12
  140. package/{updateDialogTitleAction-U55I3VAL.js → updateDialogTitleAction-QCSN3RYO.js} +18 -18
  141. package/{usageCommand-WW22APZ6.js → usageCommand-SK7JTEPC.js} +1 -1
  142. package/{usageRebuildCommand-B3S67JXH.js → usageRebuildCommand-DF3HUP6F.js} +2 -2
  143. package/{webapi-24RZDIIQ.js → webapi-QVV65DQF.js} +12 -13
@@ -6,7 +6,7 @@ import {
6
6
  resolveDiscoveryScope,
7
7
  resolvePaginationArgs,
8
8
  toDiscoverySafeAgentSummary
9
- } from "./chunk-HZN5VE32.js";
9
+ } from "./chunk-AO6T7U62.js";
10
10
  import {
11
11
  normalizeTopicKey
12
12
  } from "./chunk-MVOZ22RZ.js";
@@ -24,7 +24,7 @@ import {
24
24
  applyFetchSpaceFulfilled,
25
25
  fetchAuthoritativeRemoteSpace,
26
26
  selectSpaceRemoteAuth
27
- } from "./chunk-5D6NHP4U.js";
27
+ } from "./chunk-KMDHRVS7.js";
28
28
  import {
29
29
  ToolResultError,
30
30
  clipMultilineText,
@@ -38,7 +38,7 @@ import {
38
38
  toolRunUpdated,
39
39
  uiCardFallback,
40
40
  waitForAbortableDelay
41
- } from "./chunk-ES5W7DYB.js";
41
+ } from "./chunk-GVTFSLNI.js";
42
42
  import {
43
43
  isGatewayHttpStatus
44
44
  } from "./chunk-NF64D32W.js";
@@ -47,19 +47,19 @@ import {
47
47
  } from "./chunk-6PXFEPHL.js";
48
48
  import {
49
49
  createDocState
50
- } from "./chunk-IEKRWRCK.js";
50
+ } from "./chunk-AKPKOI5Z.js";
51
51
  import {
52
52
  readDocFunc,
53
53
  readDocFunctionSchema,
54
54
  readPageFunc,
55
55
  readPageFunctionSchema,
56
56
  resolvePageReadMarkdown
57
- } from "./chunk-SEDJEJBH.js";
57
+ } from "./chunk-IFWXH7LH.js";
58
58
  import {
59
59
  createDialogAction,
60
60
  uiAskChoiceFunc,
61
61
  uiAskChoiceFunctionSchema
62
- } from "./chunk-YAAQJJ6P.js";
62
+ } from "./chunk-RDPAIR67.js";
63
63
  import {
64
64
  DEFAULT_COLLAPSED_CATEGORIES,
65
65
  addContentToSpace,
@@ -76,7 +76,7 @@ import {
76
76
  updateContentCategory,
77
77
  updateContentTitle,
78
78
  writeStoredCollapsedCategories
79
- } from "./chunk-OMWHO2G7.js";
79
+ } from "./chunk-SQRKAYQW.js";
80
80
  import {
81
81
  buildDatabaseFileContentUrl,
82
82
  deleteDialog,
@@ -85,14 +85,14 @@ import {
85
85
  selectCurrentDialogConfig,
86
86
  selectCurrentDialogId,
87
87
  selectMsgById
88
- } from "./chunk-GJE6Y2Y5.js";
88
+ } from "./chunk-ZP26NIZE.js";
89
89
  import {
90
90
  createAgent,
91
91
  deleteServerSyncedCredential,
92
92
  runLlm,
93
93
  streamAgentChatTurn,
94
94
  updateAgent
95
- } from "./chunk-R67A5KZE.js";
95
+ } from "./chunk-22YUCKMK.js";
96
96
  import {
97
97
  addMemberSpace,
98
98
  getAllMemberSpaces,
@@ -109,12 +109,12 @@ import {
109
109
  setViewMode,
110
110
  updateCurrentSpaceIfMatch,
111
111
  updateMemberSpaceName
112
- } from "./chunk-WXZZQRAH.js";
112
+ } from "./chunk-RXTZB2DH.js";
113
113
  import {
114
114
  UNCATEGORIZED_ID,
115
115
  addContentAction,
116
116
  checkSpaceMembership
117
- } from "./chunk-SGI2FIGK.js";
117
+ } from "./chunk-CJQBWHNM.js";
118
118
  import {
119
119
  createSpaceKey,
120
120
  normalizeSpaceId
@@ -130,10 +130,10 @@ import {
130
130
  selectEntities,
131
131
  toTimestampMs,
132
132
  write
133
- } from "./chunk-VTB6V4UF.js";
133
+ } from "./chunk-PDAXMBLW.js";
134
134
  import {
135
135
  resolveDefaultReasoningEffort
136
- } from "./chunk-OXFJWWOT.js";
136
+ } from "./chunk-FGHEF6WI.js";
137
137
  import {
138
138
  fetchWithTransientRetry
139
139
  } from "./chunk-DXWGFL2Z.js";
@@ -179,7 +179,7 @@ import {
179
179
  } from "./chunk-RD3QLZQV.js";
180
180
  import {
181
181
  readAction
182
- } from "./chunk-DEOPZE4S.js";
182
+ } from "./chunk-5VVP7DW3.js";
183
183
  import {
184
184
  DEVICE_LOCAL_OWNER_ID,
185
185
  getRuntimeServerContext,
@@ -189,19 +189,19 @@ import {
189
189
  resolveEffectiveSpaceActorId,
190
190
  resolveRecordOwnerUserId,
191
191
  selectRuntimeSnapshot
192
- } from "./chunk-ZGHHY2PV.js";
192
+ } from "./chunk-FMYNIAI6.js";
193
193
  import {
194
194
  shareResourceAction
195
- } from "./chunk-3IQ5GP5Y.js";
195
+ } from "./chunk-LC5CVWP2.js";
196
196
  import {
197
197
  selectCurrentServer,
198
198
  selectSyncServers
199
- } from "./chunk-G3SJCNHX.js";
199
+ } from "./chunk-76HAJUOJ.js";
200
200
  import {
201
201
  createAsyncThunk,
202
202
  createSelector,
203
203
  noloWriteRequest
204
- } from "./chunk-T3CUXNV4.js";
204
+ } from "./chunk-QOURTDZL.js";
205
205
  import {
206
206
  googleSessionRequestToken,
207
207
  isGoogleAuthoritySession
@@ -234,7 +234,7 @@ import {
234
234
  normalizeNoloSpaceInput,
235
235
  resolveNoloDialogInput,
236
236
  verifyNoloDialogSubjectRefQuery
237
- } from "./chunk-QXUVCIPB.js";
237
+ } from "./chunk-LOF2EFUE.js";
238
238
  import {
239
239
  MCP_CALL_TOOL_INPUT_SCHEMA,
240
240
  MCP_LIST_CONNECTIONS_INPUT_SCHEMA,
@@ -340,7 +340,7 @@ import {
340
340
  DEFAULT_MODEL,
341
341
  clampReasoningEffort,
342
342
  resolveModelReasoningCapabilityWithCache
343
- } from "./chunk-IBQHHCQE.js";
343
+ } from "./chunk-CD2DK5JA.js";
344
344
  import {
345
345
  isRecord
346
346
  } from "./chunk-KUG52IAP.js";
@@ -1093,7 +1093,7 @@ var HOSTED_EXEC_RUNTIME_TOOL_POLICY = {
1093
1093
  workspace: { mode: "lease" }
1094
1094
  };
1095
1095
  var findModelConfig = async (modelName, provider) => {
1096
- const { ALL_MODELS } = await import("./models-RIKQRH6B.js");
1096
+ const { ALL_MODELS } = await import("./models-EP7VG6N2.js");
1097
1097
  const name = toTrimmedString(modelName);
1098
1098
  const prov = toTrimmedString(provider ?? "");
1099
1099
  if (!name) return null;
@@ -1338,7 +1338,7 @@ var buildPlatformFormDataFromArgs = async (args) => {
1338
1338
  const trimmedModel = toTrimmedString(model);
1339
1339
  const trimmedProvider = toTrimmedString(provider);
1340
1340
  const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
1341
- const { getModelPricing } = await import("./getPricing-XZXEWFPY.js");
1341
+ const { getModelPricing } = await import("./getPricing-FCHYVRJU.js");
1342
1342
  const normalizedTools = tools ?? [];
1343
1343
  const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
1344
1344
  const formData = {
@@ -4012,7 +4012,7 @@ async function deleteDialogsFunc(args, thunkApi) {
4012
4012
  const deletedDialogIds = [];
4013
4013
  const deletedDialogKeys = [];
4014
4014
  const failures = [];
4015
- const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-BMBKSODJ.js");
4015
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-2KLMHECR.js");
4016
4016
  for (const target of targets) {
4017
4017
  try {
4018
4018
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -4450,7 +4450,7 @@ var readSkillDocFunctionSchema = {
4450
4450
  }
4451
4451
  };
4452
4452
  async function readSkillDocFunc(args, thunkApi) {
4453
- const { buildReadDocResult } = await import("./readDocTool-P4MDVRNW.js");
4453
+ const { buildReadDocResult } = await import("./readDocTool-BPQ3QJSD.js");
4454
4454
  const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
4455
4455
  if (typeof id !== "string" || !id.trim()) {
4456
4456
  throw new Error("readSkillDoc requires id or doc.");
@@ -5389,7 +5389,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
5389
5389
  const spaceKey = createSpaceKey.space(spaceId);
5390
5390
  const readSpace = async (dbKey) => {
5391
5391
  try {
5392
- const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-JBLCCYKC.js");
5392
+ const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-5MQ3ELID.js");
5393
5393
  const readPromise = fresh ? dispatch(readAndWait2(dbKey)).unwrap() : dispatch(read2({ dbKey })).unwrap();
5394
5394
  return await withTimeout(readPromise);
5395
5395
  } catch {
@@ -9775,6 +9775,11 @@ var exaSearchSchema = {
9775
9775
  type: "array",
9776
9776
  items: { type: "string" },
9777
9777
  description: '\u6392\u9664\u8FD9\u4E9B\u57DF\u540D\u4E0B\u7684\u7ED3\u679C\uFF08\u4F8B\u5982 ["pinterest.com"]\uFF09\u3002\u4E0D\u586B\u5219\u4E0D\u6392\u9664\u3002'
9778
+ },
9779
+ provider: {
9780
+ type: "string",
9781
+ enum: ["deepseek"],
9782
+ description: '\u641C\u7D22\u5F15\u64CE\u63D0\u4F9B\u65B9\u3002\u9ED8\u8BA4\u8BF7\u7701\u7565\u2014\u2014\u7701\u7565\u5373\u8D70\u670D\u52A1\u7AEF\u65E2\u6709\u901A\u9053\uFF08Exa\u2192Octen\uFF09\uFF1B\u4EC5\u5F53\u7528\u6237\u660E\u786E\u8981\u6C42\u7528 DeepSeek \u641C\u7D22\u65F6\u624D\u586B "deepseek"\u3002\u9009 deepseek \u65F6\u4E0D\u652F\u6301 category / timeRange / includeDomains / excludeDomains\uFF0C\u8FD9\u4E9B\u6536\u7A84\u53EA\u80FD\u5199\u8FDB query\uFF08\u5982 site:\u3001after:\uFF09\u3002'
9778
9783
  }
9779
9784
  },
9780
9785
  required: ["query"]
@@ -9867,7 +9872,8 @@ var exaSearchFunc = async (input, thunkApi, context2) => {
9867
9872
  timeRange,
9868
9873
  includeDomains,
9869
9874
  excludeDomains,
9870
- includeContent
9875
+ includeContent,
9876
+ provider
9871
9877
  } = input;
9872
9878
  const body = { query, dialogId: toolRequestDialogId(context2, () => thunkApi.getState()) };
9873
9879
  if (numResults !== void 0) body.numResults = numResults;
@@ -9881,6 +9887,7 @@ var exaSearchFunc = async (input, thunkApi, context2) => {
9881
9887
  body.excludeDomains = excludeDomains;
9882
9888
  }
9883
9889
  if (typeof includeContent === "boolean") body.includeContent = includeContent;
9890
+ if (provider !== void 0) body.provider = provider;
9884
9891
  const signals = resolvePlanSignals(thunkApi, context2);
9885
9892
  if (signals.priorSearches !== void 0) body.priorSearches = signals.priorSearches;
9886
9893
  if (signals.lastResultCount !== void 0) body.lastResultCount = signals.lastResultCount;
@@ -12078,7 +12085,7 @@ var selectUserIdFromState = (state2) => {
12078
12085
  var selectCurrentServerFromState = (state2) => typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : null;
12079
12086
  async function addImageContentToSpace(input) {
12080
12087
  const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
12081
- const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-5MZDMGI6.js")).addContentAction;
12088
+ const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-W6JVLQ6H.js")).addContentAction;
12082
12089
  await addContentAction2(
12083
12090
  {
12084
12091
  spaceId: input.spaceId,
@@ -19389,7 +19396,7 @@ async function updateDocFunc(args, thunkApi) {
19389
19396
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
19390
19397
  };
19391
19398
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
19392
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-L34AMWWI.js");
19399
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-A4O6YJAM.js");
19393
19400
  if (getDocState().pageKey === id) {
19394
19401
  applyExternalDocUpdate({
19395
19402
  slateData: finalSlateData,
@@ -19414,7 +19421,7 @@ async function updateDocFunc(args, thunkApi) {
19414
19421
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
19415
19422
  async function dispatchSetSettings(thunkApi, changes) {
19416
19423
  const injectedSetSettings = thunkApi?.extra?.setSettings;
19417
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-JGBSDOC6.js")).setSettings;
19424
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-C2YWCNYI.js")).setSettings;
19418
19425
  await thunkApi.dispatch(setSettings(changes)).unwrap();
19419
19426
  }
19420
19427
  var updateUserPreferenceProfileFunctionSchema = {
@@ -4,7 +4,7 @@ import {
4
4
  resolvePlatformHostedCredentialProvider,
5
5
  resolvePlatformProxyChatGatewayEndpoint,
6
6
  resolvePlatformResponsesEndpoint
7
- } from "./chunk-RRYDDDV7.js";
7
+ } from "./chunk-ESN4WNWU.js";
8
8
  import {
9
9
  asTrimmedString
10
10
  } from "./chunk-3EUW3WEO.js";
@@ -21,7 +21,7 @@ import {
21
21
  CLIENT_VERSION_TOO_OLD_CODE,
22
22
  buildClientVersionGateErrorDetail,
23
23
  evaluatePlatformHostedClientVersionGate
24
- } from "./chunk-O5MEXHJW.js";
24
+ } from "./chunk-PQ63BDV3.js";
25
25
  import {
26
26
  asTrimmedLowercaseString
27
27
  } from "./chunk-QSJ3HFEF.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generatePkcePair,
3
3
  startCallbackServer
4
- } from "./chunk-HTENYMO3.js";
4
+ } from "./chunk-XGWRH3OF.js";
5
5
  import {
6
6
  toErrorMessage
7
7
  } from "./chunk-HNMXYYJR.js";
@@ -2,7 +2,7 @@ import {
2
2
  getCurrentSpaceIdRaw,
3
3
  setCurrentSpaceBoth,
4
4
  setSpaceInitialized
5
- } from "./chunk-WXZZQRAH.js";
5
+ } from "./chunk-RXTZB2DH.js";
6
6
  import {
7
7
  createSpaceKey,
8
8
  normalizeSpaceId
@@ -33,7 +33,7 @@ import {
33
33
  resolveServerUrl,
34
34
  validateInstaboxWorkspaceSelection,
35
35
  writeUsage
36
- } from "./chunk-INREDOGO.js";
36
+ } from "./chunk-7DXFOL5B.js";
37
37
  import {
38
38
  boxGlyphs,
39
39
  displayWidth,
@@ -43,7 +43,7 @@ import {
43
43
  stripAnsi,
44
44
  tokenizeAnsiLine,
45
45
  visibleWidth
46
- } from "./chunk-HTENYMO3.js";
46
+ } from "./chunk-XGWRH3OF.js";
47
47
  import {
48
48
  clearCredentialAvailability,
49
49
  readEffectiveCredentialEntry
@@ -86,14 +86,14 @@ import {
86
86
  } from "./chunk-S73EPYNC.js";
87
87
  import {
88
88
  resolveCliLocalRuntimeKeyCapability
89
- } from "./chunk-PDA22NY3.js";
89
+ } from "./chunk-J45ACAOQ.js";
90
90
  import {
91
91
  extractGoogleValidationLink
92
92
  } from "./chunk-BMQ2MJUK.js";
93
93
  import {
94
94
  parseUiCard,
95
95
  uiCardFallback
96
- } from "./chunk-ES5W7DYB.js";
96
+ } from "./chunk-GVTFSLNI.js";
97
97
  import {
98
98
  isGatewayHttpStatus
99
99
  } from "./chunk-NF64D32W.js";
@@ -104,7 +104,7 @@ import {
104
104
  loadOwnerItemsFromDb,
105
105
  parseUiAskChoiceContent,
106
106
  resolveAgentMemoryPolicy
107
- } from "./chunk-YAAQJJ6P.js";
107
+ } from "./chunk-RDPAIR67.js";
108
108
  import {
109
109
  API_REPORTED_COST_MULTIPLIER,
110
110
  estimateMessagesTokens,
@@ -113,14 +113,14 @@ import {
113
113
  resolveAgentContextWindow,
114
114
  resolveOccupancy,
115
115
  resolveOccupancyWindow
116
- } from "./chunk-GJE6Y2Y5.js";
116
+ } from "./chunk-ZP26NIZE.js";
117
117
  import {
118
118
  parsePositiveFiniteNumberOrFallback
119
119
  } from "./chunk-Y5GCAMGP.js";
120
120
  import {
121
121
  readDbRecord,
122
122
  resolveAgentRecordFromHybridStore
123
- } from "./chunk-XMSAOVF3.js";
123
+ } from "./chunk-IDFGIROZ.js";
124
124
  import {
125
125
  isTransientFetchError
126
126
  } from "./chunk-DXWGFL2Z.js";
@@ -144,7 +144,7 @@ import {
144
144
  settleRunTerminalAuthoritatively,
145
145
  spawnLocalBackgroundRun,
146
146
  transitionRunToTerminal
147
- } from "./chunk-SMYUQDYW.js";
147
+ } from "./chunk-XKV53E4E.js";
148
148
  import {
149
149
  formatAgentListCard,
150
150
  formatFinishedRunCard,
@@ -174,10 +174,10 @@ import {
174
174
  markCliUserBatchPhase,
175
175
  readActionGate,
176
176
  readAgentsMdLayerFromDisk
177
- } from "./chunk-SYWYGUPT.js";
177
+ } from "./chunk-F4XIS5DL.js";
178
178
  import {
179
179
  resolveAgentRuntimeConfigFromRecord
180
- } from "./chunk-AERVJIZ2.js";
180
+ } from "./chunk-4OXPN3WC.js";
181
181
  import {
182
182
  createThinkParserState,
183
183
  flushThinkParser,
@@ -192,7 +192,7 @@ import {
192
192
  } from "./chunk-QJTZ76CP.js";
193
193
  import {
194
194
  resolveAgentImageInputSupport
195
- } from "./chunk-KOTJT7CY.js";
195
+ } from "./chunk-SX6AWTNK.js";
196
196
  import {
197
197
  isContextOverflowText
198
198
  } from "./chunk-TLE77UJ5.js";
@@ -201,12 +201,12 @@ import {
201
201
  ATTACHMENT_PART_VERSION,
202
202
  describeAttachmentForModel,
203
203
  normalizeAttachmentPart
204
- } from "./chunk-FBVN3B5T.js";
204
+ } from "./chunk-LTVEOOZL.js";
205
205
  import {
206
206
  findCodexOAuthPinnedContextWindow,
207
207
  normalizeUsage,
208
208
  readCacheReadInputTokensOrNull
209
- } from "./chunk-V2COUWMQ.js";
209
+ } from "./chunk-MAA42MMV.js";
210
210
  import {
211
211
  isOAuthApiKeyRef
212
212
  } from "./chunk-UKZX3NHN.js";
@@ -243,7 +243,7 @@ import {
243
243
  import {
244
244
  isBuiltinNoloAgentRef,
245
245
  resolveLocalUserId
246
- } from "./chunk-GEKRDIMM.js";
246
+ } from "./chunk-UPOW5HTG.js";
247
247
  import {
248
248
  isLocalCliAgentKey
249
249
  } from "./chunk-BR3GT6MR.js";
@@ -284,19 +284,19 @@ import {
284
284
  } from "./chunk-OGZE6BZG.js";
285
285
  import {
286
286
  isAntigravityOAuthAgent
287
- } from "./chunk-JFGKVVLB.js";
287
+ } from "./chunk-CTWCZKNS.js";
288
288
  import {
289
289
  toErrorMessage
290
290
  } from "./chunk-HNMXYYJR.js";
291
291
  import {
292
292
  resolveClientVersion
293
- } from "./chunk-FQFSLPNJ.js";
293
+ } from "./chunk-K26XPZRB.js";
294
294
  import {
295
295
  asTrimmedString
296
296
  } from "./chunk-3EUW3WEO.js";
297
297
  import {
298
298
  findModelConfig
299
- } from "./chunk-IBQHHCQE.js";
299
+ } from "./chunk-CD2DK5JA.js";
300
300
  import {
301
301
  asOptionalTrimmedString
302
302
  } from "./chunk-G3SUCT4W.js";
@@ -304,7 +304,7 @@ import {
304
304
  CLIENT_VERSION_TOO_OLD_CODE,
305
305
  NOLO_CLIENT_VERSION_HEADER,
306
306
  buildClientVersionUpgradeMessage
307
- } from "./chunk-O5MEXHJW.js";
307
+ } from "./chunk-PQ63BDV3.js";
308
308
  import {
309
309
  asTrimmedLowercaseString
310
310
  } from "./chunk-QSJ3HFEF.js";
@@ -12724,7 +12724,7 @@ function isBalanceExhaustedError(error) {
12724
12724
 
12725
12725
  // packages/cli/client/agentRun.ts
12726
12726
  async function loadRunLocalAgentTurn() {
12727
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-AMQJ3DDY.js");
12727
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-6QXQS3TS.js");
12728
12728
  return runLocalAgentTurn;
12729
12729
  }
12730
12730
  var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-2HZWYJ4G.js";
3
+ } from "./chunk-N7MXFYLU.js";
4
4
  import {
5
5
  resolveServerUrl
6
6
  } from "./chunk-BIDSIRTS.js";
@@ -2,26 +2,26 @@ import {
2
2
  clipMultilineText,
3
3
  fetchAndSerializeTable,
4
4
  waitForAbortableDelay
5
- } from "./chunk-ES5W7DYB.js";
5
+ } from "./chunk-GVTFSLNI.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-SEDJEJBH.js";
12
+ } from "./chunk-IFWXH7LH.js";
13
13
  import {
14
14
  extractCategorizedMentions
15
15
  } from "./chunk-AGIM7IMJ.js";
16
16
  import {
17
17
  fetchAndCacheMessages
18
- } from "./chunk-GJE6Y2Y5.js";
18
+ } from "./chunk-ZP26NIZE.js";
19
19
  import {
20
20
  createSpaceKey
21
21
  } from "./chunk-UAD2WT54.js";
22
22
  import {
23
23
  read
24
- } from "./chunk-VTB6V4UF.js";
24
+ } from "./chunk-PDAXMBLW.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-ZGHHY2PV.js";
33
+ } from "./chunk-FMYNIAI6.js";
34
34
  import {
35
35
  classifyGenerationError
36
36
  } from "./chunk-TLE77UJ5.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  selectCurrentServer,
3
3
  selectRemoteServers
4
- } from "./chunk-G3SJCNHX.js";
4
+ } from "./chunk-76HAJUOJ.js";
5
5
  import {
6
6
  noloDeleteRequest,
7
7
  noloWriteRequest
8
- } from "./chunk-T3CUXNV4.js";
8
+ } from "./chunk-QOURTDZL.js";
9
9
  import {
10
10
  normalizeTimeFields
11
11
  } from "./chunk-5PASH2MB.js";
@@ -624,7 +624,7 @@ var MODEL_TIER_GUIDANCE = MODEL_TIERS.map(
624
624
  ({ tier, models }) => `${tier}: ${models.join("\u3001")}`
625
625
  ).join("\n");
626
626
  var DIFFICULTY_GRADING_ORDER = `- **\u5148\u5224\u6863\u518D\u9009\u6A21\u578B**\uFF08\u89C4\u5212\u590D\u6742\u2260\u6267\u884C\u590D\u6742\uFF09\uFF1A\u5148\u5B9A\u5B50\u4EFB\u52A1 difficulty \u518D\u9009\u8BE5\u6863\u80DC\u4EFB\u6A21\u578B\uFF1B\u91CD\u8981\u5EA6\u3001\u6587\u4EF6\u6570\u3001\u8017\u65F6\u3001\u53D1\u5E03\u5B89\u5168\u76EE\u5F55\u4E0D\u5347\u6863\uFF0C\u300C\u66F4\u7A33\u59A5/\u66F4\u5B89\u5168/\u72EC\u7ACB review\u300D\u4E0D\u662F\u5347\u6863\u7406\u7531\uFF0C\u9009\u8DB3\u591F\u80DC\u4EFB\u7684\u6700\u4F4E\u6863\uFF0C\u4E0D\u4E3A\u964D\u6863\u62C6\u788E\u3002`;
627
- var DIFFICULTY_GRADING_TIERS = ` - \u56DB\u6863\uFF1Aeasy\uFF1D\u6839\u56E0\u4E0E\u505A\u6CD5\u660E\u786E\u3001\u5C40\u90E8\u53EF\u9A8C\uFF1Bnormal\uFF1D\u5C40\u90E8\u5B9A\u4F4D\u3001\u6709\u5951\u7EA6\u3001\u65E0\u8DE8\u6A21\u5757\u53D6\u820D\uFF1Bcomplex\uFF1D\u591A\u6839\u56E0\u6216\u8DE8\u6A21\u5757/\u8DE8\u72B6\u6001\uFF0C\u517C\u987E\u5E76\u53D1\u517C\u5BB9\uFF1Bextreme\uFF1D\u67B6\u6784\u672A\u5B9A\u6216\u5B89\u5168/\u5B8C\u6574\u6027\u91CD\u5927\u53D6\u820D\u3002\u6839\u56E0/\u63A5\u53E3\u5B9A\u4E0B\u540E\u5B9E\u73B0\u4E0E\u590D\u5BA1\u91CD\u65B0\u5224\u6863\uFF0C\u4E0D\u7EE7\u627F\u89C4\u5212\u6863\u3002`;
627
+ var DIFFICULTY_GRADING_TIERS = ` - \u56DB\u6863\uFF1Aeasy\uFF1D\u6839\u56E0\u4E0E\u505A\u6CD5\u660E\u786E\u3001\u5C40\u90E8\u53EF\u9A8C\uFF1Bnormal\uFF1D\u6309\u65E2\u5B9A\u5951\u7EA6\u5B9E\u73B0/\u9A8C\u8BC1\u6216\u5C40\u90E8\u5B9A\u4F4D\uFF1Bcomplex\uFF1D\u591A\u6839\u56E0\u3001\u8DE8\u72B6\u6001\u6216\u5E76\u53D1\u517C\u5BB9\u53D6\u820D\uFF1Bextreme\uFF1D\u67B6\u6784\u672A\u5B9A\u6216\u5B89\u5168/\u5B8C\u6574\u6027\u91CD\u5927\u53D6\u820D\u3002\u5347\u6863\u987B\u6307\u51FA\u672C\u5757\u672A\u51B3\u70B9\uFF0C\u4E0D\u6309\u9879\u76EE\u6574\u4F53\u5B9A\u6863\u3002\u5B9E\u73B0\u4E0E\u590D\u5BA1\u91CD\u5224\uFF0C\u4E0D\u7EE7\u627F\u89C4\u5212\u6863\u3002`;
628
628
  function resolveModelTier(model) {
629
629
  if (typeof model !== "string") return "unknown";
630
630
  const id = model.trim().toLowerCase().split("/").at(-1).replace(/\s+/g, "-");
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-5ZUL4CUO.js";
4
4
  import {
5
5
  getModelContextWindow
6
- } from "./chunk-V2COUWMQ.js";
6
+ } from "./chunk-MAA42MMV.js";
7
7
  import {
8
8
  isPageKey,
9
9
  isTableMetaKey
@@ -15,13 +15,13 @@ import {
15
15
  } from "./chunk-I42VC5KR.js";
16
16
  import {
17
17
  ALL_MODELS
18
- } from "./chunk-4JFSDWTN.js";
18
+ } from "./chunk-6ASGEP5D.js";
19
19
  import {
20
20
  asOptionalFiniteNumber
21
21
  } from "./chunk-WWC7I6TA.js";
22
22
  import {
23
23
  MODEL_LOOKUP_MAP
24
- } from "./chunk-IBQHHCQE.js";
24
+ } from "./chunk-CD2DK5JA.js";
25
25
  import {
26
26
  asOptionalTrimmedString
27
27
  } from "./chunk-G3SUCT4W.js";
@@ -29,7 +29,7 @@ import {
29
29
  PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
30
30
  isPlatformManagedProvider,
31
31
  resolvePlatformEffectiveModel
32
- } from "./chunk-O5MEXHJW.js";
32
+ } from "./chunk-PQ63BDV3.js";
33
33
 
34
34
  // packages/core/chat/messageContentSerialize.ts
35
35
  var serializeMessageContent = (content, imagePlaceholder = "[\u56FE\u7247]") => {
@@ -750,6 +750,73 @@ var DECLARATION_RESERVE = 40;
750
750
  var USER_MESSAGE_MAX_DEMAND = 600;
751
751
  var SUMMARY_USER_SHARE = 0.2;
752
752
  var DECLARATION_SPLIT_COST = 20;
753
+ function interruptedBatchMarker(declared, returned) {
754
+ const scope = "[\u672C\u6BB5\u5386\u53F2\u8303\u56F4\u5185";
755
+ return returned === 0 ? `${scope}\uFF0C\u8BE5\u5DE5\u5177\u6279\u6B21\u5728\u540E\u7EED\u7528\u6237\u6D88\u606F\u524D\u6CA1\u6709\u8BB0\u5F55\u5230\u7ED3\u679C\uFF0C\u6309\u4E2D\u65AD\u5904\u7406\uFF1A\u58F0\u660E\u8FC7\u7684\u8C03\u7528\u4E0D\u8BA1\u4E3A\u5DF2\u5B8C\u6210\u3002]` : `${scope}\uFF0C\u8BE5\u5DE5\u5177\u6279\u6B21\u58F0\u660E\u4E86 ${declared} \u4E2A\u8C03\u7528\uFF0C\u53EA\u8BB0\u5F55\u4E86 ${returned} \u4E2A\u7ED3\u679C\uFF1B\u672A\u8BB0\u5F55\u7ED3\u679C\u7684\u8C03\u7528\u6309\u4E2D\u65AD\u5904\u7406\uFF0C\u4E0D\u8BA1\u4E3A\u5DF2\u5B8C\u6210\u3002]`;
756
+ }
757
+ function projectInterruptedHistoricalBatches(source) {
758
+ const resultIndices = /* @__PURE__ */ new Map();
759
+ source.forEach((msg, index) => {
760
+ const resultId = msg.role === "tool" ? msg.tool_call_id : void 0;
761
+ if (typeof resultId !== "string" || !resultId) return;
762
+ const existing = resultIndices.get(resultId);
763
+ if (existing) existing.push(index);
764
+ else resultIndices.set(resultId, [index]);
765
+ });
766
+ return source.map((msg, index) => {
767
+ if (msg.role !== "assistant" || !msg.tool_calls?.length) return msg;
768
+ const declared = msg.tool_calls.map((call) => call?.id);
769
+ if (declared.some((id) => typeof id !== "string" || !id) || new Set(declared).size !== declared.length) return msg;
770
+ const declaredIds = declared;
771
+ let cursor = index + 1;
772
+ const returned = [];
773
+ while (cursor < source.length && source[cursor].role === "tool") {
774
+ const resultId = source[cursor].tool_call_id;
775
+ if (typeof resultId !== "string" || !resultId || !declaredIds.includes(resultId) || returned.includes(resultId)) return msg;
776
+ returned.push(resultId);
777
+ cursor++;
778
+ }
779
+ if (source[cursor]?.role !== "user") return msg;
780
+ if (returned.length === declaredIds.length) return msg;
781
+ const returnedSet = new Set(returned);
782
+ const ambiguous = declaredIds.some((id) => !returnedSet.has(id) && (resultIndices.get(id) ?? []).some((at) => at < index + 1 || at > cursor - 1));
783
+ if (ambiguous) return msg;
784
+ const keptCalls = msg.tool_calls.filter((call) => returnedSet.has(call.id));
785
+ const { tool_calls: _declaredCalls, ...rest } = msg;
786
+ const text = serializeMessageContent(msg.content);
787
+ const marker = interruptedBatchMarker(declaredIds.length, returned.length);
788
+ return {
789
+ ...rest,
790
+ ...keptCalls.length ? { tool_calls: keptCalls } : {},
791
+ content: text ? `${text}
792
+ ${marker}` : marker
793
+ };
794
+ });
795
+ }
796
+ function buildHistoricalCompactionRequest(args) {
797
+ const source = args.msgsToCompress;
798
+ const projected = projectInterruptedHistoricalBatches(source);
799
+ const bounded = buildBoundedCompactionRequest({ ...args, msgsToCompress: projected });
800
+ if (bounded.status !== "ready") return bounded;
801
+ const sourceIndexById = /* @__PURE__ */ new Map();
802
+ source.forEach((msg, index) => {
803
+ if (!sourceIndexById.has(msg.id)) sourceIndexById.set(msg.id, index);
804
+ });
805
+ const coveredMessages = bounded.coveredMessages.map((msg) => {
806
+ const index = sourceIndexById.get(msg.id);
807
+ if (index === void 0) {
808
+ throw new Error(`historical compaction coverage returned an unknown message id: ${msg.id}`);
809
+ }
810
+ return source[index];
811
+ });
812
+ const isOrderedPrefix = !bounded.partial && coveredMessages.length === source.length && coveredMessages.every((msg, position) => msg === source[position]);
813
+ if (!isOrderedPrefix) {
814
+ throw new Error(
815
+ `historical compaction coverage is no longer an ordered 1:1 prefix of the source (covered ${coveredMessages.length} of ${source.length}, partial=${bounded.partial})`
816
+ );
817
+ }
818
+ return { ...bounded, coveredMessages };
819
+ }
753
820
  function buildBoundedCompactionRequest(args) {
754
821
  const { msgsToCompress: msgs, previousSummary, contextWindow } = args;
755
822
  const windowValid = Number.isFinite(contextWindow) && contextWindow > 0;
@@ -1550,7 +1617,7 @@ export {
1550
1617
  runSummaryWithContract,
1551
1618
  COMPACTION_SUMMARY_SCHEMA_VERSION,
1552
1619
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
1553
- buildBoundedCompactionRequest,
1620
+ buildHistoricalCompactionRequest,
1554
1621
  buildCompactionMetricsFromPlan,
1555
1622
  formatCompactionMetricsLog,
1556
1623
  computeSummarySourceMetadata,
@@ -6,7 +6,7 @@ import {
6
6
  parseFlagWithOptionalValue,
7
7
  runCloudflareOAuthLogin,
8
8
  upsertEnvVariable
9
- } from "./chunk-B5U64NZU.js";
9
+ } from "./chunk-KB5RQRSJ.js";
10
10
  import {
11
11
  ANTHROPIC_OAUTH_AUTHORIZE_URL,
12
12
  ANTHROPIC_OAUTH_CALLBACK_PORT,
@@ -50,7 +50,7 @@ import {
50
50
  startCallbackServer,
51
51
  validateXAIEndpoint,
52
52
  xaiOAuthDiscovery
53
- } from "./chunk-HTENYMO3.js";
53
+ } from "./chunk-XGWRH3OF.js";
54
54
  import {
55
55
  extractGoogleValidationLink
56
56
  } from "./chunk-BMQ2MJUK.js";
@@ -60,7 +60,7 @@ import {
60
60
  detectLocalDevinCredentials,
61
61
  extractDevinToken,
62
62
  fetchAntigravityCloudCodeCompletion
63
- } from "./chunk-KV5FDJOD.js";
63
+ } from "./chunk-MYYNZG2M.js";
64
64
  import {
65
65
  createOAuthTokenStore,
66
66
  resolveFreshAccessToken