deepline 0.3.388 → 0.3.389

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 (90) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/auth-AOM2LA73.js +39 -0
  3. package/dist/cli/{auth-2DIKNI7P.mjs → auth-DEASEYUJ.mjs} +4 -4
  4. package/dist/cli/{billing-LTUXLRQO.js → billing-QIWD5GYZ.js} +73 -73
  5. package/dist/cli/{billing-YAFQ5HOL.mjs → billing-TUTB4H6F.mjs} +4 -4
  6. package/dist/cli/{chunk-FYSQW6H7.mjs → chunk-2L6BBM7Z.mjs} +4 -4
  7. package/dist/cli/{chunk-WETP5XUS.js → chunk-5VCRXKAU.js} +50 -50
  8. package/dist/cli/{chunk-XUOAS7EU.mjs → chunk-63ZXA57X.mjs} +3 -3
  9. package/dist/cli/{chunk-YXUBGP4Y.js → chunk-7IPMWJNZ.js} +226 -226
  10. package/dist/cli/{chunk-QPGEZ4PU.mjs → chunk-7WQGDKNO.mjs} +1 -1
  11. package/dist/cli/{chunk-4GNF7MCF.js → chunk-ABLS54ZL.js} +61 -61
  12. package/dist/cli/{chunk-E5TZ64CK.mjs → chunk-B6BQ6EAR.mjs} +6 -6
  13. package/dist/cli/{chunk-HSE4BI6X.mjs → chunk-CCIEPJSX.mjs} +2 -2
  14. package/dist/cli/{chunk-H7P6DX42.js → chunk-CLOICRTK.js} +6 -6
  15. package/dist/cli/{chunk-5SCZSNX4.js → chunk-CMWDXAQH.js} +26 -26
  16. package/dist/cli/{chunk-34I3JQML.js → chunk-FZXZLFNC.js} +15 -15
  17. package/dist/cli/{chunk-JKDY7FUD.js → chunk-FZZC3A7J.js} +8 -8
  18. package/dist/cli/{chunk-BECUIDJV.mjs → chunk-GB3KEA34.mjs} +1 -1
  19. package/dist/cli/{chunk-UCORN5KB.mjs → chunk-HHRQYYHK.mjs} +7 -6
  20. package/dist/cli/{chunk-2N2KHFOU.js → chunk-KWGB3RWA.js} +9 -9
  21. package/dist/cli/{chunk-MEWZNXLA.mjs → chunk-M6BQYSV3.mjs} +1 -1
  22. package/dist/cli/{chunk-2UFLY7CC.js → chunk-MCWGQIDV.js} +50 -49
  23. package/dist/cli/{chunk-OHJRJM7E.mjs → chunk-MP7FWY76.mjs} +2 -2
  24. package/dist/cli/{chunk-NRJPUSLB.mjs → chunk-NBXJJBBT.mjs} +1 -1
  25. package/dist/cli/{chunk-RFZP7MP2.js → chunk-OWP6SI5W.js} +8 -8
  26. package/dist/cli/{chunk-VJOZGWNO.mjs → chunk-PPKNOVMF.mjs} +2 -2
  27. package/dist/cli/{chunk-XJ2OSKPI.mjs → chunk-RHAP7ZW5.mjs} +2 -2
  28. package/dist/cli/{chunk-G6IRNEMJ.js → chunk-RPGSXBS3.js} +1 -1
  29. package/dist/cli/{chunk-YKCMTH5P.js → chunk-WRLYF4DS.js} +2 -2
  30. package/dist/cli/{chunk-ZFDWBWCQ.js → chunk-Z43SUQUL.js} +4 -4
  31. package/dist/cli/{chunk-YOHRMAY4.mjs → chunk-Z4ZB2CDV.mjs} +1 -1
  32. package/dist/cli/{csv-Y3HV4QXT.js → csv-FYI4XWEA.js} +12 -12
  33. package/dist/cli/{csv-SW5B4K6E.mjs → csv-GQ5K6MDD.mjs} +3 -3
  34. package/dist/cli/{db-4RFE5IQD.mjs → db-DYXQOAWZ.mjs} +4 -4
  35. package/dist/cli/{db-5KDJZJ6C.js → db-WYSI3J43.js} +29 -29
  36. package/dist/cli/{describe-5XNBGYTP.js → describe-T25AHZEJ.js} +18 -18
  37. package/dist/cli/{describe-6DPM37PH.mjs → describe-YIIUMAZF.mjs} +8 -8
  38. package/dist/cli/{executions-HQQ6HZUQ.js → executions-3D7KAJ2C.js} +6 -6
  39. package/dist/cli/{executions-W7U4YG4K.mjs → executions-RYFSOPMQ.mjs} +4 -4
  40. package/dist/cli/{feedback-CBYEXLGT.mjs → feedback-CIZXMDMJ.mjs} +3 -3
  41. package/dist/cli/{feedback-GTFLUBFS.js → feedback-I7FWPC7V.js} +7 -7
  42. package/dist/cli/{git-3XPDF4K5.mjs → git-JCURDXPQ.mjs} +4 -4
  43. package/dist/cli/git-MVMIPHQ6.js +23 -0
  44. package/dist/cli/index.js +89 -89
  45. package/dist/cli/index.mjs +32 -32
  46. package/dist/cli/{legacy-noops-IUBG6DMZ.mjs → legacy-noops-4BW4EZJG.mjs} +4 -4
  47. package/dist/cli/{legacy-noops-FRO5YR7L.js → legacy-noops-G6F5LNUM.js} +7 -7
  48. package/dist/cli/{monitors-LW5N2HWG.js → monitors-43UXU5C3.js} +85 -85
  49. package/dist/cli/{monitors-2L3ZJT62.mjs → monitors-LTKH5IWE.mjs} +4 -4
  50. package/dist/cli/{org-E3ELO53D.js → org-7MSUEPXL.js} +64 -64
  51. package/dist/cli/{org-5RN6RRNU.mjs → org-I3WHUV67.mjs} +4 -4
  52. package/dist/cli/{play-KCRWX7DC.mjs → play-HRZXSNXV.mjs} +7 -7
  53. package/dist/cli/play-R5TYLP5L.js +157 -0
  54. package/dist/cli/{providers-WTLOWJDB.mjs → providers-BY6JPMKP.mjs} +4 -4
  55. package/dist/cli/{providers-IL7DAKQH.js → providers-DWLWK5VX.js} +7 -7
  56. package/dist/cli/{quickstart-KXOL5CFD.mjs → quickstart-E647CKUQ.mjs} +3 -3
  57. package/dist/cli/{quickstart-YZJTOKOX.js → quickstart-QO6GCK4U.js} +5 -5
  58. package/dist/cli/search-34AC6FC7.js +26 -0
  59. package/dist/cli/{search-TFYOO37D.mjs → search-3WUQBHRV.mjs} +5 -5
  60. package/dist/cli/{secrets-IANLD3A7.js → secrets-CPNHE5XI.js} +13 -13
  61. package/dist/cli/{secrets-3Q6MHCB2.mjs → secrets-WTGMFFP7.mjs} +4 -4
  62. package/dist/cli/{sessions-FVLRLE6E.mjs → sessions-6Q5E7GSY.mjs} +4 -4
  63. package/dist/cli/{sessions-ZCZ6FWW4.js → sessions-UFGGEDZP.js} +5 -5
  64. package/dist/cli/{settings-VRNHWJLI.js → settings-NF5726RU.js} +74 -74
  65. package/dist/cli/{settings-4MHQZKQD.mjs → settings-QMEIKOUI.mjs} +7 -7
  66. package/dist/cli/{setup-QH6UM6IR.js → setup-J35MMJ7C.js} +41 -41
  67. package/dist/cli/{setup-R3U6EATD.mjs → setup-ZOQOJMJ7.mjs} +6 -6
  68. package/dist/cli/{skills-Q7BJMZTK.mjs → skills-UFDKCSYR.mjs} +4 -4
  69. package/dist/cli/skills-WGYISRE5.js +28 -0
  70. package/dist/cli/{tools-5YA7M5EA.mjs → tools-3SU3EUQT.mjs} +6 -6
  71. package/dist/cli/tools-Q642ZZ2M.js +40 -0
  72. package/dist/cli/{update-M6HYEZ5G.mjs → update-SXYX4PMC.mjs} +6 -6
  73. package/dist/cli/update-T5MNWAQC.js +28 -0
  74. package/dist/cli/{workflow-73Q3PWVZ.mjs → workflow-2LINUMOP.mjs} +5 -5
  75. package/dist/cli/{workflow-AAIQODIZ.js → workflow-XAIEXDUI.js} +15 -15
  76. package/dist/index.js +6 -6
  77. package/dist/index.mjs +3 -3
  78. package/dist/install-integrity.json +72 -72
  79. package/dist/release.d.mts +1 -1
  80. package/dist/release.d.ts +1 -1
  81. package/dist/release.js +2 -2
  82. package/dist/release.mjs +1 -1
  83. package/package.json +1 -1
  84. package/dist/cli/auth-Z4NL25WP.js +0 -39
  85. package/dist/cli/git-F2AUBR6I.js +0 -23
  86. package/dist/cli/play-SUYAMCPX.js +0 -157
  87. package/dist/cli/search-UFKDJ5TO.js +0 -26
  88. package/dist/cli/skills-I7URUOO7.js +0 -28
  89. package/dist/cli/tools-MPJGF7F2.js +0 -40
  90. package/dist/cli/update-EY7PSSDF.js +0 -28
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-NXGCO4JB.mjs";
15
15
  import {
16
16
  SDK_RELEASE
17
- } from "./chunk-NRJPUSLB.mjs";
17
+ } from "./chunk-NBXJJBBT.mjs";
18
18
 
19
19
  // src/errors.ts
20
20
  var CustomerDbQueryOutcomeUnknownError = class extends DeeplineError {
@@ -3,7 +3,7 @@
3
3
  var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
4
4
 
5
5
 
6
- var _chunkH7P6DX42js = require('./chunk-H7P6DX42.js');
6
+ var _chunkCLOICRTKjs = require('./chunk-CLOICRTK.js');
7
7
 
8
8
 
9
9
 
@@ -22,7 +22,7 @@ var _chunkH7P6DX42js = require('./chunk-H7P6DX42.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkZFDWBWCQjs = require('./chunk-ZFDWBWCQ.js');
25
+ var _chunkZ43SUQULjs = require('./chunk-Z43SUQUL.js');
26
26
 
27
27
 
28
28
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -123,7 +123,7 @@ function skillsSourceUrl(baseUrl) {
123
123
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
124
124
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
125
125
  const [firstSkillName, ...extraSkillNames] = skillNames;
126
- const agents = _nullishCoalesce(options.agents, () => ( _chunkZFDWBWCQjs.DEFAULT_SKILL_AGENTS));
126
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkZ43SUQULjs.DEFAULT_SKILL_AGENTS));
127
127
  const values = {
128
128
  skills_index_url: skillsIndexUrl(baseUrl),
129
129
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -199,7 +199,7 @@ function shouldSkipCompatibilityCheck() {
199
199
  return value === "1" || value === "true" || value === "yes";
200
200
  }
201
201
  function sdkCompatibilityCachePath(baseUrl, homeDir = _os.homedir.call(void 0, )) {
202
- return _path.join.call(void 0, _chunkZFDWBWCQjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
202
+ return _path.join.call(void 0, _chunkZ43SUQULjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
203
203
  }
204
204
  function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
205
205
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -207,9 +207,9 @@ function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
207
207
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
208
208
  return JSON.stringify({
209
209
  baseUrl: baseUrl.replace(/\/$/, ""),
210
- version: _chunkZFDWBWCQjs.SDK_VERSION,
211
- apiContract: _chunkZFDWBWCQjs.SDK_API_CONTRACT,
212
- apiMajor: _chunkZFDWBWCQjs.SDK_API_MAJOR,
210
+ version: _chunkZ43SUQULjs.SDK_VERSION,
211
+ apiContract: _chunkZ43SUQULjs.SDK_API_CONTRACT,
212
+ apiMajor: _chunkZ43SUQULjs.SDK_API_MAJOR,
213
213
  command: _optionalChain([command, 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]) || null,
214
214
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
215
215
  });
@@ -217,8 +217,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
217
217
  function legacyCompatibilityCacheKey(baseUrl, command) {
218
218
  return JSON.stringify({
219
219
  baseUrl: baseUrl.replace(/\/$/, ""),
220
- version: _chunkZFDWBWCQjs.SDK_VERSION,
221
- apiContract: _chunkZFDWBWCQjs.SDK_API_CONTRACT,
220
+ version: _chunkZ43SUQULjs.SDK_VERSION,
221
+ apiContract: _chunkZ43SUQULjs.SDK_API_CONTRACT,
222
222
  command: _optionalChain([command, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || null
223
223
  });
224
224
  }
@@ -311,7 +311,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
311
311
  );
312
312
  try {
313
313
  const url = new URL("/api/v2/sdk/compat", baseUrl);
314
- url.searchParams.set("version", _chunkZFDWBWCQjs.SDK_VERSION);
314
+ url.searchParams.set("version", _chunkZ43SUQULjs.SDK_VERSION);
315
315
  if (_optionalChain([options, 'access', _19 => _19.command, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()])) {
316
316
  url.searchParams.set("command", options.command.trim());
317
317
  }
@@ -324,13 +324,13 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
324
324
  const response = await fetch(url, {
325
325
  method: "GET",
326
326
  headers: {
327
- ..._chunkZFDWBWCQjs.deploymentProtectionHeaders.call(void 0, ),
328
- "User-Agent": `deepline-ts-sdk/${_chunkZFDWBWCQjs.SDK_VERSION}`,
329
- "X-Deepline-SDK-Version": _chunkZFDWBWCQjs.SDK_VERSION,
330
- "X-Deepline-API-Major": String(_chunkZFDWBWCQjs.SDK_API_MAJOR),
331
- "X-Deepline-API-Contract": _chunkZFDWBWCQjs.SDK_API_CONTRACT,
327
+ ..._chunkZ43SUQULjs.deploymentProtectionHeaders.call(void 0, ),
328
+ "User-Agent": `deepline-ts-sdk/${_chunkZ43SUQULjs.SDK_VERSION}`,
329
+ "X-Deepline-SDK-Version": _chunkZ43SUQULjs.SDK_VERSION,
330
+ "X-Deepline-API-Major": String(_chunkZ43SUQULjs.SDK_API_MAJOR),
331
+ "X-Deepline-API-Contract": _chunkZ43SUQULjs.SDK_API_CONTRACT,
332
332
  "X-Deepline-CLI-Update-Preferences": "1",
333
- ...options.catalog ? { Authorization: `Bearer ${_chunkZFDWBWCQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
333
+ ...options.catalog ? { Authorization: `Bearer ${_chunkZ43SUQULjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
334
334
  },
335
335
  signal: controller.signal
336
336
  });
@@ -583,7 +583,7 @@ function buildEnvironmentContext() {
583
583
  node_version: process.version,
584
584
  runtime: "Node.js",
585
585
  hostname: _os.hostname.call(void 0, ),
586
- agent_runtime: _chunkZFDWBWCQjs.detectAgentRuntime.call(void 0, )
586
+ agent_runtime: _chunkZ43SUQULjs.detectAgentRuntime.call(void 0, )
587
587
  };
588
588
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
589
589
  const normalized = _optionalChain([process, 'access', _32 => _32.env, 'access', _33 => _33[key], 'optionalAccess', _34 => _34.trim, 'call', _35 => _35()]);
@@ -605,15 +605,15 @@ function buildEnvironmentContext() {
605
605
  }
606
606
  function failureReportHeaders(apiKey) {
607
607
  return {
608
- ..._chunkZFDWBWCQjs.deploymentProtectionHeaders.call(void 0, ),
608
+ ..._chunkZ43SUQULjs.deploymentProtectionHeaders.call(void 0, ),
609
609
  Authorization: `Bearer ${apiKey}`,
610
610
  "Content-Type": "application/json",
611
- "User-Agent": `deepline-ts-sdk/${_chunkZFDWBWCQjs.SDK_VERSION}`,
611
+ "User-Agent": `deepline-ts-sdk/${_chunkZ43SUQULjs.SDK_VERSION}`,
612
612
  "X-Deepline-Client-Family": "sdk",
613
613
  "X-Deepline-CLI-Family": "sdk",
614
- "X-Deepline-Agent-Runtime": _chunkZFDWBWCQjs.detectAgentRuntime.call(void 0, ),
615
- "X-Deepline-CLI-Version": _chunkZFDWBWCQjs.SDK_VERSION,
616
- "X-Deepline-SDK-Version": _chunkZFDWBWCQjs.SDK_VERSION
614
+ "X-Deepline-Agent-Runtime": _chunkZ43SUQULjs.detectAgentRuntime.call(void 0, ),
615
+ "X-Deepline-CLI-Version": _chunkZ43SUQULjs.SDK_VERSION,
616
+ "X-Deepline-SDK-Version": _chunkZ43SUQULjs.SDK_VERSION
617
617
  };
618
618
  }
619
619
  async function postFailureReport(input) {
@@ -641,7 +641,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
641
641
  if (isFailureReportingDisabled()) return false;
642
642
  let apiKey = "";
643
643
  try {
644
- apiKey = _chunkZFDWBWCQjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
644
+ apiKey = _chunkZ43SUQULjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
645
645
  } catch (e7) {
646
646
  return false;
647
647
  }
@@ -668,7 +668,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
668
668
  failure_code: failureCode2,
669
669
  failure_stage: failureStage,
670
670
  error_body: "Automatic Deepline skills installation failed.",
671
- cli_version: _chunkZFDWBWCQjs.SDK_VERSION,
671
+ cli_version: _chunkZ43SUQULjs.SDK_VERSION,
672
672
  context: {
673
673
  environment: buildEnvironmentContext(),
674
674
  skills_sync: {
@@ -788,7 +788,7 @@ function buildFailureReport(input) {
788
788
  failure_kind: failureKind,
789
789
  failure_code: code,
790
790
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
791
- cli_version: _chunkZFDWBWCQjs.SDK_VERSION,
791
+ cli_version: _chunkZ43SUQULjs.SDK_VERSION,
792
792
  context: {
793
793
  base_url: redactFailureText(input.baseUrl, 400),
794
794
  command_summary: sanitizeCommand(input.argv),
@@ -808,8 +808,8 @@ async function maybeReportSdkCliFailure(input) {
808
808
  if (isServerLoggedPlayRunStartFailure(input)) return false;
809
809
  const exitCode = resolvedExitCode(input);
810
810
  if (!shouldReport({ exitCode, error: input.error })) return false;
811
- const baseUrl = _chunkZFDWBWCQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
812
- const apiKey = _chunkZFDWBWCQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
811
+ const baseUrl = _chunkZ43SUQULjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
812
+ const apiKey = _chunkZ43SUQULjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
813
813
  if (!apiKey) return false;
814
814
  return postFailureReport({
815
815
  baseUrl,
@@ -830,25 +830,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
830
830
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
831
831
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
832
832
  function shouldSkipSkillsSync() {
833
- if (_chunkZFDWBWCQjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
833
+ if (_chunkZ43SUQULjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
834
834
  return true;
835
835
  }
836
836
  const value = _optionalChain([process, 'access', _56 => _56.env, 'access', _57 => _57.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _58 => _58.trim, 'call', _59 => _59(), 'access', _60 => _60.toLowerCase, 'call', _61 => _61()]);
837
837
  return value === "1" || value === "true" || value === "yes" || value === "on";
838
838
  }
839
839
  function unavailableSkillsNoticePath(baseUrl) {
840
- return _path.join.call(void 0, _chunkZFDWBWCQjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
840
+ return _path.join.call(void 0, _chunkZ43SUQULjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
841
841
  }
842
842
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
843
843
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
844
- var agentLeaseSegment = _chunkZFDWBWCQjs.skillsAgentPathSegment;
844
+ var agentLeaseSegment = _chunkZ43SUQULjs.skillsAgentPathSegment;
845
845
  function sortedLeaseAgents(agents) {
846
- const expanded = agents.includes("*") ? [...agents, ..._chunkZFDWBWCQjs.KNOWN_SKILL_AGENTS] : agents;
846
+ const expanded = agents.includes("*") ? [...agents, ..._chunkZ43SUQULjs.KNOWN_SKILL_AGENTS] : agents;
847
847
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
848
848
  }
849
849
  function inProgressSkillsSyncPath(baseUrl, agent) {
850
850
  return _path.join.call(void 0,
851
- _chunkZFDWBWCQjs.sdkCliStateDirPath.call(void 0, baseUrl),
851
+ _chunkZ43SUQULjs.sdkCliStateDirPath.call(void 0, baseUrl),
852
852
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
853
853
  );
854
854
  }
@@ -1007,7 +1007,7 @@ var SkillsStateUnavailableError = class extends Error {
1007
1007
  constructor(baseUrl, error) {
1008
1008
  const detail = error instanceof Error ? error.message : String(error);
1009
1009
  super(
1010
- `Could not save skills state in ${_chunkZFDWBWCQjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1010
+ `Could not save skills state in ${_chunkZ43SUQULjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1011
1011
  );
1012
1012
  this.name = "SkillsStateUnavailableError";
1013
1013
  }
@@ -1092,7 +1092,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
1092
1092
  }
1093
1093
  function deferredSkillsNoticePath(baseUrl, agents) {
1094
1094
  return _path.join.call(void 0,
1095
- _chunkZFDWBWCQjs.sdkCliStateDirPath.call(void 0, baseUrl),
1095
+ _chunkZ43SUQULjs.sdkCliStateDirPath.call(void 0, baseUrl),
1096
1096
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
1097
1097
  );
1098
1098
  }
@@ -1126,8 +1126,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
1126
1126
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
1127
1127
  }
1128
1128
  function flushDeferredSkillsSyncNotices(baseUrl) {
1129
- if (shouldSkipSkillsSync() || _chunkZFDWBWCQjs.hasActivePluginSkills.call(void 0, )) return;
1130
- const agents = _chunkZFDWBWCQjs.resolveAutoSyncSkillAgents.call(void 0, );
1129
+ if (shouldSkipSkillsSync() || _chunkZ43SUQULjs.hasActivePluginSkills.call(void 0, )) return;
1130
+ const agents = _chunkZ43SUQULjs.resolveAutoSyncSkillAgents.call(void 0, );
1131
1131
  if (agents.length === 0) return;
1132
1132
  flushDeferredSkillsNotices(baseUrl, agents);
1133
1133
  }
@@ -1143,7 +1143,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
1143
1143
  }
1144
1144
  function failedSkillsSyncPath(baseUrl, agents) {
1145
1145
  return _path.join.call(void 0,
1146
- _chunkZFDWBWCQjs.sdkCliStateDirPath.call(void 0, baseUrl),
1146
+ _chunkZ43SUQULjs.sdkCliStateDirPath.call(void 0, baseUrl),
1147
1147
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
1148
1148
  );
1149
1149
  }
@@ -1172,7 +1172,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
1172
1172
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
1173
1173
  writeMarkedSkillsSyncVersion(path, remoteVersion);
1174
1174
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
1175
- const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkZFDWBWCQjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1175
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkZ43SUQULjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1176
1176
  const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _66 => _66.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.`;
1177
1177
  notice(
1178
1178
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -1260,7 +1260,7 @@ function buildSdkSkillNames(v1SkillNames2) {
1260
1260
  return sortedUniqueSkillNames(v1SkillNames2);
1261
1261
  }
1262
1262
  function isDefaultAgentSet(agents) {
1263
- return agents.length === _chunkZFDWBWCQjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkZFDWBWCQjs.DEFAULT_SKILL_AGENTS[index]);
1263
+ return agents.length === _chunkZ43SUQULjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkZ43SUQULjs.DEFAULT_SKILL_AGENTS[index]);
1264
1264
  }
1265
1265
  function safeSkillFilePath(value) {
1266
1266
  if (typeof value !== "string" || !value) return false;
@@ -1457,7 +1457,7 @@ function probeInstallers(timeoutMs) {
1457
1457
  }
1458
1458
  function noInstallerProbePath(baseUrl) {
1459
1459
  return _path.join.call(void 0,
1460
- _chunkZFDWBWCQjs.sdkCliStateDirPath.call(void 0, baseUrl),
1460
+ _chunkZ43SUQULjs.sdkCliStateDirPath.call(void 0, baseUrl),
1461
1461
  "skills-sync-no-installer-unknown.json"
1462
1462
  );
1463
1463
  }
@@ -1536,7 +1536,7 @@ function temporarySkillsSyncSkipCommand() {
1536
1536
  function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
1537
1537
  return resolveShellSpawn(install.command, install.args, platform2);
1538
1538
  }
1539
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkZFDWBWCQjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1539
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkZ43SUQULjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1540
1540
  const commands = [];
1541
1541
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1542
1542
  if (probes.bunx === "available") {
@@ -1688,11 +1688,11 @@ function writeSdkSkillsStatusLine(line) {
1688
1688
  }
1689
1689
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1690
1690
  if (shouldSkipSkillsSync()) return;
1691
- const usingPluginSkills = _chunkZFDWBWCQjs.hasActivePluginSkills.call(void 0, );
1691
+ const usingPluginSkills = _chunkZ43SUQULjs.hasActivePluginSkills.call(void 0, );
1692
1692
  if (usingPluginSkills) {
1693
1693
  return;
1694
1694
  }
1695
- const agents = _chunkZFDWBWCQjs.resolveAutoSyncSkillAgents.call(void 0, );
1695
+ const agents = _chunkZ43SUQULjs.resolveAutoSyncSkillAgents.call(void 0, );
1696
1696
  if (options.mode === "detached" && agents.length > 0) {
1697
1697
  flushDeferredSkillsNotices(baseUrl, agents);
1698
1698
  }
@@ -1720,7 +1720,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1720
1720
  return;
1721
1721
  }
1722
1722
  try {
1723
- const localVersion = _chunkZFDWBWCQjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1723
+ const localVersion = _chunkZ43SUQULjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1724
1724
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1725
1725
  needsUpdate: options.update.needs_update,
1726
1726
  remoteVersion: options.update.remote.version
@@ -1886,7 +1886,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1886
1886
  }
1887
1887
  }
1888
1888
  runLegacySkillsCleanup(agents);
1889
- if (!_chunkZFDWBWCQjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1889
+ if (!_chunkZ43SUQULjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1890
1890
  notice(
1891
1891
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1892
1892
  );
@@ -1945,7 +1945,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
1945
1945
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
1946
1946
  }
1947
1947
  function resolveLocalRoot() {
1948
- const target = _chunkZFDWBWCQjs.resolveProjectPinTarget.call(void 0, );
1948
+ const target = _chunkZ43SUQULjs.resolveProjectPinTarget.call(void 0, );
1949
1949
  if (!target.ok) {
1950
1950
  throw new Error(
1951
1951
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -1956,7 +1956,7 @@ function resolveLocalRoot() {
1956
1956
  return target.dir;
1957
1957
  }
1958
1958
  function detectSkillsAgents(input) {
1959
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunkZFDWBWCQjs.detectAgentRuntime.call(void 0, )));
1959
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkZ43SUQULjs.detectAgentRuntime.call(void 0, )));
1960
1960
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
1961
1961
  if (knownAgent) return [knownAgent];
1962
1962
  const roots = [
@@ -1971,7 +1971,7 @@ function detectSkillsAgents(input) {
1971
1971
  return detected.length > 0 ? detected : ["*"];
1972
1972
  }
1973
1973
  function skillsStatePathForScope(baseUrl, scope, root) {
1974
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkZFDWBWCQjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
1974
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkZ43SUQULjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
1975
1975
  }
1976
1976
  function buildSkillsPlan(input) {
1977
1977
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
@@ -2093,7 +2093,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2093
2093
  scope = normalizeScope(options.scope);
2094
2094
  root = scope === "local" ? resolveLocalRoot() : null;
2095
2095
  } catch (error) {
2096
- _chunkH7P6DX42js.printCommandEnvelope.call(void 0,
2096
+ _chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
2097
2097
  {
2098
2098
  ok: false,
2099
2099
  status: "failed",
@@ -2105,22 +2105,22 @@ async function runSkillsCommand(options, dependencies = {}) {
2105
2105
  );
2106
2106
  return 2;
2107
2107
  }
2108
- const baseUrl = _chunkZFDWBWCQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
2108
+ const baseUrl = _chunkZ43SUQULjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
2109
2109
  const catalog = {
2110
2110
  skillNames: [...DEFAULT_SDK_SKILL_NAMES],
2111
- version: _chunkZFDWBWCQjs.SDK_VERSION
2111
+ version: _chunkZ43SUQULjs.SDK_VERSION
2112
2112
  };
2113
2113
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
2114
2114
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
2115
2115
  if (options.dryRun) {
2116
- _chunkH7P6DX42js.printCommandEnvelope.call(void 0,
2116
+ _chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
2117
2117
  { ok: true, status: "planned", dryRun: true, ...plan },
2118
2118
  { json: options.json }
2119
2119
  );
2120
2120
  return 0;
2121
2121
  }
2122
2122
  if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !hasFailedAutomaticSkillsSync(baseUrl, agents)) {
2123
- _chunkH7P6DX42js.printCommandEnvelope.call(void 0,
2123
+ _chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
2124
2124
  {
2125
2125
  ok: true,
2126
2126
  status: "current",
@@ -2155,7 +2155,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2155
2155
  .../* @__PURE__ */ new Set([...plan.skillNames, ...LEGACY_SKILL_NAMES_TO_REMOVE])
2156
2156
  ];
2157
2157
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
2158
- _chunkZFDWBWCQjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
2158
+ _chunkZ43SUQULjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
2159
2159
  ".deepline/",
2160
2160
  ...agentRoots.flatMap(
2161
2161
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -2173,7 +2173,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2173
2173
  } };
2174
2174
  } catch (error) {
2175
2175
  if (!(error instanceof SkillsStateUnavailableError)) throw error;
2176
- _chunkH7P6DX42js.printCommandEnvelope.call(void 0,
2176
+ _chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
2177
2177
  {
2178
2178
  ok: false,
2179
2179
  status: "failed",
@@ -2189,7 +2189,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2189
2189
  return 5;
2190
2190
  }
2191
2191
  if (!lease) {
2192
- _chunkH7P6DX42js.printCommandEnvelope.call(void 0,
2192
+ _chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
2193
2193
  {
2194
2194
  ok: false,
2195
2195
  status: "failed",
@@ -2235,7 +2235,7 @@ async function runSkillsInstallWithLease(input) {
2235
2235
  throw new Error("Could not install the current Deepline skills.");
2236
2236
  }
2237
2237
  } catch (error) {
2238
- _chunkH7P6DX42js.printCommandEnvelope.call(void 0,
2238
+ _chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
2239
2239
  {
2240
2240
  ok: false,
2241
2241
  status: "failed",
@@ -2274,7 +2274,7 @@ async function runSkillsInstallWithLease(input) {
2274
2274
  {
2275
2275
  schemaVersion: 1,
2276
2276
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
2277
- cliVersion: _chunkZFDWBWCQjs.SDK_VERSION,
2277
+ cliVersion: _chunkZ43SUQULjs.SDK_VERSION,
2278
2278
  scope,
2279
2279
  agents,
2280
2280
  skillsVersion: plan.version,
@@ -2289,7 +2289,7 @@ async function runSkillsInstallWithLease(input) {
2289
2289
  if (scope === "global") {
2290
2290
  clearFailedAutomaticSkillsSync(baseUrl, agents);
2291
2291
  }
2292
- _chunkH7P6DX42js.printCommandEnvelope.call(void 0,
2292
+ _chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
2293
2293
  {
2294
2294
  ok: true,
2295
2295
  status: "complete",
@@ -2338,7 +2338,7 @@ Examples:
2338
2338
  ).action(async (options) => {
2339
2339
  const claim = _optionalChain([options, 'access', _88 => _88.claim, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]);
2340
2340
  if (!claim) {
2341
- _chunkH7P6DX42js.printCommandEnvelope.call(void 0,
2341
+ _chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
2342
2342
  {
2343
2343
  ok: false,
2344
2344
  status: "failed",
@@ -2351,7 +2351,7 @@ Examples:
2351
2351
  process.exitCode = 2;
2352
2352
  return;
2353
2353
  }
2354
- await syncSdkSkillsIfNeeded(_chunkZFDWBWCQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
2354
+ await syncSdkSkillsIfNeeded(_chunkZ43SUQULjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
2355
2355
  mode: "inline",
2356
2356
  notices: "defer",
2357
2357
  claim
@@ -19,11 +19,11 @@ import {
19
19
  } from "./chunk-EDWJY6T4.mjs";
20
20
  import {
21
21
  registerDeprecatedSearchCommand
22
- } from "./chunk-XUOAS7EU.mjs";
22
+ } from "./chunk-63ZXA57X.mjs";
23
23
  import {
24
24
  handleDeploymentGet,
25
25
  handleDeploymentsList
26
- } from "./chunk-XJ2OSKPI.mjs";
26
+ } from "./chunk-RHAP7ZW5.mjs";
27
27
  import {
28
28
  pinLocalPlayImports,
29
29
  planLocalPlayExecution
@@ -42,7 +42,7 @@ import {
42
42
  normalizeRunEventOperationRequest,
43
43
  parseLogLevel,
44
44
  playInputExampleArgs
45
- } from "./chunk-MEWZNXLA.mjs";
45
+ } from "./chunk-M6BQYSV3.mjs";
46
46
  import {
47
47
  CSV_DATA_INPUT_KEY,
48
48
  buildNamedPlayRunRequest,
@@ -75,10 +75,10 @@ import {
75
75
  printJsonError,
76
76
  renderCommandEnvelopeText,
77
77
  shouldEmitJson
78
- } from "./chunk-BECUIDJV.mjs";
78
+ } from "./chunk-GB3KEA34.mjs";
79
79
  import {
80
80
  fetchWithDeploymentProtection
81
- } from "./chunk-QPGEZ4PU.mjs";
81
+ } from "./chunk-7WQGDKNO.mjs";
82
82
  import {
83
83
  DeeplineError
84
84
  } from "./chunk-NXGCO4JB.mjs";
@@ -16546,7 +16546,7 @@ Examples:
16546
16546
  process.exitCode = await ownView();
16547
16547
  return;
16548
16548
  }
16549
- const { describeAnything } = await import("./describe-6DPM37PH.mjs");
16549
+ const { describeAnything } = await import("./describe-YIIUMAZF.mjs");
16550
16550
  process.exitCode = await describeAnything(
16551
16551
  name,
16552
16552
  {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-GAMFK2ZP.mjs";
4
4
  import {
5
5
  printCommandEnvelope
6
- } from "./chunk-BECUIDJV.mjs";
6
+ } from "./chunk-GB3KEA34.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-QPGEZ4PU.mjs";
25
+ } from "./chunk-7WQGDKNO.mjs";
26
26
  import {
27
27
  DeeplineError
28
28
  } from "./chunk-NXGCO4JB.mjs";
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkZFDWBWCQjs = require('./chunk-ZFDWBWCQ.js');
6
+ var _chunkZ43SUQULjs = require('./chunk-Z43SUQUL.js');
7
7
 
8
8
 
9
9
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -225,8 +225,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
225
225
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
226
226
  var defaultBrowserCommandRunner = childProcess;
227
227
  function getAuthedHttpClient() {
228
- const config = _chunkZFDWBWCQjs.resolveConfig.call(void 0, );
229
- return { config, http: new (0, _chunkZFDWBWCQjs.HttpClient)(config) };
228
+ const config = _chunkZ43SUQULjs.resolveConfig.call(void 0, );
229
+ return { config, http: new (0, _chunkZ43SUQULjs.HttpClient)(config) };
230
230
  }
231
231
  function stableOsUserId() {
232
232
  try {
@@ -566,7 +566,7 @@ function collectLocalEnvInfo() {
566
566
  os: `${process.platform} ${process.arch}`,
567
567
  node_version: process.version,
568
568
  home_dir: homeDir,
569
- agent_runtime: _chunkZFDWBWCQjs.detectAgentRuntime.call(void 0, )
569
+ agent_runtime: _chunkZ43SUQULjs.detectAgentRuntime.call(void 0, )
570
570
  };
571
571
  const env = process.env;
572
572
  const optional = {
@@ -813,9 +813,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
813
813
  }
814
814
  function withAgentCommandContext(value) {
815
815
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
816
- return _chunkZFDWBWCQjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
816
+ return _chunkZ43SUQULjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
817
817
  ...valueRecord,
818
- command_context: _chunkZFDWBWCQjs.resolveCliCommandContext.call(void 0, )
818
+ command_context: _chunkZ43SUQULjs.resolveCliCommandContext.call(void 0, )
819
819
  } : value;
820
820
  }
821
821
  function printJson(value, fields) {