21 lines
583 B
TypeScript
21 lines
583 B
TypeScript
import { Rpc } from "@opencode/plugin/rpc";
|
|
import { z } from "zod";
|
|
|
|
// A native host boundary: Multi-work must load after Agents and use its final build permissions.
|
|
export const AgentsRpc = Rpc.define({
|
|
id: "stanp-opencode.agents",
|
|
methods: {
|
|
permissions: {
|
|
input: z.object({}),
|
|
output: z.array(
|
|
z.object({
|
|
action: z.string(),
|
|
resource: z.string(),
|
|
effect: z.enum(["allow", "ask", "deny"]),
|
|
}),
|
|
),
|
|
},
|
|
},
|
|
events: {},
|
|
});
|