mirror of
https://github.com/hanzoai/runtime.git
synced 2026-10-30 18:23:13 +00:00
- Add main Dockerfile for production builds - Add Dockerfile.runtime for secure code execution - Add Dockerfile.runtime.fixed with improved configuration - Include .dockerignore for build optimization - Add integration documentation and publishing guides - Update API and CLI components for better runtime support - Enhance sandbox and container management features
30 lines
738 B
Go
30 lines
738 B
Go
// Copyright 2025 Hanzo Industries Inc.
|
|
// SPDX-License-Identifier: AGPL-3.0
|
|
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
cu "github.com/hanzoai/computer-use/pkg/computeruse"
|
|
"github.com/hanzoai/daemon/pkg/toolbox/computeruse"
|
|
"github.com/hanzoai/daemon/pkg/toolbox/computeruse/manager"
|
|
"github.com/hashicorp/go-hclog"
|
|
hc_plugin "github.com/hashicorp/go-plugin"
|
|
)
|
|
|
|
func main() {
|
|
logger := hclog.New(&hclog.LoggerOptions{
|
|
Level: hclog.Trace,
|
|
Output: os.Stderr,
|
|
JSONFormat: true,
|
|
})
|
|
hc_plugin.Serve(&hc_plugin.ServeConfig{
|
|
HandshakeConfig: manager.ComputerUseHandshakeConfig,
|
|
Plugins: map[string]hc_plugin.Plugin{
|
|
"runtime-computer-use": &computeruse.ComputerUsePlugin{Impl: &cu.ComputerUse{}},
|
|
},
|
|
Logger: logger,
|
|
})
|
|
}
|