feat(plugin-sdk): add degraded and withdrawn cap states

This commit is contained in:
Makito
2026-03-01 01:19:46 +07:00
parent ab22af5841
commit 256f34f7d5
3 changed files with 86 additions and 1 deletions
@@ -2,7 +2,7 @@ import { defineInvokeEventa } from '@moeru/eventa'
export interface CapabilityDescriptor {
key: string
state: 'announced' | 'ready'
state: 'announced' | 'ready' | 'degraded' | 'withdrawn'
metadata?: Record<string, unknown>
updatedAt: number
}