@diegopetrucci/pi-extensions 0.1.81 → 0.1.82
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 -1
- package/extensions/agent-workflow-audit/index.ts +47 -25
- package/extensions/agent-workflow-audit/package.json +1 -1
- package/extensions/brrr/index.ts +21 -15
- package/extensions/brrr/package.json +1 -1
- package/extensions/code-reviewer/index.ts +52 -19
- package/extensions/code-reviewer/package.json +1 -1
- package/extensions/contrarian/index.ts +17 -17
- package/extensions/contrarian/package.json +1 -1
- package/extensions/developer/.pi-fleet-tested-version +1 -0
- package/extensions/developer/README.md +70 -0
- package/extensions/developer/index.ts +906 -0
- package/extensions/developer/package.json +40 -0
- package/extensions/diff-summarizer/.pi-fleet-tested-version +1 -0
- package/extensions/diff-summarizer/README.md +75 -0
- package/extensions/diff-summarizer/index.ts +1585 -0
- package/extensions/diff-summarizer/package.json +40 -0
- package/extensions/librarian/index.ts +10 -0
- package/extensions/librarian/package.json +1 -1
- package/extensions/minimal-footer/index.ts +5 -1
- package/extensions/minimal-footer/package.json +1 -1
- package/extensions/notify/index.ts +7 -2
- package/extensions/notify/package.json +1 -1
- package/extensions/oracle/index.ts +17 -17
- package/extensions/oracle/package.json +1 -1
- package/extensions/permission-gate/README.md +6 -11
- package/extensions/permission-gate/index.ts +11 -54
- package/extensions/permission-gate/package.json +1 -3
- package/extensions/project-mcp-json/README.md +4 -3
- package/extensions/project-mcp-json/package.json +1 -1
- package/extensions/repo-scout/.pi-fleet-tested-version +1 -0
- package/extensions/repo-scout/README.md +74 -0
- package/extensions/repo-scout/index.ts +1575 -0
- package/extensions/repo-scout/package.json +40 -0
- package/extensions/test-runner/.pi-fleet-tested-version +1 -0
- package/extensions/test-runner/README.md +70 -0
- package/extensions/test-runner/index.ts +798 -0
- package/extensions/test-runner/package.json +40 -0
- package/extensions/triage-comments/index.ts +66 -16
- package/extensions/triage-comments/package.json +1 -1
- package/extensions/web-scout/.pi-fleet-tested-version +1 -0
- package/extensions/web-scout/README.md +67 -0
- package/extensions/web-scout/index.ts +1204 -0
- package/extensions/web-scout/package.json +41 -0
- package/package.json +7 -2
- package/extensions/permission-gate/powershell-safety.ts +0 -1053
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@diegopetrucci/pi-repo-scout",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A standalone pi extension that adds a read-only repo_scout subagent tool that scans a repository and reports stack, conventions, commands, and hotspots in an isolated child agent.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pi-package",
|
|
7
|
+
"pi",
|
|
8
|
+
"repository",
|
|
9
|
+
"scout",
|
|
10
|
+
"subagent"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/diegopetrucci/pi-extensions.git",
|
|
16
|
+
"directory": "extensions/repo-scout"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.ts",
|
|
20
|
+
"README.md",
|
|
21
|
+
".pi-fleet-tested-version"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"pi": {
|
|
27
|
+
"extensions": [
|
|
28
|
+
"index.ts"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"@earendil-works/pi-ai": "*",
|
|
33
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
34
|
+
"typebox": "*"
|
|
35
|
+
},
|
|
36
|
+
"type": "module",
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=22.19.0"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.84.4
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# test-runner
|
|
2
|
+
|
|
3
|
+
Adds a `test_runner` subagent tool that adapts The Last Harness [`test-runner`](https://github.com/diegopetrucci/the-last-harness/blob/main/agents/subagents/test-runner.md) prompt into a standalone pi extension.
|
|
4
|
+
|
|
5
|
+
Use it to delegate exact validation commands (for example `npm ci`, then `npm test`) to an isolated child agent. The subagent runs the steps exactly in order, stops at the first failure, never edits, fixes, installs on its own, or commits, and reports each step as `PASS` or `FAIL` plus an overall result. Blockers are reported in the final result; the subagent cannot ask follow-up questions.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
### Standalone npm package
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pi install npm:@diegopetrucci/pi-test-runner
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Collection package
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pi install npm:@diegopetrucci/pi-extensions
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### GitHub package
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pi install git:github.com/diegopetrucci/pi-extensions
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Then reload pi:
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
/reload
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## `test_runner` tool behavior
|
|
34
|
+
|
|
35
|
+
The tool accepts:
|
|
36
|
+
|
|
37
|
+
- `steps` — required, non-empty array of exact shell commands, executed in order
|
|
38
|
+
- `context` — optional extra context such as validation scope or known flaky steps
|
|
39
|
+
- `cwd` — optional working directory for the steps; defaults to the current session directory
|
|
40
|
+
|
|
41
|
+
When called, it launches an isolated in-memory child agent with:
|
|
42
|
+
|
|
43
|
+
- no inherited extensions, skills, prompt templates, themes, context files, or agents files;
|
|
44
|
+
- the current session model (no automatic model selection and no persisted `/config` commands);
|
|
45
|
+
- `low` thinking, clamped to the model's supported levels;
|
|
46
|
+
- only **unrestricted `bash`** plus configured MCP tools (no `read`, `write`, `edit`, `grep`, `find`, or `ls`);
|
|
47
|
+
- configured MCP tools (run without confirmation; may have side effects; requires host Pi >=1.0.4; older hosts degrade to no MCP, no error); the global `mcp.json` always applies, and a project `.pi/mcp.json` is loaded only when the host session has already trusted the project.
|
|
48
|
+
|
|
49
|
+
The prompt lists the steps exactly as given, numbered in order, and tells the subagent to stop at the first failure, never edit files, fix failures, install dependencies, update snapshots, or stage/commit/push, and to report the scope, each step with `PASS`/`FAIL`, the overall result, and skipped steps. The tool appends a run-details suffix with the model, effective thinking level, turn count, tool calls, duration, working directory, and tools used.
|
|
50
|
+
|
|
51
|
+
## Budgets
|
|
52
|
+
|
|
53
|
+
Validation can be long, so the budgets are generous: 60 turns, 60 minutes total wall-clock, and a default 30-minute timeout per `bash` call (applied when the model does not set one). Tool use is disabled on the final turn so the subagent can report.
|
|
54
|
+
|
|
55
|
+
## Guarantees and limitations
|
|
56
|
+
|
|
57
|
+
- **`bash` is unrestricted and not sandboxed.** The steps you pass run with your user's permissions, and the subagent could run other commands. The "never edit/fix/install/commit" rules are prompt guidance, not enforcement; only pass commands you would run yourself. Steps such as `npm ci` legitimately modify the checkout.
|
|
58
|
+
- Only `bash` and MCP tools are available; other tool calls are blocked. Configured MCP tools run without confirmation and are limited only by prompt guidance.
|
|
59
|
+
- Fail-fast and step order are enforced by the prompt, not by a runtime scheduler.
|
|
60
|
+
- If the run times out or fails, steps may have been partially executed.
|
|
61
|
+
|
|
62
|
+
## Example
|
|
63
|
+
|
|
64
|
+
```text
|
|
65
|
+
Use test_runner with:
|
|
66
|
+
|
|
67
|
+
{
|
|
68
|
+
"steps": ["npm ci", "npm run typecheck", "npm test"]
|
|
69
|
+
}
|
|
70
|
+
```
|