deepline 0.3.390 → 0.3.392

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 (132) hide show
  1. package/dist/bundling-sources/sdk/src/agent-runtime.ts +21 -16
  2. package/dist/bundling-sources/sdk/src/billing-idempotency.ts +1 -1
  3. package/dist/bundling-sources/sdk/src/cli-invocation-id.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/client.ts +75 -52
  5. package/dist/bundling-sources/sdk/src/config.ts +3 -2
  6. package/dist/bundling-sources/sdk/src/db/query.ts +3 -3
  7. package/dist/bundling-sources/sdk/src/deployment-protection.ts +7 -5
  8. package/dist/bundling-sources/sdk/src/http.ts +31 -41
  9. package/dist/bundling-sources/sdk/src/index.ts +26 -26
  10. package/dist/bundling-sources/sdk/src/play.ts +5 -5
  11. package/dist/bundling-sources/sdk/src/plays/bundle-play-file.ts +1 -1
  12. package/dist/bundling-sources/sdk/src/plays/csv-data-input.ts +3 -0
  13. package/dist/bundling-sources/sdk/src/plays/local-play-execution.ts +2 -2
  14. package/dist/bundling-sources/sdk/src/plays/run-request.ts +2 -2
  15. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  16. package/dist/bundling-sources/sdk/src/runs/read-errors.ts +1 -1
  17. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +1 -1
  18. package/dist/bundling-sources/sdk/src/skills-version.ts +2 -2
  19. package/dist/bundling-sources/sdk/src/tool-calls.ts +3 -3
  20. package/dist/bundling-sources/sdk/src/types.ts +12 -1
  21. package/dist/bundling-sources/sdk/src/version.ts +1 -1
  22. package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +87 -1
  23. package/dist/bundling-sources/shared_libs/plays/extension-bridge.ts +57 -0
  24. package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +1 -1
  25. package/dist/bundling-sources/shared_libs/plays/run-summary-types.ts +1 -0
  26. package/dist/cli/auth-67TAELQL.js +39 -0
  27. package/dist/cli/{auth-THPE72WM.mjs → auth-6JSA2ZCW.mjs} +4 -4
  28. package/dist/cli/{billing-52KJIWW2.mjs → billing-MRRO643H.mjs} +4 -4
  29. package/dist/cli/{billing-YRXEPKPB.js → billing-Q5BLQHIU.js} +73 -73
  30. package/dist/cli/{chunk-B22POC3J.mjs → chunk-24VEN5PQ.mjs} +7 -7
  31. package/dist/cli/{chunk-T5JMOYB4.js → chunk-2FQG2HU4.js} +8 -8
  32. package/dist/cli/{chunk-5KD4F7NR.mjs → chunk-2G7DXFHI.mjs} +1 -1
  33. package/dist/cli/{chunk-DNYNJU5J.mjs → chunk-2GAHHSLB.mjs} +34 -26
  34. package/dist/cli/{chunk-FKFE3WH3.mjs → chunk-2Q3GEFL4.mjs} +2 -2
  35. package/dist/cli/{chunk-ICZQGDYM.mjs → chunk-2QLML6G4.mjs} +4 -4
  36. package/dist/cli/{chunk-Z7LX4WYM.mjs → chunk-3FV4GBRK.mjs} +5 -5
  37. package/dist/cli/{chunk-UCPH7S5H.js → chunk-4SFPVW7A.js} +26 -26
  38. package/dist/cli/{chunk-HXENYWVS.js → chunk-4TCT77UF.js} +485 -114
  39. package/dist/cli/{chunk-L7NEMEUI.js → chunk-6DBOU7UH.js} +48 -48
  40. package/dist/cli/{chunk-CU7GDBBM.mjs → chunk-A3APGZFP.mjs} +2 -2
  41. package/dist/cli/{chunk-TLCCVMSB.js → chunk-BB3FNYFY.js} +2 -2
  42. package/dist/cli/{chunk-KUEYQLM3.js → chunk-CVLM3WMJ.js} +235 -220
  43. package/dist/cli/{chunk-PMNJLCIA.js → chunk-EY7RFC6A.js} +15 -15
  44. package/dist/cli/{chunk-5JLQPVNX.js → chunk-GSK6NHVM.js} +1 -0
  45. package/dist/cli/{chunk-JV7YZMNK.mjs → chunk-HGYBEAQP.mjs} +3 -3
  46. package/dist/cli/{chunk-EDWJY6T4.mjs → chunk-HQXL5526.mjs} +1 -0
  47. package/dist/cli/{chunk-QVMRQYSO.js → chunk-JOFPQGXW.js} +50 -50
  48. package/dist/cli/{chunk-OV567DMC.js → chunk-JSLPHFP7.js} +1 -1
  49. package/dist/cli/{chunk-653YVNNZ.mjs → chunk-MU6M3URX.mjs} +1 -1
  50. package/dist/cli/{chunk-HVDBGPDP.mjs → chunk-PQSA443V.mjs} +485 -114
  51. package/dist/cli/{chunk-RWOX543D.mjs → chunk-R3O2CZ4H.mjs} +2 -2
  52. package/dist/cli/{chunk-ENJWB4SX.js → chunk-RIV2GS5E.js} +228 -228
  53. package/dist/cli/{chunk-MI2JQCYZ.js → chunk-RV6ALZIX.js} +6 -6
  54. package/dist/cli/{chunk-QANTWJXH.js → chunk-T7OKJ2T6.js} +61 -61
  55. package/dist/cli/{chunk-ZFZ5PICC.js → chunk-UCKJQG25.js} +8 -8
  56. package/dist/cli/{chunk-CZUGLUQK.js → chunk-WMS5U6YB.js} +99 -91
  57. package/dist/cli/{chunk-EMJB62SM.mjs → chunk-YAZCDBXX.mjs} +1 -1
  58. package/dist/cli/{chunk-NQZW72DN.mjs → chunk-YN6YA7ZZ.mjs} +46 -31
  59. package/dist/cli/{chunk-KZOKUN3N.mjs → chunk-ZTACINO5.mjs} +2 -2
  60. package/dist/cli/command-docs.d.mts +24 -1
  61. package/dist/cli/command-docs.d.ts +24 -1
  62. package/dist/cli/command-docs.js +8 -2
  63. package/dist/cli/command-docs.mjs +9 -3
  64. package/dist/cli/{csv-JYDWK56E.js → csv-26U5T24Z.js} +12 -12
  65. package/dist/cli/{csv-IPUY3W6Z.mjs → csv-E4QGUIGI.mjs} +3 -3
  66. package/dist/cli/{db-IP5IPYJQ.mjs → db-JTRJIAQW.mjs} +4 -4
  67. package/dist/cli/{db-DAWM3T76.js → db-QHBFLMVL.js} +29 -29
  68. package/dist/cli/{describe-3RTUG7EW.mjs → describe-E3DE3ZK3.mjs} +9 -9
  69. package/dist/cli/{describe-5UWGF33U.js → describe-FDV2V74F.js} +19 -19
  70. package/dist/cli/{executions-7ZNMR443.mjs → executions-B3GTNPRE.mjs} +4 -4
  71. package/dist/cli/{executions-OEKC7TL5.js → executions-VZYOGVQY.js} +6 -6
  72. package/dist/cli/{feedback-IUJV565X.mjs → feedback-4CEBR3OV.mjs} +3 -3
  73. package/dist/cli/{feedback-5F2NQJP4.js → feedback-CR55FJA2.js} +7 -7
  74. package/dist/cli/git-I5JTK6YU.js +23 -0
  75. package/dist/cli/{git-IPV5G2PS.mjs → git-NM2PHHZ4.mjs} +4 -4
  76. package/dist/cli/index.js +93 -93
  77. package/dist/cli/index.mjs +33 -33
  78. package/dist/cli/{legacy-noops-UQOWD66P.mjs → legacy-noops-A7MSW5ND.mjs} +4 -4
  79. package/dist/cli/{legacy-noops-IZZRWI7V.js → legacy-noops-ZUA4YFIH.js} +7 -7
  80. package/dist/cli/{monitors-SULGYCTF.mjs → monitors-NVPRQYP3.mjs} +4 -4
  81. package/dist/cli/{monitors-N6WK7YPE.js → monitors-ZE3TLZ4H.js} +85 -85
  82. package/dist/cli/{org-EPVTTBDK.mjs → org-KUBILNQV.mjs} +4 -4
  83. package/dist/cli/{org-COMHSC5H.js → org-U7A6DV5D.js} +64 -64
  84. package/dist/cli/play-A2V7YDU7.js +157 -0
  85. package/dist/cli/{play-OCTPASJI.mjs → play-HRDXQ4QE.mjs} +8 -8
  86. package/dist/cli/{providers-QBVNC5EV.mjs → providers-OHIWI453.mjs} +4 -4
  87. package/dist/cli/{providers-34D6ATLE.js → providers-VD6YTVQZ.js} +7 -7
  88. package/dist/cli/{quickstart-3XR45BHI.js → quickstart-ETTCWPA4.js} +5 -5
  89. package/dist/cli/{quickstart-SYGV5XVH.mjs → quickstart-UBV2FONF.mjs} +3 -3
  90. package/dist/cli/{search-UUJ7EHBV.mjs → search-F44IZRT7.mjs} +5 -5
  91. package/dist/cli/search-WWXMBVPH.js +26 -0
  92. package/dist/cli/{secrets-TIL6DESO.js → secrets-CAEMRORF.js} +13 -13
  93. package/dist/cli/{secrets-MWRFHNIT.mjs → secrets-R6XOJZKU.mjs} +4 -4
  94. package/dist/cli/{sessions-2LXC6ZYD.js → sessions-6GC7OFTT.js} +5 -5
  95. package/dist/cli/{sessions-5TKMBU5P.mjs → sessions-RLN6UQS3.mjs} +4 -4
  96. package/dist/cli/{settings-II3IQECQ.js → settings-DPNVUAV2.js} +74 -74
  97. package/dist/cli/{settings-NRIACLPU.mjs → settings-KIPAMRPP.mjs} +7 -7
  98. package/dist/cli/{setup-AF3UMIIC.js → setup-DTL3L5SG.js} +41 -41
  99. package/dist/cli/{setup-VIMZ4U73.mjs → setup-TU2F7PU5.mjs} +6 -6
  100. package/dist/cli/skills-SWOSEZLB.js +28 -0
  101. package/dist/cli/{skills-5OKAXXWJ.mjs → skills-UV5MYJ46.mjs} +4 -4
  102. package/dist/cli/tools-IL2YCDQ6.js +40 -0
  103. package/dist/cli/{tools-5UXNV4YY.mjs → tools-QRRNDCQ7.mjs} +6 -6
  104. package/dist/cli/{update-Q4HX6CR3.mjs → update-4426TF35.mjs} +6 -6
  105. package/dist/cli/update-BERDPEYR.js +28 -0
  106. package/dist/cli/{workflow-NZZ5H4P4.js → workflow-HNLOVISB.js} +15 -15
  107. package/dist/cli/{workflow-45BLG7GN.mjs → workflow-N4U5VLZ3.mjs} +5 -5
  108. package/dist/{client-DEKvymBI.d.ts → client-Uxuy-xQ2.d.ts} +23 -0
  109. package/dist/{client-0avPvYBP.d.mts → client-e6Qh5ZIg.d.mts} +23 -0
  110. package/dist/index.d.mts +2 -2
  111. package/dist/index.d.ts +2 -2
  112. package/dist/index.js +6 -6
  113. package/dist/index.mjs +3 -3
  114. package/dist/install-integrity.json +79 -78
  115. package/dist/plays/csv-data-input.d.mts +2 -0
  116. package/dist/plays/csv-data-input.d.ts +2 -0
  117. package/dist/plays/csv-data-input.js +2 -2
  118. package/dist/plays/csv-data-input.mjs +1 -1
  119. package/dist/plays/run-request.d.mts +1 -1
  120. package/dist/plays/run-request.d.ts +1 -1
  121. package/dist/release.d.mts +1 -1
  122. package/dist/release.d.ts +1 -1
  123. package/dist/release.js +2 -2
  124. package/dist/release.mjs +1 -1
  125. package/package.json +1 -1
  126. package/dist/cli/auth-OVT7BZ5A.js +0 -39
  127. package/dist/cli/git-ZZ5MD2KG.js +0 -23
  128. package/dist/cli/play-RWY2JHAP.js +0 -157
  129. package/dist/cli/search-PTG76HU3.js +0 -26
  130. package/dist/cli/skills-I6NTZMBZ.js +0 -28
  131. package/dist/cli/tools-NXD7YFYV.js +0 -40
  132. package/dist/cli/update-SZ6AMT3M.js +0 -28
