@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
@@ -3,11 +3,11 @@ import {
3
3
  getStatus,
4
4
  statusString,
5
5
  watchStatus
6
- } from "../../chunk-NG7CZTTE.js";
7
- import "../../chunk-MVQYQJHI.js";
6
+ } from "../../chunk-HEOY5F6W.js";
7
+ import "../../chunk-6GTBXHHK.js";
8
8
  import {
9
9
  BaseCommand
10
- } from "../../chunk-MCRKUPJY.js";
10
+ } from "../../chunk-OZWZILJX.js";
11
11
  import {
12
12
  StatusResponseSchema,
13
13
  __commonJS,
@@ -17,7 +17,7 @@ import {
17
17
  require_lib,
18
18
  require_string_width,
19
19
  toJsonString
20
- } from "../../chunk-G6NE675D.js";
20
+ } from "../../chunk-HMD2JXLE.js";
21
21
 
22
22
  // ../../node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/debug.js
23
23
  var require_debug = __commonJS({
@@ -1753,7 +1753,6 @@ var Status = class _Status extends BaseCommand {
1753
1753
  ...BaseCommand.HIDDEN_FLAGS,
1754
1754
  root: import_core.Flags.string({ char: "r", description: "root directory", required: false, default: process.cwd() }),
1755
1755
  manifest: import_core.Flags.string({
1756
- char: "M",
1757
1756
  description: "project manifest",
1758
1757
  required: false,
1759
1758
  default: "raindrop.manifest"
@@ -1763,11 +1762,16 @@ var Status = class _Status extends BaseCommand {
1763
1762
  description: "application",
1764
1763
  required: false
1765
1764
  }),
1766
- version: import_core.Flags.string({
1765
+ "version-id": import_core.Flags.string({
1767
1766
  char: "v",
1768
- description: "application version",
1767
+ description: "application version ID",
1769
1768
  required: false
1770
1769
  }),
1770
+ version: import_core.Flags.string({
1771
+ description: "application version ID (alias for --version-id)",
1772
+ required: false,
1773
+ hidden: true
1774
+ }),
1771
1775
  output: import_core.Flags.string({
1772
1776
  char: "o",
1773
1777
  description: "output format",
@@ -1790,19 +1794,20 @@ var Status = class _Status extends BaseCommand {
1790
1794
  };
1791
1795
  async run() {
1792
1796
  const flags = (await this.parse(_Status)).flags;
1797
+ const versionId = flags["version-id"] || flags.version;
1793
1798
  const status = await getStatus({
1794
1799
  command: this,
1795
1800
  root: flags.root,
1796
1801
  manifest: flags.manifest,
1797
1802
  applicationName: flags.application,
1798
- versionId: flags.version,
1803
+ versionId,
1799
1804
  impersonate: flags.impersonate
1800
1805
  });
1801
1806
  if (flags.output === "compact") {
1802
1807
  const applicationName = flags.application || (await this.loadManifest())[0]?.name.value || "unknown";
1803
- const versionId = flags.version || (await this.loadConfig()).versionId;
1808
+ const displayVersionId = versionId || (await this.loadConfig()).versionId;
1804
1809
  const renderer = new StatusRenderer();
1805
- renderer.renderCompact(status, applicationName, versionId);
1810
+ renderer.renderCompact(status, applicationName, displayVersionId);
1806
1811
  return;
1807
1812
  }
1808
1813
  if (flags.output === "table") {
@@ -1828,7 +1833,7 @@ var Status = class _Status extends BaseCommand {
1828
1833
  root: flags.root,
1829
1834
  manifest: flags.manifest,
1830
1835
  applicationName: flags.application,
1831
- versionId: flags.version,
1836
+ versionId,
1832
1837
  impersonate: flags.impersonate
1833
1838
  });
1834
1839
  }
@@ -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
  valueOf
9
- } from "../../chunk-G6NE675D.js";
9
+ } from "../../chunk-HMD2JXLE.js";
10
10
 
11
11
  // src/commands/build/stop.ts
12
12
  init_cjs_shims();
@@ -23,7 +23,6 @@ Stop a Raindrop application.
23
23
  ...BaseCommand.HIDDEN_FLAGS,
24
24
  root: import_core.Flags.string({ char: "r", description: "root directory", required: false, default: process.cwd() }),
25
25
  manifest: import_core.Flags.string({
26
- char: "M",
27
26
  description: "project manifest",
28
27
  required: false,
29
28
  default: "raindrop.manifest"
@@ -33,11 +32,16 @@ Stop a Raindrop application.
33
32
  description: "application to stop",
34
33
  required: false
35
34
  }),
36
- version: import_core.Flags.string({
35
+ "version-id": import_core.Flags.string({
37
36
  char: "v",
38
- description: "application version to start",
37
+ description: "application version ID to stop",
39
38
  required: false
40
39
  }),
40
+ version: import_core.Flags.string({
41
+ description: "application version ID to stop (alias for --version-id)",
42
+ required: false,
43
+ hidden: true
44
+ }),
41
45
  impersonate: import_core.Flags.string({
42
46
  char: "i",
43
47
  description: "impersonate organization",
@@ -61,7 +65,7 @@ Stop a Raindrop application.
61
65
  }
62
66
  applicationName = valueOf(app.name);
63
67
  }
64
- const currentVersionId = this.flags.version ?? config.versionId;
68
+ const currentVersionId = (this.flags["version-id"] || this.flags.version) ?? config.versionId;
65
69
  if (!currentVersionId) {
66
70
  this.error("Expected a --version flag to be provided when a version is not currently set");
67
71
  }
@@ -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/build/tools/check.ts
11
11
  init_cjs_shims();
@@ -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
  Parser,
6
6
  Tokenizer,
@@ -8,7 +8,7 @@ import {
8
8
  fmt,
9
9
  init_cjs_shims,
10
10
  require_lib
11
- } from "../../../chunk-G6NE675D.js";
11
+ } from "../../../chunk-HMD2JXLE.js";
12
12
 
13
13
  // src/commands/build/tools/fmt.ts
14
14
  init_cjs_shims();
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  sandbox
3
- } from "../../chunk-XYJACVNA.js";
4
- import "../../chunk-MGM2L2T3.js";
5
- import "../../chunk-VXAZKB3J.js";
6
- import "../../chunk-W2L3MYN6.js";
7
- import "../../chunk-PU4RCSXF.js";
3
+ } from "../../chunk-YDVG2SA2.js";
4
+ import "../../chunk-OROAB5YF.js";
5
+ import "../../chunk-DOTQ3CSX.js";
6
+ import "../../chunk-AKNNZNIC.js";
7
+ import "../../chunk-ZQQFKWNC.js";
8
8
  import {
9
9
  BaseCommand
10
- } from "../../chunk-MCRKUPJY.js";
10
+ } from "../../chunk-OZWZILJX.js";
11
11
  import {
12
12
  __toESM,
13
13
  init_cjs_shims,
14
14
  require_lib
15
- } from "../../chunk-G6NE675D.js";
15
+ } from "../../chunk-HMD2JXLE.js";
16
16
 
17
17
  // src/commands/build/unsandbox.ts
18
18
  init_cjs_shims();
@@ -33,20 +33,26 @@ var Unsandbox = class extends BaseCommand {
33
33
  hidden: true
34
34
  }),
35
35
  manifest: import_core.Flags.string({ default: "raindrop.manifest", description: "project manifest" }),
36
- version: import_core.Flags.string({
36
+ "version-id": import_core.Flags.string({
37
37
  char: "v",
38
- description: "application version to unsandbox",
38
+ description: "application version ID to unsandbox",
39
39
  required: false
40
+ }),
41
+ version: import_core.Flags.string({
42
+ description: "application version ID to unsandbox (alias for --version-id)",
43
+ required: false,
44
+ hidden: true
40
45
  })
41
46
  };
42
47
  async run() {
48
+ const versionId = this.flags["version-id"] || this.flags.version;
43
49
  let applications;
44
50
  try {
45
51
  applications = await sandbox({
46
52
  command: this,
47
53
  isSandboxed: false,
48
54
  impersonate: this.flags.impersonate,
49
- versionId: this.flags.version
55
+ versionId
50
56
  });
51
57
  } catch (error) {
52
58
  if (error instanceof Error) {
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  FileSystemBundle,
3
3
  archive
4
- } from "../../chunk-MGM2L2T3.js";
4
+ } from "../../chunk-OROAB5YF.js";
5
5
  import {
6
6
  buildHandlers
7
- } from "../../chunk-VXAZKB3J.js";
8
- import "../../chunk-W2L3MYN6.js";
7
+ } from "../../chunk-DOTQ3CSX.js";
8
+ import "../../chunk-AKNNZNIC.js";
9
9
  import {
10
10
  BaseCommand
11
- } from "../../chunk-MCRKUPJY.js";
11
+ } from "../../chunk-OZWZILJX.js";
12
12
  import {
13
13
  BundleArchiveType,
14
14
  __toESM,
15
15
  init_cjs_shims,
16
16
  require_lib,
17
17
  valueOf
18
- } from "../../chunk-G6NE675D.js";
18
+ } from "../../chunk-HMD2JXLE.js";
19
19
 
20
20
  // src/commands/build/upload.ts
21
21
  init_cjs_shims();
@@ -29,13 +29,26 @@ var Upload = class extends BaseCommand {
29
29
  ...BaseCommand.HIDDEN_FLAGS,
30
30
  root: import_core.Flags.string({ char: "r", description: "root directory", required: false, default: process.cwd() }),
31
31
  manifest: import_core.Flags.string({
32
- char: "M",
33
32
  description: "project manifest",
34
33
  required: false,
35
34
  default: "raindrop.manifest"
36
35
  }),
37
36
  output: import_core.Flags.string({ char: "o", description: "output directory", required: false, default: "dist" }),
38
- versionId: import_core.Flags.string({ char: "v", description: "version ID", required: true }),
37
+ "version-id": import_core.Flags.string({ char: "v", description: "version ID", required: true }),
38
+ version: import_core.Flags.string({
39
+ description: "version ID (alias for --version-id)",
40
+ required: false,
41
+ hidden: true
42
+ }),
43
+ versionId: import_core.Flags.string({
44
+ description: "version ID (deprecated, use --version-id)",
45
+ required: false,
46
+ hidden: true,
47
+ deprecated: {
48
+ message: "use --version-id instead",
49
+ version: "2.0.0"
50
+ }
51
+ }),
39
52
  impersonate: import_core.Flags.string({
40
53
  char: "i",
41
54
  description: "impersonate organization",
@@ -50,6 +63,7 @@ var Upload = class extends BaseCommand {
50
63
  const { client: catalogService, organizationId: defaultOrganizationId, userId } = await this.catalogService();
51
64
  const organizationId = this.flags.impersonate ?? defaultOrganizationId;
52
65
  const config = await this.loadConfig();
66
+ const versionId = this.flags["version-id"] || this.flags.version || this.flags.versionId || config.versionId || "";
53
67
  const app = apps[0];
54
68
  if (!app) {
55
69
  this.error("No application found in manifest", { exit: 1 });
@@ -60,7 +74,7 @@ var Upload = class extends BaseCommand {
60
74
  userId,
61
75
  organizationId,
62
76
  applicationName: valueOf(app.name),
63
- applicationVersionId: this.flags.versionId || config.versionId || "",
77
+ applicationVersionId: versionId,
64
78
  archiveType: BundleArchiveType.ZIP,
65
79
  bundleName: valueOf(handler.name),
66
80
  archive: Buffer.from(await archive(bundle))
@@ -71,7 +85,7 @@ var Upload = class extends BaseCommand {
71
85
  userId,
72
86
  organizationId,
73
87
  applicationName: valueOf(app.name),
74
- applicationVersionId: this.flags.versionId || config.versionId || "",
88
+ applicationVersionId: versionId,
75
89
  archiveType: BundleArchiveType.ZIP,
76
90
  bundleName: "db",
77
91
  archive: Buffer.from(await archive(dbBundle))
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  buildHandlers
3
- } from "../../chunk-VXAZKB3J.js";
4
- import "../../chunk-W2L3MYN6.js";
3
+ } from "../../chunk-DOTQ3CSX.js";
4
+ import "../../chunk-AKNNZNIC.js";
5
5
  import {
6
6
  BaseCommand
7
- } from "../../chunk-MCRKUPJY.js";
7
+ } from "../../chunk-OZWZILJX.js";
8
8
  import {
9
9
  __toESM,
10
10
  init_cjs_shims,
11
11
  require_lib
12
- } from "../../chunk-G6NE675D.js";
12
+ } from "../../chunk-HMD2JXLE.js";
13
13
 
14
14
  // src/commands/build/validate.ts
15
15
  init_cjs_shims();
@@ -35,7 +35,7 @@ var Build = class extends BaseCommand {
35
35
  static flags = {
36
36
  root: import_core.Flags.string({ char: "r", description: "root directory", required: false, default: process.cwd() }),
37
37
  manifest: import_core.Flags.string({
38
- char: "M",
38
+ char: "m",
39
39
  description: "project manifest",
40
40
  required: false,
41
41
  default: "raindrop.manifest"
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  source_default
3
- } from "../../../chunk-MVQYQJHI.js";
3
+ } from "../../../chunk-6GTBXHHK.js";
4
4
  import {
5
5
  esm_default
6
- } from "../../../chunk-5GH4FS6C.js";
6
+ } from "../../../chunk-A26NDSVL.js";
7
7
  import {
8
8
  BaseCommand
9
- } from "../../../chunk-MCRKUPJY.js";
9
+ } from "../../../chunk-OZWZILJX.js";
10
10
  import {
11
11
  __toESM,
12
12
  init_cjs_shims,
13
13
  require_lib
14
- } from "../../../chunk-G6NE675D.js";
14
+ } from "../../../chunk-HMD2JXLE.js";
15
15
 
16
16
  // src/commands/build/workos/delete.ts
17
17
  init_cjs_shims();
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  source_default
3
- } from "../../../../chunk-MVQYQJHI.js";
3
+ } from "../../../../chunk-6GTBXHHK.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../../../chunk-MCRKUPJY.js";
6
+ } from "../../../../chunk-OZWZILJX.js";
7
7
  import {
8
8
  __toESM,
9
9
  init_cjs_shims,
10
10
  require_lib,
11
11
  valueOf
12
- } from "../../../../chunk-G6NE675D.js";
12
+ } from "../../../../chunk-HMD2JXLE.js";
13
13
 
