epam-ai-conductor 0.3.1 → 0.3.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.
- package/package.json +3 -2
- package/scripts/postinstall.cjs +24 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "epam-ai-conductor",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "EPAM AI Conductor — Socratic AI mentor for the React Fundamentals course, powered by CodeMie + Claude",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cli.js",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"bin/",
|
|
12
12
|
"dist/",
|
|
13
|
+
"scripts/postinstall.cjs",
|
|
13
14
|
"README.md"
|
|
14
15
|
],
|
|
15
16
|
"scripts": {
|
|
@@ -20,7 +21,7 @@
|
|
|
20
21
|
"sync-content": "npx tsx scripts/sync-content.ts",
|
|
21
22
|
"debug": "npx tsx scripts/debug.ts",
|
|
22
23
|
"lint": "eslint src --ext .ts",
|
|
23
|
-
"postinstall": "
|
|
24
|
+
"postinstall": "node scripts/postinstall.cjs"
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Cross-platform postinstall.
|
|
2
|
+
// node-pty's macOS prebuild ships a `spawn-helper` binary that can lose its
|
|
3
|
+
// executable bit during npm extraction. Restore it on macOS only; elsewhere
|
|
4
|
+
// (Windows, Linux) this is a no-op. Never throw — a failed postinstall would
|
|
5
|
+
// abort the whole `npm i -g` and leave the `ai-conductor` bin unlinked.
|
|
6
|
+
const fs = require('fs');
|
|
7
|
+
const path = require('path');
|
|
8
|
+
|
|
9
|
+
if (process.platform === 'darwin') {
|
|
10
|
+
const helper = path.join(
|
|
11
|
+
__dirname,
|
|
12
|
+
'..',
|
|
13
|
+
'node_modules',
|
|
14
|
+
'node-pty',
|
|
15
|
+
'prebuilds',
|
|
16
|
+
'darwin-arm64',
|
|
17
|
+
'spawn-helper',
|
|
18
|
+
);
|
|
19
|
+
try {
|
|
20
|
+
fs.chmodSync(helper, 0o755);
|
|
21
|
+
} catch {
|
|
22
|
+
// Helper absent (e.g. node-pty hoisted elsewhere) or already correct — ignore.
|
|
23
|
+
}
|
|
24
|
+
}
|