@keystrokehq/cli 0.0.12 → 0.0.14

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 (130) hide show
  1. package/dist/{accept.handler-BU6kg8ET.mjs → accept.handler-BsZQqmzU.mjs} +1 -1
  2. package/dist/{admin-B4GNbCl5.mjs → admin-CXQezpQA.mjs} +9 -9
  3. package/dist/{agents-DDqXmmFV.mjs → agents-BdzwXAI1.mjs} +6 -6
  4. package/dist/{api-DuKKdCpF.mjs → api-Sf7A0I5T.mjs} +1 -1
  5. package/dist/{api-keys-BE_hLonn.mjs → api-keys-BZmUiIEr.mjs} +5 -5
  6. package/dist/{auth-DNK5MYm4.mjs → auth-CGBgi6PG.mjs} +5 -5
  7. package/dist/{auth.handler-DrjDODhZ.mjs → auth.handler-u3qmoUX0.mjs} +1 -2
  8. package/dist/{build-agents-DseUtzd4-DIDGsZWL.mjs → build-agents-DseUtzd4-DBQ82ErJ.mjs} +3 -3
  9. package/dist/{build-metadata-xqeWhaTS-WR8IooGe.mjs → build-metadata-qebrtraZ-BL-fo8HW.mjs} +7 -7
  10. package/dist/{build-progress-CITED2tv.mjs → build-progress-BataNqG-.mjs} +1 -1
  11. package/dist/{build-tasks-GVuMLS0h-DnS9QWzf.mjs → build-tasks-GVuMLS0h-CWrrj8SF.mjs} +3 -3
  12. package/dist/{build-workflows-Dmzay1vP-DKVuBAjD.mjs → build-workflows-Dmzay1vP-CAhb0BSk.mjs} +6 -6
  13. package/dist/{build.handler-DI146Cd3.mjs → build.handler-DTKBdDzF.mjs} +4 -4
  14. package/dist/{clear.handler-B1c17nAi.mjs → clear.handler-Dpe05eTq.mjs} +1 -1
  15. package/dist/{commander-BwtBoukr.mjs → commander-i-7LgOyc.mjs} +1 -1
  16. package/dist/{connect-IPcL37np.mjs → connect-BcTkRZ10.mjs} +2 -2
  17. package/dist/{connect.handler-ToY6qmMz.mjs → connect.handler-DilOwhlW.mjs} +3 -3
  18. package/dist/{context-DQ4IA0yO.mjs → context-B1L8pZsH.mjs} +1 -1
  19. package/dist/{create.handler-BAyG0PmG.mjs → create.handler-DF1Ye4nr.mjs} +1 -1
  20. package/dist/{credentials-CZiu-534.mjs → credentials-BsEHWMBh.mjs} +6 -6
  21. package/dist/cron-parser-C2eJD0yD.mjs +393 -0
  22. package/dist/{current-deployment-workflow-B4IufKqe.mjs → current-deployment-workflow-Biw1zV7S.mjs} +4 -4
  23. package/dist/{current.handler-DA4FGfUP.mjs → current.handler-C48q2mBd.mjs} +1 -1
  24. package/dist/{delete.handler-CJcyvnUF.mjs → delete.handler-Bude0SVP.mjs} +1 -1
  25. package/dist/{deploy-BvaFgVvf.mjs → deploy-D4ILrWpx.mjs} +1 -1
  26. package/dist/{deploy-CqXOhecY.mjs → deploy-DVE7Mx_X.mjs} +2 -2
  27. package/dist/{deploy-progress-CLO-yidq.mjs → deploy-progress-7qj5ek8b.mjs} +1 -1
  28. package/dist/{deploy.handler-DQg_rXgs.mjs → deploy.handler-B3E7uX-x.mjs} +15 -15
  29. package/dist/{detect-env-access-CwkOYeYM-EmkYvbfJ.mjs → detect-env-access-CwkOYeYM-BLtKepjx.mjs} +1 -1
  30. package/dist/{diff.handler-BXg47NIZ.mjs → diff.handler-BMNZ_3J_.mjs} +3 -3
  31. package/dist/{dist-BMkNN03r.mjs → dist-BVD3Ga_l.mjs} +7 -7
  32. package/dist/{env.handler-DFKzjIQT.mjs → env.handler-BUBsjm1k.mjs} +6 -6
  33. package/dist/{error-boundary-B2ZKRkZI.mjs → error-boundary-CyLcinp1.mjs} +1 -1
  34. package/dist/{import-module-DEI7R8Yh-Xz-KAPvB.mjs → import-module-DEI7R8Yh-L32hhSoh.mjs} +817 -34
  35. package/dist/{init-DhnABm3J.mjs → init-CxMQ2ysa.mjs} +2 -2
  36. package/dist/{init.handler-QgehN8B4.mjs → init.handler-BPKxeGZS.mjs} +2 -2
  37. package/dist/{inspect.handler-CerVdo23.mjs → inspect.handler-CJ7e6iFB.mjs} +3 -3
  38. package/dist/{integration-catalog-BRrJIAVz.mjs → integration-catalog-BgT4mLzW.mjs} +1 -1
  39. package/dist/{integrations-7-U7nmkh.mjs → integrations-DUlJhGUS.mjs} +5 -5
  40. package/dist/{invites-CmGmnUla.mjs → invites-BlB-hKUE.mjs} +4 -4
  41. package/dist/{invites.list.handler-CmkIf-uW.mjs → invites.list.handler-DmeMcezN.mjs} +1 -1
  42. package/dist/{invites.resend.handler-FZl20yat.mjs → invites.resend.handler-pJTPtKHE.mjs} +1 -1
  43. package/dist/{invites.revoke.handler-D95mrfmB.mjs → invites.revoke.handler-4NgnnfiU.mjs} +1 -1
  44. package/dist/keystroke.mjs +21 -21
  45. package/dist/{list-enrichment-I4XQaMg0.mjs → list-enrichment-C6u5eI0j.mjs} +1 -1
  46. package/dist/{list.handler-DRnHsEa0.mjs → list.handler-BSyrxCma.mjs} +1 -1
  47. package/dist/{list.handler-DsYyTUhA.mjs → list.handler-BuX-bb2y.mjs} +1 -1
  48. package/dist/{list.handler-H8aQSsFM.mjs → list.handler-C7AChEPW.mjs} +2 -2
  49. package/dist/{list.handler-Cp767f5l.mjs → list.handler-CBEXiTAK.mjs} +1 -1
  50. package/dist/{list.handler-DXl8igi2.mjs → list.handler-DhFni3rk.mjs} +5 -5
  51. package/dist/{list.handler-k8k7wVIV.mjs → list.handler-K3x71Y4Z.mjs} +3 -3
  52. package/dist/{listen-DckJq0y0.mjs → listen-drcHFcKq.mjs} +2 -2
  53. package/dist/{listen.handler-Bf5MXKPO.mjs → listen.handler-DjK6RlLf.mjs} +2 -2
  54. package/dist/{logs-D_l5BIn2.mjs → logs-NI-DyeFY.mjs} +3 -3
  55. package/dist/{logs.handler-kYO3Uv9t.mjs → logs.handler-PRYGI57p.mjs} +2 -2
  56. package/dist/{members.add.handler-C2cppd-9.mjs → members.add.handler-B4H8Hn6x.mjs} +1 -1
  57. package/dist/{members.invite.handler-DY6kS4LN.mjs → members.invite.handler-D8ONlt4Y.mjs} +1 -1
  58. package/dist/{members.list.handler-CFBG3SBw.mjs → members.list.handler-BHJTMMiA.mjs} +1 -1
  59. package/dist/{members.remove.handler-LQ61_qip.mjs → members.remove.handler-_hKd_sFd.mjs} +1 -1
  60. package/dist/{members.update.handler-CqISA1mf.mjs → members.update.handler-CC7J0k8n.mjs} +1 -1
  61. package/dist/{normalize-path-CojS-CgQ-D5D0AIHR.mjs → normalize-path-CojS-CgQ-DFTvyA27.mjs} +1 -1
  62. package/dist/{org-KQ2nD0yN.mjs → org-8bkIZAJ4.mjs} +15 -15
  63. package/dist/{orgs.create.handler-Mv5CTGcG.mjs → orgs.create.handler-vXQgDJZ_.mjs} +1 -1
  64. package/dist/{orgs.get.handler-DvvOhshX.mjs → orgs.get.handler-D_Jfl18x.mjs} +1 -1
  65. package/dist/{orgs.list.handler-wWAg6cKg.mjs → orgs.list.handler-BNjoTJvV.mjs} +1 -1
  66. package/dist/{paused.handler-CbMkPD9e.mjs → paused.handler-ST9dCe8E.mjs} +1 -1
  67. package/dist/{projects-CWLOF5x4.mjs → projects-DfaG_3WP.mjs} +1 -1
  68. package/dist/{projects-CYqeKQGT.mjs → projects-Pp5ENoyh.mjs} +4 -4
  69. package/dist/{requirements.handler-CnDTBcH5.mjs → requirements.handler-CZ53jJ_5.mjs} +5 -5
  70. package/dist/{run-polling-49w3PYAv.mjs → run-polling-7YWCL6c-.mjs} +3 -3
  71. package/dist/{run.handler-CX3YiJmj.mjs → run.handler-BNrAIXDG.mjs} +4 -4
  72. package/dist/{runs-HJejvQnQ.mjs → runs-Bs8VzL8P.mjs} +2 -2
  73. package/dist/{skills-sync.handler-Cf74vKJA.mjs → skills-sync.handler-DXF6IgEX.mjs} +1 -1
  74. package/dist/{skills.command-KyAwBeST.mjs → skills.command-B8yExFCn.mjs} +3 -3
  75. package/dist/{source-analysis-DEEChuND-zifGW9QF.mjs → source-analysis-DTnwNwKq-BqHdBGtw.mjs} +5 -5
  76. package/dist/{src-D-dFmoAF.mjs → src-BQdOWkyv.mjs} +1 -1
  77. package/dist/{switch.handler-DfsKVtR6.mjs → switch.handler-BFBM8rSi.mjs} +1 -1
  78. package/dist/{sync-Coh9YPjY.mjs → sync-BSL1s6PR.mjs} +2 -2
  79. package/dist/{sync.handler-vvFIUut1.mjs → sync.handler-BN9oDWVx.mjs} +6 -6
  80. package/dist/{task-BBgEvdG1.mjs → task-BNXDZU71.mjs} +1 -390
  81. package/dist/{task-target-build-atWwwnSF.mjs → task-target-build-Du0ObGbb.mjs} +4 -4
  82. package/dist/{task-target-deploy-CRsrQTOy.mjs → task-target-deploy-OyxLvh3a.mjs} +1 -1
  83. package/dist/task-target-deploy-runner.mjs +4 -4
  84. package/dist/{test-BzpSLhV8.mjs → test-BIz-oBxy.mjs} +65 -11
  85. package/dist/{test.handler-St9sBXyH.mjs → test.handler-Dk3CmTa7.mjs} +1 -1
  86. package/dist/{trigger-artifacts-RizI57RC-C-yCtEi-.mjs → trigger-artifacts-RizI57RC-abdkW8-z.mjs} +3 -3
  87. package/dist/{try-deploy.handler-32lU1tg4.mjs → try-deploy.handler-A16ahnCF.mjs} +8 -8
  88. package/dist/{upgrade-YavAf8AC.mjs → upgrade-f97U8Rll.mjs} +2 -2
  89. package/dist/{upload.handler-DemogvI1.mjs → upload.handler-CUtfr3hY.mjs} +7 -7
  90. package/dist/{users.get.handler-B20PMSbl.mjs → users.get.handler-D0WO6D1K.mjs} +1 -1
  91. package/dist/{users.list.handler-BplFTjv3.mjs → users.list.handler-BSTIniF1.mjs} +1 -1
  92. package/dist/{users.set-role.handler-wdmI6o3G.mjs → users.set-role.handler-DAKdSkbn.mjs} +1 -1
  93. package/dist/{utils-DpEtybzI.mjs → utils-LlH3l_yT.mjs} +1 -1
  94. package/dist/{validate.handler-BoRyygMl.mjs → validate.handler-CUP3SjzC.mjs} +3 -3
  95. package/dist/{workflow-build-CoJMwpPO.mjs → workflow-build-C_qkq7jk.mjs} +17 -17
  96. package/dist/{workflow-bundler-BzHk73PM-UJQa7Ubk.mjs → workflow-bundler-BzHk73PM-CRcJvu9a.mjs} +2 -2
  97. package/dist/{workflows-Cag9O9hx.mjs → workflows-ixllXKLo.mjs} +13 -13
  98. package/dist/{writer-CtvttJdP-BfNsrheU.mjs → writer-CtvttJdP-BEJHbiLs.mjs} +5 -5
  99. package/package.json +10 -10
  100. /package/dist/{agent-bundle-package-DWV6B_5q-cB76j6UL.mjs → agent-bundle-package-DWV6B_5q-rRTPU13L.mjs} +0 -0
  101. /package/dist/{browser-B4K0VW8p.mjs → browser-3cUiPlk2.mjs} +0 -0
  102. /package/dist/{clear-cache.handler-Dywqc7TG.mjs → clear-cache.handler-Bkt6GKnF.mjs} +0 -0
  103. /package/dist/{clear.handler-ui4e1CnJ.mjs → clear.handler-BieI9Oix.mjs} +0 -0
  104. /package/dist/{concurrency-gXn9Rw8x-CaI6Vtbu.mjs → concurrency-gXn9Rw8x-BI6HQNfC.mjs} +0 -0
  105. /package/dist/{credential-env-map-D0zgoUl0.mjs → credential-env-map-B2nVJXPn.mjs} +0 -0
  106. /package/dist/{credential-schema-mismatch-8pqwvswO.mjs → credential-schema-mismatch-CfyBUMPS.mjs} +0 -0
  107. /package/dist/{credentials-Bu1MBiCL.mjs → credentials-CiOwDS5y.mjs} +0 -0
  108. /package/dist/{diff-utils-BoXI705D.mjs → diff-utils-4OQTpP5s.mjs} +0 -0
  109. /package/dist/{file-metadata-Dwy9KKq_.mjs → file-metadata-DaPPpiTh.mjs} +0 -0
  110. /package/dist/{layout-DRf9qUf8.mjs → layout-DaoP8bcD.mjs} +0 -0
  111. /package/dist/{list.handler-BrTW2viq.mjs → list.handler-VGPaJzl-.mjs} +0 -0
  112. /package/dist/{logs.handler-DxSKmDCq.mjs → logs.handler-BqmZ4eLx.mjs} +0 -0
  113. /package/dist/{metadata-layout-C6ed-9dl-EF5pCtIH.mjs → metadata-layout-C6ed-9dl-DCTTsjiG.mjs} +0 -0
  114. /package/dist/{options-DFPs-tAB.mjs → options-BsIkm0Bb.mjs} +0 -0
  115. /package/dist/{oxc-B3KI3rf_-CHDUXsus.mjs → oxc-B3KI3rf_-DdiZWqe2.mjs} +0 -0
  116. /package/dist/{read-credential-keys-77a91T8M-CzXPGxdU.mjs → read-credential-keys-77a91T8M-COvwpok_.mjs} +0 -0
  117. /package/dist/{register.handler-D7ZZAnGP.mjs → register.handler-CttgzybN.mjs} +0 -0
  118. /package/dist/{resolve-project-bVPMcs-y.mjs → resolve-project-CI_PxRXi.mjs} +0 -0
  119. /package/dist/{rolldown-runtime-twds-ZHy-3DMm_Sby.mjs → rolldown-runtime-twds-ZHy-CO5ir_za.mjs} +0 -0
  120. /package/dist/{run-polling-Cb4ssXIE.mjs → run-polling-BPmB5N5A.mjs} +0 -0
  121. /package/dist/{schema-DFJiNWyd.mjs → schema-BjH_e4Fo.mjs} +0 -0
  122. /package/dist/{schema-display-CyCWSgfY.mjs → schema-display-B0LmISCe.mjs} +0 -0
  123. /package/dist/{skills.handler-C_4VzVmc.mjs → skills.handler-CPKCf9ZK.mjs} +0 -0
  124. /package/dist/{spinner-progress-CS1BEdNB.mjs → spinner-progress-DpL68vYK.mjs} +0 -0
  125. /package/dist/{status.handler-Cm9aNUBn.mjs → status.handler-DxCJRm1n.mjs} +0 -0
  126. /package/dist/{sync-keystroke-agent-skills-CX9fS5nQ.mjs → sync-keystroke-agent-skills-ChUj1LnK.mjs} +0 -0
  127. /package/dist/{task-target-deploy-CZBGNC0H-BwPSfaJQ.mjs → task-target-deploy-CZBGNC0H-Ck724yF4.mjs} +0 -0
  128. /package/dist/{trigger-manifest-D5rnpPkA.mjs → trigger-manifest-PTjVYL1r.mjs} +0 -0
  129. /package/dist/{upgrade.handler-C2eZ_tg3.mjs → upgrade.handler-CXEF4ue0.mjs} +0 -0
  130. /package/dist/{upload-C0kaZu08.mjs → upload-wwSPAC5_.mjs} +0 -0
