nolo-cli 0.250.0-alpha.1 → 0.252.0-alpha.1
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-F4MT6OPO.js → _executeModel-D6G3B45S.js} +51 -51
- package/{action-WZTKEF5H.js → action-QQOQ2LP3.js} +3 -3
- package/{addContentAction-MLI6GOBV.js → addContentAction-MB22YIDV.js} +6 -6
- package/{addDialogAgentAction-ARGQM22H.js → addDialogAgentAction-KNTBVVGY.js} +5 -5
- package/{agentDeleteCommand-DBCRHB4S.js → agentDeleteCommand-YCWDGJSF.js} +87 -82
- package/{agentEmailCommands-T4PAJ4KG.js → agentEmailCommands-DTWD5FWC.js} +87 -82
- package/{agentListCommands-5ULWKQ3E.js → agentListCommands-JTOONLYL.js} +233 -46
- package/{agentMachineCommands-65QUOCEY.js → agentMachineCommands-25X7OTLQ.js} +38 -36
- package/{agentProviderCommands-C5T7C5KZ.js → agentProviderCommands-QLTABYR7.js} +2 -2
- package/{agentPullCommand-4EQZYHU4.js → agentPullCommand-6OCNLVGC.js} +1 -1
- package/{agentRecordCommands-EKANS3A5.js → agentRecordCommands-SXE3WV2X.js} +86 -81
- package/{agentRunCommand-336PXBRJ.js → agentRunCommand-QSIED54S.js} +87 -82
- package/{agentRunControl-QMWTWV7C.js → agentRunControl-KNNDEEDI.js} +8 -6
- package/{agentRuntimeLocal-KKXJOBD3.js → agentRuntimeLocal-HVJJMB4W.js} +32 -31
- package/{agentSlice-FWYXP332.js → agentSlice-NBUJJVRI.js} +7 -7
- package/{appDeleteCommands-ERJK367V.js → appDeleteCommands-YU6TT6VN.js} +39 -37
- package/{appDeployCommands-LUV6QKQJ.js → appDeployCommands-4DEIX7YP.js} +39 -37
- package/{appDeployStatusCommands-WW7IYQD4.js → appDeployStatusCommands-3VKS6GBQ.js} +39 -37
- package/{appGetCommands-G7XYYSFO.js → appGetCommands-22FNNROT.js} +39 -37
- package/{appListCommands-4RXCIDNI.js → appListCommands-FVGMLHVU.js} +39 -37
- package/{authCommand-3C3RN4OU.js → authCommand-5DC3ES4Q.js} +15 -15
- package/{authCommands-ZMVEDCQD.js → authCommands-BLXNAUF4.js} +2 -2
- package/{chromeOpsCommands-NZITLHWO.js → chromeOpsCommands-AA555ANS.js} +1 -1
- package/{chunk-MAA42MMV.js → chunk-2FZVXOFX.js} +4 -4
- package/chunk-2GAUJDA5.js +594 -0
- package/{chunk-ESN4WNWU.js → chunk-2JHGUL5K.js} +2 -2
- package/{chunk-222CJNC2.js → chunk-2LANL4B5.js} +3 -3
- package/{chunk-W4G25PVP.js → chunk-2PB653F5.js} +196 -253
- package/{chunk-UF6J7NXV.js → chunk-3272HU62.js} +1 -1
- package/chunk-3A5NNQCN.js +64 -0
- package/{chunk-7IQA2VJF.js → chunk-3N3JPQBQ.js} +210 -56
- package/{chunk-LXKK7QFI.js → chunk-4HAOOY6G.js} +53 -23
- package/{chunk-ZQ6K57FJ.js → chunk-4YPH5KRA.js} +1 -1
- package/{chunk-ADOOL3PG.js → chunk-52M4RYVP.js} +1 -1
- package/{chunk-U7OMQLRE.js → chunk-5IN2NBDX.js} +9 -9
- package/{chunk-BAH3BAUZ.js → chunk-5QEOTC35.js} +5 -5
- package/{chunk-E5RYFR7E.js → chunk-5UYDG6HP.js} +19 -0
- package/{chunk-Z7A2ZQ5X.js → chunk-64ACTEAE.js} +1 -1
- package/{chunk-CTWCZKNS.js → chunk-6SOWMEAY.js} +4 -4
- package/{chunk-BFKJ2RS3.js → chunk-7RYODZDD.js} +1 -1
- package/{chunk-YWNCRUBZ.js → chunk-7XO73H5X.js} +116 -6
- package/{chunk-SMEX763N.js → chunk-7ZOVFB2H.js} +100 -43
- package/{chunk-UR4ZMRV3.js → chunk-A5F6DYP2.js} +1 -1
- package/{chunk-ZKMS73DK.js → chunk-A6VIMCWI.js} +3 -3
- package/{chunk-SX6AWTNK.js → chunk-BZLGPM5B.js} +3 -3
- package/{chunk-LTVEOOZL.js → chunk-CIAV4WK2.js} +14 -1
- package/{chunk-HZDK56EK.js → chunk-CO2NXG2J.js} +32 -10
- package/{chunk-OHUYN3YU.js → chunk-CYGFNMCH.js} +1 -1
- package/{chunk-MZVCFV3T.js → chunk-D3WOFN6N.js} +3 -3
- package/{chunk-VUHKG4KS.js → chunk-DNNPARJK.js} +9 -5
- package/{chunk-VV5IS3ES.js → chunk-DU3DJYVA.js} +5 -5
- package/{chunk-SPU3L3OR.js → chunk-EFM2IPZR.js} +3 -3
- package/{chunk-73PZD7JZ.js → chunk-EG3JTV7H.js} +2 -2
- package/{chunk-6ASGEP5D.js → chunk-EJQE5HB7.js} +1 -1
- package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
- package/{chunk-CD64YXRB.js → chunk-F6Q64KRV.js} +1 -1
- package/{chunk-TMRJGSK2.js → chunk-FRC2DNTN.js} +1 -1
- package/{chunk-W3HSD32M.js → chunk-FXEPZKNJ.js} +2 -2
- package/{chunk-I3J7HO3U.js → chunk-FZI2P64R.js} +137 -53
- package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
- package/{chunk-XHG7QROB.js → chunk-GO7UC5VH.js} +5 -5
- package/{chunk-RDBDHGU7.js → chunk-GVH2IP2M.js} +5 -5
- package/{chunk-AXZ5DDLB.js → chunk-GWS2X7TX.js} +235 -120
- package/{chunk-KHVTT4WW.js → chunk-HF4C5WIU.js} +81 -542
- package/{chunk-ATRU65OK.js → chunk-HMREADP6.js} +21 -19
- package/chunk-HZD5HXUO.js +405 -0
- package/{chunk-VHMPJGT4.js → chunk-ITCOQAHS.js} +3 -3
- package/{chunk-BQ4CZEVZ.js → chunk-ITMBFT35.js} +1 -1
- package/chunk-IVK2KT3H.js +209 -0
- package/{chunk-FFFKAOJN.js → chunk-JAYPSNGR.js} +1 -1
- package/{chunk-NEG5LYK5.js → chunk-JCQ3WCQ3.js} +3 -1
- package/{chunk-3IVFGQIM.js → chunk-JF5QT3YY.js} +2 -2
- package/{chunk-V4IYI3SB.js → chunk-JKALGWDL.js} +2 -2
- package/{chunk-PQ63BDV3.js → chunk-JPXACKSW.js} +9 -1
- package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
- package/{chunk-HEIIOJGN.js → chunk-LAQC5FAP.js} +4 -4
- package/{chunk-I3OW5RAX.js → chunk-LNIA5JVX.js} +8 -8
- package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
- package/{chunk-W6T4FNZP.js → chunk-LUPZLKXL.js} +192 -352
- package/{chunk-K26XPZRB.js → chunk-LVZVSLKO.js} +29 -9
- package/{chunk-SHDJLJWV.js → chunk-N2ZAY2DK.js} +1 -1
- package/{chunk-WEZ27JA7.js → chunk-NMXGIRSG.js} +1 -1
- package/{chunk-MTM4LRVG.js → chunk-NNUIVAC2.js} +1 -1
- package/{chunk-ARFCL53U.js → chunk-NPUHKEOB.js} +4 -4
- package/{chunk-32WTED6G.js → chunk-O6LPLIRS.js} +94 -83
- package/{chunk-4IQN6FWY.js → chunk-OB4FBZXJ.js} +4 -4
- package/{chunk-CD2DK5JA.js → chunk-OKH74FML.js} +2 -1
- package/{chunk-UPOW5HTG.js → chunk-OMIXG25B.js} +2 -2
- package/{chunk-MYYNZG2M.js → chunk-OOV5JN25.js} +4 -4
- package/{chunk-AS6L5KSD.js → chunk-P4R5KXU7.js} +2 -2
- package/{chunk-OKKA4BCM.js → chunk-P6HMEKLL.js} +114 -56
- package/{chunk-VTHWBTRE.js → chunk-PENRYZ4D.js} +1 -1
- package/{chunk-VIYVRPMJ.js → chunk-PHREU2KZ.js} +5 -3
- package/{chunk-EDT65EUE.js → chunk-PIVTQRX6.js} +45 -15
- package/{chunk-KJDN2YRH.js → chunk-QMKWSKWA.js} +4 -4
- package/{chunk-6TVYUQRM.js → chunk-QV32GSVO.js} +2 -2
- package/{chunk-K7VIXYTZ.js → chunk-R3MV2GII.js} +1 -45
- package/{chunk-XJSEST7D.js → chunk-SMCKJJXI.js} +2 -2
- package/{chunk-JFRJEPFI.js → chunk-SMZFWEMX.js} +1 -1
- package/{chunk-KK3FCYZM.js → chunk-SQL7YNED.js} +7 -4
- package/{chunk-D25ONVOH.js → chunk-SSZHE2RK.js} +1 -1
- package/{chunk-OLGFIQN2.js → chunk-T4VVQHSE.js} +1 -1
- package/{chunk-6QL3SUEK.js → chunk-TDI7ARZO.js} +3 -3
- package/{chunk-X6LYQDN5.js → chunk-TDLZA6LJ.js} +13 -10
- package/chunk-TRRXYFTR.js +46 -0
- package/{chunk-WMKA2DPK.js → chunk-TTUIM3PJ.js} +4 -4
- package/{chunk-RHBD22LV.js → chunk-TTWNTFTO.js} +39 -4
- package/{chunk-ZM5AZTQG.js → chunk-U7BP25PE.js} +18 -6
- package/{chunk-X3OZ655T.js → chunk-UI3Z3HDK.js} +1 -1
- package/{chunk-GX6DITLQ.js → chunk-UUCYUN6Y.js} +1 -1
- package/{chunk-BVEDT6DM.js → chunk-VH7AQEEF.js} +3 -3
- package/{chunk-PGDM7AM2.js → chunk-WAOHK3NJ.js} +9 -9
- package/{chunk-2FK2KZSL.js → chunk-WLHUANWZ.js} +1 -1
- package/{chunk-ZTWDSOXD.js → chunk-WNIBQBOR.js} +1 -1
- package/{chunk-SLUZ6FBJ.js → chunk-XBCADGK2.js} +1 -1
- package/chunk-XRGBJHZX.js +136 -0
- package/{chunk-6XVPMGXK.js → chunk-YB5D2GK4.js} +9 -3
- package/{chunk-AKWA6PCE.js → chunk-YQYYYATY.js} +45 -27
- package/{chunk-WQDTSK5U.js → chunk-ZMFA2TLE.js} +1 -1
- package/{chunk-CFDOIIOZ.js → chunk-ZMXO5G3E.js} +29 -23
- package/{chunk-YQO5UKHP.js → chunk-ZNOXY73P.js} +632 -124
- package/{cliAgentConfigHelpers-37ZNEY5Y.js → cliAgentConfigHelpers-FKBPFPKR.js} +7 -7
- package/{cliAuthorityBrokerClient-SFPC3WVK.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
- package/cliAuthorityBrokerProcess-IUCB4XA6.js +22 -0
- package/{cliLocalAgentRecordReader-R4CLUHYO.js → cliLocalAgentRecordReader-DWU3LBO2.js} +36 -35
- package/{commandRegistry-UIZRI4JV.js → commandRegistry-7FVATZS2.js} +74 -74
- package/{contentThunks-ZQSZA4GH.js → contentThunks-25XCB7VY.js} +20 -20
- package/{cooldownCommands-TIFCHCUN.js → cooldownCommands-PT5L4LNB.js} +3 -3
- package/{createAgentAutomationAction-RQE4F6PR.js → createAgentAutomationAction-FC5RI2LW.js} +20 -20
- package/{createDialogAction-JDSMQ34U.js → createDialogAction-IL3ISSQQ.js} +21 -21
- package/{createPageAction-VLF6XCYO.js → createPageAction-RVYBEYZV.js} +23 -23
- package/{db-CMUTP3W5.js → db-JMGVD4TB.js} +4 -2
- package/{dbSlice-656PMWR2.js → dbSlice-WG3ZG6PZ.js} +5 -5
- package/{deleteFile-ZCQESEEQ.js → deleteFile-4TIG54YN.js} +3 -3
- package/{dialogCommands-PLM7ZFWH.js → dialogCommands-VUJISJZF.js} +48 -42
- package/{dialogNotifyCommand-PST75COP.js → dialogNotifyCommand-JKYVSR6K.js} +8 -8
- package/{dialogSlice-63DD2ER2.js → dialogSlice-UMP55UAW.js} +18 -18
- package/{dialogUsageCommand-6RW2FY6K.js → dialogUsageCommand-IHAXS7DW.js} +5 -5
- package/{docCreateCommands-BST5DO7L.js → docCreateCommands-S46F6GKP.js} +38 -36
- package/{docDeleteCommands-YE6G2SO4.js → docDeleteCommands-LJG4NK6J.js} +39 -37
- package/{docReadCommands-M6T35U3G.js → docReadCommands-YPAYGHNM.js} +38 -36
- package/{docStore-7QNJWRJ2.js → docStore-VK3MVJ5Q.js} +6 -6
- package/{docUpdateCommands-6DFWGPVG.js → docUpdateCommands-MPTM6267.js} +38 -36
- package/{getPricing-FCHYVRJU.js → getPricing-5BLZRPTM.js} +3 -3
- package/{handleSendMessageAction-FCEFFAV4.js → handleSendMessageAction-VPKVNKBU.js} +83 -41
- package/{hostCredentialCreate-YEWCAMZN.js → hostCredentialCreate-K56HWPNY.js} +86 -81
- package/index.js +23 -11
- package/{localDialogRead-CIOTQM5T.js → localDialogRead-NXILOV3T.js} +1 -1
- package/{localRuntimeAdapter-Z22ZOZRY.js → localRuntimeAdapter-KVU72FWT.js} +84 -79
- package/{localRuntimeAuthority-TYHQCTZN.js → localRuntimeAuthority-QKWTPBQQ.js} +13 -3
- package/{localRuntimeDb-BO7IVWAZ.js → localRuntimeDb-3CIC4SKC.js} +1 -1
- package/{machineCommands-PT5OJ36V.js → machineCommands-C3O5RKNJ.js} +85 -80
- package/{machineWsRunDispatch-DQVNBSVE.js → machineWsRunDispatch-ZLART7ZA.js} +85 -80
- package/{markdownToSlate-KIYM7B3P.js → markdownToSlate-PXYAIBVL.js} +1 -1
- package/{mcpLocalAuthorizeCommand-GO6AYT63.js → mcpLocalAuthorizeCommand-LO7E4VQ5.js} +15 -11
- package/{memberThunks-JFYC4Z5L.js → memberThunks-7DNR6DRD.js} +7 -7
- package/{models-EP7VG6N2.js → models-ZX2BYIMB.js} +2 -2
- package/package.json +2 -1
- package/{projectArchive-4XUC5SLF.js → projectArchive-UBJFYRL7.js} +23 -23
- package/{providerPresetApply-4H7YP5D7.js → providerPresetApply-NTJUINI6.js} +35 -16
- package/{providerRegistry-F3UPOTIY.js → providerRegistry-W45SLUV6.js} +5 -5
- package/{read-BRZHXUJ6.js → read-Z2JOK6F6.js} +3 -3
- package/{readDocTool-N7RVFQEE.js → readDocTool-3QYSVWBT.js} +1 -1
- package/{readlineWorkspace-7U5QM3OM.js → readlineWorkspace-TSIYF7C6.js} +655 -248
- package/{removeDialogAgentAction-J7XU7OUX.js → removeDialogAgentAction-LRKDU4RI.js} +7 -7
- package/{runAgentClientLoop-7D7UCAS2.js → runAgentClientLoop-YAHGOWXN.js} +48 -48
- package/{runtimeDoctorCommands-RDRJXMXC.js → runtimeDoctorCommands-QGZSKNSE.js} +14 -11
- package/{secretCommands-2FEMRUFM.js → secretCommands-BXAQEOES.js} +2 -2
- package/{setDialogExtraReferencesAction-Q4V2ZZW2.js → setDialogExtraReferencesAction-KIITOCFP.js} +6 -6
- package/{setPrimaryDialogAgentAction-742H5S6T.js → setPrimaryDialogAgentAction-Y36PKFFB.js} +7 -7
- package/{settingThunks-IHXUF276.js → settingThunks-YQNG5L6K.js} +5 -5
- package/{spaceCommands-WCLD36WH.js → spaceCommands-P644AAZZ.js} +37 -35
- package/{streamAgentChatTurn-DVTOINT3.js → streamAgentChatTurn-5CSYAUAY.js} +81 -77
- package/{switchDialogAgentAction-HLDLHRRA.js → switchDialogAgentAction-U2VLPPVO.js} +5 -5
- package/{tools-BOPINT5S.js → tools-UZ3CDIR2.js} +38 -38
- package/{tuiRestart-5F2APN66.js → tuiRestart-GF4DGAAN.js} +7 -7
- package/{tuiSummaryLlmCaller-TM5BU73J.js → tuiSummaryLlmCaller-HROLGN4F.js} +13 -13
- package/{updateCommands-FBYA5WVG.js → updateCommands-BZ4YDHNM.js} +3 -3
- package/{updateDialogTitleAction-S76PUCLQ.js → updateDialogTitleAction-53XCCDK2.js} +20 -20
- package/{usageCommand-L4OFWXEU.js → usageCommand-XVJ7ZUTM.js} +2 -2
- package/{usageRebuildCommand-7JR33UHS.js → usageRebuildCommand-NK6S3D4J.js} +3 -3
- package/{windowsSelfUpdate-M4V77OUB.js → windowsSelfUpdate-4BAXX7C3.js} +2 -2
- package/{workloadLifecycle-ZCSQCHG3.js → workloadLifecycle-DYX5ZMAT.js} +2 -2
- package/chunk-FGHEF6WI.js +0 -34
- package/{chunk-ANUP75N2.js → chunk-2E4BYAUE.js} +0 -0
- package/{chunk-CDIRKCPD.js → chunk-6HL6E7ZD.js} +152 -152
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-Z4PCXPUE.js";
|
|
4
4
|
import {
|
|
5
5
|
updateContentTitle
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TDLZA6LJ.js";
|
|
7
7
|
import {
|
|
8
8
|
isAssistantToolStub,
|
|
9
9
|
selectAllMsgs
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZNOXY73P.js";
|
|
11
11
|
import "./chunk-TZXPT53C.js";
|
|
12
12
|
import {
|
|
13
13
|
require_format
|
|
@@ -18,34 +18,34 @@ import {
|
|
|
18
18
|
} from "./chunk-523DITKR.js";
|
|
19
19
|
import {
|
|
20
20
|
runLlm
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-YQYYYATY.js";
|
|
22
|
+
import "./chunk-JAYPSNGR.js";
|
|
23
23
|
import "./chunk-BYXBJQAS.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-NPUHKEOB.js";
|
|
25
25
|
import "./chunk-5RGU3J7P.js";
|
|
26
26
|
import "./chunk-UVLYNWIE.js";
|
|
27
27
|
import "./chunk-YNIYE47Z.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-NNUIVAC2.js";
|
|
29
|
+
import "./chunk-JKALGWDL.js";
|
|
29
30
|
import {
|
|
30
31
|
normalizeSpaceId
|
|
31
32
|
} from "./chunk-UAD2WT54.js";
|
|
32
33
|
import {
|
|
33
34
|
patch,
|
|
34
35
|
selectById
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-CO2NXG2J.js";
|
|
36
37
|
import "./chunk-3PVYUPXK.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-UI3Z3HDK.js";
|
|
38
39
|
import "./chunk-HXER7YJF.js";
|
|
39
40
|
import "./chunk-DXWGFL2Z.js";
|
|
40
41
|
import "./chunk-3L2WKC3W.js";
|
|
41
42
|
import "./chunk-QYPE3TS3.js";
|
|
42
43
|
import "./chunk-U35UUM5K.js";
|
|
43
44
|
import "./chunk-RD3QLZQV.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-U7BP25PE.js";
|
|
46
|
+
import "./chunk-ZMFA2TLE.js";
|
|
46
47
|
import "./chunk-UEILX4EV.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-6XVPMGXK.js";
|
|
48
|
+
import "./chunk-YB5D2GK4.js";
|
|
49
49
|
import "./chunk-YHNUDTU4.js";
|
|
50
50
|
import "./chunk-YJPK35HB.js";
|
|
51
51
|
import "./chunk-QQ56R7KS.js";
|
|
@@ -57,18 +57,18 @@ import {
|
|
|
57
57
|
buildDialogFallbackTitleFromMessages,
|
|
58
58
|
resolveDialogTitle
|
|
59
59
|
} from "./chunk-2MBTWINN.js";
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-CIAV4WK2.js";
|
|
61
61
|
import "./chunk-5ZUL4CUO.js";
|
|
62
62
|
import {
|
|
63
63
|
serializeMessageContent
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-2FZVXOFX.js";
|
|
65
65
|
import "./chunk-H57T64RA.js";
|
|
66
66
|
import "./chunk-UKZX3NHN.js";
|
|
67
|
-
import "./chunk-SR4FE5VD.js";
|
|
68
67
|
import "./chunk-5MMAK75Q.js";
|
|
68
|
+
import "./chunk-SR4FE5VD.js";
|
|
69
69
|
import "./chunk-USGHJSGO.js";
|
|
70
|
-
import "./chunk-E6A5NHDH.js";
|
|
71
70
|
import "./chunk-KX6YBIHG.js";
|
|
71
|
+
import "./chunk-E6A5NHDH.js";
|
|
72
72
|
import "./chunk-PSCNXBYA.js";
|
|
73
73
|
import "./chunk-DWLEOOGR.js";
|
|
74
74
|
import "./chunk-OW765XBU.js";
|
|
@@ -88,20 +88,20 @@ import "./chunk-I42VC5KR.js";
|
|
|
88
88
|
import "./chunk-4JH2UMJR.js";
|
|
89
89
|
import "./chunk-U6VC4MU4.js";
|
|
90
90
|
import "./chunk-LCBAMY2M.js";
|
|
91
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-EJQE5HB7.js";
|
|
92
92
|
import "./chunk-HNMXYYJR.js";
|
|
93
|
-
import "./chunk-
|
|
93
|
+
import "./chunk-2JHGUL5K.js";
|
|
94
94
|
import {
|
|
95
95
|
asTrimmedString
|
|
96
96
|
} from "./chunk-3EUW3WEO.js";
|
|
97
97
|
import "./chunk-WWC7I6TA.js";
|
|
98
|
-
import "./chunk-
|
|
98
|
+
import "./chunk-OKH74FML.js";
|
|
99
99
|
import "./chunk-JRTNUU5Z.js";
|
|
100
100
|
import "./chunk-KUG52IAP.js";
|
|
101
101
|
import "./chunk-G3SUCT4W.js";
|
|
102
102
|
import "./chunk-4SN6J65J.js";
|
|
103
103
|
import "./chunk-CF7PE763.js";
|
|
104
|
-
import "./chunk-
|
|
104
|
+
import "./chunk-JPXACKSW.js";
|
|
105
105
|
import "./chunk-QSJ3HFEF.js";
|
|
106
106
|
import {
|
|
107
107
|
__toESM
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
resolveDateWindow,
|
|
7
7
|
runUsageCommand,
|
|
8
8
|
summarizeUsage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VH7AQEEF.js";
|
|
10
10
|
import "./chunk-Z4PCXPUE.js";
|
|
11
11
|
import "./chunk-BUDVRYES.js";
|
|
12
12
|
import "./chunk-UVLYNWIE.js";
|
|
13
13
|
import "./chunk-YNIYE47Z.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-7RYODZDD.js";
|
|
15
15
|
import "./chunk-GLKOYSRU.js";
|
|
16
16
|
import "./chunk-SYTHYBMI.js";
|
|
17
17
|
import "./chunk-OJKUU3LP.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
parseUsageArgs,
|
|
3
3
|
require_date_fns,
|
|
4
4
|
resolveDateWindow
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VH7AQEEF.js";
|
|
6
6
|
import "./chunk-Z4PCXPUE.js";
|
|
7
7
|
import {
|
|
8
8
|
applyTokenUsageToDayStats,
|
|
@@ -12,7 +12,7 @@ import "./chunk-UVLYNWIE.js";
|
|
|
12
12
|
import "./chunk-YNIYE47Z.js";
|
|
13
13
|
import {
|
|
14
14
|
getDefaultCliLocalRuntimeDb
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7RYODZDD.js";
|
|
16
16
|
import "./chunk-GLKOYSRU.js";
|
|
17
17
|
import {
|
|
18
18
|
isLevelNotFoundError
|
|
@@ -456,7 +456,7 @@ function formatRebuildReport(report) {
|
|
|
456
456
|
return lines.join("\n");
|
|
457
457
|
}
|
|
458
458
|
async function resolveRebuildUserId(env) {
|
|
459
|
-
const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-
|
|
459
|
+
const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-FKBPFPKR.js");
|
|
460
460
|
return resolveLocalUserId(env);
|
|
461
461
|
}
|
|
462
462
|
async function runUsageRebuildCommand(args, deps) {
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
defaultLaunchWindowsUpdateHelper,
|
|
4
4
|
getWindowsUpdateStatus,
|
|
5
5
|
scheduleWindowsSelfUpdate
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-FRC2DNTN.js";
|
|
7
|
+
import "./chunk-5UYDG6HP.js";
|
|
8
8
|
import "./chunk-U67V476Y.js";
|
|
9
9
|
export {
|
|
10
10
|
buildWindowsUpdateHelperSource,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
buildPrimaryExecutionTicket,
|
|
10
10
|
createDockerToolChannel,
|
|
11
11
|
dockerExecutionToolNames
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PENRYZ4D.js";
|
|
13
13
|
import {
|
|
14
14
|
Database
|
|
15
15
|
} from "./chunk-IT3ZZRJE.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-2E4BYAUE.js";
|
|
17
17
|
import "./chunk-R5GO3YZP.js";
|
|
18
18
|
import "./chunk-U67V476Y.js";
|
|
19
19
|
|
package/chunk-FGHEF6WI.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolveModelReasoningCapability
|
|
3
|
-
} from "./chunk-CD2DK5JA.js";
|
|
4
|
-
|
|
5
|
-
// packages/ai/agent/defaultReasoningEffort.ts
|
|
6
|
-
var defaults = {
|
|
7
|
-
"gpt-6.2-sol": "medium",
|
|
8
|
-
"gpt-6.2-astra": "high",
|
|
9
|
-
"gpt-6.1-sol": "medium",
|
|
10
|
-
"gpt-6.1-terra": "medium",
|
|
11
|
-
"gpt-6-luna": "medium",
|
|
12
|
-
"gpt-6-astra": "high",
|
|
13
|
-
"claude-opus-5-5": "medium",
|
|
14
|
-
"claude-sonnet-5-5": "high",
|
|
15
|
-
"deepseek-flash": "high",
|
|
16
|
-
"deepseek-v4-flash": "high",
|
|
17
|
-
"deepseek-v4.1-flash": "high"
|
|
18
|
-
};
|
|
19
|
-
var deepseekChannels = /* @__PURE__ */ new Set(["opendesign", "ollama-cloud", "lithosai"]);
|
|
20
|
-
var providers = /* @__PURE__ */ new Set(["nolo", "openai", "openrouter", "anthropic", "deepseek", "commandcode", "opencode-go", "stepfun"]);
|
|
21
|
-
function resolveDefaultReasoningEffort(input) {
|
|
22
|
-
const provider = (input.provider ?? "").toLowerCase();
|
|
23
|
-
const model = (input.model ?? "").toLowerCase().split("/").pop() ?? "";
|
|
24
|
-
const isDeepseekFlash = ["deepseek-flash", "deepseek-v4-flash", "deepseek-v4.1-flash"].includes(model);
|
|
25
|
-
const effort = providers.has(provider) || deepseekChannels.has(provider) && isDeepseekFlash ? defaults[model] : void 0;
|
|
26
|
-
if (!effort) return input.fallback;
|
|
27
|
-
if (provider === "nolo" && model.startsWith("claude-") && input.model?.startsWith("anthropic/")) return effort;
|
|
28
|
-
if (provider === "anthropic" && model.startsWith("claude-")) return effort;
|
|
29
|
-
return resolveModelReasoningCapability(provider, input.model).efforts.includes(effort) ? effort : input.fallback;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
resolveDefaultReasoningEffort
|
|
34
|
-
};
|
|
File without changes
|
|
@@ -6,44 +6,116 @@ import {
|
|
|
6
6
|
asTrimmedNonEmptyStringArray
|
|
7
7
|
} from "./chunk-I42VC5KR.js";
|
|
8
8
|
|
|
9
|
-
// packages/
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
// packages/agent-runtime/secretScrubber.ts
|
|
10
|
+
var SECRET_PATTERNS = [
|
|
11
|
+
// 1. PEM 私钥块(高危硬拦截)
|
|
12
|
+
{
|
|
13
|
+
kind: "PRIVATE_KEY",
|
|
14
|
+
placeholder: "[REDACTED:PRIVATE_KEY]",
|
|
15
|
+
regex: /-----BEGIN (?:[A-Z0-9 ]+)?PRIVATE KEY-----[\s\S]+?-----END (?:[A-Z0-9 ]+)?PRIVATE KEY-----/g
|
|
16
|
+
},
|
|
17
|
+
// 2. Anthropic API Key (sk-ant-...)
|
|
18
|
+
{
|
|
19
|
+
kind: "ANTHROPIC_KEY",
|
|
20
|
+
placeholder: "[REDACTED:ANTHROPIC_KEY]",
|
|
21
|
+
regex: /\bsk-ant-[a-zA-Z0-9_\-]{20,}\b/g
|
|
22
|
+
},
|
|
23
|
+
// 3. OpenAI / DeepSeek / 通用 API Key (sk-...)
|
|
24
|
+
{
|
|
25
|
+
kind: "API_KEY",
|
|
26
|
+
placeholder: "[REDACTED:API_KEY]",
|
|
27
|
+
regex: /\bsk-[a-zA-Z0-9_\-]{24,}\b/g
|
|
28
|
+
},
|
|
29
|
+
// 3b. BigModel / 智谱(GLM)API Key:32 位 hex + "." + 16 位字母数字
|
|
30
|
+
// (2026-11 实证:这类 key 没有任何可辨识前缀,此前漏在清洗与入路隔离之外,
|
|
31
|
+
// 用户贴进对话后明文直接进了 prompt / 历史 / 工具日志。)
|
|
32
|
+
{
|
|
33
|
+
kind: "BIGMODEL_KEY",
|
|
34
|
+
placeholder: "[REDACTED:BIGMODEL_KEY]",
|
|
35
|
+
regex: /\b[0-9a-fA-F]{32}\.[A-Za-z0-9]{16}\b/g
|
|
36
|
+
},
|
|
37
|
+
// 4. GitHub 访问令牌 (ghp_..., gho_..., github_pat_...)
|
|
38
|
+
{
|
|
39
|
+
kind: "GITHUB_TOKEN",
|
|
40
|
+
placeholder: "[REDACTED:GITHUB_TOKEN]",
|
|
41
|
+
regex: /\b(?:gh[pousr]_[a-zA-Z0-9]{30,}|github_pat_[a-zA-Z0-9_]{40,})\b/g
|
|
42
|
+
},
|
|
43
|
+
// 5. Bearer Token (JWT / Authorization Bearer)
|
|
44
|
+
{
|
|
45
|
+
kind: "BEARER_TOKEN",
|
|
46
|
+
placeholder: "Bearer [REDACTED:BEARER_TOKEN]",
|
|
47
|
+
regex: /\bBearer\s+[a-zA-Z0-9_\-\.]{25,}\b/gi
|
|
48
|
+
},
|
|
49
|
+
// 6. 常见环境变量或配置中的密码赋值 (PASSWORD=..., PASSWD=...)
|
|
50
|
+
{
|
|
51
|
+
kind: "PASSWORD",
|
|
52
|
+
placeholder: "$1=[REDACTED:PASSWORD]",
|
|
53
|
+
regex: /\b((?:DB_|DATABASE_|ADMIN_|ROOT_|MYSQL_|POSTGRES_)?(?:PASSWORD|PASSWD|SECRET_KEY))\s*=\s*['"]?([^\s'"]{4,})['"]?/gi
|
|
54
|
+
}
|
|
14
55
|
];
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
56
|
+
var QUICK_PROBE_SUBSTRINGS = [
|
|
57
|
+
"sk-",
|
|
58
|
+
"ghp_",
|
|
59
|
+
"gho_",
|
|
60
|
+
"ghu_",
|
|
61
|
+
"ghs_",
|
|
62
|
+
"ghr_",
|
|
63
|
+
"github_pat_",
|
|
64
|
+
"PRIVATE KEY",
|
|
65
|
+
"Bearer ",
|
|
66
|
+
"bearer ",
|
|
67
|
+
"PASSWORD",
|
|
68
|
+
"password",
|
|
69
|
+
"PASSWD",
|
|
70
|
+
"SECRET_KEY"
|
|
71
|
+
];
|
|
72
|
+
var UNPREFIXED_PROBE_REGEX = /\b[0-9a-fA-F]{32}\.[A-Za-z0-9]{16}\b/;
|
|
73
|
+
function hasPotentialSecrets(text) {
|
|
74
|
+
if (typeof text !== "string" || text.length === 0) return false;
|
|
75
|
+
if (QUICK_PROBE_SUBSTRINGS.some((probe) => text.includes(probe))) return true;
|
|
76
|
+
return UNPREFIXED_PROBE_REGEX.test(text);
|
|
77
|
+
}
|
|
78
|
+
function scrubSecrets(text) {
|
|
79
|
+
if (typeof text !== "string" || text.length === 0) {
|
|
80
|
+
return { cleaned: text, redactedCount: 0, matchedKinds: [] };
|
|
22
81
|
}
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
let text;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
82
|
+
if (!hasPotentialSecrets(text)) {
|
|
83
|
+
return { cleaned: text, redactedCount: 0, matchedKinds: [] };
|
|
84
|
+
}
|
|
85
|
+
let cleaned = text;
|
|
86
|
+
let redactedCount = 0;
|
|
87
|
+
const matchedKinds = [];
|
|
88
|
+
for (const pattern of SECRET_PATTERNS) {
|
|
89
|
+
pattern.regex.lastIndex = 0;
|
|
90
|
+
const matches = cleaned.match(pattern.regex);
|
|
91
|
+
if (matches && matches.length > 0) {
|
|
92
|
+
redactedCount += matches.length;
|
|
93
|
+
if (!matchedKinds.includes(pattern.kind)) {
|
|
94
|
+
matchedKinds.push(pattern.kind);
|
|
95
|
+
}
|
|
96
|
+
cleaned = cleaned.replace(pattern.regex, pattern.placeholder);
|
|
37
97
|
}
|
|
38
98
|
}
|
|
39
|
-
return
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
if (
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
99
|
+
return { cleaned, redactedCount, matchedKinds };
|
|
100
|
+
}
|
|
101
|
+
function scrubObjectSecrets(val) {
|
|
102
|
+
if (val === null || val === void 0) return val;
|
|
103
|
+
if (typeof val === "string") {
|
|
104
|
+
return scrubSecrets(val).cleaned;
|
|
105
|
+
}
|
|
106
|
+
if (Array.isArray(val)) {
|
|
107
|
+
return val.map((item) => scrubObjectSecrets(item));
|
|
108
|
+
}
|
|
109
|
+
if (typeof val === "object") {
|
|
110
|
+
if (val instanceof Date || val instanceof RegExp) return val;
|
|
111
|
+
const result = {};
|
|
112
|
+
for (const [k, v] of Object.entries(val)) {
|
|
113
|
+
result[k] = scrubObjectSecrets(v);
|
|
114
|
+
}
|
|
115
|
+
return result;
|
|
116
|
+
}
|
|
117
|
+
return val;
|
|
118
|
+
}
|
|
47
119
|
|
|
48
120
|
// packages/agent-runtime/toolOutputSanitizer.ts
|
|
49
121
|
var SANITIZE_REPLACEMENT_CHAR = "\uFFFD";
|
|
@@ -183,117 +255,6 @@ function sanitizeToolOutputContent(content) {
|
|
|
183
255
|
return typeof content === "string" ? sanitizeToolOutputText(content) : content;
|
|
184
256
|
}
|
|
185
257
|
|
|
186
|
-
// packages/agent-runtime/secretScrubber.ts
|
|
187
|
-
var SECRET_PATTERNS = [
|
|
188
|
-
// 1. PEM 私钥块(高危硬拦截)
|
|
189
|
-
{
|
|
190
|
-
kind: "PRIVATE_KEY",
|
|
191
|
-
placeholder: "[REDACTED:PRIVATE_KEY]",
|
|
192
|
-
regex: /-----BEGIN (?:[A-Z0-9 ]+)?PRIVATE KEY-----[\s\S]+?-----END (?:[A-Z0-9 ]+)?PRIVATE KEY-----/g
|
|
193
|
-
},
|
|
194
|
-
// 2. Anthropic API Key (sk-ant-...)
|
|
195
|
-
{
|
|
196
|
-
kind: "ANTHROPIC_KEY",
|
|
197
|
-
placeholder: "[REDACTED:ANTHROPIC_KEY]",
|
|
198
|
-
regex: /\bsk-ant-[a-zA-Z0-9_\-]{20,}\b/g
|
|
199
|
-
},
|
|
200
|
-
// 3. OpenAI / DeepSeek / 通用 API Key (sk-...)
|
|
201
|
-
{
|
|
202
|
-
kind: "API_KEY",
|
|
203
|
-
placeholder: "[REDACTED:API_KEY]",
|
|
204
|
-
regex: /\bsk-[a-zA-Z0-9_\-]{24,}\b/g
|
|
205
|
-
},
|
|
206
|
-
// 3b. BigModel / 智谱(GLM)API Key:32 位 hex + "." + 16 位字母数字
|
|
207
|
-
// (2026-11 实证:这类 key 没有任何可辨识前缀,此前漏在清洗与入路隔离之外,
|
|
208
|
-
// 用户贴进对话后明文直接进了 prompt / 历史 / 工具日志。)
|
|
209
|
-
{
|
|
210
|
-
kind: "BIGMODEL_KEY",
|
|
211
|
-
placeholder: "[REDACTED:BIGMODEL_KEY]",
|
|
212
|
-
regex: /\b[0-9a-fA-F]{32}\.[A-Za-z0-9]{16}\b/g
|
|
213
|
-
},
|
|
214
|
-
// 4. GitHub 访问令牌 (ghp_..., gho_..., github_pat_...)
|
|
215
|
-
{
|
|
216
|
-
kind: "GITHUB_TOKEN",
|
|
217
|
-
placeholder: "[REDACTED:GITHUB_TOKEN]",
|
|
218
|
-
regex: /\b(?:gh[pousr]_[a-zA-Z0-9]{30,}|github_pat_[a-zA-Z0-9_]{40,})\b/g
|
|
219
|
-
},
|
|
220
|
-
// 5. Bearer Token (JWT / Authorization Bearer)
|
|
221
|
-
{
|
|
222
|
-
kind: "BEARER_TOKEN",
|
|
223
|
-
placeholder: "Bearer [REDACTED:BEARER_TOKEN]",
|
|
224
|
-
regex: /\bBearer\s+[a-zA-Z0-9_\-\.]{25,}\b/gi
|
|
225
|
-
},
|
|
226
|
-
// 6. 常见环境变量或配置中的密码赋值 (PASSWORD=..., PASSWD=...)
|
|
227
|
-
{
|
|
228
|
-
kind: "PASSWORD",
|
|
229
|
-
placeholder: "$1=[REDACTED:PASSWORD]",
|
|
230
|
-
regex: /\b((?:DB_|DATABASE_|ADMIN_|ROOT_|MYSQL_|POSTGRES_)?(?:PASSWORD|PASSWD|SECRET_KEY))\s*=\s*['"]?([^\s'"]{4,})['"]?/gi
|
|
231
|
-
}
|
|
232
|
-
];
|
|
233
|
-
var QUICK_PROBE_SUBSTRINGS = [
|
|
234
|
-
"sk-",
|
|
235
|
-
"ghp_",
|
|
236
|
-
"gho_",
|
|
237
|
-
"ghu_",
|
|
238
|
-
"ghs_",
|
|
239
|
-
"ghr_",
|
|
240
|
-
"github_pat_",
|
|
241
|
-
"PRIVATE KEY",
|
|
242
|
-
"Bearer ",
|
|
243
|
-
"bearer ",
|
|
244
|
-
"PASSWORD",
|
|
245
|
-
"password",
|
|
246
|
-
"PASSWD",
|
|
247
|
-
"SECRET_KEY"
|
|
248
|
-
];
|
|
249
|
-
var UNPREFIXED_PROBE_REGEX = /\b[0-9a-fA-F]{32}\.[A-Za-z0-9]{16}\b/;
|
|
250
|
-
function hasPotentialSecrets(text) {
|
|
251
|
-
if (typeof text !== "string" || text.length === 0) return false;
|
|
252
|
-
if (QUICK_PROBE_SUBSTRINGS.some((probe) => text.includes(probe))) return true;
|
|
253
|
-
return UNPREFIXED_PROBE_REGEX.test(text);
|
|
254
|
-
}
|
|
255
|
-
function scrubSecrets(text) {
|
|
256
|
-
if (typeof text !== "string" || text.length === 0) {
|
|
257
|
-
return { cleaned: text, redactedCount: 0, matchedKinds: [] };
|
|
258
|
-
}
|
|
259
|
-
if (!hasPotentialSecrets(text)) {
|
|
260
|
-
return { cleaned: text, redactedCount: 0, matchedKinds: [] };
|
|
261
|
-
}
|
|
262
|
-
let cleaned = text;
|
|
263
|
-
let redactedCount = 0;
|
|
264
|
-
const matchedKinds = [];
|
|
265
|
-
for (const pattern of SECRET_PATTERNS) {
|
|
266
|
-
pattern.regex.lastIndex = 0;
|
|
267
|
-
const matches = cleaned.match(pattern.regex);
|
|
268
|
-
if (matches && matches.length > 0) {
|
|
269
|
-
redactedCount += matches.length;
|
|
270
|
-
if (!matchedKinds.includes(pattern.kind)) {
|
|
271
|
-
matchedKinds.push(pattern.kind);
|
|
272
|
-
}
|
|
273
|
-
cleaned = cleaned.replace(pattern.regex, pattern.placeholder);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
return { cleaned, redactedCount, matchedKinds };
|
|
277
|
-
}
|
|
278
|
-
function scrubObjectSecrets(val) {
|
|
279
|
-
if (val === null || val === void 0) return val;
|
|
280
|
-
if (typeof val === "string") {
|
|
281
|
-
return scrubSecrets(val).cleaned;
|
|
282
|
-
}
|
|
283
|
-
if (Array.isArray(val)) {
|
|
284
|
-
return val.map((item) => scrubObjectSecrets(item));
|
|
285
|
-
}
|
|
286
|
-
if (typeof val === "object") {
|
|
287
|
-
if (val instanceof Date || val instanceof RegExp) return val;
|
|
288
|
-
const result = {};
|
|
289
|
-
for (const [k, v] of Object.entries(val)) {
|
|
290
|
-
result[k] = scrubObjectSecrets(v);
|
|
291
|
-
}
|
|
292
|
-
return result;
|
|
293
|
-
}
|
|
294
|
-
return val;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
258
|
// packages/ai/agent/toolOutputPolicy.ts
|
|
298
259
|
var PROJECT_INSTRUCTION_MAX_BYTES = 24 * 1024;
|
|
299
260
|
var PROJECT_INSTRUCTION_MAX_CHARS = PROJECT_INSTRUCTION_MAX_BYTES + 2048;
|
|
@@ -354,6 +315,45 @@ function clipToolText(content, maxChars, headRatio, marker = "\n\n[... tool outp
|
|
|
354
315
|
return `${normalized.slice(0, headChars)}${marker}${normalized.slice(-tailChars)}`;
|
|
355
316
|
}
|
|
356
317
|
|
|
318
|
+
// packages/core/agentSkillModes.ts
|
|
319
|
+
var AGENT_SKILL_MODES = [
|
|
320
|
+
"required",
|
|
321
|
+
"recommended",
|
|
322
|
+
"disabled"
|
|
323
|
+
];
|
|
324
|
+
var isAgentSkillMode = (value) => typeof value === "string" && AGENT_SKILL_MODES.includes(value);
|
|
325
|
+
var collectInvalidAgentSkillModes = (skills) => {
|
|
326
|
+
if (!skills || typeof skills !== "object" || Array.isArray(skills)) return [];
|
|
327
|
+
const out = [];
|
|
328
|
+
for (const [slug, value] of Object.entries(skills)) {
|
|
329
|
+
if (value === null) continue;
|
|
330
|
+
if (!isAgentSkillMode(value)) out.push({ slug, value });
|
|
331
|
+
}
|
|
332
|
+
return out;
|
|
333
|
+
};
|
|
334
|
+
var describeAgentSkillModeValue = (value) => {
|
|
335
|
+
let text;
|
|
336
|
+
if (typeof value === "string") {
|
|
337
|
+
text = JSON.stringify(value.length > 40 ? `${value.slice(0, 40)}\u2026` : value);
|
|
338
|
+
} else if (value === void 0) {
|
|
339
|
+
text = "undefined";
|
|
340
|
+
} else {
|
|
341
|
+
try {
|
|
342
|
+
const serialized = JSON.stringify(value);
|
|
343
|
+
text = typeof serialized === "string" ? serialized : String(value);
|
|
344
|
+
} catch {
|
|
345
|
+
text = typeof value;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
return text.length > 60 ? `${text.slice(0, 60)}\u2026` : text;
|
|
349
|
+
};
|
|
350
|
+
var formatInvalidAgentSkillModeMessage = (invalid, allowed = AGENT_SKILL_MODES) => `Invalid agent skill mode for "${invalid.slug}": ${describeAgentSkillModeValue(invalid.value)}. Allowed values: ${allowed.join(", ")}.`;
|
|
351
|
+
var isAgentSkillModesFieldShapeValid = (skills) => {
|
|
352
|
+
if (skills === null || skills === void 0) return true;
|
|
353
|
+
return typeof skills === "object" && !Array.isArray(skills);
|
|
354
|
+
};
|
|
355
|
+
var formatInvalidAgentSkillModesFieldMessage = (allowed = AGENT_SKILL_MODES) => `Invalid agent skills field: expected an object mapping slug \u2192 mode (${allowed.join(" | ")}).`;
|
|
356
|
+
|
|
357
357
|
// packages/ai/tools/agentSkillConfig.ts
|
|
358
358
|
var MODES = AGENT_SKILL_MODES;
|
|
359
359
|
var DEFAULT_RECOMMENDED_SKILL_SLUGS = [
|
|
@@ -438,17 +438,12 @@ var defaultSkillTitleLookup = (slug) => {
|
|
|
438
438
|
var isAgentSkillDisabled = (source, slug) => resolveAgentSkillConfig(source)[slug] === "disabled";
|
|
439
439
|
|
|
440
440
|
export {
|
|
441
|
-
collectInvalidAgentSkillModes,
|
|
442
|
-
describeAgentSkillModeValue,
|
|
443
|
-
formatInvalidAgentSkillModeMessage,
|
|
444
|
-
isAgentSkillModesFieldShapeValid,
|
|
445
|
-
formatInvalidAgentSkillModesFieldMessage,
|
|
446
|
-
sanitizeToolOutputText,
|
|
447
|
-
sanitizeToolOutputContent,
|
|
448
441
|
SECRET_PATTERNS,
|
|
449
442
|
hasPotentialSecrets,
|
|
450
443
|
scrubSecrets,
|
|
451
444
|
scrubObjectSecrets,
|
|
445
|
+
sanitizeToolOutputText,
|
|
446
|
+
sanitizeToolOutputContent,
|
|
452
447
|
PROJECT_INSTRUCTION_MAX_BYTES,
|
|
453
448
|
PROJECT_INSTRUCTION_MAX_CHARS,
|
|
454
449
|
isCompleteInstructionOutput,
|
|
@@ -458,6 +453,11 @@ export {
|
|
|
458
453
|
resolveHistoricalToolContentCap,
|
|
459
454
|
projectToolMessageContent,
|
|
460
455
|
clipToolText,
|
|
456
|
+
collectInvalidAgentSkillModes,
|
|
457
|
+
describeAgentSkillModeValue,
|
|
458
|
+
formatInvalidAgentSkillModeMessage,
|
|
459
|
+
isAgentSkillModesFieldShapeValid,
|
|
460
|
+
formatInvalidAgentSkillModesFieldMessage,
|
|
461
461
|
resolveAgentSkillConfig,
|
|
462
462
|
collectAgentSkillConfigIssues,
|
|
463
463
|
resolveAgentRequiredPackIds,
|