oh-my-claude-sisyphus 3.0.2 → 3.0.3
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.3');
|
|
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.3";
|
|
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.3';
|
|
41
41
|
/**
|
|
42
42
|
* Check if the current Node.js version meets the minimum requirement
|
|
43
43
|
*/
|
package/package.json
CHANGED
package/scripts/plugin-setup.mjs
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
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-claude-sisyphus`
|
|
7
6
|
*/
|
|
8
7
|
|
|
9
8
|
import { existsSync, mkdirSync, writeFileSync, readFileSync, readdirSync, chmodSync } from 'node:fs';
|
|
@@ -40,7 +39,7 @@ import { join } from "node:path";
|
|
|
40
39
|
async function main() {
|
|
41
40
|
const home = homedir();
|
|
42
41
|
|
|
43
|
-
// 1. Try plugin cache first (npm package
|
|
42
|
+
// 1. Try plugin cache first (npm package: oh-my-claude-sisyphus)
|
|
44
43
|
const pluginCacheBase = join(home, ".claude/plugins/cache/oh-my-claude-sisyphus/oh-my-claude-sisyphus");
|
|
45
44
|
if (existsSync(pluginCacheBase)) {
|
|
46
45
|
try {
|
|
@@ -56,12 +55,10 @@ async function main() {
|
|
|
56
55
|
} catch { /* continue */ }
|
|
57
56
|
}
|
|
58
57
|
|
|
59
|
-
// 2. Development paths
|
|
58
|
+
// 2. Development paths
|
|
60
59
|
const devPaths = [
|
|
61
60
|
join(home, "Workspace/oh-my-claude-sisyphus/dist/hud/index.js"),
|
|
62
61
|
join(home, "workspace/oh-my-claude-sisyphus/dist/hud/index.js"),
|
|
63
|
-
join(home, "Workspace/oh-my-claudecode/dist/hud/index.js"),
|
|
64
|
-
join(home, "workspace/oh-my-claudecode/dist/hud/index.js"),
|
|
65
62
|
];
|
|
66
63
|
|
|
67
64
|
for (const devPath of devPaths) {
|
|
@@ -93,20 +90,13 @@ try {
|
|
|
93
90
|
settings = JSON.parse(readFileSync(SETTINGS_FILE, 'utf-8'));
|
|
94
91
|
}
|
|
95
92
|
|
|
96
|
-
//
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
command: `node ${hudScriptPath}`
|
|
104
|
-
};
|
|
105
|
-
writeFileSync(SETTINGS_FILE, JSON.stringify(settings, null, 2));
|
|
106
|
-
console.log('[OMC] Configured HUD statusLine in settings.json');
|
|
107
|
-
} else {
|
|
108
|
-
console.log('[OMC] statusLine already configured, skipping');
|
|
109
|
-
}
|
|
93
|
+
// Update statusLine to use new HUD path
|
|
94
|
+
settings.statusLine = {
|
|
95
|
+
type: 'command',
|
|
96
|
+
command: `node ${hudScriptPath}`
|
|
97
|
+
};
|
|
98
|
+
writeFileSync(SETTINGS_FILE, JSON.stringify(settings, null, 2));
|
|
99
|
+
console.log('[OMC] Configured HUD statusLine in settings.json');
|
|
110
100
|
} catch (e) {
|
|
111
101
|
console.log('[OMC] Warning: Could not configure settings.json:', e.message);
|
|
112
102
|
}
|