@@ -0,0 +1,393 @@
1
+ #!/usr/bin/env node
2
+
3
+ //#region ../../node_modules/.pnpm/cron-schedule@6.0.0/node_modules/cron-schedule/dist/utils.js
4
+ function extractDateElements(date) {
5
+ return {
6
+ second: date.getSeconds(),
7
+ minute: date.getMinutes(),
8
+ hour: date.getHours(),
9
+ day: date.getDate(),
10
+ month: date.getMonth(),
11
+ weekday: date.getDay(),
12
+ year: date.getFullYear()
13
+ };
14
+ }
15
+ function getDaysInMonth(year, month) {
16
+ return new Date(year, month + 1, 0).getDate();
17
+ }
18
+ function getDaysBetweenWeekdays(weekday1, weekday2) {
19
+ if (weekday1 <= weekday2) return weekday2 - weekday1;
20
+ return 6 - weekday1 + weekday2 + 1;
21
+ }
22
+ //#endregion
23
+ //#region ../../node_modules/.pnpm/cron-schedule@6.0.0/node_modules/cron-schedule/dist/cron.js
24
+ var Cron = class {
25
+ constructor({ seconds, minutes, hours, days, months, weekdays }) {
26
+ if (!seconds || seconds.size === 0) throw new Error("There must be at least one allowed second.");
27
+ if (!minutes || minutes.size === 0) throw new Error("There must be at least one allowed minute.");
28
+ if (!hours || hours.size === 0) throw new Error("There must be at least one allowed hour.");
29
+ if (!months || months.size === 0) throw new Error("There must be at least one allowed month.");
30
+ if ((!weekdays || weekdays.size === 0) && (!days || days.size === 0)) throw new Error("There must be at least one allowed day or weekday.");
31
+ this.seconds = Array.from(seconds).sort((a, b) => a - b);
32
+ this.minutes = Array.from(minutes).sort((a, b) => a - b);
33
+ this.hours = Array.from(hours).sort((a, b) => a - b);
34
+ this.days = Array.from(days).sort((a, b) => a - b);
35
+ this.months = Array.from(months).sort((a, b) => a - b);
36
+ this.weekdays = Array.from(weekdays).sort((a, b) => a - b);
37
+ const validateData = (name, data, constraint) => {
38
+ if (data.some((x) => typeof x !== "number" || x % 1 !== 0 || x < constraint.min || x > constraint.max)) throw new Error(`${name} must only consist of integers which are within the range of ${constraint.min} and ${constraint.max}`);
39
+ };
40
+ validateData("seconds", this.seconds, {
41
+ min: 0,
42
+ max: 59
43
+ });
44
+ validateData("minutes", this.minutes, {
45
+ min: 0,
46
+ max: 59
47
+ });
48
+ validateData("hours", this.hours, {
49
+ min: 0,
50
+ max: 23
51
+ });
52
+ validateData("days", this.days, {
53
+ min: 1,
54
+ max: 31
55
+ });
56
+ validateData("months", this.months, {
57
+ min: 0,
58
+ max: 11
59
+ });
60
+ validateData("weekdays", this.weekdays, {
61
+ min: 0,
62
+ max: 6
63
+ });
64
+ this.reversed = {
65
+ seconds: this.seconds.map((x) => x).reverse(),
66
+ minutes: this.minutes.map((x) => x).reverse(),
67
+ hours: this.hours.map((x) => x).reverse(),
68
+ days: this.days.map((x) => x).reverse(),
69
+ months: this.months.map((x) => x).reverse(),
70
+ weekdays: this.weekdays.map((x) => x).reverse()
71
+ };
72
+ }
73
+ /**
74
+ * Find the next or previous hour, starting from the given start hour that matches the hour constraint.
75
+ * startHour itself might also be allowed.
76
+ */
77
+ findAllowedHour(dir, startHour) {
78
+ return dir === "next" ? this.hours.find((x) => x >= startHour) : this.reversed.hours.find((x) => x <= startHour);
79
+ }
80
+ /**
81
+ * Find the next or previous minute, starting from the given start minute that matches the minute constraint.
82
+ * startMinute itself might also be allowed.
83
+ */
84
+ findAllowedMinute(dir, startMinute) {
85
+ return dir === "next" ? this.minutes.find((x) => x >= startMinute) : this.reversed.minutes.find((x) => x <= startMinute);
86
+ }
87
+ /**
88
+ * Find the next or previous second, starting from the given start second that matches the second constraint.
89
+ * startSecond itself IS NOT allowed.
90
+ */
91
+ findAllowedSecond(dir, startSecond) {
92
+ return dir === "next" ? this.seconds.find((x) => x > startSecond) : this.reversed.seconds.find((x) => x < startSecond);
93
+ }
94
+ /**
95
+ * Find the next or previous time, starting from the given start time that matches the hour, minute
96
+ * and second constraints. startTime itself might also be allowed.
97
+ */
98
+ findAllowedTime(dir, startTime) {
99
+ let hour = this.findAllowedHour(dir, startTime.hour);
100
+ if (hour !== void 0) if (hour === startTime.hour) {
101
+ let minute = this.findAllowedMinute(dir, startTime.minute);
102
+ if (minute !== void 0) if (minute === startTime.minute) {
103
+ const second = this.findAllowedSecond(dir, startTime.second);
104
+ if (second !== void 0) return {
105
+ hour,
106
+ minute,
107
+ second
108
+ };
109
+ minute = this.findAllowedMinute(dir, dir === "next" ? startTime.minute + 1 : startTime.minute - 1);
110
+ if (minute !== void 0) return {
111
+ hour,
112
+ minute,
113
+ second: dir === "next" ? this.seconds[0] : this.reversed.seconds[0]
114
+ };
115
+ } else return {
116
+ hour,
117
+ minute,
118
+ second: dir === "next" ? this.seconds[0] : this.reversed.seconds[0]
119
+ };
120
+ hour = this.findAllowedHour(dir, dir === "next" ? startTime.hour + 1 : startTime.hour - 1);
121
+ if (hour !== void 0) return {
122
+ hour,
123
+ minute: dir === "next" ? this.minutes[0] : this.reversed.minutes[0],
124
+ second: dir === "next" ? this.seconds[0] : this.reversed.seconds[0]
125
+ };
126
+ } else return {
127
+ hour,
128
+ minute: dir === "next" ? this.minutes[0] : this.reversed.minutes[0],
129
+ second: dir === "next" ? this.seconds[0] : this.reversed.seconds[0]
130
+ };
131
+ }
132
+ /**
133
+ * Find the next or previous day in the given month, starting from the given startDay
134
+ * that matches either the day or the weekday constraint. startDay itself might also be allowed.
135
+ */
136
+ findAllowedDayInMonth(dir, year, month, startDay) {
137
+ var _a, _b;
138
+ if (startDay < 1) throw new Error("startDay must not be smaller than 1.");
139
+ const daysInMonth = getDaysInMonth(year, month);
140
+ const daysRestricted = this.days.length !== 31;
141
+ const weekdaysRestricted = this.weekdays.length !== 7;
142
+ if (!daysRestricted && !weekdaysRestricted) {
143
+ if (startDay > daysInMonth) return dir === "next" ? void 0 : daysInMonth;
144
+ return startDay;
145
+ }
146
+ let allowedDayByDays;
147
+ if (daysRestricted) {
148
+ allowedDayByDays = dir === "next" ? this.days.find((x) => x >= startDay) : this.reversed.days.find((x) => x <= startDay);
149
+ if (allowedDayByDays !== void 0 && allowedDayByDays > daysInMonth) allowedDayByDays = void 0;
150
+ }
151
+ let allowedDayByWeekdays;
152
+ if (weekdaysRestricted) {
153
+ const startWeekday = new Date(year, month, startDay).getDay();
154
+ const nearestAllowedWeekday = dir === "next" ? (_a = this.weekdays.find((x) => x >= startWeekday)) !== null && _a !== void 0 ? _a : this.weekdays[0] : (_b = this.reversed.weekdays.find((x) => x <= startWeekday)) !== null && _b !== void 0 ? _b : this.reversed.weekdays[0];
155
+ if (nearestAllowedWeekday !== void 0) {
156
+ const daysBetweenWeekdays = dir === "next" ? getDaysBetweenWeekdays(startWeekday, nearestAllowedWeekday) : getDaysBetweenWeekdays(nearestAllowedWeekday, startWeekday);
157
+ allowedDayByWeekdays = dir === "next" ? startDay + daysBetweenWeekdays : startDay - daysBetweenWeekdays;
158
+ if (allowedDayByWeekdays > daysInMonth || allowedDayByWeekdays < 1) allowedDayByWeekdays = void 0;
159
+ }
160
+ }
161
+ if (allowedDayByDays !== void 0 && allowedDayByWeekdays !== void 0) return dir === "next" ? Math.min(allowedDayByDays, allowedDayByWeekdays) : Math.max(allowedDayByDays, allowedDayByWeekdays);
162
+ if (allowedDayByDays !== void 0) return allowedDayByDays;
163
+ if (allowedDayByWeekdays !== void 0) return allowedDayByWeekdays;
164
+ }
165
+ /** Gets the next date starting from the given start date or now. */
166
+ getNextDate(startDate = /* @__PURE__ */ new Date()) {
167
+ const startDateElements = extractDateElements(startDate);
168
+ let minYear = startDateElements.year;
169
+ let startIndexMonth = this.months.findIndex((x) => x >= startDateElements.month);
170
+ if (startIndexMonth === -1) {
171
+ startIndexMonth = 0;
172
+ minYear++;
173
+ }
174
+ const maxIterations = this.months.length * 5;
175
+ for (let i = 0; i < maxIterations; i++) {
176
+ const year = minYear + Math.floor((startIndexMonth + i) / this.months.length);
177
+ const month = this.months[(startIndexMonth + i) % this.months.length];
178
+ const isStartMonth = year === startDateElements.year && month === startDateElements.month;
179
+ let day = this.findAllowedDayInMonth("next", year, month, isStartMonth ? startDateElements.day : 1);
180
+ let isStartDay = isStartMonth && day === startDateElements.day;
181
+ if (day !== void 0 && isStartDay) {
182
+ const nextTime = this.findAllowedTime("next", startDateElements);
183
+ if (nextTime !== void 0) return new Date(year, month, day, nextTime.hour, nextTime.minute, nextTime.second);
184
+ day = this.findAllowedDayInMonth("next", year, month, day + 1);
185
+ isStartDay = false;
186
+ }
187
+ if (day !== void 0 && !isStartDay) return new Date(year, month, day, this.hours[0], this.minutes[0], this.seconds[0]);
188
+ }
189
+ throw new Error("No valid next date was found.");
190
+ }
191
+ /** Gets the specified amount of future dates starting from the given start date or now. */
192
+ getNextDates(amount, startDate) {
193
+ const dates = [];
194
+ let nextDate;
195
+ for (let i = 0; i < amount; i++) {
196
+ nextDate = this.getNextDate(nextDate !== null && nextDate !== void 0 ? nextDate : startDate);
197
+ dates.push(nextDate);
198
+ }
199
+ return dates;
200
+ }
201
+ /**
202
+ * Get an ES6 compatible iterator which iterates over the next dates starting from startDate or now.
203
+ * The iterator runs until the optional endDate is reached or forever.
204
+ */
205
+ *getNextDatesIterator(startDate, endDate) {
206
+ let nextDate;
207
+ while (true) {
208
+ nextDate = this.getNextDate(nextDate !== null && nextDate !== void 0 ? nextDate : startDate);
209
+ if (endDate && endDate.getTime() < nextDate.getTime()) return;
210
+ yield nextDate;
211
+ }
212
+ }
213
+ /** Gets the previous date starting from the given start date or now. */
214
+ getPrevDate(startDate = /* @__PURE__ */ new Date()) {
215
+ const startDateElements = extractDateElements(startDate);
216
+ let maxYear = startDateElements.year;
217
+ let startIndexMonth = this.reversed.months.findIndex((x) => x <= startDateElements.month);
218
+ if (startIndexMonth === -1) {
219
+ startIndexMonth = 0;
220
+ maxYear--;
221
+ }
222
+ const maxIterations = this.reversed.months.length * 5;
223
+ for (let i = 0; i < maxIterations; i++) {
224
+ const year = maxYear - Math.floor((startIndexMonth + i) / this.reversed.months.length);
225
+ const month = this.reversed.months[(startIndexMonth + i) % this.reversed.months.length];
226
+ const isStartMonth = year === startDateElements.year && month === startDateElements.month;
227
+ let day = this.findAllowedDayInMonth("prev", year, month, isStartMonth ? startDateElements.day : getDaysInMonth(year, month));
228
+ let isStartDay = isStartMonth && day === startDateElements.day;
229
+ if (day !== void 0 && isStartDay) {
230
+ const prevTime = this.findAllowedTime("prev", startDateElements);
231
+ if (prevTime !== void 0) return new Date(year, month, day, prevTime.hour, prevTime.minute, prevTime.second);
232
+ if (day > 1) {
233
+ day = this.findAllowedDayInMonth("prev", year, month, day - 1);
234
+ isStartDay = false;
235
+ }
236
+ }
237
+ if (day !== void 0 && !isStartDay) return new Date(year, month, day, this.reversed.hours[0], this.reversed.minutes[0], this.reversed.seconds[0]);
238
+ }
239
+ throw new Error("No valid previous date was found.");
240
+ }
241
+ /** Gets the specified amount of previous dates starting from the given start date or now. */
242
+ getPrevDates(amount, startDate) {
243
+ const dates = [];
244
+ let prevDate;
245
+ for (let i = 0; i < amount; i++) {
246
+ prevDate = this.getPrevDate(prevDate !== null && prevDate !== void 0 ? prevDate : startDate);
247
+ dates.push(prevDate);
248
+ }
249
+ return dates;
250
+ }
251
+ /**
252
+ * Get an ES6 compatible iterator which iterates over the previous dates starting from startDate or now.
253
+ * The iterator runs until the optional endDate is reached or forever.
254
+ */
255
+ *getPrevDatesIterator(startDate, endDate) {
256
+ let prevDate;
257
+ while (true) {
258
+ prevDate = this.getPrevDate(prevDate !== null && prevDate !== void 0 ? prevDate : startDate);
259
+ if (endDate && endDate.getTime() > prevDate.getTime()) return;
260
+ yield prevDate;
261
+ }
262
+ }
263
+ /** Returns true when there is a cron date at the given date. */
264
+ matchDate(date) {
265
+ const { second, minute, hour, day, month, weekday } = extractDateElements(date);
266
+ if (this.seconds.indexOf(second) === -1 || this.minutes.indexOf(minute) === -1 || this.hours.indexOf(hour) === -1 || this.months.indexOf(month) === -1) return false;
267
+ if (this.days.length !== 31 && this.weekdays.length !== 7) return this.days.indexOf(day) !== -1 || this.weekdays.indexOf(weekday) !== -1;
268
+ return this.days.indexOf(day) !== -1 && this.weekdays.indexOf(weekday) !== -1;
269
+ }
270
+ };
271
+ //#endregion
272
+ //#region ../../node_modules/.pnpm/cron-schedule@6.0.0/node_modules/cron-schedule/dist/cron-parser.js
273
+ const secondConstraint = {
274
+ min: 0,
275
+ max: 59
276
+ };
277
+ const minuteConstraint = {
278
+ min: 0,
279
+ max: 59
280
+ };
281
+ const hourConstraint = {
282
+ min: 0,
283
+ max: 23
284
+ };
285
+ const dayConstraint = {
286
+ min: 1,
287
+ max: 31
288
+ };
289
+ const monthConstraint = {
290
+ min: 1,
291
+ max: 12,
292
+ aliases: {
293
+ jan: "1",
294
+ feb: "2",
295
+ mar: "3",
296
+ apr: "4",
297
+ may: "5",
298
+ jun: "6",
299
+ jul: "7",
300
+ aug: "8",
301
+ sep: "9",
302
+ oct: "10",
303
+ nov: "11",
304
+ dec: "12"
305
+ }
306
+ };
307
+ const weekdayConstraint = {
308
+ min: 0,
309
+ max: 7,
310
+ aliases: {
311
+ mon: "1",
312
+ tue: "2",
313
+ wed: "3",
314
+ thu: "4",
315
+ fri: "5",
316
+ sat: "6",
317
+ sun: "7"
318
+ }
319
+ };
320
+ const timeNicknames = {
321
+ "@yearly": "0 0 1 1 *",
322
+ "@annually": "0 0 1 1 *",
323
+ "@monthly": "0 0 1 * *",
324
+ "@weekly": "0 0 * * 0",
325
+ "@daily": "0 0 * * *",
326
+ "@hourly": "0 * * * *",
327
+ "@minutely": "* * * * *"
328
+ };
329
+ function parseElement(element, constraint) {
330
+ const result = /* @__PURE__ */ new Set();
331
+ if (element === "*") {
332
+ for (let i = constraint.min; i <= constraint.max; i = i + 1) result.add(i);
333
+ return result;
334
+ }
335
+ const listElements = element.split(",");
336
+ if (listElements.length > 1) {
337
+ for (const listElement of listElements) {
338
+ const parsedListElement = parseElement(listElement, constraint);
339
+ for (const x of parsedListElement) result.add(x);
340
+ }
341
+ return result;
342
+ }
343
+ const parseSingleElement = (singleElement) => {
344
+ var _a, _b;
345
+ singleElement = (_b = (_a = constraint.aliases) === null || _a === void 0 ? void 0 : _a[singleElement.toLowerCase()]) !== null && _b !== void 0 ? _b : singleElement;
346
+ const parsedElement = Number.parseInt(singleElement, 10);
347
+ if (Number.isNaN(parsedElement)) throw new Error(`Failed to parse ${element}: ${singleElement} is NaN.`);
348
+ if (parsedElement < constraint.min || parsedElement > constraint.max) throw new Error(`Failed to parse ${element}: ${singleElement} is outside of constraint range of ${constraint.min} - ${constraint.max}.`);
349
+ return parsedElement;
350
+ };
351
+ const rangeSegments = /^(([0-9a-zA-Z]+)-([0-9a-zA-Z]+)|\*)(\/([0-9]+))?$/.exec(element);
352
+ if (rangeSegments === null) {
353
+ result.add(parseSingleElement(element));
354
+ return result;
355
+ }
356
+ let parsedStart = rangeSegments[1] === "*" ? constraint.min : parseSingleElement(rangeSegments[2]);
357
+ const parsedEnd = rangeSegments[1] === "*" ? constraint.max : parseSingleElement(rangeSegments[3]);
358
+ if (constraint === weekdayConstraint && parsedStart === 7 && parsedEnd !== 7) parsedStart = 0;
359
+ if (parsedStart > parsedEnd) throw new Error(`Failed to parse ${element}: Invalid range (start: ${parsedStart}, end: ${parsedEnd}).`);
360
+ const step = rangeSegments[5];
361
+ let parsedStep = 1;
362
+ if (step !== void 0) {
363
+ parsedStep = Number.parseInt(step, 10);
364
+ if (Number.isNaN(parsedStep)) throw new Error(`Failed to parse step: ${step} is NaN.`);
365
+ if (parsedStep < 1) throw new Error(`Failed to parse step: Expected ${step} to be greater than 0.`);
366
+ }
367
+ for (let i = parsedStart; i <= parsedEnd; i = i + parsedStep) result.add(i);
368
+ return result;
369
+ }
370
+ /** Parses a cron expression into a Cron instance. */
371
+ function parseCronExpression(cronExpression) {
372
+ var _a;
373
+ if (typeof cronExpression !== "string") throw new TypeError("Invalid cron expression: must be of type string.");
374
+ cronExpression = (_a = timeNicknames[cronExpression.toLowerCase()]) !== null && _a !== void 0 ? _a : cronExpression;
375
+ const elements = cronExpression.split(" ").filter((elem) => elem.length > 0);
376
+ if (elements.length < 5 || elements.length > 6) throw new Error("Invalid cron expression: expected 5 or 6 elements.");
377
+ const rawSeconds = elements.length === 6 ? elements[0] : "0";
378
+ const rawMinutes = elements.length === 6 ? elements[1] : elements[0];
379
+ const rawHours = elements.length === 6 ? elements[2] : elements[1];
380
+ const rawDays = elements.length === 6 ? elements[3] : elements[2];
381
+ const rawMonths = elements.length === 6 ? elements[4] : elements[3];
382
+ const rawWeekdays = elements.length === 6 ? elements[5] : elements[4];
383
+ return new Cron({
384
+ seconds: parseElement(rawSeconds, secondConstraint),
385
+ minutes: parseElement(rawMinutes, minuteConstraint),
386
+ hours: parseElement(rawHours, hourConstraint),
387
+ days: parseElement(rawDays, dayConstraint),
388
+ months: new Set(Array.from(parseElement(rawMonths, monthConstraint)).map((x) => x - 1)),
389
+ weekdays: new Set(Array.from(parseElement(rawWeekdays, weekdayConstraint)).map((x) => x % 7))
390
+ });
391
+ }
392
+ //#endregion
393
+ export { parseCronExpression as t };
@@ -2,10 +2,10 @@
2
2
 
