Files
multica/server/migrations/175_runtime_profile_add_deveco.up.sql
Jordan c27919a4d0 feat(agents): add DevEco Code (deveco) runtime agent (MUL-4050) (#4916)
Adds DevEco Code (Huawei's HarmonyOS coding agent, built on the OpenCode engine) as a first-class runtime provider: backend/model parser, daemon discovery (probe + login-shell list + Windows .cmd native resolver), runtime profile migration (protocol_family whitelist), provider UI, metrics, and four-language docs. MCP injection is deferred (UI gates it off). Migration numbered 175.
2026-07-14 15:21:45 +08:00

26 lines
859 B
SQL

-- Add 'deveco' (DevEco Code, Huawei's coding agent for HarmonyOS, built on the
-- OpenCode engine) to the runtime_profile protocol_family whitelist. Mirrors the
-- drop/re-add NOT VALID pattern from migrations 126/134/136 so historical rows
-- are not revalidated. Kept in lockstep with agent.SupportedTypes and agent.New()
-- (see server/pkg/agent/agent.go).
ALTER TABLE runtime_profile DROP CONSTRAINT IF EXISTS runtime_profile_protocol_family_check;
ALTER TABLE runtime_profile ADD CONSTRAINT runtime_profile_protocol_family_check
CHECK (protocol_family IN (
'claude',
'codebuddy',
'codex',
'copilot',
'opencode',
'openclaw',
'hermes',
'pi',
'cursor',
'kimi',
'kiro',
'antigravity',
'qoder',
'traecli',
'deveco'
)) NOT VALID;