Download src/plugin-sdk/agent-runtime-avatar-contract.test.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 807 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/plugin-sdk/agent-runtime-avatar-contract.test.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/plugin-sdk/agent-runtime-avatar-contract.test.ts
-
curl -L -o agent-runtime-avatar-contract.test.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/plugin-sdk/agent-runtime-avatar-contract.test.ts
807 Bytes
| // Compile-time contract guard for the shipped agent-runtime avatar surface. | |
| import { describe, expect, it } from "vitest"; | |
| import type { AgentAvatarResolution } from "./agent-runtime.js"; | |
| const legacyLocalResolution: AgentAvatarResolution = { | |
| kind: "local", | |
| filePath: "/workspace/avatar.png", | |
| source: "avatar.png", | |
| }; | |
| const internalFileHelperIsPrivate: "openLocalAgentAvatarFile" extends keyof typeof import("./agent-runtime.js") | |
| ? true | |
| : false = false; | |
| describe("agent-runtime avatar contract", () => { | |
| it("keeps the local result shape without exporting pinned-file internals", () => { | |
| expect(legacyLocalResolution).toEqual({ | |
| kind: "local", | |
| filePath: "/workspace/avatar.png", | |
| source: "avatar.png", | |
| }); | |
| expect(internalFileHelperIsPrivate).toBe(false); | |
| }); | |
| }); | |