nolo-cli 0.158.0-alpha.1 → 0.158.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/{_executeModel-6BMU3URY.js → _executeModel-AGVQAILR.js} +47 -47
  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-Q2XWGBC2.js → agentDeleteCommand-56DO7V2R.js} +66 -67
  7. package/{agentEmailCommands-XFBE2A3F.js → agentEmailCommands-BPUATKQ6.js} +69 -70
  8. package/{agentListCommands-OROMT4P3.js → agentListCommands-KS5VUGOW.js} +63 -40
  9. package/{agentMachineCommands-ULK5YKKJ.js → agentMachineCommands-HSJS7IQK.js} +32 -30
  10. package/{agentProviderCommands-MKG2OOEY.js → agentProviderCommands-CXBHNONN.js} +5 -5
  11. package/{agentPullCommand-FA43RBRU.js → agentPullCommand-GXXEDOSA.js} +4 -4
  12. package/{agentRecordCommands-3VHBLS6P.js → agentRecordCommands-IDGVLDMB.js} +63 -64
  13. package/{agentRunCommand-LCIMEAQY.js → agentRunCommand-LGMDPPPA.js} +65 -66
  14. package/{agentRunControl-2C5GM3BW.js → agentRunControl-QWFFIAQY.js} +9 -7
  15. package/{agentRuntimeLocal-NPJS2QDP.js → agentRuntimeLocal-QL4SHNJJ.js} +21 -19
  16. package/{agentSlice-VRAPG6CH.js → agentSlice-WPXWY6BV.js} +6 -6
  17. package/{appDeleteCommands-AZ3KS4HK.js → appDeleteCommands-FLCTFYZB.js} +31 -29
  18. package/{appDeployCommands-BTV22ICJ.js → appDeployCommands-UU4Z7DT3.js} +31 -29
  19. package/{appDeployStatusCommands-JSW3HPIW.js → appDeployStatusCommands-GKLZTHTX.js} +31 -29
  20. package/{appGetCommands-5KTTFIMV.js → appGetCommands-DPQ2MVJC.js} +31 -29
  21. package/{appListCommands-3BJPAE2U.js → appListCommands-J6QMEBNL.js} +31 -29
  22. package/{authCommand-NIV3DKPF.js → authCommand-OVBMDPIF.js} +20 -20
  23. package/{authCommands-AMNIAKEG.js → authCommands-QOCKVPX3.js} +5 -5
  24. package/{builtinSkillRegistry-H3AY27TR.js → builtinSkillRegistry-LJV7FHNI.js} +4 -4
  25. package/{chunk-O4ZERG3M.js → chunk-2HG7O7QF.js} +8 -8
  26. package/{chunk-EQGFFDNA.js → chunk-323QA7RW.js} +3 -3
  27. package/{chunk-2SOS7OSQ.js → chunk-3GCLICFW.js} +37 -4
  28. package/{chunk-US6MKPE7.js → chunk-3L5MSPWX.js} +1 -1
  29. package/{chunk-QLQ573SU.js → chunk-3M52COK5.js} +120 -0
  30. package/{chunk-2BKUVRC5.js → chunk-4VDSF5NQ.js} +9 -9
  31. package/{chunk-NKPAHRMA.js → chunk-4XHZ4QXL.js} +15 -15
  32. package/{chunk-ZEY4NJRE.js → chunk-5IKRTRRR.js} +5 -5
  33. package/{chunk-P5QACQDK.js → chunk-62TBKWTV.js} +1 -1
  34. package/{chunk-IYBIRCQV.js → chunk-6BNW7WC4.js} +29 -11
  35. package/{chunk-TRW43TSC.js → chunk-6EQD4AQL.js} +41 -1
  36. package/{chunk-YLMMECCH.js → chunk-6XIE5ZGI.js} +1 -1
  37. package/{chunk-JPJGMOIM.js → chunk-7JO3ZACS.js} +2 -2
  38. package/{chunk-L6EQV5OC.js → chunk-7NKZA46B.js} +3 -3
  39. package/{chunk-WXFZ4P6O.js → chunk-AO2T6MWY.js} +12 -12
  40. package/{chunk-2MTE2PEH.js → chunk-ASSNAASW.js} +5 -739
  41. package/{chunk-J2ATF74A.js → chunk-BAWAKW7X.js} +1 -1
  42. package/{chunk-7RF4O6AT.js → chunk-BL4HFN6L.js} +1 -1
  43. package/{chunk-ICRRXBRN.js → chunk-BWIR5QBI.js} +6 -3
  44. package/{chunk-ZVQHBIWV.js → chunk-CDLP56BS.js} +7 -7
  45. package/{chunk-6TF64IF2.js → chunk-DI7ZFGDQ.js} +16 -2
  46. package/{chunk-C3OK72G3.js → chunk-DJ2BOPJY.js} +1 -1
  47. package/{chunk-OON4OBWI.js → chunk-DLV3H464.js} +7 -7
  48. package/{chunk-LV4LV2B4.js → chunk-DOBOKBKS.js} +7 -5
  49. package/{chunk-IRTOYSA2.js → chunk-ESMZW5PE.js} +1 -1
  50. package/{chunk-HB4XPBC7.js → chunk-EWO77ZGF.js} +9 -11
  51. package/{chunk-FY4SDK2E.js → chunk-FDLDMJTM.js} +1 -1
  52. package/{chunk-IE5PXKVU.js → chunk-G3VYRPTV.js} +5 -5
  53. package/{chunk-AJ4V34SG.js → chunk-HCZOSYTL.js} +19 -19
  54. package/{chunk-C6FY7HWI.js → chunk-HEC32F3G.js} +46 -1
  55. package/{chunk-WTFRBJT5.js → chunk-HSY7F4PP.js} +32 -34
  56. package/{chunk-UFYBYB26.js → chunk-I7S63QUU.js} +1 -1
  57. package/{chunk-CON6SI7N.js → chunk-IF7V3CBU.js} +1 -1
  58. package/{chunk-4RJJDA57.js → chunk-IW64YHXL.js} +154 -30
  59. package/chunk-JLR5NWP2.js +548 -0
  60. package/{chunk-K43ZF2C3.js → chunk-JPPQ3GUO.js} +1 -1
  61. package/{chunk-M2P3OGXZ.js → chunk-JWEXJ573.js} +2 -2
  62. package/{chunk-3C2QLERX.js → chunk-KMDDG73K.js} +1 -1
  63. package/{chunk-KKKHAF3P.js → chunk-KMKVQNFH.js} +3 -3
  64. package/{chunk-ZBXIKCZ4.js → chunk-KQT46A27.js} +368 -91
  65. package/{chunk-5MM7NNO6.js → chunk-KSTEXKL6.js} +78 -39
  66. package/{chunk-MM3662RS.js → chunk-LPO6AMQU.js} +780 -64
  67. package/{chunk-YTXQ2U2X.js → chunk-M3IBEHBT.js} +144 -44
  68. package/{chunk-SPKLALBU.js → chunk-MAYW6V3E.js} +1 -1
  69. package/{chunk-IPAW7XLD.js → chunk-MFVOJ6KF.js} +2 -2
  70. package/{chunk-UCLSOLX4.js → chunk-MLEANT7D.js} +13 -13
  71. package/{chunk-NDZOXXIM.js → chunk-NHEWV5FD.js} +1 -1
  72. package/{chunk-4UOEOHY3.js → chunk-OE4FM66I.js} +5 -5
  73. package/chunk-OHRQXEON.js +2685 -0
  74. package/{chunk-SUKSWFLP.js → chunk-PIG2IUVZ.js} +1 -1
  75. package/{chunk-6MXDOUMH.js → chunk-R4BMKAR5.js} +70 -8
  76. package/{chunk-S72LMV7T.js → chunk-RCZMREV2.js} +4793 -3390
  77. package/chunk-SAZSXMTR.js +188 -0
  78. package/{chunk-DC3SZCRR.js → chunk-SH3XD4E2.js} +2 -2
  79. package/{chunk-JGRPBIZZ.js → chunk-SQX235S2.js} +1 -1
  80. package/{chunk-2AB2HA4M.js → chunk-TDX2L4W2.js} +8 -2
  81. package/{chunk-G476FQ7Q.js → chunk-TSTLLGAC.js} +4 -4
  82. package/{chunk-3TBHZPNG.js → chunk-TTVMMYVH.js} +295 -55
  83. package/{chunk-I2RMFLLH.js → chunk-V7PCFWX3.js} +1 -1
  84. package/{chunk-QPY264HO.js → chunk-W7FGZRLK.js} +1 -1
  85. package/{chunk-BYQOCH75.js → chunk-XYW6JSRD.js} +2 -2
  86. package/{chunk-KLA62VVE.js → chunk-Y45LLH6C.js} +42 -11
  87. package/{chunk-CDWHHLK5.js → chunk-Y7F4Q7YP.js} +4 -4
  88. package/{chunk-JZX2XLKC.js → chunk-YCRROBDY.js} +1 -1
  89. package/{chunk-GAVUTXM5.js → chunk-YFEVODB4.js} +18 -194
  90. package/{chunk-G2WP7VPD.js → chunk-YKTAUOS7.js} +18 -6
  91. package/{chunk-YANF2RR4.js → chunk-ZPKUJROL.js} +1 -1
  92. package/{commandRegistry-D6JTVYKG.js → commandRegistry-HHTMBO55.js} +85 -85
  93. package/{contentThunks-DYQO4CTI.js → contentThunks-ZSKJTGS7.js} +17 -18
  94. package/{cooldownCommands-JFKTYS2D.js → cooldownCommands-NS63RGBO.js} +2 -2
  95. package/{createAgentAutomationAction-LW26KIBP.js → createAgentAutomationAction-KYHXEVZF.js} +17 -18
  96. package/{createDialogAction-VLLBRD52.js → createDialogAction-JKB3V4YP.js} +21 -22
  97. package/{createPageAction-PDACOLI6.js → createPageAction-CRVW6Z65.js} +20 -22
  98. package/{dbSlice-DC2J53RC.js → dbSlice-6PVPY44C.js} +5 -5
  99. package/{deleteFile-KYWEMNFX.js → deleteFile-YM6NDPAR.js} +3 -3
  100. package/{dialogCommands-F3Y4KCPZ.js → dialogCommands-2NVLHDZP.js} +32 -30
  101. package/{dialogSlice-ERMZYMS6.js → dialogSlice-SOEMTPH4.js} +16 -17
  102. package/{dist-NJC2W7I4.js → dist-Q2JSMAKA.js} +7 -361
  103. package/{docCreateCommands-YMWZLW64.js → docCreateCommands-BL4YBQOD.js} +32 -30
  104. package/{docDeleteCommands-6KJ3ESK4.js → docDeleteCommands-NTRYV5OH.js} +33 -31
  105. package/{docReadCommands-YQGFVLWI.js → docReadCommands-MJGISD7D.js} +32 -30
  106. package/{docStore-HXKI6W5D.js → docStore-YXIN3UVQ.js} +6 -6
  107. package/{docUpdateCommands-QLSGXUEX.js → docUpdateCommands-C2AIMWBR.js} +32 -30
  108. package/{getPricing-TX35D7PI.js → getPricing-XQ3N3RBP.js} +2 -2
  109. package/{handleSendMessageAction-2XCOZPXY.js → handleSendMessageAction-JXA7PBY2.js} +35 -32
  110. package/index.js +7 -7
  111. package/{localRuntimeAdapter-VOFUPXNF.js → localRuntimeAdapter-QAXXJCDM.js} +61 -60
  112. package/{localRuntimeAuthority-JDAD7CB6.js → localRuntimeAuthority-BPN5OAQG.js} +2 -2
  113. package/{localRuntimeDb-CVC62PM5.js → localRuntimeDb-QIVAXMUL.js} +1 -1
  114. package/{machineCommands-IN5O7CIO.js → machineCommands-TKOOPU7X.js} +66 -67
  115. package/{machineWsRunDispatch-TH3GMSR3.js → machineWsRunDispatch-AQ3KTB7U.js} +61 -62
  116. package/{memberThunks-2DWKLE6W.js → memberThunks-AZINUM4S.js} +8 -8
  117. package/package.json +6 -2
  118. package/{providerPresetApply-GSJI4JBJ.js → providerPresetApply-PKUOHQJT.js} +5 -5
  119. package/{providerRegistry-TSSTPGWF.js → providerRegistry-HNQLIFN2.js} +5 -5
  120. package/{read-L7QEJETH.js → read-7JPIWRBQ.js} +3 -3
  121. package/{readDocTool-QELXV2GW.js → readDocTool-AAQTB2Y3.js} +1 -1
  122. package/{readlineWorkspace-EIEQUTEZ.js → readlineWorkspace-7G2FBC53.js} +96 -134
  123. package/{removeDialogAgentAction-376XSUP2.js → removeDialogAgentAction-RMVRILLK.js} +6 -6
  124. package/{runAgentClientLoop-3KHKKBZI.js → runAgentClientLoop-NKCVEOOU.js} +45 -45
  125. package/{runtimeDoctorCommands-56NWKNON.js → runtimeDoctorCommands-MMCP4B4U.js} +12 -12
  126. package/{setDialogExtraReferencesAction-QBDSH63D.js → setDialogExtraReferencesAction-L3V7JTMG.js} +6 -6
  127. package/{setPrimaryDialogAgentAction-537QFGW3.js → setPrimaryDialogAgentAction-X52JQGTJ.js} +6 -6
  128. package/{settingThunks-4Z43ZSAT.js → settingThunks-N6XFWPOU.js} +5 -5
  129. package/{spaceCommands-T5Z4U7HP.js → spaceCommands-44R7DU34.js} +29 -27
  130. package/{streamAgentChatTurn-DMXXSEVX.js → streamAgentChatTurn-V7GZPMO4.js} +143 -84
  131. package/{switchDialogAgentAction-CSO6AKRL.js → switchDialogAgentAction-ZJ5CGU7J.js} +5 -5
  132. package/{tools-RMT7NAMC.js → tools-SNXGTJMT.js} +35 -37
  133. package/{tuiSummaryLlmCaller-KLK6K3Q3.js → tuiSummaryLlmCaller-FQOEF4IE.js} +7 -7
  134. package/{updateCommands-LXZLG44Y.js → updateCommands-FJHGWD3Q.js} +5 -3
  135. package/{updateDialogTitleAction-Z4WNUH6Y.js → updateDialogTitleAction-QKWRDIK3.js} +17 -18
  136. package/chunk-3MZAGMYY.js +0 -239
  137. package/chunk-IA7TRNNR.js +0 -11
  138. package/chunk-UKZX3NHN.js +0 -48
  139. package/chunk-VDEVDGEM.js +0 -7018
  140. package/clipboardy-GCO3GT3I.js +0 -11793
  141. package/{agentGrantCommands-HOJ3JBBQ.js → agentGrantCommands-5DPHYEKP.js} +3 -3
  142. package/{chromeOpsCommands-3Z34RKSE.js → chromeOpsCommands-GZVVK7HU.js} +4 -4
  143. package/{chunk-2SGAI64X.js → chunk-43OFVLWJ.js} +4 -4
  144. package/{chunk-XETG4RIX.js → chunk-AETZ7AD6.js} +4 -4
  145. package/{chunk-2IXDJNZI.js → chunk-GAGGEA7D.js} +3 -3
  146. package/{memoryCommands-CUNBFRVS.js → memoryCommands-ZS3VQJAL.js} +3 -3
  147. package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-3GLX4QQY.js} +3 -3
  148. package/{tableCommands-LBH3QPPO.js → tableCommands-IVC5S7Y3.js} +11 -11
