nolo-cli 0.159.0-alpha.2 → 0.159.0-alpha.4

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 (124) hide show
  1. package/{_executeModel-VGY53B7B.js → _executeModel-3HHZYHHB.js} +38 -37
  2. package/accountResolver-55EDKEIK.js +1 -1
  3. package/action-GPPJC5TI.js +1 -1
  4. package/{addContentAction-BI6RDRTQ.js → addContentAction-XJQEJ4XW.js} +6 -6
  5. package/{addDialogAgentAction-4RJYUSIK.js → addDialogAgentAction-5WZX5CAY.js} +5 -5
  6. package/{agentDeleteCommand-N7LJGVHB.js → agentDeleteCommand-VXWLHIUC.js} +55 -55
  7. package/{agentEmailCommands-2K3P3XDT.js → agentEmailCommands-2TQN6UIZ.js} +55 -55
  8. package/{agentListCommands-3CJ4GF6C.js → agentListCommands-44UDONIY.js} +30 -30
  9. package/{agentMachineCommands-4QQV7GGA.js → agentMachineCommands-KH7OSRWP.js} +25 -23
  10. package/{agentPullCommand-FA43RBRU.js → agentPullCommand-GXXEDOSA.js} +4 -4
  11. package/{agentRecordCommands-U7OAV5ZX.js → agentRecordCommands-6BNH5KK2.js} +49 -49
  12. package/{agentRunCommand-55RMQNVI.js → agentRunCommand-7MFXU4GK.js} +52 -52
  13. package/{agentRunControl-PPYWJRIJ.js → agentRunControl-USFIAK7X.js} +4 -4
  14. package/{agentRuntimeLocal-7JDS3OAL.js → agentRuntimeLocal-BAQON6BB.js} +13 -11
  15. package/{agentSlice-OXGFFQ6L.js → agentSlice-YT3VCCEW.js} +6 -6
  16. package/{appDeleteCommands-UVWHW4TJ.js → appDeleteCommands-R73W7UJM.js} +22 -20
  17. package/{appDeployCommands-67JPR4JU.js → appDeployCommands-F65F6N63.js} +22 -20
  18. package/{appDeployStatusCommands-UTC6IR5V.js → appDeployStatusCommands-CTRCXJJX.js} +22 -20
  19. package/{appGetCommands-KLLIGWNC.js → appGetCommands-VTQERXLK.js} +22 -20
  20. package/{appListCommands-AZKNWJUR.js → appListCommands-MY3WFDYA.js} +22 -20
  21. package/{authCommand-MSINEFHH.js → authCommand-3Z52KJID.js} +14 -14
  22. package/{authCommands-AMNIAKEG.js → authCommands-QOCKVPX3.js} +5 -5
  23. package/{builtinSkillRegistry-H3AY27TR.js → builtinSkillRegistry-LJV7FHNI.js} +4 -4
  24. package/{chunk-2QCLJA24.js → chunk-2ZYCNT2O.js} +29 -29
  25. package/{chunk-KLOUPPO6.js → chunk-3GTVM7NJ.js} +17 -17
  26. package/{chunk-US6MKPE7.js → chunk-3L5MSPWX.js} +1 -1
  27. package/{chunk-U6TTTB6V.js → chunk-4L4K6YR7.js} +1 -1
  28. package/{chunk-P5QACQDK.js → chunk-62TBKWTV.js} +1 -1
  29. package/{chunk-YLMMECCH.js → chunk-6XIE5ZGI.js} +1 -1
  30. package/{chunk-IULXURBL.js → chunk-B5JIGIKM.js} +27 -22
  31. package/{chunk-J2ATF74A.js → chunk-BAWAKW7X.js} +1 -1
  32. package/{chunk-ZVQHBIWV.js → chunk-CDLP56BS.js} +7 -7
  33. package/{chunk-ZIGIN5IX.js → chunk-DD2EOI6S.js} +1 -1
  34. package/{chunk-OON4OBWI.js → chunk-DLV3H464.js} +7 -7
  35. package/{chunk-HNMY5XY6.js → chunk-DT7EWFTY.js} +5 -5
  36. package/{chunk-IRTOYSA2.js → chunk-ESMZW5PE.js} +1 -1
  37. package/{chunk-GB552UJS.js → chunk-F3SOW2EU.js} +46 -1
  38. package/{chunk-VKU6G2TC.js → chunk-F5WASHQA.js} +27 -29
  39. package/{chunk-RX2CAWIB.js → chunk-FB5WLEOD.js} +11 -11
  40. package/{chunk-4UCLMT27.js → chunk-FCUKCVKN.js} +4 -4
  41. package/{chunk-FY4SDK2E.js → chunk-FDLDMJTM.js} +1 -1
  42. package/{chunk-PKC7D6SX.js → chunk-FFHV45HO.js} +3 -3
  43. package/{chunk-CT5G7V46.js → chunk-FZYKQFBQ.js} +3 -3
  44. package/{chunk-MJKKEGF5.js → chunk-HBW2XA3L.js} +12 -12
  45. package/{chunk-MLGFCRL2.js → chunk-HW7EBEC5.js} +15 -191
  46. package/{chunk-5MPS5OOY.js → chunk-I7S63QUU.js} +1 -1
  47. package/{chunk-CON6SI7N.js → chunk-IF7V3CBU.js} +1 -1
  48. package/{chunk-UKD7M7MB.js → chunk-JDKSYQQN.js} +4 -4
  49. package/{chunk-M2P3OGXZ.js → chunk-JWEXJ573.js} +2 -2
  50. package/{chunk-SPKLALBU.js → chunk-MAYW6V3E.js} +1 -1
  51. package/{chunk-NDZOXXIM.js → chunk-NHEWV5FD.js} +1 -1
  52. package/{chunk-AAZ4QBFU.js → chunk-NWKPVIHL.js} +7 -7
  53. package/{chunk-NUE735UT.js → chunk-O2IWR23M.js} +1 -1
  54. package/{chunk-EJQBSOQQ.js → chunk-OLVOR45M.js} +2 -2
  55. package/{chunk-MGSNS22D.js → chunk-QA2C5NKI.js} +5 -739
  56. package/{chunk-4JOZECCA.js → chunk-QXZH5UDF.js} +2 -2
  57. package/{chunk-HSTLMIPE.js → chunk-QZIOZDM6.js} +9 -9
  58. package/{chunk-WQ2FSETX.js → chunk-R2KWTENX.js} +3 -3
  59. package/{chunk-C3WXTFRP.js → chunk-RIHQGFFA.js} +1 -1
  60. package/{chunk-AVB7CTVJ.js → chunk-SCQT4CRF.js} +40 -42
  61. package/{chunk-DC3SZCRR.js → chunk-SH3XD4E2.js} +2 -2
  62. package/{chunk-WI47DIF3.js → chunk-TK2AX7M6.js} +43 -45
  63. package/chunk-TT644UJD.js +188 -0
  64. package/{chunk-QOYJE6NX.js → chunk-U34KT53V.js} +28 -10
  65. package/{chunk-DFWLD7WU.js → chunk-ULQAD7ZY.js} +18 -6
  66. package/{chunk-RE5I35J7.js → chunk-VXS4YYJ2.js} +6 -6
  67. package/{chunk-JZX2XLKC.js → chunk-YCRROBDY.js} +1 -1
  68. package/{chunk-XMHE5P5T.js → chunk-YNOXGQ7X.js} +13 -13
  69. package/{chunk-TQA3UACU.js → chunk-YR47Y7CN.js} +6 -6
  70. package/{chunk-CTDOZWQX.js → chunk-ZAV4YVEA.js} +1 -1
  71. package/{commandRegistry-J3BFLLBY.js → commandRegistry-3JCFSTBQ.js} +83 -83
  72. package/{contentThunks-ZDSBE7NG.js → contentThunks-QBL5NK2W.js} +14 -15
  73. package/{createAgentAutomationAction-TRWBF5DQ.js → createAgentAutomationAction-5UWBLR2N.js} +14 -15
  74. package/{createDialogAction-AMYWLRO4.js → createDialogAction-NJ2LE7KC.js} +18 -19
  75. package/{createPageAction-KHKRLVQO.js → createPageAction-7T3RINS2.js} +16 -17
  76. package/{dbSlice-DC2J53RC.js → dbSlice-6PVPY44C.js} +5 -5
  77. package/{deleteFile-KYWEMNFX.js → deleteFile-YM6NDPAR.js} +3 -3
  78. package/{dialogCommands-K4OVKDYD.js → dialogCommands-FDQPV6GO.js} +27 -25
  79. package/{dialogSlice-WNLY25YV.js → dialogSlice-GQMTD4HR.js} +13 -14
  80. package/{dist-NJC2W7I4.js → dist-Q2JSMAKA.js} +7 -361
  81. package/{docCreateCommands-GI377ZFI.js → docCreateCommands-Z5KKWS2C.js} +24 -22
  82. package/{docDeleteCommands-NBQNTVHB.js → docDeleteCommands-YTGMEQ4I.js} +25 -23
  83. package/{docReadCommands-6SKEW6AO.js → docReadCommands-SK2CLD2S.js} +24 -22
  84. package/{docStore-UEYBUHOJ.js → docStore-PM5PYKPZ.js} +6 -6
  85. package/{docUpdateCommands-NJ7JD6VA.js → docUpdateCommands-SI4PL2L3.js} +24 -22
  86. package/{handleSendMessageAction-FKTNID5I.js → handleSendMessageAction-EQ3U6K5N.js} +31 -28
  87. package/index.js +7 -7
  88. package/{localRuntimeAdapter-ZT3P7NFH.js → localRuntimeAdapter-TVIGJ3PU.js} +46 -46
  89. package/{localRuntimeAuthority-JDAD7CB6.js → localRuntimeAuthority-BPN5OAQG.js} +2 -2
  90. package/{localRuntimeDb-CVC62PM5.js → localRuntimeDb-QIVAXMUL.js} +1 -1
  91. package/{machineCommands-4I3POIF2.js → machineCommands-EYP73LBU.js} +51 -51
  92. package/{machineWsRunDispatch-EBTOI2EU.js → machineWsRunDispatch-6QWYWIHP.js} +47 -47
  93. package/{memberThunks-2DWKLE6W.js → memberThunks-AZINUM4S.js} +8 -8
  94. package/package.json +4 -2
  95. package/{read-L7QEJETH.js → read-7JPIWRBQ.js} +3 -3
  96. package/{readDocTool-QELXV2GW.js → readDocTool-AAQTB2Y3.js} +1 -1
  97. package/{readlineWorkspace-7DXZALKF.js → readlineWorkspace-QBN246OU.js} +81 -81
  98. package/{removeDialogAgentAction-376XSUP2.js → removeDialogAgentAction-RMVRILLK.js} +6 -6
  99. package/{runAgentClientLoop-MITBRXTT.js → runAgentClientLoop-EXIQDX7G.js} +36 -35
  100. package/{runtimeDoctorCommands-HEN5IPIH.js → runtimeDoctorCommands-MMCP4B4U.js} +11 -11
  101. package/{setDialogExtraReferencesAction-QBDSH63D.js → setDialogExtraReferencesAction-L3V7JTMG.js} +6 -6
  102. package/{setPrimaryDialogAgentAction-537QFGW3.js → setPrimaryDialogAgentAction-X52JQGTJ.js} +6 -6
  103. package/{settingThunks-4Z43ZSAT.js → settingThunks-N6XFWPOU.js} +5 -5
  104. package/{spaceCommands-UM3ZQKJU.js → spaceCommands-5WANPZMM.js} +24 -22
  105. package/{streamAgentChatTurn-7ZIKATEO.js → streamAgentChatTurn-DI2334G3.js} +132 -72
  106. package/{switchDialogAgentAction-CSO6AKRL.js → switchDialogAgentAction-ZJ5CGU7J.js} +5 -5
  107. package/{tools-TSKAUQYD.js → tools-23VQGJOX.js} +27 -28
  108. package/{tuiSummaryLlmCaller-VSNIIH63.js → tuiSummaryLlmCaller-FESHBDTT.js} +4 -4
  109. package/{updateCommands-LXZLG44Y.js → updateCommands-KALLBWJE.js} +3 -3
  110. package/{updateDialogTitleAction-73QX44WS.js → updateDialogTitleAction-AGAYHWS7.js} +14 -15
  111. package/chunk-UKZX3NHN.js +0 -48
  112. package/{agentGrantCommands-HOJ3JBBQ.js → agentGrantCommands-5DPHYEKP.js} +3 -3
  113. package/{agentProviderCommands-CUBOAVPB.js → agentProviderCommands-CXBHNONN.js} +3 -3
  114. package/{chromeOpsCommands-3Z34RKSE.js → chromeOpsCommands-GZVVK7HU.js} +4 -4
  115. package/{chunk-2SGAI64X.js → chunk-43OFVLWJ.js} +4 -4
  116. package/{chunk-XETG4RIX.js → chunk-AETZ7AD6.js} +4 -4
  117. package/{chunk-YNCJYU4X.js → chunk-G3VYRPTV.js} +4 -4
  118. package/{chunk-2IXDJNZI.js → chunk-GAGGEA7D.js} +3 -3
  119. package/{chunk-O4KVUI4W.js → chunk-KABQ74UQ.js} +3 -3
  120. package/{chunk-42W7LKBM.js → chunk-QV3VGSX6.js} +3 -3
  121. package/{chunk-4RJJDA57.js → chunk-WR37DI7R.js} +3 -3
  122. package/{memoryCommands-CUNBFRVS.js → memoryCommands-ZS3VQJAL.js} +3 -3
  123. package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-3GLX4QQY.js} +3 -3
  124. package/{tableCommands-LBH3QPPO.js → tableCommands-IVC5S7Y3.js} +11 -11
