@liquidmetal-ai/raindrop 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/README.md +327 -89
  2. package/bundle/build-CBEGQPJT.js +62 -0
  3. package/bundle/{chunk-IEF2XC25.js → chunk-2PH3PHH3.js} +5 -3
  4. package/bundle/{chunk-4HZ22KOV.js → chunk-3CMR7ES5.js} +4 -4
  5. package/bundle/{chunk-JSBM2JYW.js → chunk-3EYKCHIK.js} +1 -1
  6. package/bundle/chunk-5XHDP4VK.js +1697 -0
  7. package/bundle/{chunk-TSQK4HH6.js → chunk-674GMSXY.js} +1 -1
  8. package/bundle/{chunk-PS3WZBDF.js → chunk-6L4V66WZ.js} +1105 -2728
  9. package/bundle/{chunk-5245CEUM.js → chunk-AGG7JZVH.js} +2 -2
  10. package/bundle/{chunk-3GFKUF5D.js → chunk-B3IY2XS6.js} +4 -2
  11. package/bundle/{chunk-WIDI65NO.js → chunk-CBAXTRCS.js} +1 -1
  12. package/bundle/{chunk-JLVDTXO2.js → chunk-DPV5HIG7.js} +4 -4
  13. package/bundle/{chunk-36GNZK4A.js → chunk-EVXLXWP7.js} +1 -1
  14. package/bundle/{chunk-4YVU5KEQ.js → chunk-HN3AAKRY.js} +4 -2
  15. package/bundle/{chunk-NVNEQXHN.js → chunk-IGLE4Y3B.js} +7 -5
  16. package/bundle/{chunk-FGSYWVBA.js → chunk-IQ6HFRA6.js} +1 -1
  17. package/bundle/{chunk-O3QZDJ75.js → chunk-JQONDSHY.js} +2 -2
  18. package/bundle/{chunk-W4IPOFZC.js → chunk-KADMFJLN.js} +8 -6
  19. package/bundle/chunk-KG5BLUGU.js +246 -0
  20. package/bundle/{chunk-V5LHJTYS.js → chunk-KLOYSTZY.js} +13 -2
  21. package/bundle/{chunk-ETC5VU7H.js → chunk-KXHVSLAI.js} +1 -1
  22. package/bundle/{chunk-Y4WFGNPM.js → chunk-L6FRQULN.js} +1 -1
  23. package/bundle/{chunk-3QCVYSRU.js → chunk-LT3BFQ4O.js} +1 -1
  24. package/bundle/{chunk-KQZJHBNG.js → chunk-MBLKVNI5.js} +1 -1
  25. package/bundle/{chunk-6AIUQUUM.js → chunk-MFMVJZW6.js} +71 -15
  26. package/bundle/{chunk-25T7MEKO.js → chunk-MJBLNWG3.js} +1 -1
  27. package/bundle/{chunk-MSJ33O5Y.js → chunk-NRCQIE3Z.js} +95 -115
  28. package/bundle/{chunk-XKKPPSPC.js → chunk-OCYTN4IH.js} +2 -2
  29. package/bundle/{chunk-2GAMWFJE.js → chunk-QEF5D4VE.js} +1 -1
  30. package/bundle/{chunk-4B3QYXBA.js → chunk-T7MQCLXF.js} +5 -3
  31. package/bundle/{chunk-LDFYPOXJ.js → chunk-TFQY5TSY.js} +1 -1
  32. package/bundle/{chunk-BWK4MC7Y.js → chunk-USZXZZAR.js} +8 -6
  33. package/bundle/{chunk-ER2RCPCY.js → chunk-V54KHS5B.js} +2 -2
  34. package/bundle/{chunk-YSKASURB.js → chunk-V6J23FL2.js} +1 -1
  35. package/bundle/{chunk-UHSTDJ7X.js → chunk-VN2QYX4C.js} +1 -1
  36. package/bundle/{chunk-Z4OWKG7J.js → chunk-VOT5MMEY.js} +1 -1
  37. package/bundle/{chunk-W6GU26WO.js → chunk-WG6BDFPZ.js} +1 -1
  38. package/bundle/{chunk-AK77X5GL.js → chunk-XX74I5RK.js} +4 -2
  39. package/bundle/{chunk-6BT265R3.js → chunk-YQCRWPNI.js} +1 -1
  40. package/bundle/commands/annotation/get.js +3 -3
  41. package/bundle/commands/annotation/list.js +3 -3
  42. package/bundle/commands/annotation/put.js +3 -3
  43. package/bundle/commands/auth/apikey.js +2 -2
  44. package/bundle/commands/auth/list.js +2 -2
  45. package/bundle/commands/auth/login.js +2 -2
  46. package/bundle/commands/auth/logout.js +2 -2
  47. package/bundle/commands/auth/select.js +3 -3
  48. package/bundle/commands/bucket/create-credential.js +2 -2
  49. package/bundle/commands/bucket/delete-credential.js +2 -2
  50. package/bundle/commands/bucket/get-credential.js +2 -2
  51. package/bundle/commands/bucket/list-credentials.js +2 -2
  52. package/bundle/commands/build/actor/setup.js +124 -0
  53. package/bundle/commands/build/branch.js +10 -10
  54. package/bundle/commands/build/bucket-events/setup.js +146 -0
  55. package/bundle/commands/build/checkout.js +8 -8
  56. package/bundle/commands/build/clone.js +6 -6
  57. package/bundle/commands/build/delete.js +8 -8
  58. package/bundle/commands/build/deploy.js +10 -10
  59. package/bundle/commands/build/env/get.js +3 -3
  60. package/bundle/commands/build/env/list.js +2 -2
  61. package/bundle/commands/build/env/set.js +3 -3
  62. package/bundle/commands/build/env.js +2 -2
  63. package/bundle/commands/build/features.js +192 -0
  64. package/bundle/commands/build/find.js +4 -4
  65. package/bundle/commands/build/generate.js +52 -3
  66. package/bundle/commands/build/init-workspace.js +3 -3
  67. package/bundle/commands/build/init.js +15 -3
  68. package/bundle/commands/build/list.js +5 -5
  69. package/bundle/commands/build/queue/setup.js +133 -0
  70. package/bundle/commands/build/sandbox.js +6 -6
  71. package/bundle/commands/build/smartbucket/setup.js +165 -0
  72. package/bundle/commands/build/smartmemory/setup.js +171 -0
  73. package/bundle/commands/build/smartsql/setup.js +167 -0
  74. package/bundle/commands/build/start.js +2 -2
  75. package/bundle/commands/build/status.js +5 -5
  76. package/bundle/commands/build/stop.js +2 -2
  77. package/bundle/commands/build/stripe/dashboard.js +3 -3
  78. package/bundle/commands/build/stripe/onboard.js +3 -3
  79. package/bundle/commands/build/stripe/setup.js +3 -3
  80. package/bundle/commands/build/stripe/start.js +14 -14
  81. package/bundle/commands/build/stripe/status.js +3 -3
  82. package/bundle/commands/build/stripe/subscription/create.js +4 -4
  83. package/bundle/commands/build/stripe/subscription/get.js +4 -4
  84. package/bundle/commands/build/stripe/subscription/update.js +4 -4
  85. package/bundle/commands/build/tools/check.js +2 -2
  86. package/bundle/commands/build/tools/fmt.js +2 -2
  87. package/bundle/commands/build/unsandbox.js +6 -6
  88. package/bundle/commands/build/upload.js +5 -5
  89. package/bundle/commands/build/validate.js +85 -14
  90. package/bundle/commands/build/workos/delete.js +6 -6
  91. package/bundle/commands/build/workos/env/attach.js +3 -3
  92. package/bundle/commands/build/workos/env/attached.js +3 -3
  93. package/bundle/commands/build/workos/env/create.js +3 -3
  94. package/bundle/commands/build/workos/env/delete.js +3 -3
  95. package/bundle/commands/build/workos/env/detach.js +3 -3
  96. package/bundle/commands/build/workos/env/dev-login.js +3 -3
  97. package/bundle/commands/build/workos/env/get.js +3 -3
  98. package/bundle/commands/build/workos/env/list.js +3 -3
  99. package/bundle/commands/build/workos/env/set.js +3 -3
  100. package/bundle/commands/build/workos/invite.js +3 -3
  101. package/bundle/commands/build/workos/jwt.js +172 -0
  102. package/bundle/commands/build/workos/setup.js +3 -3
  103. package/bundle/commands/build/workos/status.js +3 -3
  104. package/bundle/commands/dns/create.js +2 -2
  105. package/bundle/commands/dns/delete.js +6 -6
  106. package/bundle/commands/dns/get.js +6 -6
  107. package/bundle/commands/dns/list.js +3 -3
  108. package/bundle/commands/dns/records/create.js +2 -2
  109. package/bundle/commands/dns/records/delete.js +3 -3
  110. package/bundle/commands/dns/records/get.js +2 -2
  111. package/bundle/commands/dns/records/list.js +2 -2
  112. package/bundle/commands/dns/records/update.js +2 -2
  113. package/bundle/commands/doctor.js +309 -0
  114. package/bundle/commands/logs/query.js +3 -3
  115. package/bundle/commands/logs/tail.js +3 -3
  116. package/bundle/commands/mcp/install-claude.js +2 -2
  117. package/bundle/commands/mcp/install-gemini.js +2 -2
  118. package/bundle/commands/mcp/install-goose.js +2 -2
  119. package/bundle/commands/mcp/status.js +2 -2
  120. package/bundle/commands/object/delete.js +5 -37
  121. package/bundle/commands/object/get.js +5 -37
  122. package/bundle/commands/object/list.js +7 -39
  123. package/bundle/commands/object/put.js +5 -37
  124. package/bundle/commands/query/chunk-search.js +14 -46
  125. package/bundle/commands/query/document.js +17 -55
  126. package/bundle/commands/query/events.js +2 -2
  127. package/bundle/commands/query/reindex.js +2 -2
  128. package/bundle/commands/query/search.js +14 -46
  129. package/bundle/commands/tail.js +2 -2
  130. package/bundle/index.js +1 -1
  131. package/dist/commands/build/actor/setup.d.ts +22 -0
  132. package/dist/commands/build/actor/setup.d.ts.map +1 -0
  133. package/dist/commands/build/actor/setup.js +116 -0
  134. package/dist/commands/build/bucket-events/setup.d.ts +22 -0
  135. package/dist/commands/build/bucket-events/setup.d.ts.map +1 -0
  136. package/dist/commands/build/bucket-events/setup.js +134 -0
  137. package/dist/commands/build/features.d.ts +19 -0
  138. package/dist/commands/build/features.d.ts.map +1 -0
  139. package/dist/commands/build/features.js +97 -0
  140. package/dist/commands/build/generate.d.ts +2 -0
  141. package/dist/commands/build/generate.d.ts.map +1 -1
  142. package/dist/commands/build/generate.js +52 -0
  143. package/dist/commands/build/init.d.ts.map +1 -1
  144. package/dist/commands/build/init.js +10 -0
  145. package/dist/commands/build/queue/setup.d.ts +21 -0
  146. package/dist/commands/build/queue/setup.d.ts.map +1 -0
  147. package/dist/commands/build/queue/setup.js +120 -0
  148. package/dist/commands/build/smartbucket/setup.d.ts +23 -0
  149. package/dist/commands/build/smartbucket/setup.d.ts.map +1 -0
  150. package/dist/commands/build/smartbucket/setup.js +167 -0
  151. package/dist/commands/build/smartmemory/setup.d.ts +23 -0
  152. package/dist/commands/build/smartmemory/setup.d.ts.map +1 -0
  153. package/dist/commands/build/smartmemory/setup.js +172 -0
  154. package/dist/commands/build/smartsql/setup.d.ts +23 -0
  155. package/dist/commands/build/smartsql/setup.d.ts.map +1 -0
  156. package/dist/commands/build/smartsql/setup.js +169 -0
  157. package/dist/commands/build/validate.d.ts +2 -0
  158. package/dist/commands/build/validate.d.ts.map +1 -1
  159. package/dist/commands/build/validate.js +80 -8
  160. package/dist/commands/build/workos/jwt.d.ts +23 -0
  161. package/dist/commands/build/workos/jwt.d.ts.map +1 -0
  162. package/dist/commands/build/workos/jwt.js +172 -0
  163. package/dist/commands/doctor.d.ts +27 -0
  164. package/dist/commands/doctor.d.ts.map +1 -0
  165. package/dist/commands/doctor.js +328 -0
  166. package/dist/commands/object/delete.d.ts +0 -2
  167. package/dist/commands/object/delete.d.ts.map +1 -1
  168. package/dist/commands/object/delete.js +3 -38
  169. package/dist/commands/object/get.d.ts +0 -2
  170. package/dist/commands/object/get.d.ts.map +1 -1
  171. package/dist/commands/object/get.js +3 -38
  172. package/dist/commands/object/list.d.ts +0 -2
  173. package/dist/commands/object/list.d.ts.map +1 -1
  174. package/dist/commands/object/list.js +5 -40
  175. package/dist/commands/object/put.d.ts +0 -2
  176. package/dist/commands/object/put.d.ts.map +1 -1
  177. package/dist/commands/object/put.js +3 -38
  178. package/dist/commands/query/chunk-search.d.ts +0 -2
  179. package/dist/commands/query/chunk-search.d.ts.map +1 -1
  180. package/dist/commands/query/chunk-search.js +12 -46
  181. package/dist/commands/query/document.d.ts +1 -3
  182. package/dist/commands/query/document.d.ts.map +1 -1
  183. package/dist/commands/query/document.js +16 -60
  184. package/dist/commands/query/search.d.ts +0 -2
  185. package/dist/commands/query/search.d.ts.map +1 -1
  186. package/dist/commands/query/search.js +12 -46
  187. package/dist/feature-catalog.d.ts +28 -0
  188. package/dist/feature-catalog.d.ts.map +1 -0
  189. package/dist/feature-catalog.js +104 -0
  190. package/dist/index.d.ts.map +1 -1
  191. package/dist/index.js +16 -2
  192. package/oclif.manifest.json +4811 -3433
  193. package/package.json +3 -3
  194. package/templates/examples/smartbucket-minimal.ts.hbs +87 -0
  195. package/templates/examples/smartmemory-minimal.ts.hbs +82 -0
  196. package/templates/examples/smartsql-minimal.ts.hbs +69 -0
  197. package/templates/handlers/actor/index.test.ts.hbs +48 -85
  198. package/templates/handlers/actor/index.ts.hbs +16 -316
  199. package/templates/handlers/bucket-event-notification/index.ts.hbs +32 -235
  200. package/templates/handlers/bucket-event-observer.ts.hbs +79 -0
  201. package/templates/handlers/http-service/index.test.ts.hbs +3 -0
  202. package/templates/handlers/http-service/index.ts.hbs +43 -15
  203. package/templates/handlers/queue-consumer-setup.ts.hbs +45 -0
  204. package/templates/handlers/task/index.test.ts.hbs +30 -112
  205. package/templates/handlers/task/index.ts.hbs +19 -58
  206. package/templates/init/RAINDROP.md.hbs +97 -1
  207. package/templates/init/eslint.config.js +43 -0
  208. package/templates/init/package.json.hbs +4 -1
  209. package/templates/init/tsconfig.json +3 -3
  210. package/bundle/chunk-23UBI7BN.js +0 -48
  211. package/bundle/chunk-2QWMBNE3.js +0 -384
  212. package/bundle/chunk-45IYWQDC.js +0 -384
  213. package/bundle/chunk-5YUO23QU.js +0 -4585
  214. package/bundle/chunk-6MIGCNUO.js +0 -75
  215. package/bundle/chunk-7ZJWA6HP.js +0 -805
  216. package/bundle/chunk-AIYVX2M7.js +0 -44
  217. package/bundle/chunk-BB5TNIEM.js +0 -48
  218. package/bundle/chunk-BUR3HFKH.js +0 -488
  219. package/bundle/chunk-BYSBS7KT.js +0 -488
  220. package/bundle/chunk-CX3RWI62.js +0 -28658
  221. package/bundle/chunk-DLH7MI57.js +0 -305
  222. package/bundle/chunk-E3WJIYJZ.js +0 -12148
  223. package/bundle/chunk-EX7NOPRF.js +0 -12148
  224. package/bundle/chunk-F76JQS2J.js +0 -231
  225. package/bundle/chunk-FBOXMVKD.js +0 -28679
  226. package/bundle/chunk-FTPZ6SQW.js +0 -238909
  227. package/bundle/chunk-H3CFZ7ZH.js +0 -74
  228. package/bundle/chunk-HXOILVWA.js +0 -384
  229. package/bundle/chunk-IMP7O5AC.js +0 -22452
  230. package/bundle/chunk-IPYOAKRE.js +0 -231
  231. package/bundle/chunk-J7HN6XF2.js +0 -4461
  232. package/bundle/chunk-JOLOAALA.js +0 -231
  233. package/bundle/chunk-JZ2G4Q35.js +0 -4585
  234. package/bundle/chunk-KVAWPWF7.js +0 -231
  235. package/bundle/chunk-MEUAAIXV.js +0 -28657
  236. package/bundle/chunk-QBWFE57Z.js +0 -384
  237. package/bundle/chunk-SP3LOXPC.js +0 -46
  238. package/bundle/chunk-T7C564PR.js +0 -28678
  239. package/bundle/chunk-UFH545WJ.js +0 -22452
  240. package/bundle/chunk-UHVMPWM5.js +0 -315
  241. package/bundle/chunk-VB7ZTSZV.js +0 -1089
  242. package/bundle/chunk-VBIJDFMJ.js +0 -384
  243. package/bundle/chunk-VR7RLTE3.js +0 -231
  244. package/bundle/chunk-WFZUJLEC.js +0 -231
  245. package/bundle/chunk-YDGJTLVZ.js +0 -133
  246. package/bundle/chunk-YPNQ7UFK.js +0 -502
  247. package/bundle/chunk-YXFDRMSN.js +0 -384
  248. package/dist/lib/dns-utils.d.ts +0 -7
  249. package/dist/lib/dns-utils.d.ts.map +0 -1
  250. package/dist/lib/dns-utils.js +0 -44
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  displayTraceGroupedEvents
3
- } from "../../chunk-3QCVYSRU.js";
3
+ } from "../../chunk-LT3BFQ4O.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-LDFYPOXJ.js";
6
+ } from "../../chunk-TFQY5TSY.js";
7
7
  import {
8
8
  QueryLogsRequestSchema,
9
9
  TimeQuerySchema,
@@ -13,7 +13,7 @@ import {
13
13
  require_lib,
14
14
  timestampFromDate,
15
15
  valueOf
16
- } from "../../chunk-V5LHJTYS.js";
16
+ } from "../../chunk-KLOYSTZY.js";
17
17
 
