MCPcopy Create free account
hub / github.com/apache/maka / markObserved

Method markObserved

packages/runtime/src/shell-run-manager.ts:1734–1739  ·  view source on GitHub ↗
(record: ShellRunRecord)

Source from the content-addressed store, hash-verified

1732 }
1733
1734 private async markObserved(record: ShellRunRecord): Promise<ShellRunRecord> {
1735 if (!isTerminalShellRunStatus(record.status) || record.observedAt !== undefined) return record;
1736 return this.input.store.updateShellRun(record.sessionId, record.shellRunId, {
1737 observedAt: this.input.now(),
1738 });
1739 }
1740
1741 private async markOrphaned(record: ShellRunRecord, reason: string): Promise<ShellRunRecord> {
1742 const failureMessage = redactSecrets(reason);

Callers 7

runBackgroundBashMethod · 0.95
writeStdinMethod · 0.95
stopBackgroundTaskMethod · 0.95
resourceDetailMethod · 0.95
writeStdinWithoutLiveMethod · 0.95
stopWithoutLiveMethod · 0.95

Calls 3

isTerminalShellRunStatusFunction · 0.90
updateShellRunMethod · 0.65
nowMethod · 0.65

Tested by

no test coverage detected