pi-lens 4.4.8 → 4.4.9

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 (163) hide show
  1. package/CHANGELOG-USER.md +31 -0
  2. package/CHANGELOG.md +178 -0
  3. package/README.md +2 -1
  4. package/config/dependency-cruiser-eager-allowlist.json +1 -1
  5. package/dist/{chunk-3O5EII3W.js → chunk-2VZ3VN3N.js} +2 -2
  6. package/dist/{chunk-SDFKOLSF.js → chunk-3HTZDY3C.js} +8 -6
  7. package/dist/{chunk-A5GRLYPZ.js → chunk-3NPWO5UO.js} +7 -13
  8. package/dist/{chunk-AGGUWKRK.js → chunk-47UCC4MM.js} +1 -1
  9. package/dist/chunk-4ENEJHF4.js +198 -0
  10. package/dist/{chunk-WXUDRAG6.js → chunk-5GEYJJHG.js} +10 -12
  11. package/dist/{chunk-HHR7WGCI.js → chunk-5YSEQHJN.js} +3 -3
  12. package/dist/{chunk-L3CLUGDY.js → chunk-6GPB3JLL.js} +3 -3
  13. package/dist/{chunk-5F3XF3SX.js → chunk-7R5GZIA6.js} +6 -6
  14. package/dist/{chunk-CUDD35TW.js → chunk-7UTSNTWM.js} +4 -4
  15. package/dist/{chunk-DYRZGUMA.js → chunk-7YTRG6YW.js} +2 -2
  16. package/dist/{chunk-JZRP4DGP.js → chunk-AACN5GNE.js} +2 -2
  17. package/dist/{chunk-7ANZ7XDD.js → chunk-ACRJ2GZ5.js} +2 -2
  18. package/dist/{chunk-6FIRFP6A.js → chunk-C3YRO3EU.js} +10 -12
  19. package/dist/{chunk-GMROJJRN.js → chunk-CB7PEVOJ.js} +9 -1
  20. package/dist/{chunk-BBET6HD6.js → chunk-CDFJF5YD.js} +1 -1
  21. package/dist/{chunk-NSPVR3FN.js → chunk-CJS6WE66.js} +17 -19
  22. package/dist/{chunk-6YUNI7B5.js → chunk-CM6BDY4E.js} +14 -60
  23. package/dist/{chunk-G5GV2Q7K.js → chunk-CZCAZVTD.js} +16 -2
  24. package/dist/chunk-DGKFWQK4.js +23 -0
  25. package/dist/{chunk-VOP4PJKA.js → chunk-E65WJVI5.js} +7 -9
  26. package/dist/{chunk-TV6RXRYH.js → chunk-EKNYSXFB.js} +8 -10
  27. package/dist/{chunk-4LL2VRNY.js → chunk-EY6LY2HO.js} +16 -18
  28. package/dist/{chunk-MC6VB2E5.js → chunk-F6BEQWAK.js} +17 -5
  29. package/dist/{chunk-R2QQC33W.js → chunk-FGNSESAC.js} +12 -14
  30. package/dist/{chunk-OC7VWJBZ.js → chunk-FRUBVFXV.js} +35 -37
  31. package/dist/{chunk-7CGIDRIK.js → chunk-G22UNQID.js} +14 -16
  32. package/dist/{chunk-L4NEVZ4T.js → chunk-GQTQUNCG.js} +25 -27
  33. package/dist/{chunk-ZKLTNLAW.js → chunk-H3BVMK47.js} +6 -6
  34. package/dist/chunk-H6FLQ5NW.js +28 -0
  35. package/dist/{chunk-2ZE3AUJQ.js → chunk-HEA3EM23.js} +13 -15
  36. package/dist/{chunk-CZL44WFN.js → chunk-HSOBIN22.js} +2 -2
  37. package/dist/{chunk-PKSUMEPT.js → chunk-HYSKJMZK.js} +3 -3
  38. package/dist/{chunk-VN3L2JWZ.js → chunk-IICERRFF.js} +5 -5
  39. package/dist/{chunk-O4N5BQ3T.js → chunk-IILEH3ZC.js} +8 -10
  40. package/dist/{chunk-WC6WRNQT.js → chunk-J3Q2NYJR.js} +2 -2
  41. package/dist/{chunk-SFLHSL5R.js → chunk-JUZ67QZQ.js} +18 -7
  42. package/dist/chunk-KR5VGMVT.js +25 -0
  43. package/dist/{chunk-UHHLR2VY.js → chunk-KV6GQOGN.js} +38 -41
  44. package/dist/{chunk-HUAM7QG3.js → chunk-KXMJLOZF.js} +25 -23
  45. package/dist/{chunk-BUZIQDFS.js → chunk-L4Y3ROKQ.js} +3 -3
  46. package/dist/{chunk-JBP7KESM.js → chunk-L6WBJGQS.js} +1 -1
  47. package/dist/{chunk-35WKJWO5.js → chunk-L7O774U7.js} +14 -14
  48. package/dist/{chunk-BOPDQ7AZ.js → chunk-LAHHGNAY.js} +19 -21
  49. package/dist/{chunk-RGGH6M34.js → chunk-LT62P654.js} +1 -1
  50. package/dist/{chunk-5T5A6YAJ.js → chunk-LWOM6LVS.js} +33 -34
  51. package/dist/{chunk-JYLOYTZD.js → chunk-MKPDIAZH.js} +5 -1
  52. package/dist/{chunk-CM73PPGD.js → chunk-MN635QYA.js} +3 -4
  53. package/dist/{chunk-BQG2QFVO.js → chunk-MQ4PPCJB.js} +21 -29
  54. package/dist/{chunk-HXFUTMX2.js → chunk-MRLH4MYU.js} +2 -2
  55. package/dist/{chunk-XOMGO63G.js → chunk-N56BNAA6.js} +19 -21
  56. package/dist/{chunk-7MAD5ZAY.js → chunk-N5CEGQPG.js} +14 -16
  57. package/dist/{chunk-ZFORSIED.js → chunk-NCLO6E6N.js} +13 -33
  58. package/dist/{chunk-SQC7K3SP.js → chunk-NL5LSKVD.js} +2 -2
  59. package/dist/{chunk-I22THIHI.js → chunk-NMUSOZ2D.js} +10 -12
  60. package/dist/{chunk-4NBWFYWW.js → chunk-NOWH2VA2.js} +8 -33
  61. package/dist/{chunk-NM2NWH55.js → chunk-NUSXS6YB.js} +6 -5
  62. package/dist/{chunk-OZWXLJMX.js → chunk-OSEKJEUU.js} +2 -2
  63. package/dist/{chunk-2BKUFQKR.js → chunk-OUYAUXAT.js} +405 -181
  64. package/dist/{chunk-JPRDTY5S.js → chunk-PBZNYHMM.js} +8 -10
  65. package/dist/{chunk-JE6HKLC7.js → chunk-PIIUNJIT.js} +2 -4
  66. package/dist/{chunk-ZZDIOAAJ.js → chunk-PRHYIA6X.js} +6 -6
  67. package/dist/{chunk-4W52ZKZX.js → chunk-PXQ45SGD.js} +2 -2
  68. package/dist/chunk-Q6JQKWPK.js +25 -0
  69. package/dist/{chunk-PIQQM32Y.js → chunk-QB7T2PHK.js} +2 -2
  70. package/dist/{chunk-HKIL6DCL.js → chunk-QGITU23N.js} +1 -1
  71. package/dist/chunk-QJJKOHLH.js +57 -0
  72. package/dist/{chunk-6LJOJ6EO.js → chunk-QP33NKYC.js} +14 -16
  73. package/dist/{chunk-DIWK3LBC.js → chunk-QVBOXT3L.js} +8 -10
  74. package/dist/{chunk-IYVYZQRL.js → chunk-RNJFRXEN.js} +5 -7
  75. package/dist/{chunk-G6JKM4O7.js → chunk-RNXOWDM6.js} +10 -10
  76. package/dist/{chunk-5RNB4HVK.js → chunk-RTFMDIKV.js} +1 -1
  77. package/dist/{chunk-XWIME22V.js → chunk-SIQHOB6P.js} +11 -13
  78. package/dist/{chunk-T2S3FNNJ.js → chunk-SLSMJPEF.js} +41 -42
  79. package/dist/chunk-T5QSLSMM.js +50 -0
  80. package/dist/chunk-TGQDAG4B.js +88 -0
  81. package/dist/{chunk-6GMGEKQN.js → chunk-THYHUIDR.js} +39 -12
  82. package/dist/{chunk-WMDUT4KH.js → chunk-TMNUTMT5.js} +72 -89
  83. package/dist/{chunk-7TNILKGY.js → chunk-TOE2RRCS.js} +1 -1
  84. package/dist/chunk-TYHPVE5H.js +25 -0
  85. package/dist/chunk-UAKO2M6B.js +73 -0
  86. package/dist/chunk-UC5AXW5Z.js +20 -0
  87. package/dist/chunk-UTJP6WOS.js +28 -0
  88. package/dist/{chunk-FRLAUP2B.js → chunk-UXTQ3QPD.js} +4 -4
  89. package/dist/{chunk-4QG55RRC.js → chunk-V2WDBOLZ.js} +10 -12
  90. package/dist/{chunk-FHEV6T4L.js → chunk-V67D6TMU.js} +8 -10
  91. package/dist/{chunk-VLQ7UKZH.js → chunk-VCRVNLE7.js} +135 -2
  92. package/dist/{chunk-KZ4ALBCH.js → chunk-VO4JFPTV.js} +2 -2
  93. package/dist/{chunk-GIRBSBGL.js → chunk-VWLSU3XV.js} +3 -3
  94. package/dist/{chunk-2453RRJ2.js → chunk-W5E72HJA.js} +59 -22
  95. package/dist/{chunk-VPLBLWFO.js → chunk-W7TY6HYX.js} +1 -1
  96. package/dist/{chunk-SP4TFY5F.js → chunk-WSSLVMDA.js} +11 -13
  97. package/dist/{chunk-PPKECBPP.js → chunk-WTB4GKMH.js} +10 -1
  98. package/dist/{chunk-X35S7HSB.js → chunk-X5BJ3G2P.js} +41 -30
  99. package/dist/{chunk-X66YJ2SS.js → chunk-XKFO2SZV.js} +33 -34
  100. package/dist/{chunk-OWTG6UMO.js → chunk-XLAI7UYY.js} +75 -22
  101. package/dist/{chunk-4B2YFN4U.js → chunk-XO756WE5.js} +45 -33
  102. package/dist/{chunk-VOXTCULR.js → chunk-XVB3Q2PG.js} +2 -4
  103. package/dist/{chunk-XYLC35E4.js → chunk-YOXCCJDF.js} +517 -308
  104. package/dist/{chunk-O2ARHQKF.js → chunk-ZCQBNPRH.js} +2 -2
  105. package/dist/chunk-ZD4KVFXI.js +234 -0
  106. package/dist/{chunk-LSFXZLPW.js → chunk-ZDMFGACN.js} +184 -235
  107. package/dist/{chunk-4BKU7PV3.js → chunk-ZMMHHXSW.js} +1 -1
  108. package/dist/{chunk-OY7WZI7Q.js → chunk-ZPM7ZIFL.js} +6 -6
  109. package/dist/{chunk-R4QWJQ2H.js → chunk-ZVCDHYWZ.js} +9 -11
  110. package/dist/{chunk-RZG472YW.js → chunk-ZZN74OGD.js} +83 -46
  111. package/dist/{chunk-BHWW6FAX.js → chunk-ZZSJAR76.js} +37 -19
  112. package/dist/index.js +4910 -4218
  113. package/dist/mcp/analyze-cli.js +12 -17
  114. package/dist/mcp/cli.js +41 -42
  115. package/dist/mcp/server.js +1451 -648
  116. package/dist/mcp/worker.js +59 -60
  117. package/dist/probes/installer.js +17 -19
  118. package/docs/agent-tools.md +40 -8
  119. package/docs/analysisall.md +1 -1
  120. package/docs/ci-bot-pr-checks.md +7 -5
  121. package/docs/configuration.md +51 -9
  122. package/docs/defect-shapes.md +52 -3
  123. package/docs/environment-variables.md +18 -1
  124. package/docs/features.md +12 -5
  125. package/docs/globalconfig.md +11 -3
  126. package/docs/invariants/lsp-trust-exec.md +9 -2
  127. package/docs/invariants/session-telemetry.md +2 -2
  128. package/docs/language-coverage.md +1 -0
  129. package/docs/lsp-capability-matrix.md +57 -35
  130. package/docs/lsp-idle-eviction.md +4 -1
  131. package/docs/merge-queue-rollout.md +10 -8
  132. package/docs/module-report-read-symbol.md +34 -23
  133. package/docs/pi-lens-fixer.md +11 -1
  134. package/docs/pi-lens-investigator.md +3 -0
  135. package/docs/pi-lens-merge-policy.md +15 -7
  136. package/docs/pi-lens-reviewer.md +1 -1
  137. package/docs/pi-lens-subagent.md +13 -0
  138. package/docs/public-api-stability.md +39 -5
  139. package/docs/release-qa-baseline.md +7 -4
  140. package/docs/schema/pi-lens-config-v1.json +11 -2
  141. package/docs/servercapabilities.md +3 -1
  142. package/docs/settings.md +2 -2
  143. package/docs/word-index.md +3 -2
  144. package/package.json +8 -3
  145. package/rules/ast-grep-rules/rules/no-sql-in-code-execute-js.yml +1 -2
  146. package/rules/ast-grep-rules/rules/no-sql-in-code-execute.yml +1 -2
  147. package/scripts/download-grammars.js +3 -2
  148. package/skills/pi-lens-lsp-navigation/SKILL.md +5 -1
  149. package/dist/chunk-2TS4GLOJ.js +0 -31
  150. package/dist/chunk-3JAHQBSY.js +0 -27
  151. package/dist/chunk-447YZL4S.js +0 -25
  152. package/dist/chunk-565VRUP4.js +0 -136
  153. package/dist/chunk-57X2CDRX.js +0 -49
  154. package/dist/chunk-GGYOZWHW.js +0 -27
  155. package/dist/chunk-IE5D3RA5.js +0 -58
  156. package/dist/chunk-LPYTPNOJ.js +0 -22
  157. package/dist/chunk-OFNMHPBT.js +0 -89
  158. package/dist/chunk-U3AS2FR6.js +0 -106
  159. package/dist/chunk-W3BGKBBK.js +0 -27
  160. package/dist/chunk-WQV6BI4Q.js +0 -48
  161. package/dist/chunk-YHGYAEFH.js +0 -443
  162. package/dist/chunk-ZONZ6YY3.js +0 -74
  163. package/dist/chunk-ZSM35JF4.js +0 -30
