MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / seed

Function seed

ui/src/api/inbox.ts:76–82  ·  view source on GitHub ↗

Dev-only — append an inbox entry.

(body: InboxSeedBody)

Source from the content-addressed store, hash-verified

74
75 /** Dev-only — append an inbox entry. */
76 async seed(body: InboxSeedBody): Promise<{ entry: InboxEntry }> {
77 return fetchJson('/api/inbox/seed', {
78 method: 'POST',
79 headers: { 'Content-Type': 'application/json' },
80 body: JSON.stringify(body),
81 })
82 },
83
84 /** Hard-delete an inbox entry. Returns true on success, false if
85 * the entry didn't exist (server replied 404). */

Callers

nothing calls this directly

Calls 1

fetchJsonFunction · 0.90

Tested by

no test coverage detected