deepline 0.3.374 → 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 (99) 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-YGCDA4WG.mjs → auth-MLCDUTJY.mjs} +6 -4
  5. package/dist/cli/{billing-ZXRKPD5D.js → billing-IONI4V7P.js} +73 -73
  6. package/dist/cli/{billing-3ZLR3CJU.mjs → billing-OUGNDBL4.mjs} +4 -4
  7. package/dist/cli/{chunk-TZTGK5JQ.js → chunk-34KUUN3Z.js} +52 -51
  8. package/dist/cli/{chunk-MOBOAZMA.js → chunk-47X6MQ7J.js} +60 -60
  9. package/dist/cli/{chunk-O7KJYX7R.js → chunk-4V2Q3JO6.js} +15 -15
  10. package/dist/cli/{chunk-JSK6GUY6.js → chunk-4WINCNNH.js} +13 -9
  11. package/dist/cli/{chunk-T35LCTC7.js → chunk-5HDB7XXT.js} +235 -235
  12. package/dist/cli/{chunk-62IBVKWB.mjs → chunk-5HJHTZI6.mjs} +1 -1
  13. package/dist/cli/{chunk-RT5ICJ5V.js → chunk-6EYTKUDI.js} +2 -2
  14. package/dist/cli/{chunk-IZVGMVNX.mjs → chunk-7LX2G2PU.mjs} +1 -1
  15. package/dist/cli/{chunk-NOSIMGZV.js → chunk-7ZZSGV4A.js} +1 -1
  16. package/dist/cli/{chunk-YPVTQRUM.js → chunk-A6ZTYKYF.js} +33 -7
  17. package/dist/cli/{chunk-HC5L6KGE.js → chunk-ETUV6RRK.js} +1495 -1495
  18. package/dist/cli/{chunk-46JCJ7FT.mjs → chunk-FWF24ULX.mjs} +13 -9
  19. package/dist/cli/{chunk-GT6KGIWV.mjs → chunk-GMRWUGXB.mjs} +3 -3
  20. package/dist/cli/{chunk-A62HBMHY.mjs → chunk-H7SLESX6.mjs} +1467 -1467
  21. package/dist/cli/{chunk-VZSVYNZH.mjs → chunk-HDB4GAWY.mjs} +12 -12
  22. package/dist/cli/{chunk-RXR7A2MX.js → chunk-KHZ6WEVF.js} +26 -26
  23. package/dist/cli/{chunk-OS7GXARW.mjs → chunk-L6OSOKS6.mjs} +7 -7
  24. package/dist/cli/{chunk-NNYQ24O5.mjs → chunk-MHRDXS7J.mjs} +1 -1
  25. package/dist/cli/{chunk-JK547IDB.js → chunk-N6KIEYZV.js} +15 -15
  26. package/dist/cli/{chunk-3XKAOV74.js → chunk-QSH5CHRI.js} +6 -6
  27. package/dist/cli/{chunk-OYTPVM2R.mjs → chunk-SPZNLE2D.mjs} +2 -2
  28. package/dist/cli/{chunk-2DAWTVNN.mjs → chunk-UABI2T3Z.mjs} +2 -2
  29. package/dist/cli/{chunk-E6BZWURC.mjs → chunk-UE2UHYT3.mjs} +33 -7
  30. package/dist/cli/{chunk-MQ5UW5AZ.mjs → chunk-V7ZREPSD.mjs} +4 -4
  31. package/dist/cli/{chunk-SBB27CIJ.mjs → chunk-VL5ERG22.mjs} +2 -2
  32. package/dist/cli/{chunk-FT6O2ZVJ.mjs → chunk-VNBAOWN3.mjs} +13 -32
  33. package/dist/cli/{chunk-PCYCNZLR.js → chunk-Y4MXBE3V.js} +8 -8
  34. package/dist/cli/{chunk-X5V2QTDR.js → chunk-Y5W5IIA4.js} +65 -84
  35. package/dist/cli/{chunk-YFFH6NDU.mjs → chunk-YXQ7SRL3.mjs} +3 -2
  36. package/dist/cli/{chunk-53PZA4EP.js → chunk-ZXFGA2VK.js} +8 -8
  37. package/dist/cli/command-docs.js +2 -2
  38. package/dist/cli/command-docs.mjs +1 -1
  39. package/dist/cli/{csv-WSRTANXI.js → csv-LPC7BGZ2.js} +12 -12
  40. package/dist/cli/{csv-VEHHRUG4.mjs → csv-NITSP7QJ.mjs} +3 -3
  41. package/dist/cli/{db-BH25DX2G.mjs → db-JVDYEXNC.mjs} +4 -4
  42. package/dist/cli/{db-JXZNMFCE.js → db-WGD54UKM.js} +29 -29
  43. package/dist/cli/{describe-N2OBGVJM.js → describe-GA7LSJRY.js} +144 -34
  44. package/dist/cli/{describe-TMBECHTX.mjs → describe-SVMLA6SN.mjs} +130 -20
  45. package/dist/cli/{executions-Y4HQHYSO.mjs → executions-CXBJDGMU.mjs} +4 -4
  46. package/dist/cli/{executions-TX5CQF66.js → executions-P47HEI4N.js} +6 -6
  47. package/dist/cli/{feedback-W7SRXYSP.mjs → feedback-34OSXUQ2.mjs} +3 -3
  48. package/dist/cli/{feedback-ASEJ5A7I.js → feedback-GWKWE5CU.js} +7 -7
  49. package/dist/cli/git-MIPISCON.js +23 -0
  50. package/dist/cli/{git-2W7CZZRC.mjs → git-YAROF6D3.mjs} +4 -4
  51. package/dist/cli/index.js +106 -91
  52. package/dist/cli/index.mjs +63 -48
  53. package/dist/cli/{legacy-noops-TXMPY3P7.mjs → legacy-noops-2G55OKIU.mjs} +4 -4
  54. package/dist/cli/{legacy-noops-NJYAAGBY.js → legacy-noops-MDZQL3QH.js} +7 -7
  55. package/dist/cli/{monitors-G4L65QGQ.mjs → monitors-KUGKMABN.mjs} +4 -4
  56. package/dist/cli/{monitors-YLKTQ57D.js → monitors-X7QYWFSP.js} +85 -85
  57. package/dist/cli/{org-ENXO2A33.js → org-6XL3IBT2.js} +64 -64
  58. package/dist/cli/{org-BCHOWKIA.mjs → org-CNBBAN4W.mjs} +4 -4
  59. package/dist/cli/{play-JBY7HUYN.mjs → play-33ZMPAR5.mjs} +8 -8
  60. package/dist/cli/play-3CM3P2DS.js +155 -0
  61. package/dist/cli/{providers-JV2DZG43.mjs → providers-3OSQNFPE.mjs} +4 -4
  62. package/dist/cli/{providers-GWFX3E7C.js → providers-5POAURDT.js} +7 -7
  63. package/dist/cli/{quickstart-CASPK7F4.js → quickstart-LQGPDJTS.js} +5 -5
  64. package/dist/cli/{quickstart-AIXURXZQ.mjs → quickstart-QICTOOW6.mjs} +3 -3
  65. package/dist/cli/search-A2YLJ4I5.js +26 -0
  66. package/dist/cli/{search-DYQB7LHK.mjs → search-HBIX4SF4.mjs} +5 -5
  67. package/dist/cli/{secrets-RQZPIPO5.mjs → secrets-6MRGZPHT.mjs} +4 -4
  68. package/dist/cli/{secrets-AZQG2E4U.js → secrets-QKPBNQ3E.js} +13 -13
  69. package/dist/cli/{sessions-3FJJDMBB.mjs → sessions-NODY2OW4.mjs} +4 -4
  70. package/dist/cli/{sessions-ZY6RBYD4.js → sessions-NP7BLZD2.js} +5 -5
  71. package/dist/cli/{settings-GXKWNR5V.js → settings-42QHXUB2.js} +74 -74
  72. package/dist/cli/{settings-UNZDQGSE.mjs → settings-JCEIOTNL.mjs} +7 -7
  73. package/dist/cli/{setup-PIRXJ2KJ.mjs → setup-3QR4RGMG.mjs} +6 -6
  74. package/dist/cli/{setup-UURZD4YO.js → setup-5XXWP54Y.js} +41 -41
  75. package/dist/cli/skills-4JJEAA66.js +28 -0
  76. package/dist/cli/{skills-B4AQEIAF.mjs → skills-U4OMXLNS.mjs} +4 -4
  77. package/dist/cli/{tools-UMGQKUSW.mjs → tools-45OROEZQ.mjs} +7 -7
  78. package/dist/cli/tools-FDCFSA7W.js +40 -0
  79. package/dist/cli/{update-SFUTMEKL.mjs → update-2XCRMJ4R.mjs} +6 -6
  80. package/dist/cli/update-VYL4TXIE.js +28 -0
  81. package/dist/cli/{workflow-CDAJCMT7.js → workflow-47P4LQNC.js} +15 -15
  82. package/dist/cli/{workflow-ON6XVW36.mjs → workflow-7X3GCOPY.mjs} +5 -5
  83. package/dist/index.js +8 -8
  84. package/dist/index.mjs +7 -7
  85. package/dist/install-integrity.json +76 -78
  86. package/dist/release.d.mts +1 -1
  87. package/dist/release.d.ts +1 -1
  88. package/dist/release.js +2 -2
  89. package/dist/release.mjs +1 -1
  90. package/package.json +1 -1
  91. package/dist/cli/auth-IFXXXZP6.js +0 -33
  92. package/dist/cli/client-O6IEMURJ.js +0 -20
  93. package/dist/cli/client-TV254HC4.mjs +0 -20
  94. package/dist/cli/git-SSSOIQ2L.js +0 -23
  95. package/dist/cli/play-SSJ3PO4D.js +0 -155
  96. package/dist/cli/search-N7K6A2YV.js +0 -26
  97. package/dist/cli/skills-4OUZLKTW.js +0 -28
  98. package/dist/cli/tools-MIZS5UN6.js +0 -40
  99. package/dist/cli/update-3CO7LA4M.js +0 -28
