MCPcopy
hub / github.com/xintaofei/codeg / PersistedDraftStateV2

Interface PersistedDraftStateV2

src/lib/message-input-draft.ts:11–13  ·  view source on GitHub ↗

v2 draft payload: the composer's Tiptap document (preserves reference badges, * which a Markdown round-trip would downgrade to plain links).

Source from the content-addressed store, hash-verified

9/** v2 draft payload: the composer's Tiptap document (preserves reference badges,
10 * which a Markdown round-trip would downgrade to plain links). */
11interface PersistedDraftStateV2 {
12 doc: JSONContent
13}
14
15const STORAGE_PREFIX = "codeg:message-input-draft:v1"
16const STORAGE_PREFIX_V2 = "codeg:message-input-draft:v2"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected