@posthog/wizard 2.46.0 → 2.48.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 (91) hide show
  1. package/dist/{add-mcp-server-to-clients-Bv2CBSil.js → add-mcp-server-to-clients-D1ylcWh3.js} +4 -4
  2. package/dist/{add-mcp-server-to-clients-Bv2CBSil.js.map → add-mcp-server-to-clients-D1ylcWh3.js.map} +1 -1
  3. package/dist/{agent-interface-B8roB2UP.js → agent-interface-C9li2RGX.js} +10 -6
  4. package/dist/agent-interface-C9li2RGX.js.map +1 -0
  5. package/dist/{agent-runner-CV3qh_2p.js → agent-runner-BbAtU_Ue.js} +73 -16
  6. package/dist/{agent-runner-CV3qh_2p.js.map → agent-runner-BbAtU_Ue.js.map} +1 -1
  7. package/dist/analytics-CU8OGUAl.js +2 -0
  8. package/dist/{analytics-k76OWsl0.js → analytics-CVmeRvMK.js} +2 -2
  9. package/dist/{analytics-k76OWsl0.js.map → analytics-CVmeRvMK.js.map} +1 -1
  10. package/dist/{api-CmIWcW-U.js → api-BYJ0F0jM.js} +3 -3
  11. package/dist/{api-CmIWcW-U.js.map → api-BYJ0F0jM.js.map} +1 -1
  12. package/dist/bin.js +109 -38
  13. package/dist/bin.js.map +1 -1
  14. package/dist/check-screens.tsx +26 -0
  15. package/dist/{ci-install-CNEJxdHf.js → ci-install-ZkBH7NNk.js} +4 -4
  16. package/dist/{ci-install-CNEJxdHf.js.map → ci-install-ZkBH7NNk.js.map} +1 -1
  17. package/dist/{debug-C9HmIrwx.js → debug-CUmAeIdp.js} +3 -3
  18. package/dist/{debug-C9HmIrwx.js.map → debug-CUmAeIdp.js.map} +1 -1
  19. package/dist/{debug-BwIo7nwn.js → debug-sw5dX4p8.js} +1 -1
  20. package/dist/{environment-NJykOp33.js → environment-D-leJpbC.js} +3 -3
  21. package/dist/{environment-NJykOp33.js.map → environment-D-leJpbC.js.map} +1 -1
  22. package/dist/{file-utils-CLMcNIKi.js → file-utils-ajJoKu1x.js} +2 -2
  23. package/dist/{file-utils-CLMcNIKi.js.map → file-utils-ajJoKu1x.js.map} +1 -1
  24. package/dist/{file-watcher-CBDCNQVV.js → file-watcher-Cslhvx_q.js} +2 -2
  25. package/dist/{file-watcher-CBDCNQVV.js.map → file-watcher-Cslhvx_q.js.map} +1 -1
  26. package/dist/{headless-ui-B3QKxbz8.js → headless-ui-DmE7h8Xd.js} +2 -2
  27. package/dist/{headless-ui-B3QKxbz8.js.map → headless-ui-DmE7h8Xd.js.map} +1 -1
  28. package/dist/{interactive-CIJRex02.js → interactive-CZFxpwtD.js} +2 -2
  29. package/dist/{interactive-CIJRex02.js.map → interactive-CZFxpwtD.js.map} +1 -1
  30. package/dist/{mcp-qTjKHqXN.js → mcp-B35jkp2C.js} +2 -2
  31. package/dist/{mcp-qTjKHqXN.js.map → mcp-B35jkp2C.js.map} +1 -1
  32. package/dist/{mcp-prompt-streaming-D6OgW3lC.js → mcp-prompt-streaming-ClyJS8Vb.js} +3 -3
  33. package/dist/{mcp-prompt-streaming-D6OgW3lC.js.map → mcp-prompt-streaming-ClyJS8Vb.js.map} +1 -1
  34. package/dist/{non-interactive-8Eypq_h-.js → non-interactive-6yE8SBNT.js} +2 -2
  35. package/dist/{non-interactive-8Eypq_h-.js.map → non-interactive-6yE8SBNT.js.map} +1 -1
  36. package/dist/{orchestrator-tools-DVXOV-kz.js → orchestrator-tools-CN2GiFFz.js} +9 -7
  37. package/dist/orchestrator-tools-CN2GiFFz.js.map +1 -0
  38. package/dist/{package-manager-CAD9Uklp.js → package-manager-BhIthBbt.js} +2 -2
  39. package/dist/{package-manager-CAD9Uklp.js.map → package-manager-BhIthBbt.js.map} +1 -1
  40. package/dist/{pi-C9iHv5uG.js → pi-CFQC2bp5.js} +11 -11
  41. package/dist/{pi-C9iHv5uG.js.map → pi-CFQC2bp5.js.map} +1 -1
  42. package/dist/{playground-C-9Q3ETa.js → playground-xU2cFoJZ.js} +6 -6
  43. package/dist/{playground-C-9Q3ETa.js.map → playground-xU2cFoJZ.js.map} +1 -1
  44. package/dist/{posthog-integration-Do997QON.js → posthog-integration-MkDzf1_B.js} +14 -14
  45. package/dist/{posthog-integration-Do997QON.js.map → posthog-integration-MkDzf1_B.js.map} +1 -1
  46. package/dist/{provisioning-DpqnGk3z.js → provisioning-DywknZ3v.js} +3 -3
  47. package/dist/{provisioning-DpqnGk3z.js.map → provisioning-DywknZ3v.js.map} +1 -1
  48. package/dist/{queue-tools-CTUgbOU8.js → queue-tools-CSTHA8ab.js} +9 -7
  49. package/dist/queue-tools-CSTHA8ab.js.map +1 -0
  50. package/dist/{registry-DT58jEYr.js → registry-qI149NRV.js} +4 -4
  51. package/dist/{registry-DT58jEYr.js.map → registry-qI149NRV.js.map} +1 -1
  52. package/dist/{security-CTigdAWm.js → security-CK8tHIss.js} +4 -4
  53. package/dist/{security-CTigdAWm.js.map → security-CK8tHIss.js.map} +1 -1
  54. package/dist/{setup-utils-Cb5uACEO.js → setup-utils-CvCnesrl.js} +7 -7
  55. package/dist/{setup-utils-Cb5uACEO.js.map → setup-utils-CvCnesrl.js.map} +1 -1
  56. package/dist/{start-tui-Cwc-PFma.js → start-tui-BBBem_0l.js} +95 -17
  57. package/dist/start-tui-BBBem_0l.js.map +1 -0
  58. package/dist/{steps-DyEKYM4I.js → steps-CKG6kSjp.js} +7 -7
  59. package/dist/{steps-DyEKYM4I.js.map → steps-CKG6kSjp.js.map} +1 -1
  60. package/dist/{store-4sj-vWr5.js → store-BL89FJpU.js} +4 -4
  61. package/dist/store-BL89FJpU.js.map +1 -0
  62. package/dist/{subagent-D8_yDgCB.js → subagent-CfwiqiCw.js} +2 -2
  63. package/dist/{subagent-D8_yDgCB.js.map → subagent-CfwiqiCw.js.map} +1 -1
  64. package/dist/{task-D8Y8pkzd.js → task-Cu4lz5_H.js} +12 -12
  65. package/dist/task-Cu4lz5_H.js.map +1 -0
  66. package/dist/{task-stream-DQT3vjwS.js → task-stream-BfQYDIog.js} +3 -3
  67. package/dist/{task-stream-DQT3vjwS.js.map → task-stream-BfQYDIog.js.map} +1 -1
  68. package/dist/{tasks-D2WKssA5.js → tasks-CJxGstXs.js} +2 -2
  69. package/dist/{tasks-D2WKssA5.js.map → tasks-CJxGstXs.js.map} +1 -1
  70. package/dist/{telemetry-CYr4HgS2.js → telemetry-DVTq0Mv_.js} +3 -3
  71. package/dist/{telemetry-CYr4HgS2.js.map → telemetry-DVTq0Mv_.js.map} +1 -1
  72. package/dist/{terminal-1RfyHQC2.js → terminal-CnxUzd0d.js} +40 -25
  73. package/dist/terminal-CnxUzd0d.js.map +1 -0
  74. package/dist/{tools-DQCUOQZX.js → tools-BxEQaUYK.js} +6 -6
  75. package/dist/{tools-DQCUOQZX.js.map → tools-BxEQaUYK.js.map} +1 -1
  76. package/dist/{wizard-abort-FuyIaI_0.js → wizard-abort-BcG8dYgK.js} +3 -3
  77. package/dist/{wizard-abort-FuyIaI_0.js.map → wizard-abort-BcG8dYgK.js.map} +1 -1
  78. package/dist/{wizard-abort-D_-v1zvS.js → wizard-abort-CzyT__-u.js} +1 -1
  79. package/dist/yara-hooks-0Yuk_lT5.js +2 -0
  80. package/dist/{yara-hooks-DdYRRxfH.js → yara-hooks-B8GIO827.js} +3 -3
  81. package/dist/{yara-hooks-DdYRRxfH.js.map → yara-hooks-B8GIO827.js.map} +1 -1
  82. package/package.json +1 -1
  83. package/dist/agent-interface-B8roB2UP.js.map +0 -1
  84. package/dist/analytics-D7vUZgzf.js +0 -2
  85. package/dist/orchestrator-tools-DVXOV-kz.js.map +0 -1
  86. package/dist/queue-tools-CTUgbOU8.js.map +0 -1
  87. package/dist/start-tui-Cwc-PFma.js.map +0 -1
  88. package/dist/store-4sj-vWr5.js.map +0 -1
  89. package/dist/task-D8Y8pkzd.js.map +0 -1
  90. package/dist/terminal-1RfyHQC2.js.map +0 -1
  91. package/dist/yara-hooks-6gNnPFPo.js +0 -2
