deepline 0.3.471 → 0.3.472

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 (137) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +9 -0
  2. package/dist/bundling-sources/sdk/src/index.ts +1 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +7 -0
  5. package/dist/cli/{auth-MUCIXHJF.mjs → auth-35DAEPHC.mjs} +5 -5
  6. package/dist/cli/auth-Q5TM66UI.js +41 -0
  7. package/dist/cli/{billing-BQQNTCTV.js → billing-5ED5X2IO.js} +79 -79
  8. package/dist/cli/{billing-QGCTDE2N.mjs → billing-CXVBJEC4.mjs} +6 -6
  9. package/dist/cli/{chunk-RUWBAU6V.js → chunk-2DND7LLL.js} +8 -8
  10. package/dist/cli/{chunk-WDXJUZCY.js → chunk-2G4R4APL.js} +2 -2
  11. package/dist/cli/{chunk-ZAF54BQK.mjs → chunk-2S36YV2K.mjs} +1 -1
  12. package/dist/cli/{chunk-NPJY5QRC.js → chunk-3L76SFGN.js} +53 -53
  13. package/dist/cli/{chunk-OYHCMKZM.mjs → chunk-4NFBYW7X.mjs} +2 -2
  14. package/dist/cli/{chunk-FJBGBPYY.mjs → chunk-52VOORHM.mjs} +2 -2
  15. package/dist/cli/{chunk-MLQJVAVS.js → chunk-5FHU67AT.js} +3 -3
  16. package/dist/cli/{chunk-SIQV6UYG.mjs → chunk-6PKONIIP.mjs} +4 -4
  17. package/dist/cli/{chunk-6DTW6JND.js → chunk-6ZTSHKJF.js} +19 -5
  18. package/dist/cli/{chunk-J2NYCUTK.js → chunk-7KAS4QOW.js} +94 -89
  19. package/dist/cli/{chunk-IE5KAVTI.mjs → chunk-C5PY2PP6.mjs} +3 -3
  20. package/dist/cli/{chunk-U5RGCQWJ.mjs → chunk-CFDQZQE2.mjs} +2 -2
  21. package/dist/cli/{chunk-4OAA43RX.mjs → chunk-FHIO7WI2.mjs} +2 -2
  22. package/dist/cli/{chunk-NBPNYD54.js → chunk-GJPRBELO.js} +16 -16
  23. package/dist/cli/{chunk-YRM5TPXL.js → chunk-H7YFUC3J.js} +7 -7
  24. package/dist/cli/{chunk-KSUGLTX3.js → chunk-HBVT4FW5.js} +6 -6
  25. package/dist/cli/{chunk-VGIAOWCD.js → chunk-IIQ6O5F3.js} +5 -5
  26. package/dist/cli/{chunk-ATKFOOVD.mjs → chunk-IPJ27SD2.mjs} +5 -5
  27. package/dist/cli/{chunk-3PT2HJKC.mjs → chunk-JRZW4LWK.mjs} +1 -1
  28. package/dist/cli/{chunk-FVGT5EBA.mjs → chunk-KQJHIVCE.mjs} +1 -1
  29. package/dist/cli/{chunk-DFMFYOML.js → chunk-L3AXQXNT.js} +10 -10
  30. package/dist/cli/{chunk-CR2F3JZN.js → chunk-LQUOZGM6.js} +51 -51
  31. package/dist/cli/{chunk-RWCTGSD7.js → chunk-M475BQ77.js} +3 -3
  32. package/dist/cli/{chunk-K5USD25Z.mjs → chunk-MRZ7AO72.mjs} +10 -10
  33. package/dist/cli/{chunk-IPFUDUSY.mjs → chunk-NZBZFEVA.mjs} +4 -4
  34. package/dist/cli/{chunk-TWRK4NOU.js → chunk-ODAARZSK.js} +36 -36
  35. package/dist/cli/{chunk-ZMJOSD7R.mjs → chunk-OMPW5ELS.mjs} +1 -1
  36. package/dist/cli/{chunk-4PT2WZD2.js → chunk-QLVYYDUI.js} +26 -26
  37. package/dist/cli/{chunk-PVEEGJFN.mjs → chunk-QSCLOPWR.mjs} +1 -1
  38. package/dist/cli/{chunk-VVY3HGFM.mjs → chunk-R6L6JRDR.mjs} +2 -2
  39. package/dist/cli/{chunk-EHVVDHNU.mjs → chunk-R73LE2IM.mjs} +1 -1
  40. package/dist/cli/{chunk-FX3QM6WN.js → chunk-RDOPZK7A.js} +3 -3
  41. package/dist/cli/{chunk-E3WTQ3JI.js → chunk-RMQB72WW.js} +9 -9
  42. package/dist/cli/{chunk-5QWGL2QO.js → chunk-SBPI7AEB.js} +93 -93
  43. package/dist/cli/{chunk-VDRGX2XL.js → chunk-SKVMC6K6.js} +5 -5
  44. package/dist/cli/{chunk-DK5Y5BD3.js → chunk-SYWOSAW7.js} +4 -4
  45. package/dist/cli/{chunk-EYKMITTY.mjs → chunk-T5H7ETIM.mjs} +4 -4
  46. package/dist/cli/{chunk-AMUSZHCE.mjs → chunk-TMMODGPV.mjs} +2 -2
  47. package/dist/cli/{chunk-G6RQXAJ2.js → chunk-UKKCS6Z4.js} +1 -1
  48. package/dist/cli/{chunk-ZHM7VCKH.js → chunk-UPXGN62E.js} +21 -21
  49. package/dist/cli/{chunk-DV4V5IWI.mjs → chunk-UXFUD2MB.mjs} +5 -5
  50. package/dist/cli/{chunk-NLT3CFVJ.js → chunk-VDHDTXCK.js} +2 -2
  51. package/dist/cli/{chunk-GPSVXVDZ.js → chunk-XSSIBO74.js} +8 -8
  52. package/dist/cli/{chunk-MV6HL67R.mjs → chunk-YK64LQPQ.mjs} +6 -1
  53. package/dist/cli/{chunk-RYGJWMWL.mjs → chunk-YMB2CD55.mjs} +1 -1
  54. package/dist/cli/{chunk-E2SHDT7T.mjs → chunk-YNW47NOJ.mjs} +2 -2
  55. package/dist/cli/{chunk-V2WMJXU6.mjs → chunk-YUNPYX5T.mjs} +19 -5
  56. package/dist/cli/{chunk-2KBRY5CA.mjs → chunk-ZZQIS3TH.mjs} +3 -3
  57. package/dist/cli/command-docs.js +2 -2
  58. package/dist/cli/command-docs.mjs +1 -1
  59. package/dist/cli/{csv-Q6BSRCBJ.mjs → csv-OSDYY3QW.mjs} +4 -4
  60. package/dist/cli/{csv-UE7RZDUV.js → csv-SQJQM3B2.js} +13 -13
  61. package/dist/cli/{db-FI6XXB2H.mjs → db-2M6BU6G5.mjs} +6 -6
  62. package/dist/cli/{db-T7A7EE3D.js → db-ATDYXAD5.js} +27 -27
  63. package/dist/cli/describe-37QXXDCF.js +48 -0
  64. package/dist/cli/{describe-4GGU6NU3.mjs → describe-WIAJCWF3.mjs} +17 -17
  65. package/dist/cli/describe-core.d.mts +2 -2
  66. package/dist/cli/describe-core.d.ts +2 -2
  67. package/dist/cli/{executions-S46XI7NX.mjs → executions-2J6CCJL2.mjs} +6 -6
  68. package/dist/cli/{executions-4I6F5RMS.js → executions-Y32LMYH6.js} +8 -8
  69. package/dist/cli/{feedback-3LJ7NZE7.mjs → feedback-L4AVIMGI.mjs} +4 -4
  70. package/dist/cli/{feedback-VEGUNKSP.js → feedback-RXQLS6QU.js} +8 -8
  71. package/dist/cli/git-JGUR335T.js +25 -0
  72. package/dist/cli/{git-W7SFD7AA.mjs → git-V3K77AWH.mjs} +5 -5
  73. package/dist/cli/index.js +139 -139
  74. package/dist/cli/index.mjs +41 -41
  75. package/dist/cli/{legacy-noops-3EMB5SJH.js → legacy-noops-B2KJT4CZ.js} +8 -8
  76. package/dist/cli/{legacy-noops-FIR5PSHG.mjs → legacy-noops-LOGMYOY5.mjs} +5 -5
  77. package/dist/cli/{monitors-4DKW25PV.mjs → monitors-5ETSB7S7.mjs} +7 -7
  78. package/dist/cli/{monitors-53LPJH6R.js → monitors-A5WYUCGD.js} +91 -91
  79. package/dist/cli/{org-CYLJFX4Q.js → org-7EZDWYKK.js} +72 -72
  80. package/dist/cli/{org-6ZV2DBGI.mjs → org-BJOAUSXL.mjs} +6 -6
  81. package/dist/cli/{pages-V3LEXCRL.mjs → pages-3BYGBTVK.mjs} +6 -6
  82. package/dist/cli/{pages-42E3WIMH.js → pages-45VNTEQU.js} +17 -17
  83. package/dist/cli/{play-O3OY556F.js → play-5KER3JFU.js} +334 -306
  84. package/dist/cli/{play-X7REMNNG.mjs → play-R7JQV533.mjs} +47 -19
  85. package/dist/cli/{providers-NZ7TISS3.js → providers-OHMZ6QIF.js} +9 -9
  86. package/dist/cli/{providers-L2DJVAXN.mjs → providers-RMFCE6MM.mjs} +6 -6
  87. package/dist/cli/{quickstart-IKNGAQRO.js → quickstart-GNRE4SAT.js} +6 -6
  88. package/dist/cli/{quickstart-ROWMAUXQ.mjs → quickstart-IHR4VC5K.mjs} +4 -4
  89. package/dist/cli/{run-JG6DLOYR.js → run-77QIMUUV.js} +36 -36
  90. package/dist/cli/{run-PJI577J2.mjs → run-Y4MIRFJY.mjs} +22 -22
  91. package/dist/cli/{search-DOVJ745X.mjs → search-24YKTHMK.mjs} +7 -7
  92. package/dist/cli/search-S3VO2UKV.js +32 -0
  93. package/dist/cli/{secrets-OKDFNCRJ.mjs → secrets-KHX62AWC.mjs} +6 -6
  94. package/dist/cli/{secrets-R5LWXIG6.js → secrets-SSEBT3IS.js} +15 -15
  95. package/dist/cli/{sessions-L3DSAY2T.js → sessions-E6KNWYEH.js} +6 -6
  96. package/dist/cli/{sessions-KX4C2CKS.mjs → sessions-H7T25HGE.mjs} +5 -5
  97. package/dist/cli/{settings-NKTNNTAP.js → settings-GXUYF5G7.js} +78 -78
  98. package/dist/cli/{settings-W3SMDBYS.mjs → settings-XSJG6M32.mjs} +11 -11
  99. package/dist/cli/{setup-7KFKKW2W.mjs → setup-GD7IOD4U.mjs} +9 -9
  100. package/dist/cli/{setup-5WZEXWQR.js → setup-JP5YPIA4.js} +44 -44
  101. package/dist/cli/skills-C4KTW3US.js +31 -0
  102. package/dist/cli/{skills-X5TLATOL.mjs → skills-HLHE3ENN.mjs} +7 -7
  103. package/dist/cli/tools-KS7JMRK6.js +55 -0
  104. package/dist/cli/{tools-27J5EOKO.mjs → tools-Q4XIQX7W.mjs} +16 -16
  105. package/dist/cli/{update-EWL477FJ.mjs → update-3KRMR2QJ.mjs} +9 -9
  106. package/dist/cli/update-GYTQYK2W.js +33 -0
  107. package/dist/cli/{workflow-GFNGGHJE.js → workflow-NMUESL3O.js} +17 -17
  108. package/dist/cli/{workflow-YXR6YMT2.mjs → workflow-NOZ7WFEY.mjs} +7 -7
  109. package/dist/{client-DitOgp8N.d.mts → client-C9bJ0QXu.d.mts} +1 -1
  110. package/dist/{client-DIpVmXcj.d.ts → client-CuNH54w3.d.ts} +1 -1
  111. package/dist/{client-core-k543Fg6D.d.ts → client-core-C8Q6DKga.d.ts} +11 -1
  112. package/dist/{client-core-COZteOww.d.mts → client-core-CSiXbe2n.d.mts} +11 -1
  113. package/dist/index.d.mts +3 -3
  114. package/dist/index.d.ts +3 -3
  115. package/dist/index.js +9 -9
  116. package/dist/index.mjs +6 -6
  117. package/dist/install-integrity.json +102 -102
  118. package/dist/plays/play-description.d.mts +1 -1
  119. package/dist/plays/play-description.d.ts +1 -1
  120. package/dist/plays/run-request.d.mts +1 -1
  121. package/dist/plays/run-request.d.ts +1 -1
  122. package/dist/release.d.mts +1 -1
  123. package/dist/release.d.ts +1 -1
  124. package/dist/release.js +2 -2
  125. package/dist/release.mjs +1 -1
  126. package/dist/server.d.mts +2 -2
  127. package/dist/server.d.ts +2 -2
  128. package/dist/server.js +5 -5
  129. package/dist/server.mjs +3 -3
  130. package/package.json +1 -1
  131. package/dist/cli/auth-2MMOFS3O.js +0 -41
  132. package/dist/cli/describe-UM2VGRY7.js +0 -48
  133. package/dist/cli/git-EVWKNIUA.js +0 -25
  134. package/dist/cli/search-RHKW5GSR.js +0 -32
  135. package/dist/cli/skills-UFAABPCQ.js +0 -31
  136. package/dist/cli/tools-IVU3BCIY.js +0 -55
  137. package/dist/cli/update-G7HFHKPG.js +0 -33
