@posthog/wizard 2.22.0 → 2.23.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 (55) hide show
  1. package/dist/{AiOptInRequiredScreen-N6L80szR.js → AiOptInRequiredScreen-BOMyYFep.js} +48 -9
  2. package/dist/AiOptInRequiredScreen-BOMyYFep.js.map +1 -0
  3. package/dist/{add-mcp-server-to-clients-DqHCkHqM.js → add-mcp-server-to-clients-BEziI3z9.js} +4 -4
  4. package/dist/{add-mcp-server-to-clients-DqHCkHqM.js.map → add-mcp-server-to-clients-BEziI3z9.js.map} +1 -1
  5. package/dist/{agent-interface-DZmVoik2.js → agent-interface-DjMPlXl0.js} +6 -5
  6. package/dist/{agent-interface-DZmVoik2.js.map → agent-interface-DjMPlXl0.js.map} +1 -1
  7. package/dist/{agent-runner-CGFUXR97.js → agent-runner-Bv-7z-pQ.js} +8 -8
  8. package/dist/{agent-runner-CGFUXR97.js.map → agent-runner-Bv-7z-pQ.js.map} +1 -1
  9. package/dist/{analytics-C_lVPZQT.js → analytics-9D4eGgmT.js} +13 -2
  10. package/dist/analytics-9D4eGgmT.js.map +1 -0
  11. package/dist/{api-QI1lO_Bz.js → api-Dwd0B-E9.js} +3 -3
  12. package/dist/{api-QI1lO_Bz.js.map → api-Dwd0B-E9.js.map} +1 -1
  13. package/dist/bin.js +31 -31
  14. package/dist/{ci-install-CXkKR4A-.js → ci-install-DGXCpvKh.js} +4 -4
  15. package/dist/{ci-install-CXkKR4A-.js.map → ci-install-DGXCpvKh.js.map} +1 -1
  16. package/dist/{debug-D8QAez2V.js → debug-CgT5MmVB.js} +133 -29
  17. package/dist/debug-CgT5MmVB.js.map +1 -0
  18. package/dist/{debug-lPpecs0J.js → debug-DayHBBST.js} +1 -1
  19. package/dist/{environment-CMmzgZkN.js → environment-CI2pTYTG.js} +3 -3
  20. package/dist/{environment-CMmzgZkN.js.map → environment-CI2pTYTG.js.map} +1 -1
  21. package/dist/{interactive-Bu8YchJG.js → interactive-D52p_opJ.js} +2 -2
  22. package/dist/{interactive-Bu8YchJG.js.map → interactive-D52p_opJ.js.map} +1 -1
  23. package/dist/{mcp-prompt-streaming-mYw2LPZZ.js → mcp-prompt-streaming-tdoy9UJ2.js} +4 -4
  24. package/dist/{mcp-prompt-streaming-mYw2LPZZ.js.map → mcp-prompt-streaming-tdoy9UJ2.js.map} +1 -1
  25. package/dist/{non-interactive-De3tJM1y.js → non-interactive-6hadW20x.js} +2 -2
  26. package/dist/{non-interactive-De3tJM1y.js.map → non-interactive-6hadW20x.js.map} +1 -1
  27. package/dist/{package-manager-BVJnbp1u.js → package-manager-BI0J5E7t.js} +2 -2
  28. package/dist/{package-manager-BVJnbp1u.js.map → package-manager-BI0J5E7t.js.map} +1 -1
  29. package/dist/{playground-wyoq1yIH.js → playground-z4A5dHPv.js} +57 -19
  30. package/dist/playground-z4A5dHPv.js.map +1 -0
  31. package/dist/{posthog-integration-mrMF-2IP.js → posthog-integration-BWbZU9Xq.js} +11 -11
  32. package/dist/{posthog-integration-mrMF-2IP.js.map → posthog-integration-BWbZU9Xq.js.map} +1 -1
  33. package/dist/{provisioning-4zipVpbq.js → provisioning-B30Be2NA.js} +3 -3
  34. package/dist/{provisioning-4zipVpbq.js.map → provisioning-B30Be2NA.js.map} +1 -1
  35. package/dist/{registry-BGUo4PlM.js → registry-CD_DplSQ.js} +4 -4
  36. package/dist/{registry-BGUo4PlM.js.map → registry-CD_DplSQ.js.map} +1 -1
  37. package/dist/{setup-utils-DmhPyWkp.js → setup-utils-Dwgkk8AQ.js} +8 -8
  38. package/dist/{setup-utils-DmhPyWkp.js.map → setup-utils-Dwgkk8AQ.js.map} +1 -1
  39. package/dist/{start-tui-DaQiY_EB.js → start-tui-SLeEzlJs.js} +47 -19
  40. package/dist/start-tui-SLeEzlJs.js.map +1 -0
  41. package/dist/{steps-CrUceWR5.js → steps-B1gzyRkC.js} +6 -6
  42. package/dist/{steps-CrUceWR5.js.map → steps-B1gzyRkC.js.map} +1 -1
  43. package/dist/{telemetry-CCVjGq7l.js → telemetry-5rkeTd2_.js} +3 -3
  44. package/dist/{telemetry-CCVjGq7l.js.map → telemetry-5rkeTd2_.js.map} +1 -1
  45. package/dist/{urls-BNFpfcN8.js → urls-Cb4SI9kf.js} +2 -2
  46. package/dist/{urls-BNFpfcN8.js.map → urls-Cb4SI9kf.js.map} +1 -1
  47. package/dist/{wizard-abort-Bp2yxYAy.js → wizard-abort-DW2-ZjiS.js} +1 -1
  48. package/dist/{wizard-abort-BmYb0bG2.js → wizard-abort-DovHQa-j.js} +3 -3
  49. package/dist/{wizard-abort-BmYb0bG2.js.map → wizard-abort-DovHQa-j.js.map} +1 -1
  50. package/package.json +2 -2
  51. package/dist/AiOptInRequiredScreen-N6L80szR.js.map +0 -1
  52. package/dist/analytics-C_lVPZQT.js.map +0 -1
  53. package/dist/debug-D8QAez2V.js.map +0 -1
  54. package/dist/playground-wyoq1yIH.js.map +0 -1
  55. package/dist/start-tui-DaQiY_EB.js.map +0 -1