@@ -1,20 +1,20 @@
1
- import { B as Integration, H as OAUTH_TIMEOUT_MS, K as POSTHOG_DOCS_URL, V as OAUTH_PORTS, X as POSTHOG_PRIVACY_URL, Y as POSTHOG_ORG_AI_SETTINGS_URL, d as relativeToInstallDir, et as POSTHOG_TERMS_URL, g as SIGNUP_WIZARD_READINESS_CONFIG, ht as WIZARD_TOOLS_MENU_FLAG_KEY, l as WIZARD_LOG_FILE, nt as REMOTE_SKILLS_BASE_URL, p as setUI, s as logToFile, v as getBlockingServiceKeys } from "./debug-C9HmIrwx.js";
2
- import { n as analytics } from "./analytics-k76OWsl0.js";
3
- import { o as extractOAuthCode, t as getOrAskForProjectData } from "./setup-utils-Cb5uACEO.js";
4
- import { t as ApiError } from "./api-CmIWcW-U.js";
1
+ import { B as Integration, H as OAUTH_TIMEOUT_MS, K as POSTHOG_DOCS_URL, V as OAUTH_PORTS, X as POSTHOG_PRIVACY_URL, Y as POSTHOG_ORG_AI_SETTINGS_URL, d as relativeToInstallDir, et as POSTHOG_TERMS_URL, g as SIGNUP_WIZARD_READINESS_CONFIG, ht as WIZARD_TOOLS_MENU_FLAG_KEY, l as WIZARD_LOG_FILE, nt as REMOTE_SKILLS_BASE_URL, p as setUI, s as logToFile, v as getBlockingServiceKeys } from "./debug-CUmAeIdp.js";
2
+ import { n as analytics } from "./analytics-CVmeRvMK.js";
3
+ import { o as extractOAuthCode, t as getOrAskForProjectData } from "./setup-utils-CvCnesrl.js";
4
+ import { t as ApiError } from "./api-BYJ0F0jM.js";
5
5
  import { t as ADDITIONAL_FEATURE_LABELS } from "./wizard-session-tp4Zdbwl.js";