14
14
  // src/commands/build/workos/env/attach.ts
15
15
  init_cjs_shims();
@@ -29,7 +29,7 @@ Attach environment with same name as application
29
29
  <%= config.bin %> <%= command.id %> my-env
30
30
  Attach specific environment
31
31
 
32
- <%= config.bin %> <%= command.id %> my-env --application my-app --versionId abc123
32
+ <%= config.bin %> <%= command.id %> my-env --application my-app --version-id abc123
33
33
  Attach to specific application and version
34
34
  `
35
35
  ];
@@ -42,7 +42,6 @@ Attach to specific application and version
42
42
  default: process.cwd()
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"
@@ -52,12 +51,25 @@ Attach to specific application and version
52
51
  description: "application name",
53
52
  required: false
54
53
  }),
55
- versionId: import_core.Flags.string({
54
+ "version-id": import_core.Flags.string({
56
55
  char: "v",
57
- aliases: ["version"],
58
56
  description: "version ID",
59
57
  required: false
60
58
  }),
59
+ version: import_core.Flags.string({
60
+ description: "alias for --version-id",
61
+ required: false,
62
+ hidden: true
63
+ }),
64
+ versionId: import_core.Flags.string({
65
+ description: "versionId is deprecated, use --version-id",
66
+ required: false,
67
+ hidden: true,
68
+ deprecated: {
69
+ message: "use --version-id instead",
70
+ version: "2.0.0"
71
+ }
72
+ }),
61
73
  output: import_core.Flags.string({
62
74
  char: "o",
63
75
  description: "output format",
@@ -74,7 +86,7 @@ Attach to specific application and version
74
86
  const applicationName = valueOf(app.name);
75
87
  const environmentName = this.args.envName || applicationName;
76
88
  const config = await this.loadConfig();
77
- const versionId = this.flags.versionId || config.versionId;
89
+ const versionId = this.flags["version-id"] || this.flags.version || this.flags.versionId || config.versionId;
78
90
  if (!versionId) {
79
91
  this.error(
80
92
  "No version ID found. Deploy your application first with: raindrop build deploy",
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  source_default
3
- } from "../../../../chunk-MVQYQJHI.js";
3
+ } from "../../../../chunk-6GTBXHHK.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../../../chunk-MCRKUPJY.js";
6
+ } from "../../../../chunk-OZWZILJX.js";
7
7
  import {
8
8
  EnvironmentType,
9
9
  __toESM,
10
10
  init_cjs_shims,
11
11
  require_lib,
12
12
  valueOf
13
- } from "../../../../chunk-G6NE675D.js";
13
+ } from "../../../../chunk-HMD2JXLE.js";
14
14
 
15
15
  // src/commands/build/workos/env/create.ts
16
16
  init_cjs_shims();
@@ -49,7 +49,6 @@ Get JSON output
49
49
  default: process.cwd()
50
50
  }),
51
51
  manifest: import_core.Flags.string({
52
- char: "M",
53
52
  description: "project manifest",
54
53
  required: false,
55
54
  default: "raindrop.manifest"
@@ -59,20 +58,42 @@ Get JSON output
59
58
  description: "application name",
60
59
  required: false
61
60
  }),
62
- versionId: import_core.Flags.string({
61
+ "version-id": import_core.Flags.string({
63
62
  char: "v",
64
- aliases: ["version"],
65
63
  description: "version ID",
66
64
  required: false
67
65
  }),
66
+ version: import_core.Flags.string({
67
+ description: "alias for --version-id",
68
+ required: false,
69
+ hidden: true
70
+ }),
71
+ versionId: import_core.Flags.string({
72
+ description: "versionId is deprecated, use --version-id",
73
+ required: false,
74
+ hidden: true,
75
+ deprecated: {
76
+ message: "use --version-id instead",
77
+ version: "2.0.0"
78
+ }
79
+ }),
68
80
  name: import_core.Flags.string({
69
81
  description: "primary organization name (optional if cached)",
70
82
  required: false
71
83
  }),
72
- noattach: import_core.Flags.boolean({
84
+ "no-attach": import_core.Flags.boolean({
73
85
  description: "do not attach environment to current version after creation",
74
86
  default: false
75
87
  }),
88
+ noattach: import_core.Flags.boolean({
89
+ description: "noattach is deprecated, use --no-attach",
90
+ default: false,
91
+ hidden: true,
92
+ deprecated: {
93
+ message: "use --no-attach instead",
94
+ version: "2.0.0"
95
+ }
96
+ }),
76
97
  output: import_core.Flags.string({
77
98
  char: "o",
78
99
  description: "output format",
@@ -97,17 +118,25 @@ Get JSON output
97
118
  environmentType: EnvironmentType.STAGING,
98
119
  primaryOrganizationName: this.flags.name
99
120
  });
121
+ const noAttach = this.flags["no-attach"] || this.flags.noattach;
122
+ const versionId = this.flags["version-id"] || this.flags.version || this.flags.versionId;
123
+ const envResponse = await workosService.getEnvironment({
124
+ userId,
125
+ organizationId,
126
+ environmentName
127
+ });
128
+ const environmentId = envResponse.environment?.environmentId;
100
129
  let attached = false;
101
- if (!this.flags.noattach) {
130
+ if (!noAttach) {
102
131
  try {
103
132
  const config = await this.loadConfig();
104
- const versionId = this.flags.versionId || config.versionId;
105
- if (versionId) {
133
+ const finalVersionId = versionId || config.versionId;
134
+ if (finalVersionId) {
106
135
  await workosService.attachEnvironmentToVersion({
107
136
  userId,
108
137
  organizationId,
109
138
  applicationName,
110
- versionId,
139
+ versionId: finalVersionId,
111
140
  environmentName
112
141
  });
113
142
  attached = true;
@@ -127,6 +156,7 @@ Get JSON output
127
156
  {
128
157
  success: true,
129
158
  environmentName,
159
+ environmentId,
130
160
  environmentType: "staging",
131
161
  attached,
132
162
  applicationName
@@ -150,6 +180,25 @@ Get JSON output
150
180
  if (attached) {
151
181
  this.log(source_default.dim("Environment has been attached to the current version."));
152
182
  }
183
+ this.log("");
184
+ this.log(source_default.bold.yellow("Next Steps - Required Configuration:"));
185
+ this.log("");
186
+ if (environmentId) {
187
+ this.log(
188
+ source_default.cyan("1. Configure Auth Redirects:") + "\n " + source_default.underline(`https://dashboard.workos.com/${environmentId}/redirects`)
189
+ );
190
+ this.log(source_default.dim(" Add your application redirect URIs for authentication flows"));
191
+ this.log("");
192
+ this.log(
193
+ source_default.cyan("2. Configure CORS for Sessions:") + "\n " + source_default.underline(`https://dashboard.workos.com/${environmentId}/authentication/sessions`)
194
+ );
195
+ this.log(source_default.dim(" Add allowed origins for frontend applications"));
196
+ this.log("");
197
+ }
198
+ this.log(source_default.cyan("3. Implement CORS Hook:"));
199
+ this.log(source_default.dim(" Ensure your Raindrop application has a CORS hook configured"));
200
+ this.log(source_default.dim(" This is required for frontend clients to communicate with your API"));
201
+ this.log("");
153
202
  this.log(source_default.dim("View details with: raindrop build workos env get " + environmentName));
