@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
  parseMRN
3
- } from "../../chunk-AU3EGGJP.js";
3
+ } from "../../chunk-KGZ7KWP4.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-MCRKUPJY.js";
6
+ } from "../../chunk-OZWZILJX.js";
7
7
  import {
8
8
  AnnotationLocatorSchema,
9
9
  GetAnnotationRequestSchema,
@@ -12,7 +12,7 @@ import {
12
12
  init_cjs_shims,
13
13
  require_lib,
14
14
  valueOf
15
- } from "../../chunk-G6NE675D.js";
15
+ } from "../../chunk-HMD2JXLE.js";
16
16
 
17
17
  // src/commands/annotation/get.ts
18
18
  init_cjs_shims();
@@ -51,7 +51,7 @@ Get annotation by partial MRN and output as JSON
51
51
  hidden: true
52
52
  }),
53
53
  manifest: import_core.Flags.string({
54
- char: "M",
54
+ char: "m",
55
55
  description: "project manifest",
56
56
  required: false,
57
57
  default: "raindrop.manifest",
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  parseMRN
3
- } from "../../chunk-AU3EGGJP.js";
3
+ } from "../../chunk-KGZ7KWP4.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-MCRKUPJY.js";
6
+ } from "../../chunk-OZWZILJX.js";
7
7
  import {
8
8
  AnnotationLocatorSchema,
9
9
  ListAnnotationsRequestSchema,
@@ -12,7 +12,7 @@ import {
12
12
  init_cjs_shims,
13
13
  require_lib,
14
14
  valueOf
15
- } from "../../chunk-G6NE675D.js";
15
+ } from "../../chunk-HMD2JXLE.js";
16
16
 
17
17
  // src/commands/annotation/list.ts
18
18
  init_cjs_shims();
@@ -56,7 +56,7 @@ List annotations for a specific module using full MRN prefix in JSON format
56
56
  hidden: true
57
57
  }),
58
58
  manifest: import_core.Flags.string({
59
- char: "M",
59
+ char: "m",
60
60
  description: "project manifest",
61
61
  required: false,
62
62
  default: "raindrop.manifest",
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  parseMRN
3
- } from "../../chunk-AU3EGGJP.js";
3
+ } from "../../chunk-KGZ7KWP4.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-MCRKUPJY.js";
6
+ } from "../../chunk-OZWZILJX.js";
7
7
  import {
8
8
  AnnotationLocatorSchema,
9
9
  PutAnnotationRequestSchema,
@@ -12,7 +12,7 @@ import {
12
12
  init_cjs_shims,
13
13
  require_lib,
14
14
  valueOf
15
- } from "../../chunk-G6NE675D.js";
15
+ } from "../../chunk-HMD2JXLE.js";
16
16
 
17
17
  // src/commands/annotation/put.ts
18
18
  init_cjs_shims();
@@ -56,7 +56,7 @@ Create an annotation from stdin using partial MRN
56
56
  hidden: true
57
57
  }),
58
58
  manifest: import_core.Flags.string({
59
- char: "M",
59
+ char: "m",
60
60
  description: "project manifest",
61
61
  required: false,
62
62
  default: "raindrop.manifest",
@@ -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
  readState,
8
8
  require_lib
9
- } from "../../chunk-G6NE675D.js";
9
+ } from "../../chunk-HMD2JXLE.js";
10
10
 
11
11
  // src/commands/auth/list.ts
12
12
  init_cjs_shims();
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  spinner
3
- } from "../../chunk-PU4RCSXF.js";
3
+ } from "../../chunk-ZQQFKWNC.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-MCRKUPJY.js";
6
+ } from "../../chunk-OZWZILJX.js";
7
7
  import {
8
8
  __commonJS,
9
9
  __toESM,
@@ -12,7 +12,7 @@ import {
12
12
  replaceState,
13
13
  require_lib,
14
14
  timestampDate
15
- } from "../../chunk-G6NE675D.js";
15
+ } from "../../chunk-HMD2JXLE.js";
16
16
 
