lurqrun 0.1.7 → 0.1.8

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.
Files changed (122) hide show
  1. package/README.md +312 -148
  2. package/dist/{auditHandler-JCOJSUYW.js → auditHandler-VWCXSDVO.js} +12 -11
  3. package/dist/autopilotInit-Q62MX5M6.js +178 -0
  4. package/dist/bin/lurq.js +235 -83
  5. package/dist/{browserAuth-B6G27USY.js → browserAuth-J7APSD4P.js} +4 -3
  6. package/dist/{cache-DKI34SVS.js → cache-AEAKCV4I.js} +2 -2
  7. package/dist/check-2JTQDQA6.js +2613 -0
  8. package/dist/{check-2FDGUOV7.js → check-PQSQ2MMA.js} +1 -1
  9. package/dist/checkUpgrade-5YW77OBL.js +24 -0
  10. package/dist/{chunk-BCANRN5B.js → chunk-2GAYNIHG.js} +8 -1
  11. package/dist/{chunk-EA3DP5HG.js → chunk-2O6Z37IT.js} +155 -25
  12. package/dist/{chunk-J5FZYN4A.js → chunk-2WD4QAH4.js} +1 -1
  13. package/dist/{chunk-CUP36ND3.js → chunk-3676XOBU.js} +145 -36
  14. package/dist/chunk-3D2MPGOQ.js +181 -0
  15. package/dist/{chunk-LYMPYETA.js → chunk-4JHDSVIN.js} +270 -6
  16. package/dist/chunk-53SG6XWA.js +141 -0
  17. package/dist/chunk-5ABNDB3I.js +37 -0
  18. package/dist/chunk-5ALIJFDA.js +114 -0
  19. package/dist/{chunk-BULZAX2U.js → chunk-64ZF7KO4.js} +55 -38
  20. package/dist/{chunk-2VMOWSRY.js → chunk-6DM6UQFD.js} +19 -1
  21. package/dist/{chunk-HWBBVLOT.js → chunk-6L67QMCP.js} +1 -1
  22. package/dist/{chunk-GPTKSNR6.js → chunk-72Y2FDVS.js} +2 -1
  23. package/dist/{chunk-B43LCXBM.js → chunk-A3TYI2TF.js} +81 -16
  24. package/dist/{chunk-IQ4SDKKY.js → chunk-B2UUYRBX.js} +31 -228
  25. package/dist/{chunk-DB2VF5UD.js → chunk-BJT2LHAR.js} +16 -11
  26. package/dist/chunk-BM3LF5T6.js +132 -0
  27. package/dist/{chunk-3N3Q3DSW.js → chunk-BN3NM47Q.js} +8 -8
  28. package/dist/chunk-D3K6IZVR.js +12845 -0
  29. package/dist/{chunk-AHBP533R.js → chunk-D3VTZS7V.js} +7 -5
  30. package/dist/{chunk-UDVNA7EA.js → chunk-DM37MTOO.js} +161 -8
  31. package/dist/chunk-DONTW3NE.js +171 -0
  32. package/dist/{chunk-M6NYEXCW.js → chunk-DSROTZ3Z.js} +1 -1
  33. package/dist/{chunk-4F7ZESPO.js → chunk-EQCXENKZ.js} +3 -5
  34. package/dist/{chunk-CW5HJ3LX.js → chunk-EYAKM6YN.js} +1 -1
  35. package/dist/{chunk-VL2E5T2A.js → chunk-FDFPMBCA.js} +6 -3
  36. package/dist/{chunk-BV32UNLL.js → chunk-FVYFV5HA.js} +2 -2
  37. package/dist/{chunk-DWAGCNEL.js → chunk-GM5Y555O.js} +36 -103
  38. package/dist/{chunk-PSX3GIAN.js → chunk-HWFX4BC4.js} +2 -1
  39. package/dist/chunk-IFNONGRQ.js +603 -0
  40. package/dist/chunk-J3U2CPSK.js +136 -0
  41. package/dist/{chunk-Y5GI7RL3.js → chunk-J6XQ7OPZ.js} +9 -1
  42. package/dist/{chunk-LBFGSSF2.js → chunk-KMV4Y6R3.js} +2 -1
  43. package/dist/{chunk-L6N4JFW2.js → chunk-KP5ZDDPE.js} +81 -4
  44. package/dist/{chunk-SJOVFF7B.js → chunk-KYKSZ3XZ.js} +3 -2
  45. package/dist/chunk-NEZNAPPN.js +41 -0
  46. package/dist/{chunk-NH5I4KHH.js → chunk-NPVN2THM.js} +1 -5
  47. package/dist/{chunk-6L3U7DZ5.js → chunk-NYZU5NCW.js} +1 -1
  48. package/dist/chunk-O4KHCV6I.js +320 -0
  49. package/dist/{chunk-LO35HLQZ.js → chunk-ONDVTXUO.js} +25 -4
  50. package/dist/{chunk-4ZYCIMY4.js → chunk-OTJFHESY.js} +25 -4
  51. package/dist/chunk-P6MIKSPY.js +243 -0
  52. package/dist/{checkUpgrade-F2WESBPM.js → chunk-QCRBX3LV.js} +72 -10
  53. package/dist/{chunk-LRD4GBYE.js → chunk-QUIMQ7YL.js} +1 -1
  54. package/dist/chunk-RG3YLU6E.js +49 -0
  55. package/dist/{chunk-ST2X2GYN.js → chunk-SHZFOSXC.js} +109 -20
  56. package/dist/{chunk-CIDWNUAP.js → chunk-SOXFMMXC.js} +8 -2
  57. package/dist/chunk-TDTYV6QI.js +119 -0
  58. package/dist/{chunk-FW6BD2NO.js → chunk-TUXQ32WE.js} +457 -121
  59. package/dist/{chunk-WQ23REYT.js → chunk-VGCDRK3S.js} +1 -1
  60. package/dist/{chunk-U5AT3TD4.js → chunk-X4W64MHU.js} +1735 -1858
  61. package/dist/chunk-XBQA4I36.js +92 -0
  62. package/dist/chunk-XGOV6KV4.js +413 -0
  63. package/dist/{chunk-OQS4GUSI.js → chunk-XIFQIFSZ.js} +210 -661
  64. package/dist/{chunk-XBIDMHSK.js → chunk-XLXPVN3Y.js} +2 -34
  65. package/dist/chunk-ZJMLQ37G.js +90 -0
  66. package/dist/{client-IRKAMDYZ.js → client-MU4EUDZV.js} +3 -3
  67. package/dist/{commands-FIL5ET6P.js → commands-UOOTMBKA.js} +145 -33
  68. package/dist/{compat-R3UTFQ5Q.js → compat-Q5DVPITN.js} +6 -6
  69. package/dist/constants-DJFOFZ44.js +24 -0
  70. package/dist/{dashboardIssue-WYYMBFIB.js → dashboardIssue-KBKLQMGC.js} +105 -23
  71. package/dist/{diff-GZA2774U.js → diff-I4SNUHU3.js} +1 -1
  72. package/dist/domains-VRT4BRVZ.js +14 -0
  73. package/dist/env-UN6KGZ7S.js +15 -0
  74. package/dist/envCheck-KUPTORFQ.js +71 -0
  75. package/dist/{extract-NKGKLIVT.js → extract-6WG265BL.js} +14 -3
  76. package/dist/{fetch-QYTUJVG2.js → fetch-PJ3SC32M.js} +4 -4
  77. package/dist/{firstTouch-QQTJH4QX.js → firstTouch-COJCMOB3.js} +1 -1
  78. package/dist/fix-3EDWNKW3.js +220 -0
  79. package/dist/{handlers-GEJAVZDK.js → handlers-4Q37WIFT.js} +19 -17
  80. package/dist/hook-NA66XJLC.js +412 -0
  81. package/dist/{http-ETPYMBGD.js → http-25GJ6SKK.js} +2078 -510
  82. package/dist/{ingestQueue-VKN4KBIF.js → ingestQueue-FSVJC3AA.js} +14 -12
  83. package/dist/{install-EK3W2COX.js → install-G2HHXYJ2.js} +6 -6
  84. package/dist/{installSkill-VQJWJVCL.js → installSkill-5TIMYIJZ.js} +21 -3
  85. package/dist/manifest-ENMIC54B.js +13 -0
  86. package/dist/{mcp-3JHD5SUZ.js → mcp-PENLL2PK.js} +60 -32
  87. package/dist/mcpConfig-3LYPRY5Q.js +80 -0
  88. package/dist/{mcpHandlers-QFN4MCFL.js → mcpHandlers-PO7GENA7.js} +7 -7
  89. package/dist/{mcpScan-QZHWENIP.js → mcpScan-ULP626TQ.js} +306 -442
  90. package/dist/{mcpScanWorkflow-JPYCBGC4.js → mcpScanWorkflow-27O44FOE.js} +29 -12
  91. package/dist/{mcpStack-BYJCZNIV.js → mcpStack-ZNYIFXZ5.js} +1 -1
  92. package/dist/model-ASMZWLM7.js +214 -0
  93. package/dist/{packages-THVFMWFP.js → packages-RWF2LXST.js} +3 -5
  94. package/dist/{plan-V4OEI3J4.js → plan-SDILIDZT.js} +23 -21
  95. package/dist/{planView-JRXGCG2N.js → planView-ZAKRTGVS.js} +4 -1
  96. package/dist/{policy-3P6BGRDN.js → policy-JAGNMQJI.js} +5 -5
  97. package/dist/probe-3IK646WN.js +610 -0
  98. package/dist/publicUpgrades-WTBGLDIK.js +42 -0
  99. package/dist/{references-6N7VEPHT.js → references-I6Y4BSRR.js} +3 -1
  100. package/dist/{release-4U4ABNSJ.js → release-7IU2R4YG.js} +5 -5
  101. package/dist/{remote-YGCXYI4V.js → remote-FN6225AH.js} +13 -3
  102. package/dist/rename-OS6JYBZQ.js +204 -0
  103. package/dist/{reportRuns-CKQQYLY4.js → reportRuns-O4X7ZFTX.js} +15 -2
  104. package/dist/safeFetch-COERXGFN.js +19 -0
  105. package/dist/{sandbox-MEZLAODF.js → sandbox-SAPSRKEI.js} +4 -4
  106. package/dist/sarif-WLVJFJ7U.js +125 -0
  107. package/dist/server-OLTY3NYT.js +59 -0
  108. package/dist/{surface-V62GE554.js → surface-7MHE3RL7.js} +18 -16
  109. package/dist/{surface-YL6O67W3.js → surface-JS2XU3U3.js} +5 -3
  110. package/dist/{surfaceHandlers-X2IZKA3E.js → surfaceHandlers-4B6TMZ34.js} +5 -5
  111. package/dist/{typecheck-X7U5ELMR.js → typecheck-NGOKNAJY.js} +23 -9
  112. package/dist/{uninstall-P7RGBX6G.js → uninstall-I2IJP5JZ.js} +30 -4
  113. package/dist/{upgrade-NQ5IWFZB.js → upgrade-FS26DJGG.js} +86 -32
  114. package/dist/{upgradePlan-A4LRKLEG.js → upgradePlan-ZS5IOVMZ.js} +46 -11
  115. package/dist/upkeepHandler-VFGYXJKB.js +13 -0
  116. package/dist/{userConfig-Z3GQE776.js → userConfig-ICASHI47.js} +1 -1
  117. package/dist/{watch-DGFMWUDL.js → watch-OCNEUXG6.js} +24 -34
  118. package/package.json +3 -2
  119. package/templates/skill-instructions.md +22 -3
  120. package/dist/chunk-6AAEVQ7I.js +0 -6336
  121. package/dist/chunk-I2JUKN6Z.js +0 -24
  122. package/dist/server-KFUD5X57.js +0 -55