@@ -3,16 +3,13 @@ import {
3
3
  } from "./chunk-HS7MLR74.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-HSTLMIPE.js";
7
- import {
8
- shouldUseServerProxy
9
- } from "./chunk-UKZX3NHN.js";
6
+ } from "./chunk-QZIOZDM6.js";
10
7
  import {
11
8
  fetchServerSyncedCredential
12
- } from "./chunk-HNMY5XY6.js";
9
+ } from "./chunk-DT7EWFTY.js";
13
10
  import {
14
11
  buildSkillGuidancePromptBlock
15
- } from "./chunk-DC3SZCRR.js";
12
+ } from "./chunk-SH3XD4E2.js";
16
13
  import {
17
14
  CREDENTIAL_HYGIENE_RULE,
18
15
  DELETE_SAFETY_RED_LINE,
@@ -35,29 +32,30 @@ import {
35
32
  resolveReasoningReplayOptions,
36
33
  shouldStripReasoningContentForOutbound,
37
34
  stablePromptCacheKey
38
- } from "./chunk-U6TTTB6V.js";
35
+ } from "./chunk-4L4K6YR7.js";
36
+ import {
37
+ resolveAgentCallPlan,
38
+ resolveClientWire
39
+ } from "./chunk-TT644UJD.js";
39
40
  import {
40
41
  createFileCredentialBroker
41
42
  } from "./chunk-UHTDNB5Y.js";
