Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

fix(integrations): allow Convex snapshot imports

Rahmancbd0414bb7f8
diff --git a/lib/infra/convex-cloud-runner.test.ts b/lib/infra/convex-cloud-runner.test.ts
index ff9f5a1f..2d892c91 100644
--- a/lib/infra/convex-cloud-runner.test.ts
+++ b/lib/infra/convex-cloud-runner.test.ts
@@ -123,7 +123,12 @@ it("imports only with explicit mode and a data-scoped ephemeral key", async () =
const url = String(input);
if (url.endsWith("/create_deploy_key")) {
expect(JSON.parse(String(init?.body))).toMatchObject({
- allowedActions: ["deployment:data:view", "deployment:data:write"],
+ allowedActions: [
+ "deployment:data:view",
+ "deployment:data:write",
+ "deployment:backups:view",
+ "deployment:backups:import",
+ ],
});
return json({ deployKey: DEPLOY_KEY });
}
diff --git a/lib/infra/convex-cloud-runner.ts b/lib/infra/convex-cloud-runner.ts
index 90c52be8..ffd35630 100644
--- a/lib/infra/convex-cloud-runner.ts
+++ b/lib/infra/convex-cloud-runner.ts
@@ -74,7 +74,7 @@ export async function importConvexCloudSnapshot(
return withConvexEphemeralDeployKey(
deployment,
token,
- ["deployment:data:view", "deployment:data:write"],
+ ["deployment:data:view", "deployment:data:write", "deployment:backups:view", "deployment:backups:import"],
async (deployKey) => {
const modeFlag = input.mode === "replace-all" ? "--replace-all" : "--append";
const result = await execute(