feat: add evlog/toolkit for custom framework integrations#169
feat: add evlog/toolkit for custom framework integrations#169HugoRCD merged 4 commits intoHugoRCD:mainfrom
evlog/toolkit for custom framework integrations#169Conversation
|
@OskarLebuda is attempting to deploy a commit to the HRCD Projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Thank you for following the naming conventions! 🙏 |
evlog/toolkit for custom framework integrations
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
There was a problem hiding this comment.
Pull request overview
Adds a new public subpath entrypoint (evlog/toolkit) to expose the internal src/shared/ building blocks so community/custom framework integrations can reuse the same middleware pipeline utilities as the built-in adapters.
Changes:
- Publish
src/shared/*asevlog/toolkitvia build + package export mappings. - Move
extractErrorStatusintoshared/errors.tsand re-export fromnitro.tsfor backward compatibility. - Add/extend documentation (README + docs site) for building custom integrations using the toolkit.
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/evlog/tsdown.config.ts | Adds a new build entry for toolkit pointing at src/shared/index.ts. |
| packages/evlog/src/shared/storage.ts | Marks createLoggerStorage as part of the public toolkit API via JSDoc. |
| packages/evlog/src/shared/middleware.ts | Switches to shared/errors and annotates toolkit-facing APIs as @beta. |
| packages/evlog/src/shared/index.ts | Introduces the evlog/toolkit barrel re-exporting shared utilities. |
| packages/evlog/src/shared/errors.ts | Adds new shared home for extractErrorStatus() (toolkit export). |
| packages/evlog/src/nitro.ts | Re-exports extractErrorStatus from shared/errors to preserve existing imports. |
| packages/evlog/package.json | Exposes ./toolkit in exports and typesVersions. |
| packages/evlog/README.md | Documents the new “Custom” option pointing to evlog/toolkit. |
| apps/docs/content/2.frameworks/14.custom-integration.md | Adds a full guide for custom integrations using the toolkit API. |
| apps/docs/content/2.frameworks/00.overview.md | Adds “Custom” to the frameworks overview table + card list. |
| apps/docs/content/1.getting-started/2.installation.md | Links to the new Custom Integration guide from installation docs. |
| AGENTS.md | Documents the new public entrypoint mapping and intent for src/shared/. |
| .changeset/toolkit-entrypoint.md | Declares a minor release for the new toolkit entrypoint. |
| .agents/skills/create-framework-integration/SKILL.md | Notes that shared utilities are publicly available as evlog/toolkit. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
expose
sharedutils🔗 Linked issue
📚 Description
📝 Checklist