@keystrokehq/cli 0.0.12 → 0.0.14
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/dist/{accept.handler-BU6kg8ET.mjs → accept.handler-BsZQqmzU.mjs} +1 -1
- package/dist/{admin-B4GNbCl5.mjs → admin-CXQezpQA.mjs} +9 -9
- package/dist/{agents-DDqXmmFV.mjs → agents-BdzwXAI1.mjs} +6 -6
- package/dist/{api-DuKKdCpF.mjs → api-Sf7A0I5T.mjs} +1 -1
- package/dist/{api-keys-BE_hLonn.mjs → api-keys-BZmUiIEr.mjs} +5 -5
- package/dist/{auth-DNK5MYm4.mjs → auth-CGBgi6PG.mjs} +5 -5
- package/dist/{auth.handler-DrjDODhZ.mjs → auth.handler-u3qmoUX0.mjs} +1 -2
- package/dist/{build-agents-DseUtzd4-DIDGsZWL.mjs → build-agents-DseUtzd4-DBQ82ErJ.mjs} +3 -3
- package/dist/{build-metadata-xqeWhaTS-WR8IooGe.mjs → build-metadata-qebrtraZ-BL-fo8HW.mjs} +7 -7
- package/dist/{build-progress-CITED2tv.mjs → build-progress-BataNqG-.mjs} +1 -1
- package/dist/{build-tasks-GVuMLS0h-DnS9QWzf.mjs → build-tasks-GVuMLS0h-CWrrj8SF.mjs} +3 -3
- package/dist/{build-workflows-Dmzay1vP-DKVuBAjD.mjs → build-workflows-Dmzay1vP-CAhb0BSk.mjs} +6 -6
- package/dist/{build.handler-DI146Cd3.mjs → build.handler-DTKBdDzF.mjs} +4 -4
- package/dist/{clear.handler-B1c17nAi.mjs → clear.handler-Dpe05eTq.mjs} +1 -1
- package/dist/{commander-BwtBoukr.mjs → commander-i-7LgOyc.mjs} +1 -1
- package/dist/{connect-IPcL37np.mjs → connect-BcTkRZ10.mjs} +2 -2
- package/dist/{connect.handler-ToY6qmMz.mjs → connect.handler-DilOwhlW.mjs} +3 -3
- package/dist/{context-DQ4IA0yO.mjs → context-B1L8pZsH.mjs} +1 -1
- package/dist/{create.handler-BAyG0PmG.mjs → create.handler-DF1Ye4nr.mjs} +1 -1
- package/dist/{credentials-CZiu-534.mjs → credentials-BsEHWMBh.mjs} +6 -6
- package/dist/cron-parser-C2eJD0yD.mjs +393 -0
- package/dist/{current-deployment-workflow-B4IufKqe.mjs → current-deployment-workflow-Biw1zV7S.mjs} +4 -4
- package/dist/{current.handler-DA4FGfUP.mjs → current.handler-C48q2mBd.mjs} +1 -1
- package/dist/{delete.handler-CJcyvnUF.mjs → delete.handler-Bude0SVP.mjs} +1 -1
- package/dist/{deploy-BvaFgVvf.mjs → deploy-D4ILrWpx.mjs} +1 -1
- package/dist/{deploy-CqXOhecY.mjs → deploy-DVE7Mx_X.mjs} +2 -2
- package/dist/{deploy-progress-CLO-yidq.mjs → deploy-progress-7qj5ek8b.mjs} +1 -1
- package/dist/{deploy.handler-DQg_rXgs.mjs → deploy.handler-B3E7uX-x.mjs} +15 -15
- package/dist/{detect-env-access-CwkOYeYM-EmkYvbfJ.mjs → detect-env-access-CwkOYeYM-BLtKepjx.mjs} +1 -1
- package/dist/{diff.handler-BXg47NIZ.mjs → diff.handler-BMNZ_3J_.mjs} +3 -3
- package/dist/{dist-BMkNN03r.mjs → dist-BVD3Ga_l.mjs} +7 -7
- package/dist/{env.handler-DFKzjIQT.mjs → env.handler-BUBsjm1k.mjs} +6 -6
- package/dist/{error-boundary-B2ZKRkZI.mjs → error-boundary-CyLcinp1.mjs} +1 -1
- package/dist/{import-module-DEI7R8Yh-Xz-KAPvB.mjs → import-module-DEI7R8Yh-L32hhSoh.mjs} +817 -34
- package/dist/{init-DhnABm3J.mjs → init-CxMQ2ysa.mjs} +2 -2
- package/dist/{init.handler-QgehN8B4.mjs → init.handler-BPKxeGZS.mjs} +2 -2
- package/dist/{inspect.handler-CerVdo23.mjs → inspect.handler-CJ7e6iFB.mjs} +3 -3
- package/dist/{integration-catalog-BRrJIAVz.mjs → integration-catalog-BgT4mLzW.mjs} +1 -1
- package/dist/{integrations-7-U7nmkh.mjs → integrations-DUlJhGUS.mjs} +5 -5
- package/dist/{invites-CmGmnUla.mjs → invites-BlB-hKUE.mjs} +4 -4
- package/dist/{invites.list.handler-CmkIf-uW.mjs → invites.list.handler-DmeMcezN.mjs} +1 -1
- package/dist/{invites.resend.handler-FZl20yat.mjs → invites.resend.handler-pJTPtKHE.mjs} +1 -1
- package/dist/{invites.revoke.handler-D95mrfmB.mjs → invites.revoke.handler-4NgnnfiU.mjs} +1 -1
- package/dist/keystroke.mjs +21 -21
- package/dist/{list-enrichment-I4XQaMg0.mjs → list-enrichment-C6u5eI0j.mjs} +1 -1
- package/dist/{list.handler-DRnHsEa0.mjs → list.handler-BSyrxCma.mjs} +1 -1
- package/dist/{list.handler-DsYyTUhA.mjs → list.handler-BuX-bb2y.mjs} +1 -1
- package/dist/{list.handler-H8aQSsFM.mjs → list.handler-C7AChEPW.mjs} +2 -2
- package/dist/{list.handler-Cp767f5l.mjs → list.handler-CBEXiTAK.mjs} +1 -1
- package/dist/{list.handler-DXl8igi2.mjs → list.handler-DhFni3rk.mjs} +5 -5
- package/dist/{list.handler-k8k7wVIV.mjs → list.handler-K3x71Y4Z.mjs} +3 -3
- package/dist/{listen-DckJq0y0.mjs → listen-drcHFcKq.mjs} +2 -2
- package/dist/{listen.handler-Bf5MXKPO.mjs → listen.handler-DjK6RlLf.mjs} +2 -2
- package/dist/{logs-D_l5BIn2.mjs → logs-NI-DyeFY.mjs} +3 -3
- package/dist/{logs.handler-kYO3Uv9t.mjs → logs.handler-PRYGI57p.mjs} +2 -2
- package/dist/{members.add.handler-C2cppd-9.mjs → members.add.handler-B4H8Hn6x.mjs} +1 -1
- package/dist/{members.invite.handler-DY6kS4LN.mjs → members.invite.handler-D8ONlt4Y.mjs} +1 -1
- package/dist/{members.list.handler-CFBG3SBw.mjs → members.list.handler-BHJTMMiA.mjs} +1 -1
- package/dist/{members.remove.handler-LQ61_qip.mjs → members.remove.handler-_hKd_sFd.mjs} +1 -1
- package/dist/{members.update.handler-CqISA1mf.mjs → members.update.handler-CC7J0k8n.mjs} +1 -1
- package/dist/{normalize-path-CojS-CgQ-D5D0AIHR.mjs → normalize-path-CojS-CgQ-DFTvyA27.mjs} +1 -1
- package/dist/{org-KQ2nD0yN.mjs → org-8bkIZAJ4.mjs} +15 -15
- package/dist/{orgs.create.handler-Mv5CTGcG.mjs → orgs.create.handler-vXQgDJZ_.mjs} +1 -1
- package/dist/{orgs.get.handler-DvvOhshX.mjs → orgs.get.handler-D_Jfl18x.mjs} +1 -1
- package/dist/{orgs.list.handler-wWAg6cKg.mjs → orgs.list.handler-BNjoTJvV.mjs} +1 -1
- package/dist/{paused.handler-CbMkPD9e.mjs → paused.handler-ST9dCe8E.mjs} +1 -1
- package/dist/{projects-CWLOF5x4.mjs → projects-DfaG_3WP.mjs} +1 -1
- package/dist/{projects-CYqeKQGT.mjs → projects-Pp5ENoyh.mjs} +4 -4
- package/dist/{requirements.handler-CnDTBcH5.mjs → requirements.handler-CZ53jJ_5.mjs} +5 -5
- package/dist/{run-polling-49w3PYAv.mjs → run-polling-7YWCL6c-.mjs} +3 -3
- package/dist/{run.handler-CX3YiJmj.mjs → run.handler-BNrAIXDG.mjs} +4 -4
- package/dist/{runs-HJejvQnQ.mjs → runs-Bs8VzL8P.mjs} +2 -2
- package/dist/{skills-sync.handler-Cf74vKJA.mjs → skills-sync.handler-DXF6IgEX.mjs} +1 -1
- package/dist/{skills.command-KyAwBeST.mjs → skills.command-B8yExFCn.mjs} +3 -3
- package/dist/{source-analysis-DEEChuND-zifGW9QF.mjs → source-analysis-DTnwNwKq-BqHdBGtw.mjs} +5 -5
- package/dist/{src-D-dFmoAF.mjs → src-BQdOWkyv.mjs} +1 -1
- package/dist/{switch.handler-DfsKVtR6.mjs → switch.handler-BFBM8rSi.mjs} +1 -1
- package/dist/{sync-Coh9YPjY.mjs → sync-BSL1s6PR.mjs} +2 -2
- package/dist/{sync.handler-vvFIUut1.mjs → sync.handler-BN9oDWVx.mjs} +6 -6
- package/dist/{task-BBgEvdG1.mjs → task-BNXDZU71.mjs} +1 -390
- package/dist/{task-target-build-atWwwnSF.mjs → task-target-build-Du0ObGbb.mjs} +4 -4
- package/dist/{task-target-deploy-CRsrQTOy.mjs → task-target-deploy-OyxLvh3a.mjs} +1 -1
- package/dist/task-target-deploy-runner.mjs +4 -4
- package/dist/{test-BzpSLhV8.mjs → test-BIz-oBxy.mjs} +65 -11
- package/dist/{test.handler-St9sBXyH.mjs → test.handler-Dk3CmTa7.mjs} +1 -1
- package/dist/{trigger-artifacts-RizI57RC-C-yCtEi-.mjs → trigger-artifacts-RizI57RC-abdkW8-z.mjs} +3 -3
- package/dist/{try-deploy.handler-32lU1tg4.mjs → try-deploy.handler-A16ahnCF.mjs} +8 -8
- package/dist/{upgrade-YavAf8AC.mjs → upgrade-f97U8Rll.mjs} +2 -2
- package/dist/{upload.handler-DemogvI1.mjs → upload.handler-CUtfr3hY.mjs} +7 -7
- package/dist/{users.get.handler-B20PMSbl.mjs → users.get.handler-D0WO6D1K.mjs} +1 -1
- package/dist/{users.list.handler-BplFTjv3.mjs → users.list.handler-BSTIniF1.mjs} +1 -1
- package/dist/{users.set-role.handler-wdmI6o3G.mjs → users.set-role.handler-DAKdSkbn.mjs} +1 -1
- package/dist/{utils-DpEtybzI.mjs → utils-LlH3l_yT.mjs} +1 -1
- package/dist/{validate.handler-BoRyygMl.mjs → validate.handler-CUP3SjzC.mjs} +3 -3
- package/dist/{workflow-build-CoJMwpPO.mjs → workflow-build-C_qkq7jk.mjs} +17 -17
- package/dist/{workflow-bundler-BzHk73PM-UJQa7Ubk.mjs → workflow-bundler-BzHk73PM-CRcJvu9a.mjs} +2 -2
- package/dist/{workflows-Cag9O9hx.mjs → workflows-ixllXKLo.mjs} +13 -13
- package/dist/{writer-CtvttJdP-BfNsrheU.mjs → writer-CtvttJdP-BEJHbiLs.mjs} +5 -5
- package/package.json +10 -10
- /package/dist/{agent-bundle-package-DWV6B_5q-cB76j6UL.mjs → agent-bundle-package-DWV6B_5q-rRTPU13L.mjs} +0 -0
- /package/dist/{browser-B4K0VW8p.mjs → browser-3cUiPlk2.mjs} +0 -0
- /package/dist/{clear-cache.handler-Dywqc7TG.mjs → clear-cache.handler-Bkt6GKnF.mjs} +0 -0
- /package/dist/{clear.handler-ui4e1CnJ.mjs → clear.handler-BieI9Oix.mjs} +0 -0
- /package/dist/{concurrency-gXn9Rw8x-CaI6Vtbu.mjs → concurrency-gXn9Rw8x-BI6HQNfC.mjs} +0 -0
- /package/dist/{credential-env-map-D0zgoUl0.mjs → credential-env-map-B2nVJXPn.mjs} +0 -0
- /package/dist/{credential-schema-mismatch-8pqwvswO.mjs → credential-schema-mismatch-CfyBUMPS.mjs} +0 -0
- /package/dist/{credentials-Bu1MBiCL.mjs → credentials-CiOwDS5y.mjs} +0 -0
- /package/dist/{diff-utils-BoXI705D.mjs → diff-utils-4OQTpP5s.mjs} +0 -0
- /package/dist/{file-metadata-Dwy9KKq_.mjs → file-metadata-DaPPpiTh.mjs} +0 -0
- /package/dist/{layout-DRf9qUf8.mjs → layout-DaoP8bcD.mjs} +0 -0
- /package/dist/{list.handler-BrTW2viq.mjs → list.handler-VGPaJzl-.mjs} +0 -0
- /package/dist/{logs.handler-DxSKmDCq.mjs → logs.handler-BqmZ4eLx.mjs} +0 -0
- /package/dist/{metadata-layout-C6ed-9dl-EF5pCtIH.mjs → metadata-layout-C6ed-9dl-DCTTsjiG.mjs} +0 -0
- /package/dist/{options-DFPs-tAB.mjs → options-BsIkm0Bb.mjs} +0 -0
- /package/dist/{oxc-B3KI3rf_-CHDUXsus.mjs → oxc-B3KI3rf_-DdiZWqe2.mjs} +0 -0
- /package/dist/{read-credential-keys-77a91T8M-CzXPGxdU.mjs → read-credential-keys-77a91T8M-COvwpok_.mjs} +0 -0
- /package/dist/{register.handler-D7ZZAnGP.mjs → register.handler-CttgzybN.mjs} +0 -0
- /package/dist/{resolve-project-bVPMcs-y.mjs → resolve-project-CI_PxRXi.mjs} +0 -0
- /package/dist/{rolldown-runtime-twds-ZHy-3DMm_Sby.mjs → rolldown-runtime-twds-ZHy-CO5ir_za.mjs} +0 -0
- /package/dist/{run-polling-Cb4ssXIE.mjs → run-polling-BPmB5N5A.mjs} +0 -0
- /package/dist/{schema-DFJiNWyd.mjs → schema-BjH_e4Fo.mjs} +0 -0
- /package/dist/{schema-display-CyCWSgfY.mjs → schema-display-B0LmISCe.mjs} +0 -0
- /package/dist/{skills.handler-C_4VzVmc.mjs → skills.handler-CPKCf9ZK.mjs} +0 -0
- /package/dist/{spinner-progress-CS1BEdNB.mjs → spinner-progress-DpL68vYK.mjs} +0 -0
- /package/dist/{status.handler-Cm9aNUBn.mjs → status.handler-DxCJRm1n.mjs} +0 -0
- /package/dist/{sync-keystroke-agent-skills-CX9fS5nQ.mjs → sync-keystroke-agent-skills-ChUj1LnK.mjs} +0 -0
- /package/dist/{task-target-deploy-CZBGNC0H-BwPSfaJQ.mjs → task-target-deploy-CZBGNC0H-Ck724yF4.mjs} +0 -0
- /package/dist/{trigger-manifest-D5rnpPkA.mjs → trigger-manifest-PTjVYL1r.mjs} +0 -0
- /package/dist/{upgrade.handler-C2eZ_tg3.mjs → upgrade.handler-CXEF4ue0.mjs} +0 -0
- /package/dist/{upload-C0kaZu08.mjs → upload-wwSPAC5_.mjs} +0 -0
|
@@ -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-COvwpok_.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-BLtKepjx.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-RizI57RC-
|
|
219
|
+
const { buildTriggerArtifacts } = await import("./trigger-artifacts-RizI57RC-abdkW8-z.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
|
|
@@ -319,7 +319,7 @@ function createPreparedTaskTarget(artifact, triggers) {
|
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
321
|
async function tryParseTaskBuildManifest(manifest) {
|
|
322
|
-
const { TaskBuildManifestSchema } = await import("./task-
|
|
322
|
+
const { TaskBuildManifestSchema } = await import("./task-BNXDZU71.mjs").then((n) => n.t);
|
|
323
323
|
const result = TaskBuildManifestSchema.safeParse(manifest);
|
|
324
324
|
return result.success ? result.data : null;
|
|
325
325
|
}
|
|
@@ -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-Du0ObGbb.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-Du0ObGbb.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-D4ILrWpx.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-OyxLvh3a.mjs");
|
|
166
166
|
const result = await deployTaskTargets({
|
|
167
167
|
preparedTasks: descriptor.preparedTasks,
|
|
168
168
|
client,
|
|
@@ -4,22 +4,20 @@ import { N as throwReportedCliExit, a as getProcessEnv, k as CliExitError, n as
|
|
|
4
4
|
import { l as resolveAuthOptions } from "./dist-BF6r1hfv.mjs";
|
|
5
5
|
import { t as assertWorkflowProjectRoot } from "./project-config-CJGSh2RQ.mjs";
|
|
6
6
|
import { i as writeJson, n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-CGdYhH0p.mjs";
|
|
7
|
-
import { t as createTypedCommand } from "./commander-
|
|
8
|
-
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-
|
|
9
|
-
import { a as readManifestsFromOutDir } from "./dist-
|
|
10
|
-
import { t as requireWorkflowsDir } from "./resolve-project-
|
|
11
|
-
import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-
|
|
12
|
-
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-
|
|
13
|
-
import { n as WorkflowsRunOptionsSchema, t as RUN_OPTIONS_CONFIG } from "./options-
|
|
14
|
-
import { t as handleWorkflowsTryDeploy } from "./try-deploy.handler-
|
|
15
|
-
import { n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-
|
|
7
|
+
import { t as createTypedCommand } from "./commander-i-7LgOyc.mjs";
|
|
8
|
+
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-B1L8pZsH.mjs";
|
|
9
|
+
import { a as readManifestsFromOutDir } from "./dist-BVD3Ga_l.mjs";
|
|
10
|
+
import { t as requireWorkflowsDir } from "./resolve-project-CI_PxRXi.mjs";
|
|
11
|
+
import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-C_qkq7jk.mjs";
|
|
12
|
+
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-Biw1zV7S.mjs";
|
|
13
|
+
import { n as WorkflowsRunOptionsSchema, t as RUN_OPTIONS_CONFIG } from "./options-BsIkm0Bb.mjs";
|
|
14
|
+
import { t as handleWorkflowsTryDeploy } from "./try-deploy.handler-A16ahnCF.mjs";
|
|
15
|
+
import { n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-7YWCL6c-.mjs";
|
|
16
16
|
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
17
17
|
import { tmpdir } from "node:os";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { pathToFileURL } from "node:url";
|
|
20
20
|
import { z } from "zod";
|
|
21
|
-
import { clearOperationContext, clearOperationCredentialResolver, registerOperationContext, registerOperationCredentialResolver } from "@keystrokehq/core/operation/runtime";
|
|
22
|
-
import { clearRuntime, registerRuntime } from "@keystrokehq/core/workflow/runtime";
|
|
23
21
|
//#region ../../packages/testing/src/test-runtime/credentials/env-resolver.ts
|
|
24
22
|
/**
|
|
25
23
|
* Computes the env var name for a credential key.
|
|
@@ -200,6 +198,62 @@ function createTestWorkflowContext(options = {}) {
|
|
|
200
198
|
};
|
|
201
199
|
}
|
|
202
200
|
//#endregion
|
|
201
|
+
//#region ../../packages/core/dist/chunks/execution-scope-BCDb3CU7.mjs
|
|
202
|
+
const SCOPE_STACK_KEY = "__ks_execution_scope_stack__";
|
|
203
|
+
function getScopeStack() {
|
|
204
|
+
const g = globalThis;
|
|
205
|
+
if (!g[SCOPE_STACK_KEY]) g[SCOPE_STACK_KEY] = [];
|
|
206
|
+
return g[SCOPE_STACK_KEY];
|
|
207
|
+
}
|
|
208
|
+
function getCurrentScope() {
|
|
209
|
+
const stack = getScopeStack();
|
|
210
|
+
return stack[stack.length - 1] ?? getDefaultScope();
|
|
211
|
+
}
|
|
212
|
+
const DEFAULT_SCOPE_KEY = "__ks_execution_scope_default__";
|
|
213
|
+
function getDefaultScope() {
|
|
214
|
+
const g = globalThis;
|
|
215
|
+
if (!g[DEFAULT_SCOPE_KEY]) g[DEFAULT_SCOPE_KEY] = { stepContextProviders: [] };
|
|
216
|
+
return g[DEFAULT_SCOPE_KEY];
|
|
217
|
+
}
|
|
218
|
+
function setExecutionScopeWorkflowRuntime(provider) {
|
|
219
|
+
const scope = getCurrentScope();
|
|
220
|
+
scope.workflowRuntimeProvider = provider;
|
|
221
|
+
}
|
|
222
|
+
function pushExecutionScopeStepContext(provider) {
|
|
223
|
+
const scope = getCurrentScope();
|
|
224
|
+
scope.stepContextProviders = [...scope.stepContextProviders, provider];
|
|
225
|
+
}
|
|
226
|
+
function clearExecutionScopeStepContexts() {
|
|
227
|
+
const scope = getCurrentScope();
|
|
228
|
+
scope.stepContextProviders = [];
|
|
229
|
+
}
|
|
230
|
+
function setExecutionScopeStepCredentialResolver(resolver) {
|
|
231
|
+
const scope = getCurrentScope();
|
|
232
|
+
scope.stepCredentialResolver = resolver;
|
|
233
|
+
}
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region ../../packages/core/dist/chunks/credential-resolver-registry-BRH30wCz.mjs
|
|
236
|
+
function registerOperationContext(registry) {
|
|
237
|
+
pushExecutionScopeStepContext(registry.getOperationContext);
|
|
238
|
+
}
|
|
239
|
+
function clearOperationContext() {
|
|
240
|
+
clearExecutionScopeStepContexts();
|
|
241
|
+
}
|
|
242
|
+
function registerOperationCredentialResolver(resolver) {
|
|
243
|
+
setExecutionScopeStepCredentialResolver(resolver.resolveOperationCredentials);
|
|
244
|
+
}
|
|
245
|
+
function clearOperationCredentialResolver() {
|
|
246
|
+
setExecutionScopeStepCredentialResolver(void 0);
|
|
247
|
+
}
|
|
248
|
+
//#endregion
|
|
249
|
+
//#region ../../packages/core/dist/chunks/context-registry-DqNWcTgK.mjs
|
|
250
|
+
function registerRuntime(registry) {
|
|
251
|
+
setExecutionScopeWorkflowRuntime(registry.getRuntime);
|
|
252
|
+
}
|
|
253
|
+
function clearRuntime() {
|
|
254
|
+
setExecutionScopeWorkflowRuntime(void 0);
|
|
255
|
+
}
|
|
256
|
+
//#endregion
|
|
203
257
|
//#region ../../packages/testing/src/test-runtime/runtime/create-keystroke-test-runtime.ts
|
|
204
258
|
async function createKeystrokeTestRuntime(options = {}) {
|
|
205
259
|
clearOperationCredentialResolver();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { n 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-B1L8pZsH.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-RizI57RC-C-yCtEi-.mjs → trigger-artifacts-RizI57RC-abdkW8-z.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { n as readOptionalJsonSchemaKeys } from "./declared-credential-requirements-B6h4WRv4.mjs";
|
|
4
|
-
import { t as __exportAll } from "./rolldown-runtime-twds-ZHy-
|
|
5
|
-
import { t as readCredentialKeysFromSchemaObject } from "./read-credential-keys-77a91T8M-
|
|
6
|
-
import { r as formatEnvAccessError, t as createEnvAccessPlugin } from "./detect-env-access-CwkOYeYM-
|
|
4
|
+
import { t as __exportAll } from "./rolldown-runtime-twds-ZHy-CO5ir_za.mjs";
|
|
5
|
+
import { t as readCredentialKeysFromSchemaObject } from "./read-credential-keys-77a91T8M-COvwpok_.mjs";
|
|
6
|
+
import { r as formatEnvAccessError, t as createEnvAccessPlugin } from "./detect-env-access-CwkOYeYM-BLtKepjx.mjs";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
8
8
|
import { rolldown } from "rolldown";
|
|
9
9
|
//#region ../../packages/workflow-builder/dist/trigger-artifacts-RizI57RC.mjs
|
|
@@ -4,14 +4,14 @@ import { n as __exportAll } from "./chunk-CH6r78ws.mjs";
|
|
|
4
4
|
import { k as CliExitError, n as ui, o as isLocalMode, x as toErrorMessage } from "./keystroke.mjs";
|
|
5
5
|
import { d as trackProject } from "./dist-BF6r1hfv.mjs";
|
|
6
6
|
import { t as assertWorkflowProjectRoot } from "./project-config-CJGSh2RQ.mjs";
|
|
7
|
-
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-
|
|
8
|
-
import { o as readWorkflowsFromDisk, s as uploadTestBundle } from "./dist-
|
|
9
|
-
import { t as requireWorkflowsDir } from "./resolve-project-
|
|
10
|
-
import { a as runWorkflowBuild, t as WorkflowNotFoundError } from "./workflow-build-
|
|
11
|
-
import { r as isUnknownSchema } from "./schema-display-
|
|
12
|
-
import { t as createBuildProgress } from "./build-progress-
|
|
13
|
-
import { t as withErrorBoundary } from "./error-boundary-
|
|
14
|
-
import { a as tryReadExistingInputSchema, n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-
|
|
7
|
+
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-B1L8pZsH.mjs";
|
|
8
|
+
import { o as readWorkflowsFromDisk, s as uploadTestBundle } from "./dist-BVD3Ga_l.mjs";
|
|
9
|
+
import { t as requireWorkflowsDir } from "./resolve-project-CI_PxRXi.mjs";
|
|
10
|
+
import { a as runWorkflowBuild, t as WorkflowNotFoundError } from "./workflow-build-C_qkq7jk.mjs";
|
|
11
|
+
import { r as isUnknownSchema } from "./schema-display-B0LmISCe.mjs";
|
|
12
|
+
import { t as createBuildProgress } from "./build-progress-BataNqG-.mjs";
|
|
13
|
+
import { t as withErrorBoundary } from "./error-boundary-CyLcinp1.mjs";
|
|
14
|
+
import { a as tryReadExistingInputSchema, n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-7YWCL6c-.mjs";
|
|
15
15
|
//#region src/lib/format.ts
|
|
16
16
|
function formatBytes(bytes) {
|
|
17
17
|
if (bytes < 1024) return `${bytes} B`;
|
|
@@ -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-i-7LgOyc.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/commands/upgrade/upgrade.command.ts
|
|
6
6
|
const PackageManagerSchema = z.enum([
|
|
@@ -34,7 +34,7 @@ function createUpgradeCommand() {
|
|
|
34
34
|
description: "Upgrade the Keystroke CLI to the latest published version",
|
|
35
35
|
schema: UpgradeOptionsSchema,
|
|
36
36
|
optionsConfig: UPGRADE_OPTIONS_CONFIG,
|
|
37
|
-
loadHandler: async () => (await import("./upgrade.handler-
|
|
37
|
+
loadHandler: async () => (await import("./upgrade.handler-CXEF4ue0.mjs")).handleUpgrade
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
//#endregion
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { N as throwReportedCliExit, a as getProcessEnv, n as ui, x as toErrorMessage } from "./keystroke.mjs";
|
|
4
4
|
import { t as assertWorkflowProjectRoot } from "./project-config-CJGSh2RQ.mjs";
|
|
5
5
|
import { a as writeJsonError, i as writeJson } from "./output-CGdYhH0p.mjs";
|
|
6
|
-
import { i as requireClient } from "./context-
|
|
7
|
-
import { a as readManifestsFromOutDir, t as collectCredentialFingerprintMapFromProjectDist } from "./dist-
|
|
8
|
-
import { t as requireWorkflowsDir } from "./resolve-project-
|
|
9
|
-
import { t as getIntegrationCatalog } from "./integration-catalog-
|
|
10
|
-
import { t as readCredentialEnvMap } from "./credential-env-map-
|
|
11
|
-
import { a as verifyCredentialResolvable, i as validateManualCredentialWithHook, n as resolveCredentialValuesFromEnv, r as uploadCredential, t as groupCredentialRequirements } from "./credentials-
|
|
12
|
-
import { n as renderCredentialSchemaMismatchText, r as writeCredentialSchemaMismatchJson, t as isCredentialSchemaMismatchErrorLike } from "./credential-schema-mismatch-
|
|
6
|
+
import { i as requireClient } from "./context-B1L8pZsH.mjs";
|
|
7
|
+
import { a as readManifestsFromOutDir, t as collectCredentialFingerprintMapFromProjectDist } from "./dist-BVD3Ga_l.mjs";
|
|
8
|
+
import { t as requireWorkflowsDir } from "./resolve-project-CI_PxRXi.mjs";
|
|
9
|
+
import { t as getIntegrationCatalog } from "./integration-catalog-BgT4mLzW.mjs";
|
|
10
|
+
import { t as readCredentialEnvMap } from "./credential-env-map-B2nVJXPn.mjs";
|
|
11
|
+
import { a as verifyCredentialResolvable, i as validateManualCredentialWithHook, n as resolveCredentialValuesFromEnv, r as uploadCredential, t as groupCredentialRequirements } from "./credentials-CiOwDS5y.mjs";
|
|
12
|
+
import { n as renderCredentialSchemaMismatchText, r as writeCredentialSchemaMismatchJson, t as isCredentialSchemaMismatchErrorLike } from "./credential-schema-mismatch-CfyBUMPS.mjs";
|
|
13
13
|
import * as path$1 from "node:path";
|
|
14
14
|
import { confirm, isCancel } from "@clack/prompts";
|
|
15
15
|
//#region src/commands/credentials/upload/upload.handler.ts
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { n as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-CGdYhH0p.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-B1L8pZsH.mjs";
|
|
6
6
|
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-ByLX0A-V.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 { n as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-CGdYhH0p.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-B1L8pZsH.mjs";
|
|
6
6
|
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-ByLX0A-V.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 { n as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-CGdYhH0p.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-B1L8pZsH.mjs";
|
|
6
6
|
import { n as isIamJsonMode, r as requireConfirmation, t as handleIamError } from "./iam-command-utils-ByLX0A-V.mjs";
|
|
7
7
|
//#region src/commands/admin/users.set-role.handler.ts
|
|
8
8
|
async function handleAdminUsersSetRole(options, ctx) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { i as readProjectConfig } from "./project-config-CJGSh2RQ.mjs";
|
|
4
|
-
import { h as resolveBuildOutputDir } from "./layout-
|
|
4
|
+
import { h as resolveBuildOutputDir } from "./layout-DaoP8bcD.mjs";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
//#region ../../packages/project-config/src/utils.ts
|
|
7
7
|
function resolveConfiguredBuildOutputDir(projectRoot, buildConfig) {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { N as throwReportedCliExit, n as ui, x as toErrorMessage } from "./keystroke.mjs";
|
|
4
4
|
import { d as trackProject } from "./dist-BF6r1hfv.mjs";
|
|
5
5
|
import { i as writeJson } from "./output-CGdYhH0p.mjs";
|
|
6
|
-
import { t as requireWorkflowsDir } from "./resolve-project-
|
|
7
|
-
import { s as build, t as WorkflowNotFoundError } from "./workflow-build-
|
|
8
|
-
import { t as createBuildProgress } from "./build-progress-
|
|
6
|
+
import { t as requireWorkflowsDir } from "./resolve-project-CI_PxRXi.mjs";
|
|
7
|
+
import { s as build, t as WorkflowNotFoundError } from "./workflow-build-C_qkq7jk.mjs";
|
|
8
|
+
import { t as createBuildProgress } from "./build-progress-BataNqG-.mjs";
|
|
9
9
|
import { mkdtemp, rm } from "node:fs/promises";
|
|
10
10
|
import * as os from "node:os";
|
|
11
11
|
import * as path$1 from "node:path";
|
|
@@ -6,16 +6,16 @@ import { a as getKeystrokeTmpDir } from "./dist-BF6r1hfv.mjs";
|
|
|
6
6
|
import { t as assertWorkflowProjectRoot } from "./project-config-CJGSh2RQ.mjs";
|
|
7
7
|
import { a as FlowGraphSchema, r as WorkflowBuildManifestSchema } from "./workflow-build-manifest-OPFqFD6f.mjs";
|
|
8
8
|
import { t as AgentVersionManifestSchema } from "./agent-manifest-CZdlCTFs.mjs";
|
|
9
|
-
import { r as RelativeFilePathSchema } from "./file-metadata-
|
|
10
|
-
import { c as createArtifactOutputFiles, l as createMetadataOutputFile, o as METADATA_ROOT_DIR_NAME, p as getWorkflowArtifactPaths, t as BUILD_DIR_NAME } from "./layout-
|
|
11
|
-
import { t as resolveConfiguredBuildOutputDir } from "./utils-
|
|
12
|
-
import { a as readAgentSandboxPackage, r as AGENT_VM_TOOLS_RUNTIME_RELATIVE_PATH } from "./agent-bundle-package-DWV6B_5q-
|
|
13
|
-
import { a as prewarmFileContentCache, c as typedEntries, i as createFileContentCache, l as require_out, n as computeBuilderFingerprint, o as resetFileContentCache, r as computeWorkflowFingerprint, s as sha256String } from "./metadata-layout-C6ed-9dl-
|
|
14
|
-
import { a as getAgentArtifactPaths, c as hashWorkflowManifestForDisk, d as resolveOutputDir, i as createAgentOutputFiles, l as removeAgentArtifacts, n as BUILD_CACHE_FILE_NAME, o as hashAgentManifestForDisk, r as allOutputFilesExist, s as hashWorkflowFlowForDisk, t as AGENT_ARTIFACT_DIR_PREFIX, u as removeWorkflowArtifacts } from "./writer-CtvttJdP-
|
|
15
|
-
import { a as createDiscoveryFailure, c as createNamespaceStarExportDiscoveryError, d as isWorkflowLoadResult, f as loadWorkflowMetadataBatch, i as createAmbiguousExportDiscoveryError, l as isAgentLoadResult, o as createDuplicateWorkflowIdFailure, t as DuplicateWorkflowIdError, u as isTaskLoadResult } from "./import-module-DEI7R8Yh-
|
|
16
|
-
import { a as literalString, n as identifierName, o as parseSourceFile, r as isNode } from "./oxc-B3KI3rf_-
|
|
17
|
-
import { a as getLocalModuleSpecifier, c as removeAllMetadataArtifacts, d as resolveDefaultExportAssignment, f as resolveLocalModulePath, i as collectWorkflowImportNames, n as DISCOVERY_IGNORE, o as getVariableDeclarators, r as collectLocalWorkflowBindings, s as isExportedVariableStatement, t as DISCOVERY_GLOB, u as removeMetadataArtifacts } from "./source-analysis-
|
|
18
|
-
import { n as parseRelativeFilePath } from "./normalize-path-CojS-CgQ-
|
|
9
|
+
import { r as RelativeFilePathSchema } from "./file-metadata-DaPPpiTh.mjs";
|
|
10
|
+
import { c as createArtifactOutputFiles, l as createMetadataOutputFile, o as METADATA_ROOT_DIR_NAME, p as getWorkflowArtifactPaths, t as BUILD_DIR_NAME } from "./layout-DaoP8bcD.mjs";
|
|
11
|
+
import { t as resolveConfiguredBuildOutputDir } from "./utils-LlH3l_yT.mjs";
|
|
12
|
+
import { a as readAgentSandboxPackage, r as AGENT_VM_TOOLS_RUNTIME_RELATIVE_PATH } from "./agent-bundle-package-DWV6B_5q-rRTPU13L.mjs";
|
|
13
|
+
import { a as prewarmFileContentCache, c as typedEntries, i as createFileContentCache, l as require_out, n as computeBuilderFingerprint, o as resetFileContentCache, r as computeWorkflowFingerprint, s as sha256String } from "./metadata-layout-C6ed-9dl-DCTTsjiG.mjs";
|
|
14
|
+
import { a as getAgentArtifactPaths, c as hashWorkflowManifestForDisk, d as resolveOutputDir, i as createAgentOutputFiles, l as removeAgentArtifacts, n as BUILD_CACHE_FILE_NAME, o as hashAgentManifestForDisk, r as allOutputFilesExist, s as hashWorkflowFlowForDisk, t as AGENT_ARTIFACT_DIR_PREFIX, u as removeWorkflowArtifacts } from "./writer-CtvttJdP-BEJHbiLs.mjs";
|
|
15
|
+
import { a as createDiscoveryFailure, c as createNamespaceStarExportDiscoveryError, d as isWorkflowLoadResult, f as loadWorkflowMetadataBatch, i as createAmbiguousExportDiscoveryError, l as isAgentLoadResult, o as createDuplicateWorkflowIdFailure, t as DuplicateWorkflowIdError, u as isTaskLoadResult } from "./import-module-DEI7R8Yh-L32hhSoh.mjs";
|
|
16
|
+
import { a as literalString, n as identifierName, o as parseSourceFile, r as isNode } from "./oxc-B3KI3rf_-DdiZWqe2.mjs";
|
|
17
|
+
import { a as getLocalModuleSpecifier, c as removeAllMetadataArtifacts, d as resolveDefaultExportAssignment, f as resolveLocalModulePath, i as collectWorkflowImportNames, n as DISCOVERY_IGNORE, o as getVariableDeclarators, r as collectLocalWorkflowBindings, s as isExportedVariableStatement, t as DISCOVERY_GLOB, u as removeMetadataArtifacts } from "./source-analysis-DTnwNwKq-BqHdBGtw.mjs";
|
|
18
|
+
import { n as parseRelativeFilePath } from "./normalize-path-CojS-CgQ-DFTvyA27.mjs";
|
|
19
19
|
import * as fs from "node:fs/promises";
|
|
20
20
|
import { mkdir, readFile, stat, writeFile } from "node:fs/promises";
|
|
21
21
|
import * as path$1 from "node:path";
|
|
@@ -70,7 +70,7 @@ function toCycleNode(node) {
|
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
//#endregion
|
|
73
|
-
//#region ../../packages/workflow-builder/dist/build-
|
|
73
|
+
//#region ../../packages/workflow-builder/dist/build-D3_BXR_1.mjs
|
|
74
74
|
var import_out = /* @__PURE__ */ __toESM(require_out(), 1);
|
|
75
75
|
const DiscoveredWorkflowSchema = z.object({
|
|
76
76
|
exportFilePath: z.string(),
|
|
@@ -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-Dmzay1vP-
|
|
981
|
+
const { buildWorkflowArtifacts } = await import("./build-workflows-Dmzay1vP-CAhb0BSk.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-DseUtzd4-
|
|
996
|
+
const { buildAgentArtifacts } = await import("./build-agents-DseUtzd4-DBQ82ErJ.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-GVuMLS0h-
|
|
1005
|
+
const { buildTaskArtifacts } = await import("./build-tasks-GVuMLS0h-CWrrj8SF.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-Dmzay1vP-
|
|
1113
|
+
const { createWorkflowMetadataFailure } = await import("./build-workflows-Dmzay1vP-CAhb0BSk.mjs");
|
|
1114
1114
|
plan.failures.push(createWorkflowMetadataFailure(discoveredWorkflow, loadResult?.error));
|
|
1115
1115
|
continue;
|
|
1116
1116
|
}
|
|
@@ -1308,7 +1308,7 @@ async function runBuild(config, initialTargetBindingKeys, metadataRebuildDecisio
|
|
|
1308
1308
|
cacheResolvedBindingKeys,
|
|
1309
1309
|
releaseBundleMemory: config.releaseBundleMemory
|
|
1310
1310
|
};
|
|
1311
|
-
const { writeBuildOutput, writeTargetedBuildOutput } = await import("./writer-CtvttJdP-
|
|
1311
|
+
const { writeBuildOutput, writeTargetedBuildOutput } = await import("./writer-CtvttJdP-BEJHbiLs.mjs").then((n) => n.f).then((n) => n.t);
|
|
1312
1312
|
const writeResult = targetBindingKeys ? await writeTargetedBuildOutput({
|
|
1313
1313
|
artifacts: finalizedScopedArtifacts,
|
|
1314
1314
|
agentArtifacts,
|
|
@@ -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-
|
|
1336
|
+
const { buildMetadataArtifacts } = await import("./build-metadata-qebrtraZ-BL-fo8HW.mjs");
|
|
1337
1337
|
const metadata = await buildMetadataArtifacts({
|
|
1338
1338
|
projectRoot: config.projectRoot,
|
|
1339
1339
|
outputDir,
|
package/dist/{workflow-bundler-BzHk73PM-UJQa7Ubk.mjs → workflow-bundler-BzHk73PM-CRcJvu9a.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { n as identifierName, o as parseSourceFile, r as isNode } from "./oxc-B3KI3rf_-
|
|
4
|
-
import { r as formatEnvAccessError, t as createEnvAccessPlugin } from "./detect-env-access-CwkOYeYM-
|
|
3
|
+
import { n as identifierName, o as parseSourceFile, r as isNode } from "./oxc-B3KI3rf_-DdiZWqe2.mjs";
|
|
4
|
+
import { r as formatEnvAccessError, t as createEnvAccessPlugin } from "./detect-env-access-CwkOYeYM-BLtKepjx.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-CGdYhH0p.mjs";
|
|
4
|
-
import { t as createTypedCommand } from "./commander-
|
|
4
|
+
import { t as createTypedCommand } from "./commander-i-7LgOyc.mjs";
|
|
5
5
|
import { n as SHA256HashSchema, t as JsonSchemaSchema } from "./common-BaGFkj3n.mjs";
|
|
6
6
|
import { c as TriggerUploadDataSchema } from "./credential-requirements-FtBk5JVB.mjs";
|
|
7
7
|
import { a as FlowGraphSchema, r as WorkflowBuildManifestSchema } from "./workflow-build-manifest-OPFqFD6f.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-BsIkm0Bb.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-DTKBdDzF.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-BMNZ_3J_.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-BUBsjm1k.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-CJ7e6iFB.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-PRYGI57p.mjs")).handleWorkflowsLogs
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
515
|
//#endregion
|
|
@@ -699,7 +699,7 @@ function createWorkflowsPausedCommand() {
|
|
|
699
699
|
key: "workflow",
|
|
700
700
|
required: false
|
|
701
701
|
},
|
|
702
|
-
loadHandler: async () => (await import("./paused.handler-
|
|
702
|
+
loadHandler: async () => (await import("./paused.handler-ST9dCe8E.mjs")).handleWorkflowsPaused
|
|
703
703
|
});
|
|
704
704
|
}
|
|
705
705
|
//#endregion
|
|
@@ -793,7 +793,7 @@ function createWorkflowsRunCommand() {
|
|
|
793
793
|
key: "payload",
|
|
794
794
|
required: false
|
|
795
795
|
}],
|
|
796
|
-
loadHandler: async () => (await import("./run.handler-
|
|
796
|
+
loadHandler: async () => (await import("./run.handler-BNrAIXDG.mjs")).handleWorkflowsRun
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
799
|
//#endregion
|
|
@@ -809,7 +809,7 @@ function createWorkflowsTryDeployCommand() {
|
|
|
809
809
|
description: "Authored workflow id (preferred) or workflow name. Multiple workflows with the same name run sequentially.",
|
|
810
810
|
key: "workflow"
|
|
811
811
|
},
|
|
812
|
-
loadHandler: async () => (await import("./try-deploy.handler-
|
|
812
|
+
loadHandler: async () => (await import("./try-deploy.handler-A16ahnCF.mjs").then((n) => n.n)).handleWorkflowsTryDeploy
|
|
813
813
|
});
|
|
814
814
|
}
|
|
815
815
|
//#endregion
|
|
@@ -847,7 +847,7 @@ function createWorkflowsValidateCommand() {
|
|
|
847
847
|
key: "workflow",
|
|
848
848
|
required: false
|
|
849
849
|
},
|
|
850
|
-
loadHandler: async () => (await import("./validate.handler-
|
|
850
|
+
loadHandler: async () => (await import("./validate.handler-CUP3SjzC.mjs")).handleWorkflowsValidate
|
|
851
851
|
});
|
|
852
852
|
}
|
|
853
853
|
//#endregion
|
|
@@ -866,14 +866,14 @@ function createWorkflowsCommand() {
|
|
|
866
866
|
description: "Manage, run, inspect, and debug workflows",
|
|
867
867
|
schema: WorkflowsOptionsSchema,
|
|
868
868
|
optionsConfig: WORKFLOWS_OPTIONS_CONFIG,
|
|
869
|
-
loadHandler: async () => (await import("./list.handler-
|
|
869
|
+
loadHandler: async () => (await import("./list.handler-K3x71Y4Z.mjs")).handleWorkflowsList,
|
|
870
870
|
subcommands: [
|
|
871
871
|
createTypedCommand({
|
|
872
872
|
name: "list",
|
|
873
873
|
description: "List all workflows in the project",
|
|
874
874
|
schema: WorkflowsOptionsSchema,
|
|
875
875
|
optionsConfig: WORKFLOWS_OPTIONS_CONFIG,
|
|
876
|
-
loadHandler: async () => (await import("./list.handler-
|
|
876
|
+
loadHandler: async () => (await import("./list.handler-K3x71Y4Z.mjs")).handleWorkflowsList
|
|
877
877
|
}),
|
|
878
878
|
createWorkflowsBuildCommand(),
|
|
879
879
|
createWorkflowsRunCommand(),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { n as __exportAll } from "./chunk-CH6r78ws.mjs";
|
|
4
|
-
import { f as getTriggersDir, n as BUILD_OUTPUT_DIR_NAME, p as getWorkflowArtifactPaths, t as BUILD_DIR_NAME } from "./layout-
|
|
5
|
-
import { t as TriggerBuildManifestSchema } from "./trigger-manifest-
|
|
6
|
-
import { t as __exportAll$1 } from "./rolldown-runtime-twds-ZHy-
|
|
7
|
-
import { s as sha256String } from "./metadata-layout-C6ed-9dl-
|
|
8
|
-
import { t as runWithConcurrency } from "./concurrency-gXn9Rw8x-
|
|
4
|
+
import { f as getTriggersDir, n as BUILD_OUTPUT_DIR_NAME, p as getWorkflowArtifactPaths, t as BUILD_DIR_NAME } from "./layout-DaoP8bcD.mjs";
|
|
5
|
+
import { t as TriggerBuildManifestSchema } from "./trigger-manifest-PTjVYL1r.mjs";
|
|
6
|
+
import { t as __exportAll$1 } from "./rolldown-runtime-twds-ZHy-CO5ir_za.mjs";
|
|
7
|
+
import { s as sha256String } from "./metadata-layout-C6ed-9dl-DCTTsjiG.mjs";
|
|
8
|
+
import { t as runWithConcurrency } from "./concurrency-gXn9Rw8x-BI6HQNfC.mjs";
|
|
9
9
|
import { access, mkdir, readdir, rm, stat, writeFile } from "node:fs/promises";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import { createHash } from "node:crypto";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Command-line interface for creating, managing, and deploying Keystroke automations.",
|
|
6
6
|
"type": "module",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"rolldown": "1.0.0",
|
|
34
34
|
"tsx": "^4.21.0",
|
|
35
35
|
"zod": "^4.3.6",
|
|
36
|
-
"@keystrokehq/skills": "0.0.
|
|
36
|
+
"@keystrokehq/skills": "0.0.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"tsdown": "0.21.10",
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
"@keystroke/env-utils": "0.0.0",
|
|
43
43
|
"@keystroke/local-memory": "0.0.0",
|
|
44
44
|
"@keystroke/project-config": "0.0.1",
|
|
45
|
-
"@keystroke/
|
|
45
|
+
"@keystroke/shared-types": "0.0.3",
|
|
46
|
+
"@keystroke/test-utils": "0.0.2",
|
|
46
47
|
"@keystroke/typescript-config": "0.0.0",
|
|
47
48
|
"@keystroke/utils": "0.0.0",
|
|
48
|
-
"@keystroke/
|
|
49
|
-
"@
|
|
50
|
-
"@keystrokehq/testing": "0.0.
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@keystroke/workflow-sdk": "0.0.
|
|
54
|
-
"@keystrokehq/core": "0.0.5"
|
|
49
|
+
"@keystroke/workflow-builder": "0.0.4",
|
|
50
|
+
"@keystrokehq/core": "0.0.6",
|
|
51
|
+
"@keystrokehq/testing": "0.0.2",
|
|
52
|
+
"@keystrokehq/workflow-build-contracts": "0.0.2",
|
|
53
|
+
"@keystroke/workflow-deploy": "0.0.3",
|
|
54
|
+
"@keystroke/workflow-sdk": "0.0.2"
|
|
55
55
|
},
|
|
56
56
|
"keywords": [
|
|
57
57
|
"automation",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{credential-schema-mismatch-8pqwvswO.mjs → credential-schema-mismatch-CfyBUMPS.mjs}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{metadata-layout-C6ed-9dl-EF5pCtIH.mjs → metadata-layout-C6ed-9dl-DCTTsjiG.mjs}
RENAMED
|
File without changes
|