deepline 0.3.375 → 0.3.376

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +56 -4
  3. package/dist/cli/auth-BTFXJQLT.js +35 -0
  4. package/dist/cli/{auth-U3Y7DTIG.mjs → auth-MLCDUTJY.mjs} +4 -4
  5. package/dist/cli/{billing-P2DNRAND.js → billing-IONI4V7P.js} +73 -73
  6. package/dist/cli/{billing-TKARGBO3.mjs → billing-OUGNDBL4.mjs} +4 -4
  7. package/dist/cli/{chunk-HP4BE43N.js → chunk-34KUUN3Z.js} +50 -50
  8. package/dist/cli/{chunk-M2HVNJ47.js → chunk-47X6MQ7J.js} +60 -60
  9. package/dist/cli/{chunk-MTBQEND4.js → chunk-4V2Q3JO6.js} +15 -15
  10. package/dist/cli/{chunk-HEF6UDGA.js → chunk-5HDB7XXT.js} +235 -235
  11. package/dist/cli/{chunk-B3TQIJ6L.mjs → chunk-5HJHTZI6.mjs} +1 -1
  12. package/dist/cli/{chunk-LZUWGLM4.js → chunk-6EYTKUDI.js} +2 -2
  13. package/dist/cli/{chunk-IG3GOO4T.mjs → chunk-7LX2G2PU.mjs} +1 -1
  14. package/dist/cli/{chunk-ADSZGPYZ.js → chunk-7ZZSGV4A.js} +1 -1
  15. package/dist/cli/{chunk-DHTG5CCI.js → chunk-A6ZTYKYF.js} +18 -1
  16. package/dist/cli/{chunk-DAG4ZBTJ.js → chunk-ETUV6RRK.js} +9 -9
  17. package/dist/cli/{chunk-HSIVHAZA.mjs → chunk-GMRWUGXB.mjs} +3 -3
  18. package/dist/cli/{chunk-ZHXPNJQI.mjs → chunk-H7SLESX6.mjs} +1 -1
  19. package/dist/cli/{chunk-4GP56LRE.mjs → chunk-HDB4GAWY.mjs} +1 -1
  20. package/dist/cli/{chunk-F5CU5ALX.js → chunk-KHZ6WEVF.js} +26 -26
  21. package/dist/cli/{chunk-STYH5U6W.mjs → chunk-L6OSOKS6.mjs} +7 -7
  22. package/dist/cli/{chunk-M5QDOHLG.mjs → chunk-MHRDXS7J.mjs} +1 -1
  23. package/dist/cli/{chunk-IQTHRG6E.js → chunk-N6KIEYZV.js} +4 -4
  24. package/dist/cli/{chunk-GN5QM2BB.js → chunk-QSH5CHRI.js} +6 -6
  25. package/dist/cli/{chunk-QEEIEHGV.mjs → chunk-SPZNLE2D.mjs} +2 -2
  26. package/dist/cli/{chunk-SJVJZOPT.mjs → chunk-UABI2T3Z.mjs} +2 -2
  27. package/dist/cli/{chunk-B2LFDTXZ.mjs → chunk-UE2UHYT3.mjs} +18 -1
  28. package/dist/cli/{chunk-MPQSBHMA.mjs → chunk-V7ZREPSD.mjs} +4 -4
  29. package/dist/cli/{chunk-Z4ARN4X3.mjs → chunk-VL5ERG22.mjs} +2 -2
  30. package/dist/cli/{chunk-ZFWU5V2A.mjs → chunk-VNBAOWN3.mjs} +6 -6
  31. package/dist/cli/{chunk-CUIBDSSS.js → chunk-Y4MXBE3V.js} +8 -8
  32. package/dist/cli/{chunk-NVXMPGM4.js → chunk-Y5W5IIA4.js} +57 -57
  33. package/dist/cli/{chunk-MKS7C3YR.mjs → chunk-YXQ7SRL3.mjs} +2 -2
  34. package/dist/cli/{chunk-KK4XPUVA.js → chunk-ZXFGA2VK.js} +8 -8
  35. package/dist/cli/{csv-WAEVGKHF.js → csv-LPC7BGZ2.js} +12 -12
  36. package/dist/cli/{csv-3FTYTEJ3.mjs → csv-NITSP7QJ.mjs} +3 -3
  37. package/dist/cli/{db-HUGGFIVS.mjs → db-JVDYEXNC.mjs} +4 -4
  38. package/dist/cli/{db-UDMDGNKO.js → db-WGD54UKM.js} +29 -29
  39. package/dist/cli/{describe-SIAKZYRK.js → describe-GA7LSJRY.js} +28 -28
  40. package/dist/cli/{describe-EOBOGTB5.mjs → describe-SVMLA6SN.mjs} +9 -9
  41. package/dist/cli/{executions-O6Z2HSLK.mjs → executions-CXBJDGMU.mjs} +4 -4
  42. package/dist/cli/{executions-HYYP27MG.js → executions-P47HEI4N.js} +6 -6
  43. package/dist/cli/{feedback-RRAMGMQV.mjs → feedback-34OSXUQ2.mjs} +3 -3
  44. package/dist/cli/{feedback-3DWSBHKS.js → feedback-GWKWE5CU.js} +7 -7
  45. package/dist/cli/git-MIPISCON.js +23 -0
  46. package/dist/cli/{git-KVAK7VOL.mjs → git-YAROF6D3.mjs} +4 -4
  47. package/dist/cli/index.js +82 -82
  48. package/dist/cli/index.mjs +32 -32
  49. package/dist/cli/{legacy-noops-MQNCDMY7.mjs → legacy-noops-2G55OKIU.mjs} +4 -4
  50. package/dist/cli/{legacy-noops-V5GQXXUR.js → legacy-noops-MDZQL3QH.js} +7 -7
  51. package/dist/cli/{monitors-6FB63TDM.mjs → monitors-KUGKMABN.mjs} +4 -4
  52. package/dist/cli/{monitors-RFGQILPW.js → monitors-X7QYWFSP.js} +85 -85
  53. package/dist/cli/{org-L33EPH2E.js → org-6XL3IBT2.js} +64 -64
  54. package/dist/cli/{org-TZPQDDVX.mjs → org-CNBBAN4W.mjs} +4 -4
  55. package/dist/cli/{play-PU23OETO.mjs → play-33ZMPAR5.mjs} +8 -8
  56. package/dist/cli/play-3CM3P2DS.js +155 -0
  57. package/dist/cli/{providers-QGQR6ZZF.mjs → providers-3OSQNFPE.mjs} +4 -4
  58. package/dist/cli/{providers-2RHIKO22.js → providers-5POAURDT.js} +7 -7
  59. package/dist/cli/{quickstart-BGQVPI7W.js → quickstart-LQGPDJTS.js} +5 -5
  60. package/dist/cli/{quickstart-24DQYBW7.mjs → quickstart-QICTOOW6.mjs} +3 -3
  61. package/dist/cli/search-A2YLJ4I5.js +26 -0
  62. package/dist/cli/{search-EUN7YFMX.mjs → search-HBIX4SF4.mjs} +5 -5
  63. package/dist/cli/{secrets-OOHN6LNJ.mjs → secrets-6MRGZPHT.mjs} +4 -4
  64. package/dist/cli/{secrets-XL7GUTQA.js → secrets-QKPBNQ3E.js} +13 -13
  65. package/dist/cli/{sessions-SDN4C3YS.mjs → sessions-NODY2OW4.mjs} +4 -4
  66. package/dist/cli/{sessions-FD5XB7M2.js → sessions-NP7BLZD2.js} +5 -5
  67. package/dist/cli/{settings-6ZEKVAYL.js → settings-42QHXUB2.js} +74 -74
  68. package/dist/cli/{settings-3MXRXYXI.mjs → settings-JCEIOTNL.mjs} +7 -7
  69. package/dist/cli/{setup-DWTR6HNT.mjs → setup-3QR4RGMG.mjs} +6 -6
  70. package/dist/cli/{setup-VKQ5EJZR.js → setup-5XXWP54Y.js} +41 -41
  71. package/dist/cli/skills-4JJEAA66.js +28 -0
  72. package/dist/cli/{skills-ISG5UUZW.mjs → skills-U4OMXLNS.mjs} +4 -4
  73. package/dist/cli/{tools-JTC3DR6M.mjs → tools-45OROEZQ.mjs} +7 -7
  74. package/dist/cli/tools-FDCFSA7W.js +40 -0
  75. package/dist/cli/{update-GMTVIHCG.mjs → update-2XCRMJ4R.mjs} +6 -6
  76. package/dist/cli/update-VYL4TXIE.js +28 -0
  77. package/dist/cli/{workflow-2765Y3Y5.js → workflow-47P4LQNC.js} +15 -15
  78. package/dist/cli/{workflow-3POT3VFY.mjs → workflow-7X3GCOPY.mjs} +5 -5
  79. package/dist/index.js +6 -6
  80. package/dist/index.mjs +3 -3
  81. package/dist/install-integrity.json +74 -74
  82. package/dist/release.d.mts +1 -1
  83. package/dist/release.d.ts +1 -1
  84. package/dist/release.js +2 -2
  85. package/dist/release.mjs +1 -1
  86. package/package.json +1 -1
  87. package/dist/cli/auth-B7CLYD7R.js +0 -35
  88. package/dist/cli/git-M36KWCCG.js +0 -23
  89. package/dist/cli/play-YR2XQARF.js +0 -155
  90. package/dist/cli/search-OHELMK6E.js +0 -26
  91. package/dist/cli/skills-6GFW4GCW.js +0 -28
  92. package/dist/cli/tools-LK4L6VCK.js +0 -40
  93. package/dist/cli/update-PSJLAW4Q.js +0 -28
