- Switched from modernc.org/sqlite to ncruces/go-sqlite3 for WASM support - Added WASM-specific stubs for daemon process management - Created wasm/ directory with build.sh and Node.js runner - WASM build succeeds (32MB bd.wasm) - Node.js can load and execute the WASM module - Next: Need to bridge Go file I/O to Node.js fs module Related: bd-44d0, bd-8534, bd-c7eb
21 lines
425 B
Go
21 lines
425 B
Go
//go:build js && wasm
|
|
|
|
package daemon
|
|
|
|
import "fmt"
|
|
|
|
// WASM doesn't support process management, so these are stubs
|
|
// Daemon mode is not supported in WASM environments
|
|
|
|
func killProcess(pid int) error {
|
|
return fmt.Errorf("daemon operations not supported in WASM")
|
|
}
|
|
|
|
func forceKillProcess(pid int) error {
|
|
return fmt.Errorf("daemon operations not supported in WASM")
|
|
}
|
|
|
|
func isProcessAlive(pid int) bool {
|
|
return false
|
|
}
|