@posthog/wizard 2.12.0 → 2.13.0
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.
- package/dist/{AuditChecksViewer-DsfXIO9e.js → AuditChecksViewer-B0J7zcY2.js} +157 -54
- package/dist/AuditChecksViewer-B0J7zcY2.js.map +1 -0
- package/dist/{add-mcp-server-to-clients-BKoew3aT.js → add-mcp-server-to-clients-CUNR00bB.js} +4 -4
- package/dist/{add-mcp-server-to-clients-BKoew3aT.js.map → add-mcp-server-to-clients-CUNR00bB.js.map} +1 -1
- package/dist/{agent-interface-D5W9BAB2.js → agent-interface-CV0-vtxj.js} +7 -6
- package/dist/{agent-interface-D5W9BAB2.js.map → agent-interface-CV0-vtxj.js.map} +1 -1
- package/dist/{agent-runner-B8Cx6X6x.js → agent-runner-LvVQH31D.js} +9 -8
- package/dist/{agent-runner-B8Cx6X6x.js.map → agent-runner-LvVQH31D.js.map} +1 -1
- package/dist/analytics-BH7bEHQR.js +2 -0
- package/dist/{analytics-DmD31Ssc.js → analytics-VM7laaFx.js} +2 -2
- package/dist/{analytics-DmD31Ssc.js.map → analytics-VM7laaFx.js.map} +1 -1
- package/dist/bin.js +237 -32
- package/dist/bin.js.map +1 -1
- package/dist/{debug-I5sRZubJ.js → debug-BdcTB7EF.js} +1 -1
- package/dist/{debug-Bkaqv1ab.js → debug-Cqi6nVfX.js} +2 -2
- package/dist/{debug-Bkaqv1ab.js.map → debug-Cqi6nVfX.js.map} +1 -1
- package/dist/{detection-C_RfYYDe.js → detection-CSjmal-X.js} +3 -3
- package/dist/{detection-C_RfYYDe.js.map → detection-CSjmal-X.js.map} +1 -1
- package/dist/{package-manager-qxP2PpM_.js → package-manager-CD8RQW-e.js} +2 -2
- package/dist/{package-manager-qxP2PpM_.js.map → package-manager-CD8RQW-e.js.map} +1 -1
- package/dist/{posthog-integration-DX77Msto.js → posthog-integration-BL21S3T6.js} +9 -9
- package/dist/{posthog-integration-DX77Msto.js.map → posthog-integration-BL21S3T6.js.map} +1 -1
- package/dist/provisioning-BdQ1ONIg.js +2 -0
- package/dist/{provisioning-DUj285NO.js → provisioning-g9aoVIEd.js} +3 -3
- package/dist/{provisioning-DUj285NO.js.map → provisioning-g9aoVIEd.js.map} +1 -1
- package/dist/{registry-CCtIsqb8.js → registry-BaMEaAKd.js} +4 -4
- package/dist/{registry-CCtIsqb8.js.map → registry-BaMEaAKd.js.map} +1 -1
- package/dist/{router-BTfmEDDJ.js → router-COhhuIW3.js} +3 -2
- package/dist/router-COhhuIW3.js.map +1 -0
- package/dist/{setup-utils-Bv8z6HMb.js → setup-utils-CNV7FSlY.js} +6 -6
- package/dist/{setup-utils-Bv8z6HMb.js.map → setup-utils-CNV7FSlY.js.map} +1 -1
- package/dist/setup-utils-CU4FIqjB.js +2 -0
- package/dist/{start-playground-DYNQ8rOz.js → start-playground-C9GWnVdM.js} +3 -3
- package/dist/{start-playground-DYNQ8rOz.js.map → start-playground-C9GWnVdM.js.map} +1 -1
- package/dist/{start-tui-DleQG3La.js → start-tui-B_zwutLe.js} +1225 -42
- package/dist/start-tui-B_zwutLe.js.map +1 -0
- package/dist/{steps-C-syS8if.js → steps-Dawz7k3T.js} +6 -6
- package/dist/{steps-C-syS8if.js.map → steps-Dawz7k3T.js.map} +1 -1
- package/dist/{telemetry-DHZfjgqx.js → telemetry-D6bjWA-A.js} +2 -2
- package/dist/{telemetry-DHZfjgqx.js.map → telemetry-D6bjWA-A.js.map} +1 -1
- package/dist/{wizard-abort-DfhWuzaw.js → wizard-abort-CJkNkSjT.js} +3 -3
- package/dist/{wizard-abort-DfhWuzaw.js.map → wizard-abort-CJkNkSjT.js.map} +1 -1
- package/dist/{wizard-abort-DIhFXJ5N.js → wizard-abort-Dl0BkqhT.js} +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/AuditChecksViewer-DsfXIO9e.js.map +0 -1
- package/dist/analytics-JDitS2JI.js +0 -2
- package/dist/provisioning-CHfTOEvg.js +0 -2
- package/dist/router-BTfmEDDJ.js.map +0 -1
- package/dist/setup-utils-CoX-vLgw.js +0 -2
- package/dist/start-tui-DleQG3La.js.map +0 -1
package/dist/bin.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { t as __exportAll } from "./rolldown-runtime-B_-DWIq7.js";
|
|
3
|
-
import { D as POSTHOG_DOCS_URL, G as VERSION, K as red, W as runtimeEnv, c as getUI, l as setUI, s as logToFile, u as LoggingUI, z as WIZARD_USER_AGENT } from "./debug-
|
|
4
|
-
import { n as analytics } from "./analytics-
|
|
5
|
-
import { u as handleApiError } from "./setup-utils-
|
|
6
|
-
import { h as AUDIT_REPORT_FILE, m as AUDIT_CHECKS_KEY, p as AUDIT_CHECKS_FILE } from "./agent-interface-
|
|
7
|
-
import { n as posthogIntegrationConfig } from "./posthog-integration-
|
|
3
|
+
import { D as POSTHOG_DOCS_URL, G as VERSION, K as red, W as runtimeEnv, c as getUI, l as setUI, s as logToFile, u as LoggingUI, z as WIZARD_USER_AGENT } from "./debug-Cqi6nVfX.js";
|
|
4
|
+
import { n as analytics } from "./analytics-VM7laaFx.js";
|
|
5
|
+
import { u as handleApiError } from "./setup-utils-CNV7FSlY.js";
|
|
6
|
+
import { h as AUDIT_REPORT_FILE, m as AUDIT_CHECKS_KEY, p as AUDIT_CHECKS_FILE } from "./agent-interface-CV0-vtxj.js";
|
|
7
|
+
import { n as posthogIntegrationConfig } from "./posthog-integration-BL21S3T6.js";
|
|
8
8
|
import { t as IGNORED_DIRS } from "./file-utils-DnTSiTJw.js";
|
|
9
9
|
import { satisfies } from "semver";
|
|
10
10
|
import yargs from "yargs";
|
|
@@ -259,6 +259,7 @@ function createSkillWorkflow(opts) {
|
|
|
259
259
|
description: opts.description,
|
|
260
260
|
flowKey: opts.flowKey,
|
|
261
261
|
steps: AGENT_SKILL_STEPS,
|
|
262
|
+
reportFile: opts.reportFile,
|
|
262
263
|
run: {
|
|
263
264
|
skillId: opts.skillId,
|
|
264
265
|
integrationLabel: opts.integrationLabel,
|
|
@@ -377,7 +378,7 @@ const withAuditScreens = (steps) => steps.map((step) => {
|
|
|
377
378
|
} : step;
|
|
378
379
|
});
|
|
379
380
|
const auditSteps = withAuditScreens(AGENT_SKILL_STEPS);
|
|
380
|
-
const baseConfig = createSkillWorkflow({
|
|
381
|
+
const baseConfig$1 = createSkillWorkflow({
|
|
381
382
|
skillId: "audit",
|
|
382
383
|
command: "audit",
|
|
383
384
|
flowKey: "audit",
|
|
@@ -394,15 +395,214 @@ const baseConfig = createSkillWorkflow({
|
|
|
394
395
|
});
|
|
395
396
|
const auditRun = async (session) => {
|
|
396
397
|
seedBeforeAuditRun(session);
|
|
397
|
-
if (!baseConfig.run) throw new Error("Audit workflow has no run configuration.");
|
|
398
|
-
return typeof baseConfig.run === "function" ? baseConfig.run(session) : baseConfig.run;
|
|
398
|
+
if (!baseConfig$1.run) throw new Error("Audit workflow has no run configuration.");
|
|
399
|
+
return typeof baseConfig$1.run === "function" ? baseConfig$1.run(session) : baseConfig$1.run;
|
|
399
400
|
};
|
|
400
401
|
const auditConfig = {
|
|
401
|
-
...baseConfig,
|
|
402
|
+
...baseConfig$1,
|
|
402
403
|
steps: auditSteps,
|
|
403
404
|
run: auditRun
|
|
404
405
|
};
|
|
405
406
|
//#endregion
|
|
407
|
+
//#region src/lib/workflows/audit-3000/index.ts
|
|
408
|
+
const AUDIT3000_REPORT_FILE = "posthog-audit-3000-report.md";
|
|
409
|
+
const AUDIT3000_EXTRA_CHECKS = [
|
|
410
|
+
{
|
|
411
|
+
id: "event-naming-standardization",
|
|
412
|
+
area: "Event Quality",
|
|
413
|
+
label: "Event naming convention is consistent",
|
|
414
|
+
status: "pending"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
id: "event-duplicates-and-bloat",
|
|
418
|
+
area: "Event Quality",
|
|
419
|
+
label: "No duplicate or bloated event capture",
|
|
420
|
+
status: "pending"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
id: "event-quality-context-review",
|
|
424
|
+
area: "Event Quality",
|
|
425
|
+
label: "Event property context reviewed",
|
|
426
|
+
status: "pending"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
id: "event-usage-coverage",
|
|
430
|
+
area: "Event Quality",
|
|
431
|
+
label: "Captured events match insights / dashboards usage",
|
|
432
|
+
status: "pending"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
id: "stale-feature-flags-reviewed",
|
|
436
|
+
area: "Feature Flags",
|
|
437
|
+
label: "Stale feature flags reviewed",
|
|
438
|
+
status: "pending"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
id: "replay-minimum-duration-set",
|
|
442
|
+
area: "Session Replay",
|
|
443
|
+
label: "Minimum duration set on init",
|
|
444
|
+
status: "pending"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
id: "replay-mask-config",
|
|
448
|
+
area: "Session Replay",
|
|
449
|
+
label: "Mask config covers sensitive surfaces",
|
|
450
|
+
status: "pending"
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
id: "replay-disabled-in-test-envs",
|
|
454
|
+
area: "Session Replay",
|
|
455
|
+
label: "Disabled in test / CI environments",
|
|
456
|
+
status: "pending"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
id: "replay-strict-minimum-duration",
|
|
460
|
+
area: "Session Replay",
|
|
461
|
+
label: "Strict minimum duration enforced",
|
|
462
|
+
status: "pending"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
id: "replay-sampling-rate",
|
|
466
|
+
area: "Session Replay — Optimize",
|
|
467
|
+
label: "Sampling rate tuned for cost",
|
|
468
|
+
status: "pending"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
id: "replay-triggers-configured",
|
|
472
|
+
area: "Session Replay — Optimize",
|
|
473
|
+
label: "Triggers configured (event / URL / flag)",
|
|
474
|
+
status: "pending"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
id: "replay-network-recording-filtered",
|
|
478
|
+
area: "Session Replay — Optimize",
|
|
479
|
+
label: "Network recording filtered",
|
|
480
|
+
status: "pending"
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
id: "replay-mobile-sampling",
|
|
484
|
+
area: "Session Replay — Optimize",
|
|
485
|
+
label: "Mobile sampling configured",
|
|
486
|
+
status: "pending"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
id: "expansion-product-analytics",
|
|
490
|
+
area: "Use Case: Expansion",
|
|
491
|
+
label: "Product analytics coverage",
|
|
492
|
+
status: "pending"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
id: "expansion-error-tracking",
|
|
496
|
+
area: "Use Case: Expansion",
|
|
497
|
+
label: "Error tracking coverage",
|
|
498
|
+
status: "pending"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
id: "expansion-llm-observability",
|
|
502
|
+
area: "Use Case: Expansion",
|
|
503
|
+
label: "LLM observability coverage",
|
|
504
|
+
status: "pending"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
id: "expansion-session-replay",
|
|
508
|
+
area: "Use Case: Expansion",
|
|
509
|
+
label: "Session replay coverage",
|
|
510
|
+
status: "pending"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
id: "expansion-feature-flags",
|
|
514
|
+
area: "Use Case: Expansion",
|
|
515
|
+
label: "Feature flags coverage",
|
|
516
|
+
status: "pending"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
id: "expansion-surveys",
|
|
520
|
+
area: "Use Case: Expansion",
|
|
521
|
+
label: "Surveys coverage",
|
|
522
|
+
status: "pending"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
id: "expansion-logs",
|
|
526
|
+
area: "Use Case: Expansion",
|
|
527
|
+
label: "Logs coverage",
|
|
528
|
+
status: "pending"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
id: "expansion-web-analytics",
|
|
532
|
+
area: "Use Case: Expansion",
|
|
533
|
+
label: "Web analytics coverage",
|
|
534
|
+
status: "pending"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
id: "customer-enrichment",
|
|
538
|
+
area: "Additional Sections",
|
|
539
|
+
label: "Customer enrichment (Harmonic + PDL)",
|
|
540
|
+
status: "pending"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
id: "use-case-match",
|
|
544
|
+
area: "Additional Sections",
|
|
545
|
+
label: "Use-case match",
|
|
546
|
+
status: "pending"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
id: "final-report",
|
|
550
|
+
area: "Additional Sections",
|
|
551
|
+
label: "Final audit report written",
|
|
552
|
+
status: "pending"
|
|
553
|
+
}
|
|
554
|
+
];
|
|
555
|
+
const AUDIT3000_SEED_CHECKS = [...AUDIT_SEED_CHECKS, ...AUDIT3000_EXTRA_CHECKS];
|
|
556
|
+
const AUDIT3000_SCREEN_BY_STEP = {
|
|
557
|
+
intro: "audit-3000-intro",
|
|
558
|
+
run: "audit-3000-run",
|
|
559
|
+
outro: "audit-3000-outro"
|
|
560
|
+
};
|
|
561
|
+
const seedAudit3000Ledger = (installDir) => {
|
|
562
|
+
const target = path.join(installDir, AUDIT_CHECKS_FILE);
|
|
563
|
+
const tmp = `${target}.tmp`;
|
|
564
|
+
fs.writeFileSync(tmp, JSON.stringify(AUDIT3000_SEED_CHECKS, null, 2), "utf8");
|
|
565
|
+
fs.renameSync(tmp, target);
|
|
566
|
+
logToFile(`seedAudit3000Ledger: wrote ${AUDIT3000_SEED_CHECKS.length} entries to ${target}`);
|
|
567
|
+
};
|
|
568
|
+
const seedBeforeAudit3000Run = (session) => {
|
|
569
|
+
seedAudit3000Ledger(session.installDir);
|
|
570
|
+
session.frameworkContext[AUDIT_CHECKS_KEY] = AUDIT3000_SEED_CHECKS;
|
|
571
|
+
};
|
|
572
|
+
const withAudit3000Screens = (steps) => steps.map((step) => {
|
|
573
|
+
const override = AUDIT3000_SCREEN_BY_STEP[step.id];
|
|
574
|
+
return override ? {
|
|
575
|
+
...step,
|
|
576
|
+
screen: override
|
|
577
|
+
} : step;
|
|
578
|
+
});
|
|
579
|
+
const audit3000Steps = withAudit3000Screens(AGENT_SKILL_STEPS);
|
|
580
|
+
const baseConfig = createSkillWorkflow({
|
|
581
|
+
skillId: "audit-3000",
|
|
582
|
+
command: "audit-3000",
|
|
583
|
+
flowKey: "audit-3000",
|
|
584
|
+
description: "Audit an existing PostHog integration (v3000 — adds event quality, stale-flag hygiene, customer enrichment, use-case match)",
|
|
585
|
+
integrationLabel: "audit-3000",
|
|
586
|
+
customPrompt: "Run the audit-3000 skill end-to-end. Follow the step chain starting at references/1-version.md. Do not modify any project files — only create the final audit report and (when enrichment is enabled) the enrichment report.",
|
|
587
|
+
successMessage: `Audit complete! View the report at ./${AUDIT3000_REPORT_FILE}`,
|
|
588
|
+
reportFile: AUDIT3000_REPORT_FILE,
|
|
589
|
+
docsUrl: "https://posthog.com/docs/product-analytics/best-practices",
|
|
590
|
+
spinnerMessage: "Running PostHog Audit 3000...",
|
|
591
|
+
estimatedDurationMinutes: 6,
|
|
592
|
+
requires: ["posthog-integration"],
|
|
593
|
+
abortCases: AUDIT_ABORT_CASES
|
|
594
|
+
});
|
|
595
|
+
const audit3000Run = async (session) => {
|
|
596
|
+
seedBeforeAudit3000Run(session);
|
|
597
|
+
if (!baseConfig.run) throw new Error("audit-3000 workflow has no run configuration.");
|
|
598
|
+
return typeof baseConfig.run === "function" ? baseConfig.run(session) : baseConfig.run;
|
|
599
|
+
};
|
|
600
|
+
const audit3000Config = {
|
|
601
|
+
...baseConfig,
|
|
602
|
+
steps: audit3000Steps,
|
|
603
|
+
run: audit3000Run
|
|
604
|
+
};
|
|
605
|
+
//#endregion
|
|
406
606
|
//#region src/lib/workflows/posthog-doctor/steps.ts
|
|
407
607
|
const POSTHOG_DOCTOR_WORKFLOW = [
|
|
408
608
|
{
|
|
@@ -551,6 +751,7 @@ const WORKFLOW_REGISTRY = [
|
|
|
551
751
|
posthogIntegrationConfig,
|
|
552
752
|
revenueAnalyticsConfig,
|
|
553
753
|
auditConfig,
|
|
754
|
+
audit3000Config,
|
|
554
755
|
{
|
|
555
756
|
command: "doctor",
|
|
556
757
|
description: "Diagnose your PostHog project for configuration issues and setup warnings",
|
|
@@ -558,6 +759,10 @@ const WORKFLOW_REGISTRY = [
|
|
|
558
759
|
steps: POSTHOG_DOCTOR_WORKFLOW
|
|
559
760
|
}
|
|
560
761
|
];
|
|
762
|
+
/** Look up a workflow config by its flowKey. */
|
|
763
|
+
function getWorkflowConfig(flowKey) {
|
|
764
|
+
return WORKFLOW_REGISTRY.find((c) => c.flowKey === flowKey);
|
|
765
|
+
}
|
|
561
766
|
/** All workflow configs that are exposed as CLI subcommands. */
|
|
562
767
|
function getSubcommandWorkflows() {
|
|
563
768
|
return WORKFLOW_REGISTRY.filter((c) => c.command != null);
|
|
@@ -725,7 +930,7 @@ const cli = yargs(hideBin(process.argv)).env("POSTHOG_WIZARD").options({
|
|
|
725
930
|
setUI(new LoggingUI());
|
|
726
931
|
getUI().intro("PostHog Wizard");
|
|
727
932
|
try {
|
|
728
|
-
const { provisionNewAccount } = await import("./provisioning-
|
|
933
|
+
const { provisionNewAccount } = await import("./provisioning-BdQ1ONIg.js");
|
|
729
934
|
const signupRegion = options.region.toUpperCase();
|
|
730
935
|
getUI().log.info(`Provisioning new PostHog account for ${String(options.email)} in ${signupRegion}...`);
|
|
731
936
|
const result = await provisionNewAccount(options.email, options.name ?? "", signupRegion);
|
|
@@ -747,11 +952,11 @@ const cli = yargs(hideBin(process.argv)).env("POSTHOG_WIZARD").options({
|
|
|
747
952
|
return;
|
|
748
953
|
}
|
|
749
954
|
}
|
|
750
|
-
const { posthogIntegrationConfig } = await import("./posthog-integration-
|
|
751
|
-
const { FRAMEWORK_REGISTRY } = await import("./registry-
|
|
752
|
-
const { detectFramework, gatherFrameworkContext } = await import("./detection-
|
|
753
|
-
const { analytics } = await import("./analytics-
|
|
754
|
-
const { wizardAbort } = await import("./wizard-abort-
|
|
955
|
+
const { posthogIntegrationConfig } = await import("./posthog-integration-BL21S3T6.js").then((n) => n.r);
|
|
956
|
+
const { FRAMEWORK_REGISTRY } = await import("./registry-BaMEaAKd.js").then((n) => n.n);
|
|
957
|
+
const { detectFramework, gatherFrameworkContext } = await import("./detection-CSjmal-X.js").then((n) => n.t);
|
|
958
|
+
const { analytics } = await import("./analytics-BH7bEHQR.js");
|
|
959
|
+
const { wizardAbort } = await import("./wizard-abort-Dl0BkqhT.js");
|
|
755
960
|
runWizardCI(posthogIntegrationConfig, options, async (session) => {
|
|
756
961
|
const integration = session.integration ?? await detectFramework(session.installDir);
|
|
757
962
|
if (!integration) {
|
|
@@ -784,7 +989,7 @@ const cli = yargs(hideBin(process.argv)).env("POSTHOG_WIZARD").options({
|
|
|
784
989
|
getUI().log.error("This installer requires an interactive terminal (TTY) to run.\nIt appears you are running in a non-interactive environment.\nPlease run the wizard in an interactive terminal.\n\nFor CI/CD environments, use --ci mode:\n npx @posthog/wizard --ci --region us --api-key phx_xxx");
|
|
785
990
|
process.exit(1);
|
|
786
991
|
} else if (options.playground) (async () => {
|
|
787
|
-
const { startPlayground } = await import("./start-playground-
|
|
992
|
+
const { startPlayground } = await import("./start-playground-C9GWnVdM.js");
|
|
788
993
|
startPlayground(WIZARD_VERSION);
|
|
789
994
|
})();
|
|
790
995
|
else if (options.skill) (async () => {
|
|
@@ -807,7 +1012,7 @@ const cli = yargs(hideBin(process.argv)).env("POSTHOG_WIZARD").options({
|
|
|
807
1012
|
});
|
|
808
1013
|
})();
|
|
809
1014
|
else (async () => {
|
|
810
|
-
const { posthogIntegrationConfig } = await import("./posthog-integration-
|
|
1015
|
+
const { posthogIntegrationConfig } = await import("./posthog-integration-BL21S3T6.js").then((n) => n.r);
|
|
811
1016
|
runWizard(posthogIntegrationConfig, options);
|
|
812
1017
|
})();
|
|
813
1018
|
}).command("mcp <command>", "MCP server management commands", (yargs) => {
|
|
@@ -834,9 +1039,9 @@ const cli = yargs(hideBin(process.argv)).env("POSTHOG_WIZARD").options({
|
|
|
834
1039
|
const { readApiKeyFromEnv } = await import("./env-api-key-D5G2PrXW.js");
|
|
835
1040
|
const apiKey = options.apiKey || readApiKeyFromEnv();
|
|
836
1041
|
try {
|
|
837
|
-
const { startTUI } = await import("./start-tui-
|
|
1042
|
+
const { startTUI } = await import("./start-tui-B_zwutLe.js");
|
|
838
1043
|
const { buildSession } = await import("./wizard-session-BQC9vy9Z.js");
|
|
839
|
-
const { Flow } = await import("./router-
|
|
1044
|
+
const { Flow } = await import("./router-COhhuIW3.js").then((n) => n.n);
|
|
840
1045
|
const tui = startTUI(WIZARD_VERSION, Flow.McpAdd);
|
|
841
1046
|
const session = buildSession({
|
|
842
1047
|
debug: options.debug,
|
|
@@ -847,7 +1052,7 @@ const cli = yargs(hideBin(process.argv)).env("POSTHOG_WIZARD").options({
|
|
|
847
1052
|
tui.store.session = session;
|
|
848
1053
|
} catch {
|
|
849
1054
|
setUI(new LoggingUI());
|
|
850
|
-
const { addMCPServerToClientsStep } = await import("./add-mcp-server-to-clients-
|
|
1055
|
+
const { addMCPServerToClientsStep } = await import("./add-mcp-server-to-clients-CUNR00bB.js").then((n) => n.r);
|
|
851
1056
|
await addMCPServerToClientsStep({
|
|
852
1057
|
local: options.local,
|
|
853
1058
|
features: mcpFeatures,
|
|
@@ -865,9 +1070,9 @@ const cli = yargs(hideBin(process.argv)).env("POSTHOG_WIZARD").options({
|
|
|
865
1070
|
const options = { ...argv };
|
|
866
1071
|
(async () => {
|
|
867
1072
|
try {
|
|
868
|
-
const { startTUI } = await import("./start-tui-
|
|
1073
|
+
const { startTUI } = await import("./start-tui-B_zwutLe.js");
|
|
869
1074
|
const { buildSession } = await import("./wizard-session-BQC9vy9Z.js");
|
|
870
|
-
const { Flow } = await import("./router-
|
|
1075
|
+
const { Flow } = await import("./router-COhhuIW3.js").then((n) => n.n);
|
|
871
1076
|
const tui = startTUI(WIZARD_VERSION, Flow.McpRemove);
|
|
872
1077
|
const session = buildSession({
|
|
873
1078
|
debug: options.debug,
|
|
@@ -876,7 +1081,7 @@ const cli = yargs(hideBin(process.argv)).env("POSTHOG_WIZARD").options({
|
|
|
876
1081
|
tui.store.session = session;
|
|
877
1082
|
} catch {
|
|
878
1083
|
setUI(new LoggingUI());
|
|
879
|
-
const { removeMCPServerFromClientsStep } = await import("./add-mcp-server-to-clients-
|
|
1084
|
+
const { removeMCPServerFromClientsStep } = await import("./add-mcp-server-to-clients-CUNR00bB.js").then((n) => n.r);
|
|
880
1085
|
await removeMCPServerFromClientsStep({ local: options.local });
|
|
881
1086
|
}
|
|
882
1087
|
})();
|
|
@@ -912,7 +1117,7 @@ cli.command("provision", "Create a new PostHog account (headless, no TUI)", (yar
|
|
|
912
1117
|
if (!jsonMode) setUI(new LoggingUI());
|
|
913
1118
|
(async () => {
|
|
914
1119
|
try {
|
|
915
|
-
const { provisionNewAccount } = await import("./provisioning-
|
|
1120
|
+
const { provisionNewAccount } = await import("./provisioning-BdQ1ONIg.js");
|
|
916
1121
|
if (!jsonMode) getUI().log.info(`Provisioning account for ${email} in ${region}...`);
|
|
917
1122
|
const result = await provisionNewAccount(email, name, region);
|
|
918
1123
|
if (jsonMode) process.stdout.write(`${JSON.stringify(result)}\n`);
|
|
@@ -954,12 +1159,12 @@ function runWizard(config, options) {
|
|
|
954
1159
|
(async () => {
|
|
955
1160
|
try {
|
|
956
1161
|
const installDir = options.installDir || process.cwd();
|
|
957
|
-
const { startTUI } = await import("./start-tui-
|
|
1162
|
+
const { startTUI } = await import("./start-tui-B_zwutLe.js");
|
|
958
1163
|
const { buildSession } = await import("./wizard-session-BQC9vy9Z.js");
|
|
959
1164
|
const { TaskStreamPush } = await import("./task-stream-CX7Uf6EM.js");
|
|
960
1165
|
const { FileDestination } = await import("./file-8iNrXHkG.js");
|
|
961
1166
|
const { PostHogDestination } = await import("./posthog-vm0k9PKS.js");
|
|
962
|
-
const { analytics } = await import("./analytics-
|
|
1167
|
+
const { analytics } = await import("./analytics-BH7bEHQR.js");
|
|
963
1168
|
const tui = startTUI(WIZARD_VERSION, config.flowKey);
|
|
964
1169
|
const session = buildSession({
|
|
965
1170
|
debug: options.debug,
|
|
@@ -990,7 +1195,7 @@ function runWizard(config, options) {
|
|
|
990
1195
|
await tui.store.getGate("health-check");
|
|
991
1196
|
const skipAgent = config.run == null;
|
|
992
1197
|
if (skipAgent) {
|
|
993
|
-
const { getOrAskForProjectData } = await import("./setup-utils-
|
|
1198
|
+
const { getOrAskForProjectData } = await import("./setup-utils-CU4FIqjB.js");
|
|
994
1199
|
const { projectApiKey, host, accessToken, projectId } = await getOrAskForProjectData({
|
|
995
1200
|
signup: session.signup,
|
|
996
1201
|
ci: session.ci,
|
|
@@ -1004,7 +1209,7 @@ function runWizard(config, options) {
|
|
|
1004
1209
|
projectId
|
|
1005
1210
|
});
|
|
1006
1211
|
} else {
|
|
1007
|
-
const { runAgent } = await import("./agent-runner-
|
|
1212
|
+
const { runAgent } = await import("./agent-runner-LvVQH31D.js");
|
|
1008
1213
|
await runAgent(config, tui.store.session);
|
|
1009
1214
|
}
|
|
1010
1215
|
const isDone = () => skipAgent ? tui.store.session.outroDismissed : tui.store.session.skillsComplete;
|
|
@@ -1058,8 +1263,8 @@ function runWizardCI(config, options, preRun) {
|
|
|
1058
1263
|
const { buildSession } = await import("./wizard-session-BQC9vy9Z.js");
|
|
1059
1264
|
const { readEnvironment } = await Promise.resolve().then(() => environment_exports);
|
|
1060
1265
|
const { readApiKeyFromEnv } = await import("./env-api-key-D5G2PrXW.js");
|
|
1061
|
-
const { configureLogFileFromEnvironment, logToFile } = await import("./debug-
|
|
1062
|
-
const { wizardAbort, WizardError } = await import("./wizard-abort-
|
|
1266
|
+
const { configureLogFileFromEnvironment, logToFile } = await import("./debug-BdcTB7EF.js");
|
|
1267
|
+
const { wizardAbort, WizardError } = await import("./wizard-abort-Dl0BkqhT.js");
|
|
1063
1268
|
configureLogFileFromEnvironment();
|
|
1064
1269
|
const env = readEnvironment();
|
|
1065
1270
|
const apiKey = options.apiKey ?? readApiKeyFromEnv() ?? void 0;
|
|
@@ -1108,7 +1313,7 @@ function runWizardCI(config, options, preRun) {
|
|
|
1108
1313
|
})
|
|
1109
1314
|
});
|
|
1110
1315
|
}
|
|
1111
|
-
const { runAgent } = await import("./agent-runner-
|
|
1316
|
+
const { runAgent } = await import("./agent-runner-LvVQH31D.js");
|
|
1112
1317
|
await runAgent(config, session);
|
|
1113
1318
|
} catch (error) {
|
|
1114
1319
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
@@ -1126,6 +1331,6 @@ function runWizardCI(config, options, preRun) {
|
|
|
1126
1331
|
});
|
|
1127
1332
|
}
|
|
1128
1333
|
//#endregion
|
|
1129
|
-
export {
|
|
1334
|
+
export { AGENT_SKILL_STEPS as a, fetchHealthIssues as i, getWorkflowConfig as n, POSTHOG_SDKS as o, getKindMeta as r, STRIPE_SDKS as s, WORKFLOW_REGISTRY as t };
|
|
1130
1335
|
|
|
1131
1336
|
//# sourceMappingURL=bin.js.map
|