{"_id":"@booga/bsmell","_rev":"2-12c959e252afa5bd218bed6cc3cea84c","name":"@booga/bsmell","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.1":{"name":"@booga/bsmell","version":"0.1.1","keywords":["cli","agent","prompt","lookup"],"license":"MIT","_id":"@booga/bsmell@0.1.1","maintainers":[{"name":"dreaktor","email":"me@dreaktor.com"}],"homepage":"https://github.com/bvasilenko/bSmell#readme","bugs":{"url":"https://github.com/bvasilenko/bSmell/issues"},"bin":{"bsmell":"bin/bsmell.js"},"dist":{"shasum":"5823839c77a1be8957da75b6af76411912eb5616","tarball":"https://registry.npmjs.org/@booga/bsmell/-/bsmell-0.1.1.tgz","fileCount":5,"integrity":"sha512-rvF/SSperx3gN0YxLdhOeGbX4SaCT5C6C8W6RfqCXRfzCyrqLzw4UFhSSPu8LU2Mk1CHWGD3N/7qdVoM34w3eA==","signatures":[{"sig":"MEUCIAlFghk3TJp1PWJWo1lkTBAQKSf1Un6LgKojhJFHthlAAiEArSUxG4OWq9GcxUMA/wZkawMgvADE/eIdGOisciWRUKc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4834},"gitHead":"c0ac4d56dcf9f29e1f36b52abebf0443464cf6ef","scripts":{"postinstall":"node ./bin/install.js"},"_npmUser":{"name":"dreaktor","email":"me@dreaktor.com"},"repository":{"url":"git+https://github.com/bvasilenko/bSmell.git","type":"git"},"_npmVersion":"10.9.3","description":"Prompt lookup tool. Agent names a smell category from a fixed list; bsmell returns the prompt for that smell category. The prompt tells the agent how to check the session for that smell.","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bsmell_0.1.1_1781268557580_0.38764674728707305","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@booga/bsmell","version":"0.2.0","description":"Prompt lookup tool. Agent names a smell category from a fixed list; bsmell returns the prompt for that smell category. The prompt tells the agent how to check the session for that smell.","bin":{"bsmell":"bin/bsmell.js"},"scripts":{"postinstall":"node ./bin/install.js"},"keywords":["cli","agent","prompt","lookup"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/bvasilenko/bSmell.git"},"_id":"@booga/bsmell@0.2.0","gitHead":"d4febd7a28d96ab6838d802875e43ff1391c02fc","bugs":{"url":"https://github.com/bvasilenko/bSmell/issues"},"homepage":"https://github.com/bvasilenko/bSmell#readme","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-/oTWMdgz6XWduDt/Ac62MeZWXe9kWLTIP1LVbUYoiHQM4m5W4rbc1in/QbMaXTuYfDwKgrJXR/CBWHEBYAtwGg==","shasum":"fd8444934dea557bc9fae4b281a6abbb23c24cd3","tarball":"https://registry.npmjs.org/@booga/bsmell/-/bsmell-0.2.0.tgz","fileCount":5,"unpackedSize":6789,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBW9YoFFfO59iGKxFLYC5srTqsnBFosp/PHI3E0JgqyBAiAcbk7RlNCp+S1gajUXcCs0Ok0qvHbp5nUSGT5MScwclw=="}]},"_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/bsmell_0.2.0_1782976334670_0.1606157718969654"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-12T12:49:17.401Z","modified":"2026-07-02T07:12:14.946Z","0.1.1":"2026-06-12T12:49:17.736Z","0.2.0":"2026-07-02T07:12:14.796Z"},"bugs":{"url":"https://github.com/bvasilenko/bSmell/issues"},"license":"MIT","homepage":"https://github.com/bvasilenko/bSmell#readme","keywords":["cli","agent","prompt","lookup"],"repository":{"type":"git","url":"git+https://github.com/bvasilenko/bSmell.git"},"description":"Prompt lookup tool. Agent names a smell category from a fixed list; bsmell returns the prompt for that smell category. The prompt tells the agent how to check the session for that smell.","maintainers":[{"name":"dreaktor","email":"me@dreaktor.com"}],"readme":"# bsmell\n\nFor agents that take shortcuts. bsmell returns a directive for a smell category selected by the caller. The caller supplies the category after inspecting a session transcript or diff, and bsmell emits the corresponding SMELL-DETECTED directive describing how to investigate that category. The smell taxonomy is closed at this version; the prompt library evolves continuously via empirical-lift evaluation, so the same selected category can receive stricter guidance as the corpus matures.\n\n\nPrompt lookup tool. Agent names a smell category from a fixed list; bsmell returns the prompt for that smell category. The prompt tells the agent how to check the session for that smell.\n\nBuilt for agentic loops. Looks up a selected category from a closed 15-category smell taxonomy, writes the directive on stdout, and exits with a discriminating code so the calling agent can branch. Automatic transcript or diff matching is not part of this release.\n\n```\nbsmell scan --category <name>       emit the directive for a supported smell category; exit 0 / 1 / 2 / 64\nbsmell categories                 list the 15 supported smell-category identifiers\nbsmell init                       scaffold a manifest in the current directory\nbsmell update                     self-update to the latest published version\nbsmell tail                       stream recent verdict transcripts\nbsmell explain                   print taxonomy + exit-code reference\n```\n\nExit code contract: `0` clean (no smell), `1` smell detected, `2` internal error, `64` malformed input.\n\n## Install\n\n```sh\ncargo install --git https://github.com/bvasilenko/bSmell\n```\n\n## Use\n\n```sh\nbsmell scan --category red-herring --session ./session.jsonl\n# stdout: SMELL-DETECTED: red-herring ...\n# exit: 1\n\nbsmell scan --category mock-instead-of-fix --diff ./PR-feature-x.diff --json\n# stdout: {\"schema_version\":1,\"outcome\":\"finding\",\"directive\":\"...\"}\n# exit: 1\n```\n\n`scan` requires `--category <smell-category>`. Optional flags: `--session <path-or-fd>`, `--diff <path>`, `--manifest <path>`, `--json`, `--quiet`, `--reason <text>`. The session and diff paths are accepted as caller-supplied evidence context; this release does not classify their contents automatically.\n\n## Environment variables\n\n| Variable | Purpose | Default |\n|---|---|---|\n| `BSUITE_UPDATE_BASE_URL` | Base URL for the `bsmell update` manifest endpoint | placeholder (update will fail without a real endpoint) |\n| `BSUITE_TRANSCRIPT_DIR` | Override the transcript directory path | platform XDG/AppSupport/LocalAppData default |\n| `BSUITE_TRANSCRIPT_RETENTION_DAYS` | Transcript retention window in days | 90 |\n| `BSUITE_OVERLAY_PATH` | Override the signed manifest-overlay path | binary install directory |\n| `BSUITE_OVERLAY_PUBKEY_PATH` | Override the manifest-overlay verifying-key path | binary install directory |\n| `BSUITE_HOST_CONTEXT` | CMS adapter host context tag, set by adapters | default host context |\n\nTranscript writing is best-effort. A transcript write failure does not change the stdout directive or exit code because stdout is the primary command contract. Invalid signed overlays fail visibly during startup and are not treated like absent overlays.\n\n## Corpus status\n\nThe v0 corpus embedded in this release is fixture material. It is hand-authored seed content used until an evolved corpus ships in a later release, and it is not production trust material.\n\n## Smell taxonomy\n\nClosed 15-variant `SmellCategory` enum. The taxonomy is fixed at this version; widening lands in a later version.\n\n| Category | Variants |\n|---|---|\n| Engineering | `try-except-swallow`, `hardcoded-value`, `mock-instead-of-fix`, `silent-success`, `unaudited-edit`, `acceptable-degradation` |\n| Scope | `scope-creep`, `scope-shrink` |\n| Behavioral | `pride-defense`, `time-sink`, `red-herring`, `symptom-mute` |\n| CMS edge | `schema-violation-silent-coerce`, `regulated-term-omission`, `synonym-hallucination` |\n\n`bsmell categories` prints the full list.\n\n## License\n\nMIT.\n","readmeFilename":"README.md"}