deepline 0.3.455 → 0.3.456

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 (112) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +23 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/cli/{auth-BGPCPVHW.mjs → auth-OBWRDCK3.mjs} +4 -4
  4. package/dist/cli/auth-X5H25CM4.js +40 -0
  5. package/dist/cli/{billing-FCC2YOKB.js → billing-XDDTD7C3.js} +73 -73
  6. package/dist/cli/{billing-6BLEXHCR.mjs → billing-ZR4OHVLA.mjs} +4 -4
  7. package/dist/cli/{chunk-IUSGWMGK.mjs → chunk-4EMVWEUJ.mjs} +2 -2
  8. package/dist/cli/{chunk-LQH2KJ53.js → chunk-4X5H47H5.js} +81 -81
  9. package/dist/cli/{chunk-CZREA5NE.js → chunk-76GTVFFG.js} +8 -8
  10. package/dist/cli/{chunk-R2GLGLDR.mjs → chunk-77Z5BO7D.mjs} +21 -0
  11. package/dist/cli/{chunk-YIFCV77L.mjs → chunk-7PW2K3AT.mjs} +2 -2
  12. package/dist/cli/{chunk-RYGDM5BG.mjs → chunk-AGWG2PVB.mjs} +1 -1
  13. package/dist/cli/{chunk-3E4WSS35.mjs → chunk-APPPIUEW.mjs} +1 -1
  14. package/dist/cli/{chunk-NMJ4D2WO.js → chunk-AQFHU3DW.js} +21 -0
  15. package/dist/cli/{chunk-2SN2EEQW.js → chunk-BQWHXKXO.js} +16 -16
  16. package/dist/cli/{chunk-6F7TD4M4.js → chunk-CJTOZLFI.js} +6 -6
  17. package/dist/cli/{chunk-FCQ52RUB.mjs → chunk-GQVMERZ7.mjs} +2 -2
  18. package/dist/cli/{chunk-R5VMRVRN.mjs → chunk-HZODG765.mjs} +4 -4
  19. package/dist/cli/{chunk-2VHR5DXQ.mjs → chunk-IQ5OW2WC.mjs} +3 -3
  20. package/dist/cli/{chunk-EXZOUJCD.js → chunk-J2KWJKTM.js} +3 -3
  21. package/dist/cli/{chunk-MFKTYIBJ.js → chunk-K5TWU5I6.js} +51 -51
  22. package/dist/cli/{chunk-VMGTYM3A.js → chunk-KFCXTVDW.js} +20 -20
  23. package/dist/cli/{chunk-LRA5YJVV.mjs → chunk-M7FF76WO.mjs} +1 -1
  24. package/dist/cli/{chunk-3RQY2OG7.mjs → chunk-NXJEDRPH.mjs} +2 -2
  25. package/dist/cli/{chunk-J7WYWQF4.js → chunk-OQEIP4HF.js} +6 -6
  26. package/dist/cli/{chunk-WVGPAP7A.mjs → chunk-P5MB2PXV.mjs} +3 -3
  27. package/dist/cli/{chunk-MCMLQ7GD.js → chunk-PPF557JY.js} +8 -8
  28. package/dist/cli/{chunk-YKEWDVZC.js → chunk-QLB5T7IS.js} +26 -26
  29. package/dist/cli/{chunk-2R7JD2NY.js → chunk-S3D7OY6D.js} +4 -4
  30. package/dist/cli/{chunk-BCB2QNG4.js → chunk-SAO7KYJE.js} +2 -2
  31. package/dist/cli/{chunk-SMZUU4NY.js → chunk-SHWMFFKX.js} +2 -2
  32. package/dist/cli/{chunk-UVJLG5KD.js → chunk-SOUPX3YJ.js} +50 -50
  33. package/dist/cli/{chunk-4Z3X5CWI.mjs → chunk-U4JZWJ52.mjs} +1 -1
  34. package/dist/cli/{chunk-W3DIXRDT.js → chunk-VVYM2F7X.js} +21 -10
  35. package/dist/cli/{chunk-WBULEVM4.mjs → chunk-W64S7C55.mjs} +1 -1
  36. package/dist/cli/{chunk-6TOMXZX3.js → chunk-WEHXHC7N.js} +1 -1
  37. package/dist/cli/{chunk-VIGEE67Z.mjs → chunk-WXCYW6PA.mjs} +3 -3
  38. package/dist/cli/{chunk-B7K3QD5W.mjs → chunk-XRNBDUYR.mjs} +8 -8
  39. package/dist/cli/{chunk-RQMEYYN4.js → chunk-XVGEAB44.js} +35 -35
  40. package/dist/cli/{chunk-4BZFRLKU.mjs → chunk-YMV3AULG.mjs} +5 -5
  41. package/dist/cli/{chunk-DPTEABFU.mjs → chunk-ZCXFZSVH.mjs} +1 -1
  42. package/dist/cli/{chunk-PQ4JU2MV.mjs → chunk-ZODPS5JW.mjs} +12 -1
  43. package/dist/cli/command-docs.js +2 -2
  44. package/dist/cli/command-docs.mjs +1 -1
  45. package/dist/cli/{csv-TEAA2YV5.js → csv-B35BFYGT.js} +12 -12
  46. package/dist/cli/{csv-27T3L4RC.mjs → csv-P2ATJQUY.mjs} +3 -3
  47. package/dist/cli/{db-J3PPU7GX.js → db-ELEZFHG7.js} +25 -25
  48. package/dist/cli/{db-N3NRYYI4.mjs → db-PSITREEX.mjs} +4 -4
  49. package/dist/cli/{describe-PX7XBLZF.js → describe-AXWFWCWZ.js} +17 -17
  50. package/dist/cli/{describe-SJBCCTR7.mjs → describe-E2ZFRC5Z.mjs} +13 -13
  51. package/dist/cli/describe-core.d.mts +1 -1
  52. package/dist/cli/describe-core.d.ts +1 -1
  53. package/dist/cli/{executions-XN376RR4.mjs → executions-BZTPNWW2.mjs} +4 -4
  54. package/dist/cli/{executions-WXIL4C5M.js → executions-GWYPVJYE.js} +6 -6
  55. package/dist/cli/{feedback-KHJXJ2K7.mjs → feedback-F3RKOHZN.mjs} +3 -3
  56. package/dist/cli/{feedback-LG5NWE3R.js → feedback-UCW6EFOR.js} +7 -7
  57. package/dist/cli/git-HEKGLILK.js +24 -0
  58. package/dist/cli/{git-726A5HHA.mjs → git-LGQMBBO3.mjs} +4 -4
  59. package/dist/cli/index.js +136 -136
  60. package/dist/cli/index.mjs +38 -38
  61. package/dist/cli/{legacy-noops-V4WS63SD.mjs → legacy-noops-4TVFFILL.mjs} +4 -4
  62. package/dist/cli/{legacy-noops-QI6VN34P.js → legacy-noops-SRH3BPNV.js} +7 -7
  63. package/dist/cli/{monitors-ICQ2Q4XT.js → monitors-6NHXI3EW.js} +89 -89
  64. package/dist/cli/{monitors-AAWRYPHY.mjs → monitors-WBST3XUH.mjs} +5 -5
  65. package/dist/cli/{org-5JV6KYY2.js → org-5EFVZUB2.js} +66 -66
  66. package/dist/cli/{org-7VJKBTZX.mjs → org-DSDNRGDV.mjs} +4 -4
  67. package/dist/cli/{play-2D6ZIJEV.mjs → play-EKOV2T5N.mjs} +11 -11
  68. package/dist/cli/{play-HDI2MLJL.js → play-RMWBABCH.js} +284 -284
  69. package/dist/cli/{providers-KSKVBQFP.mjs → providers-AWNJWZWD.mjs} +46 -4
  70. package/dist/cli/{providers-GIE2W4ZG.js → providers-Y4EYH7IZ.js} +50 -8
  71. package/dist/cli/{quickstart-7OGLDF3M.mjs → quickstart-CPW66MBY.mjs} +3 -3
  72. package/dist/cli/{quickstart-JKNKNDXG.js → quickstart-JQ3W6LWQ.js} +5 -5
  73. package/dist/cli/search-PJXI2GJR.js +30 -0
  74. package/dist/cli/{search-CPKXOGV4.mjs → search-VP4Y6MQU.mjs} +5 -5
  75. package/dist/cli/{secrets-QHGLI7O6.mjs → secrets-2VEENFF4.mjs} +4 -4
  76. package/dist/cli/{secrets-LFQXTVIE.js → secrets-CPMHM5HU.js} +13 -13
  77. package/dist/cli/{sessions-HVMTS7N5.js → sessions-ALPCLDJI.js} +5 -5
  78. package/dist/cli/{sessions-M4OT6NPP.mjs → sessions-INDUUZ3K.mjs} +4 -4
  79. package/dist/cli/{settings-BJBOMHL2.mjs → settings-3YBZZPAM.mjs} +10 -10
  80. package/dist/cli/{settings-42WLEHAZ.js → settings-5PO4C33K.js} +77 -77
  81. package/dist/cli/{setup-ILUF7GCP.mjs → setup-7SOJ4INF.mjs} +8 -8
  82. package/dist/cli/{setup-6TZ4L5LT.js → setup-RK2MUVXO.js} +43 -43
  83. package/dist/cli/{skills-7RIWQDD6.mjs → skills-5PR5RTOX.mjs} +6 -6
  84. package/dist/cli/skills-J3243JQE.js +30 -0
  85. package/dist/cli/{tools-J3VDLDF2.mjs → tools-OSJJUP36.mjs} +13 -13
  86. package/dist/cli/tools-V2B44RFH.js +45 -0
  87. package/dist/cli/update-CKIL2SWB.js +32 -0
  88. package/dist/cli/{update-GMXJF4WT.mjs → update-TDCMXJ62.mjs} +8 -8
  89. package/dist/cli/{workflow-LVVK2N3T.js → workflow-6DKCCQYA.js} +15 -15
  90. package/dist/cli/{workflow-W7NQS26K.mjs → workflow-6O24O6LT.mjs} +5 -5
  91. package/dist/{client-BbU5_j7n.d.mts → client-BX2EVlPo.d.mts} +14 -0
  92. package/dist/{client-CYqG23K1.d.ts → client-CRz2laoR.d.ts} +14 -0
  93. package/dist/index.d.mts +2 -2
  94. package/dist/index.d.ts +2 -2
  95. package/dist/index.js +6 -6
  96. package/dist/index.mjs +3 -3
  97. package/dist/install-integrity.json +84 -84
  98. package/dist/plays/play-description.d.mts +1 -1
  99. package/dist/plays/play-description.d.ts +1 -1
  100. package/dist/plays/run-request.d.mts +1 -1
  101. package/dist/plays/run-request.d.ts +1 -1
  102. package/dist/release.d.mts +1 -1
  103. package/dist/release.d.ts +1 -1
  104. package/dist/release.js +2 -2
  105. package/dist/release.mjs +1 -1
  106. package/package.json +1 -1
  107. package/dist/cli/auth-SRR4DW75.js +0 -40
  108. package/dist/cli/git-PXYOFDQH.js +0 -24
  109. package/dist/cli/search-LOWDQS5X.js +0 -30
  110. package/dist/cli/skills-I5OWZZ2Z.js +0 -30
  111. package/dist/cli/tools-Y4SPWXFJ.js +0 -45
  112. package/dist/cli/update-HQ5WT3G6.js +0 -32
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-WBULEVM4.mjs";
3
+ } from "./chunk-W64S7C55.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-WVGPAP7A.mjs";
8
+ } from "./chunk-P5MB2PXV.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -3,7 +3,7 @@ import {
3
3
  detectAgentRuntime,
