deepline 0.3.369 → 0.3.371

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 (120) hide show
  1. package/README.md +1 -1
  2. package/dist/bundling-sources/sdk/src/client.ts +8 -8
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -7
  4. package/dist/bundling-sources/sdk/src/runs/overview.ts +7 -7
  5. package/dist/bundling-sources/sdk/src/tool-output.ts +5 -1
  6. package/dist/bundling-sources/sdk/src/types.ts +2 -2
  7. package/dist/bundling-sources/shared_libs/monitors/fleets/errors.ts +5 -5
  8. package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +4 -2
  9. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +18 -18
  10. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +1 -1
  11. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +2 -2
  12. package/dist/bundling-sources/shared_libs/play-runtime/dataset-lifecycle-log.ts +1 -1
  13. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +1 -1
  14. package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +34 -9
  15. package/dist/cli/auth-DQVK3ZI6.js +33 -0
  16. package/dist/cli/{auth-F5YPFL6L.mjs → auth-LCSEXQA2.mjs} +4 -4
  17. package/dist/cli/{billing-3HHLCETY.js → billing-KISDL67A.js} +148 -148
  18. package/dist/cli/{billing-LNO6FPPM.mjs → billing-Z7PLJC5C.mjs} +79 -79
  19. package/dist/cli/{chunk-MX53GIOB.js → chunk-2JRRXXTA.js} +2 -2
  20. package/dist/cli/{chunk-COEBGYBW.mjs → chunk-2L6LBJVC.mjs} +193 -187
  21. package/dist/cli/{chunk-H4N6FMJ5.mjs → chunk-3FTYFVYN.mjs} +5 -5
  22. package/dist/cli/{chunk-Z6B4UPM4.mjs → chunk-3GK3SH3G.mjs} +2 -2
  23. package/dist/cli/{chunk-KGZRUGL7.js → chunk-44SHFHA3.js} +17 -17
  24. package/dist/cli/{chunk-QFBHEQCQ.mjs → chunk-46JCJ7FT.mjs} +56 -97
  25. package/dist/cli/{chunk-6A3GNWSU.js → chunk-5BCVKWLV.js} +17 -17
  26. package/dist/cli/{chunk-TRRFXE4X.mjs → chunk-5S525TQV.mjs} +2 -2
  27. package/dist/cli/{chunk-X6FNDFTD.js → chunk-5Z7JFUNX.js} +26 -26
  28. package/dist/cli/{chunk-JGLIB4JN.mjs → chunk-73NIXYKH.mjs} +90 -50
  29. package/dist/cli/{chunk-2AENFV3B.js → chunk-A7X7KFXX.js} +4 -4
  30. package/dist/cli/{chunk-KU4X5TWN.mjs → chunk-AIZKDTFF.mjs} +11 -11
  31. package/dist/cli/{chunk-ERMXQOIV.js → chunk-BO3ADIBV.js} +8 -8
  32. package/dist/cli/{chunk-FXVRQHJC.js → chunk-C3IPN4E6.js} +17 -17
  33. package/dist/cli/{chunk-LH3BV773.js → chunk-C553OZGG.js} +10 -10
  34. package/dist/cli/{chunk-EJC3INZD.mjs → chunk-DOXAN2I7.mjs} +3 -3
  35. package/dist/cli/{chunk-XH3EIQAZ.js → chunk-DPVBWLBF.js} +419 -413
  36. package/dist/cli/{chunk-PRMAO43X.js → chunk-DQMTJXLK.js} +145 -105
  37. package/dist/cli/{chunk-NXDRDJ4K.js → chunk-E5UD3JDQ.js} +3 -1
  38. package/dist/cli/{chunk-U5VEW7LL.mjs → chunk-IWY7T6MR.mjs} +1 -1
  39. package/dist/cli/{chunk-MIMASXO4.mjs → chunk-JB6ERQUV.mjs} +3 -1
  40. package/dist/cli/{chunk-QILHWZFP.js → chunk-JSK6GUY6.js} +56 -97
  41. package/dist/cli/{chunk-VUYCB2RY.mjs → chunk-KBJO7HIF.mjs} +9 -9
  42. package/dist/cli/{chunk-SDOPEZYS.mjs → chunk-KGRAQ4OR.mjs} +6 -6
  43. package/dist/cli/{chunk-5IXQ6VP4.mjs → chunk-KKRRIFR3.mjs} +1 -1
  44. package/dist/cli/{chunk-74XTRGY5.js → chunk-N34UX4TW.js} +2 -2
  45. package/dist/cli/{chunk-KR5NWPWI.js → chunk-NMDNUOVI.js} +1 -6
  46. package/dist/cli/{chunk-YCLPW7QO.mjs → chunk-SEDS6ZVR.mjs} +10 -10
  47. package/dist/cli/{chunk-RIT4UED6.mjs → chunk-SENW5J4O.mjs} +5 -5
  48. package/dist/cli/{chunk-P7W5OMQ6.js → chunk-TT2YWFYW.js} +53 -53
  49. package/dist/cli/{chunk-OEQC4QLU.js → chunk-YENBXYUH.js} +68 -68
  50. package/dist/cli/{chunk-4RVNJQ7D.mjs → chunk-YYFLULK7.mjs} +1 -6
  51. package/dist/cli/client-JFSRNUVD.js +20 -0
  52. package/dist/cli/{client-HURLYTDV.mjs → client-Z3Z5EDDJ.mjs} +3 -3
  53. package/dist/cli/command-docs.js +2 -2
  54. package/dist/cli/command-docs.mjs +1 -1
  55. package/dist/cli/{csv-ZECPS6DF.mjs → csv-TEVHLGGA.mjs} +3 -3
  56. package/dist/cli/{csv-BZ7QNGLU.js → csv-XGFXV7JE.js} +12 -12
  57. package/dist/cli/{db-JXLCCIML.js → db-LLZJ7UH5.js} +42 -43
  58. package/dist/cli/{db-EUNDS5UG.mjs → db-OB7PMWSZ.mjs} +17 -18
  59. package/dist/cli/{describe-L6LADCXI.mjs → describe-GZIRANUZ.mjs} +12 -12
  60. package/dist/cli/{describe-DNDL3TC6.js → describe-NWU7LI3I.js} +28 -28
  61. package/dist/cli/{executions-GPKPWEHO.js → executions-64YZGSOW.js} +6 -6
  62. package/dist/cli/{executions-GRCD2GHT.mjs → executions-7UZ3ZGJ3.mjs} +4 -4
  63. package/dist/cli/{feedback-5WG2HNZ6.mjs → feedback-2WRQRW3U.mjs} +8 -8
  64. package/dist/cli/{feedback-VJCNBYVQ.js → feedback-MN5CXULH.js} +12 -12
  65. package/dist/cli/{git-3G5Q4TPI.mjs → git-BPYVLLTY.mjs} +4 -4
  66. package/dist/cli/git-TJIPVSAE.js +23 -0
  67. package/dist/cli/index.js +98 -109
  68. package/dist/cli/index.mjs +46 -57
  69. package/dist/cli/{legacy-noops-YAO3LDPI.js → legacy-noops-VMXJPLMW.js} +9 -9
  70. package/dist/cli/{legacy-noops-7WLCNXLD.mjs → legacy-noops-ZRPWEPX6.mjs} +6 -6
  71. package/dist/cli/{monitors-NRQN7M3A.mjs → monitors-5BRTBL7E.mjs} +59 -59
  72. package/dist/cli/{monitors-MQ6KNDOH.js → monitors-OQSI2VOL.js} +140 -140
  73. package/dist/cli/{org-TGKGLAB4.js → org-F5QS3HG4.js} +88 -87
  74. package/dist/cli/{org-X46ICV24.mjs → org-SMZ7AGR3.mjs} +28 -27
  75. package/dist/cli/{play-PCLCMTVK.mjs → play-CJZNLQL7.mjs} +10 -8
  76. package/dist/cli/play-K7HE4LBB.js +155 -0
  77. package/dist/cli/{providers-T2S532QL.mjs → providers-CBWXJRDG.mjs} +7 -7
  78. package/dist/cli/{providers-IPH3TV6J.js → providers-SH2HYOVR.js} +10 -10
  79. package/dist/cli/{quickstart-6CO5FGYE.mjs → quickstart-342ENF6Q.mjs} +4 -4
  80. package/dist/cli/{quickstart-GXFHMZL7.js → quickstart-B6EL7WDG.js} +6 -6
  81. package/dist/cli/{search-6HML4FB2.mjs → search-E7DKH3SI.mjs} +5 -5
  82. package/dist/cli/search-SEEYCQED.js +26 -0
  83. package/dist/cli/{secrets-KCNIINW5.mjs → secrets-FSYIPRVS.mjs} +5 -5
  84. package/dist/cli/{secrets-J6T743DQ.js → secrets-M2AW5RGE.js} +14 -14
  85. package/dist/cli/{sessions-ABXL2OZV.js → sessions-AFE4C3FQ.js} +5 -5
  86. package/dist/cli/{sessions-FQHM34TD.mjs → sessions-DJPGWPNA.mjs} +4 -4
  87. package/dist/cli/{settings-3UXXWUZ3.mjs → settings-KLN2A3PQ.mjs} +10 -10
  88. package/dist/cli/{settings-HB5DSAUW.js → settings-VUWBNATC.js} +77 -77
  89. package/dist/cli/{setup-2MOBCKAB.mjs → setup-BE6N5YV6.mjs} +15 -15
  90. package/dist/cli/{setup-TMJJLEYX.js → setup-I5IMTQCX.js} +50 -50
  91. package/dist/cli/skills-7XH5GMZB.js +28 -0
  92. package/dist/cli/{skills-LWS7PNTF.mjs → skills-GSNPQDUG.mjs} +4 -4
  93. package/dist/cli/tools-JCL4ABAF.js +40 -0
  94. package/dist/cli/{tools-TIUE2AK7.mjs → tools-ORCGHV4P.mjs} +8 -8
  95. package/dist/cli/{update-IYXAP5MI.mjs → update-UXEUWVWS.mjs} +6 -6
  96. package/dist/cli/update-YNZOS77Z.js +28 -0
  97. package/dist/cli/{workflow-3CVYOEKJ.mjs → workflow-JBQY7JJN.mjs} +7 -7
  98. package/dist/cli/{workflow-SGF3DFKJ.js → workflow-R7SDICTU.js} +17 -17
  99. package/dist/{client-CjHv4K6D.d.mts → client-CZFMQEgO.d.mts} +6 -6
  100. package/dist/{client-rTuhNN-x.d.ts → client-CgSwpnb-.d.ts} +6 -6
  101. package/dist/index.d.mts +2 -2
  102. package/dist/index.d.ts +2 -2
  103. package/dist/index.js +15 -15
  104. package/dist/index.mjs +4 -4
  105. package/dist/install-integrity.json +82 -82
  106. package/dist/plays/run-request.d.mts +1 -1
  107. package/dist/plays/run-request.d.ts +1 -1
  108. package/dist/release.d.mts +1 -5
  109. package/dist/release.d.ts +1 -5
  110. package/dist/release.js +2 -2
  111. package/dist/release.mjs +1 -1
  112. package/package.json +1 -1
  113. package/dist/cli/auth-L3ZF67G5.js +0 -33
  114. package/dist/cli/client-HL2AHZPQ.js +0 -20
  115. package/dist/cli/git-MSJ6SFLT.js +0 -23
  116. package/dist/cli/play-TJBPVFUK.js +0 -153
  117. package/dist/cli/search-34MPYWVW.js +0 -26
  118. package/dist/cli/skills-D3IIQSUK.js +0 -28
  119. package/dist/cli/tools-XWUSCNVK.js +0 -40
  120. package/dist/cli/update-7O5MXP5K.js +0 -28
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunk74XTRGY5js = require('./chunk-74XTRGY5.js');
4
+ var _chunkN34UX4TWjs = require('./chunk-N34UX4TW.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkOEQC4QLUjs = require('./chunk-OEQC4QLU.js');
8
+ var _chunkYENBXYUHjs = require('./chunk-YENBXYUH.js');
9
9
 
10
10
 
11
- var _chunkERMXQOIVjs = require('./chunk-ERMXQOIV.js');
11
+ var _chunkBO3ADIBVjs = require('./chunk-BO3ADIBV.js');
12
12
 
13
13
 
14
- var _chunk2AENFV3Bjs = require('./chunk-2AENFV3B.js');
14
+ var _chunkA7X7KFXXjs = require('./chunk-A7X7KFXX.js');
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  var _child_process = require('child_process');
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
489
489
  }