@@ -1,12 +1,12 @@
1
- import { M as POSTHOG_APP_URL, Q as getSkillsBaseUrl, g as SERVICE_LABELS, s as logToFile } from "./debug-D8QAez2V.js";
1
+ import { M as POSTHOG_APP_URL, Q as getSkillsBaseUrl, g as SERVICE_LABELS, s as logToFile, y as getBlockingServiceKeys } from "./debug-CgT5MmVB.js";
2
2
  import { n as isTaskStatus } from "./wizard-ui-YdGFRyu_.js";
3
- import { r as sessionProperties, t as analytics } from "./analytics-C_lVPZQT.js";
4
- import { i as withUtm, n as openTrackedLink } from "./telemetry-CCVjGq7l.js";
5
- import { n as getCloudUrlFromRegion } from "./urls-BNFpfcN8.js";
6
- import { a as fetchUserData, i as fetchSlackConnected } from "./api-QI1lO_Bz.js";
3
+ import { r as sessionProperties, t as analytics } from "./analytics-9D4eGgmT.js";
4
+ import { i as withUtm, n as openTrackedLink } from "./telemetry-5rkeTd2_.js";
5
+ import { n as getCloudUrlFromRegion } from "./urls-Cb4SI9kf.js";
6
+ import { a as fetchUserData, i as fetchSlackConnected } from "./api-Dwd0B-E9.js";
7
7
  import { i as buildSession } from "./wizard-session-G3VWD6hv.js";
8
- import { m as fetchSkillMenu, y as AUDIT_SEVERITY_STYLE } from "./agent-interface-DZmVoik2.js";
9
- import { c as computeVisibleRange, d as isObjectBlock, f as Colors, l as isClearBlock, p as Icons, s as TextBlock, u as isLinesBlock } from "./posthog-integration-mrMF-2IP.js";
8
+ import { m as fetchSkillMenu, y as AUDIT_SEVERITY_STYLE } from "./agent-interface-DjMPlXl0.js";
9
+ import { c as computeVisibleRange, d as isObjectBlock, f as Colors, l as isClearBlock, p as Icons, s as TextBlock, u as isLinesBlock } from "./posthog-integration-BWbZU9Xq.js";
10
10
  import { a as getProgramConfig, i as Program, l as getKindMeta, r as PROGRAM_REGISTRY } from "./bin.js";
11
11
  import { n as AVAILABLE_FEATURES, o as isAllFeaturesSelected, t as ALL_FEATURE_VALUES } from "./defaults-BNWIWzjc.js";
12
12
  import opn from "opn";