17
17
  // ../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QRMode.js
18
18
  var require_QRMode = __commonJS({
@@ -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
  init_cjs_shims,
6
6
  readState,
7
7
  replaceState
8
- } from "../../chunk-G6NE675D.js";
8
+ } from "../../chunk-HMD2JXLE.js";
9
9
 
10
10
  // src/commands/auth/logout.ts
11
11
  init_cjs_shims();
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  esm_default2 as esm_default
3
- } from "../../chunk-5GH4FS6C.js";
3
+ } from "../../chunk-A26NDSVL.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
  readState,
11
11
  replaceState,
12
12
  require_lib
13
- } from "../../chunk-G6NE675D.js";
13
+ } from "../../chunk-HMD2JXLE.js";
14
14
 
15
15
  // src/commands/auth/select.ts
16
16
  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
  CreateCredentialResponseSchema,
6
6
  __toESM,
@@ -10,7 +10,7 @@ import {
10
10
  timestampFromDate,
11
11
  toJsonString,
12
12
  valueOf
13
- } from "../../chunk-G6NE675D.js";
13
+ } from "../../chunk-HMD2JXLE.js";
14
14
 
15
15
  // src/commands/bucket/create-credential.ts
16
16
  init_cjs_shims();
@@ -75,7 +75,7 @@ Create a credential using a direct API URL
75
75
  hidden: true
76
76
  }),
77
77
  manifest: import_core.Flags.string({
78
- char: "M",
78
+ char: "m",
79
79
  description: "project manifest",
80
80
  required: false,
81
81
  default: "raindrop.manifest",
@@ -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
  DeleteCredentialResponseSchema,
6
6
  __toESM,
@@ -8,7 +8,7 @@ import {
8
8
  require_lib,
9
9
  toJsonString,
10
10
  valueOf
11
- } from "../../chunk-G6NE675D.js";
11
+ } from "../../chunk-HMD2JXLE.js";
12
12
 
13
13
  // src/commands/bucket/delete-credential.ts
14
14
  init_cjs_shims();
@@ -65,7 +65,7 @@ Delete credential using a direct API URL
65
65
  hidden: true
66
66
  }),
67
67
  manifest: import_core.Flags.string({
68
- char: "M",
68
+ char: "m",
69
69
  description: "project manifest",
70
70
  required: false,
71
71
  default: "raindrop.manifest",
@@ -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
  GetCredentialResponseSchema,
6
6
  __toESM,
@@ -9,7 +9,7 @@ import {
9
9
  timestampDate,
10
10
  toJsonString,
11
11
  valueOf
12
- } from "../../chunk-G6NE675D.js";
12
+ } from "../../chunk-HMD2JXLE.js";
13
13
 
14
14
  // src/commands/bucket/get-credential.ts
15
15
  init_cjs_shims();
@@ -66,7 +66,7 @@ Get credential details using a direct API URL
66
66
  hidden: true
67
67
  }),
68
68
  manifest: import_core.Flags.string({
69
- char: "M",
69
+ char: "m",
70
70
  description: "project manifest",
71
71
  required: false,
72
72
  default: "raindrop.manifest",
@@ -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
  ListCredentialsResponseSchema,
6
6
  __toESM,
@@ -9,7 +9,7 @@ import {
9
9
  timestampDate,
10
10
  toJsonString,
11
11
  valueOf
12
- } from "../../chunk-G6NE675D.js";
12
+ } from "../../chunk-HMD2JXLE.js";
13
13
 
14
14
  // src/commands/bucket/list-credentials.ts
15
15
  init_cjs_shims();
@@ -62,7 +62,7 @@ List all credentials using a direct API URL
62
62
  hidden: true
63
63
  }),