4
4
  resolveCliCommandContext,
5
5
  resolveConfig
6
- } from "./chunk-LRA5YJVV.mjs";
6
+ } from "./chunk-M7FF76WO.mjs";
7
7
  import {
8
8
  DeeplineError,
9
9
  serializeToolExecutionFailure
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-WVGPAP7A.mjs";
3
+ } from "./chunk-P5MB2PXV.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -40,6 +40,27 @@ Conventions (apply to every tool):
40
40
  ]]
41
41
  `;
42
42
  var COMMAND_DOCS = {
43
+ "providers connect": {
44
+ core: `Purpose: Start OAuth authorization for an integration.
45
+ Input: Pass its provider ID,
46
+ for example: deepline providers connect apollo. The response contains ok and
47
+ redirect_url. Open redirect_url in a browser signed into the intended Deepline
48
+ workspace, then sign into the provider and approve access. Returning a URL does
49
+ not mean authorization is complete. --scopes accepts a quoted space-separated
50
+ list; omit it for the provider's default permissions. This stores an account
51
+ connection after approval and does not execute provider tools.
52
+ Cost: Does not spend Deepline credits.`
53
+ },
54
+ "providers test": {
55
+ core: `Purpose: Verify a connected OAuth integration, for example:
56
+ deepline providers test apollo --json. Input: Pass a provider ID with an OAuth test
57
+ endpoint. The result includes provider, status, hasAccessToken, hasRefreshToken,
58
+ expiresAt and apiCheck; tokens are never returned. Expired credentials refresh
59
+ through the normal lifecycle before a read-only provider probe. This does not
60
+ prove every tool's permissions. Run tools describe and a bounded read tool to
61
+ verify data access. Provider errors fail the command.
62
+ Cost: The connection probe does not spend Deepline credits.`
63
+ },
43
64
  "": {
44
65
  core: `