@@ -161,6 +161,40 @@ var WizardRouter = class {
161
161
  * the cap is tied to the window it feeds.
162
162
  */
163
163
  const MAX_STATUS_MESSAGES = 10;
164
+ /**
165
+ * Fired once per blocked readiness result, so we can quantify how often
166
+ * the wizard refuses to start and — crucially — split that between
167
+ * confirmed PostHog outages and probe-level reachability failures that
168
+ * are most likely the user's network. Helps us decide whether the
169
+ * health-check UX is over-firing.
170
+ */
171
+ function captureHealthCheckBlocked(result) {
172
+ try {
173
+ const health = result.health;
174
+ const blockingKeys = getBlockingServiceKeys(health);
175
+ const blockingStatuses = blockingKeys.map((k) => health[k]?.status);
176
+ const allNoConnection = blockingStatuses.length > 0 && blockingStatuses.every((s) => s === "no-connection");
177
+ const decision = blockingKeys.length === 1 && blockingKeys[0] === "githubReleases" ? "github-releases-down" : allNoConnection ? "no-connection" : "confirmed-outage";
178
+ const posthogStatus = health.posthogOverall?.status;
179
+ const retriesUsed = Math.max(0, ...[
180
+ "llmGateway",
181
+ "mcp",
182
+ "githubReleases"
183
+ ].map((k) => {
184
+ const m = (health[k]?.rawIndicator ?? "").match(/attempts=(\d+)/);
185
+ return m ? Number(m[1]) - 1 : 0;
186
+ }));
187
+ analytics.wizardCapture("health check blocked", {
188
+ decision,
189
+ blocking_keys: blockingKeys,
190
+ posthog_status_reachable: posthogStatus !== "no-connection",
191
+ posthog_status_reports_incident: posthogStatus === "down" || posthogStatus === "degraded",
192
+ retries_used: retriesUsed
193
+ });
194
+ } catch (err) {
195
+ logToFile(`[health-checks] failed to capture analytics: ${err instanceof Error ? err.message : String(err)}`);
196
+ }
197
+ }
164
198
  var WizardStore = class {
165
199
  $session = map(buildSession({}));
166
200
  $statusMessages = atom([]);
@@ -370,6 +404,7 @@ var WizardStore = class {
370
404
  }
371
405
  setReadinessResult(result) {
372
406
  this.$session.setKey("readinessResult", result);
407
+ if (result && result.decision === "no") captureHealthCheckBlocked(result);
373
408
  this.emitChange();
374
409
  }
375
410
  /** User dismissed the blocking outage screen. Gate resolves via _checkGates(). */
@@ -2544,6 +2579,10 @@ function statusIcon(status) {
2544
2579
  icon: Icons.squareFilled,
2545
2580
  color: "#DC9300"
2546
2581
  };
2582
+ case "no-connection": return {
2583
+ icon: Icons.squareFilled,
2584
+ color: "gray"
2585
+ };
2547
2586
  case "healthy": return {
2548
2587
  icon: Icons.check,
2549
2588
  color: "green"
@@ -3860,7 +3899,7 @@ var neutralCrossSell = [{
3860
3899
  }];
3861
3900
  var slackApp = {
3862
3901
  "learnMoreUrl": "https://posthog.com/slack",
3863
- "setupUrl": "https://app.posthog.com/settings/project-integrations#integration-slack",
3902
+ "setupUrl": "https://app.posthog.com/integrations/slack",
3864
3903
  "headline": "@PostHog in Slack",
3865
3904
  "pitch": "Ask about your product data, debug issues, and generate PRs without leaving the thread.",
3866
3905
  "capabilities": ["Tag @PostHog with a bug, edit, or a feature idea. It will spin up a sandboxed environment, plan, edit files, run tests, and open a draft PR.", "Tag @PostHog with any data question. It's the same SQL-writing, statistically-minded assistant as PostHog AI, but it responds where you send work memes."]
@@ -6350,4 +6389,4 @@ const AiOptInRequiredScreen = ({ store }) => {
6350
6389
  //#endregion
6351
6390
  export { useKeyBindings as A, EventPlanViewer as C, GroupedPickerMenu as D, ConfirmationInput as E, WizardStore as F, LoadingBox as M, SplitView as N, useStdoutDimensions as O, CardLayout as P, ScreenContainer as S, ModalOverlay as T, TipsCard as _, SlackConnectScreen as a, HNViewer as b, VisualBox as c, TAILORED_ROLES as d, McpScreen as f, ServiceHealthList as g, SEVERITY_ORDER as h, OutroScreen as i, ProgressList as j, PickerMenu as k, AuditChecksViewer as l, SEVERITY_LABEL as m, SkillSourceInfo as n, AUDIT_3000_AREA_SLIDES as o, IssueTable as p, useSkillEntry as r, AUDIT_AREA_SLIDES as s, AiOptInRequiredScreen as t, McpSuggestedPromptsScreen as u, LearnCard as v, LogViewer as w, TabContainer as x, ContentSequencer as y };
6352
6391
 
6353
- //# sourceMappingURL=AiOptInRequiredScreen-N6L80szR.js.map
6392
+ //# sourceMappingURL=AiOptInRequiredScreen-BOMyYFep.js.map