@keystrokehq/cli 0.0.19 → 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/dist/{accept.handler-BVmNNAgL.mjs → accept.handler-CiqqUxKN.mjs} +1 -1
- package/dist/{admin-DQlHFuXn.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-Dd7UeQCw.mjs → agents-DBebUEwk.mjs} +6 -6
- package/dist/{api-nR61stdq.mjs → api-BjBpWWlm.mjs} +1 -1
- package/dist/{api-keys-BsMBFiD_.mjs → api-keys-BHAgmC4E.mjs} +5 -5
- package/dist/{auth-ZTuuEoD6.mjs → auth-D-PZAjdd.mjs} +5 -5
- package/dist/{auth.handler-C1dZBdaG.mjs → auth.handler-CxTDSO6O.mjs} +1 -1
- 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-BaPhhGXO.mjs → build-tasks-C09SdfjC-DxKcmENc.mjs} +4 -4
- package/dist/{build-workflows-CV4tBo6S-szwrAGWT.mjs → build-workflows-BZ_m97Pr-DwcnRlyh.mjs} +9 -10
- package/dist/{build.handler-DJrEMCBw.mjs → build.handler-CTX80S1K.mjs} +4 -4
- package/dist/{chunk-CH6r78ws.mjs → chunk-DYxdGL9S.mjs} +2 -1
- package/dist/{clear.handler-BgeAg2de.mjs → clear.handler-Bksm2HI4.mjs} +1 -1
- package/dist/{commander-C5qcOo8m.mjs → commander-DQLrBSIW.mjs} +1 -1
- package/dist/{connect-BtBKoXpi.mjs → connect-DV_EztVs.mjs} +2 -2
- package/dist/{connect.handler-E8CmLRSF.mjs → connect.handler-DbuGt3Xb.mjs} +3 -3
- package/dist/{context-BydAGTiB.mjs → context-BUzxM3QI.mjs} +2 -2
- package/dist/{create.handler-CBxIPC3r.mjs → create.handler-CQCRk-Na.mjs} +1 -1
- package/dist/{credentials-BGaRMclS.mjs → credentials-m18a1_hw.mjs} +6 -6
- package/dist/{credentials-jRiXEr6P.mjs → credentials-xPtLFTjW.mjs} +2 -2
- package/dist/{current-deployment-workflow-BVliROAz.mjs → current-deployment-workflow-pyBoobIm.mjs} +4 -4
- package/dist/{current.handler-DBl9S67d.mjs → current.handler-BJGJgdGP.mjs} +1 -1
- package/dist/{delete.handler-Buu7Ip0D.mjs → delete.handler-DNoehdOH.mjs} +1 -1
- package/dist/{deploy-CzTlgAFj.mjs → deploy-3tHCBGky.mjs} +2 -2
- package/dist/{deploy-BPDUTKZD.mjs → deploy-BKjcO_sm.mjs} +1 -1
- package/dist/{deploy-progress-DK87VKJ-.mjs → deploy-progress-CyolzjRB.mjs} +1 -1
- package/dist/{deploy.handler-CCcJ7y3A.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-DUVFixeG.mjs → diff.handler-DO2WzdGB.mjs} +3 -3
- package/dist/{dist-Cx0RV8s7.mjs → dist-BGrWr5fp.mjs} +32 -37
- package/dist/{env.handler-C8kNFz2U.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-DjPUZr4i.mjs → import-module-y0glInUe-CfNsQNia.mjs} +48 -840
- package/dist/{init-DeeOVc9m.mjs → init-D9RIT2CY.mjs} +3 -3
- package/dist/{init.handler-BMdhpusQ.mjs → init.handler-0TJY1YNy.mjs} +2 -2
- package/dist/{inspect.handler-QyTo8rWO.mjs → inspect.handler-BrYFfN4H.mjs} +3 -3
- package/dist/{integration-catalog-CmvYPvI6.mjs → integration-catalog-BrJsBkfx.mjs} +1 -1
- package/dist/{integrations-tXZM-84g.mjs → integrations-vSyAQ6HA.mjs} +5 -5
- package/dist/{invites-ClyAatBW.mjs → invites-BASM4PJr.mjs} +4 -4
- package/dist/{invites.list.handler-CPkK_tPM.mjs → invites.list.handler-c-aw6g5o.mjs} +1 -1
- package/dist/{invites.resend.handler-DIRI7tS2.mjs → invites.resend.handler-MnMEjP_Z.mjs} +1 -1
- package/dist/{invites.revoke.handler-CcXcDBlU.mjs → invites.revoke.handler-CHX6Z8kj.mjs} +1 -1
- package/dist/keystroke.mjs +21 -21
- package/dist/{list-enrichment-B9238wom.mjs → list-enrichment-DcplcioC.mjs} +1 -1
- package/dist/{list.handler-Cbc9rlBx.mjs → list.handler-BBzB1_1l.mjs} +1 -1
- package/dist/{list.handler-DdFGHkqt.mjs → list.handler-BsgCd1oF.mjs} +5 -5
- package/dist/{list.handler-BB-Dcm5B.mjs → list.handler-CDtjm-6d.mjs} +1 -1
- package/dist/{list.handler-Xl_F89kq.mjs → list.handler-DJNtXw7C.mjs} +1 -1
- package/dist/{list.handler-ClPAPSWm.mjs → list.handler-DXwKdfIv.mjs} +2 -2
- package/dist/{list.handler-tnsRn-Rj.mjs → list2.handler-BdE1k2kl.mjs} +3 -3
- package/dist/{listen-ksMVpdNa.mjs → listen-Ca9KdiB2.mjs} +2 -2
- package/dist/{listen.handler-DEJSBg8y.mjs → listen.handler-KWPN03S8.mjs} +2 -2
- package/dist/{logs-C-JxXsgc.mjs → logs-BEDf7hZ0.mjs} +3 -3
- package/dist/{logs.handler-BIegqc2p.mjs → logs.handler-mk1lcZbU.mjs} +2 -2
- package/dist/{members.add.handler-D4ggN2Xi.mjs → members.add.handler-CTvlxBZU.mjs} +1 -1
- package/dist/{members.invite.handler-BYIt6Oib.mjs → members.invite.handler-wFO0r7Pi.mjs} +1 -1
- package/dist/{members.list.handler-CvpeYKC4.mjs → members.list.handler-PPdqs4nI.mjs} +1 -1
- package/dist/{members.remove.handler-C4GBUVYE.mjs → members.remove.handler-a5WI6zE4.mjs} +1 -1
- package/dist/{members.update.handler-TpM1oi0L.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-DIGyb7XZ.mjs → org-CzLw3neZ.mjs} +15 -15
- package/dist/{orgs.create.handler-RIYhse_Q.mjs → orgs.create.handler-CcPpDweZ.mjs} +1 -1
- package/dist/{orgs.get.handler-BfOpbSom.mjs → orgs.get.handler-BACPg7vR.mjs} +1 -1
- package/dist/{orgs.list.handler-BMgj9yTD.mjs → orgs.list.handler-DEF8OyvM.mjs} +1 -1
- package/dist/{paused.handler-DAZ1EaLN.mjs → paused.handler-D4j8_Za4.mjs} +1 -1
- package/dist/{projects-Cy6CH3fI.mjs → projects-CJCKxG2u.mjs} +4 -4
- package/dist/{projects-BndElPAx.mjs → projects-s5ehKLil.mjs} +2 -2
- package/dist/{requirements.handler-C5vobjdJ.mjs → requirements.handler-Bk-sAE9C.mjs} +5 -5
- package/dist/{run-polling-BhOdFyh3.mjs → run-polling-DKclfet-.mjs} +3 -3
- package/dist/{run.handler-BpLmwF_a.mjs → run.handler-x0B-CjNF.mjs} +4 -4
- package/dist/{runs-DaSd4eXn.mjs → runs-DoMVOCNj.mjs} +2 -2
- package/dist/{skills-sync.handler-DOxudKmV.mjs → skills-sync.handler-CYkCeuQn.mjs} +1 -1
- package/dist/{skills.command-DQc_qGAF.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-0XVwHXNp.mjs → src-BYQwp8Ig.mjs} +1 -1
- package/dist/{switch.handler-CCjMrRZN.mjs → switch.handler-CV4ZBXAu.mjs} +1 -1
- package/dist/{sync-BdTQDZjP.mjs → sync-KCVM02IY.mjs} +2 -2
- package/dist/{sync.handler-DjY8nqbB.mjs → sync.handler-Cuw89341.mjs} +6 -6
- package/dist/task-BSCN9cU4.mjs +945 -0
- package/dist/{task-target-build-DCV0UDaz.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 +4 -4
- package/dist/{test-TTQXrhHm.mjs → test-Rm3thni3.mjs} +2 -2
- package/dist/{test.handler-B7Ahe9ta.mjs → test.handler-CTd-heRS.mjs} +8 -8
- package/dist/{test.handler-CkkplyX6.mjs → test.handler-DhhcsvHN.mjs} +1 -1
- package/dist/{tool.handler-DMfFZCRg.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-Cx-bUWUc.mjs → upgrade-Cf7y38xR.mjs} +2 -2
- package/dist/{upload-BbcMkyVl.mjs → upload-CJWApEgz.mjs} +1 -1
- package/dist/{upload.handler-_d2WZwxd.mjs → upload.handler-BHIWYPph.mjs} +7 -7
- package/dist/{users.get.handler-DIooG7Wy.mjs → users.get.handler-spWaHG8h.mjs} +1 -1
- package/dist/{users.list.handler-DdGW-DSg.mjs → users.list.handler-DLuU7cd_.mjs} +1 -1
- package/dist/{users.set-role.handler-Ek-kntLp.mjs → users.set-role.handler-CojFmpcD.mjs} +1 -1
- package/dist/{utils-BMUWnz1P.mjs → utils-Ddltm1sR.mjs} +1 -1
- package/dist/{validate.handler-Cq2uJjXY.mjs → validate.handler-DIJBuX1P.mjs} +4 -4
- package/dist/{workflow-build-C8AiYxqp.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-K6zetcqI.mjs → workflows-MANdvLft.mjs} +19 -21
- package/dist/{writer-B-SpZ0G2-CLh7sXRd.mjs → writer-byNNUjRm-w5O7-VT_.mjs} +24 -33
- package/package.json +11 -11
- package/dist/common-AK0q0Oz0.mjs +0 -20
- package/dist/credential-requirements-Ob-7H-0F.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/task-BRmL2lmw.mjs +0 -486
- package/dist/task-target-deploy-DmpCWE3u.mjs +0 -4
- package/dist/trigger-manifest-DxdCjGz_.mjs +0 -29
- package/dist/workflow-build-manifest-BKKW9D05.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/{register.handler-BXeh5mdb.mjs → register.handler-CSvlOMF6.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/{schemas-BxFPUGWT.mjs → schemas-U2OzP9gP.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
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
import { D as CliExitError, P as logger, a as ui, l as isLocalMode, n as style, t as ANSI } from "./keystroke.mjs";
|
|
4
4
|
import { i as projects } from "./dist-CIInPRGh.mjs";
|
|
5
5
|
import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
6
|
-
import { r as requireAuthOptions, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-
|
|
7
|
-
import { i as readAgentManifestsFromOutDir, o as readWorkflowsFromDisk } from "./dist-
|
|
8
|
-
import { t as requireWorkflowsDir } from "./resolve-project-
|
|
9
|
-
import { n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-
|
|
10
|
-
import { t as createBuildProgress } from "./build-progress-
|
|
11
|
-
import { t as createDeployProgress } from "./deploy-progress-
|
|
12
|
-
import { t as withErrorBoundary } from "./error-boundary-
|
|
13
|
-
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-
|
|
14
|
-
import { t as computeWorkflowDiff } from "./diff-utils-
|
|
6
|
+
import { r as requireAuthOptions, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-BUzxM3QI.mjs";
|
|
7
|
+
import { i as readAgentManifestsFromOutDir, o as readWorkflowsFromDisk } from "./dist-BGrWr5fp.mjs";
|
|
8
|
+
import { t as requireWorkflowsDir } from "./resolve-project-CWP2fji3.mjs";
|
|
9
|
+
import { n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-IGYhEC8Y.mjs";
|
|
10
|
+
import { t as createBuildProgress } from "./build-progress-BVwDg6lC.mjs";
|
|
11
|
+
import { t as createDeployProgress } from "./deploy-progress-CyolzjRB.mjs";
|
|
12
|
+
import { t as withErrorBoundary } from "./error-boundary-GtRvP2oP.mjs";
|
|
13
|
+
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-pyBoobIm.mjs";
|
|
14
|
+
import { t as computeWorkflowDiff } from "./diff-utils-x5pi8SrL.mjs";
|
|
15
15
|
import path from "node:path";
|
|
16
16
|
import { access } from "node:fs/promises";
|
|
17
17
|
//#region src/commands/deploy/deploy-diff.ts
|
|
@@ -198,7 +198,7 @@ async function handleDeploy(options, ctx) {
|
|
|
198
198
|
let outDir;
|
|
199
199
|
let artifactFilter;
|
|
200
200
|
try {
|
|
201
|
-
const { runWorkflowBuild } = await import("./workflow-build-
|
|
201
|
+
const { runWorkflowBuild } = await import("./workflow-build-IGYhEC8Y.mjs").then((n) => n.o);
|
|
202
202
|
const buildOutcome = await runWorkflowBuild({
|
|
203
203
|
workflowsDir,
|
|
204
204
|
verbose: options.verbose,
|
|
@@ -233,7 +233,7 @@ async function handleDeploy(options, ctx) {
|
|
|
233
233
|
const progress = createDeployProgress();
|
|
234
234
|
let result;
|
|
235
235
|
try {
|
|
236
|
-
result = await (deployHandlerDependencies.deployFromDir ?? (await import("./dist-
|
|
236
|
+
result = await (deployHandlerDependencies.deployFromDir ?? (await import("./dist-BGrWr5fp.mjs").then((n) => n.r)).deployFromDir)({
|
|
237
237
|
outDir,
|
|
238
238
|
workflowsDir,
|
|
239
239
|
client,
|
|
@@ -252,15 +252,26 @@ async function handleDeploy(options, ctx) {
|
|
|
252
252
|
await new Promise((resolve) => setImmediate(resolve));
|
|
253
253
|
if (result.success) {
|
|
254
254
|
renderSuccessSummary(result);
|
|
255
|
+
emitNewWebhookCredentials(result);
|
|
255
256
|
return;
|
|
256
257
|
}
|
|
257
258
|
renderFailureSummary(result);
|
|
258
259
|
throw new CliExitError("Deployment failed");
|
|
259
260
|
}, { json: ctx.jsonMode });
|
|
260
261
|
}
|
|
262
|
+
/**
|
|
263
|
+
* Emit a machine-readable JSON line for each newly issued webhook credential
|
|
264
|
+
* so external tooling (e.g. the e2e setup) can capture the plaintext secret
|
|
265
|
+
* + canonical webhook URL surfaced exactly once by the deploy.
|
|
266
|
+
*/
|
|
267
|
+
function emitNewWebhookCredentials(result) {
|
|
268
|
+
const creds = result.newWebhookCredentials ?? [];
|
|
269
|
+
if (creds.length === 0) return;
|
|
270
|
+
for (const cred of creds) process.stdout.write(`[deploy] new-webhook-credential ${JSON.stringify(cred)}\n`);
|
|
271
|
+
}
|
|
261
272
|
async function handleTaskTargetDeploy(options) {
|
|
262
273
|
renderBuildHeader(void 0);
|
|
263
|
-
const buildResult = await (deployHandlerDependencies.buildTaskTargets ?? (await import("./task-target-build-
|
|
274
|
+
const buildResult = await (deployHandlerDependencies.buildTaskTargets ?? (await import("./task-target-build-B0HF2_At.mjs")).buildTaskTargets)({
|
|
264
275
|
projectRoot: options.workflowsDir,
|
|
265
276
|
targetFiles: options.targetFiles,
|
|
266
277
|
disableSourcemaps: options.options.disableSourcemaps
|
|
@@ -278,7 +289,7 @@ async function handleTaskTargetDeploy(options) {
|
|
|
278
289
|
const progress = createDeployProgress();
|
|
279
290
|
let result;
|
|
280
291
|
try {
|
|
281
|
-
result = await (deployHandlerDependencies.deployTaskTargets ?? (await import("./task-target-deploy-
|
|
292
|
+
result = await (deployHandlerDependencies.deployTaskTargets ?? (await import("./task-target-deploy-ClbwKJ8K.mjs")).deployTaskTargets)({
|
|
282
293
|
preparedTasks: buildResult.preparedTasks,
|
|
283
294
|
client,
|
|
284
295
|
organizationId: options.projectConfig.organizationId,
|
|
@@ -293,6 +304,7 @@ async function handleTaskTargetDeploy(options) {
|
|
|
293
304
|
await new Promise((resolve) => setImmediate(resolve));
|
|
294
305
|
if (result.success) {
|
|
295
306
|
renderSuccessSummary(result);
|
|
307
|
+
emitNewWebhookCredentials(result);
|
|
296
308
|
return;
|
|
297
309
|
}
|
|
298
310
|
renderFailureSummary(result);
|
|
@@ -300,7 +312,7 @@ async function handleTaskTargetDeploy(options) {
|
|
|
300
312
|
}
|
|
301
313
|
async function createFullDeployClient(ctx) {
|
|
302
314
|
const authOptions = requireAuthOptions(ctx);
|
|
303
|
-
const { createClient } = await import("./src-
|
|
315
|
+
const { createClient } = await import("./src-BYQwp8Ig.mjs");
|
|
304
316
|
return createClient({
|
|
305
317
|
...authOptions,
|
|
306
318
|
onRequest: (info) => logger.debug(`-> ${info.method} ${info.url}`, {
|
|
@@ -315,7 +327,7 @@ async function createFullDeployClient(ctx) {
|
|
|
315
327
|
}
|
|
316
328
|
async function createTaskDeployClient(ctx) {
|
|
317
329
|
const authOptions = requireAuthOptions(ctx);
|
|
318
|
-
return (deployHandlerDependencies.createDeployClient ?? (await import("./deploy-
|
|
330
|
+
return (deployHandlerDependencies.createDeployClient ?? (await import("./deploy-BKjcO_sm.mjs")).createDeployClient)(authOptions);
|
|
319
331
|
}
|
|
320
332
|
function renderSuccessSummary(result) {
|
|
321
333
|
const tasks = result.tasks || [];
|
package/dist/{detect-env-access-CwkOYeYM-CNTyUzme.mjs → detect-env-access-CwkOYeYM-D8-hxij0.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { n as __exportAll } from "./chunk-
|
|
4
|
-
import { t as __exportAll$1 } from "./rolldown-runtime-twds-ZHy-
|
|
3
|
+
import { n as __exportAll } from "./chunk-DYxdGL9S.mjs";
|
|
4
|
+
import { t as __exportAll$1 } from "./rolldown-runtime-twds-ZHy-BoF7MLzP.mjs";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
//#region ../../packages/workflow-builder/dist/detect-env-access-CwkOYeYM.mjs
|
|
7
7
|
var detect_env_access_CwkOYeYM_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { D as CliExitError, a as ui, j as throwReportedCliExit, y as toErrorMessage } from "./keystroke.mjs";
|
|
4
4
|
import { i as projects } from "./dist-CIInPRGh.mjs";
|
|
5
5
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
6
|
-
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-
|
|
7
|
-
import { n as resolveLocalWorkflowManifest, t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-
|
|
8
|
-
import { n as renderDiff, t as computeWorkflowDiff } from "./diff-utils-
|
|
6
|
+
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-BUzxM3QI.mjs";
|
|
7
|
+
import { n as resolveLocalWorkflowManifest, t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-pyBoobIm.mjs";
|
|
8
|
+
import { n as renderDiff, t as computeWorkflowDiff } from "./diff-utils-x5pi8SrL.mjs";
|
|
9
9
|
//#region src/commands/workflows/diff/diff.handler.ts
|
|
10
10
|
async function handleWorkflowsDiff(options, ctx) {
|
|
11
11
|
const resolved = await resolveLocalWorkflowManifest(options.workflow, options.path, { jsonMode: ctx.jsonMode });
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { n as __exportAll } from "./chunk-
|
|
3
|
+
import { n as __exportAll } from "./chunk-DYxdGL9S.mjs";
|
|
4
4
|
import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { t as TriggerBuildManifestSchema } from "./trigger-manifest-DxdCjGz_.mjs";
|
|
15
|
-
import { t as batchUpload } from "./upload-BbcMkyVl.mjs";
|
|
5
|
+
import { i as WorkflowBuildManifestSchema, o as FlowGraphSchema, t as src_exports, u as SHA256HashSchema } from "./src-BHTjsZ9V.mjs";
|
|
6
|
+
import { t as AgentVersionManifestSchema } from "./agent-manifest-CZ7BeUSG.mjs";
|
|
7
|
+
import { n as TaskBuildManifestSchema } from "./task-BSCN9cU4.mjs";
|
|
8
|
+
import { n as FileMetadataSchema } from "./file-metadata-B8c7Y5yg.mjs";
|
|
9
|
+
import { t as computeProjectSnapshotHash } from "./task-target-deploy-dQYnMO8n-CeTmRcDw.mjs";
|
|
10
|
+
import { a as MANIFEST_FILE_NAME, d as getMetadataRoot, f as getTriggersDir, m as getWorkflowManifestPath, p as getWorkflowArtifactPaths, t as BUILD_DIR_NAME } from "./layout-DRf9qUf8.mjs";
|
|
11
|
+
import { n as resolveProjectBuildOutputDir } from "./utils-Ddltm1sR.mjs";
|
|
12
|
+
import { t as TriggerBuildManifestSchema } from "./trigger-manifest-DTni4NaZ.mjs";
|
|
13
|
+
import { t as batchUpload } from "./upload-CJWApEgz.mjs";
|
|
16
14
|
import * as path$1 from "node:path";
|
|
17
15
|
import path from "node:path";
|
|
18
16
|
import * as fs from "node:fs/promises";
|
|
@@ -122,7 +120,7 @@ function collectSchemaFingerprintsFromAgentManifest(manifest) {
|
|
|
122
120
|
*/
|
|
123
121
|
async function collectCredentialFingerprintMapFromProjectDist(projectRoot) {
|
|
124
122
|
const map = /* @__PURE__ */ new Map();
|
|
125
|
-
for (const { manifest } of await readManifestsFromOutDir(projectRoot)) for (const entry of collectCredentialRequirementEntries(manifest.credentials)) if (entry.schemaFingerprint && !map.has(entry.credentialSetId)) map.set(entry.credentialSetId, entry.schemaFingerprint);
|
|
123
|
+
for (const { manifest } of await readManifestsFromOutDir(projectRoot)) for (const entry of (0, src_exports.collectCredentialRequirementEntries)(manifest.credentials)) if (entry.schemaFingerprint && !map.has(entry.credentialSetId)) map.set(entry.credentialSetId, entry.schemaFingerprint);
|
|
126
124
|
for (const { manifest } of await readAgentManifestsFromOutDir(projectRoot)) for (const [resolvedId, fp] of collectSchemaFingerprintsFromAgentManifest(manifest)) if (!map.has(resolvedId)) map.set(resolvedId, fp);
|
|
127
125
|
return map;
|
|
128
126
|
}
|
|
@@ -274,7 +272,8 @@ function finalizeDeployResult(options) {
|
|
|
274
272
|
workflows: options.workflows,
|
|
275
273
|
agents: options.agents,
|
|
276
274
|
tasks: options.tasks || [],
|
|
277
|
-
totalTime: Date.now() - options.startTime
|
|
275
|
+
totalTime: Date.now() - options.startTime,
|
|
276
|
+
...options.newWebhookCredentials ? { newWebhookCredentials: options.newWebhookCredentials } : {}
|
|
278
277
|
};
|
|
279
278
|
options.onDeployProgressEvent?.({
|
|
280
279
|
phase: "complete",
|
|
@@ -500,7 +499,7 @@ async function registerDeployment(options) {
|
|
|
500
499
|
tasks: deploymentTasks
|
|
501
500
|
});
|
|
502
501
|
} finally {
|
|
503
|
-
|
|
502
|
+
releasePreparedTaskPollBundleCode(preparedTasks);
|
|
504
503
|
}
|
|
505
504
|
const deployedWorkflowResults = deployResult.workflows;
|
|
506
505
|
const deployedAgentResults = deployResult.agents;
|
|
@@ -529,14 +528,12 @@ async function registerDeployment(options) {
|
|
|
529
528
|
return {
|
|
530
529
|
workflows: deployedWorkflowResults.map(mapDeployResultStatus),
|
|
531
530
|
agents: deployedAgentResults.map(mapAgentResultStatus),
|
|
532
|
-
tasks: deployedTaskResults.map(mapTaskResultStatus)
|
|
531
|
+
tasks: deployedTaskResults.map(mapTaskResultStatus),
|
|
532
|
+
...deployResult.newWebhookCredentials ? { newWebhookCredentials: deployResult.newWebhookCredentials } : {}
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
|
-
function
|
|
536
|
-
for (const task of preparedTasks) for (const trigger of task.triggers)
|
|
537
|
-
if (trigger.callbackBundle) trigger.callbackBundle.code = "";
|
|
538
|
-
if (trigger.transformCallbackBundle) trigger.transformCallbackBundle.code = "";
|
|
539
|
-
}
|
|
535
|
+
function releasePreparedTaskPollBundleCode(preparedTasks) {
|
|
536
|
+
for (const task of preparedTasks) for (const trigger of task.triggers) if (trigger.pollBundle) trigger.pollBundle.code = "";
|
|
540
537
|
}
|
|
541
538
|
async function syncMetadata(options) {
|
|
542
539
|
const { client, organizationId, projectId, fileMetadata, onDeployProgressEvent } = options;
|
|
@@ -571,7 +568,7 @@ async function hashFile(filePath) {
|
|
|
571
568
|
}
|
|
572
569
|
/** Top-level build output folder for task bundles; not workflow-shaped (see readTasksFromDisk). */
|
|
573
570
|
const TASKS_OUTPUT_DIR_NAME = "tasks";
|
|
574
|
-
async function
|
|
571
|
+
async function readPollBundle(baseDir, relativePath) {
|
|
575
572
|
const bundlePath = path$1.join(baseDir, relativePath);
|
|
576
573
|
const code = await fs.readFile(bundlePath, "utf-8");
|
|
577
574
|
return {
|
|
@@ -596,25 +593,23 @@ async function readTriggersFromBuildOutput(buildDir, options) {
|
|
|
596
593
|
try {
|
|
597
594
|
const raw = await fs.readFile(manifestPath, "utf-8");
|
|
598
595
|
const manifest = TriggerBuildManifestSchema.parse(JSON.parse(raw));
|
|
599
|
-
const
|
|
600
|
-
const
|
|
601
|
-
const
|
|
602
|
-
const transformCallbackBundlePath = manifest.attachmentFunctions ? Object.values(manifest.attachmentFunctions)[0]?.js : void 0;
|
|
603
|
-
const trigger = TriggerUploadDataSchema.parse({
|
|
596
|
+
const pollExports = manifest.functions && Object.keys(manifest.functions).length > 0 ? Object.fromEntries(Object.entries(manifest.functions).map(([key, value]) => [key, value.export])) : void 0;
|
|
597
|
+
const pollBundlePath = manifest.functions ? Object.values(manifest.functions)[0]?.js : void 0;
|
|
598
|
+
const trigger = src_exports.TriggerUploadDataSchema.parse({
|
|
604
599
|
id: manifest.id,
|
|
600
|
+
authoredTriggerId: manifest.authoredTriggerId,
|
|
605
601
|
type: manifest.type,
|
|
606
602
|
...manifest.triggerSource ? { triggerSource: manifest.triggerSource } : {},
|
|
603
|
+
...manifest.webhookAuthGroupKey ? { webhookAuthGroupKey: manifest.webhookAuthGroupKey } : {},
|
|
607
604
|
enabled: manifest.enabled,
|
|
608
|
-
...manifest.path ? { path: manifest.path } : {},
|
|
609
|
-
...manifest.method ? { method: manifest.method } : {},
|
|
610
605
|
...manifest.schedule ? { schedule: manifest.schedule } : {},
|
|
611
606
|
...manifest.timezone ? { timezone: manifest.timezone } : {},
|
|
612
607
|
...manifest.config ? { config: manifest.config } : {},
|
|
613
608
|
...manifest.requiredCredentials ? { requiredCredentials: manifest.requiredCredentials } : {},
|
|
614
|
-
...
|
|
615
|
-
...
|
|
616
|
-
...
|
|
617
|
-
...
|
|
609
|
+
...manifest.filterSchema ? { filterSchema: manifest.filterSchema } : {},
|
|
610
|
+
...manifest.idempotencyConfig ? { idempotencyConfig: manifest.idempotencyConfig } : {},
|
|
611
|
+
...pollExports ? { pollExports } : {},
|
|
612
|
+
...pollBundlePath ? { pollBundle: await readPollBundle(triggerDir, pollBundlePath) } : {}
|
|
618
613
|
});
|
|
619
614
|
triggers.push(trigger);
|
|
620
615
|
} catch (error) {
|
|
@@ -693,19 +688,18 @@ async function readTasksFromDisk(outDir, options) {
|
|
|
693
688
|
const builtTriggers = await readTriggersFromBuildOutput(path$1.join(taskDir, "build"), options);
|
|
694
689
|
const triggers = builtTriggers.length > 0 ? builtTriggers : manifestData.triggers.map((trigger, index) => {
|
|
695
690
|
const runtime = trigger.runtime ?? {};
|
|
696
|
-
const
|
|
697
|
-
const triggerId = createHash("sha256").update(`${entryName}::${
|
|
691
|
+
const authoredTriggerId = trigger.id ?? `trigger_${index}`;
|
|
692
|
+
const triggerId = createHash("sha256").update(`${entryName}::${authoredTriggerId}`).digest("hex").slice(0, 16);
|
|
698
693
|
const webhookSource = runtime.source && typeof runtime.source === "object" ? runtime.source : null;
|
|
699
694
|
const sourceType = webhookSource?.type === "app" || webhookSource?.type === "custom" ? webhookSource.type : void 0;
|
|
700
695
|
return {
|
|
701
696
|
id: triggerId,
|
|
697
|
+
authoredTriggerId,
|
|
702
698
|
type: trigger.triggerType ?? trigger.type,
|
|
703
699
|
...sourceType ? { triggerSource: sourceType } : {},
|
|
704
700
|
enabled: trigger.enabled ?? true,
|
|
705
701
|
...runtime.schedule ? { schedule: runtime.schedule } : {},
|
|
706
702
|
...runtime.timezone ? { timezone: runtime.timezone } : {},
|
|
707
|
-
...webhookSource?.path ? { path: webhookSource.path } : {},
|
|
708
|
-
...webhookSource?.method ? { method: webhookSource.method } : {},
|
|
709
703
|
...trigger.payload !== void 0 ? { config: { payload: trigger.payload } } : {}
|
|
710
704
|
};
|
|
711
705
|
});
|
|
@@ -1105,6 +1099,7 @@ async function executeDeploy(options) {
|
|
|
1105
1099
|
workflows: registration.workflows,
|
|
1106
1100
|
agents: registration.agents,
|
|
1107
1101
|
tasks: registration.tasks,
|
|
1102
|
+
...registration.newWebhookCredentials ? { newWebhookCredentials: registration.newWebhookCredentials } : {},
|
|
1108
1103
|
startTime,
|
|
1109
1104
|
onDeployProgressEvent
|
|
1110
1105
|
});
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { D as CliExitError, _ as isAuthError, a as ui, j as throwReportedCliExit, m as REAUTH_HINT, n as style, t as ANSI, v as isNetworkError, y as toErrorMessage } from "./keystroke.mjs";
|
|
4
4
|
import { i as projects } from "./dist-CIInPRGh.mjs";
|
|
5
5
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
6
|
-
import { i as requireClient } from "./context-
|
|
7
|
-
import { n as CredentialConnectionIdSchema, r as CredentialScopeSchema, t as ConnectionStatusSchema } from "./schema-
|
|
8
|
-
import { a as readManifestsFromOutDir } from "./dist-
|
|
9
|
-
import { t as requireWorkflowsDir } from "./resolve-project-
|
|
10
|
-
import { t as getIntegrationCatalog } from "./integration-catalog-
|
|
11
|
-
import { t as groupCredentialRequirements } from "./credentials-
|
|
6
|
+
import { i as requireClient } from "./context-BUzxM3QI.mjs";
|
|
7
|
+
import { n as CredentialConnectionIdSchema, r as CredentialScopeSchema, t as ConnectionStatusSchema } from "./schema-CvSZqa3t.mjs";
|
|
8
|
+
import { a as readManifestsFromOutDir } from "./dist-BGrWr5fp.mjs";
|
|
9
|
+
import { t as requireWorkflowsDir } from "./resolve-project-CWP2fji3.mjs";
|
|
10
|
+
import { t as getIntegrationCatalog } from "./integration-catalog-BrJsBkfx.mjs";
|
|
11
|
+
import { t as groupCredentialRequirements } from "./credentials-xPtLFTjW.mjs";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
import Table from "cli-table3";
|
|
14
14
|
//#region ../../packages/shared-types/src/credentials/api/responses.ts
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { D as CliExitError, P as logger, a as ui, v as isNetworkError, y as toErrorMessage } from "./keystroke.mjs";
|
|
4
4
|
import { r as isJsonMode } from "./output-BWcVRt-T.mjs";
|
|
5
|
-
import { n as renderCredentialSchemaMismatchText, r as writeCredentialSchemaMismatchJson, t as isCredentialSchemaMismatchErrorLike } from "./credential-schema-mismatch-
|
|
5
|
+
import { n as renderCredentialSchemaMismatchText, r as writeCredentialSchemaMismatchJson, t as isCredentialSchemaMismatchErrorLike } from "./credential-schema-mismatch-BHI_B-U-.mjs";
|
|
6
6
|
//#region src/lib/error-boundary.ts
|
|
7
7
|
async function withErrorBoundary(commandName, fn, options = {}) {
|
|
8
8
|
const jsonMode = options.json ?? isJsonMode({});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { r as CapturedVariableSchema, s as SourceLocationSchema } from "./source-analysis-BMMPIHN9.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
z.enum([
|
|
6
6
|
"pending",
|
|
@@ -47,12 +47,7 @@ z.enum([
|
|
|
47
47
|
"PUT",
|
|
48
48
|
"PATCH"
|
|
49
49
|
]);
|
|
50
|
-
z.enum([
|
|
51
|
-
"filter",
|
|
52
|
-
"idempotencyKey",
|
|
53
|
-
"verify",
|
|
54
|
-
"callback"
|
|
55
|
-
]);
|
|
50
|
+
z.enum(["poll"]);
|
|
56
51
|
//#endregion
|
|
57
52
|
//#region ../../packages/shared-types/src/workflows/build-output/file-metadata.ts
|
|
58
53
|
function isNormalizedRelativePath(value) {
|