feat: add internal hooks system

This commit is contained in:
Peter Steinberger committed 2026-01-17 01:31:57 +00:00
1 parent a76cbc43bb
commit faba508fe0
39 files changed
+4241 -28

No files matched your search

+5
View File
@@ -19,6 +19,7 @@ import {
} from "../commands/onboard-helpers.js";
import { promptRemoteGatewayConfig } from "../commands/onboard-remote.js";
import { setupSkills } from "../commands/onboard-skills.js";
import { setupInternalHooks } from "../commands/onboard-hooks.js";
import type {
GatewayAuthChoice,
OnboardMode,
@@ -403,6 +404,10 @@ export async function runOnboardingWizard(
} else {
nextConfig = await setupSkills(nextConfig, workspaceDir, runtime, prompter);
}
// Setup internal hooks (session memory on /new)
nextConfig = await setupInternalHooks(nextConfig, runtime, prompter);
nextConfig = applyWizardMetadata(nextConfig, { command: "onboard", mode });
await writeConfigFile(nextConfig);