@@ -4,8 +4,7 @@
4
4
 
5
5
 
6
6
 
7
-
8
- var _chunkYPVTQRUMjs = require('./chunk-YPVTQRUM.js');
7
+ var _chunkA6ZTYKYFjs = require('./chunk-A6ZTYKYF.js');
9
8
 
10
9
 
11
10
  var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
@@ -14,7 +13,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
14
13
 
15
14
 
16
15
 
17
- var _chunk53PZA4EPjs = require('./chunk-53PZA4EP.js');
16
+ var _chunkZXFGA2VKjs = require('./chunk-ZXFGA2VK.js');
18
17
 
19
18
 
20
19
 
@@ -33,7 +32,7 @@ var _chunk5O4B6AUNjs = require('./chunk-5O4B6AUN.js');
33
32
 
34
33
 
35
34
 
36
- var _chunkHC5L6KGEjs = require('./chunk-HC5L6KGE.js');
35
+ var _chunkETUV6RRKjs = require('./chunk-ETUV6RRK.js');
37
36
 
38
37
 
39
38
 
@@ -47,11 +46,11 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
47
46
 
48
47
 
49
48
 
50
- var _chunk3XKAOV74js = require('./chunk-3XKAOV74.js');
49
+ var _chunkQSH5CHRIjs = require('./chunk-QSH5CHRI.js');
51
50
 