6
- import { i as wizardAbort } from "./wizard-abort-FuyIaI_0.js";
7
- import { a as formatTokenCount, i as formatCostUsd } from "./agent-runner-CV3qh_2p.js";
8
- import { x as fetchSkillMenu, y as downloadSkill } from "./agent-interface-B8roB2UP.js";
9
- import { S as getAuditChecks, _ as AUDIT_CHECKS_FILE, b as AUDIT_SEVERITY_STYLE, v as AUDIT_CHECKS_KEY, x as coerceAuditChecks } from "./yara-hooks-DdYRRxfH.js";
10
- import { t as FRAMEWORK_REGISTRY } from "./registry-DT58jEYr.js";
11
- import { b as detectProjectsWithAgent, m as Icons, p as Colors, t as SETUP_REPORT_FILE, v as getDetectedWarehouseSources } from "./posthog-integration-Do997QON.js";
6
+ import { i as wizardAbort } from "./wizard-abort-BcG8dYgK.js";
7
+ import { a as formatTokenCount, i as formatCostUsd } from "./agent-runner-BbAtU_Ue.js";
8
+ import { x as fetchSkillMenu, y as downloadSkill } from "./agent-interface-C9li2RGX.js";
9
+ import { S as getAuditChecks, _ as AUDIT_CHECKS_FILE, b as AUDIT_SEVERITY_STYLE, v as AUDIT_CHECKS_KEY, x as coerceAuditChecks } from "./yara-hooks-B8GIO827.js";
10
+ import { t as FRAMEWORK_REGISTRY } from "./registry-qI149NRV.js";
11
+ import { b as detectProjectsWithAgent, m as Icons, p as Colors, t as SETUP_REPORT_FILE, v as getDetectedWarehouseSources } from "./posthog-integration-MkDzf1_B.js";
12
12
  import { S as STRIPE_SDKS, _ as SOURCE_MAPS_CONTEXT_KEYS, b as getContentBlocks, d as Program, f as getProgramConfig, g as DISPLAY_NAME, h as AUTOMATABLE_VARIANTS, m as SELF_DRIVING_INTEGRATE_PATH_KEY, n as useKeyBindings, p as detectSelfDrivingIntegrationProjects, t as PickerMenu, x as POSTHOG_SDKS, y as fetchHealthIssues } from "./bin.js";
