@evolve.labs/devflow 0.9.1 → 0.9.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/lib/constants.js +1 -1
- package/lib/web.js +23 -0
- package/package.json +1 -1
- package/web/package.json +1 -1
package/lib/constants.js
CHANGED
package/lib/web.js
CHANGED
|
@@ -4,6 +4,26 @@ const fs = require('node:fs');
|
|
|
4
4
|
const os = require('node:os');
|
|
5
5
|
const { PACKAGE_ROOT, VERSION, WEB_COPY_DIRS, WEB_COPY_FILES } = require('./constants');
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Fix node-pty spawn-helper permissions.
|
|
9
|
+
* npm install may strip the execute bit from prebuilt binaries.
|
|
10
|
+
*/
|
|
11
|
+
function fixSpawnHelperPermissions(webDir) {
|
|
12
|
+
try {
|
|
13
|
+
const prebuildsDir = path.join(webDir, 'node_modules', 'node-pty', 'prebuilds');
|
|
14
|
+
if (!fs.existsSync(prebuildsDir)) return;
|
|
15
|
+
const platforms = fs.readdirSync(prebuildsDir);
|
|
16
|
+
for (const platform of platforms) {
|
|
17
|
+
const helper = path.join(prebuildsDir, platform, 'spawn-helper');
|
|
18
|
+
if (fs.existsSync(helper)) {
|
|
19
|
+
fs.chmodSync(helper, 0o755);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
} catch {
|
|
23
|
+
// Non-critical on Windows or if prebuilds don't exist
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
7
27
|
/**
|
|
8
28
|
* When installed via npm, the web/ directory lives inside node_modules.
|
|
9
29
|
* Next.js/SWC does not properly compile TypeScript files within node_modules,
|
|
@@ -97,6 +117,9 @@ async function webCommand(options) {
|
|
|
97
117
|
stdio: 'inherit',
|
|
98
118
|
timeout: 120_000,
|
|
99
119
|
});
|
|
120
|
+
|
|
121
|
+
// Fix node-pty spawn-helper permissions (npm may strip execute bit)
|
|
122
|
+
fixSpawnHelperPermissions(webDir);
|
|
100
123
|
} catch {
|
|
101
124
|
console.error('Failed to install dependencies.');
|
|
102
125
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evolve.labs/devflow",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Multi-agent system for software development with Claude Code. 6 specialized agents (Strategist, Architect, System Designer, Builder, Guardian, Chronicler) as slash commands.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|