@posthog/wizard 2.64.1 → 2.65.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.
Files changed (114) hide show
  1. package/README.md +7 -2
  2. package/dist/{add-mcp-server-to-clients-BUqb93_I.js → add-mcp-server-to-clients-ArtlMX9-.js} +5 -5
  3. package/dist/{add-mcp-server-to-clients-BUqb93_I.js.map → add-mcp-server-to-clients-ArtlMX9-.js.map} +1 -1
  4. package/dist/{agent-interface-NurnwA01.js → agent-interface-ORzGEFNM.js} +76 -11
  5. package/dist/agent-interface-ORzGEFNM.js.map +1 -0
  6. package/dist/{agent-prompt-loader-CbowPuWI.js → agent-prompt-loader-D3w6sc34.js} +10 -5
  7. package/dist/agent-prompt-loader-D3w6sc34.js.map +1 -0
  8. package/dist/{agent-runner-DisJWxJa.js → agent-runner-Ca-e2TOQ.js} +25 -18
  9. package/dist/{agent-runner-DisJWxJa.js.map → agent-runner-Ca-e2TOQ.js.map} +1 -1
  10. package/dist/analytics-C4j6grao.js +2 -0
  11. package/dist/{analytics-D3vKvr3l.js → analytics-zBrIVjMV.js} +2 -2
  12. package/dist/{analytics-D3vKvr3l.js.map → analytics-zBrIVjMV.js.map} +1 -1
  13. package/dist/{api-Bhe8jpUR.js → api-Wgb7AhrP.js} +3 -3
  14. package/dist/{api-Bhe8jpUR.js.map → api-Wgb7AhrP.js.map} +1 -1
  15. package/dist/bin.js +200 -76
  16. package/dist/bin.js.map +1 -1
  17. package/dist/{bounded-fs-BeWc675I.js → bounded-fs-DqsVmh4r.js} +3 -3
  18. package/dist/{bounded-fs-BeWc675I.js.map → bounded-fs-DqsVmh4r.js.map} +1 -1
  19. package/dist/{ci-install-BpNzfghY.js → ci-install-D1QqmJIc.js} +4 -4
  20. package/dist/{ci-install-BpNzfghY.js.map → ci-install-D1QqmJIc.js.map} +1 -1
  21. package/dist/{debug-hy6aWAyk.js → debug-Cm1hvkVy.js} +14 -9
  22. package/dist/debug-Cm1hvkVy.js.map +1 -0
  23. package/dist/{debug-DGfRPr2A.js → debug-CtQ13sCW.js} +1 -1
  24. package/dist/{defaults-mrAre0xM.js → defaults-BHhXrX9F.js} +1 -1
  25. package/dist/{defaults-mrAre0xM.js.map → defaults-BHhXrX9F.js.map} +1 -1
  26. package/dist/{env-api-key-CMPe-WJp.js → env-api-key-CdI2XZIz.js} +2 -2
  27. package/dist/{env-api-key-CMPe-WJp.js.map → env-api-key-CdI2XZIz.js.map} +1 -1
  28. package/dist/{environment-Ktu0Ktjl.js → environment-BhFvfkQg.js} +4 -4
  29. package/dist/{environment-Ktu0Ktjl.js.map → environment-BhFvfkQg.js.map} +1 -1
  30. package/dist/{file-watcher-CqJ1dgjq.js → file-watcher-Dciz09Rr.js} +2 -2
  31. package/dist/{file-watcher-CqJ1dgjq.js.map → file-watcher-Dciz09Rr.js.map} +1 -1
  32. package/dist/{headless-ui-zZLgs4QL.js → headless-ui-B4FnKm11.js} +2 -2
  33. package/dist/{headless-ui-zZLgs4QL.js.map → headless-ui-B4FnKm11.js.map} +1 -1
  34. package/dist/{interactive-BUw1SEOz.js → interactive-DxHFVYr2.js} +2 -2
  35. package/dist/{interactive-BUw1SEOz.js.map → interactive-DxHFVYr2.js.map} +1 -1
  36. package/dist/local-dev-BN6NKQ0B.js +135 -0
  37. package/dist/local-dev-BN6NKQ0B.js.map +1 -0
  38. package/dist/{mcp-prompt-streaming-CKyqqB10.js → mcp-prompt-streaming-ro98iUDc.js} +20 -4
  39. package/dist/mcp-prompt-streaming-ro98iUDc.js.map +1 -0
  40. package/dist/{mcp-C7NMhhWa.js → mcp-t0UxAPur.js} +2 -2
  41. package/dist/{mcp-C7NMhhWa.js.map → mcp-t0UxAPur.js.map} +1 -1
  42. package/dist/{non-interactive-73xGtug6.js → non-interactive-BA2L_jDT.js} +2 -2
  43. package/dist/{non-interactive-73xGtug6.js.map → non-interactive-BA2L_jDT.js.map} +1 -1
  44. package/dist/{orchestrator-tools-DcMJzfDH.js → orchestrator-tools-vZmNsHy9.js} +3 -3
  45. package/dist/{orchestrator-tools-DcMJzfDH.js.map → orchestrator-tools-vZmNsHy9.js.map} +1 -1
  46. package/dist/{package-json-CDs1ZVKu.js → package-json-D0DCWpe5.js} +1 -1
  47. package/dist/{package-json-CDs1ZVKu.js.map → package-json-D0DCWpe5.js.map} +1 -1
  48. package/dist/{package-manager-KweKX3u_.js → package-manager-DgqJdAQk.js} +58 -3
  49. package/dist/package-manager-DgqJdAQk.js.map +1 -0
  50. package/dist/{pi-B4p4gpr0.js → pi-nwrCARRp.js} +11 -11
  51. package/dist/{pi-B4p4gpr0.js.map → pi-nwrCARRp.js.map} +1 -1
  52. package/dist/{playground-AEkWcB1E.js → playground-xkEke_h0.js} +7 -7
  53. package/dist/{playground-AEkWcB1E.js.map → playground-xkEke_h0.js.map} +1 -1
  54. package/dist/{posthog-4PljLcIz.js → posthog-9To56cSd.js} +2 -2
  55. package/dist/{posthog-4PljLcIz.js.map → posthog-9To56cSd.js.map} +1 -1
  56. package/dist/{posthog-integration-DKlEg8-Q.js → posthog-integration-CoPvN6YZ.js} +34 -29
  57. package/dist/posthog-integration-CoPvN6YZ.js.map +1 -0
  58. package/dist/{provisioning-QsG7HDCm.js → provisioning-BYFSHSHY.js} +3 -3
  59. package/dist/{provisioning-QsG7HDCm.js.map → provisioning-BYFSHSHY.js.map} +1 -1
  60. package/dist/{queue-tools-Jlz9dV_B.js → queue-tools-BREbgGSC.js} +3 -3
  61. package/dist/{queue-tools-Jlz9dV_B.js.map → queue-tools-BREbgGSC.js.map} +1 -1
  62. package/dist/{registry-PG_nV5Bf.js → registry-DGJQ_8QI.js} +309 -6
  63. package/dist/registry-DGJQ_8QI.js.map +1 -0
  64. package/dist/{security-BKUJk-Gg.js → security-wc-naGq5.js} +5 -5
  65. package/dist/{security-BKUJk-Gg.js.map → security-wc-naGq5.js.map} +1 -1
  66. package/dist/{setup-utils-DNpldqge.js → setup-utils-Cz0wPLsQ.js} +18 -13
  67. package/dist/setup-utils-Cz0wPLsQ.js.map +1 -0
  68. package/dist/smoke-test-ci.sh +12 -1
  69. package/dist/{start-tui-D4B0-2nr.js → start-tui-DDW9uVnD.js} +114 -25
  70. package/dist/start-tui-DDW9uVnD.js.map +1 -0
  71. package/dist/{steps-Dy0AXdGo.js → steps-CZI0B24_.js} +7 -7
  72. package/dist/{steps-Dy0AXdGo.js.map → steps-CZI0B24_.js.map} +1 -1
  73. package/dist/{store-DouLLelV.js → store-xMkU8xAa.js} +20 -6
  74. package/dist/store-xMkU8xAa.js.map +1 -0
  75. package/dist/{subagent-B4yVs5A2.js → subagent-BztacyoV.js} +2 -2
  76. package/dist/{subagent-B4yVs5A2.js.map → subagent-BztacyoV.js.map} +1 -1
  77. package/dist/{task-DRKYEbKM.js → task-CJ7x3McC.js} +29 -18
  78. package/dist/task-CJ7x3McC.js.map +1 -0
  79. package/dist/{task-stream-BGUP7yA-.js → task-stream-BK7JQ27G.js} +5 -5
  80. package/dist/{task-stream-BGUP7yA-.js.map → task-stream-BK7JQ27G.js.map} +1 -1
  81. package/dist/{tasks-B2GzXsZ0.js → tasks-FGzp_zBd.js} +2 -2
  82. package/dist/{tasks-B2GzXsZ0.js.map → tasks-FGzp_zBd.js.map} +1 -1
  83. package/dist/{telemetry-6zaFfCcy.js → telemetry-By56gAtF.js} +3 -3
  84. package/dist/{telemetry-6zaFfCcy.js.map → telemetry-By56gAtF.js.map} +1 -1
  85. package/dist/{terminal-Bu3eHFn0.js → terminal-C_rmkaku.js} +39 -31
  86. package/dist/terminal-C_rmkaku.js.map +1 -0
  87. package/dist/{tools-DQO5tKJg.js → tools-BpCJgMez.js} +7 -7
  88. package/dist/tools-BpCJgMez.js.map +1 -0
  89. package/dist/{wizard-abort-PgTdRS1l.js → wizard-abort-BlDla_Jd.js} +1 -1
  90. package/dist/{wizard-abort-D6jJh8u5.js → wizard-abort-CzwID162.js} +4 -4
  91. package/dist/{wizard-abort-D6jJh8u5.js.map → wizard-abort-CzwID162.js.map} +1 -1
  92. package/dist/{wizard-session-BUhlJ1b8.js → wizard-session-Bn6dO1gE.js} +16 -3
  93. package/dist/wizard-session-Bn6dO1gE.js.map +1 -0
  94. package/dist/{wizard-session-DZUDtS5d.js → wizard-session-UxA_A0cA.js} +1 -1
  95. package/dist/{yara-hooks-DjReXmTQ.js → yara-hooks-BrisBebM.js} +4 -4
  96. package/dist/{yara-hooks-DjReXmTQ.js.map → yara-hooks-BrisBebM.js.map} +1 -1
  97. package/dist/yara-hooks-D2B7Fd9G.js +2 -0
  98. package/package.json +1 -1
  99. package/dist/agent-interface-NurnwA01.js.map +0 -1
  100. package/dist/agent-prompt-loader-CbowPuWI.js.map +0 -1
  101. package/dist/analytics-hNca7GLq.js +0 -2
  102. package/dist/debug-hy6aWAyk.js.map +0 -1
  103. package/dist/mcp-prompt-streaming-CKyqqB10.js.map +0 -1
  104. package/dist/package-manager-KweKX3u_.js.map +0 -1
  105. package/dist/posthog-integration-DKlEg8-Q.js.map +0 -1
  106. package/dist/registry-PG_nV5Bf.js.map +0 -1
  107. package/dist/setup-utils-DNpldqge.js.map +0 -1
  108. package/dist/start-tui-D4B0-2nr.js.map +0 -1
  109. package/dist/store-DouLLelV.js.map +0 -1
  110. package/dist/task-DRKYEbKM.js.map +0 -1
  111. package/dist/terminal-Bu3eHFn0.js.map +0 -1
  112. package/dist/tools-DQO5tKJg.js.map +0 -1
  113. package/dist/wizard-session-BUhlJ1b8.js.map +0 -1
  114. package/dist/yara-hooks-CN_uFGCu.js +0 -2
@@ -1,21 +1,21 @@
1
- import { $ as REMOTE_SKILLS_BASE_URL, K as POSTHOG_ORG_AI_SETTINGS_URL, L as Integration, R as OAUTH_PORTS, U as POSTHOG_DOCS_URL, Z as POSTHOG_TERMS_URL, d as relativeToInstallDir, g as SIGNUP_WIZARD_READINESS_CONFIG, l as WIZARD_LOG_FILE, p as setUI, q as POSTHOG_PRIVACY_URL, s as logToFile, v as getBlockingServiceKeys, z as OAUTH_TIMEOUT_MS } from "./debug-hy6aWAyk.js";
2
- import { n as analytics } from "./analytics-D3vKvr3l.js";
3
- import { i as readProjectFile, t as IGNORED_DIRS } from "./bounded-fs-BeWc675I.js";
4
- import { o as extractOAuthCode, t as getOrAskForProjectData } from "./setup-utils-DNpldqge.js";
5
- import { t as ApiError } from "./api-Bhe8jpUR.js";
6
- import { t as ADDITIONAL_FEATURE_LABELS } from "./wizard-session-BUhlJ1b8.js";
7
- import { i as wizardAbort } from "./wizard-abort-D6jJh8u5.js";
8
- import { a as formatCostUsd, o as formatTokenCount } from "./agent-runner-DisJWxJa.js";
9
- import { C as downloadSkill, T as fetchSkillMenu } from "./agent-interface-NurnwA01.js";
10
- import { _ as AUDIT_CHECKS_KEY, b as coerceAuditChecks, g as AUDIT_CHECKS_FILE, x as getAuditChecks, y as AUDIT_SEVERITY_STYLE } from "./yara-hooks-DjReXmTQ.js";
11
- import { t as FRAMEWORK_REGISTRY } from "./registry-PG_nV5Bf.js";
12
- import { b as getDetectedWarehouseSources, h as Icons, m as Colors, t as SETUP_REPORT_FILE, w as detectProjectsWithAgent } from "./posthog-integration-DKlEg8-Q.js";
1
+ import { $ as REMOTE_SKILLS_BASE_URL, K as POSTHOG_ORG_AI_SETTINGS_URL, L as Integration, R as OAUTH_PORTS, U as POSTHOG_DOCS_URL, Z as POSTHOG_TERMS_URL, d as relativeToInstallDir, g as SIGNUP_WIZARD_READINESS_CONFIG, l as WIZARD_LOG_FILE, p as setUI, q as POSTHOG_PRIVACY_URL, s as logToFile, v as getBlockingServiceKeys, z as OAUTH_TIMEOUT_MS } from "./debug-Cm1hvkVy.js";
2
+ import { n as analytics } from "./analytics-zBrIVjMV.js";
3
+ import { i as readProjectFile, t as IGNORED_DIRS } from "./bounded-fs-DqsVmh4r.js";
4
+ import { o as extractOAuthCode, t as getOrAskForProjectData } from "./setup-utils-Cz0wPLsQ.js";
5
+ import { t as ApiError } from "./api-Wgb7AhrP.js";
6
+ import { t as ADDITIONAL_FEATURE_LABELS } from "./wizard-session-Bn6dO1gE.js";
7
+ import { i as wizardAbort } from "./wizard-abort-CzwID162.js";
8
+ import { a as formatCostUsd, o as formatTokenCount } from "./agent-runner-Ca-e2TOQ.js";
9
+ import { E as fetchSkillMenu, w as downloadSkill } from "./agent-interface-ORzGEFNM.js";
10
+ import { _ as AUDIT_CHECKS_KEY, b as coerceAuditChecks, g as AUDIT_CHECKS_FILE, x as getAuditChecks, y as AUDIT_SEVERITY_STYLE } from "./yara-hooks-BrisBebM.js";
11
+ import { t as FRAMEWORK_REGISTRY } from "./registry-DGJQ_8QI.js";
12
+ import { b as getDetectedWarehouseSources, h as Icons, m as Colors, t as SETUP_REPORT_FILE, w as detectProjectsWithAgent } from "./posthog-integration-CoPvN6YZ.js";
13
13
  import { A as STRIPE_SDKS, C as MANUAL_SDK_VARIANTS, D as fetchHealthIssues, O as getContentBlocks, S as MANUAL_SDK_INSTALL, T as SOURCE_MAPS_CONTEXT_KEYS, _ as detectSelfDrivingIntegrationProjects, a as useStdoutDimensions, b as DISPLAY_NAME, f as Program, g as PRICING_SHORT, h as PRICING_LONG, k as POSTHOG_SDKS, m as NO_DEFAULT_LIMIT, n as useKeyBindings, p as getProgramConfig, t as PickerMenu, v as SELF_DRIVING_INTEGRATE_PATH_KEY, y as AUTOMATABLE_VARIANTS } from "./bin.js";