64
64
  manifest: import_core.Flags.string({
65
- char: "M",
65
+ char: "m",
66
66
  description: "project manifest",
67
67
  required: false,
68
68
  default: "raindrop.manifest",
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  watchStatus
3
- } from "../../chunk-NG7CZTTE.js";
3
+ } from "../../chunk-HEOY5F6W.js";
4
4
  import {
5
5
  deploy,
6
6
  sandbox
7
- } from "../../chunk-XYJACVNA.js";
8
- import "../../chunk-MGM2L2T3.js";
9
- import "../../chunk-VXAZKB3J.js";
10
- import "../../chunk-W2L3MYN6.js";
11
- import "../../chunk-MVQYQJHI.js";
12
- import "../../chunk-PU4RCSXF.js";
7
+ } from "../../chunk-YDVG2SA2.js";
8
+ import "../../chunk-OROAB5YF.js";
9
+ import "../../chunk-DOTQ3CSX.js";
10
+ import "../../chunk-AKNNZNIC.js";
11
+ import "../../chunk-6GTBXHHK.js";
12
+ import "../../chunk-ZQQFKWNC.js";
13
13
  import {
14
14
  BaseCommand
15
- } from "../../chunk-MCRKUPJY.js";
15
+ } from "../../chunk-OZWZILJX.js";
16
16
  import {
17
17
  __toESM,
18
18
  init_cjs_shims,
19
19
  require_lib
20
- } from "../../chunk-G6NE675D.js";
20
+ } from "../../chunk-HMD2JXLE.js";
21
21
 
22
22
  // src/commands/build/branch.ts
23
23
  init_cjs_shims();
@@ -36,18 +36,30 @@ Branch a Raindrop application.
36
36
  ...BaseCommand.HIDDEN_FLAGS,
37
37
  root: import_core.Flags.string({ char: "r", description: "root directory", required: false, default: process.cwd() }),
38
38
  manifest: import_core.Flags.string({
39
- char: "M",
40
39
  description: "project manifest",
41
40
  required: false,
42
41
  default: "raindrop.manifest"
43
42
  }),
44
43
  output: import_core.Flags.string({ char: "o", description: "output directory", required: false, default: "dist" }),
45
- versionId: import_core.Flags.string({
44
+ "version-id": import_core.Flags.string({
46
45
  char: "p",
47
- aliases: ["version"],
48
- description: "branch from this version",
46
+ description: "branch from this version ID",
49
47
  required: false
50
48
  }),
49
+ version: import_core.Flags.string({
50
+ description: "branch from this version ID (alias for --version-id)",
51
+ required: false,
52
+ hidden: true
53
+ }),
54
+ versionId: import_core.Flags.string({
55
+ description: "branch from this version ID (deprecated, use --version-id)",
56
+ required: false,
57
+ hidden: true,
58
+ deprecated: {
59
+ message: "use --version-id instead",
60
+ version: "2.0.0"
61
+ }
62
+ }),
51
63
  impersonate: import_core.Flags.string({
52
64
  char: "i",
53
65
  description: "impersonate organization",
@@ -78,7 +90,7 @@ Branch a Raindrop application.
78
90
  console.log(`Current versionId: ${config.versionId}`);
79
91
  return;
80
92
  }
81
- const versionId = this.flags.versionId || config.versionId;
93
+ const versionId = this.flags["version-id"] || this.flags.version || this.flags.versionId || config.versionId;
82
94
  await deploy({
83
95
  command: this,
84
96
  root: this.flags.root,
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  statusString
3
- } from "../../chunk-CMCEP64V.js";
3
+ } from "../../chunk-MNUILM7W.js";
4
4
  import {
5
5
  source_default
6
- } from "../../chunk-MVQYQJHI.js";
6
+ } from "../../chunk-6GTBXHHK.js";
7
7
  import {
8
8
  esm_default2 as esm_default
9
- } from "../../chunk-5GH4FS6C.js";
9
+ } from "../../chunk-A26NDSVL.js";
10
10
  import {
11
11
  BaseCommand
12
- } from "../../chunk-MCRKUPJY.js";
12
+ } from "../../chunk-OZWZILJX.js";
13
13
  import {
14
14
  EPOCH_TS,
15
15
  UnitState,
@@ -18,7 +18,7 @@ import {
18
18
  require_lib,
19
19
  timestampDate,
20
20
  valueOf
21
- } from "../../chunk-G6NE675D.js";
21
+ } from "../../chunk-HMD2JXLE.js";
22
22
 
23
23
  // src/commands/build/checkout.ts
24
24
  init_cjs_shims();
@@ -40,7 +40,7 @@ Switched to version: 01jux6z20m4gbhn5kaa4mcm2jr
40
40
  ...BaseCommand.HIDDEN_FLAGS,
41
41
  output: import_core.Flags.string({ char: "o", description: "output format", required: false, default: "text" }),
42
42
  manifest: import_core.Flags.string({
43
- char: "M",
43
+ char: "m",
44
44
  description: "project manifest",
45
45
  required: false,
46
46
  default: "raindrop.manifest"
@@ -2,17 +2,17 @@ import {
2
2
  codegenPlan,
3
3
  fileExists,
4
4
  renderCodegenPlan
5
- } from "../../chunk-W2L3MYN6.js";
5
+ } from "../../chunk-AKNNZNIC.js";
6
6
  import {
7
7
  $,
8
8
  spinner
9
- } from "../../chunk-PU4RCSXF.js";
9
+ } from "../../chunk-ZQQFKWNC.js";
10
10
  import {
11
11
  esm_default
12
- } from "../../chunk-5GH4FS6C.js";
12
+ } from "../../chunk-A26NDSVL.js";
13
13
  import {
14
14
  BaseCommand
15
- } from "../../chunk-MCRKUPJY.js";
15
+ } from "../../chunk-OZWZILJX.js";
16
16
  import {
17
17
  __toESM,
18
18
  getCurrentVersion,
@@ -20,7 +20,7 @@ import {
20
20
  mustManifestFromString,
21
21
  readState,
22
22
  require_lib
23
- } from "../../chunk-G6NE675D.js";
23
+ } from "../../chunk-HMD2JXLE.js";
24
24
 
25
25
  // src/commands/build/clone.ts
26
26
  init_cjs_shims();
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  statusString
3
- } from "../../chunk-CMCEP64V.js";
3
+ } from "../../chunk-MNUILM7W.js";
4
4
  import {
5
5
  source_default
6
- } from "../../chunk-MVQYQJHI.js";
6
+ } from "../../chunk-6GTBXHHK.js";
7
7
  import {
8
8
  esm_default2 as esm_default
9
- } from "../../chunk-5GH4FS6C.js";
9
+ } from "../../chunk-A26NDSVL.js";
10
10
  import {
11
11
  BaseCommand
12
- } from "../../chunk-MCRKUPJY.js";
12
+ } from "../../chunk-OZWZILJX.js";
13
13
  import {
14
14
  EPOCH_TS,
15
15
  UnitState,
@@ -18,14 +18,14 @@ import {
18
18
  require_lib,
19
19
  timestampDate,
20
20
  valueOf
21
- } from "../../chunk-G6NE675D.js";
21
+ } from "../../chunk-HMD2JXLE.js";
22
22
 
23
23
  // src/commands/build/delete.ts
24
24
  init_cjs_shims();
25
25
  var import_core = __toESM(require_lib(), 1);