18
18
  // src/commands/logs/query.ts
19
19
  init_cjs_shims();
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  displayTraceGroupedEvents
3
- } from "../../chunk-3QCVYSRU.js";
3
+ } from "../../chunk-LT3BFQ4O.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-LDFYPOXJ.js";
6
+ } from "../../chunk-TFQY5TSY.js";
7
7
  import {
8
8
  QueryLogsRequestSchema,
9
9
  StreamLogsRequestSchema,
@@ -14,7 +14,7 @@ import {
14
14
  require_lib,
15
15
  timestampFromDate,
16
16
  valueOf
17
- } from "../../chunk-V5LHJTYS.js";
17
+ } from "../../chunk-KLOYSTZY.js";
18
18
 
19
19
  // src/commands/logs/tail.ts
20
20
  init_cjs_shims();
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-LDFYPOXJ.js";
3
+ } from "../../chunk-TFQY5TSY.js";
4
4
  import {
5
5
  init_cjs_shims,
6
6
  urlifyOrganizationId
7
- } from "../../chunk-V5LHJTYS.js";
7
+ } from "../../chunk-KLOYSTZY.js";
8
8
 
9
9
  // src/commands/mcp/install-claude.ts
10
10
  init_cjs_shims();
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-LDFYPOXJ.js";
3
+ } from "../../chunk-TFQY5TSY.js";
4
4
  import {
5
5
  init_cjs_shims,
6
6
  urlifyOrganizationId
7
- } from "../../chunk-V5LHJTYS.js";
7
+ } from "../../chunk-KLOYSTZY.js";
8
8
 
9
9
  // src/commands/mcp/install-gemini.ts
10
10
  init_cjs_shims();
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-LDFYPOXJ.js";
3
+ } from "../../chunk-TFQY5TSY.js";
4
4
  import {
5
5
  init_cjs_shims,
6
6
  urlifyOrganizationId
7
- } from "../../chunk-V5LHJTYS.js";
7
+ } from "../../chunk-KLOYSTZY.js";
8
8
 
9
9
  // src/commands/mcp/install-goose.ts
10
10
  init_cjs_shims();
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-LDFYPOXJ.js";
3
+ } from "../../chunk-TFQY5TSY.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims,
7
7
  require_lib,
8
8
  urlifyOrganizationId
9
- } from "../../chunk-V5LHJTYS.js";
9
+ } from "../../chunk-KLOYSTZY.js";
10
10
 
11
11
  // src/commands/mcp/status.ts
12
12
  init_cjs_shims();
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-LDFYPOXJ.js";
3
+ } from "../../chunk-TFQY5TSY.js";
4
4
  import {
5
5
  DeleteObjectResponseSchema,
6
6
  __toESM,
7
7
  init_cjs_shims,
8
8
  require_lib,
9
9
  toJsonString
10
- } from "../../chunk-V5LHJTYS.js";
10
+ } from "../../chunk-KLOYSTZY.js";
11
11
 
