diff --git a/all-in-one/clawdbot-integration/plugin/clawdbot.plugin.json b/all-in-one/clawdbot-integration/plugin/clawdbot.plugin.json index 1dca596..238686f 100644 --- a/all-in-one/clawdbot-integration/plugin/clawdbot.plugin.json +++ b/all-in-one/clawdbot-integration/plugin/clawdbot.plugin.json @@ -3,5 +3,9 @@ "name": "Higress AI Gateway", "description": "Model provider plugin for Higress AI Gateway with auto-routing support", "providers": ["higress"], - "skills": ["higress-auto-router"] + "skills": ["higress-auto-router"], + "configSchema": { + "type": "object", + "additionalProperties": true + } } diff --git a/all-in-one/clawdbot-integration/skill/higress-auto-router/SKILL.md b/all-in-one/clawdbot-integration/plugin/higress-auto-router/SKILL.md similarity index 100% rename from all-in-one/clawdbot-integration/skill/higress-auto-router/SKILL.md rename to all-in-one/clawdbot-integration/plugin/higress-auto-router/SKILL.md diff --git a/all-in-one/clawdbot-integration/plugin/index.ts b/all-in-one/clawdbot-integration/plugin/index.ts index 5ffb8a9..3129d6a 100644 --- a/all-in-one/clawdbot-integration/plugin/index.ts +++ b/all-in-one/clawdbot-integration/plugin/index.ts @@ -162,7 +162,7 @@ const higressPlugin = { const apiKeyInput = await ctx.prompter.text({ message: "API Key (leave empty if not required)", initialValue: "", - }); + }) || ''; const apiKey = apiKeyInput.trim() || "higress-local"; // Step 5: Fetch available models (create a new spinner) diff --git a/all-in-one/clawdbot-integration/plugin/package.json b/all-in-one/clawdbot-integration/plugin/package.json index 7c15a41..148556c 100644 --- a/all-in-one/clawdbot-integration/plugin/package.json +++ b/all-in-one/clawdbot-integration/plugin/package.json @@ -1,5 +1,5 @@ { - "name": "@higress/clawdbot-ai-gateway", + "name": "@higress/higress-ai-gateway", "version": "1.0.0", "description": "Higress AI Gateway model provider plugin for Clawdbot with auto-routing support", "main": "index.ts", diff --git a/all-in-one/get-ai-gateway.sh b/all-in-one/get-ai-gateway.sh index 05d45b5..6fa0aa1 100755 --- a/all-in-one/get-ai-gateway.sh +++ b/all-in-one/get-ai-gateway.sh @@ -49,7 +49,6 @@ CONFIGURED_MARK="$ROOT/.configured" # Clawdbot integration paths CLAWDBOT_WORKSPACE="$HOME/clawd" CLAWDBOT_EXTENSIONS_DIR="$HOME/.clawdbot/extensions" -CLAWDBOT_SKILLS_DIR="$CLAWDBOT_WORKSPACE/skills/public" CLAWDBOT_INTEGRATION_DIR="$SCRIPT_DIR/clawdbot-integration" # Auto-routing configuration @@ -263,7 +262,6 @@ configureClawdbotIntegration() { # Install Clawdbot plugin and skill using generic function installFiles "$CLAWDBOT_INTEGRATION_DIR/plugin" "$CLAWDBOT_EXTENSIONS_DIR/higress-ai-gateway" "Higress AI Gateway plugin" - installFiles "$CLAWDBOT_INTEGRATION_DIR/skill/higress-auto-router" "$CLAWDBOT_SKILLS_DIR/higress-auto-router" "Higress Auto Router skill" echo echo "To complete Clawdbot setup, run:"