handler

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookmarkBarView added in v1.0.0

type BookmarkBarView struct {
	ID         string
	Name       string
	URL        string
	Emoji      string
	FaviconURL string
}

BookmarkBarView is the template-friendly representation of a bar bookmark.

type DirEntry

type DirEntry struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

type FileEntry

type FileEntry struct {
	Name     string    `json:"name"`
	Path     string    `json:"path"`
	IsDir    bool      `json:"is_dir"`
	Size     int64     `json:"size"`
	Modified time.Time `json:"modified"`
}

FileEntry represents a single file or directory in a listing.

type Handlers

type Handlers struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Config, st *store.Store, renderer *tmpl.Renderer, ptyMgr *ptyPkg.Manager, snippetSt *store.SnippetStore, notifSt *store.NotificationStore, noteSt *store.NoteStore, bookmarkSt *store.BookmarkStore, voiceBoxSt *store.VoiceBoxStore, scratchpadSt *store.ScratchpadStore, hub *sse.Hub, upd *updater.Updater, wizJobs *wizard.JobTracker, wizGen *wizard.Generator) *Handlers

func (*Handlers) ApplyUpdate

func (h *Handlers) ApplyUpdate(w http.ResponseWriter, r *http.Request)

ApplyUpdate starts the update install process in a background goroutine.

func (*Handlers) AvailableEditors added in v1.1.0

func (h *Handlers) AvailableEditors(w http.ResponseWriter, r *http.Request)

AvailableEditors returns detected editors and the current preference. GET /api/editors/available

func (*Handlers) BookmarkGitCommit added in v1.0.0

func (h *Handlers) BookmarkGitCommit(w http.ResponseWriter, r *http.Request)

BookmarkGitCommit stages and commits selected files under .clawide/bookmarks/. POST /api/bookmarks/commit

func (*Handlers) BookmarkGitStatus added in v1.0.0

func (h *Handlers) BookmarkGitStatus(w http.ResponseWriter, r *http.Request)

BookmarkGitStatus returns the git status of files under .clawide/bookmarks/ for the project identified by the project_id query parameter. GET /api/bookmarks/git-status?project_id=...

func (*Handlers) CheckForUpdate

func (h *Handlers) CheckForUpdate(w http.ResponseWriter, r *http.Request)

CheckForUpdate triggers a fresh GitHub API check and returns the result.

func (*Handlers) CheckoutBranch

func (h *Handlers) CheckoutBranch(w http.ResponseWriter, r *http.Request)

CheckoutBranch switches the project's repo to the branch specified in the "branch" form field. POST /projects/{id}/api/checkout

func (*Handlers) ClosePane

func (h *Handlers) ClosePane(w http.ResponseWriter, r *http.Request)

func (*Handlers) CompleteOnboarding

func (h *Handlers) CompleteOnboarding(w http.ResponseWriter, r *http.Request)

func (*Handlers) CompleteWorkspaceTour

func (h *Handlers) CompleteWorkspaceTour(w http.ResponseWriter, r *http.Request)

func (*Handlers) CreateAgent added in v1.1.0

func (h *Handlers) CreateAgent(w http.ResponseWriter, r *http.Request)

CreateAgent creates a new agent in the specified scope.

func (*Handlers) CreateBookmark

func (h *Handlers) CreateBookmark(w http.ResponseWriter, r *http.Request)

func (*Handlers) CreateBookmarkFolder added in v1.0.0

func (h *Handlers) CreateBookmarkFolder(w http.ResponseWriter, r *http.Request)

func (*Handlers) CreateBranch

func (h *Handlers) CreateBranch(w http.ResponseWriter, r *http.Request)

CreateBranch creates a new branch and checks it out. Form fields: "name" (branch name) and "base" (optional base branch). POST /projects/{id}/api/branches

func (*Handlers) CreateFeature

func (h *Handlers) CreateFeature(w http.ResponseWriter, r *http.Request)

CreateFeature creates a new feature or branch workspace with its own git branch and isolated working directory. POST /projects/{id}/features/

func (*Handlers) CreateFeatureSession

func (h *Handlers) CreateFeatureSession(w http.ResponseWriter, r *http.Request)

CreateFeatureSession creates a new session scoped to a feature workspace. POST /projects/{id}/features/{fid}/sessions/

