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.
48 lines
1.6 KiB
HTML
48 lines
1.6 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Output Strategy</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<main class="shell">
|
|
<header class="intro">
|
|
<div class="intro-copy">
|
|
<h1>Output Strategy</h1>
|
|
<p class="lede">Inject selected writing rules into model requests. Combine freely; all off by default.</p>
|
|
</div>
|
|
<p class="selection-count" aria-live="polite">
|
|
<strong id="selectedCount">0 / 7</strong>
|
|
<span>selected</span>
|
|
</p>
|
|
</header>
|
|
|
|
<section class="styles-section" aria-labelledby="stylesTitle">
|
|
<div class="section-heading">
|
|
<h2 id="stylesTitle">Style combinations</h2>
|
|
<p id="catalogState">Reading catalog…</p>
|
|
</div>
|
|
|
|
<form id="stylesForm">
|
|
<fieldset id="stylesFieldset" disabled>
|
|
<legend class="sr-only">Choose output styles to inject</legend>
|
|
<div id="stylesList" class="styles-list"></div>
|
|
</fieldset>
|
|
<div class="form-footer">
|
|
<p id="formMessage" class="form-message" role="status" aria-live="polite">Reading settings…</p>
|
|
<button id="saveButton" type="submit" disabled>Save changes</button>
|
|
</div>
|
|
</form>
|
|
<noscript><p class="inline-error">JavaScript is required to change styles.</p></noscript>
|
|
</section>
|
|
</main>
|
|
|
|
<script src="_magpie/bridge.js"></script>
|
|
<script src="catalog.js"></script>
|
|
<script src="i18n.js"></script>
|
|
<script src="app.js" defer></script>
|
|
</body>
|
|
</html>
|