oh-my-claude-sisyphus 3.0.1 → 3.0.2

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.
@@ -269,7 +269,7 @@ describe('Installer Constants', () => {
269
269
  });
270
270
  it('should match package.json version', () => {
271
271
  // This is a runtime check - VERSION should match the package.json
272
- expect(VERSION).toBe('3.0.1');
272
+ expect(VERSION).toBe('3.0.2');
273
273
  });
274
274
  });
275
275
  describe('File Paths', () => {
@@ -31,7 +31,7 @@ export declare const VERSION_FILE: string;
31
31
  */
32
32
  export declare const CORE_COMMANDS: string[];
33
33
  /** Current version */
34
- export declare const VERSION = "3.0.1";
34
+ export declare const VERSION = "3.0.2";
35
35
  /** Installation result */
36
36
  export interface InstallResult {
37
37
  success: boolean;
@@ -37,7 +37,7 @@ export const VERSION_FILE = join(CLAUDE_CONFIG_DIR, '.omc-version.json');
37
37
  */
38
38
  export const CORE_COMMANDS = [];
39
39
  /** Current version */
40
- export const VERSION = '3.0.1';
40
+ export const VERSION = '3.0.2';
41
41
  /**
42
42
  * Check if the current Node.js version meets the minimum requirement
43
43
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-claude-sisyphus",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Multi-agent orchestration system for Claude Code - Inspired by oh-my-opencode",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -3,7 +3,7 @@
3
3
  * Plugin Post-Install Setup
4
4
  *
5
5
  * Configures HUD statusline when plugin is installed.
6
- * This runs after `claude plugin install oh-my-claudecode@oh-my-claudecode`
6
+ * This runs after `claude plugin install oh-my-claude-sisyphus`
7
7
  */
8
8
 
9
9
  import { existsSync, mkdirSync, writeFileSync, readFileSync, readdirSync, chmodSync } from 'node:fs';
@@ -18,7 +18,7 @@ const CLAUDE_DIR = join(homedir(), '.claude');
18
18
  const HUD_DIR = join(CLAUDE_DIR, 'hud');
19
19
  const SETTINGS_FILE = join(CLAUDE_DIR, 'settings.json');
20
20
 
21
- console.log('[Sisyphus] Running post-install setup...');
21
+ console.log('[OMC] Running post-install setup...');
22
22
 
23
23
  // 1. Create HUD directory
24
24
  if (!existsSync(HUD_DIR)) {
@@ -26,10 +26,10 @@ if (!existsSync(HUD_DIR)) {
26
26
  }
27
27
 
28
28
  // 2. Create HUD wrapper script
29
- const hudScriptPath = join(HUD_DIR, 'sisyphus-hud.mjs');
29
+ const hudScriptPath = join(HUD_DIR, 'omc-hud.mjs');
30
30
  const hudScript = `#!/usr/bin/env node
31
31
  /**
32
- * Sisyphus HUD - Statusline Script
32
+ * OMC HUD - Statusline Script
33
33
  * Wrapper that imports from plugin cache or development paths
34
34
  */
35
35
 
@@ -40,8 +40,8 @@ import { join } from "node:path";
40
40
  async function main() {
41
41
  const home = homedir();
42
42
 
43
- // 1. Try plugin cache first (preferred for 3.0.0+)
44
- const pluginCacheBase = join(home, ".claude/plugins/cache/oh-my-claudecode/oh-my-claudecode");
43
+ // 1. Try plugin cache first (npm package name: oh-my-claude-sisyphus)
44
+ const pluginCacheBase = join(home, ".claude/plugins/cache/oh-my-claude-sisyphus/oh-my-claude-sisyphus");
45
45
  if (existsSync(pluginCacheBase)) {
46
46
  try {
47
47
  const versions = readdirSync(pluginCacheBase);
@@ -56,8 +56,10 @@ async function main() {
56
56
  } catch { /* continue */ }
57
57
  }
58
58
 
59
- // 2. Development paths
59
+ // 2. Development paths (try both old and new directory names)
60
60
  const devPaths = [
61
+ join(home, "Workspace/oh-my-claude-sisyphus/dist/hud/index.js"),
62
+ join(home, "workspace/oh-my-claude-sisyphus/dist/hud/index.js"),
61
63
  join(home, "Workspace/oh-my-claudecode/dist/hud/index.js"),
62
64
  join(home, "workspace/oh-my-claudecode/dist/hud/index.js"),
63
65
  ];
@@ -72,7 +74,7 @@ async function main() {
72
74
  }
73
75
 
74
76
  // 3. Fallback
75
- console.log("[SISYPHUS] active");
77
+ console.log("[OMC] active");
76
78
  }
77
79
 
78
80
  main();
@@ -82,7 +84,7 @@ writeFileSync(hudScriptPath, hudScript);
82
84
  try {
83
85
  chmodSync(hudScriptPath, 0o755);
84
86
  } catch { /* Windows doesn't need this */ }
85
- console.log('[Sisyphus] Installed HUD wrapper script');
87
+ console.log('[OMC] Installed HUD wrapper script');
86
88
 
87
89
  // 3. Configure settings.json
88
90
  try {
@@ -91,19 +93,22 @@ try {
91
93
  settings = JSON.parse(readFileSync(SETTINGS_FILE, 'utf-8'));
92
94
  }
93
95
 
94
- // Add statusLine if not configured
95
- if (!settings.statusLine) {
96
+ // Add statusLine if not configured or update old path
97
+ const needsUpdate = !settings.statusLine ||
98
+ (settings.statusLine.command && settings.statusLine.command.includes('sisyphus-hud.mjs'));
99
+
100
+ if (needsUpdate) {
96
101
  settings.statusLine = {
97
102
  type: 'command',
98
103
  command: `node ${hudScriptPath}`
99
104
  };
100
105
  writeFileSync(SETTINGS_FILE, JSON.stringify(settings, null, 2));
101
- console.log('[Sisyphus] Configured HUD statusLine in settings.json');
106
+ console.log('[OMC] Configured HUD statusLine in settings.json');
102
107
  } else {
103
- console.log('[Sisyphus] statusLine already configured, skipping');
108
+ console.log('[OMC] statusLine already configured, skipping');
104
109
  }
105
110
  } catch (e) {
106
- console.log('[Sisyphus] Warning: Could not configure settings.json:', e.message);
111
+ console.log('[OMC] Warning: Could not configure settings.json:', e.message);
107
112
  }
108
113
 
109
- console.log('[Sisyphus] Setup complete! Restart Claude Code to activate HUD.');
114
+ console.log('[OMC] Setup complete! Restart Claude Code to activate HUD.');