deepline 0.3.330 → 0.3.331

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 (94) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/security/safe-outbound-fetch.ts +10 -1
  3. package/dist/cli/{auth-A4XQ3KMW.mjs → auth-TVTO43JD.mjs} +4 -4
  4. package/dist/cli/auth-YYTF3NO4.js +31 -0
  5. package/dist/cli/{billing-634WZLKG.mjs → billing-FBZ5CCU7.mjs} +4 -4
  6. package/dist/cli/{billing-WLHXYC5Z.js → billing-Y4EX5FFA.js} +71 -71
  7. package/dist/cli/{chunk-GHHLLEZK.js → chunk-3AQ3L2NX.js} +4 -4
  8. package/dist/cli/{chunk-ZYPFCBW5.mjs → chunk-4JYLNJMD.mjs} +1 -1
  9. package/dist/cli/{chunk-PH2N6GC7.mjs → chunk-BXZN544J.mjs} +1 -1
  10. package/dist/cli/{chunk-LQ5DD2UF.mjs → chunk-CKAZY2JT.mjs} +2 -2
  11. package/dist/cli/{chunk-7DGZCMXQ.mjs → chunk-DU72PAVF.mjs} +1 -1
  12. package/dist/cli/{chunk-VFC6CZLF.mjs → chunk-EGRTGSNS.mjs} +3 -3
  13. package/dist/cli/{chunk-LNDGT7NV.js → chunk-ELDOV5XG.js} +45 -45
  14. package/dist/cli/{chunk-SDSS4OTO.mjs → chunk-HG5NWSN2.mjs} +6 -6
  15. package/dist/cli/{chunk-GKZZ32EV.js → chunk-KGZPY524.js} +60 -60
  16. package/dist/cli/{chunk-7FWHOKNS.js → chunk-KXWOO3GI.js} +26 -26
  17. package/dist/cli/{chunk-46IVSO6O.js → chunk-L4CJXV7D.js} +8 -8
  18. package/dist/cli/{chunk-XUNMVZOW.js → chunk-LFV2A7GB.js} +1 -1
  19. package/dist/cli/{chunk-63W4744F.js → chunk-MDQOGPQY.js} +225 -225
  20. package/dist/cli/{chunk-GS7GA7PI.js → chunk-NHR3O4OV.js} +15 -15
  21. package/dist/cli/{chunk-3QZ22IZO.mjs → chunk-O52SKQQT.mjs} +4 -4
  22. package/dist/cli/{chunk-56RM5AQF.mjs → chunk-PS5BFY2W.mjs} +5 -5
  23. package/dist/cli/{chunk-GTBS6LQH.mjs → chunk-QEI6SNAT.mjs} +1 -1
  24. package/dist/cli/{chunk-SZCUJ4AL.mjs → chunk-RI57LHLC.mjs} +1 -1
  25. package/dist/cli/{chunk-6VBXS43D.mjs → chunk-RRJ6AA5L.mjs} +2 -2
  26. package/dist/cli/{chunk-YFP4UH2Y.js → chunk-RX2WWVZ7.js} +6 -6
  27. package/dist/cli/{chunk-FLIABSY6.js → chunk-T7E5KIPE.js} +48 -48
  28. package/dist/cli/{chunk-MBI3BVSQ.mjs → chunk-VEP3POWB.mjs} +1 -1
  29. package/dist/cli/{chunk-WHKTRZ3J.js → chunk-XZG75ELG.js} +6 -6
  30. package/dist/cli/{chunk-O2L46S3I.js → chunk-YCYWPBRV.js} +2 -2
  31. package/dist/cli/{chunk-5W636CDP.mjs → chunk-YIYK57LW.mjs} +2 -2
  32. package/dist/cli/{chunk-YGFQ7YSM.js → chunk-ZGWURYZK.js} +9 -9
  33. package/dist/cli/client-46KHPTTQ.js +20 -0
  34. package/dist/cli/{client-WYFGEJOX.mjs → client-Q7J5R5PT.mjs} +3 -3
  35. package/dist/cli/{csv-BDZSDXLU.mjs → csv-RVG3V4YX.mjs} +3 -3
  36. package/dist/cli/{csv-THMQDXCJ.js → csv-WBEF4KIZ.js} +12 -12
  37. package/dist/cli/{db-5BQJOZG7.js → db-4SPPGSEV.js} +29 -29
  38. package/dist/cli/{db-R2LTNLFM.mjs → db-AVIQ5WHJ.mjs} +4 -4
  39. package/dist/cli/{describe-WECII7FS.mjs → describe-4UA6N4YX.mjs} +8 -8
  40. package/dist/cli/{describe-F4G5H3SC.js → describe-IQ3FOLGV.js} +15 -15
  41. package/dist/cli/{executions-HJRVD4M6.js → executions-3ZUK3YJB.js} +6 -6
  42. package/dist/cli/{executions-HPRIRB73.mjs → executions-VCULCPYR.mjs} +4 -4
  43. package/dist/cli/{feedback-GHGDH43D.js → feedback-7YKDOMWW.js} +6 -6
  44. package/dist/cli/{feedback-5VVW5WW7.mjs → feedback-SZLTZXWC.mjs} +3 -3
  45. package/dist/cli/git-DCZP3E3P.js +23 -0
  46. package/dist/cli/{git-BBXML2UJ.mjs → git-H4YS7TQW.mjs} +4 -4
  47. package/dist/cli/index.js +79 -79
  48. package/dist/cli/index.mjs +31 -31
  49. package/dist/cli/{legacy-noops-VNZZ3VVT.js → legacy-noops-GU7X3U2Y.js} +7 -7
  50. package/dist/cli/{legacy-noops-IALOUAGL.mjs → legacy-noops-K6U4YL3K.mjs} +4 -4
  51. package/dist/cli/{monitors-VDEB2FKS.mjs → monitors-2HHSSSDD.mjs} +4 -4
  52. package/dist/cli/{monitors-MLP6IA2R.js → monitors-IUEWN2VX.js} +85 -85
  53. package/dist/cli/{org-SDSSKY42.mjs → org-6NBBO7G3.mjs} +4 -4
  54. package/dist/cli/{org-N6ADDGEV.js → org-E5TYEFPX.js} +60 -60
  55. package/dist/cli/{play-VSTVY6PM.mjs → play-C2BQ4MJG.mjs} +7 -7
  56. package/dist/cli/play-MPDZPEYN.js +153 -0
  57. package/dist/cli/{providers-TJ42O6NN.js → providers-FM6LWHA4.js} +7 -7
  58. package/dist/cli/{providers-UKC7KD3W.mjs → providers-N2LG7Y3E.mjs} +4 -4
  59. package/dist/cli/{quickstart-WSKATNHJ.mjs → quickstart-GQQ6ODNU.mjs} +3 -3
  60. package/dist/cli/{quickstart-7S7NMCMX.js → quickstart-I4K6ZDU6.js} +5 -5
  61. package/dist/cli/search-6G6FUVTJ.js +26 -0
  62. package/dist/cli/{search-6OS6VVCJ.mjs → search-NKDQSOQ5.mjs} +5 -5
  63. package/dist/cli/{secrets-GWLYB2KD.js → secrets-BBI5NYLT.js} +13 -13
  64. package/dist/cli/{secrets-QTTR5R5M.mjs → secrets-FGKGASDL.mjs} +4 -4
  65. package/dist/cli/{sessions-Q7MY5YYI.mjs → sessions-7MWWKIUT.mjs} +4 -4
  66. package/dist/cli/{sessions-SUURWTVX.js → sessions-YUTDWUVR.js} +5 -5
  67. package/dist/cli/{settings-3D5YDD2B.mjs → settings-JGJWBESE.mjs} +7 -7
  68. package/dist/cli/{settings-W4DYMYFA.js → settings-U55P74SS.js} +74 -74
  69. package/dist/cli/{setup-5F5OGYKW.mjs → setup-7D577YQO.mjs} +6 -6
  70. package/dist/cli/{setup-NIUADTDP.js → setup-XYIDQ46U.js} +41 -41
  71. package/dist/cli/skills-PXHET5MG.js +28 -0
  72. package/dist/cli/{skills-TV3ORUIG.mjs → skills-Y6WBNBPF.mjs} +4 -4
  73. package/dist/cli/tools-BCSXPN5X.js +40 -0
  74. package/dist/cli/{tools-YSZWAFKO.mjs → tools-OPTIBRZP.mjs} +6 -6
  75. package/dist/cli/update-2NXG3NKT.js +28 -0
  76. package/dist/cli/{update-FJAMLGLT.mjs → update-HKJQ762M.mjs} +6 -6
  77. package/dist/cli/{workflow-HDHBYC7S.mjs → workflow-2ZOG35IA.mjs} +5 -5
  78. package/dist/cli/{workflow-C6ZCM5S4.js → workflow-EBIKBXXC.js} +15 -15
  79. package/dist/index.js +6 -6
  80. package/dist/index.mjs +3 -3
  81. package/dist/install-integrity.json +74 -74
  82. package/dist/release.d.mts +1 -1
  83. package/dist/release.d.ts +1 -1
  84. package/dist/release.js +2 -2
  85. package/dist/release.mjs +1 -1
  86. package/package.json +1 -1
  87. package/dist/cli/auth-XJJYQESF.js +0 -31
  88. package/dist/cli/client-3CREIHGC.js +0 -20
  89. package/dist/cli/git-NNEBLRVP.js +0 -23
  90. package/dist/cli/play-UTIPBVDQ.js +0 -153
  91. package/dist/cli/search-Y6UGKL5C.js +0 -26
  92. package/dist/cli/skills-SHUL5UT7.js +0 -28
  93. package/dist/cli/tools-GNIVV4OF.js +0 -40
  94. package/dist/cli/update-U3XGY6IT.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 _chunkO2L46S3Ijs = require('./chunk-O2L46S3I.js');
