nolo-cli 0.191.0-alpha.2 → 0.191.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_executeModel-WQ2D4ZRH.js → _executeModel-4HQQXPN4.js} +44 -46
- package/{action-BHWB4MOK.js → action-HNG2JKWK.js} +3 -3
- package/{addContentAction-BY375D35.js → addContentAction-FEN3H2EE.js} +6 -6
- package/{addDialogAgentAction-HOZYOCWC.js → addDialogAgentAction-DDA6S3WS.js} +5 -5
- package/{agentDeleteCommand-TTCVC74A.js → agentDeleteCommand-HZFWSKED.js} +57 -59
- package/{agentEmailCommands-PTG35KER.js → agentEmailCommands-HRYMVHC7.js} +59 -61
- package/{agentListCommands-MAG736RU.js → agentListCommands-HE2CCZEW.js} +33 -31
- package/{agentMachineCommands-ATOZK3R5.js → agentMachineCommands-ISSULCRR.js} +23 -23
- package/{agentProviderCommands-XSZUCNIR.js → agentProviderCommands-4EAYN3ZY.js} +3 -3
- package/{agentRecordCommands-KGRPIJN5.js → agentRecordCommands-WGAMWQLA.js} +57 -59
- package/{agentRunCommand-75VVJTNU.js → agentRunCommand-7EQ64FIB.js} +59 -61
- package/{agentRunControl-6HHESKDB.js → agentRunControl-EJPBPVLU.js} +5 -5
- package/{agentRuntimeLocal-NAAYNHCW.js → agentRuntimeLocal-ONSIOOQB.js} +20 -20
- package/{agentSlice-UJPIKKKP.js → agentSlice-CHWNVAS5.js} +6 -6
- package/{appDeleteCommands-VDHCDVBF.js → appDeleteCommands-RNAF4V5C.js} +25 -25
- package/{appDeployCommands-V6UTKVXR.js → appDeployCommands-LTIZ4QH7.js} +25 -25
- package/{appDeployStatusCommands-4UIFSEPC.js → appDeployStatusCommands-OJJR4LDK.js} +25 -25
- package/{appGetCommands-XKDXLC3C.js → appGetCommands-UJZF6U4V.js} +25 -25
- package/{appListCommands-BELRVX2Y.js → appListCommands-M5C5BIDY.js} +25 -25
- package/{authCommand-RV5MQDWN.js → authCommand-RMUBRAXF.js} +11 -11
- package/{builtinSkillRegistry-7MBUY5EY.js → builtinSkillRegistry-XDBPVNY6.js} +3 -5
- package/{chromeOpsCommands-C46BXHEE.js → chromeOpsCommands-P4PFQDT7.js} +19 -4
- package/{chunk-7UODCAWW.js → chunk-32GANJHJ.js} +1 -1
- package/{chunk-G6OOUQWJ.js → chunk-4KB6WQUL.js} +2 -0
- package/{chunk-LHOR5MC2.js → chunk-4KYV2TAI.js} +164 -323
- package/{chunk-5EFNSNAV.js → chunk-6CFXWUYE.js} +7 -7
- package/{chunk-6XIE5ZGI.js → chunk-6HIGYUBQ.js} +1 -1
- package/{chunk-LBXUNNDS.js → chunk-6K2AKJAD.js} +1 -1
- package/{chunk-U5ZHUOLT.js → chunk-6OBTQSJ2.js} +2 -2
- package/{chunk-XPL63OIC.js → chunk-7SUYSFPG.js} +140 -66
- package/{chunk-53RSTB7T.js → chunk-7TMVGMM3.js} +26 -31
- package/{chunk-ZBCBFOWC.js → chunk-A2ZMIRLN.js} +2 -2
- package/{chunk-MJWUBTK7.js → chunk-AOYR4XOA.js} +1 -1
- package/{chunk-IIX6VWLW.js → chunk-AV6IE6NM.js} +224 -38
- package/{chunk-WFUIXNKC.js → chunk-BMXR7CFX.js} +3 -3
- package/{chunk-JIFYXQRD.js → chunk-BTYQAODF.js} +26 -8
- package/{chunk-VHGD6FHV.js → chunk-BZKBX5BO.js} +28 -5
- package/{chunk-Q6RMLYSA.js → chunk-CMLBKYEI.js} +4 -2
- package/chunk-CMTTXP5Y.js +291 -0
- package/{chunk-OHRDHS4N.js → chunk-CVCRAO6Q.js} +9 -4
- package/{chunk-SM56M7N7.js → chunk-DBRXPVWY.js} +39 -5
- package/{chunk-2KBNF477.js → chunk-DSVR6ZAV.js} +30 -21
- package/{chunk-ADTJJVDJ.js → chunk-DXDG4XLD.js} +2838 -2255
- package/{chunk-R5LJWMZE.js → chunk-EMXVOJDB.js} +3 -3
- package/{chunk-KHCLMKZZ.js → chunk-EY7V7REW.js} +280 -6
- package/{chunk-KGP7UTNN.js → chunk-FNXSQ7A3.js} +15 -15
- package/{chunk-BTBT2566.js → chunk-FSEGCTZQ.js} +1 -1
- package/{chunk-CNMQATUF.js → chunk-GL7W7TTR.js} +2 -2
- package/{chunk-5KTQVMCX.js → chunk-GOO6G4PY.js} +85 -0
- package/{chunk-HTLIKE5U.js → chunk-GVMF62PR.js} +2 -2
- package/{chunk-UZHYRBUB.js → chunk-H4CFODT7.js} +137 -61
- package/{chunk-R4BMKAR5.js → chunk-HAB2UDLT.js} +1 -1
- package/{chunk-3NPXGNSK.js → chunk-HVXL4VOO.js} +348 -87
- package/{chunk-32ZKZET7.js → chunk-HWZT5DKX.js} +1 -1
- package/{chunk-GYVLAHA4.js → chunk-IY7DGZSY.js} +10 -4
- package/{chunk-FEDJHD5X.js → chunk-J5Z2SSIY.js} +6 -6
- package/{chunk-UVWBGWBO.js → chunk-JA6WCCDO.js} +3 -3
- package/{chunk-YE6A72XL.js → chunk-JI5MQU5B.js} +35 -31
- package/{chunk-TFSMPRAY.js → chunk-JLOCKFSI.js} +4 -4
- package/{chunk-UBLITLAZ.js → chunk-K2GL335R.js} +13 -3
- package/{chunk-DS5DAOIY.js → chunk-KYQXW7DL.js} +3 -3
- package/{chunk-5HAPEKNH.js → chunk-LFJRTOUV.js} +158 -43
- package/{chunk-N7E3LQ4A.js → chunk-LGW6A7GK.js} +1 -1
- package/{chunk-UNOILAZP.js → chunk-M6AGLVV4.js} +74 -2
- package/{chunk-BA2FHPS4.js → chunk-MOCY5LJI.js} +1 -1
- package/{chunk-INFHX73M.js → chunk-MR6L6U46.js} +55 -3
- package/{chunk-CTPFBJAF.js → chunk-N7IBYQEC.js} +182 -91
- package/{chunk-QU3TLYBR.js → chunk-NHI3JZP4.js} +32 -8
- package/{chunk-B2N5GZBU.js → chunk-OHYCQKPW.js} +6 -6
- package/{chunk-WAZ6BTSC.js → chunk-OOERQPG5.js} +1 -1
- package/{chunk-EHB4CKUI.js → chunk-OTKNEZE3.js} +9 -9
- package/chunk-OVBUUU7L.js +2648 -0
- package/{chunk-PVD7CRYV.js → chunk-P7SUBTGZ.js} +3 -3
- package/{chunk-RJ3EYB5G.js → chunk-PRIROPK4.js} +1 -1
- package/chunk-PRJ473FK.js +63 -0
- package/{chunk-K6TZSON4.js → chunk-PXERKNSJ.js} +1 -1
- package/{chunk-B6EZB6DW.js → chunk-QAYCF4CH.js} +2 -2
- package/{chunk-5DPVRMSY.js → chunk-RBJASUX4.js} +1 -1
- package/{chunk-NVOYW6H4.js → chunk-RDKNGJ5M.js} +12 -8
- package/{chunk-GTP6VNWH.js → chunk-RQ22OZD7.js} +3 -3
- package/{chunk-2E5M3JVS.js → chunk-RWGIVUH3.js} +11 -5
- package/{chunk-DFF6B7P7.js → chunk-RXUKDHS5.js} +1 -1
- package/{chunk-JLR5NWP2.js → chunk-RXX262QX.js} +17 -3
- package/{chunk-GC64WGMD.js → chunk-SM3NSZJV.js} +16 -5
- package/{chunk-A5BLRE3G.js → chunk-T3U2KQF4.js} +2 -2
- package/{chunk-HLAL63BZ.js → chunk-T43B7LB2.js} +1 -1
- package/{chunk-LCSAJ5TJ.js → chunk-UDKNC3CV.js} +3 -3
- package/{chunk-VE3FEZIT.js → chunk-WKGOIXFV.js} +5 -5
- package/{chunk-4YMD7B4Y.js → chunk-WPOKOKZA.js} +2 -2
- package/{chunk-YIRADHSY.js → chunk-WYKMOZTW.js} +1 -1
- package/{chunk-WRCZXJ4N.js → chunk-X4F26D5K.js} +2 -0
- package/{chunk-4MYCKDSI.js → chunk-XUOF4MA7.js} +2 -2
- package/{chunk-PD2YRFAI.js → chunk-Y5ZEHS3F.js} +1 -1
- package/{chunk-4CEAZRZ4.js → chunk-YU2DGFKG.js} +1 -1
- package/{chunk-TVGX5QIN.js → chunk-YUA6OAH5.js} +2 -2
- package/{chunk-53PBXLID.js → chunk-Z3MQYKRN.js} +17 -17
- package/{chunk-I3HWJODB.js → chunk-ZHOKF4MY.js} +31 -26
- package/{chunk-2XUOREKD.js → chunk-ZI5MFQ42.js} +5 -4
- package/{chunk-DYQXB46J.js → chunk-ZSCIGIJS.js} +1 -1
- package/{commandRegistry-4JHVRMW7.js → commandRegistry-O2657YC7.js} +86 -66
- package/{contentThunks-HQBAAXNW.js → contentThunks-THWDEBJU.js} +17 -17
- package/{cooldownCommands-4XKJFEBW.js → cooldownCommands-V4EEBD55.js} +3 -3
- package/{createAgentAutomationAction-KELPOVMP.js → createAgentAutomationAction-2ZZTFGWG.js} +17 -17
- package/{createDialogAction-Z3SASMTM.js → createDialogAction-FCRKPKIT.js} +20 -22
- package/{createPageAction-PNHOIG44.js → createPageAction-EC25JTKW.js} +18 -19
- package/{dbSlice-QAUXABCC.js → dbSlice-JK7LWBDO.js} +5 -5
- package/{deleteFile-R5OBP7OM.js → deleteFile-CE24BROO.js} +3 -3
- package/{dialogCommands-4BGV6DPD.js → dialogCommands-QH7BJ3DJ.js} +26 -26
- package/{dialogSlice-QHV6I3OQ.js → dialogSlice-Z5E7POEN.js} +16 -16
- package/{docCreateCommands-3CW75UF2.js → docCreateCommands-KP42NGIF.js} +26 -27
- package/{docDeleteCommands-NL4ZYMN5.js → docDeleteCommands-7YOCX5GC.js} +27 -28
- package/{docReadCommands-HXCNVDPQ.js → docReadCommands-EJEIAOKQ.js} +26 -27
- package/{docStore-LVMUSECS.js → docStore-6MHLMMWO.js} +6 -6
- package/{docUpdateCommands-RMVBAMDE.js → docUpdateCommands-ACJLISGA.js} +26 -27
- package/{getPricing-E2PLNWCR.js → getPricing-3PQY3TGI.js} +3 -3
- package/{handleSendMessageAction-7TONIXHY.js → handleSendMessageAction-MTOPN4D3.js} +86 -42
- package/index.js +7 -7
- package/{lib-4YTWAGY7.js → lib-5KKIBFIT.js} +439 -272
- package/{localRuntimeAdapter-HRAB7P5E.js → localRuntimeAdapter-4USQ3EP7.js} +55 -57
- package/{machineCommands-OTXFRTDA.js → machineCommands-CJMSDSOO.js} +56 -58
- package/{machineWsRunDispatch-KWVWOHHG.js → machineWsRunDispatch-YIPO76QH.js} +56 -58
- package/{memberThunks-ZAE52VIP.js → memberThunks-WT2KVRP4.js} +158 -55
- package/{models-UUNO6DOL.js → models-PJBE6JDV.js} +2 -2
- package/package.json +1 -1
- package/{providerPresetApply-JGNMO2KX.js → providerPresetApply-ISA35424.js} +5 -5
- package/{providerRegistry-33J3ZYFJ.js → providerRegistry-QIQCHVNP.js} +5 -5
- package/{read-D6NEWSGG.js → read-ILTT75DW.js} +3 -3
- package/{readDocTool-NTAXO7SX.js → readDocTool-374CFJYO.js} +1 -1
- package/{readlineWorkspace-CEX5TXGM.js → readlineWorkspace-RORGDWZN.js} +291 -99
- package/{removeDialogAgentAction-YEPO5AYI.js → removeDialogAgentAction-BDLO7UC2.js} +7 -7
- package/{runAgentClientLoop-DCV4BD2W.js → runAgentClientLoop-CDCBSUWW.js} +41 -43
- package/{runtimeDoctorCommands-NYBOTA6D.js → runtimeDoctorCommands-AM2V5YVH.js} +5 -5
- package/{secretCommands-N6CMCJDZ.js → secretCommands-G5XYCXZB.js} +308 -1
- package/{setDialogExtraReferencesAction-EH5GWDAJ.js → setDialogExtraReferencesAction-GBIT7WAG.js} +6 -6
- package/{setPrimaryDialogAgentAction-PNWRK6IY.js → setPrimaryDialogAgentAction-PGBTR247.js} +7 -7
- package/{settingThunks-7VCWB6P7.js → settingThunks-XQJZVA4D.js} +38 -7
- package/{skillDiscovery-F3TMVQOJ.js → skillDiscovery-DO5372J5.js} +2 -3
- package/{spaceCommands-ZUI4CTSO.js → spaceCommands-BTSANKDH.js} +23 -23
- package/{streamAgentChatTurn-NKFKMFQ2.js → streamAgentChatTurn-VUF3EUMS.js} +66 -59
- package/{switchDialogAgentAction-23BFWJMV.js → switchDialogAgentAction-O7WTPLKG.js} +5 -5
- package/{tools-626VXEY7.js → tools-GAAYAIEW.js} +35 -37
- package/{tuiSummaryLlmCaller-FSOADMXK.js → tuiSummaryLlmCaller-MKOLOSH3.js} +11 -11
- package/{updateCommands-KE6LP3QX.js → updateCommands-W7TXEV7N.js} +3 -3
- package/{updateDialogTitleAction-RNNQAMXG.js → updateDialogTitleAction-LE2DBQDS.js} +17 -17
- package/{windowsSelfUpdate-26TSFXEZ.js → windowsSelfUpdate-575VQ6QO.js} +2 -2
- package/chunk-7KWPNGVJ.js +0 -150
- package/chunk-AETZ7AD6.js +0 -274
- package/chunk-EUGTFFO6.js +0 -42
- package/chunk-VYNMQ6HW.js +0 -138
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanupCliSessionForDialog
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-T3U2KQF4.js";
|
|
4
4
|
import {
|
|
5
5
|
getPrimaryDialogAgentId,
|
|
6
6
|
removeDialogAgentId
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
getActiveDialogKey
|
|
14
14
|
} from "./chunk-OWYYDMGJ.js";
|
|
15
15
|
import "./chunk-YDH3FDFQ.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-HWZT5DKX.js";
|
|
17
17
|
import {
|
|
18
18
|
patch,
|
|
19
19
|
selectById
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OHYCQKPW.js";
|
|
21
21
|
import "./chunk-3PVYUPXK.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-MOCY5LJI.js";
|
|
23
|
+
import "./chunk-6K2AKJAD.js";
|
|
24
|
+
import "./chunk-32GANJHJ.js";
|
|
25
25
|
import "./chunk-UEILX4EV.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-X4F26D5K.js";
|
|
27
27
|
import "./chunk-6Q7UTJKR.js";
|
|
28
28
|
import "./chunk-QQ56R7KS.js";
|
|
29
29
|
import "./chunk-OW765XBU.js";
|
|
@@ -2,70 +2,70 @@ import {
|
|
|
2
2
|
fetchAgentContexts,
|
|
3
3
|
responsesJsonToChatCompletions,
|
|
4
4
|
updateAgentTokens
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EMXVOJDB.js";
|
|
6
6
|
import {
|
|
7
7
|
generateRequestBody,
|
|
8
8
|
performFetchRequest,
|
|
9
9
|
sanitizeOutboundBody,
|
|
10
10
|
stripModelToolArgs
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OTKNEZE3.js";
|
|
12
12
|
import "./chunk-HS7MLR74.js";
|
|
13
13
|
import {
|
|
14
14
|
findToolExecutor
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4KYV2TAI.js";
|
|
16
16
|
import "./chunk-KFHREHUQ.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-7TMVGMM3.js";
|
|
18
18
|
import "./chunk-OXME3PEE.js";
|
|
19
19
|
import "./chunk-KSTEXKL6.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-53PBXLID.js";
|
|
20
|
+
import "./chunk-Z3MQYKRN.js";
|
|
22
21
|
import {
|
|
23
22
|
mergeReferences
|
|
24
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-J5Z2SSIY.js";
|
|
25
24
|
import {
|
|
26
25
|
getToolResultErrorData
|
|
27
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-HVXL4VOO.js";
|
|
28
27
|
import "./chunk-NF64D32W.js";
|
|
29
28
|
import "./chunk-3L2WKC3W.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-CMTTXP5Y.js";
|
|
30
|
+
import "./chunk-VF4K2QE6.js";
|
|
31
|
+
import "./chunk-KYQXW7DL.js";
|
|
32
32
|
import "./chunk-MYOH447Z.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-RXUKDHS5.js";
|
|
34
|
+
import "./chunk-WYKMOZTW.js";
|
|
35
35
|
import "./chunk-AGIM7IMJ.js";
|
|
36
36
|
import "./chunk-63W5N6P3.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-RWGIVUH3.js";
|
|
38
|
+
import "./chunk-6CFXWUYE.js";
|
|
39
39
|
import "./chunk-5XBUWM6I.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-JI5MQU5B.js";
|
|
41
41
|
import "./chunk-TZXPT53C.js";
|
|
42
42
|
import "./chunk-LEC5ALIN.js";
|
|
43
43
|
import "./chunk-523DITKR.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-N7IBYQEC.js";
|
|
45
45
|
import "./chunk-BYXBJQAS.js";
|
|
46
46
|
import "./chunk-QYPE3TS3.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-T3U2KQF4.js";
|
|
48
48
|
import "./chunk-4JH2UMJR.js";
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-QAYCF4CH.js";
|
|
50
50
|
import "./chunk-UAD2WT54.js";
|
|
51
51
|
import "./chunk-5RGU3J7P.js";
|
|
52
52
|
import "./chunk-ZRAU6T47.js";
|
|
53
53
|
import "./chunk-4LCOCOR5.js";
|
|
54
54
|
import "./chunk-OWYYDMGJ.js";
|
|
55
55
|
import "./chunk-YDH3FDFQ.js";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-GL7W7TTR.js";
|
|
57
57
|
import {
|
|
58
58
|
selectCurrentServer
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-HWZT5DKX.js";
|
|
60
60
|
import {
|
|
61
61
|
read
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-OHYCQKPW.js";
|
|
63
63
|
import "./chunk-3PVYUPXK.js";
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-MOCY5LJI.js";
|
|
65
|
+
import "./chunk-6K2AKJAD.js";
|
|
66
|
+
import "./chunk-32GANJHJ.js";
|
|
67
67
|
import "./chunk-UEILX4EV.js";
|
|
68
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-X4F26D5K.js";
|
|
69
69
|
import "./chunk-6Q7UTJKR.js";
|
|
70
70
|
import "./chunk-QQ56R7KS.js";
|
|
71
71
|
import "./chunk-OW765XBU.js";
|
|
@@ -74,26 +74,24 @@ import {
|
|
|
74
74
|
} from "./chunk-PXYBUFDB.js";
|
|
75
75
|
import "./chunk-ZSO5B6SW.js";
|
|
76
76
|
import "./chunk-D2MDMY2M.js";
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-AETZ7AD6.js";
|
|
77
|
+
import "./chunk-LFJRTOUV.js";
|
|
78
|
+
import "./chunk-DBRXPVWY.js";
|
|
79
|
+
import "./chunk-EY7V7REW.js";
|
|
81
80
|
import "./chunk-Y6ORVLSS.js";
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-I3HWJODB.js";
|
|
81
|
+
import "./chunk-ZHOKF4MY.js";
|
|
84
82
|
import {
|
|
85
83
|
convertMessagesToResponsesInput
|
|
86
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-CVCRAO6Q.js";
|
|
87
85
|
import "./chunk-E2BESSAW.js";
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-
|
|
86
|
+
import "./chunk-K2GL335R.js";
|
|
87
|
+
import "./chunk-RXX262QX.js";
|
|
90
88
|
import {
|
|
91
89
|
resolveAgentCallPlan,
|
|
92
90
|
resolveClientWire
|
|
93
|
-
} from "./chunk-
|
|
94
|
-
import "./chunk-
|
|
91
|
+
} from "./chunk-BMXR7CFX.js";
|
|
92
|
+
import "./chunk-PXERKNSJ.js";
|
|
95
93
|
import "./chunk-5ZUL4CUO.js";
|
|
96
|
-
import "./chunk-
|
|
94
|
+
import "./chunk-BTYQAODF.js";
|
|
97
95
|
import "./chunk-H57T64RA.js";
|
|
98
96
|
import "./chunk-UKZX3NHN.js";
|
|
99
97
|
import "./chunk-5MMAK75Q.js";
|
|
@@ -112,15 +110,15 @@ import "./chunk-LOEO7LRC.js";
|
|
|
112
110
|
import {
|
|
113
111
|
extractCustomId
|
|
114
112
|
} from "./chunk-M2EJHDJP.js";
|
|
115
|
-
import "./chunk-
|
|
113
|
+
import "./chunk-NHI3JZP4.js";
|
|
116
114
|
import "./chunk-HNMXYYJR.js";
|
|
117
115
|
import "./chunk-PJNFNEJE.js";
|
|
118
116
|
import "./chunk-PSCNXBYA.js";
|
|
119
|
-
import "./chunk-
|
|
120
|
-
import "./chunk-
|
|
117
|
+
import "./chunk-WPOKOKZA.js";
|
|
118
|
+
import "./chunk-YUA6OAH5.js";
|
|
121
119
|
import {
|
|
122
120
|
getApiEndpoint
|
|
123
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-SM3NSZJV.js";
|
|
124
122
|
import "./chunk-5BHQICF2.js";
|
|
125
123
|
import {
|
|
126
124
|
isRecord
|
|
@@ -137,8 +135,8 @@ import "./chunk-3EUW3WEO.js";
|
|
|
137
135
|
import {
|
|
138
136
|
asOptionalTrimmedString
|
|
139
137
|
} from "./chunk-G3SUCT4W.js";
|
|
140
|
-
import "./chunk-
|
|
141
|
-
import "./chunk-
|
|
138
|
+
import "./chunk-T43B7LB2.js";
|
|
139
|
+
import "./chunk-GOO6G4PY.js";
|
|
142
140
|
import "./chunk-QSJ3HFEF.js";
|
|
143
141
|
import "./chunk-4VNS5WPM.js";
|
|
144
142
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveAuthGuidanceState
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AOYR4XOA.js";
|
|
4
4
|
import {
|
|
5
5
|
createCliAuthorityBrokerClient,
|
|
6
6
|
createCliAuthorityBrokerSocketInvoker
|
|
@@ -19,9 +19,9 @@ import "./chunk-ZWQUWF6W.js";
|
|
|
19
19
|
import {
|
|
20
20
|
toErrorMessage
|
|
21
21
|
} from "./chunk-HNMXYYJR.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-WPOKOKZA.js";
|
|
23
|
+
import "./chunk-YUA6OAH5.js";
|
|
24
|
+
import "./chunk-SM3NSZJV.js";
|
|
25
25
|
import "./chunk-5BHQICF2.js";
|
|
26
26
|
import "./chunk-KUG52IAP.js";
|
|
27
27
|
import {
|
|
@@ -34,7 +34,7 @@ import "./chunk-4SN6J65J.js";
|
|
|
34
34
|
import "./chunk-CF7PE763.js";
|
|
35
35
|
import "./chunk-3EUW3WEO.js";
|
|
36
36
|
import "./chunk-G3SUCT4W.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-GOO6G4PY.js";
|
|
38
38
|
import "./chunk-QSJ3HFEF.js";
|
|
39
39
|
import "./chunk-4VNS5WPM.js";
|
|
40
40
|
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import "./chunk-ZWQUWF6W.js";
|
|
5
5
|
import {
|
|
6
6
|
t
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-M6AGLVV4.js";
|
|
8
8
|
import "./chunk-3EUW3WEO.js";
|
|
9
9
|
import "./chunk-4VNS5WPM.js";
|
|
10
10
|
|
|
@@ -435,6 +435,7 @@ function deleteSecretBinding(alias) {
|
|
|
435
435
|
|
|
436
436
|
// packages/cli/secretCommands.ts
|
|
437
437
|
import { spawn } from "child_process";
|
|
438
|
+
import { StringDecoder } from "string_decoder";
|
|
438
439
|
function parseSecretValue(raw) {
|
|
439
440
|
const trimmed = raw.trim();
|
|
440
441
|
const looksLikeJson = trimmed.startsWith("{") || trimmed.startsWith("[");
|
|
@@ -450,6 +451,195 @@ function parseSecretValue(raw) {
|
|
|
450
451
|
}
|
|
451
452
|
return parsed;
|
|
452
453
|
}
|
|
454
|
+
var PromptReadError = class extends Error {
|
|
455
|
+
constructor(i18nKey) {
|
|
456
|
+
super(i18nKey);
|
|
457
|
+
this.i18nKey = i18nKey;
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
async function defaultPromptReader(promptLabel, input = process.stdin, output = process.stderr) {
|
|
461
|
+
if (!Boolean(input?.isTTY) || typeof input?.setRawMode !== "function") {
|
|
462
|
+
throw new PromptReadError("secret.promptNonTtyNotSupported");
|
|
463
|
+
}
|
|
464
|
+
return new Promise((resolve2, reject) => {
|
|
465
|
+
let wasRaw = false;
|
|
466
|
+
try {
|
|
467
|
+
wasRaw = Boolean(input.isRaw);
|
|
468
|
+
} catch {
|
|
469
|
+
}
|
|
470
|
+
let settled = false;
|
|
471
|
+
const chars = [];
|
|
472
|
+
const decoder = new StringDecoder("utf8");
|
|
473
|
+
const restoreTerminal = () => {
|
|
474
|
+
try {
|
|
475
|
+
if (typeof input.setRawMode === "function") {
|
|
476
|
+
input.setRawMode(wasRaw);
|
|
477
|
+
}
|
|
478
|
+
} catch {
|
|
479
|
+
}
|
|
480
|
+
try {
|
|
481
|
+
if (typeof input.pause === "function") {
|
|
482
|
+
input.pause();
|
|
483
|
+
}
|
|
484
|
+
} catch {
|
|
485
|
+
}
|
|
486
|
+
input.removeListener?.("data", onData);
|
|
487
|
+
input.removeListener?.("error", onError);
|
|
488
|
+
input.removeListener?.("end", onEnd);
|
|
489
|
+
input.removeListener?.("close", onClose);
|
|
490
|
+
};
|
|
491
|
+
const finish = (err, value) => {
|
|
492
|
+
if (settled) return;
|
|
493
|
+
settled = true;
|
|
494
|
+
restoreTerminal();
|
|
495
|
+
try {
|
|
496
|
+
output.write("\n");
|
|
497
|
+
} catch {
|
|
498
|
+
}
|
|
499
|
+
if (err) {
|
|
500
|
+
reject(err);
|
|
501
|
+
} else {
|
|
502
|
+
resolve2(value ?? "");
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
const processChars = (str) => {
|
|
506
|
+
for (const char of str) {
|
|
507
|
+
if (char === "") {
|
|
508
|
+
finish(new PromptReadError("secret.promptAborted"));
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
if (char === "") {
|
|
512
|
+
const val = chars.join("");
|
|
513
|
+
if (val.length === 0) {
|
|
514
|
+
finish(new PromptReadError("secret.promptAborted"));
|
|
515
|
+
} else {
|
|
516
|
+
finish(void 0, val);
|
|
517
|
+
}
|
|
518
|
+
return;
|
|
519
|
+
}
|
|
520
|
+
if (char === "\r" || char === "\n") {
|
|
521
|
+
finish(void 0, chars.join(""));
|
|
522
|
+
return;
|
|
523
|
+
}
|
|
524
|
+
if (char === "\b" || char === "\x7F") {
|
|
525
|
+
chars.pop();
|
|
526
|
+
continue;
|
|
527
|
+
}
|
|
528
|
+
if (char >= " " || char === " ") {
|
|
529
|
+
chars.push(char);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
const onData = (chunk) => {
|
|
534
|
+
if (settled) return;
|
|
535
|
+
const str = typeof chunk === "string" ? chunk : decoder.write(chunk);
|
|
536
|
+
processChars(str);
|
|
537
|
+
};
|
|
538
|
+
const onError = (_err) => {
|
|
539
|
+
if (settled) return;
|
|
540
|
+
finish(new PromptReadError("secret.promptReadError"));
|
|
541
|
+
};
|
|
542
|
+
const onEnd = () => {
|
|
543
|
+
if (settled) return;
|
|
544
|
+
finish(new PromptReadError("secret.promptAborted"));
|
|
545
|
+
};
|
|
546
|
+
const onClose = () => {
|
|
547
|
+
if (settled) return;
|
|
548
|
+
finish(new PromptReadError("secret.promptAborted"));
|
|
549
|
+
};
|
|
550
|
+
try {
|
|
551
|
+
if (promptLabel) {
|
|
552
|
+
output.write(promptLabel);
|
|
553
|
+
}
|
|
554
|
+
input.setRawMode(true);
|
|
555
|
+
if (typeof input.resume === "function") {
|
|
556
|
+
input.resume();
|
|
557
|
+
}
|
|
558
|
+
input.on("data", onData);
|
|
559
|
+
input.on("error", onError);
|
|
560
|
+
input.on("end", onEnd);
|
|
561
|
+
input.on("close", onClose);
|
|
562
|
+
} catch {
|
|
563
|
+
finish(new PromptReadError("secret.promptReadError"));
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
var StdinReadError = class extends Error {
|
|
568
|
+
constructor(i18nKey) {
|
|
569
|
+
super(i18nKey);
|
|
570
|
+
this.i18nKey = i18nKey;
|
|
571
|
+
}
|
|
572
|
+
};
|
|
573
|
+
var DEFAULT_STDIN_TIMEOUT_MS = 1e4;
|
|
574
|
+
var DEFAULT_STDIN_MAX_BYTES = 64 * 1024;
|
|
575
|
+
async function readSecretFromStdinStream(stream, timeoutMs = DEFAULT_STDIN_TIMEOUT_MS, maxBytes = DEFAULT_STDIN_MAX_BYTES) {
|
|
576
|
+
if (Boolean(stream?.isTTY)) {
|
|
577
|
+
throw new StdinReadError("secret.stdinTtyNotSupported");
|
|
578
|
+
}
|
|
579
|
+
return new Promise((resolve2, reject) => {
|
|
580
|
+
let settled = false;
|
|
581
|
+
let totalBytes = 0;
|
|
582
|
+
const chunks = [];
|
|
583
|
+
const timer = setTimeout(() => {
|
|
584
|
+
finish(new StdinReadError("secret.stdinTimeout"));
|
|
585
|
+
}, timeoutMs);
|
|
586
|
+
timer.unref?.();
|
|
587
|
+
const onData = (chunk) => {
|
|
588
|
+
if (settled) return;
|
|
589
|
+
const buf = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
590
|
+
totalBytes += buf.length;
|
|
591
|
+
if (totalBytes > maxBytes) {
|
|
592
|
+
finish(new StdinReadError("secret.stdinTooLarge"));
|
|
593
|
+
return;
|
|
594
|
+
}
|
|
595
|
+
chunks.push(buf);
|
|
596
|
+
};
|
|
597
|
+
const onEnd = () => {
|
|
598
|
+
if (settled) return;
|
|
599
|
+
clearTimeout(timer);
|
|
600
|
+
cleanup();
|
|
601
|
+
settled = true;
|
|
602
|
+
const raw = Buffer.concat(chunks).toString("utf8");
|
|
603
|
+
let value = raw;
|
|
604
|
+
if (value.endsWith("\r\n")) {
|
|
605
|
+
value = value.slice(0, -2);
|
|
606
|
+
} else if (value.endsWith("\n")) {
|
|
607
|
+
value = value.slice(0, -1);
|
|
608
|
+
}
|
|
609
|
+
if (value.length === 0 || /^\s*$/.test(value)) {
|
|
610
|
+
reject(new StdinReadError("secret.stdinEmpty"));
|
|
611
|
+
return;
|
|
612
|
+
}
|
|
613
|
+
resolve2(value);
|
|
614
|
+
};
|
|
615
|
+
const onError = () => {
|
|
616
|
+
if (settled) return;
|
|
617
|
+
finish(new StdinReadError("secret.stdinReadError"));
|
|
618
|
+
};
|
|
619
|
+
function finish(err) {
|
|
620
|
+
if (settled) return;
|
|
621
|
+
clearTimeout(timer);
|
|
622
|
+
cleanup();
|
|
623
|
+
settled = true;
|
|
624
|
+
try {
|
|
625
|
+
stream.destroy?.();
|
|
626
|
+
} catch {
|
|
627
|
+
}
|
|
628
|
+
reject(err);
|
|
629
|
+
}
|
|
630
|
+
function cleanup() {
|
|
631
|
+
stream.removeListener?.("data", onData);
|
|
632
|
+
stream.removeListener?.("end", onEnd);
|
|
633
|
+
stream.removeListener?.("error", onError);
|
|
634
|
+
}
|
|
635
|
+
stream.on("data", onData);
|
|
636
|
+
stream.on("end", onEnd);
|
|
637
|
+
stream.on("error", onError);
|
|
638
|
+
if (typeof stream.resume === "function") {
|
|
639
|
+
stream.resume();
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
}
|
|
453
643
|
async function runSecretCommand(args, options = {}) {
|
|
454
644
|
const [subcommand, ...rest] = args;
|
|
455
645
|
if (!subcommand || subcommand === "--help" || subcommand === "-h") {
|
|
@@ -507,6 +697,121 @@ async function runSecretCommand(args, options = {}) {
|
|
|
507
697
|
return;
|
|
508
698
|
}
|
|
509
699
|
case "set": {
|
|
700
|
+
const stdinFlags = rest.filter((arg) => arg === "--stdin");
|
|
701
|
+
const promptFlags = rest.filter((arg) => arg === "--prompt");
|
|
702
|
+
if (stdinFlags.length > 1) {
|
|
703
|
+
console.error(t("secret.stdinDuplicateFlag"));
|
|
704
|
+
process.exitCode = 1;
|
|
705
|
+
return;
|
|
706
|
+
}
|
|
707
|
+
if (promptFlags.length > 1) {
|
|
708
|
+
console.error(t("secret.promptDuplicateFlag"));
|
|
709
|
+
process.exitCode = 1;
|
|
710
|
+
return;
|
|
711
|
+
}
|
|
712
|
+
if (stdinFlags.length > 0 && promptFlags.length > 0) {
|
|
713
|
+
console.error(t("secret.cannotMixStdinAndPrompt"));
|
|
714
|
+
process.exitCode = 1;
|
|
715
|
+
return;
|
|
716
|
+
}
|
|
717
|
+
const isStdin = stdinFlags.length === 1;
|
|
718
|
+
const isPrompt = promptFlags.length === 1;
|
|
719
|
+
const nonFlagArgs = rest.filter((arg) => arg !== "--stdin" && arg !== "--prompt");
|
|
720
|
+
if (isStdin) {
|
|
721
|
+
if (nonFlagArgs.length === 0) {
|
|
722
|
+
console.error(t("secret.setNameRequired"));
|
|
723
|
+
process.exitCode = 1;
|
|
724
|
+
return;
|
|
725
|
+
}
|
|
726
|
+
if (nonFlagArgs.length > 1) {
|
|
727
|
+
console.error(t("secret.stdinMixedWithValue"));
|
|
728
|
+
process.exitCode = 1;
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
731
|
+
const [name2] = nonFlagArgs;
|
|
732
|
+
let val;
|
|
733
|
+
try {
|
|
734
|
+
val = await readSecretFromStdinStream(
|
|
735
|
+
options.stdin ?? process.stdin,
|
|
736
|
+
options.stdinTimeoutMs ?? DEFAULT_STDIN_TIMEOUT_MS,
|
|
737
|
+
options.stdinMaxBytes ?? DEFAULT_STDIN_MAX_BYTES
|
|
738
|
+
);
|
|
739
|
+
} catch (err) {
|
|
740
|
+
if (err instanceof StdinReadError) {
|
|
741
|
+
console.error(t(err.i18nKey));
|
|
742
|
+
} else {
|
|
743
|
+
console.error(t("secret.stdinReadError"));
|
|
744
|
+
}
|
|
745
|
+
process.exitCode = 1;
|
|
746
|
+
return;
|
|
747
|
+
}
|
|
748
|
+
let parsedVal;
|
|
749
|
+
try {
|
|
750
|
+
parsedVal = parseSecretValue(val);
|
|
751
|
+
} catch (err) {
|
|
752
|
+
console.error(t("secret.errorPrefix", err.message));
|
|
753
|
+
process.exitCode = 1;
|
|
754
|
+
return;
|
|
755
|
+
}
|
|
756
|
+
setSecret(name2, parsedVal);
|
|
757
|
+
console.log(t("secret.setSuccess", name2));
|
|
758
|
+
return;
|
|
759
|
+
}
|
|
760
|
+
if (isPrompt) {
|
|
761
|
+
if (nonFlagArgs.length === 0) {
|
|
762
|
+
console.error(t("secret.promptNameRequired"));
|
|
763
|
+
process.exitCode = 1;
|
|
764
|
+
return;
|
|
765
|
+
}
|
|
766
|
+
if (nonFlagArgs.length > 1) {
|
|
767
|
+
console.error(t("secret.promptMixedWithValue"));
|
|
768
|
+
process.exitCode = 1;
|
|
769
|
+
return;
|
|
770
|
+
}
|
|
771
|
+
const [name2] = nonFlagArgs;
|
|
772
|
+
let rawInput;
|
|
773
|
+
try {
|
|
774
|
+
if (options.promptReader) {
|
|
775
|
+
rawInput = await options.promptReader(t("secret.promptLabel", name2));
|
|
776
|
+
} else {
|
|
777
|
+
rawInput = await defaultPromptReader(
|
|
778
|
+
t("secret.promptLabel", name2),
|
|
779
|
+
options.stdin ?? process.stdin,
|
|
780
|
+
options.stdout ?? process.stderr
|
|
781
|
+
);
|
|
782
|
+
}
|
|
783
|
+
} catch (err) {
|
|
784
|
+
if (err instanceof PromptReadError) {
|
|
785
|
+
console.error(t(err.i18nKey));
|
|
786
|
+
} else {
|
|
787
|
+
console.error(t("secret.promptReadError"));
|
|
788
|
+
}
|
|
789
|
+
process.exitCode = 1;
|
|
790
|
+
return;
|
|
791
|
+
}
|
|
792
|
+
let val = rawInput;
|
|
793
|
+
if (val.endsWith("\r\n")) {
|
|
794
|
+
val = val.slice(0, -2);
|
|
795
|
+
} else if (val.endsWith("\n")) {
|
|
796
|
+
val = val.slice(0, -1);
|
|
797
|
+
}
|
|
798
|
+
if (val.length === 0 || /^\s*$/.test(val)) {
|
|
799
|
+
console.error(t("secret.promptEmpty"));
|
|
800
|
+
process.exitCode = 1;
|
|
801
|
+
return;
|
|
802
|
+
}
|
|
803
|
+
let parsedVal;
|
|
804
|
+
try {
|
|
805
|
+
parsedVal = parseSecretValue(val);
|
|
806
|
+
} catch (err) {
|
|
807
|
+
console.error(t("secret.errorPrefix", err.message));
|
|
808
|
+
process.exitCode = 1;
|
|
809
|
+
return;
|
|
810
|
+
}
|
|
811
|
+
setSecret(name2, parsedVal);
|
|
812
|
+
console.log(t("secret.setSuccess", name2));
|
|
813
|
+
return;
|
|
814
|
+
}
|
|
510
815
|
const [name, ...valParts] = rest;
|
|
511
816
|
if (!name) {
|
|
512
817
|
console.error(t("secret.setNameAndValueRequired"));
|
|
@@ -692,5 +997,7 @@ async function runSecretCommand(args, options = {}) {
|
|
|
692
997
|
}
|
|
693
998
|
}
|
|
694
999
|
export {
|
|
1000
|
+
PromptReadError,
|
|
1001
|
+
defaultPromptReader,
|
|
695
1002
|
runSecretCommand
|
|
696
1003
|
};
|
package/{setDialogExtraReferencesAction-EH5GWDAJ.js → setDialogExtraReferencesAction-GBIT7WAG.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setDialogExtraReferencesAction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RXUKDHS5.js";
|
|
4
4
|
import "./chunk-ZRAU6T47.js";
|
|
5
5
|
import "./chunk-4LCOCOR5.js";
|
|
6
6
|
import "./chunk-OWYYDMGJ.js";
|
|
7
7
|
import "./chunk-YDH3FDFQ.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-OHYCQKPW.js";
|
|
9
9
|
import "./chunk-3PVYUPXK.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-MOCY5LJI.js";
|
|
11
|
+
import "./chunk-6K2AKJAD.js";
|
|
12
|
+
import "./chunk-32GANJHJ.js";
|
|
13
13
|
import "./chunk-UEILX4EV.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-X4F26D5K.js";
|
|
15
15
|
import "./chunk-6Q7UTJKR.js";
|
|
16
16
|
import "./chunk-QQ56R7KS.js";
|
|
17
17
|
import "./chunk-OW765XBU.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanupCliSessionForDialog
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-T3U2KQF4.js";
|
|
4
4
|
import {
|
|
5
5
|
getPrimaryDialogAgentId,
|
|
6
6
|
replacePrimaryDialogAgentId
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
getActiveDialogKey
|
|
14
14
|
} from "./chunk-OWYYDMGJ.js";
|
|
15
15
|
import "./chunk-YDH3FDFQ.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-HWZT5DKX.js";
|
|
17
17
|
import {
|
|
18
18
|
patch,
|
|
19
19
|
selectById
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OHYCQKPW.js";
|
|
21
21
|
import "./chunk-3PVYUPXK.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-MOCY5LJI.js";
|
|
23
|
+
import "./chunk-6K2AKJAD.js";
|
|
24
|
+
import "./chunk-32GANJHJ.js";
|
|
25
25
|
import "./chunk-UEILX4EV.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-X4F26D5K.js";
|
|
27
27
|
import "./chunk-6Q7UTJKR.js";
|
|
28
28
|
import "./chunk-QQ56R7KS.js";
|
|
29
29
|
import "./chunk-OW765XBU.js";
|