deepline 0.3.368 → 0.3.370

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 (98) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +7 -1
  2. package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +4 -2
  3. package/dist/cli/auth-DD3PVIRQ.js +33 -0
  4. package/dist/cli/{auth-RUWM7VTH.mjs → auth-RIH4S7NC.mjs} +4 -4
  5. package/dist/cli/{billing-WSS57VQY.mjs → billing-ERNGN6WK.mjs} +4 -4
  6. package/dist/cli/{billing-PLBQKLDK.js → billing-Q65H5GJM.js} +73 -73
  7. package/dist/cli/{chunk-DZOEDNSU.js → chunk-4Y5UDYQK.js} +9 -9
  8. package/dist/cli/{chunk-ENGMDXHN.mjs → chunk-5DUTNG37.mjs} +2 -2
  9. package/dist/cli/{chunk-S4Y7B2O3.js → chunk-666HPUIZ.js} +6 -1
  10. package/dist/cli/{chunk-7AWSYT7H.js → chunk-A4OX52RV.js} +8 -8
  11. package/dist/cli/{chunk-ZS2YQ4YK.mjs → chunk-A5RFERJQ.mjs} +2 -2
  12. package/dist/cli/{chunk-GJO4H3NN.js → chunk-A6DJC2RC.js} +60 -60
  13. package/dist/cli/{chunk-7PQTQSJY.mjs → chunk-BGXG3GEI.mjs} +3 -3
  14. package/dist/cli/{chunk-IG7OYVS7.mjs → chunk-BKHNCIQD.mjs} +6 -6
  15. package/dist/cli/{chunk-QILHWZFP.js → chunk-CTMA3C3N.js} +7 -1
  16. package/dist/cli/{chunk-NZHVJB2W.js → chunk-DFJDVQMH.js} +2 -2
  17. package/dist/cli/{chunk-S3MDB6SI.mjs → chunk-GGRVNAOH.mjs} +1 -1
  18. package/dist/cli/{chunk-THO6F53F.mjs → chunk-H4IQJRFC.mjs} +1 -1
  19. package/dist/cli/{chunk-XUMWO4ST.mjs → chunk-HHH4MPFY.mjs} +4 -4
  20. package/dist/cli/{chunk-PU53IS6H.mjs → chunk-IDBLJSLL.mjs} +2 -2
  21. package/dist/cli/{chunk-EZUGGC5A.mjs → chunk-LJWOPNJJ.mjs} +1 -1
  22. package/dist/cli/{chunk-LEZWRLB3.mjs → chunk-LNEBKWXM.mjs} +1 -1
  23. package/dist/cli/{chunk-SNENR3BL.js → chunk-MKFHZDBO.js} +6 -6
  24. package/dist/cli/{chunk-GHZUH33K.mjs → chunk-NEY2M4EZ.mjs} +6 -1
  25. package/dist/cli/{chunk-HZT2Y7WB.js → chunk-NHB3UWTZ.js} +15 -15
  26. package/dist/cli/{chunk-AUWKAVXB.js → chunk-R7AAYFDQ.js} +95 -54
  27. package/dist/cli/{chunk-QFBHEQCQ.mjs → chunk-RLXMRC6P.mjs} +7 -1
  28. package/dist/cli/{chunk-GTC2KAZQ.js → chunk-SFI7U6CA.js} +4 -4
  29. package/dist/cli/{chunk-OTI7CDLE.mjs → chunk-T64NZ2A7.mjs} +49 -8
  30. package/dist/cli/{chunk-2YOKZW46.js → chunk-WQZ22EQU.js} +26 -26
  31. package/dist/cli/{chunk-YCJMDCTH.js → chunk-XTKVXHGD.js} +8 -8
  32. package/dist/cli/{chunk-BKEYQHJ2.js → chunk-Y2B56VN7.js} +50 -50
  33. package/dist/cli/{chunk-27QA6Q4G.js → chunk-YEEESF2T.js} +224 -224
  34. package/dist/cli/{chunk-A2OLR6DK.mjs → chunk-YQMUTC2H.mjs} +2 -2
  35. package/dist/cli/client-DNAFHKWV.js +20 -0
  36. package/dist/cli/{client-JJEEIOIL.mjs → client-QXOERIFI.mjs} +3 -3
  37. package/dist/cli/command-docs.js +2 -2
  38. package/dist/cli/command-docs.mjs +1 -1
  39. package/dist/cli/{csv-75D36YRA.mjs → csv-V7UKQ7AC.mjs} +3 -3
  40. package/dist/cli/{csv-EPNNU27J.js → csv-ZKIUSDIV.js} +12 -12
  41. package/dist/cli/{db-SWNKJUU5.js → db-GWKRVHKS.js} +29 -29
  42. package/dist/cli/{db-6HYSGMLN.mjs → db-QQ4BYMPY.mjs} +4 -4
  43. package/dist/cli/{describe-XMUHTICA.js → describe-3AJI2BOS.js} +15 -15
  44. package/dist/cli/{describe-N2KSBPOR.mjs → describe-XMWXEFMS.mjs} +8 -8
  45. package/dist/cli/{executions-3ESWUDHH.js → executions-2IMCCV34.js} +6 -6
  46. package/dist/cli/{executions-WHSG2JGN.mjs → executions-QV7UE5YG.mjs} +4 -4
  47. package/dist/cli/{feedback-CGZE7L7A.js → feedback-7SSJ7VPF.js} +7 -7
  48. package/dist/cli/{feedback-2VHTJXU7.mjs → feedback-K6WNXZDB.mjs} +3 -3
  49. package/dist/cli/git-EBSF3254.js +23 -0
  50. package/dist/cli/{git-IG4J5OUT.mjs → git-UOE2K2XQ.mjs} +4 -4
  51. package/dist/cli/index.js +86 -86
  52. package/dist/cli/index.mjs +33 -33
  53. package/dist/cli/{legacy-noops-QF7S6JJB.js → legacy-noops-GC43OSXL.js} +7 -7
  54. package/dist/cli/{legacy-noops-7WXL7PB3.mjs → legacy-noops-SOYPIA2X.mjs} +4 -4
  55. package/dist/cli/{monitors-6XYT53X6.js → monitors-AXANB6WK.js} +85 -85
  56. package/dist/cli/{monitors-QS4QFORU.mjs → monitors-FLCGMXVH.mjs} +4 -4
  57. package/dist/cli/{org-NLR3D3M7.js → org-MXD4BTQI.js} +64 -64
  58. package/dist/cli/{org-5IGU7FES.mjs → org-Q7EDNZMN.mjs} +4 -4
  59. package/dist/cli/{play-JVENSY4T.mjs → play-TZROCF7E.mjs} +7 -7
  60. package/dist/cli/play-YWQXVOBT.js +153 -0
  61. package/dist/cli/{providers-RSVO5U4E.mjs → providers-JEY4FTWG.mjs} +4 -4
  62. package/dist/cli/{providers-T4GCIOTW.js → providers-LOS4MHAG.js} +7 -7
  63. package/dist/cli/{quickstart-IHAG5QZ6.js → quickstart-27UQGHEH.js} +5 -5
  64. package/dist/cli/{quickstart-ZDFOKNYW.mjs → quickstart-WO5KVVER.mjs} +3 -3
  65. package/dist/cli/{search-ZGEYJSMF.mjs → search-LZHWXC2C.mjs} +5 -5
  66. package/dist/cli/search-OQ3OEFUA.js +26 -0
  67. package/dist/cli/{secrets-OQZRZBP6.mjs → secrets-AVJGZABR.mjs} +4 -4
  68. package/dist/cli/{secrets-DVTEZCPE.js → secrets-PE7P4L7N.js} +13 -13
  69. package/dist/cli/{sessions-XYEG53JJ.js → sessions-I6UDBN7M.js} +5 -5
  70. package/dist/cli/{sessions-XM7PFJL2.mjs → sessions-ZDSZTYZV.mjs} +4 -4
  71. package/dist/cli/{settings-NWEBQOX4.js → settings-3SLMJHJ2.js} +74 -74
  72. package/dist/cli/{settings-TKXYRYYH.mjs → settings-SPWH3FET.mjs} +7 -7
  73. package/dist/cli/{setup-3UD5TDRJ.mjs → setup-Q3CJ4T2Q.mjs} +6 -6
  74. package/dist/cli/{setup-JRU6VGFQ.js → setup-R4LUWQE4.js} +41 -41
  75. package/dist/cli/{skills-GLLMNOCY.mjs → skills-FGXH432G.mjs} +4 -4
  76. package/dist/cli/skills-IDXBBOUW.js +28 -0
  77. package/dist/cli/{tools-VXXAMH2X.mjs → tools-O7C6PFF2.mjs} +6 -6
  78. package/dist/cli/tools-WHLD4Y4O.js +40 -0
  79. package/dist/cli/update-K6HE3XKO.js +28 -0
  80. package/dist/cli/{update-UCGMUUDQ.mjs → update-PPCQV3CD.mjs} +6 -6
  81. package/dist/cli/{workflow-G2UU7WTU.js → workflow-ALKU4ZFD.js} +15 -15
  82. package/dist/cli/{workflow-BGGKNZTG.mjs → workflow-Z2KYQ2JE.mjs} +5 -5
  83. package/dist/index.js +6 -6
  84. package/dist/index.mjs +3 -3
  85. package/dist/install-integrity.json +76 -76
  86. package/dist/release.d.mts +5 -1
  87. package/dist/release.d.ts +5 -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-NJ6RE6XQ.js +0 -33
  92. package/dist/cli/client-UPKWYV32.js +0 -20
  93. package/dist/cli/git-WPEOAE72.js +0 -23
  94. package/dist/cli/play-3ECRZYD5.js +0 -153
  95. package/dist/cli/search-RYLADJUK.js +0 -26
  96. package/dist/cli/skills-PZQDJJWN.js +0 -28
  97. package/dist/cli/tools-WYXBAUMT.js +0 -40
  98. package/dist/cli/update-WM6SOME3.js +0 -28
