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.
82 lines
3.7 KiB
JSON
82 lines
3.7 KiB
JSON
{
|
|
"plugin": "output-strategy",
|
|
"created": "2026-11-03",
|
|
"runtimeAdaptations": [
|
|
"Only onRequest injection is implemented; no response or SSE rewriting.",
|
|
"Skill frontmatter, slash commands, host-specific mode queries and persistence commands are removed.",
|
|
"Styles are independent booleans using the complete upstream rules; OmniRoute's lite/full/ultra levels, DB, settings API and telemetry backend are not ported.",
|
|
"The [Output Strategy] marker follows OmniRoute's idempotence: an existing marker means already applied and the body is left unchanged.",
|
|
"The per-request autoClarity and media bypass were removed: selected styles inject consistently so the cached system prefix does not change between turns.",
|
|
"Responses instructions are never modified; styles are added as a separate developer input item.",
|
|
"terse-cjk is available explicitly for every locale, instead of only OmniRoute's zh locale.",
|
|
"apply.js retains the original port's marker, catalog composition and request-shape handling, adapted to the cache-stable behavior above."
|
|
],
|
|
"sources": {
|
|
"terse-prose": {
|
|
"repository": "https://github.com/JuliusBrussee/caveman",
|
|
"path": "plugins/caveman/skills/caveman/SKILL.md",
|
|
"revision": "2e068f735253cce28256744804785f01887d9646",
|
|
"license": "Apache-2.0; earlier MIT contributions retain MIT notice"
|
|
},
|
|
"less-code": {
|
|
"repository": "https://github.com/decolua/9router",
|
|
"path": "open-sse/rtk/ponytailPrompt.js",
|
|
"revision": "1fe586bb1cf35e1ed0cb2150a8ef7d1db040b21d",
|
|
"license": "MIT"
|
|
},
|
|
"terse-cjk": {
|
|
"repository": "https://github.com/diegosouzapw/OmniRoute",
|
|
"path": "open-sse/services/compression/outputStyles/catalog.ts",
|
|
"revision": "v3.8.52",
|
|
"level": "full",
|
|
"license": "MIT",
|
|
"note": "Chinese text from the full level; the original zh-only locale gate is removed in favor of an explicit user toggle."
|
|
},
|
|
"ponytail": {
|
|
"repository": "https://github.com/DietrichGebert/ponytail",
|
|
"path": "skills/ponytail/SKILL.md",
|
|
"revision": "96608e078b2d5ea607c5c3b8b5a54d1c1fba6846",
|
|
"license": "MIT"
|
|
},
|
|
"i-have-adhd": {
|
|
"repository": "https://github.com/ayghri/i-have-adhd",
|
|
"path": "skills/i-have-adhd/SKILL.md",
|
|
"revision": "1ecea1993b7fce257ffbd686c070948b5e07eda6",
|
|
"license": "MIT"
|
|
},
|
|
"SHARED_BOUNDARIES": {
|
|
"repository": "https://github.com/diegosouzapw/OmniRoute",
|
|
"path": "open-sse/services/compression/outputMode.ts",
|
|
"revision": "v3.8.52",
|
|
"license": "MIT"
|
|
},
|
|
"SAFETY_BOUNDARIES": {
|
|
"repository": "https://github.com/diegosouzapw/OmniRoute",
|
|
"path": "open-sse/services/compression/outputStyles/catalog.ts",
|
|
"revision": "v3.8.52",
|
|
"license": "MIT"
|
|
},
|
|
"apply-design": {
|
|
"repository": "https://github.com/diegosouzapw/OmniRoute",
|
|
"path": "open-sse/services/compression/outputStyles/apply.ts",
|
|
"revision": "v3.8.52",
|
|
"license": "MIT",
|
|
"note": "Initial marker, autoClarity and media bypass design was ported here. The latter two per-request gates have been removed to preserve prompt-cache stability."
|
|
},
|
|
"antislop-ui": {
|
|
"repository": "https://github.com/diegosouzapw/OmniRoute",
|
|
"path": "open-sse/services/compression/outputStyles/antislop.ts",
|
|
"revision": "v3.8.52",
|
|
"license": "MIT",
|
|
"note": "The bundled LICENSE is OmniRoute v3.8.54's MIT file, byte-identical to v3.8.52's."
|
|
},
|
|
"antislop-copy": {
|
|
"repository": "https://github.com/diegosouzapw/OmniRoute",
|
|
"path": "open-sse/services/compression/outputStyles/antislop.ts",
|
|
"revision": "v3.8.52",
|
|
"license": "MIT",
|
|
"note": "Same source and license as antislop-ui."
|
|
}
|
|
}
|
|
}
|