@@ -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 _chunkNLT3CFVJjs = require('./chunk-NLT3CFVJ.js');
4
+ var _chunkVDHDTXCKjs = require('./chunk-VDHDTXCK.js');
5
5
 
6
6
 
7
- var _chunkTWRK4NOUjs = require('./chunk-TWRK4NOU.js');
7
+ var _chunkODAARZSKjs = require('./chunk-ODAARZSK.js');
8
8
 
9
9
 
10
- var _chunkNPJY5QRCjs = require('./chunk-NPJY5QRC.js');
10
+ var _chunk3L76SFGNjs = require('./chunk-3L76SFGN.js');
11
11
 
12
12
 
13
- var _chunkYRM5TPXLjs = require('./chunk-YRM5TPXL.js');
13
+ var _chunkH7YFUC3Jjs = require('./chunk-H7YFUC3J.js');
14
14
 
15
15
 
16
- var _chunkMLQJVAVSjs = require('./chunk-MLQJVAVS.js');
16
+ var _chunk5FHU67ATjs = require('./chunk-5FHU67AT.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 = _chunkNPJY5QRCjs.resolveShellSpawn.call(void 0,
498
+ const plan = _chunk3L76SFGNjs.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 ? _chunkNLT3CFVJjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkNLT3CFVJjs.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 ? _chunkVDHDTXCKjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunkVDHDTXCKjs.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()]) || _chunkMLQJVAVSjs.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunk5FHU67ATjs.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 = _chunkNPJY5QRCjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunk3L76SFGNjs.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, () => ( _chunkMLQJVAVSjs.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk5FHU67ATjs.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 _chunkTWRK4NOUjs.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkODAARZSKjs.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
- _chunkYRM5TPXLjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunkYRM5TPXLjs.printCommandEnvelope.call(void 0,
1284
+ _chunkH7YFUC3Jjs.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
- _chunkYRM5TPXLjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunkH7YFUC3Jjs.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
- _chunkYRM5TPXLjs.printCommandEnvelope.call(void 0,
1327
+ _chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkMLQJVAVSjs = require('./chunk-MLQJVAVS.js');
5
+ var _chunk5FHU67ATjs = require('./chunk-5FHU67AT.js');
6
6
 
7
7
 
8
- var _chunkDK5Y5BD3js = require('./chunk-DK5Y5BD3.js');
8
+ var _chunkSYWOSAW7js = require('./chunk-SYWOSAW7.js');
9
9
 
10
10
 
11
11
 
@@ -290,8 +290,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
290
290
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
291
291
  var defaultBrowserCommandRunner = childProcess;
292
292
  function getAuthedHttpClient() {
293
- const config = _chunkMLQJVAVSjs.resolveConfig.call(void 0, );
294
- return { config, http: new (0, _chunkMLQJVAVSjs.HttpClient)(config) };
293
+ const config = _chunk5FHU67ATjs.resolveConfig.call(void 0, );
294
+ return { config, http: new (0, _chunk5FHU67ATjs.HttpClient)(config) };
295
295
  }
296
296
  function stableOsUserId() {
297
297
  try {
@@ -631,7 +631,7 @@ function collectLocalEnvInfo() {
631
631
  os: `${process.platform} ${process.arch}`,
632
632
  node_version: process.version,
633
633
  home_dir: homeDir,
634
- agent_runtime: _chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, )
634
+ agent_runtime: _chunkSYWOSAW7js.detectAgentRuntime.call(void 0, )
635
635
  };
636
636
  const env = process.env;
637
637
  const optional = {
@@ -878,9 +878,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
878
878
  }
879
879
  function withAgentCommandContext(value) {
880
880
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
881
- return _chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
881
+ return _chunkSYWOSAW7js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
882
882
  ...valueRecord,
883
- command_context: _chunkMLQJVAVSjs.resolveCliCommandContext.call(void 0, )
883
+ command_context: _chunk5FHU67ATjs.resolveCliCommandContext.call(void 0, )
884
884
  } : value;
885
885
  }
886
886
  function printJson(value, fields) {
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkWDXJUZCYjs = require('./chunk-WDXJUZCY.js');
3
+ var _chunk2G4R4APLjs = require('./chunk-2G4R4APL.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkNPJY5QRCjs = require('./chunk-NPJY5QRC.js');
8
+ var _chunk3L76SFGNjs = require('./chunk-3L76SFGN.js');
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -14,17 +14,17 @@ function usesInlinePlayAdmission(command, args) {
14
14
  );
15
15
  }
16
16
  async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured") {
17
- if (maintenancePolicy !== "off") _chunkNPJY5QRCjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
18
- const compatibility = await _chunkWDXJUZCYjs.traceCliSpan.call(void 0,
17
+ if (maintenancePolicy !== "off") _chunk3L76SFGNjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
18
+ const compatibility = await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
19
19
  "cli.sdk_compatibility",
20
20
  { baseUrl, command: "plays run" },
21
- () => _chunkNPJY5QRCjs.checkSdkCompatibility.call(void 0, baseUrl, {
21
+ () => _chunk3L76SFGNjs.checkSdkCompatibility.call(void 0, baseUrl, {
22
22
  command: "plays run",
23
23
  persistCache: maintenancePolicy !== "off"
24
24
  })
25
25
  );
26
26
  if (compatibility.error) throw compatibility.error;
27
- _chunkNPJY5QRCjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
27
+ _chunk3L76SFGNjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
28
28
  quietAdvisory: true
29
29
  });
30
30
  }
@@ -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(); } }
2
2
 
3
- var _chunkJ2NYCUTKjs = require('./chunk-J2NYCUTK.js');
3
+ var _chunk7KAS4QOWjs = require('./chunk-7KAS4QOW.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkMLQJVAVSjs = require('./chunk-MLQJVAVS.js');
7
+ var _chunk5FHU67ATjs = require('./chunk-5FHU67AT.js');
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
137
137
 
138
138
  // src/plays/client.ts
139
139
  function createPlayClient(options) {
140
- const config = _chunkMLQJVAVSjs.resolveConfig.call(void 0, options);
141
- return new (0, _chunkJ2NYCUTKjs.PlayClient)(
142
- new (0, _chunkMLQJVAVSjs.HttpClient)(config),
140
+ const config = _chunk5FHU67ATjs.resolveConfig.call(void 0, options);
141
+ return new (0, _chunk7KAS4QOWjs.PlayClient)(
142
+ new (0, _chunk5FHU67ATjs.HttpClient)(config),
143
143
  _nullishCoalesce(config.environment, () => ( process.env))
144
144
  );
145
145
  }
@@ -4,20 +4,20 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-DV4V5IWI.mjs";
7
+ } from "./chunk-UXFUD2MB.mjs";
8
8
  import {
9
9
  isCiEnvironment
10
- } from "./chunk-EYKMITTY.mjs";
10
+ } from "./chunk-T5H7ETIM.mjs";
11
11
  import {
12
12
  addJsonNotice,
13
13
  isJsonOutputMode
14
- } from "./chunk-OYHCMKZM.mjs";
14
+ } from "./chunk-4NFBYW7X.mjs";
15
15
  import {
16
16
  resolveApiKeyForBaseUrl
17
- } from "./chunk-FVGT5EBA.mjs";
17
+ } from "./chunk-KQJHIVCE.mjs";
18
18
  import {
19
19
  SDK_VERSION
20
- } from "./chunk-ZMJOSD7R.mjs";
20
+ } from "./chunk-OMPW5ELS.mjs";
21
21
 
22
22
  // src/cli/compatibility-catalog.ts
23
23
  var readers = /* @__PURE__ */ new WeakMap();
@@ -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.471",
52
+ version: "0.3.472",
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."
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HttpClient,
3
3
  detectAgentRuntime
4
- } from "./chunk-ZMJOSD7R.mjs";
4
+ } from "./chunk-OMPW5ELS.mjs";
5
5
  import {
6
6
  ConfigError
7
7
  } from "./chunk-4QF2K7TM.mjs";
@@ -1,9 +1,9 @@
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 _chunk5QWGL2QOjs = require('./chunk-5QWGL2QO.js');
3
+ var _chunkSBPI7AEBjs = require('./chunk-SBPI7AEB.js');
4
4
 
5
5
 
6
- var _chunkFX3QM6WNjs = require('./chunk-FX3QM6WN.js');
6
+ var _chunkRDOPZK7Ajs = require('./chunk-RDOPZK7A.js');
7
7
 
8
8
 
9
9
 
@@ -14,10 +14,10 @@ var _chunkT5GRG37Bjs = require('./chunk-T5GRG37B.js');
14
14
  var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
15
15
 
16
16
 
17
- var _chunkVDRGX2XLjs = require('./chunk-VDRGX2XL.js');
17
+ var _chunkSKVMC6K6js = require('./chunk-SKVMC6K6.js');
18
18
 