14
- import { r as totalTokenCount, t as WizardStore } from "./store-DouLLelV.js";
15
- import { A as EventPlanViewer, C as VisualizerTab, D as HNViewer, F as ConfirmationInput, L as ProgressList, M as LinkText, N as extractUrls, O as TabContainer, P as ModalOverlay, R as LoadingBox, S as ServiceHealthList, T as LearnCard, a as useSkillEntry, b as SEVERITY_LABEL, c as SlackConnectScreen, d as AuditChecksViewer, f as seedDemoEvents, g as probeProjectData, i as SkillSourceInfo, j as LogViewer, k as ScreenContainer, l as AUDIT_AREA_SLIDES, m as McpSuggestedPromptsScreen, n as releaseTerminal, o as OutroScreen, r as AiOptInRequiredScreen, s as useDismissOnAnyKey, t as enterDarkTerminal, u as VisualBox, v as McpScreen, w as TipsCard, x as SEVERITY_ORDER, y as IssueTable, z as SplitView } from "./terminal-Bu3eHFn0.js";
16
- import { c as namesWithStatus, d as toClientResult, l as redactSecrets, t as ALL_FEATURE_VALUES } from "./defaults-mrAre0xM.js";
17
- import { t as startFileWatcher } from "./file-watcher-CqJ1dgjq.js";
18
- import { a as getSupportedClients, c as removeMCPServer, i as getInstalledClients, o as getSupportedPluginClients, s as installPlugins, u as isPluginCapable } from "./add-mcp-server-to-clients-BUqb93_I.js";
14
+ import { r as totalTokenCount, t as WizardStore } from "./store-xMkU8xAa.js";
15
+ import { A as EventPlanViewer, C as VisualizerTab, D as HNViewer, F as ConfirmationInput, L as ProgressList, M as LinkText, N as extractUrls, O as TabContainer, P as ModalOverlay, R as LoadingBox, S as ServiceHealthList, T as LearnCard, a as useSkillEntry, b as SEVERITY_LABEL, c as SlackConnectScreen, d as AuditChecksViewer, f as seedDemoEvents, g as probeProjectData, i as SkillSourceInfo, j as LogViewer, k as ScreenContainer, l as AUDIT_AREA_SLIDES, m as McpSuggestedPromptsScreen, n as releaseTerminal, o as OutroScreen, r as AiOptInRequiredScreen, s as useDismissOnAnyKey, t as enterDarkTerminal, u as VisualBox, v as McpScreen, w as TipsCard, x as SEVERITY_ORDER, y as IssueTable, z as SplitView } from "./terminal-C_rmkaku.js";
16
+ import { c as namesWithStatus, d as toClientResult, l as redactSecrets, t as ALL_FEATURE_VALUES } from "./defaults-BHhXrX9F.js";
17
+ import { t as startFileWatcher } from "./file-watcher-Dciz09Rr.js";
18
+ import { a as getSupportedClients, c as removeMCPServer, i as getInstalledClients, o as getSupportedPluginClients, s as installPlugins, u as isPluginCapable } from "./add-mcp-server-to-clients-ArtlMX9-.js";
19
19
  import { existsSync, readFileSync, readdirSync } from "fs";