func (*Handlers) CreateMCPServer added in v1.1.0

func (h *Handlers) CreateMCPServer(w http.ResponseWriter, r *http.Request)

CreateMCPServer adds a new MCP server to the specified scope.

func (*Handlers) CreateNote

func (h *Handlers) CreateNote(w http.ResponseWriter, r *http.Request)

func (*Handlers) CreateNoteFolder added in v1.0.0

func (h *Handlers) CreateNoteFolder(w http.ResponseWriter, r *http.Request)

func (*Handlers) CreateNotification

func (h *Handlers) CreateNotification(w http.ResponseWriter, r *http.Request)

func (*Handlers) CreateProject

func (h *Handlers) CreateProject(w http.ResponseWriter, r *http.Request)

func (*Handlers) CreateProjectFromWizard added in v1.0.0

func (h *Handlers) CreateProjectFromWizard(w http.ResponseWriter, r *http.Request)

CreateProjectFromWizard validates the request, creates an async generation job, and returns the job ID for status polling.

func (*Handlers) CreateSession

func (h *Handlers) CreateSession(w http.ResponseWriter, r *http.Request)

func (*Handlers) CreateSkill added in v1.1.0

func (h *Handlers) CreateSkill(w http.ResponseWriter, r *http.Request)

CreateSkill creates a new skill in the specified scope.

func (*Handlers) CreateSnippet

func (h *Handlers) CreateSnippet(w http.ResponseWriter, r *http.Request)

func (*Handlers) CreateVoiceBoxEntry

func (h *Handlers) CreateVoiceBoxEntry(w http.ResponseWriter, r *http.Request)

func (*Handlers) CreateWorktree

func (h *Handlers) CreateWorktree(w http.ResponseWriter, r *http.Request)

CreateWorktree creates a new git worktree for the branch specified in the "branch" form field. The worktree is placed in the conventional directory: {project}-worktrees/{branch}/

func (*Handlers) Dashboard

func (h *Handlers) Dashboard(w http.ResponseWriter, r *http.Request)

func (*Handlers) DeleteAgent added in v1.1.0

func (h *Handlers) DeleteAgent(w http.ResponseWriter, r *http.Request)

DeleteAgent removes an agent file.

func (*Handlers) DeleteAllVoiceBoxEntries

func (h *Handlers) DeleteAllVoiceBoxEntries(w http.ResponseWriter, r *http.Request)

func (*Handlers) DeleteBookmark

func (h *Handlers) DeleteBookmark(w http.ResponseWriter, r *http.Request)

func (*Handlers) DeleteBookmarkFolder added in v1.0.0

func (h *Handlers) DeleteBookmarkFolder(w http.ResponseWriter, r *http.Request)

func (*Handlers) DeleteFeature

func (h *Handlers) DeleteFeature(w http.ResponseWriter, r *http.Request)

DeleteFeature soft-deletes a feature by moving it to the trash bin. The git branch is preserved so the feature can be restored later. Trashed features are automatically purged after 30 days. DELETE /projects/{id}/features/{fid}/

func (*Handlers) DeleteFile added in v1.1.0

func (h *Handlers) DeleteFile(w http.ResponseWriter, r *http.Request)

DeleteFile handles DELETE /projects/{id}/api/file?path=...

func (*Handlers) DeleteMCPServer added in v1.1.0

func (h *Handlers) DeleteMCPServer(w http.ResponseWriter, r *http.Request)

DeleteMCPServer removes an MCP server and stops it if running.

func (*Handlers) DeleteNote

func (h *Handlers) DeleteNote(w http.ResponseWriter, r *http.Request)

func (*Handlers) DeleteNoteFolder added in v1.0.0

func (h *Handlers) DeleteNoteFolder(w http.ResponseWriter, r *http.Request)

func (*Handlers) DeleteNotification

func (h *Handlers) DeleteNotification(w http.ResponseWriter, r *http.Request)

func (*Handlers) DeleteProject

func (h *Handlers) DeleteProject(w http.ResponseWriter, r *http.Request)

func (*Handlers) DeleteSession

func (h *Handlers) DeleteSession(w http.ResponseWriter, r *http.Request)

func (*Handlers) DeleteSkill added in v1.1.0

func (h *Handlers) DeleteSkill(w http.ResponseWriter, r *http.Request)

