deepline 0.3.378 → 0.3.379

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 (91) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  3. package/dist/cli/auth-5I2DJ7WL.js +39 -0
  4. package/dist/cli/{auth-Z4TP4SLF.mjs → auth-POBP5XKE.mjs} +4 -4
  5. package/dist/cli/{billing-2LO7C4OI.js → billing-CDJTZO3L.js} +73 -73
  6. package/dist/cli/{billing-JR4QD4UG.mjs → billing-VSJ474AZ.mjs} +4 -4
  7. package/dist/cli/{chunk-2TEN5IOR.mjs → chunk-5W7JQ3A2.mjs} +4 -4
  8. package/dist/cli/{chunk-FJ3JEYFJ.mjs → chunk-5YEUVV6X.mjs} +1 -1
  9. package/dist/cli/{chunk-M5HYHFIV.mjs → chunk-5YUA2FQG.mjs} +1 -1
  10. package/dist/cli/{chunk-YSX6SSGW.js → chunk-6L5GTW3W.js} +8 -8
  11. package/dist/cli/{chunk-F7MGUP72.js → chunk-A3E7TCQK.js} +48 -48
  12. package/dist/cli/{chunk-AIRU4XTZ.js → chunk-BB6WCOYN.js} +9 -9
  13. package/dist/cli/{chunk-A7VUVXW6.js → chunk-CXS5E3NC.js} +50 -50
  14. package/dist/cli/{chunk-C47TYIAO.mjs → chunk-DB5IP3TV.mjs} +2 -2
  15. package/dist/cli/{chunk-V4TN5MXK.mjs → chunk-GW6EUKW7.mjs} +2 -2
  16. package/dist/cli/{chunk-ISVKLCGQ.js → chunk-HKDAWSF6.js} +6 -6
  17. package/dist/cli/{chunk-ZNGZPKXT.js → chunk-IKXDUCBB.js} +4 -4
  18. package/dist/cli/{chunk-DNORWBSX.mjs → chunk-J72WM3BY.mjs} +2 -2
  19. package/dist/cli/{chunk-WHEDPNPN.js → chunk-KIF5UJZ3.js} +15 -15
  20. package/dist/cli/{chunk-BUHZUAEB.js → chunk-MPFXZAIY.js} +8 -8
  21. package/dist/cli/{chunk-LHBPC7PZ.js → chunk-PD2WRTDS.js} +1 -1
  22. package/dist/cli/{chunk-FH3WJOCD.js → chunk-Q7QP3XU2.js} +2 -2
  23. package/dist/cli/{chunk-NGYNHAAC.js → chunk-T3ZCYEAL.js} +60 -60
  24. package/dist/cli/{chunk-EEXP6W4X.mjs → chunk-TA37L7MY.mjs} +2 -2
  25. package/dist/cli/{chunk-3OPJYNS2.mjs → chunk-U3EL4YRM.mjs} +3 -3
  26. package/dist/cli/{chunk-3H2Q377V.mjs → chunk-UNFRQUUM.mjs} +6 -6
  27. package/dist/cli/{chunk-JORLGBPA.mjs → chunk-W5I5QMMM.mjs} +1 -1
  28. package/dist/cli/{chunk-UCDAF3TI.js → chunk-XFR73M2S.js} +224 -224
  29. package/dist/cli/{chunk-KTZFOS57.mjs → chunk-XI5NWXP4.mjs} +1 -1
  30. package/dist/cli/{chunk-4YJHPJKQ.mjs → chunk-YQQSGVAD.mjs} +1 -1
  31. package/dist/cli/{chunk-4DAUDGO2.js → chunk-ZHGVS5YI.js} +26 -26
  32. package/dist/cli/{chunk-F2RPSYZC.mjs → chunk-ZNU5IDYI.mjs} +5 -5
  33. package/dist/cli/{csv-EQV4HK57.mjs → csv-D47DWKWT.mjs} +3 -3
  34. package/dist/cli/{csv-KEA6YLCU.js → csv-N2RLF7AD.js} +12 -12
  35. package/dist/cli/{db-BSD7XVVZ.js → db-IAT26T3O.js} +29 -29
  36. package/dist/cli/{db-CXWVEYF5.mjs → db-XB6L44DP.mjs} +4 -4
  37. package/dist/cli/{describe-5PIG7QJH.mjs → describe-77RUVCP4.mjs} +8 -8
  38. package/dist/cli/{describe-FG5JQWSB.js → describe-FHCK2IPO.js} +16 -16
  39. package/dist/cli/{executions-IPUW4YTD.mjs → executions-5LZ6VLOO.mjs} +4 -4
  40. package/dist/cli/{executions-HLJQEBSX.js → executions-5V3FSXDR.js} +6 -6
  41. package/dist/cli/{feedback-P2IEMRL7.mjs → feedback-JNBF5H7D.mjs} +3 -3
  42. package/dist/cli/{feedback-6QQVVCSY.js → feedback-KV765KDS.js} +7 -7
  43. package/dist/cli/{git-JD6UFEWE.mjs → git-YJUJAHZE.mjs} +4 -4
  44. package/dist/cli/git-YYRUQD4K.js +23 -0
  45. package/dist/cli/index.js +83 -83
  46. package/dist/cli/index.mjs +32 -32
  47. package/dist/cli/{legacy-noops-R6FG44MY.mjs → legacy-noops-QKV3SQ6S.mjs} +4 -4
  48. package/dist/cli/{legacy-noops-JZAEUIHY.js → legacy-noops-V3QK7KGI.js} +7 -7
  49. package/dist/cli/{monitors-AEDYTXDI.js → monitors-K33FLA4Q.js} +85 -85
  50. package/dist/cli/{monitors-7YTG6MUN.mjs → monitors-MH624SEV.mjs} +4 -4
  51. package/dist/cli/{org-CXXZEKOE.js → org-SLSIKOID.js} +64 -64
  52. package/dist/cli/{org-HFFNL6B2.mjs → org-V7K4VKWJ.mjs} +4 -4
  53. package/dist/cli/play-F7CATHIR.js +155 -0
  54. package/dist/cli/{play-2LBL27HQ.mjs → play-ZW3YPHCZ.mjs} +7 -7
  55. package/dist/cli/{providers-TSQ4IKGL.mjs → providers-3HJQ7S56.mjs} +4 -4
  56. package/dist/cli/{providers-FYPDMYJD.js → providers-M44EZVKP.js} +7 -7
  57. package/dist/cli/{quickstart-X4EK2VUO.mjs → quickstart-H5CP5Z4N.mjs} +3 -3
  58. package/dist/cli/{quickstart-OLB32KQD.js → quickstart-MTSZ5GDD.js} +5 -5
  59. package/dist/cli/{search-DC3MH3SK.mjs → search-FQBY77R7.mjs} +5 -5
  60. package/dist/cli/search-M3ZEKREB.js +26 -0
  61. package/dist/cli/{secrets-ND2ZJBTH.js → secrets-4E6RJKMK.js} +13 -13
  62. package/dist/cli/{secrets-YS5G7TKA.mjs → secrets-JT7RDYJD.mjs} +4 -4
  63. package/dist/cli/{sessions-FJYWJT4E.mjs → sessions-5I3VX7GL.mjs} +4 -4
  64. package/dist/cli/{sessions-ZAWZ23R4.js → sessions-7QUTJ4IX.js} +5 -5
  65. package/dist/cli/{settings-VGSUOAPQ.js → settings-KOMLTFDA.js} +74 -74
  66. package/dist/cli/{settings-2PBXGFTK.mjs → settings-WLFMKYRS.mjs} +7 -7
  67. package/dist/cli/{setup-SBBMRM7G.js → setup-DSRHIY6M.js} +41 -41
  68. package/dist/cli/{setup-5EGLDCAF.mjs → setup-KUDUUQ77.mjs} +6 -6
  69. package/dist/cli/skills-HNAWVPEB.js +28 -0
  70. package/dist/cli/{skills-HGC3BDBU.mjs → skills-RNQS5ABC.mjs} +4 -4
  71. package/dist/cli/tools-IB4WTAKE.js +40 -0
  72. package/dist/cli/{tools-UTLVTTWW.mjs → tools-S5QDXE5W.mjs} +6 -6
  73. package/dist/cli/update-I2ZBIT52.js +28 -0
  74. package/dist/cli/{update-IFOQMPAX.mjs → update-MT6PD7B5.mjs} +6 -6
  75. package/dist/cli/{workflow-PAM64TA4.js → workflow-QABG23XQ.js} +15 -15
  76. package/dist/cli/{workflow-JYUD2UHZ.mjs → workflow-WWEWE4WP.mjs} +5 -5
  77. package/dist/index.js +6 -6
  78. package/dist/index.mjs +3 -3
  79. package/dist/install-integrity.json +72 -72
  80. package/dist/release.d.mts +1 -1
  81. package/dist/release.d.ts +1 -1
  82. package/dist/release.js +2 -2
  83. package/dist/release.mjs +1 -1
  84. package/package.json +1 -1
  85. package/dist/cli/auth-GC4ZJ6HO.js +0 -39
  86. package/dist/cli/git-24TVX47T.js +0 -23
  87. package/dist/cli/play-BTDMU7WD.js +0 -155
  88. package/dist/cli/search-MHDPSHQG.js +0 -26
  89. package/dist/cli/skills-OSEKG6FD.js +0 -28
  90. package/dist/cli/tools-57UDLV2I.js +0 -40
  91. package/dist/cli/update-5YD7PJFE.js +0 -28
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-JORLGBPA.mjs";
4
+ } from "./chunk-W5I5QMMM.mjs";
5
5
  import {
6
6
  resolveShellSpawn,
7
7
  runSkillsCommand
8
- } from "./chunk-C47TYIAO.mjs";
8
+ } from "./chunk-DB5IP3TV.mjs";
9
9
  import {
10
10
  printCommandEnvelope
11
- } from "./chunk-KTZFOS57.mjs";
11
+ } from "./chunk-XI5NWXP4.mjs";
12
12
  import {
13
13
  autoDetectBaseUrl
14
- } from "./chunk-M5HYHFIV.mjs";
14
+ } from "./chunk-5YUA2FQG.mjs";
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  import { spawn, spawnSync } from "child_process";
@@ -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.378",
52
+ version: "0.3.379",
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
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-NXGCO4JB.mjs";
15
15
  import {
16
16
  SDK_RELEASE
17
- } from "./chunk-FJ3JEYFJ.mjs";
17
+ } from "./chunk-5YEUVV6X.mjs";
18
18
 
