@posthog/wizard 2.79.0 → 2.80.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/PickerMenu-m4CCPX4f.js +758 -0
- package/dist/PickerMenu-m4CCPX4f.js.map +1 -0
- package/dist/{agent-CNrEC-9v.js → agent-BkBbVuNq.js} +50 -45
- package/dist/agent-BkBbVuNq.js.map +1 -0
- package/dist/agent-QGK2YzlX.js +6 -0
- package/dist/{agent-interface-BXvmAm4c.js → agent-interface-CzyCmp7q.js} +87 -38
- package/dist/agent-interface-CzyCmp7q.js.map +1 -0
- package/dist/{agent-prompt-loader-DiKUbhi_.js → agent-prompt-loader-4wMxlYSX.js} +5 -5
- package/dist/{agent-prompt-loader-DiKUbhi_.js.map → agent-prompt-loader-4wMxlYSX.js.map} +1 -1
- package/dist/{analytics-VRYdebXW.js → analytics-B6q5PN7a.js} +5 -5
- package/dist/analytics-B6q5PN7a.js.map +1 -0
- package/dist/analytics-BXtfK9o7.js +2 -0
- package/dist/{api-DGuJTzjr.js → api-C3Dc4LFl.js} +4 -16
- package/dist/{api-DGuJTzjr.js.map → api-C3Dc4LFl.js.map} +1 -1
- package/dist/api-yNjrfZs2.js +2 -0
- package/dist/bin.js +5 -2960
- package/dist/bin.js.map +1 -1
- package/dist/{bounded-fs-Cpn129A4.js → bounded-fs-CC_NDtoP.js} +3 -3
- package/dist/{bounded-fs-Cpn129A4.js.map → bounded-fs-CC_NDtoP.js.map} +1 -1
- package/dist/check-screens.tsx +5 -5
- package/dist/{ci-install-BPA6gzEq.js → ci-install-DfcAMhlu.js} +9 -8
- package/dist/ci-install-DfcAMhlu.js.map +1 -0
- package/dist/{constants-CuJfQEcC.js → constants-DO4X70po.js} +3 -3
- package/dist/{constants-CuJfQEcC.js.map → constants-DO4X70po.js.map} +1 -1
- package/dist/{debug-B9k4ideV.js → debug-BueK5mRR.js} +1 -1
- package/dist/{debug-Cj-8vfXY.js → debug-DyARf5TF.js} +3 -3
- package/dist/debug-DyARf5TF.js.map +1 -0
- package/dist/{defaults-C6J7yL4O.js → defaults-DpfMnH2q.js} +2 -2
- package/dist/defaults-DpfMnH2q.js.map +1 -0
- package/dist/emit-BSetXzDV.js +69 -0
- package/dist/emit-BSetXzDV.js.map +1 -0
- package/dist/{endpoints-DnIX0pZH.js → endpoints-D-4KxZiB.js} +3 -3
- package/dist/{endpoints-DnIX0pZH.js.map → endpoints-D-4KxZiB.js.map} +1 -1
- package/dist/env-api-key-CHGLe0iz.js +2 -0
- package/dist/{env-api-key-BWdKpGEr.js → env-api-key-COf0U-Au.js} +3 -5
- package/dist/{env-api-key-BWdKpGEr.js.map → env-api-key-COf0U-Au.js.map} +1 -1
- package/dist/{environment-DZYUSCpV.js → environment-DrLaSsA8.js} +5 -10
- package/dist/{environment-DZYUSCpV.js.map → environment-DrLaSsA8.js.map} +1 -1
- package/dist/environment-hBj7ngmO.js +2 -0
- package/dist/{errors-ddDE6MbA.js → errors-C2domSkK.js} +3 -67
- package/dist/errors-C2domSkK.js.map +1 -0
- package/dist/{file-dEhr-l3n.js → file-CVA9ocIC.js} +4 -4
- package/dist/file-CVA9ocIC.js.map +1 -0
- package/dist/file-CmoKK_Pp.js +2 -0
- package/dist/{file-watcher-CPM-Nn9L.js → file-watcher-C3Su8vXm.js} +3 -3
- package/dist/file-watcher-C3Su8vXm.js.map +1 -0
- package/dist/{gateway-CVU1G0H3.js → gateway-BmjYUSua.js} +8 -7
- package/dist/{gateway-CVU1G0H3.js.map → gateway-BmjYUSua.js.map} +1 -1
- package/dist/{headless-ui-pY2xB5ug.js → headless-ui-CUbv12Yx.js} +3 -3
- package/dist/headless-ui-CUbv12Yx.js.map +1 -0
- package/dist/host-resolution-DVSb7kXb.js +114 -0
- package/dist/host-resolution-DVSb7kXb.js.map +1 -0
- package/dist/{add-mcp-server-to-clients-amlJWW7W.js → install-Bk5TNk27.js} +16 -26
- package/dist/install-Bk5TNk27.js.map +1 -0
- package/dist/install-F4wm3RSl.js +2 -0
- package/dist/interactive-C5LNvDj6.js +11 -0
- package/dist/interactive-C5LNvDj6.js.map +1 -0
- package/dist/{telemetry-Bpv-Mh5B.js → links-9LWZPSCq.js} +4 -13
- package/dist/links-9LWZPSCq.js.map +1 -0
- package/dist/{logging-ui-CUxNYF2t.js → logging-ui-p6XKVmTx.js} +6 -6
- package/dist/logging-ui-p6XKVmTx.js.map +1 -0
- package/dist/main-DKPjFHEV.js +1404 -0
- package/dist/main-DKPjFHEV.js.map +1 -0
- package/dist/{mcp-JcsBBnWv.js → mcp-Co8VRF62.js} +4 -4
- package/dist/{mcp-JcsBBnWv.js.map → mcp-Co8VRF62.js.map} +1 -1
- package/dist/mcp-install-smoke-test.ts +1 -1
- package/dist/{mcp-prompt-streaming-B-p_Pvb2.js → mcp-prompt-streaming-ljCVoQ9I.js} +6 -6
- package/dist/{mcp-prompt-streaming-B-p_Pvb2.js.map → mcp-prompt-streaming-ljCVoQ9I.js.map} +1 -1
- package/dist/{mint-failure-CZFZpHpW.js → mint-failure-C0HyvEwO.js} +105 -93
- package/dist/mint-failure-C0HyvEwO.js.map +1 -0
- package/dist/{models-DnAY67Lg.js → models-Dba8ITeo.js} +2 -2
- package/dist/{models-DnAY67Lg.js.map → models-Dba8ITeo.js.map} +1 -1
- package/dist/{non-interactive-DR1CWXY1.js → non-interactive-CLMJrj_7.js} +5 -4
- package/dist/non-interactive-CLMJrj_7.js.map +1 -0
- package/dist/{oauth-session-CQTFOk-I.js → oauth-session-D-RfcVmr.js} +2 -2
- package/dist/{oauth-session-CQTFOk-I.js.map → oauth-session-D-RfcVmr.js.map} +1 -1
- package/dist/{orchestrator-tools-CBdt-SXO.js → orchestrator-tools-CVJ1F9Ub.js} +3 -3
- package/dist/{orchestrator-tools-CBdt-SXO.js.map → orchestrator-tools-CVJ1F9Ub.js.map} +1 -1
- package/dist/package-json--ppioh2F.js +2 -0
- package/dist/{package-json-DY70kkNp.js → package-json-Cowya9-3.js} +2 -8
- package/dist/{package-json-DY70kkNp.js.map → package-json-Cowya9-3.js.map} +1 -1
- package/dist/{pi-BtqcLX3y.js → pi-B5YTBRDv.js} +20 -18
- package/dist/pi-B5YTBRDv.js.map +1 -0
- package/dist/{playground-Dz-ZVjBk.js → playground-BLsCfHmQ.js} +33 -33
- package/dist/playground-BLsCfHmQ.js.map +1 -0
- package/dist/posthog-B2E0hpZt.js +2 -0
- package/dist/{posthog-6Uqw_Eux.js → posthog-B42rt_1S.js} +4 -9
- package/dist/posthog-B42rt_1S.js.map +1 -0
- package/dist/project-data--L-WZyvj.js +2 -0
- package/dist/{setup-utils-dCViCC6s.js → project-data-BO9IXn9y.js} +566 -957
- package/dist/project-data-BO9IXn9y.js.map +1 -0
- package/dist/provisioning-C01REIU2.js +2 -0
- package/dist/{provisioning-Zf7yPcEs.js → provisioning-CLhuKqXH.js} +6 -73
- package/dist/provisioning-CLhuKqXH.js.map +1 -0
- package/dist/{queue-tools-B7_aCyd-.js → queue-tools-knnPQP0e.js} +4 -4
- package/dist/{queue-tools-B7_aCyd-.js.map → queue-tools-knnPQP0e.js.map} +1 -1
- package/dist/{registry-B6iLGorH.js → registry-B3rC5U4b.js} +7 -9
- package/dist/{registry-B6iLGorH.js.map → registry-B3rC5U4b.js.map} +1 -1
- package/dist/registry-BamsM7J9.js +2 -0
- package/dist/run-agent-legacy-CwUmPfQF.js +2 -0
- package/dist/{run-agent-legacy-6WcYMaR9.js → run-agent-legacy-DWBajsMh.js} +40 -114
- package/dist/run-agent-legacy-DWBajsMh.js.map +1 -0
- package/dist/runners-D1PqqpjA.js +834 -0
- package/dist/runners-D1PqqpjA.js.map +1 -0
- package/dist/{security-lkBwWbrK.js → security-BvdSFDuM.js} +5 -5
- package/dist/{security-lkBwWbrK.js.map → security-BvdSFDuM.js.map} +1 -1
- package/dist/setup-utils-ChXXTi1m.js +301 -0
- package/dist/setup-utils-ChXXTi1m.js.map +1 -0
- package/dist/{start-tui-oCWMgsDP.js → start-tui-DicLfgsj.js} +95 -91
- package/dist/start-tui-DicLfgsj.js.map +1 -0
- package/dist/{steps-gx0Pq4I4.js → steps-Hc28zVc_.js} +10 -10
- package/dist/steps-Hc28zVc_.js.map +1 -0
- package/dist/store-COCO6U0P.js +5 -0
- package/dist/{store-xYy_6Ruv.js → store-D3509G87.js} +67 -35
- package/dist/store-D3509G87.js.map +1 -0
- package/dist/{subagent-Bfy0sfhU.js → subagent-D_Sqak94.js} +3 -3
- package/dist/{subagent-Bfy0sfhU.js.map → subagent-D_Sqak94.js.map} +1 -1
- package/dist/{task-BOfw7GPc.js → task-DiTI6Sak.js} +19 -17
- package/dist/task-DiTI6Sak.js.map +1 -0
- package/dist/{wizard-ui-DoyOZxK8.js → task-status-CmrrR7zo.js} +2 -2
- package/dist/task-status-CmrrR7zo.js.map +1 -0
- package/dist/{task-stream-kYlm9qd0.js → task-stream-BckhG_cB.js} +11 -11
- package/dist/task-stream-BckhG_cB.js.map +1 -0
- package/dist/{tasks-Bbv_lOBG.js → tasks-ChZ_F1YP.js} +1 -1
- package/dist/{tasks-Bbv_lOBG.js.map → tasks-ChZ_F1YP.js.map} +1 -1
- package/dist/telemetry-BNKsDxNS.js +13 -0
- package/dist/telemetry-BNKsDxNS.js.map +1 -0
- package/dist/{terminal-D07EQ2y0.js → terminal-PK9bCLRi.js} +123 -97
- package/dist/terminal-PK9bCLRi.js.map +1 -0
- package/dist/{tools-Cc41af5W.js → tools-C8LQ8QFz.js} +9 -9
- package/dist/tools-C8LQ8QFz.js.map +1 -0
- package/dist/{ui-CGXtC7Vn.js → ui-tPNpM6vj.js} +3 -3
- package/dist/ui-tPNpM6vj.js.map +1 -0
- package/dist/urls-BI4kJ4qQ.js +67 -0
- package/dist/urls-BI4kJ4qQ.js.map +1 -0
- package/dist/{version-Cadof0Z_.js → version-5_ydHkM6.js} +2 -2
- package/dist/{version-Cadof0Z_.js.map → version-5_ydHkM6.js.map} +1 -1
- package/dist/wizard-abort-BVjqLyeA.js +3 -0
- package/dist/{wizard-abort-HDbP3YcS.js → wizard-abort-DBKtfnBR.js} +20 -17
- package/dist/wizard-abort-DBKtfnBR.js.map +1 -0
- package/dist/wizard-session-B7BHnay0.js +2 -0
- package/dist/{wizard-session-2w4Ru-Wz.js → wizard-session-BYw6LzpS.js} +30 -28
- package/dist/wizard-session-BYw6LzpS.js.map +1 -0
- package/dist/{yara-hooks-DCfROpZt.js → yara-hooks-C3L6lBij.js} +5 -5
- package/dist/{yara-hooks-DCfROpZt.js.map → yara-hooks-C3L6lBij.js.map} +1 -1
- package/dist/yara-hooks-CF_IsoaA.js +2 -0
- package/package.json +2 -3
- package/dist/add-mcp-server-to-clients-amlJWW7W.js.map +0 -1
- package/dist/agent-CNrEC-9v.js.map +0 -1
- package/dist/agent-interface-BXvmAm4c.js.map +0 -1
- package/dist/analytics-DxwRi2Hf.js +0 -2
- package/dist/analytics-VRYdebXW.js.map +0 -1
- package/dist/ci-install-BPA6gzEq.js.map +0 -1
- package/dist/debug-Cj-8vfXY.js.map +0 -1
- package/dist/defaults-C6J7yL4O.js.map +0 -1
- package/dist/errors-ddDE6MbA.js.map +0 -1
- package/dist/file-dEhr-l3n.js.map +0 -1
- package/dist/file-watcher-CPM-Nn9L.js.map +0 -1
- package/dist/headless-ui-pY2xB5ug.js.map +0 -1
- package/dist/interactive-BOGlinZe.js +0 -11
- package/dist/interactive-BOGlinZe.js.map +0 -1
- package/dist/logging-ui-CUxNYF2t.js.map +0 -1
- package/dist/mint-failure-CZFZpHpW.js.map +0 -1
- package/dist/non-interactive-DR1CWXY1.js.map +0 -1
- package/dist/pi-BtqcLX3y.js.map +0 -1
- package/dist/playground-Dz-ZVjBk.js.map +0 -1
- package/dist/posthog-6Uqw_Eux.js.map +0 -1
- package/dist/provisioning-Zf7yPcEs.js.map +0 -1
- package/dist/rolldown-runtime-B_-DWIq7.js +0 -15
- package/dist/run-agent-legacy-6WcYMaR9.js.map +0 -1
- package/dist/setup-utils-dCViCC6s.js.map +0 -1
- package/dist/start-tui-oCWMgsDP.js.map +0 -1
- package/dist/steps-gx0Pq4I4.js.map +0 -1
- package/dist/store-xYy_6Ruv.js.map +0 -1
- package/dist/task-BOfw7GPc.js.map +0 -1
- package/dist/task-stream-kYlm9qd0.js.map +0 -1
- package/dist/telemetry-Bpv-Mh5B.js.map +0 -1
- package/dist/terminal-D07EQ2y0.js.map +0 -1
- package/dist/tools-Cc41af5W.js.map +0 -1
- package/dist/ui-CGXtC7Vn.js.map +0 -1
- package/dist/wizard-abort-HDbP3YcS.js.map +0 -1
- package/dist/wizard-abort-Y-Ip2K4z.js +0 -3
- package/dist/wizard-session-2w4Ru-Wz.js.map +0 -1
- package/dist/wizard-session-DGaUHOF3.js +0 -2
- package/dist/wizard-ui-DoyOZxK8.js.map +0 -1
- package/dist/yara-hooks-B49RIk5d.js +0 -2
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { n as SERVICE_LABELS } from "./logging-ui-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { c as isOk, f as summarizeFailure, l as namesWithStatus, n as AVAILABLE_FEATURES, o as isAllFeaturesSelected, t as ALL_FEATURE_VALUES } from "./defaults-C6J7yL4O.js";
|
|
1
|
+
import { et as fetchSkillMenu } from "./agent-interface-CzyCmp7q.js";
|
|
2
|
+
import { s as logToFile } from "./debug-DyARf5TF.js";
|
|
3
|
+
import { $ as getSkillsBaseUrl, D as POSTHOG_APP_URL, Q as WIZARD_USER_AGENT } from "./constants-DO4X70po.js";
|
|
4
|
+
import "./wizard-session-BYw6LzpS.js";
|
|
5
|
+
import { n as analytics } from "./analytics-B6q5PN7a.js";
|
|
6
|
+
import { r as withUtm, t as openTrackedLink } from "./links-9LWZPSCq.js";
|
|
7
|
+
import { n as SERVICE_LABELS } from "./logging-ui-p6XKVmTx.js";
|
|
8
|
+
import { c as formatTokenCount, s as formatCostUsd } from "./agent-BkBbVuNq.js";
|
|
9
|
+
import { t as getOrAskForProjectData } from "./project-data-BO9IXn9y.js";
|
|
10
|
+
import { c as fetchUserData, s as fetchSlackConnected } from "./api-C3Dc4LFl.js";
|
|
11
|
+
import { $ as wordWrap, H as getKindMeta, Q as computeVisibleRange, Z as TextBlock, et as isClearBlock, it as Icons, nt as isObjectBlock, o as Program, rt as Colors, tt as isLinesBlock } from "./mint-failure-C0HyvEwO.js";
|
|
12
|
+
import { a as useStdoutDimensions, i as useKeyboardHintsContext, n as useKeyBindings, o as ConfirmButton, r as KeyboardHintsProvider, s as PromptLabel, t as PickerMenu } from "./PickerMenu-m4CCPX4f.js";
|
|
13
|
+
import { n as totalTokenCount } from "./store-D3509G87.js";
|
|
14
|
+
import { c as isOk, f as summarizeFailure, l as namesWithStatus, n as AVAILABLE_FEATURES, o as isAllFeaturesSelected, t as ALL_FEATURE_VALUES } from "./defaults-DpfMnH2q.js";
|
|
16
15
|
import opn from "opn";
|
|
17
16
|
import * as fs$1 from "fs";
|
|
18
17
|
import axios from "axios";
|
|
@@ -20,7 +19,7 @@ import { Box, Text, measureElement, useInput, useStdout } from "ink";
|
|
|
20
19
|
import { Component, Fragment, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
21
20
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
22
21
|
import { Spinner } from "@inkjs/ui";
|
|
23
|
-
//#region src/
|
|
22
|
+
//#region src/tui/primitives/CardLayout.tsx
|
|
24
23
|
/**
|
|
25
24
|
* CardLayout — Aligns a single child within available space.
|
|
26
25
|
*/
|
|
@@ -34,7 +33,7 @@ const CardLayout = ({ hAlign = "flex-start", vAlign = "flex-start", children })
|
|
|
34
33
|
});
|
|
35
34
|
};
|
|
36
35
|
//#endregion
|
|
37
|
-
//#region src/
|
|
36
|
+
//#region src/tui/primitives/SplitView.tsx
|
|
38
37
|
/**
|
|
39
38
|
* SplitView — Two-pane horizontal layout: 50/50.
|
|
40
39
|
*/
|
|
@@ -58,7 +57,7 @@ const SplitView = ({ left, right, gap = 2 }) => {
|
|
|
58
57
|
});
|
|
59
58
|
};
|
|
60
59
|
//#endregion
|
|
61
|
-
//#region src/
|
|
60
|
+
//#region src/tui/primitives/LoadingBox.tsx
|
|
62
61
|
/**
|
|
63
62
|
* LoadingBox — Spinner with message.
|
|
64
63
|
*/
|
|
@@ -69,7 +68,7 @@ const LoadingBox = ({ message }) => {
|
|
|
69
68
|
});
|
|
70
69
|
};
|
|
71
70
|
//#endregion
|
|
72
|
-
//#region src/
|
|
71
|
+
//#region src/tui/primitives/ProgressList.tsx
|
|
73
72
|
/**
|
|
74
73
|
* ProgressList — Reusable task checklist with status icons.
|
|
75
74
|
* Extracted from StatusTab logic.
|
|
@@ -126,7 +125,7 @@ const ProgressList = ({ items, title }) => {
|
|
|
126
125
|
});
|
|
127
126
|
};
|
|
128
127
|
//#endregion
|
|
129
|
-
//#region src/
|
|
128
|
+
//#region src/tui/primitives/GroupedPickerMenu.tsx
|
|
130
129
|
/**
|
|
131
130
|
* GroupedPickerMenu — Multi-select with category headers.
|
|
132
131
|
*
|
|
@@ -351,7 +350,7 @@ const GroupedPickerMenu = ({ message, groups, initialSelected, onSelect }) => {
|
|
|
351
350
|
});
|
|
352
351
|
};
|
|
353
352
|
//#endregion
|
|
354
|
-
//#region src/
|
|
353
|
+
//#region src/tui/primitives/ConfirmationInput.tsx
|
|
355
354
|
/**
|
|
356
355
|
* ConfirmationInput — Continue/cancel prompt.
|
|
357
356
|
* Enter confirms, escape cancels. Arrow keys toggle focus.
|
|
@@ -415,7 +414,7 @@ const ConfirmationInput = ({ message, onConfirm, onCancel, confirmLabel = "Conti
|
|
|
415
414
|
});
|
|
416
415
|
};
|
|
417
416
|
//#endregion
|
|
418
|
-
//#region src/
|
|
417
|
+
//#region src/tui/primitives/Divider.tsx
|
|
419
418
|
const Divider = ({ dimColor = true, char = "─" }) => {
|
|
420
419
|
const ref = useRef(null);
|
|
421
420
|
const [width, setWidth] = useState(0);
|
|
@@ -435,7 +434,7 @@ const Divider = ({ dimColor = true, char = "─" }) => {
|
|
|
435
434
|
});
|
|
436
435
|
};
|
|
437
436
|
//#endregion
|
|
438
|
-
//#region src/
|
|
437
|
+
//#region src/tui/primitives/ModalOverlay.tsx
|
|
439
438
|
const ModalOverlay = ({ borderColor, title, titleColor, width = 68, children, feedback, footer }) => {
|
|
440
439
|
return /* @__PURE__ */ jsx(Box, {
|
|
441
440
|
flexDirection: "column",
|
|
@@ -476,7 +475,7 @@ const ModalOverlay = ({ borderColor, title, titleColor, width = 68, children, fe
|
|
|
476
475
|
});
|
|
477
476
|
};
|
|
478
477
|
//#endregion
|
|
479
|
-
//#region src/
|
|
478
|
+
//#region src/tui/primitives/link-helpers.ts
|
|
480
479
|
/**
|
|
481
480
|
* Link-rendering helpers for terminal prompts.
|
|
482
481
|
*
|
|
@@ -601,7 +600,7 @@ function splitPromptIntoSegments(text) {
|
|
|
601
600
|
return segments;
|
|
602
601
|
}
|
|
603
602
|
//#endregion
|
|
604
|
-
//#region src/
|
|
603
|
+
//#region src/tui/primitives/LinkText.tsx
|
|
605
604
|
/**
|
|
606
605
|
* LinkText — renders prompt text with URLs as OSC 8 hyperlinks.
|
|
607
606
|
*
|
|
@@ -628,7 +627,7 @@ const LinkText = ({ text }) => {
|
|
|
628
627
|
});
|
|
629
628
|
};
|
|
630
629
|
//#endregion
|
|
631
|
-
//#region src/
|
|
630
|
+
//#region src/tui/primitives/LogViewer.tsx
|
|
632
631
|
/**
|
|
633
632
|
* LogViewer — Real-time log tail, pinned to available terminal height.
|
|
634
633
|
* Only renders the last N lines that fit on screen.
|
|
@@ -733,7 +732,7 @@ const LogViewer = ({ filePath, height }) => {
|
|
|
733
732
|
});
|
|
734
733
|
};
|
|
735
734
|
//#endregion
|
|
736
|
-
//#region src/
|
|
735
|
+
//#region src/tui/primitives/EventPlanViewer.tsx
|
|
737
736
|
/**
|
|
738
737
|
* EventPlanViewer — Renders a table of planned analytics events.
|
|
739
738
|
*/
|
|
@@ -758,7 +757,7 @@ const EventPlanViewer = ({ events }) => {
|
|
|
758
757
|
});
|
|
759
758
|
};
|
|
760
759
|
//#endregion
|
|
761
|
-
//#region src/
|
|
760
|
+
//#region src/tui/components/TitleBar.tsx
|
|
762
761
|
const FEEDBACK = "Feedback: wizard@posthog.com ";
|
|
763
762
|
const FEEDBACK_SHORT = " wizard@posthog.com ";
|
|
764
763
|
const TitleBar = ({ version, width }) => {
|
|
@@ -783,7 +782,7 @@ const TitleBar = ({ version, width }) => {
|
|
|
783
782
|
});
|
|
784
783
|
};
|
|
785
784
|
//#endregion
|
|
786
|
-
//#region src/
|
|
785
|
+
//#region src/tui/components/TokenCostHud.tsx
|
|
787
786
|
/**
|
|
788
787
|
* TokenCostHud — Ctrl+T panel showing the running (then final) LLM
|
|
789
788
|
* token/cost estimate for this wizard run. Toggled from `ScreenContainer`;
|
|
@@ -869,7 +868,7 @@ const TokenCostHud = ({ usage, width }) => {
|
|
|
869
868
|
});
|
|
870
869
|
};
|
|
871
870
|
//#endregion
|
|
872
|
-
//#region src/
|
|
871
|
+
//#region src/tui/primitives/DissolveTransition.tsx
|
|
873
872
|
/**
|
|
874
873
|
* DissolveTransition — Column-sweep inspired by TTE's Sweep effect.
|
|
875
874
|
*
|
|
@@ -983,7 +982,7 @@ const DissolveTransition = ({ transitionKey, width, height, children, direction
|
|
|
983
982
|
});
|
|
984
983
|
};
|
|
985
984
|
//#endregion
|
|
986
|
-
//#region src/
|
|
985
|
+
//#region src/tui/primitives/KeyboardHintsBar.tsx
|
|
987
986
|
/**
|
|
988
987
|
* KeyboardHintsBar — Row showing active keyboard shortcuts.
|
|
989
988
|
*
|
|
@@ -1009,7 +1008,7 @@ const KeyboardHintsBar = () => {
|
|
|
1009
1008
|
});
|
|
1010
1009
|
};
|
|
1011
1010
|
//#endregion
|
|
1012
|
-
//#region src/
|
|
1011
|
+
//#region src/tui/primitives/ScreenErrorBoundary.tsx
|
|
1013
1012
|
/**
|
|
1014
1013
|
* ScreenErrorBoundary — catches React render errors in screens
|
|
1015
1014
|
* and routes to the outro screen with an error message.
|
|
@@ -1086,7 +1085,7 @@ const ViewportTooSmall = ({ columns, rows }) => {
|
|
|
1086
1085
|
});
|
|
1087
1086
|
};
|
|
1088
1087
|
//#endregion
|
|
1089
|
-
//#region src/
|
|
1088
|
+
//#region src/tui/primitives/ScreenContainer.tsx
|
|
1090
1089
|
/**
|
|
1091
1090
|
* ScreenContainer — Renders TitleBar + routes between screens with transitions.
|
|
1092
1091
|
* Takes a screens map and renders the one matching store.currentScreen.
|
|
@@ -1180,7 +1179,7 @@ const ScreenContainer = ({ store, screens }) => {
|
|
|
1180
1179
|
});
|
|
1181
1180
|
};
|
|
1182
1181
|
//#endregion
|
|
1183
|
-
//#region src/
|
|
1182
|
+
//#region src/tui/primitives/TabContainer.tsx
|
|
1184
1183
|
/**
|
|
1185
1184
|
* TabContainer — Self-contained tabbed interface.
|
|
1186
1185
|
* Absorbs BottomTabBar + StatusPanel functionality.
|
|
@@ -1273,7 +1272,7 @@ const TabContainer = ({ tabs, statusMessage, expandableStatus = false, store })
|
|
|
1273
1272
|
});
|
|
1274
1273
|
};
|
|
1275
1274
|
//#endregion
|
|
1276
|
-
//#region src/
|
|
1275
|
+
//#region src/tui/primitives/HNViewer.tsx
|
|
1277
1276
|
/**
|
|
1278
1277
|
* HNViewer — Top 10 Hacker News stories.
|
|
1279
1278
|
*
|
|
@@ -1385,7 +1384,7 @@ function openStory(input, stories) {
|
|
|
1385
1384
|
});
|
|
1386
1385
|
}
|
|
1387
1386
|
//#endregion
|
|
1388
|
-
//#region src/
|
|
1387
|
+
//#region src/tui/primitives/LinesBlock.tsx
|
|
1389
1388
|
/**
|
|
1390
1389
|
* LinesBlock — Reveals ReactNode lines one at a time.
|
|
1391
1390
|
* Each line can contain colors, bold, ASCII art — any JSX.
|
|
@@ -1424,7 +1423,7 @@ const LinesBlock = ({ lines, interval, active, completed, onComplete, maxHeight
|
|
|
1424
1423
|
});
|
|
1425
1424
|
};
|
|
1426
1425
|
//#endregion
|
|
1427
|
-
//#region src/
|
|
1426
|
+
//#region src/tui/primitives/NodeBlock.tsx
|
|
1428
1427
|
/**
|
|
1429
1428
|
* NodeBlock — Renders static JSX, fires onComplete immediately.
|
|
1430
1429
|
* The sequencer's blockInterval handles dwell time.
|
|
@@ -1440,7 +1439,7 @@ const NodeBlock = ({ content, active, completed, onComplete }) => {
|
|
|
1440
1439
|
return /* @__PURE__ */ jsx(Fragment$1, { children: content });
|
|
1441
1440
|
};
|
|
1442
1441
|
//#endregion
|
|
1443
|
-
//#region src/
|
|
1442
|
+
//#region src/tui/primitives/ContentSequencer.tsx
|
|
1444
1443
|
/**
|
|
1445
1444
|
* ContentSequencer — Plays content blocks in order.
|
|
1446
1445
|
*
|
|
@@ -1593,7 +1592,7 @@ const BlockRenderer = ({ block, active, completed, onComplete, mode, bullet, ani
|
|
|
1593
1592
|
});
|
|
1594
1593
|
};
|
|
1595
1594
|
//#endregion
|
|
1596
|
-
//#region src/
|
|
1595
|
+
//#region src/tui/components/LearnCard.tsx
|
|
1597
1596
|
/**
|
|
1598
1597
|
* LearnCard — Generic render shell for an animated content deck.
|
|
1599
1598
|
*
|
|
@@ -1638,7 +1637,7 @@ const LearnCard = ({ store, blocks, onComplete }) => {
|
|
|
1638
1637
|
});
|
|
1639
1638
|
};
|
|
1640
1639
|
//#endregion
|
|
1641
|
-
//#region src/
|
|
1640
|
+
//#region src/tui/components/TipsCard.tsx
|
|
1642
1641
|
/**
|
|
1643
1642
|
* TipsCard — Shows PostHog tips during the agent run.
|
|
1644
1643
|
* Reactively shows/hides tips based on discovered features.
|
|
@@ -1707,7 +1706,7 @@ const TipsCard = ({ store, tips = DEFAULT_TIPS }) => {
|
|
|
1707
1706
|
});
|
|
1708
1707
|
};
|
|
1709
1708
|
//#endregion
|
|
1710
|
-
//#region src/
|
|
1709
|
+
//#region src/tui/hooks/useTick.ts
|
|
1711
1710
|
/**
|
|
1712
1711
|
* useTick — forces a re-render every `intervalMs`. Returns a monotonically
|
|
1713
1712
|
* increasing counter, which is rarely needed — most callers just want the
|
|
@@ -1722,7 +1721,7 @@ function useTick(intervalMs) {
|
|
|
1722
1721
|
return tick;
|
|
1723
1722
|
}
|
|
1724
1723
|
//#endregion
|
|
1725
|
-
//#region src/
|
|
1724
|
+
//#region src/tui/components/visualizer/palette.ts
|
|
1726
1725
|
const VISUALIZER_PALETTE = {
|
|
1727
1726
|
fade: "#0E7A0E",
|
|
1728
1727
|
bright: "#7CFF7C",
|
|
@@ -1739,7 +1738,7 @@ const VISUALIZER_PALETTE = {
|
|
|
1739
1738
|
upGreen: "#7CFF7C"
|
|
1740
1739
|
};
|
|
1741
1740
|
//#endregion
|
|
1742
|
-
//#region src/
|
|
1741
|
+
//#region src/tui/components/visualizer/panel.tsx
|
|
1743
1742
|
/**
|
|
1744
1743
|
* Shared scaffolding for the phase visuals — Matrix-green color, common
|
|
1745
1744
|
* VisualProps shape, and the rounded `Panel` shell every visual sits in.
|
|
@@ -1755,7 +1754,7 @@ const Panel = ({ children }) => /* @__PURE__ */ jsx(Box, {
|
|
|
1755
1754
|
children
|
|
1756
1755
|
});
|
|
1757
1756
|
//#endregion
|
|
1758
|
-
//#region src/
|
|
1757
|
+
//#region src/tui/components/visualizer/MatrixRain.tsx
|
|
1759
1758
|
/**
|
|
1760
1759
|
* MatrixRain — code-rain visual used for the codebase-scan phase.
|
|
1761
1760
|
*
|
|
@@ -1849,7 +1848,7 @@ const MatrixRain = ({ width, height, tickMs = DEFAULT_TICK_MS, maxTail = DEFAULT
|
|
|
1849
1848
|
});
|
|
1850
1849
|
};
|
|
1851
1850
|
//#endregion
|
|
1852
|
-
//#region src/
|
|
1851
|
+
//#region src/tui/components/visualizer/grid.ts
|
|
1853
1852
|
/** Allocate a blank `width`×`height` grid of spaces. Degenerate or negative
|
|
1854
1853
|
* dimensions collapse to an empty grid rather than throwing. */
|
|
1855
1854
|
const createGrid = (width, height) => {
|
|
@@ -1873,7 +1872,7 @@ const writeText = (grid, x, y, text, maxW) => {
|
|
|
1873
1872
|
for (let i = 0; i < text.length && i < limit; i++) plot(grid, x + i, y, text[i]);
|
|
1874
1873
|
};
|
|
1875
1874
|
//#endregion
|
|
1876
|
-
//#region src/
|
|
1875
|
+
//#region src/tui/components/visualizer/LibraryShelf.tsx
|
|
1877
1876
|
/**
|
|
1878
1877
|
* LibraryShelf — skill-selection phase.
|
|
1879
1878
|
*
|
|
@@ -1944,7 +1943,7 @@ const LibraryShelf = ({ width, height }) => {
|
|
|
1944
1943
|
}) }, y)) });
|
|
1945
1944
|
};
|
|
1946
1945
|
//#endregion
|
|
1947
|
-
//#region src/
|
|
1946
|
+
//#region src/tui/components/visualizer/CrateStack.tsx
|
|
1948
1947
|
/**
|
|
1949
1948
|
* CrateStack — dependency-install phase.
|
|
1950
1949
|
*
|
|
@@ -2016,7 +2015,7 @@ const CrateStack = ({ width, height }) => {
|
|
|
2016
2015
|
}) }, y)) });
|
|
2017
2016
|
};
|
|
2018
2017
|
//#endregion
|
|
2019
|
-
//#region src/
|
|
2018
|
+
//#region src/tui/components/visualizer/DiffCascade.tsx
|
|
2020
2019
|
/**
|
|
2021
2020
|
* DiffCascade — code-edits phase.
|
|
2022
2021
|
*
|
|
@@ -2070,7 +2069,7 @@ const DiffCascade = ({ width, height }) => {
|
|
|
2070
2069
|
}) });
|
|
2071
2070
|
};
|
|
2072
2071
|
//#endregion
|
|
2073
|
-
//#region src/
|
|
2072
|
+
//#region src/tui/components/visualizer/Tumblers.tsx
|
|
2074
2073
|
/**
|
|
2075
2074
|
* Tumblers — env-setup phase.
|
|
2076
2075
|
*
|
|
@@ -2136,7 +2135,7 @@ const Tumblers = ({ width, height }) => {
|
|
|
2136
2135
|
}) }, y)) });
|
|
2137
2136
|
};
|
|
2138
2137
|
//#endregion
|
|
2139
|
-
//#region src/
|
|
2138
|
+
//#region src/tui/components/visualizer/DashboardGrid.tsx
|
|
2140
2139
|
/**
|
|
2141
2140
|
* DashboardGrid — dashboards phase.
|
|
2142
2141
|
*
|
|
@@ -2272,7 +2271,7 @@ function tileValue(kind, tick, seed) {
|
|
|
2272
2271
|
return `${Math.round(1 + wave * 5)} ▼`;
|
|
2273
2272
|
}
|
|
2274
2273
|
//#endregion
|
|
2275
|
-
//#region src/
|
|
2274
|
+
//#region src/tui/components/PhaseVisuals.tsx
|
|
2276
2275
|
/**
|
|
2277
2276
|
* Phase visuals — ambient ASCII visualizations of what the agent is currently
|
|
2278
2277
|
* doing. The active phase is derived from the in-progress task labels (best-
|
|
@@ -2491,7 +2490,7 @@ const PhaseBody = ({ phase, width, height }) => {
|
|
|
2491
2490
|
}
|
|
2492
2491
|
};
|
|
2493
2492
|
//#endregion
|
|
2494
|
-
//#region src/
|
|
2493
|
+
//#region src/tui/components/ServiceHealthList.tsx
|
|
2495
2494
|
function statusIcon(status) {
|
|
2496
2495
|
switch (status) {
|
|
2497
2496
|
case "down": return {
|
|
@@ -2540,7 +2539,7 @@ const ServiceHealthList = ({ health, filterKeys, showHealthy = true }) => {
|
|
|
2540
2539
|
});
|
|
2541
2540
|
};
|
|
2542
2541
|
//#endregion
|
|
2543
|
-
//#region src/
|
|
2542
|
+
//#region src/tui/tools/doctor/screens/IssueTable.tsx
|
|
2544
2543
|
const SEVERITY_ORDER = [
|
|
2545
2544
|
"critical",
|
|
2546
2545
|
"warning",
|
|
@@ -2654,7 +2653,7 @@ const IssueRow = ({ issue, docsWidth }) => {
|
|
|
2654
2653
|
] });
|
|
2655
2654
|
};
|
|
2656
2655
|
//#endregion
|
|
2657
|
-
//#region src/
|
|
2656
|
+
//#region src/tui/screens/McpScreen.tsx
|
|
2658
2657
|
/**
|
|
2659
2658
|
* McpScreen — MCP server install/remove flow.
|
|
2660
2659
|
*
|
|
@@ -3076,7 +3075,7 @@ const McpScreen = ({ store, installer, mode = "install" }) => {
|
|
|
3076
3075
|
});
|
|
3077
3076
|
};
|
|
3078
3077
|
//#endregion
|
|
3079
|
-
//#region src/
|
|
3078
|
+
//#region src/tui/tools/mcp/services/mcp-role-prompts.copy.json
|
|
3080
3079
|
var pinnedFirstPrompt = {
|
|
3081
3080
|
"prompt": "Show me my top 5 events from the last 7 days",
|
|
3082
3081
|
"description": "A safe first pick — works on any project regardless of role or setup."
|
|
@@ -3984,7 +3983,7 @@ var slackApp = {
|
|
|
3984
3983
|
"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."]
|
|
3985
3984
|
};
|
|
3986
3985
|
//#endregion
|
|
3987
|
-
//#region src/
|
|
3986
|
+
//#region src/tui/tools/mcp/services/mcp-role-prompts.ts
|
|
3988
3987
|
/**
|
|
3989
3988
|
* Roles that ship from `role_at_organization` on the PostHog user object.
|
|
3990
3989
|
* `security` isn't in the enum upstream — the engineering kit covers
|
|
@@ -4305,22 +4304,8 @@ function getTutorialPicker(role, integration, profile) {
|
|
|
4305
4304
|
...getActivationCrossSell(role, profile, 1)
|
|
4306
4305
|
];
|
|
4307
4306
|
}
|
|
4308
|
-
/**
|
|
4309
|
-
* Resolve the "Take PostHog to Slack" card. Role-independent — the Slack
|
|
4310
|
-
* agent's two capabilities (code/PR + data) describe the product itself,
|
|
4311
|
-
* not role-specific examples.
|
|
4312
|
-
*/
|
|
4313
|
-
function getSlackAppCard() {
|
|
4314
|
-
return {
|
|
4315
|
-
headline: SLACK_APP.headline,
|
|
4316
|
-
pitch: SLACK_APP.pitch,
|
|
4317
|
-
learnMoreUrl: SLACK_APP.learnMoreUrl,
|
|
4318
|
-
setupUrl: SLACK_APP.setupUrl,
|
|
4319
|
-
capabilities: SLACK_APP.capabilities
|
|
4320
|
-
};
|
|
4321
|
-
}
|
|
4322
4307
|
//#endregion
|
|
4323
|
-
//#region src/
|
|
4308
|
+
//#region src/tui/tools/mcp/services/mcp-project-profile.ts
|
|
4324
4309
|
/**
|
|
4325
4310
|
* Project data profile — a cheap, best-effort "scout" of what a user's
|
|
4326
4311
|
* PostHog project actually contains. Run once after auth, before the MCP
|
|
@@ -4531,7 +4516,7 @@ async function probeProjectData(args) {
|
|
|
4531
4516
|
}
|
|
4532
4517
|
}
|
|
4533
4518
|
//#endregion
|
|
4534
|
-
//#region src/
|
|
4519
|
+
//#region src/tui/tools/mcp/screens/McpSuggestedPromptsScreen.tsx
|
|
4535
4520
|
/**
|
|
4536
4521
|
* McpSuggestedPromptsScreen — shown after MCP install succeeds in the
|
|
4537
4522
|
* standalone `wizard mcp add` program, and as the entry point for
|
|
@@ -5469,7 +5454,7 @@ const GoodbyePhase = ({ installedClients, role, integration, profile, engaged, l
|
|
|
5469
5454
|
});
|
|
5470
5455
|
};
|
|
5471
5456
|
//#endregion
|
|
5472
|
-
//#region src/
|
|
5457
|
+
//#region src/tui/tools/mcp/services/seed-events.ts
|
|
5473
5458
|
/**
|
|
5474
5459
|
* Demo-event seeder for the MCP tutorial's empty-project path.
|
|
5475
5460
|
*
|
|
@@ -5603,7 +5588,7 @@ async function seedDemoEvents(args) {
|
|
|
5603
5588
|
return seededProfile(baseProfile, now);
|
|
5604
5589
|
}
|
|
5605
5590
|
//#endregion
|
|
5606
|
-
//#region src/
|
|
5591
|
+
//#region src/tui/programs/audit/screens/AuditChecksViewer/AreaHeaderRow.tsx
|
|
5607
5592
|
/** Sub-header row inside the scrollable body — one per area group. */
|
|
5608
5593
|
const AreaHeaderRow = ({ area, resolved, total }) => /* @__PURE__ */ jsxs(Box, {
|
|
5609
5594
|
flexShrink: 0,
|
|
@@ -5623,6 +5608,31 @@ const AreaHeaderRow = ({ area, resolved, total }) => /* @__PURE__ */ jsxs(Box, {
|
|
|
5623
5608
|
]
|
|
5624
5609
|
})]
|
|
5625
5610
|
});
|
|
5611
|
+
//#endregion
|
|
5612
|
+
//#region src/tui/programs/audit/severity-style.ts
|
|
5613
|
+
/** Single source of truth for status glyph + color across audit views. */
|
|
5614
|
+
const AUDIT_SEVERITY_STYLE = {
|
|
5615
|
+
pending: {
|
|
5616
|
+
glyph: "◌",
|
|
5617
|
+
color: "gray"
|
|
5618
|
+
},
|
|
5619
|
+
pass: {
|
|
5620
|
+
glyph: "✔",
|
|
5621
|
+
color: "green"
|
|
5622
|
+
},
|
|
5623
|
+
error: {
|
|
5624
|
+
glyph: "✘",
|
|
5625
|
+
color: "red"
|
|
5626
|
+
},
|
|
5627
|
+
warning: {
|
|
5628
|
+
glyph: "⚠",
|
|
5629
|
+
color: "yellow"
|
|
5630
|
+
},
|
|
5631
|
+
suggestion: {
|
|
5632
|
+
glyph: "•",
|
|
5633
|
+
color: "cyan"
|
|
5634
|
+
}
|
|
5635
|
+
};
|
|
5626
5636
|
/** ScreenContainer wraps content in paddingX={1} inside a width capped at
|
|
5627
5637
|
* MAX_WIDTH, so the actual width available to the viewer is
|
|
5628
5638
|
* min(cols, MAX_WIDTH) - 2. */
|
|
@@ -5657,7 +5667,7 @@ function truncate(text, max) {
|
|
|
5657
5667
|
return text.slice(0, Math.max(1, max - 1)) + "…";
|
|
5658
5668
|
}
|
|
5659
5669
|
//#endregion
|
|
5660
|
-
//#region src/
|
|
5670
|
+
//#region src/tui/programs/audit/screens/AuditChecksViewer/CheckRow.tsx
|
|
5661
5671
|
const CheckRow = ({ item, layout }) => {
|
|
5662
5672
|
const style = AUDIT_SEVERITY_STYLE[item.status];
|
|
5663
5673
|
return /* @__PURE__ */ jsxs(Box, {
|
|
@@ -5689,7 +5699,7 @@ const CheckRow = ({ item, layout }) => {
|
|
|
5689
5699
|
});
|
|
5690
5700
|
};
|
|
5691
5701
|
//#endregion
|
|
5692
|
-
//#region src/
|
|
5702
|
+
//#region src/tui/programs/audit/screens/AuditChecksViewer/DetailRow.tsx
|
|
5693
5703
|
/** Format a `details` string. If it parses as a JSON object, render it as
|
|
5694
5704
|
* indented key: value lines (skipping huge nested arrays/objects which we
|
|
5695
5705
|
* truncate). Otherwise return the original text. v3000 emits structured
|
|
@@ -5745,7 +5755,7 @@ const DetailRow = ({ item, layout }) => {
|
|
|
5745
5755
|
});
|
|
5746
5756
|
};
|
|
5747
5757
|
//#endregion
|
|
5748
|
-
//#region src/
|
|
5758
|
+
//#region src/tui/programs/audit/screens/AuditChecksViewer/Legend.tsx
|
|
5749
5759
|
const Legend = () => /* @__PURE__ */ jsxs(Text, { children: [
|
|
5750
5760
|
/* @__PURE__ */ jsx(Text, {
|
|
5751
5761
|
color: "green",
|
|
@@ -5783,7 +5793,7 @@ function countNoun(n, noun, plural = `${noun}s`) {
|
|
|
5783
5793
|
return `${n} ${n === 1 ? noun : plural}`;
|
|
5784
5794
|
}
|
|
5785
5795
|
//#endregion
|
|
5786
|
-
//#region src/
|
|
5796
|
+
//#region src/tui/programs/audit/screens/AuditChecksViewer/Header.tsx
|
|
5787
5797
|
function statusCounts(checks) {
|
|
5788
5798
|
const out = {
|
|
5789
5799
|
pending: 0,
|
|
@@ -5833,13 +5843,13 @@ const Summary = ({ total, counts }) => /* @__PURE__ */ jsx(Text, {
|
|
|
5833
5843
|
].join(" · ")
|
|
5834
5844
|
});
|
|
5835
5845
|
//#endregion
|
|
5836
|
-
//#region src/
|
|
5846
|
+
//#region src/tui/programs/audit/screens/AuditChecksViewer/Footer.tsx
|
|
5837
5847
|
const Footer = ({ total, counts }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Legend, {}), /* @__PURE__ */ jsx(Summary, {
|
|
5838
5848
|
total,
|
|
5839
5849
|
counts
|
|
5840
5850
|
})] });
|
|
5841
5851
|
//#endregion
|
|
5842
|
-
//#region src/
|
|
5852
|
+
//#region src/tui/programs/audit/screens/AuditChecksViewer/sort.ts
|
|
5843
5853
|
const STATUS_ORDER = {
|
|
5844
5854
|
error: 0,
|
|
5845
5855
|
warning: 1,
|
|
@@ -5895,7 +5905,7 @@ function groupChecksByArea(checks) {
|
|
|
5895
5905
|
return groups;
|
|
5896
5906
|
}
|
|
5897
5907
|
//#endregion
|
|
5898
|
-
//#region src/
|
|
5908
|
+
//#region src/tui/programs/audit/screens/AuditChecksViewer/AuditChecksViewer.tsx
|
|
5899
5909
|
/**
|
|
5900
5910
|
* AuditChecksViewer — "Audit plan" tab.
|
|
5901
5911
|
*
|
|
@@ -6014,7 +6024,7 @@ const AuditChecksViewer = ({ checks }) => {
|
|
|
6014
6024
|
});
|
|
6015
6025
|
};
|
|
6016
6026
|
//#endregion
|
|
6017
|
-
//#region src/
|
|
6027
|
+
//#region src/tui/programs/audit/screens/slides/shared.tsx
|
|
6018
6028
|
/** Narrow bordered box for the small ASCII illustrations in baseline slides. */
|
|
6019
6029
|
const VisualBox = ({ children }) => /* @__PURE__ */ jsx(Box, {
|
|
6020
6030
|
borderStyle: "single",
|
|
@@ -6025,7 +6035,7 @@ const VisualBox = ({ children }) => /* @__PURE__ */ jsx(Box, {
|
|
|
6025
6035
|
children
|
|
6026
6036
|
});
|
|
6027
6037
|
//#endregion
|
|
6028
|
-
//#region src/
|
|
6038
|
+
//#region src/tui/programs/audit/screens/slides/installation.tsx
|
|
6029
6039
|
const InstallationVisual = () => /* @__PURE__ */ jsxs(VisualBox, { children: [
|
|
6030
6040
|
/* @__PURE__ */ jsx(Text, {
|
|
6031
6041
|
dimColor: true,
|
|
@@ -6082,7 +6092,7 @@ const InstallationSlide = {
|
|
|
6082
6092
|
docsUrl: "https://posthog.com/docs/getting-started/install"
|
|
6083
6093
|
};
|
|
6084
6094
|
//#endregion
|
|
6085
|
-
//#region src/
|
|
6095
|
+
//#region src/tui/programs/audit/screens/slides/identification.tsx
|
|
6086
6096
|
const IdentificationVisual = () => /* @__PURE__ */ jsxs(VisualBox, { children: [
|
|
6087
6097
|
/* @__PURE__ */ jsxs(Text, { children: [
|
|
6088
6098
|
/* @__PURE__ */ jsx(Text, {
|
|
@@ -6143,7 +6153,7 @@ const IdentificationSlide = {
|
|
|
6143
6153
|
docsUrl: "https://posthog.com/docs/product-analytics/identify"
|
|
6144
6154
|
};
|
|
6145
6155
|
//#endregion
|
|
6146
|
-
//#region src/
|
|
6156
|
+
//#region src/tui/programs/audit/screens/slides/eventCapture.tsx
|
|
6147
6157
|
const CaptureVisual = () => /* @__PURE__ */ jsxs(VisualBox, { children: [
|
|
6148
6158
|
/* @__PURE__ */ jsxs(Text, { children: [
|
|
6149
6159
|
/* @__PURE__ */ jsx(Text, {
|
|
@@ -6213,7 +6223,7 @@ const EventCaptureSlide = {
|
|
|
6213
6223
|
docsUrl: "https://posthog.com/docs/product-analytics/capture-events"
|
|
6214
6224
|
};
|
|
6215
6225
|
//#endregion
|
|
6216
|
-
//#region src/
|
|
6226
|
+
//#region src/tui/programs/audit/screens/slides/liveData.tsx
|
|
6217
6227
|
const LiveDataVisual = () => /* @__PURE__ */ jsxs(VisualBox, { children: [
|
|
6218
6228
|
/* @__PURE__ */ jsx(Text, {
|
|
6219
6229
|
dimColor: true,
|
|
@@ -6263,7 +6273,7 @@ const LiveDataSlide = {
|
|
|
6263
6273
|
docsUrl: "https://posthog.com/docs/error-tracking/upload-source-maps"
|
|
6264
6274
|
};
|
|
6265
6275
|
//#endregion
|
|
6266
|
-
//#region src/
|
|
6276
|
+
//#region src/tui/programs/audit/screens/slides/writeReport.tsx
|
|
6267
6277
|
const ReportVisual = () => /* @__PURE__ */ jsxs(VisualBox, { children: [
|
|
6268
6278
|
/* @__PURE__ */ jsx(Text, {
|
|
6269
6279
|
dimColor: true,
|
|
@@ -6293,7 +6303,7 @@ const WriteReportSlide = {
|
|
|
6293
6303
|
docsUrl: "https://posthog.com/docs/product-analytics/best-practices"
|
|
6294
6304
|
};
|
|
6295
6305
|
//#endregion
|
|
6296
|
-
//#region src/
|
|
6306
|
+
//#region src/tui/programs/audit/screens/slides/uploadNotebook.tsx
|
|
6297
6307
|
const NotebookVisual = () => /* @__PURE__ */ jsxs(VisualBox, { children: [
|
|
6298
6308
|
/* @__PURE__ */ jsx(Text, {
|
|
6299
6309
|
dimColor: true,
|
|
@@ -6324,7 +6334,7 @@ const NotebookVisual = () => /* @__PURE__ */ jsxs(VisualBox, { children: [
|
|
|
6324
6334
|
})
|
|
6325
6335
|
] });
|
|
6326
6336
|
//#endregion
|
|
6327
|
-
//#region src/
|
|
6337
|
+
//#region src/tui/programs/audit/screens/slides/index.ts
|
|
6328
6338
|
const AUDIT_AREA_SLIDES = [
|
|
6329
6339
|
InstallationSlide,
|
|
6330
6340
|
IdentificationSlide,
|
|
@@ -6343,7 +6353,23 @@ const AUDIT_AREA_SLIDES = [
|
|
|
6343
6353
|
}
|
|
6344
6354
|
];
|
|
6345
6355
|
//#endregion
|
|
6346
|
-
//#region src/
|
|
6356
|
+
//#region src/tui/services/slack-app-card.ts
|
|
6357
|
+
/**
|
|
6358
|
+
* Resolve the "Take PostHog to Slack" card. Role-independent — the Slack
|
|
6359
|
+
* agent's two capabilities (code/PR + data) describe the product itself,
|
|
6360
|
+
* not role-specific examples.
|
|
6361
|
+
*/
|
|
6362
|
+
function getSlackAppCard() {
|
|
6363
|
+
return {
|
|
6364
|
+
headline: SLACK_APP.headline,
|
|
6365
|
+
pitch: SLACK_APP.pitch,
|
|
6366
|
+
learnMoreUrl: SLACK_APP.learnMoreUrl,
|
|
6367
|
+
setupUrl: SLACK_APP.setupUrl,
|
|
6368
|
+
capabilities: SLACK_APP.capabilities
|
|
6369
|
+
};
|
|
6370
|
+
}
|
|
6371
|
+
//#endregion
|
|
6372
|
+
//#region src/tui/screens/SlackConnectScreen.tsx
|
|
6347
6373
|
/**
|
|
6348
6374
|
* SlackConnectScreen — the dedicated "Connect Slack" step shown after the
|
|
6349
6375
|
* MCP tutorial (`wizard mcp tutorial`), after a successful install
|
|
@@ -6631,7 +6657,7 @@ const SlackConnectScreen = ({ store }) => {
|
|
|
6631
6657
|
});
|
|
6632
6658
|
};
|
|
6633
6659
|
//#endregion
|
|
6634
|
-
//#region src/
|
|
6660
|
+
//#region src/tui/hooks/useDismissOnAnyKey.ts
|
|
6635
6661
|
/**
|
|
6636
6662
|
* useDismissOnAnyKey — "press any key to continue/exit" screens.
|
|
6637
6663
|
*
|
|
@@ -6662,7 +6688,7 @@ function useDismissOnAnyKey(handler) {
|
|
|
6662
6688
|
});
|
|
6663
6689
|
}
|
|
6664
6690
|
//#endregion
|
|
6665
|
-
//#region src/
|
|
6691
|
+
//#region src/tui/screens/OutroScreen.tsx
|
|
6666
6692
|
/**
|
|
6667
6693
|
* OutroScreen — Default post-run summary.
|
|
6668
6694
|
*
|
|
@@ -6863,7 +6889,7 @@ const OutroScreen = ({ store }) => {
|
|
|
6863
6889
|
});
|
|
6864
6890
|
};
|
|
6865
6891
|
//#endregion
|
|
6866
|
-
//#region src/
|
|
6892
|
+
//#region src/tui/screens/SkillSourceInfo.tsx
|
|
6867
6893
|
/**
|
|
6868
6894
|
* Shared "Skill: <id> / URL: <downloadUrl>" block for intro screens.
|
|
6869
6895
|
*
|
|
@@ -6949,7 +6975,7 @@ const SkillSourceInfo = ({ skillId, skillEntry, fetchFailed }) => /* @__PURE__ *
|
|
|
6949
6975
|
] })]
|
|
6950
6976
|
});
|
|
6951
6977
|
//#endregion
|
|
6952
|
-
//#region src/
|
|
6978
|
+
//#region src/tui/screens/AiOptInRequiredScreen.tsx
|
|
6953
6979
|
/**
|
|
6954
6980
|
* AiOptInRequiredScreen — Renders when the wizard authenticates against an
|
|
6955
6981
|
* org whose `is_ai_data_processing_approved` is not `true`. Mirrors Max's
|
|
@@ -7168,7 +7194,7 @@ const AiOptInRequiredScreen = ({ store }) => {
|
|
|
7168
7194
|
});
|
|
7169
7195
|
};
|
|
7170
7196
|
//#endregion
|
|
7171
|
-
//#region src/
|
|
7197
|
+
//#region src/tui/terminal.ts
|
|
7172
7198
|
/**
|
|
7173
7199
|
* Terminal setup shared by the wizard TUI and the primitives playground.
|
|
7174
7200
|
*
|
|
@@ -7191,6 +7217,6 @@ function releaseTerminal() {
|
|
|
7191
7217
|
process.stdout.write(RESET_ATTRS + LEAVE_ALT_SCREEN);
|
|
7192
7218
|
}
|
|
7193
7219
|
//#endregion
|
|
7194
|
-
export {
|
|
7220
|
+
export { TabContainer as A, ProgressList as B, SEVERITY_ORDER as C, LearnCard as D, TipsCard as E, LinkText as F, SplitView as H, extractUrls as I, ModalOverlay as L, ViewportTooSmall as M, EventPlanViewer as N, ContentSequencer as O, LogViewer as P, ConfirmationInput as R, SEVERITY_LABEL as S, VisualizerTab as T, CardLayout as U, LoadingBox as V, assembleProfile as _, useSkillEntry as a, McpScreen as b, SlackConnectScreen as c, AuditChecksViewer as d, countNoun as f, McpSuggestedPromptsScreen as g, seededProfile as h, SkillSourceInfo as i, ScreenContainer as j, HNViewer as k, AUDIT_AREA_SLIDES as l, seedDemoEvents as m, releaseTerminal as n, OutroScreen as o, AUDIT_SEVERITY_STYLE as p, AiOptInRequiredScreen as r, useDismissOnAnyKey as s, enterDarkTerminal as t, VisualBox as u, probeProjectData as v, ServiceHealthList as w, IssueTable as x, TAILORED_ROLES as y, GroupedPickerMenu as z };
|
|
7195
7221
|
|
|
7196
|
-
//# sourceMappingURL=terminal-
|
|
7222
|
+
//# sourceMappingURL=terminal-PK9bCLRi.js.map
|