mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-24 03:15:46 -06:00
0a6b95a3df
* feat(gateway): add remote-exec cloud placements * feat(codex): run cloud turns through remote exec * fix(sandbox): quote ssh_config path directives containing whitespace Crabbox lease keys default to ~/Library/Application Support/... on macOS; unquoted IdentityFile/UserKnownHostsFile/CertificateFile arguments tokenize on the space and fail as 'extra arguments'. Found via live remote-exec cloud-worker proof. * test: consolidate gateway maintenance schedule coverage * fix(ci): invalidate plugin sdk declarations on state changes
21 lines
789 B
TypeScript
21 lines
789 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import {
|
|
checkNativeStateSchemaVersion,
|
|
compareNativeStateSchemaVersions,
|
|
} from "../../scripts/check-native-state-schema-version.mjs";
|
|
|
|
describe("native state schema version guard", () => {
|
|
it("keeps the checked-in Swift and TypeScript contracts aligned", () => {
|
|
expect(checkNativeStateSchemaVersion()).toBe(8);
|
|
});
|
|
|
|
it("fails when a deliberate Swift fixture drifts behind TypeScript", () => {
|
|
expect(() =>
|
|
compareNativeStateSchemaVersions({
|
|
swiftSource: "private static let maximumSupportedSchemaVersion: Int64 = 5\n",
|
|
typescriptSource: "export const OPENCLAW_STATE_SCHEMA_VERSION = 8;\n",
|
|
}),
|
|
).toThrow("Native state schema version drift: Swift supports 5, TypeScript owns 8");
|
|
});
|
|
});
|