@@ -0,0 +1,188 @@
1
+ import {
2
+ shouldUseServerProxy
3
+ } from "./chunk-HEC32F3G.js";
4
+ import {
5
+ ANTIGRAVITY_CLOUD_CODE_BASE_URL,
6
+ isAntigravityCloudCodeBaseUrl,
7
+ isAntigravityOAuthAgent
8
+ } from "./chunk-SQX235S2.js";
9
+ import {
10
+ isOpenAiResponsesModel,
11
+ resolvePlatformChatCompletionsEndpoint,
12
+ resolvePlatformResponsesEndpoint
13
+ } from "./chunk-V7PCFWX3.js";
14
+ import {
15
+ findModelConfig
16
+ } from "./chunk-6EQD4AQL.js";
17
+ import {
18
+ asOptionalTrimmedString
19
+ } from "./chunk-G3SUCT4W.js";
20
+ import {
21
+ asTrimmedLowercaseString
22
+ } from "./chunk-QSJ3HFEF.js";
23
+
24
+ // packages/agent-runtime/agentCallPlan.ts
25
+ var CODEX_RESPONSES_URL = "https://chatgpt.com/backend-api/codex/responses";
26
+ var CURSOR_AGENT_URL = "https://api2.cursor.sh/agent.v1.AgentService/Run";
27
+ var DEVIN_CONNECT_URL = "https://server.codeium.com/exa.api_server_pb.ApiServerService/GetChatMessage";
28
+ function resolveClientWire(plan) {
29
+ if (plan.upstreamWire === "gemini-cca") return "chat.completions";
30
+ if (plan.upstreamWire === "anthropic-messages") return "chat.completions";
31
+ if (plan.upstreamWire === "cursor-connect") return "chat.completions";
32
+ if (plan.upstreamWire === "devin-connect") return "chat.completions";
33
+ if (plan.upstreamWire === "custom-gemini") return "chat.completions";
34
+ if (plan.upstreamWire === "custom-openai-responses") return "chat.completions";
35
+ if (plan.upstreamWire === "custom-anthropic-messages") return "chat.completions";
36
+ if (plan.upstreamWire === "responses" && plan.authMethod.kind === "oauth" && plan.authMethod.ref === "chatgpt") {
37
+ return "chat.completions";
38
+ }
39
+ return plan.upstreamWire;
40
+ }
41
+ var XAI_CHAT_COMPLETIONS_URL = "https://api.x.ai/v1/chat/completions";
42
+ var ANTHROPIC_MESSAGES_URL = "https://api.anthropic.com/v1/messages";
43
+ var CODEX_REQUIRED_HEADERS = [
44
+ "chatgpt-account-id",
45
+ "OpenAI-Beta",
46
+ "originator",
47
+ "version"
48
+ ];
49
+ var ANTIGRAVITY_REQUIRED_HEADERS = [
50
+ "User-Agent"
51
+ // antigravity-specific UA (matches getAntigravityUserAgent)
52
+ ];
53
+ function agentShouldUseServerProxy(agentConfig) {
54
+ return shouldUseServerProxy(agentConfig);
55
+ }
56
+ function resolveCustomUpstreamWire(endpoint, nativeProtocol) {
57
+ const responsesEndpoint = endpoint.includes("/responses");
58
+ if (nativeProtocol === "openai-responses" && responsesEndpoint) return "responses";
59
+ if (nativeProtocol === "gemini") return "custom-gemini";
60
+ if (nativeProtocol === "openai-responses") return "custom-openai-responses";
61
+ if (nativeProtocol === "anthropic-messages") return "custom-anthropic-messages";
62
+ return responsesEndpoint ? "responses" : "chat.completions";
63
+ }
64
+ function hasOwnCustomProviderKey(agentConfig) {
65
+ const endpoint = asOptionalTrimmedString(agentConfig.customProviderUrl);
66
+ if (!endpoint) return false;
67
+ if (isAntigravityCloudCodeBaseUrl(endpoint)) return false;
68
+ return Boolean(asOptionalTrimmedString(agentConfig.apiKey));
69
+ }
70
+ function resolveAgentCallPlan(agentConfig, _env) {
71
+ const apiKeyRef = asTrimmedLowercaseString(agentConfig.apiKeyRef);
72
+ const provider = asTrimmedLowercaseString(
73
+ agentConfig.provider ?? agentConfig.apiSource
74
+ );
75
+ const ownCustomKeyWins = hasOwnCustomProviderKey(agentConfig);
76
+ const oauthApiKeyRef = ownCustomKeyWins ? "" : apiKeyRef;
77
+ if (!ownCustomKeyWins && isAntigravityOAuthAgent(agentConfig)) {
78
+ return {
79
+ authMethod: { kind: "oauth", ref: "antigravity" },
80
+ transport: "server-proxy",
81
+ upstreamWire: "gemini-cca",
82
+ endpoint: ANTIGRAVITY_CLOUD_CODE_BASE_URL,
83
+ requiredHeaders: [...ANTIGRAVITY_REQUIRED_HEADERS],
84
+ vendor: provider || "google-antigravity"
85
+ };
86
+ }
87
+ if (oauthApiKeyRef === "chatgpt") {
88
+ return {
89
+ authMethod: { kind: "oauth", ref: "chatgpt" },
90
+ transport: "server-proxy",
91
+ upstreamWire: "responses",
92
+ endpoint: CODEX_RESPONSES_URL,
93
+ requiredHeaders: [...CODEX_REQUIRED_HEADERS],
94
+ vendor: provider || "openai"
95
+ };
96
+ }
97
+ if (oauthApiKeyRef === "claude") {
98
+ return {
99
+ authMethod: { kind: "oauth", ref: "claude" },
100
+ transport: "server-proxy",
101
+ upstreamWire: "anthropic-messages",
102
+ endpoint: ANTHROPIC_MESSAGES_URL,
103
+ requiredHeaders: ["anthropic-version", "anthropic-beta"],
104
+ vendor: provider || "anthropic"
105
+ };
106
+ }
107
+ if (oauthApiKeyRef === "xai") {
108
+ return {
109
+ authMethod: { kind: "oauth", ref: "xai" },
110
+ transport: "server-proxy",
111
+ upstreamWire: "chat.completions",
112
+ endpoint: XAI_CHAT_COMPLETIONS_URL,
113
+ requiredHeaders: [],
114
+ vendor: provider || "xai"
115
+ };
116
+ }
117
+ if (oauthApiKeyRef === "cursor") {
118
+ return {
119
+ authMethod: { kind: "oauth", ref: "cursor" },
120
+ transport: "server-proxy",
121
+ upstreamWire: "cursor-connect",
122
+ endpoint: CURSOR_AGENT_URL,
123
+ requiredHeaders: [
124
+ "x-cursor-client-version",
125
+ "x-cursor-client-type",
126
+ "x-ghost-mode"
127
+ ],
128
+ vendor: provider || "cursor"
129
+ };
130
+ }
131
+ if (oauthApiKeyRef === "devin" || !ownCustomKeyWins && provider === "devin") {
132
+ return {
133
+ authMethod: { kind: "oauth", ref: "devin" },
134
+ transport: "server-proxy",
135
+ upstreamWire: "devin-connect",
136
+ endpoint: DEVIN_CONNECT_URL,
137
+ requiredHeaders: ["connect-protocol-version"],
138
+ vendor: provider || "devin"
139
+ };
140
+ }
141
+ if (agentConfig.cliProvider || agentConfig.apiSource === "cli" || provider === "cli") {
142
+ return {
143
+ authMethod: { kind: "cli", provider: agentConfig.cliProvider || provider || "codex" },
144
+ transport: "direct",
145
+ upstreamWire: "cli",
146
+ endpoint: "",
147
+ requiredHeaders: [],
148
+ vendor: provider || "cli"
149
+ };
150
+ }
151
+ if (agentConfig.customProviderUrl || agentConfig.apiSource === "custom") {
152
+ const transport2 = agentShouldUseServerProxy(agentConfig) ? "server-proxy" : "direct";
153
+ const endpoint2 = asOptionalTrimmedString(agentConfig.customProviderUrl) ?? "";
154
+ const upstreamWire2 = resolveCustomUpstreamWire(
155
+ endpoint2,
156
+ findModelConfig(provider, agentConfig.model ?? "")?.nativeProtocol
157
+ );
158
+ return {
159
+ authMethod: { kind: "custom-key" },
160
+ transport: transport2,
161
+ upstreamWire: upstreamWire2,
162
+ endpoint: endpoint2,
163
+ requiredHeaders: [],
164
+ vendor: provider || "custom"
165
+ };
166
+ }
167
+ const transport = agentShouldUseServerProxy(agentConfig) ? "server-proxy" : "direct";
168
+ const useResponses = isOpenAiResponsesModel({
169
+ provider,
170
+ model: agentConfig.model,
171
+ endpointKey: agentConfig.endpointKey
172
+ });
173
+ const upstreamWire = useResponses ? "responses" : "chat.completions";
174
+ const endpoint = upstreamWire === "responses" ? resolvePlatformResponsesEndpoint(provider, agentConfig.model) ?? "" : resolvePlatformChatCompletionsEndpoint(provider, agentConfig.model) ?? "";
175
+ return {
176
+ authMethod: { kind: "platform-key" },
177
+ transport,
178
+ upstreamWire,
179
+ endpoint,
180
+ requiredHeaders: [],
181
+ vendor: provider || "openai"
182
+ };
183
+ }
184
+
185
+ export {
186
+ resolveClientWire,
187
+ resolveAgentCallPlan
188
+ };
@@ -6,11 +6,11 @@ import {
6
6
  buildBuiltinObjectSkillDbKey,
7
7
  buildBuiltinObjectSkillPageContent,
8
8
  buildCodeWorkDiscipline
9
- } from "./chunk-JZX2XLKC.js";
9
+ } from "./chunk-YCRROBDY.js";
10
10
  import {
11
11
  buildSkillDocMarkdown,
12
12
  resolvePageSkillMetadata
13
- } from "./chunk-XETG4RIX.js";
13
+ } from "./chunk-AETZ7AD6.js";
14
14
  import {
15
15
  nolotusId
16
16
  } from "./chunk-Y6ORVLSS.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-WWC7I6TA.js";
