Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/audit/DemoHog3001
Submodule DemoHog3001 added at e7b6b5
1 change: 1 addition & 0 deletions apps/audit/cal-diy
Submodule cal-diy added at 07edb5
1 change: 1 addition & 0 deletions apps/audit/posthog-demo-3000
Submodule posthog-demo-3000 added at 4d1390
7 changes: 7 additions & 0 deletions apps/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
"description": "Wire Stripe + PostHog for revenue tracking",
"ciCapable": true
},
{
"id": "audit",
"dir": "audit",
"label": "Audit",
"description": "Audit a project's PostHog setup",
"ciCapable": false
},
{
"id": "skill",
"dir": "misc",
Expand Down
4 changes: 4 additions & 0 deletions services/wizard-ci/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export interface WizardOptions {
apiKey?: string;
command?: string;
skillId?: string;
areas?: string;
}

/**
Expand Down Expand Up @@ -194,6 +195,9 @@ export function runWizard(appPath: string, options: WizardOptions = {}): Promise
if (options.skillId) {
args.push(`--skill=${options.skillId}`);
}
if (options.areas) {
args.push(`--areas=${options.areas}`);
}
args.push("--local-mcp");

if (options.ci) {
Expand Down
8 changes: 8 additions & 0 deletions services/wizard-run/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ async function main(): Promise<void> {
}
}

// If the audit command was selected, optionally prompt for --areas
let auditAreas: string | undefined;
if (command.id === 'audit') {
const input = await prompt('Audit areas (e.g. "web analytics, feature flags") — leave blank for all: ');
if (input) auditAreas = input;
}

const scopedAppsDir = join(APPS_DIR, command.appsDir);
const apps = findApps(scopedAppsDir);
if (apps.length === 0) {
Expand All @@ -135,6 +142,7 @@ async function main(): Promise<void> {
region: opts.region,
command: commandToSubcommand(command.id),
skillId,
areas: auditAreas,
});

if (!result.success) {
Expand Down
Loading