deepline 0.3.375 → 0.3.376

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.
Files changed (93) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +56 -4
  3. package/dist/cli/auth-BTFXJQLT.js +35 -0
  4. package/dist/cli/{auth-U3Y7DTIG.mjs → auth-MLCDUTJY.mjs} +4 -4
  5. package/dist/cli/{billing-P2DNRAND.js → billing-IONI4V7P.js} +73 -73
  6. package/dist/cli/{billing-TKARGBO3.mjs → billing-OUGNDBL4.mjs} +4 -4
  7. package/dist/cli/{chunk-HP4BE43N.js → chunk-34KUUN3Z.js} +50 -50
  8. package/dist/cli/{chunk-M2HVNJ47.js → chunk-47X6MQ7J.js} +60 -60
  9. package/dist/cli/{chunk-MTBQEND4.js → chunk-4V2Q3JO6.js} +15 -15
  10. package/dist/cli/{chunk-HEF6UDGA.js → chunk-5HDB7XXT.js} +235 -235
  11. package/dist/cli/{chunk-B3TQIJ6L.mjs → chunk-5HJHTZI6.mjs} +1 -1
  12. package/dist/cli/{chunk-LZUWGLM4.js → chunk-6EYTKUDI.js} +2 -2
  13. package/dist/cli/{chunk-IG3GOO4T.mjs → chunk-7LX2G2PU.mjs} +1 -1
  14. package/dist/cli/{chunk-ADSZGPYZ.js → chunk-7ZZSGV4A.js} +1 -1
  15. package/dist/cli/{chunk-DHTG5CCI.js → chunk-A6ZTYKYF.js} +18 -1
  16. package/dist/cli/{chunk-DAG4ZBTJ.js → chunk-ETUV6RRK.js} +9 -9
  17. package/dist/cli/{chunk-HSIVHAZA.mjs → chunk-GMRWUGXB.mjs} +3 -3
  18. package/dist/cli/{chunk-ZHXPNJQI.mjs → chunk-H7SLESX6.mjs} +1 -1
  19. package/dist/cli/{chunk-4GP56LRE.mjs → chunk-HDB4GAWY.mjs} +1 -1
  20. package/dist/cli/{chunk-F5CU5ALX.js → chunk-KHZ6WEVF.js} +26 -26
  21. package/dist/cli/{chunk-STYH5U6W.mjs → chunk-L6OSOKS6.mjs} +7 -7
  22. package/dist/cli/{chunk-M5QDOHLG.mjs → chunk-MHRDXS7J.mjs} +1 -1
  23. package/dist/cli/{chunk-IQTHRG6E.js → chunk-N6KIEYZV.js} +4 -4
  24. package/dist/cli/{chunk-GN5QM2BB.js → chunk-QSH5CHRI.js} +6 -6
  25. package/dist/cli/{chunk-QEEIEHGV.mjs → chunk-SPZNLE2D.mjs} +2 -2
  26. package/dist/cli/{chunk-SJVJZOPT.mjs → chunk-UABI2T3Z.mjs} +2 -2
  27. package/dist/cli/{chunk-B2LFDTXZ.mjs → chunk-UE2UHYT3.mjs} +18 -1
  28. package/dist/cli/{chunk-MPQSBHMA.mjs → chunk-V7ZREPSD.mjs} +4 -4
  29. package/dist/cli/{chunk-Z4ARN4X3.mjs → chunk-VL5ERG22.mjs} +2 -2
  30. package/dist/cli/{chunk-ZFWU5V2A.mjs → chunk-VNBAOWN3.mjs} +6 -6
  31. package/dist/cli/{chunk-CUIBDSSS.js → chunk-Y4MXBE3V.js} +8 -8
  32. package/dist/cli/{chunk-NVXMPGM4.js → chunk-Y5W5IIA4.js} +57 -57
  33. package/dist/cli/{chunk-MKS7C3YR.mjs → chunk-YXQ7SRL3.mjs} +2 -2
  34. package/dist/cli/{chunk-KK4XPUVA.js → chunk-ZXFGA2VK.js} +8 -8
  35. package/dist/cli/{csv-WAEVGKHF.js → csv-LPC7BGZ2.js} +12 -12
  36. package/dist/cli/{csv-3FTYTEJ3.mjs → csv-NITSP7QJ.mjs} +3 -3
  37. package/dist/cli/{db-HUGGFIVS.mjs → db-JVDYEXNC.mjs} +4 -4
  38. package/dist/cli/{db-UDMDGNKO.js → db-WGD54UKM.js} +29 -29
  39. package/dist/cli/{describe-SIAKZYRK.js → describe-GA7LSJRY.js} +28 -28
  40. package/dist/cli/{describe-EOBOGTB5.mjs → describe-SVMLA6SN.mjs} +9 -9
  41. package/dist/cli/{executions-O6Z2HSLK.mjs → executions-CXBJDGMU.mjs} +4 -4
  42. package/dist/cli/{executions-HYYP27MG.js → executions-P47HEI4N.js} +6 -6
  43. package/dist/cli/{feedback-RRAMGMQV.mjs → feedback-34OSXUQ2.mjs} +3 -3
  44. package/dist/cli/{feedback-3DWSBHKS.js → feedback-GWKWE5CU.js} +7 -7
  45. package/dist/cli/git-MIPISCON.js +23 -0
  46. package/dist/cli/{git-KVAK7VOL.mjs → git-YAROF6D3.mjs} +4 -4
  47. package/dist/cli/index.js +82 -82
  48. package/dist/cli/index.mjs +32 -32
  49. package/dist/cli/{legacy-noops-MQNCDMY7.mjs → legacy-noops-2G55OKIU.mjs} +4 -4
  50. package/dist/cli/{legacy-noops-V5GQXXUR.js → legacy-noops-MDZQL3QH.js} +7 -7
  51. package/dist/cli/{monitors-6FB63TDM.mjs → monitors-KUGKMABN.mjs} +4 -4
  52. package/dist/cli/{monitors-RFGQILPW.js → monitors-X7QYWFSP.js} +85 -85
  53. package/dist/cli/{org-L33EPH2E.js → org-6XL3IBT2.js} +64 -64
  54. package/dist/cli/{org-TZPQDDVX.mjs → org-CNBBAN4W.mjs} +4 -4
  55. package/dist/cli/{play-PU23OETO.mjs → play-33ZMPAR5.mjs} +8 -8
  56. package/dist/cli/play-3CM3P2DS.js +155 -0
  57. package/dist/cli/{providers-QGQR6ZZF.mjs → providers-3OSQNFPE.mjs} +4 -4
  58. package/dist/cli/{providers-2RHIKO22.js → providers-5POAURDT.js} +7 -7
  59. package/dist/cli/{quickstart-BGQVPI7W.js → quickstart-LQGPDJTS.js} +5 -5
  60. package/dist/cli/{quickstart-24DQYBW7.mjs → quickstart-QICTOOW6.mjs} +3 -3
  61. package/dist/cli/search-A2YLJ4I5.js +26 -0
  62. package/dist/cli/{search-EUN7YFMX.mjs → search-HBIX4SF4.mjs} +5 -5
  63. package/dist/cli/{secrets-OOHN6LNJ.mjs → secrets-6MRGZPHT.mjs} +4 -4
  64. package/dist/cli/{secrets-XL7GUTQA.js → secrets-QKPBNQ3E.js} +13 -13
  65. package/dist/cli/{sessions-SDN4C3YS.mjs → sessions-NODY2OW4.mjs} +4 -4
  66. package/dist/cli/{sessions-FD5XB7M2.js → sessions-NP7BLZD2.js} +5 -5
  67. package/dist/cli/{settings-6ZEKVAYL.js → settings-42QHXUB2.js} +74 -74
  68. package/dist/cli/{settings-3MXRXYXI.mjs → settings-JCEIOTNL.mjs} +7 -7
  69. package/dist/cli/{setup-DWTR6HNT.mjs → setup-3QR4RGMG.mjs} +6 -6
  70. package/dist/cli/{setup-VKQ5EJZR.js → setup-5XXWP54Y.js} +41 -41
  71. package/dist/cli/skills-4JJEAA66.js +28 -0
  72. package/dist/cli/{skills-ISG5UUZW.mjs → skills-U4OMXLNS.mjs} +4 -4
  73. package/dist/cli/{tools-JTC3DR6M.mjs → tools-45OROEZQ.mjs} +7 -7
  74. package/dist/cli/tools-FDCFSA7W.js +40 -0
  75. package/dist/cli/{update-GMTVIHCG.mjs → update-2XCRMJ4R.mjs} +6 -6
  76. package/dist/cli/update-VYL4TXIE.js +28 -0
  77. package/dist/cli/{workflow-2765Y3Y5.js → workflow-47P4LQNC.js} +15 -15
  78. package/dist/cli/{workflow-3POT3VFY.mjs → workflow-7X3GCOPY.mjs} +5 -5
  79. package/dist/index.js +6 -6
  80. package/dist/index.mjs +3 -3
  81. package/dist/install-integrity.json +74 -74
  82. package/dist/release.d.mts +1 -1
  83. package/dist/release.d.ts +1 -1
  84. package/dist/release.js +2 -2
  85. package/dist/release.mjs +1 -1
  86. package/package.json +1 -1
  87. package/dist/cli/auth-B7CLYD7R.js +0 -35
  88. package/dist/cli/git-M36KWCCG.js +0 -23
  89. package/dist/cli/play-YR2XQARF.js +0 -155
  90. package/dist/cli/search-OHELMK6E.js +0 -26
  91. package/dist/cli/skills-6GFW4GCW.js +0 -28
  92. package/dist/cli/tools-LK4L6VCK.js +0 -40
  93. package/dist/cli/update-PSJLAW4Q.js +0 -28
@@ -4,11 +4,11 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkGN5QM2BBjs = require('./chunk-GN5QM2BB.js');
8
- require('./chunk-IQTHRG6E.js');
7
+ var _chunkQSH5CHRIjs = require('./chunk-QSH5CHRI.js');
8
+ require('./chunk-N6KIEYZV.js');
9
9
  require('./chunk-XNYIZMNQ.js');
10
10
  require('./chunk-7P5AA3SN.js');
11
- require('./chunk-ADSZGPYZ.js');
11
+ require('./chunk-7ZZSGV4A.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 : _chunkGN5QM2BBjs.clip.call(void 0, value, 42)).length;
129
+ return (verbose ? value : _chunkQSH5CHRIjs.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 : _chunkGN5QM2BBjs.clip.call(void 0, raw, 42);
139
+ const display = verbose ? raw : _chunkQSH5CHRIjs.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 = _chunkGN5QM2BBjs.readCsvRows.call(void 0, csvPath);
159
+ const allRows = _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printJson.call(void 0, {
172
+ _chunkQSH5CHRIjs.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(_chunkGN5QM2BBjs.csvStringFromRows.call(void 0, displayRows));
181
+ process.stdout.write(_chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printJson.call(void 0, {
196
+ _chunkQSH5CHRIjs.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
- ${_chunkGN5QM2BBjs.clip.call(void 0, log, 2e3)}`;
439
+ ${_chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0, payload, {
490
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
526
+ _chunkQSH5CHRIjs.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,11 +4,11 @@ import {
4
4
  printCommandEnvelope,
5
5
  printJson,
6
6
  readCsvRows
7
- } from "./chunk-M5QDOHLG.mjs";
8
- import "./chunk-4GP56LRE.mjs";
7
+ } from "./chunk-MHRDXS7J.mjs";
8
+ import "./chunk-HDB4GAWY.mjs";
9
9
  import "./chunk-DLIRSHV6.mjs";
10
10
  import "./chunk-NXGCO4JB.mjs";
11
- import "./chunk-IG3GOO4T.mjs";
11
+ import "./chunk-7LX2G2PU.mjs";
12
12
  import "./chunk-WZYKRD7T.mjs";
13
13
  import "./chunk-KRD6H754.mjs";
14
14
 
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  DeeplineClient,
6
6
  planCustomerDbQuery
7
- } from "./chunk-ZHXPNJQI.mjs";
7
+ } from "./chunk-H7SLESX6.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-M5QDOHLG.mjs";
19
+ } from "./chunk-MHRDXS7J.mjs";
20
20
  import {
21
21
  CustomerDbQueryOutcomeUnknownError
22
- } from "./chunk-4GP56LRE.mjs";
22
+ } from "./chunk-HDB4GAWY.mjs";
23
23
  import "./chunk-DLIRSHV6.mjs";
24
24
  import {
25
25
  DeeplineError
26
26
  } from "./chunk-NXGCO4JB.mjs";
27
- import "./chunk-IG3GOO4T.mjs";
27
+ import "./chunk-7LX2G2PU.mjs";
28
28
  import "./chunk-WZYKRD7T.mjs";
29
29
  import "./chunk-KRD6H754.mjs";
30
30
 
@@ -4,7 +4,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkDAG4ZBTJjs = require('./chunk-DAG4ZBTJ.js');
7
+ var _chunkETUV6RRKjs = require('./chunk-ETUV6RRK.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 _chunkGN5QM2BBjs = require('./chunk-GN5QM2BB.js');
19
+ var _chunkQSH5CHRIjs = require('./chunk-QSH5CHRI.js');
20
20
 
21
21
 
22
- var _chunkIQTHRG6Ejs = require('./chunk-IQTHRG6E.js');
22
+ var _chunkN6KIEYZVjs = require('./chunk-N6KIEYZV.js');
23
23
  require('./chunk-XNYIZMNQ.js');
24
24
 
25
25
 
26
26
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
27
- require('./chunk-ADSZGPYZ.js');
27
+ require('./chunk-7ZZSGV4A.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 = _chunkGN5QM2BBjs.dataExportRows.call(void 0, customerDbRows(result));
51
- const responseColumns = _chunkGN5QM2BBjs.dataExportColumns.call(void 0,
50
+ const rows = _chunkQSH5CHRIjs.dataExportRows.call(void 0, customerDbRows(result));
51
+ const responseColumns = _chunkQSH5CHRIjs.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 _chunkGN5QM2BBjs.recordRows.call(void 0, result.rows);
97
+ return _chunkQSH5CHRIjs.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 _chunkIQTHRG6Ejs.CustomerDbQueryOutcomeUnknownError ? collectErrorText(error.cause) : collectErrorText(error);
119
+ const text = error instanceof _chunkN6KIEYZVjs.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 _chunkIQTHRG6Ejs.CustomerDbQueryOutcomeUnknownError ? [error.message] : [],
127
- error instanceof _chunkIQTHRG6Ejs.CustomerDbQueryOutcomeUnknownError ? "The server reported that the referenced storage table does not exist." : "Customer DB query failed: the referenced storage table does not exist.",
126
+ ...error instanceof _chunkN6KIEYZVjs.CustomerDbQueryOutcomeUnknownError ? [error.message] : [],
127
+ error instanceof _chunkN6KIEYZVjs.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 _chunkIQTHRG6Ejs.CustomerDbQueryOutcomeUnknownError ? [error.message] : [],
135
+ ...error instanceof _chunkN6KIEYZVjs.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
- _chunkGN5QM2BBjs.dataExportCsvString.call(void 0, customerDbRows(result), customerDbColumnNames(result)),
150
+ _chunkQSH5CHRIjs.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 || _chunkGN5QM2BBjs.shouldEmitJson.call(void 0, );
191
+ const jsonOutput = explicitJsonOutput || _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
202
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
218
+ _chunkQSH5CHRIjs.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: _chunkGN5QM2BBjs.dataExportCsvString.call(void 0,
228
+ text: _chunkQSH5CHRIjs.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 = _chunkGN5QM2BBjs.markdownTableFromRows.call(void 0,
237
+ const content = _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
244
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
260
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
275
+ _chunkQSH5CHRIjs.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 = _chunkDAG4ZBTJjs.planCustomerDbQuery.call(void 0, query);
349
+ const plan = _chunkETUV6RRKjs.planCustomerDbQuery.call(void 0, query);
350
350
  if (options.dryRun) {
351
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
351
+ _chunkQSH5CHRIjs.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 || _chunkGN5QM2BBjs.shouldEmitJson.call(void 0, ) }
364
+ { json: options.json || _chunkQSH5CHRIjs.shouldEmitJson.call(void 0, ) }
365
365
  );
366
366
  return 0;
367
367
  }
368
- const client = new (0, _chunkDAG4ZBTJjs.DeeplineClient)();
368
+ const client = new (0, _chunkETUV6RRKjs.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 _chunkIQTHRG6Ejs.CustomerDbQueryOutcomeUnknownError && (options.json || _chunkGN5QM2BBjs.shouldEmitJson.call(void 0, ))) {
378
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
377
+ if (error instanceof _chunkN6KIEYZVjs.CustomerDbQueryOutcomeUnknownError && (options.json || _chunkQSH5CHRIjs.shouldEmitJson.call(void 0, ))) {
378
+ _chunkQSH5CHRIjs.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 = _chunkGN5QM2BBjs.argsWantJson.call(void 0, args);
427
- const client = new (0, _chunkDAG4ZBTJjs.DeeplineClient)();
426
+ const jsonOutput = _chunkQSH5CHRIjs.argsWantJson.call(void 0, args);
427
+ const client = new (0, _chunkETUV6RRKjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
443
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
444
444
  {
445
445
  command: "db repair",
446
446
  status: result.status,
@@ -3,10 +3,10 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkNVXMPGM4js = require('./chunk-NVXMPGM4.js');
6
+ var _chunkY5W5IIA4js = require('./chunk-Y5W5IIA4.js');
7
7
 
8
8
 
9
- var _chunkHEF6UDGAjs = require('./chunk-HEF6UDGA.js');
9
+ var _chunk5HDB7XXTjs = require('./chunk-5HDB7XXT.js');
10
10
 
11
11
 
12
12
 
@@ -16,19 +16,19 @@ var _chunkHEF6UDGAjs = require('./chunk-HEF6UDGA.js');
16
16
 
17
17
 
18
18
 
19
- var _chunkDHTG5CCIjs = require('./chunk-DHTG5CCI.js');
19
+ var _chunkA6ZTYKYFjs = require('./chunk-A6ZTYKYF.js');
20
20
  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-KK4XPUVA.js');
25
- require('./chunk-F5CU5ALX.js');
24
+ require('./chunk-ZXFGA2VK.js');
25
+ require('./chunk-KHZ6WEVF.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 _chunkDAG4ZBTJjs = require('./chunk-DAG4ZBTJ.js');
31
+ var _chunkETUV6RRKjs = require('./chunk-ETUV6RRK.js');
32
32
  require('./chunk-S6R3OX7B.js');
33
33
  require('./chunk-LA46MMTL.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 _chunkGN5QM2BBjs = require('./chunk-GN5QM2BB.js');
40
- require('./chunk-IQTHRG6E.js');
39
+ var _chunkQSH5CHRIjs = require('./chunk-QSH5CHRI.js');
40
+ require('./chunk-N6KIEYZV.js');
41
41
  require('./chunk-XNYIZMNQ.js');
42
42
 
43
43
 
44
44
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
45
- require('./chunk-ADSZGPYZ.js');
45
+ require('./chunk-7ZZSGV4A.js');
46
46
  require('./chunk-OG64RBAC.js');
47
47
  require('./chunk-COGTRVWW.js');
48
48
 
@@ -63,13 +63,13 @@ var VIEWS = {
63
63
  details: model,
64
64
  lines: [
65
65
  ...unlisted,
66
- ..._chunkNVXMPGM4js.formatModelDescription.call(void 0, model).trimEnd().split("\n")
66
+ ..._chunkY5W5IIA4js.formatModelDescription.call(void 0, model).trimEnd().split("\n")
67
67
  ]
68
68
  };
69
69
  },
70
70
  byok: async (_value, tool) => ({
71
71
  details: _nullishCoalesce(tool.byok, () => ( {})),
72
- lines: _chunkDHTG5CCIjs.byokLines.call(void 0, _nullishCoalesce(tool.byok, () => ( {})))
72
+ lines: _chunkA6ZTYKYFjs.byokLines.call(void 0, _nullishCoalesce(tool.byok, () => ( {})))
73
73
  })
74
74
  };
75
75
  var isFeatureView = (value) => typeof value === "string" && Object.hasOwn(VIEWS, value);
@@ -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, _chunkDAG4ZBTJjs.DeeplineClient)();
136
+ const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
137
137
  const play = async (reference) => {
138
138
  const record2 = await client.describePlay(reference);
139
139
  return {
140
- described: _chunkHEF6UDGAjs.describedPlay.call(void 0, record2),
140
+ described: _chunk5HDB7XXTjs.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
- ..._chunkNVXMPGM4js.describedTool.call(void 0, record2, name),
154
+ ..._chunkY5W5IIA4js.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: _chunkNVXMPGM4js.toolMetadataJsonForDescribe.call(void 0, record2, name),
161
- schemas: _chunkNVXMPGM4js.publicToolSchemas.call(void 0, record2),
160
+ record: _chunkY5W5IIA4js.toolMetadataJsonForDescribe.call(void 0, record2, name),
161
+ schemas: _chunkY5W5IIA4js.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, {
@@ -241,7 +241,7 @@ async function describeAnything(name, options, onMissing) {
241
241
  },
242
242
  lines: [
243
243
  `${described.id} [${described.kind.replace("_", " ")}]`,
244
- ..._chunkDHTG5CCIjs.schemaLines.call(void 0, described, {
244
+ ..._chunkA6ZTYKYFjs.schemaLines.call(void 0, described, {
245
245
  full: true,
246
246
  secondary: true,
247
247
  ...fields.length ? { fields } : {}
@@ -250,16 +250,16 @@ async function describeAnything(name, options, onMissing) {
250
250
  } : {
251
251
  envelope: {
252
252
  ...summary,
253
- inputs: inputs.map(_chunkDHTG5CCIjs.topLevelField),
254
- outputs: outputs.map(_chunkDHTG5CCIjs.topLevelField),
255
- ...described.rowInputs ? { rowInputs: described.rowInputs.map(_chunkDHTG5CCIjs.topLevelField) } : {},
256
- ...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(_chunkDHTG5CCIjs.topLevelField) } : {},
257
- runExamples: _chunkDHTG5CCIjs.examples.call(void 0, described, { verbose }),
253
+ inputs: inputs.map(_chunkA6ZTYKYFjs.topLevelField),
254
+ outputs: outputs.map(_chunkA6ZTYKYFjs.topLevelField),
255
+ ...described.rowInputs ? { rowInputs: described.rowInputs.map(_chunkA6ZTYKYFjs.topLevelField) } : {},
256
+ ...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(_chunkA6ZTYKYFjs.topLevelField) } : {},
257
+ runExamples: _chunkA6ZTYKYFjs.examples.call(void 0, described, { verbose }),
258
258
  ...shadows ? { shadows, note } : {}
259
259
  },
260
260
  lines: [
261
261
  ...note ? [`Note: ${note}`, ""] : [],
262
- ..._chunkDHTG5CCIjs.describedLines.call(void 0, described, {
262
+ ..._chunkA6ZTYKYFjs.describedLines.call(void 0, described, {
263
263
  cli: shown && (!named || options.cliExample === true),
264
264
  play: shown && (!named || options.playExample === true),
265
265
  explain: named,
@@ -275,7 +275,7 @@ async function describeAnything(name, options, onMissing) {
275
275
  // its value stands, so callers of the older commands read what they did.
276
276
  { ...view.envelope, ...record }
277
277
  ) : {
278
- ..._chunkDHTG5CCIjs.describedJson.call(void 0, described, {
278
+ ..._chunkA6ZTYKYFjs.describedJson.call(void 0, described, {
279
279
  secondary: verbose || fields.length > 0,
280
280
  verbose
281
281
  }),
@@ -292,18 +292,18 @@ function deliver(envelope, lines, { json, out }) {
292
292
  ` : text;
293
293
  _fs.writeFileSync.call(void 0, path, content);
294
294
  const bytes = Buffer.byteLength(content);
295
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
295
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
296
296
  { path, bytes },
297
297
  { json, text: `Wrote ${path} (${bytes} bytes)
298
298
  ` }
299
299
  );
300
300
  return 0;
301
301
  }
302
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0, envelope, { json, text });
302
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, envelope, { json, text });
303
303
  return 0;
304
304
  }
305
305
  function registerDescribeCommand(program) {
306
- _chunkDHTG5CCIjs.addDescribeOptions.call(void 0, program.command("describe <name>")).description(
306
+ _chunkA6ZTYKYFjs.addDescribeOptions.call(void 0, program.command("describe <name>")).description(
307
307
  "Describe anything search returns: a tool, monitor type, or play."
308
308
  ).addHelpText(
309
309
  "after",
@@ -340,7 +340,7 @@ Schema size and format:
340
340
  by default; the output names them, and --verbose shows them.
341
341
  --fields email,miss_reason shows only the fields you name, plus every
342
342
  required input, and names the rest. Use it when you know what you need.
343
- A schema over ${_chunkDHTG5CCIjs.SCHEMA_LINE_LIMIT} lines is folded: deeper objects show only their field
343
+ A schema over ${_chunkA6ZTYKYFjs.SCHEMA_LINE_LIMIT} lines is folded: deeper objects show only their field
344
344
  names. A shape used more than once is printed once under Types.
345
345
  --full-schema the normal output, with the schema not folded
346
346
  --schema-only only the schema, not folded, and nothing else
@@ -3,10 +3,10 @@ import {
3
3
  formatModelDescription,
4
4
  publicToolSchemas,
5
5
  toolMetadataJsonForDescribe
6
- } from "./chunk-ZFWU5V2A.mjs";
6
+ } from "./chunk-VNBAOWN3.mjs";
7
7
  import {
8
8
  describedPlay
9
- } from "./chunk-STYH5U6W.mjs";
9
+ } from "./chunk-L6OSOKS6.mjs";
10
10
  import {
11
11
  SCHEMA_LINE_LIMIT,
12
12
  addDescribeOptions,
@@ -16,19 +16,19 @@ import {
16
16
  examples,
17
17
  schemaLines,
18
18
  topLevelField
19
- } from "./chunk-B2LFDTXZ.mjs";
19
+ } from "./chunk-UE2UHYT3.mjs";
20
20
  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-HSIVHAZA.mjs";
25
- import "./chunk-SJVJZOPT.mjs";
24
+ import "./chunk-GMRWUGXB.mjs";
25
+ import "./chunk-UABI2T3Z.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-ZHXPNJQI.mjs";
31
+ } from "./chunk-H7SLESX6.mjs";
32
32
  import "./chunk-6IKARAYD.mjs";
33
33
  import "./chunk-CBVIJSHF.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-M5QDOHLG.mjs";
40
- import "./chunk-4GP56LRE.mjs";
39
+ } from "./chunk-MHRDXS7J.mjs";
40
+ import "./chunk-HDB4GAWY.mjs";
41
41
  import "./chunk-DLIRSHV6.mjs";
42
42
  import {
43
43
  DeeplineError
44
44
  } from "./chunk-NXGCO4JB.mjs";
45
- import "./chunk-IG3GOO4T.mjs";
45
+ import "./chunk-7LX2G2PU.mjs";
46
46
  import "./chunk-WZYKRD7T.mjs";
47
47
  import "./chunk-KRD6H754.mjs";
48
48
 
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-ZHXPNJQI.mjs";
3
+ } from "./chunk-H7SLESX6.mjs";
4
4
  import "./chunk-6IKARAYD.mjs";