@@ -13,7 +13,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkZFZ5PICCjs = require('./chunk-ZFZ5PICC.js');
16
+ var _chunkUCKJQG25js = require('./chunk-UCKJQG25.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 _chunkKUEYQLM3js = require('./chunk-KUEYQLM3.js');
35
+ var _chunkCVLM3WMJjs = require('./chunk-CVLM3WMJ.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 _chunkMI2JQCYZjs = require('./chunk-MI2JQCYZ.js');
49
+ var _chunkRV6ALZIXjs = require('./chunk-RV6ALZIX.js');
50
50
 
51
51
 
52
52
 
53
- var _chunkCZUGLUQKjs = require('./chunk-CZUGLUQK.js');
53
+ var _chunkWMS5U6YBjs = require('./chunk-WMS5U6YB.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 = _chunkCZUGLUQKjs.resolveConfig.call(void 0, );
98
+ const config = _chunkWMS5U6YBjs.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
- _chunkCZUGLUQKjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
101
+ _chunkWMS5U6YBjs.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, _chunkKUEYQLM3js.DeeplineClient)();
622
+ const client = new (0, _chunkCVLM3WMJjs.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
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
627
+ _chunkRV6ALZIXjs.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
- _chunkMI2JQCYZjs.printJson.call(void 0, {
646
+ _chunkRV6ALZIXjs.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(_chunkMI2JQCYZjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
660
+ console.error(_chunkRV6ALZIXjs.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, _chunkKUEYQLM3js.DeeplineClient)();
666
+ const client = new (0, _chunkCVLM3WMJjs.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
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
703
+ _chunkRV6ALZIXjs.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, _chunkKUEYQLM3js.DeeplineClient)();
716
+ const client = new (0, _chunkCVLM3WMJjs.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
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
745
+ _chunkRV6ALZIXjs.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 || _chunkMI2JQCYZjs.shouldEmitJson.call(void 0, );
764
+ const emitJson = options.json === true || _chunkRV6ALZIXjs.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
- _chunkMI2JQCYZjs.printJson.call(void 0, {
770
+ _chunkRV6ALZIXjs.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, _chunkKUEYQLM3js.DeeplineClient)();
797
+ const client = new (0, _chunkCVLM3WMJjs.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
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
840
+ _chunkRV6ALZIXjs.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 || _chunkMI2JQCYZjs.shouldEmitJson.call(void 0, ) }
858
+ { json: options.json || _chunkRV6ALZIXjs.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
- _chunkZFZ5PICCjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
1014
+ _chunkUCKJQG25js.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-5UWGF33U.js")));
1115
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-FDV2V74F.js")));
1116
1116
  process.exitCode = await describeAnything(
1117
1117
  toolId,
1118
1118
  {
@@ -1198,7 +1198,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1198
1198
  console.error("Usage: deepline tools describe <toolId> [--json]");
1199
1199
  return 1;
1200
1200
  }
1201
- const client = new (0, _chunkKUEYQLM3js.DeeplineClient)();
1201
+ const client = new (0, _chunkCVLM3WMJjs.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
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
1255
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
1256
1256
  {
1257
1257
  toolId: String(tool.toolId || toolId),
1258
- cost: _chunkZFZ5PICCjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1258
+ cost: _chunkUCKJQG25js.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
- _chunkMI2JQCYZjs.printCompactJson.call(void 0, {
1273
+ _chunkRV6ALZIXjs.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
- _chunkMI2JQCYZjs.printCompactJson.call(void 0, {
1296
+ _chunkRV6ALZIXjs.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
- _chunkMI2JQCYZjs.printCompactJson.call(void 0, {
1305
+ _chunkRV6ALZIXjs.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 = _chunkZFZ5PICCjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1382
+ const pricing = _chunkUCKJQG25js.Capability.fromCatalogEntry(tool).describe().customerCost();
1383
1383
  const executionMetadataRecord = recordField(
1384
1384
  tool,
1385
1385
  "executionMetadata",
@@ -1717,7 +1717,7 @@ function describedTool(tool, requestedToolId) {
1717
1717
  stringField2(cost, "displayText"),
1718
1718
  // "Free (free)" says the same thing twice.
1719
1719
  billing.toLowerCase() === stringField2(cost, "displayText").toLowerCase() ? "" : billing && `(${billing})`,
1720
- _chunkZFZ5PICCjs.observedMaxText.call(void 0, cost) && `\u2014 ${_chunkZFZ5PICCjs.observedMaxText.call(void 0, cost)}`
1720
+ _chunkUCKJQG25js.observedMaxText.call(void 0, cost) && `\u2014 ${_chunkUCKJQG25js.observedMaxText.call(void 0, cost)}`
1721
1721
  ].filter(Boolean).join(" ") || void 0,
1722
1722
  guidance: [
1723
1723
  ...contract.deprecated === true ? [`Deprecated. ${stringField2(deprecation, "message")}`.trim()] : [],
@@ -1854,7 +1854,7 @@ function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1854
1854
  return monitorTypePricingLines(tool);
1855
1855
  }
1856
1856
  const toolId = String(tool.toolId || requestedToolId);
1857
- const cost = _chunkZFZ5PICCjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1857
+ const cost = _chunkUCKJQG25js.Capability.fromCatalogEntry(tool).describe().customerCost();
1858
1858
  const pricingModel = stringField2(cost, "pricingModel") || "unknown";
1859
1859
  const billing = stringField2(cost, "billingSourceLabel") || stringField2(cost, "billingSource") || stringField2(cost, "billingMode") || "unknown";
1860
1860
  const explicitUnit = stringField2(cost, "unit");
@@ -1866,7 +1866,7 @@ function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1866
1866
  const price = displayText || summary || (credits !== null ? `${formatDecimal(credits)} Deepline credits${usd !== null ? ` / ${formatUsd(usd)}` : ""} per ${unit}` : "pricing unavailable");
1867
1867
  return [
1868
1868
  `${_nullishCoalesce(options.heading, () => ( `Pricing: ${toolId}`))}: ${price}`,
1869
- ..._chunkZFZ5PICCjs.observedMaxText.call(void 0, cost) ? [` ${_chunkZFZ5PICCjs.observedMaxText.call(void 0, cost)}`] : [],
1869
+ ..._chunkUCKJQG25js.observedMaxText.call(void 0, cost) ? [` ${_chunkUCKJQG25js.observedMaxText.call(void 0, cost)}`] : [],
1870
1870
  ...cost.observedReference || cost.estimatedRange ? [
1871
1871
  ...summary ? [` ${summary}`] : [],
1872
1872
  ...(_nullishCoalesce(cost.details, () => ( []))).map((detail) => ` ${detail}`)
@@ -2144,7 +2144,7 @@ function toolMetadataJsonForDescribe(tool, requestedToolId) {
2144
2144
  } = tool;
2145
2145
  const outputSchemaRecord = recordField(tool, "outputSchema", "output_schema");
2146
2146
  return {
2147
- cost: _chunkZFZ5PICCjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
2147
+ cost: _chunkUCKJQG25js.Capability.fromCatalogEntry(tool).describe().customerCost(),
2148
2148
  ...publicTool,
2149
2149
  toolId,
2150
2150
  provider: tool.provider,
@@ -2758,7 +2758,7 @@ function parseExecuteOptions(toolId, options, output) {
2758
2758
  outputFormat = normalizeOutputFormat(options.outputFormat);
2759
2759
  }
2760
2760
  if (options.idempotencyKey !== void 0) {
2761
- _chunkKUEYQLM3js.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2761
+ _chunkCVLM3WMJjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2762
2762
  }
2763
2763
  if (options.recoveryTimeoutMs !== void 0) {
2764
2764
  const parsed = Number(options.recoveryTimeoutMs);
@@ -3069,20 +3069,20 @@ function buildToolExecuteRowArtifactEnvelope(input) {
3069
3069
  }
3070
3070
  async function executeTool(toolId, options) {
3071
3071
  const output = toolExecuteJsonOption(options.json);
3072
- const wantsJson = _chunkMI2JQCYZjs.shouldEmitJson.call(void 0, output.requested) || (_nullishCoalesce(options.outputFormat, () => ( "auto"))).trim().toLowerCase() !== "csv";
3072
+ const wantsJson = _chunkRV6ALZIXjs.shouldEmitJson.call(void 0, output.requested) || (_nullishCoalesce(options.outputFormat, () => ( "auto"))).trim().toLowerCase() !== "csv";
3073
3073
  let parsed;
3074
3074
  try {
3075
3075
  parsed = parseExecuteOptions(toolId, options, output);
3076
3076
  } catch (error) {
3077
3077
  if (wantsJson) {
3078
- _chunkMI2JQCYZjs.printJsonError.call(void 0, error);
3078
+ _chunkRV6ALZIXjs.printJsonError.call(void 0, error);
3079
3079
  } else {
3080
3080
  console.error(error instanceof Error ? error.message : String(error));
3081
3081
  }
3082
3082
  return error instanceof _chunk7P5AA3SNjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
3083
3083
  }
3084
3084
  const cliInvocationId = _nullishCoalesce(_chunkQJBJZVG6js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, )));
3085
- const client = new (0, _chunkKUEYQLM3js.DeeplineClient)();
3085
+ const client = new (0, _chunkCVLM3WMJjs.DeeplineClient)();
3086
3086
  let metadata;
3087
3087
  try {
3088
3088
  metadata = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
@@ -3097,7 +3097,7 @@ async function executeTool(toolId, options) {
3097
3097
  );
3098
3098
  if (play) {
3099
3099
  if (wantsJson) {
3100
- _chunkMI2JQCYZjs.printJsonError.call(void 0,
3100
+ _chunkRV6ALZIXjs.printJsonError.call(void 0,
3101
3101
  new Error(playAliasToolErrorMessage(parsed.toolId, play))
3102
3102
  );
3103
3103
  } else {
@@ -3110,7 +3110,7 @@ async function executeTool(toolId, options) {
3110
3110
  }
3111
3111
  if (isPlayLikeTool(metadata)) {
3112
3112
  if (wantsJson) {
3113
- _chunkMI2JQCYZjs.printJsonError.call(void 0,
3113
+ _chunkRV6ALZIXjs.printJsonError.call(void 0,
3114
3114
  new Error(
3115
3115
  playLikeToolExecuteErrorMessage(
3116
3116
  parsed.toolId,
@@ -3146,7 +3146,7 @@ async function executeTool(toolId, options) {
3146
3146
  responseIntent,
3147
3147
  ...idempotencyKey ? { idempotencyKey } : {},
3148
3148
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
3149
- searchRef: _chunkZFZ5PICCjs.recentSearchRef.call(void 0, ),
3149
+ searchRef: _chunkUCKJQG25js.recentSearchRef.call(void 0, ),
3150
3150
  cliInvocationId,
3151
3151
  onResponseReceived: _chunkZMVJSS6Njs.recordApiResponse
3152
3152
  }).catch((error) => {
@@ -3187,7 +3187,7 @@ async function executeTool(toolId, options) {
3187
3187
  const executeExitCode = toolExecuteExitCode(baseEnvelope);
3188
3188
  const delivered = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, "output delivery", () => {
3189
3189
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
3190
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
3190
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
3191
3191
  return true;
3192
3192
  }
3193
3193
  if (parsed.outputFormat === "json_file") {
@@ -3195,7 +3195,7 @@ async function executeTool(toolId, options) {
3195
3195
  rawResponse,
3196
3196
  `payload_${parsed.toolId}`
3197
3197
  );
3198
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
3198
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
3199
3199
  {
3200
3200
  ...baseEnvelope,
3201
3201
  local: {
@@ -3217,7 +3217,7 @@ async function executeTool(toolId, options) {
3217
3217
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
3218
3218
  );
3219
3219
  if (wantsJson) {
3220
- _chunkMI2JQCYZjs.printJsonError.call(void 0, error);
3220
+ _chunkRV6ALZIXjs.printJsonError.call(void 0, error);
3221
3221
  } else {
3222
3222
  console.error(error.message);
3223
3223
  }
@@ -3228,7 +3228,7 @@ async function executeTool(toolId, options) {
3228
3228
  rawResponse,
3229
3229
  `payload_${parsed.toolId}`
3230
3230
  );
3231
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
3231
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
3232
3232
  {
3233
3233
  ...baseEnvelope,
3234
3234
  local: {
@@ -3239,7 +3239,7 @@ async function executeTool(toolId, options) {
3239
3239
  );
3240
3240
  return true;
3241
3241
  }
3242
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
3242
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
3243
3243
  return true;
3244
3244
  }
3245
3245
  const rowOutput = _chunk3VN4FTE3js.projectRowOutput.call(void 0, listConversion);
@@ -3263,7 +3263,7 @@ async function executeTool(toolId, options) {
3263
3263
  seededScript
3264
3264
  });
3265
3265
  if (parsed.outputFormat === "csv_file") {
3266
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
3266
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
3267
3267
  return true;
3268
3268
  }
3269
3269
  if (parsed.outPath) {
@@ -3271,7 +3271,7 @@ async function executeTool(toolId, options) {
3271
3271
  toolId: parsed.toolId,
3272
3272
  idempotencyKey
3273
3273
  });
3274
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3274
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3275
3275
  json: wantsJson,
3276
3276
  text: `Wrote ${csv.rowCount} row(s) to ${csv.path}
3277
3277
  inspect: ${inspection.inspect}
@@ -3280,7 +3280,7 @@ inspect: ${inspection.inspect}
3280
3280
  return true;
3281
3281
  }
3282
3282
  if (parsed.noPreview) {
3283
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
3283
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
3284
3284
  {
3285
3285
  ...materializedEnvelope,
3286
3286
  local: {
@@ -3293,7 +3293,7 @@ inspect: ${inspection.inspect}
3293
3293
  );
3294
3294
  return true;
3295
3295
  }
3296
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3296
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3297
3297
  json: wantsJson && parsed.outputFormat !== "csv"
3298
3298
  });
3299
3299
  return true;
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-5KD4F7NR.mjs";
5
+ } from "./chunk-2G7DXFHI.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-DNYNJU5J.mjs";
8
+ } from "./chunk-2GAHHSLB.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -1,6 +1,6 @@
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 _chunkQANTWJXHjs = require('./chunk-QANTWJXH.js');
3
+ var _chunkT7OKJ2T6js = require('./chunk-T7OKJ2T6.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkQANTWJXHjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkT7OKJ2T6js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,