DeleteSkill removes a skill directory.

func (*Handlers) DeleteSnippet

func (h *Handlers) DeleteSnippet(w http.ResponseWriter, r *http.Request)

func (*Handlers) DeleteVoiceBoxEntry

func (h *Handlers) DeleteVoiceBoxEntry(w http.ResponseWriter, r *http.Request)

func (*Handlers) DeleteWorktree

func (h *Handlers) DeleteWorktree(w http.ResponseWriter, r *http.Request)

DeleteWorktree removes a worktree identified by the {wid} URL parameter, which is a base64 URL-encoded absolute path to the worktree directory.

func (*Handlers) DockerBuildWS added in v1.0.0

func (h *Handlers) DockerBuildWS(w http.ResponseWriter, r *http.Request)

DockerBuildWS streams Docker Compose build output for a project service via WebSocket.

func (*Handlers) DockerDown

func (h *Handlers) DockerDown(w http.ResponseWriter, r *http.Request)

DockerDown runs `docker compose down` and returns a status response.

func (*Handlers) DockerLogsWS

func (h *Handlers) DockerLogsWS(w http.ResponseWriter, r *http.Request)

DockerLogsWS streams Docker Compose logs for a project service via WebSocket.

func (*Handlers) DockerPS

func (h *Handlers) DockerPS(w http.ResponseWriter, r *http.Request)

DockerPS returns the list of Docker Compose services as JSON.

func (*Handlers) DockerRestart added in v1.0.0

func (h *Handlers) DockerRestart(w http.ResponseWriter, r *http.Request)

DockerRestart runs `docker compose restart` and returns a status response.

func (*Handlers) DockerServiceRestart

func (h *Handlers) DockerServiceRestart(w http.ResponseWriter, r *http.Request)

DockerServiceRestart restarts a single Docker Compose service.

func (*Handlers) DockerServiceStart

func (h *Handlers) DockerServiceStart(w http.ResponseWriter, r *http.Request)

DockerServiceStart starts a single Docker Compose service.

func (*Handlers) DockerServiceStop

func (h *Handlers) DockerServiceStop(w http.ResponseWriter, r *http.Request)

DockerServiceStop stops a single Docker Compose service.

func (*Handlers) DockerStatus added in v1.0.0

func (h *Handlers) DockerStatus(w http.ResponseWriter, r *http.Request)

DockerStatus returns a combined JSON response with daemon health, compose file presence, running services, compose service details, OS ports, and an optional web app URL.

func (*Handlers) DockerUp

func (h *Handlers) DockerUp(w http.ResponseWriter, r *http.Request)

DockerUp runs `docker compose up -d` and returns a status response.

func (*Handlers) FeatureDeleteFile added in v1.1.0

func (h *Handlers) FeatureDeleteFile(w http.ResponseWriter, r *http.Request)

FeatureDeleteFile handles DELETE /projects/{id}/features/{fid}/api/file

func (*Handlers) FeatureDockerBuildWS added in v1.0.0

func (h *Handlers) FeatureDockerBuildWS(w http.ResponseWriter, r *http.Request)

FeatureDockerBuildWS streams Docker build output for a feature's service via WebSocket.

func (*Handlers) FeatureDockerCopyEnvFiles added in v1.0.0

func (h *Handlers) FeatureDockerCopyEnvFiles(w http.ResponseWriter, r *http.Request)

FeatureDockerCopyEnvFiles copies missing .env files from the main project directory to the feature's worktree so that Docker Compose can run.

func (*Handlers) FeatureDockerDown added in v1.0.0

func (h *Handlers) FeatureDockerDown(w http.ResponseWriter, r *http.Request)

FeatureDockerDown stops the Docker stack in a feature's worktree.

func (*Handlers) FeatureDockerLogsWS added in v1.0.0

func (h *Handlers) FeatureDockerLogsWS(w http.ResponseWriter, r *http.Request)

FeatureDockerLogsWS streams Docker logs for a feature's service via WebSocket.

func (*Handlers) FeatureDockerPS added in v1.0.0

func (h *Handlers) FeatureDockerPS(w http.ResponseWriter, r *http.Request)

FeatureDockerPS returns the running services for a feature's worktree.

func (*Handlers) FeatureDockerRestart added in v1.0.0

func (h *Handlers) FeatureDockerRestart(w http.ResponseWriter, r *http.Request)

