@jaggerxtrm/specialists 3.6.15 → 3.6.16

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 (2) hide show
  1. package/dist/index.js +14 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -25163,9 +25163,21 @@ function ensureRootSymlink(rootPath, expectedTargetPath) {
25163
25163
  const linkTarget = readlinkSync(rootPath);
25164
25164
  const resolvedTarget = resolve4(dirname5(rootPath), linkTarget);
25165
25165
  const resolvedExpected = resolve4(expectedTargetPath);
25166
- if (resolvedTarget !== resolvedExpected) {
25167
- throw new Error(`${rootPath} points to ${linkTarget}, expected ${expectedTargetPath}. Aborting.`);
25166
+ if (resolvedTarget === resolvedExpected) {
25167
+ return;
25168
+ }
25169
+ const legacyTargets = [
25170
+ resolve4(expectedTargetPath, "claude"),
25171
+ resolve4(expectedTargetPath, "pi")
25172
+ ];
25173
+ if (legacyTargets.includes(resolvedTarget)) {
25174
+ unlinkSync(rootPath);
25175
+ const relTarget = relative(dirname5(rootPath), expectedTargetPath);
25176
+ symlinkSync(relTarget, rootPath);
25177
+ ok(`rewired ${basename3(dirname5(rootPath))}/${basename3(rootPath)} \u2192 ${relTarget}`);
25178
+ return;
25168
25179
  }
25180
+ throw new Error(`${rootPath} points to ${linkTarget}, expected ${expectedTargetPath}. Aborting.`);
25169
25181
  }
25170
25182
  function ensureActiveSkillSymlink(defaultSkillPath, activeLinkPath) {
25171
25183
  let stats;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaggerxtrm/specialists",
3
- "version": "3.6.15",
3
+ "version": "3.6.16",
4
4
  "description": "OmniSpecialist — 7-tool MCP orchestration layer powered by the Specialist System. Discover and execute .specialist.yaml files across project/user/system scopes via pi.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",