Skip to content

matthewwong525/WongStack / .agents/plugins/memory

memory

Verified

FileKindSize
README.mdmarkdown4.7 KB
SKILL.mdskill md5.8 KB
VERSIONother6 B
hooks/claude.jsonconfig957 B
hooks/codex.jsonconfig692 B
references/placing-facts.mdmarkdown2.1 KB
references/recall-helper.mdmarkdown814 B
references/setup.mdmarkdown7.0 KB
references/tidy.mdmarkdown4.4 KB
references/writing-facts.mdmarkdown2.0 KB
scripts/before-edit.mjsscript2.5 KB
scripts/daily-tidy.mjsscript22.1 KB
scripts/lib/areas.mjsscript3.9 KB
scripts/lib/brief.mjsscript2.3 KB
scripts/lib/cli.mjsscript1.2 KB
scripts/lib/daily.mjsscript1.6 KB
scripts/lib/digest.mjsscript11.9 KB
scripts/lib/documents/commands.mjsscript5.7 KB
scripts/lib/documents/corpus.mjsscript6.8 KB
scripts/lib/documents/input.mjsscript2.4 KB
scripts/lib/documents/lexical.mjsscript4.5 KB
scripts/lib/documents/packet.mjsscript10.2 KB
scripts/lib/documents/retrieve.mjsscript1.9 KB
scripts/lib/files.mjsscript3.7 KB
scripts/lib/headless.mjsscript1.5 KB
scripts/lib/knowledge-copy.mjsscript469 B
scripts/lib/machine-id.mjsscript1.9 KB
scripts/lib/primary-root.mjsexecutablescript1.9 KB
scripts/lib/pull.mjsscript27.0 KB
scripts/lib/read-facts.mjsscript1.7 KB
scripts/lib/read-options.mjsscript3.0 KB
scripts/lib/scan.mjsscript2.0 KB
scripts/lib/store.mjsscript7.7 KB
scripts/lib/topics.mjsscript4.6 KB
scripts/lib/transcripts.mjsscript9.6 KB
scripts/lib/upkeep.mjsscript4.0 KB
scripts/lib/usage.mjsscript5.2 KB
scripts/memory.mjsscript45.7 KB
scripts/run.mjsscript20.4 KB
scripts/session-end.mjsscript1.7 KB
scripts/session-start.mjsscript4.6 KB
scripts/topic-match.mjsscript2.1 KB
store/contract.mjsscript14.6 KB
store/interface.d.mtsother2.9 KB
store/interface.mjsscript6.7 KB

store/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>;
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall