deepline 0.3.503 → 0.3.504
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/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +35 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +13 -0
- package/dist/cli/{auth-IC4WLSE3.mjs → auth-3L5AA5AX.mjs} +5 -5
- package/dist/cli/auth-UPK4IIIN.js +43 -0
- package/dist/cli/{billing-2VOV64SD.mjs → billing-E7EASVPO.mjs} +19 -12
- package/dist/cli/{billing-LWQOII22.js → billing-HOGXVE2V.js} +92 -85
- package/dist/cli/{chunk-FHJ54BHH.mjs → chunk-22OCKCYS.mjs} +1 -1
- package/dist/cli/{chunk-D27HP3HS.mjs → chunk-2ABRDH3B.mjs} +2 -2
- package/dist/cli/{chunk-WHP3FJ7T.js → chunk-2W77YCKH.js} +5 -5
- package/dist/cli/{chunk-KGLVATEB.mjs → chunk-3MLFFWDM.mjs} +2 -2
- package/dist/cli/{chunk-K7NFFQFU.mjs → chunk-4CC67XH5.mjs} +2 -2
- package/dist/cli/{chunk-DPI5OYVU.mjs → chunk-5CHBIJIM.mjs} +2 -2
- package/dist/cli/chunk-5LUF4LAR.mjs +209 -0
- package/dist/cli/{chunk-A2C6ONWA.js → chunk-5Z6EULD5.js} +6 -6
- package/dist/cli/{chunk-33JUK73X.js → chunk-67OI26OE.js} +7 -7
- package/dist/cli/{chunk-IIP46RVC.js → chunk-6JNBMTCZ.js} +1 -1
- package/dist/cli/{chunk-HRTDCXHI.js → chunk-6SMR7LU7.js} +2 -2
- package/dist/cli/{chunk-7HEDCIR3.mjs → chunk-7F4OEHQK.mjs} +1 -1
- package/dist/cli/{chunk-C5RQTTLP.js → chunk-7P2QVMBP.js} +7 -7
- package/dist/cli/{chunk-MJQOG4TZ.js → chunk-A6LA42JY.js} +16 -16
- package/dist/cli/{chunk-XYZZZLN6.mjs → chunk-BTWUNKKX.mjs} +2 -2
- package/dist/cli/{chunk-EDMV4JT5.mjs → chunk-BX45XMXZ.mjs} +2 -2
- package/dist/cli/{chunk-GIHNEYBG.mjs → chunk-DEAJVQEG.mjs} +1 -1
- package/dist/cli/{chunk-2K2QBLYO.js → chunk-FISP4LCK.js} +53 -53
- package/dist/cli/{chunk-26RSSTCF.js → chunk-FTRVCIGC.js} +26 -26
- package/dist/cli/{chunk-JJVN7OIX.mjs → chunk-GGBXNQCR.mjs} +4 -4
- package/dist/cli/{chunk-4IIYSBEP.js → chunk-GJ2DA35C.js} +30 -4
- package/dist/cli/{chunk-RVOBFO7C.js → chunk-GRAGUYIE.js} +41 -41
- package/dist/cli/{chunk-ZEQPCEV4.mjs → chunk-HUX5DZO6.mjs} +3 -3
- package/dist/cli/{chunk-6XTE6C3W.mjs → chunk-IGNQKOWT.mjs} +10 -10
- package/dist/cli/{chunk-FVDTERO2.js → chunk-IPAMOMGP.js} +21 -21
- package/dist/cli/{chunk-FZHOWPSN.js → chunk-JPR2546F.js} +16 -16
- package/dist/cli/{chunk-3CXHK4TW.js → chunk-KCKAFTPY.js} +6 -6
- package/dist/cli/{chunk-2626LTU3.js → chunk-KGUGNEKL.js} +96 -96
- package/dist/cli/{chunk-QIEYEY6Z.js → chunk-LHXYCZYO.js} +8 -8
- package/dist/cli/{chunk-PVA3MWCO.js → chunk-MJTK6Q3G.js} +3 -3
- package/dist/cli/{chunk-EQ3WMKFY.mjs → chunk-MLMWM5DV.mjs} +5 -5
- package/dist/cli/{chunk-VC5B462T.mjs → chunk-NZ7Z7WNM.mjs} +2 -2
- package/dist/cli/{chunk-5GI6NKOE.mjs → chunk-OX2D6BG4.mjs} +1 -1
- package/dist/cli/{chunk-F73PD2XD.js → chunk-QKKU2FH4.js} +7 -7
- package/dist/cli/{chunk-URZNSJE2.mjs → chunk-QOLX2O2S.mjs} +4 -4
- package/dist/cli/chunk-R7J7CJPZ.js +209 -0
- package/dist/cli/{chunk-TCQYWZFS.js → chunk-SMSQVRHE.js} +5 -5
- package/dist/cli/{chunk-J6RBOLK7.mjs → chunk-SVFTZTCI.mjs} +1 -1
- package/dist/cli/{chunk-5M5WSFRZ.mjs → chunk-UFYJTRSF.mjs} +28 -2
- package/dist/cli/{chunk-FIUTDSJX.js → chunk-UJMBG5JU.js} +4 -4
- package/dist/cli/{chunk-AARF4SOW.js → chunk-USTJEEND.js} +9 -9
- package/dist/cli/{chunk-YXGPMTAK.js → chunk-UXQQPMYO.js} +2 -2
- package/dist/cli/{chunk-GLZBFBJS.mjs → chunk-VJVJWZ6I.mjs} +5 -5
- package/dist/cli/{chunk-HS63YBT5.js → chunk-WBIDPDKJ.js} +3 -3
- package/dist/cli/{chunk-B3X4YWQ6.js → chunk-WZSFIJMG.js} +53 -53
- package/dist/cli/{chunk-BI2Q45SY.mjs → chunk-XHZSPMNC.mjs} +4 -4
- package/dist/cli/{chunk-L3TZV625.mjs → chunk-Y6XKCEPK.mjs} +1 -1
- package/dist/cli/{chunk-JPDD4Y53.mjs → chunk-Y7VEHKID.mjs} +6 -6
- package/dist/cli/{chunk-KPBBT6OS.mjs → chunk-YOQ2NNDO.mjs} +1 -1
- package/dist/cli/{chunk-WS274KID.mjs → chunk-Z6FXUDIL.mjs} +1 -1
- package/dist/cli/command-docs.d.mts +2 -1
- package/dist/cli/command-docs.d.ts +2 -1
- package/dist/cli/command-docs.js +6 -2
- package/dist/cli/command-docs.mjs +5 -1
- package/dist/cli/{csv-NEWCNOSZ.js → csv-2XWGPITO.js} +13 -13
- package/dist/cli/{csv-2TXOI3UE.mjs → csv-433JEHLQ.mjs} +4 -4
- package/dist/cli/{db-PX7EQEIG.mjs → db-K747DH43.mjs} +6 -6
- package/dist/cli/{db-J3IJS4OG.js → db-PJJMD4VH.js} +27 -27
- package/dist/cli/describe-OYS7LZJD.js +49 -0
- package/dist/cli/{describe-GQHGTZSL.mjs → describe-VEDDYW4P.mjs} +17 -17
- package/dist/cli/{executions-RO3TJUXL.js → executions-HM5T72H6.js} +8 -8
- package/dist/cli/{executions-FFKK24RY.mjs → executions-JWRX3XCT.mjs} +6 -6
- package/dist/cli/{feedback-XRR4HIS6.js → feedback-34UG4BO3.js} +8 -8
- package/dist/cli/{feedback-ZTO56SRL.mjs → feedback-MNSIA63Y.mjs} +4 -4
- package/dist/cli/git-5YQJSJFR.js +25 -0
- package/dist/cli/{git-FIPBVFYZ.mjs → git-ZKEOXV3A.mjs} +5 -5
- package/dist/cli/index.js +143 -141
- package/dist/cli/index.mjs +43 -41
- package/dist/cli/{legacy-noops-AMD2NWHF.mjs → legacy-noops-5M4T4ZVT.mjs} +5 -5
- package/dist/cli/{legacy-noops-MTBBGM27.js → legacy-noops-YXSI4FVU.js} +8 -8
- package/dist/cli/{monitors-24LDKDJX.mjs → monitors-C65OC4AW.mjs} +7 -7
- package/dist/cli/{monitors-42PIGLBF.js → monitors-O25GDOYE.js} +95 -95
- package/dist/cli/{org-GQMCA3MN.js → org-2GSPLY2A.js} +72 -72
- package/dist/cli/{org-4B7SCFRL.mjs → org-ZRMG5NS2.mjs} +6 -6
- package/dist/cli/{pages-RL2M62GJ.js → pages-45DPADK6.js} +18 -18
- package/dist/cli/{pages-PD5EGL2R.mjs → pages-TZZUFBRO.mjs} +6 -6
- package/dist/cli/{play-5V54VTUR.mjs → play-3D7HH273.mjs} +23 -217
- package/dist/cli/{play-FST6ZAHW.js → play-RCGMND6X.js} +323 -517
- package/dist/cli/{providers-HBUUPN7J.js → providers-3N3ECMTY.js} +9 -9
- package/dist/cli/{providers-N5YVCKPL.mjs → providers-PSAKV6CJ.mjs} +6 -6
- package/dist/cli/{quickstart-NJDDVTQR.mjs → quickstart-2A35SMGC.mjs} +4 -4
- package/dist/cli/{quickstart-4QIQNSHG.js → quickstart-6R6AIXM6.js} +6 -6
- package/dist/cli/{run-JHI5MTHD.mjs → run-F3TLDGUO.mjs} +22 -22
- package/dist/cli/{run-FGOKCG4J.js → run-F6ZXTASZ.js} +40 -40
- package/dist/cli/{search-EWIZBIY2.mjs → search-CZLCY3D2.mjs} +7 -7
- package/dist/cli/search-R5VEWJO2.js +32 -0
- package/dist/cli/{search-output-NAK3MWBH.mjs → search-output-MQTSTLN5.mjs} +4 -4
- package/dist/cli/{search-output-TMQTRC2W.js → search-output-R5XDNILW.js} +6 -6
- package/dist/cli/{secrets-ONQVW5SR.mjs → secrets-D3GF4B2Z.mjs} +6 -6
- package/dist/cli/{secrets-5TSUEOJB.js → secrets-DCJYHDSY.js} +15 -15
- package/dist/cli/{sessions-B7F5O3ZR.mjs → sessions-QGEQ2UYZ.mjs} +5 -5
- package/dist/cli/{sessions-BSGE5EET.js → sessions-Z4JYJSDP.js} +6 -6
- package/dist/cli/{settings-SGGFQV5R.mjs → settings-G7QEXA4N.mjs} +11 -11
- package/dist/cli/{settings-47LARBRU.js → settings-UVXXAT4A.js} +78 -78
- package/dist/cli/{setup-BNFZFXO6.js → setup-5I42W7D4.js} +49 -49
- package/dist/cli/{setup-ATGNXQUK.mjs → setup-QHJU3DUI.mjs} +9 -9
- package/dist/cli/{skills-CIMBRM5R.mjs → skills-5LRF4UKX.mjs} +7 -7
- package/dist/cli/skills-FB6TV52O.js +36 -0
- package/dist/cli/tools-L2364RPA.js +56 -0
- package/dist/cli/{tools-DTDXAULX.mjs → tools-PUT6STVG.mjs} +16 -16
- package/dist/cli/{update-EOIJBJCO.mjs → update-CJ2GA64X.mjs} +9 -9
- package/dist/cli/update-ESYJGYVZ.js +34 -0
- package/dist/cli/{workflow-IWXUJPWY.mjs → workflow-HVEWRTXD.mjs} +7 -7
- package/dist/cli/{workflow-V5VKPICQ.js → workflow-O67MEBCP.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +102 -100
- package/dist/plays/bundle-play-file.mjs +4 -4
- 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/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-ZCMSXZO4.js +0 -43
- package/dist/cli/describe-LE7EZCL4.js +0 -49
- package/dist/cli/git-26AH4XIO.js +0 -25
- package/dist/cli/search-CTKSEVSO.js +0 -32
- package/dist/cli/skills-6RD25MVM.js +0 -36
- package/dist/cli/tools-TDZH4XHS.js +0 -56
- package/dist/cli/update-Y32VT4VL.js +0 -34
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkQKKU2FH4js = require('./chunk-QKKU2FH4.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkUJMBG5JUjs = require('./chunk-UJMBG5JU.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkUJMBG5JUjs.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunkQKKU2FH4js.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQKKU2FH4js = require('./chunk-QKKU2FH4.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
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);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkQKKU2FH4js.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkQKKU2FH4js.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VJVJWZ6I.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XHZSPMNC.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3MLFFWDM.mjs";
|
|
15
15
|
import {
|
|
16
16
|
resolveApiKeyForBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-Y6XKCEPK.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YOQ2NNDO.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3MLFFWDM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YOQ2NNDO.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkWBIDPDKJjs = require('./chunk-WBIDPDKJ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkUJMBG5JUjs = require('./chunk-UJMBG5JU.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -293,8 +293,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
293
293
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
294
294
|
var defaultBrowserCommandRunner = childProcess;
|
|
295
295
|
function getAuthedHttpClient() {
|
|
296
|
-
const config =
|
|
297
|
-
return { config, http: new (0,
|
|
296
|
+
const config = _chunkWBIDPDKJjs.resolveConfig.call(void 0, );
|
|
297
|
+
return { config, http: new (0, _chunkWBIDPDKJjs.HttpClient)(config) };
|
|
298
298
|
}
|
|
299
299
|
function stableOsUserId() {
|
|
300
300
|
try {
|
|
@@ -634,7 +634,7 @@ function collectLocalEnvInfo() {
|
|
|
634
634
|
os: `${process.platform} ${process.arch}`,
|
|
635
635
|
node_version: process.version,
|
|
636
636
|
home_dir: homeDir,
|
|
637
|
-
agent_runtime:
|
|
637
|
+
agent_runtime: _chunkUJMBG5JUjs.detectAgentRuntime.call(void 0, )
|
|
638
638
|
};
|
|
639
639
|
const env = process.env;
|
|
640
640
|
const optional = {
|
|
@@ -881,9 +881,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
881
881
|
}
|
|
882
882
|
function withAgentCommandContext(value) {
|
|
883
883
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
884
|
-
return
|
|
884
|
+
return _chunkUJMBG5JUjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
885
885
|
...valueRecord,
|
|
886
|
-
command_context:
|
|
886
|
+
command_context: _chunkWBIDPDKJjs.resolveCliCommandContext.call(void 0, )
|
|
887
887
|
} : value;
|
|
888
888
|
}
|
|
889
889
|
function printJson(value, fields) {
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2ABRDH3B.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3MLFFWDM.mjs";
|
|
10
10
|
import {
|
|
11
11
|
resolveConfig,
|
|
12
12
|
sdkCliStateDirPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Y6XKCEPK.mjs";
|
|
14
14
|
|
|
15
15
|
// src/cli/commands/search.ts
|
|
16
16
|
import { Option } from "commander";
|
|
@@ -133,7 +133,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
133
133
|
});
|
|
134
134
|
if (searchRef) rememberSearchRef(searchRef);
|
|
135
135
|
pointAtDescribe(result);
|
|
136
|
-
const { renderSearchResults } = await import("./search-output-
|
|
136
|
+
const { renderSearchResults } = await import("./search-output-MQTSTLN5.mjs");
|
|
137
137
|
printCommandEnvelope(result, {
|
|
138
138
|
json: options.json === true,
|
|
139
139
|
text: renderSearchResults(result, summaryWidth)
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
|
|
8
|
+
|
|
9
|
+
// ../play-runtime/worker-api-types.ts
|
|
10
|
+
var DAYTONA_COMPUTE_PRICING_USD = {
|
|
11
|
+
vcpuSecond: 14e-6,
|
|
12
|
+
memoryGiBSecond: 45e-7,
|
|
13
|
+
storageGiBSecond: 3e-8,
|
|
14
|
+
includedStorageGiB: 5
|
|
15
|
+
};
|
|
16
|
+
var MODAL_SANDBOX_COMPUTE_PRICING_USD = {
|
|
17
|
+
physicalCoreSecond: 3942e-8,
|
|
18
|
+
memoryGiBSecond: 667e-8
|
|
19
|
+
};
|
|
20
|
+
var MODAL_SANDBOX_CPU_CORES = 0.5;
|
|
21
|
+
function modalSandboxResourcesForPlay(input) {
|
|
22
|
+
return {
|
|
23
|
+
physicalCpuCores: MODAL_SANDBOX_CPU_CORES * input.cpu,
|
|
24
|
+
memoryMiB: input.memoryGiB * 1024
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function roundUsd(amount) {
|
|
28
|
+
return Number(Math.max(0, amount).toFixed(12));
|
|
29
|
+
}
|
|
30
|
+
function sandboxSizeMetadata(cpu, memoryGiB) {
|
|
31
|
+
const entry = Object.entries(_chunkYGCKMI5Pjs.PLAY_SANDBOX_SIZE_LIMITS).find(
|
|
32
|
+
([, limits]) => limits.cpu === cpu && limits.memoryGiB === memoryGiB
|
|
33
|
+
);
|
|
34
|
+
return entry ? { sandboxSize: entry[0] } : {};
|
|
35
|
+
}
|
|
36
|
+
function runtimeLimitMetadata(maxBillingDurationSeconds, observedWallTimeSeconds) {
|
|
37
|
+
if (typeof maxBillingDurationSeconds !== "number" || !Number.isFinite(maxBillingDurationSeconds) || maxBillingDurationSeconds <= 0) {
|
|
38
|
+
return {};
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
maxBillingDurationSeconds,
|
|
42
|
+
...typeof observedWallTimeSeconds === "number" && Number.isFinite(observedWallTimeSeconds) ? { observedWallTimeSeconds: Math.max(0, observedWallTimeSeconds) } : {}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function resolveDaytonaSandboxComputeItem(input) {
|
|
46
|
+
const billableSeconds = Math.max(1, Math.ceil(input.wallTimeSeconds));
|
|
47
|
+
const cpu = Math.max(0, input.cpu);
|
|
48
|
+
const memoryGiB = Math.max(0, input.memoryGiB);
|
|
49
|
+
const billableDiskGiB = Math.max(
|
|
50
|
+
0,
|
|
51
|
+
input.diskGiB - DAYTONA_COMPUTE_PRICING_USD.includedStorageGiB
|
|
52
|
+
);
|
|
53
|
+
const providerCostUsd = roundUsd(
|
|
54
|
+
billableSeconds * (cpu * DAYTONA_COMPUTE_PRICING_USD.vcpuSecond + memoryGiB * DAYTONA_COMPUTE_PRICING_USD.memoryGiBSecond + billableDiskGiB * DAYTONA_COMPUTE_PRICING_USD.storageGiBSecond)
|
|
55
|
+
);
|
|
56
|
+
return {
|
|
57
|
+
itemId: input.itemId,
|
|
58
|
+
source: _nullishCoalesce(input.source, () => ( "daytona")),
|
|
59
|
+
unit: "sandbox_second",
|
|
60
|
+
units: billableSeconds,
|
|
61
|
+
providerCostUsd,
|
|
62
|
+
metadata: {
|
|
63
|
+
...sandboxSizeMetadata(cpu, memoryGiB),
|
|
64
|
+
sandboxId: _nullishCoalesce(input.sandboxId, () => ( null)),
|
|
65
|
+
cpu,
|
|
66
|
+
memoryGiB,
|
|
67
|
+
diskGiB: Math.max(0, input.diskGiB),
|
|
68
|
+
billableDiskGiB,
|
|
69
|
+
startedAt: input.startedAt,
|
|
70
|
+
endedAt: input.endedAt,
|
|
71
|
+
...runtimeLimitMetadata(
|
|
72
|
+
input.maxBillingDurationSeconds,
|
|
73
|
+
input.observedWallTimeSeconds
|
|
74
|
+
)
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function resolveModalSandboxComputeItem(input) {
|
|
79
|
+
const billableSeconds = Math.max(1, Math.ceil(input.wallTimeSeconds));
|
|
80
|
+
const physicalCpuCores = Math.max(0, input.physicalCpuCores);
|
|
81
|
+
const memoryGiB = Math.max(0, input.memoryGiB);
|
|
82
|
+
const providerCostUsd = roundUsd(
|
|
83
|
+
billableSeconds * (physicalCpuCores * MODAL_SANDBOX_COMPUTE_PRICING_USD.physicalCoreSecond + memoryGiB * MODAL_SANDBOX_COMPUTE_PRICING_USD.memoryGiBSecond)
|
|
84
|
+
);
|
|
85
|
+
return {
|
|
86
|
+
itemId: input.itemId,
|
|
87
|
+
source: "modal",
|
|
88
|
+
unit: "sandbox_second",
|
|
89
|
+
units: billableSeconds,
|
|
90
|
+
providerCostUsd,
|
|
91
|
+
metadata: {
|
|
92
|
+
...sandboxSizeMetadata(
|
|
93
|
+
physicalCpuCores / MODAL_SANDBOX_CPU_CORES,
|
|
94
|
+
memoryGiB
|
|
95
|
+
),
|
|
96
|
+
sandboxId: _nullishCoalesce(input.sandboxId, () => ( null)),
|
|
97
|
+
physicalCpuCores,
|
|
98
|
+
memoryGiB,
|
|
99
|
+
...input.memoryLimitGiB === void 0 ? {} : {
|
|
100
|
+
memoryLimitGiB: input.memoryLimitGiB,
|
|
101
|
+
// The Preview evaluation preserves the existing compute price.
|
|
102
|
+
// Sampled burst cost is diagnostic until provider billing can be
|
|
103
|
+
// reconciled; a hard ceiling is never presented as actual usage.
|
|
104
|
+
costBasis: "reserved_resources"
|
|
105
|
+
},
|
|
106
|
+
startedAt: input.startedAt,
|
|
107
|
+
endedAt: input.endedAt,
|
|
108
|
+
...runtimeLimitMetadata(
|
|
109
|
+
input.maxBillingDurationSeconds,
|
|
110
|
+
input.observedWallTimeSeconds
|
|
111
|
+
)
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// ../play-runtime/runtime-constants.ts
|
|
117
|
+
var STANDARD_PLAY_RUNTIME_LIMIT_SECONDS = 30 * 60;
|
|
118
|
+
var PLAY_RUNNER_TERMINAL_GRACE_SECONDS = 90;
|
|
119
|
+
var PLAY_RUNNER_STARTUP_GRACE_SECONDS = 4 * 60;
|
|
120
|
+
var SANDBOX_NETWORK_CUT_MAX_MS = 11 * 6e4;
|
|
121
|
+
var RUNNER_GATEWAY_CONNECTION_RETRY_BUDGET_MS = SANDBOX_NETWORK_CUT_MAX_MS + 6e4;
|
|
122
|
+
var PLAY_RUNNER_TIMEOUT_SECONDS = 40 * 60;
|
|
123
|
+
var WORKFLOW_EXECUTOR_TOKEN_TTL_SECONDS = _chunkYGCKMI5Pjs.MAX_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds + (PLAY_RUNNER_TIMEOUT_SECONDS - STANDARD_PLAY_RUNTIME_LIMIT_SECONDS);
|
|
124
|
+
|
|
125
|
+
// ../billing/compute-pricing-contract.ts
|
|
126
|
+
var COMPUTE_BILLING_MARKUP_MULTIPLIER = 5;
|
|
127
|
+
var DEFAULT_USD_PER_CUSTOMER_CREDIT = 0.1;
|
|
128
|
+
var DEFAULT_PROVIDER_MARKUP_MULTIPLIER = 1.4;
|
|
129
|
+
var MAX_SANDBOX_COMPUTE_BILLING_SECONDS = 60 * 60;
|
|
130
|
+
var PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS = {
|
|
131
|
+
standard: 1,
|
|
132
|
+
large: 2.5,
|
|
133
|
+
xlarge: 5
|
|
134
|
+
};
|
|
135
|
+
var MAX_SANDBOX_COMPUTE_PROVIDER_COST_USD = Math.max(
|
|
136
|
+
...Object.values(_chunkYGCKMI5Pjs.PLAY_SANDBOX_SIZE_LIMITS).flatMap((profile) => {
|
|
137
|
+
const modalResources = modalSandboxResourcesForPlay(profile);
|
|
138
|
+
return [
|
|
139
|
+
resolveDaytonaSandboxComputeItem({
|
|
140
|
+
itemId: "billing-cap",
|
|
141
|
+
wallTimeSeconds: MAX_SANDBOX_COMPUTE_BILLING_SECONDS,
|
|
142
|
+
cpu: profile.cpu,
|
|
143
|
+
memoryGiB: profile.memoryGiB,
|
|
144
|
+
diskGiB: profile.diskGiB
|
|
145
|
+
}).providerCostUsd,
|
|
146
|
+
resolveModalSandboxComputeItem({
|
|
147
|
+
itemId: "billing-cap",
|
|
148
|
+
wallTimeSeconds: MAX_SANDBOX_COMPUTE_BILLING_SECONDS,
|
|
149
|
+
physicalCpuCores: modalResources.physicalCpuCores,
|
|
150
|
+
memoryGiB: profile.memoryGiB
|
|
151
|
+
}).providerCostUsd
|
|
152
|
+
];
|
|
153
|
+
})
|
|
154
|
+
);
|
|
155
|
+
function roundUpCredits(value) {
|
|
156
|
+
if (!Number.isFinite(value) || value <= 0) return 0;
|
|
157
|
+
return Math.ceil(value * 100) / 100;
|
|
158
|
+
}
|
|
159
|
+
function maximumPlaySandboxBillingSeconds(limits) {
|
|
160
|
+
return Math.min(
|
|
161
|
+
limits.timeoutSeconds + PLAY_RUNNER_TERMINAL_GRACE_SECONDS,
|
|
162
|
+
MAX_SANDBOX_COMPUTE_BILLING_SECONDS
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
function estimateDaytonaMaximumComputeCredits(limits) {
|
|
166
|
+
const item = resolveDaytonaSandboxComputeItem({
|
|
167
|
+
itemId: "estimate",
|
|
168
|
+
wallTimeSeconds: maximumPlaySandboxBillingSeconds(limits),
|
|
169
|
+
cpu: limits.cpu,
|
|
170
|
+
memoryGiB: limits.memoryGiB,
|
|
171
|
+
diskGiB: limits.diskGiB
|
|
172
|
+
});
|
|
173
|
+
return roundUpCredits(
|
|
174
|
+
item.providerCostUsd * COMPUTE_BILLING_MARKUP_MULTIPLIER * DEFAULT_PROVIDER_MARKUP_MULTIPLIER / DEFAULT_USD_PER_CUSTOMER_CREDIT
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
function estimateModalMaximumComputeCredits(limits, elasticMemory = false) {
|
|
178
|
+
const resources = modalSandboxResourcesForPlay(limits);
|
|
179
|
+
const item = resolveModalSandboxComputeItem({
|
|
180
|
+
itemId: "estimate",
|
|
181
|
+
wallTimeSeconds: maximumPlaySandboxBillingSeconds(limits),
|
|
182
|
+
physicalCpuCores: resources.physicalCpuCores,
|
|
183
|
+
memoryGiB: elasticMemory ? _chunkYGCKMI5Pjs.modalSandboxMemoryLimitGiBForPlay.call(void 0, limits) : limits.memoryGiB
|
|
184
|
+
});
|
|
185
|
+
return roundUpCredits(
|
|
186
|
+
item.providerCostUsd * COMPUTE_BILLING_MARKUP_MULTIPLIER * DEFAULT_PROVIDER_MARKUP_MULTIPLIER / DEFAULT_USD_PER_CUSTOMER_CREDIT
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
function estimateMaximumSandboxComputeCredits(limits, elasticMemory = false) {
|
|
190
|
+
return Math.max(
|
|
191
|
+
estimateDaytonaMaximumComputeCredits(limits),
|
|
192
|
+
estimateModalMaximumComputeCredits(limits, elasticMemory)
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
function formatNonStandardSandboxRuntimeWarning(limits) {
|
|
196
|
+
const size = _chunkYGCKMI5Pjs.playSandboxSizeForLimits.call(void 0, limits);
|
|
197
|
+
if (!size) return null;
|
|
198
|
+
if (size === "standard" && limits.timeoutSeconds <= _chunkYGCKMI5Pjs.STANDARD_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds) {
|
|
199
|
+
return null;
|
|
200
|
+
}
|
|
201
|
+
const maximumComputeCredits = estimateMaximumSandboxComputeCredits(limits);
|
|
202
|
+
const quotedTimeout = `${Math.ceil(limits.timeoutSeconds / 60)}m`;
|
|
203
|
+
return `This Play requests the ${size} sandbox for up to ${limits.timeoutSeconds}s (${limits.memoryGiB}GiB memory, ${limits.cpu} CPU, ${limits.diskGiB}GiB disk). Resource-based pricing estimate: ${maximumComputeCredits.toFixed(2)} Deepline credits. Workspace plan pricing can differ. Run deepline billing quote --sandbox-timeout ${quotedTimeout} --sandbox-size ${size} for your workspace's session ceiling.`;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
exports.PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS = PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS; exports.formatNonStandardSandboxRuntimeWarning = formatNonStandardSandboxRuntimeWarning;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7P2QVMBPjs = require('./chunk-7P2QVMBP.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkWBIDPDKJjs = require('./chunk-WBIDPDKJ.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunk7P2QVMBPjs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkWBIDPDKJjs.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkWBIDPDKJjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS
|
|
3
|
+
} from "./chunk-5LUF4LAR.mjs";
|
|
4
|
+
|
|
1
5
|
// src/cli/command-docs.ts
|
|
6
|
+
var PLAY_RUNTIME_PRICING_NOTE = `With included compute pricing, large (4gb) costs ${PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS.large}\xD7 and xlarge (8gb) costs ${PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS.xlarge}\xD7 the standard (1gb) hourly rate. Included compute applies proportionally.`;
|
|
2
7
|
var CONVENTIONS = `
|
|
3
8
|
[[cli:
|
|
4
9
|
Conventions (apply to every command):
|
|
@@ -311,6 +316,23 @@ Output:
|
|
|
311
316
|
]]
|
|
312
317
|
Cost:
|
|
313
318
|
Free.
|
|
319
|
+
`
|
|
320
|
+
},
|
|
321
|
+
"billing compute": {
|
|
322
|
+
core: `
|
|
323
|
+
Purpose:
|
|
324
|
+
Show Play runtime pricing, included compute, and usage.
|
|
325
|
+
Output:
|
|
326
|
+
The workspace pricing status, included compute, and runtime used.
|
|
327
|
+
${PLAY_RUNTIME_PRICING_NOTE}
|
|
328
|
+
Cost:
|
|
329
|
+
Free to check.
|
|
330
|
+
[[cli:
|
|
331
|
+
--enable switches the workspace to included compute pricing.
|
|
332
|
+
Examples:
|
|
333
|
+
deepline billing compute --json
|
|
334
|
+
deepline billing quote --sandbox-timeout 30m --sandbox-size xlarge
|
|
335
|
+
]]
|
|
314
336
|
`
|
|
315
337
|
},
|
|
316
338
|
"billing usage": {
|
|
@@ -769,6 +791,8 @@ Writing a play:
|
|
|
769
791
|
result.
|
|
770
792
|
An optional export const config = { name, description, cron, webhook,
|
|
771
793
|
runtime }; at the top of the file sets the name, triggers and runtime.
|
|
794
|
+
Set runtime.size to 'standard' (1gb, default), 'large' (4gb), or 'xlarge'
|
|
795
|
+
(8gb). See deepline billing compute --help for runtime pricing.
|
|
772
796
|
--help --verbose lists the authoring rules.
|
|
773
797
|
Auditing plays:
|
|
774
798
|
plays list every saved play
|
|
@@ -862,8 +886,9 @@ Authoring rules:
|
|
|
862
886
|
Set runtime.size to 'standard' or '1gb' (1 GiB / 1 CPU), 'large' or '4gb'
|
|
863
887
|
(4 GiB / 2 CPU), or 'xlarge' or '8gb' (8 GiB / 4 CPU).
|
|
864
888
|
Each alias selects the same profile and price as its named size.
|
|
865
|
-
|
|
866
|
-
[[cli:Use deepline billing quote
|
|
889
|
+
${PLAY_RUNTIME_PRICING_NOTE}
|
|
890
|
+
[[cli:Use deepline billing quote --sandbox-timeout 30m --sandbox-size large
|
|
891
|
+
for the workspace's session ceiling.]]
|
|
867
892
|
Set runtime.timeout to extend a run up to 4h.
|
|
868
893
|
For large datasets, keep working sets bounded and checkpoint progress;
|
|
869
894
|
inline ctx.runPlay shares parent memory, while ctx.runPlayAsync starts an
|
|
@@ -2121,6 +2146,7 @@ function indent(text) {
|
|
|
2121
2146
|
}
|
|
2122
2147
|
|
|
2123
2148
|
export {
|
|
2149
|
+
PLAY_RUNTIME_PRICING_NOTE,
|
|
2124
2150
|
COMMAND_DOCS,
|
|
2125
2151
|
commandDocKey,
|
|
2126
2152
|
helpDetailFromArgv,
|
|
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
16
16
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk6JNBMTCZjs = require('./chunk-6JNBMTCZ.js');
|
|
20
20
|
|
|
21
21
|
// src/version.ts
|
|
22
|
-
var SDK_VERSION =
|
|
23
|
-
var SDK_API_MAJOR =
|
|
24
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
22
|
+
var SDK_VERSION = _chunk6JNBMTCZjs.SDK_RELEASE.version;
|
|
23
|
+
var SDK_API_MAJOR = _chunk6JNBMTCZjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
24
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunk6JNBMTCZjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
25
25
|
|
|
26
26
|
// src/agent-runtime.ts
|
|
27
27
|
var _os = require('os');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk7P2QVMBPjs = require('./chunk-7P2QVMBP.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkRNSHCJMEjs = require('./chunk-RNSHCJME.js');
|
|
@@ -11,7 +11,7 @@ var _chunkRNSHCJMEjs = require('./chunk-RNSHCJME.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkQKKU2FH4js = require('./chunk-QKKU2FH4.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -581,7 +581,7 @@ function parseInputFlagValue(raw) {
|
|
|
581
581
|
return raw;
|
|
582
582
|
}
|
|
583
583
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
584
|
-
const selection =
|
|
584
|
+
const selection = _chunkQKKU2FH4js.parseJsonFields.call(void 0, args, "run");
|
|
585
585
|
args = selection.args;
|
|
586
586
|
const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
|
|
587
587
|
let filePath = null;
|
|
@@ -593,7 +593,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
593
593
|
let revisionSelector = null;
|
|
594
594
|
const watch = !args.includes("--no-wait");
|
|
595
595
|
const dryRun = args.includes("--dry-run");
|
|
596
|
-
let jsonOutput = dryRun ?
|
|
596
|
+
let jsonOutput = dryRun ? _chunkQKKU2FH4js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkQKKU2FH4js.argsWantJson.call(void 0, args);
|
|
597
597
|
const fullJson = args.includes("--full");
|
|
598
598
|
const force = args.includes("--force") || args.includes("--from-start");
|
|
599
599
|
const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
|
|
@@ -656,7 +656,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
656
656
|
"--log-level requires one of: debug, info, warn, error."
|
|
657
657
|
);
|
|
658
658
|
}
|
|
659
|
-
const parsed =
|
|
659
|
+
const parsed = _chunk7P2QVMBPjs.parseLogLevel.call(void 0, value);
|
|
660
660
|
if (!parsed) {
|
|
661
661
|
throw new Error(
|
|
662
662
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -974,7 +974,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
974
974
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
975
975
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
976
976
|
);
|
|
977
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
977
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk7P2QVMBPjs.parseLogLevel.call(void 0, options.logLevel);
|
|
978
978
|
if (!logLevel)
|
|
979
979
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
980
980
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -988,13 +988,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
988
988
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
989
989
|
logLevel = "debug";
|
|
990
990
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
991
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
992
|
-
[...fullJson ? ["--full"] : [], ...
|
|
991
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkQKKU2FH4js.parseJsonFields.call(void 0,
|
|
992
|
+
[...fullJson ? ["--full"] : [], ..._chunkQKKU2FH4js.jsonFieldArgs.call(void 0, options.json)],
|
|
993
993
|
"run"
|
|
994
994
|
).fields;
|
|
995
995
|
const watch = options.wait === false ? false : base.watch;
|
|
996
996
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
997
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
997
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkQKKU2FH4js.argsWantJson.call(void 0, []) : explicitJson;
|
|
998
998
|
const verboseLogs = Boolean(
|
|
999
999
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
1000
1000
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQKKU2FH4js = require('./chunk-QKKU2FH4.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunkQKKU2FH4js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SVFTZTCI.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GGBXNQCR.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XHZSPMNC.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3MLFFWDM.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-Y6XKCEPK.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|