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
@@ -3,29 +3,29 @@ import {
3
3
  mergeReferences,
4
4
  resolveReferenceAssets,
5
5
  resolveToolsFromKeys
6
- } from "./chunk-4Q4ZDPGC.js";
6
+ } from "./chunk-L6BLA6BT.js";
7
7
  import {
8
8
  UI_CARD_ENVELOPE_MAX_BYTES,
9
9
  getAllToolRuns,
10
10
  parseUiCard,
11
11
  uiCardFallback
12
- } from "./chunk-ES5W7DYB.js";
12
+ } from "./chunk-GVTFSLNI.js";
13
13
  import {
14
14
  getDocState
15
- } from "./chunk-IEKRWRCK.js";
15
+ } from "./chunk-AKPKOI5Z.js";
16
16
  import {
17
17
  getTableState
18
- } from "./chunk-OMWHO2G7.js";
18
+ } from "./chunk-SQRKAYQW.js";
19
19
  import {
20
20
  selectAllMsgs
21
- } from "./chunk-GJE6Y2Y5.js";
21
+ } from "./chunk-ZP26NIZE.js";
22
22
  import {
23
23
  getCurrentSpaceIdRaw,
24
24
  getViewMode
25
- } from "./chunk-WXZZQRAH.js";
25
+ } from "./chunk-RXTZB2DH.js";
26
26
  import {
27
27
  selectById
28
- } from "./chunk-VTB6V4UF.js";
28
+ } from "./chunk-PDAXMBLW.js";
29
29
  import {
30
30
  resolveToolBaseUrl
31
31
  } from "./chunk-KQHEGELM.js";
@@ -48,7 +48,7 @@ import {
48
48
  attachmentKind,
49
49
  extractReferenceKeysFromMessage,
50
50
  normalizeAttachmentPart
51
- } from "./chunk-FBVN3B5T.js";
51
+ } from "./chunk-LTVEOOZL.js";
52
52
  import {
53
53
  asRecordOrEmpty
54
54
  } from "./chunk-KX6YBIHG.js";
@@ -84,7 +84,7 @@ import {
84
84
  getModelPricing,
85
85
  getPrices,
86
86
  hasExplicitAgentPricing
87
- } from "./chunk-LNFCR5IA.js";
87
+ } from "./chunk-AS6L5KSD.js";
88
88
  import {
89
89
  asTrimmedString
90
90
  } from "./chunk-3EUW3WEO.js";
@@ -94,7 +94,7 @@ import {
94
94
  import {
95
95
  getModelConfig,
96
96
  getProviderByModelName
97
- } from "./chunk-IBQHHCQE.js";
97
+ } from "./chunk-CD2DK5JA.js";
98
98
  import {
99
99
  isRecord
100
100
  } from "./chunk-KUG52IAP.js";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-HS7MLR74.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-4Q4ZDPGC.js";
6
+ } from "./chunk-L6BLA6BT.js";
7
7
  import {
8
8
  fetchServerSyncedCredential
9
- } from "./chunk-R67A5KZE.js";
9
+ } from "./chunk-22YUCKMK.js";
10
10
  import {
11
11
  buildIdentityBlock,
12
12
  buildPlatformStaticContextLayers,
@@ -15,7 +15,7 @@ import {
15
15
  compileContextLayers,
16
16
  detectDispatchIntentFromMessages,
17
17
  resolveToolGuidedSections
18
- } from "./chunk-YFDLRLW7.js";
18
+ } from "./chunk-HIDVLMZC.js";
19
19
  import {
20
20
  convertMessagesToResponsesInput,
21
21
  getUsageRequestOptions,
@@ -24,11 +24,11 @@ import {
24
24
  resolveReasoningReplayOptions,
25
25
  shouldStripReasoningContentForOutbound,
26
26
  stablePromptCacheKey
27
- } from "./chunk-CQG24S2Q.js";
27
+ } from "./chunk-W3HSD32M.js";
28
28
  import {
29
29
  resolveAgentCallPlan,
30
30
  resolveClientWire
31
- } from "./chunk-YTYVSOY4.js";
31
+ } from "./chunk-VUHKG4KS.js";
32
32
  import {
33
33
  createFileCredentialBroker
34
34
  } from "./chunk-E6A5NHDH.js";
