deepline 0.3.341 → 0.3.342

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 (94) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +14 -0
  3. package/dist/cli/{auth-VIQ6WBU5.mjs → auth-7GVSCIFY.mjs} +4 -4
  4. package/dist/cli/auth-BFOCE76P.js +31 -0
  5. package/dist/cli/{billing-7MIYVDBJ.mjs → billing-BVCHOOOJ.mjs} +4 -4
  6. package/dist/cli/{billing-FW5TG3CQ.js → billing-CQDTIFBF.js} +71 -71
  7. package/dist/cli/{chunk-PIVZA4GI.js → chunk-3BGGXEO5.js} +4 -4
  8. package/dist/cli/{chunk-ATLE7AKN.js → chunk-3BY3UMYO.js} +15 -15
  9. package/dist/cli/{chunk-2DFZELZG.js → chunk-4EW5CMVL.js} +225 -225
  10. package/dist/cli/{chunk-U4VULGDJ.mjs → chunk-4LPBIUQ2.mjs} +2 -2
  11. package/dist/cli/{chunk-MGYI6JH2.js → chunk-5Y2DDT5K.js} +26 -26
  12. package/dist/cli/{chunk-TVNBP3CX.mjs → chunk-AC7QCWXV.mjs} +1 -1
  13. package/dist/cli/{chunk-WQ5LPOFC.js → chunk-B2PMPAIJ.js} +60 -60
  14. package/dist/cli/{chunk-KIGZU235.mjs → chunk-BIA27ZNI.mjs} +2 -2
  15. package/dist/cli/{chunk-LT33BWLY.js → chunk-DL5YQFZ6.js} +6 -6
  16. package/dist/cli/{chunk-AFCZAA2Y.js → chunk-DP2XSXRA.js} +8 -8
  17. package/dist/cli/{chunk-24RQUGMX.mjs → chunk-ECBT2RXL.mjs} +6 -6
  18. package/dist/cli/{chunk-7IT3B2BL.js → chunk-ERC3XIUO.js} +8 -8
  19. package/dist/cli/{chunk-5RSBKWF6.mjs → chunk-FT4V72RC.mjs} +2 -2
  20. package/dist/cli/{chunk-VO4RF766.mjs → chunk-G6TM2GK2.mjs} +1 -1
  21. package/dist/cli/{chunk-BX6GJWBS.mjs → chunk-GAQGAH34.mjs} +3 -3
  22. package/dist/cli/{chunk-TU3WZZG4.mjs → chunk-GEGCG7MG.mjs} +5 -5
  23. package/dist/cli/{chunk-4LXK5CMK.mjs → chunk-IDTUEEF4.mjs} +1 -1
  24. package/dist/cli/{chunk-FH6IVCYY.js → chunk-K2P365R2.js} +48 -48
  25. package/dist/cli/{chunk-5GQQMICZ.js → chunk-KM3JYG56.js} +9 -9
  26. package/dist/cli/{chunk-XQD53NOJ.js → chunk-KYHNFT7T.js} +1 -1
  27. package/dist/cli/{chunk-NUIPBZVP.js → chunk-LQGHKRNZ.js} +45 -45
  28. package/dist/cli/{chunk-IWSPBSV7.mjs → chunk-OJH4W52K.mjs} +1 -1
  29. package/dist/cli/{chunk-Y2BTWBO7.mjs → chunk-SBXCXMYT.mjs} +1 -1
  30. package/dist/cli/{chunk-7ZBSHTYB.mjs → chunk-VZHA6YHU.mjs} +4 -4
  31. package/dist/cli/{chunk-ASW2NN7E.js → chunk-W5BMDA4F.js} +2 -2
  32. package/dist/cli/{chunk-ZK7BK7OD.mjs → chunk-XAMWA45P.mjs} +2 -2
  33. package/dist/cli/client-FCOLYBLU.js +20 -0
  34. package/dist/cli/{client-5FQFKJS3.mjs → client-UMFL6LP2.mjs} +3 -3
  35. package/dist/cli/{csv-J7CGFUZO.mjs → csv-EFHLVMV2.mjs} +3 -3
  36. package/dist/cli/{csv-X5GUUDBX.js → csv-HYZKDWVL.js} +12 -12
  37. package/dist/cli/{db-DXPCEPTU.mjs → db-GVC55S5W.mjs} +4 -4
  38. package/dist/cli/{db-SQXA3O74.js → db-RPWOYGIJ.js} +29 -29
  39. package/dist/cli/{describe-EQTSIVVZ.js → describe-EPNNEVZG.js} +15 -15
  40. package/dist/cli/{describe-VHW7FVBJ.mjs → describe-X5WLZXOS.mjs} +8 -8
  41. package/dist/cli/{executions-4XLP2D45.js → executions-MEQFDGRU.js} +6 -6
  42. package/dist/cli/{executions-OSF7KBAM.mjs → executions-MPEF66XO.mjs} +4 -4
  43. package/dist/cli/{feedback-HM4OG6GJ.mjs → feedback-I4UNJEHC.mjs} +3 -3
  44. package/dist/cli/{feedback-7EBKMWNP.js → feedback-SCZSITXP.js} +7 -7
  45. package/dist/cli/{git-LXIXK5ZP.mjs → git-5H4ZVTTV.mjs} +4 -4
  46. package/dist/cli/git-YA73D6HG.js +23 -0
  47. package/dist/cli/index.js +79 -79
  48. package/dist/cli/index.mjs +31 -31
  49. package/dist/cli/{legacy-noops-HEDDLUOF.mjs → legacy-noops-326HSG4F.mjs} +4 -4
  50. package/dist/cli/{legacy-noops-O5TQI3GH.js → legacy-noops-BH6IRSKQ.js} +7 -7
  51. package/dist/cli/{monitors-6EX3T2US.mjs → monitors-AZ64IIUO.mjs} +4 -4
  52. package/dist/cli/{monitors-334IBGT6.js → monitors-SIXPXBKU.js} +85 -85
  53. package/dist/cli/{org-ZMKKQ5EY.mjs → org-2FAU4GBK.mjs} +4 -4
  54. package/dist/cli/{org-VWLMFKI7.js → org-4VX6L3SZ.js} +60 -60
  55. package/dist/cli/{play-CSMPSPXC.mjs → play-7VQABXW7.mjs} +7 -7
  56. package/dist/cli/play-SDZWMYJM.js +153 -0
  57. package/dist/cli/{providers-PE4K7ZNQ.mjs → providers-DOFRWRDC.mjs} +4 -4
  58. package/dist/cli/{providers-Z3F3M67Z.js → providers-WWEGDKWO.js} +7 -7
  59. package/dist/cli/{quickstart-BBO4ZMFA.js → quickstart-64NWQZXP.js} +5 -5
  60. package/dist/cli/{quickstart-P6Q5NLOI.mjs → quickstart-JXN53CUE.mjs} +3 -3
  61. package/dist/cli/{search-WLQSHUO5.mjs → search-NREYIQO7.mjs} +5 -5
  62. package/dist/cli/search-VKOBBQAN.js +26 -0
  63. package/dist/cli/{secrets-IITTIRV2.js → secrets-FGZSIICG.js} +13 -13
  64. package/dist/cli/{secrets-JAYFSPQL.mjs → secrets-LO2S3ASQ.mjs} +4 -4
  65. package/dist/cli/{sessions-XIGZKWJG.mjs → sessions-FYHXMESN.mjs} +4 -4
  66. package/dist/cli/{sessions-EAWCTMCB.js → sessions-VOLIMKDL.js} +5 -5
  67. package/dist/cli/{settings-S6CF5T6U.js → settings-EYQHZTCR.js} +74 -74
  68. package/dist/cli/{settings-XOZ3IVRT.mjs → settings-WABX7ZVG.mjs} +7 -7
  69. package/dist/cli/{setup-PO6TJJ5P.js → setup-7H5EAAZK.js} +41 -41
  70. package/dist/cli/{setup-QGS4YTRD.mjs → setup-JVECE4TU.mjs} +6 -6
  71. package/dist/cli/skills-4WHWKCUN.js +28 -0
  72. package/dist/cli/{skills-I6ZYMTOV.mjs → skills-BEVLJDUH.mjs} +4 -4
  73. package/dist/cli/{tools-XLYFZCRO.mjs → tools-5D32S2CY.mjs} +6 -6
  74. package/dist/cli/tools-SGLGLR2H.js +40 -0
  75. package/dist/cli/{update-JTTZPF4K.mjs → update-EMNDLIDA.mjs} +6 -6
  76. package/dist/cli/update-HRB4G5LS.js +28 -0
  77. package/dist/cli/{workflow-D2YLWJDP.js → workflow-BBMZ2A2Y.js} +15 -15
  78. package/dist/cli/{workflow-2R4X2YR5.mjs → workflow-MMTSJB3D.mjs} +5 -5
  79. package/dist/index.js +10 -6
  80. package/dist/index.mjs +7 -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-R7MYOAIT.js +0 -31
  88. package/dist/cli/client-HTXSC666.js +0 -20
  89. package/dist/cli/git-4VXVJGO6.js +0 -23
  90. package/dist/cli/play-4OUTDB4O.js +0 -153
  91. package/dist/cli/search-6MGGRBOO.js +0 -26
  92. package/dist/cli/skills-2LS3SJP6.js +0 -28
  93. package/dist/cli/tools-JEO4GEFK.js +0 -40
  94. package/dist/cli/update-NYIWSIRQ.js +0 -28
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkPIVZA4GIjs = require('./chunk-PIVZA4GI.js');
6
+ var _chunk3BGGXEO5js = require('./chunk-3BGGXEO5.js');
7
7
 
