@keystrokehq/cli 0.0.3 → 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-CY0Gg9sN.mjs → auth-DS3C07ib.mjs} +3 -3
- 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
|
@@ -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";
|
|
@@ -978,7 +978,7 @@ async function buildDiscoveredWorkflows(options) {
|
|
|
978
978
|
const failures = [...buildPlan.failures];
|
|
979
979
|
const warnings = [];
|
|
980
980
|
if (buildPlan.workflows.length > 0) {
|
|
981
|
-
const { buildWorkflowArtifacts } = await import("./build-workflows-3fdvdHHf-
|
|
981
|
+
const { buildWorkflowArtifacts } = await import("./build-workflows-3fdvdHHf-Bg5XV7hM.mjs");
|
|
982
982
|
const result = await buildWorkflowArtifacts({
|
|
983
983
|
entries: buildPlan.workflows,
|
|
984
984
|
workflowsByKey,
|
|
@@ -993,7 +993,7 @@ async function buildDiscoveredWorkflows(options) {
|
|
|
993
993
|
warnings.push(...result.warnings);
|
|
994
994
|
}
|
|
995
995
|
if (buildPlan.agents.length > 0) {
|
|
996
|
-
const { buildAgentArtifacts } = await import("./build-agents-DfbiMZ_e-
|
|
996
|
+
const { buildAgentArtifacts } = await import("./build-agents-DfbiMZ_e-in-if4_C.mjs");
|
|
997
997
|
const result = await buildAgentArtifacts({
|
|
998
998
|
entries: buildPlan.agents,
|
|
999
999
|
projectRoot: options.projectRoot
|
|
@@ -1002,7 +1002,7 @@ async function buildDiscoveredWorkflows(options) {
|
|
|
1002
1002
|
failures.push(...result.failures);
|
|
1003
1003
|
}
|
|
1004
1004
|
if (buildPlan.tasks.length > 0) {
|
|
1005
|
-
const { buildTaskArtifacts } = await import("./build-tasks-O1jYtlv1-
|
|
1005
|
+
const { buildTaskArtifacts } = await import("./build-tasks-O1jYtlv1-B2Dm4hFj.mjs");
|
|
1006
1006
|
const result = await buildTaskArtifacts({
|
|
1007
1007
|
entries: buildPlan.tasks,
|
|
1008
1008
|
projectRoot: options.projectRoot,
|
|
@@ -1110,7 +1110,7 @@ async function createBuildPlan(options) {
|
|
|
1110
1110
|
const currentWorkflowIndex = workflowProgressIndex;
|
|
1111
1111
|
workflowProgressIndex += 1;
|
|
1112
1112
|
if (!loadResult?.ok) {
|
|
1113
|
-
const { createWorkflowMetadataFailure } = await import("./build-workflows-3fdvdHHf-
|
|
1113
|
+
const { createWorkflowMetadataFailure } = await import("./build-workflows-3fdvdHHf-Bg5XV7hM.mjs");
|
|
1114
1114
|
plan.failures.push(createWorkflowMetadataFailure(discoveredWorkflow, loadResult?.error));
|
|
1115
1115
|
continue;
|
|
1116
1116
|
}
|
|
@@ -1333,7 +1333,7 @@ async function runBuild(config, initialTargetBindingKeys, metadataRebuildDecisio
|
|
|
1333
1333
|
elapsedMs: performance.now() - writeStartedAt,
|
|
1334
1334
|
...writeResult.skippedWriteCount !== void 0 && writeResult.skippedWriteCount > 0 ? { skippedWriteCount: writeResult.skippedWriteCount } : {}
|
|
1335
1335
|
});
|
|
1336
|
-
const { buildMetadataArtifacts } = await import("./build-metadata-zidV9Cai-
|
|
1336
|
+
const { buildMetadataArtifacts } = await import("./build-metadata-zidV9Cai-BAS0FMxT.mjs");
|
|
1337
1337
|
const metadata = await buildMetadataArtifacts({
|
|
1338
1338
|
projectRoot: config.projectRoot,
|
|
1339
1339
|
outputDir,
|
package/dist/{workflow-bundler-BzHk73PM-Cde7cKiU.mjs → workflow-bundler-BzHk73PM-Bt-poFqX.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { n as identifierName, o as parseSourceFile, r as isNode } from "./oxc-B3KI3rf_-BeimiQ2U.mjs";
|
|
4
|
-
import { r as formatEnvAccessError, t as createEnvAccessPlugin } from "./detect-env-access-CwkOYeYM-
|
|
4
|
+
import { r as formatEnvAccessError, t as createEnvAccessPlugin } from "./detect-env-access-CwkOYeYM-CsrSOCcj.mjs";
|
|
5
5
|
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { r as SHA256HashSchema, t as JsonSchemaSchema } from "./common-BrVAdUyD.mjs";
|
|
6
6
|
import { l as TriggerUploadDataSchema } from "./credential-requirements-DjDFthio.mjs";
|
|
7
7
|
import { a as FlowGraphSchema, i as WorkflowManifestSchema } from "./workflow-manifest-CAW5FlX0.mjs";
|
|
8
|
-
import { n as WorkflowsRunOptionsSchema, t as RUN_OPTIONS_CONFIG } from "./options-
|
|
8
|
+
import { n as WorkflowsRunOptionsSchema, t as RUN_OPTIONS_CONFIG } from "./options-BhB9qA5P.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
const GitProviderSchema = z.enum(["codestorage", "github"]);
|
|
11
11
|
const GitTreeEntryTypeSchema = z.enum(["file", "directory"]);
|
|
@@ -321,7 +321,7 @@ function createWorkflowsBuildCommand() {
|
|
|
321
321
|
description: "Build workflows locally",
|
|
322
322
|
schema: WorkflowsBuildOptionsSchema,
|
|
323
323
|
optionsConfig: BUILD_OPTIONS_CONFIG,
|
|
324
|
-
loadHandler: async () => (await import("./build.handler-
|
|
324
|
+
loadHandler: async () => (await import("./build.handler-BzQRnkC3.mjs")).handleWorkflowsBuild
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
//#endregion
|
|
@@ -348,7 +348,7 @@ function createWorkflowsDiffCommand() {
|
|
|
348
348
|
description: "Authored workflow id (preferred) or workflow name",
|
|
349
349
|
key: "workflow"
|
|
350
350
|
},
|
|
351
|
-
loadHandler: async () => (await import("./diff.handler
|
|
351
|
+
loadHandler: async () => (await import("./diff.handler-CH0xP8pk.mjs")).handleWorkflowsDiff
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
354
|
//#endregion
|
|
@@ -381,7 +381,7 @@ function createWorkflowsEnvCommand() {
|
|
|
381
381
|
key: "workflow",
|
|
382
382
|
required: false
|
|
383
383
|
},
|
|
384
|
-
loadHandler: async () => (await import("./env.handler-
|
|
384
|
+
loadHandler: async () => (await import("./env.handler-BkCO2vjR.mjs")).handleWorkflowsEnv
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
387
|
//#endregion
|
|
@@ -413,7 +413,7 @@ function createWorkflowsInspectCommand() {
|
|
|
413
413
|
description: "Authored workflow id (preferred) or workflow name",
|
|
414
414
|
key: "workflow"
|
|
415
415
|
},
|
|
416
|
-
loadHandler: async () => (await import("./inspect.handler-
|
|
416
|
+
loadHandler: async () => (await import("./inspect.handler-DRMKUJsh.mjs")).handleWorkflowsInspect
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
//#endregion
|
|
@@ -509,7 +509,7 @@ function createWorkflowsLogsCommand() {
|
|
|
509
509
|
key: "workflow",
|
|
510
510
|
required: false
|
|
511
511
|
},
|
|
512
|
-
loadHandler: async () => (await import("./logs.handler-
|
|
512
|
+
loadHandler: async () => (await import("./logs.handler-CsnG7Bb0.mjs")).handleWorkflowsLogs
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
515
|
//#endregion
|
|
@@ -700,7 +700,7 @@ function createWorkflowsPausedCommand() {
|
|
|
700
700
|
key: "workflow",
|
|
701
701
|
required: false
|
|
702
702
|
},
|
|
703
|
-
loadHandler: async () => (await import("./paused.handler-
|
|
703
|
+
loadHandler: async () => (await import("./paused.handler-BUifVTyQ.mjs")).handleWorkflowsPaused
|
|
704
704
|
});
|
|
705
705
|
}
|
|
706
706
|
//#endregion
|
|
@@ -716,7 +716,7 @@ function createWorkflowsTryDeployCommand() {
|
|
|
716
716
|
description: "Authored workflow id (preferred) or workflow name. Multiple workflows with the same name run sequentially.",
|
|
717
717
|
key: "workflow"
|
|
718
718
|
},
|
|
719
|
-
loadHandler: async () => (await import("./try-deploy.handler-
|
|
719
|
+
loadHandler: async () => (await import("./try-deploy.handler-YDOirkk1.mjs").then((n) => n.n)).handleWorkflowsTryDeploy
|
|
720
720
|
});
|
|
721
721
|
}
|
|
722
722
|
//#endregion
|
|
@@ -754,7 +754,7 @@ function createWorkflowsValidateCommand() {
|
|
|
754
754
|
key: "workflow",
|
|
755
755
|
required: false
|
|
756
756
|
},
|
|
757
|
-
loadHandler: async () => (await import("./validate.handler-
|
|
757
|
+
loadHandler: async () => (await import("./validate.handler-ROzzUI85.mjs")).handleWorkflowsValidate
|
|
758
758
|
});
|
|
759
759
|
}
|
|
760
760
|
//#endregion
|
|
@@ -773,14 +773,14 @@ function createWorkflowsCommand() {
|
|
|
773
773
|
description: "Manage, run, inspect, and debug workflows",
|
|
774
774
|
schema: WorkflowsOptionsSchema,
|
|
775
775
|
optionsConfig: WORKFLOWS_OPTIONS_CONFIG,
|
|
776
|
-
loadHandler: async () => (await import("./list.handler-
|
|
776
|
+
loadHandler: async () => (await import("./list.handler-BXTGPazY.mjs")).handleWorkflowsList,
|
|
777
777
|
subcommands: [
|
|
778
778
|
createTypedCommand({
|
|
779
779
|
name: "list",
|
|
780
780
|
description: "List all workflows in the project",
|
|
781
781
|
schema: WorkflowsOptionsSchema,
|
|
782
782
|
optionsConfig: WORKFLOWS_OPTIONS_CONFIG,
|
|
783
|
-
loadHandler: async () => (await import("./list.handler-
|
|
783
|
+
loadHandler: async () => (await import("./list.handler-BXTGPazY.mjs")).handleWorkflowsList
|
|
784
784
|
}),
|
|
785
785
|
createWorkflowsBuildCommand(),
|
|
786
786
|
createWorkflowsTryDeployCommand(),
|