12
12
  // src/commands/object/delete.ts
13
13
  init_cjs_shims();
@@ -35,24 +35,6 @@ Delete file with key 'my-key' from my-bucket within my-app
35
35
  description: "bucket name version can be specified with #, e.g. my-bucket#versionId",
36
36
  required: false
37
37
  }),
38
- "module-id": import_core.Flags.string({
39
- description: "module ID (deprecated, use --bucket with smartbucket names)",
40
- required: false,
41
- hidden: true,
42
- deprecated: {
43
- message: "use --bucket with smartbucket names instead",
44
- version: "3.0.0"
45
- }
46
- }),
47
- moduleId: import_core.Flags.string({
48
- description: "module ID (deprecated, use --module-id)",
49
- required: false,
50
- hidden: true,
51
- deprecated: {
52
- message: "use --module-id instead",
53
- version: "2.0.0"
54
- }
55
- }),
56
38
  application: import_core.Flags.string({
57
39
  char: "a",
58
40
  description: "application name",
@@ -78,26 +60,12 @@ Delete file with key 'my-key' from my-bucket within my-app
78
60
  })
79
61
  };
80
62
  async run() {
81
- const moduleId = this.flags["module-id"] || this.flags.moduleId;
82
- if (this.flags.bucket && moduleId) {
83
- this.error("Cannot specify both --bucket and --module-id flags.");
84
- }
85
- if (moduleId && this.flags.application) {
86
- this.error("Cannot specify both --module-id and --application flags.");
87
- }
88
- if (!this.flags.bucket && !moduleId && !this.flags.application) {
89
- this.error("Must specify one of: --bucket, --module-id, or --application");
63
+ if (!this.flags.bucket && !this.flags.application) {
64
+ this.error("Must specify --bucket or --application");
90
65
  }
91
66
  const { client: objectService, userId, organizationId } = await this.objectService();
92
67
  let bucketLocation;
93
- if (moduleId) {
94
- bucketLocation = {
95
- bucketLocation: {
96
- case: "moduleId",
97
- value: moduleId
98
- }
99
- };
100
- } else if (this.flags.application && this.flags.bucket) {
68
+ if (this.flags.application && this.flags.bucket) {
101
69
  const applicationName = this.flags.application;
102
70
  const config = await this.loadConfig();
103
71
  const applicationVersionId = config.versionId || void 0;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-LDFYPOXJ.js";
3
+ } from "../../chunk-TFQY5TSY.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims,
7
7
  require_lib
8
- } from "../../chunk-V5LHJTYS.js";
8
+ } from "../../chunk-KLOYSTZY.js";
9
9
 
10
10
  // src/commands/object/get.ts
11
11
  init_cjs_shims();
@@ -39,24 +39,6 @@ Download file with key 'my-key' from my-bucket within my-app to output.txt
39
39
  description: "bucket name version can be specified with #, e.g. my-bucket#versionId",
40
40
  required: false
41
41
  }),
