@posthog/wizard 2.20.0 → 2.21.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.
- package/dist/{slides-BEshbXqG.js → OutroScreen-CqF6SdBo.js} +332 -8
- package/dist/OutroScreen-CqF6SdBo.js.map +1 -0
- package/dist/{add-mcp-server-to-clients-iV7BuQpD.js → add-mcp-server-to-clients-DQHGhzt6.js} +4 -4
- package/dist/{add-mcp-server-to-clients-iV7BuQpD.js.map → add-mcp-server-to-clients-DQHGhzt6.js.map} +1 -1
- package/dist/{agent-interface-B-LAvrNL.js → agent-interface-DE7txTqh.js} +5 -5
- package/dist/{agent-interface-B-LAvrNL.js.map → agent-interface-DE7txTqh.js.map} +1 -1
- package/dist/{agent-runner-w2Qu9M13.js → agent-runner-DUZ5OD6e.js} +8 -8
- package/dist/{agent-runner-w2Qu9M13.js.map → agent-runner-DUZ5OD6e.js.map} +1 -1
- package/dist/{analytics-C8lJzXjY.js → analytics-Bl5DPj_0.js} +2 -2
- package/dist/{analytics-C8lJzXjY.js.map → analytics-Bl5DPj_0.js.map} +1 -1
- package/dist/{api-eUlUinVy.js → api-DuA0_88V.js} +3 -3
- package/dist/{api-eUlUinVy.js.map → api-DuA0_88V.js.map} +1 -1
- package/dist/bin.js +29 -29
- package/dist/{ci-install-CSo7Q1pK.js → ci-install-BnOYI4mZ.js} +4 -4
- package/dist/{ci-install-CSo7Q1pK.js.map → ci-install-BnOYI4mZ.js.map} +1 -1
- package/dist/{debug-CTViFiF-.js → debug-BVC48wlb.js} +1 -1
- package/dist/{debug-BJu_sS4l.js → debug-h7Z9zEbD.js} +2 -2
- package/dist/{debug-BJu_sS4l.js.map → debug-h7Z9zEbD.js.map} +1 -1
- package/dist/{environment-Dk_dWk3t.js → environment-uaLmtlH_.js} +3 -3
- package/dist/{environment-Dk_dWk3t.js.map → environment-uaLmtlH_.js.map} +1 -1
- package/dist/{interactive-BS2rIf1v.js → interactive-CW5gjyDd.js} +2 -2
- package/dist/{interactive-BS2rIf1v.js.map → interactive-CW5gjyDd.js.map} +1 -1
- package/dist/{mcp-prompt-streaming-BiMrlLl0.js → mcp-prompt-streaming-DMDwaark.js} +4 -4
- package/dist/{mcp-prompt-streaming-BiMrlLl0.js.map → mcp-prompt-streaming-DMDwaark.js.map} +1 -1
- package/dist/{non-interactive-C39d_KIp.js → non-interactive-DJrVQ4nS.js} +2 -2
- package/dist/{non-interactive-C39d_KIp.js.map → non-interactive-DJrVQ4nS.js.map} +1 -1
- package/dist/{package-manager-BfOTvFt-.js → package-manager-DCUBRbr-.js} +2 -2
- package/dist/{package-manager-BfOTvFt-.js.map → package-manager-DCUBRbr-.js.map} +1 -1
- package/dist/{playground-3OeRB7JU.js → playground-DCVaVeVD.js} +127 -4
- package/dist/playground-DCVaVeVD.js.map +1 -0
- package/dist/{posthog-integration-8iTgqy2J.js → posthog-integration-ChdwFPMj.js} +10 -10
- package/dist/{posthog-integration-8iTgqy2J.js.map → posthog-integration-ChdwFPMj.js.map} +1 -1
- package/dist/{provisioning-DxaT7bWw.js → provisioning-GeMkBMSR.js} +3 -3
- package/dist/{provisioning-DxaT7bWw.js.map → provisioning-GeMkBMSR.js.map} +1 -1
- package/dist/{registry-apQfB3rf.js → registry-VSSRH3sU.js} +4 -4
- package/dist/{registry-apQfB3rf.js.map → registry-VSSRH3sU.js.map} +1 -1
- package/dist/{setup-utils-B9xqAXXl.js → setup-utils-BfV4pydt.js} +10 -9
- package/dist/setup-utils-BfV4pydt.js.map +1 -0
- package/dist/{start-tui-CCpKnZOY.js → start-tui-BRvm5VP9.js} +14 -336
- package/dist/start-tui-BRvm5VP9.js.map +1 -0
- package/dist/{steps-DKbDDnVH.js → steps-DA4uvSbg.js} +6 -6
- package/dist/{steps-DKbDDnVH.js.map → steps-DA4uvSbg.js.map} +1 -1
- package/dist/{telemetry-DUeOcmpo.js → telemetry-BRAonUea.js} +2 -2
- package/dist/{telemetry-DUeOcmpo.js.map → telemetry-BRAonUea.js.map} +1 -1
- package/dist/{urls-B6wBIwr1.js → urls-B66Ib2jT.js} +2 -2
- package/dist/{urls-B6wBIwr1.js.map → urls-B66Ib2jT.js.map} +1 -1
- package/dist/{wizard-abort-DhGgTlUA.js → wizard-abort-D1_DnFjm.js} +3 -3
- package/dist/{wizard-abort-DhGgTlUA.js.map → wizard-abort-D1_DnFjm.js.map} +1 -1
- package/dist/{wizard-abort-D8XZdVAR.js → wizard-abort-gMB1eV6T.js} +1 -1
- package/package.json +1 -1
- package/dist/playground-3OeRB7JU.js.map +0 -1
- package/dist/setup-utils-B9xqAXXl.js.map +0 -1
- package/dist/slides-BEshbXqG.js.map +0 -1
- package/dist/start-tui-CCpKnZOY.js.map +0 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { g as SERVICE_LABELS, s as logToFile } from "./debug-
|
|
1
|
+
import { g as SERVICE_LABELS, s as logToFile } from "./debug-h7Z9zEbD.js";
|
|
2
2
|
import { n as isTaskStatus } from "./wizard-ui-YdGFRyu_.js";
|
|
3
|
-
import { r as sessionProperties, t as analytics } from "./analytics-
|
|
3
|
+
import { r as sessionProperties, t as analytics } from "./analytics-Bl5DPj_0.js";
|
|
4
|
+
import { i as fetchSlackConnected } from "./api-DuA0_88V.js";
|
|
4
5
|
import { i as buildSession } from "./wizard-session-G3VWD6hv.js";
|
|
5
|
-
import { y as AUDIT_SEVERITY_STYLE } from "./agent-interface-
|
|
6
|
-
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-
|
|
6
|
+
import { y as AUDIT_SEVERITY_STYLE } from "./agent-interface-DE7txTqh.js";
|
|
7
|
+
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-ChdwFPMj.js";
|
|
7
8
|
import { a as getProgramConfig, i as Program, l as getKindMeta, r as PROGRAM_REGISTRY } from "./bin.js";
|
|
8
9
|
import { n as AVAILABLE_FEATURES, o as isAllFeaturesSelected, t as ALL_FEATURE_VALUES } from "./defaults-BNWIWzjc.js";
|
|
9
10
|
import * as fs$1 from "fs";
|
|
@@ -1988,6 +1989,8 @@ const TabContainer = ({ tabs, statusMessage, expandableStatus = false, store })
|
|
|
1988
1989
|
/* @__PURE__ */ jsx(Box, {
|
|
1989
1990
|
gap: 1,
|
|
1990
1991
|
paddingX: 1,
|
|
1992
|
+
flexWrap: "wrap",
|
|
1993
|
+
flexShrink: 0,
|
|
1991
1994
|
children: tabs.map((tab, i) => /* @__PURE__ */ jsx(Text, {
|
|
1992
1995
|
inverse: i === activeTab,
|
|
1993
1996
|
color: i === activeTab ? Colors.accent : Colors.muted,
|
|
@@ -4028,12 +4031,12 @@ var Phase = /* @__PURE__ */ function(Phase) {
|
|
|
4028
4031
|
Phase["Done"] = "done";
|
|
4029
4032
|
return Phase;
|
|
4030
4033
|
}(Phase || {});
|
|
4031
|
-
var ChoiceValue = /* @__PURE__ */ function(ChoiceValue) {
|
|
4034
|
+
var ChoiceValue$1 = /* @__PURE__ */ function(ChoiceValue) {
|
|
4032
4035
|
ChoiceValue["Login"] = "login";
|
|
4033
4036
|
ChoiceValue["ConnectSlack"] = "connect-slack";
|
|
4034
4037
|
ChoiceValue["Exit"] = "exit";
|
|
4035
4038
|
return ChoiceValue;
|
|
4036
|
-
}(ChoiceValue || {});
|
|
4039
|
+
}(ChoiceValue$1 || {});
|
|
4037
4040
|
const MAX_PROMPT_RUNS = 5;
|
|
4038
4041
|
const FOLLOW_UP_DELAY_MS = 3e3;
|
|
4039
4042
|
const McpSuggestedPromptsScreen = ({ store, services }) => {
|
|
@@ -5640,6 +5643,327 @@ const AUDIT_3000_AREA_SLIDES = [
|
|
|
5640
5643
|
}
|
|
5641
5644
|
];
|
|
5642
5645
|
//#endregion
|
|
5643
|
-
|
|
5646
|
+
//#region src/ui/tui/screens/SlackConnectScreen.tsx
|
|
5647
|
+
/**
|
|
5648
|
+
* SlackConnectScreen — the dedicated "Connect Slack" step shown after the
|
|
5649
|
+
* MCP tutorial (`wizard mcp tutorial`) and after a successful install
|
|
5650
|
+
* (`wizard mcp add`).
|
|
5651
|
+
*
|
|
5652
|
+
* Presents the PostHog Slack app plus role-tailored use-cases. The copy
|
|
5653
|
+
* adapts to whether Slack is already connected (polled while the screen
|
|
5654
|
+
* is up, held as local state):
|
|
5655
|
+
* • not connected (or unknown) — nudge + "Open Slack setup", which
|
|
5656
|
+
* launches the browser at the integration settings page and keeps
|
|
5657
|
+
* the screen alive; the poll flips it to connected once the user
|
|
5658
|
+
* finishes the manual OAuth step in the browser.
|
|
5659
|
+
* • already connected — confirm it and skip the connect CTA, so users
|
|
5660
|
+
* who already have it aren't nagged.
|
|
5661
|
+
* "Skip" / "Done" / esc dismiss the step (`slackStepDismissed`) and let
|
|
5662
|
+
* the router advance to exit.
|
|
5663
|
+
*/
|
|
5664
|
+
var ChoiceValue = /* @__PURE__ */ function(ChoiceValue) {
|
|
5665
|
+
ChoiceValue["Open"] = "open";
|
|
5666
|
+
ChoiceValue["Skip"] = "skip";
|
|
5667
|
+
return ChoiceValue;
|
|
5668
|
+
}(ChoiceValue || {});
|
|
5669
|
+
const POLL_INTERVAL_MS = 3e3;
|
|
5670
|
+
const SlackConnectScreen = ({ store }) => {
|
|
5671
|
+
useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
|
|
5672
|
+
const role = store.session.roleAtOrganization;
|
|
5673
|
+
const slack = getSlackAppCard();
|
|
5674
|
+
useEffect(() => {
|
|
5675
|
+
analytics.wizardCapture("slack connect shown", { role });
|
|
5676
|
+
}, []);
|
|
5677
|
+
const connected = store.session.slackConnected === true;
|
|
5678
|
+
const credentials = store.session.credentials;
|
|
5679
|
+
useEffect(() => {
|
|
5680
|
+
if (!credentials || connected) return;
|
|
5681
|
+
let cancelled = false;
|
|
5682
|
+
let timer;
|
|
5683
|
+
const controller = new AbortController();
|
|
5684
|
+
const check = () => {
|
|
5685
|
+
fetchSlackConnected(credentials.accessToken, credentials.projectId, credentials.host, controller.signal).then((isConnected) => {
|
|
5686
|
+
if (cancelled) return;
|
|
5687
|
+
if (isConnected) store.setSlackConnected(true);
|
|
5688
|
+
else timer = setTimeout(check, POLL_INTERVAL_MS);
|
|
5689
|
+
}).catch((err) => {
|
|
5690
|
+
if (cancelled) return;
|
|
5691
|
+
analytics.captureException(err instanceof Error ? err : new Error(String(err)), { step: "slack_connected_check" });
|
|
5692
|
+
});
|
|
5693
|
+
};
|
|
5694
|
+
check();
|
|
5695
|
+
return () => {
|
|
5696
|
+
cancelled = true;
|
|
5697
|
+
if (timer) clearTimeout(timer);
|
|
5698
|
+
controller.abort();
|
|
5699
|
+
};
|
|
5700
|
+
}, [
|
|
5701
|
+
credentials,
|
|
5702
|
+
connected,
|
|
5703
|
+
store
|
|
5704
|
+
]);
|
|
5705
|
+
const dismiss = () => {
|
|
5706
|
+
analytics.wizardCapture("slack connect skipped", {
|
|
5707
|
+
role,
|
|
5708
|
+
connected
|
|
5709
|
+
});
|
|
5710
|
+
store.setSlackStepDismissed();
|
|
5711
|
+
};
|
|
5712
|
+
const handleSelect = (value) => {
|
|
5713
|
+
if ((Array.isArray(value) ? value[0] : value) === "open") {
|
|
5714
|
+
analytics.wizardCapture("slack connect opened", { role });
|
|
5715
|
+
opn(slack.setupUrl, { wait: false }).catch(() => {});
|
|
5716
|
+
return;
|
|
5717
|
+
}
|
|
5718
|
+
dismiss();
|
|
5719
|
+
};
|
|
5720
|
+
useKeyBindings("slack-connect", [{
|
|
5721
|
+
match: "escape",
|
|
5722
|
+
label: "esc",
|
|
5723
|
+
action: connected ? "done" : "skip",
|
|
5724
|
+
handler: () => dismiss()
|
|
5725
|
+
}]);
|
|
5726
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
5727
|
+
flexDirection: "column",
|
|
5728
|
+
flexGrow: 1,
|
|
5729
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
5730
|
+
marginTop: 1,
|
|
5731
|
+
flexDirection: "column",
|
|
5732
|
+
children: [
|
|
5733
|
+
connected ? /* @__PURE__ */ jsxs(Text, {
|
|
5734
|
+
bold: true,
|
|
5735
|
+
color: Colors.success,
|
|
5736
|
+
children: [Icons.check, " Slack connected"]
|
|
5737
|
+
}) : /* @__PURE__ */ jsx(Text, {
|
|
5738
|
+
bold: true,
|
|
5739
|
+
color: Colors.accent,
|
|
5740
|
+
children: slack.headline
|
|
5741
|
+
}),
|
|
5742
|
+
/* @__PURE__ */ jsx(Box, {
|
|
5743
|
+
marginTop: 1,
|
|
5744
|
+
children: /* @__PURE__ */ jsx(Text, { children: connected ? "Slack is connected — here's what you can do:" : slack.pitch })
|
|
5745
|
+
}),
|
|
5746
|
+
/* @__PURE__ */ jsx(Box, {
|
|
5747
|
+
marginTop: 1,
|
|
5748
|
+
flexDirection: "column",
|
|
5749
|
+
children: slack.capabilities.map((capability, i) => /* @__PURE__ */ jsx(Box, {
|
|
5750
|
+
marginTop: i === 0 ? 0 : 1,
|
|
5751
|
+
children: /* @__PURE__ */ jsxs(Text, { children: [/* @__PURE__ */ jsxs(Text, {
|
|
5752
|
+
color: "cyan",
|
|
5753
|
+
children: [Icons.diamond, " "]
|
|
5754
|
+
}), capability] })
|
|
5755
|
+
}, i))
|
|
5756
|
+
}),
|
|
5757
|
+
/* @__PURE__ */ jsxs(Box, {
|
|
5758
|
+
marginTop: 1,
|
|
5759
|
+
flexDirection: "column",
|
|
5760
|
+
children: [!connected && /* @__PURE__ */ jsxs(Text, {
|
|
5761
|
+
dimColor: true,
|
|
5762
|
+
children: ["Connect it: ", /* @__PURE__ */ jsx(Text, {
|
|
5763
|
+
color: "cyan",
|
|
5764
|
+
children: slack.setupUrl
|
|
5765
|
+
})]
|
|
5766
|
+
}), /* @__PURE__ */ jsxs(Text, {
|
|
5767
|
+
dimColor: true,
|
|
5768
|
+
children: ["Learn more: ", /* @__PURE__ */ jsx(Text, {
|
|
5769
|
+
color: "cyan",
|
|
5770
|
+
children: slack.learnMoreUrl
|
|
5771
|
+
})]
|
|
5772
|
+
})]
|
|
5773
|
+
}),
|
|
5774
|
+
/* @__PURE__ */ jsx(Box, {
|
|
5775
|
+
marginTop: 1,
|
|
5776
|
+
children: /* @__PURE__ */ jsx(PickerMenu, {
|
|
5777
|
+
options: connected ? [{
|
|
5778
|
+
label: "Done",
|
|
5779
|
+
value: "skip"
|
|
5780
|
+
}] : [{
|
|
5781
|
+
label: "Open Slack setup",
|
|
5782
|
+
value: "open"
|
|
5783
|
+
}, {
|
|
5784
|
+
label: "Skip",
|
|
5785
|
+
value: "skip"
|
|
5786
|
+
}],
|
|
5787
|
+
onSelect: handleSelect
|
|
5788
|
+
})
|
|
5789
|
+
})
|
|
5790
|
+
]
|
|
5791
|
+
})
|
|
5792
|
+
});
|
|
5793
|
+
};
|
|
5794
|
+
//#endregion
|
|
5795
|
+
//#region src/ui/tui/screens/OutroScreen.tsx
|
|
5796
|
+
/**
|
|
5797
|
+
* OutroScreen — Default post-run summary.
|
|
5798
|
+
*
|
|
5799
|
+
* Renders the success / error / cancel views from `outroData`. Programs
|
|
5800
|
+
* that need a different success view (e.g. with extra summary content)
|
|
5801
|
+
* ship their own screen component (see audit/AuditOutroScreen.tsx).
|
|
5802
|
+
*/
|
|
5803
|
+
const OutroScreen = ({ store }) => {
|
|
5804
|
+
useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
|
|
5805
|
+
useInput(() => {
|
|
5806
|
+
store.setOutroDismissed();
|
|
5807
|
+
});
|
|
5808
|
+
const outroData = store.session.outroData;
|
|
5809
|
+
if (!outroData) return /* @__PURE__ */ jsx(Box, {
|
|
5810
|
+
flexDirection: "column",
|
|
5811
|
+
flexGrow: 1,
|
|
5812
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
5813
|
+
dimColor: true,
|
|
5814
|
+
children: "Finishing up..."
|
|
5815
|
+
})
|
|
5816
|
+
});
|
|
5817
|
+
return /* @__PURE__ */ jsxs(Box, {
|
|
5818
|
+
flexDirection: "column",
|
|
5819
|
+
flexGrow: 1,
|
|
5820
|
+
children: [
|
|
5821
|
+
outroData.kind === "success" && /* @__PURE__ */ jsxs(Box, {
|
|
5822
|
+
flexDirection: "column",
|
|
5823
|
+
children: [
|
|
5824
|
+
/* @__PURE__ */ jsxs(Text, {
|
|
5825
|
+
color: "green",
|
|
5826
|
+
bold: true,
|
|
5827
|
+
children: ["✔ ", outroData.message || "Done!"]
|
|
5828
|
+
}),
|
|
5829
|
+
outroData.body && /* @__PURE__ */ jsx(Box, {
|
|
5830
|
+
marginTop: 1,
|
|
5831
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
5832
|
+
dimColor: true,
|
|
5833
|
+
children: outroData.body
|
|
5834
|
+
})
|
|
5835
|
+
}),
|
|
5836
|
+
outroData.reportFile && /* @__PURE__ */ jsx(Box, {
|
|
5837
|
+
marginTop: 1,
|
|
5838
|
+
children: /* @__PURE__ */ jsxs(Text, { children: [
|
|
5839
|
+
"Check ",
|
|
5840
|
+
/* @__PURE__ */ jsxs(Text, {
|
|
5841
|
+
bold: true,
|
|
5842
|
+
children: ["./", outroData.reportFile]
|
|
5843
|
+
}),
|
|
5844
|
+
" for details"
|
|
5845
|
+
] })
|
|
5846
|
+
}),
|
|
5847
|
+
outroData.changes && outroData.changes.length > 0 && /* @__PURE__ */ jsxs(Box, {
|
|
5848
|
+
flexDirection: "column",
|
|
5849
|
+
marginTop: 1,
|
|
5850
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
5851
|
+
color: "cyan",
|
|
5852
|
+
bold: true,
|
|
5853
|
+
children: "What the agent did:"
|
|
5854
|
+
}), outroData.changes.map((change, i) => /* @__PURE__ */ jsxs(Text, { children: ["• ", change] }, i))]
|
|
5855
|
+
}),
|
|
5856
|
+
store.eventPlan.length > 0 && /* @__PURE__ */ jsxs(Box, {
|
|
5857
|
+
flexDirection: "column",
|
|
5858
|
+
marginTop: 1,
|
|
5859
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
5860
|
+
color: "cyan",
|
|
5861
|
+
bold: true,
|
|
5862
|
+
children: "Events added:"
|
|
5863
|
+
}), store.eventPlan.map((event) => /* @__PURE__ */ jsxs(Text, { children: [
|
|
5864
|
+
"• ",
|
|
5865
|
+
/* @__PURE__ */ jsx(Text, {
|
|
5866
|
+
bold: true,
|
|
5867
|
+
children: event.name
|
|
5868
|
+
}),
|
|
5869
|
+
/* @__PURE__ */ jsxs(Text, {
|
|
5870
|
+
dimColor: true,
|
|
5871
|
+
children: [" ", event.description]
|
|
5872
|
+
})
|
|
5873
|
+
] }, event.name))]
|
|
5874
|
+
}),
|
|
5875
|
+
outroData.dashboardUrl && /* @__PURE__ */ jsx(Box, {
|
|
5876
|
+
marginTop: 1,
|
|
5877
|
+
children: /* @__PURE__ */ jsxs(Text, { children: [
|
|
5878
|
+
"We've also made you a dashboard:",
|
|
5879
|
+
" ",
|
|
5880
|
+
/* @__PURE__ */ jsx(Text, {
|
|
5881
|
+
color: "cyan",
|
|
5882
|
+
children: outroData.dashboardUrl
|
|
5883
|
+
})
|
|
5884
|
+
] })
|
|
5885
|
+
}),
|
|
5886
|
+
outroData.notebookUrl && /* @__PURE__ */ jsx(Box, {
|
|
5887
|
+
marginTop: 1,
|
|
5888
|
+
children: /* @__PURE__ */ jsxs(Text, { children: [
|
|
5889
|
+
"And uploaded the report to a PostHog notebook:",
|
|
5890
|
+
" ",
|
|
5891
|
+
/* @__PURE__ */ jsx(Text, {
|
|
5892
|
+
color: "cyan",
|
|
5893
|
+
children: outroData.notebookUrl
|
|
5894
|
+
})
|
|
5895
|
+
] })
|
|
5896
|
+
}),
|
|
5897
|
+
outroData.docsUrl && /* @__PURE__ */ jsx(Box, {
|
|
5898
|
+
marginTop: 1,
|
|
5899
|
+
children: /* @__PURE__ */ jsxs(Text, { children: ["Learn more: ", /* @__PURE__ */ jsx(Text, {
|
|
5900
|
+
color: "cyan",
|
|
5901
|
+
children: outroData.docsUrl
|
|
5902
|
+
})] })
|
|
5903
|
+
}),
|
|
5904
|
+
outroData.continueUrl && /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Text, { children: [
|
|
5905
|
+
"Continue onboarding:",
|
|
5906
|
+
" ",
|
|
5907
|
+
/* @__PURE__ */ jsx(Text, {
|
|
5908
|
+
color: "cyan",
|
|
5909
|
+
children: outroData.continueUrl
|
|
5910
|
+
})
|
|
5911
|
+
] }) }),
|
|
5912
|
+
/* @__PURE__ */ jsx(Box, {
|
|
5913
|
+
marginTop: 1,
|
|
5914
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
5915
|
+
dimColor: true,
|
|
5916
|
+
children: "Note: This wizard uses an LLM agent to analyze and modify your project. Please review the changes made."
|
|
5917
|
+
})
|
|
5918
|
+
}),
|
|
5919
|
+
/* @__PURE__ */ jsx(Text, {
|
|
5920
|
+
dimColor: true,
|
|
5921
|
+
children: "How did this work for you? Drop us a line: wizard@posthog.com"
|
|
5922
|
+
})
|
|
5923
|
+
]
|
|
5924
|
+
}),
|
|
5925
|
+
outroData.kind === "error" && /* @__PURE__ */ jsxs(Box, {
|
|
5926
|
+
flexDirection: "column",
|
|
5927
|
+
children: [
|
|
5928
|
+
/* @__PURE__ */ jsxs(Text, {
|
|
5929
|
+
color: "red",
|
|
5930
|
+
bold: true,
|
|
5931
|
+
children: ["✘ ", outroData.message || "An error occurred"]
|
|
5932
|
+
}),
|
|
5933
|
+
outroData.body && /* @__PURE__ */ jsx(Box, {
|
|
5934
|
+
marginTop: 1,
|
|
5935
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
5936
|
+
dimColor: true,
|
|
5937
|
+
children: outroData.body
|
|
5938
|
+
})
|
|
5939
|
+
}),
|
|
5940
|
+
outroData.docsUrl && /* @__PURE__ */ jsx(Box, {
|
|
5941
|
+
marginTop: 1,
|
|
5942
|
+
children: /* @__PURE__ */ jsxs(Text, { children: ["Docs: ", /* @__PURE__ */ jsx(Text, {
|
|
5943
|
+
color: "cyan",
|
|
5944
|
+
children: outroData.docsUrl
|
|
5945
|
+
})] })
|
|
5946
|
+
})
|
|
5947
|
+
]
|
|
5948
|
+
}),
|
|
5949
|
+
outroData.kind === "cancel" && /* @__PURE__ */ jsx(Box, {
|
|
5950
|
+
flexDirection: "column",
|
|
5951
|
+
children: /* @__PURE__ */ jsxs(Text, {
|
|
5952
|
+
color: "yellow",
|
|
5953
|
+
children: ["■ ", outroData.message || "Cancelled"]
|
|
5954
|
+
})
|
|
5955
|
+
}),
|
|
5956
|
+
/* @__PURE__ */ jsx(Box, {
|
|
5957
|
+
marginTop: 1,
|
|
5958
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
5959
|
+
color: Colors.muted,
|
|
5960
|
+
children: "Press any key to continue"
|
|
5961
|
+
})
|
|
5962
|
+
})
|
|
5963
|
+
]
|
|
5964
|
+
});
|
|
5965
|
+
};
|
|
5966
|
+
//#endregion
|
|
5967
|
+
export { SplitView as A, ConfirmationInput as C, useKeyBindings as D, PickerMenu as E, WizardStore as M, ProgressList as O, ModalOverlay as S, useStdoutDimensions as T, HNViewer as _, VisualBox as a, EventPlanViewer as b, TAILORED_ROLES as c, SEVERITY_LABEL as d, SEVERITY_ORDER as f, ContentSequencer as g, LearnCard as h, AUDIT_AREA_SLIDES as i, CardLayout as j, LoadingBox as k, McpScreen as l, TipsCard as m, SlackConnectScreen as n, AuditChecksViewer as o, ServiceHealthList as p, AUDIT_3000_AREA_SLIDES as r, McpSuggestedPromptsScreen as s, OutroScreen as t, IssueTable as u, TabContainer as v, GroupedPickerMenu as w, LogViewer as x, ScreenContainer as y };
|
|
5644
5968
|
|
|
5645
|
-
//# sourceMappingURL=
|
|
5969
|
+
//# sourceMappingURL=OutroScreen-CqF6SdBo.js.map
|