nolo-cli 0.241.0-alpha.1 → 0.243.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 (187) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-UCWDB72C.js → _executeModel-QLKALBXT.js} +75 -75
  3. package/{action-24MZYW2B.js → action-4V2UISXC.js} +9 -9
  4. package/{addContentAction-HEMCSSHT.js → addContentAction-5MZDMGI6.js} +14 -14
  5. package/{addDialogAgentAction-SQYDOXHA.js → addDialogAgentAction-ONVFHUOL.js} +17 -17
  6. package/{agentDeleteCommand-P7O3ACNJ.js → agentDeleteCommand-AUYYX4MU.js} +97 -97
  7. package/{agentEmailCommands-A5BRSYWK.js → agentEmailCommands-TZPXTTII.js} +98 -98
  8. package/{agentListCommands-LDRCOOMO.js → agentListCommands-7Z74VVSY.js} +198 -161
  9. package/{agentMachineCommands-AYL53KJV.js → agentMachineCommands-7JQ45EPE.js} +48 -46
  10. package/{agentProviderCommands-N5EA3ED2.js → agentProviderCommands-BQP2IK4C.js} +2 -2
  11. package/{agentRecordCommands-FICBZ57C.js → agentRecordCommands-OGOEBWLK.js} +95 -95
  12. package/{agentRunCommand-CTXQGDUM.js → agentRunCommand-ZKTHUSE5.js} +96 -96
  13. package/{agentRunControl-CO6BASZF.js → agentRunControl-CVCHDDDC.js} +10 -8
  14. package/{agentRuntimeLocal-5YN4D5WT.js → agentRuntimeLocal-ODDHRQ3M.js} +48 -41
  15. package/{agentSlice-DJ5D4DU4.js → agentSlice-ITLJEJAW.js} +14 -14
  16. package/{appDeleteCommands-B4E7N7M2.js → appDeleteCommands-QM6AWGQ5.js} +49 -47
  17. package/{appDeployCommands-E4DTXRRM.js → appDeployCommands-6XA2ONV6.js} +49 -47
  18. package/{appDeployStatusCommands-FCNHYHZM.js → appDeployStatusCommands-E75X542I.js} +49 -47
  19. package/{appGetCommands-4DXSQHUZ.js → appGetCommands-VKC2FHBH.js} +49 -47
  20. package/{appListCommands-2NN5E4F6.js → appListCommands-CICA4AQI.js} +49 -47
  21. package/{authCommand-47DR6GZT.js → authCommand-KVLFWXDS.js} +16 -16
  22. package/{authCommands-ZZ3L5IFM.js → authCommands-6AUYO65N.js} +3 -3
  23. package/{builtinSkillRegistry-AYWYQVA4.js → builtinSkillRegistry-LRVAQCPW.js} +8 -8
  24. package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
  25. package/{chromeOpsCommands-VZWAY2KR.js → chromeOpsCommands-TBPM6MR4.js} +1 -1
  26. package/{chunk-FPMPWNVQ.js → chunk-3IQ5GP5Y.js} +3 -3
  27. package/{chunk-NWWQY2J5.js → chunk-3S52WBJS.js} +7 -7
  28. package/chunk-4JFSDWTN.js +21 -0
  29. package/{chunk-C3GOEQJF.js → chunk-5PASH2MB.js} +2 -2
  30. package/{chunk-7Q7MKJZN.js → chunk-5UY2WQJ6.js} +323 -124
  31. package/{chunk-DVYAFH2Q.js → chunk-6PXFEPHL.js} +1 -1
  32. package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
  33. package/{chunk-H6CHPU6M.js → chunk-6ZQXUJGM.js} +4 -4
  34. package/{chunk-QGMIUVBT.js → chunk-76OIOVDN.js} +19 -19
  35. package/{chunk-KOIDLCAQ.js → chunk-7Y3L3IDA.js} +4 -4
  36. package/{chunk-DWWUVRB5.js → chunk-A4RK66EV.js} +1 -1
  37. package/{chunk-ZT3DYK5T.js → chunk-AERVJIZ2.js} +4 -4
  38. package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
  39. package/{chunk-TTEBPPUV.js → chunk-B5U64NZU.js} +1 -1
  40. package/{chunk-UKSKCDBG.js → chunk-BEJ243X3.js} +1 -1
  41. package/{chunk-TE2XH4KH.js → chunk-BZLF2LAP.js} +3 -3
  42. package/{chunk-ZVOL2MAJ.js → chunk-CO6E7YK6.js} +1 -1
  43. package/{chunk-NQQL2DKF.js → chunk-CQG24S2Q.js} +13 -6
  44. package/{chunk-25OCZXSX.js → chunk-CYAEPGKY.js} +23 -23
  45. package/{chunk-X37RQEA3.js → chunk-DEOPZE4S.js} +6 -6
  46. package/{chunk-B72AFRR2.js → chunk-DHRYMWMY.js} +4 -4
  47. package/{chunk-FXX6VFMV.js → chunk-DM323UA6.js} +84 -71
  48. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  49. package/{chunk-CT6GT2BG.js → chunk-DOCK6V3Z.js} +13 -13
  50. package/{chunk-ZTLTDUV6.js → chunk-FBVN3B5T.js} +4 -4
  51. package/{chunk-7NIBQ4HY.js → chunk-FDZ2GBWO.js} +30 -2
  52. package/{chunk-LMFMV5UC.js → chunk-FQFSLPNJ.js} +2 -2
  53. package/{chunk-ZQUCJBS4.js → chunk-G3SJCNHX.js} +2 -2
  54. package/{chunk-7U2TFUWW.js → chunk-GEKRDIMM.js} +5 -5
  55. package/{chunk-LT3DMEIB.js → chunk-GEY2UH2I.js} +17 -13
  56. package/{chunk-DLTMAXLF.js → chunk-GFBBHM53.js} +6 -6
  57. package/{chunk-OYHJ4TW7.js → chunk-HBO6UW3O.js} +4 -4
  58. package/{chunk-BDERPCJW.js → chunk-HKT7KOIX.js} +4 -4
  59. package/{chunk-3NFWMSTA.js → chunk-HTENYMO3.js} +5 -5
  60. package/{chunk-BWW6WRX6.js → chunk-HZN5VE32.js} +16 -13
  61. package/{chunk-G6OPRPXH.js → chunk-I27WRAPF.js} +37 -31
  62. package/{chunk-OJRTTERA.js → chunk-IBQHHCQE.js} +2 -1
  63. package/{chunk-LN4ZVSO7.js → chunk-JFGKVVLB.js} +8 -8
  64. package/{chunk-EIFSCI4C.js → chunk-JHHAIL34.js} +265 -102
  65. package/{chunk-JBWXPACD.js → chunk-JP2BH4NC.js} +1 -1
  66. package/{chunk-MM73SP4K.js → chunk-JV5FHHF7.js} +1 -1
  67. package/{chunk-NBB2EBQD.js → chunk-JVJ53XCH.js} +1 -1
  68. package/{chunk-Y5RN44VH.js → chunk-K3GJXP2N.js} +16 -16
  69. package/{chunk-OATIWAKN.js → chunk-KC2QVCI7.js} +1 -1
  70. package/{chunk-VP3BINY7.js → chunk-KMIDT4SW.js} +31 -1
  71. package/{chunk-IPRPYKBP.js → chunk-KOTJT7CY.js} +3 -3
  72. package/{chunk-4YFC3DWW.js → chunk-KQHEGELM.js} +1 -1
  73. package/{chunk-5TJE4QCL.js → chunk-KV5FDJOD.js} +2 -2
  74. package/{chunk-WRKMXMU7.js → chunk-KZAT2M2V.js} +12 -8
  75. package/{chunk-DGUUOHBF.js → chunk-LNFCR5IA.js} +4 -4
  76. package/{chunk-3V6JT6WN.js → chunk-MAURG3J4.js} +269 -112
  77. package/{chunk-WHO3LYDW.js → chunk-MEDPR36J.js} +2 -2
  78. package/{chunk-EW37CXCQ.js → chunk-NCJZUXRA.js} +6 -6
  79. package/{chunk-VS276URX.js → chunk-NEG5LYK5.js} +1 -1
  80. package/{chunk-6D25V6CB.js → chunk-NJJK3PDA.js} +4 -4
  81. package/{chunk-U4VSBDO5.js → chunk-O5MEXHJW.js} +65 -46
  82. package/{chunk-YFRJAE3R.js → chunk-OGZE6BZG.js} +12 -4
  83. package/{chunk-KGIIZXPL.js → chunk-ORVM574D.js} +7 -7
  84. package/{chunk-YUZ2DAIH.js → chunk-OXFJWWOT.js} +1 -1
  85. package/chunk-P27E22MA.js +203 -0
  86. package/{chunk-BIJTI5SX.js → chunk-Q25LWFGP.js} +2 -2
  87. package/{chunk-TFGGNRT6.js → chunk-QLUYDJST.js} +1 -1
  88. package/{chunk-IUXBKS5L.js → chunk-QXUVCIPB.js} +9 -9
  89. package/{chunk-XNEDFWT4.js → chunk-RRYDDDV7.js} +2 -2
  90. package/{chunk-24GVXSWK.js → chunk-RXCP7AIJ.js} +2 -2
  91. package/{chunk-UAOFSUG7.js → chunk-SEDJEJBH.js} +1 -1
  92. package/{chunk-LYDEFPQP.js → chunk-SF4GMDZO.js} +2 -2
  93. package/{chunk-CZLSTOVM.js → chunk-SGI2FIGK.js} +2 -2
  94. package/{chunk-FSIEHQNH.js → chunk-SMYUQDYW.js} +42 -5
  95. package/{chunk-7OTNBI77.js → chunk-T3CUXNV4.js} +1 -1
  96. package/{chunk-EBKHA63G.js → chunk-TKE4OJ4B.js} +179 -47
  97. package/{chunk-T444ENEC.js → chunk-TRN54YTP.js} +5 -5
  98. package/{chunk-2XMKW2OY.js → chunk-TT4JI6QR.js} +9 -9
  99. package/{chunk-I2OYPD3Y.js → chunk-U35UUM5K.js} +1 -0
  100. package/{chunk-6X3CS6NJ.js → chunk-V2COUWMQ.js} +8 -8
  101. package/{chunk-LCQJH7KN.js → chunk-VCU5GV42.js} +1 -1
  102. package/{chunk-ZBQ5UGYY.js → chunk-VF7F3ADU.js} +4 -4
  103. package/{chunk-HNWZJI4N.js → chunk-VNALJT32.js} +1 -1
  104. package/{chunk-TXFYIWAW.js → chunk-VTB6V4UF.js} +10 -10
  105. package/{chunk-QES2NCVM.js → chunk-VTDC64JY.js} +10 -10
  106. package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
  107. package/{chunk-YMCSR7PA.js → chunk-VVNP722P.js} +8 -8
  108. package/{chunk-N6EN3HK3.js → chunk-W4EAF272.js} +1 -1
  109. package/{chunk-X7IA2B7R.js → chunk-WBSJAIZP.js} +7 -3
  110. package/{chunk-LMZRXDWG.js → chunk-WDDZCQ6V.js} +3 -3
  111. package/{chunk-TXQVH72L.js → chunk-WIRH2ZLI.js} +3 -3
  112. package/{chunk-C646JEUV.js → chunk-WXZZQRAH.js} +4 -4
  113. package/{chunk-6BGJHJRN.js → chunk-X66UVBL3.js} +28 -28
  114. package/{chunk-UAHUJ4HH.js → chunk-XBWZ3SPO.js} +10 -37
  115. package/{chunk-4FE3IWRE.js → chunk-XRFUYUS7.js} +1 -1
  116. package/{chunk-XAFOLWLU.js → chunk-YDTLGWBU.js} +4 -4
  117. package/{chunk-FCAMGBLY.js → chunk-YDWMJOCW.js} +467 -279
  118. package/{chunk-GCVFX6ZL.js → chunk-YFDLRLW7.js} +3 -3
  119. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  120. package/{chunk-DIBQXNGW.js → chunk-YO4DCVD2.js} +2 -2
  121. package/{chunk-NL7J2J5Z.js → chunk-YTYVSOY4.js} +3 -3
  122. package/{chunk-6XBOPKUH.js → chunk-Z5C2EICZ.js} +16 -16
  123. package/{chunk-MDVP5TLI.js → chunk-ZCFOIOZ6.js} +1 -1
  124. package/{chunk-F3FQPVHE.js → chunk-ZGHHY2PV.js} +2 -2
  125. package/{cliAgentConfigHelpers-RFR7ZCSK.js → cliAgentConfigHelpers-H3VR6JID.js} +9 -9
  126. package/{cliLocalAgentRecordReader-AJ4UKHKT.js → cliLocalAgentRecordReader-SQCTHOXC.js} +50 -44
  127. package/{commandRegistry-IHWZVV4G.js → commandRegistry-6P4GP7SY.js} +99 -91
  128. package/{contentThunks-YQRCBDKF.js → contentThunks-74IO72TZ.js} +34 -34
  129. package/{cooldownCommands-W67DE765.js → cooldownCommands-QL6DWGVU.js} +1 -1
  130. package/{createAgentAutomationAction-ERSDNR4R.js → createAgentAutomationAction-KRNQVWCA.js} +35 -35
  131. package/{createDialogAction-QXC7JZPE.js → createDialogAction-TWFKJNUJ.js} +35 -35
  132. package/{createPageAction-RLZ7776F.js → createPageAction-2O2RMNQH.js} +39 -39
  133. package/{dbSlice-7M2ESEUO.js → dbSlice-JBLCCYKC.js} +13 -13
  134. package/{deleteFile-WO6WSSNK.js → deleteFile-KV5VTKAT.js} +8 -8
  135. package/{dialogCommands-UIRO4QNN.js → dialogCommands-OILEFOMW.js} +51 -50
  136. package/{dialogNotifyCommand-VDUFYBZV.js → dialogNotifyCommand-KOKWBD5H.js} +11 -11
  137. package/{dialogSlice-A4U3C76D.js → dialogSlice-BZKPV4FB.js} +34 -34
  138. package/{docCreateCommands-MHPYTJWR.js → docCreateCommands-43U55CVY.js} +48 -46
  139. package/{docDeleteCommands-VYULMBAQ.js → docDeleteCommands-BFTJFJAV.js} +50 -48
  140. package/{docReadCommands-FV3GGZ7V.js → docReadCommands-PU3VWGCG.js} +48 -46
  141. package/{docStore-AWWI72FA.js → docStore-JTAXVIUB.js} +15 -15
  142. package/{docUpdateCommands-JNS3HX7F.js → docUpdateCommands-7JRDXTSJ.js} +48 -46
  143. package/fetchMessages-TQEUZD7H.js +2 -2
  144. package/{getPricing-U5AR7ZHS.js → getPricing-XZXEWFPY.js} +4 -4
  145. package/{handleSendMessageAction-WDJOUDNV.js → handleSendMessageAction-BCNWPO3U.js} +67 -67
  146. package/{hostCredentialCreate-H3FF2SAO.js → hostCredentialCreate-LKNAX2SV.js} +95 -95
  147. package/index.js +8 -8
  148. package/keys-RWF7UCB4.js +1 -1
  149. package/{localRuntimeAdapter-JAQQXZJP.js → localRuntimeAdapter-I5HVICYM.js} +103 -103
  150. package/{machineCommands-WYOFNB5I.js → machineCommands-PUOM4XEL.js} +222 -313
  151. package/{machineWsRunDispatch-Y7UIAZNM.js → machineWsRunDispatch-SOAAV7PQ.js} +94 -94
  152. package/{mcpLocalAuthorizeCommand-SCYEFLRK.js → mcpLocalAuthorizeCommand-TMBUP7FX.js} +14 -14
  153. package/{memberThunks-DIITWU4M.js → memberThunks-TWB77UHJ.js} +17 -17
  154. package/{models-CINY5UZR.js → models-RIKQRH6B.js} +2 -2
  155. package/package.json +1 -1
  156. package/{projectArchive-IZJXBW5N.js → projectArchive-3V5DIVKP.js} +39 -39
  157. package/{providerPresetApply-2QWXPJXZ.js → providerPresetApply-JBCXP3JP.js} +6 -6
  158. package/{providerRegistry-W4LCKK6V.js → providerRegistry-AMR7WUWQ.js} +6 -6
  159. package/{read-OBLJNMA2.js → read-CO6HMH5W.js} +8 -8
  160. package/{readDocTool-QQZ4DAER.js → readDocTool-P4MDVRNW.js} +1 -1
  161. package/{readlineWorkspace-WF3SWZGR.js → readlineWorkspace-NHVNU4DY.js} +491 -383
  162. package/{removeDialogAgentAction-HC3SOY3G.js → removeDialogAgentAction-D3R3QNPD.js} +19 -19
  163. package/{runAgentClientLoop-Z7V6TA3O.js → runAgentClientLoop-EWZ4UOXT.js} +74 -74
  164. package/{runtimeDoctorCommands-KX6YLPWV.js → runtimeDoctorCommands-EQS62LQV.js} +5 -5
  165. package/{secretCommands-STRAX275.js → secretCommands-36BCE3UE.js} +2 -2
  166. package/{setDialogExtraReferencesAction-DDZUQPY6.js → setDialogExtraReferencesAction-VORDLM57.js} +16 -16
  167. package/{setPrimaryDialogAgentAction-EB67OMAJ.js → setPrimaryDialogAgentAction-P5A65M32.js} +19 -19
  168. package/{settingThunks-TN6GFASU.js → settingThunks-JGBSDOC6.js} +24 -24
  169. package/{spaceCommands-HBYQUVJI.js → spaceCommands-SRICYK6S.js} +51 -49
  170. package/{streamAgentChatTurn-CM7QQXOS.js → streamAgentChatTurn-GHPLOX5L.js} +140 -125
  171. package/{switchDialogAgentAction-XY5TKQQE.js → switchDialogAgentAction-DMMWH5FG.js} +17 -17
  172. package/{tableCommands-MXFL3JIT.js → tableCommands-UHEA5QNL.js} +6 -6
  173. package/{toolApiClient-53YMJ2G6.js → toolApiClient-N5PYW2R3.js} +2 -2
  174. package/{tools-AT6H73LD.js → tools-ZSQGRWKI.js} +59 -59
  175. package/{tuiRestart-272SAYSK.js → tuiRestart-RATR636G.js} +9 -9
  176. package/{tuiSummaryLlmCaller-K2OVRVHG.js → tuiSummaryLlmCaller-J5HB4XVS.js} +14 -14
  177. package/{updateCommands-O3BOVVVN.js → updateCommands-5OYND6EF.js} +3 -3
  178. package/{updateDialogTitleAction-PGY4UPLH.js → updateDialogTitleAction-MEKAI3YO.js} +36 -36
  179. package/{usageCommand-SCF3ROV2.js → usageCommand-WW22APZ6.js} +2 -2
  180. package/{usageRebuildCommand-K5WPIBA5.js → usageRebuildCommand-B3S67JXH.js} +3 -3
  181. package/{windowsSelfUpdate-WJDUZLEO.js → windowsSelfUpdate-HIYNL3VR.js} +2 -2
  182. package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-ZCSQCHG3.js} +2 -2
  183. package/chunk-776CXKMX.js +0 -134
  184. package/chunk-TUSTONB3.js +0 -81
  185. package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
  186. package/{chunk-VMJVAJ6W.js → chunk-TB5KTLNB.js} +3 -3
  187. package/{dialogUsageCommand-SEC6UZWM.js → dialogUsageCommand-BZPKR3DW.js} +3 -3
@@ -366,6 +366,14 @@ var notProbedRequest = async () => {
366
366
  function expectedExtensionIdFor(browser, chromeExtensionId) {
367
367
  return browser === "firefox" ? NOLO_FIREFOX_CONNECTOR_EXTENSION_ID : chromeExtensionId;
368
368
  }
369
+ function makeRequestFor(args, sharedOverrideTarget) {
370
+ return (browser) => {
371
+ const perBrowser = args.requestChromeFor?.(browser);
372
+ if (perBrowser) return perBrowser;
373
+ if (!args.requestChrome) return createChromeConnectorClient({ browser }).request;
374
+ return browser === sharedOverrideTarget ? args.requestChrome : notProbedRequest;
375
+ };
376
+ }
369
377
  async function probeBrowserStatuses(args) {
370
378
  const entries = await Promise.all(
371
379
  CONNECTOR_BROWSER_ORDER.map(async (browser) => {
@@ -499,12 +507,7 @@ async function buildChromeConnectorStatus(args = {}) {
499
507
  const extensionManifest = connectorRoot ? readExtensionManifest(connectorRoot) : null;
500
508
  const expectedId = extensionManifest && typeof extensionManifest.key === "string" ? extensionIdFromPublicKey(extensionManifest.key) : NOLO_CHROME_CONNECTOR_EXTENSION_ID;
501
509
  const sharedOverrideTarget = browserTarget ?? "chrome";
502
- const requestFor = (browser) => {
503
- const perBrowser = args.requestChromeFor?.(browser);
504
- if (perBrowser) return perBrowser;
505
- if (!args.requestChrome) return createChromeConnectorClient({ browser }).request;
506
- return browser === sharedOverrideTarget ? args.requestChrome : notProbedRequest;
507
- };
510
+ const requestFor = makeRequestFor(args, sharedOverrideTarget);
508
511
  const browserStatuses = await probeBrowserStatuses({
509
512
  env,
510
513
  chromeExtensionId: expectedId,
@@ -885,19 +888,393 @@ The connector service worker restarts within ~1s; verify with \`nolo chrome stat
885
888
  return 1;
886
889
  }
887
890
  }
891
+ function browserFlagSuffix(browser) {
892
+ return browser === "firefox" ? " --browser firefox" : "";
893
+ }
894
+ async function probeTabsRoundtrip(requestChrome) {
895
+ try {
896
+ const result = await requestChrome("list_tabs", {});
897
+ const tabs = result?.tabs;
898
+ if (!Array.isArray(tabs)) {
899
+ return {
900
+ probed: true,
901
+ count: null,
902
+ error: {
903
+ code: "CHROME_CONNECTOR_BAD_RESPONSE",
904
+ message: "list_tabs returned no tabs array"
905
+ }
906
+ };
907
+ }
908
+ return { probed: true, count: tabs.length };
909
+ } catch (error) {
910
+ return {
911
+ probed: true,
912
+ count: null,
913
+ error: {
914
+ code: error?.code ?? "CHROME_CONNECTOR_ERROR",
915
+ message: toErrorMessage(error)
916
+ }
917
+ };
918
+ }
919
+ }
920
+ function buildNativeHostDoctorCheck(status, target) {
921
+ const label = "Native Messaging host";
922
+ const facts = target.nativeHost;
923
+ if (!status.nativeHost.supported) {
924
+ return {
925
+ id: "native_host",
926
+ label,
927
+ status: "fail",
928
+ summary: `this platform has no supported native host install (${status.nativeHost.platformError ?? "unsupported platform"})`
929
+ };
930
+ }
931
+ if (!status.connectorRoot) {
932
+ return {
933
+ id: "native_host",
934
+ label,
935
+ status: "warn",
936
+ summary: `cannot check: this CLI cannot see a connector checkout${status.connectorRootError ? ` (${status.connectorRootError})` : ""}; set NOLO_CHROME_CONNECTOR_ROOT or run the CLI from a repo checkout`
937
+ };
938
+ }
939
+ if (!facts.manifestPath) {
940
+ return {
941
+ id: "native_host",
942
+ label,
943
+ status: "warn",
944
+ summary: `cannot check: the ${browserLabel(target.browser)} native host paths did not resolve on this platform`
945
+ };
946
+ }
947
+ if (!facts.installed) {
948
+ return {
949
+ id: "native_host",
950
+ label,
951
+ status: "fail",
952
+ summary: `no native messaging host manifest at ${facts.manifestPath} \u2014 ${browserLabel(
953
+ target.browser
954
+ )} has nothing to talk to (a Web Store install never creates it)`
955
+ };
956
+ }
957
+ if (!facts.wrapperPathMatches || !facts.allowedOriginMatches) {
958
+ const problems = [];
959
+ if (!facts.wrapperPathMatches) problems.push("its wrapper path points at another checkout/launcher");
960
+ if (!facts.allowedOriginMatches) {
961
+ problems.push(`its allowed origins do not include extension ${target.expectedExtensionId}`);
962
+ }
963
+ return {
964
+ id: "native_host",
965
+ label,
966
+ status: "warn",
967
+ summary: `${facts.manifestPath} is installed but ${problems.join(" and ")}`
968
+ };
969
+ }
970
+ return {
971
+ id: "native_host",
972
+ label,
973
+ status: "pass",
974
+ summary: `${facts.manifestPath} registered and allows extension ${target.expectedExtensionId}`
975
+ };
976
+ }
977
+ function buildAuthTokenDoctorCheck(status, target) {
978
+ const label = "RPC auth token";
979
+ const path = target.token.path ?? status.token.path;
980
+ if (!status.nativeHost.supported) {
981
+ return {
982
+ id: "auth_token",
983
+ label,
984
+ status: "warn",
985
+ summary: "not applicable: this platform has no supported native host install"
986
+ };
987
+ }
988
+ if (!status.connectorRoot) {
989
+ return {
990
+ id: "auth_token",
991
+ label,
992
+ status: "warn",
993
+ summary: "cannot check: no connector checkout is visible here, so the token file was not inspected (the live RPC probe below is the authority \u2014 a working bridge authenticates fine)"
994
+ };
995
+ }
996
+ if (target.token.present) {
997
+ return {
998
+ id: "auth_token",
999
+ label,
1000
+ status: "pass",
1001
+ summary: `token present${path ? ` at ${path}` : ""}`
1002
+ };
1003
+ }
1004
+ return {
1005
+ id: "auth_token",
1006
+ label,
1007
+ status: "fail",
1008
+ summary: `no connector token${path ? ` at ${path}` : ""} \u2014 the bridge rejects unauthenticated calls`
1009
+ };
1010
+ }
1011
+ function buildRpcBridgeDoctorCheck(target) {
1012
+ const label = "Local RPC bridge";
1013
+ const rpc = target.rpc;
1014
+ if (rpc.online) {
1015
+ return {
1016
+ id: "rpc_bridge",
1017
+ label,
1018
+ status: "pass",
1019
+ summary: `answering on ${target.endpoint} (extension ${rpc.extensionId ?? "unknown"})`
1020
+ };
1021
+ }
1022
+ const code = rpc.error?.code ?? "CHROME_CONNECTOR_ERROR";
1023
+ if (code === "UNAUTHORIZED") {
1024
+ return {
1025
+ id: "rpc_bridge",
1026
+ label,
1027
+ status: "fail",
1028
+ summary: `something answers on ${target.endpoint} but rejects this machine's token (UNAUTHORIZED) \u2014 the token file and the running native host disagree`
1029
+ };
1030
+ }
1031
+ if (code === "CHROME_CONNECTOR_UNAVAILABLE") {
1032
+ return {
1033
+ id: "rpc_bridge",
1034
+ label,
1035
+ status: "warn",
1036
+ summary: `nothing is listening on ${target.endpoint} \u2014 the extension's background service worker is most likely asleep, which is normal, not broken`
1037
+ };
1038
+ }
1039
+ return {
1040
+ id: "rpc_bridge",
1041
+ label,
1042
+ status: "warn",
1043
+ summary: `${code}: ${rpc.error?.message ?? "(no detail)"}`
1044
+ };
1045
+ }
1046
+ function buildHandshakeDoctorCheck(target, browser) {
1047
+ const label = "Extension handshake";
1048
+ const rpc = target.rpc;
1049
+ if (!rpc.online) {
1050
+ return {
1051
+ id: "extension_handshake",
1052
+ label,
1053
+ status: "warn",
1054
+ summary: "cannot verify while the RPC bridge is offline (see rpc_bridge)"
1055
+ };
1056
+ }
1057
+ const recognizedBrowser = rpc.build ?? (rpc.extensionId === target.expectedExtensionId ? target.browser : null);
1058
+ if (recognizedBrowser === null) {
1059
+ return {
1060
+ id: "extension_handshake",
1061
+ label,
1062
+ status: "fail",
1063
+ summary: `the connected extension ${rpc.extensionId ?? "(unknown id)"} is not a recognized Nolo Browser Connector build`
1064
+ };
1065
+ }
1066
+ if (recognizedBrowser !== browser) {
1067
+ return {
1068
+ id: "extension_handshake",
1069
+ label,
1070
+ status: "fail",
1071
+ summary: `the bridge answers as the ${browserLabel(recognizedBrowser)} build, not ${browserLabel(browser)}`
1072
+ };
1073
+ }
1074
+ const expected = expectedFeaturesForBrowser(browser);
1075
+ const missing = expected.filter((feature) => !rpc.features.includes(feature));
1076
+ const problems = [];
1077
+ if (rpc.protocolVersion !== NOLO_CHROME_CONNECTOR_PROTOCOL_VERSION) {
1078
+ problems.push(
1079
+ `protocol ${rpc.protocolVersion ?? "unknown"} (this CLI speaks ${NOLO_CHROME_CONNECTOR_PROTOCOL_VERSION})`
1080
+ );
1081
+ }
1082
+ if (missing.length > 0) problems.push(`missing features ${missing.join(", ")}`);
1083
+ if (problems.length > 0) {
1084
+ return {
1085
+ id: "extension_handshake",
1086
+ label,
1087
+ status: "fail",
1088
+ summary: `${browserLabel(browser)} build ${rpc.extensionId ?? "unknown"} reports ${problems.join("; ")}`
1089
+ };
1090
+ }
1091
+ return {
1092
+ id: "extension_handshake",
1093
+ label,
1094
+ status: "pass",
1095
+ summary: `${browserLabel(browser)} build ${rpc.extensionId ?? "unknown"} speaks protocol ${rpc.protocolVersion} with all ${expected.length} required features`
1096
+ };
1097
+ }
1098
+ function buildDoctorRecoverySteps(args) {
1099
+ const { browser, checks, tabs, ok, requiresExplicitBrowser, rpcUnauthorized } = args;
1100
+ const installCmd = `nolo browser install${browserFlagSuffix(browser)}`;
1101
+ const doctorCmd = `nolo browser doctor${browserFlagSuffix(browser)}`;
1102
+ const reloadCmd = `nolo browser reload${browserFlagSuffix(browser)}`;
1103
+ const browserName = browserLabel(browser);
1104
+ const statusOf = (id) => checks.find((check) => check.id === id)?.status;
1105
+ const extensionsPage = browser === "firefox" ? "about:debugging#/runtime/this-firefox" : "chrome://extensions";
1106
+ const installHint = browser === "firefox" ? `If the extension is not installed yet: install Nolo Browser Connector from https://nolo.chat/downloads, or load the local extension/ directory from ${extensionsPage}.` : `If the extension is not installed yet: install Nolo Browser Connector from the Chrome Web Store, or load the local extension/ directory with Developer mode in ${extensionsPage}.`;
1107
+ const restrictedPages = browser === "firefox" ? "about: pages and the connector's own pages" : "chrome:// pages, the Web Store and extension pages";
1108
+ const wakeHint = `click the \u300CNolo \u6D4F\u89C8\u5668\u8FDE\u63A5\u5668\u300D icon in the browser toolbar to wake the background service worker (icon hidden? open ${extensionsPage}, confirm it is enabled and click Reload)`;
1109
+ if (ok) {
1110
+ const count = tabs.count ?? 0;
1111
+ const steps = [
1112
+ `End-to-end ready: ${browserName} is online and the connector round trip works (${count} controllable ${count === 1 ? "tab" : "tabs"} detected).`
1113
+ ];
1114
+ if (requiresExplicitBrowser) {
1115
+ steps.push(
1116
+ `Both the Chrome and Firefox connectors are online, so every unqualified \`nolo browser <op>\` fails with MULTIPLE_BROWSERS_AVAILABLE \u2014 pass the browser explicitly, e.g. \`nolo browser list-tabs --browser ${browser}\`.`
1117
+ );
1118
+ } else {
1119
+ steps.push("Next: `nolo browser list-tabs` lists the tabs an agent can drive.");
1120
+ }
1121
+ return steps;
1122
+ }
1123
+ if (statusOf("native_host") === "fail" || statusOf("auth_token") === "fail") {
1124
+ const howToWake = browser === "firefox" ? `open ${extensionsPage} and click Reload on the connector` : `open ${extensionsPage}, make sure the extension is enabled and click Reload`;
1125
+ return [
1126
+ `The ${browserName} extension itself is fine \u2014 it needs this machine's native bridge before it can drive your browser (the store package never includes one).`,
1127
+ `1. Run: ${installCmd}`,
1128
+ `2. Click the \u300CNolo \u6D4F\u89C8\u5668\u8FDE\u63A5\u5668\u300D icon in the browser toolbar to wake the local bridge (icon hidden? ${howToWake}).`,
1129
+ `3. Run: ${doctorCmd} to verify.`,
1130
+ installHint
1131
+ ];
1132
+ }
1133
+ if (statusOf("rpc_bridge") !== "pass") {
1134
+ if (rpcUnauthorized) {
1135
+ return [
1136
+ "The native bridge is installed but rejects this machine's token, so nothing can talk to it.",
1137
+ `1. Run: ${installCmd} (rewrites the token and the manifest together).`,
1138
+ "2. Click the \u300CNolo \u6D4F\u89C8\u5668\u8FDE\u63A5\u5668\u300D icon in the browser toolbar to restart the bridge with the new token.",
1139
+ `3. Run: ${doctorCmd} to verify.`
1140
+ ];
1141
+ }
1142
+ return [
1143
+ "Nothing is answering on the local bridge yet \u2014 the connector's background service worker is not awake, which is normal rather than a broken install.",
1144
+ `If the extension is already installed: ${wakeHint}.`,
1145
+ installHint,
1146
+ `Then run: ${doctorCmd} to verify.`
1147
+ ];
1148
+ }
1149
+ if (statusOf("extension_handshake") === "fail") {
1150
+ return [
1151
+ `The bridge is answering, but the running ${browserName} build is not what this CLI expects (older protocol, missing features, or another connector copy answering).`,
1152
+ `1. Run: ${reloadCmd} (restarts the extension worker with the files on disk).`,
1153
+ `2. If that does not help, open ${extensionsPage} and click Reload on the Nolo Browser Connector; remove any second copy of the connector.`,
1154
+ `3. Run: ${doctorCmd} to verify.`
1155
+ ];
1156
+ }
1157
+ return [
1158
+ `Every link up to the extension is ready, but a real tab round trip failed${tabs.error ? ` (${tabs.error.code})` : ""} \u2014 usually no controllable window/tab is open.`,
1159
+ `1. Open a normal https:// page in a regular window (${restrictedPages} cannot be controlled).`,
1160
+ "2. Click the \u300CNolo \u6D4F\u89C8\u5668\u8FDE\u63A5\u5668\u300D icon once to wake the worker.",
1161
+ `3. Run: ${doctorCmd} to verify.`
1162
+ ];
1163
+ }
1164
+ async function buildChromeConnectorDoctorReport(args = {}) {
1165
+ const status = await buildChromeConnectorStatus(args);
1166
+ const browser = status.browsers.explicit ?? status.browsers.autoSelected ?? "chrome";
1167
+ const target = status.browsers[browser];
1168
+ const checks = [
1169
+ buildNativeHostDoctorCheck(status, target),
1170
+ buildAuthTokenDoctorCheck(status, target),
1171
+ buildRpcBridgeDoctorCheck(target),
1172
+ buildHandshakeDoctorCheck(target, browser)
1173
+ ];
1174
+ const handshakeReady = checks.find((check) => check.id === "extension_handshake")?.status === "pass" && target.rpc.online;
1175
+ let tabs;
1176
+ if (!handshakeReady) {
1177
+ tabs = { probed: false, count: null };
1178
+ const blocker = target.rpc.online ? "the extension handshake (extension_handshake)" : "the RPC bridge (rpc_bridge)";
1179
+ checks.push({
1180
+ id: "tabs_roundtrip",
1181
+ label: "Tab round trip (list_tabs)",
1182
+ status: "warn",
1183
+ summary: `not run: ${blocker} is not ready, so no real tab round trip can be attempted yet`
1184
+ });
1185
+ } else {
1186
+ const requestFor = makeRequestFor(args, args.browser ?? "chrome");
1187
+ tabs = await probeTabsRoundtrip(requestFor(browser));
1188
+ checks.push({
1189
+ id: "tabs_roundtrip",
1190
+ label: "Tab round trip (list_tabs)",
1191
+ status: tabs.error ? "fail" : "pass",
1192
+ summary: tabs.error ? `list_tabs failed (${tabs.error.code}: ${tabs.error.message})` : `list_tabs returned ${tabs.count} controllable tab(s)`
1193
+ });
1194
+ }
1195
+ const liveChainOk = ["rpc_bridge", "extension_handshake", "tabs_roundtrip"].every(
1196
+ (id) => checks.find((check) => check.id === id)?.status === "pass"
1197
+ );
1198
+ const ok = liveChainOk && !checks.some((check) => check.status === "fail");
1199
+ return {
1200
+ ok,
1201
+ browser,
1202
+ verifyCommand: `nolo browser doctor${browserFlagSuffix(browser)}`,
1203
+ checks,
1204
+ recoverySteps: buildDoctorRecoverySteps({
1205
+ browser,
1206
+ checks,
1207
+ tabs,
1208
+ ok,
1209
+ requiresExplicitBrowser: status.browsers.requiresExplicitBrowser,
1210
+ rpcUnauthorized: target.rpc.error?.code === "UNAUTHORIZED"
1211
+ }),
1212
+ tabs,
1213
+ status
1214
+ };
1215
+ }
1216
+ function formatChromeConnectorDoctor(report) {
1217
+ const mark = (status) => status === "pass" ? "[pass]" : status === "warn" ? "[warn]" : "[FAIL]";
1218
+ const lines = ["Nolo Browser Connector \u2014 doctor"];
1219
+ lines.push(` browser : ${browserLabel(report.browser)}`);
1220
+ lines.push(` endpoint : ${report.status.browsers[report.browser].endpoint}`);
1221
+ if (report.status.browsers.requiresExplicitBrowser) {
1222
+ lines.push(
1223
+ " note : both Chrome and Firefox connectors are online, so every unqualified `nolo browser <op>` fails with MULTIPLE_BROWSERS_AVAILABLE \u2014 pass --browser chrome or --browser firefox."
1224
+ );
1225
+ }
1226
+ lines.push("Checks:");
1227
+ for (const check of report.checks) {
1228
+ lines.push(` ${mark(check.status)} ${check.id.padEnd(19)}: ${check.summary}`);
1229
+ }
1230
+ lines.push(
1231
+ report.ok ? "Result : end-to-end ready." : "Result : not ready yet \u2014 follow the recovery steps below."
1232
+ );
1233
+ lines.push("Recovery:");
1234
+ for (const step of report.recoverySteps) lines.push(` ${step}`);
1235
+ lines.push(`Verify with : ${report.verifyCommand}`);
1236
+ return `${lines.join("\n")}
1237
+ `;
1238
+ }
1239
+ async function runChromeDoctorCommand(args, deps = {}) {
1240
+ const output = deps.output ?? process.stdout;
1241
+ const browser = readBrowserOption(args);
1242
+ if (browser === null) {
1243
+ output.write('[nolo] Browser connector doctor failed: --browser must be "chrome" or "firefox".\n');
1244
+ return 1;
1245
+ }
1246
+ let report;
1247
+ try {
1248
+ report = await buildChromeConnectorDoctorReport({ ...deps, ...browser ? { browser } : {} });
1249
+ } catch (error) {
1250
+ output.write(`[nolo] Browser connector doctor failed: ${toErrorMessage(error)}
1251
+ `);
1252
+ return 1;
1253
+ }
1254
+ if (args.includes("--json")) {
1255
+ output.write(`${JSON.stringify(report, null, 2)}
1256
+ `);
1257
+ } else {
1258
+ output.write(formatChromeConnectorDoctor(report));
1259
+ }
1260
+ return report.ok ? 0 : 1;
1261
+ }
888
1262
  export {
889
1263
  CLI_CONNECTOR_ROOT_CANDIDATES,
890
1264
  FIREFOX_UNAVAILABLE_FEATURES,
891
1265
  FULL_SUPPORT_CHROME_FEATURES,
1266
+ buildChromeConnectorDoctorReport,
892
1267
  buildChromeConnectorStatus,
893
1268
  compareDeployShas,
894
1269
  detectWorktreeCheckout,
895
1270
  expectedFeaturesForBrowser,
896
1271
  fetchOnlineBuildSha,
1272
+ formatChromeConnectorDoctor,
897
1273
  formatChromeConnectorStatus,
898
1274
  resolveCliConnectorRoot,
899
1275
  resolveConnectorBrowser,
900
1276
  resolveLocalHeadSha,
1277
+ runChromeDoctorCommand,
901
1278
  runChromeInstallCommand,
902
1279
  runChromeReloadCommand,
903
1280
  runChromeStatusCommand
@@ -13,7 +13,7 @@ import "./chunk-OLZBQWZU.js";
13
13
  import "./chunk-LCBAMY2M.js";
14
14
  import {
15
15
  t
16
- } from "./chunk-YFRJAE3R.js";
16
+ } from "./chunk-OGZE6BZG.js";
17
17
  import {
18
18
  toErrorMessage
19
19
  } from "./chunk-HNMXYYJR.js";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  selectCurrentServer,
3
3
  selectRemoteServers
4
- } from "./chunk-ZQUCJBS4.js";
4
+ } from "./chunk-G3SJCNHX.js";
5
5
  import {
6
6
  noloDeleteRequest,
7
7
  noloWriteRequest
8
- } from "./chunk-7OTNBI77.js";
8
+ } from "./chunk-T3CUXNV4.js";
9
9
  import {
10
10
  normalizeTimeFields
11
- } from "./chunk-C3GOEQJF.js";
11
+ } from "./chunk-5PASH2MB.js";
12
12
  import {
13
13
  selectIdentityUser,
14
14
  selectIdentityUserId
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-FCAMGBLY.js";
4
+ } from "./chunk-YDWMJOCW.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-Y5RN44VH.js";
7
+ } from "./chunk-K3GJXP2N.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-EIFSCI4C.js";
11
- import {
12
- applyToolSurfaceConstraints
13
- } from "./chunk-VS276URX.js";
10
+ } from "./chunk-JHHAIL34.js";
14
11
  import {
15
12
  resolveLocalRuntimeEnvFromPolicy
16
13
  } from "./chunk-USGHJSGO.js";
