nolo-cli 0.224.0-alpha.1 → 0.224.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-WW57SJN4.js → _executeModel-5NA4USGG.js} +77 -70
- package/{action-CK64LS6S.js → action-X75O3XPH.js} +11 -8
- package/{addContentAction-EQXMFNPR.js → addContentAction-GVC77QSN.js} +14 -13
- package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-KKDVAMW3.js} +15 -14
- package/{agentDeleteCommand-X2VWEKUA.js → agentDeleteCommand-2RFGKFAB.js} +127 -118
- package/{agentEmailCommands-6IE773VW.js → agentEmailCommands-GQCQKKOR.js} +126 -113
- package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
- package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
- package/{agentListCommands-5UNM7CGG.js → agentListCommands-HSGLDPDQ.js} +110 -495
- package/{agentMachineCommands-EVWFKK6Q.js → agentMachineCommands-BISF6PVV.js} +63 -57
- package/{agentProviderCommands-ZCH37KAL.js → agentProviderCommands-O3Q25PKU.js} +6 -6
- package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-G6U2LHMW.js} +6 -6
- package/agentRecordCommands-AOXPGYAJ.js +189 -0
- package/{agentRunCommand-KGOT2AFB.js → agentRunCommand-AFAIP7U7.js} +129 -113
- package/{agentRunControl-QDFW5P2T.js → agentRunControl-VBL7UFSG.js} +20 -14
- package/{agentRuntimeLocal-SD7U2EGY.js → agentRuntimeLocal-T7BX2WGL.js} +47 -41
- package/{agentSlice-ACZGTZVW.js → agentSlice-XJNKE3PG.js} +18 -17
- package/{appDeleteCommands-NE3NQQJL.js → appDeleteCommands-LURUSPY7.js} +56 -50
- package/{appDeployCommands-2BAHY522.js → appDeployCommands-SMEW4AK2.js} +56 -50
- package/{appDeployStatusCommands-JTW6LZNC.js → appDeployStatusCommands-VYPJTBJK.js} +56 -50
- package/{appGetCommands-WKFEJO6A.js → appGetCommands-N4NI5GGJ.js} +56 -50
- package/{appListCommands-HNAZZLFX.js → appListCommands-5C6ONN3Z.js} +56 -50
- package/{authCommand-4FDPL7WG.js → authCommand-4CVBDADE.js} +29 -24
- package/{authCommands-GAJ3NIXO.js → authCommands-EHU2BHOX.js} +12 -7
- package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-AYWYQVA4.js} +4 -4
- package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-CSDG2HYN.js} +6 -6
- package/{chunk-OOF7XDZF.js → chunk-2574ANSV.js} +6 -6
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-OGHP3CTL.js → chunk-2X7WFDT6.js} +1 -1
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-D726I5AZ.js → chunk-3EMIEC27.js} +2 -2
- package/{chunk-S7SB7L2I.js → chunk-3FBAVU2Y.js} +24 -22
- package/{chunk-YL3EFYL3.js → chunk-4D4QD7FT.js} +3 -1
- package/{chunk-5RKUPJYL.js → chunk-4FIO2S7Z.js} +11 -3
- package/{chunk-MKQ2UTTX.js → chunk-4IQVE43Z.js} +63 -32
- package/{chunk-6NKA6RKF.js → chunk-4Q6HQORG.js} +8 -8
- package/{chunk-P2ZLUIW2.js → chunk-4X5AVCM7.js} +94 -4
- package/chunk-4ZCTKB27.js +31 -0
- package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
- package/{chunk-4A2JIXR2.js → chunk-5QZSEQSK.js} +1 -1
- package/chunk-5ZUOVCKT.js +32 -0
- package/{chunk-TRWT3EE3.js → chunk-62HXNQVV.js} +1 -1
- package/{chunk-JC5XLWZK.js → chunk-6CKUO32A.js} +27 -15
- package/chunk-6D25V6CB.js +133 -0
- package/chunk-6WOLPIPY.js +379 -0
- package/{chunk-KOXKKHFE.js → chunk-6WZVM33D.js} +9 -4
- package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
- package/{chunk-KO63FPG3.js → chunk-7AJRJGSQ.js} +1049 -2860
- package/chunk-7NIBQ4HY.js +138 -0
- package/{chunk-7Z6EW7AH.js → chunk-7TTMMOKH.js} +13 -6
- package/{chunk-7WPAI5JJ.js → chunk-A3LUWRQK.js} +15 -15
- package/{chunk-C4WTX5TU.js → chunk-A5EVA6HU.js} +2 -2
- package/{chunk-O2CYENYJ.js → chunk-A74QP4FI.js} +2614 -1374
- package/{chunk-N3J4VDGV.js → chunk-AEQMKYZN.js} +15 -15
- package/{chunk-DVQH4BTR.js → chunk-AH5R7BYW.js} +26 -176
- package/{chunk-H7R3365N.js → chunk-ANJRDS6U.js} +8 -5
- package/{chunk-YFLVRVYK.js → chunk-AVJDELEA.js} +1 -1
- package/{chunk-GIABSSWQ.js → chunk-B5SV4H3J.js} +4 -4
- package/{chunk-FVZW66K4.js → chunk-B7DE5XJW.js} +387 -347
- package/chunk-BEM6LPD2.js +734 -0
- package/{chunk-SRL56PI2.js → chunk-BGGAY6OK.js} +46 -8
- package/{chunk-T3O6BLYU.js → chunk-BGGV6B5O.js} +555 -328
- package/{chunk-BGGHA5DV.js → chunk-BIABIPGW.js} +1 -1
- package/chunk-BIDSIRTS.js +307 -0
- package/{chunk-6D7NVU66.js → chunk-BXSMFPTG.js} +17 -14
- package/{chunk-Q6HOUF4O.js → chunk-CBUZ6DKA.js} +3 -3
- package/{chunk-LE6LGAJE.js → chunk-CD3RU7XL.js} +17 -2
- package/{chunk-GVGOEMNV.js → chunk-CKZPMJNU.js} +3 -3
- package/{chunk-3ESU44FG.js → chunk-CVJRVBJL.js} +3 -3
- package/chunk-D374I563.js +62 -0
- package/{chunk-XWGDCWXY.js → chunk-DNZ4JJ7C.js} +9 -9
- package/chunk-DVYAFH2Q.js +103 -0
- package/{chunk-N7HVLYOY.js → chunk-DXW5WDHZ.js} +4 -4
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-65XXHYZ5.js → chunk-E5KJOZWY.js} +4 -4
- package/{chunk-GNHMRBYZ.js → chunk-EBKHA63G.js} +106 -14
- package/{chunk-PFJNLBRU.js → chunk-EEOOBRA7.js} +6 -6
- package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
- package/{chunk-QLFCTYRH.js → chunk-F3XI6WQP.js} +17 -10
- package/{chunk-AFHOCBSP.js → chunk-F6YWDVIB.js} +1 -1
- package/{chunk-VHPAA6MT.js → chunk-FFYE5ATM.js} +6 -6
- package/{chunk-F3TQURKK.js → chunk-FZKA3XFA.js} +21 -21
- package/{chunk-C4VAR65S.js → chunk-G22P367E.js} +153 -117
- package/{chunk-4NMHE7CX.js → chunk-GDUC4VS2.js} +12 -12
- package/{chunk-2VUZSVAS.js → chunk-GXXY2NL3.js} +22 -20
- package/{chunk-IWH5SOU4.js → chunk-H7ZYKHAZ.js} +38 -18
- package/{chunk-G2EJ7NL4.js → chunk-HBRDSQ3M.js} +2 -2
- package/{chunk-EGXPAWLG.js → chunk-HCNOO374.js} +1 -1
- package/{chunk-DJSTBAOU.js → chunk-HOM6LTEW.js} +4 -4
- package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
- package/{chunk-QWYFFHCJ.js → chunk-IJTXNLQE.js} +13 -13
- package/{chunk-UYOICCYG.js → chunk-IUMS6F53.js} +59 -88
- package/{chunk-MOMR7NMG.js → chunk-IUTUWIKE.js} +2 -2
- package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
- package/{chunk-SASHAZ67.js → chunk-KZPEGO6D.js} +13 -2
- package/{chunk-HCJFGH6Y.js → chunk-L32W3PRP.js} +46 -16
- package/{chunk-GGKNJ42M.js → chunk-LYDEFPQP.js} +18 -108
- package/{chunk-K5FNYHZC.js → chunk-MECDGHLK.js} +420 -120
- package/{chunk-EOWLBDY6.js → chunk-MM73SP4K.js} +1 -1
- package/{chunk-J6T25AJ6.js → chunk-MYOSN6BT.js} +82 -18
- package/{chunk-Q7WP5RPC.js → chunk-MYPKBJJO.js} +5 -5
- package/{chunk-6RQFZCKH.js → chunk-N2JROHD3.js} +4 -4
- package/{chunk-VREDDN25.js → chunk-O6IPRAVV.js} +14 -9
- package/{chunk-VALBGPM6.js → chunk-OBSEKCVK.js} +17 -20
- package/{chunk-AMEOV5VZ.js → chunk-OOJNQK6V.js} +33 -33
- package/{chunk-PPJYZRSQ.js → chunk-OX6GNNVT.js} +6 -1
- package/{chunk-5R63B62U.js → chunk-P3IZUMIC.js} +8 -8
- package/{chunk-FRSBYNWI.js → chunk-PGKA77TZ.js} +52 -217
- package/{chunk-7UH3DGV6.js → chunk-PRMEU7BT.js} +232 -10
- package/{chunk-2ZKFCIJJ.js → chunk-PROOOQZ3.js} +1 -1
- package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
- package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
- package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/chunk-RETQOQ4D.js +33394 -0
- package/{chunk-AVHRSJUH.js → chunk-RM4UMFY4.js} +32 -25
- package/{chunk-2OLYKYNY.js → chunk-RTHFJZ6M.js} +8 -8
- package/{chunk-OB6DVWPF.js → chunk-S2MHR4PU.js} +164 -4
- package/{chunk-IWQAOW2X.js → chunk-SRCCSTIM.js} +8 -8
- package/{chunk-PVZY6P3S.js → chunk-T6VROBY7.js} +2 -2
- package/{chunk-2KTUDBG7.js → chunk-TEMLHVGX.js} +1 -1
- package/{chunk-TVFRV3UQ.js → chunk-TRHJ4NJB.js} +673 -1279
- package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
- package/{chunk-UMRI2IRY.js → chunk-TWTJV35S.js} +6 -6
- package/{chunk-5OZC7R7Y.js → chunk-U3G7RRXJ.js} +13 -12
- package/{chunk-CXDPIPZ4.js → chunk-UFC4J7OY.js} +3 -3
- package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
- package/{chunk-AGP3YSEC.js → chunk-ULLHVDTZ.js} +48 -3
- package/{chunk-SYQR7FQS.js → chunk-VM72HKW2.js} +97 -29
- package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
- package/{chunk-3N4ASIP6.js → chunk-VREG6ANQ.js} +103 -100
- package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
- package/chunk-VSRISJXZ.js +107 -0
- package/chunk-WDWZPASX.js +29 -0
- package/chunk-WFGNWWJI.js +326 -0
- package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/chunk-X7IA2B7R.js +166 -0
- package/{chunk-5ZMIIR23.js → chunk-XBAEM4RI.js} +7 -0
- package/{chunk-4JVNURX4.js → chunk-XS5A3EKX.js} +1 -23
- package/{chunk-N5Z2V73W.js → chunk-Y2MF4DCJ.js} +1 -1
- package/{chunk-KAVGK4ES.js → chunk-Y5OWZQMJ.js} +39 -30
- package/{chunk-AK5O76CC.js → chunk-YGCOJNFZ.js} +3 -3
- package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
- package/{chunk-XFJ4ZPFC.js → chunk-Z2WZAE4P.js} +128 -149
- package/chunk-Z6YTCDU4.js +24 -0
- package/chunk-ZEKUFJLW.js +1438 -0
- package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
- package/{cliAgentConfigHelpers-PO3MVDME.js → cliAgentConfigHelpers-U5OAVAKQ.js} +12 -12
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-S42VMGB6.js} +1 -1
- package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
- package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
- package/{cliLocalAgentRecordReader-Z7CH4K4R.js → cliLocalAgentRecordReader-HVZAQCUD.js} +49 -44
- package/{commandRegistry-SDSYBKMC.js → commandRegistry-TME7INFU.js} +98 -94
- package/{contentThunks-G3TRPEAU.js → contentThunks-U6OC4R2N.js} +37 -35
- package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-U7XSRVJP.js} +4 -4
- package/{createAgentAutomationAction-KHA4MXUJ.js → createAgentAutomationAction-IP4LFN3W.js} +37 -35
- package/{createDialogAction-KWSBNAPJ.js → createDialogAction-IAGQJ3LH.js} +38 -36
- package/{createPageAction-HXKJ7OFG.js → createPageAction-AZ3UIFKA.js} +38 -36
- package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
- package/{dbSlice-ZJPDIFER.js → dbSlice-DKKMJJYY.js} +13 -12
- package/{deleteFile-Q3YDB4ML.js → deleteFile-TQSONMVU.js} +11 -8
- package/{dialogCommands-6KQEBHSG.js → dialogCommands-PCDRMBWG.js} +60 -55
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-WIZFFEY3.js → dialogNotifyCommand-O35MWMOS.js} +13 -13
- package/{dialogSlice-HXPKFGRL.js → dialogSlice-QAKYN4DE.js} +35 -33
- package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-2SSLTXKO.js} +3 -3
- package/{docCreateCommands-XZOLWBRC.js → docCreateCommands-CFQFZOAD.js} +54 -48
- package/{docDeleteCommands-ZSO4LGWE.js → docDeleteCommands-5CPNTIIS.js} +56 -50
- package/{docReadCommands-TTMXCDER.js → docReadCommands-XQILYSAJ.js} +54 -48
- package/{docStore-A2B3GH33.js → docStore-GIVRT7TQ.js} +15 -14
- package/{docUpdateCommands-PRG6WOXL.js → docUpdateCommands-VETKSUDD.js} +54 -48
- package/fetchMessages-TQEUZD7H.js +1 -1
- package/{getPricing-YH3VMSVU.js → getPricing-LF5C4XSI.js} +5 -5
- package/{handleSendMessageAction-NWYG3Q72.js → handleSendMessageAction-HKIW4ZNO.js} +70 -66
- package/{hostCredentialCreate-WS6D3EHT.js → hostCredentialCreate-6VDJFNDO.js} +118 -104
- package/index.js +56 -18
- package/keys-RWF7UCB4.js +1 -1
- package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
- package/{localDialogRead-SVTPA5GY.js → localDialogRead-AV2VKKPG.js} +1 -1
- package/{localRecall-2J6QPOK2.js → localRecall-BDYKXB46.js} +3 -1
- package/{localRuntimeAdapter-TFYOA6YE.js → localRuntimeAdapter-BQ4F5PZV.js} +120 -107
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-WCNA4A3G.js} +4 -2
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-CRNIBOOM.js} +1 -1
- package/{machineCommands-WFWV25IR.js → machineCommands-K6XIGOAD.js} +142 -114
- package/{machineWsRunDispatch-ZGXC3F2R.js → machineWsRunDispatch-4OO7Z6UM.js} +114 -101
- package/mcpLocalAuthorizeCommand-ZP6ESAGE.js +106 -0
- package/{memberThunks-JRYNONYV.js → memberThunks-PBJPZ2JU.js} +22 -17
- package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
- package/{models-CXINDUJA.js → models-H5NNZRLH.js} +2 -2
- package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
- package/package.json +1 -1
- package/{projectArchive-ULJDLUA6.js → projectArchive-G7AOQPRW.js} +43 -41
- package/{providerPresetApply-SHT2SUVB.js → providerPresetApply-OPBCAONX.js} +6 -6
- package/{providerRegistry-TA7EGCVZ.js → providerRegistry-J2HCVTHE.js} +6 -6
- package/{read-Q7GOHGNP.js → read-JEGPITEW.js} +10 -9
- package/{readDocTool-Z5OQ6422.js → readDocTool-TE3XIU4Y.js} +1 -1
- package/{readlineWorkspace-LTCV2BFW.js → readlineWorkspace-SOW5QUGZ.js} +4412 -4277
- package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-CX3OAH4Y.js} +17 -16
- package/{runAgentClientLoop-BVIEQUB3.js → runAgentClientLoop-HQJPDFGQ.js} +95 -69
- package/{runtimeDoctorCommands-I47JN4HS.js → runtimeDoctorCommands-GUH2YGMH.js} +17 -17
- package/{secretCommands-LJXOOYA7.js → secretCommands-NJXFVHZU.js} +4 -4
- package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-CGM67EEQ.js} +16 -15
- package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-3ABWPPXR.js} +17 -16
- package/{settingThunks-AXTBX3Q5.js → settingThunks-AY76OHYX.js} +181 -62
- package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-IB6FKWIC.js → spaceCommands-G63QGYQO.js} +59 -53
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-DNYFHBJM.js → streamAgentChatTurn-E3XH2KFD.js} +160 -154
- package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-G6EZRKCQ.js} +15 -14
- package/{tableCommands-HITDSLHS.js → tableCommands-JI75ZHDI.js} +14 -11
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-62UUPDUA.js} +3 -5
- package/{tools-JVOJ5HC4.js → tools-7RSX22FT.js} +64 -58
- package/tuiRestart-KAAA7TND.js +41 -0
- package/{tuiSummaryLlmCaller-7LWYTHLM.js → tuiSummaryLlmCaller-BVNHMWLR.js} +19 -19
- package/{updateCommands-RJVCRSBP.js → updateCommands-ASK5XYPH.js} +8 -6
- package/{updateDialogTitleAction-Q57BOSXG.js → updateDialogTitleAction-SEWV252V.js} +37 -35
- package/{usageCommand-RVKHEPLU.js → usageCommand-JVT5J3DC.js} +3 -3
- package/{usageRebuildCommand-GRAFOZF2.js → usageRebuildCommand-IZYYUTEW.js} +4 -4
- package/webapi-24RZDIIQ.js +2488 -0
- package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-BSDIS2J5.js} +2 -2
- package/workContext-MM3P5GP5.js +13 -0
- package/workContextAccess-UZHDLBUR.js +11 -0
- package/workContextWriteNotice-YCSSMHN4.js +7 -0
- package/agentRecordCommands-DX2WE6BH.js +0 -176
- package/chunk-2THCNKE4.js +0 -147
- package/chunk-2WZXXAQD.js +0 -57
- package/chunk-652XYZGP.js +0 -352
- package/chunk-KEPOVMF4.js +0 -91
- package/chunk-OXKUPBAQ.js +0 -776
- package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
- package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
- package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
- package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
- package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-YIZ7KLUP.js} +3 -3
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
loadFileFromIndexedDb,
|
|
7
7
|
removeAction,
|
|
8
8
|
saveFileToIndexedDb
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-A5EVA6HU.js";
|
|
10
10
|
import {
|
|
11
11
|
readAction,
|
|
12
12
|
readRequestManager,
|
|
13
13
|
resolveAgentReadServers
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-F3XI6WQP.js";
|
|
15
15
|
import {
|
|
16
16
|
beginWriteAck,
|
|
17
17
|
compareRemoteRecordsByComparableTime,
|
|
@@ -29,22 +29,28 @@ import {
|
|
|
29
29
|
shouldReplaceLocalWithRemoteRecord,
|
|
30
30
|
shouldReplicateLocalRecord,
|
|
31
31
|
uploadToCurrentServer
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-GXXY2NL3.js";
|
|
33
33
|
import {
|
|
34
34
|
asyncThunkCreator,
|
|
35
35
|
buildCreateSlice,
|
|
36
36
|
createEntityAdapter,
|
|
37
37
|
noloDeleteRequest
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-7TTMMOKH.js";
|
|
39
39
|
import {
|
|
40
40
|
fetchFromClientDb,
|
|
41
41
|
fetchFromServer,
|
|
42
|
+
googleSessionRequestToken,
|
|
43
|
+
googleSessionServer,
|
|
42
44
|
logger,
|
|
43
|
-
normalizeTimeFields
|
|
44
|
-
|
|
45
|
+
normalizeTimeFields,
|
|
46
|
+
scopeGoogleSessionServers
|
|
47
|
+
} from "./chunk-ULLHVDTZ.js";
|
|
45
48
|
import {
|
|
46
49
|
isTombstoneRecord
|
|
47
50
|
} from "./chunk-BV3FLP2L.js";
|
|
51
|
+
import {
|
|
52
|
+
isPublicBuiltinPlatformAgentKey
|
|
53
|
+
} from "./chunk-WRKMXMU7.js";
|
|
48
54
|
import {
|
|
49
55
|
fileKey,
|
|
50
56
|
getFileIdFromKey
|
|
@@ -52,12 +58,12 @@ import {
|
|
|
52
58
|
import {
|
|
53
59
|
ulid
|
|
54
60
|
} from "./chunk-OJKUU3LP.js";
|
|
55
|
-
import {
|
|
56
|
-
isRecord
|
|
57
|
-
} from "./chunk-KUG52IAP.js";
|
|
58
61
|
import {
|
|
59
62
|
API_ENDPOINTS
|
|
60
63
|
} from "./chunk-LCBAMY2M.js";
|
|
64
|
+
import {
|
|
65
|
+
isRecord
|
|
66
|
+
} from "./chunk-KUG52IAP.js";
|
|
61
67
|
|
|
62
68
|
// packages/database/protectedRecordProtocol.ts
|
|
63
69
|
var PROTECTED_RECORD_PROTOCOL_VERSION = 1;
|
|
@@ -643,14 +649,14 @@ async function getPageReadBaseline(db, actorId, dbKey) {
|
|
|
643
649
|
async function readProtectedPage(options) {
|
|
644
650
|
const { db, actorId, dbKey } = options;
|
|
645
651
|
const assertAccess = (origin) => {
|
|
646
|
-
const
|
|
647
|
-
if (
|
|
652
|
+
const access2 = options.getCurrentAccess?.() ?? options;
|
|
653
|
+
if (access2.actorId !== actorId || !access2.token?.trim()) {
|
|
648
654
|
throw Error("\u6587\u6863\u8BFB\u53D6\u8EAB\u4EFD\u5DF2\u53D8\u5316\u6216\u8BA4\u8BC1\u5DF2\u64A4\u9500\uFF0C\u5DF2\u505C\u6B62\u8BFB\u53D6");
|
|
649
655
|
}
|
|
650
|
-
if (origin && !
|
|
656
|
+
if (origin && !access2.servers.some((server) => originOf(server) === origin)) {
|
|
651
657
|
throw Error("\u6587\u6863\u5F52\u5C5E\u670D\u52A1\u5668\u4E0D\u5728\u5DF2\u914D\u7F6E\u670D\u52A1\u5668\u4E2D\u6216\u5DF2\u79FB\u9664\uFF0C\u672A\u53D1\u9001\u8BA4\u8BC1\u4FE1\u606F\uFF0C\u672A\u8F6C\u53D1\u8BA4\u8BC1\u4FE1\u606F");
|
|
652
658
|
}
|
|
653
|
-
return
|
|
659
|
+
return origin ? googleSessionRequestToken(access2.token, origin) : access2.token;
|
|
654
660
|
};
|
|
655
661
|
assertAccess();
|
|
656
662
|
const sync = options.sync ?? createProtectedRecordSync({ db });
|
|
@@ -664,13 +670,10 @@ async function readProtectedPage(options) {
|
|
|
664
670
|
sync,
|
|
665
671
|
fetch: options.fetch,
|
|
666
672
|
isAuthorityAllowed: (origin) => {
|
|
667
|
-
const
|
|
668
|
-
return
|
|
673
|
+
const access2 = options.getCurrentAccess();
|
|
674
|
+
return access2.actorId === actorId && access2.servers.some((server) => originOf(server) === origin);
|
|
669
675
|
},
|
|
670
|
-
getToken: async () =>
|
|
671
|
-
const access = options.getCurrentAccess();
|
|
672
|
-
return access.actorId === actorId ? access.token ?? null : null;
|
|
673
|
-
}
|
|
676
|
+
getToken: async ({ authorityServer }) => assertAccess(authorityServer)
|
|
674
677
|
});
|
|
675
678
|
for (let count = 0; count < state.outbox.length; count++) {
|
|
676
679
|
if ((await transport.sendNext({ actorId, dbKey })).outcome !== "acked") break;
|
|
@@ -683,7 +686,9 @@ async function readProtectedPage(options) {
|
|
|
683
686
|
return state.workingCopy.data;
|
|
684
687
|
}
|
|
685
688
|
}
|
|
686
|
-
const
|
|
689
|
+
const access = options.getCurrentAccess?.() ?? options;
|
|
690
|
+
const googleAuthority = googleSessionServer(access.token);
|
|
691
|
+
const servers = saved ? [saved.authorityServer] : options.servers.filter((server) => access.servers.some((candidate) => originOf(candidate) === originOf(server)) && (!googleAuthority || originOf(server) === googleAuthority));
|
|
687
692
|
for (const server of servers) {
|
|
688
693
|
const origin = originOf(server);
|
|
689
694
|
if (!origin) continue;
|
|
@@ -832,6 +837,7 @@ var readAndWaitAction = async (payload, thunkApi) => {
|
|
|
832
837
|
userAuthorityRegistry
|
|
833
838
|
} = getRuntimeServerContext(state, preferredServerOrigin);
|
|
834
839
|
const allServers = resolveAgentReadServers({ dbKey, configuredServers });
|
|
840
|
+
const fetchScopedFromServer = (server, key, token, signal) => signal === void 0 ? fetchFromServer(server, key, googleSessionRequestToken(token, server, isPublicBuiltinPlatformAgentKey(key))) : fetchFromServer(server, key, googleSessionRequestToken(token, server, isPublicBuiltinPlatformAgentKey(key)), signal);
|
|
835
841
|
const isLoggedIn = !!currentToken;
|
|
836
842
|
const executeReadAndWait = async () => {
|
|
837
843
|
if (dbKey.startsWith("page-") && currentUserId && currentToken && typeof db.batch === "function") {
|
|
@@ -857,11 +863,12 @@ var readAndWaitAction = async (payload, thunkApi) => {
|
|
|
857
863
|
currentServer,
|
|
858
864
|
userAuthorityRegistry
|
|
859
865
|
});
|
|
860
|
-
|
|
866
|
+
let readServers = planAuthorityReadServers({
|
|
861
867
|
allServers,
|
|
862
868
|
authorityServer: preferredServerOrigin ?? authority.authorityServer,
|
|
863
869
|
serverOrigin: authority.serverOrigin
|
|
864
870
|
});
|
|
871
|
+
if (!isPublicBuiltinPlatformAgentKey(dbKey)) readServers = scopeGoogleSessionServers(currentToken, currentServer, readServers);
|
|
865
872
|
const hasPreferredAuthorityServer = !!preferredServerOrigin || !!authority.authorityServer;
|
|
866
873
|
const preferredAuthorityServer = hasPreferredAuthorityServer ? readServers[0] : null;
|
|
867
874
|
if (readServers.length === 0) {
|
|
@@ -874,7 +881,7 @@ var readAndWaitAction = async (payload, thunkApi) => {
|
|
|
874
881
|
}
|
|
875
882
|
if (preferredAuthorityServer) {
|
|
876
883
|
try {
|
|
877
|
-
const preferredRemoteData = await
|
|
884
|
+
const preferredRemoteData = await fetchScopedFromServer(
|
|
878
885
|
preferredAuthorityServer,
|
|
879
886
|
dbKey,
|
|
880
887
|
isLoggedIn ? currentToken : void 0
|
|
@@ -888,7 +895,7 @@ var readAndWaitAction = async (payload, thunkApi) => {
|
|
|
888
895
|
}
|
|
889
896
|
const remainingReadServers = preferredAuthorityServer ? readServers.filter((server) => server !== preferredAuthorityServer) : readServers;
|
|
890
897
|
const remotePromises = remainingReadServers.map(
|
|
891
|
-
(server) =>
|
|
898
|
+
(server) => fetchScopedFromServer(server, dbKey, isLoggedIn ? currentToken : void 0)
|
|
892
899
|
);
|
|
893
900
|
const chosenData = await processRemoteData(
|
|
894
901
|
db,
|
|
@@ -1487,7 +1494,7 @@ var dbSlice = createSliceWithThunks({
|
|
|
1487
1494
|
// 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
|
|
1488
1495
|
read: create.asyncThunk(
|
|
1489
1496
|
async (payload, thunkApi) => {
|
|
1490
|
-
const { readAction: readAction2 } = await import("./read-
|
|
1497
|
+
const { readAction: readAction2 } = await import("./read-JEGPITEW.js");
|
|
1491
1498
|
return readAction2(payload, thunkApi);
|
|
1492
1499
|
},
|
|
1493
1500
|
{
|
|
@@ -1561,7 +1568,7 @@ var dbSlice = createSliceWithThunks({
|
|
|
1561
1568
|
// 这里改成动态 import,运行期才解析,彻底断开这条边。
|
|
1562
1569
|
share: create.asyncThunk(
|
|
1563
1570
|
async (config, thunkApi) => {
|
|
1564
|
-
const { shareResourceAction } = await import("./action-
|
|
1571
|
+
const { shareResourceAction } = await import("./action-X75O3XPH.js");
|
|
1565
1572
|
return shareResourceAction(config, thunkApi);
|
|
1566
1573
|
}
|
|
1567
1574
|
),
|
|
@@ -4,27 +4,27 @@ import {
|
|
|
4
4
|
resolvePlatformHostedCredentialProvider,
|
|
5
5
|
resolvePlatformProxyChatGatewayEndpoint,
|
|
6
6
|
resolvePlatformResponsesEndpoint
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HBRDSQ3M.js";
|
|
8
8
|
import {
|
|
9
9
|
asTrimmedString
|
|
10
10
|
} from "./chunk-3EUW3WEO.js";
|
|
11
11
|
import {
|
|
12
12
|
CLI_PROVIDER_VALUES
|
|
13
13
|
} from "./chunk-JRTNUU5Z.js";
|
|
14
|
+
import {
|
|
15
|
+
asOptionalTrimmedString
|
|
16
|
+
} from "./chunk-G3SUCT4W.js";
|
|
17
|
+
import {
|
|
18
|
+
normalizeServerOrigin
|
|
19
|
+
} from "./chunk-CF7PE763.js";
|
|
14
20
|
import {
|
|
15
21
|
CLIENT_VERSION_TOO_OLD_CODE,
|
|
16
22
|
buildClientVersionGateErrorDetail,
|
|
17
23
|
evaluatePlatformHostedClientVersionGate
|
|
18
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-OBSEKCVK.js";
|
|
19
25
|
import {
|
|
20
26
|
asTrimmedLowercaseString
|
|
21
27
|
} from "./chunk-QSJ3HFEF.js";
|
|
22
|
-
import {
|
|
23
|
-
asOptionalTrimmedString
|
|
24
|
-
} from "./chunk-G3SUCT4W.js";
|
|
25
|
-
import {
|
|
26
|
-
normalizeServerOrigin
|
|
27
|
-
} from "./chunk-CF7PE763.js";
|
|
28
28
|
|
|
29
29
|
// packages/agent-runtime/agentConfigOptions.ts
|
|
30
30
|
function pickAgentRuntimeInferenceOptions(agentConfig) {
|
|
@@ -226,6 +226,7 @@ var sessionStrings = {
|
|
|
226
226
|
" /new Clear screen and start a fresh dialog",
|
|
227
227
|
" /compact Compact current dialog and fork a new one",
|
|
228
228
|
" /context Show workspace context and next actions",
|
|
229
|
+
" /tools Show individual tool results from this session",
|
|
229
230
|
" /cd <path> Change the working directory (takes effect on the next turn)",
|
|
230
231
|
" /runtime <mode> Use auto, local, or server runtime",
|
|
231
232
|
" /switch Pick an agent interactively (\u2191\u2193, Enter)",
|
|
@@ -273,6 +274,7 @@ var sessionStrings = {
|
|
|
273
274
|
" /new \u6E05\u5C4F\u5E76\u5F00\u59CB\u65B0\u5BF9\u8BDD",
|
|
274
275
|
" /compact \u538B\u7F29\u5F53\u524D\u5BF9\u8BDD\u5E76\u5206\u53C9\u51FA\u65B0\u5BF9\u8BDD",
|
|
275
276
|
" /context \u67E5\u770B\u5DE5\u4F5C\u533A\u4E0A\u4E0B\u6587\u4E0E\u540E\u7EED\u64CD\u4F5C",
|
|
277
|
+
" /tools \u5C55\u5F00\u672C\u6B21\u4F1A\u8BDD\u7684\u9010\u6761\u5DE5\u5177\u8BE6\u60C5",
|
|
276
278
|
" /cd <path> \u5207\u6362\u5DE5\u4F5C\u76EE\u5F55\uFF08\u4E0B\u4E2A turn \u751F\u6548\uFF09",
|
|
277
279
|
" /runtime <mode> \u5207\u6362 runtime\uFF1Aauto\u3001local\u3001server",
|
|
278
280
|
" /switch \u4EA4\u4E92\u5F0F\u9009\u62E9 agent\uFF08\u2191\u2193 \u79FB\u52A8\uFF0CEnter \u786E\u8BA4\uFF09",
|
|
@@ -755,9 +757,12 @@ Use /switch, /switch list, /switch minimax-m3, or a full agent key.`,
|
|
|
755
757
|
// --- `nolo agent run` CLI surface (packages/cli/agentRunCommand.ts) ---
|
|
756
758
|
// The direct CLI entry bypasses the dispatch tool's allowHostWrites guard, so
|
|
757
759
|
// this is the only thing standing between `--runtime-key=local` and host writes.
|
|
760
|
+
// 注意:本文案只在显式点名宿主执行(hostRuntimeLocal)分支触发;不要把它写成
|
|
761
|
+
// 「省略参数必定宿主且受 allowHostWrites 保护」——未经工具派的直接命令仍由
|
|
762
|
+
// runtimeMode/agent 类型决定落点(见 agentRunCommand.ts:603-615)。
|
|
758
763
|
"agentRun.hostWriteGuard": {
|
|
759
|
-
en: "[nolo] runtimeKey=local
|
|
760
|
-
zh: "[nolo] runtimeKey=local \u4F1A\u5728
|
|
764
|
+
en: "[nolo] runtimeKey=local runs on the host; confirm with --allow-host-writes. Write dispatches sent through the startAgentRun tool default to the host when runtimeKey is omitted and require allowHostWrites:true; a direct command without --runtime-key picks its target from runtimeMode/agent config and does not go through this check. For sandbox isolation, explicitly set --runtime-key docker or docker:<id>.\n",
|
|
765
|
+
zh: "[nolo] runtimeKey=local \u4F1A\u5728\u5BBF\u4E3B\u4E0A\u6267\u884C\uFF0C\u987B\u52A0 --allow-host-writes \u786E\u8BA4\u3002\u7ECF startAgentRun \u5DE5\u5177\u6D3E\u7684\u5199\u578B\u4EFB\u52A1\u7701\u7565 runtimeKey \u65F6\u9ED8\u8BA4\u843D\u5BBF\u4E3B\u3001\u987B allowHostWrites:true\uFF1B\u76F4\u63A5\u7528\u547D\u4EE4\u65F6\u7701\u7565 --runtime-key \u7531 runtimeMode/agent \u914D\u7F6E\u51B3\u5B9A\u843D\u70B9\uFF0C\u4E0D\u8D70\u672C\u6821\u9A8C\u3002\u8981\u6C99\u76D2\u9694\u79BB\uFF0C\u8BF7\u663E\u5F0F\u6307\u5B9A --runtime-key docker \u6216 docker:<id>\u3002\n"
|
|
761
766
|
},
|
|
762
767
|
"agentRun.instaboxConfigFailed": {
|
|
763
768
|
en: "[nolo] instabox config generation failed: {0}\n",
|
|
@@ -2074,9 +2079,21 @@ var commonStrings = {
|
|
|
2074
2079
|
// --- Tool trace copy ------------------------------------------------------
|
|
2075
2080
|
// The compact trace shows only status, never timing or output size: a line
|
|
2076
2081
|
// count told the user nothing actionable and the ms figure read as noise.
|
|
2082
|
+
permissionGranted: { en: "\u2713 approved", zh: "\u2713 \u5DF2\u6388\u6743" },
|
|
2083
|
+
permissionLocalGranted: { en: "\u2713 local approved", zh: "\u2713 \u672C\u5730\u6388\u6743" },
|
|
2084
|
+
permissionRemoteGranted: { en: "\u2713 remote approved", zh: "\u2713 \u8FDC\u7AEF\u6388\u6743" },
|
|
2085
|
+
runningInputHint: {
|
|
2086
|
+
en: "Enter queues text \xB7 Esc stops this reply (again to force)",
|
|
2087
|
+
zh: "Enter \u6392\u961F\u53D1\u9001 \xB7 Esc \u505C\u6B62\u5F53\u524D\u56DE\u590D\uFF08\u518D\u6309\u5F3A\u5236\u505C\u6B62\uFF09"
|
|
2088
|
+
},
|
|
2089
|
+
noToolDetails: { en: "[nolo] No tool details in this session yet.", zh: "[nolo] \u5C1A\u65E0\u5DE5\u5177\u8BE6\u60C5\u3002" },
|
|
2090
|
+
generatingReply: {
|
|
2091
|
+
en: "Generating reply\u2026",
|
|
2092
|
+
zh: "\u751F\u6210\u56DE\u590D\u2026"
|
|
2093
|
+
},
|
|
2077
2094
|
workingFallback: {
|
|
2078
|
-
en: "
|
|
2079
|
-
zh: "\
|
|
2095
|
+
en: "Waiting for response\u2026",
|
|
2096
|
+
zh: "\u7B49\u5F85\u54CD\u5E94\u2026"
|
|
2080
2097
|
},
|
|
2081
2098
|
thinkingActive: {
|
|
2082
2099
|
en: "Thinking\u2026",
|
|
@@ -2815,6 +2832,145 @@ var TOOL_LABELS = {
|
|
|
2815
2832
|
function toolLabel(name) {
|
|
2816
2833
|
return TOOL_LABELS[name]?.[getCliLocale()] ?? name;
|
|
2817
2834
|
}
|
|
2835
|
+
var family = (id, icon, en, zh) => ({ id, icon, en, zh });
|
|
2836
|
+
var TOOL_FAMILIES = {
|
|
2837
|
+
read: family("read", "\u{1F4C4}", "Read", "\u8BFB\u53D6"),
|
|
2838
|
+
write: family("write", "\u270D\uFE0F", "Write", "\u5199\u5165"),
|
|
2839
|
+
run: family("run", "\u{1F5A5}\uFE0F", "Run", "\u6267\u884C"),
|
|
2840
|
+
search: family("search", "\u{1F50E}", "Search", "\u641C\u7D22"),
|
|
2841
|
+
fetch: family("fetch", "\u{1F310}", "Fetch", "\u6293\u53D6\u7F51\u9875"),
|
|
2842
|
+
list: family("list", "\u{1F5C2}\uFE0F", "List", "\u5217\u8868"),
|
|
2843
|
+
memory: family("memory", "\u{1F9E0}", "Memory", "\u8BB0\u5FC6"),
|
|
2844
|
+
agent: family("agent", "\u{1F916}", "Agent", "\u667A\u80FD\u4F53"),
|
|
2845
|
+
skill: family("skill", "\u{1F9E9}", "Skill", "\u6280\u80FD"),
|
|
2846
|
+
interaction: family("interaction", "\u{1F4AC}", "Interaction", "\u4EA4\u4E92"),
|
|
2847
|
+
table: family("table", "\u{1F4CA}", "Table", "\u8868\u683C"),
|
|
2848
|
+
capture: family("capture", "\u{1F4F8}", "Capture", "\u622A\u5C4F"),
|
|
2849
|
+
delete: family("delete", "\u{1F5D1}\uFE0F", "Delete", "\u5220\u9664"),
|
|
2850
|
+
mcp: family("mcp", "\u{1F50C}", "Plugin", "\u63D2\u4EF6"),
|
|
2851
|
+
app: family("app", "\u{1F4E6}", "App", "\u5E94\u7528"),
|
|
2852
|
+
browser: family("browser", "\u{1F5B1}\uFE0F", "Browser", "\u6D4F\u89C8\u5668"),
|
|
2853
|
+
cloud: family("cloud", "\u2601\uFE0F", "Cloud", "\u4E91"),
|
|
2854
|
+
process: family("process", "\u2699\uFE0F", "Process", "\u8FDB\u7A0B"),
|
|
2855
|
+
email: family("email", "\u2709\uFE0F", "Email", "\u90AE\u4EF6"),
|
|
2856
|
+
scrape: family("scrape", "\u{1F577}\uFE0F", "Scrape", "\u91C7\u96C6"),
|
|
2857
|
+
media: family("media", "\u{1F3A8}", "Media", "\u5A92\u4F53"),
|
|
2858
|
+
default: family("default", "\u{1F527}", "Tool", "\u5DE5\u5177")
|
|
2859
|
+
};
|
|
2860
|
+
var DEFAULT_TOOL_ICON = TOOL_FAMILIES.default.icon;
|
|
2861
|
+
var TOOL_FAMILY_OVERRIDES = {
|
|
2862
|
+
readFile: TOOL_FAMILIES.read,
|
|
2863
|
+
readDoc: TOOL_FAMILIES.read,
|
|
2864
|
+
readDialog: TOOL_FAMILIES.read,
|
|
2865
|
+
readSpace: TOOL_FAMILIES.read,
|
|
2866
|
+
readPage: TOOL_FAMILIES.read,
|
|
2867
|
+
readArtifact: TOOL_FAMILIES.read,
|
|
2868
|
+
writeFile: TOOL_FAMILIES.write,
|
|
2869
|
+
editFile: TOOL_FAMILIES.write,
|
|
2870
|
+
createDoc: TOOL_FAMILIES.write,
|
|
2871
|
+
updateDoc: TOOL_FAMILIES.write,
|
|
2872
|
+
execShell: TOOL_FAMILIES.run,
|
|
2873
|
+
exec_shell: TOOL_FAMILIES.run,
|
|
2874
|
+
runCommand: TOOL_FAMILIES.run,
|
|
2875
|
+
checkEnv: TOOL_FAMILIES.run,
|
|
2876
|
+
cliDoctor: TOOL_FAMILIES.run,
|
|
2877
|
+
cliWhoami: TOOL_FAMILIES.run,
|
|
2878
|
+
configure: TOOL_FAMILIES.run,
|
|
2879
|
+
fetchWebpage: TOOL_FAMILIES.fetch,
|
|
2880
|
+
exa_search: TOOL_FAMILIES.search,
|
|
2881
|
+
codeSearch: TOOL_FAMILIES.search,
|
|
2882
|
+
globFiles: TOOL_FAMILIES.search,
|
|
2883
|
+
ask_user: TOOL_FAMILIES.interaction,
|
|
2884
|
+
show_interaction: TOOL_FAMILIES.interaction,
|
|
2885
|
+
notifyUser: TOOL_FAMILIES.interaction,
|
|
2886
|
+
captureVisualState: TOOL_FAMILIES.capture,
|
|
2887
|
+
loadSkill: TOOL_FAMILIES.skill,
|
|
2888
|
+
// 名字不切出已知系列词的两个注册工具(`weread*` / `toolquery`):它们是
|
|
2889
|
+
// 读书网关与工具查询,属于读取族;精确钉住以免退到兜底 🔧。
|
|
2890
|
+
wereadGateway: TOOL_FAMILIES.read,
|
|
2891
|
+
toolquery: TOOL_FAMILIES.read
|
|
2892
|
+
};
|
|
2893
|
+
function toolNameWords(name) {
|
|
2894
|
+
return name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").split(/[^A-Za-z0-9]+/).filter(Boolean).map((word) => word.toLowerCase());
|
|
2895
|
+
}
|
|
2896
|
+
var wordForms = (word) => {
|
|
2897
|
+
const forms = [word];
|
|
2898
|
+
if (word.endsWith("es")) forms.push(word.slice(0, -2));
|
|
2899
|
+
if (word.endsWith("s")) forms.push(word.slice(0, -1));
|
|
2900
|
+
return forms;
|
|
2901
|
+
};
|
|
2902
|
+
var hasWord = (...words) => (name) => toolNameWords(name).some((word) => wordForms(word).some((form) => words.includes(form)));
|
|
2903
|
+
var startsWithWord = (...words) => (name) => words.includes(toolNameWords(name)[0] ?? "");
|
|
2904
|
+
var TOOL_FAMILY_RULES = [
|
|
2905
|
+
// MCP 插件:listMcpConnections / listMcpTools / callMcpTool,以及带 mcp 的第三方工具名
|
|
2906
|
+
{ id: "mcp", family: TOOL_FAMILIES.mcp, test: hasWord("mcp") },
|
|
2907
|
+
// 浏览器自动化:browser_click / browser_typeText / browser_readContent …
|
|
2908
|
+
{ id: "browser", family: TOOL_FAMILIES.browser, test: startsWithWord("browser") },
|
|
2909
|
+
// 云服务:cfScreenshot / cfGeneratePDF / cfGetMarkdown / cloudflareCrawl,以及
|
|
2910
|
+
// 下划线命名的真实云工具 cloud_probe / list_cloud_resources …
|
|
2911
|
+
// `cloud` 走整词匹配(不是裸子串):`readCloudyConfig` 这类无关词不误命中。
|
|
2912
|
+
{
|
|
2913
|
+
id: "cloud",
|
|
2914
|
+
family: TOOL_FAMILIES.cloud,
|
|
2915
|
+
test: (name) => startsWithWord("cf", "cloudflare")(name) || hasWord("cloud")(name)
|
|
2916
|
+
},
|
|
2917
|
+
// 应用(app* 应用文件与版本):appFileWrite / appDeploy / appVersionRestore …
|
|
2918
|
+
{ id: "app", family: TOOL_FAMILIES.app, test: (name) => {
|
|
2919
|
+
const words = toolNameWords(name);
|
|
2920
|
+
return words[0] === "app" && words.length > 1;
|
|
2921
|
+
} },
|
|
2922
|
+
// 表格:*Table* 与分类(createCategory / updateContentCategory …)
|
|
2923
|
+
{ id: "table", family: TOOL_FAMILIES.table, test: hasWord("table", "category", "categories") },
|
|
2924
|
+
// 进程与本地 task:launchProcess / listProcesses / taskWait / taskStop …
|
|
2925
|
+
{ id: "process", family: TOOL_FAMILIES.process, test: hasWord("process", "task") },
|
|
2926
|
+
// 智能体:startAgentRun / controlAgentRun / listAgents / readAgent / *AgentAutomation
|
|
2927
|
+
{ id: "agent", family: TOOL_FAMILIES.agent, test: hasWord("agent", "run", "completion") },
|
|
2928
|
+
// 记忆:rememberMemory / queryMemory / deleteMemory
|
|
2929
|
+
{ id: "memory", family: TOOL_FAMILIES.memory, test: hasWord("memory") },
|
|
2930
|
+
// 技能:loadSkill / evalSkill / doctorSkill / importSkill / createSkillDoc
|
|
2931
|
+
{ id: "skill", family: TOOL_FAMILIES.skill, test: hasWord("skill") },
|
|
2932
|
+
// 邮件:email_read / email_send / email_provision_identity …
|
|
2933
|
+
{ id: "email", family: TOOL_FAMILIES.email, test: startsWithWord("email") },
|
|
2934
|
+
// 采集器:*Scraper / firecrawl_* / *_scrape
|
|
2935
|
+
{ id: "scrape", family: TOOL_FAMILIES.scrape, test: (name) => {
|
|
2936
|
+
const words = toolNameWords(name);
|
|
2937
|
+
return words.at(-1) === "scraper" || words[0] === "firecrawl" || words.at(-1) === "scrape";
|
|
2938
|
+
} },
|
|
2939
|
+
// 生成媒体:*Image* / transcribe* / *SpeechToText / *ocr / *Chart
|
|
2940
|
+
{ id: "media", family: TOOL_FAMILIES.media, test: hasWord("image", "transcribe", "transcription", "speech", "ocr", "chart") },
|
|
2941
|
+
// 删除类:deleteDialogs / deleteSpaces(表格与记忆的删除已由更具体的族先命中)
|
|
2942
|
+
{ id: "delete", family: TOOL_FAMILIES.delete, test: startsWithWord("delete", "remove") },
|
|
2943
|
+
// 写入类:write* / edit* / apply* / create* / update* / import* / export* / convert* / translate*
|
|
2944
|
+
{ id: "write", family: TOOL_FAMILIES.write, test: startsWithWord("write", "edit", "apply", "create", "update", "import", "export", "convert", "translate") },
|
|
2945
|
+
// 读取/查询类:read* / query*(含 wereadGateway、toolquery 这类带 query/read 的名字)
|
|
2946
|
+
{ id: "read", family: TOOL_FAMILIES.read, test: hasWord("read", "query") },
|
|
2947
|
+
// 列表类:list*(空间、对话、用户空间)
|
|
2948
|
+
{ id: "list", family: TOOL_FAMILIES.list, test: startsWithWord("list") },
|
|
2949
|
+
// 搜索类:search_workspace / search_all_spaces / searchDialogMessages …
|
|
2950
|
+
{ id: "search", family: TOOL_FAMILIES.search, test: hasWord("search") },
|
|
2951
|
+
// 抓取类:fetchWebpage / surfWeather
|
|
2952
|
+
{ id: "fetch", family: TOOL_FAMILIES.fetch, test: startsWithWord("fetch", "surf") },
|
|
2953
|
+
// 执行类:exec_shell / executeSql(shell 与本地诊断命令)
|
|
2954
|
+
{ id: "run", family: TOOL_FAMILIES.run, test: startsWithWord("exec", "execute", "run") }
|
|
2955
|
+
];
|
|
2956
|
+
var TOOL_FAMILY_BY_ICON = Object.fromEntries(
|
|
2957
|
+
Object.values(TOOL_FAMILIES).map((fam) => [fam.icon, fam])
|
|
2958
|
+
);
|
|
2959
|
+
function toolFamilyOf(name) {
|
|
2960
|
+
const override = TOOL_FAMILY_OVERRIDES[name];
|
|
2961
|
+
if (override) return override;
|
|
2962
|
+
const rule = TOOL_FAMILY_RULES.find((candidate) => candidate.test(name));
|
|
2963
|
+
return rule ? rule.family : TOOL_FAMILIES.default;
|
|
2964
|
+
}
|
|
2965
|
+
function toolIcon(name) {
|
|
2966
|
+
return toolFamilyOf(name).icon;
|
|
2967
|
+
}
|
|
2968
|
+
function toolFamilyOfIcon(icon) {
|
|
2969
|
+
return TOOL_FAMILY_BY_ICON[icon] ?? null;
|
|
2970
|
+
}
|
|
2971
|
+
function toolFamilyLabel(icon) {
|
|
2972
|
+
return (TOOL_FAMILY_BY_ICON[icon] ?? TOOL_FAMILIES.default)[getCliLocale()];
|
|
2973
|
+
}
|
|
2818
2974
|
var COMMAND_DESCRIPTIONS = {
|
|
2819
2975
|
"auth cooldown": {
|
|
2820
2976
|
en: "List / clear credential availability cooldowns",
|
|
@@ -3463,6 +3619,10 @@ export {
|
|
|
3463
3619
|
dailyWelcomeTip,
|
|
3464
3620
|
t,
|
|
3465
3621
|
toolLabel,
|
|
3622
|
+
toolFamilyOf,
|
|
3623
|
+
toolIcon,
|
|
3624
|
+
toolFamilyOfIcon,
|
|
3625
|
+
toolFamilyLabel,
|
|
3466
3626
|
cliCommandDescription,
|
|
3467
3627
|
toolLabelVariants,
|
|
3468
3628
|
agentRunCardLabels
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
getApproxPricePerImage
|
|
6
6
|
} from "./chunk-4JH2UMJR.js";
|
|
7
|
-
import {
|
|
8
|
-
getModelConfig
|
|
9
|
-
} from "./chunk-LE6LGAJE.js";
|
|
10
|
-
import {
|
|
11
|
-
isPlatformHostedImageModel,
|
|
12
|
-
isPlatformManagedProvider,
|
|
13
|
-
resolvePlatformEffectiveModel
|
|
14
|
-
} from "./chunk-VALBGPM6.js";
|
|
15
7
|
import {
|
|
16
8
|
asOptionalPositiveFiniteNumber
|
|
17
9
|
} from "./chunk-U6VC4MU4.js";
|
|
10
|
+
import {
|
|
11
|
+
getModelConfig
|
|
12
|
+
} from "./chunk-CD3RU7XL.js";
|
|
18
13
|
import {
|
|
19
14
|
asOptionalFiniteNumber
|
|
20
15
|
} from "./chunk-WWC7I6TA.js";
|
|
16
|
+
import {
|
|
17
|
+
isPlatformHostedImageModel,
|
|
18
|
+
isPlatformManagedProvider,
|
|
19
|
+
resolvePlatformEffectiveModel
|
|
20
|
+
} from "./chunk-OBSEKCVK.js";
|
|
21
21
|
|
|
22
22
|
// packages/ai/llm/getPricing.ts
|
|
23
23
|
var MAX_OUTPUT_TOKENS = 8192;
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
patch,
|
|
7
7
|
read
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RM4UMFY4.js";
|
|
9
9
|
import {
|
|
10
10
|
DEVICE_LOCAL_OWNER_ID,
|
|
11
11
|
isDeviceLocalSpaceBody
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GXXY2NL3.js";
|
|
13
13
|
import {
|
|
14
14
|
selectIdentityUserId
|
|
15
15
|
} from "./chunk-PXYBUFDB.js";
|