490
490
  function resolveNpmGlobalPrefix(env) {
491
491
  try {
492
- const plan = _chunkOEQC4QLUjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
492
+ const plan = _chunkYENBXYUHjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
493
493
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
494
494
  encoding: "utf8",
495
495
  env,
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
545
545
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
546
546
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
547
547
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
548
- const npmVersion = options.npmVersion === void 0 ? _chunk74XTRGY5js.readNpmVersion.call(void 0, env) : options.npmVersion;
549
- const npmGlobalInstallFlags = _chunk74XTRGY5js.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
548
+ const npmVersion = options.npmVersion === void 0 ? _chunkN34UX4TWjs.readNpmVersion.call(void 0, env) : options.npmVersion;
549
+ const npmGlobalInstallFlags = _chunkN34UX4TWjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
550
550
  const args = installPrefix ? [
551
551
  "install",
552
552
  "-g",
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
556
556
  packageSpec
557
557
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
558
558
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
559
- _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunk2AENFV3Bjs.autoDetectBaseUrl.call(void 0, )
559
+ _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkA7X7KFXXjs.autoDetectBaseUrl.call(void 0, )
560
560
  );
561
561
  return {
562
562
  kind: "npm-global",
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
703
703
  function runCommand(command, args, env = process.env) {
704
704
  return new Promise((resolveResult) => {
705
705
  let output = "";
706
- const plan = _chunkOEQC4QLUjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
706
+ const plan = _chunkYENBXYUHjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
707
707
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
708
708
  stdio: ["inherit", "pipe", "pipe"],
709
709
  shell: plan.shell,
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1079
1079
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1080
1080
  }
1081
1081
  async function runUpdateCommand(options, dependencies = {}) {
1082
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk2AENFV3Bjs.autoDetectBaseUrl));
1082
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkA7X7KFXXjs.autoDetectBaseUrl));
1083
1083
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1084
1084
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1085
1085
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1086
1086
  const originalWrite = process.stdout.write.bind(process.stdout);
1087
1087
  process.stdout.write = (() => true);
1088
1088
  try {
1089
- const exitCode = await _chunkOEQC4QLUjs.runSkillsCommand.call(void 0, { json: true });
1089
+ const exitCode = await _chunkYENBXYUHjs.runSkillsCommand.call(void 0, { json: true });
1090
1090
  if (exitCode !== 0) {
1091
1091
  throw new Error(
1092
1092
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1157
1157
  ]
1158
1158
  };
1159
1159
  if (options.json && !options.executeWithJson) {
1160
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1160
+ _chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1161
1161
  return 0;
1162
1162
  }
1163
1163
  if (options.printCommand) {
1164
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
1164
+ _chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
1165
1165
  {
1166
1166
  ...plan,
1167
1167
  render: {
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1174
1174
  return 0;
1175
1175
  }
1176
1176
  if (plan.kind === "source" || plan.kind === "homebrew") {
1177
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1177
+ _chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1178
1178
  return 0;
1179
1179
  }
1180
1180
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1199,12 +1199,12 @@ async function runUpdateCommand(options, dependencies = {}) {
1199
1199
  stderr.write(
1200
1200
  `Deepline SDK/CLI update completed, but the optional local agent-skills refresh failed. Your CLI update succeeded; this does not affect authentication, data, billing, or the command result.
1201
1201
  Skills refresh detail: ${detail}
1202
- To retry with full installer output, run: deepline skills --json
1202
+ To retry with full installer output, run: deepline skills
1203
1203
  `
1204
1204
  );
1205
1205
  }
1206
1206
  if (options.executeWithJson && options.json) {
1207
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
1207
+ _chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
1208
1208
  {
1209
1209
  ok: true,
1210
1210
  pinnedVersion
@@ -1232,7 +1232,7 @@ Notes:
1232
1232
  Examples:
1233
1233
  deepline update
1234
1234
  deepline update --print-command
1235
- deepline update --json
1235
+ deepline update
1236
1236
  `
1237
1237
  ).option("--print-command", "Print the update command without running it").option("--json", "Emit the resolved update plan as JSON").action(async (options) => {
1238
1238
  process.exitCode = await runUpdateCommand(options);
@@ -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 _chunkKGZRUGL7js = require('./chunk-KGZRUGL7.js');
3
+ var _chunk44SHFHA3js = require('./chunk-44SHFHA3.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkERMXQOIVjs = require('./chunk-ERMXQOIV.js');
7
+ var _chunkBO3ADIBVjs = require('./chunk-BO3ADIBV.js');
8
8
 
9
9
 
10
10
 
11
- var _chunk2AENFV3Bjs = require('./chunk-2AENFV3B.js');
11
+ var _chunkA7X7KFXXjs = require('./chunk-A7X7KFXX.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, _chunk2AENFV3Bjs.sdkCliStateDirPath.call(void 0, _chunk2AENFV3Bjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
21
+ return _path.join.call(void 0, _chunkA7X7KFXXjs.sdkCliStateDirPath.call(void 0, _chunkA7X7KFXXjs.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 _chunkERMXQOIVjs.renderCommandEnvelopeText.call(void 0, result);
262
+ return _chunkBO3ADIBVjs.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
- ${_chunkERMXQOIVjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
286
+ ${_chunkBO3ADIBVjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
287
287
  const notes = rows.flatMap(
288
288
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
289
289
  );
@@ -292,7 +292,7 @@ ${_chunkERMXQOIVjs.renderCommandEnvelopeText.call(void 0, { render: remaining })
292
292
  ...rows.some((row) => row.cost.endsWith("*")) ? [
293
293
  "* Additional pricing conditions apply; see full pricing before execution."
294
294
  ] : [],
295
- "Full descriptions and pricing: deepline tools describe <toolId> or search --json."
295
+ "Full descriptions and pricing: deepline describe <toolId>."
296
296
  ].join("\n");
297
297
  return `${title}
298
298
 
@@ -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, _chunkKGZRUGL7js.DeeplineClient)().search({
363
+ const { search_ref: searchRef, ...result } = await new (0, _chunk44SHFHA3js.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
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0, result, {
377
+ _chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, result, {
378
378
  json: options.json === true,
379
379
  text: renderSearchResults(result)
380
380
  });
@@ -428,7 +428,7 @@ Notes:
428
428
  sentence is what ranks the results. Omit it only when --categories and/or
429
429
  --search_terms is supplied. Use --limit and --offset to page (limit 1-50,
430
430
  offset zero-based); JSON includes next_offset.
431
- Search prints a readable result list by default, piped or not, and that is
431
+ Search prints a readable result list by default, and that is
432
432
  the recommended form. Pass --json only when a program parses the result.
433
433
  Readable prices are Deepline credits with a per-row unit. Estimates and
434
434
  observed historical charges are labelled; usage-based prices are not quotes.
@@ -3,7 +3,7 @@ import {
3
3
  detectAgentRuntime,
4
4
  resolveCliCommandContext,
5
5
  resolveConfig
6
- } from "./chunk-5IXQ6VP4.mjs";
6
+ } from "./chunk-KKRRIFR3.mjs";
7
7
  import {
8
8
  DeeplineError
9
9
  } from "./chunk-NXGCO4JB.mjs";
@@ -60,7 +60,7 @@ function parseJsonFields(args, surface) {
60
60
  const command = surface === "get" ? "runs get" : `plays ${surface}`;
61
61
  const quotedTarget = `'${target.replace(/'/g, "'\\''")}'`;
62
62
  throw new DeeplineError(
63
- `--json diagnostics requires --full. For inspection, use: deepline ${surface === "run" ? "runs get <run-id>" : `${command} ${quotedTarget}`} --full --json ${path}`,
63
+ `--json diagnostics requires --full. For inspection, use: deepline ${surface === "run" ? "runs get <run-id>" : `${command} ${quotedTarget}`} --full`,
64
64
  void 0,
65
65
  "INVALID_ARGUMENT"
66
66
  );
@@ -903,7 +903,7 @@ function printJsonError(error) {
903
903
  printJson(errorToJsonPayload(error));
904
904
  }
905
905
  function shouldEmitJson(explicitJson = false) {
906
- return explicitJson || !process.stdout.isTTY;
906
+ return explicitJson || process.argv.includes("--json");
907
907
  }
908
908
  function argsWantJson(args) {
909
909
  return shouldEmitJson(args.includes("--json"));