-
-
Notifications
You must be signed in to change notification settings - Fork 20
chore: update deps #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update deps #126
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughIntroduces a new MCP package with server, schemas, handlers, build config, and docs; adds a --force (-f) flag to the core CLI to bypass overwrite prompts; updates several template/manifests and devDependency versions; and adds root devDependencies for @Create-uni tooling. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client as MCP Client
participant Server as MCP Server (@create-uni/mcp)
participant Handlers as Handlers
participant Spawn as npx create-uni@latest
participant FS as File System
Note over Server: Startup
Client->>Server: Connect via stdio
Server-->>Client: Tools registered: create-with-template, create-custom
rect rgba(227,245,255,0.7)
Note right of Client: Use preset template
Client->>Server: callTool(create-with-template, {name, templateType, force})
Server->>Handlers: createWithTemplate(options)
Handlers->>FS: checkDirectory(name, force)
FS-->>Handlers: {canCreate}
alt canCreate
Handlers->>Spawn: run with args derived from options
Spawn-->>Handlers: {success|error}
alt success
Handlers-->>Server: CallToolResult (success message)
Server-->>Client: Result
else error
Handlers-->>Server: CallToolResult (error text)
Server-->>Client: Error
end
else blocked
Handlers-->>Server: CallToolResult (directory not empty)
Server-->>Client: Info
end
end
rect rgba(232,255,232,0.7)
Note right of Client: Custom selection
Client->>Server: callTool(create-custom, {name, flags, lists, force})
Server->>Handlers: createCustom(options)
Handlers->>FS: checkDirectory(name, force)
FS-->>Handlers: {canCreate}
Handlers->>Spawn: run with constructed args
Spawn-->>Handlers: {success|error}
Handlers-->>Server: CallToolResult (summary or error)
Server-->>Client: Result
end
sequenceDiagram
autonumber
actor User
participant CLI as packages/core/src/index.ts
participant FS as File System
User->>CLI: create-uni <projectName> [--force|-f]
alt --force provided
Note right of CLI: Skip prompt
CLI->>FS: Overwrite target
FS-->>CLI: result
else no --force
CLI->>User: Prompt: overwrite?
User-->>CLI: yes/no
alt yes
CLI->>FS: Overwrite target
FS-->>CLI: result
else no
CLI-->>User: Abort
end
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested labels
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (16)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description 描述
Linked Issues 关联的 Issues
Additional context 额外上下文
Summary by CodeRabbit
New Features
Documentation
Chores