@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,27 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import { n as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { r as
|
|
13
|
-
import { i as
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import "./
|
|
17
|
-
import {
|
|
18
|
-
import { t as FRAMEWORK_REGISTRY } from "./registry-
|
|
19
|
-
import {
|
|
20
|
-
import { a as
|
|
21
|
-
import { r as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { a as
|
|
1
|
+
import { V as downloadSkill, et as fetchSkillMenu } from "./agent-interface-CzyCmp7q.js";
|
|
2
|
+
import { n as ErrorCodes } from "./emit-BSetXzDV.js";
|
|
3
|
+
import { a as getLogFilePath, p as relativeToInstallDir, s as logToFile, u as WIZARD_LOG_FILE } from "./debug-DyARf5TF.js";
|
|
4
|
+
import { $ as getSkillsBaseUrl, E as OAUTH_TIMEOUT_MS, F as POSTHOG_TERMS_URL, M as POSTHOG_PRIVACY_URL, T as OAUTH_PORTS, g as GITHUB_SKILLS_BASE_URL, j as POSTHOG_ORG_AI_SETTINGS_URL, k as POSTHOG_DOCS_URL, w as Integration } from "./constants-DO4X70po.js";
|
|
5
|
+
import "./wizard-session-BYw6LzpS.js";
|
|
6
|
+
import { n as analytics } from "./analytics-B6q5PN7a.js";
|
|
7
|
+
import { t as openTrackedLink } from "./links-9LWZPSCq.js";
|
|
8
|
+
import { a as WizardError } from "./errors-C2domSkK.js";
|
|
9
|
+
import { i as readProjectFile, t as IGNORED_DIRS } from "./bounded-fs-CC_NDtoP.js";
|
|
10
|
+
import { a as getBlockingServiceKeys, r as SIGNUP_WIZARD_READINESS_CONFIG } from "./logging-ui-p6XKVmTx.js";
|
|
11
|
+
import { n as setUI } from "./ui-tPNpM6vj.js";
|
|
12
|
+
import { r as wizardAbort } from "./wizard-abort-DBKtfnBR.js";
|
|
13
|
+
import { i as getIntegrationAuthorizeUrl } from "./urls-BI4kJ4qQ.js";
|
|
14
|
+
import { c as formatTokenCount, s as formatCostUsd } from "./agent-BkBbVuNq.js";
|
|
15
|
+
import "./yara-hooks-C3L6lBij.js";
|
|
16
|
+
import { n as extractOAuthCode, t as getOrAskForProjectData } from "./project-data-BO9IXn9y.js";
|
|
17
|
+
import { a as getDetectedWarehouseSources, l as getAuditChecks } from "./run-agent-legacy-DWBajsMh.js";
|
|
18
|
+
import { t as FRAMEWORK_REGISTRY } from "./registry-B3rC5U4b.js";
|
|
19
|
+
import { r as requestDeepLink } from "./provisioning-CLhuKqXH.js";
|
|
20
|
+
import { a as fetchGithubConnected, n as ApiError } from "./api-C3Dc4LFl.js";
|
|
21
|
+
import { C as ERROR_TRACKING_PROJECT_PATH_KEY, F as MANUAL_SDK_INSTALL, I as MANUAL_SDK_VARIANTS, J as getContentBlocks, M as AUTOMATABLE_VARIANTS, N as DISPLAY_NAME, R as SOURCE_MAPS_CONTEXT_KEYS, U as fetchHealthIssues, Y as SETUP_REPORT_FILE, _ as PRICING_SHORT, b as GITHUB_REQUIRED_MESSAGE, c as getCommandPath, ct as STRIPE_SDKS, g as PRICING_LONG, h as NO_DEFAULT_LIMIT, i as isRunFailure, it as Icons, l as getLaunchablePrograms, lt as detectProjectsWithAgent, n as MINT_FAILURE_CONTACT, o as Program, r as MINT_FAILURE_MESSAGE, rt as Colors, st as POSTHOG_SDKS, t as MINT_FAILURE_BODY, u as getProgramConfig, v as detectSelfDrivingIntegrationProjects, w as detectErrorTrackingProjects, x as SELF_DRIVING_INTEGRATE_PATH_KEY, y as GITHUB_REQUIRED_BODY } from "./mint-failure-C0HyvEwO.js";
|
|
22
|
+
import { a as useStdoutDimensions, n as useKeyBindings, t as PickerMenu } from "./PickerMenu-m4CCPX4f.js";
|
|
23
|
+
import { n as totalTokenCount, t as WizardStore } from "./store-D3509G87.js";
|
|
24
|
+
import { A as TabContainer, B as ProgressList, C as SEVERITY_ORDER, D as LearnCard, E as TipsCard, F as LinkText, H as SplitView, I as extractUrls, L as ModalOverlay, N as EventPlanViewer, P as LogViewer, R as ConfirmationInput, S as SEVERITY_LABEL, T as VisualizerTab, V as LoadingBox, a as useSkillEntry, b as McpScreen, c as SlackConnectScreen, d as AuditChecksViewer, f as countNoun, g as McpSuggestedPromptsScreen, i as SkillSourceInfo, j as ScreenContainer, k as HNViewer, l as AUDIT_AREA_SLIDES, m as seedDemoEvents, n as releaseTerminal, o as OutroScreen, p as AUDIT_SEVERITY_STYLE, r as AiOptInRequiredScreen, s as useDismissOnAnyKey, t as enterDarkTerminal, u as VisualBox, v as probeProjectData, w as ServiceHealthList, x as IssueTable } from "./terminal-PK9bCLRi.js";
|
|
25
|
+
import { l as namesWithStatus, p as toClientResult, t as ALL_FEATURE_VALUES, u as redactSecrets } from "./defaults-DpfMnH2q.js";
|
|
26
|
+
import { a as getSupportedPluginClients, i as getSupportedClients, l as isPluginCapable, o as installPlugins, r as getInstalledClients, s as removeMCPServer } from "./install-Bk5TNk27.js";
|
|
25
27
|
import { existsSync, readFileSync, readdirSync } from "fs";
|
|
26
28
|
import path, { join } from "path";
|
|
27
29
|
import { tmpdir } from "node:os";
|
|
@@ -133,8 +135,8 @@ var InkUI = class {
|
|
|
133
135
|
showSessionTimeout() {
|
|
134
136
|
this.store.showSessionTimeout();
|
|
135
137
|
}
|
|
136
|
-
requestQuestion(question) {
|
|
137
|
-
return this.store.requestQuestion(question);
|
|
138
|
+
requestQuestion(question, onAnswer) {
|
|
139
|
+
return this.store.requestQuestion(question, onAnswer);
|
|
138
140
|
}
|
|
139
141
|
cancelPendingQuestion() {
|
|
140
142
|
this.store.cancelPendingQuestion();
|
|
@@ -218,7 +220,7 @@ var InkUI = class {
|
|
|
218
220
|
}
|
|
219
221
|
};
|
|
220
222
|
//#endregion
|
|
221
|
-
//#region src/
|
|
223
|
+
//#region src/tui/screens/health/HealthCheckScreen.tsx
|
|
222
224
|
/**
|
|
223
225
|
* HealthCheckScreen — Program screen between Intro and Auth.
|
|
224
226
|
*
|
|
@@ -384,7 +386,7 @@ const HealthCheckScreen = ({ store }) => {
|
|
|
384
386
|
});
|
|
385
387
|
};
|
|
386
388
|
//#endregion
|
|
387
|
-
//#region src/
|
|
389
|
+
//#region src/tui/tools/doctor/screens/DoctorIntroScreen.tsx
|
|
388
390
|
const DoctorIntroScreen = ({ store }) => {
|
|
389
391
|
useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
|
|
390
392
|
return /* @__PURE__ */ jsxs(Box, {
|
|
@@ -432,7 +434,7 @@ const DoctorIntroScreen = ({ store }) => {
|
|
|
432
434
|
});
|
|
433
435
|
};
|
|
434
436
|
//#endregion
|
|
435
|
-
//#region src/
|
|
437
|
+
//#region src/tui/tools/doctor/screens/DoctorReportScreen.tsx
|
|
436
438
|
const DoctorReportScreen = ({ store }) => {
|
|
437
439
|
useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
|
|
438
440
|
const { credentials } = store.session;
|
|
@@ -603,7 +605,7 @@ function formatSummaryLine(issues) {
|
|
|
603
605
|
return `${issues.length} active issue${issues.length === 1 ? "" : "s"}${suffix}`;
|
|
604
606
|
}
|
|
605
607
|
//#endregion
|
|
606
|
-
//#region src/
|
|
608
|
+
//#region src/tui/screens/SettingsOverrideScreen.tsx
|
|
607
609
|
const SettingsOverrideScreen = ({ store }) => {
|
|
608
610
|
useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
|
|
609
611
|
const [feedback, setFeedback] = useState(null);
|
|
@@ -658,7 +660,7 @@ const SettingsOverrideScreen = ({ store }) => {
|
|
|
658
660
|
});
|
|
659
661
|
};
|
|
660
662
|
//#endregion
|
|
661
|
-
//#region src/
|
|
663
|
+
//#region src/tui/screens/ManagedSettingsScreen.tsx
|
|
662
664
|
/**
|
|
663
665
|
* ManagedSettingsScreen — Modal for read-only settings conflicts that block
|
|
664
666
|
* the Wizard from reaching the PostHog LLM Gateway: org-managed settings, the
|
|
@@ -743,7 +745,7 @@ const ManagedSettingsScreen = ({ store }) => {
|
|
|
743
745
|
});
|
|
744
746
|
};
|
|
745
747
|
//#endregion
|
|
746
|
-
//#region src/
|
|
748
|
+
//#region src/tui/screens/PortConflictScreen.tsx
|
|
747
749
|
/**
|
|
748
750
|
* PortConflictScreen — Modal when all OAuth port candidates are occupied.
|
|
749
751
|
*
|
|
@@ -786,7 +788,7 @@ const PortConflictScreen = ({ store }) => {
|
|
|
786
788
|
});
|
|
787
789
|
};
|
|
788
790
|
//#endregion
|
|
789
|
-
//#region src/
|
|
791
|
+
//#region src/tui/screens/TaskNoticeScreen.tsx
|
|
790
792
|
/**
|
|
791
793
|
* TaskNoticeScreen — Modal shown before an optional step runs.
|
|
792
794
|
*
|
|
@@ -838,7 +840,7 @@ const TaskNoticeScreen = ({ store }) => {
|
|
|
838
840
|
});
|
|
839
841
|
};
|
|
840
842
|
//#endregion
|
|
841
|
-
//#region src/
|
|
843
|
+
//#region src/tui/screens/ManualAuthCodeScreen.tsx
|
|
842
844
|
/**
|
|
843
845
|
* ManualAuthCodeScreen — Paste an OAuth authorization code by hand.
|
|
844
846
|
*
|
|
@@ -939,7 +941,7 @@ const ManualAuthCodeScreen = ({ store }) => {
|
|
|
939
941
|
});
|
|
940
942
|
};
|
|
941
943
|
//#endregion
|
|
942
|
-
//#region src/
|
|
944
|
+
//#region src/tui/components/PrivacyPanel.tsx
|
|
943
945
|
/**
|
|
944
946
|
* PrivacyPanel — Shared disclosure component.
|
|
945
947
|
*
|
|
@@ -1003,7 +1005,7 @@ const PrivacyPanel = ({ canOptOut = false } = {}) => {
|
|
|
1003
1005
|
});
|
|
1004
1006
|
};
|
|
1005
1007
|
//#endregion
|
|
1006
|
-
//#region src/
|
|
1008
|
+
//#region src/tui/screens/IntroScreenLayout.tsx
|
|
1007
1009
|
/**
|
|
1008
1010
|
* IntroScreenLayout ��� Shared visual shell for all program intro screens.
|
|
1009
1011
|
*
|
|
@@ -1194,7 +1196,7 @@ const IntroScreenLayout = ({ installDir, title = "PostHog Wizard 🦔", showSubt
|
|
|
1194
1196
|
}) });
|
|
1195
1197
|
};
|
|
1196
1198
|
//#endregion
|
|
1197
|
-
//#region src/
|
|
1199
|
+
//#region src/tui/programs/posthog-integration/intro-menu.ts
|
|
1198
1200
|
const CONTINUE_LABEL = "Continue";
|
|
1199
1201
|
const CONTINUE_ANYWAY_LABEL = "Continue anyway";
|
|
1200
1202
|
const DEFAULT_HEADLINE = "Let's do two hours of work in eight minutes.";
|
|
@@ -1233,7 +1235,7 @@ function introMenuOptions({ view, showContinue, posthogSdkDetected }) {
|
|
|
1233
1235
|
return null;
|
|
1234
1236
|
}
|
|
1235
1237
|
//#endregion
|
|
1236
|
-
//#region src/
|
|
1238
|
+
//#region src/tui/programs/posthog-integration/screens/PostHogIntegrationIntroScreen.tsx
|
|
1237
1239
|
/**
|
|
1238
1240
|
* PostHogIntegrationIntroScreen — Intro screen for the core PostHog integration.
|
|
1239
1241
|
*
|
|
@@ -1313,7 +1315,7 @@ const FrameworkPicker = ({ store, onComplete }) => {
|
|
|
1313
1315
|
})),
|
|
1314
1316
|
onSelect: (value) => {
|
|
1315
1317
|
const integration = Array.isArray(value) ? value[0] : value;
|
|
1316
|
-
import("./registry-
|
|
1318
|
+
import("./registry-BamsM7J9.js").then(({ FRAMEWORK_REGISTRY }) => {
|
|
1317
1319
|
const config = FRAMEWORK_REGISTRY[integration];
|
|
1318
1320
|
store.setFrameworkConfig(integration, config);
|
|
1319
1321
|
store.setDetectedFramework(config.metadata.name);
|
|
@@ -1543,7 +1545,7 @@ const PostHogIntegrationIntroScreen = ({ store }) => {
|
|
|
1543
1545
|
});
|
|
1544
1546
|
};
|
|
1545
1547
|
//#endregion
|
|
1546
|
-
//#region src/
|
|
1548
|
+
//#region src/tui/programs/revenue-analytics/screens/RevenueIntroScreen.tsx
|
|
1547
1549
|
/**
|
|
1548
1550
|
* RevenueIntroScreen — Welcome screen for the revenue analytics flow.
|
|
1549
1551
|
*
|
|
@@ -1816,7 +1818,7 @@ const DetectErrorBody$2 = ({ error }) => {
|
|
|
1816
1818
|
}
|
|
1817
1819
|
};
|
|
1818
1820
|
//#endregion
|
|
1819
|
-
//#region src/
|
|
1821
|
+
//#region src/tui/programs/warehouse-source/screens/WarehouseIntroScreen.tsx
|
|
1820
1822
|
/**
|
|
1821
1823
|
* WarehouseIntroScreen — Welcome screen for the data warehouse source flow.
|
|
1822
1824
|
*
|
|
@@ -1975,7 +1977,7 @@ const DetectErrorBody$1 = ({ error }) => {
|
|
|
1975
1977
|
}
|
|
1976
1978
|
};
|
|
1977
1979
|
//#endregion
|
|
1978
|
-
//#region src/
|
|
1980
|
+
//#region src/tui/programs/migration/screens/MigrationIntroScreen.tsx
|
|
1979
1981
|
const MigrationIntroScreen = ({ store }) => {
|
|
1980
1982
|
useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
|
|
1981
1983
|
const { session } = store;
|
|
@@ -2003,7 +2005,7 @@ const MigrationIntroScreen = ({ store }) => {
|
|
|
2003
2005
|
});
|
|
2004
2006
|
};
|
|
2005
2007
|
//#endregion
|
|
2006
|
-
//#region src/
|
|
2008
|
+
//#region src/tui/programs/error-tracking-upload-source-maps/screens/SourceMapsIntroScreen.tsx
|
|
2007
2009
|
/**
|
|
2008
2010
|
* SourceMapsIntroScreen — Welcome screen for the source-maps upload flow.
|
|
2009
2011
|
*
|
|
@@ -2334,7 +2336,7 @@ async function detectSourceMapsProjects(session, onEvent) {
|
|
|
2334
2336
|
});
|
|
2335
2337
|
}
|
|
2336
2338
|
//#endregion
|
|
2337
|
-
//#region src/
|
|
2339
|
+
//#region src/tui/programs/error-tracking-upload-source-maps/screens/SourceMapsDetectScreen.tsx
|
|
2338
2340
|
/**
|
|
2339
2341
|
* SourceMapsDetectScreen — runs the Haiku detection agent over the repo, shows
|
|
2340
2342
|
* streaming progress, then renders a structured map of which projects can have
|
|
@@ -2557,7 +2559,7 @@ const BlockedSummary = ({ blocked }) => {
|
|
|
2557
2559
|
});
|
|
2558
2560
|
};
|
|
2559
2561
|
//#endregion
|
|
2560
|
-
//#region src/
|
|
2562
|
+
//#region src/tui/programs/error-tracking-upload-source-maps/screens/SourceMapsOutroScreen.tsx
|
|
2561
2563
|
/**
|
|
2562
2564
|
* SourceMapsOutroScreen — post-run summary for the source-maps upload flow.
|
|
2563
2565
|
*
|
|
@@ -2716,7 +2718,7 @@ const Section = ({ title, children }) => /* @__PURE__ */ jsxs(Box, {
|
|
|
2716
2718
|
}), children]
|
|
2717
2719
|
});
|
|
2718
2720
|
//#endregion
|
|
2719
|
-
//#region src/
|
|
2721
|
+
//#region src/tui/programs/shared/screens/AgentSkillIntroScreen.tsx
|
|
2720
2722
|
/**
|
|
2721
2723
|
* AgentSkillIntroScreen — Default intro for generic agent-skill programs.
|
|
2722
2724
|
*
|
|
@@ -2803,7 +2805,7 @@ const AgentSkillIntroScreen = ({ store }) => {
|
|
|
2803
2805
|
});
|
|
2804
2806
|
};
|
|
2805
2807
|
//#endregion
|
|
2806
|
-
//#region src/
|
|
2808
|
+
//#region src/tui/programs/ai-observability/screens/AiObservabilityIntroScreen.tsx
|
|
2807
2809
|
const AiObservabilityIntroScreen = ({ store }) => {
|
|
2808
2810
|
useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
|
|
2809
2811
|
const [showingMoreInfo, setShowingMoreInfo] = useState(false);
|
|
@@ -2880,7 +2882,7 @@ const AiObservabilityIntroScreen = ({ store }) => {
|
|
|
2880
2882
|
});
|
|
2881
2883
|
};
|
|
2882
2884
|
//#endregion
|
|
2883
|
-
//#region src/
|
|
2885
|
+
//#region src/tui/programs/metrics/screens/MetricsIntroScreen.tsx
|
|
2884
2886
|
const MetricsIntroScreen = ({ store }) => {
|
|
2885
2887
|
useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
|
|
2886
2888
|
const [showingMoreInfo, setShowingMoreInfo] = useState(false);
|
|
@@ -2963,7 +2965,7 @@ const MetricsIntroScreen = ({ store }) => {
|
|
|
2963
2965
|
});
|
|
2964
2966
|
};
|
|
2965
2967
|
//#endregion
|
|
2966
|
-
//#region src/
|
|
2968
|
+
//#region src/tui/programs/error-tracking/screens/ErrorTrackingIntroScreen.tsx
|
|
2967
2969
|
const ErrorTrackingIntroScreen = ({ store }) => {
|
|
2968
2970
|
useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
|
|
2969
2971
|
const [showingMoreInfo, setShowingMoreInfo] = useState(false);
|
|
@@ -2994,7 +2996,7 @@ const ErrorTrackingIntroScreen = ({ store }) => {
|
|
|
2994
2996
|
children: "error-tracking"
|
|
2995
2997
|
}),
|
|
2996
2998
|
" ",
|
|
2997
|
-
"program makes uncaught errors reach PostHog with readable stack traces. It installs and initializes the PostHog, wires up exception capture, and sets up source-map uploading when necessary. In PostHog, you can analyze these errors and have agents proactively suggest fixes in self-driving."
|
|
2999
|
+
"program makes uncaught errors reach PostHog with readable stack traces. It installs and initializes the PostHog, wires up exception capture, and sets up source-map uploading or release linking in your deploys when necessary. In PostHog, you can analyze these errors and have agents proactively suggest fixes in self-driving."
|
|
2998
3000
|
] }),
|
|
2999
3001
|
/* @__PURE__ */ jsx(Box, {
|
|
3000
3002
|
marginTop: 1,
|
|
@@ -3044,7 +3046,7 @@ const ErrorTrackingIntroScreen = ({ store }) => {
|
|
|
3044
3046
|
});
|
|
3045
3047
|
};
|
|
3046
3048
|
//#endregion
|
|
3047
|
-
//#region src/
|
|
3049
|
+
//#region src/tui/programs/error-tracking/screens/ErrorTrackingDetectScreen.tsx
|
|
3048
3050
|
/**
|
|
3049
3051
|
* ErrorTrackingDetectScreen — after login, runs the detection agent over the
|
|
3050
3052
|
* repo, streams its progress, and lets the user pick the project to set error
|
|
@@ -3223,7 +3225,7 @@ const ErrorTrackingDetectScreen = ({ store }) => {
|
|
|
3223
3225
|
});
|
|
3224
3226
|
};
|
|
3225
3227
|
//#endregion
|
|
3226
|
-
//#region src/
|
|
3228
|
+
//#region src/tui/programs/self-driving/screens/SelfDrivingIntroScreen.tsx
|
|
3227
3229
|
/**
|
|
3228
3230
|
* SelfDrivingIntroScreen — Welcome screen for the self-driving flow.
|
|
3229
3231
|
*
|
|
@@ -3398,7 +3400,7 @@ const DetectErrorBody = ({ error }) => {
|
|
|
3398
3400
|
}
|
|
3399
3401
|
};
|
|
3400
3402
|
//#endregion
|
|
3401
|
-
//#region src/
|
|
3403
|
+
//#region src/tui/programs/self-driving/screens/SelfDrivingIntegrationCheckScreen.tsx
|
|
3402
3404
|
/**
|
|
3403
3405
|
* SelfDrivingIntegrationCheckScreen — shown only when detection found no
|
|
3404
3406
|
* PostHog in the project. Self-driving needs a PostHog SDK, so we always
|
|
@@ -3652,7 +3654,7 @@ const SelfDrivingIntegrationCheckScreen = ({ store }) => {
|
|
|
3652
3654
|
});
|
|
3653
3655
|
};
|
|
3654
3656
|
//#endregion
|
|
3655
|
-
//#region src/
|
|
3657
|
+
//#region src/tui/programs/self-driving/screens/SelfDrivingIntegrationDetectScreen.tsx
|
|
3656
3658
|
/**
|
|
3657
3659
|
* SelfDrivingIntegrationDetectScreen — runs the Haiku detector over the repo,
|
|
3658
3660
|
* streams progress, then renders a picker of projects. Two kinds are offered:
|
|
@@ -3947,7 +3949,7 @@ const UnsupportedSummary = ({ unsupported }) => {
|
|
|
3947
3949
|
});
|
|
3948
3950
|
};
|
|
3949
3951
|
//#endregion
|
|
3950
|
-
//#region src/
|
|
3952
|
+
//#region src/tui/programs/self-driving/screens/SelfDrivingHandoffScreen.tsx
|
|
3951
3953
|
/**
|
|
3952
3954
|
* SelfDrivingHandoffScreen — the bridge between the integration run and the
|
|
3953
3955
|
* Self-driving run. Shown only in the integrate path (PostHog wasn't present, so
|
|
@@ -4017,7 +4019,7 @@ const SelfDrivingHandoffScreen = ({ store }) => {
|
|
|
4017
4019
|
});
|
|
4018
4020
|
};
|
|
4019
4021
|
//#endregion
|
|
4020
|
-
//#region src/
|
|
4022
|
+
//#region src/tui/programs/self-driving/hooks/useGithubConnection.ts
|
|
4021
4023
|
/**
|
|
4022
4024
|
* Polls `/integrations/` until the PostHog GitHub App shows up, writing the
|
|
4023
4025
|
* result to the session so the Self-driving GitHub gate can advance.
|
|
@@ -4081,7 +4083,7 @@ function useGithubConnection(store) {
|
|
|
4081
4083
|
]);
|
|
4082
4084
|
}
|
|
4083
4085
|
//#endregion
|
|
4084
|
-
//#region src/
|
|
4086
|
+
//#region src/tui/programs/self-driving/screens/SelfDrivingGitHubScreen.tsx
|
|
4085
4087
|
/**
|
|
4086
4088
|
* SelfDrivingGitHubScreen — the "Connect GitHub" gate, shown after the handoff
|
|
4087
4089
|
* and before the Self-driving run.
|
|
@@ -4233,7 +4235,7 @@ const SelfDrivingGitHubScreen = ({ store }) => {
|
|
|
4233
4235
|
});
|
|
4234
4236
|
};
|
|
4235
4237
|
//#endregion
|
|
4236
|
-
//#region src/
|
|
4238
|
+
//#region src/tui/programs/audit/screens/AuditIntroScreen.tsx
|
|
4237
4239
|
const AuditIntroScreen = ({ store }) => {
|
|
4238
4240
|
useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
|
|
4239
4241
|
const [showingMoreInfo, setShowingMoreInfo] = useState(false);
|
|
@@ -4310,7 +4312,7 @@ const AuditIntroScreen = ({ store }) => {
|
|
|
4310
4312
|
});
|
|
4311
4313
|
};
|
|
4312
4314
|
//#endregion
|
|
4313
|
-
//#region src/
|
|
4315
|
+
//#region src/tui/programs/audit/screens/AuditAreaPane.tsx
|
|
4314
4316
|
/**
|
|
4315
4317
|
* AuditAreaPane — left-pane slide that follows whatever area the agent is
|
|
4316
4318
|
* currently checking, plus a wrap-up state once every check is resolved
|
|
@@ -4453,7 +4455,7 @@ const WritingReport = ({ reportPath }) => /* @__PURE__ */ jsxs(Box, {
|
|
|
4453
4455
|
]
|
|
4454
4456
|
});
|
|
4455
4457
|
//#endregion
|
|
4456
|
-
//#region src/
|
|
4458
|
+
//#region src/tui/programs/audit/screens/slides/events-audit/detectSdk.tsx
|
|
4457
4459
|
const DetectVisual = () => /* @__PURE__ */ jsxs(VisualBox, { children: [
|
|
4458
4460
|
/* @__PURE__ */ jsx(Text, {
|
|
4459
4461
|
dimColor: true,
|
|
@@ -4503,7 +4505,7 @@ const DetectSdkSlide = {
|
|
|
4503
4505
|
docsUrl: "https://posthog.com/docs/libraries"
|
|
4504
4506
|
};
|
|
4505
4507
|
//#endregion
|
|
4506
|
-
//#region src/
|
|
4508
|
+
//#region src/tui/programs/audit/screens/slides/events-audit/scanSites.tsx
|
|
4507
4509
|
const ScanVisual = () => /* @__PURE__ */ jsxs(VisualBox, { children: [
|
|
4508
4510
|
/* @__PURE__ */ jsx(Text, {
|
|
4509
4511
|
dimColor: true,
|
|
@@ -4542,7 +4544,7 @@ const ScanSitesSlide = {
|
|
|
4542
4544
|
docsUrl: "https://posthog.com/docs/product-analytics/capture-events"
|
|
4543
4545
|
};
|
|
4544
4546
|
//#endregion
|
|
4545
|
-
//#region src/
|
|
4547
|
+
//#region src/tui/programs/audit/screens/slides/events-audit/enrichSites.tsx
|
|
4546
4548
|
const EnrichVisual = () => /* @__PURE__ */ jsxs(VisualBox, { children: [
|
|
4547
4549
|
/* @__PURE__ */ jsx(Text, {
|
|
4548
4550
|
dimColor: true,
|
|
@@ -4606,7 +4608,7 @@ const EnrichSitesSlide = {
|
|
|
4606
4608
|
docsUrl: "https://posthog.com/docs/product-analytics/best-practices"
|
|
4607
4609
|
};
|
|
4608
4610
|
//#endregion
|
|
4609
|
-
//#region src/
|
|
4611
|
+
//#region src/tui/programs/audit/screens/slides/events-audit/queryVolume.tsx
|
|
4610
4612
|
const QueryVisual = () => /* @__PURE__ */ jsxs(VisualBox, { children: [
|
|
4611
4613
|
/* @__PURE__ */ jsx(Text, {
|
|
4612
4614
|
dimColor: true,
|
|
@@ -4647,7 +4649,7 @@ const QueryVolumeSlide = {
|
|
|
4647
4649
|
docsUrl: "https://posthog.com/docs/product-analytics/sql"
|
|
4648
4650
|
};
|
|
4649
4651
|
//#endregion
|
|
4650
|
-
//#region src/
|
|
4652
|
+
//#region src/tui/programs/audit/screens/slides/events-audit/writeReport.tsx
|
|
4651
4653
|
const ReportVisual = () => /* @__PURE__ */ jsxs(VisualBox, { children: [
|
|
4652
4654
|
/* @__PURE__ */ jsx(Text, {
|
|
4653
4655
|
dimColor: true,
|
|
@@ -4681,7 +4683,7 @@ const WriteReportSlide = {
|
|
|
4681
4683
|
docsUrl: "https://posthog.com/docs/product-analytics/best-practices"
|
|
4682
4684
|
};
|
|
4683
4685
|
//#endregion
|
|
4684
|
-
//#region src/
|
|
4686
|
+
//#region src/tui/programs/audit/screens/slides/events-audit/createDashboard.tsx
|
|
4685
4687
|
const DashboardVisual = () => /* @__PURE__ */ jsxs(VisualBox, { children: [
|
|
4686
4688
|
/* @__PURE__ */ jsx(Text, {
|
|
4687
4689
|
dimColor: true,
|
|
@@ -4723,7 +4725,7 @@ const CreateDashboardSlide = {
|
|
|
4723
4725
|
docsUrl: "https://posthog.com/docs/product-analytics/dashboards"
|
|
4724
4726
|
};
|
|
4725
4727
|
//#endregion
|
|
4726
|
-
//#region src/
|
|
4728
|
+
//#region src/tui/programs/audit/screens/slides/events-audit/uploadNotebook.tsx
|
|
4727
4729
|
const NotebookVisual = () => /* @__PURE__ */ jsxs(VisualBox, { children: [
|
|
4728
4730
|
/* @__PURE__ */ jsx(Text, {
|
|
4729
4731
|
dimColor: true,
|
|
@@ -4754,7 +4756,7 @@ const NotebookVisual = () => /* @__PURE__ */ jsxs(VisualBox, { children: [
|
|
|
4754
4756
|
})
|
|
4755
4757
|
] });
|
|
4756
4758
|
//#endregion
|
|
4757
|
-
//#region src/
|
|
4759
|
+
//#region src/tui/programs/audit/screens/slides/events-audit/index.ts
|
|
4758
4760
|
const EVENTS_AUDIT_AREA_SLIDES = [
|
|
4759
4761
|
DetectSdkSlide,
|
|
4760
4762
|
ScanSitesSlide,
|
|
@@ -4774,7 +4776,7 @@ const EVENTS_AUDIT_AREA_SLIDES = [
|
|
|
4774
4776
|
}
|
|
4775
4777
|
];
|
|
4776
4778
|
//#endregion
|
|
4777
|
-
//#region src/
|
|
4779
|
+
//#region src/tui/programs/audit/screens/PendingChecksList.tsx
|
|
4778
4780
|
function groupByArea(checks) {
|
|
4779
4781
|
const order = [];
|
|
4780
4782
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -4885,7 +4887,7 @@ const PendingChecksList = ({ checks }) => {
|
|
|
4885
4887
|
});
|
|
4886
4888
|
};
|
|
4887
4889
|
//#endregion
|
|
4888
|
-
//#region src/
|
|
4890
|
+
//#region src/tui/programs/audit/screens/AuditRunScreen.tsx
|
|
4889
4891
|
const AuditRunScreen = ({ store }) => {
|
|
4890
4892
|
useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
|
|
4891
4893
|
const statuses = store.statusMessages.length > 0 ? store.statusMessages : void 0;
|
|
@@ -4936,7 +4938,7 @@ const AuditRunScreen = ({ store }) => {
|
|
|
4936
4938
|
});
|
|
4937
4939
|
};
|
|
4938
4940
|
//#endregion
|
|
4939
|
-
//#region src/
|
|
4941
|
+
//#region src/tui/programs/audit/screens/AuditChecksOutroSection.tsx
|
|
4940
4942
|
const MAX_VISIBLE = 6;
|
|
4941
4943
|
const AuditChecksOutroSection = ({ checks, installDir }) => {
|
|
4942
4944
|
if (checks.length === 0) return null;
|
|
@@ -5012,7 +5014,7 @@ const AuditChecksOutroSection = ({ checks, installDir }) => {
|
|
|
5012
5014
|
});
|
|
5013
5015
|
};
|
|
5014
5016
|
//#endregion
|
|
5015
|
-
//#region src/
|
|
5017
|
+
//#region src/tui/programs/audit/screens/AuditOutroScreen.tsx
|
|
5016
5018
|
/**
|
|
5017
5019
|
* AuditOutroScreen — Audit-specific post-run summary. Renders the standard
|
|
5018
5020
|
* success / error / cancel views with the audit checks summary inlined into
|
|
@@ -5115,7 +5117,7 @@ const AuditOutroScreen = ({ store }) => {
|
|
|
5115
5117
|
});
|
|
5116
5118
|
};
|
|
5117
5119
|
//#endregion
|
|
5118
|
-
//#region src/
|
|
5120
|
+
//#region src/tui/screens/SetupScreen.tsx
|
|
5119
5121
|
/**
|
|
5120
5122
|
* SetupScreen — Generic framework disambiguation.
|
|
5121
5123
|
*
|
|
@@ -5301,7 +5303,7 @@ async function openInBrowser(url) {
|
|
|
5301
5303
|
return false;
|
|
5302
5304
|
}
|
|
5303
5305
|
//#endregion
|
|
5304
|
-
//#region src/
|
|
5306
|
+
//#region src/tui/screens/AuthScreen.tsx
|
|
5305
5307
|
/**
|
|
5306
5308
|
* AuthScreen — Shown while waiting for OAuth authentication.
|
|
5307
5309
|
*
|
|
@@ -5495,7 +5497,7 @@ const AuthScreen = ({ store }) => {
|
|
|
5495
5497
|
});
|
|
5496
5498
|
};
|
|
5497
5499
|
//#endregion
|
|
5498
|
-
//#region src/
|
|
5500
|
+
//#region src/tui/screens/RunScreen.tsx
|
|
5499
5501
|
/**
|
|
5500
5502
|
* RunScreen — Default observational view of the agent run.
|
|
5501
5503
|
*
|
|
@@ -5570,7 +5572,7 @@ const RunScreen = ({ store }) => {
|
|
|
5570
5572
|
});
|
|
5571
5573
|
};
|
|
5572
5574
|
//#endregion
|
|
5573
|
-
//#region src/
|
|
5575
|
+
//#region src/tui/screens/KeepSkillsScreen.tsx
|
|
5574
5576
|
/**
|
|
5575
5577
|
* KeepSkillsScreen — Ask whether to keep installed skills in .claude/skills/.
|
|
5576
5578
|
*
|
|
@@ -5725,7 +5727,7 @@ const KeepSkillsScreen = ({ store }) => {
|
|
|
5725
5727
|
});
|
|
5726
5728
|
};
|
|
5727
5729
|
//#endregion
|
|
5728
|
-
//#region src/
|
|
5730
|
+
//#region src/tui/screens/MintFailureScreen.tsx
|
|
5729
5731
|
/** Two blocks of the PostHog flag, left of the headline. */
|
|
5730
5732
|
const Mark = () => /* @__PURE__ */ jsxs(Text, { children: [/* @__PURE__ */ jsx(Text, {
|
|
5731
5733
|
color: "#1D4AFF",
|
|
@@ -5877,7 +5879,7 @@ function MintFailureScreen({ store, services }) {
|
|
|
5877
5879
|
});
|
|
5878
5880
|
}
|
|
5879
5881
|
//#endregion
|
|
5880
|
-
//#region src/
|
|
5882
|
+
//#region src/tui/services/coding-agent-launcher.ts
|
|
5881
5883
|
const quote = (value) => `'${value.replace(/'/g, `'"'"'`)}'`;
|
|
5882
5884
|
const batchQuote = (value) => `"${value.replace(/%/g, "%%")}"`;
|
|
5883
5885
|
async function executable(name) {
|
|
@@ -5975,7 +5977,7 @@ async function openCodingAgent(agent, directory, spellbookPath) {
|
|
|
5975
5977
|
}
|
|
5976
5978
|
}
|
|
5977
5979
|
//#endregion
|
|
5978
|
-
//#region src/
|
|
5980
|
+
//#region src/tui/services/wizard-spellbook.ts
|
|
5979
5981
|
function selectSkills(menu, session, program) {
|
|
5980
5982
|
const entries = Object.values(menu.categories).flat().filter((entry) => /^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(entry.id));
|
|
5981
5983
|
const skillId = program.skillId ?? session.skillId;
|
|
@@ -6059,7 +6061,7 @@ async function writeWizardSpellbook(session, program) {
|
|
|
6059
6061
|
};
|
|
6060
6062
|
}
|
|
6061
6063
|
//#endregion
|
|
6062
|
-
//#region src/
|
|
6064
|
+
//#region src/tui/screens/ExitScreen.tsx
|
|
6063
6065
|
/**
|
|
6064
6066
|
* ExitScreen — Final step in every program.
|
|
6065
6067
|
*
|
|
@@ -6073,7 +6075,7 @@ const ExitScreen = ({ store }) => {
|
|
|
6073
6075
|
return null;
|
|
6074
6076
|
};
|
|
6075
6077
|
//#endregion
|
|
6076
|
-
//#region src/
|
|
6078
|
+
//#region src/tui/screens/AuthErrorScreen.tsx
|
|
6077
6079
|
/**
|
|
6078
6080
|
* AuthErrorScreen — Shown when the PostHog LLM Gateway returns a 401.
|
|
6079
6081
|
*
|
|
@@ -6272,7 +6274,7 @@ const AuthErrorScreen = ({ store }) => {
|
|
|
6272
6274
|
});
|
|
6273
6275
|
};
|
|
6274
6276
|
//#endregion
|
|
6275
|
-
//#region src/
|
|
6277
|
+
//#region src/tui/screens/SessionTimeoutScreen.tsx
|
|
6276
6278
|
/**
|
|
6277
6279
|
* SessionTimeoutScreen — shown when the OAuth login window expires before the
|
|
6278
6280
|
* user completes authorization.
|
|
@@ -6317,7 +6319,7 @@ const SessionTimeoutScreen = ({ store }) => {
|
|
|
6317
6319
|
});
|
|
6318
6320
|
};
|
|
6319
6321
|
//#endregion
|
|
6320
|
-
//#region src/
|
|
6322
|
+
//#region src/tui/screens/WizardAskScreen.tsx
|
|
6321
6323
|
/**
|
|
6322
6324
|
* WizardAskScreen — Overlay for the `wizard_ask` MCP tool.
|
|
6323
6325
|
*
|
|
@@ -6456,6 +6458,7 @@ const WizardAskScreen = ({ store }) => {
|
|
|
6456
6458
|
if (index + 1 < total) {
|
|
6457
6459
|
setAnswers(next);
|
|
6458
6460
|
setIndex(index + 1);
|
|
6461
|
+
store.noteAskProgress();
|
|
6459
6462
|
return;
|
|
6460
6463
|
}
|
|
6461
6464
|
store.resolvePendingQuestion(next);
|
|
@@ -6604,17 +6607,17 @@ const QuestionInput = ({ question, onSubmit }) => {
|
|
|
6604
6607
|
}
|
|
6605
6608
|
};
|
|
6606
6609
|
//#endregion
|
|
6607
|
-
//#region src/
|
|
6610
|
+
//#region src/shared/mcp-clients/login-client.ts
|
|
6608
6611
|
function isLoginCapable(client) {
|
|
6609
6612
|
return typeof client === "object" && client !== null && "loginCommand" in client;
|
|
6610
6613
|
}
|
|
6611
6614
|
//#endregion
|
|
6612
|
-
//#region src/
|
|
6615
|
+
//#region src/shared/mcp-clients/browser-client.ts
|
|
6613
6616
|
function isBrowserFinishable(c) {
|
|
6614
6617
|
return typeof c === "object" && c !== null && "connectorUrl" in c && "finishInstruction" in c;
|
|
6615
6618
|
}
|
|
6616
6619
|
//#endregion
|
|
6617
|
-
//#region src/
|
|
6620
|
+
//#region src/tui/services/mcp-installer.ts
|
|
6618
6621
|
/**
|
|
6619
6622
|
* McpInstaller — service layer between McpScreen and MCP business logic.
|
|
6620
6623
|
*
|
|
@@ -6689,7 +6692,7 @@ function createMcpInstaller() {
|
|
|
6689
6692
|
};
|
|
6690
6693
|
}
|
|
6691
6694
|
//#endregion
|
|
6692
|
-
//#region src/
|
|
6695
|
+
//#region src/tui/tools/mcp/services/suggested-prompts.ts
|
|
6693
6696
|
/**
|
|
6694
6697
|
* Production services. The `runPromptStreaming` implementation lives
|
|
6695
6698
|
* in a separate module so the heavy SDK import is only paid when
|
|
@@ -6738,7 +6741,7 @@ function createMcpSuggestedPromptsServices(store) {
|
|
|
6738
6741
|
};
|
|
6739
6742
|
}
|
|
6740
6743
|
async function* runProductionPromptStreaming(args) {
|
|
6741
|
-
const { runMcpPromptViaSdk } = await import("./agent-
|
|
6744
|
+
const { runMcpPromptViaSdk } = await import("./agent-QGK2YzlX.js");
|
|
6742
6745
|
yield* runMcpPromptViaSdk(args);
|
|
6743
6746
|
}
|
|
6744
6747
|
//#endregion
|
|
@@ -6819,7 +6822,7 @@ function createScreens(store, services) {
|
|
|
6819
6822
|
};
|
|
6820
6823
|
}
|
|
6821
6824
|
//#endregion
|
|
6822
|
-
//#region src/
|
|
6825
|
+
//#region src/tui/App.tsx
|
|
6823
6826
|
const App = ({ store }) => {
|
|
6824
6827
|
const services = useMemo(() => createServices(store), [store]);
|
|
6825
6828
|
return /* @__PURE__ */ jsx(ScreenContainer, {
|
|
@@ -6828,7 +6831,7 @@ const App = ({ store }) => {
|
|
|
6828
6831
|
});
|
|
6829
6832
|
};
|
|
6830
6833
|
//#endregion
|
|
6831
|
-
//#region src/
|
|
6834
|
+
//#region src/tui/exit-line.ts
|
|
6832
6835
|
/**
|
|
6833
6836
|
* exit-line.ts — builds the text printed to the MAIN terminal buffer after the
|
|
6834
6837
|
* wizard leaves the alternate screen on exit.
|
|
@@ -6906,7 +6909,7 @@ function getExitLine(store) {
|
|
|
6906
6909
|
return parts.join("\n\n");
|
|
6907
6910
|
}
|
|
6908
6911
|
//#endregion
|
|
6909
|
-
//#region src/
|
|
6912
|
+
//#region src/tui/start-tui.ts
|
|
6910
6913
|
/**
|
|
6911
6914
|
* start-tui.ts — Sets up the Ink TUI renderer and InkUI.
|
|
6912
6915
|
*
|
|
@@ -6915,6 +6918,7 @@ function getExitLine(store) {
|
|
|
6915
6918
|
* content is restored and a single exit summary line is printed.
|
|
6916
6919
|
*/
|
|
6917
6920
|
function startTUI(version, program = Program.PostHogIntegration, onInterrupt) {
|
|
6921
|
+
if (!process.stdin.isTTY) throw new WizardError("This command needs an interactive terminal (stdin is not a TTY). Run the wizard directly in a terminal, not through a pipe or script.", void 0, ErrorCodes.CliInteractiveRequired);
|
|
6918
6922
|
enterDarkTerminal();
|
|
6919
6923
|
const store = new WizardStore(program);
|
|
6920
6924
|
store.version = version;
|
|
@@ -6957,4 +6961,4 @@ function startTUI(version, program = Program.PostHogIntegration, onInterrupt) {
|
|
|
6957
6961
|
//#endregion
|
|
6958
6962
|
export { startTUI };
|
|
6959
6963
|
|
|
6960
|
-
//# sourceMappingURL=start-tui-
|
|
6964
|
+
//# sourceMappingURL=start-tui-DicLfgsj.js.map
|