deepline 0.3.351 → 0.3.352
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/cli/{auth-NQLQ5QBV.mjs → auth-6ZAHOPUC.mjs} +4 -4
- package/dist/cli/auth-ZYLA55Y2.js +31 -0
- package/dist/cli/{billing-AZCBAJ6Q.js → billing-FTCAIIPO.js} +73 -73
- package/dist/cli/{billing-AXSNXOTN.mjs → billing-KE6CAAO5.mjs} +4 -4
- package/dist/cli/{chunk-L7YXXM5W.js → chunk-27JIZEAJ.js} +1 -1
- package/dist/cli/{chunk-WY5N3SSC.js → chunk-2JXDY3LE.js} +2 -2
- package/dist/cli/{chunk-BOOZ7D7V.js → chunk-2PQR43BD.js} +225 -225
- package/dist/cli/{chunk-DBWASDYS.mjs → chunk-2ULH52Q7.mjs} +27 -3
- package/dist/cli/{chunk-722274AA.mjs → chunk-3EIK6KTE.mjs} +1 -1
- package/dist/cli/{chunk-CIDP2FSO.js → chunk-4W3B4CNE.js} +9 -9
- package/dist/cli/{chunk-URBPUPJS.mjs → chunk-54IUI747.mjs} +5 -5
- package/dist/cli/{chunk-QD7W3OBA.js → chunk-5TQPSUU6.js} +8 -8
- package/dist/cli/{chunk-XFTGWGZ5.mjs → chunk-EHYJYOXF.mjs} +1 -1
- package/dist/cli/{chunk-CFALTV4O.mjs → chunk-HD2RKIVK.mjs} +2 -2
- package/dist/cli/{chunk-H5JUSKHB.mjs → chunk-HMN5SUFL.mjs} +1 -1
- package/dist/cli/{chunk-OF4N5X7Z.mjs → chunk-J5MZZVDK.mjs} +2 -2
- package/dist/cli/{chunk-JV6GFIQQ.js → chunk-L6BHFEYM.js} +45 -45
- package/dist/cli/{chunk-IKC7EPDS.mjs → chunk-NNMGGD5Z.mjs} +1 -1
- package/dist/cli/{chunk-AQQFVUDI.mjs → chunk-OWG4Y7JK.mjs} +2 -2
- package/dist/cli/{chunk-BKOYPUK2.js → chunk-P6CGAEDF.js} +26 -26
- package/dist/cli/{chunk-NUD2WO3E.js → chunk-Q3CSXWFU.js} +4 -4
- package/dist/cli/{chunk-ICZTTYDS.js → chunk-QOIXZWOE.js} +40 -16
- package/dist/cli/{chunk-QOYD2THS.mjs → chunk-SGFPTY4H.mjs} +2 -2
- package/dist/cli/{chunk-73J3BGJ3.js → chunk-SM4G43FY.js} +60 -60
- package/dist/cli/{chunk-GT5HPOM3.mjs → chunk-ULX7APDZ.mjs} +1 -1
- package/dist/cli/{chunk-7ZAG2XG5.js → chunk-V5JPRCQ2.js} +6 -6
- package/dist/cli/{chunk-SDLFAGQS.js → chunk-VLQPMYSU.js} +15 -15
- package/dist/cli/{chunk-BWFUBETD.js → chunk-VQFBIGMU.js} +48 -48
- package/dist/cli/{chunk-7BGGBA4V.mjs → chunk-XK7AH232.mjs} +4 -4
- package/dist/cli/{chunk-BR3XFSXN.mjs → chunk-YIO2PX4J.mjs} +6 -6
- package/dist/cli/{client-NTEDBLQK.mjs → client-25RBAXIY.mjs} +3 -3
- package/dist/cli/client-AY2RSEDD.js +20 -0
- package/dist/cli/{csv-SSSPKSKU.mjs → csv-7BOK5ZD7.mjs} +3 -3
- package/dist/cli/{csv-6PZZ4ARC.js → csv-7XXJZ736.js} +12 -12
- package/dist/cli/{db-XEVVDWOP.mjs → db-7Q7L5SKP.mjs} +4 -4
- package/dist/cli/{db-3YL7YWTM.js → db-TFPYJCZ5.js} +29 -29
- package/dist/cli/{describe-YZ365BKT.mjs → describe-JTEJNG67.mjs} +8 -8
- package/dist/cli/{describe-XZNQXFXD.js → describe-TQYXSFZ2.js} +15 -15
- package/dist/cli/{executions-ZAV7YCQC.mjs → executions-33MNWCXR.mjs} +4 -4
- package/dist/cli/{executions-WBTIT2RU.js → executions-XYCJEW5I.js} +6 -6
- package/dist/cli/{feedback-PRVJ26X7.js → feedback-D3RSQCQE.js} +7 -7
- package/dist/cli/{feedback-NOYG63QE.mjs → feedback-LXSEEBNL.mjs} +3 -3
- package/dist/cli/git-56MVO4Y5.js +23 -0
- package/dist/cli/{git-AOSMM4US.mjs → git-IES2ZBYO.mjs} +4 -4
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-T6DKTGZY.mjs → legacy-noops-ILCWGUAR.mjs} +4 -4
- package/dist/cli/{legacy-noops-RTNAEYVF.js → legacy-noops-YIOGLZXX.js} +7 -7
- package/dist/cli/{monitors-7ERJ4277.js → monitors-MQSSH43U.js} +85 -85
- package/dist/cli/{monitors-QIR3T2QR.mjs → monitors-R3CZHVU2.mjs} +4 -4
- package/dist/cli/{org-7P46IVVU.js → org-62P7YRHW.js} +60 -60
- package/dist/cli/{org-WNRQQZNP.mjs → org-Z75A63SM.mjs} +4 -4
- package/dist/cli/{play-57XTHKER.mjs → play-FUUFAV34.mjs} +7 -7
- package/dist/cli/play-K4RS3VMC.js +153 -0
- package/dist/cli/{providers-ET6UBGWJ.mjs → providers-OQNPHTKA.mjs} +4 -4
- package/dist/cli/{providers-USRX4UVZ.js → providers-Q2VZF65A.js} +7 -7
- package/dist/cli/{quickstart-OGZ7BZKS.mjs → quickstart-7X6HUVWX.mjs} +3 -3
- package/dist/cli/{quickstart-BPPQFMWI.js → quickstart-VZ7BYW4Y.js} +5 -5
- package/dist/cli/search-H3TNOWKP.js +26 -0
- package/dist/cli/{search-MZARI5XA.mjs → search-SJKLKSER.mjs} +5 -5
- package/dist/cli/{secrets-O6XG35SA.js → secrets-EKH3FPAO.js} +13 -13
- package/dist/cli/{secrets-WMUJ6PB4.mjs → secrets-JQUKCHON.mjs} +4 -4
- package/dist/cli/{sessions-LCHVGXMV.js → sessions-NDLKL26C.js} +5 -5
- package/dist/cli/{sessions-EYALESPC.mjs → sessions-RSFW7OYD.mjs} +4 -4
- package/dist/cli/{settings-LUGKMDDX.mjs → settings-DR4YKJTJ.mjs} +7 -7
- package/dist/cli/{settings-25YT2IQK.js → settings-HPUE5C2G.js} +74 -74
- package/dist/cli/{setup-KSRA3V42.mjs → setup-4FT6NMU6.mjs} +6 -6
- package/dist/cli/{setup-AKZWHNKU.js → setup-Y2HCWQ4D.js} +41 -41
- package/dist/cli/{skills-VJJIB4F5.mjs → skills-EQR5K67V.mjs} +4 -4
- package/dist/cli/skills-OGQZAKOB.js +28 -0
- package/dist/cli/tools-3HM7A7XQ.js +40 -0
- package/dist/cli/{tools-NYQD3VSU.mjs → tools-ZRCNCMOO.mjs} +6 -6
- package/dist/cli/{update-GU4TALAI.mjs → update-UJNIMTRS.mjs} +6 -6
- package/dist/cli/update-ZB6CXLCS.js +28 -0
- package/dist/cli/{workflow-TFOUWNEJ.js → workflow-4M63OBSC.js} +15 -15
- package/dist/cli/{workflow-T4VNPJA4.mjs → workflow-EN3TQFKU.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-YTDZKDCB.js +0 -31
- package/dist/cli/client-3GCQER5K.js +0 -20
- package/dist/cli/git-ZI4H72YR.js +0 -23
- package/dist/cli/play-QIX7RZ74.js +0 -153
- package/dist/cli/search-P447HWLU.js +0 -26
- package/dist/cli/skills-GYWMMOFQ.js +0 -28
- package/dist/cli/tools-HN6E2AH6.js +0 -40
- package/dist/cli/update-IIEKVC75.js +0 -28
|
@@ -4,7 +4,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4W3B4CNEjs = require('./chunk-4W3B4CNE.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 _chunkV5JPRCQ2js = require('./chunk-V5JPRCQ2.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkQ3CSXWFUjs = require('./chunk-Q3CSXWFU.js');
|
|
22
22
|
require('./chunk-XNYIZMNQ.js');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-27JIZEAJ.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 = _chunkV5JPRCQ2js.dataExportRows.call(void 0, customerDbRows(result));
|
|
51
|
+
const responseColumns = _chunkV5JPRCQ2js.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 _chunkV5JPRCQ2js.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 _chunkQ3CSXWFUjs.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 _chunkQ3CSXWFUjs.CustomerDbQueryOutcomeUnknownError ? [error.message] : [],
|
|
127
|
+
error instanceof _chunkQ3CSXWFUjs.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 _chunkQ3CSXWFUjs.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
|
+
_chunkV5JPRCQ2js.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 || _chunkV5JPRCQ2js.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
|
+
_chunkV5JPRCQ2js.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
|
+
_chunkV5JPRCQ2js.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: _chunkV5JPRCQ2js.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 = _chunkV5JPRCQ2js.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
|
+
_chunkV5JPRCQ2js.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
|
+
_chunkV5JPRCQ2js.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
|
+
_chunkV5JPRCQ2js.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 = _chunk4W3B4CNEjs.planCustomerDbQuery.call(void 0, query);
|
|
350
350
|
if (options.dryRun) {
|
|
351
|
-
|
|
351
|
+
_chunkV5JPRCQ2js.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 || _chunkV5JPRCQ2js.shouldEmitJson.call(void 0, ) }
|
|
365
365
|
);
|
|
366
366
|
return 0;
|
|
367
367
|
}
|
|
368
|
-
const client = new (0,
|
|
368
|
+
const client = new (0, _chunk4W3B4CNEjs.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 _chunkQ3CSXWFUjs.CustomerDbQueryOutcomeUnknownError && (options.json || _chunkV5JPRCQ2js.shouldEmitJson.call(void 0, ))) {
|
|
378
|
+
_chunkV5JPRCQ2js.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 = _chunkV5JPRCQ2js.argsWantJson.call(void 0, args);
|
|
427
|
+
const client = new (0, _chunk4W3B4CNEjs.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
|
+
_chunkV5JPRCQ2js.printCommandEnvelope.call(void 0,
|
|
444
444
|
{
|
|
445
445
|
command: "db repair",
|
|
446
446
|
status: result.status,
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
describedTool,
|
|
3
3
|
publicToolSchemas,
|
|
4
4
|
toolMetadataJsonForDescribe
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-54IUI747.mjs";
|
|
6
6
|
import {
|
|
7
7
|
describedPlay
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YIO2PX4J.mjs";
|
|
9
9
|
import {
|
|
10
10
|
SCHEMA_LINE_LIMIT,
|
|
11
11
|
addDescribeOptions,
|
|
@@ -16,23 +16,23 @@ import {
|
|
|
16
16
|
} from "./chunk-Z6B4UPM4.mjs";
|
|
17
17
|
import "./chunk-OVDNJAJN.mjs";
|
|
18
18
|
import "./chunk-EDWJY6T4.mjs";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-2ULH52Q7.mjs";
|
|
20
|
+
import "./chunk-HD2RKIVK.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-NNMGGD5Z.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-ULX7APDZ.mjs";
|
|
33
|
+
import "./chunk-3EIK6KTE.mjs";
|
|
34
34
|
import "./chunk-DLIRSHV6.mjs";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-EHYJYOXF.mjs";
|
|
36
36
|
import "./chunk-DSWSEHRX.mjs";
|
|
37
37
|
import "./chunk-H7HIDGZ7.mjs";
|
|
38
38
|
import "./chunk-7E66A24V.mjs";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkL6BHFEYMjs = require('./chunk-L6BHFEYM.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk2PQR43BDjs = require('./chunk-2PQR43BD.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -16,23 +16,23 @@ var _chunkBOOZ7D7Vjs = require('./chunk-BOOZ7D7V.js');
|
|
|
16
16
|
var _chunkMX53GIOBjs = require('./chunk-MX53GIOB.js');
|
|
17
17
|
require('./chunk-AID3OYVJ.js');
|
|
18
18
|
require('./chunk-5JLQPVNX.js');
|
|
19
|
-
require('./chunk-
|
|
20
|
-
require('./chunk-
|
|
19
|
+
require('./chunk-QOIXZWOE.js');
|
|
20
|
+
require('./chunk-P6CGAEDF.js');
|
|
21
21
|
require('./chunk-NXDRDJ4K.js');
|
|
22
22
|
require('./chunk-LVEDPCLJ.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk4W3B4CNEjs = require('./chunk-4W3B4CNE.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 _chunkV5JPRCQ2js = require('./chunk-V5JPRCQ2.js');
|
|
33
|
+
require('./chunk-Q3CSXWFU.js');
|
|
34
34
|
require('./chunk-XNYIZMNQ.js');
|
|
35
|
-
require('./chunk-
|
|
35
|
+
require('./chunk-27JIZEAJ.js');
|
|
36
36
|
require('./chunk-QGKPTBRR.js');
|
|
37
37
|
require('./chunk-3KC45UVF.js');
|
|
38
38
|
require('./chunk-5O4B6AUN.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, _chunk4W3B4CNEjs.DeeplineClient)();
|
|
69
69
|
const play = async (reference) => {
|
|
70
70
|
const record2 = await client.describePlay(reference);
|
|
71
71
|
return {
|
|
72
|
-
described:
|
|
72
|
+
described: _chunk2PQR43BDjs.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: _chunkL6BHFEYMjs.describedTool.call(void 0, record2, name),
|
|
84
|
+
record: _chunkL6BHFEYMjs.toolMetadataJsonForDescribe.call(void 0, record2, name),
|
|
85
|
+
schemas: _chunkL6BHFEYMjs.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
|
+
_chunkV5JPRCQ2js.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
|
+
_chunkV5JPRCQ2js.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-NNMGGD5Z.mjs";
|
|
4
4
|
import "./chunk-CBVIJSHF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
printCommandEnvelope
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-ULX7APDZ.mjs";
|
|
8
|
+
import "./chunk-3EIK6KTE.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-EHYJYOXF.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 _chunk4W3B4CNEjs = require('./chunk-4W3B4CNE.js');
|
|
4
4
|
require('./chunk-LA46MMTL.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkV5JPRCQ2js = require('./chunk-V5JPRCQ2.js');
|
|
8
|
+
require('./chunk-Q3CSXWFU.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-27JIZEAJ.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, _chunk4W3B4CNEjs.DeeplineClient)().executions.getByKey(
|
|
21
21
|
options.idempotencyKey
|
|
22
22
|
);
|
|
23
|
-
|
|
23
|
+
_chunkV5JPRCQ2js.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 _chunkV5JPRCQ2js = require('./chunk-V5JPRCQ2.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkQ3CSXWFUjs = require('./chunk-Q3CSXWFU.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-27JIZEAJ.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 } = _chunkV5JPRCQ2js.getAuthedHttpClient.call(void 0, );
|
|
21
|
+
const sessionId = _chunkQ3CSXWFUjs.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: _chunkV5JPRCQ2js.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
|
+
_chunkV5JPRCQ2js.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-ULX7APDZ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
agentSessionIdFromEnvironment
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3EIK6KTE.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-EHYJYOXF.mjs";
|
|
11
11
|
import "./chunk-NXGCO4JB.mjs";
|
|
12
12
|
import "./chunk-WZYKRD7T.mjs";
|
|
13
13
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkP6CGAEDFjs = require('./chunk-P6CGAEDF.js');
|
|
9
|
+
require('./chunk-V5JPRCQ2.js');
|
|
10
|
+
require('./chunk-Q3CSXWFU.js');
|
|
11
|
+
require('./chunk-XNYIZMNQ.js');
|
|
12
|
+
require('./chunk-27JIZEAJ.js');
|
|
13
|
+
require('./chunk-7P5AA3SN.js');
|
|
14
|
+
require('./chunk-OG64RBAC.js');
|
|
15
|
+
require('./chunk-COGTRVWW.js');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.handleDeploymentGet = _chunkP6CGAEDFjs.handleDeploymentGet; exports.handleDeploymentsList = _chunkP6CGAEDFjs.handleDeploymentsList; exports.registerGitCommands = _chunkP6CGAEDFjs.registerGitCommands; exports.renderDeployment = _chunkP6CGAEDFjs.renderDeployment; exports.renderDeploymentMonitorLines = _chunkP6CGAEDFjs.renderDeploymentMonitorLines; exports.renderDeploymentPlayLines = _chunkP6CGAEDFjs.renderDeploymentPlayLines;
|
|
@@ -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-HD2RKIVK.mjs";
|
|
9
|
+
import "./chunk-ULX7APDZ.mjs";
|
|
10
|
+
import "./chunk-3EIK6KTE.mjs";
|
|
11
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-EHYJYOXF.mjs";
|
|
13
13
|
import "./chunk-NXGCO4JB.mjs";
|
|
14
14
|
import "./chunk-WZYKRD7T.mjs";
|
|
15
15
|
import "./chunk-KRD6H754.mjs";
|