@@ -53,7 +53,10 @@ import {
53
53
  } from "./chunk-HNMXYYJR.js";
54
54
  import {
55
55
  buildProviderAuthHeaders
56
- } from "./chunk-FQFSLPNJ.js";
56
+ } from "./chunk-K26XPZRB.js";
57
+ import {
58
+ OPENAI_RESPONSES_ENDPOINT
59
+ } from "./chunk-ESN4WNWU.js";
57
60
  import {
58
61
  asTrimmedString
59
62
  } from "./chunk-3EUW3WEO.js";
@@ -61,7 +64,7 @@ import {
61
64
  clampReasoningEffort,
62
65
  getModelConfig,
63
66
  isModelSupportReasoningEffort
64
- } from "./chunk-IBQHHCQE.js";
67
+ } from "./chunk-CD2DK5JA.js";
65
68
  import {
66
69
  isRecord
67
70
  } from "./chunk-KUG52IAP.js";
@@ -75,8 +78,12 @@ import {
75
78
  isDeepInfraKimiModel,
76
79
  isFireworksKimiModel,
77
80
  isPlatformMimoProviderModel,
78
- resolveFireworksKimiModel
79
- } from "./chunk-O5MEXHJW.js";
81
+ resolveFireworksKimiModel,
82
+ resolvePlatformHostedRouting
83
+ } from "./chunk-PQ63BDV3.js";
84
+ import {
85
+ asTrimmedLowercaseString
86
+ } from "./chunk-QSJ3HFEF.js";
80
87
 
81
88
  // packages/agent-runtime/responsesConversationState.ts
