diff --git a/src/cli/crud.ts b/src/cli/crud.ts index 9c7ed99..f2bb82b 100644 --- a/src/cli/crud.ts +++ b/src/cli/crud.ts @@ -52,6 +52,12 @@ export interface ResourceDef { description: string; /** Primary key column name. */ idColumn: string; + /** + * Column that carries the agent group ID for group-scope enforcement. + * Required on every resource in the CLI whitelist (groups, sessions, + * destinations, members). When absent, post-handler filtering fails closed. + */ + scopeField?: string; columns: ColumnDef[]; /** Which standard CRUD operations are enabled. */ operations: {