5
5
  import "./chunk-CBVIJSHF.mjs";
6
6
  import {
7
7
  printCommandEnvelope
8
- } from "./chunk-M5QDOHLG.mjs";
9
- import "./chunk-4GP56LRE.mjs";
8
+ } from "./chunk-MHRDXS7J.mjs";
9
+ import "./chunk-HDB4GAWY.mjs";
10
10
  import "./chunk-DLIRSHV6.mjs";
11
11
  import "./chunk-NXGCO4JB.mjs";
12
- import "./chunk-IG3GOO4T.mjs";
12
+ import "./chunk-7LX2G2PU.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 _chunkDAG4ZBTJjs = require('./chunk-DAG4ZBTJ.js');
3
+ var _chunkETUV6RRKjs = require('./chunk-ETUV6RRK.js');
4
4
  require('./chunk-S6R3OX7B.js');
5
5
  require('./chunk-LA46MMTL.js');
6
6
 
7
7
 
8
- var _chunkGN5QM2BBjs = require('./chunk-GN5QM2BB.js');
9
- require('./chunk-IQTHRG6E.js');
8
+ var _chunkQSH5CHRIjs = require('./chunk-QSH5CHRI.js');
9
+ require('./chunk-N6KIEYZV.js');
10
10
  require('./chunk-XNYIZMNQ.js');
