nolo-cli 0.231.0-alpha.1 → 0.240.0-alpha.3
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-7V3NSK4W.js → _executeModel-5NA4USGG.js} +56 -51
- package/{action-GDZDXPMB.js → action-X75O3XPH.js} +7 -4
- package/{addContentAction-7RO4AMRI.js → addContentAction-GVC77QSN.js} +9 -8
- package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-KKDVAMW3.js} +12 -11
- package/{agentDeleteCommand-MD76OMLN.js → agentDeleteCommand-2RFGKFAB.js} +77 -69
- package/{agentEmailCommands-T4TW4IBX.js → agentEmailCommands-GQCQKKOR.js} +84 -72
- package/{agentListCommands-4WLG32IW.js → agentListCommands-HSGLDPDQ.js} +40 -47
- package/{agentMachineCommands-LSDGA5WR.js → agentMachineCommands-BISF6PVV.js} +26 -22
- package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-O3Q25PKU.js} +2 -2
- package/{agentPullCommand-KHV4EELF.js → agentPullCommand-G6U2LHMW.js} +1 -1
- package/{agentRecordCommands-7TEX2B7Y.js → agentRecordCommands-AOXPGYAJ.js} +79 -67
- package/{agentRunCommand-23SMDVDW.js → agentRunCommand-AFAIP7U7.js} +85 -72
- package/{agentRunControl-MBG4U6SL.js → agentRunControl-VBL7UFSG.js} +1 -1
- package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-T7BX2WGL.js} +24 -19
- package/{agentSlice-AATYVDP6.js → agentSlice-XJNKE3PG.js} +10 -9
- package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-LURUSPY7.js} +27 -23
- package/{appDeployCommands-AU4IUN33.js → appDeployCommands-SMEW4AK2.js} +27 -23
- package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-VYPJTBJK.js} +27 -23
- package/{appGetCommands-BGTLIQ4K.js → appGetCommands-N4NI5GGJ.js} +27 -23
- package/{appListCommands-CUCPRUXW.js → appListCommands-5C6ONN3Z.js} +27 -23
- package/{authCommand-3SUYUNQV.js → authCommand-4CVBDADE.js} +15 -13
- package/{authCommands-BLE7ETZH.js → authCommands-EHU2BHOX.js} +7 -5
- package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-AYWYQVA4.js} +3 -3
- package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-CSDG2HYN.js} +1 -1
- package/{chunk-HHFGE2WF.js → chunk-2574ANSV.js} +1 -1
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-S6FDXXZV.js → chunk-3EMIEC27.js} +1 -1
- package/{chunk-EXNV7CCV.js → chunk-3FBAVU2Y.js} +11 -9
- package/{chunk-ZH3KXFHS.js → chunk-4FIO2S7Z.js} +1 -1
- package/{chunk-U4FF7LRY.js → chunk-4IQVE43Z.js} +30 -26
- package/{chunk-VQ5N5GSV.js → chunk-4Q6HQORG.js} +1 -1
- package/{chunk-P2ZLUIW2.js → chunk-4X5AVCM7.js} +94 -4
- package/chunk-4ZCTKB27.js +31 -0
- package/{chunk-42OKN2LI.js → chunk-5HUO7SEX.js} +9 -107
- package/{chunk-QYB23WUH.js → chunk-5QZSEQSK.js} +1 -1
- package/{chunk-7JGMNKKG.js → chunk-6CKUO32A.js} +8 -0
- package/chunk-6D25V6CB.js +133 -0
- package/{chunk-LHN7NIQZ.js → chunk-6WOLPIPY.js} +93 -90
- package/{chunk-6QHKRARD.js → chunk-6WZVM33D.js} +9 -4
- package/{chunk-NVEYEKN3.js → chunk-7AJRJGSQ.js} +254 -359
- package/chunk-7NIBQ4HY.js +138 -0
- package/{chunk-7Z6EW7AH.js → chunk-7TTMMOKH.js} +13 -6
- package/{chunk-GXZ5LB7H.js → chunk-A3LUWRQK.js} +4 -4
- package/{chunk-4ZGPHFLE.js → chunk-A5EVA6HU.js} +2 -2
- package/{chunk-57TLKTVZ.js → chunk-A74QP4FI.js} +566 -104
- package/{chunk-3ING4D5X.js → chunk-AEQMKYZN.js} +4 -4
- package/{chunk-FFSPUVL5.js → chunk-AH5R7BYW.js} +6 -166
- package/{chunk-7FEP5USX.js → chunk-ANJRDS6U.js} +3 -3
- package/{chunk-YFLVRVYK.js → chunk-AVJDELEA.js} +1 -1
- package/{chunk-HYLRQDEE.js → chunk-B5SV4H3J.js} +6 -6
- package/{chunk-KUOMUZH6.js → chunk-B7DE5XJW.js} +137 -290
- package/chunk-BEM6LPD2.js +734 -0
- package/{chunk-DUUDXSLX.js → chunk-BGGAY6OK.js} +27 -3
- package/{chunk-YCFP57LH.js → chunk-BGGV6B5O.js} +408 -230
- package/{chunk-BP5ZJ6B4.js → chunk-BIABIPGW.js} +1 -1
- package/{chunk-TQEKUOTI.js → chunk-BXSMFPTG.js} +4 -4
- package/{chunk-RG2DGNL6.js → chunk-CKZPMJNU.js} +3 -3
- package/{chunk-WU443D7A.js → chunk-CVJRVBJL.js} +2 -2
- package/{chunk-BIWI5M4E.js → chunk-D374I563.js} +1 -1
- package/{chunk-QRGDJA4B.js → chunk-DNZ4JJ7C.js} +1 -1
- package/chunk-DVYAFH2Q.js +103 -0
- package/{chunk-FTMFO6LI.js → chunk-DXW5WDHZ.js} +4 -4
- package/{chunk-ZTR65O4L.js → chunk-E5KJOZWY.js} +3 -3
- package/{chunk-G7IUT2V3.js → chunk-EBKHA63G.js} +103 -12
- package/{chunk-DGYCDA6W.js → chunk-F3XI6WQP.js} +17 -10
- package/{chunk-M3OZRQNH.js → chunk-F6YWDVIB.js} +1 -1
- package/{chunk-PR2LAQAC.js → chunk-FFYE5ATM.js} +4 -4
- package/{chunk-6NNDUDAZ.js → chunk-FZKA3XFA.js} +11 -11
- package/{chunk-MNEZUL5S.js → chunk-G22P367E.js} +31 -14
- package/{chunk-6OQMSPB7.js → chunk-GDUC4VS2.js} +7 -7
- package/{chunk-R6Z5S5GA.js → chunk-GXXY2NL3.js} +16 -14
- package/{chunk-U2HBB7RS.js → chunk-H7ZYKHAZ.js} +27 -7
- package/{chunk-3U44JB3O.js → chunk-HCNOO374.js} +1 -1
- package/{chunk-HSSBDZLD.js → chunk-HOM6LTEW.js} +1 -1
- package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
- package/{chunk-TPG2DPN2.js → chunk-IJTXNLQE.js} +9 -9
- package/{chunk-ALAES342.js → chunk-IUMS6F53.js} +2 -2
- package/{chunk-547ENH5T.js → chunk-IUTUWIKE.js} +2 -2
- package/{chunk-S6K5F3KP.js → chunk-JBWXPACD.js} +1 -1
- package/{chunk-XAG3FWBE.js → chunk-KZPEGO6D.js} +1 -1
- package/{chunk-RBPUNSG5.js → chunk-LYDEFPQP.js} +18 -108
- package/{chunk-OWKNSIXL.js → chunk-MECDGHLK.js} +271 -66
- package/{chunk-FJSNBZXR.js → chunk-MM73SP4K.js} +1 -1
- package/{chunk-XSW4EXQV.js → chunk-MYOSN6BT.js} +2 -2
- package/{chunk-ZEVQHCLM.js → chunk-MYPKBJJO.js} +2 -2
- package/{chunk-DBUR22G5.js → chunk-N2JROHD3.js} +4 -4
- package/{chunk-ATEKLSLR.js → chunk-O6IPRAVV.js} +14 -9
- package/{chunk-PPJYZRSQ.js → chunk-OX6GNNVT.js} +6 -1
- package/{chunk-WFVASLQT.js → chunk-P3IZUMIC.js} +1 -1
- package/{chunk-FPBJM2BW.js → chunk-PGKA77TZ.js} +26 -20
- package/{chunk-IONGMVPY.js → chunk-PRMEU7BT.js} +229 -7
- package/{chunk-OJ45MEEI.js → chunk-PROOOQZ3.js} +1 -1
- package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/chunk-RETQOQ4D.js +33394 -0
- package/{chunk-CMMI3DAT.js → chunk-RM4UMFY4.js} +33 -26
- package/{chunk-262R3XNN.js → chunk-S2MHR4PU.js} +151 -5
- package/{chunk-DEA37IUY.js → chunk-T6VROBY7.js} +2 -2
- package/{chunk-M4SFKP5L.js → chunk-TEMLHVGX.js} +1 -1
- package/{chunk-3QIYD3VM.js → chunk-TRHJ4NJB.js} +61 -792
- package/{chunk-OBIC6EG7.js → chunk-TWTJV35S.js} +1 -1
- package/{chunk-TCZ2VJZQ.js → chunk-U3G7RRXJ.js} +5 -5
- package/{chunk-F6Z6ZCUV.js → chunk-UFC4J7OY.js} +3 -3
- package/{chunk-5YMA6DDZ.js → chunk-UHW6SCVK.js} +1 -1
- package/{chunk-4N6G2CKP.js → chunk-ULLHVDTZ.js} +46 -1
- package/{chunk-XFXFPUO7.js → chunk-VM72HKW2.js} +7 -7
- package/{chunk-MHHLABT3.js → chunk-VREG6ANQ.js} +102 -99
- package/chunk-VSRISJXZ.js +107 -0
- package/chunk-WDWZPASX.js +29 -0
- package/{chunk-ILHQ2AXT.js → chunk-WRKMXMU7.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-KUDCKVYQ.js → chunk-Y5OWZQMJ.js} +28 -19
- package/{chunk-TI2EPRHE.js → chunk-YGCOJNFZ.js} +3 -3
- package/{chunk-JQZRSXS5.js → chunk-YGDYYFRX.js} +9 -13
- package/{chunk-X7QAIY5B.js → chunk-Z2WZAE4P.js} +128 -150
- package/chunk-Z6YTCDU4.js +24 -0
- package/{chunk-RRDRQOEC.js → chunk-ZEKUFJLW.js} +81 -66
- package/{chunk-EVGU5P4U.js → chunk-ZVOL2MAJ.js} +1 -1
- package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-U5OAVAKQ.js} +2 -2
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-S42VMGB6.js} +1 -1
- package/{cliLocalAgentRecordReader-H3HYQRRR.js → cliLocalAgentRecordReader-HVZAQCUD.js} +29 -25
- package/{commandRegistry-35EMLPIZ.js → commandRegistry-TME7INFU.js} +89 -85
- package/{contentThunks-BCNMGA5J.js → contentThunks-U6OC4R2N.js} +23 -22
- package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-U7XSRVJP.js} +1 -1
- package/{createAgentAutomationAction-HEU4KOYF.js → createAgentAutomationAction-IP4LFN3W.js} +23 -22
- package/{createDialogAction-5DSL5ESZ.js → createDialogAction-IAGQJ3LH.js} +24 -23
- package/{createPageAction-BBZ25AFI.js → createPageAction-AZ3UIFKA.js} +24 -23
- package/{dbSlice-XRUZOGSU.js → dbSlice-DKKMJJYY.js} +8 -7
- package/{deleteFile-6URDHYRB.js → deleteFile-TQSONMVU.js} +7 -4
- package/{dialogCommands-6SZD4TYP.js → dialogCommands-PCDRMBWG.js} +30 -26
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-O35MWMOS.js} +3 -3
- package/{dialogSlice-QJ5PQOM3.js → dialogSlice-QAKYN4DE.js} +22 -21
- package/{dialogUsageCommand-W2WCSGKF.js → dialogUsageCommand-2SSLTXKO.js} +2 -2
- package/{docCreateCommands-25E6PGN3.js → docCreateCommands-CFQFZOAD.js} +26 -22
- package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-5CPNTIIS.js} +27 -23
- package/{docReadCommands-JY2E5XEN.js → docReadCommands-XQILYSAJ.js} +26 -22
- package/{docStore-XJ4UMU3C.js → docStore-GIVRT7TQ.js} +10 -9
- package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-VETKSUDD.js} +26 -22
- package/{handleSendMessageAction-YHAOXARI.js → handleSendMessageAction-HKIW4ZNO.js} +48 -45
- package/{hostCredentialCreate-62AWCBQC.js → hostCredentialCreate-6VDJFNDO.js} +81 -68
- package/index.js +8 -8
- package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
- package/{localRuntimeAdapter-KNQNNHUM.js → localRuntimeAdapter-BQ4F5PZV.js} +81 -69
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-WCNA4A3G.js} +4 -2
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-CRNIBOOM.js} +1 -1
- package/{machineCommands-X2FMPSV4.js → machineCommands-K6XIGOAD.js} +77 -65
- package/{machineWsRunDispatch-XHTPOYVJ.js → machineWsRunDispatch-4OO7Z6UM.js} +77 -65
- package/mcpLocalAuthorizeCommand-ZP6ESAGE.js +106 -0
- package/{memberThunks-7Y3OYSJQ.js → memberThunks-PBJPZ2JU.js} +15 -10
- package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
- package/package.json +1 -1
- package/{projectArchive-NPQ3YOAV.js → projectArchive-G7AOQPRW.js} +24 -23
- package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-OPBCAONX.js} +1 -1
- package/{providerRegistry-ZI2KORJ7.js → providerRegistry-J2HCVTHE.js} +1 -1
- package/{read-TYMBGEXO.js → read-JEGPITEW.js} +6 -5
- package/{readDocTool-SKQVHBLO.js → readDocTool-TE3XIU4Y.js} +1 -1
- package/{readlineWorkspace-77PILYDH.js → readlineWorkspace-SOW5QUGZ.js} +2935 -2376
- package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-CX3OAH4Y.js} +14 -13
- package/{runAgentClientLoop-XNKAXUKU.js → runAgentClientLoop-HQJPDFGQ.js} +65 -45
- package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-GUH2YGMH.js} +3 -3
- package/{secretCommands-KZWBZIYS.js → secretCommands-NJXFVHZU.js} +2 -2
- package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-CGM67EEQ.js} +11 -10
- package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-3ABWPPXR.js} +14 -13
- package/{settingThunks-ZRGWVGZD.js → settingThunks-AY76OHYX.js} +176 -57
- package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-TOGSGCPS.js → spaceCommands-G63QGYQO.js} +25 -21
- package/{streamAgentChatTurn-IARUEZPU.js → streamAgentChatTurn-E3XH2KFD.js} +127 -85
- package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-G6EZRKCQ.js} +12 -11
- package/{tableCommands-FTAOCBTX.js → tableCommands-JI75ZHDI.js} +4 -1
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-62UUPDUA.js} +3 -5
- package/{tools-5UWS65PB.js → tools-7RSX22FT.js} +41 -37
- package/{tuiRestart-2IL37YIB.js → tuiRestart-KAAA7TND.js} +2 -2
- package/{tuiSummaryLlmCaller-R4H3ZZ52.js → tuiSummaryLlmCaller-BVNHMWLR.js} +5 -5
- package/{updateCommands-CPATDG6J.js → updateCommands-ASK5XYPH.js} +3 -3
- package/{updateDialogTitleAction-G6C6XVNV.js → updateDialogTitleAction-SEWV252V.js} +23 -22
- package/{usageCommand-2BF74MKF.js → usageCommand-JVT5J3DC.js} +2 -2
- package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-IZYYUTEW.js} +3 -3
- package/webapi-24RZDIIQ.js +2488 -0
- package/{windowsSelfUpdate-ZFD6J5HF.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/chunk-ZXF6D3I6.js +0 -359
- package/{accountResolver-QETKNC7T.js → accountResolver-EK2S4PWF.js} +3 -3
- package/{localDialogRead-CCOCVGAP.js → localDialogRead-AV2VKKPG.js} +0 -0
- package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-YIZ7KLUP.js} +5 -5
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
isMediaFile,
|
|
3
3
|
resolveFileCategory
|
|
4
4
|
} from "./chunk-3PVYUPXK.js";
|
|
5
|
-
import {
|
|
6
|
-
readAction,
|
|
7
|
-
readRequestManager,
|
|
8
|
-
resolveAgentReadServers
|
|
9
|
-
} from "./chunk-DGYCDA6W.js";
|
|
10
5
|
import {
|
|
11
6
|
loadFileFromIndexedDb,
|
|
12
7
|
removeAction,
|
|
13
8
|
saveFileToIndexedDb
|
|
14
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-A5EVA6HU.js";
|
|
10
|
+
import {
|
|
11
|
+
readAction,
|
|
12
|
+
readRequestManager,
|
|
13
|
+
resolveAgentReadServers
|
|
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
|
|
@@ -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
|
),
|
|
@@ -757,9 +757,12 @@ Use /switch, /switch list, /switch minimax-m3, or a full agent key.`,
|
|
|
757
757
|
// --- `nolo agent run` CLI surface (packages/cli/agentRunCommand.ts) ---
|
|
758
758
|
// The direct CLI entry bypasses the dispatch tool's allowHostWrites guard, so
|
|
759
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)。
|
|
760
763
|
"agentRun.hostWriteGuard": {
|
|
761
|
-
en: "[nolo] runtimeKey=local
|
|
762
|
-
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"
|
|
763
766
|
},
|
|
764
767
|
"agentRun.instaboxConfigFailed": {
|
|
765
768
|
en: "[nolo] instabox config generation failed: {0}\n",
|
|
@@ -2076,9 +2079,9 @@ var commonStrings = {
|
|
|
2076
2079
|
// --- Tool trace copy ------------------------------------------------------
|
|
2077
2080
|
// The compact trace shows only status, never timing or output size: a line
|
|
2078
2081
|
// count told the user nothing actionable and the ms figure read as noise.
|
|
2079
|
-
permissionGranted: { en: "\
|
|
2080
|
-
permissionLocalGranted: { en: "\
|
|
2081
|
-
permissionRemoteGranted: { en: "\
|
|
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" },
|
|
2082
2085
|
runningInputHint: {
|
|
2083
2086
|
en: "Enter queues text \xB7 Esc stops this reply (again to force)",
|
|
2084
2087
|
zh: "Enter \u6392\u961F\u53D1\u9001 \xB7 Esc \u505C\u6B62\u5F53\u524D\u56DE\u590D\uFF08\u518D\u6309\u5F3A\u5236\u505C\u6B62\uFF09"
|
|
@@ -2829,6 +2832,145 @@ var TOOL_LABELS = {
|
|
|
2829
2832
|
function toolLabel(name) {
|
|
2830
2833
|
return TOOL_LABELS[name]?.[getCliLocale()] ?? name;
|
|
2831
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
|
+
}
|
|
2832
2974
|
var COMMAND_DESCRIPTIONS = {
|
|
2833
2975
|
"auth cooldown": {
|
|
2834
2976
|
en: "List / clear credential availability cooldowns",
|
|
@@ -3477,6 +3619,10 @@ export {
|
|
|
3477
3619
|
dailyWelcomeTip,
|
|
3478
3620
|
t,
|
|
3479
3621
|
toolLabel,
|
|
3622
|
+
toolFamilyOf,
|
|
3623
|
+
toolIcon,
|
|
3624
|
+
toolFamilyOfIcon,
|
|
3625
|
+
toolFamilyLabel,
|
|
3480
3626
|
cliCommandDescription,
|
|
3481
3627
|
toolLabelVariants,
|
|
3482
3628
|
agentRunCardLabels
|
|
@@ -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";
|