@lune_99/pi-compaction 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/LICENSE +21 -0
- package/README.md +70 -2
- package/docs/compaction-review.png +0 -0
- package/docs/compaction-review.svg +12 -0
- package/docs/compaction-settings.png +0 -0
- package/docs/compaction-settings.svg +25 -0
- package/package.json +65 -5
- package/src/compaction-controller.ts +383 -0
- package/src/extension.ts +45 -0
- package/src/index.ts +37 -0
- package/src/options.ts +88 -0
- package/src/settings/schema.ts +84 -0
- package/src/settings/section.ts +162 -0
- package/src/tool-review/candidates.ts +326 -0
- package/src/tool-review/classification.ts +154 -0
- package/src/tool-review/review.ts +420 -0
- package/src/ui/review-notice.ts +469 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
5
|
+
|
|
6
|
+
## [Unreleased]
|
|
7
|
+
|
|
8
|
+
## [0.2.0] - 2026-11-28
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **Parallel classifier requests.** Set how many fragments the tool-history review classifies at once (1–16, default 2) in the Compaction settings. Raise it to finish long reviews sooner; a rate-limited request still cancels the compaction. Embedded hosts pass the value as `jev.concurrency`.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- **Review result in the transcript**: The review result is now a saved `Tool review` entry next to Pi's compaction summary instead of a status notification, which Pi removed when the checkpoint committed. The entry shows disjoint removal counts and the summary-input size; Ctrl+O adds the classifier, reviewed and protected calls, and the split between per-result truncation and classifier drops. One row above the editor shows request progress while the review and summary run and disappears when the compaction ends, so nothing stays pinned. Drops inside fully removed calls no longer inflate the fragment count. Because the entry follows the checkpoint, an immediate second `/compact` reports Pi's "Nothing to compact" instead of "Already compacted".
|
|
17
|
+
- **Reviewed `codemode` results**: A result that ran nested tools is now a review candidate when its nested record is complete, every nested call succeeded and every nested tool is in **Deletable tools**; otherwise it stays protected with a specific reason. Pi lists file operations before the review, so `readFiles`, `modifiedFiles` and the summary's file lists can still name files that only a removed call touched, as for removed `read` calls.
|
|
18
|
+
- **Classifier selection copy.** The classifier field now describes what the classifier rates, and its automatic choice reads **Automatic · first available classifier**. The unavailable-classifier guidance matches Subagents and points to `/lune-core-settings → Compaction → Classifier model`; behavior is unchanged.
|
|
19
|
+
- **Native summary behavior on Pi 1.6.0.** Summary requests use the selected model’s output limit. Custom `/compact` instructions apply to both summaries when Pi splits a turn.
|
|
20
|
+
- **Core 0.2 dependency.** Require `@lune_99/pi-lune-extensions-core@^0.2.1`. The earlier `^0.1.0` range excluded Core 0.2, so an installation kept Core 0.1.0 beside the newer Core that other Lune packages load.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- **Retry interrupted classifier requests.** Retry temporary connection failures, including `fetch failed` and `UND_ERR_SOCKET`, up to twice with cancellable backoff at the configured parallelism. Quota and billing failures bypass retries; non-retryable errors and exhausted retries still cancel compaction.
|
|
25
|
+
|
|
26
|
+
- **Pi 1.5 SDK compatibility.** Define the settings schema directly with TypeBox so SDK consumers and local checks do not depend on Pi's legacy import mapping. Existing settings values, defaults and storage stay unchanged.
|
|
27
|
+
|
|
28
|
+
- **Pi package discovery.** Add the `pi-package`, `pi`, and `pi-coding-agent` npm keywords. The discovery keyword makes the package eligible for the official Pi package gallery once published.
|
|
29
|
+
|
|
30
|
+
## [0.1.0] - 2026-10-16
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- **Follow session model**: Add a default summary-model choice that inherits the current session model and effort at the start of each compaction. Selecting a separate model retains independent thinking-level configuration.
|
|
35
|
+
- **Dedicated summary model**: Run manual, threshold and overflow compaction with a separately selected Pi model and thinking level, without changing the session model. Pi's native `compact()` still owns prompts, split turns, previous-summary updates, file operations and checkpoint writing.
|
|
36
|
+
- **Tool history review**: Optionally ask a Pi-registered classifier whether each fragment of an eligible tool result is safe to drop before summarizing. A call and its result are removed only when every fragment meets the drop confidence (default `0.7`); fragments exceeding the classifier window keep their arguments and are replaced with placeholders or preserved, while any other classification failure cancels the compaction.
|
|
37
|
+
- **Explicit cancellation**: Any summary or classification failure returns a cancel result instead of falling back to native compaction. `abortCompaction()`, session switches and leaf changes stop pending requests, and late results can never commit a checkpoint.
|
|
38
|
+
- **Lune settings section**: Configure the summary model, thinking level, classifier, drop confidence and deletable tools in the unified Lune panel with global and project scopes. Interception is on by default; Pi owns provider authentication and model capabilities.
|
|
39
|
+
- **Review notice and checkpoint metadata**: Show one dim single-line notification with the classifier, checked calls, disjoint edit counts and summary-input size. Each checkpoint records the summary model, effective thinking level and review statistics under `details.luneCompaction`.
|
|
40
|
+
- **Embedding API**: `installCompaction` and `createCompactionExtension` accept resolved options from the host instead of reading settings; returning `null` leaves native Pi compaction untouched. `CompactionController.getRun()` returns an isolated snapshot of the current run.
|
|
41
|
+
- **Visual README.** Introduce the extension with feature highlights, npm installation steps and previews rendered from its real TUI components. Regenerate the SVG and PNG assets with `npm run docs:images`.
|
|
42
|
+
|
|
43
|
+
### Changed
|
|
44
|
+
|
|
45
|
+
- **Published Core dependency.** Require `@lune_99/pi-lune-core@^0.1.0` from npm instead of a sibling checkout. Core remains a mandatory runtime dependency for shared infrastructure and settings.
|
|
46
|
+
|
|
47
|
+
- **Native Settings and Panel composition**: The configured installer binds Core
|
|
48
|
+
Settings and independently registers its Panel through native Pi lifecycle callbacks.
|
|
49
|
+
ResourceScope owns reverse cleanup; compaction cancellation stays plugin-owned.
|
|
50
|
+
Models resolve directly through Pi, while selectors use Core's `/panel` helper.
|
|
51
|
+
Existing settings IDs, policy controls and embedded-options contracts are unchanged.
|
|
52
|
+
|
|
53
|
+
- **Summary enabled by default**: Lune compaction now runs without an explicitly selected summary model and follows the session model and effort. Existing global and project overrides still apply, so select a model to keep summaries separate and turn Lune compaction off to keep Pi's native summary.
|
|
54
|
+
- **Concise review notice**: Collapse the tool-history review notification into a single line with the classifier, checked calls, disjoint edit counts and summary-input size. Drops inside fully removed calls no longer inflate the fragment count, so each entry describes a separate change.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nouvelle-Lune
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,71 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Lune Compaction
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@lune_99/pi-compaction) [](https://www.npmjs.com/package/@lune_99/pi-compaction) [](LICENSE)
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
**A model of your choice for [Pi](https://pi.dev) compaction, with optional tool-history review.**
|
|
8
|
+
|
|
9
|
+
Lune Compaction lets summaries follow your session model or use a separate one. Turn on tool-history review to remove disposable output before summarizing, while Pi keeps its normal compaction workflow and session checkpoints.
|
|
10
|
+
|
|
11
|
+
## Quick start
|
|
12
|
+
|
|
13
|
+
Install from npm:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pi install npm:@lune_99/pi-compaction
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Then start Pi normally:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pi
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Lune compaction is on by default. Run `/compact` as usual, or let Pi compact automatically.
|
|
26
|
+
|
|
27
|
+
## What it does
|
|
28
|
+
|
|
29
|
+
- **Gives summaries their own model.** Follow the session model and effort, or select a separate summary model with an independent thinking level.
|
|
30
|
+
- **Works with native compaction.** Manual, threshold and overflow compaction keep Pi's handling of previous summaries, split turns and file operations.
|
|
31
|
+
- **Reviews tool output before summarizing.** An optional classifier judges which result fragments are no longer useful. You choose the confidence threshold and which tools may lose their whole call. `codemode` results are reviewed too when every nested call finished, succeeded and used a permitted tool.
|
|
32
|
+
- **Shows what was removed.** A `Tool review` entry next to the compaction summary reports removals and the change in summary-input size; expand it for the classifier, reviewed and protected calls, and how much came from the per-result truncation cap and how much from the classifier.
|
|
33
|
+
- **Keeps configuration close.** Pick models and review options in the Compaction settings panel, with global defaults and project overrides.
|
|
34
|
+
- **Reports failures explicitly.** A failed summary or classification cancels the operation; cancelled or stale work cannot write a checkpoint.
|
|
35
|
+
|
|
36
|
+
## Compaction settings
|
|
37
|
+
|
|
38
|
+
Open:
|
|
39
|
+
|
|
40
|
+
```text
|
|
41
|
+
/lune-core-settings compaction
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Choose **Follow session model** to use the current model and effort. Selecting a separate **Compaction model** makes **Compaction thinking level** independent.
|
|
45
|
+
|
|
46
|
+
**Jev preprocessing** is off by default. Enable it to review tool history, then choose a Pi classifier, set **Drop confidence** and select **Deletable tools**. A whole call is removed only when its tool is permitted and every result fragment meets the threshold. A call that ran other tools, such as `codemode`, also needs a complete nested record in which every call succeeded and every tool is permitted; otherwise it stays in the summary input unchanged. Summary models and classifiers come from Pi's configured providers.
|
|
47
|
+
|
|
48
|
+
**Parallel classifier requests** sets how many fragments the classifier reviews at once, from 1 to 16 (default 2). A higher value finishes the review sooner on long tool histories. Each fragment retries temporary transport failures up to twice, after 500 ms and 1 second, within the configured parallelism. Cancellation interrupts the retry delay; a non-retryable error or exhausted retries cancel the compaction, so stay below your provider's rate limit.
|
|
49
|
+
|
|
50
|
+
`Ctrl+G` switches global/project scope; `Ctrl+R` removes the selected override. Changes apply to the next compaction.
|
|
51
|
+
|
|
52
|
+
## Tool-history review
|
|
53
|
+
|
|
54
|
+
An example review entry, collapsed and expanded:
|
|
55
|
+
|
|
56
|
+

|
|
57
|
+
|
|
58
|
+
While the classifier and summary run, one row above the editor shows progress; it disappears when the compaction ends. The result is saved as a transcript entry at the point of the compaction, after the retained messages; in the live session that is directly above Pi's compaction summary. It scrolls away with the conversation and is still there after a reload. Press `Ctrl+O` to expand it, as with tool output. Sizes are the characters of the messages entering the summary: `truncation` is what the 8,000-character cap on each tool result removed, and `classifier` is what the classifier's decisions removed after that. Review changes only that input; the on-disk tool transcript stays intact.
|
|
59
|
+
|
|
60
|
+
## Development
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
npm install
|
|
64
|
+
npm test
|
|
65
|
+
npm run typecheck
|
|
66
|
+
npm run docs:images # regenerate docs/*.svg + docs/*.png (needs rsvg-convert)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## License
|
|
70
|
+
|
|
71
|
+
MIT
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="701.97" height="167" viewBox="0 0 701.97 167" font-family="Menlo, FiraCode Nerd Font Mono, monospace" font-size="14" xml:space="preserve" role="img" aria-label="pi — an illustrative tool-review entry, collapsed and expanded">
|
|
2
|
+
<title>pi — an illustrative tool-review entry, collapsed and expanded</title>
|
|
3
|
+
<rect width="701.97" height="167" rx="10" fill="#181a1b"/>
|
|
4
|
+
<rect width="701.97" height="34" rx="10" fill="#768186" opacity="0.25"/>
|
|
5
|
+
<circle cx="24" cy="17" r="5" fill="#ff5f57"/><circle cx="42" cy="17" r="5" fill="#febc2e"/><circle cx="60" cy="17" r="5" fill="#28c840"/>
|
|
6
|
+
<text x="80" y="22" fill="#9da5a9" font-size="13">pi — an illustrative tool-review entry, collapsed and expanded</text>
|
|
7
|
+
<text x="18.00" y="65.97" fill="#dee0e1" textLength="8.43" lengthAdjust="spacingAndGlyphs"> </text><text x="26.43" y="65.97" fill="#a798d7" textLength="8.43" lengthAdjust="spacingAndGlyphs">◇</text><text x="34.86" y="65.97" fill="#dee0e1" textLength="101.16" lengthAdjust="spacingAndGlyphs"> Tool review</text><text x="136.02" y="65.97" fill="#9da5a9" textLength="25.29" lengthAdjust="spacingAndGlyphs"> · </text><text x="161.31" y="65.97" fill="#dee0e1" textLength="67.44" lengthAdjust="spacingAndGlyphs">−3 calls</text><text x="228.75" y="65.97" fill="#9da5a9" textLength="25.29" lengthAdjust="spacingAndGlyphs"> · </text><text x="254.04" y="65.97" fill="#dee0e1" textLength="92.73" lengthAdjust="spacingAndGlyphs">−1 fragment</text><text x="346.77" y="65.97" fill="#9da5a9" textLength="25.29" lengthAdjust="spacingAndGlyphs"> · </text><text x="372.06" y="65.97" fill="#dee0e1" textLength="75.87" lengthAdjust="spacingAndGlyphs">48k → 31k</text>
|
|
8
|
+
|
|
9
|
+
<text x="18.00" y="104.77" fill="#dee0e1" textLength="8.43" lengthAdjust="spacingAndGlyphs"> </text><text x="26.43" y="104.77" fill="#a798d7" textLength="8.43" lengthAdjust="spacingAndGlyphs">◇</text><text x="34.86" y="104.77" fill="#dee0e1" textLength="101.16" lengthAdjust="spacingAndGlyphs"> Tool review</text><text x="136.02" y="104.77" fill="#9da5a9" textLength="25.29" lengthAdjust="spacingAndGlyphs"> · </text><text x="161.31" y="104.77" fill="#9da5a9" textLength="151.74" lengthAdjust="spacingAndGlyphs">example/classifier</text>
|
|
10
|
+
<text x="18.00" y="124.17" fill="#dee0e1" textLength="25.29" lengthAdjust="spacingAndGlyphs"> </text><text x="43.29" y="124.17" fill="#9da5a9" textLength="67.44" lengthAdjust="spacingAndGlyphs">15 calls</text><text x="110.73" y="124.17" fill="#9da5a9" textLength="25.29" lengthAdjust="spacingAndGlyphs"> · </text><text x="136.02" y="124.17" fill="#9da5a9" textLength="92.73" lengthAdjust="spacingAndGlyphs">12 reviewed</text><text x="228.75" y="124.17" fill="#9da5a9" textLength="25.29" lengthAdjust="spacingAndGlyphs"> · </text><text x="254.04" y="124.17" fill="#9da5a9" textLength="92.73" lengthAdjust="spacingAndGlyphs">3 protected</text><text x="346.77" y="124.17" fill="#dee0e1" textLength="8.43" lengthAdjust="spacingAndGlyphs"> </text><text x="355.20" y="124.17" fill="#9da5a9" textLength="328.77" lengthAdjust="spacingAndGlyphs">(1 recent · 1 not permitted · 1 nested)</text>
|
|
11
|
+
<text x="18.00" y="143.57" fill="#dee0e1" textLength="92.73" lengthAdjust="spacingAndGlyphs"> −3 calls</text><text x="110.73" y="143.57" fill="#9da5a9" textLength="25.29" lengthAdjust="spacingAndGlyphs"> · </text><text x="136.02" y="143.57" fill="#dee0e1" textLength="92.73" lengthAdjust="spacingAndGlyphs">−1 fragment</text><text x="228.75" y="143.57" fill="#9da5a9" textLength="25.29" lengthAdjust="spacingAndGlyphs"> · </text><text x="254.04" y="143.57" fill="#dee0e1" textLength="75.87" lengthAdjust="spacingAndGlyphs">48k → 31k</text><text x="329.91" y="143.57" fill="#9da5a9" textLength="25.29" lengthAdjust="spacingAndGlyphs"> · </text><text x="355.20" y="143.57" fill="#9da5a9" textLength="118.02" lengthAdjust="spacingAndGlyphs">truncation −9k</text><text x="473.22" y="143.57" fill="#9da5a9" textLength="25.29" lengthAdjust="spacingAndGlyphs"> · </text><text x="498.51" y="143.57" fill="#9da5a9" textLength="118.02" lengthAdjust="spacingAndGlyphs">classifier −8k</text>
|
|
12
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="929.5799999999999" height="419.2" viewBox="0 0 929.5799999999999 419.2" font-family="Menlo, FiraCode Nerd Font Mono, monospace" font-size="14" xml:space="preserve" role="img" aria-label="pi — choose how your next compaction runs">
|
|
2
|
+
<title>pi — choose how your next compaction runs</title>
|
|
3
|
+
<rect width="929.5799999999999" height="419.2" rx="10" fill="#181a1b"/>
|
|
4
|
+
<rect width="929.5799999999999" height="34" rx="10" fill="#768186" opacity="0.25"/>
|
|
5
|
+
<circle cx="24" cy="17" r="5" fill="#ff5f57"/><circle cx="42" cy="17" r="5" fill="#febc2e"/><circle cx="60" cy="17" r="5" fill="#28c840"/>
|
|
6
|
+
<text x="80" y="22" fill="#9da5a9" font-size="13">pi — choose how your next compaction runs</text>
|
|
7
|
+
<text x="18.00" y="65.97" fill="#7e888e" textLength="893.58" lengthAdjust="spacingAndGlyphs">──────────────────────────────────────────────────────────────────────────────────────────────────────────</text>
|
|
8
|
+
<text x="18.00" y="85.37" fill="#a798d7" textLength="185.46" lengthAdjust="spacingAndGlyphs">Lune settings · global</text>
|
|
9
|
+
<text x="18.00" y="104.77" fill="#a798d7" textLength="84.30" lengthAdjust="spacingAndGlyphs">Compaction</text>
|
|
10
|
+
<text x="18.00" y="124.17" fill="#7e888e" textLength="893.58" lengthAdjust="spacingAndGlyphs">──────────────────────────────────────────────────────────────────────────────────────────────────────────</text>
|
|
11
|
+
<text x="18.00" y="143.57" fill="#a798d7" textLength="303.48" lengthAdjust="spacingAndGlyphs">→ Lune compaction on</text>
|
|
12
|
+
<text x="18.00" y="162.97" fill="#dee0e1" textLength="151.74" lengthAdjust="spacingAndGlyphs"> Compaction model</text><text x="169.74" y="162.97" fill="#9da5a9" textLength="303.48" lengthAdjust="spacingAndGlyphs"> Follow session model</text>
|
|
13
|
+
<text x="18.00" y="182.37" fill="#dee0e1" textLength="227.61" lengthAdjust="spacingAndGlyphs"> Compaction thinking level</text><text x="245.61" y="182.37" fill="#9da5a9" textLength="311.91" lengthAdjust="spacingAndGlyphs"> Follow session effort · medium</text>
|
|
14
|
+
<text x="18.00" y="201.77" fill="#dee0e1" textLength="160.17" lengthAdjust="spacingAndGlyphs"> Jev preprocessing</text><text x="178.17" y="201.77" fill="#9da5a9" textLength="151.74" lengthAdjust="spacingAndGlyphs"> off</text>
|
|
15
|
+
<text x="18.00" y="221.17" fill="#dee0e1" textLength="151.74" lengthAdjust="spacingAndGlyphs"> Classifier model</text><text x="169.74" y="221.17" fill="#9da5a9" textLength="455.22" lengthAdjust="spacingAndGlyphs"> Automatic · first available classifier</text>
|
|
16
|
+
<text x="18.00" y="240.57" fill="#dee0e1" textLength="252.90" lengthAdjust="spacingAndGlyphs"> Parallel classifier requests</text><text x="270.90" y="240.57" fill="#9da5a9" textLength="42.15" lengthAdjust="spacingAndGlyphs"> 2</text>
|
|
17
|
+
<text x="18.00" y="259.97" fill="#dee0e1" textLength="143.31" lengthAdjust="spacingAndGlyphs"> Drop confidence</text><text x="161.31" y="259.97" fill="#9da5a9" textLength="168.60" lengthAdjust="spacingAndGlyphs"> 0.7</text>
|
|
18
|
+
<text x="18.00" y="279.37" fill="#dee0e1" textLength="160.17" lengthAdjust="spacingAndGlyphs"> Deletable tools →</text><text x="178.17" y="279.37" fill="#9da5a9" textLength="210.75" lengthAdjust="spacingAndGlyphs"> 9 selected</text>
|
|
19
|
+
|
|
20
|
+
<text x="18.00" y="318.17" fill="#9da5a9" textLength="893.58" lengthAdjust="spacingAndGlyphs">Enabled by default. Follow the session model and effort, or select a separate summary model. Changes apply</text>
|
|
21
|
+
<text x="18.00" y="337.57" fill="#9da5a9" textLength="185.46" lengthAdjust="spacingAndGlyphs">on the next operation.</text>
|
|
22
|
+
<text x="18.00" y="356.97" fill="#7e888e" textLength="893.58" lengthAdjust="spacingAndGlyphs">──────────────────────────────────────────────────────────────────────────────────────────────────────────</text>
|
|
23
|
+
<text x="18.00" y="376.37" fill="#7e888e" textLength="876.72" lengthAdjust="spacingAndGlyphs">↑↓ select · Enter change · Tab section · Ctrl+G scope · Ctrl+S reload section · Ctrl+R reset · Esc close</text>
|
|
24
|
+
<text x="18.00" y="395.77" fill="#7e888e" textLength="893.58" lengthAdjust="spacingAndGlyphs">──────────────────────────────────────────────────────────────────────────────────────────────────────────</text>
|
|
25
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,66 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "@lune_99/pi-compaction",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Model-selectable native Pi compaction with classifier-reviewed tool history",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"src",
|
|
8
|
+
"docs",
|
|
9
|
+
"README.md",
|
|
10
|
+
"CHANGELOG.md",
|
|
11
|
+
"LICENSE"
|
|
12
|
+
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": "./src/index.ts"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"typecheck": "tsc --noEmit",
|
|
18
|
+
"test": "node --experimental-strip-types --test 'test/**/*.test.ts'",
|
|
19
|
+
"prepublishOnly": "npm run typecheck && npm test",
|
|
20
|
+
"docs:images": "node --experimental-strip-types tools/make-doc-images.mjs"
|
|
21
|
+
},
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=22.19.0"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"pi-package",
|
|
27
|
+
"pi",
|
|
28
|
+
"pi-coding-agent"
|
|
29
|
+
],
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"author": "Nouvelle-Lune",
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"@earendil-works/pi-agent-core": ">=1.0.4",
|
|
34
|
+
"@earendil-works/pi-ai": ">=1.0.4",
|
|
35
|
+
"@earendil-works/pi-coding-agent": ">=1.0.4",
|
|
36
|
+
"@earendil-works/pi-tui": ">=1.0.4",
|
|
37
|
+
"typebox": ">=1.3.27"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@earendil-works/pi-agent-core": "1.6.0",
|
|
41
|
+
"@earendil-works/pi-ai": "1.6.0",
|
|
42
|
+
"@earendil-works/pi-coding-agent": "1.6.0",
|
|
43
|
+
"@earendil-works/pi-tui": "1.6.0",
|
|
44
|
+
"@types/node": "^22.20.2",
|
|
45
|
+
"typebox": "1.3.27",
|
|
46
|
+
"typescript": "5.9.3"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@lune_99/pi-lune-extensions-core": "^0.2.1"
|
|
50
|
+
},
|
|
51
|
+
"pi": {
|
|
52
|
+
"extensions": [
|
|
53
|
+
"./src/extension.ts"
|
|
54
|
+
],
|
|
55
|
+
"image": "./docs/compaction-settings.png"
|
|
56
|
+
},
|
|
57
|
+
"repository": {
|
|
58
|
+
"type": "git",
|
|
59
|
+
"url": "git+https://github.com/Nouvelle-Lune/lune-pi.git",
|
|
60
|
+
"directory": "packages/pi-compaction"
|
|
61
|
+
},
|
|
62
|
+
"homepage": "https://github.com/Nouvelle-Lune/lune-pi/tree/main/packages/pi-compaction#readme",
|
|
63
|
+
"bugs": {
|
|
64
|
+
"url": "https://github.com/Nouvelle-Lune/lune-pi/issues"
|
|
65
|
+
}
|
|
66
|
+
}
|