154
203
  break;
155
204
  }
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  source_default
3
- } from "../../../../chunk-MVQYQJHI.js";
3
+ } from "../../../../chunk-6GTBXHHK.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../../../chunk-MCRKUPJY.js";
6
+ } from "../../../../chunk-OZWZILJX.js";
7
7
  import {
8
8
  __toESM,
9
9
  init_cjs_shims,
10
10
  require_lib
11
- } from "../../../../chunk-G6NE675D.js";
11
+ } from "../../../../chunk-HMD2JXLE.js";
12
12
 
13
13
  // src/commands/build/workos/env/delete.ts
14
14
  init_cjs_shims();
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  source_default
3
- } from "../../../../chunk-MVQYQJHI.js";
3
+ } from "../../../../chunk-6GTBXHHK.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../../../chunk-MCRKUPJY.js";
6
+ } from "../../../../chunk-OZWZILJX.js";
7
7
  import {
8
8
  __toESM,
9
9
  init_cjs_shims,
10
10
  require_lib,
11
11
  valueOf
12
- } from "../../../../chunk-G6NE675D.js";
12
+ } from "../../../../chunk-HMD2JXLE.js";
13
13
 
14
14
  // src/commands/build/workos/env/detach.ts
15
15
  init_cjs_shims();
@@ -20,7 +20,7 @@ var Detach = class extends BaseCommand {
20
20
  `<%= config.bin %> <%= command.id %>
21
21
  Detach WorkOS environment from current version
22
22
 
23
- <%= config.bin %> <%= command.id %> --application my-app --versionId abc123
23
+ <%= config.bin %> <%= command.id %> --application my-app --version-id abc123
24
24
  Detach from specific application and version
25
25
  `
26
26
  ];
