nolo-cli 0.108.0-alpha.1 → 0.108.0
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-GTYLDSJW.js → _executeModel-RVAKYU4J.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-OWYHN6D6.js → agentDeleteCommand-T5MDAOE7.js} +154 -67
- package/{agentEmailCommands-C6J2KUL2.js → agentEmailCommands-UWBQSKLI.js} +125 -104
- package/{agentGrantCommands-M3XFO6EN.js → agentGrantCommands-HOJ3JBBQ.js} +3 -3
- package/agentListCommands-2Q456VYS.js +800 -0
- package/{agentMachineCommands-UDEXV472.js → agentMachineCommands-FPJJ4DCF.js} +54 -57
- package/{agentProviderCommands-GNPTL5XR.js → agentProviderCommands-7PCGR77I.js} +97 -2
- package/{agentPullCommand-O5MPVJ5E.js → agentPullCommand-7GCDM4BK.js} +7 -7
- package/agentRecordCommands-3JGDR4NN.js +149 -0
- package/agentRunCommand-3NQOP3SD.js +179 -0
- package/{agentRunControl-AVJR4JW4.js → agentRunControl-2CDZNHXV.js} +10 -2
- package/{agentRuntimeLocal-KCMC2TBD.js → agentRuntimeLocal-SQUDRZWE.js} +42 -46
- package/{agentSlice-TNH7BSUC.js → agentSlice-R4W6MCEW.js} +22 -16
- package/{appDeleteCommands-JEPA3EWE.js → appDeleteCommands-CLLYGEBC.js} +55 -55
- package/{appDeployCommands-UTB76XFM.js → appDeployCommands-HY2NBNDQ.js} +64 -59
- package/{appDeployStatusCommands-LGHF2SBD.js → appDeployStatusCommands-SGO5GEXH.js} +53 -52
- package/{appGetCommands-PX2BFHOB.js → appGetCommands-ZPYK2N5D.js} +53 -52
- package/{appListCommands-BSMPTWKC.js → appListCommands-O2BHIMKS.js} +54 -55
- package/{authCommand-YW42YZA4.js → authCommand-GUIREPHK.js} +213 -72
- 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-RRPWH4LX.js → chunk-26UZ2Y4Z.js} +26 -31
- package/{chunk-2F7RJC6L.js → chunk-2C47W7IJ.js} +1 -1
- package/{chunk-VLTIYV3X.js → chunk-2ECUZDEL.js} +37 -11
- 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-3SK3J3IF.js +929 -0
- 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-XT35TTFG.js → chunk-5WLADF62.js} +90 -36
- package/chunk-5XN3OSCT.js +164 -0
- 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-GEPUP7OO.js → chunk-726TCFLQ.js} +5 -5
- package/chunk-7DPNBQSV.js +9 -0
- package/chunk-7YVPCIEN.js +1858 -0
- package/{chunk-AEOE4Z6Q.js → chunk-A337PRRR.js} +41 -17
- package/chunk-AGIM7IMJ.js +147 -0
- package/{chunk-ABQYVJBJ.js → chunk-AIZE5TDM.js} +3 -3
- package/{chunk-GPCZ7UXG.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-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-DGDGNYI5.js +593 -0
- package/{chunk-TRV2MIDW.js → chunk-EXAJ6DCR.js} +1 -0
- package/{chunk-PVZT43MU.js → chunk-EXR4XCFE.js} +17 -15
- package/chunk-EYLGAEB4.js +784 -0
- package/{chunk-3BMYXEUW.js → chunk-F2UJW3EK.js} +1 -1
- 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-GMZLP5DV.js +82 -0
- package/chunk-I42VC5KR.js +15 -0
- package/{chunk-GO3Z72MT.js → chunk-IFALJPEX.js} +71 -99
- package/{chunk-O6OSWFZQ.js → chunk-IHPDK6UD.js} +6 -0
- package/{chunk-UKWGR5SS.js → chunk-IJERIUXS.js} +242 -1146
- package/chunk-IRG4OKY6.js +843 -0
- package/{chunk-TYYSADX4.js → chunk-IUTHWIZQ.js} +269 -141
- package/{chunk-QDSINZM3.js → chunk-IXH3HKY2.js} +1 -22
- package/chunk-JJM3WS6W.js +132 -0
- package/{chunk-R7RHOSZU.js → chunk-KN6MKCS5.js} +1733 -465
- package/{chunk-SH43IESU.js → chunk-KQ7DAEZ7.js} +202 -32
- package/{chunk-6OZ36FXI.js → chunk-KY6GPQ7O.js} +36 -12
- package/{chunk-MRIHM22T.js → chunk-LAVSW2C2.js} +77 -144
- package/{chunk-NA35QHCF.js → chunk-LNEKN523.js} +10 -7
- package/chunk-LWLNLZC5.js +265 -0
- package/{chunk-I3TQJXQ7.js → chunk-MHD5JBSS.js} +131 -10
- package/{chunk-KQ4ONNQD.js → chunk-MW533QT3.js} +190 -8
- package/{chunk-62CATUYY.js → chunk-NLEJWKF5.js} +10532 -9444
- 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-53HEEOTT.js → chunk-OYBAT7RT.js} +113 -17
- package/chunk-P3SFAHIL.js +134 -0
- package/{chunk-7U6P3PHS.js → chunk-P6KLYCL3.js} +310 -95
- 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-RRM7AJ3M.js → chunk-PS6XSDHW.js} +35 -30
- package/{chunk-HVURBGF3.js → chunk-PWRS2SU2.js} +27 -9
- package/chunk-QFEW2ULV.js +42 -0
- package/chunk-QH2QSBGP.js +7546 -0
- package/{chunk-IIVGDG4I.js → chunk-QLQ573SU.js} +124 -77
- package/chunk-QQ56R7KS.js +88 -0
- 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-ROXFUKKL.js +13941 -0
- package/{chunk-DUK4OQNO.js → chunk-RRPT5CGT.js} +124 -703
- package/{chunk-JRQFUXY7.js → chunk-RRQQAG7W.js} +93 -24
- package/chunk-SJ3QFSQS.js +1147 -0
- package/chunk-SP4WCECG.js +95 -0
- package/{chunk-Q67DOFOO.js → chunk-SZC4REES.js} +212 -105
- package/{chunk-BYMV6QZG.js → chunk-TNIX77YM.js} +4 -0
- package/{chunk-UZGQNTVW.js → chunk-TSBCYK5F.js} +10 -8
- package/chunk-TY3TIUJK.js +89 -0
- package/chunk-U4STABYN.js +81 -0
- package/chunk-UEILX4EV.js +15 -0
- package/{chunk-YYLHWIW6.js → chunk-UKZX3NHN.js} +1 -1
- package/{chunk-EEGDMATE.js → chunk-UPFOOGHU.js} +90 -79
- package/{chunk-7S4YWN7P.js → chunk-V2UPLOXT.js} +4 -4
- package/{chunk-PQFHGD77.js → chunk-V5DCOM6G.js} +185 -16
- 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-ETI2NYVF.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-L7OXGGBN.js → chunk-WVES4PHL.js} +69 -57
- package/{chunk-BFDFRLLQ.js → chunk-WW2USJ3C.js} +3 -3
- package/{chunk-QWL5QZGU.js → chunk-X2VPXJZC.js} +20 -11
- 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-JEDZAO7L.js → chunk-YBNHPX4S.js} +257 -37
- package/{chunk-JPGCXHNM.js → chunk-YLMMECCH.js} +1 -1
- package/{chunk-CSC3CU4K.js → chunk-YSZQSZR2.js} +61 -11
- package/{chunk-6D6VBVEW.js → chunk-YVTZMLXZ.js} +96 -25
- package/{chunk-AG2AZ6GX.js → chunk-YZZLKXCQ.js} +1449 -1094
- 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-C25O2ARU.js +839 -0
- package/contentThunks-UWODFKX6.js +83 -0
- package/{cooldownCommands-REAWYVTY.js → cooldownCommands-JFKTYS2D.js} +2 -2
- package/{createAgentAutomationAction-OBH7GPW5.js → createAgentAutomationAction-SA4IA4CR.js} +51 -43
- package/createDialogAction-EDK5IMRG.js +75 -0
- package/{createPageAction-JJ7UUTWC.js → createPageAction-VYVF5EIZ.js} +60 -51
- package/{chunk-BVGTK7MR.js → cursorProvider-YGGNMVWX.js} +2751 -10185
- 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-6Z2BPC3T.js → dialogSlice-EEDP6PJ3.js} +66 -41
- package/{dist-VODFSGNG.js → dist-NJC2W7I4.js} +61 -54
- package/{docCreateCommands-WRG2JLGM.js → docCreateCommands-N3KPGP4A.js} +51 -53
- package/{docDeleteCommands-SHWJIBJS.js → docDeleteCommands-4CR4TXZ7.js} +53 -54
- package/{docReadCommands-WJN3WT6O.js → docReadCommands-62XK57VS.js} +50 -52
- package/{docStore-7WUS6XXX.js → docStore-RB7YBD4Y.js} +24 -15
- package/{docUpdateCommands-IE32IL6O.js → docUpdateCommands-DRAAWIDC.js} +51 -53
- package/{fetchMessages-EIU7UFFK.js → fetchMessages-LM6OMMQQ.js} +5 -4
- package/{getPricing-LUSEABA6.js → getPricing-XDF4OLTC.js} +6 -6
- package/handleSendMessageAction-TYDPIC6O.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-VYB2QTU3.js +239 -0
- package/{localRuntimeAuthority-6IR6BBXE.js → localRuntimeAuthority-YSE6NH7B.js} +12 -9
- package/{localRuntimeDb-SYQGUF4U.js → localRuntimeDb-7FBKDEQY.js} +1 -1
- package/{machineCommands-KSN4COGR.js → machineCommands-IQRRLSYP.js} +493 -151
- package/machineWsRunDispatch-LIMM5CYE.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-FG6NZ57W.js → providerPresetApply-HIPK67DU.js} +9 -9
- package/{providerRegistry-757OWH3O.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-HO62DKCG.js → readlineWorkspace-P3I7ZJUP.js} +6948 -3879
- package/{removeDialogAgentAction-J6X5QMTA.js → removeDialogAgentAction-EFQ4O2IQ.js} +27 -26
- package/{runAgentClientLoop-JLRJIF3F.js → runAgentClientLoop-AYNL3KMJ.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-5GLCWZPO.js → spaceCommands-WZCLRGBO.js} +56 -55
- package/{streamAgentChatTurn-DZ3PP7ZH.js → streamAgentChatTurn-O5T3B4B3.js} +325 -1557
- 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-UMU2DYQX.js +122 -0
- package/{tuiSummaryLlmCaller-OHHFTHMG.js → tuiSummaryLlmCaller-ISODIW2O.js} +15 -29
- package/{updateCommands-2M74UL7P.js → updateCommands-NQXAGFM7.js} +3 -3
- package/{updateDialogTitleAction-VWZT4J6J.js → updateDialogTitleAction-TIS2SETN.js} +101 -57
- package/action-P4TNFGAD.js +0 -31
- package/agentListCommands-B2V4YAC4.js +0 -410
- package/agentRecordCommands-XBVDEYVC.js +0 -128
- package/agentRunCommand-V6RTNFRH.js +0 -156
- package/browser-image-compression-MFDTD7K6.js +0 -1763
- package/chatQueueReduxAdapter-XMFWRG3P.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-PUOC4YRO.js +0 -394
- package/chunk-Q5FJJ6XI.js +0 -103
- package/chunk-QQWJUHSL.js +0 -34
- package/chunk-S7Z2HMCN.js +0 -25
- package/chunk-TWQWYIMJ.js +0 -21409
- package/chunk-Y5GCAMGP.js +0 -9
- package/chunk-YPREESF4.js +0 -225
- package/contentThunks-3Z6NAUW6.js +0 -73
- package/createDialogAction-7XW3RX2A.js +0 -65
- package/dialogCommands-H7FPUYUQ.js +0 -99
- package/handleSendMessageAction-GUBOMCGM.js +0 -633
- package/machineWsRunDispatch-AAG6PDBY.js +0 -144
- package/setDialogExtraReferencesAction-WX5VTY6O.js +0 -30
- package/settingSlice-P4ZW7K5X.js +0 -204
- package/syncMapping-N6RGXGBW.js +0 -437
- package/tools-XA4ZWLH4.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,158 @@
|
|
|
1
|
+
import { BufferFormat, ViewFormat, UTF8Format } from './formats'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Encodes {@link TIn} to {@link TFormat} and decodes
|
|
5
|
+
* {@link TFormat} to {@link TOut}.
|
|
6
|
+
*/
|
|
7
|
+
export abstract class Encoding<TIn, TFormat, TOut> implements IEncoding<TIn, TFormat, TOut> {
|
|
8
|
+
constructor (options: IEncoding<TIn, TFormat, TOut>)
|
|
9
|
+
|
|
10
|
+
encode: (data: TIn) => TFormat
|
|
11
|
+
decode: (data: TFormat) => TOut
|
|
12
|
+
name: string
|
|
13
|
+
format: 'buffer' | 'view' | 'utf8'
|
|
14
|
+
createViewTranscoder (): ViewFormat<TIn, TOut>
|
|
15
|
+
createBufferTranscoder (): BufferFormat<TIn, TOut>
|
|
16
|
+
createUTF8Transcoder (): UTF8Format<TIn, TOut>
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Common name, computed from {@link name}. If this encoding is a
|
|
20
|
+
* transcoder encoding, {@link name} will be for example 'json+view'
|
|
21
|
+
* and {@link commonName} will be just 'json'. Else {@link name}
|
|
22
|
+
* will equal {@link commonName}.
|
|
23
|
+
*/
|
|
24
|
+
get commonName (): string
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface IEncoding<TIn, TFormat, TOut> {
|
|
28
|
+
/**
|
|
29
|
+
* Encode data.
|
|
30
|
+
*/
|
|
31
|
+
encode: (data: TIn) => TFormat
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Decode data.
|
|
35
|
+
*/
|
|
36
|
+
decode: (data: TFormat) => TOut
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Unique name.
|
|
40
|
+
*/
|
|
41
|
+
name: string
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The name of the (lower-level) encoding used by the return value of
|
|
45
|
+
* {@link encode}. One of 'buffer', 'view', 'utf8'.
|
|
46
|
+
*/
|
|
47
|
+
format: 'buffer' | 'view' | 'utf8'
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Create a new encoding that transcodes {@link TFormat} from / to a view.
|
|
51
|
+
*/
|
|
52
|
+
createViewTranscoder?: (() => ViewFormat<TIn, TOut>) | undefined
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Create a new encoding that transcodes {@link TFormat} from / to a buffer.
|
|
56
|
+
*/
|
|
57
|
+
createBufferTranscoder?: (() => BufferFormat<TIn, TOut>) | undefined
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Create a new encoding that transcodes {@link TFormat} from / to a UTF-8 string.
|
|
61
|
+
*/
|
|
62
|
+
createUTF8Transcoder?: (() => UTF8Format<TIn, TOut>) | undefined
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface IExternalEncoding<TIn, TFormat, TOut> {
|
|
66
|
+
/**
|
|
67
|
+
* Encode data.
|
|
68
|
+
*/
|
|
69
|
+
encode: (data: TIn) => TFormat
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Decode data.
|
|
73
|
+
*/
|
|
74
|
+
decode: (data: TFormat) => TOut
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Unique name.
|
|
78
|
+
*/
|
|
79
|
+
name?: string | undefined
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Legacy `level-codec` option that means the same as `format: 'buffer'`
|
|
83
|
+
* if true or `format: 'utf8'` if false.
|
|
84
|
+
*/
|
|
85
|
+
buffer?: boolean | undefined
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Legacy `level-codec` alias for {@link name}. Used only when the
|
|
89
|
+
* {@link name} option is undefined.
|
|
90
|
+
*/
|
|
91
|
+
type?: any
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* To detect `multiformats`. If a number, then the encoding is
|
|
95
|
+
* assumed to have a {@link format} of 'view'.
|
|
96
|
+
* @see https://github.com/multiformats/js-multiformats/blob/master/src/codecs/interface.ts
|
|
97
|
+
*/
|
|
98
|
+
code?: any
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Names of built-in encodings.
|
|
103
|
+
*/
|
|
104
|
+
export type KnownEncodingName = 'utf8' | 'buffer' | 'view' | 'json' | 'hex' | 'base64'
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* One of the supported encoding interfaces.
|
|
108
|
+
*/
|
|
109
|
+
export type MixedEncoding<TIn, TFormat, TOut> =
|
|
110
|
+
IEncoding<TIn, TFormat, TOut> |
|
|
111
|
+
IExternalEncoding<TIn, TFormat, TOut>
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Type utility to cast a built-in encoding identified by its name to an {@link Encoding}.
|
|
115
|
+
*/
|
|
116
|
+
export type KnownEncoding<N extends KnownEncodingName, TFormat>
|
|
117
|
+
= Encoding<KnownEncodingInput<N>, TFormat, KnownEncodingOutput<N>>
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Type utility to get the input type of a built-in encoding identified by its name.
|
|
121
|
+
*/
|
|
122
|
+
export type KnownEncodingInput<N extends KnownEncodingName>
|
|
123
|
+
= N extends 'utf8' ? string | Buffer | Uint8Array
|
|
124
|
+
: N extends 'buffer' ? Buffer | Uint8Array | string
|
|
125
|
+
: N extends 'view' ? Uint8Array | string
|
|
126
|
+
: N extends 'json' ? any
|
|
127
|
+
: N extends 'hex' ? Buffer | string
|
|
128
|
+
: N extends 'base64' ? Buffer | string
|
|
129
|
+
: never
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Type utility to get the output type of a built-in encoding identified by its name.
|
|
133
|
+
*/
|
|
134
|
+
export type KnownEncodingOutput<N extends KnownEncodingName>
|
|
135
|
+
= N extends 'utf8' ? string
|
|
136
|
+
: N extends 'buffer' ? Buffer
|
|
137
|
+
: N extends 'view' ? Uint8Array
|
|
138
|
+
: N extends 'json' ? any
|
|
139
|
+
: N extends 'hex' ? string
|
|
140
|
+
: N extends 'base64' ? string
|
|
141
|
+
: never
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Type utility to use a {@link MixedEncoding} with an untyped format.
|
|
145
|
+
*/
|
|
146
|
+
export type PartialEncoding<TIn, TOut = TIn> = MixedEncoding<TIn, any, TOut>
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Type utility to use a {@link MixedEncoding} with an untyped format and output.
|
|
150
|
+
* For when only the encoding side is needed.
|
|
151
|
+
*/
|
|
152
|
+
export type PartialEncoder<TIn> = MixedEncoding<TIn, any, any>
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Type utility to use a {@link MixedEncoding} with an untyped input and format.
|
|
156
|
+
* For when only the decoding side is needed.
|
|
157
|
+
*/
|
|
158
|
+
export type PartialDecoder<TOut> = MixedEncoding<any, any, TOut>
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const ModuleError = require('module-error')
|
|
4
|
+
const formats = new Set(['buffer', 'view', 'utf8'])
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @template TIn, TFormat, TOut
|
|
8
|
+
* @abstract
|
|
9
|
+
*/
|
|
10
|
+
class Encoding {
|
|
11
|
+
/**
|
|
12
|
+
* @param {IEncoding<TIn,TFormat,TOut>} options
|
|
13
|
+
*/
|
|
14
|
+
constructor (options) {
|
|
15
|
+
/** @type {(data: TIn) => TFormat} */
|
|
16
|
+
this.encode = options.encode || this.encode
|
|
17
|
+
|
|
18
|
+
/** @type {(data: TFormat) => TOut} */
|
|
19
|
+
this.decode = options.decode || this.decode
|
|
20
|
+
|
|
21
|
+
/** @type {string} */
|
|
22
|
+
this.name = options.name || this.name
|
|
23
|
+
|
|
24
|
+
/** @type {string} */
|
|
25
|
+
this.format = options.format || this.format
|
|
26
|
+
|
|
27
|
+
if (typeof this.encode !== 'function') {
|
|
28
|
+
throw new TypeError("The 'encode' property must be a function")
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (typeof this.decode !== 'function') {
|
|
32
|
+
throw new TypeError("The 'decode' property must be a function")
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
this.encode = this.encode.bind(this)
|
|
36
|
+
this.decode = this.decode.bind(this)
|
|
37
|
+
|
|
38
|
+
if (typeof this.name !== 'string' || this.name === '') {
|
|
39
|
+
throw new TypeError("The 'name' property must be a string")
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (typeof this.format !== 'string' || !formats.has(this.format)) {
|
|
43
|
+
throw new TypeError("The 'format' property must be one of 'buffer', 'view', 'utf8'")
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (options.createViewTranscoder) {
|
|
47
|
+
this.createViewTranscoder = options.createViewTranscoder
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (options.createBufferTranscoder) {
|
|
51
|
+
this.createBufferTranscoder = options.createBufferTranscoder
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (options.createUTF8Transcoder) {
|
|
55
|
+
this.createUTF8Transcoder = options.createUTF8Transcoder
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
get commonName () {
|
|
60
|
+
return /** @type {string} */ (this.name.split('+')[0])
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** @return {BufferFormat<TIn,TOut>} */
|
|
64
|
+
createBufferTranscoder () {
|
|
65
|
+
throw new ModuleError(`Encoding '${this.name}' cannot be transcoded to 'buffer'`, {
|
|
66
|
+
code: 'LEVEL_ENCODING_NOT_SUPPORTED'
|
|
67
|
+
})
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** @return {ViewFormat<TIn,TOut>} */
|
|
71
|
+
createViewTranscoder () {
|
|
72
|
+
throw new ModuleError(`Encoding '${this.name}' cannot be transcoded to 'view'`, {
|
|
73
|
+
code: 'LEVEL_ENCODING_NOT_SUPPORTED'
|
|
74
|
+
})
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** @return {UTF8Format<TIn,TOut>} */
|
|
78
|
+
createUTF8Transcoder () {
|
|
79
|
+
throw new ModuleError(`Encoding '${this.name}' cannot be transcoded to 'utf8'`, {
|
|
80
|
+
code: 'LEVEL_ENCODING_NOT_SUPPORTED'
|
|
81
|
+
})
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
exports.Encoding = Encoding
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @typedef {import('./encoding').IEncoding<TIn,TFormat,TOut>} IEncoding
|
|
89
|
+
* @template TIn, TFormat, TOut
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @typedef {import('./formats').BufferFormat<TIn,TOut>} BufferFormat
|
|
94
|
+
* @template TIn, TOut
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @typedef {import('./formats').ViewFormat<TIn,TOut>} ViewFormat
|
|
99
|
+
* @template TIn, TOut
|
|
100
|
+
*/
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @typedef {import('./formats').UTF8Format<TIn,TOut>} UTF8Format
|
|
104
|
+
* @template TIn, TOut
|
|
105
|
+
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { KnownEncodingInput, KnownEncodingOutput } from './encoding'
|
|
2
|
+
import { BufferFormat, ViewFormat, UTF8Format } from './formats'
|
|
3
|
+
|
|
4
|
+
export const utf8: UTF8Format<KnownEncodingInput<'utf8'>, KnownEncodingOutput<'utf8'>>
|
|
5
|
+
export const json: UTF8Format<KnownEncodingInput<'json'>, KnownEncodingOutput<'json'>>
|
|
6
|
+
export const buffer: BufferFormat<KnownEncodingInput<'buffer'>, KnownEncodingOutput<'buffer'>>
|
|
7
|
+
export const view: ViewFormat<KnownEncodingInput<'view'>, KnownEncodingOutput<'view'>>
|
|
8
|
+
export const hex: BufferFormat<KnownEncodingInput<'hex'>, KnownEncodingOutput<'hex'>>
|
|
9
|
+
export const base64: BufferFormat<KnownEncodingInput<'base64'>, KnownEncodingOutput<'base64'>>
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const { Buffer } = require('buffer') || { Buffer: { isBuffer: () => false } }
|
|
4
|
+
const { textEncoder, textDecoder } = require('./text-endec')()
|
|
5
|
+
const { BufferFormat, ViewFormat, UTF8Format } = require('./formats')
|
|
6
|
+
|
|
7
|
+
/** @type {<T>(v: T) => v} */
|
|
8
|
+
const identity = (v) => v
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @type {typeof import('./encodings').utf8}
|
|
12
|
+
*/
|
|
13
|
+
exports.utf8 = new UTF8Format({
|
|
14
|
+
encode: function (data) {
|
|
15
|
+
// On node 16.9.1 buffer.toString() is 5x faster than TextDecoder
|
|
16
|
+
return Buffer.isBuffer(data)
|
|
17
|
+
? data.toString('utf8')
|
|
18
|
+
: ArrayBuffer.isView(data)
|
|
19
|
+
? textDecoder.decode(data)
|
|
20
|
+
: String(data)
|
|
21
|
+
},
|
|
22
|
+
decode: identity,
|
|
23
|
+
name: 'utf8',
|
|
24
|
+
createViewTranscoder () {
|
|
25
|
+
return new ViewFormat({
|
|
26
|
+
encode: function (data) {
|
|
27
|
+
return ArrayBuffer.isView(data) ? data : textEncoder.encode(data)
|
|
28
|
+
},
|
|
29
|
+
decode: function (data) {
|
|
30
|
+
return textDecoder.decode(data)
|
|
31
|
+
},
|
|
32
|
+
name: `${this.name}+view`
|
|
33
|
+
})
|
|
34
|
+
},
|
|
35
|
+
createBufferTranscoder () {
|
|
36
|
+
return new BufferFormat({
|
|
37
|
+
encode: function (data) {
|
|
38
|
+
return Buffer.isBuffer(data)
|
|
39
|
+
? data
|
|
40
|
+
: ArrayBuffer.isView(data)
|
|
41
|
+
? Buffer.from(data.buffer, data.byteOffset, data.byteLength)
|
|
42
|
+
: Buffer.from(String(data), 'utf8')
|
|
43
|
+
},
|
|
44
|
+
decode: function (data) {
|
|
45
|
+
return data.toString('utf8')
|
|
46
|
+
},
|
|
47
|
+
name: `${this.name}+buffer`
|
|
48
|
+
})
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @type {typeof import('./encodings').json}
|
|
54
|
+
*/
|
|
55
|
+
exports.json = new UTF8Format({
|
|
56
|
+
encode: JSON.stringify,
|
|
57
|
+
decode: JSON.parse,
|
|
58
|
+
name: 'json'
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @type {typeof import('./encodings').buffer}
|
|
63
|
+
*/
|
|
64
|
+
exports.buffer = new BufferFormat({
|
|
65
|
+
encode: function (data) {
|
|
66
|
+
return Buffer.isBuffer(data)
|
|
67
|
+
? data
|
|
68
|
+
: ArrayBuffer.isView(data)
|
|
69
|
+
? Buffer.from(data.buffer, data.byteOffset, data.byteLength)
|
|
70
|
+
: Buffer.from(String(data), 'utf8')
|
|
71
|
+
},
|
|
72
|
+
decode: identity,
|
|
73
|
+
name: 'buffer',
|
|
74
|
+
createViewTranscoder () {
|
|
75
|
+
return new ViewFormat({
|
|
76
|
+
encode: function (data) {
|
|
77
|
+
return ArrayBuffer.isView(data) ? data : Buffer.from(String(data), 'utf8')
|
|
78
|
+
},
|
|
79
|
+
decode: function (data) {
|
|
80
|
+
return Buffer.from(data.buffer, data.byteOffset, data.byteLength)
|
|
81
|
+
},
|
|
82
|
+
name: `${this.name}+view`
|
|
83
|
+
})
|
|
84
|
+
}
|
|
85
|
+
})
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @type {typeof import('./encodings').view}
|
|
89
|
+
*/
|
|
90
|
+
exports.view = new ViewFormat({
|
|
91
|
+
encode: function (data) {
|
|
92
|
+
return ArrayBuffer.isView(data) ? data : textEncoder.encode(data)
|
|
93
|
+
},
|
|
94
|
+
decode: identity,
|
|
95
|
+
name: 'view',
|
|
96
|
+
createBufferTranscoder () {
|
|
97
|
+
return new BufferFormat({
|
|
98
|
+
encode: function (data) {
|
|
99
|
+
return Buffer.isBuffer(data)
|
|
100
|
+
? data
|
|
101
|
+
: ArrayBuffer.isView(data)
|
|
102
|
+
? Buffer.from(data.buffer, data.byteOffset, data.byteLength)
|
|
103
|
+
: Buffer.from(String(data), 'utf8')
|
|
104
|
+
},
|
|
105
|
+
decode: identity,
|
|
106
|
+
name: `${this.name}+buffer`
|
|
107
|
+
})
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @type {typeof import('./encodings').hex}
|
|
113
|
+
*/
|
|
114
|
+
exports.hex = new BufferFormat({
|
|
115
|
+
encode: function (data) {
|
|
116
|
+
return Buffer.isBuffer(data) ? data : Buffer.from(String(data), 'hex')
|
|
117
|
+
},
|
|
118
|
+
decode: function (buffer) {
|
|
119
|
+
return buffer.toString('hex')
|
|
120
|
+
},
|
|
121
|
+
name: 'hex'
|
|
122
|
+
})
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @type {typeof import('./encodings').base64}
|
|
126
|
+
*/
|
|
127
|
+
exports.base64 = new BufferFormat({
|
|
128
|
+
encode: function (data) {
|
|
129
|
+
return Buffer.isBuffer(data) ? data : Buffer.from(String(data), 'base64')
|
|
130
|
+
},
|
|
131
|
+
decode: function (buffer) {
|
|
132
|
+
return buffer.toString('base64')
|
|
133
|
+
},
|
|
134
|
+
name: 'base64'
|
|
135
|
+
})
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Encoding, IEncoding } from './encoding'
|
|
2
|
+
|
|
3
|
+
export class BufferFormat<TIn, TOut> extends Encoding<TIn, Buffer, TOut> {
|
|
4
|
+
constructor (options: Omit<IEncoding<TIn, Buffer, TOut>, 'format'>)
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export class ViewFormat<TIn, TOut> extends Encoding<TIn, Uint8Array, TOut> {
|
|
8
|
+
constructor (options: Omit<IEncoding<TIn, Uint8Array, TOut>, 'format'>)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export class UTF8Format<TIn, TOut> extends Encoding<TIn, string, TOut> {
|
|
12
|
+
constructor (options: Omit<IEncoding<TIn, string, TOut>, 'format'>)
|
|
13
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const { Buffer } = require('buffer') || {}
|
|
4
|
+
const { Encoding } = require('./encoding')
|
|
5
|
+
const textEndec = require('./text-endec')
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @template TIn, TOut
|
|
9
|
+
* @extends {Encoding<TIn,Buffer,TOut>}
|
|
10
|
+
*/
|
|
11
|
+
class BufferFormat extends Encoding {
|
|
12
|
+
/**
|
|
13
|
+
* @param {Omit<IEncoding<TIn, Buffer, TOut>, 'format'>} options
|
|
14
|
+
*/
|
|
15
|
+
constructor (options) {
|
|
16
|
+
super({ ...options, format: 'buffer' })
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** @override */
|
|
20
|
+
createViewTranscoder () {
|
|
21
|
+
return new ViewFormat({
|
|
22
|
+
encode: this.encode, // Buffer is a view (UInt8Array)
|
|
23
|
+
decode: (data) => this.decode(
|
|
24
|
+
Buffer.from(data.buffer, data.byteOffset, data.byteLength)
|
|
25
|
+
),
|
|
26
|
+
name: `${this.name}+view`
|
|
27
|
+
})
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** @override */
|
|
31
|
+
createBufferTranscoder () {
|
|
32
|
+
return this
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @extends {Encoding<TIn,Uint8Array,TOut>}
|
|
38
|
+
* @template TIn, TOut
|
|
39
|
+
*/
|
|
40
|
+
class ViewFormat extends Encoding {
|
|
41
|
+
/**
|
|
42
|
+
* @param {Omit<IEncoding<TIn, Uint8Array, TOut>, 'format'>} options
|
|
43
|
+
*/
|
|
44
|
+
constructor (options) {
|
|
45
|
+
super({ ...options, format: 'view' })
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** @override */
|
|
49
|
+
createBufferTranscoder () {
|
|
50
|
+
return new BufferFormat({
|
|
51
|
+
encode: (data) => {
|
|
52
|
+
const view = this.encode(data)
|
|
53
|
+
return Buffer.from(view.buffer, view.byteOffset, view.byteLength)
|
|
54
|
+
},
|
|
55
|
+
decode: this.decode, // Buffer is a view (UInt8Array)
|
|
56
|
+
name: `${this.name}+buffer`
|
|
57
|
+
})
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** @override */
|
|
61
|
+
createViewTranscoder () {
|
|
62
|
+
return this
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @extends {Encoding<TIn,string,TOut>}
|
|
68
|
+
* @template TIn, TOut
|
|
69
|
+
*/
|
|
70
|
+
class UTF8Format extends Encoding {
|
|
71
|
+
/**
|
|
72
|
+
* @param {Omit<IEncoding<TIn, string, TOut>, 'format'>} options
|
|
73
|
+
*/
|
|
74
|
+
constructor (options) {
|
|
75
|
+
super({ ...options, format: 'utf8' })
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** @override */
|
|
79
|
+
createBufferTranscoder () {
|
|
80
|
+
return new BufferFormat({
|
|
81
|
+
encode: (data) => Buffer.from(this.encode(data), 'utf8'),
|
|
82
|
+
decode: (data) => this.decode(data.toString('utf8')),
|
|
83
|
+
name: `${this.name}+buffer`
|
|
84
|
+
})
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** @override */
|
|
88
|
+
createViewTranscoder () {
|
|
89
|
+
const { textEncoder, textDecoder } = textEndec()
|
|
90
|
+
|
|
91
|
+
return new ViewFormat({
|
|
92
|
+
encode: (data) => textEncoder.encode(this.encode(data)),
|
|
93
|
+
decode: (data) => this.decode(textDecoder.decode(data)),
|
|
94
|
+
name: `${this.name}+view`
|
|
95
|
+
})
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/** @override */
|
|
99
|
+
createUTF8Transcoder () {
|
|
100
|
+
return this
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
exports.BufferFormat = BufferFormat
|
|
105
|
+
exports.ViewFormat = ViewFormat
|
|
106
|
+
exports.UTF8Format = UTF8Format
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @typedef {import('./encoding').IEncoding<TIn,TFormat,TOut>} IEncoding
|
|
110
|
+
* @template TIn, TFormat, TOut
|
|
111
|
+
*/
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
/** @type {{ textEncoder: TextEncoder, textDecoder: TextDecoder }|null} */
|
|
4
|
+
let lazy = null
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Get semi-global instances of TextEncoder and TextDecoder.
|
|
8
|
+
* @returns {{ textEncoder: TextEncoder, textDecoder: TextDecoder }}
|
|
9
|
+
*/
|
|
10
|
+
module.exports = function () {
|
|
11
|
+
if (lazy === null) {
|
|
12
|
+
lazy = {
|
|
13
|
+
textEncoder: new TextEncoder(),
|
|
14
|
+
textDecoder: new TextDecoder()
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return lazy
|
|
19
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "level-transcoder",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Encode data with built-in or custom encodings",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"types": "./index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"test": "ts-standard && tsc && standard && hallmark && nyc tape test/*.js",
|
|
10
|
+
"test-browsers-local": "airtap --coverage --verbose test/*.js",
|
|
11
|
+
"coverage": "nyc report -r lcovonly",
|
|
12
|
+
"hallmark": "hallmark --fix"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"lib",
|
|
16
|
+
"index.js",
|
|
17
|
+
"index.d.ts",
|
|
18
|
+
"CHANGELOG.md",
|
|
19
|
+
"LICENSE",
|
|
20
|
+
"UPGRADING.md"
|
|
21
|
+
],
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"buffer": "^6.0.3",
|
|
24
|
+
"module-error": "^1.0.1"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/node": "^16.11.10",
|
|
28
|
+
"@voxpelli/tsconfig": "^3.1.0",
|
|
29
|
+
"airtap": "^4.0.3",
|
|
30
|
+
"airtap-playwright": "^1.0.1",
|
|
31
|
+
"hallmark": "^4.0.0",
|
|
32
|
+
"nyc": "^15.1.0",
|
|
33
|
+
"standard": "^16.0.3",
|
|
34
|
+
"tape": "^5.3.2",
|
|
35
|
+
"ts-standard": "^11.0.0",
|
|
36
|
+
"typescript": "^4.5.2"
|
|
37
|
+
},
|
|
38
|
+
"repository": "Level/transcoder",
|
|
39
|
+
"homepage": "https://github.com/Level/transcoder",
|
|
40
|
+
"keywords": [
|
|
41
|
+
"level"
|
|
42
|
+
],
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=12"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
**Copyright © 2020-present Vincent Weevers**
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|