@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magclaw/cli-core",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "description": "Shared local MagClaw CLI implementation used by daemon and computer packages.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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 response = await fetch(`https://registry.npmjs.org/${TEAM_SHARING_PACKAGE_NAME}`);
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);