Sol review sys1-review-r1 (changes 3): - P1: project_system_types joins stack-release.sh COUNTED and the T45 LISTED pin; the post-backup refusal and in-run recount tests now cover it. - P2: the CLI channel admits project.system-types and project.system-types.set; a new test drives both through run() and the real channel module (1/1 red without the fix). - P2: the #811 migration-reader pin moves to 19 steps ending 3t-3u.
29 lines
744 B
JavaScript
29 lines
744 B
JavaScript
// Surface adapter only. The caller and its human proof belong to core.
|
|
import { PluginError } from "../../src/kinds.mjs";
|
|
export const interfaceVersion = 1;
|
|
const VERBS = new Set([
|
|
"project.list",
|
|
"project.create",
|
|
"project.archive",
|
|
"project.unarchive",
|
|
"project.system-types",
|
|
"project.system-types.set",
|
|
"thread.list",
|
|
"thread.create",
|
|
"thread.messages",
|
|
"thread.send",
|
|
"thread.open",
|
|
"session.list",
|
|
"session.create",
|
|
"session.clear",
|
|
"session.cancel",
|
|
"session.operation",
|
|
"message.receive",
|
|
"message.read",
|
|
]);
|
|
|
|
export async function dispatch({ verb, args }, { call }) {
|
|
if (!VERBS.has(verb)) throw new PluginError("channel-operation", "unsupported channel operation");
|
|
return call(verb, args);
|
|
}
|