tools

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompileInput

type CompileInput struct {
	Path    string `json:"path" jsonschema:"File path or directory to compile"`
	Message string `json:"message,omitempty" jsonschema:"Snapshot message"`
}

type DeltaInput

type DeltaInput struct {
	SinceSnapshot int64 `json:"since_snapshot,omitempty" jsonschema:"Snapshot ID to diff from (0 for all changes)"`
}

type Deps

type Deps struct {
	Store   *store.Store
	Engine  *query.Engine
	Tracker *temperature.Tracker
	Logger  *slog.Logger
}

func (*Deps) HandleCompile

func (d *Deps) HandleCompile(ctx context.Context, _ *gomcp.CallToolRequest, input CompileInput) (_ *gomcp.CallToolResult, _ any, err error)

func (*Deps) HandleDelta

func (d *Deps) HandleDelta(ctx context.Context, _ *gomcp.CallToolRequest, input DeltaInput) (_ *gomcp.CallToolResult, _ any, err error)

func (*Deps) HandleFetch

func (d *Deps) HandleFetch(ctx context.Context, _ *gomcp.CallToolRequest, input FetchInput) (_ *gomcp.CallToolResult, _ any, err error)

func (*Deps) HandleHistory

func (d *Deps) HandleHistory(ctx context.Context, _ *gomcp.CallToolRequest, input HistoryInput) (_ *gomcp.CallToolResult, _ any, err error)

func (*Deps) HandleSearch

func (d *Deps) HandleSearch(ctx context.Context, _ *gomcp.CallToolRequest, input SearchInput) (_ *gomcp.CallToolResult, _ any, err error)

func (*Deps) HandleSummarize

func (d *Deps) HandleSummarize(ctx context.Context, _ *gomcp.CallToolRequest, input SummarizeInput) (_ *gomcp.CallToolResult, _ any, err error)

func (*Deps) HandleTree

func (d *Deps) HandleTree(ctx context.Context, _ *gomcp.CallToolRequest, input TreeInput) (_ *gomcp.CallToolResult, _ any, err error)

func (*Deps) HandleWrite

func (d *Deps) HandleWrite(ctx context.Context, _ *gomcp.CallToolRequest, input WriteInput) (_ *gomcp.CallToolResult, _ any, err error)

type FetchInput

type FetchInput struct {
	Anchor string `json:"anchor" jsonschema:"Node ID to fetch context around"`
	Budget int    `json:"budget" jsonschema:"Maximum token budget for the response"`
	Depth  int    `json:"depth,omitempty" jsonschema:"Max descendant depth (1-128, default 32); 0 uses engine default"`
}

type HistoryInput

type HistoryInput struct {
	Anchor string `json:"anchor" jsonschema:"Node ID to view history for"`
	Depth  int    `json:"depth,omitempty" jsonschema:"Maximum number of history entries (default 10)"`
}

type SearchInput

type SearchInput struct {
	Query  string `json:"query" jsonschema:"Full-text search query"`
	Budget int    `json:"budget" jsonschema:"Maximum token budget for the response"`
}

type SummarizeInput

type SummarizeInput struct {
	NodeID  string `json:"node_id" jsonschema:"Node ID to summarize"`
	Summary string `json:"summary" jsonschema:"Summary text to replace the node content"`
}

type TreeInput

type TreeInput struct {
	Root  string `json:"root,omitempty" jsonschema:"Root node ID (empty for full tree)"`
	Depth int    `json:"depth,omitempty" jsonschema:"Maximum depth to traverse (default 5)"`
}

type WriteInput

type WriteInput struct {
	Anchor  string `json:"anchor,omitempty" jsonschema:"Existing node ID to update (empty to create new)"`
	Payload string `json:"payload" jsonschema:"Content to write"`
}

Jump to

Keyboard shortcuts

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