@sigmashake/ssg 0.29.30 → 0.29.31
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.
- package/bin/ssg.cjs +18 -6
- package/package.json +3 -3
package/bin/ssg.cjs
CHANGED
|
@@ -93,16 +93,28 @@ if (binaryPath) {
|
|
|
93
93
|
|
|
94
94
|
// 4. Last resort: run TypeScript source via Bun (unsupported platform / dev)
|
|
95
95
|
const src = path.resolve(__dirname, '..', 'src', 'cli.ts');
|
|
96
|
+
const isWin = process.platform === 'win32';
|
|
97
|
+
const bunExe = isWin ? 'bun.exe' : 'bun';
|
|
96
98
|
|
|
97
99
|
let bunPath;
|
|
98
100
|
try {
|
|
99
|
-
|
|
101
|
+
// `where` on Windows, `which` everywhere else.
|
|
102
|
+
bunPath = execFileSync(isWin ? 'where' : 'which', [bunExe], {encoding: 'utf8'})
|
|
103
|
+
.trim()
|
|
104
|
+
.split(/\r?\n/)[0];
|
|
100
105
|
} catch {
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
+
const home = process.env.HOME ?? process.env.USERPROFILE ?? '';
|
|
107
|
+
const candidates = isWin
|
|
108
|
+
? [
|
|
109
|
+
path.join(home, '.bun', 'bin', 'bun.exe'),
|
|
110
|
+
path.join(process.env.LOCALAPPDATA ?? '', 'Programs', 'bun', 'bin', 'bun.exe'),
|
|
111
|
+
'C:\\Program Files\\bun\\bin\\bun.exe',
|
|
112
|
+
]
|
|
113
|
+
: [
|
|
114
|
+
path.join(home, '.bun', 'bin', 'bun'),
|
|
115
|
+
'/usr/local/bin/bun',
|
|
116
|
+
'/opt/homebrew/bin/bun',
|
|
117
|
+
];
|
|
106
118
|
bunPath = candidates.find(p => {
|
|
107
119
|
try { fs.accessSync(p, fs.constants.X_OK); return true; } catch { return false; }
|
|
108
120
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sigmashake/ssg",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.31",
|
|
4
4
|
"description": "AI Agent Governance CLI — evaluate tool calls against rules, block dangerous operations, and surface blocked commands",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"optionalDependencies": {
|
|
17
17
|
"@sigmashake/ssg-linux-x64": "0.29.30",
|
|
18
18
|
"@sigmashake/ssg-linux-arm64": "0.29.30",
|
|
19
|
-
"@sigmashake/ssg-darwin-arm64": "0.29.
|
|
20
|
-
"@sigmashake/ssg-darwin-x64": "0.29.
|
|
19
|
+
"@sigmashake/ssg-darwin-arm64": "0.29.31",
|
|
20
|
+
"@sigmashake/ssg-darwin-x64": "0.29.31",
|
|
21
21
|
"@sigmashake/ssg-win32-x64": "0.29.21"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|