You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c31d684
Browse filesBrowse the repository at this point in the historyBrowse files
chore: revert dinocode-specific additions to t3code internals
Reverts the code portions of b765b58 (Desktop Notification mirror for
critical toasts). That commit was the wrong direction for this fork:
it added a dinocode-specific field (`criticalToastDesktopNotifications`)
to t3code's ClientSettings schema, modified t3code's toast helper, and
added a row to t3code's settings panel. None of that is a soil/kanban
feature, so it should not live in t3code internals.
Also adds `docs/dinocode-packages.md` as the authoritative package-
architecture doc for this fork:
- Cardinal rule: Dinocode additions live in standalone packages
(`packages/soil`, `packages/dinocode-*`); `apps/*` only wire them at
minimal integration points.
- Package map: soil (shipping), dinocode-contracts (planned),
dinocode-server (planned), dinocode-board (planned), dinocode-cli
(planned), dinocode-agent-tools (planned).
- Integration-point rules: single call site, `dinocode-integration:`
comment annotation, no new types in `@t3tools/contracts`, no new
SQLite migrations in t3code's chain (reserve a dinocode id range or
ship a separate DB file), no Dinocode fields in t3code Client/Server
Settings.
- Refactor plan: three new beans file the extraction of existing
coupled code (`b73bfd2c` server orchestration, `69a3ae23` kanban UI)
into packages.
- Two guard beans (integration-point comments + CI diff guard).
DINOCODE.md core principles adds principle pingdotgg#5 ("Standalone packages on
top of t3code") pointing at this doc.
Re-opens dinocode-a768 with a direction note. Adds dinocode-fm1h
(contracts extract), dinocode-k7pm (server extract), dinocode-up4r
(board extract), dinocode-mzjt (integration comments),
dinocode-yr6l (CI diff guard).
Made-with: Cursor
Copy file name to clipboardExpand all lines: .beans/dinocode-a768--toast-desktop-notification-api-mirror-for-critical.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
---
2
2
# dinocode-a768
3
3
title: "Toast: desktop Notification API mirror for critical toasts"
4
-
status: completed
4
+
status: todo
5
5
type: feature
6
6
priority: low
7
7
created_at: 2026-04-23T03:08:06Z
8
-
updated_at: 2026-04-23T03:17:19Z
8
+
updated_at: 2026-04-23T03:37:44Z
9
9
---
10
10
11
11
Follow-up to dinocode-5kre audit: when the app is not focused, mirror critical (error/warning) toasts to the system Notification API. Opt-in setting. Should wrap toastManager in apps/web/src/components/ui/toast.tsx and call new Notification(...) when document.hasFocus() is false and the toast type is error/warning.
@@ -30,3 +30,15 @@ Follow-up to dinocode-5kre audit: when the app is not focused, mirror critical (
30
30
-`bun lint`: 0 errors (15 pre-existing warnings)
31
31
-`bun typecheck`: ok (all 11 packages)
32
32
-`bun run test`: 883 passed / 4 skipped across 97 test files
33
+
34
+
## 2026-04-23 — reverted, re-scoped
35
+
36
+
The initial implementation landed as commit `b765b58e`, which modified t3code's `ClientSettings` schema (`packages/contracts/src/settings.ts`), t3code's toast helper (`apps/web/src/components/ui/toastHelpers.ts`), and t3code's settings panel (`apps/web/src/components/settings/SettingsPanels.tsx`). That direction was wrong: this is a generic UX feature unrelated to soil/kanban, and it adds dinocode-specific fields to t3code's contract layer.
37
+
38
+
Reverted in commit following (see below). Re-implementation must come from a Dinocode-owned package without mutating t3code's ClientSettings. Options on the table:
39
+
40
+
1.**Upstream it to t3code** — this is a sensible t3code feature; contribute it back instead of forking.
41
+
2.**Dinocode plugin package (`packages/dinocode-toast-extensions`)** — a small plugin that wraps t3code's toast manager and adds the notification behavior, with its own client-side setting stored in localStorage (not in t3code's ClientSettings).
42
+
3.**Drop it** — low priority; not required for v0.1.
43
+
44
+
Leaning toward option 1 or 3. Do not re-implement without deciding.
title: Extract task contracts into packages/dinocode-contracts
4
+
status: todo
5
+
type: task
6
+
priority: high
7
+
created_at: 2026-04-23T03:39:22Z
8
+
updated_at: 2026-04-23T03:39:22Z
9
+
---
10
+
11
+
Move Dinocode-specific RPC methods and task schemas out of packages/contracts (t3code's contract layer) and into a new packages/dinocode-contracts package. Target sources: the ~320 lines of task schemas added to packages/contracts/src/orchestration.ts in commit b73bfd2c, plus task-related entries in packages/contracts/src/{rpc,ipc,baseSchemas}.ts. Keep t3code's contracts untouched; consumers import from @dinocode/contracts. See docs/dinocode-packages.md.
title: Extract server task orchestration into packages/dinocode-server
4
+
status: todo
5
+
type: task
6
+
priority: high
7
+
created_at: 2026-04-23T03:39:22Z
8
+
updated_at: 2026-04-23T03:39:22Z
9
+
---
10
+
11
+
Move task-specific orchestration code out of apps/server/src/orchestration/_ and apps/server/src/persistence/_ into a new packages/dinocode-server package that exposes Effect layers apps/server mounts at startup. Target sources: task additions to apps/server/src/orchestration/{commandInvariants,decider,projector,runtimeLayer}.ts and Layers/{OrchestrationEngine,ProjectionPipeline,ProjectionSnapshotQuery}.ts; apps/server/src/persistence/{Services,Layers}/ProjectionTasks.ts; apps/server/src/persistence/Migrations/026_ProjectionTasks.ts; task RPC methods in apps/server/src/ws.ts. Dinocode SQLite tables should live in a separate database file or under a migration id range reserved for dinocode. Keep apps/server's file-set changes down to a single-line layer mount. See docs/dinocode-packages.md.
title: Integration-point annotations across apps/*
4
+
status: todo
5
+
type: task
6
+
priority: normal
7
+
created_at: 2026-04-23T03:39:22Z
8
+
updated_at: 2026-04-23T03:39:22Z
9
+
---
10
+
11
+
For every t3code-internal file that wires a Dinocode package in, add a single 'dinocode-integration: <package> <feature>' comment on the integration line so rg 'dinocode-integration' surfaces the complete coupling surface. Enforce in CI with a small script that fails if a file under apps/_ imports from @dinocode/_ without such a comment within 3 lines. See docs/dinocode-packages.md.
title: Extract Kanban UI into packages/dinocode-board
4
+
status: todo
5
+
type: task
6
+
priority: high
7
+
created_at: 2026-04-23T03:39:22Z
8
+
updated_at: 2026-04-23T03:39:22Z
9
+
---
10
+
11
+
Move the Kanban board UI out of apps/web and into a new packages/dinocode-board package. Target sources: apps/web/src/components/board/\*, apps/web/src/routes/\_chat.board.$environmentId.$projectId.tsx, apps/web/src/rpc/boardState.ts, and the modifications to apps/web/src/components/ChatView.browser.tsx and apps/web/src/components/KeybindingsToast.browser.tsx. apps/web should re-import via a thin route-adapter module; no dinocode logic lives in apps/web/src/components directly. See docs/dinocode-packages.md.
title: "CI guard: flag new @dinocode/* additions to t3code internals"
4
+
status: todo
5
+
type: task
6
+
priority: normal
7
+
created_at: 2026-04-23T03:39:22Z
8
+
updated_at: 2026-04-23T03:39:22Z
9
+
---
10
+
11
+
Add a CI step that parses 'git diff upstream/main..HEAD --stat' and fails if > N lines of change land in apps/_ or packages/contracts/_ for a commit that does not also carry a label or commit-trailer 'Integration: <package>'. Threshold default: 20 lines. Goal: make t3code-internal churn visible at review time. See docs/dinocode-packages.md.
Copy file name to clipboardExpand all lines: DINOCODE.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ The result: a single interface where you can decompose work into tasks, manage t
22
22
2.**Parallel by default**: Tasks are independent. Multiple agents can reference different tasks simultaneously without blocking each other.
23
23
3.**Minimal chrome**: The UI gets out of the way. Keyboard-driven, low latency, no modal fatigue.
24
24
4.**Agent-native**: The system is designed for agents to read and write tasks, not just humans.
25
+
5.**Standalone packages on top of t3code**: This repo is a fork of [`pingdotgg/t3code`](https://github.com/pingdotgg/t3code). Every Dinocode feature lives in a standalone package (`packages/soil`, `packages/dinocode-*`) and plugs into `apps/web`, `apps/server`, and `apps/desktop` at minimal integration points. We do not rewrite t3code internals. See [`docs/dinocode-packages.md`](docs/dinocode-packages.md) for the package map and coupling rules.
0 commit comments