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.
10 lines
255 B
TypeScript
10 lines
255 B
TypeScript
import type { output as ZodOutput } from "zod";
|
|
import { incrementRpc } from "./increment.shared";
|
|
|
|
export function increment(input: ZodOutput<typeof incrementRpc.input>) {
|
|
return {
|
|
value: input.value + 1,
|
|
handledBy: "plugin subprocess",
|
|
};
|
|
}
|