nolo-cli 0.251.0-alpha.1 → 0.252.0-alpha.2
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-55PHWQWB.js → _executeModel-RXHY2BDR.js} +47 -47
- package/{action-WZTKEF5H.js → action-4MADDU52.js} +5 -5
- package/{addContentAction-LBVAQUF7.js → addContentAction-F4XO3VRF.js} +8 -8
- package/{addDialogAgentAction-6WAUSUSZ.js → addDialogAgentAction-NSCVHTZJ.js} +7 -7
- package/{agentDeleteCommand-KEO3KDK3.js → agentDeleteCommand-EJAI2VTH.js} +69 -68
- package/{agentEmailCommands-RWJQQRNT.js → agentEmailCommands-YBKHZMMZ.js} +69 -68
- package/{agentListCommands-L3TLPLNH.js → agentListCommands-M2KYLAOB.js} +226 -39
- package/{agentMachineCommands-EZWWXWDH.js → agentMachineCommands-GLY6NJWZ.js} +31 -29
- package/{agentProviderCommands-C5T7C5KZ.js → agentProviderCommands-QLTABYR7.js} +2 -2
- package/{agentRecordCommands-7W2CGHJJ.js → agentRecordCommands-JANPX6XI.js} +68 -67
- package/{agentRunCommand-POL6B6BO.js → agentRunCommand-TNLAXLUU.js} +68 -67
- package/{agentRunControl-FKSXBUAF.js → agentRunControl-KNNDEEDI.js} +8 -6
- package/{agentRuntimeLocal-WSHWNIMF.js → agentRuntimeLocal-EOW6FFXL.js} +26 -25
- package/{agentSlice-3G2YLTA4.js → agentSlice-PVFGBJXB.js} +8 -8
- package/{appDeleteCommands-DZZQCVYH.js → appDeleteCommands-3VCRRWUX.js} +33 -31
- package/{appDeployCommands-NJJBVNH5.js → appDeployCommands-XN6IEMYK.js} +33 -31
- package/{appDeployStatusCommands-GBOAFEYG.js → appDeployStatusCommands-ZSJJXMVR.js} +33 -31
- package/{appGetCommands-GOOKYMKO.js → appGetCommands-DJ7YQCEE.js} +33 -31
- package/{appListCommands-OBCGUG3S.js → appListCommands-4KU5CV5H.js} +33 -31
- package/{authCommand-77CRN332.js → authCommand-5DC3ES4Q.js} +12 -12
- package/{builtinSkillRegistry-PFTTFPWW.js → builtinSkillRegistry-PQWEXSFW.js} +1 -1
- package/{chromeOpsCommands-6RLEBBJJ.js → chromeOpsCommands-AA555ANS.js} +1 -1
- package/{chunk-LOXR4TQN.js → chunk-25GCVHBZ.js} +2 -2
- package/{chunk-A55E2OCP.js → chunk-26KL6533.js} +639 -125
- package/{chunk-MAA42MMV.js → chunk-2FZVXOFX.js} +4 -4
- package/{chunk-CUYFRVJF.js → chunk-2HF6DINU.js} +6 -6
- package/{chunk-ESN4WNWU.js → chunk-2JHGUL5K.js} +2 -2
- package/{chunk-GMWZRXRM.js → chunk-3272HU62.js} +1 -1
- package/{chunk-43VT5PLM.js → chunk-3LL5HRIJ.js} +1 -1
- package/{chunk-ZQ6K57FJ.js → chunk-4YPH5KRA.js} +1 -1
- package/{chunk-T4V6C3J3.js → chunk-52M4RYVP.js} +1 -1
- package/{chunk-OQCAHPDQ.js → chunk-5QEOTC35.js} +4 -4
- package/{chunk-R7D5SRAZ.js → chunk-5UYDG6HP.js} +17 -0
- package/{chunk-Z7A2ZQ5X.js → chunk-64ACTEAE.js} +1 -1
- package/{chunk-CTWCZKNS.js → chunk-6SOWMEAY.js} +4 -4
- package/{chunk-UCMUXZJV.js → chunk-7XO73H5X.js} +111 -1
- package/{chunk-222CJNC2.js → chunk-BLBGVSLB.js} +3 -3
- package/{chunk-ZM5AZTQG.js → chunk-BTQU2PRC.js} +19 -7
- package/{chunk-QJ5YDTEF.js → chunk-BVCCRSGK.js} +42 -24
- package/{chunk-SX6AWTNK.js → chunk-BZLGPM5B.js} +3 -3
- package/chunk-CGSIW2KI.js +594 -0
- package/{chunk-LTVEOOZL.js → chunk-CIAV4WK2.js} +14 -1
- package/{chunk-Q5KZ6F55.js → chunk-CSTCYYCR.js} +19 -17
- package/{chunk-D3E5MYXO.js → chunk-CYGFNMCH.js} +1 -1
- package/{chunk-MZVCFV3T.js → chunk-D3WOFN6N.js} +3 -3
- package/{chunk-VUHKG4KS.js → chunk-DNNPARJK.js} +9 -5
- package/{chunk-MTS5DCL2.js → chunk-EG3JTV7H.js} +2 -2
- package/{chunk-6ASGEP5D.js → chunk-EJQE5HB7.js} +1 -1
- package/{chunk-D35TOEMM.js → chunk-EPBEZKYK.js} +137 -53
- package/{chunk-KJDN2YRH.js → chunk-EQJK6LSN.js} +4 -4
- package/{chunk-N3SEV3CG.js → chunk-F6GZFIGR.js} +79 -30
- package/{chunk-6UNJ6JGR.js → chunk-FJPVVLP3.js} +4 -4
- package/{chunk-L5HV76QT.js → chunk-FRC2DNTN.js} +1 -1
- package/{chunk-W3HSD32M.js → chunk-FXEPZKNJ.js} +2 -2
- package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
- package/{chunk-IFJ6OTI6.js → chunk-GJ4UTSAW.js} +33 -11
- package/{chunk-ZKKJZBNO.js → chunk-GUFTHWDO.js} +10 -10
- package/{chunk-KHVTT4WW.js → chunk-HF4C5WIU.js} +81 -542
- package/{chunk-W2N4OAKM.js → chunk-IQXMWBI6.js} +3 -3
- package/chunk-IVK2KT3H.js +209 -0
- package/{chunk-PLS2MJVW.js → chunk-J4KLOLYP.js} +4 -4
- package/{chunk-PQ63BDV3.js → chunk-JPXACKSW.js} +9 -1
- package/{chunk-CDIRKCPD.js → chunk-JX2IG37T.js} +153 -153
- package/{chunk-TGKAUEV3.js → chunk-K7RWY7JH.js} +14 -11
- package/{chunk-5IKKSJYX.js → chunk-KHYSFS3W.js} +76 -2
- package/{chunk-K5CIMK3R.js → chunk-KO6JNZCF.js} +115 -57
- package/{chunk-XJSEST7D.js → chunk-KQBGXCKM.js} +3 -3
- package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
- package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
- package/{chunk-K26XPZRB.js → chunk-LVZVSLKO.js} +29 -9
- package/{chunk-HD5EKSLF.js → chunk-MDWHMQON.js} +3 -3
- package/{chunk-X337N4D6.js → chunk-MOAVLCCM.js} +4 -4
- package/{chunk-OARYOLF3.js → chunk-N2MDL5AZ.js} +12 -12
- package/{chunk-ZSRR6HCH.js → chunk-N2ZAY2DK.js} +1 -1
- package/{chunk-X3OZ655T.js → chunk-N7UXTVAR.js} +2 -2
- package/{chunk-KGOBJAWC.js → chunk-NJDOID7N.js} +207 -94
- package/{chunk-NTNX77FI.js → chunk-NRWZHHOB.js} +6 -6
- package/{chunk-3ZWJVKFB.js → chunk-NWZRCUHM.js} +84 -40
- package/{chunk-HQLCYPL4.js → chunk-OB4FBZXJ.js} +4 -4
- package/{chunk-CD2DK5JA.js → chunk-OKH74FML.js} +2 -1
- package/{chunk-IZWGO2ZS.js → chunk-OMIXG25B.js} +1 -1
- package/{chunk-CJ2BP6V7.js → chunk-OOV5JN25.js} +2 -2
- package/{chunk-3KWJPTVP.js → chunk-OQOXDQLB.js} +4 -4
- package/{chunk-LXKK7QFI.js → chunk-OTNPEE4G.js} +54 -24
- package/{chunk-LMMRWGGJ.js → chunk-OTOPQXP5.js} +2 -2
- package/{chunk-AS6L5KSD.js → chunk-P4R5KXU7.js} +2 -2
- package/{chunk-VTHWBTRE.js → chunk-PENRYZ4D.js} +1 -1
- package/{chunk-WZPG63Q4.js → chunk-PIVTQRX6.js} +43 -13
- package/{chunk-SLUZ6FBJ.js → chunk-Q5M27DUE.js} +1 -1
- package/{chunk-XC5RPSXK.js → chunk-QV32GSVO.js} +2 -2
- package/{chunk-WQDTSK5U.js → chunk-REINTCQF.js} +8 -2
- package/{chunk-IXAGRTAR.js → chunk-SBBSUBY3.js} +1 -1
- package/{chunk-MTM4LRVG.js → chunk-SCY2O7CU.js} +2 -2
- package/{chunk-FAFDIQJG.js → chunk-U3ZK2MXG.js} +3 -3
- package/{chunk-PKMDYRAM.js → chunk-UDQZ5JT7.js} +175 -241
- package/{chunk-UR4ZMRV3.js → chunk-UGHNYYOE.js} +2 -2
- package/{chunk-KZVRPCOR.js → chunk-UTFTXJU3.js} +4 -4
- package/{chunk-GX6DITLQ.js → chunk-UUCYUN6Y.js} +1 -1
- package/{chunk-U2OWDHDE.js → chunk-VH7AQEEF.js} +2 -2
- package/{chunk-QLGL43SI.js → chunk-VZWYP7LD.js} +2 -2
- package/{chunk-6XVPMGXK.js → chunk-W4S5FQWQ.js} +10 -4
- package/{chunk-KRAPKTAS.js → chunk-WJOC3AEM.js} +2 -2
- package/{chunk-2FK2KZSL.js → chunk-WLHUANWZ.js} +1 -1
- package/{chunk-JUYI2D7J.js → chunk-WNIBQBOR.js} +1 -1
- package/{chunk-BQ4CZEVZ.js → chunk-YWLMUFZ5.js} +1 -1
- package/{chunk-CD64YXRB.js → chunk-Z47UZT27.js} +1 -1
- package/{chunk-75TXQ4GY.js → chunk-ZMWDHPNG.js} +15 -29
- package/{chunk-CFDOIIOZ.js → chunk-ZMXO5G3E.js} +29 -23
- package/{cliAgentConfigHelpers-N6LTB7UY.js → cliAgentConfigHelpers-FKBPFPKR.js} +6 -6
- package/{cliLocalAgentRecordReader-NFNGYOOW.js → cliLocalAgentRecordReader-OHAC4JTY.js} +30 -29
- package/{commandRegistry-OM5DU4DS.js → commandRegistry-YQMAXCLP.js} +81 -81
- package/{contentThunks-7URM43ET.js → contentThunks-GSMUNWBA.js} +20 -20
- package/{cooldownCommands-JEEV75B7.js → cooldownCommands-PT5L4LNB.js} +3 -3
- package/{createAgentAutomationAction-GGEXIKMC.js → createAgentAutomationAction-RMADR4LG.js} +20 -20
- package/{createDialogAction-IXXEMFRQ.js → createDialogAction-CM5CBQVH.js} +21 -21
- package/{createPageAction-IXIVLIOO.js → createPageAction-JMGVMCTH.js} +21 -21
- package/{db-J5KE7XRI.js → db-VR74ADGC.js} +5 -1
- package/{dbSlice-IE4ADINL.js → dbSlice-Q637QR4L.js} +7 -7
- package/{deleteFile-ZCQESEEQ.js → deleteFile-TP6MKFUX.js} +10 -5
- package/{dialogCommands-RPBHOZB6.js → dialogCommands-ULWP5ASX.js} +35 -33
- package/{dialogNotifyCommand-ECKI5MMA.js → dialogNotifyCommand-JKYVSR6K.js} +7 -7
- package/{dialogSlice-5FQB2TNN.js → dialogSlice-ARQKXXTD.js} +18 -18
- package/{docCreateCommands-XJ2X57DW.js → docCreateCommands-ZJFHCZV4.js} +32 -30
- package/{docDeleteCommands-45WGFFEB.js → docDeleteCommands-LY5MF2BI.js} +33 -31
- package/{docReadCommands-LRRVDS46.js → docReadCommands-4X2DHCNZ.js} +32 -30
- package/{docStore-SUAVM24F.js → docStore-QWRVKIRI.js} +8 -8
- package/{docUpdateCommands-QUYX6BVR.js → docUpdateCommands-5TIT7DAJ.js} +32 -30
- package/{getPricing-FCHYVRJU.js → getPricing-5BLZRPTM.js} +3 -3
- package/{handleSendMessageAction-FDIWBQUB.js → handleSendMessageAction-TVR55KVT.js} +36 -36
- package/{hostCredentialCreate-CEXQHYT4.js → hostCredentialCreate-SIRXPUFR.js} +68 -67
- package/index.js +8 -8
- package/{localDialogRead-USDZXKIL.js → localDialogRead-BJJT3TF5.js} +1 -1
- package/{localRuntimeAdapter-O3JBRK6S.js → localRuntimeAdapter-VRB5EDDZ.js} +67 -66
- package/{machineCommands-I3YA7TNC.js → machineCommands-MG3BB6XM.js} +68 -67
- package/{machineWsRunDispatch-E5CIE2OJ.js → machineWsRunDispatch-3TOO3NCU.js} +68 -67
- package/{mcpLocalAuthorizeCommand-K5J2VMG6.js → mcpLocalAuthorizeCommand-LO7E4VQ5.js} +6 -6
- package/{memberThunks-T7EAZE6A.js → memberThunks-IGYRMEQC.js} +9 -9
- package/{models-EP7VG6N2.js → models-ZX2BYIMB.js} +2 -2
- package/package.json +1 -1
- package/{projectArchive-A7E65AZO.js → projectArchive-Q46BYZQ6.js} +21 -21
- package/{providerPresetApply-4H7YP5D7.js → providerPresetApply-NTJUINI6.js} +35 -16
- package/{providerRegistry-F3UPOTIY.js → providerRegistry-W45SLUV6.js} +5 -5
- package/{read-BRZHXUJ6.js → read-MPPXZHAO.js} +10 -5
- package/{readDocTool-N7RVFQEE.js → readDocTool-PKZ35PCR.js} +1 -1
- package/{readlineWorkspace-2O65NBFG.js → readlineWorkspace-RBH6PSE7.js} +613 -209
- package/{removeDialogAgentAction-GRT72HLK.js → removeDialogAgentAction-H6S7VLNA.js} +9 -9
- package/{runAgentClientLoop-NWCZIXCG.js → runAgentClientLoop-WZJ4HXOH.js} +44 -44
- package/{runtimeDoctorCommands-26HYHFTK.js → runtimeDoctorCommands-QGZSKNSE.js} +5 -5
- package/{secretCommands-XR72SHLK.js → secretCommands-BXAQEOES.js} +2 -2
- package/{setDialogExtraReferencesAction-CBG3X46B.js → setDialogExtraReferencesAction-CARUTAWS.js} +8 -8
- package/{setPrimaryDialogAgentAction-EWTDZOAX.js → setPrimaryDialogAgentAction-VRV56MLG.js} +9 -9
- package/{settingThunks-X4PT66J2.js → settingThunks-4FC4HXGN.js} +7 -7
- package/{spaceCommands-EVSNTGRS.js → spaceCommands-27Z5JAU3.js} +31 -29
- package/{streamAgentChatTurn-SYP3OEM5.js → streamAgentChatTurn-JKMBFM2O.js} +57 -53
- package/{switchDialogAgentAction-YHPZ7K6E.js → switchDialogAgentAction-O236K6HB.js} +7 -7
- package/{tableCommands-44GC4N6J.js → tableCommands-C3P2HHKK.js} +2 -2
- package/{tools-2AO2SK4L.js → tools-4RFLNHUW.js} +37 -37
- package/{tuiRestart-HBQDF4AE.js → tuiRestart-GF4DGAAN.js} +7 -7
- package/{tuiSummaryLlmCaller-Q2PNR63K.js → tuiSummaryLlmCaller-HROLGN4F.js} +12 -12
- package/{updateCommands-6SI7NWVC.js → updateCommands-BZ4YDHNM.js} +3 -3
- package/{updateDialogTitleAction-MWVMBIPZ.js → updateDialogTitleAction-F3ONQM3N.js} +20 -20
- package/{usageCommand-D44AOTMH.js → usageCommand-XVJ7ZUTM.js} +1 -1
- package/{usageRebuildCommand-IRIMKDI5.js → usageRebuildCommand-NK6S3D4J.js} +2 -2
- package/{windowsSelfUpdate-BJIJKKIS.js → windowsSelfUpdate-4BAXX7C3.js} +2 -2
- package/{workloadLifecycle-ZCSQCHG3.js → workloadLifecycle-DYX5ZMAT.js} +2 -2
- package/chunk-FGHEF6WI.js +0 -34
- package/{chunk-ANUP75N2.js → chunk-2E4BYAUE.js} +0 -0
- package/{chunk-YHNUDTU4.js → chunk-VYRTLHIT.js} +3 -3
- package/{dialogUsageCommand-TBIA2QAF.js → dialogUsageCommand-IHAXS7DW.js} +3 -3
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EPBEZKYK.js";
|
|
9
9
|
import {
|
|
10
10
|
CONFIRMATION_INPUT_KEYS,
|
|
11
11
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
performFetchRequest,
|
|
15
15
|
sanitizeOutboundMessages,
|
|
16
16
|
stripModelToolArgs
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KO6JNZCF.js";
|
|
18
18
|
import {
|
|
19
19
|
findToolExecutor,
|
|
20
20
|
toolDefinitionsByName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NWZRCUHM.js";
|
|
22
22
|
import {
|
|
23
23
|
createSSEParser,
|
|
24
24
|
createToolRunId,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
toolRunSetPending,
|
|
28
28
|
toolRunStarted,
|
|
29
29
|
toolRunSucceeded
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-GUFTHWDO.js";
|
|
31
31
|
import {
|
|
32
32
|
addToolMessage,
|
|
33
33
|
messageStreamEnd,
|
|
@@ -35,19 +35,19 @@ import {
|
|
|
35
35
|
toast,
|
|
36
36
|
toolResultNeedsUserConfirmation,
|
|
37
37
|
updateToolMessage
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-26KL6533.js";
|
|
39
39
|
import {
|
|
40
40
|
streamAgentChatTurn
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-BVCCRSGK.js";
|
|
42
42
|
import {
|
|
43
43
|
getCurrentSpaceId
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-SBBSUBY3.js";
|
|
45
45
|
import {
|
|
46
46
|
selectCurrentServer
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-SCY2O7CU.js";
|
|
48
48
|
import {
|
|
49
49
|
write
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-GJ4UTSAW.js";
|
|
51
51
|
import {
|
|
52
52
|
addActiveController,
|
|
53
53
|
getActiveDialogKey,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
} from "./chunk-RD3QLZQV.js";
|
|
60
60
|
import {
|
|
61
61
|
createAsyncThunk
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-W4S5FQWQ.js";
|
|
63
63
|
import {
|
|
64
64
|
selectIdentityToken
|
|
65
65
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
projectUserPartForModel,
|
|
71
71
|
resolveOutboundDiagnosticSink,
|
|
72
72
|
resolveOutboundWire
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-WLHUANWZ.js";
|
|
74
74
|
import {
|
|
75
75
|
accumulateToolCallDelta,
|
|
76
76
|
createThinkParserState,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
} from "./chunk-56GBUMO5.js";
|
|
83
83
|
import {
|
|
84
84
|
normalizeChatCompletionsBodyForProvider
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-FXEPZKNJ.js";
|
|
86
86
|
import {
|
|
87
87
|
classifyApiError,
|
|
88
88
|
classifyGenerationError,
|
|
@@ -93,13 +93,13 @@ import {
|
|
|
93
93
|
isCompleteInstructionOutput,
|
|
94
94
|
sanitizeToolOutputText,
|
|
95
95
|
scrubSecrets
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-JX2IG37T.js";
|
|
97
97
|
import {
|
|
98
98
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-CIAV4WK2.js";
|
|
100
100
|
import {
|
|
101
101
|
getModelInfo
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-2FZVXOFX.js";
|
|
103
103
|
import {
|
|
104
104
|
isAbortError
|
|
105
105
|
} from "./chunk-7DPNBQSV.js";
|
|
@@ -124,7 +124,7 @@ import {
|
|
|
124
124
|
} from "./chunk-3EUW3WEO.js";
|
|
125
125
|
import {
|
|
126
126
|
getApiEndpoint
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-OKH74FML.js";
|
|
128
128
|
import {
|
|
129
129
|
isRecord
|
|
130
130
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -1700,7 +1700,9 @@ var sendOpenAICompletionsRequest = async ({
|
|
|
1700
1700
|
const requestBody = await inlineImageUrlsForCustomProvider(
|
|
1701
1701
|
buildFinalCompletionsRequestBody(bodyData, agentConfig, disableToolsForThisRequest),
|
|
1702
1702
|
{
|
|
1703
|
-
shouldInline: shouldInlineImageUrlsForAgent(agentConfig)
|
|
1703
|
+
shouldInline: shouldInlineImageUrlsForAgent(agentConfig),
|
|
1704
|
+
serverUrl: selectCurrentServer(getState()),
|
|
1705
|
+
signal
|
|
1704
1706
|
}
|
|
1705
1707
|
);
|
|
1706
1708
|
let streamState = createInitialStreamState();
|
|
@@ -20,17 +20,17 @@ import {
|
|
|
20
20
|
} from "./chunk-M2EJHDJP.js";
|
|
21
21
|
import {
|
|
22
22
|
getModelPricing
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-P4R5KXU7.js";
|
|
24
24
|
import {
|
|
25
25
|
getModelConfig
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-OKH74FML.js";
|
|
27
27
|
import {
|
|
28
28
|
isRecord
|
|
29
29
|
} from "./chunk-KUG52IAP.js";
|
|
30
30
|
import {
|
|
31
31
|
isNoloHostedProvider,
|
|
32
32
|
isPlatformHostedImageModel
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-JPXACKSW.js";
|
|
34
34
|
|
|
35
35
|
// packages/core/publicAgentSeeds.ts
|
|
36
36
|
var AGENT_SEED_DEFAULTS = {
|
|
@@ -5,15 +5,18 @@ import {
|
|
|
5
5
|
ANTIGRAVITY_CLOUD_CODE_BASE_URL,
|
|
6
6
|
isAntigravityCloudCodeBaseUrl,
|
|
7
7
|
isAntigravityOAuthAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6SOWMEAY.js";
|
|
9
|
+
import {
|
|
10
|
+
isAgentCredentialShared
|
|
11
|
+
} from "./chunk-LVZVSLKO.js";
|
|
9
12
|
import {
|
|
10
13
|
isOpenAiResponsesModel,
|
|
11
14
|
resolvePlatformChatCompletionsEndpoint,
|
|
12
15
|
resolvePlatformResponsesEndpoint
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2JHGUL5K.js";
|
|
14
17
|
import {
|
|
15
18
|
findModelConfig
|
|
16
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OKH74FML.js";
|
|
17
20
|
import {
|
|
18
21
|
asOptionalTrimmedString
|
|
19
22
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -67,7 +70,7 @@ function hasOwnCustomProviderKey(agentConfig) {
|
|
|
67
70
|
if (isAntigravityCloudCodeBaseUrl(endpoint)) return false;
|
|
68
71
|
return Boolean(asOptionalTrimmedString(agentConfig.apiKey));
|
|
69
72
|
}
|
|
70
|
-
function resolveAgentCallPlan(agentConfig, _env) {
|
|
73
|
+
function resolveAgentCallPlan(agentConfig, _env, capabilities) {
|
|
71
74
|
const apiKeyRef = asTrimmedLowercaseString(agentConfig.apiKeyRef);
|
|
72
75
|
const provider = asTrimmedLowercaseString(
|
|
73
76
|
agentConfig.provider ?? agentConfig.apiSource
|
|
@@ -149,7 +152,8 @@ function resolveAgentCallPlan(agentConfig, _env) {
|
|
|
149
152
|
};
|
|
150
153
|
}
|
|
151
154
|
if (agentConfig.customProviderUrl || agentConfig.apiSource === "custom") {
|
|
152
|
-
const
|
|
155
|
+
const useLocalCredential = capabilities?.canResolveLocalCredential === true && agentConfig.apiSource === "custom" && agentConfig.useServerProxy === false && !isAgentCredentialShared(agentConfig) && Boolean(asOptionalTrimmedString(agentConfig.credentialRef) || asOptionalTrimmedString(agentConfig.apiKey));
|
|
156
|
+
const transport2 = !useLocalCredential && agentShouldUseServerProxy(agentConfig) ? "server-proxy" : "direct";
|
|
153
157
|
const endpoint2 = asOptionalTrimmedString(agentConfig.customProviderUrl) ?? "";
|
|
154
158
|
const upstreamWire2 = resolveCustomUpstreamWire(
|
|
155
159
|
endpoint2,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-4O22PGNQ.js";
|
|
13
13
|
import {
|
|
14
14
|
scheduleWindowsSelfUpdate
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FRC2DNTN.js";
|
|
16
16
|
import {
|
|
17
17
|
t
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5UYDG6HP.js";
|
|
19
19
|
import {
|
|
20
20
|
normalizeServerOrigin
|
|
21
21
|
} from "./chunk-CF7PE763.js";
|
|
@@ -1,26 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolRegistry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NWZRCUHM.js";
|
|
4
4
|
import {
|
|
5
|
+
INLINE_IMAGE_MAX_BYTES,
|
|
6
|
+
INLINE_IMAGE_TOTAL_MAX_BYTES,
|
|
5
7
|
runtime_default
|
|
6
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-26KL6533.js";
|
|
7
9
|
import {
|
|
8
10
|
canonicalizeToolNames
|
|
9
11
|
} from "./chunk-YLAHYLDQ.js";
|
|
12
|
+
import {
|
|
13
|
+
API_ENDPOINTS,
|
|
14
|
+
NOLO_CLUSTER_SERVERS
|
|
15
|
+
} from "./chunk-LCBAMY2M.js";
|
|
10
16
|
import {
|
|
11
17
|
isRecord
|
|
12
18
|
} from "./chunk-KUG52IAP.js";
|
|
13
19
|
import {
|
|
14
20
|
isNoloHostedProvider
|
|
15
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JPXACKSW.js";
|
|
16
22
|
import {
|
|
17
23
|
asTrimmedLowercaseString
|
|
18
24
|
} from "./chunk-QSJ3HFEF.js";
|
|
19
25
|
|
|
20
26
|
// packages/ai/chat/inlineImageUrlsForCustomProvider.ts
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
var FILE_CONTENT_PATH = `${API_ENDPOINTS.DATABASE}/file/content/`;
|
|
28
|
+
function trustedInlineFile(url, serverUrl, pageOrigin) {
|
|
29
|
+
try {
|
|
30
|
+
const source = new URL(url, pageOrigin ?? serverUrl);
|
|
31
|
+
const originOf = (base) => base ? new URL(base).origin : void 0;
|
|
32
|
+
if (!/^https?:$/.test(source.protocol) || source.username || source.password || !(source.origin === originOf(serverUrl) || source.origin === originOf(pageOrigin) || NOLO_CLUSTER_SERVERS.some((origin) => origin === source.origin))) return null;
|
|
33
|
+
const id = source.pathname.startsWith(FILE_CONTENT_PATH) ? source.pathname.slice(FILE_CONTENT_PATH.length) : "";
|
|
34
|
+
if (!/^[A-Za-z0-9._~-]{1,256}$/.test(id) || id === "." || id === "..") return null;
|
|
35
|
+
return { origin: source.origin, id, spaceId: source.searchParams.get("spaceId") };
|
|
36
|
+
} catch {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
24
40
|
var shouldInlineImageUrlsForAgent = (agentConfig) => {
|
|
25
41
|
const apiSource = agentConfig?.apiSource?.toLowerCase();
|
|
26
42
|
const provider = agentConfig?.provider?.toLowerCase();
|
|
@@ -29,7 +45,15 @@ var shouldInlineImageUrlsForAgent = (agentConfig) => {
|
|
|
29
45
|
if (isNoloHostedProvider(provider)) return true;
|
|
30
46
|
return provider === "openrouter" && model === "minimax/minimax-m3";
|
|
31
47
|
};
|
|
32
|
-
var isInlineCandidate = (url) =>
|
|
48
|
+
var isInlineCandidate = (url) => {
|
|
49
|
+
if (/^data:/i.test(url)) return false;
|
|
50
|
+
if (url.includes(FILE_CONTENT_PATH)) return true;
|
|
51
|
+
try {
|
|
52
|
+
return new URL(url, "https://relative.invalid").pathname.startsWith(FILE_CONTENT_PATH);
|
|
53
|
+
} catch {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
33
57
|
var bytesToBase64 = (bytes) => {
|
|
34
58
|
const chunks = [];
|
|
35
59
|
for (let offset = 0; offset < bytes.length; offset += 32768) {
|
|
@@ -37,84 +61,144 @@ var bytesToBase64 = (bytes) => {
|
|
|
37
61
|
}
|
|
38
62
|
return btoa(chunks.join(""));
|
|
39
63
|
};
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
if (!response.ok) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
error: `HTTP ${response.status}`
|
|
46
|
-
};
|
|
64
|
+
async function readBoundedInlineImage(response, maxBytes) {
|
|
65
|
+
const declaredSize = Number(response.headers.get("content-length"));
|
|
66
|
+
if (!response.ok || !response.body || declaredSize > maxBytes) {
|
|
67
|
+
await response.body?.cancel();
|
|
68
|
+
return declaredSize > maxBytes ? { ok: false, skippedSize: declaredSize } : { ok: false };
|
|
47
69
|
}
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
70
|
+
const reader = response.body.getReader();
|
|
71
|
+
const chunks = [];
|
|
72
|
+
let size = 0;
|
|
73
|
+
for (; ; ) {
|
|
74
|
+
const { value, done } = await reader.read();
|
|
75
|
+
if (done) break;
|
|
76
|
+
size += value.byteLength;
|
|
77
|
+
if (size > maxBytes) {
|
|
78
|
+
await reader.cancel();
|
|
79
|
+
return { ok: false, skippedSize: size };
|
|
80
|
+
}
|
|
81
|
+
chunks.push(value);
|
|
82
|
+
}
|
|
83
|
+
const bytes = new Uint8Array(size);
|
|
84
|
+
let offset = 0;
|
|
85
|
+
for (const chunk of chunks) {
|
|
86
|
+
bytes.set(chunk, offset);
|
|
87
|
+
offset += chunk.byteLength;
|
|
88
|
+
}
|
|
89
|
+
return { ok: true, bytes, mimeType: response.headers.get("content-type") ?? void 0 };
|
|
90
|
+
}
|
|
91
|
+
function publicImageFetcher(options) {
|
|
92
|
+
const timeout = AbortSignal.timeout(5e3);
|
|
93
|
+
const request = options.request ?? fetch;
|
|
94
|
+
const pageOrigin = typeof window === "undefined" ? void 0 : window.location?.origin;
|
|
95
|
+
return async (url, signal, maxBytes = INLINE_IMAGE_MAX_BYTES) => {
|
|
96
|
+
try {
|
|
97
|
+
const file = trustedInlineFile(url, options.serverUrl, pageOrigin);
|
|
98
|
+
if (!file) return { ok: false };
|
|
99
|
+
const init = {
|
|
100
|
+
credentials: "omit",
|
|
101
|
+
redirect: "error",
|
|
102
|
+
cache: "no-store",
|
|
103
|
+
signal: signal ? AbortSignal.any([signal, timeout]) : timeout
|
|
104
|
+
};
|
|
105
|
+
const base = `${file.origin}${API_ENDPOINTS.DATABASE}/file`;
|
|
106
|
+
const proof = await request(`${base}/public/${file.id}`, init);
|
|
107
|
+
if (!proof.ok || (await proof.json())?.public !== true) {
|
|
108
|
+
if (!proof.bodyUsed) await proof.body?.cancel();
|
|
109
|
+
return { ok: false };
|
|
110
|
+
}
|
|
111
|
+
return await readBoundedInlineImage(await request(`${base}/public-content/${file.id}?maxBytes=${maxBytes}`, init), maxBytes);
|
|
112
|
+
} catch {
|
|
113
|
+
signal?.throwIfAborted();
|
|
114
|
+
return { ok: false };
|
|
115
|
+
}
|
|
53
116
|
};
|
|
54
|
-
}
|
|
117
|
+
}
|
|
55
118
|
var cloneImagePartWithDataUrl = async (part, fetchImage, options, usedBytes) => {
|
|
56
|
-
const
|
|
57
|
-
|
|
119
|
+
const native = part?.type === "input_image";
|
|
120
|
+
const url = native && typeof part.image_url === "string" ? part.image_url : part?.image_url?.url;
|
|
121
|
+
const unavailable = { type: native ? "input_text" : "text", text: "[Image unavailable]" };
|
|
122
|
+
if (typeof url !== "string" || !isInlineCandidate(url)) return part;
|
|
58
123
|
if (options.signal?.aborted) throw new DOMException("The operation was aborted", "AbortError");
|
|
59
124
|
const remaining = options.maxTotalBytes === void 0 ? void 0 : options.maxTotalBytes - usedBytes.value;
|
|
125
|
+
if (remaining !== void 0 && remaining <= 0) {
|
|
126
|
+
options.onSkipTooLarge?.(url, void 0, "total-budget");
|
|
127
|
+
return unavailable;
|
|
128
|
+
}
|
|
60
129
|
const fetchLimit = options.maxBytes === void 0 ? remaining : remaining === void 0 ? options.maxBytes : Math.min(options.maxBytes, remaining);
|
|
61
|
-
const result = await fetchImage(url, options.signal, fetchLimit)
|
|
130
|
+
const result = await fetchImage(url, options.signal, fetchLimit).catch(() => {
|
|
131
|
+
options.signal?.throwIfAborted();
|
|
132
|
+
return { ok: false };
|
|
133
|
+
});
|
|
62
134
|
if (options.signal?.aborted) throw new DOMException("The operation was aborted", "AbortError");
|
|
63
135
|
if (result.skippedSize !== void 0) {
|
|
64
136
|
const reason = options.maxBytes !== void 0 && result.skippedSize > options.maxBytes ? "per-image" : "total-budget";
|
|
65
137
|
options.onSkipTooLarge?.(url, result.skippedSize, reason);
|
|
66
|
-
return
|
|
138
|
+
return unavailable;
|
|
67
139
|
}
|
|
68
|
-
if (!result.ok || !result.bytes) return
|
|
140
|
+
if (!result.ok || !result.bytes) return unavailable;
|
|
69
141
|
if (options.maxBytes !== void 0 && result.bytes.byteLength > options.maxBytes) {
|
|
70
142
|
options.onSkipTooLarge?.(url, result.bytes.byteLength, "per-image");
|
|
71
|
-
return
|
|
143
|
+
return unavailable;
|
|
72
144
|
}
|
|
73
145
|
if (options.maxTotalBytes !== void 0 && usedBytes.value + result.bytes.byteLength > options.maxTotalBytes) {
|
|
74
146
|
options.onSkipTooLarge?.(url, result.bytes.byteLength, "total-budget");
|
|
75
|
-
return
|
|
147
|
+
return unavailable;
|
|
76
148
|
}
|
|
77
149
|
usedBytes.value += result.bytes.byteLength;
|
|
78
150
|
const mimeType = (result.mimeType || "application/octet-stream").split(";")[0].trim() || "application/octet-stream";
|
|
79
|
-
|
|
151
|
+
const dataUrl = `data:${mimeType};base64,${bytesToBase64(result.bytes)}`;
|
|
152
|
+
return { ...part, image_url: native ? dataUrl : { ...part.image_url, url: dataUrl } };
|
|
80
153
|
};
|
|
81
154
|
var inlineImageUrlsForCustomProvider = async (bodyData, options) => {
|
|
82
155
|
if (!options.shouldInline) return bodyData;
|
|
83
156
|
const body = bodyData;
|
|
84
|
-
if (!Array.isArray(body?.messages)) return bodyData;
|
|
85
|
-
|
|
157
|
+
if (!Array.isArray(body?.messages) && !Array.isArray(body?.input)) return bodyData;
|
|
158
|
+
options = {
|
|
159
|
+
...options,
|
|
160
|
+
maxBytes: Math.min(options.maxBytes ?? INLINE_IMAGE_MAX_BYTES, INLINE_IMAGE_MAX_BYTES),
|
|
161
|
+
maxTotalBytes: Math.min(options.maxTotalBytes ?? INLINE_IMAGE_TOTAL_MAX_BYTES, INLINE_IMAGE_TOTAL_MAX_BYTES)
|
|
162
|
+
};
|
|
163
|
+
const fetchImage = options.fetchImage ?? publicImageFetcher(options);
|
|
86
164
|
const fetched = /* @__PURE__ */ new Map();
|
|
87
165
|
const fetchOnce = (url, signal, maxBytes) => {
|
|
88
|
-
let
|
|
89
|
-
if (!
|
|
90
|
-
|
|
91
|
-
fetched.set(url,
|
|
166
|
+
let result2 = fetched.get(url);
|
|
167
|
+
if (!result2) {
|
|
168
|
+
result2 = fetchImage(url, signal, maxBytes);
|
|
169
|
+
fetched.set(url, result2);
|
|
92
170
|
}
|
|
93
|
-
return
|
|
171
|
+
return result2;
|
|
94
172
|
};
|
|
95
173
|
const usedBytes = { value: 0 };
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
if (options.maxTotalBytes !== void 0 && usedBytes.value >= options.maxTotalBytes) {
|
|
106
|
-
if (typeof part?.image_url?.url === "string" && isInlineCandidate(part.image_url.url)) options.onSkipTooLarge?.(part.image_url.url, void 0, "total-budget");
|
|
107
|
-
continue;
|
|
174
|
+
const rewrite = async (items, imageType) => {
|
|
175
|
+
let output = items;
|
|
176
|
+
for (let i = items.length - 1; i >= 0; i--) {
|
|
177
|
+
const item = items[i];
|
|
178
|
+
let next = item;
|
|
179
|
+
if (item?.type === imageType) next = await cloneImagePartWithDataUrl(item, fetchOnce, options, usedBytes);
|
|
180
|
+
else if (Array.isArray(item?.content)) {
|
|
181
|
+
const content = await rewrite(item.content, imageType);
|
|
182
|
+
if (content !== item.content) next = { ...item, content };
|
|
108
183
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
184
|
+
if (imageType === "input_image" && item?.type === "function_call_output" && Array.isArray(item.output)) {
|
|
185
|
+
const outputItems = await rewrite(item.output, imageType);
|
|
186
|
+
if (outputItems !== item.output) next = { ...next, output: outputItems };
|
|
187
|
+
}
|
|
188
|
+
if (next !== item) {
|
|
189
|
+
if (output === items) output = [...items];
|
|
190
|
+
output[i] = next;
|
|
113
191
|
}
|
|
114
192
|
}
|
|
115
|
-
|
|
193
|
+
return output;
|
|
194
|
+
};
|
|
195
|
+
let result = body;
|
|
196
|
+
for (const [key, imageType] of [["messages", "image_url"], ["input", "input_image"]]) {
|
|
197
|
+
if (!Array.isArray(body[key])) continue;
|
|
198
|
+
const items = await rewrite(body[key], imageType);
|
|
199
|
+
if (items !== body[key]) result = { ...result, [key]: items };
|
|
116
200
|
}
|
|
117
|
-
return
|
|
201
|
+
return result;
|
|
118
202
|
};
|
|
119
203
|
|
|
120
204
|
// packages/ai/tools/toolSchemaCompatibility.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveDefaultReasoningEffort
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CGSIW2KI.js";
|
|
4
4
|
import {
|
|
5
5
|
buildLocalAgentLookupKeys,
|
|
6
6
|
shouldReadAgentKeyRemotely
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-64ACTEAE.js";
|
|
8
8
|
import {
|
|
9
9
|
createHostCredentialBrokerChain,
|
|
10
10
|
createStrictHostCredentialBroker
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
formatInvalidAgentSkillModeMessage,
|
|
15
15
|
formatInvalidAgentSkillModesFieldMessage,
|
|
16
16
|
isAgentSkillModesFieldShapeValid
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JX2IG37T.js";
|
|
18
18
|
import {
|
|
19
19
|
buildAgentApiKeyCredentialRef,
|
|
20
20
|
migrateAgentSecrets
|
|
@@ -766,7 +766,7 @@ async function buildCreatedAgentRecord(args) {
|
|
|
766
766
|
const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
|
|
767
767
|
const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
|
|
768
768
|
if (args.parsed.presetId) {
|
|
769
|
-
const { resolveProviderPresetFields } = await import("./providerPresetApply-
|
|
769
|
+
const { resolveProviderPresetFields } = await import("./providerPresetApply-NTJUINI6.js");
|
|
770
770
|
const fields = resolveProviderPresetFields(args.parsed.presetId);
|
|
771
771
|
if (fields.kind === "manual") {
|
|
772
772
|
throw new Error(
|