deepline 0.3.365 → 0.3.367

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 (99) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +36 -18
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +2 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +53 -20
  5. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-dispatch-authority.ts +9 -2
  6. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +25 -13
  7. package/dist/bundling-sources/shared_libs/security/receipt-admission-token.ts +69 -0
  8. package/dist/cli/{auth-4S26H44S.mjs → auth-2DHYG3WZ.mjs} +4 -4
  9. package/dist/cli/auth-I2E45QZK.js +33 -0
  10. package/dist/cli/{billing-IMSQT3SR.mjs → billing-VFBFBOO5.mjs} +4 -4
  11. package/dist/cli/{billing-JD3SGKJN.js → billing-YBTOTHXM.js} +73 -73
  12. package/dist/cli/{chunk-4LQ3MCZU.js → chunk-3BZR22CZ.js} +60 -60
  13. package/dist/cli/{chunk-QGVNIGCS.mjs → chunk-3Y3N7WQO.mjs} +1 -1
  14. package/dist/cli/{chunk-YME4BTRK.mjs → chunk-3ZO2O2LE.mjs} +2 -2
  15. package/dist/cli/{chunk-E66FPPCT.js → chunk-5NVMNFCG.js} +15 -15
  16. package/dist/cli/{chunk-VHWW76SC.mjs → chunk-6DRGO4CB.mjs} +6 -6
  17. package/dist/cli/{chunk-UIZZ6CC6.js → chunk-AVSPBILZ.js} +8 -8
  18. package/dist/cli/{chunk-FTP4HYWY.js → chunk-B7JTGFDS.js} +1 -1
  19. package/dist/cli/{chunk-NFBQAQRE.mjs → chunk-BBQ5IWRX.mjs} +5 -5
  20. package/dist/cli/{chunk-VZRENGJ2.js → chunk-CRRVBNZD.js} +8 -8
  21. package/dist/cli/{chunk-XA7MAC3G.js → chunk-D7SELX66.js} +6 -6
  22. package/dist/cli/{chunk-XH7A4IWD.mjs → chunk-DIDYT2TH.mjs} +2 -2
  23. package/dist/cli/{chunk-YKRINWA2.mjs → chunk-GD2VVYGB.mjs} +1 -1
  24. package/dist/cli/{chunk-7MS7JCBB.mjs → chunk-GXRUBTXZ.mjs} +2 -2
  25. package/dist/cli/{chunk-QTBWSCF4.mjs → chunk-HEWGTHI2.mjs} +3 -3
  26. package/dist/cli/{chunk-6RX64O34.mjs → chunk-JNQECSK5.mjs} +1 -1
  27. package/dist/cli/{chunk-NDQBGF6U.mjs → chunk-K4V4FX76.mjs} +1 -1
  28. package/dist/cli/{chunk-HNZNRS6I.js → chunk-KJFND3YT.js} +9 -9
  29. package/dist/cli/{chunk-6ZZX3NVM.mjs → chunk-LDSBBKSM.mjs} +2 -2
  30. package/dist/cli/{chunk-XPYEE2AU.js → chunk-LJIWLZHS.js} +45 -45
  31. package/dist/cli/{chunk-LYLMIZIK.js → chunk-MKRADCZK.js} +26 -26
  32. package/dist/cli/{chunk-HHZIOAWI.js → chunk-MXJEKMHU.js} +224 -224
  33. package/dist/cli/{chunk-5OMKEQGL.mjs → chunk-OCX5D2WI.mjs} +1 -1
  34. package/dist/cli/{chunk-L7CUNWVR.js → chunk-R2HHZLOP.js} +4 -4
  35. package/dist/cli/{chunk-WJ4IGJR4.mjs → chunk-W2LUUB3U.mjs} +4 -4
  36. package/dist/cli/{chunk-QNJZROLE.js → chunk-XPIZKTYZ.js} +50 -50
  37. package/dist/cli/{chunk-7MF27ZQA.js → chunk-Z35CB3I5.js} +2 -2
  38. package/dist/cli/{client-TIT2YEEY.mjs → client-F6SEXBBG.mjs} +3 -3
  39. package/dist/cli/client-VWGJIUGH.js +20 -0
  40. package/dist/cli/{csv-XYARLBKW.js → csv-4AB42QFI.js} +12 -12
  41. package/dist/cli/{csv-64W5LJIT.mjs → csv-DC3MLBOC.mjs} +3 -3
  42. package/dist/cli/{db-BGC5QKV6.mjs → db-JAQHMLUY.mjs} +4 -4
  43. package/dist/cli/{db-52N7JAVE.js → db-M3URDTLR.js} +29 -29
  44. package/dist/cli/{describe-DPDNIXVH.js → describe-AVXUIRDK.js} +15 -15
  45. package/dist/cli/{describe-3ZSRFCHD.mjs → describe-RYXCBLJG.mjs} +8 -8
  46. package/dist/cli/{executions-WVIUSOSA.js → executions-DYDW4WY3.js} +6 -6
  47. package/dist/cli/{executions-ZIMU47UG.mjs → executions-XPY5FKOS.mjs} +4 -4
  48. package/dist/cli/{feedback-VS5A3KAR.js → feedback-HMP2ZYNW.js} +7 -7
  49. package/dist/cli/{feedback-7Z2PUW4R.mjs → feedback-ZOI3GFAC.mjs} +3 -3
  50. package/dist/cli/{git-JTIF7PN4.mjs → git-K35PB25D.mjs} +4 -4
  51. package/dist/cli/git-TJEM2U4K.js +23 -0
  52. package/dist/cli/index.js +82 -82
  53. package/dist/cli/index.mjs +32 -32
  54. package/dist/cli/{legacy-noops-7IR7H7N4.mjs → legacy-noops-PKGJRS75.mjs} +4 -4
  55. package/dist/cli/{legacy-noops-B2WDO6FW.js → legacy-noops-QNNMKQDW.js} +7 -7
  56. package/dist/cli/{monitors-LWBSJ3OX.mjs → monitors-JMNBMRSQ.mjs} +4 -4
  57. package/dist/cli/{monitors-OESDIJVL.js → monitors-MUMWTBID.js} +85 -85
  58. package/dist/cli/{org-ENJDFLCZ.js → org-2QL6AY6G.js} +64 -64
  59. package/dist/cli/{org-T7OXEG5L.mjs → org-AQPMMPQE.mjs} +4 -4
  60. package/dist/cli/{play-FOB5OCJ3.mjs → play-AITTTWYK.mjs} +7 -7
  61. package/dist/cli/play-YO52D4YP.js +153 -0
  62. package/dist/cli/{providers-3OGXEWHS.js → providers-BGTPNAOA.js} +7 -7
  63. package/dist/cli/{providers-TU3QNHIS.mjs → providers-LRCYLIQA.mjs} +4 -4
  64. package/dist/cli/{quickstart-VSVPWMNU.mjs → quickstart-3II563Z7.mjs} +3 -3
  65. package/dist/cli/{quickstart-DM4UGC7C.js → quickstart-WMAUXWKW.js} +5 -5
  66. package/dist/cli/search-FQ5NSE7R.js +26 -0
  67. package/dist/cli/{search-CBHKG7YA.mjs → search-J6ELRZNH.mjs} +5 -5
  68. package/dist/cli/{secrets-YTN4ZA4T.js → secrets-HDBB2647.js} +13 -13
  69. package/dist/cli/{secrets-6ZQF4M27.mjs → secrets-L7LOTLZB.mjs} +4 -4
  70. package/dist/cli/{sessions-BPRYFAWJ.mjs → sessions-7DMN24LF.mjs} +4 -4
  71. package/dist/cli/{sessions-ZO7IOGUF.js → sessions-ZO3WB3EF.js} +5 -5
  72. package/dist/cli/{settings-N65YB4QA.js → settings-OVUM5BLZ.js} +74 -74
  73. package/dist/cli/{settings-WYCYXUM7.mjs → settings-USHCF4YD.mjs} +7 -7
  74. package/dist/cli/{setup-KLEY2DJT.mjs → setup-FZQ7HDL4.mjs} +6 -6
  75. package/dist/cli/{setup-RW4BMAKA.js → setup-W77Y5ALX.js} +41 -41
  76. package/dist/cli/{skills-DFXLS3KI.mjs → skills-A2LR3RAP.mjs} +4 -4
  77. package/dist/cli/skills-GLKEZPFV.js +28 -0
  78. package/dist/cli/{tools-UDSCRFZN.mjs → tools-FX7G7KX5.mjs} +6 -6
  79. package/dist/cli/tools-HBNJ3WP3.js +40 -0
  80. package/dist/cli/update-A2TZZO2S.js +28 -0
  81. package/dist/cli/{update-3MKDIO3Y.mjs → update-EODE5FHU.mjs} +6 -6
  82. package/dist/cli/{workflow-XNYXVEVF.mjs → workflow-7352UH6L.mjs} +5 -5
  83. package/dist/cli/{workflow-64Y2B5YZ.js → workflow-JEY4ESZA.js} +15 -15
  84. package/dist/index.js +6 -6
  85. package/dist/index.mjs +3 -3
  86. package/dist/install-integrity.json +74 -74
  87. package/dist/release.d.mts +1 -1
  88. package/dist/release.d.ts +1 -1
  89. package/dist/release.js +2 -2
  90. package/dist/release.mjs +1 -1
  91. package/package.json +1 -1
  92. package/dist/cli/auth-AXY27RN4.js +0 -33
  93. package/dist/cli/client-OBQBVVUE.js +0 -20
  94. package/dist/cli/git-QJYLQED2.js +0 -23
  95. package/dist/cli/play-Z6SXXNP5.js +0 -153
  96. package/dist/cli/search-26IGFUMM.js +0 -26
  97. package/dist/cli/skills-XTGVE76M.js +0 -28
  98. package/dist/cli/tools-AK4XQBQJ.js +0 -40
  99. package/dist/cli/update-NIIEFTPX.js +0 -28
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.365",
52
+ version: "0.3.367",
53
53
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
54
54
  packageCapabilities: {
55
55
  updatePreferences: 1
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  recentSearchRef,
13
13
  registerDeprecatedSearchCommand
14
- } from "./chunk-QTBWSCF4.mjs";
14
+ } from "./chunk-HEWGTHI2.mjs";
15
15
  import {
16
16
  extractSummaryFields,
17
17
  projectRowOutput,
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  DeeplineClient,
28
28
  validateExecutionIdempotencyKey
29
- } from "./chunk-6RX64O34.mjs";
29
+ } from "./chunk-JNQECSK5.mjs";
30
30
  import {
31
31
  beginToolExecuteCommand,
32
32
  getToolExecuteInvocationId,
@@ -40,11 +40,11 @@ import {
40
40
  printJsonError,
41
41
  renderCommandEnvelopeText,
42
42
  shouldEmitJson
43
- } from "./chunk-NDQBGF6U.mjs";
43
+ } from "./chunk-K4V4FX76.mjs";
44
44
  import {
45
45
  resolveConfig,
46
46
  sdkCliStateDirPath
47
- } from "./chunk-5OMKEQGL.mjs";
47
+ } from "./chunk-OCX5D2WI.mjs";
48
48
  import {
49
49
  DeeplineError
50
50
  } from "./chunk-NXGCO4JB.mjs";
@@ -1030,7 +1030,7 @@ Examples:
1030
1030
  process.exitCode = await narrowView();
1031
1031
  return;
1032
1032
  }
1033
- const { describeAnything } = await import("./describe-3ZSRFCHD.mjs");
1033
+ const { describeAnything } = await import("./describe-RYXCBLJG.mjs");
1034
1034
  process.exitCode = await describeAnything(
1035
1035
  toolId,
1036
1036
  { ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
@@ -1,14 +1,14 @@
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 _chunkHNZNRS6Ijs = require('./chunk-HNZNRS6I.js');
3
+ var _chunkKJFND3YTjs = require('./chunk-KJFND3YT.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkXA7MAC3Gjs = require('./chunk-XA7MAC3G.js');
7
+ var _chunkD7SELX66js = require('./chunk-D7SELX66.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkL7CUNWVRjs = require('./chunk-L7CUNWVR.js');
11
+ var _chunkR2HHZLOPjs = require('./chunk-R2HHZLOP.js');
12
12
 
13
13
  // src/cli/commands/search.ts
14
14
  var _commander = require('commander');
@@ -18,7 +18,7 @@ var _fs = require('fs');
18
18
  var _path = require('path');
19
19
  var SEARCH_REF_TTL_MS = 15 * 6e4;
20
20
  function lastSearchPath() {
21
- return _path.join.call(void 0, _chunkL7CUNWVRjs.sdkCliStateDirPath.call(void 0, _chunkL7CUNWVRjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
21
+ return _path.join.call(void 0, _chunkR2HHZLOPjs.sdkCliStateDirPath.call(void 0, _chunkR2HHZLOPjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
22
22
  }
23
23
  function rememberSearchRef(searchRef) {
24
24
  try {
@@ -153,7 +153,7 @@ function searchRow(item) {
153
153
  }
154
154
  function renderSearchResults(result) {
155
155
  if (result.results.length === 0)
156
- return _chunkXA7MAC3Gjs.renderCommandEnvelopeText.call(void 0, result);
156
+ return _chunkD7SELX66js.renderCommandEnvelopeText.call(void 0, result);
157
157
  const rows = result.results.map(searchRow);
158
158
  const kinds = new Set(rows.map((row) => row.kind));
159
159
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -177,7 +177,7 @@ function renderSearchResults(result) {
177
177
  actions: _optionalChain([render, 'optionalAccess', _11 => _11.actions])
178
178
  };
179
179
  const followUps = _optionalChain([remaining, 'access', _12 => _12.sections, 'optionalAccess', _13 => _13.length]) || _optionalChain([remaining, 'access', _14 => _14.actions, 'optionalAccess', _15 => _15.length]) ? `
180
- ${_chunkXA7MAC3Gjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
180
+ ${_chunkD7SELX66js.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
181
181
  const notes = rows.flatMap(
182
182
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
183
183
  );
@@ -254,7 +254,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
254
254
  console.error(USAGE);
255
255
  return 1;
256
256
  }
257
- const { search_ref: searchRef, ...result } = await new (0, _chunkHNZNRS6Ijs.DeeplineClient)().search({
257
+ const { search_ref: searchRef, ...result } = await new (0, _chunkKJFND3YTjs.DeeplineClient)().search({
258
258
  query,
259
259
  types,
260
260
  exclude,
@@ -268,7 +268,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
268
268
  });
269
269
  if (searchRef) rememberSearchRef(searchRef);
270
270
  pointAtDescribe(result);
271
- _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0, result, {
271
+ _chunkD7SELX66js.printCommandEnvelope.call(void 0, result, {
272
272
  json: options.json === true,
273
273
  text: renderSearchResults(result)
274
274
  });
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkL7CUNWVRjs = require('./chunk-L7CUNWVR.js');
6
+ var _chunkR2HHZLOPjs = require('./chunk-R2HHZLOP.js');
7
7
 
8
8
 
9
9
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -225,8 +225,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
225
225
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
226
226
  var defaultBrowserCommandRunner = childProcess;
227
227
  function getAuthedHttpClient() {
228
- const config = _chunkL7CUNWVRjs.resolveConfig.call(void 0, );
229
- return { config, http: new (0, _chunkL7CUNWVRjs.HttpClient)(config) };
228
+ const config = _chunkR2HHZLOPjs.resolveConfig.call(void 0, );
229
+ return { config, http: new (0, _chunkR2HHZLOPjs.HttpClient)(config) };
230
230
  }
231
231
  function stableOsUserId() {
232
232
  try {
@@ -566,7 +566,7 @@ function collectLocalEnvInfo() {
566
566
  os: `${process.platform} ${process.arch}`,
567
567
  node_version: process.version,
568
568
  home_dir: homeDir,
569
- agent_runtime: _chunkL7CUNWVRjs.detectAgentRuntime.call(void 0, )
569
+ agent_runtime: _chunkR2HHZLOPjs.detectAgentRuntime.call(void 0, )
570
570
  };
571
571
  const env = process.env;
572
572
  const optional = {
@@ -813,9 +813,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
813
813
  }
814
814
  function withAgentCommandContext(value) {
815
815
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
816
- return _chunkL7CUNWVRjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
816
+ return _chunkR2HHZLOPjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
817
817
  ...valueRecord,
818
- command_context: _chunkL7CUNWVRjs.resolveCliCommandContext.call(void 0, )
818
+ command_context: _chunkR2HHZLOPjs.resolveCliCommandContext.call(void 0, )
819
819
  } : value;
820
820
  }
821
821
  function printJson(value, fields) {
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-NDQBGF6U.mjs";
5
+ } from "./chunk-K4V4FX76.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-5OMKEQGL.mjs";
8
+ } from "./chunk-OCX5D2WI.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.365",
52
+ version: "0.3.367",
53
53
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
54
54
  packageCapabilities: {
55
55
  updatePreferences: 1
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-GAMFK2ZP.mjs";
4
4
  import {
5
5
  printCommandEnvelope
6
- } from "./chunk-NDQBGF6U.mjs";
6
+ } from "./chunk-K4V4FX76.mjs";
7
7
  import {
8
8
  DEFAULT_SKILL_AGENTS,
9
9
  KNOWN_SKILL_AGENTS,
@@ -22,7 +22,7 @@ import {
22
22
  sdkCliStateDirPath,
23
23
  skillsAgentPathSegment,
24
24
  writeSdkSkillsLocalVersion
25
- } from "./chunk-5OMKEQGL.mjs";
25
+ } from "./chunk-OCX5D2WI.mjs";
26
26
  import {
27
27
  DeeplineError
28
28
  } from "./chunk-NXGCO4JB.mjs";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-6RX64O34.mjs";
3
+ } from "./chunk-JNQECSK5.mjs";
4
4
  import {
5
5
  printCommandEnvelope,
6
6
  renderCommandEnvelopeText
7
- } from "./chunk-NDQBGF6U.mjs";
7
+ } from "./chunk-K4V4FX76.mjs";
8
8
  import {
9
9
  resolveConfig,
10
10
  sdkCliStateDirPath
11
- } from "./chunk-5OMKEQGL.mjs";
11
+ } from "./chunk-OCX5D2WI.mjs";
12
12
 
13
13
  // src/cli/commands/search.ts
14
14
  import { Option } from "commander";
@@ -21,7 +21,7 @@ import {
21
21
  RETAINED_PIPELINE_RECEIVERS_HEADER,
22
22
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
23
23
  resolveConfig
24
- } from "./chunk-5OMKEQGL.mjs";
24
+ } from "./chunk-OCX5D2WI.mjs";
25
25
  import {
26
26
  DeeplineError,
27
27
  TOOL_EXECUTION_ERROR_SCHEMA_HEADER,
@@ -3,7 +3,7 @@ import {
3
3
  detectAgentRuntime,
4
4
  resolveCliCommandContext,
5
5
  resolveConfig
6
- } from "./chunk-5OMKEQGL.mjs";
6
+ } from "./chunk-OCX5D2WI.mjs";
7
7
  import {
8
8
  DeeplineError
9
9
  } from "./chunk-NXGCO4JB.mjs";
@@ -21,7 +21,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
21
21
 
22
22
 
23
23
 
24
- var _chunkL7CUNWVRjs = require('./chunk-L7CUNWVR.js');
24
+ var _chunkR2HHZLOPjs = require('./chunk-R2HHZLOP.js');
25
25
 
26
26
 
27
27
 
@@ -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, _chunkL7CUNWVRjs.CustomerDbQueryOutcomeUnknownError)(
170
+ throw new (0, _chunkR2HHZLOPjs.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, _chunkL7CUNWVRjs.CustomerDbQueryOutcomeUnknownError)(
178
+ throw new (0, _chunkR2HHZLOPjs.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, _chunkL7CUNWVRjs.CustomerDbQueryOutcomeUnknownError)(
189
+ throw new (0, _chunkR2HHZLOPjs.CustomerDbQueryOutcomeUnknownError)(
190
190
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
191
191
  "The server did not confirm the original atomic SQL operation.",
192
192
  200,
@@ -2910,8 +2910,8 @@ function runtimeSelectionHeaders(runtime) {
2910
2910
  }
2911
2911
  const receivers = _optionalChain([process, 'access', _104 => _104.env, 'access', _105 => _105.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107()]);
2912
2912
  return {
2913
- [_chunkL7CUNWVRjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2914
- ...receivers ? { [_chunkL7CUNWVRjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2913
+ [_chunkR2HHZLOPjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2914
+ ...receivers ? { [_chunkR2HHZLOPjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2915
2915
  };
2916
2916
  }
2917
2917
  function isolatedCiRuntimeEventReadHeaders() {
@@ -2927,7 +2927,7 @@ function isolatedCiRuntimeEventReadHeaders() {
2927
2927
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
2928
2928
  );
2929
2929
  }
2930
- return { [_chunkL7CUNWVRjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2930
+ return { [_chunkR2HHZLOPjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2931
2931
  }
2932
2932
  function normalizeTestPolicyOverrides(value, source) {
2933
2933
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -3217,8 +3217,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
3217
3217
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3218
3218
  */
3219
3219
  constructor(options) {
3220
- this.config = _chunkL7CUNWVRjs.resolveConfig.call(void 0, options);
3221
- this.http = new (0, _chunkL7CUNWVRjs.HttpClient)(this.config);
3220
+ this.config = _chunkR2HHZLOPjs.resolveConfig.call(void 0, options);
3221
+ this.http = new (0, _chunkR2HHZLOPjs.HttpClient)(this.config);
3222
3222
  this.toolCalls = new ToolCalls(
3223
3223
  this.http,
3224
3224
  this.config.timeout,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-NDQBGF6U.mjs";
4
+ } from "./chunk-K4V4FX76.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-5OMKEQGL.mjs";
7
+ } from "./chunk-OCX5D2WI.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {