feat: optchat
CI / verify (pull_request) Successful in 11s

This commit is contained in:
2026-10-08 08:52:15 +02:00
parent 5edb1b5449
commit 78ba607bd8
14 changed files with 2034 additions and 18 deletions
+7 -2
View File
@@ -29,7 +29,7 @@ const unrelated = {
},
},
};
const names = ["agents", "multi-work", "quota"];
const names = ["agents", "multi-work", "quota", "optchat"];
const helper = new URL("../scripts/install.ts", import.meta.url);
async function run(
command: string[],
@@ -94,6 +94,8 @@ for (const selection of [
"agents,quota",
"agents,multi-work",
"agents,multi-work,quota",
"optchat",
"agents,multi-work,quota,optchat",
]) {
test(`installs valid subset ${selection}, preserving unrelated config and MCP`, async () => {
const f = await fixture();
@@ -255,7 +257,10 @@ test("replaces the legacy monolith without duplicates and retains Agents options
const result = await contents(f.config);
expect(result.plugins.map((entry: { package: string }) => entry.package)).toEqual([
"before",
...names.map((name) => `./plugins/stanp-opencode/${name}`),
// The monolith never had Optchat, so upgrading it does not add Optchat.
...names
.filter((name) => name !== "optchat")
.map((name) => `./plugins/stanp-opencode/${name}`),
"after",
]);
expect(result.plugins[1].options.lunaPriority).toBe(false);