Skip to content

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.

Merge branch 'main' into feat/terminal-search

enesb7882f49be7f
diff --cc src/shared/types.ts
index 9d86df973,7b2fb25fd..18fcfb22c
--- a/src/shared/types.ts
+++ b/src/shared/types.ts
@@@ -460,17 -472,27 +472,38 @@@ export interface ContextApi
onUpdate(listener: (usage: ContextWindowUsage) => void): () => void
}
+/** One searchable line extracted from a Claude session transcript. */
+export interface TranscriptLine {
+ role: 'user' | 'assistant' | 'tool'
+ text: string
+}
+
+export interface ClaudeApi {
+ /** Reads a Claude session's full transcript as flat searchable lines ([] if unavailable). */
+ readTranscript(sessionId: string): Promise<TranscriptLine[]>
+}
+
+ export interface LicenseStatus {
+ /** 'pro' when entitled, else null. */
+ tier: string | null
+ active: boolean
+ /** Unix seconds when the entitlement expires, or null. */
+ expiresAt: number | null
+ /** Last activation/refresh error reason code, or null. */
+ error: string | null
+ }
+
+ export interface LicenseApi {
+ /** Activate a license key on this device. Returns the resulting status. */
+ activate(key: string): Promise<LicenseStatus>
+ /** Release this device's seat and clear the local license. */
+ deactivate(): Promise<LicenseStatus>
+ /** Current cached status (verifies the stored token offline). */
+ getStatus(): Promise<LicenseStatus>
+ /** Fires when the license status changes. Returns unsubscribe. */
+ onChange(listener: (s: LicenseStatus) => void): () => void
+ }
+
export interface NodeTerminalApi {
pty: PtyApi
workspace: WorkspaceApi