Download src/plugin-sdk/agent-runtime-ingress-contract.test.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 744 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/plugin-sdk/agent-runtime-ingress-contract.test.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/plugin-sdk/agent-runtime-ingress-contract.test.ts
-
curl -L -o agent-runtime-ingress-contract.test.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/plugin-sdk/agent-runtime-ingress-contract.test.ts
744 Bytes
| import { describe, expect, it } from "vitest"; | |
| import { agentCommandFromIngress } from "./agent-runtime.js"; | |
| type PublicIngressOptions = Parameters<typeof agentCommandFromIngress>[0]; | |
| const optionalRunIdCaller: PublicIngressOptions = { | |
| message: "hello", | |
| sessionKey: "agent:main:plugin-session", | |
| allowModelOverride: false, | |
| }; | |
| const privateRecoveryCorrelationIsHidden: "executionIdentityAdmission" extends keyof PublicIngressOptions | |
| ? false | |
| : true = true; | |
| describe("public agent ingress correlation contract", () => { | |
| it("keeps runId optional and private execution recovery state unavailable", () => { | |
| expect(optionalRunIdCaller).not.toHaveProperty("runId"); | |
| expect(privateRecoveryCorrelationIsHidden).toBe(true); | |
| }); | |
| }); | |