Read Supabase's wrapped lists, create free projects directly, open Supabase in a new tab, keep installs clean

- list_organizations and list_projects reply {organizations: [...]} and {projects: [...]}: read both
- A $0 project is created without a cost confirmation, as Supabase's tool asks
- Connect Supabase opens Supabase in its own tab; broke's tab updates when the sign-in finishes
- Installs use npm ci, and npm run update puts back an npm-rewritten package-lock.json

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
minimus7andClaude Opus 5.5 committed 2026-11-09 11:54:33 -06:00
1 parent 0e1a05801c
commit 5893af22c1
5 files changed
+47 -11

No files matched your search

+2 -1
View File
@@ -15,7 +15,8 @@ if (Number(process.versions.node.split(".")[0]) < 20) {
const win = process.platform === "win32";
const npm = (...args) => spawnSync("npm", args, { stdio: "inherit", shell: win }).status === 0;
if (!existsSync("node_modules") && !npm("install")) process.exit(1);
// npm ci installs exactly what the repo pins and leaves package-lock.json as it is (so `npm run update` stays clean).
if (!existsSync("node_modules") && !npm("ci") && !npm("install")) process.exit(1);
const env = {};
for (const f of [".env", ".env.local"]) {
+3 -1
View File
@@ -11,6 +11,8 @@ const run = (...args) => spawnSync("git", args, inherit).status === 0;
const out = (...args) => spawnSync("git", args, { encoding: "utf8" }).stdout.trim();
const fail = (m) => { console.error(`\n${m}`); process.exit(1); };
// npm rewrites package-lock.json on some installs. That isn't a change of yours: put it back before updating.
if (out("status", "--porcelain") === "M package-lock.json") run("checkout", "--", "package-lock.json");
if (out("status", "--porcelain")) fail("You have changes that aren't committed. Commit them first: git add -A && git commit -m \"My changes\"");
if (!run("fetch", "--quiet", UPSTREAM, "main")) fail("Couldn't reach broke's repo. Check your connection and try again.");
const theirs = out("rev-parse", "FETCH_HEAD");
@@ -23,5 +25,5 @@ if (!out("merge-base", "HEAD", theirs)) {
if (!run("merge", "--quiet", "--ff-only", joined)) fail("Couldn't join this copy to broke's history.");
}
if (!run("merge", "--no-edit", theirs)) fail("Your changes and the update touch the same lines. Run `claude` here and ask it to resolve the merge.");
if (!ci && spawnSync("npm", ["install"], inherit).status !== 0) process.exit(1);
if (!ci && spawnSync("npm", ["ci"], inherit).status !== 0 && spawnSync("npm", ["install"], inherit).status !== 0) process.exit(1);
console.log(ci ? "\nUpdated." : "\nUpdated. Start broke again to use it. New database changes apply when it starts.");