mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-01 09:53:25 +08:00
feat(cli-endpoints): add create, update, and delete functionality for CLI endpoints
- Implemented `useCreateCliEndpoint`, `useUpdateCliEndpoint`, and `useDeleteCliEndpoint` hooks for managing CLI endpoints. - Added `CliEndpointFormDialog` component for creating and editing CLI endpoints with validation. - Updated translations for CLI hooks and manager to include new fields and messages. - Refactored `CcwToolsMcpCard` to simplify enabling and disabling tools. - Adjusted `SkillCreateDialog` to display paths based on CLI type.
This commit is contained in:
@@ -104,7 +104,10 @@
|
||||
"hookType": "Hook Type",
|
||||
"trigger": "Trigger Event",
|
||||
"platform": "Platform",
|
||||
"commandPreview": "Command Preview"
|
||||
"commandPreview": "Command Preview",
|
||||
"installTo": "Install To",
|
||||
"scopeProject": "Project",
|
||||
"scopeGlobal": "Global"
|
||||
}
|
||||
},
|
||||
"navigation": {
|
||||
@@ -117,36 +120,49 @@
|
||||
"title": "Memory Update Wizard",
|
||||
"description": "Configure hook to update CLAUDE.md on session end",
|
||||
"shortDescription": "Update CLAUDE.md automatically",
|
||||
"claudePath": "CLAUDE.md Path",
|
||||
"updateFrequency": "Update Frequency",
|
||||
"frequency": {
|
||||
"sessionEnd": "Session End",
|
||||
"hourly": "Hourly",
|
||||
"daily": "Daily"
|
||||
}
|
||||
"cliTool": "CLI Tool",
|
||||
"cliToolHelp": "CLI tool for CLAUDE.md generation",
|
||||
"threshold": "Threshold (paths)",
|
||||
"thresholdHelp": "Number of paths to trigger batch update (1-20)",
|
||||
"timeout": "Timeout (seconds)",
|
||||
"timeoutHelp": "Auto-flush queue after this time (60-1800)"
|
||||
},
|
||||
"dangerProtection": {
|
||||
"title": "Danger Protection Wizard",
|
||||
"description": "Configure confirmation hook for dangerous operations",
|
||||
"shortDescription": "Confirm dangerous operations",
|
||||
"keywords": "Dangerous Keywords",
|
||||
"keywordsHelp": "Enter one keyword per line",
|
||||
"confirmationMessage": "Confirmation Message",
|
||||
"allowBypass": "Allow bypass with --force flag"
|
||||
"selectProtections": "Select the protections you want to enable",
|
||||
"selectedProtections": "Selected Protections",
|
||||
"options": {
|
||||
"bashConfirm": "Dangerous Commands",
|
||||
"bashConfirmDesc": "Confirm before rm -rf, shutdown, kill, format, etc.",
|
||||
"fileProtection": "Sensitive Files",
|
||||
"fileProtectionDesc": "Block modifications to .env, .git/, secrets, keys",
|
||||
"gitDestructive": "Git Operations",
|
||||
"gitDestructiveDesc": "Confirm force push, hard reset, branch delete",
|
||||
"networkConfirm": "Network Access",
|
||||
"networkConfirmDesc": "Confirm curl, wget, ssh, WebFetch requests",
|
||||
"systemPaths": "System Paths",
|
||||
"systemPathsDesc": "Block/confirm operations on /etc, /usr, C:\\Windows",
|
||||
"permissionChange": "Permission Changes",
|
||||
"permissionChangeDesc": "Confirm chmod, chown, icacls operations"
|
||||
}
|
||||
},
|
||||
"skillContext": {
|
||||
"title": "SKILL Context Wizard",
|
||||
"description": "Configure hook to load SKILL based on prompt keywords",
|
||||
"shortDescription": "Auto-load SKILL based on keywords",
|
||||
"loadingSkills": "Loading available skills...",
|
||||
"keywordPlaceholder": "Enter keyword",
|
||||
"selectSkill": "Select skill",
|
||||
"addPair": "Add Keyword-Skill Pair",
|
||||
"priority": "Priority",
|
||||
"priorityHigh": "High",
|
||||
"priorityMedium": "Medium",
|
||||
"priorityLow": "Low",
|
||||
"keywordMappings": "Keyword Mappings"
|
||||
"addPair": "Add Skill Configuration",
|
||||
"keywordMappings": "Keyword Mappings",
|
||||
"keywordsPlaceholder": "react,workflow,api",
|
||||
"mode": "Detection Mode",
|
||||
"modeKeyword": "Keyword Matching",
|
||||
"modeKeywordDesc": "Load specific SKILLs when keywords are detected",
|
||||
"modeAuto": "Auto Detection",
|
||||
"modeAutoDesc": "Automatically detect and load SKILLs by name",
|
||||
"autoDescription": "Auto detection mode will scan user prompts for SKILL names and automatically load matching context. All available skills are shown below."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,6 +28,32 @@
|
||||
"delete": "Delete Endpoint",
|
||||
"toggle": "Toggle Endpoint"
|
||||
},
|
||||
"dialog": {
|
||||
"createTitle": "Add Endpoint",
|
||||
"editTitle": "Edit Endpoint ({id})"
|
||||
},
|
||||
"form": {
|
||||
"name": "Name",
|
||||
"namePlaceholder": "My endpoint",
|
||||
"type": "Type",
|
||||
"enabled": "Enabled",
|
||||
"enabledHint": "Enable or disable this endpoint",
|
||||
"configJson": "Configuration (JSON)",
|
||||
"configJsonPlaceholder": "{\n \n}"
|
||||
},
|
||||
"validation": {
|
||||
"nameRequired": "Name is required",
|
||||
"typeRequired": "Type is required",
|
||||
"invalidJson": "Invalid JSON",
|
||||
"configMustBeObject": "Configuration must be a JSON object"
|
||||
},
|
||||
"messages": {
|
||||
"created": "Endpoint created",
|
||||
"updated": "Endpoint updated",
|
||||
"deleted": "Endpoint deleted",
|
||||
"saveFailed": "Failed to save endpoint",
|
||||
"deleteFailed": "Failed to delete endpoint"
|
||||
},
|
||||
"deleteConfirm": "Are you sure you want to delete the endpoint \"{id}\"?",
|
||||
"emptyState": {
|
||||
"title": "No CLI Endpoints Found",
|
||||
|
||||
Reference in New Issue
Block a user