Files
t3code/packages/client-runtime/package.json
T
Theo BrowneandClaude Fable 5 5dfc78e85e Add sidebar v2 beta: flat adaptive-density thread list with settled lifecycle
A new thread sidebar behind a Settings → Beta toggle (sidebarV2Enabled,
default off). One flat recency-sorted list across projects: active threads
render as two-line cards (favicon, title, time, status word · branch ·
provider glyph + model · machine), settled threads collapse to slim
one-liners. Approval-blocked threads pin to the top with wait time; failed
sessions (session.lastError) finally get a visible state.

Settled is an event-sourced lifecycle state mirroring the archived pattern:
- settledOverride ("settled" | "active" | null) + settledAt on the thread,
  thread.settle/thread.unsettle commands, thread.settled/thread.unsettled
  events, projection columns via migration 033.
- effectiveSettled() computes the visible state: manual override beats
  auto rules (PR merged/closed, N days of inactivity — client setting,
  default 3, nullable). Idempotency is by event re-emission since the
  engine rejects zero-event commands.
- Activity auto-unsettles server-side: turn start, live session start,
  approval/user-input requests. Session stop/error status writes do not.

Manually settling a thread whose worktree is orphaned offers a one-click
worktree removal (re-validated at click time, never forced).

The v2 component is a sibling swapped at the single AppSidebarLayout mount
point; shared chrome moved to sidebar/SidebarChrome.tsx. The data model is
flag-independent and ships dark for v1 users, so toggling is a pure view
swap.

Plan: .plans/21-sidebar-v2-beta.md

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-15 02:30:32 -07:00

153 lines
4.2 KiB
JSON

{
"name": "@t3tools/client-runtime",
"private": true,
"type": "module",
"exports": {
"./connection": {
"types": "./src/connection/index.ts",
"default": "./src/connection/index.ts"
},
"./authorization": {
"types": "./src/authorization/index.ts",
"default": "./src/authorization/index.ts"
},
"./environment": {
"types": "./src/environment/index.ts",
"default": "./src/environment/index.ts"
},
"./errors": {
"types": "./src/errors/index.ts",
"default": "./src/errors/index.ts"
},
"./rpc": {
"types": "./src/rpc/index.ts",
"default": "./src/rpc/index.ts"
},
"./operations": {
"types": "./src/operations/index.ts",
"default": "./src/operations/index.ts"
},
"./operations/projects": {
"types": "./src/operations/projects.ts",
"default": "./src/operations/projects.ts"
},
"./platform": {
"types": "./src/platform/index.ts",
"default": "./src/platform/index.ts"
},
"./relay": {
"types": "./src/relay/index.ts",
"default": "./src/relay/index.ts"
},
"./state/auth": {
"types": "./src/state/auth.ts",
"default": "./src/state/auth.ts"
},
"./state/assets": {
"types": "./src/state/assets.ts",
"default": "./src/state/assets.ts"
},
"./state/connections": {
"types": "./src/state/connections.ts",
"default": "./src/state/connections.ts"
},
"./state/entities": {
"types": "./src/state/entities.ts",
"default": "./src/state/entities.ts"
},
"./state/filesystem": {
"types": "./src/state/filesystem.ts",
"default": "./src/state/filesystem.ts"
},
"./state/git": {
"types": "./src/state/git.ts",
"default": "./src/state/git.ts"
},
"./state/models": {
"types": "./src/state/models.ts",
"default": "./src/state/models.ts"
},
"./state/orchestration": {
"types": "./src/state/orchestration.ts",
"default": "./src/state/orchestration.ts"
},
"./state/presentation": {
"types": "./src/state/presentation.ts",
"default": "./src/state/presentation.ts"
},
"./state/preview": {
"types": "./src/state/preview.ts",
"default": "./src/state/preview.ts"
},
"./state/projects": {
"types": "./src/state/projects.ts",
"default": "./src/state/projects.ts"
},
"./state/project-grouping": {
"types": "./src/state/projectGrouping.ts",
"default": "./src/state/projectGrouping.ts"
},
"./state/relay": {
"types": "./src/state/relayDiscovery.ts",
"default": "./src/state/relayDiscovery.ts"
},
"./state/review": {
"types": "./src/state/review.ts",
"default": "./src/state/review.ts"
},
"./state/runtime": {
"types": "./src/state/runtime.ts",
"default": "./src/state/runtime.ts"
},
"./state/server": {
"types": "./src/state/server.ts",
"default": "./src/state/server.ts"
},
"./state/session": {
"types": "./src/state/session.ts",
"default": "./src/state/session.ts"
},
"./state/shell": {
"types": "./src/state/shell.ts",
"default": "./src/state/shell.ts"
},
"./state/source-control": {
"types": "./src/state/sourceControl.ts",
"default": "./src/state/sourceControl.ts"
},
"./state/terminal": {
"types": "./src/state/terminal.ts",
"default": "./src/state/terminal.ts"
},
"./state/threads": {
"types": "./src/state/threads.ts",
"default": "./src/state/threads.ts"
},
"./state/thread-sort": {
"types": "./src/state/threadSort.ts",
"default": "./src/state/threadSort.ts"
},
"./state/thread-settled": {
"types": "./src/state/threadSettled.ts",
"default": "./src/state/threadSettled.ts"
},
"./state/vcs": {
"types": "./src/state/vcs.ts",
"default": "./src/state/vcs.ts"
}
},
"scripts": {
"typecheck": "tsgo --noEmit",
"test": "vp test run"
},
"dependencies": {
"@t3tools/contracts": "workspace:*",
"@t3tools/shared": "workspace:*",
"effect": "catalog:"
},
"devDependencies": {
"@effect/vitest": "catalog:",
"vite-plus": "catalog:"
}
}