deepline 0.3.294 → 0.3.296

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 (138) hide show
  1. package/dist/bundling-sources/sdk/src/compat.ts +35 -7
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +108 -35
  4. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-api-origin.ts +25 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +14 -1
  6. package/dist/cli/auth-JCGIDVDF.mjs +31 -0
  7. package/dist/cli/auth-QDWV3TXX.js +31 -0
  8. package/dist/cli/billing-OQBSIXRG.mjs +1749 -0
  9. package/dist/cli/billing-YBK3J4WP.js +1749 -0
  10. package/dist/cli/chunk-2C3AVPTY.js +5688 -0
  11. package/dist/cli/chunk-2MZ5EQZE.mjs +499 -0
  12. package/dist/cli/chunk-3KC45UVF.js +150 -0
  13. package/dist/cli/chunk-3XX5TEA4.js +15 -0
  14. package/dist/cli/chunk-4MBOJQPL.mjs +0 -0
  15. package/dist/cli/chunk-4Y6CG4GE.js +2240 -0
  16. package/dist/cli/chunk-4ZB3CJRD.js +1269 -0
  17. package/dist/cli/chunk-5JLQPVNX.js +3056 -0
  18. package/dist/cli/chunk-6A3TJUWC.js +76 -0
  19. package/dist/cli/chunk-6HPEDBSJ.js +1995 -0
  20. package/dist/cli/chunk-7D6QG5KF.js +890 -0
  21. package/dist/cli/chunk-7P5AA3SN.js +344 -0
  22. package/dist/cli/chunk-7UAO5MWV.mjs +190 -0
  23. package/dist/cli/chunk-A7427JJH.js +190 -0
  24. package/dist/cli/chunk-AQRTLPHZ.js +735 -0
  25. package/dist/cli/chunk-AYHLUHE5.js +52 -0
  26. package/dist/cli/chunk-BZ77OTRF.mjs +923 -0
  27. package/dist/cli/chunk-CBVIJSHF.mjs +560 -0
  28. package/dist/cli/chunk-COGTRVWW.js +30 -0
  29. package/dist/cli/chunk-DLIRSHV6.mjs +28 -0
  30. package/dist/cli/chunk-DYWHXO7O.mjs +34 -0
  31. package/dist/cli/chunk-EDWJY6T4.mjs +3056 -0
  32. package/dist/cli/chunk-EXMLR72R.mjs +0 -0
  33. package/dist/cli/chunk-G46HHFNB.mjs +1269 -0
  34. package/dist/cli/chunk-GAMFK2ZP.mjs +148 -0
  35. package/dist/cli/chunk-GLKUGBTP.mjs +2240 -0
  36. package/dist/cli/chunk-GONRLVV3.js +3440 -0
  37. package/dist/cli/chunk-GVUJJJ5G.mjs +76 -0
  38. package/dist/cli/chunk-H7HIDGZ7.mjs +150 -0
  39. package/dist/cli/chunk-HUZXWOSK.mjs +503 -0
  40. package/dist/cli/chunk-I5YZLGMG.js +1 -0
  41. package/dist/cli/chunk-ITOFSXIU.mjs +15 -0
  42. package/dist/cli/chunk-J2D3VDOU.mjs +5688 -0
  43. package/dist/cli/chunk-J5NA2TTX.js +503 -0
  44. package/dist/cli/chunk-JCS5TPNY.mjs +3440 -0
  45. package/dist/cli/chunk-JNNOCMQY.js +47 -0
  46. package/dist/cli/chunk-KRD6H754.mjs +30 -0
  47. package/dist/cli/chunk-L4HBNHFW.js +34 -0
  48. package/dist/cli/chunk-LA46MMTL.js +560 -0
  49. package/dist/cli/chunk-LIKFCE7Z.js +190 -0
  50. package/dist/cli/chunk-MIMASXO4.mjs +389 -0
  51. package/dist/cli/chunk-NPPJX3BL.mjs +1995 -0
  52. package/dist/cli/chunk-NTEZFZLE.mjs +890 -0
  53. package/dist/cli/chunk-NXDRDJ4K.js +389 -0
  54. package/dist/cli/chunk-NXGCO4JB.mjs +344 -0
  55. package/dist/cli/chunk-OG64RBAC.js +6 -0
  56. package/dist/cli/chunk-OWJZUE3Y.mjs +103 -0
  57. package/dist/cli/chunk-QSIO4TX2.mjs +190 -0
  58. package/dist/cli/chunk-RCUE5C5C.mjs +735 -0
  59. package/dist/cli/chunk-SDK3ZA2C.js +103 -0
  60. package/dist/cli/chunk-SFLARO4Y.mjs +47 -0
  61. package/dist/cli/chunk-TAC3JIFE.mjs +354 -0
  62. package/dist/cli/chunk-UC6GHEL4.js +499 -0
  63. package/dist/cli/chunk-UFS752TU.mjs +52 -0
  64. package/dist/cli/chunk-UNEMDKXN.js +1 -0
  65. package/dist/cli/chunk-WB6Z2Q44.mjs +1622 -0
  66. package/dist/cli/chunk-WJYPBHTE.js +148 -0
  67. package/dist/cli/chunk-WOHBA5PV.js +354 -0
  68. package/dist/cli/chunk-WZYKRD7T.mjs +6 -0
  69. package/dist/cli/chunk-XNYIZMNQ.js +28 -0
  70. package/dist/cli/chunk-ZDO3TO3M.js +1622 -0
  71. package/dist/cli/chunk-ZDOC4HFL.js +923 -0
  72. package/dist/cli/client-CZDA4JKO.mjs +20 -0
  73. package/dist/cli/client-IZGIN2ZA.js +20 -0
  74. package/dist/cli/csv-6KOMZA2H.mjs +585 -0
  75. package/dist/cli/csv-UTEQY3NA.js +585 -0
  76. package/dist/cli/db-D5EP6TKO.mjs +486 -0
  77. package/dist/cli/db-SIBLPIKC.js +486 -0
  78. package/dist/cli/executions-2PHT57IO.js +28 -0
  79. package/dist/cli/executions-DFWM2YYY.mjs +28 -0
  80. package/dist/cli/feedback-GZW37JMI.mjs +107 -0
  81. package/dist/cli/feedback-IQVWIJZ4.js +107 -0
  82. package/dist/cli/getting-started.js +18 -76
  83. package/dist/cli/getting-started.mjs +10 -37
  84. package/dist/cli/git-563GYLMA.js +23 -0
  85. package/dist/cli/git-B72Y4FFQ.mjs +23 -0
  86. package/dist/cli/index.js +291 -54294
  87. package/dist/cli/index.mjs +209 -54352
  88. package/dist/cli/legacy-noops-37F5MX2P.mjs +157 -0
  89. package/dist/cli/legacy-noops-IFGVDCOM.js +157 -0
  90. package/dist/cli/monitors-42H6LOVT.mjs +3251 -0
  91. package/dist/cli/monitors-GQCHXBXZ.js +3251 -0
  92. package/dist/cli/org-4GCPBTGR.js +849 -0
  93. package/dist/cli/org-JYZA3ZRJ.mjs +849 -0
  94. package/dist/cli/play-46ZJ4FMI.js +18439 -0
  95. package/dist/cli/play-Q2XV3FZZ.mjs +18439 -0
  96. package/dist/cli/providers-CTKQP45X.mjs +95 -0
  97. package/dist/cli/providers-PCNF5E3K.js +95 -0
  98. package/dist/cli/proxy-env-EBANZHPV.js +161 -0
  99. package/dist/cli/proxy-env-M4ZHXHRL.mjs +161 -0
  100. package/dist/cli/quickstart-FTHWRVWN.js +69 -0
  101. package/dist/cli/quickstart-X7EVVWRG.mjs +69 -0
  102. package/dist/cli/search-73YPOFDO.mjs +18 -0
  103. package/dist/cli/search-XA5UVC3G.js +18 -0
  104. package/dist/cli/secrets-OUMPT4FX.mjs +400 -0
  105. package/dist/cli/secrets-UOEVR73Q.js +400 -0
  106. package/dist/cli/sessions-CMKXCN5Y.js +15 -0
  107. package/dist/cli/sessions-ZIFGDZE7.mjs +15 -0
  108. package/dist/cli/settings-OO5R3G52.mjs +846 -0
  109. package/dist/cli/settings-ULZT2NIC.js +846 -0
  110. package/dist/cli/setup-6GZH52OZ.mjs +1257 -0
  111. package/dist/cli/setup-DHGERXPZ.js +1257 -0
  112. package/dist/cli/skills-Q7NUCS2W.js +28 -0
  113. package/dist/cli/skills-T3EY2656.mjs +28 -0
  114. package/dist/cli/tools-BIMOAOTX.mjs +2955 -0
  115. package/dist/cli/tools-ODXVCKO7.js +2955 -0
  116. package/dist/cli/update-UMB3ULBR.js +28 -0
  117. package/dist/cli/update-X4HX7Z3M.mjs +28 -0
  118. package/dist/cli/workflow-EAUFVPIP.mjs +1936 -0
  119. package/dist/cli/workflow-IVLCPFTG.js +1936 -0
  120. package/dist/helpers.js +6 -32
  121. package/dist/helpers.mjs +2 -0
  122. package/dist/index.js +1972 -12825
  123. package/dist/index.mjs +1910 -12672
  124. package/dist/install-integrity.json +110 -0
  125. package/dist/monitor-fleet-contract.js +31 -730
  126. package/dist/monitor-fleet-contract.mjs +18 -667
  127. package/dist/monitor-input-contract.js +10 -390
  128. package/dist/monitor-input-contract.mjs +7 -348
  129. package/dist/plays/bundle-play-file.mjs +13 -5178
  130. package/dist/plays/csv-data-input.js +5 -3132
  131. package/dist/plays/csv-data-input.mjs +5 -3105
  132. package/dist/plays/run-request.js +56 -664
  133. package/dist/plays/run-request.mjs +30 -588
  134. package/dist/release.d.mts +1 -1
  135. package/dist/release.d.ts +1 -1
  136. package/dist/release.js +5 -212
  137. package/dist/release.mjs +5 -185
  138. package/package.json +1 -1