@@ -83,10 +83,14 @@ The trailing ` [PILENS_CFG_NNNN]` marker is appended by
83
83
  `withConfigDiagnosticCode`, is idempotent, and is always last. Match on it:
84
84
 
85
85
  ```sh
86
- # every ignored-config warning this session, from the durable degradation log
86
+ # every config file this session that is unreadable, unparsable, or not a JSON object
87
87
  grep 'PILENS_CFG_0001' ~/.pi-lens/latency.log
88
88
 
89
- # suppress one code while keeping every other pi-lens warning
89
+ # every unknown key and rejected value this session (typos, wrong types);
90
+ # latency.log keeps only the first notice's code per file, so read extension.log
91
+ grep -E 'PILENS_CFG_000[45]' ~/.pi-lens/extension.log
92
+
93
+ # drop only the whole-file notices; typo notices keep PILENS_CFG_0004 and PILENS_CFG_0005
90
94
  pi ... 2>&1 | grep -v 'PILENS_CFG_0001'
91
95
  ```
92
96
 
@@ -99,11 +103,11 @@ this policy explicitly reserves the right to change.
99
103
 
100
104
  | Code | Meaning | Emitter |
101
105
  | --- | --- | --- |
102
- | `PILENS_CFG_0001` | A config file exists but could not be read or parsed, so it is ignored. | `warnIgnoredConfigOnce` (`clients/config-warn.ts`), the single choke point behind the LSP, global, and project config loaders. |
106
+ | `PILENS_CFG_0001` | A config file exists but is unreadable, unparsable, or not a JSON object, so it is ignored. | `warnIgnoredConfigOnce` (`clients/config-warn.ts`), the single choke point behind the LSP, global, and project config loaders, and its default code for a read or parse failure. |
103
107
  | `PILENS_CFG_0002` | A deprecated config **key** was accepted inside its deprecation window. | `deprecationRecords` (`clients/config-resolve.ts`), one record per `(file, key)`, delivered by `reportPiLensConfigRecords` (#2426). |
104
108
  | `PILENS_CFG_0003` | A deprecated config **file location** was read inside its window. | Same producer and same delivery path as `PILENS_CFG_0002`. |
105
- | `PILENS_CFG_0004` | A config field no schema property claims was dropped. | `validate()` (`clients/config-core/normalize.ts`) produces the record; `reportPiLensConfigRecords` (`clients/config-resolve.ts`) delivers it through `warnIgnoredConfigOnce` (#2426). |
106
- | `PILENS_CFG_0005` | A config field's value did not match its schema and was dropped. One FIELD; the rest of the file is in effect. | Same producer and same delivery path as `PILENS_CFG_0004`. |
109
+ | `PILENS_CFG_0004` | A config field no schema property claims was dropped. | `validate()` (`clients/config-core/normalize.ts`) produces the record; `reportPiLensConfigRecords` (`clients/config-resolve.ts`) delivers it through `warnIgnoredConfigOnce` (#2426). The global and project loaders' own unknown-key scans pass the same code (`clients/lens-config.ts`, `clients/project-lens-config.ts`). |
110
+ | `PILENS_CFG_0005` | A config field's value did not match its schema, or one member of a list field was rejected by its id check (`dispatch.disabledRunners`, `lsp.disabledServers`). The rejected field or member is dropped; the rest of the file stays in effect. | Same producer and same delivery path as `PILENS_CFG_0004`, plus the loaders' own value checks (`clients/lens-config.ts`, `clients/project-lens-config.ts`, `clients/tool-config.ts`, `clients/lens-flag-registry.ts`), and the `dispatch.disabledRunners` and `lsp.disabledServers` id checks (`clients/dispatch/disabled-runners.ts`, `clients/lsp/config.ts`). |
107
111
  | `PILENS_CFG_0006` | A config key that would modify an object's prototype (`__proto__`, `constructor`, `prototype`) was refused. | Both halves of the config core, through the shared policy in `clients/config-core/safe-object.ts`. |
108
112
  | `PILENS_CFG_0007` | Further config notices were suppressed by a bound, and this one carries the count — the WHOLE count, including anything an earlier bound in the same pipeline dropped. Nothing about the config is wrong; the notice list was truncated. | `MigrationRecordCollector.finalize` (`clients/config-core/records.ts`) — the ONE producer, reached through `finalizeRecords` by every record list: the shared resolution, the global loader's unknown-key scan, the project loader's unknown-key scan, and its legacy-document enumeration. Rendered with neutral prose and recorded under the `config-notice-suppressed` degradation kind, never `config-ignored`. |
109
113
  | `PILENS_CFG_0008` | Resolving a config failed internally, so the WHOLE file was ignored and pi-lens ran on defaults. | The two guards under the pipeline: `resolveConfig` (`clients/config-core/resolve.ts`) and the global loader's post-parse catch (`clients/lens-config.ts`). Carries the error class only, never its message. |
@@ -407,6 +411,36 @@ sends two spellings naming different files is refused rather than guessed at.
407
411
  Adding a fourth spelling, or dropping one of these, changes this contract
408
412
  through section 4.
409
413
 
414
+ ### The MCP tool result block contract
415
+
416
+ An MCP tool result carries a `content` array of text blocks. For an **opted-in
417
+ JSON cell** (`module_report` `*-json`, `project_report` `view: "json"`, and
418
+ `lsp_navigation`, whose envelope is always JSON) the contract is:
419
+
420
+ - **block 0 is the payload.** It is one machine-parsed document; a stale-build
421
+ advisory or an ignored-arguments note never joins it.
422
+ - **later text blocks are annotations.** The `warmCodeStale: true` advisory and
423
+ the `Ignored unknown argument(s)` note ride their own trailing blocks, with
424
+ the ignored-arguments note ahead of the advisory when both are present.
425
+ - **the contract footer is stamped on the last text block.** `stripContractFooter`
426
+ (`tools/render-compact.ts`) is the single owner of `CONTRACT_FOOTER_TAIL_RE`;
427
+ a reader strips it before parsing block 0. The function is a no-op when no
428
+ footer is at the tail, so a payload whose footer rides another block is
429
+ returned byte-identical.
430
+
431
+ The cell opts in through a `jsonCell` marker in `details`; `stripResultDetails`
432
+ removes `details` before the wire, so the marker never leaks. Text cells keep
433
+ the single-block shape: the advisory is appended to the payload's own block.
434
+
435
+ The delivered text (all blocks joined, footer included) stays inside
436
+ `MAX_RESULT_BYTES`; the payload budget reserves the annotation bytes and the
437
+ block separators. A **truncated** JSON cell is not parseable by design: its
438
+ footer reports `truncated=true` and the advisory still rides a later block.
439
+
440
+ Observability: the `warmCodeStale` marker is the record; this contract adds no
441
+ telemetry. A display-only client that renders block 0 alone hides the advisory;
442
+ that is an accepted residual.
443
+
410
444
  ## 6. File I/O Lifecycle Bridge (v2)
411
445
 
412
446
  `PiLensIOBridge` is public API from day one ([RFC 3654](rfcs/3654-unified-io-bridge-v2.md)).
@@ -84,7 +84,7 @@ PR's packed tarball (#2700, the check #2587 was missing). `attw`
84
84
  | mcp-diagnostics-full | `lens_diagnostics` full mode answers on a fixture repo | mcp-stdio | `tools/call` `pilens_diagnostics` with `mode` `full` and `refreshRunners` `cheap`, POLLED | text carries a `Summary (N files diagnosed this session)` line with N at least 1 | tool result text | new — `tests/clients` covers the handler, nothing covers it through a packaged install | — |
85
85
  | mcp-turn-end | the turn-end pipeline runs over the turn's files and returns an advisory | mcp-stdio | `tools/call` `pilens_turn_end` with the fixture file | text carries `Turn-end over N file(s).` with N at least 1 | tool result text | new — `scripts/smoke-availability-lifecycle.mjs` covers lifecycle availability, not the packaged turn-end path | #1605 lane 2 (availability-lifecycle): overlaps the turn-end half; #1605 asserts latch recovery, this row asserts the packaged turn-end path answers at all |
86
86
  | mcp-lsp-navigation | LSP navigation answers on a fixture | mcp-stdio | `tools/call` `pilens_lsp_navigation` with operation `documentSymbol` and the fixture path | result is not an error and names the fixture's exported `releaseQaFixtureSymbol` | tool result text | `scripts/smoke-tools.mjs --lsp` is the per-server sibling; this row is the packaged-path variant | #1829 lane 2/3 (gated real-binary + the rotating install lane): #1829 pins each tool's own contract, this row pins that the packaged LSP path answers |
87
- | config-provenance | a project config is LOADED and its provenance is reportable | mcp-stdio | `tools/call` `pilens_effective_config` with the fixture file | result names the fixture's `.pi-lens.json` as a contributing document | tool result text | new — `tests/config/pi-lens-config-schema.test.ts` covers the schema, not the packaged load | — |
87
+ | config-provenance | a project config is LOADED and its provenance is reportable | mcp-stdio | `tools/call` `pilens_effective_config` with the fixture file | result names the fixture's `.pi-lens.json` as a contributing document | tool result text | `tests/clients/lsp/resolved-config.test.ts` compares the published schema with `PI_LENS_CONFIG_SCHEMA`, and `tests/clients/public-surface-drift.test.ts` reads it; no test covers the packaged config load | — |
88
88
  | degradation-visible | a silently-ignored input is RECORDED as a degradation instead of vanishing | mcp-stdio | `tools/call` `pilens_health` with the fixture's project-tier `lsp.enabled` (a global-only setting) loaded | health text carries a `config-ignored` degradation line naming the fixture's `.pi-lens.json` | health tool result text | `clients/degradation-ledger.ts` is the reused machinery; no smoke asserts it end to end | #1605 lane 2 (availability-lifecycle): the degradation-recorded half; #1605 additionally asserts RECOVERY, which this row does not |
89
89
  | global-config-location | the agent-dir global config file supplies the global tier when it exists and the legacy default does not | mcp-stdio | `tools/call` `pilens_effective_config` on a real pi-lens MCP server whose env sets `PI_CODING_AGENT_DIR` at a scratch dir holding `extensions/pi-lens.json` | the tool result NAMES the agent-dir file as a contributing config document (the `pi-coding-agent-dir` winner) | tool result text | `tests/clients/global-config-location.test.ts` covers the resolution in-process; no smoke drives the packaged MCP path with the env set | — |
90
90
  | config-shadow-record | a lower-precedence global config file beside the winner is recorded once per session | mcp-stdio | `tools/call` `pilens_effective_config` then `pilens_health` twice, on a real MCP server whose env has BOTH `~/.pi-lens/config.json` and `PI_CODING_AGENT_DIR/extensions/pi-lens.json` present | health carries a `config-location-shadowed: 1` line naming the shadowed agent-dir file, and the count stays 1 on a second health read after a further config load | the two health tool result texts | `clients/degradation-ledger.ts` `recordDegradationOnce` and `tests/clients/global-config-location.test.ts`; no smoke asserts the record end to end | #1605 lane 2 (availability-lifecycle): the degradation-recorded half, as `degradation-visible`; this row additionally pins the once-per-session count across two loads |
@@ -155,7 +155,7 @@ newest-in-range lane reads it, bounded above so `"*"` can never mean
155
155
  matrix has passed on. A newer host enters the window in ONE change: run this
156
156
  matrix on it, add it to that test's verified list, and move the workflow's
157
157
  ceiling together. P1 is one verified host per minor line from 0.86 onward;
158
- 0.86–1.4 are in-window, and every minor line below 0.86 falls outside the
158
+ 0.86–1.5 are in-window, and every minor line below 0.86 falls outside the
159
159
  window entirely, so none needs a dedicated host. A ceiling past an unrun
160
160
  minor still claims that minor, so the verified-minor ratchet names the admitted
161
161
  lines explicitly.
@@ -171,9 +171,11 @@ the old hosts; a real 0.80.10 session delivered the staged guidance at
171
171
 
172
172
  ### Verified hosts
173
173
 
174
- The certified policy is `>=0.86.1 <1.5.0`, and this table is the whole verified
174
+ The certified policy is `>=0.86.1 <1.6.0`, and this table is the whole verified
175
175
  set: `tests/packaging.test.ts` fails when it and `PI_HOST_SUPPORTED_RANGE`
176
- disagree. Each listed minor line has a release-QA witness; the workflow ceiling
176
+ disagree. Each listed minor line through 1.4 has a release-QA witness; 1.5 was
177
+ certified by maintainer decision on 2026-11-02, with its witness blocked by
178
+ the lane npm guard. The workflow ceiling
177
179
  and `tests/packaging.test.ts` list are updated together.
178
180
 
179
181
  | host | date | pi-lens commit | result |
@@ -186,6 +188,7 @@ and `tests/packaging.test.ts` list are updated together.
186
188
  | 1.2.0 | 2026-10-16 | 9400454891d5a1beb0a4d2d9452dece276e22e71 | 15 pass / 1 skipped (git-install-loads) |
187
189
  | 1.3.0 | 2026-10-16 | 9400454891d5a1beb0a4d2d9452dece276e22e71 | 15 pass / 1 skipped (git-install-loads) |
188
190
  | 1.4.0 | 2026-10-22 | 75a1a3c893ed0ac44a3081dd3d475c1e72349099 | 15 pass / 1 skipped (git-install-loads) |
191
+ | 1.5.0 | 2026-11-02 | e5017388815d476e783fc850b3d05c6ce98bd85e | Maintainer certification; release QA blocked by npm guard (17 untested) |
189
192
 
190
193
  Re-run any row with `node scripts/release-qa.mjs --pi <host>` at the listed commit.
191
194
 
@@ -556,8 +556,17 @@
556
556
  "additionalProperties": true,
557
557
  "properties": {
558
558
  "threshold": { "type": "number", "x-stability": "experimental" },
559
- "disable": { "x-stability": "experimental" },
560
- "select": { "x-stability": "experimental" },
559
+ "disable": {
560
+ "type": "array",
561
+ "items": { "type": "string", "x-stability": "experimental" },
562
+ "x-deny": "array-union",
563
+ "x-stability": "experimental"
564
+ },
565
+ "select": {
566
+ "type": "array",
567
+ "items": { "type": "string", "x-stability": "experimental" },
568
+ "x-stability": "experimental"
569
+ },
561
570
  "ignorePaths": {
562
571
  "type": "array",
563
572
  "items": { "type": "string", "minLength": 1, "x-stability": "experimental" },
@@ -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-10-27 on linux; 41 servers captured, 9 unavailable._
9
+ _Last generated: 2026-11-04 on linux; 42 servers captured, 9 unavailable._
10
10
 
11
11
  ## Diagnostic mode + navigation/edit operations
12
12
 
@@ -28,6 +28,7 @@ Legend: ✓ advertised, · not. **mode** = document diagnostics (`pull` = `textD
28
28
  | docker-official | push-only | · | · | ✓ | · | · | · | ✓ | · | ✓ | · | ✓ | ✓ | · | · | · | 1 |
29
29
  | emmylua | pull | · | · | ✓ | · | · | ✓ | ✓ | · | ✓ | ✓ | ✓ | · | · | · | · | 4 |
30
30
  | expert | push-only | · | save | ✓ | · | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | · | ✓ | ✓ | · | 2 |
31
+ | fallow | push-only | · | · | · | · | · | · | ✓ | · | · | · | ✓ | · | · | · | · | 0 |
31
32
  | fish | push-only | · | save+text | ✓ | · | · | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | · | · | 23 |
32
33
  | fsharp | push-only | · | save+text | ✓ | ✓ | · | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | · | 0 |
33
34
  | gleam | push-only | · | save | ✓ | ✓ | · | ✓ | ✓ | ✓ | ✓ | · | ✓ | ✓ | · | · | · | 0 |
@@ -75,6 +76,7 @@ surface, including providers pi-lens does not yet consume.
75
76
  - **docker-official**: codeActionProvider, completionProvider, definitionProvider, documentFormattingProvider, documentHighlightProvider, documentLinkProvider, documentSymbolProvider, executeCommandProvider, hoverProvider, inlayHintProvider, inlineCompletionProvider, renameProvider, semanticTokensProvider, textDocumentSync
76
77
  - **emmylua**: codeActionProvider, definitionProvider, diagnosticProvider, documentSymbolProvider, executeCommandProvider, hoverProvider, referencesProvider, textDocumentSync, workspaceSymbolProvider
77
78
  - **expert**: callHierarchyProvider, codeActionProvider, codeLensProvider, completionProvider, declarationProvider, definitionProvider, documentFormattingProvider, documentSymbolProvider, executeCommandProvider, experimental, foldingRangeProvider, hoverProvider, implementationProvider, referencesProvider, selectionRangeProvider, signatureHelpProvider, textDocumentSync, workspace, workspaceSymbolProvider
79
+ - **fallow**: codeActionProvider, codeLensProvider, hoverProvider, positionEncoding, textDocumentSync
78
80
  - **fish**: codeActionProvider, completionProvider, definitionProvider, documentFormattingProvider, documentHighlightProvider, documentOnTypeFormattingProvider, documentRangeFormattingProvider, documentSymbolProvider, executeCommandProvider, foldingRangeProvider, hoverProvider, implementationProvider, inlayHintProvider, referencesProvider, renameProvider, selectionRangeProvider, semanticTokensProvider, signatureHelpProvider, textDocumentSync, workspace, workspaceSymbolProvider
79
81
  - **fsharp**: callHierarchyProvider, codeActionProvider, codeLensProvider, completionProvider, definitionProvider, documentFormattingProvider, documentHighlightProvider, documentRangeFormattingProvider, documentSymbolProvider, foldingRangeProvider, hoverProvider, implementationProvider, inlayHintProvider, referencesProvider, renameProvider, selectionRangeProvider, semanticTokensProvider, signatureHelpProvider, textDocumentSync, typeDefinitionProvider, workspaceSymbolProvider
80
82
  - **gleam**: codeActionProvider, completionProvider, definitionProvider, documentFormattingProvider, documentHighlightProvider, documentSymbolProvider, foldingRangeProvider, hoverProvider, referencesProvider, renameProvider, signatureHelpProvider, textDocumentSync, typeDefinitionProvider, workspace
package/docs/settings.md CHANGED
@@ -155,8 +155,8 @@ field docs.
155
155
  | `actionableWarnings.autoFix.maxFixes` | global | `5` | Cap on quickfixes applied per turn (`0` = report only) |
156
156
  | `rules.high-complexity.threshold` | project | `15` | Cyclomatic-complexity threshold |
157
157
  | `rules.high-fan-out.threshold` | project | `20` | Distinct-function-call threshold |
158
- | `rules.<id>.disable` | global + project | absent | Disable diagnostics for a rule (output-only filter, project-wide; same normalization as `pi-lens-ignore`). Read per file from its nearest `.pi-lens.json`, so a nested file governs the files under it. See [configuration](configuration.md#rulesid--read-from-each-files-own-config) |
159
- | `rules.<id>.select` | project | absent | Allowlist of rule ids (output-only filter, project-wide across every key; disable wins over select) |
158
+ | `rules.<id>.disable` | global + project | absent | Disable diagnostics for a rule (output-only filter, project-wide; same normalization as `pi-lens-ignore`). Read per file from its nearest `.pi-lens.json`, so a nested file governs the files under it. A denial: the union of every tier (global, root and nested files), so a nearer file can add rules but never re-enable one. See [configuration](configuration.md#rulesid--read-from-each-files-own-config) |
159
+ | `rules.<id>.select` | global + project | absent | Allowlist of rule ids (output-only filter, project-wide across every key; disable wins over select). Not a denial: per grouping key, the nearest file that sets it supplies the whole list, and a global `select` applies to a key no nearer file sets. Lists under different keys are unioned |
160
160
  | `rules.<id>.ignorePaths` | global + project | `[]` | Experimental rule-scoped path entries matched like the `ignore` field: gitignore rules, relative to the directory of the file that declares them (the project root for a global entry). A later entry beats an earlier one, `!` re-includes, a leading `/` roots the entry at that directory, a trailing `/` names a directory, and an entry with no slash matches at any depth below it. Matching files skip that rule's scan and output. Entries are monotonic across files: a `!` re-includes only against the entries of its own file, and a nearer file never lifts another file's carve-out. Changed from earlier releases, which matched each entry as a plain glob: a `!` entry used to hide every path its glob did not name, and a leading `/` or trailing `/` matched nothing; they now follow gitignore. An entry with a slash keeps its meaning, and a slashless entry such as `*.gen.ts` now also matches below the root. See the [configuration reference](./configuration.md#rulesid--read-from-each-files-own-config). |
161
161
  | `maxProjectFiles` | project | `2000` | Base scale knob; derives five subsystem size budgets |
162
162
  | `reviewGraph.maxFiles` | project | derived (clamped `100`–`20000`) | Explicit review-graph file budget |
@@ -53,8 +53,9 @@ parsed by `parseWordIndexQuery` (`clients/word-index.ts`) before tokenization:
53
53
  - `file:<substr>` — path substring match against the index's own stored path,
54
54
  normalized through `wordIndexKey` (case-folded on win32 only, matching how
55
55
  the index's own path-keyed maps already fold win32 paths, #1025).
56
- - `ext:<ext>` — literal extension match (`ext:ts` and `ext:.ts` are
57
- equivalent).
56
+ - `ext:<ext>` — path-suffix match on the index's display path, case-insensitive,
57
+ leading dot optional (`ext:ts` and `ext:.ts` are equivalent; `ext:test.ts`
58
+ matches `foo.test.ts`; `ext:ts` does not match `foo.tsx`).
58
59
  - Any filter may be negated with a leading `-` (`-file:test`).
59
60
 
60
61
  Example: `lang:jsts file:clients/ -file:test rank`. Multiple positive filters
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-lens",
3
- "version": "4.4.8",
3
+ "version": "4.4.9",
4
4
  "type": "module",
5
5
  "description": "Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo",
6
6
  "repository": {
@@ -126,6 +126,7 @@
126
126
  "scripts/rpc-load-check.mjs",
127
127
  "README.md",
128
128
  "CHANGELOG.md",
129
+ "CHANGELOG-USER.md",
129
130
  "banner.svg",
130
131
  "banner.png"
131
132
  ],
@@ -133,9 +134,9 @@
133
134
  "@ast-grep/cli": "0.51.0",
134
135
  "@ast-grep/napi": "^0.51.0",
135
136
  "js-yaml": "^5.2.2",
136
- "minimatch": "^11.0.1",
137
+ "minimatch": "^11.0.4",
137
138
  "pidusage": "^4.0.1",
138
- "vscode-jsonrpc": "^9.0.0"
139
+ "vscode-jsonrpc": "^10.0.0"
139
140
  },
140
141
  "peerDependencies": {
141
142
  "@earendil-works/pi-coding-agent": "*",
@@ -158,6 +159,7 @@
158
159
  "web-tree-sitter": "0.25.10"
159
160
  },
160
161
  "pi": {
162
+ "changelogPath": "CHANGELOG-USER.md",
161
163
  "extensions": [
162
164
  "./dist/index.js"
163
165
  ],
@@ -173,6 +175,9 @@
173
175
  "protobufjs@7.6.6": true
174
176
  },
175
177
  "overrides": {
178
+ "@stryker-mutator/core": {
179
+ "minimatch": "$minimatch"
180
+ },
176
181
  "qs": "^6.15.4",
177
182
  "undici": "^8.12.2"
178
183
  }
@@ -59,8 +59,7 @@ note: |
59
59
  `SELECT` and `WITH` arms carry no word boundary, so
60
60
  `job.execute("selected from " + source)` still flags there, and its
61
61
  skip accepts real whitespace only, so an escaped `"\nSELECT ..."` is a
62
- miss there. tests/config/sql-injection-alternation-drift.test.ts keeps
63
- the rest of the alternation byte-identical to the sibling's copy.
62
+ miss there.
64
63
 
65
64
  Cost (#4804 review, measured on this head for the shared statement
66
65
  test): 2.2 to 23.7 ms per scanned file, 231 to 468 of 2,687 JS/TS files
@@ -59,8 +59,7 @@ note: |
59
59
  `SELECT` and `WITH` arms carry no word boundary, so
60
60
  `job.execute("selected from " + source)` still flags there, and its
61
61
  skip accepts real whitespace only, so an escaped `"\nSELECT ..."` is a
62
- miss there. tests/config/sql-injection-alternation-drift.test.ts keeps
63
- the rest of the alternation byte-identical to the sibling's copy.
62
+ miss there.
64
63
 
65
64
  Cost (#4804 review, measured on this head for the shared statement
66
65
  test): 2.2 to 23.7 ms per scanned file, 231 to 468 of 2,687 JS/TS files
@@ -20,7 +20,8 @@
20
20
  import { createHash } from "node:crypto";
21
21
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
22
22
  import { dirname, join } from "node:path";
23
- import { fileURLToPath, pathToFileURL } from "node:url";
23
+ import { fileURLToPath } from "node:url";
24
+ import { isMainModule } from "./lib/is-main-module.mjs";
24
25
  // The pinned tree-sitter-wasms release. Bump this, run `--write-manifest`, and
25
26
  // commit the regenerated grammars.lock.json to move to a new grammar set.
26
27
  const TREE_SITTER_WASMS_VERSION = "0.1.13";
@@ -312,7 +313,7 @@ async function main() {
312
313
  }
313
314
  // Only run when invoked directly (not when imported by the provenance check or
314
315
  // tests) — the import guard keeps the exported helpers side-effect-free.
315
- if (import.meta.url === pathToFileURL(process.argv[1] ?? "").href) {
316
+ if (isMainModule(import.meta.url)) {
316
317
  main().catch((err) => {
317
318
  // Never fail the install — tree-sitter is optional.
318
319
  console.warn("Warning: grammar download failed:", err.message);
@@ -58,12 +58,16 @@ The `operation` values are `definition`, `typeDefinition`, `declaration`, `refer
58
58
 
59
59
  For `findSymbol`, pass `query`; optionally narrow with `kinds`, `exactMatch`, `topLevelOnly`, and `maxResults`. `rename_file` uses `newFilePath`. `symbol` resolves a character automatically; `character: -1` requests automatic resolution, and `symbol#N` selects a numbered symbol when the result lists one. `callHierarchyItem` is the object returned by `prepareCallHierarchy` and is required by the incoming/outgoing follow-up calls.
60
60
 
61
+ **Output is text by default**, the shape a Neovim LSP user sees: a `path:line:col` location list for `definition`, `references`, `implementation` and call hierarchy; `hover`'s markdown (a language-bearing snippet as a fenced code block); an indented `start-end kind name` symbol tree for `documentSymbol` and `findSymbol`; `path:line:col: severity: message` rows for `workspaceDiagnostics`, under a `path (scanned 5m ago)` header per file when the snapshot stamped its age; and the rename summary, or the completed edit list after applying (with a warning when the server dropped a conflicting edit). A call-hierarchy entry prints its call sites on indented `path:line:col` lines under the symbol, and `prepareCallHierarchy` adds a `callHierarchyItem: <json>` line carrying the item verbatim. Pass `view: "json"` only when you need the structured envelope (the pre-text default, byte-identical), for example to parse `locations` or `metadata.searchReads`.
62
+
63
+ An executed `executeCommand` value is the one exception: its payload is the server's arbitrary JSON, so it prints as compact single-line JSON with no line shape of its own. A command the client refused or timed out prints `Not executed: <reason>`, plus a warning that a timed-out command may still be changing files.
64
+
61
65
  ## Call Hierarchy Pattern
62
66
 
63
67
  ```
64
68
  // Step 1
65
69
  lsp_navigation(operation="prepareCallHierarchy", path="src/api.ts", line=42, character=10)
66
- // → returns callHierarchyItem
70
+ // → symbol line, then `callHierarchyItem: <json>`: pass that JSON back verbatim
67
71
 
68
72
  // Step 2
69
73
  lsp_navigation(operation="incomingCalls", callHierarchyItem=<item from step 1>)
@@ -1,31 +0,0 @@
1
- import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
- import {
3
- calcCyclomaticComplexity,
4
- functionFactProvider
5
- } from "./chunk-6YUNI7B5.js";
6
- import "./chunk-7TNILKGY.js";
7
- import "./chunk-5W3R6LFT.js";
8
- import "./chunk-BHWW6FAX.js";
9
- import "./chunk-Z54ZSOBZ.js";
10
- import "./chunk-HHR7WGCI.js";
11
- import "./chunk-HKIL6DCL.js";
12
- import "./chunk-PPKECBPP.js";
13
- import "./chunk-JYLOYTZD.js";
14
- import "./chunk-JZRP4DGP.js";
15
- import "./chunk-WMDUT4KH.js";
16
- import "./chunk-G5GV2Q7K.js";
17
- import "./chunk-X35S7HSB.js";
18
- import "./chunk-SQC7K3SP.js";
19
- import "./chunk-JE6HKLC7.js";
20
- import "./chunk-2453RRJ2.js";
21
- import "./chunk-WQV6BI4Q.js";
22
- import "./chunk-S26LC76R.js";
23
- import "./chunk-565VRUP4.js";
24
- import "./chunk-VLQ7UKZH.js";
25
- import "./chunk-LJDODBBZ.js";
26
- import "./chunk-GMROJJRN.js";
27
- import "./chunk-NXL4FFQQ.js";
28
- export {
29
- calcCyclomaticComplexity,
30
- functionFactProvider
31
- };
@@ -1,27 +0,0 @@
1
- import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
- import {
3
- RustClient,
4
- resetRustAvailability,
5
- rustClient
6
- } from "./chunk-4W52ZKZX.js";
7
- import "./chunk-BUZIQDFS.js";
8
- import "./chunk-JBP7KESM.js";
9
- import "./chunk-JZRP4DGP.js";
10
- import "./chunk-WMDUT4KH.js";
11
- import "./chunk-AWQWXSW4.js";
12
- import "./chunk-X35S7HSB.js";
13
- import "./chunk-SQC7K3SP.js";
14
- import "./chunk-JE6HKLC7.js";
15
- import "./chunk-2453RRJ2.js";
16
- import "./chunk-WQV6BI4Q.js";
17
- import "./chunk-S26LC76R.js";
18
- import "./chunk-565VRUP4.js";
19
- import "./chunk-VLQ7UKZH.js";
20
- import "./chunk-LJDODBBZ.js";
21
- import "./chunk-GMROJJRN.js";
22
- import "./chunk-NXL4FFQQ.js";
23
- export {
24
- RustClient,
25
- resetRustAvailability,
26
- rustClient
27
- };
@@ -1,25 +0,0 @@
1
- import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
- import {
3
- getSourceFiles,
4
- getSourceFilesAsync
5
- } from "./chunk-BBET6HD6.js";
6
- import "./chunk-G6JKM4O7.js";
7
- import "./chunk-O2ARHQKF.js";
8
- import "./chunk-WMDUT4KH.js";
9
- import "./chunk-QYF5S6P6.js";
10
- import "./chunk-G5GV2Q7K.js";
11
- import "./chunk-X35S7HSB.js";
12
- import "./chunk-SQC7K3SP.js";
13
- import "./chunk-JE6HKLC7.js";
14
- import "./chunk-2453RRJ2.js";
15
- import "./chunk-WQV6BI4Q.js";
16
- import "./chunk-S26LC76R.js";
17
- import "./chunk-565VRUP4.js";
18
- import "./chunk-VLQ7UKZH.js";
19
- import "./chunk-LJDODBBZ.js";
20
- import "./chunk-GMROJJRN.js";
21
- import "./chunk-NXL4FFQQ.js";
22
- export {
23
- getSourceFiles,
24
- getSourceFilesAsync
25
- };
@@ -1,136 +0,0 @@
1
- import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
- import {
3
- createNdjsonLogger,
4
- getGlobalPiLensLogDir,
5
- getMaxLogSizeMB,
6
- getTurnId,
7
- isTestMode
8
- } from "./chunk-VLQ7UKZH.js";
9
- import {
10
- normalizeLoggedPath
11
- } from "./chunk-GMROJJRN.js";
12
-
13
- // dist/clients/latency-logger.js
14
- import * as path from "node:path";
15
- var LATENCY_LOG_DIR = getGlobalPiLensLogDir();
16
- var LATENCY_LOG_FILE = path.join(LATENCY_LOG_DIR, "latency.log");
17
- var writer = createNdjsonLogger({
18
- filePath: LATENCY_LOG_FILE,
19
- maxBytes: getMaxLogSizeMB() * 1024 * 1024
20
- });
21
- var RECENT_PHASE_CAP = 5;
22
- var recentPhases = [];
23
- var LAST_PHASE_EXCLUDED = /* @__PURE__ */ new Set([
24
- "loop_block",
25
- "lsp_typescript_project_identity",
26
- "advisory_provenance_decision",
27
- "authoritative_content_attachment_decision",
28
- "agent_end_deferred_mutation_drain",
29
- "agent_end_deferred_mutation_requeue",
30
- "session_end_bus_rollup",
31
- "cache_usage_summary",
32
- "test_runner_failed_target_state",
33
- "turn_end_test_selection",
34
- "lsp_aux_wait_outcome",
35
- "tool_set_mutation",
36
- "tool_set_decision",
37
- "availability_decision",
38
- "finding_dead_path_drop",
39
- "finding_stale_line_demote",
40
- "finding_path_stat_budget_exhausted",
41
- "lsp_scanner_coverage_gap",
42
- "lsp_notify_resync_deferred",
43
- "lsp_notify_write_late_landed",
44
- "lsp_notify_stall_cpu_busy",
45
- "degradation_ledger",
46
- "path_attribution_verified_rollup",
47
- "concurrent_session_bind_rollup",
48
- "auxiliary_readiness",
49
- "lsp_empty_first_publish_held",
50
- "lsp_diagnostics_fence",
51
- "lsp_rules_refreshed",
52
- "read_guard_conversation_read",
53
- "read_widening_note",
54
- "session_handoff_slot",
55
- "session_handoff_adopt",
56
- "session_store_action",
57
- "session_end_fence_rollup",
58
- "session_handoff_turn_state",
59
- "format_late_resync_chained",
60
- "lsp_created_import_scan_rollup"
61
- ]);
62
- var liveBrackets = /* @__PURE__ */ new Map();
63
- var closedBrackets = [];
64
- function phaseStarted(phase) {
65
- const token = { phase, startedAt: (/* @__PURE__ */ new Date()).toISOString() };
66
- liveBrackets.set(token, true);
67
- return token;
68
- }
69
- function phaseFinished(token) {
70
- if (!liveBrackets.delete(token))
71
- return;
72
- closedBrackets = [
73
- {
74
- phase: token.phase,
75
- startedAt: token.startedAt,
76
- closedAt: (/* @__PURE__ */ new Date()).toISOString()
77
- },
78
- ...closedBrackets
79
- ].slice(0, RECENT_PHASE_CAP);
80
- }
81
- var oncePerSessionPhases = /* @__PURE__ */ new Set();
82
- var sessionRecordSeq = 0;
83
- function mintSessionRecordId() {
84
- sessionRecordSeq += 1;
85
- return `${process.pid.toString(36)}-${Date.now().toString(36)}-${sessionRecordSeq.toString(36)}`;
86
- }
87
- var sessionRecordId = mintSessionRecordId();
88
- function currentSessionRecordId() {
89
- return sessionRecordId;
90
- }
91
- function claimKey(phase, scope) {
92
- return `${phase}\0${scope}`;
93
- }
94
- function claimPhaseOncePerSession(phase, scope) {
95
- const key = claimKey(phase, scope);
96
- if (oncePerSessionPhases.has(key))
97
- return false;
98
- oncePerSessionPhases.add(key);
99
- return true;
100
- }
101
- function releasePhaseClaim(phase, scope) {
102
- oncePerSessionPhases.delete(claimKey(phase, scope));
103
- }
104
- function logLatency(entry) {
105
- const ts = (/* @__PURE__ */ new Date()).toISOString();
106
- if (entry.type === "phase" && entry.phase && !LAST_PHASE_EXCLUDED.has(entry.phase)) {
107
- recentPhases = [
108
- {
109
- phase: entry.phase,
110
- ts,
111
- ...entry.toolName !== void 0 && { toolName: entry.toolName },
112
- ...entry.metadata !== void 0 && { metadata: entry.metadata }
113
- },
114
- ...recentPhases
115
- ].slice(0, RECENT_PHASE_CAP);
116
- }
117
- if (isTestMode()) {
118
- return;
119
- }
120
- writer.log({
121
- ...entry,
122
- ts,
123
- pid: process.pid,
124
- turnId: entry.turnId ?? getTurnId(),
125
- filePath: normalizeLoggedPath(entry.filePath)
126
- });
127
- }
128
-
129
- export {
130
- phaseStarted,
131
- phaseFinished,
132
- currentSessionRecordId,
133
- claimPhaseOncePerSession,
134
- releasePhaseClaim,
135
- logLatency
136
- };
@@ -1,49 +0,0 @@
1
- import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
- import {
3
- MAX_CANONICAL_ROOT_MEMO_ENTRIES,
4
- RUNNERS,
5
- SOURCE_TO_TEST_PATTERNS,
6
- TURN_END_EXCLUDED_TEST_GLOBS,
7
- TestRunnerClient,
8
- isExcludedTestTarget,
9
- isRunnerErrorResult,
10
- stripWrapperArgs
11
- } from "./chunk-OWTG6UMO.js";
12
- import "./chunk-FHEV6T4L.js";
13
- import "./chunk-7ANZ7XDD.js";
14
- import "./chunk-WC6WRNQT.js";
15
- import "./chunk-PPKECBPP.js";
16
- import "./chunk-6HWVI6MI.js";
17
- import "./chunk-IYVYZQRL.js";
18
- import "./chunk-VOP4PJKA.js";
19
- import "./chunk-JBP7KESM.js";
20
- import "./chunk-JZRP4DGP.js";
21
- import "./chunk-SDFKOLSF.js";
22
- import "./chunk-BBET6HD6.js";
23
- import "./chunk-G6JKM4O7.js";
24
- import "./chunk-O2ARHQKF.js";
25
- import "./chunk-WMDUT4KH.js";
26
- import "./chunk-AWQWXSW4.js";
27
- import "./chunk-QYF5S6P6.js";
28
- import "./chunk-G5GV2Q7K.js";
29
- import "./chunk-X35S7HSB.js";
30
- import "./chunk-SQC7K3SP.js";
31
- import "./chunk-JE6HKLC7.js";
32
- import "./chunk-2453RRJ2.js";
33
- import "./chunk-WQV6BI4Q.js";
34
- import "./chunk-S26LC76R.js";
35
- import "./chunk-565VRUP4.js";
36
- import "./chunk-VLQ7UKZH.js";
37
- import "./chunk-LJDODBBZ.js";
38
- import "./chunk-GMROJJRN.js";
39
- import "./chunk-NXL4FFQQ.js";
40
- export {
41
- MAX_CANONICAL_ROOT_MEMO_ENTRIES,
42
- RUNNERS,
43
- SOURCE_TO_TEST_PATTERNS,
44
- TURN_END_EXCLUDED_TEST_GLOBS,
45
- TestRunnerClient,
46
- isExcludedTestTarget,
47
- isRunnerErrorResult,
48
- stripWrapperArgs
49
- };
@@ -1,27 +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-3O5EII3W.js";
7
- import "./chunk-BUZIQDFS.js";
8
- import "./chunk-JBP7KESM.js";
9
- import "./chunk-JZRP4DGP.js";
10
- import "./chunk-WMDUT4KH.js";
11
- import "./chunk-AWQWXSW4.js";
12
- import "./chunk-X35S7HSB.js";
13
- import "./chunk-SQC7K3SP.js";
14
- import "./chunk-JE6HKLC7.js";
15
- import "./chunk-2453RRJ2.js";
16
- import "./chunk-WQV6BI4Q.js";
17
- import "./chunk-S26LC76R.js";
18
- import "./chunk-565VRUP4.js";
19
- import "./chunk-VLQ7UKZH.js";
20
- import "./chunk-LJDODBBZ.js";
21
- import "./chunk-GMROJJRN.js";
22
- import "./chunk-NXL4FFQQ.js";
23
- export {
24
- GoClient,
25
- goClient,
26
- resetGoAvailability
27
- };