@keystrokehq/cli 0.0.11 → 0.0.13
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-DWuxmMuY.mjs → accept.handler-BU6kg8ET.mjs} +1 -1
- package/dist/{admin-BK4bFTTd.mjs → admin-B4GNbCl5.mjs} +9 -9
- package/dist/{agent-manifest-sJFbH5H8.mjs → agent-manifest-CZdlCTFs.mjs} +5 -5
- package/dist/{agents-DYnw2VPX.mjs → agents-LtoIcJGY.mjs} +6 -6
- package/dist/api-DuKKdCpF.mjs +246 -0
- package/dist/{api-keys-Dizx3YqE.mjs → api-keys-BE_hLonn.mjs} +5 -5
- package/dist/{auth-BqsKd4IA.mjs → auth-DNK5MYm4.mjs} +5 -5
- package/dist/{auth.handler-BsoWeCFD.mjs → auth.handler-DrjDODhZ.mjs} +1 -1
- package/dist/{build-agents-DfbiMZ_e-CgnKa9A6.mjs → build-agents-DseUtzd4-DIDGsZWL.mjs} +12 -13
- package/dist/{build-metadata-zidV9Cai-Bq37kBOM.mjs → build-metadata-qebrtraZ-D4SQNsBw.mjs} +19 -35
- package/dist/{build-progress-DigAP-BN.mjs → build-progress-CITED2tv.mjs} +1 -1
- package/dist/{build-tasks-O1jYtlv1-Bkw0w1r3.mjs → build-tasks-GVuMLS0h-DnS9QWzf.mjs} +4 -4
- package/dist/{build-workflows-3fdvdHHf-BDTy9QgT.mjs → build-workflows-Dmzay1vP-DKVuBAjD.mjs} +17 -18
- package/dist/{build.handler-B2UDhh72.mjs → build.handler-BZnLQt0_.mjs} +4 -4
- package/dist/{clear.handler-BR97yudD.mjs → clear.handler-B1c17nAi.mjs} +1 -1
- package/dist/{commander-DcftG6dX.mjs → commander-BwtBoukr.mjs} +2 -2
- package/dist/{common-B3bLe3Mk.mjs → common-BaGFkj3n.mjs} +2 -2
- package/dist/{connect-DQ4xIcyE.mjs → connect-IPcL37np.mjs} +12 -6
- package/dist/{connect.handler-CWSLgf87.mjs → connect.handler-ToY6qmMz.mjs} +74 -224
- package/dist/{context-1VgRbzr-.mjs → context-DQ4IA0yO.mjs} +1 -1
- package/dist/{create.handler-C2CkPWsy.mjs → create.handler-BAyG0PmG.mjs} +1 -1
- package/dist/credential-requirements-FtBk5JVB.mjs +250 -0
- package/dist/credentials-Bu1MBiCL.mjs +182 -0
- package/dist/{credentials-D8_AwH9o.mjs → credentials-CZiu-534.mjs} +12 -7
- package/dist/{current-deployment-workflow-B05z0EQa.mjs → current-deployment-workflow-zTmYbUjh.mjs} +5 -5
- package/dist/{current.handler-CuAtMZmm.mjs → current.handler-DA4FGfUP.mjs} +1 -1
- package/dist/{declared-credential-requirements-BtlcsEVn.mjs → declared-credential-requirements-B6h4WRv4.mjs} +5 -34
- package/dist/{delete.handler-DDY3X1Zm.mjs → delete.handler-CJcyvnUF.mjs} +1 -1
- package/dist/{deploy-B8TYutOi.mjs → deploy-BvaFgVvf.mjs} +1 -1
- package/dist/{deploy-Cn6FFnOM.mjs → deploy-DdMP-YaQ.mjs} +2 -2
- package/dist/{deploy-progress-XAfautnA.mjs → deploy-progress-CLO-yidq.mjs} +1 -1
- package/dist/{deploy.handler-D1DcAe-h.mjs → deploy.handler-Bag7rBG-.mjs} +16 -16
- package/dist/{detect-env-access-CwkOYeYM-D4o8gRZs.mjs → detect-env-access-CwkOYeYM-EmkYvbfJ.mjs} +1 -1
- package/dist/{diff.handler-BU6IewNG.mjs → diff.handler-Brgc-Ccl.mjs} +3 -3
- package/dist/{dist-DvO0q6Fo.mjs → dist-BMkNN03r.mjs} +16 -16
- package/dist/{env.handler-C6YAmHLi.mjs → env.handler-DFKzjIQT.mjs} +10 -7
- package/dist/{error-boundary-CpaVvFXk.mjs → error-boundary-B2ZKRkZI.mjs} +1 -1
- package/dist/{file-metadata-BvGM-B2v.mjs → file-metadata-Dwy9KKq_.mjs} +2 -2
- package/dist/{import-module-DDPnzlJ1-BIBSgOhK.mjs → import-module-DEI7R8Yh-Xz-KAPvB.mjs} +248 -246
- package/dist/{init-Da6_obl0.mjs → init-DhnABm3J.mjs} +2 -2
- package/dist/{init.handler-Cq2nk8DO.mjs → init.handler-QgehN8B4.mjs} +4 -4
- package/dist/{inspect.handler-D4YGryQB.mjs → inspect.handler-CMOFOb4G.mjs} +3 -3
- package/dist/{integration-catalog-DtNWaMvh.mjs → integration-catalog-BRrJIAVz.mjs} +5 -5
- package/dist/{integrations-CB_Ukq2g.mjs → integrations-7-U7nmkh.mjs} +7 -6
- package/dist/{invites-BOhuBtoq.mjs → invites-CmGmnUla.mjs} +4 -4
- package/dist/{invites.list.handler-C-Wv6E1g.mjs → invites.list.handler-CmkIf-uW.mjs} +1 -1
- package/dist/{invites.resend.handler-CI78XlQS.mjs → invites.resend.handler-FZl20yat.mjs} +1 -1
- package/dist/{invites.revoke.handler-DigAgNwB.mjs → invites.revoke.handler-D95mrfmB.mjs} +1 -1
- package/dist/keystroke.mjs +21 -21
- package/dist/{list-enrichment-Cxlq6BB9.mjs → list-enrichment-I4XQaMg0.mjs} +5 -1
- package/dist/{list.handler-OiLEylzS.mjs → list.handler-BrTW2viq.mjs} +1 -1
- package/dist/{list.handler-CsODcH6e.mjs → list.handler-Cp767f5l.mjs} +1 -1
- package/dist/{list.handler-BsyGhXns.mjs → list.handler-DRnHsEa0.mjs} +1 -1
- package/dist/{list.handler-B6IByHHB.mjs → list.handler-DXl8igi2.mjs} +13 -5
- package/dist/{list.handler-BpVNYShU.mjs → list.handler-DsYyTUhA.mjs} +1 -1
- package/dist/{list.handler--a1JEGSD.mjs → list.handler-H8aQSsFM.mjs} +3 -3
- package/dist/{list.handler-Dr9Ti-dt.mjs → list.handler-uzC77oIy.mjs} +3 -3
- package/dist/{listen-DUPk6cZC.mjs → listen-DckJq0y0.mjs} +2 -2
- package/dist/{listen.handler-B5WimrfF.mjs → listen.handler-Bf5MXKPO.mjs} +2 -2
- package/dist/{logs-C5_4lh3p.mjs → logs-D_l5BIn2.mjs} +3 -3
- package/dist/{logs.handler-CBHPwDuC.mjs → logs.handler-kYO3Uv9t.mjs} +2 -2
- package/dist/{members.add.handler-LcQJYBsu.mjs → members.add.handler-C2cppd-9.mjs} +1 -1
- package/dist/{members.invite.handler-p279O2aC.mjs → members.invite.handler-DY6kS4LN.mjs} +1 -1
- package/dist/{members.list.handler-Cjukjuot.mjs → members.list.handler-CFBG3SBw.mjs} +1 -1
- package/dist/{members.remove.handler-CzxPiQFv.mjs → members.remove.handler-LQ61_qip.mjs} +1 -1
- package/dist/{members.update.handler-CX5q86e3.mjs → members.update.handler-CqISA1mf.mjs} +1 -1
- package/dist/{normalize-path-CojS-CgQ-D_WTiHKw.mjs → normalize-path-CojS-CgQ-D5D0AIHR.mjs} +1 -1
- package/dist/{org-CnlKW-Hl.mjs → org-KQ2nD0yN.mjs} +15 -15
- package/dist/{orgs.create.handler-DRILhxdn.mjs → orgs.create.handler-Mv5CTGcG.mjs} +1 -1
- package/dist/{orgs.get.handler-Cue6stoX.mjs → orgs.get.handler-DvvOhshX.mjs} +1 -1
- package/dist/{orgs.list.handler-fuDLNI5X.mjs → orgs.list.handler-wWAg6cKg.mjs} +1 -1
- package/dist/{paused.handler-CuOVH4DZ.mjs → paused.handler-CbMkPD9e.mjs} +1 -1
- package/dist/{project-config-D9eFU8Jk.mjs → project-config-CJGSh2RQ.mjs} +4 -7
- package/dist/{projects-DN7dX6nN.mjs → projects-CWLOF5x4.mjs} +656 -3
- package/dist/{projects-DdgHbUpR.mjs → projects-CYqeKQGT.mjs} +4 -4
- package/dist/{requirements.handler-CX13XiXT.mjs → requirements.handler-CnDTBcH5.mjs} +5 -5
- package/dist/{resolve-project-C6UAOfAG.mjs → resolve-project-bVPMcs-y.mjs} +1 -1
- package/dist/{run-polling-1CTIeDea.mjs → run-polling-49w3PYAv.mjs} +3 -3
- package/dist/{run.handler-BxLH75WW.mjs → run.handler-Bma88649.mjs} +5 -5
- package/dist/{runs-lfE7r6i2.mjs → runs-HJejvQnQ.mjs} +2 -2
- package/dist/{schema-BgGlAs8a.mjs → schema-DFJiNWyd.mjs} +2 -1
- package/dist/schemas-DodkHgnS.mjs +280 -0
- package/dist/{skills-sync.handler-CntKndFm.mjs → skills-sync.handler-Cf74vKJA.mjs} +1 -1
- package/dist/{skills.command-X5zZwz2d.mjs → skills.command-KyAwBeST.mjs} +3 -3
- package/dist/{source-analysis-CHkWMC40.mjs → source-analysis-CJPymdaA.mjs} +1 -1
- package/dist/{source-analysis-DEEChuND-Csu0oOlw.mjs → source-analysis-DTnwNwKq-DoBxUDCg.mjs} +5 -5
- package/dist/{src--fCtOxNX.mjs → src-D-dFmoAF.mjs} +1 -1
- package/dist/{switch.handler-RaeKZ3ZB.mjs → switch.handler-DfsKVtR6.mjs} +1 -1
- package/dist/{sync-C89mJp7Y.mjs → sync-Bi2M_TUK.mjs} +2 -2
- package/dist/{sync.handler-BoAHHUQs.mjs → sync.handler-D6YFuVlq.mjs} +6 -6
- package/dist/{schedule-BWAI6qLx.mjs → task-BBgEvdG1.mjs} +395 -25
- package/dist/{task-target-build-D5IrHqSl.mjs → task-target-build-atWwwnSF.mjs} +8 -8
- package/dist/task-target-deploy-CRsrQTOy.mjs +4 -0
- package/dist/{task-target-deploy-Bf5i3ox1-2K0hAwzk.mjs → task-target-deploy-CZBGNC0H-BwPSfaJQ.mjs} +2 -2
- package/dist/task-target-deploy-runner.mjs +5 -5
- package/dist/{test-gPQJRkqa.mjs → test-Ctjy8mwC.mjs} +32 -144
- package/dist/{test.handler-B5GF5txS.mjs → test.handler-St9sBXyH.mjs} +1 -1
- package/dist/{trigger-artifacts-B3OCTX9K-ME6IVdUB.mjs → trigger-artifacts-RizI57RC-C-yCtEi-.mjs} +9 -9
- package/dist/{trigger-manifest-B3Gq1739.mjs → trigger-manifest-D5rnpPkA.mjs} +1 -1
- package/dist/{try-deploy.handler-dA_YGWRq.mjs → try-deploy.handler-BMcWQVST.mjs} +9 -9
- package/dist/{upgrade-xByIxaYu.mjs → upgrade-YavAf8AC.mjs} +2 -2
- package/dist/{upload.handler-BFDM6n_6.mjs → upload.handler-DemogvI1.mjs} +129 -18
- package/dist/{users.get.handler-CzaYM2bi.mjs → users.get.handler-B20PMSbl.mjs} +1 -1
- package/dist/{users.list.handler-CpOWwzBb.mjs → users.list.handler-BplFTjv3.mjs} +1 -1
- package/dist/{users.set-role.handler-BjiSNP2d.mjs → users.set-role.handler-wdmI6o3G.mjs} +1 -1
- package/dist/{utils-C_qCshBA.mjs → utils-DpEtybzI.mjs} +2 -2
- package/dist/{validate.handler-BtDSKAFY.mjs → validate.handler-DSAvNgns.mjs} +3 -3
- package/dist/{workflow-build-Z2_jkOsZ.mjs → workflow-build-Cmu1TOFu.mjs} +32 -32
- package/dist/{workflow-manifest-BfL74mjp.mjs → workflow-build-manifest-OPFqFD6f.mjs} +26 -28
- package/dist/{workflow-bundler-BzHk73PM-tt09RbIA.mjs → workflow-bundler-BzHk73PM-UJQa7Ubk.mjs} +2 -2
- package/dist/{workflows-V09d2r2H.mjs → workflows-DTlypo2t.mjs} +26 -27
- package/dist/{writer-CtvttJdP-DZJ0mZCm.mjs → writer-CtvttJdP-BfNsrheU.mjs} +5 -5
- package/package.json +11 -9
- package/dist/constants-BUgIAu2a.mjs +0 -8
- package/dist/credential-requirements-BCW8aQWS.mjs +0 -480
- package/dist/credentials-DAQfKqn0.mjs +0 -152025
- package/dist/get-intrinsic-BjqiGgLt.mjs +0 -658
- package/dist/hosted-action-dispatcher-registry-BWEtn13o.mjs +0 -126
- package/dist/schema-B-Wgo4rJ.mjs +0 -81
- package/dist/schemas-9FmGqrPT.mjs +0 -42
- package/dist/task-1qz1XNq7.mjs +0 -96
- package/dist/task-target-deploy-Bzfftyru.mjs +0 -4
- /package/dist/{agent-bundle-package-DWV6B_5q-B-qzc3zC.mjs → agent-bundle-package-DWV6B_5q-cB76j6UL.mjs} +0 -0
- /package/dist/{browser-CvuyMLhI.mjs → browser-B4K0VW8p.mjs} +0 -0
- /package/dist/{clear-cache.handler-D-wboLB6.mjs → clear-cache.handler-Dywqc7TG.mjs} +0 -0
- /package/dist/{clear.handler-BC6pz0x-.mjs → clear.handler-ui4e1CnJ.mjs} +0 -0
- /package/dist/{concurrency-gXn9Rw8x-CnBnF2cg.mjs → concurrency-gXn9Rw8x-CaI6Vtbu.mjs} +0 -0
- /package/dist/{credential-env-map-C23GV6LN.mjs → credential-env-map-D0zgoUl0.mjs} +0 -0
- /package/dist/{credential-schema-mismatch-DM9Y91jL.mjs → credential-schema-mismatch-8pqwvswO.mjs} +0 -0
- /package/dist/{diff-utils-AATn2n56.mjs → diff-utils-BoXI705D.mjs} +0 -0
- /package/dist/{layout-CXkZEsXI.mjs → layout-DRf9qUf8.mjs} +0 -0
- /package/dist/{logs.handler-ClIIOeQB.mjs → logs.handler-DxSKmDCq.mjs} +0 -0
- /package/dist/{metadata-layout-C6ed-9dl-C6Bylr_z.mjs → metadata-layout-C6ed-9dl-EF5pCtIH.mjs} +0 -0
- /package/dist/{options-CIVqkc8V.mjs → options-DFPs-tAB.mjs} +0 -0
- /package/dist/{oxc-B3KI3rf_-ghZc3xZ5.mjs → oxc-B3KI3rf_-CHDUXsus.mjs} +0 -0
- /package/dist/{read-credential-keys-77a91T8M-B0eiobOd.mjs → read-credential-keys-77a91T8M-CzXPGxdU.mjs} +0 -0
- /package/dist/{register.handler-CpP_KB2u.mjs → register.handler-D7ZZAnGP.mjs} +0 -0
- /package/dist/{rolldown-runtime-twds-ZHy-RuJszab7.mjs → rolldown-runtime-twds-ZHy-3DMm_Sby.mjs} +0 -0
- /package/dist/{run-polling-DDpkIvwy.mjs → run-polling-Cb4ssXIE.mjs} +0 -0
- /package/dist/{schema-display-DuWBmkwk.mjs → schema-display-CyCWSgfY.mjs} +0 -0
- /package/dist/{skills.handler-CofL4oKs.mjs → skills.handler-C_4VzVmc.mjs} +0 -0
- /package/dist/{spinner-progress-Bt8zXPOc.mjs → spinner-progress-CS1BEdNB.mjs} +0 -0
- /package/dist/{status.handler-6cuHa0R0.mjs → status.handler-Cm9aNUBn.mjs} +0 -0
- /package/dist/{sync-keystroke-agent-skills-D746f2W_.mjs → sync-keystroke-agent-skills-CX9fS5nQ.mjs} +0 -0
- /package/dist/{upgrade.handler-DhKeyCy5.mjs → upgrade.handler-C2eZ_tg3.mjs} +0 -0
- /package/dist/{upload-C1qFWMm0.mjs → upload-C0kaZu08.mjs} +0 -0
|
@@ -1,17 +1,16 @@
|
|
|
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-C6ed-9dl-
|
|
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-BUgIAu2a.mjs";
|
|
4
|
+
import { n as FileMetadataSchema, t as FILE_METADATA_SCHEMA_VERSION } from "./file-metadata-Dwy9KKq_.mjs";
|
|
5
|
+
import { d as getMetadataRoot, l as createMetadataOutputFile, n as BUILD_OUTPUT_DIR_NAME, u as getFileMetadataPath } from "./layout-DRf9qUf8.mjs";
|
|
6
|
+
import { l as require_out, s as sha256String, t as BASE_IGNORE_PATTERNS } from "./metadata-layout-C6ed-9dl-EF5pCtIH.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_-CHDUXsus.mjs";
|
|
8
|
+
import { a as getLocalModuleSpecifier, f as resolveLocalModulePath, l as removeEmptyMetadataDirectories, o as getVariableDeclarators, s as isExportedVariableStatement } from "./source-analysis-DTnwNwKq-DoBxUDCg.mjs";
|
|
9
|
+
import { n as parseRelativeFilePath, r as toRelativeFilePath, t as normalizeRelativeFilePath } from "./normalize-path-CojS-CgQ-D5D0AIHR.mjs";
|
|
11
10
|
import { mkdir, readFile, rm, stat, writeFile } from "node:fs/promises";
|
|
12
11
|
import path from "node:path";
|
|
13
12
|
import { performance } from "node:perf_hooks";
|
|
14
|
-
//#region ../../packages/workflow-builder/dist/build-metadata-
|
|
13
|
+
//#region ../../packages/workflow-builder/dist/build-metadata-qebrtraZ.mjs
|
|
15
14
|
var import_out = /* @__PURE__ */ __toESM(require_out(), 1);
|
|
16
15
|
const IGNORED_IDENTIFIERS = new Set([
|
|
17
16
|
"undefined",
|
|
@@ -303,14 +302,8 @@ function collectLocalCredentialSetIds(sourceFile, importedCoreSymbols) {
|
|
|
303
302
|
if (initializer.type !== "NewExpression") continue;
|
|
304
303
|
const calleeName = identifierName(initializer.callee);
|
|
305
304
|
if (!calleeName || importedCoreSymbols.get(calleeName) !== "CredentialSet") continue;
|
|
306
|
-
const
|
|
307
|
-
|
|
308
|
-
const namespace = readStringProperty(configObject, "namespace");
|
|
309
|
-
if (namespace && RESERVED_NAMESPACES.includes(namespace)) throw new Error(`CredentialSet "${credentialSetId ?? localName}": namespace "${namespace}" is reserved for official Keystroke integrations. Use a different namespace or remove it.`);
|
|
310
|
-
if (credentialSetId) {
|
|
311
|
-
const resolvedId = namespace ? `${namespace}:${credentialSetId}` : credentialSetId;
|
|
312
|
-
credentialSetIds.set(localName, resolvedId);
|
|
313
|
-
}
|
|
305
|
+
const credentialSetId = readStringProperty(getFirstObjectArgument(initializer), "id");
|
|
306
|
+
if (credentialSetId) credentialSetIds.set(localName, credentialSetId);
|
|
314
307
|
}
|
|
315
308
|
return credentialSetIds;
|
|
316
309
|
}
|
|
@@ -341,13 +334,8 @@ function addCredentialRefsFromConfigObject(objectLiteral, localCredentialSetIds,
|
|
|
341
334
|
}
|
|
342
335
|
const unwrapped = unwrapExpression(element);
|
|
343
336
|
if (unwrapped.type === "NewExpression") {
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
if (credentialSetId) {
|
|
347
|
-
const namespace = readStringProperty(configObject, "namespace");
|
|
348
|
-
const resolvedId = namespace ? `${namespace}:${credentialSetId}` : credentialSetId;
|
|
349
|
-
credentials.set(resolvedId, { resolvedId });
|
|
350
|
-
}
|
|
337
|
+
const credentialSetId = readStringProperty(getFirstObjectArgument(unwrapped), "id");
|
|
338
|
+
if (credentialSetId) credentials.set(credentialSetId, { resolvedId: credentialSetId });
|
|
351
339
|
}
|
|
352
340
|
}
|
|
353
341
|
}
|
|
@@ -502,17 +490,13 @@ function getRecognizedDefinition(expression, importedCoreSymbols, importedTrigge
|
|
|
502
490
|
name: displayName,
|
|
503
491
|
sourceNode: callee
|
|
504
492
|
};
|
|
505
|
-
if (importedSymbol === "CredentialSet") {
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
resolvedCredentialSetId: id ? namespace ? `${namespace}:${id}` : id : void 0,
|
|
513
|
-
sourceNode: callee
|
|
514
|
-
};
|
|
515
|
-
}
|
|
493
|
+
if (importedSymbol === "CredentialSet") return {
|
|
494
|
+
exportEntryKind: "credential-set",
|
|
495
|
+
kind: "credential-set",
|
|
496
|
+
name: displayName,
|
|
497
|
+
credentialDefinitionId: readStringProperty(configObject, "id"),
|
|
498
|
+
sourceNode: callee
|
|
499
|
+
};
|
|
516
500
|
if (importedSymbol === "Sandbox") return {
|
|
517
501
|
exportEntryKind: "sandbox",
|
|
518
502
|
kind: "sandbox",
|
|
@@ -618,7 +602,7 @@ function addExportedDefinition(options) {
|
|
|
618
602
|
if (options.record.kind === "credential-set") {
|
|
619
603
|
options.definitions.credentialSets.push({
|
|
620
604
|
credentialSetName: options.record.name ?? options.exportName,
|
|
621
|
-
...options.record.
|
|
605
|
+
...options.record.credentialDefinitionId ? { credentialDefinitionId: options.record.credentialDefinitionId } : {},
|
|
622
606
|
exportName: options.exportName,
|
|
623
607
|
source
|
|
624
608
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { u 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-CS1BEdNB.mjs";
|
|
5
5
|
//#region src/lib/build-progress.ts
|
|
6
6
|
const NEW_STAGE_LABELS = {
|
|
7
7
|
start: "Starting build",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { n as TaskBuildManifestSchema } from "./task-
|
|
4
|
-
import { n as bundleWorkflowTarget } from "./workflow-bundler-BzHk73PM-
|
|
5
|
-
import { t as buildTriggerArtifacts } from "./trigger-artifacts-
|
|
3
|
+
import { n as TaskBuildManifestSchema } from "./task-BBgEvdG1.mjs";
|
|
4
|
+
import { n as bundleWorkflowTarget } from "./workflow-bundler-BzHk73PM-UJQa7Ubk.mjs";
|
|
5
|
+
import { t as buildTriggerArtifacts } from "./trigger-artifacts-RizI57RC-C-yCtEi-.mjs";
|
|
6
6
|
import { performance } from "node:perf_hooks";
|
|
7
|
-
//#region ../../packages/workflow-builder/dist/build-tasks-
|
|
7
|
+
//#region ../../packages/workflow-builder/dist/build-tasks-GVuMLS0h.mjs
|
|
8
8
|
async function buildTaskArtifact(options) {
|
|
9
9
|
const { discoveredWorkflow, taskMetadata, projectRoot } = options;
|
|
10
10
|
const totalStartedAt = performance.now();
|
package/dist/{build-workflows-3fdvdHHf-BDTy9QgT.mjs → build-workflows-Dmzay1vP-DKVuBAjD.mjs}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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-BzHk73PM-
|
|
10
|
-
import { t as buildTriggerArtifacts } from "./trigger-artifacts-
|
|
3
|
+
import { f as deduplicateCredentialRequirementEntries } from "./credential-requirements-FtBk5JVB.mjs";
|
|
4
|
+
import { r as WorkflowBuildManifestSchema, t as WORKFLOW_MANIFEST_GENERATOR } from "./workflow-build-manifest-OPFqFD6f.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-DRf9qUf8.mjs";
|
|
6
|
+
import { t as runWithConcurrency } from "./concurrency-gXn9Rw8x-CaI6Vtbu.mjs";
|
|
7
|
+
import { n as WorkflowLoaderProtocolError, r as WorkflowMetadataLoadError, s as createLoaderProtocolFailure } from "./import-module-DEI7R8Yh-Xz-KAPvB.mjs";
|
|
8
|
+
import { r as toRelativeFilePath } from "./normalize-path-CojS-CgQ-D5D0AIHR.mjs";
|
|
9
|
+
import { n as bundleWorkflowTarget } from "./workflow-bundler-BzHk73PM-UJQa7Ubk.mjs";
|
|
10
|
+
import { t as buildTriggerArtifacts } from "./trigger-artifacts-RizI57RC-C-yCtEi-.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-Dmzay1vP.mjs
|
|
17
17
|
/**
|
|
18
18
|
* Resolves and categorizes all dependencies for a workflow manifest.
|
|
19
19
|
* - Local files: relative paths with SHA256 content hashes
|
|
@@ -157,7 +157,7 @@ async function buildWorkflowArtifacts(options) {
|
|
|
157
157
|
sourceMap: options.sourceMaps
|
|
158
158
|
});
|
|
159
159
|
const bundleMs = performance.now() - totalStartedAt - timing.importMs;
|
|
160
|
-
const manifest = await
|
|
160
|
+
const manifest = await finalizeWorkflowBuildManifest({
|
|
161
161
|
coreManifest: loadedManifest,
|
|
162
162
|
flowGraph,
|
|
163
163
|
exportName: discoveredWorkflow.exportName,
|
|
@@ -234,7 +234,7 @@ function buildCredentialRequirements(flowGraph, credentialsByCallsiteFingerprint
|
|
|
234
234
|
const byStep = {};
|
|
235
235
|
const allCredentialSetIds = /* @__PURE__ */ new Set();
|
|
236
236
|
const toCredentialRequirementEntries = (entries) => entries.map((entry) => ({
|
|
237
|
-
credentialSetId: entry.
|
|
237
|
+
credentialSetId: entry.credentialSetId,
|
|
238
238
|
credentialKeys: entry.credentialKeys,
|
|
239
239
|
...entry.optionalCredentialKeys && entry.optionalCredentialKeys.length > 0 ? { optionalCredentialKeys: entry.optionalCredentialKeys } : {},
|
|
240
240
|
...entry.storedCredentialKeys && entry.storedCredentialKeys.length > 0 ? { storedCredentialKeys: entry.storedCredentialKeys } : {},
|
|
@@ -242,8 +242,8 @@ function buildCredentialRequirements(flowGraph, credentialsByCallsiteFingerprint
|
|
|
242
242
|
...entry.schemaFingerprint ? { schemaFingerprint: entry.schemaFingerprint } : {},
|
|
243
243
|
...entry.proxy ? { proxy: entry.proxy } : {},
|
|
244
244
|
...entry.needsRawSecret === true ? { needsRawSecret: true } : {},
|
|
245
|
-
...entry.
|
|
246
|
-
...typeof entry.
|
|
245
|
+
...entry.needsDynamicResolution === true ? { needsDynamicResolution: true } : {},
|
|
246
|
+
...typeof entry.dynamicResolutionCacheMs === "number" && entry.dynamicResolutionCacheMs > 0 ? { dynamicResolutionCacheMs: entry.dynamicResolutionCacheMs } : {},
|
|
247
247
|
...entry.onCredentialRevoked ? { onCredentialRevoked: entry.onCredentialRevoked } : {},
|
|
248
248
|
...entry.requiredOAuthScopes?.length ? { requiredOAuthScopes: entry.requiredOAuthScopes } : {}
|
|
249
249
|
}));
|
|
@@ -259,8 +259,8 @@ function buildCredentialRequirements(flowGraph, credentialsByCallsiteFingerprint
|
|
|
259
259
|
...entry.schemaFingerprint ? { schemaFingerprint: entry.schemaFingerprint } : {},
|
|
260
260
|
...entry.proxy ? { proxy: entry.proxy } : {},
|
|
261
261
|
...entry.needsRawSecret === true ? { needsRawSecret: true } : {},
|
|
262
|
-
...entry.
|
|
263
|
-
...typeof entry.
|
|
262
|
+
...entry.needsDynamicResolution === true ? { needsDynamicResolution: true } : {},
|
|
263
|
+
...typeof entry.dynamicResolutionCacheMs === "number" && entry.dynamicResolutionCacheMs > 0 ? { dynamicResolutionCacheMs: entry.dynamicResolutionCacheMs } : {},
|
|
264
264
|
...entry.onCredentialRevoked ? { onCredentialRevoked: entry.onCredentialRevoked } : {},
|
|
265
265
|
...operationScopes ? { requiredOAuthScopes: [...operationScopes] } : {}
|
|
266
266
|
})) ?? [];
|
|
@@ -297,7 +297,7 @@ function extractStepsFromFlowGraph(flowGraph) {
|
|
|
297
297
|
};
|
|
298
298
|
return steps;
|
|
299
299
|
}
|
|
300
|
-
async function
|
|
300
|
+
async function finalizeWorkflowBuildManifest(options) {
|
|
301
301
|
const credentials = buildCredentialRequirements(options.flowGraph, options.credentialsByCallsiteFingerprint);
|
|
302
302
|
const workflowSourceFilePath = toRelativeFilePath(options.projectRoot, options.workflowFilePath);
|
|
303
303
|
const dependencies = await resolveDependencies({
|
|
@@ -306,7 +306,7 @@ async function finalizeWorkflowManifest(options) {
|
|
|
306
306
|
externalImports: options.bundle.externalImports,
|
|
307
307
|
packageVersionCache: options.packageVersionCache
|
|
308
308
|
});
|
|
309
|
-
return
|
|
309
|
+
return WorkflowBuildManifestSchema.parse({
|
|
310
310
|
...options.coreManifest,
|
|
311
311
|
exportName: options.exportName,
|
|
312
312
|
workflowSource: {
|
|
@@ -321,7 +321,6 @@ async function finalizeWorkflowManifest(options) {
|
|
|
321
321
|
steps: extractStepsFromFlowGraph(options.flowGraph),
|
|
322
322
|
...credentials ? { credentials } : {},
|
|
323
323
|
buildInfo: {
|
|
324
|
-
...options.coreManifest.buildInfo,
|
|
325
324
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
326
325
|
builderVersion: "workflow-builder",
|
|
327
326
|
generatedBy: WORKFLOW_MANIFEST_GENERATOR,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import { k as CliExitError } from "./keystroke.mjs";
|
|
4
4
|
import { d as trackProject } from "./dist-BF6r1hfv.mjs";
|
|
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-
|
|
5
|
+
import { t as requireWorkflowsDir } from "./resolve-project-bVPMcs-y.mjs";
|
|
6
|
+
import { a as runWorkflowBuild, i as renderBuildSummary, n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-Cmu1TOFu.mjs";
|
|
7
|
+
import { t as createBuildProgress } from "./build-progress-CITED2tv.mjs";
|
|
8
|
+
import { t as withErrorBoundary } from "./error-boundary-B2ZKRkZI.mjs";
|
|
9
9
|
//#region src/commands/workflows/build.handler.ts
|
|
10
10
|
async function handleWorkflowsBuild(options, _ctx) {
|
|
11
11
|
return withErrorBoundary("Build", async () => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { h as AUTH_HINT, n as ui, u as logger, x as toErrorMessage } from "./keystroke.mjs";
|
|
4
4
|
import { c as removeOrgCredentials, r as deleteStoredCredentials } from "./dist-BF6r1hfv.mjs";
|
|
5
|
-
import { createClient } from "./src
|
|
5
|
+
import { createClient } from "./src-D-dFmoAF.mjs";
|
|
6
6
|
//#region src/commands/auth/clear.handler.ts
|
|
7
7
|
async function tryRevokeKey(apiKey, apiKeyId, baseUrl, organizationId) {
|
|
8
8
|
try {
|
|
@@ -45,7 +45,7 @@ function applyTypedOptionsToCommand(command, schema, optionsConfig, skipKeys) {
|
|
|
45
45
|
*/
|
|
46
46
|
function createTypedCommand(params) {
|
|
47
47
|
const { name, description, schema, optionsConfig, resolve, subcommands } = params;
|
|
48
|
-
const command = new Command(name).description(description);
|
|
48
|
+
const command = new Command(name).description(description).enablePositionalOptions();
|
|
49
49
|
for (const opt of createHiddenGlobalOptions()) command.addOption(opt);
|
|
50
50
|
const positionalArguments = params.arguments ?? (params.argument ? [params.argument] : []);
|
|
51
51
|
for (const arg of positionalArguments) {
|
|
@@ -78,7 +78,7 @@ function createTypedCommand(params) {
|
|
|
78
78
|
const globalOpts = cmd.optsWithGlobals();
|
|
79
79
|
if (globalOpts.debug) logger.setDebug(true);
|
|
80
80
|
const contextMode = params.contextMode ?? "full";
|
|
81
|
-
const contextModule = await import("./context-
|
|
81
|
+
const contextModule = await import("./context-DQ4IA0yO.mjs").then((n) => n.n);
|
|
82
82
|
const base = contextMode === "auth" ? await contextModule.resolveAuthContext({
|
|
83
83
|
apiKey: globalOpts.apiKey,
|
|
84
84
|
serverUrl: globalOpts.serverUrl,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
const SHA256HashSchema = z.string().length(64, "Must be 64 characters").regex(/^[a-f0-9]{64}$/i, "Must be hexadecimal").transform((value) => value);
|
|
5
5
|
const JsonSchemaSchema = z.record(z.string(), z.unknown());
|
|
6
|
-
|
|
6
|
+
z.object({
|
|
7
7
|
constant: z.object({
|
|
8
8
|
attempts: z.number().int().min(1).max(10),
|
|
9
9
|
seconds: z.number().positive()
|
|
@@ -17,4 +17,4 @@ const RetryConfigSchema = z.object({
|
|
|
17
17
|
return data.constant !== void 0 !== (data.exponential !== void 0);
|
|
18
18
|
}, { error: "Retry config must specify exactly one of constant or exponential strategy" });
|
|
19
19
|
//#endregion
|
|
20
|
-
export {
|
|
20
|
+
export { SHA256HashSchema as n, JsonSchemaSchema as t };
|
|
@@ -1,19 +1,25 @@
|
|
|
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-BwtBoukr.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/commands/connect/connect.command.ts
|
|
7
7
|
const ConnectOptionsSchema = JsonOptionSchema.extend({
|
|
8
8
|
integrationId: z.string().optional(),
|
|
9
|
-
|
|
9
|
+
connection: z.string().optional().describe("Credential connection path to use when an integration has multiple OAuth paths"),
|
|
10
|
+
input: z.array(z.string()).optional().describe("Connection input as key=value. Repeat for multiple fields."),
|
|
10
11
|
timeout: z.coerce.number().int().min(30).max(600).default(300).describe("Timeout in seconds (default: 5 minutes)"),
|
|
11
12
|
noOpen: z.boolean().optional().describe("Print the authorization URL instead of opening a browser")
|
|
12
13
|
});
|
|
13
14
|
const CONNECT_OPTIONS_CONFIG = {
|
|
14
|
-
|
|
15
|
-
flag: "--
|
|
16
|
-
description: "
|
|
15
|
+
connection: {
|
|
16
|
+
flag: "--connection <id>",
|
|
17
|
+
description: "Credential connection path to use, for example oauth"
|
|
18
|
+
},
|
|
19
|
+
input: {
|
|
20
|
+
flag: "--input <key=value>",
|
|
21
|
+
description: "Connection input as key=value. Repeat for multiple fields.",
|
|
22
|
+
collect: true
|
|
17
23
|
},
|
|
18
24
|
timeout: {
|
|
19
25
|
flag: "--timeout <seconds>",
|
|
@@ -31,7 +37,7 @@ function createConnectCommand() {
|
|
|
31
37
|
description: "Connect an official integration via OAuth (e.g., keystroke connect slack)",
|
|
32
38
|
schema: ConnectOptionsSchema,
|
|
33
39
|
optionsConfig: CONNECT_OPTIONS_CONFIG,
|
|
34
|
-
loadHandler: async () => (await import("./connect.handler-
|
|
40
|
+
loadHandler: async () => (await import("./connect.handler-ToY6qmMz.mjs")).handleConnect,
|
|
35
41
|
argument: {
|
|
36
42
|
name: "integrationId",
|
|
37
43
|
description: "Integration to connect (e.g., slack, linear)",
|