45
66
  [[cli:
@@ -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 _chunkBCB2QNG4js = require('./chunk-BCB2QNG4.js');
4
+ var _chunkSAO7KYJEjs = require('./chunk-SAO7KYJE.js');
5
5
 
6
6
 
7
- var _chunkRQMEYYN4js = require('./chunk-RQMEYYN4.js');
7
+ var _chunkXVGEAB44js = require('./chunk-XVGEAB44.js');
8
8
 
9
9
 
10
- var _chunkMFKTYIBJjs = require('./chunk-MFKTYIBJ.js');
10
+ var _chunkK5TWU5I6js = require('./chunk-K5TWU5I6.js');
11
11
 
12
12
 
13
- var _chunkJ7WYWQF4js = require('./chunk-J7WYWQF4.js');
13
+ var _chunkOQEIP4HFjs = require('./chunk-OQEIP4HF.js');
14
14
 
15
15
 
16
- var _chunk2R7JD2NYjs = require('./chunk-2R7JD2NY.js');
16
+ var _chunkS3D7OY6Djs = require('./chunk-S3D7OY6D.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 = _chunkMFKTYIBJjs.resolveShellSpawn.call(void 0,
498
+ const plan = _chunkK5TWU5I6js.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 ? _chunkBCB2QNG4js.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkBCB2QNG4js.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 ? _chunkSAO7KYJEjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunkSAO7KYJEjs.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()]) || _chunk2R7JD2NYjs.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkS3D7OY6Djs.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 = _chunkMFKTYIBJjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunkK5TWU5I6js.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, () => ( _chunk2R7JD2NYjs.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkS3D7OY6Djs.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 _chunkRQMEYYN4js.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkXVGEAB44js.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunkOQEIP4HFjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
1284
+ _chunkOQEIP4HFjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunkOQEIP4HFjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
1327
+ _chunkOQEIP4HFjs.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkSMZUU4NYjs = require('./chunk-SMZUU4NY.js');
3
+ var _chunkSHWMFFKXjs = require('./chunk-SHWMFFKX.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkMFKTYIBJjs = require('./chunk-MFKTYIBJ.js');
8
+ var _chunkK5TWU5I6js = require('./chunk-K5TWU5I6.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") _chunkMFKTYIBJjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
18
- const compatibility = await _chunkSMZUU4NYjs.traceCliSpan.call(void 0,
17
+ if (maintenancePolicy !== "off") _chunkK5TWU5I6js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
18
+ const compatibility = await _chunkSHWMFFKXjs.traceCliSpan.call(void 0,
19
19
  "cli.sdk_compatibility",
20
20
  { baseUrl, command: "plays run" },
21
- () => _chunkMFKTYIBJjs.checkSdkCompatibility.call(void 0, baseUrl, {
21
+ () => _chunkK5TWU5I6js.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
- _chunkMFKTYIBJjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
27
+ _chunkK5TWU5I6js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
28
28
  quietAdvisory: true
29
29
  });
30
30
  }
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-RYGDM5BG.mjs";
5
+ } from "./chunk-AGWG2PVB.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -25,7 +25,7 @@ import {
25
25
  saveHostEnvValues,
26
26
  saveProjectDeeplineEnvValues,
27
27
  storedHostApiKey
28
- } from "./chunk-LRA5YJVV.mjs";
28
+ } from "./chunk-M7FF76WO.mjs";
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
  import {
@@ -4,18 +4,18 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-4BZFRLKU.mjs";
7
+ } from "./chunk-YMV3AULG.mjs";
8
8
  import {
9
9
  isCiEnvironment
10
- } from "./chunk-WVGPAP7A.mjs";
10
+ } from "./chunk-P5MB2PXV.mjs";
11
11
  import {
12
12
  addJsonNotice,
13
13
  isJsonOutputMode
14
- } from "./chunk-RYGDM5BG.mjs";
14
+ } from "./chunk-AGWG2PVB.mjs";
15
15
  import {
16
16
  SDK_VERSION,
17
17
  resolveApiKeyForBaseUrl
18
- } from "./chunk-LRA5YJVV.mjs";
18
+ } from "./chunk-M7FF76WO.mjs";
19
19
 