@@ -13,7 +13,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
13
13
 
14
14
 
15
15
 
16
- var _chunk7AWSYT7Hjs = require('./chunk-7AWSYT7H.js');
16
+ var _chunkA4OX52RVjs = require('./chunk-A4OX52RV.js');
17
17
 
18
18
 
19
19
 
@@ -28,7 +28,7 @@ var _chunk5O4B6AUNjs = require('./chunk-5O4B6AUN.js');
28
28
 
29
29
 
30
30
 
31
- var _chunkDZOEDNSUjs = require('./chunk-DZOEDNSU.js');
31
+ var _chunk4Y5UDYQKjs = require('./chunk-4Y5UDYQK.js');
32
32
 
33
33
 
34
34
 
@@ -42,11 +42,11 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
42
42
 
43
43
 
44
44
 
45
- var _chunkSNENR3BLjs = require('./chunk-SNENR3BL.js');
45
+ var _chunkMKFHZDBOjs = require('./chunk-MKFHZDBO.js');
46
46
 
47
47
 
48
48
 
49
- var _chunkGTC2KAZQjs = require('./chunk-GTC2KAZQ.js');
49
+ var _chunkSFI7U6CAjs = require('./chunk-SFI7U6CA.js');
50
50
 
51
51
 
52
52
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -91,10 +91,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
91
91
  }
92
92
  };
93
93
  function pendingToolExecutionPath(input) {
94
- const config = _chunkGTC2KAZQjs.resolveConfig.call(void 0, );
94
+ const config = _chunkSFI7U6CAjs.resolveConfig.call(void 0, );
95
95
  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(_chunkNXDRDJ4Kjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
96
96
  return _path.join.call(void 0,
97
- _chunkGTC2KAZQjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
97
+ _chunkSFI7U6CAjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
98
98
  `pending-tool-execution-${fingerprint}.json`
99
99
  );
100
100
  }
@@ -442,12 +442,12 @@ function categoryEnumerationRender(summaries) {
442
442
  };
443
443
  }
444
444
  async function listToolCategories(emitJson, compact) {
445
- const client = new (0, _chunkDZOEDNSUjs.DeeplineClient)();
445
+ const client = new (0, _chunk4Y5UDYQKjs.DeeplineClient)();
446
446
  const rawTools = await client.listTools({ compact });
447
447
  const items = rawTools.map(toListedTool);
448
448
  const summaries = aggregateCategorySummaries(rawTools);
449
449
  const outputItems = compact ? items.map(compactTool) : items;
450
- _chunkSNENR3BLjs.printCommandEnvelope.call(void 0,
450
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
451
451
  {
452
452
  tools: outputItems,
453
453
  count: outputItems.length,
@@ -466,7 +466,7 @@ function unknownCategoryError(category, summaries, emitJson) {
466
466
  const known = summaries.map((item) => item.name);
467
467
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
468
468
  if (emitJson) {
469
- _chunkSNENR3BLjs.printJson.call(void 0, {
469
+ _chunkMKFHZDBOjs.printJson.call(void 0, {
470
470
  ok: false,
471
471
  exitCode: 4,
472
472
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -480,13 +480,13 @@ function unknownCategoryError(category, summaries, emitJson) {
480
480
  const render = categoryEnumerationRender(summaries);
481
481
  console.error(message);
482
482
  console.error("");
483
- console.error(_chunkSNENR3BLjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
483
+ console.error(_chunkMKFHZDBOjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
484
484
  console.error("");
485
485
  console.error(`Valid categories: ${known.join(", ")}`);
486
486
  return 4;
487
487
  }
488
488
  async function listToolsInCategory(category, emitJson) {
489
- const client = new (0, _chunkDZOEDNSUjs.DeeplineClient)();
489
+ const client = new (0, _chunk4Y5UDYQKjs.DeeplineClient)();
490
490
  const rawTools = await client.listTools({
491
491
  categories: category,
492
492
  compact: false
@@ -523,7 +523,7 @@ async function listToolsInCategory(category, emitJson) {
523
523
  }
524
524
  ]
525
525
  };
526
- _chunkSNENR3BLjs.printCommandEnvelope.call(void 0,
526
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
527
527
  {
528
528
  category,
529
529
  total: rows.length,
@@ -536,7 +536,7 @@ async function listToolsInCategory(category, emitJson) {
536
536
  return 0;
537
537
  }
538
538
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
539
- const client = new (0, _chunkDZOEDNSUjs.DeeplineClient)();
539
+ const client = new (0, _chunk4Y5UDYQKjs.DeeplineClient)();
540
540
  const items = (await client.listTools({
541
541
  categories: requestedCategories.join(","),
542
542
  compact
@@ -565,7 +565,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
565
565
  ]
566
566
  };
567
567
  const outputItems = compact ? items.map(compactTool) : items;
568
- _chunkSNENR3BLjs.printCommandEnvelope.call(void 0,
568
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
569
569
  {
570
570
  tools: outputItems,
571
571
  count: outputItems.length,
@@ -584,13 +584,13 @@ async function listTools(category, options = {}) {
584
584
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]), () => ( ""));
585
585
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
586
586
  const compact = options.compact !== false;
587
- const emitJson = options.json === true || _chunkSNENR3BLjs.shouldEmitJson.call(void 0, );
587
+ const emitJson = options.json === true || _chunkMKFHZDBOjs.shouldEmitJson.call(void 0, );
588
588
  if (positional && flagCategories.length > 0) {
589
589
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
590
590
  if (!flagIsSameSingle) {
591
591
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
592
592
  if (emitJson) {
593
- _chunkSNENR3BLjs.printJson.call(void 0, {
593
+ _chunkMKFHZDBOjs.printJson.call(void 0, {
594
594
  ok: false,
595
595
  exitCode: 2,
596
596
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -617,7 +617,7 @@ async function grepTools(queryInput, options = {}) {
617
617
  console.error("Usage: deepline tools grep <query> [--json]");
618
618
  return 1;
619
619
  }
620
- const client = new (0, _chunkDZOEDNSUjs.DeeplineClient)();
620
+ const client = new (0, _chunk4Y5UDYQKjs.DeeplineClient)();
621
621
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
622
622
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
623
623
  const jsonOutput = options.json === true;
@@ -660,7 +660,7 @@ async function grepTools(queryInput, options = {}) {
660
660
  query,
661
661
  mode
662
662
  }) : null;
663
- _chunkSNENR3BLjs.printCommandEnvelope.call(void 0,
663
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
664
664
  {
665
665
  tools: outputTools,
666
666
  count: outputTools.length,
@@ -678,7 +678,7 @@ async function grepTools(queryInput, options = {}) {
678
678
  } : {},
679
679
  commandTemplates: TOOL_COMMAND_TEMPLATES
680
680
  },
681
- { json: options.json || _chunkSNENR3BLjs.shouldEmitJson.call(void 0, ) }
681
+ { json: options.json || _chunkMKFHZDBOjs.shouldEmitJson.call(void 0, ) }
682
682
  );
683
683
  return 0;
684
684
  }
@@ -776,6 +776,7 @@ var TOOL_ONLY_VIEWS = [
776
776
  "pricingOnly",
777
777
  "examplesOnly",
778
778
  "gettersOnly",
779
+ "byok",
779
780
  "model",
780
781
  "estimatePayload"
781
782
  ];
@@ -834,7 +835,7 @@ Examples:
834
835
  json: Boolean(options.json)
835
836
  });
836
837
  });
837
- _chunk7AWSYT7Hjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
838
+ _chunkA4OX52RVjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
838
839
  tools.command("grep <query>").description(
839
840
  "Literal grep over tool ids, descriptions, categories, and input fields."
840
841
  ).addHelpText(
@@ -888,6 +889,7 @@ Examples:
888
889
  deepline tools describe hunter_email_verifier --pricing-only
889
890
  deepline tools describe hunter_email_verifier --pricing-only --json
890
891
  deepline tools describe hunter_email_verifier --examples-only
892
+ deepline tools describe hunter_email_verifier --byok
891
893
  deepline tools describe hunter_email_verifier --json
892
894
  deepline tools describe deeplineagent --model openai/gpt-5.6-luna --json
893
895
  deepline tools describe ai_inference --estimate-payload @payload.json --json
@@ -903,7 +905,10 @@ Examples:
903
905
  ).option("--pricing-only", "Only print pricing and billing semantics").option(
904
906
  "--examples-only",
905
907
  "Only print input payload and full Deepline execution response examples"
906
- ).option("--getters-only", "Only print extracted list/value getters").addOption(
908
+ ).option("--getters-only", "Only print extracted list/value getters").option(
909
+ "--byok",
910
+ "Only print whether you can use your own provider credentials, and how to connect them"
911
+ ).addOption(
907
912
  new (0, _commander.Option)(
908
913
  "--compact",
909
914
  "Compatibility alias for the default compact view"
@@ -926,6 +931,7 @@ Examples:
926
931
  schemaOnly: Boolean(options.schemaOnly),
927
932
  examplesOnly: Boolean(options.examplesOnly),
928
933
  gettersOnly: Boolean(options.gettersOnly),
934
+ byok: Boolean(options.byok),
929
935
  model: typeof options.model === "string" ? options.model : void 0,
930
936
  estimatePayload: typeof options.estimatePayload === "string" ? options.estimatePayload : void 0
931
937
  },
@@ -936,7 +942,7 @@ Examples:
936
942
  process.exitCode = await narrowView();
937
943
  return;
938
944
  }
939
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-XMUHTICA.js")));
945
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-3AJI2BOS.js")));
940
946
  process.exitCode = await describeAnything(
941
947
  toolId,
942
948
  { ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
@@ -1018,7 +1024,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1018
1024
  console.error("Usage: deepline tools describe <toolId> [--json]");
1019
1025
  return 1;
1020
1026
  }
1021
- const client = new (0, _chunkDZOEDNSUjs.DeeplineClient)();
1027
+ const client = new (0, _chunk4Y5UDYQKjs.DeeplineClient)();
1022
1028
  let tool;
1023
1029
  try {
1024
1030
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1060,22 +1066,36 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1060
1066
  options.pricingOnly,
1061
1067
  options.schemaOnly,
1062
1068
  options.examplesOnly,
1063
- options.gettersOnly
1069
+ options.gettersOnly,
1070
+ options.byok
1064
1071
  ].filter(Boolean).length;
1065
1072
  if (onlyModes > 1) {
1066
1073
  console.error(
1067
- "Use only one of --pricing-only, --schema-only, --examples-only, or --getters-only."
1074
+ "Use only one of --pricing-only, --schema-only, --examples-only, --getters-only, or --byok."
1068
1075
  );
1069
1076
  return 2;
1070
1077
  }
1078
+ if (options.byok) {
1079
+ const resolvedToolId = String(tool.toolId || toolId);
1080
+ const byok = recordField(tool, "byok");
1081
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
1082
+ { toolId: resolvedToolId, byok },
1083
+ {
1084
+ json: Boolean(options.json || options.contractJson),
1085
+ text: `${toolByokLines(resolvedToolId, byok).join("\n")}
1086
+ `
1087
+ }
1088
+ );
1089
+ return 0;
1090
+ }
1071
1091
  if (options.pricingOnly) {
1072
1092
  const lines = toolPricingOnlyLines(tool, toolId);
1073
1093
  if (inferenceQuote)
1074
1094
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1075
- _chunkSNENR3BLjs.printCommandEnvelope.call(void 0,
1095
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
1076
1096
  {
1077
1097
  toolId: String(tool.toolId || toolId),
1078
- cost: _chunk7AWSYT7Hjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1098
+ cost: _chunkA4OX52RVjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1079
1099
  ...modelDescription ? { modelOptions: modelDescription } : {},
1080
1100
  ...isMonitorTypeTool(tool) ? { pricing: recordField(tool, "pricing") } : {},
1081
1101
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -1090,7 +1110,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1090
1110
  }
1091
1111
  if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
1092
1112
  const contract = toolContractJsonForDescribe(tool, toolId);
1093
- _chunkSNENR3BLjs.printCompactJson.call(void 0, {
1113
+ _chunkMKFHZDBOjs.printCompactJson.call(void 0, {
1094
1114
  toolId: contract.toolId,
1095
1115
  ...options.schemaOnly ? {
1096
1116
  inputSchema: contract.inputSchema,
@@ -1113,7 +1133,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1113
1133
  return 0;
1114
1134
  }
1115
1135
  if (options.contractJson) {
1116
- _chunkSNENR3BLjs.printCompactJson.call(void 0, {
1136
+ _chunkMKFHZDBOjs.printCompactJson.call(void 0, {
1117
1137
  ...toolContractJsonForDescribe(tool, toolId),
1118
1138
  ...modelDescription ? { modelOptions: modelDescription } : {},
1119
1139
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -1122,7 +1142,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1122
1142
  }
1123
1143
  const emitJson = options.json === true;
1124
1144
  if (emitJson) {
1125
- _chunkSNENR3BLjs.printCompactJson.call(void 0, {
1145
+ _chunkMKFHZDBOjs.printCompactJson.call(void 0, {
1126
1146
  ...toolMetadataJsonForDescribe(tool, toolId),
1127
1147
  ...modelDescription ? { modelOptions: modelDescription } : {},
1128
1148
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -1199,7 +1219,7 @@ function toolContractJsonForDescribe(tool, requestedToolId, authoringContractEdi
1199
1219
  const extractedValues = extractionContractEntries(
1200
1220
  arrayField2(toolExecutionResult, "extractedValues", "extracted_values")
1201
1221
  );
1202
- const pricing = _chunk7AWSYT7Hjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1222
+ const pricing = _chunkA4OX52RVjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1203
1223
  const executionMetadataRecord = recordField(
1204
1224
  tool,
1205
1225
  "executionMetadata",
@@ -1494,7 +1514,7 @@ function describedTool(tool, requestedToolId) {
1494
1514
  stringField2(cost, "displayText"),
1495
1515
  // "Free (free)" says the same thing twice.
1496
1516
  billing.toLowerCase() === stringField2(cost, "displayText").toLowerCase() ? "" : billing && `(${billing})`,
1497
- _chunk7AWSYT7Hjs.observedMaxText.call(void 0, cost) && `\u2014 ${_chunk7AWSYT7Hjs.observedMaxText.call(void 0, cost)}`
1517
+ _chunkA4OX52RVjs.observedMaxText.call(void 0, cost) && `\u2014 ${_chunkA4OX52RVjs.observedMaxText.call(void 0, cost)}`
1498
1518
  ].filter(Boolean).join(" ") || void 0,
1499
1519
  guidance: [
1500
1520
  ...contract.deprecated === true ? [`Deprecated. ${stringField2(deprecation, "message")}`.trim()] : [],
@@ -1626,12 +1646,31 @@ function printCompactToolContract(tool, requestedToolId) {
1626
1646
  );
1627
1647
  console.log(`More: deepline describe ${contract.toolId} --json`);
1628
1648
  }
1649
+ function toolByokLines(toolId, byok) {
1650
+ if (typeof byok.supported !== "boolean") {
1651
+ return [`${toolId}`, "BYOK: unknown (this server does not report it)"];
1652
+ }
1653
+ if (!byok.supported) {
1654
+ return [
1655
+ `${toolId}`,
1656
+ "BYOK: not supported. Deepline runs this tool with its own credentials."
1657
+ ];
1658
+ }
1659
+ const setup = stringField2(byok, "setup");
1660
+ const setupUrl = stringField2(byok, "setupUrl");
1661
+ return [
1662
+ `${toolId}`,
1663
+ byok.required === true ? "BYOK: required. This tool runs only on your own provider credentials." : "BYOK: supported (optional).",
1664
+ ...setup ? [`Setup: ${setup}`] : [],
1665
+ ...setupUrl ? [`Connect: ${setupUrl}`] : []
1666
+ ];
1667
+ }
1629
1668
  function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1630
1669
  if (isMonitorTypeTool(tool)) {
1631
1670
  return monitorTypePricingLines(tool);
1632
1671
  }
1633
1672
  const toolId = String(tool.toolId || requestedToolId);
1634
- const cost = _chunk7AWSYT7Hjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1673
+ const cost = _chunkA4OX52RVjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1635
1674
  const pricingModel = stringField2(cost, "pricingModel") || "unknown";
1636
1675
  const billing = stringField2(cost, "billingSourceLabel") || stringField2(cost, "billingSource") || stringField2(cost, "billingMode") || "unknown";
1637
1676
  const explicitUnit = stringField2(cost, "unit");
@@ -1643,7 +1682,7 @@ function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1643
1682
  const price = displayText || summary || (credits !== null ? `${formatDecimal(credits)} Deepline credits${usd !== null ? ` / ${formatUsd(usd)}` : ""} per ${unit}` : "pricing unavailable");
1644
1683
  return [
1645
1684
  `${_nullishCoalesce(options.heading, () => ( `Pricing: ${toolId}`))}: ${price}`,
1646
- ..._chunk7AWSYT7Hjs.observedMaxText.call(void 0, cost) ? [` ${_chunk7AWSYT7Hjs.observedMaxText.call(void 0, cost)}`] : [],
1685
+ ..._chunkA4OX52RVjs.observedMaxText.call(void 0, cost) ? [` ${_chunkA4OX52RVjs.observedMaxText.call(void 0, cost)}`] : [],
1647
1686
  ...cost.observedReference || cost.estimatedRange ? [
1648
1687
  ...summary ? [` ${summary}`] : [],
1649
1688
  ...(_nullishCoalesce(cost.details, () => ( []))).map((detail) => ` ${detail}`)
@@ -1917,11 +1956,13 @@ function toolMetadataJsonForDescribe(tool, requestedToolId) {
1917
1956
  deepline_usd_per_credit: _snakeDeeplineUsdPerCredit,
1918
1957
  deepline_pricing_summary: _snakeDeeplinePricingSummary,
1919
1958
  deepline_pricing_details: _snakeDeeplinePricingDetails,
1959
+ // BYOK is shown only on request, via --byok.
1960
+ byok: _byok,
1920
1961
  ...publicTool
1921
1962
  } = tool;
1922
1963
  const outputSchemaRecord = recordField(tool, "outputSchema", "output_schema");
1923
1964
  return {
1924
- cost: _chunk7AWSYT7Hjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1965
+ cost: _chunkA4OX52RVjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1925
1966
  ...publicTool,
1926
1967
  toolId,
1927
1968
  provider: tool.provider,
@@ -2535,7 +2576,7 @@ function parseExecuteOptions(toolId, options, output) {
2535
2576
  outputFormat = normalizeOutputFormat(options.outputFormat);
2536
2577
  }
2537
2578
  if (options.idempotencyKey !== void 0) {
2538
- _chunkDZOEDNSUjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2579
+ _chunk4Y5UDYQKjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2539
2580
  }
2540
2581
  if (options.recoveryTimeoutMs !== void 0) {
2541
2582
  const parsed = Number(options.recoveryTimeoutMs);
@@ -2846,20 +2887,20 @@ function buildToolExecuteRowArtifactEnvelope(input) {
2846
2887
  }
2847
2888
  async function executeTool(toolId, options) {
2848
2889
  const output = toolExecuteJsonOption(options.json);
2849
- const wantsJson = _chunkSNENR3BLjs.shouldEmitJson.call(void 0, output.requested);
2890
+ const wantsJson = _chunkMKFHZDBOjs.shouldEmitJson.call(void 0, output.requested);
2850
2891
  let parsed;
2851
2892
  try {
2852
2893
  parsed = parseExecuteOptions(toolId, options, output);
2853
2894
  } catch (error) {
2854
2895
  if (wantsJson) {
2855
- _chunkSNENR3BLjs.printJsonError.call(void 0, error);
2896
+ _chunkMKFHZDBOjs.printJsonError.call(void 0, error);
2856
2897
  } else {
2857
2898
  console.error(error instanceof Error ? error.message : String(error));
2858
2899
  }
2859
2900
  return error instanceof _chunk7P5AA3SNjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2860
2901
  }
2861
2902
  const cliInvocationId = _nullishCoalesce(_chunkQJBJZVG6js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, )));
2862
- const client = new (0, _chunkDZOEDNSUjs.DeeplineClient)();
2903
+ const client = new (0, _chunk4Y5UDYQKjs.DeeplineClient)();
2863
2904
  let metadata;
2864
2905
  try {
2865
2906
  metadata = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
@@ -2874,7 +2915,7 @@ async function executeTool(toolId, options) {
2874
2915
  );
2875
2916
  if (play) {
2876
2917
  if (wantsJson) {
2877
- _chunkSNENR3BLjs.printJsonError.call(void 0,
2918
+ _chunkMKFHZDBOjs.printJsonError.call(void 0,
2878
2919
  new Error(playAliasToolErrorMessage(parsed.toolId, play))
2879
2920
  );
2880
2921
  } else {
@@ -2887,7 +2928,7 @@ async function executeTool(toolId, options) {
2887
2928
  }
2888
2929
  if (isPlayLikeTool(metadata)) {
2889
2930
  if (wantsJson) {
2890
- _chunkSNENR3BLjs.printJsonError.call(void 0,
2931
+ _chunkMKFHZDBOjs.printJsonError.call(void 0,
2891
2932
  new Error(
2892
2933
  playLikeToolExecuteErrorMessage(
2893
2934
  parsed.toolId,
@@ -2923,7 +2964,7 @@ async function executeTool(toolId, options) {
2923
2964
  responseIntent,
2924
2965
  ...idempotencyKey ? { idempotencyKey } : {},
2925
2966
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
2926
- searchRef: _chunk7AWSYT7Hjs.recentSearchRef.call(void 0, ),
2967
+ searchRef: _chunkA4OX52RVjs.recentSearchRef.call(void 0, ),
2927
2968
  cliInvocationId,
2928
2969
  onResponseReceived: _chunkMX53GIOBjs.recordApiResponse
2929
2970
  }).catch((error) => {
@@ -2963,8 +3004,8 @@ async function executeTool(toolId, options) {
2963
3004
  );
2964
3005
  const executeExitCode = toolExecuteExitCode(baseEnvelope);
2965
3006
  const delivered = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, "output delivery", () => {
2966
- if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && _chunkSNENR3BLjs.shouldEmitJson.call(void 0, ))) {
2967
- _chunkSNENR3BLjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
3007
+ if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && _chunkMKFHZDBOjs.shouldEmitJson.call(void 0, ))) {
3008
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
2968
3009
  return true;
2969
3010
  }
2970
3011
  if (parsed.outputFormat === "json_file") {
@@ -2972,7 +3013,7 @@ async function executeTool(toolId, options) {
2972
3013
  rawResponse,
2973
3014
  `payload_${parsed.toolId}`
2974
3015
  );
2975
- _chunkSNENR3BLjs.printCommandEnvelope.call(void 0,
3016
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
2976
3017
  {
2977
3018
  ...baseEnvelope,
2978
3019
  local: {
@@ -2994,7 +3035,7 @@ async function executeTool(toolId, options) {
2994
3035
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
2995
3036
  );
2996
3037
  if (wantsJson) {
2997
- _chunkSNENR3BLjs.printJsonError.call(void 0, error);
3038
+ _chunkMKFHZDBOjs.printJsonError.call(void 0, error);
2998
3039
  } else {
2999
3040
  console.error(error.message);
3000
3041
  }
@@ -3005,18 +3046,18 @@ async function executeTool(toolId, options) {
3005
3046
  rawResponse,
3006
3047
  `payload_${parsed.toolId}`
3007
3048
  );
3008
- _chunkSNENR3BLjs.printCommandEnvelope.call(void 0,
3049
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
3009
3050
  {
3010
3051
  ...baseEnvelope,
3011
3052
  local: {
3012
3053
  payload_file: jsonPath
3013
3054
  }
3014
3055
  },
3015
- { json: parsed.outputFormat === "csv_file" || _chunkSNENR3BLjs.shouldEmitJson.call(void 0, ) }
3056
+ { json: parsed.outputFormat === "csv_file" || _chunkMKFHZDBOjs.shouldEmitJson.call(void 0, ) }
3016
3057
  );
3017
3058
  return true;
3018
3059
  }
3019
- _chunkSNENR3BLjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
3060
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
3020
3061
  return true;
3021
3062
  }
3022
3063
  const rowOutput = _chunkNXDRDJ4Kjs.projectRowOutput.call(void 0, listConversion);
@@ -3040,7 +3081,7 @@ async function executeTool(toolId, options) {
3040
3081
  seededScript
3041
3082
  });
3042
3083
  if (parsed.outputFormat === "csv_file") {
3043
- _chunkSNENR3BLjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
3084
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
3044
3085
  return true;
3045
3086
  }
3046
3087
  if (parsed.outPath) {
@@ -3048,7 +3089,7 @@ async function executeTool(toolId, options) {
3048
3089
  toolId: parsed.toolId,
3049
3090
  idempotencyKey
3050
3091
  });
3051
- _chunkSNENR3BLjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3092
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3052
3093
  json: wantsJson,
3053
3094
  text: `Wrote ${csv.rowCount} row(s) to ${csv.path}
3054
3095
  inspect: ${inspection.inspect}
@@ -3057,7 +3098,7 @@ inspect: ${inspection.inspect}
3057
3098
  return true;
3058
3099
  }
3059
3100
  if (parsed.noPreview) {
3060
- _chunkSNENR3BLjs.printCommandEnvelope.call(void 0,
3101
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
3061
3102
  {
3062
3103
  ...materializedEnvelope,
3063
3104
  local: {
@@ -3065,12 +3106,12 @@ inspect: ${inspection.inspect}
3065
3106
  output_path: csv.path
3066
3107
  }
3067
3108
  },
3068
- { json: _chunkSNENR3BLjs.shouldEmitJson.call(void 0, ), text: `${csv.path}
3109
+ { json: _chunkMKFHZDBOjs.shouldEmitJson.call(void 0, ), text: `${csv.path}
3069
3110
  ` }
3070
3111
  );
3071
3112
  return true;
3072
3113
  }
3073
- _chunkSNENR3BLjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: false });
3114
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: false });
3074
3115
  return true;
3075
3116
  });
3076
3117
  if (delivered) {
@@ -417,7 +417,8 @@ When:
417
417
  Input:
418
418
  The tool id. Prints readable text by default, also when piped; read that
419
419
  form and pass --json only for a program. --pricing-only, --schema-only,
420
- --examples-only, --getters-only print one section. --out <path> saves the
420
+ --examples-only, --getters-only print one section. --byok prints only
421
+ whether you can use your own provider credentials and how to connect them. --out <path> saves the
421
422
  output to a file. get is an alias of describe, and deepline describe <id>
422
423
  is the same read for a tool, a play, or a monitor type.
423
424
  Output (JSON):
@@ -456,6 +457,11 @@ Output fields:
456
457
  connected false means the provider needs a connected account or
457
458
  key in this workspace; execute will fail with 3.
458
459
  credentialStatus detail for connected false.
460
+ byok only with --byok. supported: you can connect your
461
+ own provider credentials; required: the tool runs
462
+ only on them. setup and setupUrl say where to
463
+ connect them. With byok optional and nothing
464
+ connected, Deepline's managed credentials are used.
459
465
  extractors / targetGetters JSON paths the CLI uses to turn the raw provider
460
466
  response into rows; the same paths appear in tools
461
467
  execute output as output_preview.listSourcePath.
@@ -14,7 +14,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
14
14
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
15
15
 
16
16
 
17
- var _chunkS4Y7B2O3js = require('./chunk-S4Y7B2O3.js');
17
+ var _chunk666HPUIZjs = require('./chunk-666HPUIZ.js');
18
18
 
19
19
  // src/errors.ts
20
20
  var CustomerDbQueryOutcomeUnknownError = (_class = class extends _chunk7P5AA3SNjs.DeeplineError {
@@ -743,9 +743,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
743
743
  }
744
744
 
745
745
  // src/version.ts
746
- var SDK_VERSION = _chunkS4Y7B2O3js.SDK_RELEASE.version;
747
- var SDK_API_MAJOR = _chunkS4Y7B2O3js.SDK_RELEASE.contracts.api.currentMajor;
748
- var SDK_API_CONTRACT = _nullishCoalesce(_chunkS4Y7B2O3js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
746
+ var SDK_VERSION = _chunk666HPUIZjs.SDK_RELEASE.version;
747
+ var SDK_API_MAJOR = _chunk666HPUIZjs.SDK_RELEASE.contracts.api.currentMajor;
748
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunk666HPUIZjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
749
749
 
750
750
  // src/agent-runtime.ts
751
751