@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.
- package/README.md +254 -207
- package/bundle/chunk-5AOMZVOJ.js +48 -0
- package/bundle/chunk-5AP5HNN3.js +133 -0
- package/bundle/chunk-6CDCK5IP.js +58 -0
- package/bundle/chunk-6GTBXHHK.js +502 -0
- package/bundle/chunk-A26NDSVL.js +12148 -0
- package/bundle/{chunk-6UE75KX2.js → chunk-AKNNZNIC.js} +1 -2
- package/bundle/{chunk-CW5ZHVPX.js → chunk-DOTQ3CSX.js} +2 -2
- package/bundle/chunk-FO7VH4GU.js +75 -0
- package/bundle/chunk-HEOY5F6W.js +147 -0
- package/bundle/chunk-HMD2JXLE.js +238722 -0
- package/bundle/chunk-KGZ7KWP4.js +44 -0
- package/bundle/chunk-MNUILM7W.js +380 -0
- package/bundle/chunk-OROAB5YF.js +805 -0
- package/bundle/chunk-OZWZILJX.js +4539 -0
- package/bundle/{chunk-6B4I2CKP.js → chunk-YDVG2SA2.js} +4 -4
- package/bundle/chunk-ZQQFKWNC.js +22452 -0
- package/bundle/commands/annotation/get.js +4 -4
- package/bundle/commands/annotation/list.js +4 -4
- package/bundle/commands/annotation/put.js +4 -4
- package/bundle/commands/auth/list.js +2 -2
- package/bundle/commands/auth/login.js +3 -3
- package/bundle/commands/auth/logout.js +2 -2
- package/bundle/commands/auth/select.js +3 -3
- package/bundle/commands/bucket/create-credential.js +3 -3
- package/bundle/commands/bucket/delete-credential.js +3 -3
- package/bundle/commands/bucket/get-credential.js +3 -3
- package/bundle/commands/bucket/list-credentials.js +3 -3
- package/bundle/commands/build/branch.js +26 -14
- package/bundle/commands/build/checkout.js +6 -6
- package/bundle/commands/build/clone.js +5 -5
- package/bundle/commands/build/delete.js +24 -14
- package/bundle/commands/build/deploy.js +25 -13
- package/bundle/commands/build/env/get.js +19 -6
- package/bundle/commands/build/env/set.js +19 -6
- package/bundle/commands/build/find.js +18 -10
- package/bundle/commands/build/generate.js +4 -4
- package/bundle/commands/build/init.js +3 -3
- package/bundle/commands/build/list-templates.js +63 -0
- package/bundle/commands/build/list.js +4 -4
- package/bundle/commands/build/package-template.js +238 -0
- package/bundle/commands/build/sandbox.js +16 -10
- package/bundle/commands/build/start.js +10 -6
- package/bundle/commands/build/status.js +16 -11
- package/bundle/commands/build/stop.js +10 -6
- package/bundle/commands/build/tools/check.js +2 -2
- package/bundle/commands/build/tools/fmt.js +2 -2
- package/bundle/commands/build/unsandbox.js +16 -10
- package/bundle/commands/build/upload.js +23 -9
- package/bundle/commands/build/validate.js +5 -5
- package/bundle/commands/build/workos/delete.js +4 -4
- package/bundle/commands/build/workos/env/attach.js +20 -8
- package/bundle/commands/build/workos/env/create.js +60 -11
- package/bundle/commands/build/workos/env/delete.js +3 -3
- package/bundle/commands/build/workos/env/detach.js +20 -8
- package/bundle/commands/build/workos/env/get.js +21 -3
- package/bundle/commands/build/workos/env/list.js +3 -3
- package/bundle/commands/build/workos/env/set.js +91 -25
- package/bundle/commands/build/workos/invite.js +3 -3
- package/bundle/commands/build/workos/setup.js +14 -5
- package/bundle/commands/build/workos/status.js +116 -25
- package/bundle/commands/dns/create.js +2 -2
- package/bundle/commands/dns/delete.js +4 -4
- package/bundle/commands/dns/get.js +4 -4
- package/bundle/commands/dns/list.js +3 -3
- package/bundle/commands/dns/records/create.js +2 -2
- package/bundle/commands/dns/records/delete.js +3 -3
- package/bundle/commands/dns/records/get.js +2 -2
- package/bundle/commands/dns/records/list.js +2 -2
- package/bundle/commands/dns/records/update.js +2 -2
- package/bundle/commands/logs/query.js +15 -10
- package/bundle/commands/logs/tail.js +16 -11
- package/bundle/commands/mcp/install-claude.js +2 -2
- package/bundle/commands/mcp/install-gemini.js +2 -2
- package/bundle/commands/mcp/install-goose.js +2 -2
- package/bundle/commands/mcp/status.js +2 -2
- package/bundle/commands/object/delete.js +27 -14
- package/bundle/commands/object/get.js +27 -14
- package/bundle/commands/object/list.js +28 -15
- package/bundle/commands/object/put.js +27 -14
- package/bundle/commands/query/chunk-search.js +24 -10
- package/bundle/commands/query/document.js +39 -16
- package/bundle/commands/query/events.js +13 -8
- package/bundle/commands/query/reindex.js +14 -6
- package/bundle/commands/query/search.js +40 -17
- package/bundle/commands/tail.js +2 -2
- package/bundle/index.js +1 -1
- package/dist/base-command.d.ts.map +1 -1
- package/dist/base-command.js +27 -0
- package/dist/commands/annotation/get.js +1 -1
- package/dist/commands/annotation/list.js +1 -1
- package/dist/commands/annotation/put.js +1 -1
- package/dist/commands/bucket/create-credential.js +1 -1
- package/dist/commands/bucket/delete-credential.js +1 -1
- package/dist/commands/bucket/get-credential.js +1 -1
- package/dist/commands/bucket/list-credentials.js +1 -1
- package/dist/commands/build/branch.d.ts +2 -0
- package/dist/commands/build/branch.d.ts.map +1 -1
- package/dist/commands/build/branch.js +18 -5
- package/dist/commands/build/checkout.js +1 -1
- package/dist/commands/build/delete.d.ts +1 -0
- package/dist/commands/build/delete.d.ts.map +1 -1
- package/dist/commands/build/delete.js +25 -12
- package/dist/commands/build/deploy.d.ts +2 -0
- package/dist/commands/build/deploy.d.ts.map +1 -1
- package/dist/commands/build/deploy.js +17 -4
- package/dist/commands/build/env/get.d.ts +2 -0
- package/dist/commands/build/env/get.d.ts.map +1 -1
- package/dist/commands/build/env/get.js +18 -4
- package/dist/commands/build/env/set.d.ts +2 -0
- package/dist/commands/build/env/set.d.ts.map +1 -1
- package/dist/commands/build/env/set.js +18 -4
- package/dist/commands/build/find.d.ts +1 -0
- package/dist/commands/build/find.d.ts.map +1 -1
- package/dist/commands/build/find.js +18 -7
- package/dist/commands/build/generate.js +1 -1
- package/dist/commands/build/list-templates.d.ts +11 -0
- package/dist/commands/build/list-templates.d.ts.map +1 -0
- package/dist/commands/build/list-templates.js +47 -0
- package/dist/commands/build/list.js +1 -1
- package/dist/commands/build/package-template.d.ts +28 -0
- package/dist/commands/build/package-template.d.ts.map +1 -0
- package/dist/commands/build/package-template.js +256 -0
- package/dist/commands/build/sandbox.d.ts +1 -0
- package/dist/commands/build/sandbox.d.ts.map +1 -1
- package/dist/commands/build/sandbox.js +10 -3
- package/dist/commands/build/start.d.ts +1 -0
- package/dist/commands/build/start.d.ts.map +1 -1
- package/dist/commands/build/start.js +9 -4
- package/dist/commands/build/status.d.ts +1 -0
- package/dist/commands/build/status.d.ts.map +1 -1
- package/dist/commands/build/status.js +13 -7
- package/dist/commands/build/stop.d.ts +1 -0
- package/dist/commands/build/stop.d.ts.map +1 -1
- package/dist/commands/build/stop.js +9 -4
- package/dist/commands/build/unsandbox.d.ts +1 -0
- package/dist/commands/build/unsandbox.d.ts.map +1 -1
- package/dist/commands/build/unsandbox.js +10 -3
- package/dist/commands/build/upload.d.ts +3 -1
- package/dist/commands/build/upload.d.ts.map +1 -1
- package/dist/commands/build/upload.js +19 -4
- package/dist/commands/build/validate.js +1 -1
- package/dist/commands/build/workos/env/attach.d.ts +2 -0
- package/dist/commands/build/workos/env/attach.d.ts.map +1 -1
- package/dist/commands/build/workos/env/attach.js +17 -5
- package/dist/commands/build/workos/env/create.d.ts +3 -0
- package/dist/commands/build/workos/env/create.d.ts.map +1 -1
- package/dist/commands/build/workos/env/create.js +61 -8
- package/dist/commands/build/workos/env/detach.d.ts +2 -0
- package/dist/commands/build/workos/env/detach.d.ts.map +1 -1
- package/dist/commands/build/workos/env/detach.js +17 -5
- package/dist/commands/build/workos/env/get.d.ts.map +1 -1
- package/dist/commands/build/workos/env/get.js +19 -0
- package/dist/commands/build/workos/env/set.d.ts +12 -6
- package/dist/commands/build/workos/env/set.d.ts.map +1 -1
- package/dist/commands/build/workos/env/set.js +83 -22
- package/dist/commands/build/workos/setup.d.ts +1 -0
- package/dist/commands/build/workos/setup.d.ts.map +1 -1
- package/dist/commands/build/workos/setup.js +12 -3
- package/dist/commands/build/workos/status.d.ts +5 -0
- package/dist/commands/build/workos/status.d.ts.map +1 -1
- package/dist/commands/build/workos/status.js +128 -21
- package/dist/commands/logs/query.d.ts +1 -0
- package/dist/commands/logs/query.d.ts.map +1 -1
- package/dist/commands/logs/query.js +13 -7
- package/dist/commands/logs/tail.d.ts +1 -0
- package/dist/commands/logs/tail.d.ts.map +1 -1
- package/dist/commands/logs/tail.js +14 -8
- package/dist/commands/object/delete.d.ts +1 -0
- package/dist/commands/object/delete.d.ts.map +1 -1
- package/dist/commands/object/delete.js +25 -11
- package/dist/commands/object/get.d.ts +1 -0
- package/dist/commands/object/get.d.ts.map +1 -1
- package/dist/commands/object/get.js +25 -11
- package/dist/commands/object/list.d.ts +1 -0
- package/dist/commands/object/list.d.ts.map +1 -1
- package/dist/commands/object/list.js +26 -12
- package/dist/commands/object/put.d.ts +1 -0
- package/dist/commands/object/put.d.ts.map +1 -1
- package/dist/commands/object/put.js +25 -11
- package/dist/commands/query/chunk-search.d.ts +1 -0
- package/dist/commands/query/chunk-search.d.ts.map +1 -1
- package/dist/commands/query/chunk-search.js +21 -6
- package/dist/commands/query/document.d.ts +3 -1
- package/dist/commands/query/document.d.ts.map +1 -1
- package/dist/commands/query/document.js +36 -13
- package/dist/commands/query/events.d.ts +1 -0
- package/dist/commands/query/events.d.ts.map +1 -1
- package/dist/commands/query/events.js +12 -6
- package/dist/commands/query/reindex.d.ts +1 -0
- package/dist/commands/query/reindex.d.ts.map +1 -1
- package/dist/commands/query/reindex.js +13 -4
- package/dist/commands/query/search.d.ts +2 -0
- package/dist/commands/query/search.d.ts.map +1 -1
- package/dist/commands/query/search.js +37 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/templates/registry.d.ts +38 -0
- package/dist/templates/registry.d.ts.map +1 -0
- package/dist/templates/registry.js +72 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/oclif.manifest.json +2823 -2047
- package/package.json +3 -3
- package/templates/db/node_modules/.bin/prisma +2 -2
- package/templates/db/node_modules/.bin/prisma-kysely +2 -2
- package/templates/db/node_modules/.bin/tsc +2 -2
- package/templates/db/node_modules/.bin/tsserver +2 -2
- package/templates/db/node_modules/.bin/zx +2 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-6GTBXHHK.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../../../chunk-
|
|
6
|
+
} from "../../../../chunk-OZWZILJX.js";
|
|
7
7
|
import {
|
|
8
8
|
__toESM,
|
|
9
9
|
init_cjs_shims,
|
|
10
10
|
require_lib
|
|
11
|
-
} from "../../../../chunk-
|
|
11
|
+
} from "../../../../chunk-HMD2JXLE.js";
|
|
12
12
|
|
|
13
13
|
// src/commands/build/workos/env/get.ts
|
|
14
14
|
init_cjs_shims();
|
|
@@ -98,6 +98,24 @@ Get JSON output
|
|
|
98
98
|
}
|
|
99
99
|
this.log("");
|
|
100
100
|
this.log(source_default.dim("Note: API key value is stored securely and not displayed."));
|
|
101
|
+
this.log("");
|
|
102
|
+
this.log(source_default.bold.yellow("Configuration Links:"));
|
|
103
|
+
this.log("");
|
|
104
|
+
if (env.environmentId) {
|
|
105
|
+
this.log(
|
|
106
|
+
source_default.cyan("\u2022 Configure Auth Redirects:") + "\n " + source_default.underline(`https://dashboard.workos.com/${env.environmentId}/redirects`)
|
|
107
|
+
);
|
|
108
|
+
this.log(source_default.dim(" Add your application redirect URIs for authentication flows"));
|
|
109
|
+
this.log("");
|
|
110
|
+
this.log(
|
|
111
|
+
source_default.cyan("\u2022 Configure CORS for Sessions:") + "\n " + source_default.underline(`https://dashboard.workos.com/${env.environmentId}/authentication/sessions`)
|
|
112
|
+
);
|
|
113
|
+
this.log(source_default.dim(" Add allowed origins for frontend applications"));
|
|
114
|
+
this.log("");
|
|
115
|
+
}
|
|
116
|
+
this.log(source_default.cyan("\u2022 Implement CORS Hook:"));
|
|
117
|
+
this.log(source_default.dim(" Ensure your Raindrop application has a CORS hook configured"));
|
|
118
|
+
this.log(source_default.dim(" This is required for frontend clients to communicate with your API"));
|
|
101
119
|
break;
|
|
102
120
|
}
|
|
103
121
|
} catch (error) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-6GTBXHHK.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../../../chunk-
|
|
6
|
+
} from "../../../../chunk-OZWZILJX.js";
|
|
7
7
|
import {
|
|
8
8
|
EnvironmentType,
|
|
9
9
|
__toESM,
|
|
10
10
|
init_cjs_shims,
|
|
11
11
|
require_lib
|
|
12
|
-
} from "../../../../chunk-
|
|
12
|
+
} from "../../../../chunk-HMD2JXLE.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/build/workos/env/list.ts
|
|
15
15
|
init_cjs_shims();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-6GTBXHHK.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../../../chunk-
|
|
6
|
+
} from "../../../../chunk-OZWZILJX.js";
|
|
7
7
|
import {
|
|
8
8
|
EnvironmentType,
|
|
9
9
|
__toESM,
|
|
10
10
|
init_cjs_shims,
|
|
11
11
|
require_lib
|
|
12
|
-
} from "../../../../chunk-
|
|
12
|
+
} from "../../../../chunk-HMD2JXLE.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/build/workos/env/set.ts
|
|
15
15
|
init_cjs_shims();
|
|
@@ -36,30 +36,84 @@ Configure a production WorkOS environment
|
|
|
36
36
|
];
|
|
37
37
|
static flags = {
|
|
38
38
|
...BaseCommand.HIDDEN_FLAGS,
|
|
39
|
-
|
|
39
|
+
"environment-id": import_core.Flags.string({
|
|
40
40
|
description: "WorkOS environment ID",
|
|
41
41
|
required: true
|
|
42
42
|
}),
|
|
43
|
-
|
|
43
|
+
environmentId: import_core.Flags.string({
|
|
44
|
+
description: "environmentId is deprecated, use --environment-id",
|
|
45
|
+
required: false,
|
|
46
|
+
hidden: true,
|
|
47
|
+
deprecated: {
|
|
48
|
+
message: "use --environment-id instead",
|
|
49
|
+
version: "2.0.0"
|
|
50
|
+
}
|
|
51
|
+
}),
|
|
52
|
+
"client-id": import_core.Flags.string({
|
|
44
53
|
description: "WorkOS client ID",
|
|
45
54
|
required: true
|
|
46
55
|
}),
|
|
47
|
-
|
|
56
|
+
clientId: import_core.Flags.string({
|
|
57
|
+
description: "clientId is deprecated, use --client-id",
|
|
58
|
+
required: false,
|
|
59
|
+
hidden: true,
|
|
60
|
+
deprecated: {
|
|
61
|
+
message: "use --client-id instead",
|
|
62
|
+
version: "2.0.0"
|
|
63
|
+
}
|
|
64
|
+
}),
|
|
65
|
+
"api-key": import_core.Flags.string({
|
|
48
66
|
description: "WorkOS API key value",
|
|
49
67
|
required: true
|
|
50
68
|
}),
|
|
51
|
-
|
|
69
|
+
apiKey: import_core.Flags.string({
|
|
70
|
+
description: "apiKey is deprecated, use --api-key",
|
|
71
|
+
required: false,
|
|
72
|
+
hidden: true,
|
|
73
|
+
deprecated: {
|
|
74
|
+
message: "use --api-key instead",
|
|
75
|
+
version: "2.0.0"
|
|
76
|
+
}
|
|
77
|
+
}),
|
|
78
|
+
"workos-organization-id": import_core.Flags.string({
|
|
52
79
|
description: "WorkOS organization ID",
|
|
53
80
|
required: true
|
|
54
81
|
}),
|
|
55
|
-
|
|
82
|
+
workosOrganizationId: import_core.Flags.string({
|
|
83
|
+
description: "workosOrganizationId is deprecated, use --workos-organization-id",
|
|
84
|
+
required: false,
|
|
85
|
+
hidden: true,
|
|
86
|
+
deprecated: {
|
|
87
|
+
message: "use --workos-organization-id instead",
|
|
88
|
+
version: "2.0.0"
|
|
89
|
+
}
|
|
90
|
+
}),
|
|
91
|
+
"workos-connect-hostname": import_core.Flags.string({
|
|
56
92
|
description: "WorkOS Connect hostname (e.g., auth.myapp.com)",
|
|
57
93
|
required: true
|
|
58
94
|
}),
|
|
59
|
-
|
|
95
|
+
workosConnectHostname: import_core.Flags.string({
|
|
96
|
+
description: "workosConnectHostname is deprecated, use --workos-connect-hostname",
|
|
97
|
+
required: false,
|
|
98
|
+
hidden: true,
|
|
99
|
+
deprecated: {
|
|
100
|
+
message: "use --workos-connect-hostname instead",
|
|
101
|
+
version: "2.0.0"
|
|
102
|
+
}
|
|
103
|
+
}),
|
|
104
|
+
"workos-api-hostname": import_core.Flags.string({
|
|
60
105
|
description: "WorkOS API hostname",
|
|
61
106
|
default: "api.workos.com"
|
|
62
107
|
}),
|
|
108
|
+
workosApiHostname: import_core.Flags.string({
|
|
109
|
+
description: "workosApiHostname is deprecated, use --workos-api-hostname",
|
|
110
|
+
required: false,
|
|
111
|
+
hidden: true,
|
|
112
|
+
deprecated: {
|
|
113
|
+
message: "use --workos-api-hostname instead",
|
|
114
|
+
version: "2.0.0"
|
|
115
|
+
}
|
|
116
|
+
}),
|
|
63
117
|
type: import_core.Flags.string({
|
|
64
118
|
description: "environment type",
|
|
65
119
|
default: "staging",
|
|
@@ -74,18 +128,30 @@ Configure a production WorkOS environment
|
|
|
74
128
|
};
|
|
75
129
|
async run() {
|
|
76
130
|
const { client: workosService, userId, organizationId } = await this.workosIntegrationService();
|
|
131
|
+
const environmentId = this.flags["environment-id"] || this.flags.environmentId;
|
|
132
|
+
const clientId = this.flags["client-id"] || this.flags.clientId;
|
|
133
|
+
const apiKey = this.flags["api-key"] || this.flags.apiKey;
|
|
134
|
+
const workosOrganizationId = this.flags["workos-organization-id"] || this.flags.workosOrganizationId;
|
|
135
|
+
const workosConnectHostname = this.flags["workos-connect-hostname"] || this.flags.workosConnectHostname;
|
|
136
|
+
const workosApiHostname = this.flags["workos-api-hostname"] || this.flags.workosApiHostname;
|
|
77
137
|
try {
|
|
78
138
|
await workosService.setEnvironment({
|
|
79
139
|
userId,
|
|
80
140
|
organizationId,
|
|
81
141
|
environmentName: this.args.appName,
|
|
82
|
-
environmentId
|
|
83
|
-
|
|
84
|
-
|
|
142
|
+
environmentId,
|
|
143
|
+
// Required flag, guaranteed to exist
|
|
144
|
+
clientId,
|
|
145
|
+
// Required flag, guaranteed to exist
|
|
146
|
+
apiKeyValue: apiKey,
|
|
147
|
+
// Required flag, guaranteed to exist
|
|
85
148
|
environmentType: this.flags.type === "staging" ? EnvironmentType.STAGING : EnvironmentType.PRODUCTION,
|
|
86
|
-
workosOrganizationId
|
|
87
|
-
|
|
88
|
-
|
|
149
|
+
workosOrganizationId,
|
|
150
|
+
// Required flag, guaranteed to exist
|
|
151
|
+
workosConnectHostname,
|
|
152
|
+
// Required flag, guaranteed to exist
|
|
153
|
+
workosApiHostname: workosApiHostname || "api.workos.com"
|
|
154
|
+
// Has default value
|
|
89
155
|
});
|
|
90
156
|
switch (this.flags.output) {
|
|
91
157
|
case "json":
|
|
@@ -94,12 +160,12 @@ Configure a production WorkOS environment
|
|
|
94
160
|
{
|
|
95
161
|
success: true,
|
|
96
162
|
appName: this.args.appName,
|
|
97
|
-
environmentId
|
|
98
|
-
clientId
|
|
163
|
+
environmentId,
|
|
164
|
+
clientId,
|
|
99
165
|
environmentType: this.flags.type,
|
|
100
|
-
workosOrganizationId
|
|
101
|
-
workosConnectHostname
|
|
102
|
-
workosApiHostname
|
|
166
|
+
workosOrganizationId,
|
|
167
|
+
workosConnectHostname,
|
|
168
|
+
workosApiHostname
|
|
103
169
|
},
|
|
104
170
|
null,
|
|
105
171
|
2
|
|
@@ -111,12 +177,12 @@ Configure a production WorkOS environment
|
|
|
111
177
|
this.log(source_default.green("\u2713") + ` WorkOS environment configured for ${source_default.bold(this.args.appName)}`);
|
|
112
178
|
this.log("");
|
|
113
179
|
this.log(` ${source_default.cyan("App Name:")} ${this.args.appName}`);
|
|
114
|
-
this.log(` ${source_default.cyan("Environment ID:")} ${
|
|
115
|
-
this.log(` ${source_default.cyan("Client ID:")} ${
|
|
180
|
+
this.log(` ${source_default.cyan("Environment ID:")} ${environmentId}`);
|
|
181
|
+
this.log(` ${source_default.cyan("Client ID:")} ${clientId}`);
|
|
116
182
|
this.log(` ${source_default.cyan("Environment:")} ${this.flags.type}`);
|
|
117
|
-
this.log(` ${source_default.cyan("WorkOS Organization:")} ${
|
|
118
|
-
this.log(` ${source_default.cyan("Connect Hostname:")} ${
|
|
119
|
-
this.log(` ${source_default.cyan("API Hostname:")} ${
|
|
183
|
+
this.log(` ${source_default.cyan("WorkOS Organization:")} ${workosOrganizationId}`);
|
|
184
|
+
this.log(` ${source_default.cyan("Connect Hostname:")} ${workosConnectHostname}`);
|
|
185
|
+
this.log(` ${source_default.cyan("API Hostname:")} ${workosApiHostname}`);
|
|
120
186
|
this.log("");
|
|
121
187
|
this.log(source_default.dim("API key has been stored securely."));
|
|
122
188
|
break;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-6GTBXHHK.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-OZWZILJX.js";
|
|
7
7
|
import {
|
|
8
8
|
__toESM,
|
|
9
9
|
init_cjs_shims,
|
|
10
10
|
require_lib
|
|
11
|
-
} from "../../../chunk-
|
|
11
|
+
} from "../../../chunk-HMD2JXLE.js";
|
|
12
12
|
|
|
13
13
|
// src/commands/build/workos/invite.ts
|
|
14
14
|
init_cjs_shims();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-6GTBXHHK.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-OZWZILJX.js";
|
|
7
7
|
import {
|
|
8
8
|
__toESM,
|
|
9
9
|
init_cjs_shims,
|
|
10
10
|
readState,
|
|
11
11
|
require_lib
|
|
12
|
-
} from "../../../chunk-
|
|
12
|
+
} from "../../../chunk-HMD2JXLE.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/build/workos/setup.ts
|
|
15
15
|
init_cjs_shims();
|
|
@@ -33,10 +33,19 @@ Get JSON output with team details
|
|
|
33
33
|
];
|
|
34
34
|
static flags = {
|
|
35
35
|
...BaseCommand.HIDDEN_FLAGS,
|
|
36
|
-
|
|
36
|
+
"admin-email": import_core.Flags.string({
|
|
37
37
|
description: "email address for the team admin (defaults to user email from config)",
|
|
38
38
|
required: false
|
|
39
39
|
}),
|
|
40
|
+
adminEmail: import_core.Flags.string({
|
|
41
|
+
description: "adminEmail is deprecated, use --admin-email",
|
|
42
|
+
required: false,
|
|
43
|
+
hidden: true,
|
|
44
|
+
deprecated: {
|
|
45
|
+
message: "use --admin-email instead",
|
|
46
|
+
version: "2.0.0"
|
|
47
|
+
}
|
|
48
|
+
}),
|
|
40
49
|
name: import_core.Flags.string({
|
|
41
50
|
description: "organization name (defaults to organization name from config)",
|
|
42
51
|
required: false
|
|
@@ -59,7 +68,7 @@ Get JSON output with team details
|
|
|
59
68
|
defaultOrgName = token.organizationName;
|
|
60
69
|
}
|
|
61
70
|
}
|
|
62
|
-
const adminEmail = this.flags.adminEmail || defaultAdminEmail;
|
|
71
|
+
const adminEmail = this.flags["admin-email"] || this.flags.adminEmail || defaultAdminEmail;
|
|
63
72
|
const name = this.flags.name || defaultOrgName;
|
|
64
73
|
if (!adminEmail) {
|
|
65
74
|
this.error("Admin email is required. Please specify --admin-email or ensure you are logged in.", { exit: 1 });
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-6GTBXHHK.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-OZWZILJX.js";
|
|
7
7
|
import {
|
|
8
8
|
__toESM,
|
|
9
9
|
init_cjs_shims,
|
|
10
|
-
require_lib
|
|
11
|
-
|
|
10
|
+
require_lib,
|
|
11
|
+
valueOf
|
|
12
|
+
} from "../../../chunk-HMD2JXLE.js";
|
|
12
13
|
|
|
13
14
|
// src/commands/build/workos/status.ts
|
|
14
15
|
init_cjs_shims();
|
|
15
16
|
var import_core = __toESM(require_lib(), 1);
|
|
16
17
|
var Status = class extends BaseCommand {
|
|
17
18
|
static args = {};
|
|
18
|
-
static description = "View WorkOS team information";
|
|
19
|
+
static description = "View WorkOS team information and get contextual guidance";
|
|
19
20
|
static examples = [
|
|
20
21
|
`<%= config.bin %> <%= command.id %>
|
|
21
|
-
View WorkOS team status
|
|
22
|
+
View WorkOS team status with contextual guidance
|
|
22
23
|
|
|
23
24
|
<%= config.bin %> <%= command.id %> --output json
|
|
24
25
|
Get JSON output with team details
|
|
@@ -26,6 +27,23 @@ Get JSON output with team details
|
|
|
26
27
|
];
|
|
27
28
|
static flags = {
|
|
28
29
|
...BaseCommand.HIDDEN_FLAGS,
|
|
30
|
+
root: import_core.Flags.string({
|
|
31
|
+
char: "r",
|
|
32
|
+
description: "root directory",
|
|
33
|
+
required: false,
|
|
34
|
+
default: process.cwd()
|
|
35
|
+
}),
|
|
36
|
+
manifest: import_core.Flags.string({
|
|
37
|
+
char: "M",
|
|
38
|
+
description: "project manifest",
|
|
39
|
+
required: false,
|
|
40
|
+
default: "raindrop.manifest"
|
|
41
|
+
}),
|
|
42
|
+
application: import_core.Flags.string({
|
|
43
|
+
char: "a",
|
|
44
|
+
description: "application name",
|
|
45
|
+
required: false
|
|
46
|
+
}),
|
|
29
47
|
output: import_core.Flags.string({
|
|
30
48
|
char: "o",
|
|
31
49
|
description: "output format",
|
|
@@ -35,23 +53,44 @@ Get JSON output with team details
|
|
|
35
53
|
};
|
|
36
54
|
async run() {
|
|
37
55
|
const { client: workosService, userId, organizationId } = await this.workosIntegrationService();
|
|
56
|
+
let currentAppName;
|
|
38
57
|
try {
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
58
|
+
const apps = await this.loadManifest();
|
|
59
|
+
const app = apps.find((app2) => valueOf(app2.name) === this.flags.application) || apps[0];
|
|
60
|
+
if (app) {
|
|
61
|
+
currentAppName = valueOf(app.name);
|
|
62
|
+
}
|
|
63
|
+
} catch {
|
|
64
|
+
currentAppName = void 0;
|
|
65
|
+
}
|
|
66
|
+
try {
|
|
67
|
+
const [teamResponse, environmentsResponse] = await Promise.all([
|
|
68
|
+
workosService.getTeam({ userId, organizationId }),
|
|
69
|
+
workosService.listEnvironments({ userId, organizationId })
|
|
70
|
+
]);
|
|
71
|
+
if (!teamResponse.team) {
|
|
44
72
|
this.error("No WorkOS team found for this organization", { exit: 1 });
|
|
45
73
|
}
|
|
74
|
+
const environments = environmentsResponse.environments || [];
|
|
75
|
+
const currentAppEnv = currentAppName ? environments.find((env) => env.name === currentAppName) : void 0;
|
|
46
76
|
switch (this.flags.output) {
|
|
47
77
|
case "json":
|
|
48
78
|
console.log(
|
|
49
79
|
JSON.stringify(
|
|
50
80
|
{
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
81
|
+
team: {
|
|
82
|
+
id: teamResponse.team.id,
|
|
83
|
+
name: teamResponse.team.name,
|
|
84
|
+
createdAt: teamResponse.team.createdAt,
|
|
85
|
+
updatedAt: teamResponse.team.updatedAt
|
|
86
|
+
},
|
|
87
|
+
environments: environments.map((env) => ({
|
|
88
|
+
name: env.name,
|
|
89
|
+
environmentId: env.environmentId,
|
|
90
|
+
clientId: env.clientId,
|
|
91
|
+
environmentType: env.environmentType
|
|
92
|
+
})),
|
|
93
|
+
currentApp: currentAppName
|
|
55
94
|
},
|
|
56
95
|
null,
|
|
57
96
|
2
|
|
@@ -60,20 +99,16 @@ Get JSON output with team details
|
|
|
60
99
|
break;
|
|
61
100
|
case "table":
|
|
62
101
|
console.table({
|
|
63
|
-
"Team ID":
|
|
64
|
-
"Team Name":
|
|
65
|
-
"Created":
|
|
66
|
-
"Updated":
|
|
102
|
+
"Team ID": teamResponse.team.id,
|
|
103
|
+
"Team Name": teamResponse.team.name,
|
|
104
|
+
"Created": teamResponse.team.createdAt ? new Date(Number(teamResponse.team.createdAt.seconds) * 1e3).toLocaleString() : "N/A",
|
|
105
|
+
"Updated": teamResponse.team.updatedAt ? new Date(Number(teamResponse.team.updatedAt.seconds) * 1e3).toLocaleString() : "N/A",
|
|
106
|
+
"Environments": environments.length
|
|
67
107
|
});
|
|
68
108
|
break;
|
|
69
109
|
case "text":
|
|
70
110
|
default:
|
|
71
|
-
this.
|
|
72
|
-
this.log("");
|
|
73
|
-
this.log(` ${source_default.cyan("Team ID:")} ${response.team.id}`);
|
|
74
|
-
this.log(` ${source_default.cyan("Team Name:")} ${response.team.name}`);
|
|
75
|
-
this.log(` ${source_default.cyan("Created:")} ${response.team.createdAt ? new Date(Number(response.team.createdAt.seconds) * 1e3).toLocaleString() : "N/A"}`);
|
|
76
|
-
this.log(` ${source_default.cyan("Updated:")} ${response.team.updatedAt ? new Date(Number(response.team.updatedAt.seconds) * 1e3).toLocaleString() : "N/A"}`);
|
|
111
|
+
this.renderTextStatus(teamResponse.team, environments, currentAppName, currentAppEnv);
|
|
77
112
|
break;
|
|
78
113
|
}
|
|
79
114
|
} catch (error) {
|
|
@@ -87,6 +122,62 @@ Get JSON output with team details
|
|
|
87
122
|
this.error(`Failed to get WorkOS team: ${err.message}`, { exit: 1 });
|
|
88
123
|
}
|
|
89
124
|
}
|
|
125
|
+
renderTextStatus(team, environments, currentAppName, currentAppEnv) {
|
|
126
|
+
this.log(source_default.bold("WorkOS Team Status"));
|
|
127
|
+
this.log("");
|
|
128
|
+
this.log(` ${source_default.cyan("Team ID:")} ${team.id}`);
|
|
129
|
+
this.log(` ${source_default.cyan("Team Name:")} ${team.name}`);
|
|
130
|
+
this.log(` ${source_default.cyan("Created:")} ${team.createdAt ? new Date(Number(team.createdAt.seconds) * 1e3).toLocaleString() : "N/A"}`);
|
|
131
|
+
this.log(` ${source_default.cyan("Updated:")} ${team.updatedAt ? new Date(Number(team.updatedAt.seconds) * 1e3).toLocaleString() : "N/A"}`);
|
|
132
|
+
this.log("");
|
|
133
|
+
if (environments.length > 0) {
|
|
134
|
+
this.log(source_default.bold(`Environments: ${environments.length}`));
|
|
135
|
+
for (const env of environments) {
|
|
136
|
+
const typeStr = env.environmentType === 1 ? "staging" : "production";
|
|
137
|
+
const typeColor = env.environmentType === 1 ? source_default.yellow : source_default.green;
|
|
138
|
+
this.log(` \u2022 ${source_default.bold(env.name)} ${source_default.dim("(")}${typeColor(typeStr)}${source_default.dim(")")}`);
|
|
139
|
+
}
|
|
140
|
+
this.log("");
|
|
141
|
+
} else {
|
|
142
|
+
this.log(source_default.dim("No environments configured"));
|
|
143
|
+
this.log("");
|
|
144
|
+
}
|
|
145
|
+
this.renderGuidance(environments, currentAppName, currentAppEnv);
|
|
146
|
+
}
|
|
147
|
+
renderGuidance(environments, currentAppName, currentAppEnv) {
|
|
148
|
+
this.log(source_default.bold("\u2192 Next Steps:"));
|
|
149
|
+
if (!currentAppName) {
|
|
150
|
+
if (environments.length === 0) {
|
|
151
|
+
this.log(source_default.dim(" Navigate to a project directory and run:"));
|
|
152
|
+
this.log(` ${source_default.cyan("raindrop build workos env create")}`);
|
|
153
|
+
} else {
|
|
154
|
+
this.log(` \u2022 View environment details: ${source_default.cyan("raindrop build workos env list")}`);
|
|
155
|
+
this.log(` \u2022 Invite team members: ${source_default.cyan("raindrop build workos invite <email> --role member")}`);
|
|
156
|
+
}
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
if (!currentAppEnv) {
|
|
160
|
+
this.log(source_default.dim(` Current app: ${source_default.bold(currentAppName)} (no WorkOS environment)`));
|
|
161
|
+
this.log("");
|
|
162
|
+
this.log(source_default.bold(" Recommended:"));
|
|
163
|
+
this.log(` Create environment: ${source_default.cyan(`raindrop build workos env create`)}`);
|
|
164
|
+
this.log(source_default.dim(` (defaults to app name "${currentAppName}")`));
|
|
165
|
+
if (environments.length > 0) {
|
|
166
|
+
this.log("");
|
|
167
|
+
this.log(source_default.bold(" Or attach existing environment:"));
|
|
168
|
+
for (const env of environments) {
|
|
169
|
+
this.log(` ${source_default.cyan(`raindrop build workos env attach ${env.name}`)}`);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
} else {
|
|
173
|
+
this.log(source_default.dim(` Current app: ${source_default.bold(currentAppName)}`));
|
|
174
|
+
this.log(source_default.green(` \u2713 WorkOS environment configured`));
|
|
175
|
+
this.log("");
|
|
176
|
+
this.log(` \u2022 Attach to version: ${source_default.cyan("raindrop build workos env attach")}`);
|
|
177
|
+
this.log(` \u2022 View details: ${source_default.cyan("raindrop build workos env get " + currentAppName)}`);
|
|
178
|
+
this.log(` \u2022 Invite members: ${source_default.cyan("raindrop build workos invite <email> --role member")}`);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
90
181
|
};
|
|
91
182
|
export {
|
|
92
183
|
Status as default
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-OZWZILJX.js";
|
|
4
4
|
import {
|
|
5
5
|
__toESM,
|
|
6
6
|
init_cjs_shims,
|
|
7
7
|
require_lib
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-HMD2JXLE.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/dns/create.ts
|
|
11
11
|
init_cjs_shims();
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveDnsNameToZoneId
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-5AOMZVOJ.js";
|
|
4
4
|
import {
|
|
5
5
|
esm_default
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-A26NDSVL.js";
|
|
7
7
|
import {
|
|
8
8
|
BaseCommand
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-OZWZILJX.js";
|
|
10
10
|
import {
|
|
11
11
|
__toESM,
|
|
12
12
|
init_cjs_shims,
|
|
13
13
|
require_lib
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-HMD2JXLE.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/dns/delete.ts
|
|
17
17
|
init_cjs_shims();
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveDnsNameToZoneId
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-5AOMZVOJ.js";
|
|
4
4
|
import {
|
|
5
5
|
source_default
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-6GTBXHHK.js";
|
|
7
7
|
import {
|
|
8
8
|
BaseCommand
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-OZWZILJX.js";
|
|
10
10
|
import {
|
|
11
11
|
__toESM,
|
|
12
12
|
init_cjs_shims,
|
|
13
13
|
require_lib
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-HMD2JXLE.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/dns/get.ts
|
|
17
17
|
init_cjs_shims();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-6GTBXHHK.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-OZWZILJX.js";
|
|
7
7
|
import {
|
|
8
8
|
__toESM,
|
|
9
9
|
init_cjs_shims,
|
|
10
10
|
require_lib
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-HMD2JXLE.js";
|
|
12
12
|
|
|
13
13
|
// src/commands/dns/list.ts
|
|
14
14
|
init_cjs_shims();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-OZWZILJX.js";
|
|
4
4
|
import {
|
|
5
5
|
__toESM,
|
|
6
6
|
init_cjs_shims,
|
|
7
7
|
require_lib
|
|
8
|
-
} from "../../../chunk-
|
|
8
|
+
} from "../../../chunk-HMD2JXLE.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/dns/records/create.ts
|
|
11
11
|
init_cjs_shims();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
esm_default
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-A26NDSVL.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-OZWZILJX.js";
|
|
7
7
|
import {
|
|
8
8
|
__toESM,
|
|
9
9
|
init_cjs_shims,
|
|
10
10
|
require_lib
|
|
11
|
-
} from "../../../chunk-
|
|
11
|
+
} from "../../../chunk-HMD2JXLE.js";
|
|
12
12
|
|
|
13
13
|
// src/commands/dns/records/delete.ts
|
|
14
14
|
init_cjs_shims();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-OZWZILJX.js";
|
|
4
4
|
import {
|
|
5
5
|
__toESM,
|
|
6
6
|
init_cjs_shims,
|
|
7
7
|
require_lib
|
|
8
|
-
} from "../../../chunk-
|
|
8
|
+
} from "../../../chunk-HMD2JXLE.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/dns/records/get.ts
|
|
11
11
|
init_cjs_shims();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-OZWZILJX.js";
|
|
4
4
|
import {
|
|
5
5
|
__toESM,
|
|
6
6
|
init_cjs_shims,
|
|
7
7
|
require_lib
|
|
8
|
-
} from "../../../chunk-
|
|
8
|
+
} from "../../../chunk-HMD2JXLE.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/dns/records/list.ts
|
|
11
11
|
init_cjs_shims();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-OZWZILJX.js";
|
|
4
4
|
import {
|
|
5
5
|
__toESM,
|
|
6
6
|
init_cjs_shims,
|
|
7
7
|
require_lib
|
|
8
|
-
} from "../../../chunk-
|
|
8
|
+
} from "../../../chunk-HMD2JXLE.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/dns/records/update.ts
|
|
11
11
|
init_cjs_shims();
|