8
8
 
9
9
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -136,8 +136,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
136
136
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
137
137
  var defaultBrowserCommandRunner = childProcess;
138
138
  function getAuthedHttpClient() {
139
- const config = _chunkPIVZA4GIjs.resolveConfig.call(void 0, );
140
- return { config, http: new (0, _chunkPIVZA4GIjs.HttpClient)(config) };
139
+ const config = _chunk3BGGXEO5js.resolveConfig.call(void 0, );
140
+ return { config, http: new (0, _chunk3BGGXEO5js.HttpClient)(config) };
141
141
  }
142
142
  function stableOsUserId() {
143
143
  try {
@@ -477,7 +477,7 @@ function collectLocalEnvInfo() {
477
477
  os: `${process.platform} ${process.arch}`,
478
478
  node_version: process.version,
479
479
  home_dir: homeDir,
480
- agent_runtime: _chunkPIVZA4GIjs.detectAgentRuntime.call(void 0, )
480
+ agent_runtime: _chunk3BGGXEO5js.detectAgentRuntime.call(void 0, )
481
481
  };
482
482
  const env = process.env;
483
483
  const optional = {
@@ -725,9 +725,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
725
725
  }
726
726
  function withAgentCommandContext(value) {
727
727
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
728
- return _chunkPIVZA4GIjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
728
+ return _chunk3BGGXEO5js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
729
729
  ...valueRecord,
730
- command_context: _chunkPIVZA4GIjs.resolveCliCommandContext.call(void 0, )
730
+ command_context: _chunk3BGGXEO5js.resolveCliCommandContext.call(void 0, )
731
731
  } : value;
732
732
  }
733
733
  function printJson(value, fields) {
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return 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 _chunkLT33BWLYjs = require('./chunk-LT33BWLY.js');
4
+ var _chunkDL5YQFZ6js = require('./chunk-DL5YQFZ6.js');
5
5
 
6
6
 
7
- var _chunkPIVZA4GIjs = require('./chunk-PIVZA4GI.js');
7
+ var _chunk3BGGXEO5js = require('./chunk-3BGGXEO5.js');
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
 
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
139
139
  const newestFirst = listSessionFiles(agent).sort(
140
140
  (a, b) => b.mtimeMs - a.mtimeMs
141
141
  );
142
- const sessionId = _chunkPIVZA4GIjs.agentSessionIdFromEnvironment.call(void 0, );
142
+ const sessionId = _chunk3BGGXEO5js.agentSessionIdFromEnvironment.call(void 0, );
143
143
  const cwd = process.cwd();
144
144
  return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
145
145
  (candidate) => sessionStartedInDirectory(candidate, cwd)
@@ -448,7 +448,7 @@ function buildSessionUploadContent(raw) {
448
448
  return { encodedContent: encoded, needsChunking: true };
449
449
  }
450
450
  async function uploadPayload(path, payload) {
451
- const { http } = _chunkLT33BWLYjs.getAuthedHttpClient.call(void 0, );
451
+ const { http } = _chunkDL5YQFZ6js.getAuthedHttpClient.call(void 0, );
452
452
  return await http.post(path, payload);
453
453
  }
454
454
  async function uploadChunkedSessions(sessions, options) {
@@ -481,7 +481,7 @@ async function uploadChunkedSessions(sessions, options) {
481
481
  ...options.rating ? { rating: options.rating } : {}
482
482
  });
483
483
  const sessionIds = sessions.map((session) => session.sessionId);
484
- _chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
484
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
485
485
  {
486
486
  ...response,
487
487
  ok: true,
@@ -513,7 +513,7 @@ async function handleSessionsSend(options) {
513
513
  filename: _path.basename.call(void 0, filePath),
514
514
  ...rating ? { rating } : {}
515
515
  });
516
- _chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
516
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
517
517
  {
518
518
  ...response2,
519
519
  ok: true,
@@ -563,7 +563,7 @@ async function handleSessionsSend(options) {
563
563
  ...rating ? { rating } : {}
564
564
  });
565
565
  const sessionIds = built.map((session) => session.sessionId);
566
- _chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
566
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
567
567
  {
568
568
  ...response,
569
569
  ok: true,
@@ -671,7 +671,7 @@ ${refreshMeta}
671
671
  </body>
672
672
  </html>`;
673
673
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
674
- _chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
674
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
675
675
  {
676
676
  ok: true,
677
677
  file: outputPath,
@@ -10,11 +10,11 @@ import {
10
10
  } from "./chunk-EDWJY6T4.mjs";
11
11
  import {
12
12
  registerDeprecatedSearchCommand
13
- } from "./chunk-BX6GJWBS.mjs";
13
+ } from "./chunk-GAQGAH34.mjs";
14
14
  import {
15
15
  handleDeploymentGet,
16
16
  handleDeploymentsList
17
- } from "./chunk-KIGZU235.mjs";
17
+ } from "./chunk-BIA27ZNI.mjs";
18
18
  import {
19
19
  PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY,
20
20
  PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER,
@@ -39,7 +39,7 @@ import {
39
39
  normalizeRunEventOperationRequest,
40
40
  parseLogLevel,
41
41
  playInputExampleArgs
42
- } from "./chunk-Y2BTWBO7.mjs";
42
+ } from "./chunk-SBXCXMYT.mjs";
43
43
  import {
44
44
  CSV_DATA_INPUT_KEY,
45
45
  buildNamedPlayRunRequest,
@@ -72,10 +72,10 @@ import {
72
72
  printJsonError,
73
73
  renderCommandEnvelopeText,
74
74
  shouldEmitJson
75
- } from "./chunk-IWSPBSV7.mjs";
75
+ } from "./chunk-OJH4W52K.mjs";
76
76
  import {
77
77
  fetchWithDeploymentProtection
78
- } from "./chunk-VO4RF766.mjs";
78
+ } from "./chunk-G6TM2GK2.mjs";
79
79
  import {
80
80
  PLAY_DEFAULT_EXPORT,
81
81
  extractDefinedPlayName,
@@ -18151,7 +18151,7 @@ Examples:
18151
18151
  process.exitCode = await ownView();
18152
18152
  return;
18153
18153
  }
18154
- const { describeAnything } = await import("./describe-VHW7FVBJ.mjs");
18154
+ const { describeAnything } = await import("./describe-X5WLZXOS.mjs");
18155
18155
  process.exitCode = await describeAnything(
18156
18156
  name,
18157
18157
  {
@@ -1,21 +1,21 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return 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
- var _chunk5GQQMICZjs = require('./chunk-5GQQMICZ.js');
3
+ var _chunkKM3JYG56js = require('./chunk-KM3JYG56.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkLT33BWLYjs = require('./chunk-LT33BWLY.js');
7
+ var _chunkDL5YQFZ6js = require('./chunk-DL5YQFZ6.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkPIVZA4GIjs = require('./chunk-PIVZA4GI.js');
11
+ var _chunk3BGGXEO5js = require('./chunk-3BGGXEO5.js');
12
12
 
13
13
  // src/cli/search-ref.ts
14
14
  var _fs = require('fs');
15
15
  var _path = require('path');
16
16
  var SEARCH_REF_TTL_MS = 15 * 6e4;
17
17
  function lastSearchPath() {
18
- return _path.join.call(void 0, _chunkPIVZA4GIjs.sdkCliStateDirPath.call(void 0, _chunkPIVZA4GIjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
18
+ return _path.join.call(void 0, _chunk3BGGXEO5js.sdkCliStateDirPath.call(void 0, _chunk3BGGXEO5js.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
19
19
  }
20
20
  function rememberSearchRef(searchRef) {
21
21
  try {
@@ -127,7 +127,7 @@ function searchRow(item) {
127
127
  }
128
128
  function renderSearchResults(result) {
129
129
  if (result.results.length === 0)
130
- return _chunkLT33BWLYjs.renderCommandEnvelopeText.call(void 0, result);
130
+ return _chunkDL5YQFZ6js.renderCommandEnvelopeText.call(void 0, result);
131
131
  const rows = result.results.map(searchRow);
132
132
  const kinds = new Set(rows.map((row) => row.kind));
133
133
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -144,7 +144,7 @@ function renderSearchResults(result) {
144
144
  actions: _optionalChain([render, 'optionalAccess', _9 => _9.actions])
145
145
  };
146
146
  const followUps = _optionalChain([remaining, 'access', _10 => _10.sections, 'optionalAccess', _11 => _11.length]) || _optionalChain([remaining, 'access', _12 => _12.actions, 'optionalAccess', _13 => _13.length]) ? `
147
- ${_chunkLT33BWLYjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
147
+ ${_chunkDL5YQFZ6js.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
148
148
  const notes = rows.flatMap(
149
149
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
150
150
  );
@@ -224,7 +224,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
224
224
  console.error(USAGE);
225
225
  return 1;
226
226
  }
227
- const { search_ref: searchRef, ...result } = await new (0, _chunk5GQQMICZjs.DeeplineClient)().search({
227
+ const { search_ref: searchRef, ...result } = await new (0, _chunkKM3JYG56js.DeeplineClient)().search({
228
228
  query,
229
229
  types,
230
230
  exclude,
@@ -238,7 +238,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
238
238
  });
239
239
  if (searchRef) rememberSearchRef(searchRef);
240
240
  pointAtDescribe(result);
241
- _chunkLT33BWLYjs.printCommandEnvelope.call(void 0, result, {
241
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0, result, {
242
242
  json: options.json === true,
243
243
  text: renderSearchResults(result)
244
244
  });
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-IWSPBSV7.mjs";
4
+ } from "./chunk-OJH4W52K.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-VO4RF766.mjs";
7
+ } from "./chunk-G6TM2GK2.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-DLIRSHV6.mjs";
5
5
  import {
6
6
  SDK_RELEASE
7
- } from "./chunk-TVNBP3CX.mjs";
7
+ } from "./chunk-AC7QCWXV.mjs";
8
8
  import {
9
9
  DeeplineError,
10
10
  TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-Y2BTWBO7.mjs";
3
+ } from "./chunk-SBXCXMYT.mjs";
4
4
  import {
5
5
  printCommandEnvelope,
6
6
  renderCommandEnvelopeText
7
- } from "./chunk-IWSPBSV7.mjs";
7
+ } from "./chunk-OJH4W52K.mjs";
8
8
  import {
9
9
  resolveConfig,
10
10
  sdkCliStateDirPath
11
- } from "./chunk-VO4RF766.mjs";
11
+ } from "./chunk-G6TM2GK2.mjs";
12
12
 
13
13
  // src/cli/search-ref.ts
14
14
  import { mkdirSync, readFileSync, writeFileSync } from "fs";
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  recentSearchRef,
12
12
  registerDeprecatedSearchCommand
13
- } from "./chunk-BX6GJWBS.mjs";
13
+ } from "./chunk-GAQGAH34.mjs";
14
14
  import {
15
15
  extractSummaryFields,
16
16
  projectRowOutput,
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  DeeplineClient,
24
24
  validateExecutionIdempotencyKey
25
- } from "./chunk-Y2BTWBO7.mjs";
25
+ } from "./chunk-SBXCXMYT.mjs";
26
26
  import {
27
27
  beginToolExecuteCommand,
28
28
  getToolExecuteInvocationId,
@@ -36,11 +36,11 @@ import {
36
36
  printJsonError,
37
37
  renderCommandEnvelopeText,
38
38
  shouldEmitJson
39
- } from "./chunk-IWSPBSV7.mjs";
39
+ } from "./chunk-OJH4W52K.mjs";
40
40
  import {
41
41
  resolveConfig,
42
42
  sdkCliStateDirPath
43
- } from "./chunk-VO4RF766.mjs";
43
+ } from "./chunk-G6TM2GK2.mjs";
44
44
  import {
45
45
  playToolListGetterMode
46
46
  } from "./chunk-NTVTZAVZ.mjs";