4
4
  import {
5
5
  trimTrailingSlash
6
- } from "./chunk-SUKSWFLP.js";
6
+ } from "./chunk-PIG2IUVZ.js";
7
7
  import {
8
8
  toErrorMessage
9
9
  } from "./chunk-HNMXYYJR.js";
@@ -180,8 +180,8 @@ var STRINGS = {
180
180
  zh: "\u672C\u6B21\u56DE\u590D\u51FA\u9519\u3002\u5DF2\u6392\u961F\u7684\u6D88\u606F\u4ECD\u4FDD\u7559\uFF0C\u6309 Enter \u53EF\u91CD\u65B0\u53D1\u9001\u3002"
181
181
  },
182
182
  quotaExhaustedHint: {
183
- en: "This agent seems to have hit a quota/rate limit (HTTP 429).\nUse /agent to switch to another agent and keep going \u2014 the dialog context is preserved.",
184
- zh: "\u5F53\u524D agent \u4F3C\u4E4E\u989D\u5EA6/\u901F\u7387\u53D7\u9650\uFF08429\uFF09\u3002\n\u53EF\u4EE5\u7528 /agent \u5207\u6362\u5230\u5176\u4ED6 agent \u540E\u7EE7\u7EED\uFF0C\u540C\u4E00\u5BF9\u8BDD\u4F1A\u4FDD\u7559\u4E0A\u4E0B\u6587\u3002"
183
+ en: "This agent is temporarily unavailable (HTTP 429).\nUse /agent to switch to another agent and keep going \u2014 the dialog context is preserved.",
184
+ zh: "\u5F53\u524D agent \u6682\u65F6\u4E0D\u53EF\u7528\uFF08HTTP 429\uFF09\u3002\n\u53EF\u4EE5\u7528 /agent \u5207\u6362\u5230\u5176\u4ED6 agent \u540E\u7EE7\u7EED\uFF0C\u540C\u4E00\u5BF9\u8BDD\u4F1A\u4FDD\u7559\u4E0A\u4E0B\u6587\u3002"
185
185
  },