@@ -4,7 +4,7 @@ import {
4
4
  recordApiResponse,
5
5
  schemaField,
6
6
  schemaFields
7
- } from "./chunk-B2LFDTXZ.mjs";
7
+ } from "./chunk-UE2UHYT3.mjs";
8
8
  import {
9
9
  shellQuote
10
10
  } from "./chunk-OVDNJAJN.mjs";
@@ -13,7 +13,7 @@ import {
13
13
  observedMaxText,
14
14
  recentSearchRef,
15
15
  registerDeprecatedSearchCommand
16
- } from "./chunk-HSIVHAZA.mjs";
16
+ } from "./chunk-GMRWUGXB.mjs";
17
17
  import {
18
18
  DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS,
19
19
  EMAIL_STATUS_JSON_SCHEMA,
@@ -32,7 +32,7 @@ import {
32
32
  import {
33
33
  DeeplineClient,
34
34
  validateExecutionIdempotencyKey
35
- } from "./chunk-ZHXPNJQI.mjs";
35
+ } from "./chunk-H7SLESX6.mjs";
36
36
  import {
37
37
  beginToolExecuteCommand,
38
38
  getToolExecuteInvocationId,
@@ -46,11 +46,11 @@ import {
46
46
  printJsonError,
47
47
  renderCommandEnvelopeText,
48
48
  shouldEmitJson
49
- } from "./chunk-M5QDOHLG.mjs";
49
+ } from "./chunk-MHRDXS7J.mjs";
50
50
  import {
51
51
  resolveConfig,
52
52
  sdkCliStateDirPath
53
- } from "./chunk-4GP56LRE.mjs";
53
+ } from "./chunk-HDB4GAWY.mjs";
54
54
  import {
55
55
  DeeplineError
56
56
  } from "./chunk-NXGCO4JB.mjs";
