Documentation
¶
Index ¶
- Constants
- Variables
- func BuildWASM(opts Options) ([]byte, error)
- func CacheDir() (string, error)
- func EnsureReferenceWASM(version string) ([]byte, error)
- func MCPFunctionName(toolName string) string
- func MCPQualifiedFunctionName(serverName, toolName string) string
- func ModuleDir() (string, error)
- func ReferenceWASMPath(version string) (string, error)
- func RewriteMCPCalls(src string, bindings []MCPToolBinding) (string, error)
- func RewriteSDKImports(src string) (string, error)
- func SourceReferencesSDKAlias(src string) bool
- func WarmSDKCache() error
- type MCPToolBinding
- type Options
Constants ¶
const SDKImportCanonical = "github.com/SAPPHIR3-ROS3/Solomon/v2026/internal/sandbox/sdk"
const SolomonModulePath = "github.com/SAPPHIR3-ROS3/Solomon/v2026"
Variables ¶
var SDKImportPathsForModel = []string{
"sdk",
}
Functions ¶
func EnsureReferenceWASM ¶
func MCPFunctionName ¶ added in v2026.909.0
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
MCPQualifiedFunctionName is the collision-free source identifier for an MCP tool, combining its server and tool names.
func ReferenceWASMPath ¶
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 SourceReferencesSDKAlias ¶ added in v2026.615.0
func WarmSDKCache ¶
func WarmSDKCache() error
Types ¶
type MCPToolBinding ¶ added in v2026.909.0
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.