fix(runtime): freeze miniapp kind vocabulary

This commit is contained in:
2026-08-06 01:31:38 +08:00
parent b81a0edcca
commit 44b6a83a30
4 changed files with 10 additions and 7 deletions
@@ -69,7 +69,7 @@ describe("LineUpRuntime", () => {
const transport = new FakeTransport([[{ message_seq: 30, from_uid: "agent_1", payload: launch }], []]);
const runtime = new LineUpRuntime({ storage, createTransport: () => transport, now: () => "2026-08-04T00:00:00.000Z" });
runtime.apps.install({
app_scope: "draw-and-guess", kind: "extension", enabled: true, default_eligible: false, recovery: false,
app_scope: "draw-and-guess", kind: "bundled", enabled: true, default_eligible: false, recovery: false,
manifest: { app_scope: "draw-and-guess", version: "1.0.0", permissions: [], tools: [{ name: "app.launch", handling: "launch", parameters: ["app_scope", "instance_id"] }] },
});
await runtime.login(login);
@@ -4,7 +4,7 @@ import { ToolRouter } from "@/runtime/coordination/tool-router";
function extension(enabled = true) {
return {
app_scope: "draw-and-guess", kind: "extension" as const, enabled, default_eligible: false, recovery: false,
app_scope: "draw-and-guess", kind: "bundled" as const, enabled, default_eligible: false, recovery: false,
manifest: { app_scope: "draw-and-guess", version: "1.0.0", permissions: [], tools: [{ name: "app.launch", handling: "launch" as const, parameters: ["app_scope"] }] },
};
}