13
- import { r as totalTokenCount, t as WizardStore } from "./store-4sj-vWr5.js";
14
- import { A as ConfirmationInput, C as TabContainer, D as LinkText, E as LogViewer, F as SplitView, M as useStdoutDimensions, N as ProgressList, O as extractUrls, P as LoadingBox, S as HNViewer, T as EventPlanViewer, _ as SEVERITY_ORDER, a as useSkillEntry, b as LearnCard, c as SlackConnectScreen, d as AuditChecksViewer, f as McpSuggestedPromptsScreen, g as SEVERITY_LABEL, h as IssueTable, i as SkillSourceInfo, k as ModalOverlay, l as AUDIT_AREA_SLIDES, m as McpScreen, n as releaseTerminal, o as OutroScreen, r as AiOptInRequiredScreen, s as useDismissOnAnyKey, t as enterDarkTerminal, u as VisualBox, v as ServiceHealthList, w as ScreenContainer, y as TipsCard } from "./terminal-1RfyHQC2.js";
13
+ import { r as totalTokenCount, t as WizardStore } from "./store-BL89FJpU.js";
14
+ import { A as ConfirmationInput, C as TabContainer, D as LinkText, E as LogViewer, F as SplitView, M as useStdoutDimensions, N as ProgressList, O as extractUrls, P as LoadingBox, S as HNViewer, T as EventPlanViewer, _ as SEVERITY_ORDER, a as useSkillEntry, b as LearnCard, c as SlackConnectScreen, d as AuditChecksViewer, f as McpSuggestedPromptsScreen, g as SEVERITY_LABEL, h as IssueTable, i as SkillSourceInfo, k as ModalOverlay, l as AUDIT_AREA_SLIDES, m as McpScreen, n as releaseTerminal, o as OutroScreen, r as AiOptInRequiredScreen, s as useDismissOnAnyKey, t as enterDarkTerminal, u as VisualBox, v as ServiceHealthList, w as ScreenContainer, y as TipsCard } from "./terminal-CnxUzd0d.js";
15
15
  import { t as ALL_FEATURE_VALUES } from "./defaults-CtWMmC8s.js";
