deepline 0.3.524 → 0.3.526
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/agent-runtime.ts +98 -0
- package/dist/bundling-sources/sdk/src/client-core.ts +8 -0
- package/dist/bundling-sources/sdk/src/http-core.ts +14 -0
- package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +10 -0
- package/dist/bundling-sources/shared_libs/observability/dlq.ts +33 -5
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +38 -0
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +94 -9
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure-class.ts +98 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-retry-summary.ts +202 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +60 -8
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-telemetry.ts +112 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +39 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-inventory.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +52 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +10 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-retry-facts.ts +62 -0
- package/dist/cli/{auth-QXJMVLPN.mjs → auth-JATW5XZE.mjs} +5 -5
- package/dist/cli/auth-L2POG3LL.js +43 -0
- package/dist/cli/{billing-N5R4HTHT.js → billing-TSHBJIJS.js} +83 -83
- package/dist/cli/{billing-SNSIFM4B.mjs → billing-UT5LIESH.mjs} +8 -8
- package/dist/cli/{chunk-PFKWKWUJ.mjs → chunk-26ULNPQ7.mjs} +2 -2
- package/dist/cli/{chunk-OQ5G7RFQ.mjs → chunk-2GJW4RAQ.mjs} +70 -3
- package/dist/cli/{chunk-HLAFGQPV.mjs → chunk-2JNX3MDG.mjs} +5 -2
- package/dist/cli/{chunk-V7KUBDEB.js → chunk-3MYI3IXW.js} +144 -141
- package/dist/cli/{chunk-WOEPDSO3.js → chunk-3ZEV5BS5.js} +26 -26
- package/dist/cli/{chunk-ATATJNJ6.js → chunk-46HEYGLY.js} +9 -9
- package/dist/cli/{chunk-I75VRGQG.js → chunk-477PXM65.js} +22 -22
- package/dist/cli/{chunk-RVHUW4TN.js → chunk-5YAJGRWB.js} +17 -17
- package/dist/cli/{chunk-T43FF5PF.mjs → chunk-6COGHW7B.mjs} +2 -2
- package/dist/cli/{chunk-V4RJ57MA.js → chunk-6DHEV6IA.js} +2 -2
- package/dist/cli/{chunk-VHTVXS5A.js → chunk-6H56LKJB.js} +16 -16
- package/dist/cli/{chunk-YKFW3NNA.mjs → chunk-6JMWATX5.mjs} +5 -5
- package/dist/cli/{chunk-II3BJKCH.mjs → chunk-77RAGJIZ.mjs} +2 -2
- package/dist/cli/{chunk-ITJ7NB2D.mjs → chunk-7AOFSZJM.mjs} +3 -1
- package/dist/cli/{chunk-OCT4SUJA.js → chunk-7COEN3IR.js} +146 -79
- package/dist/cli/{chunk-XURWFEXM.mjs → chunk-7FCD34YS.mjs} +31 -17
- package/dist/cli/{chunk-BXVYVIMB.js → chunk-B33J4YCC.js} +3 -3
- package/dist/cli/{chunk-RTDX5NNN.mjs → chunk-BFH3DJYV.mjs} +84 -57
- package/dist/cli/{chunk-GJYLC4JB.mjs → chunk-BNH4Y35W.mjs} +2 -2
- package/dist/cli/{chunk-GMO3JDZA.mjs → chunk-BVITYMBK.mjs} +2 -2
- package/dist/cli/{chunk-7QM6DNR4.js → chunk-BYEF4RBX.js} +11 -11
- package/dist/cli/{chunk-536TGWR6.mjs → chunk-C3EW6I65.mjs} +2 -2
- package/dist/cli/{chunk-HTYT2OHB.js → chunk-CDP3LMDT.js} +6 -6
- package/dist/cli/{chunk-YXVYPYIP.js → chunk-CYN2AHR6.js} +10 -10
- package/dist/cli/{chunk-CH7JVSA7.mjs → chunk-D2XMFXFM.mjs} +8 -8
- package/dist/cli/{chunk-2ZWNIS54.js → chunk-D5OEUPPM.js} +269 -269
- package/dist/cli/{chunk-FXTV5B3D.mjs → chunk-DY2AT3JQ.mjs} +12 -12
- package/dist/cli/{chunk-Z4MOEQSY.js → chunk-ED2N4NRI.js} +21 -21
- package/dist/cli/{chunk-RIX26ZJD.mjs → chunk-EEYZLTXX.mjs} +1 -1
- package/dist/cli/{chunk-7E6B7VMS.js → chunk-F5KFGF45.js} +5 -5
- package/dist/cli/{chunk-TZTWH53O.js → chunk-FMPGWAIR.js} +1 -1
- package/dist/cli/{chunk-R2VZVHJP.mjs → chunk-GESIFFQX.mjs} +1 -1
- package/dist/cli/{chunk-YCIXY66B.mjs → chunk-HPACLONQ.mjs} +2 -2
- package/dist/cli/{chunk-WCVIPZWX.mjs → chunk-IMP7WR22.mjs} +5 -5
- package/dist/cli/{chunk-KSQXBLRW.mjs → chunk-IWLDJQGV.mjs} +3 -3
- package/dist/cli/{chunk-EQNAQENZ.js → chunk-J5OXJ4JI.js} +2 -2
- package/dist/cli/{chunk-NUC7ZVDG.mjs → chunk-MQB25LMV.mjs} +5 -5
- package/dist/cli/{chunk-RUULUCBP.js → chunk-O7WUATQC.js} +97 -70
- package/dist/cli/{chunk-NMU3VR5U.js → chunk-PMH4GLMD.js} +1 -0
- package/dist/cli/{chunk-S3A4IXBQ.mjs → chunk-PSX3WHIH.mjs} +1 -0
- package/dist/cli/{chunk-LRWDZDBS.js → chunk-RZJWHL7L.js} +5 -5
- package/dist/cli/{chunk-66N76YZG.js → chunk-SCLRGDF4.js} +44 -44
- package/dist/cli/{chunk-SMWFOGUT.js → chunk-SJ6KUCGM.js} +53 -53
- package/dist/cli/{chunk-PFKKZVFK.js → chunk-TBQC2XS3.js} +41 -41
- package/dist/cli/{chunk-2ZX7XSAQ.mjs → chunk-TCLJXJAG.mjs} +4 -4
- package/dist/cli/{chunk-YGOI5ZE5.mjs → chunk-TVHDWS5U.mjs} +1 -1
- package/dist/cli/{chunk-MW3YMPD2.mjs → chunk-TXJW6RIM.mjs} +1 -1
- package/dist/cli/{chunk-KKPBCB6D.mjs → chunk-U6OUX47C.mjs} +2 -2
- package/dist/cli/{chunk-GTGJBZVH.js → chunk-UTCGCES2.js} +7 -7
- package/dist/cli/{chunk-V2YIBBVT.mjs → chunk-UUIC2JFZ.mjs} +1 -1
- package/dist/cli/{chunk-JDIQBZ6O.js → chunk-UWCEBS7F.js} +14 -14
- package/dist/cli/{chunk-ANKD3AIR.js → chunk-WBY3R55B.js} +2 -2
- package/dist/cli/{chunk-SF4QJVBE.js → chunk-WITNIMLE.js} +3 -3
- package/dist/cli/{chunk-7OQGZBDG.js → chunk-WL6GAZBD.js} +31 -17
- package/dist/cli/{chunk-R457IMHJ.mjs → chunk-WOLY6SU4.mjs} +1 -1
- package/dist/cli/{chunk-3WWTBQHC.mjs → chunk-XVIMOB2U.mjs} +2 -2
- package/dist/cli/{chunk-NTLBZUHD.js → chunk-XYIECA7M.js} +4 -2
- package/dist/cli/{chunk-BXIQD2IY.mjs → chunk-Y47OCS5V.mjs} +1 -1
- package/dist/cli/{chunk-EO55Y4QW.mjs → chunk-YNFPZVII.mjs} +5 -5
- package/dist/cli/{chunk-BN5VKY4X.js → chunk-ZS2WHWWL.js} +7 -7
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-HT2JBCW2.mjs → csv-4BLFRED6.mjs} +4 -4
- package/dist/cli/{csv-Q2LWKXAV.js → csv-KSJB5Z3M.js} +13 -13
- package/dist/cli/{db-XEV4WEE4.js → db-G7Z5CKO2.js} +28 -28
- package/dist/cli/{db-CS3XQ2LX.mjs → db-OVW6C3DV.mjs} +7 -7
- package/dist/cli/describe-KMYR2JBC.js +50 -0
- package/dist/cli/describe-OEFTD7WQ.mjs +50 -0
- package/dist/cli/describe-core.d.mts +4 -2
- package/dist/cli/describe-core.d.ts +4 -2
- package/dist/cli/describe-core.js +5 -5
- package/dist/cli/describe-core.mjs +4 -4
- package/dist/cli/{executions-L6XFG5MP.mjs → executions-7ZKQ4ZU3.mjs} +7 -7
- package/dist/cli/{executions-JCC34WAD.js → executions-O7USCBCW.js} +9 -9
- package/dist/cli/{feedback-AWBDO5I6.mjs → feedback-KUBL5E3I.mjs} +61 -13
- package/dist/cli/{feedback-HV2M2G7N.js → feedback-Y55WCRIQ.js} +65 -17
- package/dist/cli/{git-S4LRXTRX.mjs → git-C6ZAU5JA.mjs} +5 -5
- package/dist/cli/git-NBVQ3VGW.js +25 -0
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-7MOKBL4O.mjs → legacy-noops-MUXD4HRC.mjs} +6 -6
- package/dist/cli/{legacy-noops-RGSZUD6V.js → legacy-noops-OVWX4KB3.js} +9 -9
- package/dist/cli/{monitors-XQNXDZPQ.mjs → monitors-2ZSGBY52.mjs} +8 -8
- package/dist/cli/{monitors-JEFM2C5W.js → monitors-3QVYGYWA.js} +101 -101
- package/dist/cli/{org-KTMJZGTN.mjs → org-RDSPE5FB.mjs} +7 -7
- package/dist/cli/{org-GYLA5V32.js → org-S6Z3SDLI.js} +87 -87
- package/dist/cli/{pages-WOMU2T2O.mjs → pages-K5DSMHLJ.mjs} +7 -7
- package/dist/cli/{pages-RY4U7OCL.js → pages-VUWF2OR7.js} +19 -19
- package/dist/cli/{play-KOYGGNYS.mjs → play-PZLXOYEX.mjs} +151 -102
- package/dist/cli/{play-2Q6MWJ3D.js → play-SQOJTUFC.js} +756 -707
- package/dist/cli/{providers-7YKDITJC.mjs → providers-AMIGP3D4.mjs} +7 -7
- package/dist/cli/{providers-HOIRHMN2.js → providers-FZBEPUOI.js} +10 -10
- package/dist/cli/{quickstart-RDXHSMVX.mjs → quickstart-HNOQKGOF.mjs} +4 -4
- package/dist/cli/{quickstart-OWCJOSQA.js → quickstart-QIHZDBGM.js} +6 -6
- package/dist/cli/{run-MT2ABKO5.js → run-IQGM3TO2.js} +46 -46
- package/dist/cli/{run-RT73NDP5.mjs → run-JDW6BDNT.mjs} +27 -27
- package/dist/cli/search-BNWRL3YY.js +33 -0
- package/dist/cli/{search-CJPKIGSA.mjs → search-DMVUKJ23.mjs} +9 -9
- package/dist/cli/{search-output-AREMA544.mjs → search-output-5UAPUUHH.mjs} +4 -4
- package/dist/cli/{search-output-OSBZ7WK6.js → search-output-UUW6UNHF.js} +6 -6
- package/dist/cli/{secrets-BTIY2FEJ.mjs → secrets-46KSTPFN.mjs} +7 -7
- package/dist/cli/{secrets-OV6KH633.js → secrets-U532KN24.js} +16 -16
- package/dist/cli/sessions-JZUONXH4.js +22 -0
- package/dist/cli/sessions-RUNWYHYX.mjs +22 -0
- package/dist/cli/{settings-7BQIC7QN.mjs → settings-56L3WHCY.mjs} +14 -14
- package/dist/cli/{settings-LBIECYDB.js → settings-O2A37FFA.js} +87 -87
- package/dist/cli/{setup-QZE7QR3F.js → setup-ETFSMSCH.js} +50 -50
- package/dist/cli/{setup-XPTSNNES.mjs → setup-Q27X6JZY.mjs} +10 -10
- package/dist/cli/skills-IKDJ5JDN.js +37 -0
- package/dist/cli/{skills-TGGKIQLT.mjs → skills-WFQRZL4D.mjs} +8 -8
- package/dist/cli/tools-B735AA67.js +57 -0
- package/dist/cli/{tools-MKIFX2TQ.mjs → tools-EV6CKJOX.mjs} +20 -20
- package/dist/cli/update-CNNURAM3.js +35 -0
- package/dist/cli/{update-5R3D3WNH.mjs → update-KIPPFVCH.mjs} +10 -10
- package/dist/cli/{views-VPWEINIA.js → views-DNZ2HFTA.js} +19 -19
- package/dist/cli/{views-VHKDHHUP.mjs → views-LMJXWD4N.mjs} +7 -7
- package/dist/cli/{workflow-D5DF65N6.mjs → workflow-3XKUQ73U.mjs} +8 -8
- package/dist/cli/{workflow-7K2VEQ4V.js → workflow-ZUDTIOK6.js} +18 -18
- package/dist/{client-C5_6W8yd.d.mts → client-Bd2meveV.d.mts} +1 -1
- package/dist/{client-iXW4TOat.d.ts → client-CBCVhL8U.d.ts} +1 -1
- package/dist/{client-core-Dob428Z4.d.mts → client-core-CGj8V9mw.d.mts} +67 -0
- package/dist/{client-core-B-GPfmaC.d.ts → client-core-CsRRWCFy.d.ts} +67 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +121 -118
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/play-description.js +2 -2
- package/dist/plays/play-description.mjs +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 +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-OKPHHMMP.js +0 -43
- package/dist/cli/describe-5G5NXO5E.js +0 -50
- package/dist/cli/describe-OUTXLDGZ.mjs +0 -50
- package/dist/cli/git-GDPTG52F.js +0 -25
- package/dist/cli/search-7VBA6IGS.js +0 -33
- package/dist/cli/sessions-3CO3ZFOD.mjs +0 -18
- package/dist/cli/sessions-B3WNEWRW.js +0 -18
- package/dist/cli/skills-TXBRTWEV.js +0 -37
- package/dist/cli/tools-RZJV4X3J.js +0 -57
- package/dist/cli/update-YWGGPWUA.js +0 -35
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkWITNIMLEjs = require('./chunk-WITNIMLE.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk7COEN3IRjs = require('./chunk-7COEN3IR.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -294,8 +294,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
294
294
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
295
295
|
var defaultBrowserCommandRunner = childProcess;
|
|
296
296
|
function getAuthedHttpClient() {
|
|
297
|
-
const config =
|
|
298
|
-
return { config, http: new (0,
|
|
297
|
+
const config = _chunkWITNIMLEjs.resolveConfig.call(void 0, );
|
|
298
|
+
return { config, http: new (0, _chunkWITNIMLEjs.HttpClient)(config) };
|
|
299
299
|
}
|
|
300
300
|
function stableOsUserId() {
|
|
301
301
|
try {
|
|
@@ -635,7 +635,7 @@ function collectLocalEnvInfo() {
|
|
|
635
635
|
os: `${process.platform} ${process.arch}`,
|
|
636
636
|
node_version: process.version,
|
|
637
637
|
home_dir: homeDir,
|
|
638
|
-
agent_runtime:
|
|
638
|
+
agent_runtime: _chunk7COEN3IRjs.detectAgentRuntime.call(void 0, )
|
|
639
639
|
};
|
|
640
640
|
const env = process.env;
|
|
641
641
|
const optional = {
|
|
@@ -882,9 +882,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
882
882
|
}
|
|
883
883
|
function withAgentCommandContext(value) {
|
|
884
884
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
885
|
-
return
|
|
885
|
+
return _chunk7COEN3IRjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
886
886
|
...valueRecord,
|
|
887
|
-
command_context:
|
|
887
|
+
command_context: _chunkWITNIMLEjs.resolveCliCommandContext.call(void 0, )
|
|
888
888
|
} : value;
|
|
889
889
|
}
|
|
890
890
|
function printJson(value, fields) {
|
|
@@ -1,13 +1,13 @@
|
|
|
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 _chunkWITNIMLEjs = require('./chunk-WITNIMLE.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk7COEN3IRjs = require('./chunk-7COEN3IR.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
|
|
@@ -150,7 +150,7 @@ function buildEnvironmentContext() {
|
|
|
150
150
|
node_version: process.version,
|
|
151
151
|
runtime: "Node.js",
|
|
152
152
|
hostname: _os.hostname.call(void 0, ),
|
|
153
|
-
agent_runtime:
|
|
153
|
+
agent_runtime: _chunk7COEN3IRjs.detectAgentRuntime.call(void 0, )
|
|
154
154
|
};
|
|
155
155
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
156
156
|
const normalized = _optionalChain([process, 'access', _5 => _5.env, 'access', _6 => _6[key], 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]);
|
|
@@ -171,18 +171,18 @@ function buildEnvironmentContext() {
|
|
|
171
171
|
return context;
|
|
172
172
|
}
|
|
173
173
|
function failureReportHeaders(apiKey) {
|
|
174
|
-
const agentSessionId =
|
|
174
|
+
const agentSessionId = _chunk7COEN3IRjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
175
175
|
return {
|
|
176
|
-
...
|
|
176
|
+
..._chunk7COEN3IRjs.deploymentProtectionHeaders.call(void 0, ),
|
|
177
177
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
178
178
|
Authorization: `Bearer ${apiKey}`,
|
|
179
179
|
"Content-Type": "application/json",
|
|
180
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
180
|
+
"User-Agent": `deepline-ts-sdk/${_chunk7COEN3IRjs.SDK_VERSION}`,
|
|
181
181
|
"X-Deepline-Client-Family": "sdk",
|
|
182
182
|
"X-Deepline-CLI-Family": "sdk",
|
|
183
|
-
"X-Deepline-Agent-Runtime":
|
|
184
|
-
"X-Deepline-CLI-Version":
|
|
185
|
-
"X-Deepline-SDK-Version":
|
|
183
|
+
"X-Deepline-Agent-Runtime": _chunk7COEN3IRjs.detectAgentRuntime.call(void 0, ),
|
|
184
|
+
"X-Deepline-CLI-Version": _chunk7COEN3IRjs.SDK_VERSION,
|
|
185
|
+
"X-Deepline-SDK-Version": _chunk7COEN3IRjs.SDK_VERSION
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
async function postFailureReport(input) {
|
|
@@ -210,7 +210,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
210
210
|
if (isFailureReportingDisabled()) return false;
|
|
211
211
|
let apiKey = "";
|
|
212
212
|
try {
|
|
213
|
-
apiKey =
|
|
213
|
+
apiKey = _chunkWITNIMLEjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
214
214
|
} catch (e2) {
|
|
215
215
|
return false;
|
|
216
216
|
}
|
|
@@ -237,7 +237,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
237
237
|
failure_code: failureCode2,
|
|
238
238
|
failure_stage: failureStage,
|
|
239
239
|
error_body: "Automatic Deepline skills installation failed.",
|
|
240
|
-
cli_version:
|
|
240
|
+
cli_version: _chunk7COEN3IRjs.SDK_VERSION,
|
|
241
241
|
context: {
|
|
242
242
|
environment: buildEnvironmentContext(),
|
|
243
243
|
skills_sync: {
|
|
@@ -357,7 +357,7 @@ function buildFailureReport(input) {
|
|
|
357
357
|
failure_kind: failureKind,
|
|
358
358
|
failure_code: code,
|
|
359
359
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
360
|
-
cli_version:
|
|
360
|
+
cli_version: _chunk7COEN3IRjs.SDK_VERSION,
|
|
361
361
|
context: {
|
|
362
362
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
363
363
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -377,8 +377,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
377
377
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
378
378
|
const exitCode = resolvedExitCode(input);
|
|
379
379
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
380
|
-
const baseUrl =
|
|
381
|
-
const apiKey =
|
|
380
|
+
const baseUrl = _chunkWITNIMLEjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
381
|
+
const apiKey = _chunkWITNIMLEjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
382
382
|
if (!apiKey) return false;
|
|
383
383
|
return postFailureReport({
|
|
384
384
|
baseUrl,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUTCGCES2js = require('./chunk-UTCGCES2.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunkUTCGCES2js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -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 _chunk7COEN3IRjs = require('./chunk-7COEN3IR.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkT2N3B7IQjs = require('./chunk-T2N3B7IQ.js');
|
|
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function resolveAutoSyncSkillAgents() {
|
|
714
|
-
switch (
|
|
714
|
+
switch (_chunk7COEN3IRjs.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 _chunk7COEN3IRjs.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -1181,18 +1181,16 @@ Related:
|
|
|
1181
1181
|
"plays get": {
|
|
1182
1182
|
core: `
|
|
1183
1183
|
Purpose:
|
|
1184
|
-
Full metadata for a play: revisions, source, triggers, and latest runs.
|
|
1184
|
+
[[cli:Full metadata for a play: revisions, source, triggers, and latest runs.]][[mcp:List or read the saved source files of one Play revision.]]
|
|
1185
1185
|
When:
|
|
1186
|
-
Only when describe is not enough: reading the source (
|
|
1187
|
-
file.play.ts), checking revisions, or auditing a saved play.
|
|
1186
|
+
[[cli:Only when describe is not enough: reading the source (--source --out file.play.ts), checking revisions, or auditing a saved play.]][[mcp:Before editing a saved Play. List its source paths, then read each needed file at the exact returned revision.]]
|
|
1188
1187
|
[[cli:
|
|
1189
1188
|
Input:
|
|
1190
1189
|
The play reference. --source prints or writes the source; --working,
|
|
1191
1190
|
--live, --revision <n> pick which source.
|
|
1192
1191
|
]]
|
|
1193
1192
|
Output (JSON):
|
|
1194
|
-
The play record with revision and trigger metadata; with
|
|
1195
|
-
TypeScript source.
|
|
1193
|
+
[[cli:The play record with revision and trigger metadata; with --source, the TypeScript source.]][[mcp:The revision, entrypoint, and file paths. With a file selected, the source chunk and its next offset.]]
|
|
1196
1194
|
Cost:
|
|
1197
1195
|
Free.
|
|
1198
1196
|
`
|
|
@@ -1502,7 +1500,7 @@ Input:
|
|
|
1502
1500
|
[[cli:
|
|
1503
1501
|
Output (JSON):
|
|
1504
1502
|
kind "run_overview", runUrl (the Play page with this run selected),
|
|
1505
|
-
run {id, playName, status, startedAt, finishedAt, durationMs}, steps[] {id, kind, status, label, progress {total, executed,
|
|
1503
|
+
run {id, playName, status, startedAt, finishedAt, durationMs, retries}, steps[] {id, kind, status, label, progress {total, executed,
|
|
1506
1504
|
reused, failed, completedRows}}, failures.steps[], errorDetails,
|
|
1507
1505
|
rowOutcomes, warnings[], datasets[] {datasetId, name, rowCount, summary,
|
|
1508
1506
|
storage {schema, table}, preview {returnedRows, totalRows, partial, rows}},
|
|
@@ -1532,6 +1530,15 @@ Output fields:
|
|
|
1532
1530
|
run.status queued, running, completed, failed, or stopped. Only
|
|
1533
1531
|
the last three are terminal.
|
|
1534
1532
|
run.activity the current step while running, null when finished.
|
|
1533
|
+
run.retries failure-driven retries since the last resume:
|
|
1534
|
+
platformRecoveries {preCode, postCode} and
|
|
1535
|
+
recoveryOutcome (none, recovering, recovered,
|
|
1536
|
+
exhausted), plus resumeEpoch (runs resume count).
|
|
1537
|
+
Durable waits are not retries and are not counted. A
|
|
1538
|
+
retried attempt may repeat earlier work; these are
|
|
1539
|
+
counts, not proof that anything ran once. Provider
|
|
1540
|
+
retries inside one call are not counted; read them
|
|
1541
|
+
with runs logs <run-id> --kind activity.observed.
|
|
1535
1542
|
steps[].label the step's state in one line, as the dashboard shows
|
|
1536
1543
|
it.
|
|
1537
1544
|
datasets[].summary.reportedPopulation {totalRows, persistedRows,
|
|
@@ -2110,10 +2117,13 @@ When:
|
|
|
2110
2117
|
succeeds, tell the user: "Session sent to Deepline. Rating: <rating>".
|
|
2111
2118
|
[[cli:
|
|
2112
2119
|
Input:
|
|
2113
|
-
--current-session (the calling agent's session, else the
|
|
2114
|
-
|
|
2115
|
-
optional --label), or --file
|
|
2116
|
-
|
|
2120
|
+
--current-session (the calling agent's session, else the Claude Cowork
|
|
2121
|
+
session this runs in, else the newest one started in this directory), or
|
|
2122
|
+
--session-id <uuid> (repeatable, each with an optional --label), or --file
|
|
2123
|
+
<path> for a raw file. Claude transcripts are found under
|
|
2124
|
+
$CLAUDE_CONFIG_DIR/projects, a Cowork session's ~/mnt/.claude/projects,
|
|
2125
|
+
and ~/.claude/projects. --agent auto|claude|codex limits where transcripts
|
|
2126
|
+
are looked for.
|
|
2117
2127
|
--rating good|poor|neutral, judged by outcome and not tone: good when the
|
|
2118
2128
|
user's goal was met without product problems; poor when it was missed, or
|
|
2119
2129
|
a product failure, bug, or avoidable friction (including a substantial
|
|
@@ -2128,10 +2138,6 @@ Cost:
|
|
|
2128
2138
|
Free.
|
|
2129
2139
|
Avoid:
|
|
2130
2140
|
The command is sessions, plural; the singular session form is the old one.
|
|
2131
|
-
In a Cowork sandbox the transcripts are mounted under
|
|
2132
|
-
~/mnt/.claude/projects: when no session files are found and that directory
|
|
2133
|
-
exists, link it to ~/.claude/projects and retry, or pass the newest
|
|
2134
|
-
transcript there with [[--file]].
|
|
2135
2141
|
`
|
|
2136
2142
|
},
|
|
2137
2143
|
"settings feedback": {
|
|
@@ -2153,7 +2159,9 @@ Cost:
|
|
|
2153
2159
|
core: `
|
|
2154
2160
|
Purpose:
|
|
2155
2161
|
Send a bug report or product feedback to the Deepline team. The calling
|
|
2156
|
-
agent's session id is attached, so a report can be matched to a transcript
|
|
2162
|
+
agent's session id is attached, so a report can be matched to a transcript,
|
|
2163
|
+
but the transcript itself is uploaded only with [[--attach-session]] or
|
|
2164
|
+
[[sessions send]]. Never tell the user a transcript is attached otherwise.
|
|
2157
2165
|
When:
|
|
2158
2166
|
Confirm the report text with the user before sending with [[--requested]].
|
|
2159
2167
|
When the feedback setting is off, send only if the user explicitly requests
|
|
@@ -2176,14 +2184,20 @@ Input:
|
|
|
2176
2184
|
--error-outcome terminal when an error stopped the task, continued when
|
|
2177
2185
|
work went on, including through a workaround; omit it when no error
|
|
2178
2186
|
occurred. Pass --requested when the user requested or approved the report.
|
|
2179
|
-
--
|
|
2187
|
+
--attach-session also uploads the calling agent's own session transcript
|
|
2188
|
+
(the session it names, or the Claude Cowork session) and links it; when
|
|
2189
|
+
none is found, nothing is sent. Pass it only when the user agreed to share
|
|
2190
|
+
the session. --json.
|
|
2180
2191
|
Put the evidence in the text. A slow run: the goal, the play and run id,
|
|
2181
2192
|
input size, observed duration, status changes or polling count, and what
|
|
2182
2193
|
you expected. Extra steps: the goal, the command path you took, the
|
|
2183
2194
|
detours, and the direct path you expected.
|
|
2184
2195
|
]]
|
|
2185
2196
|
Output (JSON):
|
|
2186
|
-
A confirmation envelope for the report
|
|
2197
|
+
A confirmation envelope for the report, with session_id (null when none
|
|
2198
|
+
was found), transcript_uploaded, and warnings. When an agent's session
|
|
2199
|
+
can't be found, a warning on stderr names the sessions send command that
|
|
2200
|
+
uploads the transcript.
|
|
2187
2201
|
Cost:
|
|
2188
2202
|
Free. A report does not authorize a paid reproduction or a session upload.
|
|
2189
2203
|
`
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TXJW6RIM.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2GJW4RAQ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
readToolUpstreamResponse,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
|
|
7
7
|
|
|
8
8
|
// src/cli/described.ts
|
|
9
9
|
var SHAPE = "{}";
|
|
@@ -777,6 +777,7 @@ function describedJson(described, view) {
|
|
|
777
777
|
return {
|
|
778
778
|
kind: described.kind,
|
|
779
779
|
id: described.id,
|
|
780
|
+
...described.playId ? { playId: described.playId } : {},
|
|
780
781
|
...described.provider ? { provider: described.provider } : {},
|
|
781
782
|
...described.displayName ? { displayName: described.displayName } : {},
|
|
782
783
|
...described.description ? { description: described.description } : {},
|
|
@@ -807,7 +808,7 @@ function buildPlayRunUrl(baseUrl, playName, runId) {
|
|
|
807
808
|
}
|
|
808
809
|
function describedPlay(play) {
|
|
809
810
|
const reference = play.reference || play.name;
|
|
810
|
-
const starter = _nullishCoalesce(play.cloneEditStarter, () => (
|
|
811
|
+
const starter = _nullishCoalesce(play.cloneEditStarter, () => ( _chunkPMH4GLMDjs.cloneEditStarter.call(void 0, play)));
|
|
811
812
|
const csv = _nullishCoalesce(play.csvInput, () => ( {}));
|
|
812
813
|
const csvField = typeof csv.inputField === "string" ? csv.inputField : "csv";
|
|
813
814
|
const alongside = /* @__PURE__ */ new Set([
|
|
@@ -836,6 +837,7 @@ function describedPlay(play) {
|
|
|
836
837
|
).map((field) => ({ ...field, required: true }));
|
|
837
838
|
return {
|
|
838
839
|
kind: play.ownerType === "deepline" ? "prebuilt_play" : "custom_play",
|
|
840
|
+
...play.playId ? { playId: play.playId } : {},
|
|
839
841
|
id: reference,
|
|
840
842
|
...play.displayName && play.displayName !== play.name ? { displayName: play.displayName } : {},
|
|
841
843
|
...play.description ? { description: play.description } : {},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y47OCS5V.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6COGHW7B.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -14,17 +14,17 @@ import {
|
|
|
14
14
|
sdkCliStateDirPath,
|
|
15
15
|
skillsAgentPathSegment,
|
|
16
16
|
writeSdkSkillsLocalVersion
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TXJW6RIM.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_API_CONTRACT,
|
|
20
20
|
SDK_API_MAJOR,
|
|
21
21
|
SDK_VERSION,
|
|
22
22
|
deploymentProtectionHeaders,
|
|
23
23
|
detectAgentRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2GJW4RAQ.mjs";
|
|
25
25
|
import {
|
|
26
26
|
SDK_RELEASE
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-EEYZLTXX.mjs";
|
|
28
28
|
|
|
29
29
|
// src/compat.ts
|
|
30
30
|
import { randomUUID } from "crypto";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
@@ -280,7 +280,7 @@ function extractorValueType(name) {
|
|
|
280
280
|
}
|
|
281
281
|
const named = NAMED_VALUE_SHAPES[definition.valueKind];
|
|
282
282
|
if (!named) return { type: "string" };
|
|
283
|
-
const { type, fields } =
|
|
283
|
+
const { type, fields } = _chunkXYIECA7Mjs.schemaField.call(void 0, name, named.schema, true);
|
|
284
284
|
return { type, ...fields ? { fields } : {}, shape: named.shape };
|
|
285
285
|
}
|
|
286
286
|
function jsonSchemaOf(wrapper) {
|
|
@@ -317,7 +317,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
317
317
|
description,
|
|
318
318
|
cost: stringField(recordField(tool, "pricing"), "displayText") || void 0,
|
|
319
319
|
guidance: [],
|
|
320
|
-
inputs:
|
|
320
|
+
inputs: _chunkXYIECA7Mjs.schemaFields.call(void 0,
|
|
321
321
|
recordField(tool, "payload_schema", "payloadSchema")
|
|
322
322
|
),
|
|
323
323
|
outputs: [],
|
|
@@ -354,7 +354,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
354
354
|
(path) => path.replace(/^toolResponse\.raw\./, "")
|
|
355
355
|
);
|
|
356
356
|
const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
|
|
357
|
-
const { fields, ...typed } =
|
|
357
|
+
const { fields, ...typed } = _chunkXYIECA7Mjs.schemaField.call(void 0, name, node, true);
|
|
358
358
|
const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
|
|
359
359
|
const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
|
|
360
360
|
const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
|
|
@@ -423,7 +423,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
423
423
|
],
|
|
424
424
|
rateLimit: withPlanRateLimit(
|
|
425
425
|
recordField(recordField(tool, "pricing"), "benefit").requestsPerMinute,
|
|
426
|
-
|
|
426
|
+
_chunkXYIECA7Mjs.rateLimitSummary.call(void 0,
|
|
427
427
|
recordField(contract, "executionMetadata").configuredRateLimits
|
|
428
428
|
)
|
|
429
429
|
),
|
|
@@ -431,9 +431,9 @@ function describedTool(tool, requestedToolId) {
|
|
|
431
431
|
...typeof tool.connected === "boolean" ? { connected: tool.connected } : {},
|
|
432
432
|
...credentialStatus ? { credentialStatus } : {},
|
|
433
433
|
...connectCommand ? { connectCommand } : {},
|
|
434
|
-
inputs:
|
|
434
|
+
inputs: _chunkXYIECA7Mjs.schemaFields.call(void 0, inputSchema),
|
|
435
435
|
outputs: [...lists, ...values].map(({ field }) => field),
|
|
436
|
-
rawResponse:
|
|
436
|
+
rawResponse: _chunkXYIECA7Mjs.schemaFields.call(void 0, outputSchema),
|
|
437
437
|
runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
|
|
438
438
|
};
|
|
439
439
|
}
|
package/dist/cli/command-docs.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkWL6GAZBDjs = require('./chunk-WL6GAZBD.js');
|
|
11
11
|
require('./chunk-R7J7CJPZ.js');
|
|
12
12
|
require('./chunk-YGCKMI5P.js');
|
|
13
13
|
require('./chunk-COGTRVWW.js');
|
|
@@ -20,4 +20,4 @@ require('./chunk-COGTRVWW.js');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
exports.CLI_DOC_SURFACE =
|
|
23
|
+
exports.CLI_DOC_SURFACE = _chunkWL6GAZBDjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunkWL6GAZBDjs.COMMAND_DOCS; exports.PLAY_RUNTIME_PRICING_NOTE = _chunkWL6GAZBDjs.PLAY_RUNTIME_PRICING_NOTE; exports.commandDocKey = _chunkWL6GAZBDjs.commandDocKey; exports.helpDetailFromArgv = _chunkWL6GAZBDjs.helpDetailFromArgv; exports.renderActionExplanation = _chunkWL6GAZBDjs.renderActionExplanation; exports.renderCommandExplanation = _chunkWL6GAZBDjs.renderCommandExplanation; exports.renderDocText = _chunkWL6GAZBDjs.renderDocText;
|
|
@@ -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-XVIMOB2U.mjs";
|
|
8
|
+
import "./chunk-TXJW6RIM.mjs";
|
|
9
|
+
import "./chunk-2GJW4RAQ.mjs";
|
|
10
10
|
import "./chunk-QNHHZ63P.mjs";
|
|
11
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
12
|
import "./chunk-ZPGGW27Q.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-EEYZLTXX.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 _chunkUTCGCES2js = require('./chunk-UTCGCES2.js');
|
|
8
|
+
require('./chunk-WITNIMLE.js');
|
|
9
|
+
require('./chunk-7COEN3IR.js');
|
|
10
10
|
require('./chunk-T2N3B7IQ.js');
|
|
11
11
|
require('./chunk-XNYIZMNQ.js');
|
|
12
12
|
require('./chunk-SQWET4SL.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-FMPGWAIR.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 : _chunkUTCGCES2js.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 : _chunkUTCGCES2js.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 = _chunkUTCGCES2js.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
|
+
_chunkUTCGCES2js.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(_chunkUTCGCES2js.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
|
+
_chunkUTCGCES2js.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
|
+
${_chunkUTCGCES2js.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
|
+
_chunkUTCGCES2js.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
|
+
_chunkUTCGCES2js.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"));
|