Files
plugins/packages/output-strategy/PROVENANCE.json
T
Mañjūṣaka 006e96ef03 output-strategy 0.2.1: finish #814's review follow-ups (#815)
Follow-up to #814 (081c67ac). The core request injection is unchanged.

- Page: static text goes back to English when magpie.theme.lang changes
  from zh to en. Unsaved style picks survive a language change, and the
  title follows the language. zh / zh-CN / zh-Hans use the Simplified
  strings. zh-TW and other languages fall back to English on purpose,
  with <html lang> kept as zh-TW. With no host theme, the page loads in
  English without throwing.
- apply.js: an empty system message gets the style block with no
  leading blank lines. The unused media detector and addedBytes are
  removed.
- style.css: obsolete stats/lang/workspace rules are removed, and the
  720px media block is closed again (52 { / 52 }).
- Tests: lowercase "delete" in the cross-turn cache case;
  empty/null/object system; zh -> en restore; unsaved picks kept;
  zh-TW; a missing theme; style.css brace balance and the version.
- PROVENANCE names ANTISLOP_BOUNDARIES (OmniRoute v3.8.52), checked
  byte for byte against the tag. The page/stats.js ignore is gone.
- Version 0.2.1. dist had only 0.2.0, and npm has no version yet.

Run at 2f971ab9 (mote, Bun 1.4.2, fresh HOME):
- package bun test: 55 pass, 0 fail;
- repo bun test: 6561 pass, 20 skip, 0 fail;
- scripts/check.mjs output-strategy: ok;
- CI run 42320776930 at this head, attempt 1: test and on-npm green;
- page render, main vs head, in Chromium and WebKit at 400/700/1000px:
  identical.
Broken by hand, each turning exactly one test red: the dropped }, the
version at 0.2.0, an unguarded theme.lang, the old conditional
applyTheme, a case-sensitive delete skip, the old appendInstruction,
one-way translate, unkept checkbox state, the old zh* normalize, and
addedBytes put back.
Not tried: a live theme switch in the real magpie window, and real
Claude Code/Codex sessions.
2026-11-07 09:10:31 +08:00

88 lines
4.0 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"
},
"ANTISLOP_BOUNDARIES": {
"repository": "https://github.com/diegosouzapw/OmniRoute",
"path": "open-sse/services/compression/outputStyles/antislop.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."
}
}
}