deepline 0.3.413 → 0.3.414

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 (95) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/auth-5A3Z4LNL.js +40 -0
  3. package/dist/cli/{auth-3D4KKBVE.mjs → auth-5QG4TOA6.mjs} +4 -4
  4. package/dist/cli/{billing-2EOBIABD.mjs → billing-JV3HCOMG.mjs} +4 -4
  5. package/dist/cli/{billing-EJQFNJSI.js → billing-W7YO6VXH.js} +73 -73
  6. package/dist/cli/{chunk-4GEA7QZY.mjs → chunk-3PBK7PHE.mjs} +1 -1
  7. package/dist/cli/{chunk-ZDY367QD.js → chunk-4CPRZPRQ.js} +6 -6
  8. package/dist/cli/{chunk-YCPKC54Z.mjs → chunk-5S4QRLRC.mjs} +2 -2
  9. package/dist/cli/{chunk-ID4QO6ME.js → chunk-BXWLG55T.js} +52 -52
  10. package/dist/cli/{chunk-VHBCEFS7.mjs → chunk-EFD5CW26.mjs} +1 -1
  11. package/dist/cli/{chunk-NCWUFF6U.js → chunk-EWDWMTTD.js} +1 -1
  12. package/dist/cli/{chunk-WDQYMXDK.mjs → chunk-H5GTXEGI.mjs} +4 -4
  13. package/dist/cli/{chunk-Y3MHIAMV.mjs → chunk-HSYVA2JK.mjs} +2 -2
  14. package/dist/cli/{chunk-GNDHF3ZI.js → chunk-J2GD6PDT.js} +50 -50
  15. package/dist/cli/{chunk-EGZUJT3T.js → chunk-JR4FDOWR.js} +29 -22
  16. package/dist/cli/{chunk-V5L3WCSG.mjs → chunk-L3DLOICI.mjs} +3 -3
  17. package/dist/cli/{chunk-D65C5V3L.mjs → chunk-LI2LTEO4.mjs} +2 -2
  18. package/dist/cli/{chunk-OT5HUMKM.mjs → chunk-M2V34XOG.mjs} +5 -5
  19. package/dist/cli/{chunk-PDW33FLZ.mjs → chunk-MALNVMG6.mjs} +1 -1
  20. package/dist/cli/{chunk-5PE74ZQ4.js → chunk-MH6H63HF.js} +35 -35
  21. package/dist/cli/{chunk-QR4SD7RI.js → chunk-N3EF5WQV.js} +10 -10
  22. package/dist/cli/{chunk-HCBTS7KU.mjs → chunk-NOGPMTF5.mjs} +8 -8
  23. package/dist/cli/{chunk-2T2JTZT2.js → chunk-ODA4AZM3.js} +79 -79
  24. package/dist/cli/{chunk-7GGLDFIU.js → chunk-OEHMER3F.js} +16 -16
  25. package/dist/cli/{chunk-ZGVFEBX7.mjs → chunk-OKKLH4QY.mjs} +2 -2
  26. package/dist/cli/{chunk-HNL6FVEL.js → chunk-PK55NFM5.js} +2 -2
  27. package/dist/cli/{chunk-YAM52S2K.js → chunk-QVBVSC3M.js} +8 -8
  28. package/dist/cli/{chunk-VZ57YWB6.mjs → chunk-QWLGBYTB.mjs} +1 -1
  29. package/dist/cli/{chunk-JXNCP2M5.js → chunk-RHOY4RXI.js} +26 -26
  30. package/dist/cli/{chunk-GH4FIWEU.mjs → chunk-RYWFCSGX.mjs} +1 -1
  31. package/dist/cli/{chunk-OXUDZTF3.mjs → chunk-S6ZBXS7N.mjs} +1 -1
  32. package/dist/cli/{chunk-VTL3NDUG.mjs → chunk-UGQLBLSZ.mjs} +24 -17
  33. package/dist/cli/{chunk-KSJS5F57.js → chunk-URBOSCO6.js} +20 -20
  34. package/dist/cli/{chunk-X5FXFSHJ.js → chunk-VJRAFJ6H.js} +2 -2
  35. package/dist/cli/{chunk-CUY5U4QK.mjs → chunk-VOTKMPYY.mjs} +3 -3
  36. package/dist/cli/{chunk-REVPPQFK.js → chunk-XPOIHVTN.js} +6 -6
  37. package/dist/cli/{chunk-LF5WZGBG.js → chunk-ZEQ3N6SI.js} +4 -4
  38. package/dist/cli/{csv-FVLNH7XW.js → csv-EO2L4TEE.js} +12 -12
  39. package/dist/cli/{csv-3GKD6ODW.mjs → csv-HH5HBH2J.mjs} +3 -3
  40. package/dist/cli/{db-YBLULEQY.js → db-MUXVX2BC.js} +25 -25
  41. package/dist/cli/{db-TFECIZXA.mjs → db-Y7CREGF3.mjs} +4 -4
  42. package/dist/cli/{describe-4CGSYQ6N.mjs → describe-4P76LT4U.mjs} +12 -12
  43. package/dist/cli/{describe-Y4XESTCE.js → describe-66HDJGQI.js} +16 -16
  44. package/dist/cli/{executions-F7S72KOK.js → executions-HKGTLNX5.js} +6 -6
  45. package/dist/cli/{executions-GSXZKYBA.mjs → executions-SOEK54UR.mjs} +4 -4
  46. package/dist/cli/{feedback-PMCZCNOK.mjs → feedback-NX64K5CR.mjs} +3 -3
  47. package/dist/cli/{feedback-GCCC2YTL.js → feedback-TLABM3DG.js} +7 -7
  48. package/dist/cli/git-K55QWG6X.js +24 -0
  49. package/dist/cli/{git-RNPGVB5K.mjs → git-Y25E2ZJC.mjs} +4 -4
  50. package/dist/cli/index.js +131 -131
  51. package/dist/cli/index.mjs +36 -36
  52. package/dist/cli/{legacy-noops-J4CNOAAZ.js → legacy-noops-EXFCXCRK.js} +7 -7
  53. package/dist/cli/{legacy-noops-FNJK7BKV.mjs → legacy-noops-RRMXZZ4S.mjs} +4 -4
  54. package/dist/cli/{monitors-LZDR7Y5R.mjs → monitors-CCKCBND7.mjs} +4 -4
  55. package/dist/cli/{monitors-IRPUBNV3.js → monitors-FB75AVWA.js} +84 -84
  56. package/dist/cli/{org-CG5H5PYW.mjs → org-KDPXHQPC.mjs} +4 -4
  57. package/dist/cli/{org-GMQQV4B4.js → org-SQQG44XI.js} +64 -64
  58. package/dist/cli/{play-JGBMKAVZ.js → play-CSKSDDQS.js} +283 -283
  59. package/dist/cli/{play-AQJXC3UT.mjs → play-HPQEDJEP.mjs} +10 -10
  60. package/dist/cli/{providers-6W2LUEB2.js → providers-7FDWGH3C.js} +7 -7
  61. package/dist/cli/{providers-TU5QOBJL.mjs → providers-TFVCFP7J.mjs} +4 -4
  62. package/dist/cli/{quickstart-NIED5SQP.mjs → quickstart-2J67PING.mjs} +3 -3
  63. package/dist/cli/{quickstart-XO4LNJIB.js → quickstart-JQRTIIIZ.js} +5 -5
  64. package/dist/cli/{search-P322OCZS.mjs → search-7ZA7UIVM.mjs} +5 -5
  65. package/dist/cli/search-O3PYDXOZ.js +30 -0
  66. package/dist/cli/{secrets-5JX66PSU.js → secrets-J676GB6Q.js} +13 -13
  67. package/dist/cli/{secrets-36GD5ORQ.mjs → secrets-ZQY5GO4T.mjs} +4 -4
  68. package/dist/cli/{sessions-TRPCS2XC.js → sessions-AVICKLMK.js} +5 -5
  69. package/dist/cli/{sessions-EU5EGYQA.mjs → sessions-OP2352DC.mjs} +4 -4
  70. package/dist/cli/{settings-2GBXXYEC.js → settings-EWKNDCGF.js} +75 -75
  71. package/dist/cli/{settings-XZCFPMJK.mjs → settings-QNILCEH6.mjs} +8 -8
  72. package/dist/cli/{setup-62YVBUGJ.mjs → setup-4NDX6UAI.mjs} +7 -7
  73. package/dist/cli/{setup-3R62S2HC.js → setup-IHILOCOK.js} +42 -42
  74. package/dist/cli/{skills-GCRGKFZZ.mjs → skills-H73NL3VP.mjs} +5 -5
  75. package/dist/cli/skills-TDL7SEFT.js +29 -0
  76. package/dist/cli/tools-GPFPJWWA.js +44 -0
  77. package/dist/cli/{tools-PZ5BRPG4.mjs → tools-ZFPBY4Q2.mjs} +12 -12
  78. package/dist/cli/update-VR6EWUUT.js +31 -0
  79. package/dist/cli/{update-Y2VCL75Z.mjs → update-XULEC376.mjs} +7 -7
  80. package/dist/cli/{workflow-ZSV2DPQ3.js → workflow-JX4WSBYH.js} +15 -15
  81. package/dist/cli/{workflow-THUIMN33.mjs → workflow-OD5XZHCL.mjs} +5 -5
  82. package/dist/index.js +6 -6
  83. package/dist/index.mjs +3 -3
  84. package/dist/install-integrity.json +78 -78
  85. package/dist/release.d.mts +1 -1
  86. package/dist/release.d.ts +1 -1
  87. package/dist/release.js +2 -2
  88. package/dist/release.mjs +1 -1
  89. package/package.json +1 -1
  90. package/dist/cli/auth-5NDVMF4F.js +0 -40
  91. package/dist/cli/git-NOKHD2LT.js +0 -24
  92. package/dist/cli/search-46BMUNKI.js +0 -30
  93. package/dist/cli/skills-GVWVI3WO.js +0 -29
  94. package/dist/cli/tools-VFSX2OY3.js +0 -44
  95. package/dist/cli/update-KHJC44FI.js +0 -31