20
20
  import path, { join } from "path";
21
21
  import { join as join$1 } from "node:path";
@@ -1134,7 +1134,7 @@ const FrameworkPicker = ({ store, onComplete }) => {
1134
1134
  })),
1135
1135
  onSelect: (value) => {
1136
1136
  const integration = Array.isArray(value) ? value[0] : value;
1137
- import("./registry-PG_nV5Bf.js").then((n) => n.n).then(({ FRAMEWORK_REGISTRY }) => {
1137
+ import("./registry-DGJQ_8QI.js").then((n) => n.n).then(({ FRAMEWORK_REGISTRY }) => {
1138
1138
  const config = FRAMEWORK_REGISTRY[integration];
1139
1139
  store.setFrameworkConfig(integration, config);
1140
1140
  store.setDetectedFramework(config.metadata.name);
@@ -1151,7 +1151,7 @@ const PostHogIntegrationIntroScreen = ({ store }) => {
1151
1151
  const { session } = store;
1152
1152
  const config = session.frameworkConfig;
1153
1153
  const frameworkLabel = session.detectedFrameworkLabel ?? config?.metadata.name;
1154
- const { skillEntry, fetchFailed } = useSkillEntry(session.skillId, session.localMcp);
1154
+ const { skillEntry, fetchFailed } = useSkillEntry(session.skillId);
1155
1155
  const detecting = !session.detectionComplete;
1156
1156
  const needsFrameworkPick = session.detectionComplete && !session.frameworkConfig;
1157
1157
  const unsupported = session.unsupportedVersion;
@@ -2132,6 +2132,7 @@ function toSourceMapsReport(report, probes) {
2132
2132
  async function detectSourceMapsProjects(session, onEvent) {
2133
2133
  return toSourceMapsReport(await detectProjectsWithAgent(session, {
2134
2134
  targets: SOURCE_MAPS_TARGETS,
2135
+ programId: "error-tracking-upload-source-maps",
2135
2136
  purpose: "set up PostHog Error Tracking source-map upload",
2136
2137
  rerankIds: JS_RERANK_VARIANTS,
2137
2138
  onEvent
@@ -2537,7 +2538,7 @@ const AgentSkillIntroScreen = ({ store }) => {
2537
2538
  const [showingMoreInfo, setShowingMoreInfo] = useState(false);
2538
2539
  const { session } = store;
2539
2540
  const skillId = session.skillId ?? "unknown";
2540
- const { skillEntry, fetchFailed } = useSkillEntry(skillId, session.localMcp);
2541
+ const { skillEntry, fetchFailed } = useSkillEntry(skillId);
2541
2542
  let body;
2542
2543
  if (showingMoreInfo) body = /* @__PURE__ */ jsxs(Box, {
2543
2544
  flexDirection: "column",
@@ -2618,7 +2619,7 @@ const AiObservabilityIntroScreen = ({ store }) => {
2618
2619
  const [showingMoreInfo, setShowingMoreInfo] = useState(false);
2619
2620
  const { session } = store;
2620
2621
  const skillId = session.skillId ?? "ai-observability";
2621
- const { skillEntry, fetchFailed } = useSkillEntry(skillId, session.localMcp);
2622
+ const { skillEntry, fetchFailed } = useSkillEntry(skillId);
2622
2623
  const body = showingMoreInfo ? /* @__PURE__ */ jsxs(Box, {
2623
2624
  flexDirection: "column",
2624
2625
  width: 56,
@@ -2689,6 +2690,89 @@ const AiObservabilityIntroScreen = ({ store }) => {
2689
2690
  });
2690
2691
  };
2691
2692
  //#endregion
2693
+ //#region src/ui/tui/screens/MetricsIntroScreen.tsx
2694
+ const MetricsIntroScreen = ({ store }) => {
2695
+ useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
2696
+ const [showingMoreInfo, setShowingMoreInfo] = useState(false);
2697
+ const { session } = store;
2698
+ const skillId = session.skillId ?? "metrics";
2699
+ const { skillEntry, fetchFailed } = useSkillEntry(skillId, session.localMcp);
2700
+ const body = showingMoreInfo ? /* @__PURE__ */ jsxs(Box, {
2701
+ flexDirection: "column",
2702
+ width: 56,
2703
+ children: [
2704
+ /* @__PURE__ */ jsx(Box, {
2705
+ marginBottom: 1,
2706
+ children: /* @__PURE__ */ jsxs(Text, { children: ["The wizard is an agent that executes PostHog tasks. Its code is open source: ", /* @__PURE__ */ jsx(Text, {
2707
+ color: "cyan",
2708
+ children: "https://github.com/PostHog/wizard"
2709
+ })] })
2710
+ }),
2711
+ /* @__PURE__ */ jsxs(Text, { children: [
2712
+ "The",
2713
+ " ",
2714
+ /* @__PURE__ */ jsx(Text, {
2715
+ color: "cyan",
2716
+ italic: true,
2717
+ children: "metrics"
2718
+ }),
2719
+ " ",
2720
+ "program instruments your service with PostHog application metrics — counters, gauges, and histograms via",
2721
+ " ",
2722
+ /* @__PURE__ */ jsx(Text, {
2723
+ color: "cyan",
2724
+ children: "posthog.metrics"
2725
+ }),
2726
+ " — at operational choke points: request middleware, background jobs, external calls, and business commit sites. Supports Python, Node.js, web JavaScript, Kubernetes, and any other language via OTLP."
2727
+ ] }),
2728
+ /* @__PURE__ */ jsx(Box, {
2729
+ marginTop: 1,
2730
+ children: /* @__PURE__ */ jsx(SkillSourceInfo, {
2731
+ skillId,
2732
+ skillEntry,
2733
+ fetchFailed
2734
+ })
2735
+ })
2736
+ ]
2737
+ }) : /* @__PURE__ */ jsx(Box, {
2738
+ flexDirection: "column",
2739
+ alignItems: "center",
2740
+ children: /* @__PURE__ */ jsx(Text, { children: "Let's instrument your service with PostHog application metrics." })
2741
+ });
2742
+ const menuOptions = showingMoreInfo ? [{
2743
+ label: "Back",
2744
+ value: "back"
2745
+ }] : [
2746
+ {
2747
+ label: "Continue",
2748
+ value: "continue"
2749
+ },
2750
+ {
2751
+ label: "More info",
2752
+ value: "more-info"
2753
+ },
2754
+ {
2755
+ label: "Cancel",
2756
+ value: "cancel"
2757
+ }
2758
+ ];
2759
+ const handleSelect = (value) => {
2760
+ if (value === "cancel") process.exit(0);
2761
+ else if (value === "more-info") setShowingMoreInfo(true);
2762
+ else if (value === "back") setShowingMoreInfo(false);
2763
+ else store.completeSetup();
2764
+ };
2765
+ return /* @__PURE__ */ jsx(IntroScreenLayout, {
2766
+ installDir: session.installDir,
2767
+ body,
2768
+ showDetection: !showingMoreInfo,
2769
+ programLabel: session.programLabel,
2770
+ skillId: session.skillId,
2771
+ menuOptions,
2772
+ onSelect: handleSelect
2773
+ });
2774
+ };
2775
+ //#endregion
2692
2776
  //#region src/ui/tui/screens/SelfDrivingIntroScreen.tsx
2693
2777
  /**
2694
2778
  * SelfDrivingIntroScreen — Welcome screen for the self-driving flow.
@@ -3483,7 +3567,7 @@ const AuditIntroScreen = ({ store }) => {
3483
3567
  const [showingMoreInfo, setShowingMoreInfo] = useState(false);
3484
3568
  const { session } = store;
3485
3569
  const skillId = session.skillId ?? "audit";
3486
- const { skillEntry, fetchFailed } = useSkillEntry(skillId, session.localMcp);
3570
+ const { skillEntry, fetchFailed } = useSkillEntry(skillId);
3487
3571
  const body = showingMoreInfo ? /* @__PURE__ */ jsxs(Box, {
3488
3572
  flexDirection: "column",
3489
3573
  width: 56,
@@ -5518,7 +5602,11 @@ function createMcpSuggestedPromptsServices(store) {
5518
5602
  user: result.user
5519
5603
  };
5520
5604
  },
5521
- runPromptStreaming: (args) => runProductionPromptStreaming(args),
5605
+ runPromptStreaming: (args) => runProductionPromptStreaming({
5606
+ ...args,
5607
+ programId: store.analyticsProgramId,
5608
+ integration: store.session.integration ?? void 0
5609
+ }),
5522
5610
  probeProjectData: (credentials) => probeProjectData({
5523
5611
  accessToken: credentials.accessToken,
5524
5612
  projectId: credentials.projectId,
@@ -5533,7 +5621,7 @@ function createMcpSuggestedPromptsServices(store) {
5533
5621
  };
5534
5622
  }
5535
5623
  async function* runProductionPromptStreaming(args) {
5536
- const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming-CKyqqB10.js");
5624
+ const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming-ro98iUDc.js");
5537
5625
  yield* runMcpPromptViaSdk(args);
5538
5626
  }
5539
5627
  //#endregion
@@ -5563,6 +5651,7 @@ function createScreens(store, services) {
5563
5651
  ["migration-intro"]: /* @__PURE__ */ jsx(MigrationIntroScreen, { store }),
5564
5652
  ["agent-skill-intro"]: /* @__PURE__ */ jsx(AgentSkillIntroScreen, { store }),
5565
5653
  ["ai-observability-intro"]: /* @__PURE__ */ jsx(AiObservabilityIntroScreen, { store }),
5654
+ ["metrics-intro"]: /* @__PURE__ */ jsx(MetricsIntroScreen, { store }),
5566
5655
  ["self-driving-intro"]: /* @__PURE__ */ jsx(SelfDrivingIntroScreen, { store }),
5567
5656
  ["self-driving-integration-check"]: /* @__PURE__ */ jsx(SelfDrivingIntegrationCheckScreen, { store }),
5568
5657
  ["self-driving-integration-detect"]: /* @__PURE__ */ jsx(SelfDrivingIntegrationDetectScreen, { store }),
@@ -5711,4 +5800,4 @@ function startTUI(version, program = Program.PostHogIntegration) {
5711
5800
  //#endregion
5712
5801
  export { startTUI };
5713
5802
 
5714
- //# sourceMappingURL=start-tui-D4B0-2nr.js.map
5803
+ //# sourceMappingURL=start-tui-DDW9uVnD.js.map