FeatureDockerRestart restarts the Docker stack in a feature's worktree.

func (*Handlers) FeatureDockerServiceRestart added in v1.0.0

func (h *Handlers) FeatureDockerServiceRestart(w http.ResponseWriter, r *http.Request)

FeatureDockerServiceRestart restarts a single service in a feature's worktree.

func (*Handlers) FeatureDockerServiceStart added in v1.0.0

func (h *Handlers) FeatureDockerServiceStart(w http.ResponseWriter, r *http.Request)

FeatureDockerServiceStart starts a single service in a feature's worktree.

func (*Handlers) FeatureDockerServiceStop added in v1.0.0

func (h *Handlers) FeatureDockerServiceStop(w http.ResponseWriter, r *http.Request)

FeatureDockerServiceStop stops a single service in a feature's worktree.

func (*Handlers) FeatureDockerStatus added in v1.0.0

func (h *Handlers) FeatureDockerStatus(w http.ResponseWriter, r *http.Request)

FeatureDockerStatus returns Docker status scoped to a feature's worktree.

func (*Handlers) FeatureDockerUp added in v1.0.0

func (h *Handlers) FeatureDockerUp(w http.ResponseWriter, r *http.Request)

FeatureDockerUp stops any running Docker stacks from the project or other features, then starts the stack in this feature's worktree.

func (*Handlers) FeatureGitCommit

func (h *Handlers) FeatureGitCommit(w http.ResponseWriter, r *http.Request)

FeatureGitCommit stages the selected files and creates a commit in the feature's worktree. POST /projects/{id}/features/{fid}/api/commit

func (*Handlers) FeatureGitStatus

func (h *Handlers) FeatureGitStatus(w http.ResponseWriter, r *http.Request)

FeatureGitStatus returns the git status of the feature's worktree as JSON. GET /projects/{id}/features/{fid}/api/status

func (*Handlers) FeatureListFiles

func (h *Handlers) FeatureListFiles(w http.ResponseWriter, r *http.Request)

FeatureListFiles handles GET /projects/{id}/features/{fid}/api/files It delegates to the shared file listing logic using the feature's worktree path as root.

func (*Handlers) FeatureMerge

func (h *Handlers) FeatureMerge(w http.ResponseWriter, r *http.Request)

FeatureMerge merges the workspace branch into a target branch. For feature-type workspaces: merges into main in the project root, then cleans up the worktree, branch, sessions, and store record. For branch-type workspaces: merges into a specified target branch within the clone, pushes to origin, and keeps the workspace intact. POST /projects/{id}/features/{fid}/api/merge

func (*Handlers) FeatureMkdir added in v1.0.0

func (h *Handlers) FeatureMkdir(w http.ResponseWriter, r *http.Request)

FeatureMkdir handles POST /projects/{id}/features/{fid}/api/mkdir

func (*Handlers) FeaturePullMain

func (h *Handlers) FeaturePullMain(w http.ResponseWriter, r *http.Request)

FeaturePullMain fetches origin and merges a branch into the workspace. For feature-type workspaces, it pulls the project's active/main branch. For branch-type workspaces, it accepts an optional source_branch parameter. POST /projects/{id}/features/{fid}/api/pull-main

func (*Handlers) FeatureReadFile

func (h *Handlers) FeatureReadFile(w http.ResponseWriter, r *http.Request)

FeatureReadFile handles GET /projects/{id}/features/{fid}/api/file

func (*Handlers) FeatureRenameFile added in v1.1.0

func (h *Handlers) FeatureRenameFile(w http.ResponseWriter, r *http.Request)

FeatureRenameFile handles POST /projects/{id}/features/{fid}/api/rename

func (*Handlers) FeatureReviewAnnotations added in v1.0.0

func (h *Handlers) FeatureReviewAnnotations(w http.ResponseWriter, r *http.Request)

FeatureReviewAnnotations returns AI review annotations from .clawide-review.json in the feature worktree. GET /projects/{id}/features/{fid}/api/review/annotations

func (*Handlers) FeatureReviewFileContent added in v1.0.0

func (h *Handlers) FeatureReviewFileContent(w http.ResponseWriter, r *http.Request)

FeatureReviewFileContent returns the content of a file at a specific ref (main or feature branch). GET /projects/{id}/features/{fid}/api/review/file-content?path=...&ref=main|feature

