Optional ReadonlyannotationsOptional ReadonlyenvironmentOptional ReadonlyguardAdmits the operations this process invokes that declare requirements. Inherited by children; a child's own guard is combined with its parent's, never replaces it. Not persisted, so a rehydrated process holds none and refuses operations that declare requirements.
Optional ReadonlynameProcess name for debugging purposes.
Optional ReadonlynotifyUser-facing notifications requested for this process's lifecycle phases. Ergonomic shorthand folded into NotifyAnnotation on the process annotations.
Optional Readonlyerror?: string | [string, { count?: number; defaultValue?: string; ns: string }]Shown when the invocation fails.
Optional Readonlystart?: string | [string, { count?: number; defaultValue?: string; ns: string }]Shown when the invocation starts.
Optional Readonlysuccess?: string | [string, { count?: number; defaultValue?: string; ns: string }]Shown when the invocation succeeds.
Optional ReadonlyoriginWho the process's database writes are attributed to (see Database.Origin); also the origin of every process it
invokes. Persisted with the process, so a restored process keeps it.
Optional ReadonlyparentParent process ID — child inherits the parent's trace context.
Inside a process, its ManagerService defaults this to that process; pass undefined
explicitly to spawn a detached process.
Optional ReadonlytargetTarget object that this process is assigned to. Ergonomic shorthand folded into TargetAnnotation on the process annotations.
Optional ReadonlytraceTracing metadata for this invocation.
Optional Readonlyconversation?: Ref<Unknown>Ref to the conversation feed object if present.
Optional ReadonlyparentPid?: stringOptional ReadonlyparentThread?: stringLight thread of the parent process's turn that spawned this process.
Optional Readonlypid?: stringOptional ReadonlyprocessName?: stringOptional ReadonlyrunId?: stringPid of the first invocation of the run this message belongs to.
A run that calls Operation.runAgain() continues in a new invocation with its own pid; each
continuation carries the first invocation's pid here so consumers can show the run as one unit.
Absent on the first invocation, whose own pid is the run's id.
Optional ReadonlyruntimeName?: string & Brand<"@dxos/compute/Trace/RuntimeName">Extensible name informing which runtime executed the code that produced the event.
Optional Readonlyspace?: stringSpace the message was produced in.
Stored as a string to avoid circular dependency on @dxos/keys.
Optional Readonlythread?: stringLane of the process's turn that produced the event (see CurrentThread).
Optional ReadonlytoolCallId?: stringID of the tool call that created the current process.
Optional Readonlytrigger?: Ref<Trigger.Trigger & OfKind<Object> & Unknown>Ref to the trigger object if invocation resulted from a trigger.
Options for spawning a process.