deepline 0.3.379 → 0.3.381
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/row-failure-summary.ts +1 -0
- package/dist/cli/{auth-POBP5XKE.mjs → auth-M2WCVLXM.mjs} +4 -4
- package/dist/cli/auth-T3F2NI55.js +39 -0
- package/dist/cli/{billing-VSJ474AZ.mjs → billing-B4XB5L63.mjs} +4 -4
- package/dist/cli/{billing-CDJTZO3L.js → billing-J5FSVZB4.js} +73 -73
- package/dist/cli/{chunk-PD2WRTDS.js → chunk-2IB2RBCY.js} +1 -1
- package/dist/cli/{chunk-5YUA2FQG.mjs → chunk-4P35MBCK.mjs} +1 -1
- package/dist/cli/{chunk-W5I5QMMM.mjs → chunk-4Q4SQJBF.mjs} +1 -1
- package/dist/cli/{chunk-IKXDUCBB.js → chunk-5UC6VEXF.js} +4 -4
- package/dist/cli/{chunk-BB6WCOYN.js → chunk-AQ4HP2GF.js} +9 -9
- package/dist/cli/{chunk-5YEUVV6X.mjs → chunk-CFHQRESG.mjs} +1 -1
- package/dist/cli/{chunk-CXS5E3NC.js → chunk-D2G6W7ES.js} +50 -50
- package/dist/cli/{chunk-KIF5UJZ3.js → chunk-FDB2YGWF.js} +15 -15
- package/dist/cli/{chunk-6L5GTW3W.js → chunk-HJWXXZVG.js} +8 -8
- package/dist/cli/{chunk-J72WM3BY.mjs → chunk-IX6IEN5B.mjs} +2 -2
- package/dist/cli/{chunk-5W7JQ3A2.mjs → chunk-IXRQGX74.mjs} +4 -4
- package/dist/cli/{chunk-HKDAWSF6.js → chunk-KQFDSP5O.js} +6 -6
- package/dist/cli/{chunk-DB5IP3TV.mjs → chunk-N36BQUUU.mjs} +2 -2
- package/dist/cli/{chunk-UNFRQUUM.mjs → chunk-NEU3YVPF.mjs} +6 -6
- package/dist/cli/{chunk-A3E7TCQK.js → chunk-OKGOQKW7.js} +48 -48
- package/dist/cli/{chunk-XFR73M2S.js → chunk-PPO4FG7O.js} +224 -224
- package/dist/cli/{chunk-GW6EUKW7.mjs → chunk-PWCQM4SD.mjs} +2 -2
- package/dist/cli/{chunk-U3EL4YRM.mjs → chunk-Q7VDVBZW.mjs} +3 -3
- package/dist/cli/{chunk-XI5NWXP4.mjs → chunk-QOK7SKSZ.mjs} +1 -1
- package/dist/cli/{chunk-TA37L7MY.mjs → chunk-RJDYOGD3.mjs} +2 -2
- package/dist/cli/{chunk-ZHGVS5YI.js → chunk-RK72YKI7.js} +26 -26
- package/dist/cli/{chunk-Q7QP3XU2.js → chunk-RWSPU3RI.js} +2 -2
- package/dist/cli/{chunk-MPFXZAIY.js → chunk-SPJI6J44.js} +8 -8
- package/dist/cli/{chunk-T3ZCYEAL.js → chunk-UTVDVZTM.js} +60 -60
- package/dist/cli/{chunk-ZNU5IDYI.mjs → chunk-Y3FOW4TU.mjs} +5 -5
- package/dist/cli/{chunk-YQQSGVAD.mjs → chunk-Z2EKAUHJ.mjs} +1 -1
- package/dist/cli/{csv-N2RLF7AD.js → csv-RG6EPZAF.js} +12 -12
- package/dist/cli/{csv-D47DWKWT.mjs → csv-XK2U7OOP.mjs} +3 -3
- package/dist/cli/{db-IAT26T3O.js → db-LVFZMURX.js} +29 -29
- package/dist/cli/{db-XB6L44DP.mjs → db-LVXEM4JK.mjs} +4 -4
- package/dist/cli/{describe-77RUVCP4.mjs → describe-CGNNGI7D.mjs} +8 -8
- package/dist/cli/{describe-FHCK2IPO.js → describe-F52KVIU5.js} +16 -16
- package/dist/cli/{executions-5LZ6VLOO.mjs → executions-IFQ4VFOW.mjs} +4 -4
- package/dist/cli/{executions-5V3FSXDR.js → executions-QVNYM6G5.js} +6 -6
- package/dist/cli/{feedback-KV765KDS.js → feedback-GE2HJ3RV.js} +7 -7
- package/dist/cli/{feedback-JNBF5H7D.mjs → feedback-XQZGZLJD.mjs} +3 -3
- package/dist/cli/git-QADGD7ZL.js +23 -0
- package/dist/cli/{git-YJUJAHZE.mjs → git-VHYPESNC.mjs} +4 -4
- package/dist/cli/index.js +83 -83
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-QKV3SQ6S.mjs → legacy-noops-H3LBMAJD.mjs} +4 -4
- package/dist/cli/{legacy-noops-V3QK7KGI.js → legacy-noops-MEVZKOQO.js} +7 -7
- package/dist/cli/{monitors-K33FLA4Q.js → monitors-6LBPWRV2.js} +85 -85
- package/dist/cli/{monitors-MH624SEV.mjs → monitors-QCDXTRJG.mjs} +4 -4
- package/dist/cli/{org-V7K4VKWJ.mjs → org-R3Q75N6B.mjs} +4 -4
- package/dist/cli/{org-SLSIKOID.js → org-ZCGJFGH2.js} +64 -64
- package/dist/cli/play-AFDVNXFL.js +155 -0
- package/dist/cli/{play-ZW3YPHCZ.mjs → play-AQ6P4KHZ.mjs} +7 -7
- package/dist/cli/{providers-3HJQ7S56.mjs → providers-DD7F2EB3.mjs} +4 -4
- package/dist/cli/{providers-M44EZVKP.js → providers-HQRVMENG.js} +7 -7
- package/dist/cli/{quickstart-MTSZ5GDD.js → quickstart-IHSZ24SF.js} +5 -5
- package/dist/cli/{quickstart-H5CP5Z4N.mjs → quickstart-IQOBN4JH.mjs} +3 -3
- package/dist/cli/{search-FQBY77R7.mjs → search-DQERH2AR.mjs} +5 -5
- package/dist/cli/search-KQNM6AHE.js +26 -0
- package/dist/cli/{secrets-JT7RDYJD.mjs → secrets-WNAU3O75.mjs} +4 -4
- package/dist/cli/{secrets-4E6RJKMK.js → secrets-XY5226V2.js} +13 -13
- package/dist/cli/{sessions-5I3VX7GL.mjs → sessions-P7UZU5LC.mjs} +4 -4
- package/dist/cli/{sessions-7QUTJ4IX.js → sessions-R53JPCM4.js} +5 -5
- package/dist/cli/{settings-KOMLTFDA.js → settings-5QHIIX4A.js} +74 -74
- package/dist/cli/{settings-WLFMKYRS.mjs → settings-JQLWULCE.mjs} +7 -7
- package/dist/cli/{setup-DSRHIY6M.js → setup-3UXOGSKW.js} +41 -41
- package/dist/cli/{setup-KUDUUQ77.mjs → setup-BKCG5BRF.mjs} +6 -6
- package/dist/cli/{skills-RNQS5ABC.mjs → skills-5BBTJHXZ.mjs} +4 -4
- package/dist/cli/skills-7X24WLXD.js +28 -0
- package/dist/cli/{tools-S5QDXE5W.mjs → tools-7EQFFGWU.mjs} +6 -6
- package/dist/cli/tools-HQFR3CYC.js +40 -0
- package/dist/cli/{update-MT6PD7B5.mjs → update-KFMOWN7F.mjs} +6 -6
- package/dist/cli/update-MP6SY5LY.js +28 -0
- package/dist/cli/{workflow-WWEWE4WP.mjs → workflow-JMBTBZGY.mjs} +5 -5
- package/dist/cli/{workflow-QABG23XQ.js → workflow-PGSPHWFA.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +72 -72
- 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-5I2DJ7WL.js +0 -39
- package/dist/cli/git-YYRUQD4K.js +0 -23
- package/dist/cli/play-F7CATHIR.js +0 -155
- package/dist/cli/search-M3ZEKREB.js +0 -26
- package/dist/cli/skills-HNAWVPEB.js +0 -28
- package/dist/cli/tools-IB4WTAKE.js +0 -40
- package/dist/cli/update-I2ZBIT52.js +0 -28
|
@@ -4,7 +4,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkAQ4HP2GFjs = require('./chunk-AQ4HP2GF.js');
|
|
8
8
|
require('./chunk-S6R3OX7B.js');
|
|
9
9
|
require('./chunk-PAIMOGCM.js');
|
|
10
10
|
|
|
@@ -16,15 +16,15 @@ require('./chunk-PAIMOGCM.js');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkKQFDSP5Ojs = require('./chunk-KQFDSP5O.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk5UC6VEXFjs = require('./chunk-5UC6VEXF.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-2IB2RBCY.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 = _chunkKQFDSP5Ojs.dataExportRows.call(void 0, customerDbRows(result));
|
|
51
|
+
const responseColumns = _chunkKQFDSP5Ojs.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 _chunkKQFDSP5Ojs.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 _chunk5UC6VEXFjs.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 _chunk5UC6VEXFjs.CustomerDbQueryOutcomeUnknownError ? [error.message] : [],
|
|
127
|
+
error instanceof _chunk5UC6VEXFjs.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` 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 _chunk5UC6VEXFjs.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
|
+
_chunkKQFDSP5Ojs.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 || _chunkKQFDSP5Ojs.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
|
+
_chunkKQFDSP5Ojs.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
|
+
_chunkKQFDSP5Ojs.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: _chunkKQFDSP5Ojs.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 = _chunkKQFDSP5Ojs.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
|
+
_chunkKQFDSP5Ojs.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
|
+
_chunkKQFDSP5Ojs.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
|
+
_chunkKQFDSP5Ojs.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 = _chunkAQ4HP2GFjs.planCustomerDbQuery.call(void 0, query);
|
|
350
350
|
if (options.dryRun) {
|
|
351
|
-
|
|
351
|
+
_chunkKQFDSP5Ojs.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 || _chunkKQFDSP5Ojs.shouldEmitJson.call(void 0, ) }
|
|
365
365
|
);
|
|
366
366
|
return 0;
|
|
367
367
|
}
|
|
368
|
-
const client = new (0,
|
|
368
|
+
const client = new (0, _chunkAQ4HP2GFjs.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 _chunk5UC6VEXFjs.CustomerDbQueryOutcomeUnknownError && (options.json || _chunkKQFDSP5Ojs.shouldEmitJson.call(void 0, ))) {
|
|
378
|
+
_chunkKQFDSP5Ojs.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 = _chunkKQFDSP5Ojs.argsWantJson.call(void 0, args);
|
|
427
|
+
const client = new (0, _chunkAQ4HP2GFjs.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
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0,
|
|
444
444
|
{
|
|
445
445
|
command: "db repair",
|
|
446
446
|
status: result.status,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient,
|
|
6
6
|
planCustomerDbQuery
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Z2EKAUHJ.mjs";
|
|
8
8
|
import "./chunk-6IKARAYD.mjs";
|
|
9
9
|
import "./chunk-Q6EOHNRH.mjs";
|
|
10
10
|
import {
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
printCommandEnvelope,
|
|
17
17
|
recordRows,
|
|
18
18
|
shouldEmitJson
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QOK7SKSZ.mjs";
|
|
20
20
|
import {
|
|
21
21
|
CustomerDbQueryOutcomeUnknownError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4P35MBCK.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-CFHQRESG.mjs";
|
|
28
28
|
import "./chunk-WZYKRD7T.mjs";
|
|
29
29
|
import "./chunk-KRD6H754.mjs";
|
|
30
30
|
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
formatModelDescription,
|
|
4
4
|
publicToolSchemas,
|
|
5
5
|
toolMetadataJsonForDescribe
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Y3FOW4TU.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describedPlay
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NEU3YVPF.mjs";
|
|
10
10
|
import {
|
|
11
11
|
SCHEMA_LINE_LIMIT,
|
|
12
12
|
addDescribeOptions,
|
|
@@ -21,14 +21,14 @@ import "./chunk-OVDNJAJN.mjs";
|
|
|
21
21
|
import "./chunk-DSWSEHRX.mjs";
|
|
22
22
|
import "./chunk-H7HIDGZ7.mjs";
|
|
23
23
|
import "./chunk-EDWJY6T4.mjs";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-Q7VDVBZW.mjs";
|
|
25
|
+
import "./chunk-IX6IEN5B.mjs";
|
|
26
26
|
import "./chunk-Y6VOGHF2.mjs";
|
|
27
27
|
import "./chunk-ERFN2QY4.mjs";
|
|
28
28
|
import "./chunk-7E66A24V.mjs";
|
|
29
29
|
import {
|
|
30
30
|
DeeplineClient
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-Z2EKAUHJ.mjs";
|
|
32
32
|
import "./chunk-6IKARAYD.mjs";
|
|
33
33
|
import "./chunk-Q6EOHNRH.mjs";
|
|
34
34
|
import "./chunk-WXLOW623.mjs";
|
|
@@ -36,13 +36,13 @@ import "./chunk-UFS752TU.mjs";
|
|
|
36
36
|
import "./chunk-GAMFK2ZP.mjs";
|
|
37
37
|
import {
|
|
38
38
|
printCommandEnvelope
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-QOK7SKSZ.mjs";
|
|
40
|
+
import "./chunk-4P35MBCK.mjs";
|
|
41
41
|
import "./chunk-DLIRSHV6.mjs";
|
|
42
42
|
import {
|
|
43
43
|
DeeplineError
|
|
44
44
|
} from "./chunk-NXGCO4JB.mjs";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-CFHQRESG.mjs";
|
|
46
46
|
import "./chunk-WZYKRD7T.mjs";
|
|
47
47
|
import "./chunk-KRD6H754.mjs";
|
|
48
48
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOKGOQKW7js = require('./chunk-OKGOQKW7.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkPPO4FG7Ojs = require('./chunk-PPO4FG7O.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -21,14 +21,14 @@ require('./chunk-AID3OYVJ.js');
|
|
|
21
21
|
require('./chunk-QGKPTBRR.js');
|
|
22
22
|
require('./chunk-3KC45UVF.js');
|
|
23
23
|
require('./chunk-5JLQPVNX.js');
|
|
24
|
-
require('./chunk-
|
|
25
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-SPJI6J44.js');
|
|
25
|
+
require('./chunk-RK72YKI7.js');
|
|
26
26
|
require('./chunk-3VN4FTE3.js');
|
|
27
27
|
require('./chunk-GEJDBXXM.js');
|
|
28
28
|
require('./chunk-5O4B6AUN.js');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkAQ4HP2GFjs = require('./chunk-AQ4HP2GF.js');
|
|
32
32
|
require('./chunk-S6R3OX7B.js');
|
|
33
33
|
require('./chunk-PAIMOGCM.js');
|
|
34
34
|
require('./chunk-QJBJZVG6.js');
|
|
@@ -36,13 +36,13 @@ require('./chunk-AYHLUHE5.js');
|
|
|
36
36
|
require('./chunk-WJYPBHTE.js');
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
40
|
-
require('./chunk-
|
|
39
|
+
var _chunkKQFDSP5Ojs = require('./chunk-KQFDSP5O.js');
|
|
40
|
+
require('./chunk-5UC6VEXF.js');
|
|
41
41
|
require('./chunk-XNYIZMNQ.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
45
|
-
require('./chunk-
|
|
45
|
+
require('./chunk-2IB2RBCY.js');
|
|
46
46
|
require('./chunk-OG64RBAC.js');
|
|
47
47
|
require('./chunk-COGTRVWW.js');
|
|
48
48
|
|
|
@@ -63,7 +63,7 @@ var VIEWS = {
|
|
|
63
63
|
details: model,
|
|
64
64
|
lines: [
|
|
65
65
|
...unlisted,
|
|
66
|
-
...
|
|
66
|
+
..._chunkOKGOQKW7js.formatModelDescription.call(void 0, model).trimEnd().split("\n")
|
|
67
67
|
]
|
|
68
68
|
};
|
|
69
69
|
},
|
|
@@ -133,11 +133,11 @@ async function found(lookup) {
|
|
|
133
133
|
async function describeAnything(name, options, onMissing) {
|
|
134
134
|
const maintainedOnly = options.prebuilt === true || options.tool === true;
|
|
135
135
|
const wants = (filter) => (!options.kinds || options.kinds.includes(filter)) && !(maintainedOnly && filter === "custom");
|
|
136
|
-
const client = new (0,
|
|
136
|
+
const client = new (0, _chunkAQ4HP2GFjs.DeeplineClient)();
|
|
137
137
|
const play = async (reference) => {
|
|
138
138
|
const record2 = await client.describePlay(reference);
|
|
139
139
|
return {
|
|
140
|
-
described:
|
|
140
|
+
described: _chunkPPO4FG7Ojs.describedPlay.call(void 0, record2),
|
|
141
141
|
record: { ...record2 },
|
|
142
142
|
schemas: {
|
|
143
143
|
inputSchema: _nullishCoalesce(record2.inputSchema, () => ( null)),
|
|
@@ -151,14 +151,14 @@ async function describeAnything(name, options, onMissing) {
|
|
|
151
151
|
const features = toolFeatures(record2);
|
|
152
152
|
return {
|
|
153
153
|
described: {
|
|
154
|
-
...
|
|
154
|
+
..._chunkOKGOQKW7js.describedTool.call(void 0, record2, name),
|
|
155
155
|
// Shown when the tool runs only on your own credentials; otherwise
|
|
156
156
|
// it is a feature, described with --feature byok.
|
|
157
157
|
..._optionalChain([byok, 'optionalAccess', _3 => _3.required]) === true ? { byok } : {},
|
|
158
158
|
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
159
159
|
},
|
|
160
|
-
record:
|
|
161
|
-
schemas:
|
|
160
|
+
record: _chunkOKGOQKW7js.toolMetadataJsonForDescribe.call(void 0, record2, name),
|
|
161
|
+
schemas: _chunkOKGOQKW7js.publicToolSchemas.call(void 0, record2),
|
|
162
162
|
feature: (featureName, value) => {
|
|
163
163
|
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
164
164
|
return feature ? describeFeature(record2, feature, value, {
|
|
@@ -294,14 +294,14 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
294
294
|
` : text;
|
|
295
295
|
_fs.writeFileSync.call(void 0, path, content);
|
|
296
296
|
const bytes = Buffer.byteLength(content);
|
|
297
|
-
|
|
297
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0,
|
|
298
298
|
{ path, bytes },
|
|
299
299
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
300
300
|
` }
|
|
301
301
|
);
|
|
302
302
|
return 0;
|
|
303
303
|
}
|
|
304
|
-
|
|
304
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
305
305
|
return 0;
|
|
306
306
|
}
|
|
307
307
|
function registerDescribeCommand(program) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Z2EKAUHJ.mjs";
|
|
4
4
|
import "./chunk-6IKARAYD.mjs";
|
|
5
5
|
import "./chunk-Q6EOHNRH.mjs";
|
|
6
6
|
import {
|
|
7
7
|
printCommandEnvelope
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-QOK7SKSZ.mjs";
|
|
9
|
+
import "./chunk-4P35MBCK.mjs";
|
|
10
10
|
import "./chunk-DLIRSHV6.mjs";
|
|
11
11
|
import "./chunk-NXGCO4JB.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-CFHQRESG.mjs";
|
|
13
13
|
import "./chunk-WZYKRD7T.mjs";
|
|
14
14
|
import "./chunk-KRD6H754.mjs";
|
|
15
15
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkAQ4HP2GFjs = require('./chunk-AQ4HP2GF.js');
|
|
4
4
|
require('./chunk-S6R3OX7B.js');
|
|
5
5
|
require('./chunk-PAIMOGCM.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
8
|
+
var _chunkKQFDSP5Ojs = require('./chunk-KQFDSP5O.js');
|
|
9
|
+
require('./chunk-5UC6VEXF.js');
|
|
10
10
|
require('./chunk-XNYIZMNQ.js');
|
|
11
11
|
require('./chunk-7P5AA3SN.js');
|
|
12
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-2IB2RBCY.js');
|
|
13
13
|
require('./chunk-OG64RBAC.js');
|
|
14
14
|
require('./chunk-COGTRVWW.js');
|
|
15
15
|
|
|
@@ -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, _chunkAQ4HP2GFjs.DeeplineClient)().executions.getByKey(
|
|
21
21
|
options.idempotencyKey
|
|
22
22
|
);
|
|
23
|
-
|
|
23
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkKQFDSP5Ojs = require('./chunk-KQFDSP5O.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk5UC6VEXFjs = require('./chunk-5UC6VEXF.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
10
|
require('./chunk-7P5AA3SN.js');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-2IB2RBCY.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 } = _chunkKQFDSP5Ojs.getAuthedHttpClient.call(void 0, );
|
|
21
|
+
const sessionId = _chunk5UC6VEXFjs.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: _chunkKQFDSP5Ojs.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
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0,
|
|
32
32
|
{
|
|
33
33
|
...response,
|
|
34
34
|
render: {
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
collectLocalEnvInfo,
|
|
3
3
|
getAuthedHttpClient,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QOK7SKSZ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
agentSessionIdFromEnvironment
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4P35MBCK.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
10
|
import "./chunk-NXGCO4JB.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-CFHQRESG.mjs";
|
|
12
12
|
import "./chunk-WZYKRD7T.mjs";
|
|
13
13
|
import "./chunk-KRD6H754.mjs";
|
|
14
14
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkRK72YKI7js = require('./chunk-RK72YKI7.js');
|
|
9
|
+
require('./chunk-KQFDSP5O.js');
|
|
10
|
+
require('./chunk-5UC6VEXF.js');
|
|
11
|
+
require('./chunk-XNYIZMNQ.js');
|
|
12
|
+
require('./chunk-7P5AA3SN.js');
|
|
13
|
+
require('./chunk-2IB2RBCY.js');
|
|
14
|
+
require('./chunk-OG64RBAC.js');
|
|
15
|
+
require('./chunk-COGTRVWW.js');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.handleDeploymentGet = _chunkRK72YKI7js.handleDeploymentGet; exports.handleDeploymentsList = _chunkRK72YKI7js.handleDeploymentsList; exports.registerGitCommands = _chunkRK72YKI7js.registerGitCommands; exports.renderDeployment = _chunkRK72YKI7js.renderDeployment; exports.renderDeploymentMonitorLines = _chunkRK72YKI7js.renderDeploymentMonitorLines; exports.renderDeploymentPlayLines = _chunkRK72YKI7js.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-IX6IEN5B.mjs";
|
|
9
|
+
import "./chunk-QOK7SKSZ.mjs";
|
|
10
|
+
import "./chunk-4P35MBCK.mjs";
|
|
11
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
12
|
import "./chunk-NXGCO4JB.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-CFHQRESG.mjs";
|
|
14
14
|
import "./chunk-WZYKRD7T.mjs";
|
|
15
15
|
import "./chunk-KRD6H754.mjs";
|
|
16
16
|
export {
|