20
20
  // src/cli/compatibility-catalog.ts
21
21
  var readers = /* @__PURE__ */ new WeakMap();
@@ -11,10 +11,10 @@ import {
11
11
  skillsInstallLeasePath,
12
12
  skillsSourceUrl,
13
13
  syncSdkSkillsIfNeeded
14
- } from "./chunk-WVGPAP7A.mjs";
14
+ } from "./chunk-P5MB2PXV.mjs";
15
15
  import {
16
16
  printCommandEnvelope
17
- } from "./chunk-RYGDM5BG.mjs";
17
+ } from "./chunk-AGWG2PVB.mjs";
18
18
  import {
19
19
  SDK_VERSION,
20
20
  autoDetectBaseUrl,
@@ -22,7 +22,7 @@ import {
22
22
  ensureProjectPrivatePathsIgnored,
23
23
  resolveProjectPinTarget,
24
24
  sdkCliStateDirPath
25
- } from "./chunk-LRA5YJVV.mjs";
25
+ } from "./chunk-M7FF76WO.mjs";
26
26
 
27
27
  // src/cli/commands/skills.ts
28
28
  import { spawn } from "child_process";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; } var _class;
2
2
 
3
- var _chunkJ7WYWQF4js = require('./chunk-J7WYWQF4.js');
3
+ var _chunkOQEIP4HFjs = require('./chunk-OQEIP4HF.js');
4
4
 
5
5
  // src/cli/progress.ts
6
6
  var _worker_threads = require('worker_threads');
@@ -15,7 +15,7 @@ var CliProgress = (_class = class {
15
15
 
16
16
  // --json output is one JSON document: progress never renders under it.
17
17
  constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);
18
- this.enabled = enabled && !_chunkJ7WYWQF4js.isJsonOutputMode.call(void 0, );
18
+ this.enabled = enabled && !_chunkOQEIP4HFjs.isJsonOutputMode.call(void 0, );
19
19
  }
20
20
  phase(message) {
21
21
  if (!this.enabled || this.lastMessage === message) {
@@ -40,7 +40,7 @@ var CliProgress = (_class = class {
40
40
  this.settle("\u2717");
41
41
  }
42
42
  writeLogLine(line) {
43
- if (_chunkJ7WYWQF4js.isJsonOutputMode.call(void 0, )) return;
43
+ if (_chunkOQEIP4HFjs.isJsonOutputMode.call(void 0, )) return;
44
44
  if (!this.enabled) {
45
45
  process.stderr.write(`${line}
46
46
  `);
@@ -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 _chunkEXZOUJCDjs = require('./chunk-EXZOUJCD.js');
3
+ var _chunkJ2KWJKTMjs = require('./chunk-J2KWJKTM.js');
4
4
 
5
5
 
6
6
 
@@ -17,13 +17,13 @@ var _chunkEXZOUJCDjs = require('./chunk-EXZOUJCD.js');
17
17
 
18
18
 
19
19
 
20
- var _chunk2R7JD2NYjs = require('./chunk-2R7JD2NY.js');
20
+ var _chunkS3D7OY6Djs = require('./chunk-S3D7OY6D.js');
21
21
 
22
22
 
23
23
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
24
24
 
25
25
 
26
- var _chunk6TOMXZX3js = require('./chunk-6TOMXZX3.js');
26
+ var _chunkWEHXHC7Njs = require('./chunk-WEHXHC7N.js');
27
27
 
28
28
  // src/compat.ts
29
29
  var _crypto = require('crypto');
@@ -58,7 +58,7 @@ function shouldSkipCompatibilityCheck() {
58
58
  return value === "1" || value === "true" || value === "yes";
59
59
  }
60
60
  function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
61
- return _path.join.call(void 0, _chunk2R7JD2NYjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
61
+ return _path.join.call(void 0, _chunkS3D7OY6Djs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
62
62
  }
63
63
  function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
64
64
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -66,9 +66,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
66
66
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
67
67
  return JSON.stringify({
68
68
  baseUrl: baseUrl.replace(/\/$/, ""),
69
- version: _chunk2R7JD2NYjs.SDK_VERSION,
70
- apiContract: _chunk2R7JD2NYjs.SDK_API_CONTRACT,
71
- apiMajor: _chunk2R7JD2NYjs.SDK_API_MAJOR,
69
+ version: _chunkS3D7OY6Djs.SDK_VERSION,
70
+ apiContract: _chunkS3D7OY6Djs.SDK_API_CONTRACT,
71
+ apiMajor: _chunkS3D7OY6Djs.SDK_API_MAJOR,
72
72
  command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
73
73
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
74
74
  });
@@ -76,8 +76,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
76
76
  function legacyCompatibilityCacheKey(baseUrl, command) {
77
77
  return JSON.stringify({
78
78
  baseUrl: baseUrl.replace(/\/$/, ""),
79
- version: _chunk2R7JD2NYjs.SDK_VERSION,
80
- apiContract: _chunk2R7JD2NYjs.SDK_API_CONTRACT,
79
+ version: _chunkS3D7OY6Djs.SDK_VERSION,
80
+ apiContract: _chunkS3D7OY6Djs.SDK_API_CONTRACT,
81
81
  command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
82
82
  });
83
83
  }
@@ -102,7 +102,7 @@ function isSavedWithin(savedAt, windowMs, now) {
102
102
  }
103
103
  var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
104
104
  function claimUpdateAdvisory(baseUrl, now = Date.now()) {
105
- const path = _path.join.call(void 0, _chunk2R7JD2NYjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
105
+ const path = _path.join.call(void 0, _chunkS3D7OY6Djs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
106
106
  try {
107
107
  const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
108
108
  if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
@@ -186,7 +186,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
186
186
  );
187
187
  try {
188
188
  const url = new URL("/api/v2/sdk/compat", baseUrl);
189
- url.searchParams.set("version", _chunk2R7JD2NYjs.SDK_VERSION);
189
+ url.searchParams.set("version", _chunkS3D7OY6Djs.SDK_VERSION);
190
190
  if (_optionalChain([options, 'access', _27 => _27.command, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()])) {
191
191
  url.searchParams.set("command", options.command.trim());
192
192
  }
@@ -194,7 +194,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
194
194
  url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
195
195
  url.searchParams.set(
196
196
  "skills_cli_capability",
197
- String(_chunk6TOMXZX3js.SDK_RELEASE.packageCapabilities.skillsGuidance)
197
+ String(_chunkWEHXHC7Njs.SDK_RELEASE.packageCapabilities.skillsGuidance)
198
198
  );
199
199
  }
200
200
  if (options.catalog) {
@@ -206,14 +206,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
206
206
  const response = await fetch(url, {
207
207
  method: "GET",
208
208
  headers: {
209
- ..._chunk2R7JD2NYjs.deploymentProtectionHeaders.call(void 0, ),
210
- "User-Agent": `deepline-ts-sdk/${_chunk2R7JD2NYjs.SDK_VERSION}`,
211
- "X-Deepline-SDK-Version": _chunk2R7JD2NYjs.SDK_VERSION,
212
- "X-Deepline-API-Major": String(_chunk2R7JD2NYjs.SDK_API_MAJOR),
213
- "X-Deepline-API-Contract": _chunk2R7JD2NYjs.SDK_API_CONTRACT,
209
+ ..._chunkS3D7OY6Djs.deploymentProtectionHeaders.call(void 0, ),
210
+ "User-Agent": `deepline-ts-sdk/${_chunkS3D7OY6Djs.SDK_VERSION}`,
211
+ "X-Deepline-SDK-Version": _chunkS3D7OY6Djs.SDK_VERSION,
212
+ "X-Deepline-API-Major": String(_chunkS3D7OY6Djs.SDK_API_MAJOR),
213
+ "X-Deepline-API-Contract": _chunkS3D7OY6Djs.SDK_API_CONTRACT,
214
214
  "X-Deepline-CLI-Update-Preferences": "1",
215
215
  "X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
216
- ...options.catalog ? { Authorization: `Bearer ${_chunk2R7JD2NYjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
216
+ ...options.catalog ? { Authorization: `Bearer ${_chunkS3D7OY6Djs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
217
217
  ..._optionalChain([options, 'access', _30 => _30.catalog, 'optionalAccess', _31 => _31.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
218
218
  },
219
219
  signal: controller.signal
@@ -374,7 +374,7 @@ function skillsSourceUrl(baseUrl) {
374
374
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
375
375
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
376
376
  const [firstSkillName, ...extraSkillNames] = skillNames;
377
- const agents = _nullishCoalesce(options.agents, () => ( _chunk2R7JD2NYjs.DEFAULT_SKILL_AGENTS));
377
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkS3D7OY6Djs.DEFAULT_SKILL_AGENTS));
378
378
  const values = {
379
379
  skills_index_url: skillsIndexUrl(baseUrl),
380
380
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -593,7 +593,7 @@ function buildEnvironmentContext() {
593
593
  node_version: process.version,
594
594
  runtime: "Node.js",
595
595
  hostname: _os.hostname.call(void 0, ),
596
- agent_runtime: _chunk2R7JD2NYjs.detectAgentRuntime.call(void 0, )
596
+ agent_runtime: _chunkS3D7OY6Djs.detectAgentRuntime.call(void 0, )
597
597
  };
598
598
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
599
599
  const normalized = _optionalChain([process, 'access', _42 => _42.env, 'access', _43 => _43[key], 'optionalAccess', _44 => _44.trim, 'call', _45 => _45()]);
@@ -615,15 +615,15 @@ function buildEnvironmentContext() {
615
615
  }
616
616
  function failureReportHeaders(apiKey) {
617
617
  return {
618
- ..._chunk2R7JD2NYjs.deploymentProtectionHeaders.call(void 0, ),
618
+ ..._chunkS3D7OY6Djs.deploymentProtectionHeaders.call(void 0, ),
619
619
  Authorization: `Bearer ${apiKey}`,
620
620
  "Content-Type": "application/json",
621
- "User-Agent": `deepline-ts-sdk/${_chunk2R7JD2NYjs.SDK_VERSION}`,
621
+ "User-Agent": `deepline-ts-sdk/${_chunkS3D7OY6Djs.SDK_VERSION}`,
622
622
  "X-Deepline-Client-Family": "sdk",
623
623
  "X-Deepline-CLI-Family": "sdk",
624
- "X-Deepline-Agent-Runtime": _chunk2R7JD2NYjs.detectAgentRuntime.call(void 0, ),
625
- "X-Deepline-CLI-Version": _chunk2R7JD2NYjs.SDK_VERSION,
626
- "X-Deepline-SDK-Version": _chunk2R7JD2NYjs.SDK_VERSION
624
+ "X-Deepline-Agent-Runtime": _chunkS3D7OY6Djs.detectAgentRuntime.call(void 0, ),
625
+ "X-Deepline-CLI-Version": _chunkS3D7OY6Djs.SDK_VERSION,
626
+ "X-Deepline-SDK-Version": _chunkS3D7OY6Djs.SDK_VERSION
627
627
  };
628
628
  }
629
629
  async function postFailureReport(input) {
@@ -651,7 +651,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
651
651
  if (isFailureReportingDisabled()) return false;
652
652
  let apiKey = "";
653
653
  try {
654
- apiKey = _chunk2R7JD2NYjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
654
+ apiKey = _chunkS3D7OY6Djs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
655
655
  } catch (e9) {
656
656
  return false;
657
657
  }
@@ -678,7 +678,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
678
678
  failure_code: failureCode2,
679
679
  failure_stage: failureStage,
680
680
  error_body: "Automatic Deepline skills installation failed.",
681
- cli_version: _chunk2R7JD2NYjs.SDK_VERSION,
681
+ cli_version: _chunkS3D7OY6Djs.SDK_VERSION,
682
682
  context: {
683
683
  environment: buildEnvironmentContext(),
684
684
  skills_sync: {
@@ -798,7 +798,7 @@ function buildFailureReport(input) {
798
798
  failure_kind: failureKind,
799
799
  failure_code: code,
800
800
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
801
- cli_version: _chunk2R7JD2NYjs.SDK_VERSION,
801
+ cli_version: _chunkS3D7OY6Djs.SDK_VERSION,
802
802
  context: {
803
803
  base_url: redactFailureText(input.baseUrl, 400),
804
804
  command_summary: sanitizeCommand(input.argv),
@@ -818,8 +818,8 @@ async function maybeReportSdkCliFailure(input) {
818
818
  if (isServerLoggedPlayRunStartFailure(input)) return false;
819
819
  const exitCode = resolvedExitCode(input);
820
820
  if (!shouldReport({ exitCode, error: input.error })) return false;
821
- const baseUrl = _chunk2R7JD2NYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
822
- const apiKey = _chunk2R7JD2NYjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
821
+ const baseUrl = _chunkS3D7OY6Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
822
+ const apiKey = _chunkS3D7OY6Djs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
823
823
  if (!apiKey) return false;
824
824
  return postFailureReport({
825
825
  baseUrl,
@@ -856,25 +856,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
856
856
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
857
857
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
858
858
  function shouldSkipSkillsSync() {
859
- if (_chunk2R7JD2NYjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
859
+ if (_chunkS3D7OY6Djs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
860
860
  return true;
861
861
  }
862
862
  const value = _optionalChain([process, 'access', _66 => _66.env, 'access', _67 => _67.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _68 => _68.trim, 'call', _69 => _69(), 'access', _70 => _70.toLowerCase, 'call', _71 => _71()]);
863
863
  return value === "1" || value === "true" || value === "yes" || value === "on";
864
864
  }
865
865
  function unavailableSkillsNoticePath(baseUrl) {
866
- return _path.join.call(void 0, _chunk2R7JD2NYjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
866
+ return _path.join.call(void 0, _chunkS3D7OY6Djs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
867
867
  }
868
868
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
869
869
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
870
- var agentLeaseSegment = _chunk2R7JD2NYjs.skillsAgentPathSegment;
870
+ var agentLeaseSegment = _chunkS3D7OY6Djs.skillsAgentPathSegment;
871
871
  function sortedLeaseAgents(agents) {
872
- const expanded = agents.includes("*") ? [...agents, ..._chunk2R7JD2NYjs.KNOWN_SKILL_AGENTS] : agents;
872
+ const expanded = agents.includes("*") ? [...agents, ..._chunkS3D7OY6Djs.KNOWN_SKILL_AGENTS] : agents;
873
873
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
874
874
  }
875
875
  function inProgressSkillsSyncPath(baseUrl, agent) {
876
876
  return _path.join.call(void 0,
877
- _chunk2R7JD2NYjs.sdkCliStateDirPath.call(void 0, baseUrl),
877
+ _chunkS3D7OY6Djs.sdkCliStateDirPath.call(void 0, baseUrl),
878
878
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
879
879
  );
880
880
  }
@@ -1033,7 +1033,7 @@ var SkillsStateUnavailableError = class extends Error {
1033
1033
  constructor(baseUrl, error) {
1034
1034
  const detail = error instanceof Error ? error.message : String(error);
1035
1035
  super(
1036
- `Could not save skills state in ${_chunk2R7JD2NYjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1036
+ `Could not save skills state in ${_chunkS3D7OY6Djs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1037
1037
  );
1038
1038
  this.name = "SkillsStateUnavailableError";
1039
1039
  }
@@ -1118,7 +1118,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
1118
1118
  }
1119
1119
  function deferredSkillsNoticePath(baseUrl, agents) {
1120
1120
  return _path.join.call(void 0,
1121
- _chunk2R7JD2NYjs.sdkCliStateDirPath.call(void 0, baseUrl),
1121
+ _chunkS3D7OY6Djs.sdkCliStateDirPath.call(void 0, baseUrl),
1122
1122
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
1123
1123
  );
1124
1124
  }
@@ -1152,8 +1152,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
1152
1152
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
1153
1153
  }
1154
1154
  function flushDeferredSkillsSyncNotices(baseUrl) {
1155
- if (shouldSkipSkillsSync() || _chunk2R7JD2NYjs.hasActivePluginSkills.call(void 0, )) return;
1156
- const agents = _chunk2R7JD2NYjs.resolveAutoSyncSkillAgents.call(void 0, );
1155
+ if (shouldSkipSkillsSync() || _chunkS3D7OY6Djs.hasActivePluginSkills.call(void 0, )) return;
1156
+ const agents = _chunkS3D7OY6Djs.resolveAutoSyncSkillAgents.call(void 0, );
1157
1157
  if (agents.length === 0) return;
1158
1158
  flushDeferredSkillsNotices(baseUrl, agents);
1159
1159
  }
@@ -1169,7 +1169,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
1169
1169
  }
1170
1170
  function failedSkillsSyncPath(baseUrl, agents) {
1171
1171
  return _path.join.call(void 0,
1172
- _chunk2R7JD2NYjs.sdkCliStateDirPath.call(void 0, baseUrl),
1172
+ _chunkS3D7OY6Djs.sdkCliStateDirPath.call(void 0, baseUrl),
1173
1173
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
1174
1174
  );
1175
1175
  }
@@ -1198,7 +1198,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
1198
1198
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
1199
1199
  writeMarkedSkillsSyncVersion(path, remoteVersion);
1200
1200
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
1201
- const manualCommand = _optionalChain([probes, 'optionalAccess', _75 => _75.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunk2R7JD2NYjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1201
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _75 => _75.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkS3D7OY6Djs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1202
1202
  const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _76 => _76.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
1203
1203
  notice(
1204
1204
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -1286,7 +1286,7 @@ function buildSdkSkillNames(v1SkillNames2) {
1286
1286
  return sortedUniqueSkillNames(v1SkillNames2);
1287
1287
  }
1288
1288
  function isDefaultAgentSet(agents) {
1289
- return agents.length === _chunk2R7JD2NYjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunk2R7JD2NYjs.DEFAULT_SKILL_AGENTS[index]);
1289
+ return agents.length === _chunkS3D7OY6Djs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkS3D7OY6Djs.DEFAULT_SKILL_AGENTS[index]);
1290
1290
  }
1291
1291
  function safeSkillFilePath(value) {
1292
1292
  if (typeof value !== "string" || !value) return false;
@@ -1443,10 +1443,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
1443
1443
  method: "POST",
1444
1444
  headers: { "Content-Type": "application/json" },
1445
1445
  body: JSON.stringify({
1446
- sdk_cli: { version: _chunk2R7JD2NYjs.SDK_VERSION },
1446
+ sdk_cli: { version: _chunkS3D7OY6Djs.SDK_VERSION },
1447
1447
  skills: {
1448
1448
  version: localVersion,
1449
- capability: _chunk6TOMXZX3js.SDK_RELEASE.packageCapabilities.skillsGuidance
1449
+ capability: _chunkWEHXHC7Njs.SDK_RELEASE.packageCapabilities.skillsGuidance
1450
1450
  }
1451
1451
  }),
1452
1452
  signal: controller.signal
@@ -1485,7 +1485,7 @@ function probeInstallers(timeoutMs) {
1485
1485
  }
1486
1486
  function noInstallerProbePath(baseUrl) {
1487
1487
  return _path.join.call(void 0,
1488
- _chunk2R7JD2NYjs.sdkCliStateDirPath.call(void 0, baseUrl),
1488
+ _chunkS3D7OY6Djs.sdkCliStateDirPath.call(void 0, baseUrl),
1489
1489
  "skills-sync-no-installer-unknown.json"
1490
1490
  );
1491
1491
  }
@@ -1564,7 +1564,7 @@ function temporarySkillsSyncSkipCommand() {
1564
1564
  function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
1565
1565
  return resolveShellSpawn(install.command, install.args, platform2);
1566
1566
  }
1567
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunk2R7JD2NYjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1567
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkS3D7OY6Djs.DEFAULT_SKILL_AGENTS, knownProbes) {
1568
1568
  const commands = [];
1569
1569
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1570
1570
  if (probes.bunx === "available") {
@@ -1706,7 +1706,7 @@ function runLegacySkillsCleanup(agents) {
1706
1706
  }
1707
1707
  }
1708
1708
  function writeSdkSkillsStatusLine(line) {
1709
- const progress = _chunkEXZOUJCDjs.getActiveCliProgress.call(void 0, );
1709
+ const progress = _chunkJ2KWJKTMjs.getActiveCliProgress.call(void 0, );
1710
1710
  if (progress) {
1711
1711
  progress.writeLine(line);
1712
1712
  return;
@@ -1716,11 +1716,11 @@ function writeSdkSkillsStatusLine(line) {
1716
1716
  }
1717
1717
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1718
1718
  if (shouldSkipSkillsSync()) return;
1719
- const usingPluginSkills = _chunk2R7JD2NYjs.hasActivePluginSkills.call(void 0, );
1719
+ const usingPluginSkills = _chunkS3D7OY6Djs.hasActivePluginSkills.call(void 0, );
1720
1720
  if (usingPluginSkills) {
1721
1721
  return;
1722
1722
  }
1723
- const agents = _chunk2R7JD2NYjs.resolveAutoSyncSkillAgents.call(void 0, );
1723
+ const agents = _chunkS3D7OY6Djs.resolveAutoSyncSkillAgents.call(void 0, );
1724
1724
  if (options.mode === "detached" && agents.length > 0) {
1725
1725
  flushDeferredSkillsNotices(baseUrl, agents);
1726
1726
  }
@@ -1748,7 +1748,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1748
1748
  return;
1749
1749
  }
1750
1750
  try {
1751
- const localVersion = _chunk2R7JD2NYjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1751
+ const localVersion = _chunkS3D7OY6Djs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1752
1752
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1753
1753
  needsUpdate: options.update.needs_update,
1754
1754
  remoteVersion: options.update.remote.version
@@ -1914,7 +1914,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1914
1914
  }
1915
1915
  }
1916
1916
  runLegacySkillsCleanup(agents);
1917
- if (!_chunk2R7JD2NYjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1917
+ if (!_chunkS3D7OY6Djs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1918
1918
  notice(
1919
1919
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1920
1920
  );