greenlitlab 0.5.2 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.4
4
+
5
+ - **Six Priberry tools.** The README, llms.txt, the site and guide footers and public report pages now name Rolelock too (`npx rolelock@0.1.0 ./my-app`), and the README and llms.txt give each tool its one command.
6
+
7
+ ## 0.5.3
8
+
9
+ - **"Copy all fixes" ends with a re-check.** The combined prompt (`--prompt all`, the web page's Copy all fixes button, and the MCP tool's `allFixes`) now closes with: "When every fix is live, check again at https://greenlit.priberry.com/?url=<your app> and tell me the new grade." The web and the CLI give the same words, and a test keeps them identical.
10
+ - **Claude Code plugin.** The repo is now a Claude Code plugin (`.claude-plugin/plugin.json` and `.mcp.json`) that runs `npx -y greenlitlab mcp`.
11
+ - **MCP registry.** Each release now also publishes to registry.modelcontextprotocol.io from GitHub Actions, signed in with the workflow's own GitHub identity.
12
+ - Public report pages name all five free tools from Priberry: Launch Blockers, Greenlit, Crumple, Tare and MarkOS.
13
+
3
14
  ## 0.5.2
4
15
 
5
16
  - **Keys baked into the built app are found.**
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  **Is your AI-built app safe to launch?** Greenlit grades a deployed app from A to F for what a stranger can use against it. It explains each problem in plain words and gives you a prompt to paste back into Lovable, Bolt, v0, Replit or Emergent that fixes it. Run it again after the fix, and it shows what got fixed.
4
4
 
5
- <p><img src="https://raw.githubusercontent.com/priberry-data/greenlitlab/main/docs/demo.gif" alt="Greenlit checks a Lovable app: grade F with a leaked Stripe key, then a fix prompt to paste back" width="720"></p>
5
+ <p><img src="https://raw.githubusercontent.com/priberry-data/greenlitlab/main/docs/demo.gif" alt="Greenlit checks a Lovable app: grade F with a leaked Stripe key and a Supabase service_role key in the page, a fix prompt to paste back, then grade A" width="720"></p>
6
6
 
7
7
  **In the browser:** [greenlit.priberry.com](https://greenlit.priberry.com). Paste your app's address. Nothing to install.
8
8
 
@@ -71,13 +71,20 @@ The last result for each app is kept in `~/.greenlit/sites/` (grade, finding ids
71
71
  Add Greenlit as an MCP server:
72
72
 
73
73
  ```json
74
- { "mcpServers": { "greenlit": { "command": "npx", "args": ["-y", "greenlitlab@0.5.1", "mcp"] } } }
74
+ { "mcpServers": { "greenlit": { "command": "npx", "args": ["-y", "greenlitlab@0.5.4", "mcp"] } } }
75
75
  ```
76
76
 
77
77
  Then ask your agent to check the app it just deployed and apply the fixes. The `greenlit_check` tool returns the grade, every finding and its fix prompt.
78
78
 
79
79
  ## Made by Priberry
80
80
 
81
- Greenlit comes from [Priberry](https://priberry.com), the crash-test lab for AI agents. Its sister tools: [Launch Blockers](https://greenlit.priberry.com/blockers/) stops a deploy that would leak your users' data, [Crumple](https://crumple.priberry.com) crash-tests coding agents, [Tare](https://tare.priberry.com) shows what they cost, and [MarkOS](https://markos.priberry.com) is an AI exec team on your own computer.
81
+ Greenlit comes from [Priberry](https://priberry.com), the crash-test lab for AI agents. Priberry makes six free, open-source tools:
82
+
83
+ - **[Launch Blockers](https://github.com/priberry-data/launch-blockers)**: the leaks AI-built apps ship, checked in your code. `npx launch-blockers check`
84
+ - **[Rolelock](https://github.com/priberry-data/rolelock)**: can your users raise their own role? Finds two holes in Supabase apps: signed-in users who can raise their own role, and edge functions that use the secret key with an id from the request. `npx rolelock@0.1.0 ./my-app`
85
+ - **Greenlit**: what a stranger can see in your live app. `npx greenlitlab yourapp.com`
86
+ - **[Crumple](https://github.com/priberry-data/crumplelab)**: a crash-test lab for AI coding agents. `npx crumplelab attack`
87
+ - **[Tare](https://github.com/priberry-data/tarelab)**: where your coding agent's tokens go. `npx tarelab`
88
+ - **[MarkOS](https://markos.priberry.com)**: an AI exec team on your own computer. `git clone https://github.com/priberry-data/markos && cd markos && ./install.sh`
82
89
 
83
90
  Apache-2.0. Found a problem? [Open an issue](https://github.com/priberry-data/greenlitlab/issues), or see [SECURITY.md](SECURITY.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greenlitlab",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "Is your AI-built app safe to launch? A grade from A to F for apps built with Lovable, Bolt, v0, Replit or Emergent, with a fix prompt for every problem. Checks leaks, open data and launch basics.",
5
5
  "type": "module",
6
6
  "bin": {
package/server.json CHANGED
@@ -5,12 +5,12 @@
5
5
  "description": "Grade apps built with Lovable, Bolt, v0 or Replit A to F, with a fix prompt for every problem.",
6
6
  "websiteUrl": "https://greenlit.priberry.com",
7
7
  "repository": { "url": "https://github.com/priberry-data/greenlitlab", "source": "github" },
8
- "version": "0.5.2",
8
+ "version": "0.5.4",
9
9
  "packages": [
10
10
  {
11
11
  "registryType": "npm",
12
12
  "identifier": "greenlitlab",
13
- "version": "0.5.2",
13
+ "version": "0.5.4",
14
14
  "transport": { "type": "stdio" },
15
15
  "packageArguments": [{ "type": "positional", "value": "mcp" }]
16
16
  }
package/src/grade.mjs CHANGED
@@ -934,12 +934,18 @@ export async function dbScan(plan, { fetcher = fetch, maxBytes = 8 * 1024 * 1024
934
934
  }
935
935
 
936
936
  // Every fix prompt in one, worst first, for people who'd rather paste once. The builder still gets one
937
- // problem at a time, and checks in after each.
937
+ // problem at a time, and checks in after each, and the last step sends the person back to check again.
938
+ // site/app.js has the same wording; test/prompts.test.mjs checks the two stay identical.
938
939
  export function allPrompts(r) {
939
940
  const list = r.findings.filter((f) => f.prompt);
940
941
  if (!list.length) return "";
942
+ let host = r.url;
943
+ try {
944
+ host = new URL(r.url).host;
945
+ } catch {}
941
946
  const head = `My app has ${list.length} problem${list.length > 1 ? "s" : ""} to fix. Work through them in this order, one at a time. After each one, tell me what you changed before moving on. Don't change anything unrelated.`;
942
- return [head, ...list.map((f, i) => `${i + 1}. ${f.title}.\n${f.prompt}`)].join("\n\n");
947
+ const again = `When every fix is live, check again at https://greenlit.priberry.com/?url=${host} and tell me the new grade.`;
948
+ return [head, ...list.map((f, i) => `${i + 1}. ${f.title}.\n${f.prompt}`), again].join("\n\n");
943
949
  }
944
950
 
945
951
  export const VERDICT = {