Split out of the agent repository into its own project. The two commits that introduced and reworked the extension are preserved. The extension could not build on its own: prebuild called `python ../../tools/generate_tool_defs.py`, and the 31 tool schemas lived outside the tree — in a directory that was under no version control at all. - tools/schema/*.json and tools/generate_tool_defs.py now live here. They describe browser tools, so they belong with the extension. - The generator writes TypeScript into this repo and, when the agent repo is checked out next to it, the Python tool definitions there as well. The presence check looks for agent/tools.py: checking only for the directory was useless — it is almost always true, and the generator then wrote into an arbitrary neighbouring folder (verified, then fixed). - Added .gitignore: dist/, node_modules/, and *.token — the MCP bridge token is a runtime secret. Verified: `npm run build` from a clean checkout with and without the agent repo present; tsc reports no errors. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
24 lines
644 B
JSON
24 lines
644 B
JSON
{
|
||
"name": "nexus-browser-agent",
|
||
"version": "0.1.0",
|
||
"private": true,
|
||
"description": "Nexus Browser Agent – MCP-fähige Chrome/Brave Extension mit Nexus-Gateway-Backend",
|
||
"scripts": {
|
||
"generate": "python tools/generate_tool_defs.py",
|
||
"prebuild": "python tools/generate_tool_defs.py",
|
||
"build": "node esbuild.config.mjs",
|
||
"watch": "node esbuild.config.mjs --watch",
|
||
"typecheck": "tsc --noEmit",
|
||
"clean": "rimraf dist"
|
||
},
|
||
"devDependencies": {
|
||
"chrome-types": "^0.1.436",
|
||
"esbuild": "^0.25.0",
|
||
"rimraf": "^6.0.0",
|
||
"typescript": "^5.7.0"
|
||
},
|
||
"dependencies": {
|
||
"marked": "^18.0.9"
|
||
}
|
||
}
|