nolo-cli 0.229.0-alpha.1 → 0.240.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/{_executeModel-VYCHHZVT.js → _executeModel-5NA4USGG.js} +56 -51
  2. package/{action-GDZDXPMB.js → action-X75O3XPH.js} +7 -4
  3. package/{addContentAction-7RO4AMRI.js → addContentAction-GVC77QSN.js} +9 -8
  4. package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-KKDVAMW3.js} +12 -11
  5. package/{agentDeleteCommand-QWQKT54A.js → agentDeleteCommand-2RFGKFAB.js} +78 -70
  6. package/{agentEmailCommands-EISMBIRE.js → agentEmailCommands-GQCQKKOR.js} +85 -73
  7. package/{agentListCommands-4WLG32IW.js → agentListCommands-HSGLDPDQ.js} +40 -47
  8. package/{agentMachineCommands-DC6NKWTU.js → agentMachineCommands-BISF6PVV.js} +26 -22
  9. package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-O3Q25PKU.js} +2 -2
  10. package/{agentPullCommand-KHV4EELF.js → agentPullCommand-G6U2LHMW.js} +1 -1
  11. package/{agentRecordCommands-IZYUVHME.js → agentRecordCommands-AOXPGYAJ.js} +80 -68
  12. package/{agentRunCommand-QM7ETUTX.js → agentRunCommand-YTZJCRAL.js} +86 -73
  13. package/{agentRunControl-MBG4U6SL.js → agentRunControl-VBL7UFSG.js} +1 -1
  14. package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-T7BX2WGL.js} +24 -19
  15. package/{agentSlice-UG76KEBH.js → agentSlice-XJNKE3PG.js} +10 -9
  16. package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-LURUSPY7.js} +27 -23
  17. package/{appDeployCommands-AU4IUN33.js → appDeployCommands-SMEW4AK2.js} +27 -23
  18. package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-VYPJTBJK.js} +27 -23
  19. package/{appGetCommands-BGTLIQ4K.js → appGetCommands-N4NI5GGJ.js} +27 -23
  20. package/{appListCommands-CUCPRUXW.js → appListCommands-5C6ONN3Z.js} +27 -23
  21. package/{authCommand-OZ2KTP4Z.js → authCommand-4CVBDADE.js} +15 -13
  22. package/{authCommands-55OGQGCR.js → authCommands-EHU2BHOX.js} +7 -5
  23. package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-AYWYQVA4.js} +3 -3
  24. package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-CSDG2HYN.js} +1 -1
  25. package/{chunk-HHFGE2WF.js → chunk-2574ANSV.js} +1 -1
  26. package/chunk-2SXN7LAY.js +15 -0
  27. package/{chunk-S6FDXXZV.js → chunk-3EMIEC27.js} +1 -1
  28. package/{chunk-XTJKU3Z4.js → chunk-3FBAVU2Y.js} +11 -9
  29. package/{chunk-ZH3KXFHS.js → chunk-4FIO2S7Z.js} +1 -1
  30. package/{chunk-MJI3UAXN.js → chunk-4IQVE43Z.js} +30 -26
  31. package/{chunk-VQ5N5GSV.js → chunk-4Q6HQORG.js} +1 -1
  32. package/{chunk-P2ZLUIW2.js → chunk-4X5AVCM7.js} +94 -4
  33. package/chunk-4ZCTKB27.js +31 -0
  34. package/{chunk-42OKN2LI.js → chunk-5HUO7SEX.js} +9 -107
  35. package/{chunk-QYB23WUH.js → chunk-5QZSEQSK.js} +1 -1
  36. package/{chunk-7JGMNKKG.js → chunk-6CKUO32A.js} +8 -0
  37. package/chunk-6D25V6CB.js +133 -0
  38. package/{chunk-ZOHO6MOF.js → chunk-6WOLPIPY.js} +93 -90
  39. package/{chunk-6QHKRARD.js → chunk-6WZVM33D.js} +9 -4
  40. package/{chunk-DLXMMTGM.js → chunk-7AJRJGSQ.js} +260 -359
  41. package/chunk-7NIBQ4HY.js +138 -0
  42. package/{chunk-7Z6EW7AH.js → chunk-7TTMMOKH.js} +13 -6
  43. package/{chunk-CNMY2XM6.js → chunk-A3LUWRQK.js} +4 -4
  44. package/{chunk-4ZGPHFLE.js → chunk-A5EVA6HU.js} +2 -2
  45. package/{chunk-YVFH2MFB.js → chunk-AEQMKYZN.js} +4 -4
  46. package/{chunk-YKY4OVOX.js → chunk-AH5R7BYW.js} +13 -167
  47. package/{chunk-7FEP5USX.js → chunk-ANJRDS6U.js} +3 -3
  48. package/{chunk-YFLVRVYK.js → chunk-AVJDELEA.js} +1 -1
  49. package/{chunk-HYLRQDEE.js → chunk-B5SV4H3J.js} +6 -6
  50. package/{chunk-7BCG67EI.js → chunk-B7DE5XJW.js} +137 -290
  51. package/chunk-BEM6LPD2.js +734 -0
  52. package/{chunk-DUUDXSLX.js → chunk-BGGAY6OK.js} +27 -3
  53. package/{chunk-GAYNXB6T.js → chunk-BGGV6B5O.js} +416 -232
  54. package/{chunk-BP5ZJ6B4.js → chunk-BIABIPGW.js} +1 -1
  55. package/{chunk-TQEKUOTI.js → chunk-BXSMFPTG.js} +4 -4
  56. package/{chunk-RG2DGNL6.js → chunk-CKZPMJNU.js} +3 -3
  57. package/{chunk-OTKSESZR.js → chunk-CVJRVBJL.js} +2 -2
  58. package/{chunk-BIWI5M4E.js → chunk-D374I563.js} +1 -1
  59. package/{chunk-QRGDJA4B.js → chunk-DNZ4JJ7C.js} +1 -1
  60. package/chunk-DVYAFH2Q.js +103 -0
  61. package/{chunk-LYD6C7OU.js → chunk-DXW5WDHZ.js} +4 -4
  62. package/{chunk-MZG5CETE.js → chunk-E5KJOZWY.js} +3 -3
  63. package/{chunk-45CAVC35.js → chunk-E5KY7RAY.js} +565 -103
  64. package/{chunk-G7IUT2V3.js → chunk-EBKHA63G.js} +103 -12
  65. package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
  66. package/{chunk-DGYCDA6W.js → chunk-F3XI6WQP.js} +17 -10
  67. package/{chunk-M3OZRQNH.js → chunk-F6YWDVIB.js} +1 -1
  68. package/{chunk-3VZLEKV2.js → chunk-FFYE5ATM.js} +4 -4
  69. package/{chunk-HXB4VDGK.js → chunk-FZKA3XFA.js} +11 -11
  70. package/{chunk-MNEZUL5S.js → chunk-G22P367E.js} +31 -14
  71. package/{chunk-WFDNADFX.js → chunk-GDUC4VS2.js} +7 -7
  72. package/{chunk-R6Z5S5GA.js → chunk-GXXY2NL3.js} +16 -14
  73. package/{chunk-U2HBB7RS.js → chunk-H7ZYKHAZ.js} +27 -7
  74. package/{chunk-3U44JB3O.js → chunk-HCNOO374.js} +1 -1
  75. package/{chunk-HSSBDZLD.js → chunk-HOM6LTEW.js} +1 -1
  76. package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
  77. package/{chunk-WCFFRBL5.js → chunk-IJTXNLQE.js} +9 -9
  78. package/{chunk-ALAES342.js → chunk-IUMS6F53.js} +2 -2
  79. package/{chunk-547ENH5T.js → chunk-IUTUWIKE.js} +2 -2
  80. package/{chunk-S6K5F3KP.js → chunk-JBWXPACD.js} +1 -1
  81. package/{chunk-XAG3FWBE.js → chunk-KZPEGO6D.js} +1 -1
  82. package/{chunk-RBPUNSG5.js → chunk-LYDEFPQP.js} +18 -108
  83. package/{chunk-OWKNSIXL.js → chunk-MECDGHLK.js} +271 -66
  84. package/{chunk-FJSNBZXR.js → chunk-MM73SP4K.js} +1 -1
  85. package/{chunk-XSW4EXQV.js → chunk-MYOSN6BT.js} +2 -2
  86. package/{chunk-ZEVQHCLM.js → chunk-MYPKBJJO.js} +2 -2
  87. package/{chunk-DBUR22G5.js → chunk-N2JROHD3.js} +4 -4
  88. package/{chunk-ATEKLSLR.js → chunk-O6IPRAVV.js} +14 -9
  89. package/{chunk-PPJYZRSQ.js → chunk-OX6GNNVT.js} +6 -1
  90. package/{chunk-TSPMLCWI.js → chunk-P3IZUMIC.js} +2 -2
  91. package/{chunk-FPBJM2BW.js → chunk-PGKA77TZ.js} +26 -20
  92. package/{chunk-4QYJPWHH.js → chunk-PRMEU7BT.js} +229 -7
  93. package/{chunk-OJ45MEEI.js → chunk-PROOOQZ3.js} +1 -1
  94. package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
  95. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  96. package/chunk-RETQOQ4D.js +33394 -0
  97. package/{chunk-CMMI3DAT.js → chunk-RM4UMFY4.js} +33 -26
  98. package/{chunk-262R3XNN.js → chunk-S2MHR4PU.js} +151 -5
  99. package/{chunk-DEA37IUY.js → chunk-T6VROBY7.js} +2 -2
  100. package/{chunk-M4SFKP5L.js → chunk-TEMLHVGX.js} +1 -1
  101. package/{chunk-3QIYD3VM.js → chunk-TRHJ4NJB.js} +61 -792
  102. package/{chunk-OBIC6EG7.js → chunk-TWTJV35S.js} +1 -1
  103. package/{chunk-TCZ2VJZQ.js → chunk-U3G7RRXJ.js} +5 -5
  104. package/{chunk-F6Z6ZCUV.js → chunk-UFC4J7OY.js} +3 -3
  105. package/{chunk-5YMA6DDZ.js → chunk-UHW6SCVK.js} +1 -1
  106. package/{chunk-4N6G2CKP.js → chunk-ULLHVDTZ.js} +46 -1
  107. package/{chunk-XFXFPUO7.js → chunk-VM72HKW2.js} +7 -7
  108. package/{chunk-HF7BLF3F.js → chunk-VREG6ANQ.js} +102 -99
  109. package/chunk-VSRISJXZ.js +107 -0
  110. package/chunk-WDWZPASX.js +29 -0
  111. package/{chunk-ILHQ2AXT.js → chunk-WRKMXMU7.js} +2 -0
  112. package/chunk-X7IA2B7R.js +166 -0
  113. package/{chunk-5ZMIIR23.js → chunk-XBAEM4RI.js} +7 -0
  114. package/{chunk-4JVNURX4.js → chunk-XS5A3EKX.js} +1 -23
  115. package/{chunk-N5Z2V73W.js → chunk-Y2MF4DCJ.js} +1 -1
  116. package/{chunk-EGHP7KOY.js → chunk-Y5OWZQMJ.js} +28 -19
  117. package/{chunk-TI2EPRHE.js → chunk-YGCOJNFZ.js} +3 -3
  118. package/{chunk-JQZRSXS5.js → chunk-YGDYYFRX.js} +9 -13
  119. package/{chunk-X3E6EHJW.js → chunk-Z2WZAE4P.js} +128 -150
  120. package/chunk-Z6YTCDU4.js +24 -0
  121. package/{chunk-RRDRQOEC.js → chunk-ZEKUFJLW.js} +81 -66
  122. package/{chunk-EVGU5P4U.js → chunk-ZVOL2MAJ.js} +1 -1
  123. package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-U5OAVAKQ.js} +2 -2
  124. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-S42VMGB6.js} +1 -1
  125. package/{cliLocalAgentRecordReader-H3HYQRRR.js → cliLocalAgentRecordReader-HVZAQCUD.js} +29 -25
  126. package/{commandRegistry-FVYPE2IN.js → commandRegistry-FIXBZJHE.js} +89 -85
  127. package/{contentThunks-GNFPG32S.js → contentThunks-U6OC4R2N.js} +23 -22
  128. package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-U7XSRVJP.js} +1 -1
  129. package/{createAgentAutomationAction-PB4QIFQ4.js → createAgentAutomationAction-IP4LFN3W.js} +23 -22
  130. package/{createDialogAction-EVTOPY7A.js → createDialogAction-IAGQJ3LH.js} +24 -23
  131. package/{createPageAction-2UYF2IDZ.js → createPageAction-AZ3UIFKA.js} +24 -23
  132. package/{dbSlice-XRUZOGSU.js → dbSlice-DKKMJJYY.js} +8 -7
  133. package/{deleteFile-6URDHYRB.js → deleteFile-TQSONMVU.js} +7 -4
  134. package/{dialogCommands-6SZD4TYP.js → dialogCommands-PCDRMBWG.js} +30 -26
  135. package/dialogMessageRecord-OAV77LT7.js +7 -0
  136. package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-O35MWMOS.js} +3 -3
  137. package/{dialogSlice-5EQ2A6LY.js → dialogSlice-QAKYN4DE.js} +22 -21
  138. package/{dialogUsageCommand-W2WCSGKF.js → dialogUsageCommand-2SSLTXKO.js} +2 -2
  139. package/{docCreateCommands-25E6PGN3.js → docCreateCommands-CFQFZOAD.js} +26 -22
  140. package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-5CPNTIIS.js} +27 -23
  141. package/{docReadCommands-JY2E5XEN.js → docReadCommands-XQILYSAJ.js} +26 -22
  142. package/{docStore-OKKIKLT3.js → docStore-GIVRT7TQ.js} +10 -9
  143. package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-VETKSUDD.js} +26 -22
  144. package/{handleSendMessageAction-LNT7SZND.js → handleSendMessageAction-HKIW4ZNO.js} +48 -45
  145. package/{hostCredentialCreate-XUU2CSHI.js → hostCredentialCreate-6VDJFNDO.js} +82 -69
  146. package/index.js +8 -8
  147. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  148. package/{localRuntimeAdapter-IBSTMSX7.js → localRuntimeAdapter-BQ4F5PZV.js} +81 -69
  149. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-WCNA4A3G.js} +4 -2
  150. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-CRNIBOOM.js} +1 -1
  151. package/{machineCommands-HSQHDHOT.js → machineCommands-K6XIGOAD.js} +78 -66
  152. package/{machineWsRunDispatch-L6H7J66T.js → machineWsRunDispatch-4OO7Z6UM.js} +78 -66
  153. package/mcpLocalAuthorizeCommand-ZP6ESAGE.js +106 -0
  154. package/{memberThunks-7Y3OYSJQ.js → memberThunks-PBJPZ2JU.js} +15 -10
  155. package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
  156. package/package.json +1 -1
  157. package/{projectArchive-FQO654Z3.js → projectArchive-G7AOQPRW.js} +24 -23
  158. package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-OPBCAONX.js} +1 -1
  159. package/{providerRegistry-ZI2KORJ7.js → providerRegistry-J2HCVTHE.js} +1 -1
  160. package/{read-TYMBGEXO.js → read-JEGPITEW.js} +6 -5
  161. package/{readDocTool-SKQVHBLO.js → readDocTool-TE3XIU4Y.js} +1 -1
  162. package/{readlineWorkspace-7U272DSA.js → readlineWorkspace-XMPGXR77.js} +2946 -2367
  163. package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-CX3OAH4Y.js} +14 -13
  164. package/{runAgentClientLoop-AF4JQIJ7.js → runAgentClientLoop-HQJPDFGQ.js} +65 -45
  165. package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-GUH2YGMH.js} +3 -3
  166. package/{secretCommands-KZWBZIYS.js → secretCommands-NJXFVHZU.js} +2 -2
  167. package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-CGM67EEQ.js} +11 -10
  168. package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-3ABWPPXR.js} +14 -13
  169. package/{settingThunks-ZRGWVGZD.js → settingThunks-AY76OHYX.js} +176 -57
  170. package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-MDDKPTW3.js} +4 -3
  171. package/{spaceCommands-5VNWMDBE.js → spaceCommands-G63QGYQO.js} +26 -22
  172. package/{streamAgentChatTurn-YSPEFY4K.js → streamAgentChatTurn-E3XH2KFD.js} +127 -85
  173. package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-G6EZRKCQ.js} +12 -11
  174. package/{tableCommands-FTAOCBTX.js → tableCommands-JI75ZHDI.js} +4 -1
  175. package/{toolApiClient-OGQEBQVX.js → toolApiClient-62UUPDUA.js} +3 -5
  176. package/{tools-M35PTIFB.js → tools-7RSX22FT.js} +41 -37
  177. package/{tuiRestart-2IL37YIB.js → tuiRestart-KAAA7TND.js} +2 -2
  178. package/{tuiSummaryLlmCaller-W2QN4VAC.js → tuiSummaryLlmCaller-BVNHMWLR.js} +6 -6
  179. package/{updateCommands-CPATDG6J.js → updateCommands-ASK5XYPH.js} +3 -3
  180. package/{updateDialogTitleAction-IMIRJRQQ.js → updateDialogTitleAction-SEWV252V.js} +23 -22
  181. package/{usageCommand-2BF74MKF.js → usageCommand-JVT5J3DC.js} +2 -2
  182. package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-IZYYUTEW.js} +3 -3
  183. package/webapi-24RZDIIQ.js +2488 -0
  184. package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-BSDIS2J5.js} +2 -2
  185. package/workContext-MM3P5GP5.js +13 -0
  186. package/workContextAccess-UZHDLBUR.js +11 -0
  187. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  188. package/chunk-ZXF6D3I6.js +0 -359
  189. package/{accountResolver-QETKNC7T.js → accountResolver-EK2S4PWF.js} +3 -3
  190. package/{localDialogRead-CCOCVGAP.js → localDialogRead-AV2VKKPG.js} +0 -0
  191. 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-4ZGPHFLE.js";
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-R6Z5S5GA.js";
32
+ } from "./chunk-GXXY2NL3.js";
33
33
  import {
34
34
  asyncThunkCreator,
35
35
  buildCreateSlice,
36
36
  createEntityAdapter,
37
37
  noloDeleteRequest
38
- } from "./chunk-7Z6EW7AH.js";
38
+ } from "./chunk-7TTMMOKH.js";
39
39
  import {
40
40
  fetchFromClientDb,
41
41
  fetchFromServer,
42
+ googleSessionRequestToken,
43
+ googleSessionServer,
42
44
  logger,
43
- normalizeTimeFields
44
- } from "./chunk-4N6G2CKP.js";
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 access = options.getCurrentAccess?.() ?? options;
647
- if (access.actorId !== actorId || !access.token?.trim()) {
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 && !access.servers.some((server) => originOf(server) === 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 access.token;
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 access = options.getCurrentAccess();
668
- return access.actorId === actorId && access.servers.some((server) => originOf(server) === origin);
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 servers = saved ? [saved.authorityServer] : options.servers;
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
- const readServers = planAuthorityReadServers({
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 fetchFromServer(
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) => fetchFromServer(server, dbKey, isLoggedIn ? currentToken : void 0)
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-TYMBGEXO.js");
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-GDZDXPMB.js");
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 executes on \u2014 and writes to \u2014 the **host filesystem**, so it needs an explicit --allow-host-writes confirmation; drop --runtime-key to run isolated instead (docker sandbox by default).\n",
762
- zh: "[nolo] runtimeKey=local \u4F1A\u5728**\u5BBF\u4E3B\u6587\u4EF6\u7CFB\u7EDF**\u4E0A\u6267\u884C\u5E76\u5199\u5165\uFF0C\u5FC5\u987B\u663E\u5F0F\u52A0 --allow-host-writes \u786E\u8BA4\uFF1B\u8981\u9694\u79BB\u6267\u884C\u8BF7\u7701\u7565 --runtime-key\uFF08\u9ED8\u8BA4\u8FDB docker \u6C99\u76D2\uFF09\u3002\n"
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: "\u23F5 approved", zh: "\u23F5 \u5DF2\u6388\u6743" },
2080
- permissionLocalGranted: { en: "\u23F5 local approved", zh: "\u23F5 \u672C\u5730\u6388\u6743" },
2081
- permissionRemoteGranted: { en: "\u23F5 remote approved", zh: "\u23F5 \u8FDC\u7AEF\u6388\u6743" },
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-CMMI3DAT.js";
8
+ } from "./chunk-RM4UMFY4.js";
9
9
  import {
10
10
  DEVICE_LOCAL_OWNER_ID,
11
11
  isDeviceLocalSpaceBody
12
- } from "./chunk-R6Z5S5GA.js";
12
+ } from "./chunk-GXXY2NL3.js";
13
13
  import {
14
14
  selectIdentityUserId
15
15
  } from "./chunk-PXYBUFDB.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveLocalUserId
3
- } from "./chunk-HHFGE2WF.js";
3
+ } from "./chunk-2574ANSV.js";
4
4
  import {
5
5
  resolveNoloHome
6
6
  } from "./chunk-GLKOYSRU.js";