package/README.md CHANGED
@@ -2,195 +2,300 @@
2
2
 
3
3
  # lurq
4
4
 
5
- **The verification layer for AI coding agents to ship unbreakable code.**
5
+ **The verification layer for everything your agent installs.**
6
6
 
7
- A live index of npm scored from public signals and co-installation through a sandbox. Use lurq
8
- through an MCP server, CLI, HTTP API, or an installable agent skill.
7
+ Your coding agent picks npm packages from memory. lurq checks them against the live
8
+ registry, security advisories, shipped type definitions and real co-installs, before
9
+ anything lands in `package.json`.
9
10
 
10
11
  [![npm version](https://img.shields.io/npm/v/lurqrun?color=%230b7285&label=npm)](https://www.npmjs.com/package/lurqrun)
11
12
  [![npm downloads](https://img.shields.io/npm/dm/lurqrun?color=%230b7285)](https://www.npmjs.com/package/lurqrun)
13
+ [![MCP Registry](https://img.shields.io/badge/MCP_Registry-io.github.jadenryu%2Flurq-6E56CF)](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.jadenryu/lurq)
12
14
  [![license](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
13
15
  [![node](https://img.shields.io/badge/node-%3E%3D20-339933?logo=node.js&logoColor=white)](https://nodejs.org)
14
- [![MCP](https://img.shields.io/badge/MCP-compatible-6E56CF)](https://modelcontextprotocol.io)
15
16
 
16
- [Quick start](#quick-start) · [MCP tools](#mcp-tools) · [CLI](#cli) · [Autopilot](#autopilot) · [How ranking works](#how-ranking-works) · [Docs](https://lurq.run/docs)
17
+ [Install](#install) · [For AI agents](#for-ai-agents) · [MCP tools](#mcp-tools) · [CLI](#cli) · [Autopilot](#autopilot) · [Docs](https://www.lurq.run/docs)
17
18
 
18
19
  </div>
19
20
 
21
+ ```text
22
+ $ lurq verify lodahs
23
+ lodahs ✗ do not install 0.0.1-security (latest) without review
24
+ • name closely mimics "lodash" — possible typosquat
25
+ • 1 critical/high advisory(ies) recorded against this package
26
+ risk flags: possible-typosquat-of:lodash, low-downloads, single-maintainer, has-known-advisory
27
+
28
+ $ lurq verify zod
29
+ zod ✓ no supply-chain problems found in 4.6.4 (latest)
30
+ weekly dl: 209.2M confidence: proven advisories: 0
31
+
32
+ $ lurq compat next @auth/core next-auth
33
+ next + @auth/core + next-auth conflict
34
+ peer-deps next-auth needs peer @auth/core@0.34.3, but the stack uses @auth/core@0.41.3
35
+ ```
36
+
37
+ Real output, not a mockup. Your agent gets the same answers over MCP.
38
+
20
39
  ---
21
40
 
22
- ## Why
41
+ ## Why your agent needs this
23
42
 
24
- Your agent is terrible at resolving dependency matrices and maintaining old projects, leading to stack version drift.
43
+ A model's knowledge of npm stops at its training cutoff. The registry doesn't.
25
44
 
26
- lurq reads the shipped code instead and caches it so we can diff surfaces across versions. lurq upgrades stacks and reports failures before they can even happen. lurq is what the agent checks first when planning, updating, or deploying any project.
45
+ - **Invented and typosquatted names.** Agents confidently install packages that don't exist, or that
46
+ exist only because someone registered the misspelling.
47
+ - **APIs that moved.** Of the 38,752 packages lurq tracks, 2,725 shipped a new major version between
48
+ May 1 and September 13, 2026. Code written from memory calls functions that were renamed or removed.
49
+ - **Stacks that don't install together.** Every package can be healthy on its own while the set
50
+ fails on a peer or engine range. That usually surfaces at deploy.
27
51
 
28
- lurq's information comes from readable and executable sources. These include analyzing advisories, release cadence, deprecations, and sandboxing. Compatibility edges are
29
- minted continuously and stored in a Postgres database. Responses are
30
- compact and token-budgeted so lurq works alongside your agent.
52
+ lurq answers from evidence it can show: **47,238 packages scored, 4.2M versions tracked, 34,843 API
53
+ surfaces extracted from shipped code, and 27M co-install pairs**, refreshed daily from npm, GitHub,
54
+ deps.dev and OSV. Every answer carries a `dataAsOf` timestamp.
31
55
 
32
- > **Scope:** the JavaScript/TypeScript web stack (npm) only.
56
+ > **Scope:** the JavaScript/TypeScript ecosystem (npm).
33
57
 
34
58
  ---
35
59
 
36
- ## Quick start
60
+ ## Install
37
61
 
38
- lurq is a **hosted service** — you don't run a database or a sync. One command,
39
- with nothing installed first:
62
+ One command, once per machine. Nothing to install first:
40
63
 
41
64
  ```bash
42
65
  npx lurqrun
43
66
  ```
44
67
 
45
- This command runs the guided setup, allowing you to sign in and validate your system with an API key. lurq automatically
46
- detects your installed assistants and writes a remote MCP entry.
68
+ The setup wizard:
47
69
 
48
- ```json
49
- {
50
- "type": "http",
51
- "url": "https://api.lurq.run/mcp",
52
- "headers": { "Authorization": "Bearer ..." }
53
- }
54
- ```
70
+ 1. Opens lurq in your browser. Sign in and the key comes back to the terminal by itself.
71
+ 2. Detects every coding agent on the machine.
72
+ 3. Writes a keyed remote MCP entry for each, in the shape that agent expects.
73
+ 4. Installs standing instructions where the agent supports them, so it reaches for lurq instead of
74
+ answering from memory.
75
+
76
+ Restart your agent afterward. **The free plan includes 1,000 hosted calls a month and never asks
77
+ for a card.**
78
+
79
+ **Works with:** Claude Code · Cursor · Windsurf · VS Code / GitHub Copilot · OpenAI Codex CLI ·
80
+ Gemini CLI · Google Antigravity · Kiro
55
81
 
56
- **No database credentials ever touch your machine.** Restart your agent afterward.
82
+ **Check it worked:** ask your agent to _"add zod to this project"_. It should call lurq's `verify`
83
+ before installing anything.
84
+
85
+ **Claude Code plugin**, no terminal needed:
86
+
87
+ ```text
88
+ /plugin marketplace add jadenryu/lurq
89
+ /plugin install lurq@lurq
90
+ ```
57
91
 
58
- ### The `lurq` command
92
+ One-click links for Cursor and VS Code are in the
93
+ [quickstart](https://www.lurq.run/docs/quickstart#one-click-install).
59
94
 
60
- The package is published as **`lurqrun`**. The command you type is `lurq`, and it exists only once the package is
61
- installed.
95
+ The package is published as **`lurqrun`** (the bare name was taken). The command is `lurq`:
62
96
 
63
97
  ```bash
64
- npm install -g lurqrun # then `lurq` works in any terminal
98
+ npm install -g lurqrun
65
99
  lurq --version
66
100
  ```
67
101
 
68
- <details>
69
- <summary><b>Supported assistants</b></summary>
102
+ ---
70
103
 
71
- Claude Code · Cursor · Windsurf · VS Code / Copilot · Codex · Gemini CLI ·
72
- Antigravity · Kiro
104
+ ## For AI agents
73
105
 
74
- Target one explicitly with `npx lurqrun install-skill --agent <name>`, or
75
- self-host against your own database with `--local`.
106
+ If you are an AI coding agent and your user asked you to set up lurq, follow these steps.
76
107
 
77
- </details>
108
+ **1. Run setup.**
78
109
 
79
- <details>
80
- <summary><b>Uninstall, or start over</b></summary>
110
+ ```bash
111
+ npx lurqrun setup
112
+ ```
81
113
 
82
- **Reinstall** is just setup again. It is safe to re-run and overwrites previous runs.
114
+ In your shell it does not prompt: it prints a one-time sign-in link and exits right away. Give the
115
+ user that link. When they sign in on this computer, lurq stores a key and connects every detected
116
+ coding agent by itself. Never invent a key.
117
+
118
+ **2. Or configure non-interactively** when the user already has a key from
119
+ [lurq.run/dashboard/keys](https://www.lurq.run/dashboard/keys), or on a cloud, SSH or CI machine, where
120
+ a sign-in link on this computer can't work:
83
121
 
84
122
  ```bash
85
- npx lurqrun
123
+ npx lurqrun setup --yes --no-open --api-key <key> --agent <id>
86
124
  ```
87
125
 
88
- **Uninstall** undoes setup, and leaves everything else in those files as it was:
126
+ | Agent | `--agent` |
127
+ | ------------------------ | ------------- |
128
+ | Claude Code | `claude-code` |
129
+ | Cursor | `cursor` |
130
+ | Windsurf | `windsurf` |
131
+ | VS Code / GitHub Copilot | `copilot` |
132
+ | OpenAI Codex CLI | `codex` |
133
+ | Gemini CLI | `gemini-cli` |
134
+ | Google Antigravity | `antigravity` |
135
+ | Kiro | `kiro` |
89
136
 
90
- ```bash
91
- lurq uninstall # MCP entries, agent instructions, the stored key
92
- lurq uninstall --agent cursor # just one agent
93
- npm uninstall -g lurqrun # then remove the `lurq` command itself
137
+ `--agent all` configures every detected agent. With `--yes`, the key can also come from `LURQ_API_KEY`.
138
+
139
+ Some checks need no key at all. `npx lurqrun check-upgrade --upgrade <package>@<from>..<to>` compares an
140
+ upgrade against the names your code actually imports, locally.
141
+
142
+ **3. Tell the user to restart the agent**, then confirm `lurq` appears in its MCP tool list.
143
+
144
+ <details>
145
+ <summary><b>Writing the MCP config by hand</b></summary>
146
+
147
+ Endpoint: `https://api.lurq.run/mcp` (streamable HTTP), header `Authorization: Bearer <key>`. The
148
+ field names differ by client:
149
+
150
+ **Claude Code** (`~/.claude.json`, under `mcpServers`) and **VS Code** (`mcp.json`, under `servers`):
151
+
152
+ ```json
153
+ "lurq": { "type": "http", "url": "https://api.lurq.run/mcp", "headers": { "Authorization": "Bearer <key>" } }
94
154
  ```
95
155
 
96
- It lists what it will remove and asks first (`--yes` skips the question). For reference, these are the files setup
97
- writes to:
98
-
99
- | Assistant | MCP config | Instructions file |
100
- |---|---|---|
101
- | Claude Code | `~/.claude.json` | `~/.claude/skills/lurq/SKILL.md` |
102
- | Cursor | `~/.cursor/mcp.json` | |
103
- | Windsurf | `~/.codeium/windsurf/mcp_config.json` | `~/.codeium/windsurf/memories/global_rules.md` |
104
- | VS Code / Copilot | `<VS Code user dir>/mcp.json` | |
105
- | Codex | `~/.codex/config.toml` | `~/.codex/AGENTS.md` |
106
- | Gemini CLI | `~/.gemini/settings.json` | `~/.gemini/GEMINI.md` |
107
- | Antigravity | `~/.gemini/config/mcp_config.json` | `~/.gemini/GEMINI.md` |
108
- | Kiro | `~/.kiro/settings/mcp.json` | `~/.kiro/steering/lurq.md` |
109
-
110
- `lurq logout` **only** clears the key stored for the CLI; a copy of it lives in each MCP entry above until
111
- `lurq uninstall` removes them. Either way the key keeps working until you revoke it from
112
- [the dashboard](https://www.lurq.run/dashboard/keys).
156
+ **Cursor** (`~/.cursor/mcp.json`) and **Kiro** (`~/.kiro/settings/mcp.json`), under `mcpServers`:
157
+
158
+ ```json
159
+ "lurq": { "url": "https://api.lurq.run/mcp", "headers": { "Authorization": "Bearer <key>" } }
160
+ ```
161
+
162
+ **Windsurf** (`~/.codeium/windsurf/mcp_config.json`) and **Antigravity** (`~/.gemini/config/mcp_config.json`), under `mcpServers`:
163
+
164
+ ```json
165
+ "lurq": { "serverUrl": "https://api.lurq.run/mcp", "headers": { "Authorization": "Bearer <key>" } }
166
+ ```
167
+
168
+ **Gemini CLI** (`~/.gemini/settings.json`, under `mcpServers`). It must be `httpUrl`, because a
169
+ plain `url` is read as SSE:
170
+
171
+ ```json
172
+ "lurq": { "httpUrl": "https://api.lurq.run/mcp", "headers": { "Authorization": "Bearer <key>" } }
173
+ ```
174
+
175
+ **Codex** (`~/.codex/config.toml`). Headers go in an inline table:
176
+
177
+ ```toml
178
+ [mcp_servers.lurq]
179
+ url = "https://api.lurq.run/mcp"
180
+ http_headers = { Authorization = "Bearer <key>" }
181
+ ```
113
182
 
114
183
  </details>
115
184
 
185
+ ### When to call lurq
186
+
187
+ | You are about to… | Call |
188
+ | ----------------------------------------------------- | -------------------------------------------------------------------- |
189
+ | Install or import a package | `verify` with the exact name, first |
190
+ | Choose between libraries | `compare` your candidates, then `verify` the pick |
191
+ | Commit to a set of packages | `compat` with the whole set in one call |
192
+ | Write code against a package whose API may have moved | `usage`, with the version you remember as `knownVersion` |
193
+ | Upgrade, or explain a break | `diff_surface` between the two versions |
194
+ | Add dependencies in a team codebase | `policy`, before choosing |
195
+ | Review a whole project | `audit` with names and versions from `package.json` and the lockfile |
196
+ | Wire an MCP server into an agent | `mcp_surface`, or `mcp_stack` for several |
197
+ | Not sure which tool fits | `capabilities` |
198
+
199
+ When lurq flags something, tell the user what it found and that it came from lurq. An `unknown` or
200
+ `UNVERIFIABLE` result means lurq could not check. It never means the package is clean.
201
+
202
+ Machine-readable docs: [lurq.run/llms.txt](https://www.lurq.run/llms.txt) ·
203
+ [lurq.run/docs/llms-full.txt](https://www.lurq.run/docs/llms-full.txt)
204
+
116
205
  ---
117
206
 
118
207
  ## MCP tools
119
208
 
120
- lurq can call these tools over MCP. Every response
121
- carries a `dataAsOf` timestamp so your agents know how fresh the information is.
209
+ Fifteen tools. Responses are compact to save tokens, and package answers carry `dataAsOf`.
210
+
211
+ **Before installing**
212
+
213
+ | Tool | What it answers |
214
+ | ---------- | -------------------------------------------------------------------------------------- |
215
+ | `verify` | Is this package real, healthy and safe? Catches hallucinated and typosquatted names |
216
+ | `evaluate` | The full evidence for one package: scores, advisories, usage guide, sandbox verdict |
217
+ | `compare` | 2–5 packages ranked head-to-head |
218
+ | `policy` | What your team's selection policy refuses, so the agent picks an allowed package first |
219
+
220
+ **Across a stack**
221
+
222
+ | Tool | What it answers |
223
+ | --------- | ------------------------------------------------------------------------------------------------------- |
224
+ | `compat` | Will these packages install together? Returns the exact clashing peer or engine range |
225
+ | `audit` | A whole project's outdated, deprecated and vulnerable dependencies and drifted MCP servers, in one call |
226
+ | `diagram` | A reference-architecture Mermaid diagram for a stack |
227
+
228
+ **Writing code**
229
+
230
+ | Tool | What it answers |
231
+ | ----------------- | ------------------------------------------------------------------------------------------------- |
232
+ | `usage` | A version's real public API from its shipped `.d.ts`, and what changed since the version you know |
233
+ | `resolve_surface` | What a version actually exports at runtime |
234
+ | `diff_surface` | What a version bump adds, removes, renames or changes arity on |
235
+
236
+ **MCP servers**
122
237
 
123
- | Tool | What it answers |
124
- |---|---|
125
- | `evaluate` | Full evidence read for one package — scores, advisories, usage guide |
126
- | `compare` | 2–5 packages ranked head-to-head |
127
- | `verify` | Is this package real, healthy, and not risky? *(anti-hallucination guard)* |
128
- | `compat` | Will these packages actually install together? (peer/engine constraints) |
129
- | `diagram` | A reference-architecture Mermaid diagram for a stack |
130
- | `usage` | A version's *real* public API — symbols and signatures from its shipped `.d.ts` |
131
- | `resolve_surface` | The exact export surface of one package version |
132
- | `diff_surface` | What a version bump adds, removes, renames, or changes arity on |
133
- | `report_outcome` | What happened after a pick shipped — installed clean, broke the build, resolved the task |
238
+ | Tool | What it answers |
239
+ | ------------- | -------------------------------------------------------------------------------------------------------------- |
240
+ | `mcp_surface` | A server's real tool contract, from a live `tools/list` handshake, including what each tool can write or reach |
241
+ | `mcp_drift` | What a server changed between two versions |
242
+ | `mcp_stack` | Do these servers collide in one agent's tool namespace? |
134
243
 
135
- `usage` outputs the delta between your agent's analysis of a package versus lurq's ground truth. That fact
136
- exists in no changelog and no model's training data.
244
+ **About lurq**
245
+
246
+ | Tool | What it answers |
247
+ | ---------------- | --------------------------------------------------------------- |
248
+ | `capabilities` | Which lurq tool answers this situation |
249
+ | `report_outcome` | What happened after a pick shipped, which feeds future rankings |
250
+
251
+ Inputs, outputs and verdict definitions for each: [MCP tools reference](https://www.lurq.run/docs/mcp-tools).
137
252
 
138
253
  ---
139
254
 
140
255
  ## CLI
141
256
 
142
- The same index, scriptable. Every capability is a subcommand.
257
+ The same index, scriptable. Every read command takes `--json`.
143
258
 
144
259
  ```bash
145
- # Evidence
260
+ # Before installing
261
+ lurq verify jsonwebtoken
146
262
  lurq evaluate zod
147
263
  lurq compare date-fns dayjs moment
148
- lurq verify jsonwebtoken
149
-
150
- # API surfaces
151
- lurq usage zod --known 3.22.4 # what changed since the version you know
152
- lurq versions react # version timeline (self-hosted index only)
153
264
 
154
- # Stacks
155
- lurq compat next react react-dom # do these install together?
265
+ # Stacks and projects
266
+ lurq compat next react react-dom
267
+ lurq audit . # every dependency and MCP server in the project
156
268
 
157
- # Upgrades
269
+ # APIs and upgrades
270
+ lurq usage zod --known 3.22.4 # what changed since the version you know
158
271
  lurq upgrade-plan . # what's behind, and what each upgrade removes
159
272
  lurq check-upgrade . --plan lurq-plan.json --exit-code
160
273
 
161
- # Shipping your own (the same diff, pointed the other way)
274
+ # Publishing your own package
162
275
  lurq check-release # is the version you're about to publish honest?
163
- lurq check-api --against origin/main # does this break the callers of your API?
276
+ lurq check-api --against origin/main # does this break your API's callers?
164
277
 
165
- # Finding your way around
166
- lurq can "will this upgrade break my code" # which lurq capability answers this?
278
+ # MCP servers
279
+ lurq mcp-scan # read the servers you have configured, record what changed
167
280
 
168
- # Configuration & serving
169
- lurq weights # the exact ranking weights, printed
170
- lurq edit-weights --set composite.lambda=0.5
171
- lurq uninstall # take lurq back out of every agent config
281
+ # Team policy
282
+ lurq policy pull policy.json # keep the selection policy in a reviewed file
283
+ lurq policy push policy.json # and apply it from CI (needs a policy:write key)
172
284
 
173
- # Self-hosting (your own Postgres via DATABASE_URL)
174
- lurq serve-http # run it as a rate-limited service of your own
285
+ # Finding your way
286
+ lurq can "will this upgrade break my code" # which capability answers this?
175
287
  ```
176
288
 
177
- Every read command takes `--json` for machine-readable output.
178
-
179
- The published CLI installs only what the commands above need. Self-hosting (`lurq serve`, `lurq serve-http`, or a
180
- local `DATABASE_URL` index) also needs the server packages (Postgres driver, Express, Redis client, and so on); the
181
- first command that needs them prints the exact `npm install` line.
289
+ Full reference: [CLI docs](https://www.lurq.run/docs/cli).
182
290
 
183
291
  ---
184
292
 
185
293
  ## Autopilot
186
294
 
187
- lurq also keeps a repository's dependencies current **and rewrites the code an
188
- upgrade breaks.**
189
-
190
- lurq can open PRs addressing the symbol-level API surface diff
191
- and resolve with what calls your code references.
295
+ lurq keeps a repository's dependencies current, and names the code an upgrade breaks before it merges.
192
296
 
193
- **The gate needs no tests at all.**
297
+ The check reads the symbol-level API diff between versions and matches it against what your code
298
+ actually references. **It needs no tests.**
194
299
 
195
300
  ```
196
301
  blocking a referenced symbol or deep import disappears,
@@ -201,70 +306,129 @@ ok nothing referenced is affected
201
306
  unverified could not be established → never counted as safe
202
307
  ```
203
308
 
204
- ### The loop
309
+ | Step | Runs on | Needs |
310
+ | ----------------------------------------------------------------------------------------------------- | ----------- | -------------------- |
311
+ | 1. `lurq upgrade-plan`: drift, plus what each upgrade removes | your runner | lurq key |
312
+ | 2. `lurq check-upgrade`: matched against your source, with `file:line` | your runner | nothing |
313
+ | 3. `lurq fix`: applies what the package itself proves — renames, and the range bump in every manifest | your runner | nothing |
314
+ | 4. `claude-code-action`: migrates what a rule cannot, and runs your tests | your runner | Anthropic credential |
315
+ | 5. `create-pull-request`: one branch, one PR | your runner | `GITHUB_TOKEN` |
316
+ | 6. Outcomes post back: names and counts, never source | lurq | nothing |
317
+
318
+ **Three modes, and editing is opt-in.** The workflow starts in `comment`: it plans, checks, writes the
319
+ brief to the run summary, and changes nothing. `fix` opens a pull request containing only what the
320
+ package itself proves — renamed call sites, and the range bump in every manifest — so it needs **no
321
+ Anthropic credential**, and it is what a newly armed repo gets. `pr` is `fix` plus the agent, for the
322
+ changes a rule cannot make. Step 4 above is the only one that needs a model, so only `pr` does.
323
+
324
+ The dashboard setting governs repos that already installed the workflow: each run reads the mode from
325
+ the plan response rather than from the committed file.
326
+
327
+ Cadence follows scope — weekly for the scopes that track breakage, since majors arrive slowly enough
328
+ that a daily run mostly reports nothing new; daily for a repo set to advisories-only, because weekly
329
+ can mean seven days sitting on a known CVE.
330
+
331
+ **Trust model.** lurq's GitHub App holds `Contents: read-only` and `Actions: write`. It can read your
332
+ manifests and _start_ the workflow you committed — it cannot write a byte to your repository, change
333
+ this file, or set a repository variable. Every write is made by the workflow itself using your own
334
+ ephemeral `GITHUB_TOKEN`, bounded by the `permissions:` block in the file you control. The agent's allowlist is
335
+ `Read,Edit,Write,Bash(<pkg-manager>:*)`, so it edits files but never touches version control.
336
+ Removing it is `git rm .github/workflows/lurq-upgrade.yml`.
205
337
 
206
- | Step | Runs on | Needs |
207
- |---|---|---|
208
- | 1. `lurq upgrade-plan` — drift + what each upgrade removes | your runner | lurq key |
209
- | 2. `lurq check-upgrade` — intersect with your source, `file:line` | your runner | nothing |
210
- | 3. `claude-code-action` — rewrite the named call sites, run your tests | your runner | Anthropic credential |
211
- | 4. `create-pull-request` — one branch, one PR | your runner | `GITHUB_TOKEN` |
212
- | 5. Outcomes post back — names and counts, never source | lurq | — |
213
-
214
- Steps 1–2 are the default and are also available on the web app through project autopilot. The generated workflow starts in `comment` mode: it
215
- plans, checks, and writes the brief to the run summary. Editing
216
- is opt-in per repository. Click the policy tab to set global security parameters.
338
+ ---
217
339
 
218
- ### Trust model
340
+ ## What leaves your machine
219
341
 
220
- - **lurq's GitHub App is `Contents: read-only` and stays that way.** It cannot
221
- write to any repository, ever.
222
- - **Every write uses your own `GITHUB_TOKEN`** — ephemeral, scoped to one repo,
223
- limited to the `permissions:` block in your committed file.
224
- - **The agent cannot touch version control.** Its allowlist is
225
- `Read,Edit,Write,Bash(<pkg-manager>:*)`. Your agent can only edit
226
- files.
227
- - **Revoking it is `git rm .github/workflows/lurq-upgrade.yml`.**
342
+ Package names and versions, never your source code. `audit` receives the inventory your agent reads
343
+ locally, `check-upgrade` matches symbols against your code on your own runner, and outcomes report
344
+ names and counts only.
228
345
 
229
- Architecture and limits: [`docs/lurq-autopilot.md`](docs/lurq-autopilot.md).
346
+ `lurq mcp-scan` is the one exception worth knowing: by default it records what your MCP servers
347
+ expose (tool names, descriptions and parameters, with secrets redacted) to your account, so it can
348
+ tell you what changed. `--no-upload` keeps the scan on your machine.
230
349
 
231
350
  ---
232
351
 
233
352
  ## Where the evidence comes from
234
353
 
235
- **Readable** — npm, GitHub, deps.dev, and OSV, re-synced daily. Downloads, release
236
- cadence, maintenance, advisories, deprecations, license, bundle cost.
354
+ **Readable:** npm, GitHub, deps.dev and OSV, re-synced daily. Downloads, release cadence,
355
+ maintenance, advisories, deprecations, license and bundle cost.
237
356
 
238
- **Executed** — an isolated sandbox (E2B, with a local driver for trusted work) that
239
- installs and imports a package version. Results are recorded in the compatibility matrix.
240
- Compatibility is established through co-installation. `compat` reads those edges, which is why lurq can tell you
241
- that an entire stack holds together.
357
+ **Executed:** an isolated sandbox installs and imports package versions and records the results in a
358
+ compatibility matrix. `compat` reads those edges alongside declared peer and engine ranges, which is
359
+ why lurq can say whether a whole stack holds together.
242
360
 
243
- Executable proof allows lurq to look beyond changelogs and training data.
361
+ **Ranking is deterministic and public.** No model sits in the scoring path:
362
+
363
+ ```
364
+ health = maintenance 0.35 · adoption 0.30 · reliability 0.25 · efficiency 0.10
365
+ quality = types · tests · docs · changelog · dep count · license · provenance
366
+ composite = blend at a single tunable λ (default 0.35)
367
+ ```
368
+
369
+ Every weight lives in [`src/scoring/weights.ts`](src/scoring/weights.ts) and prints with `lurq weights`.
244
370
 
245
371
  ---
246
372
 
247
- ## How ranking works
373
+ ## Plans
248
374
 
249
- Deterministic, and public. **No model sits in the scoring path** — health and quality
250
- are computed from recorded signals, which is why lurq is fast, cheap, and reproducible.
375
+ | Plan | Price | Hosted calls |
376
+ | -------- | --------------------------- | ----------------------------------- |
377
+ | Free | $0 | 1,000 a month |
378
+ | Pro | $15/mo | 10,000 a month |
379
+ | Team | $25/seat/mo, 3-seat minimum | 15,000 per seat, pooled |
380
+ | Business | from $1,000/mo | Uncapped, with SSO and audit export |
251
381
 
252
- ```
253
- health = maintenance 0.35 · adoption 0.30 · reliability 0.25 · efficiency 0.10
254
- quality = types · tests · docs · changelog · dep count · license · provenance
255
- composite = blend at a single tunable λ (default 0.35)
382
+ Past the limit, calls slow to 20 a day rather than stopping. The CLI run against your own database
383
+ is never metered. Details: [pricing](https://www.lurq.run/#pricing).
384
+
385
+ ---
386
+
387
+ <details>
388
+ <summary><b>Uninstall, reinstall, and where setup writes</b></summary>
389
+
390
+ Setup is safe to re-run: `npx lurqrun` again overwrites the previous entries.
391
+
392
+ ```bash
393
+ lurq uninstall # MCP entries, agent instructions, the stored key
394
+ lurq uninstall --agent cursor # just one agent
395
+ npm uninstall -g lurqrun # then remove the `lurq` command
256
396
  ```
257
397
 
258
- `quality` is a separate, **adoption-independent** axis.
398
+ It lists what it will remove and asks first (`--yes` skips the question).
399
+
400
+ | Agent | MCP config | Instructions |
401
+ | ----------------- | ------------------------------------- | ---------------------------------------------- |
402
+ | Claude Code | `~/.claude.json` | `~/.claude/skills/lurq/SKILL.md` |
403
+ | Cursor | `~/.cursor/mcp.json` | none (tool descriptions carry the guidance) |
404
+ | Windsurf | `~/.codeium/windsurf/mcp_config.json` | `~/.codeium/windsurf/memories/global_rules.md` |
405
+ | VS Code / Copilot | `<VS Code user dir>/mcp.json` | none |
406
+ | Codex | `~/.codex/config.toml` | `~/.codex/AGENTS.md` |
407
+ | Gemini CLI | `~/.gemini/settings.json` | `~/.gemini/GEMINI.md` |
408
+ | Antigravity | `~/.gemini/config/mcp_config.json` | `~/.gemini/GEMINI.md` |
409
+ | Kiro | `~/.kiro/settings/mcp.json` | `~/.kiro/steering/lurq.md` |
410
+
411
+ `lurq logout` only clears the CLI's stored key. A copy stays in each MCP entry until `lurq uninstall`
412
+ removes it, and the key keeps working until you revoke it in
413
+ [the dashboard](https://www.lurq.run/dashboard/keys).
259
414
 
260
- Every weight lives in [`src/scoring/weights.ts`](src/scoring/weights.ts) and is
261
- printable with `lurq weights`.
415
+ </details>
416
+
417
+ <details>
418
+ <summary><b>Self-hosting</b></summary>
419
+
420
+ lurq runs against your own Postgres too: `lurq serve` (stdio MCP) or `lurq serve-http` (a
421
+ rate-limited HTTP service), with `DATABASE_URL` set. The published CLI installs only what hosted use
422
+ needs; the first self-hosting command prints the exact `npm install` line for the server packages.
423
+ Guide: [self-hosting](https://www.lurq.run/docs/self-hosting).
424
+
425
+ </details>
262
426
 
263
427
  ---
264
428
 
265
429
  ## Contact
266
430
 
267
- Inquiries, partnerships, or proposals: **jadenryu@lurq.run**
431
+ Inquiries, partnerships or proposals: **jadenryu@lurq.run**
268
432
 
269
433
  ## License
270
434
 
@@ -1,22 +1,23 @@
1
1
  import { createRequire as __lurqCreateRequire } from 'node:module'; const require = __lurqCreateRequire(import.meta.url);
2
2
  import {
3
3
  handleAudit
4
- } from "./chunk-IQ4SDKKY.js";
5
- import "./chunk-DB2VF5UD.js";
6
- import "./chunk-LEGPB7DO.js";
7
- import "./chunk-Q5VPF4WI.js";
8
- import "./chunk-VL2E5T2A.js";
4
+ } from "./chunk-B2UUYRBX.js";
5
+ import "./chunk-FDFPMBCA.js";
6
+ import "./chunk-BJT2LHAR.js";
7
+ import "./chunk-P6MIKSPY.js";
9
8
  import "./chunk-6EQ3ARXA.js";
10
9
  import "./chunk-SHCEBP3J.js";
11
- import "./chunk-LO35HLQZ.js";
10
+ import "./chunk-LEGPB7DO.js";
11
+ import "./chunk-Q5VPF4WI.js";
12
12
  import "./chunk-QSL6QN5X.js";
13
- import "./chunk-LRD4GBYE.js";
14
- import "./chunk-SJOVFF7B.js";
15
- import "./chunk-HWBBVLOT.js";
16
- import "./chunk-LYMPYETA.js";
13
+ import "./chunk-QUIMQ7YL.js";
14
+ import "./chunk-ONDVTXUO.js";
15
+ import "./chunk-4JHDSVIN.js";
16
+ import "./chunk-KYKSZ3XZ.js";
17
+ import "./chunk-6L67QMCP.js";
17
18
  import "./chunk-3GHJR7XR.js";
18
19
  import "./chunk-MYGSLK44.js";
19
- import "./chunk-GPTKSNR6.js";
20
+ import "./chunk-72Y2FDVS.js";
20
21
  import "./chunk-I3M2KJXB.js";
21
22
  export {
22
23
  handleAudit