- Add root package.json with files[] for registry publishing - Add prepare script to sync dist/ from plugin/ - Add postinstall to auto-run install script - Modify install script: auto-create dist/ if missing (git clone case) - Plugin works in both scenarios: * npm install @hangman-lab/dirigent -> uses bundled dist/ * git clone + node scripts/install-dirigent-openclaw.mjs -> auto-creates dist/
40 lines
953 B
JSON
40 lines
953 B
JSON
{
|
|
"name": "@hangman-lab/dirigent",
|
|
"version": "0.2.0",
|
|
"description": "Dirigent - Rule-based no-reply gate with provider/model override and turn management for OpenClaw",
|
|
"type": "module",
|
|
"files": [
|
|
"dist/",
|
|
"plugin/",
|
|
"no-reply-api/",
|
|
"discord-control-api/",
|
|
"docs/",
|
|
"scripts/install-dirigent-openclaw.mjs",
|
|
"docker-compose.yml",
|
|
"Makefile",
|
|
"README.md",
|
|
"CHANGELOG.md",
|
|
"TASKLIST.md"
|
|
],
|
|
"scripts": {
|
|
"prepare": "mkdir -p dist/dirigent && cp plugin/* dist/dirigent/",
|
|
"postinstall": "node scripts/install-dirigent-openclaw.mjs --install",
|
|
"uninstall": "node scripts/install-dirigent-openclaw.mjs --uninstall"
|
|
},
|
|
"keywords": [
|
|
"openclaw",
|
|
"plugin",
|
|
"discord",
|
|
"moderation",
|
|
"turn-management"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://git.hangman-lab.top/nav/Dirigent.git"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
}
|
|
}
|