@liquidmetal-ai/raindrop 0.8.0 → 0.9.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 (208) hide show
  1. package/README.md +254 -207
  2. package/bundle/chunk-5AOMZVOJ.js +48 -0
  3. package/bundle/chunk-5AP5HNN3.js +133 -0
  4. package/bundle/chunk-6CDCK5IP.js +58 -0
  5. package/bundle/chunk-6GTBXHHK.js +502 -0
  6. package/bundle/chunk-A26NDSVL.js +12148 -0
  7. package/bundle/{chunk-6UE75KX2.js → chunk-AKNNZNIC.js} +1 -2
  8. package/bundle/{chunk-CW5ZHVPX.js → chunk-DOTQ3CSX.js} +2 -2
  9. package/bundle/chunk-FO7VH4GU.js +75 -0
  10. package/bundle/chunk-HEOY5F6W.js +147 -0
  11. package/bundle/chunk-HMD2JXLE.js +238722 -0
  12. package/bundle/chunk-KGZ7KWP4.js +44 -0
  13. package/bundle/chunk-MNUILM7W.js +380 -0
  14. package/bundle/chunk-OROAB5YF.js +805 -0
  15. package/bundle/chunk-OZWZILJX.js +4539 -0
  16. package/bundle/{chunk-6B4I2CKP.js → chunk-YDVG2SA2.js} +4 -4
  17. package/bundle/chunk-ZQQFKWNC.js +22452 -0
  18. package/bundle/commands/annotation/get.js +4 -4
  19. package/bundle/commands/annotation/list.js +4 -4
  20. package/bundle/commands/annotation/put.js +4 -4
  21. package/bundle/commands/auth/list.js +2 -2
  22. package/bundle/commands/auth/login.js +3 -3
  23. package/bundle/commands/auth/logout.js +2 -2
  24. package/bundle/commands/auth/select.js +3 -3
  25. package/bundle/commands/bucket/create-credential.js +3 -3
  26. package/bundle/commands/bucket/delete-credential.js +3 -3
  27. package/bundle/commands/bucket/get-credential.js +3 -3
  28. package/bundle/commands/bucket/list-credentials.js +3 -3
  29. package/bundle/commands/build/branch.js +26 -14
  30. package/bundle/commands/build/checkout.js +6 -6
  31. package/bundle/commands/build/clone.js +5 -5
  32. package/bundle/commands/build/delete.js +24 -14
  33. package/bundle/commands/build/deploy.js +25 -13
  34. package/bundle/commands/build/env/get.js +19 -6
  35. package/bundle/commands/build/env/set.js +19 -6
  36. package/bundle/commands/build/find.js +18 -10
  37. package/bundle/commands/build/generate.js +4 -4
  38. package/bundle/commands/build/init.js +3 -3
  39. package/bundle/commands/build/list-templates.js +63 -0
  40. package/bundle/commands/build/list.js +4 -4
  41. package/bundle/commands/build/package-template.js +238 -0
  42. package/bundle/commands/build/sandbox.js +16 -10
  43. package/bundle/commands/build/start.js +10 -6
  44. package/bundle/commands/build/status.js +16 -11
  45. package/bundle/commands/build/stop.js +10 -6
  46. package/bundle/commands/build/tools/check.js +2 -2
  47. package/bundle/commands/build/tools/fmt.js +2 -2
  48. package/bundle/commands/build/unsandbox.js +16 -10
  49. package/bundle/commands/build/upload.js +23 -9
  50. package/bundle/commands/build/validate.js +5 -5
  51. package/bundle/commands/build/workos/delete.js +4 -4
  52. package/bundle/commands/build/workos/env/attach.js +20 -8
  53. package/bundle/commands/build/workos/env/create.js +60 -11
  54. package/bundle/commands/build/workos/env/delete.js +3 -3
  55. package/bundle/commands/build/workos/env/detach.js +20 -8
  56. package/bundle/commands/build/workos/env/get.js +21 -3
  57. package/bundle/commands/build/workos/env/list.js +3 -3
  58. package/bundle/commands/build/workos/env/set.js +91 -25
  59. package/bundle/commands/build/workos/invite.js +3 -3
  60. package/bundle/commands/build/workos/setup.js +14 -5
  61. package/bundle/commands/build/workos/status.js +116 -25
  62. package/bundle/commands/dns/create.js +2 -2
  63. package/bundle/commands/dns/delete.js +4 -4
  64. package/bundle/commands/dns/get.js +4 -4
  65. package/bundle/commands/dns/list.js +3 -3
  66. package/bundle/commands/dns/records/create.js +2 -2
  67. package/bundle/commands/dns/records/delete.js +3 -3
  68. package/bundle/commands/dns/records/get.js +2 -2
  69. package/bundle/commands/dns/records/list.js +2 -2
  70. package/bundle/commands/dns/records/update.js +2 -2
  71. package/bundle/commands/logs/query.js +15 -10
  72. package/bundle/commands/logs/tail.js +16 -11
  73. package/bundle/commands/mcp/install-claude.js +2 -2
  74. package/bundle/commands/mcp/install-gemini.js +2 -2
  75. package/bundle/commands/mcp/install-goose.js +2 -2
  76. package/bundle/commands/mcp/status.js +2 -2
  77. package/bundle/commands/object/delete.js +27 -14
  78. package/bundle/commands/object/get.js +27 -14
  79. package/bundle/commands/object/list.js +28 -15
  80. package/bundle/commands/object/put.js +27 -14
  81. package/bundle/commands/query/chunk-search.js +24 -10
  82. package/bundle/commands/query/document.js +39 -16
  83. package/bundle/commands/query/events.js +13 -8
  84. package/bundle/commands/query/reindex.js +14 -6
  85. package/bundle/commands/query/search.js +40 -17
  86. package/bundle/commands/tail.js +2 -2
  87. package/bundle/index.js +1 -1
  88. package/dist/base-command.d.ts.map +1 -1
  89. package/dist/base-command.js +27 -0
  90. package/dist/commands/annotation/get.js +1 -1
  91. package/dist/commands/annotation/list.js +1 -1
  92. package/dist/commands/annotation/put.js +1 -1
  93. package/dist/commands/bucket/create-credential.js +1 -1
  94. package/dist/commands/bucket/delete-credential.js +1 -1
  95. package/dist/commands/bucket/get-credential.js +1 -1
  96. package/dist/commands/bucket/list-credentials.js +1 -1
  97. package/dist/commands/build/branch.d.ts +2 -0
  98. package/dist/commands/build/branch.d.ts.map +1 -1
  99. package/dist/commands/build/branch.js +18 -5
  100. package/dist/commands/build/checkout.js +1 -1
  101. package/dist/commands/build/delete.d.ts +1 -0
  102. package/dist/commands/build/delete.d.ts.map +1 -1
  103. package/dist/commands/build/delete.js +25 -12
  104. package/dist/commands/build/deploy.d.ts +2 -0
  105. package/dist/commands/build/deploy.d.ts.map +1 -1
  106. package/dist/commands/build/deploy.js +17 -4
  107. package/dist/commands/build/env/get.d.ts +2 -0
  108. package/dist/commands/build/env/get.d.ts.map +1 -1
  109. package/dist/commands/build/env/get.js +18 -4
  110. package/dist/commands/build/env/set.d.ts +2 -0
  111. package/dist/commands/build/env/set.d.ts.map +1 -1
  112. package/dist/commands/build/env/set.js +18 -4
  113. package/dist/commands/build/find.d.ts +1 -0
  114. package/dist/commands/build/find.d.ts.map +1 -1
  115. package/dist/commands/build/find.js +18 -7
  116. package/dist/commands/build/generate.js +1 -1
  117. package/dist/commands/build/list-templates.d.ts +11 -0
  118. package/dist/commands/build/list-templates.d.ts.map +1 -0
  119. package/dist/commands/build/list-templates.js +47 -0
  120. package/dist/commands/build/list.js +1 -1
  121. package/dist/commands/build/package-template.d.ts +28 -0
  122. package/dist/commands/build/package-template.d.ts.map +1 -0
  123. package/dist/commands/build/package-template.js +256 -0
  124. package/dist/commands/build/sandbox.d.ts +1 -0
  125. package/dist/commands/build/sandbox.d.ts.map +1 -1
  126. package/dist/commands/build/sandbox.js +10 -3
  127. package/dist/commands/build/start.d.ts +1 -0
  128. package/dist/commands/build/start.d.ts.map +1 -1
  129. package/dist/commands/build/start.js +9 -4
  130. package/dist/commands/build/status.d.ts +1 -0
  131. package/dist/commands/build/status.d.ts.map +1 -1
  132. package/dist/commands/build/status.js +13 -7
  133. package/dist/commands/build/stop.d.ts +1 -0
  134. package/dist/commands/build/stop.d.ts.map +1 -1
  135. package/dist/commands/build/stop.js +9 -4
  136. package/dist/commands/build/unsandbox.d.ts +1 -0
  137. package/dist/commands/build/unsandbox.d.ts.map +1 -1
  138. package/dist/commands/build/unsandbox.js +10 -3
  139. package/dist/commands/build/upload.d.ts +3 -1
  140. package/dist/commands/build/upload.d.ts.map +1 -1
  141. package/dist/commands/build/upload.js +19 -4
  142. package/dist/commands/build/validate.js +1 -1
  143. package/dist/commands/build/workos/env/attach.d.ts +2 -0
  144. package/dist/commands/build/workos/env/attach.d.ts.map +1 -1
  145. package/dist/commands/build/workos/env/attach.js +17 -5
  146. package/dist/commands/build/workos/env/create.d.ts +3 -0
  147. package/dist/commands/build/workos/env/create.d.ts.map +1 -1
  148. package/dist/commands/build/workos/env/create.js +61 -8
  149. package/dist/commands/build/workos/env/detach.d.ts +2 -0
  150. package/dist/commands/build/workos/env/detach.d.ts.map +1 -1
  151. package/dist/commands/build/workos/env/detach.js +17 -5
  152. package/dist/commands/build/workos/env/get.d.ts.map +1 -1
  153. package/dist/commands/build/workos/env/get.js +19 -0
  154. package/dist/commands/build/workos/env/set.d.ts +12 -6
  155. package/dist/commands/build/workos/env/set.d.ts.map +1 -1
  156. package/dist/commands/build/workos/env/set.js +83 -22
  157. package/dist/commands/build/workos/setup.d.ts +1 -0
  158. package/dist/commands/build/workos/setup.d.ts.map +1 -1
  159. package/dist/commands/build/workos/setup.js +12 -3
  160. package/dist/commands/build/workos/status.d.ts +5 -0
  161. package/dist/commands/build/workos/status.d.ts.map +1 -1
  162. package/dist/commands/build/workos/status.js +128 -21
  163. package/dist/commands/logs/query.d.ts +1 -0
  164. package/dist/commands/logs/query.d.ts.map +1 -1
  165. package/dist/commands/logs/query.js +13 -7
  166. package/dist/commands/logs/tail.d.ts +1 -0
  167. package/dist/commands/logs/tail.d.ts.map +1 -1
  168. package/dist/commands/logs/tail.js +14 -8
  169. package/dist/commands/object/delete.d.ts +1 -0
  170. package/dist/commands/object/delete.d.ts.map +1 -1
  171. package/dist/commands/object/delete.js +25 -11
  172. package/dist/commands/object/get.d.ts +1 -0
  173. package/dist/commands/object/get.d.ts.map +1 -1
  174. package/dist/commands/object/get.js +25 -11
  175. package/dist/commands/object/list.d.ts +1 -0
  176. package/dist/commands/object/list.d.ts.map +1 -1
  177. package/dist/commands/object/list.js +26 -12
  178. package/dist/commands/object/put.d.ts +1 -0
  179. package/dist/commands/object/put.d.ts.map +1 -1
  180. package/dist/commands/object/put.js +25 -11
  181. package/dist/commands/query/chunk-search.d.ts +1 -0
  182. package/dist/commands/query/chunk-search.d.ts.map +1 -1
  183. package/dist/commands/query/chunk-search.js +21 -6
  184. package/dist/commands/query/document.d.ts +3 -1
  185. package/dist/commands/query/document.d.ts.map +1 -1
  186. package/dist/commands/query/document.js +36 -13
  187. package/dist/commands/query/events.d.ts +1 -0
  188. package/dist/commands/query/events.d.ts.map +1 -1
  189. package/dist/commands/query/events.js +12 -6
  190. package/dist/commands/query/reindex.d.ts +1 -0
  191. package/dist/commands/query/reindex.d.ts.map +1 -1
  192. package/dist/commands/query/reindex.js +13 -4
  193. package/dist/commands/query/search.d.ts +2 -0
  194. package/dist/commands/query/search.d.ts.map +1 -1
  195. package/dist/commands/query/search.js +37 -13
  196. package/dist/index.d.ts.map +1 -1
  197. package/dist/index.js +3 -1
  198. package/dist/templates/registry.d.ts +38 -0
  199. package/dist/templates/registry.d.ts.map +1 -0
  200. package/dist/templates/registry.js +72 -0
  201. package/dist/tsconfig.tsbuildinfo +1 -0
  202. package/oclif.manifest.json +2823 -2047
  203. package/package.json +3 -3
  204. package/templates/db/node_modules/.bin/prisma +2 -2
  205. package/templates/db/node_modules/.bin/prisma-kysely +2 -2
  206. package/templates/db/node_modules/.bin/tsc +2 -2
  207. package/templates/db/node_modules/.bin/tsserver +2 -2
  208. package/templates/db/node_modules/.bin/zx +2 -2
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  displayTraceGroupedEvents
3
- } from "../../chunk-KXEV6E63.js";
3
+ } from "../../chunk-5AP5HNN3.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-MCRKUPJY.js";
6
+ } from "../../chunk-OZWZILJX.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-G6NE675D.js";
16
+ } from "../../chunk-HMD2JXLE.js";
17
17
 
