Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
feat(kanban): kanban board types ride .nodeterm/project.json
enesc066215d593a
diff --git a/src/core/workspace-files.test.ts b/src/core/workspace-files.test.tsindex 4767d9253..8deb236dd 100644--- a/src/core/workspace-files.test.ts+++ b/src/core/workspace-files.test.ts@@ -243,3 +243,31 @@ describe('exec-enabling node fields never travel in the shared project file', ()expect(index.entries[0].localExec).toBeUndefined()})})++describe('kanban board persistence', () => {+ const board = {+ columns: [+ { id: 'kcol-a', title: 'To Do', color: '#0a84ff' },+ { id: 'kcol-b', title: 'Done', color: '#32d74b' }+ ],+ cards: [{ id: 'kcard-1', columnId: 'kcol-a', title: 'ship it', description: '**md**', createdAt: 1752800000000 }]+ }+ it('rides the project file round-trip', () => {+ const f = projectToFile(project({ kanban: board }), 1, '2026-07-18T00:00:00.000Z')+ expect(f.kanban).toEqual(board)+ expect(fileToProject(f, {}).kanban).toEqual(board)+ })+ it('absent stays absent — no key is written (lazy default rule)', () => {+ const f = projectToFile(project(), 1, '2026-07-18T00:00:00.000Z')+ expect('kanban' in f).toBe(false)+ expect('kanban' in fileToProject(f, {})).toBe(false)+ })+ it('board edits break content equality (rev bumps) and survive splitWorkspace (both shells + ssh cache)', () => {+ const a = projectToFile(project({ kanban: board }), 1, '2026-01-01T00:00:00.000Z')+ const b = projectToFile(project(), 1, '2026-01-01T00:00:00.000Z')+ expect(sameProjectContent(a, b)).toBe(false)+ const ws: Workspace = { version: 2, activeProjectId: 'p1', projects: [project({ cwd: '/a/b', kanban: board })] }+ const { files } = splitWorkspace(ws, () => 1, '2026-01-01T00:00:00.000Z')+ expect(files.get('/a/b')?.kanban).toEqual(board)+ })+})diff --git a/src/core/workspace-files.ts b/src/core/workspace-files.tsindex 68af08aae..fcad83dd0 100644--- a/src/core/workspace-files.ts+++ b/src/core/workspace-files.ts@@ -6,7 +6,7 @@ import {stripSharedNodeExec,type LocalNodeExecMap} from '../shared/node-exec'-import type { BridgeLink, CanvasNodeState, Project, Viewport, Workspace } from '../shared/types'+import type { BridgeLink, CanvasNodeState, Project, ProjectKanban, Viewport, Workspace } from '../shared/types'export const PROJECT_DIR = '.nodeterm'export const PROJECT_FILE = 'project.json'@@ -30,6 +30,7 @@ export interface ProjectFileV1 {defaultAccountId?: stringdefaultPermissionMode?: AgentPermissionModedinoHighScore?: number+ kanban?: ProjectKanban}/** One workspace.json v3 entry. Exactly one of: `cwd` (local ref), `ssh` (remote ref),@@ -111,7 +112,8 @@ export function projectToFile(p: Project, rev: number, savedAt: string): Project...(p.ropes ? { ropes: p.ropes } : {}),...(p.defaultAccountId ? { defaultAccountId: p.defaultAccountId } : {}),...(p.defaultPermissionMode ? { defaultPermissionMode: p.defaultPermissionMode } : {}),- ...(p.dinoHighScore ? { dinoHighScore: p.dinoHighScore } : {})+ ...(p.dinoHighScore ? { dinoHighScore: p.dinoHighScore } : {}),+ ...(p.kanban ? { kanban: p.kanban } : {})}}@@ -140,6 +142,7 @@ export function fileToProject(...(f.defaultAccountId ? { defaultAccountId: f.defaultAccountId } : {}),...(f.defaultPermissionMode ? { defaultPermissionMode: f.defaultPermissionMode } : {}),...(f.dinoHighScore ? { dinoHighScore: f.dinoHighScore } : {}),+ ...(f.kanban ? { kanban: f.kanban } : {}),...(base.cwd ? { cwd: base.cwd } : {}),...(base.ssh ? { ssh: base.ssh } : {}),...(base.closed ? { closed: true } : {})diff --git a/src/shared/types.ts b/src/shared/types.tsindex 87bd14359..bab9cc4b3 100644--- a/src/shared/types.ts+++ b/src/shared/types.ts@@ -185,6 +185,32 @@ export interface BridgeLink {target: string}+/** One kanban board column. Column order = array order in ProjectKanban.columns. */+export interface KanbanColumn {+ id: string+ title: string+ color: string+}++/** One kanban card. Lives in exactly one column; order within a column is the relative+ * order of that column's cards in ProjectKanban.cards (no explicit order field). */+export interface KanbanCard {+ id: string+ columnId: string+ title: string+ /** Optional markdown body (rendered sanitized). */+ description?: string+ createdAt: number+}++/** Per-project kanban board (docs/superpowers/specs/2026-07-18-kanban-view-design.md).+ * Absent = never edited: the renderer shows a default 3-column board and writes+ * nothing until the first change. */+export interface ProjectKanban {+ columns: KanbanColumn[]+ cards: KanbanCard[]+}+/** A project is one canvas/page: its own nodes, viewport, and default working dir. */export interface Project {id: string@@ -203,6 +229,8 @@ export interface Project {defaultPermissionMode?: AgentPermissionMode/** Best dino-game score in this project — new dino nodes seed from it, so the record survives closing the node. */dinoHighScore?: number+ /** Kanban task board — shared via .nodeterm/project.json like nodes. */+ kanban?: ProjectKanban/** Bridge links between Claude nodes (optional; absent in pre-bridge files). */bridges?: BridgeLink[]/**