deepline 0.3.370 → 0.3.371
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/README.md +1 -1
- package/dist/bundling-sources/sdk/src/client.ts +8 -8
- package/dist/bundling-sources/sdk/src/release.ts +1 -7
- package/dist/bundling-sources/sdk/src/runs/overview.ts +7 -7
- package/dist/bundling-sources/sdk/src/tool-output.ts +5 -1
- package/dist/bundling-sources/sdk/src/types.ts +2 -2
- package/dist/bundling-sources/shared_libs/monitors/fleets/errors.ts +5 -5
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +18 -18
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/dataset-lifecycle-log.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +34 -9
- package/dist/cli/auth-DQVK3ZI6.js +33 -0
- package/dist/cli/{auth-RIH4S7NC.mjs → auth-LCSEXQA2.mjs} +4 -4
- package/dist/cli/{billing-Q65H5GJM.js → billing-KISDL67A.js} +148 -148
- package/dist/cli/{billing-ERNGN6WK.mjs → billing-Z7PLJC5C.mjs} +79 -79
- package/dist/cli/{chunk-MX53GIOB.js → chunk-2JRRXXTA.js} +2 -2
- package/dist/cli/{chunk-BKHNCIQD.mjs → chunk-2L6LBJVC.mjs} +193 -187
- package/dist/cli/{chunk-IDBLJSLL.mjs → chunk-3FTYFVYN.mjs} +5 -5
- package/dist/cli/{chunk-Z6B4UPM4.mjs → chunk-3GK3SH3G.mjs} +2 -2
- package/dist/cli/{chunk-4Y5UDYQK.js → chunk-44SHFHA3.js} +17 -17
- package/dist/cli/{chunk-RLXMRC6P.mjs → chunk-46JCJ7FT.mjs} +49 -96
- package/dist/cli/{chunk-XTKVXHGD.js → chunk-5BCVKWLV.js} +17 -17
- package/dist/cli/{chunk-A5RFERJQ.mjs → chunk-5S525TQV.mjs} +2 -2
- package/dist/cli/{chunk-WQZ22EQU.js → chunk-5Z7JFUNX.js} +26 -26
- package/dist/cli/{chunk-T64NZ2A7.mjs → chunk-73NIXYKH.mjs} +46 -47
- package/dist/cli/{chunk-SFI7U6CA.js → chunk-A7X7KFXX.js} +4 -4
- package/dist/cli/{chunk-YQMUTC2H.mjs → chunk-AIZKDTFF.mjs} +11 -11
- package/dist/cli/{chunk-MKFHZDBO.js → chunk-BO3ADIBV.js} +8 -8
- package/dist/cli/{chunk-NHB3UWTZ.js → chunk-C3IPN4E6.js} +17 -17
- package/dist/cli/{chunk-A4OX52RV.js → chunk-C553OZGG.js} +10 -10
- package/dist/cli/{chunk-GGRVNAOH.mjs → chunk-DOXAN2I7.mjs} +3 -3
- package/dist/cli/{chunk-YEEESF2T.js → chunk-DPVBWLBF.js} +419 -413
- package/dist/cli/{chunk-R7AAYFDQ.js → chunk-DQMTJXLK.js} +102 -103
- package/dist/cli/{chunk-NXDRDJ4K.js → chunk-E5UD3JDQ.js} +3 -1
- package/dist/cli/{chunk-LNEBKWXM.mjs → chunk-IWY7T6MR.mjs} +1 -1
- package/dist/cli/{chunk-MIMASXO4.mjs → chunk-JB6ERQUV.mjs} +3 -1
- package/dist/cli/{chunk-CTMA3C3N.js → chunk-JSK6GUY6.js} +49 -96
- package/dist/cli/{chunk-H4IQJRFC.mjs → chunk-KBJO7HIF.mjs} +9 -9
- package/dist/cli/{chunk-HHH4MPFY.mjs → chunk-KGRAQ4OR.mjs} +6 -6
- package/dist/cli/{chunk-LJWOPNJJ.mjs → chunk-KKRRIFR3.mjs} +1 -1
- package/dist/cli/{chunk-DFJDVQMH.js → chunk-N34UX4TW.js} +2 -2
- package/dist/cli/{chunk-666HPUIZ.js → chunk-NMDNUOVI.js} +1 -6
- package/dist/cli/{chunk-5DUTNG37.mjs → chunk-SEDS6ZVR.mjs} +10 -10
- package/dist/cli/{chunk-BGXG3GEI.mjs → chunk-SENW5J4O.mjs} +5 -5
- package/dist/cli/{chunk-Y2B56VN7.js → chunk-TT2YWFYW.js} +53 -53
- package/dist/cli/{chunk-A6DJC2RC.js → chunk-YENBXYUH.js} +68 -68
- package/dist/cli/{chunk-NEY2M4EZ.mjs → chunk-YYFLULK7.mjs} +1 -6
- package/dist/cli/client-JFSRNUVD.js +20 -0
- package/dist/cli/{client-QXOERIFI.mjs → client-Z3Z5EDDJ.mjs} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-V7UKQ7AC.mjs → csv-TEVHLGGA.mjs} +3 -3
- package/dist/cli/{csv-ZKIUSDIV.js → csv-XGFXV7JE.js} +12 -12
- package/dist/cli/{db-GWKRVHKS.js → db-LLZJ7UH5.js} +42 -43
- package/dist/cli/{db-QQ4BYMPY.mjs → db-OB7PMWSZ.mjs} +17 -18
- package/dist/cli/{describe-XMWXEFMS.mjs → describe-GZIRANUZ.mjs} +12 -12
- package/dist/cli/{describe-3AJI2BOS.js → describe-NWU7LI3I.js} +28 -28
- package/dist/cli/{executions-2IMCCV34.js → executions-64YZGSOW.js} +6 -6
- package/dist/cli/{executions-QV7UE5YG.mjs → executions-7UZ3ZGJ3.mjs} +4 -4
- package/dist/cli/{feedback-K6WNXZDB.mjs → feedback-2WRQRW3U.mjs} +8 -8
- package/dist/cli/{feedback-7SSJ7VPF.js → feedback-MN5CXULH.js} +12 -12
- package/dist/cli/{git-UOE2K2XQ.mjs → git-BPYVLLTY.mjs} +4 -4
- package/dist/cli/git-TJIPVSAE.js +23 -0
- package/dist/cli/index.js +98 -109
- package/dist/cli/index.mjs +46 -57
- package/dist/cli/{legacy-noops-GC43OSXL.js → legacy-noops-VMXJPLMW.js} +9 -9
- package/dist/cli/{legacy-noops-SOYPIA2X.mjs → legacy-noops-ZRPWEPX6.mjs} +6 -6
- package/dist/cli/{monitors-FLCGMXVH.mjs → monitors-5BRTBL7E.mjs} +59 -59
- package/dist/cli/{monitors-AXANB6WK.js → monitors-OQSI2VOL.js} +140 -140
- package/dist/cli/{org-MXD4BTQI.js → org-F5QS3HG4.js} +88 -87
- package/dist/cli/{org-Q7EDNZMN.mjs → org-SMZ7AGR3.mjs} +28 -27
- package/dist/cli/{play-TZROCF7E.mjs → play-CJZNLQL7.mjs} +10 -8
- package/dist/cli/play-K7HE4LBB.js +155 -0
- package/dist/cli/{providers-JEY4FTWG.mjs → providers-CBWXJRDG.mjs} +7 -7
- package/dist/cli/{providers-LOS4MHAG.js → providers-SH2HYOVR.js} +10 -10
- package/dist/cli/{quickstart-WO5KVVER.mjs → quickstart-342ENF6Q.mjs} +4 -4
- package/dist/cli/{quickstart-27UQGHEH.js → quickstart-B6EL7WDG.js} +6 -6
- package/dist/cli/{search-LZHWXC2C.mjs → search-E7DKH3SI.mjs} +5 -5
- package/dist/cli/search-SEEYCQED.js +26 -0
- package/dist/cli/{secrets-AVJGZABR.mjs → secrets-FSYIPRVS.mjs} +5 -5
- package/dist/cli/{secrets-PE7P4L7N.js → secrets-M2AW5RGE.js} +14 -14
- package/dist/cli/{sessions-I6UDBN7M.js → sessions-AFE4C3FQ.js} +5 -5
- package/dist/cli/{sessions-ZDSZTYZV.mjs → sessions-DJPGWPNA.mjs} +4 -4
- package/dist/cli/{settings-SPWH3FET.mjs → settings-KLN2A3PQ.mjs} +10 -10
- package/dist/cli/{settings-3SLMJHJ2.js → settings-VUWBNATC.js} +77 -77
- package/dist/cli/{setup-Q3CJ4T2Q.mjs → setup-BE6N5YV6.mjs} +15 -15
- package/dist/cli/{setup-R4LUWQE4.js → setup-I5IMTQCX.js} +50 -50
- package/dist/cli/skills-7XH5GMZB.js +28 -0
- package/dist/cli/{skills-FGXH432G.mjs → skills-GSNPQDUG.mjs} +4 -4
- package/dist/cli/tools-JCL4ABAF.js +40 -0
- package/dist/cli/{tools-O7C6PFF2.mjs → tools-ORCGHV4P.mjs} +8 -8
- package/dist/cli/{update-PPCQV3CD.mjs → update-UXEUWVWS.mjs} +6 -6
- package/dist/cli/update-YNZOS77Z.js +28 -0
- package/dist/cli/{workflow-Z2KYQ2JE.mjs → workflow-JBQY7JJN.mjs} +7 -7
- package/dist/cli/{workflow-ALKU4ZFD.js → workflow-R7SDICTU.js} +17 -17
- package/dist/{client-CjHv4K6D.d.mts → client-CZFMQEgO.d.mts} +6 -6
- package/dist/{client-rTuhNN-x.d.ts → client-CgSwpnb-.d.ts} +6 -6
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -15
- package/dist/index.mjs +4 -4
- package/dist/install-integrity.json +82 -82
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -5
- package/dist/release.d.ts +1 -5
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-DD3PVIRQ.js +0 -33
- package/dist/cli/client-DNAFHKWV.js +0 -20
- package/dist/cli/git-EBSF3254.js +0 -23
- package/dist/cli/play-YWQXVOBT.js +0 -153
- package/dist/cli/search-OQ3OEFUA.js +0 -26
- package/dist/cli/skills-IDXBBOUW.js +0 -28
- package/dist/cli/tools-WHLD4Y4O.js +0 -40
- package/dist/cli/update-K6HE3XKO.js +0 -28
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkBO3ADIBVjs = require('./chunk-BO3ADIBV.js');
|
|
8
|
+
require('./chunk-A7X7KFXX.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
10
|
require('./chunk-7P5AA3SN.js');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-NMDNUOVI.js');
|
|
12
12
|
require('./chunk-OG64RBAC.js');
|
|
13
13
|
require('./chunk-COGTRVWW.js');
|
|
14
14
|
|
|
@@ -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 : _chunkBO3ADIBVjs.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 : _chunkBO3ADIBVjs.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 = _chunkBO3ADIBVjs.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
|
+
_chunkBO3ADIBVjs.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(_chunkBO3ADIBVjs.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
|
+
_chunkBO3ADIBVjs.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
|
+
${_chunkBO3ADIBVjs.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
|
+
_chunkBO3ADIBVjs.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
|
+
_chunkBO3ADIBVjs.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,7 +4,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk44SHFHA3js = require('./chunk-44SHFHA3.js');
|
|
8
8
|
require('./chunk-S6R3OX7B.js');
|
|
9
9
|
require('./chunk-LA46MMTL.js');
|
|
10
10
|
|
|
@@ -16,15 +16,15 @@ require('./chunk-LA46MMTL.js');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkBO3ADIBVjs = require('./chunk-BO3ADIBV.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkA7X7KFXXjs = require('./chunk-A7X7KFXX.js');
|
|
23
23
|
require('./chunk-XNYIZMNQ.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
27
|
-
require('./chunk-
|
|
27
|
+
require('./chunk-NMDNUOVI.js');
|
|
28
28
|
require('./chunk-OG64RBAC.js');
|
|
29
29
|
require('./chunk-COGTRVWW.js');
|
|
30
30
|
|
|
@@ -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 = _chunkBO3ADIBVjs.dataExportRows.call(void 0, customerDbRows(result));
|
|
51
|
+
const responseColumns = _chunkBO3ADIBVjs.dataExportColumns.call(void 0,
|
|
52
52
|
rows,
|
|
53
53
|
customerDbColumnNames(result)
|
|
54
54
|
);
|
|
@@ -67,7 +67,7 @@ function tableLines(result) {
|
|
|
67
67
|
`Showing ${columns.length}/${responseColumns.length} columns; hidden metadata: ${hiddenColumns.join(", ")}`
|
|
68
68
|
);
|
|
69
69
|
lines.push(
|
|
70
|
-
"
|
|
70
|
+
"Select metadata columns explicitly when you need run ids/errors/stages."
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
73
|
if (rows.length === 0) {
|
|
@@ -94,7 +94,7 @@ function tableLines(result) {
|
|
|
94
94
|
return lines;
|
|
95
95
|
}
|
|
96
96
|
function customerDbRows(result) {
|
|
97
|
-
return
|
|
97
|
+
return _chunkBO3ADIBVjs.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,23 +116,23 @@ 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 _chunkA7X7KFXXjs.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 _chunkA7X7KFXXjs.CustomerDbQueryOutcomeUnknownError ? [error.message] : [],
|
|
127
|
+
error instanceof _chunkA7X7KFXXjs.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
|
-
"Use `deepline runs get <run-id> --full
|
|
129
|
+
"Use `deepline runs get <run-id> --full` 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)}`
|
|
131
131
|
].join("\n");
|
|
132
132
|
}
|
|
133
133
|
if (referencesStorage && runIdColumnMissing) {
|
|
134
134
|
return [
|
|
135
|
-
...error instanceof
|
|
135
|
+
...error instanceof _chunkA7X7KFXXjs.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
|
+
_chunkBO3ADIBVjs.dataExportCsvString.call(void 0, customerDbRows(result), customerDbColumnNames(result)),
|
|
151
151
|
"utf-8"
|
|
152
152
|
);
|
|
153
153
|
return resolved;
|
|
@@ -188,18 +188,18 @@ 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 || _chunkBO3ADIBVjs.shouldEmitJson.call(void 0, );
|
|
192
192
|
const toolPayload = JSON.stringify({
|
|
193
193
|
sql,
|
|
194
194
|
result_mode: "rows",
|
|
195
195
|
...maxRows ? { max_rows: maxRows } : {},
|
|
196
196
|
...operationKey !== void 0 ? { operation_key: operationKey } : {}
|
|
197
197
|
});
|
|
198
|
-
const toolCommand = `deepline tools execute query_customer_db --payload ${_chunkAID3OYVJjs.shellQuote.call(void 0, toolPayload)}
|
|
198
|
+
const toolCommand = `deepline tools execute query_customer_db --payload ${_chunkAID3OYVJjs.shellQuote.call(void 0, toolPayload)}`;
|
|
199
199
|
if (format === "csv") {
|
|
200
200
|
if (outPath) {
|
|
201
201
|
const exportedPath = writeCustomerDbCsv(result, outPath);
|
|
202
|
-
|
|
202
|
+
_chunkBO3ADIBVjs.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
|
+
_chunkBO3ADIBVjs.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: _chunkBO3ADIBVjs.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 = _chunkBO3ADIBVjs.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
|
+
_chunkBO3ADIBVjs.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
|
+
_chunkBO3ADIBVjs.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
|
+
_chunkBO3ADIBVjs.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 = _chunk44SHFHA3js.planCustomerDbQuery.call(void 0, query);
|
|
350
350
|
if (options.dryRun) {
|
|
351
|
-
|
|
351
|
+
_chunkBO3ADIBVjs.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 || _chunkBO3ADIBVjs.shouldEmitJson.call(void 0, ) }
|
|
365
365
|
);
|
|
366
366
|
return 0;
|
|
367
367
|
}
|
|
368
|
-
const client = new (0,
|
|
368
|
+
const client = new (0, _chunk44SHFHA3js.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 _chunkA7X7KFXXjs.CustomerDbQueryOutcomeUnknownError && (options.json || _chunkBO3ADIBVjs.shouldEmitJson.call(void 0, ))) {
|
|
378
|
+
_chunkBO3ADIBVjs.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 = _chunkBO3ADIBVjs.argsWantJson.call(void 0, args);
|
|
427
|
+
const client = new (0, _chunk44SHFHA3js.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
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
444
444
|
{
|
|
445
445
|
command: "db repair",
|
|
446
446
|
status: result.status,
|
|
@@ -480,10 +480,10 @@ function registerDbCommands(program) {
|
|
|
480
480
|
|
|
481
481
|
Examples:
|
|
482
482
|
deepline db query --sql "select * from companies limit 20"
|
|
483
|
-
deepline db query --sql "select domain, name from companies limit 20"
|
|
483
|
+
deepline db query --sql "select domain, name from companies limit 20"
|
|
484
484
|
deepline db query --sql "create table if not exists storage.agent_notes (id text primary key, note text not null)"
|
|
485
|
-
deepline db query --sql "select * from contacts" --max-rows 100
|
|
486
|
-
deepline db query --sql @query.sql
|
|
485
|
+
deepline db query --sql "select * from contacts" --max-rows 100
|
|
486
|
+
deepline db query --sql @query.sql
|
|
487
487
|
deepline db query --sql "select * from contacts limit 20" --format csv --out contacts.csv
|
|
488
488
|
deepline db query --sql "select domain, name from companies limit 20" --format markdown
|
|
489
489
|
`
|
|
@@ -492,8 +492,7 @@ Examples:
|
|
|
492
492
|
"after",
|
|
493
493
|
`
|
|
494
494
|
Notes:
|
|
495
|
-
Requires --sql (inline SQL or @file.sql). Output defaults to a compact table
|
|
496
|
-
and JSON when stdout is piped. --format table forces a table even in pipes.
|
|
495
|
+
Requires --sql (inline SQL or @file.sql). Output defaults to a compact table.
|
|
497
496
|
--json overrides --format for stdout. The active auth workspace determines scope.
|
|
498
497
|
Read permitted schemas with SELECT, EXPLAIN, or read-only WITH.
|
|
499
498
|
Write only to schema-qualified storage tables. For example, use
|
|
@@ -508,10 +507,10 @@ Examples:
|
|
|
508
507
|
|
|
509
508
|
Examples:
|
|
510
509
|
deepline db query --sql "select * from companies limit 20"
|
|
511
|
-
deepline db query --sql "select domain, name from companies limit 20"
|
|
510
|
+
deepline db query --sql "select domain, name from companies limit 20"
|
|
512
511
|
deepline db query --sql "create table if not exists storage.agent_notes (id text primary key, note text not null)"
|
|
513
|
-
deepline db query --sql "select count(*) from contacts"
|
|
514
|
-
deepline db query --sql @query.sql
|
|
512
|
+
deepline db query --sql "select count(*) from contacts"
|
|
513
|
+
deepline db query --sql @query.sql
|
|
515
514
|
deepline db query --sql "select * from contacts limit 20" --format csv --out contacts.csv
|
|
516
515
|
deepline db query --sql "select domain, name from companies limit 20" --format markdown
|
|
517
516
|
`
|
|
@@ -523,7 +522,7 @@ Examples:
|
|
|
523
522
|
"Recover this intended transactional SQL operation; separate intentions need separate keys"
|
|
524
523
|
).option("--format <format>", "Output format: table, json, csv, or markdown").option("--out <path>", "Write csv or markdown output to a file").option(
|
|
525
524
|
"--json",
|
|
526
|
-
"Emit raw JSON response
|
|
525
|
+
"Emit raw JSON response"
|
|
527
526
|
).action(async (options) => {
|
|
528
527
|
process.exitCode = await runDbQueryCommand(options);
|
|
529
528
|
});
|
|
@@ -539,14 +538,14 @@ Notes:
|
|
|
539
538
|
|
|
540
539
|
Examples:
|
|
541
540
|
deepline db repair
|
|
542
|
-
deepline db repair
|
|
541
|
+
deepline db repair
|
|
543
542
|
`
|
|
544
543
|
).option(
|
|
545
544
|
"--provider <provider>",
|
|
546
545
|
"Limit materialized-table repair to one provider"
|
|
547
546
|
).option(
|
|
548
547
|
"--json",
|
|
549
|
-
"Emit raw JSON response
|
|
548
|
+
"Emit raw JSON response"
|
|
550
549
|
).action(async (options) => {
|
|
551
550
|
process.exitCode = await handleDbRepair([
|
|
552
551
|
...options.provider ? ["--provider", options.provider] : [],
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient,
|
|
6
6
|
planCustomerDbQuery
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KBJO7HIF.mjs";
|
|
8
8
|
import "./chunk-6IKARAYD.mjs";
|
|
9
9
|
import "./chunk-CBVIJSHF.mjs";
|
|
10
10
|
import {
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
printCommandEnvelope,
|
|
17
17
|
recordRows,
|
|
18
18
|
shouldEmitJson
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DOXAN2I7.mjs";
|
|
20
20
|
import {
|
|
21
21
|
CustomerDbQueryOutcomeUnknownError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KKRRIFR3.mjs";
|
|
23
23
|
import "./chunk-DLIRSHV6.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DeeplineError
|
|
26
26
|
} from "./chunk-NXGCO4JB.mjs";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-YYFLULK7.mjs";
|
|
28
28
|
import "./chunk-WZYKRD7T.mjs";
|
|
29
29
|
import "./chunk-KRD6H754.mjs";
|
|
30
30
|
|
|
@@ -67,7 +67,7 @@ function tableLines(result) {
|
|
|
67
67
|
`Showing ${columns.length}/${responseColumns.length} columns; hidden metadata: ${hiddenColumns.join(", ")}`
|
|
68
68
|
);
|
|
69
69
|
lines.push(
|
|
70
|
-
"
|
|
70
|
+
"Select metadata columns explicitly when you need run ids/errors/stages."
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
73
|
if (rows.length === 0) {
|
|
@@ -126,7 +126,7 @@ function formatDbQueryError(sql, error) {
|
|
|
126
126
|
...error instanceof CustomerDbQueryOutcomeUnknownError ? [error.message] : [],
|
|
127
127
|
error instanceof 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
|
-
"Use `deepline runs get <run-id> --full
|
|
129
|
+
"Use `deepline runs get <run-id> --full` 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)}`
|
|
131
131
|
].join("\n");
|
|
132
132
|
}
|
|
@@ -195,7 +195,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
195
195
|
...maxRows ? { max_rows: maxRows } : {},
|
|
196
196
|
...operationKey !== void 0 ? { operation_key: operationKey } : {}
|
|
197
197
|
});
|
|
198
|
-
const toolCommand = `deepline tools execute query_customer_db --payload ${shellQuote(toolPayload)}
|
|
198
|
+
const toolCommand = `deepline tools execute query_customer_db --payload ${shellQuote(toolPayload)}`;
|
|
199
199
|
if (format === "csv") {
|
|
200
200
|
if (outPath) {
|
|
201
201
|
const exportedPath = writeCustomerDbCsv(result, outPath);
|
|
@@ -480,10 +480,10 @@ function registerDbCommands(program) {
|
|
|
480
480
|
|
|
481
481
|
Examples:
|
|
482
482
|
deepline db query --sql "select * from companies limit 20"
|
|
483
|
-
deepline db query --sql "select domain, name from companies limit 20"
|
|
483
|
+
deepline db query --sql "select domain, name from companies limit 20"
|
|
484
484
|
deepline db query --sql "create table if not exists storage.agent_notes (id text primary key, note text not null)"
|
|
485
|
-
deepline db query --sql "select * from contacts" --max-rows 100
|
|
486
|
-
deepline db query --sql @query.sql
|
|
485
|
+
deepline db query --sql "select * from contacts" --max-rows 100
|
|
486
|
+
deepline db query --sql @query.sql
|
|
487
487
|
deepline db query --sql "select * from contacts limit 20" --format csv --out contacts.csv
|
|
488
488
|
deepline db query --sql "select domain, name from companies limit 20" --format markdown
|
|
489
489
|
`
|
|
@@ -492,8 +492,7 @@ Examples:
|
|
|
492
492
|
"after",
|
|
493
493
|
`
|
|
494
494
|
Notes:
|
|
495
|
-
Requires --sql (inline SQL or @file.sql). Output defaults to a compact table
|
|
496
|
-
and JSON when stdout is piped. --format table forces a table even in pipes.
|
|
495
|
+
Requires --sql (inline SQL or @file.sql). Output defaults to a compact table.
|
|
497
496
|
--json overrides --format for stdout. The active auth workspace determines scope.
|
|
498
497
|
Read permitted schemas with SELECT, EXPLAIN, or read-only WITH.
|
|
499
498
|
Write only to schema-qualified storage tables. For example, use
|
|
@@ -508,10 +507,10 @@ Examples:
|
|
|
508
507
|
|
|
509
508
|
Examples:
|
|
510
509
|
deepline db query --sql "select * from companies limit 20"
|
|
511
|
-
deepline db query --sql "select domain, name from companies limit 20"
|
|
510
|
+
deepline db query --sql "select domain, name from companies limit 20"
|
|
512
511
|
deepline db query --sql "create table if not exists storage.agent_notes (id text primary key, note text not null)"
|
|
513
|
-
deepline db query --sql "select count(*) from contacts"
|
|
514
|
-
deepline db query --sql @query.sql
|
|
512
|
+
deepline db query --sql "select count(*) from contacts"
|
|
513
|
+
deepline db query --sql @query.sql
|
|
515
514
|
deepline db query --sql "select * from contacts limit 20" --format csv --out contacts.csv
|
|
516
515
|
deepline db query --sql "select domain, name from companies limit 20" --format markdown
|
|
517
516
|
`
|
|
@@ -523,7 +522,7 @@ Examples:
|
|
|
523
522
|
"Recover this intended transactional SQL operation; separate intentions need separate keys"
|
|
524
523
|
).option("--format <format>", "Output format: table, json, csv, or markdown").option("--out <path>", "Write csv or markdown output to a file").option(
|
|
525
524
|
"--json",
|
|
526
|
-
"Emit raw JSON response
|
|
525
|
+
"Emit raw JSON response"
|
|
527
526
|
).action(async (options) => {
|
|
528
527
|
process.exitCode = await runDbQueryCommand(options);
|
|
529
528
|
});
|
|
@@ -539,14 +538,14 @@ Notes:
|
|
|
539
538
|
|
|
540
539
|
Examples:
|
|
541
540
|
deepline db repair
|
|
542
|
-
deepline db repair
|
|
541
|
+
deepline db repair
|
|
543
542
|
`
|
|
544
543
|
).option(
|
|
545
544
|
"--provider <provider>",
|
|
546
545
|
"Limit materialized-table repair to one provider"
|
|
547
546
|
).option(
|
|
548
547
|
"--json",
|
|
549
|
-
"Emit raw JSON response
|
|
548
|
+
"Emit raw JSON response"
|
|
550
549
|
).action(async (options) => {
|
|
551
550
|
process.exitCode = await handleDbRepair([
|
|
552
551
|
...options.provider ? ["--provider", options.provider] : [],
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
describedPlay
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2L6LBJVC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
describedTool,
|
|
6
6
|
publicToolSchemas,
|
|
7
7
|
toolMetadataJsonForDescribe
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-73NIXYKH.mjs";
|
|
9
9
|
import {
|
|
10
10
|
SCHEMA_LINE_LIMIT,
|
|
11
11
|
addDescribeOptions,
|
|
@@ -13,19 +13,19 @@ import {
|
|
|
13
13
|
examples,
|
|
14
14
|
schemaLines,
|
|
15
15
|
topLevelField
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3GK3SH3G.mjs";
|
|
17
17
|
import "./chunk-OVDNJAJN.mjs";
|
|
18
18
|
import "./chunk-DSWSEHRX.mjs";
|
|
19
19
|
import "./chunk-H7HIDGZ7.mjs";
|
|
20
20
|
import "./chunk-EDWJY6T4.mjs";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-SENW5J4O.mjs";
|
|
22
|
+
import "./chunk-5S525TQV.mjs";
|
|
23
23
|
import "./chunk-ERFN2QY4.mjs";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-JB6ERQUV.mjs";
|
|
25
25
|
import "./chunk-7E66A24V.mjs";
|
|
26
26
|
import {
|
|
27
27
|
DeeplineClient
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-KBJO7HIF.mjs";
|
|
29
29
|
import "./chunk-6IKARAYD.mjs";
|
|
30
30
|
import "./chunk-CBVIJSHF.mjs";
|
|
31
31
|
import "./chunk-UFS752TU.mjs";
|
|
@@ -33,13 +33,13 @@ import "./chunk-WXLOW623.mjs";
|
|
|
33
33
|
import "./chunk-GAMFK2ZP.mjs";
|
|
34
34
|
import {
|
|
35
35
|
printCommandEnvelope
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-DOXAN2I7.mjs";
|
|
37
|
+
import "./chunk-KKRRIFR3.mjs";
|
|
38
38
|
import "./chunk-DLIRSHV6.mjs";
|
|
39
39
|
import {
|
|
40
40
|
DeeplineError
|
|
41
41
|
} from "./chunk-NXGCO4JB.mjs";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-YYFLULK7.mjs";
|
|
43
43
|
import "./chunk-WZYKRD7T.mjs";
|
|
44
44
|
import "./chunk-KRD6H754.mjs";
|
|
45
45
|
|
|
@@ -222,10 +222,10 @@ Older commands:
|
|
|
222
222
|
|
|
223
223
|
Examples:
|
|
224
224
|
deepline describe hunter_email_verifier
|
|
225
|
-
deepline describe person-linkedin-to-email
|
|
225
|
+
deepline describe person-linkedin-to-email
|
|
226
226
|
deepline describe my-play --prebuilt
|
|
227
227
|
deepline describe ai_ark_people_search --full-schema
|
|
228
|
-
deepline describe ai_ark_people_search --schema-only --
|
|
228
|
+
deepline describe ai_ark_people_search --schema-only --out schema.json
|
|
229
229
|
`
|
|
230
230
|
).action(async (name, options) => {
|
|
231
231
|
process.exitCode = await describeAnything(name, options);
|