4
+ var _chunkYCYWPBRVjs = require('./chunk-YCYWPBRV.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkGKZZ32EVjs = require('./chunk-GKZZ32EV.js');
8
+ var _chunkKGZPY524js = require('./chunk-KGZPY524.js');
9
9
 
10
10
 
11
- var _chunkWHKTRZ3Jjs = require('./chunk-WHKTRZ3J.js');
11
+ var _chunkXZG75ELGjs = require('./chunk-XZG75ELG.js');
12
12
 
13
13
 
14
- var _chunkGHHLLEZKjs = require('./chunk-GHHLLEZK.js');
14
+ var _chunk3AQ3L2NXjs = require('./chunk-3AQ3L2NX.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 = _chunkGKZZ32EVjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
492
+ const plan = _chunkKGZPY524js.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 ? _chunkO2L46S3Ijs.readNpmVersion.call(void 0, env) : options.npmVersion;
549
- const npmGlobalInstallFlags = _chunkO2L46S3Ijs.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 ? _chunkYCYWPBRVjs.readNpmVersion.call(void 0, env) : options.npmVersion;
549
+ const npmGlobalInstallFlags = _chunkYCYWPBRVjs.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()]) || _chunkGHHLLEZKjs.autoDetectBaseUrl.call(void 0, )
559
+ _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunk3AQ3L2NXjs.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 = _chunkGKZZ32EVjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
706
+ const plan = _chunkKGZPY524js.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, () => ( _chunkGHHLLEZKjs.autoDetectBaseUrl));
1082
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk3AQ3L2NXjs.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 _chunkGKZZ32EVjs.runSkillsCommand.call(void 0, { json: true });
1089
+ const exitCode = await _chunkKGZPY524js.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
- _chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1160
+ _chunkXZG75ELGjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1161
1161
  return 0;
