gitx.do 0.1.1 → 0.1.2

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 (356) hide show
  1. package/README.md +40 -353
  2. package/dist/do/logger.d.ts +50 -0
  3. package/dist/do/logger.d.ts.map +1 -0
  4. package/dist/do/logger.js +122 -0
  5. package/dist/do/logger.js.map +1 -0
  6. package/dist/{durable-object → do}/schema.d.ts +3 -3
  7. package/dist/do/schema.d.ts.map +1 -0
  8. package/dist/{durable-object → do}/schema.js +4 -3
  9. package/dist/do/schema.js.map +1 -0
  10. package/dist/do/types.d.ts +267 -0
  11. package/dist/do/types.d.ts.map +1 -0
  12. package/dist/do/types.js +62 -0
  13. package/dist/do/types.js.map +1 -0
  14. package/dist/index.d.ts +14 -469
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +31 -483
  17. package/dist/index.js.map +1 -1
  18. package/package.json +13 -21
  19. package/dist/cli/commands/add.d.ts +0 -176
  20. package/dist/cli/commands/add.d.ts.map +0 -1
  21. package/dist/cli/commands/add.js +0 -979
  22. package/dist/cli/commands/add.js.map +0 -1
  23. package/dist/cli/commands/blame.d.ts +0 -259
  24. package/dist/cli/commands/blame.d.ts.map +0 -1
  25. package/dist/cli/commands/blame.js +0 -609
  26. package/dist/cli/commands/blame.js.map +0 -1
  27. package/dist/cli/commands/branch.d.ts +0 -249
  28. package/dist/cli/commands/branch.d.ts.map +0 -1
  29. package/dist/cli/commands/branch.js +0 -693
  30. package/dist/cli/commands/branch.js.map +0 -1
  31. package/dist/cli/commands/checkout.d.ts +0 -73
  32. package/dist/cli/commands/checkout.d.ts.map +0 -1
  33. package/dist/cli/commands/checkout.js +0 -725
  34. package/dist/cli/commands/checkout.js.map +0 -1
  35. package/dist/cli/commands/commit.d.ts +0 -182
  36. package/dist/cli/commands/commit.d.ts.map +0 -1
  37. package/dist/cli/commands/commit.js +0 -457
  38. package/dist/cli/commands/commit.js.map +0 -1
  39. package/dist/cli/commands/diff.d.ts +0 -464
  40. package/dist/cli/commands/diff.d.ts.map +0 -1
  41. package/dist/cli/commands/diff.js +0 -959
  42. package/dist/cli/commands/diff.js.map +0 -1
  43. package/dist/cli/commands/log.d.ts +0 -239
  44. package/dist/cli/commands/log.d.ts.map +0 -1
  45. package/dist/cli/commands/log.js +0 -535
  46. package/dist/cli/commands/log.js.map +0 -1
  47. package/dist/cli/commands/merge.d.ts +0 -106
  48. package/dist/cli/commands/merge.d.ts.map +0 -1
  49. package/dist/cli/commands/merge.js +0 -852
  50. package/dist/cli/commands/merge.js.map +0 -1
  51. package/dist/cli/commands/review.d.ts +0 -457
  52. package/dist/cli/commands/review.d.ts.map +0 -1
  53. package/dist/cli/commands/review.js +0 -558
  54. package/dist/cli/commands/review.js.map +0 -1
  55. package/dist/cli/commands/stash.d.ts +0 -157
  56. package/dist/cli/commands/stash.d.ts.map +0 -1
  57. package/dist/cli/commands/stash.js +0 -655
  58. package/dist/cli/commands/stash.js.map +0 -1
  59. package/dist/cli/commands/status.d.ts +0 -269
  60. package/dist/cli/commands/status.d.ts.map +0 -1
  61. package/dist/cli/commands/status.js +0 -492
  62. package/dist/cli/commands/status.js.map +0 -1
  63. package/dist/cli/commands/web.d.ts +0 -199
  64. package/dist/cli/commands/web.d.ts.map +0 -1
  65. package/dist/cli/commands/web.js +0 -697
  66. package/dist/cli/commands/web.js.map +0 -1
  67. package/dist/cli/fs-adapter.d.ts +0 -656
  68. package/dist/cli/fs-adapter.d.ts.map +0 -1
  69. package/dist/cli/fs-adapter.js +0 -1177
  70. package/dist/cli/fs-adapter.js.map +0 -1
  71. package/dist/cli/fsx-cli-adapter.d.ts +0 -359
  72. package/dist/cli/fsx-cli-adapter.d.ts.map +0 -1
  73. package/dist/cli/fsx-cli-adapter.js +0 -619
  74. package/dist/cli/fsx-cli-adapter.js.map +0 -1
  75. package/dist/cli/index.d.ts +0 -387
  76. package/dist/cli/index.d.ts.map +0 -1
  77. package/dist/cli/index.js +0 -579
  78. package/dist/cli/index.js.map +0 -1
  79. package/dist/cli/ui/components/DiffView.d.ts +0 -12
  80. package/dist/cli/ui/components/DiffView.d.ts.map +0 -1
  81. package/dist/cli/ui/components/DiffView.js +0 -11
  82. package/dist/cli/ui/components/DiffView.js.map +0 -1
  83. package/dist/cli/ui/components/ErrorDisplay.d.ts +0 -10
  84. package/dist/cli/ui/components/ErrorDisplay.d.ts.map +0 -1
  85. package/dist/cli/ui/components/ErrorDisplay.js +0 -11
  86. package/dist/cli/ui/components/ErrorDisplay.js.map +0 -1
  87. package/dist/cli/ui/components/FuzzySearch.d.ts +0 -15
  88. package/dist/cli/ui/components/FuzzySearch.d.ts.map +0 -1
  89. package/dist/cli/ui/components/FuzzySearch.js +0 -12
  90. package/dist/cli/ui/components/FuzzySearch.js.map +0 -1
  91. package/dist/cli/ui/components/LoadingSpinner.d.ts +0 -10
  92. package/dist/cli/ui/components/LoadingSpinner.d.ts.map +0 -1
  93. package/dist/cli/ui/components/LoadingSpinner.js +0 -10
  94. package/dist/cli/ui/components/LoadingSpinner.js.map +0 -1
  95. package/dist/cli/ui/components/NavigationList.d.ts +0 -14
  96. package/dist/cli/ui/components/NavigationList.d.ts.map +0 -1
  97. package/dist/cli/ui/components/NavigationList.js +0 -11
  98. package/dist/cli/ui/components/NavigationList.js.map +0 -1
  99. package/dist/cli/ui/components/ScrollableContent.d.ts +0 -13
  100. package/dist/cli/ui/components/ScrollableContent.d.ts.map +0 -1
  101. package/dist/cli/ui/components/ScrollableContent.js +0 -11
  102. package/dist/cli/ui/components/ScrollableContent.js.map +0 -1
  103. package/dist/cli/ui/components/index.d.ts +0 -7
  104. package/dist/cli/ui/components/index.d.ts.map +0 -1
  105. package/dist/cli/ui/components/index.js +0 -9
  106. package/dist/cli/ui/components/index.js.map +0 -1
  107. package/dist/cli/ui/terminal-ui.d.ts +0 -85
  108. package/dist/cli/ui/terminal-ui.d.ts.map +0 -1
  109. package/dist/cli/ui/terminal-ui.js +0 -121
  110. package/dist/cli/ui/terminal-ui.js.map +0 -1
  111. package/dist/do/BashModule.d.ts +0 -871
  112. package/dist/do/BashModule.d.ts.map +0 -1
  113. package/dist/do/BashModule.js +0 -1143
  114. package/dist/do/BashModule.js.map +0 -1
  115. package/dist/do/FsModule.d.ts +0 -612
  116. package/dist/do/FsModule.d.ts.map +0 -1
  117. package/dist/do/FsModule.js +0 -1120
  118. package/dist/do/FsModule.js.map +0 -1
  119. package/dist/do/GitModule.d.ts +0 -635
  120. package/dist/do/GitModule.d.ts.map +0 -1
  121. package/dist/do/GitModule.js +0 -784
  122. package/dist/do/GitModule.js.map +0 -1
  123. package/dist/do/GitRepoDO.d.ts +0 -281
  124. package/dist/do/GitRepoDO.d.ts.map +0 -1
  125. package/dist/do/GitRepoDO.js +0 -479
  126. package/dist/do/GitRepoDO.js.map +0 -1
  127. package/dist/do/bash-ast.d.ts +0 -246
  128. package/dist/do/bash-ast.d.ts.map +0 -1
  129. package/dist/do/bash-ast.js +0 -888
  130. package/dist/do/bash-ast.js.map +0 -1
  131. package/dist/do/container-executor.d.ts +0 -491
  132. package/dist/do/container-executor.d.ts.map +0 -1
  133. package/dist/do/container-executor.js +0 -731
  134. package/dist/do/container-executor.js.map +0 -1
  135. package/dist/do/index.d.ts +0 -53
  136. package/dist/do/index.d.ts.map +0 -1
  137. package/dist/do/index.js +0 -91
  138. package/dist/do/index.js.map +0 -1
  139. package/dist/do/tiered-storage.d.ts +0 -403
  140. package/dist/do/tiered-storage.d.ts.map +0 -1
  141. package/dist/do/tiered-storage.js +0 -689
  142. package/dist/do/tiered-storage.js.map +0 -1
  143. package/dist/do/withBash.d.ts +0 -231
  144. package/dist/do/withBash.d.ts.map +0 -1
  145. package/dist/do/withBash.js +0 -244
  146. package/dist/do/withBash.js.map +0 -1
  147. package/dist/do/withFs.d.ts +0 -237
  148. package/dist/do/withFs.d.ts.map +0 -1
  149. package/dist/do/withFs.js +0 -387
  150. package/dist/do/withFs.js.map +0 -1
  151. package/dist/do/withGit.d.ts +0 -180
  152. package/dist/do/withGit.d.ts.map +0 -1
  153. package/dist/do/withGit.js +0 -271
  154. package/dist/do/withGit.js.map +0 -1
  155. package/dist/durable-object/object-store.d.ts +0 -633
  156. package/dist/durable-object/object-store.d.ts.map +0 -1
  157. package/dist/durable-object/object-store.js +0 -1164
  158. package/dist/durable-object/object-store.js.map +0 -1
  159. package/dist/durable-object/schema.d.ts.map +0 -1
  160. package/dist/durable-object/schema.js.map +0 -1
  161. package/dist/durable-object/wal.d.ts +0 -416
  162. package/dist/durable-object/wal.d.ts.map +0 -1
  163. package/dist/durable-object/wal.js +0 -445
  164. package/dist/durable-object/wal.js.map +0 -1
  165. package/dist/mcp/adapter.d.ts +0 -772
  166. package/dist/mcp/adapter.d.ts.map +0 -1
  167. package/dist/mcp/adapter.js +0 -895
  168. package/dist/mcp/adapter.js.map +0 -1
  169. package/dist/mcp/sandbox/miniflare-evaluator.d.ts +0 -22
  170. package/dist/mcp/sandbox/miniflare-evaluator.d.ts.map +0 -1
  171. package/dist/mcp/sandbox/miniflare-evaluator.js +0 -140
  172. package/dist/mcp/sandbox/miniflare-evaluator.js.map +0 -1
  173. package/dist/mcp/sandbox/object-store-proxy.d.ts +0 -32
  174. package/dist/mcp/sandbox/object-store-proxy.d.ts.map +0 -1
  175. package/dist/mcp/sandbox/object-store-proxy.js +0 -30
  176. package/dist/mcp/sandbox/object-store-proxy.js.map +0 -1
  177. package/dist/mcp/sandbox/template.d.ts +0 -17
  178. package/dist/mcp/sandbox/template.d.ts.map +0 -1
  179. package/dist/mcp/sandbox/template.js +0 -71
  180. package/dist/mcp/sandbox/template.js.map +0 -1
  181. package/dist/mcp/sandbox.d.ts +0 -764
  182. package/dist/mcp/sandbox.d.ts.map +0 -1
  183. package/dist/mcp/sandbox.js +0 -1362
  184. package/dist/mcp/sandbox.js.map +0 -1
  185. package/dist/mcp/sdk-adapter.d.ts +0 -835
  186. package/dist/mcp/sdk-adapter.d.ts.map +0 -1
  187. package/dist/mcp/sdk-adapter.js +0 -974
  188. package/dist/mcp/sdk-adapter.js.map +0 -1
  189. package/dist/mcp/tools/do.d.ts +0 -32
  190. package/dist/mcp/tools/do.d.ts.map +0 -1
  191. package/dist/mcp/tools/do.js +0 -117
  192. package/dist/mcp/tools/do.js.map +0 -1
  193. package/dist/mcp/tools.d.ts +0 -548
  194. package/dist/mcp/tools.d.ts.map +0 -1
  195. package/dist/mcp/tools.js +0 -3170
  196. package/dist/mcp/tools.js.map +0 -1
  197. package/dist/ops/blame.d.ts +0 -551
  198. package/dist/ops/blame.d.ts.map +0 -1
  199. package/dist/ops/blame.js +0 -1037
  200. package/dist/ops/blame.js.map +0 -1
  201. package/dist/ops/branch.d.ts +0 -766
  202. package/dist/ops/branch.d.ts.map +0 -1
  203. package/dist/ops/branch.js +0 -950
  204. package/dist/ops/branch.js.map +0 -1
  205. package/dist/ops/commit-traversal.d.ts +0 -349
  206. package/dist/ops/commit-traversal.d.ts.map +0 -1
  207. package/dist/ops/commit-traversal.js +0 -821
  208. package/dist/ops/commit-traversal.js.map +0 -1
  209. package/dist/ops/commit.d.ts +0 -555
  210. package/dist/ops/commit.d.ts.map +0 -1
  211. package/dist/ops/commit.js +0 -826
  212. package/dist/ops/commit.js.map +0 -1
  213. package/dist/ops/merge-base.d.ts +0 -397
  214. package/dist/ops/merge-base.d.ts.map +0 -1
  215. package/dist/ops/merge-base.js +0 -691
  216. package/dist/ops/merge-base.js.map +0 -1
  217. package/dist/ops/merge.d.ts +0 -855
  218. package/dist/ops/merge.d.ts.map +0 -1
  219. package/dist/ops/merge.js +0 -1551
  220. package/dist/ops/merge.js.map +0 -1
  221. package/dist/ops/tag.d.ts +0 -247
  222. package/dist/ops/tag.d.ts.map +0 -1
  223. package/dist/ops/tag.js +0 -649
  224. package/dist/ops/tag.js.map +0 -1
  225. package/dist/ops/tree-builder.d.ts +0 -178
  226. package/dist/ops/tree-builder.d.ts.map +0 -1
  227. package/dist/ops/tree-builder.js +0 -271
  228. package/dist/ops/tree-builder.js.map +0 -1
  229. package/dist/ops/tree-diff.d.ts +0 -291
  230. package/dist/ops/tree-diff.d.ts.map +0 -1
  231. package/dist/ops/tree-diff.js +0 -705
  232. package/dist/ops/tree-diff.js.map +0 -1
  233. package/dist/pack/delta.d.ts +0 -248
  234. package/dist/pack/delta.d.ts.map +0 -1
  235. package/dist/pack/delta.js +0 -740
  236. package/dist/pack/delta.js.map +0 -1
  237. package/dist/pack/format.d.ts +0 -446
  238. package/dist/pack/format.d.ts.map +0 -1
  239. package/dist/pack/format.js +0 -572
  240. package/dist/pack/format.js.map +0 -1
  241. package/dist/pack/full-generation.d.ts +0 -612
  242. package/dist/pack/full-generation.d.ts.map +0 -1
  243. package/dist/pack/full-generation.js +0 -1378
  244. package/dist/pack/full-generation.js.map +0 -1
  245. package/dist/pack/generation.d.ts +0 -441
  246. package/dist/pack/generation.d.ts.map +0 -1
  247. package/dist/pack/generation.js +0 -707
  248. package/dist/pack/generation.js.map +0 -1
  249. package/dist/pack/index.d.ts +0 -502
  250. package/dist/pack/index.d.ts.map +0 -1
  251. package/dist/pack/index.js +0 -833
  252. package/dist/pack/index.js.map +0 -1
  253. package/dist/refs/branch.d.ts +0 -683
  254. package/dist/refs/branch.d.ts.map +0 -1
  255. package/dist/refs/branch.js +0 -881
  256. package/dist/refs/branch.js.map +0 -1
  257. package/dist/refs/storage.d.ts +0 -833
  258. package/dist/refs/storage.d.ts.map +0 -1
  259. package/dist/refs/storage.js +0 -1023
  260. package/dist/refs/storage.js.map +0 -1
  261. package/dist/refs/tag.d.ts +0 -860
  262. package/dist/refs/tag.d.ts.map +0 -1
  263. package/dist/refs/tag.js +0 -996
  264. package/dist/refs/tag.js.map +0 -1
  265. package/dist/storage/backend.d.ts +0 -425
  266. package/dist/storage/backend.d.ts.map +0 -1
  267. package/dist/storage/backend.js +0 -41
  268. package/dist/storage/backend.js.map +0 -1
  269. package/dist/storage/fsx-adapter.d.ts +0 -204
  270. package/dist/storage/fsx-adapter.d.ts.map +0 -1
  271. package/dist/storage/fsx-adapter.js +0 -518
  272. package/dist/storage/fsx-adapter.js.map +0 -1
  273. package/dist/storage/lru-cache.d.ts +0 -691
  274. package/dist/storage/lru-cache.d.ts.map +0 -1
  275. package/dist/storage/lru-cache.js +0 -813
  276. package/dist/storage/lru-cache.js.map +0 -1
  277. package/dist/storage/object-index.d.ts +0 -585
  278. package/dist/storage/object-index.d.ts.map +0 -1
  279. package/dist/storage/object-index.js +0 -532
  280. package/dist/storage/object-index.js.map +0 -1
  281. package/dist/storage/r2-pack.d.ts +0 -1257
  282. package/dist/storage/r2-pack.d.ts.map +0 -1
  283. package/dist/storage/r2-pack.js +0 -1773
  284. package/dist/storage/r2-pack.js.map +0 -1
  285. package/dist/tiered/cdc-pipeline.d.ts +0 -1888
  286. package/dist/tiered/cdc-pipeline.d.ts.map +0 -1
  287. package/dist/tiered/cdc-pipeline.js +0 -1880
  288. package/dist/tiered/cdc-pipeline.js.map +0 -1
  289. package/dist/tiered/migration.d.ts +0 -1104
  290. package/dist/tiered/migration.d.ts.map +0 -1
  291. package/dist/tiered/migration.js +0 -1217
  292. package/dist/tiered/migration.js.map +0 -1
  293. package/dist/tiered/parquet-writer.d.ts +0 -1145
  294. package/dist/tiered/parquet-writer.d.ts.map +0 -1
  295. package/dist/tiered/parquet-writer.js +0 -1183
  296. package/dist/tiered/parquet-writer.js.map +0 -1
  297. package/dist/tiered/read-path.d.ts +0 -835
  298. package/dist/tiered/read-path.d.ts.map +0 -1
  299. package/dist/tiered/read-path.js +0 -487
  300. package/dist/tiered/read-path.js.map +0 -1
  301. package/dist/types/capability.d.ts +0 -1385
  302. package/dist/types/capability.d.ts.map +0 -1
  303. package/dist/types/capability.js +0 -36
  304. package/dist/types/capability.js.map +0 -1
  305. package/dist/types/index.d.ts +0 -13
  306. package/dist/types/index.d.ts.map +0 -1
  307. package/dist/types/index.js +0 -18
  308. package/dist/types/index.js.map +0 -1
  309. package/dist/types/interfaces.d.ts +0 -673
  310. package/dist/types/interfaces.d.ts.map +0 -1
  311. package/dist/types/interfaces.js +0 -26
  312. package/dist/types/interfaces.js.map +0 -1
  313. package/dist/types/objects.d.ts +0 -692
  314. package/dist/types/objects.d.ts.map +0 -1
  315. package/dist/types/objects.js +0 -837
  316. package/dist/types/objects.js.map +0 -1
  317. package/dist/types/storage.d.ts +0 -603
  318. package/dist/types/storage.d.ts.map +0 -1
  319. package/dist/types/storage.js +0 -191
  320. package/dist/types/storage.js.map +0 -1
  321. package/dist/types/worker-loader.d.ts +0 -60
  322. package/dist/types/worker-loader.d.ts.map +0 -1
  323. package/dist/types/worker-loader.js +0 -62
  324. package/dist/types/worker-loader.js.map +0 -1
  325. package/dist/utils/hash.d.ts +0 -198
  326. package/dist/utils/hash.d.ts.map +0 -1
  327. package/dist/utils/hash.js +0 -272
  328. package/dist/utils/hash.js.map +0 -1
  329. package/dist/utils/sha1.d.ts +0 -325
  330. package/dist/utils/sha1.d.ts.map +0 -1
  331. package/dist/utils/sha1.js +0 -635
  332. package/dist/utils/sha1.js.map +0 -1
  333. package/dist/wire/capabilities.d.ts +0 -1044
  334. package/dist/wire/capabilities.d.ts.map +0 -1
  335. package/dist/wire/capabilities.js +0 -941
  336. package/dist/wire/capabilities.js.map +0 -1
  337. package/dist/wire/path-security.d.ts +0 -157
  338. package/dist/wire/path-security.d.ts.map +0 -1
  339. package/dist/wire/path-security.js +0 -307
  340. package/dist/wire/path-security.js.map +0 -1
  341. package/dist/wire/pkt-line.d.ts +0 -345
  342. package/dist/wire/pkt-line.d.ts.map +0 -1
  343. package/dist/wire/pkt-line.js +0 -381
  344. package/dist/wire/pkt-line.js.map +0 -1
  345. package/dist/wire/receive-pack.d.ts +0 -1059
  346. package/dist/wire/receive-pack.d.ts.map +0 -1
  347. package/dist/wire/receive-pack.js +0 -1414
  348. package/dist/wire/receive-pack.js.map +0 -1
  349. package/dist/wire/smart-http.d.ts +0 -799
  350. package/dist/wire/smart-http.d.ts.map +0 -1
  351. package/dist/wire/smart-http.js +0 -945
  352. package/dist/wire/smart-http.js.map +0 -1
  353. package/dist/wire/upload-pack.d.ts +0 -727
  354. package/dist/wire/upload-pack.d.ts.map +0 -1
  355. package/dist/wire/upload-pack.js +0 -1141
  356. package/dist/wire/upload-pack.js.map +0 -1
