An open-source, faster Devin alternative
TypeScript
sdk updates, etc
Brian Reardon8594f8db546e
diff --git a/cmd/server/main.go b/cmd/server/main.goindex 8f2b3f0d..abb038e8 100644--- a/cmd/server/main.go+++ b/cmd/server/main.go@@ -15,6 +15,7 @@ import ("github.com/opensandbox/opensandbox/internal/controlplane""github.com/opensandbox/opensandbox/internal/db""github.com/opensandbox/opensandbox/internal/podman"+ "github.com/opensandbox/opensandbox/internal/proxy""github.com/opensandbox/opensandbox/internal/sandbox""github.com/opensandbox/opensandbox/internal/storage""github.com/opensandbox/opensandbox/internal/template"@@ -156,6 +157,14 @@ func main() {defer sbRouter.Close()opts.Router = sbRouterlog.Println("opensandbox: sandbox router initialized (rolling timeouts, auto-wake)")++ // Initialize subdomain reverse proxy+ if cfg.SandboxDomain != "" {+ sbProxy := proxy.New(cfg.SandboxDomain, mgr, sbRouter)+ opts.SandboxProxy = sbProxy+ opts.SandboxDomain = cfg.SandboxDomain+ log.Printf("opensandbox: subdomain proxy configured (*.%s)", cfg.SandboxDomain)+ }}// Initialize Redis worker registry in server modediff --git a/cmd/worker/main.go b/cmd/worker/main.goindex 8b28b9a7..202e76d7 100644--- a/cmd/worker/main.go+++ b/cmd/worker/main.go@@ -13,6 +13,7 @@ import ("github.com/opensandbox/opensandbox/internal/config""github.com/opensandbox/opensandbox/internal/metrics""github.com/opensandbox/opensandbox/internal/podman"+ "github.com/opensandbox/opensandbox/internal/proxy""github.com/opensandbox/opensandbox/internal/sandbox""github.com/opensandbox/opensandbox/internal/storage""github.com/opensandbox/opensandbox/internal/worker"@@ -103,8 +104,15 @@ func main() {}}()+ // Initialize subdomain reverse proxy+ var sbProxy *proxy.SandboxProxy+ if cfg.SandboxDomain != "" {+ sbProxy = proxy.New(cfg.SandboxDomain, mgr, sbRouter)+ log.Printf("opensandbox-worker: subdomain proxy configured (*.%s)", cfg.SandboxDomain)+ }+// Start HTTP server for direct SDK access- httpServer := worker.NewHTTPServer(mgr, ptyMgr, jwtIssuer, sandboxDBMgr)+ httpServer := worker.NewHTTPServer(mgr, ptyMgr, jwtIssuer, sandboxDBMgr, sbProxy, sbRouter)httpAddr := fmt.Sprintf(":%d", cfg.Port)log.Printf("opensandbox-worker: starting HTTP server on %s", httpAddr)go func() {diff --git a/internal/api/router.go b/internal/api/router.goindex 6434648b..401c28fa 100644--- a/internal/api/router.go+++ b/internal/api/router.go@@ -13,6 +13,7 @@ import ("github.com/opensandbox/opensandbox/internal/auth""github.com/opensandbox/opensandbox/internal/controlplane""github.com/opensandbox/opensandbox/internal/db"+ "github.com/opensandbox/opensandbox/internal/proxy""github.com/opensandbox/opensandbox/internal/sandbox""github.com/opensandbox/opensandbox/internal/storage")@@ -38,6 +39,7 @@ type Server struct {workos *auth.WorkOSMiddleware // nil if WorkOS not configuredworkerRegistry *controlplane.RedisWorkerRegistry // nil in combined/worker modecheckpointStore *storage.CheckpointStore // nil if hibernation not configured+ sandboxDomain string // base domain for sandbox subdomains}// ServerOpts holds optional dependencies for the API server.@@ -50,6 +52,8 @@ type ServerOpts struct {HTTPAddr stringSandboxDBs *sandbox.SandboxDBManagerRouter *sandbox.SandboxRouter // nil in server-only mode+ SandboxProxy *proxy.SandboxProxy // nil if subdomain routing not configured+ SandboxDomain string // base domain for sandbox subdomainsWorkOSConfig *auth.WorkOSConfig // nil if WorkOS not configuredWorkerRegistry *controlplane.RedisWorkerRegistry // nil in combined/worker modeCheckpointStore *storage.CheckpointStore // nil if hibernation not configured@@ -78,6 +82,7 @@ func NewServer(mgr *sandbox.Manager, ptyMgr *sandbox.PTYManager, apiKey string,s.router = opts.Routers.workerRegistry = opts.WorkerRegistrys.checkpointStore = opts.CheckpointStore+ s.sandboxDomain = opts.SandboxDomain}// Global middleware@@ -86,6 +91,11 @@ func NewServer(mgr *sandbox.Manager, ptyMgr *sandbox.PTYManager, apiKey string,e.Use(middleware.CORS())e.Use(middleware.RequestID())+ // Subdomain proxy middleware (before auth — subdomain traffic is public)+ if opts != nil && opts.SandboxProxy != nil {+ e.Use(opts.SandboxProxy.Middleware())+ }+// Health check (no auth)e.GET("/health", func(c echo.Context) error {return c.JSON(http.StatusOK, map[string]string{"status": "ok"})diff --git a/internal/api/sandbox.go b/internal/api/sandbox.goindex 8d953471..779b3d3b 100644--- a/internal/api/sandbox.go+++ b/internal/api/sandbox.go@@ -3,6 +3,7 @@ package apiimport ("context""encoding/json"+ "fmt""log""net/http""time"@@ -86,6 +87,11 @@ func (s *Server) createSandbox(c echo.Context) error {}}+ // Assign subdomain+ if s.sandboxDomain != "" {+ sb.Domain = fmt.Sprintf("%s.%s", sb.ID, s.sandboxDomain)+ }+// Write session record to PG if availableif s.store != nil && hasOrg {cfgJSON, _ := json.Marshal(cfg)@@ -210,6 +216,10 @@ func (s *Server) getSandbox(c echo.Context) error {}}+ if s.sandboxDomain != "" {+ sb.Domain = fmt.Sprintf("%s.%s", id, s.sandboxDomain)+ }+return c.JSON(http.StatusOK, sb)}@@ -618,6 +628,9 @@ func (s *Server) wakeSandbox(c echo.Context) error {}sb.ConnectURL = s.httpAddr+ if s.sandboxDomain != "" {+ sb.Domain = fmt.Sprintf("%s.%s", id, s.sandboxDomain)+ }return c.JSON(http.StatusOK, sb)}diff --git a/internal/config/config.go b/internal/config/config.goindex 7b450a4a..9e791904 100644--- a/internal/config/config.go+++ b/internal/config/config.go@@ -42,6 +42,9 @@ type Config struct {// Worker capacityMaxCapacity int+ // Sandbox subdomain routing+ SandboxDomain string // Base domain for sandbox subdomains (e.g., "workers.opensandbox.dev", default "localhost")+// S3-compatible object storage for checkpoint hibernationS3Endpoint string // e.g. "https://<account>.r2.cloudflarestorage.com"S3Bucket string // e.g. "opensandbox-checkpoints"@@ -78,6 +81,8 @@ func Load() (*Config, error) {MaxCapacity: envOrDefaultInt("OPENSANDBOX_MAX_CAPACITY", 50),+ SandboxDomain: envOrDefault("OPENSANDBOX_SANDBOX_DOMAIN", "localhost"),+S3Endpoint: os.Getenv("OPENSANDBOX_S3_ENDPOINT"),S3Bucket: os.Getenv("OPENSANDBOX_S3_BUCKET"),S3Region: os.Getenv("OPENSANDBOX_S3_REGION"),diff --git a/internal/podman/client.go b/internal/podman/client.goindex 54d61959..cd93bf4b 100644--- a/internal/podman/client.go+++ b/internal/podman/client.go@@ -6,6 +6,7 @@ import ("encoding/json""fmt""io"+ "net""os""os/exec""path/filepath"@@ -305,6 +306,17 @@ func (c *Client) RestoreContainerFromStream(ctx context.Context, reader io.Readereturn <-errCh}+// FindFreePort asks the OS for a free TCP port by listening on :0.+func FindFreePort() (int, error) {+ l, err := net.Listen("tcp", ":0")+ if err != nil {+ return 0, fmt.Errorf("failed to find free port: %w", err)+ }+ port := l.Addr().(*net.TCPAddr).Port+ l.Close()+ return port, nil+}+// Version returns the podman version string.func (c *Client) Version(ctx context.Context) (string, error) {result, err := c.Run(ctx, "version", "--format", "{{.Client.Version}}")diff --git a/internal/podman/container.go b/internal/podman/container.goindex b96eea99..bfc56533 100644--- a/internal/podman/container.go+++ b/internal/podman/container.go@@ -16,12 +16,14 @@ type ContainerConfig struct {Memory string // e.g. "512m"CPUs string // e.g. "1"PidsLimit int- NetworkMode string // "none", "slirp4netns"+ NetworkMode string // "none", "slirp4netns", "bridge"ReadOnly boolTmpFS map[string]string // mount -> optionsCapDrop []stringSecurityOpts []stringUserNS string+ Publish []string // port mappings, e.g. ["12345:80/tcp"]+ CapAdd []stringEntrypoint []stringCommand []string}@@ -86,6 +88,12 @@ func (c *Client) CreateContainer(ctx context.Context, cfg ContainerConfig) (striif cfg.UserNS != "" {args = append(args, "--userns", cfg.UserNS)}+ for _, pub := range cfg.Publish {+ args = append(args, "--publish", pub)+ }+ for _, cap := range cfg.CapAdd {+ args = append(args, "--cap-add", cap)+ }if len(cfg.Entrypoint) > 0 {args = append(args, "--entrypoint", cfg.Entrypoint[0])diff --git a/internal/proxy/proxy.go b/internal/proxy/proxy.gonew file mode 100644index 00000000..27fef1af--- /dev/null+++ b/internal/proxy/proxy.go@@ -0,0 +1,116 @@+package proxy++import (+ "context"+ "fmt"+ "log"+ "net/http"+ "net/http/httputil"+ "net/url"+ "strings"++ "github.com/labstack/echo/v4"+ "github.com/opensandbox/opensandbox/internal/sandbox"+)++// SandboxProxy reverse-proxies HTTP traffic from subdomain requests+// to the corresponding sandbox container's published port.+type SandboxProxy struct {+ baseDomain string+ manager *sandbox.Manager+ router *sandbox.SandboxRouter+}++// New creates a new SandboxProxy.+// baseDomain is the base domain for sandbox subdomains (e.g., "workers.opensandbox.dev" or "localhost").+func New(baseDomain string, mgr *sandbox.Manager, router *sandbox.SandboxRouter) *SandboxProxy {+ return &SandboxProxy{+ baseDomain: baseDomain,+ manager: mgr,+ router: router,+ }+}++// Middleware returns an Echo middleware that intercepts subdomain requests+// and proxies them to the sandbox container. Non-subdomain requests pass through.+func (p *SandboxProxy) Middleware() echo.MiddlewareFunc {+ return func(next echo.HandlerFunc) echo.HandlerFunc {+ return func(c echo.Context) error {+ host := c.Request().Host++ // Strip port from host for matching+ hostOnly := host+ if idx := strings.LastIndex(host, ":"); idx != -1 {+ hostOnly = host[:idx]+ }++ sandboxID, ok := p.extractSandboxID(hostOnly)+ if !ok {+ return next(c)+ }++ return p.doProxy(c, sandboxID)+ }+ }+}++// extractSandboxID parses "{sandboxID}.{baseDomain}" from the host.+// For baseDomain "localhost", matches "{sandboxID}.localhost".+// For baseDomain "workers.opensandbox.dev", matches "{sandboxID}.workers.opensandbox.dev".+func (p *SandboxProxy) extractSandboxID(host string) (string, bool) {+ suffix := "." + p.baseDomain+ if !strings.HasSuffix(host, suffix) {+ return "", false+ }+ sandboxID := strings.TrimSuffix(host, suffix)+ if sandboxID == "" || strings.Contains(sandboxID, ".") {+ return "", false+ }+ return sandboxID, true+}++// doProxy looks up the sandbox's host port and reverse-proxies the request.+// If the sandbox is hibernated, it auto-wakes via the router first.+func (p *SandboxProxy) doProxy(c echo.Context, sandboxID string) error {+ ctx := c.Request().Context()++ // Route through the sandbox router for auto-wake and rolling timeout reset+ var hostPort int+ var portErr error++ routeOp := func(ctx context.Context) error {+ hostPort, portErr = p.manager.HostPort(ctx, sandboxID)+ return portErr+ }++ if p.router != nil {+ if err := p.router.Route(ctx, sandboxID, "proxy", routeOp); err != nil {+ log.Printf("proxy: route failed for sandbox %s: %v", sandboxID, err)+ return c.JSON(http.StatusBadGateway, map[string]string{+ "error": fmt.Sprintf("sandbox %s not available: %v", sandboxID, err),+ })+ }+ } else {+ if err := routeOp(ctx); err != nil {+ return c.JSON(http.StatusBadGateway, map[string]string{+ "error": fmt.Sprintf("sandbox %s not available: %v", sandboxID, err),+ })+ }+ }++ // Create reverse proxy to localhost:{hostPort}+ target := &url.URL{+ Scheme: "http",+ Host: fmt.Sprintf("127.0.0.1:%d", hostPort),+ }++ proxy := httputil.NewSingleHostReverseProxy(target)+ proxy.ErrorHandler = func(w http.ResponseWriter, r *http.Request, err error) {+ log.Printf("proxy: error proxying to sandbox %s (port %d): %v", sandboxID, hostPort, err)+ w.WriteHeader(http.StatusBadGateway)+ fmt.Fprintf(w, "sandbox %s: upstream unavailable", sandboxID)+ }++ proxy.ServeHTTP(c.Response(), c.Request())+ return nil+}diff --git a/internal/sandbox/manager.go b/internal/sandbox/manager.goindex 1b3c7ace..d18e354c 100644--- a/internal/sandbox/manager.go+++ b/internal/sandbox/manager.go@@ -17,6 +17,7 @@ const (labelTemplate = labelPrefix + ".template"labelCreated = labelPrefix + ".created"labelTimeout = labelPrefix + ".timeout"+ labelHostPort = labelPrefix + ".host_port"containerName = "osb"defaultTimeout = 300 // 5 minutes@@ -76,9 +77,17 @@ func (m *Manager) Create(ctx context.Context, cfg types.SandboxConfig) (*types.Sccfg.Env[k] = v}- if cfg.NetworkEnabled {- ccfg.NetworkMode = "slirp4netns"+ // Always use bridge networking for subdomain proxy access.+ // Containers get port 80 published to a random host port.+ ccfg.NetworkMode = "bridge"+ ccfg.CapAdd = []string{"NET_BIND_SERVICE"} // Allow binding to port 80 inside the container++ hostPort, err := podman.FindFreePort()+ if err != nil {+ return nil, fmt.Errorf("failed to allocate host port for sandbox %s: %w", id, err)}+ ccfg.Publish = []string{fmt.Sprintf("%d:80/tcp", hostPort)}+ ccfg.Labels[labelHostPort] = strconv.Itoa(hostPort)// Make /tmp writable for sandbox useccfg.TmpFS["/tmp"] = "rw,size=100m"@@ -105,6 +114,7 @@ func (m *Manager) Create(ctx context.Context, cfg types.SandboxConfig) (*types.SMetadata: cfg.Metadata,CpuCount: cpuCount,MemoryMB: memoryMB,+ HostPort: hostPort,}return sandbox, nil@@ -157,6 +167,24 @@ func (m *Manager) ContainerName(id string) string {return fmt.Sprintf("%s-%s", containerName, id)}+// HostPort returns the mapped host port for a sandbox's container port 80.+func (m *Manager) HostPort(ctx context.Context, sandboxID string) (int, error) {+ name := m.ContainerName(sandboxID)+ info, err := m.podman.InspectContainer(ctx, name)+ if err != nil {+ return 0, fmt.Errorf("sandbox %s not found: %w", sandboxID, err)+ }+ portStr := info.Config.Labels[labelHostPort]+ if portStr == "" {+ return 0, fmt.Errorf("sandbox %s has no host port mapping", sandboxID)+ }+ port, err := strconv.Atoi(portStr)+ if err != nil {+ return 0, fmt.Errorf("invalid host port label for sandbox %s: %w", sandboxID, err)+ }+ return port, nil+}+// Close is a no-op — timer management now lives in SandboxRouter.func (m *Manager) Close() {}@@ -185,6 +213,7 @@ func containerInfoToSandbox(info *podman.ContainerInfo) *types.Sandbox {startedAt, _ := time.Parse(time.RFC3339, info.Config.Labels[labelCreated])timeoutSec, _ := strconv.Atoi(info.Config.Labels[labelTimeout])endAt := startedAt.Add(time.Duration(timeoutSec) * time.Second)+ hostPort, _ := strconv.Atoi(info.Config.Labels[labelHostPort])return &types.Sandbox{ID: id,@@ -192,6 +221,7 @@ func containerInfoToSandbox(info *podman.ContainerInfo) *types.Sandbox {Status: status,StartedAt: startedAt,EndAt: endAt,+ HostPort: hostPort,}}@@ -206,6 +236,7 @@ func psEntryToSandbox(entry podman.PSEntry) types.Sandbox {startedAt, _ := time.Parse(time.RFC3339, entry.Labels[labelCreated])timeoutSec, _ := strconv.Atoi(entry.Labels[labelTimeout])endAt := startedAt.Add(time.Duration(timeoutSec) * time.Second)+ hostPort, _ := strconv.Atoi(entry.Labels[labelHostPort])return types.Sandbox{ID: id,@@ -213,5 +244,6 @@ func psEntryToSandbox(entry podman.PSEntry) types.Sandbox {Status: status,StartedAt: startedAt,EndAt: endAt,+ HostPort: hostPort,}}diff --git a/internal/worker/handlers.go b/internal/worker/handlers.goindex 24351637..8f742d3b 100644--- a/internal/worker/handlers.go+++ b/internal/worker/handlers.go@@ -10,6 +10,33 @@ import ("github.com/opensandbox/opensandbox/pkg/types")+func (s *HTTPServer) setTimeout(c echo.Context) error {+ if s.router == nil {+ return c.JSON(http.StatusServiceUnavailable, map[string]string{+ "error": "sandbox router not available",+ })+ }++ id := c.Param("id")++ var req types.TimeoutRequest+ if err := c.Bind(&req); err != nil {+ return c.JSON(http.StatusBadRequest, map[string]string{+ "error": "invalid request body: " + err.Error(),+ })+ }++ if req.Timeout <= 0 {+ return c.JSON(http.StatusBadRequest, map[string]string{+ "error": "timeout must be positive",+ })+ }++ s.router.SetTimeout(id, time.Duration(req.Timeout)*time.Second)++ return c.NoContent(http.StatusNoContent)+}+var upgrader = websocket.Upgrader{CheckOrigin: func(r *http.Request) bool {return truediff --git a/internal/worker/http_server.go b/internal/worker/http_server.goindex 1aed4fa1..bec550ef 100644--- a/internal/worker/http_server.go+++ b/internal/worker/http_server.go@@ -6,6 +6,7 @@ import ("github.com/labstack/echo/v4""github.com/labstack/echo/v4/middleware""github.com/opensandbox/opensandbox/internal/auth"+ "github.com/opensandbox/opensandbox/internal/proxy""github.com/opensandbox/opensandbox/internal/sandbox")@@ -17,10 +18,11 @@ type HTTPServer struct {ptyManager *sandbox.PTYManagerjwtIssuer *auth.JWTIssuersandboxDBs *sandbox.SandboxDBManager+ router *sandbox.SandboxRouter}// NewHTTPServer creates a new worker HTTP server for direct SDK access.-func NewHTTPServer(mgr *sandbox.Manager, ptyMgr *sandbox.PTYManager, jwtIssuer *auth.JWTIssuer, sandboxDBs *sandbox.SandboxDBManager) *HTTPServer {+func NewHTTPServer(mgr *sandbox.Manager, ptyMgr *sandbox.PTYManager, jwtIssuer *auth.JWTIssuer, sandboxDBs *sandbox.SandboxDBManager, sbProxy *proxy.SandboxProxy, sbRouter *sandbox.SandboxRouter) *HTTPServer {e := echo.New()e.HideBanner = truee.HidePort = true@@ -31,6 +33,7 @@ func NewHTTPServer(mgr *sandbox.Manager, ptyMgr *sandbox.PTYManager, jwtIssuer *ptyManager: ptyMgr,jwtIssuer: jwtIssuer,sandboxDBs: sandboxDBs,+ router: sbRouter,}// Global middleware@@ -39,6 +42,11 @@ func NewHTTPServer(mgr *sandbox.Manager, ptyMgr *sandbox.PTYManager, jwtIssuer *e.Use(middleware.CORS())e.Use(middleware.RequestID())+ // Subdomain proxy middleware (before auth — subdomain traffic is public)+ if sbProxy != nil {+ e.Use(sbProxy.Middleware())+ }+// Health check (no auth)e.GET("/health", func(c echo.Context) error {return c.JSON(http.StatusOK, map[string]string{"status": "ok", "role": "worker"})@@ -54,6 +62,9 @@ func NewHTTPServer(mgr *sandbox.Manager, ptyMgr *sandbox.PTYManager, jwtIssuer *// Commandsapi.POST("/sandboxes/:id/commands", s.runCommand)+ // Timeout+ api.POST("/sandboxes/:id/timeout", s.setTimeout)+// Filesystemapi.GET("/sandboxes/:id/files", s.readFile)api.PUT("/sandboxes/:id/files", s.writeFile)diff --git a/pkg/types/sandbox.go b/pkg/types/sandbox.goindex 17e1ded7..774d63a1 100644--- a/pkg/types/sandbox.go+++ b/pkg/types/sandbox.go@@ -27,6 +27,8 @@ type Sandbox struct {MachineID string `json:"machineID,omitempty"`ConnectURL string `json:"connectURL,omitempty"` // Direct worker URL for SDK accessToken string `json:"token,omitempty"` // Sandbox-scoped JWT for worker auth+ Domain string `json:"domain,omitempty"` // Subdomain for web access (e.g., "abc123.workers.opensandbox.dev")+ HostPort int `json:"hostPort,omitempty"` // Mapped host port for container port 80}// SandboxConfig is the request body for creating a sandbox.diff --git a/scripts/test-hibernation.sh b/scripts/test-hibernation.shindex fddf0664..6c2368c9 100755--- a/scripts/test-hibernation.sh+++ b/scripts/test-hibernation.sh@@ -1,7 +1,7 @@#!/usr/bin/env bashset -euo pipefail-# Test hibernation: file persistence, process preservation, auto-wake, and timing+# Test hibernation: file persistence, process preservation, auto-wake, subdomain proxy, and timing# Usage: ./scripts/test-hibernation.sh [api_url] [api_key]API_URL="${1:-http://localhost:8080}"@@ -49,7 +49,7 @@ bold "========================================="echo ""# --- Cleanup stale sessions ----bold "[0/9] Cleaning up stale sandbox sessions..."+bold "[0/11] Cleaning up stale sandbox sessions..."docker compose -f deploy/docker-compose.yml exec -T postgres \psql -U opensandbox -d opensandbox -c \"UPDATE sandbox_sessions SET status = 'stopped', stopped_at = now() WHERE status IN ('running', 'hibernated');" \@@ -57,18 +57,23 @@ docker compose -f deploy/docker-compose.yml exec -T postgres \echo ""# --- Create sandbox ----bold "[1/9] Creating sandbox..."+bold "[1/11] Creating sandbox..."CREATE_RESP=$(api POST "/api/sandboxes" '{"template": "ubuntu:22.04", "timeout": 600}')SANDBOX_ID=$(echo "$CREATE_RESP" | python3 -c "import sys,json; print(json.load(sys.stdin)['sandboxID'])" 2>/dev/null)if [[ -z "$SANDBOX_ID" ]]; thenred "Failed to create sandbox: $CREATE_RESP"exit 1fi+SANDBOX_DOMAIN=$(echo "$CREATE_RESP" | python3 -c "import sys,json; print(json.load(sys.stdin).get('domain',''))" 2>/dev/null || echo "")+SANDBOX_HOST_PORT=$(echo "$CREATE_RESP" | python3 -c "import sys,json; print(json.load(sys.stdin).get('hostPort',0))" 2>/dev/null || echo "0")green " Created sandbox: $SANDBOX_ID"+if [[ -n "$SANDBOX_DOMAIN" ]]; then+ green " Domain: $SANDBOX_DOMAIN (host port: $SANDBOX_HOST_PORT)"+fiecho ""# --- Write file state ----bold "[2/9] Writing file state..."+bold "[2/11] Writing file state..."run_cmd "$SANDBOX_ID" "echo hibernation-proof-42 > /tmp/proof.txt" > /dev/nullrun_cmd "$SANDBOX_ID" "echo hello-world > /root/hello.txt" > /dev/nullrun_cmd "$SANDBOX_ID" "mkdir -p /var/data && echo persistent-data > /var/data/test.txt" > /dev/null@@ -83,13 +88,13 @@ check "/var/data/test.txt before hibernate" "persistent-data" "$DATA"echo ""# --- Check PID 1 process ----bold "[3/9] Verifying PID 1 (entrypoint) before hibernate..."+bold "[3/11] Verifying PID 1 (entrypoint) before hibernate..."PID1_CMD_BEFORE=$(run_cmd "$SANDBOX_ID" "cat /proc/1/cmdline | tr '\\0' ' '" | python3 -c "import sys,json; print(json.load(sys.stdin).get('stdout','').strip())" 2>/dev/null || echo "unknown")green " PID 1 command: $PID1_CMD_BEFORE"echo ""# --- Hibernate ----bold "[4/9] Hibernating sandbox..."+bold "[4/11] Hibernating sandbox..."HIB_START=$(python3 -c 'import time; print(time.time())')HIB_RESP=$(api POST "/api/sandboxes/${SANDBOX_ID}/hibernate")HIB_END=$(python3 -c 'import time; print(time.time())')@@ -109,7 +114,7 @@ check "Container removed after hibernate" "" "$CONTAINER_CHECK"echo ""# --- Explicit Wake ----bold "[5/9] Waking sandbox (explicit)..."+bold "[5/11] Waking sandbox (explicit)..."WAKE_START=$(python3 -c 'import time; print(time.time())')WAKE_RESP=$(api POST "/api/sandboxes/${SANDBOX_ID}/wake" '{"timeout": 600}')WAKE_END=$(python3 -c 'import time; print(time.time())')@@ -121,7 +126,7 @@ check "Wake status" "running" "$WAKE_STATUS"echo ""# --- Verify file state ----bold "[6/9] Verifying file state after wake..."+bold "[6/11] Verifying file state after wake..."PROOF_AFTER=$(run_cmd "$SANDBOX_ID" "cat /tmp/proof.txt" | python3 -c "import sys,json; print(json.load(sys.stdin).get('stdout','').strip())" 2>/dev/null)HELLO_AFTER=$(run_cmd "$SANDBOX_ID" "cat /root/hello.txt" | python3 -c "import sys,json; print(json.load(sys.stdin).get('stdout','').strip())" 2>/dev/null)DATA_AFTER=$(run_cmd "$SANDBOX_ID" "cat /var/data/test.txt" | python3 -c "import sys,json; print(json.load(sys.stdin).get('stdout','').strip())" 2>/dev/null)@@ -131,7 +136,7 @@ check "/var/data/test.txt after wake" "persistent-data" "$DATA_AFTER"echo ""# --- Verify process state ----bold "[7/9] Verifying process state after wake..."+bold "[7/11] Verifying process state after wake..."PID1_CMD_AFTER=$(run_cmd "$SANDBOX_ID" "cat /proc/1/cmdline | tr '\\0' ' '" | python3 -c "import sys,json; print(json.load(sys.stdin).get('stdout','').strip())" 2>/dev/null || echo "unknown")check "PID 1 command preserved" "$PID1_CMD_BEFORE" "$PID1_CMD_AFTER"PID1_EXISTS=$(run_cmd "$SANDBOX_ID" "test -d /proc/1 && echo yes || echo no" | python3 -c "import sys,json; print(json.load(sys.stdin).get('stdout','').strip())" 2>/dev/null || echo "no")@@ -143,7 +148,7 @@ check "Container is functional after wake" "alive" "$ECHO_TEST"echo ""# --- Test auto-wake (hibernate then send command without explicit wake) ----bold "[8/9] Testing auto-wake (command to hibernated sandbox)..."+bold "[8/11] Testing auto-wake (command to hibernated sandbox)..."# Write a marker file before second hibernaterun_cmd "$SANDBOX_ID" "echo auto-wake-marker > /tmp/autowake.txt" > /dev/null@@ -176,7 +181,7 @@ check "Auto-wake: command succeeded (exit 0)" "0" "$AUTOWAKE_EXIT"echo ""# --- Test rolling timeout reset ----bold "[9/9] Verifying rolling timeout resets on activity..."+bold "[9/11] Verifying rolling timeout resets on activity..."# The sandbox should still be running from the auto-wake. Send a few commands# to verify the router resets the timeout each time.for i in 1 2 3; do@@ -185,6 +190,64 @@ for i in 1 2 3; dodoneecho ""+# --- Test subdomain proxy ---+bold "[10/11] Testing subdomain proxy..."++# Extract the port from API_URL (default 8080)+API_PORT=$(echo "$API_URL" | python3 -c "import sys; from urllib.parse import urlparse; print(urlparse(sys.stdin.read().strip()).port or 8080)" 2>/dev/null || echo "8080")++# Start a simple HTTP server on port 80 inside the sandbox using perl (available in ubuntu:22.04)+run_cmd "$SANDBOX_ID" "echo 'hello from sandbox' > /tmp/index.html" > /dev/null+# Write a tiny perl HTTP server script using base64 to avoid escaping issues+PERL_HTTPD=$(printf '%s' 'use IO::Socket::INET;my $s=IO::Socket::INET->new(LocalPort=>80,Listen=>5,ReuseAddr=>1) or die;while(my $c=$s->accept){my $r=<$c>;open my $f,"<","/tmp/index.html";my $b=do{local $/;<$f>};print $c "HTTP/1.0 200 OK\r\nContent-Length:".length($b)."\r\n\r\n".$b;close $c}' | base64)+run_cmd "$SANDBOX_ID" "echo ${PERL_HTTPD} | base64 -d > /tmp/httpd.pl" > /dev/null+run_cmd "$SANDBOX_ID" "nohup perl /tmp/httpd.pl > /dev/null 2>&1 &" > /dev/null+sleep 1++if [[ -n "$SANDBOX_DOMAIN" ]]; then+ # Curl through subdomain proxy (resolve sandbox_id.localhost to 127.0.0.1)+ PROXY_RESP=$(curl -s --max-time 5 \+ --resolve "${SANDBOX_DOMAIN}:${API_PORT}:127.0.0.1" \+ "http://${SANDBOX_DOMAIN}:${API_PORT}/index.html" 2>/dev/null || echo "")+ check "Subdomain proxy: HTTP response" "hello from sandbox" "$PROXY_RESP"+else+ yellow " SKIP: No domain assigned (OPENSANDBOX_SANDBOX_DOMAIN not set)"+fi+echo ""++# --- Test subdomain proxy after hibernate/wake ---+bold "[11/11] Testing subdomain proxy survives hibernate/wake..."++if [[ -n "$SANDBOX_DOMAIN" ]]; then+ # Hibernate+ HIB3_RESP=$(api POST "/api/sandboxes/${SANDBOX_ID}/hibernate")+ HIB3_KEY=$(echo "$HIB3_RESP" | python3 -c "import sys,json; print(json.load(sys.stdin).get('checkpointKey',''))" 2>/dev/null)+ if [[ -n "$HIB3_KEY" ]]; then+ green " Hibernated for proxy test"+ else+ red " Hibernate failed: $HIB3_RESP"+ fi++ # Wake+ WAKE3_RESP=$(api POST "/api/sandboxes/${SANDBOX_ID}/wake" '{"timeout": 600}')+ WAKE3_STATUS=$(echo "$WAKE3_RESP" | python3 -c "import sys,json; print(json.load(sys.stdin).get('status',''))" 2>/dev/null)+ check "Wake for proxy test" "running" "$WAKE3_STATUS"++ # Restart the web server (process state is restored but the HTTP server may not survive checkpoint)+ # /tmp/httpd.pl was written in step 10 and survives hibernate (tmpfs is checkpointed)+ run_cmd "$SANDBOX_ID" "nohup perl /tmp/httpd.pl > /dev/null 2>&1 &" > /dev/null+ sleep 1++ # Curl through subdomain proxy again+ PROXY_RESP2=$(curl -s --max-time 5 \+ --resolve "${SANDBOX_DOMAIN}:${API_PORT}:127.0.0.1" \+ "http://${SANDBOX_DOMAIN}:${API_PORT}/index.html" 2>/dev/null || echo "")+ check "Subdomain proxy after wake: HTTP response" "hello from sandbox" "$PROXY_RESP2"+else+ yellow " SKIP: No domain assigned"+fi+echo ""+# --- Cleanup ---bold "Cleaning up..."api DELETE "/api/sandboxes/${SANDBOX_ID}" > /dev/null 2>&1 || truediff --git a/sdks/python/opensandbox/sandbox.py b/sdks/python/opensandbox/sandbox.pyindex 34bcb9b8..429e7d49 100644--- a/sdks/python/opensandbox/sandbox.py+++ b/sdks/python/opensandbox/sandbox.py@@ -20,6 +20,7 @@ class Sandbox:sandbox_id: strstatus: str = "running"template: str = ""+ domain: str = ""_api_url: str = ""_api_key: str = ""_connect_url: str = ""@@ -80,6 +81,7 @@ class Sandbox:sandbox_id=data["sandboxID"],status=data.get("status", "running"),template=template,+ domain=data.get("domain", ""),_api_url=url,_api_key=key,_connect_url=connect_url,@@ -127,6 +129,7 @@ class Sandbox:sandbox_id=sandbox_id,status=data.get("status", "running"),template=data.get("templateID", ""),+ domain=data.get("domain", ""),_api_url=url,_api_key=key,_connect_url=connect_url,diff --git a/sdks/typescript/examples/lifecycle-test.ts b/sdks/typescript/examples/lifecycle-test.tsnew file mode 100644index 00000000..3ac795aa--- /dev/null+++ b/sdks/typescript/examples/lifecycle-test.ts@@ -0,0 +1,143 @@+/**+ * OpenSandbox SDK Lifecycle Test+ *+ * Tests: create → commands → files → domain → kill+ *+ * Usage:+ * npx tsx examples/lifecycle-test.ts+ *+ * Environment:+ * OPENSANDBOX_API_URL (default: http://localhost:8080)+ * OPENSANDBOX_API_KEY (default: test-key)+ */++import { Sandbox } from "../src/index";++const API_URL = process.env.OPENSANDBOX_API_URL ?? "http://localhost:8080";+const API_KEY = process.env.OPENSANDBOX_API_KEY ?? "test-key";++function green(msg: string) { console.log(`\x1b[32m✓ ${msg}\x1b[0m`); }+function red(msg: string) { console.log(`\x1b[31m✗ ${msg}\x1b[0m`); }+function bold(msg: string) { console.log(`\x1b[1m${msg}\x1b[0m`); }+function dim(msg: string) { console.log(`\x1b[2m ${msg}\x1b[0m`); }++let passed = 0;+let failed = 0;++function check(desc: string, expected: string, actual: string) {+ if (actual.includes(expected)) {+ green(desc);+ passed++;+ } else {+ red(`${desc} (expected '${expected}', got '${actual}')`);+ failed++;+ }+}++async function main() {+ bold("\n========================================");+ bold(" OpenSandbox TypeScript SDK Lifecycle");+ bold("========================================\n");+ dim(`API: ${API_URL}`);+ console.log();++ // --- Create ---+ bold("[1/7] Creating sandbox...");+ const sandbox = await Sandbox.create({+ template: "base",+ timeout: 300,+ apiKey: API_KEY,+ apiUrl: API_URL,+ });+ green(`Created: ${sandbox.sandboxId}`);+ check("Status is running", "running", sandbox.status);+ if (sandbox.domain) {+ dim(`Domain: ${sandbox.domain}`);+ }+ console.log();++ // --- Run commands ---+ bold("[2/7] Running commands...");+ const echo = await sandbox.commands.run("echo hello-world");+ check("Echo command", "hello-world", echo.stdout.trim());+ check("Exit code 0", "0", String(echo.exitCode));++ const uname = await sandbox.commands.run("uname -s");+ check("Uname returns Linux", "Linux", uname.stdout.trim());++ const multi = await sandbox.commands.run("echo line1 && echo line2 && echo line3");+ check("Multi-command", "line1", multi.stdout);+ check("Multi-command has line3", "line3", multi.stdout);+ console.log();++ // --- File operations ---+ bold("[3/7] File operations...");+ await sandbox.files.write("/tmp/test.txt", "hello from SDK");+ const content = await sandbox.files.read("/tmp/test.txt");+ check("Write and read file", "hello from SDK", content);++ await sandbox.files.makeDir("/tmp/mydir");+ await sandbox.files.write("/tmp/mydir/nested.txt", "nested content");+ const nested = await sandbox.files.read("/tmp/mydir/nested.txt");+ check("Nested file read", "nested content", nested);++ const entries = await sandbox.files.list("/tmp");+ check("List /tmp has test.txt", "test.txt", entries.map(e => e.name).join(","));++ const exists = await sandbox.files.exists("/tmp/test.txt");+ check("File exists", "true", String(exists));++ const notExists = await sandbox.files.exists("/tmp/nope.txt");+ check("File not exists", "false", String(notExists));+ console.log();++ // --- Environment variables ---+ bold("[4/7] Environment in commands...");+ const envResult = await sandbox.commands.run("echo $MY_VAR", { env: { MY_VAR: "secret-value" } });+ check("Env var passed to command", "secret-value", envResult.stdout.trim());+ console.log();++ // --- Working directory ---+ bold("[5/7] Working directory...");+ await sandbox.files.makeDir("/tmp/workdir");+ await sandbox.files.write("/tmp/workdir/data.txt", "workdir-data");+ const cwdResult = await sandbox.commands.run("cat data.txt", { cwd: "/tmp/workdir" });+ check("Working directory respected", "workdir-data", cwdResult.stdout.trim());+ console.log();++ // --- Domain / subdomain ---+ bold("[6/7] Subdomain domain...");+ if (sandbox.domain) {+ green(`Domain assigned: ${sandbox.domain}`);+ } else {+ dim("No domain assigned (OPENSANDBOX_SANDBOX_DOMAIN not configured on server)");+ }+ console.log();++ // --- isRunning + kill ---+ bold("[7/7] Lifecycle: isRunning → kill → isRunning...");+ const running1 = await sandbox.isRunning();+ check("isRunning before kill", "true", String(running1));++ await sandbox.kill();+ green("Sandbox killed");++ // Brief pause for state propagation+ await new Promise(r => globalThis.setTimeout(r, 500));++ const running2 = await sandbox.isRunning();+ check("isRunning after kill", "false", String(running2));+ console.log();++ // --- Summary ---+ bold("========================================");+ bold(` Results: ${passed} passed, ${failed} failed`);+ bold("========================================\n");++ if (failed > 0) process.exit(1);+}++main().catch((err) => {+ console.error("Fatal error:", err);+ process.exit(1);+});diff --git a/sdks/typescript/package-lock.json b/sdks/typescript/package-lock.jsonnew file mode 100644index 00000000..05f1e0ea--- /dev/null+++ b/sdks/typescript/package-lock.json@@ -0,0 +1,1827 @@+{+ "name": "opensandbox",+ "version": "0.1.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "opensandbox",+ "version": "0.1.0",+ "license": "MIT",+ "devDependencies": {+ "typescript": "^5.4.0",+ "vitest": "^1.6.0"+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",+ "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",+ "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",+ "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",+ "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",+ "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",+ "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",+ "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",+ "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",+ "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",+ "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",+ "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",+ "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",+ "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",+ "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",+ "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",+ "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",+ "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",+ "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",+ "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",+ "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",+ "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",+ "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",+ "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@jest/schemas": {+ "version": "29.6.3",+ "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz",+ "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@sinclair/typebox": "^0.27.8"+ },+ "engines": {+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.57.1.tgz",+ "integrity": "sha512-A6ehUVSiSaaliTxai040ZpZ2zTevHYbvu/lDoeAteHI8QnaosIzm4qwtezfRg1jOYaUmnzLX1AOD6Z+UJjtifg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.57.1.tgz",+ "integrity": "sha512-dQaAddCY9YgkFHZcFNS/606Exo8vcLHwArFZ7vxXq4rigo2bb494/xKMMwRRQW6ug7Js6yXmBZhSBRuBvCCQ3w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.57.1.tgz",+ "integrity": "sha512-crNPrwJOrRxagUYeMn/DZwqN88SDmwaJ8Cvi/TN1HnWBU7GwknckyosC2gd0IqYRsHDEnXf328o9/HC6OkPgOg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.57.1.tgz",+ "integrity": "sha512-Ji8g8ChVbKrhFtig5QBV7iMaJrGtpHelkB3lsaKzadFBe58gmjfGXAOfI5FV0lYMH8wiqsxKQ1C9B0YTRXVy4w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.57.1.tgz",+ "integrity": "sha512-R+/WwhsjmwodAcz65guCGFRkMb4gKWTcIeLy60JJQbXrJ97BOXHxnkPFrP+YwFlaS0m+uWJTstrUA9o+UchFug==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.57.1.tgz",+ "integrity": "sha512-IEQTCHeiTOnAUC3IDQdzRAGj3jOAYNr9kBguI7MQAAZK3caezRrg0GxAb6Hchg4lxdZEI5Oq3iov/w/hnFWY9Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.57.1.tgz",+ "integrity": "sha512-F8sWbhZ7tyuEfsmOxwc2giKDQzN3+kuBLPwwZGyVkLlKGdV1nvnNwYD0fKQ8+XS6hp9nY7B+ZeK01EBUE7aHaw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.57.1.tgz",+ "integrity": "sha512-rGfNUfn0GIeXtBP1wL5MnzSj98+PZe/AXaGBCRmT0ts80lU5CATYGxXukeTX39XBKsxzFpEeK+Mrp9faXOlmrw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.57.1.tgz",+ "integrity": "sha512-MMtej3YHWeg/0klK2Qodf3yrNzz6CGjo2UntLvk2RSPlhzgLvYEB3frRvbEF2wRKh1Z2fDIg9KRPe1fawv7C+g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.57.1.tgz",+ "integrity": "sha512-1a/qhaaOXhqXGpMFMET9VqwZakkljWHLmZOX48R0I/YLbhdxr1m4gtG1Hq7++VhVUmf+L3sTAf9op4JlhQ5u1Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-gnu": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.57.1.tgz",+ "integrity": "sha512-QWO6RQTZ/cqYtJMtxhkRkidoNGXc7ERPbZN7dVW5SdURuLeVU7lwKMpo18XdcmpWYd0qsP1bwKPf7DNSUinhvA==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-musl": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.57.1.tgz",+ "integrity": "sha512-xpObYIf+8gprgWaPP32xiN5RVTi/s5FCR+XMXSKmhfoJjrpRAjCuuqQXyxUa/eJTdAE6eJ+KDKaoEqjZQxh3Gw==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.57.1.tgz",+ "integrity": "sha512-4BrCgrpZo4hvzMDKRqEaW1zeecScDCR+2nZ86ATLhAoJ5FQ+lbHVD3ttKe74/c7tNT9c6F2viwB3ufwp01Oh2w==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-musl": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.57.1.tgz",+ "integrity": "sha512-NOlUuzesGauESAyEYFSe3QTUguL+lvrN1HtwEEsU2rOwdUDeTMJdO5dUYl/2hKf9jWydJrO9OL/XSSf65R5+Xw==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.57.1.tgz",+ "integrity": "sha512-ptA88htVp0AwUUqhVghwDIKlvJMD/fmL/wrQj99PRHFRAG6Z5nbWoWG4o81Nt9FT+IuqUQi+L31ZKAFeJ5Is+A==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.57.1.tgz",+ "integrity": "sha512-S51t7aMMTNdmAMPpBg7OOsTdn4tySRQvklmL3RpDRyknk87+Sp3xaumlatU+ppQ+5raY7sSTcC2beGgvhENfuw==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.57.1.tgz",+ "integrity": "sha512-Bl00OFnVFkL82FHbEqy3k5CUCKH6OEJL54KCyx2oqsmZnFTR8IoNqBF+mjQVcRCT5sB6yOvK8A37LNm/kPJiZg==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.57.1.tgz",+ "integrity": "sha512-ABca4ceT4N+Tv/GtotnWAeXZUZuM/9AQyCyKYyKnpk4yoA7QIAuBt6Hkgpw8kActYlew2mvckXkvx0FfoInnLg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.57.1.tgz",+ "integrity": "sha512-HFps0JeGtuOR2convgRRkHCekD7j+gdAuXM+/i6kGzQtFhlCtQkpwtNzkNj6QhCDp7DRJ7+qC/1Vg2jt5iSOFw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-openbsd-x64": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.57.1.tgz",+ "integrity": "sha512-H+hXEv9gdVQuDTgnqD+SQffoWoc0Of59AStSzTEj/feWTBAnSfSD3+Dql1ZruJQxmykT/JVY0dE8Ka7z0DH1hw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ]+ },+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.57.1.tgz",+ "integrity": "sha512-4wYoDpNg6o/oPximyc/NG+mYUejZrCU2q+2w6YZqrAs2UcNUChIZXjtafAiiZSUc7On8v5NyNj34Kzj/Ltk6dQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.57.1.tgz",+ "integrity": "sha512-O54mtsV/6LW3P8qdTcamQmuC990HDfR71lo44oZMZlXU4tzLrbvTii87Ni9opq60ds0YzuAlEr/GNwuNluZyMQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.57.1.tgz",+ "integrity": "sha512-P3dLS+IerxCT/7D2q2FYcRdWRl22dNbrbBEtxdWhXrfIMPP9lQhb5h4Du04mdl5Woq05jVCDPCMF7Ub0NAjIew==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-gnu": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.57.1.tgz",+ "integrity": "sha512-VMBH2eOOaKGtIJYleXsi2B8CPVADrh+TyNxJ4mWPnKfLB/DBUmzW+5m1xUrcwWoMfSLagIRpjUFeW5CO5hyciQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.57.1.tgz",+ "integrity": "sha512-mxRFDdHIWRxg3UfIIAwCm6NzvxG0jDX/wBN6KsQFTvKFqqg9vTrWUE68qEjHt19A5wwx5X5aUi2zuZT7YR0jrA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@sinclair/typebox": {+ "version": "0.27.10",+ "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.10.tgz",+ "integrity": "sha512-MTBk/3jGLNB2tVxv6uLlFh1iu64iYOQ2PbdOSK3NW8JZsmlaOh2q6sdtKowBhfw8QFLmYNzTW4/oK4uATIi6ZA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/estree": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@vitest/expect": {+ "version": "1.6.1",+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-1.6.1.tgz",+ "integrity": "sha512-jXL+9+ZNIJKruofqXuuTClf44eSpcHlgj3CiuNihUF3Ioujtmc0zIa3UJOW5RjDK1YLBJZnWBlPuqhYycLioog==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/spy": "1.6.1",+ "@vitest/utils": "1.6.1",+ "chai": "^4.3.10"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/runner": {+ "version": "1.6.1",+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-1.6.1.tgz",+ "integrity": "sha512-3nSnYXkVkf3mXFfE7vVyPmi3Sazhb/2cfZGGs0JRzFsPFvAMBEcrweV1V1GsrstdXeKCTXlJbvnQwGWgEIHmOA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/utils": "1.6.1",+ "p-limit": "^5.0.0",+ "pathe": "^1.1.1"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/snapshot": {+ "version": "1.6.1",+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-1.6.1.tgz",+ "integrity": "sha512-WvidQuWAzU2p95u8GAKlRMqMyN1yOJkGHnx3M1PL9Raf7AQ1kwLKg04ADlCa3+OXUZE7BceOhVZiuWAbzCKcUQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "magic-string": "^0.30.5",+ "pathe": "^1.1.1",+ "pretty-format": "^29.7.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/spy": {+ "version": "1.6.1",+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-1.6.1.tgz",+ "integrity": "sha512-MGcMmpGkZebsMZhbQKkAf9CX5zGvjkBTqf8Zx3ApYWXr3wG+QvEu2eXWfnIIWYSJExIp4V9FCKDEeygzkYrXMw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyspy": "^2.2.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/utils": {+ "version": "1.6.1",+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-1.6.1.tgz",+ "integrity": "sha512-jOrrUvXM4Av9ZWiG1EajNto0u96kWAhJ1LmPmJhXXQx/32MecEKd10pOLYgS2BQx1TgkGhloPU1ArDW2vvaY6g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "diff-sequences": "^29.6.3",+ "estree-walker": "^3.0.3",+ "loupe": "^2.3.7",+ "pretty-format": "^29.7.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/acorn": {+ "version": "8.15.0",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",+ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/acorn-walk": {+ "version": "8.3.4",+ "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz",+ "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "acorn": "^8.11.0"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/ansi-styles": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",+ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/assertion-error": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz",+ "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "*"+ }+ },+ "node_modules/cac": {+ "version": "6.7.14",+ "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",+ "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/chai": {+ "version": "4.5.0",+ "resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz",+ "integrity": "sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "assertion-error": "^1.1.0",+ "check-error": "^1.0.3",+ "deep-eql": "^4.1.3",+ "get-func-name": "^2.0.2",+ "loupe": "^2.3.6",+ "pathval": "^1.1.1",+ "type-detect": "^4.1.0"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/check-error": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz",+ "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "get-func-name": "^2.0.2"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/confbox": {+ "version": "0.1.8",+ "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz",+ "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cross-spawn": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/deep-eql": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.4.tgz",+ "integrity": "sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "type-detect": "^4.0.0"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/diff-sequences": {+ "version": "29.6.3",+ "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz",+ "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"+ }+ },+ "node_modules/esbuild": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",+ "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=12"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.21.5",+ "@esbuild/android-arm": "0.21.5",+ "@esbuild/android-arm64": "0.21.5",+ "@esbuild/android-x64": "0.21.5",+ "@esbuild/darwin-arm64": "0.21.5",+ "@esbuild/darwin-x64": "0.21.5",+ "@esbuild/freebsd-arm64": "0.21.5",+ "@esbuild/freebsd-x64": "0.21.5",+ "@esbuild/linux-arm": "0.21.5",+ "@esbuild/linux-arm64": "0.21.5",+ "@esbuild/linux-ia32": "0.21.5",+ "@esbuild/linux-loong64": "0.21.5",+ "@esbuild/linux-mips64el": "0.21.5",+ "@esbuild/linux-ppc64": "0.21.5",+ "@esbuild/linux-riscv64": "0.21.5",+ "@esbuild/linux-s390x": "0.21.5",+ "@esbuild/linux-x64": "0.21.5",+ "@esbuild/netbsd-x64": "0.21.5",+ "@esbuild/openbsd-x64": "0.21.5",+ "@esbuild/sunos-x64": "0.21.5",+ "@esbuild/win32-arm64": "0.21.5",+ "@esbuild/win32-ia32": "0.21.5",+ "@esbuild/win32-x64": "0.21.5"+ }+ },+ "node_modules/estree-walker": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0"+ }+ },+ "node_modules/execa": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz",+ "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cross-spawn": "^7.0.3",+ "get-stream": "^8.0.1",+ "human-signals": "^5.0.0",+ "is-stream": "^3.0.0",+ "merge-stream": "^2.0.0",+ "npm-run-path": "^5.1.0",+ "onetime": "^6.0.0",+ "signal-exit": "^4.1.0",+ "strip-final-newline": "^3.0.0"+ },+ "engines": {+ "node": ">=16.17"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/execa?sponsor=1"+ }+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/get-func-name": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz",+ "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "*"+ }+ },+ "node_modules/get-stream": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz",+ "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/human-signals": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz",+ "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=16.17.0"+ }+ },+ "node_modules/is-stream": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz",+ "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/js-tokens": {+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz",+ "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/local-pkg": {+ "version": "0.5.1",+ "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.5.1.tgz",+ "integrity": "sha512-9rrA30MRRP3gBD3HTGnC6cDFpaE1kVDWxWgqWJUN0RvDNAo+Nz/9GxB+nHOH0ifbVFy0hSA1V6vFDvnx54lTEQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mlly": "^1.7.3",+ "pkg-types": "^1.2.1"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/antfu"+ }+ },+ "node_modules/loupe": {+ "version": "2.3.7",+ "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz",+ "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "get-func-name": "^2.0.1"+ }+ },+ "node_modules/magic-string": {+ "version": "0.30.21",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.5"+ }+ },+ "node_modules/merge-stream": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",+ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/mimic-fn": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz",+ "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/mlly": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.0.tgz",+ "integrity": "sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "acorn": "^8.15.0",+ "pathe": "^2.0.3",+ "pkg-types": "^1.3.1",+ "ufo": "^1.6.1"+ }+ },+ "node_modules/mlly/node_modules/pathe": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/nanoid": {+ "version": "3.3.11",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/npm-run-path": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz",+ "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-key": "^4.0.0"+ },+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/npm-run-path/node_modules/path-key": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz",+ "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/onetime": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz",+ "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mimic-fn": "^4.0.0"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/p-limit": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-5.0.0.tgz",+ "integrity": "sha512-/Eaoq+QyLSiXQ4lyYV23f14mZRQcXnxfHrN0vCai+ak9G0pp9iEQukIIZq5NccEvwRB8PUnZT0KsOoDCINS1qQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "yocto-queue": "^1.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/path-key": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/pathe": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",+ "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/pathval": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz",+ "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "*"+ }+ },+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/pkg-types": {+ "version": "1.3.1",+ "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz",+ "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "confbox": "^0.1.8",+ "mlly": "^1.7.4",+ "pathe": "^2.0.1"+ }+ },+ "node_modules/pkg-types/node_modules/pathe": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/postcss": {+ "version": "8.5.6",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",+ "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "nanoid": "^3.3.11",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/pretty-format": {+ "version": "29.7.0",+ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz",+ "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jest/schemas": "^29.6.3",+ "ansi-styles": "^5.0.0",+ "react-is": "^18.0.0"+ },+ "engines": {+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"+ }+ },+ "node_modules/react-is": {+ "version": "18.3.1",+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/rollup": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.57.1.tgz",+ "integrity": "sha512-oQL6lgK3e2QZeQ7gcgIkS2YZPg5slw37hYufJ3edKlfQSGGm8ICoxswK15ntSzF/a8+h7ekRy7k7oWc3BQ7y8A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "1.0.8"+ },+ "bin": {+ "rollup": "dist/bin/rollup"+ },+ "engines": {+ "node": ">=18.0.0",+ "npm": ">=8.0.0"+ },+ "optionalDependencies": {+ "@rollup/rollup-android-arm-eabi": "4.57.1",+ "@rollup/rollup-android-arm64": "4.57.1",+ "@rollup/rollup-darwin-arm64": "4.57.1",+ "@rollup/rollup-darwin-x64": "4.57.1",+ "@rollup/rollup-freebsd-arm64": "4.57.1",+ "@rollup/rollup-freebsd-x64": "4.57.1",+ "@rollup/rollup-linux-arm-gnueabihf": "4.57.1",+ "@rollup/rollup-linux-arm-musleabihf": "4.57.1",+ "@rollup/rollup-linux-arm64-gnu": "4.57.1",+ "@rollup/rollup-linux-arm64-musl": "4.57.1",+ "@rollup/rollup-linux-loong64-gnu": "4.57.1",+ "@rollup/rollup-linux-loong64-musl": "4.57.1",+ "@rollup/rollup-linux-ppc64-gnu": "4.57.1",+ "@rollup/rollup-linux-ppc64-musl": "4.57.1",+ "@rollup/rollup-linux-riscv64-gnu": "4.57.1",+ "@rollup/rollup-linux-riscv64-musl": "4.57.1",+ "@rollup/rollup-linux-s390x-gnu": "4.57.1",+ "@rollup/rollup-linux-x64-gnu": "4.57.1",+ "@rollup/rollup-linux-x64-musl": "4.57.1",+ "@rollup/rollup-openbsd-x64": "4.57.1",+ "@rollup/rollup-openharmony-arm64": "4.57.1",+ "@rollup/rollup-win32-arm64-msvc": "4.57.1",+ "@rollup/rollup-win32-ia32-msvc": "4.57.1",+ "@rollup/rollup-win32-x64-gnu": "4.57.1",+ "@rollup/rollup-win32-x64-msvc": "4.57.1",+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/shebang-command": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "shebang-regex": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/shebang-regex": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/siginfo": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",+ "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/signal-exit": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/source-map-js": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/stackback": {+ "version": "0.0.2",+ "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",+ "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/std-env": {+ "version": "3.10.0",+ "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz",+ "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/strip-final-newline": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz",+ "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/strip-literal": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-2.1.1.tgz",+ "integrity": "sha512-631UJ6O00eNGfMiWG78ck80dfBab8X6IVFB51jZK5Icd7XAs60Z5y7QdSd/wGIklnWvRbUNloVzhOKKmutxQ6Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "js-tokens": "^9.0.1"+ },+ "funding": {+ "url": "https://github.com/sponsors/antfu"+ }+ },+ "node_modules/tinybench": {+ "version": "2.9.0",+ "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",+ "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tinypool": {+ "version": "0.8.4",+ "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-0.8.4.tgz",+ "integrity": "sha512-i11VH5gS6IFeLY3gMBQ00/MmLncVP7JLXOw1vlgkytLmJK7QnEr7NXf0LBdxfmNPAeyetukOk0bOYrJrFGjYJQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/tinyspy": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-2.2.1.tgz",+ "integrity": "sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/type-detect": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz",+ "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/typescript": {+ "version": "5.9.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/ufo": {+ "version": "1.6.3",+ "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.3.tgz",+ "integrity": "sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/vite": {+ "version": "5.4.21",+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",+ "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "^0.21.3",+ "postcss": "^8.4.43",+ "rollup": "^4.20.0"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^18.0.0 || >=20.0.0",+ "less": "*",+ "lightningcss": "^1.21.0",+ "sass": "*",+ "sass-embedded": "*",+ "stylus": "*",+ "sugarss": "*",+ "terser": "^5.4.0"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "lightningcss": {+ "optional": true+ },+ "sass": {+ "optional": true+ },+ "sass-embedded": {+ "optional": true+ },+ "stylus": {+ "optional": true+ },+ "sugarss": {+ "optional": true+ },+ "terser": {+ "optional": true+ }+ }+ },+ "node_modules/vite-node": {+ "version": "1.6.1",+ "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-1.6.1.tgz",+ "integrity": "sha512-YAXkfvGtuTzwWbDSACdJSg4A4DZiAqckWe90Zapc/sEX3XvHcw1NdurM/6od8J207tSDqNbSsgdCacBgvJKFuA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cac": "^6.7.14",+ "debug": "^4.3.4",+ "pathe": "^1.1.1",+ "picocolors": "^1.0.0",+ "vite": "^5.0.0"+ },+ "bin": {+ "vite-node": "vite-node.mjs"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/vitest": {+ "version": "1.6.1",+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-1.6.1.tgz",+ "integrity": "sha512-Ljb1cnSJSivGN0LqXd/zmDbWEM0RNNg2t1QW/XUhYl/qPqyu7CsqeWtqQXHVaJsecLPuDoak2oJcZN2QoRIOag==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/expect": "1.6.1",+ "@vitest/runner": "1.6.1",+ "@vitest/snapshot": "1.6.1",+ "@vitest/spy": "1.6.1",+ "@vitest/utils": "1.6.1",+ "acorn-walk": "^8.3.2",+ "chai": "^4.3.10",+ "debug": "^4.3.4",+ "execa": "^8.0.1",+ "local-pkg": "^0.5.0",+ "magic-string": "^0.30.5",+ "pathe": "^1.1.1",+ "picocolors": "^1.0.0",+ "std-env": "^3.5.0",+ "strip-literal": "^2.0.0",+ "tinybench": "^2.5.1",+ "tinypool": "^0.8.3",+ "vite": "^5.0.0",+ "vite-node": "1.6.1",+ "why-is-node-running": "^2.2.2"+ },+ "bin": {+ "vitest": "vitest.mjs"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "@edge-runtime/vm": "*",+ "@types/node": "^18.0.0 || >=20.0.0",+ "@vitest/browser": "1.6.1",+ "@vitest/ui": "1.6.1",+ "happy-dom": "*",+ "jsdom": "*"+ },+ "peerDependenciesMeta": {+ "@edge-runtime/vm": {+ "optional": true+ },+ "@types/node": {+ "optional": true+ },+ "@vitest/browser": {+ "optional": true+ },+ "@vitest/ui": {+ "optional": true+ },+ "happy-dom": {+ "optional": true+ },+ "jsdom": {+ "optional": true+ }+ }+ },+ "node_modules/which": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/why-is-node-running": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",+ "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "siginfo": "^2.0.0",+ "stackback": "0.0.2"+ },+ "bin": {+ "why-is-node-running": "cli.js"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/yocto-queue": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.2.2.tgz",+ "integrity": "sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12.20"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ }+ }+}diff --git a/sdks/typescript/src/sandbox.ts b/sdks/typescript/src/sandbox.tsindex e1a17775..5dd94a49 100644--- a/sdks/typescript/src/sandbox.ts+++ b/sdks/typescript/src/sandbox.ts@@ -22,10 +22,12 @@ interface SandboxData {templateID?: string;connectURL?: string;token?: string;+ domain?: string;}export class Sandbox {readonly sandboxId: string;+ readonly domain: string;readonly files: Filesystem;readonly commands: Commands;readonly pty: Pty;@@ -38,6 +40,7 @@ export class Sandbox {private constructor(data: SandboxData, apiUrl: string, apiKey: string) {this.sandboxId = data.sandboxID;+ this.domain = data.domain || "";this._status = data.status;this.apiUrl = apiUrl;this.apiKey = apiKey;