nolo-cli 0.241.0-alpha.1 → 0.242.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-UCWDB72C.js → _executeModel-IZ2MCXHO.js} +67 -67
  3. package/{action-24MZYW2B.js → action-VDEW6WLI.js} +9 -9
  4. package/{addContentAction-HEMCSSHT.js → addContentAction-7YVXHIPQ.js} +14 -14
  5. package/{addDialogAgentAction-SQYDOXHA.js → addDialogAgentAction-BX7B47HF.js} +17 -17
  6. package/{agentDeleteCommand-P7O3ACNJ.js → agentDeleteCommand-N7ELXPLD.js} +90 -90
  7. package/{agentEmailCommands-A5BRSYWK.js → agentEmailCommands-OFS477PV.js} +92 -92
  8. package/{agentListCommands-LDRCOOMO.js → agentListCommands-IQQHJSXP.js} +193 -156
  9. package/{agentMachineCommands-AYL53KJV.js → agentMachineCommands-NS65BEW7.js} +43 -41
  10. package/{agentProviderCommands-N5EA3ED2.js → agentProviderCommands-SS6M6VGY.js} +2 -2
  11. package/{agentRecordCommands-FICBZ57C.js → agentRecordCommands-4VE7CNLC.js} +88 -88
  12. package/{agentRunCommand-CTXQGDUM.js → agentRunCommand-2MUXHKNW.js} +89 -89
  13. package/{agentRunControl-CO6BASZF.js → agentRunControl-55GL6Q3M.js} +7 -5
  14. package/{agentRuntimeLocal-5YN4D5WT.js → agentRuntimeLocal-5DB2P4MU.js} +42 -35
  15. package/{agentSlice-DJ5D4DU4.js → agentSlice-5VTAFG43.js} +14 -14
  16. package/{appDeleteCommands-B4E7N7M2.js → appDeleteCommands-EDKUPHJM.js} +43 -41
  17. package/{appDeployCommands-E4DTXRRM.js → appDeployCommands-JO74GW4L.js} +43 -41
  18. package/{appDeployStatusCommands-FCNHYHZM.js → appDeployStatusCommands-U77ZUHX7.js} +43 -41
  19. package/{appGetCommands-4DXSQHUZ.js → appGetCommands-QCMHBYPX.js} +43 -41
  20. package/{appListCommands-2NN5E4F6.js → appListCommands-ZQJYEXI6.js} +43 -41
  21. package/{authCommand-47DR6GZT.js → authCommand-W4KXRZLI.js} +13 -13
  22. package/{authCommands-ZZ3L5IFM.js → authCommands-6AUYO65N.js} +3 -3
  23. package/{builtinSkillRegistry-AYWYQVA4.js → builtinSkillRegistry-GHE3RD3V.js} +7 -7
  24. package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
  25. package/{chromeOpsCommands-VZWAY2KR.js → chromeOpsCommands-TBPM6MR4.js} +1 -1
  26. package/{chunk-7OTNBI77.js → chunk-247AAJRK.js} +1 -1
  27. package/{chunk-BDERPCJW.js → chunk-2N4UBHUU.js} +2 -2
  28. package/{chunk-3V6JT6WN.js → chunk-2T5BHLID.js} +266 -109
  29. package/{chunk-5TJE4QCL.js → chunk-3OQFXODL.js} +2 -2
  30. package/{chunk-UAOFSUG7.js → chunk-3ORFJP2Z.js} +1 -1
  31. package/{chunk-6XBOPKUH.js → chunk-3UNAGTBW.js} +14 -14
  32. package/{chunk-ZTLTDUV6.js → chunk-4F7SWSWO.js} +4 -4
  33. package/{chunk-LT3DMEIB.js → chunk-4UK6UBXF.js} +1 -1
  34. package/{chunk-H6CHPU6M.js → chunk-5GRWWUB4.js} +3 -3
  35. package/{chunk-TTEBPPUV.js → chunk-6326DRQY.js} +1 -1
  36. package/{chunk-TXFYIWAW.js → chunk-6MQWGA5F.js} +10 -10
  37. package/{chunk-TE2XH4KH.js → chunk-6MX6S6TE.js} +3 -3
  38. package/{chunk-QGMIUVBT.js → chunk-6S6CZUXK.js} +19 -19
  39. package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
  40. package/{chunk-6BGJHJRN.js → chunk-6XLWUNZB.js} +27 -27
  41. package/{chunk-BIJTI5SX.js → chunk-7AWKDRXG.js} +2 -2
  42. package/{chunk-YMCSR7PA.js → chunk-7GTXPS3D.js} +8 -8
  43. package/{chunk-G6OPRPXH.js → chunk-7HUHOCIY.js} +35 -29
  44. package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
  45. package/{chunk-C3GOEQJF.js → chunk-BH7CEVOH.js} +1 -1
  46. package/{chunk-B72AFRR2.js → chunk-C4KX626C.js} +4 -4
  47. package/{chunk-EW37CXCQ.js → chunk-CHYYSFFM.js} +6 -6
  48. package/{chunk-ZQUCJBS4.js → chunk-CJTB3OYB.js} +2 -2
  49. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  50. package/{chunk-MM73SP4K.js → chunk-DOK7GDRU.js} +1 -1
  51. package/{chunk-Y5RN44VH.js → chunk-DPAIQLAL.js} +16 -16
  52. package/{chunk-LMZRXDWG.js → chunk-EKXPHL7M.js} +3 -3
  53. package/{chunk-NL7J2J5Z.js → chunk-ENYTIRIO.js} +1 -1
  54. package/{chunk-GCVFX6ZL.js → chunk-ER3P6MBT.js} +3 -3
  55. package/{chunk-NQQL2DKF.js → chunk-F4MCAOWN.js} +1 -1
  56. package/{chunk-7NIBQ4HY.js → chunk-FDZ2GBWO.js} +30 -2
  57. package/{chunk-2XMKW2OY.js → chunk-GES5GIAU.js} +8 -8
  58. package/{chunk-25OCZXSX.js → chunk-HQVNO7FH.js} +21 -21
  59. package/{chunk-DVYAFH2Q.js → chunk-HSWEFHFS.js} +1 -1
  60. package/{chunk-FSIEHQNH.js → chunk-IIG3TT73.js} +42 -5
  61. package/{chunk-FPMPWNVQ.js → chunk-IZJFTY4R.js} +3 -3
  62. package/{chunk-QES2NCVM.js → chunk-J25ESVUW.js} +9 -9
  63. package/{chunk-ZBQ5UGYY.js → chunk-J2XZZXIH.js} +3 -3
  64. package/{chunk-NBB2EBQD.js → chunk-JVJ53XCH.js} +1 -1
  65. package/{chunk-OATIWAKN.js → chunk-KC2QVCI7.js} +1 -1
  66. package/{chunk-3NFWMSTA.js → chunk-KF2DWSAH.js} +5 -5
  67. package/{chunk-KGIIZXPL.js → chunk-KLD7K5FD.js} +7 -7
  68. package/{chunk-FCAMGBLY.js → chunk-KMW5CRRM.js} +464 -276
  69. package/{chunk-7U2TFUWW.js → chunk-LZOOUQAZ.js} +4 -4
  70. package/{chunk-OYHJ4TW7.js → chunk-M5EA44QU.js} +2 -2
  71. package/{chunk-WHO3LYDW.js → chunk-MEDPR36J.js} +2 -2
  72. package/{chunk-6D25V6CB.js → chunk-MFXJY44K.js} +4 -4
  73. package/{chunk-VS276URX.js → chunk-NEG5LYK5.js} +1 -1
  74. package/{chunk-FXX6VFMV.js → chunk-ODGSLWLO.js} +63 -63
  75. package/{chunk-YFRJAE3R.js → chunk-OGZE6BZG.js} +12 -4
  76. package/{chunk-F3FQPVHE.js → chunk-OKPC4QNX.js} +2 -2
  77. package/{chunk-DWWUVRB5.js → chunk-ONFFUQYM.js} +1 -1
  78. package/{chunk-IPRPYKBP.js → chunk-P244EH4W.js} +2 -2
  79. package/chunk-P27E22MA.js +203 -0
  80. package/{chunk-24GVXSWK.js → chunk-PK7VT4ZU.js} +2 -2
  81. package/{chunk-TFGGNRT6.js → chunk-QLUYDJST.js} +1 -1
  82. package/{chunk-NWWQY2J5.js → chunk-QUJKDFZW.js} +7 -7
  83. package/{chunk-IUXBKS5L.js → chunk-QXUVCIPB.js} +9 -9
  84. package/{chunk-DLTMAXLF.js → chunk-QYNABNNQ.js} +6 -6
  85. package/{chunk-EIFSCI4C.js → chunk-RGUWOMXU.js} +263 -100
  86. package/{chunk-EBKHA63G.js → chunk-RIMFTQMC.js} +178 -46
  87. package/{chunk-7Q7MKJZN.js → chunk-SBRJOYND.js} +224 -116
  88. package/{chunk-ZT3DYK5T.js → chunk-SBRSXY67.js} +4 -4
  89. package/{chunk-UKSKCDBG.js → chunk-T3WSFTBS.js} +1 -1
  90. package/{chunk-VP3BINY7.js → chunk-TOK555CQ.js} +31 -1
  91. package/{chunk-LYDEFPQP.js → chunk-UDT4SI37.js} +1 -1
  92. package/{chunk-T444ENEC.js → chunk-UQXOORR3.js} +5 -5
  93. package/{chunk-CT6GT2BG.js → chunk-UR7555FE.js} +13 -13
  94. package/{chunk-X37RQEA3.js → chunk-UWOCASVL.js} +5 -5
  95. package/{chunk-DIBQXNGW.js → chunk-V2V5Q6DU.js} +2 -2
  96. package/{chunk-LCQJH7KN.js → chunk-VCU5GV42.js} +1 -1
  97. package/{chunk-MDVP5TLI.js → chunk-VMWY7TUA.js} +1 -1
  98. package/{chunk-HNWZJI4N.js → chunk-VNALJT32.js} +1 -1
  99. package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
  100. package/{chunk-X7IA2B7R.js → chunk-WBSJAIZP.js} +7 -3
  101. package/{chunk-BWW6WRX6.js → chunk-WVOZ35E4.js} +6 -6
  102. package/{chunk-XAFOLWLU.js → chunk-XDNXKFWF.js} +4 -4
  103. package/{chunk-KOIDLCAQ.js → chunk-XLN2GD6Z.js} +4 -4
  104. package/{chunk-TXQVH72L.js → chunk-Y5EBOURK.js} +3 -3
  105. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  106. package/{chunk-CZLSTOVM.js → chunk-YTEY27GN.js} +2 -2
  107. package/{chunk-C646JEUV.js → chunk-ZCVBIIUE.js} +4 -4
  108. package/{chunk-UAHUJ4HH.js → chunk-ZCZLTJEW.js} +10 -37
  109. package/{cliAgentConfigHelpers-RFR7ZCSK.js → cliAgentConfigHelpers-6OFDHJFT.js} +4 -4
  110. package/{cliLocalAgentRecordReader-AJ4UKHKT.js → cliLocalAgentRecordReader-FHIMCBUK.js} +44 -38
  111. package/{commandRegistry-IHWZVV4G.js → commandRegistry-OKIWAJIS.js} +99 -91
  112. package/{contentThunks-YQRCBDKF.js → contentThunks-VF2DCU46.js} +29 -29
  113. package/{cooldownCommands-W67DE765.js → cooldownCommands-QL6DWGVU.js} +1 -1
  114. package/{createAgentAutomationAction-ERSDNR4R.js → createAgentAutomationAction-BGET7Q6K.js} +30 -30
  115. package/{createDialogAction-QXC7JZPE.js → createDialogAction-XYDQZETK.js} +30 -30
  116. package/{createPageAction-RLZ7776F.js → createPageAction-74S5RO7U.js} +34 -34
  117. package/{dbSlice-7M2ESEUO.js → dbSlice-FI7VNDR5.js} +13 -13
  118. package/{deleteFile-WO6WSSNK.js → deleteFile-GD62MPZW.js} +7 -7
  119. package/{dialogCommands-UIRO4QNN.js → dialogCommands-Y6DHZUAM.js} +45 -44
  120. package/{dialogNotifyCommand-VDUFYBZV.js → dialogNotifyCommand-MKXL4NGL.js} +7 -7
  121. package/{dialogSlice-A4U3C76D.js → dialogSlice-XAUKSWZ4.js} +28 -28
  122. package/{docCreateCommands-MHPYTJWR.js → docCreateCommands-PHDFOQBM.js} +43 -41
  123. package/{docDeleteCommands-VYULMBAQ.js → docDeleteCommands-OSHJM67Y.js} +44 -42
  124. package/{docReadCommands-FV3GGZ7V.js → docReadCommands-E6QYCFMS.js} +43 -41
  125. package/{docStore-AWWI72FA.js → docStore-ZZT2BEBU.js} +15 -15
  126. package/{docUpdateCommands-JNS3HX7F.js → docUpdateCommands-DHIOPK2C.js} +43 -41
  127. package/fetchMessages-TQEUZD7H.js +2 -2
  128. package/{getPricing-U5AR7ZHS.js → getPricing-RNRITFOP.js} +2 -2
  129. package/{handleSendMessageAction-WDJOUDNV.js → handleSendMessageAction-ARUU6CNF.js} +60 -60
  130. package/{hostCredentialCreate-H3FF2SAO.js → hostCredentialCreate-SNQT73H4.js} +88 -88
  131. package/index.js +8 -8
  132. package/keys-RWF7UCB4.js +1 -1
  133. package/{localRuntimeAdapter-JAQQXZJP.js → localRuntimeAdapter-MHI6Y2IZ.js} +96 -96
  134. package/{machineCommands-WYOFNB5I.js → machineCommands-3O6Y27R4.js} +216 -307
  135. package/{machineWsRunDispatch-Y7UIAZNM.js → machineWsRunDispatch-5PFLR5XC.js} +87 -87
  136. package/{mcpLocalAuthorizeCommand-SCYEFLRK.js → mcpLocalAuthorizeCommand-BQCQ2KRJ.js} +10 -10
  137. package/{memberThunks-DIITWU4M.js → memberThunks-TU6A6OBV.js} +17 -17
  138. package/package.json +1 -1
  139. package/{projectArchive-IZJXBW5N.js → projectArchive-X2EVXU3N.js} +34 -34
  140. package/{providerPresetApply-2QWXPJXZ.js → providerPresetApply-HUWNV2NI.js} +3 -3
  141. package/{providerRegistry-W4LCKK6V.js → providerRegistry-7FWKDKZJ.js} +3 -3
  142. package/{read-OBLJNMA2.js → read-QAHEQID5.js} +7 -7
  143. package/{readDocTool-QQZ4DAER.js → readDocTool-KG5DP6EM.js} +1 -1
  144. package/{readlineWorkspace-WF3SWZGR.js → readlineWorkspace-SO3APHVP.js} +482 -374
  145. package/{removeDialogAgentAction-HC3SOY3G.js → removeDialogAgentAction-QZCCVK2G.js} +19 -19
  146. package/{runAgentClientLoop-Z7V6TA3O.js → runAgentClientLoop-FLHHCOVH.js} +67 -67
  147. package/{secretCommands-STRAX275.js → secretCommands-36BCE3UE.js} +2 -2
  148. package/{setDialogExtraReferencesAction-DDZUQPY6.js → setDialogExtraReferencesAction-PDPTYSEW.js} +15 -15
  149. package/{setPrimaryDialogAgentAction-EB67OMAJ.js → setPrimaryDialogAgentAction-DOUIPR66.js} +19 -19
  150. package/{settingThunks-TN6GFASU.js → settingThunks-MHGGP6UE.js} +23 -23
  151. package/{spaceCommands-HBYQUVJI.js → spaceCommands-JH7UYE3K.js} +46 -44
  152. package/{streamAgentChatTurn-CM7QQXOS.js → streamAgentChatTurn-VDDA2TX6.js} +89 -89
  153. package/{switchDialogAgentAction-XY5TKQQE.js → switchDialogAgentAction-7USK3DAP.js} +17 -17
  154. package/{tableCommands-MXFL3JIT.js → tableCommands-UONBFC7L.js} +5 -5
  155. package/{tools-AT6H73LD.js → tools-MIOCXKMG.js} +52 -52
  156. package/{tuiRestart-272SAYSK.js → tuiRestart-ET3QISZ5.js} +6 -6
  157. package/{tuiSummaryLlmCaller-K2OVRVHG.js → tuiSummaryLlmCaller-MSINBP3M.js} +10 -10
  158. package/{updateCommands-O3BOVVVN.js → updateCommands-5OYND6EF.js} +3 -3
  159. package/{updateDialogTitleAction-PGY4UPLH.js → updateDialogTitleAction-2L4CC4YO.js} +30 -30
  160. package/{usageCommand-SCF3ROV2.js → usageCommand-JTKDAG6I.js} +2 -2
  161. package/{usageRebuildCommand-K5WPIBA5.js → usageRebuildCommand-4TFZCKXM.js} +3 -3
  162. package/{windowsSelfUpdate-WJDUZLEO.js → windowsSelfUpdate-HIYNL3VR.js} +2 -2
  163. package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-ZCSQCHG3.js} +2 -2
  164. package/chunk-TUSTONB3.js +0 -81
  165. package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
  166. package/{chunk-6X3CS6NJ.js → chunk-RH44TIHX.js} +6 -6
  167. package/{chunk-VMJVAJ6W.js → chunk-TB5KTLNB.js} +3 -3
  168. package/{chunk-LN4ZVSO7.js → chunk-Y22P6ASC.js} +5 -5
  169. package/{chunk-DGUUOHBF.js → chunk-Y3DOUQQQ.js} +3 -3
  170. package/{dialogUsageCommand-SEC6UZWM.js → dialogUsageCommand-BZPKR3DW.js} +3 -3
  171. package/{runtimeDoctorCommands-KX6YLPWV.js → runtimeDoctorCommands-DN3I52C6.js} +2 -2
