oh-my-claude-sisyphus 3.7.11 → 3.7.13

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.
@@ -10,7 +10,7 @@
10
10
  {
11
11
  "name": "oh-my-claudecode",
12
12
  "description": "Claude Code native multi-agent orchestration with intelligent model routing, 28 agent variants, and 30 powerful skills. Zero learning curve. Maximum power.",
13
- "version": "3.7.11",
13
+ "version": "3.7.13",
14
14
  "author": {
15
15
  "name": "Yeachan Heo",
16
16
  "email": "hurrc04@gmail.com"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-claudecode",
3
- "version": "3.7.11",
3
+ "version": "3.7.13",
4
4
  "description": "Multi-agent orchestration system for Claude Code",
5
5
  "skills": "./skills/",
6
6
  "mcpServers": "./.mcp.json"
@@ -1,4 +1,14 @@
1
1
  #!/usr/bin/env node
2
+
3
+ // Resolve global npm modules for native package imports
4
+ try {
5
+ var _cp = require('child_process');
6
+ var _globalRoot = _cp.execSync('npm root -g', { encoding: 'utf8' }).trim();
7
+ if (_globalRoot && !require('module').globalPaths.includes(_globalRoot)) {
8
+ require('module').globalPaths.push(_globalRoot);
9
+ }
10
+ } catch (_e) { /* npm not available - native modules will gracefully degrade */ }
11
+
2
12
  "use strict";
3
13
  var __create = Object.create;
4
14
  var __defProp = Object.defineProperty;
@@ -0,0 +1,13 @@
1
+ #!/bin/bash
2
+ # MCP Server wrapper that ensures global npm modules are resolvable
3
+ # This enables @ast-grep/napi and other globally-installed native modules
4
+
5
+ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
6
+
7
+ # Add global npm modules to NODE_PATH for native module resolution
8
+ GLOBAL_NPM_ROOT="$(npm root -g 2>/dev/null)"
9
+ if [ -n "$GLOBAL_NPM_ROOT" ]; then
10
+ export NODE_PATH="${GLOBAL_NPM_ROOT}:${NODE_PATH:-}"
11
+ fi
12
+
13
+ exec node "$SCRIPT_DIR/mcp-server.cjs"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-claude-sisyphus",
3
- "version": "3.7.11",
3
+ "version": "3.7.13",
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",
@@ -13,6 +13,19 @@ const outfile = 'bridge/mcp-server.cjs';
13
13
  // Ensure output directory exists
14
14
  await mkdir('bridge', { recursive: true });
15
15
 
16
+ // Preamble: resolve global npm modules so externalized native packages
17
+ // (like @ast-grep/napi) can be found when running from plugin cache
18
+ const banner = `
19
+ // Resolve global npm modules for native package imports
20
+ try {
21
+ var _cp = require('child_process');
22
+ var _globalRoot = _cp.execSync('npm root -g', { encoding: 'utf8' }).trim();
23
+ if (_globalRoot && !require('module').globalPaths.includes(_globalRoot)) {
24
+ require('module').globalPaths.push(_globalRoot);
25
+ }
26
+ } catch (_e) { /* npm not available - native modules will gracefully degrade */ }
27
+ `;
28
+
16
29
  await esbuild.build({
17
30
  entryPoints: ['src/mcp/standalone-server.ts'],
18
31
  bundle: true,
@@ -20,6 +33,7 @@ await esbuild.build({
20
33
  target: 'node18',
21
34
  format: 'cjs',
22
35
  outfile,
36
+ banner: { js: banner },
23
37
  // Externalize Node.js built-ins and native modules
24
38
  external: [
25
39
  'fs', 'path', 'os', 'util', 'stream', 'events',