matthewwong525/WongStack / .agents/plugins/memory
memory
Verifiedstore/interface.d.mts
View on GitHub// The shapes every memory store answers in; interface.mjs lists the operations.
export interface Fact {
id: number; slug: string; type: 'user' | 'feedback' | 'project' | 'reference' | 'thread'; body: string;
author: string | null; created_at: string; session_id: string | null; superseded_by: number | null;
owner_subject: string | null; shared: 0 | 1; sources: string[]; tags?: string[];
}
// One read. The backend adds the caller's visibility to each.
export interface FactQuery {
terms?: string; ids?: number[]; slug?: string; session?: string; notSlug?: string; type?: string; notType?: string;
tags?: string[]; since?: string; until?: string; author?: string; branch?: string; change?: string;
all?: boolean; everyone?: boolean; order?: 'rank' | 'newest' | 'threads-first'; limit?: number; withTags?: boolean;
}
// The backend sets the author, owner, sharing, and time from the caller, never from here.
export type FactWrite =
| { slug?: string; type: string; body: string; tags?: string[]; supersedes?: number[]; sources?: string[] }
| { restate: number; tags: string[] }
| { close: number; body: string };
// A daily run is one row per sign-in and day: `started` answers `{ claimed }`, true only for the first claim of
// that day or with `force`; `ok` or `failed` finishes the same row. An answer with no `claimed` is not a claim.
export interface RunWrite {
kind: 'capture' | 'consolidation' | 'daily'; status: 'started' | 'ok' | 'failed'; host?: string | null; startedAt?: string;
reason?: string | null; counts?: Record<string, number> | string; day?: string; force?: boolean;
}
// The chat-start answer. An older store answers `facts` and `consolidation` and no `daily`.
export interface Digest {
live: number; threads: Fact[]; steps: { tag: string | null; n: number }[]; run: Record<string, unknown> | null;
daily: { day: string; last: string; status: 'started' | 'ok' | 'failed'; host: string | null; reason: string | null; counts: Record<string, number> } | null;
// Tags on live facts of the last 7 days, most first, at most 8; the caller's own feedback and user facts since the
// last finished tidy (or 24 hours), newest first, at most 5.
lately: { tag: string; n: number }[]; fresh: Fact[];
}
export const OPERATIONS: Record<string, string>;
export const TEAM_HEADER: string;
export const ROLE_HEADER: string;
export const MAX_TRANSCRIPT_BYTES: number;
export class StoreError extends Error {
constructor(reason: string, options?: { kind?: string; help?: string });
kind: string;
reason: string;
readonly spoolable: boolean;
}
export function httpStore(options: {
url: string; headers?: () => Record<string, string> | Promise<Record<string, string>>; timeoutMs?: number;
signal?: AbortSignal; onRequest?: (op: string) => void;
}): Record<string, (args?: unknown, bytes?: Uint8Array) => Promise<unknown>>;
export function serve(request: Request, options: { prefix: string; caller: unknown; store: unknown }): Promise<Response>;
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |