@adeildo/pi-harness 4.1.0 → 5.1.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 +11 -10
- package/package.json +9 -7
- package/src/providers.ts +2 -2
- package/src/questions.ts +7 -0
package/README.md
CHANGED
|
@@ -10,20 +10,21 @@ 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
|
|
16
|
-
| [
|
|
17
|
-
| [
|
|
13
|
+
| Piece | What it does |
|
|
14
|
+
| ------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
15
|
+
| [Permission](../ask-permission) | Asks before a tool call runs, with a note the model reads. A judge model answers the routine calls for you |
|
|
16
|
+
| [Questions](../ask-questions) | The model asks instead of guessing, with options, a preview of each, a note on any and your own answer |
|
|
17
|
+
| [Look](../look) | The start card, a framed editor with the branch, model and context in its borders, and a screen that holds still |
|
|
18
|
+
| [Providers](../providers) | Bills Anthropic OAuth requests to your Claude plan, and keeps several accounts per provider |
|
|
18
19
|
|
|
19
20
|
All of them are on once the package is installed.
|
|
20
21
|
|
|
21
22
|
> [!WARNING]
|
|
22
|
-
> Providers makes Pi introduce itself to Anthropic as Claude Code whenever a request uses an Anthropic OAuth token. Using a subscription from anything other than Claude Code may break Anthropic's terms. Turn it off, as below, if you
|
|
23
|
+
> Providers makes Pi introduce itself to Anthropic as Claude Code whenever a request uses an Anthropic OAuth token. Using a subscription from anything other than Claude Code may break Anthropic's terms. Turn it off, as below, if you do not want that. Requests with an API key go out untouched.
|
|
23
24
|
|
|
24
25
|
## Turn a piece off
|
|
25
26
|
|
|
26
|
-
Each piece is its own extension in this package. Run `pi config` and switch off the one you
|
|
27
|
+
Each piece is its own extension in this package. Run `pi config` and switch off the one you do not want, globally or for one project.
|
|
27
28
|
|
|
28
29
|
The settings file has a switch per feature too, read on the next `/reload`:
|
|
29
30
|
|
|
@@ -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
|
-
To have only one piece, install its own package instead. With both installed, the first copy that loads runs the feature and the other
|
|
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 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.1.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.1.0",
|
|
39
|
+
"@adeildo/pi-ask-questions": "5.1.0",
|
|
40
|
+
"@adeildo/pi-kit": "5.1.0",
|
|
41
|
+
"@adeildo/pi-look": "5.1.0",
|
|
42
|
+
"@adeildo/pi-providers": "5.1.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
|
+
}
|