You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(workspaces): migrate to Deno workspaces and improve validation
This commit introduces two major improvements to the monorepo structure and a key dependency:
1. **Migration to Deno Workspaces:**
The project has been migrated to use Deno's native workspace functionality. This simplifies local package management and dependency resolution.
- An import map has been added to the root `deno.json` for all internal packages (e.g., `@mcpc/core`).
- Package `deno.json` files now use `workspace:^` to reference other packages within the monorepo, replacing the previous `jsr:` specifiers.
- Package versions have been bumped across the repository to reflect these structural changes.
2. **Refactor Validation in `plugin-code-execution`:**
The validation logic for tool arguments in the `plugin-code-execution` package has been refactored.
- Switched from `json-schema-to-zod` and `zod` to using `ajv` with `ajv-errors`.
- This removes the intermediate step of converting JSON schema to a Zod schema, simplifying the validation process and reducing dependencies.
- Error messages are now more user-friendly, directly using the output from `ajv-errors`.
0 commit comments