pi-mono/apps/p2/plugins/workspace
Mario Zechner 43bb1900ce feat(p2): port off variants to grantable members
Every remote contract declares one shape: members only some callers get are
grantable(...), and its provider grants them per principal through admit
(grantBy in src/runtime/chord.ts; notGranted/ungranted for a factory branch's
members its principal never gets). Call sites read grants instead of variant
names: live/liveWith/kept/keptWith/withGranted/expectGranted (src/runtime/refs.ts)
replace liveIn/keptIn/withHeld(ref, variant)/expectVariant; useObject has no
variant option.

Old contract versions are refused (Chord slice 15): every remote contract is a
new history base with its version bumped; the variant-era histories and accepts
of Sessions, SessionTree, Envs, Projects, Views, Mcp, Discord, Search,
SessionStatus and Subagents collapse into one declaration each, so pages, TUIs
and workers loaded before the deploy get contract_mismatch and reload once.
Catalog (local) keeps its history. Tests: holdWith/boundWith, stubs take the
grants, contract-versions tests Catalog and the refusal.
2026-11-25 19:42:02 +00:00
..
commands.tsx feat(p2): add workspace, terminal, folder and working directory commands to the command menu 2026-11-11 11:21:23 +01:00
contract.ts feat(p2): port off variants to grantable members 2026-11-25 19:42:02 +00:00
environment.ts fix(p2): workspace allows p2's data directory; closed views' objects activate cleanly; stale tests fixed 2026-11-12 00:12:36 +00:00
file.tsx fix(p2): device- and platform-aware gesture and key hints (#12235) 2026-11-16 22:10:59 +01:00
fuzzy.ts
package.json
protocol.ts
server.ts fix(p2): tagged unions instead of "in" checks 2026-11-20 19:09:58 +00:00
tabs.ts feat(p2): add workspace, terminal, folder and working directory commands to the command menu 2026-11-11 11:21:23 +01:00
tui.ts feat(p2): port off variants to grantable members 2026-11-25 19:42:02 +00:00
web.tsx feat(p2): port off variants to grantable members 2026-11-25 19:42:02 +00:00
worker.ts feat(p2): port off variants to grantable members 2026-11-25 19:42:02 +00:00
Workspace.tsx feat(p2): port off variants to grantable members 2026-11-25 19:42:02 +00:00