@@ -1,3 +1,9 @@
1
+ import {
2
+ markdownToSlate
3
+ } from "./chunk-VIYVRPMJ.js";
4
+ import {
5
+ buildSkillSummaryMarker
6
+ } from "./chunk-VF4K2QE6.js";
1
7
  import {
2
8
  createEmptyParagraph,
3
9
  splitSlateTitleAndBody
@@ -5,31 +11,25 @@ import {
5
11
  import {
6
12
  slateToRenderMarkdown
7
13
  } from "./chunk-63W5N6P3.js";
8
- import {
9
- buildSkillSummaryMarker
10
- } from "./chunk-VF4K2QE6.js";
11
- import {
12
- markdownToSlate
13
- } from "./chunk-VIYVRPMJ.js";
14
14
  import {
15
15
  addContentToSpace,
16
16
  resolveCreationSpaceId
17
- } from "./chunk-6BGJHJRN.js";
18
- import {
19
- getCurrentSpaceId
20
- } from "./chunk-C646JEUV.js";
17
+ } from "./chunk-6XLWUNZB.js";
21
18
  import {
22
19
  runtime_default
23
- } from "./chunk-FXX6VFMV.js";
20
+ } from "./chunk-ODGSLWLO.js";
21
+ import {
22
+ getCurrentSpaceId
23
+ } from "./chunk-ZCVBIIUE.js";
24
24
  import {
25
25
  write
26
- } from "./chunk-TXFYIWAW.js";
26
+ } from "./chunk-6MQWGA5F.js";
27
27
  import {
28
28
  selectIdentityUserId
29
29
  } from "./chunk-PXYBUFDB.js";