func (*Handlers) FeatureReviewFiles added in v1.0.0

func (h *Handlers) FeatureReviewFiles(w http.ResponseWriter, r *http.Request)

FeatureReviewFiles returns the list of changed files between the feature branch and the main branch, along with diff statistics. GET /projects/{id}/features/{fid}/api/review/files

func (*Handlers) FeatureSearchFiles added in v1.1.0

func (h *Handlers) FeatureSearchFiles(w http.ResponseWriter, r *http.Request)

FeatureSearchFiles handles GET /projects/{id}/features/{fid}/api/files/search

func (*Handlers) FeatureWorkspace

func (h *Handlers) FeatureWorkspace(w http.ResponseWriter, r *http.Request)

FeatureWorkspace renders the feature workspace page. GET /projects/{id}/features/{fid}/

func (*Handlers) FeatureWriteFile

func (h *Handlers) FeatureWriteFile(w http.ResponseWriter, r *http.Request)

FeatureWriteFile handles PUT /projects/{id}/features/{fid}/api/file

func (*Handlers) GetAISettings added in v1.0.0

func (h *Handlers) GetAISettings(w http.ResponseWriter, r *http.Request)

GetAISettings returns the current AI configuration from settings

func (*Handlers) GetAgent added in v1.1.0

func (h *Handlers) GetAgent(w http.ResponseWriter, r *http.Request)

GetAgent returns a single agent by scope and file name.

func (*Handlers) GetMCPServer added in v1.1.0

func (h *Handlers) GetMCPServer(w http.ResponseWriter, r *http.Request)

GetMCPServer returns a single MCP server by scope and name.

func (*Handlers) GetScratchpad added in v1.0.0

func (h *Handlers) GetScratchpad(w http.ResponseWriter, r *http.Request)

func (*Handlers) GetSkill added in v1.1.0

func (h *Handlers) GetSkill(w http.ResponseWriter, r *http.Request)

GetSkill returns a single skill by scope and directory name.

func (*Handlers) GetWizardLanguages added in v1.0.0

func (h *Handlers) GetWizardLanguages(w http.ResponseWriter, r *http.Request)

GetWizardLanguages returns the supported languages and frameworks as JSON.

func (*Handlers) GetWizardModels added in v1.0.0

func (h *Handlers) GetWizardModels(w http.ResponseWriter, r *http.Request)

GetWizardModels returns the available models for a given AI provider.

func (*Handlers) GetWizardProviders added in v1.0.0

func (h *Handlers) GetWizardProviders(w http.ResponseWriter, r *http.Request)

GetWizardProviders returns the list of available AI providers.

func (*Handlers) GetWizardStatus added in v1.0.0

func (h *Handlers) GetWizardStatus(w http.ResponseWriter, r *http.Request)

GetWizardStatus returns the current status of a wizard generation job.

func (*Handlers) ListAgents added in v1.1.0

func (h *Handlers) ListAgents(w http.ResponseWriter, r *http.Request)

ListAgents returns all agents (global + project), optionally filtered by scope query param.

func (*Handlers) ListBookmarkFolders added in v1.0.0

func (h *Handlers) ListBookmarkFolders(w http.ResponseWriter, r *http.Request)

func (*Handlers) ListBookmarks

func (h *Handlers) ListBookmarks(w http.ResponseWriter, r *http.Request)

func (*Handlers) ListBranches

func (h *Handlers) ListBranches(w http.ResponseWriter, r *http.Request)

ListBranches returns a JSON array of local and remote branches for the project's repository.

func (*Handlers) ListFiles

func (h *Handlers) ListFiles(w http.ResponseWriter, r *http.Request)

ListFiles handles GET /projects/{id}/api/files?path=...

func (*Handlers) ListMCPServers added in v1.1.0

func (h *Handlers) ListMCPServers(w http.ResponseWriter, r *http.Request)

ListMCPServers returns all MCP servers (global + project), with runtime status.

func (*Handlers) ListNoteFolders added in v1.0.0

func (h *Handlers) ListNoteFolders(w http.ResponseWriter, r *http.Request)

func (*Handlers) ListNotes

func (h *Handlers) ListNotes(w http.ResponseWriter, r *http.Request)

func (*Handlers) ListNotifications

func (h *Handlers) ListNotifications(w http.ResponseWriter, r *http.Request)

func (*Handlers) ListProjects

func (h *Handlers) ListProjects(w http.ResponseWriter, r *http.Request)

func (*Handlers) ListRemotes added in v1.1.0

func (h *Handlers) ListRemotes(w http.ResponseWriter, r *http.Request)

ListRemotes returns remotes and branches grouped by remote for the project's repository. Performs a best-effort git fetch --all first. GET /projects/{id}/api/remotes

func (*Handlers) ListSessions

func (h *Handlers) ListSessions(w http.ResponseWriter, r *http.Request)

func (*Handlers) ListSkills added in v1.1.0

func (h *Handlers) ListSkills(w http.ResponseWriter, r *http.Request)

ListSkills returns all skills (global + project), optionally filtered by scope query param.

func (*Handlers) ListSnippets

func (h *Handlers) ListSnippets(w http.ResponseWriter, r *http.Request)

func (*Handlers) ListTrashedFeatures added in v1.2.0

func (h *Handlers) ListTrashedFeatures(w http.ResponseWriter, r *http.Request)

ListTrashedFeatures returns all trashed features as JSON. GET /api/trash

func (*Handlers) ListVoiceBoxEntries

func (h *Handlers) ListVoiceBoxEntries(w http.ResponseWriter, r *http.Request)

func (*Handlers) ListWorktrees

func (h *Handlers) ListWorktrees(w http.ResponseWriter, r *http.Request)

ListWorktrees returns a JSON array of worktrees for the project's repo.

func (*Handlers) MCPServerLogs added in v1.1.0

func (h *Handlers) MCPServerLogs(w http.ResponseWriter, r *http.Request)

MCPServerLogs returns captured log lines for an MCP server.

func (*Handlers) MCPServerStatus added in v1.1.0

func (h *Handlers) MCPServerStatus(w http.ResponseWriter, r *http.Request)

MCPServerStatus returns the runtime status of an MCP server.

func (*Handlers) MarkAllNotificationsRead

func (h *Handlers) MarkAllNotificationsRead(w http.ResponseWriter, r *http.Request)

func (*Handlers) MarkNotificationRead

func (h *Handlers) MarkNotificationRead(w http.ResponseWriter, r *http.Request)

func (*Handlers) Mkdir added in v1.0.0

func (h *Handlers) Mkdir(w http.ResponseWriter, r *http.Request)

Mkdir handles POST /projects/{id}/api/mkdir?path=...

func (*Handlers) MoveAgent added in v1.1.0

func (h *Handlers) MoveAgent(w http.ResponseWriter, r *http.Request)

MoveAgent moves an agent between global and project scope.

func (*Handlers) MoveMCPServer added in v1.1.0

func (h *Handlers) MoveMCPServer(w http.ResponseWriter, r *http.Request)

MoveMCPServer moves an MCP server between global and project scope.

func (*Handlers) MovePane added in v1.2.0

func (h *Handlers) MovePane(w http.ResponseWriter, r *http.Request)

func (*Handlers) MoveSkill added in v1.1.0

func (h *Handlers) MoveSkill(w http.ResponseWriter, r *http.Request)

MoveSkill moves a skill between global and project scope.

func (*Handlers) NoteGitCommit added in v1.0.0

func (h *Handlers) NoteGitCommit(w http.ResponseWriter, r *http.Request)

NoteGitCommit stages and commits selected files under .clawide/notes/. POST /api/notes/commit

func (*Handlers) NoteGitStatus added in v1.0.0

func (h *Handlers) NoteGitStatus(w http.ResponseWriter, r *http.Request)

NoteGitStatus returns the git status of files under .clawide/notes/ for the project identified by the project_id query parameter. GET /api/notes/git-status?project_id=...

func (*Handlers) NotificationStream

func (h *Handlers) NotificationStream(w http.ResponseWriter, r *http.Request)

func (*Handlers) OpenEditor added in v1.1.0

func (h *Handlers) OpenEditor(w http.ResponseWriter, r *http.Request)

OpenEditor opens the preferred editor in the given project directory. POST /api/editor/open

func (*Handlers) OpenFolder added in v1.1.0

func (h *Handlers) OpenFolder(w http.ResponseWriter, r *http.Request)