1162
1162
  }
1163
1163
  if (options.printCommand) {
1164
- _chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
1164
+ _chunkXZG75ELGjs.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
- _chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1177
+ _chunkXZG75ELGjs.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}
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills --json
1204
1204
  );
1205
1205
  }
1206
1206
  if (options.executeWithJson && options.json) {
1207
- _chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
1207
+ _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
1208
1208
  {
1209
1209
  ok: true,
1210
1210
  pinnedVersion
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-ZYPFCBW5.mjs";
4
+ } from "./chunk-4JYLNJMD.mjs";
5
5
  import {
6
6
  resolveShellSpawn,
7
7
  runSkillsCommand
8
- } from "./chunk-6VBXS43D.mjs";
8
+ } from "./chunk-RRJ6AA5L.mjs";
9
9
  import {
10
10
  printCommandEnvelope
11
- } from "./chunk-7DGZCMXQ.mjs";
11
+ } from "./chunk-DU72PAVF.mjs";
12
12
  import {
13
13
  autoDetectBaseUrl
14
- } from "./chunk-MBI3BVSQ.mjs";
14
+ } from "./chunk-VEP3POWB.mjs";
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  import { spawn, spawnSync } from "child_process";
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  recentSearchRef,
12
12
  registerDeprecatedSearchCommand
13
- } from "./chunk-VFC6CZLF.mjs";
13
+ } from "./chunk-EGRTGSNS.mjs";
14
14
  import {
15
15
  extractSummaryFields,
16
16
  projectRowOutput,
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  DeeplineClient,
24
24
  validateExecutionIdempotencyKey
25
- } from "./chunk-GTBS6LQH.mjs";
25
+ } from "./chunk-QEI6SNAT.mjs";
26
26
  import {
27
27
  beginToolExecuteCommand,
28
28
  getToolExecuteInvocationId,
@@ -36,11 +36,11 @@ import {
36
36
  printJsonError,
37
37
  renderCommandEnvelopeText,
38
38
  shouldEmitJson
39
- } from "./chunk-7DGZCMXQ.mjs";
39
+ } from "./chunk-DU72PAVF.mjs";
40
40
  import {
41
41
  resolveConfig,
42
42
  sdkCliStateDirPath
43
- } from "./chunk-MBI3BVSQ.mjs";
43
+ } from "./chunk-VEP3POWB.mjs";
44
44
  import {
45
45
  playToolListGetterMode
46
46
  } from "./chunk-NTVTZAVZ.mjs";