30
30
  import {
31
31
  parseSkillDocProtocol
32
- } from "./chunk-W6RFEDN4.js";
32
+ } from "./chunk-AETZ7AD6.js";
33
33
  import {
34
34
  createPageKey
35
35
  } from "./chunk-SYTHYBMI.js";
@@ -7,7 +7,7 @@ import {
7
7
  scheduleExistingRecordReplication,
8
8
  shouldReplaceLocalWithRemoteRecord,
9
9
  shouldReplicateLocalRecord
10
- } from "./chunk-F3FQPVHE.js";
10
+ } from "./chunk-OKPC4QNX.js";
11
11
  import {
12
12
  fetchFromClientDb,
13
13
  fetchFromServer,
@@ -16,13 +16,13 @@ import {
16
16
  isReadTimeoutError,
17
17
  logger,
18
18
  scopeGoogleSessionServers
19
- } from "./chunk-C3GOEQJF.js";
20
- import {
21
- shouldReplaceWithNextRecord
22
- } from "./chunk-BV3FLP2L.js";
19
+ } from "./chunk-BH7CEVOH.js";
23
20
  import {
24
21
  isAbortError
25
22
  } from "./chunk-7DPNBQSV.js";
23
+ import {
24
+ shouldReplaceWithNextRecord
25
+ } from "./chunk-BV3FLP2L.js";
26
26
  import {
27
27
  isBuiltinPlatformAgentKey,
28
28
  isPublicBuiltinPlatformAgentKey
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getRuntimeServerContext,
3
3
  scheduleDeleteReplication
4
- } from "./chunk-F3FQPVHE.js";
4
+ } from "./chunk-OKPC4QNX.js";
5
5
  import {
6
6
  fetchFromClientDb
7
- } from "./chunk-C3GOEQJF.js";
7
+ } from "./chunk-BH7CEVOH.js";
8
8
  import {
9
9
  selectIdentityToken
10
10
  } from "./chunk-PXYBUFDB.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildAgentRuntimeAgentLookupKeys,
3
3
  shouldFetchAgentRuntimeRecordRemotely
4
- } from "./chunk-IUXBKS5L.js";
4
+ } from "./chunk-QXUVCIPB.js";
5
5
 
6
6
  // packages/cli/client/localAgentRecords.ts
7
7
  var buildLocalAgentLookupKeys = buildAgentRuntimeAgentLookupKeys;
@@ -2,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-QES2NCVM.js";
5
+ } from "./chunk-J25ESVUW.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-GBWGPTA7.js";
@@ -11,7 +11,7 @@ import {
11
11
  parseMcpListToolsInput,
12
12
  sameMcpPlacement,
13
13
  toMcpConnectionSummary
14
- } from "./chunk-7NIBQ4HY.js";
14
+ } from "./chunk-FDZ2GBWO.js";
15
15
  import {
16
16
  isLevelNotFoundError
17
17
  } from "./chunk-OW765XBU.js";
@@ -1,6 +1,7 @@
1
1
  import {
2
+ ALWAYS_EXCLUDED_GLOBS,
2
3
  buildExecutionTicket
3
- } from "./chunk-PWTNI4N7.js";
4
+ } from "./chunk-ANUP75N2.js";
4
5
 
5
6
  // packages/agent-runtime/docker/executionTicket.ts
