simulator/src
packages/simulator/src
Purpose
Code-first simulator API.Public surface
AgentConnection
Interface
AgentHandle
Class
AgentProcessExited
Class
AgentProcessSignaled
Class
AgentRuntimeCompleted
Class
AgentRuntimeFailed
Class
AgentRuntimeReady
Class
AgentRuntimeStartFailed
Class
AgentWorkspaceFileHarvested
Class
relativePath is the experiment’s own name for the file, or
the runtime’s label for a file it harvests on the experiment’s behalf.
ClusterError
Class
ClusterLost
Class
ClusterServices
TypeAlias
CompletedLedgerReceipt
Class
coreEvents
Variable
CustomerEvents
Interface
EncodedEventOf
TypeAlias
Endpoint
Class
EventCatalog
Class
EventCatalogDefinitionError
Class
EventCatalogDefinitionFailure
TypeAlias
EventClass
TypeAlias
EventClassOf
TypeAlias
EventMetadata
Interface
EventOf
TypeAlias
HarvestedFileOutcome
TypeAlias
IncompleteLedgerReceipt
Class
isEntryModule
Function
import.meta.url, while
process.argv[1] is whatever the caller typed. Every executable in this
package reaches its module through a symlink in the controller image, where
/opt/moltzap/dist points at the installed package directory. Comparing the
two without canonicalizing makes a directly invoked entry point look like an
import, so the process exits successfully having done nothing.
realPath returns undefined for a path that does not exist, so a missing or
deleted argv[1] is a plain false rather than a thrown ENOENT.
Returns: Whether both locations name the same real file.
LedgerFailure
TypeAlias
LedgerReceipt (type)
TypeAlias
LedgerReceipt (value)
Variable
LinkController
Class
LinkControllerService
Interface
LinkDelivery
Interface
LinkDown
Class
linkPolicy
Variable
LinkPolicy
TypeAlias
LinkPolicyCleared
Class
LinkPolicySet
Class
LinkUp
Class
linkVerdict
Variable
LinkVerdict
TypeAlias
Network
Class
NetworkError
Class
NetworkService
Interface
ParticipantHandle
Class
ProfileRunResult (type)
TypeAlias
moltzap-sim run prints.
ProfileRunResult (value)
Variable
moltzap-sim run prints for one submission.
A consumer that spawns the executable decodes its stdout with this schema
rather than copying the shape: the submitter is a separate process, so
nothing else would notice the two sides disagreeing until a live run
produced an undecodable line. The submitter’s own result type derives from
this schema, so the two cannot drift.
ProgramFailed
Class
ProgramFinished
Class
ProgramInterrupted
Class
ProgramSucceeded
Class
ReadableRunLedger
Interface
RouterStarted
Class
RouterStartFailed
Class
RouterStopFailed
Class
Run
Variable
RunSpec (type)
Interface
RunSpec (value)
Variable
RunStarted
Class
SimulatorDefinitionError
Class
SimulatorDefinitionId
TypeAlias
SimulatorRunFailure
TypeAlias
SimulatorRunOutcome
TypeAlias
VersionedEventTag
TypeAlias
Files
agents/agent.tsagents/container.tsagents/index.tsagents/nanoclaw/gateway.tsagents/nanoclaw/runtime.tsagents/openclaw/configuration.tsagents/openclaw/gateway.tsagents/openclaw/runtime.tsagents/roster.tsagents/workspace.tscluster/bootstrap.tscluster/cluster.tscluster/cohort.tscluster/controlled-endpoint.tscluster/controller/configuration.tscluster/controller/ledger-export.tscluster/controller/main.tscluster/controller/services.tscluster/controller/summary.tscluster/entry.tscluster/install.tscluster/kubernetes/calls.tscluster/kubernetes/harvest.tscluster/kubernetes/network-objects.tscluster/kubernetes/objects.tscluster/profile.tscluster/profiles/cli.tscluster/profiles/gke.tscluster/profiles/local.tscluster/profiles/result.tscluster/reclaim.tscluster/scaffold.tscluster/society-network.tscluster/submit.tscluster/temporal.tscluster/watch.tsdefinition.tsevents/catalog.tsevents/core.tsindex.tsledger/append.tsledger/filesystem.tsledger/index.tsledger/read.tsledger/schema.tsledger/storage.tsnetwork/endpoint.tsnetwork/failure.tsnetwork/index.tsnetwork/link.tsnetwork/participant.tsnetwork/router.tsrun/acquire.tsrun/endpoints.tsrun/events.tsrun/execute.tsrun/link-fabric.tsrun/links.tsrun/outcomes.tsrun/router-fault-proxy.ts