@magclaw/cli-core 0.1.38 → 0.1.39
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.
- package/package.json +1 -1
- package/src/team-sharing.js +3 -2
package/package.json
CHANGED
package/src/team-sharing.js
CHANGED
|
@@ -7,7 +7,7 @@ import path from 'node:path';
|
|
|
7
7
|
import { createInterface } from 'node:readline/promises';
|
|
8
8
|
import { installTeamMemoryHookConfig } from './team-memory-hooks.js';
|
|
9
9
|
|
|
10
|
-
export const TEAM_SHARING_PACKAGE_NAME = 'team-sharing';
|
|
10
|
+
export const TEAM_SHARING_PACKAGE_NAME = '@magclaw/team-sharing';
|
|
11
11
|
export const TEAM_SHARING_INTEGRATION = 'team-sharing';
|
|
12
12
|
const DEFAULT_PROFILE = 'default';
|
|
13
13
|
const DEFAULT_SERVER_URL = 'http://127.0.0.1:6543';
|
|
@@ -646,7 +646,8 @@ export async function checkTeamSharingUpgrade(options = {}, env = process.env) {
|
|
|
646
646
|
checkedAtMs: cached.checkedAtMs,
|
|
647
647
|
};
|
|
648
648
|
}
|
|
649
|
-
const
|
|
649
|
+
const encodedPackageName = encodeURIComponent(TEAM_SHARING_PACKAGE_NAME);
|
|
650
|
+
const response = await fetch(`https://registry.npmjs.org/${encodedPackageName}`);
|
|
650
651
|
const data = await response.json().catch(() => ({}));
|
|
651
652
|
if (!response.ok) throw new Error(data.error || `npm registry returned ${response.status}`);
|
|
652
653
|
const latestVersion = String(data?.['dist-tags']?.latest || currentVersion);
|