deepline 0.3.344 → 0.3.346
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +240 -66
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +40 -18
- package/dist/cli/auth-5YTC2XH2.js +31 -0
- package/dist/cli/{auth-KHHPB2DO.mjs → auth-HTWHQNMY.mjs} +4 -4
- package/dist/cli/{billing-HAR4AJZT.js → billing-4DCHVGO5.js} +71 -71
- package/dist/cli/{billing-RLK734WE.mjs → billing-X56CVZWC.mjs} +4 -4
- package/dist/cli/{chunk-SJIF45BK.js → chunk-22GXXUTB.js} +4 -4
- package/dist/cli/{chunk-DRHVFFMJ.mjs → chunk-2GRMXCLZ.mjs} +1 -1
- package/dist/cli/{chunk-FHCBNR7M.js → chunk-2RJ7RMRM.js} +8 -8
- package/dist/cli/{chunk-2MSG6WCC.mjs → chunk-3GLIYDIF.mjs} +2 -2
- package/dist/cli/{chunk-VL5IYXS3.js → chunk-4Q572AVS.js} +6 -6
- package/dist/cli/{chunk-TYPYDSNY.js → chunk-5NNSJTJ3.js} +9 -9
- package/dist/cli/{chunk-475OQE7H.js → chunk-5QG2UAYH.js} +2 -2
- package/dist/cli/{chunk-QZMF7VDU.mjs → chunk-62TKYGY6.mjs} +3 -3
- package/dist/cli/{chunk-JXCEXXKW.js → chunk-EJ2NVO5K.js} +48 -48
- package/dist/cli/{chunk-BQYPKV4P.mjs → chunk-GCBLVWDQ.mjs} +6 -6
- package/dist/cli/{chunk-Y6PJVWDY.js → chunk-GGSLHWTB.js} +1 -1
- package/dist/cli/{chunk-23D4YCM6.mjs → chunk-KQCTQGUU.mjs} +1 -1
- package/dist/cli/{chunk-MQIHCQ5Z.js → chunk-L2R72RQJ.js} +8 -8
- package/dist/cli/{chunk-RN7NIZIL.mjs → chunk-MOVEHSNM.mjs} +1 -1
- package/dist/cli/{chunk-4DIFNYJZ.mjs → chunk-NVNHV73C.mjs} +2 -2
- package/dist/cli/{chunk-M5FYGL42.mjs → chunk-O4SXVVNQ.mjs} +1 -1
- package/dist/cli/{chunk-CIV43IXR.mjs → chunk-P4IKGWYF.mjs} +4 -4
- package/dist/cli/{chunk-ZUHK5OX3.js → chunk-SGBSQHXS.js} +45 -45
- package/dist/cli/{chunk-QO6T7ETF.js → chunk-T7EVEXHS.js} +15 -15
- package/dist/cli/{chunk-J5NN6XCF.mjs → chunk-VC7M2QR7.mjs} +1 -1
- package/dist/cli/{chunk-CMK6UNJA.mjs → chunk-WKZTHHJI.mjs} +5 -5
- package/dist/cli/{chunk-XRZUDK6O.mjs → chunk-XAM3XOUA.mjs} +2 -2
- package/dist/cli/{chunk-J5P35NOT.js → chunk-YEKAGC52.js} +60 -60
- package/dist/cli/{chunk-LELCMU5K.js → chunk-YUKZHAFW.js} +26 -26
- package/dist/cli/{chunk-UWV3BA43.js → chunk-ZEUFYRUR.js} +225 -225
- package/dist/cli/{chunk-GJYCHN2L.mjs → chunk-ZR4EHO62.mjs} +2 -2
- package/dist/cli/client-4RKYHB7Z.js +20 -0
- package/dist/cli/{client-JWDU663V.mjs → client-C2KUT452.mjs} +3 -3
- package/dist/cli/{csv-7AW5GZ4K.js → csv-3TAA2MTR.js} +12 -12
- package/dist/cli/{csv-CIAWYPZO.mjs → csv-SLACAH4F.mjs} +3 -3
- package/dist/cli/{db-UENUIWQN.js → db-BT6Q3FE6.js} +29 -29
- package/dist/cli/{db-SX73JJBH.mjs → db-IN4I6KJ5.mjs} +4 -4
- package/dist/cli/{describe-4SC5G2FG.mjs → describe-EDXTYMOF.mjs} +8 -8
- package/dist/cli/{describe-7OGZQAGF.js → describe-FJZXYKFH.js} +15 -15
- package/dist/cli/{executions-YB4IAUTW.mjs → executions-X36QA5NY.mjs} +4 -4
- package/dist/cli/{executions-UDXQNB34.js → executions-YYQC2TVR.js} +6 -6
- package/dist/cli/{feedback-5SGAGRAW.js → feedback-BS3S46O3.js} +7 -7
- package/dist/cli/{feedback-76QWZSW3.mjs → feedback-KTEPHZ4S.mjs} +3 -3
- package/dist/cli/{git-ESESPEVB.mjs → git-3ZVYB63W.mjs} +4 -4
- package/dist/cli/git-ZHAD5TJN.js +23 -0
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-E74OIJCW.js → legacy-noops-V5R7ITER.js} +7 -7
- package/dist/cli/{legacy-noops-6F6QSRDB.mjs → legacy-noops-VVBJXM2K.mjs} +4 -4
- package/dist/cli/{monitors-4MIXICCR.js → monitors-J6XDE76B.js} +85 -85
- package/dist/cli/{monitors-USOHPXUY.mjs → monitors-KYTMBNUQ.mjs} +4 -4
- package/dist/cli/{org-DO3Q6L7S.js → org-MHF2NGDV.js} +60 -60
- package/dist/cli/{org-2RRIFNXJ.mjs → org-RGABGQKP.mjs} +4 -4
- package/dist/cli/{play-KAXYPLCQ.mjs → play-UII4SSA7.mjs} +7 -7
- package/dist/cli/play-ZWAH3U44.js +153 -0
- package/dist/cli/{providers-RCUITFFY.js → providers-3GDMD7T6.js} +7 -7
- package/dist/cli/{providers-FKHLPGQO.mjs → providers-LQOSKPUH.mjs} +4 -4
- package/dist/cli/{quickstart-CDBWA6IK.mjs → quickstart-GAMYLCLJ.mjs} +3 -3
- package/dist/cli/{quickstart-XGU4M4Z5.js → quickstart-R34Z7EMU.js} +5 -5
- package/dist/cli/{search-QA4DAJPS.mjs → search-AOOMDVF5.mjs} +5 -5
- package/dist/cli/search-FVB7ZNCO.js +26 -0
- package/dist/cli/{secrets-KYKXEHNR.js → secrets-T4XXIASK.js} +13 -13
- package/dist/cli/{secrets-6S2CDL2M.mjs → secrets-U7YGLUSX.mjs} +4 -4
- package/dist/cli/{sessions-PWAIUF7I.js → sessions-JQGKWKJS.js} +5 -5
- package/dist/cli/{sessions-WGLVMQYC.mjs → sessions-VPXR4DSZ.mjs} +4 -4
- package/dist/cli/{settings-FQ5CWYNQ.mjs → settings-LP55G43L.mjs} +7 -7
- package/dist/cli/{settings-CNWO5VFJ.js → settings-LXF45R7X.js} +74 -74
- package/dist/cli/{setup-RRT66ENS.mjs → setup-36QA4JI3.mjs} +6 -6
- package/dist/cli/{setup-ABIO2LJD.js → setup-MA2GLU4N.js} +41 -41
- package/dist/cli/skills-GUWC4FV7.js +28 -0
- package/dist/cli/{skills-3LY2RQE3.mjs → skills-HB6PARLZ.mjs} +4 -4
- package/dist/cli/{tools-TQMHPW3U.mjs → tools-E7K7R4AO.mjs} +6 -6
- package/dist/cli/tools-T5WIAD5Z.js +40 -0
- package/dist/cli/{update-6U4ASVZX.mjs → update-IT63P3NV.mjs} +6 -6
- package/dist/cli/update-QY6RY3A6.js +28 -0
- package/dist/cli/{workflow-GVXAFVXF.js → workflow-SJHASZ5C.js} +15 -15
- package/dist/cli/{workflow-XLE4N3W3.mjs → workflow-UO3PMX7R.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +74 -74
- 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/package.json +1 -1
- package/dist/cli/auth-6ABMIWQQ.js +0 -31
- package/dist/cli/client-KETSZR46.js +0 -20
- package/dist/cli/git-4PRJV7B3.js +0 -23
- package/dist/cli/play-SHRBJAO4.js +0 -153
- package/dist/cli/search-ZHYH2BA3.js +0 -26
- package/dist/cli/skills-OBTT3OF7.js +0 -28
- package/dist/cli/tools-DMXHSMU2.js +0 -40
- package/dist/cli/update-4CK752WQ.js +0 -28
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2GRMXCLZ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VC7M2QR7.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunk5NNSJTJ3js = require('./chunk-5NNSJTJ3.js');
|
|
7
|
+
require('./chunk-LA46MMTL.js');
|
|
8
|
+
require('./chunk-22GXXUTB.js');
|
|
9
|
+
require('./chunk-XNYIZMNQ.js');
|
|
10
|
+
require('./chunk-GGSLHWTB.js');
|
|
11
|
+
require('./chunk-S6R3OX7B.js');
|
|
12
|
+
require('./chunk-7P5AA3SN.js');
|
|
13
|
+
require('./chunk-OG64RBAC.js');
|
|
14
|
+
require('./chunk-COGTRVWW.js');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.DeeplineClient = _chunk5NNSJTJ3js.DeeplineClient; exports.MONITOR_JOB_PHASES = _chunk5NNSJTJ3js.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunk5NNSJTJ3js.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunk5NNSJTJ3js.MONITOR_JOB_STATES;
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
MONITOR_JOB_PHASES,
|
|
4
4
|
MONITOR_JOB_RECONCILIATION_STATES,
|
|
5
5
|
MONITOR_JOB_STATES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KQCTQGUU.mjs";
|
|
7
7
|
import "./chunk-CBVIJSHF.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-VC7M2QR7.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-MOVEHSNM.mjs";
|
|
11
11
|
import "./chunk-6IKARAYD.mjs";
|
|
12
12
|
import "./chunk-NXGCO4JB.mjs";
|
|
13
13
|
import "./chunk-WZYKRD7T.mjs";
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunk4Q572AVSjs = require('./chunk-4Q572AVS.js');
|
|
8
|
+
require('./chunk-22GXXUTB.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-GGSLHWTB.js');
|
|
11
11
|
require('./chunk-7P5AA3SN.js');
|
|
12
12
|
require('./chunk-OG64RBAC.js');
|
|
13
13
|
require('./chunk-COGTRVWW.js');
|
|
@@ -126,7 +126,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
126
126
|
column.length,
|
|
127
127
|
...rows.map((row) => {
|
|
128
128
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
129
|
-
return (verbose ? value :
|
|
129
|
+
return (verbose ? value : _chunk4Q572AVSjs.clip.call(void 0, value, 42)).length;
|
|
130
130
|
})
|
|
131
131
|
)
|
|
132
132
|
])
|
|
@@ -136,7 +136,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
136
136
|
const body = rows.map(
|
|
137
137
|
(row) => columns.map((column) => {
|
|
138
138
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
139
|
-
const display = verbose ? raw :
|
|
139
|
+
const display = verbose ? raw : _chunk4Q572AVSjs.clip.call(void 0, raw, 42);
|
|
140
140
|
return display.padEnd(widths[column]);
|
|
141
141
|
}).join(" | ")
|
|
142
142
|
);
|
|
@@ -156,7 +156,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
156
156
|
{ exitCode: 2 }
|
|
157
157
|
);
|
|
158
158
|
}
|
|
159
|
-
const allRows =
|
|
159
|
+
const allRows = _chunk4Q572AVSjs.readCsvRows.call(void 0, csvPath);
|
|
160
160
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
161
161
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
162
162
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -169,7 +169,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
169
169
|
if (options.summary) {
|
|
170
170
|
const summaries = summarizeColumns(selected, columns);
|
|
171
171
|
if (format === "json") {
|
|
172
|
-
|
|
172
|
+
_chunk4Q572AVSjs.printJson.call(void 0, {
|
|
173
173
|
rows: summaries,
|
|
174
174
|
total_rows: selected.length,
|
|
175
175
|
source_total_rows: allRows.length
|
|
@@ -178,7 +178,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
178
178
|
}
|
|
179
179
|
const displayRows = summaryDisplayRows(summaries);
|
|
180
180
|
if (format === "csv") {
|
|
181
|
-
process.stdout.write(
|
|
181
|
+
process.stdout.write(_chunk4Q572AVSjs.csvStringFromRows.call(void 0, displayRows));
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
184
|
process.stdout.write(
|
|
@@ -193,7 +193,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
195
|
if (format === "json") {
|
|
196
|
-
|
|
196
|
+
_chunk4Q572AVSjs.printJson.call(void 0, {
|
|
197
197
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
198
198
|
});
|
|
199
199
|
return;
|
|
@@ -436,7 +436,7 @@ async function handleCsvRenderStart(options) {
|
|
|
436
436
|
if (log) {
|
|
437
437
|
detail = `
|
|
438
438
|
CSV render log:
|
|
439
|
-
${
|
|
439
|
+
${_chunk4Q572AVSjs.clip.call(void 0, log, 2e3)}`;
|
|
440
440
|
}
|
|
441
441
|
} catch (e7) {
|
|
442
442
|
}
|
|
@@ -487,7 +487,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
487
487
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
488
488
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
489
489
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
490
|
-
|
|
490
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0, payload, {
|
|
491
491
|
json: options.json,
|
|
492
492
|
text: `${lines.join("\n")}
|
|
493
493
|
`
|
|
@@ -523,7 +523,7 @@ async function handleCsvRenderStop(options) {
|
|
|
523
523
|
};
|
|
524
524
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
525
525
|
` : "No running CSV render process found.\n";
|
|
526
|
-
|
|
526
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
527
527
|
}
|
|
528
528
|
async function handleCsvRender(action, options) {
|
|
529
529
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-2GRMXCLZ.mjs";
|
|
8
|
+
import "./chunk-VC7M2QR7.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-MOVEHSNM.mjs";
|
|
11
11
|
import "./chunk-NXGCO4JB.mjs";
|
|
12
12
|
import "./chunk-WZYKRD7T.mjs";
|
|
13
13
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -4,7 +4,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5NNSJTJ3js = require('./chunk-5NNSJTJ3.js');
|
|
8
8
|
require('./chunk-LA46MMTL.js');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -15,12 +15,12 @@ require('./chunk-LA46MMTL.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk4Q572AVSjs = require('./chunk-4Q572AVS.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk22GXXUTBjs = require('./chunk-22GXXUTB.js');
|
|
22
22
|
require('./chunk-XNYIZMNQ.js');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-GGSLHWTB.js');
|
|
24
24
|
require('./chunk-S6R3OX7B.js');
|
|
25
25
|
|
|
26
26
|
|
|
@@ -47,8 +47,8 @@ function formatCell(value) {
|
|
|
47
47
|
return text.length > 80 ? `${text.slice(0, 77)}...` : text;
|
|
48
48
|
}
|
|
49
49
|
function tableLines(result) {
|
|
50
|
-
const rows =
|
|
51
|
-
const responseColumns =
|
|
50
|
+
const rows = _chunk4Q572AVSjs.dataExportRows.call(void 0, customerDbRows(result));
|
|
51
|
+
const responseColumns = _chunk4Q572AVSjs.dataExportColumns.call(void 0,
|
|
52
52
|
rows,
|
|
53
53
|
customerDbColumnNames(result)
|
|
54
54
|
);
|
|
@@ -94,7 +94,7 @@ function tableLines(result) {
|
|
|
94
94
|
return lines;
|
|
95
95
|
}
|
|
96
96
|
function customerDbRows(result) {
|
|
97
|
-
return
|
|
97
|
+
return _chunk4Q572AVSjs.recordRows.call(void 0, result.rows);
|
|
98
98
|
}
|
|
99
99
|
function customerDbColumnNames(result) {
|
|
100
100
|
return result.columns.map((column) => column.name).filter(Boolean);
|
|
@@ -116,15 +116,15 @@ function collectErrorText(value) {
|
|
|
116
116
|
].filter(Boolean).join("\n");
|
|
117
117
|
}
|
|
118
118
|
function formatDbQueryError(sql, error) {
|
|
119
|
-
const text = error instanceof
|
|
119
|
+
const text = error instanceof _chunk22GXXUTBjs.CustomerDbQueryOutcomeUnknownError ? collectErrorText(error.cause) : collectErrorText(error);
|
|
120
120
|
const lower = text.toLowerCase();
|
|
121
121
|
const referencesStorage = /"storage"\.|storage\./i.test(sql);
|
|
122
122
|
const runIdColumnMissing = /column\s+"?run_id"?\s+does not exist/i.test(text) || /run_id.*does not exist/i.test(lower);
|
|
123
123
|
const relationMissing = /relation\s+["']?[^"']*storage[^"']*["']?\s+does not exist/i.test(text) || /42p01/i.test(text);
|
|
124
124
|
if (referencesStorage && relationMissing) {
|
|
125
125
|
return [
|
|
126
|
-
...error instanceof
|
|
127
|
-
error instanceof
|
|
126
|
+
...error instanceof _chunk22GXXUTBjs.CustomerDbQueryOutcomeUnknownError ? [error.message] : [],
|
|
127
|
+
error instanceof _chunk22GXXUTBjs.CustomerDbQueryOutcomeUnknownError ? "The server reported that the referenced storage table does not exist." : "Customer DB query failed: the referenced storage table does not exist.",
|
|
128
128
|
"Play dataset tables are created only when the corresponding ctx.dataset(...).run(...) call executes. Pilot branches, early returns, and runs that fail before the dataset do not create that table.",
|
|
129
129
|
"Use `deepline runs get <run-id> --full --json` to inspect returned dataset handles, then export them with `deepline runs export <run-id> --dataset result.rows --out rows.csv`.",
|
|
130
130
|
`Original error: ${errorMessage(error)}`
|
|
@@ -132,7 +132,7 @@ function formatDbQueryError(sql, error) {
|
|
|
132
132
|
}
|
|
133
133
|
if (referencesStorage && runIdColumnMissing) {
|
|
134
134
|
return [
|
|
135
|
-
...error instanceof
|
|
135
|
+
...error instanceof _chunk22GXXUTBjs.CustomerDbQueryOutcomeUnknownError ? [error.message] : [],
|
|
136
136
|
"Customer DB query failed: storage dataset tables use `_run_id`, not `run_id`.",
|
|
137
137
|
"Prefer `deepline runs export <run-id> --dataset result.rows --out rows.csv` unless you are doing deep table debugging.",
|
|
138
138
|
`Original error: ${errorMessage(error)}`
|
|
@@ -147,7 +147,7 @@ function writeCustomerDbCsv(result, outPath) {
|
|
|
147
147
|
const resolved = _path.resolve.call(void 0, outPath);
|
|
148
148
|
_fs.writeFileSync.call(void 0,
|
|
149
149
|
resolved,
|
|
150
|
-
|
|
150
|
+
_chunk4Q572AVSjs.dataExportCsvString.call(void 0, customerDbRows(result), customerDbColumnNames(result)),
|
|
151
151
|
"utf-8"
|
|
152
152
|
);
|
|
153
153
|
return resolved;
|
|
@@ -188,7 +188,7 @@ function dbQueryExportEnvelope(input) {
|
|
|
188
188
|
function renderDbQueryResult(result, query, options) {
|
|
189
189
|
const { sql, maxRows, operationKey } = query;
|
|
190
190
|
const { format, out: outPath, json: explicitJsonOutput = false } = options;
|
|
191
|
-
const jsonOutput = explicitJsonOutput ||
|
|
191
|
+
const jsonOutput = explicitJsonOutput || _chunk4Q572AVSjs.shouldEmitJson.call(void 0, );
|
|
192
192
|
const toolPayload = JSON.stringify({
|
|
193
193
|
sql,
|
|
194
194
|
result_mode: "rows",
|
|
@@ -199,7 +199,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
199
199
|
if (format === "csv") {
|
|
200
200
|
if (outPath) {
|
|
201
201
|
const exportedPath = writeCustomerDbCsv(result, outPath);
|
|
202
|
-
|
|
202
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
203
203
|
dbQueryExportEnvelope({
|
|
204
204
|
result,
|
|
205
205
|
format,
|
|
@@ -215,7 +215,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
215
215
|
);
|
|
216
216
|
return;
|
|
217
217
|
}
|
|
218
|
-
|
|
218
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
219
219
|
dbQueryExportEnvelope({
|
|
220
220
|
result,
|
|
221
221
|
format,
|
|
@@ -225,7 +225,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
225
225
|
}),
|
|
226
226
|
{
|
|
227
227
|
json: explicitJsonOutput,
|
|
228
|
-
text:
|
|
228
|
+
text: _chunk4Q572AVSjs.dataExportCsvString.call(void 0,
|
|
229
229
|
customerDbRows(result),
|
|
230
230
|
customerDbColumnNames(result)
|
|
231
231
|
)
|
|
@@ -234,14 +234,14 @@ function renderDbQueryResult(result, query, options) {
|
|
|
234
234
|
return;
|
|
235
235
|
}
|
|
236
236
|
if (format === "markdown") {
|
|
237
|
-
const content =
|
|
237
|
+
const content = _chunk4Q572AVSjs.markdownTableFromRows.call(void 0,
|
|
238
238
|
customerDbRows(result),
|
|
239
239
|
customerDbColumnNames(result)
|
|
240
240
|
);
|
|
241
241
|
if (outPath) {
|
|
242
242
|
const exportedPath = _path.resolve.call(void 0, outPath);
|
|
243
243
|
_fs.writeFileSync.call(void 0, exportedPath, content, "utf-8");
|
|
244
|
-
|
|
244
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
245
245
|
dbQueryExportEnvelope({
|
|
246
246
|
result,
|
|
247
247
|
format,
|
|
@@ -257,7 +257,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
257
257
|
);
|
|
258
258
|
return;
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
261
261
|
dbQueryExportEnvelope({
|
|
262
262
|
result,
|
|
263
263
|
format,
|
|
@@ -272,7 +272,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
272
272
|
);
|
|
273
273
|
return;
|
|
274
274
|
}
|
|
275
|
-
|
|
275
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
276
276
|
{
|
|
277
277
|
...result,
|
|
278
278
|
next: {
|
|
@@ -346,9 +346,9 @@ async function runDbQueryCommand(options) {
|
|
|
346
346
|
...maxRows === void 0 ? {} : { maxRows },
|
|
347
347
|
...operationKey === void 0 ? {} : { operationKey }
|
|
348
348
|
};
|
|
349
|
-
const plan =
|
|
349
|
+
const plan = _chunk5NNSJTJ3js.planCustomerDbQuery.call(void 0, query);
|
|
350
350
|
if (options.dryRun) {
|
|
351
|
-
|
|
351
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
352
352
|
{
|
|
353
353
|
dryRun: true,
|
|
354
354
|
...plan,
|
|
@@ -361,11 +361,11 @@ async function runDbQueryCommand(options) {
|
|
|
361
361
|
...out === void 0 ? {} : { file: _path.resolve.call(void 0, out) }
|
|
362
362
|
}
|
|
363
363
|
},
|
|
364
|
-
{ json: options.json ||
|
|
364
|
+
{ json: options.json || _chunk4Q572AVSjs.shouldEmitJson.call(void 0, ) }
|
|
365
365
|
);
|
|
366
366
|
return 0;
|
|
367
367
|
}
|
|
368
|
-
const client = new (0,
|
|
368
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
369
369
|
const result = await client.db.query(query);
|
|
370
370
|
renderDbQueryResult(result, query, {
|
|
371
371
|
format,
|
|
@@ -374,8 +374,8 @@ async function runDbQueryCommand(options) {
|
|
|
374
374
|
});
|
|
375
375
|
return 0;
|
|
376
376
|
} catch (error) {
|
|
377
|
-
if (error instanceof
|
|
378
|
-
|
|
377
|
+
if (error instanceof _chunk22GXXUTBjs.CustomerDbQueryOutcomeUnknownError && (options.json || _chunk4Q572AVSjs.shouldEmitJson.call(void 0, ))) {
|
|
378
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
379
379
|
{
|
|
380
380
|
ok: false,
|
|
381
381
|
error: {
|
|
@@ -423,8 +423,8 @@ function dbRepairPlainText(result) {
|
|
|
423
423
|
async function handleDbRepair(args) {
|
|
424
424
|
const providerIndex = args.indexOf("--provider");
|
|
425
425
|
const provider = providerIndex >= 0 ? _optionalChain([args, 'access', _9 => _9[providerIndex + 1], 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]) : void 0;
|
|
426
|
-
const jsonOutput =
|
|
427
|
-
const client = new (0,
|
|
426
|
+
const jsonOutput = _chunk4Q572AVSjs.argsWantJson.call(void 0, args);
|
|
427
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
428
428
|
let result;
|
|
429
429
|
try {
|
|
430
430
|
result = await client.repairIngestionStorage(
|
|
@@ -440,7 +440,7 @@ async function handleDbRepair(args) {
|
|
|
440
440
|
console.error(errorMessage2(error));
|
|
441
441
|
return 1;
|
|
442
442
|
}
|
|
443
|
-
|
|
443
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
444
444
|
{
|
|
445
445
|
command: "db repair",
|
|
446
446
|
status: result.status,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient,
|
|
6
6
|
planCustomerDbQuery
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KQCTQGUU.mjs";
|
|
8
8
|
import "./chunk-CBVIJSHF.mjs";
|
|
9
9
|
import {
|
|
10
10
|
argsWantJson,
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
printCommandEnvelope,
|
|
16
16
|
recordRows,
|
|
17
17
|
shouldEmitJson
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2GRMXCLZ.mjs";
|
|
19
19
|
import {
|
|
20
20
|
CustomerDbQueryOutcomeUnknownError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VC7M2QR7.mjs";
|
|
22
22
|
import "./chunk-DLIRSHV6.mjs";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-MOVEHSNM.mjs";
|
|
24
24
|
import "./chunk-6IKARAYD.mjs";
|
|
25
25
|
import {
|
|
26
26
|
DeeplineError
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
describedTool,
|
|
3
3
|
publicToolSchemas,
|
|
4
4
|
toolMetadataJsonForDescribe
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WKZTHHJI.mjs";
|
|
6
6
|
import {
|
|
7
7
|
describedPlay
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GCBLVWDQ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
SCHEMA_LINE_LIMIT,
|
|
11
11
|
addDescribeOptions,
|
|
@@ -16,23 +16,23 @@ import {
|
|
|
16
16
|
} from "./chunk-JOA6IKDE.mjs";
|
|
17
17
|
import "./chunk-OVDNJAJN.mjs";
|
|
18
18
|
import "./chunk-EDWJY6T4.mjs";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-62TKYGY6.mjs";
|
|
20
|
+
import "./chunk-ZR4EHO62.mjs";
|
|
21
21
|
import "./chunk-MIMASXO4.mjs";
|
|
22
22
|
import "./chunk-GVESPYSY.mjs";
|
|
23
23
|
import {
|
|
24
24
|
DeeplineClient
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KQCTQGUU.mjs";
|
|
26
26
|
import "./chunk-CBVIJSHF.mjs";
|
|
27
27
|
import "./chunk-WXLOW623.mjs";
|
|
28
28
|
import "./chunk-UFS752TU.mjs";
|
|
29
29
|
import "./chunk-GAMFK2ZP.mjs";
|
|
30
30
|
import {
|
|
31
31
|
printCommandEnvelope
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-2GRMXCLZ.mjs";
|
|
33
|
+
import "./chunk-VC7M2QR7.mjs";
|
|
34
34
|
import "./chunk-DLIRSHV6.mjs";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-MOVEHSNM.mjs";
|
|
36
36
|
import "./chunk-IIOBMOMH.mjs";
|
|
37
37
|
import "./chunk-H7HIDGZ7.mjs";
|
|
38
38
|
import "./chunk-NTVTZAVZ.mjs";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkSGBSQHXSjs = require('./chunk-SGBSQHXS.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkZEUFYRURjs = require('./chunk-ZEUFYRUR.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -16,23 +16,23 @@ var _chunkUWV3BA43js = require('./chunk-UWV3BA43.js');
|
|
|
16
16
|
var _chunkAFNEQ43Jjs = require('./chunk-AFNEQ43J.js');
|
|
17
17
|
require('./chunk-AID3OYVJ.js');
|
|
18
18
|
require('./chunk-5JLQPVNX.js');
|
|
19
|
-
require('./chunk-
|
|
20
|
-
require('./chunk-
|
|
19
|
+
require('./chunk-2RJ7RMRM.js');
|
|
20
|
+
require('./chunk-YUKZHAFW.js');
|
|
21
21
|
require('./chunk-NXDRDJ4K.js');
|
|
22
22
|
require('./chunk-LVEDPCLJ.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk5NNSJTJ3js = require('./chunk-5NNSJTJ3.js');
|
|
26
26
|
require('./chunk-LA46MMTL.js');
|
|
27
27
|
require('./chunk-QJBJZVG6.js');
|
|
28
28
|
require('./chunk-AYHLUHE5.js');
|
|
29
29
|
require('./chunk-WJYPBHTE.js');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
33
|
-
require('./chunk-
|
|
32
|
+
var _chunk4Q572AVSjs = require('./chunk-4Q572AVS.js');
|
|
33
|
+
require('./chunk-22GXXUTB.js');
|
|
34
34
|
require('./chunk-XNYIZMNQ.js');
|
|
35
|
-
require('./chunk-
|
|
35
|
+
require('./chunk-GGSLHWTB.js');
|
|
36
36
|
require('./chunk-OJVAVQLB.js');
|
|
37
37
|
require('./chunk-3KC45UVF.js');
|
|
38
38
|
require('./chunk-FKKNYKDY.js');
|
|
@@ -65,11 +65,11 @@ async function found(lookup) {
|
|
|
65
65
|
async function describeAnything(name, options, onMissing) {
|
|
66
66
|
const maintainedOnly = options.prebuilt === true || options.tool === true;
|
|
67
67
|
const wants = (filter) => (!options.kinds || options.kinds.includes(filter)) && !(maintainedOnly && filter === "custom");
|
|
68
|
-
const client = new (0,
|
|
68
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
69
69
|
const play = async (reference) => {
|
|
70
70
|
const record2 = await client.describePlay(reference);
|
|
71
71
|
return {
|
|
72
|
-
described:
|
|
72
|
+
described: _chunkZEUFYRURjs.describedPlay.call(void 0, record2),
|
|
73
73
|
record: { ...record2 },
|
|
74
74
|
schemas: {
|
|
75
75
|
inputSchema: _nullishCoalesce(record2.inputSchema, () => ( null)),
|
|
@@ -80,9 +80,9 @@ async function describeAnything(name, options, onMissing) {
|
|
|
80
80
|
const tool = async () => {
|
|
81
81
|
const record2 = await _asyncNullishCoalesce(options.fetchedTool, async () => ( await client.getTool(name)));
|
|
82
82
|
return {
|
|
83
|
-
described:
|
|
84
|
-
record:
|
|
85
|
-
schemas:
|
|
83
|
+
described: _chunkSGBSQHXSjs.describedTool.call(void 0, record2, name),
|
|
84
|
+
record: _chunkSGBSQHXSjs.toolMetadataJsonForDescribe.call(void 0, record2, name),
|
|
85
|
+
schemas: _chunkSGBSQHXSjs.publicToolSchemas.call(void 0, record2)
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
const sources = name.includes("/") ? [{ kinds: ["prebuilts", "custom"], find: () => play(name) }] : [
|
|
@@ -167,14 +167,14 @@ async function describeAnything(name, options, onMissing) {
|
|
|
167
167
|
` : text;
|
|
168
168
|
_fs.writeFileSync.call(void 0, path, content);
|
|
169
169
|
const bytes = Buffer.byteLength(content);
|
|
170
|
-
|
|
170
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
171
171
|
{ path, bytes },
|
|
172
172
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
173
173
|
` }
|
|
174
174
|
);
|
|
175
175
|
return 0;
|
|
176
176
|
}
|
|
177
|
-
|
|
177
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
178
178
|
return 0;
|
|
179
179
|
}
|
|
180
180
|
function registerDescribeCommand(program) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KQCTQGUU.mjs";
|
|
4
4
|
import "./chunk-CBVIJSHF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
printCommandEnvelope
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-2GRMXCLZ.mjs";
|
|
8
|
+
import "./chunk-VC7M2QR7.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-MOVEHSNM.mjs";
|
|
11
11
|
import "./chunk-6IKARAYD.mjs";
|
|
12
12
|
import "./chunk-NXGCO4JB.mjs";
|
|
13
13
|
import "./chunk-WZYKRD7T.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5NNSJTJ3js = require('./chunk-5NNSJTJ3.js');
|
|
4
4
|
require('./chunk-LA46MMTL.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunk4Q572AVSjs = require('./chunk-4Q572AVS.js');
|
|
8
|
+
require('./chunk-22GXXUTB.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-GGSLHWTB.js');
|
|
11
11
|
require('./chunk-S6R3OX7B.js');
|
|
12
12
|
require('./chunk-7P5AA3SN.js');
|
|
13
13
|
require('./chunk-OG64RBAC.js');
|
|
@@ -17,10 +17,10 @@ require('./chunk-COGTRVWW.js');
|
|
|
17
17
|
function registerExecutionsCommands(program) {
|
|
18
18
|
const executions = program.command("executions").description("Inspect and recover keyed tool executions.");
|
|
19
19
|
executions.command("get").description("Retrieve a tool execution by its idempotency key.").requiredOption("--idempotency-key <key>", "Stable execution recovery key").option("--json", "Emit the stable JSON response").action(async (options) => {
|
|
20
|
-
const result = await new (0,
|
|
20
|
+
const result = await new (0, _chunk5NNSJTJ3js.DeeplineClient)().executions.getByKey(
|
|
21
21
|
options.idempotencyKey
|
|
22
22
|
);
|
|
23
|
-
|
|
23
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk4Q572AVSjs = require('./chunk-4Q572AVS.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk22GXXUTBjs = require('./chunk-22GXXUTB.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-GGSLHWTB.js');
|
|
11
11
|
require('./chunk-7P5AA3SN.js');
|
|
12
12
|
require('./chunk-OG64RBAC.js');
|
|
13
13
|
require('./chunk-COGTRVWW.js');
|
|
@@ -17,18 +17,18 @@ var _commander = require('commander');
|
|
|
17
17
|
var _fs = require('fs');
|
|
18
18
|
async function handleFeedback(text, options) {
|
|
19
19
|
const message = resolveFeedbackText(text, options.file);
|
|
20
|
-
const { http } =
|
|
21
|
-
const sessionId =
|
|
20
|
+
const { http } = _chunk4Q572AVSjs.getAuthedHttpClient.call(void 0, );
|
|
21
|
+
const sessionId = _chunk22GXXUTBjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
22
22
|
const response = await http.post("/api/v2/cli/feedback", {
|
|
23
23
|
text: message,
|
|
24
24
|
requested: options.requested === true,
|
|
25
|
-
environment:
|
|
25
|
+
environment: _chunk4Q572AVSjs.collectLocalEnvInfo.call(void 0, ),
|
|
26
26
|
...sessionId ? { session_id: sessionId } : {},
|
|
27
27
|
...options.command ? { command: options.command } : {},
|
|
28
28
|
...options.payload ? { payload: options.payload } : {},
|
|
29
29
|
...options.errorOutcome ? { error_outcome: options.errorOutcome } : {}
|
|
30
30
|
});
|
|
31
|
-
|
|
31
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
32
32
|
{
|
|
33
33
|
...response,
|
|
34
34
|
render: {
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
collectLocalEnvInfo,
|
|
3
3
|
getAuthedHttpClient,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2GRMXCLZ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
agentSessionIdFromEnvironment
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VC7M2QR7.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-MOVEHSNM.mjs";
|
|
11
11
|
import "./chunk-NXGCO4JB.mjs";
|
|
12
12
|
import "./chunk-WZYKRD7T.mjs";
|
|
13
13
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
renderDeployment,
|
|
6
6
|
renderDeploymentMonitorLines,
|
|
7
7
|
renderDeploymentPlayLines
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-ZR4EHO62.mjs";
|
|
9
|
+
import "./chunk-2GRMXCLZ.mjs";
|
|
10
|
+
import "./chunk-VC7M2QR7.mjs";
|
|
11
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-MOVEHSNM.mjs";
|
|
13
13
|
import "./chunk-NXGCO4JB.mjs";
|
|
14
14
|
import "./chunk-WZYKRD7T.mjs";
|
|
15
15
|
import "./chunk-KRD6H754.mjs";
|