92706eee57157b76541d3b23283c93921a50e96f

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Add context viewer and remove plannotator skill

Diff

 1diff --git a/dot_pi/private_agent/extensions/git-interceptor.ts b/dot_pi/private_agent/extensions/git-interceptor.ts
 2deleted file mode 100644
 3index 4acb3fdeed27b8c01b125793854f89012f333b44..0000000000000000000000000000000000000000
 4--- a/dot_pi/private_agent/extensions/git-interceptor.ts
 5+++ /dev/null
 6@@ -1,39 +0,0 @@
 7-/**
 8- * Git Interceptor
 9- *
10- * Two guards for agent-driven git commands:
11- *
12- * 1. Editor hang prevention — Sets GIT_EDITOR, GIT_SEQUENCE_EDITOR to `true`
13- *    (no-op) and GIT_MERGE_AUTOEDIT to `no` so git never spawns an interactive
14- *    editor (nvim, vim, etc.) that would hang the bash process.
15- *
16- * 2. Hook bypass prevention — Blocks any command containing `--no-verify` so
17- *    the agent cannot circumvent git hooks (pre-commit, commit-msg, etc.).
18- *    The agent should fix hook failures or ask the human for help instead.
19- */
20-
21-import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
22-import { isToolCallEventType } from "@earendil-works/pi-coding-agent";
23-
24-const GIT_ENV_PREFIX =
25-	"export GIT_EDITOR=true GIT_SEQUENCE_EDITOR=true GIT_MERGE_AUTOEDIT=no\n";
26-
27-const NO_VERIFY_RE = /--no-verify\b/;
28-
29-const BLOCK_REASON =
30-	"BLOCKED: --no-verify is not allowed. Git hooks exist for a reason. " +
31-	"Do not attempt to bypass them. Instead: fix the underlying issue that " +
32-	"is causing the hook to fail, or ask the user for help.";
33-
34-export default function (pi: ExtensionAPI) {
35-	pi.on("tool_call", (event) => {
36-		if (!isToolCallEventType("bash", event)) return;
37-		if (!event.input.command.includes("git")) return;
38-
39-		if (NO_VERIFY_RE.test(event.input.command)) {
40-			return { block: true, reason: BLOCK_REASON };
41-		}
42-
43-		event.input.command = GIT_ENV_PREFIX + event.input.command;
44-	});
45-}
46diff --git a/dot_pi/private_agent/modify_settings.json b/dot_pi/private_agent/modify_settings.json
47index 82c9a75835e0133cd82bf7c50f6f94a966dabea9..1be23d225e05bd4f5838d5f55e2fd407df83d5bc 100644
48--- a/dot_pi/private_agent/modify_settings.json
49+++ b/dot_pi/private_agent/modify_settings.json
50@@ -30,8 +30,12 @@
51     "git:git.theedgeofrage.com/TheEdgeOfRage/pi-tree-pruning",
52     "git:github.com/TheEdgeOfRage/pi-herdr-subagents",
53     "git:github.com/dmmulroy/pi-web-tools",
54-    "npm:@plannotator/pi-extension",
55-    "npm:pi-mcp-adapter"
56+    "npm:pi-mcp-adapter",
57+    "npm:pi-context-view",
58+    {
59+      "source": "npm:@plannotator/pi-extension",
60+      "skills": []
61+    }
62   ],
63   "outputPad": 0,
64   "autocompleteMaxVisible": 7,