@keystrokehq/cli 0.0.1 → 0.0.3
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/AGENTS-blurb.md +1 -1
- package/LICENSE +0 -21
- package/README.md +14 -6
- package/dist/accept.handler-DFtM0IuO.mjs +22 -0
- package/dist/admin-D_7tenRC.mjs +208 -0
- package/dist/{agent-manifest-CDnbkR2f.mjs → agent-manifest-Bfa3DBgc.mjs} +4 -4
- package/dist/{agents-CZJGxVqV.mjs → agents-DMEo-6QB.mjs} +8 -8
- package/dist/api-keys-BThGvtdn.mjs +58 -0
- package/dist/{auth-DN2VusyU.mjs → auth-CY0Gg9sN.mjs} +7 -11
- package/dist/{auth.handler-CT1BQUvu.mjs → auth.handler-CbhiLOG1.mjs} +83 -8
- package/dist/{build-agents-BmM_AsSd-BGi9wtzt.mjs → build-agents-DfbiMZ_e-CRnzruSu.mjs} +7 -7
- package/dist/{build-metadata-BWS7uhd_-DR8gJjTX.mjs → build-metadata-zidV9Cai-RgG4ndIH.mjs} +11 -11
- package/dist/{build-progress-DgYKb4hB.mjs → build-progress-Cn2j1LqF.mjs} +1 -1
- package/dist/{build-tasks-CdihpudT-D5r5HUHe.mjs → build-tasks-O1jYtlv1-Y65uGWuz.mjs} +4 -5
- package/dist/{build-workflows-CfxBnIWh-CdYPv8w2.mjs → build-workflows-3fdvdHHf-DJ_lH1NH.mjs} +9 -9
- package/dist/{build.handler-4799CjWH.mjs → build.handler-Tb3IpABI.mjs} +5 -5
- package/dist/{clear-cache.handler-B9tqSoSM.mjs → clear-cache.handler-BEbPz5Ej.mjs} +1 -1
- package/dist/{clear.handler-BydlX-zE.mjs → clear.handler-CtOZ4aRn.mjs} +1 -1
- package/dist/{clear.handler-BTIXXPTJ.mjs → clear.handler-YS8gPriq.mjs} +2 -2
- package/dist/{commander-DfTVqQ-3.mjs → commander-DZ3F3CVq.mjs} +6 -5
- package/dist/common-BrVAdUyD.mjs +20 -0
- package/dist/{connect-BUXkeH0F.mjs → connect-DpQgYg8z.mjs} +3 -3
- package/dist/{connect.handler-CYel9cy6.mjs → connect.handler-DuRr_yyN.mjs} +5 -5
- package/dist/{context-T7HZuB97.mjs → context-Y1f1hGYy.mjs} +7 -7
- package/dist/create.handler-uNG3I4wS.mjs +24 -0
- package/dist/credential-requirements-DjDFthio.mjs +480 -0
- package/dist/{credential-schema-mismatch-BKo5PjcQ.mjs → credential-schema-mismatch-B-wwbCvw.mjs} +2 -2
- package/dist/{credentials-OfVHOtG3.mjs → credentials-DHlK_O4L.mjs} +823 -14
- package/dist/{credentials-CvmjU0lK.mjs → credentials-UpgEcaub.mjs} +7 -7
- package/dist/{current-deployment-workflow-poHt27i3.mjs → current-deployment-workflow-M8GEIHxv.mjs} +5 -5
- package/dist/{current.handler-B8zKzfPp.mjs → current.handler-BqPUKCvn.mjs} +1 -1
- package/dist/declared-credential-requirements-Bwlb-KZE.mjs +132 -0
- package/dist/default-urls-BS4twrsS.mjs +7 -0
- package/dist/{delete.handler-bAu1iXVQ.mjs → delete.handler-CJTHVZaz.mjs} +1 -1
- package/dist/{deploy-7Jjls436.mjs → deploy-CdnaZY3s.mjs} +1 -1
- package/dist/{deploy-BOPIpRWm.mjs → deploy-Gw0KPrkf.mjs} +2 -2
- package/dist/{deploy-progress-BmGUNFKg.mjs → deploy-progress-CZ2rPlOj.mjs} +1 -1
- package/dist/{deploy.handler-BAzgiNhd.mjs → deploy.handler-zzFAt7pp.mjs} +18 -18
- package/dist/{detect-env-access-CwkOYeYM-D_BCZqV6.mjs → detect-env-access-CwkOYeYM-h2W05D_Q.mjs} +1 -1
- package/dist/{diff.handler-Du7SY8K4.mjs → diff.handler--zdSkUnK.mjs} +5 -5
- package/dist/{dist-CUK7yBM0.mjs → dist-BF6r1hfv.mjs} +3 -3
- package/dist/{dist-BkJUoBiG.mjs → dist-C2Dq_nx3.mjs} +12 -12
- package/dist/{env-91KwMKov.mjs → env-YTZGKGIu.mjs} +9 -10
- package/dist/{env.handler-BAzBuMzQ.mjs → env.handler-d4sJ706C.mjs} +8 -8
- package/dist/{error-boundary-VL-JLfIa.mjs → error-boundary-B9PgBkv8.mjs} +2 -2
- package/dist/{file-metadata-D1vm-XY2.mjs → file-metadata-CdFXMMIw.mjs} +1 -1
- package/dist/hosted-action-dispatcher-registry-TOVzMhUR.mjs +126 -0
- package/dist/iam-command-utils-CNC8JfZ5.mjs +72 -0
- package/dist/{import-module-CV84H5fZ-B_CBCmb4.mjs → import-module-DDPnzlJ1-CYJD2n2b.mjs} +395 -10
- package/dist/{init-DpMCotSK.mjs → init-C0sps8R7.mjs} +2 -2
- package/dist/{init.handler-CPRnif52.mjs → init.handler-DSW6XFZn.mjs} +17 -17
- package/dist/{inspect.handler-DT_cD036.mjs → inspect.handler-DbN0ZVTh.mjs} +5 -5
- package/dist/{integration-catalog-Bt-L3GjF.mjs → integration-catalog-DFlytKJS.mjs} +2 -2
- package/dist/{integrations-DlatPK4W.mjs → integrations-Dcadds2b.mjs} +5 -5
- package/dist/invites-DvsxTRAb.mjs +44 -0
- package/dist/invites.list.handler-B5quln3m.mjs +43 -0
- package/dist/invites.resend.handler-CSpj7bQ5.mjs +23 -0
- package/dist/invites.revoke.handler-_hdEkBdO.mjs +28 -0
- package/dist/keystroke.mjs +31 -22
- package/dist/{list-enrichment-y-cwizLr.mjs → list-enrichment-CTqx0Rk_.mjs} +1 -1
- package/dist/{list.handler-CWF_Dj15.mjs → list.handler-08GY-wnx.mjs} +1 -1
- package/dist/{list.handler-DWaQkJaR.mjs → list.handler-20v4uRMk.mjs} +2 -2
- package/dist/{list.handler-BTWvCyjA.mjs → list.handler-BRq-nScx.mjs} +5 -5
- package/dist/{list.handler-lq3ZGAn4.mjs → list.handler-CWO6DExh.mjs} +3 -3
- package/dist/{list.handler-CZ6G2x_G.mjs → list.handler-DAiJtW20.mjs} +3 -3
- package/dist/list.handler-DLl8ca6F.mjs +42 -0
- package/dist/{list.handler-DqbFcBW7.mjs → list.handler-DSPr0OxS.mjs} +7 -7
- package/dist/{logs-BEg9L5l8.mjs → logs-D_48skmi.mjs} +3 -3
- package/dist/{logs.handler-BD_dXiL1.mjs → logs.handler-4ctMVYMj.mjs} +3 -3
- package/dist/{logs.handler-6hoMBzqw.mjs → logs.handler-C3QnSCaH.mjs} +1 -1
- package/dist/members.add.handler-Dq_giQ8g.mjs +31 -0
- package/dist/members.invite.handler-v404bUsq.mjs +32 -0
- package/dist/members.list.handler-D6TE0yp8.mjs +43 -0
- package/dist/members.remove.handler-BhQ3cyeR.mjs +28 -0
- package/dist/members.update.handler-BVy2cv1K.mjs +28 -0
- package/dist/{metadata-layout-GUYIUo0i-_aG2zjue.mjs → metadata-layout-C6ed-9dl-aBmqqvD5.mjs} +2 -2
- package/dist/{normalize-path-CojS-CgQ-DLCOvnD1.mjs → normalize-path-CojS-CgQ-BKRFUzWW.mjs} +1 -1
- package/dist/org-CkRr-f3S.mjs +234 -0
- package/dist/orgs.create.handler-swGnT2ce.mjs +26 -0
- package/dist/orgs.get.handler-ClAqYTH0.mjs +28 -0
- package/dist/orgs.list.handler-D-ptz8It.mjs +41 -0
- package/dist/{paused.handler-BMFm9Cff.mjs → paused.handler-B3aVqw-m.mjs} +2 -2
- package/dist/{project-config-D1qsQlO7.mjs → project-config-opj6DsPF.mjs} +2 -2
- package/dist/{projects-CHkRE9rS.mjs → projects-Bdl6-Z8l.mjs} +2 -2
- package/dist/{projects-Cjb7sovS.mjs → projects-yA9AAaDM.mjs} +5 -5
- package/dist/{register.handler-BPCdor1_.mjs → register.handler-WzpvVXHx.mjs} +1 -1
- package/dist/{requirements.handler-DPXdSks3.mjs → requirements.handler-coArDE8x.mjs} +7 -7
- package/dist/{resolve-project-DDJ29sCF.mjs → resolve-project-DgfftdPm.mjs} +2 -2
- package/dist/{runs-D9hNLb9A.mjs → runs-B8mW4PqP.mjs} +3 -3
- package/dist/schedule-BRN4hzQM.mjs +505 -0
- package/dist/schema-_FQrHcIS.mjs +17 -0
- package/dist/schema-kbMHVnhm.mjs +81 -0
- package/dist/schemas-DsvCZfF0.mjs +42 -0
- package/dist/{skills-sync.handler-DIy8GR16.mjs → skills-sync.handler-C2faeat-.mjs} +2 -2
- package/dist/{skills.command-CrjI2dN9.mjs → skills.command-DWxcc3Ui.mjs} +4 -4
- package/dist/source-analysis-BspLa3E5.mjs +75 -0
- package/dist/{source-analysis-Cj-ADyu--BJQcFPCG.mjs → source-analysis-DEEChuND-eixwPnPP.mjs} +5 -5
- package/dist/{src-eHwu-Gfw.mjs → src-J09NGJ6Z.mjs} +42 -6
- package/dist/{switch.handler-D_9213Vf.mjs → switch.handler-C4hgbhcH.mjs} +2 -2
- package/dist/{sync-BL_Mo5st.mjs → sync-CL6zXiiA.mjs} +2 -2
- package/dist/{sync.handler-BUFPdzWz.mjs → sync.handler-D1uF8E8I.mjs} +8 -8
- package/dist/{schemas-CDib1RhE.mjs → task-DsrXI6XH.mjs} +10 -39
- package/dist/{task-target-build-CBeCKbu2.mjs → task-target-build-DTzz4fpG.mjs} +4 -4
- package/dist/task-target-deploy-BPLlP__P.mjs +4 -0
- package/dist/{task-target-deploy-CA6elFpF-BEr4gkol.mjs → task-target-deploy-Bf5i3ox1-BU16VPsE.mjs} +2 -3
- package/dist/task-target-deploy-runner.mjs +15 -14
- package/dist/{test-BHTgR3UA.mjs → test-BsTLXIPB.mjs} +31 -31
- package/dist/{test.handler-BcPQ8b74.mjs → test.handler-D25kziPi.mjs} +1 -1
- package/dist/{trigger-artifacts-DQPbQNqC-B4yeeFBY.mjs → trigger-artifacts-B3OCTX9K-DG-FGGJT.mjs} +5 -5
- package/dist/{trigger-manifest-CY7brZeg.mjs → trigger-manifest-CXD9I7Rb.mjs} +1 -2
- package/dist/{try-deploy.handler-DqybNhXx.mjs → try-deploy.handler-2aX5TmLk.mjs} +11 -11
- package/dist/{upload.handler-DCtiznQp.mjs → upload.handler-CqProKVJ.mjs} +10 -10
- package/dist/users.get.handler-C_d2GWKX.mjs +24 -0
- package/dist/users.list.handler-DXAsO8Yk.mjs +36 -0
- package/dist/users.set-role.handler-Bn_yV4RI.mjs +27 -0
- package/dist/{utils-CywxCDM7.mjs → utils-DlYHjGg9.mjs} +2 -2
- package/dist/{validate.handler-DOcTaJL0.mjs → validate.handler-CGD6GttR.mjs} +5 -5
- package/dist/{workflow-build-DBQaBfnn.mjs → workflow-build-BcaIdRR6.mjs} +22 -45
- package/dist/{workflow-bundler-BPiqVscj-X1PFFAuP.mjs → workflow-bundler-BzHk73PM-Cde7cKiU.mjs} +4 -4
- package/dist/{_manifest-JSRE3H8k.mjs → workflow-manifest-CAW5FlX0.mjs} +7 -131
- package/dist/{workflows-g9z87AJJ.mjs → workflows-S-gbfw8f.mjs} +16 -15
- package/dist/{writer-BG8poUm3-BbXlU2kI.mjs → writer-CtvttJdP-DrJruQgR.mjs} +8 -8
- package/package.json +9 -11
- package/THIRD_PARTY_NOTICES.md +0 -16
- package/dist/api-keys-D2lgguuY.mjs +0 -40
- package/dist/org-xLzBtt2_.mjs +0 -41
- package/dist/schedule-BXx3uXwr.mjs +0 -1142
- package/dist/src-C0X6u_Mw.mjs +0 -1340
- package/dist/task-B2sZMaZu.mjs +0 -8
- package/dist/task-target-deploy-C5X-USeR.mjs +0 -4
- /package/dist/{agent-bundle-package-DWV6B_5q-BtV7Xycc.mjs → agent-bundle-package-DWV6B_5q-FPT0bJaA.mjs} +0 -0
- /package/dist/{browser-qwFrUH82.mjs → browser-gddMccBQ.mjs} +0 -0
- /package/dist/{concurrency-gXn9Rw8x-DNl2YtrS.mjs → concurrency-gXn9Rw8x-BTlfau8D.mjs} +0 -0
- /package/dist/{constants-CPpPdSNg.mjs → constants-DHdiT5hc.mjs} +0 -0
- /package/dist/{credential-env-map-CI8yWHVy.mjs → credential-env-map-C8P7uTD-.mjs} +0 -0
- /package/dist/{diff-utils-NEfcjqxt.mjs → diff-utils-DWNcRA8g.mjs} +0 -0
- /package/dist/{get-intrinsic-zLxwtrLK.mjs → get-intrinsic-ZMBBjBEr.mjs} +0 -0
- /package/dist/{layout-CbMtQ2tm.mjs → layout-B95Tku8F.mjs} +0 -0
- /package/dist/{options-CeaTcFxP.mjs → options-Dn9t3K4a.mjs} +0 -0
- /package/dist/{output-DM4b7KgY.mjs → output-q4KljAhu.mjs} +0 -0
- /package/dist/{oxc-B3KI3rf_-n9d1hKNq.mjs → oxc-B3KI3rf_-BeimiQ2U.mjs} +0 -0
- /package/dist/{read-credential-keys-77a91T8M-KA0Iw0Z1.mjs → read-credential-keys-77a91T8M-CAJLnMRi.mjs} +0 -0
- /package/dist/{rolldown-runtime-twds-ZHy-BWWzu8VG.mjs → rolldown-runtime-twds-ZHy-8uqgIurC.mjs} +0 -0
- /package/dist/{run-polling-CAgFRdK3.mjs → run-polling-CTzhTgyN.mjs} +0 -0
- /package/dist/{schema-17qMfNyI.mjs → schema-Di90TXoX.mjs} +0 -0
- /package/dist/{schema-display-CgmeKigW.mjs → schema-display-D4A1gQEM.mjs} +0 -0
- /package/dist/{skills.handler-Bz8bJKql.mjs → skills.handler-8KCSF7wp.mjs} +0 -0
- /package/dist/{spinner-progress-DMVwgqO9.mjs → spinner-progress-bvKd1jXc.mjs} +0 -0
- /package/dist/{status.handler-BO4nwvWn.mjs → status.handler-D9GBEmao.mjs} +0 -0
- /package/dist/{sync-keystroke-agent-skills-Kx_H7UTd.mjs → sync-keystroke-agent-skills-CY9h25_5.mjs} +0 -0
- /package/dist/{upload-CkU--iDC.mjs → upload-B8fiWveA.mjs} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { i as __toESM } from "./chunk-CH6r78ws.mjs";
|
|
4
|
-
import { n as FileMetadataSchema, t as FILE_METADATA_SCHEMA_VERSION } from "./file-metadata-
|
|
5
|
-
import { d as getMetadataRoot, l as createMetadataOutputFile, n as BUILD_OUTPUT_DIR_NAME, u as getFileMetadataPath } from "./layout-
|
|
6
|
-
import { l as require_out, s as sha256String, t as BASE_IGNORE_PATTERNS } from "./metadata-layout-
|
|
7
|
-
import { a as literalString, c as readStringProperty, i as literalNumber, l as unwrapExpression, n as identifierName, o as parseSourceFile, r as isNode, s as readPropertyValue, t as getFirstObjectArgument, u as visitNode } from "./oxc-B3KI3rf_-
|
|
8
|
-
import { a as getLocalModuleSpecifier, f as resolveLocalModulePath, l as removeEmptyMetadataDirectories, o as getVariableDeclarators, s as isExportedVariableStatement } from "./source-analysis-
|
|
9
|
-
import { n as parseRelativeFilePath, r as toRelativeFilePath, t as normalizeRelativeFilePath } from "./normalize-path-CojS-CgQ-
|
|
10
|
-
import { t as RESERVED_NAMESPACES } from "./constants-
|
|
4
|
+
import { n as FileMetadataSchema, t as FILE_METADATA_SCHEMA_VERSION } from "./file-metadata-CdFXMMIw.mjs";
|
|
5
|
+
import { d as getMetadataRoot, l as createMetadataOutputFile, n as BUILD_OUTPUT_DIR_NAME, u as getFileMetadataPath } from "./layout-B95Tku8F.mjs";
|
|
6
|
+
import { l as require_out, s as sha256String, t as BASE_IGNORE_PATTERNS } from "./metadata-layout-C6ed-9dl-aBmqqvD5.mjs";
|
|
7
|
+
import { a as literalString, c as readStringProperty, i as literalNumber, l as unwrapExpression, n as identifierName, o as parseSourceFile, r as isNode, s as readPropertyValue, t as getFirstObjectArgument, u as visitNode } from "./oxc-B3KI3rf_-BeimiQ2U.mjs";
|
|
8
|
+
import { a as getLocalModuleSpecifier, f as resolveLocalModulePath, l as removeEmptyMetadataDirectories, o as getVariableDeclarators, s as isExportedVariableStatement } from "./source-analysis-DEEChuND-eixwPnPP.mjs";
|
|
9
|
+
import { n as parseRelativeFilePath, r as toRelativeFilePath, t as normalizeRelativeFilePath } from "./normalize-path-CojS-CgQ-BKRFUzWW.mjs";
|
|
10
|
+
import { t as RESERVED_NAMESPACES } from "./constants-DHdiT5hc.mjs";
|
|
11
11
|
import { mkdir, readFile, rm, stat, writeFile } from "node:fs/promises";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import { performance } from "node:perf_hooks";
|
|
14
|
-
//#region ../../packages/workflow-builder/dist/build-metadata-
|
|
14
|
+
//#region ../../packages/workflow-builder/dist/build-metadata-zidV9Cai.mjs
|
|
15
15
|
var import_out = /* @__PURE__ */ __toESM(require_out(), 1);
|
|
16
16
|
const IGNORED_IDENTIFIERS = new Set([
|
|
17
17
|
"undefined",
|
|
@@ -62,7 +62,7 @@ const IGNORED_IDENTIFIERS = new Set([
|
|
|
62
62
|
"btoa"
|
|
63
63
|
]);
|
|
64
64
|
const IGNORED_IMPORT_SPECIFIERS = new Set(["zod", "zod/v4"]);
|
|
65
|
-
const IGNORED_IMPORT_PREFIXES = ["@
|
|
65
|
+
const IGNORED_IMPORT_PREFIXES = ["@keystrokehq/core"];
|
|
66
66
|
function analyzeCapturedVariables(sourceFile, definitionAnalysis, relativeFilePath, imports) {
|
|
67
67
|
const result = /* @__PURE__ */ new Map();
|
|
68
68
|
const fileScopeConsts = collectFileScopeConsts(sourceFile);
|
|
@@ -270,7 +270,7 @@ function isIgnoredImport(moduleSpecifier) {
|
|
|
270
270
|
if (IGNORED_IMPORT_SPECIFIERS.has(moduleSpecifier)) return true;
|
|
271
271
|
return IGNORED_IMPORT_PREFIXES.some((prefix) => moduleSpecifier.startsWith(prefix));
|
|
272
272
|
}
|
|
273
|
-
const CORE_IMPORT_PREFIX$1 = "@
|
|
273
|
+
const CORE_IMPORT_PREFIX$1 = "@keystrokehq/core";
|
|
274
274
|
function analyzeCredentials(sourceFile) {
|
|
275
275
|
const localCredentialSetIds = collectLocalCredentialSetIds(sourceFile, collectImportedCoreSymbols$1(sourceFile));
|
|
276
276
|
const credentials = /* @__PURE__ */ new Map();
|
|
@@ -367,7 +367,7 @@ function createSourceLocation(sourceFile, node, relativeFilePath) {
|
|
|
367
367
|
endColumn: end.character + 1
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
|
-
const CORE_IMPORT_PREFIX = "@
|
|
370
|
+
const CORE_IMPORT_PREFIX = "@keystrokehq/core";
|
|
371
371
|
const IMPORTED_CORE_SYMBOLS = new Set([
|
|
372
372
|
"Workflow",
|
|
373
373
|
"Step",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { i as logger } from "./keystroke.mjs";
|
|
4
|
-
import { n as formatProgressDuration, t as createSpinnerProgress } from "./spinner-progress-
|
|
4
|
+
import { n as formatProgressDuration, t as createSpinnerProgress } from "./spinner-progress-bvKd1jXc.mjs";
|
|
5
5
|
//#region src/lib/build-progress.ts
|
|
6
6
|
const NEW_STAGE_LABELS = {
|
|
7
7
|
start: "Starting build",
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
import {
|
|
6
|
-
import { t as buildTriggerArtifacts } from "./trigger-artifacts-DQPbQNqC-B4yeeFBY.mjs";
|
|
3
|
+
import { n as TaskBuildManifestSchema } from "./task-DsrXI6XH.mjs";
|
|
4
|
+
import { n as bundleWorkflowTarget } from "./workflow-bundler-BzHk73PM-Cde7cKiU.mjs";
|
|
5
|
+
import { t as buildTriggerArtifacts } from "./trigger-artifacts-B3OCTX9K-DG-FGGJT.mjs";
|
|
7
6
|
import { performance } from "node:perf_hooks";
|
|
8
|
-
//#region ../../packages/workflow-builder/dist/build-tasks-
|
|
7
|
+
//#region ../../packages/workflow-builder/dist/build-tasks-O1jYtlv1.mjs
|
|
9
8
|
async function buildTaskArtifact(options) {
|
|
10
9
|
const { discoveredWorkflow, taskMetadata, projectRoot } = options;
|
|
11
10
|
const totalStartedAt = performance.now();
|
package/dist/{build-workflows-CfxBnIWh-CdYPv8w2.mjs → build-workflows-3fdvdHHf-DJ_lH1NH.mjs}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { i as
|
|
5
|
-
import { a as MANIFEST_FILE_NAME, i as FLOW_FILE_NAME, r as BUNDLE_FILE_NAME, s as SOURCE_MAP_FILE_NAME, t as BUILD_DIR_NAME } from "./layout-
|
|
6
|
-
import { t as runWithConcurrency } from "./concurrency-gXn9Rw8x-
|
|
7
|
-
import { n as WorkflowLoaderProtocolError, r as WorkflowMetadataLoadError, s as createLoaderProtocolFailure } from "./import-module-
|
|
8
|
-
import { r as toRelativeFilePath } from "./normalize-path-CojS-CgQ-
|
|
9
|
-
import { n as bundleWorkflowTarget } from "./workflow-bundler-
|
|
10
|
-
import { t as buildTriggerArtifacts } from "./trigger-artifacts-
|
|
3
|
+
import { p as deduplicateCredentialRequirementEntries } from "./credential-requirements-DjDFthio.mjs";
|
|
4
|
+
import { i as WorkflowManifestSchema, t as WORKFLOW_MANIFEST_GENERATOR } from "./workflow-manifest-CAW5FlX0.mjs";
|
|
5
|
+
import { a as MANIFEST_FILE_NAME, i as FLOW_FILE_NAME, r as BUNDLE_FILE_NAME, s as SOURCE_MAP_FILE_NAME, t as BUILD_DIR_NAME } from "./layout-B95Tku8F.mjs";
|
|
6
|
+
import { t as runWithConcurrency } from "./concurrency-gXn9Rw8x-BTlfau8D.mjs";
|
|
7
|
+
import { n as WorkflowLoaderProtocolError, r as WorkflowMetadataLoadError, s as createLoaderProtocolFailure } from "./import-module-DDPnzlJ1-CYJD2n2b.mjs";
|
|
8
|
+
import { r as toRelativeFilePath } from "./normalize-path-CojS-CgQ-BKRFUzWW.mjs";
|
|
9
|
+
import { n as bundleWorkflowTarget } from "./workflow-bundler-BzHk73PM-Cde7cKiU.mjs";
|
|
10
|
+
import { t as buildTriggerArtifacts } from "./trigger-artifacts-B3OCTX9K-DG-FGGJT.mjs";
|
|
11
11
|
import { realpathSync } from "node:fs";
|
|
12
12
|
import { readFile } from "node:fs/promises";
|
|
13
13
|
import * as path$1 from "node:path";
|
|
14
14
|
import { createHash } from "node:crypto";
|
|
15
15
|
import { performance } from "node:perf_hooks";
|
|
16
|
-
//#region ../../packages/workflow-builder/dist/build-workflows-
|
|
16
|
+
//#region ../../packages/workflow-builder/dist/build-workflows-3fdvdHHf.mjs
|
|
17
17
|
/**
|
|
18
18
|
* Resolves and categorizes all dependencies for a workflow manifest.
|
|
19
19
|
* - Local files: relative paths with SHA256 content hashes
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { C as CliExitError } from "./keystroke.mjs";
|
|
4
|
-
import { d as trackProject } from "./dist-
|
|
5
|
-
import { t as requireWorkflowsDir } from "./resolve-project-
|
|
6
|
-
import { a as runWorkflowBuild, i as renderBuildSummary, n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-
|
|
7
|
-
import { t as createBuildProgress } from "./build-progress-
|
|
8
|
-
import { t as withErrorBoundary } from "./error-boundary-
|
|
4
|
+
import { d as trackProject } from "./dist-BF6r1hfv.mjs";
|
|
5
|
+
import { t as requireWorkflowsDir } from "./resolve-project-DgfftdPm.mjs";
|
|
6
|
+
import { a as runWorkflowBuild, i as renderBuildSummary, n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-BcaIdRR6.mjs";
|
|
7
|
+
import { t as createBuildProgress } from "./build-progress-Cn2j1LqF.mjs";
|
|
8
|
+
import { t as withErrorBoundary } from "./error-boundary-B9PgBkv8.mjs";
|
|
9
9
|
//#region src/commands/workflows/build.handler.ts
|
|
10
10
|
async function handleWorkflowsBuild(options, _ctx) {
|
|
11
11
|
return withErrorBoundary("Build", async () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { t as ui } from "./keystroke.mjs";
|
|
4
|
-
import { n as clearStoredProjects } from "./dist-
|
|
4
|
+
import { n as clearStoredProjects } from "./dist-BF6r1hfv.mjs";
|
|
5
5
|
//#region src/commands/projects/clear-cache.handler.ts
|
|
6
6
|
async function handleProjectsClearCache(_options, _ctx) {
|
|
7
7
|
if (await clearStoredProjects()) ui.success("Projects cache cleared.");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { t as clearLogFile } from "./dist-
|
|
3
|
+
import { t as clearLogFile } from "./dist-BF6r1hfv.mjs";
|
|
4
4
|
import { log } from "@clack/prompts";
|
|
5
5
|
//#region src/commands/logs/clear.handler.ts
|
|
6
6
|
async function handleLogsClear(_options, _ctx) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { h as toErrorMessage, i as logger, l as AUTH_HINT, t as ui } from "./keystroke.mjs";
|
|
4
|
-
import { c as removeOrgCredentials, r as deleteStoredCredentials } from "./dist-
|
|
5
|
-
import { createClient } from "./src-
|
|
4
|
+
import { c as removeOrgCredentials, r as deleteStoredCredentials } from "./dist-BF6r1hfv.mjs";
|
|
5
|
+
import { createClient } from "./src-J09NGJ6Z.mjs";
|
|
6
6
|
//#region src/commands/auth/clear.handler.ts
|
|
7
7
|
async function tryRevokeKey(apiKey, apiKeyId, baseUrl, organizationId) {
|
|
8
8
|
try {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { C as CliExitError, h as toErrorMessage, i as logger, l as AUTH_HINT, n as createHiddenGlobalOptions, p as isAuthError, r as captureCliTelemetryResolvedContext, t as ui, w as InputValidationError } from "./keystroke.mjs";
|
|
4
|
-
import { a as writeJsonError, r as isJsonMode } from "./output-
|
|
4
|
+
import { a as writeJsonError, r as isJsonMode } from "./output-q4KljAhu.mjs";
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
//#region src/lib/commander.ts
|
|
7
7
|
/**
|
|
@@ -32,7 +32,7 @@ function applyTypedOptionsToCommand(command, schema, optionsConfig, skipKeys) {
|
|
|
32
32
|
* Combines option application and action handler creation into a single function.
|
|
33
33
|
*
|
|
34
34
|
* Every handler receives a `CliContext` (with nullable client) by default.
|
|
35
|
-
* Global options (`--api-key`, `--
|
|
35
|
+
* Global options (`--api-key`, `--server-url`) defined on the root program are
|
|
36
36
|
* automatically picked up and passed to `resolveBaseContext`.
|
|
37
37
|
*
|
|
38
38
|
* Provide a `resolve` function to narrow/extend the context for specialized needs.
|
|
@@ -74,17 +74,18 @@ function createTypedCommand(params) {
|
|
|
74
74
|
}
|
|
75
75
|
const parsed = parseResult.data;
|
|
76
76
|
if ("json" in parsed) jsonMode = isJsonMode(parsed);
|
|
77
|
+
else if (process.argv.includes("--json")) jsonMode = true;
|
|
77
78
|
const globalOpts = cmd.optsWithGlobals();
|
|
78
79
|
if (globalOpts.debug) logger.setDebug(true);
|
|
79
80
|
const contextMode = params.contextMode ?? "full";
|
|
80
|
-
const contextModule = await import("./context-
|
|
81
|
+
const contextModule = await import("./context-Y1f1hGYy.mjs").then((n) => n.n);
|
|
81
82
|
const base = contextMode === "auth" ? await contextModule.resolveAuthContext({
|
|
82
83
|
apiKey: globalOpts.apiKey,
|
|
83
|
-
|
|
84
|
+
serverUrl: globalOpts.serverUrl,
|
|
84
85
|
org: globalOpts.org
|
|
85
86
|
}) : await contextModule.resolveBaseContext({
|
|
86
87
|
apiKey: globalOpts.apiKey,
|
|
87
|
-
|
|
88
|
+
serverUrl: globalOpts.serverUrl,
|
|
88
89
|
org: globalOpts.org
|
|
89
90
|
});
|
|
90
91
|
captureCliTelemetryResolvedContext(base);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
const SHA256HashSchema = z.string().length(64, "Must be 64 characters").regex(/^[a-f0-9]{64}$/i, "Must be hexadecimal").transform((value) => value);
|
|
5
|
+
const JsonSchemaSchema = z.record(z.string(), z.unknown());
|
|
6
|
+
const RetryConfigSchema = z.object({
|
|
7
|
+
constant: z.object({
|
|
8
|
+
attempts: z.number().int().min(1).max(10),
|
|
9
|
+
seconds: z.number().positive()
|
|
10
|
+
}).optional(),
|
|
11
|
+
exponential: z.object({
|
|
12
|
+
attempts: z.number().int().min(1).max(10),
|
|
13
|
+
base: z.number().min(1).optional(),
|
|
14
|
+
multiplier: z.number().positive().optional()
|
|
15
|
+
}).optional()
|
|
16
|
+
}).refine((data) => {
|
|
17
|
+
return data.constant !== void 0 !== (data.exponential !== void 0);
|
|
18
|
+
}, { error: "Retry config must specify exactly one of constant or exponential strategy" });
|
|
19
|
+
//#endregion
|
|
20
|
+
export { RetryConfigSchema as n, SHA256HashSchema as r, JsonSchemaSchema as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-
|
|
4
|
-
import { t as createTypedCommand } from "./commander-
|
|
3
|
+
import { n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-q4KljAhu.mjs";
|
|
4
|
+
import { t as createTypedCommand } from "./commander-DZ3F3CVq.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/commands/connect/connect.command.ts
|
|
7
7
|
const ConnectOptionsSchema = JsonOptionSchema.extend({
|
|
@@ -31,7 +31,7 @@ function createConnectCommand() {
|
|
|
31
31
|
description: "Connect an official integration via OAuth (e.g., keystroke connect slack)",
|
|
32
32
|
schema: ConnectOptionsSchema,
|
|
33
33
|
optionsConfig: CONNECT_OPTIONS_CONFIG,
|
|
34
|
-
loadHandler: async () => (await import("./connect.handler-
|
|
34
|
+
loadHandler: async () => (await import("./connect.handler-DuRr_yyN.mjs")).handleConnect,
|
|
35
35
|
argument: {
|
|
36
36
|
name: "integrationId",
|
|
37
37
|
description: "Integration to connect (e.g., slack, linear)",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { D as throwReportedCliExit, h as toErrorMessage, l as AUTH_HINT, m as isNetworkError, t as ui } from "./keystroke.mjs";
|
|
4
|
-
import { i as writeJson } from "./output-
|
|
5
|
-
import { n as CredentialScopeSchema, t as ConnectionStatusSchema } from "./schema-
|
|
6
|
-
import { t as openBrowser } from "./browser-
|
|
7
|
-
import { t as getIntegrationCatalog } from "./integration-catalog-
|
|
4
|
+
import { i as writeJson } from "./output-q4KljAhu.mjs";
|
|
5
|
+
import { n as CredentialScopeSchema, t as ConnectionStatusSchema } from "./schema-Di90TXoX.mjs";
|
|
6
|
+
import { t as openBrowser } from "./browser-gddMccBQ.mjs";
|
|
7
|
+
import { t as getIntegrationCatalog } from "./integration-catalog-DFlytKJS.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
//#region ../../packages/shared-types/src/connections/api.ts
|
|
10
10
|
/**
|
|
@@ -129,7 +129,7 @@ const ManualIntegrationCatalogEntrySchema = IntegrationCatalogEntryBaseSchema.ex
|
|
|
129
129
|
* runtime module). `credentialSet.storedKeys` reflects the stored-schema
|
|
130
130
|
* keys that get persisted after exchange.
|
|
131
131
|
*
|
|
132
|
-
* @see packages/
|
|
132
|
+
* @see packages/core/src/credential-set/connection.ts CredentialsExchangeConnectionConfig
|
|
133
133
|
*/
|
|
134
134
|
const CredentialsExchangeIntegrationCatalogEntrySchema = IntegrationCatalogEntryBaseSchema.extend({
|
|
135
135
|
connectionKind: z.literal("credentials-exchange"),
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { n as __exportAll } from "./chunk-CH6r78ws.mjs";
|
|
4
4
|
import { C as CliExitError, S as AuthenticationError, h as toErrorMessage, i as logger, l as AUTH_HINT, p as isAuthError, t as ui, u as REAUTH_HINT } from "./keystroke.mjs";
|
|
5
|
-
import { l as resolveAuthOptions } from "./dist-
|
|
6
|
-
import { a as writeJsonError } from "./output-
|
|
7
|
-
import { t as getEnv } from "./env-
|
|
5
|
+
import { l as resolveAuthOptions } from "./dist-BF6r1hfv.mjs";
|
|
6
|
+
import { a as writeJsonError } from "./output-q4KljAhu.mjs";
|
|
7
|
+
import { t as getEnv } from "./env-YTZGKGIu.mjs";
|
|
8
8
|
//#region src/lib/context.ts
|
|
9
9
|
var context_exports = /* @__PURE__ */ __exportAll({
|
|
10
10
|
assertProjectConfigMatchesAuthenticatedOrg: () => assertProjectConfigMatchesAuthenticatedOrg,
|
|
@@ -31,13 +31,13 @@ function exitNotAuthenticated(jsonMode) {
|
|
|
31
31
|
* 3. Active org from stored credentials
|
|
32
32
|
*
|
|
33
33
|
* API key: resolved from the matching org entry in stored credentials (or explicit --apiKey flag).
|
|
34
|
-
*
|
|
34
|
+
* Server URL: flags > stored credentials > env/default.
|
|
35
35
|
*/
|
|
36
36
|
async function resolveBaseContext(overrides = {}) {
|
|
37
37
|
const authContext = await resolveAuthContext(overrides);
|
|
38
38
|
let client = null;
|
|
39
39
|
if (authContext.apiKey && authContext.baseUrl) try {
|
|
40
|
-
const { createClient } = await import("./src-
|
|
40
|
+
const { createClient } = await import("./src-J09NGJ6Z.mjs");
|
|
41
41
|
client = createClient({
|
|
42
42
|
apiKey: authContext.apiKey,
|
|
43
43
|
baseUrl: authContext.baseUrl,
|
|
@@ -60,11 +60,11 @@ async function resolveBaseContext(overrides = {}) {
|
|
|
60
60
|
async function resolveAuthContext(overrides = {}) {
|
|
61
61
|
const auth = await resolveAuthOptions({
|
|
62
62
|
apiKey: overrides.apiKey,
|
|
63
|
-
|
|
63
|
+
serverUrl: overrides.serverUrl
|
|
64
64
|
});
|
|
65
65
|
const env = getEnv();
|
|
66
66
|
let apiKey = auth.apiKey ?? env.KEYSTROKE_API_KEY;
|
|
67
|
-
const baseUrl = auth.
|
|
67
|
+
const baseUrl = auth.serverUrl ?? env.SERVER_URL;
|
|
68
68
|
const orgRaw = overrides.org ?? env.KEYSTROKE_ORG_ID ?? auth.activeOrg?.organizationId;
|
|
69
69
|
const orgSource = overrides.org ? "flag" : env.KEYSTROKE_ORG_ID ? "env" : auth.activeOrg?.organizationId ? "credentials" : void 0;
|
|
70
70
|
let organizationId = orgRaw;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { D as throwReportedCliExit, h as toErrorMessage, t as ui } from "./keystroke.mjs";
|
|
4
|
+
import { i as writeJson } from "./output-q4KljAhu.mjs";
|
|
5
|
+
import { i as requireClient } from "./context-Y1f1hGYy.mjs";
|
|
6
|
+
//#region src/commands/api-keys/create.handler.ts
|
|
7
|
+
async function handleApiKeysCreate(options, ctx) {
|
|
8
|
+
const client = requireClient(ctx);
|
|
9
|
+
try {
|
|
10
|
+
const result = await client.apiKeys.create({ name: options.name });
|
|
11
|
+
if (options.json === true || ctx.jsonMode) {
|
|
12
|
+
writeJson(result);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
ui.success("API key created. Store this value now; it will only be shown once.");
|
|
16
|
+
ui.text(result.apiKey);
|
|
17
|
+
ui.hint(`ID: ${result.id}`);
|
|
18
|
+
} catch (error) {
|
|
19
|
+
ui.error(`Failed to create API key: ${toErrorMessage(error)}`);
|
|
20
|
+
throwReportedCliExit(`Failed to create API key: ${toErrorMessage(error)}`, { cause: error });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { handleApiKeysCreate };
|