pi-read-map 1.2.1 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.2.2] - 2026-02-14
6
+
7
+ ### Changed
8
+
9
+ - "Ctrl+O to expand" hint in file map summary uses dim styling instead of warning (yellow) for a less alarming appearance
10
+
5
11
  ## [1.2.1] - 2026-02-14
6
12
 
7
13
  ### Fixed
package/README.md CHANGED
@@ -182,6 +182,10 @@ The extension intercepts `read` calls and decides:
182
182
  - `jq` - JSON mapper
183
183
  - `universal-ctags` - Language fallback
184
184
 
185
+ ## Known Issues
186
+
187
+ **Peer dependency warnings during install.** You may see `npm warn ERESOLVE overriding peer dependency` messages about `tree-sitter-cpp`. This is cosmetic — the extension installs and works correctly. The warning occurs because `tree-sitter-cpp@0.23.4` on npm declares `peerDependencies: { "tree-sitter": "^0.21.1" }` while we use `tree-sitter@0.22.4` (required by `tree-sitter-rust`). The fix exists on the tree-sitter-cpp master branch but hasn't been published to npm yet. See [tree-sitter/tree-sitter-cpp#349](https://github.com/tree-sitter/tree-sitter-cpp/issues/349) for tracking.
188
+
185
189
  ## Acknowledgments
186
190
 
187
191
  This project was inspired by and built upon the foundation of [codemap](https://github.com/kcosr/codemap) by [kcosr](https://github.com/kcosr). Check out the original project for the ideas that made this possible.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-read-map",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Pi extension that adds structural file maps for large files",
5
5
  "type": "module",
6
6
  "pi": {
package/src/constants.ts CHANGED
@@ -7,11 +7,11 @@ export const THRESHOLDS = {
7
7
  /** Maximum bytes before truncation */
8
8
  MAX_BYTES: 50 * 1024,
9
9
  /** Maximum map size in bytes */
10
- MAX_MAP_BYTES: 20 * 1024,
10
+ MAX_MAP_BYTES: 25 * 1024,
11
11
  /** Target size for full detail */
12
12
  FULL_TARGET_BYTES: 10 * 1024,
13
13
  /** Target size for compact detail */
14
- COMPACT_TARGET_BYTES: 15 * 1024,
14
+ COMPACT_TARGET_BYTES: 20 * 1024,
15
15
  /** Maximum size for outline level */
16
16
  MAX_OUTLINE_BYTES: 50 * 1024,
17
17
  /** Maximum size for truncated level (hard cap) */
package/src/index.ts CHANGED
@@ -142,7 +142,7 @@ export default function piReadMapExtension(pi: ExtensionAPI): void {
142
142
  summary += theme.fg("muted", ` │ `);
143
143
  summary += theme.fg("dim", detailLanguage);
144
144
  summary += theme.fg("muted", ` │ `);
145
- summary += theme.fg("warning", "Ctrl+O to expand");
145
+ summary += theme.fg("dim", "Ctrl+O to expand");
146
146
 
147
147
  return new Text(summary, 0, 0);
148
148
  }