nolo-cli 0.143.0-alpha.1 → 0.145.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (455) hide show
  1. package/README.md +2 -0
  2. package/{_executeModel-QK43QR2R.js → _executeModel-M3FASQ2Z.js} +18 -17
  3. package/{agentDeleteCommand-SE4WUIRR.js → agentDeleteCommand-K7GCEEVS.js} +10 -9
  4. package/{agentEmailCommands-LW5JMYH2.js → agentEmailCommands-MNXRO36L.js} +24 -23
  5. package/{agentListCommands-LGZG2OQR.js → agentListCommands-KMZR6VVM.js} +12 -11
  6. package/{agentMachineCommands-BNOXYSPZ.js → agentMachineCommands-75TIBYDY.js} +10 -9
  7. package/{agentProviderCommands-AOG3OZJA.js → agentProviderCommands-TWB6E5WD.js} +1 -1
  8. package/{agentRecordCommands-W5ZXPHZV.js → agentRecordCommands-RDO5L3N4.js} +23 -22
  9. package/{agentRunCommand-VRLCL57M.js → agentRunCommand-FVJJPL27.js} +23 -22
  10. package/{agentRuntimeLocal-VOQ3UYZB.js → agentRuntimeLocal-DAK7RCER.js} +8 -7
  11. package/{agentSlice-4AK24F5F.js → agentSlice-6MRJR2BJ.js} +1 -1
  12. package/{appDeleteCommands-XWAIUHTN.js → appDeleteCommands-JMMXK3XT.js} +11 -10
  13. package/{appDeployCommands-CBJJCUMG.js → appDeployCommands-JFU6GALI.js} +11 -10
  14. package/{appDeployStatusCommands-LTTZTJQS.js → appDeployStatusCommands-AXTZ4GAN.js} +11 -10
  15. package/{appGetCommands-QHUB7MFF.js → appGetCommands-CR2W3DCM.js} +11 -10
  16. package/{appListCommands-HINIDJE7.js → appListCommands-2TV6P3EU.js} +11 -10
  17. package/{authCommand-LARLQ3GC.js → authCommand-UBJ4EWYZ.js} +6 -6
  18. package/{authCommands-GBIFZWD3.js → authCommands-H6WKKCRW.js} +1 -1
  19. package/{builtinSkillRegistry-AFPSTTAU.js → builtinSkillRegistry-ZMF6YGNO.js} +4 -3
  20. package/{chatQueueReduxAdapter-KIQ3FQ62.js → chatQueueReduxAdapter-CDOHVTSE.js} +2 -2
  21. package/{chromeCommands-NKU3OWKH.js → chromeCommands-2N6MEWRU.js} +94 -23
  22. package/{chromeOpsCommands-OQDJGD4Y.js → chromeOpsCommands-IXRLN57H.js} +4 -3
  23. package/{chunk-7MUSNQ6E.js → chunk-27ONFIEY.js} +20 -2
  24. package/{chunk-OZ6V53WV.js → chunk-2EE5UD3N.js} +1 -1
  25. package/{chunk-44QZPYLI.js → chunk-2SYTUTLI.js} +92 -20
  26. package/{chunk-DID5AVGT.js → chunk-2TKVOEQF.js} +11 -10
  27. package/chunk-5J3PYNUP.js +255 -0
  28. package/{chunk-OUOJE2P2.js → chunk-5XYFIDFU.js} +5 -5
  29. package/{chunk-WTUVMKSQ.js → chunk-62XHRZG4.js} +2 -2
  30. package/{chunk-WC6A2Q7S.js → chunk-6TPOEJMQ.js} +5 -2
  31. package/{chunk-RRMAZ2BI.js → chunk-7NANRWL4.js} +1 -1
  32. package/{chunk-44F6KKUE.js → chunk-7YAK46ML.js} +3 -3
  33. package/{chunk-NOGH7HCP.js → chunk-A6FNUMCF.js} +47 -6
  34. package/{chunk-OFYHCA6W.js → chunk-AATZZAZE.js} +1 -1
  35. package/{chunk-KUPDS66Q.js → chunk-ANX7Z7Z2.js} +8 -8
  36. package/{chunk-J5H6SUOW.js → chunk-B2XUQXQX.js} +2 -2
  37. package/{chunk-A5MB5RIT.js → chunk-CCOXTK3I.js} +1 -1
  38. package/chunk-GNMAFAIS.js +29 -0
  39. package/{chunk-GZQNKKDG.js → chunk-HKBFZONG.js} +1 -1
  40. package/{chunk-7LLWEG6F.js → chunk-I44MDY73.js} +3 -3
  41. package/{chunk-QDT5T7MK.js → chunk-I4OPU5TK.js} +1 -1
  42. package/{chunk-VPFEPRME.js → chunk-IVZJWTDI.js} +3 -0
  43. package/{chunk-CTGZO35O.js → chunk-JLQKV2ZJ.js} +2 -2
  44. package/{chunk-PQVOC2CZ.js → chunk-M2YBIBBS.js} +1 -1
  45. package/{chunk-ZOI6KA4N.js → chunk-M76SRQ3H.js} +34 -22
  46. package/{chunk-K25DK52L.js → chunk-OKSJZ4UU.js} +21 -223
  47. package/{chunk-U5QTKTZE.js → chunk-P6GMCCAT.js} +1 -1
  48. package/{chunk-L6RB42ZR.js → chunk-QFZM5BFI.js} +3 -3
  49. package/{chunk-GH4MH73K.js → chunk-RHDOQWXZ.js} +175 -17
  50. package/{chunk-M6NK74VP.js → chunk-S5XGT6GB.js} +1 -1
  51. package/{chunk-KUWT3C2P.js → chunk-T76D3OYX.js} +1 -1
  52. package/{chunk-MXRUAINC.js → chunk-UMB7CHAY.js} +3 -3
  53. package/{chunk-VVUSRF5D.js → chunk-VJ4FUWPC.js} +3 -3
  54. package/{chunk-T36EFAW7.js → chunk-VZVTPDPL.js} +3 -3
  55. package/{chunk-AAROOKLX.js → chunk-X2QRZXZH.js} +1 -1
  56. package/{chunk-WYYO2YOL.js → chunk-XNXNHAAP.js} +1 -1
  57. package/{chunk-O6OSWFZQ.js → chunk-XUWRURDF.js} +6 -0
  58. package/{chunk-DOBBRISY.js → chunk-Y6XHJ4JJ.js} +22 -10
  59. package/{chunk-W247GBSQ.js → chunk-YU2THNST.js} +1 -1
  60. package/{chunk-OY5IJI2N.js → chunk-YUNJN43V.js} +23 -3
  61. package/{commandRegistry-DETYXF5I.js → commandRegistry-ZF6YXQWV.js} +76 -65
  62. package/{contentThunks-6QBTPLWT.js → contentThunks-6Y6ATG3A.js} +3 -3
  63. package/{createAgentAutomationAction-TZVIJTZ7.js → createAgentAutomationAction-OQTLA2FC.js} +3 -3
  64. package/{createDialogAction-KTDAEA42.js → createDialogAction-IF5EZMBD.js} +6 -5
  65. package/{createPageAction-4RASVDAU.js → createPageAction-GU766R3L.js} +3 -3
  66. package/{dialogCommands-GY7LRERG.js → dialogCommands-QV7XAX2V.js} +11 -10
  67. package/{dialogSlice-J24APUGG.js → dialogSlice-CVHMDSVV.js} +2 -2
  68. package/{docCreateCommands-T7KII3WP.js → docCreateCommands-FSBANQTO.js} +10 -9
  69. package/{docDeleteCommands-SQ26EFE6.js → docDeleteCommands-4IR4YSGU.js} +11 -10
  70. package/{docReadCommands-I6NA2ZKV.js → docReadCommands-4EYPGUE3.js} +10 -9
  71. package/{docStore-SPOGE7K3.js → docStore-RQOWPNON.js} +1 -1
  72. package/{docUpdateCommands-IG43SZ6U.js → docUpdateCommands-RW2BYLSE.js} +10 -9
  73. package/{handleSendMessageAction-I2IN64DS.js → handleSendMessageAction-UDTPG5WK.js} +4 -3
  74. package/index.js +4 -4
  75. package/{machineCommands-U7VABJPW.js → machineCommands-WBQ4TCPD.js} +22 -21
  76. package/{machineWsRunDispatch-ZNU6LRNG.js → machineWsRunDispatch-7DNDXUOS.js} +22 -21
  77. package/node_modules/abstract-level/CHANGELOG.md +150 -0
  78. package/node_modules/abstract-level/LICENSE +21 -0
  79. package/node_modules/abstract-level/README.md +1957 -0
  80. package/node_modules/abstract-level/UPGRADING.md +669 -0
  81. package/node_modules/abstract-level/abstract-chained-batch.js +397 -0
  82. package/node_modules/abstract-level/abstract-iterator.js +404 -0
  83. package/node_modules/abstract-level/abstract-level.js +1127 -0
  84. package/node_modules/abstract-level/abstract-snapshot.js +84 -0
  85. package/node_modules/abstract-level/index.d.ts +52 -0
  86. package/node_modules/abstract-level/index.js +9 -0
  87. package/node_modules/abstract-level/lib/abstract-sublevel-iterator.js +141 -0
  88. package/node_modules/abstract-level/lib/abstract-sublevel.js +290 -0
  89. package/node_modules/abstract-level/lib/common.js +33 -0
  90. package/node_modules/abstract-level/lib/default-chained-batch.js +29 -0
  91. package/node_modules/abstract-level/lib/default-kv-iterator.js +74 -0
  92. package/node_modules/abstract-level/lib/deferred-iterator.js +110 -0
  93. package/node_modules/abstract-level/lib/deferred-queue.js +84 -0
  94. package/node_modules/abstract-level/lib/errors.js +21 -0
  95. package/node_modules/abstract-level/lib/event-monitor.js +30 -0
  96. package/node_modules/abstract-level/lib/hooks.js +78 -0
  97. package/node_modules/abstract-level/lib/prefixes.js +21 -0
  98. package/node_modules/abstract-level/lib/prewrite-batch.js +96 -0
  99. package/node_modules/abstract-level/lib/range-options.js +26 -0
  100. package/node_modules/abstract-level/package.json +66 -0
  101. package/node_modules/abstract-level/test/async-iterator-test.js +132 -0
  102. package/node_modules/abstract-level/test/batch-test.js +214 -0
  103. package/node_modules/abstract-level/test/chained-batch-test.js +315 -0
  104. package/node_modules/abstract-level/test/clear-range-test.js +262 -0
  105. package/node_modules/abstract-level/test/clear-test.js +110 -0
  106. package/node_modules/abstract-level/test/common.js +90 -0
  107. package/node_modules/abstract-level/test/deferred-open-test.js +209 -0
  108. package/node_modules/abstract-level/test/del-test.js +65 -0
  109. package/node_modules/abstract-level/test/encoding-buffer-test.js +336 -0
  110. package/node_modules/abstract-level/test/encoding-custom-test.js +92 -0
  111. package/node_modules/abstract-level/test/encoding-decode-error-test.js +85 -0
  112. package/node_modules/abstract-level/test/encoding-json-test.js +75 -0
  113. package/node_modules/abstract-level/test/encoding-test.js +130 -0
  114. package/node_modules/abstract-level/test/events/write.js +132 -0
  115. package/node_modules/abstract-level/test/factory-test.js +36 -0
  116. package/node_modules/abstract-level/test/get-many-test.js +157 -0
  117. package/node_modules/abstract-level/test/get-sync-test.js +61 -0
  118. package/node_modules/abstract-level/test/get-test.js +83 -0
  119. package/node_modules/abstract-level/test/has-many-test.js +144 -0
  120. package/node_modules/abstract-level/test/has-test.js +81 -0
  121. package/node_modules/abstract-level/test/hooks/newsub.js +57 -0
  122. package/node_modules/abstract-level/test/hooks/postopen.js +229 -0
  123. package/node_modules/abstract-level/test/hooks/prewrite.js +816 -0
  124. package/node_modules/abstract-level/test/hooks/shared.js +38 -0
  125. package/node_modules/abstract-level/test/index.js +86 -0
  126. package/node_modules/abstract-level/test/iterator-explicit-snapshot-test.js +393 -0
  127. package/node_modules/abstract-level/test/iterator-no-snapshot-test.js +49 -0
  128. package/node_modules/abstract-level/test/iterator-range-test.js +277 -0
  129. package/node_modules/abstract-level/test/iterator-seek-test.js +335 -0
  130. package/node_modules/abstract-level/test/iterator-snapshot-test.js +56 -0
  131. package/node_modules/abstract-level/test/iterator-test.js +621 -0
  132. package/node_modules/abstract-level/test/manifest-test.js +21 -0
  133. package/node_modules/abstract-level/test/open-create-if-missing-test.js +39 -0
  134. package/node_modules/abstract-level/test/open-error-if-exists-test.js +25 -0
  135. package/node_modules/abstract-level/test/open-test.js +263 -0
  136. package/node_modules/abstract-level/test/put-get-del-test.js +97 -0
  137. package/node_modules/abstract-level/test/put-test.js +70 -0
  138. package/node_modules/abstract-level/test/self/abstract-iterator-test.js +182 -0
  139. package/node_modules/abstract-level/test/self/async-iterator-test.js +242 -0
  140. package/node_modules/abstract-level/test/self/attach-resource-test.js +74 -0
  141. package/node_modules/abstract-level/test/self/defer-test.js +140 -0
  142. package/node_modules/abstract-level/test/self/deferred-iterator-test.js +314 -0
  143. package/node_modules/abstract-level/test/self/deferred-operations-test.js +86 -0
  144. package/node_modules/abstract-level/test/self/deferred-queue-test.js +93 -0
  145. package/node_modules/abstract-level/test/self/encoding-test.js +391 -0
  146. package/node_modules/abstract-level/test/self/errors-test.js +11 -0
  147. package/node_modules/abstract-level/test/self/iterator-test.js +1050 -0
  148. package/node_modules/abstract-level/test/self/sublevel-test.js +1039 -0
  149. package/node_modules/abstract-level/test/self.js +905 -0
  150. package/node_modules/abstract-level/test/sublevel-test.js +209 -0
  151. package/node_modules/abstract-level/test/traits/closed.js +42 -0
  152. package/node_modules/abstract-level/test/traits/index.js +4 -0
  153. package/node_modules/abstract-level/test/traits/open.js +62 -0
  154. package/node_modules/abstract-level/test/util.js +275 -0
  155. package/node_modules/abstract-level/types/abstract-chained-batch.d.ts +124 -0
  156. package/node_modules/abstract-level/types/abstract-iterator.d.ts +241 -0
  157. package/node_modules/abstract-level/types/abstract-level.d.ts +636 -0
  158. package/node_modules/abstract-level/types/abstract-snapshot.d.ts +30 -0
  159. package/node_modules/abstract-level/types/abstract-sublevel.d.ts +76 -0
  160. package/node_modules/abstract-level/types/interfaces.d.ts +43 -0
  161. package/node_modules/base64-js/LICENSE +21 -0
  162. package/node_modules/base64-js/README.md +34 -0
  163. package/node_modules/base64-js/base64js.min.js +1 -0
  164. package/node_modules/base64-js/index.d.ts +3 -0
  165. package/node_modules/base64-js/index.js +150 -0
  166. package/node_modules/base64-js/package.json +47 -0
  167. package/node_modules/browser-level/CHANGELOG.md +44 -0
  168. package/node_modules/browser-level/LICENSE +21 -0
  169. package/node_modules/browser-level/README.md +124 -0
  170. package/node_modules/browser-level/UPGRADING.md +143 -0
  171. package/node_modules/browser-level/index.d.ts +108 -0
  172. package/node_modules/browser-level/index.js +323 -0
  173. package/node_modules/browser-level/iterator.js +239 -0
  174. package/node_modules/browser-level/package.json +48 -0
  175. package/node_modules/browser-level/util/clear.js +38 -0
  176. package/node_modules/browser-level/util/deserialize.js +17 -0
  177. package/node_modules/browser-level/util/key-range.js +20 -0
  178. package/node_modules/buffer/AUTHORS.md +73 -0
  179. package/node_modules/buffer/LICENSE +21 -0
  180. package/node_modules/buffer/README.md +410 -0
  181. package/node_modules/buffer/index.d.ts +194 -0
  182. package/node_modules/buffer/index.js +2106 -0
  183. package/node_modules/buffer/package.json +93 -0
  184. package/node_modules/classic-level/CHANGELOG.md +115 -0
  185. package/node_modules/classic-level/LICENSE +21 -0
  186. package/node_modules/classic-level/README.md +274 -0
  187. package/node_modules/classic-level/UPGRADING.md +131 -0
  188. package/node_modules/classic-level/binding.cc +2652 -0
  189. package/node_modules/classic-level/binding.gyp +71 -0
  190. package/node_modules/classic-level/binding.js +1 -0
  191. package/node_modules/classic-level/chained-batch.js +35 -0
  192. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/LICENSE +27 -0
  193. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/Makefile +424 -0
  194. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/build_detect_platform +256 -0
  195. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/autocompact_test.cc +118 -0
  196. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/builder.cc +88 -0
  197. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/builder.h +34 -0
  198. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/c.cc +595 -0
  199. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/c_test.c +390 -0
  200. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/corruption_test.cc +374 -0
  201. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_bench.cc +1020 -0
  202. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_impl.cc +1568 -0
  203. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_impl.h +212 -0
  204. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_iter.cc +317 -0
  205. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_iter.h +28 -0
  206. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_test.cc +2158 -0
  207. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/dbformat.cc +140 -0
  208. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/dbformat.h +230 -0
  209. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/dbformat_test.cc +112 -0
  210. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/dumpfile.cc +225 -0
  211. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/fault_injection_test.cc +554 -0
  212. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/filename.cc +144 -0
  213. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/filename.h +85 -0
  214. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/filename_test.cc +123 -0
  215. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/leveldbutil.cc +64 -0
  216. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_format.h +35 -0
  217. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_reader.cc +284 -0
  218. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_reader.h +113 -0
  219. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_test.cc +591 -0
  220. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_writer.cc +112 -0
  221. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_writer.h +54 -0
  222. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/memtable.cc +145 -0
  223. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/memtable.h +89 -0
  224. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/recovery_test.cc +324 -0
  225. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/repair.cc +461 -0
  226. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/skiplist.h +384 -0
  227. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/skiplist_test.cc +378 -0
  228. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/snapshot.h +67 -0
  229. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/table_cache.cc +127 -0
  230. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/table_cache.h +61 -0
  231. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_edit.cc +266 -0
  232. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_edit.h +107 -0
  233. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_edit_test.cc +46 -0
  234. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_set.cc +1535 -0
  235. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_set.h +399 -0
  236. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_set_test.cc +179 -0
  237. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/write_batch.cc +147 -0
  238. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/write_batch_internal.h +50 -0
  239. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/write_batch_test.cc +120 -0
  240. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/helpers/memenv/memenv.cc +398 -0
  241. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/helpers/memenv/memenv.h +20 -0
  242. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/helpers/memenv/memenv_test.cc +241 -0
  243. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/c.h +290 -0
  244. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/cache.h +110 -0
  245. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/comparator.h +63 -0
  246. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/db.h +164 -0
  247. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/dumpfile.h +25 -0
  248. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/env.h +351 -0
  249. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/filter_policy.h +70 -0
  250. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/iterator.h +100 -0
  251. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/options.h +213 -0
  252. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/slice.h +109 -0
  253. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/status.h +112 -0
  254. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/table.h +85 -0
  255. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/table_builder.h +92 -0
  256. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/value_sink.h +26 -0
  257. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/write_batch.h +64 -0
  258. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/issues/issue178_test.cc +92 -0
  259. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/issues/issue200_test.cc +59 -0
  260. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/atomic_pointer.h +242 -0
  261. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port.h +21 -0
  262. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port_example.h +141 -0
  263. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port_posix.cc +53 -0
  264. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port_posix.h +156 -0
  265. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port_posix_sse.cc +129 -0
  266. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/thread_annotations.h +60 -0
  267. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/win/stdint.h +24 -0
  268. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/block.cc +268 -0
  269. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/block.h +44 -0
  270. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/block_builder.cc +109 -0
  271. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/block_builder.h +57 -0
  272. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/filter_block.cc +111 -0
  273. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/filter_block.h +68 -0
  274. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/filter_block_test.cc +128 -0
  275. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/format.cc +144 -0
  276. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/format.h +108 -0
  277. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/iterator.cc +67 -0
  278. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/iterator_wrapper.h +66 -0
  279. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/merger.cc +197 -0
  280. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/merger.h +26 -0
  281. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/table.cc +285 -0
  282. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/table_builder.cc +270 -0
  283. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/table_test.cc +876 -0
  284. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/two_level_iterator.cc +182 -0
  285. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/two_level_iterator.h +34 -0
  286. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/arena.cc +68 -0
  287. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/arena.h +68 -0
  288. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/arena_test.cc +68 -0
  289. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/bloom.cc +95 -0
  290. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/bloom_test.cc +162 -0
  291. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/cache.cc +405 -0
  292. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/cache_test.cc +226 -0
  293. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/coding.cc +194 -0
  294. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/coding.h +104 -0
  295. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/coding_test.cc +196 -0
  296. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/comparator.cc +81 -0
  297. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/crc32c.cc +350 -0
  298. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/crc32c.h +45 -0
  299. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/crc32c_test.cc +72 -0
  300. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env.cc +100 -0
  301. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env_posix.cc +695 -0
  302. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env_posix_test.cc +66 -0
  303. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env_posix_test_helper.h +28 -0
  304. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env_test.cc +106 -0
  305. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/filter_policy.cc +11 -0
  306. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/hash.cc +52 -0
  307. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/hash.h +19 -0
  308. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/hash_test.cc +54 -0
  309. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/histogram.cc +139 -0
  310. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/histogram.h +42 -0
  311. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/logging.cc +72 -0
  312. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/logging.h +43 -0
  313. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/mutexlock.h +41 -0
  314. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/options.cc +30 -0
  315. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/posix_logger.h +98 -0
  316. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/random.h +64 -0
  317. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/status.cc +75 -0
  318. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/testharness.cc +77 -0
  319. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/testharness.h +138 -0
  320. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/testutil.cc +51 -0
  321. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/testutil.h +63 -0
  322. package/node_modules/classic-level/deps/leveldb/leveldb.gyp +282 -0
  323. package/node_modules/classic-level/deps/leveldb/patches/001-value-sink.patch +164 -0
  324. package/node_modules/classic-level/deps/leveldb/port-libuv/atomic_pointer_win.h +48 -0
  325. package/node_modules/classic-level/deps/leveldb/port-libuv/env_win.cc +692 -0
  326. package/node_modules/classic-level/deps/leveldb/port-libuv/port_uv.cc +36 -0
  327. package/node_modules/classic-level/deps/leveldb/port-libuv/port_uv.h +157 -0
  328. package/node_modules/classic-level/deps/leveldb/port-libuv/port_uv.h.bak +153 -0
  329. package/node_modules/classic-level/deps/leveldb/port-libuv/stdint-msvc2008.h +247 -0
  330. package/node_modules/classic-level/deps/leveldb/port-libuv/uv_condvar.h +45 -0
  331. package/node_modules/classic-level/deps/leveldb/port-libuv/uv_condvar_posix.cc +139 -0
  332. package/node_modules/classic-level/deps/leveldb/port-libuv/win_logger.cc +79 -0
  333. package/node_modules/classic-level/deps/leveldb/port-libuv/win_logger.h +28 -0
  334. package/node_modules/classic-level/deps/snappy/freebsd/config.h +135 -0
  335. package/node_modules/classic-level/deps/snappy/freebsd/snappy-stubs-public.h +100 -0
  336. package/node_modules/classic-level/deps/snappy/linux/config.h +135 -0
  337. package/node_modules/classic-level/deps/snappy/linux/snappy-stubs-public.h +100 -0
  338. package/node_modules/classic-level/deps/snappy/mac/config.h +137 -0
  339. package/node_modules/classic-level/deps/snappy/mac/snappy-stubs-public.h +100 -0
  340. package/node_modules/classic-level/deps/snappy/openbsd/config.h +135 -0
  341. package/node_modules/classic-level/deps/snappy/openbsd/snappy-stubs-public.h +100 -0
  342. package/node_modules/classic-level/deps/snappy/snappy/COPYING +54 -0
  343. package/node_modules/classic-level/deps/snappy/snappy/cmake/SnappyConfig.cmake +1 -0
  344. package/node_modules/classic-level/deps/snappy/snappy/cmake/config.h.in +62 -0
  345. package/node_modules/classic-level/deps/snappy/snappy/snappy-c.cc +90 -0
  346. package/node_modules/classic-level/deps/snappy/snappy/snappy-c.h +138 -0
  347. package/node_modules/classic-level/deps/snappy/snappy/snappy-internal.h +224 -0
  348. package/node_modules/classic-level/deps/snappy/snappy/snappy-sinksource.cc +104 -0
  349. package/node_modules/classic-level/deps/snappy/snappy/snappy-sinksource.h +182 -0
  350. package/node_modules/classic-level/deps/snappy/snappy/snappy-stubs-internal.cc +42 -0
  351. package/node_modules/classic-level/deps/snappy/snappy/snappy-stubs-internal.h +561 -0
  352. package/node_modules/classic-level/deps/snappy/snappy/snappy-stubs-public.h.in +94 -0
  353. package/node_modules/classic-level/deps/snappy/snappy/snappy-test.cc +612 -0
  354. package/node_modules/classic-level/deps/snappy/snappy/snappy-test.h +573 -0
  355. package/node_modules/classic-level/deps/snappy/snappy/snappy.cc +1515 -0
  356. package/node_modules/classic-level/deps/snappy/snappy/snappy.h +203 -0
  357. package/node_modules/classic-level/deps/snappy/snappy/snappy_unittest.cc +1410 -0
  358. package/node_modules/classic-level/deps/snappy/snappy.gyp +119 -0
  359. package/node_modules/classic-level/deps/snappy/solaris/config.h +135 -0
  360. package/node_modules/classic-level/deps/snappy/solaris/snappy-stubs-public.h +100 -0
  361. package/node_modules/classic-level/deps/snappy/win32/config.h +29 -0
  362. package/node_modules/classic-level/deps/snappy/win32/snappy-stubs-public.h +100 -0
  363. package/node_modules/classic-level/index.d.ts +343 -0
  364. package/node_modules/classic-level/index.js +311 -0
  365. package/node_modules/classic-level/iterator.js +122 -0
  366. package/node_modules/classic-level/package.json +70 -0
  367. package/node_modules/classic-level/prebuilds/android-arm/classic-level.armv7.node +0 -0
  368. package/node_modules/classic-level/prebuilds/android-arm64/classic-level.armv8.node +0 -0
  369. package/node_modules/classic-level/prebuilds/darwin-x64+arm64/classic-level.node +0 -0
  370. package/node_modules/classic-level/prebuilds/linux-arm/classic-level.armv6.node +0 -0
  371. package/node_modules/classic-level/prebuilds/linux-arm/classic-level.armv7.node +0 -0
  372. package/node_modules/classic-level/prebuilds/linux-arm64/classic-level.armv8.node +0 -0
  373. package/node_modules/classic-level/prebuilds/linux-x64/classic-level.musl.node +0 -0
  374. package/node_modules/classic-level/prebuilds/linux-x64/classic-level.node +0 -0
  375. package/node_modules/classic-level/prebuilds/win32-ia32/classic-level.node +0 -0
  376. package/node_modules/classic-level/prebuilds/win32-x64/classic-level.node +0 -0
  377. package/node_modules/ieee754/LICENSE +11 -0
  378. package/node_modules/ieee754/README.md +51 -0
  379. package/node_modules/ieee754/index.d.ts +10 -0
  380. package/node_modules/ieee754/index.js +85 -0
  381. package/node_modules/ieee754/package.json +52 -0
  382. package/node_modules/is-buffer/LICENSE +21 -0
  383. package/node_modules/is-buffer/README.md +54 -0
  384. package/node_modules/is-buffer/index.d.ts +2 -0
  385. package/node_modules/is-buffer/index.js +11 -0
  386. package/node_modules/is-buffer/package.json +65 -0
  387. package/node_modules/level/CHANGELOG.md +532 -0
  388. package/node_modules/level/LICENSE +21 -0
  389. package/node_modules/level/README.md +107 -0
  390. package/node_modules/level/UPGRADING.md +413 -0
  391. package/node_modules/level/browser.js +1 -0
  392. package/node_modules/level/index.d.ts +75 -0
  393. package/node_modules/level/index.js +1 -0
  394. package/node_modules/level/package.json +62 -0
  395. package/node_modules/level-supports/CHANGELOG.md +140 -0
  396. package/node_modules/level-supports/LICENSE +21 -0
  397. package/node_modules/level-supports/README.md +276 -0
  398. package/node_modules/level-supports/index.d.ts +137 -0
  399. package/node_modules/level-supports/index.js +26 -0
  400. package/node_modules/level-supports/package.json +46 -0
  401. package/node_modules/level-supports/test/cloneable.js +26 -0
  402. package/node_modules/level-supports/test/index.js +24 -0
  403. package/node_modules/level-supports/test/self.js +86 -0
  404. package/node_modules/level-supports/test/shape.js +23 -0
  405. package/node_modules/level-transcoder/CHANGELOG.md +15 -0
  406. package/node_modules/level-transcoder/LICENSE +21 -0
  407. package/node_modules/level-transcoder/README.md +214 -0
  408. package/node_modules/level-transcoder/UPGRADING.md +13 -0
  409. package/node_modules/level-transcoder/index.d.ts +27 -0
  410. package/node_modules/level-transcoder/index.js +158 -0
  411. package/node_modules/level-transcoder/lib/encoding.d.ts +158 -0
  412. package/node_modules/level-transcoder/lib/encoding.js +105 -0
  413. package/node_modules/level-transcoder/lib/encodings.d.ts +9 -0
  414. package/node_modules/level-transcoder/lib/encodings.js +135 -0
  415. package/node_modules/level-transcoder/lib/formats.d.ts +13 -0
  416. package/node_modules/level-transcoder/lib/formats.js +111 -0
  417. package/node_modules/level-transcoder/lib/text-endec.d.ts +6 -0
  418. package/node_modules/level-transcoder/lib/text-endec.js +19 -0
  419. package/node_modules/level-transcoder/package.json +46 -0
  420. package/node_modules/maybe-combine-errors/LICENSE.md +21 -0
  421. package/node_modules/maybe-combine-errors/README.md +94 -0
  422. package/node_modules/maybe-combine-errors/index.js +60 -0
  423. package/node_modules/maybe-combine-errors/package.json +33 -0
  424. package/node_modules/module-error/CHANGELOG.md +23 -0
  425. package/node_modules/module-error/LICENSE +21 -0
  426. package/node_modules/module-error/README.md +89 -0
  427. package/node_modules/module-error/index.d.ts +18 -0
  428. package/node_modules/module-error/index.js +22 -0
  429. package/node_modules/module-error/package.json +36 -0
  430. package/node_modules/napi-macros/LICENSE +21 -0
  431. package/node_modules/napi-macros/README.md +277 -0
  432. package/node_modules/napi-macros/index.js +1 -0
  433. package/node_modules/napi-macros/napi-macros.h +255 -0
  434. package/node_modules/napi-macros/package.json +22 -0
  435. package/node_modules/node-gyp-build/LICENSE +21 -0
  436. package/node_modules/node-gyp-build/README.md +58 -0
  437. package/node_modules/node-gyp-build/SECURITY.md +5 -0
  438. package/node_modules/node-gyp-build/bin.js +84 -0
  439. package/node_modules/node-gyp-build/build-test.js +19 -0
  440. package/node_modules/node-gyp-build/index.js +6 -0
  441. package/node_modules/node-gyp-build/node-gyp-build.js +207 -0
  442. package/node_modules/node-gyp-build/optional.js +7 -0
  443. package/node_modules/node-gyp-build/package.json +43 -0
  444. package/package.json +6 -3
  445. package/{providerPresetApply-7XEHTODR.js → providerPresetApply-XTEXOH7X.js} +3 -3
  446. package/{providerRegistry-GNV4FFSA.js → providerRegistry-ADYDSLKR.js} +3 -3
  447. package/{readlineWorkspace-46KDFUHN.js → readlineWorkspace-LO6ZLFTO.js} +1381 -1317
  448. package/{runAgentClientLoop-CQWLWU4W.js → runAgentClientLoop-KAYGKVTK.js} +16 -15
  449. package/{runtimeDoctorCommands-3USD722U.js → runtimeDoctorCommands-ID23PNNZ.js} +28 -0
  450. package/{spaceCommands-TSBC5UWP.js → spaceCommands-FA6RCZ2Y.js} +10 -9
  451. package/{streamAgentChatTurn-XD5JEJXA.js → streamAgentChatTurn-DFNDU2UY.js} +17 -16
  452. package/{tools-5NAJJTFN.js → tools-6HKH75NT.js} +13 -12
  453. package/{tuiSummaryLlmCaller-7KLLDP22.js → tuiSummaryLlmCaller-CFFVXQWX.js} +2 -2
  454. package/{updateCommands-XYMGOKF4.js → updateCommands-4EHDLF5J.js} +1 -1
  455. package/{updateDialogTitleAction-IKZPJCRA.js → updateDialogTitleAction-FFSYTLBC.js} +3 -3