11
11
  require('./chunk-7P5AA3SN.js');
12
- require('./chunk-ADSZGPYZ.js');
12
+ require('./chunk-7ZZSGV4A.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, _chunkDAG4ZBTJjs.DeeplineClient)().executions.getByKey(
20
+ const result = await new (0, _chunkETUV6RRKjs.DeeplineClient)().executions.getByKey(
21
21
  options.idempotencyKey
22
22
  );
23
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0, result, { json: true });
23
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, result, { json: true });
24
24
  });
25
25
  }
26
26
 
@@ -2,13 +2,13 @@ import {
2
2
  collectLocalEnvInfo,
3
3
  getAuthedHttpClient,
4
4
  printCommandEnvelope
5
- } from "./chunk-M5QDOHLG.mjs";
5
+ } from "./chunk-MHRDXS7J.mjs";
6
6
  import {
7
7
  agentSessionIdFromEnvironment
8
- } from "./chunk-4GP56LRE.mjs";
8
+ } from "./chunk-HDB4GAWY.mjs";
9
9
  import "./chunk-DLIRSHV6.mjs";
10
10
  import "./chunk-NXGCO4JB.mjs";
11
- import "./chunk-IG3GOO4T.mjs";
11
+ import "./chunk-7LX2G2PU.mjs";
12
12
  import "./chunk-WZYKRD7T.mjs";
13
13
  import "./chunk-KRD6H754.mjs";
14
14