Files
opencode/packages/schema/src/session-metadata.ts
2026-09-22 17:27:38 -05:00

12 lines
440 B
TypeScript

import { Schema } from "effect"
/**
* Host-supplied session annotations, durable and opaque to core. Keys are
* arbitrary; values must be JSON-serializable. Children and forks inherit
* the parent's current metadata unless the creator supplies its own.
*/
export const SessionMetadata = Schema.Record(Schema.String, Schema.Json).annotate({
identifier: "Session.Metadata",
})
export type SessionMetadata = typeof SessionMetadata.Type