52
51
 
53
52
 
54
- var _chunkJK547IDBjs = require('./chunk-JK547IDB.js');
53
+ var _chunkN6KIEYZVjs = require('./chunk-N6KIEYZV.js');
55
54
 
56
55
 
57
56
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -96,10 +95,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
96
95
  }
97
96
  };
98
97
  function pendingToolExecutionPath(input) {
99
- const config = _chunkJK547IDBjs.resolveConfig.call(void 0, );
98
+ const config = _chunkN6KIEYZVjs.resolveConfig.call(void 0, );
100
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");
101
100
  return _path.join.call(void 0,
102
- _chunkJK547IDBjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
101
+ _chunkN6KIEYZVjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
103
102
  `pending-tool-execution-${fingerprint}.json`
104
103
  );
105
104
  }
@@ -620,12 +619,12 @@ function categoryEnumerationRender(summaries) {
620
619
  };
621
620
  }
622
621
  async function listToolCategories(emitJson, compact) {
623
- const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
622
+ const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
624
623
  const rawTools = await client.listTools({ compact });
625
624
  const items = rawTools.map(toListedTool);
626
625
  const summaries = aggregateCategorySummaries(rawTools);
627
626
  const outputItems = compact ? items.map(compactTool) : items;
628
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
627
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
629
628
  {
630
629
  tools: outputItems,
631
630
  count: outputItems.length,
@@ -644,7 +643,7 @@ function unknownCategoryError(category, summaries, emitJson) {
644
643
  const known = summaries.map((item) => item.name);
645
644
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
646
645
  if (emitJson) {
647
- _chunk3XKAOV74js.printJson.call(void 0, {
646
+ _chunkQSH5CHRIjs.printJson.call(void 0, {
648
647
  ok: false,
649
648
  exitCode: 4,
650
649
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -658,13 +657,13 @@ function unknownCategoryError(category, summaries, emitJson) {
658
657
  const render = categoryEnumerationRender(summaries);
659
658
  console.error(message);
660
659
  console.error("");
661
- console.error(_chunk3XKAOV74js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
660
+ console.error(_chunkQSH5CHRIjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
662
661
  console.error("");
663
662
  console.error(`Valid categories: ${known.join(", ")}`);
664
663
  return 4;
665
664
  }
666
665
  async function listToolsInCategory(category, emitJson) {
667
- const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
666
+ const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
668
667
  const rawTools = await client.listTools({
669
668
  categories: category,
670
669
  compact: false
@@ -701,7 +700,7 @@ async function listToolsInCategory(category, emitJson) {
701
700
  }
702
701
  ]
703
702
  };
704
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
703
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
705
704
  {
706
705
  category,
707
706
  total: rows.length,
@@ -714,7 +713,7 @@ async function listToolsInCategory(category, emitJson) {
714
713
  return 0;
715
714
  }
716
715
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
717
- const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
716
+ const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
718
717
  const items = (await client.listTools({
719
718
  categories: requestedCategories.join(","),
720
719
  compact
@@ -743,7 +742,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
743
742
  ]
744
743
  };
745
744
  const outputItems = compact ? items.map(compactTool) : items;
746
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
745
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
747
746
  {
748
747
  tools: outputItems,
749
748
  count: outputItems.length,
@@ -762,13 +761,13 @@ async function listTools(category, options = {}) {
762
761
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
763
762
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
764
763
  const compact = options.compact !== false;
765
- const emitJson = options.json === true || _chunk3XKAOV74js.shouldEmitJson.call(void 0, );
764
+ const emitJson = options.json === true || _chunkQSH5CHRIjs.shouldEmitJson.call(void 0, );
766
765
  if (positional && flagCategories.length > 0) {
767
766
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
768
767
  if (!flagIsSameSingle) {
769
768
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
770
769
  if (emitJson) {
771
- _chunk3XKAOV74js.printJson.call(void 0, {
770
+ _chunkQSH5CHRIjs.printJson.call(void 0, {
772
771
  ok: false,
773
772
  exitCode: 2,
774
773
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -795,7 +794,7 @@ async function grepTools(queryInput, options = {}) {
795
794
  console.error("Usage: deepline tools grep <query> [--json]");
796
795
  return 1;
797
796
  }
798
- const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
797
+ const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
799
798
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
800
799
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
801
800
  const jsonOutput = options.json === true;
@@ -838,7 +837,7 @@ async function grepTools(queryInput, options = {}) {
838
837
  query,
839
838
  mode
840
839
  }) : null;
841
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
840
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
842
841
  {
843
842
  tools: outputTools,
844
843
  count: outputTools.length,
@@ -856,7 +855,7 @@ async function grepTools(queryInput, options = {}) {
856
855
  } : {},
857
856
  commandTemplates: TOOL_COMMAND_TEMPLATES
858
857
  },
859
- { json: options.json || _chunk3XKAOV74js.shouldEmitJson.call(void 0, ) }
858
+ { json: options.json || _chunkQSH5CHRIjs.shouldEmitJson.call(void 0, ) }
860
859
  );
861
860
  return 0;
862
861
  }
@@ -954,7 +953,6 @@ var TOOL_ONLY_VIEWS = [
954
953
  "pricingOnly",
955
954
  "examplesOnly",
956
955
  "gettersOnly",
957
- "byok",
958
956
  "model",
959
957
  "estimatePayload"
960
958
  ];
@@ -1013,7 +1011,7 @@ Examples:
1013
1011
  json: Boolean(options.json)
1014
1012
  });
1015
1013
  });
1016
- _chunk53PZA4EPjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
1014
+ _chunkZXFGA2VKjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
1017
1015
  tools.command("grep <query>").description(
1018
1016
  "Literal grep over tool ids, descriptions, categories, and input fields."
1019
1017
  ).addHelpText(
@@ -1066,7 +1064,7 @@ Examples:
1066
1064
  deepline tools describe hunter_email_verifier
1067
1065
  deepline tools describe hunter_email_verifier --pricing-only
1068
1066
  deepline tools describe hunter_email_verifier --examples-only
1069
- deepline tools describe hunter_email_verifier --byok
1067
+ deepline describe hunter_email_verifier --feature byok
1070
1068
  deepline tools describe deeplineagent --model openai/gpt-5.6-luna
1071
1069
  deepline tools describe ai_inference --estimate-payload @payload.json
1072
1070
  deepline tools describe ai_evaluate --estimate-payload @payload.json
@@ -1081,10 +1079,7 @@ Examples:
1081
1079
  ).option("--pricing-only", "Only print pricing and billing semantics").option(
1082
1080
  "--examples-only",
1083
1081
  "Only print input payload and full Deepline execution response examples"
1084
- ).option("--getters-only", "Only print extracted list/value getters").option(
1085
- "--byok",
1086
- "Only print whether you can use your own provider credentials, and how to connect them"
1087
- ).addOption(
1082
+ ).option("--getters-only", "Only print extracted list/value getters").addOption(
1088
1083
  new (0, _commander.Option)(
1089
1084
  "--compact",
1090
1085
  "Compatibility alias for the default compact view"
@@ -1107,7 +1102,6 @@ Examples:
1107
1102
  schemaOnly: Boolean(options.schemaOnly),
1108
1103
  examplesOnly: Boolean(options.examplesOnly),
1109
1104
  gettersOnly: Boolean(options.gettersOnly),
1110
- byok: Boolean(options.byok),
1111
1105
  model: typeof options.model === "string" ? options.model : void 0,
1112
1106
  estimatePayload: typeof options.estimatePayload === "string" ? options.estimatePayload : void 0
1113
1107
  },
@@ -1118,7 +1112,7 @@ Examples:
1118
1112
  process.exitCode = await narrowView();
1119
1113
  return;
1120
1114
  }
1121
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-N2OBGVJM.js")));
1115
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-GA7LSJRY.js")));
1122
1116
  process.exitCode = await describeAnything(
1123
1117
  toolId,
1124
1118
  {
@@ -1133,9 +1127,9 @@ Examples:
1133
1127
  });
1134
1128
  };
1135
1129
  addToolMetadataCommand(
1136
- _chunkYPVTQRUMjs.addDescribeOptions.call(void 0,
1130
+ _chunkA6ZTYKYFjs.addDescribeOptions.call(void 0,
1137
1131
  tools.command("describe <toolId>", { hidden: true }).alias("get"),
1138
- { json: false, byok: false }
1132
+ { json: false }
1139
1133
  )
1140
1134
  );
1141
1135
  tools.command("execute <toolId>").alias("call").description("Execute a tool by id.").addHelpText(
@@ -1204,7 +1198,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1204
1198
  console.error("Usage: deepline tools describe <toolId> [--json]");
1205
1199
  return 1;
1206
1200
  }
1207
- const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
1201
+ const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
1208
1202
  let tool;
1209
1203
  try {
1210
1204
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1246,36 +1240,22 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1246
1240
  options.pricingOnly,
1247
1241
  options.schemaOnly,
1248
1242
  options.examplesOnly,
1249
- options.gettersOnly,
1250
- options.byok
1243
+ options.gettersOnly
1251
1244
  ].filter(Boolean).length;
1252
1245
  if (onlyModes > 1) {
1253
1246
  console.error(
1254
- "Use only one of --pricing-only, --schema-only, --examples-only, --getters-only, or --byok."
1247
+ "Use only one of --pricing-only, --schema-only, --examples-only, or --getters-only."
1255
1248
  );
1256
1249
  return 2;
1257
1250
  }
1258
- if (options.byok) {
1259
- const resolvedToolId = String(tool.toolId || toolId);
1260
- const byok = recordField(tool, "byok");
1261
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
1262
- { toolId: resolvedToolId, byok },
1263
- {
1264
- json: Boolean(options.json || options.contractJson),
1265
- text: `${[resolvedToolId, ..._chunkYPVTQRUMjs.byokLines.call(void 0, byok)].join("\n")}
1266
- `
1267
- }
1268
- );
1269
- return 0;
1270
- }
1271
1251
  if (options.pricingOnly) {
1272
1252
  const lines = toolPricingOnlyLines(tool, toolId);
1273
1253
  if (inferenceQuote)
1274
1254
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1275
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
1255
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
1276
1256
  {
1277
1257
  toolId: String(tool.toolId || toolId),
1278
- cost: _chunk53PZA4EPjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1258
+ cost: _chunkZXFGA2VKjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1279
1259
  ...modelDescription ? { modelOptions: modelDescription } : {},
1280
1260
  ...isMonitorTypeTool(tool) ? { pricing: recordField(tool, "pricing") } : {},
1281
1261
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -1290,7 +1270,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1290
1270
  }
1291
1271
  if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
1292
1272
  const contract = toolContractJsonForDescribe(tool, toolId);
1293
- _chunk3XKAOV74js.printCompactJson.call(void 0, {
1273
+ _chunkQSH5CHRIjs.printCompactJson.call(void 0, {
1294
1274
  toolId: contract.toolId,
1295
1275
  ...options.schemaOnly ? {
1296
1276
  inputSchema: contract.inputSchema,
@@ -1313,7 +1293,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1313
1293
  return 0;
1314
1294
  }
1315
1295
  if (options.contractJson) {
1316
- _chunk3XKAOV74js.printCompactJson.call(void 0, {
1296
+ _chunkQSH5CHRIjs.printCompactJson.call(void 0, {
1317
1297
  ...toolContractJsonForDescribe(tool, toolId),
1318
1298
  ...modelDescription ? { modelOptions: modelDescription } : {},
1319
1299
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -1322,7 +1302,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1322
1302
  }
1323
1303
  const emitJson = options.json === true;
1324
1304
  if (emitJson) {
1325
- _chunk3XKAOV74js.printCompactJson.call(void 0, {
1305
+ _chunkQSH5CHRIjs.printCompactJson.call(void 0, {
1326
1306
  ...toolMetadataJsonForDescribe(tool, toolId),
1327
1307
  ...modelDescription ? { modelOptions: modelDescription } : {},
1328
1308
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -1399,7 +1379,7 @@ function toolContractJsonForDescribe(tool, requestedToolId, authoringContractEdi
1399
1379
  const extractedValues = extractionContractEntries(
1400
1380
  arrayField2(toolExecutionResult, "extractedValues", "extracted_values")
1401
1381
  );
1402
- const pricing = _chunk53PZA4EPjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1382
+ const pricing = _chunkZXFGA2VKjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1403
1383
  const executionMetadataRecord = recordField(
1404
1384
  tool,
1405
1385
  "executionMetadata",
@@ -1614,7 +1594,7 @@ function extractorValueType(name) {
1614
1594
  }
1615
1595
  const named = NAMED_VALUE_SHAPES[definition.valueKind];
1616
1596
  if (!named) return { type: "string" };
1617
- const { type, fields } = _chunkYPVTQRUMjs.schemaField.call(void 0, name, named.schema, true);
1597
+ const { type, fields } = _chunkA6ZTYKYFjs.schemaField.call(void 0, name, named.schema, true);
1618
1598
  return { type, ...fields ? { fields } : {}, shape: named.shape };
1619
1599
  }
1620
1600
  function jsonSchemaOf(wrapper) {
@@ -1651,7 +1631,7 @@ function describedTool(tool, requestedToolId) {
1651
1631
  description,
1652
1632
  cost: stringField2(recordField(tool, "pricing"), "displayText") || void 0,
1653
1633
  guidance: [],
1654
- inputs: _chunkYPVTQRUMjs.schemaFields.call(void 0,
1634
+ inputs: _chunkA6ZTYKYFjs.schemaFields.call(void 0,
1655
1635
  recordField(tool, "payload_schema", "payloadSchema")
1656
1636
  ),
1657
1637
  outputs: [],
@@ -1687,7 +1667,7 @@ function describedTool(tool, requestedToolId) {
1687
1667
  (path) => path.replace(/^toolResponse\.raw\./, "")
1688
1668
  );
1689
1669
  const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
1690
- const { fields, ...typed } = _chunkYPVTQRUMjs.schemaField.call(void 0, name, node, true);
1670
+ const { fields, ...typed } = _chunkA6ZTYKYFjs.schemaField.call(void 0, name, node, true);
1691
1671
  const valueType = stringField2(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
1692
1672
  const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
1693
1673
  const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
@@ -1736,7 +1716,7 @@ function describedTool(tool, requestedToolId) {
1736
1716
  stringField2(cost, "displayText"),
1737
1717
  // "Free (free)" says the same thing twice.
1738
1718
  billing.toLowerCase() === stringField2(cost, "displayText").toLowerCase() ? "" : billing && `(${billing})`,
1739
- _chunk53PZA4EPjs.observedMaxText.call(void 0, cost) && `\u2014 ${_chunk53PZA4EPjs.observedMaxText.call(void 0, cost)}`
1719
+ _chunkZXFGA2VKjs.observedMaxText.call(void 0, cost) && `\u2014 ${_chunkZXFGA2VKjs.observedMaxText.call(void 0, cost)}`
1740
1720
  ].filter(Boolean).join(" ") || void 0,
1741
1721
  guidance: [
1742
1722
  ...contract.deprecated === true ? [`Deprecated. ${stringField2(deprecation, "message")}`.trim()] : [],
@@ -1744,12 +1724,12 @@ function describedTool(tool, requestedToolId) {
1744
1724
  (line) => typeof line === "string" && /[a-z0-9]/i.test(line)
1745
1725
  )
1746
1726
  ],
1747
- rateLimit: _chunkYPVTQRUMjs.rateLimitSummary.call(void 0,
1727
+ rateLimit: _chunkA6ZTYKYFjs.rateLimitSummary.call(void 0,
1748
1728
  recordField(contract, "executionMetadata").configuredRateLimits
1749
1729
  ),
1750
- inputs: _chunkYPVTQRUMjs.schemaFields.call(void 0, jsonSchemaOf(recordField(contract, "inputSchema"))),
1730
+ inputs: _chunkA6ZTYKYFjs.schemaFields.call(void 0, jsonSchemaOf(recordField(contract, "inputSchema"))),
1751
1731
  outputs: [...lists, ...values].map(({ field }) => field),
1752
- rawResponse: _chunkYPVTQRUMjs.schemaFields.call(void 0, outputSchema),
1732
+ rawResponse: _chunkA6ZTYKYFjs.schemaFields.call(void 0, outputSchema),
1753
1733
  runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId) }
1754
1734
  };
1755
1735
  }
@@ -1873,7 +1853,7 @@ function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1873
1853
  return monitorTypePricingLines(tool);
1874
1854
  }
1875
1855
  const toolId = String(tool.toolId || requestedToolId);
1876
- const cost = _chunk53PZA4EPjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1856
+ const cost = _chunkZXFGA2VKjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1877
1857
  const pricingModel = stringField2(cost, "pricingModel") || "unknown";
1878
1858
  const billing = stringField2(cost, "billingSourceLabel") || stringField2(cost, "billingSource") || stringField2(cost, "billingMode") || "unknown";
1879
1859
  const explicitUnit = stringField2(cost, "unit");
@@ -1885,7 +1865,7 @@ function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1885
1865
  const price = displayText || summary || (credits !== null ? `${formatDecimal(credits)} Deepline credits${usd !== null ? ` / ${formatUsd(usd)}` : ""} per ${unit}` : "pricing unavailable");
1886
1866
  return [
1887
1867
  `${_nullishCoalesce(options.heading, () => ( `Pricing: ${toolId}`))}: ${price}`,
1888
- ..._chunk53PZA4EPjs.observedMaxText.call(void 0, cost) ? [` ${_chunk53PZA4EPjs.observedMaxText.call(void 0, cost)}`] : [],
1868
+ ..._chunkZXFGA2VKjs.observedMaxText.call(void 0, cost) ? [` ${_chunkZXFGA2VKjs.observedMaxText.call(void 0, cost)}`] : [],
1889
1869
  ...cost.observedReference || cost.estimatedRange ? [
1890
1870
  ...summary ? [` ${summary}`] : [],
1891
1871
  ...(_nullishCoalesce(cost.details, () => ( []))).map((detail) => ` ${detail}`)
@@ -2157,13 +2137,13 @@ function toolMetadataJsonForDescribe(tool, requestedToolId) {
2157
2137
  deepline_usd_per_credit: _snakeDeeplineUsdPerCredit,
2158
2138
  deepline_pricing_summary: _snakeDeeplinePricingSummary,
2159
2139
  deepline_pricing_details: _snakeDeeplinePricingDetails,
2160
- // BYOK is shown only on request, via --byok.
2140
+ // BYOK is shown only on request, via describe --feature byok.
2161
2141
  byok: _byok,
2162
2142
  ...publicTool
2163
2143
  } = tool;
2164
2144
  const outputSchemaRecord = recordField(tool, "outputSchema", "output_schema");
2165
2145
  return {
2166
- cost: _chunk53PZA4EPjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
2146
+ cost: _chunkZXFGA2VKjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
2167
2147
  ...publicTool,
2168
2148
  toolId,
2169
2149
  provider: tool.provider,
@@ -2777,7 +2757,7 @@ function parseExecuteOptions(toolId, options, output) {
2777
2757
  outputFormat = normalizeOutputFormat(options.outputFormat);
2778
2758
  }
2779
2759
  if (options.idempotencyKey !== void 0) {
2780
- _chunkHC5L6KGEjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2760
+ _chunkETUV6RRKjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2781
2761
  }
2782
2762
  if (options.recoveryTimeoutMs !== void 0) {
2783
2763
  const parsed = Number(options.recoveryTimeoutMs);
@@ -3088,20 +3068,20 @@ function buildToolExecuteRowArtifactEnvelope(input) {
3088
3068
  }
3089
3069
  async function executeTool(toolId, options) {
3090
3070
  const output = toolExecuteJsonOption(options.json);
3091
- const wantsJson = _chunk3XKAOV74js.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";
3092
3072
  let parsed;
3093
3073
  try {
3094
3074
  parsed = parseExecuteOptions(toolId, options, output);
3095
3075
  } catch (error) {
3096
3076
  if (wantsJson) {
3097
- _chunk3XKAOV74js.printJsonError.call(void 0, error);
3077
+ _chunkQSH5CHRIjs.printJsonError.call(void 0, error);
3098
3078
  } else {
3099
3079
  console.error(error instanceof Error ? error.message : String(error));
3100
3080
  }
3101
3081
  return error instanceof _chunk7P5AA3SNjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
3102
3082
  }
3103
3083
  const cliInvocationId = _nullishCoalesce(_chunkQJBJZVG6js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, )));
3104
- const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
3084
+ const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
3105
3085
  let metadata;
3106
3086
  try {
3107
3087
  metadata = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
@@ -3116,7 +3096,7 @@ async function executeTool(toolId, options) {
3116
3096
  );
3117
3097
  if (play) {
3118
3098
  if (wantsJson) {
3119
- _chunk3XKAOV74js.printJsonError.call(void 0,
3099
+ _chunkQSH5CHRIjs.printJsonError.call(void 0,
3120
3100
  new Error(playAliasToolErrorMessage(parsed.toolId, play))
3121
3101
  );
3122
3102
  } else {
@@ -3129,7 +3109,7 @@ async function executeTool(toolId, options) {
3129
3109
  }
3130
3110
  if (isPlayLikeTool(metadata)) {
3131
3111
  if (wantsJson) {
3132
- _chunk3XKAOV74js.printJsonError.call(void 0,
3112
+ _chunkQSH5CHRIjs.printJsonError.call(void 0,
3133
3113
  new Error(
3134
3114
  playLikeToolExecuteErrorMessage(
3135
3115
  parsed.toolId,
@@ -3165,9 +3145,9 @@ async function executeTool(toolId, options) {
3165
3145
  responseIntent,
3166
3146
  ...idempotencyKey ? { idempotencyKey } : {},
3167
3147
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
3168
- searchRef: _chunk53PZA4EPjs.recentSearchRef.call(void 0, ),
3148
+ searchRef: _chunkZXFGA2VKjs.recentSearchRef.call(void 0, ),
3169
3149
  cliInvocationId,
3170
- onResponseReceived: _chunkYPVTQRUMjs.recordApiResponse
3150
+ onResponseReceived: _chunkA6ZTYKYFjs.recordApiResponse
3171
3151
  }).catch((error) => {
3172
3152
  const guidanceLines = toolGuidanceLines(metadata.guidance);
3173
3153
  if (guidanceLines.length > 0) {
@@ -3206,7 +3186,7 @@ async function executeTool(toolId, options) {
3206
3186
  const executeExitCode = toolExecuteExitCode(baseEnvelope);
3207
3187
  const delivered = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, "output delivery", () => {
3208
3188
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
3209
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
3189
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
3210
3190
  return true;
3211
3191
  }
3212
3192
  if (parsed.outputFormat === "json_file") {
@@ -3214,7 +3194,7 @@ async function executeTool(toolId, options) {
3214
3194
  rawResponse,
3215
3195
  `payload_${parsed.toolId}`
3216
3196
  );
3217
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
3197
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
3218
3198
  {
3219
3199
  ...baseEnvelope,
3220
3200
  local: {
@@ -3236,7 +3216,7 @@ async function executeTool(toolId, options) {
3236
3216
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
3237
3217
  );
3238
3218
  if (wantsJson) {
3239
- _chunk3XKAOV74js.printJsonError.call(void 0, error);
3219
+ _chunkQSH5CHRIjs.printJsonError.call(void 0, error);
3240
3220
  } else {
3241
3221
  console.error(error.message);
3242
3222
  }
@@ -3247,7 +3227,7 @@ async function executeTool(toolId, options) {
3247
3227
  rawResponse,
3248
3228
  `payload_${parsed.toolId}`
3249
3229
  );
3250
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
3230
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
3251
3231
  {
3252
3232
  ...baseEnvelope,
3253
3233
  local: {
@@ -3258,7 +3238,7 @@ async function executeTool(toolId, options) {
3258
3238
  );
3259
3239
  return true;
3260
3240
  }
3261
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
3241
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
3262
3242
  return true;
3263
3243
  }
3264
3244
  const rowOutput = _chunk3VN4FTE3js.projectRowOutput.call(void 0, listConversion);
@@ -3282,7 +3262,7 @@ async function executeTool(toolId, options) {
3282
3262
  seededScript
3283
3263
  });
3284
3264
  if (parsed.outputFormat === "csv_file") {
3285
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
3265
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
3286
3266
  return true;
3287
3267
  }
3288
3268
  if (parsed.outPath) {
@@ -3290,7 +3270,7 @@ async function executeTool(toolId, options) {
3290
3270
  toolId: parsed.toolId,
3291
3271
  idempotencyKey
3292
3272
  });
3293
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0, materializedEnvelope, {
3273
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3294
3274
  json: wantsJson,
3295
3275
  text: `Wrote ${csv.rowCount} row(s) to ${csv.path}
3296
3276
  inspect: ${inspection.inspect}
@@ -3299,7 +3279,7 @@ inspect: ${inspection.inspect}
3299
3279
  return true;
3300
3280
  }
3301
3281
  if (parsed.noPreview) {
3302
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
3282
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
3303
3283
  {
3304
3284
  ...materializedEnvelope,
3305
3285
  local: {
@@ -3312,7 +3292,7 @@ inspect: ${inspection.inspect}
3312
3292
  );
3313
3293
  return true;
3314
3294
  }
3315
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0, materializedEnvelope, {
3295
+ _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3316
3296
  json: wantsJson && parsed.outputFormat !== "csv"
3317
3297
  });
3318
3298
  return true;
@@ -3337,4 +3317,5 @@ inspect: ${inspection.inspect}
3337
3317
 
3338
3318
 
3339
3319
 
3340
- exports.isMonitorTypeTool = isMonitorTypeTool; exports.registerToolsCommands = registerToolsCommands; exports.toolContractJsonForDescribe = toolContractJsonForDescribe; exports.printMonitorTypeContract = printMonitorTypeContract; exports.publicToolSchemas = publicToolSchemas; exports.describedTool = describedTool; exports.printCompactToolContract = printCompactToolContract; exports.toolMetadataJsonForDescribe = toolMetadataJsonForDescribe; exports.extractToolExecutionWarningMessages = extractToolExecutionWarningMessages; exports.buildToolExecuteBaseEnvelope = buildToolExecuteBaseEnvelope;
3320
+
3321
+ exports.formatModelDescription = formatModelDescription; exports.isMonitorTypeTool = isMonitorTypeTool; exports.registerToolsCommands = registerToolsCommands; exports.toolContractJsonForDescribe = toolContractJsonForDescribe; exports.printMonitorTypeContract = printMonitorTypeContract; exports.publicToolSchemas = publicToolSchemas; exports.describedTool = describedTool; exports.printCompactToolContract = printCompactToolContract; exports.toolMetadataJsonForDescribe = toolMetadataJsonForDescribe; exports.extractToolExecutionWarningMessages = extractToolExecutionWarningMessages; exports.buildToolExecuteBaseEnvelope = buildToolExecuteBaseEnvelope;
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-NNYQ24O5.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-VZSVYNZH.mjs";
28
+ } from "./chunk-HDB4GAWY.mjs";
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
  import {
@@ -929,6 +929,7 @@ export {
929
929
  readPendingAuthClaim,
930
930
  clearPendingClaim,
931
931
  clearSatisfiedPendingClaim,
932
+ httpJson,
932
933
  reportSetupCompleted,
933
934
  handleRegister,
934
935
  handleWait,
@@ -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 _chunkHC5L6KGEjs = require('./chunk-HC5L6KGE.js');
3
+ var _chunkETUV6RRKjs = require('./chunk-ETUV6RRK.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk3XKAOV74js = require('./chunk-3XKAOV74.js');
7
+ var _chunkQSH5CHRIjs = require('./chunk-QSH5CHRI.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkJK547IDBjs = require('./chunk-JK547IDB.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, _chunkJK547IDBjs.sdkCliStateDirPath.call(void 0, _chunkJK547IDBjs.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 _chunk3XKAOV74js.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
- ${_chunk3XKAOV74js.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, _chunkHC5L6KGEjs.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
- _chunk3XKAOV74js.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
  });
@@ -3,11 +3,11 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkJSK6GUY6js = require('./chunk-JSK6GUY6.js');
6
+ var _chunk4WINCNNHjs = require('./chunk-4WINCNNH.js');
7
7
  require('./chunk-COGTRVWW.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
12
 
13
- exports.COMMAND_DOCS = _chunkJSK6GUY6js.COMMAND_DOCS; exports.commandDocKey = _chunkJSK6GUY6js.commandDocKey; exports.helpDetailFromArgv = _chunkJSK6GUY6js.helpDetailFromArgv; exports.renderCommandExplanation = _chunkJSK6GUY6js.renderCommandExplanation;
13
+ exports.COMMAND_DOCS = _chunk4WINCNNHjs.COMMAND_DOCS; exports.commandDocKey = _chunk4WINCNNHjs.commandDocKey; exports.helpDetailFromArgv = _chunk4WINCNNHjs.helpDetailFromArgv; exports.renderCommandExplanation = _chunk4WINCNNHjs.renderCommandExplanation;
@@ -3,7 +3,7 @@ import {
3
3
  commandDocKey,
4
4
  helpDetailFromArgv,
5
5
  renderCommandExplanation
6
- } from "./chunk-46JCJ7FT.mjs";
6
+ } from "./chunk-FWF24ULX.mjs";
7
7
  import "./chunk-KRD6H754.mjs";
8
8
  export {
9
9
  COMMAND_DOCS,