matthewwong525/WongStack / .agents/plugins/access
access
VerifiedSee who can sign in and what each person may use; add, change or remove a person.
scripts/lib/seal-keys.mjs
View on GitHub// `key send`: one key sealed on this computer with the app's public key, or sealed already, and sent to the live
// app. The plain value is in no argument, output or request. wiki/stack/connect-your-tools.md
import { readFileSync } from 'node:fs';
/** The body a send carries: `{ sealed, ends }`, from a value read from stdin or from a file sealed already. An answer
* with an `error` is the app's refusal, to print as it is. */
export async function sealedBody(client, name, { valueStdin, sealedFile, read = file => readFileSync(file, 'utf8') }) {
if (!valueStdin) return { body: JSON.parse(read(sealedFile === '-' ? 0 : sealedFile)) };
const value = read(0).replace(/\r?\n$/, '');
if (!value.trim()) throw new Error(`No key on stdin for ${name}.`);
const { value: lock } = await client.http('/api/access/keys/seal');
if (lock.error) return { refused: lock };
const { seal } = await import('../../screen/seal.mjs');
const sealed = await seal(value, lock.publicKey);
return { body: { sealed: typeof sealed === 'string' ? JSON.parse(sealed) : sealed, ends: value.slice(-4) } };
}
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 |