nolo-cli 0.240.0-alpha.3 → 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 (206) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-5NA4USGG.js → _executeModel-IZ2MCXHO.js} +77 -77
  3. package/{action-X75O3XPH.js → action-VDEW6WLI.js} +9 -9
  4. package/{addContentAction-GVC77QSN.js → addContentAction-7YVXHIPQ.js} +14 -14
  5. package/{addDialogAgentAction-KKDVAMW3.js → addDialogAgentAction-BX7B47HF.js} +17 -17
  6. package/{agentDeleteCommand-2RFGKFAB.js → agentDeleteCommand-N7ELXPLD.js} +107 -108
  7. package/{agentEmailCommands-GQCQKKOR.js → agentEmailCommands-OFS477PV.js} +110 -111
  8. package/{agentListCommands-HSGLDPDQ.js → agentListCommands-IQQHJSXP.js} +202 -164
  9. package/{agentMachineCommands-BISF6PVV.js → agentMachineCommands-NS65BEW7.js} +52 -49
  10. package/{agentProviderCommands-O3Q25PKU.js → agentProviderCommands-SS6M6VGY.js} +2 -2
  11. package/{agentPullCommand-G6U2LHMW.js → agentPullCommand-QQQZSC6S.js} +1 -1
  12. package/{agentRecordCommands-AOXPGYAJ.js → agentRecordCommands-4VE7CNLC.js} +103 -104
  13. package/{agentRunCommand-AFAIP7U7.js → agentRunCommand-2MUXHKNW.js} +109 -108
  14. package/{agentRunControl-VBL7UFSG.js → agentRunControl-55GL6Q3M.js} +11 -9
  15. package/{agentRuntimeLocal-T7BX2WGL.js → agentRuntimeLocal-5DB2P4MU.js} +51 -43
  16. package/{agentSlice-XJNKE3PG.js → agentSlice-5VTAFG43.js} +14 -14
  17. package/{appDeleteCommands-LURUSPY7.js → appDeleteCommands-EDKUPHJM.js} +52 -49
  18. package/{appDeployCommands-SMEW4AK2.js → appDeployCommands-JO74GW4L.js} +52 -49
  19. package/{appDeployStatusCommands-VYPJTBJK.js → appDeployStatusCommands-U77ZUHX7.js} +52 -49
  20. package/{appGetCommands-N4NI5GGJ.js → appGetCommands-QCMHBYPX.js} +52 -49
  21. package/{appListCommands-5C6ONN3Z.js → appListCommands-ZQJYEXI6.js} +52 -49
  22. package/{authCommand-4CVBDADE.js → authCommand-W4KXRZLI.js} +23 -19
  23. package/{authCommands-EHU2BHOX.js → authCommands-6AUYO65N.js} +10 -6
  24. package/{builtinSkillRegistry-AYWYQVA4.js → builtinSkillRegistry-GHE3RD3V.js} +6 -6
  25. package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
  26. package/{chromeOpsCommands-CSDG2HYN.js → chromeOpsCommands-TBPM6MR4.js} +1 -1
  27. package/{chunk-7TTMMOKH.js → chunk-247AAJRK.js} +1 -1
  28. package/{chunk-4X5AVCM7.js → chunk-2BSLGODA.js} +258 -23
  29. package/{chunk-P3IZUMIC.js → chunk-2N4UBHUU.js} +4 -4
  30. package/{chunk-A74QP4FI.js → chunk-2T5BHLID.js} +572 -208
  31. package/{chunk-H7ZYKHAZ.js → chunk-3OQFXODL.js} +102 -31
  32. package/{chunk-BIABIPGW.js → chunk-3ORFJP2Z.js} +1 -1
  33. package/{chunk-3FBAVU2Y.js → chunk-3UNAGTBW.js} +19 -84
  34. package/{chunk-DNZ4JJ7C.js → chunk-4F7SWSWO.js} +19 -6
  35. package/{chunk-2X7WFDT6.js → chunk-4FE3IWRE.js} +1 -1
  36. package/{chunk-N2JROHD3.js → chunk-4UK6UBXF.js} +3 -3
  37. package/{chunk-XS5A3EKX.js → chunk-4YFC3DWW.js} +75 -1
  38. package/chunk-53W5BXLN.js +340 -0
  39. package/{chunk-E5KJOZWY.js → chunk-5GRWWUB4.js} +3 -3
  40. package/{chunk-HCNOO374.js → chunk-6326DRQY.js} +1 -1
  41. package/{chunk-RM4UMFY4.js → chunk-6MQWGA5F.js} +10 -10
  42. package/{chunk-TEMLHVGX.js → chunk-6MX6S6TE.js} +3 -3
  43. package/{chunk-6WOLPIPY.js → chunk-6RSNVJGO.js} +2 -102
  44. package/{chunk-Y5OWZQMJ.js → chunk-6S6CZUXK.js} +19 -19
  45. package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
  46. package/{chunk-FZKA3XFA.js → chunk-6XLWUNZB.js} +27 -27
  47. package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
  48. package/{chunk-MYPKBJJO.js → chunk-7AWKDRXG.js} +2 -2
  49. package/{chunk-GDUC4VS2.js → chunk-7GTXPS3D.js} +10 -10
  50. package/{chunk-Z2WZAE4P.js → chunk-7HUHOCIY.js} +36 -30
  51. package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
  52. package/{chunk-ULLHVDTZ.js → chunk-BH7CEVOH.js} +4 -4
  53. package/{chunk-A3LUWRQK.js → chunk-C4KX626C.js} +5 -5
  54. package/chunk-C5A54QS7.js +108 -0
  55. package/{chunk-DXW5WDHZ.js → chunk-CHYYSFFM.js} +6 -6
  56. package/{chunk-O6IPRAVV.js → chunk-CJTB3OYB.js} +2 -2
  57. package/{chunk-AVJDELEA.js → chunk-DLT2DN4M.js} +1 -1
  58. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  59. package/{chunk-MM73SP4K.js → chunk-DOK7GDRU.js} +1 -1
  60. package/{chunk-VREG6ANQ.js → chunk-DPAIQLAL.js} +16 -16
  61. package/{chunk-ANJRDS6U.js → chunk-EKXPHL7M.js} +3 -3
  62. package/{chunk-TWTJV35S.js → chunk-ENYTIRIO.js} +3 -3
  63. package/{chunk-PGKA77TZ.js → chunk-ER3P6MBT.js} +170 -107
  64. package/{chunk-EEOOBRA7.js → chunk-F4MCAOWN.js} +2 -2
  65. package/{chunk-7NIBQ4HY.js → chunk-FDZ2GBWO.js} +30 -2
  66. package/{chunk-VSRISJXZ.js → chunk-GAHJLSDO.js} +1 -1
  67. package/{chunk-U3G7RRXJ.js → chunk-GES5GIAU.js} +8 -8
  68. package/{chunk-4IQVE43Z.js → chunk-HQVNO7FH.js} +22 -22
  69. package/{chunk-DVYAFH2Q.js → chunk-HSWEFHFS.js} +1 -1
  70. package/{chunk-MECDGHLK.js → chunk-IIG3TT73.js} +43 -6
  71. package/{chunk-YGCOJNFZ.js → chunk-IZJFTY4R.js} +3 -3
  72. package/{chunk-BXSMFPTG.js → chunk-J25ESVUW.js} +10 -10
  73. package/{chunk-CVJRVBJL.js → chunk-J2XZZXIH.js} +4 -4
  74. package/{chunk-3EMIEC27.js → chunk-JVJ53XCH.js} +1 -1
  75. package/{chunk-AH5R7BYW.js → chunk-KC2QVCI7.js} +6 -6
  76. package/{chunk-MYOSN6BT.js → chunk-KF2DWSAH.js} +34 -13
  77. package/chunk-KK3FCYZM.js +647 -0
  78. package/{chunk-PRMEU7BT.js → chunk-KLD7K5FD.js} +7 -7
  79. package/{chunk-7AJRJGSQ.js → chunk-KMW5CRRM.js} +801 -381
  80. package/{chunk-Y2MF4DCJ.js → chunk-LELADM5Q.js} +1 -1
  81. package/{chunk-RTHFJZ6M.js → chunk-LMFMV5UC.js} +2 -2
  82. package/{chunk-2574ANSV.js → chunk-LZOOUQAZ.js} +4 -4
  83. package/{chunk-HOM6LTEW.js → chunk-M5EA44QU.js} +6 -6
  84. package/{chunk-IUMS6F53.js → chunk-MEDPR36J.js} +9 -5
  85. package/{chunk-6D25V6CB.js → chunk-MFXJY44K.js} +4 -4
  86. package/chunk-MVOZ22RZ.js +26 -0
  87. package/{chunk-CBUZ6DKA.js → chunk-N6EN3HK3.js} +1 -1
  88. package/{chunk-VS276URX.js → chunk-NEG5LYK5.js} +1 -1
  89. package/{chunk-B7DE5XJW.js → chunk-ODGSLWLO.js} +249 -66
  90. package/{chunk-S2MHR4PU.js → chunk-OGZE6BZG.js} +190 -118
  91. package/{chunk-CD3RU7XL.js → chunk-OJRTTERA.js} +62 -2
  92. package/{chunk-GXXY2NL3.js → chunk-OKPC4QNX.js} +37 -2
  93. package/{chunk-5QZSEQSK.js → chunk-ONFFUQYM.js} +1 -1
  94. package/{chunk-BGGAY6OK.js → chunk-P244EH4W.js} +3 -3
  95. package/chunk-P27E22MA.js +203 -0
  96. package/{chunk-UFC4J7OY.js → chunk-PK7VT4ZU.js} +3 -3
  97. package/{chunk-4FIO2S7Z.js → chunk-QLUYDJST.js} +1 -1
  98. package/{chunk-AEQMKYZN.js → chunk-QUJKDFZW.js} +7 -7
  99. package/{chunk-G22P367E.js → chunk-QXUVCIPB.js} +62 -18
  100. package/{chunk-IJTXNLQE.js → chunk-QYNABNNQ.js} +6 -6
  101. package/{chunk-TRHJ4NJB.js → chunk-RGUWOMXU.js} +626 -237
  102. package/{chunk-L32W3PRP.js → chunk-RH44TIHX.js} +165 -16
  103. package/{chunk-EBKHA63G.js → chunk-RIMFTQMC.js} +178 -46
  104. package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
  105. package/{chunk-BGGV6B5O.js → chunk-SBRJOYND.js} +280 -139
  106. package/{chunk-KZPEGO6D.js → chunk-SBRSXY67.js} +6 -6
  107. package/chunk-SR4FE5VD.js +9 -0
  108. package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
  109. package/{chunk-D374I563.js → chunk-T3WSFTBS.js} +1 -1
  110. package/{chunk-VP3BINY7.js → chunk-TOK555CQ.js} +31 -1
  111. package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
  112. package/{chunk-OX6GNNVT.js → chunk-U5LOKQ2R.js} +24 -13
  113. package/{chunk-LYDEFPQP.js → chunk-UDT4SI37.js} +1 -1
  114. package/{chunk-CKZPMJNU.js → chunk-UQXOORR3.js} +5 -5
  115. package/{chunk-FFYE5ATM.js → chunk-UR7555FE.js} +11 -11
  116. package/{chunk-F3XI6WQP.js → chunk-UWOCASVL.js} +5 -5
  117. package/{chunk-A5EVA6HU.js → chunk-V2V5Q6DU.js} +2 -2
  118. package/{chunk-PROOOQZ3.js → chunk-VCU5GV42.js} +1 -1
  119. package/{chunk-F6YWDVIB.js → chunk-VMWY7TUA.js} +1 -1
  120. package/{chunk-RETQOQ4D.js → chunk-VNALJT32.js} +2 -2
  121. package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
  122. package/{chunk-X7IA2B7R.js → chunk-WBSJAIZP.js} +7 -3
  123. package/{chunk-ZEKUFJLW.js → chunk-WVOZ35E4.js} +7 -7
  124. package/{chunk-B5SV4H3J.js → chunk-XDNXKFWF.js} +4 -4
  125. package/{chunk-4Q6HQORG.js → chunk-XLN2GD6Z.js} +4 -4
  126. package/{chunk-HBRDSQ3M.js → chunk-XNEDFWT4.js} +2 -2
  127. package/{chunk-6CKUO32A.js → chunk-Y22P6ASC.js} +11 -8
  128. package/{chunk-SRCCSTIM.js → chunk-Y3DOUQQQ.js} +4 -4
  129. package/{chunk-6WZVM33D.js → chunk-Y5EBOURK.js} +3 -3
  130. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  131. package/{chunk-T6VROBY7.js → chunk-YTEY27GN.js} +2 -2
  132. package/{chunk-5ZUOVCKT.js → chunk-YUZ2DAIH.js} +3 -1
  133. package/{chunk-IUTUWIKE.js → chunk-ZCVBIIUE.js} +4 -4
  134. package/{chunk-VM72HKW2.js → chunk-ZCZLTJEW.js} +9 -36
  135. package/{cliAgentConfigHelpers-U5OAVAKQ.js → cliAgentConfigHelpers-6OFDHJFT.js} +8 -8
  136. package/{cliAuthorityBrokerClient-S42VMGB6.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
  137. package/{cliLocalAgentRecordReader-HVZAQCUD.js → cliLocalAgentRecordReader-FHIMCBUK.js} +52 -45
  138. package/{commandRegistry-TME7INFU.js → commandRegistry-OKIWAJIS.js} +101 -93
  139. package/{contentThunks-U6OC4R2N.js → contentThunks-VF2DCU46.js} +33 -32
  140. package/{cooldownCommands-U7XSRVJP.js → cooldownCommands-QL6DWGVU.js} +1 -1
  141. package/{createAgentAutomationAction-IP4LFN3W.js → createAgentAutomationAction-BGET7Q6K.js} +34 -33
  142. package/{createDialogAction-IAGQJ3LH.js → createDialogAction-XYDQZETK.js} +34 -33
  143. package/{createPageAction-AZ3UIFKA.js → createPageAction-74S5RO7U.js} +38 -37
  144. package/{db-M7FU2GNK.js → db-6NRZLEW2.js} +1 -1
  145. package/{dbSlice-DKKMJJYY.js → dbSlice-FI7VNDR5.js} +13 -13
  146. package/{deleteFile-TQSONMVU.js → deleteFile-GD62MPZW.js} +8 -8
  147. package/{dialogCommands-PCDRMBWG.js → dialogCommands-Y6DHZUAM.js} +56 -54
  148. package/{dialogNotifyCommand-O35MWMOS.js → dialogNotifyCommand-MKXL4NGL.js} +10 -10
  149. package/{dialogSlice-QAKYN4DE.js → dialogSlice-XAUKSWZ4.js} +32 -31
  150. package/{dialogUsageCommand-2SSLTXKO.js → dialogUsageCommand-BZPKR3DW.js} +5 -5
  151. package/{docCreateCommands-CFQFZOAD.js → docCreateCommands-PHDFOQBM.js} +51 -48
  152. package/{docDeleteCommands-5CPNTIIS.js → docDeleteCommands-OSHJM67Y.js} +53 -50
  153. package/{docReadCommands-XQILYSAJ.js → docReadCommands-E6QYCFMS.js} +51 -48
  154. package/{docStore-GIVRT7TQ.js → docStore-ZZT2BEBU.js} +15 -15
  155. package/{docUpdateCommands-VETKSUDD.js → docUpdateCommands-DHIOPK2C.js} +51 -48
  156. package/fetchMessages-TQEUZD7H.js +1 -1
  157. package/{getPricing-LF5C4XSI.js → getPricing-RNRITFOP.js} +4 -4
  158. package/{handleSendMessageAction-HKIW4ZNO.js → handleSendMessageAction-ARUU6CNF.js} +71 -70
  159. package/{hostCredentialCreate-6VDJFNDO.js → hostCredentialCreate-SNQT73H4.js} +103 -104
  160. package/index.js +8 -8
  161. package/{localDialogRead-AV2VKKPG.js → localDialogRead-3T2KMCRC.js} +1 -1
  162. package/{localRuntimeAdapter-BQ4F5PZV.js → localRuntimeAdapter-MHI6Y2IZ.js} +112 -111
  163. package/{localRuntimeAuthority-WCNA4A3G.js → localRuntimeAuthority-7DKIT7UH.js} +2 -2
  164. package/{localRuntimeDb-CRNIBOOM.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
  165. package/{machineCommands-K6XIGOAD.js → machineCommands-3O6Y27R4.js} +229 -321
  166. package/{machineWsRunDispatch-4OO7Z6UM.js → machineWsRunDispatch-5PFLR5XC.js} +101 -102
  167. package/markdownToSlate-KIYM7B3P.js +8 -0
  168. package/{mcpLocalAuthorizeCommand-ZP6ESAGE.js → mcpLocalAuthorizeCommand-BQCQ2KRJ.js} +15 -15
  169. package/{memberThunks-PBJPZ2JU.js → memberThunks-TU6A6OBV.js} +16 -16
  170. package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
  171. package/package.json +1 -1
  172. package/{projectArchive-G7AOQPRW.js → projectArchive-X2EVXU3N.js} +40 -39
  173. package/{providerPresetApply-OPBCAONX.js → providerPresetApply-HUWNV2NI.js} +6 -6
  174. package/{providerRegistry-J2HCVTHE.js → providerRegistry-7FWKDKZJ.js} +6 -6
  175. package/{read-JEGPITEW.js → read-QAHEQID5.js} +8 -8
  176. package/{readDocTool-TE3XIU4Y.js → readDocTool-KG5DP6EM.js} +1 -1
  177. package/{readlineWorkspace-SOW5QUGZ.js → readlineWorkspace-SO3APHVP.js} +3300 -1518
  178. package/rememberExplicit-CPAPONSI.js +15 -0
  179. package/{removeDialogAgentAction-CX3OAH4Y.js → removeDialogAgentAction-QZCCVK2G.js} +19 -19
  180. package/{runAgentClientLoop-HQJPDFGQ.js → runAgentClientLoop-FLHHCOVH.js} +77 -77
  181. package/{runtimeDoctorCommands-GUH2YGMH.js → runtimeDoctorCommands-DN3I52C6.js} +8 -8
  182. package/{secretCommands-NJXFVHZU.js → secretCommands-36BCE3UE.js} +2 -2
  183. package/{setDialogExtraReferencesAction-CGM67EEQ.js → setDialogExtraReferencesAction-PDPTYSEW.js} +15 -15
  184. package/{setPrimaryDialogAgentAction-3ABWPPXR.js → setPrimaryDialogAgentAction-DOUIPR66.js} +19 -19
  185. package/{settingThunks-AY76OHYX.js → settingThunks-MHGGP6UE.js} +23 -23
  186. package/{spaceCommands-G63QGYQO.js → spaceCommands-JH7UYE3K.js} +54 -51
  187. package/{streamAgentChatTurn-E3XH2KFD.js → streamAgentChatTurn-VDDA2TX6.js} +118 -118
  188. package/{switchDialogAgentAction-G6EZRKCQ.js → switchDialogAgentAction-7USK3DAP.js} +17 -17
  189. package/{tableCommands-JI75ZHDI.js → tableCommands-UONBFC7L.js} +6 -6
  190. package/{toolApiClient-62UUPDUA.js → toolApiClient-53YMJ2G6.js} +7 -3
  191. package/{tools-7RSX22FT.js → tools-MIOCXKMG.js} +59 -60
  192. package/{tuiRestart-KAAA7TND.js → tuiRestart-ET3QISZ5.js} +10 -10
  193. package/{tuiSummaryLlmCaller-BVNHMWLR.js → tuiSummaryLlmCaller-MSINBP3M.js} +15 -14
  194. package/{updateCommands-ASK5XYPH.js → updateCommands-5OYND6EF.js} +3 -3
  195. package/{updateDialogTitleAction-SEWV252V.js → updateDialogTitleAction-2L4CC4YO.js} +35 -34
  196. package/{usageCommand-JVT5J3DC.js → usageCommand-JTKDAG6I.js} +2 -2
  197. package/{usageRebuildCommand-IZYYUTEW.js → usageRebuildCommand-4TFZCKXM.js} +3 -3
  198. package/{windowsSelfUpdate-BSDIS2J5.js → windowsSelfUpdate-HIYNL3VR.js} +2 -2
  199. package/{workContext-MM3P5GP5.js → workContext-Y3ADAPZU.js} +2 -1
  200. package/{workloadLifecycle-YIZ7KLUP.js → workloadLifecycle-ZCSQCHG3.js} +6 -6
  201. package/chunk-TUSTONB3.js +0 -81
  202. package/chunk-XBAEM4RI.js +0 -272
  203. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  204. package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
  205. package/{chunk-VMJVAJ6W.js → chunk-TB5KTLNB.js} +3 -3
  206. /package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
@@ -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-G22P367E.js";
10
+ } from "./chunk-QXUVCIPB.js";
11
11
  import {
12
12
  DEFAULT_PROVIDER_RETRY_MS,
13
13
  isAgentUnavailableNow,
@@ -21,23 +21,23 @@ 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
- } from "./chunk-62HXNQVV.js";
35
+ } from "./chunk-776CXKMX.js";
36
36
  import {
37
37
  isAntigravityOAuthAgent,
38
38
  isSubscriptionEndpoint,
39
39
  isSubscriptionOAuthCredential
40
- } from "./chunk-6CKUO32A.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-RM4UMFY4.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-BXSMFPTG.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,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getModelConfig
3
- } from "./chunk-CD3RU7XL.js";
3
+ } from "./chunk-OJRTTERA.js";
4
4
  import {
5
5
  isPlatformHostedDeepseekModel,
6
6
  isPlatformHostedOpenAIImageModel,
7
7
  resolvePlatformHostedRouting
8
- } from "./chunk-OBSEKCVK.js";
8
+ } from "./chunk-U4VSBDO5.js";
9
9
  import {
10
10
  asTrimmedLowercaseString
11
11
  } from "./chunk-QSJ3HFEF.js";
