compile

package
v2026.1024.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const SDKImportCanonical = "github.com/SAPPHIR3-ROS3/Solomon/v2026/internal/sandbox/sdk"
View Source
const SolomonModulePath = "github.com/SAPPHIR3-ROS3/Solomon/v2026"

Variables

View Source
var SDKImportPathsForModel = []string{
	"sdk",
}

Functions

func BuildWASM

func BuildWASM(opts Options) ([]byte, error)

func CacheDir

func CacheDir() (string, error)

func EnsureReferenceWASM

func EnsureReferenceWASM(version string) ([]byte, error)

func MCPFunctionName added in v2026.909.0

func MCPFunctionName(toolName string) string

MCPFunctionName is the unqualified source identifier for an MCP tool. It is usable when the tool name is unique across connected servers.

func MCPQualifiedFunctionName added in v2026.909.0

func MCPQualifiedFunctionName(serverName, toolName string) string

MCPQualifiedFunctionName is the collision-free source identifier for an MCP tool, combining its server and tool names.

func ModuleDir

func ModuleDir() (string, error)

func ReferenceWASMPath

func ReferenceWASMPath(version string) (string, error)

func RewriteMCPCalls added in v2026.909.0

func RewriteMCPCalls(src string, bindings []MCPToolBinding) (string, error)

RewriteMCPCalls lowers the intentionally small Code Mode MCP syntax into the existing sandbox RPC surface. This keeps MCP on the same orchestrate path as every other deferred tool while allowing the model to write the established sdk.mcp.<tool>(intent, args) form.

func RewriteSDKImports added in v2026.613.0

func RewriteSDKImports(src string) (string, error)

func SourceReferencesSDKAlias added in v2026.615.0

func SourceReferencesSDKAlias(src string) bool

func WarmSDKCache

func WarmSDKCache() error

Types

type MCPToolBinding added in v2026.909.0

type MCPToolBinding struct {
	ExposedName string
	ServerName  string
	ToolName    string
}

MCPToolBinding describes the names made available to an orchestrate script. The source-level form is sdk.mcp.<tool>(intent, args); it is rewritten to a normal sandbox RPC call before the script is compiled.

type Options

type Options struct {
	Source     string
	ModuleRoot string
	CacheDir   string
	MCPTools   []MCPToolBinding
}

Jump to

Keyboard shortcuts

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