18
18
  // src/commands/logs/query.ts
19
19
  init_cjs_shims();
@@ -42,7 +42,6 @@ var Query = class extends BaseCommand {
42
42
  hidden: true
43
43
  }),
44
44
  manifest: import_core.Flags.string({
45
- char: "m",
46
45
  description: "project manifest",
47
46
  required: false,
48
47
  default: "raindrop.manifest",
@@ -53,11 +52,16 @@ var Query = class extends BaseCommand {
53
52
  description: "application",
54
53
  required: false
55
54
  }),
56
- version: import_core.Flags.string({
55
+ "version-id": import_core.Flags.string({
57
56
  char: "v",
58
- description: "application version",
57
+ description: "application version ID",
59
58
  required: false
60
59
  }),
60
+ version: import_core.Flags.string({
61
+ description: "application version ID (alias for --version-id)",
62
+ required: false,
63
+ hidden: true
64
+ }),
61
65
  startTime: import_core.Flags.string({
62
66
  char: "s",
63
67
  description: "start time for query (Unix timestamp in milliseconds or ISO string)",
@@ -134,13 +138,14 @@ var Query = class extends BaseCommand {
134
138
  }
135
139
  }
136
140
  async run() {
141
+ let versionId = this.flags["version-id"] || this.flags.version;
137
142
  const apps = await this.loadManifest();
138
143
  const config = await this.loadConfig();
139
- if (!this.flags.version) {
144
+ if (!versionId) {
140
145
  if (!config.versionId) {
141
146
  this.error("No version provided or found in config", { exit: 1 });
142
147
  }
143
- this.flags.version = config.versionId;
148
+ versionId = config.versionId;
144
149
  }
145
150
  if (!this.flags.application) {
146
151
  const app = apps[0];
@@ -179,7 +184,7 @@ var Query = class extends BaseCommand {
179
184
  }
180
185
  this.log(`Using organization: ${organizationId}`);
181
186
  this.log(`Using user: ${userId}`);
182
- this.log(`Querying logs for ${this.flags.application}@${this.flags.version}`);
187
+ this.log(`Querying logs for ${this.flags.application}@${versionId}`);
183
188
  this.log(`Time range: ${new Date(startTimeMs).toLocaleString()} - ${new Date(endTimeMs).toLocaleString()}`);
184
189
  this.log("");
185
190
  try {
@@ -191,7 +196,7 @@ var Query = class extends BaseCommand {
191
196
  organizationId,
192
197
  userId,
193
198
  applicationName: this.flags.application,
194
- applicationVersionId: this.flags.version,
199
+ applicationVersionId: versionId,
195
200
  timeQuery,
196
201
  limit: this.flags.limit,
197
202
  ...this.flags.traceId && { traceId: this.flags.traceId },
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  displayTraceGroupedEvents
3
- } from "../../chunk-KXEV6E63.js";
3
+ } from "../../chunk-5AP5HNN3.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-MCRKUPJY.js";
6
+ } from "../../chunk-OZWZILJX.js";
7
7
  import {
8
8
  StreamLogsRequestSchema,
9
9
  __toESM,
@@ -11,7 +11,7 @@ import {
11
11
  init_cjs_shims,
12
12
  require_lib,
13
13
  valueOf
14
- } from "../../chunk-G6NE675D.js";
14
+ } from "../../chunk-HMD2JXLE.js";
15
15
 
16
16
  // src/commands/logs/tail.ts
17
17
  init_cjs_shims();
@@ -39,7 +39,6 @@ var Tail = class extends BaseCommand {
39
39
  hidden: true
40
40
  }),
41
41
  manifest: import_core.Flags.string({
42
- char: "m",
43
42
  description: "project manifest",
44
43
  required: false,
45
44
  default: "raindrop.manifest",
@@ -50,11 +49,16 @@ var Tail = class extends BaseCommand {
50
49
  description: "application",
51
50
  required: false
52
51
  }),
53
- version: import_core.Flags.string({
52
+ "version-id": import_core.Flags.string({
54
53
  char: "v",
55
- description: "application version",
54
+ description: "application version ID",
56
55
  required: false
57
56
  }),
57
+ version: import_core.Flags.string({
58
+ description: "application version ID (alias for --version-id)",
59
+ required: false,
60
+ hidden: true
61
+ }),
58
62
  rainbowAuthService: import_core.Flags.string({
59
63
  default: "https://liquidmetal.run/api/connect",
60
64
  hidden: true,
@@ -67,13 +71,14 @@ var Tail = class extends BaseCommand {
67
71
  })
68
72
  };
69
73
  async run() {
74
+ let versionId = this.flags["version-id"] || this.flags.version;
70
75
  const apps = await this.loadManifest();
71
76
  const config = await this.loadConfig();
72
- if (!this.flags.version) {
77
+ if (!versionId) {
73
78
  if (!config.versionId) {
74
79
  this.error("No version provided or found in config", { exit: 1 });
75
80
  }
76
- this.flags.version = config.versionId;
81
+ versionId = config.versionId;
77
82
  }
78
83
  if (!this.flags.application) {
79
84
  const app = apps[0];
@@ -90,14 +95,14 @@ var Tail = class extends BaseCommand {
90
95
  const organizationId = this.flags.impersonate ?? defaultOrganizationId;
91
96
  this.log(`Using organization: ${organizationId}`);
92
97
  this.log(`Using user: ${userId}`);
93
- this.log(`Tailing logs for ${this.flags.application}@${this.flags.version} using Riverjack service...`);
98
+ this.log(`Tailing logs for ${this.flags.application}@${versionId} using Riverjack service...`);
94
99
  this.log("Press Ctrl+C to stop\n");
95
100
  try {
96
101
  const request = create(StreamLogsRequestSchema, {
97
102
  organizationId,
98
103
  userId,
99
104
  applicationName: this.flags.application,
100
- applicationVersionId: this.flags.version
105
+ applicationVersionId: versionId
101
106
  });
102
107
  for await (const resp of riverjackService.streamLogs(request)) {
103
108
  if (this.flags.output === "json") {
@@ -108,7 +113,7 @@ var Tail = class extends BaseCommand {
108
113
  case "heartbeat":
109
114
  break;
110
115
  case "stream_started":
111
- this.log(`\u{1F504} Started streaming logs for ${this.flags.application}@${this.flags.version}`);
116
+ this.log(`\u{1F504} Started streaming logs for ${this.flags.application}@${versionId}`);
112
117
  this.log(` Organization: ${organizationId}`);
113
118
  this.log(` User: ${userId}`);
114
119
  if (resp.timestamp) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-MCRKUPJY.js";
3
+ } from "../../chunk-OZWZILJX.js";
4
4
  import {
5
5
  init_cjs_shims,
6
6
  urlifyOrganizationId
7
- } from "../../chunk-G6NE675D.js";
7
+ } from "../../chunk-HMD2JXLE.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-MCRKUPJY.js";
3
+ } from "../../chunk-OZWZILJX.js";
4
4
  import {
5
5
  init_cjs_shims,
6
6
  urlifyOrganizationId
7
- } from "../../chunk-G6NE675D.js";
7
+ } from "../../chunk-HMD2JXLE.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-MCRKUPJY.js";
3
+ } from "../../chunk-OZWZILJX.js";
4
4
  import {
5
5
  init_cjs_shims,
6
6
  urlifyOrganizationId
7
- } from "../../chunk-G6NE675D.js";
7
+ } from "../../chunk-HMD2JXLE.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-MCRKUPJY.js";
3
+ } from "../../chunk-OZWZILJX.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims,
7
7
  require_lib,
8
8
  urlifyOrganizationId
9
- } from "../../chunk-G6NE675D.js";
9
+ } from "../../chunk-HMD2JXLE.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-MCRKUPJY.js";
3
+ } from "../../chunk-OZWZILJX.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-G6NE675D.js";
10
+ } from "../../chunk-HMD2JXLE.js";
11
11
 
12
12
  // src/commands/object/delete.ts
13
13
  init_cjs_shims();
@@ -35,10 +35,23 @@ 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
+ }),
38
47
  moduleId: import_core.Flags.string({
39
- char: "m",
40
- description: "moduleId",
41
- required: false
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
+ }
42
55
  }),
43
56
  application: import_core.Flags.string({
44
57
  char: "a",
@@ -58,7 +71,6 @@ Delete file with key 'my-key' from my-bucket within my-app
58
71
  hidden: true
59
72
  }),
60
73
  manifest: import_core.Flags.string({
61
- char: "M",
62
74
  description: "project manifest",
63
75
  required: false,
64
76
  default: "raindrop.manifest",
@@ -66,22 +78,23 @@ Delete file with key 'my-key' from my-bucket within my-app
66
78
  })
67
79
  };
68
80
  async run() {
69
- if (this.flags.bucket && this.flags.moduleId) {
70
- this.error("Cannot specify both --bucket and --moduleId flags.");
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.");
71
84
  }
72
- if (this.flags.moduleId && this.flags.application) {
73
- this.error("Cannot specify both --moduleId and --application flags.");
85
+ if (moduleId && this.flags.application) {
86
+ this.error("Cannot specify both --module-id and --application flags.");
74
87
  }
75
- if (!this.flags.bucket && !this.flags.moduleId && !this.flags.application) {
76
- this.error("Must specify one of: --bucket, --moduleId, or --application");
88
+ if (!this.flags.bucket && !moduleId && !this.flags.application) {
89
+ this.error("Must specify one of: --bucket, --module-id, or --application");
77
90
  }
78
91
  const { client: objectService, userId, organizationId } = await this.objectService();
79
92
  let bucketLocation;
80
- if (this.flags.moduleId) {
93
+ if (moduleId) {
81
94
  bucketLocation = {
82
95
  bucketLocation: {
83
96
  case: "moduleId",
84
- value: this.flags.moduleId
97
+ value: moduleId
85
98
  }
86
99
  };
87
100
  } else if (this.flags.application && this.flags.bucket) {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-MCRKUPJY.js";
3
+ } from "../../chunk-OZWZILJX.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims,
7
7
  require_lib
8
- } from "../../chunk-G6NE675D.js";
8
+ } from "../../chunk-HMD2JXLE.js";
9
9
 
10
10
  // src/commands/object/get.ts
11
11
  init_cjs_shims();
@@ -39,10 +39,23 @@ 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
+ }),
42
51
  moduleId: import_core.Flags.string({
43
- char: "m",
44
- description: "moduleId",
45
- required: false
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
+ }
46
59
  }),