17
14
  import {
18
15
  asRecordOrEmpty
19
16
  } from "./chunk-KX6YBIHG.js";
17
+ import {
18
+ applyToolSurfaceConstraints
19
+ } from "./chunk-NEG5LYK5.js";
20
20
  import {
21
21
  ownedAgentKey
22
22
  } from "./chunk-M2EJHDJP.js";
@@ -38,7 +38,7 @@ import {
38
38
  } from "./chunk-4O22PGNQ.js";
39
39
  import {
40
40
  t
41
- } from "./chunk-YFRJAE3R.js";
41
+ } from "./chunk-OGZE6BZG.js";
42
42
  import {
43
43
  toErrorMessage
44
44
  } from "./chunk-HNMXYYJR.js";
@@ -0,0 +1,21 @@
1
+ import {
2
+ cloudflareModels,
3
+ gmiModels,
4
+ openrouterModels,
5
+ platformHostedModels,
6
+ zaiModels
7
+ } from "./chunk-O5MEXHJW.js";
8
+
9
+ // packages/ai/llm/models.ts
10
+ var withProvider = (provider) => (models) => models.map((model) => ({ ...model, provider }));
11
+ var ALL_MODELS = [
12
+ ...withProvider("nolo")(platformHostedModels),
13
+ ...withProvider("openrouter")(openrouterModels),
14
+ ...withProvider("cloudflare")(cloudflareModels),
15
+ ...withProvider("gmi")(gmiModels),
16
+ ...withProvider("zai")(zaiModels)
17
+ ];
18
+
19
+ export {
20
+ ALL_MODELS
21
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  gBase64
3
- } from "./chunk-X7IA2B7R.js";
3
+ } from "./chunk-WBSJAIZP.js";
4
4
  import {
5
5
  createClientLogger
6
6
  } from "./chunk-QQ56R7KS.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-7DPNBQSV.js";
13
13
  import {
14
14
  isPublicBuiltinPlatformAgentKey
15
- } from "./chunk-WRKMXMU7.js";
15
+ } from "./chunk-KZAT2M2V.js";
16
16
  import {
17
17
  API_ENDPOINTS,
18
18
  NOLO_CLUSTER_SERVERS,