@@ -1029,7 +1029,7 @@ Examples:
1029
1029
  process.exitCode = await narrowView();
1030
1030
  return;
1031
1031
  }
1032
- const { describeAnything } = await import("./describe-VHW7FVBJ.mjs");
1032
+ const { describeAnything } = await import("./describe-X5WLZXOS.mjs");
1033
1033
  process.exitCode = await describeAnything(
1034
1034
  toolId,
1035
1035
  { ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-U4VULGDJ.mjs";
3
+ } from "./chunk-4LPBIUQ2.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkLT33BWLYjs = require('./chunk-LT33BWLY.js');
5
+ var _chunkDL5YQFZ6js = require('./chunk-DL5YQFZ6.js');
6
6
 
7
7
 
8
8
 
@@ -25,7 +25,7 @@ var _chunkLT33BWLYjs = require('./chunk-LT33BWLY.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkPIVZA4GIjs = require('./chunk-PIVZA4GI.js');
28
+ var _chunk3BGGXEO5js = require('./chunk-3BGGXEO5.js');
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
 
@@ -52,7 +52,7 @@ function statusBannerLine(value) {
52
52
  return `Service notice: ${banner.message}`;
53
53
  }
54
54
  function envFilePath(baseUrl) {
55
- return _chunkPIVZA4GIjs.hostEnvFilePath.call(void 0, baseUrl);
55
+ return _chunk3BGGXEO5js.hostEnvFilePath.call(void 0, baseUrl);
56
56
  }
57
57
  function normalizeAuthScope(value) {
58
58
  if (!value || value === "global") return "global";
@@ -65,7 +65,7 @@ function parseAuthScope(args) {
65
65
  }
66
66
  function pendingClaimPath(baseUrl, scope) {
67
67
  if (scope === "folder") {
68
- const target = _chunkPIVZA4GIjs.resolveProjectPinTarget.call(void 0, );
68
+ const target = _chunk3BGGXEO5js.resolveProjectPinTarget.call(void 0, );
69
69
  if (!target.ok) {
70
70
  throw new Error(
71
71
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -75,10 +75,10 @@ function pendingClaimPath(baseUrl, scope) {
75
75
  }
76
76
  return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
77
77
  }
78
- return `${_chunkPIVZA4GIjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
78
+ return `${_chunk3BGGXEO5js.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
79
79
  }
80
80
  function legacyPendingClaimTokenPath(baseUrl) {
81
- return `${_chunkPIVZA4GIjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
81
+ return `${_chunk3BGGXEO5js.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
82
82
  }
83
83
  function savePendingClaim(baseUrl, claim) {
84
84
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -180,21 +180,21 @@ function parseRegisterWaitMode(args) {
180
180
  function shouldWaitForRegisterClaim(mode) {
181
181
  if (mode === "yes") return true;
182
182
  if (mode === "no") return false;
183
- return _chunkPIVZA4GIjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
183
+ return _chunk3BGGXEO5js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
184
184
  }
185
185
  function saveEnvValues(values, baseUrl, scope) {
186
186
  const filtered = {
187
- ...values[_chunkPIVZA4GIjs.HOST_URL_ENV] ? { [_chunkPIVZA4GIjs.HOST_URL_ENV]: values[_chunkPIVZA4GIjs.HOST_URL_ENV] } : {},
188
- ...values[_chunkPIVZA4GIjs.API_KEY_ENV] ? { [_chunkPIVZA4GIjs.API_KEY_ENV]: values[_chunkPIVZA4GIjs.API_KEY_ENV] } : {},
189
- ...values[_chunkPIVZA4GIjs.ACTIVE_ORG_ID_ENV] ? { [_chunkPIVZA4GIjs.ACTIVE_ORG_ID_ENV]: values[_chunkPIVZA4GIjs.ACTIVE_ORG_ID_ENV] } : {},
190
- ...Object.prototype.hasOwnProperty.call(values, _chunkPIVZA4GIjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkPIVZA4GIjs.ACTIVE_ORG_NAME_ENV]: values[_chunkPIVZA4GIjs.ACTIVE_ORG_NAME_ENV] } : {},
187
+ ...values[_chunk3BGGXEO5js.HOST_URL_ENV] ? { [_chunk3BGGXEO5js.HOST_URL_ENV]: values[_chunk3BGGXEO5js.HOST_URL_ENV] } : {},
188
+ ...values[_chunk3BGGXEO5js.API_KEY_ENV] ? { [_chunk3BGGXEO5js.API_KEY_ENV]: values[_chunk3BGGXEO5js.API_KEY_ENV] } : {},
189
+ ...values[_chunk3BGGXEO5js.ACTIVE_ORG_ID_ENV] ? { [_chunk3BGGXEO5js.ACTIVE_ORG_ID_ENV]: values[_chunk3BGGXEO5js.ACTIVE_ORG_ID_ENV] } : {},
190
+ ...Object.prototype.hasOwnProperty.call(values, _chunk3BGGXEO5js.ACTIVE_ORG_NAME_ENV) ? { [_chunk3BGGXEO5js.ACTIVE_ORG_NAME_ENV]: values[_chunk3BGGXEO5js.ACTIVE_ORG_NAME_ENV] } : {},
191
191
  // An explicit empty list must reach the store: it clears a stale line.
192
- ...Object.prototype.hasOwnProperty.call(values, _chunkPIVZA4GIjs.FEATURES_ENV) ? { [_chunkPIVZA4GIjs.FEATURES_ENV]: values[_chunkPIVZA4GIjs.FEATURES_ENV] } : {}
192
+ ...Object.prototype.hasOwnProperty.call(values, _chunk3BGGXEO5js.FEATURES_ENV) ? { [_chunk3BGGXEO5js.FEATURES_ENV]: values[_chunk3BGGXEO5js.FEATURES_ENV] } : {}
193
193
  };
194
194
  if (scope === "folder") {
195
- _chunkPIVZA4GIjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
195
+ _chunk3BGGXEO5js.saveProjectDeeplineEnvValues.call(void 0, filtered);
196
196
  } else {
197
- _chunkPIVZA4GIjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
197
+ _chunk3BGGXEO5js.saveHostEnvValues.call(void 0, baseUrl, filtered);
198
198
  }
199
199
  }
200
200
  function activeOrgEnvValues(data) {
@@ -202,21 +202,21 @@ function activeOrgEnvValues(data) {
202
202
  if (!orgId) return {};
203
203
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
204
204
  return {
205
- [_chunkPIVZA4GIjs.ACTIVE_ORG_ID_ENV]: orgId,
206
- [_chunkPIVZA4GIjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
- ..._chunkPIVZA4GIjs.featureEnvValues.call(void 0, data)
205
+ [_chunk3BGGXEO5js.ACTIVE_ORG_ID_ENV]: orgId,
206
+ [_chunk3BGGXEO5js.ACTIVE_ORG_NAME_ENV]: orgName,
207
+ ..._chunk3BGGXEO5js.featureEnvValues.call(void 0, data)
208
208
  };
209
209
  }
210
210
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
211
211
  const headers = {
212
212
  "Content-Type": "application/json",
213
- "User-Agent": `deepline-ts-sdk/${_chunkPIVZA4GIjs.SDK_VERSION}`,
213
+ "User-Agent": `deepline-ts-sdk/${_chunk3BGGXEO5js.SDK_VERSION}`,
214
214
  "X-Deepline-Client-Family": "sdk",
215
215
  "X-Deepline-CLI-Family": "sdk",
216
- "X-Deepline-Agent-Runtime": _chunkPIVZA4GIjs.detectAgentRuntime.call(void 0, ),
217
- "X-Deepline-CLI-Version": _chunkPIVZA4GIjs.SDK_VERSION,
218
- "X-Deepline-SDK-Version": _chunkPIVZA4GIjs.SDK_VERSION,
219
- "X-Deepline-API-Contract": _chunkPIVZA4GIjs.SDK_API_CONTRACT
216
+ "X-Deepline-Agent-Runtime": _chunk3BGGXEO5js.detectAgentRuntime.call(void 0, ),
217
+ "X-Deepline-CLI-Version": _chunk3BGGXEO5js.SDK_VERSION,
218
+ "X-Deepline-SDK-Version": _chunk3BGGXEO5js.SDK_VERSION,
219
+ "X-Deepline-API-Contract": _chunk3BGGXEO5js.SDK_API_CONTRACT
220
220
  };
221
221
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
222
222
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -254,7 +254,7 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
254
254
  throw lastError instanceof Error ? lastError : new Error(String(lastError));
255
255
  }
256
256
  async function reportSetupCompleted(input) {
257
- const apiKey = input.authScope === "folder" ? _chunkPIVZA4GIjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkPIVZA4GIjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
257
+ const apiKey = input.authScope === "folder" ? _chunk3BGGXEO5js.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunk3BGGXEO5js.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
258
258
  if (!apiKey) return;
259
259
  try {
260
260
  await httpJson(
@@ -351,7 +351,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
351
351
  }
352
352
  }
353
353
  async function handleRegister(args) {
354
- const baseUrl = _chunkPIVZA4GIjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
354
+ const baseUrl = _chunk3BGGXEO5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
355
355
  let orgName = "";
356
356
  let orgId = "";
357
357
  let agentName = "";
@@ -406,19 +406,19 @@ async function handleRegister(args) {
406
406
  });
407
407
  saveEnvValues(
408
408
  {
409
- [_chunkPIVZA4GIjs.HOST_URL_ENV]: baseUrl
409
+ [_chunk3BGGXEO5js.HOST_URL_ENV]: baseUrl
410
410
  },
411
411
  baseUrl,
412
412
  authScope
413
413
  );
414
414
  }
415
415
  if (claimUrl) {
416
- const shouldOpen = waitMode !== "no" && _chunkPIVZA4GIjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
416
+ const shouldOpen = waitMode !== "no" && _chunk3BGGXEO5js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
417
417
  console.log(
418
418
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
419
419
  );
420
420
  console.log(` ${claimUrl}`);
421
- if (shouldOpen) _chunkLT33BWLYjs.openInBrowser.call(void 0, claimUrl);
421
+ if (shouldOpen) _chunkDL5YQFZ6js.openInBrowser.call(void 0, claimUrl);
422
422
  }
423
423
  if (data.cli_message) {
424
424
  console.log(String(data.cli_message));
@@ -461,8 +461,8 @@ async function handleRegister(args) {
461
461
  if (apiKey) {
462
462
  saveEnvValues(
463
463
  {
464
- [_chunkPIVZA4GIjs.HOST_URL_ENV]: baseUrl,
465
- [_chunkPIVZA4GIjs.API_KEY_ENV]: apiKey,
464
+ [_chunk3BGGXEO5js.HOST_URL_ENV]: baseUrl,
465
+ [_chunk3BGGXEO5js.API_KEY_ENV]: apiKey,
466
466
  ...activeOrgEnvValues(statusData)
467
467
  },
468
468
  baseUrl,
@@ -484,7 +484,7 @@ async function handleRegister(args) {
484
484
  }
485
485
  }
486
486
  async function handleWait(args) {
487
- const baseUrl = _chunkPIVZA4GIjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
487
+ const baseUrl = _chunk3BGGXEO5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
488
488
  let timeoutSeconds = 300;
489
489
  let requestedScope;
490
490
  if (args.includes("--auth-scope")) {
@@ -508,7 +508,7 @@ async function handleWait(args) {
508
508
  const authScope = resumed.scope;
509
509
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _11 => _11.claimToken]), () => ( ""));
510
510
  if (!pendingClaim) {
511
- const scopedApiKey = authScope === "folder" ? _chunkPIVZA4GIjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkPIVZA4GIjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
511
+ const scopedApiKey = authScope === "folder" ? _chunk3BGGXEO5js.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk3BGGXEO5js.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
512
512
  if (scopedApiKey) {
513
513
  console.log("Already connected.");
514
514
  return EXIT_OK;
@@ -551,8 +551,8 @@ async function handleWait(args) {
551
551
  if (apiKey) {
552
552
  saveEnvValues(
553
553
  {
554
- [_chunkPIVZA4GIjs.HOST_URL_ENV]: baseUrl,
555
- [_chunkPIVZA4GIjs.API_KEY_ENV]: apiKey,
554
+ [_chunk3BGGXEO5js.HOST_URL_ENV]: baseUrl,
555
+ [_chunk3BGGXEO5js.API_KEY_ENV]: apiKey,
556
556
  ...activeOrgEnvValues(data)
557
557
  },
558
558
  baseUrl,
@@ -576,9 +576,9 @@ async function handleWait(args) {
576
576
  return EXIT_AUTH;
577
577
  }
578
578
  async function handleStatus(args) {
579
- const baseUrl = _chunkPIVZA4GIjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
579
+ const baseUrl = _chunk3BGGXEO5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
580
580
  const reveal = args.includes("--reveal");
581
- const jsonOutput = _chunkLT33BWLYjs.argsWantJson.call(void 0, args);
581
+ const jsonOutput = _chunkDL5YQFZ6js.argsWantJson.call(void 0, args);
582
582
  const hasExplicitAuthScope = args.includes("--auth-scope");
583
583
  let authScope = null;
584
584
  if (hasExplicitAuthScope) {
@@ -618,14 +618,14 @@ async function handleStatus(args) {
618
618
  };
619
619
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
620
620
  }
621
- const apiKey = authScope === "folder" ? _chunkPIVZA4GIjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkPIVZA4GIjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkPIVZA4GIjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
621
+ const apiKey = authScope === "folder" ? _chunk3BGGXEO5js.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunk3BGGXEO5js.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk3BGGXEO5js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
622
622
  if (!apiKey) {
623
623
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
624
624
  baseUrl,
625
625
  _nullishCoalesce(authScope, () => ( void 0))
626
626
  );
627
627
  if (pendingClaim) {
628
- _chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
628
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
629
629
  {
630
630
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
631
631
  status: "pending",
@@ -646,7 +646,7 @@ async function handleStatus(args) {
646
646
  );
647
647
  return EXIT_OK;
648
648
  }
649
- _chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
649
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
650
650
  {
651
651
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
652
652
  status: "not connected",
@@ -682,7 +682,7 @@ async function handleStatus(args) {
682
682
  }
683
683
  );
684
684
  if (status === 401 || status === 403) {
685
- _chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
685
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
686
686
  {
687
687
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
688
688
  status: "unauthorized",
@@ -712,7 +712,7 @@ async function handleStatus(args) {
712
712
  console.error(`Auth status error (status ${status}).`);
713
713
  return EXIT_SERVER;
714
714
  }
715
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkPIVZA4GIjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
715
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunk3BGGXEO5js.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
716
716
  clearSatisfiedPendingClaim(
717
717
  baseUrl,
718
718
  resolvedAuthScope,
@@ -740,28 +740,28 @@ async function handleStatus(args) {
740
740
  if (apiKeyResp) {
741
741
  saveEnvValues(
742
742
  {
743
- [_chunkPIVZA4GIjs.HOST_URL_ENV]: baseUrl,
744
- [_chunkPIVZA4GIjs.API_KEY_ENV]: apiKeyResp,
743
+ [_chunk3BGGXEO5js.HOST_URL_ENV]: baseUrl,
744
+ [_chunk3BGGXEO5js.API_KEY_ENV]: apiKeyResp,
745
745
  ...activeOrgEnvValues(data)
746
746
  },
747
747
  baseUrl,
748
748
  resolvedAuthScope
749
749
  );
750
750
  if (resolvedAuthScope === "folder") {
751
- const target = _chunkPIVZA4GIjs.resolveProjectPinTarget.call(void 0, );
751
+ const target = _chunk3BGGXEO5js.resolveProjectPinTarget.call(void 0, );
752
752
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
753
753
  } else {
754
754
  savedApiKeyPath = envFilePath(baseUrl);
755
755
  }
756
756
  }
757
- } else if (resolvedAuthScope === "folder" || _chunkPIVZA4GIjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
758
- saveEnvValues(_chunkPIVZA4GIjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
757
+ } else if (resolvedAuthScope === "folder" || _chunk3BGGXEO5js.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
758
+ saveEnvValues(_chunk3BGGXEO5js.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
759
759
  }
760
- _chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
760
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
761
761
  {
762
762
  ...payload,
763
- ..._chunkPIVZA4GIjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
764
- command_context: _chunkPIVZA4GIjs.resolveCliCommandContext.call(void 0,
763
+ ..._chunk3BGGXEO5js.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
764
+ command_context: _chunk3BGGXEO5js.resolveCliCommandContext.call(void 0,
765
765
  { baseUrl, apiKey },
766
766
  resolvedAuthScope
767
767
  )
@@ -15,7 +15,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkPIVZA4GIjs = require('./chunk-PIVZA4GI.js');
18
+ var _chunk3BGGXEO5js = require('./chunk-3BGGXEO5.js');
19
19
 
20
20
 
21
21
 
@@ -167,7 +167,7 @@ async function queryCustomerDatabase(http, input) {
167
167
  if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _2 => _2.code, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
168
168
  // lost connections and explicitly unknown transaction resolution.
169
169
  /^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
170
- throw new (0, _chunkPIVZA4GIjs.CustomerDbQueryOutcomeUnknownError)(
170
+ throw new (0, _chunk3BGGXEO5js.CustomerDbQueryOutcomeUnknownError)(
171
171
  error,
172
172
  plan.request.body.operation_key
173
173
  );
@@ -175,7 +175,7 @@ async function queryCustomerDatabase(http, input) {
175
175
  throw error;
176
176
  }
177
177
  if (!result || typeof result !== "object" || Array.isArray(result) || typeof result.command !== "string" || !Array.isArray(result.columns) || !Array.isArray(result.rows) || typeof result.truncated !== "boolean" || result.row_count !== null && (!Number.isSafeInteger(result.row_count) || result.row_count < 0) || !Number.isSafeInteger(result.row_count_returned) || result.row_count_returned < 0) {
178
- throw new (0, _chunkPIVZA4GIjs.CustomerDbQueryOutcomeUnknownError)(
178
+ throw new (0, _chunk3BGGXEO5js.CustomerDbQueryOutcomeUnknownError)(
179
179
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
180
180
  "The SQL response did not contain a valid result.",
181
181
  200,
@@ -186,7 +186,7 @@ async function queryCustomerDatabase(http, input) {
186
186
  }
187
187
  const operation = result.operation;
188
188
  if (input.operationKey !== void 0 && (!operation || operation.operation_key !== input.operationKey || !Number.isSafeInteger(operation.completed_at_ms) || operation.completed_at_ms < 0 || !["executed", "operation_recovery"].includes(operation.source))) {
189
- throw new (0, _chunkPIVZA4GIjs.CustomerDbQueryOutcomeUnknownError)(
189
+ throw new (0, _chunk3BGGXEO5js.CustomerDbQueryOutcomeUnknownError)(
190
190
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
191
191
  "The server did not confirm the original atomic SQL operation.",
192
192
  200,
@@ -2875,8 +2875,8 @@ function runtimeSelectionHeaders(runtime) {
2875
2875
  }
2876
2876
  const receivers = _optionalChain([process, 'access', _102 => _102.env, 'access', _103 => _103.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _104 => _104.trim, 'call', _105 => _105()]);
2877
2877
  return {
2878
- [_chunkPIVZA4GIjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2879
- ...receivers ? { [_chunkPIVZA4GIjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2878
+ [_chunk3BGGXEO5js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2879
+ ...receivers ? { [_chunk3BGGXEO5js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2880
2880
  };
2881
2881
  }
2882
2882
  function isolatedCiRuntimeEventReadHeaders() {
@@ -2892,7 +2892,7 @@ function isolatedCiRuntimeEventReadHeaders() {
2892
2892
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
2893
2893
  );
2894
2894
  }
2895
- return { [_chunkPIVZA4GIjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2895
+ return { [_chunk3BGGXEO5js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2896
2896
  }
2897
2897
  function normalizeTestPolicyOverrides(value, source) {
2898
2898
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -3182,8 +3182,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
3182
3182
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3183
3183
  */
3184
3184
  constructor(options) {
3185
- this.config = _chunkPIVZA4GIjs.resolveConfig.call(void 0, options);
3186
- this.http = new (0, _chunkPIVZA4GIjs.HttpClient)(this.config);
3185
+ this.config = _chunk3BGGXEO5js.resolveConfig.call(void 0, options);
3186
+ this.http = new (0, _chunk3BGGXEO5js.HttpClient)(this.config);
3187
3187
  this.toolCalls = new ToolCalls(
3188
3188
  this.http,
3189
3189
  this.config.timeout,