@keystrokehq/cli 0.0.18 → 0.0.19
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 +1 -1
- package/dist/{accept.handler-B7QzdKCh.mjs → accept.handler-BVmNNAgL.mjs} +1 -1
- package/dist/{admin-CYpulx_A.mjs → admin-DQlHFuXn.mjs} +9 -9
- package/dist/{agents-Co6Jy_N8.mjs → agents-Dd7UeQCw.mjs} +3 -3
- package/dist/{api-keys-BUCLzRv_.mjs → api-keys-BsMBFiD_.mjs} +5 -5
- package/dist/{api-DsK8M-ZH.mjs → api-nR61stdq.mjs} +3 -4
- package/dist/{auth-niNm-yNT.mjs → auth-ZTuuEoD6.mjs} +5 -5
- package/dist/{auth.handler-BTH-Qb00.mjs → auth.handler-C1dZBdaG.mjs} +2 -2
- package/dist/{build-tasks-GVuMLS0h-CCxCqd02.mjs → build-tasks-GVuMLS0h-BaPhhGXO.mjs} +1 -1
- package/dist/{build-workflows-CV4tBo6S-DhFBlp6m.mjs → build-workflows-CV4tBo6S-szwrAGWT.mjs} +3 -3
- package/dist/{build.handler-BmlXPhed.mjs → build.handler-DJrEMCBw.mjs} +1 -1
- package/dist/{clear.handler-BDlwBzX4.mjs → clear.handler-BgeAg2de.mjs} +1 -1
- package/dist/{commander-BE37hxR3.mjs → commander-C5qcOo8m.mjs} +1 -1
- package/dist/{connect-C9NMD8Ky.mjs → connect-BtBKoXpi.mjs} +2 -2
- package/dist/{connect.handler-C7kysvhz.mjs → connect.handler-E8CmLRSF.mjs} +2 -2
- package/dist/{context-Bid-Rqj7.mjs → context-BydAGTiB.mjs} +1 -1
- package/dist/{create.handler-Cp9CV6SN.mjs → create.handler-CBxIPC3r.mjs} +1 -1
- package/dist/{credential-requirements-DrrQ9x9P.mjs → credential-requirements-Ob-7H-0F.mjs} +1 -1
- package/dist/{credentials-fMfKVlEn.mjs → credentials-BGaRMclS.mjs} +5 -5
- package/dist/{credentials-DUkVbhvj.mjs → credentials-jRiXEr6P.mjs} +1 -1
- package/dist/{current-deployment-workflow-DiwUcKoB.mjs → current-deployment-workflow-BVliROAz.mjs} +2 -2
- package/dist/{current.handler-eCR4nClu.mjs → current.handler-DBl9S67d.mjs} +1 -1
- package/dist/{default-urls-CTQqM1_A.mjs → default-urls-BoSm4s9C.mjs} +1 -1
- package/dist/{delete.handler-D4ElSAcr.mjs → delete.handler-Buu7Ip0D.mjs} +1 -1
- package/dist/{deploy-DyZh--f7.mjs → deploy-BPDUTKZD.mjs} +1 -1
- package/dist/{deploy-B7LRWcp6.mjs → deploy-CzTlgAFj.mjs} +2 -2
- package/dist/{deploy.handler-DVnH-Niv.mjs → deploy.handler-CCcJ7y3A.mjs} +9 -9
- package/dist/{diff.handler-lIA2pRBX.mjs → diff.handler-DUVFixeG.mjs} +2 -2
- package/dist/{dist-WFPTDQB3.mjs → dist-Cx0RV8s7.mjs} +4 -4
- package/dist/{env.handler-BIzQLlmo.mjs → env.handler-C8kNFz2U.mjs} +4 -4
- package/dist/{import-module--8x5SLum-D7EiPjwl.mjs → import-module--8x5SLum-DjPUZr4i.mjs} +9 -8
- package/dist/{init-jaqNLGmB.mjs → init-DeeOVc9m.mjs} +2 -2
- package/dist/{init.handler-DamvbPEw.mjs → init.handler-BMdhpusQ.mjs} +1 -1
- package/dist/{inspect.handler-_UcN7dxE.mjs → inspect.handler-QyTo8rWO.mjs} +2 -2
- package/dist/{integration-catalog-m8tj_XlD.mjs → integration-catalog-CmvYPvI6.mjs} +1 -1
- package/dist/integrations-tXZM-84g.mjs +185 -0
- package/dist/{invites-VntHNMYk.mjs → invites-ClyAatBW.mjs} +4 -4
- package/dist/{invites.list.handler-CPl4QHfc.mjs → invites.list.handler-CPkK_tPM.mjs} +1 -1
- package/dist/{invites.resend.handler-BAtb3AX4.mjs → invites.resend.handler-DIRI7tS2.mjs} +1 -1
- package/dist/{invites.revoke.handler-qXOF1Vgx.mjs → invites.revoke.handler-CcXcDBlU.mjs} +1 -1
- package/dist/keystroke.mjs +25 -24
- package/dist/{list-enrichment-DYvr3XDb.mjs → list-enrichment-B9238wom.mjs} +1 -1
- package/dist/{list.handler-BdRsjRlf.mjs → list.handler-BB-Dcm5B.mjs} +1 -1
- package/dist/{list.handler-C_iBLBmS.mjs → list.handler-Cbc9rlBx.mjs} +1 -1
- package/dist/{list.handler-CEjKSezx.mjs → list.handler-ClPAPSWm.mjs} +2 -2
- package/dist/{list.handler-pHnPFep8.mjs → list.handler-DdFGHkqt.mjs} +3 -3
- package/dist/{list.handler-DUz1bJ4x.mjs → list.handler-Xl_F89kq.mjs} +1 -1
- package/dist/{list.handler-CJUFdmaU.mjs → list.handler-tnsRn-Rj.mjs} +1 -1
- package/dist/{listen-DLGZEQRL.mjs → listen-ksMVpdNa.mjs} +2 -2
- package/dist/{listen.handler-kaAvYk-B.mjs → listen.handler-DEJSBg8y.mjs} +1 -1
- package/dist/{logs-CcYqFKRU.mjs → logs-C-JxXsgc.mjs} +1 -1
- package/dist/{logs.handler-lboRKNoE.mjs → logs.handler-BIegqc2p.mjs} +1 -1
- package/dist/{members.add.handler-DBydP0SR.mjs → members.add.handler-D4ggN2Xi.mjs} +1 -1
- package/dist/{members.invite.handler-D4-7fiYC.mjs → members.invite.handler-BYIt6Oib.mjs} +1 -1
- package/dist/{members.list.handler-Z4cIbcNg.mjs → members.list.handler-CvpeYKC4.mjs} +1 -1
- package/dist/{members.remove.handler-J56D83O7.mjs → members.remove.handler-C4GBUVYE.mjs} +1 -1
- package/dist/{members.update.handler-B5rBv6dt.mjs → members.update.handler-TpM1oi0L.mjs} +1 -1
- package/dist/{org-DGS91uc-.mjs → org-DIGyb7XZ.mjs} +15 -15
- package/dist/{orgs.create.handler-B4naNUSN.mjs → orgs.create.handler-RIYhse_Q.mjs} +1 -1
- package/dist/{orgs.get.handler-Ci_JrT08.mjs → orgs.get.handler-BfOpbSom.mjs} +1 -1
- package/dist/{orgs.list.handler-CJ2byIEj.mjs → orgs.list.handler-BMgj9yTD.mjs} +1 -1
- package/dist/{paused.handler-BQSQvQhB.mjs → paused.handler-DAZ1EaLN.mjs} +1 -1
- package/dist/{projects-fWvIJQ80.mjs → projects-BndElPAx.mjs} +4 -2
- package/dist/{projects-D90_uEC2.mjs → projects-Cy6CH3fI.mjs} +1 -1
- package/dist/{register.handler-CleQJhtQ.mjs → register.handler-BXeh5mdb.mjs} +18 -9
- package/dist/{requirements.handler-B51sxQSy.mjs → requirements.handler-C5vobjdJ.mjs} +3 -3
- package/dist/{run-polling-CC6y2XXI.mjs → run-polling-BhOdFyh3.mjs} +1 -1
- package/dist/{run.handler-B31BpZJP.mjs → run.handler-BpLmwF_a.mjs} +3 -3
- package/dist/{runs-Bg_qDeQi.mjs → runs-DaSd4eXn.mjs} +2 -2
- package/dist/{schemas-B8c7Z5Iy.mjs → schemas-BxFPUGWT.mjs} +3 -2
- package/dist/{skills.command-JwKWpGvU.mjs → skills.command-DQc_qGAF.mjs} +1 -1
- package/dist/{src-B0tNjKMg.mjs → src-0XVwHXNp.mjs} +1 -1
- package/dist/{switch.handler-Cu81T2HY.mjs → switch.handler-CCjMrRZN.mjs} +1 -1
- package/dist/{sync-CXNveL61.mjs → sync-BdTQDZjP.mjs} +2 -2
- package/dist/{sync.handler-7g1yDt0H.mjs → sync.handler-DjY8nqbB.mjs} +3 -3
- package/dist/{task-BguWXIiH.mjs → task-BRmL2lmw.mjs} +1 -1
- package/dist/{task-target-build-BaMtXnN7.mjs → task-target-build-DCV0UDaz.mjs} +1 -1
- package/dist/task-target-deploy-runner.mjs +5 -5
- package/dist/{test-A5hz3c7j.mjs → test-TTQXrhHm.mjs} +2 -2
- package/dist/{test.handler-CJtaMZVy.mjs → test.handler-B7Ahe9ta.mjs} +4 -4
- package/dist/{test.handler-Cq2l7SAr.mjs → test.handler-CkkplyX6.mjs} +1 -1
- package/dist/{tool.handler-B-mOL128.mjs → tool.handler-DMfFZCRg.mjs} +5 -5
- package/dist/{trigger-manifest-Bq2zRbkV.mjs → trigger-manifest-DxdCjGz_.mjs} +1 -1
- package/dist/{upgrade-DhfpoyRV.mjs → upgrade-Cx-bUWUc.mjs} +1 -1
- package/dist/{upload.handler-D3-W_1kq.mjs → upload.handler-_d2WZwxd.mjs} +4 -4
- package/dist/{users.get.handler-Bd0OBI-E.mjs → users.get.handler-DIooG7Wy.mjs} +1 -1
- package/dist/{users.list.handler-CacJz6eC.mjs → users.list.handler-DdGW-DSg.mjs} +1 -1
- package/dist/{users.set-role.handler-bZMQtUR0.mjs → users.set-role.handler-Ek-kntLp.mjs} +1 -1
- package/dist/{validate.handler-Ccq66ki4.mjs → validate.handler-Cq2uJjXY.mjs} +1 -1
- package/dist/{workflow-build-_WNsLKwW.mjs → workflow-build-C8AiYxqp.mjs} +7 -7
- package/dist/{workflow-build-manifest-B2GqHyWE.mjs → workflow-build-manifest-BKKW9D05.mjs} +1 -1
- package/dist/{workflows-Dy2M9bEr.mjs → workflows-K6zetcqI.mjs} +14 -14
- package/dist/{writer-B-SpZ0G2-tq1MFgid.mjs → writer-B-SpZ0G2-CLh7sXRd.mjs} +1 -1
- package/package.json +3 -3
- package/dist/integrations-DRL3JmC8.mjs +0 -85
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { a as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
6
6
|
import { i as requireOrganizationId, n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-CSZj4XlH.mjs";
|
|
7
7
|
import Table from "cli-table3";
|
|
8
8
|
//#region src/commands/org/members.list.handler.ts
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { a as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
6
6
|
import { i as requireOrganizationId, n as isIamJsonMode, r as requireConfirmation, t as handleIamError } from "./iam-command-utils-CSZj4XlH.mjs";
|
|
7
7
|
//#region src/commands/org/members.remove.handler.ts
|
|
8
8
|
async function handleMembersRemove(options, ctx) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { a as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
6
6
|
import { i as requireOrganizationId, n as isIamJsonMode, r as requireConfirmation, t as handleIamError } from "./iam-command-utils-CSZj4XlH.mjs";
|
|
7
7
|
//#region src/commands/org/members.update.handler.ts
|
|
8
8
|
async function handleMembersUpdate(options, ctx) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-BWcVRt-T.mjs";
|
|
4
|
-
import { t as createTypedCommand } from "./commander-
|
|
4
|
+
import { t as createTypedCommand } from "./commander-C5qcOo8m.mjs";
|
|
5
5
|
import { t as OrgRoleSchema } from "./schema-Lbp5lGJu.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/commands/org/invites.command.ts
|
|
@@ -36,14 +36,14 @@ function createOrgInvitesCommand() {
|
|
|
36
36
|
description: "Manage organization invitations",
|
|
37
37
|
schema: OrgInvitesListOptionsSchema,
|
|
38
38
|
optionsConfig: { ...JSON_OPTION_CONFIG },
|
|
39
|
-
loadHandler: async () => (await import("./invites.list.handler-
|
|
39
|
+
loadHandler: async () => (await import("./invites.list.handler-CPkK_tPM.mjs")).handleOrgInvitesList,
|
|
40
40
|
subcommands: [
|
|
41
41
|
createTypedCommand({
|
|
42
42
|
name: "list",
|
|
43
43
|
description: "List organization invites",
|
|
44
44
|
schema: OrgInvitesListOptionsSchema,
|
|
45
45
|
optionsConfig: { ...JSON_OPTION_CONFIG },
|
|
46
|
-
loadHandler: async () => (await import("./invites.list.handler-
|
|
46
|
+
loadHandler: async () => (await import("./invites.list.handler-CPkK_tPM.mjs")).handleOrgInvitesList
|
|
47
47
|
}),
|
|
48
48
|
createTypedCommand({
|
|
49
49
|
name: "resend",
|
|
@@ -55,7 +55,7 @@ function createOrgInvitesCommand() {
|
|
|
55
55
|
description: "Invite ID to resend",
|
|
56
56
|
key: "inviteId"
|
|
57
57
|
},
|
|
58
|
-
loadHandler: async () => (await import("./invites.resend.handler-
|
|
58
|
+
loadHandler: async () => (await import("./invites.resend.handler-DIRI7tS2.mjs")).handleOrgInvitesResend
|
|
59
59
|
}),
|
|
60
60
|
createTypedCommand({
|
|
61
61
|
name: "revoke",
|
|
@@ -67,7 +67,7 @@ function createOrgInvitesCommand() {
|
|
|
67
67
|
description: "Invite ID to revoke",
|
|
68
68
|
key: "inviteId"
|
|
69
69
|
},
|
|
70
|
-
loadHandler: async () => (await import("./invites.revoke.handler-
|
|
70
|
+
loadHandler: async () => (await import("./invites.revoke.handler-CcXcDBlU.mjs")).handleOrgInvitesRevoke
|
|
71
71
|
})
|
|
72
72
|
]
|
|
73
73
|
});
|
|
@@ -142,28 +142,28 @@ function createOrgMembersCommand() {
|
|
|
142
142
|
description: "Manage organization members",
|
|
143
143
|
schema: MembersListOptionsSchema,
|
|
144
144
|
optionsConfig: { ...JSON_OPTION_CONFIG },
|
|
145
|
-
loadHandler: async () => (await import("./members.list.handler-
|
|
145
|
+
loadHandler: async () => (await import("./members.list.handler-CvpeYKC4.mjs")).handleMembersList,
|
|
146
146
|
subcommands: [
|
|
147
147
|
createTypedCommand({
|
|
148
148
|
name: "list",
|
|
149
149
|
description: "List organization members",
|
|
150
150
|
schema: MembersListOptionsSchema,
|
|
151
151
|
optionsConfig: { ...JSON_OPTION_CONFIG },
|
|
152
|
-
loadHandler: async () => (await import("./members.list.handler-
|
|
152
|
+
loadHandler: async () => (await import("./members.list.handler-CvpeYKC4.mjs")).handleMembersList
|
|
153
153
|
}),
|
|
154
154
|
createTypedCommand({
|
|
155
155
|
name: "invite",
|
|
156
156
|
description: "Invite a user to the current organization",
|
|
157
157
|
schema: MembersInviteOptionsSchema,
|
|
158
158
|
optionsConfig: INVITE_OPTIONS_CONFIG,
|
|
159
|
-
loadHandler: async () => (await import("./members.invite.handler-
|
|
159
|
+
loadHandler: async () => (await import("./members.invite.handler-BYIt6Oib.mjs")).handleMembersInvite
|
|
160
160
|
}),
|
|
161
161
|
createTypedCommand({
|
|
162
162
|
name: "add",
|
|
163
163
|
description: "Add an existing user to the current organization",
|
|
164
164
|
schema: MembersAddOptionsSchema,
|
|
165
165
|
optionsConfig: ADD_OPTIONS_CONFIG,
|
|
166
|
-
loadHandler: async () => (await import("./members.add.handler-
|
|
166
|
+
loadHandler: async () => (await import("./members.add.handler-D4ggN2Xi.mjs")).handleMembersAdd
|
|
167
167
|
}),
|
|
168
168
|
createTypedCommand({
|
|
169
169
|
name: "update",
|
|
@@ -175,7 +175,7 @@ function createOrgMembersCommand() {
|
|
|
175
175
|
description: "User ID to update",
|
|
176
176
|
key: "userId"
|
|
177
177
|
},
|
|
178
|
-
loadHandler: async () => (await import("./members.update.handler-
|
|
178
|
+
loadHandler: async () => (await import("./members.update.handler-TpM1oi0L.mjs")).handleMembersUpdate
|
|
179
179
|
}),
|
|
180
180
|
createTypedCommand({
|
|
181
181
|
name: "remove",
|
|
@@ -187,7 +187,7 @@ function createOrgMembersCommand() {
|
|
|
187
187
|
description: "User ID to remove",
|
|
188
188
|
key: "userId"
|
|
189
189
|
},
|
|
190
|
-
loadHandler: async () => (await import("./members.remove.handler-
|
|
190
|
+
loadHandler: async () => (await import("./members.remove.handler-C4GBUVYE.mjs")).handleMembersRemove
|
|
191
191
|
})
|
|
192
192
|
]
|
|
193
193
|
});
|
|
@@ -202,28 +202,28 @@ function createOrgCommand() {
|
|
|
202
202
|
description: "Manage organization context",
|
|
203
203
|
schema: OrgOptionsSchema,
|
|
204
204
|
optionsConfig: ORG_OPTIONS_CONFIG,
|
|
205
|
-
loadHandler: async () => (await import("./list.handler-
|
|
205
|
+
loadHandler: async () => (await import("./list.handler-Cbc9rlBx.mjs")).handleOrgList,
|
|
206
206
|
subcommands: [
|
|
207
207
|
createTypedCommand({
|
|
208
208
|
name: "list",
|
|
209
209
|
description: "List your organizations",
|
|
210
210
|
schema: OrgOptionsSchema,
|
|
211
211
|
optionsConfig: ORG_OPTIONS_CONFIG,
|
|
212
|
-
loadHandler: async () => (await import("./list.handler-
|
|
212
|
+
loadHandler: async () => (await import("./list.handler-Cbc9rlBx.mjs")).handleOrgList
|
|
213
213
|
}),
|
|
214
214
|
createTypedCommand({
|
|
215
215
|
name: "current",
|
|
216
216
|
description: "Show the current organization",
|
|
217
217
|
schema: OrgOptionsSchema,
|
|
218
218
|
optionsConfig: ORG_OPTIONS_CONFIG,
|
|
219
|
-
loadHandler: async () => (await import("./current.handler-
|
|
219
|
+
loadHandler: async () => (await import("./current.handler-DBl9S67d.mjs")).handleOrgCurrent
|
|
220
220
|
}),
|
|
221
221
|
createTypedCommand({
|
|
222
222
|
name: "switch",
|
|
223
223
|
description: "Switch to a different organization",
|
|
224
224
|
schema: OrgOptionsSchema,
|
|
225
225
|
optionsConfig: ORG_OPTIONS_CONFIG,
|
|
226
|
-
loadHandler: async () => (await import("./switch.handler-
|
|
226
|
+
loadHandler: async () => (await import("./switch.handler-CCjMrRZN.mjs")).handleOrgSwitch
|
|
227
227
|
}),
|
|
228
228
|
createOrgMembersCommand(),
|
|
229
229
|
createOrgInvitesCommand()
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { a as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
6
6
|
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-CSZj4XlH.mjs";
|
|
7
7
|
//#region src/commands/admin/orgs.create.handler.ts
|
|
8
8
|
async function handleAdminOrgsCreate(options, ctx) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { a as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
6
6
|
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-CSZj4XlH.mjs";
|
|
7
7
|
//#region src/commands/admin/orgs.get.handler.ts
|
|
8
8
|
async function handleAdminOrgsGet(options, ctx) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { a as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
6
6
|
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-CSZj4XlH.mjs";
|
|
7
7
|
import Table from "cli-table3";
|
|
8
8
|
//#region src/commands/admin/orgs.list.handler.ts
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { a as ui, j as throwReportedCliExit, y as toErrorMessage } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
6
6
|
//#region src/commands/workflows/paused/paused.handler.ts
|
|
7
7
|
async function handleWorkflowsPaused(options, ctx) {
|
|
8
8
|
const client = requireClient(ctx);
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-CH6r78ws.mjs";
|
|
4
4
|
import { ZodError, z } from "zod";
|
|
5
5
|
import ky from "ky";
|
|
6
|
+
//#region ../../packages/workflow-sdk/src/env.ts
|
|
7
|
+
const optionalNonEmptyString = z.preprocess((value) => value === "" ? void 0 : value, z.string().min(1).optional());
|
|
6
8
|
z.object({
|
|
7
9
|
SERVER_URL: z.url(),
|
|
8
10
|
KEYSTROKE_API_KEY: z.string().min(1)
|
|
@@ -10,8 +12,8 @@ z.object({
|
|
|
10
12
|
/** Lenient env for client - only requires what's needed when not overridden by config */
|
|
11
13
|
const clientEnvSchema = z.object({
|
|
12
14
|
SERVER_URL: z.url().optional(),
|
|
13
|
-
KEYSTROKE_API_KEY:
|
|
14
|
-
KEYSTROKE_ORG_ID:
|
|
15
|
+
KEYSTROKE_API_KEY: optionalNonEmptyString,
|
|
16
|
+
KEYSTROKE_ORG_ID: optionalNonEmptyString
|
|
15
17
|
});
|
|
16
18
|
function getClientEnv() {
|
|
17
19
|
return clientEnvSchema.parse(process.env);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-BWcVRt-T.mjs";
|
|
4
|
-
import { t as createTypedCommand } from "./commander-
|
|
4
|
+
import { t as createTypedCommand } from "./commander-C5qcOo8m.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/commands/projects/projects.command.ts
|
|
7
7
|
function createProjectsCommand() {
|
|
@@ -19,8 +19,8 @@ function exitWithError(ctx, message, opts) {
|
|
|
19
19
|
/**
|
|
20
20
|
* Handle `keystroke integrations register <integrationId>`.
|
|
21
21
|
*
|
|
22
|
-
* Upserts
|
|
23
|
-
* `POST /api/v1/admin/
|
|
22
|
+
* Upserts an org-scoped custom `provider_apps` row by calling
|
|
23
|
+
* `POST /api/v1/admin/provider-apps` on the server.
|
|
24
24
|
*/
|
|
25
25
|
async function handleIntegrationsRegister(options, ctx) {
|
|
26
26
|
const integrationId = options.integrationId?.trim();
|
|
@@ -37,17 +37,27 @@ async function handleIntegrationsRegister(options, ctx) {
|
|
|
37
37
|
code: "USAGE_ERROR",
|
|
38
38
|
hint: `Example: keystroke integrations register ${integrationId} --client-app acmeClientApp`
|
|
39
39
|
});
|
|
40
|
+
if (!options.provider) exitWithError(ctx, "Missing --provider <provider>.", {
|
|
41
|
+
code: "USAGE_ERROR",
|
|
42
|
+
hint: `Example: keystroke integrations register ${integrationId} --provider slack --client-app acmeClientApp --external-app-id A123`
|
|
43
|
+
});
|
|
44
|
+
if (!options.externalAppId) exitWithError(ctx, "Missing --external-app-id <id>.", {
|
|
45
|
+
code: "USAGE_ERROR",
|
|
46
|
+
hint: `Example: keystroke integrations register ${integrationId} --provider slack --client-app acmeClientApp --external-app-id A123`
|
|
47
|
+
});
|
|
40
48
|
const displayName = options.displayName ?? integrationId;
|
|
41
|
-
if (!ctx.jsonMode) ui.text(`Registering
|
|
49
|
+
if (!ctx.jsonMode) ui.text(`Registering provider app "${integrationId}"...`);
|
|
42
50
|
try {
|
|
43
|
-
const response = await fetch(`${baseUrl}/api/v1/admin/
|
|
51
|
+
const response = await fetch(`${baseUrl}/api/v1/admin/provider-apps`, {
|
|
44
52
|
method: "POST",
|
|
45
53
|
headers: {
|
|
46
54
|
Authorization: `Bearer ${apiKey}`,
|
|
47
55
|
"Content-Type": "application/json"
|
|
48
56
|
},
|
|
49
57
|
body: JSON.stringify({
|
|
50
|
-
|
|
58
|
+
appRef: integrationId,
|
|
59
|
+
provider: options.provider,
|
|
60
|
+
externalAppId: options.externalAppId,
|
|
51
61
|
clientAppCredentialSetId: options.clientAppCredentialSetId,
|
|
52
62
|
displayName
|
|
53
63
|
})
|
|
@@ -63,13 +73,12 @@ async function handleIntegrationsRegister(options, ctx) {
|
|
|
63
73
|
if (ctx.jsonMode) {
|
|
64
74
|
writeJson({
|
|
65
75
|
status: data.created ? "created" : "updated",
|
|
66
|
-
|
|
76
|
+
providerApp: data.providerApp
|
|
67
77
|
});
|
|
68
78
|
return;
|
|
69
79
|
}
|
|
70
|
-
if (data.created) ui.success(`Registered
|
|
71
|
-
else ui.success(`Updated
|
|
72
|
-
ui.hint("Workspace-authored OAuth connect flows are not available yet. This registration stores the client app metadata for future support.");
|
|
80
|
+
if (data.created) ui.success(`Registered provider app for "${integrationId}".`);
|
|
81
|
+
else ui.success(`Updated provider app for "${integrationId}".`);
|
|
73
82
|
} catch (error) {
|
|
74
83
|
if (error instanceof Error && error.name === "CliExitError") throw error;
|
|
75
84
|
if (isNetworkError(error)) exitWithError(ctx, `Could not reach the Keystroke server to register "${integrationId}".`, {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import { a as ui, c as getProcessEnv, n as style, t as ANSI } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
5
|
-
import { a as readManifestsFromOutDir } from "./dist-
|
|
5
|
+
import { a as readManifestsFromOutDir } from "./dist-Cx0RV8s7.mjs";
|
|
6
6
|
import { t as requireWorkflowsDir } from "./resolve-project-CNQtOWE4.mjs";
|
|
7
7
|
import { t as readCredentialEnvMap } from "./credential-env-map-BA4LNI7x.mjs";
|
|
8
|
-
import { a as loadProjectDotenvFile, c as getTerminalContentWidth, o as manifestGroupKey, s as normalizeManifestScopeToServer, t as buildCredentialWorkflowConsumersByGroup, u as truncateWithEllipsis } from "./list-enrichment-
|
|
9
|
-
import { t as groupCredentialRequirements } from "./credentials-
|
|
8
|
+
import { a as loadProjectDotenvFile, c as getTerminalContentWidth, o as manifestGroupKey, s as normalizeManifestScopeToServer, t as buildCredentialWorkflowConsumersByGroup, u as truncateWithEllipsis } from "./list-enrichment-B9238wom.mjs";
|
|
9
|
+
import { t as groupCredentialRequirements } from "./credentials-jRiXEr6P.mjs";
|
|
10
10
|
//#region src/commands/credentials/requirements/requirements-display.ts
|
|
11
11
|
function dimLabel(label, width = 10) {
|
|
12
12
|
return style(label.padEnd(width), ANSI.dim);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { O as InputValidationError, a as ui, y as toErrorMessage } from "./keystroke.mjs";
|
|
4
|
-
import { a as readManifestsFromOutDir } from "./dist-
|
|
4
|
+
import { a as readManifestsFromOutDir } from "./dist-Cx0RV8s7.mjs";
|
|
5
5
|
import { a as validateRequiredFields, n as formatValidationError, t as formatMissingInputError } from "./schema-display-NVEl_DFY.mjs";
|
|
6
6
|
import { n as sleep, t as TERMINAL_STATUSES } from "./run-polling-DARidqo-.mjs";
|
|
7
7
|
import * as path$1 from "node:path";
|
|
@@ -4,10 +4,10 @@ import { D as CliExitError, a as ui, j as throwReportedCliExit, y as toErrorMess
|
|
|
4
4
|
import { i as projects } from "./dist-CIInPRGh.mjs";
|
|
5
5
|
import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
6
6
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
7
|
-
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-
|
|
7
|
+
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-BydAGTiB.mjs";
|
|
8
8
|
import { n as resolveWorkflowsDir } from "./resolve-project-CNQtOWE4.mjs";
|
|
9
|
-
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-
|
|
10
|
-
import { i as resolveWorkflowGlobals, o as validateInputOrExit, r as resolveRunInput, s as validateWorkflowGlobalsOrExit, t as pollForCompletion } from "./run-polling-
|
|
9
|
+
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-BVliROAz.mjs";
|
|
10
|
+
import { i as resolveWorkflowGlobals, o as validateInputOrExit, r as resolveRunInput, s as validateWorkflowGlobalsOrExit, t as pollForCompletion } from "./run-polling-BhOdFyh3.mjs";
|
|
11
11
|
//#region src/commands/workflows/run.handler.ts
|
|
12
12
|
async function handleWorkflowsRun(options, ctx) {
|
|
13
13
|
const client = requireClient(ctx);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { a as ui, j as throwReportedCliExit, n as style, t as ANSI, y as toErrorMessage } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson, n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-BWcVRt-T.mjs";
|
|
5
|
-
import { t as createTypedCommand } from "./commander-
|
|
6
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { t as createTypedCommand } from "./commander-C5qcOo8m.mjs";
|
|
6
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
//#region src/commands/runs/inspect-display.ts
|
|
9
9
|
function renderRunInspect(input) {
|
|
@@ -46,10 +46,11 @@ function idNoSpacesString(fieldName) {
|
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* Non-empty trimmed string for credential definition ids.
|
|
49
|
-
*
|
|
49
|
+
* Allows namespaced ids such as `keystroke:slack` plus letters, numbers,
|
|
50
|
+
* hyphens, and underscores.
|
|
50
51
|
*/
|
|
51
52
|
function credentialSetIdString(fieldName) {
|
|
52
|
-
return z.string().trim().min(1, { error: `${fieldName} cannot be empty` }).max(255, { error: `${fieldName} cannot exceed 255 characters` }).refine((s) => /^[a-zA-Z0-9_
|
|
53
|
+
return z.string().trim().min(1, { error: `${fieldName} cannot be empty` }).max(255, { error: `${fieldName} cannot exceed 255 characters` }).refine((s) => /^[a-zA-Z0-9_:-]+$/.test(s), { error: `${fieldName} must only contain letters, numbers, hyphens, underscores, and colons` });
|
|
53
54
|
}
|
|
54
55
|
function optionalTrimmedNonEmptyString(fieldName) {
|
|
55
56
|
return trimmedNonEmptyString(fieldName).optional();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-BWcVRt-T.mjs";
|
|
4
|
-
import { t as createTypedCommand } from "./commander-
|
|
4
|
+
import { t as createTypedCommand } from "./commander-C5qcOo8m.mjs";
|
|
5
5
|
import { t as SKILL_INSTALL_METHODS } from "./types-BMBuhHhW.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/commands/skills/skills.command.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { a as createKyInstance, i as buildSearchParams, n as auth, r as bundles, s as getClientEnv, t as projects$1 } from "./projects-
|
|
3
|
+
import { a as createKyInstance, i as buildSearchParams, n as auth, r as bundles, s as getClientEnv, t as projects$1 } from "./projects-BndElPAx.mjs";
|
|
4
4
|
//#region ../../packages/workflow-sdk/src/v1/admin.ts
|
|
5
5
|
const admin = (api) => ({
|
|
6
6
|
orgs: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { a as ui, j as throwReportedCliExit } from "./keystroke.mjs";
|
|
4
4
|
import { n as credentials } from "./dist-CIInPRGh.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
6
6
|
import { select } from "@clack/prompts";
|
|
7
7
|
//#region src/commands/org/switch.handler.ts
|
|
8
8
|
async function handleOrgSwitch(_options, ctx) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { t as createTypedCommand } from "./commander-
|
|
3
|
+
import { t as createTypedCommand } from "./commander-C5qcOo8m.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/commands/sync/sync.command.ts
|
|
6
6
|
/**
|
|
@@ -32,7 +32,7 @@ function createSyncCommand() {
|
|
|
32
32
|
description: "Sync local workflows with Keystroke",
|
|
33
33
|
schema: SyncOptionsSchema,
|
|
34
34
|
optionsConfig: SYNC_OPTIONS_CONFIG,
|
|
35
|
-
loadHandler: async () => (await import("./sync.handler-
|
|
35
|
+
loadHandler: async () => (await import("./sync.handler-DjY8nqbB.mjs")).handleSync
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import { P as logger, a as ui, j as throwReportedCliExit, l as isLocalMode, y as toErrorMessage } from "./keystroke.mjs";
|
|
4
4
|
import { i as projects } from "./dist-CIInPRGh.mjs";
|
|
5
|
-
import { a as validateApiKey, i as requireClient } from "./context-
|
|
6
|
-
import { n as deployFromDir } from "./dist-
|
|
5
|
+
import { a as validateApiKey, i as requireClient } from "./context-BydAGTiB.mjs";
|
|
6
|
+
import { n as deployFromDir } from "./dist-Cx0RV8s7.mjs";
|
|
7
7
|
import { t as requireWorkflowsDir } from "./resolve-project-CNQtOWE4.mjs";
|
|
8
|
-
import { a as runWorkflowBuild, n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-
|
|
8
|
+
import { a as runWorkflowBuild, n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-C8AiYxqp.mjs";
|
|
9
9
|
import { t as createBuildProgress } from "./build-progress-AR8xow4_.mjs";
|
|
10
10
|
import { t as createDeployProgress } from "./deploy-progress-DK87VKJ-.mjs";
|
|
11
11
|
//#region src/commands/sync/sync.handler.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { n as __exportAll } from "./chunk-CH6r78ws.mjs";
|
|
4
|
-
import { a as descriptionString, c as optionalDescriptionString, d as trimmedNonEmptyStringUnbounded, i as createStructuralSchema, n as credentialSetProxyConfigSchema, o as idNoSpacesString, s as jsonSchemaObject, t as CredentialSetManifestSchema, u as trimmedNonEmptyString } from "./schemas-
|
|
4
|
+
import { a as descriptionString, c as optionalDescriptionString, d as trimmedNonEmptyStringUnbounded, i as createStructuralSchema, n as credentialSetProxyConfigSchema, o as idNoSpacesString, s as jsonSchemaObject, t as CredentialSetManifestSchema, u as trimmedNonEmptyString } from "./schemas-BxFPUGWT.mjs";
|
|
5
5
|
import { t as parseCronExpression } from "./cron-parser-Dw_cWzFu.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
const SHA256HashSchema = z.string().length(64, "Must be 64 characters").regex(/^[a-f0-9]{64}$/i, "Must be hexadecimal").transform((value) => value);
|
|
@@ -321,7 +321,7 @@ function createPreparedTaskTarget(artifact, triggers) {
|
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
323
|
async function tryParseTaskBuildManifest(manifest) {
|
|
324
|
-
const { TaskBuildManifestSchema } = await import("./task-
|
|
324
|
+
const { TaskBuildManifestSchema } = await import("./task-BRmL2lmw.mjs").then((n) => n.t);
|
|
325
325
|
const result = TaskBuildManifestSchema.safeParse(manifest);
|
|
326
326
|
return result.success ? result.data : null;
|
|
327
327
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { r as getKeystrokeProjectPath } from "./paths-JzzFkXQA-CEipIeVl.mjs";
|
|
4
|
-
import "./default-urls-
|
|
4
|
+
import "./default-urls-BoSm4s9C.mjs";
|
|
5
5
|
import "./dist-CIInPRGh.mjs";
|
|
6
6
|
import { n as findProjectRoot, t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
7
7
|
import { t as resolveCliCredentials } from "./resolve-cli-credentials-DytxgMwn.mjs";
|
|
@@ -119,7 +119,7 @@ function restartStage(options, projectRoot, stage) {
|
|
|
119
119
|
}
|
|
120
120
|
async function runBuildPhase(options, projectRoot) {
|
|
121
121
|
const projectConfig = await assertWorkflowProjectRoot(projectRoot);
|
|
122
|
-
const { buildTaskTargetEntries } = await import("./task-target-build-
|
|
122
|
+
const { buildTaskTargetEntries } = await import("./task-target-build-DCV0UDaz.mjs");
|
|
123
123
|
await writeBuildDescriptor(projectRoot, {
|
|
124
124
|
projectRoot,
|
|
125
125
|
projectConfig,
|
|
@@ -132,7 +132,7 @@ async function runBuildPhase(options, projectRoot) {
|
|
|
132
132
|
}
|
|
133
133
|
async function runPreparePhase(projectRoot) {
|
|
134
134
|
const buildDescriptor = await readBuildDescriptor(projectRoot);
|
|
135
|
-
const { prepareTaskTargetBuiltTasks } = await import("./task-target-build-
|
|
135
|
+
const { prepareTaskTargetBuiltTasks } = await import("./task-target-build-DCV0UDaz.mjs");
|
|
136
136
|
const prepareResult = await prepareTaskTargetBuiltTasks({
|
|
137
137
|
builtTasks: buildDescriptor.builtTasks,
|
|
138
138
|
projectRoot
|
|
@@ -152,7 +152,7 @@ async function resolveDeployAuthOptions(options) {
|
|
|
152
152
|
serverUrl: options.serverUrl ?? envServerUrl
|
|
153
153
|
});
|
|
154
154
|
const apiKey = resolved.apiKey;
|
|
155
|
-
const serverUrl = resolved.serverUrl ?? "https://api.
|
|
155
|
+
const serverUrl = resolved.serverUrl ?? "https://api.keystroke.ai";
|
|
156
156
|
const organizationId = options.org ?? process.env.KEYSTROKE_ORG_ID ?? resolved.activeOrg?.organizationId;
|
|
157
157
|
if (!apiKey || !serverUrl) throw new Error("Not authenticated. Run `keystroke auth` or pass --api-key and --server-url.");
|
|
158
158
|
return {
|
|
@@ -163,7 +163,7 @@ async function resolveDeployAuthOptions(options) {
|
|
|
163
163
|
}
|
|
164
164
|
async function runDeployPhase(options, projectRoot) {
|
|
165
165
|
const descriptor = await readDescriptor(projectRoot);
|
|
166
|
-
const { createDeployClient } = await import("./deploy-
|
|
166
|
+
const { createDeployClient } = await import("./deploy-BPDUTKZD.mjs");
|
|
167
167
|
const client = createDeployClient(await resolveDeployAuthOptions(options));
|
|
168
168
|
const auth = await client.public.auth.validate();
|
|
169
169
|
if (auth.organizationId !== descriptor.projectConfig.organizationId) throw new Error(`Project organization mismatch: config=${descriptor.projectConfig.organizationId} auth=${auth.organizationId}`);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { a as ui } from "./keystroke.mjs";
|
|
4
4
|
import { n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-BWcVRt-T.mjs";
|
|
5
|
-
import { t as createTypedCommand } from "./commander-
|
|
5
|
+
import { t as createTypedCommand } from "./commander-C5qcOo8m.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/commands/test/test.command.ts
|
|
8
8
|
const TestOptionsSchema = JsonOptionSchema;
|
|
@@ -63,7 +63,7 @@ function createTestCommand() {
|
|
|
63
63
|
description: "Agent tool name from the built manifest",
|
|
64
64
|
key: "toolName"
|
|
65
65
|
},
|
|
66
|
-
loadHandler: async () => (await import("./tool.handler-
|
|
66
|
+
loadHandler: async () => (await import("./tool.handler-DMfFZCRg.mjs")).handleTestTool
|
|
67
67
|
})]
|
|
68
68
|
});
|
|
69
69
|
cmd.enablePositionalOptions();
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import { D as CliExitError, a as ui, l as isLocalMode, y as toErrorMessage } from "./keystroke.mjs";
|
|
4
4
|
import { i as projects } from "./dist-CIInPRGh.mjs";
|
|
5
5
|
import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
6
|
-
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-
|
|
7
|
-
import { o as readWorkflowsFromDisk, s as uploadTestBundle } from "./dist-
|
|
6
|
+
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-BydAGTiB.mjs";
|
|
7
|
+
import { o as readWorkflowsFromDisk, s as uploadTestBundle } from "./dist-Cx0RV8s7.mjs";
|
|
8
8
|
import { t as requireWorkflowsDir } from "./resolve-project-CNQtOWE4.mjs";
|
|
9
|
-
import { a as runWorkflowBuild, t as WorkflowNotFoundError } from "./workflow-build-
|
|
9
|
+
import { a as runWorkflowBuild, t as WorkflowNotFoundError } from "./workflow-build-C8AiYxqp.mjs";
|
|
10
10
|
import { r as isUnknownSchema } from "./schema-display-NVEl_DFY.mjs";
|
|
11
11
|
import { t as createBuildProgress } from "./build-progress-AR8xow4_.mjs";
|
|
12
12
|
import { t as withErrorBoundary } from "./error-boundary-B8cmSwJH.mjs";
|
|
13
|
-
import { a as tryReadExistingInputSchema, n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-
|
|
13
|
+
import { a as tryReadExistingInputSchema, n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-BhOdFyh3.mjs";
|
|
14
14
|
//#region src/lib/format.ts
|
|
15
15
|
function formatBytes(bytes) {
|
|
16
16
|
if (bytes < 1024) return `${bytes} B`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { a as ui } from "./keystroke.mjs";
|
|
4
|
-
import { a as validateApiKey, i as requireClient } from "./context-
|
|
4
|
+
import { a as validateApiKey, i as requireClient } from "./context-BydAGTiB.mjs";
|
|
5
5
|
//#region src/commands/auth/test.handler.ts
|
|
6
6
|
async function handleAuthTest(_options, ctx) {
|
|
7
7
|
const result = await validateApiKey(requireClient(ctx));
|
|
@@ -4,12 +4,12 @@ import { D as CliExitError, a as ui, c as getProcessEnv, j as throwReportedCliEx
|
|
|
4
4
|
import { t as Credentials } from "./dist-CIInPRGh.mjs";
|
|
5
5
|
import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
6
6
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
7
|
-
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-
|
|
8
|
-
import { a as readManifestsFromOutDir } from "./dist-
|
|
7
|
+
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-BydAGTiB.mjs";
|
|
8
|
+
import { a as readManifestsFromOutDir } from "./dist-Cx0RV8s7.mjs";
|
|
9
9
|
import { t as requireWorkflowsDir } from "./resolve-project-CNQtOWE4.mjs";
|
|
10
|
-
import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-
|
|
11
|
-
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-
|
|
12
|
-
import { n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-
|
|
10
|
+
import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-C8AiYxqp.mjs";
|
|
11
|
+
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-BVliROAz.mjs";
|
|
12
|
+
import { n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-BhOdFyh3.mjs";
|
|
13
13
|
import * as os from "node:os";
|
|
14
14
|
import { tmpdir } from "node:os";
|
|
15
15
|
import * as path$1 from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { a as TriggerCredentialRequirementsSchema, l as WebhookMethodSchema, o as TriggerSourceSchema, s as TriggerTypeSchema } from "./credential-requirements-
|
|
3
|
+
import { a as TriggerCredentialRequirementsSchema, l as WebhookMethodSchema, o as TriggerSourceSchema, s as TriggerTypeSchema } from "./credential-requirements-Ob-7H-0F.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region ../../packages/shared-types/src/workflows/build-output/trigger-manifest.ts
|
|
6
6
|
const TriggerBuildFunctionSchema = z.object({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { t as createTypedCommand } from "./commander-
|
|
3
|
+
import { t as createTypedCommand } from "./commander-C5qcOo8m.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/commands/upgrade/upgrade.command.ts
|
|
6
6
|
const PackageManagerSchema = z.enum([
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { a as ui, c as getProcessEnv, j as throwReportedCliExit, y as toErrorMessage } from "./keystroke.mjs";
|
|
4
4
|
import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
5
5
|
import { a as writeJsonError, i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
6
|
-
import { i as requireClient } from "./context-
|
|
7
|
-
import { a as readManifestsFromOutDir, t as collectCredentialFingerprintMapFromProjectDist } from "./dist-
|
|
6
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
7
|
+
import { a as readManifestsFromOutDir, t as collectCredentialFingerprintMapFromProjectDist } from "./dist-Cx0RV8s7.mjs";
|
|
8
8
|
import { t as requireWorkflowsDir } from "./resolve-project-CNQtOWE4.mjs";
|
|
9
|
-
import { t as getIntegrationCatalog } from "./integration-catalog-
|
|
9
|
+
import { t as getIntegrationCatalog } from "./integration-catalog-CmvYPvI6.mjs";
|
|
10
10
|
import { t as readCredentialEnvMap } from "./credential-env-map-BA4LNI7x.mjs";
|
|
11
|
-
import { a as verifyCredentialResolvable, i as validateManualCredentialWithHook, n as resolveCredentialValuesFromEnv, r as uploadCredential, t as groupCredentialRequirements } from "./credentials-
|
|
11
|
+
import { a as verifyCredentialResolvable, i as validateManualCredentialWithHook, n as resolveCredentialValuesFromEnv, r as uploadCredential, t as groupCredentialRequirements } from "./credentials-jRiXEr6P.mjs";
|
|
12
12
|
import { n as renderCredentialSchemaMismatchText, r as writeCredentialSchemaMismatchJson, t as isCredentialSchemaMismatchErrorLike } from "./credential-schema-mismatch-z74ud-YZ.mjs";
|
|
13
13
|
import * as path$1 from "node:path";
|
|
14
14
|
import { confirm, isCancel } from "@clack/prompts";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { a as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
6
6
|
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-CSZj4XlH.mjs";
|
|
7
7
|
//#region src/commands/admin/users.get.handler.ts
|
|
8
8
|
async function handleAdminUsersGet(options, ctx) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { a as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
6
6
|
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-CSZj4XlH.mjs";
|
|
7
7
|
import Table from "cli-table3";
|
|
8
8
|
//#region src/commands/admin/users.list.handler.ts
|