@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.
Files changed (46) hide show
  1. package/README.md +6 -1
  2. package/extensions/agent-workflow-audit/index.ts +47 -25
  3. package/extensions/agent-workflow-audit/package.json +1 -1
  4. package/extensions/brrr/index.ts +21 -15
  5. package/extensions/brrr/package.json +1 -1
  6. package/extensions/code-reviewer/index.ts +52 -19
  7. package/extensions/code-reviewer/package.json +1 -1
  8. package/extensions/contrarian/index.ts +17 -17
  9. package/extensions/contrarian/package.json +1 -1
  10. package/extensions/developer/.pi-fleet-tested-version +1 -0
  11. package/extensions/developer/README.md +70 -0
  12. package/extensions/developer/index.ts +906 -0
  13. package/extensions/developer/package.json +40 -0
  14. package/extensions/diff-summarizer/.pi-fleet-tested-version +1 -0
  15. package/extensions/diff-summarizer/README.md +75 -0
  16. package/extensions/diff-summarizer/index.ts +1585 -0
  17. package/extensions/diff-summarizer/package.json +40 -0
  18. package/extensions/librarian/index.ts +10 -0
  19. package/extensions/librarian/package.json +1 -1
  20. package/extensions/minimal-footer/index.ts +5 -1
  21. package/extensions/minimal-footer/package.json +1 -1
  22. package/extensions/notify/index.ts +7 -2
  23. package/extensions/notify/package.json +1 -1
  24. package/extensions/oracle/index.ts +17 -17
  25. package/extensions/oracle/package.json +1 -1
  26. package/extensions/permission-gate/README.md +6 -11
  27. package/extensions/permission-gate/index.ts +11 -54
  28. package/extensions/permission-gate/package.json +1 -3
  29. package/extensions/project-mcp-json/README.md +4 -3
  30. package/extensions/project-mcp-json/package.json +1 -1
  31. package/extensions/repo-scout/.pi-fleet-tested-version +1 -0
  32. package/extensions/repo-scout/README.md +74 -0
  33. package/extensions/repo-scout/index.ts +1575 -0
  34. package/extensions/repo-scout/package.json +40 -0
  35. package/extensions/test-runner/.pi-fleet-tested-version +1 -0
  36. package/extensions/test-runner/README.md +70 -0
  37. package/extensions/test-runner/index.ts +798 -0
  38. package/extensions/test-runner/package.json +40 -0
  39. package/extensions/triage-comments/index.ts +66 -16
  40. package/extensions/triage-comments/package.json +1 -1
  41. package/extensions/web-scout/.pi-fleet-tested-version +1 -0
  42. package/extensions/web-scout/README.md +67 -0
  43. package/extensions/web-scout/index.ts +1204 -0
  44. package/extensions/web-scout/package.json +41 -0
  45. package/package.json +7 -2
  46. package/extensions/permission-gate/powershell-safety.ts +0 -1053
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@diegopetrucci/pi-developer",
3
+ "version": "0.1.0",
4
+ "description": "A standalone pi extension that adds a developer subagent tool that implements one task in an isolated child agent.",
5
+ "keywords": [
6
+ "pi-package",
7
+ "pi",
8
+ "developer",
9
+ "implementation",
10
+ "subagent"
11
+ ],
12
+ "license": "MIT",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/diegopetrucci/pi-extensions.git",
16
+ "directory": "extensions/developer"
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,75 @@
1
+ # diff-summarizer
2
+
3
+ Adds a `diff_summarizer` subagent tool that adapts The Last Harness [`diff-summarizer`](https://github.com/diegopetrucci/the-last-harness/blob/main/agents/subagents/diff-summarizer.md) prompt into a standalone pi extension.
4
+
5
+ Use it to get a terse, high-signal summary of a change set before review. The subagent uses read-only built-in tools plus any configured MCP tools, summarizes what changed, flags risky areas with evidence, and reports which requirements appear satisfied, violated, or unclear. 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-diff-summarizer
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
+ ## `diff_summarizer` tool behavior
34
+
35
+ The tool accepts:
36
+
37
+ - `diff` — optional diff or patch to summarize; when omitted, the subagent collects `git diff`, `git diff --cached`, and `git status --short --untracked-files=all` in the checkout and inspects relevant untracked files
38
+ - `requirements` — optional requirements or ticket text to check the change against; when omitted, inferred intent is labeled low confidence
39
+ - `cwd` — optional working directory (checkout); defaults to the current session directory
40
+
41
+ The subagent runs in-process in an isolated child session with:
42
+
43
+ - the current session model (no automatic model selection and no persisted `/config` commands);
44
+ - `medium` thinking, clamped to the model's supported levels;
45
+ - read-only built-in tools: `read`, `grep`, `find`, `ls`, and guarded `bash`;
46
+ - configured MCP tools (run without confirmation in the subagent; may have side effects; use for evidence gathering only; requires host Pi >=1.0.4; older hosts degrade to no MCP, no error); the global `mcp.json` always applies; a project `.pi/mcp.json` is loaded only when the host session has already trusted the project;
47
+ - a local-checkout path guard for file inspection;
48
+ - a bash guard that allows only direct read-only `git`, `gh`, or `pwd` invocations.
49
+
50
+ The output is short: diff source, files touched, what changed, risky areas touched, and requirement status. The tool appends a run-details suffix with the model, effective thinking level, turn count, tool calls, duration, working directory, and tools used.
51
+
52
+ ## Read-only guarantees
53
+
54
+ - The subagent is explicitly instructed not to modify anything.
55
+ - Runtime guards block write/edit tools, shell control operators, pipelines, redirection, path traversal outside the checkout, mutating `git`/`gh` commands, `npm`/publish commands, and other filesystem mutation.
56
+ - Runtime guards apply to built-in tools only; configured MCP tools pass the guard, run without confirmation, and are limited only by prompt guidance.
57
+ - Built-in file-inspection tools are preferred over shell commands for local files.
58
+
59
+ ## Example
60
+
61
+ ```text
62
+ Use diff_summarizer to summarize my current changes against these requirements:
63
+ ```
64
+
65
+ ```json
66
+ {
67
+ "requirements": "Add a --json flag to the status command and cover it with a test."
68
+ }
69
+ ```
70
+
71
+ ## Limitations
72
+
73
+ - The subagent has an 8-turn and 8-minute budget; tool use is disabled on the final turn so it can answer.
74
+ - With no `diff`, the summary depends on the checkout containing the change set.
75
+ - `gh`-based inspection is available only when GitHub CLI is installed and authenticated; the tool works on local changes without it.