Skip to content

Commit f5a5271

Browse files
authored
fix: Fix Clawdbot plugin configurations (#227)
1 parent 9a82383 commit f5a5271

5 files changed

Lines changed: 7 additions & 5 deletions

File tree

all-in-one/clawdbot-integration/plugin/clawdbot.plugin.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"name": "Higress AI Gateway",
44
"description": "Model provider plugin for Higress AI Gateway with auto-routing support",
55
"providers": ["higress"],
6-
"skills": ["higress-auto-router"]
6+
"skills": ["higress-auto-router"],
7+
"configSchema": {
8+
"type": "object",
9+
"additionalProperties": true
10+
}
711
}

all-in-one/clawdbot-integration/skill/higress-auto-router/SKILL.md renamed to all-in-one/clawdbot-integration/plugin/higress-auto-router/SKILL.md

File renamed without changes.

all-in-one/clawdbot-integration/plugin/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ const higressPlugin = {
162162
const apiKeyInput = await ctx.prompter.text({
163163
message: "API Key (leave empty if not required)",
164164
initialValue: "",
165-
});
165+
}) || '';
166166
const apiKey = apiKeyInput.trim() || "higress-local";
167167

168168
// Step 5: Fetch available models (create a new spinner)

all-in-one/clawdbot-integration/plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@higress/clawdbot-ai-gateway",
2+
"name": "@higress/higress-ai-gateway",
33
"version": "1.0.0",
44
"description": "Higress AI Gateway model provider plugin for Clawdbot with auto-routing support",
55
"main": "index.ts",

all-in-one/get-ai-gateway.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ CONFIGURED_MARK="$ROOT/.configured"
4949
# Clawdbot integration paths
5050
CLAWDBOT_WORKSPACE="$HOME/clawd"
5151
CLAWDBOT_EXTENSIONS_DIR="$HOME/.clawdbot/extensions"
52-
CLAWDBOT_SKILLS_DIR="$CLAWDBOT_WORKSPACE/skills/public"
5352
CLAWDBOT_INTEGRATION_DIR="$SCRIPT_DIR/clawdbot-integration"
5453

5554
# Auto-routing configuration
@@ -263,7 +262,6 @@ configureClawdbotIntegration() {
263262

264263
# Install Clawdbot plugin and skill using generic function
265264
installFiles "$CLAWDBOT_INTEGRATION_DIR/plugin" "$CLAWDBOT_EXTENSIONS_DIR/higress-ai-gateway" "Higress AI Gateway plugin"
266-
installFiles "$CLAWDBOT_INTEGRATION_DIR/skill/higress-auto-router" "$CLAWDBOT_SKILLS_DIR/higress-auto-router" "Higress Auto Router skill"
267265

268266
echo
269267
echo "To complete Clawdbot setup, run:"

0 commit comments

Comments
 (0)