nolo-cli 0.11.0 → 0.12.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-ZEDPX6OF.js → _executeModel-K23VU36L.js} +51 -50
- package/{action-AA4IJ5K2.js → action-RAXNQQKC.js} +8 -9
- package/{addContentAction-QYVO4SYP.js → addContentAction-ZHI7TVV3.js} +7 -9
- package/{addDialogAgentAction-WVVKT5WQ.js → addDialogAgentAction-JWXPKXNC.js} +9 -10
- package/{agentDeleteCommand-RDPGYIWF.js → agentDeleteCommand-MWB2LXG6.js} +38 -28
- package/{agentEmailCommands-2HJJKS5F.js → agentEmailCommands-7IBTXHNQ.js} +64 -62
- package/{agentListCommands-HFEVV3ZW.js → agentListCommands-SKUYB2RQ.js} +127 -31
- package/{agentMachineCommands-25ZOENJU.js → agentMachineCommands-5ZM2DB3X.js} +37 -26
- package/{agentPullCommand-GOL2S4W2.js → agentPullCommand-KRBRIFIY.js} +7 -7
- package/{agentRecordCommands-GTCOAM3L.js → agentRecordCommands-5IVBEJLP.js} +56 -54
- package/{agentRunCommand-YBS3JDLD.js → agentRunCommand-UCAEMXQF.js} +59 -59
- package/{agentRunControl-K4VKNEHF.js → agentRunControl-IX4F5W2C.js} +3 -3
- package/{agentRuntimeLocal-UQBMQI2M.js → agentRuntimeLocal-PR67XWQK.js} +30 -15
- package/{agentSlice-6EKOBCCS.js → agentSlice-LWIPUATN.js} +8 -9
- package/{authCommand-O2OWACN4.js → authCommand-DMW336GT.js} +15 -15
- package/{authCommands-H7365TZP.js → authCommands-GH5T6RYV.js} +6 -6
- package/{chunk-7D3JY6C2.js → chunk-3HHTVM6G.js} +64 -5
- package/{chunk-KJR5KAUQ.js → chunk-3LVXNJON.js} +20 -7
- package/{chunk-AFON4QUU.js → chunk-45JUQTYY.js} +19 -11
- package/{chunk-KQQVGRA3.js → chunk-47TVQ7LF.js} +35 -29
- package/{chunk-FXXSGWAJ.js → chunk-4GBNEA5B.js} +1 -1
- package/{chunk-PXZAAB4L.js → chunk-4LG74DRG.js} +4 -4
- package/{chunk-2FTTDCD4.js → chunk-4ON5AV72.js} +2 -1
- package/{chunk-IWX4UW2E.js → chunk-524BDL33.js} +89 -8
- package/{chunk-4SOKXIW4.js → chunk-5DVIMRVT.js} +8 -11
- package/{chunk-ISNCLGUZ.js → chunk-5NBHQD4D.js} +4 -3
- package/{chunk-NEM67FX7.js → chunk-672VQUVH.js} +1 -1
- package/{chunk-2W2VYVI5.js → chunk-6EFMBEQG.js} +528 -177
- package/{chunk-GBDSZATH.js → chunk-6LMFFG3K.js} +3 -3
- package/{chunk-CKOJQDKR.js → chunk-7JJCGV7N.js} +146 -3
- package/{chunk-MQI77IRB.js → chunk-7MYHLZ3F.js} +2 -2
- package/chunk-BYXBJQAS.js +0 -0
- package/{chunk-LAX2JSTX.js → chunk-CJIOTRWY.js} +20 -2
- package/{chunk-ZEYDOXHF.js → chunk-ESR6LPO5.js} +1467 -868
- package/{chunk-EVZKZF32.js → chunk-F22FKI27.js} +182 -75
- package/{chunk-OUI3ZHYD.js → chunk-FHTPQXHP.js} +1 -1
- package/{chunk-5MOUAAMK.js → chunk-FVGPOJYM.js} +194 -2580
- package/{chunk-AEZAORLG.js → chunk-FW4SQ6II.js} +5 -5
- package/chunk-IKXL2HZ3.js +70 -0
- package/{chunk-QNMFBBZK.js → chunk-IVAOVLM7.js} +1 -1
- package/{chunk-S3GS2PRL.js → chunk-JCU2JDCV.js} +597 -68
- package/{chunk-Q3UKJVU4.js → chunk-JJR3NP7R.js} +10 -10
- package/{chunk-PXQN7IBQ.js → chunk-JNMELOHI.js} +2 -2
- package/{chunk-XYZA7S7V.js → chunk-LNTQ7UXG.js} +6 -6
- package/{chunk-YOCHZD7D.js → chunk-NCGFB7NN.js} +5 -3
- package/{chunk-O26GI2JP.js → chunk-NITP2JDG.js} +39 -8
- package/{chunk-YPRZSPF3.js → chunk-OCDEWRE2.js} +1 -1
- package/{chunk-PNEW2Z3T.js → chunk-OHEKYYJF.js} +7 -7
- package/{chunk-DWGAEFJL.js → chunk-OILEWBXT.js} +1 -1
- package/chunk-OOIN7HSO.js +146 -0
- package/{chunk-C4FTUXVF.js → chunk-QLUFR47U.js} +11 -1
- package/{chunk-BX6U3ETE.js → chunk-RNYKVIND.js} +293 -89
- package/{chunk-L53FGHA4.js → chunk-RSEUHW6T.js} +1 -1
- package/chunk-S3UTETIC.js +4885 -0
- package/chunk-S73OEOHH.js +2286 -0
- package/{chunk-E4HNJSHC.js → chunk-TEOXBCYU.js} +81 -19
- package/{chunk-YTBMA7NO.js → chunk-TSKWE74T.js} +58 -8
- package/{chunk-5OIFWVX7.js → chunk-UG3WOFU6.js} +1 -1
- package/{chunk-LP65VRCI.js → chunk-UJ5L6X7H.js} +6 -6
- package/{chunk-4ZDM73SD.js → chunk-V2J635L5.js} +1 -1
- package/{chunk-IPYUUY4E.js → chunk-WPHL6ALY.js} +1 -1
- package/{chunk-3NSIQZZ6.js → chunk-WTYKCU4W.js} +9 -9
- package/{chunk-XFOLQLDN.js → chunk-XHQWJUW4.js} +2 -2
- package/{chunk-TACHTH5D.js → chunk-XJFP4EXZ.js} +18 -18
- package/{chunk-C2MDQQ4O.js → chunk-XRFEX5ZP.js} +1 -1
- package/{chunk-D6OQHXVG.js → chunk-YDCZVUFP.js} +7 -7
- package/{chunk-SV5MWASH.js → chunk-Z6ZZXQOZ.js} +12 -12
- package/{chunk-X2S7JTIG.js → chunk-ZR4RO4ZC.js} +1240 -136
- package/{chunk-ZPRK73XY.js → chunk-ZR4VHQ5D.js} +14 -13
- package/cliEnvHelpers-VYC2OPTB.js +30 -0
- package/{createAgentAutomationAction-LTI5QU35.js → createAgentAutomationAction-PJTUHFYB.js} +25 -26
- package/{createDialogAction-OJJ7L3L3.js → createDialogAction-QUCXTRAC.js} +26 -27
- package/{createPageAction-5MXWVRGY.js → createPageAction-2EWMGYFH.js} +26 -27
- package/{dbSlice-RQFQQVHT.js → dbSlice-WDP2ZZHK.js} +6 -7
- package/{deleteFile-7XP5BGC7.js → deleteFile-M7UNIUOO.js} +4 -4
- package/{dialogCommands-JTJ3RPPW.js → dialogCommands-BTHTTSE2.js} +33 -23
- package/{dialogSlice-OWROKURJ.js → dialogSlice-724QVE7A.js} +26 -27
- package/{docCreateCommands-WJBEW2V7.js → docCreateCommands-PQEX44Q7.js} +33 -23
- package/{docDeleteCommands-BVEHJOY5.js → docDeleteCommands-B3Q2M42N.js} +34 -25
- package/{docReadCommands-NEWOZIJV.js → docReadCommands-RCUVTX3Q.js} +33 -23
- package/{docStore-3DXRYBMD.js → docStore-R3US5ZU5.js} +25 -26
- package/{docUpdateCommands-C7WHT7UU.js → docUpdateCommands-NS5QAUAJ.js} +33 -23
- package/fetchMessages-KTNM7QAR.js +1 -1
- package/{getPricing-3E6UNPKL.js → getPricing-6TOZXPAU.js} +7 -3
- package/{handleSendMessageAction-B5PRR7BE.js → handleSendMessageAction-NTK7QUU2.js} +29 -30
- package/index.js +77 -76
- package/{localDialogRead-YSKFFRTT.js → localDialogRead-2VRI24F4.js} +1 -1
- package/{machineCommands-IIIREAEK.js → machineCommands-XOU6Q7Y2.js} +63 -61
- package/{machineWsRunDispatch-3SIU6ILW.js → machineWsRunDispatch-QRI3MSNV.js} +55 -53
- package/{memoryCommands-O4MIPIWQ.js → memoryCommands-AFMES3LN.js} +5 -5
- package/{models-4OPOOLFS.js → models-LSCRJJ6P.js} +2 -2
- package/package.json +1 -1
- package/{read-QJNKRROM.js → read-2MIMRBZ2.js} +4 -4
- package/{readDocTool-H6X6KO6X.js → readDocTool-QHVGQHUJ.js} +1 -1
- package/{readlineWorkspace-HGP3I3OC.js → readlineWorkspace-3MDU7AYQ.js} +1113 -678
- package/{removeDialogAgentAction-TCT35SOF.js → removeDialogAgentAction-GTX5AN54.js} +13 -13
- package/{runAgentClientLoop-EFM4PTVI.js → runAgentClientLoop-ZIQQIOUB.js} +47 -47
- package/{runtimeDoctorCommands-ID43Z7VX.js → runtimeDoctorCommands-QNF3J3UV.js} +6 -6
- package/{setDialogExtraReferencesAction-CGYLZMFH.js → setDialogExtraReferencesAction-WFQ63KYO.js} +9 -10
- package/{setPrimaryDialogAgentAction-F6BFQDJU.js → setPrimaryDialogAgentAction-P57FXTSU.js} +13 -13
- package/{settingSlice-2I5HMG47.js → settingSlice-CK5YZGNI.js} +7 -8
- package/{skillDiscovery-UGSQGX2U.js → skillDiscovery-SZEA7TH6.js} +3 -3
- package/{spaceCommands-MT7BWCIL.js → spaceCommands-VTJYPRFQ.js} +37 -29
- package/{spaceSlice-BS5TSW3W.js → spaceSlice-DX7Y4RUE.js} +28 -27
- package/{streamAgentChatTurn-I3VBFNR3.js → streamAgentChatTurn-7OF2I3KI.js} +222 -128
- package/{toolApiClient-C7P7YSE4.js → toolApiClient-QI3YBNWB.js} +2 -2
- package/{tools-XSD2BOEN.js → tools-4IILQ24N.js} +34 -34
- package/{tuiSummaryLlmCaller-32NRHTT2.js → tuiSummaryLlmCaller-TXLF4MEI.js} +8 -6
- package/{updateCommands-VOSPKXFF.js → updateCommands-XZDOOYFH.js} +13 -5
- package/{updateDialogTitleAction-7FYNJOGP.js → updateDialogTitleAction-GNQXACIP.js} +29 -29
- package/chunk-5MMAK75Q.js +0 -15
- package/chunk-AZPCASRE.js +0 -36
- package/chunk-BBYVOSU2.js +0 -792
- package/chunk-DCOA4QSN.js +0 -105
- package/chunk-UAD2WT54.js +0 -64
- package/{chunk-JK7VW2FN.js → chunk-5MIDPSSK.js} +3 -3
- package/{chunk-5CS33IBL.js → chunk-PDL2AV3E.js} +3 -3
- package/{chunk-5MMZUWSG.js → chunk-TOILAPLH.js} +5 -5
- package/{chunk-OOM6SJNR.js → chunk-TSUJOM6N.js} +6 -6
- package/{db-6QED3ZVO.js → db-HCJ5PRB5.js} +3 -3
- package/{offlineMarxistsAgentCommand-BCPJITJL.js → offlineMarxistsAgentCommand-5OOWZLJI.js} +3 -3
- package/{tableCommands-M3DJUETS.js → tableCommands-E4SQWDOX.js} +6 -6
- package/{understanding-ZOESBLF3.js → understanding-3CUQQ6SV.js} +3 -3
|
@@ -22,11 +22,11 @@ import {
|
|
|
22
22
|
spawnLocalBackgroundRun,
|
|
23
23
|
stripBackgroundFlag,
|
|
24
24
|
writeRunRecord
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-4ON5AV72.js";
|
|
26
|
+
import "./chunk-5NBHQD4D.js";
|
|
27
27
|
import "./chunk-OLZBQWZU.js";
|
|
28
|
-
import "./chunk-4SN6J65J.js";
|
|
29
28
|
import "./chunk-LCBAMY2M.js";
|
|
29
|
+
import "./chunk-4SN6J65J.js";
|
|
30
30
|
import "./chunk-CF7PE763.js";
|
|
31
31
|
import "./chunk-G3SUCT4W.js";
|
|
32
32
|
import "./chunk-4VNS5WPM.js";
|
|
@@ -18,51 +18,65 @@ import {
|
|
|
18
18
|
resolveOpenAiCompatibleProviderConfig,
|
|
19
19
|
shouldCacheHybridRemoteRecord,
|
|
20
20
|
shouldFetchAgentRuntimeRecordRemotely
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RNYKVIND.js";
|
|
22
|
+
import "./chunk-ZNFJWEN4.js";
|
|
22
23
|
import {
|
|
23
24
|
buildPlatformChatCompletionRequest,
|
|
24
25
|
canUsePlatformChatProvider,
|
|
25
26
|
hasDirectOpenAiCompatibleProvider,
|
|
26
27
|
parsePlatformChatCompletionData,
|
|
27
28
|
parsePlatformChatCompletionResponse,
|
|
29
|
+
resolveLegacyDeepSeekProxyChatFallback,
|
|
28
30
|
resolvePlatformChatProviderConfig,
|
|
29
31
|
shouldUsePlatformChatProvider
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-ZNFJWEN4.js";
|
|
32
|
+
} from "./chunk-ZR4VHQ5D.js";
|
|
32
33
|
import {
|
|
33
34
|
resolveAgentRuntimeConfigFromRecord
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-NCGFB7NN.js";
|
|
35
36
|
import {
|
|
36
37
|
runLocalAgentTurn
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-JCU2JDCV.js";
|
|
38
39
|
import "./chunk-OPZYGHUC.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-FHTPQXHP.js";
|
|
40
41
|
import {
|
|
41
42
|
pickAgentRuntimeInferenceOptions
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-TSKWE74T.js";
|
|
43
44
|
import {
|
|
44
45
|
resolveRuntimeToolSurfaceForAgent
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
46
|
+
} from "./chunk-5DVIMRVT.js";
|
|
47
|
+
import "./chunk-S73OEOHH.js";
|
|
48
|
+
import "./chunk-S3UTETIC.js";
|
|
48
49
|
import {
|
|
49
50
|
resolveCurrentRunRuntimeToolPolicy,
|
|
50
51
|
resolveLocalRuntimeEnvFromPolicy,
|
|
51
52
|
resolveLocalWorkspaceExecutorOptionsFromPolicy,
|
|
52
53
|
resolveRequestedRuntimeToolNames
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-PDL2AV3E.js";
|
|
54
55
|
import "./chunk-JZPBVBIY.js";
|
|
56
|
+
import "./chunk-BYXBJQAS.js";
|
|
57
|
+
import "./chunk-QLUFR47U.js";
|
|
58
|
+
import "./chunk-KKY4B2Q2.js";
|
|
59
|
+
import "./chunk-HNMXYYJR.js";
|
|
60
|
+
import "./chunk-DWLEOOGR.js";
|
|
61
|
+
import "./chunk-IKXL2HZ3.js";
|
|
62
|
+
import "./chunk-524BDL33.js";
|
|
55
63
|
import "./chunk-KX6YBIHG.js";
|
|
56
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-3HHTVM6G.js";
|
|
65
|
+
import "./chunk-NITP2JDG.js";
|
|
66
|
+
import "./chunk-WPHL6ALY.js";
|
|
57
67
|
import "./chunk-O4BU24WZ.js";
|
|
58
68
|
import "./chunk-I42VC5KR.js";
|
|
59
69
|
import "./chunk-WWC7I6TA.js";
|
|
60
70
|
import "./chunk-QSJ3HFEF.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-XHQWJUW4.js";
|
|
72
|
+
import "./chunk-TSUJOM6N.js";
|
|
73
|
+
import "./chunk-OOSFSFMA.js";
|
|
74
|
+
import "./chunk-GBRG75BQ.js";
|
|
75
|
+
import "./chunk-KUG52IAP.js";
|
|
63
76
|
import "./chunk-3EUW3WEO.js";
|
|
64
77
|
import "./chunk-U6VC4MU4.js";
|
|
65
|
-
import "./chunk-
|
|
78
|
+
import "./chunk-LCBAMY2M.js";
|
|
79
|
+
import "./chunk-4SN6J65J.js";
|
|
66
80
|
import "./chunk-CF7PE763.js";
|
|
67
81
|
import "./chunk-G3SUCT4W.js";
|
|
68
82
|
import "./chunk-4VNS5WPM.js";
|
|
@@ -90,6 +104,7 @@ export {
|
|
|
90
104
|
readOpenAiCompatibleSseCompletion,
|
|
91
105
|
resolveAgentRuntimeConfigFromRecord,
|
|
92
106
|
resolveCurrentRunRuntimeToolPolicy,
|
|
107
|
+
resolveLegacyDeepSeekProxyChatFallback,
|
|
93
108
|
resolveLocalRuntimeEnvFromPolicy,
|
|
94
109
|
resolveLocalToolPolicy,
|
|
95
110
|
resolveLocalWorkspaceExecutorOptionsFromPolicy,
|
|
@@ -7,26 +7,25 @@ import {
|
|
|
7
7
|
slice,
|
|
8
8
|
streamAgentChatTurn,
|
|
9
9
|
updateAgent
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-AZPCASRE.js";
|
|
13
|
-
import "./chunk-IPYUUY4E.js";
|
|
14
|
-
import "./chunk-5CS33IBL.js";
|
|
10
|
+
} from "./chunk-JJR3NP7R.js";
|
|
11
|
+
import "./chunk-PDL2AV3E.js";
|
|
15
12
|
import "./chunk-JZPBVBIY.js";
|
|
16
13
|
import "./chunk-KX6YBIHG.js";
|
|
14
|
+
import "./chunk-NITP2JDG.js";
|
|
15
|
+
import "./chunk-WPHL6ALY.js";
|
|
17
16
|
import "./chunk-O4BU24WZ.js";
|
|
18
17
|
import "./chunk-I42VC5KR.js";
|
|
19
18
|
import "./chunk-WWC7I6TA.js";
|
|
20
19
|
import "./chunk-QSJ3HFEF.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-XHQWJUW4.js";
|
|
21
|
+
import "./chunk-TSUJOM6N.js";
|
|
23
22
|
import "./chunk-OOSFSFMA.js";
|
|
24
23
|
import "./chunk-GBRG75BQ.js";
|
|
24
|
+
import "./chunk-KUG52IAP.js";
|
|
25
25
|
import "./chunk-3EUW3WEO.js";
|
|
26
26
|
import "./chunk-U6VC4MU4.js";
|
|
27
|
-
import "./chunk-KUG52IAP.js";
|
|
28
|
-
import "./chunk-4SN6J65J.js";
|
|
29
27
|
import "./chunk-LCBAMY2M.js";
|
|
28
|
+
import "./chunk-4SN6J65J.js";
|
|
30
29
|
import "./chunk-CF7PE763.js";
|
|
31
30
|
import "./chunk-G3SUCT4W.js";
|
|
32
31
|
import "./chunk-4VNS5WPM.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultOpenBrowser
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-6HYVJV7B.js";
|
|
3
|
+
} from "./chunk-OHEKYYJF.js";
|
|
5
4
|
import {
|
|
6
5
|
generateCloudflareEmailRoutingToken,
|
|
7
6
|
parseFlagWithOptionalValue,
|
|
8
7
|
runCloudflareOAuthLogin,
|
|
9
8
|
upsertEnvVariable
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4LG74DRG.js";
|
|
10
|
+
import "./chunk-6HYVJV7B.js";
|
|
11
11
|
import {
|
|
12
12
|
generatePkcePair,
|
|
13
13
|
runAntigravityOAuthLogin,
|
|
@@ -17,30 +17,30 @@ import {
|
|
|
17
17
|
runXaiOAuthDeviceCode,
|
|
18
18
|
runXaiOAuthLogin,
|
|
19
19
|
startCallbackServer
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TOILAPLH.js";
|
|
21
21
|
import "./chunk-JBTJAPUF.js";
|
|
22
|
-
import {
|
|
23
|
-
buildEnvFromProfile,
|
|
24
|
-
loadProfileConfig
|
|
25
|
-
} from "./chunk-ROWQEJRP.js";
|
|
26
22
|
import {
|
|
27
23
|
createOAuthTokenStore
|
|
28
24
|
} from "./chunk-JZPBVBIY.js";
|
|
29
|
-
import "./chunk-O4BU24WZ.js";
|
|
30
|
-
import "./chunk-I42VC5KR.js";
|
|
31
|
-
import "./chunk-WWC7I6TA.js";
|
|
32
|
-
import "./chunk-ISNCLGUZ.js";
|
|
33
|
-
import "./chunk-OLZBQWZU.js";
|
|
34
25
|
import {
|
|
35
26
|
toErrorMessage
|
|
36
27
|
} from "./chunk-HNMXYYJR.js";
|
|
37
28
|
import "./chunk-H33743XH.js";
|
|
38
29
|
import "./chunk-LM6IYQ3F.js";
|
|
30
|
+
import {
|
|
31
|
+
buildEnvFromProfile,
|
|
32
|
+
loadProfileConfig
|
|
33
|
+
} from "./chunk-ROWQEJRP.js";
|
|
34
|
+
import "./chunk-O4BU24WZ.js";
|
|
35
|
+
import "./chunk-I42VC5KR.js";
|
|
36
|
+
import "./chunk-WWC7I6TA.js";
|
|
37
|
+
import "./chunk-KUG52IAP.js";
|
|
39
38
|
import "./chunk-3EUW3WEO.js";
|
|
40
39
|
import "./chunk-U6VC4MU4.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-5NBHQD4D.js";
|
|
41
|
+
import "./chunk-OLZBQWZU.js";
|
|
43
42
|
import "./chunk-LCBAMY2M.js";
|
|
43
|
+
import "./chunk-4SN6J65J.js";
|
|
44
44
|
import "./chunk-CF7PE763.js";
|
|
45
45
|
import "./chunk-G3SUCT4W.js";
|
|
46
46
|
import "./chunk-4VNS5WPM.js";
|
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
runLoginCommand,
|
|
7
7
|
runLogoutCommand,
|
|
8
8
|
runWhoamiCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OHEKYYJF.js";
|
|
10
10
|
import "./chunk-6HYVJV7B.js";
|
|
11
11
|
import "./chunk-JBTJAPUF.js";
|
|
12
|
+
import "./chunk-H33743XH.js";
|
|
13
|
+
import "./chunk-LM6IYQ3F.js";
|
|
12
14
|
import "./chunk-ROWQEJRP.js";
|
|
13
15
|
import "./chunk-O4BU24WZ.js";
|
|
14
16
|
import "./chunk-I42VC5KR.js";
|
|
15
17
|
import "./chunk-WWC7I6TA.js";
|
|
16
|
-
import "./chunk-ISNCLGUZ.js";
|
|
17
|
-
import "./chunk-OLZBQWZU.js";
|
|
18
|
-
import "./chunk-H33743XH.js";
|
|
19
|
-
import "./chunk-LM6IYQ3F.js";
|
|
20
18
|
import "./chunk-3EUW3WEO.js";
|
|
21
19
|
import "./chunk-U6VC4MU4.js";
|
|
22
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-5NBHQD4D.js";
|
|
21
|
+
import "./chunk-OLZBQWZU.js";
|
|
23
22
|
import "./chunk-LCBAMY2M.js";
|
|
23
|
+
import "./chunk-4SN6J65J.js";
|
|
24
24
|
import "./chunk-CF7PE763.js";
|
|
25
25
|
import "./chunk-G3SUCT4W.js";
|
|
26
26
|
import "./chunk-4VNS5WPM.js";
|
|
@@ -1,15 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createSpaceKey
|
|
3
|
-
} from "./chunk-UAD2WT54.js";
|
|
4
1
|
import {
|
|
5
2
|
patch,
|
|
6
3
|
read
|
|
7
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NITP2JDG.js";
|
|
8
5
|
import {
|
|
9
6
|
DEVICE_LOCAL_OWNER_ID,
|
|
10
7
|
isDeviceLocalSpaceBody,
|
|
11
8
|
selectIdentityUserId
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TSUJOM6N.js";
|
|
10
|
+
|
|
11
|
+
// packages/create/space/spaceKeys.ts
|
|
12
|
+
var SEPARATOR = "-";
|
|
13
|
+
var SPACE_PREFIX = "space";
|
|
14
|
+
var SPACE_PREFIX_WITH_SEPARATOR = `${SPACE_PREFIX}${SEPARATOR}`;
|
|
15
|
+
var normalizeSpaceId = (spaceId) => {
|
|
16
|
+
if (!spaceId) return spaceId;
|
|
17
|
+
return spaceId.startsWith(SPACE_PREFIX_WITH_SEPARATOR) ? spaceId.slice(SPACE_PREFIX_WITH_SEPARATOR.length) : spaceId;
|
|
18
|
+
};
|
|
19
|
+
var createSpaceKey = {
|
|
20
|
+
// 空间基础信息的key
|
|
21
|
+
space: (spaceId) => {
|
|
22
|
+
return [SPACE_PREFIX, normalizeSpaceId(spaceId)].join(SEPARATOR);
|
|
23
|
+
},
|
|
24
|
+
// 空间成员的key
|
|
25
|
+
member: (userId, spaceId) => {
|
|
26
|
+
return [SPACE_PREFIX, "member", userId, normalizeSpaceId(spaceId)].join(
|
|
27
|
+
SEPARATOR
|
|
28
|
+
);
|
|
29
|
+
},
|
|
30
|
+
// 查询用户所在的所有空间的范围
|
|
31
|
+
memberRange: (userId) => {
|
|
32
|
+
return {
|
|
33
|
+
start: [SPACE_PREFIX, "member", userId, ""].join(SEPARATOR),
|
|
34
|
+
end: [SPACE_PREFIX, "member", userId, "\uFFFF"].join(SEPARATOR)
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* 预留:未来若出现“按用户、按空间、且必须跨设备同步”的空间级偏好,
|
|
39
|
+
* 统一使用这个 key family。当前产品主链不要依赖它。
|
|
40
|
+
*/
|
|
41
|
+
setting: (userId, spaceId) => {
|
|
42
|
+
return [SPACE_PREFIX, "setting", userId, normalizeSpaceId(spaceId)].join(
|
|
43
|
+
SEPARATOR
|
|
44
|
+
);
|
|
45
|
+
},
|
|
46
|
+
/**
|
|
47
|
+
* 预留:未来如确实需要批量读取空间级远端偏好,再使用这个范围。
|
|
48
|
+
*/
|
|
49
|
+
settingRange: (userId) => {
|
|
50
|
+
return {
|
|
51
|
+
start: [SPACE_PREFIX, "setting", userId, ""].join(SEPARATOR),
|
|
52
|
+
end: [SPACE_PREFIX, "setting", userId, "\uFFFF"].join(SEPARATOR)
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
// 从成员key中提取空间key
|
|
56
|
+
// 成员 key 格式: space-member-{userId}-{spaceId}
|
|
57
|
+
// userId 是单段(无连字符),spaceId 是 ULID(无连字符)
|
|
58
|
+
spaceFromMember: (memberKey) => {
|
|
59
|
+
const parts = memberKey.split(SEPARATOR);
|
|
60
|
+
if (parts.length < 4) return "";
|
|
61
|
+
const spaceId = parts[parts.length - 1];
|
|
62
|
+
return [SPACE_PREFIX, spaceId].join(SEPARATOR);
|
|
63
|
+
},
|
|
64
|
+
// 从成员key中提取空间ID
|
|
65
|
+
spaceIdFromMember: (memberKey) => {
|
|
66
|
+
const parts = memberKey.split(SEPARATOR);
|
|
67
|
+
return parts.length >= 4 ? parts[parts.length - 1] : "";
|
|
68
|
+
}
|
|
69
|
+
};
|
|
13
70
|
|
|
14
71
|
// packages/create/space/utils/permissions.ts
|
|
15
72
|
var checkSpaceMembership = (spaceData, userId) => {
|
|
@@ -106,6 +163,8 @@ var addContentAction = async (input, thunkAPI) => {
|
|
|
106
163
|
};
|
|
107
164
|
|
|
108
165
|
export {
|
|
166
|
+
normalizeSpaceId,
|
|
167
|
+
createSpaceKey,
|
|
109
168
|
checkSpaceMembership,
|
|
110
169
|
localSpaceAuthorityPatchStamp,
|
|
111
170
|
UNCATEGORIZED_ID,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearCliLocalRuntimePreparedAgentCache
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZR4RO4ZC.js";
|
|
4
4
|
import {
|
|
5
5
|
getReadableCliDb
|
|
6
6
|
} from "./chunk-W4NVOSFF.js";
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
resolveAgentRecordFromHybridStore,
|
|
13
13
|
sanitizeAgentRecordForCliOutput,
|
|
14
14
|
writeAgentRecord
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FW4SQ6II.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveCliAgentKeyInput
|
|
18
18
|
} from "./chunk-VHBWHNVT.js";
|
|
19
|
-
import {
|
|
20
|
-
parseUserIdFromAuthToken,
|
|
21
|
-
resolveAuthToken
|
|
22
|
-
} from "./chunk-ISNCLGUZ.js";
|
|
23
19
|
import {
|
|
24
20
|
toErrorMessage
|
|
25
21
|
} from "./chunk-HNMXYYJR.js";
|
|
22
|
+
import {
|
|
23
|
+
parseUserIdFromAuthToken,
|
|
24
|
+
resolveAuthToken
|
|
25
|
+
} from "./chunk-5NBHQD4D.js";
|
|
26
26
|
|
|
27
27
|
// packages/cli/agentRecordCommands.ts
|
|
28
28
|
async function runAgentReadCommand(args, deps = {}) {
|
|
@@ -43,7 +43,7 @@ async function runAgentReadCommand(args, deps = {}) {
|
|
|
43
43
|
const fetchImpl = deps.fetchImpl ?? fetch;
|
|
44
44
|
const fallbackFetchImpl = deps.fallbackFetchImpl;
|
|
45
45
|
try {
|
|
46
|
-
|
|
46
|
+
let result = await resolveAgentRecordFromHybridStore({
|
|
47
47
|
agentInput,
|
|
48
48
|
cliArgs: args,
|
|
49
49
|
env,
|
|
@@ -51,6 +51,19 @@ async function runAgentReadCommand(args, deps = {}) {
|
|
|
51
51
|
fetchImpl,
|
|
52
52
|
fallbackFetchImpl
|
|
53
53
|
});
|
|
54
|
+
if (!result && agentKey.startsWith("agent-pub-")) {
|
|
55
|
+
const bareId = agentKey.slice("agent-pub-".length);
|
|
56
|
+
if (bareId) {
|
|
57
|
+
result = await resolveAgentRecordFromHybridStore({
|
|
58
|
+
agentInput: bareId,
|
|
59
|
+
cliArgs: args,
|
|
60
|
+
env,
|
|
61
|
+
db,
|
|
62
|
+
fetchImpl,
|
|
63
|
+
fallbackFetchImpl
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
54
67
|
if (!result) {
|
|
55
68
|
throw new Error(`agent not found: ${agentKey}`);
|
|
56
69
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
buildSkillDiscoveryLayer
|
|
3
|
-
} from "./chunk-C4FTUXVF.js";
|
|
4
1
|
import {
|
|
5
2
|
load
|
|
6
3
|
} from "./chunk-WZSRQNQG.js";
|
|
4
|
+
import {
|
|
5
|
+
buildSkillDiscoveryLayer
|
|
6
|
+
} from "./chunk-QLUFR47U.js";
|
|
7
7
|
|
|
8
8
|
// packages/agent-runtime/skillDiscovery.ts
|
|
9
9
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
10
10
|
import { join } from "node:path";
|
|
11
|
-
var SKILL_SCAN_DIRS = [".agents/skills"
|
|
11
|
+
var SKILL_SCAN_DIRS = [".agents/skills"];
|
|
12
12
|
var MAX_DISCOVERED_SKILLS = 50;
|
|
13
|
+
var MAX_DISCOVERY_DESC_BUDGET = 4e3;
|
|
14
|
+
var MIN_DESC_LENGTH = 80;
|
|
13
15
|
function parseSkillFrontmatter(filePath) {
|
|
14
16
|
try {
|
|
15
17
|
const content = readFileSync(filePath, "utf8").slice(0, 2048);
|
|
@@ -20,8 +22,9 @@ function parseSkillFrontmatter(filePath) {
|
|
|
20
22
|
const name = typeof fm.name === "string" ? fm.name : void 0;
|
|
21
23
|
const rawDesc = fm.description;
|
|
22
24
|
const description = typeof rawDesc === "string" ? rawDesc : rawDesc == null ? void 0 : String(rawDesc);
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
+
const sanitizeName = (s) => s?.trim().replace(/^["']|["']$/g, "").replace(/[\n\r]+/g, " ").slice(0, 200);
|
|
26
|
+
const sanitizeDesc = (s) => s?.trim().replace(/^["']|["']$/g, "").replace(/[\n\r]+/g, " ").slice(0, 200);
|
|
27
|
+
return { name: sanitizeName(name), description: sanitizeDesc(description) };
|
|
25
28
|
} catch {
|
|
26
29
|
return {};
|
|
27
30
|
}
|
|
@@ -41,15 +44,20 @@ function discoverSkills(cwd) {
|
|
|
41
44
|
skills.push({ name: name ?? entry, description: description ?? "", relativePath: join(dir, entry, "SKILL.md") });
|
|
42
45
|
continue;
|
|
43
46
|
}
|
|
44
|
-
if (dir === "docs/skills" && entry.endsWith(".md")) {
|
|
45
|
-
const flatPath = join(absDir, entry);
|
|
46
|
-
const { name, description } = parseSkillFrontmatter(flatPath);
|
|
47
|
-
skills.push({ name: name ?? entry.replace(/\.md$/, ""), description: description ?? "", relativePath: join(dir, entry) });
|
|
48
|
-
}
|
|
49
47
|
}
|
|
50
48
|
} catch {
|
|
51
49
|
}
|
|
52
50
|
}
|
|
51
|
+
const totalDescLen = skills.reduce((sum, s) => sum + s.description.length, 0);
|
|
52
|
+
if (totalDescLen > MAX_DISCOVERY_DESC_BUDGET && skills.length > 0) {
|
|
53
|
+
const scale = MAX_DISCOVERY_DESC_BUDGET / totalDescLen;
|
|
54
|
+
for (const s of skills) {
|
|
55
|
+
const targetLen = Math.max(MIN_DESC_LENGTH, Math.floor(s.description.length * scale));
|
|
56
|
+
if (s.description.length > targetLen) {
|
|
57
|
+
s.description = s.description.slice(0, targetLen).trimEnd();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
53
61
|
return skills;
|
|
54
62
|
}
|
|
55
63
|
function resolveSkillByName(cwd, name) {
|
|
@@ -3,13 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-JEXVIMYZ.js";
|
|
4
4
|
import {
|
|
5
5
|
prepareTools
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JNMELOHI.js";
|
|
7
7
|
import {
|
|
8
8
|
performFetchRequest
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
getPublicImageAgentMode
|
|
12
|
-
} from "./chunk-VIDPVFP3.js";
|
|
9
|
+
} from "./chunk-F22FKI27.js";
|
|
13
10
|
import {
|
|
14
11
|
createSSEParser,
|
|
15
12
|
createToolRunId,
|
|
@@ -20,43 +17,34 @@ import {
|
|
|
20
17
|
toolRunSetPending,
|
|
21
18
|
toolRunStarted,
|
|
22
19
|
toolRunSucceeded
|
|
23
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6EFMBEQG.js";
|
|
21
|
+
import {
|
|
22
|
+
getPublicImageAgentMode
|
|
23
|
+
} from "./chunk-VIDPVFP3.js";
|
|
24
24
|
import {
|
|
25
25
|
addToolMessage,
|
|
26
|
-
getModelInfo,
|
|
27
26
|
messageStreamEnd,
|
|
28
27
|
messageStreaming,
|
|
29
28
|
selectCurrentSpaceId,
|
|
30
29
|
updateToolMessage
|
|
31
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-FVGPOJYM.js";
|
|
32
31
|
import {
|
|
33
32
|
streamAgentChatTurn
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import {
|
|
36
|
-
selectCurrentServer
|
|
37
|
-
} from "./chunk-3NSIQZZ6.js";
|
|
38
|
-
import {
|
|
39
|
-
write
|
|
40
|
-
} from "./chunk-O26GI2JP.js";
|
|
33
|
+
} from "./chunk-JJR3NP7R.js";
|
|
41
34
|
import {
|
|
42
35
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
43
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-JCU2JDCV.js";
|
|
44
37
|
import {
|
|
45
38
|
createThinkParserState,
|
|
46
39
|
flushThinkParser,
|
|
47
40
|
processThinkChunk
|
|
48
41
|
} from "./chunk-OPZYGHUC.js";
|
|
49
42
|
import {
|
|
50
|
-
|
|
51
|
-
} from "./chunk-
|
|
43
|
+
getModelInfo
|
|
44
|
+
} from "./chunk-S73OEOHH.js";
|
|
52
45
|
import {
|
|
53
|
-
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import {
|
|
56
|
-
createDialogMessageKeyAndId,
|
|
57
|
-
dialogMessageKey,
|
|
58
|
-
toTrimmedString
|
|
59
|
-
} from "./chunk-O4BU24WZ.js";
|
|
46
|
+
getApiEndpoint
|
|
47
|
+
} from "./chunk-S3UTETIC.js";
|
|
60
48
|
import {
|
|
61
49
|
extractCustomId
|
|
62
50
|
} from "./chunk-DFFIZ25G.js";
|
|
@@ -68,19 +56,33 @@ import {
|
|
|
68
56
|
import {
|
|
69
57
|
toErrorMessage
|
|
70
58
|
} from "./chunk-HNMXYYJR.js";
|
|
59
|
+
import {
|
|
60
|
+
isNoloHostedProvider
|
|
61
|
+
} from "./chunk-524BDL33.js";
|
|
62
|
+
import {
|
|
63
|
+
selectCurrentServer
|
|
64
|
+
} from "./chunk-WTYKCU4W.js";
|
|
65
|
+
import {
|
|
66
|
+
write
|
|
67
|
+
} from "./chunk-NITP2JDG.js";
|
|
68
|
+
import {
|
|
69
|
+
createDialogMessageKeyAndId,
|
|
70
|
+
dialogMessageKey,
|
|
71
|
+
toTrimmedString
|
|
72
|
+
} from "./chunk-O4BU24WZ.js";
|
|
71
73
|
import {
|
|
72
74
|
createAsyncThunk,
|
|
73
75
|
selectIdentityToken
|
|
74
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-TSUJOM6N.js";
|
|
75
77
|
import {
|
|
76
78
|
isAbortError
|
|
77
79
|
} from "./chunk-OOSFSFMA.js";
|
|
78
|
-
import {
|
|
79
|
-
asTrimmedString
|
|
80
|
-
} from "./chunk-3EUW3WEO.js";
|
|
81
80
|
import {
|
|
82
81
|
isRecord
|
|
83
82
|
} from "./chunk-KUG52IAP.js";
|
|
83
|
+
import {
|
|
84
|
+
asTrimmedString
|
|
85
|
+
} from "./chunk-3EUW3WEO.js";
|
|
84
86
|
import {
|
|
85
87
|
asOptionalTrimmedString
|
|
86
88
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -182,6 +184,10 @@ var toOpenAIMessage = (rawMsg) => {
|
|
|
182
184
|
if (role === "assistant" && toolCalls) {
|
|
183
185
|
cleaned.tool_calls = toolCalls;
|
|
184
186
|
}
|
|
187
|
+
if (role === "assistant") {
|
|
188
|
+
const reasoningContent = typeof msg.reasoning_content === "string" ? msg.reasoning_content : typeof msg.thinkContent === "string" ? msg.thinkContent : "";
|
|
189
|
+
if (reasoningContent) cleaned.reasoning_content = reasoningContent;
|
|
190
|
+
}
|
|
185
191
|
if (role === "tool") {
|
|
186
192
|
const toolCallId = extractToolCallId(msg);
|
|
187
193
|
if (toolCallId) cleaned.tool_call_id = toolCallId;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generatePkcePair,
|
|
3
3
|
startCallbackServer
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
asOptionalFiniteNumber
|
|
7
|
-
} from "./chunk-WWC7I6TA.js";
|
|
4
|
+
} from "./chunk-TOILAPLH.js";
|
|
8
5
|
import {
|
|
9
6
|
toErrorMessage
|
|
10
7
|
} from "./chunk-HNMXYYJR.js";
|
|
8
|
+
import {
|
|
9
|
+
asOptionalFiniteNumber
|
|
10
|
+
} from "./chunk-WWC7I6TA.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/oauth/flows/cloudflare.ts
|
|
13
13
|
var CLOUDFLARE_OAUTH_AUTH_ENDPOINT = "https://dash.cloudflare.com/oauth2/auth";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isCompiledBinary,
|
|
3
3
|
resolveCliEntrypointPath
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5NBHQD4D.js";
|
|
5
5
|
|
|
6
6
|
// packages/cli/agentRunControl.ts
|
|
7
7
|
import { homedir as nodeHomedir } from "node:os";
|
|
@@ -231,6 +231,7 @@ async function spawnLocalBackgroundRun(input, deps = {}) {
|
|
|
231
231
|
const record = {
|
|
232
232
|
runId,
|
|
233
233
|
agentKey: input.agentKey,
|
|
234
|
+
...typeof input.agentName === "string" && input.agentName.trim() ? { agentName: input.agentName.trim() } : {},
|
|
234
235
|
cwd: input.cwd,
|
|
235
236
|
...messagePath ? { msgFile: messagePath } : input.msgFile ? { msgFile: input.msgFile } : {},
|
|
236
237
|
startedAt: now().toISOString(),
|