@@ -0,0 +1,148 @@
1
+ // src/cli/progress.ts
2
+ import { Worker } from "worker_threads";
3
+ var CliProgress = class {
4
+ constructor(enabled) {
5
+ this.enabled = enabled;
6
+ }
7
+ lastMessage = null;
8
+ interactive = Boolean(process.stderr.isTTY);
9
+ grey = "\x1B[90m";
10
+ cyan = "\x1B[36m";
11
+ dim = "\x1B[2m";
12
+ reset = "\x1B[0m";
13
+ worker = null;
14
+ phase(message) {
15
+ if (!this.enabled || this.lastMessage === message) {
16
+ return;
17
+ }
18
+ if (this.interactive && this.lastMessage) {
19
+ this.settle("\u2713");
20
+ }
21
+ this.lastMessage = message;
22
+ if (!this.interactive) {
23
+ process.stderr.write(`${message}
24
+ `);
25
+ return;
26
+ }
27
+ this.ensureWorker();
28
+ this.worker?.postMessage({ type: "phase", message });
29
+ }
30
+ complete() {
31
+ this.settle("\u2713");
32
+ }
33
+ fail() {
34
+ this.settle("\u2717");
35
+ }
36
+ writeLogLine(line) {
37
+ if (!this.enabled) {
38
+ process.stderr.write(`${line}
39
+ `);
40
+ return;
41
+ }
42
+ const message = this.interactive ? `${this.cyan}[logs]${this.reset} ${this.dim}${line}${this.reset}` : `[logs] ${line}`;
43
+ if (!this.interactive) {
44
+ process.stderr.write(`${message}
45
+ `);
46
+ return;
47
+ }
48
+ const activeMessage = this.lastMessage;
49
+ this.worker?.terminate().catch(() => void 0);
50
+ this.worker = null;
51
+ process.stderr.write(`\r\x1B[2K${message}
52
+ `);
53
+ if (activeMessage) {
54
+ this.startWorker().postMessage({ type: "phase", message: activeMessage });
55
+ }
56
+ }
57
+ writeLine(line, stream = process.stderr) {
58
+ if (!this.enabled || !this.interactive) {
59
+ stream.write(`${line}
60
+ `);
61
+ return;
62
+ }
63
+ const activeMessage = this.lastMessage;
64
+ this.worker?.terminate().catch(() => void 0);
65
+ this.worker = null;
66
+ stream.write(`\r\x1B[2K${line}
67
+ `);
68
+ if (activeMessage) {
69
+ this.startWorker().postMessage({ type: "phase", message: activeMessage });
70
+ }
71
+ }
72
+ settle(mark) {
73
+ if (!this.enabled || !this.lastMessage) {
74
+ return;
75
+ }
76
+ if (this.interactive) {
77
+ this.worker?.terminate().catch(() => void 0);
78
+ this.worker = null;
79
+ process.stderr.write(
80
+ `\r\x1B[2K${this.grey}${mark} ${this.lastMessage}${this.reset}
81
+ `
82
+ );
83
+ }
84
+ this.lastMessage = null;
85
+ }
86
+ ensureWorker() {
87
+ this.startWorker();
88
+ }
89
+ startWorker() {
90
+ if (this.worker) {
91
+ return this.worker;
92
+ }
93
+ this.worker = new Worker(
94
+ `
95
+ const { parentPort } = require('node:worker_threads');
96
+ const { writeSync } = require('node:fs');
97
+ const frames = ['\u2014', '\\\\', '|', '/'];
98
+ const grey = '\\x1b[90m';
99
+ const reset = '\\x1b[0m';
100
+ let message = '';
101
+ let frameIndex = 0;
102
+ let timer = null;
103
+ function render() {
104
+ if (!message) return;
105
+ const frame = frames[frameIndex % frames.length] || '\u2014';
106
+ frameIndex += 1;
107
+ writeSync(2, '\\r\\x1b[2K' + grey + frame + ' ' + message + reset);
108
+ }
109
+ parentPort.on('message', (event) => {
110
+ if (event.type === 'phase') {
111
+ message = String(event.message || '');
112
+ frameIndex = 0;
113
+ render();
114
+ if (!timer) {
115
+ timer = setInterval(render, 120);
116
+ timer.unref && timer.unref();
117
+ }
118
+ }
119
+ if (event.type === 'stop') {
120
+ if (timer) clearInterval(timer);
121
+ timer = null;
122
+ writeSync(2, '\\r\\x1b[2K');
123
+ }
124
+ });
125
+ `,
126
+ { eval: true }
127
+ );
128
+ this.worker.unref();
129
+ return this.worker;
130
+ }
131
+ };
132
+ var activeProgress = null;
133
+ function setActiveCliProgress(progress) {
134
+ activeProgress = progress;
135
+ }
136
+ function getActiveCliProgress() {
137
+ return activeProgress;
138
+ }
139
+ function createCliProgress(enabled) {
140
+ const progress = new CliProgress(enabled);
141
+ setActiveCliProgress(progress);
142
+ return progress;
143
+ }
144
+
145
+ export {
146
+ getActiveCliProgress,
147
+ createCliProgress
148
+ };