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,100 @@
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 iterator yields a sequence of key/value pairs from a source.
6
+ // The following class defines the interface. Multiple implementations
7
+ // are provided by this library. In particular, iterators are provided
8
+ // to access the contents of a Table or a DB.
9
+ //
10
+ // Multiple threads can invoke const methods on an Iterator without
11
+ // external synchronization, but if any of the threads may call a
12
+ // non-const method, all threads accessing the same Iterator must use
13
+ // external synchronization.
14
+
15
+ #ifndef STORAGE_LEVELDB_INCLUDE_ITERATOR_H_
16
+ #define STORAGE_LEVELDB_INCLUDE_ITERATOR_H_
17
+
18
+ #include "leveldb/slice.h"
19
+ #include "leveldb/status.h"
20
+
21
+ namespace leveldb {
22
+
23
+ class Iterator {
24
+ public:
25
+ Iterator();
26
+ virtual ~Iterator();
27
+
28
+ // An iterator is either positioned at a key/value pair, or
29
+ // not valid. This method returns true iff the iterator is valid.
30
+ virtual bool Valid() const = 0;
31
+
32
+ // Position at the first key in the source. The iterator is Valid()
33
+ // after this call iff the source is not empty.
34
+ virtual void SeekToFirst() = 0;
35
+
36
+ // Position at the last key in the source. The iterator is
37
+ // Valid() after this call iff the source is not empty.
38
+ virtual void SeekToLast() = 0;
39
+
40
+ // Position at the first key in the source that is at or past target.
41
+ // The iterator is Valid() after this call iff the source contains
42
+ // an entry that comes at or past target.
43
+ virtual void Seek(const Slice& target) = 0;
44
+
45
+ // Moves to the next entry in the source. After this call, Valid() is
46
+ // true iff the iterator was not positioned at the last entry in the source.
47
+ // REQUIRES: Valid()
48
+ virtual void Next() = 0;
49
+
50
+ // Moves to the previous entry in the source. After this call, Valid() is
51
+ // true iff the iterator was not positioned at the first entry in source.
52
+ // REQUIRES: Valid()
53
+ virtual void Prev() = 0;
54
+
55
+ // Return the key for the current entry. The underlying storage for
56
+ // the returned slice is valid only until the next modification of
57
+ // the iterator.
58
+ // REQUIRES: Valid()
59
+ virtual Slice key() const = 0;
60
+
61
+ // Return the value for the current entry. The underlying storage for
62
+ // the returned slice is valid only until the next modification of
63
+ // the iterator.
64
+ // REQUIRES: Valid()
65
+ virtual Slice value() const = 0;
66
+
67
+ // If an error has occurred, return it. Else return an ok status.
68
+ virtual Status status() const = 0;
69
+
70
+ // Clients are allowed to register function/arg1/arg2 triples that
71
+ // will be invoked when this iterator is destroyed.
72
+ //
73
+ // Note that unlike all of the preceding methods, this method is
74
+ // not abstract and therefore clients should not override it.
75
+ typedef void (*CleanupFunction)(void* arg1, void* arg2);
76
+ void RegisterCleanup(CleanupFunction function, void* arg1, void* arg2);
77
+
78
+ private:
79
+ struct Cleanup {
80
+ CleanupFunction function;
81
+ void* arg1;
82
+ void* arg2;
83
+ Cleanup* next;
84
+ };
85
+ Cleanup cleanup_;
86
+
87
+ // No copying allowed
88
+ Iterator(const Iterator&);
89
+ void operator=(const Iterator&);
90
+ };
91
+
92
+ // Return an empty iterator (yields nothing).
93
+ extern Iterator* NewEmptyIterator();
94
+
95
+ // Return an empty iterator with the specified status.
96
+ extern Iterator* NewErrorIterator(const Status& status);
97
+
98
+ } // namespace leveldb
99
+
100
+ #endif // STORAGE_LEVELDB_INCLUDE_ITERATOR_H_
@@ -0,0 +1,213 @@
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_OPTIONS_H_
6
+ #define STORAGE_LEVELDB_INCLUDE_OPTIONS_H_
7
+
8
+ #include <stddef.h>
9
+
10
+ namespace leveldb {
11
+
12
+ class Cache;
13
+ class Comparator;
14
+ class Env;
15
+ class FilterPolicy;
16
+ class Logger;
17
+ class Snapshot;
18
+
19
+ // DB contents are stored in a set of blocks, each of which holds a
20
+ // sequence of key,value pairs. Each block may be compressed before
21
+ // being stored in a file. The following enum describes which
22
+ // compression method (if any) is used to compress a block.
23
+ enum CompressionType {
24
+ // NOTE: do not change the values of existing entries, as these are
25
+ // part of the persistent format on disk.
26
+ kNoCompression = 0x0,
27
+ kSnappyCompression = 0x1
28
+ };
29
+
30
+ // Options to control the behavior of a database (passed to DB::Open)
31
+ struct Options {
32
+ // -------------------
33
+ // Parameters that affect behavior
34
+
35
+ // Comparator used to define the order of keys in the table.
36
+ // Default: a comparator that uses lexicographic byte-wise ordering
37
+ //
38
+ // REQUIRES: The client must ensure that the comparator supplied
39
+ // here has the same name and orders keys *exactly* the same as the
40
+ // comparator provided to previous open calls on the same DB.
41
+ const Comparator* comparator;
42
+
43
+ // If true, the database will be created if it is missing.
44
+ // Default: false
45
+ bool create_if_missing;
46
+
47
+ // If true, an error is raised if the database already exists.
48
+ // Default: false
49
+ bool error_if_exists;
50
+
51
+ // If true, the implementation will do aggressive checking of the
52
+ // data it is processing and will stop early if it detects any
53
+ // errors. This may have unforeseen ramifications: for example, a
54
+ // corruption of one DB entry may cause a large number of entries to
55
+ // become unreadable or for the entire DB to become unopenable.
56
+ // Default: false
57
+ bool paranoid_checks;
58
+
59
+ // Use the specified object to interact with the environment,
60
+ // e.g. to read/write files, schedule background work, etc.
61
+ // Default: Env::Default()
62
+ Env* env;
63
+
64
+ // Any internal progress/error information generated by the db will
65
+ // be written to info_log if it is non-NULL, or to a file stored
66
+ // in the same directory as the DB contents if info_log is NULL.
67
+ // Default: NULL
68
+ Logger* info_log;
69
+
70
+ // -------------------
71
+ // Parameters that affect performance
72
+
73
+ // Amount of data to build up in memory (backed by an unsorted log
74
+ // on disk) before converting to a sorted on-disk file.
75
+ //
76
+ // Larger values increase performance, especially during bulk loads.
77
+ // Up to two write buffers may be held in memory at the same time,
78
+ // so you may wish to adjust this parameter to control memory usage.
79
+ // Also, a larger write buffer will result in a longer recovery time
80
+ // the next time the database is opened.
81
+ //
82
+ // Default: 4MB
83
+ size_t write_buffer_size;
84
+
85
+ // Number of open files that can be used by the DB. You may need to
86
+ // increase this if your database has a large working set (budget
87
+ // one open file per 2MB of working set).
88
+ //
89
+ // Default: 1000
90
+ int max_open_files;
91
+
92
+ // Control over blocks (user data is stored in a set of blocks, and
93
+ // a block is the unit of reading from disk).
94
+
95
+ // If non-NULL, use the specified cache for blocks.
96
+ // If NULL, leveldb will automatically create and use an 8MB internal cache.
97
+ // Default: NULL
98
+ Cache* block_cache;
99
+
100
+ // Approximate size of user data packed per block. Note that the
101
+ // block size specified here corresponds to uncompressed data. The
102
+ // actual size of the unit read from disk may be smaller if
103
+ // compression is enabled. This parameter can be changed dynamically.
104
+ //
105
+ // Default: 4K
106
+ size_t block_size;
107
+
108
+ // Number of keys between restart points for delta encoding of keys.
109
+ // This parameter can be changed dynamically. Most clients should
110
+ // leave this parameter alone.
111
+ //
112
+ // Default: 16
113
+ int block_restart_interval;
114
+
115
+ // Leveldb will write up to this amount of bytes to a file before
116
+ // switching to a new one.
117
+ // Most clients should leave this parameter alone. However if your
118
+ // filesystem is more efficient with larger files, you could
119
+ // consider increasing the value. The downside will be longer
120
+ // compactions and hence longer latency/performance hiccups.
121
+ // Another reason to increase this parameter might be when you are
122
+ // initially populating a large database.
123
+ //
124
+ // Default: 2MB
125
+ size_t max_file_size;
126
+
127
+ // Compress blocks using the specified compression algorithm. This
128
+ // parameter can be changed dynamically.
129
+ //
130
+ // Default: kSnappyCompression, which gives lightweight but fast
131
+ // compression.
132
+ //
133
+ // Typical speeds of kSnappyCompression on an Intel(R) Core(TM)2 2.4GHz:
134
+ // ~200-500MB/s compression
135
+ // ~400-800MB/s decompression
136
+ // Note that these speeds are significantly faster than most
137
+ // persistent storage speeds, and therefore it is typically never
138
+ // worth switching to kNoCompression. Even if the input data is
139
+ // incompressible, the kSnappyCompression implementation will
140
+ // efficiently detect that and will switch to uncompressed mode.
141
+ CompressionType compression;
142
+
143
+ // EXPERIMENTAL: If true, append to existing MANIFEST and log files
144
+ // when a database is opened. This can significantly speed up open.
145
+ //
146
+ // Default: currently false, but may become true later.
147
+ bool reuse_logs;
148
+
149
+ // If non-NULL, use the specified filter policy to reduce disk reads.
150
+ // Many applications will benefit from passing the result of
151
+ // NewBloomFilterPolicy() here.
152
+ //
153
+ // Default: NULL
154
+ const FilterPolicy* filter_policy;
155
+
156
+ // Create an Options object with default values for all fields.
157
+ Options();
158
+ };
159
+
160
+ // Options that control read operations
161
+ struct ReadOptions {
162
+ // If true, all data read from underlying storage will be
163
+ // verified against corresponding checksums.
164
+ // Default: false
165
+ bool verify_checksums;
166
+
167
+ // Should the data read for this iteration be cached in memory?
168
+ // Callers may wish to set this field to false for bulk scans.
169
+ // Default: true
170
+ bool fill_cache;
171
+
172
+ // If "snapshot" is non-NULL, read as of the supplied snapshot
173
+ // (which must belong to the DB that is being read and which must
174
+ // not have been released). If "snapshot" is NULL, use an implicit
175
+ // snapshot of the state at the beginning of this read operation.
176
+ // Default: NULL
177
+ const Snapshot* snapshot;
178
+
179
+ ReadOptions()
180
+ : verify_checksums(false),
181
+ fill_cache(true),
182
+ snapshot(NULL) {
183
+ }
184
+ };
185
+
186
+ // Options that control write operations
187
+ struct WriteOptions {
188
+ // If true, the write will be flushed from the operating system
189
+ // buffer cache (by calling WritableFile::Sync()) before the write
190
+ // is considered complete. If this flag is true, writes will be
191
+ // slower.
192
+ //
193
+ // If this flag is false, and the machine crashes, some recent
194
+ // writes may be lost. Note that if it is just the process that
195
+ // crashes (i.e., the machine does not reboot), no writes will be
196
+ // lost even if sync==false.
197
+ //
198
+ // In other words, a DB write with sync==false has similar
199
+ // crash semantics as the "write()" system call. A DB write
200
+ // with sync==true has similar crash semantics to a "write()"
201
+ // system call followed by "fsync()".
202
+ //
203
+ // Default: false
204
+ bool sync;
205
+
206
+ WriteOptions()
207
+ : sync(false) {
208
+ }
209
+ };
210
+
211
+ } // namespace leveldb
212
+
213
+ #endif // STORAGE_LEVELDB_INCLUDE_OPTIONS_H_
@@ -0,0 +1,109 @@
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
+ // Slice is a simple structure containing a pointer into some external
6
+ // storage and a size. The user of a Slice must ensure that the slice
7
+ // is not used after the corresponding external storage has been
8
+ // deallocated.
9
+ //
10
+ // Multiple threads can invoke const methods on a Slice without
11
+ // external synchronization, but if any of the threads may call a
12
+ // non-const method, all threads accessing the same Slice must use
13
+ // external synchronization.
14
+
15
+ #ifndef STORAGE_LEVELDB_INCLUDE_SLICE_H_
16
+ #define STORAGE_LEVELDB_INCLUDE_SLICE_H_
17
+
18
+ #include <assert.h>
19
+ #include <stddef.h>
20
+ #include <string.h>
21
+ #include <string>
22
+
23
+ namespace leveldb {
24
+
25
+ class Slice {
26
+ public:
27
+ // Create an empty slice.
28
+ Slice() : data_(""), size_(0) { }
29
+
30
+ // Create a slice that refers to d[0,n-1].
31
+ Slice(const char* d, size_t n) : data_(d), size_(n) { }
32
+
33
+ // Create a slice that refers to the contents of "s"
34
+ Slice(const std::string& s) : data_(s.data()), size_(s.size()) { }
35
+
36
+ // Create a slice that refers to s[0,strlen(s)-1]
37
+ Slice(const char* s) : data_(s), size_(strlen(s)) { }
38
+
39
+ // Return a pointer to the beginning of the referenced data
40
+ const char* data() const { return data_; }
41
+
42
+ // Return the length (in bytes) of the referenced data
43
+ size_t size() const { return size_; }
44
+
45
+ // Return true iff the length of the referenced data is zero
46
+ bool empty() const { return size_ == 0; }
47
+
48
+ // Return the ith byte in the referenced data.
49
+ // REQUIRES: n < size()
50
+ char operator[](size_t n) const {
51
+ assert(n < size());
52
+ return data_[n];
53
+ }
54
+
55
+ // Change this slice to refer to an empty array
56
+ void clear() { data_ = ""; size_ = 0; }
57
+
58
+ // Drop the first "n" bytes from this slice.
59
+ void remove_prefix(size_t n) {
60
+ assert(n <= size());
61
+ data_ += n;
62
+ size_ -= n;
63
+ }
64
+
65
+ // Return a string that contains the copy of the referenced data.
66
+ std::string ToString() const { return std::string(data_, size_); }
67
+
68
+ // Three-way comparison. Returns value:
69
+ // < 0 iff "*this" < "b",
70
+ // == 0 iff "*this" == "b",
71
+ // > 0 iff "*this" > "b"
72
+ int compare(const Slice& b) const;
73
+
74
+ // Return true iff "x" is a prefix of "*this"
75
+ bool starts_with(const Slice& x) const {
76
+ return ((size_ >= x.size_) &&
77
+ (memcmp(data_, x.data_, x.size_) == 0));
78
+ }
79
+
80
+ private:
81
+ const char* data_;
82
+ size_t size_;
83
+
84
+ // Intentionally copyable
85
+ };
86
+
87
+ inline bool operator==(const Slice& x, const Slice& y) {
88
+ return ((x.size() == y.size()) &&
89
+ (memcmp(x.data(), y.data(), x.size()) == 0));
90
+ }
91
+
92
+ inline bool operator!=(const Slice& x, const Slice& y) {
93
+ return !(x == y);
94
+ }
95
+
96
+ inline int Slice::compare(const Slice& b) const {
97
+ const size_t min_len = (size_ < b.size_) ? size_ : b.size_;
98
+ int r = memcmp(data_, b.data_, min_len);
99
+ if (r == 0) {
100
+ if (size_ < b.size_) r = -1;
101
+ else if (size_ > b.size_) r = +1;
102
+ }
103
+ return r;
104
+ }
105
+
106
+ } // namespace leveldb
107
+
108
+
109
+ #endif // STORAGE_LEVELDB_INCLUDE_SLICE_H_
@@ -0,0 +1,112 @@
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
+ // A Status encapsulates the result of an operation. It may indicate success,
6
+ // or it may indicate an error with an associated error message.
7
+ //
8
+ // Multiple threads can invoke const methods on a Status without
9
+ // external synchronization, but if any of the threads may call a
10
+ // non-const method, all threads accessing the same Status must use
11
+ // external synchronization.
12
+
13
+ #ifndef STORAGE_LEVELDB_INCLUDE_STATUS_H_
14
+ #define STORAGE_LEVELDB_INCLUDE_STATUS_H_
15
+
16
+ #include <string>
17
+ #include "leveldb/slice.h"
18
+
19
+ namespace leveldb {
20
+
21
+ class Status {
22
+ public:
23
+ // Create a success status.
24
+ Status() : state_(NULL) { }
25
+ ~Status() { delete[] state_; }
26
+
27
+ // Copy the specified status.
28
+ Status(const Status& s);
29
+ void operator=(const Status& s);
30
+
31
+ // Return a success status.
32
+ static Status OK() { return Status(); }
33
+
34
+ // Return error status of an appropriate type.
35
+ static Status NotFound(const Slice& msg, const Slice& msg2 = Slice()) {
36
+ return Status(kNotFound, msg, msg2);
37
+ }
38
+ static Status Corruption(const Slice& msg, const Slice& msg2 = Slice()) {
39
+ return Status(kCorruption, msg, msg2);
40
+ }
41
+ static Status NotSupported(const Slice& msg, const Slice& msg2 = Slice()) {
42
+ return Status(kNotSupported, msg, msg2);
43
+ }
44
+ static Status InvalidArgument(const Slice& msg, const Slice& msg2 = Slice()) {
45
+ return Status(kInvalidArgument, msg, msg2);
46
+ }
47
+ static Status IOError(const Slice& msg, const Slice& msg2 = Slice()) {
48
+ return Status(kIOError, msg, msg2);
49
+ }
50
+
51
+ // Returns true iff the status indicates success.
52
+ bool ok() const { return (state_ == NULL); }
53
+
54
+ // Returns true iff the status indicates a NotFound error.
55
+ bool IsNotFound() const { return code() == kNotFound; }
56
+
57
+ // Returns true iff the status indicates a Corruption error.
58
+ bool IsCorruption() const { return code() == kCorruption; }
59
+
60
+ // Returns true iff the status indicates an IOError.
61
+ bool IsIOError() const { return code() == kIOError; }
62
+
63
+ // Returns true iff the status indicates a NotSupportedError.
64
+ bool IsNotSupportedError() const { return code() == kNotSupported; }
65
+
66
+ // Returns true iff the status indicates an InvalidArgument.
67
+ bool IsInvalidArgument() const { return code() == kInvalidArgument; }
68
+
69
+ // Return a string representation of this status suitable for printing.
70
+ // Returns the string "OK" for success.
71
+ std::string ToString() const;
72
+
73
+ private:
74
+ // OK status has a NULL state_. Otherwise, state_ is a new[] array
75
+ // of the following form:
76
+ // state_[0..3] == length of message
77
+ // state_[4] == code
78
+ // state_[5..] == message
79
+ const char* state_;
80
+
81
+ enum Code {
82
+ kOk = 0,
83
+ kNotFound = 1,
84
+ kCorruption = 2,
85
+ kNotSupported = 3,
86
+ kInvalidArgument = 4,
87
+ kIOError = 5
88
+ };
89
+
90
+ Code code() const {
91
+ return (state_ == NULL) ? kOk : static_cast<Code>(state_[4]);
92
+ }
93
+
94
+ Status(Code code, const Slice& msg, const Slice& msg2);
95
+ static const char* CopyState(const char* s);
96
+ };
97
+
98
+ inline Status::Status(const Status& s) {
99
+ state_ = (s.state_ == NULL) ? NULL : CopyState(s.state_);
100
+ }
101
+ inline void Status::operator=(const Status& s) {
102
+ // The following condition catches both aliasing (when this == &s),
103
+ // and the common case where both s and *this are ok.
104
+ if (state_ != s.state_) {
105
+ delete[] state_;
106
+ state_ = (s.state_ == NULL) ? NULL : CopyState(s.state_);
107
+ }
108
+ }
109
+
110
+ } // namespace leveldb
111
+
112
+ #endif // STORAGE_LEVELDB_INCLUDE_STATUS_H_
@@ -0,0 +1,85 @@
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_TABLE_H_
6
+ #define STORAGE_LEVELDB_INCLUDE_TABLE_H_
7
+
8
+ #include <stdint.h>
9
+ #include "leveldb/iterator.h"
10
+
11
+ namespace leveldb {
12
+
13
+ class Block;
14
+ class BlockHandle;
15
+ class Footer;
16
+ struct Options;
17
+ class RandomAccessFile;
18
+ struct ReadOptions;
19
+ class TableCache;
20
+
21
+ // A Table is a sorted map from strings to strings. Tables are
22
+ // immutable and persistent. A Table may be safely accessed from
23
+ // multiple threads without external synchronization.
24
+ class Table {
25
+ public:
26
+ // Attempt to open the table that is stored in bytes [0..file_size)
27
+ // of "file", and read the metadata entries necessary to allow
28
+ // retrieving data from the table.
29
+ //
30
+ // If successful, returns ok and sets "*table" to the newly opened
31
+ // table. The client should delete "*table" when no longer needed.
32
+ // If there was an error while initializing the table, sets "*table"
33
+ // to NULL and returns a non-ok status. Does not take ownership of
34
+ // "*source", but the client must ensure that "source" remains live
35
+ // for the duration of the returned table's lifetime.
36
+ //
37
+ // *file must remain live while this Table is in use.
38
+ static Status Open(const Options& options,
39
+ RandomAccessFile* file,
40
+ uint64_t file_size,
41
+ Table** table);
42
+
43
+ ~Table();
44
+
45
+ // Returns a new iterator over the table contents.
46
+ // The result of NewIterator() is initially invalid (caller must
47
+ // call one of the Seek methods on the iterator before using it).
48
+ Iterator* NewIterator(const ReadOptions&) const;
49
+
50
+ // Given a key, return an approximate byte offset in the file where
51
+ // the data for that key begins (or would begin if the key were
52
+ // present in the file). The returned value is in terms of file
53
+ // bytes, and so includes effects like compression of the underlying data.
54
+ // E.g., the approximate offset of the last key in the table will
55
+ // be close to the file length.
56
+ uint64_t ApproximateOffsetOf(const Slice& key) const;
57
+
58
+ private:
59
+ struct Rep;
60
+ Rep* rep_;
61
+
62
+ explicit Table(Rep* rep) { rep_ = rep; }
63
+ static Iterator* BlockReader(void*, const ReadOptions&, const Slice&);
64
+
65
+ // Calls (*handle_result)(arg, ...) with the entry found after a call
66
+ // to Seek(key). May not make such a call if filter policy says
67
+ // that key is not present.
68
+ friend class TableCache;
69
+ Status InternalGet(
70
+ const ReadOptions&, const Slice& key,
71
+ void* arg,
72
+ void (*handle_result)(void* arg, const Slice& k, const Slice& v));
73
+
74
+
75
+ void ReadMeta(const Footer& footer);
76
+ void ReadFilter(const Slice& filter_handle_value);
77
+
78
+ // No copying allowed
79
+ Table(const Table&);
80
+ void operator=(const Table&);
81
+ };
82
+
83
+ } // namespace leveldb
84
+
85
+ #endif // STORAGE_LEVELDB_INCLUDE_TABLE_H_