43
+ import {
44
+ MEMORY_USE_GUIDANCE,
45
+ buildUserResponseLanguageContext,
46
+ wrapHistoricalSummaryWithReplayGuard
47
+ } from "./chunk-4VJAC32I.js";
42
48
  import {
43
49
  canonicalizeToolNames
44
50
  } from "./chunk-5EBLANFT.js";
45
51
  import {
46
- ANTIGRAVITY_CLOUD_CODE_BASE_URL,
47
- isAntigravityCloudCodeBaseUrl,
48
- isAntigravityOAuthAgent
49
- } from "./chunk-SQX235S2.js";
52
+ API_ENDPOINTS
53
+ } from "./chunk-LCBAMY2M.js";
50
54
  import {
51
55
  buildProviderAuthHeaders
52
56
  } from "./chunk-PIG2IUVZ.js";
53
- import {
54
- isOpenAiResponsesModel,
55
- resolvePlatformChatCompletionsEndpoint,
56
- resolvePlatformResponsesEndpoint
57
- } from "./chunk-V7PCFWX3.js";
58
57
  import {
59
58
  clampReasoningEffort,
60
- findModelConfig,
61
59
  getModelConfig,
62
60
  isModelSupportReasoningEffort
63
61
  } from "./chunk-6EQD4AQL.js";
