@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.
Files changed (146) hide show
  1. package/README.md +1 -1
  2. package/dist/{accept.handler-B7QzdKCh.mjs → accept.handler-CiqqUxKN.mjs} +1 -1
  3. package/dist/{admin-CYpulx_A.mjs → admin-B0U2Aghv.mjs} +9 -9
  4. package/dist/{agent-bundle-package-DWV6B_5q-FPT0bJaA.mjs → agent-bundle-package-DWV6B_5q-BsbCEeMw.mjs} +1 -1
  5. package/dist/{agents-Co6Jy_N8.mjs → agents-DBebUEwk.mjs} +6 -6
  6. package/dist/{api-DsK8M-ZH.mjs → api-BjBpWWlm.mjs} +4 -5
  7. package/dist/{api-keys-BUCLzRv_.mjs → api-keys-BHAgmC4E.mjs} +5 -5
  8. package/dist/{auth-niNm-yNT.mjs → auth-D-PZAjdd.mjs} +6 -6
  9. package/dist/{auth.handler-BTH-Qb00.mjs → auth.handler-CxTDSO6O.mjs} +3 -3
  10. package/dist/{build-agents-DseUtzd4-CthuIecx.mjs → build-agents-DseUtzd4-BNtZrqoY.mjs} +5 -5
  11. package/dist/{build-metadata-C8Ra_Gi--L3l8w0rh.mjs → build-metadata-BB_L45ZS-d5-QLDZ5.mjs} +10 -10
  12. package/dist/{build-progress-AR8xow4_.mjs → build-progress-BVwDg6lC.mjs} +1 -1
  13. package/dist/{build-tasks-GVuMLS0h-CCxCqd02.mjs → build-tasks-C09SdfjC-DxKcmENc.mjs} +4 -4
  14. package/dist/{build-workflows-CV4tBo6S-DhFBlp6m.mjs → build-workflows-BZ_m97Pr-DwcnRlyh.mjs} +9 -10
  15. package/dist/{build.handler-BmlXPhed.mjs → build.handler-CTX80S1K.mjs} +4 -4
  16. package/dist/{chunk-CH6r78ws.mjs → chunk-DYxdGL9S.mjs} +2 -1
  17. package/dist/{clear.handler-BDlwBzX4.mjs → clear.handler-Bksm2HI4.mjs} +1 -1
  18. package/dist/{commander-BE37hxR3.mjs → commander-DQLrBSIW.mjs} +1 -1
  19. package/dist/{connect-C9NMD8Ky.mjs → connect-DV_EztVs.mjs} +2 -2
  20. package/dist/{connect.handler-C7kysvhz.mjs → connect.handler-DbuGt3Xb.mjs} +3 -3
  21. package/dist/{context-Bid-Rqj7.mjs → context-BUzxM3QI.mjs} +2 -2
  22. package/dist/{create.handler-Cp9CV6SN.mjs → create.handler-CQCRk-Na.mjs} +1 -1
  23. package/dist/{credentials-fMfKVlEn.mjs → credentials-m18a1_hw.mjs} +6 -6
  24. package/dist/{credentials-DUkVbhvj.mjs → credentials-xPtLFTjW.mjs} +2 -2
  25. package/dist/{current-deployment-workflow-DiwUcKoB.mjs → current-deployment-workflow-pyBoobIm.mjs} +4 -4
  26. package/dist/{current.handler-eCR4nClu.mjs → current.handler-BJGJgdGP.mjs} +1 -1
  27. package/dist/{default-urls-CTQqM1_A.mjs → default-urls-BoSm4s9C.mjs} +1 -1
  28. package/dist/{delete.handler-D4ElSAcr.mjs → delete.handler-DNoehdOH.mjs} +1 -1
  29. package/dist/{deploy-B7LRWcp6.mjs → deploy-3tHCBGky.mjs} +2 -2
  30. package/dist/{deploy-DyZh--f7.mjs → deploy-BKjcO_sm.mjs} +1 -1
  31. package/dist/{deploy-progress-DK87VKJ-.mjs → deploy-progress-CyolzjRB.mjs} +1 -1
  32. package/dist/{deploy.handler-DVnH-Niv.mjs → deploy.handler-TnPNBYXZ.mjs} +27 -15
  33. package/dist/{detect-env-access-CwkOYeYM-CNTyUzme.mjs → detect-env-access-CwkOYeYM-D8-hxij0.mjs} +2 -2
  34. package/dist/{diff.handler-lIA2pRBX.mjs → diff.handler-DO2WzdGB.mjs} +3 -3
  35. package/dist/{dist-WFPTDQB3.mjs → dist-BGrWr5fp.mjs} +32 -37
  36. package/dist/{env.handler-BIzQLlmo.mjs → env.handler-C5GNyiJt.mjs} +6 -6
  37. package/dist/{error-boundary-B8cmSwJH.mjs → error-boundary-GtRvP2oP.mjs} +1 -1
  38. package/dist/{file-metadata-lrX05iRt.mjs → file-metadata-B8c7Y5yg.mjs} +2 -7
  39. package/dist/{import-module--8x5SLum-D7EiPjwl.mjs → import-module-y0glInUe-CfNsQNia.mjs} +48 -839
  40. package/dist/{init-jaqNLGmB.mjs → init-D9RIT2CY.mjs} +3 -3
  41. package/dist/{init.handler-DamvbPEw.mjs → init.handler-0TJY1YNy.mjs} +2 -2
  42. package/dist/{inspect.handler-_UcN7dxE.mjs → inspect.handler-BrYFfN4H.mjs} +3 -3
  43. package/dist/{integration-catalog-m8tj_XlD.mjs → integration-catalog-BrJsBkfx.mjs} +1 -1
  44. package/dist/integrations-vSyAQ6HA.mjs +185 -0
  45. package/dist/{invites-VntHNMYk.mjs → invites-BASM4PJr.mjs} +4 -4
  46. package/dist/{invites.list.handler-CPl4QHfc.mjs → invites.list.handler-c-aw6g5o.mjs} +1 -1
  47. package/dist/{invites.resend.handler-BAtb3AX4.mjs → invites.resend.handler-MnMEjP_Z.mjs} +1 -1
  48. package/dist/{invites.revoke.handler-qXOF1Vgx.mjs → invites.revoke.handler-CHX6Z8kj.mjs} +1 -1
  49. package/dist/keystroke.mjs +25 -24
  50. package/dist/{list-enrichment-DYvr3XDb.mjs → list-enrichment-DcplcioC.mjs} +1 -1
  51. package/dist/{list.handler-C_iBLBmS.mjs → list.handler-BBzB1_1l.mjs} +1 -1
  52. package/dist/{list.handler-pHnPFep8.mjs → list.handler-BsgCd1oF.mjs} +5 -5
  53. package/dist/{list.handler-BdRsjRlf.mjs → list.handler-CDtjm-6d.mjs} +1 -1
  54. package/dist/{list.handler-DUz1bJ4x.mjs → list.handler-DJNtXw7C.mjs} +1 -1
  55. package/dist/{list.handler-CEjKSezx.mjs → list.handler-DXwKdfIv.mjs} +2 -2
  56. package/dist/{list.handler-CJUFdmaU.mjs → list2.handler-BdE1k2kl.mjs} +3 -3
  57. package/dist/{listen-DLGZEQRL.mjs → listen-Ca9KdiB2.mjs} +2 -2
  58. package/dist/{listen.handler-kaAvYk-B.mjs → listen.handler-KWPN03S8.mjs} +2 -2
  59. package/dist/{logs-CcYqFKRU.mjs → logs-BEDf7hZ0.mjs} +3 -3
  60. package/dist/{logs.handler-lboRKNoE.mjs → logs.handler-mk1lcZbU.mjs} +2 -2
  61. package/dist/{members.add.handler-DBydP0SR.mjs → members.add.handler-CTvlxBZU.mjs} +1 -1
  62. package/dist/{members.invite.handler-D4-7fiYC.mjs → members.invite.handler-wFO0r7Pi.mjs} +1 -1
  63. package/dist/{members.list.handler-Z4cIbcNg.mjs → members.list.handler-PPdqs4nI.mjs} +1 -1
  64. package/dist/{members.remove.handler-J56D83O7.mjs → members.remove.handler-a5WI6zE4.mjs} +1 -1
  65. package/dist/{members.update.handler-B5rBv6dt.mjs → members.update.handler-3xblTzmz.mjs} +1 -1
  66. package/dist/{metadata-layout-Bv-B0nHj-B1c5giJ7.mjs → metadata-layout-Bv-B0nHj-DtMWZ7Cc.mjs} +1 -1
  67. package/dist/{normalize-path-CojS-CgQ-D4wSBHgG.mjs → normalize-path-CojS-CgQ-CRqBc6D6.mjs} +1 -1
  68. package/dist/{org-DGS91uc-.mjs → org-CzLw3neZ.mjs} +15 -15
  69. package/dist/{orgs.create.handler-B4naNUSN.mjs → orgs.create.handler-CcPpDweZ.mjs} +1 -1
  70. package/dist/{orgs.get.handler-Ci_JrT08.mjs → orgs.get.handler-BACPg7vR.mjs} +1 -1
  71. package/dist/{orgs.list.handler-CJ2byIEj.mjs → orgs.list.handler-DEF8OyvM.mjs} +1 -1
  72. package/dist/{paused.handler-BQSQvQhB.mjs → paused.handler-D4j8_Za4.mjs} +1 -1
  73. package/dist/{projects-D90_uEC2.mjs → projects-CJCKxG2u.mjs} +4 -4
  74. package/dist/{projects-fWvIJQ80.mjs → projects-s5ehKLil.mjs} +6 -4
  75. package/dist/{register.handler-CleQJhtQ.mjs → register.handler-CSvlOMF6.mjs} +18 -9
  76. package/dist/{requirements.handler-B51sxQSy.mjs → requirements.handler-Bk-sAE9C.mjs} +5 -5
  77. package/dist/{run-polling-CC6y2XXI.mjs → run-polling-DKclfet-.mjs} +3 -3
  78. package/dist/{run.handler-B31BpZJP.mjs → run.handler-x0B-CjNF.mjs} +4 -4
  79. package/dist/{runs-Bg_qDeQi.mjs → runs-DoMVOCNj.mjs} +2 -2
  80. package/dist/{schemas-B8c7Z5Iy.mjs → schemas-U2OzP9gP.mjs} +3 -2
  81. package/dist/{skills-sync.handler-DOxudKmV.mjs → skills-sync.handler-CYkCeuQn.mjs} +1 -1
  82. package/dist/{skills.command-JwKWpGvU.mjs → skills.command-DeAgMGGw.mjs} +4 -4
  83. package/dist/{source-analysis-BBg2E_6G-Ut7kYHOz.mjs → source-analysis-BBg2E_6G-BJTRqWrQ.mjs} +3 -3
  84. package/dist/{source-analysis-Cs0CTBQk.mjs → source-analysis-BMMPIHN9.mjs} +1 -1
  85. package/dist/src-BHTjsZ9V.mjs +456 -0
  86. package/dist/{src-B0tNjKMg.mjs → src-BYQwp8Ig.mjs} +1 -1
  87. package/dist/{switch.handler-Cu81T2HY.mjs → switch.handler-CV4ZBXAu.mjs} +1 -1
  88. package/dist/{sync-CXNveL61.mjs → sync-KCVM02IY.mjs} +2 -2
  89. package/dist/{sync.handler-7g1yDt0H.mjs → sync.handler-Cuw89341.mjs} +6 -6
  90. package/dist/task-BSCN9cU4.mjs +945 -0
  91. package/dist/{task-target-build-BaMtXnN7.mjs → task-target-build-B0HF2_At.mjs} +41 -55
  92. package/dist/task-target-deploy-ClbwKJ8K.mjs +4 -0
  93. package/dist/{task-target-deploy-CZBGNC0H-I-tvkGCC.mjs → task-target-deploy-dQYnMO8n-CeTmRcDw.mjs} +15 -17
  94. package/dist/task-target-deploy-runner.mjs +6 -6
  95. package/dist/{test-A5hz3c7j.mjs → test-Rm3thni3.mjs} +2 -2
  96. package/dist/{test.handler-CJtaMZVy.mjs → test.handler-CTd-heRS.mjs} +8 -8
  97. package/dist/{test.handler-Cq2l7SAr.mjs → test.handler-DhhcsvHN.mjs} +1 -1
  98. package/dist/{tool.handler-B-mOL128.mjs → tool.handler-C3LNyQbc.mjs} +9 -63
  99. package/dist/{trigger-artifacts-RizI57RC-DjhOsdOm.mjs → trigger-artifacts-BcRScRSp-DqFgzl_B.mjs} +53 -119
  100. package/dist/trigger-manifest-DTni4NaZ.mjs +42 -0
  101. package/dist/{upgrade-DhfpoyRV.mjs → upgrade-Cf7y38xR.mjs} +2 -2
  102. package/dist/{upload-BbcMkyVl.mjs → upload-CJWApEgz.mjs} +1 -1
  103. package/dist/{upload.handler-D3-W_1kq.mjs → upload.handler-BHIWYPph.mjs} +7 -7
  104. package/dist/{users.get.handler-Bd0OBI-E.mjs → users.get.handler-spWaHG8h.mjs} +1 -1
  105. package/dist/{users.list.handler-CacJz6eC.mjs → users.list.handler-DLuU7cd_.mjs} +1 -1
  106. package/dist/{users.set-role.handler-bZMQtUR0.mjs → users.set-role.handler-CojFmpcD.mjs} +1 -1
  107. package/dist/{utils-BMUWnz1P.mjs → utils-Ddltm1sR.mjs} +1 -1
  108. package/dist/{validate.handler-Ccq66ki4.mjs → validate.handler-DIJBuX1P.mjs} +4 -4
  109. package/dist/{workflow-build-_WNsLKwW.mjs → workflow-build-IGYhEC8Y.mjs} +22 -22
  110. package/dist/{workflow-bundler-BzHk73PM-WI31RJjH.mjs → workflow-bundler-BzHk73PM-Cs-4Ml-p.mjs} +2 -2
  111. package/dist/{workflows-Dy2M9bEr.mjs → workflows-MANdvLft.mjs} +19 -21
  112. package/dist/{writer-B-SpZ0G2-tq1MFgid.mjs → writer-byNNUjRm-w5O7-VT_.mjs} +24 -33
  113. package/package.json +11 -11
  114. package/dist/common-AK0q0Oz0.mjs +0 -20
  115. package/dist/credential-requirements-DrrQ9x9P.mjs +0 -250
  116. package/dist/cron-parser-Dw_cWzFu.mjs +0 -393
  117. package/dist/declared-credential-requirements-D6KT-r-e.mjs +0 -103
  118. package/dist/integrations-DRL3JmC8.mjs +0 -85
  119. package/dist/task-BguWXIiH.mjs +0 -486
  120. package/dist/task-target-deploy-DmpCWE3u.mjs +0 -4
  121. package/dist/trigger-manifest-Bq2zRbkV.mjs +0 -29
  122. package/dist/workflow-build-manifest-B2GqHyWE.mjs +0 -259
  123. /package/dist/{agent-manifest-tIsqF2OP.mjs → agent-manifest-CZ7BeUSG.mjs} +0 -0
  124. /package/dist/{browser-BpJ8ut9z.mjs → browser-Cu4k-wT_.mjs} +0 -0
  125. /package/dist/{clear-cache.handler-CTLQ1PIN.mjs → clear-cache.handler-8RFmjHoo.mjs} +0 -0
  126. /package/dist/{clear.handler-C_pXAeBG.mjs → clear.handler-mfNmIUYP.mjs} +0 -0
  127. /package/dist/{concurrency-gXn9Rw8x-BTlfau8D.mjs → concurrency-gXn9Rw8x-BSBbRfVp.mjs} +0 -0
  128. /package/dist/{credential-env-map-BA4LNI7x.mjs → credential-env-map-qLCR_QbO.mjs} +0 -0
  129. /package/dist/{credential-schema-mismatch-z74ud-YZ.mjs → credential-schema-mismatch-BHI_B-U-.mjs} +0 -0
  130. /package/dist/{diff-utils-B0ED-Igv.mjs → diff-utils-x5pi8SrL.mjs} +0 -0
  131. /package/dist/{layout-P1v-Gssz.mjs → layout-DRf9qUf8.mjs} +0 -0
  132. /package/dist/{list.handler-BLkQKiV1.mjs → list.handler-CynN-ezD.mjs} +0 -0
  133. /package/dist/{logs.handler-DyRoevtO.mjs → logs.handler-CcA1UzJm.mjs} +0 -0
  134. /package/dist/{oxc-B3KI3rf_-Cvx4Z-4H.mjs → oxc-B3KI3rf_-Cnk0L10M.mjs} +0 -0
  135. /package/dist/{read-credential-keys-77a91T8M-B0eiobOd.mjs → read-credential-keys-77a91T8M-CzXPGxdU.mjs} +0 -0
  136. /package/dist/{resolve-project-CNQtOWE4.mjs → resolve-project-CWP2fji3.mjs} +0 -0
  137. /package/dist/{rolldown-runtime-twds-ZHy-8uqgIurC.mjs → rolldown-runtime-twds-ZHy-BoF7MLzP.mjs} +0 -0
  138. /package/dist/{run-polling-DARidqo-.mjs → run-polling-CzyVv7Ba.mjs} +0 -0
  139. /package/dist/{schema-BjH_e4Fo.mjs → schema-CvSZqa3t.mjs} +0 -0
  140. /package/dist/{schema-display-NVEl_DFY.mjs → schema-display-DxLA3j5H.mjs} +0 -0
  141. /package/dist/{skill-installer-BBgN2tzW.mjs → skill-installer-CYFshTBy.mjs} +0 -0
  142. /package/dist/{skills.handler-Do9I3dQS.mjs → skills.handler-Bma-MJX-.mjs} +0 -0
  143. /package/dist/{spinner-progress-Bx-fYItP.mjs → spinner-progress-DV28G4tP.mjs} +0 -0
  144. /package/dist/{status.handler-BsVtDW_V.mjs → status.handler-BOV0eX3J.mjs} +0 -0
  145. /package/dist/{types-BMBuhHhW.mjs → types-DamInJD6.mjs} +0 -0
  146. /package/dist/{upgrade.handler-5qSzPC7D.mjs → upgrade.handler-Bz_oQcAw.mjs} +0 -0
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { t as createTypedCommand } from "./commander-BE37hxR3.mjs";
3
+ import { t as createTypedCommand } from "./commander-DQLrBSIW.mjs";
4
4
  import { z } from "zod";
