deepline 0.3.394 → 0.3.395
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/client.ts +30 -162
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/plays/play-description.ts +167 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +1 -0
- package/dist/cli/{auth-OSXDAVCF.mjs → auth-NMQXZRS7.mjs} +4 -4
- package/dist/cli/auth-UYCOBAL5.js +39 -0
- package/dist/cli/{billing-ZNNKX3UR.mjs → billing-5MVXZRS6.mjs} +5 -4
- package/dist/cli/{billing-EKLYOXUY.js → billing-Z4JTGUU3.js} +76 -75
- package/dist/cli/{chunk-E23BQ5SC.js → chunk-36ML3YKA.js} +241 -349
- package/dist/cli/{chunk-XRQ2AQL7.mjs → chunk-3TRY7KAC.mjs} +2 -2
- package/dist/cli/{chunk-NR3DFKNF.mjs → chunk-47M6HPGP.mjs} +1 -1
- package/dist/cli/{chunk-RBJYWRCF.js → chunk-4KLCLLTO.js} +239 -237
- package/dist/cli/{chunk-CS6RAIVY.js → chunk-56IFFVIB.js} +4 -4
- package/dist/cli/chunk-5VCZ3WRH.mjs +129 -0
- package/dist/cli/{chunk-FJGW5GXU.mjs → chunk-6D7A2FSL.mjs} +1 -1
- package/dist/cli/{chunk-X63FDZJZ.mjs → chunk-7MVWUXOD.mjs} +3 -3
- package/dist/cli/{chunk-ZYBGA4AR.mjs → chunk-7XAM7KDW.mjs} +3 -3
- package/dist/cli/{chunk-BP33SIZF.mjs → chunk-BLYL3KOC.mjs} +1 -1
- package/dist/cli/{chunk-TJI2EN6K.mjs → chunk-BON3DRC6.mjs} +1 -1
- package/dist/cli/chunk-DRM3CMHL.js +129 -0
- package/dist/cli/{chunk-XXUDVEXK.mjs → chunk-EFLQHJZ6.mjs} +5 -5
- package/dist/cli/{chunk-JHIJIHFB.mjs → chunk-G4IWGRMK.mjs} +23 -131
- package/dist/cli/{chunk-KGNTKMRG.js → chunk-HRWUQJ4K.js} +6 -6
- package/dist/cli/{chunk-2MDDA7A4.js → chunk-K5T3EN6D.js} +26 -26
- package/dist/cli/{chunk-KI635JN4.js → chunk-LZLBR2SF.js} +50 -50
- package/dist/cli/{chunk-MLPU5SMZ.js → chunk-MYIBHORT.js} +2 -2
- package/dist/cli/{chunk-UXFSWG3Q.mjs → chunk-OCSG6X67.mjs} +4 -4
- package/dist/cli/{chunk-354JCXA2.js → chunk-PZ5BZ76S.js} +50 -50
- package/dist/cli/{chunk-VK6FYZLP.js → chunk-R4XZO6Z5.js} +8 -8
- package/dist/cli/{chunk-6YAUMG27.js → chunk-TO2MWPGR.js} +1 -1
- package/dist/cli/{chunk-QIQBYKLB.js → chunk-UCXK2DS4.js} +15 -15
- package/dist/cli/{chunk-KIUMEOM5.js → chunk-UKU6JM3S.js} +8 -8
- package/dist/cli/{chunk-4P27AXEA.js → chunk-VYLJJQ7Y.js} +65 -65
- package/dist/cli/{chunk-M57J2SK4.mjs → chunk-WCCKMLHL.mjs} +2 -2
- package/dist/cli/{chunk-5BB2RGAX.mjs → chunk-XMAPE2KH.mjs} +15 -13
- package/dist/cli/{chunk-MFB2VKBO.mjs → chunk-ZWH2TFA7.mjs} +2 -2
- package/dist/cli/{csv-LU7O75WE.js → csv-HTS5ZYQ4.js} +12 -12
- package/dist/cli/{csv-5AXRB35H.mjs → csv-SVOD5UBH.mjs} +3 -3
- package/dist/cli/{db-F7YTFKVM.js → db-7AP4P52N.js} +30 -29
- package/dist/cli/{db-7XP5UWEW.mjs → db-7QLNI3Q4.mjs} +5 -4
- package/dist/cli/{describe-K4ES5LIL.mjs → describe-DBRY5BNK.mjs} +10 -9
- package/dist/cli/{describe-FRH32RDV.js → describe-YKOE54ZO.js} +20 -19
- package/dist/cli/{executions-RZV5XPT2.js → executions-GRQXTB2P.js} +7 -6
- package/dist/cli/{executions-IEHEHJUO.mjs → executions-QNZTPNG4.mjs} +5 -4
- package/dist/cli/{feedback-FPUVZBAN.mjs → feedback-JMCSR624.mjs} +3 -3
- package/dist/cli/{feedback-3P65QTX3.js → feedback-ZOLA2KY7.js} +7 -7
- package/dist/cli/git-EJQLRK27.js +23 -0
- package/dist/cli/{git-GLVVP7TY.mjs → git-LJGL2IHS.mjs} +4 -4
- package/dist/cli/index.js +94 -94
- package/dist/cli/index.mjs +42 -42
- package/dist/cli/{legacy-noops-3MOI6NBM.mjs → legacy-noops-F23PKVBN.mjs} +4 -4
- package/dist/cli/{legacy-noops-XKSGZR7Q.js → legacy-noops-YSCIR2SD.js} +7 -7
- package/dist/cli/{monitors-FTBGNEFG.mjs → monitors-S4LOEL7W.mjs} +5 -4
- package/dist/cli/{monitors-NZ2DYNST.js → monitors-WMZ6HJZX.js} +86 -85
- package/dist/cli/{org-MCKDQXIV.js → org-PFHM5ZLY.js} +65 -64
- package/dist/cli/{org-V2J5RBCN.mjs → org-U3WA2NQM.mjs} +5 -4
- package/dist/cli/{play-AJFGME3B.mjs → play-AGSECQFN.mjs} +8 -7
- package/dist/cli/play-BR2LWGXK.js +159 -0
- package/dist/cli/{providers-I6RQJZFZ.mjs → providers-QBBRFBOH.mjs} +5 -4
- package/dist/cli/{providers-2JEZ2264.js → providers-XYMHLKCA.js} +8 -7
- package/dist/cli/{quickstart-BIDQDMO4.mjs → quickstart-5JTDGISY.mjs} +3 -3
- package/dist/cli/{quickstart-GJ2RPDU3.js → quickstart-IYGD6ZY3.js} +5 -5
- package/dist/cli/{search-ELRXFWG5.mjs → search-X6W6GRHS.mjs} +6 -5
- package/dist/cli/search-ZVSYH5GY.js +28 -0
- package/dist/cli/{secrets-SQXGZXIC.mjs → secrets-N55B67H6.mjs} +5 -4
- package/dist/cli/{secrets-53IT6VXD.js → secrets-UHG6OQFD.js} +14 -13
- package/dist/cli/{sessions-CAV5M77Y.js → sessions-57L5MGHN.js} +5 -5
- package/dist/cli/{sessions-2X5QF7SL.mjs → sessions-JTRSTDSS.mjs} +4 -4
- package/dist/cli/{settings-532WNAZO.js → settings-ATX4U5AS.js} +75 -74
- package/dist/cli/{settings-7P67VGCJ.mjs → settings-Q24HRAQI.mjs} +8 -7
- package/dist/cli/{setup-QGGBV2LE.mjs → setup-77ZWLVHT.mjs} +6 -6
- package/dist/cli/{setup-6L2VSUWJ.js → setup-EJCNOUCE.js} +41 -41
- package/dist/cli/skills-SPXUBLII.js +28 -0
- package/dist/cli/{skills-3FE62WBG.mjs → skills-XIS5AWQI.mjs} +4 -4
- package/dist/cli/tools-DBHUUZJX.js +42 -0
- package/dist/cli/{tools-DMR25DEF.mjs → tools-WCKLYEGQ.mjs} +7 -6
- package/dist/cli/{update-6RZMHJZP.mjs → update-UT5WANMV.mjs} +6 -6
- package/dist/cli/update-VSNFXRHJ.js +28 -0
- package/dist/cli/{workflow-TX4F2PIX.js → workflow-226QYUN2.js} +16 -15
- package/dist/cli/{workflow-L2DQRE6R.mjs → workflow-ZMX3L4ML.mjs} +6 -5
- package/dist/{client-C3O1Ipf3.d.ts → client-CivP-PAI.d.ts} +21 -12
- package/dist/{client-BktIPdIj.d.mts → client-hdFtwhTm.d.mts} +21 -12
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -6
- package/dist/index.mjs +4 -3
- package/dist/install-integrity.json +81 -74
- package/dist/plays/play-description.d.mts +6 -0
- package/dist/plays/play-description.d.ts +6 -0
- package/dist/plays/play-description.js +9 -0
- package/dist/plays/play-description.mjs +9 -0
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +6 -1
- package/dist/cli/auth-IHKISLJQ.js +0 -39
- package/dist/cli/git-MFFAWVVX.js +0 -23
- package/dist/cli/play-WLSN2EO2.js +0 -158
- package/dist/cli/search-5VN4YD4I.js +0 -27
- package/dist/cli/skills-S6NPZAN7.js +0 -28
- package/dist/cli/tools-647RLXQS.js +0 -41
- package/dist/cli/update-WVTSC3EM.js +0 -28
|
@@ -4,9 +4,10 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk36ML3YKAjs = require('./chunk-36ML3YKA.js');
|
|
8
8
|
require('./chunk-S6R3OX7B.js');
|
|
9
9
|
require('./chunk-UHNDVD3P.js');
|
|
10
|
+
require('./chunk-DRM3CMHL.js');
|
|
10
11
|
require('./chunk-XDVT3GOM.js');
|
|
11
12
|
|
|
12
13
|
|
|
@@ -17,15 +18,15 @@ require('./chunk-XDVT3GOM.js');
|
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
20
|
-
var
|
|
21
|
+
var _chunkHRWUQJ4Kjs = require('./chunk-HRWUQJ4K.js');
|
|
21
22
|
|
|
22
23
|
|
|
23
|
-
var
|
|
24
|
+
var _chunk56IFFVIBjs = require('./chunk-56IFFVIB.js');
|
|
24
25
|
require('./chunk-XNYIZMNQ.js');
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
28
|
-
require('./chunk-
|
|
29
|
+
require('./chunk-TO2MWPGR.js');
|
|
29
30
|
require('./chunk-OG64RBAC.js');
|
|
30
31
|
require('./chunk-COGTRVWW.js');
|
|
31
32
|
|
|
@@ -48,8 +49,8 @@ function formatCell(value) {
|
|
|
48
49
|
return text.length > 80 ? `${text.slice(0, 77)}...` : text;
|
|
49
50
|
}
|
|
50
51
|
function tableLines(result) {
|
|
51
|
-
const rows =
|
|
52
|
-
const responseColumns =
|
|
52
|
+
const rows = _chunkHRWUQJ4Kjs.dataExportRows.call(void 0, customerDbRows(result));
|
|
53
|
+
const responseColumns = _chunkHRWUQJ4Kjs.dataExportColumns.call(void 0,
|
|
53
54
|
rows,
|
|
54
55
|
customerDbColumnNames(result)
|
|
55
56
|
);
|
|
@@ -95,7 +96,7 @@ function tableLines(result) {
|
|
|
95
96
|
return lines;
|
|
96
97
|
}
|
|
97
98
|
function customerDbRows(result) {
|
|
98
|
-
return
|
|
99
|
+
return _chunkHRWUQJ4Kjs.recordRows.call(void 0, result.rows);
|
|
99
100
|
}
|
|
100
101
|
function customerDbColumnNames(result) {
|
|
101
102
|
return result.columns.map((column) => column.name).filter(Boolean);
|
|
@@ -117,15 +118,15 @@ function collectErrorText(value) {
|
|
|
117
118
|
].filter(Boolean).join("\n");
|
|
118
119
|
}
|
|
119
120
|
function formatDbQueryError(sql, error) {
|
|
120
|
-
const text = error instanceof
|
|
121
|
+
const text = error instanceof _chunk56IFFVIBjs.CustomerDbQueryOutcomeUnknownError ? collectErrorText(error.cause) : collectErrorText(error);
|
|
121
122
|
const lower = text.toLowerCase();
|
|
122
123
|
const referencesStorage = /"storage"\.|storage\./i.test(sql);
|
|
123
124
|
const runIdColumnMissing = /column\s+"?run_id"?\s+does not exist/i.test(text) || /run_id.*does not exist/i.test(lower);
|
|
124
125
|
const relationMissing = /relation\s+["']?[^"']*storage[^"']*["']?\s+does not exist/i.test(text) || /42p01/i.test(text);
|
|
125
126
|
if (referencesStorage && relationMissing) {
|
|
126
127
|
return [
|
|
127
|
-
...error instanceof
|
|
128
|
-
error instanceof
|
|
128
|
+
...error instanceof _chunk56IFFVIBjs.CustomerDbQueryOutcomeUnknownError ? [error.message] : [],
|
|
129
|
+
error instanceof _chunk56IFFVIBjs.CustomerDbQueryOutcomeUnknownError ? "The server reported that the referenced storage table does not exist." : "Customer DB query failed: the referenced storage table does not exist.",
|
|
129
130
|
"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.",
|
|
130
131
|
"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`.",
|
|
131
132
|
`Original error: ${errorMessage(error)}`
|
|
@@ -133,7 +134,7 @@ function formatDbQueryError(sql, error) {
|
|
|
133
134
|
}
|
|
134
135
|
if (referencesStorage && runIdColumnMissing) {
|
|
135
136
|
return [
|
|
136
|
-
...error instanceof
|
|
137
|
+
...error instanceof _chunk56IFFVIBjs.CustomerDbQueryOutcomeUnknownError ? [error.message] : [],
|
|
137
138
|
"Customer DB query failed: storage dataset tables use `_run_id`, not `run_id`.",
|
|
138
139
|
"Prefer `deepline runs export <run-id> --dataset result.rows --out rows.csv` unless you are doing deep table debugging.",
|
|
139
140
|
`Original error: ${errorMessage(error)}`
|
|
@@ -148,7 +149,7 @@ function writeCustomerDbCsv(result, outPath) {
|
|
|
148
149
|
const resolved = _path.resolve.call(void 0, outPath);
|
|
149
150
|
_fs.writeFileSync.call(void 0,
|
|
150
151
|
resolved,
|
|
151
|
-
|
|
152
|
+
_chunkHRWUQJ4Kjs.dataExportCsvString.call(void 0, customerDbRows(result), customerDbColumnNames(result)),
|
|
152
153
|
"utf-8"
|
|
153
154
|
);
|
|
154
155
|
return resolved;
|
|
@@ -189,7 +190,7 @@ function dbQueryExportEnvelope(input) {
|
|
|
189
190
|
function renderDbQueryResult(result, query, options) {
|
|
190
191
|
const { sql, maxRows, operationKey } = query;
|
|
191
192
|
const { format, out: outPath, json: explicitJsonOutput = false } = options;
|
|
192
|
-
const jsonOutput = explicitJsonOutput ||
|
|
193
|
+
const jsonOutput = explicitJsonOutput || _chunkHRWUQJ4Kjs.shouldEmitJson.call(void 0, );
|
|
193
194
|
const toolPayload = JSON.stringify({
|
|
194
195
|
sql,
|
|
195
196
|
result_mode: "rows",
|
|
@@ -200,7 +201,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
200
201
|
if (format === "csv") {
|
|
201
202
|
if (outPath) {
|
|
202
203
|
const exportedPath = writeCustomerDbCsv(result, outPath);
|
|
203
|
-
|
|
204
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
204
205
|
dbQueryExportEnvelope({
|
|
205
206
|
result,
|
|
206
207
|
format,
|
|
@@ -216,7 +217,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
216
217
|
);
|
|
217
218
|
return;
|
|
218
219
|
}
|
|
219
|
-
|
|
220
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
220
221
|
dbQueryExportEnvelope({
|
|
221
222
|
result,
|
|
222
223
|
format,
|
|
@@ -226,7 +227,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
226
227
|
}),
|
|
227
228
|
{
|
|
228
229
|
json: explicitJsonOutput,
|
|
229
|
-
text:
|
|
230
|
+
text: _chunkHRWUQJ4Kjs.dataExportCsvString.call(void 0,
|
|
230
231
|
customerDbRows(result),
|
|
231
232
|
customerDbColumnNames(result)
|
|
232
233
|
)
|
|
@@ -235,14 +236,14 @@ function renderDbQueryResult(result, query, options) {
|
|
|
235
236
|
return;
|
|
236
237
|
}
|
|
237
238
|
if (format === "markdown") {
|
|
238
|
-
const content =
|
|
239
|
+
const content = _chunkHRWUQJ4Kjs.markdownTableFromRows.call(void 0,
|
|
239
240
|
customerDbRows(result),
|
|
240
241
|
customerDbColumnNames(result)
|
|
241
242
|
);
|
|
242
243
|
if (outPath) {
|
|
243
244
|
const exportedPath = _path.resolve.call(void 0, outPath);
|
|
244
245
|
_fs.writeFileSync.call(void 0, exportedPath, content, "utf-8");
|
|
245
|
-
|
|
246
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
246
247
|
dbQueryExportEnvelope({
|
|
247
248
|
result,
|
|
248
249
|
format,
|
|
@@ -258,7 +259,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
258
259
|
);
|
|
259
260
|
return;
|
|
260
261
|
}
|
|
261
|
-
|
|
262
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
262
263
|
dbQueryExportEnvelope({
|
|
263
264
|
result,
|
|
264
265
|
format,
|
|
@@ -273,7 +274,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
273
274
|
);
|
|
274
275
|
return;
|
|
275
276
|
}
|
|
276
|
-
|
|
277
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
277
278
|
{
|
|
278
279
|
...result,
|
|
279
280
|
next: {
|
|
@@ -347,9 +348,9 @@ async function runDbQueryCommand(options) {
|
|
|
347
348
|
...maxRows === void 0 ? {} : { maxRows },
|
|
348
349
|
...operationKey === void 0 ? {} : { operationKey }
|
|
349
350
|
};
|
|
350
|
-
const plan =
|
|
351
|
+
const plan = _chunk36ML3YKAjs.planCustomerDbQuery.call(void 0, query);
|
|
351
352
|
if (options.dryRun) {
|
|
352
|
-
|
|
353
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
353
354
|
{
|
|
354
355
|
dryRun: true,
|
|
355
356
|
...plan,
|
|
@@ -362,11 +363,11 @@ async function runDbQueryCommand(options) {
|
|
|
362
363
|
...out === void 0 ? {} : { file: _path.resolve.call(void 0, out) }
|
|
363
364
|
}
|
|
364
365
|
},
|
|
365
|
-
{ json: options.json ||
|
|
366
|
+
{ json: options.json || _chunkHRWUQJ4Kjs.shouldEmitJson.call(void 0, ) }
|
|
366
367
|
);
|
|
367
368
|
return 0;
|
|
368
369
|
}
|
|
369
|
-
const client = new (0,
|
|
370
|
+
const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
|
|
370
371
|
const result = await client.db.query(query);
|
|
371
372
|
renderDbQueryResult(result, query, {
|
|
372
373
|
format,
|
|
@@ -375,8 +376,8 @@ async function runDbQueryCommand(options) {
|
|
|
375
376
|
});
|
|
376
377
|
return 0;
|
|
377
378
|
} catch (error) {
|
|
378
|
-
if (error instanceof
|
|
379
|
-
|
|
379
|
+
if (error instanceof _chunk56IFFVIBjs.CustomerDbQueryOutcomeUnknownError && (options.json || _chunkHRWUQJ4Kjs.shouldEmitJson.call(void 0, ))) {
|
|
380
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
380
381
|
{
|
|
381
382
|
ok: false,
|
|
382
383
|
error: {
|
|
@@ -424,8 +425,8 @@ function dbRepairPlainText(result) {
|
|
|
424
425
|
async function handleDbRepair(args) {
|
|
425
426
|
const providerIndex = args.indexOf("--provider");
|
|
426
427
|
const provider = providerIndex >= 0 ? _optionalChain([args, 'access', _9 => _9[providerIndex + 1], 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]) : void 0;
|
|
427
|
-
const jsonOutput =
|
|
428
|
-
const client = new (0,
|
|
428
|
+
const jsonOutput = _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
|
|
429
|
+
const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
|
|
429
430
|
let result;
|
|
430
431
|
try {
|
|
431
432
|
result = await client.repairIngestionStorage(
|
|
@@ -441,7 +442,7 @@ async function handleDbRepair(args) {
|
|
|
441
442
|
console.error(errorMessage2(error));
|
|
442
443
|
return 1;
|
|
443
444
|
}
|
|
444
|
-
|
|
445
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
445
446
|
{
|
|
446
447
|
command: "db repair",
|
|
447
448
|
status: result.status,
|
|
@@ -4,9 +4,10 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient,
|
|
6
6
|
planCustomerDbQuery
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-G4IWGRMK.mjs";
|
|
8
8
|
import "./chunk-6IKARAYD.mjs";
|
|
9
9
|
import "./chunk-JI2B4RZP.mjs";
|
|
10
|
+
import "./chunk-5VCZ3WRH.mjs";
|
|
10
11
|
import "./chunk-UBKA33KY.mjs";
|
|
11
12
|
import {
|
|
12
13
|
argsWantJson,
|
|
@@ -17,15 +18,15 @@ import {
|
|
|
17
18
|
printCommandEnvelope,
|
|
18
19
|
recordRows,
|
|
19
20
|
shouldEmitJson
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-47M6HPGP.mjs";
|
|
21
22
|
import {
|
|
22
23
|
CustomerDbQueryOutcomeUnknownError
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6D7A2FSL.mjs";
|
|
24
25
|
import "./chunk-DLIRSHV6.mjs";
|
|
25
26
|
import {
|
|
26
27
|
DeeplineError
|
|
27
28
|
} from "./chunk-NXGCO4JB.mjs";
|
|
28
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-BON3DRC6.mjs";
|
|
29
30
|
import "./chunk-WZYKRD7T.mjs";
|
|
30
31
|
import "./chunk-KRD6H754.mjs";
|
|
31
32
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildPlayDashboardUrl,
|
|
3
3
|
describedPlay
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XMAPE2KH.mjs";
|
|
5
|
+
import "./chunk-3TRY7KAC.mjs";
|
|
5
6
|
import {
|
|
6
7
|
describedTool,
|
|
7
8
|
formatModelDescription,
|
|
8
9
|
publicToolSchemas,
|
|
9
10
|
toolMetadataJsonForDescribe
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EFLQHJZ6.mjs";
|
|
11
12
|
import {
|
|
12
13
|
SCHEMA_LINE_LIMIT,
|
|
13
14
|
addDescribeOptions,
|
|
@@ -22,29 +23,29 @@ import "./chunk-OVDNJAJN.mjs";
|
|
|
22
23
|
import "./chunk-3HWALOL2.mjs";
|
|
23
24
|
import "./chunk-H7HIDGZ7.mjs";
|
|
24
25
|
import "./chunk-HQXL5526.mjs";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-XRQ2AQL7.mjs";
|
|
26
|
+
import "./chunk-7XAM7KDW.mjs";
|
|
27
27
|
import "./chunk-ERFN2QY4.mjs";
|
|
28
28
|
import "./chunk-KZZC33PY.mjs";
|
|
29
29
|
import "./chunk-3HU47EGZ.mjs";
|
|
30
30
|
import {
|
|
31
31
|
DeeplineClient
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-G4IWGRMK.mjs";
|
|
33
33
|
import "./chunk-6IKARAYD.mjs";
|
|
34
34
|
import "./chunk-JI2B4RZP.mjs";
|
|
35
|
+
import "./chunk-5VCZ3WRH.mjs";
|
|
35
36
|
import "./chunk-UBKA33KY.mjs";
|
|
36
37
|
import "./chunk-UFS752TU.mjs";
|
|
37
|
-
import "./chunk-WXLOW623.mjs";
|
|
38
38
|
import "./chunk-GAMFK2ZP.mjs";
|
|
39
|
+
import "./chunk-WXLOW623.mjs";
|
|
39
40
|
import {
|
|
40
41
|
printCommandEnvelope
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-47M6HPGP.mjs";
|
|
43
|
+
import "./chunk-6D7A2FSL.mjs";
|
|
43
44
|
import "./chunk-DLIRSHV6.mjs";
|
|
44
45
|
import {
|
|
45
46
|
DeeplineError
|
|
46
47
|
} from "./chunk-NXGCO4JB.mjs";
|
|
47
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-BON3DRC6.mjs";
|
|
48
49
|
import "./chunk-WZYKRD7T.mjs";
|
|
49
50
|
import "./chunk-KRD6H754.mjs";
|
|
50
51
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk4KLCLLTOjs = require('./chunk-4KLCLLTO.js');
|
|
5
|
+
require('./chunk-K5T3EN6D.js');
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
|
-
var
|
|
11
|
+
var _chunkLZLBR2SFjs = require('./chunk-LZLBR2SF.js');
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
|
@@ -22,29 +23,29 @@ require('./chunk-AID3OYVJ.js');
|
|
|
22
23
|
require('./chunk-MH73HMPV.js');
|
|
23
24
|
require('./chunk-3KC45UVF.js');
|
|
24
25
|
require('./chunk-GSK6NHVM.js');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-2MDDA7A4.js');
|
|
26
|
+
require('./chunk-R4XZO6Z5.js');
|
|
27
27
|
require('./chunk-GEJDBXXM.js');
|
|
28
28
|
require('./chunk-RDXFGPJU.js');
|
|
29
29
|
require('./chunk-KB4SDX5S.js');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunk36ML3YKAjs = require('./chunk-36ML3YKA.js');
|
|
33
33
|
require('./chunk-S6R3OX7B.js');
|
|
34
34
|
require('./chunk-UHNDVD3P.js');
|
|
35
|
+
require('./chunk-DRM3CMHL.js');
|
|
35
36
|
require('./chunk-XDVT3GOM.js');
|
|
36
37
|
require('./chunk-AYHLUHE5.js');
|
|
37
|
-
require('./chunk-QJBJZVG6.js');
|
|
38
38
|
require('./chunk-WJYPBHTE.js');
|
|
39
|
+
require('./chunk-QJBJZVG6.js');
|
|
39
40
|
|
|
40
41
|
|
|
41
|
-
var
|
|
42
|
-
require('./chunk-
|
|
42
|
+
var _chunkHRWUQJ4Kjs = require('./chunk-HRWUQJ4K.js');
|
|
43
|
+
require('./chunk-56IFFVIB.js');
|
|
43
44
|
require('./chunk-XNYIZMNQ.js');
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
47
|
-
require('./chunk-
|
|
48
|
+
require('./chunk-TO2MWPGR.js');
|
|
48
49
|
require('./chunk-OG64RBAC.js');
|
|
49
50
|
require('./chunk-COGTRVWW.js');
|
|
50
51
|
|
|
@@ -65,7 +66,7 @@ var VIEWS = {
|
|
|
65
66
|
details: model,
|
|
66
67
|
lines: [
|
|
67
68
|
...unlisted,
|
|
68
|
-
...
|
|
69
|
+
..._chunkLZLBR2SFjs.formatModelDescription.call(void 0, model).trimEnd().split("\n")
|
|
69
70
|
]
|
|
70
71
|
};
|
|
71
72
|
},
|
|
@@ -135,11 +136,11 @@ async function found(lookup) {
|
|
|
135
136
|
async function describeAnything(name, options, onMissing) {
|
|
136
137
|
const maintainedOnly = options.prebuilt === true || options.tool === true;
|
|
137
138
|
const wants = (filter) => (!options.kinds || options.kinds.includes(filter)) && !(maintainedOnly && filter === "custom");
|
|
138
|
-
const client = new (0,
|
|
139
|
+
const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
|
|
139
140
|
const play = async (reference) => {
|
|
140
141
|
const record2 = await client.describePlay(reference);
|
|
141
142
|
return {
|
|
142
|
-
described:
|
|
143
|
+
described: _chunk4KLCLLTOjs.describedPlay.call(void 0, record2),
|
|
143
144
|
record: { ...record2 },
|
|
144
145
|
schemas: {
|
|
145
146
|
inputSchema: _nullishCoalesce(record2.inputSchema, () => ( null)),
|
|
@@ -153,14 +154,14 @@ async function describeAnything(name, options, onMissing) {
|
|
|
153
154
|
const features = toolFeatures(record2);
|
|
154
155
|
return {
|
|
155
156
|
described: {
|
|
156
|
-
...
|
|
157
|
+
..._chunkLZLBR2SFjs.describedTool.call(void 0, record2, name),
|
|
157
158
|
// Shown when the tool runs only on your own credentials; otherwise
|
|
158
159
|
// it is a feature, described with --feature byok.
|
|
159
160
|
..._optionalChain([byok, 'optionalAccess', _3 => _3.required]) === true ? { byok } : {},
|
|
160
161
|
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
161
162
|
},
|
|
162
|
-
record:
|
|
163
|
-
schemas:
|
|
163
|
+
record: _chunkLZLBR2SFjs.toolMetadataJsonForDescribe.call(void 0, record2, name),
|
|
164
|
+
schemas: _chunkLZLBR2SFjs.publicToolSchemas.call(void 0, record2),
|
|
164
165
|
feature: (featureName, value) => {
|
|
165
166
|
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
166
167
|
return feature ? describeFeature(record2, feature, value, {
|
|
@@ -198,7 +199,7 @@ async function describeAnything(name, options, onMissing) {
|
|
|
198
199
|
const verbose = options.verbose === true;
|
|
199
200
|
const json = options.json === true;
|
|
200
201
|
const isPlay = described.kind === "prebuilt_play" || described.kind === "custom_play";
|
|
201
|
-
const dashboardUrl = isPlay ?
|
|
202
|
+
const dashboardUrl = isPlay ? _chunk4KLCLLTOjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, described.id) : null;
|
|
202
203
|
if (options.webUrl) {
|
|
203
204
|
if (!dashboardUrl) {
|
|
204
205
|
console.error(
|
|
@@ -206,7 +207,7 @@ async function describeAnything(name, options, onMissing) {
|
|
|
206
207
|
);
|
|
207
208
|
return 1;
|
|
208
209
|
}
|
|
209
|
-
|
|
210
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
210
211
|
{ dashboardUrl },
|
|
211
212
|
{ json, text: `${dashboardUrl}
|
|
212
213
|
` }
|
|
@@ -315,14 +316,14 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
315
316
|
` : text;
|
|
316
317
|
_fs.writeFileSync.call(void 0, path, content);
|
|
317
318
|
const bytes = Buffer.byteLength(content);
|
|
318
|
-
|
|
319
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
319
320
|
{ path, bytes },
|
|
320
321
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
321
322
|
` }
|
|
322
323
|
);
|
|
323
324
|
return 0;
|
|
324
325
|
}
|
|
325
|
-
|
|
326
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
326
327
|
return 0;
|
|
327
328
|
}
|
|
328
329
|
function registerDescribeCommand(program) {
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk36ML3YKAjs = require('./chunk-36ML3YKA.js');
|
|
4
4
|
require('./chunk-S6R3OX7B.js');
|
|
5
5
|
require('./chunk-UHNDVD3P.js');
|
|
6
|
+
require('./chunk-DRM3CMHL.js');
|
|
6
7
|
require('./chunk-XDVT3GOM.js');
|
|
7
8
|
|
|
8
9
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
10
|
+
var _chunkHRWUQJ4Kjs = require('./chunk-HRWUQJ4K.js');
|
|
11
|
+
require('./chunk-56IFFVIB.js');
|
|
11
12
|
require('./chunk-XNYIZMNQ.js');
|
|
12
13
|
require('./chunk-7P5AA3SN.js');
|
|
13
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-TO2MWPGR.js');
|
|
14
15
|
require('./chunk-OG64RBAC.js');
|
|
15
16
|
require('./chunk-COGTRVWW.js');
|
|
16
17
|
|
|
@@ -18,10 +19,10 @@ require('./chunk-COGTRVWW.js');
|
|
|
18
19
|
function registerExecutionsCommands(program) {
|
|
19
20
|
const executions = program.command("executions").description("Inspect and recover keyed tool executions.");
|
|
20
21
|
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) => {
|
|
21
|
-
const result = await new (0,
|
|
22
|
+
const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().executions.getByKey(
|
|
22
23
|
options.idempotencyKey
|
|
23
24
|
);
|
|
24
|
-
|
|
25
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
25
26
|
});
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-G4IWGRMK.mjs";
|
|
4
4
|
import "./chunk-6IKARAYD.mjs";
|
|
5
5
|
import "./chunk-JI2B4RZP.mjs";
|
|
6
|
+
import "./chunk-5VCZ3WRH.mjs";
|
|
6
7
|
import "./chunk-UBKA33KY.mjs";
|
|
7
8
|
import {
|
|
8
9
|
printCommandEnvelope
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-47M6HPGP.mjs";
|
|
11
|
+
import "./chunk-6D7A2FSL.mjs";
|
|
11
12
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
13
|
import "./chunk-NXGCO4JB.mjs";
|
|
13
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-BON3DRC6.mjs";
|
|
14
15
|
import "./chunk-WZYKRD7T.mjs";
|
|
15
16
|
import "./chunk-KRD6H754.mjs";
|
|
16
17
|
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
collectLocalEnvInfo,
|
|
3
3
|
getAuthedHttpClient,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-47M6HPGP.mjs";
|
|
6
6
|
import {
|
|
7
7
|
agentSessionIdFromEnvironment
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6D7A2FSL.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
10
|
import "./chunk-NXGCO4JB.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-BON3DRC6.mjs";
|
|
12
12
|
import "./chunk-WZYKRD7T.mjs";
|
|
13
13
|
import "./chunk-KRD6H754.mjs";
|
|
14
14
|
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkHRWUQJ4Kjs = require('./chunk-HRWUQJ4K.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk56IFFVIBjs = require('./chunk-56IFFVIB.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
10
|
require('./chunk-7P5AA3SN.js');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-TO2MWPGR.js');
|
|
12
12
|
require('./chunk-OG64RBAC.js');
|
|
13
13
|
require('./chunk-COGTRVWW.js');
|
|
14
14
|
|
|
@@ -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 } = _chunkHRWUQJ4Kjs.getAuthedHttpClient.call(void 0, );
|
|
21
|
+
const sessionId = _chunk56IFFVIBjs.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: _chunkHRWUQJ4Kjs.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
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
32
32
|
{
|
|
33
33
|
...response,
|
|
34
34
|
render: {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkK5T3EN6Djs = require('./chunk-K5T3EN6D.js');
|
|
9
|
+
require('./chunk-HRWUQJ4K.js');
|
|
10
|
+
require('./chunk-56IFFVIB.js');
|
|
11
|
+
require('./chunk-XNYIZMNQ.js');
|
|
12
|
+
require('./chunk-7P5AA3SN.js');
|
|
13
|
+
require('./chunk-TO2MWPGR.js');
|
|
14
|
+
require('./chunk-OG64RBAC.js');
|
|
15
|
+
require('./chunk-COGTRVWW.js');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.handleDeploymentGet = _chunkK5T3EN6Djs.handleDeploymentGet; exports.handleDeploymentsList = _chunkK5T3EN6Djs.handleDeploymentsList; exports.registerGitCommands = _chunkK5T3EN6Djs.registerGitCommands; exports.renderDeployment = _chunkK5T3EN6Djs.renderDeployment; exports.renderDeploymentMonitorLines = _chunkK5T3EN6Djs.renderDeploymentMonitorLines; exports.renderDeploymentPlayLines = _chunkK5T3EN6Djs.renderDeploymentPlayLines;
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
renderDeployment,
|
|
6
6
|
renderDeploymentMonitorLines,
|
|
7
7
|
renderDeploymentPlayLines
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-3TRY7KAC.mjs";
|
|
9
|
+
import "./chunk-47M6HPGP.mjs";
|
|
10
|
+
import "./chunk-6D7A2FSL.mjs";
|
|
11
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
12
|
import "./chunk-NXGCO4JB.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-BON3DRC6.mjs";
|
|
14
14
|
import "./chunk-WZYKRD7T.mjs";
|
|
15
15
|
import "./chunk-KRD6H754.mjs";
|
|
16
16
|
export {
|