6
7
  function buildPrimaryExecutionTicket(runGrant, executionClass = "session") {
@@ -35,6 +36,126 @@ var isDestructiveShellCommand = (params) => {
35
36
 
36
37
  // packages/agent-runtime/docker/sandboxWorkspaceHelper.ts
37
38
  import * as path from "node:path";
39
+
40
+ // packages/agent-runtime/docker/sandboxSearchKernel.generated.ts
41
+ var SANDBOX_SEARCH_KERNEL_JS = '// packages/agent-runtime/fileTextSearch.ts\nimport { readdir, readFile as readFile2, stat as stat2 } from "node:fs/promises";\nimport { basename, relative, resolve as resolve2 } from "node:path";\nimport { spawn as spawnChildProcess } from "node:child_process";\n\n// packages/agent-runtime/runtimeCompat.ts\nimport { existsSync, readdirSync, statSync } from "node:fs";\nimport { join } from "node:path";\nvar IS_WINDOWS = process.platform === "win32";\nfunction isExecutableFile(candidate) {\n if (!existsSync(candidate))\n return false;\n try {\n return statSync(candidate).isFile();\n } catch {\n return false;\n }\n}\nfunction resolveExecutableOnPath(name) {\n if (IS_WINDOWS && !/\\.[a-z]+$/i.test(name)) {\n const exts = (process.env.PATHEXT || ".EXE;.CMD;.BAT").split(";").filter(Boolean);\n for (const ext of exts) {\n const found = resolveExecutableOnPath(name + ext);\n if (found)\n return found;\n }\n return null;\n }\n const pathEnv = process.env.PATH ?? "";\n const sep = pathEnv.includes(";") && IS_WINDOWS ? ";" : ":";\n const pathDirs = pathEnv.split(sep).filter(Boolean);\n const fallbackDirs = IS_WINDOWS ? [] : [\n "/opt/homebrew/bin",\n "/usr/local/bin",\n "/usr/bin",\n "/bin",\n `${process.env.HOME ?? ""}/.local/bin`\n ].filter(Boolean);\n for (const dir of [...pathDirs, ...fallbackDirs]) {\n const candidate = join(dir, name);\n if (isExecutableFile(candidate))\n return candidate;\n }\n return null;\n}\n\n// packages/agent-runtime/gitignore.ts\nimport { readFile, stat } from "node:fs/promises";\nimport { resolve } from "node:path";\nfunction isIgnorableFsError(err) {\n if (err && typeof err === "object" && "code" in err) {\n const code = err.code;\n return code === "ENOENT" || code === "ENOTDIR";\n }\n return false;\n}\nasync function readRootGitignorePatterns(workspaceRoot) {\n let content;\n try {\n content = await readFile(resolve(workspaceRoot, ".gitignore"), "utf8");\n } catch (err) {\n if (isIgnorableFsError(err))\n return [];\n throw err;\n }\n return content.split(/\\r?\\n/).map((line) => line.trim()).filter((line) => line && !line.startsWith("#") && !line.startsWith("!")).flatMap((line) => {\n const unanchored = line.replace(/^\\//, "");\n if (unanchored.endsWith("/"))\n return [`${unanchored}**`];\n if (unanchored.includes("**"))\n return [unanchored];\n return [unanchored, `${unanchored}/**`];\n });\n}\n\n// packages/agent-runtime/fileTextSearch.ts\nvar normalizePath = (value) => value.replaceAll("\\\\", "/");\nvar pathFor = (root, file, absolute = false) => absolute ? normalizePath(file) : normalizePath(relative(root, file) || basename(file));\nvar COMMAND_LIMIT_HEADROOM = 1;\nvar MAX_SEARCH_FILE_BYTES = 8 * 1024 * 1024;\nvar MAX_SEARCH_LINE_CHARS = 2000;\nasync function runCommand(binary, args, cwd, maxResults) {\n const recordLimit = maxResults === undefined ? 0 : Math.max(0, maxResults) + COMMAND_LIMIT_HEADROOM;\n return await new Promise((done) => {\n let stdout = "", stderr = "", recordCount = 0, stopped = false;\n try {\n const child = spawnChildProcess(binary, args, { cwd, stdio: ["ignore", "pipe", "pipe"], windowsHide: true });\n child.stdout.on("data", (chunk) => {\n const room = MAX_SEARCH_FILE_BYTES - stdout.length;\n stdout += chunk.toString().slice(0, Math.max(0, room));\n if (stdout.length >= MAX_SEARCH_FILE_BYTES && !stopped) {\n stopped = true;\n child.kill();\n }\n recordCount = parseMatches(cwd, stdout).length;\n if (recordLimit > 0 && recordCount >= recordLimit && !stopped) {\n stopped = true;\n child.kill();\n }\n });\n child.stderr.on("data", (chunk) => {\n stderr += chunk.toString();\n });\n child.on("error", () => done({ stdout, stderr, outcome: { kind: "spawn-failed" } }));\n child.on("close", (exitCode) => done({ stdout, stderr, outcome: stopped ? { kind: "stopped-by-limit" } : { kind: "completed", exitCode } }));\n } catch {\n done({ stdout, stderr, outcome: { kind: "spawn-failed" } });\n }\n });\n}\nfunction extractGrepExcludeDir(pattern) {\n const p = pattern.replaceAll("\\\\", "/");\n if (!p)\n return null;\n if (!/\\/(\\*{1,2})?$/.test(p))\n return null;\n const clean = p.replace(/\\/(\\*{1,2})?$/, "");\n if (!clean || clean.includes("/") || /[*?{}[\\]]/.test(clean))\n return null;\n return clean;\n}\nfunction isGrepExpressibleExclude(pattern) {\n return extractGrepExcludeDir(pattern) !== null;\n}\nfunction commandArgs(o, binary, target) {\n const args = binary === "rg" ? ["--line-number", "--no-heading", "--color", "never", "--null"] : ["-RIn", "--binary-files=without-match", "--null"];\n if (binary === "rg")\n args.push("--no-require-git", "--max-columns", String(MAX_SEARCH_LINE_CHARS), "--max-columns-preview");\n if (o.regex !== true)\n args.push(binary === "rg" ? "--fixed-strings" : "-F");\n else if (binary === "grep")\n args.push("-E");\n if (o.caseSensitive === false)\n args.push("-i");\n if (binary === "rg") {\n if (o.includeIgnored)\n args.push("--no-ignore");\n for (const x of o.exclude ?? [])\n args.push("--glob", `!${x}`);\n if (o.include)\n args.push("--type-add", `noloSearch:${o.include}`, "--type", "noloSearch");\n } else {\n for (const x of o.exclude ?? []) {\n const clean = extractGrepExcludeDir(x);\n if (clean)\n args.push("--exclude-dir", clean);\n }\n if (o.include)\n args.push("--include", o.include);\n }\n args.push("--", o.query, target);\n return args;\n}\nfunction parseMatches(root, output) {\n const records = [];\n const pattern = /(?:^|\\n)([^\\0\\n]+)\\0(\\d+):(.*?)(?=\\n[^\\0\\n]+\\0|$)/gs;\n for (const match of output.matchAll(pattern)) {\n records.push({ file: resolve2(root, match[1] ?? ""), line: Number(match[2]), text: (match[3] ?? "").replace(/\\n$/, "") });\n }\n return records;\n}\nasync function decorate(root, raw, context, absolute = false) {\n const out = [];\n for (const x of raw) {\n let lines = [];\n if (context > 0) {\n try {\n if ((await stat2(x.file)).size <= MAX_SEARCH_FILE_BYTES) {\n lines = (await readFile2(x.file, "utf8")).split(/\\r\\n|\\r|\\n/);\n }\n } catch {}\n }\n const i = x.line - 1;\n out.push({\n path: pathFor(root, x.file, absolute),\n line: x.line,\n text: (lines[i] ?? x.text).slice(0, MAX_SEARCH_LINE_CHARS),\n before: lines.slice(Math.max(0, i - context), i).map((line) => line.slice(0, MAX_SEARCH_LINE_CHARS)),\n after: lines.slice(i + 1, i + context + 1).map((line) => line.slice(0, MAX_SEARCH_LINE_CHARS))\n });\n }\n return out;\n}\nfunction globMatch(pattern, value) {\n const p = normalizePath(pattern).replace(/^!/, "");\n const brace = /\\{([^{}]+)\\}/.exec(p);\n if (brace)\n return brace[1].split(",").some((part) => globMatch(p.slice(0, brace.index) + part + p.slice(brace.index + brace[0].length), value));\n let source = "";\n for (let i = 0;i < p.length; i++) {\n const c = p[i];\n if (c === "*" && p[i + 1] === "*") {\n i++;\n if (p[i + 1] === "/") {\n i++;\n source += "(?:.*/)?";\n } else\n source += ".*";\n } else if (c === "*")\n source += "[^/]*";\n else if (c === "?")\n source += "[^/]";\n else\n source += c.replace(/[.+^${}()|[\\]\\\\]/g, "\\\\$&");\n }\n const r = new RegExp(`^${source}$`);\n return r.test(value) || r.test(basename(value));\n}\nvar defaultReadTextFile = (filePath) => readFile2(filePath, "utf8").catch(() => "");\nasync function jsSearch(o, targetPath) {\n const max = o.maxResults ?? Number.MAX_SAFE_INTEGER;\n const excludes = o.exclude ?? [];\n const readText = o.readTextFile ?? defaultReadTextFile;\n const files = [];\n const targetStat = await stat2(targetPath).catch(() => null);\n if (!targetStat)\n return { matches: [], totalMatches: 0, truncated: false, engine: "js" };\n const ignorePatterns = o.includeIgnored ? [] : await readRootGitignorePatterns(o.root);\n const isIgnored = (rel) => ignorePatterns.some((pattern) => globMatch(pattern, rel));\n const isSearchableFile = (filePath) => {\n const rel = pathFor(o.root, filePath);\n return !excludes.some((pattern) => globMatch(pattern, rel)) && !isIgnored(rel) && (!o.include || globMatch(o.include, rel));\n };\n if (targetStat.isFile()) {\n if (isSearchableFile(targetPath))\n files.push(targetPath);\n } else {\n const walk = async (dir) => {\n for (const e of await readdir(dir, { withFileTypes: true })) {\n const f = resolve2(dir, e.name), rel = pathFor(o.root, f);\n if (e.isDirectory()) {\n if (!excludes.some((p) => globMatch(p, rel)))\n await walk(f);\n } else if (e.isFile() && !excludes.some((p) => globMatch(p, rel)) && !isIgnored(rel) && (!o.include || globMatch(o.include, rel))) {\n files.push(f);\n }\n }\n };\n await walk(targetPath);\n }\n const matcher = o.regex ? new RegExp(o.query, o.caseSensitive === false ? "i" : "") : null;\n const needle = o.caseSensitive === false ? o.query.toLowerCase() : o.query;\n const out = [], context = o.contextLines ?? 0;\n for (const file of files) {\n const info = await stat2(file).catch(() => null);\n if (!info || info.size > MAX_SEARCH_FILE_BYTES)\n continue;\n const text = await readText(file);\n if (!text || text.includes("\\x00"))\n continue;\n const lines = text.split(/\\r\\n|\\r|\\n/);\n for (let i = 0;i < lines.length; i++) {\n const line = lines[i] ?? "";\n const hit = matcher ? matcher.test(line) : o.caseSensitive === false ? line.toLowerCase().includes(needle) : line.includes(needle);\n if (!hit)\n continue;\n if (out.length >= max)\n return { matches: out, totalMatches: max, truncated: true, engine: "js" };\n out.push({ path: pathFor(o.root, file, o.absolutePaths === true), line: i + 1, text: line.slice(0, MAX_SEARCH_LINE_CHARS), before: lines.slice(Math.max(0, i - context), i).map((line) => line.slice(0, MAX_SEARCH_LINE_CHARS)), after: lines.slice(i + 1, i + context + 1).map((line) => line.slice(0, MAX_SEARCH_LINE_CHARS)) });\n }\n }\n return { matches: out, totalMatches: out.length, truncated: false, engine: "js" };\n}\nasync function canGrepFulfillOptions(o) {\n if (!o.includeIgnored) {\n const gitignorePatterns = await readRootGitignorePatterns(o.root);\n if (gitignorePatterns.length > 0)\n return false;\n }\n if (o.include) {\n if (o.include.includes("/") || o.include.includes("\\\\") || o.include.includes("**") || /[{}[\\]]/.test(o.include)) {\n return false;\n }\n }\n if (o.exclude && o.exclude.length > 0) {\n for (const pattern of o.exclude) {\n if (!isGrepExpressibleExclude(pattern))\n return false;\n }\n }\n return true;\n}\nvar COMMAND_ENGINES = [\n { engine: "ripgrep", binaryOption: "resolveRipgrepBinary", binaryName: "rg", argsKey: "rg" },\n { engine: "grep", binaryOption: "resolveGrepBinary", binaryName: "grep", argsKey: "grep" }\n];\nasync function searchFileTextMatches(o) {\n const targetPath = resolve2(o.root, o.target || ".");\n const targetStat = await stat2(targetPath).catch(() => null);\n if (!targetStat)\n return { matches: [], totalMatches: 0, truncated: false, engine: "js" };\n if (targetStat.isFile())\n return jsSearch(o, targetPath);\n const run = o.runCommand ?? runCommand, max = o.maxResults;\n for (const entry of COMMAND_ENGINES) {\n if (entry.engine === "ripgrep" && o.include && /[/\\\\]/.test(o.include))\n continue;\n if (entry.engine === "grep" && !await canGrepFulfillOptions(o))\n continue;\n const injectedResolver = o[entry.binaryOption];\n const binary = injectedResolver ? injectedResolver() : resolveExecutableOnPath(entry.binaryName);\n if (!binary)\n continue;\n const result = await run(binary, commandArgs(o, entry.argsKey, o.target || "."), o.root, max);\n const raw = parseMatches(o.root, result.stdout);\n const hardFailed = result.outcome.kind === "spawn-failed" || result.outcome.kind === "completed" && result.outcome.exitCode !== 0 && result.outcome.exitCode !== 1;\n if (hardFailed)\n continue;\n const truncated = raw.length > (max ?? Number.MAX_SAFE_INTEGER);\n const matches = await decorate(o.root, raw.slice(0, max), o.contextLines ?? 0, o.absolutePaths === true);\n return {\n matches,\n totalMatches: truncated ? matches.length : raw.length,\n truncated,\n engine: entry.engine\n };\n }\n return jsSearch(o, targetPath);\n}\nexport {\n canGrepFulfillOptions,\n extractGrepExcludeDir,\n isGrepExpressibleExclude,\n searchFileTextMatches\n};\n';
42
+ var SANDBOX_SCRUBBER_JS = `// packages/agent-runtime/secretScrubber.ts
43
+ var SECRET_PATTERNS = [
44
+ {
45
+ kind: "PRIVATE_KEY",
46
+ placeholder: "[REDACTED:PRIVATE_KEY]",
47
+ regex: /-----BEGIN (?:[A-Z0-9 ]+)?PRIVATE KEY-----[\\s\\S]+?-----END (?:[A-Z0-9 ]+)?PRIVATE KEY-----/g
48
+ },
49
+ {
50
+ kind: "ANTHROPIC_KEY",
51
+ placeholder: "[REDACTED:ANTHROPIC_KEY]",
52
+ regex: /\\bsk-ant-[a-zA-Z0-9_\\-]{20,}\\b/g
53
+ },
54
+ {
55
+ kind: "API_KEY",
56
+ placeholder: "[REDACTED:API_KEY]",
57
+ regex: /\\bsk-[a-zA-Z0-9_\\-]{24,}\\b/g
58
+ },
59
+ {
60
+ kind: "BIGMODEL_KEY",
61
+ placeholder: "[REDACTED:BIGMODEL_KEY]",
62
+ regex: /\\b[0-9a-fA-F]{32}\\.[A-Za-z0-9]{16}\\b/g
63
+ },
64
+ {
65
+ kind: "GITHUB_TOKEN",
66
+ placeholder: "[REDACTED:GITHUB_TOKEN]",
67
+ regex: /\\b(?:gh[pousr]_[a-zA-Z0-9]{30,}|github_pat_[a-zA-Z0-9_]{40,})\\b/g
68
+ },
69
+ {
70
+ kind: "BEARER_TOKEN",
71
+ placeholder: "Bearer [REDACTED:BEARER_TOKEN]",
72
+ regex: /\\bBearer\\s+[a-zA-Z0-9_\\-\\.]{25,}\\b/gi
73
+ },
74
+ {
75
+ kind: "PASSWORD",
76
+ placeholder: "$1=[REDACTED:PASSWORD]",
77
+ regex: /\\b((?:DB_|DATABASE_|ADMIN_|ROOT_|MYSQL_|POSTGRES_)?(?:PASSWORD|PASSWD|SECRET_KEY))\\s*=\\s*['"]?([^\\s'"]{4,})['"]?/gi
78
+ }
79
+ ];
80
+ var QUICK_PROBE_SUBSTRINGS = [
81
+ "sk-",
82
+ "ghp_",
83
+ "gho_",
84
+ "ghu_",
85
+ "ghs_",
86
+ "ghr_",
87
+ "github_pat_",
88
+ "PRIVATE KEY",
89
+ "Bearer ",
90
+ "bearer ",
91
+ "PASSWORD",
92
+ "password",
93
+ "PASSWD",
94
+ "SECRET_KEY"
95
+ ];
96
+ var UNPREFIXED_PROBE_REGEX = /\\b[0-9a-fA-F]{32}\\.[A-Za-z0-9]{16}\\b/;
97
+ function hasPotentialSecrets(text) {
98
+ if (typeof text !== "string" || text.length === 0)
99
+ return false;
100
+ if (QUICK_PROBE_SUBSTRINGS.some((probe) => text.includes(probe)))
101
+ return true;
102
+ return UNPREFIXED_PROBE_REGEX.test(text);
103
+ }
104
+ function scrubSecrets(text) {
105
+ if (typeof text !== "string" || text.length === 0) {
106
+ return { cleaned: text, redactedCount: 0, matchedKinds: [] };
107
+ }
108
+ if (!hasPotentialSecrets(text)) {
109
+ return { cleaned: text, redactedCount: 0, matchedKinds: [] };
110
+ }
111
+ let cleaned = text;
112
+ let redactedCount = 0;
113
+ const matchedKinds = [];
114
+ for (const pattern of SECRET_PATTERNS) {
115
+ pattern.regex.lastIndex = 0;
116
+ const matches = cleaned.match(pattern.regex);
117
+ if (matches && matches.length > 0) {
118
+ redactedCount += matches.length;
119
+ if (!matchedKinds.includes(pattern.kind)) {
120
+ matchedKinds.push(pattern.kind);
121
+ }
122
+ cleaned = cleaned.replace(pattern.regex, pattern.placeholder);
123
+ }
124
+ }
125
+ return { cleaned, redactedCount, matchedKinds };
126
+ }
127
+ function scrubObjectSecrets(val) {
128
+ if (val === null || val === undefined)
129
+ return val;
130
+ if (typeof val === "string") {
131
+ return scrubSecrets(val).cleaned;
132
+ }
133
+ if (Array.isArray(val)) {
134
+ return val.map((item) => scrubObjectSecrets(item));
135
+ }
136
+ if (typeof val === "object") {
137
+ if (val instanceof Date || val instanceof RegExp)
138
+ return val;
139
+ const result = {};
140
+ for (const [k, v] of Object.entries(val)) {
141
+ result[k] = scrubObjectSecrets(v);
142
+ }
143
+ return result;
144
+ }
145
+ return val;
146
+ }
147
+ export {
148
+ SECRET_PATTERNS,
149
+ hasPotentialSecrets,
150
+ scrubObjectSecrets,
151
+ scrubSecrets
152
+ };
153
+ `;
154
+
155
+ // packages/agent-runtime/docker/sandboxWorkspaceHelper.ts
156
+ function toJavascriptDataUrl(jsSource) {
157
+ return "data:text/javascript;base64," + Buffer.from(jsSource, "utf8").toString("base64");
158
+ }
38
159
  var SANDBOX_WORKSPACE_ROOT = "/home/bun/app";
39
160
  var SANDBOX_HELPER_PATH = "/tmp/nolo-tools/workspace-tool.mjs";
40
161
  function posixQuote(value) {
@@ -98,6 +219,9 @@ function buildWorkspaceHelperSource() {
98
219
  import path from "node:path";
99
220
 
100
221
  const ROOT = "${SANDBOX_WORKSPACE_ROOT}";
222
+ const SEARCH_EXCLUDES = ${JSON.stringify(ALWAYS_EXCLUDED_GLOBS)};
223
+ const SEARCH_KERNEL_URL = ${JSON.stringify(toJavascriptDataUrl(SANDBOX_SEARCH_KERNEL_JS))};
224
+ const SCRUBBER_URL = ${JSON.stringify(toJavascriptDataUrl(SANDBOX_SCRUBBER_JS))};
101
225
  const MAX_SERIALIZED_CHARS = ${SANDBOX_OUTPUT_LIMITS.maxSerializedChars};
102
226
  const READ_HEAD_CHARS = ${SANDBOX_OUTPUT_LIMITS.readHeadChars};
103
227
  const READ_TAIL_CHARS = ${SANDBOX_OUTPUT_LIMITS.readTailChars};
@@ -325,6 +449,31 @@ async function main() {
325
449
  return emitValue(withMarker(capped.items, capped.omitted));
326
450
  }
327
451
 
452
+ case "searchFiles": {
453
+ const p = resolvePath(args.path || ROOT);
454
+ if (!p.ok) return console.log(JSON.stringify({ ok: false, error: p.error }));
455
+ const { searchFileTextMatches } = await import(SEARCH_KERNEL_URL);
456
+ const { scrubSecrets } = await import(SCRUBBER_URL);
457
+ const query = args.query === undefined ? args.pattern : args.query;
458
+ if (typeof query !== "string" || !query.length) throw new Error("missing_query");
459
+ const result = await searchFileTextMatches({ root: ROOT, target: p.path, query,
460
+ regex: args.regex === true, caseSensitive: args.caseSensitive !== false,
461
+ include: typeof args.include === "string" ? args.include : undefined,
462
+ exclude: [...SEARCH_EXCLUDES, ...(Array.isArray(args.exclude) ? args.exclude.filter((x) => typeof x === "string") : [])],
463
+ contextLines: Number.isInteger(args.contextLines) && args.contextLines >= 0 && args.contextLines <= 5 ? args.contextLines : 0,
464
+ maxResults: Number.isInteger(args.maxResults) && args.maxResults >= 1 && args.maxResults <= 1000 ? args.maxResults : 100,
465
+ includeIgnored: args.includeIgnored === true });
466
+ const lines = result.matches.flatMap((m) => [
467
+ ...m.before.map((text, i) => m.path + ":" + (m.line - m.before.length + i) + "-" + text),
468
+ m.path + ":" + m.line + ":" + m.text,
469
+ ...m.after.map((text, i) => m.path + ":" + (m.line + i + 1) + "-" + text),
470
+ ]);
471
+ const raw = scrubSecrets(lines.join(NL)).cleaned;
472
+ const content = raw.slice(0, ARRAY_CHAR_BUDGET);
473
+ return emitValue({ content, metadata: { searchEngine: result.engine, count: lines.length,
474
+ totalMatches: result.totalMatches, matchCount: result.totalMatches,
475
+ truncated: result.truncated || content.length !== raw.length, limitedByMaxResults: result.truncated } });
476
+ }
328
477
  case "mkdir": {
329
478
  const p = resolvePath(args.path);
330
479
  if (!p.ok) return console.log(JSON.stringify({ ok: false, error: p.error }));
@@ -414,6 +563,32 @@ function buildToolInvocation(toolName, args) {
414
563
  }
415
564
  break;
416
565
  }
566
+ case "searchFiles": {
567
+ const query = args.query === void 0 ? args.pattern : args.query;
568
+ if (typeof query !== "string" || !query.length) return { ok: false, error: "missing_query" };
569
+ const res = resolveSandboxPath(typeof args.path === "string" ? args.path : ".");
570
+ if (!res.ok) return { ok: false, error: res.error };
571
+ for (const key of ["regex", "caseSensitive", "includeIgnored"]) {
572
+ if (args[key] !== void 0 && typeof args[key] !== "boolean") return { ok: false, error: "invalid_" + key };
573
+ }
574
+ if (args.path !== void 0 && typeof args.path !== "string") return { ok: false, error: "invalid_path" };
575
+ if (args.include !== void 0 && typeof args.include !== "string") return { ok: false, error: "invalid_include" };
576
+ if (args.exclude !== void 0 && (!Array.isArray(args.exclude) || !args.exclude.every((x) => typeof x === "string"))) return { ok: false, error: "invalid_exclude" };
577
+ for (const [key, min, max] of [["contextLines", 0, 5], ["maxResults", 1, 1e3]]) {
578
+ if (args[key] !== void 0 && (!Number.isInteger(args[key]) || Number(args[key]) < min || Number(args[key]) > max)) return { ok: false, error: "invalid_" + key };
579
+ }
580
+ op = "searchFiles";
581
+ validatedArgs.path = res.path;
582
+ validatedArgs.query = query;
583
+ validatedArgs.regex = args.regex === true;
584
+ validatedArgs.caseSensitive = args.caseSensitive !== false;
585
+ validatedArgs.include = args.include;
586
+ validatedArgs.exclude = args.exclude;
587
+ validatedArgs.contextLines = args.contextLines;
588
+ validatedArgs.maxResults = args.maxResults ?? 100;
589
+ validatedArgs.includeIgnored = args.includeIgnored === true;
590
+ break;
591
+ }
417
592
  case "grep":
418
593
  case "grepFiles": {
419
594
  if (typeof args.pattern !== "string" || !args.pattern.trim()) {
@@ -510,6 +685,7 @@ var dockerExecutionToolNames = [
510
685
  "writeFile",
511
686
  "editFile",
512
687
  "globFiles",
688
+ "searchFiles",
513
689
  "grepFiles"
514
690
  ];
515
691
  var deny = (error) => JSON.stringify({ ok: false, error, workloadLocation: "docker" });
@@ -1,5 +1,5 @@
1
1
  // node_modules/js-base64/base64.mjs
2
- var version = "3.9.6";
2
+ var version = "3.9.7";
3
3
  var VERSION = version;
4
4
  var _TD = typeof TextDecoder === "function" ? new TextDecoder("utf-8", { ignoreBOM: true }) : void 0;
5
5
  var _TE = typeof TextEncoder === "function" ? new TextEncoder() : void 0;
@@ -12,7 +12,6 @@ var b64tab = ((a) => {
12
12
  })(b64chs);
13
13
  var b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
14
14
  var _fromCC = String.fromCharCode.bind(String);
15
- var _U8Afrom = typeof Uint8Array.from === "function" ? Uint8Array.from.bind(Uint8Array) : (it) => new Uint8Array(Array.prototype.slice.call(it, 0));
16
15
  var _mkUriSafe = (src) => src.replace(/=/g, "").replace(/[+\/]/g, (m0) => m0 == "+" ? "-" : "_");
17
16
  var _tidyB64 = (s) => s.replace(/[^A-Za-z0-9\+\/]/g, "");
18
17
  var btoaPolyfill = (bin) => {
@@ -83,7 +82,12 @@ var atobPolyfill = (asc) => {
83
82
  return binArray.join("");
84
83
  };
85
84
  var _atob = typeof atob === "function" ? (asc) => atob(_tidyB64(asc)) : atobPolyfill;
86
- var _toUint8Array = typeof Uint8Array.fromBase64 === "function" ? (a) => Uint8Array.fromBase64(a) : (a) => _U8Afrom(_atob(a).split("").map((c) => c.charCodeAt(0)));
85
+ var _toUint8Array = typeof Uint8Array.fromBase64 === "function" ? (a) => Uint8Array.fromBase64(a) : (a) => {
86
+ const bin = _atob(a), l = bin.length, u8a = new Uint8Array(l);
87
+ for (let i = 0; i < l; i++)
88
+ u8a[i] = bin.charCodeAt(i);
89
+ return u8a;
90
+ };
87
91
  var toUint8Array = (a) => _toUint8Array(_unURI(a));
88
92
  var _decode = _TD ? (a) => _TD.decode(_toUint8Array(a)) : (a) => btou(_atob(a));
89
93
  var _unURI = (a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == "-" ? "+" : "/"));
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  compareAgentSelection,
9
9
  resolveModelTier
10
- } from "./chunk-IUXBKS5L.js";
10
+ } from "./chunk-QXUVCIPB.js";
11
11
  import {
12
12
  DEFAULT_PROVIDER_RETRY_MS,
13
13
  isAgentUnavailableNow,
@@ -21,15 +21,15 @@ import {
21
21
  import {
22
22
  isOAuthApiKeyRef
23
23
  } from "./chunk-UKZX3NHN.js";
24
+ import {
25
+ createKey,
26
+ createTokenKey
27
+ } from "./chunk-SYTHYBMI.js";
24
28
  import {
25
29
  isOwnedAgentKey,
26
30
  ownedAgentKey,
27
31
  publicAgentKey
28
32
  } from "./chunk-M2EJHDJP.js";
29
- import {
30
- createKey,
31
- createTokenKey
32
- } from "./chunk-SYTHYBMI.js";
33
33
  import {
34
34
  getModelAbility
35
35
  } from "./chunk-776CXKMX.js";
@@ -37,7 +37,7 @@ import {
37
37
  isAntigravityOAuthAgent,
38
38
  isSubscriptionEndpoint,
39
39
  isSubscriptionOAuthCredential
40
- } from "./chunk-LN4ZVSO7.js";
40
+ } from "./chunk-Y22P6ASC.js";
41
41
  import {
42
42
  asTrimmedLowercaseString
43
43
  } from "./chunk-QSJ3HFEF.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  require_formatISO
3
3
  } from "./chunk-UVLYNWIE.js";
4
- import {
5
- getActiveDialogKey
6
- } from "./chunk-I2OYPD3Y.js";
7
4
  import {
8
5
  patch,
9
6
  selectById
10
- } from "./chunk-TXFYIWAW.js";
7
+ } from "./chunk-6MQWGA5F.js";
8
+ import {
9
+ getActiveDialogKey
10
+ } from "./chunk-I2OYPD3Y.js";
11
11
  import {
12
12
  __toESM
13
13
  } from "./chunk-U67V476Y.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  buildSkillSummaryMarker
3
3
  } from "./chunk-VF4K2QE6.js";
4
- import {
5
- readDbRecord,
6
- writeAgentRecord
7
- } from "./chunk-QES2NCVM.js";
8
4
  import {
9
5
  createSpaceKey
10
6
  } from "./chunk-UAD2WT54.js";
7
+ import {
8
+ readDbRecord,
9
+ writeAgentRecord
10
+ } from "./chunk-J25ESVUW.js";
11
11
  import {
12
12
  parseUserIdFromAuthToken,
13
13
  readOption,
@@ -2,7 +2,7 @@ import {
2
2
  getCurrentSpaceIdRaw,
3
3
  setCurrentSpaceBoth,
4
4
  setSpaceInitialized
5
- } from "./chunk-C646JEUV.js";
5
+ } from "./chunk-ZCVBIIUE.js";
6
6
  import {
7
7
  createSpaceKey,
8
8
  normalizeSpaceId
@@ -13,7 +13,7 @@ import {
13
13
  googleSessionRequestToken,
14
14
  isGoogleAuthoritySession,
15
15
  scopeGoogleSessionServers
16
- } from "./chunk-C3GOEQJF.js";
16
+ } from "./chunk-BH7CEVOH.js";
17
17
  import {
18
18
  selectIdentityToken,
19
19
  selectIdentityUserId
@@ -54,7 +54,7 @@ async function fetchMembershipsFromServer(server, token, userId, timeoutMs) {
54
54
  Authorization: `Bearer ${token}`,
55
55
  "Content-Type": "application/json"
56
56
  },
57
- body: JSON.stringify({ userId }),
57
+ body: JSON.stringify({ userId, pureRead: true }),
58
58
  signal: controller.signal
59
59
  });
60
60
  clearTimeout(timeoutId);
@@ -352,6 +352,11 @@ var LEGACY_TOOL_NAME_ALIASES = {
352
352
  edit: "editFile",
353
353
  write: "writeFile",
354
354
  glob: "globFiles",
355
+ grep: "searchFiles",
356
+ rg: "searchFiles",
357
+ grepFiles: "searchFiles",
358
+ grep_files: "searchFiles",
359
+ search_files: "searchFiles",
355
360
  // 联网搜索别名
356
361
  web_search: "exa_search",
357
362
  websearch: "exa_search",
@@ -5,11 +5,11 @@ import {
5
5
  import {
6
6
  patch,
7
7
  read
8
- } from "./chunk-TXFYIWAW.js";
8
+ } from "./chunk-6MQWGA5F.js";
9
9
  import {
10
10
  DEVICE_LOCAL_OWNER_ID,
11
11
  isDeviceLocalSpaceBody
12
- } from "./chunk-F3FQPVHE.js";
12
+ } from "./chunk-OKPC4QNX.js";
13
13
  import {
14
14
  selectIdentityUserId
15
15
  } from "./chunk-PXYBUFDB.js";
@@ -1,12 +1,12 @@
1
- import {
2
- require_react
3
- } from "./chunk-RD3QLZQV.js";
4
1
  import {
5
2
  normalizeSpaceId
6
3
  } from "./chunk-UAD2WT54.js";
7
4
  import {
8
5
  toTimestampMs
9
- } from "./chunk-TXFYIWAW.js";
6
+ } from "./chunk-6MQWGA5F.js";
7
+ import {
8
+ require_react
9
+ } from "./chunk-RD3QLZQV.js";
10
10
  import {
11
11
  __toESM
12
12
  } from "./chunk-U67V476Y.js";
@@ -7,10 +7,13 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-MDVP5TLI.js";
10
+ } from "./chunk-VMWY7TUA.js";
11
11
  import {
12
12
  parsePositiveFiniteNumberOrFallback
13
13
  } from "./chunk-Y5GCAMGP.js";
14
+ import {
15
+ loadLocalRunChildDialogIds
16
+ } from "./chunk-TOK555CQ.js";
14
17
  import {
15
18
  buildDialogAttachmentPlan,
16
19
  extractFileContentIds,
@@ -34,30 +37,27 @@ import {
34
37
  resolveNoloHome,
35
38
  resolveServerDbPath
36
39
  } from "./chunk-GLKOYSRU.js";
37
- import {
38
- resolveRunsDir
39
- } from "./chunk-FSIEHQNH.js";
40
40
  import {
41
41
  boundSummaryText,
42
42
  buildDialogReadEnvelope,
43
43
  projectDialogReadForAgent
44
- } from "./chunk-IUXBKS5L.js";
44
+ } from "./chunk-QXUVCIPB.js";
45
45
  import {
46
46
  asRecordOrEmpty
47
47
  } from "./chunk-KX6YBIHG.js";
48
48
  import {
49
49
  isLevelNotFoundError
50
50
  } from "./chunk-OW765XBU.js";
51
- import {
52
- asNonEmptyStringArray,
53
- asTrimmedNonEmptyStringArray
54
- } from "./chunk-I42VC5KR.js";
55
51
  import {
56
52
  dialogIdFromKey,
57
53
  isSupportedDialogId,
58
54
  parseDialogPathIdentity,
59
55
  splitDialogKeyIdentity
60
56
  } from "./chunk-YZMNK53S.js";
57
+ import {
58
+ asNonEmptyStringArray,
59
+ asTrimmedNonEmptyStringArray
60
+ } from "./chunk-I42VC5KR.js";
61
61
  import {
62
62
  parseUserIdFromAuthToken,
63
63
  readOption,
@@ -68,7 +68,7 @@ import {
68
68
  } from "./chunk-BIDSIRTS.js";
69
69
  import {
70
70
  t
71
- } from "./chunk-YFRJAE3R.js";
71
+ } from "./chunk-OGZE6BZG.js";
72
72
  import {
73
73
  toErrorMessage
74
74
  } from "./chunk-HNMXYYJR.js";
@@ -207,32 +207,6 @@ function parsePositiveIntegerOrFallback(value, fallback) {
207
207
  return Number.isInteger(parsed) && parsed > 0 ? parsed : fallback;
208
208
  }
209
209
 