47
60
  application: import_core.Flags.string({
48
61
  char: "a",
@@ -62,7 +75,6 @@ Download file with key 'my-key' from my-bucket within my-app to output.txt
62
75
  hidden: true
63
76
  }),
64
77
  manifest: import_core.Flags.string({
65
- char: "M",
66
78
  description: "project manifest",
67
79
  required: false,
68
80
  default: "raindrop.manifest",
@@ -70,22 +82,23 @@ Download file with key 'my-key' from my-bucket within my-app to output.txt
70
82
  })
71
83
  };
72
84
  async run() {
73
- if (this.flags.bucket && this.flags.moduleId) {
74
- this.error("Cannot specify both --bucket and --moduleId flags.");
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.");
75
88
  }
76
- if (this.flags.moduleId && this.flags.application) {
77
- this.error("Cannot specify both --moduleId and --application flags.");
89
+ if (moduleId && this.flags.application) {
90
+ this.error("Cannot specify both --module-id and --application flags.");
78
91
  }
79
- if (!this.flags.bucket && !this.flags.moduleId && !this.flags.application) {
80
- this.error("Must specify one of: --bucket, --moduleId, or --application");
92
+ if (!this.flags.bucket && !moduleId && !this.flags.application) {
93
+ this.error("Must specify one of: --bucket, --module-id, or --application");
81
94
  }
82
95
  const { client: objectService, userId, organizationId } = await this.objectService();
83
96
  let bucketLocation;
84
- if (this.flags.moduleId) {
97
+ if (moduleId) {
85
98
  bucketLocation = {
86
99
  bucketLocation: {
87
100
  case: "moduleId",
88
- value: this.flags.moduleId
101
+ value: moduleId
89
102
  }
90
103
  };
91
104
  } else if (this.flags.application && this.flags.bucket) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-MCRKUPJY.js";
3
+ } from "../../chunk-OZWZILJX.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-G6NE675D.js";
11
+ } from "../../chunk-HMD2JXLE.js";
12
12
 
13
13
  // src/commands/object/list.ts
14
14
  init_cjs_shims();
@@ -33,10 +33,23 @@ List objects in my-bucket within my-app
33
33
  description: "bucket name version can be specified with #, e.g. my-bucket#versionId",
34
34
  required: false
35
35
  }),