@@ -1,9 +1,12 @@
1
- import {
2
- trimTrailingSlash
3
- } from "./chunk-RTHFJZ6M.js";
4
1
  import {
5
2
  toErrorMessage
6
3
  } from "./chunk-HNMXYYJR.js";
4
+ import {
5
+ trimTrailingSlash
6
+ } from "./chunk-LMFMV5UC.js";
7
+ import {
8
+ asOptionalFiniteNumber
9
+ } from "./chunk-WWC7I6TA.js";
7
10
  import {
8
11
  commandCodeModels,
9
12
  kimiCodeModels,
@@ -14,10 +17,7 @@ import {
14
17
  qwenTokenPlanModels,
15
18
  stepfunModels,
16
19
  stepfunStepPlanModels
17
- } from "./chunk-CD3RU7XL.js";
18
- import {
19
- asOptionalFiniteNumber
20
- } from "./chunk-WWC7I6TA.js";
20
+ } from "./chunk-OJRTTERA.js";
21
21
  import {
22
22
  asOptionalTrimmedString
23
23
  } from "./chunk-G3SUCT4W.js";
@@ -26,7 +26,7 @@ import {
26
26
  PLATFORM_HOSTED_DEEPSEEK_FLASH_PEAK_PRICE,
27
27
  PLATFORM_HOSTED_DEEPSEEK_PRO_OFF_PEAK_PRICE,
28
28
  PLATFORM_HOSTED_DEEPSEEK_PRO_PEAK_PRICE
29
- } from "./chunk-OBSEKCVK.js";
29
+ } from "./chunk-U4VSBDO5.js";
30
30
  import {
31
31
  asTrimmedLowercaseString
32
32
  } from "./chunk-QSJ3HFEF.js";
