Keep the entry point focused on contribution wiring so client UI and daemon handlers can use their own runtime APIs safely. Surface compilation failures and lifecycle transitions in the retained plugin log tail.
9 lines
242 B
TypeScript
9 lines
242 B
TypeScript
import { defineRpc } from "@paseo/plugin";
|
|
import { z } from "zod";
|
|
|
|
export const incrementRpc = defineRpc({
|
|
name: "increment",
|
|
input: z.object({ value: z.number() }),
|
|
output: z.object({ value: z.number(), handledBy: z.string() }),
|
|
});
|