deepline 0.3.560 → 0.3.562
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/play-runtime/runner-backends/backends/modal.ts +16 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox-egress.ts +57 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +24 -2
- package/dist/cli/auth-FM3JO6FN.js +44 -0
- package/dist/cli/{auth-5DIOQ3MO.mjs → auth-OFHWBJ2W.mjs} +5 -5
- package/dist/cli/{billing-N5NS5CU6.js → billing-BORJ3ZHJ.js} +99 -99
- package/dist/cli/{billing-K7EJAM55.mjs → billing-PPOC7TAY.mjs} +8 -8
- package/dist/cli/{chunk-4CQ7LVRT.js → chunk-3BV2OD25.js} +48 -48
- package/dist/cli/{chunk-SCM6BR4Q.mjs → chunk-3OJLUVOS.mjs} +1 -1
- package/dist/cli/{chunk-5VC6K4NJ.js → chunk-4O47WP3B.js} +26 -26
- package/dist/cli/{chunk-ZXB2Y3SG.js → chunk-5COJEZSB.js} +4 -4
- package/dist/cli/{chunk-4PBYS3PS.mjs → chunk-5KMZR36E.mjs} +1 -1
- package/dist/cli/{chunk-V7ZOAXZ4.js → chunk-5NGS4RLF.js} +23 -23
- package/dist/cli/{chunk-GKONGPVW.mjs → chunk-5VXK34DQ.mjs} +5 -5
- package/dist/cli/{chunk-JQDVX3D4.mjs → chunk-5XS5BTMC.mjs} +4 -4
- package/dist/cli/{chunk-BQ2Z6PSE.mjs → chunk-5YQVEV7I.mjs} +5 -5
- package/dist/cli/{chunk-Q77PM7U2.js → chunk-6BGEW3KU.js} +20 -20
- package/dist/cli/{chunk-A62A73U6.mjs → chunk-7DRCIDPW.mjs} +3 -3
- package/dist/cli/{chunk-I7CQJ7JP.js → chunk-7HFWEQ6Y.js} +2 -2
- package/dist/cli/{chunk-OPT36HX4.js → chunk-7IHSJ3RD.js} +53 -53
- package/dist/cli/{chunk-V7OFUYMO.mjs → chunk-AAIYXQRJ.mjs} +2 -2
- package/dist/cli/{chunk-JYT6P2M2.js → chunk-AASSDBQ3.js} +2 -2
- package/dist/cli/{chunk-CQS5E6D2.js → chunk-CIEMDAJE.js} +100 -100
- package/dist/cli/{chunk-NNKZ4JYP.mjs → chunk-EHUUHKWY.mjs} +5 -5
- package/dist/cli/{chunk-7ZE6DF6B.js → chunk-EVZDU7CF.js} +3 -3
- package/dist/cli/{chunk-DOAD7ZCA.mjs → chunk-GAMCJW6E.mjs} +1 -1
- package/dist/cli/{chunk-LMY7CGI7.js → chunk-GAN6UYEN.js} +5 -5
- package/dist/cli/{chunk-UTPANENL.js → chunk-GH5R65SB.js} +12 -12
- package/dist/cli/{chunk-GTRGJITW.mjs → chunk-GWJ4EOW2.mjs} +11 -11
- package/dist/cli/{chunk-Y5CZWGO4.js → chunk-IQJQB7J6.js} +1 -1
- package/dist/cli/{chunk-E76MM3SC.js → chunk-J5P7VGV5.js} +20 -20
- package/dist/cli/{chunk-4MAY2TA3.mjs → chunk-J7XEUV5W.mjs} +2 -2
- package/dist/cli/{chunk-GR5WG72L.mjs → chunk-KJDS2X5S.mjs} +2 -2
- package/dist/cli/{chunk-AMUMEL4C.mjs → chunk-L4KUAJFR.mjs} +1 -1
- package/dist/cli/{chunk-4GRIMNDO.js → chunk-LJXFCEP2.js} +41 -41
- package/dist/cli/{chunk-JHS7WKRS.mjs → chunk-LK4LR4K7.mjs} +3 -3
- package/dist/cli/{chunk-F5CZ3Q2I.mjs → chunk-LXL7OZOG.mjs} +1 -1
- package/dist/cli/{chunk-24GZT76F.js → chunk-P6XJRHLF.js} +7 -7
- package/dist/cli/{chunk-YDWFE7MX.js → chunk-PDHLHEUL.js} +2 -2
- package/dist/cli/{chunk-UI7BBF2O.mjs → chunk-QC3NTBF7.mjs} +5 -5
- package/dist/cli/{chunk-KP4B3JOT.js → chunk-QWB4VW4T.js} +13 -13
- package/dist/cli/{chunk-TE2NSUT5.js → chunk-R5PPP3JU.js} +5 -5
- package/dist/cli/{chunk-5QMEJPN5.js → chunk-RFB52LP5.js} +8 -8
- package/dist/cli/{chunk-G33LSF4T.mjs → chunk-RKB536LB.mjs} +2 -2
- package/dist/cli/{chunk-BW4NVW5T.js → chunk-RYWWBTDB.js} +3 -3
- package/dist/cli/{chunk-OS3FDGKX.mjs → chunk-SQFWIUNP.mjs} +4 -4
- package/dist/cli/{chunk-A4X2O75M.mjs → chunk-UC2ATYB3.mjs} +2 -2
- package/dist/cli/{chunk-ZSDZ3Q5P.mjs → chunk-USA6QRDO.mjs} +1 -1
- package/dist/cli/{chunk-MBLPUJ5I.js → chunk-UVZQR7I6.js} +5 -5
- package/dist/cli/{chunk-ZJJUVUP6.mjs → chunk-UZ4ELBHM.mjs} +2 -2
- package/dist/cli/{chunk-WOZKGI6H.mjs → chunk-WDKU7NOR.mjs} +1 -1
- package/dist/cli/{chunk-XLM7L4UY.mjs → chunk-WFVL6A7I.mjs} +1 -1
- package/dist/cli/{chunk-CQJMFUMK.mjs → chunk-XHZFA67G.mjs} +1 -1
- package/dist/cli/{chunk-RQKCNQ5Q.mjs → chunk-YAXYFPBF.mjs} +2 -2
- package/dist/cli/{chunk-ZY64JRBV.js → chunk-YB6N6WKX.js} +10 -10
- package/dist/cli/{chunk-FW2WRBZO.js → chunk-YT4WIYFT.js} +9 -9
- package/dist/cli/{chunk-MCGR7NG3.js → chunk-YX47WHVT.js} +6 -6
- package/dist/cli/{chunk-Z4FWF237.js → chunk-Z2FC6UQQ.js} +15 -15
- package/dist/cli/{chunk-5XMABMQU.mjs → chunk-ZQLEEOZR.mjs} +2 -2
- package/dist/cli/{concurrent-runs-help-TCB2EKTR.mjs → concurrent-runs-help-IRM4PNIE.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-RGKC4GDM.js +22 -0
- package/dist/cli/{csv-R45YJYUO.mjs → csv-6T4CONXY.mjs} +4 -4
- package/dist/cli/{csv-DWC44DLD.js → csv-UEFHJV5P.js} +13 -13
- package/dist/cli/{db-XZXNKW7B.mjs → db-P6SN3JUE.mjs} +6 -6
- package/dist/cli/{db-XIN3KF47.js → db-PNDYQRRC.js} +27 -27
- package/dist/cli/describe-DDP4Q7SK.js +50 -0
- package/dist/cli/{describe-6KSAHJBD.mjs → describe-U2ZIQ4JH.mjs} +18 -18
- package/dist/cli/{executions-C3UZLR7Y.js → executions-7AOZES2Z.js} +8 -8
- package/dist/cli/{executions-RSPQRWYL.mjs → executions-WELIUVIV.mjs} +6 -6
- package/dist/cli/{feedback-7RCSKLW4.mjs → feedback-66WWUWIR.mjs} +6 -6
- package/dist/cli/{feedback-A7WP67XL.js → feedback-XTTK5GLD.js} +14 -14
- package/dist/cli/git-53OSBVPB.js +26 -0
- package/dist/cli/{git-JE6TFEK4.mjs → git-S23WMQAB.mjs} +5 -5
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-DEU3ZW5P.mjs → integrations-DEHG2ILN.mjs} +7 -7
- package/dist/cli/{integrations-L2D3EY3H.js → integrations-MPKN5JRT.js} +20 -20
- package/dist/cli/{legacy-noops-TL5PBCVQ.mjs → legacy-noops-7TU2COQH.mjs} +6 -6
- package/dist/cli/{legacy-noops-AHTEO6EF.js → legacy-noops-IKVIOTDJ.js} +9 -9
- package/dist/cli/{mcp-KXR7YJEG.js → mcp-5ZFZKBX2.js} +24 -24
- package/dist/cli/{mcp-PVRF5CGK.mjs → mcp-BGUKF2AA.mjs} +4 -4
- package/dist/cli/{monitors-BMGSROH3.mjs → monitors-2QZUTM7K.mjs} +7 -7
- package/dist/cli/{monitors-YHF6RQGU.js → monitors-EUSWYOUL.js} +100 -100
- package/dist/cli/{org-OO6LQPS6.mjs → org-FDA5EGQC.mjs} +6 -6
- package/dist/cli/{org-IQJO6DJ7.js → org-W4S2QIOX.js} +121 -121
- package/dist/cli/{outcomes-6QO6NEKO.mjs → outcomes-KZ7SM5TM.mjs} +6 -6
- package/dist/cli/{outcomes-NAEAOCNT.js → outcomes-WF34PZAX.js} +14 -14
- package/dist/cli/{play-MZQSOYVV.mjs → play-XHHJYBBZ.mjs} +19 -19
- package/dist/cli/{play-TYIBTW4E.js → play-XYJBKWRX.js} +324 -324
- package/dist/cli/{providers-JDSSPMWH.js → providers-SCT2LUCO.js} +9 -9
- package/dist/cli/{providers-JR4OWXRX.mjs → providers-WHPZMDA6.mjs} +6 -6
- package/dist/cli/{quickstart-T363ASLH.js → quickstart-IXLB34QZ.js} +6 -6
- package/dist/cli/{quickstart-JBX6BKGZ.mjs → quickstart-L45XFREM.mjs} +4 -4
- package/dist/cli/{run-J3KWBIXA.js → run-EZCUNFI7.js} +44 -44
- package/dist/cli/{run-6PWTGRJI.mjs → run-SAWTV6NP.mjs} +23 -23
- package/dist/cli/{search-XQG7UXAE.mjs → search-GW2P4KNN.mjs} +7 -7
- package/dist/cli/search-S5KQIDCG.js +32 -0
- package/dist/cli/{search-output-DNONJFPF.mjs → search-output-ASU6D6XX.mjs} +4 -4
- package/dist/cli/{search-output-YZYLNDU6.js → search-output-WRDJJFBW.js} +6 -6
- package/dist/cli/{secrets-SCKPXIT7.js → secrets-AAV7JKPF.js} +15 -15
- package/dist/cli/{secrets-MR7VXG74.mjs → secrets-N5EAETGP.mjs} +6 -6
- package/dist/cli/sessions-H33DKDTF.js +23 -0
- package/dist/cli/{sessions-MPIJTGWQ.mjs → sessions-WYISBB4D.mjs} +6 -6
- package/dist/cli/{settings-YPKR5JFF.js → settings-WOIN3AIB.js} +85 -85
- package/dist/cli/{settings-Y5NW74ER.mjs → settings-X7BTX2N3.mjs} +12 -12
- package/dist/cli/{setup-5RJCLRZI.mjs → setup-APLGF5BY.mjs} +9 -9
- package/dist/cli/{setup-673Q3LGR.js → setup-J3RS6UKU.js} +49 -49
- package/dist/cli/skills-7PT2KDQN.js +37 -0
- package/dist/cli/{skills-2QVBD4LD.mjs → skills-UGPVOIYQ.mjs} +7 -7
- package/dist/cli/{tools-627KG34F.mjs → tools-6WNR75VQ.mjs} +17 -17
- package/dist/cli/tools-Q2PVYNUE.js +57 -0
- package/dist/cli/update-C64JFIMU.js +37 -0
- package/dist/cli/{update-535TTARD.mjs → update-XG2EJRAG.mjs} +9 -9
- package/dist/cli/{views-FQNWZUWB.js → views-FSB6OV5N.js} +21 -21
- package/dist/cli/{views-3M24ZTXA.mjs → views-LUNVYDBY.mjs} +6 -6
- package/dist/cli/{workflow-H6F7WAOE.js → workflow-RWTUI4GA.js} +17 -17
- package/dist/cli/{workflow-CN46XZPG.mjs → workflow-TEJ7J2EQ.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +112 -112
- 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-R2S7KYAA.js +0 -44
- package/dist/cli/concurrent-runs-help-TKAZVMA4.js +0 -22
- package/dist/cli/describe-WLRAQDYC.js +0 -50
- package/dist/cli/git-E6XV5MEY.js +0 -26
- package/dist/cli/search-DPVHT5MJ.js +0 -32
- package/dist/cli/sessions-VNWLXJR2.js +0 -23
- package/dist/cli/skills-YGFFPGCR.js +0 -37
- package/dist/cli/tools-2BC7K3ZU.js +0 -57
- package/dist/cli/update-HWEOSPDS.js +0 -37
|
@@ -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 _chunkJ5P7VGV5js = require('./chunk-J5P7VGV5.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 && !_chunkJ5P7VGV5js.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 (_chunkJ5P7VGV5js.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5YQVEV7I.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RKB536LB.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XHZFA67G.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-L4KUAJFR.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
30
|
} from "./chunk-5JPKRDFC.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YAXYFPBF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RKB536LB.mjs";
|
|
7
7
|
|
|
8
8
|
// src/cli/commands/integration-commands.ts
|
|
9
9
|
import { Option } from "commander";
|
|
@@ -1,13 +1,13 @@
|
|
|
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 _chunk7IHSJ3RDjs = require('./chunk-7IHSJ3RD.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkH4ALLC2Xjs = require('./chunk-H4ALLC2X.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkEVZDU7CFjs = require('./chunk-EVZDU7CF.js');
|
|
11
11
|
|
|
12
12
|
// src/cli/concurrent-runs-help.ts
|
|
13
13
|
var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
|
|
@@ -24,11 +24,11 @@ function concurrentRunsLine(payload) {
|
|
|
24
24
|
return plans ? `${here} Plan limits: ${plans}.` : here;
|
|
25
25
|
}
|
|
26
26
|
async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
|
|
27
|
-
const baseUrl =
|
|
28
|
-
const apiKey =
|
|
27
|
+
const baseUrl = _chunkEVZDU7CFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
28
|
+
const apiKey = _chunkEVZDU7CFjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
29
29
|
if (!apiKey) return "";
|
|
30
30
|
try {
|
|
31
|
-
const { status, data } = await
|
|
31
|
+
const { status, data } = await _chunk7IHSJ3RDjs.httpJson.call(void 0,
|
|
32
32
|
"GET",
|
|
33
33
|
`${baseUrl}/api/v2/billing/entitlements`,
|
|
34
34
|
apiKey,
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RKB536LB.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XHZFA67G.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.562",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LXL7OZOG.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XHZFA67G.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkGAN6UYENjs = require('./chunk-GAN6UYEN.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkJ5P7VGV5js = require('./chunk-J5P7VGV5.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkEVZDU7CFjs = require('./chunk-EVZDU7CF.js');
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
var _commander = require('commander');
|
|
@@ -22,7 +22,7 @@ var _fs = require('fs');
|
|
|
22
22
|
var _path = require('path');
|
|
23
23
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
24
24
|
function lastSearchPath() {
|
|
25
|
-
return _path.join.call(void 0,
|
|
25
|
+
return _path.join.call(void 0, _chunkEVZDU7CFjs.sdkCliStateDirPath.call(void 0, _chunkEVZDU7CFjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
26
26
|
}
|
|
27
27
|
function rememberSearchRef(searchRef) {
|
|
28
28
|
writeSearchRefs({ searchRef });
|
|
@@ -132,9 +132,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
132
132
|
console.error("--summary-width must be an integer of at least 2.");
|
|
133
133
|
return 1;
|
|
134
134
|
}
|
|
135
|
-
const client = new (0,
|
|
135
|
+
const client = new (0, _chunkGAN6UYENjs.DeeplineClient)();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-WRDJJFBW.js")));
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -157,7 +157,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
157
157
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
158
158
|
if (!multiple) {
|
|
159
159
|
if (searchRef) rememberSearchRef(searchRef);
|
|
160
|
-
|
|
160
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0, result, { json, text });
|
|
161
161
|
return 0;
|
|
162
162
|
}
|
|
163
163
|
searches.push({ ...result, query });
|
|
@@ -171,8 +171,8 @@ ${text}`);
|
|
|
171
171
|
}
|
|
172
172
|
} catch (error) {
|
|
173
173
|
if (!multiple) throw error;
|
|
174
|
-
const payload =
|
|
175
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
174
|
+
const payload = _chunkJ5P7VGV5js.errorToJsonPayload.call(void 0, error);
|
|
175
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkJ5P7VGV5js.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
176
176
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
177
177
|
if (!json) {
|
|
178
178
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -184,7 +184,7 @@ Search failed.
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
rememberSearchRefsByTool(refs);
|
|
187
|
-
|
|
187
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
188
188
|
{ searches },
|
|
189
189
|
{
|
|
190
190
|
json,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkCSPHSNBWjs = require('./chunk-CSPHSNBW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkRFB52LP5js = require('./chunk-RFB52LP5.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkMJTVX4QKjs = require('./chunk-MJTVX4QK.js');
|
|
@@ -11,7 +11,7 @@ var _chunkMJTVX4QKjs = require('./chunk-MJTVX4QK.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkJ5P7VGV5js = require('./chunk-J5P7VGV5.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.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 = _chunkJ5P7VGV5js.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 ? _chunkJ5P7VGV5js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkJ5P7VGV5js.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");
|
|
@@ -657,7 +657,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
657
657
|
"--log-level requires one of: debug, info, warn, error."
|
|
658
658
|
);
|
|
659
659
|
}
|
|
660
|
-
const parsed =
|
|
660
|
+
const parsed = _chunkRFB52LP5js.parseLogLevel.call(void 0, value);
|
|
661
661
|
if (!parsed) {
|
|
662
662
|
throw new Error(
|
|
663
663
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -990,7 +990,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
990
990
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
991
991
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
992
992
|
);
|
|
993
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
993
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkRFB52LP5js.parseLogLevel.call(void 0, options.logLevel);
|
|
994
994
|
if (!logLevel)
|
|
995
995
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
996
996
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -1004,13 +1004,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
1004
1004
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
1005
1005
|
logLevel = "debug";
|
|
1006
1006
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
1007
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
1008
|
-
[...fullJson ? ["--full"] : [], ...
|
|
1007
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkJ5P7VGV5js.parseJsonFields.call(void 0,
|
|
1008
|
+
[...fullJson ? ["--full"] : [], ..._chunkJ5P7VGV5js.jsonFieldArgs.call(void 0, options.json)],
|
|
1009
1009
|
"run"
|
|
1010
1010
|
).fields;
|
|
1011
1011
|
const watch = options.wait === false ? false : base.watch;
|
|
1012
1012
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
1013
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
1013
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkJ5P7VGV5js.argsWantJson.call(void 0, []) : explicitJson;
|
|
1014
1014
|
const verboseLogs = Boolean(
|
|
1015
1015
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
1016
1016
|
);
|
|
@@ -1,11 +1,11 @@
|
|
|
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 _chunk7HFWEQ6Yjs = require('./chunk-7HFWEQ6Y.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk3BV2OD25js = require('./chunk-3BV2OD25.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -18,18 +18,18 @@ function usesCliPlayAdmission(command, args) {
|
|
|
18
18
|
}
|
|
19
19
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
|
|
20
20
|
_optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
|
|
21
|
-
if (maintenancePolicy !== "off")
|
|
22
|
-
const compatibility = await
|
|
21
|
+
if (maintenancePolicy !== "off") _chunk3BV2OD25js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunk7HFWEQ6Yjs.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunk3BV2OD25js.requireSdkCompatibility.call(void 0, baseUrl, {
|
|
26
26
|
command: "plays run",
|
|
27
27
|
persistCache: maintenancePolicy !== "off",
|
|
28
28
|
signal
|
|
29
29
|
})
|
|
30
30
|
);
|
|
31
31
|
_optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
|
|
32
|
-
|
|
32
|
+
_chunk3BV2OD25js.enforceSdkCompatibilityResponse.call(void 0, compatibility, {
|
|
33
33
|
quietAdvisory: true
|
|
34
34
|
});
|
|
35
35
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkCIEMDAJEjs = require('./chunk-CIEMDAJE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkP6XJRHLFjs = require('./chunk-P6XJRHLF.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,16 +14,16 @@ var _chunk6ASDTHENjs = require('./chunk-6ASDTHEN.js');
|
|
|
14
14
|
var _chunkLHPYCJNLjs = require('./chunk-LHPYCJNL.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkGAN6UYENjs = require('./chunk-GAN6UYEN.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkJ5P7VGV5js = require('./chunk-J5P7VGV5.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkEVZDU7CFjs = require('./chunk-EVZDU7CF.js');
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
var _fs = require('fs');
|
|
@@ -32,14 +32,14 @@ var _path = require('path');
|
|
|
32
32
|
// src/cli/doc-read-reporting.ts
|
|
33
33
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
34
34
|
async function reportDocRead(docId) {
|
|
35
|
-
if (
|
|
35
|
+
if (_chunkJ5P7VGV5js.isFailureReportingDisabled.call(void 0, )) return;
|
|
36
36
|
try {
|
|
37
|
-
const baseUrl =
|
|
38
|
-
const apiKey =
|
|
37
|
+
const baseUrl = _chunkEVZDU7CFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
38
|
+
const apiKey = _chunkEVZDU7CFjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
39
39
|
if (!apiKey) return;
|
|
40
40
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
41
41
|
method: "POST",
|
|
42
|
-
headers:
|
|
42
|
+
headers: _chunkJ5P7VGV5js.failureReportHeaders.call(void 0, apiKey),
|
|
43
43
|
body: JSON.stringify({ doc_id: docId }),
|
|
44
44
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
45
45
|
});
|
|
@@ -52,16 +52,16 @@ function nothingNamed(name) {
|
|
|
52
52
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
53
53
|
}
|
|
54
54
|
function findNamed2(name, options) {
|
|
55
|
-
return _chunk6ASDTHENjs.findNamed.call(void 0, name, options, _chunk6ASDTHENjs.describeLookupsFor.call(void 0, new (0,
|
|
55
|
+
return _chunk6ASDTHENjs.findNamed.call(void 0, name, options, _chunk6ASDTHENjs.describeLookupsFor.call(void 0, new (0, _chunkGAN6UYENjs.DeeplineClient)()));
|
|
56
56
|
}
|
|
57
57
|
async function describeAnything(name, options, onMissing) {
|
|
58
|
-
const client = new (0,
|
|
58
|
+
const client = new (0, _chunkGAN6UYENjs.DeeplineClient)();
|
|
59
59
|
const lookups = _chunk6ASDTHENjs.describeLookupsFor.call(void 0, client);
|
|
60
60
|
const outcome = await _chunk6ASDTHENjs.describeName.call(void 0, name, options, {
|
|
61
61
|
...lookups,
|
|
62
62
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
63
63
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
64
|
-
seedStarterScript:
|
|
64
|
+
seedStarterScript: _chunkCIEMDAJEjs.seedToolListScript
|
|
65
65
|
});
|
|
66
66
|
if (outcome.status === "missing") {
|
|
67
67
|
if (onMissing) return onMissing();
|
|
@@ -90,18 +90,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
90
90
|
` : text;
|
|
91
91
|
_fs.writeFileSync.call(void 0, path, content);
|
|
92
92
|
const bytes = Buffer.byteLength(content);
|
|
93
|
-
|
|
93
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
94
94
|
{ path, bytes },
|
|
95
95
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
96
96
|
` }
|
|
97
97
|
);
|
|
98
98
|
return 0;
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
101
101
|
return 0;
|
|
102
102
|
}
|
|
103
103
|
function registerDescribeCommand(program) {
|
|
104
|
-
|
|
104
|
+
_chunkP6XJRHLFjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
105
105
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
106
106
|
).addHelpText(
|
|
107
107
|
"after",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LXL7OZOG.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XHZFA67G.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
CONCURRENT_RUNS_HELP_COMMANDS,
|
|
3
3
|
concurrentRunsHelpStatus,
|
|
4
4
|
concurrentRunsLine
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-AAIYXQRJ.mjs";
|
|
6
|
+
import "./chunk-LK4LR4K7.mjs";
|
|
7
7
|
import "./chunk-2RIKOPIM.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-RKB536LB.mjs";
|
|
9
|
+
import "./chunk-XHZFA67G.mjs";
|
|
10
|
+
import "./chunk-L4KUAJFR.mjs";
|
|
11
11
|
import "./chunk-ASB47RXJ.mjs";
|
|
12
12
|
import "./chunk-DLIRSHV6.mjs";
|
|
13
13
|
import "./chunk-Z3A2S3QM.mjs";
|
|
14
14
|
import "./chunk-2MGZAI54.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-WFVL6A7I.mjs";
|
|
16
16
|
import "./chunk-WZYKRD7T.mjs";
|
|
17
17
|
import "./chunk-KRD6H754.mjs";
|
|
18
18
|
export {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkUVZQR7I6js = require('./chunk-UVZQR7I6.js');
|
|
6
|
+
require('./chunk-7IHSJ3RD.js');
|
|
7
|
+
require('./chunk-H4ALLC2X.js');
|
|
8
|
+
require('./chunk-J5P7VGV5.js');
|
|
9
|
+
require('./chunk-EVZDU7CF.js');
|
|
10
|
+
require('./chunk-5COJEZSB.js');
|
|
11
|
+
require('./chunk-6VLFQZK6.js');
|
|
12
|
+
require('./chunk-XNYIZMNQ.js');
|
|
13
|
+
require('./chunk-LFQJW4S2.js');
|
|
14
|
+
require('./chunk-CFJFUVX2.js');
|
|
15
|
+
require('./chunk-IQJQB7J6.js');
|
|
16
|
+
require('./chunk-OG64RBAC.js');
|
|
17
|
+
require('./chunk-COGTRVWW.js');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.CONCURRENT_RUNS_HELP_COMMANDS = _chunkUVZQR7I6js.CONCURRENT_RUNS_HELP_COMMANDS; exports.concurrentRunsHelpStatus = _chunkUVZQR7I6js.concurrentRunsHelpStatus; exports.concurrentRunsLine = _chunkUVZQR7I6js.concurrentRunsLine;
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-RKB536LB.mjs";
|
|
8
|
+
import "./chunk-XHZFA67G.mjs";
|
|
9
|
+
import "./chunk-L4KUAJFR.mjs";
|
|
10
10
|
import "./chunk-ASB47RXJ.mjs";
|
|
11
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
12
|
import "./chunk-Z3A2S3QM.mjs";
|
|
13
13
|
import "./chunk-2MGZAI54.mjs";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-WFVL6A7I.mjs";
|
|
15
15
|
import "./chunk-WZYKRD7T.mjs";
|
|
16
16
|
import "./chunk-KRD6H754.mjs";
|
|
17
17
|
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
7
|
+
var _chunkJ5P7VGV5js = require('./chunk-J5P7VGV5.js');
|
|
8
|
+
require('./chunk-EVZDU7CF.js');
|
|
9
|
+
require('./chunk-5COJEZSB.js');
|
|
10
10
|
require('./chunk-6VLFQZK6.js');
|
|
11
11
|
require('./chunk-XNYIZMNQ.js');
|
|
12
12
|
require('./chunk-LFQJW4S2.js');
|
|
13
13
|
require('./chunk-CFJFUVX2.js');
|
|
14
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-IQJQB7J6.js');
|
|
15
15
|
require('./chunk-OG64RBAC.js');
|
|
16
16
|
require('./chunk-COGTRVWW.js');
|
|
17
17
|
|
|
@@ -129,7 +129,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
129
129
|
column.length,
|
|
130
130
|
...rows.map((row) => {
|
|
131
131
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
132
|
-
return (verbose ? value :
|
|
132
|
+
return (verbose ? value : _chunkJ5P7VGV5js.clip.call(void 0, value, 42)).length;
|
|
133
133
|
})
|
|
134
134
|
)
|
|
135
135
|
])
|
|
@@ -139,7 +139,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
139
139
|
const body = rows.map(
|
|
140
140
|
(row) => columns.map((column) => {
|
|
141
141
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
142
|
-
const display = verbose ? raw :
|
|
142
|
+
const display = verbose ? raw : _chunkJ5P7VGV5js.clip.call(void 0, raw, 42);
|
|
143
143
|
return display.padEnd(widths[column]);
|
|
144
144
|
}).join(" | ")
|
|
145
145
|
);
|
|
@@ -159,7 +159,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
159
159
|
{ exitCode: 2 }
|
|
160
160
|
);
|
|
161
161
|
}
|
|
162
|
-
const allRows =
|
|
162
|
+
const allRows = _chunkJ5P7VGV5js.readCsvRows.call(void 0, csvPath);
|
|
163
163
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
164
164
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
165
165
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -172,7 +172,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
172
172
|
if (options.summary) {
|
|
173
173
|
const summaries = summarizeColumns(selected, columns);
|
|
174
174
|
if (format === "json") {
|
|
175
|
-
|
|
175
|
+
_chunkJ5P7VGV5js.printJson.call(void 0, {
|
|
176
176
|
rows: summaries,
|
|
177
177
|
total_rows: selected.length,
|
|
178
178
|
source_total_rows: allRows.length
|
|
@@ -181,7 +181,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
181
181
|
}
|
|
182
182
|
const displayRows = summaryDisplayRows(summaries);
|
|
183
183
|
if (format === "csv") {
|
|
184
|
-
process.stdout.write(
|
|
184
|
+
process.stdout.write(_chunkJ5P7VGV5js.csvStringFromRows.call(void 0, displayRows));
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
187
|
process.stdout.write(
|
|
@@ -196,7 +196,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
198
|
if (format === "json") {
|
|
199
|
-
|
|
199
|
+
_chunkJ5P7VGV5js.printJson.call(void 0, {
|
|
200
200
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
201
201
|
});
|
|
202
202
|
return;
|
|
@@ -444,7 +444,7 @@ async function handleCsvRenderStart(options) {
|
|
|
444
444
|
if (log) {
|
|
445
445
|
detail = `
|
|
446
446
|
CSV render log:
|
|
447
|
-
${
|
|
447
|
+
${_chunkJ5P7VGV5js.clip.call(void 0, log, 2e3)}`;
|
|
448
448
|
}
|
|
449
449
|
} catch (e7) {
|
|
450
450
|
}
|
|
@@ -495,7 +495,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
495
495
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
496
496
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
497
497
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
498
|
-
|
|
498
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0, payload, {
|
|
499
499
|
json: options.json,
|
|
500
500
|
text: `${lines.join("\n")}
|
|
501
501
|
`
|
|
@@ -531,7 +531,7 @@ async function handleCsvRenderStop(options) {
|
|
|
531
531
|
};
|
|
532
532
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
533
533
|
` : "No running CSV render process found.\n";
|
|
534
|
-
|
|
534
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
535
535
|
}
|
|
536
536
|
async function handleCsvRender(action, options) {
|
|
537
537
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-STXDSVQZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YAXYFPBF.mjs";
|
|
7
7
|
import {
|
|
8
8
|
planCustomerDbQuery
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LXL7OZOG.mjs";
|
|
10
10
|
import "./chunk-FZHMNK6F.mjs";
|
|
11
11
|
import "./chunk-5TYLSS4Q.mjs";
|
|
12
12
|
import "./chunk-PSX3WHIH.mjs";
|
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
printCommandEnvelope,
|
|
20
20
|
recordRows,
|
|
21
21
|
shouldEmitJson
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-RKB536LB.mjs";
|
|
23
|
+
import "./chunk-XHZFA67G.mjs";
|
|
24
|
+
import "./chunk-L4KUAJFR.mjs";
|
|
25
25
|
import {
|
|
26
26
|
CustomerDbQueryOutcomeUnknownError
|
|
27
27
|
} from "./chunk-ASB47RXJ.mjs";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
DeeplineError
|
|
31
31
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
32
32
|
import "./chunk-2MGZAI54.mjs";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-WFVL6A7I.mjs";
|
|
34
34
|
import "./chunk-WZYKRD7T.mjs";
|
|
35
35
|
import "./chunk-KRD6H754.mjs";
|
|
36
36
|
|