@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.
Files changed (2) hide show
  1. package/README.md +6 -20
  2. 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
- Threshold must be at least 25 and below 100. Missing config defaults to 50. Model routes live in `~/.pi/agent/config/pi-task-models.json`. Malformed shared task-model config is reported and left unchanged.
55
+ | Field | Required | Possible values | Default |
56
+ | --- | --- | --- | --- |
57
+ | `autoCompactThreshold` | No | Number, at least 25, below 100 | `50` |
56
58
 
57
- ## Remove
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
- ```bash
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-auto-compact",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "Proactively compact Pi context at a configurable threshold and resume the current task.",
5
5
  "keywords": [
6
6
  "pi-package",