210
- // packages/cli/tui/localRunChildDialogIds.ts
211
- import { readdirSync, readFileSync } from "node:fs";
212
- import { join } from "node:path";
213
- function loadLocalRunChildDialogIds(args = {}) {
214
- const ids = /* @__PURE__ */ new Set();
215
- const runsDir = resolveRunsDir(args.env, args.homedir);
216
- let entries;
217
- try {
218
- entries = readdirSync(runsDir);
219
- } catch {
220
- return ids;
221
- }
222
- for (const name of entries) {
223
- if (!name.endsWith(".json")) continue;
224
- try {
225
- const record = JSON.parse(readFileSync(join(runsDir, name), "utf8"));
226
- const dialogId = record?.dialogId;
227
- if (typeof dialogId === "string" && dialogId.trim()) {
228
- ids.add(dialogId.trim());
229
- }
230
- } catch {
231
- }
232
- }
233
- return ids;
234
- }
235
-
236
210
  // packages/cli/dialogCommands.ts
237
211
  var logger = createClientLogger("cli:dialog");
238
212
  var DEFAULT_DIALOG_LIST_LIMIT = 50;
@@ -2053,7 +2027,6 @@ ${d.title}
2053
2027
  }
2054
2028
 
2055
2029
  export {
2056
- loadLocalRunChildDialogIds,
2057
2030
  normalizeDialogRecord,
2058
2031
  sortDialogs,
2059
2032
  isScheduledDialog,
@@ -6,11 +6,11 @@ import {
6
6
  localTurnHasSubjectRefs,
7
7
  resolveLocalUserId,
8
8
  withResolvedRuntimeToolSurface
9
- } from "./chunk-7U2TFUWW.js";
10
- import "./chunk-4FE3IWRE.js";
9
+ } from "./chunk-LZOOUQAZ.js";
11
10
  import "./chunk-BR3GT6MR.js";
12
- import "./chunk-VS276URX.js";
13
- import "./chunk-6OVNSQHN.js";
11
+ import "./chunk-NEG5LYK5.js";
12
+ import "./chunk-4FE3IWRE.js";
13
+ import "./chunk-YLAHYLDQ.js";
14
14
  import "./chunk-WRKMXMU7.js";
15
15
  import "./chunk-M2EJHDJP.js";
16
16
  import "./chunk-I42VC5KR.js";