feat: tab enforcement + POST /pair endpoint + activity attribution

Server-side tab ownership check blocks scoped agents from writing to
unowned tabs. Special-case newtab records ownership for scoped tokens.
POST /pair endpoint creates setup keys for the pairing ceremony.
Activity events now include clientId for attribution.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-04-04 23:18:27 -07:00
parent 8fa3d7b06d
commit eb6f57239b
2 changed files with 63 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ export interface ActivityEntry {
result?: string;
tabs?: number;
mode?: string;
clientId?: string;
}
// ─── Buffer & Subscribers ───────────────────────────────────────