@@ -0,0 +1,63 @@
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_INCLUDE_COMPARATOR_H_
6
+ #define STORAGE_LEVELDB_INCLUDE_COMPARATOR_H_
7
+
8
+ #include <string>
9
+
10
+ namespace leveldb {
11
+
12
+ class Slice;
13
+
14
+ // A Comparator object provides a total order across slices that are
15
+ // used as keys in an sstable or a database. A Comparator implementation
16
+ // must be thread-safe since leveldb may invoke its methods concurrently
17
+ // from multiple threads.
18
+ class Comparator {
19
+ public:
20
+ virtual ~Comparator();
21
+
22
+ // Three-way comparison. Returns value:
23
+ // < 0 iff "a" < "b",
24
+ // == 0 iff "a" == "b",
25
+ // > 0 iff "a" > "b"
26
+ virtual int Compare(const Slice& a, const Slice& b) const = 0;
27
+
28
+ // The name of the comparator. Used to check for comparator
29
+ // mismatches (i.e., a DB created with one comparator is
30
+ // accessed using a different comparator.
31
+ //
32
+ // The client of this package should switch to a new name whenever
33
+ // the comparator implementation changes in a way that will cause
34
+ // the relative ordering of any two keys to change.
35
+ //
36
+ // Names starting with "leveldb." are reserved and should not be used
37
+ // by any clients of this package.
38
+ virtual const char* Name() const = 0;
39
+
40
+ // Advanced functions: these are used to reduce the space requirements
41
+ // for internal data structures like index blocks.
42
+
43
+ // If *start < limit, changes *start to a short string in [start,limit).
44
+ // Simple comparator implementations may return with *start unchanged,
45
+ // i.e., an implementation of this method that does nothing is correct.
46
+ virtual void FindShortestSeparator(
47
+ std::string* start,
48
+ const Slice& limit) const = 0;
49
+
50
+ // Changes *key to a short string >= *key.
51
+ // Simple comparator implementations may return with *key unchanged,
52
+ // i.e., an implementation of this method that does nothing is correct.
53
+ virtual void FindShortSuccessor(std::string* key) const = 0;
54
+ };
55
+
56
+ // Return a builtin comparator that uses lexicographic byte-wise
57
+ // ordering. The result remains the property of this module and
58
+ // must not be deleted.
59
+ extern const Comparator* BytewiseComparator();
60
+
61
+ } // namespace leveldb
62
+
63
+ #endif // STORAGE_LEVELDB_INCLUDE_COMPARATOR_H_
@@ -0,0 +1,164 @@
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_INCLUDE_DB_H_
6
+ #define STORAGE_LEVELDB_INCLUDE_DB_H_
7
+
8
+ #include <stdint.h>
9
+ #include <stdio.h>
10
+ #include "leveldb/iterator.h"
11
+ #include "leveldb/options.h"
12
+ #include "leveldb/value_sink.h"
13
+
14
+ namespace leveldb {
15
+
16
+ // Update Makefile if you change these
17
+ static const int kMajorVersion = 1;
18
+ static const int kMinorVersion = 20;
19
+
20
+ struct Options;
21
+ struct ReadOptions;
22
+ struct WriteOptions;
23
+ class WriteBatch;
24
+
25
+ // Abstract handle to particular state of a DB.
26
+ // A Snapshot is an immutable object and can therefore be safely
27
+ // accessed from multiple threads without any external synchronization.
28
+ class Snapshot {
29
+ protected:
30
+ virtual ~Snapshot();
31
+ };
32
+
33
+ // A range of keys
34
+ struct Range {
35
+ Slice start; // Included in the range
36
+ Slice limit; // Not included in the range
37
+
38
+ Range() { }
39
+ Range(const Slice& s, const Slice& l) : start(s), limit(l) { }
40
+ };
41
+
42
+ // A DB is a persistent ordered map from keys to values.
43
+ // A DB is safe for concurrent access from multiple threads without
44
+ // any external synchronization.
45
+ class DB {
46
+ public:
47
+ // Open the database with the specified "name".
48
+ // Stores a pointer to a heap-allocated database in *dbptr and returns
49
+ // OK on success.
50
+ // Stores NULL in *dbptr and returns a non-OK status on error.
51
+ // Caller should delete *dbptr when it is no longer needed.
52
+ static Status Open(const Options& options,
53
+ const std::string& name,
54
+ DB** dbptr);
55
+
56
+ DB() { }
57
+ virtual ~DB();
58
+
59
+ // Set the database entry for "key" to "value". Returns OK on success,
60
+ // and a non-OK status on error.
61
+ // Note: consider setting options.sync = true.
62
+ virtual Status Put(const WriteOptions& options,
63
+ const Slice& key,
64
+ const Slice& value) = 0;
65
+
66
+ // Remove the database entry (if any) for "key". Returns OK on
67
+ // success, and a non-OK status on error. It is not an error if "key"
68
+ // did not exist in the database.
69
+ // Note: consider setting options.sync = true.
70
+ virtual Status Delete(const WriteOptions& options, const Slice& key) = 0;
71
+
72
+ // Apply the specified updates to the database.
73
+ // Returns OK on success, non-OK on failure.
74
+ // Note: consider setting options.sync = true.
75
+ virtual Status Write(const WriteOptions& options, WriteBatch* updates) = 0;
76
+
77
+ // If the database contains an entry for "key" store the
78
+ // corresponding value in *value and return OK.
79
+ //
80
+ // If there is no entry for "key" leave *value unchanged and return
81
+ // a status for which Status::IsNotFound() returns true.
82
+ //
83
+ // May return some other Status on an error.
84
+ virtual Status Get(const ReadOptions& options,
85
+ const Slice& key, ValueSink* value) = 0;
86
+
87
+ // Return a heap-allocated iterator over the contents of the database.
88
+ // The result of NewIterator() is initially invalid (caller must
89
+ // call one of the Seek methods on the iterator before using it).
90
+ //
91
+ // Caller should delete the iterator when it is no longer needed.
92
+ // The returned iterator should be deleted before this db is deleted.
93
+ virtual Iterator* NewIterator(const ReadOptions& options) = 0;
94
+
95
+ // Return a handle to the current DB state. Iterators created with
96
+ // this handle will all observe a stable snapshot of the current DB
97
+ // state. The caller must call ReleaseSnapshot(result) when the
98
+ // snapshot is no longer needed.
99
+ virtual const Snapshot* GetSnapshot() = 0;
100
+
101
+ // Release a previously acquired snapshot. The caller must not
102
+ // use "snapshot" after this call.
103
+ virtual void ReleaseSnapshot(const Snapshot* snapshot) = 0;
104
+
105
+ // DB implementations can export properties about their state
106
+ // via this method. If "property" is a valid property understood by this
107
+ // DB implementation, fills "*value" with its current value and returns
108
+ // true. Otherwise returns false.
109
+ //
110
+ //
111
+ // Valid property names include:
112
+ //
113
+ // "leveldb.num-files-at-level<N>" - return the number of files at level <N>,
114
+ // where <N> is an ASCII representation of a level number (e.g. "0").
115
+ // "leveldb.stats" - returns a multi-line string that describes statistics
116
+ // about the internal operation of the DB.
117
+ // "leveldb.sstables" - returns a multi-line string that describes all
118
+ // of the sstables that make up the db contents.
119
+ // "leveldb.approximate-memory-usage" - returns the approximate number of
120
+ // bytes of memory in use by the DB.
121
+ virtual bool GetProperty(const Slice& property, std::string* value) = 0;
122
+
123
+ // For each i in [0,n-1], store in "sizes[i]", the approximate
124
+ // file system space used by keys in "[range[i].start .. range[i].limit)".
125
+ //
126
+ // Note that the returned sizes measure file system space usage, so
127
+ // if the user data compresses by a factor of ten, the returned
128
+ // sizes will be one-tenth the size of the corresponding user data size.
129
+ //
130
+ // The results may not include the sizes of recently written data.
131
+ virtual void GetApproximateSizes(const Range* range, int n,
132
+ uint64_t* sizes) = 0;
133
+
134
+ // Compact the underlying storage for the key range [*begin,*end].
135
+ // In particular, deleted and overwritten versions are discarded,
136
+ // and the data is rearranged to reduce the cost of operations
137
+ // needed to access the data. This operation should typically only
138
+ // be invoked by users who understand the underlying implementation.
139
+ //
140
+ // begin==NULL is treated as a key before all keys in the database.
141
+ // end==NULL is treated as a key after all keys in the database.
142
+ // Therefore the following call will compact the entire database:
143
+ // db->CompactRange(NULL, NULL);
144
+ virtual void CompactRange(const Slice* begin, const Slice* end) = 0;
145
+
146
+ private:
147
+ // No copying allowed
148
+ DB(const DB&);
149
+ void operator=(const DB&);
150
+ };
151
+
152
+ // Destroy the contents of the specified database.
153
+ // Be very careful using this method.
154
+ Status DestroyDB(const std::string& name, const Options& options);
155
+
156
+ // If a DB cannot be opened, you may attempt to call this method to
157
+ // resurrect as much of the contents of the database as possible.
158
+ // Some data may be lost, so be careful when calling this function
159
+ // on a database that contains important information.
160
+ Status RepairDB(const std::string& dbname, const Options& options);
161
+
162
+ } // namespace leveldb
163
+
164
+ #endif // STORAGE_LEVELDB_INCLUDE_DB_H_
@@ -0,0 +1,25 @@
1
+ // Copyright (c) 2014 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_INCLUDE_DUMPFILE_H_
6
+ #define STORAGE_LEVELDB_INCLUDE_DUMPFILE_H_
7
+
8
+ #include <string>
9
+ #include "leveldb/env.h"
10
+ #include "leveldb/status.h"
11
+
12
+ namespace leveldb {
13
+
14
+ // Dump the contents of the file named by fname in text format to
15
+ // *dst. Makes a sequence of dst->Append() calls; each call is passed
16
+ // the newline-terminated text corresponding to a single item found
17
+ // in the file.
18
+ //
19
+ // Returns a non-OK result if fname does not name a leveldb storage
20
+ // file, or if the file cannot be read.
21
+ Status DumpFile(Env* env, const std::string& fname, WritableFile* dst);
22
+
23
+ } // namespace leveldb
24
+
25
+ #endif // STORAGE_LEVELDB_INCLUDE_DUMPFILE_H_
@@ -0,0 +1,351 @@
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
+ // An Env is an interface used by the leveldb implementation to access
6
+ // operating system functionality like the filesystem etc. Callers
7
+ // may wish to provide a custom Env object when opening a database to
8
+ // get fine gain control; e.g., to rate limit file system operations.
9
+ //
10
+ // All Env implementations are safe for concurrent access from
11
+ // multiple threads without any external synchronization.
12
+
13
+ #ifndef STORAGE_LEVELDB_INCLUDE_ENV_H_
14
+ #define STORAGE_LEVELDB_INCLUDE_ENV_H_
15
+
16
+ #include <string>
17
+ #include <vector>
18
+ #include <stdarg.h>
19
+ #include <stdint.h>
20
+ #include "leveldb/status.h"
21
+
22
+ namespace leveldb {
23
+
24
+ class FileLock;
25
+ class Logger;
26
+ class RandomAccessFile;
27
+ class SequentialFile;
28
+ class Slice;
29
+ class WritableFile;
30
+
31
+ class Env {
32
+ public:
33
+ Env() { }
34
+ virtual ~Env();
35
+
36
+ // Return a default environment suitable for the current operating
37
+ // system. Sophisticated users may wish to provide their own Env
38
+ // implementation instead of relying on this default environment.
39
+ //
40
+ // The result of Default() belongs to leveldb and must never be deleted.
41
+ static Env* Default();
42
+
43
+ // Create a brand new sequentially-readable file with the specified name.
44
+ // On success, stores a pointer to the new file in *result and returns OK.
45
+ // On failure stores NULL in *result and returns non-OK. If the file does
46
+ // not exist, returns a non-OK status.
47
+ //
48
+ // The returned file will only be accessed by one thread at a time.
49
+ virtual Status NewSequentialFile(const std::string& fname,
50
+ SequentialFile** result) = 0;
51
+
52
+ // Create a brand new random access read-only file with the
53
+ // specified name. On success, stores a pointer to the new file in
54
+ // *result and returns OK. On failure stores NULL in *result and
55
+ // returns non-OK. If the file does not exist, returns a non-OK
56
+ // status.
57
+ //
58
+ // The returned file may be concurrently accessed by multiple threads.
59
+ virtual Status NewRandomAccessFile(const std::string& fname,
60
+ RandomAccessFile** result) = 0;
61
+
62
+ // Create an object that writes to a new file with the specified
63
+ // name. Deletes any existing file with the same name and creates a
64
+ // new file. On success, stores a pointer to the new file in
65
+ // *result and returns OK. On failure stores NULL in *result and
66
+ // returns non-OK.
67
+ //
68
+ // The returned file will only be accessed by one thread at a time.
69
+ virtual Status NewWritableFile(const std::string& fname,
70
+ WritableFile** result) = 0;
71
+
72
+ // Create an object that either appends to an existing file, or
73
+ // writes to a new file (if the file does not exist to begin with).
74
+ // On success, stores a pointer to the new file in *result and
75
+ // returns OK. On failure stores NULL in *result and returns
76
+ // non-OK.
77
+ //
78
+ // The returned file will only be accessed by one thread at a time.
79
+ //
80
+ // May return an IsNotSupportedError error if this Env does
81
+ // not allow appending to an existing file. Users of Env (including
82
+ // the leveldb implementation) must be prepared to deal with
83
+ // an Env that does not support appending.
84
+ virtual Status NewAppendableFile(const std::string& fname,
85
+ WritableFile** result);
86
+
87
+ // Returns true iff the named file exists.
88
+ virtual bool FileExists(const std::string& fname) = 0;
89
+
90
+ // Store in *result the names of the children of the specified directory.
91
+ // The names are relative to "dir".
92
+ // Original contents of *results are dropped.
93
+ virtual Status GetChildren(const std::string& dir,
94
+ std::vector<std::string>* result) = 0;
95
+
96
+ // Delete the named file.
97
+ virtual Status DeleteFile(const std::string& fname) = 0;
98
+
99
+ // Create the specified directory.
100
+ virtual Status CreateDir(const std::string& dirname) = 0;
101
+
102
+ // Delete the specified directory.
103
+ virtual Status DeleteDir(const std::string& dirname) = 0;
104
+
105
+ // Store the size of fname in *file_size.
106
+ virtual Status GetFileSize(const std::string& fname, uint64_t* file_size) = 0;
107
+
108
+ // Rename file src to target.
109
+ virtual Status RenameFile(const std::string& src,
110
+ const std::string& target) = 0;
111
+
112
+ // Lock the specified file. Used to prevent concurrent access to
113
+ // the same db by multiple processes. On failure, stores NULL in
114
+ // *lock and returns non-OK.
115
+ //
116
+ // On success, stores a pointer to the object that represents the
117
+ // acquired lock in *lock and returns OK. The caller should call
118
+ // UnlockFile(*lock) to release the lock. If the process exits,
119
+ // the lock will be automatically released.
120
+ //
121
+ // If somebody else already holds the lock, finishes immediately
122
+ // with a failure. I.e., this call does not wait for existing locks
123
+ // to go away.
124
+ //
125
+ // May create the named file if it does not already exist.
126
+ virtual Status LockFile(const std::string& fname, FileLock** lock) = 0;
127
+
128
+ // Release the lock acquired by a previous successful call to LockFile.
129
+ // REQUIRES: lock was returned by a successful LockFile() call
130
+ // REQUIRES: lock has not already been unlocked.
131
+ virtual Status UnlockFile(FileLock* lock) = 0;
132
+
133
+ // Arrange to run "(*function)(arg)" once in a background thread.
134
+ //
135
+ // "function" may run in an unspecified thread. Multiple functions
136
+ // added to the same Env may run concurrently in different threads.
137
+ // I.e., the caller may not assume that background work items are
138
+ // serialized.
139
+ virtual void Schedule(
140
+ void (*function)(void* arg),
141
+ void* arg) = 0;
142
+
143
+ // Start a new thread, invoking "function(arg)" within the new thread.
144
+ // When "function(arg)" returns, the thread will be destroyed.
145
+ virtual void StartThread(void (*function)(void* arg), void* arg) = 0;
146
+
147
+ // *path is set to a temporary directory that can be used for testing. It may
148
+ // or many not have just been created. The directory may or may not differ
149
+ // between runs of the same process, but subsequent calls will return the
150
+ // same directory.
151
+ virtual Status GetTestDirectory(std::string* path) = 0;
152
+
153
+ // Create and return a log file for storing informational messages.
154
+ virtual Status NewLogger(const std::string& fname, Logger** result) = 0;
155
+
156
+ // Returns the number of micro-seconds since some fixed point in time. Only
157
+ // useful for computing deltas of time.
158
+ virtual uint64_t NowMicros() = 0;
159
+
160
+ // Sleep/delay the thread for the prescribed number of micro-seconds.
161
+ virtual void SleepForMicroseconds(int micros) = 0;
162
+
163
+ private:
164
+ // No copying allowed
165
+ Env(const Env&);
166
+ void operator=(const Env&);
167
+ };
168
+
169
+ // A file abstraction for reading sequentially through a file
170
+ class SequentialFile {
171
+ public:
172
+ SequentialFile() { }
173
+ virtual ~SequentialFile();
174
+
175
+ // Read up to "n" bytes from the file. "scratch[0..n-1]" may be
176
+ // written by this routine. Sets "*result" to the data that was
177
+ // read (including if fewer than "n" bytes were successfully read).
178
+ // May set "*result" to point at data in "scratch[0..n-1]", so
179
+ // "scratch[0..n-1]" must be live when "*result" is used.
180
+ // If an error was encountered, returns a non-OK status.
181
+ //
182
+ // REQUIRES: External synchronization
183
+ virtual Status Read(size_t n, Slice* result, char* scratch) = 0;
184
+
185
+ // Skip "n" bytes from the file. This is guaranteed to be no
186
+ // slower that reading the same data, but may be faster.
187
+ //
188
+ // If end of file is reached, skipping will stop at the end of the
189
+ // file, and Skip will return OK.
190
+ //
191
+ // REQUIRES: External synchronization
192
+ virtual Status Skip(uint64_t n) = 0;
193
+
194
+ private:
195
+ // No copying allowed
196
+ SequentialFile(const SequentialFile&);
197
+ void operator=(const SequentialFile&);
198
+ };
199
+
200
+ // A file abstraction for randomly reading the contents of a file.
201
+ class RandomAccessFile {
202
+ public:
203
+ RandomAccessFile() { }
204
+ virtual ~RandomAccessFile();
205
+
206
+ // Read up to "n" bytes from the file starting at "offset".
207
+ // "scratch[0..n-1]" may be written by this routine. Sets "*result"
208
+ // to the data that was read (including if fewer than "n" bytes were
209
+ // successfully read). May set "*result" to point at data in
210
+ // "scratch[0..n-1]", so "scratch[0..n-1]" must be live when
211
+ // "*result" is used. If an error was encountered, returns a non-OK
212
+ // status.
213
+ //
214
+ // Safe for concurrent use by multiple threads.
215
+ virtual Status Read(uint64_t offset, size_t n, Slice* result,
216
+ char* scratch) const = 0;
217
+
218
+ private:
219
+ // No copying allowed
220
+ RandomAccessFile(const RandomAccessFile&);
221
+ void operator=(const RandomAccessFile&);
222
+ };
223
+
224
+ // A file abstraction for sequential writing. The implementation
225
+ // must provide buffering since callers may append small fragments
226
+ // at a time to the file.
227
+ class WritableFile {
228
+ public:
229
+ WritableFile() { }
230
+ virtual ~WritableFile();
231
+
232
+ virtual Status Append(const Slice& data) = 0;
233
+ virtual Status Close() = 0;
234
+ virtual Status Flush() = 0;
235
+ virtual Status Sync() = 0;
236
+
237
+ private:
238
+ // No copying allowed
239
+ WritableFile(const WritableFile&);
240
+ void operator=(const WritableFile&);
241
+ };
242
+
243
+ // An interface for writing log messages.
244
+ class Logger {
245
+ public:
246
+ Logger() { }
247
+ virtual ~Logger();
248
+
249
+ // Write an entry to the log file with the specified format.
250
+ virtual void Logv(const char* format, va_list ap) = 0;
251
+
252
+ private:
253
+ // No copying allowed
254
+ Logger(const Logger&);
255
+ void operator=(const Logger&);
256
+ };
257
+
258
+
259
+ // Identifies a locked file.
260
+ class FileLock {
261
+ public:
262
+ FileLock() { }
263
+ virtual ~FileLock();
264
+ private:
265
+ // No copying allowed
266
+ FileLock(const FileLock&);
267
+ void operator=(const FileLock&);
268
+ };
269
+
270
+ // Log the specified data to *info_log if info_log is non-NULL.
271
+ extern void Log(Logger* info_log, const char* format, ...)
272
+ # if defined(__GNUC__) || defined(__clang__)
273
+ __attribute__((__format__ (__printf__, 2, 3)))
274
+ # endif
275
+ ;
276
+
277
+ // A utility routine: write "data" to the named file.
278
+ extern Status WriteStringToFile(Env* env, const Slice& data,
279
+ const std::string& fname);
280
+
281
+ // A utility routine: read contents of named file into *data
282
+ extern Status ReadFileToString(Env* env, const std::string& fname,
283
+ std::string* data);
284
+
285
+ // An implementation of Env that forwards all calls to another Env.
286
+ // May be useful to clients who wish to override just part of the
287
+ // functionality of another Env.
288
+ class EnvWrapper : public Env {
289
+ public:
290
+ // Initialize an EnvWrapper that delegates all calls to *t
291
+ explicit EnvWrapper(Env* t) : target_(t) { }
292
+ virtual ~EnvWrapper();
293
+
294
+ // Return the target to which this Env forwards all calls
295
+ Env* target() const { return target_; }
296
+
297
+ // The following text is boilerplate that forwards all methods to target()
298
+ Status NewSequentialFile(const std::string& f, SequentialFile** r) {
299
+ return target_->NewSequentialFile(f, r);
300
+ }
301
+ Status NewRandomAccessFile(const std::string& f, RandomAccessFile** r) {
302
+ return target_->NewRandomAccessFile(f, r);
303
+ }
304
+ Status NewWritableFile(const std::string& f, WritableFile** r) {
305
+ return target_->NewWritableFile(f, r);
306
+ }
307
+ Status NewAppendableFile(const std::string& f, WritableFile** r) {
308
+ return target_->NewAppendableFile(f, r);
309
+ }
310
+ bool FileExists(const std::string& f) { return target_->FileExists(f); }
311
+ Status GetChildren(const std::string& dir, std::vector<std::string>* r) {
312
+ return target_->GetChildren(dir, r);
313
+ }
314
+ Status DeleteFile(const std::string& f) { return target_->DeleteFile(f); }
315
+ Status CreateDir(const std::string& d) { return target_->CreateDir(d); }
316
+ Status DeleteDir(const std::string& d) { return target_->DeleteDir(d); }
317
+ Status GetFileSize(const std::string& f, uint64_t* s) {
318
+ return target_->GetFileSize(f, s);
319
+ }
320
+ Status RenameFile(const std::string& s, const std::string& t) {
321
+ return target_->RenameFile(s, t);
322
+ }
323
+ Status LockFile(const std::string& f, FileLock** l) {
324
+ return target_->LockFile(f, l);
325
+ }
326
+ Status UnlockFile(FileLock* l) { return target_->UnlockFile(l); }
327
+ void Schedule(void (*f)(void*), void* a) {
328
+ return target_->Schedule(f, a);
329
+ }
330
+ void StartThread(void (*f)(void*), void* a) {
331
+ return target_->StartThread(f, a);
332
+ }
333
+ virtual Status GetTestDirectory(std::string* path) {
334
+ return target_->GetTestDirectory(path);
335
+ }
336
+ virtual Status NewLogger(const std::string& fname, Logger** result) {
337
+ return target_->NewLogger(fname, result);
338
+ }
339
+ uint64_t NowMicros() {
340
+ return target_->NowMicros();
341
+ }
342
+ void SleepForMicroseconds(int micros) {
343
+ target_->SleepForMicroseconds(micros);
344
+ }
345
+ private:
346
+ Env* target_;
347
+ };
348
+
349
+ } // namespace leveldb
350
+
351
+ #endif // STORAGE_LEVELDB_INCLUDE_ENV_H_
@@ -0,0 +1,70 @@
1
+ // Copyright (c) 2012 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
+ // A database can be configured with a custom FilterPolicy object.
6
+ // This object is responsible for creating a small filter from a set
7
+ // of keys. These filters are stored in leveldb and are consulted
8
+ // automatically by leveldb to decide whether or not to read some
9
+ // information from disk. In many cases, a filter can cut down the
10
+ // number of disk seeks form a handful to a single disk seek per
11
+ // DB::Get() call.
12
+ //
13
+ // Most people will want to use the builtin bloom filter support (see
14
+ // NewBloomFilterPolicy() below).
15
+
16
+ #ifndef STORAGE_LEVELDB_INCLUDE_FILTER_POLICY_H_
17
+ #define STORAGE_LEVELDB_INCLUDE_FILTER_POLICY_H_
18
+
19
+ #include <string>
20
+
21
+ namespace leveldb {
22
+
23
+ class Slice;
24
+
25
+ class FilterPolicy {
26
+ public:
27
+ virtual ~FilterPolicy();
28
+
29
+ // Return the name of this policy. Note that if the filter encoding
30
+ // changes in an incompatible way, the name returned by this method
31
+ // must be changed. Otherwise, old incompatible filters may be
32
+ // passed to methods of this type.
33
+ virtual const char* Name() const = 0;
34
+
35
+ // keys[0,n-1] contains a list of keys (potentially with duplicates)
36
+ // that are ordered according to the user supplied comparator.
37
+ // Append a filter that summarizes keys[0,n-1] to *dst.
38
+ //
39
+ // Warning: do not change the initial contents of *dst. Instead,
40
+ // append the newly constructed filter to *dst.
41
+ virtual void CreateFilter(const Slice* keys, int n, std::string* dst)
42
+ const = 0;
43
+
44
+ // "filter" contains the data appended by a preceding call to
45
+ // CreateFilter() on this class. This method must return true if
46
+ // the key was in the list of keys passed to CreateFilter().
47
+ // This method may return true or false if the key was not on the
48
+ // list, but it should aim to return false with a high probability.
49
+ virtual bool KeyMayMatch(const Slice& key, const Slice& filter) const = 0;
50
+ };
51
+
52
+ // Return a new filter policy that uses a bloom filter with approximately
53
+ // the specified number of bits per key. A good value for bits_per_key
54
+ // is 10, which yields a filter with ~ 1% false positive rate.
55
+ //
56
+ // Callers must delete the result after any database that is using the
57
+ // result has been closed.
58
+ //
59
+ // Note: if you are using a custom comparator that ignores some parts
60
+ // of the keys being compared, you must not use NewBloomFilterPolicy()
61
+ // and must provide your own FilterPolicy that also ignores the
62
+ // corresponding parts of the keys. For example, if the comparator
63
+ // ignores trailing spaces, it would be incorrect to use a
64
+ // FilterPolicy (like NewBloomFilterPolicy) that does not ignore
65
+ // trailing spaces in keys.
66
+ extern const FilterPolicy* NewBloomFilterPolicy(int bits_per_key);
67
+
68
+ }
69
+
70
+ #endif // STORAGE_LEVELDB_INCLUDE_FILTER_POLICY_H_