42
- "module-id": import_core.Flags.string({
43
- description: "module ID (deprecated, use --bucket with smartbucket names)",
44
- required: false,
45
- hidden: true,
46
- deprecated: {
47
- message: "use --bucket with smartbucket names instead",
48
- version: "3.0.0"
49
- }
50
- }),
51
- moduleId: import_core.Flags.string({
52
- description: "module ID (deprecated, use --module-id)",
53
- required: false,
54
- hidden: true,
55
- deprecated: {
56
- message: "use --module-id instead",
57
- version: "2.0.0"
58
- }
59
- }),
60
42
  application: import_core.Flags.string({
61
43
  char: "a",
62
44
  description: "application name",
@@ -82,26 +64,12 @@ Download file with key 'my-key' from my-bucket within my-app to output.txt
82
64
  })
83
65
  };
84
66
  async run() {
85
- const moduleId = this.flags["module-id"] || this.flags.moduleId;
86
- if (this.flags.bucket && moduleId) {
87
- this.error("Cannot specify both --bucket and --module-id flags.");
88
- }
89
- if (moduleId && this.flags.application) {
90
- this.error("Cannot specify both --module-id and --application flags.");
91
- }
92
- if (!this.flags.bucket && !moduleId && !this.flags.application) {
93
- this.error("Must specify one of: --bucket, --module-id, or --application");
67
+ if (!this.flags.bucket && !this.flags.application) {
68
+ this.error("Must specify --bucket or --application");
94
69
  }
95
70
  const { client: objectService, userId, organizationId } = await this.objectService();
96
71
  let bucketLocation;
97
- if (moduleId) {
98
- bucketLocation = {
99
- bucketLocation: {
100
- case: "moduleId",
101
- value: moduleId
102
- }
103
- };
104
- } else if (this.flags.application && this.flags.bucket) {
72
+ if (this.flags.application && this.flags.bucket) {
105
73
  const applicationName = this.flags.application;
106
74
  const config = await this.loadConfig();
107
75
  const applicationVersionId = config.versionId || void 0;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-LDFYPOXJ.js";
3
+ } from "../../chunk-TFQY5TSY.js";
4
4
  import {
5
5
  ListObjectsResponseSchema,
6
6
  __toESM,
@@ -8,7 +8,7 @@ import {
8
8
  require_lib,
9
9
  timestampDate,
10
10
  toJsonString
11
- } from "../../chunk-V5LHJTYS.js";
11
+ } from "../../chunk-KLOYSTZY.js";
12
12
 
13
13
  // src/commands/object/list.ts
14
14
  init_cjs_shims();
@@ -75,24 +75,6 @@ List objects in my-bucket within my-app
75
75
  description: "bucket name version can be specified with #, e.g. my-bucket#versionId",
76
76
  required: false
77
77
  }),
78
- "module-id": import_core.Flags.string({
79
- description: "module ID (deprecated, use --bucket with smartbucket names)",
80
- required: false,
81
- hidden: true,
82
- deprecated: {
83
- message: "use --bucket with smartbucket names instead",
84
- version: "3.0.0"
85
- }
86
- }),
87
- moduleId: import_core.Flags.string({
88
- description: "module ID (deprecated, use --module-id)",
89
- required: false,
90
- hidden: true,
91
- deprecated: {
92
- message: "use --module-id instead",
93
- version: "2.0.0"
94
- }
95
- }),
96
78
  application: import_core.Flags.string({
97
79
  char: "a",
98
80
  description: "application name",
@@ -133,26 +115,12 @@ List objects in my-bucket within my-app
133
115
  })
134
116
  };