@@ -70,9 +68,6 @@ import {
70
68
  import {
71
69
  toErrorMessage
72
70
  } from "./chunk-HNMXYYJR.js";
73
- import {
74
- API_ENDPOINTS
75
- } from "./chunk-LCBAMY2M.js";
76
71
  import {
77
72
  isLoopbackUrl
78
73
  } from "./chunk-4SN6J65J.js";
@@ -85,14 +80,6 @@ import {
85
80
  isPlatformMimoProviderModel,
86
81
  resolveFireworksKimiModel
87
82
  } from "./chunk-CGFNDIKK.js";
88
- import {
89
- asTrimmedLowercaseString
90
- } from "./chunk-QSJ3HFEF.js";
91
- import {
92
- MEMORY_USE_GUIDANCE,
93
- buildUserResponseLanguageContext,
94
- wrapHistoricalSummaryWithReplayGuard
95
- } from "./chunk-4VJAC32I.js";
96
83
 
97
84
  // packages/agent-runtime/responsesConversationState.ts
98
85
  function supportsResponsesConversationState(agent) {
@@ -133,167 +120,6 @@ function isResponsesConversationStateRejection(status, responseBody) {
133
120
  return mentionsResponseState && rejectsState;
134
121
  }
135
122
 
136
- // packages/agent-runtime/agentCallPlan.ts
137
- var CODEX_RESPONSES_URL = "https://chatgpt.com/backend-api/codex/responses";
138
- var CURSOR_AGENT_URL = "https://api2.cursor.sh/agent.v1.AgentService/Run";
139
- var DEVIN_CONNECT_URL = "https://server.codeium.com/exa.api_server_pb.ApiServerService/GetChatMessage";
140
- function resolveClientWire(plan) {
141
- if (plan.upstreamWire === "gemini-cca") return "chat.completions";
142
- if (plan.upstreamWire === "anthropic-messages") return "chat.completions";
143
- if (plan.upstreamWire === "cursor-connect") return "chat.completions";
144
- if (plan.upstreamWire === "devin-connect") return "chat.completions";
145
- if (plan.upstreamWire === "custom-gemini") return "chat.completions";
146
- if (plan.upstreamWire === "custom-openai-responses") return "chat.completions";
147
- if (plan.upstreamWire === "custom-anthropic-messages") return "chat.completions";
148
- if (plan.upstreamWire === "responses" && plan.authMethod.kind === "oauth" && plan.authMethod.ref === "chatgpt") {
149
- return "chat.completions";
150
- }
151
- return plan.upstreamWire;
152
- }
153
- var XAI_CHAT_COMPLETIONS_URL = "https://api.x.ai/v1/chat/completions";
154
- var ANTHROPIC_MESSAGES_URL = "https://api.anthropic.com/v1/messages";
155
- var CODEX_REQUIRED_HEADERS = [
156
- "chatgpt-account-id",
157
- "OpenAI-Beta",
158
- "originator",
159
- "version"
160
- ];
161
- var ANTIGRAVITY_REQUIRED_HEADERS = [
162
- "User-Agent"
163
- // antigravity-specific UA (matches getAntigravityUserAgent)
164
- ];
165
- function agentShouldUseServerProxy(agentConfig) {
166
- return shouldUseServerProxy(agentConfig);
167
- }
168
- function resolveCustomUpstreamWire(endpoint, nativeProtocol) {
169
- const responsesEndpoint = endpoint.includes("/responses");
170
- if (nativeProtocol === "openai-responses" && responsesEndpoint) return "responses";
171
- if (nativeProtocol === "gemini") return "custom-gemini";
172
- if (nativeProtocol === "openai-responses") return "custom-openai-responses";
173
- if (nativeProtocol === "anthropic-messages") return "custom-anthropic-messages";
174
- return responsesEndpoint ? "responses" : "chat.completions";
175
- }
176
- function hasOwnCustomProviderKey(agentConfig) {
177
- const endpoint = asOptionalTrimmedString(agentConfig.customProviderUrl);
178
- if (!endpoint) return false;
179
- if (isAntigravityCloudCodeBaseUrl(endpoint)) return false;
180
- return Boolean(asOptionalTrimmedString(agentConfig.apiKey));
181
- }
182
- function resolveAgentCallPlan(agentConfig, _env) {
183
- const apiKeyRef = asTrimmedLowercaseString(agentConfig.apiKeyRef);
184
- const provider = asTrimmedLowercaseString(
185
- agentConfig.provider ?? agentConfig.apiSource
186
- );
187
- const ownCustomKeyWins = hasOwnCustomProviderKey(agentConfig);
188
- const oauthApiKeyRef = ownCustomKeyWins ? "" : apiKeyRef;
189
- if (!ownCustomKeyWins && isAntigravityOAuthAgent(agentConfig)) {
190
- return {
191
- authMethod: { kind: "oauth", ref: "antigravity" },
192
- transport: "server-proxy",
193
- upstreamWire: "gemini-cca",
194
- endpoint: ANTIGRAVITY_CLOUD_CODE_BASE_URL,
195
- requiredHeaders: [...ANTIGRAVITY_REQUIRED_HEADERS],
196
- vendor: provider || "google-antigravity"
197
- };
198
- }
199
- if (oauthApiKeyRef === "chatgpt") {
200
- return {
201
- authMethod: { kind: "oauth", ref: "chatgpt" },
202
- transport: "server-proxy",
203
- upstreamWire: "responses",
204
- endpoint: CODEX_RESPONSES_URL,
205
- requiredHeaders: [...CODEX_REQUIRED_HEADERS],
206
- vendor: provider || "openai"
207
- };
208
- }
209
- if (oauthApiKeyRef === "claude") {
210
- return {
211
- authMethod: { kind: "oauth", ref: "claude" },
212
- transport: "server-proxy",
213
- upstreamWire: "anthropic-messages",
214
- endpoint: ANTHROPIC_MESSAGES_URL,
215
- requiredHeaders: ["anthropic-version", "anthropic-beta"],
216
- vendor: provider || "anthropic"
217
- };
218
- }
219
- if (oauthApiKeyRef === "xai") {
220
- return {
221
- authMethod: { kind: "oauth", ref: "xai" },
222
- transport: "server-proxy",
223
- upstreamWire: "chat.completions",
224
- endpoint: XAI_CHAT_COMPLETIONS_URL,
225
- requiredHeaders: [],
226
- vendor: provider || "xai"
227
- };
228
- }
229
- if (oauthApiKeyRef === "cursor") {
230
- return {
231
- authMethod: { kind: "oauth", ref: "cursor" },
232
- transport: "server-proxy",
233
- upstreamWire: "cursor-connect",
234
- endpoint: CURSOR_AGENT_URL,
235
- requiredHeaders: [
236
- "x-cursor-client-version",
237
- "x-cursor-client-type",
238
- "x-ghost-mode"
239
- ],
240
- vendor: provider || "cursor"
241
- };
242
- }
243
- if (oauthApiKeyRef === "devin" || !ownCustomKeyWins && provider === "devin") {
244
- return {
245
- authMethod: { kind: "oauth", ref: "devin" },
246
- transport: "server-proxy",
247
- upstreamWire: "devin-connect",
248
- endpoint: DEVIN_CONNECT_URL,
249
- requiredHeaders: ["connect-protocol-version"],
250
- vendor: provider || "devin"
251
- };
252
- }
253
- if (agentConfig.cliProvider || agentConfig.apiSource === "cli" || provider === "cli") {
254
- return {
255
- authMethod: { kind: "cli", provider: agentConfig.cliProvider || provider || "codex" },
256
- transport: "direct",
257
- upstreamWire: "cli",
258
- endpoint: "",
259
- requiredHeaders: [],
260
- vendor: provider || "cli"
261
- };
262
- }
263
- if (agentConfig.customProviderUrl || agentConfig.apiSource === "custom") {
264
- const transport2 = agentShouldUseServerProxy(agentConfig) ? "server-proxy" : "direct";
265
- const endpoint2 = asOptionalTrimmedString(agentConfig.customProviderUrl) ?? "";
266
- const upstreamWire2 = resolveCustomUpstreamWire(
267
- endpoint2,
268
- findModelConfig(provider, agentConfig.model ?? "")?.nativeProtocol
269
- );
270
- return {
271
- authMethod: { kind: "custom-key" },
272
- transport: transport2,
273
- upstreamWire: upstreamWire2,
274
- endpoint: endpoint2,
275
- requiredHeaders: [],
276
- vendor: provider || "custom"
277
- };
278
- }
279
- const transport = agentShouldUseServerProxy(agentConfig) ? "server-proxy" : "direct";
280
- const useResponses = isOpenAiResponsesModel({
281
- provider,
282
- model: agentConfig.model,
283
- endpointKey: agentConfig.endpointKey
284
- });
285
- const upstreamWire = useResponses ? "responses" : "chat.completions";
286
- const endpoint = upstreamWire === "responses" ? resolvePlatformResponsesEndpoint(provider, agentConfig.model) ?? "" : resolvePlatformChatCompletionsEndpoint(provider, agentConfig.model) ?? "";
287
- return {
288
- authMethod: { kind: "platform-key" },
289
- transport,
290
- upstreamWire,
291
- endpoint,
292
- requiredHeaders: [],
293
- vendor: provider || "openai"
294
- };
295
- }
296
-
297
123
  // packages/ai/agent/buildSystemPrompt.ts
298
124
  var CLARIFICATION_MODE_INSTRUCTIONS = `\u5728\u4F60\u8FD8\u4E0D\u4E86\u89E3\u7528\u6237\u610F\u56FE\u65F6\uFF0C\u901A\u8FC7\u63D0\u95EE\u6765\u6F84\u6E05\u9700\u6C42\uFF0C\u800C\u4E0D\u662F\u4ED3\u4FC3\u7ED9\u51FA\u7B54\u6848\u3002`;
299
125
  var isBrowser = typeof window !== "undefined";
@@ -1401,8 +1227,6 @@ export {
1401
1227
  selectResponsesConversationState,
1402
1228
  updateResponsesConversationState,
1403
1229
  isResponsesConversationStateRejection,
1404
- resolveClientWire,
1405
- resolveAgentCallPlan,
1406
1230
  generateRequestBody,
1407
1231
  CONFIRMATION_INPUT_KEYS,
1408
1232
  stripModelToolArgs,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generatePkcePair,
3
3
  startCallbackServer
4
- } from "./chunk-YNCJYU4X.js";
4
+ } from "./chunk-G3VYRPTV.js";
5
5
  import {
6
6
  asOptionalFiniteNumber
7
7
  } from "./chunk-WWC7I6TA.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  selectById
10
- } from "./chunk-ZVQHBIWV.js";
10
+ } from "./chunk-CDLP56BS.js";
11
11
 
12
12
  // packages/chat/dialog/actions/setDialogExtraReferencesAction.ts
13
13
  var setDialogExtraReferencesAction = async (extraReferences, thunkApi) => {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-TQA3UACU.js";
3
+ } from "./chunk-YR47Y7CN.js";
4
4
  import {
5
5
  format,
6
6
  prepareAndPersistMessage,
7
7
  uiAskChoiceFunc,
8
8
  uiAskChoiceFunctionSchema
9
- } from "./chunk-VKU6G2TC.js";
9
+ } from "./chunk-F5WASHQA.js";
10
10
  import {
11
11
  formatISO
12
12
  } from "./chunk-ZRAU6T47.js";
@@ -16,7 +16,7 @@ import {
16
16
  removeCachedEntity,
17
17
  upsertSSREntity,
18
18
  write
19
- } from "./chunk-ZVQHBIWV.js";
19
+ } from "./chunk-CDLP56BS.js";
20
20
  import {
21
21
  isDevelopment
22
22
  } from "./chunk-6Q7UTJKR.js";
@@ -25,7 +25,7 @@ import {
25
25
  } from "./chunk-PXYBUFDB.js";
26
26
  import {
27
27
  buildBuiltinObjectSkillReference
28
- } from "./chunk-JZX2XLKC.js";
28
+ } from "./chunk-YCRROBDY.js";
29
29
  import {
30
30
  extractCustomId
31
31
  } from "./chunk-M2EJHDJP.js";
