Adds @magpie-community/middleware-output-strategy 0.2.0. It is middleware only. It appends composable output-style instructions before the model call, and has a small selection page. - Codex `instructions` stay byte-identical. The styles go into a `developer` input item at input[0]. - An existing marker means the body was already applied, and it passes unchanged, so the prompt cache holds across turns. - It writes nothing to disk and has no hooks or telemetry. - PROVENANCE credits OmniRoute v3.8.52. Run at 9b47678ba (mote, Bun 1.4.2, HOME=$(mktemp -d)): - package bun test: 49 pass, 0 fail; - repo bun test: 6555 pass, 0 fail; - scripts/check.mjs output-strategy: ok; - magpie's moejs engine at origin/main 8e350155b: the Claude Code system field is identical over four turns, and the Codex input prefix is stable; - 12 guards broken by hand, each one red. - PR CI (test, on-npm): green. Not tried: real accounts, Codex over websocket, Windows, Linux.
38 lines
1.2 KiB
JavaScript
38 lines
1.2 KiB
JavaScript
globalThis.OUTPUT_STRATEGY_CATALOG = [
|
|
{
|
|
"id": "terse-prose",
|
|
"label": "Terse prose",
|
|
"description": "Drop filler/articles/hedging; keep technical substance exact."
|
|
},
|
|
{
|
|
"id": "less-code",
|
|
"label": "Less code",
|
|
"description": "YAGNI ladder: smallest working change, no unrequested abstractions."
|
|
},
|
|
{
|
|
"id": "ponytail",
|
|
"label": "Ponytail (lazy senior dev)",
|
|
"description": "Lazy senior-dev discipline: climb the YAGNI ladder, fix root cause, smallest working diff."
|
|
},
|
|
{
|
|
"id": "i-have-adhd",
|
|
"label": "I have ADHD (action-first)",
|
|
"description": "Action-first output: next action leads, steps numbered, one concrete next step, no preamble."
|
|
},
|
|
{
|
|
"id": "terse-cjk",
|
|
"label": "Terse CJK (文言)",
|
|
"description": "Classical-Chinese ultra-terse style."
|
|
},
|
|
{
|
|
"id": "antislop-ui",
|
|
"label": "Antislop UI filter",
|
|
"description": "Purpose-tested visuals: no generic gradients, template layouts or dead controls."
|
|
},
|
|
{
|
|
"id": "antislop-copy",
|
|
"label": "Antislop copy and human filter",
|
|
"description": "Honest copy plus people rules: no AI tells, WCAG AA contrast, keyboard, states, mobile reflow."
|
|
}
|
|
]
|