3
3
  import { M as WorkflowResolutionError, _ as getApiErrorCode, n as ui, v as getHttpStatus } from "./keystroke.mjs";
4
4
  import { t as assertWorkflowProjectRoot } from "./project-config-CJGSh2RQ.mjs";
5
- import { a as readManifestsFromOutDir } from "./dist-BMkNN03r.mjs";
6
- import { t as requireWorkflowsDir } from "./resolve-project-bVPMcs-y.mjs";
7
- import { t as createSpinnerProgress } from "./spinner-progress-CS1BEdNB.mjs";
8
- import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-CoJMwpPO.mjs";
5
+ import { a as readManifestsFromOutDir } from "./dist-BVD3Ga_l.mjs";
6
+ import { t as requireWorkflowsDir } from "./resolve-project-CI_PxRXi.mjs";
7
+ import { t as createSpinnerProgress } from "./spinner-progress-DpL68vYK.mjs";
8
+ import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-C_qkq7jk.mjs";
9
9
  //#region src/commands/workflows/_shared/current-deployment-workflow.ts
10
10
  /**
11
11
  * Lightweight resolution: gets projectId from keystroke.config.ts and authoredWorkflowId
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { n as ui } from "./keystroke.mjs";
4
- import { i as requireClient } from "./context-DQ4IA0yO.mjs";
4
+ import { i as requireClient } from "./context-B1L8pZsH.mjs";
5
5
  //#region src/commands/org/current.handler.ts
6
6
  async function handleOrgCurrent(_options, ctx) {
7
7
  if (!ctx.organizationId) {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { N as throwReportedCliExit, n as ui, x as toErrorMessage } from "./keystroke.mjs";
4
- import { i as requireClient } from "./context-DQ4IA0yO.mjs";
4
+ import { i as requireClient } from "./context-B1L8pZsH.mjs";
5
5
  //#region src/commands/api-keys/delete.handler.ts
6
6
  async function handleApiKeysDelete(options, ctx) {
7
7
  const client = requireClient(ctx);
@@ -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-CWLOF5x4.mjs";
3
+ import { a as createKyInstance, n as auth, r as bundles, s as getClientEnv, t as projects } from "./projects-DfaG_3WP.mjs";
4
4
  //#region ../../packages/workflow-sdk/src/deploy.ts
5
5
  function createDeployClient(config = {}) {
6
6
  const env = getClientEnv();
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { t as createTypedCommand } from "./commander-BwtBoukr.mjs";
3
+ import { t as createTypedCommand } from "./commander-i-7LgOyc.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-DQg_rXgs.mjs")).handleDeploy
67
+ loadHandler: async () => (await import("./deploy.handler-B3E7uX-x.mjs")).handleDeploy
68
68
  });
69
69
  cmd.enablePositionalOptions();
70
70
  cmd.passThroughOptions();
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { n as ui } from "./keystroke.mjs";
4
- import { t as createSpinnerProgress } from "./spinner-progress-CS1BEdNB.mjs";
4
+ import { t as createSpinnerProgress } from "./spinner-progress-DpL68vYK.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 { f as ANSI, k as CliExitError, n as ui, o as isLocalMode, p as style, u as logger } from "./keystroke.mjs";
4
4
  import { d as trackProject } from "./dist-BF6r1hfv.mjs";
5
5
  import { t as assertWorkflowProjectRoot } from "./project-config-CJGSh2RQ.mjs";
6
- import { r as requireAuthOptions, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-DQ4IA0yO.mjs";
7
- import { i as readAgentManifestsFromOutDir, o as readWorkflowsFromDisk } from "./dist-BMkNN03r.mjs";
8
- import { t as requireWorkflowsDir } from "./resolve-project-bVPMcs-y.mjs";
9
- import { n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-CoJMwpPO.mjs";
10
- import { t as createBuildProgress } from "./build-progress-CITED2tv.mjs";
11
- import { t as createDeployProgress } from "./deploy-progress-CLO-yidq.mjs";
12
- import { t as withErrorBoundary } from "./error-boundary-B2ZKRkZI.mjs";
13
- import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-B4IufKqe.mjs";
14
- import { t as computeWorkflowDiff } from "./diff-utils-BoXI705D.mjs";
6
+ import { r as requireAuthOptions, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-B1L8pZsH.mjs";
7
+ import { i as readAgentManifestsFromOutDir, o as readWorkflowsFromDisk } from "./dist-BVD3Ga_l.mjs";
8
+ import { t as requireWorkflowsDir } from "./resolve-project-CI_PxRXi.mjs";
9
+ import { n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-C_qkq7jk.mjs";
10
+ import { t as createBuildProgress } from "./build-progress-BataNqG-.mjs";
11
+ import { t as createDeployProgress } from "./deploy-progress-7qj5ek8b.mjs";
12
+ import { t as withErrorBoundary } from "./error-boundary-CyLcinp1.mjs";
13
+ import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-Biw1zV7S.mjs";
14
+ import { t as computeWorkflowDiff } from "./diff-utils-4OQTpP5s.mjs";
15
15
  import { access } from "node:fs/promises";
16
16
  import path from "node:path";
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-CoJMwpPO.mjs").then((n) => n.o);
201
+ const { runWorkflowBuild } = await import("./workflow-build-C_qkq7jk.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-BMkNN03r.mjs").then((n) => n.r)).deployFromDir)({
236
+ result = await (deployHandlerDependencies.deployFromDir ?? (await import("./dist-BVD3Ga_l.mjs").then((n) => n.r)).deployFromDir)({
237
237
  outDir,
238
238
  workflowsDir,
239
239
  client,
@@ -260,7 +260,7 @@ async function handleDeploy(options, ctx) {
260
260
  }
261
261
  async function handleTaskTargetDeploy(options) {
262
262
  renderBuildHeader(void 0);
263
- const buildResult = await (deployHandlerDependencies.buildTaskTargets ?? (await import("./task-target-build-atWwwnSF.mjs")).buildTaskTargets)({
263
+ const buildResult = await (deployHandlerDependencies.buildTaskTargets ?? (await import("./task-target-build-Du0ObGbb.mjs")).buildTaskTargets)({
264
264
  projectRoot: options.workflowsDir,
265
265
  targetFiles: options.targetFiles,
266
266
  disableSourcemaps: options.options.disableSourcemaps
@@ -278,7 +278,7 @@ async function handleTaskTargetDeploy(options) {
278
278
  const progress = createDeployProgress();
279
279
  let result;
280
280
  try {
281
- result = await (deployHandlerDependencies.deployTaskTargets ?? (await import("./task-target-deploy-CRsrQTOy.mjs")).deployTaskTargets)({
281
+ result = await (deployHandlerDependencies.deployTaskTargets ?? (await import("./task-target-deploy-OyxLvh3a.mjs")).deployTaskTargets)({
282
282
  preparedTasks: buildResult.preparedTasks,
283
283
  client,
284
284
  organizationId: options.projectConfig.organizationId,
@@ -300,7 +300,7 @@ async function handleTaskTargetDeploy(options) {
300
300
  }
301
301
  async function createFullDeployClient(ctx) {
302
302
  const authOptions = requireAuthOptions(ctx);
303
- const { createClient } = await import("./src-D-dFmoAF.mjs");
303
+ const { createClient } = await import("./src-BQdOWkyv.mjs");
304
304
  return createClient({
305
305
  ...authOptions,
306
306
  onRequest: (info) => logger.debug(`-> ${info.method} ${info.url}`, {
@@ -315,7 +315,7 @@ async function createFullDeployClient(ctx) {
315
315
  }
316
316
  async function createTaskDeployClient(ctx) {
317
317
  const authOptions = requireAuthOptions(ctx);
318
- return (deployHandlerDependencies.createDeployClient ?? (await import("./deploy-BvaFgVvf.mjs")).createDeployClient)(authOptions);
318
+ return (deployHandlerDependencies.createDeployClient ?? (await import("./deploy-D4ILrWpx.mjs")).createDeployClient)(authOptions);
319
319
  }
320
320
  function renderSuccessSummary(result) {
321
321
  const tasks = result.tasks || [];
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { n as __exportAll } from "./chunk-CH6r78ws.mjs";
4
- import { t as __exportAll$1 } from "./rolldown-runtime-twds-ZHy-3DMm_Sby.mjs";
4
+ import { t as __exportAll$1 } from "./rolldown-runtime-twds-ZHy-CO5ir_za.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 { N as throwReportedCliExit, k as CliExitError, n as ui, x as toErrorMessage } from "./keystroke.mjs";
4
4
  import { d as trackProject } from "./dist-BF6r1hfv.mjs";
5
5
  import { i as writeJson } from "./output-CGdYhH0p.mjs";
6
- import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-DQ4IA0yO.mjs";
7
- import { n as resolveLocalWorkflowManifest, t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-B4IufKqe.mjs";
8
- import { n as renderDiff, t as computeWorkflowDiff } from "./diff-utils-BoXI705D.mjs";
6
+ import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-B1L8pZsH.mjs";
7
+ import { n as resolveLocalWorkflowManifest, t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-Biw1zV7S.mjs";
8
+ import { n as renderDiff, t as computeWorkflowDiff } from "./diff-utils-4OQTpP5s.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 });
@@ -6,13 +6,13 @@ import { n as SHA256HashSchema } from "./common-BaGFkj3n.mjs";
6
6
  import { c as TriggerUploadDataSchema, d as collectCredentialRequirementEntries } from "./credential-requirements-FtBk5JVB.mjs";
7
7
  import { a as FlowGraphSchema, r as WorkflowBuildManifestSchema } from "./workflow-build-manifest-OPFqFD6f.mjs";
8
8
  import { t as AgentVersionManifestSchema } from "./agent-manifest-CZdlCTFs.mjs";
9
- import { n as TaskBuildManifestSchema } from "./task-BBgEvdG1.mjs";
10
- import { n as FileMetadataSchema } from "./file-metadata-Dwy9KKq_.mjs";
11
- import { t as computeProjectSnapshotHash } from "./task-target-deploy-CZBGNC0H-BwPSfaJQ.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-DRf9qUf8.mjs";
13
- import { n as resolveProjectBuildOutputDir } from "./utils-DpEtybzI.mjs";
14
- import { t as TriggerBuildManifestSchema } from "./trigger-manifest-D5rnpPkA.mjs";
15
- import { t as batchUpload } from "./upload-C0kaZu08.mjs";
9
+ import { n as TaskBuildManifestSchema } from "./task-BNXDZU71.mjs";
10
+ import { n as FileMetadataSchema } from "./file-metadata-DaPPpiTh.mjs";
11
+ import { t as computeProjectSnapshotHash } from "./task-target-deploy-CZBGNC0H-Ck724yF4.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-DaoP8bcD.mjs";
13
+ import { n as resolveProjectBuildOutputDir } from "./utils-LlH3l_yT.mjs";
14
+ import { t as TriggerBuildManifestSchema } from "./trigger-manifest-PTjVYL1r.mjs";
15
+ import { t as batchUpload } from "./upload-wwSPAC5_.mjs";
16
16
  import { createReadStream } from "node:fs";
17
17
  import * as fs from "node:fs/promises";
18
18
  import { stat } from "node:fs/promises";
@@ -3,12 +3,12 @@
3
3
  import { N as throwReportedCliExit, b as isNetworkError, f as ANSI, g as REAUTH_HINT, k as CliExitError, n as ui, p as style, x as toErrorMessage, y as isAuthError } from "./keystroke.mjs";
4
4
  import { d as trackProject } from "./dist-BF6r1hfv.mjs";
5
5
  import { i as writeJson } from "./output-CGdYhH0p.mjs";
6
- import { i as requireClient } from "./context-DQ4IA0yO.mjs";
7
- import { n as CredentialConnectionIdSchema, r as CredentialScopeSchema, t as ConnectionStatusSchema } from "./schema-DFJiNWyd.mjs";
8
- import { a as readManifestsFromOutDir } from "./dist-BMkNN03r.mjs";
9
- import { t as requireWorkflowsDir } from "./resolve-project-bVPMcs-y.mjs";
10
- import { t as getIntegrationCatalog } from "./integration-catalog-BRrJIAVz.mjs";
11
- import { t as groupCredentialRequirements } from "./credentials-Bu1MBiCL.mjs";
6
+ import { i as requireClient } from "./context-B1L8pZsH.mjs";
7
+ import { n as CredentialConnectionIdSchema, r as CredentialScopeSchema, t as ConnectionStatusSchema } from "./schema-BjH_e4Fo.mjs";
8
+ import { a as readManifestsFromOutDir } from "./dist-BVD3Ga_l.mjs";
9
+ import { t as requireWorkflowsDir } from "./resolve-project-CI_PxRXi.mjs";
10
+ import { t as getIntegrationCatalog } from "./integration-catalog-BgT4mLzW.mjs";
11
+ import { t as groupCredentialRequirements } from "./credentials-CiOwDS5y.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 { b as isNetworkError, k as CliExitError, n as ui, u as logger, x as toErrorMessage } from "./keystroke.mjs";
4
4
  import { r as isJsonMode } from "./output-CGdYhH0p.mjs";
5
- import { n as renderCredentialSchemaMismatchText, r as writeCredentialSchemaMismatchJson, t as isCredentialSchemaMismatchErrorLike } from "./credential-schema-mismatch-8pqwvswO.mjs";
5
+ import { n as renderCredentialSchemaMismatchText, r as writeCredentialSchemaMismatchJson, t as isCredentialSchemaMismatchErrorLike } from "./credential-schema-mismatch-CfyBUMPS.mjs";
6
6
  //#region src/lib/error-boundary.ts
7
7
  async function withErrorBoundary(commandName, fn, options = {}) {
8
8
  const jsonMode = options.json ?? isJsonMode({});