135
117
  async run() {
136
- const moduleId = this.flags["module-id"] || this.flags.moduleId;
137
- if (this.flags.bucket && moduleId) {
138
- this.error("Cannot specify both --bucket and --module-id flags.");
139
- }
140
- if (moduleId && this.flags.application) {
141
- this.error("Cannot specify both --module-id and --application flags.");
142
- }
143
- if (!this.flags.bucket && !moduleId && !this.flags.application) {
144
- this.error("Must specify one of: --bucket, --module-id, or --application");
118
+ if (!this.flags.bucket && !this.flags.application) {
119
+ this.error("Must specify --bucket or --application");
145
120
  }
146
121
  const { client: objectService, userId, organizationId } = await this.objectService();
147
122
  let bucketLocation;
148
- if (moduleId) {
149
- bucketLocation = {
150
- bucketLocation: {
151
- case: "moduleId",
152
- value: moduleId
153
- }
154
- };
155
- } else if (this.flags.application && this.flags.bucket) {
123
+ if (this.flags.application && this.flags.bucket) {
156
124
  const applicationName = this.flags.application;
157
125
  const config = await this.loadConfig();
158
126
  const applicationVersionId = config.versionId || void 0;
@@ -271,8 +239,8 @@ List objects in my-bucket within my-app
271
239
  });
272
240
  } catch (error) {
273
241
  const err = error;
274
- const location = this.flags.bucket || moduleId;
275
- this.error(`Failed to list objects in ${this.flags.bucket ? "bucket" : "module"} ${location}: ${err.message}`);
242
+ const location = this.flags.bucket || this.flags.application;
243
+ this.error(`Failed to list objects in ${location}: ${err.message}`);
276
244
  }
277
245
  if (!response.objects?.length) {
278
246
  console.log("No objects found in bucket");
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-LDFYPOXJ.js";
3
+ } from "../../chunk-TFQY5TSY.js";
4
4
  import {
5
5
  PutObjectResponseSchema,
6
6
  __toESM,
7
7
  init_cjs_shims,
8
8
  require_lib,
9
9
  toJsonString
10
- } from "../../chunk-V5LHJTYS.js";
10
+ } from "../../chunk-KLOYSTZY.js";
11
11
 
12
12
  // src/commands/object/put.ts
13
13
  init_cjs_shims();
@@ -42,24 +42,6 @@ Upload myfile.txt to my-bucket within my-app with key 'my-key'
42
42
  description: "bucket name version can be specified with #, e.g. my-bucket#versionId",
43
43
  required: false
44
44
  }),
