deepline 0.3.451 → 0.3.453
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/bundling-sources/sdk/src/client.ts +65 -0
- package/dist/bundling-sources/sdk/src/http.ts +2 -1
- package/dist/bundling-sources/sdk/src/index.ts +2 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +63 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +5 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +49 -11
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +17 -2
- package/dist/cli/{auth-YLBWEMRW.mjs → auth-6CXS55CN.mjs} +4 -4
- package/dist/cli/auth-AICIA232.js +40 -0
- package/dist/cli/{billing-GWG5D3P6.js → billing-QC52XTAD.js} +87 -74
- package/dist/cli/{billing-DUFOEOPT.mjs → billing-SWLTV6PV.mjs} +18 -5
- package/dist/cli/{chunk-37CPEQBE.mjs → chunk-2LDU5BMG.mjs} +3 -3
- package/dist/cli/{chunk-JUCEEIEC.mjs → chunk-43HOSM2F.mjs} +1 -1
- package/dist/cli/{chunk-E7V5CRA2.mjs → chunk-6CTVXF6X.mjs} +8 -8
- package/dist/cli/{chunk-BJOVX7EB.mjs → chunk-7557D4FM.mjs} +2 -2
- package/dist/cli/chunk-BX343KU7.mjs +155 -0
- package/dist/cli/{chunk-7VRWERTM.js → chunk-DMTAFWMS.js} +84 -50
- package/dist/cli/{chunk-XLOXUW5Y.mjs → chunk-FS2RMEJ7.mjs} +1 -1
- package/dist/cli/{chunk-EJ6YI46S.js → chunk-HUDUN4AR.js} +2 -2
- package/dist/cli/{chunk-OKTCLFKM.mjs → chunk-IFBLLSGH.mjs} +5 -5
- package/dist/cli/{chunk-33EM4SMH.mjs → chunk-IWFI6FTJ.mjs} +4 -153
- package/dist/cli/{chunk-ZPV7DMAA.mjs → chunk-IXVABCNA.mjs} +1 -1
- package/dist/cli/{chunk-O3KVUHCG.js → chunk-JOF3B22H.js} +20 -20
- package/dist/cli/{chunk-6TFACCXN.js → chunk-KFKM5J2N.js} +2 -2
- package/dist/cli/{chunk-WLVGRU5A.mjs → chunk-KQD6EFPD.mjs} +2 -2
- package/dist/cli/{chunk-HSKLAPMD.js → chunk-MP35NE55.js} +26 -26
- package/dist/cli/chunk-NOHA3SZJ.js +155 -0
- package/dist/cli/{chunk-Z3DBS4IB.js → chunk-NSQZUUYB.js} +81 -81
- package/dist/cli/{chunk-BQQLTSGC.mjs → chunk-P4UQCYKH.mjs} +4 -4
- package/dist/cli/{chunk-CH2WDSBC.js → chunk-PJWXEUUH.js} +8 -8
- package/dist/cli/{chunk-L2IUGWV5.js → chunk-RG644LJU.js} +1 -1
- package/dist/cli/{chunk-5DUMNKQG.js → chunk-RNCIPLU5.js} +50 -50
- package/dist/cli/{chunk-WDOWAOYB.js → chunk-RTR2KUU6.js} +10 -10
- package/dist/cli/{chunk-4C7HPD57.mjs → chunk-SQUJHT7O.mjs} +1 -1
- package/dist/cli/{chunk-ZNDE2BTH.js → chunk-V6AZQ4JH.js} +16 -16
- package/dist/cli/{chunk-F2DW7DFE.js → chunk-V7S2RUVE.js} +8 -8
- package/dist/cli/{chunk-C4NPWUZY.js → chunk-VG6WESY7.js} +73 -222
- package/dist/cli/{chunk-6G6KX7I7.js → chunk-WTTHH2K3.js} +6 -6
- package/dist/cli/{chunk-JRPNCMMN.js → chunk-WWZ4YJ6J.js} +35 -35
- package/dist/cli/{chunk-PJYTV24I.mjs → chunk-X2LUT22I.mjs} +2 -2
- package/dist/cli/{chunk-YXXIFMXI.mjs → chunk-XH4QC5ZX.mjs} +2 -2
- package/dist/cli/{chunk-3HT47QPJ.mjs → chunk-XNN3OTGT.mjs} +2 -2
- package/dist/cli/{chunk-LPPAJJJN.mjs → chunk-XV4463XW.mjs} +35 -1
- package/dist/cli/{chunk-TFCLUWDQ.js → chunk-YU6IE234.js} +6 -6
- package/dist/cli/{chunk-RFPP4Q66.mjs → chunk-ZVBLECZX.mjs} +3 -3
- package/dist/cli/{csv-RL7WQD6Y.mjs → csv-FON4ZQKC.mjs} +3 -3
- package/dist/cli/{csv-4CHXZQXO.js → csv-WIQB5XWZ.js} +12 -12
- package/dist/cli/{db-ZDBAWV7B.mjs → db-3KA62DOQ.mjs} +4 -4
- package/dist/cli/{db-MRI5IM2A.js → db-VMDDODCN.js} +25 -25
- package/dist/cli/{describe-RRQUUJQ3.mjs → describe-LGDK77QI.mjs} +13 -12
- package/dist/cli/{describe-2FYKXM5B.js → describe-NTAAHCCX.js} +17 -16
- package/dist/cli/describe-core.d.mts +1 -1
- package/dist/cli/describe-core.d.ts +1 -1
- package/dist/cli/{executions-KDBD47A5.js → executions-OT2KNJDO.js} +6 -6
- package/dist/cli/{executions-RJL76TJS.mjs → executions-TM6AMTQ7.mjs} +4 -4
- package/dist/cli/{feedback-2CE24NHD.js → feedback-4HQGY3TO.js} +7 -7
- package/dist/cli/{feedback-KOYLXHYE.mjs → feedback-HWLUVFE2.mjs} +3 -3
- package/dist/cli/git-QIZWO5BA.js +24 -0
- package/dist/cli/{git-RDUHU6L6.mjs → git-TDJVSPE6.mjs} +4 -4
- package/dist/cli/index.js +133 -131
- package/dist/cli/index.mjs +39 -37
- package/dist/cli/{legacy-noops-7FOMGBMN.js → legacy-noops-XH3FDLWT.js} +7 -7
- package/dist/cli/{legacy-noops-4HS2LYP6.mjs → legacy-noops-YB2PES43.mjs} +4 -4
- package/dist/cli/{monitors-IJXNK5BL.js → monitors-E3QFEJKF.js} +276 -124
- package/dist/cli/{monitors-JLBTNBVU.mjs → monitors-KQDDMSDR.mjs} +156 -4
- package/dist/cli/{org-OWP6K4AA.mjs → org-7X2C7YKA.mjs} +4 -4
- package/dist/cli/{org-JL7SW6VY.js → org-PMTLR7VP.js} +66 -66
- package/dist/cli/{play-FNOVKU74.mjs → play-7FNEPSVR.mjs} +11 -10
- package/dist/cli/{play-LLNZWHT6.js → play-RH22Z3D6.js} +284 -283
- package/dist/cli/{providers-WBOEOKE7.mjs → providers-HOEDJNUK.mjs} +4 -4
- package/dist/cli/{providers-E4XIEUC7.js → providers-X5NY5IQH.js} +7 -7
- package/dist/cli/{quickstart-3FUHKGEY.js → quickstart-FI4A6VTV.js} +5 -5
- package/dist/cli/{quickstart-6G5G3BVA.mjs → quickstart-NCL7P2US.mjs} +3 -3
- package/dist/cli/search-6FUMJBIY.js +30 -0
- package/dist/cli/{search-CNMB4Z6M.mjs → search-UHT7ZNPO.mjs} +5 -5
- package/dist/cli/{secrets-5FY5APVK.mjs → secrets-D4ZB5RKB.mjs} +4 -4
- package/dist/cli/{secrets-BDSWOYAT.js → secrets-TT6J3SZJ.js} +13 -13
- package/dist/cli/{sessions-PMIKVPQN.mjs → sessions-HRLJ6SLL.mjs} +4 -4
- package/dist/cli/{sessions-B7T2CHYK.js → sessions-SRQQZMM7.js} +5 -5
- package/dist/cli/{settings-RXQJRRLR.js → settings-EJIKXLC7.js} +76 -75
- package/dist/cli/{settings-4TAYLTPR.mjs → settings-PJJYPWU3.mjs} +9 -8
- package/dist/cli/{setup-ZTMETGSO.js → setup-3FL77Z33.js} +43 -42
- package/dist/cli/{setup-LVUISLVO.mjs → setup-DNI6ENFD.mjs} +8 -7
- package/dist/cli/skills-DEKOSL7F.js +30 -0
- package/dist/cli/{skills-NSJ43Z5Q.mjs → skills-FO7MY2OE.mjs} +6 -5
- package/dist/cli/tools-E6XRW6PW.js +45 -0
- package/dist/cli/{tools-CFCKIGDY.mjs → tools-F72WONN3.mjs} +13 -12
- package/dist/cli/update-6M3CAS4T.js +32 -0
- package/dist/cli/{update-HYOCBXJO.mjs → update-JZU33TC5.mjs} +8 -7
- package/dist/cli/{workflow-U6S4SWTF.js → workflow-BGKC73V2.js} +15 -15
- package/dist/cli/{workflow-RKX45RJ4.mjs → workflow-PQYQXQPH.mjs} +5 -5
- package/dist/{client-CPRaigLC.d.ts → client-D6XhrO0f.d.ts} +26 -1
- package/dist/{client-DstDI5TV.d.mts → client-mRA_esYI.d.mts} +26 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +82 -80
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-WPQBEOES.js +0 -40
- package/dist/cli/git-DZ5GROPH.js +0 -24
- package/dist/cli/search-4ECC773X.js +0 -30
- package/dist/cli/skills-MIENPTOD.js +0 -29
- package/dist/cli/tools-CXJO5XSH.js +0 -44
- package/dist/cli/update-B2LQGEXF.js +0 -31
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
|
|
2
|
+
|
|
3
|
+
var _chunkWTTHH2K3js = require('./chunk-WTTHH2K3.js');
|
|
4
|
+
|
|
5
|
+
// src/cli/progress.ts
|
|
6
|
+
var _worker_threads = require('worker_threads');
|
|
7
|
+
var CliProgress = (_class = class {
|
|
8
|
+
__init() {this.lastMessage = null}
|
|
9
|
+
__init2() {this.interactive = Boolean(process.stderr.isTTY)}
|
|
10
|
+
__init3() {this.grey = "\x1B[90m"}
|
|
11
|
+
__init4() {this.cyan = "\x1B[36m"}
|
|
12
|
+
__init5() {this.dim = "\x1B[2m"}
|
|
13
|
+
__init6() {this.reset = "\x1B[0m"}
|
|
14
|
+
__init7() {this.worker = null}
|
|
15
|
+
|
|
16
|
+
// --json output is one JSON document: progress never renders under it.
|
|
17
|
+
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);
|
|
18
|
+
this.enabled = enabled && !_chunkWTTHH2K3js.isJsonOutputMode.call(void 0, );
|
|
19
|
+
}
|
|
20
|
+
phase(message) {
|
|
21
|
+
if (!this.enabled || this.lastMessage === message) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
if (this.interactive && this.lastMessage) {
|
|
25
|
+
this.settle("\u2713");
|
|
26
|
+
}
|
|
27
|
+
this.lastMessage = message;
|
|
28
|
+
if (!this.interactive) {
|
|
29
|
+
process.stderr.write(`${message}
|
|
30
|
+
`);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
this.ensureWorker();
|
|
34
|
+
_optionalChain([this, 'access', _ => _.worker, 'optionalAccess', _2 => _2.postMessage, 'call', _3 => _3({ type: "phase", message })]);
|
|
35
|
+
}
|
|
36
|
+
complete() {
|
|
37
|
+
this.settle("\u2713");
|
|
38
|
+
}
|
|
39
|
+
fail() {
|
|
40
|
+
this.settle("\u2717");
|
|
41
|
+
}
|
|
42
|
+
writeLogLine(line) {
|
|
43
|
+
if (_chunkWTTHH2K3js.isJsonOutputMode.call(void 0, )) return;
|
|
44
|
+
if (!this.enabled) {
|
|
45
|
+
process.stderr.write(`${line}
|
|
46
|
+
`);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const message = this.interactive ? `${this.cyan}[logs]${this.reset} ${this.dim}${line}${this.reset}` : `[logs] ${line}`;
|
|
50
|
+
if (!this.interactive) {
|
|
51
|
+
process.stderr.write(`${message}
|
|
52
|
+
`);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const activeMessage = this.lastMessage;
|
|
56
|
+
_optionalChain([this, 'access', _4 => _4.worker, 'optionalAccess', _5 => _5.terminate, 'call', _6 => _6(), 'access', _7 => _7.catch, 'call', _8 => _8(() => void 0)]);
|
|
57
|
+
this.worker = null;
|
|
58
|
+
process.stderr.write(`\r\x1B[2K${message}
|
|
59
|
+
`);
|
|
60
|
+
if (activeMessage) {
|
|
61
|
+
this.startWorker().postMessage({ type: "phase", message: activeMessage });
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
writeLine(line, stream = process.stderr) {
|
|
65
|
+
if (!this.enabled || !this.interactive) {
|
|
66
|
+
stream.write(`${line}
|
|
67
|
+
`);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const activeMessage = this.lastMessage;
|
|
71
|
+
_optionalChain([this, 'access', _9 => _9.worker, 'optionalAccess', _10 => _10.terminate, 'call', _11 => _11(), 'access', _12 => _12.catch, 'call', _13 => _13(() => void 0)]);
|
|
72
|
+
this.worker = null;
|
|
73
|
+
stream.write(`\r\x1B[2K${line}
|
|
74
|
+
`);
|
|
75
|
+
if (activeMessage) {
|
|
76
|
+
this.startWorker().postMessage({ type: "phase", message: activeMessage });
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
settle(mark) {
|
|
80
|
+
if (!this.enabled || !this.lastMessage) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
if (this.interactive) {
|
|
84
|
+
_optionalChain([this, 'access', _14 => _14.worker, 'optionalAccess', _15 => _15.terminate, 'call', _16 => _16(), 'access', _17 => _17.catch, 'call', _18 => _18(() => void 0)]);
|
|
85
|
+
this.worker = null;
|
|
86
|
+
process.stderr.write(
|
|
87
|
+
`\r\x1B[2K${this.grey}${mark} ${this.lastMessage}${this.reset}
|
|
88
|
+
`
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
this.lastMessage = null;
|
|
92
|
+
}
|
|
93
|
+
ensureWorker() {
|
|
94
|
+
this.startWorker();
|
|
95
|
+
}
|
|
96
|
+
startWorker() {
|
|
97
|
+
if (this.worker) {
|
|
98
|
+
return this.worker;
|
|
99
|
+
}
|
|
100
|
+
this.worker = new (0, _worker_threads.Worker)(
|
|
101
|
+
`
|
|
102
|
+
const { parentPort } = require('node:worker_threads');
|
|
103
|
+
const { writeSync } = require('node:fs');
|
|
104
|
+
const frames = ['\u2014', '\\\\', '|', '/'];
|
|
105
|
+
const grey = '\\x1b[90m';
|
|
106
|
+
const reset = '\\x1b[0m';
|
|
107
|
+
let message = '';
|
|
108
|
+
let frameIndex = 0;
|
|
109
|
+
let timer = null;
|
|
110
|
+
function render() {
|
|
111
|
+
if (!message) return;
|
|
112
|
+
const frame = frames[frameIndex % frames.length] || '\u2014';
|
|
113
|
+
frameIndex += 1;
|
|
114
|
+
writeSync(2, '\\r\\x1b[2K' + grey + frame + ' ' + message + reset);
|
|
115
|
+
}
|
|
116
|
+
parentPort.on('message', (event) => {
|
|
117
|
+
if (event.type === 'phase') {
|
|
118
|
+
message = String(event.message || '');
|
|
119
|
+
frameIndex = 0;
|
|
120
|
+
render();
|
|
121
|
+
if (!timer) {
|
|
122
|
+
timer = setInterval(render, 120);
|
|
123
|
+
timer.unref && timer.unref();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
if (event.type === 'stop') {
|
|
127
|
+
if (timer) clearInterval(timer);
|
|
128
|
+
timer = null;
|
|
129
|
+
writeSync(2, '\\r\\x1b[2K');
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
`,
|
|
133
|
+
{ eval: true }
|
|
134
|
+
);
|
|
135
|
+
this.worker.unref();
|
|
136
|
+
return this.worker;
|
|
137
|
+
}
|
|
138
|
+
}, _class);
|
|
139
|
+
var activeProgress = null;
|
|
140
|
+
function setActiveCliProgress(progress) {
|
|
141
|
+
activeProgress = progress;
|
|
142
|
+
}
|
|
143
|
+
function getActiveCliProgress() {
|
|
144
|
+
return activeProgress;
|
|
145
|
+
}
|
|
146
|
+
function createCliProgress(enabled) {
|
|
147
|
+
const progress = new CliProgress(enabled);
|
|
148
|
+
setActiveCliProgress(progress);
|
|
149
|
+
return progress;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
exports.getActiveCliProgress = getActiveCliProgress; exports.createCliProgress = createCliProgress;
|