19
19
  // src/errors.ts
20
20
  var CustomerDbQueryOutcomeUnknownError = class extends DeeplineError {
@@ -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 _chunkISVKLCGQjs = require('./chunk-ISVKLCGQ.js');
4
+ var _chunkHKDAWSF6js = require('./chunk-HKDAWSF6.js');
5
5
 
6
6
 
7
- var _chunkZNGZPKXTjs = require('./chunk-ZNGZPKXT.js');
7
+ var _chunkIKXDUCBBjs = require('./chunk-IKXDUCBB.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 = _chunkZNGZPKXTjs.agentSessionIdFromEnvironment.call(void 0, );
142
+ const sessionId = _chunkIKXDUCBBjs.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 } = _chunkISVKLCGQjs.getAuthedHttpClient.call(void 0, );
451
+ const { http } = _chunkHKDAWSF6js.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
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
484
+ _chunkHKDAWSF6js.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
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
516
+ _chunkHKDAWSF6js.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
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
566
+ _chunkHKDAWSF6js.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
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
674
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
675
675
  {
676
676
  ok: true,
677
677
  file: outputPath,
@@ -13,7 +13,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkBUHZUAEBjs = require('./chunk-BUHZUAEB.js');
16
+ var _chunkMPFXZAIYjs = require('./chunk-MPFXZAIY.js');
17
17
 
18
18
 
19
19
 
@@ -32,7 +32,7 @@ var _chunk5O4B6AUNjs = require('./chunk-5O4B6AUN.js');
32
32
 
33
33
 
34
34
 
35
- var _chunkAIRU4XTZjs = require('./chunk-AIRU4XTZ.js');
35
+ var _chunkBB6WCOYNjs = require('./chunk-BB6WCOYN.js');
36
36
 
37
37
 
38
38
 
@@ -46,11 +46,11 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
46
46
 
47
47
 
48
48
 
49
- var _chunkISVKLCGQjs = require('./chunk-ISVKLCGQ.js');
49
+ var _chunkHKDAWSF6js = require('./chunk-HKDAWSF6.js');
50
50
 
51
51
 
52
52
 
53
- var _chunkZNGZPKXTjs = require('./chunk-ZNGZPKXT.js');
53
+ var _chunkIKXDUCBBjs = require('./chunk-IKXDUCBB.js');
54
54
 
55
55
 
56
56
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -95,10 +95,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
95
95
  }
96
96
  };
