deepline 0.3.370 → 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 (119) 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/http-error-response.ts +18 -18
  9. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +1 -1
  10. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +2 -2
  11. package/dist/bundling-sources/shared_libs/play-runtime/dataset-lifecycle-log.ts +1 -1
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +1 -1
  13. package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +34 -9
  14. package/dist/cli/auth-DQVK3ZI6.js +33 -0
  15. package/dist/cli/{auth-RIH4S7NC.mjs → auth-LCSEXQA2.mjs} +4 -4
  16. package/dist/cli/{billing-Q65H5GJM.js → billing-KISDL67A.js} +148 -148
  17. package/dist/cli/{billing-ERNGN6WK.mjs → billing-Z7PLJC5C.mjs} +79 -79
  18. package/dist/cli/{chunk-MX53GIOB.js → chunk-2JRRXXTA.js} +2 -2
  19. package/dist/cli/{chunk-BKHNCIQD.mjs → chunk-2L6LBJVC.mjs} +193 -187
  20. package/dist/cli/{chunk-IDBLJSLL.mjs → chunk-3FTYFVYN.mjs} +5 -5
  21. package/dist/cli/{chunk-Z6B4UPM4.mjs → chunk-3GK3SH3G.mjs} +2 -2
  22. package/dist/cli/{chunk-4Y5UDYQK.js → chunk-44SHFHA3.js} +17 -17
  23. package/dist/cli/{chunk-RLXMRC6P.mjs → chunk-46JCJ7FT.mjs} +49 -96
  24. package/dist/cli/{chunk-XTKVXHGD.js → chunk-5BCVKWLV.js} +17 -17
  25. package/dist/cli/{chunk-A5RFERJQ.mjs → chunk-5S525TQV.mjs} +2 -2
  26. package/dist/cli/{chunk-WQZ22EQU.js → chunk-5Z7JFUNX.js} +26 -26
  27. package/dist/cli/{chunk-T64NZ2A7.mjs → chunk-73NIXYKH.mjs} +46 -47
  28. package/dist/cli/{chunk-SFI7U6CA.js → chunk-A7X7KFXX.js} +4 -4
  29. package/dist/cli/{chunk-YQMUTC2H.mjs → chunk-AIZKDTFF.mjs} +11 -11
  30. package/dist/cli/{chunk-MKFHZDBO.js → chunk-BO3ADIBV.js} +8 -8
  31. package/dist/cli/{chunk-NHB3UWTZ.js → chunk-C3IPN4E6.js} +17 -17
  32. package/dist/cli/{chunk-A4OX52RV.js → chunk-C553OZGG.js} +10 -10
  33. package/dist/cli/{chunk-GGRVNAOH.mjs → chunk-DOXAN2I7.mjs} +3 -3
  34. package/dist/cli/{chunk-YEEESF2T.js → chunk-DPVBWLBF.js} +419 -413
  35. package/dist/cli/{chunk-R7AAYFDQ.js → chunk-DQMTJXLK.js} +102 -103
  36. package/dist/cli/{chunk-NXDRDJ4K.js → chunk-E5UD3JDQ.js} +3 -1
  37. package/dist/cli/{chunk-LNEBKWXM.mjs → chunk-IWY7T6MR.mjs} +1 -1
  38. package/dist/cli/{chunk-MIMASXO4.mjs → chunk-JB6ERQUV.mjs} +3 -1
  39. package/dist/cli/{chunk-CTMA3C3N.js → chunk-JSK6GUY6.js} +49 -96
  40. package/dist/cli/{chunk-H4IQJRFC.mjs → chunk-KBJO7HIF.mjs} +9 -9
  41. package/dist/cli/{chunk-HHH4MPFY.mjs → chunk-KGRAQ4OR.mjs} +6 -6
  42. package/dist/cli/{chunk-LJWOPNJJ.mjs → chunk-KKRRIFR3.mjs} +1 -1
  43. package/dist/cli/{chunk-DFJDVQMH.js → chunk-N34UX4TW.js} +2 -2
  44. package/dist/cli/{chunk-666HPUIZ.js → chunk-NMDNUOVI.js} +1 -6
  45. package/dist/cli/{chunk-5DUTNG37.mjs → chunk-SEDS6ZVR.mjs} +10 -10
  46. package/dist/cli/{chunk-BGXG3GEI.mjs → chunk-SENW5J4O.mjs} +5 -5
  47. package/dist/cli/{chunk-Y2B56VN7.js → chunk-TT2YWFYW.js} +53 -53
  48. package/dist/cli/{chunk-A6DJC2RC.js → chunk-YENBXYUH.js} +68 -68
  49. package/dist/cli/{chunk-NEY2M4EZ.mjs → chunk-YYFLULK7.mjs} +1 -6
  50. package/dist/cli/client-JFSRNUVD.js +20 -0
  51. package/dist/cli/{client-QXOERIFI.mjs → client-Z3Z5EDDJ.mjs} +3 -3
  52. package/dist/cli/command-docs.js +2 -2
  53. package/dist/cli/command-docs.mjs +1 -1
  54. package/dist/cli/{csv-V7UKQ7AC.mjs → csv-TEVHLGGA.mjs} +3 -3
  55. package/dist/cli/{csv-ZKIUSDIV.js → csv-XGFXV7JE.js} +12 -12
  56. package/dist/cli/{db-GWKRVHKS.js → db-LLZJ7UH5.js} +42 -43
  57. package/dist/cli/{db-QQ4BYMPY.mjs → db-OB7PMWSZ.mjs} +17 -18
  58. package/dist/cli/{describe-XMWXEFMS.mjs → describe-GZIRANUZ.mjs} +12 -12
  59. package/dist/cli/{describe-3AJI2BOS.js → describe-NWU7LI3I.js} +28 -28
  60. package/dist/cli/{executions-2IMCCV34.js → executions-64YZGSOW.js} +6 -6
  61. package/dist/cli/{executions-QV7UE5YG.mjs → executions-7UZ3ZGJ3.mjs} +4 -4
  62. package/dist/cli/{feedback-K6WNXZDB.mjs → feedback-2WRQRW3U.mjs} +8 -8
  63. package/dist/cli/{feedback-7SSJ7VPF.js → feedback-MN5CXULH.js} +12 -12
  64. package/dist/cli/{git-UOE2K2XQ.mjs → git-BPYVLLTY.mjs} +4 -4
  65. package/dist/cli/git-TJIPVSAE.js +23 -0
  66. package/dist/cli/index.js +98 -109
  67. package/dist/cli/index.mjs +46 -57
  68. package/dist/cli/{legacy-noops-GC43OSXL.js → legacy-noops-VMXJPLMW.js} +9 -9
  69. package/dist/cli/{legacy-noops-SOYPIA2X.mjs → legacy-noops-ZRPWEPX6.mjs} +6 -6
  70. package/dist/cli/{monitors-FLCGMXVH.mjs → monitors-5BRTBL7E.mjs} +59 -59
  71. package/dist/cli/{monitors-AXANB6WK.js → monitors-OQSI2VOL.js} +140 -140
  72. package/dist/cli/{org-MXD4BTQI.js → org-F5QS3HG4.js} +88 -87
  73. package/dist/cli/{org-Q7EDNZMN.mjs → org-SMZ7AGR3.mjs} +28 -27
  74. package/dist/cli/{play-TZROCF7E.mjs → play-CJZNLQL7.mjs} +10 -8
  75. package/dist/cli/play-K7HE4LBB.js +155 -0
  76. package/dist/cli/{providers-JEY4FTWG.mjs → providers-CBWXJRDG.mjs} +7 -7
  77. package/dist/cli/{providers-LOS4MHAG.js → providers-SH2HYOVR.js} +10 -10
  78. package/dist/cli/{quickstart-WO5KVVER.mjs → quickstart-342ENF6Q.mjs} +4 -4
  79. package/dist/cli/{quickstart-27UQGHEH.js → quickstart-B6EL7WDG.js} +6 -6
  80. package/dist/cli/{search-LZHWXC2C.mjs → search-E7DKH3SI.mjs} +5 -5
  81. package/dist/cli/search-SEEYCQED.js +26 -0
  82. package/dist/cli/{secrets-AVJGZABR.mjs → secrets-FSYIPRVS.mjs} +5 -5
  83. package/dist/cli/{secrets-PE7P4L7N.js → secrets-M2AW5RGE.js} +14 -14
  84. package/dist/cli/{sessions-I6UDBN7M.js → sessions-AFE4C3FQ.js} +5 -5
  85. package/dist/cli/{sessions-ZDSZTYZV.mjs → sessions-DJPGWPNA.mjs} +4 -4
  86. package/dist/cli/{settings-SPWH3FET.mjs → settings-KLN2A3PQ.mjs} +10 -10
  87. package/dist/cli/{settings-3SLMJHJ2.js → settings-VUWBNATC.js} +77 -77
  88. package/dist/cli/{setup-Q3CJ4T2Q.mjs → setup-BE6N5YV6.mjs} +15 -15
  89. package/dist/cli/{setup-R4LUWQE4.js → setup-I5IMTQCX.js} +50 -50
  90. package/dist/cli/skills-7XH5GMZB.js +28 -0
  91. package/dist/cli/{skills-FGXH432G.mjs → skills-GSNPQDUG.mjs} +4 -4
  92. package/dist/cli/tools-JCL4ABAF.js +40 -0
  93. package/dist/cli/{tools-O7C6PFF2.mjs → tools-ORCGHV4P.mjs} +8 -8
  94. package/dist/cli/{update-PPCQV3CD.mjs → update-UXEUWVWS.mjs} +6 -6
  95. package/dist/cli/update-YNZOS77Z.js +28 -0
  96. package/dist/cli/{workflow-Z2KYQ2JE.mjs → workflow-JBQY7JJN.mjs} +7 -7
  97. package/dist/cli/{workflow-ALKU4ZFD.js → workflow-R7SDICTU.js} +17 -17
  98. package/dist/{client-CjHv4K6D.d.mts → client-CZFMQEgO.d.mts} +6 -6
  99. package/dist/{client-rTuhNN-x.d.ts → client-CgSwpnb-.d.ts} +6 -6
  100. package/dist/index.d.mts +2 -2
  101. package/dist/index.d.ts +2 -2
  102. package/dist/index.js +15 -15
  103. package/dist/index.mjs +4 -4
  104. package/dist/install-integrity.json +82 -82
  105. package/dist/plays/run-request.d.mts +1 -1
  106. package/dist/plays/run-request.d.ts +1 -1
  107. package/dist/release.d.mts +1 -5
  108. package/dist/release.d.ts +1 -5
  109. package/dist/release.js +2 -2
  110. package/dist/release.mjs +1 -1
  111. package/package.json +1 -1
  112. package/dist/cli/auth-DD3PVIRQ.js +0 -33
  113. package/dist/cli/client-DNAFHKWV.js +0 -20
  114. package/dist/cli/git-EBSF3254.js +0 -23
  115. package/dist/cli/play-YWQXVOBT.js +0 -153
  116. package/dist/cli/search-OQ3OEFUA.js +0 -26
  117. package/dist/cli/skills-IDXBBOUW.js +0 -28
  118. package/dist/cli/tools-WHLD4Y4O.js +0 -40
  119. package/dist/cli/update-K6HE3XKO.js +0 -28
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-GGRVNAOH.mjs";
4
+ } from "./chunk-DOXAN2I7.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-LJWOPNJJ.mjs";
7
+ } from "./chunk-KKRRIFR3.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -702,8 +702,8 @@ Notes:
702
702
  or file to Deepline. render writes a local HTML viewer.