45
- "module-id": import_core.Flags.string({
46
- description: "module ID (deprecated, use --bucket with smartbucket names)",
47
- required: false,
48
- hidden: true,
49
- deprecated: {
50
- message: "use --bucket with smartbucket names instead",
51
- version: "3.0.0"
52
- }
53
- }),
54
- moduleId: import_core.Flags.string({
55
- description: "module ID (deprecated, use --module-id)",
56
- required: false,
57
- hidden: true,
58
- deprecated: {
59
- message: "use --module-id instead",
60
- version: "2.0.0"
61
- }
62
- }),
63
45
  application: import_core.Flags.string({
64
46
  char: "a",
65
47
  description: "application name",
@@ -90,26 +72,12 @@ Upload myfile.txt to my-bucket within my-app with key 'my-key'
90
72
  })
91
73
  };
92
74
  async run() {
93
- const moduleId = this.flags["module-id"] || this.flags.moduleId;
94
- if (this.flags.bucket && moduleId) {
95
- this.error("Cannot specify both --bucket and --module-id flags.");
96
- }
97
- if (moduleId && this.flags.application) {
98
- this.error("Cannot specify both --module-id and --application flags.");
99
- }
100
- if (!this.flags.bucket && !moduleId && !this.flags.application) {
101
- this.error("Must specify one of: --bucket, --module-id, or --application");
75
+ if (!this.flags.bucket && !this.flags.application) {
76
+ this.error("Must specify --bucket or --application");
102
77
  }
103
78
  const { client: objectService, userId, organizationId } = await this.objectService();
104
79
  let bucketLocation;
105
- if (moduleId) {
106
- bucketLocation = {
107
- bucketLocation: {
108
- case: "moduleId",
109
- value: moduleId
110
- }
111
- };
112
- } else if (this.flags.application && this.flags.bucket) {
80
+ if (this.flags.application && this.flags.bucket) {
113
81
  const applicationName = this.flags.application;
114
82
  const config = await this.loadConfig();
115
83
  const applicationVersionId = config.versionId || void 0;
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  ulid
3
- } from "../../chunk-6MIGCNUO.js";
3
+ } from "../../chunk-VOT5MMEY.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-LDFYPOXJ.js";
6
+ } from "../../chunk-TFQY5TSY.js";
7
7
  import {
8
8
  RagSearchResponseSchema,
9
9
  __toESM,
10
10
  init_cjs_shims,
11
11
  require_lib,
12
12
  toJsonString
13
- } from "../../chunk-V5LHJTYS.js";
13
+ } from "../../chunk-KLOYSTZY.js";
14
14
 
15
15
  // src/commands/query/chunk-search.ts
16
16
  init_cjs_shims();
@@ -36,26 +36,6 @@ Run a RAG search query against a Smart Bucket.
36
36
  multiple: true,
37
37
  required: false
38
38
  }),
39
- "module-ids": import_core.Flags.string({
40
- description: "Module IDs to search in (deprecated, use --buckets with smartbucket names)",
41
- multiple: true,
42
- required: false,
43
- hidden: true,
44
- deprecated: {
45
- message: "use --buckets with smartbucket names instead",
46
- version: "3.0.0"
47
- }
48
- }),
49
- moduleIds: import_core.Flags.string({
50
- description: "Module IDs to search in (deprecated, use --module-ids)",
51
- multiple: true,
52
- required: false,
53
- hidden: true,
54
- deprecated: {
55
- message: "use --module-ids instead",
56
- version: "2.0.0"
57
- }
58
- }),
59
39
  output: import_core.Flags.string({
60
40
  char: "o",
61
41
  description: "output format",
@@ -76,10 +56,6 @@ Run a RAG search query against a Smart Bucket.
76
56
  })
77
57
  };
78
58
  async searchAgent(query) {
79
- const moduleIds = this.flags["module-ids"] || this.flags.moduleIds;
80
- if (this.flags.buckets?.length && moduleIds?.length) {
81
- this.error("Cannot specify both --buckets and --module-ids flags. Please use only one type of filter.");
82
- }
83
59
  if (this.flags.buckets?.some((bucket) => !bucket.includes("#"))) {
84
60
  await this.loadConfig();
85
61
  }
@@ -88,27 +64,19 @@ Run a RAG search query against a Smart Bucket.
88
64
  const response = await searchAgentService.ragSearch({
89
65
  userId,
90
66
  organizationId,
91
- bucketLocations: [
92
- ...(this.flags.buckets || []).map((bucket) => {
93
- const [bucketName, version] = bucket.split("#");
94
- return {
95
- bucketLocation: {
96
- case: "bucket",
97
- value: {
98
- name: bucketName,
99
- version: version || this.raindropConfig?.versionId || "",
100
- applicationName
101
- }
102
- }
103
- };
104
- }),
105
- ...(moduleIds || []).map((moduleId) => ({
67
+ bucketLocations: (this.flags.buckets || []).map((bucket) => {
68
+ const [bucketName, version] = bucket.split("#");
69
+ return {
106
70
  bucketLocation: {
107
- case: "moduleId",
108
- value: moduleId
71
+ case: "bucket",
72
+ value: {
73
+ name: bucketName,
74
+ version: version || this.raindropConfig?.versionId || "",
75
+ applicationName
76
+ }
109
77
  }
110
- }))
111
- ],
78
+ };
79
+ }),
112
80
  requestId: ulid(),
113
81
  input: query
114
82
  });
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  ulid
3
- } from "../../chunk-6MIGCNUO.js";
3
+ } from "../../chunk-VOT5MMEY.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-LDFYPOXJ.js";
6
+ } from "../../chunk-TFQY5TSY.js";
7
7
  import {
8
8
  DocumentChatResponseSchema,
9
9
  __toESM,
10
10
  init_cjs_shims,
11
11
  require_lib,
12
12
  toJsonString
13
- } from "../../chunk-V5LHJTYS.js";
13
+ } from "../../chunk-KLOYSTZY.js";
14
14
 
15
15
  // src/commands/query/document.ts
16
16
  init_cjs_shims();
@@ -24,11 +24,8 @@ var DocumentChat = class _DocumentChat extends BaseCommand {
24
24
  };
25
25
  static description = "Chat with a document stored in a Smart Bucket";
26
26
  static examples = [
27
- `<%= config.bin %> query document "What is the main topic of this document?" -b my-bucket -o document.pdf
27
+ `<%= config.bin %> query document "What is the main topic of this document?" -b my-bucket --object-id document.pdf
28
28
  Chat with a document in a Smart Bucket using bucket name.
29
- `,
30
- `<%= config.bin %> query document "What is the main topic of this document?" -m module-id -o document.pdf
31
- Chat with a document in a Smart Bucket using module ID.
32
29
  `
33
30
  ];
34
31
  static flags = {
@@ -36,25 +33,7 @@ Chat with a document in a Smart Bucket using module ID.
36
33
  bucket: import_core.Flags.string({
37
34
  char: "b",
38
35
  description: "Bucket name containing the document, version can be specified with #, e.g. my-bucket#versionId",
39
- required: false
40
- }),
41
- "module-id": import_core.Flags.string({
42
- description: "Module ID containing the document (deprecated, use --bucket with smartbucket names)",
43
- required: false,
44
- hidden: true,
45
- deprecated: {
46
- message: "use --bucket with smartbucket names instead",
47
- version: "3.0.0"
48
- }
49
- }),
50
- moduleId: import_core.Flags.string({
51
- description: "Module ID containing the document (deprecated, use --module-id)",
52
- required: false,
53
- hidden: true,
54
- deprecated: {
55
- message: "use --module-id instead",
56
- version: "2.0.0"
57
- }
36
+ required: true
58
37
  }),
59
38
  "object-id": import_core.Flags.string({
60
39
  description: "Object ID of the document to chat with",
@@ -89,40 +68,23 @@ Chat with a document in a Smart Bucket using module ID.
89
68
  })
90
69
  };
91
70
  async documentChat(query) {
92
- const moduleId = this.flags["module-id"] || this.flags.moduleId;
93
71
  const objectId = this.flags["object-id"] || this.flags.objectId;
94
- if (this.flags.bucket && moduleId) {
95
- this.error("Cannot specify both --bucket and --module-id flags. Please use only one type of location.");
96
- }
97
- if (!this.flags.bucket && !moduleId) {
98
- this.error("Must specify either --bucket or --module-id flag to identify the document location.");
99
- }
100
- if (this.flags.bucket && !this.flags.bucket.includes("#")) {
72
+ if (!this.flags.bucket.includes("#")) {
101
73
  await this.loadConfig();
102
74
  }
103
75
  const { client: searchAgentService, userId, organizationId } = await this.searchAgentService();
104
- let bucketLocation;
105
- if (this.flags.bucket) {
106
- const applicationName = await this.getApplicationNameFromManifest();
107
- const [bucketName, version] = this.flags.bucket.split("#");
108
- bucketLocation = {
109
- bucketLocation: {
110
- case: "bucket",
111
- value: {
112
- name: bucketName,
113
- version: version || this.raindropConfig?.versionId || "",
114
- applicationName
115
- }
76
+ const applicationName = await this.getApplicationNameFromManifest();
77
+ const [bucketName, version] = this.flags.bucket.split("#");
78
+ const bucketLocation = {
79
+ bucketLocation: {
80
+ case: "bucket",
81
+ value: {
82
+ name: bucketName,
83
+ version: version || this.raindropConfig?.versionId || "",
84
+ applicationName
116
85
  }
117
- };
118
- } else {
119
- bucketLocation = {
120
- bucketLocation: {
121
- case: "moduleId",
122
- value: moduleId
123
- }
124
- };
125
- }
86
+ }
87
+ };
126
88
  const response = await searchAgentService.documentChat({
127
89
  userId,
128
90
  organizationId,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-LDFYPOXJ.js";
3
+ } from "../../chunk-TFQY5TSY.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims,
7
7
  require_lib,
8
8
  valueOf
9
- } from "../../chunk-V5LHJTYS.js";
9
+ } from "../../chunk-KLOYSTZY.js";
10
10
 
11
11
  // src/commands/query/events.ts
12
12
  init_cjs_shims();
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-LDFYPOXJ.js";
3
+ } from "../../chunk-TFQY5TSY.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims,
7
7
  require_lib
8
- } from "../../chunk-V5LHJTYS.js";
8
+ } from "../../chunk-KLOYSTZY.js";
9
9
 
10
10
  // src/commands/query/reindex.ts
11
11
  init_cjs_shims();