@keystrokehq/cli 0.0.7 → 0.0.9
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-CudtwdDV.mjs → accept.handler-PpOOUemk.mjs} +3 -3
- package/dist/{admin-ByNq50FH.mjs → admin-Dga-_lDF.mjs} +10 -10
- package/dist/{agents-DbekD_Vx.mjs → agents-DII_JbCa.mjs} +8 -8
- package/dist/{api-keys-kvwq9Jb4.mjs → api-keys-DeTqHzI4.mjs} +6 -6
- package/dist/{auth-D2vYD0E8.mjs → auth-C0fuZ0_P.mjs} +6 -6
- package/dist/{auth.handler-BFnFI2fQ.mjs → auth.handler-BLU7LnW2.mjs} +2 -3
- package/dist/{build-agents-DfbiMZ_e-in-if4_C.mjs → build-agents-DfbiMZ_e-CgnKa9A6.mjs} +5 -5
- package/dist/{build-metadata-zidV9Cai-BAS0FMxT.mjs → build-metadata-zidV9Cai-Bq37kBOM.mjs} +7 -7
- package/dist/{build-progress-Cn2j1LqF.mjs → build-progress-Mzsk4RKr.mjs} +2 -2
- package/dist/{build-tasks-O1jYtlv1-B2Dm4hFj.mjs → build-tasks-O1jYtlv1-Bkw0w1r3.mjs} +3 -3
- package/dist/{build-workflows-3fdvdHHf-Bg5XV7hM.mjs → build-workflows-3fdvdHHf-BDTy9QgT.mjs} +8 -8
- package/dist/{build.handler-BzQRnkC3.mjs → build.handler-D15NjKkT.mjs} +5 -5
- package/dist/{clear.handler-U9n_V1IM.mjs → clear.handler-DgIXlYTs.mjs} +2 -2
- package/dist/{commander-pxSPDCZ4.mjs → commander-B6_tg5_w.mjs} +12 -12
- package/dist/{connect-B_uc0wqI.mjs → connect-D9PVABIW.mjs} +3 -3
- package/dist/{connect.handler-VJgm2ZQG.mjs → connect.handler-BmOVKYSN.mjs} +5 -5
- package/dist/{context-D-YKFNxL.mjs → context-DT06adrn.mjs} +3 -4
- package/dist/{create.handler-d9nfcKfp.mjs → create.handler-BWaULspg.mjs} +3 -3
- package/dist/{credential-requirements-DjDFthio.mjs → credential-requirements-BCW8aQWS.mjs} +3 -3
- package/dist/{credential-schema-mismatch-B-wwbCvw.mjs → credential-schema-mismatch-C-4kBAFw.mjs} +1 -1
- package/dist/{credentials-CL_PCuhM.mjs → credentials-BW-v9xVQ.mjs} +7 -7
- package/dist/{credentials-DHlK_O4L.mjs → credentials-DAQfKqn0.mjs} +7 -7
- package/dist/{current-deployment-workflow-BRYuEubW.mjs → current-deployment-workflow-j5DlVkb2.mjs} +6 -6
- package/dist/{current.handler-vJG2Dohx.mjs → current.handler-CUVgMZ-O.mjs} +1 -1
- package/dist/{declared-credential-requirements-Bwlb-KZE.mjs → declared-credential-requirements-BtlcsEVn.mjs} +1 -1
- package/dist/{delete.handler-RsYTkJLV.mjs → delete.handler-CzW7Rm5M.mjs} +2 -2
- package/dist/{deploy-B_bkUlIL.mjs → deploy-B8TYutOi.mjs} +1 -1
- package/dist/{deploy-BE3F62Mz.mjs → deploy-BU04ehfM.mjs} +2 -2
- package/dist/{deploy-progress-CZ2rPlOj.mjs → deploy-progress-BkpuGfGt.mjs} +1 -1
- package/dist/{deploy.handler-Dlyd8Zqs.mjs → deploy.handler-CbYYyVOg.mjs} +17 -18
- package/dist/{detect-env-access-CwkOYeYM-CsrSOCcj.mjs → detect-env-access-CwkOYeYM-D4o8gRZs.mjs} +1 -1
- package/dist/{diff-utils-DWNcRA8g.mjs → diff-utils-D1jYu6ny.mjs} +1 -1
- package/dist/{diff.handler-CH0xP8pk.mjs → diff.handler-Dtjc7Y4O.mjs} +5 -5
- package/dist/{dist-C2Dq_nx3.mjs → dist-DvO0q6Fo.mjs} +12 -12
- package/dist/{env.handler-BkCO2vjR.mjs → env.handler-DbxnyBYf.mjs} +8 -8
- package/dist/{error-boundary-B9PgBkv8.mjs → error-boundary-D6KTx1HL.mjs} +3 -3
- package/dist/{file-metadata-CdFXMMIw.mjs → file-metadata-BvGM-B2v.mjs} +1 -1
- package/dist/{iam-command-utils-CNC8JfZ5.mjs → iam-command-utils-B5G-N3Hx.mjs} +2 -2
- package/dist/{import-module-DDPnzlJ1-CYJD2n2b.mjs → import-module-DDPnzlJ1-BIBSgOhK.mjs} +8 -8
- package/dist/{init-BXwx0QA4.mjs → init-BITuemMR.mjs} +2 -2
- package/dist/{init.handler-Cs5YXM5Z.mjs → init.handler-HsCte00n.mjs} +5 -5
- package/dist/{inspect.handler-DRMKUJsh.mjs → inspect.handler-Buv68Vm9.mjs} +5 -5
- package/dist/{integration-catalog-ClP7YGqM.mjs → integration-catalog-4T5Yad-n.mjs} +3 -3
- package/dist/{integrations-CoBzLNEe.mjs → integrations-Dib-OfdN.mjs} +5 -5
- package/dist/{invites-BmNy1RHp.mjs → invites-CJtInw9Q.mjs} +5 -5
- package/dist/{invites.list.handler-ICP2V3p4.mjs → invites.list.handler-CBtOq8W4.mjs} +3 -3
- package/dist/{invites.resend.handler-BGaTTMka.mjs → invites.resend.handler-D-E2NxY1.mjs} +3 -3
- package/dist/{invites.revoke.handler-DBwF5Lxc.mjs → invites.revoke.handler-DFTxBZcm.mjs} +3 -3
- package/dist/keystroke.mjs +276 -28
- package/dist/{list-enrichment-CTqx0Rk_.mjs → list-enrichment-Bou_BqL0.mjs} +2 -2
- package/dist/{list.handler-Vv9KmhB9.mjs → list.handler-BFjtABDv.mjs} +4 -4
- package/dist/{list.handler-B2bN8NsQ.mjs → list.handler-BHmG2GY8.mjs} +1 -1
- package/dist/{list.handler-DO0PnyWP.mjs → list.handler-BWGnEnM8.mjs} +3 -3
- package/dist/{list.handler-BXTGPazY.mjs → list.handler-Bi28Gsee.mjs} +5 -5
- package/dist/{list.handler-b4qYQtwn.mjs → list.handler-CXT-te4G.mjs} +3 -3
- package/dist/{list.handler-BjihvxHn.mjs → list.handler-fGaEAMUZ.mjs} +7 -8
- package/dist/{list.handler-rnyzLJDy.mjs → list.handler-gjAg1aM6.mjs} +3 -3
- package/dist/{listen-DVV1fp5c.mjs → listen-_GvXm7iI.mjs} +3 -3
- package/dist/{listen.handler-CyFpUSOu.mjs → listen.handler-BKfcYsfv.mjs} +4 -4
- package/dist/{logs-BRticZ00.mjs → logs-De7ITMv1.mjs} +3 -3
- package/dist/{logs.handler-ddQu_MXN.mjs → logs.handler-CB2FtCvP.mjs} +1 -1
- package/dist/{logs.handler-CsnG7Bb0.mjs → logs.handler-COtiXeqn.mjs} +4 -4
- package/dist/{members.add.handler-CH0RhbgE.mjs → members.add.handler-BXldE_ec.mjs} +3 -3
- package/dist/{members.invite.handler-CYB7RQ9A.mjs → members.invite.handler-CWFsj5Gz.mjs} +3 -3
- package/dist/{members.list.handler-DrDtmMei.mjs → members.list.handler-DFg6VThp.mjs} +3 -3
- package/dist/{members.remove.handler-uGoZt2Me.mjs → members.remove.handler-lStbH_4M.mjs} +3 -3
- package/dist/{members.update.handler-DXCWkzOc.mjs → members.update.handler-CzcdsbtG.mjs} +3 -3
- package/dist/{normalize-path-CojS-CgQ-BKRFUzWW.mjs → normalize-path-CojS-CgQ-D_WTiHKw.mjs} +1 -1
- package/dist/{org-GdHhuSNk.mjs → org-DLY5V_Uw.mjs} +16 -16
- package/dist/{orgs.create.handler-5AaPgTZV.mjs → orgs.create.handler-CiYGUXBZ.mjs} +3 -3
- package/dist/{orgs.get.handler-BTfopRVm.mjs → orgs.get.handler-BgFsnpme.mjs} +3 -3
- package/dist/{orgs.list.handler-DKJgs6x0.mjs → orgs.list.handler-BuyOTc8K.mjs} +3 -3
- package/dist/{output-q4KljAhu.mjs → output-BCDZb3Gy.mjs} +1 -1
- package/dist/{paused.handler-BUifVTyQ.mjs → paused.handler-BX_71fzx.mjs} +3 -3
- package/dist/{projects-Bdl6-Z8l.mjs → projects-DN7dX6nN.mjs} +2 -2
- package/dist/{projects-BjnCG-pc.mjs → projects-lN-4ZR9Q.mjs} +5 -5
- package/dist/{register.handler-WzpvVXHx.mjs → register.handler-BA6p-TmU.mjs} +2 -2
- package/dist/{requirements.handler-coArDE8x.mjs → requirements.handler-DI4mgZ2l.mjs} +7 -8
- package/dist/{resolve-project-DgfftdPm.mjs → resolve-project-BREjwFKO.mjs} +2 -2
- package/dist/{try-deploy.handler-YDOirkk1.mjs → run-polling-BLT-uS2e.mjs} +87 -187
- package/dist/run.handler-B5NodlNi.mjs +136 -0
- package/dist/{runs-2BdRfql3.mjs → runs-BfgL8BR_.mjs} +4 -4
- package/dist/{schemas-DsvCZfF0.mjs → schemas-9FmGqrPT.mjs} +2 -2
- package/dist/{skills-sync.handler-CwwnzDiO.mjs → skills-sync.handler-CuuCiUGT.mjs} +3 -3
- package/dist/{skills.command-C2NXqc5h.mjs → skills.command-z-sOQpkN.mjs} +4 -4
- package/dist/{source-analysis-DEEChuND-eixwPnPP.mjs → source-analysis-DEEChuND-Csu0oOlw.mjs} +3 -3
- package/dist/{spinner-progress-bvKd1jXc.mjs → spinner-progress-BB2EHL-l.mjs} +1 -1
- package/dist/{src-CBL7AJ0H.mjs → src--fCtOxNX.mjs} +1 -1
- package/dist/{status.handler-D9GBEmao.mjs → status.handler-Bh0MtNu1.mjs} +1 -1
- package/dist/{switch.handler-DV0wiJP8.mjs → switch.handler-CSOycIbR.mjs} +2 -2
- package/dist/{sync-D098Vbv2.mjs → sync-CIibxcUe.mjs} +2 -2
- package/dist/{sync.handler-BocldSG_.mjs → sync.handler-D2cY3bia.mjs} +7 -8
- package/dist/{task-DsrXI6XH.mjs → task-1qz1XNq7.mjs} +4 -4
- package/dist/{task-target-build-Di8gflnj.mjs → task-target-build-D5IrHqSl.mjs} +4 -4
- package/dist/{task-target-deploy-Bf5i3ox1-BU16VPsE.mjs → task-target-deploy-Bf5i3ox1-2K0hAwzk.mjs} +1 -1
- package/dist/{task-target-deploy-BzGRNDiv.mjs → task-target-deploy-Bzfftyru.mjs} +1 -1
- package/dist/task-target-deploy-runner.mjs +5 -5
- package/dist/{test-BZt0Duhs.mjs → test-Dsx4cRnE.mjs} +14 -14
- package/dist/{test.handler-iCUotLes.mjs → test.handler-Duqj67Qi.mjs} +1 -1
- package/dist/{trigger-artifacts-B3OCTX9K-Cgt51KLh.mjs → trigger-artifacts-B3OCTX9K-ME6IVdUB.mjs} +4 -4
- package/dist/{trigger-manifest-CXD9I7Rb.mjs → trigger-manifest-B3Gq1739.mjs} +1 -1
- package/dist/try-deploy.handler-Lq69ON02.mjs +169 -0
- package/dist/{upgrade-Bdez-X6_.mjs → upgrade-DQrHCNR8.mjs} +2 -2
- package/dist/{upgrade.handler-DhH_Cuza.mjs → upgrade.handler-B0NxKINA.mjs} +1 -1
- package/dist/{upload.handler-BmqZAPxZ.mjs → upload.handler-BMJiaCzk.mjs} +10 -11
- package/dist/{users.get.handler-uoEgEwI-.mjs → users.get.handler-eJtaB-2G.mjs} +3 -3
- package/dist/{users.list.handler-DLWPOIHD.mjs → users.list.handler-DE6s08i0.mjs} +3 -3
- package/dist/{users.set-role.handler-BCJhTsyb.mjs → users.set-role.handler-BVNvaKKS.mjs} +3 -3
- package/dist/{utils-DlYHjGg9.mjs → utils-C_qCshBA.mjs} +2 -2
- package/dist/{validate.handler-ROzzUI85.mjs → validate.handler-BUga7Umz.mjs} +5 -5
- package/dist/{workflow-build-DD8TLlPu.mjs → workflow-build-Be6RMTb2.mjs} +21 -21
- package/dist/{workflow-bundler-BzHk73PM-Bt-poFqX.mjs → workflow-bundler-BzHk73PM-tt09RbIA.mjs} +2 -2
- package/dist/{workflow-manifest-CAW5FlX0.mjs → workflow-manifest-BfL74mjp.mjs} +4 -4
- package/dist/{workflows-DypSJM0t.mjs → workflows-Cdo-AgjV.mjs} +111 -16
- package/dist/{writer-CtvttJdP-DrJruQgR.mjs → writer-CtvttJdP-DZJ0mZCm.mjs} +5 -5
- package/package.json +5 -5
- package/dist/env-YTZGKGIu.mjs +0 -139
- package/dist/{agent-bundle-package-DWV6B_5q-FPT0bJaA.mjs → agent-bundle-package-DWV6B_5q-B-qzc3zC.mjs} +0 -0
- package/dist/{agent-manifest-Bfa3DBgc.mjs → agent-manifest-sJFbH5H8.mjs} +0 -0
- package/dist/{browser-gddMccBQ.mjs → browser-CvuyMLhI.mjs} +0 -0
- package/dist/{clear-cache.handler-BDV-a3ku.mjs → clear-cache.handler-BuSx_ZDn.mjs} +0 -0
- package/dist/{clear.handler-Dh6QoVO1.mjs → clear.handler-BC6pz0x-.mjs} +0 -0
- package/dist/{common-BrVAdUyD.mjs → common-B3bLe3Mk.mjs} +0 -0
- package/dist/{concurrency-gXn9Rw8x-BTlfau8D.mjs → concurrency-gXn9Rw8x-CnBnF2cg.mjs} +0 -0
- package/dist/{constants-DHdiT5hc.mjs → constants-BUgIAu2a.mjs} +0 -0
- package/dist/{credential-env-map-C8P7uTD-.mjs → credential-env-map-C23GV6LN.mjs} +0 -0
- package/dist/{get-intrinsic-ZMBBjBEr.mjs → get-intrinsic-BjqiGgLt.mjs} +0 -0
- package/dist/{hosted-action-dispatcher-registry-TOVzMhUR.mjs → hosted-action-dispatcher-registry-BWEtn13o.mjs} +0 -0
- package/dist/{layout-B95Tku8F.mjs → layout-CXkZEsXI.mjs} +0 -0
- package/dist/{metadata-layout-C6ed-9dl-aBmqqvD5.mjs → metadata-layout-C6ed-9dl-C6Bylr_z.mjs} +0 -0
- package/dist/{options-BhB9qA5P.mjs → options-CIVqkc8V.mjs} +0 -0
- package/dist/{oxc-B3KI3rf_-BeimiQ2U.mjs → oxc-B3KI3rf_-ghZc3xZ5.mjs} +0 -0
- package/dist/{project-config-opj6DsPF.mjs → project-config-D9eFU8Jk.mjs} +1 -1
- /package/dist/{read-credential-keys-77a91T8M-aLuQvlIq.mjs → read-credential-keys-77a91T8M-B0eiobOd.mjs} +0 -0
- /package/dist/{rolldown-runtime-twds-ZHy-8uqgIurC.mjs → rolldown-runtime-twds-ZHy-RuJszab7.mjs} +0 -0
- /package/dist/{run-polling-CF9OeLWl.mjs → run-polling-DDpkIvwy.mjs} +0 -0
- /package/dist/{schedule-BRN4hzQM.mjs → schedule-BWAI6qLx.mjs} +0 -0
- /package/dist/{schema-kbMHVnhm.mjs → schema-B-Wgo4rJ.mjs} +0 -0
- /package/dist/{schema-Di90TXoX.mjs → schema-BgGlAs8a.mjs} +0 -0
- /package/dist/{schema-display-D4A1gQEM.mjs → schema-display-DuWBmkwk.mjs} +0 -0
- /package/dist/{skills.handler-BTUhxO37.mjs → skills.handler-BQ3Qfej3.mjs} +0 -0
- /package/dist/{source-analysis-BspLa3E5.mjs → source-analysis-CHkWMC40.mjs} +0 -0
- /package/dist/{sync-keystroke-agent-skills-CBMQ4fh_.mjs → sync-keystroke-agent-skills-D746f2W_.mjs} +0 -0
- /package/dist/{upload-B8fiWveA.mjs → upload-C1qFWMm0.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-B0eiobOd.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-D4o8gRZs.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-ME6IVdUB.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-1qz1XNq7.mjs").then((n) => n.t);
|
|
323
323
|
const result = TaskBuildManifestSchema.safeParse(manifest);
|
|
324
324
|
return result.success ? result.data : null;
|
|
325
325
|
}
|
package/dist/{task-target-deploy-Bf5i3ox1-BU16VPsE.mjs → task-target-deploy-Bf5i3ox1-2K0hAwzk.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { r as SHA256HashSchema } from "./common-
|
|
3
|
+
import { r as SHA256HashSchema } from "./common-B3bLe3Mk.mjs";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
//#region ../../packages/shared-types/src/deployments/api/snapshot-payload.ts
|
|
6
6
|
function sortObjectKeysDeep(value) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import "./default-urls-BS4twrsS.mjs";
|
|
4
4
|
import { l as resolveAuthOptions } from "./dist-BF6r1hfv.mjs";
|
|
5
|
-
import { n as findProjectRoot, t as assertWorkflowProjectRoot } from "./project-config-
|
|
5
|
+
import { n as findProjectRoot, t as assertWorkflowProjectRoot } from "./project-config-D9eFU8Jk.mjs";
|
|
6
6
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { spawnSync } from "node:child_process";
|
|
@@ -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-D5IrHqSl.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-D5IrHqSl.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-B8TYutOi.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-Bzfftyru.mjs");
|
|
166
166
|
const result = await deployTaskTargets({
|
|
167
167
|
preparedTasks: descriptor.preparedTasks,
|
|
168
168
|
client,
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { M as throwReportedCliExit, O as CliExitError, b as toErrorMessage, i as getProcessEnv, t as ui } from "./keystroke.mjs";
|
|
4
4
|
import { l as resolveAuthOptions } from "./dist-BF6r1hfv.mjs";
|
|
5
|
-
import { t as assertWorkflowProjectRoot } from "./project-config-
|
|
6
|
-
import { i as writeJson, n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-
|
|
7
|
-
import { t as createTypedCommand } from "./commander-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { a as
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
5
|
+
import { t as assertWorkflowProjectRoot } from "./project-config-D9eFU8Jk.mjs";
|
|
6
|
+
import { i as writeJson, n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-BCDZb3Gy.mjs";
|
|
7
|
+
import { t as createTypedCommand } from "./commander-B6_tg5_w.mjs";
|
|
8
|
+
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-DT06adrn.mjs";
|
|
9
|
+
import { a as readManifestsFromOutDir } from "./dist-DvO0q6Fo.mjs";
|
|
10
|
+
import { t as requireWorkflowsDir } from "./resolve-project-BREjwFKO.mjs";
|
|
11
|
+
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-BWEtn13o.mjs";
|
|
12
|
+
import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-Be6RMTb2.mjs";
|
|
13
|
+
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-j5DlVkb2.mjs";
|
|
14
|
+
import { n as WorkflowsRunOptionsSchema, t as RUN_OPTIONS_CONFIG } from "./options-CIVqkc8V.mjs";
|
|
15
|
+
import { t as handleWorkflowsTryDeploy } from "./try-deploy.handler-Lq69ON02.mjs";
|
|
16
|
+
import { n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-BLT-uS2e.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";
|
|
20
|
-
import { z } from "zod";
|
|
21
20
|
import { pathToFileURL } from "node:url";
|
|
21
|
+
import { z } from "zod";
|
|
22
22
|
//#region ../../packages/core/src/test-runtime/credentials/env-resolver.ts
|
|
23
23
|
/**
|
|
24
24
|
* Computes the env var name for a credential key.
|
|
@@ -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-DT06adrn.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-Cgt51KLh.mjs → trigger-artifacts-B3OCTX9K-ME6IVdUB.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { n as readOptionalJsonSchemaKeys } from "./declared-credential-requirements-
|
|
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-
|
|
3
|
+
import { n as readOptionalJsonSchemaKeys } from "./declared-credential-requirements-BtlcsEVn.mjs";
|
|
4
|
+
import { t as __exportAll } from "./rolldown-runtime-twds-ZHy-RuJszab7.mjs";
|
|
5
|
+
import { t as readCredentialKeysFromSchemaObject } from "./read-credential-keys-77a91T8M-B0eiobOd.mjs";
|
|
6
|
+
import { r as formatEnvAccessError, t as createEnvAccessPlugin } from "./detect-env-access-CwkOYeYM-D4o8gRZs.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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { c as TriggerTypeSchema, o as TriggerCredentialRequirementsSchema, s as TriggerSourceSchema, u as WebhookMethodSchema } from "./credential-requirements-
|
|
3
|
+
import { c as TriggerTypeSchema, o as TriggerCredentialRequirementsSchema, s as TriggerSourceSchema, u as WebhookMethodSchema } from "./credential-requirements-BCW8aQWS.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region ../../packages/shared-types/src/workflows/build-output/trigger-manifest.ts
|
|
6
6
|
const TriggerBuildFunctionSchema = z.object({
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { n as __exportAll } from "./chunk-CH6r78ws.mjs";
|
|
4
|
+
import { O as CliExitError, a as isLocalMode, b as toErrorMessage, t as ui } from "./keystroke.mjs";
|
|
5
|
+
import { d as trackProject } from "./dist-BF6r1hfv.mjs";
|
|
6
|
+
import { t as assertWorkflowProjectRoot } from "./project-config-D9eFU8Jk.mjs";
|
|
7
|
+
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-DT06adrn.mjs";
|
|
8
|
+
import { o as readWorkflowsFromDisk, s as uploadTestBundle } from "./dist-DvO0q6Fo.mjs";
|
|
9
|
+
import { t as requireWorkflowsDir } from "./resolve-project-BREjwFKO.mjs";
|
|
10
|
+
import { a as runWorkflowBuild, t as WorkflowNotFoundError } from "./workflow-build-Be6RMTb2.mjs";
|
|
11
|
+
import { r as isUnknownSchema } from "./schema-display-DuWBmkwk.mjs";
|
|
12
|
+
import { t as createBuildProgress } from "./build-progress-Mzsk4RKr.mjs";
|
|
13
|
+
import { t as withErrorBoundary } from "./error-boundary-D6KTx1HL.mjs";
|
|
14
|
+
import { a as tryReadExistingInputSchema, n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-BLT-uS2e.mjs";
|
|
15
|
+
//#region src/lib/format.ts
|
|
16
|
+
function formatBytes(bytes) {
|
|
17
|
+
if (bytes < 1024) return `${bytes} B`;
|
|
18
|
+
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
19
|
+
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/commands/workflows/_shared/run-helpers.ts
|
|
23
|
+
/**
|
|
24
|
+
* Resolve input and validate against existing schema if available.
|
|
25
|
+
* Returns input and workflowsDir for downstream use.
|
|
26
|
+
*/
|
|
27
|
+
async function resolveAndValidateInputForRun(options) {
|
|
28
|
+
const input = await resolveInput(options);
|
|
29
|
+
const workflowsDir = await requireWorkflowsDir(options.path);
|
|
30
|
+
trackProject(workflowsDir);
|
|
31
|
+
const existingSchema = await tryReadExistingInputSchema(workflowsDir, options.workflow);
|
|
32
|
+
if (existingSchema && !isUnknownSchema(existingSchema)) validateInputOrExit(options.workflow, input, existingSchema);
|
|
33
|
+
return {
|
|
34
|
+
input,
|
|
35
|
+
workflowsDir
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Build workflow(s) for run using the standard build pipeline, then read
|
|
40
|
+
* prepared artifacts from disk filtered by workflow ref.
|
|
41
|
+
*/
|
|
42
|
+
async function buildWorkflowsForRun(options) {
|
|
43
|
+
const progress = createBuildProgress(options.workflow);
|
|
44
|
+
try {
|
|
45
|
+
const { result, outDir } = await runWorkflowBuild({
|
|
46
|
+
workflowsDir: options.workflowsDir,
|
|
47
|
+
workflowRef: options.workflow,
|
|
48
|
+
verbose: options.verbose,
|
|
49
|
+
onProgressEvent: progress.handleEvent
|
|
50
|
+
});
|
|
51
|
+
const filtered = (await readWorkflowsFromDisk(outDir)).filter((wf) => wf.manifestData.id === options.workflow || wf.name === options.workflow);
|
|
52
|
+
if (filtered.length === 0) {
|
|
53
|
+
const availableNames = result.artifacts.map((a) => a.manifest.name);
|
|
54
|
+
throw new WorkflowNotFoundError(options.workflow, availableNames);
|
|
55
|
+
}
|
|
56
|
+
return filtered;
|
|
57
|
+
} finally {
|
|
58
|
+
progress.stop();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Validate input against the first build's input schema if available.
|
|
63
|
+
*/
|
|
64
|
+
function validateInputWithFirstBuild(options, input, builds) {
|
|
65
|
+
const inputSchema = builds[0]?.manifestData.workflowSchemas.input;
|
|
66
|
+
if (inputSchema && typeof inputSchema === "object" && !isUnknownSchema(inputSchema)) validateInputOrExit(options.workflow, input, inputSchema);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Render success message after build.
|
|
70
|
+
*/
|
|
71
|
+
function renderBuildSuccessMessage(builds) {
|
|
72
|
+
const first = builds[0];
|
|
73
|
+
if (!first) return;
|
|
74
|
+
if (builds.length > 1) ui.success(`Built ${builds.length} workflow(s) with name "${first.name}"`);
|
|
75
|
+
else ui.success(`Built ${first.name} (${formatBytes(first.bundleSize)})`);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Render completion success message (single or multi).
|
|
79
|
+
*/
|
|
80
|
+
function renderRunCompletionSuccessMessage(builds, elapsedSeconds) {
|
|
81
|
+
if (builds.length === 0) return;
|
|
82
|
+
if (builds.length > 1) ui.success(`All ${builds.length} workflow(s) completed in ${elapsedSeconds}s`);
|
|
83
|
+
else ui.success(`Workflow completed in ${elapsedSeconds}s`);
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/commands/workflows/try-deploy.handler/index.ts
|
|
87
|
+
var try_deploy_handler_exports = /* @__PURE__ */ __exportAll({ handleWorkflowsTryDeploy: () => handleWorkflowsTryDeploy });
|
|
88
|
+
async function handleWorkflowsTryDeploy(options, ctx) {
|
|
89
|
+
return withErrorBoundary("Try-deploy", async () => {
|
|
90
|
+
const client = requireClient(ctx);
|
|
91
|
+
const startTime = Date.now();
|
|
92
|
+
const local = isLocalMode();
|
|
93
|
+
const { input, workflowsDir } = await resolveAndValidateInputForRun(options);
|
|
94
|
+
const storagePaths = [];
|
|
95
|
+
let runError;
|
|
96
|
+
try {
|
|
97
|
+
const builds = await buildWorkflowsForRun({
|
|
98
|
+
...options,
|
|
99
|
+
workflowsDir
|
|
100
|
+
});
|
|
101
|
+
renderBuildSuccessMessage(builds);
|
|
102
|
+
validateInputWithFirstBuild(options, input, builds);
|
|
103
|
+
const projectConfig = await assertWorkflowProjectRoot(workflowsDir);
|
|
104
|
+
await assertProjectConfigMatchesAuthenticatedOrg(client, projectConfig);
|
|
105
|
+
for (const [i, build] of builds.entries()) {
|
|
106
|
+
if (builds.length > 1) ui.header(`Running "${build.name}" (${i + 1}/${builds.length})...`);
|
|
107
|
+
let storagePath;
|
|
108
|
+
if (local) {
|
|
109
|
+
storagePath = build.bundlePath;
|
|
110
|
+
if (i === 0) ui.hint("Local mode: using bundle from build output (skipping upload)");
|
|
111
|
+
} else {
|
|
112
|
+
ui.header("Uploading test bundle...");
|
|
113
|
+
storagePath = (await uploadTestBundle(client, build, false)).storagePath;
|
|
114
|
+
storagePaths.push(storagePath);
|
|
115
|
+
ui.success("Upload complete");
|
|
116
|
+
}
|
|
117
|
+
ui.header("Executing workflow...");
|
|
118
|
+
const { runId } = await client.workflows.testById({
|
|
119
|
+
workflowName: build.name,
|
|
120
|
+
storagePath,
|
|
121
|
+
exportName: build.exportName,
|
|
122
|
+
manifest: build.manifestData,
|
|
123
|
+
flowJson: build.flowData,
|
|
124
|
+
triggers: build.triggers,
|
|
125
|
+
bundleHash: build.bundleHash,
|
|
126
|
+
bundleSize: build.bundleSize,
|
|
127
|
+
args: [input],
|
|
128
|
+
organizationId: projectConfig.organizationId,
|
|
129
|
+
projectId: projectConfig.projectId
|
|
130
|
+
});
|
|
131
|
+
ui.hint(`Run ID: ${runId}`);
|
|
132
|
+
const snapshot = await pollForCompletion(client, runId, options.timeout, options.verbose);
|
|
133
|
+
const elapsed = ((Date.now() - startTime) / 1e3).toFixed(1);
|
|
134
|
+
if (snapshot.run.status === "completed") {
|
|
135
|
+
if (snapshot.run.output !== void 0 && snapshot.run.output !== null) {
|
|
136
|
+
ui.br();
|
|
137
|
+
ui.header("Output:");
|
|
138
|
+
ui.text(JSON.stringify(snapshot.run.output, null, 2));
|
|
139
|
+
}
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
if (snapshot.run.status === "failed") {
|
|
143
|
+
ui.br();
|
|
144
|
+
ui.error(`Workflow failed after ${elapsed}s`);
|
|
145
|
+
if (snapshot.run.error) ui.error(toErrorMessage(snapshot.run.error));
|
|
146
|
+
runError = snapshot.run.error ?? /* @__PURE__ */ new Error("Workflow failed");
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
ui.br();
|
|
150
|
+
ui.warn(`Workflow still ${snapshot.run.status} after ${elapsed}s (timeout: ${options.timeout}s)`);
|
|
151
|
+
ui.hint(`Check status: keystroke runs get ${runId}`);
|
|
152
|
+
runError = /* @__PURE__ */ new Error(`Workflow still ${snapshot.run.status} after timeout`);
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
if (!runError) {
|
|
156
|
+
ui.br();
|
|
157
|
+
renderRunCompletionSuccessMessage(builds, ((Date.now() - startTime) / 1e3).toFixed(1));
|
|
158
|
+
}
|
|
159
|
+
} finally {
|
|
160
|
+
if (!local) for (const sp of storagePaths) try {
|
|
161
|
+
await client.workflows.deleteTestBundle({ storagePath: sp });
|
|
162
|
+
if (options.verbose) ui.hint("Test bundle cleaned up");
|
|
163
|
+
} catch {}
|
|
164
|
+
}
|
|
165
|
+
if (runError) throw new CliExitError("Workflow execution failed");
|
|
166
|
+
}, { json: ctx.jsonMode });
|
|
167
|
+
}
|
|
168
|
+
//#endregion
|
|
169
|
+
export { try_deploy_handler_exports as n, handleWorkflowsTryDeploy as t };
|
|
@@ -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-B6_tg5_w.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-B0NxKINA.mjs")).handleUpgrade
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { M as throwReportedCliExit, b as toErrorMessage, t as ui } from "./keystroke.mjs";
|
|
4
4
|
import { spawn } from "node:child_process";
|
|
5
5
|
//#region src/commands/upgrade/upgrade.handler.ts
|
|
6
6
|
const CLI_PACKAGE_NAME = "@keystrokehq/cli";
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { t as assertWorkflowProjectRoot } from "./project-config-
|
|
5
|
-
import { a as writeJsonError, i as writeJson } from "./output-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { n as renderCredentialSchemaMismatchText, r as writeCredentialSchemaMismatchJson, t as isCredentialSchemaMismatchErrorLike } from "./credential-schema-mismatch-B-wwbCvw.mjs";
|
|
3
|
+
import { M as throwReportedCliExit, b as toErrorMessage, i as getProcessEnv, t as ui } from "./keystroke.mjs";
|
|
4
|
+
import { t as assertWorkflowProjectRoot } from "./project-config-D9eFU8Jk.mjs";
|
|
5
|
+
import { a as writeJsonError, i as writeJson } from "./output-BCDZb3Gy.mjs";
|
|
6
|
+
import { i as requireClient } from "./context-DT06adrn.mjs";
|
|
7
|
+
import { a as readManifestsFromOutDir, t as collectCredentialFingerprintMapFromProjectDist } from "./dist-DvO0q6Fo.mjs";
|
|
8
|
+
import { t as requireWorkflowsDir } from "./resolve-project-BREjwFKO.mjs";
|
|
9
|
+
import { a as verifyCredentialResolvable, i as validateManualCredentialWithHook, n as resolveCredentialValuesFromEnv, r as uploadCredential, t as groupCredentialRequirements } from "./credentials-DAQfKqn0.mjs";
|
|
10
|
+
import { t as getIntegrationCatalog } from "./integration-catalog-4T5Yad-n.mjs";
|
|
11
|
+
import { t as readCredentialEnvMap } from "./credential-env-map-C23GV6LN.mjs";
|
|
12
|
+
import { n as renderCredentialSchemaMismatchText, r as writeCredentialSchemaMismatchJson, t as isCredentialSchemaMismatchErrorLike } from "./credential-schema-mismatch-C-4kBAFw.mjs";
|
|
14
13
|
import * as path$1 from "node:path";
|
|
15
14
|
import { confirm, isCancel } from "@clack/prompts";
|
|
16
15
|
//#region src/commands/credentials/upload/upload.handler.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { t as ui } from "./keystroke.mjs";
|
|
4
|
-
import { i as writeJson } from "./output-
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
6
|
-
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-
|
|
4
|
+
import { i as writeJson } from "./output-BCDZb3Gy.mjs";
|
|
5
|
+
import { i as requireClient } from "./context-DT06adrn.mjs";
|
|
6
|
+
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-B5G-N3Hx.mjs";
|
|
7
7
|
//#region src/commands/admin/users.get.handler.ts
|
|
8
8
|
async function handleAdminUsersGet(options, ctx) {
|
|
9
9
|
const client = requireClient(ctx);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { t as ui } from "./keystroke.mjs";
|
|
4
|
-
import { i as writeJson } from "./output-
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
6
|
-
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-
|
|
4
|
+
import { i as writeJson } from "./output-BCDZb3Gy.mjs";
|
|
5
|
+
import { i as requireClient } from "./context-DT06adrn.mjs";
|
|
6
|
+
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-B5G-N3Hx.mjs";
|
|
7
7
|
import Table from "cli-table3";
|
|
8
8
|
//#region src/commands/admin/users.list.handler.ts
|
|
9
9
|
async function handleAdminUsersList(options, ctx) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { t as ui } from "./keystroke.mjs";
|
|
4
|
-
import { i as writeJson } from "./output-
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
6
|
-
import { n as isIamJsonMode, r as requireConfirmation, t as handleIamError } from "./iam-command-utils-
|
|
4
|
+
import { i as writeJson } from "./output-BCDZb3Gy.mjs";
|
|
5
|
+
import { i as requireClient } from "./context-DT06adrn.mjs";
|
|
6
|
+
import { n as isIamJsonMode, r as requireConfirmation, t as handleIamError } from "./iam-command-utils-B5G-N3Hx.mjs";
|
|
7
7
|
//#region src/commands/admin/users.set-role.handler.ts
|
|
8
8
|
async function handleAdminUsersSetRole(options, ctx) {
|
|
9
9
|
const client = requireClient(ctx);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { i as readProjectConfig } from "./project-config-
|
|
4
|
-
import { h as resolveBuildOutputDir } from "./layout-
|
|
3
|
+
import { i as readProjectConfig } from "./project-config-D9eFU8Jk.mjs";
|
|
4
|
+
import { h as resolveBuildOutputDir } from "./layout-CXkZEsXI.mjs";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
//#region ../../packages/project-config/src/utils.ts
|
|
7
7
|
function resolveConfiguredBuildOutputDir(projectRoot, buildConfig) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { M as throwReportedCliExit, b as toErrorMessage, t as ui } from "./keystroke.mjs";
|
|
4
4
|
import { d as trackProject } from "./dist-BF6r1hfv.mjs";
|
|
5
|
-
import { i as writeJson } from "./output-
|
|
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-
|
|
5
|
+
import { i as writeJson } from "./output-BCDZb3Gy.mjs";
|
|
6
|
+
import { t as requireWorkflowsDir } from "./resolve-project-BREjwFKO.mjs";
|
|
7
|
+
import { s as build, t as WorkflowNotFoundError } from "./workflow-build-Be6RMTb2.mjs";
|
|
8
|
+
import { t as createBuildProgress } from "./build-progress-Mzsk4RKr.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";
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { i as __toESM, n as __exportAll } from "./chunk-CH6r78ws.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { b as toErrorMessage, d as ANSI, f as style, l as logger, t as ui, u as originalConsole } from "./keystroke.mjs";
|
|
5
5
|
import { a as getKeystrokeTmpDir } from "./dist-BF6r1hfv.mjs";
|
|
6
|
-
import { t as assertWorkflowProjectRoot } from "./project-config-
|
|
7
|
-
import { a as FlowGraphSchema, i as WorkflowManifestSchema } from "./workflow-manifest-
|
|
8
|
-
import { t as AgentVersionManifestSchema } from "./agent-manifest-
|
|
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-DDPnzlJ1-
|
|
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-DEEChuND-
|
|
18
|
-
import { n as parseRelativeFilePath } from "./normalize-path-CojS-CgQ-
|
|
6
|
+
import { t as assertWorkflowProjectRoot } from "./project-config-D9eFU8Jk.mjs";
|
|
7
|
+
import { a as FlowGraphSchema, i as WorkflowManifestSchema } from "./workflow-manifest-BfL74mjp.mjs";
|
|
8
|
+
import { t as AgentVersionManifestSchema } from "./agent-manifest-sJFbH5H8.mjs";
|
|
9
|
+
import { r as RelativeFilePathSchema } from "./file-metadata-BvGM-B2v.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-CXkZEsXI.mjs";
|
|
11
|
+
import { t as resolveConfiguredBuildOutputDir } from "./utils-C_qCshBA.mjs";
|
|
12
|
+
import { a as readAgentSandboxPackage, r as AGENT_VM_TOOLS_RUNTIME_RELATIVE_PATH } from "./agent-bundle-package-DWV6B_5q-B-qzc3zC.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-C6Bylr_z.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-DZJ0mZCm.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-DDPnzlJ1-BIBSgOhK.mjs";
|
|
16
|
+
import { a as literalString, n as identifierName, o as parseSourceFile, r as isNode } from "./oxc-B3KI3rf_-ghZc3xZ5.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-DEEChuND-Csu0oOlw.mjs";
|
|
18
|
+
import { n as parseRelativeFilePath } from "./normalize-path-CojS-CgQ-D_WTiHKw.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";
|
|
22
22
|
import path from "node:path";
|
|
23
|
-
import { z } from "zod";
|
|
24
23
|
import { fileURLToPath } from "node:url";
|
|
24
|
+
import { z } from "zod";
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { performance } from "node:perf_hooks";
|
|
27
27
|
//#region ../../packages/core/dist/flow-graph-toolkit/index.mjs
|
|
@@ -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-BDTy9QgT.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-CgnKa9A6.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-Bkw0w1r3.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-BDTy9QgT.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-DZJ0mZCm.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-zidV9Cai-
|
|
1336
|
+
const { buildMetadataArtifacts } = await import("./build-metadata-zidV9Cai-Bq37kBOM.mjs");
|
|
1337
1337
|
const metadata = await buildMetadataArtifacts({
|
|
1338
1338
|
projectRoot: config.projectRoot,
|
|
1339
1339
|
outputDir,
|
package/dist/{workflow-bundler-BzHk73PM-Bt-poFqX.mjs → workflow-bundler-BzHk73PM-tt09RbIA.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_-ghZc3xZ5.mjs";
|
|
4
|
+
import { r as formatEnvAccessError, t as createEnvAccessPlugin } from "./detect-env-access-CwkOYeYM-D4o8gRZs.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,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { r as SHA256HashSchema, t as JsonSchemaSchema } from "./common-
|
|
4
|
-
import { a as ResolvedCredentialSetSchema, c as TriggerTypeSchema, d as WorkflowStepEntrySchema, i as IntegrationScopeSchema, l as TriggerUploadDataSchema, t as CredentialRequirementsSchema } from "./credential-requirements-
|
|
5
|
-
import { a as SourceLocationSchema, i as ImportSourceSchema, n as CallsiteFingerprintSchema, t as CallKindSchema } from "./source-analysis-
|
|
6
|
-
import { t as DurationSchema } from "./schedule-
|
|
3
|
+
import { r as SHA256HashSchema, t as JsonSchemaSchema } from "./common-B3bLe3Mk.mjs";
|
|
4
|
+
import { a as ResolvedCredentialSetSchema, c as TriggerTypeSchema, d as WorkflowStepEntrySchema, i as IntegrationScopeSchema, l as TriggerUploadDataSchema, t as CredentialRequirementsSchema } from "./credential-requirements-BCW8aQWS.mjs";
|
|
5
|
+
import { a as SourceLocationSchema, i as ImportSourceSchema, n as CallsiteFingerprintSchema, t as CallKindSchema } from "./source-analysis-CHkWMC40.mjs";
|
|
6
|
+
import { t as DurationSchema } from "./schedule-BWAI6qLx.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
//#region ../../packages/core/src/artifacts/flow-graph-schema.ts
|
|
9
9
|
const DecisionKindSchema = z.enum([
|