@@ -1,19 +1,19 @@
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 _chunkX5FXFSHJjs = require('./chunk-X5FXFSHJ.js');
4
+ var _chunkVJRAFJ6Hjs = require('./chunk-VJRAFJ6H.js');
5
5
 
6
6
 
7
- var _chunk5PE74ZQ4js = require('./chunk-5PE74ZQ4.js');
7
+ var _chunkMH6H63HFjs = require('./chunk-MH6H63HF.js');
8
8
 
9
9
 
10
- var _chunkID4QO6MEjs = require('./chunk-ID4QO6ME.js');
10
+ var _chunkBXWLG55Tjs = require('./chunk-BXWLG55T.js');
11
11
 
12
12
 
13
- var _chunkZDY367QDjs = require('./chunk-ZDY367QD.js');
13
+ var _chunk4CPRZPRQjs = require('./chunk-4CPRZPRQ.js');
14
14
 
15
15
 
16
- var _chunkLF5WZGBGjs = require('./chunk-LF5WZGBG.js');
16
+ var _chunkZEQ3N6SIjs = require('./chunk-ZEQ3N6SI.js');
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  var _child_process = require('child_process');
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
495
495
  }
496
496
  function resolveNpmGlobalPrefix(env) {
497
497
  try {
498
- const plan = _chunkID4QO6MEjs.resolveShellSpawn.call(void 0,
498
+ const plan = _chunkBXWLG55Tjs.resolveShellSpawn.call(void 0,
499
499
  "npm",
500
500
  ["prefix", "-g"],
501
501
  process.platform,
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
556
556
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
557
557
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
558
558
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
559
- const npmVersion = options.npmVersion === void 0 ? _chunkX5FXFSHJjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkX5FXFSHJjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
559
+ const npmVersion = options.npmVersion === void 0 ? _chunkVJRAFJ6Hjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunkVJRAFJ6Hjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
561
561
  const args = installPrefix ? [
562
562
  "install",
563
563
  "-g",
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
567
567
  packageSpec
568
568
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
569
569
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
570
- _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkLF5WZGBGjs.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkZEQ3N6SIjs.autoDetectBaseUrl.call(void 0, )
571
571
  );
572
572
  return {
573
573
  kind: "npm-global",
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
816
816
  function runCommand(command, args, env = process.env) {
817
817
  return new Promise((resolveResult) => {
818
818
  let output = "";
819
- const plan = _chunkID4QO6MEjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunkBXWLG55Tjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
820
820
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
821
821
  stdio: ["inherit", "pipe", "pipe"],
822
822
  shell: plan.shell,
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1199
1199
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1200
1200
  }
1201
1201
  async function runUpdateCommand(options, dependencies = {}) {
1202
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkLF5WZGBGjs.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkZEQ3N6SIjs.autoDetectBaseUrl));
1203
1203
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1204
1204
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1205
1205
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1206
1206
  const originalWrite = process.stdout.write.bind(process.stdout);
1207
1207
  process.stdout.write = (() => true);
1208
1208
  try {
1209
- const exitCode = await _chunk5PE74ZQ4js.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkMH6H63HFjs.runSkillsCommand.call(void 0, { json: true });
1210
1210
  if (exitCode !== 0) {
1211
1211
  throw new Error(
1212
1212
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1277
1277
  ]
1278
1278
  };
1279
1279
  if (options.json && !options.executeWithJson) {
1280
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
1284
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
1285
1285
  {
1286
1286
  ...plan,
1287
1287
  render: {
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1294
1294
  return 0;
1295
1295
  }
1296
1296
  if (plan.kind === "source" || plan.kind === "homebrew") {
1297
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1298
1298
  return 0;
1299
1299
  }
1300
1300
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills
1324
1324
  );
1325
1325
  }
1326
1326
  if (options.executeWithJson && options.json) {
1327
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
1327
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-4GEA7QZY.mjs";
5
+ } from "./chunk-3PBK7PHE.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-OXUDZTF3.mjs";
8
+ } from "./chunk-S6ZBXS7N.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(); } }
2
2
 
3
- var _chunkZDY367QDjs = require('./chunk-ZDY367QD.js');
3
+ var _chunk4CPRZPRQjs = require('./chunk-4CPRZPRQ.js');
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  var _commander = require('commander');
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
33
33
  sinceStartMs: now - cliTraceStartedAt,
34
34
  ...event
35
35
  };
36
- _chunkZDY367QDjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunk4CPRZPRQjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {
@@ -1,10 +1,10 @@
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 _chunkZDY367QDjs = require('./chunk-ZDY367QD.js');
4
+ var _chunk4CPRZPRQjs = require('./chunk-4CPRZPRQ.js');
5
5
 
6
6
 
7
- var _chunkLF5WZGBGjs = require('./chunk-LF5WZGBG.js');
7
+ var _chunkZEQ3N6SIjs = require('./chunk-ZEQ3N6SI.js');
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
 
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
139
139
  const newestFirst = listSessionFiles(agent).sort(
140
140
  (a, b) => b.mtimeMs - a.mtimeMs
141
141
  );
142
- const sessionId = _chunkLF5WZGBGjs.agentSessionIdFromEnvironment.call(void 0,
142
+ const sessionId = _chunkZEQ3N6SIjs.agentSessionIdFromEnvironment.call(void 0,
143
143
  process.env,
144
144
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
145
145
  );
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
451
451
  return { encodedContent: encoded, needsChunking: true };
452
452
  }
453
453
  async function uploadPayload(path, payload) {
454
- const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
454
+ const { http } = _chunk4CPRZPRQjs.getAuthedHttpClient.call(void 0, );
455
455
  return await http.post(path, payload);
456
456
  }
457
457
  async function uploadChunkedSessions(sessions, options) {
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
484
484
  ...options.rating ? { rating: options.rating } : {}
485
485
  });
486
486
  const sessionIds = sessions.map((session) => session.sessionId);
487
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
487
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
488
488
  {
489
489
  ...response,
490
490
  ok: true,
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
516
516
  filename: _path.basename.call(void 0, filePath),
517
517
  ...rating ? { rating } : {}
518
518
  });
519
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
519
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
520
520
  {
521
521
  ...response2,
522
522
  ok: true,
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
566
566
  ...rating ? { rating } : {}
567
567
  });
568
568
  const sessionIds = built.map((session) => session.sessionId);
569
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
569
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
570
570
  {
571
571
  ...response,
572
572
  ok: true,
@@ -674,7 +674,7 @@ ${refreshMeta}
674
674
  </body>
675
675
  </html>`;
676
676
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
677
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
677
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
678
678
  {
679
679
  ok: true,
680
680
  file: outputPath,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-CUY5U4QK.mjs";
3
+ } from "./chunk-VOTKMPYY.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkZDY367QDjs = require('./chunk-ZDY367QD.js');
5
+ var _chunk4CPRZPRQjs = require('./chunk-4CPRZPRQ.js');
6
6
 
7
7
 
8
- var _chunkLF5WZGBGjs = require('./chunk-LF5WZGBG.js');
8
+ var _chunkZEQ3N6SIjs = require('./chunk-ZEQ3N6SI.js');
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
32
32
  return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
33
33
  }
34
34
  async function handleList(options) {
35
- const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunk4CPRZPRQjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
39
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
40
40
  {
41
41
  projects: payload.projects,
42
42
  count: payload.projects.length,
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
73
73
  }
74
74
  }
75
75
  async function handleStatus(options) {
76
- const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunk4CPRZPRQjs.getAuthedHttpClient.call(void 0, );
77
77
  const payload = await http.get("/api/v2/github/installation");
78
78
  const installation = payload.installation;
79
79
  const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
@@ -136,7 +136,7 @@ async function handleStatus(options) {
136
136
  )
137
137
  );
138
138
  }
139
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
139
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
140
140
  {
141
141
  installation,
142
142
  installations: _nullishCoalesce(payload.installations, () => ( [])),
@@ -147,10 +147,10 @@ async function handleStatus(options) {
147
147
  );
148
148
  }
149
149
  async function handleRepos(options) {
150
- const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunk4CPRZPRQjs.getAuthedHttpClient.call(void 0, );
151
151
  const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
152
152
  const payload = await http.get(`/api/v2/github/repos${query}`);
153
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
153
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
154
154
  {
155
155
  installation: payload.installation,
156
156
  repositories: payload.repositories,
@@ -171,7 +171,7 @@ async function handleRepos(options) {
171
171
  }
172
172
  async function resolveRepoId(repo, installation) {
173
173
  if (/^\d+$/.test(repo)) return Number(repo);
174
- const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunk4CPRZPRQjs.getAuthedHttpClient.call(void 0, );
175
175
  const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
176
176
  const payload = await http.get(
177
177
  `/api/v2/github/repos${query}`
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
188
188
  }
189
189
  async function handleLink(repo, options) {
190
190
  const repoId = await resolveRepoId(repo, options.installation);
191
- const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunk4CPRZPRQjs.getAuthedHttpClient.call(void 0, );
192
192
  const payload = await http.post("/api/v2/play-projects", {
193
193
  repoId,
194
194
  ...options.installation !== void 0 ? { installationId: options.installation } : {},
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
197
197
  ...options.branch !== void 0 ? { productionBranch: options.branch } : {},
198
198
  ...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
199
199
  });
200
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
200
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
201
201
  {
202
202
  project: payload.project,
203
203
  render: {
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
220
220
  );
221
221
  }
222
222
  async function handleGet(id, options) {
223
- const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunk4CPRZPRQjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
227
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
228
228
  {
229
229
  project: payload.project,
230
230
  render: {
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
240
240
  );
241
241
  }
242
242
  async function handleSet(id, options) {
243
- const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunk4CPRZPRQjs.getAuthedHttpClient.call(void 0, );
244
244
  const payload = await http.patch(
245
245
  `/api/v2/play-projects/${encodeURIComponent(id)}`,
246
246
  {
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
251
251
  ...options.disabled !== void 0 ? { disabled: options.disabled } : {}
252
252
  }
253
253
  );
254
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
254
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
255
255
  {
256
256
  project: payload.project,
257
257
  render: {
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
264
264
  );
265
265
  }
266
266
  async function handleUnlink(id, options) {
267
- const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunk4CPRZPRQjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
269
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
270
270
  {
271
271
  ok: true,
272
272
  id,
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
286
286
  );
287
287
  }
288
288
  async function handleConnect(options) {
289
- const baseUrl = _chunkLF5WZGBGjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkZEQ3N6SIjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkZDY367QDjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunk4CPRZPRQjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
293
293
  {
294
294
  connectUrl,
295
295
  browser: opened,
@@ -311,7 +311,7 @@ async function handleConnect(options) {
311
311
  );
312
312
  }
313
313
  async function handleDeploymentsList(options) {
314
- const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunk4CPRZPRQjs.getAuthedHttpClient.call(void 0, );
315
315
  const query = new URLSearchParams();
316
316
  if (options.repo) query.set("projectId", options.repo);
317
317
  if (options.limit) query.set("limit", options.limit);
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
319
319
  const payload = await http.get(
320
320
  `/api/v2/deployments${suffix}`
321
321
  );
322
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
322
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  deployments: payload.deployments,
325
325
  count: payload.deployments.length,
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
363
363
  ]);
364
364
  }
365
365
  async function handleDeploymentGet(id, options) {
366
- const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunk4CPRZPRQjs.getAuthedHttpClient.call(void 0, );
367
367
  const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
368
368
  const playLines = renderDeploymentPlayLines(payload.deployment.results);
369
369
  const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
370
370
  const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
371
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
371
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
372
372
  {
373
373
  deployment: payload.deployment,
374
374
  project: payload.project,
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
387
387
  );
388
388
  }
389
389
  async function handleDeploymentCancel(id, options) {
390
- const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunk4CPRZPRQjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
392
+ _chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.413",
52
+ version: "0.3.414",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-E4IXDAZI.mjs";
18
18
  import {
19
19
  SDK_RELEASE
20
- } from "./chunk-GH4FIWEU.mjs";
20
+ } from "./chunk-RYWFCSGX.mjs";
21
21
 
22
22
  // src/config.ts
23
23
  import {
@@ -3,15 +3,15 @@ import {
3
3
  } from "./chunk-LJ5747UC.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-PDW33FLZ.mjs";
6
+ } from "./chunk-MALNVMG6.mjs";
7
7
  import {
8
8
  printCommandEnvelope,
9
9
  renderCommandEnvelopeText
10
- } from "./chunk-4GEA7QZY.mjs";
10
+ } from "./chunk-3PBK7PHE.mjs";
11
11
  import {
12
12
  resolveConfig,
13
13
  sdkCliStateDirPath
14
- } from "./chunk-OXUDZTF3.mjs";
14
+ } from "./chunk-S6ZBXS7N.mjs";
15
15
  import {
16
16
  __commonJS,
17
17
  __toESM
@@ -5835,6 +5835,12 @@ function failureRateDisplay(rate) {
5835
5835
  const percent = Math.round(rate * 100);
5836
5836
  return percent === 0 && rate > 0 ? "<1%" : `${percent}%`;
5837
5837
  }
5838
+ function latencyDisplay(ms) {
5839
+ if (typeof ms !== "number" || !Number.isFinite(ms)) return "\u2014";
5840
+ if (ms < 1e3) return `${Math.round(ms)}ms`;
5841
+ if (ms < 6e4) return `${(ms / 1e3).toFixed(ms < 1e4 ? 1 : 0)}s`;
5842
+ return `${(ms / 6e4).toFixed(1)}min`;
5843
+ }
5838
5844
  function searchRow(item) {
5839
5845
  const { cost, notes } = pricingDisplay(item);
5840
5846
  const observedMax = item.billingSource === "own_provider_credentials" ? "" : observedMaxText(item.pricing);
@@ -5853,10 +5859,17 @@ function searchRow(item) {
5853
5859
  // Production share of errored or rate-limited calls; absent when too few
5854
5860
  // calls or orgs used the tool to say.
5855
5861
  failureRate: failureRateDisplay(item.failureRate),
5862
+ // Production p95 latency of successful calls; absent for the same reason.
5863
+ p95: latencyDisplay(item.latencyP95Ms),
5856
5864
  summary: clipSummary(item.description ?? ""),
5857
5865
  notes
5858
5866
  };
5859
5867
  }
5868
+ var OPTIONAL_COLUMNS = [
5869
+ { header: "RATE LIMIT", key: "rateLimit" },
5870
+ { header: "FAILURES", key: "failureRate" },
5871
+ { header: "P95", key: "p95" }
5872
+ ];
5860
5873
  function renderSearchResults(result) {
5861
5874
  if (result.results.length === 0)
5862
5875
  return renderCommandEnvelopeText(result);
@@ -5867,20 +5880,14 @@ function renderSearchResults(result) {
5867
5880
  { header: onlyTools ? "TOOL" : "ID", value: (row) => row.id },
5868
5881
  ...!onlyTools ? [{ header: "KIND", value: (row) => row.kind }] : [],
5869
5882
  { header: "CREDITS", value: (row) => row.cost, alignment: "right" },
5870
- ...rows.some((row) => row.rateLimit !== "\u2014") ? [
5871
- {
5872
- header: "RATE LIMIT",
5873
- value: (row) => row.rateLimit,
5874
- alignment: "right"
5875
- }
5876
- ] : [],
5877
- ...rows.some((row) => row.failureRate !== "\u2014") ? [
5878
- {
5879
- header: "FAILURES",
5880
- value: (row) => row.failureRate,
5881
- alignment: "right"
5882
- }
5883
- ] : [],
5883
+ // Right-aligned figures that appear only when some row has one.
5884
+ ...OPTIONAL_COLUMNS.filter(
5885
+ ({ key }) => rows.some((row) => row[key] !== "\u2014")
5886
+ ).map(({ header, key }) => ({
5887
+ header,
5888
+ value: (row) => row[key],
5889
+ alignment: "right"
5890
+ })),
5884
5891
  { header: "SUMMARY", value: (row) => row.summary }
5885
5892
  ];
5886
5893
  const render = result.render;
@@ -4,18 +4,18 @@
4
4
 
5
5
 
6
6
 
7
- var _chunk7GGLDFIUjs = require('./chunk-7GGLDFIU.js');
7
+ var _chunkOEHMER3Fjs = require('./chunk-OEHMER3F.js');
8
8
 
9
9
 
10
- var _chunkID4QO6MEjs = require('./chunk-ID4QO6ME.js');
10
+ var _chunkBXWLG55Tjs = require('./chunk-BXWLG55T.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkZDY367QDjs = require('./chunk-ZDY367QD.js');
14
+ var _chunk4CPRZPRQjs = require('./chunk-4CPRZPRQ.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkLF5WZGBGjs = require('./chunk-LF5WZGBG.js');
18
+ var _chunkZEQ3N6SIjs = require('./chunk-ZEQ3N6SI.js');
19
19
 
20
20
  // src/cli/compatibility-catalog.ts
21
21
  var readers = /* @__PURE__ */ new WeakMap();
@@ -42,7 +42,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
42
42
  async function reportAutoUpdateEvent(input) {
43
43
  let apiKey = "";
44
44
  try {
45
- apiKey = _chunkLF5WZGBGjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
45
+ apiKey = _chunkZEQ3N6SIjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
46
46
  } catch (e2) {
47
47
  return;
48
48
  }
@@ -58,15 +58,15 @@ async function reportAutoUpdateEvent(input) {
58
58
  headers: {
59
59
  Authorization: `Bearer ${apiKey}`,
60
60
  "Content-Type": "application/json",
61
- "User-Agent": `deepline-ts-sdk/${_chunkLF5WZGBGjs.SDK_VERSION}`,
61
+ "User-Agent": `deepline-ts-sdk/${_chunkZEQ3N6SIjs.SDK_VERSION}`,
62
62
  "X-Deepline-Client-Family": "sdk",
63
63
  "X-Deepline-CLI-Family": "sdk",
64
- "X-Deepline-CLI-Version": _chunkLF5WZGBGjs.SDK_VERSION,
65
- "X-Deepline-SDK-Version": _chunkLF5WZGBGjs.SDK_VERSION
64
+ "X-Deepline-CLI-Version": _chunkZEQ3N6SIjs.SDK_VERSION,
65
+ "X-Deepline-SDK-Version": _chunkZEQ3N6SIjs.SDK_VERSION
66
66
  },
67
67
  body: JSON.stringify({
68
68
  event: input.event,
69
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkLF5WZGBGjs.SDK_VERSION,
69
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkZEQ3N6SIjs.SDK_VERSION,
70
70
  target_version: input.response.latest,
71
71
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
72
72
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -85,13 +85,13 @@ function envTruthy(name) {
85
85
  return value === "1" || value === "true" || value === "yes";
86
86
  }
87
87
  function shouldSkipSelfUpdate(policy) {
88
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk7GGLDFIUjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkID4QO6MEjs.isCiEnvironment.call(void 0, );
88
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkOEHMER3Fjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkBXWLG55Tjs.isCiEnvironment.call(void 0, );
89
89
  }
90
90
  function isDowngradeAutoUpdateResponse(response) {
91
91
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
92
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkLF5WZGBGjs.SDK_VERSION;
92
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkZEQ3N6SIjs.SDK_VERSION;
93
93
  if (!target) return false;
94
- return _chunk7GGLDFIUjs.compareUpdateVersions.call(void 0, target, current) < 0;
94
+ return _chunkOEHMER3Fjs.compareUpdateVersions.call(void 0, target, current) < 0;
95
95
  }
96
96
  function relaunchCurrentCommand(plan, runtime = {}) {
97
97
  return new Promise((resolve) => {
@@ -144,7 +144,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
144
144
  }
145
145
  if (isDowngradeAutoUpdateResponse(response)) {
146
146
  const target = response.latest;
147
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkLF5WZGBGjs.SDK_VERSION;
147
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkZEQ3N6SIjs.SDK_VERSION;
148
148
  process.stderr.write(
149
149
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
150
150
  `
@@ -152,21 +152,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
152
152
  return false;
153
153
  }
154
154
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
155
- const plan = _chunk7GGLDFIUjs.resolveUpdatePlan.call(void 0, {
155
+ const plan = _chunkOEHMER3Fjs.resolveUpdatePlan.call(void 0, {
156
156
  packageSpec,
157
157
  requireVerifiedNpmOwnership: true,
158
158
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
159
159
  });
160
- if (!_chunk7GGLDFIUjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
160
+ if (!_chunkOEHMER3Fjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
161
161
  return false;
162
162
  }
163
163
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
164
164
  deferredAutoUpdate = async () => {
165
165
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
166
166
  };
167
- if (_chunkZDY367QDjs.isJsonOutputMode.call(void 0, )) {
167
+ if (_chunk4CPRZPRQjs.isJsonOutputMode.call(void 0, )) {
168
168
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
169
- _chunkZDY367QDjs.addJsonNotice.call(void 0, {
169
+ _chunk4CPRZPRQjs.addJsonNotice.call(void 0, {
170
170
  code: "sdk_update_queued",
171
171
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
172
172
  });
@@ -179,7 +179,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
179
179
  return true;
180
180
  }
181
181
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
182
- if (!_chunk7GGLDFIUjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
182
+ if (!_chunkOEHMER3Fjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
183
183
  const autoUpdate = response.auto_update;
184
184
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
185
185
  process.stderr.write(
@@ -192,7 +192,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
192
192
  event: "started",
193
193
  installKind: plan.kind
194
194
  });
195
- const updateResult = await _chunk7GGLDFIUjs.runAutomaticUpdatePlan.call(void 0, plan);
195
+ const updateResult = await _chunkOEHMER3Fjs.runAutomaticUpdatePlan.call(void 0, plan);
196
196
  if (updateResult.status === "skipped_previous_failure") {
197
197
  void reportAutoUpdateEvent({
198
198
  baseUrl,
@@ -243,7 +243,7 @@ var _crypto = require('crypto');
243
243
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
244
244
  var activeToolExecuteCommand = null;
245
245
  function progressLine(line) {
246
- if (!_chunkZDY367QDjs.isJsonOutputMode.call(void 0, )) console.error(line);
246
+ if (!_chunk4CPRZPRQjs.isJsonOutputMode.call(void 0, )) console.error(line);
247
247
  }
248
248
  function beginToolExecuteCommand() {
249
249
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -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 _chunkID4QO6MEjs = require('./chunk-ID4QO6ME.js');
3
+ var _chunkBXWLG55Tjs = require('./chunk-BXWLG55T.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 = _chunkID4QO6MEjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkBXWLG55Tjs.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,