export type { WorkspaceWriteAccess } from '@burdenoff/fe-libs/shared/assistant/useWorkspaceWriteAccess'; /** * Resources an api-calls turn is most likely to write. Not exhaustive — the * assistant can reach far more — but a representative probe. The shared hook * asks `checkPermissions` for `action: "create"` on each. * * ★★ These are the names the BACKEND enforces, which are unprefixed: * vibe `createVibe` @rbac(action: "create", resource: "vibe") * session `createSession` @rbac(action: "create", resource: "session") * agent `createVibecontrolsAgent` @rbac(action: "create", resource: "agent") * (wspace-vibecontrols-svc, and the composed `graphql/wspace.graphql` here) — * and the RBAC service seeds exactly these resource types. * * They were `vibecontrols_vibe` / `_session` / `_agent`, copied from * HealthyBowl's `healthybowl_crop` convention. No such resource type exists in * VibeControls' schema or RBAC seed, so no seeded role grants them, RBAC falls * through to default-DENY, and the composer's warning said nothing about the * permissions a Take-action turn actually needs. * * Still advisory, never a gate: the shared panel only shows a warning. * `useWorkspaceWriteAccess.test.ts` checks these against the schema. */ export declare const PROBE_RESOURCES: readonly ["vibe", "session", "agent"]; export declare function useWorkspaceWriteAccess(actorId: string | null, workspaceId: string | null): import('@burdenoff/fe-libs/shared/assistant').WorkspaceWriteAccess;