@hasna/projects
Version:
High-level project management CLI, MCP server, SDK, and AI SDK agent loop for coding agents
48 lines • 1.87 kB
TypeScript
import type { Database } from "bun:sqlite";
import type { TmuxProfile, Workspace } from "../types/workspace.js";
import { type TmuxSession, type TmuxWindowHealth } from "./tmux.js";
import { type WorkspaceTmuxWindowSpec } from "./workspace-runtime.js";
import { type CodingSessionRenameReport, type ProjectStartAgent } from "./project-start.js";
import { PROJECT_RENDER_SCHEMA_VERSION } from "./project-render.js";
export interface ProjectTmuxStatusOptions {
profile?: string;
session?: string;
agentTool?: ProjectStartAgent;
command?: string;
windowName?: string;
requestedWindows?: WorkspaceTmuxWindowSpec[];
extraWindows?: WorkspaceTmuxWindowSpec[];
db?: Database;
}
export interface ProjectTmuxStatusResult {
schema_version: typeof PROJECT_RENDER_SCHEMA_VERSION;
kind: "projects.tmux_status";
project: Workspace;
expected: {
session_name: string;
profile?: Pick<TmuxProfile, "id" | "slug" | "name">;
windows: WorkspaceTmuxWindowSpec[];
};
rename_report: CodingSessionRenameReport[];
launch_defaults: {
agent_tool: string | null;
tool_command: string | null;
tmux_profile: string | null;
session_policy: string | null;
windows: WorkspaceTmuxWindowSpec[];
used_agent_tool: boolean;
used_tool_command: boolean;
used_tmux_profile: boolean;
used_session_policy: boolean;
used_windows: boolean;
};
tmux_available: boolean;
exists: boolean;
session: TmuxSession | null;
related_sessions: TmuxSession[];
windows: TmuxWindowHealth[];
errors: string[];
render: Record<string, unknown>;
}
export declare function projectTmuxStatus(target: string | undefined, options?: ProjectTmuxStatusOptions): Promise<ProjectTmuxStatusResult>;
//# sourceMappingURL=project-tmux-status.d.ts.map