36
+ "module-id": import_core.Flags.string({
37
+ description: "module ID (deprecated, use --bucket with smartbucket names)",
38
+ required: false,
39
+ hidden: true,
40
+ deprecated: {
41
+ message: "use --bucket with smartbucket names instead",
42
+ version: "3.0.0"
43
+ }
44
+ }),
36
45
  moduleId: import_core.Flags.string({
37
- char: "m",
38
- description: "moduleId",
39
- required: false
46
+ description: "module ID (deprecated, use --module-id)",
47
+ required: false,
48
+ hidden: true,
49
+ deprecated: {
50
+ message: "use --module-id instead",
51
+ version: "2.0.0"
52
+ }
40
53
  }),
41
54
  application: import_core.Flags.string({
42
55
  char: "a",
@@ -56,7 +69,6 @@ List objects in my-bucket within my-app
56
69
  hidden: true
57
70
  }),
58
71
  manifest: import_core.Flags.string({
59
- char: "M",
60
72
  description: "project manifest",
61
73
  required: false,
62
74
  default: "raindrop.manifest",
@@ -64,22 +76,23 @@ List objects in my-bucket within my-app
64
76
  })
65
77
  };
66
78
  async run() {
67
- if (this.flags.bucket && this.flags.moduleId) {
68
- this.error("Cannot specify both --bucket and --moduleId flags.");
79
+ const moduleId = this.flags["module-id"] || this.flags.moduleId;
80
+ if (this.flags.bucket && moduleId) {
81
+ this.error("Cannot specify both --bucket and --module-id flags.");
69
82
  }
70
- if (this.flags.moduleId && this.flags.application) {
71
- this.error("Cannot specify both --moduleId and --application flags.");
83
+ if (moduleId && this.flags.application) {
84
+ this.error("Cannot specify both --module-id and --application flags.");
72
85
  }
73
- if (!this.flags.bucket && !this.flags.moduleId && !this.flags.application) {
74
- this.error("Must specify one of: --bucket, --moduleId, or --application");
86
+ if (!this.flags.bucket && !moduleId && !this.flags.application) {
87
+ this.error("Must specify one of: --bucket, --module-id, or --application");
75
88
  }
76
89
  const { client: objectService, userId, organizationId } = await this.objectService();
77
90
  let bucketLocation;
78
- if (this.flags.moduleId) {
91
+ if (moduleId) {
79
92
  bucketLocation = {
80
93
  bucketLocation: {
81
94
  case: "moduleId",
82
- value: this.flags.moduleId
95
+ value: moduleId
83
96
  }
84
97
  };
85
98
  } else if (this.flags.application && this.flags.bucket) {
@@ -168,7 +181,7 @@ List objects in my-bucket within my-app
168
181
  });
169
182
  } catch (error) {
170
183
  const err = error;
171
- const location = this.flags.bucket || this.flags.moduleId;
184
+ const location = this.flags.bucket || moduleId;
172
185
  this.error(`Failed to list objects in ${this.flags.bucket ? "bucket" : "module"} ${location}: ${err.message}`);
173
186
  }
174
187
  if (!response.objects?.length) {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-MCRKUPJY.js";
3
+ } from "../../chunk-OZWZILJX.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-G6NE675D.js";
10
+ } from "../../chunk-HMD2JXLE.js";
11
11
 
12
12
  // src/commands/object/put.ts
13
13
  init_cjs_shims();
@@ -42,10 +42,23 @@ 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
+ }),
45
54
  moduleId: import_core.Flags.string({
46
- char: "m",
47
- description: "moduleId",
48
- required: false
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
+ }
49
62
  }),
