@posthog/wizard 2.16.1 → 2.18.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 (83) hide show
  1. package/dist/{add-mcp-server-to-clients-BS6Rjcwh.js → add-mcp-server-to-clients-DnPwZl1P.js} +38 -5
  2. package/dist/add-mcp-server-to-clients-DnPwZl1P.js.map +1 -0
  3. package/dist/{agent-interface-B4eUlMso.js → agent-interface-C2VEF-BD.js} +110 -54
  4. package/dist/agent-interface-C2VEF-BD.js.map +1 -0
  5. package/dist/{agent-runner-BxqiKVEf.js → agent-runner-Dw8cjZoN.js} +11 -8
  6. package/dist/{agent-runner-BxqiKVEf.js.map → agent-runner-Dw8cjZoN.js.map} +1 -1
  7. package/dist/{analytics-DUuUurR3.js → analytics-C-zcTO6g.js} +26 -4
  8. package/dist/analytics-C-zcTO6g.js.map +1 -0
  9. package/dist/{api-CGJ1iGps.js → api-B3MWP3vm.js} +14 -4
  10. package/dist/{api-CGJ1iGps.js.map → api-B3MWP3vm.js.map} +1 -1
  11. package/dist/bin.js +238 -82
  12. package/dist/bin.js.map +1 -1
  13. package/dist/{ci-install-DD7WMmIF.js → ci-install-DLuSmSq6.js} +4 -4
  14. package/dist/{ci-install-DD7WMmIF.js.map → ci-install-DLuSmSq6.js.map} +1 -1
  15. package/dist/{debug-Cd0hPlZy.js → debug--gQGudnY.js} +1 -1
  16. package/dist/{debug-ubpO6102.js → debug-BorYMfpE.js} +2 -2
  17. package/dist/{debug-ubpO6102.js.map → debug-BorYMfpE.js.map} +1 -1
  18. package/dist/{defaults-zrYmZ2ID.js → defaults-DA3-9dHT.js} +1 -1
  19. package/dist/{defaults-zrYmZ2ID.js.map → defaults-DA3-9dHT.js.map} +1 -1
  20. package/dist/{env-api-key-DEl3LJBv.js → env-api-key-MlzJYAvt.js} +1 -1
  21. package/dist/{env-api-key-DEl3LJBv.js.map → env-api-key-MlzJYAvt.js.map} +1 -1
  22. package/dist/{environment-BAaC5THg.js → environment-DIOtLqTQ.js} +3 -3
  23. package/dist/{environment-BAaC5THg.js.map → environment-DIOtLqTQ.js.map} +1 -1
  24. package/dist/{file-utils-DPmgn9Vm.js → file-utils-VAXoyXVA.js} +1 -1
  25. package/dist/{file-utils-DPmgn9Vm.js.map → file-utils-VAXoyXVA.js.map} +1 -1
  26. package/dist/{interactive-BaMAq88Q.js → interactive-DjGjlvY3.js} +2 -2
  27. package/dist/{interactive-BaMAq88Q.js.map → interactive-DjGjlvY3.js.map} +1 -1
  28. package/dist/{mcp-prompt-streaming-clGsVw8q.js → mcp-prompt-streaming-Dm47tmiy.js} +62 -12
  29. package/dist/mcp-prompt-streaming-Dm47tmiy.js.map +1 -0
  30. package/dist/{non-interactive-l2AKE3jD.js → non-interactive-C2f3Gwva.js} +2 -2
  31. package/dist/{non-interactive-l2AKE3jD.js.map → non-interactive-C2f3Gwva.js.map} +1 -1
  32. package/dist/{package-json-Cynjr9k4.js → package-json-DCuoye-H.js} +8 -2
  33. package/dist/{package-json-Cynjr9k4.js.map → package-json-DCuoye-H.js.map} +1 -1
  34. package/dist/{package-manager-BqsJK3ej.js → package-manager-Bl2KOUFK.js} +2 -2
  35. package/dist/{package-manager-BqsJK3ej.js.map → package-manager-Bl2KOUFK.js.map} +1 -1
  36. package/dist/{playground-DlE5RNfE.js → playground-ZLG68cvx.js} +21 -10
  37. package/dist/playground-ZLG68cvx.js.map +1 -0
  38. package/dist/{posthog-DWL8uOcl.js → posthog-Cr37rnla.js} +1 -1
  39. package/dist/{posthog-DWL8uOcl.js.map → posthog-Cr37rnla.js.map} +1 -1
  40. package/dist/{posthog-integration-Bf_vtWI9.js → posthog-integration-B_DLodqr.js} +282 -14
  41. package/dist/posthog-integration-B_DLodqr.js.map +1 -0
  42. package/dist/{provisioning-D_hAuxUN.js → provisioning-Bk4E6VYn.js} +9 -4
  43. package/dist/{provisioning-D_hAuxUN.js.map → provisioning-Bk4E6VYn.js.map} +1 -1
  44. package/dist/{registry-DKgYqROt.js → registry-DMM3UmZD.js} +5 -5
  45. package/dist/{registry-DKgYqROt.js.map → registry-DMM3UmZD.js.map} +1 -1
  46. package/dist/{setup-utils-D-uTycLX.js → setup-utils-Df9ezAjZ.js} +86 -38
  47. package/dist/setup-utils-Df9ezAjZ.js.map +1 -0
  48. package/dist/{slides-CL1mv_Kq.js → slides-DwvXZ8iS.js} +1583 -322
  49. package/dist/slides-DwvXZ8iS.js.map +1 -0
  50. package/dist/{start-tui-DXrv6cof.js → start-tui-P9aMwBzt.js} +28 -18
  51. package/dist/start-tui-P9aMwBzt.js.map +1 -0
  52. package/dist/{steps-CgScwqso.js → steps-RCRZbLjZ.js} +6 -6
  53. package/dist/{steps-CgScwqso.js.map → steps-RCRZbLjZ.js.map} +1 -1
  54. package/dist/{task-stream-CF6QMVMv.js → task-stream-CZRj6auI.js} +3 -3
  55. package/dist/{task-stream-CF6QMVMv.js.map → task-stream-CZRj6auI.js.map} +1 -1
  56. package/dist/{telemetry-v6O12Bep.js → telemetry-CMbVbpaY.js} +2 -2
  57. package/dist/{telemetry-v6O12Bep.js.map → telemetry-CMbVbpaY.js.map} +1 -1
  58. package/dist/urls-BzG_Jtw9.js +35 -0
  59. package/dist/urls-BzG_Jtw9.js.map +1 -0
  60. package/dist/{wizard-abort-BGoBKgvC.js → wizard-abort-Dl8WJQgJ.js} +1 -1
  61. package/dist/{wizard-abort-iTaJ8wC8.js → wizard-abort-QuKm_B5z.js} +3 -3
  62. package/dist/{wizard-abort-iTaJ8wC8.js.map → wizard-abort-QuKm_B5z.js.map} +1 -1
  63. package/dist/{wizard-session-gsn8Z3bZ.js → wizard-session-d27JGRGi.js} +1 -1
  64. package/dist/{wizard-session-gsn8Z3bZ.js.map → wizard-session-d27JGRGi.js.map} +1 -1
  65. package/dist/{wizard-session-7tMjgOvP.js → wizard-session-y304gEEI.js} +1 -1
  66. package/package.json +1 -1
  67. package/dist/TextBlock-CdeZog_6.js +0 -275
  68. package/dist/TextBlock-CdeZog_6.js.map +0 -1
  69. package/dist/add-mcp-server-to-clients-BS6Rjcwh.js.map +0 -1
  70. package/dist/agent-interface-B4eUlMso.js.map +0 -1
  71. package/dist/analytics-DUuUurR3.js.map +0 -1
  72. package/dist/api-B8OR0N1V.js +0 -2
  73. package/dist/mcp-prompt-streaming-clGsVw8q.js.map +0 -1
  74. package/dist/package-json-CumwmZpv.js +0 -2
  75. package/dist/playground-DlE5RNfE.js.map +0 -1
  76. package/dist/posthog-integration-Bf_vtWI9.js.map +0 -1
  77. package/dist/provisioning-BlBnlcFd.js +0 -2
  78. package/dist/setup-utils-BHZEdkNZ.js +0 -2
  79. package/dist/setup-utils-D-uTycLX.js.map +0 -1
  80. package/dist/skill-CnOQAZXp.js +0 -29
  81. package/dist/skill-CnOQAZXp.js.map +0 -1
  82. package/dist/slides-CL1mv_Kq.js.map +0 -1
  83. package/dist/start-tui-DXrv6cof.js.map +0 -1
@@ -1,16 +1,16 @@
1
- import { M as POSTHOG_DOCS_URL, O as Integration, R as REMOTE_SKILLS_BASE_URL, U as WIZARD_TOOLS_MENU_FLAG_KEY, _ as SIGNUP_WIZARD_READINESS_CONFIG, d as relativeToInstallDir, k as OAUTH_PORTS, l as WIZARD_LOG_FILE, m as setUI, q as getSkillsBaseUrl, s as logToFile, y as getBlockingServiceKeys } from "./debug-ubpO6102.js";
2
- import { t as analytics } from "./analytics-DUuUurR3.js";
3
- import { f as getUiHostFromHost, l as extractOAuthCode, r as getOrAskForProjectData } from "./setup-utils-D-uTycLX.js";
4
- import { n as ApiError } from "./api-CGJ1iGps.js";
5
- import { t as ADDITIONAL_FEATURE_LABELS } from "./wizard-session-gsn8Z3bZ.js";
6
- import { r as wizardAbort } from "./wizard-abort-iTaJ8wC8.js";
7
- import { _ as AUDIT_SEVERITY_STYLE, d as downloadSkill, f as fetchSkillMenu, h as AUDIT_CHECKS_KEY, m as AUDIT_CHECKS_FILE, v as coerceAuditChecks, y as getAuditChecks } from "./agent-interface-B4eUlMso.js";
8
- import { t as EVENT_PLAN_FILE } from "./posthog-integration-Bf_vtWI9.js";
9
- import { o as Colors, s as Icons } from "./TextBlock-CdeZog_6.js";
10
- import { a as getProgramConfig, f as getContentBlocks, i as Program, m as STRIPE_SDKS, o as DISPLAY_NAME, p as POSTHOG_SDKS, s as SOURCE_MAPS_CONTEXT_KEYS, u as fetchHealthIssues } from "./bin.js";
11
- import { A as WizardStore, C as useStdoutDimensions, D as LoadingBox, E as ProgressList, O as SplitView, T as useKeyBindings, _ as ScreenContainer, a as McpSuggestedPromptsScreen, b as ModalOverlay, c as IssueTable, d as ServiceHealthList, f as TipsCard, g as TabContainer, h as HNViewer, i as AuditChecksViewer, l as SEVERITY_LABEL, n as AUDIT_AREA_SLIDES, p as LearnCard, r as VisualBox, s as McpScreen, t as AUDIT_3000_AREA_SLIDES, u as SEVERITY_ORDER, v as EventPlanViewer, w as PickerMenu, x as ConfirmationInput, y as LogViewer } from "./slides-CL1mv_Kq.js";
12
- import { t as ALL_FEATURE_VALUES } from "./defaults-zrYmZ2ID.js";
13
- 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-BS6Rjcwh.js";
1
+ import { M as POSTHOG_DOCS_URL, O as Integration, R as REMOTE_SKILLS_BASE_URL, U as WIZARD_TOOLS_MENU_FLAG_KEY, _ as SIGNUP_WIZARD_READINESS_CONFIG, d as relativeToInstallDir, k as OAUTH_PORTS, l as WIZARD_LOG_FILE, m as setUI, q as getSkillsBaseUrl, s as logToFile, y as getBlockingServiceKeys } from "./debug-BorYMfpE.js";
2
+ import { t as analytics } from "./analytics-C-zcTO6g.js";
3
+ import { o as extractOAuthCode, t as getOrAskForProjectData } from "./setup-utils-Df9ezAjZ.js";
4
+ import { a as getUiHostFromHost } from "./urls-BzG_Jtw9.js";
5
+ import { t as ApiError } from "./api-B3MWP3vm.js";
6
+ import { t as ADDITIONAL_FEATURE_LABELS } from "./wizard-session-d27JGRGi.js";
7
+ import { r as wizardAbort } from "./wizard-abort-QuKm_B5z.js";
8
+ import { b as getAuditChecks, f as downloadSkill, g as AUDIT_CHECKS_KEY, h as AUDIT_CHECKS_FILE, p as fetchSkillMenu, v as AUDIT_SEVERITY_STYLE, y as coerceAuditChecks } from "./agent-interface-C2VEF-BD.js";
9
+ import { f as Colors, p as Icons, t as EVENT_PLAN_FILE } from "./posthog-integration-B_DLodqr.js";
10
+ import { a as getProgramConfig, d as getContentBlocks, f as POSTHOG_SDKS, i as Program, o as DISPLAY_NAME, p as STRIPE_SDKS, s as SOURCE_MAPS_CONTEXT_KEYS, u as fetchHealthIssues } from "./bin.js";
11
+ import { A as WizardStore, C as useStdoutDimensions, D as LoadingBox, E as ProgressList, O as SplitView, T as useKeyBindings, _ as ScreenContainer, a as McpSuggestedPromptsScreen, b as ModalOverlay, c as IssueTable, d as ServiceHealthList, f as TipsCard, g as TabContainer, h as HNViewer, i as AuditChecksViewer, l as SEVERITY_LABEL, n as AUDIT_AREA_SLIDES, p as LearnCard, r as VisualBox, s as McpScreen, t as AUDIT_3000_AREA_SLIDES, u as SEVERITY_ORDER, v as EventPlanViewer, w as PickerMenu, x as ConfirmationInput, y as LogViewer } from "./slides-DwvXZ8iS.js";
12
+ import { t as ALL_FEATURE_VALUES } from "./defaults-DA3-9dHT.js";
13
+ 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-DnPwZl1P.js";
14
14
  import { spawn, spawnSync } from "node:child_process";
15
15
  import { join } from "node:path";
16
16
  import * as fs$1 from "fs";
@@ -1042,7 +1042,7 @@ const FrameworkPicker = ({ store, onComplete }) => {
1042
1042
  })),
1043
1043
  onSelect: (value) => {
1044
1044
  const integration = Array.isArray(value) ? value[0] : value;
1045
- import("./registry-DKgYqROt.js").then((n) => n.n).then(({ FRAMEWORK_REGISTRY }) => {
1045
+ import("./registry-DMM3UmZD.js").then((n) => n.n).then(({ FRAMEWORK_REGISTRY }) => {
1046
1046
  const config = FRAMEWORK_REGISTRY[integration];
1047
1047
  store.setFrameworkConfig(integration, config);
1048
1048
  store.setDetectedFramework(config.metadata.name);
@@ -4814,6 +4814,11 @@ const QuestionInput = ({ question, onSubmit }) => {
4814
4814
  }
4815
4815
  };
4816
4816
  //#endregion
4817
+ //#region src/steps/add-mcp-server-to-clients/browser-client.ts
4818
+ function isBrowserFinishable(c) {
4819
+ return typeof c === "object" && c !== null && "connectorUrl" in c && "finishInstruction" in c;
4820
+ }
4821
+ //#endregion
4817
4822
  //#region src/ui/tui/services/mcp-installer.ts
4818
4823
  /**
4819
4824
  * McpInstaller — service layer between McpScreen and MCP business logic.
@@ -4835,7 +4840,11 @@ function createMcpInstaller() {
4835
4840
  }));
4836
4841
  return supported.map((c) => ({
4837
4842
  name: c.name,
4838
- supportsPlugin: isPluginCapable(c) && c.supportsPlugin()
4843
+ supportsPlugin: isPluginCapable(c) && c.supportsPlugin(),
4844
+ finish: isBrowserFinishable(c) ? {
4845
+ url: c.connectorUrl,
4846
+ instruction: c.finishInstruction
4847
+ } : void 0
4839
4848
  }));
4840
4849
  },
4841
4850
  async install(clientNames, features, apiKey) {
@@ -4887,7 +4896,8 @@ function createMcpSuggestedPromptsServices(_store) {
4887
4896
  apiKey: void 0,
4888
4897
  projectId: void 0,
4889
4898
  email: void 0,
4890
- region: void 0
4899
+ region: void 0,
4900
+ programId: Program.McpTutorial
4891
4901
  });
4892
4902
  return {
4893
4903
  credentials: {
@@ -4904,7 +4914,7 @@ function createMcpSuggestedPromptsServices(_store) {
4904
4914
  };
4905
4915
  }
4906
4916
  async function* runProductionPromptStreaming(args) {
4907
- const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming-clGsVw8q.js");
4917
+ const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming-Dm47tmiy.js");
4908
4918
  yield* runMcpPromptViaSdk(args);
4909
4919
  }
4910
4920
  //#endregion
@@ -5026,4 +5036,4 @@ function startTUI(version, program = Program.PostHogIntegration) {
5026
5036
  //#endregion
5027
5037
  export { startTUI };
5028
5038
 
5029
- //# sourceMappingURL=start-tui-DXrv6cof.js.map
5039
+ //# sourceMappingURL=start-tui-P9aMwBzt.js.map