feat: prepare Zhinian desktop client for pilot release

This commit is contained in:
inman
2026-04-29 10:23:20 +08:00
parent f9361e686a
commit 47b83b79fc
149 changed files with 15341 additions and 3590 deletions

View File

@@ -0,0 +1,36 @@
import type { Artifact, Hotel, User } from '@yinian/kernel-core';
export interface SkillManifest {
spec_version: '0.1';
id: string;
name: string;
version: string;
author: string;
category: string;
description: string;
required_capabilities: string[];
permissions: SkillPermissions;
}
export interface SkillPermissions {
network?: string[];
filesystem?: 'none' | 'read' | 'read_write';
shell?: boolean;
}
export interface SkillRunContext {
hotel: Hotel;
user: User;
emit: {
progress(event: { phase: string; ratio?: number; message?: string }): void;
log(level: 'info' | 'warn' | 'error', message: string): void;
artifact(artifact: Artifact): void;
};
abortSignal: AbortSignal;
}
export interface SkillRunResult {
output: Record<string, unknown>;
notifications?: Array<{ template: string; vars: Record<string, unknown> }>;
}