703
703
 
704
704
  Examples:
705
- deepline sessions send --current-session --json
706
- deepline sessions send --agent codex --current-session --json
705
+ deepline sessions send --current-session
706
+ deepline sessions send --agent codex --current-session
707
707
  deepline sessions send --session-id 5a3bfb97-a2d9-49d9-82c6-52ccc03dadca
708
708
  deepline sessions render --current-session --output session.html
709
709
  `
@@ -715,11 +715,11 @@ function registerSessionSendRenderCommands(parent, familyName) {
715
715
  "after",
716
716
  `
717
717
  Examples:
718
- deepline ${familyName} send --current-session --json
719
- deepline ${familyName} send --agent codex --current-session --json
718
+ deepline ${familyName} send --current-session
719
+ deepline ${familyName} send --agent codex --current-session
720
720
  deepline ${familyName} send --session-id 5a3bfb97-a2d9-49d9-82c6-52ccc03dadca --label "pilot run"
721
- deepline ${familyName} send --current-session --rating poor --json # tag the session as one that went poorly
722
- deepline ${familyName} send --file ./debug.log --json
721
+ deepline ${familyName} send --current-session --rating poor # tag the session as one that went poorly
722
+ deepline ${familyName} send --file ./debug.log
723
723
  `
724
724
  ).option(
725
725
  "--session-id <uuid>",
@@ -741,7 +741,7 @@ Examples:
741
741
  ).option("--file <path>", "Upload a raw local file instead of a session").option(
742
742
  "--rating <good|poor|neutral>",
743
743
  "Tag the upload by outcome, not tone, so Deepline can filter sessions: good = the user's goal was met without product problems; poor = the goal was missed, or a product failure, bug, or avoidable friction (including a substantial workaround) got in the way; neutral = partly met or unclear."
744
- ).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleSessionsSend);
744
+ ).option("--json", "Emit JSON output").action(handleSessionsSend);
745
745
  parent.command("render").description("Render local session transcript(s) to an HTML viewer.").addHelpText(
746
746
  "after",
747
747
  `
@@ -749,7 +749,7 @@ Examples:
749
749
  deepline ${familyName} render --current-session
750
750
  deepline ${familyName} render --agent codex --current-session
751
751
  deepline ${familyName} render --session-id 5a3bfb97-a2d9-49d9-82c6-52ccc03dadca --output session.html
752
- deepline ${familyName} render --current-session --auto-refresh 5 --json
752
+ deepline ${familyName} render --current-session --auto-refresh 5
753
753
  `
754
754
  ).option(
755
755
  "--session-id <uuid>",
@@ -768,7 +768,7 @@ Examples:
768
768
  ).option(
769
769
  "--current-session",
770
770
  "Use the calling agent's session, else the newest in this directory"
771
- ).option("--auto-refresh <seconds>", "Add a browser auto-refresh interval").option("-o, --output <path>", "Output HTML path").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleSessionsRender);
771
+ ).option("--auto-refresh <seconds>", "Add a browser auto-refresh interval").option("-o, --output <path>", "Output HTML path").option("--json", "Emit JSON output").action(handleSessionsRender);
772
772
  }
773
773
 
774
774
  export {
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkSFI7U6CAjs = require('./chunk-SFI7U6CA.js');
6
+ var _chunkA7X7KFXXjs = require('./chunk-A7X7KFXX.js');
7
7
 
8
8
 
9
9
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -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 (0, _chunk7P5AA3SNjs.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
  );
@@ -225,8 +225,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
225
225
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
226
226
  var defaultBrowserCommandRunner = childProcess;
227
227
  function getAuthedHttpClient() {
228
- const config = _chunkSFI7U6CAjs.resolveConfig.call(void 0, );
229
- return { config, http: new (0, _chunkSFI7U6CAjs.HttpClient)(config) };
228
+ const config = _chunkA7X7KFXXjs.resolveConfig.call(void 0, );
229
+ return { config, http: new (0, _chunkA7X7KFXXjs.HttpClient)(config) };
230
230
  }
231
231
  function stableOsUserId() {
232
232
  try {
@@ -566,7 +566,7 @@ function collectLocalEnvInfo() {
566
566
  os: `${process.platform} ${process.arch}`,
567
567
  node_version: process.version,
568
568
  home_dir: homeDir,
569
- agent_runtime: _chunkSFI7U6CAjs.detectAgentRuntime.call(void 0, )
569
+ agent_runtime: _chunkA7X7KFXXjs.detectAgentRuntime.call(void 0, )
570
570
  };
571
571
  const env = process.env;
572
572
  const optional = {
@@ -813,9 +813,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
813
813
  }
814
814
  function withAgentCommandContext(value) {
815
815
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
816
- return _chunkSFI7U6CAjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
816
+ return _chunkA7X7KFXXjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
817
817
  ...valueRecord,
818
- command_context: _chunkSFI7U6CAjs.resolveCliCommandContext.call(void 0, )
818
+ command_context: _chunkA7X7KFXXjs.resolveCliCommandContext.call(void 0, )
819
819
  } : value;
820
820
  }
821
821
  function printJson(value, fields) {
@@ -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"));
@@ -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 _chunkDFJDVQMHjs = require('./chunk-DFJDVQMH.js');
4
+ var _chunkN34UX4TWjs = require('./chunk-N34UX4TW.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkA6DJC2RCjs = require('./chunk-A6DJC2RC.js');
8
+ var _chunkYENBXYUHjs = require('./chunk-YENBXYUH.js');
9
9
 
10
10
 
11
- var _chunkMKFHZDBOjs = require('./chunk-MKFHZDBO.js');
11
+ var _chunkBO3ADIBVjs = require('./chunk-BO3ADIBV.js');
12
12
 
13
13
 
14
- var _chunkSFI7U6CAjs = require('./chunk-SFI7U6CA.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 = _chunkA6DJC2RCjs.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 ? _chunkDFJDVQMHjs.readNpmVersion.call(void 0, env) : options.npmVersion;
549
- const npmGlobalInstallFlags = _chunkDFJDVQMHjs.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()]) || _chunkSFI7U6CAjs.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 = _chunkA6DJC2RCjs.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, () => ( _chunkSFI7U6CAjs.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 _chunkA6DJC2RCjs.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
- _chunkMKFHZDBOjs.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
- _chunkMKFHZDBOjs.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
- _chunkMKFHZDBOjs.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
- _chunkMKFHZDBOjs.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 _chunk4Y5UDYQKjs = require('./chunk-4Y5UDYQK.js');
3
+ var _chunk44SHFHA3js = require('./chunk-44SHFHA3.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkMKFHZDBOjs = require('./chunk-MKFHZDBO.js');
7
+ var _chunkBO3ADIBVjs = require('./chunk-BO3ADIBV.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkSFI7U6CAjs = require('./chunk-SFI7U6CA.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, _chunkSFI7U6CAjs.sdkCliStateDirPath.call(void 0, _chunkSFI7U6CAjs.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 _chunkMKFHZDBOjs.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
- ${_chunkMKFHZDBOjs.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 @@ ${_chunkMKFHZDBOjs.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, _chunk4Y5UDYQKjs.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
- _chunkMKFHZDBOjs.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-LJWOPNJJ.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"));