create-byan-agent 2.9.10 → 2.11.0
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-byan-agent",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
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": {
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"@anthropic-ai/claude-code": "^2.1.114",
|
|
59
59
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
60
60
|
"better-sqlite3": "^12.9.0",
|
|
61
|
+
"byan-platform-config": "file:./install/packages/platform-config",
|
|
61
62
|
"chalk": "^4.1.2",
|
|
62
63
|
"commander": "^11.1.0",
|
|
63
64
|
"fs-extra": "^11.2.0",
|
|
@@ -145,13 +145,22 @@ program
|
|
|
145
145
|
stdio: 'pipe'
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
// Copy _byan from node_modules to project root
|
|
148
|
+
// Copy _byan from node_modules to project root. The published tarball
|
|
149
|
+
// ships _byan source under install/templates/_byan/, not at the root.
|
|
150
|
+
// Fall back to root-level _byan/ for legacy tarballs that may still
|
|
151
|
+
// have shipped it there.
|
|
149
152
|
const pkgRoot = path.join(installPath, 'node_modules', 'create-byan-agent');
|
|
150
|
-
const
|
|
151
|
-
|
|
153
|
+
const candidates = [
|
|
154
|
+
path.join(pkgRoot, 'install', 'templates', '_byan'),
|
|
155
|
+
path.join(pkgRoot, '_byan'),
|
|
156
|
+
];
|
|
157
|
+
const nodeModulesByan = candidates.find((p) => fs.existsSync(p));
|
|
158
|
+
if (nodeModulesByan) {
|
|
152
159
|
copyRecursive(nodeModulesByan, byanDir);
|
|
153
160
|
} else {
|
|
154
|
-
throw new Error(
|
|
161
|
+
throw new Error(
|
|
162
|
+
`_byan directory not found in npm package (looked in: ${candidates.map((p) => path.relative(pkgRoot, p)).join(', ')})`
|
|
163
|
+
);
|
|
155
164
|
}
|
|
156
165
|
|
|
157
166
|
// Also refresh .github/agents/ from templates (Copilot stubs)
|