nolo-cli 0.159.0-alpha.3 → 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.
- package/{_executeModel-SHA5BWRT.js → _executeModel-3HHZYHHB.js} +38 -37
- package/accountResolver-55EDKEIK.js +1 -1
- package/action-GPPJC5TI.js +1 -1
- package/{addContentAction-BI6RDRTQ.js → addContentAction-XJQEJ4XW.js} +6 -6
- package/{addDialogAgentAction-4RJYUSIK.js → addDialogAgentAction-5WZX5CAY.js} +5 -5
- package/{agentDeleteCommand-VU3BA264.js → agentDeleteCommand-VXWLHIUC.js} +55 -55
- package/{agentEmailCommands-WUANEGTM.js → agentEmailCommands-2TQN6UIZ.js} +55 -55
- package/{agentListCommands-3YNO6UP4.js → agentListCommands-44UDONIY.js} +30 -30
- package/{agentMachineCommands-ONGZXXQW.js → agentMachineCommands-KH7OSRWP.js} +25 -23
- package/{agentPullCommand-FA43RBRU.js → agentPullCommand-GXXEDOSA.js} +4 -4
- package/{agentRecordCommands-DXXA2RET.js → agentRecordCommands-6BNH5KK2.js} +49 -49
- package/{agentRunCommand-WY77TJ72.js → agentRunCommand-7MFXU4GK.js} +52 -52
- package/{agentRunControl-PPYWJRIJ.js → agentRunControl-USFIAK7X.js} +4 -4
- package/{agentRuntimeLocal-NHC5DQPJ.js → agentRuntimeLocal-BAQON6BB.js} +13 -11
- package/{agentSlice-MIOEV36T.js → agentSlice-YT3VCCEW.js} +6 -6
- package/{appDeleteCommands-VQYCXZRF.js → appDeleteCommands-R73W7UJM.js} +22 -20
- package/{appDeployCommands-OKSJDVEY.js → appDeployCommands-F65F6N63.js} +22 -20
- package/{appDeployStatusCommands-UFGNZS6G.js → appDeployStatusCommands-CTRCXJJX.js} +22 -20
- package/{appGetCommands-3HNO5WLF.js → appGetCommands-VTQERXLK.js} +22 -20
- package/{appListCommands-H33BIZHJ.js → appListCommands-MY3WFDYA.js} +22 -20
- package/{authCommand-MSINEFHH.js → authCommand-3Z52KJID.js} +14 -14
- package/{authCommands-AMNIAKEG.js → authCommands-QOCKVPX3.js} +5 -5
- package/{builtinSkillRegistry-H3AY27TR.js → builtinSkillRegistry-LJV7FHNI.js} +4 -4
- package/{chunk-GCLZBOB6.js → chunk-2ZYCNT2O.js} +29 -29
- package/{chunk-XBLZ5IFE.js → chunk-3GTVM7NJ.js} +17 -17
- package/{chunk-US6MKPE7.js → chunk-3L5MSPWX.js} +1 -1
- package/{chunk-QYAYO5JA.js → chunk-4L4K6YR7.js} +1 -1
- package/{chunk-P5QACQDK.js → chunk-62TBKWTV.js} +1 -1
- package/{chunk-YLMMECCH.js → chunk-6XIE5ZGI.js} +1 -1
- package/{chunk-NT3LMOSE.js → chunk-B5JIGIKM.js} +27 -22
- package/{chunk-J2ATF74A.js → chunk-BAWAKW7X.js} +1 -1
- package/{chunk-ZVQHBIWV.js → chunk-CDLP56BS.js} +7 -7
- package/{chunk-ZIGIN5IX.js → chunk-DD2EOI6S.js} +1 -1
- package/{chunk-OON4OBWI.js → chunk-DLV3H464.js} +7 -7
- package/{chunk-DWBY333O.js → chunk-DT7EWFTY.js} +5 -5
- package/{chunk-IRTOYSA2.js → chunk-ESMZW5PE.js} +1 -1
- package/{chunk-ZJG7YU3I.js → chunk-F3SOW2EU.js} +46 -1
- package/{chunk-FZYTJOAQ.js → chunk-F5WASHQA.js} +27 -29
- package/{chunk-BFI6JGF6.js → chunk-FB5WLEOD.js} +11 -11
- package/{chunk-FBSDWUOJ.js → chunk-FCUKCVKN.js} +4 -4
- package/{chunk-FY4SDK2E.js → chunk-FDLDMJTM.js} +1 -1
- package/{chunk-PKC7D6SX.js → chunk-FFHV45HO.js} +3 -3
- package/{chunk-TMYAT2MD.js → chunk-FZYKQFBQ.js} +3 -3
- package/{chunk-MJKKEGF5.js → chunk-HBW2XA3L.js} +12 -12
- package/{chunk-CSCSMGQI.js → chunk-HW7EBEC5.js} +15 -191
- package/{chunk-5MPS5OOY.js → chunk-I7S63QUU.js} +1 -1
- package/{chunk-CON6SI7N.js → chunk-IF7V3CBU.js} +1 -1
- package/{chunk-GSKVOMBU.js → chunk-JDKSYQQN.js} +4 -4
- package/{chunk-M2P3OGXZ.js → chunk-JWEXJ573.js} +2 -2
- package/{chunk-SPKLALBU.js → chunk-MAYW6V3E.js} +1 -1
- package/{chunk-NDZOXXIM.js → chunk-NHEWV5FD.js} +1 -1
- package/{chunk-2NROMJBM.js → chunk-NWKPVIHL.js} +7 -7
- package/{chunk-NUE735UT.js → chunk-O2IWR23M.js} +1 -1
- package/{chunk-NNE5NIW2.js → chunk-OLVOR45M.js} +2 -2
- package/{chunk-CVSKYIXX.js → chunk-QXZH5UDF.js} +2 -2
- package/{chunk-QO436IJ5.js → chunk-QZIOZDM6.js} +9 -9
- package/{chunk-V4AK4IVZ.js → chunk-R2KWTENX.js} +3 -3
- package/{chunk-C3WXTFRP.js → chunk-RIHQGFFA.js} +1 -1
- package/{chunk-ZAB4R7LU.js → chunk-SCQT4CRF.js} +40 -42
- package/{chunk-DC3SZCRR.js → chunk-SH3XD4E2.js} +2 -2
- package/{chunk-RJBHRIEL.js → chunk-TK2AX7M6.js} +43 -45
- package/chunk-TT644UJD.js +188 -0
- package/{chunk-QOYJE6NX.js → chunk-U34KT53V.js} +28 -10
- package/{chunk-DFWLD7WU.js → chunk-ULQAD7ZY.js} +18 -6
- package/{chunk-RE5I35J7.js → chunk-VXS4YYJ2.js} +6 -6
- package/{chunk-JZX2XLKC.js → chunk-YCRROBDY.js} +1 -1
- package/{chunk-E46SJRWA.js → chunk-YNOXGQ7X.js} +13 -13
- package/{chunk-6MH6PWVJ.js → chunk-YR47Y7CN.js} +6 -6
- package/{chunk-C47WM5SD.js → chunk-ZAV4YVEA.js} +1 -1
- package/{commandRegistry-DAM7RV6E.js → commandRegistry-3JCFSTBQ.js} +83 -83
- package/{contentThunks-WLKR5KQ6.js → contentThunks-QBL5NK2W.js} +14 -15
- package/{createAgentAutomationAction-AI2HZHLE.js → createAgentAutomationAction-5UWBLR2N.js} +14 -15
- package/{createDialogAction-AU4IWDR3.js → createDialogAction-NJ2LE7KC.js} +18 -19
- package/{createPageAction-CAXS6ZUJ.js → createPageAction-7T3RINS2.js} +16 -17
- package/{dbSlice-DC2J53RC.js → dbSlice-6PVPY44C.js} +5 -5
- package/{deleteFile-KYWEMNFX.js → deleteFile-YM6NDPAR.js} +3 -3
- package/{dialogCommands-2QMR63AY.js → dialogCommands-FDQPV6GO.js} +27 -25
- package/{dialogSlice-QEP5EUON.js → dialogSlice-GQMTD4HR.js} +13 -14
- package/{docCreateCommands-EG3KFJGO.js → docCreateCommands-Z5KKWS2C.js} +24 -22
- package/{docDeleteCommands-MAM2BLCP.js → docDeleteCommands-YTGMEQ4I.js} +25 -23
- package/{docReadCommands-XVX2VLVM.js → docReadCommands-SK2CLD2S.js} +24 -22
- package/{docStore-WTXUKAQB.js → docStore-PM5PYKPZ.js} +6 -6
- package/{docUpdateCommands-JURMHPS5.js → docUpdateCommands-SI4PL2L3.js} +24 -22
- package/{handleSendMessageAction-7MAFLFOD.js → handleSendMessageAction-EQ3U6K5N.js} +31 -28
- package/index.js +7 -7
- package/{localRuntimeAdapter-DSO3Y5ZS.js → localRuntimeAdapter-TVIGJ3PU.js} +46 -46
- package/{localRuntimeAuthority-JDAD7CB6.js → localRuntimeAuthority-BPN5OAQG.js} +2 -2
- package/{localRuntimeDb-CVC62PM5.js → localRuntimeDb-QIVAXMUL.js} +1 -1
- package/{machineCommands-DWILXGTZ.js → machineCommands-EYP73LBU.js} +51 -51
- package/{machineWsRunDispatch-NJJZ34JJ.js → machineWsRunDispatch-6QWYWIHP.js} +47 -47
- package/{memberThunks-2DWKLE6W.js → memberThunks-AZINUM4S.js} +8 -8
- package/package.json +1 -1
- package/{read-L7QEJETH.js → read-7JPIWRBQ.js} +3 -3
- package/{readDocTool-QELXV2GW.js → readDocTool-AAQTB2Y3.js} +1 -1
- package/{readlineWorkspace-STK57SSQ.js → readlineWorkspace-QBN246OU.js} +80 -80
- package/{removeDialogAgentAction-376XSUP2.js → removeDialogAgentAction-RMVRILLK.js} +6 -6
- package/{runAgentClientLoop-6OD2CTYG.js → runAgentClientLoop-EXIQDX7G.js} +36 -35
- package/{runtimeDoctorCommands-HEN5IPIH.js → runtimeDoctorCommands-MMCP4B4U.js} +11 -11
- package/{setDialogExtraReferencesAction-QBDSH63D.js → setDialogExtraReferencesAction-L3V7JTMG.js} +6 -6
- package/{setPrimaryDialogAgentAction-537QFGW3.js → setPrimaryDialogAgentAction-X52JQGTJ.js} +6 -6
- package/{settingThunks-4Z43ZSAT.js → settingThunks-N6XFWPOU.js} +5 -5
- package/{spaceCommands-WPCHZKEY.js → spaceCommands-5WANPZMM.js} +24 -22
- package/{streamAgentChatTurn-BOATI5H3.js → streamAgentChatTurn-DI2334G3.js} +132 -72
- package/{switchDialogAgentAction-CSO6AKRL.js → switchDialogAgentAction-ZJ5CGU7J.js} +5 -5
- package/{tools-FPKQX2J6.js → tools-23VQGJOX.js} +27 -28
- package/{tuiSummaryLlmCaller-PEYFTAVL.js → tuiSummaryLlmCaller-FESHBDTT.js} +4 -4
- package/{updateCommands-LXZLG44Y.js → updateCommands-KALLBWJE.js} +3 -3
- package/{updateDialogTitleAction-WAH5KADA.js → updateDialogTitleAction-AGAYHWS7.js} +14 -15
- package/chunk-UKZX3NHN.js +0 -48
- package/{agentGrantCommands-HOJ3JBBQ.js → agentGrantCommands-5DPHYEKP.js} +3 -3
- package/{agentProviderCommands-CUBOAVPB.js → agentProviderCommands-CXBHNONN.js} +3 -3
- package/{chromeOpsCommands-3Z34RKSE.js → chromeOpsCommands-GZVVK7HU.js} +4 -4
- package/{chunk-2SGAI64X.js → chunk-43OFVLWJ.js} +4 -4
- package/{chunk-XETG4RIX.js → chunk-AETZ7AD6.js} +4 -4
- package/{chunk-YNCJYU4X.js → chunk-G3VYRPTV.js} +4 -4
- package/{chunk-2IXDJNZI.js → chunk-GAGGEA7D.js} +3 -3
- package/{chunk-O4KVUI4W.js → chunk-KABQ74UQ.js} +3 -3
- package/{chunk-TCQPBZUL.js → chunk-QA2C5NKI.js} +3 -3
- package/{chunk-42W7LKBM.js → chunk-QV3VGSX6.js} +3 -3
- package/{chunk-4RJJDA57.js → chunk-WR37DI7R.js} +3 -3
- package/{memoryCommands-CUNBFRVS.js → memoryCommands-ZS3VQJAL.js} +3 -3
- package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-3GLX4QQY.js} +3 -3
- 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-
|
|
7
|
-
import {
|
|
8
|
-
shouldUseServerProxy
|
|
9
|
-
} from "./chunk-UKZX3NHN.js";
|
|
6
|
+
} from "./chunk-QZIOZDM6.js";
|
|
10
7
|
import {
|
|
11
8
|
fetchServerSyncedCredential
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DT7EWFTY.js";
|
|
13
10
|
import {
|
|
14
11
|
buildSkillGuidancePromptBlock
|
|
15
|
-
} from "./chunk-
|
|
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-
|
|
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
|
-
|
|
47
|
-
|
|
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,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YR47Y7CN.js";
|
|
4
4
|
import {
|
|
5
5
|
format,
|
|
6
6
|
prepareAndPersistMessage,
|
|
7
7
|
uiAskChoiceFunc,
|
|
8
8
|
uiAskChoiceFunctionSchema
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
7
|
+
} from "./chunk-CDLP56BS.js";
|
|
8
8
|
import {
|
|
9
9
|
DEVICE_LOCAL_OWNER_ID,
|
|
10
10
|
isDeviceLocalSpaceBody
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-43OFVLWJ.js";
|
|
12
12
|
import {
|
|
13
13
|
selectIdentityUserId
|
|
14
14
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-U4STABYN.js";
|
|
4
4
|
import {
|
|
5
5
|
getReadableCliDb
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-62TBKWTV.js";
|
|
7
7
|
import {
|
|
8
8
|
clearCliLocalRuntimePreparedAgentCache
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
247
|
+
const { verifyCustomProvider } = await import("./agentProviderCommands-CXBHNONN.js");
|
|
248
248
|
const rec = built.nextRecord;
|
|
249
249
|
verifyResult = await verifyCustomProvider({
|
|
250
250
|
providerUrl: rec.customProviderUrl,
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
stablePromptCacheKey,
|
|
28
28
|
toOpenAiCompatibleMessages,
|
|
29
29
|
toResponsesTools
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4L4K6YR7.js";
|
|
31
31
|
import {
|
|
32
32
|
isMeaningfulChatCompletionOutput,
|
|
33
33
|
isMeaningfulResponsesOutput
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-QA2C5NKI.js";
|
|
35
35
|
import {
|
|
36
36
|
clipCompactText
|
|
37
37
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
clipMultilineText,
|
|
3
3
|
fetchAndSerializeTable,
|
|
4
4
|
waitForAbortableDelay
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FCUKCVKN.js";
|
|
6
6
|
import {
|
|
7
7
|
isGatewayHttpStatus
|
|
8
8
|
} from "./chunk-NF64D32W.js";
|
|
@@ -15,30 +15,33 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
resolvePageReadMarkdown,
|
|
17
17
|
slateToSimplifiedMarkdown
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3L5MSPWX.js";
|
|
19
19
|
import {
|
|
20
20
|
extractCategorizedMentions
|
|
21
21
|
} from "./chunk-AGIM7IMJ.js";
|
|
22
22
|
import {
|
|
23
23
|
fetchAndCacheMessages
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-F5WASHQA.js";
|
|
25
25
|
import {
|
|
26
26
|
createSpaceKey
|
|
27
27
|
} from "./chunk-UAD2WT54.js";
|
|
28
28
|
import {
|
|
29
29
|
read
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-CDLP56BS.js";
|
|
31
31
|
import {
|
|
32
32
|
getRuntimeServerContext
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-43OFVLWJ.js";
|
|
34
34
|
import {
|
|
35
35
|
extractRuntimePageCapabilities,
|
|
36
36
|
resolveBuiltinSkillPage,
|
|
37
37
|
resolveSkillGraphFromRoots
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SH3XD4E2.js";
|
|
39
39
|
import {
|
|
40
40
|
isAbortError
|
|
41
41
|
} from "./chunk-7DPNBQSV.js";
|
|
42
|
+
import {
|
|
43
|
+
wrapHistoricalSummaryWithReplayGuard
|
|
44
|
+
} from "./chunk-4VJAC32I.js";
|
|
42
45
|
import {
|
|
43
46
|
extractCustomId
|
|
44
47
|
} from "./chunk-M2EJHDJP.js";
|
|
@@ -51,9 +54,6 @@ import {
|
|
|
51
54
|
import {
|
|
52
55
|
asTrimmedString
|
|
53
56
|
} from "./chunk-3EUW3WEO.js";
|
|
54
|
-
import {
|
|
55
|
-
wrapHistoricalSummaryWithReplayGuard
|
|
56
|
-
} from "./chunk-4VJAC32I.js";
|
|
57
57
|
|
|
58
58
|
// packages/ai/chat/errorDiagnostics.ts
|
|
59
59
|
var record = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
patch,
|
|
9
9
|
readAndWait
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CDLP56BS.js";
|
|
11
11
|
import {
|
|
12
12
|
toErrorMessage
|
|
13
13
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -333,7 +333,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
333
333
|
).unwrap();
|
|
334
334
|
if (dbSpaceId) {
|
|
335
335
|
try {
|
|
336
|
-
const { updateContentTitle } = await import("./contentThunks-
|
|
336
|
+
const { updateContentTitle } = await import("./contentThunks-QBL5NK2W.js");
|
|
337
337
|
await dispatch(
|
|
338
338
|
updateContentTitle({
|
|
339
339
|
spaceId: dbSpaceId,
|
|
@@ -372,7 +372,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
async function createDocState(args, thunkApi) {
|
|
375
|
-
const { createPageAction } = await import("./createPageAction-
|
|
375
|
+
const { createPageAction } = await import("./createPageAction-7T3RINS2.js");
|
|
376
376
|
return createPageAction(args, thunkApi);
|
|
377
377
|
}
|
|
378
378
|
function subscribe(listener) {
|