19
19
 
20
- var _chunkYRM5TPXLjs = require('./chunk-YRM5TPXL.js');
20
+ var _chunkH7YFUC3Jjs = require('./chunk-H7YFUC3J.js');
21
21
 
22
22
  // src/cli/commands/describe.ts
23
23
  var _fs = require('fs');
@@ -26,16 +26,16 @@ function nothingNamed(name) {
26
26
  return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
27
27
  }
28
28
  function findNamed2(name, options) {
29
- return _chunkT5GRG37Bjs.findNamed.call(void 0, name, options, _chunkT5GRG37Bjs.describeLookupsFor.call(void 0, new (0, _chunkVDRGX2XLjs.DeeplineClient)()));
29
+ return _chunkT5GRG37Bjs.findNamed.call(void 0, name, options, _chunkT5GRG37Bjs.describeLookupsFor.call(void 0, new (0, _chunkSKVMC6K6js.DeeplineClient)()));
30
30
  }
31
31
  async function describeAnything(name, options, onMissing) {
32
- const client = new (0, _chunkVDRGX2XLjs.DeeplineClient)();
32
+ const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
33
33
  const lookups = _chunkT5GRG37Bjs.describeLookupsFor.call(void 0, client);
34
34
  const outcome = await _chunkT5GRG37Bjs.describeName.call(void 0, name, options, {
35
35
  ...lookups,
36
36
  // `tools describe` has already fetched the tool for its compatibility check.
37
37
  tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
38
- seedStarterScript: _chunk5QWGL2QOjs.seedToolListScript
38
+ seedStarterScript: _chunkSBPI7AEBjs.seedToolListScript
39
39
  });
40
40
  if (outcome.status === "missing") {
41
41
  if (onMissing) return onMissing();
@@ -60,18 +60,18 @@ function deliver(envelope, lines, { json, out }) {
60
60
  ` : text;
61
61
  _fs.writeFileSync.call(void 0, path, content);
62
62
  const bytes = Buffer.byteLength(content);
63
- _chunkYRM5TPXLjs.printCommandEnvelope.call(void 0,
63
+ _chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
64
64
  { path, bytes },
65
65
  { json, text: `Wrote ${path} (${bytes} bytes)
66
66
  ` }
67
67
  );
68
68
  return 0;
69
69
  }
70
- _chunkYRM5TPXLjs.printCommandEnvelope.call(void 0, envelope, { json, text });
70
+ _chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0, envelope, { json, text });
71
71
  return 0;
72
72
  }
73
73
  function registerDescribeCommand(program) {
74
- _chunkFX3QM6WNjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
74
+ _chunkRDOPZK7Ajs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
75
75
  "Describe anything search returns: a tool, monitor type, or play."
76
76
  ).addHelpText(
77
77
  "after",
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkYRM5TPXLjs = require('./chunk-YRM5TPXL.js');
5
+ var _chunkH7YFUC3Jjs = require('./chunk-H7YFUC3J.js');
6
6
 
7
7
 
8
8
 
@@ -22,12 +22,12 @@ var _chunkYRM5TPXLjs = require('./chunk-YRM5TPXL.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkMLQJVAVSjs = require('./chunk-MLQJVAVS.js');
25
+ var _chunk5FHU67ATjs = require('./chunk-5FHU67AT.js');
26
26
 
27
27
 
28
28
 
29
29
 
30
- var _chunkDK5Y5BD3js = require('./chunk-DK5Y5BD3.js');
30
+ var _chunkSYWOSAW7js = require('./chunk-SYWOSAW7.js');
31
31
 
32
32
  // src/cli/commands/auth.ts
33
33
 
@@ -54,7 +54,7 @@ function statusBannerLine(value) {
54
54
  return `Service notice: ${banner.message}`;
55
55
  }
56
56
  function envFilePath(baseUrl) {
57
- return _chunkMLQJVAVSjs.hostEnvFilePath.call(void 0, baseUrl);
57
+ return _chunk5FHU67ATjs.hostEnvFilePath.call(void 0, baseUrl);
58
58
  }
59
59
  function normalizeAuthScope(value) {
60
60
  if (!value || value === "global") return "global";
@@ -67,7 +67,7 @@ function parseAuthScope(args) {
67
67
  }
68
68
  function pendingClaimPath(baseUrl, scope) {
69
69
  if (scope === "folder") {
70
- const target = _chunkMLQJVAVSjs.resolveProjectPinTarget.call(void 0, );
70
+ const target = _chunk5FHU67ATjs.resolveProjectPinTarget.call(void 0, );
71
71
  if (!target.ok) {
72
72
  throw new Error(
73
73
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -77,10 +77,10 @@ function pendingClaimPath(baseUrl, scope) {
77
77
  }
78
78
  return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
79
79
  }
80
- return `${_chunkMLQJVAVSjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
80
+ return `${_chunk5FHU67ATjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
81
81
  }
82
82
  function legacyPendingClaimTokenPath(baseUrl) {
83
- return `${_chunkMLQJVAVSjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
83
+ return `${_chunk5FHU67ATjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
84
84
  }
85
85
  function savePendingClaim(baseUrl, claim) {
86
86
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -182,21 +182,21 @@ function parseRegisterWaitMode(args) {
182
182
  function shouldWaitForRegisterClaim(mode) {
183
183
  if (mode === "yes") return true;
184
184
  if (mode === "no") return false;
185
- return _chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
185
+ return _chunkSYWOSAW7js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
186
186
  }
187
187
  function saveEnvValues(values, baseUrl, scope) {
188
188
  const filtered = {
189
- ...values[_chunkMLQJVAVSjs.HOST_URL_ENV] ? { [_chunkMLQJVAVSjs.HOST_URL_ENV]: values[_chunkMLQJVAVSjs.HOST_URL_ENV] } : {},
190
- ...values[_chunkMLQJVAVSjs.API_KEY_ENV] ? { [_chunkMLQJVAVSjs.API_KEY_ENV]: values[_chunkMLQJVAVSjs.API_KEY_ENV] } : {},
191
- ...values[_chunkMLQJVAVSjs.ACTIVE_ORG_ID_ENV] ? { [_chunkMLQJVAVSjs.ACTIVE_ORG_ID_ENV]: values[_chunkMLQJVAVSjs.ACTIVE_ORG_ID_ENV] } : {},
192
- ...Object.prototype.hasOwnProperty.call(values, _chunkMLQJVAVSjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkMLQJVAVSjs.ACTIVE_ORG_NAME_ENV]: values[_chunkMLQJVAVSjs.ACTIVE_ORG_NAME_ENV] } : {},
189
+ ...values[_chunk5FHU67ATjs.HOST_URL_ENV] ? { [_chunk5FHU67ATjs.HOST_URL_ENV]: values[_chunk5FHU67ATjs.HOST_URL_ENV] } : {},
190
+ ...values[_chunk5FHU67ATjs.API_KEY_ENV] ? { [_chunk5FHU67ATjs.API_KEY_ENV]: values[_chunk5FHU67ATjs.API_KEY_ENV] } : {},
191
+ ...values[_chunk5FHU67ATjs.ACTIVE_ORG_ID_ENV] ? { [_chunk5FHU67ATjs.ACTIVE_ORG_ID_ENV]: values[_chunk5FHU67ATjs.ACTIVE_ORG_ID_ENV] } : {},
192
+ ...Object.prototype.hasOwnProperty.call(values, _chunk5FHU67ATjs.ACTIVE_ORG_NAME_ENV) ? { [_chunk5FHU67ATjs.ACTIVE_ORG_NAME_ENV]: values[_chunk5FHU67ATjs.ACTIVE_ORG_NAME_ENV] } : {},
193
193
  // An explicit empty list must reach the store: it clears a stale line.
194
- ...Object.prototype.hasOwnProperty.call(values, _chunkMLQJVAVSjs.FEATURES_ENV) ? { [_chunkMLQJVAVSjs.FEATURES_ENV]: values[_chunkMLQJVAVSjs.FEATURES_ENV] } : {}
194
+ ...Object.prototype.hasOwnProperty.call(values, _chunk5FHU67ATjs.FEATURES_ENV) ? { [_chunk5FHU67ATjs.FEATURES_ENV]: values[_chunk5FHU67ATjs.FEATURES_ENV] } : {}
195
195
  };
196
196
  if (scope === "folder") {
197
- _chunkMLQJVAVSjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
197
+ _chunk5FHU67ATjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
198
198
  } else {
199
- _chunkMLQJVAVSjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
199
+ _chunk5FHU67ATjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
200
200
  }
201
201
  }
202
202
  function activeOrgEnvValues(data) {
@@ -204,21 +204,21 @@ function activeOrgEnvValues(data) {
204
204
  if (!orgId) return {};
205
205
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
206
206
  return {
207
- [_chunkMLQJVAVSjs.ACTIVE_ORG_ID_ENV]: orgId,
208
- [_chunkMLQJVAVSjs.ACTIVE_ORG_NAME_ENV]: orgName,
209
- ..._chunkMLQJVAVSjs.featureEnvValues.call(void 0, data)
207
+ [_chunk5FHU67ATjs.ACTIVE_ORG_ID_ENV]: orgId,
208
+ [_chunk5FHU67ATjs.ACTIVE_ORG_NAME_ENV]: orgName,
209
+ ..._chunk5FHU67ATjs.featureEnvValues.call(void 0, data)
210
210
  };
211
211
  }
212
212
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
213
213
  const headers = {
214
214
  "Content-Type": "application/json",
215
- "User-Agent": `deepline-ts-sdk/${_chunkDK5Y5BD3js.SDK_VERSION}`,
215
+ "User-Agent": `deepline-ts-sdk/${_chunkSYWOSAW7js.SDK_VERSION}`,
216
216
  "X-Deepline-Client-Family": "sdk",
217
217
  "X-Deepline-CLI-Family": "sdk",
218
- "X-Deepline-Agent-Runtime": _chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, ),
219
- "X-Deepline-CLI-Version": _chunkDK5Y5BD3js.SDK_VERSION,
220
- "X-Deepline-SDK-Version": _chunkDK5Y5BD3js.SDK_VERSION,
221
- "X-Deepline-API-Contract": _chunkDK5Y5BD3js.SDK_API_CONTRACT
218
+ "X-Deepline-Agent-Runtime": _chunkSYWOSAW7js.detectAgentRuntime.call(void 0, ),
219
+ "X-Deepline-CLI-Version": _chunkSYWOSAW7js.SDK_VERSION,
220
+ "X-Deepline-SDK-Version": _chunkSYWOSAW7js.SDK_VERSION,
221
+ "X-Deepline-API-Contract": _chunkSYWOSAW7js.SDK_API_CONTRACT
222
222
  };
223
223
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
224
224
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -264,7 +264,7 @@ async function readStatusBanner(baseUrl) {
264
264
  return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
265
265
  }
266
266
  async function reportSetupCompleted(input) {
267
- const apiKey = input.authScope === "folder" ? _chunkMLQJVAVSjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkMLQJVAVSjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
267
+ const apiKey = input.authScope === "folder" ? _chunk5FHU67ATjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunk5FHU67ATjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
268
268
  if (!apiKey) return;
269
269
  try {
270
270
  await httpJson(
@@ -361,7 +361,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
361
361
  }
362
362
  }
363
363
  async function handleRegister(args) {
364
- const baseUrl = _chunkMLQJVAVSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
364
+ const baseUrl = _chunk5FHU67ATjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
365
365
  let orgName = "";
366
366
  let orgId = "";
367
367
  let agentName = "";
@@ -416,19 +416,19 @@ async function handleRegister(args) {
416
416
  });
417
417
  saveEnvValues(
418
418
  {
419
- [_chunkMLQJVAVSjs.HOST_URL_ENV]: baseUrl
419
+ [_chunk5FHU67ATjs.HOST_URL_ENV]: baseUrl
420
420
  },
421
421
  baseUrl,
422
422
  authScope
423
423
  );
424
424
  }
425
425
  if (claimUrl) {
426
- const shouldOpen = waitMode !== "no" && _chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
426
+ const shouldOpen = waitMode !== "no" && _chunkSYWOSAW7js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
427
427
  console.log(
428
428
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
429
429
  );
430
430
  console.log(` ${claimUrl}`);
431
- if (shouldOpen) _chunkYRM5TPXLjs.openInBrowser.call(void 0, claimUrl);
431
+ if (shouldOpen) _chunkH7YFUC3Jjs.openInBrowser.call(void 0, claimUrl);
432
432
  }
433
433
  if (data.cli_message) {
434
434
  console.log(String(data.cli_message));
@@ -471,8 +471,8 @@ async function handleRegister(args) {
471
471
  if (apiKey) {
472
472
  saveEnvValues(
473
473
  {
474
- [_chunkMLQJVAVSjs.HOST_URL_ENV]: baseUrl,
475
- [_chunkMLQJVAVSjs.API_KEY_ENV]: apiKey,
474
+ [_chunk5FHU67ATjs.HOST_URL_ENV]: baseUrl,
475
+ [_chunk5FHU67ATjs.API_KEY_ENV]: apiKey,
476
476
  ...activeOrgEnvValues(statusData)
477
477
  },
478
478
  baseUrl,
@@ -494,7 +494,7 @@ async function handleRegister(args) {
494
494
  }
495
495
  }
496
496
  async function handleWait(args) {
497
- const baseUrl = _chunkMLQJVAVSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
497
+ const baseUrl = _chunk5FHU67ATjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
498
498
  let timeoutSeconds = 300;
499
499
  let requestedScope;
500
500
  if (args.includes("--auth-scope")) {
@@ -518,7 +518,7 @@ async function handleWait(args) {
518
518
  const authScope = resumed.scope;
519
519
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _12 => _12.claimToken]), () => ( ""));
520
520
  if (!pendingClaim) {
521
- const scopedApiKey = authScope === "folder" ? _chunkMLQJVAVSjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkMLQJVAVSjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
521
+ const scopedApiKey = authScope === "folder" ? _chunk5FHU67ATjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk5FHU67ATjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
522
522
  if (scopedApiKey) {
523
523
  console.log("Already connected.");
524
524
  return EXIT_OK;
@@ -561,8 +561,8 @@ async function handleWait(args) {
561
561
  if (apiKey) {
562
562
  saveEnvValues(
563
563
  {
564
- [_chunkMLQJVAVSjs.HOST_URL_ENV]: baseUrl,
565
- [_chunkMLQJVAVSjs.API_KEY_ENV]: apiKey,
564
+ [_chunk5FHU67ATjs.HOST_URL_ENV]: baseUrl,
565
+ [_chunk5FHU67ATjs.API_KEY_ENV]: apiKey,
566
566
  ...activeOrgEnvValues(data)
567
567
  },
568
568
  baseUrl,
@@ -586,8 +586,8 @@ async function handleWait(args) {
586
586
  return EXIT_AUTH;
587
587
  }
588
588
  async function authStatusLine(timeoutMs = 3e3) {
589
- const baseUrl = _chunkMLQJVAVSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
590
- const apiKey = _chunkMLQJVAVSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
589
+ const baseUrl = _chunk5FHU67ATjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
590
+ const apiKey = _chunk5FHU67ATjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
591
591
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
592
592
  try {
593
593
  const { status, data } = await httpJson(
@@ -610,9 +610,9 @@ async function authStatusLine(timeoutMs = 3e3) {
610
610
  }
611
611
  }
612
612
  async function handleStatus(args) {
613
- const baseUrl = _chunkMLQJVAVSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
613
+ const baseUrl = _chunk5FHU67ATjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
614
614
  const reveal = args.includes("--reveal");
615
- const jsonOutput = _chunkYRM5TPXLjs.argsWantJson.call(void 0, args);
615
+ const jsonOutput = _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args);
616
616
  const hasExplicitAuthScope = args.includes("--auth-scope");
617
617
  let authScope = null;
618
618
  if (hasExplicitAuthScope) {
@@ -653,14 +653,14 @@ async function handleStatus(args) {
653
653
  };
654
654
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
655
655
  }
656
- const apiKey = authScope === "folder" ? _chunkMLQJVAVSjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkMLQJVAVSjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkMLQJVAVSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
656
+ const apiKey = authScope === "folder" ? _chunk5FHU67ATjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunk5FHU67ATjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk5FHU67ATjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
657
657
  if (!apiKey) {
658
658
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
659
659
  baseUrl,
660
660
  _nullishCoalesce(authScope, () => ( void 0))
661
661
  );
662
662
  if (pendingClaim) {
663
- _chunkYRM5TPXLjs.printCommandEnvelope.call(void 0,
663
+ _chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
664
664
  {
665
665
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
666
666
  status: "pending",
@@ -681,7 +681,7 @@ async function handleStatus(args) {
681
681
  );
682
682
  return EXIT_OK;
683
683
  }
684
- _chunkYRM5TPXLjs.printCommandEnvelope.call(void 0,
684
+ _chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
685
685
  {
686
686
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
687
687
  status: "not connected",
@@ -714,7 +714,7 @@ async function handleStatus(args) {
714
714
  }
715
715
  );
716
716
  if (status === 401 || status === 403) {
717
- _chunkYRM5TPXLjs.printCommandEnvelope.call(void 0,
717
+ _chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
718
718
  {
719
719
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
720
720
  status: "unauthorized",
@@ -741,7 +741,7 @@ async function handleStatus(args) {
741
741
  console.error(`Auth status error (status ${status}).`);
742
742
  return EXIT_SERVER;
743
743
  }
744
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkMLQJVAVSjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
744
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunk5FHU67ATjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
745
745
  clearSatisfiedPendingClaim(
746
746
  baseUrl,
747
747
  resolvedAuthScope,
@@ -769,28 +769,28 @@ async function handleStatus(args) {
769
769
  if (apiKeyResp) {
770
770
  saveEnvValues(
771
771
  {
772
- [_chunkMLQJVAVSjs.HOST_URL_ENV]: baseUrl,
773
- [_chunkMLQJVAVSjs.API_KEY_ENV]: apiKeyResp,
772
+ [_chunk5FHU67ATjs.HOST_URL_ENV]: baseUrl,
773
+ [_chunk5FHU67ATjs.API_KEY_ENV]: apiKeyResp,
774
774
  ...activeOrgEnvValues(data)
775
775
  },
776
776
  baseUrl,
777
777
  resolvedAuthScope
778
778
  );
779
779
  if (resolvedAuthScope === "folder") {
780
- const target = _chunkMLQJVAVSjs.resolveProjectPinTarget.call(void 0, );
780
+ const target = _chunk5FHU67ATjs.resolveProjectPinTarget.call(void 0, );
781
781
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
782
782
  } else {
783
783
  savedApiKeyPath = envFilePath(baseUrl);
784
784
  }
785
785
  }
786
- } else if (resolvedAuthScope === "folder" || _chunkMLQJVAVSjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
787
- saveEnvValues(_chunkMLQJVAVSjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
786
+ } else if (resolvedAuthScope === "folder" || _chunk5FHU67ATjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
787
+ saveEnvValues(_chunk5FHU67ATjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
788
788
  }
789
- _chunkYRM5TPXLjs.printCommandEnvelope.call(void 0,
789
+ _chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
790
790
  {
791
791
  ...payload,
792
- ..._chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
793
- command_context: _chunkMLQJVAVSjs.resolveCliCommandContext.call(void 0,
792
+ ..._chunkSYWOSAW7js.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
793
+ command_context: _chunk5FHU67ATjs.resolveCliCommandContext.call(void 0,
794
794
  { baseUrl, apiKey },
795
795
  resolvedAuthScope
796
796
  )