@logixjs/sandbox
Preparing search index...
SandboxClientService
Interface SandboxClientService
interface
SandboxClientService
{
compile
:
(
code
:
string
,
filename
?:
string
,
mockManifest
?:
MockManifest
,
options
?:
{
allowFallback
?:
boolean
;
kernelId
?:
string
;
strict
?:
boolean
}
,
)
=>
Effect
<
{
bundle
?:
string
;
errors
?:
string
[]
;
success
:
boolean
}
,
unknown
,
>
;
events
:
Stream
<
{
error
:
SandboxErrorInfo
|
null
;
logs
:
readonly
LogEntry
[]
;
status
:
SandboxStatus
;
traces
:
readonly
TraceSpan
[]
;
uiIntents
:
readonly
UiIntentPacket
[]
;
}
,
>
;
init
:
()
=>
Effect
<
void
,
unknown
>
;
listKernels
:
()
=>
Effect
<
{
defaultKernelId
?:
string
;
kernels
:
readonly
KernelVariant
[]
}
,
never
,
>
;
run
:
(
options
?:
{
actions
?:
readonly
{
_tag
:
string
;
payload
?:
unknown
}
[]
;
allowFallback
?:
boolean
;
kernelId
?:
string
;
runId
?:
string
;
strict
?:
boolean
;
useCompiledCode
?:
boolean
;
}
,
)
=>
Effect
<
RunResult
,
unknown
>
;
terminate
:
()
=>
Effect
<
void
,
unknown
>
;
trialRunModule
:
(
options
:
{
allowFallback
?:
boolean
;
buildEnvConfig
?:
Record
<
string
,
string
|
number
|
boolean
>
;
closeScopeTimeout
?:
number
;
diagnosticsLevel
?:
DiagnosticsLevel
;
filename
?:
string
;
kernelId
?:
string
;
maxEvents
?:
number
;
mockManifest
?:
MockManifest
;
moduleCode
:
string
;
moduleExport
?:
string
;
reportMaxBytes
?:
number
;
runId
?:
string
;
strict
?:
boolean
;
trialRunTimeoutMs
?:
number
;
}
,
)
=>
Effect
<
RunResult
,
unknown
>
;
uiCallback
:
(
payload
:
{
callback
:
string
;
data
?:
unknown
;
intentId
:
string
;
runId
:
string
;
}
,
)
=>
Effect
<
void
,
unknown
>
;
}
Index
Properties
compile
events
init
list
Kernels
run
terminate
trial
Run
Module
ui
Callback
Properties
Readonly
compile
compile
:
(
code
:
string
,
filename
?:
string
,
mockManifest
?:
MockManifest
,
options
?:
{
allowFallback
?:
boolean
;
kernelId
?:
string
;
strict
?:
boolean
}
,
)
=>
Effect
<
{
bundle
?:
string
;
errors
?:
string
[]
;
success
:
boolean
}
,
unknown
,
>
Readonly
events
events
:
Stream
<
{
error
:
SandboxErrorInfo
|
null
;
logs
:
readonly
LogEntry
[]
;
status
:
SandboxStatus
;
traces
:
readonly
TraceSpan
[]
;
uiIntents
:
readonly
UiIntentPacket
[]
;
}
,
>
Readonly
init
init
:
()
=>
Effect
<
void
,
unknown
>
Readonly
list
Kernels
listKernels
:
()
=>
Effect
<
{
defaultKernelId
?:
string
;
kernels
:
readonly
KernelVariant
[]
}
,
never
,
>
Readonly
run
run
:
(
options
?:
{
actions
?:
readonly
{
_tag
:
string
;
payload
?:
unknown
}
[]
;
allowFallback
?:
boolean
;
kernelId
?:
string
;
runId
?:
string
;
strict
?:
boolean
;
useCompiledCode
?:
boolean
;
}
,
)
=>
Effect
<
RunResult
,
unknown
>
Readonly
terminate
terminate
:
()
=>
Effect
<
void
,
unknown
>
Readonly
trial
Run
Module
trialRunModule
:
(
options
:
{
allowFallback
?:
boolean
;
buildEnvConfig
?:
Record
<
string
,
string
|
number
|
boolean
>
;
closeScopeTimeout
?:
number
;
diagnosticsLevel
?:
DiagnosticsLevel
;
filename
?:
string
;
kernelId
?:
string
;
maxEvents
?:
number
;
mockManifest
?:
MockManifest
;
moduleCode
:
string
;
moduleExport
?:
string
;
reportMaxBytes
?:
number
;
runId
?:
string
;
strict
?:
boolean
;
trialRunTimeoutMs
?:
number
;
}
,
)
=>
Effect
<
RunResult
,
unknown
>
Readonly
ui
Callback
uiCallback
:
(
payload
:
{
callback
:
string
;
data
?:
unknown
;
intentId
:
string
;
runId
:
string
;
}
,
)
=>
Effect
<
void
,
unknown
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
compile
events
init
list
Kernels
run
terminate
trial
Run
Module
ui
Callback
@logixjs/sandbox
Loading...