getadvantage 0.1.0
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/README.md +62 -0
- package/brief.mjs +634 -0
- package/checks-runner.mjs +136 -0
- package/checks.mjs +327 -0
- package/deploy.mjs +203 -0
- package/handoff.mjs +272 -0
- package/index.mjs +181 -0
- package/overviews.mjs +536 -0
- package/package.json +38 -0
- package/util.mjs +142 -0
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# getadvantage
|
|
2
|
+
|
|
3
|
+
A local, dependency-free **pre-deploy gate + portable project brain** for apps
|
|
4
|
+
built with AI — Claude Code, Cursor, Lovable, Bolt, v0, Replit, and friends.
|
|
5
|
+
|
|
6
|
+
Run it in your repo. It reads your project and gives you:
|
|
7
|
+
|
|
8
|
+
- **A plain-language GO / NO-GO before you deploy** — no secrets in code, a clean
|
|
9
|
+
working tree, build + typecheck, a schema-version check.
|
|
10
|
+
- **A portable project brain** (`PROJECT-BRIEF.md`) — a one-page, model-agnostic
|
|
11
|
+
memory of your project that *any* model, session, or tool reads first, so you
|
|
12
|
+
never re-explain it.
|
|
13
|
+
- **A session handoff** (`HANDOFF.md`) — save your place, then start a fresh, fast
|
|
14
|
+
session (or switch models) with zero loss.
|
|
15
|
+
|
|
16
|
+
Your context lives in your **repo**, not your tool. Switch from Claude to Cursor
|
|
17
|
+
to Qwen and keep going — and start a clean, fast session instead of dragging a
|
|
18
|
+
slow, bloated one.
|
|
19
|
+
|
|
20
|
+
## Use it
|
|
21
|
+
|
|
22
|
+
No install needed:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx getadvantage # run the pre-deploy checks (GO / NO-GO)
|
|
26
|
+
npx getadvantage brief # generate / refresh the project brain
|
|
27
|
+
npx getadvantage handoff # save your place for the next session
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Or add it to your project:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm install --save-dev getadvantage
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```jsonc
|
|
37
|
+
// package.json
|
|
38
|
+
{ "scripts": { "ship-safe": "ship-safe" } }
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Commands
|
|
42
|
+
|
|
43
|
+
`getadvantage` and `ship-safe` are installed as aliases of the same command — use
|
|
44
|
+
whichever reads better to you.
|
|
45
|
+
|
|
46
|
+
| Command | What it does |
|
|
47
|
+
|---|---|
|
|
48
|
+
| `ship-safe` (default `check`) | Read-only pre-deploy checks → exit `0` on **GO**, `1` on **NO-GO**. Add `--build` for a full build. |
|
|
49
|
+
| `ship-safe brief` | Generate / refresh `PROJECT-BRIEF.md` — the **COLD** layer (what the project *is*). `--check` warns if it's stale; it never blocks. |
|
|
50
|
+
| `ship-safe handoff` | Refresh the brief **and** write `HANDOFF.md` — the **HOT** layer (where you *left off*). Your notes are preserved across refreshes; it never overwrites a `HANDOFF.md` it didn't create. |
|
|
51
|
+
| `ship-safe deploy` | _(Advanced)_ Deploy from a clean, detached worktree and confirm the deployment URL's project prefix. Runs a real `vercel --prod`; the project prefix is derived from your linked `.vercel` (or pass `--expect-prefix`). |
|
|
52
|
+
|
|
53
|
+
## What it is — and isn't
|
|
54
|
+
|
|
55
|
+
- It **reads and reports** — "here's what I found before you ship." It does **not**
|
|
56
|
+
claim your app is "secure" or "certified."
|
|
57
|
+
- It's **dependency-free** (Node built-ins only) and **read-only**, except for the
|
|
58
|
+
explicit `brief` / `handoff` writes (your two repo-resident files) and the
|
|
59
|
+
explicit `deploy` command.
|
|
60
|
+
- Nothing leaves your machine.
|
|
61
|
+
|
|
62
|
+
Requires **Node ≥ 18**. Built by [getAdvantage](https://getadvantage.app).
|