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,147 @@
|
|
|
1
|
+
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file. See the AUTHORS file for names of contributors.
|
|
4
|
+
//
|
|
5
|
+
// WriteBatch::rep_ :=
|
|
6
|
+
// sequence: fixed64
|
|
7
|
+
// count: fixed32
|
|
8
|
+
// data: record[count]
|
|
9
|
+
// record :=
|
|
10
|
+
// kTypeValue varstring varstring |
|
|
11
|
+
// kTypeDeletion varstring
|
|
12
|
+
// varstring :=
|
|
13
|
+
// len: varint32
|
|
14
|
+
// data: uint8[len]
|
|
15
|
+
|
|
16
|
+
#include "leveldb/write_batch.h"
|
|
17
|
+
|
|
18
|
+
#include "leveldb/db.h"
|
|
19
|
+
#include "db/dbformat.h"
|
|
20
|
+
#include "db/memtable.h"
|
|
21
|
+
#include "db/write_batch_internal.h"
|
|
22
|
+
#include "util/coding.h"
|
|
23
|
+
|
|
24
|
+
namespace leveldb {
|
|
25
|
+
|
|
26
|
+
// WriteBatch header has an 8-byte sequence number followed by a 4-byte count.
|
|
27
|
+
static const size_t kHeader = 12;
|
|
28
|
+
|
|
29
|
+
WriteBatch::WriteBatch() {
|
|
30
|
+
Clear();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
WriteBatch::~WriteBatch() { }
|
|
34
|
+
|
|
35
|
+
WriteBatch::Handler::~Handler() { }
|
|
36
|
+
|
|
37
|
+
void WriteBatch::Clear() {
|
|
38
|
+
rep_.clear();
|
|
39
|
+
rep_.resize(kHeader);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
Status WriteBatch::Iterate(Handler* handler) const {
|
|
43
|
+
Slice input(rep_);
|
|
44
|
+
if (input.size() < kHeader) {
|
|
45
|
+
return Status::Corruption("malformed WriteBatch (too small)");
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
input.remove_prefix(kHeader);
|
|
49
|
+
Slice key, value;
|
|
50
|
+
int found = 0;
|
|
51
|
+
while (!input.empty()) {
|
|
52
|
+
found++;
|
|
53
|
+
char tag = input[0];
|
|
54
|
+
input.remove_prefix(1);
|
|
55
|
+
switch (tag) {
|
|
56
|
+
case kTypeValue:
|
|
57
|
+
if (GetLengthPrefixedSlice(&input, &key) &&
|
|
58
|
+
GetLengthPrefixedSlice(&input, &value)) {
|
|
59
|
+
handler->Put(key, value);
|
|
60
|
+
} else {
|
|
61
|
+
return Status::Corruption("bad WriteBatch Put");
|
|
62
|
+
}
|
|
63
|
+
break;
|
|
64
|
+
case kTypeDeletion:
|
|
65
|
+
if (GetLengthPrefixedSlice(&input, &key)) {
|
|
66
|
+
handler->Delete(key);
|
|
67
|
+
} else {
|
|
68
|
+
return Status::Corruption("bad WriteBatch Delete");
|
|
69
|
+
}
|
|
70
|
+
break;
|
|
71
|
+
default:
|
|
72
|
+
return Status::Corruption("unknown WriteBatch tag");
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
if (found != WriteBatchInternal::Count(this)) {
|
|
76
|
+
return Status::Corruption("WriteBatch has wrong count");
|
|
77
|
+
} else {
|
|
78
|
+
return Status::OK();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
int WriteBatchInternal::Count(const WriteBatch* b) {
|
|
83
|
+
return DecodeFixed32(b->rep_.data() + 8);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
void WriteBatchInternal::SetCount(WriteBatch* b, int n) {
|
|
87
|
+
EncodeFixed32(&b->rep_[8], n);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
SequenceNumber WriteBatchInternal::Sequence(const WriteBatch* b) {
|
|
91
|
+
return SequenceNumber(DecodeFixed64(b->rep_.data()));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
void WriteBatchInternal::SetSequence(WriteBatch* b, SequenceNumber seq) {
|
|
95
|
+
EncodeFixed64(&b->rep_[0], seq);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
void WriteBatch::Put(const Slice& key, const Slice& value) {
|
|
99
|
+
WriteBatchInternal::SetCount(this, WriteBatchInternal::Count(this) + 1);
|
|
100
|
+
rep_.push_back(static_cast<char>(kTypeValue));
|
|
101
|
+
PutLengthPrefixedSlice(&rep_, key);
|
|
102
|
+
PutLengthPrefixedSlice(&rep_, value);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
void WriteBatch::Delete(const Slice& key) {
|
|
106
|
+
WriteBatchInternal::SetCount(this, WriteBatchInternal::Count(this) + 1);
|
|
107
|
+
rep_.push_back(static_cast<char>(kTypeDeletion));
|
|
108
|
+
PutLengthPrefixedSlice(&rep_, key);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
namespace {
|
|
112
|
+
class MemTableInserter : public WriteBatch::Handler {
|
|
113
|
+
public:
|
|
114
|
+
SequenceNumber sequence_;
|
|
115
|
+
MemTable* mem_;
|
|
116
|
+
|
|
117
|
+
virtual void Put(const Slice& key, const Slice& value) {
|
|
118
|
+
mem_->Add(sequence_, kTypeValue, key, value);
|
|
119
|
+
sequence_++;
|
|
120
|
+
}
|
|
121
|
+
virtual void Delete(const Slice& key) {
|
|
122
|
+
mem_->Add(sequence_, kTypeDeletion, key, Slice());
|
|
123
|
+
sequence_++;
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
} // namespace
|
|
127
|
+
|
|
128
|
+
Status WriteBatchInternal::InsertInto(const WriteBatch* b,
|
|
129
|
+
MemTable* memtable) {
|
|
130
|
+
MemTableInserter inserter;
|
|
131
|
+
inserter.sequence_ = WriteBatchInternal::Sequence(b);
|
|
132
|
+
inserter.mem_ = memtable;
|
|
133
|
+
return b->Iterate(&inserter);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
void WriteBatchInternal::SetContents(WriteBatch* b, const Slice& contents) {
|
|
137
|
+
assert(contents.size() >= kHeader);
|
|
138
|
+
b->rep_.assign(contents.data(), contents.size());
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
void WriteBatchInternal::Append(WriteBatch* dst, const WriteBatch* src) {
|
|
142
|
+
SetCount(dst, Count(dst) + Count(src));
|
|
143
|
+
assert(src->rep_.size() >= kHeader);
|
|
144
|
+
dst->rep_.append(src->rep_.data() + kHeader, src->rep_.size() - kHeader);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
} // namespace leveldb
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file. See the AUTHORS file for names of contributors.
|
|
4
|
+
|
|
5
|
+
#ifndef STORAGE_LEVELDB_DB_WRITE_BATCH_INTERNAL_H_
|
|
6
|
+
#define STORAGE_LEVELDB_DB_WRITE_BATCH_INTERNAL_H_
|
|
7
|
+
|
|
8
|
+
#include "db/dbformat.h"
|
|
9
|
+
#include "leveldb/write_batch.h"
|
|
10
|
+
|
|
11
|
+
namespace leveldb {
|
|
12
|
+
|
|
13
|
+
class MemTable;
|
|
14
|
+
|
|
15
|
+
// WriteBatchInternal provides static methods for manipulating a
|
|
16
|
+
// WriteBatch that we don't want in the public WriteBatch interface.
|
|
17
|
+
class WriteBatchInternal {
|
|
18
|
+
public:
|
|
19
|
+
// Return the number of entries in the batch.
|
|
20
|
+
static int Count(const WriteBatch* batch);
|
|
21
|
+
|
|
22
|
+
// Set the count for the number of entries in the batch.
|
|
23
|
+
static void SetCount(WriteBatch* batch, int n);
|
|
24
|
+
|
|
25
|
+
// Return the sequence number for the start of this batch.
|
|
26
|
+
static SequenceNumber Sequence(const WriteBatch* batch);
|
|
27
|
+
|
|
28
|
+
// Store the specified number as the sequence number for the start of
|
|
29
|
+
// this batch.
|
|
30
|
+
static void SetSequence(WriteBatch* batch, SequenceNumber seq);
|
|
31
|
+
|
|
32
|
+
static Slice Contents(const WriteBatch* batch) {
|
|
33
|
+
return Slice(batch->rep_);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
static size_t ByteSize(const WriteBatch* batch) {
|
|
37
|
+
return batch->rep_.size();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static void SetContents(WriteBatch* batch, const Slice& contents);
|
|
41
|
+
|
|
42
|
+
static Status InsertInto(const WriteBatch* batch, MemTable* memtable);
|
|
43
|
+
|
|
44
|
+
static void Append(WriteBatch* dst, const WriteBatch* src);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
} // namespace leveldb
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
#endif // STORAGE_LEVELDB_DB_WRITE_BATCH_INTERNAL_H_
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file. See the AUTHORS file for names of contributors.
|
|
4
|
+
|
|
5
|
+
#include "leveldb/db.h"
|
|
6
|
+
|
|
7
|
+
#include "db/memtable.h"
|
|
8
|
+
#include "db/write_batch_internal.h"
|
|
9
|
+
#include "leveldb/env.h"
|
|
10
|
+
#include "util/logging.h"
|
|
11
|
+
#include "util/testharness.h"
|
|
12
|
+
|
|
13
|
+
namespace leveldb {
|
|
14
|
+
|
|
15
|
+
static std::string PrintContents(WriteBatch* b) {
|
|
16
|
+
InternalKeyComparator cmp(BytewiseComparator());
|
|
17
|
+
MemTable* mem = new MemTable(cmp);
|
|
18
|
+
mem->Ref();
|
|
19
|
+
std::string state;
|
|
20
|
+
Status s = WriteBatchInternal::InsertInto(b, mem);
|
|
21
|
+
int count = 0;
|
|
22
|
+
Iterator* iter = mem->NewIterator();
|
|
23
|
+
for (iter->SeekToFirst(); iter->Valid(); iter->Next()) {
|
|
24
|
+
ParsedInternalKey ikey;
|
|
25
|
+
ASSERT_TRUE(ParseInternalKey(iter->key(), &ikey));
|
|
26
|
+
switch (ikey.type) {
|
|
27
|
+
case kTypeValue:
|
|
28
|
+
state.append("Put(");
|
|
29
|
+
state.append(ikey.user_key.ToString());
|
|
30
|
+
state.append(", ");
|
|
31
|
+
state.append(iter->value().ToString());
|
|
32
|
+
state.append(")");
|
|
33
|
+
count++;
|
|
34
|
+
break;
|
|
35
|
+
case kTypeDeletion:
|
|
36
|
+
state.append("Delete(");
|
|
37
|
+
state.append(ikey.user_key.ToString());
|
|
38
|
+
state.append(")");
|
|
39
|
+
count++;
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
state.append("@");
|
|
43
|
+
state.append(NumberToString(ikey.sequence));
|
|
44
|
+
}
|
|
45
|
+
delete iter;
|
|
46
|
+
if (!s.ok()) {
|
|
47
|
+
state.append("ParseError()");
|
|
48
|
+
} else if (count != WriteBatchInternal::Count(b)) {
|
|
49
|
+
state.append("CountMismatch()");
|
|
50
|
+
}
|
|
51
|
+
mem->Unref();
|
|
52
|
+
return state;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
class WriteBatchTest { };
|
|
56
|
+
|
|
57
|
+
TEST(WriteBatchTest, Empty) {
|
|
58
|
+
WriteBatch batch;
|
|
59
|
+
ASSERT_EQ("", PrintContents(&batch));
|
|
60
|
+
ASSERT_EQ(0, WriteBatchInternal::Count(&batch));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
TEST(WriteBatchTest, Multiple) {
|
|
64
|
+
WriteBatch batch;
|
|
65
|
+
batch.Put(Slice("foo"), Slice("bar"));
|
|
66
|
+
batch.Delete(Slice("box"));
|
|
67
|
+
batch.Put(Slice("baz"), Slice("boo"));
|
|
68
|
+
WriteBatchInternal::SetSequence(&batch, 100);
|
|
69
|
+
ASSERT_EQ(100, WriteBatchInternal::Sequence(&batch));
|
|
70
|
+
ASSERT_EQ(3, WriteBatchInternal::Count(&batch));
|
|
71
|
+
ASSERT_EQ("Put(baz, boo)@102"
|
|
72
|
+
"Delete(box)@101"
|
|
73
|
+
"Put(foo, bar)@100",
|
|
74
|
+
PrintContents(&batch));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
TEST(WriteBatchTest, Corruption) {
|
|
78
|
+
WriteBatch batch;
|
|
79
|
+
batch.Put(Slice("foo"), Slice("bar"));
|
|
80
|
+
batch.Delete(Slice("box"));
|
|
81
|
+
WriteBatchInternal::SetSequence(&batch, 200);
|
|
82
|
+
Slice contents = WriteBatchInternal::Contents(&batch);
|
|
83
|
+
WriteBatchInternal::SetContents(&batch,
|
|
84
|
+
Slice(contents.data(),contents.size()-1));
|
|
85
|
+
ASSERT_EQ("Put(foo, bar)@200"
|
|
86
|
+
"ParseError()",
|
|
87
|
+
PrintContents(&batch));
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
TEST(WriteBatchTest, Append) {
|
|
91
|
+
WriteBatch b1, b2;
|
|
92
|
+
WriteBatchInternal::SetSequence(&b1, 200);
|
|
93
|
+
WriteBatchInternal::SetSequence(&b2, 300);
|
|
94
|
+
WriteBatchInternal::Append(&b1, &b2);
|
|
95
|
+
ASSERT_EQ("",
|
|
96
|
+
PrintContents(&b1));
|
|
97
|
+
b2.Put("a", "va");
|
|
98
|
+
WriteBatchInternal::Append(&b1, &b2);
|
|
99
|
+
ASSERT_EQ("Put(a, va)@200",
|
|
100
|
+
PrintContents(&b1));
|
|
101
|
+
b2.Clear();
|
|
102
|
+
b2.Put("b", "vb");
|
|
103
|
+
WriteBatchInternal::Append(&b1, &b2);
|
|
104
|
+
ASSERT_EQ("Put(a, va)@200"
|
|
105
|
+
"Put(b, vb)@201",
|
|
106
|
+
PrintContents(&b1));
|
|
107
|
+
b2.Delete("foo");
|
|
108
|
+
WriteBatchInternal::Append(&b1, &b2);
|
|
109
|
+
ASSERT_EQ("Put(a, va)@200"
|
|
110
|
+
"Put(b, vb)@202"
|
|
111
|
+
"Put(b, vb)@201"
|
|
112
|
+
"Delete(foo)@203",
|
|
113
|
+
PrintContents(&b1));
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
} // namespace leveldb
|
|
117
|
+
|
|
118
|
+
int main(int argc, char** argv) {
|
|
119
|
+
return leveldb::test::RunAllTests();
|
|
120
|
+
}
|
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file. See the AUTHORS file for names of contributors.
|
|
4
|
+
|
|
5
|
+
#include "helpers/memenv/memenv.h"
|
|
6
|
+
|
|
7
|
+
#include "leveldb/env.h"
|
|
8
|
+
#include "leveldb/status.h"
|
|
9
|
+
#include "port/port.h"
|
|
10
|
+
#include "util/mutexlock.h"
|
|
11
|
+
#include <map>
|
|
12
|
+
#include <string.h>
|
|
13
|
+
#include <string>
|
|
14
|
+
#include <vector>
|
|
15
|
+
|
|
16
|
+
namespace leveldb {
|
|
17
|
+
|
|
18
|
+
namespace {
|
|
19
|
+
|
|
20
|
+
class FileState {
|
|
21
|
+
public:
|
|
22
|
+
// FileStates are reference counted. The initial reference count is zero
|
|
23
|
+
// and the caller must call Ref() at least once.
|
|
24
|
+
FileState() : refs_(0), size_(0) {}
|
|
25
|
+
|
|
26
|
+
// Increase the reference count.
|
|
27
|
+
void Ref() {
|
|
28
|
+
MutexLock lock(&refs_mutex_);
|
|
29
|
+
++refs_;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Decrease the reference count. Delete if this is the last reference.
|
|
33
|
+
void Unref() {
|
|
34
|
+
bool do_delete = false;
|
|
35
|
+
|
|
36
|
+
{
|
|
37
|
+
MutexLock lock(&refs_mutex_);
|
|
38
|
+
--refs_;
|
|
39
|
+
assert(refs_ >= 0);
|
|
40
|
+
if (refs_ <= 0) {
|
|
41
|
+
do_delete = true;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (do_delete) {
|
|
46
|
+
delete this;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
uint64_t Size() const { return size_; }
|
|
51
|
+
|
|
52
|
+
Status Read(uint64_t offset, size_t n, Slice* result, char* scratch) const {
|
|
53
|
+
if (offset > size_) {
|
|
54
|
+
return Status::IOError("Offset greater than file size.");
|
|
55
|
+
}
|
|
56
|
+
const uint64_t available = size_ - offset;
|
|
57
|
+
if (n > available) {
|
|
58
|
+
n = static_cast<size_t>(available);
|
|
59
|
+
}
|
|
60
|
+
if (n == 0) {
|
|
61
|
+
*result = Slice();
|
|
62
|
+
return Status::OK();
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
assert(offset / kBlockSize <= SIZE_MAX);
|
|
66
|
+
size_t block = static_cast<size_t>(offset / kBlockSize);
|
|
67
|
+
size_t block_offset = offset % kBlockSize;
|
|
68
|
+
|
|
69
|
+
if (n <= kBlockSize - block_offset) {
|
|
70
|
+
// The requested bytes are all in the first block.
|
|
71
|
+
*result = Slice(blocks_[block] + block_offset, n);
|
|
72
|
+
return Status::OK();
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
size_t bytes_to_copy = n;
|
|
76
|
+
char* dst = scratch;
|
|
77
|
+
|
|
78
|
+
while (bytes_to_copy > 0) {
|
|
79
|
+
size_t avail = kBlockSize - block_offset;
|
|
80
|
+
if (avail > bytes_to_copy) {
|
|
81
|
+
avail = bytes_to_copy;
|
|
82
|
+
}
|
|
83
|
+
memcpy(dst, blocks_[block] + block_offset, avail);
|
|
84
|
+
|
|
85
|
+
bytes_to_copy -= avail;
|
|
86
|
+
dst += avail;
|
|
87
|
+
block++;
|
|
88
|
+
block_offset = 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
*result = Slice(scratch, n);
|
|
92
|
+
return Status::OK();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
Status Append(const Slice& data) {
|
|
96
|
+
const char* src = data.data();
|
|
97
|
+
size_t src_len = data.size();
|
|
98
|
+
|
|
99
|
+
while (src_len > 0) {
|
|
100
|
+
size_t avail;
|
|
101
|
+
size_t offset = size_ % kBlockSize;
|
|
102
|
+
|
|
103
|
+
if (offset != 0) {
|
|
104
|
+
// There is some room in the last block.
|
|
105
|
+
avail = kBlockSize - offset;
|
|
106
|
+
} else {
|
|
107
|
+
// No room in the last block; push new one.
|
|
108
|
+
blocks_.push_back(new char[kBlockSize]);
|
|
109
|
+
avail = kBlockSize;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (avail > src_len) {
|
|
113
|
+
avail = src_len;
|
|
114
|
+
}
|
|
115
|
+
memcpy(blocks_.back() + offset, src, avail);
|
|
116
|
+
src_len -= avail;
|
|
117
|
+
src += avail;
|
|
118
|
+
size_ += avail;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
return Status::OK();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
private:
|
|
125
|
+
// Private since only Unref() should be used to delete it.
|
|
126
|
+
~FileState() {
|
|
127
|
+
for (std::vector<char*>::iterator i = blocks_.begin(); i != blocks_.end();
|
|
128
|
+
++i) {
|
|
129
|
+
delete [] *i;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// No copying allowed.
|
|
134
|
+
FileState(const FileState&);
|
|
135
|
+
void operator=(const FileState&);
|
|
136
|
+
|
|
137
|
+
port::Mutex refs_mutex_;
|
|
138
|
+
int refs_; // Protected by refs_mutex_;
|
|
139
|
+
|
|
140
|
+
// The following fields are not protected by any mutex. They are only mutable
|
|
141
|
+
// while the file is being written, and concurrent access is not allowed
|
|
142
|
+
// to writable files.
|
|
143
|
+
std::vector<char*> blocks_;
|
|
144
|
+
uint64_t size_;
|
|
145
|
+
|
|
146
|
+
enum { kBlockSize = 8 * 1024 };
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
class SequentialFileImpl : public SequentialFile {
|
|
150
|
+
public:
|
|
151
|
+
explicit SequentialFileImpl(FileState* file) : file_(file), pos_(0) {
|
|
152
|
+
file_->Ref();
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
~SequentialFileImpl() {
|
|
156
|
+
file_->Unref();
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
virtual Status Read(size_t n, Slice* result, char* scratch) {
|
|
160
|
+
Status s = file_->Read(pos_, n, result, scratch);
|
|
161
|
+
if (s.ok()) {
|
|
162
|
+
pos_ += result->size();
|
|
163
|
+
}
|
|
164
|
+
return s;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
virtual Status Skip(uint64_t n) {
|
|
168
|
+
if (pos_ > file_->Size()) {
|
|
169
|
+
return Status::IOError("pos_ > file_->Size()");
|
|
170
|
+
}
|
|
171
|
+
const uint64_t available = file_->Size() - pos_;
|
|
172
|
+
if (n > available) {
|
|
173
|
+
n = available;
|
|
174
|
+
}
|
|
175
|
+
pos_ += n;
|
|
176
|
+
return Status::OK();
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
private:
|
|
180
|
+
FileState* file_;
|
|
181
|
+
uint64_t pos_;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
class RandomAccessFileImpl : public RandomAccessFile {
|
|
185
|
+
public:
|
|
186
|
+
explicit RandomAccessFileImpl(FileState* file) : file_(file) {
|
|
187
|
+
file_->Ref();
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
~RandomAccessFileImpl() {
|
|
191
|
+
file_->Unref();
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
virtual Status Read(uint64_t offset, size_t n, Slice* result,
|
|
195
|
+
char* scratch) const {
|
|
196
|
+
return file_->Read(offset, n, result, scratch);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
private:
|
|
200
|
+
FileState* file_;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
class WritableFileImpl : public WritableFile {
|
|
204
|
+
public:
|
|
205
|
+
WritableFileImpl(FileState* file) : file_(file) {
|
|
206
|
+
file_->Ref();
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
~WritableFileImpl() {
|
|
210
|
+
file_->Unref();
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
virtual Status Append(const Slice& data) {
|
|
214
|
+
return file_->Append(data);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
virtual Status Close() { return Status::OK(); }
|
|
218
|
+
virtual Status Flush() { return Status::OK(); }
|
|
219
|
+
virtual Status Sync() { return Status::OK(); }
|
|
220
|
+
|
|
221
|
+
private:
|
|
222
|
+
FileState* file_;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
class NoOpLogger : public Logger {
|
|
226
|
+
public:
|
|
227
|
+
virtual void Logv(const char* format, va_list ap) { }
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
class InMemoryEnv : public EnvWrapper {
|
|
231
|
+
public:
|
|
232
|
+
explicit InMemoryEnv(Env* base_env) : EnvWrapper(base_env) { }
|
|
233
|
+
|
|
234
|
+
virtual ~InMemoryEnv() {
|
|
235
|
+
for (FileSystem::iterator i = file_map_.begin(); i != file_map_.end(); ++i){
|
|
236
|
+
i->second->Unref();
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// Partial implementation of the Env interface.
|
|
241
|
+
virtual Status NewSequentialFile(const std::string& fname,
|
|
242
|
+
SequentialFile** result) {
|
|
243
|
+
MutexLock lock(&mutex_);
|
|
244
|
+
if (file_map_.find(fname) == file_map_.end()) {
|
|
245
|
+
*result = NULL;
|
|
246
|
+
return Status::IOError(fname, "File not found");
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
*result = new SequentialFileImpl(file_map_[fname]);
|
|
250
|
+
return Status::OK();
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
virtual Status NewRandomAccessFile(const std::string& fname,
|
|
254
|
+
RandomAccessFile** result) {
|
|
255
|
+
MutexLock lock(&mutex_);
|
|
256
|
+
if (file_map_.find(fname) == file_map_.end()) {
|
|
257
|
+
*result = NULL;
|
|
258
|
+
return Status::IOError(fname, "File not found");
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
*result = new RandomAccessFileImpl(file_map_[fname]);
|
|
262
|
+
return Status::OK();
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
virtual Status NewWritableFile(const std::string& fname,
|
|
266
|
+
WritableFile** result) {
|
|
267
|
+
MutexLock lock(&mutex_);
|
|
268
|
+
if (file_map_.find(fname) != file_map_.end()) {
|
|
269
|
+
DeleteFileInternal(fname);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
FileState* file = new FileState();
|
|
273
|
+
file->Ref();
|
|
274
|
+
file_map_[fname] = file;
|
|
275
|
+
|
|
276
|
+
*result = new WritableFileImpl(file);
|
|
277
|
+
return Status::OK();
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
virtual Status NewAppendableFile(const std::string& fname,
|
|
281
|
+
WritableFile** result) {
|
|
282
|
+
MutexLock lock(&mutex_);
|
|
283
|
+
FileState** sptr = &file_map_[fname];
|
|
284
|
+
FileState* file = *sptr;
|
|
285
|
+
if (file == NULL) {
|
|
286
|
+
file = new FileState();
|
|
287
|
+
file->Ref();
|
|
288
|
+
}
|
|
289
|
+
*result = new WritableFileImpl(file);
|
|
290
|
+
return Status::OK();
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
virtual bool FileExists(const std::string& fname) {
|
|
294
|
+
MutexLock lock(&mutex_);
|
|
295
|
+
return file_map_.find(fname) != file_map_.end();
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
virtual Status GetChildren(const std::string& dir,
|
|
299
|
+
std::vector<std::string>* result) {
|
|
300
|
+
MutexLock lock(&mutex_);
|
|
301
|
+
result->clear();
|
|
302
|
+
|
|
303
|
+
for (FileSystem::iterator i = file_map_.begin(); i != file_map_.end(); ++i){
|
|
304
|
+
const std::string& filename = i->first;
|
|
305
|
+
|
|
306
|
+
if (filename.size() >= dir.size() + 1 && filename[dir.size()] == '/' &&
|
|
307
|
+
Slice(filename).starts_with(Slice(dir))) {
|
|
308
|
+
result->push_back(filename.substr(dir.size() + 1));
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
return Status::OK();
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
void DeleteFileInternal(const std::string& fname) {
|
|
316
|
+
if (file_map_.find(fname) == file_map_.end()) {
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
file_map_[fname]->Unref();
|
|
321
|
+
file_map_.erase(fname);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
virtual Status DeleteFile(const std::string& fname) {
|
|
325
|
+
MutexLock lock(&mutex_);
|
|
326
|
+
if (file_map_.find(fname) == file_map_.end()) {
|
|
327
|
+
return Status::IOError(fname, "File not found");
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
DeleteFileInternal(fname);
|
|
331
|
+
return Status::OK();
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
virtual Status CreateDir(const std::string& dirname) {
|
|
335
|
+
return Status::OK();
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
virtual Status DeleteDir(const std::string& dirname) {
|
|
339
|
+
return Status::OK();
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
virtual Status GetFileSize(const std::string& fname, uint64_t* file_size) {
|
|
343
|
+
MutexLock lock(&mutex_);
|
|
344
|
+
if (file_map_.find(fname) == file_map_.end()) {
|
|
345
|
+
return Status::IOError(fname, "File not found");
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
*file_size = file_map_[fname]->Size();
|
|
349
|
+
return Status::OK();
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
virtual Status RenameFile(const std::string& src,
|
|
353
|
+
const std::string& target) {
|
|
354
|
+
MutexLock lock(&mutex_);
|
|
355
|
+
if (file_map_.find(src) == file_map_.end()) {
|
|
356
|
+
return Status::IOError(src, "File not found");
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
DeleteFileInternal(target);
|
|
360
|
+
file_map_[target] = file_map_[src];
|
|
361
|
+
file_map_.erase(src);
|
|
362
|
+
return Status::OK();
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
virtual Status LockFile(const std::string& fname, FileLock** lock) {
|
|
366
|
+
*lock = new FileLock;
|
|
367
|
+
return Status::OK();
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
virtual Status UnlockFile(FileLock* lock) {
|
|
371
|
+
delete lock;
|
|
372
|
+
return Status::OK();
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
virtual Status GetTestDirectory(std::string* path) {
|
|
376
|
+
*path = "/test";
|
|
377
|
+
return Status::OK();
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
virtual Status NewLogger(const std::string& fname, Logger** result) {
|
|
381
|
+
*result = new NoOpLogger;
|
|
382
|
+
return Status::OK();
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
private:
|
|
386
|
+
// Map from filenames to FileState objects, representing a simple file system.
|
|
387
|
+
typedef std::map<std::string, FileState*> FileSystem;
|
|
388
|
+
port::Mutex mutex_;
|
|
389
|
+
FileSystem file_map_; // Protected by mutex_.
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
} // namespace
|
|
393
|
+
|
|
394
|
+
Env* NewMemEnv(Env* base_env) {
|
|
395
|
+
return new InMemoryEnv(base_env);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
} // namespace leveldb
|