@@ -1112,7 +1112,7 @@ Examples:
1112
1112
  process.exitCode = await narrowView();
1113
1113
  return;
1114
1114
  }
1115
- const { describeAnything } = await import("./describe-EOBOGTB5.mjs");
1115
+ const { describeAnything } = await import("./describe-SVMLA6SN.mjs");
1116
1116
  process.exitCode = await describeAnything(
1117
1117
  toolId,
1118
1118
  {
@@ -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 _chunkGN5QM2BBjs = require('./chunk-GN5QM2BB.js');
4
+ var _chunkQSH5CHRIjs = require('./chunk-QSH5CHRI.js');
5
5
 
6
6
 
7
- var _chunkIQTHRG6Ejs = require('./chunk-IQTHRG6E.js');
7
+ var _chunkN6KIEYZVjs = require('./chunk-N6KIEYZV.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 = _chunkIQTHRG6Ejs.agentSessionIdFromEnvironment.call(void 0, );
142
+ const sessionId = _chunkN6KIEYZVjs.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 } = _chunkGN5QM2BBjs.getAuthedHttpClient.call(void 0, );
451
+ const { http } = _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
484
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
516
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
566
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
674
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
675
675
  {
676
676
  ok: true,
677
677
  file: outputPath,
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkDHTG5CCIjs = require('./chunk-DHTG5CCI.js');
7
+ var _chunkA6ZTYKYFjs = require('./chunk-A6ZTYKYF.js');
8
8
 
9
9
 
10
10
  var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
@@ -13,7 +13,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkKK4XPUVAjs = require('./chunk-KK4XPUVA.js');
16
+ var _chunkZXFGA2VKjs = require('./chunk-ZXFGA2VK.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 _chunkDAG4ZBTJjs = require('./chunk-DAG4ZBTJ.js');
35
+ var _chunkETUV6RRKjs = require('./chunk-ETUV6RRK.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 _chunkGN5QM2BBjs = require('./chunk-GN5QM2BB.js');
49
+ var _chunkQSH5CHRIjs = require('./chunk-QSH5CHRI.js');
50
50
 
51
51
 
52
52
 
53
- var _chunkIQTHRG6Ejs = require('./chunk-IQTHRG6E.js');
53
+ var _chunkN6KIEYZVjs = require('./chunk-N6KIEYZV.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 = _chunkIQTHRG6Ejs.resolveConfig.call(void 0, );
98
+ const config = _chunkN6KIEYZVjs.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
- _chunkIQTHRG6Ejs.sdkCliStateDirPath.call(void 0, config.baseUrl),
101
+ _chunkN6KIEYZVjs.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, _chunkDAG4ZBTJjs.DeeplineClient)();
622
+ const client = new (0, _chunkETUV6RRKjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
627
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printJson.call(void 0, {
646
+ _chunkQSH5CHRIjs.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(_chunkGN5QM2BBjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
660
+ console.error(_chunkQSH5CHRIjs.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, _chunkDAG4ZBTJjs.DeeplineClient)();
666
+ const client = new (0, _chunkETUV6RRKjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
703
+ _chunkQSH5CHRIjs.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, _chunkDAG4ZBTJjs.DeeplineClient)();
716
+ const client = new (0, _chunkETUV6RRKjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
745
+ _chunkQSH5CHRIjs.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 || _chunkGN5QM2BBjs.shouldEmitJson.call(void 0, );
764
+ const emitJson = options.json === true || _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printJson.call(void 0, {
770
+ _chunkQSH5CHRIjs.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, _chunkDAG4ZBTJjs.DeeplineClient)();
797
+ const client = new (0, _chunkETUV6RRKjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
840
+ _chunkQSH5CHRIjs.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 || _chunkGN5QM2BBjs.shouldEmitJson.call(void 0, ) }
858
+ { json: options.json || _chunkQSH5CHRIjs.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
- _chunkKK4XPUVAjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
1014
+ _chunkZXFGA2VKjs.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-SIAKZYRK.js")));
1115
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-GA7LSJRY.js")));
1116
1116
  process.exitCode = await describeAnything(
1117
1117
  toolId,
1118
1118
  {
@@ -1127,7 +1127,7 @@ Examples:
1127
1127
  });
1128
1128
  };
1129
1129
  addToolMetadataCommand(
1130
- _chunkDHTG5CCIjs.addDescribeOptions.call(void 0,
1130
+ _chunkA6ZTYKYFjs.addDescribeOptions.call(void 0,
1131
1131
  tools.command("describe <toolId>", { hidden: true }).alias("get"),
1132
1132
  { json: false }
1133
1133
  )
@@ -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, _chunkDAG4ZBTJjs.DeeplineClient)();
1201
+ const client = new (0, _chunkETUV6RRKjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
1255
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
1256
1256
  {
1257
1257
  toolId: String(tool.toolId || toolId),
1258
- cost: _chunkKK4XPUVAjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1258
+ cost: _chunkZXFGA2VKjs.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
- _chunkGN5QM2BBjs.printCompactJson.call(void 0, {
1273
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCompactJson.call(void 0, {
1296
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCompactJson.call(void 0, {
1305
+ _chunkQSH5CHRIjs.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 = _chunkKK4XPUVAjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1382
+ const pricing = _chunkZXFGA2VKjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1383
1383
  const executionMetadataRecord = recordField(
1384
1384
  tool,
1385
1385
  "executionMetadata",
@@ -1594,7 +1594,7 @@ function extractorValueType(name) {
1594
1594
  }
1595
1595
  const named = NAMED_VALUE_SHAPES[definition.valueKind];
1596
1596
  if (!named) return { type: "string" };
1597
- const { type, fields } = _chunkDHTG5CCIjs.schemaField.call(void 0, name, named.schema, true);
1597
+ const { type, fields } = _chunkA6ZTYKYFjs.schemaField.call(void 0, name, named.schema, true);
1598
1598
  return { type, ...fields ? { fields } : {}, shape: named.shape };
1599
1599
  }
1600
1600
  function jsonSchemaOf(wrapper) {
@@ -1631,7 +1631,7 @@ function describedTool(tool, requestedToolId) {
1631
1631
  description,
1632
1632
  cost: stringField2(recordField(tool, "pricing"), "displayText") || void 0,
1633
1633
  guidance: [],
1634
- inputs: _chunkDHTG5CCIjs.schemaFields.call(void 0,
1634
+ inputs: _chunkA6ZTYKYFjs.schemaFields.call(void 0,
1635
1635
  recordField(tool, "payload_schema", "payloadSchema")
1636
1636
  ),
1637
1637
  outputs: [],
@@ -1667,7 +1667,7 @@ function describedTool(tool, requestedToolId) {
1667
1667
  (path) => path.replace(/^toolResponse\.raw\./, "")
1668
1668
  );
1669
1669
  const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
1670
- const { fields, ...typed } = _chunkDHTG5CCIjs.schemaField.call(void 0, name, node, true);
1670
+ const { fields, ...typed } = _chunkA6ZTYKYFjs.schemaField.call(void 0, name, node, true);
1671
1671
  const valueType = stringField2(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
1672
1672
  const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
1673
1673
  const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
@@ -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
- _chunkKK4XPUVAjs.observedMaxText.call(void 0, cost) && `\u2014 ${_chunkKK4XPUVAjs.observedMaxText.call(void 0, cost)}`
1719
+ _chunkZXFGA2VKjs.observedMaxText.call(void 0, cost) && `\u2014 ${_chunkZXFGA2VKjs.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()] : [],
@@ -1724,12 +1724,12 @@ function describedTool(tool, requestedToolId) {
1724
1724
  (line) => typeof line === "string" && /[a-z0-9]/i.test(line)
1725
1725
  )
1726
1726
  ],
1727
- rateLimit: _chunkDHTG5CCIjs.rateLimitSummary.call(void 0,
1727
+ rateLimit: _chunkA6ZTYKYFjs.rateLimitSummary.call(void 0,
1728
1728
  recordField(contract, "executionMetadata").configuredRateLimits
1729
1729
  ),
1730
- inputs: _chunkDHTG5CCIjs.schemaFields.call(void 0, jsonSchemaOf(recordField(contract, "inputSchema"))),
1730
+ inputs: _chunkA6ZTYKYFjs.schemaFields.call(void 0, jsonSchemaOf(recordField(contract, "inputSchema"))),
1731
1731
  outputs: [...lists, ...values].map(({ field }) => field),
1732
- rawResponse: _chunkDHTG5CCIjs.schemaFields.call(void 0, outputSchema),
1732
+ rawResponse: _chunkA6ZTYKYFjs.schemaFields.call(void 0, outputSchema),
1733
1733
  runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId) }
1734
1734
  };
1735
1735
  }
@@ -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 = _chunkKK4XPUVAjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1856
+ const cost = _chunkZXFGA2VKjs.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
- ..._chunkKK4XPUVAjs.observedMaxText.call(void 0, cost) ? [` ${_chunkKK4XPUVAjs.observedMaxText.call(void 0, cost)}`] : [],
1868
+ ..._chunkZXFGA2VKjs.observedMaxText.call(void 0, cost) ? [` ${_chunkZXFGA2VKjs.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: _chunkKK4XPUVAjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
2146
+ cost: _chunkZXFGA2VKjs.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
- _chunkDAG4ZBTJjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2760
+ _chunkETUV6RRKjs.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 = _chunkGN5QM2BBjs.shouldEmitJson.call(void 0, output.requested) || (_nullishCoalesce(options.outputFormat, () => ( "auto"))).trim().toLowerCase() !== "csv";
3071
+ const wantsJson = _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printJsonError.call(void 0, error);
3077
+ _chunkQSH5CHRIjs.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, _chunkDAG4ZBTJjs.DeeplineClient)();
3084
+ const client = new (0, _chunkETUV6RRKjs.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
- _chunkGN5QM2BBjs.printJsonError.call(void 0,
3099
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printJsonError.call(void 0,
3112
+ _chunkQSH5CHRIjs.printJsonError.call(void 0,
3113
3113
  new Error(
3114
3114
  playLikeToolExecuteErrorMessage(
3115
3115
  parsed.toolId,
@@ -3145,9 +3145,9 @@ async function executeTool(toolId, options) {
3145
3145
  responseIntent,
3146
3146
  ...idempotencyKey ? { idempotencyKey } : {},
3147
3147
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
3148
- searchRef: _chunkKK4XPUVAjs.recentSearchRef.call(void 0, ),
3148
+ searchRef: _chunkZXFGA2VKjs.recentSearchRef.call(void 0, ),
3149
3149
  cliInvocationId,
3150
- onResponseReceived: _chunkDHTG5CCIjs.recordApiResponse
3150
+ onResponseReceived: _chunkA6ZTYKYFjs.recordApiResponse
3151
3151
  }).catch((error) => {
3152
3152
  const guidanceLines = toolGuidanceLines(metadata.guidance);
3153
3153
  if (guidanceLines.length > 0) {
@@ -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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
3189
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
3197
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printJsonError.call(void 0, error);
3219
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
3230
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
3241
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
3265
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3273
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
3282
+ _chunkQSH5CHRIjs.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
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3295
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3296
3296
  json: wantsJson && parsed.outputFormat !== "csv"
3297
3297
  });
3298
3298
  return true;
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-M5QDOHLG.mjs";
5
+ } from "./chunk-MHRDXS7J.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -25,7 +25,7 @@ import {
25
25
  saveHostEnvValues,
26
26
  saveProjectDeeplineEnvValues,
27
27
  storedHostApiKey
28
- } from "./chunk-4GP56LRE.mjs";
28
+ } from "./chunk-HDB4GAWY.mjs";
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
  import {
@@ -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 _chunkDAG4ZBTJjs = require('./chunk-DAG4ZBTJ.js');
3
+ var _chunkETUV6RRKjs = require('./chunk-ETUV6RRK.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkGN5QM2BBjs = require('./chunk-GN5QM2BB.js');
7
+ var _chunkQSH5CHRIjs = require('./chunk-QSH5CHRI.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkIQTHRG6Ejs = require('./chunk-IQTHRG6E.js');
11
+ var _chunkN6KIEYZVjs = require('./chunk-N6KIEYZV.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, _chunkIQTHRG6Ejs.sdkCliStateDirPath.call(void 0, _chunkIQTHRG6Ejs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
21
+ return _path.join.call(void 0, _chunkN6KIEYZVjs.sdkCliStateDirPath.call(void 0, _chunkN6KIEYZVjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
22
22
  }
23
23
  function rememberSearchRef(searchRef) {
24
24
  try {
@@ -259,7 +259,7 @@ function searchRow(item) {
259
259
  }
260
260
  function renderSearchResults(result) {
261
261
  if (result.results.length === 0)
262
- return _chunkGN5QM2BBjs.renderCommandEnvelopeText.call(void 0, result);
262
+ return _chunkQSH5CHRIjs.renderCommandEnvelopeText.call(void 0, result);
263
263
  const rows = result.results.map(searchRow);
264
264
  const kinds = new Set(rows.map((row) => row.kind));
265
265
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -283,7 +283,7 @@ function renderSearchResults(result) {
283
283
  actions: _optionalChain([render, 'optionalAccess', _11 => _11.actions])
284
284
  };
285
285
  const followUps = _optionalChain([remaining, 'access', _12 => _12.sections, 'optionalAccess', _13 => _13.length]) || _optionalChain([remaining, 'access', _14 => _14.actions, 'optionalAccess', _15 => _15.length]) ? `
286
- ${_chunkGN5QM2BBjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
286
+ ${_chunkQSH5CHRIjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
287
287
  const notes = rows.flatMap(
288
288
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
289
289
  );
@@ -360,7 +360,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
360
360
  console.error(USAGE);
361
361
  return 1;
362
362
  }
363
- const { search_ref: searchRef, ...result } = await new (0, _chunkDAG4ZBTJjs.DeeplineClient)().search({
363
+ const { search_ref: searchRef, ...result } = await new (0, _chunkETUV6RRKjs.DeeplineClient)().search({
364
364
  query,
365
365
  types,
366
366
  exclude,
@@ -374,7 +374,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
374
374
  });
375
375
  if (searchRef) rememberSearchRef(searchRef);
376
376
  pointAtDescribe(result);
377
- _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0, result, {
377
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, result, {
378
378
  json: options.json === true,
379
379
  text: renderSearchResults(result)
380
380
  });