Documentation
¶
Overview ¶
Package runtime provides code execution runtime implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAvailability ¶
CheckAvailability checks if Node.js/npx is available
Types ¶
type NodeRuntime ¶
type NodeRuntime struct {
// contains filtered or unexported fields
}
NodeRuntime provides TypeScript/JavaScript execution via Node.js with tsx
func NewNodeRuntime ¶
func NewNodeRuntime(workspaceDir string, socketPath string) *NodeRuntime
NewNodeRuntime creates a new Node.js runtime
func (*NodeRuntime) Execute ¶
Execute runs a TypeScript/JavaScript file using tsx. codePath can be absolute or relative to workspaceDir.
func (*NodeRuntime) WorkspaceDir ¶
func (n *NodeRuntime) WorkspaceDir() string
WorkspaceDir returns the runtime workspace directory.
Click to show internal directories.
Click to hide internal directories.