Files
plugins/packages/output-strategy/package.json
T
Mañjūṣaka 081c67acaa output-strategy 0.2.0: composable output-style middleware (#814)
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.
2026-11-07 08:07:11 +08:00

50 lines
1.2 KiB
JSON

{
"name": "@magpie-community/middleware-output-strategy",
"version": "0.2.0",
"description": "Composable output-style instructions injected before the model call, with a small selection panel",
"type": "module",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/output-strategy"
},
"files": [
"output-strategy.middleware.js",
"apply.js",
"catalog.js",
"scripts/gen-page-catalog.mjs",
"page/*.html",
"page/*.js",
"page/*.css",
"README.md",
"LICENSE",
"PROVENANCE.json",
"LICENSES/"
],
"keywords": ["magpie", "magpie-middleware", "output-styles", "prompt"],
"magpie": {
"middleware": "./output-strategy.middleware.js",
"page": {
"title": "Output Strategy",
"titles": { "zh": "输出策略" },
"file": "page/index.html"
},
"options": {
"styles": {
"terse-prose": false,
"less-code": false,
"ponytail": false,
"i-have-adhd": false,
"terse-cjk": false,
"antislop-ui": false,
"antislop-copy": false
}
}
},
"scripts": {
"build:catalog": "node scripts/gen-page-catalog.mjs",
"test": "bun test"
}
}