feat: add uploaded skills management

This commit is contained in:
Codex
2026-05-31 11:44:50 +08:00
parent 47ab535cf2
commit 70ebd1689c
18 changed files with 1421 additions and 8 deletions
+3 -1
View File
@@ -195,7 +195,9 @@
"NO_PROXY": "hyueapi.com,.hyueapi.com,hyui.com,.hyui.com,127.0.0.1,localhost,::1,api.minimaxi.com,.minimaxi.com",
"no_proxy": "hyueapi.com,.hyueapi.com,hyui.com,.hyui.com,127.0.0.1,localhost,::1,api.minimaxi.com,.minimaxi.com",
"OPENAI_API_KEY": "secretRef:hwlab-code-agent-provider/openai-api-key",
"HWLAB_CODE_AGENT_SKILLS_DIRS": "/app/skills",
"HWLAB_CODE_AGENT_SKILLS_DIRS": "/app/skills:/data/user-skills",
"HWLAB_PREINSTALLED_SKILLS_DIR": "/app/skills",
"HWLAB_USER_SKILLS_DIR": "/data/user-skills",
"HWLAB_CODE_AGENT_DEFAULT_PROVIDER_PROFILE": "deepseek",
"HWLAB_CODE_AGENT_DEEPSEEK_MODEL": "deepseek-chat",
"HWLAB_CODE_AGENT_DEEPSEEK_BASE_URL": "http://hwlab-deepseek-proxy.hwlab-dev.svc.cluster.local:4000/v1/responses",
+40
View File
@@ -24,6 +24,28 @@
}
}
},
{
"apiVersion": "v1",
"kind": "PersistentVolumeClaim",
"metadata": {
"labels": {
"app.kubernetes.io/name": "hwlab-user-skills",
"hwlab.pikastech.local/service-id": "hwlab-user-skills"
},
"name": "hwlab-user-skills",
"namespace": "hwlab-dev"
},
"spec": {
"accessModes": [
"ReadWriteOnce"
],
"resources": {
"requests": {
"storage": "2Gi"
}
}
}
},
{
"apiVersion": "apps/v1",
"kind": "Deployment",
@@ -200,8 +222,16 @@
},
{
"name": "HWLAB_CODE_AGENT_SKILLS_DIRS",
"value": "/app/skills:/data/user-skills"
},
{
"name": "HWLAB_PREINSTALLED_SKILLS_DIR",
"value": "/app/skills"
},
{
"name": "HWLAB_USER_SKILLS_DIR",
"value": "/data/user-skills"
},
{
"name": "OPENAI_API_KEY",
"valueFrom": {
@@ -262,6 +292,10 @@
"name": "hwlab-code-agent-workspace",
"mountPath": "/workspace"
},
{
"name": "hwlab-user-skills",
"mountPath": "/data/user-skills"
},
{
"name": "hwlab-code-agent-codex-home",
"mountPath": "/codex-home"
@@ -349,6 +383,12 @@
"claimName": "hwlab-code-agent-workspace"
}
},
{
"name": "hwlab-user-skills",
"persistentVolumeClaim": {
"claimName": "hwlab-user-skills"
}
},
{
"name": "hwlab-code-agent-codex-home",
"emptyDir": {}