@@ -1029,7 +1029,7 @@ Examples:
1029
1029
  process.exitCode = await narrowView();
1030
1030
  return;
1031
1031
  }
1032
- const { describeAnything } = await import("./describe-WECII7FS.mjs");
1032
+ const { describeAnything } = await import("./describe-4UA6N4YX.mjs");
1033
1033
  process.exitCode = await describeAnything(
1034
1034
  toolId,
1035
1035
  { ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
@@ -15,7 +15,7 @@ import {
15
15
  RETAINED_PIPELINE_RECEIVERS_HEADER,
16
16
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
17
17
  resolveConfig
18
- } from "./chunk-MBI3BVSQ.mjs";
18
+ } from "./chunk-VEP3POWB.mjs";
19
19
  import {
20
20
  PLAY_RUNTIME_BACKENDS,
21
21
  RAW_V2_TOOL_RESPONSE_CONTRACT,
@@ -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.330",
52
+ version: "0.3.331",
53
53
  updateSummary: "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.",
54
54
  packageCapabilities: {
55
55
  updatePreferences: 1
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-GAMFK2ZP.mjs";
4
4
  import {
5
5
  printCommandEnvelope
6
- } from "./chunk-7DGZCMXQ.mjs";
6
+ } from "./chunk-DU72PAVF.mjs";
7
7
  import {
8
8
  DEFAULT_SKILL_AGENTS,
9
9
  KNOWN_SKILL_AGENTS,
@@ -22,7 +22,7 @@ import {
22
22
  sdkCliStateDirPath,
23
23
  skillsAgentPathSegment,
24
24
  writeSdkSkillsLocalVersion
25
- } from "./chunk-MBI3BVSQ.mjs";
25
+ } from "./chunk-VEP3POWB.mjs";
26
26
  import {
27
27
  DeeplineError
28
28
  } from "./chunk-NXGCO4JB.mjs";
@@ -1,7 +1,7 @@
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 _chunkWHKTRZ3Jjs = require('./chunk-WHKTRZ3J.js');
4
+ var _chunkXZG75ELGjs = require('./chunk-XZG75ELG.js');
5
5
 
6
6
  // src/cli/commands/sessions.ts
7
7
 
@@ -420,7 +420,7 @@ function buildSessionUploadContent(raw) {
420
420
  return { encodedContent: encoded, needsChunking: true };
421
421
  }
422
422
  async function uploadPayload(path, payload) {
423
- const { http } = _chunkWHKTRZ3Jjs.getAuthedHttpClient.call(void 0, );
423
+ const { http } = _chunkXZG75ELGjs.getAuthedHttpClient.call(void 0, );
424
424
  return await http.post(path, payload);
425
425
  }
426
426
  async function uploadChunkedSessions(sessions, options) {
@@ -452,7 +452,7 @@ async function uploadChunkedSessions(sessions, options) {
452
452
  environments: sessions.map(() => detectShellContext()),
453
453
  ...options.rating ? { rating: options.rating } : {}
454
454
  });
455
- _chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
455
+ _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
456
456
  {
457
457
  ...response,
458
458
  ok: true,
@@ -481,7 +481,7 @@ async function handleSessionsSend(options) {
481
481
  filename: _path.basename.call(void 0, filePath),
482
482
  ...rating ? { rating } : {}
483
483
  });
484
- _chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
484
+ _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
485
485
  {
486
486
  ...response2,
487
487
  ok: true,
@@ -530,7 +530,7 @@ async function handleSessionsSend(options) {
530
530
  environment: detectShellContext(),
531
531
  ...rating ? { rating } : {}
532
532
  });
533
- _chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
533
+ _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
534
534
  {
535
535
  ...response,
536
536
  ok: true,
@@ -635,7 +635,7 @@ ${refreshMeta}
635
635
  </body>
636
636
  </html>`;
637
637
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
638
- _chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
638
+ _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
639
639
  {
640
640
  ok: true,
641
641
  file: outputPath,
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkWHKTRZ3Jjs = require('./chunk-WHKTRZ3J.js');
5
+ var _chunkXZG75ELGjs = require('./chunk-XZG75ELG.js');
6
6
 
7
7
 
8
8
 
@@ -25,7 +25,7 @@ var _chunkWHKTRZ3Jjs = require('./chunk-WHKTRZ3J.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkGHHLLEZKjs = require('./chunk-GHHLLEZK.js');
28
+ var _chunk3AQ3L2NXjs = require('./chunk-3AQ3L2NX.js');
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
 
@@ -52,7 +52,7 @@ function statusBannerLine(value) {
52
52
  return `Service notice: ${banner.message}`;
53
53
  }
54
54
  function envFilePath(baseUrl) {
55
- return _chunkGHHLLEZKjs.hostEnvFilePath.call(void 0, baseUrl);
55
+ return _chunk3AQ3L2NXjs.hostEnvFilePath.call(void 0, baseUrl);
56
56
  }
57
57
  function normalizeAuthScope(value) {
58
58
  if (!value || value === "global") return "global";
@@ -65,7 +65,7 @@ function parseAuthScope(args) {
65
65
  }
66
66
  function pendingClaimPath(baseUrl, scope) {
67
67
  if (scope === "folder") {
68
- const target = _chunkGHHLLEZKjs.resolveProjectPinTarget.call(void 0, );
68
+ const target = _chunk3AQ3L2NXjs.resolveProjectPinTarget.call(void 0, );
69
69
  if (!target.ok) {
70
70
  throw new Error(
71
71
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -75,10 +75,10 @@ function pendingClaimPath(baseUrl, scope) {
75
75
  }
76
76
  return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
77
77
  }
78
- return `${_chunkGHHLLEZKjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
78
+ return `${_chunk3AQ3L2NXjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
79
79
  }
80
80
  function legacyPendingClaimTokenPath(baseUrl) {
81
- return `${_chunkGHHLLEZKjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
81
+ return `${_chunk3AQ3L2NXjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
82
82
  }
83
83
  function savePendingClaim(baseUrl, claim) {
84
84
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -180,21 +180,21 @@ function parseRegisterWaitMode(args) {
180
180
  function shouldWaitForRegisterClaim(mode) {
181
181
  if (mode === "yes") return true;
182
182
  if (mode === "no") return false;
183
- return _chunkGHHLLEZKjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
183
+ return _chunk3AQ3L2NXjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
184
184
  }
185
185
  function saveEnvValues(values, baseUrl, scope) {
186
186
  const filtered = {
187
- ...values[_chunkGHHLLEZKjs.HOST_URL_ENV] ? { [_chunkGHHLLEZKjs.HOST_URL_ENV]: values[_chunkGHHLLEZKjs.HOST_URL_ENV] } : {},
188
- ...values[_chunkGHHLLEZKjs.API_KEY_ENV] ? { [_chunkGHHLLEZKjs.API_KEY_ENV]: values[_chunkGHHLLEZKjs.API_KEY_ENV] } : {},
189
- ...values[_chunkGHHLLEZKjs.ACTIVE_ORG_ID_ENV] ? { [_chunkGHHLLEZKjs.ACTIVE_ORG_ID_ENV]: values[_chunkGHHLLEZKjs.ACTIVE_ORG_ID_ENV] } : {},
190
- ...Object.prototype.hasOwnProperty.call(values, _chunkGHHLLEZKjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkGHHLLEZKjs.ACTIVE_ORG_NAME_ENV]: values[_chunkGHHLLEZKjs.ACTIVE_ORG_NAME_ENV] } : {},
187
+ ...values[_chunk3AQ3L2NXjs.HOST_URL_ENV] ? { [_chunk3AQ3L2NXjs.HOST_URL_ENV]: values[_chunk3AQ3L2NXjs.HOST_URL_ENV] } : {},
188
+ ...values[_chunk3AQ3L2NXjs.API_KEY_ENV] ? { [_chunk3AQ3L2NXjs.API_KEY_ENV]: values[_chunk3AQ3L2NXjs.API_KEY_ENV] } : {},
189
+ ...values[_chunk3AQ3L2NXjs.ACTIVE_ORG_ID_ENV] ? { [_chunk3AQ3L2NXjs.ACTIVE_ORG_ID_ENV]: values[_chunk3AQ3L2NXjs.ACTIVE_ORG_ID_ENV] } : {},
190
+ ...Object.prototype.hasOwnProperty.call(values, _chunk3AQ3L2NXjs.ACTIVE_ORG_NAME_ENV) ? { [_chunk3AQ3L2NXjs.ACTIVE_ORG_NAME_ENV]: values[_chunk3AQ3L2NXjs.ACTIVE_ORG_NAME_ENV] } : {},
191
191
  // An explicit empty list must reach the store: it clears a stale line.
192
- ...Object.prototype.hasOwnProperty.call(values, _chunkGHHLLEZKjs.FEATURES_ENV) ? { [_chunkGHHLLEZKjs.FEATURES_ENV]: values[_chunkGHHLLEZKjs.FEATURES_ENV] } : {}
192
+ ...Object.prototype.hasOwnProperty.call(values, _chunk3AQ3L2NXjs.FEATURES_ENV) ? { [_chunk3AQ3L2NXjs.FEATURES_ENV]: values[_chunk3AQ3L2NXjs.FEATURES_ENV] } : {}
193
193
  };
194
194
  if (scope === "folder") {
195
- _chunkGHHLLEZKjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
195
+ _chunk3AQ3L2NXjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
196
196
  } else {
197
- _chunkGHHLLEZKjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
197
+ _chunk3AQ3L2NXjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
198
198
  }
199
199
  }
200
200
  function activeOrgEnvValues(data) {
@@ -202,21 +202,21 @@ function activeOrgEnvValues(data) {
202
202
  if (!orgId) return {};
203
203
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
204
204
  return {
205
- [_chunkGHHLLEZKjs.ACTIVE_ORG_ID_ENV]: orgId,
206
- [_chunkGHHLLEZKjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
- ..._chunkGHHLLEZKjs.featureEnvValues.call(void 0, data)
205
+ [_chunk3AQ3L2NXjs.ACTIVE_ORG_ID_ENV]: orgId,
206
+ [_chunk3AQ3L2NXjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
+ ..._chunk3AQ3L2NXjs.featureEnvValues.call(void 0, data)
208
208
  };
209
209
  }
210
210
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
211
211
  const headers = {
212
212
  "Content-Type": "application/json",
213
- "User-Agent": `deepline-ts-sdk/${_chunkGHHLLEZKjs.SDK_VERSION}`,
213
+ "User-Agent": `deepline-ts-sdk/${_chunk3AQ3L2NXjs.SDK_VERSION}`,
214
214
  "X-Deepline-Client-Family": "sdk",
215
215
  "X-Deepline-CLI-Family": "sdk",
216
- "X-Deepline-Agent-Runtime": _chunkGHHLLEZKjs.detectAgentRuntime.call(void 0, ),
217
- "X-Deepline-CLI-Version": _chunkGHHLLEZKjs.SDK_VERSION,
218
- "X-Deepline-SDK-Version": _chunkGHHLLEZKjs.SDK_VERSION,
219
- "X-Deepline-API-Contract": _chunkGHHLLEZKjs.SDK_API_CONTRACT
216
+ "X-Deepline-Agent-Runtime": _chunk3AQ3L2NXjs.detectAgentRuntime.call(void 0, ),
217
+ "X-Deepline-CLI-Version": _chunk3AQ3L2NXjs.SDK_VERSION,
218
+ "X-Deepline-SDK-Version": _chunk3AQ3L2NXjs.SDK_VERSION,
219
+ "X-Deepline-API-Contract": _chunk3AQ3L2NXjs.SDK_API_CONTRACT
220
220
  };
221
221
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
222
222
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -254,7 +254,7 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
254
254
  throw lastError instanceof Error ? lastError : new Error(String(lastError));
255
255
  }
256
256
  async function reportSetupCompleted(input) {
257
- const apiKey = input.authScope === "folder" ? _chunkGHHLLEZKjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkGHHLLEZKjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
257
+ const apiKey = input.authScope === "folder" ? _chunk3AQ3L2NXjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunk3AQ3L2NXjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
258
258
  if (!apiKey) return;
259
259
  try {
260
260
  await httpJson(
@@ -351,7 +351,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
351
351
  }
352
352
  }
353
353
  async function handleRegister(args) {
354
- const baseUrl = _chunkGHHLLEZKjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
354
+ const baseUrl = _chunk3AQ3L2NXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
355
355
  let orgName = "";
356
356
  let orgId = "";
357
357
  let agentName = "";
@@ -406,19 +406,19 @@ async function handleRegister(args) {
406
406
  });
407
407
  saveEnvValues(
408
408
  {
409
- [_chunkGHHLLEZKjs.HOST_URL_ENV]: baseUrl
409
+ [_chunk3AQ3L2NXjs.HOST_URL_ENV]: baseUrl
410
410
  },
411
411
  baseUrl,
412
412
  authScope
413
413
  );
414
414
  }
415
415
  if (claimUrl) {
416
- const shouldOpen = waitMode !== "no" && _chunkGHHLLEZKjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
416
+ const shouldOpen = waitMode !== "no" && _chunk3AQ3L2NXjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
417
417
  console.log(
418
418
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
419
419
  );
420
420
  console.log(` ${claimUrl}`);
421
- if (shouldOpen) _chunkWHKTRZ3Jjs.openInBrowser.call(void 0, claimUrl);
421
+ if (shouldOpen) _chunkXZG75ELGjs.openInBrowser.call(void 0, claimUrl);
422
422
  }
423
423
  if (data.cli_message) {
424
424
  console.log(String(data.cli_message));
@@ -461,8 +461,8 @@ async function handleRegister(args) {
461
461
  if (apiKey) {
462
462
  saveEnvValues(
463
463
  {
464
- [_chunkGHHLLEZKjs.HOST_URL_ENV]: baseUrl,
465
- [_chunkGHHLLEZKjs.API_KEY_ENV]: apiKey,
464
+ [_chunk3AQ3L2NXjs.HOST_URL_ENV]: baseUrl,
465
+ [_chunk3AQ3L2NXjs.API_KEY_ENV]: apiKey,
466
466
  ...activeOrgEnvValues(statusData)
467
467
  },
468
468
  baseUrl,
@@ -484,7 +484,7 @@ async function handleRegister(args) {
484
484
  }
485
485
  }
486
486
  async function handleWait(args) {
487
- const baseUrl = _chunkGHHLLEZKjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
487
+ const baseUrl = _chunk3AQ3L2NXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
488
488
  let timeoutSeconds = 300;
489
489
  let requestedScope;
490
490
  if (args.includes("--auth-scope")) {
@@ -508,7 +508,7 @@ async function handleWait(args) {
508
508
  const authScope = resumed.scope;
509
509
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _11 => _11.claimToken]), () => ( ""));
510
510
  if (!pendingClaim) {
511
- const scopedApiKey = authScope === "folder" ? _chunkGHHLLEZKjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkGHHLLEZKjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
511
+ const scopedApiKey = authScope === "folder" ? _chunk3AQ3L2NXjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk3AQ3L2NXjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
512
512
  if (scopedApiKey) {
513
513
  console.log("Already connected.");
514
514
  return EXIT_OK;
@@ -551,8 +551,8 @@ async function handleWait(args) {
551
551
  if (apiKey) {
552
552
  saveEnvValues(
553
553
  {
554
- [_chunkGHHLLEZKjs.HOST_URL_ENV]: baseUrl,
555
- [_chunkGHHLLEZKjs.API_KEY_ENV]: apiKey,
554
+ [_chunk3AQ3L2NXjs.HOST_URL_ENV]: baseUrl,
555
+ [_chunk3AQ3L2NXjs.API_KEY_ENV]: apiKey,
556
556
  ...activeOrgEnvValues(data)
557
557
  },
558
558
  baseUrl,
@@ -576,9 +576,9 @@ async function handleWait(args) {
576
576
  return EXIT_AUTH;
577
577
  }
578
578
  async function handleStatus(args) {
579
- const baseUrl = _chunkGHHLLEZKjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
579
+ const baseUrl = _chunk3AQ3L2NXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
580
580
  const reveal = args.includes("--reveal");
581
- const jsonOutput = _chunkWHKTRZ3Jjs.argsWantJson.call(void 0, args);
581
+ const jsonOutput = _chunkXZG75ELGjs.argsWantJson.call(void 0, args);
582
582
  const hasExplicitAuthScope = args.includes("--auth-scope");
583
583
  let authScope = null;
584
584
  if (hasExplicitAuthScope) {
@@ -618,14 +618,14 @@ async function handleStatus(args) {
618
618
  };
619
619
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
620
620
  }
621
- const apiKey = authScope === "folder" ? _chunkGHHLLEZKjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkGHHLLEZKjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkGHHLLEZKjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
621
+ const apiKey = authScope === "folder" ? _chunk3AQ3L2NXjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunk3AQ3L2NXjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk3AQ3L2NXjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
622
622
  if (!apiKey) {
623
623
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
624
624
  baseUrl,
625
625
  _nullishCoalesce(authScope, () => ( void 0))
626
626
  );
627
627
  if (pendingClaim) {
628
- _chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
628
+ _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
629
629
  {
630
630
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
631
631
  status: "pending",
@@ -646,7 +646,7 @@ async function handleStatus(args) {
646
646
  );
647
647
  return EXIT_OK;
648
648
  }
649
- _chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
649
+ _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
650
650
  {
651
651
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
652
652
  status: "not connected",
@@ -682,7 +682,7 @@ async function handleStatus(args) {
682
682
  }
683
683
  );
684
684
  if (status === 401 || status === 403) {
685
- _chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
685
+ _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
686
686
  {
687
687
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
688
688
  status: "unauthorized",
@@ -712,7 +712,7 @@ async function handleStatus(args) {
712
712
  console.error(`Auth status error (status ${status}).`);
713
713
  return EXIT_SERVER;
714
714
  }
715
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkGHHLLEZKjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
715
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunk3AQ3L2NXjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
716
716
  clearSatisfiedPendingClaim(
717
717
  baseUrl,
718
718
  resolvedAuthScope,
@@ -740,28 +740,28 @@ async function handleStatus(args) {
740
740
  if (apiKeyResp) {
741
741
  saveEnvValues(
742
742
  {
743
- [_chunkGHHLLEZKjs.HOST_URL_ENV]: baseUrl,
744
- [_chunkGHHLLEZKjs.API_KEY_ENV]: apiKeyResp,
743
+ [_chunk3AQ3L2NXjs.HOST_URL_ENV]: baseUrl,
744
+ [_chunk3AQ3L2NXjs.API_KEY_ENV]: apiKeyResp,
745
745
  ...activeOrgEnvValues(data)
746
746
  },
747
747
  baseUrl,
748
748
  resolvedAuthScope
749
749
  );
750
750
  if (resolvedAuthScope === "folder") {
751
- const target = _chunkGHHLLEZKjs.resolveProjectPinTarget.call(void 0, );
751
+ const target = _chunk3AQ3L2NXjs.resolveProjectPinTarget.call(void 0, );
752
752
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
753
753
  } else {
754
754
  savedApiKeyPath = envFilePath(baseUrl);
755
755
  }
756
756
  }
757
- } else if (resolvedAuthScope === "folder" || _chunkGHHLLEZKjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
758
- saveEnvValues(_chunkGHHLLEZKjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
757
+ } else if (resolvedAuthScope === "folder" || _chunk3AQ3L2NXjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
758
+ saveEnvValues(_chunk3AQ3L2NXjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
759
759
  }
760
- _chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
760
+ _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
761
761
  {
762
762
  ...payload,
763
- ..._chunkGHHLLEZKjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
764
- command_context: _chunkGHHLLEZKjs.resolveCliCommandContext.call(void 0,
763
+ ..._chunk3AQ3L2NXjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
764
+ command_context: _chunk3AQ3L2NXjs.resolveCliCommandContext.call(void 0,
765
765
  { baseUrl, apiKey },
766
766
  resolvedAuthScope
767
767
  )
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-DLIRSHV6.mjs";
5
5
  import {
6
6
  SDK_RELEASE
7
- } from "./chunk-SZCUJ4AL.mjs";
7
+ } from "./chunk-RI57LHLC.mjs";
8
8
  import {
9
9
  DeeplineError,
10
10
  TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkGHHLLEZKjs = require('./chunk-GHHLLEZK.js');
6
+ var _chunk3AQ3L2NXjs = require('./chunk-3AQ3L2NX.js');
7
7
 
8
8
 
9
9
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -136,8 +136,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
136
136
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
137
137
  var defaultBrowserCommandRunner = childProcess;
138
138
  function getAuthedHttpClient() {
139
- const config = _chunkGHHLLEZKjs.resolveConfig.call(void 0, );
140
- return { config, http: new (0, _chunkGHHLLEZKjs.HttpClient)(config) };
139
+ const config = _chunk3AQ3L2NXjs.resolveConfig.call(void 0, );
140
+ return { config, http: new (0, _chunk3AQ3L2NXjs.HttpClient)(config) };
141
141
  }
142
142
  function stableOsUserId() {
143
143
  try {
@@ -477,7 +477,7 @@ function collectLocalEnvInfo() {
477
477
  os: `${process.platform} ${process.arch}`,
478
478
  node_version: process.version,
479
479
  home_dir: homeDir,
480
- agent_runtime: _chunkGHHLLEZKjs.detectAgentRuntime.call(void 0, )
480
+ agent_runtime: _chunk3AQ3L2NXjs.detectAgentRuntime.call(void 0, )
481
481
  };
482
482
  const env = process.env;
483
483
  const optional = {
@@ -725,9 +725,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
725
725
  }
726
726
  function withAgentCommandContext(value) {
727
727
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
728
- return _chunkGHHLLEZKjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
728
+ return _chunk3AQ3L2NXjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
729
729
  ...valueRecord,
730
- command_context: _chunkGHHLLEZKjs.resolveCliCommandContext.call(void 0, )
730
+ command_context: _chunk3AQ3L2NXjs.resolveCliCommandContext.call(void 0, )
731
731
  } : value;
732
732
  }
733
733
  function printJson(value, fields) {
@@ -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 _chunkGKZZ32EVjs = require('./chunk-GKZZ32EV.js');
3
+ var _chunkKGZPY524js = require('./chunk-KGZPY524.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 = _chunkGKZZ32EVjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkKGZPY524js.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,
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-7DGZCMXQ.mjs";
5
+ } from "./chunk-DU72PAVF.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-MBI3BVSQ.mjs";
8
+ } from "./chunk-VEP3POWB.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {