@posthog/wizard 2.65.0 → 2.66.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 (101) hide show
  1. package/dist/{add-mcp-server-to-clients-ArtlMX9-.js → add-mcp-server-to-clients-DWDEuDUR.js} +209 -45
  2. package/dist/add-mcp-server-to-clients-DWDEuDUR.js.map +1 -0
  3. package/dist/{agent-interface-ORzGEFNM.js → agent-interface-D3MNaDp3.js} +337 -44
  4. package/dist/agent-interface-D3MNaDp3.js.map +1 -0
  5. package/dist/{agent-prompt-loader-D3w6sc34.js → agent-prompt-loader-D8Bajo-L.js} +5 -5
  6. package/dist/{agent-prompt-loader-D3w6sc34.js.map → agent-prompt-loader-D8Bajo-L.js.map} +1 -1
  7. package/dist/{agent-runner-Ca-e2TOQ.js → agent-runner-DEeMqJxy.js} +100 -49
  8. package/dist/agent-runner-DEeMqJxy.js.map +1 -0
  9. package/dist/{analytics-zBrIVjMV.js → analytics-D8JNuPAT.js} +2 -2
  10. package/dist/{analytics-zBrIVjMV.js.map → analytics-D8JNuPAT.js.map} +1 -1
  11. package/dist/analytics-DN3Kzf7H.js +2 -0
  12. package/dist/{api-Wgb7AhrP.js → api-CemGgyBv.js} +3 -3
  13. package/dist/{api-Wgb7AhrP.js.map → api-CemGgyBv.js.map} +1 -1
  14. package/dist/bin.js +95 -67
  15. package/dist/bin.js.map +1 -1
  16. package/dist/{bounded-fs-DqsVmh4r.js → bounded-fs-C6OjqZst.js} +3 -3
  17. package/dist/{bounded-fs-DqsVmh4r.js.map → bounded-fs-C6OjqZst.js.map} +1 -1
  18. package/dist/{ci-install-D1QqmJIc.js → ci-install-DIB2n4Ju.js} +4 -4
  19. package/dist/{ci-install-D1QqmJIc.js.map → ci-install-DIB2n4Ju.js.map} +1 -1
  20. package/dist/{debug-Cm1hvkVy.js → debug-BKqv-yfT.js} +3 -3
  21. package/dist/{debug-Cm1hvkVy.js.map → debug-BKqv-yfT.js.map} +1 -1
  22. package/dist/{debug-CtQ13sCW.js → debug-H-GTKvvU.js} +1 -1
  23. package/dist/{env-api-key-CdI2XZIz.js → env-api-key-CzHDwfV2.js} +2 -2
  24. package/dist/{env-api-key-CdI2XZIz.js.map → env-api-key-CzHDwfV2.js.map} +1 -1
  25. package/dist/{environment-BhFvfkQg.js → environment-Cl-fIQku.js} +4 -4
  26. package/dist/{environment-BhFvfkQg.js.map → environment-Cl-fIQku.js.map} +1 -1
  27. package/dist/{file-watcher-Dciz09Rr.js → file-watcher-Cr-4tA-e.js} +2 -2
  28. package/dist/{file-watcher-Dciz09Rr.js.map → file-watcher-Cr-4tA-e.js.map} +1 -1
  29. package/dist/{headless-ui-B4FnKm11.js → headless-ui-DT3Db1bk.js} +2 -2
  30. package/dist/{headless-ui-B4FnKm11.js.map → headless-ui-DT3Db1bk.js.map} +1 -1
  31. package/dist/{interactive-DxHFVYr2.js → interactive-D3LdFxZG.js} +2 -2
  32. package/dist/{interactive-DxHFVYr2.js.map → interactive-D3LdFxZG.js.map} +1 -1
  33. package/dist/{mcp-t0UxAPur.js → mcp-BjckYQmP.js} +2 -2
  34. package/dist/{mcp-t0UxAPur.js.map → mcp-BjckYQmP.js.map} +1 -1
  35. package/dist/mcp-install-smoke-test.ts +477 -0
  36. package/dist/{mcp-prompt-streaming-ro98iUDc.js → mcp-prompt-streaming--sRErHKv.js} +4 -4
  37. package/dist/{mcp-prompt-streaming-ro98iUDc.js.map → mcp-prompt-streaming--sRErHKv.js.map} +1 -1
  38. package/dist/{non-interactive-BA2L_jDT.js → non-interactive-CNoYoEZp.js} +2 -2
  39. package/dist/{non-interactive-BA2L_jDT.js.map → non-interactive-CNoYoEZp.js.map} +1 -1
  40. package/dist/{orchestrator-tools-vZmNsHy9.js → orchestrator-tools-8bGyDDhn.js} +3 -3
  41. package/dist/{orchestrator-tools-vZmNsHy9.js.map → orchestrator-tools-8bGyDDhn.js.map} +1 -1
  42. package/dist/{package-manager-DgqJdAQk.js → package-manager-BQDHm7ER.js} +2 -2
  43. package/dist/{package-manager-DgqJdAQk.js.map → package-manager-BQDHm7ER.js.map} +1 -1
  44. package/dist/{pi-nwrCARRp.js → pi-W-4RUPFY.js} +11 -11
  45. package/dist/{pi-nwrCARRp.js.map → pi-W-4RUPFY.js.map} +1 -1
  46. package/dist/{playground-xkEke_h0.js → playground-uHHgZChe.js} +7 -7
  47. package/dist/{playground-xkEke_h0.js.map → playground-uHHgZChe.js.map} +1 -1
  48. package/dist/{posthog-9To56cSd.js → posthog-ChzdlmCs.js} +2 -2
  49. package/dist/{posthog-9To56cSd.js.map → posthog-ChzdlmCs.js.map} +1 -1
  50. package/dist/{posthog-integration-CoPvN6YZ.js → posthog-integration-LxEBGkoe.js} +661 -35
  51. package/dist/posthog-integration-LxEBGkoe.js.map +1 -0
  52. package/dist/{provisioning-BYFSHSHY.js → provisioning-BHTl91OZ.js} +3 -3
  53. package/dist/{provisioning-BYFSHSHY.js.map → provisioning-BHTl91OZ.js.map} +1 -1
  54. package/dist/{queue-tools-BREbgGSC.js → queue-tools-DABh1Ssc.js} +33 -7
  55. package/dist/queue-tools-DABh1Ssc.js.map +1 -0
  56. package/dist/{registry-DGJQ_8QI.js → registry-CxNpCNAj.js} +5 -5
  57. package/dist/{registry-DGJQ_8QI.js.map → registry-CxNpCNAj.js.map} +1 -1
  58. package/dist/{security-wc-naGq5.js → security-B4jU_-7q.js} +5 -5
  59. package/dist/{security-wc-naGq5.js.map → security-B4jU_-7q.js.map} +1 -1
  60. package/dist/{setup-utils-Cz0wPLsQ.js → setup-utils-aWZEdfwh.js} +9 -9
  61. package/dist/{setup-utils-Cz0wPLsQ.js.map → setup-utils-aWZEdfwh.js.map} +1 -1
  62. package/dist/{start-tui-DDW9uVnD.js → start-tui-BQH4mQIZ.js} +43 -21
  63. package/dist/start-tui-BQH4mQIZ.js.map +1 -0
  64. package/dist/{steps-CZI0B24_.js → steps-5HAqjUvn.js} +7 -7
  65. package/dist/{steps-CZI0B24_.js.map → steps-5HAqjUvn.js.map} +1 -1
  66. package/dist/{store-xMkU8xAa.js → store-P_7zUfbj.js} +7 -6
  67. package/dist/{store-xMkU8xAa.js.map → store-P_7zUfbj.js.map} +1 -1
  68. package/dist/{subagent-BztacyoV.js → subagent-uGPDXPfS.js} +2 -2
  69. package/dist/{subagent-BztacyoV.js.map → subagent-uGPDXPfS.js.map} +1 -1
  70. package/dist/{task-CJ7x3McC.js → task-oh8OAnvR.js} +12 -12
  71. package/dist/{task-CJ7x3McC.js.map → task-oh8OAnvR.js.map} +1 -1
  72. package/dist/{task-stream-BK7JQ27G.js → task-stream-jUARpyB5.js} +5 -5
  73. package/dist/{task-stream-BK7JQ27G.js.map → task-stream-jUARpyB5.js.map} +1 -1
  74. package/dist/{tasks-FGzp_zBd.js → tasks-2mu3lAvm.js} +2 -2
  75. package/dist/{tasks-FGzp_zBd.js.map → tasks-2mu3lAvm.js.map} +1 -1
  76. package/dist/{telemetry-By56gAtF.js → telemetry-BllPiBKw.js} +3 -3
  77. package/dist/{telemetry-By56gAtF.js.map → telemetry-BllPiBKw.js.map} +1 -1
  78. package/dist/{terminal-C_rmkaku.js → terminal-aWQrDy8s.js} +72 -79
  79. package/dist/terminal-aWQrDy8s.js.map +1 -0
  80. package/dist/{tools-BpCJgMez.js → tools-u8TaJFqa.js} +54 -47
  81. package/dist/tools-u8TaJFqa.js.map +1 -0
  82. package/dist/{wizard-abort-CzwID162.js → wizard-abort-D9jiMkZA.js} +4 -4
  83. package/dist/{wizard-abort-CzwID162.js.map → wizard-abort-D9jiMkZA.js.map} +1 -1
  84. package/dist/{wizard-abort-BlDla_Jd.js → wizard-abort-pFFH7dcx.js} +1 -1
  85. package/dist/{wizard-session-UxA_A0cA.js → wizard-session-Cw7-_OcZ.js} +1 -1
  86. package/dist/{wizard-session-Bn6dO1gE.js → wizard-session-DTyLMPsX.js} +2 -1
  87. package/dist/{wizard-session-Bn6dO1gE.js.map → wizard-session-DTyLMPsX.js.map} +1 -1
  88. package/dist/{yara-hooks-BrisBebM.js → yara-hooks-BXDBIOBq.js} +4 -4
  89. package/dist/{yara-hooks-BrisBebM.js.map → yara-hooks-BXDBIOBq.js.map} +1 -1
  90. package/dist/yara-hooks-i2jOabhI.js +2 -0
  91. package/package.json +2 -1
  92. package/dist/add-mcp-server-to-clients-ArtlMX9-.js.map +0 -1
  93. package/dist/agent-interface-ORzGEFNM.js.map +0 -1
  94. package/dist/agent-runner-Ca-e2TOQ.js.map +0 -1
  95. package/dist/analytics-C4j6grao.js +0 -2
  96. package/dist/posthog-integration-CoPvN6YZ.js.map +0 -1
  97. package/dist/queue-tools-BREbgGSC.js.map +0 -1
  98. package/dist/start-tui-DDW9uVnD.js.map +0 -1
  99. package/dist/terminal-C_rmkaku.js.map +0 -1
  100. package/dist/tools-BpCJgMez.js.map +0 -1
  101. package/dist/yara-hooks-D2B7Fd9G.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-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";
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-BKqv-yfT.js";
2
+ import { n as analytics } from "./analytics-D8JNuPAT.js";
3
+ import { i as readProjectFile, t as IGNORED_DIRS } from "./bounded-fs-C6OjqZst.js";
4
+ import { o as extractOAuthCode, t as getOrAskForProjectData } from "./setup-utils-aWZEdfwh.js";
5
+ import { t as ApiError } from "./api-CemGgyBv.js";
6
+ import { t as ADDITIONAL_FEATURE_LABELS } from "./wizard-session-DTyLMPsX.js";
7
+ import { i as wizardAbort } from "./wizard-abort-D9jiMkZA.js";
8
+ import { a as formatCostUsd, o as formatTokenCount } from "./agent-runner-DEeMqJxy.js";
9
+ import { A as downloadSkill, j as fetchSkillMenu } from "./agent-interface-D3MNaDp3.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-BXDBIOBq.js";
11
+ import { t as FRAMEWORK_REGISTRY } from "./registry-CxNpCNAj.js";
12
+ import { b as getDetectedWarehouseSources, h as Icons, m as Colors, t as SETUP_REPORT_FILE, w as detectProjectsWithAgent } from "./posthog-integration-LxEBGkoe.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-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";
14
+ import { r as totalTokenCount, t as WizardStore } from "./store-P_7zUfbj.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-aWQrDy8s.js";
16
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";
17
+ import { t as startFileWatcher } from "./file-watcher-Cr-4tA-e.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-DWDEuDUR.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-DGJQ_8QI.js").then((n) => n.n).then(({ FRAMEWORK_REGISTRY }) => {
1137
+ import("./registry-CxNpCNAj.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);
@@ -5495,6 +5495,11 @@ const QuestionInput = ({ question, onSubmit }) => {
5495
5495
  }
5496
5496
  };
5497
5497
  //#endregion
5498
+ //#region src/steps/add-mcp-server-to-clients/login-client.ts
5499
+ function isLoginCapable(client) {
5500
+ return typeof client === "object" && client !== null && "loginCommand" in client;
5501
+ }
5502
+ //#endregion
5498
5503
  //#region src/steps/add-mcp-server-to-clients/browser-client.ts
5499
5504
  function isBrowserFinishable(c) {
5500
5505
  return typeof c === "object" && c !== null && "connectorUrl" in c && "finishInstruction" in c;
@@ -5522,10 +5527,13 @@ function createMcpInstaller() {
5522
5527
  return supported.map((c) => ({
5523
5528
  name: c.name,
5524
5529
  supportsPlugin: isPluginCapable(c) && c.supportsPlugin(),
5530
+ pluginBundlesMcp: isPluginCapable(c) && c.pluginBundlesMcpServer(),
5525
5531
  finish: isBrowserFinishable(c) ? {
5526
5532
  url: c.connectorUrl,
5527
5533
  instruction: c.finishInstruction
5528
- } : void 0
5534
+ } : void 0,
5535
+ loginCommand: isLoginCapable(c) && c.loginCommand(false) || void 0,
5536
+ pluginLoginCommand: isLoginCapable(c) && c.pluginLoginCommand?.() || void 0
5529
5537
  }));
5530
5538
  },
5531
5539
  async install(clientNames, features, apiKey) {
@@ -5621,7 +5629,7 @@ function createMcpSuggestedPromptsServices(store) {
5621
5629
  };
5622
5630
  }
5623
5631
  async function* runProductionPromptStreaming(args) {
5624
- const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming-ro98iUDc.js");
5632
+ const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming--sRErHKv.js");
5625
5633
  yield* runMcpPromptViaSdk(args);
5626
5634
  }
5627
5635
  //#endregion
@@ -5734,10 +5742,21 @@ function tokenCostLine(store) {
5734
5742
  if (totalTokenCount(usage) === 0) return null;
5735
5743
  return `${DIM}${usage.costIsFinal ? "Final cost" : "Cost (estimate)"}: ${formatCostUsd(usage.costUsd)} (in ${formatTokenCount(usage.inputTokens)} · out ${formatTokenCount(usage.outputTokens)} · cache read ${formatTokenCount(usage.cacheReadTokens)} · cache write ${formatTokenCount(usage.cacheCreationTokens)})${RESET_ATTRS}`;
5736
5744
  }
5745
+ /**
5746
+ * The one manual step the wizard can't do itself: the editor's own MCP login.
5747
+ * Echoed into scrollback like the handoff prompt — command on its own plain
5748
+ * line so a terminal can triple-click-select it.
5749
+ */
5750
+ function mcpLoginBlock(store) {
5751
+ const commands = store.session.mcpLoginCommands;
5752
+ if (!commands || commands.length === 0) return null;
5753
+ return `${GREEN}${BOLD}\u2714 Authenticate to finish (opens your browser):${RESET_ATTRS}\n` + commands.join("\n");
5754
+ }
5737
5755
  function getExitLine(store) {
5738
5756
  const outro = store.session.outroData;
5739
5757
  const label = store.session.programLabel ?? "Wizard";
5740
5758
  const costLine = tokenCostLine(store);
5759
+ const loginBlock = mcpLoginBlock(store);
5741
5760
  if (outro?.kind === "success") {
5742
5761
  const message = outro.message ?? `${label} completed successfully.`;
5743
5762
  const parts = [`${GREEN}${BOLD}✔${RESET_ATTRS} ${message}${outro.reportFile && !message.includes(outro.reportFile) ? ` Check ./${outro.reportFile} for details.` : ""}`];
@@ -5747,10 +5766,13 @@ function getExitLine(store) {
5747
5766
  parts.push(`${DIM}${outro.nextSteps.heading}${RESET_ATTRS}\n${bullets}`);
5748
5767
  }
5749
5768
  if (outro.handoffPrompt) parts.push(`${DIM}Hand this to your coding agent to finish up (triple-click to select):${RESET_ATTRS}\n` + outro.handoffPrompt);
5769
+ if (loginBlock) parts.push(loginBlock);
5750
5770
  if (costLine) parts.push(costLine);
5751
5771
  return parts.join("\n\n");
5752
5772
  }
5753
- return costLine ? `${DIM}${label} exited.${RESET_ATTRS}\n\n${costLine}` : `${DIM}${label} exited.${RESET_ATTRS}`;
5773
+ const parts = loginBlock ? [loginBlock] : [`${DIM}${label} exited.${RESET_ATTRS}`];
5774
+ if (costLine) parts.push(costLine);
5775
+ return parts.join("\n\n");
5754
5776
  }
5755
5777
  //#endregion
5756
5778
  //#region src/ui/tui/start-tui.ts
@@ -5800,4 +5822,4 @@ function startTUI(version, program = Program.PostHogIntegration) {
5800
5822
  //#endregion
5801
5823
  export { startTUI };
5802
5824
 
5803
- //# sourceMappingURL=start-tui-DDW9uVnD.js.map
5825
+ //# sourceMappingURL=start-tui-BQH4mQIZ.js.map