createSecretBox (src/persistence.ts)

open-managed-agents · apps/matter/src/persistence.ts · typescript · Apache-2.0
database

* Durable state of the Matter service. With MySQL (`MATTER_DATABASE_URL`) every replica shares it, so any replica can serve any request: the connections users made (secrets sealed), the hashes of per-Session MCP bearers, "Connect Feishu" registrations in progress, the tools of ea

// Source: https://github.com/openma-ai/open-managed-agents | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Durable state of the Matter service. With MySQL (`MATTER_DATABASE_URL`)
 * every replica shares it, so any replica can serve any request: the
 * connections users made (secrets sealed), the hashes of per-Session MCP
 * bearers, "Connect Feishu" registrations in progress, the tools of each
 * Session's latest Turn, and the operation calls an Agent made through MCP.
 * Each connection's OpenMatter store and inbox live in the same database,
 * partitioned by connection key. Without MySQL the same tables live in one
 * SQLite file for a single local process.
 */

import {

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key