97
97
  function pendingToolExecutionPath(input) {
98
- const config = _chunkZNGZPKXTjs.resolveConfig.call(void 0, );
98
+ const config = _chunkIKXDUCBBjs.resolveConfig.call(void 0, );
99
99
  const fingerprint = _crypto.createHash.call(void 0, "sha256").update(config.baseUrl).update("\0").update(_crypto.createHash.call(void 0, "sha256").update(config.apiKey).digest("hex")).update("\0").update(input.toolId).update("\0").update(_chunk3VN4FTE3js.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
100
100
  return _path.join.call(void 0,
101
- _chunkZNGZPKXTjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
101
+ _chunkIKXDUCBBjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
102
102
  `pending-tool-execution-${fingerprint}.json`
103
103
  );
104
104
  }
@@ -619,12 +619,12 @@ function categoryEnumerationRender(summaries) {
619
619
  };
620
620
  }
621
621
  async function listToolCategories(emitJson, compact) {
622
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
622
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
623
623
  const rawTools = await client.listTools({ compact });
624
624
  const items = rawTools.map(toListedTool);
625
625
  const summaries = aggregateCategorySummaries(rawTools);
626
626
  const outputItems = compact ? items.map(compactTool) : items;
627
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
627
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
628
628
  {
629
629
  tools: outputItems,
630
630
  count: outputItems.length,
@@ -643,7 +643,7 @@ function unknownCategoryError(category, summaries, emitJson) {
643
643
  const known = summaries.map((item) => item.name);
644
644
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
645
645
  if (emitJson) {
646
- _chunkISVKLCGQjs.printJson.call(void 0, {
646
+ _chunkHKDAWSF6js.printJson.call(void 0, {
647
647
  ok: false,
648
648
  exitCode: 4,
649
649
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -657,13 +657,13 @@ function unknownCategoryError(category, summaries, emitJson) {
657
657
  const render = categoryEnumerationRender(summaries);
658
658
  console.error(message);
659
659
  console.error("");
660
- console.error(_chunkISVKLCGQjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
660
+ console.error(_chunkHKDAWSF6js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
661
661
  console.error("");
662
662
  console.error(`Valid categories: ${known.join(", ")}`);
663
663
  return 4;
664
664
  }
665
665
  async function listToolsInCategory(category, emitJson) {
666
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
666
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
667
667
  const rawTools = await client.listTools({
668
668
  categories: category,
669
669
  compact: false
@@ -700,7 +700,7 @@ async function listToolsInCategory(category, emitJson) {
700
700
  }
701
701
  ]
702
702
  };
703
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
703
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
704
704
  {
705
705
  category,
706
706
  total: rows.length,
@@ -713,7 +713,7 @@ async function listToolsInCategory(category, emitJson) {
713
713
  return 0;
714
714
  }
715
715
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
716
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
716
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
717
717
  const items = (await client.listTools({
718
718
  categories: requestedCategories.join(","),
719
719
  compact
@@ -742,7 +742,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
742
742
  ]
743
743
  };
744
744
  const outputItems = compact ? items.map(compactTool) : items;
745
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
745
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
746
746
  {
747
747
  tools: outputItems,
748
748
  count: outputItems.length,
@@ -761,13 +761,13 @@ async function listTools(category, options = {}) {
761
761
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
762
762
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
763
763
  const compact = options.compact !== false;
764
- const emitJson = options.json === true || _chunkISVKLCGQjs.shouldEmitJson.call(void 0, );
764
+ const emitJson = options.json === true || _chunkHKDAWSF6js.shouldEmitJson.call(void 0, );
765
765
  if (positional && flagCategories.length > 0) {
766
766
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
767
767
  if (!flagIsSameSingle) {
768
768
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
769
769
  if (emitJson) {
770
- _chunkISVKLCGQjs.printJson.call(void 0, {
770
+ _chunkHKDAWSF6js.printJson.call(void 0, {
771
771
  ok: false,
772
772
  exitCode: 2,
773
773
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -794,7 +794,7 @@ async function grepTools(queryInput, options = {}) {
794
794
  console.error("Usage: deepline tools grep <query> [--json]");
795
795
  return 1;
796
796
  }
797
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
797
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
798
798
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
799
799
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
800
800
  const jsonOutput = options.json === true;
@@ -837,7 +837,7 @@ async function grepTools(queryInput, options = {}) {
837
837
  query,
838
838
  mode
839
839
  }) : null;
840
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
840
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
841
841
  {
842
842
  tools: outputTools,
843
843
  count: outputTools.length,
@@ -855,7 +855,7 @@ async function grepTools(queryInput, options = {}) {
855
855
  } : {},
856
856
  commandTemplates: TOOL_COMMAND_TEMPLATES
857
857
  },
858
- { json: options.json || _chunkISVKLCGQjs.shouldEmitJson.call(void 0, ) }
858
+ { json: options.json || _chunkHKDAWSF6js.shouldEmitJson.call(void 0, ) }
859
859
  );
860
860
  return 0;
861
861
  }
@@ -1011,7 +1011,7 @@ Examples:
1011
1011
  json: Boolean(options.json)
1012
1012
  });
1013
1013
  });
1014
- _chunkBUHZUAEBjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
1014
+ _chunkMPFXZAIYjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
1015
1015
  tools.command("grep <query>").description(
1016
1016
  "Literal grep over tool ids, descriptions, categories, and input fields."
1017
1017
  ).addHelpText(
@@ -1112,7 +1112,7 @@ Examples:
1112
1112
  process.exitCode = await narrowView();
1113
1113
  return;
1114
1114
  }
1115
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-FG5JQWSB.js")));
1115
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-FHCK2IPO.js")));
1116
1116
  process.exitCode = await describeAnything(
1117
1117
  toolId,
1118
1118
  {
@@ -1198,7 +1198,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1198
1198
  console.error("Usage: deepline tools describe <toolId> [--json]");
1199
1199
  return 1;
1200
1200
  }
1201
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
1201
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
1202
1202
  let tool;
1203
1203
  try {
1204
1204
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1252,10 +1252,10 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1252
1252
  const lines = toolPricingOnlyLines(tool, toolId);
1253
1253
  if (inferenceQuote)
1254
1254
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1255
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
1255
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
1256
1256
  {
1257
1257
  toolId: String(tool.toolId || toolId),
1258
- cost: _chunkBUHZUAEBjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1258
+ cost: _chunkMPFXZAIYjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1259
1259
  ...modelDescription ? { modelOptions: modelDescription } : {},
1260
1260
  ...isMonitorTypeTool(tool) ? { pricing: recordField(tool, "pricing") } : {},
1261
1261
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -1270,7 +1270,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1270
1270
  }
1271
1271
  if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
1272
1272
  const contract = toolContractJsonForDescribe(tool, toolId);
1273
- _chunkISVKLCGQjs.printCompactJson.call(void 0, {
1273
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, {
1274
1274
  toolId: contract.toolId,
1275
1275
  ...options.schemaOnly ? {
1276
1276
  inputSchema: contract.inputSchema,
@@ -1293,7 +1293,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1293
1293
  return 0;
1294
1294
  }
1295
1295
  if (options.contractJson) {
1296
- _chunkISVKLCGQjs.printCompactJson.call(void 0, {
1296
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, {
1297
1297
  ...toolContractJsonForDescribe(tool, toolId),
1298
1298
  ...modelDescription ? { modelOptions: modelDescription } : {},
1299
1299
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -1302,7 +1302,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1302
1302
  }
1303
1303
  const emitJson = options.json === true;
1304
1304
  if (emitJson) {
1305
- _chunkISVKLCGQjs.printCompactJson.call(void 0, {
1305
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, {
1306
1306
  ...toolMetadataJsonForDescribe(tool, toolId),
1307
1307
  ...modelDescription ? { modelOptions: modelDescription } : {},
1308
1308
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -1379,7 +1379,7 @@ function toolContractJsonForDescribe(tool, requestedToolId, authoringContractEdi
1379
1379
  const extractedValues = extractionContractEntries(
1380
1380
  arrayField2(toolExecutionResult, "extractedValues", "extracted_values")
1381
1381
  );
1382
- const pricing = _chunkBUHZUAEBjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1382
+ const pricing = _chunkMPFXZAIYjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1383
1383
  const executionMetadataRecord = recordField(
1384
1384
  tool,
1385
1385
  "executionMetadata",
@@ -1716,7 +1716,7 @@ function describedTool(tool, requestedToolId) {
1716
1716
  stringField2(cost, "displayText"),
1717
1717
  // "Free (free)" says the same thing twice.
1718
1718
  billing.toLowerCase() === stringField2(cost, "displayText").toLowerCase() ? "" : billing && `(${billing})`,
1719
- _chunkBUHZUAEBjs.observedMaxText.call(void 0, cost) && `\u2014 ${_chunkBUHZUAEBjs.observedMaxText.call(void 0, cost)}`
1719
+ _chunkMPFXZAIYjs.observedMaxText.call(void 0, cost) && `\u2014 ${_chunkMPFXZAIYjs.observedMaxText.call(void 0, cost)}`
1720
1720
  ].filter(Boolean).join(" ") || void 0,
1721
1721
  guidance: [
1722
1722
  ...contract.deprecated === true ? [`Deprecated. ${stringField2(deprecation, "message")}`.trim()] : [],
@@ -1853,7 +1853,7 @@ function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1853
1853
  return monitorTypePricingLines(tool);
1854
1854
  }
1855
1855
  const toolId = String(tool.toolId || requestedToolId);
1856
- const cost = _chunkBUHZUAEBjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1856
+ const cost = _chunkMPFXZAIYjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1857
1857
  const pricingModel = stringField2(cost, "pricingModel") || "unknown";
1858
1858
  const billing = stringField2(cost, "billingSourceLabel") || stringField2(cost, "billingSource") || stringField2(cost, "billingMode") || "unknown";
1859
1859
  const explicitUnit = stringField2(cost, "unit");
@@ -1865,7 +1865,7 @@ function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1865
1865
  const price = displayText || summary || (credits !== null ? `${formatDecimal(credits)} Deepline credits${usd !== null ? ` / ${formatUsd(usd)}` : ""} per ${unit}` : "pricing unavailable");
1866
1866
  return [
1867
1867
  `${_nullishCoalesce(options.heading, () => ( `Pricing: ${toolId}`))}: ${price}`,
1868
- ..._chunkBUHZUAEBjs.observedMaxText.call(void 0, cost) ? [` ${_chunkBUHZUAEBjs.observedMaxText.call(void 0, cost)}`] : [],
1868
+ ..._chunkMPFXZAIYjs.observedMaxText.call(void 0, cost) ? [` ${_chunkMPFXZAIYjs.observedMaxText.call(void 0, cost)}`] : [],
1869
1869
  ...cost.observedReference || cost.estimatedRange ? [
1870
1870
  ...summary ? [` ${summary}`] : [],
1871
1871
  ...(_nullishCoalesce(cost.details, () => ( []))).map((detail) => ` ${detail}`)
@@ -2143,7 +2143,7 @@ function toolMetadataJsonForDescribe(tool, requestedToolId) {
2143
2143
  } = tool;
2144
2144
  const outputSchemaRecord = recordField(tool, "outputSchema", "output_schema");
2145
2145
  return {
2146
- cost: _chunkBUHZUAEBjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
2146
+ cost: _chunkMPFXZAIYjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
2147
2147
  ...publicTool,
2148
2148
  toolId,
2149
2149
  provider: tool.provider,
@@ -2757,7 +2757,7 @@ function parseExecuteOptions(toolId, options, output) {
2757
2757
  outputFormat = normalizeOutputFormat(options.outputFormat);
2758
2758
  }
2759
2759
  if (options.idempotencyKey !== void 0) {
2760
- _chunkAIRU4XTZjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2760
+ _chunkBB6WCOYNjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2761
2761
  }
2762
2762
  if (options.recoveryTimeoutMs !== void 0) {
2763
2763
  const parsed = Number(options.recoveryTimeoutMs);
@@ -3068,20 +3068,20 @@ function buildToolExecuteRowArtifactEnvelope(input) {
3068
3068
  }
3069
3069
  async function executeTool(toolId, options) {
3070
3070
  const output = toolExecuteJsonOption(options.json);
3071
- const wantsJson = _chunkISVKLCGQjs.shouldEmitJson.call(void 0, output.requested) || (_nullishCoalesce(options.outputFormat, () => ( "auto"))).trim().toLowerCase() !== "csv";
3071
+ const wantsJson = _chunkHKDAWSF6js.shouldEmitJson.call(void 0, output.requested) || (_nullishCoalesce(options.outputFormat, () => ( "auto"))).trim().toLowerCase() !== "csv";
3072
3072
  let parsed;
3073
3073
  try {
3074
3074
  parsed = parseExecuteOptions(toolId, options, output);
3075
3075
  } catch (error) {
3076
3076
  if (wantsJson) {
3077
- _chunkISVKLCGQjs.printJsonError.call(void 0, error);
3077
+ _chunkHKDAWSF6js.printJsonError.call(void 0, error);
3078
3078
  } else {
3079
3079
  console.error(error instanceof Error ? error.message : String(error));
3080
3080
  }
3081
3081
  return error instanceof _chunk7P5AA3SNjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
3082
3082
  }
3083
3083
  const cliInvocationId = _nullishCoalesce(_chunkQJBJZVG6js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, )));
3084
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
3084
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
3085
3085
  let metadata;
3086
3086
  try {
3087
3087
  metadata = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
@@ -3096,7 +3096,7 @@ async function executeTool(toolId, options) {
3096
3096
  );
3097
3097
  if (play) {
3098
3098
  if (wantsJson) {
3099
- _chunkISVKLCGQjs.printJsonError.call(void 0,
3099
+ _chunkHKDAWSF6js.printJsonError.call(void 0,
3100
3100
  new Error(playAliasToolErrorMessage(parsed.toolId, play))
3101
3101
  );
3102
3102
  } else {
@@ -3109,7 +3109,7 @@ async function executeTool(toolId, options) {
3109
3109
  }
3110
3110
  if (isPlayLikeTool(metadata)) {
3111
3111
  if (wantsJson) {
3112
- _chunkISVKLCGQjs.printJsonError.call(void 0,
3112
+ _chunkHKDAWSF6js.printJsonError.call(void 0,
3113
3113
  new Error(
3114
3114
  playLikeToolExecuteErrorMessage(
3115
3115
  parsed.toolId,
@@ -3145,7 +3145,7 @@ async function executeTool(toolId, options) {
3145
3145
  responseIntent,
3146
3146
  ...idempotencyKey ? { idempotencyKey } : {},
3147
3147
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
3148
- searchRef: _chunkBUHZUAEBjs.recentSearchRef.call(void 0, ),
3148
+ searchRef: _chunkMPFXZAIYjs.recentSearchRef.call(void 0, ),
3149
3149
  cliInvocationId,
3150
3150
  onResponseReceived: _chunkZMVJSS6Njs.recordApiResponse
3151
3151
  }).catch((error) => {
@@ -3186,7 +3186,7 @@ async function executeTool(toolId, options) {
3186
3186
  const executeExitCode = toolExecuteExitCode(baseEnvelope);
3187
3187
  const delivered = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, "output delivery", () => {
3188
3188
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
3189
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
3189
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
3190
3190
  return true;
3191
3191
  }
3192
3192
  if (parsed.outputFormat === "json_file") {
@@ -3194,7 +3194,7 @@ async function executeTool(toolId, options) {
3194
3194
  rawResponse,
3195
3195
  `payload_${parsed.toolId}`
3196
3196
  );
3197
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
3197
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
3198
3198
  {
3199
3199
  ...baseEnvelope,
3200
3200
  local: {
@@ -3216,7 +3216,7 @@ async function executeTool(toolId, options) {
3216
3216
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
3217
3217
  );
3218
3218
  if (wantsJson) {
3219
- _chunkISVKLCGQjs.printJsonError.call(void 0, error);
3219
+ _chunkHKDAWSF6js.printJsonError.call(void 0, error);
3220
3220
  } else {
3221
3221
  console.error(error.message);
3222
3222
  }
@@ -3227,7 +3227,7 @@ async function executeTool(toolId, options) {
3227
3227
  rawResponse,
3228
3228
  `payload_${parsed.toolId}`
3229
3229
  );
3230
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
3230
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
3231
3231
  {
3232
3232
  ...baseEnvelope,
3233
3233
  local: {
@@ -3238,7 +3238,7 @@ async function executeTool(toolId, options) {
3238
3238
  );
3239
3239
  return true;
3240
3240
  }
3241
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
3241
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
3242
3242
  return true;
3243
3243
  }
3244
3244
  const rowOutput = _chunk3VN4FTE3js.projectRowOutput.call(void 0, listConversion);
@@ -3262,7 +3262,7 @@ async function executeTool(toolId, options) {
3262
3262
  seededScript
3263
3263
  });
3264
3264
  if (parsed.outputFormat === "csv_file") {
3265
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
3265
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
3266
3266
  return true;
3267
3267
  }
3268
3268
  if (parsed.outPath) {
@@ -3270,7 +3270,7 @@ async function executeTool(toolId, options) {
3270
3270
  toolId: parsed.toolId,
3271
3271
  idempotencyKey
3272
3272
  });
3273
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3273
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0, materializedEnvelope, {
3274
3274
  json: wantsJson,
3275
3275
  text: `Wrote ${csv.rowCount} row(s) to ${csv.path}
3276
3276
  inspect: ${inspection.inspect}
@@ -3279,7 +3279,7 @@ inspect: ${inspection.inspect}
3279
3279
  return true;
3280
3280
  }
3281
3281
  if (parsed.noPreview) {
3282
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
3282
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
3283
3283
  {
3284
3284
  ...materializedEnvelope,
3285
3285
  local: {
@@ -3292,7 +3292,7 @@ inspect: ${inspection.inspect}
3292
3292
  );
3293
3293
  return true;
3294
3294
  }
3295
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3295
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0, materializedEnvelope, {
3296
3296
  json: wantsJson && parsed.outputFormat !== "csv"
3297
3297
  });
3298
3298
  return true;
@@ -21,7 +21,7 @@ var _chunkPAIMOGCMjs = require('./chunk-PAIMOGCM.js');
21
21
 
22
22
 
23
23
 
24
- var _chunkZNGZPKXTjs = require('./chunk-ZNGZPKXT.js');
24
+ var _chunkIKXDUCBBjs = require('./chunk-IKXDUCBB.js');
25
25
 
26
26
 
27
27
 
@@ -137,7 +137,7 @@ async function queryCustomerDatabase(http, input) {
137
137
  if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _ => _.code, 'optionalAccess', _2 => _2.startsWith, 'call', _3 => _3("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
138
138
  // lost connections and explicitly unknown transaction resolution.
139
139
  /^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
140
- throw new (0, _chunkZNGZPKXTjs.CustomerDbQueryOutcomeUnknownError)(
140
+ throw new (0, _chunkIKXDUCBBjs.CustomerDbQueryOutcomeUnknownError)(
141
141
  error,
142
142
  plan.request.body.operation_key
143
143
  );
@@ -145,7 +145,7 @@ async function queryCustomerDatabase(http, input) {
145
145
  throw error;
146
146
  }
147
147
  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) {
148
- throw new (0, _chunkZNGZPKXTjs.CustomerDbQueryOutcomeUnknownError)(
148
+ throw new (0, _chunkIKXDUCBBjs.CustomerDbQueryOutcomeUnknownError)(
149
149
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
150
150
  "The SQL response did not contain a valid result.",
151
151
  200,
@@ -156,7 +156,7 @@ async function queryCustomerDatabase(http, input) {
156
156
  }
157
157
  const operation = result.operation;
158
158
  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))) {
159
- throw new (0, _chunkZNGZPKXTjs.CustomerDbQueryOutcomeUnknownError)(
159
+ throw new (0, _chunkIKXDUCBBjs.CustomerDbQueryOutcomeUnknownError)(
160
160
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
161
161
  "The server did not confirm the original atomic SQL operation.",
162
162
  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
- [_chunkZNGZPKXTjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2914
- ...receivers ? { [_chunkZNGZPKXTjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2913
+ [_chunkIKXDUCBBjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2914
+ ...receivers ? { [_chunkIKXDUCBBjs.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 { [_chunkZNGZPKXTjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2930
+ return { [_chunkIKXDUCBBjs.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 = _chunkZNGZPKXTjs.resolveConfig.call(void 0, options);
3221
- this.http = new (0, _chunkZNGZPKXTjs.HttpClient)(this.config);
3220
+ this.config = _chunkIKXDUCBBjs.resolveConfig.call(void 0, options);
3221
+ this.http = new (0, _chunkIKXDUCBBjs.HttpClient)(this.config);
3222
3222
  this.toolCalls = new ToolCalls(
3223
3223
  this.http,
3224
3224
  this.config.timeout,