Documentation
¶
Index ¶
- func CheckRestoredProfile(ctx context.Context, current, restored string) error
- func ExecuteConfigurationFollow(command protocol.Command) (protocol.Output, []protocol.Event, error)
- func LocalModelCapabilities() localmodels.Capabilities
- func SupportsConfigurationFollow(kind string) bool
- func SwapProfile(ctx context.Context, current, restored string, now time.Time) (string, error)
- type Node
- func (node *Node) CheckSchedules()
- func (node *Node) Dispatch(ctx context.Context, caller protocol.NodeID, request protocol.Request) (link.Admission, error)
- func (node *Node) ID() protocol.NodeID
- func (node *Node) InitializeUserPlugins(ctx context.Context, user protocol.User) error
- func (node *Node) KnowledgeLocal(ctx context.Context, caller protocol.NodeID, request protocol.Request) (protocol.Output, error)
- func (node *Node) Link() *link.Link
- func (node *Node) Open(ctx context.Context, caller protocol.NodeID, id protocol.StreamID) (link.Stream, error)
- func (node *Node) ReadConfigurationFollow(ctx context.Context, request protocol.Request) (protocol.Output, error)
- func (node *Node) RefreshIdentity(ctx context.Context) error
- func (node *Node) Resource(ctx context.Context, caller protocol.NodeID, call protocol.ResourceCall) (link.Admission, error)
- func (node *Node) RuntimeCredentialsChanged()
- func (node *Node) ScopedKnowledge(ctx context.Context, caller protocol.NodeID, call protocol.ScopedKnowledgeCall) (link.Admission, error)
- func (node *Node) Snapshot(ctx context.Context) (protocol.Snapshot, error)
- func (node *Node) Stop(ctx context.Context) error
- func (node *Node) Subscribe(ctx context.Context, caller protocol.NodeID, topic protocol.Topic) (link.Subscription, error)
- func (node *Node) Telemetry() *telemetry.Control
- type Options
- type Profile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRestoredProfile ¶
CheckRestoredProfile reports whether the restored profile can take the place of current: it is another directory, outside current, no process owns it, and this build opens its identity and databases. The restore that made it has already decrypted and verified the archive. Nothing in either profile changes, so it runs while the Node of current does.
func ExecuteConfigurationFollow ¶
func ExecuteConfigurationFollow(command protocol.Command) (protocol.Output, []protocol.Event, error)
Retired write actions reach the normal ledger so an already settled request can still return its original outcome.
func LocalModelCapabilities ¶
func LocalModelCapabilities() localmodels.Capabilities
LocalModelCapabilities are the inference runtimes of this build for Options.LocalModels. Embedding and OCR run on the onnxruntime library packaged beside the executable and are unavailable without it.
func SwapProfile ¶
SwapProfile makes the restored profile the one at current. The profile that was there is kept beside it as "<name>.before-restore-<time>" and is never deleted; its path is returned. The Node of current must be stopped.
Everything is checked before either profile is touched. The stored paths of the restored profile are then pointed at its new place, and three renames follow: the restored profile next to current, which proves both are on one volume, current to its kept name, the restored profile to current. A failure undoes what was done, so current is either what it was or the restored profile, and the restored profile is back where it lay.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node owns one profile, admitted operations and their committed event feed.
func StartWithOptions ¶
func (*Node) CheckSchedules ¶
func (node *Node) CheckSchedules()
CheckSchedules makes the runner read the wall clock now. The application calls it when the system wakes; without that signal the runner's own recheck finds a fire that became due during sleep.
func (*Node) Dispatch ¶
func (node *Node) Dispatch(ctx context.Context, caller protocol.NodeID, request protocol.Request) (link.Admission, error)
Dispatch admits a command and observes every one that changes data.
func (*Node) InitializeUserPlugins ¶
InitializeUserPlugins installs bundled defaults without copying another user's settings or restoring that user's explicit removal choices.
func (*Node) KnowledgeLocal ¶
func (node *Node) KnowledgeLocal(ctx context.Context, caller protocol.NodeID, request protocol.Request) (protocol.Output, error)
KnowledgeLocal executes only this Node's knowledge service. Controller aggregation must use this entry point rather than route a request recursively.
func (*Node) ReadConfigurationFollow ¶
func (*Node) RefreshIdentity ¶
RefreshIdentity is the post-commit boundary for identity commands. In particular, a revoked peer loses its cached live connection immediately.
func (*Node) Resource ¶
func (node *Node) Resource(ctx context.Context, caller protocol.NodeID, call protocol.ResourceCall) (link.Admission, error)
Resource admits management requests at their storage Node from a direct controller.
func (*Node) RuntimeCredentialsChanged ¶
func (node *Node) RuntimeCredentialsChanged()
RuntimeCredentialsChanged wakes model steps only after their replacement credentials have committed. It also recalculates controller renewal timers.
func (*Node) ScopedKnowledge ¶
func (node *Node) ScopedKnowledge(ctx context.Context, caller protocol.NodeID, call protocol.ScopedKnowledgeCall) (link.Admission, error)
ScopedKnowledge runs workspace requests and receipt inspection on the execution Node that owns the collection.
func (*Node) Stop ¶
Stop cancels every worker and waits for the Node to close. Work that ignores cancellation is abandoned at the shutdown deadline: Stop then returns core.ErrShutdownTimeout naming it, with the profile released, and the caller exits. Go cannot abort a goroutine, so the exit is what ends it.
type Options ¶
type Options struct {
Headless bool
MCP *mcp.Options
Python *python.Options
DispatchClock clockwork.Clock
Network *link.NetworkScope
HostDeployment *host.DeploymentOptions
HostRelease identity.HostRelease
SoftwareVersion string
Model func(context.Context, model.Binding) (fantasy.LanguageModel, error)
Fetch web.FetchOptions
Search web.SearchOptions
Environment *process.Environment
Git workspacegit.Options
Process process.Options
LocalModels localmodels.Options
Power power.Backend
Telemetry telemetry.Options
CodeIndex codeindexapi.Factory
Assembly moduleapi.Assembly
// contains filtered or unexported fields
}
Options injects native process and clock boundaries for deterministic owners.
type Profile ¶
Profile holds the shared Desktop and Host storage lifecycle.
Source Files
¶
- access_stream.go
- access_subscription.go
- agent_tools.go
- agent_tools_mcp.go
- agent_tools_plugins.go
- agent_tools_roles.go
- agent_tools_skills.go
- auth_service.go
- authorization.go
- backup_service.go
- backup_service_operations.go
- bootstrap.go
- browser.go
- browser_tools.go
- codeindex_service.go
- computer_service.go
- configuration_follow.go
- configuration_transfer.go
- connection_tools.go
- connector_access.go
- connector_cli.go
- connector_commands.go
- connector_login.go
- connector_mcp.go
- connector_projection.go
- controller_login.go
- conversation.go
- credential_renewals.go
- database_service.go
- dispatch_service.go
- external_browser.go
- goal_tools.go
- host_handler.go
- host_service.go
- identity_sync.go
- knowledge_local.go
- knowledge_scoped.go
- knowledge_service.go
- knowledge_service_tools.go
- localmodels_decision.go
- localmodels_runtime.go
- localmodels_runtime_document.go
- localmodels_service.go
- logging_commands.go
- media_tools.go
- model_service.go
- module_host.go
- network.go
- network_commands.go
- network_host_removals.go
- network_presets.go
- network_probes.go
- network_trust.go
- node.go
- paths.go
- plugin_commands.go
- plugin_connection.go
- plugin_installations.go
- plugin_mcp.go
- plugin_mcp_install.go
- plugin_mcp_launch.go
- plugin_mcp_warm.go
- plugin_message_command.go
- plugin_models.go
- plugin_replay.go
- plugin_service.go
- plugin_status.go
- plugin_status_evaluation.go
- plugin_status_repository.go
- plugin_status_runner.go
- plugin_tools.go
- plugin_tools_flow.go
- plugin_tools_mcp.go
- plugin_tools_native.go
- plugin_tools_scoped.go
- plugin_tools_script.go
- plugin_tools_storage.go
- plugin_turn_callbacks.go
- plugin_users.go
- plugin_versions.go
- plugin_views.go
- port_commands.go
- power_service.go
- present_tools.go
- profile_swap.go
- project_removal.go
- provider.go
- provider_http.go
- provider_login.go
- provider_login_commands.go
- provider_login_models.go
- python_service.go
- request_access.go
- resource_catalog.go
- resource_observers.go
- resource_service.go
- session_cleanup.go
- session_forwarding.go
- session_removal.go
- ssh_pool.go
- ssh_resources.go
- ssh_service.go
- subscription.go
- telemetry_service.go
- terminal_service.go
- tool_images.go
- workspace_attachments.go
- workspace_catalog.go
- workspace_commands.go
- workspace_external.go
- workspace_files.go
- workspace_git.go
- workspace_git_hunk.go
- workspace_locks.go
- workspace_process.go
- workspace_process_sessions.go
- workspace_process_stalls.go
- workspace_runtime.go
- workspace_scope.go
- workspace_session_cleanup.go
- workspace_subscription.go
- workspace_tools.go
- workspace_watch.go
- workspace_web.go
- workspace_web_native.go
- wsl_service.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package admission owns the caller-scoped durable request ledger.
|
Package admission owns the caller-scoped durable request ledger. |
|
agent
|
|
|
canonical
Package canonical owns the durable conversation representation independently of the execution engine and provider transport.
|
Package canonical owns the durable conversation representation independently of the execution engine and provider transport. |
|
clock
Package clock provides the injected time boundary for agent policy deadlines.
|
Package clock provides the injected time boundary for agent policy deadlines. |
|
compact
Package compact owns bounded structured handoffs, never canonical history.
|
Package compact owns bounded structured handoffs, never canonical history. |
|
engine
Adapted from Goose ee8500d5 and 14741e9a (Apache-2.0).
|
Adapted from Goose ee8500d5 and 14741e9a (Apache-2.0). |
|
feed
Package feed owns bounded ephemeral conversation frames, never durable history.
|
Package feed owns bounded ephemeral conversation frames, never durable history. |
|
model
Package model captures provider requests and owns per-attempt model transport.
|
Package model captures provider requests and owns per-attempt model transport. |
|
model/acpfixture
Package acpfixture is a scripted Agent Client Protocol agent for tests.
|
Package acpfixture is a scripted Agent Client Protocol agent for tests. |
|
observation
Package observation classifies adapted model requests without retaining bodies.
|
Package observation classifies adapted model requests without retaining bodies. |
|
operations
Package operations binds declared native host operations without running package scripts.
|
Package operations binds declared native host operations without running package scripts. |
|
output
Package output projects tool results only in outgoing model records.
|
Package output projects tool results only in outgoing model records. |
|
prompt
Package prompt separates stable instructions from persisted turn context.
|
Package prompt separates stable instructions from persisted turn context. |
|
tokens
Package tokens retains the source's offline o200k token accounting.
|
Package tokens retains the source's offline o200k token accounting. |
|
Package backup builds, encrypts, publishes and restores profile archives.
|
Package backup builds, encrypts, publishes and restores profile archives. |
|
Package computer locates the bundled computer-use helper, reads the execution device's helper grants and owns the helper's cursor-overlay sessions.
|
Package computer locates the bundled computer-use helper, reads the execution device's helper grants and owns the helper's cursor-overlay sessions. |
|
Package externalbrowser owns the managed Chromium sessions of one Node.
|
Package externalbrowser owns the managed Chromium sessions of one Node. |
|
Text edits derive from the reviewed confined file service (Apache-2.0).
|
Text edits derive from the reviewed confined file service (Apache-2.0). |
|
Package fswatch reports file changes below directories without holding a descriptor per watched file.
|
Package fswatch reports file changes below directories without holding a descriptor per watched file. |
|
Package git owns bounded repository reads and native Git mutations on Node.
|
Package git owns bounded repository reads and native Git mutations on Node. |
|
Package hooks runs captured workspace scripts around Node-owned tool execution.
|
Package hooks runs captured workspace scripts around Node-owned tool execution. |
|
service
Package service indexes knowledge collections and answers queries and citation reads.
|
Package service indexes knowledge collections and answers queries and citation reads. |
|
source
Package source reads the files of a knowledge collection.
|
Package source reads the files of a knowledge collection. |
|
Package logging owns the process's rotating diagnostics.
|
Package logging owns the process's rotating diagnostics. |
|
Package moduleapi defines the compile-time contract between the Node runtime and optional native feature modules under modules/*/node.
|
Package moduleapi defines the compile-time contract between the Node runtime and optional native feature modules under modules/*/node. |
|
Package power holds one serialized native idle-sleep request while the Node's power setting is on and the Node has running work.
|
Package power holds one serialized native idle-sleep request while the Node's power setting is on and the Node has running work. |
|
Adapted from sailry-code 67ae9fa0.
|
Adapted from sailry-code 67ae9fa0. |
|
Package program starts and owns the executables a package declares.
|
Package program starts and owns the executables a package declares. |
|
Package providers owns provider metadata and explicitly requested HTTP work.
|
Package providers owns provider metadata and explicitly requested HTTP work. |
|
Package telemetry owns the process's reporting consent, its anonymous identity, the diagnostics report a controller asks for, automatic error reports (failed operations, interface hangs and crashes) and anonymous usage counters.
|
Package telemetry owns the process's reporting consent, its anonymous identity, the diagnostics report a controller asks for, automatic error reports (failed operations, interface hangs and crashes) and anonymous usage counters. |
|
Package web supplies Node-owned public web reads and configured search.
|
Package web supplies Node-owned public web reads and configured search. |
|
Package wsl owns installed WSL distribution discovery and independent Linux Host deployment into a WSL2 distribution for the execution Node.
|
Package wsl owns installed WSL distribution discovery and independent Linux Host deployment into a WSL2 distribution for the execution Node. |