pi-lens 4.5.0 → 4.5.2
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-USER.md +12 -12
- package/CHANGELOG.md +253 -0
- package/README.md +11 -2
- package/config/dependency-cruiser-eager-allowlist.json +1 -0
- package/dist/{chunk-ZULZS2I6.js → chunk-2ERVW2UF.js} +1115 -423
- package/dist/{chunk-BBSDJTOV.js → chunk-2K7BUOKS.js} +13 -13
- package/dist/{chunk-I2FYOZNW.js → chunk-3JJ4OAJI.js} +10 -10
- package/dist/{chunk-5JB4WENL.js → chunk-3UHGSUVL.js} +1 -1
- package/dist/{chunk-W26QZ3OM.js → chunk-463WN3VP.js} +10 -10
- package/dist/{chunk-4IZZEN63.js → chunk-4X3ML2UQ.js} +31 -34
- package/dist/{chunk-I3NZVAMN.js → chunk-5BI5YP57.js} +10 -10
- package/dist/{chunk-7U36VQL6.js → chunk-5Z4XLUFF.js} +3 -3
- package/dist/{chunk-DCA2MXVQ.js → chunk-62AJH3IN.js} +51 -29
- package/dist/{chunk-37IDWT6O.js → chunk-6F34GMP7.js} +16 -14
- package/dist/{chunk-VSQT6IHZ.js → chunk-6LIUVGOR.js} +28 -4
- package/dist/{chunk-27JQHK7Y.js → chunk-6REF4GCO.js} +1 -1
- package/dist/{chunk-INBK3HIT.js → chunk-7KRR24GO.js} +3 -3
- package/dist/{chunk-OZQQ3AIR.js → chunk-7OMOMBEQ.js} +9 -9
- package/dist/{chunk-ARTYCUGF.js → chunk-7ZFXICNN.js} +123 -20
- package/dist/{chunk-K4Z7MK6T.js → chunk-ABKRQVOY.js} +28 -52
- package/dist/{chunk-C5PLBTNR.js → chunk-ANSLRJBG.js} +1 -1
- package/dist/{chunk-HRLF35WL.js → chunk-AWMFBPGJ.js} +9 -9
- package/dist/{chunk-CXQYK4YT.js → chunk-BG7KHGNX.js} +2 -2
- package/dist/{chunk-ZI7YHV6I.js → chunk-BK2R2223.js} +10 -8
- package/dist/chunk-BXXC6KRR.js +107 -0
- package/dist/{chunk-QMWKSYWB.js → chunk-CKJS2AUI.js} +4 -4
- package/dist/{chunk-PPQHMSPH.js → chunk-COGU5KQJ.js} +15 -15
- package/dist/{chunk-NHA5K226.js → chunk-CQNXALZJ.js} +27 -6
- package/dist/{chunk-KZ732ZVW.js → chunk-CSZESDPP.js} +1 -1
- package/dist/chunk-CZ5TCJPB.js +98 -0
- package/dist/{chunk-LOEJFTF2.js → chunk-D2LFEA5U.js} +9 -2
- package/dist/chunk-D3KLF5CD.js +50 -0
- package/dist/{chunk-4DAHGU3V.js → chunk-ENJ2M76Y.js} +31 -29
- package/dist/{chunk-ZQSSO7LO.js → chunk-EQKF6BAK.js} +3 -3
- package/dist/{chunk-PFJLYRO3.js → chunk-F2SAP2FM.js} +40 -47
- package/dist/{chunk-ADYQRETD.js → chunk-F6QAJXQV.js} +2 -2
- package/dist/chunk-GR2QDWH5.js +25 -0
- package/dist/{chunk-LVLPA32Q.js → chunk-GVE5VZYQ.js} +48 -11
- package/dist/{chunk-AZG5UJYY.js → chunk-GWZZOJD2.js} +1 -1
- package/dist/chunk-GZS6VPIE.js +27 -0
- package/dist/chunk-H4B4SC7I.js +71 -0
- package/dist/{chunk-YCR6ZYTE.js → chunk-HA6TUJOE.js} +1 -1
- package/dist/{chunk-DI4AZZNY.js → chunk-HKPJTI47.js} +2 -2
- package/dist/{chunk-O6LCSHHI.js → chunk-HPKC55MA.js} +1 -1
- package/dist/{chunk-LQQNFCQJ.js → chunk-I65CQLCG.js} +1 -1
- package/dist/{chunk-P5MSLVUW.js → chunk-IDKLWVKY.js} +11 -11
- package/dist/chunk-IUM2Q7NF.js +25 -0
- package/dist/{chunk-L6BDRYUK.js → chunk-J24IS3KZ.js} +5 -5
- package/dist/{chunk-KNSOA43J.js → chunk-J2DAHH4T.js} +2 -2
- package/dist/{chunk-7ZVTFLCC.js → chunk-JBDZVOFL.js} +11 -11
- package/dist/{chunk-HIJ4CHFF.js → chunk-JC6NFC57.js} +3 -3
- package/dist/{chunk-K7O6AHSJ.js → chunk-JTHEUTW7.js} +11 -11
- package/dist/{chunk-KXGTLAUW.js → chunk-JWW3ODBN.js} +2 -2
- package/dist/{chunk-HIRBC72R.js → chunk-K3ZIYLHT.js} +4 -4
- package/dist/{chunk-6GLMMGCX.js → chunk-KDPZA2UE.js} +2 -3
- package/dist/{chunk-AXAR5ZW2.js → chunk-KMY2OU4T.js} +553 -434
- package/dist/{chunk-DFKOA74L.js → chunk-KQF7VT26.js} +10 -10
- package/dist/{chunk-S6MCMD27.js → chunk-KVGA7X76.js} +3 -3
- package/dist/{chunk-74AMPWNC.js → chunk-KW7O72AK.js} +2 -2
- package/dist/{chunk-UN72ZAJ5.js → chunk-LEQTVRSV.js} +9 -9
- package/dist/{chunk-B42AIWPJ.js → chunk-LKPSBM6S.js} +3 -3
- package/dist/{chunk-R4L7KZ7R.js → chunk-LKW2HFSZ.js} +9 -9
- package/dist/{chunk-3PO4YYOX.js → chunk-LURFD4HD.js} +4240 -3734
- package/dist/{chunk-PQXUZYTQ.js → chunk-M6ELTECW.js} +4 -4
- package/dist/{chunk-3QXFUP6T.js → chunk-MGVVYYKW.js} +12 -12
- package/dist/{chunk-CZJGAOKL.js → chunk-MQBKGRSB.js} +7 -7
- package/dist/{chunk-NNEQOC3U.js → chunk-MVG2ZEAO.js} +9 -7
- package/dist/{chunk-VWEBZ2JV.js → chunk-MY4XNNTX.js} +39 -41
- package/dist/{chunk-RIH3UBK4.js → chunk-N4AJVFRF.js} +11 -11
- package/dist/{chunk-TKOFTLGB.js → chunk-OFKKMXWM.js} +31 -36
- package/dist/{chunk-3PAS2ERX.js → chunk-OFZE4ANN.js} +8 -8
- package/dist/chunk-OLXBUTJR.js +61 -0
- package/dist/{chunk-6CFSDLHE.js → chunk-OZGEHOSG.js} +38 -17
- package/dist/{chunk-3TSMQZG6.js → chunk-PKGOROPQ.js} +40 -2
- package/dist/{chunk-OLWGYBYT.js → chunk-Q6D5QKRG.js} +17 -17
- package/dist/{chunk-QE7BJQ6K.js → chunk-QECLJFHI.js} +12 -17
- package/dist/{chunk-RJ3APNIP.js → chunk-QJA33VD5.js} +4 -4
- package/dist/{chunk-MOAVEPC4.js → chunk-R5XVJ6AN.js} +11 -11
- package/dist/{chunk-ZRQMENT4.js → chunk-REZL4OM4.js} +1 -1
- package/dist/{chunk-PKWEBMCA.js → chunk-RK5RBREN.js} +251 -201
- package/dist/chunk-RP5ZQTHO.js +86 -0
- package/dist/{chunk-J2ZB5MDS.js → chunk-RURPX2YV.js} +23 -23
- package/dist/chunk-TB5MGZLS.js +53 -0
- package/dist/chunk-TC63XRYP.js +27 -0
- package/dist/chunk-TJOYHAXJ.js +69 -0
- package/dist/{chunk-Q7J3JYJ2.js → chunk-TRXKDCBP.js} +13 -13
- package/dist/{chunk-6E5QLMWI.js → chunk-TTK37D7R.js} +22 -23
- package/dist/{chunk-XDNWR7SG.js → chunk-UH3QHLR5.js} +2 -2
- package/dist/{chunk-SCU62JLX.js → chunk-UNTJJ7GN.js} +7 -7
- package/dist/{chunk-O2MHF7QM.js → chunk-UPAFSETJ.js} +58 -63
- package/dist/{chunk-PQF6YGYB.js → chunk-UX75PTQW.js} +50 -31
- package/dist/{chunk-TWEOJE3D.js → chunk-V353PYMK.js} +1233 -576
- package/dist/{chunk-CQY2HEH7.js → chunk-V4TFQY5G.js} +2 -2
- package/dist/{chunk-B2OXE4AH.js → chunk-VC3W54G3.js} +446 -293
- package/dist/{chunk-JGUDT5KD.js → chunk-VSBCJVPC.js} +5 -5
- package/dist/{chunk-5HBQL7DH.js → chunk-WAQQGXVV.js} +3 -3
- package/dist/{chunk-7DPXUPRF.js → chunk-WLEVWR7Y.js} +2 -2
- package/dist/{chunk-QE5DJ7MX.js → chunk-WPMPVP5I.js} +4 -4
- package/dist/{chunk-KNJH6WJQ.js → chunk-WXNLFOC2.js} +7 -7
- package/dist/{chunk-XSC3BCN3.js → chunk-Y3ZNOZZS.js} +6 -6
- package/dist/{chunk-VGRGW4UL.js → chunk-YL6JQTWC.js} +29 -32
- package/dist/{chunk-7CLWC2UH.js → chunk-YVE5Q2UU.js} +86 -217
- package/dist/{chunk-LGH2HHZG.js → chunk-YZNARDMM.js} +42 -28
- package/dist/{chunk-NGNBJIUO.js → chunk-ZDWNFZJ2.js} +8 -8
- package/dist/{chunk-X33QECRJ.js → chunk-ZEUF7BIN.js} +2 -2
- package/dist/{chunk-2H5GHZKC.js → chunk-ZIF4WLWR.js} +45 -25
- package/dist/{chunk-WLD6BGON.js → chunk-ZSPVF7KI.js} +231 -24
- package/dist/{chunk-SDYLT45T.js → chunk-ZX6OKBVO.js} +2 -2
- package/dist/index.js +10566 -6819
- package/dist/mcp/analyze-cli.js +8 -8
- package/dist/mcp/cli.js +39 -41
- package/dist/mcp/server.js +1083 -685
- package/dist/mcp/worker.js +68 -59
- package/dist/probes/installer.js +21 -22
- package/docs/ci-bot-pr-checks.md +18 -9
- package/docs/ci.md +7 -0
- package/docs/configuration.md +24 -10
- package/docs/defect-shapes.md +61 -30
- package/docs/environment-variables.md +18 -9
- package/docs/globalconfig.md +17 -0
- package/docs/invariants/dispatch-runners.md +22 -0
- package/docs/invariants/lsp-trust-exec.md +33 -3
- package/docs/lsp-capability-matrix.md +23 -10
- package/docs/lsp-idle-eviction.md +7 -1
- package/docs/module-report-read-symbol.md +6 -2
- package/docs/pi-lens-merge-policy.md +3 -2
- package/docs/pi-lens-orchestration.md +2 -1
- package/docs/pi-lens-subagent.md +2 -1
- package/docs/release-qa-baseline.md +22 -17
- package/docs/servercapabilities.md +1 -1
- package/docs/settings.md +10 -2
- package/docs/tools.md +1 -1
- package/docs/usage.md +1 -0
- package/package.json +3 -3
- package/dist/chunk-2H7NFZ4Q.js +0 -25
- package/dist/chunk-5YJXF2IS.js +0 -56
- package/dist/chunk-7WKVCZI4.js +0 -69
- package/dist/chunk-BKWFDWYM.js +0 -46
- package/dist/chunk-G53LBDNU.js +0 -255
- package/dist/chunk-GCSDF5IE.js +0 -27
- package/dist/chunk-H5API74E.js +0 -67
- package/dist/chunk-HBX55MWO.js +0 -27
- package/dist/chunk-JOIKBUQN.js +0 -88
- package/dist/chunk-M2YMBT5G.js +0 -73
- package/dist/chunk-MJRGPEQ5.js +0 -25
- package/dist/chunk-QV3JPCMK.js +0 -17
- package/dist/chunk-TFKN5EIR.js +0 -27
- package/dist/chunk-UNP6Y4JV.js +0 -38
|
@@ -29,6 +29,29 @@
|
|
|
29
29
|
and a pinned site count. Extend the seam; never add a per-caller guard. A
|
|
30
30
|
non-pi maintenance host that starts the checkout's own tools adopts trust at
|
|
31
31
|
its entry, as the MCP entry points do.
|
|
32
|
+
- An LSP root not admitted for project code (an adopted root without
|
|
33
|
+
permission, or pi trust other than `trusted`) never executes or
|
|
34
|
+
version-probes a file whose real path is inside it (#5674). One judge,
|
|
35
|
+
`projectSearchJudge` in `clients/session-repository.ts`, decides what reaches
|
|
36
|
+
the root:
|
|
37
|
+
- a relative or (POSIX) empty PATH entry;
|
|
38
|
+
- an entry at or under the root, or under a project-local bin dir of the root
|
|
39
|
+
or an ancestor;
|
|
40
|
+
- an answer, judged by its real directory.
|
|
41
|
+
The judge walks the bin dirs once per scan, never once per entry. It is
|
|
42
|
+
applied in three places:
|
|
43
|
+
- `launchLSP` drops such entries from its lookup and from the child's PATH,
|
|
44
|
+
and refuses an answer in the root, such as a global link or the Windows
|
|
45
|
+
cwd search.
|
|
46
|
+
- `lookupManagedTool`, the one home of every LSP managed lookup, reads only
|
|
47
|
+
the tool store when the process PATH reaches the root, and the runtime
|
|
48
|
+
install is skipped on the same predicate.
|
|
49
|
+
- Otherwise both run inside `withUnadmittedRootSpawns`, so the spawn
|
|
50
|
+
chokepoint refuses a bare name that resolves into the root, which covers a
|
|
51
|
+
link in a global bin dir.
|
|
52
|
+
An admitted root is unchanged.
|
|
53
|
+
`tests/clients/lsp/managed-fallback-after-trust-refusal-4515.test.ts` and
|
|
54
|
+
`tests/clients/project-search-judge-5674.test.ts` pin it.
|
|
32
55
|
- Under pi, project trust is consumed through `isProjectTrusted`; pi-lens never
|
|
33
56
|
registers the host's trust-answer handler. `compileLspRegistry` is the one admission
|
|
34
57
|
seam for LSP executable fields: global config and built-ins remain allowed,
|
|
@@ -120,7 +143,13 @@
|
|
|
120
143
|
`.oxlintrc.json` (`npm run lint:js`, #2372/#277; it replaced the
|
|
121
144
|
`lsp-capabilities-import-sweep` test in #4865).
|
|
122
145
|
- Idle-eviction policy is the registry's `idleEviction` field, declared per
|
|
123
|
-
server.
|
|
146
|
+
server. Every client whose server is not declared `resident` arms the shared
|
|
147
|
+
idle timer, on the pi host and the MCP host alike; `resident` is the only
|
|
148
|
+
opt-out and needs a reason row (#5700). Each client also caps its open
|
|
149
|
+
documents (`PI_LENS_LSP_OPEN_DOCUMENT_CAP`, default 256) and closes the least
|
|
150
|
+
recently sent one with an ordinary queued `didClose`, never beside a live
|
|
151
|
+
notify queue; the closed file's last findings stay readable, marked
|
|
152
|
+
`closed`. The nightly (`scripts/measure-lsp-idle-eviction.mjs`) measures every
|
|
124
153
|
registry server's eviction cost and respawn safety into
|
|
125
154
|
`docs/lsp-idle-eviction.md` and changes no policy; a declaration change is a
|
|
126
155
|
follow-up that cites its row, or the nightly's draft promotion PR
|
|
@@ -131,7 +160,8 @@
|
|
|
131
160
|
the registry test's `TRANSPARENT_IDS`; night memory in the matrix doc's
|
|
132
161
|
refresh-state block; never auto-merged, never demotes). `tests/config/lsp-idle-eviction-measurement.test.ts`
|
|
133
162
|
fails when a registry server can go unmeasured without an admission or when
|
|
134
|
-
the committed measurement vetoes a server
|
|
163
|
+
the committed measurement vetoes a server the registry evicts (any
|
|
164
|
+
declaration but `resident`, #5700).
|
|
135
165
|
- The compiled registry holds the CATALOG ENTRY for every built-in with no
|
|
136
166
|
command override (`compileLspRegistry`), so the object the client registry
|
|
137
167
|
keeps (`SpawnedServer.info`) is the object `LSP_SERVERS`/`getServerById`
|
|
@@ -141,7 +171,7 @@
|
|
|
141
171
|
first (history: `HISTORY.md`, 2026-10-19).
|
|
142
172
|
`tests/clients/lsp/lsp-registry-trust.test.ts` pins both directions;
|
|
143
173
|
`scheduleIdleEviction` records `lsp-idle-eviction-declined` once per server
|
|
144
|
-
per session when it arms no timer.
|
|
174
|
+
per session when it arms no timer (a `resident` server).
|
|
145
175
|
- The server-role vocabulary and the declared trait table have one owner,
|
|
146
176
|
`clients/lsp/server-traits.ts` (#1488, #1756 stage 1). Ask `isAuxiliary`,
|
|
147
177
|
never a comparison against the role literal, and read `notifyInflightLimit`
|
|
@@ -275,7 +275,7 @@ carries the named admission until then.
|
|
|
275
275
|
| json | vscode-json-language-server | pull | — | n/a (pull) | 1 | dev+ci | — | pi-lens-auto | — |
|
|
276
276
|
| css | vscode-css-language-server | pull | — | n/a (pull) | 1 | dev+ci | — | pi-lens-auto | — |
|
|
277
277
|
| html | vscode-html-language-server | pull | — | n/a (pull) | 1 | dev+ci | — | pi-lens-auto | — |
|
|
278
|
-
| rust | rust-analyzer | pull | — | n/a (pull) | 1 | dev+ci | 0.3.
|
|
278
|
+
| rust | rust-analyzer | pull | — | n/a (pull) | 1 | dev+ci | 0.3.3121-standalone | global-path | — |
|
|
279
279
|
| svelte | svelte-language-server | pull | — | n/a (pull) | 1 | dev+ci | — | pi-lens-auto | — |
|
|
280
280
|
| deno | deno (alt of typescript) | pull | — | n/a (pull) | 1 | dev+ci | 2.9.8 | global-path | — |
|
|
281
281
|
| ruby | ruby-lsp | pull | — | n/a (pull) | 1 | ci | — | — | — |
|
|
@@ -461,6 +461,17 @@ night goes to the run log (`save-verdict: held back <server>`), to one
|
|
|
461
461
|
`--summary` JSON (`heldBack`). No counter or issue tracks consecutive held
|
|
462
462
|
nights.
|
|
463
463
|
|
|
464
|
+
A settled answer also changes only when two nights agree (#3405), as
|
|
465
|
+
`clean-behavior` does. The first night that measures a different settled answer
|
|
466
|
+
leaves the row as published and records the night under `save-verdict` in the
|
|
467
|
+
refresh-state JSON below (`pendingSaveVerdict`, `runs`); the run log line reads
|
|
468
|
+
`flip pending, night 1 of 2`. The next night that measures the same answer
|
|
469
|
+
writes the row and clears the entry, and a night that measures the published
|
|
470
|
+
answer again clears it without a change. A night that measures a third answer
|
|
471
|
+
restarts the count at one, and an `inconclusive` night changes nothing. A row
|
|
472
|
+
that holds no settled answer (`unknown`, `inconclusive`, `cannot measure`) has
|
|
473
|
+
nothing to protect, so its first measurement publishes on the first night.
|
|
474
|
+
|
|
464
475
|
A pull-mode server answers a `textDocument/diagnostic` request rather than
|
|
465
476
|
publishing, so no arm of its run has the save as its only new input: it reads
|
|
466
477
|
`no (pull)` when the request answered without a save and `inconclusive`
|
|
@@ -482,22 +493,22 @@ dispatched nightly replaces it on the first night that reaches the server.
|
|
|
482
493
|
| cpp | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture cpp) |
|
|
483
494
|
| lua | `save` | no | Measured: answers without a save (2 publish events on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture lua) |
|
|
484
495
|
| python-jedi | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture jedi) |
|
|
485
|
-
| opengrep | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone:
|
|
486
|
-
| gleam | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone:
|
|
487
|
-
| go | `save` | no | Measured: answers without a save (
|
|
496
|
+
| opengrep | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 2 publish events. Auxiliary, not gated. | `node scripts/probe-save-verdict.mjs` (fixture opengrep) |
|
|
497
|
+
| gleam | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 1 publish event. Gated. | `node scripts/probe-save-verdict.mjs` (fixture gleam) |
|
|
498
|
+
| go | `save` | no | Measured: answers without a save (2 publish events on didOpen); a later save alone: 1 publish event. Gated. | `node scripts/probe-save-verdict.mjs` (fixture go) |
|
|
488
499
|
| zig | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 1 publish event. Gated. | `node scripts/probe-save-verdict.mjs` (fixture zig) |
|
|
489
|
-
| rust | `save` | inconclusive | Measured: inconclusive — pull mode: every arm is a textDocument/diagnostic request, so no arm has the save as its only new input (arms: no-save silent (6000 ms), save alone
|
|
500
|
+
| rust | `save` | inconclusive | Measured: inconclusive — pull mode: every arm is a textDocument/diagnostic request, so no arm has the save as its only new input (arms: no-save silent (6000 ms), save alone 1 diagnostic, saved write silent (6000 ms)). Exempt from the clean gate. | `node scripts/probe-save-verdict.mjs` (fixture rust) |
|
|
490
501
|
| terraform | `save` | no | Measured: answers without a save (2 publish events on didOpen); a later save alone: 1 publish event. Gated. | `node scripts/probe-save-verdict.mjs` (fixture terraform) |
|
|
491
502
|
| fsharp | `save+text` | no | Source: a save holds the source and refreshes code lenses; diagnostics come from open and change checks. Exempt: 0 findings in every run. | ionide/FsAutoComplete `8f011f1395a4`, `src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs` (`TextDocumentDidSave`); nightly run 39845687189 |
|
|
492
503
|
| zizmor | · (registered dynamically) | no | Source: `didSave` is registered dynamically and pi-lens does not map that registration, so no save is sent. Auxiliary, not gated. | zizmor `crates/zizmor/src/lsp.rs` (`initialized`); `clients/lsp/wait-policy/strategies.ts:400-410` (#3548) |
|
|
493
504
|
| clojure | `save+text` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 2 publish events. Gated. | `node scripts/probe-save-verdict.mjs` (fixture clojure) |
|
|
494
|
-
| fish | `save+text` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone:
|
|
505
|
+
| fish | `save+text` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 1 publish event. Gated. | `node scripts/probe-save-verdict.mjs` (fixture fish) |
|
|
495
506
|
| tinymist | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 1 publish event. Gated. | `node scripts/probe-save-verdict.mjs` (fixture typst) |
|
|
496
507
|
| cue | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 1 publish event. Gated. | `node scripts/probe-save-verdict.mjs` (fixture cue) |
|
|
497
508
|
| csharp | `save+text` | no (pull) | Measured: pull mode — no save needed; a later save+request answered: 1 diagnostic. Gated. | `node scripts/probe-save-verdict.mjs` (fixture csharp) |
|
|
498
509
|
| deno | `save` | no (pull) | Measured: pull mode — no save needed; a later save+request answered: 1 diagnostic. Gated. | `node scripts/probe-save-verdict.mjs` (fixture deno) |
|
|
499
510
|
| svelte | `save` | no (pull) | Measured: pull mode — no save needed; a later save+request answered: 2 diagnostics. Gated. | `node scripts/probe-save-verdict.mjs` (fixture svelte) |
|
|
500
|
-
| powershell | `save+text` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone:
|
|
511
|
+
| powershell | `save+text` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 1 publish event. Exempt from the clean gate. | `node scripts/probe-save-verdict.mjs` (fixture powershell) |
|
|
501
512
|
| cmake | `save` | inconclusive | Measured: inconclusive — no arm published, so this fixture does not distinguish a save-triggered server from one that never diagnoses it (arms: no-save silent (6000 ms), save alone silent (6000 ms), saved write silent (6000 ms)). Exempt from the clean gate. | `node scripts/probe-save-verdict.mjs` (fixture cmake) |
|
|
502
513
|
|
|
503
514
|
Notes.
|
|
@@ -569,9 +580,11 @@ _None observed as of the last probe run._
|
|
|
569
580
|
|
|
570
581
|
Bookkeeping for the two-run `first-publish`/`clean-behavior` hysteresis, the
|
|
571
582
|
first-miss stamps (#3401, #4615), the consecutive-night `missed-probe`
|
|
572
|
-
streaks behind the `stale` column (#4512)
|
|
573
|
-
`idle-eviction` counts (#3989)
|
|
583
|
+
streaks behind the `stale` column (#4512), consecutive-night
|
|
584
|
+
`idle-eviction` counts (#3989), the pending `save-verdict` flips (#3405) and
|
|
585
|
+
the pending `idle-eviction-doc` flips (#5667).
|
|
586
|
+
Regenerated every run; never a measurement.
|
|
574
587
|
|
|
575
588
|
```json
|
|
576
|
-
{"clean-behavior":{"fallow":{"pendingBehavior":"silent","pendingTier":"3","runs":1}},"first-publish":{"fallow":{"pendingFirstPublish":"direct","runs":1}},"idle-eviction":{"dart":{"nights":[{"day":"2026-11-06","rssMb":75,"coldMs":511},{"day":"2026-11-07","rssMb":75,"coldMs":538}]},"go":{"nights":[{"day":"2026-11-06","rssMb":89,"coldMs":567},{"day":"2026-11-07","rssMb":90,"coldMs":595}]}}}
|
|
589
|
+
{"clean-behavior":{"fallow":{"pendingBehavior":"silent","pendingTier":"3","runs":1}},"first-publish":{"fallow":{"pendingFirstPublish":"direct","runs":1}},"idle-eviction":{"csharp":{"nights":[{"day":"2026-11-19","rssMb":236,"coldMs":2942},{"day":"2026-11-20","rssMb":237,"coldMs":2951}]},"dart":{"nights":[{"day":"2026-11-06","rssMb":75,"coldMs":511},{"day":"2026-11-07","rssMb":75,"coldMs":538}]},"go":{"nights":[{"day":"2026-11-06","rssMb":89,"coldMs":567},{"day":"2026-11-07","rssMb":90,"coldMs":595}]},"kotlin":{"nights":[{"day":"2026-11-16","rssMb":264,"coldMs":2805},{"day":"2026-11-17","rssMb":288,"coldMs":2409}]},"powershell":{"nights":[{"day":"2026-11-16","rssMb":171,"coldMs":2165},{"day":"2026-11-17","rssMb":189,"coldMs":1934}]},"rust":{"nights":[{"day":"2026-11-16","rssMb":699,"coldMs":2909},{"day":"2026-11-17","rssMb":631,"coldMs":2607}]},"svelte":{"nights":[{"day":"2026-11-16","rssMb":233,"coldMs":2540},{"day":"2026-11-17","rssMb":228,"coldMs":2342}]}}}
|
|
577
590
|
```
|
|
@@ -15,7 +15,7 @@ respawned server reports every finding it reported before eviction; the
|
|
|
15
15
|
content-bound coverage check the auxiliary freeze depends on. A server that
|
|
16
16
|
cannot demonstrate it is never proposed for eviction on perf grounds alone.
|
|
17
17
|
|
|
18
|
-
_Last generated: 2026-11-
|
|
18
|
+
_Last generated: 2026-11-21 on linux; 51 registry servers: 38 eligible, 0 vetoed, 3 inconclusive, 10 unavailable (0 not reached: budget)._
|
|
19
19
|
|
|
20
20
|
## Per-server rows
|
|
21
21
|
|
|
@@ -27,6 +27,12 @@ measured, never zero: **respawn** is whether the next request after eviction
|
|
|
27
27
|
brought the server back, **coverage** is whether the respawned server kept
|
|
28
28
|
every baseline finding.
|
|
29
29
|
|
|
30
|
+
The rows are the published answer, not one night's reading (#5667): a row's
|
|
31
|
+
`result`, `reason`, `respawn` and `coverage` change together, and only after
|
|
32
|
+
two consecutive nights measure the same new row. A night that could not spawn
|
|
33
|
+
a server (`unavailable`) leaves its row as it was. The pending night is kept
|
|
34
|
+
in the capability matrix's refresh-state block (`idle-eviction-doc`).
|
|
35
|
+
|
|
30
36
|
A server that reports extra findings after the respawn (`widened`) still reads
|
|
31
37
|
`preserved`, because nothing was lost, but a first scan that grows on respawn
|
|
32
38
|
is a sign the baseline was partial. Any policy flip needs `preserved` on
|
|
@@ -40,6 +40,7 @@ Returns a structured outline of one module (default `summary-text`; see the `vie
|
|
|
40
40
|
},
|
|
41
41
|
"api": [ /* exported ModuleSymbolEntry[] */ ],
|
|
42
42
|
"internal": [ /* non-exported ModuleSymbolEntry[] */ ],
|
|
43
|
+
"unclassified": [ /* optional: top-level symbols of a language with no export rule (#5599) */ ],
|
|
43
44
|
"recommendedReads": [ /* top-3 ranked by fanout / complexity / export */ ],
|
|
44
45
|
"semantic": { "source": "review-graph", "references": true, "implementations": false }
|
|
45
46
|
}
|
|
@@ -70,8 +71,11 @@ per symbol cost real tokens for zero new information. **To read a symbol:**
|
|
|
70
71
|
call `read`/`read_symbol` with `offset=startLine, limit=endLine-startLine+1`
|
|
71
72
|
on THIS report's `path`. Cross-file sections keep their own path — `usedBy[].file`
|
|
72
73
|
(the caller's file) and `blastRadius.files[].read` (the dependent file) — since
|
|
73
|
-
those legitimately point elsewhere. `exported` stays a boolean only
|
|
74
|
-
|
|
74
|
+
those legitimately point elsewhere. `exported` stays a boolean only, absent when
|
|
75
|
+
the language has no export rule (#5599): such a symbol is neither API nor
|
|
76
|
+
INTERNAL, so it sits in `unclassified` (rendered `SYMBOLS (visibility unknown):`)
|
|
77
|
+
and `summary.exports` is omitted when no top-level symbol has an answer. It is
|
|
78
|
+
NOT also repeated inside `flags` — `flags` carries non-derivable signals only
|
|
75
79
|
(`async`, `high fanout`, `high complexity`, `boundary wrapper`). `doc` is the
|
|
76
80
|
first sentence (or line) of an attached doc comment, whitespace-collapsed and
|
|
77
81
|
capped ~120 chars — the highest-value token for deciding which symbol to read;
|
|
@@ -74,7 +74,8 @@ fence at 20 lines (#5003).
|
|
|
74
74
|
4. **Merge gate.** Merge only when: verdict is merge-ready; every gating check
|
|
75
75
|
genuinely EXECUTED and passed on the exact head SHA
|
|
76
76
|
(`node scripts/ci-verdict.mjs <pr-number|sha>` — a DIRTY PR silently skips
|
|
77
|
-
them, absent is not green
|
|
77
|
+
them, absent is not green; a bare SHA skips the PR-rollup check, so read
|
|
78
|
+
the PR number, #5629); every failing check
|
|
78
79
|
was read and judged (infra failures — codeload 429/503, SARIF-upload
|
|
79
80
|
errors, Initialize-CodeQL outages — may be waved through only with the
|
|
80
81
|
log read and the judgment recorded). A PR that is green on its head but
|
|
@@ -715,7 +716,7 @@ Each row cost a lane at least once; the prose above carries the record.
|
|
|
715
716
|
| Letting a fix round enumerate cases instead of deriving the rule | #2877 took 7 rounds; the brief for a rule fix demands derivation from the source of truth (grammar table, measured host sequence) |
|
|
716
717
|
| Accepting a state-space table on its claims | Grep every test id in the table before accepting the round; #2877 r3 and #2868 r3 (2026-09-10) shipped 48–72-cell tables with zero real ids |
|
|
717
718
|
| Believing a worker's "N suites red on origin/master" without auditing its probe ENV | #3026's fixer pinned `TMPDIR` to the harness `.probe-home` and reported 16 unrelated suites red; the tree was green (2026-09-15). Ask for the A/B with the variable held fixed; the `tmpdirCollision` deny rule in `scripts/hooks/guard-bash.mjs` blocks the command |
|
|
718
|
-
| Merging a PR before its own CI has been read on the exact head | #3051 landed 20:05Z with the gitignore negation commit missing; `gitignore-tracked-shadow` redded on every open lane for ~30 min (#3055). `node scripts/ci-verdict.mjs <sha>` before every merge, admin merges included |
|
|
719
|
+
| Merging a PR before its own CI has been read on the exact head | #3051 landed 20:05Z with the gitignore negation commit missing; `gitignore-tracked-shadow` redded on every open lane for ~30 min (#3055). `node scripts/ci-verdict.mjs <sha>` before every merge, admin merges included (a SHA skips the PR-rollup check, #5629: read the PR number) |
|
|
719
720
|
| Hand-triggering attempt 3 after a second infra kill | `ci-infra-kill-rerun.yml`'s classify job was gated `run_attempt == 1`, so it never covered the second kill on one head; #3048 and #3040 each needed a manual rerun (2026-09-15). The gate now covers attempt 2; a third kill is a hand rerun by design |
|
|
720
721
|
| Merging a workflow edit whose only executing lane is master-only | #3033 edited install-smoke's `pnpm-global`/`mise-repro` steps, both gated `!= 'pull_request'`; six cells failed on every master push for a day (#3043). Give the edited lane a PR-eligible cell, or run `gh workflow run <file> --ref <branch>` and quote the run id |
|
|
721
722
|
| Sending a governance-sweep brief to a Sonnet fixer | Two rounds cost 765k tokens / 459 tool uses on #3066 and 587k on round 1 alone (2026-09-15). A brief that adds or edits a `tests/support/sweep-kit.ts` registered-or-fail sweep goes to the strongest available fixer |
|
|
@@ -39,6 +39,7 @@ per-PR loop itself is `docs/pi-lens-merge-policy.md`.
|
|
|
39
39
|
<reason>`; the body lint refuses a body without it.
|
|
40
40
|
- The per-PR loop (review, verify, auto-merge on green), round routing, the
|
|
41
41
|
merge gate and the Common mistakes table live in `docs/pi-lens-merge-policy.md`.
|
|
42
|
-
- Read CI with `node scripts/ci-verdict.mjs <pr|sha>` (exact head, all pages
|
|
42
|
+
- Read CI with `node scripts/ci-verdict.mjs <pr|sha>` (exact head, all pages;
|
|
43
|
+
a bare sha skips the PR-rollup check, so read the PR number, #5629).
|
|
43
44
|
Never merge on absent, stale, or advisory-only checks.
|
|
44
45
|
|
package/docs/pi-lens-subagent.md
CHANGED
|
@@ -297,7 +297,8 @@ exit code (0 success, 1 failure, 2 DIRTY, 3 pending). Never infer the verdict
|
|
|
297
297
|
from `$?` after piping the command. Never poll, never pass `--wait`
|
|
298
298
|
(orchestrator only), never `gh pr checks --watch`; "started" is not green. If
|
|
299
299
|
no `ci.yml` run registers within about two minutes, push one empty commit and
|
|
300
|
-
read once more; if it is still absent, report that.
|
|
300
|
+
read once more; if it is still absent, report that. Pass the PR number: a bare
|
|
301
|
+
SHA reads the head's check-runs only and skips the PR-rollup check (#5629).
|
|
301
302
|
|
|
302
303
|
A mid-task message that changes scope carries the brief's authority only when
|
|
303
304
|
the orchestrator mirrored it on the brief's issue (`gh issue view <n>
|
|
@@ -148,17 +148,21 @@ extension lists one any other way, and a narrower pi-tui range turned a raw
|
|
|
148
148
|
`npm i` with a current pi-tui at the top level into a hard ERESOLVE while
|
|
149
149
|
`pi install` (which runs `--legacy-peer-deps`) showed users nothing.
|
|
150
150
|
|
|
151
|
-
The window pi-lens actually supports is therefore not in `package.json
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
151
|
+
The window pi-lens actually supports is therefore not in `package.json`, and it
|
|
152
|
+
has no hand-kept ceiling (#5749, maintainer decision 2026-11-22). Its lower end
|
|
153
|
+
is `PI_HOST_FLOOR_VERSION` in `.github/workflows/install-smoke.yml`; its upper
|
|
154
|
+
end is always the newest stable pi, the npm dist-tag `latest`. The gating
|
|
155
|
+
newest-in-range lane resolves that tag on every run and installs it (no
|
|
156
|
+
prerelease; if the registry cannot answer, the lane fails closed and never
|
|
157
|
+
falls back to an older host), so a new pi release is exercised by a gating lane
|
|
158
|
+
without anyone bumping a range. `tests/packaging.test.ts` derives the window
|
|
159
|
+
from the floor and pins it against the hosts this matrix has passed on. A
|
|
160
|
+
release-QA run on a newer host extends the `Verified hosts` table below: the
|
|
161
|
+
table is evidence about a host, no longer a gate on the lane.
|
|
162
|
+
P1 is one verified host per minor line from 0.86 onward; 0.86 onward are in-window,
|
|
163
|
+
and every minor line below 0.86 falls outside the window entirely, so none needs
|
|
164
|
+
a dedicated host. A minor line above the newest verified one is inside the window
|
|
165
|
+
and tested by the gating lane, but not release-QA verified until its row lands.
|
|
162
166
|
|
|
163
167
|
The floor is 0.86.1 (#4688, maintainer decision 2026-10-20). 0.80–0.85 are
|
|
164
168
|
out of the window: since #4644 pi-lens injects context only from a `context`
|
|
@@ -171,12 +175,13 @@ the old hosts; a real 0.80.10 session delivered the staged guidance at
|
|
|
171
175
|
|
|
172
176
|
### Verified hosts
|
|
173
177
|
|
|
174
|
-
The certified policy is `>=0.86.1
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
The certified policy is `>=0.86.1`, with no upper end (the newest stable pi is
|
|
179
|
+
inside the window the day it ships, #5749), and this table is the whole verified set:
|
|
180
|
+
`tests/packaging.test.ts` fails when it and the workflow's floor disagree. Each
|
|
181
|
+
listed minor line through 1.4 has a release-QA witness; 1.5 was certified by
|
|
182
|
+
maintainer decision on 2026-11-02, with its witness blocked by the lane npm
|
|
183
|
+
guard. Add a host here, together with that test's list, after release-QA has
|
|
184
|
+
run on it.
|
|
180
185
|
|
|
181
186
|
| host | date | pi-lens commit | result |
|
|
182
187
|
| --- | --- | --- | --- |
|
|
@@ -6,7 +6,7 @@ server's `initialize` handshake. Generated by `node scripts/server-capabilities.
|
|
|
6
6
|
absent on the generating host are listed under *Unavailable* — run in a
|
|
7
7
|
provisioned environment (the nightly) to capture those rows.
|
|
8
8
|
|
|
9
|
-
_Last generated: 2026-11-
|
|
9
|
+
_Last generated: 2026-11-21 on linux; 42 servers captured, 9 unavailable._
|
|
10
10
|
|
|
11
11
|
## Diagnostic mode + navigation/edit operations
|
|
12
12
|
|
package/docs/settings.md
CHANGED
|
@@ -48,7 +48,12 @@ For a single toggle, highest priority first:
|
|
|
48
48
|
project-scoped keys only: the three mutation controls (`format.enabled`,
|
|
49
49
|
`autofix.enabled`, `actionableWarnings.autoFix.enabled`) and the per-tool
|
|
50
50
|
switches `tools.<name>.enabled` (`tools.lazy` itself stays global-only). In a
|
|
51
|
-
monorepo the closest config to the edited file wins
|
|
51
|
+
monorepo the closest config to the edited file wins for the three mutation
|
|
52
|
+
controls. The per-tool switches are read once per session from the
|
|
53
|
+
repository's `.pi-lens.json` files at your working directory, up to the git
|
|
54
|
+
root, so a package's own file does not switch a tool off or on. A repository
|
|
55
|
+
with no `.pi-lens.json` of its own still inherits the nearest one above it,
|
|
56
|
+
whole: the git-root limit applies to layered reads, not to that fallback.
|
|
52
57
|
4. **Global `~/.pi-lens/config.json`**.
|
|
53
58
|
5. **Built-in default**.
|
|
54
59
|
|
|
@@ -94,6 +99,7 @@ column is the effective behavior when nothing is set.
|
|
|
94
99
|
| `--lens-compact-lsp-status` | `ui.compactLspStatus` | global | **off** (footer lists the active server names) |
|
|
95
100
|
| `--lens-hide-lsp-status` | `ui.hideLspStatus` | global | **off** (footer publishes the `pi-lens-lsp` status; outranks `ui.compactLspStatus` when both are set) |
|
|
96
101
|
| `--lens-compact-widget` | `ui.compactWidget` | global | **off** (widget stacks file rows, suppressed count and blocker details below its summary header; **on** renders only that header — languages + totals, plus the `LSP↑` chip while servers are spawning) |
|
|
102
|
+
| `--lens-issues-status` | `ui.issuesStatus` | global | **off** (footer publishes no `pi-lens-issues` status; **on** publishes `●<N>E`, `!<N>W`, `⚠ <N> unchecked`, or `✓ clean` from the widget header's tallies) |
|
|
97
103
|
| `--no-lazy-tools` | `tools.lazy` | global | `true`: the five situational tools start inactive on every model (`"auto"` only on a model that keeps mid-conversation system messages, `false` never) |
|
|
98
104
|
| `--no-tool=<name>` | `tools.<name>.enabled` | project | every lens tool **on** |
|
|
99
105
|
| `--lens-turn-end-madge` | `turnEnd.madge.enabled` | global | **off** (madge runs at session start, not per turn) |
|
|
@@ -159,6 +165,8 @@ add a denial but never re-enable one. See
|
|
|
159
165
|
| --- | --- | --- | --- |
|
|
160
166
|
| `ignore` | global + project | `[]` | Gitignore-style globs excluded from every scan |
|
|
161
167
|
| `widget.visible` | global | `true` | Whether the diagnostics widget shows at session start |
|
|
168
|
+
| `widget.position` | global | `"belowEditor"` | `"aboveEditor"` or `"belowEditor"`: where the widget draws relative to the input box |
|
|
169
|
+
| `widget.hideWhenClean` | global | `false` | Hide the widget 5 s after it first shows `✓ clean`. See [globalconfig](globalconfig.md#widget-position-and-hiding) |
|
|
162
170
|
| `dispatch.runnerTimeoutFloorMs` | global | none (no floor) | Minimum wall-clock budget per dispatch runner |
|
|
163
171
|
| `lsp.queryMaxFileLines` | global | `5000` | Line limit of the explicit single-file `lens_diagnostics source=lsp` query only; a whole number from `5000` to `40000` (suggested `20000`). See [globalconfig](globalconfig.md#explicit-diagnostics-query-line-limit) |
|
|
164
172
|
| `dispatch.disabledRunners` | global + project | `[]` | Dispatch runner ids that never run (for example `["dotnet-build"]`). A denial: the union of every tier, so a project can add but never re-enable. Unknown ids are dropped with a warning. See [configuration](configuration.md#dispatchdisabledrunners--turning-a-dispatch-runner-off) |
|
|
@@ -181,7 +189,7 @@ add a denial but never re-enable one. See
|
|
|
181
189
|
User-level. The file is selected by the [global-location table](configuration.md#global-config-location)
|
|
182
190
|
and applies to **every** project. It honors **all** flag keys from the
|
|
183
191
|
table above plus the non-flag global knobs (`ignore`, `widget.visible`,
|
|
184
|
-
`dispatch.runnerTimeoutFloorMs`, `dispatch.disabledRunners`, `format.mode`,
|
|
192
|
+
`widget.position`, `widget.hideWhenClean`, `dispatch.runnerTimeoutFloorMs`, `dispatch.disabledRunners`, `format.mode`,
|
|
185
193
|
`actionableWarnings.autoFix.maxFixes`, `lsp.queryMaxFileLines`). On Windows the path is
|
|
186
194
|
`%USERPROFILE%\.pi-lens\config.json`.
|
|
187
195
|
|
package/docs/tools.md
CHANGED
|
@@ -4,7 +4,7 @@ pi-lens registers the following slash commands with the pi host:
|
|
|
4
4
|
|
|
5
5
|
- `/lens-toggle` — toggle pi-lens on/off for the current session without restarting
|
|
6
6
|
- `/lens-context-toggle` — toggle automatic context injection on/off for the session (tools/LSP/read-guard/formatting stay active)
|
|
7
|
-
- `/lens-widget-toggle` — show/hide the pi-lens diagnostics widget
|
|
7
|
+
- `/lens-widget-toggle` — show/hide the pi-lens diagnostics widget
|
|
8
8
|
- `/lens-health` — runtime health, latency, and diagnostic telemetry, including
|
|
9
9
|
bounded per-session degradation counts (trust refusals, LSP breakers,
|
|
10
10
|
formatter skips/failures, idle evictions, WASM aborts, timeout tallies, and
|
package/docs/usage.md
CHANGED
|
@@ -121,6 +121,7 @@ pi --lens-compact-tool-line # Render tool results as one compact, theme-aware
|
|
|
121
121
|
pi --lens-compact-lsp-status # Collapse the footer LSP status to one state glyph instead of the server names (refs #3099)
|
|
122
122
|
pi --lens-hide-lsp-status # Publish no pi-lens-lsp footer status at all, so a status-rendering host stops showing the key (closes #3099)
|
|
123
123
|
pi --lens-compact-widget # Render the widget as one summary line (languages + totals, LSP↑ chip while servers spawn) with no file rows or blocker details (refs #3959)
|
|
124
|
+
pi --lens-issues-status # Publish a compact pi-lens-issues footer status from the widget summary (●<N>E, !<N>W, ⚠ <N> unchecked, ✓ clean)
|
|
124
125
|
pi --no-lazy-tools # Keep every pi-lens tool active instead of activating the situational ones on demand
|
|
125
126
|
pi --lens-turn-end-madge # Run the madge circular-dependency check at every turn end, not just at session start
|
|
126
127
|
pi --lens-fallow # Run fallow-lsp beside the TypeScript server on JS/TS files (advisory unused-code, duplication and cycle findings; opt-in)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-lens",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo",
|
|
6
6
|
"repository": {
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"banner.png"
|
|
132
132
|
],
|
|
133
133
|
"dependencies": {
|
|
134
|
-
"@ast-grep/cli": "0.51.
|
|
134
|
+
"@ast-grep/cli": "0.51.2",
|
|
135
135
|
"@ast-grep/napi": "^0.51.0",
|
|
136
136
|
"js-yaml": "^5.2.2",
|
|
137
137
|
"minimatch": "^11.0.4",
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
]
|
|
169
169
|
},
|
|
170
170
|
"allowScripts": {
|
|
171
|
-
"@ast-grep/cli@0.51.
|
|
171
|
+
"@ast-grep/cli@0.51.2": true,
|
|
172
172
|
"@google/genai@2.21.0": true,
|
|
173
173
|
"esbuild@0.28.2": true,
|
|
174
174
|
"fsevents@2.3.3": false,
|
package/dist/chunk-2H7NFZ4Q.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
GoClient,
|
|
4
|
-
goClient,
|
|
5
|
-
resetGoAvailability
|
|
6
|
-
} from "./chunk-7DPXUPRF.js";
|
|
7
|
-
import "./chunk-QMWKSYWB.js";
|
|
8
|
-
import "./chunk-KXGTLAUW.js";
|
|
9
|
-
import "./chunk-6GLMMGCX.js";
|
|
10
|
-
import "./chunk-3PO4YYOX.js";
|
|
11
|
-
import "./chunk-5JB4WENL.js";
|
|
12
|
-
import "./chunk-PQF6YGYB.js";
|
|
13
|
-
import "./chunk-LOEJFTF2.js";
|
|
14
|
-
import "./chunk-W26QZ3OM.js";
|
|
15
|
-
import "./chunk-NHA5K226.js";
|
|
16
|
-
import "./chunk-S26LC76R.js";
|
|
17
|
-
import "./chunk-7CLWC2UH.js";
|
|
18
|
-
import "./chunk-LJDODBBZ.js";
|
|
19
|
-
import "./chunk-WLD6BGON.js";
|
|
20
|
-
import "./chunk-NXL4FFQQ.js";
|
|
21
|
-
export {
|
|
22
|
-
GoClient,
|
|
23
|
-
goClient,
|
|
24
|
-
resetGoAvailability
|
|
25
|
-
};
|
package/dist/chunk-5YJXF2IS.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
DependencyChecker,
|
|
4
|
-
buildMadgeArgs,
|
|
5
|
-
resetMadgeManagedPathMemo
|
|
6
|
-
} from "./chunk-QE7BJQ6K.js";
|
|
7
|
-
import "./chunk-PKWEBMCA.js";
|
|
8
|
-
import {
|
|
9
|
-
mapWithConcurrency
|
|
10
|
-
} from "./chunk-XIMYZ3JA.js";
|
|
11
|
-
import "./chunk-AXAR5ZW2.js";
|
|
12
|
-
import "./chunk-7WKVCZI4.js";
|
|
13
|
-
import "./chunk-2H5GHZKC.js";
|
|
14
|
-
import "./chunk-QV3JPCMK.js";
|
|
15
|
-
import "./chunk-NNEQOC3U.js";
|
|
16
|
-
import "./chunk-CXQYK4YT.js";
|
|
17
|
-
import "./chunk-ZQSSO7LO.js";
|
|
18
|
-
import "./chunk-AZG5UJYY.js";
|
|
19
|
-
import "./chunk-P5MSLVUW.js";
|
|
20
|
-
import "./chunk-ADYQRETD.js";
|
|
21
|
-
import "./chunk-DI4AZZNY.js";
|
|
22
|
-
import "./chunk-2APSZHHI.js";
|
|
23
|
-
import "./chunk-2BEMIWEW.js";
|
|
24
|
-
import "./chunk-IJYGIDF4.js";
|
|
25
|
-
import "./chunk-B2OXE4AH.js";
|
|
26
|
-
import "./chunk-LVLPA32Q.js";
|
|
27
|
-
import "./chunk-LGH2HHZG.js";
|
|
28
|
-
import "./chunk-KXGTLAUW.js";
|
|
29
|
-
import "./chunk-TQWRH25U.js";
|
|
30
|
-
import "./chunk-UYXV5NIS.js";
|
|
31
|
-
import "./chunk-KNSOA43J.js";
|
|
32
|
-
import "./chunk-6GLMMGCX.js";
|
|
33
|
-
import "./chunk-XSC3BCN3.js";
|
|
34
|
-
import "./chunk-27JQHK7Y.js";
|
|
35
|
-
import "./chunk-R4L7KZ7R.js";
|
|
36
|
-
import "./chunk-74AMPWNC.js";
|
|
37
|
-
import "./chunk-3PO4YYOX.js";
|
|
38
|
-
import "./chunk-5JB4WENL.js";
|
|
39
|
-
import "./chunk-QYF5S6P6.js";
|
|
40
|
-
import "./chunk-CQY2HEH7.js";
|
|
41
|
-
import "./chunk-PQF6YGYB.js";
|
|
42
|
-
import "./chunk-LOEJFTF2.js";
|
|
43
|
-
import "./chunk-CIA7X2PZ.js";
|
|
44
|
-
import "./chunk-W26QZ3OM.js";
|
|
45
|
-
import "./chunk-NHA5K226.js";
|
|
46
|
-
import "./chunk-S26LC76R.js";
|
|
47
|
-
import "./chunk-7CLWC2UH.js";
|
|
48
|
-
import "./chunk-LJDODBBZ.js";
|
|
49
|
-
import "./chunk-WLD6BGON.js";
|
|
50
|
-
import "./chunk-NXL4FFQQ.js";
|
|
51
|
-
export {
|
|
52
|
-
DependencyChecker,
|
|
53
|
-
buildMadgeArgs,
|
|
54
|
-
mapWithConcurrency,
|
|
55
|
-
resetMadgeManagedPathMemo
|
|
56
|
-
};
|
package/dist/chunk-7WKVCZI4.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
resolveOpengrepRulePack
|
|
4
|
-
} from "./chunk-AZG5UJYY.js";
|
|
5
|
-
import {
|
|
6
|
-
findLocalToolConfig
|
|
7
|
-
} from "./chunk-WLD6BGON.js";
|
|
8
|
-
|
|
9
|
-
// dist/clients/opengrep-config.js
|
|
10
|
-
import * as path from "node:path";
|
|
11
|
-
var LOCAL_OPENGREP_CONFIG_NAMES = [
|
|
12
|
-
".opengrep.yml",
|
|
13
|
-
".opengrep.yaml",
|
|
14
|
-
"opengrep.yml",
|
|
15
|
-
"opengrep.yaml",
|
|
16
|
-
".semgrep.yml",
|
|
17
|
-
".semgrep.yaml",
|
|
18
|
-
"semgrep.yml",
|
|
19
|
-
"semgrep.yaml"
|
|
20
|
-
];
|
|
21
|
-
function findLocalOpengrepConfig(startDir) {
|
|
22
|
-
return findLocalToolConfig(startDir, LOCAL_OPENGREP_CONFIG_NAMES);
|
|
23
|
-
}
|
|
24
|
-
function isRegistryOrAutoConfig(config) {
|
|
25
|
-
return config === "auto" || config.startsWith("p/") || config.startsWith("r/");
|
|
26
|
-
}
|
|
27
|
-
function normalizeOpengrepConfigArg(config, cwd) {
|
|
28
|
-
if (!config)
|
|
29
|
-
return void 0;
|
|
30
|
-
const trimmed = config.trim();
|
|
31
|
-
if (!trimmed)
|
|
32
|
-
return void 0;
|
|
33
|
-
if (isRegistryOrAutoConfig(trimmed))
|
|
34
|
-
return trimmed;
|
|
35
|
-
return path.isAbsolute(trimmed) ? trimmed : path.resolve(cwd, trimmed);
|
|
36
|
-
}
|
|
37
|
-
function resolveOpengrepConfig(cwd, flags) {
|
|
38
|
-
const localConfig = findLocalOpengrepConfig(cwd);
|
|
39
|
-
const flagConfig = typeof flags?.config === "string" && flags.config.trim() ? flags.config.trim() : void 0;
|
|
40
|
-
if (flags?.enabled || flagConfig) {
|
|
41
|
-
const explicit = normalizeOpengrepConfigArg(flagConfig ?? localConfig, cwd);
|
|
42
|
-
if (explicit) {
|
|
43
|
-
return {
|
|
44
|
-
enabled: true,
|
|
45
|
-
configArg: explicit,
|
|
46
|
-
source: localConfig && !flagConfig ? "local" : "flag"
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
const pack = resolveOpengrepRulePack();
|
|
50
|
-
return pack ? { enabled: true, configArg: pack, source: "pack" } : { enabled: true, configArg: "auto", source: "flag" };
|
|
51
|
-
}
|
|
52
|
-
if (localConfig) {
|
|
53
|
-
return {
|
|
54
|
-
enabled: true,
|
|
55
|
-
configArg: localConfig,
|
|
56
|
-
source: "local"
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
enabled: false,
|
|
61
|
-
source: "disabled",
|
|
62
|
-
reason: "no local opengrep config (.opengrep.yml) and --lens-opengrep not set"
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export {
|
|
67
|
-
findLocalOpengrepConfig,
|
|
68
|
-
resolveOpengrepConfig
|
|
69
|
-
};
|
package/dist/chunk-BKWFDWYM.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
TrivyClient,
|
|
4
|
-
existingDependencyManifests,
|
|
5
|
-
hasAnyDependencyManifest,
|
|
6
|
-
isTrivyEnabled,
|
|
7
|
-
parseTrivyLicenses,
|
|
8
|
-
parseTrivyReport,
|
|
9
|
-
parseTrivySecrets,
|
|
10
|
-
resolveSeverityFloor,
|
|
11
|
-
shouldScanTrivy,
|
|
12
|
-
trivyEvidenceFiles,
|
|
13
|
-
worktreeSkipDirs
|
|
14
|
-
} from "./chunk-CZJGAOKL.js";
|
|
15
|
-
import "./chunk-S6MCMD27.js";
|
|
16
|
-
import "./chunk-ZI7YHV6I.js";
|
|
17
|
-
import "./chunk-INBK3HIT.js";
|
|
18
|
-
import "./chunk-SDYLT45T.js";
|
|
19
|
-
import "./chunk-QV3JPCMK.js";
|
|
20
|
-
import "./chunk-2APSZHHI.js";
|
|
21
|
-
import "./chunk-KXGTLAUW.js";
|
|
22
|
-
import "./chunk-6GLMMGCX.js";
|
|
23
|
-
import "./chunk-3PO4YYOX.js";
|
|
24
|
-
import "./chunk-5JB4WENL.js";
|
|
25
|
-
import "./chunk-PQF6YGYB.js";
|
|
26
|
-
import "./chunk-LOEJFTF2.js";
|
|
27
|
-
import "./chunk-W26QZ3OM.js";
|
|
28
|
-
import "./chunk-NHA5K226.js";
|
|
29
|
-
import "./chunk-S26LC76R.js";
|
|
30
|
-
import "./chunk-7CLWC2UH.js";
|
|
31
|
-
import "./chunk-LJDODBBZ.js";
|
|
32
|
-
import "./chunk-WLD6BGON.js";
|
|
33
|
-
import "./chunk-NXL4FFQQ.js";
|
|
34
|
-
export {
|
|
35
|
-
TrivyClient,
|
|
36
|
-
existingDependencyManifests,
|
|
37
|
-
hasAnyDependencyManifest,
|
|
38
|
-
isTrivyEnabled,
|
|
39
|
-
parseTrivyLicenses,
|
|
40
|
-
parseTrivyReport,
|
|
41
|
-
parseTrivySecrets,
|
|
42
|
-
resolveSeverityFloor,
|
|
43
|
-
shouldScanTrivy,
|
|
44
|
-
trivyEvidenceFiles,
|
|
45
|
-
worktreeSkipDirs
|
|
46
|
-
};
|