186
186
  balanceExhaustedHint: {
187
187
  en: 'Your message is saved in this dialog \u2014 top up, then send again or say "continue" to pick up where you left off.',
@@ -406,6 +406,12 @@ var STRINGS = {
406
406
  en: "[nolo] Upstream rate limit ({0}): {1}",
407
407
  zh: "[nolo] \u4E0A\u6E38\u9650\u6D41\uFF08{0}\uFF09\uFF1A{1}"
408
408
  },
409
+ // 上游明确表示「服务容量饱和」(如 Codex 的 "is at capacity")。这与账号额度
410
+ // 无关,用「额度」措辞会让人误以为是自己配额用完了。单独一档。
411
+ localRunRateLimitCapacity: {
412
+ en: "[nolo] Upstream service at capacity ({0}): {1}",
413
+ zh: "[nolo] \u4E0A\u6E38\u670D\u52A1\u5BB9\u91CF\u9971\u548C\uFF08{0}\uFF09\uFF1A{1}"
414
+ },
409
415
  // 第 2 行复位提示:沿用 extractRateLimitResetHint 抓到的上游原文(不换算),
410
416
  // 只作括号补充;没抓到就没有这段括号。
411
417
  localRunRateLimitResetNote: {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-VDEVDGEM.js";
3
+ } from "./chunk-OHRQXEON.js";
4
4
  import {
5
5
  format,
6
6
  prepareAndPersistMessage,
7
7
  uiAskChoiceFunc,
8
8
  uiAskChoiceFunctionSchema
9
- } from "./chunk-WTFRBJT5.js";
9
+ } from "./chunk-HSY7F4PP.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";