@posthog/wizard 2.15.0 → 2.16.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/{TextBlock-B_8bXLLs.js → TextBlock-DJVhBkr3.js} +4 -4
- package/dist/TextBlock-DJVhBkr3.js.map +1 -0
- package/dist/{add-mcp-server-to-clients-Dq0n2yzq.js → add-mcp-server-to-clients-9jQjc-CO.js} +5 -5
- package/dist/{add-mcp-server-to-clients-Dq0n2yzq.js.map → add-mcp-server-to-clients-9jQjc-CO.js.map} +1 -1
- package/dist/{agent-interface-yB_27jG8.js → agent-interface-pBnqJL8P.js} +6 -6
- package/dist/{agent-interface-yB_27jG8.js.map → agent-interface-pBnqJL8P.js.map} +1 -1
- package/dist/{agent-runner-C9sSudE0.js → agent-runner-H1FP6XTc.js} +12 -8
- package/dist/{agent-runner-C9sSudE0.js.map → agent-runner-H1FP6XTc.js.map} +1 -1
- package/dist/{analytics-Da4QHjMw.js → analytics-DZaUgJte.js} +2 -2
- package/dist/{analytics-Da4QHjMw.js.map → analytics-DZaUgJte.js.map} +1 -1
- package/dist/analytics-DqeW7XYt.js +2 -0
- package/dist/bin.js +106 -40
- package/dist/bin.js.map +1 -1
- package/dist/{debug-D5kt4fxB.js → debug-B6rX6xye.js} +1 -1
- package/dist/{debug-DRKLej5r.js → debug-C4jRuzny.js} +4 -2
- package/dist/{debug-DRKLej5r.js.map → debug-C4jRuzny.js.map} +1 -1
- package/dist/{defaults-CPH6eWhN.js → defaults-GbLPuHxj.js} +1 -1
- package/dist/{defaults-CPH6eWhN.js.map → defaults-GbLPuHxj.js.map} +1 -1
- package/dist/{detection-0Pz2NncX.js → detection-4eukp9HD.js} +3 -3
- package/dist/{detection-0Pz2NncX.js.map → detection-4eukp9HD.js.map} +1 -1
- package/dist/{env-api-key-HFqv1l-z.js → env-api-key-DU8uIEvo.js} +1 -1
- package/dist/{env-api-key-HFqv1l-z.js.map → env-api-key-DU8uIEvo.js.map} +1 -1
- package/dist/mcp-prompt-streaming-DKiaymMt.js +200 -0
- package/dist/mcp-prompt-streaming-DKiaymMt.js.map +1 -0
- package/dist/{package-manager-DlTISyej.js → package-manager-DLt75bit.js} +2 -2
- package/dist/{package-manager-DlTISyej.js.map → package-manager-DLt75bit.js.map} +1 -1
- package/dist/{posthog-B1G0raJU.js → posthog-7B92c2Ed.js} +1 -1
- package/dist/{posthog-B1G0raJU.js.map → posthog-7B92c2Ed.js.map} +1 -1
- package/dist/{posthog-integration-D-DyEJvz.js → posthog-integration-CukaeYil.js} +11 -11
- package/dist/{posthog-integration-D-DyEJvz.js.map → posthog-integration-CukaeYil.js.map} +1 -1
- package/dist/{provisioning-DmN8ZDbE.js → provisioning-C_ETLiZE.js} +3 -3
- package/dist/{provisioning-DmN8ZDbE.js.map → provisioning-C_ETLiZE.js.map} +1 -1
- package/dist/provisioning-Ch6i8dRV.js +2 -0
- package/dist/{registry-CofBzIdU.js → registry-DqbwO5EL.js} +4 -4
- package/dist/{registry-CofBzIdU.js.map → registry-DqbwO5EL.js.map} +1 -1
- package/dist/setup-utils-C5uZ9g60.js +2 -0
- package/dist/{setup-utils-_P-or31U.js → setup-utils-DdAdxUTV.js} +85 -15
- package/dist/setup-utils-DdAdxUTV.js.map +1 -0
- package/dist/{slides-D3I6JzlG.js → slides-Dpj4j0w_.js} +546 -26
- package/dist/slides-Dpj4j0w_.js.map +1 -0
- package/dist/{start-playground-Bxd2KG2L.js → start-playground-B40O4tye.js} +287 -4
- package/dist/start-playground-B40O4tye.js.map +1 -0
- package/dist/{start-tui-Bl8fCbp_.js → start-tui-CH_ZzQXx.js} +65 -16
- package/dist/start-tui-CH_ZzQXx.js.map +1 -0
- package/dist/{steps-B-vmvb2V.js → steps-0d9XqvI6.js} +6 -6
- package/dist/{steps-B-vmvb2V.js.map → steps-0d9XqvI6.js.map} +1 -1
- package/dist/{task-stream-z6QFZtpC.js → task-stream-CoEsidgG.js} +3 -3
- package/dist/{task-stream-z6QFZtpC.js.map → task-stream-CoEsidgG.js.map} +1 -1
- package/dist/{telemetry-XO0SlTFs.js → telemetry-jn2Daxl2.js} +2 -2
- package/dist/{telemetry-XO0SlTFs.js.map → telemetry-jn2Daxl2.js.map} +1 -1
- package/dist/{wizard-abort-uolun8Q3.js → wizard-abort-BjLIgu2s.js} +3 -3
- package/dist/{wizard-abort-uolun8Q3.js.map → wizard-abort-BjLIgu2s.js.map} +1 -1
- package/dist/{wizard-abort-CuaS1eXn.js → wizard-abort-BlYGA1Jk.js} +1 -1
- package/dist/{wizard-session-BlgiX-5d.js → wizard-session-Bi95IYca.js} +4 -1
- package/dist/wizard-session-Bi95IYca.js.map +1 -0
- package/dist/{wizard-session-DxU5ZMBN.js → wizard-session-DPGTaJ4W.js} +1 -1
- package/dist/wizard-ui-YdGFRyu_.js.map +1 -1
- package/package.json +1 -1
- package/dist/TextBlock-B_8bXLLs.js.map +0 -1
- package/dist/analytics-BnR9904x.js +0 -2
- package/dist/provisioning-COeHnCVG.js +0 -2
- package/dist/setup-utils-C5iSJ3eg.js +0 -2
- package/dist/setup-utils-_P-or31U.js.map +0 -1
- package/dist/slides-D3I6JzlG.js.map +0 -1
- package/dist/start-playground-Bxd2KG2L.js.map +0 -1
- package/dist/start-tui-Bl8fCbp_.js.map +0 -1
- package/dist/wizard-session-BlgiX-5d.js.map +0 -1
package/dist/bin.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { t as __exportAll } from "./rolldown-runtime-B_-DWIq7.js";
|
|
3
|
-
import { M as POSTHOG_DOCS_URL, W as WIZARD_USER_AGENT, X as VERSION, Y as runtimeEnv, _ as SIGNUP_WIZARD_READINESS_CONFIG, h as LoggingUI, m as setUI, p as getUI, s as logToFile, v as evaluateWizardReadiness, y as getBlockingServiceKeys } from "./debug-
|
|
4
|
-
import { n as analytics } from "./analytics-
|
|
5
|
-
import { a as isUsingTypeScript, f as getCloudUrlFromRegion, m as getUiHostFromHost, u as handleApiError } from "./setup-utils-
|
|
6
|
-
import "./wizard-session-
|
|
7
|
-
import { g as AUDIT_REPORT_FILE, h as AUDIT_CHECKS_KEY, m as AUDIT_CHECKS_FILE, t as AgentSignals, u as WIZARD_TOOL_NAMES } from "./agent-interface-
|
|
8
|
-
import { i as SPINNER_MESSAGE } from "./registry-
|
|
9
|
-
import { c as HEALTH_CHECK_STEP, o as Colors, r as isClearBlock } from "./TextBlock-
|
|
10
|
-
import { a as LINE_CHART_BLOCK, i as FUNNEL_BLOCK, n as posthogIntegrationConfig, o as PRODUCT_SUITE_BLOCK, s as StatusPeekTrigger } from "./posthog-integration-
|
|
3
|
+
import { M as POSTHOG_DOCS_URL, W as WIZARD_USER_AGENT, X as VERSION, Y as runtimeEnv, _ as SIGNUP_WIZARD_READINESS_CONFIG, h as LoggingUI, m as setUI, p as getUI, s as logToFile, v as evaluateWizardReadiness, y as getBlockingServiceKeys } from "./debug-C4jRuzny.js";
|
|
4
|
+
import { n as analytics } from "./analytics-DZaUgJte.js";
|
|
5
|
+
import { a as isUsingTypeScript, f as getCloudUrlFromRegion, m as getUiHostFromHost, u as handleApiError } from "./setup-utils-DdAdxUTV.js";
|
|
6
|
+
import "./wizard-session-Bi95IYca.js";
|
|
7
|
+
import { g as AUDIT_REPORT_FILE, h as AUDIT_CHECKS_KEY, m as AUDIT_CHECKS_FILE, t as AgentSignals, u as WIZARD_TOOL_NAMES } from "./agent-interface-pBnqJL8P.js";
|
|
8
|
+
import { i as SPINNER_MESSAGE } from "./registry-DqbwO5EL.js";
|
|
9
|
+
import { c as HEALTH_CHECK_STEP, o as Colors, r as isClearBlock } from "./TextBlock-DJVhBkr3.js";
|
|
10
|
+
import { a as LINE_CHART_BLOCK, i as FUNNEL_BLOCK, n as posthogIntegrationConfig, o as PRODUCT_SUITE_BLOCK, s as StatusPeekTrigger } from "./posthog-integration-CukaeYil.js";
|
|
11
11
|
import { t as IGNORED_DIRS } from "./file-utils-DnTSiTJw.js";
|
|
12
12
|
import { satisfies } from "semver";
|
|
13
13
|
import yargs from "yargs";
|
|
@@ -2164,7 +2164,7 @@ const getContentBlocks = (store) => pace([
|
|
|
2164
2164
|
const REPORT_FILE = "posthog-source-maps-report.md";
|
|
2165
2165
|
const DOCS_URL = "https://posthog.com/docs/error-tracking/upload-source-maps";
|
|
2166
2166
|
const errorTrackingUploadSourceMapsConfig = {
|
|
2167
|
-
command: "upload-
|
|
2167
|
+
command: "upload-source-maps",
|
|
2168
2168
|
description: "Upload source maps to PostHog Error Tracking",
|
|
2169
2169
|
id: "error-tracking-upload-source-maps",
|
|
2170
2170
|
steps: ERROR_TRACKING_UPLOAD_SOURCE_MAPS_PROGRAM,
|
|
@@ -2221,8 +2221,28 @@ const mcpAddConfig = {
|
|
|
2221
2221
|
label: "Add MCP server",
|
|
2222
2222
|
screenId: "mcp-add",
|
|
2223
2223
|
isComplete: (s) => s.mcpComplete
|
|
2224
|
+
}, {
|
|
2225
|
+
id: "mcp-suggested-prompts",
|
|
2226
|
+
label: "Suggested prompts",
|
|
2227
|
+
screenId: "mcp-suggested-prompts",
|
|
2228
|
+
show: (s) => s.mcpOutcome === "installed",
|
|
2229
|
+
isComplete: (s) => s.mcpSuggestedPromptsDismissed
|
|
2224
2230
|
}]
|
|
2225
2231
|
};
|
|
2232
|
+
/**
|
|
2233
|
+
* `wizard mcp remove` — single-step uninstall flow.
|
|
2234
|
+
*
|
|
2235
|
+
* DO NOT append `mcp-suggested-prompts` (or any other tutorial-shaped
|
|
2236
|
+
* step) here. A user who just removed MCP is opting OUT of the agent
|
|
2237
|
+
* having access to PostHog; immediately pivoting into a tutorial that
|
|
2238
|
+
* asks them to log in and try prompts is wrong on intent and confusing
|
|
2239
|
+
* on UX. The screen also reads `session.mcpInstalledClients` for its
|
|
2240
|
+
* Choose-phase copy ("MCP is installed for X") — that array is empty
|
|
2241
|
+
* post-remove, so the copy would be a lie.
|
|
2242
|
+
*
|
|
2243
|
+
* If you want a "did you mean to keep it?" confirmation, build that as
|
|
2244
|
+
* a screen earlier in this program — don't reuse the tutorial.
|
|
2245
|
+
*/
|
|
2226
2246
|
const mcpRemoveConfig = {
|
|
2227
2247
|
id: "mcp-remove",
|
|
2228
2248
|
description: "Remove PostHog MCP server from supported clients",
|
|
@@ -2233,6 +2253,26 @@ const mcpRemoveConfig = {
|
|
|
2233
2253
|
isComplete: (s) => s.mcpComplete
|
|
2234
2254
|
}]
|
|
2235
2255
|
};
|
|
2256
|
+
/**
|
|
2257
|
+
* Standalone tutorial flow — boots directly into the Choose phase of
|
|
2258
|
+
* McpSuggestedPromptsScreen without going through MCP install first.
|
|
2259
|
+
* Useful for users who already installed MCP and want to revisit the
|
|
2260
|
+
* tutorial, or anyone who just wants to try the agent against PostHog
|
|
2261
|
+
* without touching their IDE config.
|
|
2262
|
+
*
|
|
2263
|
+
* The screen handles its own OAuth (via services.performLogin) so this
|
|
2264
|
+
* program doesn't pre-populate credentials.
|
|
2265
|
+
*/
|
|
2266
|
+
const mcpTutorialConfig = {
|
|
2267
|
+
id: "mcp-tutorial",
|
|
2268
|
+
description: "Try the PostHog MCP with your agent — no install needed",
|
|
2269
|
+
steps: [{
|
|
2270
|
+
id: "mcp-suggested-prompts",
|
|
2271
|
+
label: "MCP tutorial",
|
|
2272
|
+
screenId: "mcp-suggested-prompts",
|
|
2273
|
+
isComplete: (s) => s.mcpSuggestedPromptsDismissed
|
|
2274
|
+
}]
|
|
2275
|
+
};
|
|
2236
2276
|
//#endregion
|
|
2237
2277
|
//#region src/lib/programs/program-registry.ts
|
|
2238
2278
|
const agentSkillConfig = {
|
|
@@ -2253,7 +2293,8 @@ const PROGRAM_REGISTRY = [
|
|
|
2253
2293
|
migrationConfig,
|
|
2254
2294
|
agentSkillConfig,
|
|
2255
2295
|
mcpAddConfig,
|
|
2256
|
-
mcpRemoveConfig
|
|
2296
|
+
mcpRemoveConfig,
|
|
2297
|
+
mcpTutorialConfig
|
|
2257
2298
|
];
|
|
2258
2299
|
/**
|
|
2259
2300
|
* Typed program names. Values come from each config's `id`, so there's
|
|
@@ -2271,7 +2312,8 @@ const Program = {
|
|
|
2271
2312
|
PosthogDoctor: posthogDoctorConfig.id,
|
|
2272
2313
|
AgentSkill: agentSkillConfig.id,
|
|
2273
2314
|
McpAdd: mcpAddConfig.id,
|
|
2274
|
-
McpRemove: mcpRemoveConfig.id
|
|
2315
|
+
McpRemove: mcpRemoveConfig.id,
|
|
2316
|
+
McpTutorial: mcpTutorialConfig.id
|
|
2275
2317
|
};
|
|
2276
2318
|
/**
|
|
2277
2319
|
* Look up a program config by its id. `ProgramId` is a union of every
|
|
@@ -2460,7 +2502,7 @@ const cli = yargs(hideBin(process.argv)).env("POSTHOG_WIZARD").options({
|
|
|
2460
2502
|
setUI(new LoggingUI());
|
|
2461
2503
|
getUI().intro("PostHog Wizard");
|
|
2462
2504
|
try {
|
|
2463
|
-
const { provisionNewAccount } = await import("./provisioning-
|
|
2505
|
+
const { provisionNewAccount } = await import("./provisioning-Ch6i8dRV.js");
|
|
2464
2506
|
const signupRegion = options.region.toUpperCase();
|
|
2465
2507
|
getUI().log.info(`Provisioning new PostHog account for ${String(options.email)} in ${signupRegion}...`);
|
|
2466
2508
|
const result = await provisionNewAccount(options.email, options.name ?? "", signupRegion);
|
|
@@ -2482,11 +2524,11 @@ const cli = yargs(hideBin(process.argv)).env("POSTHOG_WIZARD").options({
|
|
|
2482
2524
|
return;
|
|
2483
2525
|
}
|
|
2484
2526
|
}
|
|
2485
|
-
const { posthogIntegrationConfig } = await import("./posthog-integration-
|
|
2486
|
-
const { FRAMEWORK_REGISTRY } = await import("./registry-
|
|
2487
|
-
const { detectFramework, gatherFrameworkContext } = await import("./detection-
|
|
2488
|
-
const { analytics } = await import("./analytics-
|
|
2489
|
-
const { wizardAbort } = await import("./wizard-abort-
|
|
2527
|
+
const { posthogIntegrationConfig } = await import("./posthog-integration-CukaeYil.js").then((n) => n.r);
|
|
2528
|
+
const { FRAMEWORK_REGISTRY } = await import("./registry-DqbwO5EL.js").then((n) => n.n);
|
|
2529
|
+
const { detectFramework, gatherFrameworkContext } = await import("./detection-4eukp9HD.js").then((n) => n.t);
|
|
2530
|
+
const { analytics } = await import("./analytics-DqeW7XYt.js");
|
|
2531
|
+
const { wizardAbort } = await import("./wizard-abort-BlYGA1Jk.js");
|
|
2490
2532
|
runWizardCI(posthogIntegrationConfig, options, async (session) => {
|
|
2491
2533
|
const integration = session.integration ?? await detectFramework(session.installDir);
|
|
2492
2534
|
if (!integration) {
|
|
@@ -2519,7 +2561,7 @@ const cli = yargs(hideBin(process.argv)).env("POSTHOG_WIZARD").options({
|
|
|
2519
2561
|
getUI().log.error("This installer requires an interactive terminal (TTY) to run.\nIt appears you are running in a non-interactive environment.\n\nNon-interactive (CI) mode is not supported in published builds.\n");
|
|
2520
2562
|
process.exit(1);
|
|
2521
2563
|
} else if (options.playground) (async () => {
|
|
2522
|
-
const { startPlayground } = await import("./start-playground-
|
|
2564
|
+
const { startPlayground } = await import("./start-playground-B40O4tye.js");
|
|
2523
2565
|
startPlayground(WIZARD_VERSION);
|
|
2524
2566
|
})();
|
|
2525
2567
|
else if (options.skill) (async () => {
|
|
@@ -2542,7 +2584,7 @@ const cli = yargs(hideBin(process.argv)).env("POSTHOG_WIZARD").options({
|
|
|
2542
2584
|
});
|
|
2543
2585
|
})();
|
|
2544
2586
|
else (async () => {
|
|
2545
|
-
const { posthogIntegrationConfig } = await import("./posthog-integration-
|
|
2587
|
+
const { posthogIntegrationConfig } = await import("./posthog-integration-CukaeYil.js").then((n) => n.r);
|
|
2546
2588
|
runWizard(posthogIntegrationConfig, options);
|
|
2547
2589
|
})();
|
|
2548
2590
|
}).command("mcp <command>", "MCP server management commands", (yargs) => {
|
|
@@ -2566,11 +2608,11 @@ const cli = yargs(hideBin(process.argv)).env("POSTHOG_WIZARD").options({
|
|
|
2566
2608
|
const options = { ...argv };
|
|
2567
2609
|
const mcpFeatures = options.features?.split(",").map((s) => s.trim()).filter(Boolean);
|
|
2568
2610
|
(async () => {
|
|
2569
|
-
const { readApiKeyFromEnv } = await import("./env-api-key-
|
|
2611
|
+
const { readApiKeyFromEnv } = await import("./env-api-key-DU8uIEvo.js");
|
|
2570
2612
|
const apiKey = options.apiKey || readApiKeyFromEnv();
|
|
2571
2613
|
try {
|
|
2572
|
-
const { startTUI } = await import("./start-tui-
|
|
2573
|
-
const { buildSession } = await import("./wizard-session-
|
|
2614
|
+
const { startTUI } = await import("./start-tui-CH_ZzQXx.js");
|
|
2615
|
+
const { buildSession } = await import("./wizard-session-DPGTaJ4W.js");
|
|
2574
2616
|
const tui = startTUI(WIZARD_VERSION, Program.McpAdd);
|
|
2575
2617
|
const session = buildSession({
|
|
2576
2618
|
debug: options.debug,
|
|
@@ -2581,7 +2623,7 @@ const cli = yargs(hideBin(process.argv)).env("POSTHOG_WIZARD").options({
|
|
|
2581
2623
|
tui.store.session = session;
|
|
2582
2624
|
} catch {
|
|
2583
2625
|
setUI(new LoggingUI());
|
|
2584
|
-
const { addMCPServerToClientsStep } = await import("./add-mcp-server-to-clients-
|
|
2626
|
+
const { addMCPServerToClientsStep } = await import("./add-mcp-server-to-clients-9jQjc-CO.js").then((n) => n.r);
|
|
2585
2627
|
await addMCPServerToClientsStep({
|
|
2586
2628
|
local: options.local,
|
|
2587
2629
|
features: mcpFeatures,
|
|
@@ -2599,8 +2641,8 @@ const cli = yargs(hideBin(process.argv)).env("POSTHOG_WIZARD").options({
|
|
|
2599
2641
|
const options = { ...argv };
|
|
2600
2642
|
(async () => {
|
|
2601
2643
|
try {
|
|
2602
|
-
const { startTUI } = await import("./start-tui-
|
|
2603
|
-
const { buildSession } = await import("./wizard-session-
|
|
2644
|
+
const { startTUI } = await import("./start-tui-CH_ZzQXx.js");
|
|
2645
|
+
const { buildSession } = await import("./wizard-session-DPGTaJ4W.js");
|
|
2604
2646
|
const tui = startTUI(WIZARD_VERSION, Program.McpRemove);
|
|
2605
2647
|
const session = buildSession({
|
|
2606
2648
|
debug: options.debug,
|
|
@@ -2609,11 +2651,35 @@ const cli = yargs(hideBin(process.argv)).env("POSTHOG_WIZARD").options({
|
|
|
2609
2651
|
tui.store.session = session;
|
|
2610
2652
|
} catch {
|
|
2611
2653
|
setUI(new LoggingUI());
|
|
2612
|
-
const { removeMCPServerFromClientsStep } = await import("./add-mcp-server-to-clients-
|
|
2654
|
+
const { removeMCPServerFromClientsStep } = await import("./add-mcp-server-to-clients-9jQjc-CO.js").then((n) => n.r);
|
|
2613
2655
|
await removeMCPServerFromClientsStep({ local: options.local });
|
|
2614
2656
|
}
|
|
2615
2657
|
})();
|
|
2616
|
-
}).
|
|
2658
|
+
}).command("tutorial", "Try the PostHog MCP with your agent (no install needed)", (yargs) => {
|
|
2659
|
+
return yargs.options({ local: {
|
|
2660
|
+
default: false,
|
|
2661
|
+
describe: "Point the tutorial at the local MCP server (http://localhost:8787)",
|
|
2662
|
+
type: "boolean"
|
|
2663
|
+
} });
|
|
2664
|
+
}, (argv) => {
|
|
2665
|
+
const options = { ...argv };
|
|
2666
|
+
(async () => {
|
|
2667
|
+
try {
|
|
2668
|
+
const { startTUI } = await import("./start-tui-CH_ZzQXx.js");
|
|
2669
|
+
const { buildSession } = await import("./wizard-session-DPGTaJ4W.js");
|
|
2670
|
+
const tui = startTUI(WIZARD_VERSION, Program.McpTutorial);
|
|
2671
|
+
const session = buildSession({
|
|
2672
|
+
debug: options.debug,
|
|
2673
|
+
localMcp: options.local
|
|
2674
|
+
});
|
|
2675
|
+
tui.store.session = session;
|
|
2676
|
+
} catch (err) {
|
|
2677
|
+
setUI(new LoggingUI());
|
|
2678
|
+
getUI().log.error(`The MCP tutorial requires an interactive terminal. ${err instanceof Error ? err.message : String(err)}`);
|
|
2679
|
+
process.exit(1);
|
|
2680
|
+
}
|
|
2681
|
+
})();
|
|
2682
|
+
}).demandCommand(1, "You must specify a subcommand (add, remove, or tutorial)").help();
|
|
2617
2683
|
});
|
|
2618
2684
|
cli.command("provision", "Create a new PostHog account (headless, no TUI)", (yargs) => {
|
|
2619
2685
|
return yargs.options({
|
|
@@ -2645,7 +2711,7 @@ cli.command("provision", "Create a new PostHog account (headless, no TUI)", (yar
|
|
|
2645
2711
|
if (!jsonMode) setUI(new LoggingUI());
|
|
2646
2712
|
(async () => {
|
|
2647
2713
|
try {
|
|
2648
|
-
const { provisionNewAccount } = await import("./provisioning-
|
|
2714
|
+
const { provisionNewAccount } = await import("./provisioning-Ch6i8dRV.js");
|
|
2649
2715
|
if (!jsonMode) getUI().log.info(`Provisioning account for ${email} in ${region}...`);
|
|
2650
2716
|
const result = await provisionNewAccount(email, name, region);
|
|
2651
2717
|
if (jsonMode) process.stdout.write(`${JSON.stringify(result)}\n`);
|
|
@@ -2727,11 +2793,11 @@ function runWizard(config, options) {
|
|
|
2727
2793
|
(async () => {
|
|
2728
2794
|
try {
|
|
2729
2795
|
const installDir = options.installDir || process.cwd();
|
|
2730
|
-
const { startTUI } = await import("./start-tui-
|
|
2731
|
-
const { buildSession, RunPhase } = await import("./wizard-session-
|
|
2732
|
-
const { TaskStreamPush } = await import("./task-stream-
|
|
2733
|
-
const { PostHogDestination } = await import("./posthog-
|
|
2734
|
-
const { logToFile } = await import("./debug-
|
|
2796
|
+
const { startTUI } = await import("./start-tui-CH_ZzQXx.js");
|
|
2797
|
+
const { buildSession, RunPhase } = await import("./wizard-session-DPGTaJ4W.js");
|
|
2798
|
+
const { TaskStreamPush } = await import("./task-stream-CoEsidgG.js");
|
|
2799
|
+
const { PostHogDestination } = await import("./posthog-7B92c2Ed.js");
|
|
2800
|
+
const { logToFile } = await import("./debug-B6rX6xye.js");
|
|
2735
2801
|
tui = startTUI(WIZARD_VERSION, config.id);
|
|
2736
2802
|
const activeTui = tui;
|
|
2737
2803
|
const session = buildSession({
|
|
@@ -2785,7 +2851,7 @@ function runWizard(config, options) {
|
|
|
2785
2851
|
await activeTui.store.getGate("health-check");
|
|
2786
2852
|
const skipAgent = config.run == null;
|
|
2787
2853
|
if (skipAgent) {
|
|
2788
|
-
const { getOrAskForProjectData } = await import("./setup-utils-
|
|
2854
|
+
const { getOrAskForProjectData } = await import("./setup-utils-C5uZ9g60.js");
|
|
2789
2855
|
const { projectApiKey, host, accessToken, projectId } = await getOrAskForProjectData({
|
|
2790
2856
|
signup: session.signup,
|
|
2791
2857
|
ci: session.ci,
|
|
@@ -2799,7 +2865,7 @@ function runWizard(config, options) {
|
|
|
2799
2865
|
projectId
|
|
2800
2866
|
});
|
|
2801
2867
|
} else {
|
|
2802
|
-
const { runAgent } = await import("./agent-runner-
|
|
2868
|
+
const { runAgent } = await import("./agent-runner-H1FP6XTc.js");
|
|
2803
2869
|
await runAgent(config, activeTui.store.session);
|
|
2804
2870
|
}
|
|
2805
2871
|
const isDone = () => skipAgent ? activeTui.store.session.outroDismissed : activeTui.store.session.skillsComplete;
|
|
@@ -2861,11 +2927,11 @@ function runWizardCI(config, options, preRun) {
|
|
|
2861
2927
|
}
|
|
2862
2928
|
(async () => {
|
|
2863
2929
|
const path = await import("path");
|
|
2864
|
-
const { buildSession } = await import("./wizard-session-
|
|
2930
|
+
const { buildSession } = await import("./wizard-session-DPGTaJ4W.js");
|
|
2865
2931
|
const { readEnvironment } = await Promise.resolve().then(() => environment_exports);
|
|
2866
|
-
const { readApiKeyFromEnv } = await import("./env-api-key-
|
|
2867
|
-
const { configureLogFileFromEnvironment, logToFile } = await import("./debug-
|
|
2868
|
-
const { wizardAbort, WizardError } = await import("./wizard-abort-
|
|
2932
|
+
const { readApiKeyFromEnv } = await import("./env-api-key-DU8uIEvo.js");
|
|
2933
|
+
const { configureLogFileFromEnvironment, logToFile } = await import("./debug-B6rX6xye.js");
|
|
2934
|
+
const { wizardAbort, WizardError } = await import("./wizard-abort-BlYGA1Jk.js");
|
|
2869
2935
|
configureLogFileFromEnvironment();
|
|
2870
2936
|
const env = readEnvironment();
|
|
2871
2937
|
const apiKey = options.apiKey ?? readApiKeyFromEnv() ?? void 0;
|
|
@@ -2916,7 +2982,7 @@ function runWizardCI(config, options, preRun) {
|
|
|
2916
2982
|
})
|
|
2917
2983
|
});
|
|
2918
2984
|
}
|
|
2919
|
-
const { runAgent } = await import("./agent-runner-
|
|
2985
|
+
const { runAgent } = await import("./agent-runner-H1FP6XTc.js");
|
|
2920
2986
|
await runAgent(config, session);
|
|
2921
2987
|
} catch (error) {
|
|
2922
2988
|
const errorMessage = error instanceof Error ? error.message : String(error);
|