mirror of
https://github.com/epiral/bb-browser.git
synced 2026-09-14 13:45:45 +08:00
057ab7872c
Single source of truth for all command metadata: - ParamDef with type, required, position, description - CommandDef with method, group, description, requiresTab, params - commandToJsonSchema() for Hub registration - getCommand() / getCommandsByGroup() helpers Hub registration now uses COMMANDS directly instead of hardcoded arrays. Removed zod dependency from shared package. CLI and daemon dispatch unchanged — they can consume COMMANDS in a future refactor.
29 lines
539 B
JSON
29 lines
539 B
JSON
{
|
|
"name": "@bb-browser/shared",
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"dev": "tsup --watch",
|
|
"clean": "rm -rf dist",
|
|
"lint": "eslint src tsup.config.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"tsup": "^8.3.0",
|
|
"typescript": "^5.7.0"
|
|
},
|
|
"dependencies": {}
|
|
}
|