deepline 0.3.553 → 0.3.554
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/cli/{auth-I3QAU4RV.mjs → auth-HJUNW7T2.mjs} +5 -5
- package/dist/cli/auth-SP6SKZJZ.js +44 -0
- package/dist/cli/{billing-YGFFVAIC.js → billing-4TSA5HEC.js} +102 -102
- package/dist/cli/{billing-3IC54OQQ.mjs → billing-SJYRJAQ2.mjs} +9 -9
- package/dist/cli/{chunk-2B5B5KAW.js → chunk-2HMN5H54.js} +53 -50
- package/dist/cli/{chunk-72V4PDH5.mjs → chunk-2ORPFQUA.mjs} +3 -3
- package/dist/cli/{chunk-BVDKFS2T.js → chunk-2OVHNHCF.js} +2 -2
- package/dist/cli/{chunk-Z7AOIHFE.mjs → chunk-33WRQSQ2.mjs} +4 -0
- package/dist/cli/{chunk-HVI55MTK.js → chunk-3IKGZ4CG.js} +20 -10
- package/dist/cli/{chunk-INEMTYMT.mjs → chunk-3Z4VFCXO.mjs} +7 -7
- package/dist/cli/{chunk-HEBO3XNZ.js → chunk-4DOFGIEJ.js} +12 -12
- package/dist/cli/{chunk-LFOERUQY.mjs → chunk-52Q5KETX.mjs} +1 -1
- package/dist/cli/{chunk-AGLR6QVN.js → chunk-5CYZHOKI.js} +4 -4
- package/dist/cli/{chunk-HSJ6X2AQ.mjs → chunk-62AUAWQV.mjs} +4 -4
- package/dist/cli/{chunk-NDNHYONK.mjs → chunk-62HWJXST.mjs} +2 -2
- package/dist/cli/{chunk-QI5S5HWB.mjs → chunk-6EXOAT6T.mjs} +2 -2
- package/dist/cli/{chunk-Y6SP3JMI.js → chunk-7OWI736E.js} +30 -30
- package/dist/cli/{chunk-DZA7RFGL.mjs → chunk-B6HO2XWH.mjs} +13 -13
- package/dist/cli/{chunk-A7DLBE5K.mjs → chunk-BOZAP2EM.mjs} +10 -7
- package/dist/cli/chunk-BVXIGOBZ.js +32 -0
- package/dist/cli/{chunk-QG6JIWUL.mjs → chunk-D6Z6POKE.mjs} +5 -5
- package/dist/cli/{chunk-4BFTDNHU.mjs → chunk-DSKSFFK2.mjs} +1 -1
- package/dist/cli/{chunk-JLGP5XAJ.js → chunk-DUBXUAAO.js} +5 -5
- package/dist/cli/{chunk-IMX7J4DU.js → chunk-E74KGKFZ.js} +5 -5
- package/dist/cli/{chunk-YUA6HA6D.js → chunk-ECHKAC7M.js} +2 -2
- package/dist/cli/{chunk-IH6GDNKW.js → chunk-EN5NHCCQ.js} +17 -17
- package/dist/cli/{chunk-CAEBJOYU.mjs → chunk-F7CMRKSK.mjs} +1 -1
- package/dist/cli/{chunk-SBH4CKPN.js → chunk-FBAFX43W.js} +10 -10
- package/dist/cli/{chunk-GAVZ4EOD.mjs → chunk-FXQ3JKE3.mjs} +1 -1
- package/dist/cli/{chunk-55F6HNOY.mjs → chunk-GA2M3G3Y.mjs} +4 -4
- package/dist/cli/{chunk-Q6Z6N3A7.js → chunk-GHT2NDL7.js} +9 -9
- package/dist/cli/{chunk-WOCHZCUJ.js → chunk-GRZENGNE.js} +2 -2
- package/dist/cli/{chunk-7O6J6A7P.js → chunk-IVZKMJUK.js} +4 -0
- package/dist/cli/{chunk-SG3LUONJ.mjs → chunk-KVBQY4ST.mjs} +2 -2
- package/dist/cli/{chunk-AGIQDA2T.mjs → chunk-KZHBDMGF.mjs} +2 -2
- package/dist/cli/{chunk-TFEXSHPM.js → chunk-LY5MMXFF.js} +28 -14
- package/dist/cli/{chunk-RTV4RF7N.js → chunk-M7STM3MZ.js} +26 -26
- package/dist/cli/{chunk-7GEMELKI.js → chunk-OPTV7D2V.js} +431 -330
- package/dist/cli/{chunk-CACFJODG.js → chunk-OVEYWO4H.js} +8 -8
- package/dist/cli/{chunk-4HYNMXXF.mjs → chunk-PC2FTUCP.mjs} +2 -2
- package/dist/cli/{chunk-4747TPLV.js → chunk-PQQMPUCZ.js} +3 -3
- package/dist/cli/{chunk-45OAVGU6.mjs → chunk-Q7ACILL2.mjs} +2 -2
- package/dist/cli/{chunk-RMNOZKRI.mjs → chunk-RBBTCYQB.mjs} +3 -3
- package/dist/cli/{chunk-7YRJ5UC4.js → chunk-RTHMGSZX.js} +20 -20
- package/dist/cli/{chunk-OTV2UUKW.mjs → chunk-S6W6SJ6E.mjs} +1 -1
- package/dist/cli/chunk-STXDSVQZ.mjs +32 -0
- package/dist/cli/{chunk-UEVKMZLR.mjs → chunk-TGUQET3O.mjs} +14 -4
- package/dist/cli/{chunk-74RES4DS.js → chunk-TJ6HLN56.js} +5 -5
- package/dist/cli/{chunk-IUOGII7D.js → chunk-TOO3YM5N.js} +6 -6
- package/dist/cli/{chunk-UVQJYV76.mjs → chunk-UBBYHB2B.mjs} +2 -2
- package/dist/cli/{chunk-AGICYWGN.mjs → chunk-UC4BDZKI.mjs} +2 -2
- package/dist/cli/{chunk-6NE3RRRY.js → chunk-UNNOZKRT.js} +1 -1
- package/dist/cli/{chunk-FM7LPUPA.js → chunk-UOT7HPBH.js} +41 -41
- package/dist/cli/{chunk-DP2VH7CO.js → chunk-UYCZFQYQ.js} +11 -11
- package/dist/cli/{chunk-MLABYI4M.js → chunk-VIUUTEHY.js} +3 -3
- package/dist/cli/{chunk-LH5PZKER.mjs → chunk-VLO5NFH2.mjs} +1 -1
- package/dist/cli/{chunk-JJGWHITQ.mjs → chunk-VQ75KX7G.mjs} +2 -2
- package/dist/cli/{chunk-3NTP2OSG.js → chunk-VV4XGZ24.js} +13 -13
- package/dist/cli/{chunk-LRDHPOZW.js → chunk-W6CZDTIR.js} +53 -53
- package/dist/cli/{chunk-7SERLBNR.js → chunk-WL7P32PI.js} +20 -20
- package/dist/cli/{chunk-4SMCFQ23.mjs → chunk-XD3MFTHA.mjs} +1 -1
- package/dist/cli/{chunk-E7WZOX2A.mjs → chunk-XFZX6FNM.mjs} +20 -6
- package/dist/cli/{chunk-DP64MD6U.mjs → chunk-XU6QNM4D.mjs} +1 -1
- package/dist/cli/{chunk-TN4TY6TT.mjs → chunk-YCOGPOUX.mjs} +2 -2
- package/dist/cli/{chunk-XLIHTJVM.js → chunk-YQKCH4R7.js} +20 -20
- package/dist/cli/{chunk-Z6XPSHKM.mjs → chunk-YY55NYAH.mjs} +133 -32
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-DNV2X5AZ.mjs → concurrent-runs-help-O3Q5IPLF.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-ZFRZWX5V.js +22 -0
- package/dist/cli/{csv-SA6ELJY6.js → csv-4ZQ2RATI.js} +13 -13
- package/dist/cli/{csv-ZXZGHWOM.mjs → csv-Y3BFPEM6.mjs} +4 -4
- package/dist/cli/{db-A54SP6AD.mjs → db-3JYY4JNN.mjs} +7 -7
- package/dist/cli/{db-JHFEIQBU.js → db-VEIFS4M7.js} +29 -29
- package/dist/cli/describe-EVJ4MFVU.mjs +50 -0
- package/dist/cli/describe-FG625QPF.js +50 -0
- package/dist/cli/describe-core.js +5 -5
- package/dist/cli/describe-core.mjs +4 -4
- package/dist/cli/{executions-TLFZRHBJ.js → executions-HPZXOOVX.js} +8 -8
- package/dist/cli/{executions-HL2M2DFU.mjs → executions-PCXZKEHM.mjs} +6 -6
- package/dist/cli/{feedback-QMBTNXVG.mjs → feedback-Y6VKZNY6.mjs} +6 -6
- package/dist/cli/{feedback-5UEX5UZK.js → feedback-ZKFHFVL6.js} +14 -14
- package/dist/cli/git-RUBMALLH.js +26 -0
- package/dist/cli/{git-LKGXVIVC.mjs → git-UMPR2QYC.mjs} +5 -5
- package/dist/cli/index.js +147 -147
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/{integrations-6RUTLMN7.js → integrations-3GQCTRTF.js} +15 -15
- package/dist/cli/{integrations-FGGRVUJ7.mjs → integrations-V3TM6XAB.mjs} +7 -7
- package/dist/cli/{legacy-noops-YIPRMVXZ.mjs → legacy-noops-JZBUD7ZE.mjs} +6 -6
- package/dist/cli/{legacy-noops-J3Z7QRWZ.js → legacy-noops-VYCO7NGW.js} +9 -9
- package/dist/cli/{mcp-6LWFP7RW.js → mcp-4OIWTCE6.js} +24 -24
- package/dist/cli/{mcp-CHDYFO7F.mjs → mcp-PH4KZ76P.mjs} +4 -4
- package/dist/cli/{monitors-STM6A7OU.js → monitors-E2A6VPBY.js} +100 -100
- package/dist/cli/{monitors-UGRY2BXI.mjs → monitors-SSMGIDGX.mjs} +7 -7
- package/dist/cli/{org-3SYOUQCX.mjs → org-SFDKSK5D.mjs} +6 -6
- package/dist/cli/{org-ZOBSNSIB.js → org-WUDZGWBT.js} +121 -121
- package/dist/cli/{outcomes-Z3P2JE67.mjs → outcomes-QT7LQBPK.mjs} +6 -6
- package/dist/cli/{outcomes-H4YYAT5X.js → outcomes-Y7SZTLSL.js} +14 -14
- package/dist/cli/{play-SN5YWLS7.mjs → play-EK7KSFPL.mjs} +21 -21
- package/dist/cli/{play-SM4CW2GS.js → play-GDNHCRRR.js} +372 -372
- package/dist/cli/{providers-WZ4YBR5Y.mjs → providers-FVZLRXAU.mjs} +6 -6
- package/dist/cli/{providers-WZARYMCF.js → providers-ZKOSECLV.js} +9 -9
- package/dist/cli/{quickstart-PS4YHQJ6.js → quickstart-KSDKIXYD.js} +6 -6
- package/dist/cli/{quickstart-2575BNKA.mjs → quickstart-UJZ6PIQV.mjs} +4 -4
- package/dist/cli/{run-ZUHCZOJS.mjs → run-E7MZ7P35.mjs} +30 -28
- package/dist/cli/{run-FLZ6OTM7.js → run-PD2BBG6S.js} +51 -49
- package/dist/cli/search-TKSPTPHA.js +32 -0
- package/dist/cli/{search-HLPPKQEO.mjs → search-VTFUFTOY.mjs} +7 -7
- package/dist/cli/{search-output-RXJLU36B.js → search-output-G2AGDCOY.js} +9 -9
- package/dist/cli/{search-output-PDAXNOGP.mjs → search-output-PFVXQCWA.mjs} +6 -6
- package/dist/cli/{secrets-CGELYQ3H.mjs → secrets-7CIMEMX7.mjs} +6 -6
- package/dist/cli/{secrets-QJNG7G2Y.js → secrets-BCOQ4U7U.js} +15 -15
- package/dist/cli/sessions-4CO556VD.js +23 -0
- package/dist/cli/{sessions-ELMWVR4M.mjs → sessions-IUCQZEF7.mjs} +6 -6
- package/dist/cli/{settings-RR3LZXL7.mjs → settings-KZN62UQK.mjs} +12 -12
- package/dist/cli/{settings-44I44P5F.js → settings-REL4736M.js} +85 -85
- package/dist/cli/{setup-KGWRWH4B.mjs → setup-2P7OG3OU.mjs} +11 -14
- package/dist/cli/{setup-KTEYOCJO.js → setup-2XIVBBCS.js} +51 -54
- package/dist/cli/skills-JYT5DEY6.js +37 -0
- package/dist/cli/{skills-FPRID2I5.mjs → skills-VIGNDJKI.mjs} +7 -7
- package/dist/cli/tools-NTVUQ2TG.js +57 -0
- package/dist/cli/{tools-PI4WMDLY.mjs → tools-W3QT5EJY.mjs} +20 -20
- package/dist/cli/{update-VJOJAZ7B.mjs → update-GZVBVMY3.mjs} +9 -9
- package/dist/cli/update-TWJZPUZM.js +37 -0
- package/dist/cli/{views-OVPSINZO.mjs → views-BOGEH424.mjs} +6 -6
- package/dist/cli/{views-NTUOLNQU.js → views-TOLJNLSV.js} +21 -21
- package/dist/cli/{workflow-2UDYDM6F.js → workflow-ENWFRK5M.js} +17 -17
- package/dist/cli/{workflow-7OEFNXZC.mjs → workflow-VDG2FDQV.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +122 -122
- 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-MQCN7WGZ.js +0 -44
- package/dist/cli/chunk-AID3OYVJ.js +0 -8
- package/dist/cli/chunk-OVDNJAJN.mjs +0 -8
- package/dist/cli/concurrent-runs-help-CFJH4KXV.js +0 -22
- package/dist/cli/describe-PHQ33AGS.mjs +0 -50
- package/dist/cli/describe-RHJ4XRFI.js +0 -50
- package/dist/cli/git-4JWOOHBG.js +0 -26
- package/dist/cli/search-JJWVHR3N.js +0 -32
- package/dist/cli/sessions-DHTBT2GN.js +0 -23
- package/dist/cli/skills-EPZPEXI2.js +0 -37
- package/dist/cli/tools-IGQQ5TML.js +0 -57
- package/dist/cli/update-4RNCVYGE.js +0 -37
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkVIUUTEHYjs = require('./chunk-VIUUTEHY.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk5CYZHOKIjs = require('./chunk-5CYZHOKI.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: _chunk5CYZHOKIjs.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 = _chunk5CYZHOKIjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
356
356
|
return {
|
|
357
|
-
...
|
|
357
|
+
..._chunk5CYZHOKIjs.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/${_chunk5CYZHOKIjs.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": _chunk5CYZHOKIjs.detectAgentRuntime.call(void 0, ),
|
|
365
|
+
"X-Deepline-CLI-Version": _chunk5CYZHOKIjs.SDK_VERSION,
|
|
366
|
+
"X-Deepline-SDK-Version": _chunk5CYZHOKIjs.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 = _chunkVIUUTEHYjs.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: _chunk5CYZHOKIjs.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: _chunk5CYZHOKIjs.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 = _chunkVIUUTEHYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
562
|
+
const apiKey = _chunkVIUUTEHYjs.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 = _chunkVIUUTEHYjs.resolveConfig.call(void 0, );
|
|
918
|
+
return { config, http: new (0, _chunkVIUUTEHYjs.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: _chunk5CYZHOKIjs.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 _chunk5CYZHOKIjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
1507
1507
|
...valueRecord,
|
|
1508
|
-
command_context:
|
|
1508
|
+
command_context: _chunkVIUUTEHYjs.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, _chunk5CYZHOKIjs.readToolFailureHint.call(void 0, error));
|
|
1681
1681
|
return {
|
|
1682
1682
|
ok: false,
|
|
1683
1683
|
status: "failed",
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KVBQY4ST.mjs";
|
|
6
6
|
import {
|
|
7
7
|
registerIntegrationBalanceCommand,
|
|
8
8
|
registerIntegrationConnectCommand,
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
registerLegacyHubSpotMembersCommand,
|
|
12
12
|
registerLegacyWorkspaceConnectionCommand,
|
|
13
13
|
registerWorkspaceConnectionListCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-62HWJXST.mjs";
|
|
15
15
|
import {
|
|
16
16
|
recentSearchRef,
|
|
17
17
|
registerDeprecatedSearchCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GA2M3G3Y.mjs";
|
|
19
19
|
import {
|
|
20
20
|
Capability,
|
|
21
21
|
arrayField,
|
|
@@ -37,13 +37,14 @@ import {
|
|
|
37
37
|
toolInputFieldsForDisplay,
|
|
38
38
|
toolMetadataJsonForDescribe,
|
|
39
39
|
toolOutputFieldsForDisplay
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-TGUQET3O.mjs";
|
|
41
41
|
import {
|
|
42
42
|
rateLimitQualifier
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-XFZX6FNM.mjs";
|
|
44
44
|
import {
|
|
45
|
+
shellArgument,
|
|
45
46
|
shellQuote
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-STXDSVQZ.mjs";
|
|
47
48
|
import {
|
|
48
49
|
playToolListGetterMode
|
|
49
50
|
} from "./chunk-FR2ILQ4G.mjs";
|
|
@@ -56,29 +57,29 @@ import {
|
|
|
56
57
|
} from "./chunk-FIVKWNMT.mjs";
|
|
57
58
|
import {
|
|
58
59
|
DeeplineClient
|
|
59
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-6EXOAT6T.mjs";
|
|
60
61
|
import {
|
|
61
62
|
validateExecutionIdempotencyKey
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-VLO5NFH2.mjs";
|
|
63
64
|
import {
|
|
64
65
|
beginToolExecuteCommand,
|
|
65
66
|
getToolExecuteInvocationId,
|
|
66
67
|
maybeAutoUpdateAndRelaunch,
|
|
67
68
|
registerCompatibilityCatalog,
|
|
68
69
|
runToolExecuteStage
|
|
69
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-B6HO2XWH.mjs";
|
|
70
71
|
import {
|
|
71
72
|
isCliTraceEnabled,
|
|
72
73
|
recordCliTrace,
|
|
73
74
|
resolveCliMaintenancePolicy
|
|
74
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-F7CMRKSK.mjs";
|
|
75
76
|
import {
|
|
76
77
|
checkSdkCompatibility,
|
|
77
78
|
enforceSdkCompatibilityResponse,
|
|
78
79
|
flushDeferredSkillsSyncNotices,
|
|
79
80
|
requireSdkCompatibility,
|
|
80
81
|
syncSdkSkillsIfNeeded
|
|
81
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-BOZAP2EM.mjs";
|
|
82
83
|
import {
|
|
83
84
|
errorToJsonPayload,
|
|
84
85
|
printCommandEnvelope,
|
|
@@ -87,12 +88,12 @@ import {
|
|
|
87
88
|
printJsonError,
|
|
88
89
|
renderCommandEnvelopeText,
|
|
89
90
|
shouldEmitJson
|
|
90
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-UC4BDZKI.mjs";
|
|
91
92
|
import {
|
|
92
93
|
readSdkSkillsLocalVersion,
|
|
93
94
|
resolveConfig,
|
|
94
95
|
sdkCliStateDirPath
|
|
95
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-52Q5KETX.mjs";
|
|
96
97
|
import {
|
|
97
98
|
DeeplineError
|
|
98
99
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -349,6 +350,81 @@ function toolConnectionStatusMessage(input) {
|
|
|
349
350
|
return null;
|
|
350
351
|
}
|
|
351
352
|
|
|
353
|
+
// src/cli/tool-param-flags.ts
|
|
354
|
+
var NUMBER_TEXT = /^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;
|
|
355
|
+
function couldBeTyped(value) {
|
|
356
|
+
return value === "true" || value === "false" || NUMBER_TEXT.test(value);
|
|
357
|
+
}
|
|
358
|
+
function parseParamFlags(entries) {
|
|
359
|
+
const params = {};
|
|
360
|
+
for (const entry of entries) {
|
|
361
|
+
const eqIdx = entry.indexOf("=");
|
|
362
|
+
if (eqIdx <= 0) {
|
|
363
|
+
throw new Error(
|
|
364
|
+
`--param ${JSON.stringify(entry)} must be key=value, for example -p email=a@b.com. Use --input for a JSON object.`
|
|
365
|
+
);
|
|
366
|
+
}
|
|
367
|
+
params[entry.slice(0, eqIdx)] = entry.slice(eqIdx + 1);
|
|
368
|
+
}
|
|
369
|
+
return {
|
|
370
|
+
params,
|
|
371
|
+
typedCandidates: Object.entries(params).filter(([, value]) => couldBeTyped(value)).map(([key]) => key)
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
function isRecord2(value) {
|
|
375
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
376
|
+
}
|
|
377
|
+
function declaredTypes(schema, types = /* @__PURE__ */ new Set()) {
|
|
378
|
+
if (!isRecord2(schema)) return types;
|
|
379
|
+
const { type } = schema;
|
|
380
|
+
if (typeof type === "string") types.add(type);
|
|
381
|
+
if (Array.isArray(type)) {
|
|
382
|
+
for (const entry of type) if (typeof entry === "string") types.add(entry);
|
|
383
|
+
}
|
|
384
|
+
for (const key of ["anyOf", "oneOf", "allOf"]) {
|
|
385
|
+
const variants = schema[key];
|
|
386
|
+
if (Array.isArray(variants)) {
|
|
387
|
+
for (const variant of variants) declaredTypes(variant, types);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
const values = [
|
|
391
|
+
...Array.isArray(schema.enum) ? schema.enum : [],
|
|
392
|
+
..."const" in schema ? [schema.const] : []
|
|
393
|
+
];
|
|
394
|
+
for (const value of values) {
|
|
395
|
+
if (typeof value === "string") types.add("string");
|
|
396
|
+
if (typeof value === "boolean") types.add("boolean");
|
|
397
|
+
if (typeof value === "number") types.add("number");
|
|
398
|
+
}
|
|
399
|
+
return types;
|
|
400
|
+
}
|
|
401
|
+
function typedParamValue(inputSchema, key, text) {
|
|
402
|
+
const wrapped = inputSchema?.jsonSchema;
|
|
403
|
+
const root = isRecord2(wrapped) ? wrapped : inputSchema;
|
|
404
|
+
const properties = root?.properties;
|
|
405
|
+
if (!isRecord2(properties)) return text;
|
|
406
|
+
const types = declaredTypes(properties[key]);
|
|
407
|
+
if (types.size === 0 || types.has("string")) return text;
|
|
408
|
+
if (types.has("boolean") && (text === "true" || text === "false")) {
|
|
409
|
+
return text === "true";
|
|
410
|
+
}
|
|
411
|
+
if (NUMBER_TEXT.test(text)) {
|
|
412
|
+
const number = Number(text);
|
|
413
|
+
if (!Number.isFinite(number)) return text;
|
|
414
|
+
if (types.has("number")) return number;
|
|
415
|
+
if (types.has("integer") && Number.isInteger(number)) return number;
|
|
416
|
+
}
|
|
417
|
+
return text;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
// src/cli/json-file-text.ts
|
|
421
|
+
function jsonFileText(bytes) {
|
|
422
|
+
if (bytes[0] === 255 && bytes[1] === 254) {
|
|
423
|
+
return new TextDecoder("utf-16le").decode(bytes.subarray(2));
|
|
424
|
+
}
|
|
425
|
+
return new TextDecoder("utf-8").decode(bytes).replace(/^/, "");
|
|
426
|
+
}
|
|
427
|
+
|
|
352
428
|
// src/cli/commands/tools.ts
|
|
353
429
|
var TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS = 750;
|
|
354
430
|
var TOOL_COMMAND_TEMPLATES = {
|
|
@@ -380,9 +456,6 @@ function parseGrepTerms(query, mode) {
|
|
|
380
456
|
const matches = trimmed.match(/"([^"]+)"|'([^']+)'|\S+/g) ?? [];
|
|
381
457
|
return matches.map((term) => term.replace(/^["']|["']$/g, "").trim()).filter(Boolean);
|
|
382
458
|
}
|
|
383
|
-
function shellCommandArg(value) {
|
|
384
|
-
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
385
|
-
}
|
|
386
459
|
function zeroMatchToolGuidance(options) {
|
|
387
460
|
const categories = options.categories ?? [];
|
|
388
461
|
const query = options.query?.trim() ?? "";
|
|
@@ -395,12 +468,12 @@ function zeroMatchToolGuidance(options) {
|
|
|
395
468
|
...query ? [
|
|
396
469
|
{
|
|
397
470
|
label: "Use ranked semantic search for intent-style queries",
|
|
398
|
-
command: `deepline search -- ${
|
|
471
|
+
command: `deepline search -- ${shellArgument(query)}`
|
|
399
472
|
},
|
|
400
473
|
...options.mode === "all" ? [
|
|
401
474
|
{
|
|
402
475
|
label: "Relax grep from AND to OR matching",
|
|
403
|
-
command: `deepline tools grep --mode any -- ${
|
|
476
|
+
command: `deepline tools grep --mode any -- ${shellArgument(query)}`
|
|
404
477
|
}
|
|
405
478
|
] : []
|
|
406
479
|
] : [],
|
|
@@ -979,7 +1052,7 @@ Examples:
|
|
|
979
1052
|
process.exitCode = await narrowView();
|
|
980
1053
|
return;
|
|
981
1054
|
}
|
|
982
|
-
const { describeAnything } = await import("./describe-
|
|
1055
|
+
const { describeAnything } = await import("./describe-EVJ4MFVU.mjs");
|
|
983
1056
|
process.exitCode = await describeAnything(
|
|
984
1057
|
toolId,
|
|
985
1058
|
{
|
|
@@ -2034,10 +2107,7 @@ function readJsonArgument(raw, flagName) {
|
|
|
2034
2107
|
throw new Error(`Invalid ${flagName} value: empty @file path.`);
|
|
2035
2108
|
}
|
|
2036
2109
|
try {
|
|
2037
|
-
return readFileSync2(resolveAtFilePath(filePath)
|
|
2038
|
-
/^\uFEFF/,
|
|
2039
|
-
""
|
|
2040
|
-
);
|
|
2110
|
+
return jsonFileText(readFileSync2(resolveAtFilePath(filePath)));
|
|
2041
2111
|
} catch (error) {
|
|
2042
2112
|
const message = error instanceof Error ? error.message : String(error);
|
|
2043
2113
|
throw new Error(
|
|
@@ -2081,28 +2151,32 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2081
2151
|
`Usage: deepline tools execute <toolId> [--param key=value ...] [--input '{"k":"v"}'] [--timeout <duration>] [--recover | --idempotency-key <key>] [--recovery-timeout-ms <ms>] [--out rows.csv] [--output-format auto|csv|csv_file|json|json_file] [--no-preview]`
|
|
2082
2152
|
);
|
|
2083
2153
|
}
|
|
2084
|
-
const
|
|
2154
|
+
const paramFlags = parseParamFlags(options.param ?? []);
|
|
2155
|
+
const jsonParams = {};
|
|
2085
2156
|
let outputFormat = output.requested ? "json" : "auto";
|
|
2086
2157
|
let recoveryTimeoutMs;
|
|
2087
|
-
for (const kv of options.param ?? []) {
|
|
2088
|
-
const eqIdx = kv.indexOf("=");
|
|
2089
|
-
if (eqIdx > 0) params[kv.slice(0, eqIdx)] = kv.slice(eqIdx + 1);
|
|
2090
|
-
}
|
|
2091
2158
|
if (output.legacyInput !== void 0) {
|
|
2092
2159
|
Object.assign(
|
|
2093
|
-
|
|
2160
|
+
jsonParams,
|
|
2094
2161
|
parseJsonObjectArgument(output.legacyInput, "--json")
|
|
2095
2162
|
);
|
|
2096
2163
|
}
|
|
2097
2164
|
if (options.input !== void 0) {
|
|
2098
|
-
Object.assign(
|
|
2165
|
+
Object.assign(
|
|
2166
|
+
jsonParams,
|
|
2167
|
+
parseJsonObjectArgument(options.input, "--input")
|
|
2168
|
+
);
|
|
2099
2169
|
}
|
|
2100
2170
|
if (options.payload !== void 0) {
|
|
2101
2171
|
Object.assign(
|
|
2102
|
-
|
|
2172
|
+
jsonParams,
|
|
2103
2173
|
parseJsonObjectArgument(options.payload, "--payload")
|
|
2104
2174
|
);
|
|
2105
2175
|
}
|
|
2176
|
+
const params = {
|
|
2177
|
+
...paramFlags.params,
|
|
2178
|
+
...jsonParams
|
|
2179
|
+
};
|
|
2106
2180
|
if (options.outputFormat !== void 0) {
|
|
2107
2181
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2108
2182
|
}
|
|
@@ -2124,6 +2198,10 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2124
2198
|
return {
|
|
2125
2199
|
toolId,
|
|
2126
2200
|
params,
|
|
2201
|
+
// -p values a JSON flag did not replace, which may need a typed value.
|
|
2202
|
+
typedParamCandidates: paramFlags.typedCandidates.filter(
|
|
2203
|
+
(key) => !Object.hasOwn(jsonParams, key)
|
|
2204
|
+
),
|
|
2127
2205
|
outputFormat,
|
|
2128
2206
|
noPreview: options.preview === false,
|
|
2129
2207
|
outPath: options.out !== void 0 ? resolve(options.out) : null,
|
|
@@ -2696,6 +2774,28 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2696
2774
|
}
|
|
2697
2775
|
return assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2698
2776
|
};
|
|
2777
|
+
const commandParams = { ...parsed.params };
|
|
2778
|
+
if (parsed.typedParamCandidates.length > 0) {
|
|
2779
|
+
let toolMetadata;
|
|
2780
|
+
try {
|
|
2781
|
+
toolMetadata = await readMetadata();
|
|
2782
|
+
} catch (error) {
|
|
2783
|
+
if (error instanceof DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2784
|
+
if (wantsJson) printJsonError(error);
|
|
2785
|
+
else console.error(error.message);
|
|
2786
|
+
return 2;
|
|
2787
|
+
}
|
|
2788
|
+
}
|
|
2789
|
+
if (toolMetadata) {
|
|
2790
|
+
for (const key of parsed.typedParamCandidates) {
|
|
2791
|
+
parsed.params[key] = typedParamValue(
|
|
2792
|
+
toolMetadata.inputSchema,
|
|
2793
|
+
key,
|
|
2794
|
+
String(parsed.params[key])
|
|
2795
|
+
);
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2699
2799
|
let executionWarningsPrinted = false;
|
|
2700
2800
|
if (deferredCompatibility) {
|
|
2701
2801
|
let preflightCompatibility;
|
|
@@ -2748,7 +2848,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2748
2848
|
const responseIntent = parsed.outPath || parsed.outputFormat === "csv" || parsed.outputFormat === "csv_file" ? "row_artifact" : "raw";
|
|
2749
2849
|
const recovery = ToolCallRecovery.open({
|
|
2750
2850
|
toolId: parsed.toolId,
|
|
2751
|
-
params:
|
|
2851
|
+
params: commandParams,
|
|
2752
2852
|
responseIntent,
|
|
2753
2853
|
recover: parsed.recover,
|
|
2754
2854
|
idempotencyKey: parsed.idempotencyKey
|
|
@@ -3138,6 +3238,7 @@ inspect: ${inspection.inspect}
|
|
|
3138
3238
|
}
|
|
3139
3239
|
|
|
3140
3240
|
export {
|
|
3241
|
+
jsonFileText,
|
|
3141
3242
|
registerToolsCommands,
|
|
3142
3243
|
printMonitorTypeContract,
|
|
3143
3244
|
printCompactToolContract,
|
package/dist/cli/command-docs.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkIVZKMJUKjs = require('./chunk-IVZKMJUK.js');
|
|
11
11
|
require('./chunk-H4ALLC2X.js');
|
|
12
12
|
require('./chunk-E2G2DNAB.js');
|
|
13
13
|
require('./chunk-YGCKMI5P.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 = _chunkIVZKMJUKjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunkIVZKMJUKjs.COMMAND_DOCS; exports.PLAY_RUNTIME_PRICING_NOTE = _chunkIVZKMJUKjs.PLAY_RUNTIME_PRICING_NOTE; exports.commandDocKey = _chunkIVZKMJUKjs.commandDocKey; exports.helpDetailFromArgv = _chunkIVZKMJUKjs.helpDetailFromArgv; exports.renderActionExplanation = _chunkIVZKMJUKjs.renderActionExplanation; exports.renderCommandExplanation = _chunkIVZKMJUKjs.renderCommandExplanation; exports.renderDocText = _chunkIVZKMJUKjs.renderDocText;
|
|
@@ -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-Q7ACILL2.mjs";
|
|
6
|
+
import "./chunk-2ORPFQUA.mjs";
|
|
7
7
|
import "./chunk-2RIKOPIM.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-UC4BDZKI.mjs";
|
|
9
|
+
import "./chunk-52Q5KETX.mjs";
|
|
10
|
+
import "./chunk-S6W6SJ6E.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-FXQ3JKE3.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 _chunkE74KGKFZjs = require('./chunk-E74KGKFZ.js');
|
|
6
|
+
require('./chunk-W6CZDTIR.js');
|
|
7
|
+
require('./chunk-H4ALLC2X.js');
|
|
8
|
+
require('./chunk-YQKCH4R7.js');
|
|
9
|
+
require('./chunk-VIUUTEHY.js');
|
|
10
|
+
require('./chunk-5CYZHOKI.js');
|
|
11
|
+
require('./chunk-6VLFQZK6.js');
|
|
12
|
+
require('./chunk-XNYIZMNQ.js');
|
|
13
|
+
require('./chunk-LFQJW4S2.js');
|
|
14
|
+
require('./chunk-CFJFUVX2.js');
|
|
15
|
+
require('./chunk-UNNOZKRT.js');
|
|
16
|
+
require('./chunk-OG64RBAC.js');
|
|
17
|
+
require('./chunk-COGTRVWW.js');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.CONCURRENT_RUNS_HELP_COMMANDS = _chunkE74KGKFZjs.CONCURRENT_RUNS_HELP_COMMANDS; exports.concurrentRunsHelpStatus = _chunkE74KGKFZjs.concurrentRunsHelpStatus; exports.concurrentRunsLine = _chunkE74KGKFZjs.concurrentRunsLine;
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
7
|
+
var _chunkYQKCH4R7js = require('./chunk-YQKCH4R7.js');
|
|
8
|
+
require('./chunk-VIUUTEHY.js');
|
|
9
|
+
require('./chunk-5CYZHOKI.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-UNNOZKRT.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 : _chunkYQKCH4R7js.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 : _chunkYQKCH4R7js.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 = _chunkYQKCH4R7js.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
|
+
_chunkYQKCH4R7js.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(_chunkYQKCH4R7js.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
|
+
_chunkYQKCH4R7js.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
|
+
${_chunkYQKCH4R7js.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
|
+
_chunkYQKCH4R7js.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
|
+
_chunkYQKCH4R7js.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-UC4BDZKI.mjs";
|
|
8
|
+
import "./chunk-52Q5KETX.mjs";
|
|
9
|
+
import "./chunk-S6W6SJ6E.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-FXQ3JKE3.mjs";
|
|
15
15
|
import "./chunk-WZYKRD7T.mjs";
|
|
16
16
|
import "./chunk-KRD6H754.mjs";
|
|
17
17
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
shellQuote
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-STXDSVQZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6EXOAT6T.mjs";
|
|
7
7
|
import {
|
|
8
8
|
planCustomerDbQuery
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VLO5NFH2.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-UC4BDZKI.mjs";
|
|
23
|
+
import "./chunk-52Q5KETX.mjs";
|
|
24
|
+
import "./chunk-S6W6SJ6E.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-FXQ3JKE3.mjs";
|
|
34
34
|
import "./chunk-WZYKRD7T.mjs";
|
|
35
35
|
import "./chunk-KRD6H754.mjs";
|
|
36
36
|
|