Files
plugins/packages/output-strategy/page/index.html
T
Mañjūṣakaandmanjughosa a3bfe680d4 output-strategy 0.2.2: panel attribution, conversation guidance and save-state fix (#831)
output-strategy 0.2.2. The panel says the plugin is unofficial and maintained by manjughosa (README, page, registry summary). The page tells the user that saving does not rewrite an existing conversation. Unsaved changes are now counted against the saved styles, so ticking a style and unticking it again leaves the panel clean. The README says the `[Output Strategy]` marker is honoured only in system/developer instructions.

The package.json author stays "manjughosa (https://github.com/manjughosa)", as main has it. From the previous reviewed head 8cb337ef to 6110057c, that line is the only change.

What was run at 6110057c, merged with origin/main 5fb28a1f: `bun test packages/output-strategy` (59 pass) and `bun scripts/check.mjs` (ok), on WSL Ubuntu 24.04 and on Windows 11, each with a fresh HOME (and USERPROFILE on Windows). Broken by hand: putting back `dirty = true` on every change turns three page save-flow tests red (56 pass, 3 fail).

Co-authored-by: manjughosa <manjughosa@users.noreply.github.com>
2026-11-11 15:12:42 +08:00

51 lines
1.9 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>
<p class="attribution">An (unofficial) output-style plugin for magpie, developed and maintained by manjughosa.</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>
<p class="form-message" id="conversationNote">Saving does not rewrite conversation history. Existing conversations may retain previously injected rules; start a new conversation to fully switch or turn off styles.</p>
<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>