@@ -378,6 +378,9 @@ var SUBSCRIPTION_OAUTH_PROVIDERS = [
378
378
  // 存量 agent 记录里的旧 model id 由 OAuth 通道的家族别名表透明重定向到对应
379
379
  // 最新代(sol 系→6.1 Sol、terra 系→6.1 Terra、luna 系→6 Luna),不丢对话。
380
380
  { id: "gpt-6-astra", label: "GPT-6 Astra", hasVision: true, recommended: true },
381
+ // GPT-6.2 Astra / Sol(2026-11-17 发布):与既有 6 / 6.1 并列保留,适配各账号灰度窗口。
382
+ { id: "gpt-6.2-astra", label: "GPT-6.2 Astra", hasVision: true },
383
+ { id: "gpt-6.2-sol", label: "GPT-6.2 Sol", hasVision: true },
381
384
  // GPT-6.1 Sol 已列入 Codex 订阅通道选型指南,但按账号灰度("when available
382
385
  // to your account and client"),未开通的账号选它会 400,不影响其他选项。
383
386
  { id: "gpt-6.1-sol", label: "GPT-6.1 Sol", hasVision: true },
@@ -7,17 +7,17 @@ import {
7
7
  import {
8
8
  asOptionalPositiveFiniteNumber
9
9
  } from "./chunk-U6VC4MU4.js";
10
- import {
11
- getModelConfig
12
- } from "./chunk-CD3RU7XL.js";
13
10
  import {
14
11
  asOptionalFiniteNumber
15
12
  } from "./chunk-WWC7I6TA.js";
13
+ import {
14
+ getModelConfig
15
+ } from "./chunk-OJRTTERA.js";
16
16
  import {
17
17
  isPlatformHostedImageModel,
18
18
  isPlatformManagedProvider,
19
19
  resolvePlatformEffectiveModel
20
- } from "./chunk-OBSEKCVK.js";
20
+ } from "./chunk-U4VSBDO5.js";
21
21
 
22
22
  // packages/ai/llm/getPricing.ts
23
23
  var MAX_OUTPUT_TOKENS = 8192;
@@ -2,7 +2,7 @@ import {
2
2
  getCurrentSpaceIdRaw,
3
3
  setCurrentSpaceBoth,
4
4
  setSpaceInitialized
5
- } from "./chunk-IUTUWIKE.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-ULLHVDTZ.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-RM4UMFY4.js";
8
+ } from "./chunk-6MQWGA5F.js";
9
9
  import {
10
10
  DEVICE_LOCAL_OWNER_ID,
11
11
  isDeviceLocalSpaceBody
12
- } from "./chunk-GXXY2NL3.js";
12
+ } from "./chunk-OKPC4QNX.js";
13
13
  import {
14
14
  selectIdentityUserId
15
15
  } from "./chunk-PXYBUFDB.js";