OpenFolder opens the given directory in the OS file explorer. POST /api/editor/open-folder

func (*Handlers) PermanentlyDeleteTrashedFeature added in v1.2.0

func (h *Handlers) PermanentlyDeleteTrashedFeature(w http.ResponseWriter, r *http.Request)

PermanentlyDeleteTrashedFeature permanently removes a trashed feature and deletes its git branch. DELETE /api/trash/{tid}

func (*Handlers) ProjectWorkspace

func (h *Handlers) ProjectWorkspace(w http.ResponseWriter, r *http.Request)

func (*Handlers) PullMain

func (h *Handlers) PullMain(w http.ResponseWriter, r *http.Request)

PullMain fetches origin and merges the active base branch into the project's currently checked-out branch. POST /projects/{id}/api/pull-main

func (*Handlers) ReadFile

func (h *Handlers) ReadFile(w http.ResponseWriter, r *http.Request)

ReadFile handles GET /projects/{id}/api/file?path=...

func (*Handlers) RenameFile added in v1.1.0

func (h *Handlers) RenameFile(w http.ResponseWriter, r *http.Request)

RenameFile handles POST /projects/{id}/api/rename?path=...&newPath=...

func (*Handlers) RenamePane

func (h *Handlers) RenamePane(w http.ResponseWriter, r *http.Request)

func (*Handlers) RenameSession

func (h *Handlers) RenameSession(w http.ResponseWriter, r *http.Request)

func (*Handlers) ReorderBookmarks added in v1.0.0

func (h *Handlers) ReorderBookmarks(w http.ResponseWriter, r *http.Request)

func (*Handlers) ReorderNotes added in v1.0.0

func (h *Handlers) ReorderNotes(w http.ResponseWriter, r *http.Request)

func (*Handlers) ReorderProjects added in v1.0.0

func (h *Handlers) ReorderProjects(w http.ResponseWriter, r *http.Request)

func (*Handlers) ResetOnboarding

func (h *Handlers) ResetOnboarding(w http.ResponseWriter, r *http.Request)

func (*Handlers) ResizePane

func (h *Handlers) ResizePane(w http.ResponseWriter, r *http.Request)

func (*Handlers) RestartMCPServer added in v1.1.0

func (h *Handlers) RestartMCPServer(w http.ResponseWriter, r *http.Request)

RestartMCPServer restarts an MCP server process.

func (*Handlers) RestoreTrashedFeature added in v1.2.0

func (h *Handlers) RestoreTrashedFeature(w http.ResponseWriter, r *http.Request)

RestoreTrashedFeature restores a feature from the trash bin by recreating its worktree from the preserved branch. POST /api/trash/{tid}/restore

func (*Handlers) ScanProjects

func (h *Handlers) ScanProjects(w http.ResponseWriter, r *http.Request)

func (*Handlers) ScanProjectsDir added in v1.0.0

func (h *Handlers) ScanProjectsDir(w http.ResponseWriter, r *http.Request)

ScanProjectsDir returns subdirectories of the configured projects directory.

func (*Handlers) SearchFiles added in v1.1.0

func (h *Handlers) SearchFiles(w http.ResponseWriter, r *http.Request)

SearchFiles handles GET /projects/{id}/api/files/search?q=...

func (*Handlers) SetAISettings added in v1.0.0

func (h *Handlers) SetAISettings(w http.ResponseWriter, r *http.Request)

SetAISettings updates and persists the AI configuration

func (*Handlers) SetBaseBranch added in v1.1.0

func (h *Handlers) SetBaseBranch(w http.ResponseWriter, r *http.Request)

SetBaseBranch sets the project's active base branch. POST /projects/{id}/api/base-branch

func (*Handlers) SettingsPage

func (h *Handlers) SettingsPage(w http.ResponseWriter, r *http.Request)

func (*Handlers) ShowWizard added in v1.0.0

func (h *Handlers) ShowWizard(w http.ResponseWriter, r *http.Request)

ShowWizard renders the project wizard page or returns languages/frameworks as JSON.

func (*Handlers) SplitPane

func (h *Handlers) SplitPane(w http.ResponseWriter, r *http.Request)

func (*Handlers) StartMCPServer added in v1.1.0

func (h *Handlers) StartMCPServer(w http.ResponseWriter, r *http.Request)

StartMCPServer starts an MCP server process.

