feat(projects): add interactive AI app scaffold skill
This commit is contained in:
@@ -368,7 +368,14 @@ export function PluginDetails(props: PluginDetailsProps) {
|
||||
<div className="mt-3 rounded-xl bg-surface-subtle p-4 text-sm">
|
||||
<p>{props.item.local.kind === 'skill-only' ? 'Skill' : props.item.local.kind === 'pi-extension' ? 'Pi extension' : 'Skill + Pi extension'}</p>
|
||||
<p className="mt-1 text-muted-foreground">{props.item.local.skillEntries.length} 个 Skill · {props.item.local.extensionEntries.length} 个 extension</p>
|
||||
{props.item.local.confirmedExecutableCode ? <p className="mt-3 flex gap-2 text-warning"><AlertTriangle className="h-4 w-4 shrink-0" />包含可执行 Pi extension,运行时拥有完整桌面权限。</p> : null}
|
||||
{props.item.local.confirmedExecutableCode ? (
|
||||
<p className="mt-3 flex gap-2 text-warning">
|
||||
<AlertTriangle className="h-4 w-4 shrink-0" />
|
||||
{props.item.local.kind === 'skill-only'
|
||||
? '包含可执行 Skill 脚本;调用时可能使用当前桌面用户可用的文件、网络和进程权限。'
|
||||
: '包含可执行代码,运行时拥有完整桌面权限。'}
|
||||
</p>
|
||||
) : null}
|
||||
</div>
|
||||
) : <p className="mt-2 text-sm text-muted-foreground">当前没有可显示的能力投影。</p>}
|
||||
{detail?.permissions.length ? (
|
||||
|
||||
@@ -460,7 +460,7 @@ export function ProjectConfiguration() {
|
||||
<div data-testid="project-configuration-actions" className="glass-surface config-motion-actions sticky bottom-3 z-10 mt-auto flex shrink-0 flex-col gap-2 rounded-2xl border border-border/70 bg-background/85 p-2 shadow-float sm:flex-row sm:items-start sm:justify-between">
|
||||
<Button type="button" variant="outline" size="sm" onClick={() => setDeleteDialogOpen(true)} className="h-9 w-full border-brand/25 bg-background px-3 font-semibold text-foreground shadow-none hover:border-brand/40 hover:bg-brand-soft sm:w-auto"><Trash2 className="mr-2 h-4 w-4" />删除项目</Button>
|
||||
<div data-testid="project-configuration-primary-actions" className="flex w-full flex-col gap-2 sm:ml-auto sm:w-auto sm:flex-row sm:items-start sm:justify-end">
|
||||
{draft.projectType === 'mini_game' || draft.projectType === 'mini_program' ? (
|
||||
{draft.projectType === 'interactive_ai_app' ? (
|
||||
<ProjectPublishAction
|
||||
key={activeProject.id}
|
||||
project={activeProject}
|
||||
|
||||
Reference in New Issue
Block a user