5
5
  //#region src/commands/deploy/deploy.command.ts
6
6
  /**
@@ -64,7 +64,7 @@ function createDeployCommand() {
64
64
  schema: DeployOptionsSchema,
65
65
  optionsConfig: DEPLOY_OPTIONS_CONFIG,
66
66
  contextMode: "auth",
67
- loadHandler: async () => (await import("./deploy.handler-DVnH-Niv.mjs")).handleDeploy
67
+ loadHandler: async () => (await import("./deploy.handler-TnPNBYXZ.mjs")).handleDeploy
68
68
  });
69
69
  cmd.enablePositionalOptions();
70
70
  cmd.passThroughOptions();
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { a as createKyInstance, n as auth, r as bundles, s as getClientEnv, t as projects } from "./projects-fWvIJQ80.mjs";
3
+ import { a as createKyInstance, n as auth, r as bundles, s as getClientEnv, t as projects } from "./projects-s5ehKLil.mjs";
4
4
  //#region ../../packages/workflow-sdk/src/deploy.ts
5
5
  function createDeployClient(config = {}) {
6
6
  const env = getClientEnv();
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { a as ui } from "./keystroke.mjs";
4
- import { t as createSpinnerProgress } from "./spinner-progress-Bx-fYItP.mjs";
4
+ import { t as createSpinnerProgress } from "./spinner-progress-DV28G4tP.mjs";
5
5
  //#region src/lib/deploy-progress.ts
6
6
  function renderItemFailure(event, kind, spinner) {
7
7
  if (event.result === "failure") spinner.fail(`${kind} failed (${event.name})`, void 0, event.error);
@@ -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-Bid-Rqj7.mjs";
7
- import { i as readAgentManifestsFromOutDir, o as readWorkflowsFromDisk } from "./dist-WFPTDQB3.mjs";
8
- import { t as requireWorkflowsDir } from "./resolve-project-CNQtOWE4.mjs";
9
- import { n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-_WNsLKwW.mjs";
10
- import { t as createBuildProgress } from "./build-progress-AR8xow4_.mjs";
11
- import { t as createDeployProgress } from "./deploy-progress-DK87VKJ-.mjs";
12
- import { t as withErrorBoundary } from "./error-boundary-B8cmSwJH.mjs";
13
- import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-DiwUcKoB.mjs";
14
- import { t as computeWorkflowDiff } from "./diff-utils-B0ED-Igv.mjs";
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-_WNsLKwW.mjs").then((n) => n.o);
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-WFPTDQB3.mjs").then((n) => n.r)).deployFromDir)({
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-BaMtXnN7.mjs")).buildTaskTargets)({
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-DmpCWE3u.mjs")).deployTaskTargets)({
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-B0tNjKMg.mjs");
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-DyZh--f7.mjs")).createDeployClient)(authOptions);
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 || [];
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { n as __exportAll } from "./chunk-CH6r78ws.mjs";
4
- import { t as __exportAll$1 } from "./rolldown-runtime-twds-ZHy-8uqgIurC.mjs";
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-Bid-Rqj7.mjs";
7
- import { n as resolveLocalWorkflowManifest, t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-DiwUcKoB.mjs";
8
- import { n as renderDiff, t as computeWorkflowDiff } from "./diff-utils-B0ED-Igv.mjs";
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-CH6r78ws.mjs";
3
+ import { n as __exportAll } from "./chunk-DYxdGL9S.mjs";
4
4
  import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
5
- import { n as SHA256HashSchema } from "./common-AK0q0Oz0.mjs";
6
- import { c as TriggerUploadDataSchema, d as collectCredentialRequirementEntries } from "./credential-requirements-DrrQ9x9P.mjs";
7
- import { a as FlowGraphSchema, r as WorkflowBuildManifestSchema } from "./workflow-build-manifest-B2GqHyWE.mjs";
8
- import { t as AgentVersionManifestSchema } from "./agent-manifest-tIsqF2OP.mjs";
9
- import { n as TaskBuildManifestSchema } from "./task-BguWXIiH.mjs";
10
- import { n as FileMetadataSchema } from "./file-metadata-lrX05iRt.mjs";
11
- import { t as computeProjectSnapshotHash } from "./task-target-deploy-CZBGNC0H-I-tvkGCC.mjs";
12
- 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-P1v-Gssz.mjs";
13
- import { n as resolveProjectBuildOutputDir } from "./utils-BMUWnz1P.mjs";
14
- import { t as TriggerBuildManifestSchema } from "./trigger-manifest-Bq2zRbkV.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
- releasePreparedTaskCallbackBundleCode(preparedTasks);
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 releasePreparedTaskCallbackBundleCode(preparedTasks) {
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 readCallbackBundle(baseDir, relativePath) {
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 callbackExports = manifest.functions && Object.keys(manifest.functions).length > 0 ? Object.fromEntries(Object.entries(manifest.functions).map(([key, value]) => [key, value.export])) : void 0;
600
- const callbackBundlePath = manifest.functions ? Object.values(manifest.functions)[0]?.js : void 0;
601
- const transformCallbackExports = manifest.attachmentFunctions && Object.keys(manifest.attachmentFunctions).length > 0 ? Object.fromEntries(Object.entries(manifest.attachmentFunctions).map(([key, value]) => [key, value.export])) : void 0;
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
- ...callbackExports ? { callbackExports } : {},
615
- ...callbackBundlePath ? { callbackBundle: await readCallbackBundle(triggerDir, callbackBundlePath) } : {},
616
- ...transformCallbackExports ? { transformCallbackExports } : {},
617
- ...transformCallbackBundlePath ? { transformCallbackBundle: await readCallbackBundle(triggerDir, transformCallbackBundlePath) } : {}
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 triggerName = trigger.name ?? `trigger_${index}`;
697
- const triggerId = createHash("sha256").update(`${entryName}::${triggerName}`).digest("hex").slice(0, 16);
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-Bid-Rqj7.mjs";
7
- import { n as CredentialConnectionIdSchema, r as CredentialScopeSchema, t as ConnectionStatusSchema } from "./schema-BjH_e4Fo.mjs";
8
- import { a as readManifestsFromOutDir } from "./dist-WFPTDQB3.mjs";
9
- import { t as requireWorkflowsDir } from "./resolve-project-CNQtOWE4.mjs";
10
- import { t as getIntegrationCatalog } from "./integration-catalog-m8tj_XlD.mjs";
11
- import { t as groupCredentialRequirements } from "./credentials-DUkVbhvj.mjs";
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-z74ud-YZ.mjs";
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 { a as SourceLocationSchema, r as CapturedVariableSchema } from "./source-analysis-Cs0CTBQk.mjs";
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) {