mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
51eecde01e
* * completed * * optimzie * * fix format * * fix pr check * try to fix ci * * Indicates that Windows does not support expos_paths, adding more mount paths for the Linux platform. * fix isolation startup lifecycle and MCP transport wrapping * fix isolation startup cleanup and optional Linux mounts * fix isolation path handling for relative hooks Preserve relative command and working-directory semantics when Linux isolation wraps subprocesses, and restore absolute argv path exposure to avoid startup regressions. Add hook coverage and docs updates so isolation-enabled process hooks keep working as configured. * * fix ci
23 lines
559 B
Go
23 lines
559 B
Go
//go:build !linux && !windows
|
|
|
|
package isolation
|
|
|
|
import (
|
|
"os/exec"
|
|
|
|
"github.com/sipeed/picoclaw/pkg/config"
|
|
)
|
|
|
|
func applyPlatformIsolation(cmd *exec.Cmd, isolation config.IsolationConfig, root string) error {
|
|
// Unsupported platforms currently keep the command unchanged. Callers rely on
|
|
// Preflight and higher-level checks to surface unsupported isolation modes.
|
|
return nil
|
|
}
|
|
|
|
func postStartPlatformIsolation(cmd *exec.Cmd, isolation config.IsolationConfig, root string) error {
|
|
return nil
|
|
}
|
|
|
|
func cleanupPendingPlatformResources(cmd *exec.Cmd) {
|
|
}
|