50
63
  application: import_core.Flags.string({
51
64
  char: "a",
@@ -70,7 +83,6 @@ Upload myfile.txt to my-bucket within my-app with key 'my-key'
70
83
  hidden: true
71
84
  }),
72
85
  manifest: import_core.Flags.string({
73
- char: "M",
74
86
  description: "project manifest",
75
87
  required: false,
76
88
  default: "raindrop.manifest",
@@ -78,22 +90,23 @@ Upload myfile.txt to my-bucket within my-app with key 'my-key'
78
90
  })
79
91
  };
80
92
  async run() {
81
- if (this.flags.bucket && this.flags.moduleId) {
82
- this.error("Cannot specify both --bucket and --moduleId flags.");
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.");
83
96
  }
84
- if (this.flags.moduleId && this.flags.application) {
85
- this.error("Cannot specify both --moduleId and --application flags.");
97
+ if (moduleId && this.flags.application) {
98
+ this.error("Cannot specify both --module-id and --application flags.");
86
99
  }
87
- if (!this.flags.bucket && !this.flags.moduleId && !this.flags.application) {
88
- this.error("Must specify one of: --bucket, --moduleId, or --application");
100
+ if (!this.flags.bucket && !moduleId && !this.flags.application) {
101
+ this.error("Must specify one of: --bucket, --module-id, or --application");
89
102
  }
90
103
  const { client: objectService, userId, organizationId } = await this.objectService();
91
104
  let bucketLocation;
92
- if (this.flags.moduleId) {
105
+ if (moduleId) {
93
106
  bucketLocation = {
94
107
  bucketLocation: {
95
108
  case: "moduleId",
96
- value: this.flags.moduleId
109
+ value: moduleId
97
110
  }
98
111
  };
99
112
  } else if (this.flags.application && this.flags.bucket) {
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  ulid
3
- } from "../../chunk-CDQRD3JA.js";
3
+ } from "../../chunk-FO7VH4GU.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-MCRKUPJY.js";
6
+ } from "../../chunk-OZWZILJX.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-G6NE675D.js";
13
+ } from "../../chunk-HMD2JXLE.js";
14
14
 
15
15
  // src/commands/query/chunk-search.ts
16
16
  init_cjs_shims();
@@ -36,11 +36,25 @@ 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
+ }),
39
49
  moduleIds: import_core.Flags.string({
40
- char: "m",
41
- description: "Module IDs to search in",
50
+ description: "Module IDs to search in (deprecated, use --module-ids)",
42
51
  multiple: true,
43
- required: false
52
+ required: false,
53
+ hidden: true,
54
+ deprecated: {
55
+ message: "use --module-ids instead",
56
+ version: "2.0.0"
57
+ }
44
58
  }),
45
59
  output: import_core.Flags.string({
46
60
  char: "o",
@@ -55,7 +69,6 @@ Run a RAG search query against a Smart Bucket.
55
69
  hidden: true
56
70
  }),
57
71
  manifest: import_core.Flags.string({
58
- char: "M",
59
72
  description: "project manifest",
60
73
  required: false,
61
74
  default: "raindrop.manifest",
@@ -63,8 +76,9 @@ Run a RAG search query against a Smart Bucket.
63
76
  })
64
77
  };
65
78
  async searchAgent(query) {
66
- if (this.flags.buckets?.length && this.flags.moduleIds?.length) {
67
- this.error("Cannot specify both --buckets and --moduleIds flags. Please use only one type of filter.");
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.");
68
82
  }
69
83
  if (this.flags.buckets?.some((bucket) => !bucket.includes("#"))) {
70
84
  await this.loadConfig();
@@ -86,7 +100,7 @@ Run a RAG search query against a Smart Bucket.
86
100
  }
87
101
  };
88
102
  }),
89
- ...(this.flags.moduleIds || []).map((moduleId) => ({
103
+ ...(moduleIds || []).map((moduleId) => ({
90
104
  bucketLocation: {
91
105
  case: "moduleId",
92
106
  value: moduleId