@@ -1,673 +0,0 @@
1
- /**
2
- * @fileoverview Consolidated Interface Types
3
- *
4
- * This module provides common interface types used across the gitx.do codebase,
5
- * including storage interfaces, R2 bucket types, and workflow context interfaces.
6
- * These interfaces serve as the foundation for DO integration modules.
7
- *
8
- * @module types/interfaces
9
- *
10
- * @example
11
- * ```typescript
12
- * import type { SqlStorage, R2BucketLike, WorkflowContext } from 'gitx.do/types'
13
- *
14
- * // Use in a Durable Object context
15
- * class MyDO {
16
- * private storage: SqlStorage
17
- * private r2: R2BucketLike
18
- *
19
- * constructor(state: DurableObjectState) {
20
- * this.storage = state.storage
21
- * }
22
- * }
23
- * ```
24
- */
25
- /**
26
- * SQL execution result interface.
27
- *
28
- * @description
29
- * Represents the result of executing a SQL query. The result can be
30
- * converted to an array of row objects using the toArray() method.
31
- *
32
- * @example
33
- * ```typescript
34
- * const result = storage.sql.exec('SELECT * FROM objects WHERE sha = ?', sha)
35
- * const rows = result.toArray()
36
- * ```
37
- */
38
- export interface SqlResult {
39
- /**
40
- * Convert the result to an array of row objects.
41
- * @returns Array of row objects matching the query
42
- */
43
- toArray(): unknown[];
44
- }
45
- /**
46
- * SQL execution interface.
47
- *
48
- * @description
49
- * Provides access to SQLite query execution within a Durable Object.
50
- * Supports parameterized queries using ? placeholders.
51
- *
52
- * @example
53
- * ```typescript
54
- * const result = storage.sql.exec(
55
- * 'INSERT INTO objects (sha, type, data) VALUES (?, ?, ?)',
56
- * sha, 'blob', data
57
- * )
58
- * ```
59
- */
60
- export interface SqlExec {
61
- /**
62
- * Execute a SQL query with optional parameters.
63
- *
64
- * @param query - SQL query string (can use ? placeholders)
65
- * @param params - Parameter values for placeholders
66
- * @returns Result object with toArray() method for reading rows
67
- */
68
- exec(query: string, ...params: unknown[]): SqlResult;
69
- }
70
- /**
71
- * SQL storage interface for Durable Object storage.
72
- *
73
- * @description
74
- * Abstraction over Cloudflare's Durable Object storage that provides
75
- * SQLite access. This interface is used by modules that need database
76
- * persistence within a DO.
77
- *
78
- * @example
79
- * ```typescript
80
- * class GitModule {
81
- * constructor(private storage: SqlStorage) {}
82
- *
83
- * async getCommit(sha: string) {
84
- * const result = this.storage.sql.exec(
85
- * 'SELECT * FROM objects WHERE sha = ? AND type = ?',
86
- * sha, 'commit'
87
- * )
88
- * return result.toArray()[0]
89
- * }
90
- * }
91
- * ```
92
- */
93
- export interface SqlStorage {
94
- /**
95
- * SQL execution interface.
96
- */
97
- sql: SqlExec;
98
- }
99
- /**
100
- * R2 object interface.
101
- *
102
- * @description
103
- * Represents a single object stored in R2 (Cloudflare's object storage).
104
- * Provides methods to access the object's content as binary data or text.
105
- *
106
- * @example
107
- * ```typescript
108
- * const obj = await r2.get('git/objects/ab/cdef...')
109
- * if (obj) {
110
- * const data = await obj.arrayBuffer()
111
- * console.log(`Object size: ${obj.size} bytes`)
112
- * }
113
- * ```
114
- */
115
- export interface R2ObjectLike {
116
- /** Object key (path in the bucket) */
117
- key: string;
118
- /** Object size in bytes */
119
- size: number;
120
- /**
121
- * Get the object content as an ArrayBuffer.
122
- * @returns Promise resolving to the binary content
123
- */
124
- arrayBuffer(): Promise<ArrayBuffer>;
125
- /**
126
- * Get the object content as a UTF-8 string.
127
- * @returns Promise resolving to the text content
128
- */
129
- text(): Promise<string>;
130
- }
131
- /**
132
- * R2 objects list result interface.
133
- *
134
- * @description
135
- * Represents the result of listing objects in an R2 bucket.
136
- * Supports pagination through the truncated flag and cursor.
137
- *
138
- * @example
139
- * ```typescript
140
- * let cursor: string | undefined
141
- * do {
142
- * const result = await r2.list({ prefix: 'git/objects/', cursor })
143
- * for (const obj of result.objects) {
144
- * console.log(obj.key)
145
- * }
146
- * cursor = result.truncated ? result.cursor : undefined
147
- * } while (cursor)
148
- * ```
149
- */
150
- export interface R2ObjectsLike {
151
- /** Array of object references */
152
- objects: R2ObjectLike[];
153
- /** Whether there are more objects to fetch */
154
- truncated: boolean;
155
- /** Cursor for fetching the next page of results */
156
- cursor?: string;
157
- /** Delimited prefixes (for directory-like listing) */
158
- delimitedPrefixes?: string[];
159
- }
160
- /**
161
- * R2 put options interface.
162
- *
163
- * @description
164
- * Options for putting objects into R2 storage.
165
- */
166
- export interface R2PutOptions {
167
- /** Content-Type header for the object */
168
- httpMetadata?: {
169
- contentType?: string;
170
- contentLanguage?: string;
171
- contentDisposition?: string;
172
- contentEncoding?: string;
173
- cacheControl?: string;
174
- cacheExpiry?: Date;
175
- };
176
- /** Custom metadata for the object */
177
- customMetadata?: Record<string, string>;
178
- /** MD5 hash for integrity verification */
179
- md5?: ArrayBuffer | string;
180
- /** SHA-1 hash for integrity verification */
181
- sha1?: ArrayBuffer | string;
182
- /** SHA-256 hash for integrity verification */
183
- sha256?: ArrayBuffer | string;
184
- /** SHA-384 hash for integrity verification */
185
- sha384?: ArrayBuffer | string;
186
- /** SHA-512 hash for integrity verification */
187
- sha512?: ArrayBuffer | string;
188
- /** Storage class for the object */
189
- storageClass?: 'Standard' | 'InfrequentAccess';
190
- }
191
- /**
192
- * R2 bucket interface for object storage operations.
193
- *
194
- * @description
195
- * Represents an R2 bucket with methods for CRUD operations on objects.
196
- * Used as the global git object store across DOs.
197
- *
198
- * @example
199
- * ```typescript
200
- * // Store a git object
201
- * const sha = 'abc123...'
202
- * const key = `git/objects/${sha.slice(0, 2)}/${sha.slice(2)}`
203
- * await r2.put(key, objectData)
204
- *
205
- * // Retrieve a git object
206
- * const obj = await r2.get(key)
207
- * if (obj) {
208
- * const data = await obj.arrayBuffer()
209
- * }
210
- * ```
211
- */
212
- export interface R2BucketLike {
213
- /**
214
- * Get an object from the bucket.
215
- * @param key - Object key
216
- * @returns Promise resolving to the object, or null if not found
217
- */
218
- get(key: string): Promise<R2ObjectLike | null>;
219
- /**
220
- * Put an object into the bucket.
221
- * @param key - Object key
222
- * @param value - Object content (binary data or string)
223
- * @param options - Optional put options
224
- * @returns Promise resolving to the stored object reference
225
- */
226
- put(key: string, value: ArrayBuffer | Uint8Array | string | ReadableStream | Blob, options?: R2PutOptions): Promise<R2ObjectLike>;
227
- /**
228
- * Delete one or more objects from the bucket.
229
- * @param key - Object key or array of keys to delete
230
- */
231
- delete(key: string | string[]): Promise<void>;
232
- /**
233
- * List objects in the bucket.
234
- * @param options - List options (prefix, limit, cursor, delimiter)
235
- * @returns Promise resolving to the list result
236
- */
237
- list(options?: {
238
- prefix?: string;
239
- limit?: number;
240
- cursor?: string;
241
- delimiter?: string;
242
- include?: string[];
243
- }): Promise<R2ObjectsLike>;
244
- /**
245
- * Check if an object exists in the bucket.
246
- * @param key - Object key
247
- * @returns Promise resolving to object metadata, or null if not found
248
- */
249
- head?(key: string): Promise<R2ObjectLike | null>;
250
- }
251
- /**
252
- * KV namespace interface for key-value storage.
253
- *
254
- * @description
255
- * Represents a Cloudflare KV namespace for simple key-value operations.
256
- * Used for caching and lightweight data storage.
257
- *
258
- * @example
259
- * ```typescript
260
- * // Store a value
261
- * await kv.put('user:123', JSON.stringify({ name: 'Alice' }))
262
- *
263
- * // Retrieve a value
264
- * const data = await kv.get('user:123')
265
- * if (data) {
266
- * const user = JSON.parse(data)
267
- * }
268
- * ```
269
- */
270
- export interface KVNamespaceLike {
271
- /**
272
- * Get a value from KV.
273
- * @param key - Key to look up
274
- * @param options - Optional read options
275
- * @returns Promise resolving to the value, or null if not found
276
- */
277
- get(key: string, options?: {
278
- type?: 'text' | 'json' | 'arrayBuffer' | 'stream';
279
- }): Promise<string | null>;
280
- /**
281
- * Put a value into KV.
282
- * @param key - Key to store under
283
- * @param value - Value to store
284
- * @param options - Optional write options (expiration, metadata)
285
- */
286
- put(key: string, value: string | ArrayBuffer | ReadableStream, options?: {
287
- expiration?: number;
288
- expirationTtl?: number;
289
- metadata?: unknown;
290
- }): Promise<void>;
291
- /**
292
- * Delete a value from KV.
293
- * @param key - Key to delete
294
- */
295
- delete(key: string): Promise<void>;
296
- /**
297
- * List keys in KV.
298
- * @param options - List options (prefix, limit, cursor)
299
- * @returns Promise resolving to the list result
300
- */
301
- list(options?: {
302
- prefix?: string;
303
- limit?: number;
304
- cursor?: string;
305
- }): Promise<{
306
- keys: Array<{
307
- name: string;
308
- expiration?: number;
309
- metadata?: unknown;
310
- }>;
311
- list_complete: boolean;
312
- cursor?: string;
313
- }>;
314
- }
315
- /**
316
- * Durable Object ID interface.
317
- *
318
- * @description
319
- * Represents a unique identifier for a Durable Object instance.
320
- */
321
- export interface DurableObjectId {
322
- /** String representation of the ID */
323
- toString(): string;
324
- /** Check if two IDs are equal */
325
- equals(other: DurableObjectId): boolean;
326
- }
327
- /**
328
- * Durable Object stub interface.
329
- *
330
- * @description
331
- * A stub for communicating with a Durable Object instance.
332
- * Used to send HTTP requests to a DO.
333
- *
334
- * @example
335
- * ```typescript
336
- * const id = env.DO_NAMESPACE.idFromName('my-repo')
337
- * const stub = env.DO_NAMESPACE.get(id)
338
- * const response = await stub.fetch(request)
339
- * ```
340
- */
341
- export interface DurableObjectStub {
342
- /**
343
- * Send an HTTP request to the Durable Object.
344
- * @param request - Request object or URL string
345
- * @param init - Optional request init
346
- * @returns Promise resolving to the response
347
- */
348
- fetch(request: Request | string, init?: RequestInit): Promise<Response>;
349
- /** The ID of this Durable Object */
350
- id: DurableObjectId;
351
- /** Name of the Durable Object (if created with idFromName) */
352
- name?: string;
353
- }
354
- /**
355
- * Durable Object namespace interface.
356
- *
357
- * @description
358
- * Provides methods for creating IDs and getting stubs to Durable Objects.
359
- *
360
- * @example
361
- * ```typescript
362
- * // Get a DO by name
363
- * const id = env.DO_NAMESPACE.idFromName('repo/my-repo')
364
- * const stub = env.DO_NAMESPACE.get(id)
365
- *
366
- * // Create a new unique DO
367
- * const newId = env.DO_NAMESPACE.newUniqueId()
368
- * const newStub = env.DO_NAMESPACE.get(newId)
369
- * ```
370
- */
371
- export interface DurableObjectNamespace {
372
- /**
373
- * Create an ID from a name (deterministic).
374
- * @param name - String name to derive ID from
375
- * @returns The Durable Object ID
376
- */
377
- idFromName(name: string): DurableObjectId;
378
- /**
379
- * Parse an ID from its string representation.
380
- * @param id - String representation of the ID
381
- * @returns The Durable Object ID
382
- */
383
- idFromString(id: string): DurableObjectId;
384
- /**
385
- * Create a new unique ID.
386
- * @param options - Optional creation options (locationHint)
387
- * @returns A new unique Durable Object ID
388
- */
389
- newUniqueId(options?: {
390
- locationHint?: string;
391
- }): DurableObjectId;
392
- /**
393
- * Get a stub for communicating with a Durable Object.
394
- * @param id - The Durable Object ID
395
- * @returns A stub for making requests to the DO
396
- */
397
- get(id: DurableObjectId): DurableObjectStub;
398
- /**
399
- * Get jurisdiction-restricted ID from name.
400
- * @param name - String name to derive ID from
401
- * @param options - Jurisdiction options
402
- * @returns The Durable Object ID
403
- */
404
- jurisdiction?(name: string, options: {
405
- jurisdiction: string;
406
- }): DurableObjectId;
407
- }
408
- /**
409
- * Durable Object state interface.
410
- *
411
- * @description
412
- * The state object passed to a Durable Object constructor.
413
- * Provides access to storage, ID, and lifecycle methods.
414
- *
415
- * @example
416
- * ```typescript
417
- * class MyDO implements DurableObject {
418
- * constructor(private state: DurableObjectState, private env: Env) {
419
- * // Access storage
420
- * const data = this.state.storage.sql.exec('SELECT * FROM table')
421
- * }
422
- * }
423
- * ```
424
- */
425
- export interface DurableObjectState {
426
- /** The unique ID of this Durable Object */
427
- id: DurableObjectId;
428
- /** Storage interface with SQL and key-value access */
429
- storage: SqlStorage & {
430
- get(key: string): Promise<unknown>;
431
- put(key: string, value: unknown): Promise<void>;
432
- delete(key: string): Promise<boolean>;
433
- list(options?: {
434
- prefix?: string;
435
- }): Promise<Map<string, unknown>>;
436
- setAlarm(scheduledTime: number | Date): Promise<void>;
437
- getAlarm(): Promise<number | null>;
438
- deleteAlarm(): Promise<void>;
439
- };
440
- /**
441
- * Block concurrent requests until callback completes.
442
- * Used for initialization that must complete before handling requests.
443
- * @param callback - Async function to execute
444
- */
445
- blockConcurrencyWhile<T>(callback: () => Promise<T>): Promise<T>;
446
- /**
447
- * Extend the lifetime of the DO to complete async work.
448
- * @param promise - Promise to wait for
449
- */
450
- waitUntil(promise: Promise<unknown>): void;
451
- /**
452
- * Accept websocket connections.
453
- * @param ws - WebSocket to accept
454
- * @param tags - Optional tags for the connection
455
- */
456
- acceptWebSocket?(ws: WebSocket, tags?: string[]): void;
457
- /**
458
- * Get all accepted websockets.
459
- * @param tag - Optional tag filter
460
- * @returns Array of accepted WebSockets
461
- */
462
- getWebSockets?(tag?: string): WebSocket[];
463
- }
464
- /**
465
- * Event handler registration interface.
466
- *
467
- * @description
468
- * Provides a proxy interface for registering event handlers using
469
- * the pattern $.on.Noun.verb(handler).
470
- *
471
- * @example
472
- * ```typescript
473
- * // Register event handlers
474
- * $.on.User.created((user) => console.log('User created:', user))
475
- * $.on.Order.completed((order) => processOrder(order))
476
- * ```
477
- */
478
- export type EventHandlerProxy = {
479
- [noun: string]: {
480
- [verb: string]: (handler: (data: unknown) => void | Promise<void>) => void;
481
- };
482
- };
483
- /**
484
- * Schedule builder interface.
485
- *
486
- * @description
487
- * Provides a proxy interface for scheduling recurring tasks using
488
- * natural language patterns like $.every.monday.at('9am').
489
- *
490
- * @example
491
- * ```typescript
492
- * // Schedule recurring tasks
493
- * $.every.monday.at('9am')(() => sendWeeklyReport())
494
- * $.every.hour.at('30')(() => cleanupTempFiles())
495
- * ```
496
- */
497
- export type ScheduleProxy = {
498
- [schedule: string]: {
499
- at: (time: string) => (handler: () => void | Promise<void>) => void;
500
- };
501
- };
502
- /**
503
- * Workflow context interface (the $ API).
504
- *
505
- * @description
506
- * The main workflow context interface providing the $ API pattern
507
- * used throughout dotdo. Includes messaging (send/try/do), event
508
- * handling (on), and scheduling (every).
509
- *
510
- * @example
511
- * ```typescript
512
- * class MyDO extends DO {
513
- * async handleRequest() {
514
- * // Fire-and-forget
515
- * this.$.send('user.created', { id: '123' })
516
- *
517
- * // Quick attempt
518
- * const result = await this.$.try('validate', data)
519
- *
520
- * // Durable execution
521
- * await this.$.do('process', data)
522
- * }
523
- * }
524
- * ```
525
- */
526
- export interface WorkflowContext {
527
- /**
528
- * Fire-and-forget event dispatch.
529
- * Queues an event for async processing without waiting.
530
- * @param event - Event name
531
- * @param data - Optional event data
532
- */
533
- send(event: string, data?: unknown): void;
534
- /**
535
- * Quick attempt (blocking, non-durable).
536
- * Executes an action directly without persistence.
537
- * @param action - Action name
538
- * @param data - Optional action data
539
- * @returns Promise resolving to the action result
540
- */
541
- try<T>(action: string, data?: unknown): Promise<T>;
542
- /**
543
- * Durable execution with retries.
544
- * Stores the action for durability and executes with retry logic.
545
- * @param action - Action name
546
- * @param data - Optional action data
547
- * @returns Promise resolving to the action result
548
- */
549
- do<T>(action: string, data?: unknown): Promise<T>;
550
- /**
551
- * Event handler registration proxy.
552
- * Use as $.on.Noun.verb(handler).
553
- */
554
- on: EventHandlerProxy;
555
- /**
556
- * Schedule builder proxy.
557
- * Use as $.every.schedule.at('time')(handler).
558
- */
559
- every: ScheduleProxy;
560
- /**
561
- * Allow additional dynamic properties for domain proxies.
562
- * Supports patterns like $.User('id').method().
563
- */
564
- [key: string]: unknown;
565
- }
566
- /**
567
- * Base module interface.
568
- *
569
- * @description
570
- * Common interface for all DO modules (GitModule, FsModule, BashModule).
571
- * Provides lifecycle methods and a module name identifier.
572
- *
573
- * @example
574
- * ```typescript
575
- * class MyModule implements Module {
576
- * readonly name = 'my-module'
577
- *
578
- * async initialize() {
579
- * // Setup module
580
- * }
581
- *
582
- * async dispose() {
583
- * // Cleanup resources
584
- * }
585
- * }
586
- * ```
587
- */
588
- export interface Module {
589
- /** Module name identifier */
590
- readonly name: string;
591
- /**
592
- * Initialize the module.
593
- * Called when the DO is first activated.
594
- */
595
- initialize?(): Promise<void>;
596
- /**
597
- * Dispose the module.
598
- * Called when the DO is about to be deactivated.
599
- */
600
- dispose?(): Promise<void>;
601
- }
602
- /**
603
- * Storage-backed module interface.
604
- *
605
- * @description
606
- * Interface for modules that persist state using SQL storage.
607
- * Extends the base Module interface with storage capabilities.
608
- */
609
- export interface StorageBackedModule extends Module {
610
- /**
611
- * Attach storage to the module.
612
- * @param storage - SQL storage interface
613
- */
614
- attachStorage?(storage: SqlStorage): void;
615
- }
616
- /**
617
- * Capability mixin result type.
618
- *
619
- * @description
620
- * Generic type for the result of applying a capability mixin.
621
- * Combines the base class with the capability interface.
622
- *
623
- * @template Base - The base class type
624
- * @template Cap - The capability interface
625
- *
626
- * @example
627
- * ```typescript
628
- * type GitCapableDO = WithCapability<typeof DO, GitCapability>
629
- * ```
630
- */
631
- export type WithCapability<Base, Cap> = Base & Cap;
632
- /**
633
- * Base error class for gitx operations.
634
- *
635
- * @description
636
- * Extends the standard Error with additional context fields
637
- * for better error handling and debugging.
638
- */
639
- export interface GitxError extends Error {
640
- /** Error code for programmatic handling */
641
- code: string;
642
- /** HTTP status code if applicable */
643
- status?: number;
644
- /** Additional context data */
645
- context?: Record<string, unknown>;
646
- }
647
- /**
648
- * Storage error for database operations.
649
- */
650
- export interface StorageError extends GitxError {
651
- code: 'STORAGE_ERROR';
652
- /** The SQL query that failed */
653
- query?: string;
654
- }
655
- /**
656
- * R2 error for object storage operations.
657
- */
658
- export interface R2Error extends GitxError {
659
- code: 'R2_ERROR';
660
- /** The object key involved */
661
- key?: string;
662
- }
663
- /**
664
- * Git error for git operations.
665
- */
666
- export interface GitError extends GitxError {
667
- code: 'GIT_ERROR';
668
- /** The git operation that failed */
669
- operation?: string;
670
- /** The repository involved */
671
- repo?: string;
672
- }
673
- //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/types/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAMH;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,OAAO,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C,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,SAAS;IAC7C,IAAI,EAAE,eAAe,CAAA;IACrB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,WAAW,OAAQ,SAAQ,SAAS;IACxC,IAAI,EAAE,UAAU,CAAA;IAChB,8BAA8B;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED;;GAEG;AACH,MAAM,WAAW,QAAS,SAAQ,SAAS;IACzC,IAAI,EAAE,WAAW,CAAA;IACjB,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd"}
@@ -1,26 +0,0 @@
1
- /**
2
- * @fileoverview Consolidated Interface Types
3
- *
4
- * This module provides common interface types used across the gitx.do codebase,
5
- * including storage interfaces, R2 bucket types, and workflow context interfaces.
6
- * These interfaces serve as the foundation for DO integration modules.
7
- *
8
- * @module types/interfaces
9
- *
10
- * @example
11
- * ```typescript
12
- * import type { SqlStorage, R2BucketLike, WorkflowContext } from 'gitx.do/types'
13
- *
14
- * // Use in a Durable Object context
15
- * class MyDO {
16
- * private storage: SqlStorage
17
- * private r2: R2BucketLike
18
- *
19
- * constructor(state: DurableObjectState) {
20
- * this.storage = state.storage
21
- * }
22
- * }
23
- * ```
24
- */
25
- export {};
26
- //# sourceMappingURL=interfaces.js.map