UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

28 lines • 1.62 kB
/** * OmO's reserved prompt keywords (`ulw`, `mass ulw`, `ulw plan`, `ulw loop`, `ulw research`). * * Mirrors the omo-senpi engine's arming rules (omo `packages/omo-senpi/src/components/ * {ultrawork/index.ts, skill-pointers/index.ts, skill-pointers/strip-quoted-regions.ts}`), * so the editor paints a keyword only where the engine would arm it: case-insensitive, * spaces or hyphens between words, the mass aliases (`mulw`, `meth`, `ulw mass`), and * each name only as a word of its own (not inside an identifier, path, file name or URL). * Overlapping mentions all match ("ulw research" is both `ultrawork` and `ulw-research`). * Injected blocks, fenced/inline code, relay headers, block quotes, double quotes, URLs * and negated invocations ("do not load mass-ulw") are quoted material, never a request. */ export type ReservedKeyword = "ultrawork" | "mass-ulw" | "ulw-plan" | "ulw-loop" | "ulw-research"; export interface ReservedKeywordSpan { readonly keyword: ReservedKeyword; /** UTF-16 offsets into the searched text, end exclusive. */ readonly start: number; readonly end: number; } export interface ReservedKeywordRun { readonly start: number; readonly end: number; } /** Every reserved-keyword mention outside quoted regions, in text order. */ export declare function findReservedKeywordSpans(text: string): ReservedKeywordSpan[]; /** Overlapping mentions ("mass ulw research" is three) merge into one painted run, as on the desktop. */ export declare function findReservedKeywordRuns(text: string): ReservedKeywordRun[]; //# sourceMappingURL=reserved-keywords.d.ts.map