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(project): agentMessaging joins the capability registry — the switch, the notice and the Settings row all appear generated
Claude Codefc1e1003444d
diff --git a/src/core/workspace-files.ts b/src/core/workspace-files.tsindex a4a86fc74..394eba1e4 100644--- a/src/core/workspace-files.ts+++ b/src/core/workspace-files.ts@@ -73,6 +73,9 @@ export interface ProjectFileV1 {* (`readProjectCapabilities`, literal `true` only) and why the switch alone grants nothing.*/agentBrowserControl?: boolean+ /** Per-project capability switch (@shared/project-capabilities): agents may message other agent+ * nodes in this project. Git-shared like `agentBrowserControl`, read with the same strictness. */+ agentMessaging?: booleandinoHighScore?: numberkanban?: ProjectKanban}diff --git a/src/renderer/components/capability-notice.test.tsx b/src/renderer/components/capability-notice.test.tsxindex a009554b0..9a593487a 100644--- a/src/renderer/components/capability-notice.test.tsx+++ b/src/renderer/components/capability-notice.test.tsx@@ -211,6 +211,25 @@ describe('the one-time clone notice', () => {expect(grantedNow()).toBe(true)})+ it('fires for agentMessaging too — the machinery is per-capability, nothing above is browser-specific', () => {+ // Messaging PR 6 adds only the registry entry; a cloned repo arriving with+ // `agentMessaging: true` must get exactly this dialog, with messaging's own copy.+ useProjects.setState({ projects: [project({ agentMessaging: true })], activeProjectId: 'p1' })+ mount()+ expect(dialog()).toBeTruthy()+ const text = dialog()!.textContent ?? ''+ expect(text).toContain(PROJECT_CAPABILITY_COPY.agentMessaging.label)+ expect(text).toContain(PROJECT_CAPABILITY_COPY.agentMessaging.description)+ // Unanswered = refused: the exact predicate messagingEnabled consults.+ expect(+ projectCapabilityGrantedFor(useProjects.getState().getProject('p1'), 'agentMessaging')+ ).toBe(false)+ act(() => button('Turn it off').click())+ const p = useProjects.getState().getProject('p1')!+ expect(p.agentMessaging).toBeUndefined()+ expect(p.capabilityAck).toEqual({ agentMessaging: 'declined' })+ })+it('stays silent when the switch is off', () => {useProjects.setState({ projects: [project()], activeProjectId: 'p1' })mount()diff --git a/src/shared/project-capabilities.test.ts b/src/shared/project-capabilities.test.tsindex 3e6fc9614..94fbb63bb 100644--- a/src/shared/project-capabilities.test.ts+++ b/src/shared/project-capabilities.test.ts@@ -51,6 +51,18 @@ describe('projectCapabilityFields — the spread projectToFile uses', () => {})})+describe('agentMessaging is a registry capability (messaging PR 6) — a line in the registry, zero new mechanism', () => {+ it('is in PROJECT_CAPABILITIES, so every generated surface (round-trip, notice, Settings row) covers it', () => {+ expect(PROJECT_CAPABILITIES).toContain('agentMessaging')+ })+ it('reads with the same strictness as every capability — project.json stays hostile input', () => {+ expect(projectCapabilityFlagInFile({ agentMessaging: true }, 'agentMessaging')).toBe(true)+ expect(projectCapabilityFlagInFile({ agentMessaging: 'true' } as never, 'agentMessaging')).toBe(false)+ expect(readProjectCapabilities({ agentMessaging: 1 })).toEqual({})+ expect(projectCapabilityFields({ agentMessaging: true })).toEqual({ agentMessaging: true })+ })+})+describe('every capability has copy, and the copy says what travels', () => {it.each(PROJECT_CAPABILITIES)('%s has label, description and cloneWarning', (cap) => {const c = PROJECT_CAPABILITY_COPY[cap]diff --git a/src/shared/project-capabilities.ts b/src/shared/project-capabilities.tsindex e581bb7da..8126db3be 100644--- a/src/shared/project-capabilities.ts+++ b/src/shared/project-capabilities.ts@@ -22,10 +22,12 @@* If (2) is ever dropped as friction, this field must move to a machine-local store. That is the* trigger, written down where the decision is, not only in the design doc.*/-export type ProjectCapability = 'agentBrowserControl'-// Agent-to-agent messaging adds 'agentMessaging' here (its plan's PR 6 Task 6.1).+export type ProjectCapability = 'agentBrowserControl' | 'agentMessaging'-export const PROJECT_CAPABILITIES: readonly ProjectCapability[] = ['agentBrowserControl'] as const+export const PROJECT_CAPABILITIES: readonly ProjectCapability[] = [+ 'agentBrowserControl',+ 'agentMessaging'+] as constexport interface ProjectCapabilityCopy {label: string@@ -47,6 +49,17 @@ export const PROJECT_CAPABILITY_COPY: Record<ProjectCapability, ProjectCapabilitcloneWarning:'This setting is saved in the project file (.nodeterm/project.json), so if you commit it, ' +'everyone who clones the repo gets it too.'+ },+ agentMessaging: {+ label: 'Let agents message other agents in this project',+ description:+ 'Agents in this project can send short messages to other agent nodes in the SAME project — ' ++ 'the text is delivered into the target’s composer and becomes part of its ' ++ 'conversation, so a message can try to steer the agent that reads it. Deliveries go only ' ++ 'to idle, verified agent panes, are rate-limited per sender, and every one leaves a trace.',+ cloneWarning:+ 'This setting is saved in the project file (.nodeterm/project.json), so if you commit it, ' ++ 'everyone who clones the repo gets it too.'}}diff --git a/src/shared/types.ts b/src/shared/types.tsindex 502e367f7..585c3deab 100644--- a/src/shared/types.ts+++ b/src/shared/types.ts@@ -478,6 +478,10 @@ export interface Project {* machine's recorded 'kept' answer below.*/agentBrowserControl?: boolean+ /** Per-project capability switch: agents may message other agent nodes in this project. Same+ * rules as `agentBrowserControl` above — git-shared hostile input, strict `=== true` read,+ * never a grant without this machine's recorded 'kept' (`projectCapabilityGrantedFor`). */+ agentMessaging?: boolean/*** MACHINE-LOCAL record of what this machine's user ANSWERED for each capability switch —* 'kept' or 'declined', not a bare bit, because a declined switch whose hostile `true`