test: add live subagent steering proof

This commit is contained in:
Peter Steinberger
2026-05-13 13:49:51 +01:00
parent 3cef9a65d3
commit 714f62f976
2 changed files with 319 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ const PLUGIN_DOC_ALIASES = new Map([
["tavily", "/tools/tavily"],
["tokenjuice", "/tools/tokenjuice"],
]);
/** @type {Map<string, string>} */
/** @type {ReadonlyMap<string, string>} */
const PLUGIN_REFERENCE_EXTRA_SECTIONS = new Map();
function readJson(relativePath) {
@@ -377,7 +377,7 @@ ${record.docs.map((link) => `- ${docLink(link)}`).join("\n")}`;
function renderReferencePage(record) {
const relatedDocs = renderRelatedDocs(record);
const extraSections = PLUGIN_REFERENCE_EXTRA_SECTIONS.get(record.id);
const extraSections = PLUGIN_REFERENCE_EXTRA_SECTIONS.get(record.id) ?? "";
return `---
summary: "${record.description.replaceAll('"', '\\"')}"
read_when: