spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / sec-default / hooks / held-verdict / untold.ts
10 lines · 453 BRaw
1/**
2 * The plugins among those named that a person has not been told about yet
3 * in this session, each once however many of its links were named.
4 *
5 * @param told the names already told
6 * @param names the names one run of the chain gave
7 * @returns the names to tell now, in the order given
8 */
9export const untold = (told: ReadonlySet<string>, names: readonly string[]) =>
10 names.filter((name, at) => !told.has(name) && names.indexOf(name) === at)