{"_id":"@booga/bdirectus","name":"@booga/bdirectus","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@booga/bdirectus","version":"0.1.0","description":"Directus extension embedding the b-suite discipline runtime into the admin authoring UI.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bvasilenko/bDirectus.git"},"type":"module","scripts":{"build":"directus-extension build","typecheck":"vue-tsc --noEmit -p tsconfig.json","lint":"eslint .","test":"vitest run"},"peerDependencies":{"@directus/extensions-sdk":"^11"},"devDependencies":{"@directus/extensions-sdk":"11.0.10","@eslint/js":"^9.30.1","@types/node":"^22.15.32","@vitejs/plugin-vue":"^5.2.4","eslint":"^9.30.1","eslint-plugin-vue":"^10.9.2","typescript":"5.8.3","typescript-eslint":"^8.35.0","vite":"^6.3.5","vitest":"^3.2.4","vue":"^3.5.17","vue-eslint-parser":"^10.4.1","vue-tsc":"^2.2.10"},"directus:extension":{"type":"bundle","path":{"app":"dist/app.js","api":"dist/api.js"},"host":"^10.0.0 || ^11.0.0","sandbox":{"enabled":false},"entries":[{"type":"hook","name":"bdirectus-hook","source":"src/hook/index.ts"},{"type":"interface","name":"bsuite-directive","source":"src/interface/index.ts"}]},"_id":"@booga/bdirectus@0.1.0","gitHead":"e6187e414023536fbabe15a20332b563e99f6ba5","bugs":{"url":"https://github.com/bvasilenko/bDirectus/issues"},"homepage":"https://github.com/bvasilenko/bDirectus#readme","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-KGDifngyoJVBLeuqTApsDU52sKA43JLDwot1i5qikKUc85Cjf+9YcwKOn7VVtql1ddaphv+AfS0mZY9xbVUUog==","shasum":"eaa79cd59f59470e6d4168c2c587458a235aa1b7","tarball":"https://registry.npmjs.org/@booga/bdirectus/-/bdirectus-0.1.0.tgz","fileCount":5,"unpackedSize":72646,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICflndWy6r8M9SLT4IzmlsjzJWCaFZQ98Lf583MzZas0AiAiEYSF4qV/W8vXqEbCQiZphFR646QOmsPu4wp+hqCcuw=="}]},"_npmUser":{"name":"dreaktor","email":"me@dreaktor.com"},"directories":{},"maintainers":[{"name":"dreaktor","email":"me@dreaktor.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bdirectus_0.1.0_1781368571306_0.1792424569000597"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-13T16:36:11.051Z","0.1.0":"2026-06-13T16:36:11.459Z","modified":"2026-06-13T16:36:11.678Z"},"maintainers":[{"name":"dreaktor","email":"me@dreaktor.com"}],"description":"Directus extension embedding the b-suite discipline runtime into the admin authoring UI.","homepage":"https://github.com/bvasilenko/bDirectus#readme","repository":{"type":"git","url":"git+https://github.com/bvasilenko/bDirectus.git"},"bugs":{"url":"https://github.com/bvasilenko/bDirectus/issues"},"license":"MIT","readme":"# bDirectus\n\nDirectus extension embedding the b-suite discipline runtime into the admin authoring UI.\n\n## Install\n\n```bash\nnpm install -D @booga/bdirectus\n```\n\nOr install through the Directus extension installer when available:\n\n```bash\nnpx directus-extension install bdirectus\n```\n\n## Usage\n\nAdd a JSON field named `bsuite_directive` to each collection that should display directives. Configure allowlisted collections through environment variables:\n\n```bash\nBDIRECTUS_COLLECTIONS=articles,pages\nBDIRECTUS_BINARIES=bground,banchor,bsmell,bratch,bwatch,bspector\n```\n\nThe hook checks allowlisted create and update payloads for b-suite markers, runs the enabled b-* binaries, and stores the directive bundle on the configured JSON field before Directus saves the item.\n\n## Configuration\n\n| Variable | Default | Purpose |\n|---|---|---|\n| `BDIRECTUS_COLLECTIONS` | none | Comma-separated Directus collections allowed to run the extension. |\n| `BDIRECTUS_BINARIES` | all six binaries | Comma-separated enabled binary names. |\n| `BDIRECTUS_DIRECTIVE_FIELD` | `bsuite_directive` | JSON field used to store directive output. |\n| `BDIRECTUS_MARKER_STYLE` | `sentinel` | Marker parser: `sentinel` or `json-tail`. |\n| `BDIRECTUS_BINARY_TIMEOUT_MS` | `5000` | Per-binary timeout in milliseconds. |\n| `BDIRECTUS_BINARY_PATH_<NAME>` | binary name | Optional executable path per binary, for example `BDIRECTUS_BINARY_PATH_BGROUND`. |\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-2c4639c304351d3f2c52c89e581fdbba"}