deepline 0.3.497 → 0.3.498
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/billing/policy-builders.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/state.ts +8 -1
- package/dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts +23 -5
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +4 -3
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-control.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-admission-outcome.ts +8 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +470 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-profile.ts +318 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +7 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +4 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +19 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +138 -0
- package/dist/cli/auth-NYYFDCMT.js +43 -0
- package/dist/cli/{auth-OAKBFUQD.mjs → auth-TNYYAPIX.mjs} +5 -5
- package/dist/cli/{billing-AM6D2KN5.mjs → billing-G6QBOZAE.mjs} +6 -6
- package/dist/cli/{billing-FUB6HQZ5.js → billing-MP43H3ZK.js} +79 -79
- package/dist/cli/{chunk-UETGYJYH.mjs → chunk-2QS3MCJ2.mjs} +2 -2
- package/dist/cli/{chunk-3IVAGF4P.mjs → chunk-3XNYGMPZ.mjs} +10 -10
- package/dist/cli/{chunk-IURXJPGH.mjs → chunk-4RSOYJ67.mjs} +3 -3
- package/dist/cli/{chunk-5IBHSACU.mjs → chunk-4TVN2676.mjs} +2 -2
- package/dist/cli/{chunk-HRODQDTB.mjs → chunk-6JVJZ7YG.mjs} +1 -1
- package/dist/cli/{chunk-WKCMARFR.js → chunk-BQIEYWGQ.js} +94 -94
- package/dist/cli/{chunk-LPCK5KK5.mjs → chunk-C7BH7T3T.mjs} +2 -2
- package/dist/cli/{chunk-YUEFDOME.js → chunk-DB7SJKGI.js} +6 -6
- package/dist/cli/{chunk-SLS3HUVC.js → chunk-EAQXRAVF.js} +4 -4
- package/dist/cli/{chunk-M2WIEW2E.mjs → chunk-EHOC6NCN.mjs} +1 -1
- package/dist/cli/{chunk-XNLXHU6L.mjs → chunk-ELZYHPE7.mjs} +5 -5
- package/dist/cli/{chunk-6TA2H7CY.js → chunk-FPRS3FP4.js} +26 -26
- package/dist/cli/{chunk-FISH2MI2.mjs → chunk-H7YR4EYF.mjs} +2 -2
- package/dist/cli/{chunk-BRUDMG56.js → chunk-IBCROFZW.js} +41 -41
- package/dist/cli/{chunk-3DHPKENA.mjs → chunk-IE6FYMUS.mjs} +1 -1
- package/dist/cli/{chunk-OEI6HXMK.js → chunk-IUCAVYXR.js} +16 -16
- package/dist/cli/{chunk-KUX3HYJI.mjs → chunk-KLA4IUOI.mjs} +1 -1
- package/dist/cli/{chunk-SJM7MKOE.js → chunk-KRR2Z2FH.js} +2 -2
- package/dist/cli/{chunk-SJID5WMV.mjs → chunk-KV4RNW2H.mjs} +4 -4
- package/dist/cli/{chunk-KFJV3BZX.mjs → chunk-LGE6ZOEO.mjs} +1 -1
- package/dist/cli/{chunk-WZ3A35ZD.mjs → chunk-MRHMC33S.mjs} +1 -1
- package/dist/cli/{chunk-YQ66NC4J.mjs → chunk-O4H53SJ4.mjs} +2 -2
- package/dist/cli/{chunk-VMOVB2FN.mjs → chunk-OFNXUDEC.mjs} +5 -5
- package/dist/cli/{chunk-B4Q3EBQX.js → chunk-OL2QEEXF.js} +5 -5
- package/dist/cli/{chunk-XX7WLKOQ.mjs → chunk-PAHFVOFZ.mjs} +1 -1
- package/dist/cli/{chunk-ZLYKN4AJ.js → chunk-PHBJ2VDS.js} +7 -7
- package/dist/cli/{chunk-7RBIOOCQ.js → chunk-PKTJN6PF.js} +3 -3
- package/dist/cli/{chunk-DKSTMQ3F.js → chunk-QDNP6KOF.js} +21 -21
- package/dist/cli/{chunk-UV7AT2D4.js → chunk-QERMP4TW.js} +2 -2
- package/dist/cli/{chunk-FVS5MJQ5.js → chunk-QUIJUNXX.js} +3 -3
- package/dist/cli/{chunk-EWQ3KY5U.mjs → chunk-RZA6HSXX.mjs} +6 -6
- package/dist/cli/{chunk-4MR7LZXF.mjs → chunk-RZO743TC.mjs} +2 -2
- package/dist/cli/{chunk-5GXYXU45.mjs → chunk-SR3PRGWB.mjs} +1 -1
- package/dist/cli/{chunk-WXW7YJDO.js → chunk-TDUTNTA5.js} +53 -53
- package/dist/cli/{chunk-A66Y2LCW.js → chunk-TLG75Q77.js} +53 -53
- package/dist/cli/{chunk-XLYJ7MJX.js → chunk-TPQFCUPV.js} +7 -7
- package/dist/cli/{chunk-3KG2FUU4.js → chunk-UA2GU7NB.js} +7 -7
- package/dist/cli/{chunk-THD6KA67.mjs → chunk-UUFZFJL4.mjs} +4 -4
- package/dist/cli/{chunk-MBOAXLWC.mjs → chunk-VETP54NO.mjs} +4 -4
- package/dist/cli/{chunk-V2EVSEUD.js → chunk-VFYKFPZD.js} +16 -16
- package/dist/cli/{chunk-JDFYCHNV.js → chunk-VUNAIAMX.js} +5 -5
- package/dist/cli/{chunk-77IAUCTB.js → chunk-XGUGFGCF.js} +3 -3
- package/dist/cli/{chunk-OWDK2PVH.js → chunk-XNYAIV4E.js} +8 -8
- package/dist/cli/{chunk-BBHGJE73.js → chunk-XUTIBRKF.js} +1 -1
- package/dist/cli/{chunk-7FFNSYMJ.js → chunk-YCGVVUGX.js} +9 -9
- package/dist/cli/{chunk-TGAYN34A.mjs → chunk-ZEYB6QPW.mjs} +2 -2
- package/dist/cli/{csv-U2GOFP3M.mjs → csv-LBUOESU2.mjs} +4 -4
- package/dist/cli/{csv-PMBYKVUU.js → csv-SCXUWRVV.js} +13 -13
- package/dist/cli/{db-DKFOTZGZ.mjs → db-3SI2OXIV.mjs} +6 -6
- package/dist/cli/{db-GREVTMIR.js → db-CC2D2GSL.js} +27 -27
- package/dist/cli/describe-DAUL3SDQ.js +50 -0
- package/dist/cli/{describe-SWXA6L62.mjs → describe-ZK5CMT4M.mjs} +17 -17
- package/dist/cli/{executions-EBRFC5JR.mjs → executions-DVPHIG2I.mjs} +6 -6
- package/dist/cli/{executions-2RRAESQK.js → executions-YKYQIRPP.js} +8 -8
- package/dist/cli/{feedback-N6ML7IRH.js → feedback-BVLYZ3BM.js} +8 -8
- package/dist/cli/{feedback-4A57QLX2.mjs → feedback-UQRMPU2S.mjs} +4 -4
- package/dist/cli/git-MFIJCRX6.js +25 -0
- package/dist/cli/{git-6D2WQPOS.mjs → git-WTMZ66HP.mjs} +5 -5
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-CL5QWXGH.mjs → legacy-noops-RUQT6DB3.mjs} +5 -5
- package/dist/cli/{legacy-noops-DXRJARNC.js → legacy-noops-TVJ5WOBD.js} +8 -8
- package/dist/cli/{monitors-XWKDVHYL.js → monitors-UYYJBO6U.js} +95 -95
- package/dist/cli/{monitors-SGMEGGJO.mjs → monitors-ZQBZMFUL.mjs} +7 -7
- package/dist/cli/{org-QKQ57PDN.js → org-4TZED2IF.js} +72 -72
- package/dist/cli/{org-55BI5RQF.mjs → org-UACQHFY6.mjs} +6 -6
- package/dist/cli/{pages-FOIR5UH4.js → pages-HDYYGZOT.js} +18 -18
- package/dist/cli/{pages-LM4QACOM.mjs → pages-R2KSZCYK.mjs} +6 -6
- package/dist/cli/{play-7VA26O6E.mjs → play-DQ4AZ2NV.mjs} +17 -17
- package/dist/cli/{play-S44FXGD7.js → play-ZMYWHAV3.js} +314 -314
- package/dist/cli/{providers-RDSHID7C.js → providers-I7GXTYG4.js} +9 -9
- package/dist/cli/{providers-QAVIR5E2.mjs → providers-X53WCX46.mjs} +6 -6
- package/dist/cli/{quickstart-IL4HQYE4.mjs → quickstart-DKVF32MY.mjs} +4 -4
- package/dist/cli/{quickstart-EREQPM3G.js → quickstart-GKW46HUR.js} +6 -6
- package/dist/cli/{run-4XZNJR7N.mjs → run-A36EBVLD.mjs} +22 -22
- package/dist/cli/{run-TBUUV5EG.js → run-VLX775L5.js} +36 -36
- package/dist/cli/{search-SYT5UT5G.mjs → search-QHO4AYS2.mjs} +7 -7
- package/dist/cli/search-STXZIGVB.js +32 -0
- package/dist/cli/{search-output-5F3EEQ34.js → search-output-P7GWSTNO.js} +6 -6
- package/dist/cli/{search-output-Y3IKZ3TX.mjs → search-output-YF5HCWKU.mjs} +4 -4
- package/dist/cli/{secrets-PZWJ2ES5.js → secrets-3X56AV2F.js} +15 -15
- package/dist/cli/{secrets-AKAU2N3K.mjs → secrets-XTHBAX26.mjs} +6 -6
- package/dist/cli/{sessions-Z5C26IS7.mjs → sessions-4ZVZABXN.mjs} +5 -5
- package/dist/cli/{sessions-UMHA7K23.js → sessions-AJUQJR4G.js} +6 -6
- package/dist/cli/{settings-S5BM3SVI.mjs → settings-AX5JF47R.mjs} +11 -11
- package/dist/cli/{settings-WGJYWTJZ.js → settings-R7RQC5Z3.js} +78 -78
- package/dist/cli/{setup-E4HRXP2X.mjs → setup-DTXQODYK.mjs} +9 -9
- package/dist/cli/{setup-6K6ERKOH.js → setup-QB62E6K5.js} +49 -49
- package/dist/cli/skills-IEP5L5MQ.js +36 -0
- package/dist/cli/{skills-HIZA7YAN.mjs → skills-N6OY5ABC.mjs} +7 -7
- package/dist/cli/{tools-FS5S6BT7.mjs → tools-3T4GKGS4.mjs} +16 -16
- package/dist/cli/tools-JWBXEZKY.js +57 -0
- package/dist/cli/{update-4CJPTG3L.mjs → update-QDT4SFW3.mjs} +9 -9
- package/dist/cli/update-QME3C2VP.js +34 -0
- package/dist/cli/{workflow-TYSZ5JWS.js → workflow-FW3FPOWU.js} +17 -17
- package/dist/cli/{workflow-UMSXOIOS.mjs → workflow-Q7LQETNW.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +100 -98
- 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-553ZBCPJ.js +0 -43
- package/dist/cli/describe-BL5NNHV5.js +0 -50
- package/dist/cli/git-7TSX5V57.js +0 -25
- package/dist/cli/search-GCANFVVZ.js +0 -32
- package/dist/cli/skills-J3GQHHHL.js +0 -36
- package/dist/cli/tools-RZYKMOUX.js +0 -57
- package/dist/cli/update-CATZW7GA.js +0 -34
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXGUGFGCFjs = require('./chunk-XGUGFGCF.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkEAQXRAVFjs = require('./chunk-EAQXRAVF.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -290,8 +290,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
290
290
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
291
291
|
var defaultBrowserCommandRunner = childProcess;
|
|
292
292
|
function getAuthedHttpClient() {
|
|
293
|
-
const config =
|
|
294
|
-
return { config, http: new (0,
|
|
293
|
+
const config = _chunkXGUGFGCFjs.resolveConfig.call(void 0, );
|
|
294
|
+
return { config, http: new (0, _chunkXGUGFGCFjs.HttpClient)(config) };
|
|
295
295
|
}
|
|
296
296
|
function stableOsUserId() {
|
|
297
297
|
try {
|
|
@@ -631,7 +631,7 @@ function collectLocalEnvInfo() {
|
|
|
631
631
|
os: `${process.platform} ${process.arch}`,
|
|
632
632
|
node_version: process.version,
|
|
633
633
|
home_dir: homeDir,
|
|
634
|
-
agent_runtime:
|
|
634
|
+
agent_runtime: _chunkEAQXRAVFjs.detectAgentRuntime.call(void 0, )
|
|
635
635
|
};
|
|
636
636
|
const env = process.env;
|
|
637
637
|
const optional = {
|
|
@@ -878,9 +878,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
878
878
|
}
|
|
879
879
|
function withAgentCommandContext(value) {
|
|
880
880
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
881
|
-
return
|
|
881
|
+
return _chunkEAQXRAVFjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
882
882
|
...valueRecord,
|
|
883
|
-
command_context:
|
|
883
|
+
command_context: _chunkXGUGFGCFjs.resolveCliCommandContext.call(void 0, )
|
|
884
884
|
} : value;
|
|
885
885
|
}
|
|
886
886
|
function printJson(value, fields) {
|
|
@@ -31,7 +31,7 @@ var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkEAQXRAVFjs = require('./chunk-EAQXRAVF.js');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -652,7 +652,7 @@ var ToolCalls = class {
|
|
|
652
652
|
idempotencyKey,
|
|
653
653
|
onResponse: (response2) => {
|
|
654
654
|
lastResponse = null;
|
|
655
|
-
atomicToolsSupported = response2.headers.get(
|
|
655
|
+
atomicToolsSupported = response2.headers.get(_chunkEAQXRAVFjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
656
656
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
657
657
|
if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
|
|
658
658
|
try {
|
|
@@ -1031,8 +1031,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
const receivers = _optionalChain([env, 'access', _52 => _52.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _53 => _53.trim, 'call', _54 => _54()]);
|
|
1033
1033
|
return {
|
|
1034
|
-
[
|
|
1035
|
-
...receivers ? { [
|
|
1034
|
+
[_chunkEAQXRAVFjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1035
|
+
...receivers ? { [_chunkEAQXRAVFjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
1038
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1103,7 +1103,7 @@ var PlayClient = class {
|
|
|
1103
1103
|
return _chunkEQR5O2D2js.startPlayRun.call(void 0,
|
|
1104
1104
|
this.http,
|
|
1105
1105
|
resolved.request,
|
|
1106
|
-
_optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1106
|
+
_optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkEAQXRAVFjs.SDK_API_MAJOR) } : headers,
|
|
1107
1107
|
options
|
|
1108
1108
|
);
|
|
1109
1109
|
}
|
|
@@ -3200,7 +3200,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3200
3200
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3201
3201
|
);
|
|
3202
3202
|
}
|
|
3203
|
-
return { [
|
|
3203
|
+
return { [_chunkEAQXRAVFjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3204
3204
|
}
|
|
3205
3205
|
function sleep(ms) {
|
|
3206
3206
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4011,7 +4011,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4011
4011
|
);
|
|
4012
4012
|
const headers = _optionalChain([options, 'optionalAccess', _181 => _181.cliAdmission]) ? {
|
|
4013
4013
|
...runtimeHeaders,
|
|
4014
|
-
"X-Deepline-API-Major": String(
|
|
4014
|
+
"X-Deepline-API-Major": String(_chunkEAQXRAVFjs.SDK_API_MAJOR)
|
|
4015
4015
|
} : runtimeHeaders;
|
|
4016
4016
|
const http = this.http;
|
|
4017
4017
|
let submitted = false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IE6FYMUS.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
sdkCliStateDirPath,
|
|
13
13
|
skillsAgentPathSegment,
|
|
14
14
|
writeSdkSkillsLocalVersion
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PAHFVOFZ.mjs";
|
|
16
16
|
import {
|
|
17
17
|
SDK_API_CONTRACT,
|
|
18
18
|
SDK_API_MAJOR,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
agentSessionIdFromEnvironment,
|
|
21
21
|
deploymentProtectionHeaders,
|
|
22
22
|
detectAgentRuntime
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MRHMC33S.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DeeplineError
|
|
26
26
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
27
27
|
import {
|
|
28
28
|
SDK_RELEASE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SR3PRGWB.mjs";
|
|
30
30
|
|
|
31
31
|
// src/compat.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RZO743TC.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-H7YR4EYF.mjs";
|
|
10
10
|
import {
|
|
11
11
|
resolveConfig,
|
|
12
12
|
sdkCliStateDirPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PAHFVOFZ.mjs";
|
|
14
14
|
|
|
15
15
|
// src/cli/commands/search.ts
|
|
16
16
|
import { Option } from "commander";
|
|
@@ -133,7 +133,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
133
133
|
});
|
|
134
134
|
if (searchRef) rememberSearchRef(searchRef);
|
|
135
135
|
pointAtDescribe(result);
|
|
136
|
-
const { renderSearchResults } = await import("./search-output-
|
|
136
|
+
const { renderSearchResults } = await import("./search-output-YF5HCWKU.mjs");
|
|
137
137
|
printCommandEnvelope(result, {
|
|
138
138
|
json: options.json === true,
|
|
139
139
|
text: renderSearchResults(result, summaryWidth)
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkKRR2Z2FHjs = require('./chunk-KRR2Z2FH.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkIBCROFZWjs = require('./chunk-IBCROFZW.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkTLG75Q77js = require('./chunk-TLG75Q77.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkTPQFCUPVjs = require('./chunk-TPQFCUPV.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkXGUGFGCFjs = require('./chunk-XGUGFGCF.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunkTLG75Q77js.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
557
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
558
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkKRR2Z2FHjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkKRR2Z2FHjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
561
|
const args = installPrefix ? [
|
|
562
562
|
"install",
|
|
563
563
|
"-g",
|
|
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
567
|
packageSpec
|
|
568
568
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
569
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkXGUGFGCFjs.autoDetectBaseUrl.call(void 0, )
|
|
571
571
|
);
|
|
572
572
|
return {
|
|
573
573
|
kind: "npm-global",
|
|
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
816
|
function runCommand(command, args, env = process.env) {
|
|
817
817
|
return new Promise((resolveResult) => {
|
|
818
818
|
let output = "";
|
|
819
|
-
const plan =
|
|
819
|
+
const plan = _chunkTLG75Q77js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
820
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
821
821
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
822
|
shell: plan.shell,
|
|
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1199
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkXGUGFGCFjs.autoDetectBaseUrl));
|
|
1203
1203
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1204
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1205
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1206
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1207
|
process.stdout.write = (() => true);
|
|
1208
1208
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1209
|
+
const exitCode = await _chunkIBCROFZWjs.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1210
|
if (exitCode !== 0) {
|
|
1211
1211
|
throw new Error(
|
|
1212
1212
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
};
|
|
1279
1279
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1280
|
+
_chunkTPQFCUPVjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkTPQFCUPVjs.printCommandEnvelope.call(void 0,
|
|
1285
1285
|
{
|
|
1286
1286
|
...plan,
|
|
1287
1287
|
render: {
|
|
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1294
|
return 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1297
|
+
_chunkTPQFCUPVjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills install
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkTPQFCUPVjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUA2GU7NBjs = require('./chunk-UA2GU7NB.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXGUGFGCFjs = require('./chunk-XGUGFGCF.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunkXGUGFGCFjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkUA2GU7NBjs.PlayClient)(
|
|
142
|
+
new (0, _chunkXGUGFGCFjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkEAQXRAVFjs = require('./chunk-EAQXRAVF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function resolveAutoSyncSkillAgents() {
|
|
714
|
-
switch (
|
|
714
|
+
switch (_chunkEAQXRAVFjs.detectAgentRuntime.call(void 0, )) {
|
|
715
715
|
case "codex":
|
|
716
716
|
return ["codex"];
|
|
717
717
|
case "claude_code":
|
|
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
// src/http.ts
|
|
784
|
-
var HttpClient2 = class extends
|
|
784
|
+
var HttpClient2 = class extends _chunkEAQXRAVFjs.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkTPQFCUPVjs = require('./chunk-TPQFCUPV.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkEAQXRAVFjs = require('./chunk-EAQXRAVF.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkEAQXRAVFjs.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunkTPQFCUPVjs.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunkTPQFCUPVjs.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunkTPQFCUPVjs.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunkTPQFCUPVjs.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunkTPQFCUPVjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -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.498",
|
|
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 _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkUA2GU7NBjs = require('./chunk-UA2GU7NB.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkEQR5O2D2js = require('./chunk-EQR5O2D2.js');
|
|
@@ -11,7 +11,7 @@ var _chunkEQR5O2D2js = require('./chunk-EQR5O2D2.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkTPQFCUPVjs = require('./chunk-TPQFCUPV.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -579,7 +579,7 @@ function parseInputFlagValue(raw) {
|
|
|
579
579
|
return raw;
|
|
580
580
|
}
|
|
581
581
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
582
|
-
const selection =
|
|
582
|
+
const selection = _chunkTPQFCUPVjs.parseJsonFields.call(void 0, args, "run");
|
|
583
583
|
args = selection.args;
|
|
584
584
|
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.";
|
|
585
585
|
let filePath = null;
|
|
@@ -591,7 +591,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
591
591
|
let revisionSelector = null;
|
|
592
592
|
const watch = !args.includes("--no-wait");
|
|
593
593
|
const dryRun = args.includes("--dry-run");
|
|
594
|
-
let jsonOutput = dryRun ?
|
|
594
|
+
let jsonOutput = dryRun ? _chunkTPQFCUPVjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkTPQFCUPVjs.argsWantJson.call(void 0, args);
|
|
595
595
|
const fullJson = args.includes("--full");
|
|
596
596
|
const force = args.includes("--force");
|
|
597
597
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -654,7 +654,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
654
654
|
"--log-level requires one of: debug, info, warn, error."
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
|
-
const parsed =
|
|
657
|
+
const parsed = _chunkUA2GU7NBjs.parseLogLevel.call(void 0, value);
|
|
658
658
|
if (!parsed) {
|
|
659
659
|
throw new Error(
|
|
660
660
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -972,7 +972,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
972
972
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
973
973
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
974
974
|
);
|
|
975
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
975
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkUA2GU7NBjs.parseLogLevel.call(void 0, options.logLevel);
|
|
976
976
|
if (!logLevel)
|
|
977
977
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
978
978
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -986,13 +986,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
986
986
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
987
987
|
logLevel = "debug";
|
|
988
988
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
989
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
990
|
-
[...fullJson ? ["--full"] : [], ...
|
|
989
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkTPQFCUPVjs.parseJsonFields.call(void 0,
|
|
990
|
+
[...fullJson ? ["--full"] : [], ..._chunkTPQFCUPVjs.jsonFieldArgs.call(void 0, options.json)],
|
|
991
991
|
"run"
|
|
992
992
|
).fields;
|
|
993
993
|
const watch = options.wait === false ? false : base.watch;
|
|
994
994
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
995
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
995
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkTPQFCUPVjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
996
996
|
const verboseLogs = Boolean(
|
|
997
997
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
998
998
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-H7YR4EYF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MRHMC33S.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-H7YR4EYF.mjs";
|
|
8
|
+
import "./chunk-PAHFVOFZ.mjs";
|
|
9
|
+
import "./chunk-MRHMC33S.mjs";
|
|
10
10
|
import "./chunk-4QF2K7TM.mjs";
|
|
11
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
12
|
import "./chunk-HBL4PM5Q.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-SR3PRGWB.mjs";
|
|
14
14
|
import "./chunk-WZYKRD7T.mjs";
|
|
15
15
|
import "./chunk-KRD6H754.mjs";
|
|
16
16
|
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
7
|
+
var _chunkTPQFCUPVjs = require('./chunk-TPQFCUPV.js');
|
|
8
|
+
require('./chunk-XGUGFGCF.js');
|
|
9
|
+
require('./chunk-EAQXRAVF.js');
|
|
10
10
|
require('./chunk-ALJJRZNJ.js');
|
|
11
11
|
require('./chunk-XNYIZMNQ.js');
|
|
12
12
|
require('./chunk-DIAWYWT5.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-XUTIBRKF.js');
|
|
14
14
|
require('./chunk-OG64RBAC.js');
|
|
15
15
|
require('./chunk-COGTRVWW.js');
|
|
16
16
|
|
|
@@ -128,7 +128,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
128
128
|
column.length,
|
|
129
129
|
...rows.map((row) => {
|
|
130
130
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
131
|
-
return (verbose ? value :
|
|
131
|
+
return (verbose ? value : _chunkTPQFCUPVjs.clip.call(void 0, value, 42)).length;
|
|
132
132
|
})
|
|
133
133
|
)
|
|
134
134
|
])
|
|
@@ -138,7 +138,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
138
138
|
const body = rows.map(
|
|
139
139
|
(row) => columns.map((column) => {
|
|
140
140
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
141
|
-
const display = verbose ? raw :
|
|
141
|
+
const display = verbose ? raw : _chunkTPQFCUPVjs.clip.call(void 0, raw, 42);
|
|
142
142
|
return display.padEnd(widths[column]);
|
|
143
143
|
}).join(" | ")
|
|
144
144
|
);
|
|
@@ -158,7 +158,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
158
158
|
{ exitCode: 2 }
|
|
159
159
|
);
|
|
160
160
|
}
|
|
161
|
-
const allRows =
|
|
161
|
+
const allRows = _chunkTPQFCUPVjs.readCsvRows.call(void 0, csvPath);
|
|
162
162
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
163
163
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
164
164
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -171,7 +171,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
171
171
|
if (options.summary) {
|
|
172
172
|
const summaries = summarizeColumns(selected, columns);
|
|
173
173
|
if (format === "json") {
|
|
174
|
-
|
|
174
|
+
_chunkTPQFCUPVjs.printJson.call(void 0, {
|
|
175
175
|
rows: summaries,
|
|
176
176
|
total_rows: selected.length,
|
|
177
177
|
source_total_rows: allRows.length
|
|
@@ -180,7 +180,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
180
180
|
}
|
|
181
181
|
const displayRows = summaryDisplayRows(summaries);
|
|
182
182
|
if (format === "csv") {
|
|
183
|
-
process.stdout.write(
|
|
183
|
+
process.stdout.write(_chunkTPQFCUPVjs.csvStringFromRows.call(void 0, displayRows));
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
186
|
process.stdout.write(
|
|
@@ -195,7 +195,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
197
|
if (format === "json") {
|
|
198
|
-
|
|
198
|
+
_chunkTPQFCUPVjs.printJson.call(void 0, {
|
|
199
199
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
200
200
|
});
|
|
201
201
|
return;
|
|
@@ -438,7 +438,7 @@ async function handleCsvRenderStart(options) {
|
|
|
438
438
|
if (log) {
|
|
439
439
|
detail = `
|
|
440
440
|
CSV render log:
|
|
441
|
-
${
|
|
441
|
+
${_chunkTPQFCUPVjs.clip.call(void 0, log, 2e3)}`;
|
|
442
442
|
}
|
|
443
443
|
} catch (e7) {
|
|
444
444
|
}
|
|
@@ -489,7 +489,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
489
489
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
490
490
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
491
491
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
492
|
-
|
|
492
|
+
_chunkTPQFCUPVjs.printCommandEnvelope.call(void 0, payload, {
|
|
493
493
|
json: options.json,
|
|
494
494
|
text: `${lines.join("\n")}
|
|
495
495
|
`
|
|
@@ -525,7 +525,7 @@ async function handleCsvRenderStop(options) {
|
|
|
525
525
|
};
|
|
526
526
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
527
527
|
` : "No running CSV render process found.\n";
|
|
528
|
-
|
|
528
|
+
_chunkTPQFCUPVjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
529
529
|
}
|
|
530
530
|
async function handleCsvRender(action, options) {
|
|
531
531
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-OVDNJAJN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RZO743TC.mjs";
|
|
7
7
|
import {
|
|
8
8
|
planCustomerDbQuery
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6JVJZ7YG.mjs";
|
|
10
10
|
import "./chunk-L2VKAASU.mjs";
|
|
11
11
|
import "./chunk-CS2AEAD6.mjs";
|
|
12
12
|
import "./chunk-S3A4IXBQ.mjs";
|
|
@@ -20,9 +20,9 @@ import {
|
|
|
20
20
|
printCommandEnvelope,
|
|
21
21
|
recordRows,
|
|
22
22
|
shouldEmitJson
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-H7YR4EYF.mjs";
|
|
24
|
+
import "./chunk-PAHFVOFZ.mjs";
|
|
25
|
+
import "./chunk-MRHMC33S.mjs";
|
|
26
26
|
import {
|
|
27
27
|
CustomerDbQueryOutcomeUnknownError
|
|
28
28
|
} from "./chunk-4QF2K7TM.mjs";
|
|
@@ -30,7 +30,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
30
30
|
import {
|
|
31
31
|
DeeplineError
|
|
32
32
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-SR3PRGWB.mjs";
|
|
34
34
|
import "./chunk-WZYKRD7T.mjs";
|
|
35
35
|
import "./chunk-KRD6H754.mjs";
|
|
36
36
|
|