greenlitlab 0.5.2 → 0.5.3
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 +7 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/grade.mjs +8 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.3
|
|
4
|
+
|
|
5
|
+
- **"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.
|
|
6
|
+
- **Claude Code plugin.** The repo is now a Claude Code plugin (`.claude-plugin/plugin.json` and `.mcp.json`) that runs `npx -y greenlitlab mcp`.
|
|
7
|
+
- **MCP registry.** Each release now also publishes to registry.modelcontextprotocol.io from GitHub Actions, signed in with the workflow's own GitHub identity.
|
|
8
|
+
- Public report pages name all five free tools from Priberry: Launch Blockers, Greenlit, Crumple, Tare and MarkOS.
|
|
9
|
+
|
|
3
10
|
## 0.5.2
|
|
4
11
|
|
|
5
12
|
- **Keys baked into the built app are found.**
|
package/README.md
CHANGED
|
@@ -71,7 +71,7 @@ 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.
|
|
74
|
+
{ "mcpServers": { "greenlit": { "command": "npx", "args": ["-y", "greenlitlab@0.5.3", "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.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "greenlitlab",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
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.
|
|
8
|
+
"version": "0.5.3",
|
|
9
9
|
"packages": [
|
|
10
10
|
{
|
|
11
11
|
"registryType": "npm",
|
|
12
12
|
"identifier": "greenlitlab",
|
|
13
|
-
"version": "0.5.
|
|
13
|
+
"version": "0.5.3",
|
|
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
|
-
|
|
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 = {
|