@@ -1,9 +1,11 @@
1
1
  import {
2
2
  resolveModelReasoningCapability
3
- } from "./chunk-CD3RU7XL.js";
3
+ } from "./chunk-OJRTTERA.js";
4
4
 
5
5
  // packages/ai/agent/defaultReasoningEffort.ts
6
6
  var defaults = {
7
+ "gpt-6.2-sol": "medium",
8
+ "gpt-6.2-astra": "high",
7
9
  "gpt-6.1-sol": "medium",
8
10
  "gpt-6.1-terra": "medium",
9
11
  "gpt-6-luna": "medium",
@@ -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-RM4UMFY4.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-F6YWDVIB.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,
@@ -25,7 +28,7 @@ import {
25
28
  } from "./chunk-QQ56R7KS.js";
26
29
  import {
27
30
  getDefaultCliLocalRuntimeDb
28
- } from "./chunk-4X5AVCM7.js";
31
+ } from "./chunk-2BSLGODA.js";
29
32
  import {
30
33
  isLevelLockError
31
34
  } from "./chunk-ZYKJBRZ3.js";
@@ -34,14 +37,11 @@ import {
34
37
  resolveNoloHome,
35
38
  resolveServerDbPath
36
39
  } from "./chunk-GLKOYSRU.js";
37
- import {
38
- resolveRunsDir
39
- } from "./chunk-MECDGHLK.js";
40
40
  import {
41
41
  boundSummaryText,
42
42
  buildDialogReadEnvelope,
43
43
  projectDialogReadForAgent
44
- } from "./chunk-G22P367E.js";
44
+ } from "./chunk-QXUVCIPB.js";
45
45
  import {
46
46
  asRecordOrEmpty
47
47
  } from "./chunk-KX6YBIHG.js";
@@ -68,7 +68,7 @@ import {
68
68
  } from "./chunk-BIDSIRTS.js";
69
69
  import {
70
70
  t
71
- } from "./chunk-S2MHR4PU.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;
@@ -851,7 +825,7 @@ function isExplicitDialogIdMismatch(meta, dialogId) {
851
825
  return meta && typeof meta === "object" && "id" in meta && meta.id != null && String(meta.id) !== dialogId;
852
826
  }
853
827
  async function readDialogFromLocalDb(dialogKey, dialogId, limit, readLocalDialog) {
854
- const reader = readLocalDialog ?? (await import("./localDialogRead-AV2VKKPG.js")).readDialogFromLocalDb;
828
+ const reader = readLocalDialog ?? (await import("./localDialogRead-3T2KMCRC.js")).readDialogFromLocalDb;
855
829
  const result = await reader({ dialogKey, dialogId, limit });
856
830
  return {
857
831
  ...result,
@@ -866,7 +840,7 @@ async function readLocalDialogAtDbPathDefault(args) {
866
840
  );
867
841
  }
868
842
  const db = await getDefaultCliLocalRuntimeDb();
869
- const { readDialogFromLocalDb: reader } = await import("./localDialogRead-AV2VKKPG.js");
843
+ const { readDialogFromLocalDb: reader } = await import("./localDialogRead-3T2KMCRC.js");
870
844
  return reader({ ...args, db });
871
845
  }
