mirror of
https://github.com/wassname/pi-plan.git
synced 2026-09-26 14:10:23 +08:00
Replace historical docs, trial output and dead runtime with current source, agent definition and reusable scripts. Bundle pinned worker, Intercom and scheduler dependencies via Pi manifest. Retain 71 current tests, including real RPC proposal/editor/Ready checks and evidence edge cases; lint/typecheck pass. Historical material remains available at f22d83c.
Co-Authored-By: Pi/OpenAI <288921227+claudypoo@users.noreply.github.com>
17 lines
724 B
TypeScript
17 lines
724 B
TypeScript
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
import { Type } from "typebox";
|
|
|
|
// Pi/gpt-6-astra: compatibility schemas only; this RPC fixture must never launch a worker.
|
|
export default function subagentSchema(pi: ExtensionAPI): void {
|
|
for (const [name, parameters] of [
|
|
["subagent", Type.Object({ agent: Type.String(), title: Type.String() })],
|
|
["subagent_resume", Type.Object({ sessionFile: Type.String() })],
|
|
["subagent_kill", Type.Object({ id: Type.String() })],
|
|
] as const) {
|
|
pi.registerTool({
|
|
name, label: name, description: "Schema-only RPC fixture; do not execute.", parameters,
|
|
async execute() { throw new Error("Worker execution forbidden in RPC review test"); },
|
|
});
|
|
}
|
|
}
|