@keystrokehq/cli 0.0.18 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{accept.handler-B7QzdKCh.mjs → accept.handler-CiqqUxKN.mjs} +1 -1
- package/dist/{admin-CYpulx_A.mjs → admin-B0U2Aghv.mjs} +9 -9
- package/dist/{agent-bundle-package-DWV6B_5q-FPT0bJaA.mjs → agent-bundle-package-DWV6B_5q-BsbCEeMw.mjs} +1 -1
- package/dist/{agents-Co6Jy_N8.mjs → agents-DBebUEwk.mjs} +6 -6
- package/dist/{api-DsK8M-ZH.mjs → api-BjBpWWlm.mjs} +4 -5
- package/dist/{api-keys-BUCLzRv_.mjs → api-keys-BHAgmC4E.mjs} +5 -5
- package/dist/{auth-niNm-yNT.mjs → auth-D-PZAjdd.mjs} +6 -6
- package/dist/{auth.handler-BTH-Qb00.mjs → auth.handler-CxTDSO6O.mjs} +3 -3
- package/dist/{build-agents-DseUtzd4-CthuIecx.mjs → build-agents-DseUtzd4-BNtZrqoY.mjs} +5 -5
- package/dist/{build-metadata-C8Ra_Gi--L3l8w0rh.mjs → build-metadata-BB_L45ZS-d5-QLDZ5.mjs} +10 -10
- package/dist/{build-progress-AR8xow4_.mjs → build-progress-BVwDg6lC.mjs} +1 -1
- package/dist/{build-tasks-GVuMLS0h-CCxCqd02.mjs → build-tasks-C09SdfjC-DxKcmENc.mjs} +4 -4
- package/dist/{build-workflows-CV4tBo6S-DhFBlp6m.mjs → build-workflows-BZ_m97Pr-DwcnRlyh.mjs} +9 -10
- package/dist/{build.handler-BmlXPhed.mjs → build.handler-CTX80S1K.mjs} +4 -4
- package/dist/{chunk-CH6r78ws.mjs → chunk-DYxdGL9S.mjs} +2 -1
- package/dist/{clear.handler-BDlwBzX4.mjs → clear.handler-Bksm2HI4.mjs} +1 -1
- package/dist/{commander-BE37hxR3.mjs → commander-DQLrBSIW.mjs} +1 -1
- package/dist/{connect-C9NMD8Ky.mjs → connect-DV_EztVs.mjs} +2 -2
- package/dist/{connect.handler-C7kysvhz.mjs → connect.handler-DbuGt3Xb.mjs} +3 -3
- package/dist/{context-Bid-Rqj7.mjs → context-BUzxM3QI.mjs} +2 -2
- package/dist/{create.handler-Cp9CV6SN.mjs → create.handler-CQCRk-Na.mjs} +1 -1
- package/dist/{credentials-fMfKVlEn.mjs → credentials-m18a1_hw.mjs} +6 -6
- package/dist/{credentials-DUkVbhvj.mjs → credentials-xPtLFTjW.mjs} +2 -2
- package/dist/{current-deployment-workflow-DiwUcKoB.mjs → current-deployment-workflow-pyBoobIm.mjs} +4 -4
- package/dist/{current.handler-eCR4nClu.mjs → current.handler-BJGJgdGP.mjs} +1 -1
- package/dist/{default-urls-CTQqM1_A.mjs → default-urls-BoSm4s9C.mjs} +1 -1
- package/dist/{delete.handler-D4ElSAcr.mjs → delete.handler-DNoehdOH.mjs} +1 -1
- package/dist/{deploy-B7LRWcp6.mjs → deploy-3tHCBGky.mjs} +2 -2
- package/dist/{deploy-DyZh--f7.mjs → deploy-BKjcO_sm.mjs} +1 -1
- package/dist/{deploy-progress-DK87VKJ-.mjs → deploy-progress-CyolzjRB.mjs} +1 -1
- package/dist/{deploy.handler-DVnH-Niv.mjs → deploy.handler-TnPNBYXZ.mjs} +27 -15
- package/dist/{detect-env-access-CwkOYeYM-CNTyUzme.mjs → detect-env-access-CwkOYeYM-D8-hxij0.mjs} +2 -2
- package/dist/{diff.handler-lIA2pRBX.mjs → diff.handler-DO2WzdGB.mjs} +3 -3
- package/dist/{dist-WFPTDQB3.mjs → dist-BGrWr5fp.mjs} +32 -37
- package/dist/{env.handler-BIzQLlmo.mjs → env.handler-C5GNyiJt.mjs} +6 -6
- package/dist/{error-boundary-B8cmSwJH.mjs → error-boundary-GtRvP2oP.mjs} +1 -1
- package/dist/{file-metadata-lrX05iRt.mjs → file-metadata-B8c7Y5yg.mjs} +2 -7
- package/dist/{import-module--8x5SLum-D7EiPjwl.mjs → import-module-y0glInUe-CfNsQNia.mjs} +48 -839
- package/dist/{init-jaqNLGmB.mjs → init-D9RIT2CY.mjs} +3 -3
- package/dist/{init.handler-DamvbPEw.mjs → init.handler-0TJY1YNy.mjs} +2 -2
- package/dist/{inspect.handler-_UcN7dxE.mjs → inspect.handler-BrYFfN4H.mjs} +3 -3
- package/dist/{integration-catalog-m8tj_XlD.mjs → integration-catalog-BrJsBkfx.mjs} +1 -1
- package/dist/integrations-vSyAQ6HA.mjs +185 -0
- package/dist/{invites-VntHNMYk.mjs → invites-BASM4PJr.mjs} +4 -4
- package/dist/{invites.list.handler-CPl4QHfc.mjs → invites.list.handler-c-aw6g5o.mjs} +1 -1
- package/dist/{invites.resend.handler-BAtb3AX4.mjs → invites.resend.handler-MnMEjP_Z.mjs} +1 -1
- package/dist/{invites.revoke.handler-qXOF1Vgx.mjs → invites.revoke.handler-CHX6Z8kj.mjs} +1 -1
- package/dist/keystroke.mjs +25 -24
- package/dist/{list-enrichment-DYvr3XDb.mjs → list-enrichment-DcplcioC.mjs} +1 -1
- package/dist/{list.handler-C_iBLBmS.mjs → list.handler-BBzB1_1l.mjs} +1 -1
- package/dist/{list.handler-pHnPFep8.mjs → list.handler-BsgCd1oF.mjs} +5 -5
- package/dist/{list.handler-BdRsjRlf.mjs → list.handler-CDtjm-6d.mjs} +1 -1
- package/dist/{list.handler-DUz1bJ4x.mjs → list.handler-DJNtXw7C.mjs} +1 -1
- package/dist/{list.handler-CEjKSezx.mjs → list.handler-DXwKdfIv.mjs} +2 -2
- package/dist/{list.handler-CJUFdmaU.mjs → list2.handler-BdE1k2kl.mjs} +3 -3
- package/dist/{listen-DLGZEQRL.mjs → listen-Ca9KdiB2.mjs} +2 -2
- package/dist/{listen.handler-kaAvYk-B.mjs → listen.handler-KWPN03S8.mjs} +2 -2
- package/dist/{logs-CcYqFKRU.mjs → logs-BEDf7hZ0.mjs} +3 -3
- package/dist/{logs.handler-lboRKNoE.mjs → logs.handler-mk1lcZbU.mjs} +2 -2
- package/dist/{members.add.handler-DBydP0SR.mjs → members.add.handler-CTvlxBZU.mjs} +1 -1
- package/dist/{members.invite.handler-D4-7fiYC.mjs → members.invite.handler-wFO0r7Pi.mjs} +1 -1
- package/dist/{members.list.handler-Z4cIbcNg.mjs → members.list.handler-PPdqs4nI.mjs} +1 -1
- package/dist/{members.remove.handler-J56D83O7.mjs → members.remove.handler-a5WI6zE4.mjs} +1 -1
- package/dist/{members.update.handler-B5rBv6dt.mjs → members.update.handler-3xblTzmz.mjs} +1 -1
- package/dist/{metadata-layout-Bv-B0nHj-B1c5giJ7.mjs → metadata-layout-Bv-B0nHj-DtMWZ7Cc.mjs} +1 -1
- package/dist/{normalize-path-CojS-CgQ-D4wSBHgG.mjs → normalize-path-CojS-CgQ-CRqBc6D6.mjs} +1 -1
- package/dist/{org-DGS91uc-.mjs → org-CzLw3neZ.mjs} +15 -15
- package/dist/{orgs.create.handler-B4naNUSN.mjs → orgs.create.handler-CcPpDweZ.mjs} +1 -1
- package/dist/{orgs.get.handler-Ci_JrT08.mjs → orgs.get.handler-BACPg7vR.mjs} +1 -1
- package/dist/{orgs.list.handler-CJ2byIEj.mjs → orgs.list.handler-DEF8OyvM.mjs} +1 -1
- package/dist/{paused.handler-BQSQvQhB.mjs → paused.handler-D4j8_Za4.mjs} +1 -1
- package/dist/{projects-D90_uEC2.mjs → projects-CJCKxG2u.mjs} +4 -4
- package/dist/{projects-fWvIJQ80.mjs → projects-s5ehKLil.mjs} +6 -4
- package/dist/{register.handler-CleQJhtQ.mjs → register.handler-CSvlOMF6.mjs} +18 -9
- package/dist/{requirements.handler-B51sxQSy.mjs → requirements.handler-Bk-sAE9C.mjs} +5 -5
- package/dist/{run-polling-CC6y2XXI.mjs → run-polling-DKclfet-.mjs} +3 -3
- package/dist/{run.handler-B31BpZJP.mjs → run.handler-x0B-CjNF.mjs} +4 -4
- package/dist/{runs-Bg_qDeQi.mjs → runs-DoMVOCNj.mjs} +2 -2
- package/dist/{schemas-B8c7Z5Iy.mjs → schemas-U2OzP9gP.mjs} +3 -2
- package/dist/{skills-sync.handler-DOxudKmV.mjs → skills-sync.handler-CYkCeuQn.mjs} +1 -1
- package/dist/{skills.command-JwKWpGvU.mjs → skills.command-DeAgMGGw.mjs} +4 -4
- package/dist/{source-analysis-BBg2E_6G-Ut7kYHOz.mjs → source-analysis-BBg2E_6G-BJTRqWrQ.mjs} +3 -3
- package/dist/{source-analysis-Cs0CTBQk.mjs → source-analysis-BMMPIHN9.mjs} +1 -1
- package/dist/src-BHTjsZ9V.mjs +456 -0
- package/dist/{src-B0tNjKMg.mjs → src-BYQwp8Ig.mjs} +1 -1
- package/dist/{switch.handler-Cu81T2HY.mjs → switch.handler-CV4ZBXAu.mjs} +1 -1
- package/dist/{sync-CXNveL61.mjs → sync-KCVM02IY.mjs} +2 -2
- package/dist/{sync.handler-7g1yDt0H.mjs → sync.handler-Cuw89341.mjs} +6 -6
- package/dist/task-BSCN9cU4.mjs +945 -0
- package/dist/{task-target-build-BaMtXnN7.mjs → task-target-build-B0HF2_At.mjs} +41 -55
- package/dist/task-target-deploy-ClbwKJ8K.mjs +4 -0
- package/dist/{task-target-deploy-CZBGNC0H-I-tvkGCC.mjs → task-target-deploy-dQYnMO8n-CeTmRcDw.mjs} +15 -17
- package/dist/task-target-deploy-runner.mjs +6 -6
- package/dist/{test-A5hz3c7j.mjs → test-Rm3thni3.mjs} +2 -2
- package/dist/{test.handler-CJtaMZVy.mjs → test.handler-CTd-heRS.mjs} +8 -8
- package/dist/{test.handler-Cq2l7SAr.mjs → test.handler-DhhcsvHN.mjs} +1 -1
- package/dist/{tool.handler-B-mOL128.mjs → tool.handler-C3LNyQbc.mjs} +9 -63
- package/dist/{trigger-artifacts-RizI57RC-DjhOsdOm.mjs → trigger-artifacts-BcRScRSp-DqFgzl_B.mjs} +53 -119
- package/dist/trigger-manifest-DTni4NaZ.mjs +42 -0
- package/dist/{upgrade-DhfpoyRV.mjs → upgrade-Cf7y38xR.mjs} +2 -2
- package/dist/{upload-BbcMkyVl.mjs → upload-CJWApEgz.mjs} +1 -1
- package/dist/{upload.handler-D3-W_1kq.mjs → upload.handler-BHIWYPph.mjs} +7 -7
- package/dist/{users.get.handler-Bd0OBI-E.mjs → users.get.handler-spWaHG8h.mjs} +1 -1
- package/dist/{users.list.handler-CacJz6eC.mjs → users.list.handler-DLuU7cd_.mjs} +1 -1
- package/dist/{users.set-role.handler-bZMQtUR0.mjs → users.set-role.handler-CojFmpcD.mjs} +1 -1
- package/dist/{utils-BMUWnz1P.mjs → utils-Ddltm1sR.mjs} +1 -1
- package/dist/{validate.handler-Ccq66ki4.mjs → validate.handler-DIJBuX1P.mjs} +4 -4
- package/dist/{workflow-build-_WNsLKwW.mjs → workflow-build-IGYhEC8Y.mjs} +22 -22
- package/dist/{workflow-bundler-BzHk73PM-WI31RJjH.mjs → workflow-bundler-BzHk73PM-Cs-4Ml-p.mjs} +2 -2
- package/dist/{workflows-Dy2M9bEr.mjs → workflows-MANdvLft.mjs} +19 -21
- package/dist/{writer-B-SpZ0G2-tq1MFgid.mjs → writer-byNNUjRm-w5O7-VT_.mjs} +24 -33
- package/package.json +11 -11
- package/dist/common-AK0q0Oz0.mjs +0 -20
- package/dist/credential-requirements-DrrQ9x9P.mjs +0 -250
- package/dist/cron-parser-Dw_cWzFu.mjs +0 -393
- package/dist/declared-credential-requirements-D6KT-r-e.mjs +0 -103
- package/dist/integrations-DRL3JmC8.mjs +0 -85
- package/dist/task-BguWXIiH.mjs +0 -486
- package/dist/task-target-deploy-DmpCWE3u.mjs +0 -4
- package/dist/trigger-manifest-Bq2zRbkV.mjs +0 -29
- package/dist/workflow-build-manifest-B2GqHyWE.mjs +0 -259
- /package/dist/{agent-manifest-tIsqF2OP.mjs → agent-manifest-CZ7BeUSG.mjs} +0 -0
- /package/dist/{browser-BpJ8ut9z.mjs → browser-Cu4k-wT_.mjs} +0 -0
- /package/dist/{clear-cache.handler-CTLQ1PIN.mjs → clear-cache.handler-8RFmjHoo.mjs} +0 -0
- /package/dist/{clear.handler-C_pXAeBG.mjs → clear.handler-mfNmIUYP.mjs} +0 -0
- /package/dist/{concurrency-gXn9Rw8x-BTlfau8D.mjs → concurrency-gXn9Rw8x-BSBbRfVp.mjs} +0 -0
- /package/dist/{credential-env-map-BA4LNI7x.mjs → credential-env-map-qLCR_QbO.mjs} +0 -0
- /package/dist/{credential-schema-mismatch-z74ud-YZ.mjs → credential-schema-mismatch-BHI_B-U-.mjs} +0 -0
- /package/dist/{diff-utils-B0ED-Igv.mjs → diff-utils-x5pi8SrL.mjs} +0 -0
- /package/dist/{layout-P1v-Gssz.mjs → layout-DRf9qUf8.mjs} +0 -0
- /package/dist/{list.handler-BLkQKiV1.mjs → list.handler-CynN-ezD.mjs} +0 -0
- /package/dist/{logs.handler-DyRoevtO.mjs → logs.handler-CcA1UzJm.mjs} +0 -0
- /package/dist/{oxc-B3KI3rf_-Cvx4Z-4H.mjs → oxc-B3KI3rf_-Cnk0L10M.mjs} +0 -0
- /package/dist/{read-credential-keys-77a91T8M-B0eiobOd.mjs → read-credential-keys-77a91T8M-CzXPGxdU.mjs} +0 -0
- /package/dist/{resolve-project-CNQtOWE4.mjs → resolve-project-CWP2fji3.mjs} +0 -0
- /package/dist/{rolldown-runtime-twds-ZHy-8uqgIurC.mjs → rolldown-runtime-twds-ZHy-BoF7MLzP.mjs} +0 -0
- /package/dist/{run-polling-DARidqo-.mjs → run-polling-CzyVv7Ba.mjs} +0 -0
- /package/dist/{schema-BjH_e4Fo.mjs → schema-CvSZqa3t.mjs} +0 -0
- /package/dist/{schema-display-NVEl_DFY.mjs → schema-display-DxLA3j5H.mjs} +0 -0
- /package/dist/{skill-installer-BBgN2tzW.mjs → skill-installer-CYFshTBy.mjs} +0 -0
- /package/dist/{skills.handler-Do9I3dQS.mjs → skills.handler-Bma-MJX-.mjs} +0 -0
- /package/dist/{spinner-progress-Bx-fYItP.mjs → spinner-progress-DV28G4tP.mjs} +0 -0
- /package/dist/{status.handler-BsVtDW_V.mjs → status.handler-BOV0eX3J.mjs} +0 -0
- /package/dist/{types-BMBuhHhW.mjs → types-DamInJD6.mjs} +0 -0
- /package/dist/{upgrade.handler-5qSzPC7D.mjs → upgrade.handler-Bz_oQcAw.mjs} +0 -0
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { n as __exportAll, r as __reExport } from "./chunk-DYxdGL9S.mjs";
|
|
4
|
+
import { a as CapturedVariableValueTypeSchema, i as CapturedVariableSourceKindSchema, n as CallsiteFingerprintSchema, o as ImportSourceSchema, r as CapturedVariableSchema, s as SourceLocationSchema, t as CallKindSchema } from "./source-analysis-BMMPIHN9.mjs";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
import { createHash } from "node:crypto";
|
|
7
|
+
const SHA256HashSchema = z.string().length(64, "Must be 64 characters").regex(/^[a-f0-9]{64}$/i, "Must be hexadecimal").transform((value) => value);
|
|
8
|
+
const JsonSchemaSchema = z.record(z.string(), z.unknown());
|
|
9
|
+
const RetryConfigSchema = z.object({
|
|
10
|
+
constant: z.object({
|
|
11
|
+
attempts: z.number().int().min(1).max(10),
|
|
12
|
+
seconds: z.number().positive()
|
|
13
|
+
}).optional(),
|
|
14
|
+
exponential: z.object({
|
|
15
|
+
attempts: z.number().int().min(1).max(10),
|
|
16
|
+
base: z.number().min(1).optional(),
|
|
17
|
+
multiplier: z.number().positive().optional()
|
|
18
|
+
}).optional()
|
|
19
|
+
}).refine((data) => {
|
|
20
|
+
return data.constant !== void 0 !== (data.exponential !== void 0);
|
|
21
|
+
}, { error: "Retry config must specify exactly one of constant or exponential strategy" });
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region ../../packages/workflow-build-contracts/src/credential-requirements.ts
|
|
24
|
+
var credential_requirements_exports = /* @__PURE__ */ __exportAll({});
|
|
25
|
+
import * as import__keystrokehq_core_artifacts from "@keystrokehq/core/artifacts";
|
|
26
|
+
__reExport(credential_requirements_exports, import__keystrokehq_core_artifacts);
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region ../../packages/workflow-build-contracts/src/schema-fingerprint.ts
|
|
29
|
+
/**
|
|
30
|
+
* schema-fingerprint.ts
|
|
31
|
+
*
|
|
32
|
+
* Computes a deterministic fingerprint (hash) of a credential set's schema.
|
|
33
|
+
* Used as a persistence-layer identity stamp: the workflow-builder stamps each
|
|
34
|
+
* credential requirement with its fingerprint at build time, the server stamps
|
|
35
|
+
* each vault row with the fingerprint at upload time, and the executor's
|
|
36
|
+
* credential resolver compares the two at read time so schema drift surfaces
|
|
37
|
+
* as a `CredentialSchemaMismatchError` rather than a silent decode into a
|
|
38
|
+
* stale shape.
|
|
39
|
+
*
|
|
40
|
+
* The fingerprint is deterministic: identical JSON schemas always produce the
|
|
41
|
+
* same hash regardless of property ordering, timestamps, or other
|
|
42
|
+
* non-structural differences.
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* This is the *persistence* fingerprint. The construction-time registry in
|
|
46
|
+
* `credential-set/registry.ts` uses a different (Zod-structural) fingerprint
|
|
47
|
+
* purely for in-process identity collision detection; the two fingerprints
|
|
48
|
+
* serve different purposes and do not need to match.
|
|
49
|
+
*/
|
|
50
|
+
/**
|
|
51
|
+
* Compute a deterministic fingerprint for a JSON schema object.
|
|
52
|
+
*
|
|
53
|
+
* The schema is the output of `schemaToJsonSchema(zodSchema)` — a plain JSON
|
|
54
|
+
* object describing the shape of the Zod schema.
|
|
55
|
+
*
|
|
56
|
+
* Properties are sorted recursively before hashing to ensure deterministic
|
|
57
|
+
* output regardless of insertion order.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const auth = schemaToJsonSchema(credentialSet.auth);
|
|
62
|
+
* const stored = credentialSet.stored ? schemaToJsonSchema(credentialSet.stored) : undefined;
|
|
63
|
+
* const fingerprint = computeSchemaFingerprint(auth, stored);
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @see CredentialSchemaMismatchError
|
|
67
|
+
*/
|
|
68
|
+
function computeSchemaFingerprint(authSchema, storedSchema) {
|
|
69
|
+
const normalized = sortDeep({
|
|
70
|
+
auth: authSchema,
|
|
71
|
+
...storedSchema ? { stored: storedSchema } : {}
|
|
72
|
+
});
|
|
73
|
+
const json = JSON.stringify(normalized);
|
|
74
|
+
return createHash("sha256").update(json).digest("hex").substring(0, 16);
|
|
75
|
+
}
|
|
76
|
+
function sortDeep(value) {
|
|
77
|
+
if (value === null || value === void 0) return value;
|
|
78
|
+
if (Array.isArray(value)) return value.map(sortDeep);
|
|
79
|
+
if (typeof value === "object") {
|
|
80
|
+
const sorted = {};
|
|
81
|
+
for (const key of Object.keys(value).sort()) sorted[key] = sortDeep(value[key]);
|
|
82
|
+
return sorted;
|
|
83
|
+
}
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region ../../packages/workflow-build-contracts/src/declared-credential-requirements.ts
|
|
88
|
+
function schemaToJsonSchema(schema) {
|
|
89
|
+
return JsonSchemaSchema.parse({ ...z.toJSONSchema(schema, { unrepresentable: "any" }) });
|
|
90
|
+
}
|
|
91
|
+
function readSchemaKeys(schema, propertyKey) {
|
|
92
|
+
if (schema === null || typeof schema !== "object") return [];
|
|
93
|
+
const candidate = schema[propertyKey];
|
|
94
|
+
if (candidate === null || typeof candidate !== "object" || Array.isArray(candidate)) return [];
|
|
95
|
+
return Object.keys(candidate).sort();
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Returns sorted keys whose Zod schema field is wrapped in `z.optional()` or `z.default()`.
|
|
99
|
+
* Both mean the vault can omit the key at runtime.
|
|
100
|
+
*/
|
|
101
|
+
function readOptionalSchemaKeys(schema) {
|
|
102
|
+
if (schema === null || typeof schema !== "object") return [];
|
|
103
|
+
const shape = schema.shape;
|
|
104
|
+
if (shape === null || typeof shape !== "object" || Array.isArray(shape)) return [];
|
|
105
|
+
return Object.entries(shape).filter(([, field]) => field instanceof z.ZodOptional || field instanceof z.ZodDefault).map(([key]) => key).sort();
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Returns sorted keys that are NOT listed in the JSON Schema `required` array.
|
|
109
|
+
*/
|
|
110
|
+
function readOptionalJsonSchemaKeys(schema) {
|
|
111
|
+
if (schema === null || typeof schema !== "object") return [];
|
|
112
|
+
const record = schema;
|
|
113
|
+
const properties = record.properties;
|
|
114
|
+
if (properties === null || typeof properties !== "object" || Array.isArray(properties)) return [];
|
|
115
|
+
const requiredSet = new Set(Array.isArray(record.required) ? record.required : []);
|
|
116
|
+
return Object.keys(properties).filter((key) => !requiredSet.has(key)).sort();
|
|
117
|
+
}
|
|
118
|
+
function toDeclaredCredentialRequirement(credentialSet) {
|
|
119
|
+
const optionalAuthKeys = credentialSet.optionalCredentialKeys;
|
|
120
|
+
const optionalStoredKeys = credentialSet.optionalStoredCredentialKeys;
|
|
121
|
+
const schemaFingerprint = computeSchemaFingerprint(schemaToJsonSchema(credentialSet.auth));
|
|
122
|
+
const onCredentialRevoked = credentialSet.onCredentialRevoked;
|
|
123
|
+
return {
|
|
124
|
+
credentialSetId: credentialSet.id,
|
|
125
|
+
credentialKeys: [...credentialSet.credentialKeys],
|
|
126
|
+
...optionalAuthKeys.length > 0 ? { optionalCredentialKeys: [...optionalAuthKeys] } : {},
|
|
127
|
+
storedCredentialKeys: [...credentialSet.storedCredentialKeys],
|
|
128
|
+
...optionalStoredKeys.length > 0 ? { optionalStoredCredentialKeys: [...optionalStoredKeys] } : {},
|
|
129
|
+
schemaFingerprint,
|
|
130
|
+
...onCredentialRevoked ? { onCredentialRevoked } : {},
|
|
131
|
+
...credentialSet.proxy ? { proxy: credentialSet.proxy } : {},
|
|
132
|
+
...credentialSet.needsRawSecret === true ? { needsRawSecret: true } : {}
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
function toDeclaredCredentialRequirements(credentialSets) {
|
|
136
|
+
return credentialSets.map(toDeclaredCredentialRequirement);
|
|
137
|
+
}
|
|
138
|
+
function manifestToDeclaredCredentialRequirement(credentialSet) {
|
|
139
|
+
const authKeys = readSchemaKeys(credentialSet.auth, "properties");
|
|
140
|
+
const optionalAuthKeys = readOptionalJsonSchemaKeys(credentialSet.auth);
|
|
141
|
+
const storedSchema = credentialSet.auth;
|
|
142
|
+
const storedKeys = readSchemaKeys(storedSchema, "properties");
|
|
143
|
+
const optionalStoredKeys = readOptionalJsonSchemaKeys(storedSchema);
|
|
144
|
+
const schemaFingerprint = credentialSet.auth ? computeSchemaFingerprint(credentialSet.auth) : void 0;
|
|
145
|
+
const onCredentialRevoked = credentialSet.onCredentialRevoked;
|
|
146
|
+
return {
|
|
147
|
+
credentialSetId: credentialSet.id,
|
|
148
|
+
credentialKeys: authKeys,
|
|
149
|
+
...optionalAuthKeys.length > 0 ? { optionalCredentialKeys: optionalAuthKeys } : {},
|
|
150
|
+
storedCredentialKeys: storedKeys,
|
|
151
|
+
...optionalStoredKeys.length > 0 ? { optionalStoredCredentialKeys: optionalStoredKeys } : {},
|
|
152
|
+
...schemaFingerprint ? { schemaFingerprint } : {},
|
|
153
|
+
...onCredentialRevoked ? { onCredentialRevoked } : {},
|
|
154
|
+
...credentialSet.proxy ? { proxy: credentialSet.proxy } : {},
|
|
155
|
+
...credentialSet.needsRawSecret === true ? { needsRawSecret: true } : {}
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
function manifestsToDeclaredCredentialRequirements(credentialSets) {
|
|
159
|
+
return credentialSets.map(manifestToDeclaredCredentialRequirement);
|
|
160
|
+
}
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region ../../packages/workflow-build-contracts/src/flow-graph-schema.ts
|
|
163
|
+
const DecisionKindSchema = z.enum([
|
|
164
|
+
"if",
|
|
165
|
+
"switch",
|
|
166
|
+
"ternary"
|
|
167
|
+
]);
|
|
168
|
+
const ParallelKindSchema = z.enum([
|
|
169
|
+
"all",
|
|
170
|
+
"race",
|
|
171
|
+
"allSettled",
|
|
172
|
+
"any"
|
|
173
|
+
]);
|
|
174
|
+
const LoopKindSchema = z.enum([
|
|
175
|
+
"for",
|
|
176
|
+
"for-of",
|
|
177
|
+
"for-in",
|
|
178
|
+
"while",
|
|
179
|
+
"do-while"
|
|
180
|
+
]);
|
|
181
|
+
const ExitKindSchema = z.enum(["return", "throw"]);
|
|
182
|
+
const FlowBranchKindSchema = z.enum([
|
|
183
|
+
"then",
|
|
184
|
+
"else",
|
|
185
|
+
"parallel-branch"
|
|
186
|
+
]);
|
|
187
|
+
const FlowNodeTypeSchema = z.enum([
|
|
188
|
+
"entry",
|
|
189
|
+
"step",
|
|
190
|
+
"code-block",
|
|
191
|
+
"decision",
|
|
192
|
+
"merge",
|
|
193
|
+
"fork",
|
|
194
|
+
"join",
|
|
195
|
+
"parallel-map",
|
|
196
|
+
"loop",
|
|
197
|
+
"exit"
|
|
198
|
+
]);
|
|
199
|
+
const FlowEdgeTypeSchema = z.enum([
|
|
200
|
+
"default",
|
|
201
|
+
"true-branch",
|
|
202
|
+
"false-branch",
|
|
203
|
+
"merge",
|
|
204
|
+
"loop-entry",
|
|
205
|
+
"loop-back",
|
|
206
|
+
"parallel",
|
|
207
|
+
"return"
|
|
208
|
+
]);
|
|
209
|
+
const FlowStatementSchema = z.object({
|
|
210
|
+
kind: z.string().min(1),
|
|
211
|
+
label: z.string().min(1),
|
|
212
|
+
sourceText: z.string().min(1)
|
|
213
|
+
});
|
|
214
|
+
const EntryNodeDataSchema = z.object({ kind: z.literal("entry") });
|
|
215
|
+
const StepNodeDataSchema = z.object({
|
|
216
|
+
kind: z.literal("call"),
|
|
217
|
+
callKind: CallKindSchema,
|
|
218
|
+
stepName: z.string().min(1),
|
|
219
|
+
callsiteFingerprint: CallsiteFingerprintSchema.optional(),
|
|
220
|
+
exportName: z.string().min(1).optional(),
|
|
221
|
+
stepId: z.string().min(1).optional(),
|
|
222
|
+
awaited: z.boolean().optional(),
|
|
223
|
+
dynamic: z.boolean().optional(),
|
|
224
|
+
recursive: z.boolean().optional(),
|
|
225
|
+
importSource: ImportSourceSchema.optional(),
|
|
226
|
+
outputBinding: z.string().min(1).optional(),
|
|
227
|
+
description: z.string().optional(),
|
|
228
|
+
inputSchema: JsonSchemaSchema.optional(),
|
|
229
|
+
outputSchema: JsonSchemaSchema.optional(),
|
|
230
|
+
source: SourceLocationSchema.optional(),
|
|
231
|
+
astKind: z.string().min(1).optional(),
|
|
232
|
+
scopeOverride: credential_requirements_exports.IntegrationScopeSchema.optional(),
|
|
233
|
+
credentialSets: z.array(credential_requirements_exports.ResolvedCredentialSetSchema).optional(),
|
|
234
|
+
requiredOAuthScopes: z.array(z.string()).optional()
|
|
235
|
+
});
|
|
236
|
+
const CodeBlockNodeDataSchema = z.object({
|
|
237
|
+
kind: z.literal("code-block"),
|
|
238
|
+
statements: z.array(FlowStatementSchema)
|
|
239
|
+
});
|
|
240
|
+
const DecisionNodeDataSchema = z.object({
|
|
241
|
+
kind: z.literal("decision"),
|
|
242
|
+
decisionKind: DecisionKindSchema.optional(),
|
|
243
|
+
source: SourceLocationSchema.optional(),
|
|
244
|
+
astKind: z.string().min(1).optional(),
|
|
245
|
+
conditionText: z.string().optional()
|
|
246
|
+
});
|
|
247
|
+
const MergeNodeDataSchema = z.object({
|
|
248
|
+
kind: z.literal("merge"),
|
|
249
|
+
source: SourceLocationSchema.optional()
|
|
250
|
+
});
|
|
251
|
+
const ForkNodeDataSchema = z.object({
|
|
252
|
+
kind: z.literal("fork"),
|
|
253
|
+
parallelKind: ParallelKindSchema.optional(),
|
|
254
|
+
preStatements: z.array(FlowStatementSchema).optional(),
|
|
255
|
+
source: SourceLocationSchema.optional(),
|
|
256
|
+
astKind: z.string().min(1).optional()
|
|
257
|
+
});
|
|
258
|
+
const JoinNodeDataSchema = z.object({
|
|
259
|
+
kind: z.literal("join"),
|
|
260
|
+
outputBinding: z.string().min(1).optional(),
|
|
261
|
+
source: SourceLocationSchema.optional()
|
|
262
|
+
});
|
|
263
|
+
const ParallelMapNodeDataSchema = z.object({
|
|
264
|
+
kind: z.literal("parallel-map"),
|
|
265
|
+
parallelKind: ParallelKindSchema.optional(),
|
|
266
|
+
iterationExpression: z.string().optional(),
|
|
267
|
+
stepNames: z.array(z.string()).optional(),
|
|
268
|
+
outputBinding: z.string().min(1).optional(),
|
|
269
|
+
preStatements: z.array(FlowStatementSchema).optional(),
|
|
270
|
+
source: SourceLocationSchema.optional(),
|
|
271
|
+
astKind: z.string().min(1).optional()
|
|
272
|
+
});
|
|
273
|
+
const LoopNodeDataSchema = z.object({
|
|
274
|
+
kind: z.literal("loop"),
|
|
275
|
+
loopKind: LoopKindSchema.optional(),
|
|
276
|
+
source: SourceLocationSchema.optional(),
|
|
277
|
+
astKind: z.string().min(1).optional(),
|
|
278
|
+
conditionText: z.string().optional()
|
|
279
|
+
});
|
|
280
|
+
const ExitNodeDataSchema = z.object({
|
|
281
|
+
kind: z.literal("exit"),
|
|
282
|
+
exitKind: ExitKindSchema,
|
|
283
|
+
sourceText: z.string().optional(),
|
|
284
|
+
source: SourceLocationSchema.optional(),
|
|
285
|
+
astKind: z.string().min(1).optional()
|
|
286
|
+
});
|
|
287
|
+
const FlowNodeDataSchema = z.discriminatedUnion("kind", [
|
|
288
|
+
EntryNodeDataSchema,
|
|
289
|
+
StepNodeDataSchema,
|
|
290
|
+
CodeBlockNodeDataSchema,
|
|
291
|
+
DecisionNodeDataSchema,
|
|
292
|
+
MergeNodeDataSchema,
|
|
293
|
+
ForkNodeDataSchema,
|
|
294
|
+
JoinNodeDataSchema,
|
|
295
|
+
ParallelMapNodeDataSchema,
|
|
296
|
+
LoopNodeDataSchema,
|
|
297
|
+
ExitNodeDataSchema
|
|
298
|
+
]);
|
|
299
|
+
const FlowEdgeDataSchema = z.object({ branchKind: FlowBranchKindSchema.optional() }).catchall(z.unknown());
|
|
300
|
+
const FlowPositionSchema = z.object({
|
|
301
|
+
x: z.number().finite(),
|
|
302
|
+
y: z.number().finite()
|
|
303
|
+
});
|
|
304
|
+
const FlowNodeSchema = z.object({
|
|
305
|
+
id: z.string().min(1),
|
|
306
|
+
type: FlowNodeTypeSchema,
|
|
307
|
+
label: z.string(),
|
|
308
|
+
position: FlowPositionSchema,
|
|
309
|
+
data: FlowNodeDataSchema
|
|
310
|
+
});
|
|
311
|
+
const FlowEdgeSchema = z.object({
|
|
312
|
+
id: z.string().min(1),
|
|
313
|
+
source: z.string().min(1),
|
|
314
|
+
target: z.string().min(1),
|
|
315
|
+
type: FlowEdgeTypeSchema,
|
|
316
|
+
label: z.string().optional(),
|
|
317
|
+
data: FlowEdgeDataSchema.optional()
|
|
318
|
+
});
|
|
319
|
+
const FlowGraphSchema = z.object({
|
|
320
|
+
nodes: z.array(FlowNodeSchema),
|
|
321
|
+
edges: z.array(FlowEdgeSchema),
|
|
322
|
+
entryPoint: z.string().min(1),
|
|
323
|
+
exitPoints: z.array(z.string().min(1)),
|
|
324
|
+
generatedAt: z.iso.datetime(),
|
|
325
|
+
diagnostics: z.array(z.string())
|
|
326
|
+
});
|
|
327
|
+
//#endregion
|
|
328
|
+
//#region ../../packages/workflow-build-contracts/src/workflow-build-manifest.ts
|
|
329
|
+
const WORKFLOW_MANIFEST_GENERATOR = "local-build";
|
|
330
|
+
const WORKFLOW_MANIFEST_SCHEMA_VERSION = "1.0.0";
|
|
331
|
+
const WORKFLOW_MANIFEST_GENERATOR_VERSION = "1.1.0";
|
|
332
|
+
const WorkflowIdentitySchema = z.object({
|
|
333
|
+
name: z.string().trim().min(1).max(255),
|
|
334
|
+
description: z.string().trim().min(1).optional(),
|
|
335
|
+
tags: z.array(z.string()).optional()
|
|
336
|
+
});
|
|
337
|
+
const StepIdentitySchema = z.object({
|
|
338
|
+
name: z.string().trim().min(1).max(255),
|
|
339
|
+
description: z.string().trim().min(1).optional(),
|
|
340
|
+
tags: z.array(z.string()).optional()
|
|
341
|
+
});
|
|
342
|
+
const WorkflowIOSchema = z.object({
|
|
343
|
+
input: JsonSchemaSchema.nullable(),
|
|
344
|
+
output: JsonSchemaSchema.nullable()
|
|
345
|
+
});
|
|
346
|
+
const BuildInfoSchema = z.object({
|
|
347
|
+
timestamp: z.iso.datetime(),
|
|
348
|
+
builderVersion: z.string().min(1),
|
|
349
|
+
generatedBy: z.literal(WORKFLOW_MANIFEST_GENERATOR),
|
|
350
|
+
gitCommit: z.string().optional(),
|
|
351
|
+
gitBranch: z.string().optional(),
|
|
352
|
+
gitIsDirty: z.boolean().optional(),
|
|
353
|
+
nodeVersion: z.string().min(1),
|
|
354
|
+
platform: z.string().min(1),
|
|
355
|
+
sourceChecksumAlgorithm: z.enum(["sha256"]),
|
|
356
|
+
sourceChecksum: z.string().length(64),
|
|
357
|
+
generatedFiles: z.array(z.string().min(1))
|
|
358
|
+
});
|
|
359
|
+
const ManifestDependenciesSchema = z.object({
|
|
360
|
+
localFiles: z.record(z.string(), z.string()),
|
|
361
|
+
packages: z.record(z.string(), z.string()),
|
|
362
|
+
workspacePackages: z.record(z.string(), z.string()),
|
|
363
|
+
builtins: z.array(z.string())
|
|
364
|
+
});
|
|
365
|
+
const DurationSchema = z.union([z.number().int().positive().finite(), z.string().regex(/^[1-9]\d*[smhdwy]$/)]);
|
|
366
|
+
const WorkflowTriggerBindingSchema = z.object({
|
|
367
|
+
/** Authored trigger name (from `xxxTrigger({ name: ... })`). */
|
|
368
|
+
authoredTriggerId: z.string().min(1),
|
|
369
|
+
triggerType: z.enum([
|
|
370
|
+
"webhook",
|
|
371
|
+
"cron",
|
|
372
|
+
"polling"
|
|
373
|
+
]),
|
|
374
|
+
hasTransform: z.boolean(),
|
|
375
|
+
narrowedFrom: z.string().optional(),
|
|
376
|
+
lineage: z.array(z.string()).optional()
|
|
377
|
+
});
|
|
378
|
+
const WorkflowCoreManifestSchema = z.object({
|
|
379
|
+
schemaVersion: z.literal(WORKFLOW_MANIFEST_SCHEMA_VERSION),
|
|
380
|
+
id: z.string().min(1),
|
|
381
|
+
name: z.string().trim().min(1).max(255),
|
|
382
|
+
description: z.string().trim().min(1).optional(),
|
|
383
|
+
tags: z.array(z.string()).optional(),
|
|
384
|
+
exportName: z.string().min(1),
|
|
385
|
+
workflowSchemas: WorkflowIOSchema,
|
|
386
|
+
workflowGlobals: JsonSchemaSchema.optional(),
|
|
387
|
+
timeout: DurationSchema.optional(),
|
|
388
|
+
triggers: z.array(WorkflowTriggerBindingSchema).optional()
|
|
389
|
+
});
|
|
390
|
+
const WorkflowBuildManifestSchema = WorkflowCoreManifestSchema.extend({
|
|
391
|
+
workflowSource: SourceLocationSchema.optional(),
|
|
392
|
+
buildInfo: BuildInfoSchema,
|
|
393
|
+
dependencies: ManifestDependenciesSchema,
|
|
394
|
+
hasCycles: z.boolean().optional(),
|
|
395
|
+
credentials: credential_requirements_exports.CredentialRequirementsSchema.optional(),
|
|
396
|
+
sandboxes: z.array(z.record(z.string(), z.unknown())).optional(),
|
|
397
|
+
steps: z.record(z.string(), credential_requirements_exports.WorkflowStepEntrySchema)
|
|
398
|
+
});
|
|
399
|
+
const UploadBundleOptionsSchema = z.object({
|
|
400
|
+
organizationId: z.string(),
|
|
401
|
+
workflowId: z.string(),
|
|
402
|
+
bundle: z.instanceof(Uint8Array).optional(),
|
|
403
|
+
manifest: WorkflowBuildManifestSchema,
|
|
404
|
+
sourcePath: z.string().optional(),
|
|
405
|
+
triggers: z.array(credential_requirements_exports.TriggerUploadDataSchema).optional(),
|
|
406
|
+
bundleSize: z.number().optional(),
|
|
407
|
+
bundleHash: SHA256HashSchema.optional(),
|
|
408
|
+
skipVersionBump: z.boolean().optional(),
|
|
409
|
+
projectRoot: z.string().optional(),
|
|
410
|
+
projectId: z.uuid(),
|
|
411
|
+
flowJson: FlowGraphSchema.optional(),
|
|
412
|
+
deploymentSnapshotOnly: z.boolean().optional()
|
|
413
|
+
});
|
|
414
|
+
//#endregion
|
|
415
|
+
//#region ../../packages/workflow-build-contracts/src/index.ts
|
|
416
|
+
var src_exports = /* @__PURE__ */ __exportAll({
|
|
417
|
+
BuildInfoSchema: () => BuildInfoSchema,
|
|
418
|
+
CallKindSchema: () => CallKindSchema,
|
|
419
|
+
CallsiteFingerprintSchema: () => CallsiteFingerprintSchema,
|
|
420
|
+
CapturedVariableSchema: () => CapturedVariableSchema,
|
|
421
|
+
CapturedVariableSourceKindSchema: () => CapturedVariableSourceKindSchema,
|
|
422
|
+
CapturedVariableValueTypeSchema: () => CapturedVariableValueTypeSchema,
|
|
423
|
+
FlowBranchKindSchema: () => FlowBranchKindSchema,
|
|
424
|
+
FlowEdgeDataSchema: () => FlowEdgeDataSchema,
|
|
425
|
+
FlowEdgeSchema: () => FlowEdgeSchema,
|
|
426
|
+
FlowEdgeTypeSchema: () => FlowEdgeTypeSchema,
|
|
427
|
+
FlowGraphSchema: () => FlowGraphSchema,
|
|
428
|
+
FlowNodeDataSchema: () => FlowNodeDataSchema,
|
|
429
|
+
FlowNodeSchema: () => FlowNodeSchema,
|
|
430
|
+
FlowNodeTypeSchema: () => FlowNodeTypeSchema,
|
|
431
|
+
ImportSourceSchema: () => ImportSourceSchema,
|
|
432
|
+
JsonSchemaSchema: () => JsonSchemaSchema,
|
|
433
|
+
ManifestDependenciesSchema: () => ManifestDependenciesSchema,
|
|
434
|
+
RetryConfigSchema: () => RetryConfigSchema,
|
|
435
|
+
SHA256HashSchema: () => SHA256HashSchema,
|
|
436
|
+
SourceLocationSchema: () => SourceLocationSchema,
|
|
437
|
+
StepIdentitySchema: () => StepIdentitySchema,
|
|
438
|
+
UploadBundleOptionsSchema: () => UploadBundleOptionsSchema,
|
|
439
|
+
WORKFLOW_MANIFEST_GENERATOR: () => WORKFLOW_MANIFEST_GENERATOR,
|
|
440
|
+
WORKFLOW_MANIFEST_GENERATOR_VERSION: () => WORKFLOW_MANIFEST_GENERATOR_VERSION,
|
|
441
|
+
WORKFLOW_MANIFEST_SCHEMA_VERSION: () => WORKFLOW_MANIFEST_SCHEMA_VERSION,
|
|
442
|
+
WorkflowBuildManifestSchema: () => WorkflowBuildManifestSchema,
|
|
443
|
+
WorkflowCoreManifestSchema: () => WorkflowCoreManifestSchema,
|
|
444
|
+
WorkflowIOSchema: () => WorkflowIOSchema,
|
|
445
|
+
WorkflowIdentitySchema: () => WorkflowIdentitySchema,
|
|
446
|
+
computeSchemaFingerprint: () => computeSchemaFingerprint,
|
|
447
|
+
manifestToDeclaredCredentialRequirement: () => manifestToDeclaredCredentialRequirement,
|
|
448
|
+
manifestsToDeclaredCredentialRequirements: () => manifestsToDeclaredCredentialRequirements,
|
|
449
|
+
readOptionalJsonSchemaKeys: () => readOptionalJsonSchemaKeys,
|
|
450
|
+
readOptionalSchemaKeys: () => readOptionalSchemaKeys,
|
|
451
|
+
toDeclaredCredentialRequirement: () => toDeclaredCredentialRequirement,
|
|
452
|
+
toDeclaredCredentialRequirements: () => toDeclaredCredentialRequirements
|
|
453
|
+
});
|
|
454
|
+
__reExport(src_exports, credential_requirements_exports);
|
|
455
|
+
//#endregion
|
|
456
|
+
export { WorkflowCoreManifestSchema as a, readOptionalJsonSchemaKeys as c, WorkflowBuildManifestSchema as i, JsonSchemaSchema as l, WORKFLOW_MANIFEST_GENERATOR as n, FlowGraphSchema as o, WORKFLOW_MANIFEST_SCHEMA_VERSION as r, manifestToDeclaredCredentialRequirement as s, src_exports as t, SHA256HashSchema as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { a as createKyInstance, i as buildSearchParams, n as auth, r as bundles, s as getClientEnv, t as projects$1 } from "./projects-
|
|
3
|
+
import { a as createKyInstance, i as buildSearchParams, n as auth, r as bundles, s as getClientEnv, t as projects$1 } from "./projects-s5ehKLil.mjs";
|
|
4
4
|
//#region ../../packages/workflow-sdk/src/v1/admin.ts
|
|
5
5
|
const admin = (api) => ({
|
|
6
6
|
orgs: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { a as ui, j as throwReportedCliExit } from "./keystroke.mjs";
|
|
4
4
|
import { n as credentials } from "./dist-CIInPRGh.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-BUzxM3QI.mjs";
|
|
6
6
|
import { select } from "@clack/prompts";
|
|
7
7
|
//#region src/commands/org/switch.handler.ts
|
|
8
8
|
async function handleOrgSwitch(_options, ctx) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { t as createTypedCommand } from "./commander-
|
|
3
|
+
import { t as createTypedCommand } from "./commander-DQLrBSIW.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/commands/sync/sync.command.ts
|
|
6
6
|
/**
|
|
@@ -32,7 +32,7 @@ function createSyncCommand() {
|
|
|
32
32
|
description: "Sync local workflows with Keystroke",
|
|
33
33
|
schema: SyncOptionsSchema,
|
|
34
34
|
optionsConfig: SYNC_OPTIONS_CONFIG,
|
|
35
|
-
loadHandler: async () => (await import("./sync.handler-
|
|
35
|
+
loadHandler: async () => (await import("./sync.handler-Cuw89341.mjs")).handleSync
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import { P as logger, a as ui, j as throwReportedCliExit, l as isLocalMode, y as toErrorMessage } from "./keystroke.mjs";
|
|
4
4
|
import { i as projects } from "./dist-CIInPRGh.mjs";
|
|
5
|
-
import { a as validateApiKey, i as requireClient } from "./context-
|
|
6
|
-
import { n as deployFromDir } from "./dist-
|
|
7
|
-
import { t as requireWorkflowsDir } from "./resolve-project-
|
|
8
|
-
import { a as runWorkflowBuild, n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-
|
|
9
|
-
import { t as createBuildProgress } from "./build-progress-
|
|
10
|
-
import { t as createDeployProgress } from "./deploy-progress-
|
|
5
|
+
import { a as validateApiKey, i as requireClient } from "./context-BUzxM3QI.mjs";
|
|
6
|
+
import { n as deployFromDir } from "./dist-BGrWr5fp.mjs";
|
|
7
|
+
import { t as requireWorkflowsDir } from "./resolve-project-CWP2fji3.mjs";
|
|
8
|
+
import { a as runWorkflowBuild, n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-IGYhEC8Y.mjs";
|
|
9
|
+
import { t as createBuildProgress } from "./build-progress-BVwDg6lC.mjs";
|
|
10
|
+
import { t as createDeployProgress } from "./deploy-progress-CyolzjRB.mjs";
|
|
11
11
|
//#region src/commands/sync/sync.handler.ts
|
|
12
12
|
async function handleSync(options, ctx) {
|
|
13
13
|
try {
|