deepline 0.3.573 → 0.3.574
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/config.ts +19 -0
- package/dist/bundling-sources/sdk/src/play.ts +7 -4
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +43 -7
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +56 -20
- package/dist/cli/agents-6WN5LYUP.mjs +833 -0
- package/dist/cli/agents-7ZZSF4FS.js +833 -0
- package/dist/cli/{auth-XX3HLRQ2.mjs → auth-I2QVO677.mjs} +5 -5
- package/dist/cli/auth-UKPV5U2B.js +44 -0
- package/dist/cli/{billing-6TY2HMC6.js → billing-44QFBUWA.js} +106 -106
- package/dist/cli/{billing-QASEPOBL.mjs → billing-YPH4GEWU.mjs} +10 -10
- package/dist/cli/{chunk-GWPXWKQR.js → chunk-2QYU57RG.js} +15 -7
- package/dist/cli/{chunk-OPD6XUIG.js → chunk-2RPRSTHD.js} +5 -5
- package/dist/cli/{chunk-DSE45YP4.mjs → chunk-2TMAKJBT.mjs} +2 -2
- package/dist/cli/{chunk-PW3PADXI.mjs → chunk-4T2U72SP.mjs} +1 -1
- package/dist/cli/{chunk-JAW75RAO.js → chunk-5E2PAGF5.js} +27 -20
- package/dist/cli/{chunk-X3BGF6UU.js → chunk-6B5EZOI3.js} +10 -10
- package/dist/cli/{chunk-UBTEDSIK.js → chunk-6GZIT3TH.js} +20 -20
- package/dist/cli/{chunk-N5VL6BHF.mjs → chunk-7334X74C.mjs} +2 -2
- package/dist/cli/{chunk-TNCJ2J76.js → chunk-7GQU46SZ.js} +26 -26
- package/dist/cli/{chunk-KQZBN7TB.js → chunk-7UR57HPJ.js} +1 -1
- package/dist/cli/{chunk-6ASDTHEN.js → chunk-AFPGYZBH.js} +21 -17
- package/dist/cli/{chunk-QFDT35HF.mjs → chunk-B2XLIQPH.mjs} +3 -3
- package/dist/cli/{chunk-DIZI5YGW.js → chunk-BUBOZKH2.js} +2 -2
- package/dist/cli/{chunk-Z6KWSBOX.js → chunk-D6ZVRKJ2.js} +41 -41
- package/dist/cli/{chunk-CY3BUFMG.js → chunk-DG56RWI2.js} +2 -2
- package/dist/cli/{chunk-TJSKDOXN.js → chunk-DOZIWA66.js} +7 -7
- package/dist/cli/{chunk-LPYUGPTF.mjs → chunk-DX646HO7.mjs} +4 -4
- package/dist/cli/{chunk-YKHXWO7N.js → chunk-ECLCRE5P.js} +3 -3
- package/dist/cli/{chunk-OG3YWDYA.js → chunk-G2HW2SAP.js} +13 -13
- package/dist/cli/{chunk-QDQOXHXQ.mjs → chunk-G7OR3GVD.mjs} +5 -5
- package/dist/cli/{chunk-ROSPYLDN.mjs → chunk-GMQZFWQU.mjs} +17 -10
- package/dist/cli/{chunk-UZLTBBAG.js → chunk-H7PVSG3L.js} +15 -15
- package/dist/cli/{chunk-WQEGXOUT.js → chunk-I62ZBEKH.js} +48 -48
- package/dist/cli/{chunk-5NEJOCOK.mjs → chunk-IA2LTIWO.mjs} +2 -2
- package/dist/cli/{chunk-DLWVJ66I.js → chunk-IB225ZK4.js} +4 -4
- package/dist/cli/{chunk-FUVVTHXE.js → chunk-ID3LGPOE.js} +23 -23
- package/dist/cli/{chunk-LHPYCJNL.js → chunk-IXYVHTRZ.js} +19 -6
- package/dist/cli/{chunk-64MOX3SN.mjs → chunk-JCO226JM.mjs} +111 -2
- package/dist/cli/{chunk-JCVAVHDP.mjs → chunk-JY7RKJ65.mjs} +21 -16
- package/dist/cli/{chunk-N6KF6X3D.js → chunk-KSHZY52O.js} +114 -5
- package/dist/cli/{chunk-BM4GE67C.mjs → chunk-L2NXB4WG.mjs} +19 -6
- package/dist/cli/{chunk-4K6UVILG.mjs → chunk-LCAXLGAY.mjs} +2 -2
- package/dist/cli/{chunk-XWO4J34B.js → chunk-LJLM4BUL.js} +6 -6
- package/dist/cli/{chunk-T2QI52F2.mjs → chunk-LLSCFLFU.mjs} +1 -1
- package/dist/cli/{chunk-C52RRBYB.mjs → chunk-MAMGREBW.mjs} +1 -1
- package/dist/cli/{chunk-NUH56LTU.mjs → chunk-MGF3MK27.mjs} +5 -5
- package/dist/cli/{chunk-FXLVMWWA.js → chunk-N6I3BB2O.js} +280 -275
- package/dist/cli/{chunk-UNTBQY64.js → chunk-NDDGFX4X.js} +11 -11
- package/dist/cli/{chunk-NJTTRJ32.mjs → chunk-NRVEVKXR.mjs} +2 -2
- package/dist/cli/{chunk-IXCGWJJZ.mjs → chunk-OH6WOID2.mjs} +2 -2
- package/dist/cli/{chunk-WSXRJ2RZ.mjs → chunk-OIZUFRTE.mjs} +3 -3
- package/dist/cli/{chunk-2USXCXPZ.js → chunk-PP5RMEQQ.js} +5 -5
- package/dist/cli/{chunk-ANSHNREL.mjs → chunk-PW6NKI2A.mjs} +3 -3
- package/dist/cli/{chunk-ENHQBPR5.mjs → chunk-Q3A53SWK.mjs} +4 -3
- package/dist/cli/{chunk-XLN4Z654.mjs → chunk-QPSBV4FD.mjs} +2 -2
- package/dist/cli/{chunk-4LWBURSS.mjs → chunk-S22FSNNC.mjs} +1 -1
- package/dist/cli/{chunk-KART6FR6.js → chunk-SLXCVPN7.js} +2 -2
- package/dist/cli/{chunk-MQOJ7SP4.mjs → chunk-SRUNYWQ2.mjs} +9 -1
- package/dist/cli/{chunk-XVFRNNL2.js → chunk-UXIUAIL2.js} +53 -53
- package/dist/cli/{chunk-M2UJWUWX.mjs → chunk-VGIDPJXM.mjs} +3 -3
- package/dist/cli/{chunk-IZK2BLBW.js → chunk-VLUBEMWM.js} +20 -20
- package/dist/cli/{chunk-N3VZTISZ.js → chunk-VYSUJMB5.js} +8 -8
- package/dist/cli/{chunk-6JTJP3WO.mjs → chunk-W6UCS3O6.mjs} +5 -5
- package/dist/cli/{chunk-XAIXTB74.mjs → chunk-X7RKCAMX.mjs} +4 -4
- package/dist/cli/{chunk-TBLP7HDL.js → chunk-XMBTAPHR.js} +10 -9
- package/dist/cli/{chunk-ESKNCTFI.mjs → chunk-XVBEEGI4.mjs} +1 -1
- package/dist/cli/{chunk-5MCC4D25.mjs → chunk-YR4REP4D.mjs} +1 -1
- package/dist/cli/{chunk-KQLIG4YR.js → chunk-Z3XFXFRT.js} +9 -9
- package/dist/cli/{chunk-ENLJ67CZ.mjs → chunk-ZFXDD7VM.mjs} +1 -1
- package/dist/cli/{chunk-HUJMFETO.mjs → chunk-ZTCP5BHH.mjs} +7 -3
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/concurrent-runs-help-BFVCUJF4.js +22 -0
- package/dist/cli/{concurrent-runs-help-IILHMHBX.mjs → concurrent-runs-help-ROQM6UB3.mjs} +7 -7
- package/dist/cli/{csv-OSJQVDAS.js → csv-FWGSY4GE.js} +13 -13
- package/dist/cli/{csv-VGYW2PQZ.mjs → csv-R7GV33BC.mjs} +4 -4
- package/dist/cli/{db-2IMS6K2F.js → db-OCH35YJG.js} +27 -27
- package/dist/cli/{db-3IQYT3WD.mjs → db-UWXA4RRV.mjs} +6 -6
- package/dist/cli/describe-6OI5K2SH.js +50 -0
- package/dist/cli/{describe-IGJ4CHUC.mjs → describe-QI4HMUGE.mjs} +21 -21
- package/dist/cli/describe-core.d.mts +4 -2
- package/dist/cli/describe-core.d.ts +4 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-VOJN4NPF.js → executions-7CFGC24E.js} +8 -8
- package/dist/cli/{executions-6F3PLVCR.mjs → executions-YF3KMZZN.mjs} +6 -6
- package/dist/cli/{feedback-BP5G27DT.mjs → feedback-DWIWBS7O.mjs} +6 -6
- package/dist/cli/{feedback-5N7GKSMC.js → feedback-YCZHHSBS.js} +14 -14
- package/dist/cli/git-TGLNZRS3.js +26 -0
- package/dist/cli/{git-FHNCP7QA.mjs → git-XCGMQQOD.mjs} +5 -5
- package/dist/cli/index.js +152 -148
- package/dist/cli/index.mjs +51 -47
- package/dist/cli/{integrations-KKCEEWDU.mjs → integrations-5ABAJBSW.mjs} +7 -7
- package/dist/cli/{integrations-JZV55BZT.js → integrations-IEZA3TGK.js} +29 -29
- package/dist/cli/{legacy-noops-OVOHF47E.js → legacy-noops-KNFLJ5P2.js} +9 -9
- package/dist/cli/{legacy-noops-YOPWDLRG.mjs → legacy-noops-OZMY73Y3.mjs} +6 -6
- package/dist/cli/{mcp-F2XGBA6W.js → mcp-NLQAO7KP.js} +24 -24
- package/dist/cli/{mcp-SJAXFYTI.mjs → mcp-WSPFKQPZ.mjs} +4 -4
- package/dist/cli/{monitors-RQRNQRYB.js → monitors-BJYOB4S3.js} +100 -100
- package/dist/cli/{monitors-PFH3FQLD.mjs → monitors-LPKFFTOX.mjs} +7 -7
- package/dist/cli/{org-PZC6SUZD.mjs → org-RYPMUYUW.mjs} +6 -6
- package/dist/cli/{org-WPOEKMTG.js → org-WIVHI4WT.js} +121 -121
- package/dist/cli/{outcomes-ZS7XD3KQ.mjs → outcomes-FADJYC4I.mjs} +9 -7
- package/dist/cli/{outcomes-EXOCNHOC.js → outcomes-QKX7IE3O.js} +17 -15
- package/dist/cli/{play-UKSRFVIU.mjs → play-4ZKK5Q7U.mjs} +88 -33
- package/dist/cli/{play-JS2TEEE7.js → play-ID73J3NP.js} +393 -338
- package/dist/cli/{providers-U6IODPMJ.mjs → providers-LURYBSNO.mjs} +6 -6
- package/dist/cli/{providers-3U4MWBLU.js → providers-WCCGYGW6.js} +9 -9
- package/dist/cli/{quickstart-G5QN5CUE.mjs → quickstart-KCCSEE5J.mjs} +4 -4
- package/dist/cli/{quickstart-SHBAEDX6.js → quickstart-LVPOU25V.js} +6 -6
- package/dist/cli/{run-SZRKNLUT.js → run-2QMJRCVA.js} +48 -48
- package/dist/cli/{run-3ZOJ6V7C.mjs → run-XXK7DDUF.mjs} +26 -26
- package/dist/cli/search-AQSAXA6D.js +32 -0
- package/dist/cli/{search-2VX5WNMJ.mjs → search-ZYAWW3CK.mjs} +7 -7
- package/dist/cli/{search-output-U5N2O6IA.mjs → search-output-N45AIOB4.mjs} +9 -6
- package/dist/cli/{search-output-WGDHYYHX.js → search-output-YNXAZSKT.js} +12 -9
- package/dist/cli/{secrets-SQKP5ILO.mjs → secrets-7Q3AOUAS.mjs} +6 -6
- package/dist/cli/{secrets-UITJOGVQ.js → secrets-MHT27L2M.js} +15 -15
- package/dist/cli/{sessions-LSXO2OKX.mjs → sessions-6QKOM7M3.mjs} +6 -6
- package/dist/cli/sessions-RGD7L4LC.js +23 -0
- package/dist/cli/{settings-YGYRDPOK.mjs → settings-NPVIDENI.mjs} +12 -12
- package/dist/cli/{settings-VZI675JG.js → settings-OP7Q6YX6.js} +85 -85
- package/dist/cli/{setup-GXGXRWKN.mjs → setup-OOT3EIMF.mjs} +9 -9
- package/dist/cli/{setup-OJ33NOWK.js → setup-RT6GHL3W.js} +49 -49
- package/dist/cli/skills-ERAA734H.js +37 -0
- package/dist/cli/{skills-3VDYIFAX.mjs → skills-TEXI4CLZ.mjs} +7 -7
- package/dist/cli/tools-D5SZSIIH.js +57 -0
- package/dist/cli/{tools-3TKEGDBP.mjs → tools-G5L36M3X.mjs} +19 -19
- package/dist/cli/update-WZ6527EF.js +37 -0
- package/dist/cli/{update-K6A4QXTC.mjs → update-YNKQTE4D.mjs} +9 -9
- package/dist/cli/{views-2PPIVWDK.mjs → views-IQFMUMLU.mjs} +6 -6
- package/dist/cli/{views-SGGO77XS.js → views-OVQ5AQAU.js} +21 -21
- package/dist/cli/{workflow-YSFOOTPB.js → workflow-RCBYXIFZ.js} +17 -17
- package/dist/cli/{workflow-JTG6QEFO.mjs → workflow-Y5IFMI7N.mjs} +7 -7
- package/dist/{client-DCnExziW.d.ts → client-BrdMPFCM.d.ts} +1 -1
- package/dist/{client-ClJlqkKt.d.mts → client-CF-bsrtI.d.mts} +1 -1
- package/dist/{client-core-DAOPQnGD.d.mts → client-core-DM1ZedOG.d.mts} +8 -0
- package/dist/{client-core-BKq5ZNAl.d.ts → client-core-rMoUWSYM.d.ts} +8 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +128 -126
- 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/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-DGR7ZQJL.js +0 -44
- package/dist/cli/concurrent-runs-help-HEIDXAM2.js +0 -22
- package/dist/cli/describe-LBU4I6SU.js +0 -50
- package/dist/cli/git-JUSPUUOH.js +0 -26
- package/dist/cli/search-TAFMLK4K.js +0 -32
- package/dist/cli/sessions-RA6FBIHJ.js +0 -23
- package/dist/cli/skills-J5QVWKLQ.js +0 -37
- package/dist/cli/tools-3PQXQGXL.js +0 -57
- package/dist/cli/update-CA3DZ75E.js +0 -37
- /package/dist/cli/{chunk-2RIKOPIM.mjs → chunk-HECXJBED.mjs} +0 -0
- /package/dist/cli/{chunk-H4ALLC2X.js → chunk-TJCENACZ.js} +0 -0
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2QYU57RGjs = require('./chunk-2QYU57RG.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkIB225ZK4js = require('./chunk-IB225ZK4.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -331,7 +331,7 @@ function buildEnvironmentContext() {
|
|
|
331
331
|
node_version: process.version,
|
|
332
332
|
runtime: "Node.js",
|
|
333
333
|
hostname: _os.hostname.call(void 0, ),
|
|
334
|
-
agent_runtime:
|
|
334
|
+
agent_runtime: _chunkIB225ZK4js.detectAgentRuntime.call(void 0, )
|
|
335
335
|
};
|
|
336
336
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
337
337
|
const normalized = _optionalChain([process, 'access', _6 => _6.env, 'access', _7 => _7[key], 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]);
|
|
@@ -352,18 +352,18 @@ function buildEnvironmentContext() {
|
|
|
352
352
|
return context;
|
|
353
353
|
}
|
|
354
354
|
function failureReportHeaders(apiKey) {
|
|
355
|
-
const agentSessionId =
|
|
355
|
+
const agentSessionId = _chunkIB225ZK4js.agentSessionIdFromEnvironment.call(void 0, );
|
|
356
356
|
return {
|
|
357
|
-
...
|
|
357
|
+
..._chunkIB225ZK4js.deploymentProtectionHeaders.call(void 0, ),
|
|
358
358
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
359
359
|
Authorization: `Bearer ${apiKey}`,
|
|
360
360
|
"Content-Type": "application/json",
|
|
361
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
361
|
+
"User-Agent": `deepline-ts-sdk/${_chunkIB225ZK4js.SDK_VERSION}`,
|
|
362
362
|
"X-Deepline-Client-Family": "sdk",
|
|
363
363
|
"X-Deepline-CLI-Family": "sdk",
|
|
364
|
-
"X-Deepline-Agent-Runtime":
|
|
365
|
-
"X-Deepline-CLI-Version":
|
|
366
|
-
"X-Deepline-SDK-Version":
|
|
364
|
+
"X-Deepline-Agent-Runtime": _chunkIB225ZK4js.detectAgentRuntime.call(void 0, ),
|
|
365
|
+
"X-Deepline-CLI-Version": _chunkIB225ZK4js.SDK_VERSION,
|
|
366
|
+
"X-Deepline-SDK-Version": _chunkIB225ZK4js.SDK_VERSION
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
async function postFailureReport(input) {
|
|
@@ -391,7 +391,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
391
391
|
if (isFailureReportingDisabled()) return false;
|
|
392
392
|
let apiKey = "";
|
|
393
393
|
try {
|
|
394
|
-
apiKey =
|
|
394
|
+
apiKey = _chunk2QYU57RGjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
395
395
|
} catch (e2) {
|
|
396
396
|
return false;
|
|
397
397
|
}
|
|
@@ -418,7 +418,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
418
418
|
failure_code: failureCode2,
|
|
419
419
|
failure_stage: failureStage,
|
|
420
420
|
error_body: "Automatic Deepline skills installation failed.",
|
|
421
|
-
cli_version:
|
|
421
|
+
cli_version: _chunkIB225ZK4js.SDK_VERSION,
|
|
422
422
|
context: {
|
|
423
423
|
environment: buildEnvironmentContext(),
|
|
424
424
|
skills_sync: {
|
|
@@ -538,7 +538,7 @@ function buildFailureReport(input) {
|
|
|
538
538
|
failure_kind: failureKind,
|
|
539
539
|
failure_code: code,
|
|
540
540
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
541
|
-
cli_version:
|
|
541
|
+
cli_version: _chunkIB225ZK4js.SDK_VERSION,
|
|
542
542
|
context: {
|
|
543
543
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
544
544
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -558,8 +558,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
558
558
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
559
559
|
const exitCode = resolvedExitCode(input);
|
|
560
560
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
561
|
-
const baseUrl =
|
|
562
|
-
const apiKey =
|
|
561
|
+
const baseUrl = _chunk2QYU57RGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
562
|
+
const apiKey = _chunk2QYU57RGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
563
563
|
if (!apiKey) return false;
|
|
564
564
|
return postFailureReport({
|
|
565
565
|
baseUrl,
|
|
@@ -914,8 +914,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
914
914
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
915
915
|
var defaultBrowserCommandRunner = childProcess;
|
|
916
916
|
function getAuthedHttpClient() {
|
|
917
|
-
const config =
|
|
918
|
-
return { config, http: new (0,
|
|
917
|
+
const config = _chunk2QYU57RGjs.resolveConfig.call(void 0, );
|
|
918
|
+
return { config, http: new (0, _chunk2QYU57RGjs.HttpClient)(config) };
|
|
919
919
|
}
|
|
920
920
|
function stableOsUserId() {
|
|
921
921
|
try {
|
|
@@ -1256,7 +1256,7 @@ function collectLocalEnvInfo() {
|
|
|
1256
1256
|
os: `${process.platform} ${process.arch}`,
|
|
1257
1257
|
node_version: process.version,
|
|
1258
1258
|
home_dir: homeDir,
|
|
1259
|
-
agent_runtime:
|
|
1259
|
+
agent_runtime: _chunkIB225ZK4js.detectAgentRuntime.call(void 0, )
|
|
1260
1260
|
};
|
|
1261
1261
|
const env = process.env;
|
|
1262
1262
|
const optional = {
|
|
@@ -1503,9 +1503,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
function withAgentCommandContext(value) {
|
|
1505
1505
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
1506
|
-
return
|
|
1506
|
+
return _chunkIB225ZK4js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
1507
1507
|
...valueRecord,
|
|
1508
|
-
command_context:
|
|
1508
|
+
command_context: _chunk2QYU57RGjs.resolveCliCommandContext.call(void 0, )
|
|
1509
1509
|
} : value;
|
|
1510
1510
|
}
|
|
1511
1511
|
function printJson(value, fields, options = {}) {
|
|
@@ -1677,7 +1677,7 @@ function errorToJsonPayload(error) {
|
|
|
1677
1677
|
...upstreamResponse ? { upstreamResponse } : {},
|
|
1678
1678
|
...Object.keys(details).length > 0 ? { details } : {}
|
|
1679
1679
|
};
|
|
1680
|
-
const retry = cliRetryGuidance(payloadError,
|
|
1680
|
+
const retry = cliRetryGuidance(payloadError, _chunkIB225ZK4js.readToolFailureHint.call(void 0, error));
|
|
1681
1681
|
return {
|
|
1682
1682
|
ok: false,
|
|
1683
1683
|
status: "failed",
|
|
@@ -37,7 +37,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkIB225ZK4js = require('./chunk-IB225ZK4.js');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
|
|
@@ -963,7 +963,7 @@ var ToolCalls = class {
|
|
|
963
963
|
idempotencyKey,
|
|
964
964
|
onResponse: (response2) => {
|
|
965
965
|
lastResponse = null;
|
|
966
|
-
atomicToolsSupported = response2.headers.get(
|
|
966
|
+
atomicToolsSupported = response2.headers.get(_chunkIB225ZK4js.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
967
967
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
968
968
|
if (_optionalChain([options, 'optionalAccess', _38 => _38.onServerTiming])) {
|
|
969
969
|
try {
|
|
@@ -1350,15 +1350,15 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
const receivers = _optionalChain([env, 'access', _63 => _63.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _64 => _64.trim, 'call', _65 => _65()]);
|
|
1352
1352
|
return {
|
|
1353
|
-
[
|
|
1354
|
-
...receivers ? { [
|
|
1353
|
+
[_chunkIB225ZK4js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1354
|
+
...receivers ? { [_chunkIB225ZK4js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1355
1355
|
};
|
|
1356
1356
|
}
|
|
1357
1357
|
function playRunStartHeaders(runtime, env) {
|
|
1358
1358
|
const headers = runtimeSelectionHeaders(runtime, env);
|
|
1359
1359
|
const experimentSwitches = _optionalChain([env, 'access', _66 => _66.DEEPLINE_EXPERIMENT_SWITCHES, 'optionalAccess', _67 => _67.trim, 'call', _68 => _68()]);
|
|
1360
1360
|
if (!experimentSwitches) return headers;
|
|
1361
|
-
return { ...headers, [
|
|
1361
|
+
return { ...headers, [_chunkIB225ZK4js.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
|
|
1362
1362
|
}
|
|
1363
1363
|
function normalizeTestPolicyOverrides(value, source) {
|
|
1364
1364
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -1428,7 +1428,7 @@ var PlayClient = class {
|
|
|
1428
1428
|
return _chunkMJTVX4QKjs.startPlayRun.call(void 0,
|
|
1429
1429
|
this.http,
|
|
1430
1430
|
resolved.request,
|
|
1431
|
-
_optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1431
|
+
_optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkIB225ZK4js.SDK_API_MAJOR) } : headers,
|
|
1432
1432
|
options
|
|
1433
1433
|
);
|
|
1434
1434
|
}
|
|
@@ -3546,7 +3546,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3546
3546
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3547
3547
|
);
|
|
3548
3548
|
}
|
|
3549
|
-
return { [
|
|
3549
|
+
return { [_chunkIB225ZK4js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3550
3550
|
}
|
|
3551
3551
|
function sleep(ms) {
|
|
3552
3552
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4482,7 +4482,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4482
4482
|
);
|
|
4483
4483
|
const headers = _optionalChain([options, 'optionalAccess', _200 => _200.cliAdmission]) ? {
|
|
4484
4484
|
...runtimeHeaders,
|
|
4485
|
-
"X-Deepline-API-Major": String(
|
|
4485
|
+
"X-Deepline-API-Major": String(_chunkIB225ZK4js.SDK_API_MAJOR)
|
|
4486
4486
|
} : runtimeHeaders;
|
|
4487
4487
|
const http = this.http;
|
|
4488
4488
|
let submitted = false;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MAMGREBW.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DX646HO7.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MGF3MK27.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2TMAKJBT.mjs";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_MAX_RETRIES,
|
|
16
16
|
DEFAULT_TIMEOUT,
|
|
17
17
|
TRANSIENT_HTTP_STATUSES,
|
|
18
18
|
autoDetectBaseUrl,
|
|
19
19
|
defaultRetryBackoffMs
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SRUNYWQ2.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/update.ts
|
|
23
23
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LCAXLGAY.mjs";
|
|
7
7
|
import {
|
|
8
8
|
errorToJsonPayload,
|
|
9
9
|
printCommandEnvelope,
|
|
10
10
|
resolveSdkCliFailureExitCode
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2TMAKJBT.mjs";
|
|
12
12
|
import {
|
|
13
13
|
resolveConfig,
|
|
14
14
|
sdkCliStateDirPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SRUNYWQ2.mjs";
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
import { Option } from "commander";
|
|
@@ -134,7 +134,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
134
134
|
}
|
|
135
135
|
const client = new DeeplineClient();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await import("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await import("./search-output-N45AIOB4.mjs");
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkIXYVHTRZjs = require('./chunk-IXYVHTRZ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -314,7 +314,7 @@ function extractorValueType(name) {
|
|
|
314
314
|
}
|
|
315
315
|
const named = NAMED_VALUE_SHAPES[definition.valueKind];
|
|
316
316
|
if (!named) return { type: "string" };
|
|
317
|
-
const { type, fields } =
|
|
317
|
+
const { type, fields } = _chunkIXYVHTRZjs.schemaField.call(void 0, name, named.schema, true);
|
|
318
318
|
return { type, ...fields ? { fields } : {}, shape: named.shape };
|
|
319
319
|
}
|
|
320
320
|
function jsonSchemaOf(wrapper) {
|
|
@@ -374,7 +374,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
374
374
|
// The server's public monitor pricing sends `display`.
|
|
375
375
|
cost: stringField(pricing, "display", "displayText") || void 0,
|
|
376
376
|
guidance: [],
|
|
377
|
-
inputs:
|
|
377
|
+
inputs: _chunkIXYVHTRZjs.schemaFields.call(void 0,
|
|
378
378
|
recordField(tool, "payload_schema", "payloadSchema")
|
|
379
379
|
),
|
|
380
380
|
outputs: [],
|
|
@@ -411,7 +411,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
411
411
|
(path) => path.replace(/^toolResponse\.raw\./, "")
|
|
412
412
|
);
|
|
413
413
|
const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
|
|
414
|
-
const { fields, ...typed } =
|
|
414
|
+
const { fields, ...typed } = _chunkIXYVHTRZjs.schemaField.call(void 0, name, node, true);
|
|
415
415
|
const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
|
|
416
416
|
const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
|
|
417
417
|
const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
|
|
@@ -468,8 +468,9 @@ function describedTool(tool, requestedToolId) {
|
|
|
468
468
|
description,
|
|
469
469
|
cost: [
|
|
470
470
|
stringField(cost, "displayText"),
|
|
471
|
-
// "Free (free)" says the same thing twice
|
|
472
|
-
|
|
471
|
+
// "Free (free)" says the same thing twice, as does "Uses your provided
|
|
472
|
+
// key. No Deepline charge. (your key)".
|
|
473
|
+
stringField(cost, "billingSource") === "own_provider_credentials" || billing.toLowerCase() === stringField(cost, "displayText").toLowerCase() || billing === "your key" ? "" : billing && `(${billing})`,
|
|
473
474
|
observedMaxText(cost) && `\u2014 ${observedMaxText(cost)}`
|
|
474
475
|
].filter(Boolean).join(" ") || void 0,
|
|
475
476
|
guidance: [
|
|
@@ -480,7 +481,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
480
481
|
],
|
|
481
482
|
rateLimit: withPlanRateLimit(
|
|
482
483
|
recordField(recordField(tool, "pricing"), "benefit").requestsPerMinute,
|
|
483
|
-
|
|
484
|
+
_chunkIXYVHTRZjs.rateLimitSummary.call(void 0,
|
|
484
485
|
recordField(contract, "executionMetadata").configuredRateLimits
|
|
485
486
|
)
|
|
486
487
|
),
|
|
@@ -490,9 +491,9 @@ function describedTool(tool, requestedToolId) {
|
|
|
490
491
|
...connectCommand && !_optionalChain([tool, 'access', _5 => _5.auth, 'optionalAccess', _6 => _6.connectionRequired]) ? { connectCommand } : {},
|
|
491
492
|
...tool.auth ? { auth: tool.auth } : {},
|
|
492
493
|
...tool.toolUsage ? { toolUsage: tool.toolUsage } : {},
|
|
493
|
-
inputs:
|
|
494
|
+
inputs: _chunkIXYVHTRZjs.schemaFields.call(void 0, inputSchema),
|
|
494
495
|
outputs: [...lists, ...values].map(({ field }) => field),
|
|
495
|
-
rawResponse:
|
|
496
|
+
rawResponse: _chunkIXYVHTRZjs.schemaFields.call(void 0, outputSchema),
|
|
496
497
|
runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
|
|
497
498
|
};
|
|
498
499
|
}
|
|
@@ -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.574",
|
|
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."
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkCSPHSNBWjs = require('./chunk-CSPHSNBW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkVYSUJMB5js = require('./chunk-VYSUJMB5.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 _chunkVLUBEMWMjs = require('./chunk-VLUBEMWM.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 = _chunkVLUBEMWMjs.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 ? _chunkVLUBEMWMjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkVLUBEMWMjs.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 = _chunkVYSUJMB5js.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 : _chunkVYSUJMB5js.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 : _chunkVLUBEMWMjs.parseJsonFields.call(void 0,
|
|
1008
|
+
[...fullJson ? ["--full"] : [], ..._chunkVLUBEMWMjs.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 || _chunkVLUBEMWMjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
1014
1014
|
const verboseLogs = Boolean(
|
|
1015
1015
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
1016
1016
|
);
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatModelDescription,
|
|
4
4
|
publicToolSchemas,
|
|
5
5
|
toolMetadataJsonForDescribe
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Q3A53SWK.mjs";
|
|
7
7
|
import {
|
|
8
8
|
buildPlayDashboardUrl,
|
|
9
9
|
byokLines,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
examples,
|
|
14
14
|
schemaLines,
|
|
15
15
|
topLevelField
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-L2NXB4WG.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DeeplineError
|
|
19
19
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -208,7 +208,11 @@ async function describeName(name, options, lookups) {
|
|
|
208
208
|
const note = shadows ? `Showing your org play "${name}". It has the same name as a Deepline ${shadows.kind.replace("_", " ")}; see that one with: ${shadows.describeCommand}` : null;
|
|
209
209
|
const verbose = options.verbose === true;
|
|
210
210
|
const isPlay = described.kind === "prebuilt_play" || described.kind === "custom_play";
|
|
211
|
-
const dashboardUrl = isPlay ? buildPlayDashboardUrl(
|
|
211
|
+
const dashboardUrl = isPlay ? buildPlayDashboardUrl(
|
|
212
|
+
lookups.baseUrl,
|
|
213
|
+
described.id,
|
|
214
|
+
lookups.dashboardOrgId
|
|
215
|
+
) : null;
|
|
212
216
|
if (options.webUrl) {
|
|
213
217
|
if (!dashboardUrl) {
|
|
214
218
|
return {
|
package/dist/cli/command-docs.js
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('./chunk-
|
|
10
|
+
var _chunkKSHZY52Ojs = require('./chunk-KSHZY52O.js');
|
|
11
|
+
require('./chunk-TJCENACZ.js');
|
|
12
12
|
require('./chunk-E2G2DNAB.js');
|
|
13
13
|
require('./chunk-YGCKMI5P.js');
|
|
14
14
|
require('./chunk-COGTRVWW.js');
|
|
@@ -21,4 +21,4 @@ require('./chunk-COGTRVWW.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
exports.CLI_DOC_SURFACE =
|
|
24
|
+
exports.CLI_DOC_SURFACE = _chunkKSHZY52Ojs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunkKSHZY52Ojs.COMMAND_DOCS; exports.PLAY_RUNTIME_PRICING_NOTE = _chunkKSHZY52Ojs.PLAY_RUNTIME_PRICING_NOTE; exports.commandDocKey = _chunkKSHZY52Ojs.commandDocKey; exports.helpDetailFromArgv = _chunkKSHZY52Ojs.helpDetailFromArgv; exports.renderActionExplanation = _chunkKSHZY52Ojs.renderActionExplanation; exports.renderCommandExplanation = _chunkKSHZY52Ojs.renderCommandExplanation; exports.renderDocText = _chunkKSHZY52Ojs.renderDocText;
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
renderActionExplanation,
|
|
8
8
|
renderCommandExplanation,
|
|
9
9
|
renderDocText
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-JCO226JM.mjs";
|
|
11
|
+
import "./chunk-HECXJBED.mjs";
|
|
12
12
|
import "./chunk-LRZGS6RZ.mjs";
|
|
13
13
|
import "./chunk-7I4B6V2S.mjs";
|
|
14
14
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkDOZIWA66js = require('./chunk-DOZIWA66.js');
|
|
6
|
+
require('./chunk-UXIUAIL2.js');
|
|
7
|
+
require('./chunk-TJCENACZ.js');
|
|
8
|
+
require('./chunk-VLUBEMWM.js');
|
|
9
|
+
require('./chunk-2QYU57RG.js');
|
|
10
|
+
require('./chunk-IB225ZK4.js');
|
|
11
|
+
require('./chunk-6VLFQZK6.js');
|
|
12
|
+
require('./chunk-XNYIZMNQ.js');
|
|
13
|
+
require('./chunk-LFQJW4S2.js');
|
|
14
|
+
require('./chunk-CFJFUVX2.js');
|
|
15
|
+
require('./chunk-7UR57HPJ.js');
|
|
16
|
+
require('./chunk-OG64RBAC.js');
|
|
17
|
+
require('./chunk-COGTRVWW.js');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.CONCURRENT_RUNS_HELP_COMMANDS = _chunkDOZIWA66js.CONCURRENT_RUNS_HELP_COMMANDS; exports.concurrentRunsHelpStatus = _chunkDOZIWA66js.concurrentRunsHelpStatus; exports.concurrentRunsLine = _chunkDOZIWA66js.concurrentRunsLine;
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
CONCURRENT_RUNS_HELP_COMMANDS,
|
|
3
3
|
concurrentRunsHelpStatus,
|
|
4
4
|
concurrentRunsLine
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-B2XLIQPH.mjs";
|
|
6
|
+
import "./chunk-PW6NKI2A.mjs";
|
|
7
|
+
import "./chunk-HECXJBED.mjs";
|
|
8
|
+
import "./chunk-2TMAKJBT.mjs";
|
|
9
|
+
import "./chunk-SRUNYWQ2.mjs";
|
|
10
|
+
import "./chunk-ZFXDD7VM.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-XVBEEGI4.mjs";
|
|
16
16
|
import "./chunk-WZYKRD7T.mjs";
|
|
17
17
|
import "./chunk-KRD6H754.mjs";
|
|
18
18
|
export {
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
7
|
+
var _chunkVLUBEMWMjs = require('./chunk-VLUBEMWM.js');
|
|
8
|
+
require('./chunk-2QYU57RG.js');
|
|
9
|
+
require('./chunk-IB225ZK4.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-7UR57HPJ.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 : _chunkVLUBEMWMjs.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 : _chunkVLUBEMWMjs.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 = _chunkVLUBEMWMjs.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
|
+
_chunkVLUBEMWMjs.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(_chunkVLUBEMWMjs.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
|
+
_chunkVLUBEMWMjs.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
|
+
${_chunkVLUBEMWMjs.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
|
+
_chunkVLUBEMWMjs.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
|
+
_chunkVLUBEMWMjs.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"));
|
|
@@ -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-2TMAKJBT.mjs";
|
|
8
|
+
import "./chunk-SRUNYWQ2.mjs";
|
|
9
|
+
import "./chunk-ZFXDD7VM.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-XVBEEGI4.mjs";
|
|
15
15
|
import "./chunk-WZYKRD7T.mjs";
|
|
16
16
|
import "./chunk-KRD6H754.mjs";
|
|
17
17
|
|