func (*Handlers) StopAllMCPProcesses added in v1.1.0

func (h *Handlers) StopAllMCPProcesses()

StopAllMCPProcesses stops all running MCP server processes (for graceful shutdown).

func (*Handlers) StopMCPServer added in v1.1.0

func (h *Handlers) StopMCPServer(w http.ResponseWriter, r *http.Request)

StopMCPServer stops a running MCP server process.

func (*Handlers) SystemStats

func (h *Handlers) SystemStats(w http.ResponseWriter, r *http.Request)

SystemStats returns system-level statistics as JSON.

func (*Handlers) TerminalWS

func (h *Handlers) TerminalWS(w http.ResponseWriter, r *http.Request)

func (*Handlers) TmuxPasteBuffer added in v1.1.0

func (h *Handlers) TmuxPasteBuffer(w http.ResponseWriter, r *http.Request)

TmuxPasteBuffer returns the contents of the most recent tmux paste buffer.

func (*Handlers) ToggleStar

func (h *Handlers) ToggleStar(w http.ResponseWriter, r *http.Request)

func (*Handlers) UnreadNotificationCount

func (h *Handlers) UnreadNotificationCount(w http.ResponseWriter, r *http.Request)

func (*Handlers) UpdateAgent added in v1.1.0

func (h *Handlers) UpdateAgent(w http.ResponseWriter, r *http.Request)

UpdateAgent updates an existing agent.

func (*Handlers) UpdateBookmark

func (h *Handlers) UpdateBookmark(w http.ResponseWriter, r *http.Request)

func (*Handlers) UpdateBookmarkFolder added in v1.0.0

func (h *Handlers) UpdateBookmarkFolder(w http.ResponseWriter, r *http.Request)

func (*Handlers) UpdateFeatureColor added in v1.0.0

func (h *Handlers) UpdateFeatureColor(w http.ResponseWriter, r *http.Request)

UpdateFeatureColor updates the color of a feature. PATCH /projects/{id}/features/{fid}/color

func (*Handlers) UpdateMCPServer added in v1.1.0

func (h *Handlers) UpdateMCPServer(w http.ResponseWriter, r *http.Request)

UpdateMCPServer updates an existing MCP server.

func (*Handlers) UpdateNote

func (h *Handlers) UpdateNote(w http.ResponseWriter, r *http.Request)

func (*Handlers) UpdateNoteFolder added in v1.0.0

func (h *Handlers) UpdateNoteFolder(w http.ResponseWriter, r *http.Request)

func (*Handlers) UpdateProjectColor

func (h *Handlers) UpdateProjectColor(w http.ResponseWriter, r *http.Request)

func (*Handlers) UpdateScratchpad added in v1.0.0

func (h *Handlers) UpdateScratchpad(w http.ResponseWriter, r *http.Request)

func (*Handlers) UpdateSettings

func (h *Handlers) UpdateSettings(w http.ResponseWriter, r *http.Request)

func (*Handlers) UpdateSkill added in v1.1.0

func (h *Handlers) UpdateSkill(w http.ResponseWriter, r *http.Request)

UpdateSkill updates an existing skill.

func (*Handlers) UpdateSnippet

func (h *Handlers) UpdateSnippet(w http.ResponseWriter, r *http.Request)

func (*Handlers) UpdateStatus

func (h *Handlers) UpdateStatus(w http.ResponseWriter, r *http.Request)

UpdateStatus returns the cached update state without making an API call.

func (*Handlers) ValidateWizardField added in v1.0.0

func (h *Handlers) ValidateWizardField(w http.ResponseWriter, r *http.Request)

ValidateWizardField performs inline validation on a single field for real-time feedback.

func (*Handlers) VerifyAICredentials added in v1.0.0

func (h *Handlers) VerifyAICredentials(w http.ResponseWriter, r *http.Request)

VerifyAICredentials tests API credentials without storing them

func (*Handlers) Version

func (h *Handlers) Version(w http.ResponseWriter, r *http.Request)

Version returns the current build version as JSON.

func (*Handlers) WriteFile

func (h *Handlers) WriteFile(w http.ResponseWriter, r *http.Request)

WriteFile handles PUT /projects/{id}/api/file?path=...

type ScanResult

type ScanResult struct {
	Dirs []DirEntry `json:"dirs"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL