@keystrokehq/cli 0.0.2 → 0.0.4
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 +10 -0
- package/dist/{accept.handler-DFtM0IuO.mjs → accept.handler-CudtwdDV.mjs} +1 -1
- package/dist/{admin-D_7tenRC.mjs → admin-ByNq50FH.mjs} +9 -9
- package/dist/{agents-DMEo-6QB.mjs → agents-DbekD_Vx.mjs} +2 -2
- package/dist/{api-keys-BThGvtdn.mjs → api-keys-kvwq9Jb4.mjs} +5 -5
- package/dist/{auth-Byry35LJ.mjs → auth-DS3C07ib.mjs} +4 -4
- package/dist/{auth.handler-BBPObKwk.mjs → auth.handler-CbhiLOG1.mjs} +80 -5
- package/dist/{build-agents-DfbiMZ_e-CRnzruSu.mjs → build-agents-DfbiMZ_e-in-if4_C.mjs} +2 -2
- package/dist/{build-tasks-O1jYtlv1-Y65uGWuz.mjs → build-tasks-O1jYtlv1-B2Dm4hFj.mjs} +2 -2
- package/dist/{build-workflows-3fdvdHHf-DJ_lH1NH.mjs → build-workflows-3fdvdHHf-Bg5XV7hM.mjs} +2 -2
- package/dist/{build.handler-Tb3IpABI.mjs → build.handler-BzQRnkC3.mjs} +1 -1
- package/dist/{clear.handler-YS8gPriq.mjs → clear.handler-U9n_V1IM.mjs} +1 -1
- package/dist/{commander-DZ3F3CVq.mjs → commander-pxSPDCZ4.mjs} +1 -1
- package/dist/{connect-DpQgYg8z.mjs → connect-B_uc0wqI.mjs} +2 -2
- package/dist/{connect.handler-DuRr_yyN.mjs → connect.handler-VJgm2ZQG.mjs} +1 -1
- package/dist/{context-Y1f1hGYy.mjs → context-D-YKFNxL.mjs} +1 -1
- package/dist/{create.handler-uNG3I4wS.mjs → create.handler-d9nfcKfp.mjs} +1 -1
- package/dist/{credentials-UpgEcaub.mjs → credentials-CL_PCuhM.mjs} +4 -4
- package/dist/{current-deployment-workflow-M8GEIHxv.mjs → current-deployment-workflow-BRYuEubW.mjs} +1 -1
- package/dist/{current.handler-BqPUKCvn.mjs → current.handler-vJG2Dohx.mjs} +1 -1
- package/dist/{delete.handler-CJTHVZaz.mjs → delete.handler-RsYTkJLV.mjs} +1 -1
- package/dist/{deploy-Gw0KPrkf.mjs → deploy-BE3F62Mz.mjs} +2 -2
- package/dist/{deploy.handler-zzFAt7pp.mjs → deploy.handler-Dlyd8Zqs.mjs} +8 -8
- package/dist/{diff.handler--zdSkUnK.mjs → diff.handler-CH0xP8pk.mjs} +2 -2
- package/dist/{env.handler-d4sJ706C.mjs → env.handler-BkCO2vjR.mjs} +2 -2
- package/dist/{init-C0sps8R7.mjs → init-CWFlBuxT.mjs} +2 -2
- package/dist/{init.handler-DSW6XFZn.mjs → init.handler-HRdgViGH.mjs} +1 -1
- package/dist/{inspect.handler-DbN0ZVTh.mjs → inspect.handler-DRMKUJsh.mjs} +2 -2
- package/dist/{integration-catalog-DFlytKJS.mjs → integration-catalog-ClP7YGqM.mjs} +1 -1
- package/dist/{integrations-Dcadds2b.mjs → integrations-CoBzLNEe.mjs} +3 -3
- package/dist/{invites-DvsxTRAb.mjs → invites-BmNy1RHp.mjs} +4 -4
- package/dist/{invites.list.handler-B5quln3m.mjs → invites.list.handler-ICP2V3p4.mjs} +1 -1
- package/dist/{invites.resend.handler-CSpj7bQ5.mjs → invites.resend.handler-BGaTTMka.mjs} +1 -1
- package/dist/{invites.revoke.handler-_hdEkBdO.mjs → invites.revoke.handler-DBwF5Lxc.mjs} +1 -1
- package/dist/keystroke.d.mts +0 -0
- package/dist/keystroke.mjs +27 -19
- package/dist/{list.handler-08GY-wnx.mjs → list.handler-B2bN8NsQ.mjs} +1 -1
- package/dist/{list.handler-BRq-nScx.mjs → list.handler-BXTGPazY.mjs} +1 -1
- package/dist/{list.handler-DSPr0OxS.mjs → list.handler-BjihvxHn.mjs} +1 -1
- package/dist/{list.handler-CWO6DExh.mjs → list.handler-Vv9KmhB9.mjs} +2 -2
- package/dist/{list.handler-DLl8ca6F.mjs → list.handler-b4qYQtwn.mjs} +1 -1
- package/dist/{list.handler-20v4uRMk.mjs → list.handler-rnyzLJDy.mjs} +1 -1
- package/dist/listen-DVV1fp5c.mjs +25 -0
- package/dist/listen.handler-CyFpUSOu.mjs +212 -0
- package/dist/{logs-D_48skmi.mjs → logs-BRticZ00.mjs} +3 -3
- package/dist/{logs.handler-4ctMVYMj.mjs → logs.handler-CsnG7Bb0.mjs} +2 -2
- package/dist/{members.add.handler-Dq_giQ8g.mjs → members.add.handler-CH0RhbgE.mjs} +1 -1
- package/dist/{members.invite.handler-v404bUsq.mjs → members.invite.handler-CYB7RQ9A.mjs} +1 -1
- package/dist/{members.list.handler-D6TE0yp8.mjs → members.list.handler-DrDtmMei.mjs} +1 -1
- package/dist/{members.remove.handler-BhQ3cyeR.mjs → members.remove.handler-uGoZt2Me.mjs} +1 -1
- package/dist/{members.update.handler-BVy2cv1K.mjs → members.update.handler-DXCWkzOc.mjs} +1 -1
- package/dist/{org-CkRr-f3S.mjs → org-GdHhuSNk.mjs} +15 -15
- package/dist/{orgs.create.handler-swGnT2ce.mjs → orgs.create.handler-5AaPgTZV.mjs} +1 -1
- package/dist/{orgs.get.handler-ClAqYTH0.mjs → orgs.get.handler-BTfopRVm.mjs} +1 -1
- package/dist/{orgs.list.handler-D-ptz8It.mjs → orgs.list.handler-DKJgs6x0.mjs} +1 -1
- package/dist/{paused.handler-B3aVqw-m.mjs → paused.handler-BUifVTyQ.mjs} +1 -1
- package/dist/{projects-yA9AAaDM.mjs → projects-BjnCG-pc.mjs} +4 -4
- package/dist/{runs-B8mW4PqP.mjs → runs-2BdRfql3.mjs} +2 -2
- package/dist/{skills.command-DWxcc3Ui.mjs → skills.command-mMs4o12N.mjs} +3 -3
- package/dist/{src-J09NGJ6Z.mjs → src-CBL7AJ0H.mjs} +11 -0
- package/dist/{switch.handler-C4hgbhcH.mjs → switch.handler-DV0wiJP8.mjs} +1 -1
- package/dist/{sync-CL6zXiiA.mjs → sync-D098Vbv2.mjs} +2 -2
- package/dist/{sync.handler-D1uF8E8I.mjs → sync.handler-BocldSG_.mjs} +2 -2
- package/dist/{task-target-build-DTzz4fpG.mjs → task-target-build-Di8gflnj.mjs} +3 -3
- package/dist/task-target-deploy-runner.d.mts +0 -0
- package/dist/task-target-deploy-runner.mjs +4 -4
- package/dist/{test-BsTLXIPB.mjs → test-BZt0Duhs.mjs} +6 -6
- package/dist/{test.handler-D25kziPi.mjs → test.handler-iCUotLes.mjs} +1 -1
- package/dist/{trigger-artifacts-B3OCTX9K-DG-FGGJT.mjs → trigger-artifacts-B3OCTX9K-Cgt51KLh.mjs} +2 -2
- package/dist/{try-deploy.handler-2aX5TmLk.mjs → try-deploy.handler-YDOirkk1.mjs} +3 -3
- package/dist/upgrade-Bdez-X6_.mjs +41 -0
- package/dist/upgrade.handler-DhH_Cuza.mjs +80 -0
- package/dist/{upload.handler-CqProKVJ.mjs → upload.handler-BmqZAPxZ.mjs} +2 -2
- package/dist/{users.get.handler-C_d2GWKX.mjs → users.get.handler-uoEgEwI-.mjs} +1 -1
- package/dist/{users.list.handler-DXAsO8Yk.mjs → users.list.handler-DLWPOIHD.mjs} +1 -1
- package/dist/{users.set-role.handler-Bn_yV4RI.mjs → users.set-role.handler-BCJhTsyb.mjs} +1 -1
- package/dist/{validate.handler-CGD6GttR.mjs → validate.handler-ROzzUI85.mjs} +1 -1
- package/dist/{workflow-build-BcaIdRR6.mjs → workflow-build-DD8TLlPu.mjs} +5 -5
- package/dist/{workflow-bundler-BzHk73PM-Cde7cKiU.mjs → workflow-bundler-BzHk73PM-Bt-poFqX.mjs} +1 -1
- package/dist/{workflows-S-gbfw8f.mjs → workflows-DypSJM0t.mjs} +12 -12
- package/package.json +32 -31
- package/LICENSE +0 -21
- /package/dist/{build-metadata-zidV9Cai-RgG4ndIH.mjs → build-metadata-zidV9Cai-BAS0FMxT.mjs} +0 -0
- /package/dist/{clear-cache.handler-BEbPz5Ej.mjs → clear-cache.handler-BDV-a3ku.mjs} +0 -0
- /package/dist/{clear.handler-CtOZ4aRn.mjs → clear.handler-Dh6QoVO1.mjs} +0 -0
- /package/dist/{deploy-CdnaZY3s.mjs → deploy-B_bkUlIL.mjs} +0 -0
- /package/dist/{detect-env-access-CwkOYeYM-h2W05D_Q.mjs → detect-env-access-CwkOYeYM-CsrSOCcj.mjs} +0 -0
- /package/dist/{list.handler-DAiJtW20.mjs → list.handler-DO0PnyWP.mjs} +0 -0
- /package/dist/{logs.handler-C3QnSCaH.mjs → logs.handler-ddQu_MXN.mjs} +0 -0
- /package/dist/{options-Dn9t3K4a.mjs → options-BhB9qA5P.mjs} +0 -0
- /package/dist/{read-credential-keys-77a91T8M-CAJLnMRi.mjs → read-credential-keys-77a91T8M-aLuQvlIq.mjs} +0 -0
- /package/dist/{run-polling-CTzhTgyN.mjs → run-polling-CF9OeLWl.mjs} +0 -0
- /package/dist/{skills-sync.handler-C2faeat-.mjs → skills-sync.handler-IB73kEeA.mjs} +0 -0
- /package/dist/{skills.handler-8KCSF7wp.mjs → skills.handler-JauTJV1C.mjs} +0 -0
- /package/dist/{task-target-deploy-BPLlP__P.mjs → task-target-deploy-BzGRNDiv.mjs} +0 -0
|
@@ -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-q4KljAhu.mjs";
|
|
4
|
-
import { t as createTypedCommand } from "./commander-
|
|
4
|
+
import { t as createTypedCommand } from "./commander-pxSPDCZ4.mjs";
|
|
5
5
|
import { t as OrgRoleSchema } from "./schema-_FQrHcIS.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-ICP2V3p4.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-ICP2V3p4.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-BGaTTMka.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-DBwF5Lxc.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-DrDtmMei.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-DrDtmMei.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-CYB7RQ9A.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-CH0RhbgE.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-DXCWkzOc.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-uGoZt2Me.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-B2bN8NsQ.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-B2bN8NsQ.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-vJG2Dohx.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-DV0wiJP8.mjs")).handleOrgSwitch
|
|
227
227
|
}),
|
|
228
228
|
createOrgMembersCommand(),
|
|
229
229
|
createOrgInvitesCommand()
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { t as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-q4KljAhu.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-D-YKFNxL.mjs";
|
|
6
6
|
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-CNC8JfZ5.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 { t as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-q4KljAhu.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-D-YKFNxL.mjs";
|
|
6
6
|
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-CNC8JfZ5.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 { t as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-q4KljAhu.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-D-YKFNxL.mjs";
|
|
6
6
|
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-CNC8JfZ5.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 { D as throwReportedCliExit, h as toErrorMessage, t as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-q4KljAhu.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-D-YKFNxL.mjs";
|
|
6
6
|
//#region src/commands/workflows/paused/paused.handler.ts
|
|
7
7
|
async function handleWorkflowsPaused(options, ctx) {
|
|
8
8
|
const client = requireClient(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-q4KljAhu.mjs";
|
|
4
|
-
import { t as createTypedCommand } from "./commander-
|
|
4
|
+
import { t as createTypedCommand } from "./commander-pxSPDCZ4.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/commands/projects/projects.command.ts
|
|
7
7
|
function createProjectsCommand() {
|
|
@@ -10,19 +10,19 @@ function createProjectsCommand() {
|
|
|
10
10
|
description: "List tracked Keystroke projects",
|
|
11
11
|
schema: JsonOptionSchema,
|
|
12
12
|
optionsConfig: { ...JSON_OPTION_CONFIG },
|
|
13
|
-
loadHandler: async () => (await import("./list.handler-
|
|
13
|
+
loadHandler: async () => (await import("./list.handler-DO0PnyWP.mjs")).handleProjectsList,
|
|
14
14
|
subcommands: [createTypedCommand({
|
|
15
15
|
name: "list",
|
|
16
16
|
description: "List all tracked Keystroke projects",
|
|
17
17
|
schema: JsonOptionSchema,
|
|
18
18
|
optionsConfig: { ...JSON_OPTION_CONFIG },
|
|
19
|
-
loadHandler: async () => (await import("./list.handler-
|
|
19
|
+
loadHandler: async () => (await import("./list.handler-DO0PnyWP.mjs")).handleProjectsList
|
|
20
20
|
}), createTypedCommand({
|
|
21
21
|
name: "clear-cache",
|
|
22
22
|
description: "Clear the stored projects cache (projects.json)",
|
|
23
23
|
schema: z.object({}),
|
|
24
24
|
optionsConfig: {},
|
|
25
|
-
loadHandler: async () => (await import("./clear-cache.handler-
|
|
25
|
+
loadHandler: async () => (await import("./clear-cache.handler-BDV-a3ku.mjs")).handleProjectsClearCache
|
|
26
26
|
})]
|
|
27
27
|
});
|
|
28
28
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { D as throwReportedCliExit, h as toErrorMessage, o as ANSI, s as style, t as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson, n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-q4KljAhu.mjs";
|
|
5
|
-
import { t as createTypedCommand } from "./commander-
|
|
6
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { t as createTypedCommand } from "./commander-pxSPDCZ4.mjs";
|
|
6
|
+
import { i as requireClient } from "./context-D-YKFNxL.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
//#region src/commands/runs/inspect-display.ts
|
|
9
9
|
function renderRunInspect(input) {
|
|
@@ -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-q4KljAhu.mjs";
|
|
4
|
-
import { t as createTypedCommand } from "./commander-
|
|
4
|
+
import { t as createTypedCommand } from "./commander-pxSPDCZ4.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/commands/skills/skills.command.ts
|
|
7
7
|
const SkillsCommandOptionsSchema = JsonOptionSchema.extend({ path: z.string().optional().describe("Project root (default: current directory)") });
|
|
@@ -18,13 +18,13 @@ function createSkillsCommand() {
|
|
|
18
18
|
description: "Sync Keystroke agent skills (SKILL.md) from @keystroke/skills",
|
|
19
19
|
schema: SkillsCommandOptionsSchema,
|
|
20
20
|
optionsConfig: SKILLS_OPTIONS_CONFIG,
|
|
21
|
-
loadHandler: async () => (await import("./skills.handler-
|
|
21
|
+
loadHandler: async () => (await import("./skills.handler-JauTJV1C.mjs")).handleSkillsParent,
|
|
22
22
|
subcommands: [createTypedCommand({
|
|
23
23
|
name: "sync",
|
|
24
24
|
description: "Copy installed @keystroke/skills into .cursor/skills and .claude/skills",
|
|
25
25
|
schema: SkillsCommandOptionsSchema,
|
|
26
26
|
optionsConfig: SKILLS_OPTIONS_CONFIG,
|
|
27
|
-
loadHandler: async () => (await import("./skills-sync.handler-
|
|
27
|
+
loadHandler: async () => (await import("./skills-sync.handler-IB73kEeA.mjs")).handleSkillsSync
|
|
28
28
|
})]
|
|
29
29
|
});
|
|
30
30
|
cmd.enablePositionalOptions();
|
|
@@ -102,6 +102,16 @@ list: (params) => {
|
|
|
102
102
|
return api.get("integrations", searchParams ? { searchParams } : {}).json();
|
|
103
103
|
} });
|
|
104
104
|
//#endregion
|
|
105
|
+
//#region ../../packages/workflow-sdk/src/v1/listen.ts
|
|
106
|
+
const listen = (api) => ({
|
|
107
|
+
/** Create a temporary listen session for the current authenticated user and organization. */
|
|
108
|
+
create: (params) => api.post("listen", { json: params ?? {} }).json(),
|
|
109
|
+
/** Get the current state of a previously created listen session. */
|
|
110
|
+
get: (id) => api.get(`listen/${id}`).json(),
|
|
111
|
+
/** Cancel a pending listen session. */
|
|
112
|
+
cancel: (id) => api.delete(`listen/${id}`).json()
|
|
113
|
+
});
|
|
114
|
+
//#endregion
|
|
105
115
|
//#region ../../packages/workflow-sdk/src/v1/organizations.ts
|
|
106
116
|
const organizations = (api) => ({
|
|
107
117
|
/** List organizations (paginated). */
|
|
@@ -391,6 +401,7 @@ function createClient(config = {}) {
|
|
|
391
401
|
credentials: credentials(v1),
|
|
392
402
|
hooks: hooks(v1),
|
|
393
403
|
integrations: integrations(v1),
|
|
404
|
+
listen: listen(v1),
|
|
394
405
|
organizations: organizations(v1),
|
|
395
406
|
projects: projects(v1),
|
|
396
407
|
runs: runs(v1),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { D as throwReportedCliExit, t as ui } from "./keystroke.mjs";
|
|
4
4
|
import { u as setActiveOrg } from "./dist-BF6r1hfv.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-D-YKFNxL.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-pxSPDCZ4.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-BocldSG_.mjs")).handleSync
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { D as throwReportedCliExit, h as toErrorMessage, i as logger, t as ui } from "./keystroke.mjs";
|
|
4
4
|
import { d as trackProject } from "./dist-BF6r1hfv.mjs";
|
|
5
5
|
import { r as isLocalMode } from "./env-YTZGKGIu.mjs";
|
|
6
|
-
import { a as validateApiKey, i as requireClient } from "./context-
|
|
6
|
+
import { a as validateApiKey, i as requireClient } from "./context-D-YKFNxL.mjs";
|
|
7
7
|
import { n as deployFromDir } from "./dist-C2Dq_nx3.mjs";
|
|
8
8
|
import { t as requireWorkflowsDir } from "./resolve-project-DgfftdPm.mjs";
|
|
9
|
-
import { a as runWorkflowBuild, n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-
|
|
9
|
+
import { a as runWorkflowBuild, n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-DD8TLlPu.mjs";
|
|
10
10
|
import { t as createBuildProgress } from "./build-progress-Cn2j1LqF.mjs";
|
|
11
11
|
import { t as createDeployProgress } from "./deploy-progress-CZ2rPlOj.mjs";
|
|
12
12
|
//#region src/commands/sync/sync.handler.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { t as readCredentialKeysFromSchemaObject } from "./read-credential-keys-77a91T8M-
|
|
3
|
+
import { t as readCredentialKeysFromSchemaObject } from "./read-credential-keys-77a91T8M-aLuQvlIq.mjs";
|
|
4
4
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
|
@@ -109,7 +109,7 @@ async function buildTaskTargetFile(options) {
|
|
|
109
109
|
return builtTasks;
|
|
110
110
|
}
|
|
111
111
|
async function bundleTaskTargetModule(options) {
|
|
112
|
-
const [{ rolldown }, { createEnvAccessPlugin, formatEnvAccessError }] = await Promise.all([import("rolldown"), import("./detect-env-access-CwkOYeYM-
|
|
112
|
+
const [{ rolldown }, { createEnvAccessPlugin, formatEnvAccessError }] = await Promise.all([import("rolldown"), import("./detect-env-access-CwkOYeYM-CsrSOCcj.mjs").then((n) => n.n).then((n) => n.n)]);
|
|
113
113
|
const entryId = "\0virtual:task-target-entry";
|
|
114
114
|
const trackedDependencies = /* @__PURE__ */ new Set();
|
|
115
115
|
const envViolations = [];
|
|
@@ -216,7 +216,7 @@ async function attachTaskTargetTriggers(options) {
|
|
|
216
216
|
options.artifact.triggers.push(...buildTaskTriggerArtifactsWithoutBundles(options.entry.taskMetadata.triggers, options.artifact.task.taskId, options.artifact.task.taskName));
|
|
217
217
|
return [];
|
|
218
218
|
}
|
|
219
|
-
const { buildTriggerArtifacts } = await import("./trigger-artifacts-B3OCTX9K-
|
|
219
|
+
const { buildTriggerArtifacts } = await import("./trigger-artifacts-B3OCTX9K-Cgt51KLh.mjs").then((n) => n.n);
|
|
220
220
|
const triggerResult = await buildTriggerArtifacts(options.entry.taskMetadata.triggers, options.artifact.task.taskId, options.artifact.task.taskName, options.projectRoot, {
|
|
221
221
|
workflowExportName: options.entry.source.localExportName,
|
|
222
222
|
workflowFilePath: options.entry.runtimeBundlePath
|
|
File without changes
|
|
@@ -116,7 +116,7 @@ function restartStage(options, projectRoot, stage) {
|
|
|
116
116
|
}
|
|
117
117
|
async function runBuildPhase(options, projectRoot) {
|
|
118
118
|
const projectConfig = await assertWorkflowProjectRoot(projectRoot);
|
|
119
|
-
const { buildTaskTargetEntries } = await import("./task-target-build-
|
|
119
|
+
const { buildTaskTargetEntries } = await import("./task-target-build-Di8gflnj.mjs");
|
|
120
120
|
await writeBuildDescriptor(projectRoot, {
|
|
121
121
|
projectRoot,
|
|
122
122
|
projectConfig,
|
|
@@ -129,7 +129,7 @@ async function runBuildPhase(options, projectRoot) {
|
|
|
129
129
|
}
|
|
130
130
|
async function runPreparePhase(projectRoot) {
|
|
131
131
|
const buildDescriptor = await readBuildDescriptor(projectRoot);
|
|
132
|
-
const { prepareTaskTargetBuiltTasks } = await import("./task-target-build-
|
|
132
|
+
const { prepareTaskTargetBuiltTasks } = await import("./task-target-build-Di8gflnj.mjs");
|
|
133
133
|
const prepareResult = await prepareTaskTargetBuiltTasks({
|
|
134
134
|
builtTasks: buildDescriptor.builtTasks,
|
|
135
135
|
projectRoot
|
|
@@ -158,11 +158,11 @@ async function resolveDeployAuthOptions(options) {
|
|
|
158
158
|
}
|
|
159
159
|
async function runDeployPhase(options, projectRoot) {
|
|
160
160
|
const descriptor = await readDescriptor(projectRoot);
|
|
161
|
-
const { createDeployClient } = await import("./deploy-
|
|
161
|
+
const { createDeployClient } = await import("./deploy-B_bkUlIL.mjs");
|
|
162
162
|
const client = createDeployClient(await resolveDeployAuthOptions(options));
|
|
163
163
|
const auth = await client.public.auth.validate();
|
|
164
164
|
if (auth.organizationId !== descriptor.projectConfig.organizationId) throw new Error(`Project organization mismatch: config=${descriptor.projectConfig.organizationId} auth=${auth.organizationId}`);
|
|
165
|
-
const { deployTaskTargets } = await import("./task-target-deploy-
|
|
165
|
+
const { deployTaskTargets } = await import("./task-target-deploy-BzGRNDiv.mjs");
|
|
166
166
|
const result = await deployTaskTargets({
|
|
167
167
|
preparedTasks: descriptor.preparedTasks,
|
|
168
168
|
client,
|
|
@@ -4,16 +4,16 @@ import { C as CliExitError, D as throwReportedCliExit, h as toErrorMessage, t as
|
|
|
4
4
|
import { l as resolveAuthOptions } from "./dist-BF6r1hfv.mjs";
|
|
5
5
|
import { t as assertWorkflowProjectRoot } from "./project-config-opj6DsPF.mjs";
|
|
6
6
|
import { i as writeJson, n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-q4KljAhu.mjs";
|
|
7
|
-
import { t as createTypedCommand } from "./commander-
|
|
7
|
+
import { t as createTypedCommand } from "./commander-pxSPDCZ4.mjs";
|
|
8
8
|
import { n as getProcessEnv } from "./env-YTZGKGIu.mjs";
|
|
9
|
-
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-
|
|
9
|
+
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-D-YKFNxL.mjs";
|
|
10
10
|
import { a as readManifestsFromOutDir } from "./dist-C2Dq_nx3.mjs";
|
|
11
11
|
import { t as requireWorkflowsDir } from "./resolve-project-DgfftdPm.mjs";
|
|
12
12
|
import { a as registerHostedActionDispatcher, c as registerOperationCredentialResolver, f as registerOperationContext, g as getOfficialIntegrationMetadata, h as registerRuntime, n as clearHostedActionExecutionPolicy, o as registerHostedActionExecutionPolicy, p as clearRuntime, s as clearOperationCredentialResolver, t as clearHostedActionDispatcher, u as clearOperationContext } from "./hosted-action-dispatcher-registry-TOVzMhUR.mjs";
|
|
13
|
-
import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-
|
|
14
|
-
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-
|
|
15
|
-
import { n as WorkflowsRunOptionsSchema, t as RUN_OPTIONS_CONFIG } from "./options-
|
|
16
|
-
import { a as validateInputOrExit, i as resolveInput, r as pollForCompletion, t as handleWorkflowsTryDeploy } from "./try-deploy.handler-
|
|
13
|
+
import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-DD8TLlPu.mjs";
|
|
14
|
+
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-BRYuEubW.mjs";
|
|
15
|
+
import { n as WorkflowsRunOptionsSchema, t as RUN_OPTIONS_CONFIG } from "./options-BhB9qA5P.mjs";
|
|
16
|
+
import { a as validateInputOrExit, i as resolveInput, r as pollForCompletion, t as handleWorkflowsTryDeploy } from "./try-deploy.handler-YDOirkk1.mjs";
|
|
17
17
|
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
18
18
|
import { tmpdir } from "node:os";
|
|
19
19
|
import path from "node:path";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { t 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-D-YKFNxL.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));
|
package/dist/{trigger-artifacts-B3OCTX9K-DG-FGGJT.mjs → trigger-artifacts-B3OCTX9K-Cgt51KLh.mjs}
RENAMED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { n as readOptionalJsonSchemaKeys } from "./declared-credential-requirements-Bwlb-KZE.mjs";
|
|
4
4
|
import { t as __exportAll } from "./rolldown-runtime-twds-ZHy-8uqgIurC.mjs";
|
|
5
|
-
import { t as readCredentialKeysFromSchemaObject } from "./read-credential-keys-77a91T8M-
|
|
6
|
-
import { r as formatEnvAccessError, t as createEnvAccessPlugin } from "./detect-env-access-CwkOYeYM-
|
|
5
|
+
import { t as readCredentialKeysFromSchemaObject } from "./read-credential-keys-77a91T8M-aLuQvlIq.mjs";
|
|
6
|
+
import { r as formatEnvAccessError, t as createEnvAccessPlugin } from "./detect-env-access-CwkOYeYM-CsrSOCcj.mjs";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
8
8
|
import { rolldown } from "rolldown";
|
|
9
9
|
//#region ../../packages/workflow-builder/dist/trigger-artifacts-B3OCTX9K.mjs
|
|
@@ -5,14 +5,14 @@ import { C as CliExitError, h as toErrorMessage, t as ui, w as InputValidationEr
|
|
|
5
5
|
import { d as trackProject } from "./dist-BF6r1hfv.mjs";
|
|
6
6
|
import { t as assertWorkflowProjectRoot } from "./project-config-opj6DsPF.mjs";
|
|
7
7
|
import { r as isLocalMode } from "./env-YTZGKGIu.mjs";
|
|
8
|
-
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-
|
|
8
|
+
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-D-YKFNxL.mjs";
|
|
9
9
|
import { a as readManifestsFromOutDir, o as readWorkflowsFromDisk, s as uploadTestBundle } from "./dist-C2Dq_nx3.mjs";
|
|
10
10
|
import { t as requireWorkflowsDir } from "./resolve-project-DgfftdPm.mjs";
|
|
11
|
-
import { a as runWorkflowBuild, t as WorkflowNotFoundError } from "./workflow-build-
|
|
11
|
+
import { a as runWorkflowBuild, t as WorkflowNotFoundError } from "./workflow-build-DD8TLlPu.mjs";
|
|
12
12
|
import { a as validateRequiredFields, n as formatValidationError, r as isUnknownSchema, t as formatMissingInputError } from "./schema-display-D4A1gQEM.mjs";
|
|
13
13
|
import { t as createBuildProgress } from "./build-progress-Cn2j1LqF.mjs";
|
|
14
14
|
import { t as withErrorBoundary } from "./error-boundary-B9PgBkv8.mjs";
|
|
15
|
-
import { n as sleep, t as TERMINAL_STATUSES } from "./run-polling-
|
|
15
|
+
import { n as sleep, t as TERMINAL_STATUSES } from "./run-polling-CF9OeLWl.mjs";
|
|
16
16
|
import * as fs from "node:fs/promises";
|
|
17
17
|
import * as path$1 from "node:path";
|
|
18
18
|
import { z } from "zod";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { t as createTypedCommand } from "./commander-pxSPDCZ4.mjs";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
//#region src/commands/upgrade/upgrade.command.ts
|
|
6
|
+
const PackageManagerSchema = z.enum([
|
|
7
|
+
"npm",
|
|
8
|
+
"pnpm",
|
|
9
|
+
"yarn",
|
|
10
|
+
"bun"
|
|
11
|
+
]);
|
|
12
|
+
const UpgradeOptionsSchema = z.object({
|
|
13
|
+
packageManager: PackageManagerSchema.default("npm").describe("Package manager to use"),
|
|
14
|
+
to: z.string().min(1).default("latest").describe("Package version or dist tag to install"),
|
|
15
|
+
dryRun: z.boolean().default(false).describe("Print the upgrade command without running it")
|
|
16
|
+
});
|
|
17
|
+
const UPGRADE_OPTIONS_CONFIG = {
|
|
18
|
+
packageManager: {
|
|
19
|
+
flag: "--package-manager <manager>",
|
|
20
|
+
description: "Package manager to use: npm, pnpm, yarn, or bun (default: npm)"
|
|
21
|
+
},
|
|
22
|
+
to: {
|
|
23
|
+
flag: "--to <version-or-tag>",
|
|
24
|
+
description: "Package version or dist tag to install (default: latest)"
|
|
25
|
+
},
|
|
26
|
+
dryRun: {
|
|
27
|
+
flag: "--dry-run",
|
|
28
|
+
description: "Print the upgrade command without running it"
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
function createUpgradeCommand() {
|
|
32
|
+
return createTypedCommand({
|
|
33
|
+
name: "upgrade",
|
|
34
|
+
description: "Upgrade the Keystroke CLI to the latest published version",
|
|
35
|
+
schema: UpgradeOptionsSchema,
|
|
36
|
+
optionsConfig: UPGRADE_OPTIONS_CONFIG,
|
|
37
|
+
loadHandler: async () => (await import("./upgrade.handler-DhH_Cuza.mjs")).handleUpgrade
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { createUpgradeCommand };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { D as throwReportedCliExit, h as toErrorMessage, t as ui } from "./keystroke.mjs";
|
|
4
|
+
import { spawn } from "node:child_process";
|
|
5
|
+
//#region src/commands/upgrade/upgrade.handler.ts
|
|
6
|
+
const CLI_PACKAGE_NAME = "@keystrokehq/cli";
|
|
7
|
+
function buildUpgradeCommand(options) {
|
|
8
|
+
const packageSpec = `${CLI_PACKAGE_NAME}@${options.to}`;
|
|
9
|
+
switch (options.packageManager) {
|
|
10
|
+
case "npm": return {
|
|
11
|
+
command: "npm",
|
|
12
|
+
args: [
|
|
13
|
+
"install",
|
|
14
|
+
"--global",
|
|
15
|
+
packageSpec
|
|
16
|
+
]
|
|
17
|
+
};
|
|
18
|
+
case "pnpm": return {
|
|
19
|
+
command: "pnpm",
|
|
20
|
+
args: [
|
|
21
|
+
"add",
|
|
22
|
+
"--global",
|
|
23
|
+
packageSpec
|
|
24
|
+
]
|
|
25
|
+
};
|
|
26
|
+
case "yarn": return {
|
|
27
|
+
command: "yarn",
|
|
28
|
+
args: [
|
|
29
|
+
"global",
|
|
30
|
+
"add",
|
|
31
|
+
packageSpec
|
|
32
|
+
]
|
|
33
|
+
};
|
|
34
|
+
case "bun": return {
|
|
35
|
+
command: "bun",
|
|
36
|
+
args: [
|
|
37
|
+
"add",
|
|
38
|
+
"--global",
|
|
39
|
+
packageSpec
|
|
40
|
+
]
|
|
41
|
+
};
|
|
42
|
+
default: return assertNever(options.packageManager);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
async function handleUpgrade(options, _ctx) {
|
|
46
|
+
const upgradeCommand = buildUpgradeCommand(options);
|
|
47
|
+
const renderedCommand = renderCommand(upgradeCommand);
|
|
48
|
+
if (options.dryRun) {
|
|
49
|
+
ui.text(renderedCommand);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
ui.header(`Upgrading Keystroke CLI with ${options.packageManager}...`);
|
|
53
|
+
ui.hint(renderedCommand);
|
|
54
|
+
const exitCode = await runCommand(upgradeCommand);
|
|
55
|
+
if (exitCode !== 0) throwReportedCliExit(`CLI upgrade failed with exit code ${exitCode}.`);
|
|
56
|
+
ui.success("Keystroke CLI upgrade complete.");
|
|
57
|
+
}
|
|
58
|
+
function runCommand({ command, args }) {
|
|
59
|
+
return new Promise((resolve, reject) => {
|
|
60
|
+
const child = spawn(command, args, {
|
|
61
|
+
stdio: "inherit",
|
|
62
|
+
shell: process.platform === "win32"
|
|
63
|
+
});
|
|
64
|
+
child.on("error", (error) => {
|
|
65
|
+
reject(new Error(`Failed to start upgrade command: ${toErrorMessage(error)}`, { cause: error }));
|
|
66
|
+
});
|
|
67
|
+
child.on("close", (code) => resolve(code ?? 1));
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function renderCommand({ command, args }) {
|
|
71
|
+
return [command, ...args].map(shellToken).join(" ");
|
|
72
|
+
}
|
|
73
|
+
function shellToken(value) {
|
|
74
|
+
return /^[A-Za-z0-9_./:@=-]+$/.test(value) ? value : `'${value.replaceAll("'", "'\\''")}'`;
|
|
75
|
+
}
|
|
76
|
+
function assertNever(value) {
|
|
77
|
+
throw new Error(`Unsupported package manager: ${value}`);
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
export { handleUpgrade };
|
|
@@ -4,11 +4,11 @@ import { D as throwReportedCliExit, h as toErrorMessage, t as ui } from "./keyst
|
|
|
4
4
|
import { t as assertWorkflowProjectRoot } from "./project-config-opj6DsPF.mjs";
|
|
5
5
|
import { a as writeJsonError, i as writeJson } from "./output-q4KljAhu.mjs";
|
|
6
6
|
import { n as getProcessEnv } from "./env-YTZGKGIu.mjs";
|
|
7
|
-
import { i as requireClient } from "./context-
|
|
7
|
+
import { i as requireClient } from "./context-D-YKFNxL.mjs";
|
|
8
8
|
import { a as readManifestsFromOutDir, t as collectCredentialFingerprintMapFromProjectDist } from "./dist-C2Dq_nx3.mjs";
|
|
9
9
|
import { t as requireWorkflowsDir } from "./resolve-project-DgfftdPm.mjs";
|
|
10
10
|
import { a as verifyCredentialResolvable, i as validateManualCredentialWithHook, n as resolveCredentialValuesFromEnv, r as uploadCredential, t as groupCredentialRequirements } from "./credentials-DHlK_O4L.mjs";
|
|
11
|
-
import { t as getIntegrationCatalog } from "./integration-catalog-
|
|
11
|
+
import { t as getIntegrationCatalog } from "./integration-catalog-ClP7YGqM.mjs";
|
|
12
12
|
import { t as readCredentialEnvMap } from "./credential-env-map-C8P7uTD-.mjs";
|
|
13
13
|
import { n as renderCredentialSchemaMismatchText, r as writeCredentialSchemaMismatchJson, t as isCredentialSchemaMismatchErrorLike } from "./credential-schema-mismatch-B-wwbCvw.mjs";
|
|
14
14
|
import * as path$1 from "node:path";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { t as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-q4KljAhu.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-D-YKFNxL.mjs";
|
|
6
6
|
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-CNC8JfZ5.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 { t as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-q4KljAhu.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-D-YKFNxL.mjs";
|
|
6
6
|
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-CNC8JfZ5.mjs";
|
|
7
7
|
import Table from "cli-table3";
|
|
8
8
|
//#region src/commands/admin/users.list.handler.ts
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { t as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-q4KljAhu.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-D-YKFNxL.mjs";
|
|
6
6
|
import { n as isIamJsonMode, r as requireConfirmation, t as handleIamError } from "./iam-command-utils-CNC8JfZ5.mjs";
|
|
7
7
|
//#region src/commands/admin/users.set-role.handler.ts
|
|
8
8
|
async function handleAdminUsersSetRole(options, ctx) {
|
|
@@ -4,7 +4,7 @@ import { D as throwReportedCliExit, h as toErrorMessage, t as ui } from "./keyst
|
|
|
4
4
|
import { d as trackProject } from "./dist-BF6r1hfv.mjs";
|
|
5
5
|
import { i as writeJson } from "./output-q4KljAhu.mjs";
|
|
6
6
|
import { t as requireWorkflowsDir } from "./resolve-project-DgfftdPm.mjs";
|
|
7
|
-
import { s as build, t as WorkflowNotFoundError } from "./workflow-build-
|
|
7
|
+
import { s as build, t as WorkflowNotFoundError } from "./workflow-build-DD8TLlPu.mjs";
|
|
8
8
|
import { t as createBuildProgress } from "./build-progress-Cn2j1LqF.mjs";
|
|
9
9
|
import { mkdtemp, rm } from "node:fs/promises";
|
|
10
10
|
import * as os from "node:os";
|