feat(console): Cloud Console Skills management view
Tests / Test passed: 855

Adds SkillsView.vue (cloud-skill CRUD, per-host entitlement grant/revoke,
read-only host local-skill inventory), skill API client methods + types,
and wires it into App.vue behind the skills:admin scope. Console
typecheck/build/tests green (20 passed).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-07-15 08:06:49 +08:00
co-authored by Claude Opus 4.6
parent 8300c3b6b7
commit fd0ea3a066
5 changed files with 431 additions and 4 deletions
+31
View File
@@ -196,3 +196,34 @@ export interface PlannerDecisionItem {
export interface PlannerDecisionListResponse {
items: PlannerDecisionItem[];
}
export type CloudSkillKind = "knowledge" | "flow_template";
export interface CloudSkill {
id: string;
name: string;
kind: CloudSkillKind;
description: string;
tags: string[];
revision: number;
created_at: string;
updated_at: string;
content: string;
steps: Record<string, unknown>[];
parameters: Record<string, Record<string, unknown>>;
}
export interface CloudSkillListResponse {
items: CloudSkill[];
}
export interface CloudSkillEntitlementsResponse {
skill_id: string;
host_ids: string[];
}
export interface HostSkillInventoryResponse {
host_id: string;
payload: Record<string, unknown>[];
reported_at: string | null;
}