mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-10 02:11:36 -10:00
12 lines
440 B
TypeScript
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
|