16
- import { t as startFileWatcher } from "./file-watcher-CBDCNQVV.js";
17
- 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-Bv2CBSil.js";
16
+ import { t as startFileWatcher } from "./file-watcher-Cslhvx_q.js";
17
+ 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-D1ylcWh3.js";
18
18
  import path from "path";
19
19
  import { join as join$1 } from "node:path";
20
20
  import { spawn, spawnSync } from "node:child_process";
@@ -1081,7 +1081,7 @@ const FrameworkPicker = ({ store, onComplete }) => {
1081
1081
  })),
1082
1082
  onSelect: (value) => {
1083
1083
  const integration = Array.isArray(value) ? value[0] : value;
1084
- import("./registry-DT58jEYr.js").then((n) => n.n).then(({ FRAMEWORK_REGISTRY }) => {
1084
+ import("./registry-qI149NRV.js").then((n) => n.n).then(({ FRAMEWORK_REGISTRY }) => {
1085
1085
  const config = FRAMEWORK_REGISTRY[integration];
1086
1086
  store.setFrameworkConfig(integration, config);
1087
1087
  store.setDetectedFramework(config.metadata.name);
@@ -2431,6 +2431,83 @@ const AgentSkillIntroScreen = ({ store }) => {
2431
2431
  });
2432
2432
  };
2433
2433
  //#endregion
2434
+ //#region src/ui/tui/screens/AiObservabilityIntroScreen.tsx
2435
+ const AiObservabilityIntroScreen = ({ store }) => {
2436
+ useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
2437
+ const [showingMoreInfo, setShowingMoreInfo] = useState(false);
2438
+ const { session } = store;
2439
+ const skillId = session.skillId ?? "ai-observability";
2440
+ const { skillEntry, fetchFailed } = useSkillEntry(skillId, session.localMcp);
2441
+ const body = showingMoreInfo ? /* @__PURE__ */ jsxs(Box, {
2442
+ flexDirection: "column",
2443
+ width: 56,
2444
+ children: [
2445
+ /* @__PURE__ */ jsx(Box, {
2446
+ marginBottom: 1,
2447
+ children: /* @__PURE__ */ jsxs(Text, { children: ["The wizard is an agent that executes PostHog tasks. Its code is open source: ", /* @__PURE__ */ jsx(Text, {
2448
+ color: "cyan",
2449
+ children: "https://github.com/PostHog/wizard"
2450
+ })] })
2451
+ }),
2452
+ /* @__PURE__ */ jsxs(Text, { children: [
2453
+ "The",
2454
+ " ",
2455
+ /* @__PURE__ */ jsx(Text, {
2456
+ color: "cyan",
2457
+ italic: true,
2458
+ children: "ai-observability"
2459
+ }),
2460
+ " ",
2461
+ "program wraps your LLM SDK calls with PostHog's OpenTelemetry-based tracing so every prompt, completion, tool call, token count, and cost lands in AI Observability. Supports OpenAI, Anthropic, Google, LangChain, Vercel AI, and other SDKs."
2462
+ ] }),
2463
+ /* @__PURE__ */ jsx(Box, {
2464
+ marginTop: 1,
2465
+ children: /* @__PURE__ */ jsx(SkillSourceInfo, {
2466
+ skillId,
2467
+ skillEntry,
2468
+ fetchFailed
2469
+ })
2470
+ })
2471
+ ]
2472
+ }) : /* @__PURE__ */ jsx(Box, {
2473
+ flexDirection: "column",
2474
+ alignItems: "center",
2475
+ children: /* @__PURE__ */ jsx(Text, { children: "Let's instrument your LLM calls with PostHog AI Observability." })
2476
+ });
2477
+ const menuOptions = showingMoreInfo ? [{
2478
+ label: "Back",
2479
+ value: "back"
2480
+ }] : [
2481
+ {
2482
+ label: "Continue",
2483
+ value: "continue"
2484
+ },
2485
+ {
2486
+ label: "More info",
2487
+ value: "more-info"
2488
+ },
2489
+ {
2490
+ label: "Cancel",
2491
+ value: "cancel"
2492
+ }
2493
+ ];
2494
+ const handleSelect = (value) => {
2495
+ if (value === "cancel") process.exit(0);
2496
+ else if (value === "more-info") setShowingMoreInfo(true);
2497
+ else if (value === "back") setShowingMoreInfo(false);
2498
+ else store.completeSetup();
2499
+ };
2500
+ return /* @__PURE__ */ jsx(IntroScreenLayout, {
2501
+ installDir: session.installDir,
2502
+ body,
2503
+ showDetection: !showingMoreInfo,
2504
+ programLabel: session.programLabel,
2505
+ skillId: session.skillId,
2506
+ menuOptions,
2507
+ onSelect: handleSelect
2508
+ });
2509
+ };
2510
+ //#endregion
2434
2511
  //#region src/ui/tui/screens/SelfDrivingIntroScreen.tsx
2435
2512
  /**
2436
2513
  * SelfDrivingIntroScreen — Welcome screen for the self-driving flow.
@@ -5218,7 +5295,7 @@ function createMcpSuggestedPromptsServices(store) {
5218
5295
  };
5219
5296
  }
5220
5297
  async function* runProductionPromptStreaming(args) {
5221
- const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming-D6OgW3lC.js");
5298
+ const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming-ClyJS8Vb.js");
5222
5299
  yield* runMcpPromptViaSdk(args);
5223
5300
  }
5224
5301
  //#endregion
@@ -5246,6 +5323,7 @@ function createScreens(store, services) {
5246
5323
  ["source-maps-outro"]: /* @__PURE__ */ jsx(SourceMapsOutroScreen, { store }),
5247
5324
  ["migration-intro"]: /* @__PURE__ */ jsx(MigrationIntroScreen, { store }),
5248
5325
  ["agent-skill-intro"]: /* @__PURE__ */ jsx(AgentSkillIntroScreen, { store }),
5326
+ ["ai-observability-intro"]: /* @__PURE__ */ jsx(AiObservabilityIntroScreen, { store }),
5249
5327
  ["self-driving-intro"]: /* @__PURE__ */ jsx(SelfDrivingIntroScreen, { store }),
5250
5328
  ["self-driving-integration-check"]: /* @__PURE__ */ jsx(SelfDrivingIntegrationCheckScreen, { store }),
5251
5329
  ["self-driving-integration-detect"]: /* @__PURE__ */ jsx(SelfDrivingIntegrationDetectScreen, { store }),
@@ -5394,4 +5472,4 @@ function startTUI(version, program = Program.PostHogIntegration) {
5394
5472
  //#endregion
5395
5473
  export { startTUI };
5396
5474
 
5397
- //# sourceMappingURL=start-tui-Cwc-PFma.js.map
5475
+ //# sourceMappingURL=start-tui-BBBem_0l.js.map