@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,12 +1,13 @@
1
+ import { valueOf } from '@liquidmetal-ai/drizzle/appify/build';
1
2
  import { Flags } from '@oclif/core';
2
3
  import chalk from 'chalk';
3
4
  import { BaseCommand } from '../../../base-command.js';
4
5
  export default class Status extends BaseCommand {
5
6
  static args = {};
6
- static description = 'View WorkOS team information';
7
+ static description = 'View WorkOS team information and get contextual guidance';
7
8
  static examples = [
8
9
  `<%= config.bin %> <%= command.id %>
9
- View WorkOS team status
10
+ View WorkOS team status with contextual guidance
10
11
 
11
12
  <%= config.bin %> <%= command.id %> --output json
12
13
  Get JSON output with team details
@@ -14,6 +15,23 @@ Get JSON output with team details
14
15
  ];
15
16
  static flags = {
16
17
  ...BaseCommand.HIDDEN_FLAGS,
18
+ root: Flags.string({
19
+ char: 'r',
20
+ description: 'root directory',
21
+ required: false,
22
+ default: process.cwd(),
23
+ }),
24
+ manifest: Flags.string({
25
+ char: 'M',
26
+ description: 'project manifest',
27
+ required: false,
28
+ default: 'raindrop.manifest',
29
+ }),
30
+ application: Flags.string({
31
+ char: 'a',
32
+ description: 'application name',
33
+ required: false,
34
+ }),
17
35
  output: Flags.string({
18
36
  char: 'o',
19
37
  description: 'output format',
@@ -23,39 +41,62 @@ Get JSON output with team details
23
41
  };
24
42
  async run() {
25
43
  const { client: workosService, userId, organizationId } = await this.workosIntegrationService();
44
+ // Try to get current app context (optional)
45
+ let currentAppName;
26
46
  try {
27
- const response = await workosService.getTeam({
28
- userId,
29
- organizationId,
30
- });
31
- if (!response.team) {
47
+ const apps = await this.loadManifest();
48
+ const app = apps.find((app) => valueOf(app.name) === this.flags.application) || apps[0];
49
+ if (app) {
50
+ currentAppName = valueOf(app.name);
51
+ }
52
+ }
53
+ catch {
54
+ // Not in a project directory or no manifest - that's okay
55
+ currentAppName = undefined;
56
+ }
57
+ try {
58
+ // Fetch team and environments
59
+ const [teamResponse, environmentsResponse] = await Promise.all([
60
+ workosService.getTeam({ userId, organizationId }),
61
+ workosService.listEnvironments({ userId, organizationId }),
62
+ ]);
63
+ if (!teamResponse.team) {
32
64
  this.error('No WorkOS team found for this organization', { exit: 1 });
33
65
  }
66
+ const environments = environmentsResponse.environments || [];
67
+ const currentAppEnv = currentAppName
68
+ ? environments.find((env) => env.name === currentAppName)
69
+ : undefined;
34
70
  switch (this.flags.output) {
35
71
  case 'json':
36
72
  console.log(JSON.stringify({
37
- id: response.team.id,
38
- name: response.team.name,
39
- createdAt: response.team.createdAt,
40
- updatedAt: response.team.updatedAt,
73
+ team: {
74
+ id: teamResponse.team.id,
75
+ name: teamResponse.team.name,
76
+ createdAt: teamResponse.team.createdAt,
77
+ updatedAt: teamResponse.team.updatedAt,
78
+ },
79
+ environments: environments.map((env) => ({
80
+ name: env.name,
81
+ environmentId: env.environmentId,
82
+ clientId: env.clientId,
83
+ environmentType: env.environmentType,
84
+ })),
85
+ currentApp: currentAppName,
41
86
  }, null, 2));
42
87
  break;
43
88
  case 'table':
44
89
  console.table({
45
- 'Team ID': response.team.id,
46
- 'Team Name': response.team.name,
47
- 'Created': response.team.createdAt ? new Date(Number(response.team.createdAt.seconds) * 1000).toLocaleString() : 'N/A',
48
- 'Updated': response.team.updatedAt ? new Date(Number(response.team.updatedAt.seconds) * 1000).toLocaleString() : 'N/A',
90
+ 'Team ID': teamResponse.team.id,
91
+ 'Team Name': teamResponse.team.name,
92
+ 'Created': teamResponse.team.createdAt ? new Date(Number(teamResponse.team.createdAt.seconds) * 1000).toLocaleString() : 'N/A',
93
+ 'Updated': teamResponse.team.updatedAt ? new Date(Number(teamResponse.team.updatedAt.seconds) * 1000).toLocaleString() : 'N/A',
94
+ 'Environments': environments.length,
49
95
  });
50
96
  break;
51
97
  case 'text':
52
98
  default:
53
- this.log(chalk.bold('WorkOS Team Status'));
54
- this.log('');
55
- this.log(` ${chalk.cyan('Team ID:')} ${response.team.id}`);
56
- this.log(` ${chalk.cyan('Team Name:')} ${response.team.name}`);
57
- this.log(` ${chalk.cyan('Created:')} ${response.team.createdAt ? new Date(Number(response.team.createdAt.seconds) * 1000).toLocaleString() : 'N/A'}`);
58
- this.log(` ${chalk.cyan('Updated:')} ${response.team.updatedAt ? new Date(Number(response.team.updatedAt.seconds) * 1000).toLocaleString() : 'N/A'}`);
99
+ this.renderTextStatus(teamResponse.team, environments, currentAppName, currentAppEnv);
59
100
  break;
60
101
  }
61
102
  }
@@ -67,4 +108,70 @@ Get JSON output with team details
67
108
  this.error(`Failed to get WorkOS team: ${err.message}`, { exit: 1 });
68
109
  }
69
110
  }
111
+ renderTextStatus(team, environments, currentAppName, currentAppEnv) {
112
+ // Team info
113
+ this.log(chalk.bold('WorkOS Team Status'));
114
+ this.log('');
115
+ this.log(` ${chalk.cyan('Team ID:')} ${team.id}`);
116
+ this.log(` ${chalk.cyan('Team Name:')} ${team.name}`);
117
+ this.log(` ${chalk.cyan('Created:')} ${team.createdAt ? new Date(Number(team.createdAt.seconds) * 1000).toLocaleString() : 'N/A'}`);
118
+ this.log(` ${chalk.cyan('Updated:')} ${team.updatedAt ? new Date(Number(team.updatedAt.seconds) * 1000).toLocaleString() : 'N/A'}`);
119
+ this.log('');
120
+ // Environments summary
121
+ if (environments.length > 0) {
122
+ this.log(chalk.bold(`Environments: ${environments.length}`));
123
+ for (const env of environments) {
124
+ const typeStr = env.environmentType === 1 ? 'staging' : 'production';
125
+ const typeColor = env.environmentType === 1 ? chalk.yellow : chalk.green;
126
+ this.log(` • ${chalk.bold(env.name)} ${chalk.dim('(')}${typeColor(typeStr)}${chalk.dim(')')}`);
127
+ }
128
+ this.log('');
129
+ }
130
+ else {
131
+ this.log(chalk.dim('No environments configured'));
132
+ this.log('');
133
+ }
134
+ // Contextual guidance
135
+ this.renderGuidance(environments, currentAppName, currentAppEnv);
136
+ }
137
+ renderGuidance(environments, currentAppName, currentAppEnv) {
138
+ this.log(chalk.bold('→ Next Steps:'));
139
+ if (!currentAppName) {
140
+ // Not in a project directory
141
+ if (environments.length === 0) {
142
+ this.log(chalk.dim(' Navigate to a project directory and run:'));
143
+ this.log(` ${chalk.cyan('raindrop build workos env create')}`);
144
+ }
145
+ else {
146
+ this.log(` • View environment details: ${chalk.cyan('raindrop build workos env list')}`);
147
+ this.log(` • Invite team members: ${chalk.cyan('raindrop build workos invite <email> --role member')}`);
148
+ }
149
+ return;
150
+ }
151
+ // In a project directory
152
+ if (!currentAppEnv) {
153
+ // Current app has no environment
154
+ this.log(chalk.dim(` Current app: ${chalk.bold(currentAppName)} (no WorkOS environment)`));
155
+ this.log('');
156
+ this.log(chalk.bold(' Recommended:'));
157
+ this.log(` Create environment: ${chalk.cyan(`raindrop build workos env create`)}`);
158
+ this.log(chalk.dim(` (defaults to app name "${currentAppName}")`));
159
+ if (environments.length > 0) {
160
+ this.log('');
161
+ this.log(chalk.bold(' Or attach existing environment:'));
162
+ for (const env of environments) {
163
+ this.log(` ${chalk.cyan(`raindrop build workos env attach ${env.name}`)}`);
164
+ }
165
+ }
166
+ }
167
+ else {
168
+ // Current app has an environment
169
+ this.log(chalk.dim(` Current app: ${chalk.bold(currentAppName)}`));
170
+ this.log(chalk.green(` ✓ WorkOS environment configured`));
171
+ this.log('');
172
+ this.log(` • Attach to version: ${chalk.cyan('raindrop build workos env attach')}`);
173
+ this.log(` • View details: ${chalk.cyan('raindrop build workos env get ' + currentAppName)}`);
174
+ this.log(` • Invite members: ${chalk.cyan('raindrop build workos invite <email> --role member')}`);
175
+ }
176
+ }
70
177
  }
@@ -8,6 +8,7 @@ export default class Query extends BaseCommand<typeof Query> {
8
8
  impersonate: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
9
  manifest: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
10
10
  application: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
+ 'version-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
12
  version: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
13
  startTime: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
14
  endTime: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -1 +1 @@
1
- {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/commands/logs/query.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW,CAAC,OAAO,KAAK,CAAC;IAC1D,MAAM,CAAC,IAAI,KAAM;IAEjB,MAAM,CAAC,WAAW,SAA0D;IAE5E,MAAM,CAAC,QAAQ,WAKb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;;;;;;;;;;MAuEV;IAEF,OAAO,CAAC,iBAAiB;IAqBzB,OAAO,CAAC,qBAAqB;IAuBvB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAkH3B"}
1
+ {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/commands/logs/query.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW,CAAC,OAAO,KAAK,CAAC;IAC1D,MAAM,CAAC,IAAI,KAAM;IAEjB,MAAM,CAAC,WAAW,SAA0D;IAE5E,MAAM,CAAC,QAAQ,WAKb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;;;;;;;;;;;MA2EV;IAEF,OAAO,CAAC,iBAAiB;IAqBzB,OAAO,CAAC,qBAAqB;IAuBvB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAqH3B"}
@@ -29,7 +29,6 @@ export default class Query extends BaseCommand {
29
29
  hidden: true,
30
30
  }),
31
31
  manifest: Flags.string({
32
- char: 'm',
33
32
  description: 'project manifest',
34
33
  required: false,
35
34
  default: 'raindrop.manifest',
@@ -40,11 +39,16 @@ export default class Query extends BaseCommand {
40
39
  description: 'application',
41
40
  required: false,
42
41
  }),
43
- version: Flags.string({
42
+ 'version-id': Flags.string({
44
43
  char: 'v',
45
- description: 'application version',
44
+ description: 'application version ID',
46
45
  required: false,
47
46
  }),
47
+ version: Flags.string({
48
+ description: 'application version ID (alias for --version-id)',
49
+ required: false,
50
+ hidden: true,
51
+ }),
48
52
  startTime: Flags.string({
49
53
  char: 's',
50
54
  description: 'start time for query (Unix timestamp in milliseconds or ISO string)',
@@ -125,14 +129,16 @@ export default class Query extends BaseCommand {
125
129
  }
126
130
  }
127
131
  async run() {
132
+ // Normalize flags (support both old and new names)
133
+ let versionId = this.flags['version-id'] || this.flags.version;
128
134
  // Load version from config if not provided
129
135
  const apps = await this.loadManifest();
130
136
  const config = await this.loadConfig();
131
- if (!this.flags.version) {
137
+ if (!versionId) {
132
138
  if (!config.versionId) {
133
139
  this.error('No version provided or found in config', { exit: 1 });
134
140
  }
135
- this.flags.version = config.versionId;
141
+ versionId = config.versionId;
136
142
  }
137
143
  // Load application from manifest if not provided
138
144
  if (!this.flags.application) {
@@ -176,7 +182,7 @@ export default class Query extends BaseCommand {
176
182
  }
177
183
  this.log(`Using organization: ${organizationId}`);
178
184
  this.log(`Using user: ${userId}`);
179
- this.log(`Querying logs for ${this.flags.application}@${this.flags.version}`);
185
+ this.log(`Querying logs for ${this.flags.application}@${versionId}`);
180
186
  this.log(`Time range: ${new Date(startTimeMs).toLocaleString()} - ${new Date(endTimeMs).toLocaleString()}`);
181
187
  this.log('');
182
188
  try {
@@ -188,7 +194,7 @@ export default class Query extends BaseCommand {
188
194
  organizationId,
189
195
  userId,
190
196
  applicationName: this.flags.application,
191
- applicationVersionId: this.flags.version,
197
+ applicationVersionId: versionId,
192
198
  timeQuery,
193
199
  limit: this.flags.limit,
194
200
  ...(this.flags.traceId && { traceId: this.flags.traceId }),
@@ -8,6 +8,7 @@ export default class Tail extends BaseCommand<typeof Tail> {
8
8
  impersonate: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
9
  manifest: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
10
10
  application: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
+ 'version-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
12
  version: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
13
  rainbowAuthService: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
13
14
  raindropCatalogService: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -1 +1 @@
1
- {"version":3,"file":"tail.d.ts","sourceRoot":"","sources":["../../../src/commands/logs/tail.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW,CAAC,OAAO,IAAI,CAAC;IACxD,MAAM,CAAC,IAAI,KAAM;IAEjB,MAAM,CAAC,WAAW,SAAwC;IAE1D,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;;;;MAyCV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAkG3B"}
1
+ {"version":3,"file":"tail.d.ts","sourceRoot":"","sources":["../../../src/commands/logs/tail.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW,CAAC,OAAO,IAAI,CAAC;IACxD,MAAM,CAAC,IAAI,KAAM;IAEjB,MAAM,CAAC,WAAW,SAAwC;IAE1D,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;;;;;MA6CV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAqG3B"}
@@ -27,7 +27,6 @@ export default class Tail extends BaseCommand {
27
27
  hidden: true,
28
28
  }),
29
29
  manifest: Flags.string({
30
- char: 'm',
31
30
  description: 'project manifest',
32
31
  required: false,
33
32
  default: 'raindrop.manifest',
@@ -38,11 +37,16 @@ export default class Tail extends BaseCommand {
38
37
  description: 'application',
39
38
  required: false,
40
39
  }),
41
- version: Flags.string({
40
+ 'version-id': Flags.string({
42
41
  char: 'v',
43
- description: 'application version',
42
+ description: 'application version ID',
44
43
  required: false,
45
44
  }),
45
+ version: Flags.string({
46
+ description: 'application version ID (alias for --version-id)',
47
+ required: false,
48
+ hidden: true,
49
+ }),
46
50
  rainbowAuthService: Flags.string({
47
51
  default: 'https://liquidmetal.run/api/connect',
48
52
  hidden: true,
@@ -55,14 +59,16 @@ export default class Tail extends BaseCommand {
55
59
  }),
56
60
  };
57
61
  async run() {
62
+ // Normalize flags (support both old and new names)
63
+ let versionId = this.flags['version-id'] || this.flags.version;
58
64
  // Load version from config if not provided
59
65
  const apps = await this.loadManifest();
60
66
  const config = await this.loadConfig();
61
- if (!this.flags.version) {
67
+ if (!versionId) {
62
68
  if (!config.versionId) {
63
69
  this.error('No version provided or found in config', { exit: 1 });
64
70
  }
65
- this.flags.version = config.versionId;
71
+ versionId = config.versionId;
66
72
  }
67
73
  // Load application from manifest if not provided
68
74
  if (!this.flags.application) {
@@ -76,14 +82,14 @@ export default class Tail extends BaseCommand {
76
82
  const organizationId = this.flags.impersonate ?? defaultOrganizationId;
77
83
  this.log(`Using organization: ${organizationId}`);
78
84
  this.log(`Using user: ${userId}`);
79
- this.log(`Tailing logs for ${this.flags.application}@${this.flags.version} using Riverjack service...`);
85
+ this.log(`Tailing logs for ${this.flags.application}@${versionId} using Riverjack service...`);
80
86
  this.log('Press Ctrl+C to stop\n');
81
87
  try {
82
88
  const request = create(StreamLogsRequestSchema, {
83
89
  organizationId,
84
90
  userId,
85
91
  applicationName: this.flags.application,
86
- applicationVersionId: this.flags.version,
92
+ applicationVersionId: versionId,
87
93
  });
88
94
  for await (const resp of riverjackService.streamLogs(request)) {
89
95
  if (this.flags.output === 'json') {
@@ -96,7 +102,7 @@ export default class Tail extends BaseCommand {
96
102
  // Skip heartbeat messages in text mode
97
103
  break;
98
104
  case 'stream_started':
99
- this.log(`🔄 Started streaming logs for ${this.flags.application}@${this.flags.version}`);
105
+ this.log(`🔄 Started streaming logs for ${this.flags.application}@${versionId}`);
100
106
  this.log(` Organization: ${organizationId}`);
101
107
  this.log(` User: ${userId}`);
102
108
  if (resp.timestamp) {
@@ -7,6 +7,7 @@ export default class ObjectDelete extends BaseCommand<typeof ObjectDelete> {
7
7
  static examples: string[];
8
8
  static flags: {
9
9
  bucket: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
+ 'module-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
11
  moduleId: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
12
  application: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
13
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
@@ -1 +1 @@
1
- {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/commands/object/delete.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,WAAW,CAAC,OAAO,YAAY,CAAC;IACxE,MAAM,CAAC,IAAI;;MAKT;IAEF,MAAM,CAAC,WAAW,SAA2C;IAE7D,MAAM,CAAC,QAAQ,WAOb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;;;;;MAoCV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAoI3B"}
1
+ {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/commands/object/delete.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,WAAW,CAAC,OAAO,YAAY,CAAC;IACxE,MAAM,CAAC,IAAI;;MAKT;IAEF,MAAM,CAAC,WAAW,SAA2C;IAE7D,MAAM,CAAC,QAAQ,WAOb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;;;;;;MAgDV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAuI3B"}
@@ -25,10 +25,23 @@ Delete file with key 'my-key' from my-bucket within my-app
25
25
  description: 'bucket name version can be specified with #, e.g. my-bucket#versionId',
26
26
  required: false,
27
27
  }),
28
+ 'module-id': Flags.string({
29
+ description: 'module ID (deprecated, use --bucket with smartbucket names)',
30
+ required: false,
31
+ hidden: true,
32
+ deprecated: {
33
+ message: 'use --bucket with smartbucket names instead',
34
+ version: '3.0.0',
35
+ },
36
+ }),
28
37
  moduleId: Flags.string({
29
- char: 'm',
30
- description: 'moduleId',
38
+ description: 'module ID (deprecated, use --module-id)',
31
39
  required: false,
40
+ hidden: true,
41
+ deprecated: {
42
+ message: 'use --module-id instead',
43
+ version: '2.0.0',
44
+ },
32
45
  }),
33
46
  application: Flags.string({
34
47
  char: 'a',
@@ -48,7 +61,6 @@ Delete file with key 'my-key' from my-bucket within my-app
48
61
  hidden: true,
49
62
  }),
50
63
  manifest: Flags.string({
51
- char: 'M',
52
64
  description: 'project manifest',
53
65
  required: false,
54
66
  default: 'raindrop.manifest',
@@ -56,24 +68,26 @@ Delete file with key 'my-key' from my-bucket within my-app
56
68
  }),
57
69
  };
58
70
  async run() {
71
+ // Normalize flags (support both old and new names)
72
+ const moduleId = this.flags['module-id'] || this.flags.moduleId;
59
73
  // Validate flag combinations
60
- if (this.flags.bucket && this.flags.moduleId) {
61
- this.error('Cannot specify both --bucket and --moduleId flags.');
74
+ if (this.flags.bucket && moduleId) {
75
+ this.error('Cannot specify both --bucket and --module-id flags.');
62
76
  }
63
- if (this.flags.moduleId && this.flags.application) {
64
- this.error('Cannot specify both --moduleId and --application flags.');
77
+ if (moduleId && this.flags.application) {
78
+ this.error('Cannot specify both --module-id and --application flags.');
65
79
  }
66
- if (!this.flags.bucket && !this.flags.moduleId && !this.flags.application) {
67
- this.error('Must specify one of: --bucket, --moduleId, or --application');
80
+ if (!this.flags.bucket && !moduleId && !this.flags.application) {
81
+ this.error('Must specify one of: --bucket, --module-id, or --application');
68
82
  }
69
83
  const { client: objectService, userId, organizationId } = await this.objectService();
70
84
  let bucketLocation;
71
- if (this.flags.moduleId) {
85
+ if (moduleId) {
72
86
  // Direct moduleId - simplest case
73
87
  bucketLocation = {
74
88
  bucketLocation: {
75
89
  case: 'moduleId',
76
- value: this.flags.moduleId,
90
+ value: moduleId,
77
91
  },
78
92
  };
79
93
  }
@@ -10,6 +10,7 @@ export default class ObjectGet extends BaseCommand<typeof ObjectGet> {
10
10
  static examples: string[];
11
11
  static flags: {
12
12
  bucket: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
+ 'module-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
14
  moduleId: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
15
  application: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
16
  format: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/commands/object/get.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,WAAW,CAAC,OAAO,SAAS,CAAC;IAClE,MAAM,CAAC,IAAI;;;;;MAST;IAEF,MAAM,CAAC,WAAW,SAA6C;IAE/D,MAAM,CAAC,QAAQ,WAOb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;;;;;MAoCV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA+J3B"}
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/commands/object/get.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,WAAW,CAAC,OAAO,SAAS,CAAC;IAClE,MAAM,CAAC,IAAI;;;;;MAST;IAEF,MAAM,CAAC,WAAW,SAA6C;IAE/D,MAAM,CAAC,QAAQ,WAOb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;;;;;;MAgDV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAkK3B"}
@@ -29,10 +29,23 @@ Download file with key 'my-key' from my-bucket within my-app to output.txt
29
29
  description: 'bucket name version can be specified with #, e.g. my-bucket#versionId',
30
30
  required: false,
31
31
  }),
32
+ 'module-id': Flags.string({
33
+ description: 'module ID (deprecated, use --bucket with smartbucket names)',
34
+ required: false,
35
+ hidden: true,
36
+ deprecated: {
37
+ message: 'use --bucket with smartbucket names instead',
38
+ version: '3.0.0',
39
+ },
40
+ }),
32
41
  moduleId: Flags.string({
33
- char: 'm',
34
- description: 'moduleId',
42
+ description: 'module ID (deprecated, use --module-id)',
35
43
  required: false,
44
+ hidden: true,
45
+ deprecated: {
46
+ message: 'use --module-id instead',
47
+ version: '2.0.0',
48
+ },
36
49
  }),
37
50
  application: Flags.string({
38
51
  char: 'a',
@@ -52,7 +65,6 @@ Download file with key 'my-key' from my-bucket within my-app to output.txt
52
65
  hidden: true,
53
66
  }),
54
67
  manifest: Flags.string({
55
- char: 'M',
56
68
  description: 'project manifest',
57
69
  required: false,
58
70
  default: 'raindrop.manifest',
@@ -60,24 +72,26 @@ Download file with key 'my-key' from my-bucket within my-app to output.txt
60
72
  }),
61
73
  };
62
74
  async run() {
75
+ // Normalize flags (support both old and new names)
76
+ const moduleId = this.flags['module-id'] || this.flags.moduleId;
63
77
  // Validate flag combinations
64
- if (this.flags.bucket && this.flags.moduleId) {
65
- this.error('Cannot specify both --bucket and --moduleId flags.');
78
+ if (this.flags.bucket && moduleId) {
79
+ this.error('Cannot specify both --bucket and --module-id flags.');
66
80
  }
67
- if (this.flags.moduleId && this.flags.application) {
68
- this.error('Cannot specify both --moduleId and --application flags.');
81
+ if (moduleId && this.flags.application) {
82
+ this.error('Cannot specify both --module-id and --application flags.');
69
83
  }
70
- if (!this.flags.bucket && !this.flags.moduleId && !this.flags.application) {
71
- this.error('Must specify one of: --bucket, --moduleId, or --application');
84
+ if (!this.flags.bucket && !moduleId && !this.flags.application) {
85
+ this.error('Must specify one of: --bucket, --module-id, or --application');
72
86
  }
73
87
  const { client: objectService, userId, organizationId } = await this.objectService();
74
88
  let bucketLocation;
75
- if (this.flags.moduleId) {
89
+ if (moduleId) {
76
90
  // Direct moduleId - simplest case
77
91
  bucketLocation = {
78
92
  bucketLocation: {
79
93
  case: 'moduleId',
80
- value: this.flags.moduleId,
94
+ value: moduleId,
81
95
  },
82
96
  };
83
97
  }
@@ -4,6 +4,7 @@ export default class ObjectList extends BaseCommand<typeof ObjectList> {
4
4
  static examples: string[];
5
5
  static flags: {
6
6
  bucket: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
7
+ 'module-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
7
8
  moduleId: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
9
  application: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
10
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/object/list.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,WAAW,CAAC,OAAO,UAAU,CAAC;IACpE,MAAM,CAAC,WAAW,SAA8B;IAEhD,MAAM,CAAC,QAAQ,WAUb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;;;;;MAoCV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAkK3B"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/object/list.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,WAAW,CAAC,OAAO,UAAU,CAAC;IACpE,MAAM,CAAC,WAAW,SAA8B;IAEhD,MAAM,CAAC,QAAQ,WAUb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;;;;;;MAgDV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAqK3B"}
@@ -23,10 +23,23 @@ List objects in my-bucket within my-app
23
23
  description: 'bucket name version can be specified with #, e.g. my-bucket#versionId',
24
24
  required: false,
25
25
  }),
26
+ 'module-id': Flags.string({
27
+ description: 'module ID (deprecated, use --bucket with smartbucket names)',
28
+ required: false,
29
+ hidden: true,
30
+ deprecated: {
31
+ message: 'use --bucket with smartbucket names instead',
32
+ version: '3.0.0',
33
+ },
34
+ }),
26
35
  moduleId: Flags.string({
27
- char: 'm',
28
- description: 'moduleId',
36
+ description: 'module ID (deprecated, use --module-id)',
29
37
  required: false,
38
+ hidden: true,
39
+ deprecated: {
40
+ message: 'use --module-id instead',
41
+ version: '2.0.0',
42
+ },
30
43
  }),
31
44
  application: Flags.string({
32
45
  char: 'a',
@@ -46,7 +59,6 @@ List objects in my-bucket within my-app
46
59
  hidden: true,
47
60
  }),
48
61
  manifest: Flags.string({
49
- char: 'M',
50
62
  description: 'project manifest',
51
63
  required: false,
52
64
  default: 'raindrop.manifest',
@@ -54,24 +66,26 @@ List objects in my-bucket within my-app
54
66
  }),
55
67
  };
56
68
  async run() {
69
+ // Normalize flags (support both old and new names)
70
+ const moduleId = this.flags['module-id'] || this.flags.moduleId;
57
71
  // Validate flag combinations
58
- if (this.flags.bucket && this.flags.moduleId) {
59
- this.error('Cannot specify both --bucket and --moduleId flags.');
72
+ if (this.flags.bucket && moduleId) {
73
+ this.error('Cannot specify both --bucket and --module-id flags.');
60
74
  }
61
- if (this.flags.moduleId && this.flags.application) {
62
- this.error('Cannot specify both --moduleId and --application flags.');
75
+ if (moduleId && this.flags.application) {
76
+ this.error('Cannot specify both --module-id and --application flags.');
63
77
  }
64
- if (!this.flags.bucket && !this.flags.moduleId && !this.flags.application) {
65
- this.error('Must specify one of: --bucket, --moduleId, or --application');
78
+ if (!this.flags.bucket && !moduleId && !this.flags.application) {
79
+ this.error('Must specify one of: --bucket, --module-id, or --application');
66
80
  }
67
81
  const { client: objectService, userId, organizationId } = await this.objectService();
68
82
  let bucketLocation;
69
- if (this.flags.moduleId) {
83
+ if (moduleId) {
70
84
  // Direct moduleId - simplest case
71
85
  bucketLocation = {
72
86
  bucketLocation: {
73
87
  case: 'moduleId',
74
- value: this.flags.moduleId,
88
+ value: moduleId,
75
89
  },
76
90
  };
77
91
  }
@@ -172,7 +186,7 @@ List objects in my-bucket within my-app
172
186
  }
173
187
  catch (error) {
174
188
  const err = error;
175
- const location = this.flags.bucket || this.flags.moduleId;
189
+ const location = this.flags.bucket || moduleId;
176
190
  this.error(`Failed to list objects in ${this.flags.bucket ? 'bucket' : 'module'} ${location}: ${err.message}`);
177
191
  }
178
192
  if (!response.objects?.length) {
@@ -10,6 +10,7 @@ export default class ObjectPut extends BaseCommand<typeof ObjectPut> {
10
10
  static examples: string[];
11
11
  static flags: {
12
12
  bucket: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
+ 'module-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
14
  moduleId: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
15
  application: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
16
  contentType: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -1 +1 @@
1
- {"version":3,"file":"put.d.ts","sourceRoot":"","sources":["../../../src/commands/object/put.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,WAAW,CAAC,OAAO,SAAS,CAAC;IAClE,MAAM,CAAC,IAAI;;;;;MAUT;IAEF,MAAM,CAAC,WAAW,SAAyC;IAE3D,MAAM,CAAC,QAAQ,WAOb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;;;;;;MAyCV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IA8I1B,OAAO,CAAC,cAAc;CAevB"}
1
+ {"version":3,"file":"put.d.ts","sourceRoot":"","sources":["../../../src/commands/object/put.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,WAAW,CAAC,OAAO,SAAS,CAAC;IAClE,MAAM,CAAC,IAAI;;;;;MAUT;IAEF,MAAM,CAAC,WAAW,SAAyC;IAE3D,MAAM,CAAC,QAAQ,WAOb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;;;;;;;MAqDV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAiJ1B,OAAO,CAAC,cAAc;CAevB"}