Import packages/plugin/src/control-result.ts

This commit is contained in:
QQ 2026-11-14 14:55:20 +08:00
parent 6dafbea307
commit 6cf4cc55e4
1 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,4 @@
/** Result envelope for the plugin's local control route. */
export type ControlResult<T> =
| { ok: true; value: T }
| { ok: false; error: { code: string; message: string; details: Record<string, unknown> } }