Skip to content

docs: correct and cut the markdown - #19

Merged
saby1101 merged 1 commit into
mainfrom
docs/md-cleanup
Aug 14, 2026
Merged

saby1101 merged 1 commit into
mainfrom
docs/md-cleanup

Conversation

@saby1101

Copy link
Copy Markdown
Member

Docs-only. No source or config changes; lint, build, 127 tests and prettier --check all pass.

README was unusable as written

It named the package @stackbox/fp-plugins in all six install and import examples. The real name is @stackbox-dev/fp-plugins, so anyone following the README got a package that does not exist.

It also carried 168 lines documenting the event-bus plugin deleted in c001efc — brokers, EventBus options, RABBITMQ_URL / EVENT_* env vars, CreateEventConsumer. src/index.ts exports only Plugins.FileStore.

Three more factual errors: Node 18+ against engines: >=22; the local default described as the system temp directory when the code uses a stackboxwms subdirectory (file-store.ts:477); and no registry config, though the package publishes only to GitHub Packages so a plain install cannot resolve it.

Rewritten for consumers, 378 → 154 lines, with every provider env var checked against src/file-store.ts. Two things consumers were never told are now documented: they get FastifyInstance.FileStore typing automatically, and the cloud SDKs load lazily.

Other files

  • CLAUDE.md claimed its list was every script in package.json (prepare and prepublishOnly are also defined) and omitted utils.spec.ts.
  • .claude/skills/gen-test/SKILL.md said cloud SDKs are never containerised and the repo has no Docker-based tests — contradicted by file-store.minio.integration.spec.ts. The no-testcontainers rule is kept; it now points at the integration spec.
  • .claude/agents/security-reviewer.md reviewed the deleted event-bus: broker connections, the /event-bus/publish/:event endpoint, NATS and RabbitMQ clients. Rescoped to the file store — credential exposure, filepath traversal, env-var defaults, resource leaks, SDK misuse.
  • CONTRIBUTING.md gained the Node >= 22 requirement. Its branch-protection claims were checked against the live ruleset and are accurate.
  • .claude/skills/release/SKILL.md unchanged — every claim verified correct.

Noted, not changed

FileInfo is not exported from src/index.ts, so consumers cannot name the type getInfo returns. That is a code change, not a docs fix.

README named the package @stackbox/fp-plugins in all six install and import
examples; it is @stackbox-dev/fp-plugins, so following the README could not work.
It also documented 168 lines of the event-bus plugin deleted in c001efc, claimed
Node 18+ against engines >=22, described the local default as the system temp dir
rather than a stackboxwms subdirectory, and gave no registry config for a package
published only to GitHub Packages. Rewritten for consumers: 378 -> 154 lines, with
env vars checked line by line against file-store.ts, and the automatic
FastifyInstance.FileStore typing and lazy SDK loading documented for the first time.

CLAUDE.md claimed its list was every script (prepare and prepublishOnly are also
defined) and omitted utils.spec.ts.

gen-test skill said cloud SDKs are never containerised and there are no
Docker-based tests, contradicting the MinIO integration spec.

security-reviewer agent reviewed the deleted event-bus — broker connections, the
publish endpoint, NATS and RabbitMQ clients. Rescoped to the file store.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@saby1101
saby1101 merged commit 219beea into main Aug 14, 2026
2 checks passed
@saby1101
saby1101 deleted the docs/md-cleanup branch August 14, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant