Repository navigation
v2.0.0
Agent 2.0 — the plugin is rewritten to the identity-only auth model + native MCP. The JWT proves identity only (no tenant, no permissions in the token); the active workspace is asserted per request via an
x-workspace-idheader, resolved by apublic._auth_pre_request()db-pre-request hook into a transaction-local GUC, with role/permissions read fromapi.session_context(). The 1.x machinery is gone (session_tenants,_hook_custom_access_token,_internal_admin_set_session_tenant/sync_session_tenants,api.tenant_select, allapp_metadata.tenant_id/permissionsJWT claims). Skills auth / frontend / rpc / database were updated to the new model; edge-functions gained an MCP reference; cli gained the 1.x → 2.0 upgrade runbook. New scaffold objects:public._auth_pre_request,api.session_context,api.tenant_update,api.tenant_delete, the imperativeconfig/folder (config/db_pre_request.sql), and themcpedge function +_shared/mcp.ts. Version bumped to 2.0.0 (plugin + CLI in lockstep).
Added
- Reference: upgrading a project to 2.0 (identity-only auth + native MCP).
skills/cli/references/upgrade-2.0-identity-auth.mdis the breaking 1.x → 2.0 migration runbook — what--force-updatedoes and doesn't cover at the 2.0 boundary, the removed/added auth objects, deleting orphaned files, generating thenew_auth_modeltransformation viadb migrate, the frontend semantic merge, and the contract bump. Validated end-to-end on a real 1.2 project. Linked fromreferences/upgrading.mdand the cli SKILL reference index.