/** * Workspace service for managing initiatives, todos, and ideas. * Handles all CRUD operations for the project tracker workspace. */ import { Initiative, InitiativeState, InitiativeSummary, Todo, TodoSummary, Idea, IdeaSummary, Session, WorkspaceTree, FileTreeNode, CreateInitiativePayload, CreateTodoPayload, CreateIdeaPayload, CreateSessionPayload, MoveInitiativePayload } from "../types"; export declare class WorkspaceService { private workspacePath; constructor(workspacePath: string); /** * Initialize the workspace directory structure. * Creates all required folders if they don't exist. */ initializeWorkspace(): Promise; /** * Check if the workspace exists and has the expected structure. */ isValidWorkspace(): Promise; /** * Get the full workspace tree with all initiatives, todos, and ideas. */ getWorkspaceTree(): Promise; /** * Get raw file tree for a directory. */ getFileTree(relativePath?: string, baseDir?: string): Promise; /** * List all initiatives in a given state. */ listInitiatives(state: InitiativeState): Promise; /** * Get a summary of an initiative (without full content). */ private getInitiativeSummary; /** * Get a full initiative with all details. */ getInitiative(state: InitiativeState, name: string): Promise; /** * Create a new initiative. */ createInitiative(payload: CreateInitiativePayload): Promise; /** * Move an initiative to a different state. */ moveInitiative(currentState: InitiativeState, name: string, payload: MoveInitiativePayload): Promise; /** * Delete an initiative. */ deleteInitiative(state: InitiativeState, name: string): Promise; private generateInitiativeContent; private readSessions; /** * Create a new session document. */ createSession(payload: CreateSessionPayload): Promise; private generateSessionContent; private readDecisions; private readPlans; /** * Read TRACKER.md from an initiative folder. */ private readTracker; /** * Read an arbitrary file from an initiative folder. * Returns null if file doesn't exist or path escapes the initiative folder. */ getInitiativeFile(state: InitiativeState, name: string, filePath: string): Promise; /** * Get file tree for an initiative folder. */ getInitiativeFileTree(state: InitiativeState, name: string): Promise; /** * List all todos. */ listTodos(): Promise; /** * Get a full todo. */ getTodo(name: string): Promise; /** * Create a new todo. */ createTodo(payload: CreateTodoPayload): Promise; /** * Delete a todo. */ deleteTodo(name: string): Promise; /** * List all ideas. */ listIdeas(): Promise; /** * Get a full idea. */ getIdea(name: string): Promise; /** * Create a new idea. */ createIdea(payload: CreateIdeaPayload): Promise; /** * Delete an idea. */ deleteIdea(name: string): Promise; /** * Promote an idea to an initiative. */ promoteIdeaToInitiative(ideaName: string, initiativePayload: CreateInitiativePayload): Promise; }