nolo-cli 0.29.2 → 0.30.0-alpha.10
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-BFVTGZXE.js → _executeModel-5ARVVUIK.js} +64 -69
- package/{action-LG32A6DJ.js → action-HI3VRQLP.js} +15 -16
- package/{addContentAction-MPGMBJTQ.js → addContentAction-NCURJ6PK.js} +13 -13
- package/{addDialogAgentAction-ZH23WDID.js → addDialogAgentAction-RCY4ECF4.js} +12 -12
- package/{agentDeleteCommand-4S4STG42.js → agentDeleteCommand-5Q6TDCJU.js} +62 -40
- package/{agentEmailCommands-3F4IP4DI.js → agentEmailCommands-DSX4BJ2I.js} +77 -81
- package/{agentGrantCommands-JNDE4RWR.js → agentGrantCommands-E7ZZFRHK.js} +2 -1
- package/{agentListCommands-JCRV2XF6.js → agentListCommands-S66HL5RO.js} +59 -41
- package/{agentMachineCommands-KYXPYSFP.js → agentMachineCommands-ULCQ5ZNN.js} +55 -36
- package/{agentPullCommand-ZZGU5KOY.js → agentPullCommand-4V36XNGV.js} +4 -3
- package/{agentRecordCommands-UADUPIXO.js → agentRecordCommands-2AA3GEGO.js} +75 -79
- package/{agentRunCommand-MJWSR53W.js → agentRunCommand-3KOT77XY.js} +79 -83
- package/{agentRunControl-SNUKXN6J.js → agentRunControl-AKBN2366.js} +13 -1
- package/{agentRuntimeLocal-PC5RRRPT.js → agentRuntimeLocal-7TMDJD4S.js} +50 -31
- package/{agentSlice-C5OYLNBT.js → agentSlice-6IQRQZX3.js} +13 -14
- package/{appDeleteCommands-ZXODZ5AD.js → appDeleteCommands-UUDIWLNE.js} +55 -36
- package/{appDeployCommands-AWC6JPZH.js → appDeployCommands-CO6SZ7YP.js} +55 -36
- package/{appDeployStatusCommands-74NXMDAI.js → appDeployStatusCommands-QEVKVECJ.js} +55 -36
- package/{appGetCommands-6YGIAP5L.js → appGetCommands-3YSCCLK4.js} +55 -36
- package/{appListCommands-DZWBHMNK.js → appListCommands-FBJAFZKK.js} +55 -36
- package/{authCommand-XMQHBK5L.js → authCommand-3ADNCFKD.js} +16 -16
- package/{authCommands-JSOG2H4E.js → authCommands-CXJ6PI2O.js} +7 -7
- package/{chunk-TOGGHWHI.js → chunk-2CYGIPJH.js} +3 -3
- package/{chunk-HRJEPMZY.js → chunk-2HQ4OG6N.js} +2 -2
- package/{chunk-XMLRJUU5.js → chunk-2IJAKBK2.js} +12 -10
- package/{chunk-OLWMGSW2.js → chunk-2SOQY5L6.js} +41 -39
- package/{chunk-7H3UTGPM.js → chunk-3AUWC6EM.js} +82 -3
- package/{chunk-6HTWA77J.js → chunk-43EPBPZ2.js} +1 -1
- package/{chunk-RJBTU7AS.js → chunk-4F77PJBR.js} +302 -14
- package/{chunk-RZNYL4LW.js → chunk-4SAV7BD7.js} +65 -1
- package/{chunk-R5V5G73M.js → chunk-5RDLGLAP.js} +0 -1
- package/{chunk-VKBTAQWT.js → chunk-6JH2DF7J.js} +6 -6
- package/{chunk-DZ3XJVET.js → chunk-AOS5IN2I.js} +1 -1
- package/{chunk-5ZXNLOAG.js → chunk-ARPAHODF.js} +17 -10
- package/{chunk-IC7W63RM.js → chunk-ATK5WJOA.js} +4 -4
- package/{chunk-OEWEE4VW.js → chunk-BIPRFBC2.js} +4 -2
- package/{chunk-YTA2QOEE.js → chunk-CAENRKNJ.js} +15 -0
- package/chunk-CYRMUTGB.js +1707 -0
- package/chunk-DCDL3GC4.js +171 -0
- package/{chunk-WX3ZOSTL.js → chunk-EBNSAABL.js} +24 -26
- package/{chunk-2TYLTEAH.js → chunk-EDWM6D6L.js} +1 -1
- package/{chunk-GT3GG2H7.js → chunk-EIQDGAAE.js} +148 -2
- package/chunk-F3MP7CP6.js +73 -0
- package/{chunk-R7LOFGRE.js → chunk-G5GVZAXF.js} +19 -15
- package/{chunk-KEF5OBOZ.js → chunk-GKXS4F2I.js} +33 -27
- package/{chunk-R3JSTDQO.js → chunk-GVPMJPCT.js} +1 -1
- package/{chunk-WMB7GVPN.js → chunk-IPSPETAL.js} +152 -1177
- package/{chunk-MQRZ5QUH.js → chunk-IXZX5CJK.js} +1 -1
- package/{chunk-2FX23RGA.js → chunk-J3LHGBNO.js} +5 -5
- package/{chunk-VHBWHNVT.js → chunk-K6QEHQZ3.js} +8 -4
- package/{chunk-HRPWRVBI.js → chunk-KGEVMUMI.js} +11 -11
- package/{chunk-L65QKSVJ.js → chunk-L3GCUVOH.js} +1 -1
- package/{chunk-G2BZ43DV.js → chunk-LAXMH7JY.js} +14 -14
- package/chunk-LEVCXTDN.js +5558 -0
- package/{chunk-HEXXIS77.js → chunk-N2IX3ZYK.js} +1 -1
- package/{chunk-32ZM6HVI.js → chunk-NZBH7FTB.js} +95 -95
- package/{chunk-XOIF2TNF.js → chunk-OB6FBSH3.js} +13 -0
- package/{chunk-PSK2RUHV.js → chunk-OIW2RJ74.js} +360 -2
- package/{chunk-FRN5QOKN.js → chunk-PACNSC37.js} +19 -4
- package/{chunk-QC6ZWDSV.js → chunk-PIC6Z7VI.js} +3 -3
- package/{chunk-H5S4XUGI.js → chunk-Q243PXRU.js} +185 -158
- package/{chunk-BBGRJB5E.js → chunk-QBOW6RZN.js} +4 -4
- package/{chunk-FVOSIYXM.js → chunk-R5Y4XELF.js} +43 -394
- package/{chunk-DF7SMWEV.js → chunk-RWJPDKPB.js} +1 -1
- package/{chunk-NXMJ55RU.js → chunk-S2BMRBR2.js} +3 -3
- package/{chunk-GC34RRTQ.js → chunk-SWYMCHM7.js} +1 -69
- package/chunk-T27IEBNQ.js +149 -0
- package/{chunk-GMJS5AYP.js → chunk-T4X4GCYT.js} +19 -179
- package/{chunk-4BDPDTJU.js → chunk-TXVSNFHC.js} +8 -8
- package/{chunk-JSB4N6NU.js → chunk-V54H24CQ.js} +3 -3
- package/chunk-VQ4QPCKE.js +3226 -0
- package/{chunk-Q5RXHXKU.js → chunk-W3UDJJMA.js} +189 -122
- package/{chunk-L3QFIBZG.js → chunk-WTGCTVJG.js} +1 -1
- package/{chunk-XS7UPVR7.js → chunk-WTPC3XD4.js} +5 -5
- package/{chunk-WSQLK2KR.js → chunk-XFGM5PJP.js} +6 -6
- package/{chunk-HALKDXKP.js → chunk-XORE26Z4.js} +8 -4
- package/chunk-YLC42PIE.js +7889 -0
- package/{chunk-SKDNBYZK.js → chunk-ZJ2WITOO.js} +2 -2
- package/{chunk-L6RBX4L4.js → chunk-ZJH3LKEW.js} +21 -9
- package/{codingSkills-EN6Z6G6U.js → codingSkills-V35TRR4Y.js} +1 -2
- package/{createAgentAutomationAction-BK4UZJKU.js → createAgentAutomationAction-EYNYY2LB.js} +31 -37
- package/{createDialogAction-MJJUI2MK.js → createDialogAction-OUIRWYZP.js} +34 -39
- package/{createPageAction-YMZ7K363.js → createPageAction-2I5PHJFF.js} +45 -51
- package/{dbSlice-6QJYQUBV.js → dbSlice-BBL3PEVW.js} +12 -12
- package/{deleteFile-WDZ3VM7B.js → deleteFile-RJTEPOT4.js} +6 -6
- package/{dialogCommands-OKH45ASS.js → dialogCommands-5CL4QYQ7.js} +55 -38
- package/{dialogSlice-UDOKNDHB.js → dialogSlice-EKKVFKBJ.js} +28 -35
- package/{docCreateCommands-MCLMR4TE.js → docCreateCommands-QHCLYGNW.js} +54 -37
- package/{docDeleteCommands-ONDHI7JV.js → docDeleteCommands-DS6KOU6N.js} +56 -39
- package/{docReadCommands-FCXBMISW.js → docReadCommands-FRI5DAKH.js} +54 -37
- package/{docStore-N66O4CGH.js → docStore-V7EJS4PX.js} +30 -36
- package/{docUpdateCommands-T3XN6XOX.js → docUpdateCommands-RQO5ZTXT.js} +57 -40
- package/{fetchMessages-W4IKHPCS.js → fetchMessages-VPPQDDZ4.js} +3 -3
- package/{getPricing-X6I23RN6.js → getPricing-67TQVKFV.js} +6 -7
- package/{handleSendMessageAction-KC4AYUZP.js → handleSendMessageAction-KCF7KII4.js} +30 -37
- package/index.js +72 -72
- package/{localDialogRead-UFLBS6OT.js → localDialogRead-P72W2U2R.js} +1 -1
- package/{machineCommands-DIMRFA3Y.js → machineCommands-IAGAKTHV.js} +78 -82
- package/{machineWsRunDispatch-2DYJZI6Z.js → machineWsRunDispatch-JGKC2HEK.js} +73 -77
- package/{models-YT32CTT5.js → models-WDUTTYFS.js} +2 -2
- package/{offlineMarxistsAgentCommand-5OOWZLJI.js → offlineMarxistsAgentCommand-E6LUG63A.js} +6 -2
- package/package.json +1 -1
- package/{read-C7Y6LSBM.js → read-64OQDO3I.js} +7 -7
- package/{readDocTool-TOHRYJHP.js → readDocTool-MXM3T6PE.js} +2 -1
- package/{readlineWorkspace-HUPHMLDG.js → readlineWorkspace-5AQHHIBK.js} +209 -183
- package/{removeDialogAgentAction-WZXPOH5S.js → removeDialogAgentAction-NEKVAMSH.js} +16 -17
- package/{runAgentClientLoop-5TGSUKHV.js → runAgentClientLoop-6OGPS6SI.js} +63 -67
- package/{setDialogExtraReferencesAction-INZY2ENI.js → setDialogExtraReferencesAction-WTOHQDIV.js} +13 -13
- package/{setPrimaryDialogAgentAction-WCVLPYCF.js → setPrimaryDialogAgentAction-LDJOYC4F.js} +16 -17
- package/{settingSlice-IDUM4LWU.js → settingSlice-4M37TN7V.js} +14 -15
- package/{skillDiscovery-ITA7BI7A.js → skillDiscovery-I3QRA7NE.js} +2 -2
- package/{spaceCommands-XSSDB3YK.js → spaceCommands-VTDNKTSF.js} +240 -41
- package/{spaceSlice-BXDCO6PT.js → spaceSlice-LGUZMB7Y.js} +29 -35
- package/{streamAgentChatTurn-HRFMVSVC.js → streamAgentChatTurn-TIGCZUNZ.js} +133 -1301
- package/{switchDialogAgentAction-YBFFCBOD.js → switchDialogAgentAction-XVWGKR2Z.js} +12 -12
- package/{tableCommands-QSZILI7I.js → tableCommands-RJZ3V4TF.js} +7 -7
- package/{toolApiClient-WVTUYOFM.js → toolApiClient-ARGFDJAG.js} +2 -2
- package/{tools-5V6FHWQU.js → tools-BQAOPYMR.js} +51 -56
- package/{tuiSummaryLlmCaller-GCUPULOV.js → tuiSummaryLlmCaller-YQBN5IMG.js} +12 -12
- package/{updateDialogTitleAction-W62C4W4K.js → updateDialogTitleAction-E6HMEDPH.js} +39 -45
- package/chunk-5CS33IBL.js +0 -301
- package/chunk-5MMAK75Q.js +0 -15
- package/chunk-HYSJHRWD.js +0 -669
- package/chunk-MRC4Q34M.js +0 -188
- package/chunk-SIZQB7BD.js +0 -91
- package/chunk-UEOPA6MV.js +0 -641
- package/chunk-UFL6WHHJ.js +0 -15419
- package/chunk-VIDPVFP3.js +0 -20
- package/chunk-W2LZV5GE.js +0 -231
- package/chunk-Y5GCAMGP.js +0 -9
- package/chunk-YYLHWIW6.js +0 -48
- package/chunk-Z54ZAZZC.js +0 -1791
- package/chunk-ZZ2MH7LE.js +0 -84
- package/{chunk-OMP5L5NF.js → chunk-44HACRCK.js} +3 -3
- package/{chunk-ZVZMT3EA.js → chunk-KWCLUYGQ.js} +3 -3
- package/{chunk-NRY4GCKJ.js → chunk-WHLVPK32.js} +3 -3
- package/{chunk-RQSOAMPJ.js → chunk-Z5MXSEOJ.js} +2 -2
- package/{runtimeDoctorCommands-HSU632DY.js → runtimeDoctorCommands-E2OUORHK.js} +3 -3
|
@@ -7,23 +7,23 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
patch,
|
|
9
9
|
selectById
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-WWC7I6TA.js";
|
|
13
|
-
import "./chunk-SKDNBYZK.js";
|
|
14
|
-
import "./chunk-I42VC5KR.js";
|
|
10
|
+
} from "./chunk-LAXMH7JY.js";
|
|
11
|
+
import "./chunk-ZJ2WITOO.js";
|
|
15
12
|
import "./chunk-QSJ3HFEF.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-XMLRJUU5.js";
|
|
18
|
-
import "./chunk-R5V5G73M.js";
|
|
19
|
-
import "./chunk-GBRG75BQ.js";
|
|
20
|
-
import "./chunk-3EUW3WEO.js";
|
|
21
|
-
import "./chunk-U6VC4MU4.js";
|
|
13
|
+
import "./chunk-ZJH3LKEW.js";
|
|
22
14
|
import "./chunk-TOW4E763.js";
|
|
23
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-2IJAKBK2.js";
|
|
16
|
+
import "./chunk-5RDLGLAP.js";
|
|
24
17
|
import "./chunk-LCBAMY2M.js";
|
|
25
18
|
import "./chunk-4SN6J65J.js";
|
|
26
19
|
import "./chunk-CF7PE763.js";
|
|
20
|
+
import "./chunk-WHLVPK32.js";
|
|
21
|
+
import "./chunk-WWC7I6TA.js";
|
|
22
|
+
import "./chunk-GBRG75BQ.js";
|
|
23
|
+
import "./chunk-3EUW3WEO.js";
|
|
24
|
+
import "./chunk-U6VC4MU4.js";
|
|
25
|
+
import "./chunk-KUG52IAP.js";
|
|
26
|
+
import "./chunk-I42VC5KR.js";
|
|
27
27
|
import "./chunk-G3SUCT4W.js";
|
|
28
28
|
import {
|
|
29
29
|
__toESM
|
|
@@ -13,22 +13,22 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_NOLO_SERVER_URL
|
|
15
15
|
} from "./chunk-OLZBQWZU.js";
|
|
16
|
-
import {
|
|
17
|
-
asOptionalFiniteNumber
|
|
18
|
-
} from "./chunk-WWC7I6TA.js";
|
|
19
16
|
import {
|
|
20
17
|
asTrimmedLowercaseString
|
|
21
18
|
} from "./chunk-QSJ3HFEF.js";
|
|
22
19
|
import {
|
|
23
20
|
getAllServers
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import {
|
|
26
|
-
isRecord
|
|
27
|
-
} from "./chunk-KUG52IAP.js";
|
|
21
|
+
} from "./chunk-5RDLGLAP.js";
|
|
28
22
|
import {
|
|
29
23
|
NOLO_CLUSTER_SERVERS
|
|
30
24
|
} from "./chunk-LCBAMY2M.js";
|
|
31
25
|
import "./chunk-CF7PE763.js";
|
|
26
|
+
import {
|
|
27
|
+
asOptionalFiniteNumber
|
|
28
|
+
} from "./chunk-WWC7I6TA.js";
|
|
29
|
+
import {
|
|
30
|
+
isRecord
|
|
31
|
+
} from "./chunk-KUG52IAP.js";
|
|
32
32
|
import {
|
|
33
33
|
asOptionalTrimmedString
|
|
34
34
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
getToolRequestContext,
|
|
8
8
|
resolveToolApiBaseUrl,
|
|
9
9
|
resolveToolBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-3ASDTTEI.js";
|
|
10
|
+
} from "./chunk-44HACRCK.js";
|
|
12
11
|
import "./chunk-DWLEOOGR.js";
|
|
12
|
+
import "./chunk-3ASDTTEI.js";
|
|
13
13
|
import "./chunk-QSJ3HFEF.js";
|
|
14
14
|
import "./chunk-TOW4E763.js";
|
|
15
15
|
import "./chunk-KUG52IAP.js";
|
|
@@ -8,30 +8,61 @@ import {
|
|
|
8
8
|
toolQueryFunc,
|
|
9
9
|
toolQueryFunctionSchema,
|
|
10
10
|
toolRegistry
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-IPSPETAL.js";
|
|
12
|
+
import "./chunk-Z5MXSEOJ.js";
|
|
13
|
+
import "./chunk-KXKQO4Q6.js";
|
|
14
|
+
import "./chunk-2HQ4OG6N.js";
|
|
15
15
|
import "./chunk-KQHGZWSV.js";
|
|
16
|
+
import "./chunk-CYRMUTGB.js";
|
|
17
|
+
import "./chunk-6JH2DF7J.js";
|
|
18
|
+
import "./chunk-43EPBPZ2.js";
|
|
19
|
+
import "./chunk-F3MP7CP6.js";
|
|
20
|
+
import "./chunk-SWYMCHM7.js";
|
|
21
|
+
import "./chunk-44HACRCK.js";
|
|
22
|
+
import "./chunk-T4X4GCYT.js";
|
|
23
|
+
import "./chunk-DCDL3GC4.js";
|
|
16
24
|
import "./chunk-3LY4F7SV.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-UFL6WHHJ.js";
|
|
24
|
-
import "./chunk-XOIF2TNF.js";
|
|
25
|
-
import "./chunk-MRC4Q34M.js";
|
|
26
|
-
import "./chunk-SIZQB7BD.js";
|
|
27
|
-
import "./chunk-RJBTU7AS.js";
|
|
28
|
-
import "./chunk-YYLHWIW6.js";
|
|
29
|
-
import "./chunk-CWMSB67P.js";
|
|
30
|
-
import "./chunk-IC7W63RM.js";
|
|
25
|
+
import "./chunk-YLC42PIE.js";
|
|
26
|
+
import "./chunk-LEVCXTDN.js";
|
|
27
|
+
import "./chunk-OB6FBSH3.js";
|
|
28
|
+
import "./chunk-ATK5WJOA.js";
|
|
29
|
+
import "./chunk-4F77PJBR.js";
|
|
30
|
+
import "./chunk-JZPBVBIY.js";
|
|
31
31
|
import "./chunk-5RGU3J7P.js";
|
|
32
32
|
import "./chunk-M76ECQRD.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-HNMXYYJR.js";
|
|
34
|
+
import "./chunk-DWLEOOGR.js";
|
|
35
|
+
import "./chunk-3ASDTTEI.js";
|
|
36
|
+
import "./chunk-V54H24CQ.js";
|
|
37
|
+
import "./chunk-WTGCTVJG.js";
|
|
38
|
+
import "./chunk-CWMSB67P.js";
|
|
39
|
+
import "./chunk-EIQDGAAE.js";
|
|
40
|
+
import "./chunk-ZHXJ6M7T.js";
|
|
41
|
+
import "./chunk-CAENRKNJ.js";
|
|
42
|
+
import "./chunk-63W5N6P3.js";
|
|
43
|
+
import "./chunk-VF4K2QE6.js";
|
|
44
|
+
import "./chunk-KGEVMUMI.js";
|
|
45
|
+
import "./chunk-G5GVZAXF.js";
|
|
46
|
+
import "./chunk-KX6YBIHG.js";
|
|
47
|
+
import "./chunk-LAXMH7JY.js";
|
|
48
|
+
import "./chunk-ZJ2WITOO.js";
|
|
49
|
+
import "./chunk-QSJ3HFEF.js";
|
|
50
|
+
import "./chunk-ZJH3LKEW.js";
|
|
51
|
+
import "./chunk-TOW4E763.js";
|
|
52
|
+
import "./chunk-2IJAKBK2.js";
|
|
53
|
+
import "./chunk-5RDLGLAP.js";
|
|
54
|
+
import "./chunk-LCBAMY2M.js";
|
|
55
|
+
import "./chunk-4SN6J65J.js";
|
|
56
|
+
import "./chunk-CF7PE763.js";
|
|
57
|
+
import "./chunk-VP4WJWKW.js";
|
|
58
|
+
import "./chunk-L3GCUVOH.js";
|
|
59
|
+
import "./chunk-WHLVPK32.js";
|
|
60
|
+
import "./chunk-WWC7I6TA.js";
|
|
61
|
+
import "./chunk-GBRG75BQ.js";
|
|
62
|
+
import "./chunk-3EUW3WEO.js";
|
|
63
|
+
import "./chunk-U6VC4MU4.js";
|
|
64
|
+
import "./chunk-KUG52IAP.js";
|
|
65
|
+
import "./chunk-3AUWC6EM.js";
|
|
35
66
|
import {
|
|
36
67
|
TOOL_PACKS,
|
|
37
68
|
addDefaultLightWebToolsForConfiguredAgents,
|
|
@@ -39,44 +70,8 @@ import {
|
|
|
39
70
|
} from "./chunk-CF7S2RYZ.js";
|
|
40
71
|
import "./chunk-ZWJOGMKH.js";
|
|
41
72
|
import "./chunk-WZSRQNQG.js";
|
|
42
|
-
import "./chunk-UEOPA6MV.js";
|
|
43
|
-
import "./chunk-HYSJHRWD.js";
|
|
44
|
-
import "./chunk-5MMAK75Q.js";
|
|
45
|
-
import "./chunk-5CS33IBL.js";
|
|
46
|
-
import "./chunk-JZPBVBIY.js";
|
|
47
|
-
import "./chunk-GT3GG2H7.js";
|
|
48
|
-
import "./chunk-ZHXJ6M7T.js";
|
|
49
|
-
import "./chunk-ZZ2MH7LE.js";
|
|
50
|
-
import "./chunk-OMP5L5NF.js";
|
|
51
|
-
import "./chunk-3ASDTTEI.js";
|
|
52
|
-
import "./chunk-DWLEOOGR.js";
|
|
53
|
-
import "./chunk-KXKQO4Q6.js";
|
|
54
|
-
import "./chunk-HNMXYYJR.js";
|
|
55
|
-
import "./chunk-L3QFIBZG.js";
|
|
56
|
-
import "./chunk-YTA2QOEE.js";
|
|
57
|
-
import "./chunk-HRPWRVBI.js";
|
|
58
|
-
import "./chunk-R7LOFGRE.js";
|
|
59
|
-
import "./chunk-Y5GCAMGP.js";
|
|
60
73
|
import "./chunk-UZ6XXCVR.js";
|
|
61
|
-
import "./chunk-KX6YBIHG.js";
|
|
62
|
-
import "./chunk-JSB4N6NU.js";
|
|
63
|
-
import "./chunk-G2BZ43DV.js";
|
|
64
|
-
import "./chunk-NRY4GCKJ.js";
|
|
65
|
-
import "./chunk-WWC7I6TA.js";
|
|
66
|
-
import "./chunk-SKDNBYZK.js";
|
|
67
74
|
import "./chunk-I42VC5KR.js";
|
|
68
|
-
import "./chunk-QSJ3HFEF.js";
|
|
69
|
-
import "./chunk-L6RBX4L4.js";
|
|
70
|
-
import "./chunk-XMLRJUU5.js";
|
|
71
|
-
import "./chunk-R5V5G73M.js";
|
|
72
|
-
import "./chunk-GBRG75BQ.js";
|
|
73
|
-
import "./chunk-3EUW3WEO.js";
|
|
74
|
-
import "./chunk-U6VC4MU4.js";
|
|
75
|
-
import "./chunk-TOW4E763.js";
|
|
76
|
-
import "./chunk-KUG52IAP.js";
|
|
77
|
-
import "./chunk-LCBAMY2M.js";
|
|
78
|
-
import "./chunk-4SN6J65J.js";
|
|
79
|
-
import "./chunk-CF7PE763.js";
|
|
80
75
|
import "./chunk-G3SUCT4W.js";
|
|
81
76
|
import "./chunk-4VNS5WPM.js";
|
|
82
77
|
export {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BUILTIN_SUMMARY_LLM_CONFIG
|
|
3
|
-
} from "./chunk-XOIF2TNF.js";
|
|
4
1
|
import {
|
|
5
2
|
buildPlatformChatCompletionRequest,
|
|
6
3
|
canUsePlatformChatProvider,
|
|
7
4
|
parsePlatformChatCompletionResponse,
|
|
8
5
|
resolvePlatformChatProviderConfig
|
|
9
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XORE26Z4.js";
|
|
7
|
+
import "./chunk-T27IEBNQ.js";
|
|
10
8
|
import "./chunk-N7J63Q6C.js";
|
|
11
9
|
import "./chunk-D34RI6NI.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
import "./chunk-WTPC3XD4.js";
|
|
11
|
+
import {
|
|
12
|
+
BUILTIN_SUMMARY_LLM_CONFIG
|
|
13
|
+
} from "./chunk-OB6FBSH3.js";
|
|
16
14
|
import "./chunk-DWLEOOGR.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-EIQDGAAE.js";
|
|
16
|
+
import "./chunk-ZHXJ6M7T.js";
|
|
17
|
+
import "./chunk-CAENRKNJ.js";
|
|
19
18
|
import "./chunk-QSJ3HFEF.js";
|
|
20
|
-
import "./chunk-3EUW3WEO.js";
|
|
21
|
-
import "./chunk-KUG52IAP.js";
|
|
22
19
|
import "./chunk-4SN6J65J.js";
|
|
23
20
|
import "./chunk-CF7PE763.js";
|
|
21
|
+
import "./chunk-3EUW3WEO.js";
|
|
22
|
+
import "./chunk-KUG52IAP.js";
|
|
23
|
+
import "./chunk-I42VC5KR.js";
|
|
24
24
|
import "./chunk-G3SUCT4W.js";
|
|
25
25
|
import "./chunk-4VNS5WPM.js";
|
|
26
26
|
|
|
@@ -1,74 +1,68 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildDialogFallbackTitleFromMessages,
|
|
3
|
+
resolveDialogTitle
|
|
4
|
+
} from "./chunk-2MBTWINN.js";
|
|
5
|
+
import {
|
|
6
|
+
updateContentTitle
|
|
7
|
+
} from "./chunk-YLC42PIE.js";
|
|
1
8
|
import {
|
|
2
9
|
isAssistantToolStub,
|
|
3
10
|
selectAllMsgs,
|
|
4
|
-
|
|
5
|
-
} from "./chunk-
|
|
11
|
+
serializeMessageContent
|
|
12
|
+
} from "./chunk-LEVCXTDN.js";
|
|
6
13
|
import {
|
|
7
14
|
BUILTIN_TITLE_LLM_CONFIG
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-SIZQB7BD.js";
|
|
15
|
+
} from "./chunk-OB6FBSH3.js";
|
|
16
|
+
import "./chunk-ATK5WJOA.js";
|
|
11
17
|
import {
|
|
12
18
|
runLlm
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-CWMSB67P.js";
|
|
16
|
-
import "./chunk-IC7W63RM.js";
|
|
19
|
+
} from "./chunk-4F77PJBR.js";
|
|
20
|
+
import "./chunk-JZPBVBIY.js";
|
|
17
21
|
import "./chunk-5RGU3J7P.js";
|
|
18
22
|
import {
|
|
19
23
|
require_date_fns
|
|
20
24
|
} from "./chunk-M76ECQRD.js";
|
|
21
|
-
import "./chunk-L65QKSVJ.js";
|
|
22
|
-
import {
|
|
23
|
-
buildDialogFallbackTitleFromMessages,
|
|
24
|
-
resolveDialogTitle
|
|
25
|
-
} from "./chunk-2MBTWINN.js";
|
|
26
|
-
import {
|
|
27
|
-
serializeMessageContent
|
|
28
|
-
} from "./chunk-HYSJHRWD.js";
|
|
29
|
-
import "./chunk-5MMAK75Q.js";
|
|
30
|
-
import "./chunk-5CS33IBL.js";
|
|
31
|
-
import "./chunk-JZPBVBIY.js";
|
|
32
|
-
import "./chunk-GT3GG2H7.js";
|
|
33
|
-
import "./chunk-ZHXJ6M7T.js";
|
|
34
|
-
import "./chunk-3ASDTTEI.js";
|
|
35
|
-
import "./chunk-DWLEOOGR.js";
|
|
36
25
|
import "./chunk-HNMXYYJR.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-R7LOFGRE.js";
|
|
40
|
-
import "./chunk-Y5GCAMGP.js";
|
|
41
|
-
import "./chunk-UZ6XXCVR.js";
|
|
42
|
-
import "./chunk-KX6YBIHG.js";
|
|
26
|
+
import "./chunk-DWLEOOGR.js";
|
|
27
|
+
import "./chunk-3ASDTTEI.js";
|
|
43
28
|
import {
|
|
44
29
|
normalizeSpaceId
|
|
45
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-V54H24CQ.js";
|
|
31
|
+
import "./chunk-WTGCTVJG.js";
|
|
32
|
+
import "./chunk-CWMSB67P.js";
|
|
33
|
+
import "./chunk-EIQDGAAE.js";
|
|
34
|
+
import "./chunk-ZHXJ6M7T.js";
|
|
35
|
+
import "./chunk-CAENRKNJ.js";
|
|
36
|
+
import "./chunk-G5GVZAXF.js";
|
|
37
|
+
import "./chunk-KX6YBIHG.js";
|
|
46
38
|
import {
|
|
47
39
|
patch,
|
|
48
40
|
selectById
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-WWC7I6TA.js";
|
|
52
|
-
import "./chunk-SKDNBYZK.js";
|
|
53
|
-
import "./chunk-I42VC5KR.js";
|
|
41
|
+
} from "./chunk-LAXMH7JY.js";
|
|
42
|
+
import "./chunk-ZJ2WITOO.js";
|
|
54
43
|
import "./chunk-QSJ3HFEF.js";
|
|
55
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-ZJH3LKEW.js";
|
|
45
|
+
import {
|
|
46
|
+
extractCustomId
|
|
47
|
+
} from "./chunk-TOW4E763.js";
|
|
56
48
|
import {
|
|
57
49
|
selectIdentityUserId
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-
|
|
50
|
+
} from "./chunk-2IJAKBK2.js";
|
|
51
|
+
import "./chunk-5RDLGLAP.js";
|
|
52
|
+
import "./chunk-LCBAMY2M.js";
|
|
53
|
+
import "./chunk-4SN6J65J.js";
|
|
54
|
+
import "./chunk-CF7PE763.js";
|
|
55
|
+
import "./chunk-L3GCUVOH.js";
|
|
56
|
+
import "./chunk-WHLVPK32.js";
|
|
57
|
+
import "./chunk-WWC7I6TA.js";
|
|
60
58
|
import "./chunk-GBRG75BQ.js";
|
|
61
59
|
import {
|
|
62
60
|
asTrimmedString
|
|
63
61
|
} from "./chunk-3EUW3WEO.js";
|
|
64
62
|
import "./chunk-U6VC4MU4.js";
|
|
65
|
-
import {
|
|
66
|
-
extractCustomId
|
|
67
|
-
} from "./chunk-TOW4E763.js";
|
|
68
63
|
import "./chunk-KUG52IAP.js";
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-CF7PE763.js";
|
|
64
|
+
import "./chunk-UZ6XXCVR.js";
|
|
65
|
+
import "./chunk-I42VC5KR.js";
|
|
72
66
|
import "./chunk-G3SUCT4W.js";
|
|
73
67
|
import {
|
|
74
68
|
__toESM
|
package/chunk-5CS33IBL.js
DELETED
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getCredentialsDir
|
|
3
|
-
} from "./chunk-JZPBVBIY.js";
|
|
4
|
-
import {
|
|
5
|
-
asNonEmptyStringArray
|
|
6
|
-
} from "./chunk-I42VC5KR.js";
|
|
7
|
-
import {
|
|
8
|
-
asTrimmedString
|
|
9
|
-
} from "./chunk-3EUW3WEO.js";
|
|
10
|
-
import {
|
|
11
|
-
asOptionalPositiveFiniteNumber
|
|
12
|
-
} from "./chunk-U6VC4MU4.js";
|
|
13
|
-
import {
|
|
14
|
-
isRecord
|
|
15
|
-
} from "./chunk-KUG52IAP.js";
|
|
16
|
-
|
|
17
|
-
// packages/agent-runtime/fileCredentialBroker.ts
|
|
18
|
-
import {
|
|
19
|
-
chmodSync,
|
|
20
|
-
existsSync,
|
|
21
|
-
mkdirSync,
|
|
22
|
-
readFileSync,
|
|
23
|
-
unlinkSync,
|
|
24
|
-
writeFileSync
|
|
25
|
-
} from "node:fs";
|
|
26
|
-
import { homedir } from "node:os";
|
|
27
|
-
import { join } from "node:path";
|
|
28
|
-
|
|
29
|
-
// packages/agent-runtime/credentialBroker.ts
|
|
30
|
-
function assertCredentialRef(ref) {
|
|
31
|
-
const trimmed = asTrimmedString(ref);
|
|
32
|
-
if (!trimmed) {
|
|
33
|
-
throw new Error("invalid_ref");
|
|
34
|
-
}
|
|
35
|
-
if (trimmed.includes("..") || trimmed.includes("/") || trimmed.includes("\\")) {
|
|
36
|
-
throw new Error("invalid_ref");
|
|
37
|
-
}
|
|
38
|
-
return trimmed;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// packages/agent-runtime/fileCredentialBroker.ts
|
|
42
|
-
function getApiKeyCredentialsDir(homeDir = homedir()) {
|
|
43
|
-
return join(getCredentialsDir(homeDir), "keys");
|
|
44
|
-
}
|
|
45
|
-
function credentialRefToFileName(ref) {
|
|
46
|
-
const safe = assertCredentialRef(ref).replace(/[^a-zA-Z0-9._-]+/g, "_");
|
|
47
|
-
if (!safe || safe === "." || safe === "..") {
|
|
48
|
-
throw new Error(`Credential ref is not filesystem-safe: ${ref}`);
|
|
49
|
-
}
|
|
50
|
-
return `${safe}.json`;
|
|
51
|
-
}
|
|
52
|
-
function getApiKeyCredentialPath(ref, homeDir = homedir()) {
|
|
53
|
-
return join(getApiKeyCredentialsDir(homeDir), credentialRefToFileName(ref));
|
|
54
|
-
}
|
|
55
|
-
function ensurePrivateDir(dir) {
|
|
56
|
-
mkdirSync(dir, { recursive: true, mode: 448 });
|
|
57
|
-
try {
|
|
58
|
-
chmodSync(dir, 448);
|
|
59
|
-
} catch {
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
function writePrivateFile(path, body) {
|
|
63
|
-
writeFileSync(path, body, { encoding: "utf8", mode: 384 });
|
|
64
|
-
try {
|
|
65
|
-
chmodSync(path, 384);
|
|
66
|
-
} catch {
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
function readApiKeyCredential(ref, homeDir = homedir()) {
|
|
70
|
-
const path = getApiKeyCredentialPath(ref, homeDir);
|
|
71
|
-
if (!existsSync(path)) return null;
|
|
72
|
-
try {
|
|
73
|
-
const raw = readFileSync(path, "utf8");
|
|
74
|
-
const parsed = JSON.parse(raw);
|
|
75
|
-
if (typeof parsed?.secret !== "string" || !parsed.secret) return null;
|
|
76
|
-
return parsed.secret;
|
|
77
|
-
} catch {
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
function writeApiKeyCredential(ref, secret, homeDir = homedir(), now = Date.now()) {
|
|
82
|
-
const trimmedSecret = secret.trim();
|
|
83
|
-
if (!trimmedSecret) {
|
|
84
|
-
throw new Error("Cannot store an empty credential secret.");
|
|
85
|
-
}
|
|
86
|
-
assertCredentialRef(ref);
|
|
87
|
-
const dir = getApiKeyCredentialsDir(homeDir);
|
|
88
|
-
ensurePrivateDir(dir);
|
|
89
|
-
const path = getApiKeyCredentialPath(ref, homeDir);
|
|
90
|
-
const payload = {
|
|
91
|
-
secret: trimmedSecret,
|
|
92
|
-
updatedAt: now
|
|
93
|
-
};
|
|
94
|
-
writePrivateFile(path, `${JSON.stringify(payload, null, 2)}
|
|
95
|
-
`);
|
|
96
|
-
}
|
|
97
|
-
function removeApiKeyCredential(ref, homeDir = homedir()) {
|
|
98
|
-
assertCredentialRef(ref);
|
|
99
|
-
const path = getApiKeyCredentialPath(ref, homeDir);
|
|
100
|
-
if (!existsSync(path)) return;
|
|
101
|
-
unlinkSync(path);
|
|
102
|
-
}
|
|
103
|
-
function hasApiKeyCredential(ref, homeDir = homedir()) {
|
|
104
|
-
return readApiKeyCredential(ref, homeDir) !== null;
|
|
105
|
-
}
|
|
106
|
-
function createFileCredentialBroker(options = {}) {
|
|
107
|
-
const homeDir = options.homeDir ?? homedir();
|
|
108
|
-
const now = options.now ?? Date.now;
|
|
109
|
-
return {
|
|
110
|
-
get(ref) {
|
|
111
|
-
return readApiKeyCredential(ref, homeDir);
|
|
112
|
-
},
|
|
113
|
-
put(ref, secret) {
|
|
114
|
-
writeApiKeyCredential(ref, secret, homeDir, now());
|
|
115
|
-
},
|
|
116
|
-
delete(ref) {
|
|
117
|
-
removeApiKeyCredential(ref, homeDir);
|
|
118
|
-
},
|
|
119
|
-
has(ref) {
|
|
120
|
-
return hasApiKeyCredential(ref, homeDir);
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// packages/agent-runtime/migrateAgentSecrets.ts
|
|
126
|
-
function buildAgentApiKeyCredentialRef(agentKey) {
|
|
127
|
-
const key = asTrimmedString(agentKey);
|
|
128
|
-
if (!key) throw new Error("agentKey is required to build a credential ref.");
|
|
129
|
-
return `api-key:${key}`;
|
|
130
|
-
}
|
|
131
|
-
function readRawApiKey(agent) {
|
|
132
|
-
return asTrimmedString(agent.apiKey);
|
|
133
|
-
}
|
|
134
|
-
function resolveTargetRef(agent) {
|
|
135
|
-
const fromCredential = asTrimmedString(agent.credentialRef);
|
|
136
|
-
if (fromCredential) return fromCredential;
|
|
137
|
-
const fromApiKeyRef = asTrimmedString(agent.apiKeyRef);
|
|
138
|
-
if (fromApiKeyRef.startsWith("api-key:")) return fromApiKeyRef;
|
|
139
|
-
return buildAgentApiKeyCredentialRef(agent.key);
|
|
140
|
-
}
|
|
141
|
-
async function brokerHas(broker, ref) {
|
|
142
|
-
return Boolean(await broker.has(ref));
|
|
143
|
-
}
|
|
144
|
-
async function brokerPut(broker, ref, secret) {
|
|
145
|
-
await broker.put(ref, secret);
|
|
146
|
-
}
|
|
147
|
-
async function migrateAgentSecrets(args) {
|
|
148
|
-
const { agent, broker } = args;
|
|
149
|
-
const raw = readRawApiKey(agent);
|
|
150
|
-
const migration = asTrimmedString(agent.credentialMigration);
|
|
151
|
-
if (migration === "done" && !raw) {
|
|
152
|
-
const ref = typeof agent.credentialRef === "string" && agent.credentialRef.trim() || (typeof agent.apiKeyRef === "string" && agent.apiKeyRef.startsWith("api-key:") ? agent.apiKeyRef.trim() : "") || void 0;
|
|
153
|
-
return {
|
|
154
|
-
updates: {},
|
|
155
|
-
status: "already-done",
|
|
156
|
-
...ref ? { credentialRef: ref } : {},
|
|
157
|
-
phase: "complete"
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
if (!raw && migration !== "pending") {
|
|
161
|
-
return { updates: {}, status: "noop", phase: "none" };
|
|
162
|
-
}
|
|
163
|
-
const targetRef = resolveTargetRef(agent);
|
|
164
|
-
if (raw) {
|
|
165
|
-
await brokerPut(broker, targetRef, raw);
|
|
166
|
-
const stored2 = await brokerHas(broker, targetRef);
|
|
167
|
-
if (!stored2) {
|
|
168
|
-
return {
|
|
169
|
-
updates: {
|
|
170
|
-
credentialRef: targetRef,
|
|
171
|
-
credentialMigration: "pending"
|
|
172
|
-
},
|
|
173
|
-
status: "resumed-pending",
|
|
174
|
-
credentialRef: targetRef,
|
|
175
|
-
phase: "put"
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
return {
|
|
179
|
-
updates: {
|
|
180
|
-
apiKey: null,
|
|
181
|
-
credentialRef: targetRef,
|
|
182
|
-
// Keep apiKeyRef for resolution if not already an OAuth provider name.
|
|
183
|
-
// Prefer explicit credentialRef; set apiKeyRef only when empty so OAuth agents stay intact.
|
|
184
|
-
...!(typeof agent.apiKeyRef === "string" && agent.apiKeyRef.trim()) ? { apiKeyRef: targetRef } : {},
|
|
185
|
-
credentialMigration: "done"
|
|
186
|
-
},
|
|
187
|
-
status: migration === "pending" ? "resumed-pending" : "migrated",
|
|
188
|
-
credentialRef: targetRef,
|
|
189
|
-
phase: "strip"
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
const stored = await brokerHas(broker, targetRef);
|
|
193
|
-
if (stored) {
|
|
194
|
-
return {
|
|
195
|
-
updates: {
|
|
196
|
-
credentialRef: targetRef,
|
|
197
|
-
credentialMigration: "done",
|
|
198
|
-
...!(typeof agent.apiKeyRef === "string" && agent.apiKeyRef.trim()) ? { apiKeyRef: targetRef } : {}
|
|
199
|
-
},
|
|
200
|
-
status: "resumed-pending",
|
|
201
|
-
credentialRef: targetRef,
|
|
202
|
-
phase: "complete"
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
return {
|
|
206
|
-
updates: {
|
|
207
|
-
credentialRef: targetRef,
|
|
208
|
-
credentialMigration: "pending"
|
|
209
|
-
},
|
|
210
|
-
status: "awaiting-secret",
|
|
211
|
-
credentialRef: targetRef,
|
|
212
|
-
phase: "put"
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
function applyAgentSecretMigrationUpdates(record, updates) {
|
|
216
|
-
const next = { ...record };
|
|
217
|
-
if ("apiKey" in updates) {
|
|
218
|
-
if (updates.apiKey === null || updates.apiKey === "") {
|
|
219
|
-
delete next.apiKey;
|
|
220
|
-
} else if (typeof updates.apiKey === "string") {
|
|
221
|
-
next.apiKey = updates.apiKey;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
if (updates.apiKeyRef !== void 0) next.apiKeyRef = updates.apiKeyRef;
|
|
225
|
-
if (updates.credentialRef !== void 0) next.credentialRef = updates.credentialRef;
|
|
226
|
-
if (updates.credentialMigration !== void 0) {
|
|
227
|
-
next.credentialMigration = updates.credentialMigration;
|
|
228
|
-
}
|
|
229
|
-
return next;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
// packages/agent-runtime/runtimeToolPolicy.ts
|
|
233
|
-
function unique(values) {
|
|
234
|
-
return [...new Set(values)];
|
|
235
|
-
}
|
|
236
|
-
function normalizeAgentRuntimeToolPolicy(value) {
|
|
237
|
-
if (!isRecord(value)) return void 0;
|
|
238
|
-
return {
|
|
239
|
-
version: 1,
|
|
240
|
-
...asNonEmptyStringArray(value.agentTools).length ? { agentTools: unique(asNonEmptyStringArray(value.agentTools)) } : {},
|
|
241
|
-
...asNonEmptyStringArray(value.runtimeTools).length ? { runtimeTools: unique(asNonEmptyStringArray(value.runtimeTools)) } : {},
|
|
242
|
-
...isRecord(value.workspace) ? { workspace: { ...value.workspace } } : {},
|
|
243
|
-
...isRecord(value.shell) ? { shell: { ...value.shell } } : {},
|
|
244
|
-
...isRecord(value.isolation) ? { isolation: { ...value.isolation } } : {},
|
|
245
|
-
...isRecord(value.git) ? { git: { ...value.git } } : {},
|
|
246
|
-
...isRecord(value.budget) ? { budget: { ...value.budget } } : {},
|
|
247
|
-
...isRecord(value.audit) ? { audit: { ...value.audit } } : {}
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
function runtimeBindingRecord(runtimeBinding) {
|
|
251
|
-
return isRecord(runtimeBinding) ? runtimeBinding : void 0;
|
|
252
|
-
}
|
|
253
|
-
function runtimeToolNamesFromPolicy(policy) {
|
|
254
|
-
return asNonEmptyStringArray(policy?.runtimeTools);
|
|
255
|
-
}
|
|
256
|
-
function readPositiveNumber(value) {
|
|
257
|
-
return asOptionalPositiveFiniteNumber(Number(value));
|
|
258
|
-
}
|
|
259
|
-
function resolveRequestedRuntimeToolNames(args) {
|
|
260
|
-
const runtimeBinding = runtimeBindingRecord(args.agentConfig.runtimeBinding);
|
|
261
|
-
const bindingPolicy = normalizeAgentRuntimeToolPolicy(
|
|
262
|
-
runtimeBinding?.runtimeToolPolicy
|
|
263
|
-
);
|
|
264
|
-
const bindingSnapshotPolicy = normalizeAgentRuntimeToolPolicy(
|
|
265
|
-
runtimeBinding?.runtimeToolPolicySnapshot
|
|
266
|
-
);
|
|
267
|
-
return unique([
|
|
268
|
-
...asNonEmptyStringArray(args.agentConfig.toolNames),
|
|
269
|
-
...runtimeToolNamesFromPolicy(
|
|
270
|
-
normalizeAgentRuntimeToolPolicy(args.agentConfig.runtimeToolPolicy)
|
|
271
|
-
),
|
|
272
|
-
...runtimeToolNamesFromPolicy(bindingPolicy),
|
|
273
|
-
...runtimeToolNamesFromPolicy(bindingSnapshotPolicy)
|
|
274
|
-
]);
|
|
275
|
-
}
|
|
276
|
-
function resolveCurrentRunRuntimeToolPolicy(agentConfig) {
|
|
277
|
-
const runtimeBinding = runtimeBindingRecord(agentConfig?.runtimeBinding);
|
|
278
|
-
return normalizeAgentRuntimeToolPolicy(
|
|
279
|
-
runtimeBinding?.runtimeToolPolicySnapshot ?? agentConfig?.runtimeToolPolicy ?? runtimeBinding?.runtimeToolPolicy
|
|
280
|
-
);
|
|
281
|
-
}
|
|
282
|
-
function resolveLocalRuntimeEnvFromPolicy(runtimeEnv, policy) {
|
|
283
|
-
return { ...runtimeEnv };
|
|
284
|
-
}
|
|
285
|
-
function resolveLocalWorkspaceExecutorOptionsFromPolicy(policy) {
|
|
286
|
-
const maxOutputBytes = readPositiveNumber(policy?.shell?.maxOutputBytes);
|
|
287
|
-
return {
|
|
288
|
-
...maxOutputBytes ? { commandOutputLimit: Math.floor(maxOutputBytes) } : {}
|
|
289
|
-
};
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
export {
|
|
293
|
-
createFileCredentialBroker,
|
|
294
|
-
migrateAgentSecrets,
|
|
295
|
-
applyAgentSecretMigrationUpdates,
|
|
296
|
-
normalizeAgentRuntimeToolPolicy,
|
|
297
|
-
resolveRequestedRuntimeToolNames,
|
|
298
|
-
resolveCurrentRunRuntimeToolPolicy,
|
|
299
|
-
resolveLocalRuntimeEnvFromPolicy,
|
|
300
|
-
resolveLocalWorkspaceExecutorOptionsFromPolicy
|
|
301
|
-
};
|
package/chunk-5MMAK75Q.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
compactWhitespace
|
|
3
|
-
} from "./chunk-DWLEOOGR.js";
|
|
4
|
-
|
|
5
|
-
// packages/core/clipCompactText.ts
|
|
6
|
-
function clipCompactText(value, max, ellipsis = "...") {
|
|
7
|
-
const compact = compactWhitespace(value);
|
|
8
|
-
if (compact.length <= max) return compact;
|
|
9
|
-
if (max <= ellipsis.length) return compact.slice(0, max);
|
|
10
|
-
return `${compact.slice(0, max - ellipsis.length)}${ellipsis}`;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
clipCompactText
|
|
15
|
-
};
|