872
846
  async function readDialogFromLocalDbWithFallback(args) {
@@ -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,27 +6,27 @@ import {
6
6
  localTurnHasSubjectRefs,
7
7
  resolveLocalUserId,
8
8
  withResolvedRuntimeToolSurface
9
- } from "./chunk-2574ANSV.js";
10
- import "./chunk-2X7WFDT6.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";
17
17
  import "./chunk-BIDSIRTS.js";
18
18
  import "./chunk-OLZBQWZU.js";
19
19
  import "./chunk-LCBAMY2M.js";
20
- import "./chunk-RTHFJZ6M.js";
21
- import "./chunk-HBRDSQ3M.js";
20
+ import "./chunk-LMFMV5UC.js";
21
+ import "./chunk-XNEDFWT4.js";
22
22
  import "./chunk-3EUW3WEO.js";
23
- import "./chunk-CD3RU7XL.js";
23
+ import "./chunk-OJRTTERA.js";
24
24
  import "./chunk-JRTNUU5Z.js";
25
25
  import "./chunk-KUG52IAP.js";
26
26
  import "./chunk-G3SUCT4W.js";
27
27
  import "./chunk-4SN6J65J.js";
28
28
  import "./chunk-CF7PE763.js";
29
- import "./chunk-OBSEKCVK.js";
29
+ import "./chunk-U4VSBDO5.js";
30
30
  import "./chunk-QSJ3HFEF.js";
31
31
  import "./chunk-U67V476Y.js";
32
32
  export {