@@ -33,7 +33,6 @@ Detach from specific application and version
33
33
  default: process.cwd()
34
34
  }),
35
35
  manifest: import_core.Flags.string({
36
- char: "M",
37
36
  description: "project manifest",
38
37
  required: false,
39
38
  default: "raindrop.manifest"
@@ -43,12 +42,25 @@ Detach from specific application and version
43
42
  description: "application name",
44
43
  required: false
45
44
  }),
46
- versionId: import_core.Flags.string({
45
+ "version-id": import_core.Flags.string({
47
46
  char: "v",
48
- aliases: ["version"],
49
47
  description: "version ID",
50
48
  required: false
51
49
  }),
50
+ version: import_core.Flags.string({
51
+ description: "alias for --version-id",
52
+ required: false,
53
+ hidden: true
54
+ }),
55
+ versionId: import_core.Flags.string({
56
+ description: "versionId is deprecated, use --version-id",
57
+ required: false,
58
+ hidden: true,
59
+ deprecated: {
60
+ message: "use --version-id instead",
61
+ version: "2.0.0"
62
+ }
63
+ }),
52
64
  output: import_core.Flags.string({
53
65
  char: "o",
54
66
  description: "output format",
@@ -64,7 +76,7 @@ Detach from specific application and version
64
76
  }
65
77
  const applicationName = valueOf(app.name);
66
78
  const config = await this.loadConfig();
67
- const versionId = this.flags.versionId || config.versionId;
79
+ const versionId = this.flags["version-id"] || this.flags.version || this.flags.versionId || config.versionId;
68
80
  if (!versionId) {
69
81
  this.error(
70
82
  "No version ID found. Deploy your application first with: raindrop build deploy",