create-byan-agent 2.9.8 → 2.9.9
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/CHANGELOG.md +11 -0
- package/install/lib/claude-native-setup.js +12 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [2.9.9] - 2026-04-21
|
|
11
|
+
|
|
12
|
+
### Fixed - MCP copy filter broke on global npm install (root cause of 2.9.6 bug)
|
|
13
|
+
|
|
14
|
+
- **`copyMcpServer` filter now resolves paths relative to the template src** — the previous filter `(s) => !s.includes('node_modules')` inspected the absolute path, so when BYAN was installed globally (e.g. `/usr/local/lib/node_modules/create-byan-agent/...`), every template file looked like it lived under `node_modules` and was silently skipped. The empty `_byan/mcp/byan-mcp-server/` dossier observed on 2.9.6/2.9.7/2.9.8 had this cause — the post-copy assertion added in 2.9.7 only surfaced the symptom.
|
|
15
|
+
- **`makeNodeModulesFilter(srcRoot)` extracted and exported** — used by `copyMcpServer`; splits the relative path on path separators and skips any component named `node_modules`.
|
|
16
|
+
- **Regression test** added that builds a filter rooted at `/usr/local/lib/node_modules/create-byan-agent/.../byan-mcp-server` and confirms `server.js` passes while a nested `node_modules/` subdir is rejected.
|
|
17
|
+
- **Observed on**: `sudo npm install -g create-byan-agent@2.9.8` → `npx create-byan-agent` → `MCP server copy produced no server.js`.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
10
21
|
## [2.9.8] - 2026-04-21
|
|
11
22
|
|
|
12
23
|
### Fixed - `update-byan-agent` CLI broken on fresh npm install
|
|
@@ -50,14 +50,22 @@ async function copyClaudeSettings(projectRoot) {
|
|
|
50
50
|
return { copied: true };
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
function makeNodeModulesFilter(srcRoot) {
|
|
54
|
+
// Checks the path RELATIVE to srcRoot: a global install path like
|
|
55
|
+
// /usr/local/lib/node_modules/create-byan-agent/... would otherwise make
|
|
56
|
+
// every file look like it lives under node_modules and get skipped.
|
|
57
|
+
return (s) => {
|
|
58
|
+
const rel = path.relative(srcRoot, s);
|
|
59
|
+
return !rel.split(path.sep).includes('node_modules');
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
53
63
|
async function copyMcpServer(projectRoot) {
|
|
54
64
|
const src = path.join(TEMPLATE_ROOT, '_byan', 'mcp', 'byan-mcp-server');
|
|
55
65
|
const dst = path.join(projectRoot, '_byan', 'mcp', 'byan-mcp-server');
|
|
56
66
|
if (!(await fs.pathExists(src))) return { copied: false };
|
|
57
67
|
await fs.ensureDir(dst);
|
|
58
|
-
await fs.copy(src, dst, { overwrite: true, filter: (
|
|
59
|
-
// Post-copy sanity check: server.js must exist, otherwise the MCP client will
|
|
60
|
-
// fail on next Claude Code launch with "Cannot find module" (seen on 2.9.6).
|
|
68
|
+
await fs.copy(src, dst, { overwrite: true, filter: makeNodeModulesFilter(src) });
|
|
61
69
|
const serverFile = path.join(dst, 'server.js');
|
|
62
70
|
if (!(await fs.pathExists(serverFile))) {
|
|
63
71
|
throw new Error(
|
|
@@ -179,6 +187,7 @@ module.exports = {
|
|
|
179
187
|
copyClaudeSkills,
|
|
180
188
|
copyClaudeSettings,
|
|
181
189
|
copyMcpServer,
|
|
190
|
+
makeNodeModulesFilter,
|
|
182
191
|
generateMcpConfig,
|
|
183
192
|
installMcpDependencies,
|
|
184
193
|
setupClaudeNative,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-byan-agent",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.9",
|
|
4
4
|
"description": "BYAN v2.8 - Intelligent AI agent creator with ELO trust system + scientific fact-check + Hermes universal dispatcher + native Claude Code integration (hooks, skills, MCP server). Multi-platform (Copilot CLI, Claude Code, Codex). Merise Agile + TDD + 64 Mantras. ~54% LLM cost savings.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|