oh-my-claude-sisyphus 3.0.6 → 3.0.7
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.
|
|
272
|
+
expect(VERSION).toBe('3.0.7');
|
|
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.
|
|
34
|
+
export declare const VERSION = "3.0.7";
|
|
35
35
|
/** Installation result */
|
|
36
36
|
export interface InstallResult {
|
|
37
37
|
success: boolean;
|
package/dist/installer/index.js
CHANGED
|
@@ -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.
|
|
40
|
+
export const VERSION = '3.0.7';
|
|
41
41
|
/**
|
|
42
42
|
* Check if the current Node.js version meets the minimum requirement
|
|
43
43
|
*/
|
package/package.json
CHANGED
package/skills/hud/SKILL.md
CHANGED
|
@@ -27,24 +27,119 @@ When you run `/hud` or `/hud setup`, the system will automatically:
|
|
|
27
27
|
3. If missing, create the HUD wrapper script and configure settings
|
|
28
28
|
4. Report status and prompt to restart Claude Code if changes were made
|
|
29
29
|
|
|
30
|
-
**IMPORTANT**: If the argument is `setup` OR if the HUD script doesn't exist at `~/.claude/hud/omc-hud.mjs`, you MUST
|
|
31
|
-
1. First check if the files exist using Bash: `ls ~/.claude/hud/omc-hud.mjs 2>/dev/null && echo EXISTS || echo MISSING`
|
|
32
|
-
2. If MISSING or argument is `setup`, find the plugin path and run: `node <plugin-path>/scripts/plugin-setup.mjs`
|
|
33
|
-
3. The plugin path can be found at: `~/.claude/plugins/cache/omc/oh-my-claudecode/<version>/` or the local dev path
|
|
30
|
+
**IMPORTANT**: If the argument is `setup` OR if the HUD script doesn't exist at `~/.claude/hud/omc-hud.mjs`, you MUST create the HUD files directly using the instructions below.
|
|
34
31
|
|
|
35
|
-
|
|
32
|
+
### Setup Instructions (Run These Commands)
|
|
33
|
+
|
|
34
|
+
**Step 1:** Check if setup is needed:
|
|
36
35
|
```bash
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
ls ~/.claude/hud/omc-hud.mjs 2>/dev/null && echo "EXISTS" || echo "MISSING"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**Step 2:** Check if the plugin is built (CRITICAL - common issue!):
|
|
40
|
+
```bash
|
|
41
|
+
# Find the latest version and check if dist/hud/index.js exists
|
|
42
|
+
PLUGIN_VERSION=$(ls ~/.claude/plugins/cache/omc/oh-my-claudecode/ 2>/dev/null | sort -V | tail -1)
|
|
43
|
+
if [ -n "$PLUGIN_VERSION" ]; then
|
|
44
|
+
ls ~/.claude/plugins/cache/omc/oh-my-claudecode/$PLUGIN_VERSION/dist/hud/index.js 2>/dev/null && echo "BUILT" || echo "NOT_BUILT"
|
|
44
45
|
fi
|
|
45
|
-
if [ -n "$PLUGIN_SETUP" ]; then node "$PLUGIN_SETUP"; else echo "Could not find plugin-setup.mjs"; fi
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
**If NOT_BUILT**, the plugin needs to be compiled. Run:
|
|
49
|
+
```bash
|
|
50
|
+
cd ~/.claude/plugins/cache/omc/oh-my-claudecode/$PLUGIN_VERSION && npm install
|
|
51
|
+
```
|
|
52
|
+
This will install dependencies and build the TypeScript code automatically (via the `prepare` script).
|
|
53
|
+
|
|
54
|
+
**Step 3:** If omc-hud.mjs is MISSING or argument is `setup`, create the HUD directory and script:
|
|
55
|
+
|
|
56
|
+
First, create the directory:
|
|
57
|
+
```bash
|
|
58
|
+
mkdir -p ~/.claude/hud
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Then, use the Write tool to create `~/.claude/hud/omc-hud.mjs` with this exact content:
|
|
62
|
+
|
|
63
|
+
```javascript
|
|
64
|
+
#!/usr/bin/env node
|
|
65
|
+
/**
|
|
66
|
+
* OMC HUD - Statusline Script
|
|
67
|
+
* Wrapper that imports from plugin cache or development paths
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
import { existsSync, readdirSync } from "node:fs";
|
|
71
|
+
import { homedir } from "node:os";
|
|
72
|
+
import { join } from "node:path";
|
|
73
|
+
|
|
74
|
+
async function main() {
|
|
75
|
+
const home = homedir();
|
|
76
|
+
|
|
77
|
+
// 1. Try plugin cache first (marketplace: omc, plugin: oh-my-claudecode)
|
|
78
|
+
const pluginCacheBase = join(home, ".claude/plugins/cache/omc/oh-my-claudecode");
|
|
79
|
+
if (existsSync(pluginCacheBase)) {
|
|
80
|
+
try {
|
|
81
|
+
const versions = readdirSync(pluginCacheBase);
|
|
82
|
+
if (versions.length > 0) {
|
|
83
|
+
const latestVersion = versions.sort().reverse()[0];
|
|
84
|
+
const pluginPath = join(pluginCacheBase, latestVersion, "dist/hud/index.js");
|
|
85
|
+
if (existsSync(pluginPath)) {
|
|
86
|
+
await import(pluginPath);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
} catch { /* continue */ }
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// 2. Development paths
|
|
94
|
+
const devPaths = [
|
|
95
|
+
join(home, "Workspace/oh-my-claude-sisyphus/dist/hud/index.js"),
|
|
96
|
+
join(home, "workspace/oh-my-claude-sisyphus/dist/hud/index.js"),
|
|
97
|
+
join(home, "Workspace/oh-my-claudecode/dist/hud/index.js"),
|
|
98
|
+
join(home, "workspace/oh-my-claudecode/dist/hud/index.js"),
|
|
99
|
+
];
|
|
100
|
+
|
|
101
|
+
for (const devPath of devPaths) {
|
|
102
|
+
if (existsSync(devPath)) {
|
|
103
|
+
try {
|
|
104
|
+
await import(devPath);
|
|
105
|
+
return;
|
|
106
|
+
} catch { /* continue */ }
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// 3. Fallback
|
|
111
|
+
console.log("[OMC] active");
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
main();
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
**Step 3:** Make it executable:
|
|
118
|
+
```bash
|
|
119
|
+
chmod +x ~/.claude/hud/omc-hud.mjs
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
**Step 4:** Update settings.json to use the HUD:
|
|
123
|
+
|
|
124
|
+
Read `~/.claude/settings.json`, then update/add the `statusLine` field:
|
|
125
|
+
```json
|
|
126
|
+
{
|
|
127
|
+
"statusLine": {
|
|
128
|
+
"type": "command",
|
|
129
|
+
"command": "node ~/.claude/hud/omc-hud.mjs"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Use the Edit tool to add/update this field while preserving other settings.
|
|
135
|
+
|
|
136
|
+
**Step 5:** Clean up old HUD scripts (if any):
|
|
137
|
+
```bash
|
|
138
|
+
rm -f ~/.claude/hud/sisyphus-hud.mjs 2>/dev/null
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
**Step 6:** Tell the user to restart Claude Code for changes to take effect.
|
|
142
|
+
|
|
48
143
|
## Display Presets
|
|
49
144
|
|
|
50
145
|
### Minimal
|