matthewwong525/WongStack / .agents/plugins/access
access
VerifiedSee who can sign in and what each person may use; add, change or remove a person.
server/forward.d.mts
View on GitHubimport type { Registry } from "./levels.mjs";
export type Kind = "read" | "change";
export type DirectInput = { method: "GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE"; path: string; query?: string; body?: unknown; contentType?: string };
/** What a handler is handed beside its input: a saved value by name, the abort signal, and who asked. */
export type DirectCall = { secret: (name: string) => unknown; signal: AbortSignal; caller: string };
export type DirectAction = {
id: string; kind: Kind; operationId: string; summary: string; description: string; effect: "read" | "external";
errors: Record<string, string>; examples: { input: DirectInput; output: { status: number; contentType: string; body: unknown } }[];
limits: { inputBytes: number; outputBytes: number; timeoutMs: number };
handler: (input: unknown, call: DirectCall) => Promise<Response>;
};
export declare const LIMIT: number;
export declare const METHODS: readonly ["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE"];
export declare const CONTENT_TYPE: RegExp;
export declare const FIELDS: Readonly<Record<"method" | "path" | "query" | "body" | "contentType", string>>;
export declare const ERRORS: Readonly<Record<"not_allowed" | "too_large" | "bad_answer", string>>;
export declare const NO_TOKEN: string;
export declare const LIMITS: { inputBytes: number; outputBytes: number; timeoutMs: number };
export declare function checkInput(value: unknown): { input: DirectInput } | { problem: string };
export declare function forwardActions(registry: Registry, send?: typeof fetch): {
routes: Map<string, DirectAction>; access: Map<string, { keys: string[]; direct: true }>;
};
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 |