nolo-cli 0.32.0 → 0.33.0-alpha.11
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/README.md +6 -12
- package/{_executeModel-LTMSIBS4.js → _executeModel-YXWAXPWQ.js} +77 -67
- package/{action-HI3VRQLP.js → action-OQWPNKAH.js} +17 -15
- package/{addContentAction-NCURJ6PK.js → addContentAction-YVINZQTF.js} +14 -13
- package/{addDialogAgentAction-RCY4ECF4.js → addDialogAgentAction-6IOCIEPI.js} +14 -13
- package/{agentDeleteCommand-D3MYZK6E.js → agentDeleteCommand-VGHWJN5T.js} +44 -60
- package/{agentEmailCommands-6BXS574I.js → agentEmailCommands-ZLRF35I3.js} +91 -81
- package/{agentGrantCommands-E7ZZFRHK.js → agentGrantCommands-2LEZDADN.js} +2 -2
- package/{agentListCommands-SF3HEUTT.js → agentListCommands-OHZJ7AFP.js} +75 -79
- package/{agentMachineCommands-YARVXRR6.js → agentMachineCommands-62PHPGTK.js} +43 -59
- package/{agentPullCommand-ARSIDNVC.js → agentPullCommand-TSWAJPS2.js} +5 -5
- package/agentRecordCommands-CW2JWERD.js +113 -0
- package/agentRunCommand-O4HV7YWA.js +131 -0
- package/{agentRuntimeLocal-ATGJY6WC.js → agentRuntimeLocal-4PSBNUOE.js} +37 -51
- package/{agentSlice-4XWW344Y.js → agentSlice-OUTQ5O72.js} +16 -14
- package/{appDeleteCommands-63JO7RXS.js → appDeleteCommands-VTDBVHYR.js} +40 -56
- package/{appDeployCommands-Y7EWYUGM.js → appDeployCommands-WOUP7MDA.js} +40 -56
- package/{appDeployStatusCommands-ZBEY3DWB.js → appDeployStatusCommands-N2NWZKEN.js} +40 -56
- package/{appGetCommands-QSSOSEYL.js → appGetCommands-GYKLWWCA.js} +40 -56
- package/{appListCommands-PH3XWNDX.js → appListCommands-RUWBSEJK.js} +40 -56
- package/{authCommand-BBDHMSO6.js → authCommand-YVXVH25I.js} +21 -20
- package/{authCommands-4UDEKRE6.js → authCommands-WTW6MEYS.js} +10 -10
- package/chatQueueReduxAdapter-2QJAD4KQ.js +181 -0
- package/{chunk-EEF23OOK.js → chunk-266VUBLK.js} +7 -7
- package/{chunk-TEYN42N3.js → chunk-2IVEXF7P.js} +11 -4
- package/{chunk-2HXKAPH7.js → chunk-2QLAVHVK.js} +6 -6
- package/{chunk-WTGCTVJG.js → chunk-2QTEYCR7.js} +3 -6
- package/{chunk-DOISARTV.js → chunk-2UECQ7RE.js} +1 -1
- package/{chunk-E3APEOIM.js → chunk-3GZXL6FM.js} +4 -19
- package/{chunk-KGEVMUMI.js → chunk-3RUW3ONU.js} +11 -11
- package/{chunk-RXVX5LFR.js → chunk-3UG2IIZ3.js} +1 -1
- package/{chunk-O5OMJPPF.js → chunk-3WXRAHCG.js} +6 -5
- package/{chunk-V54H24CQ.js → chunk-4F5M2MW5.js} +3 -3
- package/{chunk-2ZRP5RUG.js → chunk-4OV7DXFJ.js} +12 -11
- package/{chunk-W367V5CH.js → chunk-54BAYVCY.js} +404 -117
- package/{chunk-GAF5X6B7.js → chunk-5QW3O3ET.js} +284 -310
- package/{chunk-DLWCWUNW.js → chunk-64OVNZXE.js} +1197 -757
- package/{chunk-ODS2MVMU.js → chunk-66CWPJK2.js} +19 -303
- package/{chunk-PTHDLIRB.js → chunk-6KOS7ZBZ.js} +1 -1
- package/{chunk-MXFQHRSS.js → chunk-6XIE5ZGI.js} +1 -1
- package/{chunk-ATK5WJOA.js → chunk-6YXDOOSH.js} +4 -4
- package/{chunk-SWYMCHM7.js → chunk-75U775RZ.js} +69 -1
- package/{chunk-UDA3ZYLW.js → chunk-7YYHKBJP.js} +31 -72
- package/chunk-ADLYMQB6.js +642 -0
- package/{chunk-ZWJOGMKH.js → chunk-AETZ7AD6.js} +1 -1
- package/{chunk-43EPBPZ2.js → chunk-ASDXPOJH.js} +2 -2
- package/{chunk-44HACRCK.js → chunk-BANYWEYY.js} +4 -4
- package/chunk-BFPSVRCQ.js +1799 -0
- package/{chunk-TOW4E763.js → chunk-BJIRLHJR.js} +2 -0
- package/{chunk-ZJ2WITOO.js → chunk-BQXOGBFN.js} +2 -2
- package/{chunk-4PNU7W7K.js → chunk-C7H5GMXT.js} +107 -125
- package/chunk-CPYYM4RJ.js +98 -0
- package/{chunk-3GZT3L6F.js → chunk-DDVIBKIB.js} +326 -481
- package/{chunk-2K4NDPT5.js → chunk-DFUPZE6V.js} +20 -12
- package/{chunk-BGTUGS3T.js → chunk-DKMOY3QI.js} +4 -30
- package/chunk-EGRJC4ZN.js +91 -0
- package/{chunk-K6QEHQZ3.js → chunk-EKLRRZIN.js} +1 -1
- package/{chunk-6HYVJV7B.js → chunk-ESHYE7WU.js} +2 -1
- package/{chunk-XFG3BAKN.js → chunk-FMEVI5TG.js} +65 -0
- package/{chunk-U4TRT5V4.js → chunk-GEPHJJW4.js} +1 -1
- package/chunk-GJXRIOLS.js +241 -0
- package/{chunk-VP4WJWKW.js → chunk-GM6PU7B6.js} +431 -345
- package/chunk-HS7MLR74.js +38 -0
- package/{chunk-3AUWC6EM.js → chunk-HUCT7HID.js} +5 -84
- package/chunk-IDAU4UFS.js +437 -0
- package/{chunk-Q76I4SXI.js → chunk-IHEC7VBF.js} +1 -1
- package/{chunk-OWHNFZNW.js → chunk-IKWTTKWG.js} +4 -4
- package/{chunk-3LY4F7SV.js → chunk-INZZJSQF.js} +348 -331
- package/{chunk-ZJH3LKEW.js → chunk-IR6W62Q6.js} +102 -15
- package/{chunk-RH53LMEJ.js → chunk-J44TVX2O.js} +2 -4
- package/{chunk-CF2WZF4N.js → chunk-J6WH4PYZ.js} +0 -8
- package/chunk-KHCLMKZZ.js +3062 -0
- package/{chunk-WHLVPK32.js → chunk-KMSZPTM6.js} +27 -3
- package/{chunk-L3GCUVOH.js → chunk-KSRFVP36.js} +1 -1
- package/{chunk-XDHHF73Q.js → chunk-LUIHOUZC.js} +95 -95
- package/{chunk-UOJRKY5J.js → chunk-M2YMQOLC.js} +44 -53
- package/chunk-M3JEW6N6.js +193 -0
- package/{chunk-MITD7CON.js → chunk-MDIAECHA.js} +1461 -301
- package/{chunk-IXZX5CJK.js → chunk-MQRZ5QUH.js} +1 -1
- package/{chunk-3ASDTTEI.js → chunk-MRWGHF56.js} +2 -0
- package/{chunk-Q3CSL43H.js → chunk-N4XRDM26.js} +1 -1
- package/{chunk-D34RI6NI.js → chunk-NNWHHCVP.js} +75 -1
- package/{chunk-CAENRKNJ.js → chunk-OR2HNLVO.js} +126 -88
- package/chunk-OW765XBU.js +10 -0
- package/{chunk-VMWR7VNI.js → chunk-PRMMCFIN.js} +13 -9
- package/{chunk-JZPBVBIY.js → chunk-QTZD6HBK.js} +18 -8
- package/chunk-RCFIB45Q.js +28 -0
- package/{chunk-7S54ZGF6.js → chunk-RJKIB55Y.js} +256 -12
- package/chunk-RPRRIFXV.js +231 -0
- package/chunk-RQFO3CAF.js +300 -0
- package/chunk-RY57GLGW.js +188 -0
- package/{chunk-YHGHADBQ.js → chunk-SCUETSRP.js} +4 -4
- package/{chunk-TA6EA2A3.js → chunk-TFK3HUNQ.js} +182 -20
- package/{chunk-LAXMH7JY.js → chunk-UM4H3URE.js} +18 -15
- package/{chunk-6YABCOFU.js → chunk-UNHKVD2N.js} +1 -1
- package/{chunk-G5GVZAXF.js → chunk-UNOTBWZZ.js} +15 -19
- package/{chunk-GE6IWA5N.js → chunk-UNZDCI3O.js} +126 -1
- package/chunk-URMS4XY2.js +10 -0
- package/{chunk-SFWZUTCI.js → chunk-VBUQYOX7.js} +2 -2
- package/{chunk-FXFGNOT2.js → chunk-VFVCYIRQ.js} +1 -1
- package/chunk-VIDPVFP3.js +20 -0
- package/{chunk-5RDLGLAP.js → chunk-WJSW43QZ.js} +4 -7
- package/{chunk-CF7S2RYZ.js → chunk-WLH5BAKX.js} +6 -6
- package/{chunk-VVEH6XUE.js → chunk-X2DAEZ3X.js} +1 -1
- package/{chunk-2IJAKBK2.js → chunk-X664KVEV.js} +426 -246
- package/{chunk-3FCNXC2J.js → chunk-XRO5VGQ6.js} +3735 -1394
- package/chunk-Y5GCAMGP.js +9 -0
- package/{chunk-O3JR45Q2.js → chunk-YBMI5JAH.js} +44 -44
- package/{chunk-V42OE5HT.js → chunk-YDTYDA5W.js} +3 -3
- package/chunk-YYLHWIW6.js +48 -0
- package/{chunk-AOS5IN2I.js → chunk-ZHYK3N56.js} +1 -1
- package/{chunk-PJ2DDQQM.js → chunk-ZURFOV5J.js} +2 -2
- package/{chunk-3UGKATZQ.js → chunk-ZWS6DUHX.js} +26 -435
- package/chunk-ZZ2MH7LE.js +84 -0
- package/{cliExecutor-BBUVQU4L.js → cliExecutor-DW3PHGEL.js} +2 -2
- package/{clipboardy-BVE3LVEH.js → clipboardy-MMBYVRLF.js} +166 -372
- package/{codingSkills-V35TRR4Y.js → codingSkills-DY5MINPG.js} +5 -4
- package/{createAgentAutomationAction-WLRNE7C4.js → createAgentAutomationAction-H6ZRPXBR.js} +41 -31
- package/createDialogAction-UJ6LFJYM.js +61 -0
- package/{createPageAction-7YROVZ3W.js → createPageAction-KVPT3IRK.js} +57 -47
- package/{db-6DPSJ6WT.js → db-3H3JECGY.js} +45 -5
- package/{dbSlice-BBL3PEVW.js → dbSlice-UI2VCBLG.js} +13 -12
- package/{deleteFile-RJTEPOT4.js → deleteFile-XQXPBFFB.js} +7 -6
- package/dialogCommands-6ASXJP3H.js +82 -0
- package/{dialogSlice-N4HPG6HM.js → dialogSlice-B7KCGHMY.js} +37 -29
- package/{docCreateCommands-GRA5BHSA.js → docCreateCommands-S4E4MKVC.js} +42 -56
- package/{docDeleteCommands-ONIJM5MD.js → docDeleteCommands-M7XLKWRM.js} +44 -58
- package/{docReadCommands-H55VQ2US.js → docReadCommands-LSCMW2FR.js} +42 -56
- package/{docStore-B5AHDNW5.js → docStore-ZYWZWIRB.js} +40 -30
- package/{docUpdateCommands-ZQIQVGC2.js → docUpdateCommands-OMRBAFOB.js} +45 -59
- package/{fetchMessages-VPPQDDZ4.js → fetchMessages-7QRCCRYK.js} +3 -3
- package/{getPricing-QO5TYNCK.js → getPricing-L2ENXWHV.js} +7 -6
- package/{handleSendMessageAction-IN5XX5U7.js → handleSendMessageAction-Y2XKODRT.js} +39 -31
- package/index.js +74 -74
- package/{lib-FYYBQIXS.js → lib-2ZTNRXR4.js} +432 -183
- package/{localDialogRead-3DBXVYXS.js → localDialogRead-SLMPV5SK.js} +2 -2
- package/{localRuntimeAuthority-NDUA2D7Y.js → localRuntimeAuthority-S77B5QVB.js} +10 -4
- package/{localRuntimeDb-GKYRBWLQ.js → localRuntimeDb-N3H3HQ7G.js} +1 -1
- package/{machineCommands-H3UMKE76.js → machineCommands-62RUZVSW.js} +95 -85
- package/{machineInfo-M6KB6HZN.js → machineInfo-66ZFUMLE.js} +1 -1
- package/machineWsRunDispatch-L3HD3FSF.js +129 -0
- package/{models-WDUTTYFS.js → models-OX2S5C6Q.js} +2 -2
- package/{offlineMarxistsAgentCommand-E6LUG63A.js → offlineMarxistsAgentCommand-GEH6SNNA.js} +1 -1
- package/package.json +1 -4
- package/{read-64OQDO3I.js → read-2VHEHCAN.js} +8 -7
- package/{readDocTool-MXM3T6PE.js → readDocTool-CSWD6NPC.js} +1 -2
- package/{readlineWorkspace-XVJZDCSC.js → readlineWorkspace-3MOJWFM7.js} +3358 -3409
- package/{removeDialogAgentAction-NEKVAMSH.js → removeDialogAgentAction-2T7BPM3T.js} +19 -17
- package/{runAgentClientLoop-H7U53QB6.js → runAgentClientLoop-Y5UW544I.js} +73 -64
- package/{runtimeDoctorCommands-WI2YZUSJ.js → runtimeDoctorCommands-KHGQKT3B.js} +6 -6
- package/{setDialogExtraReferencesAction-WTOHQDIV.js → setDialogExtraReferencesAction-GPT37HTW.js} +15 -14
- package/{setPrimaryDialogAgentAction-LDJOYC4F.js → setPrimaryDialogAgentAction-3746P7IW.js} +19 -17
- package/{settingSlice-4M37TN7V.js → settingSlice-FIFOQ6OR.js} +16 -14
- package/{skillDiscovery-5U6RYAHN.js → skillDiscovery-KLLKXPUO.js} +4 -4
- package/{slateUtils-2M7MUTWX.js → slateUtils-VO2FU36K.js} +1 -1
- package/{spaceCommands-7VVKJBDV.js → spaceCommands-NKSBD5G3.js} +45 -241
- package/{spaceSlice-T6YK6D34.js → spaceSlice-L44CI2QR.js} +39 -61
- package/{streamAgentChatTurn-RQ63QFQ7.js → streamAgentChatTurn-7DU4Z2VJ.js} +1262 -150
- package/{switchDialogAgentAction-XVWGKR2Z.js → switchDialogAgentAction-MQTUTQHL.js} +14 -13
- package/syncMapping-RK2MANUX.js +43 -0
- package/{tableCommands-RJZ3V4TF.js → tableCommands-64FZBAI3.js} +9 -8
- package/{toolApiClient-ARGFDJAG.js → toolApiClient-B2MFXMEG.js} +3 -3
- package/tools-2JI52WJP.js +99 -0
- package/{tuiSummaryLlmCaller-SRZ4QQUP.js → tuiSummaryLlmCaller-EAWQ3IZX.js} +25 -21
- package/{updateCommands-AK2RDOFR.js → updateCommands-MNDUIKN7.js} +2 -2
- package/{updateDialogTitleAction-BBDSWHNG.js → updateDialogTitleAction-HW33OIJI.js} +49 -38
- package/agentRecordCommands-JFZRQJQ4.js +0 -103
- package/agentRunCommand-NOX5FLKO.js +0 -121
- package/chunk-AYMOSAHE.js +0 -3158
- package/chunk-D2BPX6DQ.js +0 -1707
- package/chunk-DCDL3GC4.js +0 -171
- package/chunk-F3MP7CP6.js +0 -73
- package/chunk-WZSRQNQG.js +0 -2587
- package/createDialogAction-Y6YV64QB.js +0 -52
- package/dialogCommands-XLO5CAHZ.js +0 -95
- package/machineWsRunDispatch-HONRUK3R.js +0 -119
- package/tools-KYZX3BGO.js +0 -90
- package/{chunk-Z5MXSEOJ.js → chunk-RQSOAMPJ.js} +2 -2
- package/{chunk-JDSUTNYY.js → chunk-SAQQLJZ5.js} +3 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// packages/core/positiveFiniteNumberOrFallback.ts
|
|
2
|
+
function parsePositiveFiniteNumberOrFallback(value, fallback) {
|
|
3
|
+
const parsed = Number(value);
|
|
4
|
+
return Number.isFinite(parsed) && parsed > 0 ? parsed : fallback;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export {
|
|
8
|
+
parsePositiveFiniteNumberOrFallback
|
|
9
|
+
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getPublicImageAgentMode
|
|
3
|
+
} from "./chunk-VIDPVFP3.js";
|
|
1
4
|
import {
|
|
2
5
|
clipHeadAndTail
|
|
3
6
|
} from "./chunk-JEXVIMYZ.js";
|
|
@@ -5,86 +8,83 @@ import {
|
|
|
5
8
|
inlineImageUrlsForCustomProvider,
|
|
6
9
|
prepareTools,
|
|
7
10
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
11
|
-
} from "./chunk-AYMOSAHE.js";
|
|
12
|
-
import {
|
|
13
|
-
accumulateToolCallDelta,
|
|
14
|
-
createThinkParserState,
|
|
15
|
-
createToolCallTextParserState,
|
|
16
|
-
flushThinkParser,
|
|
17
|
-
flushToolCallTextParserIntoCallback,
|
|
18
|
-
processContentChunkWithToolCallStripping,
|
|
19
|
-
processThinkChunk
|
|
20
|
-
} from "./chunk-N7J63Q6C.js";
|
|
11
|
+
} from "./chunk-LUIHOUZC.js";
|
|
21
12
|
import {
|
|
22
13
|
performFetchRequest
|
|
23
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-54BAYVCY.js";
|
|
24
15
|
import {
|
|
25
16
|
createSSEParser,
|
|
26
|
-
findToolExecutor,
|
|
27
|
-
toolDefinitionsByName
|
|
28
|
-
} from "./chunk-MITD7CON.js";
|
|
29
|
-
import {
|
|
30
17
|
createToolRunId,
|
|
18
|
+
findToolExecutor,
|
|
31
19
|
getToolResultErrorData,
|
|
20
|
+
toolDefinitionsByName,
|
|
32
21
|
toolRunFailed,
|
|
33
22
|
toolRunSetPending,
|
|
34
23
|
toolRunStarted,
|
|
35
24
|
toolRunSucceeded
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import {
|
|
38
|
-
getPublicImageAgentMode
|
|
39
|
-
} from "./chunk-E3APEOIM.js";
|
|
25
|
+
} from "./chunk-MDIAECHA.js";
|
|
40
26
|
import {
|
|
41
|
-
|
|
42
|
-
} from "./chunk-
|
|
27
|
+
getCurrentSpaceId
|
|
28
|
+
} from "./chunk-XRO5VGQ6.js";
|
|
43
29
|
import {
|
|
44
30
|
addToolMessage,
|
|
45
|
-
getModelInfo,
|
|
46
31
|
messageStreamEnd,
|
|
47
32
|
messageStreaming,
|
|
48
33
|
updateToolMessage
|
|
49
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-DDVIBKIB.js";
|
|
50
35
|
import {
|
|
51
36
|
streamAgentChatTurn
|
|
52
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-66CWPJK2.js";
|
|
53
38
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
39
|
+
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
40
|
+
} from "./chunk-BFPSVRCQ.js";
|
|
41
|
+
import {
|
|
42
|
+
accumulateToolCallDelta,
|
|
43
|
+
createThinkParserState,
|
|
44
|
+
createToolCallTextParserState,
|
|
45
|
+
flushThinkParser,
|
|
46
|
+
flushToolCallTextParserIntoCallback,
|
|
47
|
+
processContentChunkWithToolCallStripping,
|
|
48
|
+
processThinkChunk
|
|
49
|
+
} from "./chunk-N7J63Q6C.js";
|
|
50
|
+
import {
|
|
51
|
+
getModelInfo
|
|
52
|
+
} from "./chunk-GJXRIOLS.js";
|
|
53
|
+
import {
|
|
54
|
+
getApiEndpoint
|
|
55
|
+
} from "./chunk-DFUPZE6V.js";
|
|
56
56
|
import {
|
|
57
57
|
addActiveController,
|
|
58
58
|
removeActiveController,
|
|
59
59
|
tokenUsageLiveUpdate
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-MRWGHF56.js";
|
|
61
61
|
import {
|
|
62
|
-
|
|
63
|
-
} from "./chunk-
|
|
62
|
+
toErrorMessage
|
|
63
|
+
} from "./chunk-HNMXYYJR.js";
|
|
64
64
|
import {
|
|
65
65
|
selectCurrentServer
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-UNOTBWZZ.js";
|
|
67
67
|
import {
|
|
68
68
|
write
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-UM4H3URE.js";
|
|
70
70
|
import {
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
createDialogMessageKeyAndId,
|
|
72
|
+
dialogMessageKey,
|
|
73
|
+
toTrimmedString
|
|
74
|
+
} from "./chunk-KMSZPTM6.js";
|
|
73
75
|
import {
|
|
74
76
|
createAsyncThunk,
|
|
75
77
|
selectIdentityToken
|
|
76
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-X664KVEV.js";
|
|
77
79
|
import {
|
|
78
80
|
isAbortError
|
|
79
|
-
} from "./chunk-
|
|
80
|
-
import {
|
|
81
|
-
createDialogMessageKeyAndId,
|
|
82
|
-
dialogMessageKey,
|
|
83
|
-
toTrimmedString
|
|
84
|
-
} from "./chunk-WHLVPK32.js";
|
|
81
|
+
} from "./chunk-WJSW43QZ.js";
|
|
85
82
|
import {
|
|
86
83
|
asTrimmedString
|
|
87
84
|
} from "./chunk-3EUW3WEO.js";
|
|
85
|
+
import {
|
|
86
|
+
extractCustomId
|
|
87
|
+
} from "./chunk-BJIRLHJR.js";
|
|
88
88
|
import {
|
|
89
89
|
isRecord
|
|
90
90
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -1597,7 +1597,7 @@ var sendOpenAICompletionsRequest = async ({
|
|
|
1597
1597
|
const controller = new AbortController();
|
|
1598
1598
|
thunkSignal.addEventListener("abort", () => controller.abort());
|
|
1599
1599
|
const signal = controller.signal;
|
|
1600
|
-
const streamSpaceId =
|
|
1600
|
+
const streamSpaceId = getCurrentSpaceId() || void 0;
|
|
1601
1601
|
let messageId;
|
|
1602
1602
|
let msgKey;
|
|
1603
1603
|
if (parentMessageId) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildLocalAgentLookupKeys,
|
|
3
3
|
shouldReadAgentKeyRemotely
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-X2DAEZ3X.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveCliAgentKeyInput
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EKLRRZIN.js";
|
|
8
8
|
import {
|
|
9
9
|
toErrorMessage
|
|
10
10
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-A7GB5UGH.js";
|
|
22
22
|
import {
|
|
23
23
|
createAgentKey
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-KMSZPTM6.js";
|
|
25
25
|
|
|
26
26
|
// packages/cli/agentRecordHelpers.ts
|
|
27
27
|
import { readFileSync } from "node:fs";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
asTrimmedLowercaseString
|
|
3
|
+
} from "./chunk-QSJ3HFEF.js";
|
|
4
|
+
|
|
5
|
+
// packages/agent-runtime/serverProxyPolicy.ts
|
|
6
|
+
var OAUTH_APIKEY_REFS = /* @__PURE__ */ new Set([
|
|
7
|
+
"antigravity",
|
|
8
|
+
"xai",
|
|
9
|
+
"chatgpt",
|
|
10
|
+
"claude",
|
|
11
|
+
"cursor"
|
|
12
|
+
]);
|
|
13
|
+
function isGoogleFamilyProvider(provider) {
|
|
14
|
+
const normalized = asTrimmedLowercaseString(provider);
|
|
15
|
+
return normalized === "google" || normalized.startsWith("google-");
|
|
16
|
+
}
|
|
17
|
+
function isOAuthApiKeyRef(value) {
|
|
18
|
+
const ref = asTrimmedLowercaseString(value);
|
|
19
|
+
return ref.length > 0 && OAUTH_APIKEY_REFS.has(ref);
|
|
20
|
+
}
|
|
21
|
+
function shouldUseServerProxy(agentConfig, requestProvider) {
|
|
22
|
+
const effectiveProvider = (requestProvider || agentConfig.provider || "").toLowerCase();
|
|
23
|
+
if (isGoogleFamilyProvider(effectiveProvider)) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
if (isOAuthApiKeyRef(agentConfig.apiKeyRef)) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
if (agentConfig.apiSource === "custom" && isRemoteCustomEndpoint(agentConfig.customProviderUrl)) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
return !!agentConfig.useServerProxy;
|
|
33
|
+
}
|
|
34
|
+
var LOCAL_HOSTS = /* @__PURE__ */ new Set(["127.0.0.1", "localhost", "::1", "0.0.0.0"]);
|
|
35
|
+
function isRemoteCustomEndpoint(url) {
|
|
36
|
+
if (typeof url !== "string") return false;
|
|
37
|
+
try {
|
|
38
|
+
const host = new URL(url).hostname.toLowerCase();
|
|
39
|
+
return !LOCAL_HOSTS.has(host);
|
|
40
|
+
} catch {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
isOAuthApiKeyRef,
|
|
47
|
+
shouldUseServerProxy
|
|
48
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildSkillDiscoveryLayer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2UECQ7RE.js";
|
|
4
4
|
import {
|
|
5
5
|
load
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KHCLMKZZ.js";
|
|
7
7
|
|
|
8
8
|
// packages/agent-runtime/skillDiscovery.ts
|
|
9
9
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|