26
26
  var Delete = class extends BaseCommand {
27
27
  static args = {
28
- application: import_core.Args.string({ char: "a", description: "application name", required: false })
28
+ application: import_core.Args.string({ description: "application name", required: false })
29
29
  };
30
30
  static description = "delete Raindrop applications";
31
31
  static examples = [
@@ -37,7 +37,6 @@ Deleted (application) at version (version)
37
37
  ...BaseCommand.HIDDEN_FLAGS,
38
38
  root: import_core.Flags.string({ char: "r", description: "root directory", required: false, default: process.cwd() }),
39
39
  manifest: import_core.Flags.string({
40
- char: "M",
41
40
  description: "project manifest",
42
41
  required: false,
43
42
  default: "raindrop.manifest"
@@ -48,17 +47,23 @@ Deleted (application) at version (version)
48
47
  default: "table",
49
48
  options: ["text", "table", "json"]
50
49
  }),
51
- version: import_core.Flags.string({
50
+ "version-id": import_core.Flags.string({
52
51
  char: "v",
53
- description: "application version to delete",
52
+ description: "application version ID to delete",
53
+ required: false,
54
+ exclusive: ["all"]
55
+ }),
56
+ version: import_core.Flags.string({
57
+ description: "application version ID to delete (alias for --version-id)",
54
58
  required: false,
59
+ hidden: true,
55
60
  exclusive: ["all"]
56
61
  }),
57
62
  all: import_core.Flags.boolean({
58
63
  char: "a",
59
64
  description: "delete all application versions",
60
65
  required: false,
61
- exclusive: ["version"]
66
+ exclusive: ["version", "version-id"]
62
67
  }),
63
68
  impersonate: import_core.Flags.string({
64
69
  char: "i",
@@ -148,10 +153,11 @@ Deleted (application) at version (version)
148
153
  }
149
154
  async run() {
150
155
  const { client: catalogService, userId, organizationId } = await this.catalogService();
151
- let versionId = this.flags.version;
156
+ const versionFlag = this.flags["version-id"] || this.flags.version;
157
+ let versionId = versionFlag;
152
158
  if (this.flags.all) {
153
159
  versionId = void 0;
154
- } else if (this.flags.version === void 0) {
160
+ } else if (versionFlag === void 0) {
155
161
  const config2 = await this.loadConfig();
156
162
  versionId = config2.versionId;
157
163
  }
@@ -177,8 +183,12 @@ Deleted (application) at version (version)
177
183
  await catalogService.delete({
178
184
  userId,
179
185
  organizationId: this.flags.impersonate ?? organizationId,
180
- // Omitting versionId will delete all versions of the application
181
- applications: [{ applicationName: this.args.application, currentVersionId: versionId || "" }]
186
+ // When currentVersionId is empty string (proto3 default), it means delete all versions
187
+ applications: [{
188
+ applicationName: this.args.application,
189
+ currentVersionId: versionId ?? ""
190
+ // undefined becomes '' (empty string = delete all)
191
+ }]
182
192
  });
183
193
  } catch (e) {
184
194
  if (e instanceof Error) {
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  watchStatus
3
- } from "../../chunk-NG7CZTTE.js";
3
+ } from "../../chunk-HEOY5F6W.js";
4
4
  import {
5
5
  deploy,
6
6
  sandbox
7
- } from "../../chunk-XYJACVNA.js";
8
- import "../../chunk-MGM2L2T3.js";
9
- import "../../chunk-VXAZKB3J.js";
10
- import "../../chunk-W2L3MYN6.js";
11
- import "../../chunk-MVQYQJHI.js";
12
- import "../../chunk-PU4RCSXF.js";
7
+ } from "../../chunk-YDVG2SA2.js";
8
+ import "../../chunk-OROAB5YF.js";
9
+ import "../../chunk-DOTQ3CSX.js";
10
+ import "../../chunk-AKNNZNIC.js";
11
+ import "../../chunk-6GTBXHHK.js";
12
+ import "../../chunk-ZQQFKWNC.js";
13
13
  import {
14
14
  BaseCommand
15
- } from "../../chunk-MCRKUPJY.js";
15
+ } from "../../chunk-OZWZILJX.js";
16
16
  import {
17
17
  __toESM,
18
18
  init_cjs_shims,
19
19
  require_lib
20
- } from "../../chunk-G6NE675D.js";
20
+ } from "../../chunk-HMD2JXLE.js";
21
21
 
22
22
  // src/commands/build/deploy.ts
23
23
  init_cjs_shims();
@@ -69,18 +69,30 @@ Deploy a Raindrop application version.
69
69
  ...BaseCommand.HIDDEN_FLAGS,
70
70
  root: import_core.Flags.string({ char: "r", description: "root directory", required: false, default: process.cwd() }),
71
71
  manifest: import_core.Flags.string({
72
- char: "M",
73
72
  description: "project manifest",
74
73
  required: false,
75
74
  default: "raindrop.manifest"
76
75
  }),
77
76
  output: import_core.Flags.string({ char: "o", description: "output directory", required: false, default: "dist" }),
78
- versionId: import_core.Flags.string({
77
+ "version-id": import_core.Flags.string({
79
78
  char: "v",
80
- aliases: ["version"],
81
79
  description: "version ID",
82
80
  required: false
83
81
  }),
82
+ version: import_core.Flags.string({
83
+ description: "version ID (alias for --version-id)",
84
+ required: false,
85
+ hidden: true
86
+ }),
87
+ versionId: import_core.Flags.string({
88
+ description: "version ID (deprecated, use --version-id)",
89
+ required: false,
90
+ hidden: true,
91
+ deprecated: {
92
+ message: "use --version-id instead",
93
+ version: "2.0.0"
94
+ }
95
+ }),
84
96
  impersonate: import_core.Flags.string({
85
97
  char: "i",
86
98
  description: "impersonate organization",
@@ -117,7 +129,7 @@ Deploy a Raindrop application version.
117
129
  throw error;
118
130
  }
119
131
  const config = await this.loadConfig();
120
- const versionId = this.flags.versionId ?? config.versionId;
132
+ const versionId = (this.flags["version-id"] || this.flags.version || this.flags.versionId) ?? config.versionId;
121
133
  const unlock = this.flags.lock ?? config.lock ?? "user";
122
134
  const amend = config.sandbox || this.flags.amend;
123
135
  if (config.sandbox) {
@@ -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/env/get.ts
12
12
  init_cjs_shims();
@@ -25,17 +25,29 @@ sets an env var/secret.
25
25
  ...BaseCommand.HIDDEN_FLAGS,
26
26
  output: import_core.Flags.string({ char: "o", description: "output format", default: "table" }),
27
27
  manifest: import_core.Flags.string({
28
- char: "M",
29
28
  description: "project manifest",
30
29
  required: false,
31
30
  default: "raindrop.manifest"
32
31
  }),
33
- versionId: import_core.Flags.string({
32
+ "version-id": import_core.Flags.string({
34
33
  char: "v",
35
- aliases: ["version"],
36
34
  description: "version ID",
37
35
  required: false
38
36
  }),
37
+ version: import_core.Flags.string({
38
+ description: "version ID (alias for --version-id)",
39
+ required: false,
40
+ hidden: true
41
+ }),
42
+ versionId: import_core.Flags.string({
43
+ description: "version ID (deprecated, use --version-id)",
44
+ required: false,
45
+ hidden: true,
46
+ deprecated: {
47
+ message: "use --version-id instead",
48
+ version: "2.0.0"
49
+ }
50
+ }),
39
51
  application: import_core.Flags.string({
40
52
  char: "a",
41
53
  description: "application",
@@ -81,6 +93,7 @@ sets an env var/secret.
81
93
  this.error("variable must be an env variable or secret", { exit: 1 });
82
94
  }
83
95
  const config = await this.loadConfig();
96
+ const versionId = this.flags["version-id"] || this.flags.version || this.flags.versionId || config.versionId || "";
84
97
  const { client: catalogService, userId, organizationId } = await this.catalogService();
85
98
  const resp = await catalogService.getEnvs({
86
99
  userId,
@@ -88,7 +101,7 @@ sets an env var/secret.
88
101
  envs: [
89
102
  {
90
103
  applicationName: valueOf(app.name),
91
- currentVersionId: this.flags.versionId || config.versionId || "",
104
+ currentVersionId: versionId,
92
105
  key: this.args.var
93
106
  }
94
107
  ]