82
89
  function supportsResponsesConversationState(agent) {
@@ -507,6 +514,21 @@ var generateOpenAIRequestBody = (agentConfig, providerName, messages, contexts,
507
514
 
508
515
  // packages/integrations/openai/generateResponseRequestBody.ts
509
516
  var DEFAULT_RESPONSES_COMPACTION_THRESHOLD = 2e5;
517
+ function usesGpt62DeveloperPrefix(agentConfig) {
518
+ const provider = asTrimmedLowercaseString(agentConfig.provider);
519
+ if (agentConfig.customProviderUrl || agentConfig.apiSource === "custom") return false;
520
+ let model = asTrimmedLowercaseString(agentConfig.model).replace(/^openai\//, "");
521
+ if (provider === "nolo") {
522
+ const route = resolvePlatformHostedRouting(agentConfig.model);
523
+ if (route?.wire !== "responses" || route.endpoint !== OPENAI_RESPONSES_ENDPOINT) {
524
+ return false;
525
+ }
526
+ model = route.upstreamModelId ?? model;
527
+ } else if (provider !== "openai") {
528
+ return false;
529
+ }
530
+ return /^gpt-6\.2-(astra|sol)$/.test(model);
531
+ }
510
532
  function resolveResponsesCompactionThreshold(agentConfig) {
511
533
  const configured = Number(
512
534
  agentConfig.responsesCompactionThreshold ?? agentConfig.responses_compaction_threshold
@@ -526,7 +548,10 @@ function selectResponsesContinuationMessages(msgs) {
526
548
  }
527
549
  function generateResponseRequestBody(agentConfig, msgs, contexts, prependSystemPrompt = true, responsesState) {
528
550
  const language = typeof navigator !== "undefined" && navigator.language ? navigator.language : "zh-CN";
529
- const state = responsesState !== void 0 ? responsesState : selectResponsesConversationState(agentConfig.responsesState, agentConfig);
551
+ const state = selectResponsesConversationState(
552
+ responsesState === void 0 ? agentConfig.responsesState : responsesState,
553
+ agentConfig
554
+ );
530
555
  const supportsServerState = supportsResponsesConversationState(agentConfig);
531
556
  const stateful = supportsServerState && state && agentConfig.store !== false ? state : null;
532
557
  const input = convertMessagesToResponsesInput(
@@ -539,14 +564,26 @@ function generateResponseRequestBody(agentConfig, msgs, contexts, prependSystemP
539
564
  ...getUsageRequestOptions(agentConfig.provider, { api: "responses" })
540
565
  };
541
566
  if (prependSystemPrompt) {
542
- const promptContent = buildSystemPrompt({
567
+ const compiled = buildSystemPromptContext({
543
568
  agentConfig,
544
569
  language,
545
570
  contexts,
546
571
  // 按当前用户输入检测派发意图:无意图只注入最小派发协议(安全硬门常在)。
547
572
  dispatchIntent: detectDispatchIntentFromMessages(msgs)
548
573
  });
549
- body.instructions = promptContent;
574
+ const legacyContinuation = supportsServerState && responsesState === void 0 && agentConfig.previous_response_id !== void 0;
575
+ if (!stateful && !legacyContinuation && usesGpt62DeveloperPrefix(agentConfig)) {
576
+ if (compiled.stablePrefixContent) {
577
+ input.unshift({
578
+ type: "message",
579
+ role: "developer",
580
+ content: [{ type: "input_text", text: compiled.stablePrefixContent }]
581
+ });
582
+ }
583
+ if (compiled.dynamicContent) body.instructions = compiled.dynamicContent;
584
+ } else {
585
+ body.instructions = compiled.content;
586
+ }
550
587
  }
551
588
  if (agentConfig.temperature !== void 0) {
552
589
  body.temperature = agentConfig.temperature;
@@ -10,10 +10,10 @@ import {
10
10
  } from "./chunk-523DITKR.js";
11
11
  import {
12
12
  runLlm
13
- } from "./chunk-R67A5KZE.js";
13
+ } from "./chunk-22YUCKMK.js";
14
14
  import {
15
15
  cleanupCliSessionForDialog
16
- } from "./chunk-TRN54YTP.js";
16
+ } from "./chunk-AVSZ6PBM.js";
17
17
  import {
18
18
  getActiveDialogAgentId,
19
19
  getDialogAgentIds,
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-5RGU3J7P.js";
22
22
  import {
23
23
  addContentAction
24
- } from "./chunk-SGI2FIGK.js";
24
+ } from "./chunk-CJQBWHNM.js";
25
25
  import {
26
26
  patch,
27
27
  read,
@@ -29,7 +29,7 @@ import {
29
29
  selectById,
30
30
  upload,
31
31
  write
32
- } from "./chunk-VTB6V4UF.js";
32
+ } from "./chunk-PDAXMBLW.js";
33
33
  import {
34
34
  fetchMessages
35
35
  } from "./chunk-HXER7YJF.js";
@@ -66,14 +66,14 @@ import {
66
66
  resolveUserAuthorityServer,
67
67
  scheduleDeleteReplication,
68
68
  waitForWriteAck
69
- } from "./chunk-ZGHHY2PV.js";
69
+ } from "./chunk-FMYNIAI6.js";
70
70
  import {
71
71
  asyncThunkCreator,
72
72
  buildCreateSlice,
73
73
  createAsyncThunk,
74
74
  createEntityAdapter,
75
75
  createSelector
76
- } from "./chunk-T3CUXNV4.js";
76
+ } from "./chunk-QOURTDZL.js";
77
77
  import {
78
78
  googleSessionRequestToken,
79
79
  isGoogleAuthoritySession,
@@ -105,15 +105,15 @@ import {
105
105
  isCodexOAuthAgent,
106
106
  normalizeAttachmentPart,
107
107
  resolveAutoExecutionProfile
108
- } from "./chunk-FBVN3B5T.js";
108
+ } from "./chunk-LTVEOOZL.js";
109
109
  import {
110
110
  isDevinOAuthAgent
111
111
  } from "./chunk-5ZUL4CUO.js";
112
112
  import {
113
113
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
114
114
  DEFAULT_CONTEXT_WINDOW,
115
- buildBoundedCompactionRequest,
116
115
  buildCompactionMetricsFromPlan,
116
+ buildHistoricalCompactionRequest,
117
117
  classifySummaryError,
118
118
  computeSummarySourceMetadata,
119
119
  createSummaryBudget,
@@ -125,7 +125,7 @@ import {
125
125
  runSummaryWithContract,
126
126
  selectSummaryRoute,
127
127
  serializeMessageContent
128
- } from "./chunk-V2COUWMQ.js";
128
+ } from "./chunk-MAA42MMV.js";
129
129
  import {
130
130
  isOAuthApiKeyRef
131
131
  } from "./chunk-UKZX3NHN.js";
@@ -182,7 +182,7 @@ import {
182
182
  import {
183
183
  findModelConfig,
184
184
  getModelConfig
185
- } from "./chunk-IBQHHCQE.js";
185
+ } from "./chunk-CD2DK5JA.js";
186
186
  import {
187
187
  isRecord
188
188
  } from "./chunk-KUG52IAP.js";
@@ -203,13 +203,14 @@ import {
203
203
  PLATFORM_HOSTED_DEEPSEEK_PRO_MODEL,
204
204
  PLATFORM_HOSTED_GLM_53_FLASH_BASETEN_PRICE,
205
205
  getPlatformHostedDeepSeekV4Price,
206
+ isGeminiNeonModel,
206
207
  isPlatformHostedDeepSeekV4Model,
207
208
  isPlatformHostedImageModel,
208
209
  isPlatformHostedOpenAIImageModel,
209
210
  isPlatformManagedProvider,
210
211
  resolvePlatformEffectiveModel,
211
212
  resolvePlatformHostedRouting
212
- } from "./chunk-O5MEXHJW.js";
213
+ } from "./chunk-PQ63BDV3.js";
213
214
  import {
214
215
  asTrimmedLowercaseString
215
216
  } from "./chunk-QSJ3HFEF.js";
@@ -11716,6 +11717,13 @@ var getMessagesForDialogFromState = (state, dialogId) => {
11716
11717
  });
11717
11718
  };
11718
11719
  var identityCanonicalName = (name) => name;
11720
+ var toCompactionRequestMessage = (msg) => {
11721
+ if (msg.role !== "tool" || typeof msg.toolCallId !== "string" || !msg.toolCallId) {
11722
+ return msg;
11723
+ }
11724
+ const { toolCallId, ...rest } = msg;
11725
+ return { ...rest, tool_call_id: toolCallId };
11726
+ };
11719
11727
  var summarizingDialogs = /* @__PURE__ */ new Set();
11720
11728
  var BudgetRescueError = class extends Error {
11721
11729
  constructor(code, detail) {
@@ -11795,8 +11803,10 @@ var updateDialogSummaryAction = async (args, thunkApi) => {
11795
11803
  route.kind === "platform" ? resolveAgentContextWindow({ model: route.model, provider: "nolo" }) ?? 32768 : Infinity,
11796
11804
  currentAvailable ? resolveAgentContextWindow(currentAgent) ?? 32768 : route.kind === "platform" ? Infinity : 32768
11797
11805
  );
11798
- const request = buildBoundedCompactionRequest({
11799
- msgsToCompress: plan.msgsToCompress,
11806
+ const request = buildHistoricalCompactionRequest({
11807
+ // 存储形态(toolCallId)先归一到运行时契约(tool_call_id),否则历史里
11808
+ // 半批工具调用的声明与结果无法配对,整段摘要请求会被严格阻塞。
11809
+ msgsToCompress: plan.msgsToCompress.map(toCompactionRequestMessage),
11800
11810
  previousSummary,
11801
11811
  contextWindow: summaryWindow,
11802
11812
  canonicalizeToolName: identityCanonicalName
@@ -11806,7 +11816,8 @@ var updateDialogSummaryAction = async (args, thunkApi) => {
11806
11816
  if (args.reason === "budget_rescue") throw new BudgetRescueError("no-summary-input", `bounded summary request blocked: ${request.reason}`);
11807
11817
  return;
11808
11818
  }
11809
- const { coveredMessages, summarizedBeforeId: newSummarizedBeforeId, promptContent, outputTokenBudget } = request;
11819
+ const coveredMessages = plan.msgsToCompress.slice(0, request.coveredMessages.length);
11820
+ const { summarizedBeforeId: newSummarizedBeforeId, promptContent, outputTokenBudget } = request;
11810
11821
  const extractedKeys = new Set(dialogConfig.referenceKeys || []);
11811
11822
  for (const msg of coveredMessages) {
11812
11823
  for (const key of extractReferenceKeysFromMessage(msg)) extractedKeys.add(key);
@@ -14669,7 +14680,7 @@ var messageSlice = createSliceWithThunks({
14669
14680
  runtimeOptions: args.runtimeOptions
14670
14681
  });
14671
14682
  if (agentKeyToUse) {
14672
- const { streamAgentChatTurn } = await import("./agentSlice-6X4IOT64.js");
14683
+ const { streamAgentChatTurn } = await import("./agentSlice-IZ5ANAF7.js");
14673
14684
  await dispatch(
14674
14685
  streamAgentChatTurn({
14675
14686
  agentKey: agentKeyToUse,
@@ -14801,6 +14812,10 @@ var scaleModelServiceTierPrice = (price, inputOutputMultiplier, cacheMultiplier)
14801
14812
  ...price,
14802
14813
  input: price.input * inputOutputMultiplier,
14803
14814
  output: price.output * inputOutputMultiplier,
14815
+ // 缓存命中单价有两个历史字段(见 resolveModelPrice 的归一说明):只缩放
14816
+ // cachingWrite/cachingRead 会漏掉已归一出来的 inputCacheHit,使缓存命中仍按
14817
+ // Standard 价收(Gemini 4 Neon Flex 1M 命中应为 0.6,漏缩放则变回 1.2)。
14818
+ ...typeof cacheMultiplier === "number" && typeof price.inputCacheHit === "number" ? { inputCacheHit: price.inputCacheHit * cacheMultiplier } : {},
14804
14819
  ...typeof cacheMultiplier === "number" && typeof price.cachingWrite === "number" ? { cachingWrite: price.cachingWrite * cacheMultiplier } : {},
14805
14820
  ...typeof cacheMultiplier === "number" && typeof price.cachingRead === "number" ? { cachingRead: price.cachingRead * cacheMultiplier } : {}
14806
14821
  });
@@ -14816,6 +14831,9 @@ var resolveGoogleServiceTierPrice = (model, price, billingServiceTier) => {
14816
14831
  serviceTierMultiplier.cache
14817
14832
  );
14818
14833
  }
14834
+ if (model.serviceTierPriceMultipliers) {
14835
+ return priceWithImageOutput;
14836
+ }
14819
14837
  if (normalizedTier === "flex" || normalizedTier === "batch") {
14820
14838
  return scaleModelInputOutputPrice(priceWithImageOutput, 0.5);
14821
14839
  }
@@ -14838,6 +14856,9 @@ var resolveEffectiveModelPrice = ({
14838
14856
  if (provider === "google") {
14839
14857
  return resolveGoogleServiceTierPrice(model, resolvedPrice, billingServiceTier);
14840
14858
  }
14859
+ if (provider === "nolo" && model.serviceTierPriceMultipliers && resolvePlatformHostedRouting(model.name)?.usageProvider === "google") {
14860
+ return resolveGoogleServiceTierPrice(model, resolvedPrice, billingServiceTier);
14861
+ }
14841
14862
  if (provider === "runinfra" || provider === "baseten") {
14842
14863
  return resolvedPrice;
14843
14864
  }
@@ -15045,6 +15066,9 @@ var calculateBasicCost = (model, usage, provider, externalPrice, billingServiceT
15045
15066
  if (model.name.includes("gemini-3")) {
15046
15067
  return calculateAnthropicCost(resolvedPrice, usage, externalPrice);
15047
15068
  }
15069
+ if (typeof resolvedPrice.inputCacheHit === "number" && isGeminiNeonModel(model.name)) {
15070
+ return calculateCacheBasedCost(resolvedPrice, usage, externalPrice);
15071
+ }
15048
15072
  return calculateSimpleCost(resolvedPrice, usage, externalPrice);
15049
15073
  case "openrouter": {
15050
15074
  const reported = calculateApiReportedCost(usage);
@@ -15740,7 +15764,7 @@ var deleteOwnedDialogAttachments = async (args) => {
15740
15764
  metadataReadFailures
15741
15765
  });
15742
15766
  if (!plan.deleteCandidates.length) return plan;
15743
- const { deleteFileAction } = await import("./deleteFile-KV5VTKAT.js");
15767
+ const { deleteFileAction } = await import("./deleteFile-VCCHS72Y.js");
15744
15768
  for (const candidate of plan.deleteCandidates) {
15745
15769
  if (candidate.fileDbKey) {
15746
15770
  await deleteFileAction(candidate.fileDbKey, args.thunkApi);
@@ -15802,7 +15826,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
15802
15826
  }
15803
15827
  if (isCurrentDialog) {
15804
15828
  await thunkApi.dispatch(resetMsgs());
15805
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-BMBKSODJ.js");
15829
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-2KLMHECR.js");
15806
15830
  dispatch(clearPendingAttachments2());
15807
15831
  }
15808
15832
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -15810,39 +15834,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
15810
15834
 
15811
15835
  // packages/chat/dialog/dialogSlice.ts
15812
15836
  var runCreateDialogAction = async (args, thunkApi) => {
15813
- const { createDialogAction } = await import("./createDialogAction-XPCCKG5B.js");
15837
+ const { createDialogAction } = await import("./createDialogAction-SDUGVTPS.js");
15814
15838
  return createDialogAction(args, thunkApi);
15815
15839
  };
15816
15840
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
15817
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-BBR4YHVB.js");
15841
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-ZFFGJ7CZ.js");
15818
15842
  return createAgentAutomationAction(args, thunkApi);
15819
15843
  };
15820
15844
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
15821
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-U55I3VAL.js");
15845
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-QCSN3RYO.js");
15822
15846
  return updateDialogTitleAction(args, thunkApi);
15823
15847
  };
15824
15848
  var runAddDialogAgentAction = async (args, thunkApi) => {
15825
- const { addDialogAgentAction } = await import("./addDialogAgentAction-ONVFHUOL.js");
15849
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-LVNKMXKZ.js");
15826
15850
  return addDialogAgentAction(args, thunkApi);
15827
15851
  };
15828
15852
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
15829
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-D3R3QNPD.js");
15853
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-FEUUVMYC.js");
15830
15854
  return removeDialogAgentAction(args, thunkApi);
15831
15855
  };
15832
15856
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
15833
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-P5A65M32.js");
15857
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-Z2BQE3IY.js");
15834
15858
  return setPrimaryDialogAgentAction(args, thunkApi);
15835
15859
  };
15836
15860
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
15837
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-DMMWH5FG.js");
15861
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-G7XVAOGH.js");
15838
15862
  return switchDialogAgentAction(args, thunkApi);
15839
15863
  };
15840
15864
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
15841
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-VORDLM57.js");
15865
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-JSTQJPXL.js");
15842
15866
  return setDialogExtraReferencesAction(args, thunkApi);
15843
15867
  };
15844
15868
  var runHandleSendMessageAction = async (args, thunkApi) => {
15845
- const { handleSendMessageAction } = await import("./handleSendMessageAction-QGYRCZQ7.js");
15869
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-6WEFYBUC.js");
15846
15870
  return handleSendMessageAction(args, thunkApi);
15847
15871
  };
15848
15872
  function clearDialogState() {
@@ -15855,7 +15879,7 @@ var createPageAndAddReference = createAsyncThunk(
15855
15879
  async (payload, { dispatch, getState, rejectWithValue }) => {
15856
15880
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
15857
15881
  try {
15858
- const { createDocState } = await import("./docStore-L34AMWWI.js");
15882
+ const { createDocState } = await import("./docStore-A4O6YJAM.js");
15859
15883
  const pageKey = await createDocState(
15860
15884
  { slateData, title },
15861
15885
  { dispatch, getState }
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-G7Y4GXTY.js";
4
4
  import {
5
5
  resolvePlatformAuthToken
6
- } from "./chunk-FQFSLPNJ.js";
6
+ } from "./chunk-K26XPZRB.js";
7
7
 
8
8
  // packages/cli/client/authGuidance.ts
9
9
  import { readdirSync } from "node:fs";
@@ -6,10 +6,10 @@ import {
6
6
  localTurnHasSubjectRefs,
7
7
  resolveLocalUserId,
8
8
  withResolvedRuntimeToolSurface
9
- } from "./chunk-GEKRDIMM.js";
9
+ } from "./chunk-UPOW5HTG.js";
10
10
  import "./chunk-BR3GT6MR.js";
11
11
  import "./chunk-NEG5LYK5.js";
12
- import "./chunk-XRFUYUS7.js";
12
+ import "./chunk-GX6DITLQ.js";
13
13
  import "./chunk-YLAHYLDQ.js";
14
14
  import "./chunk-KZAT2M2V.js";
15
15
  import "./chunk-M2EJHDJP.js";
@@ -17,16 +17,16 @@ import "./chunk-I42VC5KR.js";
17
17
  import "./chunk-BIDSIRTS.js";
18
18
  import "./chunk-OLZBQWZU.js";
19
19
  import "./chunk-LCBAMY2M.js";
20
- import "./chunk-FQFSLPNJ.js";
21
- import "./chunk-RRYDDDV7.js";
20
+ import "./chunk-K26XPZRB.js";
21
+ import "./chunk-ESN4WNWU.js";
22
22
  import "./chunk-3EUW3WEO.js";
23
- import "./chunk-IBQHHCQE.js";
23
+ import "./chunk-CD2DK5JA.js";
24
24
  import "./chunk-JRTNUU5Z.js";
25
25
  import "./chunk-KUG52IAP.js";
26
26
  import "./chunk-G3SUCT4W.js";
27
27
  import "./chunk-4SN6J65J.js";
28
28
  import "./chunk-CF7PE763.js";
29
- import "./chunk-O5MEXHJW.js";
29
+ import "./chunk-PQ63BDV3.js";
30
30
  import "./chunk-QSJ3HFEF.js";
31
31
  import "./chunk-U67V476Y.js";
32
32
  export {
@@ -3,39 +3,39 @@ import {
3
3
  readDialogMessageRecords,
4
4
  readDialogMessages,
5
5
  resolveBuiltinLocalCliAgentConfig
6
- } from "./chunk-7N4O3VUH.js";
7
- import "./chunk-GEY2UH2I.js";
6
+ } from "./chunk-6YYTTLJV.js";
7
+ import "./chunk-MZVCFV3T.js";
8
8
  import "./chunk-JP2BH4NC.js";
9
- import "./chunk-VCU5GV42.js";
10
- import "./chunk-SYWYGUPT.js";
9
+ import "./chunk-T4QY3HZ5.js";
10
+ import "./chunk-F4XIS5DL.js";
11
11
  import "./chunk-LHCGKAFO.js";
12
12
  import "./chunk-ZNFJWEN4.js";
13
- import "./chunk-KV5FDJOD.js";
13
+ import "./chunk-MYYNZG2M.js";
14
14
  import "./chunk-ANUP75N2.js";
15
15
  import "./chunk-AL3TYDIF.js";
16
- import "./chunk-HBO6UW3O.js";
16
+ import "./chunk-EDT65EUE.js";
17
17
  import "./chunk-HNUWUO75.js";
18
18
  import "./chunk-CHOZJMJS.js";
19
- import "./chunk-AERVJIZ2.js";
20
- import "./chunk-A4RK66EV.js";
19
+ import "./chunk-4OXPN3WC.js";
20
+ import "./chunk-2FK2KZSL.js";
21
21
  import "./chunk-56GBUMO5.js";
22
- import "./chunk-YFDLRLW7.js";
23
- import "./chunk-QXUVCIPB.js";
22
+ import "./chunk-HIDVLMZC.js";
23
+ import "./chunk-LOF2EFUE.js";
24
24
  import "./chunk-FDZ2GBWO.js";
25
25
  import "./chunk-QJTZ76CP.js";
26
- import "./chunk-CQG24S2Q.js";
26
+ import "./chunk-W3HSD32M.js";
27
27
  import "./chunk-X4O7FJF5.js";
28
28
  import "./chunk-DMPZMYH4.js";
29
29
  import "./chunk-BYXBJQAS.js";
30
- import "./chunk-KOTJT7CY.js";
30
+ import "./chunk-SX6AWTNK.js";
31
31
  import "./chunk-TLE77UJ5.js";
32
32
  import "./chunk-WFGNWWJI.js";
33
- import "./chunk-YTYVSOY4.js";
33
+ import "./chunk-VUHKG4KS.js";
34
34
  import "./chunk-JV5FHHF7.js";
35
35
  import "./chunk-2MBTWINN.js";
36
- import "./chunk-FBVN3B5T.js";
36
+ import "./chunk-LTVEOOZL.js";
37
37
  import "./chunk-5ZUL4CUO.js";
38
- import "./chunk-V2COUWMQ.js";
38
+ import "./chunk-MAA42MMV.js";
39
39
  import "./chunk-H57T64RA.js";
40
40
  import "./chunk-UKZX3NHN.js";
41
41
  import "./chunk-SR4FE5VD.js";
@@ -63,35 +63,35 @@ import "./chunk-KHCLMKZZ.js";
63
63
  import "./chunk-SYTHYBMI.js";
64
64
  import "./chunk-OJKUU3LP.js";
65
65
  import "./chunk-YZMNK53S.js";
66
- import "./chunk-GEKRDIMM.js";
66
+ import "./chunk-UPOW5HTG.js";
67
67
  import "./chunk-BR3GT6MR.js";
68
68
  import "./chunk-NEG5LYK5.js";
69
- import "./chunk-XRFUYUS7.js";
69
+ import "./chunk-GX6DITLQ.js";
70
70
  import "./chunk-YLAHYLDQ.js";
71
71
  import "./chunk-KZAT2M2V.js";
72
72
  import "./chunk-M2EJHDJP.js";
73
73
  import "./chunk-I42VC5KR.js";
74
- import "./chunk-LNFCR5IA.js";
74
+ import "./chunk-AS6L5KSD.js";
75
75
  import "./chunk-VIDPVFP3.js";
76
76
  import "./chunk-4JH2UMJR.js";
77
77
  import "./chunk-U6VC4MU4.js";
78
78
  import "./chunk-BIDSIRTS.js";
79
79
  import "./chunk-OLZBQWZU.js";
80
80
  import "./chunk-LCBAMY2M.js";
81
- import "./chunk-4JFSDWTN.js";
82
- import "./chunk-JFGKVVLB.js";
81
+ import "./chunk-6ASGEP5D.js";
82
+ import "./chunk-CTWCZKNS.js";
83
83
  import "./chunk-HNMXYYJR.js";
84
- import "./chunk-FQFSLPNJ.js";
85
- import "./chunk-RRYDDDV7.js";
84
+ import "./chunk-K26XPZRB.js";
85
+ import "./chunk-ESN4WNWU.js";
86
86
  import "./chunk-3EUW3WEO.js";
87
87
  import "./chunk-WWC7I6TA.js";
88
- import "./chunk-IBQHHCQE.js";
88
+ import "./chunk-CD2DK5JA.js";
89
89
  import "./chunk-JRTNUU5Z.js";
90
90
  import "./chunk-KUG52IAP.js";
91
91
  import "./chunk-G3SUCT4W.js";
92
92
  import "./chunk-4SN6J65J.js";
93
93
  import "./chunk-CF7PE763.js";
94
- import "./chunk-O5MEXHJW.js";
94
+ import "./chunk-PQ63BDV3.js";
95
95
  import "./chunk-QSJ3HFEF.js";
96
96
  import "./chunk-U67V476Y.js";
97
97
  export {