@adeildo/pi-harness 4.1.0 → 5.0.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/README.md +8 -7
- package/package.json +9 -7
- package/src/providers.ts +2 -2
- package/src/questions.ts +7 -0
package/README.md
CHANGED
|
@@ -10,11 +10,12 @@ pi install npm:@adeildo/pi-harness
|
|
|
10
10
|
|
|
11
11
|
## What comes in it
|
|
12
12
|
|
|
13
|
-
| Piece | What it does
|
|
14
|
-
| ------------------------------- |
|
|
15
|
-
| [Permission](../ask-permission) | Asks before a tool call runs. Answer yes, always yes or deny, with a note the model reads. A judge model can answer the routine calls for you
|
|
16
|
-
| [Look](../look) | The start card, a framed editor with the branch, the model and the context in its borders, the time and speed of each answer, and the session's cost. Only theme colours
|
|
17
|
-
| [Providers](../providers) | Bills Anthropic OAuth requests to the Claude Pro or Max plan instead of extra usage
|
|
13
|
+
| Piece | What it does |
|
|
14
|
+
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
15
|
+
| [Permission](../ask-permission) | Asks before a tool call runs. Answer yes, always yes or deny, with a note the model reads. A judge model can answer the routine calls for you |
|
|
16
|
+
| [Look](../look) | The start card, a framed editor with the branch, the model and the context in its borders, the time and speed of each answer, and the session's cost. Only theme colours |
|
|
17
|
+
| [Providers](../providers) | Bills Anthropic OAuth requests to the Claude Pro or Max plan instead of extra usage. Holds several accounts per provider, pinned per session, and offers the next account when one hits its limit |
|
|
18
|
+
| [Questions](../ask-questions) | The model asks instead of guessing, with options, a preview of each, a note on any of them, and your own answer |
|
|
18
19
|
|
|
19
20
|
All of them are on once the package is installed.
|
|
20
21
|
|
|
@@ -31,13 +32,13 @@ The settings file has a switch per feature too, read on the next `/reload`:
|
|
|
31
32
|
{ "features": { "subscription": { "enabled": false } } }
|
|
32
33
|
```
|
|
33
34
|
|
|
34
|
-
The feature ids are `permission`, `look` and `
|
|
35
|
+
The feature ids are `permission`, `look`, `subscription`, `accounts` and `questions`.
|
|
35
36
|
|
|
36
37
|
To have only one piece, install its own package instead. With both installed, the first copy that loads runs the feature and the other one stays off.
|
|
37
38
|
|
|
38
39
|
## Settings
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
`Alt+S` opens the settings of every piece. They live in `~/.pi/agent/extensions/pi-harness/settings.json`. A setting marked _project_ is also read from `.pi/extensions/pi-harness/settings.json` in a project Pi trusts, and the project value wins. Each piece's page lists its settings.
|
|
41
42
|
|
|
42
43
|
## License
|
|
43
44
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adeildo/pi-harness",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Every adeildo Pi extension in one install: the permission dialog, the look and the
|
|
3
|
+
"version": "5.0.0",
|
|
4
|
+
"description": "Every adeildo Pi extension in one install: the permission dialog, the look, the providers and the questions. Each is its own extension, so pi config turns one off.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anthropic",
|
|
7
7
|
"permission",
|
|
@@ -35,10 +35,11 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@adeildo/pi-ask-permission": "
|
|
39
|
-
"@adeildo/pi-
|
|
40
|
-
"@adeildo/pi-
|
|
41
|
-
"@adeildo/pi-
|
|
38
|
+
"@adeildo/pi-ask-permission": "5.0.0",
|
|
39
|
+
"@adeildo/pi-ask-questions": "5.0.0",
|
|
40
|
+
"@adeildo/pi-kit": "5.0.0",
|
|
41
|
+
"@adeildo/pi-look": "5.0.0",
|
|
42
|
+
"@adeildo/pi-providers": "5.0.0"
|
|
42
43
|
},
|
|
43
44
|
"peerDependencies": {
|
|
44
45
|
"@earendil-works/pi-ai": "*",
|
|
@@ -49,7 +50,8 @@
|
|
|
49
50
|
"extensions": [
|
|
50
51
|
"./src/permission.ts",
|
|
51
52
|
"./src/look.ts",
|
|
52
|
-
"./src/providers.ts"
|
|
53
|
+
"./src/providers.ts",
|
|
54
|
+
"./src/questions.ts"
|
|
53
55
|
]
|
|
54
56
|
}
|
|
55
57
|
}
|
package/src/providers.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createApp } from "@adeildo/pi-kit";
|
|
2
|
-
import { subscription } from "@adeildo/pi-providers";
|
|
2
|
+
import { accounts, subscription } from "@adeildo/pi-providers";
|
|
3
3
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
4
4
|
|
|
5
5
|
export default function harnessProviders(pi: ExtensionAPI): void {
|
|
6
|
-
createApp(pi, { name: "pi-harness" }).use(subscription).build();
|
|
6
|
+
createApp(pi, { name: "pi-harness" }).use(subscription).use(accounts).build();
|
|
7
7
|
}
|
package/src/questions.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { questions } from "@adeildo/pi-ask-questions";
|
|
2
|
+
import { createApp } from "@adeildo/pi-kit";
|
|
3
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
4
|
+
|
|
5
|
+
export default function harnessQuestions(pi: ExtensionAPI): void {
|
|
6
|
+
createApp(pi, { name: "pi-harness" }).use(questions).build();
|
|
7
|
+
}
|