MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / runtime

Function runtime

projects/runtime-client/src/cache.test.ts:6–19  ·  view source on GitHub ↗
(runtimeId: string, ownerId: string, status: "running" | "completed" = "running")

Source from the content-addressed store, hash-verified

4const timestamp = "2026-05-26T00:00:00.000Z"
5
6function runtime(runtimeId: string, ownerId: string, status: "running" | "completed" = "running") {
7 return {
8 runtimeId,
9 kind: "agent",
10 status,
11 scope: {
12 ownerType: "job",
13 ownerId,
14 },
15 startedAt: timestamp,
16 updatedAt: timestamp,
17 lastActivityAt: timestamp,
18 }
19}
20
21describe("RuntimeRecordCache", () => {
22 it("stores scoped runtime records and rejects malformed legacy flat records", () => {

Callers 1

cache.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected