MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / emptyState

Function emptyState

scripts/mars-credentials.mjs:78–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76}
77
78function emptyState() {
79 return {
80 version: STORE_VERSION,
81 deviceId: randomUUID(),
82 activeConnectionId: null,
83 connections: [],
84 };
85}
86
87function isExpired(connection) {
88 if (!connection?.expiresAt) return false;

Callers 1

loadFunction · 0.85

Calls 1

randomUUIDFunction · 0.85

Tested by

no test coverage detected