@henryqw/pi-task-models 0.1.0 → 0.1.2
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 +26 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,13 +8,30 @@ Shared `fast`, `balanced`, and `frontier` model profiles for HenryQW Pi extensio
|
|
|
8
8
|
pi install npm:@henryqw/pi-task-models
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## With
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
| Package | Why |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| `@henryqw/pi-auto-compact` | Consumer. Compaction uses the `balanced` profile. |
|
|
16
|
+
| `@henryqw/pi-herdr-rename` | Consumer. Rename uses the `fast` profile. |
|
|
17
|
+
| `@henryqw/pi-subagent` | Consumer. Caller picks `fast`, `balanced`, or `frontier`. |
|
|
18
|
+
| `@henryqw/pi-multi-codex` | Improves. Numbered Codex slots dedupe to one route. |
|
|
19
|
+
|
|
20
|
+
## Use
|
|
21
|
+
|
|
22
|
+
| Surface | Type | Purpose |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| `/task-models` | command | Edit a profile or assign a task to a profile. |
|
|
25
|
+
|
|
26
|
+
Selecting a profile sets primary model, primary thinking, optional fallback model, then fallback thinking. One completed flow writes the whole profile. Selecting a task changes its assignment.
|
|
27
|
+
|
|
28
|
+
Menus and resolution use the current session's `ctx.scopedModels`, including pinned thinking. Empty scope uses Pi's full available model registry. Numbered Codex account aliases are deduplicated. Fallback choices exclude the selected primary. Hidden task assignments stay stored when a package is disabled.
|
|
29
|
+
|
|
30
|
+
Package also exports config and route-resolution helpers for consumers.
|
|
14
31
|
|
|
15
32
|
## Config
|
|
16
33
|
|
|
17
|
-
|
|
34
|
+
`~/.pi/agent/config/pi-task-models.json`
|
|
18
35
|
|
|
19
36
|
```json
|
|
20
37
|
{
|
|
@@ -37,22 +54,15 @@ Config lives at `getAgentDir()/config/pi-task-models.json`, normally `~/.pi/agen
|
|
|
37
54
|
}
|
|
38
55
|
```
|
|
39
56
|
|
|
40
|
-
Each configured profile
|
|
57
|
+
Each configured profile needs one primary model and thinking level. Fallback is optional. Model references use canonical `provider/model`; numbered `openai-codex-N` routes store as `openai-codex/model`.
|
|
41
58
|
|
|
42
|
-
|
|
59
|
+
Reads are strict. Malformed or unknown values fail visibly and never rewrite the file. Only explicit `/task-models` actions write config.
|
|
43
60
|
|
|
44
|
-
##
|
|
61
|
+
## Remove
|
|
45
62
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
- `pi-herdr-subagents`: intentionally independent.
|
|
50
|
-
|
|
51
|
-
Primary and fallback routes outside current model scope, with unavailable models, or with unsupported or scope-pinned-different thinking levels are skipped. Consumers define final failure behavior above.
|
|
52
|
-
|
|
53
|
-
## Library API
|
|
54
|
-
|
|
55
|
-
Package exports config, canonical model reference, model deduplication, supported-thinking, route resolution, and active-task discovery helpers. Pi model registry and extension `sourceInfo` remain runtime authority.
|
|
63
|
+
```bash
|
|
64
|
+
pi remove npm:@henryqw/pi-task-models
|
|
65
|
+
```
|
|
56
66
|
|
|
57
67
|
## Development
|
|
58
68
|
|