Changeset 0.25.0 (#160)

This commit is contained in:
2026-03-08 16:54:17 +00:00
parent 937be26578
commit 2b01d540d6
63 changed files with 6942 additions and 2773 deletions

View File

@@ -34,16 +34,6 @@ func RegisterWorkspaceSearchTool(stores store.Stores, embedder *knowledge.Embedd
Register(&workspaceSearchTool{stores: stores, embedder: embedder})
}
// WorkspaceToolNames returns the names of all workspace tools.
// Used by the completion handler to filter them out when no workspace is bound.
func WorkspaceToolNames() []string {
return []string{
"workspace_ls", "workspace_read", "workspace_write",
"workspace_rm", "workspace_mv", "workspace_patch",
"workspace_search",
}
}
// ── Shared ─────────────────────────────────
// loadWorkspace resolves the workspace from the execution context.
@@ -70,6 +60,7 @@ const (
// ═══════════════════════════════════════════
type workspaceLsTool struct {
workspaceToolBase
stores store.Stores
wfs *workspace.FS
}
@@ -136,6 +127,7 @@ func (t *workspaceLsTool) Execute(ctx context.Context, execCtx ExecutionContext,
// ═══════════════════════════════════════════
type workspaceReadTool struct {
workspaceToolBase
stores store.Stores
wfs *workspace.FS
}
@@ -242,6 +234,7 @@ func isTextContentType(ct string) bool {
// ═══════════════════════════════════════════
type workspaceWriteTool struct {
workspaceToolBase
stores store.Stores
wfs *workspace.FS
}
@@ -296,6 +289,7 @@ func (t *workspaceWriteTool) Execute(ctx context.Context, execCtx ExecutionConte
// ═══════════════════════════════════════════
type workspaceRmTool struct {
workspaceToolBase
stores store.Stores
wfs *workspace.FS
}
@@ -348,6 +342,7 @@ func (t *workspaceRmTool) Execute(ctx context.Context, execCtx ExecutionContext,
// ═══════════════════════════════════════════
type workspaceMvTool struct {
workspaceToolBase
stores store.Stores
wfs *workspace.FS
}
@@ -401,6 +396,7 @@ func (t *workspaceMvTool) Execute(ctx context.Context, execCtx ExecutionContext,
// ═══════════════════════════════════════════
type workspacePatchTool struct {
workspaceToolBase
stores store.Stores
wfs *workspace.FS
}