@liangjie559567/ultrapower 5.2.11 → 5.2.12

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ultrapower",
3
3
  "description": "Disciplined multi-agent orchestration: workflow enforcement + parallel execution. Combines superpowers' TDD/debugging discipline with OMC's multi-agent execution capabilities.",
4
- "version": "5.2.11",
4
+ "version": "5.2.12",
5
5
  "author": {
6
6
  "name": "Jesse Vincent & oh-my-claudecode contributors"
7
7
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liangjie559567/ultrapower",
3
- "version": "5.2.11",
3
+ "version": "5.2.12",
4
4
  "description": "Disciplined multi-agent orchestration: workflow enforcement + parallel execution",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -31,7 +31,7 @@ function migrateMarketplaceName() {
31
31
  renameSync(oldDir, newDir);
32
32
  console.log('[OMC] Migrated marketplace directory: ultrapower -> omc');
33
33
  }
34
- // Also patch marketplace.json name field if it still says 'ultrapower'
34
+ // Patch marketplace.json name field if it still says 'ultrapower'
35
35
  const mktJsonPath = join(existsSync(newDir) ? newDir : oldDir, '.claude-plugin', 'marketplace.json');
36
36
  if (existsSync(mktJsonPath)) {
37
37
  const mkt = JSON.parse(readFileSync(mktJsonPath, 'utf-8'));
@@ -41,6 +41,30 @@ function migrateMarketplaceName() {
41
41
  console.log('[OMC] Patched marketplace.json name: ultrapower -> omc');
42
42
  }
43
43
  }
44
+
45
+ // Patch known_marketplaces.json: rename key 'ultrapower' -> 'omc'
46
+ const knownMktPath = join(CLAUDE_DIR, 'plugins/known_marketplaces.json');
47
+ if (existsSync(knownMktPath)) {
48
+ const known = JSON.parse(readFileSync(knownMktPath, 'utf-8'));
49
+ if (known['ultrapower'] && !known['omc']) {
50
+ known['omc'] = { ...known['ultrapower'], installLocation: known['ultrapower'].installLocation.replace(/\\ultrapower$/, '\\omc').replace(/\/ultrapower$/, '/omc') };
51
+ delete known['ultrapower'];
52
+ writeFileSync(knownMktPath, JSON.stringify(known, null, 2));
53
+ console.log('[OMC] Patched known_marketplaces.json: ultrapower -> omc');
54
+ }
55
+ }
56
+
57
+ // Patch installed_plugins.json: rename key 'ultrapower@ultrapower' -> 'ultrapower@omc'
58
+ const installedPath = join(CLAUDE_DIR, 'plugins/installed_plugins.json');
59
+ if (existsSync(installedPath)) {
60
+ const installed = JSON.parse(readFileSync(installedPath, 'utf-8'));
61
+ if (installed.plugins?.['ultrapower@ultrapower'] && !installed.plugins?.['ultrapower@omc']) {
62
+ installed.plugins['ultrapower@omc'] = installed.plugins['ultrapower@ultrapower'];
63
+ delete installed.plugins['ultrapower@ultrapower'];
64
+ writeFileSync(installedPath, JSON.stringify(installed, null, 2));
65
+ console.log('[OMC] Patched installed_plugins.json: ultrapower@ultrapower -> ultrapower@omc');
66
+ }
67
+ }
44
68
  } catch (e) {
45
69
  console.log('[OMC] Warning: Could not migrate marketplace directory:', e.message);
46
70
  }