@@ -4,11 +4,11 @@ import {
4
4
  import {
5
5
  patch,
6
6
  read
7
- } from "./chunk-ZVQHBIWV.js";
7
+ } from "./chunk-CDLP56BS.js";
8
8
  import {
9
9
  DEVICE_LOCAL_OWNER_ID,
10
10
  isDeviceLocalSpaceBody
11
- } from "./chunk-2SGAI64X.js";
11
+ } from "./chunk-43OFVLWJ.js";
12
12
  import {
13
13
  selectIdentityUserId
14
14
  } from "./chunk-PXYBUFDB.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRuntimeServerContext,
3
3
  scheduleDeleteReplication
4
- } from "./chunk-2SGAI64X.js";
4
+ } from "./chunk-43OFVLWJ.js";
5
5
  import {
6
6
  fetchFromClientDb
7
7
  } from "./chunk-6Q7UTJKR.js";
@@ -7,7 +7,7 @@ import {
7
7
  scheduleExistingRecordReplication,
8
8
  shouldReplaceLocalWithRemoteRecord,
9
9
  shouldReplicateLocalRecord
10
- } from "./chunk-2SGAI64X.js";
10
+ } from "./chunk-43OFVLWJ.js";
11
11
  import {
12
12
  fetchFromClientDb,
13
13
  fetchFromServer,
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-U4STABYN.js";
4
4
  import {
5
5
  getReadableCliDb
6
- } from "./chunk-P5QACQDK.js";
6
+ } from "./chunk-62TBKWTV.js";
7
7
  import {
8
8
  clearCliLocalRuntimePreparedAgentCache
9
- } from "./chunk-AVB7CTVJ.js";
9
+ } from "./chunk-SCQT4CRF.js";
10
10
  import {
11
11
  readCredentialAvailability
12
12
  } from "./chunk-6MXDOUMH.js";
@@ -19,17 +19,17 @@ import {
19
19
  resolveAgentRecordFromHybridStore,
20
20
  sanitizeAgentRecordForCliOutput,
21
21
  writeAgentRecord
22
- } from "./chunk-O4KVUI4W.js";
22
+ } from "./chunk-KABQ74UQ.js";
23
23
  import {
24
24
  resolveCliAgentKeyInput
25
25
  } from "./chunk-NBTY7YJF.js";
26
- import {
27
- toErrorMessage
28
- } from "./chunk-HNMXYYJR.js";
29
26
  import {
30
27
  parseUserIdFromAuthToken,
31
28
  resolveAuthToken
32
29
  } from "./chunk-A7GB5UGH.js";
30
+ import {
31
+ toErrorMessage
32
+ } from "./chunk-HNMXYYJR.js";
33
33
 
34
34
  // packages/cli/agentRecordCommands.ts
35
35
  async function runAgentReadCommand(args, deps = {}) {
@@ -244,7 +244,7 @@ async function runAgentCreateCommand(args, deps = {}) {
244
244
  let verifyResult;
245
245
  if (parsed.verify) {
246
246
  try {
247
- const { verifyCustomProvider } = await import("./agentProviderCommands-CUBOAVPB.js");
247
+ const { verifyCustomProvider } = await import("./agentProviderCommands-CXBHNONN.js");
248
248
  const rec = built.nextRecord;
249
249
  verifyResult = await verifyCustomProvider({
250
250
  providerUrl: rec.customProviderUrl,
@@ -2,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-O4KVUI4W.js";
5
+ } from "./chunk-KABQ74UQ.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-OXME3PEE.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-2QCLJA24.js";
3
+ } from "./chunk-2ZYCNT2O.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-VKU6G2TC.js";
6
+ } from "./chunk-F5WASHQA.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
9
  } from "./chunk-5EBLANFT.js";