feat: add first-class pi target with mcporter/subagent compatibility

This commit is contained in:
Geet Khosla
2026-02-12 23:07:34 +01:00
parent 87e98b24d3
commit e84fef7a56
14 changed files with 1358 additions and 18 deletions

40
src/types/pi.ts Normal file
View File

@@ -0,0 +1,40 @@
export type PiPrompt = {
name: string
content: string
}
export type PiSkillDir = {
name: string
sourceDir: string
}
export type PiGeneratedSkill = {
name: string
content: string
}
export type PiExtensionFile = {
name: string
content: string
}
export type PiMcporterServer = {
description?: string
baseUrl?: string
command?: string
args?: string[]
env?: Record<string, string>
headers?: Record<string, string>
}
export type PiMcporterConfig = {
mcpServers: Record<string, PiMcporterServer>
}
export type PiBundle = {
prompts: PiPrompt[]
skillDirs: PiSkillDir[]
generatedSkills: PiGeneratedSkill[]
extensions: PiExtensionFile[]
mcporterConfig?: PiMcporterConfig
}