@henryqw/pi-auto-compact 1.1.6 → 1.1.7
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/README.md +6 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ Refuses to activate unless effective `compaction.enabled` is `false`. Checks `tu
|
|
|
44
44
|
|
|
45
45
|
## Config
|
|
46
46
|
|
|
47
|
-
`~/.pi/agent/config/pi-auto-compact.json`
|
|
47
|
+
Package-owned: `~/.pi/agent/config/pi-auto-compact.json`
|
|
48
48
|
|
|
49
49
|
```json
|
|
50
50
|
{
|
|
@@ -52,24 +52,10 @@ Refuses to activate unless effective `compaction.enabled` is `false`. Checks `tu
|
|
|
52
52
|
}
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
| Field | Required | Possible values | Default |
|
|
56
|
+
| --- | --- | --- | --- |
|
|
57
|
+
| `autoCompactThreshold` | No | Number, at least 25, below 100 | `50` |
|
|
56
58
|
|
|
57
|
-
|
|
59
|
+
Unknown fields are ignored (legacy model fields are obsolete). `/auto-compact` writes this file. A missing file uses the default; a malformed or invalid file fails visibly at session start, falls back to 50%, and stays unchanged.
|
|
58
60
|
|
|
59
|
-
|
|
60
|
-
pi remove npm:@henryqw/pi-auto-compact
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
## Development
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
npm test --workspace @henryqw/pi-auto-compact
|
|
67
|
-
npm run typecheck --workspace @henryqw/pi-auto-compact
|
|
68
|
-
npm run pack:check --workspace @henryqw/pi-auto-compact
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
`test:live` needs real Pi plus authenticated model access. Set `PI_AUTO_COMPACT_AUTH_FILE` when auth is not at `~/.pi/agent/auth.json`.
|
|
72
|
-
|
|
73
|
-
```bash
|
|
74
|
-
npm run test:live --workspace @henryqw/pi-auto-compact
|
|
75
|
-
```
|
|
61
|
+
Shared: `~/.pi/agent/config/pi-task-models.json`, owned by `@henryqw/pi-task-models`. Task `pi-auto-compact/autoCompact` defaults to profile `fast`. Malformed shared task-model config is reported and left unchanged; compaction then uses the current session model.
|