Remove legacy chains, skills, and config modules. Add citation agent, SYSTEM.md, modular research-tools extension, and web-access layer. Add ralph-wiggum to Pi package stack for long-running loops. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
925 B
TypeScript
26 lines
925 B
TypeScript
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
|
|
import { registerAlphaCommands, registerAlphaTools } from "./research-tools/alpha.js";
|
|
import { installFeynmanHeader } from "./research-tools/header.js";
|
|
import { registerHelpCommand } from "./research-tools/help.js";
|
|
import { registerInitCommand, registerPreviewTool, registerSessionSearchTool } from "./research-tools/project.js";
|
|
|
|
export default function researchTools(pi: ExtensionAPI): void {
|
|
const cache: { agentSummaryPromise?: Promise<{ count: number; lines: string[] }> } = {};
|
|
|
|
pi.on("session_start", async (_event, ctx) => {
|
|
await installFeynmanHeader(pi, ctx, cache);
|
|
});
|
|
|
|
pi.on("session_switch", async (_event, ctx) => {
|
|
await installFeynmanHeader(pi, ctx, cache);
|
|
});
|
|
|
|
registerAlphaCommands(pi);
|
|
registerHelpCommand(pi);
|
|
registerInitCommand(pi);
|
|
registerSessionSearchTool(pi);
|
|
registerAlphaTools(pi);
|
|
registerPreviewTool(pi);
|
|
}
|