Skip to content

Commit cffa6e7

Browse files
committed
feat(core/cli/utils): separate server/cli from core packge, reduces deps and pkg size
- Add deno.json for CLI package configuration and exports. - Create mod.ts as the main entry point for CLI package. - Implement createServer and createApp functions in app.ts for server setup and route registration. - Add bin.ts for running the CLI as an MCP server using STDIO transport. - Implement core, message, and SSE controllers for handling respective routes and functionalities. - Create error schema for consistent error responses. - Set up OpenAPI documentation routes for core and message handling. - Introduce utility functions in the utils package for JSON parsing and time management. - Update core package to version 0.2.0-beta.1 and adjust imports accordingly. - Refactor existing code to utilize new utility functions and improve structure.
1 parent 42ad62b commit cffa6e7

File tree

27 files changed

+396
-365
lines changed

27 files changed

+396
-365
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"tasks": {
55
"precommit": "deno lint && deno check && deno fmt"
66
},
7-
"workspace": ["./packages/core"],
7+
"workspace": ["./packages/utils", "./packages/core", "./packages/cli"],
88
"imports": {
99
"@es-toolkit/es-toolkit": "jsr:@es-toolkit/es-toolkit@^1.37.2",
1010
"json-schema-faker": "npm:json-schema-faker@^0.5.9",

0 commit comments

Comments
 (0)