nolo-cli 0.108.0-alpha.2 → 0.108.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.
- package/README.md +1 -1
- package/{_executeModel-BY3P5LBB.js → _executeModel-T7PIVJIW.js} +128 -83
- package/action-RHUT4OHH.js +23 -0
- package/{addContentAction-MB2HHMDZ.js → addContentAction-BQ3LJLUW.js} +19 -13
- package/{addDialogAgentAction-MCEABSBA.js → addDialogAgentAction-B6X7BXR4.js} +24 -20
- package/{agentDeleteCommand-66KXCSRR.js → agentDeleteCommand-VIDCZAFG.js} +154 -68
- package/{agentEmailCommands-63UTONDK.js → agentEmailCommands-PCHDY4ZP.js} +125 -105
- package/{agentGrantCommands-M3XFO6EN.js → agentGrantCommands-HOJ3JBBQ.js} +3 -3
- package/agentListCommands-QNUAN3YH.js +800 -0
- package/{agentMachineCommands-Z6RGPZSG.js → agentMachineCommands-C2TMTQNU.js} +54 -58
- package/{agentProviderCommands-X3UNW77C.js → agentProviderCommands-7PCGR77I.js} +97 -2
- package/{agentPullCommand-O5MPVJ5E.js → agentPullCommand-7GCDM4BK.js} +7 -7
- package/agentRecordCommands-T4XAUFF5.js +149 -0
- package/agentRunCommand-T3AW43I6.js +179 -0
- package/{agentRunControl-AVJR4JW4.js → agentRunControl-2CDZNHXV.js} +10 -2
- package/{agentRuntimeLocal-E67CTV45.js → agentRuntimeLocal-SQUDRZWE.js} +41 -46
- package/{agentSlice-DG5TIQHE.js → agentSlice-HBGFNXUG.js} +22 -16
- package/{appDeleteCommands-Z36CLGUK.js → appDeleteCommands-CLLYGEBC.js} +55 -56
- package/{appDeployCommands-ECMUWG6S.js → appDeployCommands-HY2NBNDQ.js} +64 -60
- package/{appDeployStatusCommands-CL24TDMA.js → appDeployStatusCommands-SGO5GEXH.js} +53 -53
- package/{appGetCommands-ITHGOYGJ.js → appGetCommands-ZPYK2N5D.js} +53 -53
- package/{appListCommands-EEOSI6RC.js → appListCommands-O2BHIMKS.js} +54 -56
- package/{authCommand-HGP2XTKC.js → authCommand-GUIREPHK.js} +132 -83
- package/{authCommands-RGOGCPP6.js → authCommands-K3BDSTJ4.js} +10 -7
- package/{builtinSkillRegistry-FUAVTRVZ.js → builtinSkillRegistry-MUOUTRNJ.js} +13 -10
- package/{chromeCommands-FZYAU75D.js → chromeCommands-Z2WRJB7O.js} +290 -38
- package/{chromeOpsCommands-62P2Q2YB.js → chromeOpsCommands-YWYXZTIR.js} +157 -23
- package/{chunk-2F7RJC6L.js → chunk-2C47W7IJ.js} +1 -1
- package/chunk-2DRYS3G3.js +13941 -0
- package/{chunk-VLTIYV3X.js → chunk-2ECUZDEL.js} +37 -11
- package/{chunk-LPIYPEME.js → chunk-2FY3GHBV.js} +1449 -1094
- package/{chunk-ALXHV7NK.js → chunk-2GGXHQIW.js} +43 -4
- package/{chunk-AHAHBQMU.js → chunk-2OMUAIKR.js} +2 -2
- package/{chunk-DHDMC6FO.js → chunk-3CZM6HGQ.js} +53 -23
- package/{chunk-BNGW5ASC.js → chunk-3LI5UCTU.js} +23 -3
- package/{chunk-FDTR4QJ6.js → chunk-3MZAGMYY.js} +48 -1
- package/chunk-3PVYUPXK.js +40 -0
- package/{chunk-FV3JEYR3.js → chunk-3SK3J3IF.js} +69 -10
- package/chunk-4LCOCOR5.js +50 -0
- package/{chunk-V7E4PXQD.js → chunk-4MSYSHZD.js} +15 -7
- package/{chunk-2GRGFCF6.js → chunk-4VJAC32I.js} +2 -1
- package/{chunk-MP64VFGD.js → chunk-4XEYAFLY.js} +60 -18
- package/chunk-4YRTZIVN.js +871 -0
- package/{chunk-MC4XLIJ7.js → chunk-523DITKR.js} +1 -1
- package/{chunk-N7J63Q6C.js → chunk-56GBUMO5.js} +10 -1
- package/chunk-5MMAK75Q.js +15 -0
- package/{chunk-KZJP33ZK.js → chunk-5WLADF62.js} +90 -36
- package/chunk-5XN3OSCT.js +164 -0
- package/{chunk-T3GEOSRJ.js → chunk-5YJWHTKD.js} +69 -57
- package/chunk-6CCAXGFK.js +1712 -0
- package/{chunk-42V6BK2E.js → chunk-6MXDOUMH.js} +18 -36
- package/{chunk-QOKAKDPE.js → chunk-6Q7UTJKR.js} +6 -94
- package/{chunk-J4MOO56S.js → chunk-6VRWNU5J.js} +10 -2
- package/{chunk-IQPFGYO3.js → chunk-726TCFLQ.js} +5 -5
- package/{chunk-CW67PN7L.js → chunk-7B3BVGU3.js} +61 -11
- package/chunk-7DPNBQSV.js +9 -0
- package/{chunk-LWKP7AWH.js → chunk-A337PRRR.js} +41 -17
- package/chunk-AGIM7IMJ.js +147 -0
- package/chunk-AI7XJMMQ.js +1858 -0
- package/{chunk-ABQYVJBJ.js → chunk-AIZE5TDM.js} +3 -3
- package/{chunk-LJ5VW2UJ.js → chunk-ALKCVCA5.js} +4 -4
- package/{chunk-5UTFL4QJ.js → chunk-APO5TOXO.js} +1 -1
- package/{chunk-E4MARS3Q.js → chunk-AU7AXHUL.js} +1 -1
- package/{chunk-DOTZ5GTO.js → chunk-AWYWIWTU.js} +310 -95
- package/chunk-B77W7P7J.js +95 -0
- package/{chunk-PBA4UJBK.js → chunk-BFYDNHYW.js} +12 -12
- package/{chunk-QTGQ2LTL.js → chunk-BIAETTOB.js} +5 -9
- package/{chunk-OIVSQH2O.js → chunk-CGEK73JN.js} +311 -12
- package/chunk-CHOZJMJS.js +78 -0
- package/{chunk-GBRG75BQ.js → chunk-D2MDMY2M.js} +1 -0
- package/{chunk-TRV2MIDW.js → chunk-EXAJ6DCR.js} +1 -0
- package/chunk-EYLGAEB4.js +784 -0
- package/{chunk-3BMYXEUW.js → chunk-F2UJW3EK.js} +1 -1
- package/{chunk-RVE4DCV3.js → chunk-FBLRSLZH.js} +26 -31
- package/{chunk-P5EVSOPA.js → chunk-FWY6BHIJ.js} +363 -248
- package/{chunk-4MK3I7Y4.js → chunk-G23MQWLJ.js} +7 -128
- package/chunk-G6OOUQWJ.js +417 -0
- package/{chunk-WV42OMV7.js → chunk-GHZ2H2HJ.js} +11 -15
- package/chunk-I42VC5KR.js +15 -0
- package/{chunk-H4AHY5BU.js → chunk-IFALJPEX.js} +69 -20
- package/{chunk-O6OSWFZQ.js → chunk-IHPDK6UD.js} +6 -0
- package/{chunk-UKWGR5SS.js → chunk-IJERIUXS.js} +242 -1146
- package/chunk-IN5UVHHP.js +843 -0
- package/{chunk-QDSINZM3.js → chunk-IXH3HKY2.js} +1 -22
- package/{chunk-SYXOBWOC.js → chunk-JGLKZGGZ.js} +124 -703
- package/chunk-JJM3WS6W.js +132 -0
- package/{chunk-TR22GEUU.js → chunk-JKDL7BRF.js} +20 -11
- package/chunk-JONVI6DK.js +593 -0
- package/{chunk-SH43IESU.js → chunk-KQ7DAEZ7.js} +202 -32
- package/chunk-KWEDNOZZ.js +7546 -0
- package/{chunk-6OZ36FXI.js → chunk-KY6GPQ7O.js} +36 -12
- package/{chunk-RZGLXO2B.js → chunk-L5YKEQLD.js} +1715 -451
- package/{chunk-MRIHM22T.js → chunk-LAVSW2C2.js} +77 -144
- package/{chunk-HSSRGGXJ.js → chunk-LNEKN523.js} +10 -7
- package/chunk-LWLNLZC5.js +265 -0
- package/{chunk-YTLRHRH3.js → chunk-MDOZSLDE.js} +17 -15
- package/{chunk-I3TQJXQ7.js → chunk-MHD5JBSS.js} +131 -10
- package/{chunk-QU7KDSZX.js → chunk-MW533QT3.js} +190 -8
- package/{chunk-4NNTATRH.js → chunk-NLEJWKF5.js} +10394 -8549
- package/{chunk-BFU6C242.js → chunk-NMFV26UG.js} +1 -1
- package/{chunk-GQBOR3G6.js → chunk-NN4UUYGB.js} +18 -4
- package/{chunk-FZGV4FGK.js → chunk-NUHHBEJC.js} +378 -187
- package/chunk-OKARGYFT.js +15 -0
- package/{chunk-KQHGZWSV.js → chunk-OXME3PEE.js} +1 -1
- package/{chunk-Z5625XML.js → chunk-OYBAT7RT.js} +113 -17
- package/chunk-P3SFAHIL.js +134 -0
- package/{chunk-XD2MJFUG.js → chunk-PBGO5AFD.js} +1 -1
- package/{chunk-EYAQT56M.js → chunk-PFEK4SA2.js} +13 -10
- package/{chunk-Z77CRGTW.js → chunk-PHHFVGOJ.js} +1 -1
- package/{chunk-3VNWWVKB.js → chunk-PJNFNEJE.js} +114 -28
- package/{chunk-HVURBGF3.js → chunk-PWRS2SU2.js} +27 -9
- package/chunk-QFEW2ULV.js +42 -0
- package/{chunk-IIVGDG4I.js → chunk-QLQ573SU.js} +124 -77
- package/chunk-QQ56R7KS.js +88 -0
- package/{chunk-PWBDVI4R.js → chunk-QRFI5NHO.js} +269 -141
- package/chunk-QYPE3TS3.js +43 -0
- package/{chunk-VMFTFOWF.js → chunk-RLRYVSCD.js} +31 -14
- package/{chunk-VRTTFDBM.js → chunk-RNNWTMKT.js} +56 -63
- package/{chunk-JRQFUXY7.js → chunk-RRQQAG7W.js} +93 -24
- package/chunk-SJ3QFSQS.js +1147 -0
- package/{chunk-Q67DOFOO.js → chunk-SZC4REES.js} +212 -105
- package/{chunk-BYMV6QZG.js → chunk-TNIX77YM.js} +4 -0
- package/{chunk-GNCCNNZD.js → chunk-TSBCYK5F.js} +7 -7
- package/chunk-TY3TIUJK.js +89 -0
- package/chunk-U4STABYN.js +81 -0
- package/chunk-UEILX4EV.js +15 -0
- package/{chunk-AODJ7WSF.js → chunk-UIYVU3S4.js} +90 -79
- package/{chunk-YYLHWIW6.js → chunk-UKZX3NHN.js} +1 -1
- package/{chunk-7S4YWN7P.js → chunk-V2UPLOXT.js} +4 -4
- package/{chunk-LS2ZANRJ.js → chunk-V6WXGTUJ.js} +1 -1
- package/{chunk-6YTOJY35.js → chunk-VBG7GWWR.js} +253 -8
- package/{chunk-DVINR3PL.js → chunk-VEA7H5FG.js} +3 -3
- package/chunk-VIWDGTDA.js +8 -0
- package/chunk-VJVNU77E.js +83 -0
- package/{chunk-EADNWBAZ.js → chunk-VP3BINY7.js} +13 -0
- package/{chunk-HKNXJGEC.js → chunk-VSPO4S33.js} +47 -192
- package/{chunk-PHXD6JTX.js → chunk-W2N3ZC4P.js} +7 -7
- package/{chunk-EOARMOVD.js → chunk-W4S6OTSC.js} +6 -3
- package/{chunk-6Z7MY3V7.js → chunk-WCQNEMXG.js} +3 -3
- package/chunk-WJZOQR2J.js +151 -0
- package/{chunk-BFDFRLLQ.js → chunk-WW2USJ3C.js} +3 -3
- package/chunk-X5BIY654.js +29 -0
- package/{chunk-Q554LLSI.js → chunk-XETG4RIX.js} +5 -5
- package/{chunk-3L2WKC3W.js → chunk-XPWGOTBQ.js} +8 -1
- package/{chunk-2OASQKU2.js → chunk-XRXYRHE5.js} +187 -16
- package/{chunk-JEDZAO7L.js → chunk-YBNHPX4S.js} +257 -37
- package/{chunk-JPGCXHNM.js → chunk-YLMMECCH.js} +1 -1
- package/{chunk-6D6VBVEW.js → chunk-YVTZMLXZ.js} +96 -25
- package/{chunk-G4VIHCGJ.js → chunk-ZR5RAAVI.js} +35 -30
- package/chunk-ZRAU6T47.js +56 -0
- package/{chunk-ONXOABJR.js → chunk-ZWQUWF6W.js} +36 -1
- package/{cliExecutor-HG3S345O.js → cliExecutor-AWYR3T33.js} +1 -1
- package/commandRegistry-3XWUYELA.js +839 -0
- package/contentThunks-ALRPUDRE.js +83 -0
- package/{cooldownCommands-REAWYVTY.js → cooldownCommands-JFKTYS2D.js} +2 -2
- package/{createAgentAutomationAction-7HX7KBES.js → createAgentAutomationAction-XXRXCDFJ.js} +51 -43
- package/createDialogAction-FVSAW7WZ.js +75 -0
- package/{createPageAction-QWNMGO3O.js → createPageAction-RT6DPYP5.js} +60 -51
- package/{chunk-UDIIVXKA.js → cursorProvider-YGGNMVWX.js} +2822 -10269
- package/{dbSlice-A6C6H32X.js → dbSlice-JQFBMJ55.js} +18 -12
- package/{deleteFile-YG6QMJLU.js → deleteFile-6JWDDRVP.js} +9 -5
- package/dialogCommands-K734RXEQ.js +108 -0
- package/{dialogSlice-P2K47T3P.js → dialogSlice-GFCT74GI.js} +66 -41
- package/{dist-VODFSGNG.js → dist-NJC2W7I4.js} +61 -54
- package/{docCreateCommands-43JKQEIH.js → docCreateCommands-N3KPGP4A.js} +51 -54
- package/{docDeleteCommands-RL6D46XE.js → docDeleteCommands-4CR4TXZ7.js} +53 -55
- package/{docReadCommands-TOEUEQDG.js → docReadCommands-62XK57VS.js} +50 -53
- package/{docStore-3AHKTJRI.js → docStore-Z7KBPFXX.js} +24 -15
- package/{docUpdateCommands-FWU5G2XB.js → docUpdateCommands-DRAAWIDC.js} +51 -54
- package/{fetchMessages-EIU7UFFK.js → fetchMessages-LM6OMMQQ.js} +5 -4
- package/{getPricing-LUSEABA6.js → getPricing-XDF4OLTC.js} +6 -6
- package/handleSendMessageAction-NRKUSHK2.js +1849 -0
- package/index.js +91 -884
- package/{lib-FRRS27KN.js → lib-PU2G2MSO.js} +523 -191
- package/{localDialogRead-BTFJ4V2I.js → localDialogRead-BOETO2TD.js} +2 -2
- package/localRuntimeAdapter-S6UEEOSA.js +239 -0
- package/{localRuntimeAuthority-6IR6BBXE.js → localRuntimeAuthority-YSE6NH7B.js} +12 -9
- package/{localRuntimeDb-SYQGUF4U.js → localRuntimeDb-7FBKDEQY.js} +1 -1
- package/{machineCommands-TTKK4F7C.js → machineCommands-IQYHOOVH.js} +493 -152
- package/machineWsRunDispatch-3ZUMZUGP.js +164 -0
- package/{memberThunks-P2ECUJ56.js → memberThunks-Y3Q7GZTG.js} +24 -17
- package/{models-T3SG6MJ5.js → models-6V4ZCHEE.js} +2 -2
- package/node_modules/abstract-level/CHANGELOG.md +150 -0
- package/node_modules/abstract-level/LICENSE +21 -0
- package/node_modules/abstract-level/README.md +1957 -0
- package/node_modules/abstract-level/UPGRADING.md +669 -0
- package/node_modules/abstract-level/abstract-chained-batch.js +397 -0
- package/node_modules/abstract-level/abstract-iterator.js +404 -0
- package/node_modules/abstract-level/abstract-level.js +1127 -0
- package/node_modules/abstract-level/abstract-snapshot.js +84 -0
- package/node_modules/abstract-level/index.d.ts +52 -0
- package/node_modules/abstract-level/index.js +9 -0
- package/node_modules/abstract-level/lib/abstract-sublevel-iterator.js +141 -0
- package/node_modules/abstract-level/lib/abstract-sublevel.js +290 -0
- package/node_modules/abstract-level/lib/common.js +33 -0
- package/node_modules/abstract-level/lib/default-chained-batch.js +29 -0
- package/node_modules/abstract-level/lib/default-kv-iterator.js +74 -0
- package/node_modules/abstract-level/lib/deferred-iterator.js +110 -0
- package/node_modules/abstract-level/lib/deferred-queue.js +84 -0
- package/node_modules/abstract-level/lib/errors.js +21 -0
- package/node_modules/abstract-level/lib/event-monitor.js +30 -0
- package/node_modules/abstract-level/lib/hooks.js +78 -0
- package/node_modules/abstract-level/lib/prefixes.js +21 -0
- package/node_modules/abstract-level/lib/prewrite-batch.js +96 -0
- package/node_modules/abstract-level/lib/range-options.js +26 -0
- package/node_modules/abstract-level/package.json +66 -0
- package/node_modules/abstract-level/test/async-iterator-test.js +132 -0
- package/node_modules/abstract-level/test/batch-test.js +214 -0
- package/node_modules/abstract-level/test/chained-batch-test.js +315 -0
- package/node_modules/abstract-level/test/clear-range-test.js +262 -0
- package/node_modules/abstract-level/test/clear-test.js +110 -0
- package/node_modules/abstract-level/test/common.js +90 -0
- package/node_modules/abstract-level/test/deferred-open-test.js +209 -0
- package/node_modules/abstract-level/test/del-test.js +65 -0
- package/node_modules/abstract-level/test/encoding-buffer-test.js +336 -0
- package/node_modules/abstract-level/test/encoding-custom-test.js +92 -0
- package/node_modules/abstract-level/test/encoding-decode-error-test.js +85 -0
- package/node_modules/abstract-level/test/encoding-json-test.js +75 -0
- package/node_modules/abstract-level/test/encoding-test.js +130 -0
- package/node_modules/abstract-level/test/events/write.js +132 -0
- package/node_modules/abstract-level/test/factory-test.js +36 -0
- package/node_modules/abstract-level/test/get-many-test.js +157 -0
- package/node_modules/abstract-level/test/get-sync-test.js +61 -0
- package/node_modules/abstract-level/test/get-test.js +83 -0
- package/node_modules/abstract-level/test/has-many-test.js +144 -0
- package/node_modules/abstract-level/test/has-test.js +81 -0
- package/node_modules/abstract-level/test/hooks/newsub.js +57 -0
- package/node_modules/abstract-level/test/hooks/postopen.js +229 -0
- package/node_modules/abstract-level/test/hooks/prewrite.js +816 -0
- package/node_modules/abstract-level/test/hooks/shared.js +38 -0
- package/node_modules/abstract-level/test/index.js +86 -0
- package/node_modules/abstract-level/test/iterator-explicit-snapshot-test.js +393 -0
- package/node_modules/abstract-level/test/iterator-no-snapshot-test.js +49 -0
- package/node_modules/abstract-level/test/iterator-range-test.js +277 -0
- package/node_modules/abstract-level/test/iterator-seek-test.js +335 -0
- package/node_modules/abstract-level/test/iterator-snapshot-test.js +56 -0
- package/node_modules/abstract-level/test/iterator-test.js +621 -0
- package/node_modules/abstract-level/test/manifest-test.js +21 -0
- package/node_modules/abstract-level/test/open-create-if-missing-test.js +39 -0
- package/node_modules/abstract-level/test/open-error-if-exists-test.js +25 -0
- package/node_modules/abstract-level/test/open-test.js +263 -0
- package/node_modules/abstract-level/test/put-get-del-test.js +97 -0
- package/node_modules/abstract-level/test/put-test.js +70 -0
- package/node_modules/abstract-level/test/self/abstract-iterator-test.js +182 -0
- package/node_modules/abstract-level/test/self/async-iterator-test.js +242 -0
- package/node_modules/abstract-level/test/self/attach-resource-test.js +74 -0
- package/node_modules/abstract-level/test/self/defer-test.js +140 -0
- package/node_modules/abstract-level/test/self/deferred-iterator-test.js +314 -0
- package/node_modules/abstract-level/test/self/deferred-operations-test.js +86 -0
- package/node_modules/abstract-level/test/self/deferred-queue-test.js +93 -0
- package/node_modules/abstract-level/test/self/encoding-test.js +391 -0
- package/node_modules/abstract-level/test/self/errors-test.js +11 -0
- package/node_modules/abstract-level/test/self/iterator-test.js +1050 -0
- package/node_modules/abstract-level/test/self/sublevel-test.js +1039 -0
- package/node_modules/abstract-level/test/self.js +905 -0
- package/node_modules/abstract-level/test/sublevel-test.js +209 -0
- package/node_modules/abstract-level/test/traits/closed.js +42 -0
- package/node_modules/abstract-level/test/traits/index.js +4 -0
- package/node_modules/abstract-level/test/traits/open.js +62 -0
- package/node_modules/abstract-level/test/util.js +275 -0
- package/node_modules/abstract-level/types/abstract-chained-batch.d.ts +124 -0
- package/node_modules/abstract-level/types/abstract-iterator.d.ts +241 -0
- package/node_modules/abstract-level/types/abstract-level.d.ts +636 -0
- package/node_modules/abstract-level/types/abstract-snapshot.d.ts +30 -0
- package/node_modules/abstract-level/types/abstract-sublevel.d.ts +76 -0
- package/node_modules/abstract-level/types/interfaces.d.ts +43 -0
- package/node_modules/base64-js/LICENSE +21 -0
- package/node_modules/base64-js/README.md +34 -0
- package/node_modules/base64-js/base64js.min.js +1 -0
- package/node_modules/base64-js/index.d.ts +3 -0
- package/node_modules/base64-js/index.js +150 -0
- package/node_modules/base64-js/package.json +47 -0
- package/node_modules/browser-level/CHANGELOG.md +44 -0
- package/node_modules/browser-level/LICENSE +21 -0
- package/node_modules/browser-level/README.md +124 -0
- package/node_modules/browser-level/UPGRADING.md +143 -0
- package/node_modules/browser-level/index.d.ts +108 -0
- package/node_modules/browser-level/index.js +323 -0
- package/node_modules/browser-level/iterator.js +239 -0
- package/node_modules/browser-level/package.json +48 -0
- package/node_modules/browser-level/util/clear.js +38 -0
- package/node_modules/browser-level/util/deserialize.js +17 -0
- package/node_modules/browser-level/util/key-range.js +20 -0
- package/node_modules/buffer/AUTHORS.md +73 -0
- package/node_modules/buffer/LICENSE +21 -0
- package/node_modules/buffer/README.md +410 -0
- package/node_modules/buffer/index.d.ts +194 -0
- package/node_modules/buffer/index.js +2106 -0
- package/node_modules/buffer/package.json +93 -0
- package/node_modules/classic-level/CHANGELOG.md +115 -0
- package/node_modules/classic-level/LICENSE +21 -0
- package/node_modules/classic-level/README.md +274 -0
- package/node_modules/classic-level/UPGRADING.md +131 -0
- package/node_modules/classic-level/binding.cc +2652 -0
- package/node_modules/classic-level/binding.gyp +71 -0
- package/node_modules/classic-level/binding.js +1 -0
- package/node_modules/classic-level/chained-batch.js +35 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/LICENSE +27 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/Makefile +424 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/build_detect_platform +256 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/autocompact_test.cc +118 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/builder.cc +88 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/builder.h +34 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/c.cc +595 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/c_test.c +390 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/corruption_test.cc +374 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_bench.cc +1020 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_impl.cc +1568 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_impl.h +212 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_iter.cc +317 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_iter.h +28 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_test.cc +2158 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/dbformat.cc +140 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/dbformat.h +230 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/dbformat_test.cc +112 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/dumpfile.cc +225 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/fault_injection_test.cc +554 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/filename.cc +144 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/filename.h +85 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/filename_test.cc +123 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/leveldbutil.cc +64 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_format.h +35 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_reader.cc +284 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_reader.h +113 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_test.cc +591 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_writer.cc +112 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_writer.h +54 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/memtable.cc +145 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/memtable.h +89 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/recovery_test.cc +324 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/repair.cc +461 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/skiplist.h +384 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/skiplist_test.cc +378 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/snapshot.h +67 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/table_cache.cc +127 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/table_cache.h +61 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_edit.cc +266 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_edit.h +107 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_edit_test.cc +46 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_set.cc +1535 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_set.h +399 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_set_test.cc +179 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/write_batch.cc +147 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/write_batch_internal.h +50 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/write_batch_test.cc +120 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/helpers/memenv/memenv.cc +398 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/helpers/memenv/memenv.h +20 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/helpers/memenv/memenv_test.cc +241 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/c.h +290 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/cache.h +110 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/comparator.h +63 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/db.h +164 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/dumpfile.h +25 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/env.h +351 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/filter_policy.h +70 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/iterator.h +100 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/options.h +213 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/slice.h +109 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/status.h +112 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/table.h +85 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/table_builder.h +92 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/value_sink.h +26 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/write_batch.h +64 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/issues/issue178_test.cc +92 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/issues/issue200_test.cc +59 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/atomic_pointer.h +242 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port.h +21 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port_example.h +141 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port_posix.cc +53 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port_posix.h +156 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port_posix_sse.cc +129 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/thread_annotations.h +60 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/win/stdint.h +24 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/block.cc +268 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/block.h +44 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/block_builder.cc +109 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/block_builder.h +57 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/filter_block.cc +111 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/filter_block.h +68 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/filter_block_test.cc +128 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/format.cc +144 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/format.h +108 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/iterator.cc +67 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/iterator_wrapper.h +66 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/merger.cc +197 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/merger.h +26 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/table.cc +285 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/table_builder.cc +270 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/table_test.cc +876 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/two_level_iterator.cc +182 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/two_level_iterator.h +34 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/arena.cc +68 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/arena.h +68 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/arena_test.cc +68 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/bloom.cc +95 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/bloom_test.cc +162 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/cache.cc +405 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/cache_test.cc +226 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/coding.cc +194 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/coding.h +104 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/coding_test.cc +196 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/comparator.cc +81 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/crc32c.cc +350 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/crc32c.h +45 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/crc32c_test.cc +72 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env.cc +100 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env_posix.cc +695 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env_posix_test.cc +66 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env_posix_test_helper.h +28 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env_test.cc +106 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/filter_policy.cc +11 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/hash.cc +52 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/hash.h +19 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/hash_test.cc +54 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/histogram.cc +139 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/histogram.h +42 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/logging.cc +72 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/logging.h +43 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/mutexlock.h +41 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/options.cc +30 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/posix_logger.h +98 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/random.h +64 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/status.cc +75 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/testharness.cc +77 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/testharness.h +138 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/testutil.cc +51 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/testutil.h +63 -0
- package/node_modules/classic-level/deps/leveldb/leveldb.gyp +282 -0
- package/node_modules/classic-level/deps/leveldb/patches/001-value-sink.patch +164 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/atomic_pointer_win.h +48 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/env_win.cc +692 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/port_uv.cc +36 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/port_uv.h +157 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/port_uv.h.bak +153 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/stdint-msvc2008.h +247 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/uv_condvar.h +45 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/uv_condvar_posix.cc +139 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/win_logger.cc +79 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/win_logger.h +28 -0
- package/node_modules/classic-level/deps/snappy/freebsd/config.h +135 -0
- package/node_modules/classic-level/deps/snappy/freebsd/snappy-stubs-public.h +100 -0
- package/node_modules/classic-level/deps/snappy/linux/config.h +135 -0
- package/node_modules/classic-level/deps/snappy/linux/snappy-stubs-public.h +100 -0
- package/node_modules/classic-level/deps/snappy/mac/config.h +137 -0
- package/node_modules/classic-level/deps/snappy/mac/snappy-stubs-public.h +100 -0
- package/node_modules/classic-level/deps/snappy/openbsd/config.h +135 -0
- package/node_modules/classic-level/deps/snappy/openbsd/snappy-stubs-public.h +100 -0
- package/node_modules/classic-level/deps/snappy/snappy/COPYING +54 -0
- package/node_modules/classic-level/deps/snappy/snappy/cmake/SnappyConfig.cmake +1 -0
- package/node_modules/classic-level/deps/snappy/snappy/cmake/config.h.in +62 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-c.cc +90 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-c.h +138 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-internal.h +224 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-sinksource.cc +104 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-sinksource.h +182 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-stubs-internal.cc +42 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-stubs-internal.h +561 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-stubs-public.h.in +94 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-test.cc +612 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-test.h +573 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy.cc +1515 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy.h +203 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy_unittest.cc +1410 -0
- package/node_modules/classic-level/deps/snappy/snappy.gyp +119 -0
- package/node_modules/classic-level/deps/snappy/solaris/config.h +135 -0
- package/node_modules/classic-level/deps/snappy/solaris/snappy-stubs-public.h +100 -0
- package/node_modules/classic-level/deps/snappy/win32/config.h +29 -0
- package/node_modules/classic-level/deps/snappy/win32/snappy-stubs-public.h +100 -0
- package/node_modules/classic-level/index.d.ts +343 -0
- package/node_modules/classic-level/index.js +311 -0
- package/node_modules/classic-level/iterator.js +122 -0
- package/node_modules/classic-level/package.json +70 -0
- package/node_modules/classic-level/prebuilds/android-arm/classic-level.armv7.node +0 -0
- package/node_modules/classic-level/prebuilds/android-arm64/classic-level.armv8.node +0 -0
- package/node_modules/classic-level/prebuilds/darwin-x64+arm64/classic-level.node +0 -0
- package/node_modules/classic-level/prebuilds/linux-arm/classic-level.armv6.node +0 -0
- package/node_modules/classic-level/prebuilds/linux-arm/classic-level.armv7.node +0 -0
- package/node_modules/classic-level/prebuilds/linux-arm64/classic-level.armv8.node +0 -0
- package/node_modules/classic-level/prebuilds/linux-x64/classic-level.musl.node +0 -0
- package/node_modules/classic-level/prebuilds/linux-x64/classic-level.node +0 -0
- package/node_modules/classic-level/prebuilds/win32-ia32/classic-level.node +0 -0
- package/node_modules/classic-level/prebuilds/win32-x64/classic-level.node +0 -0
- package/node_modules/ieee754/LICENSE +11 -0
- package/node_modules/ieee754/README.md +51 -0
- package/node_modules/ieee754/index.d.ts +10 -0
- package/node_modules/ieee754/index.js +85 -0
- package/node_modules/ieee754/package.json +52 -0
- package/node_modules/is-buffer/LICENSE +21 -0
- package/node_modules/is-buffer/README.md +54 -0
- package/node_modules/is-buffer/index.d.ts +2 -0
- package/node_modules/is-buffer/index.js +11 -0
- package/node_modules/is-buffer/package.json +65 -0
- package/node_modules/level/CHANGELOG.md +532 -0
- package/node_modules/level/LICENSE +21 -0
- package/node_modules/level/README.md +107 -0
- package/node_modules/level/UPGRADING.md +413 -0
- package/node_modules/level/browser.js +1 -0
- package/node_modules/level/index.d.ts +75 -0
- package/node_modules/level/index.js +1 -0
- package/node_modules/level/package.json +62 -0
- package/node_modules/level-supports/CHANGELOG.md +140 -0
- package/node_modules/level-supports/LICENSE +21 -0
- package/node_modules/level-supports/README.md +276 -0
- package/node_modules/level-supports/index.d.ts +137 -0
- package/node_modules/level-supports/index.js +26 -0
- package/node_modules/level-supports/package.json +46 -0
- package/node_modules/level-supports/test/cloneable.js +26 -0
- package/node_modules/level-supports/test/index.js +24 -0
- package/node_modules/level-supports/test/self.js +86 -0
- package/node_modules/level-supports/test/shape.js +23 -0
- package/node_modules/level-transcoder/CHANGELOG.md +15 -0
- package/node_modules/level-transcoder/LICENSE +21 -0
- package/node_modules/level-transcoder/README.md +214 -0
- package/node_modules/level-transcoder/UPGRADING.md +13 -0
- package/node_modules/level-transcoder/index.d.ts +27 -0
- package/node_modules/level-transcoder/index.js +158 -0
- package/node_modules/level-transcoder/lib/encoding.d.ts +158 -0
- package/node_modules/level-transcoder/lib/encoding.js +105 -0
- package/node_modules/level-transcoder/lib/encodings.d.ts +9 -0
- package/node_modules/level-transcoder/lib/encodings.js +135 -0
- package/node_modules/level-transcoder/lib/formats.d.ts +13 -0
- package/node_modules/level-transcoder/lib/formats.js +111 -0
- package/node_modules/level-transcoder/lib/text-endec.d.ts +6 -0
- package/node_modules/level-transcoder/lib/text-endec.js +19 -0
- package/node_modules/level-transcoder/package.json +46 -0
- package/node_modules/maybe-combine-errors/LICENSE.md +21 -0
- package/node_modules/maybe-combine-errors/README.md +94 -0
- package/node_modules/maybe-combine-errors/index.js +60 -0
- package/node_modules/maybe-combine-errors/package.json +33 -0
- package/node_modules/module-error/CHANGELOG.md +23 -0
- package/node_modules/module-error/LICENSE +21 -0
- package/node_modules/module-error/README.md +89 -0
- package/node_modules/module-error/index.d.ts +18 -0
- package/node_modules/module-error/index.js +22 -0
- package/node_modules/module-error/package.json +36 -0
- package/node_modules/napi-macros/LICENSE +21 -0
- package/node_modules/napi-macros/README.md +277 -0
- package/node_modules/napi-macros/index.js +1 -0
- package/node_modules/napi-macros/napi-macros.h +255 -0
- package/node_modules/napi-macros/package.json +22 -0
- package/node_modules/node-gyp-build/LICENSE +21 -0
- package/node_modules/node-gyp-build/README.md +58 -0
- package/node_modules/node-gyp-build/SECURITY.md +5 -0
- package/node_modules/node-gyp-build/bin.js +84 -0
- package/node_modules/node-gyp-build/build-test.js +19 -0
- package/node_modules/node-gyp-build/index.js +6 -0
- package/node_modules/node-gyp-build/node-gyp-build.js +207 -0
- package/node_modules/node-gyp-build/optional.js +7 -0
- package/node_modules/node-gyp-build/package.json +43 -0
- package/oauthTokenStore-PADKLNOC.js +23 -0
- package/package.json +6 -3
- package/processSpawn-SOAV3FEV.js +11 -0
- package/profileConfig-ZGOFORWV.js +43 -0
- package/{providerPresetApply-XI3WUPTI.js → providerPresetApply-HIPK67DU.js} +9 -9
- package/{providerRegistry-KEPWWGXD.js → providerRegistry-AI4U2FNM.js} +13 -9
- package/{read-COE3ZYR6.js → read-RNUQ7F34.js} +11 -7
- package/{readDocTool-5USN4A6V.js → readDocTool-6WIZHE6O.js} +5 -3
- package/{readlineWorkspace-KIMUDPPV.js → readlineWorkspace-BCDVMOR5.js} +6947 -3879
- package/{removeDialogAgentAction-J6X5QMTA.js → removeDialogAgentAction-EFQ4O2IQ.js} +27 -26
- package/{runAgentClientLoop-AN4WIRPQ.js → runAgentClientLoop-5RBD3DE6.js} +150 -90
- package/{runtimeDoctorCommands-X6WDBEQX.js → runtimeDoctorCommands-5CIWJEZ3.js} +36 -8
- package/runtimeModeArgs-2Y7BALTO.js +31 -0
- package/setDialogExtraReferencesAction-MXAH2KPV.js +37 -0
- package/{setPrimaryDialogAgentAction-FN22THHT.js → setPrimaryDialogAgentAction-7OPVNK4M.js} +28 -27
- package/{chunk-GP5LKBUZ.js → settingThunks-GHVLHABJ.js} +240 -945
- package/{skillDiscovery-CYUCJMAG.js → skillDiscovery-QC35EQY4.js} +3 -3
- package/{slateUtils-RIZES3PV.js → slateUtils-NGV2NMKM.js} +1 -1
- package/{spaceCommands-NA4JMIGT.js → spaceCommands-WZCLRGBO.js} +56 -56
- package/{streamAgentChatTurn-3TYTHZPJ.js → streamAgentChatTurn-YJTEHUH7.js} +371 -1556
- package/{switchDialogAgentAction-LVTEV3FR.js → switchDialogAgentAction-4PANDG3L.js} +24 -20
- package/{tableCommands-O6NWHFKV.js → tableCommands-U3QDY4L6.js} +19 -17
- package/{toolApiClient-QVJ6HDNN.js → toolApiClient-54CXTU7C.js} +5 -4
- package/tools-ZT4GXXDQ.js +122 -0
- package/{tuiSummaryLlmCaller-UFGFOIIW.js → tuiSummaryLlmCaller-ISODIW2O.js} +14 -29
- package/{updateCommands-2M74UL7P.js → updateCommands-NQXAGFM7.js} +3 -3
- package/{updateDialogTitleAction-RDHNT265.js → updateDialogTitleAction-2PQTFUUV.js} +101 -57
- package/action-P4TNFGAD.js +0 -31
- package/agentListCommands-NXCOTTZL.js +0 -411
- package/agentRecordCommands-JP54ZWND.js +0 -129
- package/agentRunCommand-RMQWWSHF.js +0 -157
- package/browser-image-compression-MFDTD7K6.js +0 -1763
- package/chatQueueReduxAdapter-DKLWTT3G.js +0 -186
- package/chunk-ACTMNVHM.js +0 -93
- package/chunk-CQ3WA2NE.js +0 -299
- package/chunk-M76ECQRD.js +0 -13658
- package/chunk-MEYIRKDN.js +0 -8967
- package/chunk-N4G4PKQ6.js +0 -23
- package/chunk-P3GYTNDF.js +0 -34
- package/chunk-PUOC4YRO.js +0 -394
- package/chunk-S7Z2HMCN.js +0 -25
- package/chunk-Y5GCAMGP.js +0 -9
- package/chunk-YPREESF4.js +0 -225
- package/chunk-YWIEQS6H.js +0 -21409
- package/contentThunks-JHK6X2KU.js +0 -73
- package/createDialogAction-VUUUZL54.js +0 -65
- package/dialogCommands-EN7TYD3I.js +0 -100
- package/handleSendMessageAction-ID5IKXUE.js +0 -633
- package/machineWsRunDispatch-RX64L3ET.js +0 -145
- package/setDialogExtraReferencesAction-WX5VTY6O.js +0 -30
- package/settingSlice-P4ZW7K5X.js +0 -204
- package/syncMapping-N6RGXGBW.js +0 -437
- package/tools-34SEJSLQ.js +0 -110
- package/{chunk-SV5IJK6K.js → chunk-NBTY7YJF.js} +3 -3
- package/{chunk-X7HHHIOZ.js → chunk-Y6ROFCZO.js} +0 -0
- package/{db-WK5MDZVN.js → db-VQSAOWAO.js} +1 -1
- package/{offlineMarxistsAgentCommand-HGXZV4XJ.js → offlineMarxistsAgentCommand-2QTHJCHV.js} +4 -4
|
@@ -0,0 +1,800 @@
|
|
|
1
|
+
import {
|
|
2
|
+
decorateAgentsWithPublicStatusAcrossServers,
|
|
3
|
+
formatQuotaSummary,
|
|
4
|
+
listFavoriteAgentIdsAcrossServers,
|
|
5
|
+
listLocalCachedAgents,
|
|
6
|
+
listRemoteAgents,
|
|
7
|
+
listRemoteAgentsAcrossServers,
|
|
8
|
+
listRemotePublicAgents,
|
|
9
|
+
normalizeListedAgent,
|
|
10
|
+
parseAgentListArgs
|
|
11
|
+
} from "./chunk-UIYVU3S4.js";
|
|
12
|
+
import {
|
|
13
|
+
refreshSubscriptionQuotas
|
|
14
|
+
} from "./chunk-U4STABYN.js";
|
|
15
|
+
import {
|
|
16
|
+
getReadableCliDb
|
|
17
|
+
} from "./chunk-V6WXGTUJ.js";
|
|
18
|
+
import {
|
|
19
|
+
buildSpaceLookup,
|
|
20
|
+
getSpaceContentKeys
|
|
21
|
+
} from "./chunk-ID4G2MAR.js";
|
|
22
|
+
import {
|
|
23
|
+
readLiveDbRecordAfterTombstoneMerge
|
|
24
|
+
} from "./chunk-726TCFLQ.js";
|
|
25
|
+
import {
|
|
26
|
+
queryUserRecords,
|
|
27
|
+
readDbRecord
|
|
28
|
+
} from "./chunk-A337PRRR.js";
|
|
29
|
+
import {
|
|
30
|
+
applyCredentialAvailability,
|
|
31
|
+
clearCredentialAvailabilityIfMarkedAt,
|
|
32
|
+
readCredentialAvailability,
|
|
33
|
+
readCredentialEntry
|
|
34
|
+
} from "./chunk-6MXDOUMH.js";
|
|
35
|
+
import {
|
|
36
|
+
t
|
|
37
|
+
} from "./chunk-6CCAXGFK.js";
|
|
38
|
+
import "./chunk-PHHFVGOJ.js";
|
|
39
|
+
import "./chunk-NBTY7YJF.js";
|
|
40
|
+
import {
|
|
41
|
+
buildAgentDiscoveryResult,
|
|
42
|
+
matchesAgentQuery,
|
|
43
|
+
summarizeCredentialGroups,
|
|
44
|
+
toDiscoverySafeAgentSummary
|
|
45
|
+
} from "./chunk-XRXYRHE5.js";
|
|
46
|
+
import "./chunk-OXME3PEE.js";
|
|
47
|
+
import "./chunk-UKZX3NHN.js";
|
|
48
|
+
import "./chunk-UEILX4EV.js";
|
|
49
|
+
import "./chunk-D2MDMY2M.js";
|
|
50
|
+
import "./chunk-NLEJWKF5.js";
|
|
51
|
+
import "./chunk-3SK3J3IF.js";
|
|
52
|
+
import "./chunk-ZNFJWEN4.js";
|
|
53
|
+
import "./chunk-IFALJPEX.js";
|
|
54
|
+
import "./chunk-GMZLP5DV.js";
|
|
55
|
+
import "./chunk-CHOZJMJS.js";
|
|
56
|
+
import "./chunk-G23MQWLJ.js";
|
|
57
|
+
import "./chunk-5ZUL4CUO.js";
|
|
58
|
+
import "./chunk-JJM3WS6W.js";
|
|
59
|
+
import "./chunk-G6OOUQWJ.js";
|
|
60
|
+
import "./chunk-56GBUMO5.js";
|
|
61
|
+
import "./chunk-WJZOQR2J.js";
|
|
62
|
+
import "./chunk-LAVSW2C2.js";
|
|
63
|
+
import "./chunk-SJ3QFSQS.js";
|
|
64
|
+
import "./chunk-QLQ573SU.js";
|
|
65
|
+
import {
|
|
66
|
+
isAgentUnavailableNow,
|
|
67
|
+
resolveCredentialKeyWithFallback,
|
|
68
|
+
shouldClearCooldownFromQuota
|
|
69
|
+
} from "./chunk-3MZAGMYY.js";
|
|
70
|
+
import "./chunk-2MBTWINN.js";
|
|
71
|
+
import "./chunk-VSPO4S33.js";
|
|
72
|
+
import {
|
|
73
|
+
normalizeTimingMs
|
|
74
|
+
} from "./chunk-FWY6BHIJ.js";
|
|
75
|
+
import "./chunk-5MMAK75Q.js";
|
|
76
|
+
import "./chunk-DWLEOOGR.js";
|
|
77
|
+
import "./chunk-PWRS2SU2.js";
|
|
78
|
+
import "./chunk-KX6YBIHG.js";
|
|
79
|
+
import "./chunk-7DPNBQSV.js";
|
|
80
|
+
import "./chunk-IHPDK6UD.js";
|
|
81
|
+
import "./chunk-LWLNLZC5.js";
|
|
82
|
+
import "./chunk-3LI5UCTU.js";
|
|
83
|
+
import "./chunk-M2EJHDJP.js";
|
|
84
|
+
import {
|
|
85
|
+
createKey,
|
|
86
|
+
createTokenKey
|
|
87
|
+
} from "./chunk-RLRYVSCD.js";
|
|
88
|
+
import "./chunk-I42VC5KR.js";
|
|
89
|
+
import "./chunk-U6VC4MU4.js";
|
|
90
|
+
import "./chunk-MW533QT3.js";
|
|
91
|
+
import "./chunk-TSBCYK5F.js";
|
|
92
|
+
import "./chunk-WWC7I6TA.js";
|
|
93
|
+
import "./chunk-PSCNXBYA.js";
|
|
94
|
+
import "./chunk-KY6GPQ7O.js";
|
|
95
|
+
import "./chunk-NN4UUYGB.js";
|
|
96
|
+
import "./chunk-CGEK73JN.js";
|
|
97
|
+
import "./chunk-W7XHHYWM.js";
|
|
98
|
+
import "./chunk-KUG52IAP.js";
|
|
99
|
+
import "./chunk-3EUW3WEO.js";
|
|
100
|
+
import {
|
|
101
|
+
toErrorMessage
|
|
102
|
+
} from "./chunk-HNMXYYJR.js";
|
|
103
|
+
import {
|
|
104
|
+
resolveNoloHome
|
|
105
|
+
} from "./chunk-GLKOYSRU.js";
|
|
106
|
+
import {
|
|
107
|
+
parseUserIdFromAuthToken,
|
|
108
|
+
readOption,
|
|
109
|
+
resolveAuthToken,
|
|
110
|
+
resolveServerCandidates,
|
|
111
|
+
resolveServerUrl
|
|
112
|
+
} from "./chunk-A7GB5UGH.js";
|
|
113
|
+
import "./chunk-OLZBQWZU.js";
|
|
114
|
+
import "./chunk-LCBAMY2M.js";
|
|
115
|
+
import "./chunk-4SN6J65J.js";
|
|
116
|
+
import "./chunk-CF7PE763.js";
|
|
117
|
+
import "./chunk-G3SUCT4W.js";
|
|
118
|
+
import "./chunk-Y6ROFCZO.js";
|
|
119
|
+
import {
|
|
120
|
+
getModelAbility
|
|
121
|
+
} from "./chunk-P3SFAHIL.js";
|
|
122
|
+
import "./chunk-SZC4REES.js";
|
|
123
|
+
import "./chunk-QSJ3HFEF.js";
|
|
124
|
+
import "./chunk-ZWQUWF6W.js";
|
|
125
|
+
import "./chunk-VEA7H5FG.js";
|
|
126
|
+
import "./chunk-4VJAC32I.js";
|
|
127
|
+
import "./chunk-4VNS5WPM.js";
|
|
128
|
+
|
|
129
|
+
// packages/ai/agent/speedSampleCache.ts
|
|
130
|
+
var SPEED_SAMPLE_DISK_CACHE_TTL_MS = 10 * 6e4;
|
|
131
|
+
var SPEED_SAMPLE_SCAN_BUDGET_MS = 8e3;
|
|
132
|
+
var SPEED_SAMPLE_CACHE_VERSION = 1;
|
|
133
|
+
var isFiniteNumber = (value) => typeof value === "number" && Number.isFinite(value);
|
|
134
|
+
var sanitizeSample = (value) => {
|
|
135
|
+
if (!value || typeof value !== "object") return null;
|
|
136
|
+
const sample = value;
|
|
137
|
+
const clean = {};
|
|
138
|
+
if (isFiniteNumber(sample.firstOutputMs)) clean.firstOutputMs = sample.firstOutputMs;
|
|
139
|
+
if (isFiniteNumber(sample.callDurationMs)) clean.callDurationMs = sample.callDurationMs;
|
|
140
|
+
if (isFiniteNumber(sample.output_tokens)) clean.output_tokens = sample.output_tokens;
|
|
141
|
+
return clean.firstOutputMs === void 0 && clean.callDurationMs === void 0 ? null : clean;
|
|
142
|
+
};
|
|
143
|
+
async function readSpeedSamplesCache(cachePath, options) {
|
|
144
|
+
const ttlMs = isFiniteNumber(options.ttlMs) ? options.ttlMs : SPEED_SAMPLE_DISK_CACHE_TTL_MS;
|
|
145
|
+
try {
|
|
146
|
+
const fs = await import("node:fs/promises");
|
|
147
|
+
const raw = await fs.readFile(cachePath, "utf8");
|
|
148
|
+
const parsed = JSON.parse(raw);
|
|
149
|
+
if (!parsed || typeof parsed !== "object") return null;
|
|
150
|
+
if (parsed.version !== SPEED_SAMPLE_CACHE_VERSION) return null;
|
|
151
|
+
if (parsed.userId !== options.userId) return null;
|
|
152
|
+
if (!isFiniteNumber(parsed.at)) return null;
|
|
153
|
+
const age = options.now - parsed.at;
|
|
154
|
+
if (age < 0 || age >= ttlMs) return null;
|
|
155
|
+
const samples = /* @__PURE__ */ new Map();
|
|
156
|
+
const source = parsed.samples;
|
|
157
|
+
if (!source || typeof source !== "object") return null;
|
|
158
|
+
for (const [model, list] of Object.entries(source)) {
|
|
159
|
+
if (!model || !Array.isArray(list)) continue;
|
|
160
|
+
const cleaned = [];
|
|
161
|
+
for (const entry of list) {
|
|
162
|
+
const sample = sanitizeSample(entry);
|
|
163
|
+
if (sample) cleaned.push(sample);
|
|
164
|
+
}
|
|
165
|
+
samples.set(model, cleaned);
|
|
166
|
+
}
|
|
167
|
+
return samples;
|
|
168
|
+
} catch {
|
|
169
|
+
return null;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
async function writeSpeedSamplesCache(cachePath, payload) {
|
|
173
|
+
try {
|
|
174
|
+
const fs = await import("node:fs/promises");
|
|
175
|
+
const path2 = await import("node:path");
|
|
176
|
+
await fs.mkdir(path2.dirname(cachePath), { recursive: true });
|
|
177
|
+
await fs.writeFile(cachePath, JSON.stringify(payload), "utf8");
|
|
178
|
+
} catch {
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// packages/ai/token/observedSpeedResolver.ts
|
|
183
|
+
var DEFAULT_OBSERVED_SPEED_SAMPLE_SIZE = 20;
|
|
184
|
+
var MIN_THROUGHPUT_WINDOW_MS = 200;
|
|
185
|
+
var MAX_PLAUSIBLE_OUTPUT_TPS = 3e3;
|
|
186
|
+
var isFiniteNumber2 = (value) => typeof value === "number" && Number.isFinite(value);
|
|
187
|
+
var medianOf = (values) => {
|
|
188
|
+
if (values.length === 0) return void 0;
|
|
189
|
+
const sorted = [...values].sort((a, b) => a - b);
|
|
190
|
+
const middle = Math.floor(sorted.length / 2);
|
|
191
|
+
return sorted.length % 2 === 1 ? sorted[middle] : (sorted[middle - 1] + sorted[middle]) / 2;
|
|
192
|
+
};
|
|
193
|
+
function resolveObservedSpeed(records, options = {}) {
|
|
194
|
+
const limit = isFiniteNumber2(options.limit) ? Math.max(0, Math.floor(options.limit)) : DEFAULT_OBSERVED_SPEED_SAMPLE_SIZE;
|
|
195
|
+
const sample = Array.isArray(records) ? records.slice(0, limit) : [];
|
|
196
|
+
const firstOutputSamples = [];
|
|
197
|
+
const tpsSamples = [];
|
|
198
|
+
for (const record of sample) {
|
|
199
|
+
if (!record || typeof record !== "object") continue;
|
|
200
|
+
const { firstOutputMs, callDurationMs, output_tokens: outputTokens } = record;
|
|
201
|
+
const firstOutput = normalizeTimingMs(firstOutputMs);
|
|
202
|
+
const callDuration = normalizeTimingMs(callDurationMs);
|
|
203
|
+
if (firstOutput !== void 0) {
|
|
204
|
+
firstOutputSamples.push(firstOutput);
|
|
205
|
+
}
|
|
206
|
+
if (firstOutput !== void 0 && callDuration !== void 0 && callDuration - firstOutput >= MIN_THROUGHPUT_WINDOW_MS && isFiniteNumber2(outputTokens) && outputTokens > 0) {
|
|
207
|
+
const seconds = (callDuration - firstOutput) / 1e3;
|
|
208
|
+
const tokensPerSecond = outputTokens / seconds;
|
|
209
|
+
if (isFiniteNumber2(tokensPerSecond) && tokensPerSecond <= MAX_PLAUSIBLE_OUTPUT_TPS) {
|
|
210
|
+
tpsSamples.push(tokensPerSecond);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
const medianFirstOutputMs = medianOf(firstOutputSamples);
|
|
215
|
+
const medianTps = medianOf(tpsSamples);
|
|
216
|
+
return {
|
|
217
|
+
firstOutputSampleCount: firstOutputSamples.length,
|
|
218
|
+
throughputSampleCount: tpsSamples.length,
|
|
219
|
+
...medianFirstOutputMs !== void 0 ? { medianFirstOutputMs: Math.round(medianFirstOutputMs) } : {},
|
|
220
|
+
...medianTps !== void 0 ? { medianOutputTokensPerSecond: Math.round(medianTps * 100) / 100 } : {}
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// packages/ai/agent/candidateSpeedContext.ts
|
|
225
|
+
var OBSERVED_SPEED_WINDOW = 50;
|
|
226
|
+
var MIN_OBSERVED_FIRST_OUTPUT_SAMPLES = 5;
|
|
227
|
+
var SPEED_SAMPLES_CACHE_TTL_MS = 5 * 6e4;
|
|
228
|
+
var SPEED_SAMPLES_CACHE_MAX_ENTRIES = 500;
|
|
229
|
+
var MAX_PLAUSIBLE_AA_FIRST_ANSWER_S = 60;
|
|
230
|
+
function normalizeSpeedModelName(raw) {
|
|
231
|
+
const name = raw.trim().toLowerCase();
|
|
232
|
+
const slash = name.lastIndexOf("/");
|
|
233
|
+
return slash === -1 ? name : name.slice(slash + 1);
|
|
234
|
+
}
|
|
235
|
+
var isFiniteNumber3 = (value) => typeof value === "number" && Number.isFinite(value);
|
|
236
|
+
var REASONING_EFFORT_SUFFIXES = ["minimal", "low", "medium", "high", "xhigh"];
|
|
237
|
+
var REASONING_EFFORT_SUFFIX_RE = new RegExp(`-(?:${REASONING_EFFORT_SUFFIXES.join("|")})$`);
|
|
238
|
+
function stripReasoningEffortSuffix(model) {
|
|
239
|
+
const base = model.replace(REASONING_EFFORT_SUFFIX_RE, "");
|
|
240
|
+
return base && base !== model ? base : null;
|
|
241
|
+
}
|
|
242
|
+
function resolveOneBare(model, samplesByModel) {
|
|
243
|
+
const observed = resolveObservedSpeed(samplesByModel.get(model) ?? [], {
|
|
244
|
+
limit: OBSERVED_SPEED_WINDOW
|
|
245
|
+
});
|
|
246
|
+
if (observed.firstOutputSampleCount >= MIN_OBSERVED_FIRST_OUTPUT_SAMPLES && observed.medianFirstOutputMs !== void 0) {
|
|
247
|
+
return {
|
|
248
|
+
source: "observed",
|
|
249
|
+
firstOutputMs: observed.medianFirstOutputMs,
|
|
250
|
+
...observed.medianOutputTokensPerSecond !== void 0 ? { outputTps: observed.medianOutputTokensPerSecond } : {},
|
|
251
|
+
firstOutputSamples: observed.firstOutputSampleCount,
|
|
252
|
+
tpsSamples: observed.throughputSampleCount
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
const aa = getModelAbility(model)?.aaSnapshot;
|
|
256
|
+
if (!aa) return null;
|
|
257
|
+
const firstAnswerTokenS = isFiniteNumber3(aa.firstAnswerTokenS) && aa.firstAnswerTokenS <= MAX_PLAUSIBLE_AA_FIRST_ANSWER_S ? aa.firstAnswerTokenS : void 0;
|
|
258
|
+
if (!isFiniteNumber3(aa.outputSpeedTps) && firstAnswerTokenS === void 0) {
|
|
259
|
+
return null;
|
|
260
|
+
}
|
|
261
|
+
return {
|
|
262
|
+
source: "aa",
|
|
263
|
+
...firstAnswerTokenS !== void 0 ? { firstAnswerTokenS } : {},
|
|
264
|
+
...isFiniteNumber3(aa.outputSpeedTps) ? { outputTps: aa.outputSpeedTps } : {},
|
|
265
|
+
measuredAt: aa.measuredAt
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
function resolveOne(model, samplesByModel) {
|
|
269
|
+
const direct = resolveOneBare(model, samplesByModel);
|
|
270
|
+
if (direct) return { model, ...direct };
|
|
271
|
+
const base = stripReasoningEffortSuffix(model);
|
|
272
|
+
if (!base) return null;
|
|
273
|
+
const stripped = resolveOneBare(base, samplesByModel);
|
|
274
|
+
return stripped ? { model, ...stripped } : null;
|
|
275
|
+
}
|
|
276
|
+
function resolveCandidateSpeedFacts(models, samplesByModel) {
|
|
277
|
+
const unique = [
|
|
278
|
+
...new Set(
|
|
279
|
+
models.filter((model) => typeof model === "string").map(normalizeSpeedModelName).filter(Boolean)
|
|
280
|
+
)
|
|
281
|
+
];
|
|
282
|
+
return unique.map((model) => resolveOne(model, samplesByModel)).filter((fact) => fact !== null);
|
|
283
|
+
}
|
|
284
|
+
var formatSeconds = (ms) => `${(ms / 1e3).toFixed(1)}s`;
|
|
285
|
+
var formatTps = (tps) => String(Math.round(tps));
|
|
286
|
+
var SPEED_CONTEXT_HEADER = "speed (observed=\u672C\u7528\u6237\u6700\u8FD1\u8C03\u7528\u4E2D\u4F4D\u6570, firstOutput \u542B\u63A8\u7406\u8F93\u51FA; aa=Artificial Analysis \u5FEB\u7167, firstAnswer \u542B\u601D\u8003\u65F6\u95F4, \u4E24\u6E90\u4E0D\u53EF\u76F4\u63A5\u6BD4\u8F83; tps=n/a \u8868\u793A\u65E0\u53EF\u4FE1\u541E\u5410\u6837\u672C):";
|
|
287
|
+
function formatCandidateSpeedFacts(facts) {
|
|
288
|
+
if (facts.length === 0) return null;
|
|
289
|
+
const lines = facts.map((fact) => {
|
|
290
|
+
if (fact.source === "observed") {
|
|
291
|
+
const tps = fact.outputTps !== void 0 ? formatTps(fact.outputTps) : "n/a";
|
|
292
|
+
return ` ${fact.model}: firstOutput=${formatSeconds(fact.firstOutputMs ?? 0)} tps=${tps} [observed n=${fact.firstOutputSamples ?? 0} tpsN=${fact.tpsSamples ?? 0}]`;
|
|
293
|
+
}
|
|
294
|
+
const parts = [];
|
|
295
|
+
if (fact.firstAnswerTokenS !== void 0) parts.push(`firstAnswer=${fact.firstAnswerTokenS.toFixed(1)}s`);
|
|
296
|
+
parts.push(`tps=${fact.outputTps !== void 0 ? formatTps(fact.outputTps) : "n/a"}`);
|
|
297
|
+
return ` ${fact.model}: ${parts.join(" ")} [aa measuredAt=${fact.measuredAt}]`;
|
|
298
|
+
});
|
|
299
|
+
return `${SPEED_CONTEXT_HEADER}
|
|
300
|
+
${lines.join("\n")}`;
|
|
301
|
+
}
|
|
302
|
+
function buildCandidateSpeedContext(models, samplesByModel) {
|
|
303
|
+
return formatCandidateSpeedFacts(resolveCandidateSpeedFacts(models, samplesByModel));
|
|
304
|
+
}
|
|
305
|
+
var SPEED_SAMPLE_PAGE_SIZE = 2e3;
|
|
306
|
+
var eventTime = (value) => {
|
|
307
|
+
if (isFiniteNumber3(value.timestamp)) return value.timestamp;
|
|
308
|
+
if (isFiniteNumber3(value.createdAt)) return value.createdAt;
|
|
309
|
+
return 0;
|
|
310
|
+
};
|
|
311
|
+
function collectSample(collected, value) {
|
|
312
|
+
if (typeof value.model !== "string") return;
|
|
313
|
+
if (!isFiniteNumber3(value.firstOutputMs) && !isFiniteNumber3(value.callDurationMs)) return;
|
|
314
|
+
const model = normalizeSpeedModelName(value.model);
|
|
315
|
+
if (!model) return;
|
|
316
|
+
const list = collected.get(model) ?? [];
|
|
317
|
+
list.push({
|
|
318
|
+
t: eventTime(value),
|
|
319
|
+
firstOutputMs: value.firstOutputMs,
|
|
320
|
+
callDurationMs: value.callDurationMs,
|
|
321
|
+
output_tokens: value.output_tokens
|
|
322
|
+
});
|
|
323
|
+
collected.set(model, list);
|
|
324
|
+
}
|
|
325
|
+
function finalizeSamples(collected) {
|
|
326
|
+
const result = /* @__PURE__ */ new Map();
|
|
327
|
+
for (const [model, list] of collected) {
|
|
328
|
+
list.sort((a, b) => b.t - a.t);
|
|
329
|
+
result.set(
|
|
330
|
+
model,
|
|
331
|
+
list.slice(0, OBSERVED_SPEED_WINDOW).map(({ t: _t, ...sample }) => sample)
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
return result;
|
|
335
|
+
}
|
|
336
|
+
async function collectRecentSpeedSamples(db, userId, options = {}) {
|
|
337
|
+
const pageSize = isFiniteNumber3(options.pageSize) && options.pageSize > 0 ? Math.floor(options.pageSize) : SPEED_SAMPLE_PAGE_SIZE;
|
|
338
|
+
const budgetMs = isFiniteNumber3(options.budgetMs) ? options.budgetMs : Number.POSITIVE_INFINITY;
|
|
339
|
+
const { start, end } = createTokenKey.rangeOfUser(userId);
|
|
340
|
+
const failedPrefix = createKey("token", userId, "failed-call", "");
|
|
341
|
+
const collected = /* @__PURE__ */ new Map();
|
|
342
|
+
const startedAt = Date.now();
|
|
343
|
+
let lastKey;
|
|
344
|
+
let budgetExhausted = false;
|
|
345
|
+
while (true) {
|
|
346
|
+
if (Date.now() - startedAt >= budgetMs) {
|
|
347
|
+
budgetExhausted = true;
|
|
348
|
+
break;
|
|
349
|
+
}
|
|
350
|
+
const pageOptions = {
|
|
351
|
+
...lastKey === void 0 ? { gte: start } : { gt: lastKey },
|
|
352
|
+
lte: end,
|
|
353
|
+
limit: pageSize
|
|
354
|
+
};
|
|
355
|
+
let accepted = 0;
|
|
356
|
+
let newestKey = lastKey;
|
|
357
|
+
for await (const [key, raw] of db.iterator(pageOptions)) {
|
|
358
|
+
if (typeof key !== "string") continue;
|
|
359
|
+
if (lastKey !== void 0 && key <= lastKey) continue;
|
|
360
|
+
accepted += 1;
|
|
361
|
+
newestKey = key;
|
|
362
|
+
if (key.startsWith(failedPrefix)) continue;
|
|
363
|
+
if (!raw || typeof raw !== "object") continue;
|
|
364
|
+
collectSample(collected, raw);
|
|
365
|
+
}
|
|
366
|
+
if (accepted === 0 || accepted < pageSize) break;
|
|
367
|
+
lastKey = newestKey;
|
|
368
|
+
}
|
|
369
|
+
return { samples: finalizeSamples(collected), budgetExhausted };
|
|
370
|
+
}
|
|
371
|
+
async function loadRecentSpeedSamples(db, userId, options = {}) {
|
|
372
|
+
const { samples } = await collectRecentSpeedSamples(db, userId, options);
|
|
373
|
+
return samples;
|
|
374
|
+
}
|
|
375
|
+
async function loadSpeedSamplesWithDiskCache(db, userId, now, cache) {
|
|
376
|
+
try {
|
|
377
|
+
const ttlMs = isFiniteNumber3(cache.ttlMs) ? cache.ttlMs : SPEED_SAMPLE_DISK_CACHE_TTL_MS;
|
|
378
|
+
const cached = await readSpeedSamplesCache(cache.cachePath, { userId, now, ttlMs });
|
|
379
|
+
if (cached) return cached;
|
|
380
|
+
const { samples, budgetExhausted } = await collectRecentSpeedSamples(db, userId, {
|
|
381
|
+
pageSize: cache.pageSize,
|
|
382
|
+
budgetMs: isFiniteNumber3(cache.budgetMs) ? cache.budgetMs : SPEED_SAMPLE_SCAN_BUDGET_MS
|
|
383
|
+
});
|
|
384
|
+
if (budgetExhausted) return /* @__PURE__ */ new Map();
|
|
385
|
+
await writeSpeedSamplesCache(cache.cachePath, {
|
|
386
|
+
version: SPEED_SAMPLE_CACHE_VERSION,
|
|
387
|
+
userId,
|
|
388
|
+
at: now,
|
|
389
|
+
samples: Object.fromEntries(samples)
|
|
390
|
+
});
|
|
391
|
+
return samples;
|
|
392
|
+
} catch {
|
|
393
|
+
return /* @__PURE__ */ new Map();
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
var samplesCache = /* @__PURE__ */ new Map();
|
|
397
|
+
function writeSamplesCache(userId, now, samples) {
|
|
398
|
+
for (const [key, entry] of samplesCache) {
|
|
399
|
+
if (now - entry.at >= SPEED_SAMPLES_CACHE_TTL_MS) samplesCache.delete(key);
|
|
400
|
+
}
|
|
401
|
+
samplesCache.delete(userId);
|
|
402
|
+
samplesCache.set(userId, { at: now, samples });
|
|
403
|
+
while (samplesCache.size > SPEED_SAMPLES_CACHE_MAX_ENTRIES) {
|
|
404
|
+
const oldest = samplesCache.keys().next().value;
|
|
405
|
+
if (oldest === void 0) break;
|
|
406
|
+
samplesCache.delete(oldest);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
async function loadCachedSpeedSamples(db, userId, now) {
|
|
410
|
+
const hit = samplesCache.get(userId);
|
|
411
|
+
if (hit && now - hit.at < SPEED_SAMPLES_CACHE_TTL_MS) return hit.samples;
|
|
412
|
+
const samples = await loadRecentSpeedSamples(db, userId);
|
|
413
|
+
writeSamplesCache(userId, now, samples);
|
|
414
|
+
return samples;
|
|
415
|
+
}
|
|
416
|
+
async function injectSpeedContextIntoListAgentsResult(result, options = {}) {
|
|
417
|
+
try {
|
|
418
|
+
let parsed;
|
|
419
|
+
try {
|
|
420
|
+
parsed = JSON.parse(result);
|
|
421
|
+
} catch {
|
|
422
|
+
return result;
|
|
423
|
+
}
|
|
424
|
+
if (!parsed || typeof parsed !== "object" || !Array.isArray(parsed.agents)) return result;
|
|
425
|
+
const models = parsed.agents.map((agent) => agent?.model).filter((model) => typeof model === "string");
|
|
426
|
+
if (models.length === 0) return result;
|
|
427
|
+
const now = options.now ?? Date.now();
|
|
428
|
+
let samples = /* @__PURE__ */ new Map();
|
|
429
|
+
const userId = typeof options.userId === "string" ? options.userId.trim() : "";
|
|
430
|
+
if (options.db && userId) {
|
|
431
|
+
try {
|
|
432
|
+
samples = options.diskCache ? await loadSpeedSamplesWithDiskCache(options.db, userId, now, options.diskCache) : await loadCachedSpeedSamples(options.db, userId, now);
|
|
433
|
+
} catch {
|
|
434
|
+
samples = /* @__PURE__ */ new Map();
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
const speedContext = buildCandidateSpeedContext(models, samples);
|
|
438
|
+
return speedContext ? JSON.stringify({ ...parsed, speedContext }) : result;
|
|
439
|
+
} catch {
|
|
440
|
+
return result;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
// packages/cli/agentListCommands.ts
|
|
445
|
+
import path from "node:path";
|
|
446
|
+
var discardOutput = { write: () => void 0 };
|
|
447
|
+
function resolveSpeedSamplesCachePath(env, userId) {
|
|
448
|
+
const safeUserId = userId.replace(/[^A-Za-z0-9._-]/g, "_");
|
|
449
|
+
const mergedEnv = { ...process.env, ...env };
|
|
450
|
+
return path.join(resolveNoloHome({ env: mergedEnv }), "cache", `speed-samples-${safeUserId}.json`);
|
|
451
|
+
}
|
|
452
|
+
async function runAgentListCommand(args, deps = {}) {
|
|
453
|
+
const env = deps.env ?? process.env;
|
|
454
|
+
const output = deps.output ?? process.stdout;
|
|
455
|
+
const { wantJson, wantSafe, publicOnly, scope: requestedScope, idsOnly, showUnavailable, verbose, query } = parseAgentListArgs(args);
|
|
456
|
+
if (requestedScope && !["preferred", "public", "all"].includes(requestedScope)) {
|
|
457
|
+
throw new Error(`Invalid scope '${requestedScope}'`);
|
|
458
|
+
}
|
|
459
|
+
if (requestedScope && publicOnly && requestedScope !== "public") {
|
|
460
|
+
throw new Error(`Conflicting arguments: scope='${requestedScope}' conflicts with publicOnly=true.`);
|
|
461
|
+
}
|
|
462
|
+
const scope = requestedScope ?? "preferred";
|
|
463
|
+
const spaceInput = readOption(args, "--space") ?? readOption(args, "--space-id");
|
|
464
|
+
const authToken = resolveAuthToken(args, env);
|
|
465
|
+
if (!authToken) {
|
|
466
|
+
output.write("[nolo] agent list requires an auth token. Run `nolo login` or set AUTH_TOKEN.\n");
|
|
467
|
+
return 1;
|
|
468
|
+
}
|
|
469
|
+
const userId = parseUserIdFromAuthToken(authToken);
|
|
470
|
+
if (!userId) {
|
|
471
|
+
output.write("[nolo] agent list could not read userId from AUTH_TOKEN.\n");
|
|
472
|
+
return 1;
|
|
473
|
+
}
|
|
474
|
+
const fetchImpl = deps.fetchImpl ?? fetch;
|
|
475
|
+
const fallbackFetchImpl = deps.fallbackFetchImpl;
|
|
476
|
+
const serverUrl = resolveServerUrl(args, env);
|
|
477
|
+
const serverUrls = resolveServerCandidates(args, env, serverUrl);
|
|
478
|
+
try {
|
|
479
|
+
let agents;
|
|
480
|
+
let source;
|
|
481
|
+
let serverFailures = [];
|
|
482
|
+
try {
|
|
483
|
+
const remoteResult = await listRemoteAgentsAcrossServers({
|
|
484
|
+
authToken,
|
|
485
|
+
fallbackFetchImpl,
|
|
486
|
+
fetchImpl,
|
|
487
|
+
serverUrls,
|
|
488
|
+
userId
|
|
489
|
+
});
|
|
490
|
+
agents = remoteResult.agents;
|
|
491
|
+
serverFailures = remoteResult.failures;
|
|
492
|
+
source = "global-cache";
|
|
493
|
+
} catch {
|
|
494
|
+
try {
|
|
495
|
+
const db = deps.db ?? await getReadableCliDb(output);
|
|
496
|
+
agents = await listLocalCachedAgents({ db, userId });
|
|
497
|
+
source = "local-cache";
|
|
498
|
+
} catch {
|
|
499
|
+
agents = await listRemoteAgents({
|
|
500
|
+
authToken,
|
|
501
|
+
fallbackFetchImpl,
|
|
502
|
+
fetchImpl,
|
|
503
|
+
serverUrl,
|
|
504
|
+
userId,
|
|
505
|
+
queryUserRecords,
|
|
506
|
+
readDbRecord
|
|
507
|
+
});
|
|
508
|
+
source = "remote-cache";
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
if (scope !== "preferred") {
|
|
512
|
+
const publicAgents = await Promise.all(serverUrls.map((url) => listRemotePublicAgents({
|
|
513
|
+
authToken,
|
|
514
|
+
fetchImpl,
|
|
515
|
+
serverUrl: url,
|
|
516
|
+
limit: 500
|
|
517
|
+
})));
|
|
518
|
+
agents = publicAgents.flat();
|
|
519
|
+
if (scope === "all") {
|
|
520
|
+
const preferred = await listRemoteAgentsAcrossServers({
|
|
521
|
+
authToken,
|
|
522
|
+
fallbackFetchImpl,
|
|
523
|
+
fetchImpl,
|
|
524
|
+
serverUrls,
|
|
525
|
+
userId
|
|
526
|
+
});
|
|
527
|
+
agents = [...preferred.agents, ...agents];
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
agents = agents.filter((agent) => agent.privateKey.startsWith("agent-"));
|
|
531
|
+
let resolvedSpaceId = null;
|
|
532
|
+
let spaceContentKeys = null;
|
|
533
|
+
if (spaceInput) {
|
|
534
|
+
const { spaceId, spaceKey } = buildSpaceLookup(spaceInput);
|
|
535
|
+
resolvedSpaceId = spaceId;
|
|
536
|
+
const spaceRead = await readLiveDbRecordAfterTombstoneMerge({
|
|
537
|
+
authToken,
|
|
538
|
+
dbKey: spaceKey,
|
|
539
|
+
fallbackFetchImpl,
|
|
540
|
+
fetchImpl,
|
|
541
|
+
serverUrls
|
|
542
|
+
});
|
|
543
|
+
serverFailures = [...serverFailures, ...spaceRead.failures];
|
|
544
|
+
const spaceRecord = spaceRead.record;
|
|
545
|
+
const currentSpaceContentKeys = getSpaceContentKeys(spaceRecord);
|
|
546
|
+
spaceContentKeys = currentSpaceContentKeys;
|
|
547
|
+
agents = agents.filter(
|
|
548
|
+
(agent) => currentSpaceContentKeys.has(agent.privateKey) || currentSpaceContentKeys.has(agent.publicKey) || currentSpaceContentKeys.has(agent.id)
|
|
549
|
+
);
|
|
550
|
+
}
|
|
551
|
+
if (source === "global-cache") {
|
|
552
|
+
await decorateAgentsWithPublicStatusAcrossServers({
|
|
553
|
+
agents,
|
|
554
|
+
authToken,
|
|
555
|
+
fallbackFetchImpl,
|
|
556
|
+
fetchImpl,
|
|
557
|
+
serverUrls
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
if (publicOnly) {
|
|
561
|
+
agents = agents.filter((agent) => agent.publicRecordExists);
|
|
562
|
+
}
|
|
563
|
+
const originalAgentDeadlines = new Map(agents.map((agent) => [agent.privateKey, agent.nextAvailableAt]));
|
|
564
|
+
agents = applyCredentialAvailability(
|
|
565
|
+
agents,
|
|
566
|
+
await readCredentialAvailability(env).catch(() => ({}))
|
|
567
|
+
);
|
|
568
|
+
let unavailableCount = agents.filter((agent) => isAgentUnavailableNow(agent)).length;
|
|
569
|
+
let agentsForOutput = showUnavailable ? agents : agents.filter((agent) => !isAgentUnavailableNow(agent));
|
|
570
|
+
if (query && typeof query === "string" && query.trim()) {
|
|
571
|
+
agentsForOutput = agentsForOutput.filter((agent) => matchesAgentQuery(agent, query));
|
|
572
|
+
}
|
|
573
|
+
const refreshCandidates = !idsOnly ? [.../* @__PURE__ */ new Set([...agentsForOutput, ...agents.filter(
|
|
574
|
+
(agent) => !agentsForOutput.includes(agent) && isAgentUnavailableNow(agent) && agent.credentialConfigured === true && (!query || !String(query).trim() || matchesAgentQuery(agent, query))
|
|
575
|
+
)])] : agentsForOutput;
|
|
576
|
+
if (!idsOnly) {
|
|
577
|
+
const fresh = await refreshSubscriptionQuotas({
|
|
578
|
+
entries: refreshCandidates.map((agent) => ({
|
|
579
|
+
key: agent.privateKey,
|
|
580
|
+
...agent.quota ? { quota: agent.quota } : {},
|
|
581
|
+
probeable: agent.credentialConfigured === true
|
|
582
|
+
})),
|
|
583
|
+
env,
|
|
584
|
+
cliArgs: args,
|
|
585
|
+
fetchImpl
|
|
586
|
+
});
|
|
587
|
+
const now = Date.now();
|
|
588
|
+
for (const agent of refreshCandidates) {
|
|
589
|
+
const quota = fresh[agent.privateKey];
|
|
590
|
+
if (!quota) continue;
|
|
591
|
+
agent.quota = quota;
|
|
592
|
+
try {
|
|
593
|
+
const key = resolveCredentialKeyWithFallback(agent);
|
|
594
|
+
if (!key) continue;
|
|
595
|
+
const entry = await readCredentialEntry(key, env);
|
|
596
|
+
if (entry && shouldClearCooldownFromQuota(entry, quota, now)) {
|
|
597
|
+
await clearCredentialAvailabilityIfMarkedAt(key, entry.markedAt, env);
|
|
598
|
+
const remainingAvailability = await readCredentialAvailability(env).catch(() => ({}));
|
|
599
|
+
for (const sibling of agents) {
|
|
600
|
+
if (resolveCredentialKeyWithFallback(sibling) !== key) continue;
|
|
601
|
+
const originalDeadline = originalAgentDeadlines.get(sibling.privateKey);
|
|
602
|
+
if (typeof originalDeadline === "number") sibling.nextAvailableAt = originalDeadline;
|
|
603
|
+
else delete sibling.nextAvailableAt;
|
|
604
|
+
Object.assign(sibling, applyCredentialAvailability([sibling], remainingAvailability)[0]);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
} catch {
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
unavailableCount = agents.filter((agent) => isAgentUnavailableNow(agent)).length;
|
|
611
|
+
if (!showUnavailable) {
|
|
612
|
+
agentsForOutput = agents.filter((agent) => !isAgentUnavailableNow(agent));
|
|
613
|
+
if (query && typeof query === "string" && query.trim()) {
|
|
614
|
+
agentsForOutput = agentsForOutput.filter((agent) => matchesAgentQuery(agent, query));
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
if (idsOnly) {
|
|
619
|
+
output.write(`${agentsForOutput.map((agent) => agent.id).join("\n")}
|
|
620
|
+
`);
|
|
621
|
+
return 0;
|
|
622
|
+
}
|
|
623
|
+
if (wantSafe) {
|
|
624
|
+
const favoritesMap = await listFavoriteAgentIdsAcrossServers({
|
|
625
|
+
authToken,
|
|
626
|
+
fetchImpl,
|
|
627
|
+
serverUrls
|
|
628
|
+
}).catch(() => ({}));
|
|
629
|
+
const existingKeys = /* @__PURE__ */ new Set();
|
|
630
|
+
for (const agent of agents) {
|
|
631
|
+
existingKeys.add(agent.privateKey);
|
|
632
|
+
existingKeys.add(agent.publicKey);
|
|
633
|
+
existingKeys.add(agent.id);
|
|
634
|
+
}
|
|
635
|
+
const extraFavoriteRecords = [];
|
|
636
|
+
const hydratedFavoriteAgents = [];
|
|
637
|
+
for (const favKey of Object.keys(favoritesMap)) {
|
|
638
|
+
if (existingKeys.has(favKey)) continue;
|
|
639
|
+
try {
|
|
640
|
+
const favRead = await readLiveDbRecordAfterTombstoneMerge({
|
|
641
|
+
authToken,
|
|
642
|
+
dbKey: favKey,
|
|
643
|
+
fallbackFetchImpl,
|
|
644
|
+
fetchImpl,
|
|
645
|
+
serverUrls
|
|
646
|
+
});
|
|
647
|
+
const record = favRead.record;
|
|
648
|
+
if (!record || record.type && record.type !== "agent") continue;
|
|
649
|
+
const norm = normalizeListedAgent(record);
|
|
650
|
+
const candidateKeys = [record.dbKey, record.publicKey, record.id].filter((key) => typeof key === "string" && key.length > 0);
|
|
651
|
+
if (spaceContentKeys && !candidateKeys.some((key) => spaceContentKeys?.has(key))) {
|
|
652
|
+
continue;
|
|
653
|
+
}
|
|
654
|
+
if (norm) {
|
|
655
|
+
if (!favKey.startsWith("agent-pub-")) {
|
|
656
|
+
norm.verifiedAgentKey = favKey;
|
|
657
|
+
if (typeof record.userId === "string" && record.userId) {
|
|
658
|
+
norm.ownerId = record.userId;
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
agents.push(norm);
|
|
662
|
+
hydratedFavoriteAgents.push(norm);
|
|
663
|
+
existingKeys.add(norm.privateKey);
|
|
664
|
+
existingKeys.add(norm.publicKey);
|
|
665
|
+
existingKeys.add(norm.id);
|
|
666
|
+
} else {
|
|
667
|
+
extraFavoriteRecords.push(record);
|
|
668
|
+
for (const key of candidateKeys) existingKeys.add(key);
|
|
669
|
+
}
|
|
670
|
+
} catch {
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
if (source === "global-cache" && hydratedFavoriteAgents.length > 0) {
|
|
674
|
+
await decorateAgentsWithPublicStatusAcrossServers({
|
|
675
|
+
agents: hydratedFavoriteAgents,
|
|
676
|
+
authToken,
|
|
677
|
+
fallbackFetchImpl,
|
|
678
|
+
fetchImpl,
|
|
679
|
+
serverUrls
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
const safeRecords = [...agents, ...extraFavoriteRecords].map((record) => toDiscoverySafeAgentSummary(record, { favoritesMap, userId })).filter((agent) => publicOnly ? agent.isPublic === true : true);
|
|
683
|
+
const discovery = buildAgentDiscoveryResult({
|
|
684
|
+
agents: safeRecords,
|
|
685
|
+
scope: "all",
|
|
686
|
+
query,
|
|
687
|
+
showUnavailable,
|
|
688
|
+
verbose
|
|
689
|
+
});
|
|
690
|
+
const listResult = JSON.stringify({
|
|
691
|
+
success: true,
|
|
692
|
+
userId,
|
|
693
|
+
...resolvedSpaceId ? { spaceId: resolvedSpaceId } : {},
|
|
694
|
+
total: discovery.total,
|
|
695
|
+
unavailableCount: discovery.unavailableCount,
|
|
696
|
+
unavailableAgents: discovery.unavailableAgents,
|
|
697
|
+
credentialGroups: discovery.credentialGroups,
|
|
698
|
+
agents: discovery.agents
|
|
699
|
+
}, null, 2);
|
|
700
|
+
const withSpeedContext = await injectSpeedContextIntoListAgentsResult(listResult, {
|
|
701
|
+
db: deps.db ?? await getReadableCliDb(discardOutput),
|
|
702
|
+
userId,
|
|
703
|
+
diskCache: { cachePath: resolveSpeedSamplesCachePath(env, userId) }
|
|
704
|
+
});
|
|
705
|
+
output.write(withSpeedContext);
|
|
706
|
+
output.write("\n");
|
|
707
|
+
return 0;
|
|
708
|
+
}
|
|
709
|
+
if (wantJson) {
|
|
710
|
+
const credentialGroups = summarizeCredentialGroups(agentsForOutput);
|
|
711
|
+
output.write(JSON.stringify({
|
|
712
|
+
userId,
|
|
713
|
+
...resolvedSpaceId ? { spaceId: resolvedSpaceId } : {},
|
|
714
|
+
targetServers: serverUrls,
|
|
715
|
+
...serverFailures.length ? { serverFailures } : {},
|
|
716
|
+
total: agentsForOutput.length,
|
|
717
|
+
publicCount: agentsForOutput.filter((agent) => agent.publicRecordExists).length,
|
|
718
|
+
unavailableCount,
|
|
719
|
+
credentialGroups,
|
|
720
|
+
source,
|
|
721
|
+
agents: agentsForOutput
|
|
722
|
+
}, null, 2));
|
|
723
|
+
output.write("\n");
|
|
724
|
+
return 0;
|
|
725
|
+
}
|
|
726
|
+
output.write(`userId: ${userId}
|
|
727
|
+
`);
|
|
728
|
+
if (resolvedSpaceId) {
|
|
729
|
+
output.write(`spaceId: ${resolvedSpaceId}
|
|
730
|
+
`);
|
|
731
|
+
}
|
|
732
|
+
output.write(`targetServers: ${serverUrls.join(", ")}
|
|
733
|
+
`);
|
|
734
|
+
if (serverFailures.length) {
|
|
735
|
+
output.write(`serverFailures: ${serverFailures.length}
|
|
736
|
+
`);
|
|
737
|
+
}
|
|
738
|
+
output.write(`total agents: ${agentsForOutput.length}
|
|
739
|
+
`);
|
|
740
|
+
output.write(`public agents: ${agentsForOutput.filter((agent) => agent.publicRecordExists).length}
|
|
741
|
+
`);
|
|
742
|
+
if (unavailableCount > 0 && !showUnavailable) {
|
|
743
|
+
output.write(t("agent.unavailableHidden", String(unavailableCount)));
|
|
744
|
+
const unavailableList = agents.filter((agent) => isAgentUnavailableNow(agent));
|
|
745
|
+
for (const unavail of unavailableList) {
|
|
746
|
+
const remainingSec = Math.max(0, Math.ceil(((unavail.nextAvailableAt ?? 0) - Date.now()) / 1e3));
|
|
747
|
+
const quotaSummary = formatQuotaSummary(unavail.quota);
|
|
748
|
+
const quotaText = quotaSummary ? ` (${quotaSummary})` : "";
|
|
749
|
+
output.write(
|
|
750
|
+
t("agent.rateLimitedRecovery", unavail.name, unavail.id, String(remainingSec), quotaText)
|
|
751
|
+
);
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
output.write(`source: ${source}
|
|
755
|
+
`);
|
|
756
|
+
if (agentsForOutput.length === 0) {
|
|
757
|
+
output.write("\n(no agents found)\n");
|
|
758
|
+
return 0;
|
|
759
|
+
}
|
|
760
|
+
for (const agent of agentsForOutput) {
|
|
761
|
+
const status = agent.publicRecordExists ? "public" : "private";
|
|
762
|
+
const flagMismatch = agent.isPublicFlag !== agent.publicRecordExists ? ` flag=${agent.isPublicFlag}` : "";
|
|
763
|
+
const credentialLine = agent.credentialConfigured ? `credentialConfigured=true${agent.credentialRef ? ` credentialRef=${agent.credentialRef}` : ""}${agent.apiKeyRef ? ` apiKeyRef=${agent.apiKeyRef}` : ""}` : "credentialConfigured=false";
|
|
764
|
+
const availabilityLine = typeof agent.nextAvailableAt === "number" && agent.nextAvailableAt > Date.now() ? `nextAvailableAt=${new Date(agent.nextAvailableAt).toISOString()}` : "nextAvailableAt=now";
|
|
765
|
+
const quotaSummary = formatQuotaSummary(agent.quota);
|
|
766
|
+
const quotaLine = `quota=${quotaSummary ?? "-"}`;
|
|
767
|
+
output.write(
|
|
768
|
+
[
|
|
769
|
+
`
|
|
770
|
+
[${status}] ${agent.name}`,
|
|
771
|
+
`id=${agent.id}`,
|
|
772
|
+
`type=${agent.type ?? "-"}`,
|
|
773
|
+
`model=${agent.model}`,
|
|
774
|
+
`updatedAt=${agent.updatedAt ?? "-"}`,
|
|
775
|
+
// 不输出 privateKey(dbKey 属敏感标识,与 web 端 listAgentsFunc 降权
|
|
776
|
+
// 对齐;需要完整记录请用 --json)。
|
|
777
|
+
// 私有 agent(publicRecordExists=false)的公开记录不存在,输出 "-" 而非
|
|
778
|
+
// 一个库里不存在的 agent-pub-<id>,避免误导调用方拿它去 readAgent。
|
|
779
|
+
`publicKey=${agent.publicRecordExists ? agent.publicKey : "-"}${flagMismatch}`,
|
|
780
|
+
`tools=${agent.tools.join(", ") || "-"}`,
|
|
781
|
+
credentialLine,
|
|
782
|
+
availabilityLine,
|
|
783
|
+
quotaLine
|
|
784
|
+
].join("\n")
|
|
785
|
+
);
|
|
786
|
+
output.write("\n");
|
|
787
|
+
}
|
|
788
|
+
return 0;
|
|
789
|
+
} catch (error) {
|
|
790
|
+
output.write(
|
|
791
|
+
`[nolo] agent list failed: ${toErrorMessage(error)}
|
|
792
|
+
`
|
|
793
|
+
);
|
|
794
|
+
return 1;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
export {
|
|
798
|
+
resolveSpeedSamplesCachePath,
|
|
799
|
+
runAgentListCommand
|
|
800
|
+
};
|