@posthog/wizard 2.81.1 → 2.83.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/{agent-interface-DMP3DZRd.js → agent-interface-fcDXqb-_.js} +285 -66
- package/dist/agent-interface-fcDXqb-_.js.map +1 -0
- package/dist/{agent-prompt-loader-BrivWIna.js → agent-prompt-loader-F9gGPMt0.js} +6 -6
- package/dist/{agent-prompt-loader-BrivWIna.js.map → agent-prompt-loader-F9gGPMt0.js.map} +1 -1
- package/dist/analytics-C9QnGvuc.js +2 -0
- package/dist/{analytics-X7JfAmh6.js → analytics-GQv--mQm.js} +6 -4
- package/dist/analytics-GQv--mQm.js.map +1 -0
- package/dist/api-CsXfZKkq.js +2 -0
- package/dist/{api-BkDwZoL4.js → api-WUOSLXPJ.js} +71 -3
- package/dist/{api-BkDwZoL4.js.map → api-WUOSLXPJ.js.map} +1 -1
- package/dist/api-key-login-CDSxsYtP.js +2 -0
- package/dist/{api-key-login-DE0yKkP4.js → api-key-login-tysMeZnR.js} +5 -5
- package/dist/{api-key-login-DE0yKkP4.js.map → api-key-login-tysMeZnR.js.map} +1 -1
- package/dist/bin.js +1 -1
- package/dist/{bounded-fs-iDiqDQ9v.js → bounded-fs-B31zq2ir.js} +6 -4
- package/dist/bounded-fs-B31zq2ir.js.map +1 -0
- package/dist/{ci-install-BAftKh2Z.js → ci-install-CYSFbFXd.js} +4 -4
- package/dist/{ci-install-BAftKh2Z.js.map → ci-install-CYSFbFXd.js.map} +1 -1
- package/dist/{debug-C3tLP-ZW.js → debug-BTUMatFI.js} +3 -3
- package/dist/{debug-C3tLP-ZW.js.map → debug-BTUMatFI.js.map} +1 -1
- package/dist/{gateway-IQjQ582o.js → gateway-CJ8Jqbll.js} +20 -6
- package/dist/{gateway-IQjQ582o.js.map → gateway-CJ8Jqbll.js.map} +1 -1
- package/dist/{headless-XNvdWVEp.js → headless-DZ3mq07K.js} +1 -1
- package/dist/{headless-DOhxEmw5.js → headless-le-QqOuj.js} +2 -2
- package/dist/{headless-DOhxEmw5.js.map → headless-le-QqOuj.js.map} +1 -1
- package/dist/{host-resolution-DI2oucSK.js → host-resolution-Cht8bL39.js} +4 -4
- package/dist/{host-resolution-DI2oucSK.js.map → host-resolution-Cht8bL39.js.map} +1 -1
- package/dist/{install-DaZ6pvEl.js → install-55JbRsO-.js} +1 -1
- package/dist/{install-BixbBDLR.js → install-BhnFP3p3.js} +5 -5
- package/dist/{install-BixbBDLR.js.map → install-BhnFP3p3.js.map} +1 -1
- package/dist/{interactive-WLNQWF0D.js → interactive-9qRL8259.js} +3 -3
- package/dist/{interactive-WLNQWF0D.js.map → interactive-9qRL8259.js.map} +1 -1
- package/dist/{links-Bye4fsrj.js → links-5Blqk4Im.js} +3 -3
- package/dist/{links-Bye4fsrj.js.map → links-5Blqk4Im.js.map} +1 -1
- package/dist/{main-CN8nbuZO.js → main-CUIcozEG.js} +24 -21
- package/dist/main-CUIcozEG.js.map +1 -0
- package/dist/{mcp-B2o4d9DS.js → mcp-D73aCOHK.js} +3 -3
- package/dist/{mcp-B2o4d9DS.js.map → mcp-D73aCOHK.js.map} +1 -1
- package/dist/{mcp-prompt-streaming-COs1DfAm.js → mcp-prompt-streaming-B5lIQ0l1.js} +5 -5
- package/dist/{mcp-prompt-streaming-COs1DfAm.js.map → mcp-prompt-streaming-B5lIQ0l1.js.map} +1 -1
- package/dist/{models-Cow22jET.js → models-CLTglHFZ.js} +6 -2
- package/dist/models-CLTglHFZ.js.map +1 -0
- package/dist/{oauth-session-Bj_-BY7o.js → oauth-session-CfkZ339p.js} +45 -3
- package/dist/oauth-session-CfkZ339p.js.map +1 -0
- package/dist/{orchestrator-tools-lhFIBGnp.js → orchestrator-tools-lvNVQhzs.js} +3 -3
- package/dist/{orchestrator-tools-lhFIBGnp.js.map → orchestrator-tools-lvNVQhzs.js.map} +1 -1
- package/dist/{package-manager-DZ4wcTz3.js → package-manager-BqRNp5y_.js} +4 -4
- package/dist/{package-manager-DZ4wcTz3.js.map → package-manager-BqRNp5y_.js.map} +1 -1
- package/dist/{pi-DREdQRPP.js → pi-2pYz2OY3.js} +61 -24
- package/dist/pi-2pYz2OY3.js.map +1 -0
- package/dist/{playground-CJx3lwTH.js → playground-jxZNxRwC.js} +4 -4
- package/dist/{playground-CJx3lwTH.js.map → playground-jxZNxRwC.js.map} +1 -1
- package/dist/{posthog-integration-DDSPdbpw.js → posthog-integration-DxRkw5DI.js} +79 -36
- package/dist/posthog-integration-DxRkw5DI.js.map +1 -0
- package/dist/{programs-DvlhdeM_.js → programs-D2793-PK.js} +2 -2
- package/dist/{programs-6SFfUBmm.js → programs-eTv2T2rs.js} +142 -62
- package/dist/programs-eTv2T2rs.js.map +1 -0
- package/dist/provisioning-CtQ0GEHa.js +2 -0
- package/dist/{provisioning-tRDPH7EQ.js → provisioning-c5JJ30KX.js} +4 -4
- package/dist/{provisioning-tRDPH7EQ.js.map → provisioning-c5JJ30KX.js.map} +1 -1
- package/dist/{queue-tools-DrJKvFHZ.js → queue-tools-10w8lhEs.js} +14 -5
- package/dist/queue-tools-10w8lhEs.js.map +1 -0
- package/dist/{results-Crcubw0Q.js → results-C45prSKD.js} +2 -2
- package/dist/{results-Crcubw0Q.js.map → results-C45prSKD.js.map} +1 -1
- package/dist/{run-DVFTMbxf.js → run-CM24OgPF.js} +10 -10
- package/dist/{run-DVFTMbxf.js.map → run-CM24OgPF.js.map} +1 -1
- package/dist/{run-BrIGaPy7.js → run-jugssomh.js} +7 -7
- package/dist/{run-BrIGaPy7.js.map → run-jugssomh.js.map} +1 -1
- package/dist/run-tool-BZFgFb_2.js +2 -0
- package/dist/{run-tool-CxdPXmlY.js → run-tool-DZrZFoGq.js} +13 -13
- package/dist/{run-tool-CxdPXmlY.js.map → run-tool-DZrZFoGq.js.map} +1 -1
- package/dist/{runners-loOOmHyc.js → runners-CoIYt0iI.js} +8 -8
- package/dist/{runners-loOOmHyc.js.map → runners-CoIYt0iI.js.map} +1 -1
- package/dist/{security-C_grSgIM.js → security-ppK2MwCn.js} +6 -5
- package/dist/{security-C_grSgIM.js.map → security-ppK2MwCn.js.map} +1 -1
- package/dist/{setup-utils-BYXbb9NM.js → setup-utils-B5E1rXLa.js} +3 -3
- package/dist/{setup-utils-BYXbb9NM.js.map → setup-utils-B5E1rXLa.js.map} +1 -1
- package/dist/{start-playground-Blh0Swil.js → start-playground-DujiUNFT.js} +7 -7
- package/dist/{start-playground-Blh0Swil.js.map → start-playground-DujiUNFT.js.map} +1 -1
- package/dist/{subagent-DQ_enM8C.js → subagent-BdDWA8j5.js} +12 -4
- package/dist/subagent-BdDWA8j5.js.map +1 -0
- package/dist/{task-Dm9wZbVW.js → task-Y8lWoDE7.js} +46 -23
- package/dist/task-Y8lWoDE7.js.map +1 -0
- package/dist/{telemetry-NeZhrBeW.js → telemetry-Cwqf0iur.js} +2 -2
- package/dist/{telemetry-NeZhrBeW.js.map → telemetry-Cwqf0iur.js.map} +1 -1
- package/dist/{terminal-Z4hCXfie.js → terminal-BLL-X6YP.js} +401 -41
- package/dist/terminal-BLL-X6YP.js.map +1 -0
- package/dist/{tools-dUJHRo6X.js → tools-C8k90ISV.js} +13 -13
- package/dist/{tools-dUJHRo6X.js.map → tools-C8k90ISV.js.map} +1 -1
- package/dist/{tools-1aM6bI9Y.js → tools-g42e5kJz.js} +15 -11
- package/dist/tools-g42e5kJz.js.map +1 -0
- package/dist/{tui-CCO7VVTA.js → tui-BPWJ-J-k.js} +1 -1
- package/dist/{tui-Cmi_ckGg.js → tui-CBnRWnrm.js} +4 -4
- package/dist/tui-CBnRWnrm.js.map +1 -0
- package/dist/{upload-step-e2Jp2fcr.js → upload-step-CFoxwd5t.js} +3 -3
- package/dist/{upload-step-e2Jp2fcr.js.map → upload-step-CFoxwd5t.js.map} +1 -1
- package/dist/{urls-Cu4RO30x.js → urls-BTZhm5eA.js} +2 -2
- package/dist/{urls-Cu4RO30x.js.map → urls-BTZhm5eA.js.map} +1 -1
- package/dist/{wizard-abort-BPEiPCXk.js → wizard-abort-HtpiSsQO.js} +4 -4
- package/dist/{wizard-abort-BPEiPCXk.js.map → wizard-abort-HtpiSsQO.js.map} +1 -1
- package/dist/{yara-hooks-canFIYTc.js → yara-hooks-BPYhN9WM.js} +4 -4
- package/dist/{yara-hooks-canFIYTc.js.map → yara-hooks-BPYhN9WM.js.map} +1 -1
- package/dist/{yara-hooks-CFD60h78.js → yara-hooks-BwhEDXIt.js} +1 -1
- package/package.json +1 -1
- package/dist/agent-interface-DMP3DZRd.js.map +0 -1
- package/dist/analytics-X7JfAmh6.js.map +0 -1
- package/dist/analytics-dcL9EQ4r.js +0 -2
- package/dist/api-BrMGAI-b.js +0 -2
- package/dist/api-key-login-CZEgx2jb.js +0 -2
- package/dist/bounded-fs-iDiqDQ9v.js.map +0 -1
- package/dist/main-CN8nbuZO.js.map +0 -1
- package/dist/models-Cow22jET.js.map +0 -1
- package/dist/oauth-session-Bj_-BY7o.js.map +0 -1
- package/dist/pi-DREdQRPP.js.map +0 -1
- package/dist/posthog-integration-DDSPdbpw.js.map +0 -1
- package/dist/programs-6SFfUBmm.js.map +0 -1
- package/dist/provisioning-CPGWgv7p.js +0 -2
- package/dist/queue-tools-DrJKvFHZ.js.map +0 -1
- package/dist/run-tool-GfISLgEs.js +0 -2
- package/dist/subagent-DQ_enM8C.js.map +0 -1
- package/dist/task-Dm9wZbVW.js.map +0 -1
- package/dist/terminal-Z4hCXfie.js.map +0 -1
- package/dist/tools-1aM6bI9Y.js.map +0 -1
- package/dist/tui-Cmi_ckGg.js.map +0 -1
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { n as ErrorCodes } from "./emit-BqLCdV8Y.js";
|
|
2
|
-
import { d as relativeToInstallDir, i as getLogFilePath, o as logToFile } from "./debug-
|
|
3
|
-
import {
|
|
4
|
-
import { A as getProvisioningScopesForProgram, B as
|
|
2
|
+
import { d as relativeToInstallDir, i as getLogFilePath, o as logToFile } from "./debug-BTUMatFI.js";
|
|
3
|
+
import { $ as WIZARD_PROVISIONING_SCOPES, A as OAUTH_TIMEOUT_MS, D as ISSUES_URL, F as POSTHOG_ORG_AI_SETTINGS_URL, H as SETUP_REPORT_FILE, I as POSTHOG_PRIVACY_URL, N as POSTHOG_DOCS_URL, O as Integration, V as REPLAY_VISION_SUPPORTED, Y as WIZARD_OAUTH_SCOPES, i as sessionProperties, it as getSkillsBaseUrl, j as POSTHOG_APP_URL, k as OAUTH_PORTS, m as DUMMY_PROJECT_API_KEY, n as analytics, rt as WIZARD_USER_AGENT, z as POSTHOG_TERMS_URL } from "./analytics-GQv--mQm.js";
|
|
4
|
+
import { A as getProvisioningScopesForProgram, B as detectSourceMapsProjects, C as oauthErrorFromTokenBody, D as getCommandPath, E as findProgramConfig, G as NO_DEFAULT_LIMIT, H as MANUAL_SDK_VARIANTS, J as detectSelfDrivingIntegrationProjects, K as PRICING_LONG, L as ERROR_TRACKING_PROJECT_PATH_KEY, N as FEATURE_FLAGS_STEP_SKILL_ID, O as getOAuthScopesForProgram, P as FEATURE_FLAGS_UNSUPPORTED, Q as SELF_DRIVING_INTEGRATE_PATH_KEY, R as detectErrorTrackingProjects, S as oauthErrorFromCallbackParams, T as Program, U as SOURCE_MAPS_CONTEXT_KEYS, V as DISPLAY_NAME, X as GITHUB_REQUIRED_MESSAGE, Y as GITHUB_REQUIRED_BODY, Z as POSTHOG_PRESENT_KEY, _ as missingOAuthScopes, at as getAuditChecks, b as buildCallbackErrorHtml, c as buildSession, ct as evaluateWizardReadiness, d as SessionStore, f as applyAgentProgress, g as getOAuthClientId, h as OAuthTokenResponseSchema, it as withScopeAdditions, j as getSubcommandPrograms, k as getProgramConfig, lt as getBlockingServiceKeys, ot as SERVICE_LABELS, q as PRICING_SHORT, rt as CONNECT_SLACK_SCOPE_ADDITIONS, st as SIGNUP_WIZARD_READINESS_CONFIG, v as parseOAuthScopes, x as buildOAuthFailureMessage, y as OAuthError } from "./programs-eTv2T2rs.js";
|
|
5
5
|
import "./errors-DhFeR8Sp.js";
|
|
6
|
-
import { r as withUtm, t as openTrackedLink } from "./links-
|
|
7
|
-
import { t as withProgress } from "./telemetry-
|
|
8
|
-
import { t as detectOrgAndProject } from "./setup-utils-
|
|
9
|
-
import { r as currentCredentials } from "./oauth-session-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { n as namesWithStatus, o as summarizeFailure, t as isOk } from "./results-
|
|
16
|
-
import { f as getKindMeta, l as MCP_TUTORIAL_SCOPE_ADDITIONS, n as getTool, p as fetchHealthIssues } from "./tools-
|
|
17
|
-
import { a as fetchGithubConnected, c as fetchUserData, n as ApiError, o as fetchProjectData, s as fetchSlackConnected } from "./api-BkDwZoL4.js";
|
|
6
|
+
import { r as withUtm, t as openTrackedLink } from "./links-5Blqk4Im.js";
|
|
7
|
+
import { t as withProgress } from "./telemetry-Cwqf0iur.js";
|
|
8
|
+
import { t as detectOrgAndProject } from "./setup-utils-B5E1rXLa.js";
|
|
9
|
+
import { r as currentCredentials, s as rotateAfterUnauthorized } from "./oauth-session-CfkZ339p.js";
|
|
10
|
+
import { a as getOAuthUrl, i as getIntegrationAuthorizeUrl, s as resolveBaseUrl } from "./urls-BTZhm5eA.js";
|
|
11
|
+
import { t as HostResolution } from "./host-resolution-Cht8bL39.js";
|
|
12
|
+
import { A as formatCostUsd, C as FRAMEWORK_REGISTRY, E as streamMcpPrompt, c as POSTHOG_SDKS, j as formatTokenCount, k as computeTokenCostUsd, l as STRIPE_SDKS, p as getDetectedWarehouseSources } from "./posthog-integration-DxRkw5DI.js";
|
|
13
|
+
import { y as fetchSkillMenu } from "./yara-hooks-BPYhN9WM.js";
|
|
14
|
+
import { c as fetchProjectData, l as fetchSlackConnected, n as ApiError, o as fetchGithubConnected, u as fetchUserData } from "./api-WUOSLXPJ.js";
|
|
15
|
+
import { n as namesWithStatus, o as summarizeFailure, t as isOk } from "./results-C45prSKD.js";
|
|
16
|
+
import { f as getKindMeta, l as MCP_TUTORIAL_SCOPE_ADDITIONS, n as getTool, p as fetchHealthIssues } from "./tools-C8k90ISV.js";
|
|
18
17
|
import { n as AVAILABLE_FEATURES, o as isAllFeaturesSelected, t as ALL_FEATURE_VALUES } from "./defaults-DDVl3tKN.js";
|
|
19
|
-
import { n as provisionNewAccount, r as requestDeepLink, t as ProvisionedAccountUnreadableError } from "./provisioning-
|
|
20
|
-
import { r as wizardAbort } from "./wizard-abort-
|
|
18
|
+
import { n as provisionNewAccount, r as requestDeepLink, t as ProvisionedAccountUnreadableError } from "./provisioning-c5JJ30KX.js";
|
|
19
|
+
import { r as wizardAbort } from "./wizard-abort-HtpiSsQO.js";
|
|
21
20
|
import { a as useStdoutDimensions, c as wrapAndTruncate, d as isObjectBlock, f as ConfirmButton, h as Icons, i as useKeyboardHintsContext, l as isClearBlock, m as Colors, n as useKeyBindings, o as computeVisibleRange, p as PromptLabel, r as KeyboardHintsProvider, s as wordWrap, t as PickerMenu, u as isLinesBlock } from "./PickerMenu-BGGeYqd-.js";
|
|
22
21
|
import * as fs$1 from "fs";
|
|
23
22
|
import path from "path";
|
|
@@ -241,7 +240,7 @@ const TextBlock = ({ text, active, completed, onComplete, mode, bullet, animatio
|
|
|
241
240
|
* skill-based program (audit, revenue-analytics, agent-skill, etc.)
|
|
242
241
|
* runs. Skill programs don't need the full PostHog onboarding narrative.
|
|
243
242
|
*/
|
|
244
|
-
const getContentBlocks$
|
|
243
|
+
const getContentBlocks$6 = (store) => {
|
|
245
244
|
return [
|
|
246
245
|
{
|
|
247
246
|
content: "Welcome.",
|
|
@@ -2297,7 +2296,7 @@ const AgentSkillIntroScreen = ({ store }) => {
|
|
|
2297
2296
|
//#region src/tui/programs/shared/skill-program.tsx
|
|
2298
2297
|
const SKILL_PROGRAM = {
|
|
2299
2298
|
flow: AGENT_SKILL_STEPS,
|
|
2300
|
-
deck: getContentBlocks$
|
|
2299
|
+
deck: getContentBlocks$6,
|
|
2301
2300
|
screens: { ["agent-skill-intro"]: (store) => /* @__PURE__ */ jsx(AgentSkillIntroScreen, { store }) }
|
|
2302
2301
|
};
|
|
2303
2302
|
//#endregion
|
|
@@ -2377,12 +2376,12 @@ const AiObservabilityIntroScreen = ({ store }) => {
|
|
|
2377
2376
|
onSelect: handleSelect
|
|
2378
2377
|
});
|
|
2379
2378
|
};
|
|
2380
|
-
const TUI_PROGRAMS$
|
|
2379
|
+
const TUI_PROGRAMS$11 = { "ai-observability": {
|
|
2381
2380
|
flow: AGENT_SKILL_STEPS.map((step) => step.id === "intro" ? {
|
|
2382
2381
|
...step,
|
|
2383
2382
|
screenId: "ai-observability-intro"
|
|
2384
2383
|
} : step),
|
|
2385
|
-
deck: getContentBlocks$
|
|
2384
|
+
deck: getContentBlocks$6,
|
|
2386
2385
|
screens: { ["ai-observability-intro"]: (store) => /* @__PURE__ */ jsx(AiObservabilityIntroScreen, { store }) }
|
|
2387
2386
|
} };
|
|
2388
2387
|
//#endregion
|
|
@@ -4138,10 +4137,10 @@ const screens = {
|
|
|
4138
4137
|
["audit-run"]: (store) => /* @__PURE__ */ jsx(AuditRunScreen, { store }),
|
|
4139
4138
|
["audit-outro"]: (store) => /* @__PURE__ */ jsx(AuditOutroScreen, { store })
|
|
4140
4139
|
};
|
|
4141
|
-
const TUI_PROGRAMS$
|
|
4140
|
+
const TUI_PROGRAMS$10 = {
|
|
4142
4141
|
audit: {
|
|
4143
4142
|
flow: AUDIT_FLOW,
|
|
4144
|
-
deck: getContentBlocks$
|
|
4143
|
+
deck: getContentBlocks$6,
|
|
4145
4144
|
screens
|
|
4146
4145
|
},
|
|
4147
4146
|
"events-audit": {
|
|
@@ -4522,7 +4521,7 @@ const buildSourceMapsDeck = (store, copy) => pace([
|
|
|
4522
4521
|
]);
|
|
4523
4522
|
//#endregion
|
|
4524
4523
|
//#region src/tui/programs/error-tracking/deck/index.tsx
|
|
4525
|
-
const getContentBlocks$
|
|
4524
|
+
const getContentBlocks$5 = (store) => buildSourceMapsDeck(store, {
|
|
4526
4525
|
intro: "I'm wiring PostHog Error Tracking into your project.",
|
|
4527
4526
|
wiring: "If your platform ships minified code or stripped binaries, I also hook source-map or debug-symbol upload into your build, tied to each release you ship. On Python, Ruby and PHP, I link each production deploy to its release instead."
|
|
4528
4527
|
});
|
|
@@ -4549,7 +4548,7 @@ const ERROR_TRACKING_TIPS = [
|
|
|
4549
4548
|
description: "Create a GitHub, GitLab, Jira or Linear issue straight from an error."
|
|
4550
4549
|
}
|
|
4551
4550
|
];
|
|
4552
|
-
const getTips$
|
|
4551
|
+
const getTips$2 = () => ERROR_TRACKING_TIPS;
|
|
4553
4552
|
//#endregion
|
|
4554
4553
|
//#region src/tui/programs/error-tracking/screens/ErrorTrackingIntroScreen.tsx
|
|
4555
4554
|
const ErrorTrackingIntroScreen = ({ store }) => {
|
|
@@ -4887,10 +4886,10 @@ const ErrorTrackingDetectScreen = ({ store }) => {
|
|
|
4887
4886
|
};
|
|
4888
4887
|
//#endregion
|
|
4889
4888
|
//#region src/tui/programs/error-tracking/index.tsx
|
|
4890
|
-
const TUI_PROGRAMS$
|
|
4889
|
+
const TUI_PROGRAMS$9 = { "error-tracking": {
|
|
4891
4890
|
flow: ERROR_TRACKING_FLOW,
|
|
4892
|
-
deck: getContentBlocks$
|
|
4893
|
-
tips: getTips$
|
|
4891
|
+
deck: getContentBlocks$5,
|
|
4892
|
+
tips: getTips$2,
|
|
4894
4893
|
screens: {
|
|
4895
4894
|
["error-tracking-intro"]: (store) => /* @__PURE__ */ jsx(ErrorTrackingIntroScreen, { store }),
|
|
4896
4895
|
["error-tracking-detect"]: (store) => /* @__PURE__ */ jsx(ErrorTrackingDetectScreen, { store })
|
|
@@ -4941,7 +4940,7 @@ const ERROR_TRACKING_UPLOAD_SOURCE_MAPS_FLOW = [
|
|
|
4941
4940
|
];
|
|
4942
4941
|
//#endregion
|
|
4943
4942
|
//#region src/tui/programs/error-tracking-upload-source-maps/deck/index.tsx
|
|
4944
|
-
const getContentBlocks$
|
|
4943
|
+
const getContentBlocks$4 = (store) => buildSourceMapsDeck(store, {
|
|
4945
4944
|
intro: "I'm wiring PostHog Error Tracking into your build.",
|
|
4946
4945
|
wiring: "Right now I'm hooking source-map generation and upload into your build, tied to each release you ship."
|
|
4947
4946
|
});
|
|
@@ -5431,9 +5430,9 @@ const Section = ({ title, children }) => /* @__PURE__ */ jsxs(Box, {
|
|
|
5431
5430
|
});
|
|
5432
5431
|
//#endregion
|
|
5433
5432
|
//#region src/tui/programs/error-tracking-upload-source-maps/index.tsx
|
|
5434
|
-
const TUI_PROGRAMS$
|
|
5433
|
+
const TUI_PROGRAMS$8 = { "error-tracking-upload-source-maps": {
|
|
5435
5434
|
flow: ERROR_TRACKING_UPLOAD_SOURCE_MAPS_FLOW,
|
|
5436
|
-
deck: getContentBlocks$
|
|
5435
|
+
deck: getContentBlocks$4,
|
|
5437
5436
|
screens: {
|
|
5438
5437
|
["source-maps-intro"]: (store) => /* @__PURE__ */ jsx(SourceMapsIntroScreen, { store }),
|
|
5439
5438
|
["source-maps-detect"]: (store) => /* @__PURE__ */ jsx(SourceMapsDetectScreen, { store }),
|
|
@@ -5441,6 +5440,366 @@ const TUI_PROGRAMS$7 = { "error-tracking-upload-source-maps": {
|
|
|
5441
5440
|
}
|
|
5442
5441
|
} };
|
|
5443
5442
|
//#endregion
|
|
5443
|
+
//#region src/tui/programs/feature-flags/deck/index.tsx
|
|
5444
|
+
const GATED_CODE = {
|
|
5445
|
+
type: "lines",
|
|
5446
|
+
interval: 400,
|
|
5447
|
+
pause: 7e3,
|
|
5448
|
+
lines: [
|
|
5449
|
+
/* @__PURE__ */ jsx(Text, { children: " " }),
|
|
5450
|
+
/* @__PURE__ */ jsx(Text, {
|
|
5451
|
+
dimColor: true,
|
|
5452
|
+
children: "example — a flag around new code"
|
|
5453
|
+
}),
|
|
5454
|
+
/* @__PURE__ */ jsxs(Text, { children: [/* @__PURE__ */ jsx(Text, {
|
|
5455
|
+
color: "cyan",
|
|
5456
|
+
children: "if"
|
|
5457
|
+
}), /* @__PURE__ */ jsx(Text, { children: " (flags.isEnabled('new-checkout')) {" })] }),
|
|
5458
|
+
/* @__PURE__ */ jsx(Text, { children: " showNewCheckout()" }),
|
|
5459
|
+
/* @__PURE__ */ jsx(Text, { children: "}" })
|
|
5460
|
+
]
|
|
5461
|
+
};
|
|
5462
|
+
const GRADUAL_ROLLOUT = {
|
|
5463
|
+
type: "lines",
|
|
5464
|
+
interval: 700,
|
|
5465
|
+
pause: 7e3,
|
|
5466
|
+
lines: [
|
|
5467
|
+
/* @__PURE__ */ jsx(Text, { children: " " }),
|
|
5468
|
+
/* @__PURE__ */ jsx(Text, {
|
|
5469
|
+
dimColor: true,
|
|
5470
|
+
children: "example — new-checkout rollout"
|
|
5471
|
+
}),
|
|
5472
|
+
/* @__PURE__ */ jsxs(Text, { children: [
|
|
5473
|
+
/* @__PURE__ */ jsx(Text, {
|
|
5474
|
+
color: Colors.accent,
|
|
5475
|
+
children: "▓"
|
|
5476
|
+
}),
|
|
5477
|
+
/* @__PURE__ */ jsx(Text, {
|
|
5478
|
+
dimColor: true,
|
|
5479
|
+
children: "░░░░░░░░░"
|
|
5480
|
+
}),
|
|
5481
|
+
/* @__PURE__ */ jsx(Text, { children: " 5% internal team" })
|
|
5482
|
+
] }),
|
|
5483
|
+
/* @__PURE__ */ jsxs(Text, { children: [
|
|
5484
|
+
/* @__PURE__ */ jsx(Text, {
|
|
5485
|
+
color: Colors.accent,
|
|
5486
|
+
children: "▓▓▓▓▓"
|
|
5487
|
+
}),
|
|
5488
|
+
/* @__PURE__ */ jsx(Text, {
|
|
5489
|
+
dimColor: true,
|
|
5490
|
+
children: "░░░░░"
|
|
5491
|
+
}),
|
|
5492
|
+
/* @__PURE__ */ jsx(Text, { children: " 50% half of users" })
|
|
5493
|
+
] }),
|
|
5494
|
+
/* @__PURE__ */ jsxs(Text, { children: [/* @__PURE__ */ jsx(Text, {
|
|
5495
|
+
color: Colors.success,
|
|
5496
|
+
children: "▓▓▓▓▓▓▓▓▓▓"
|
|
5497
|
+
}), /* @__PURE__ */ jsx(Text, { children: " 100% everyone" })] })
|
|
5498
|
+
]
|
|
5499
|
+
};
|
|
5500
|
+
const RUN_PLAN = {
|
|
5501
|
+
type: "lines",
|
|
5502
|
+
interval: 600,
|
|
5503
|
+
pause: 8e3,
|
|
5504
|
+
lines: [
|
|
5505
|
+
/* @__PURE__ */ jsxs(Text, { children: [/* @__PURE__ */ jsx(Text, {
|
|
5506
|
+
color: "cyan",
|
|
5507
|
+
children: "1 "
|
|
5508
|
+
}), /* @__PURE__ */ jsx(Text, { children: "Create example flags, off at 0%" })] }),
|
|
5509
|
+
/* @__PURE__ */ jsxs(Text, { children: [/* @__PURE__ */ jsx(Text, {
|
|
5510
|
+
color: "cyan",
|
|
5511
|
+
children: "2 "
|
|
5512
|
+
}), /* @__PURE__ */ jsx(Text, { children: "Evaluate the backend flag on the server" })] }),
|
|
5513
|
+
/* @__PURE__ */ jsxs(Text, { children: [/* @__PURE__ */ jsx(Text, {
|
|
5514
|
+
color: "cyan",
|
|
5515
|
+
children: "3 "
|
|
5516
|
+
}), /* @__PURE__ */ jsx(Text, { children: "Evaluate the frontend flag in the UI" })] }),
|
|
5517
|
+
/* @__PURE__ */ jsxs(Text, { children: [/* @__PURE__ */ jsx(Text, {
|
|
5518
|
+
color: "cyan",
|
|
5519
|
+
children: "4 "
|
|
5520
|
+
}), /* @__PURE__ */ jsx(Text, { children: "Publish a report to a PostHog notebook" })] })
|
|
5521
|
+
]
|
|
5522
|
+
};
|
|
5523
|
+
const getContentBlocks$3 = (store) => [
|
|
5524
|
+
{
|
|
5525
|
+
content: "Welcome.",
|
|
5526
|
+
pause: 3e3,
|
|
5527
|
+
mode: 0,
|
|
5528
|
+
animationInterval: 160
|
|
5529
|
+
},
|
|
5530
|
+
{
|
|
5531
|
+
content: "The Wizard is an agent.",
|
|
5532
|
+
pause: 4e3
|
|
5533
|
+
},
|
|
5534
|
+
{
|
|
5535
|
+
content: "It's setting up feature flags for this project.",
|
|
5536
|
+
pause: 5e3
|
|
5537
|
+
},
|
|
5538
|
+
{
|
|
5539
|
+
type: "clear",
|
|
5540
|
+
pause: 2e3
|
|
5541
|
+
},
|
|
5542
|
+
{
|
|
5543
|
+
pause: 5e3,
|
|
5544
|
+
persist: true,
|
|
5545
|
+
content: /* @__PURE__ */ jsx(StatusPeekTrigger, { store })
|
|
5546
|
+
},
|
|
5547
|
+
{
|
|
5548
|
+
pause: 6e3,
|
|
5549
|
+
content: /* @__PURE__ */ jsxs(Text, { children: [
|
|
5550
|
+
"Press",
|
|
5551
|
+
" ",
|
|
5552
|
+
/* @__PURE__ */ jsx(Text, {
|
|
5553
|
+
color: Colors.accent,
|
|
5554
|
+
bold: true,
|
|
5555
|
+
children: "S"
|
|
5556
|
+
}),
|
|
5557
|
+
" ",
|
|
5558
|
+
"to expand or collapse the status."
|
|
5559
|
+
] })
|
|
5560
|
+
},
|
|
5561
|
+
{
|
|
5562
|
+
type: "clear",
|
|
5563
|
+
pause: 1500
|
|
5564
|
+
},
|
|
5565
|
+
{
|
|
5566
|
+
content: "A feature flag is a switch in your code that you flip from PostHog, with no deploy.",
|
|
5567
|
+
pause: 6e3
|
|
5568
|
+
},
|
|
5569
|
+
GATED_CODE,
|
|
5570
|
+
{
|
|
5571
|
+
content: "Ship new code turned off, then turn it on when you are ready.",
|
|
5572
|
+
pause: 6e3
|
|
5573
|
+
},
|
|
5574
|
+
{
|
|
5575
|
+
type: "clear",
|
|
5576
|
+
pause: 1500
|
|
5577
|
+
},
|
|
5578
|
+
{
|
|
5579
|
+
content: "Roll out gradually instead of all at once:",
|
|
5580
|
+
pause: 2500
|
|
5581
|
+
},
|
|
5582
|
+
GRADUAL_ROLLOUT,
|
|
5583
|
+
{
|
|
5584
|
+
content: "Target who sees it: your team, a beta cohort, a plan, or a country.",
|
|
5585
|
+
pause: 6e3
|
|
5586
|
+
},
|
|
5587
|
+
{
|
|
5588
|
+
content: "Something breaks? Turn the flag off in seconds. No rollback, no redeploy.",
|
|
5589
|
+
pause: 7e3
|
|
5590
|
+
},
|
|
5591
|
+
{
|
|
5592
|
+
type: "clear",
|
|
5593
|
+
pause: 1500
|
|
5594
|
+
},
|
|
5595
|
+
{
|
|
5596
|
+
content: "Each evaluation is reported to PostHog, so you can see who got which value.",
|
|
5597
|
+
pause: 6500
|
|
5598
|
+
},
|
|
5599
|
+
{
|
|
5600
|
+
content: "The same flags run experiments: split users between variants and measure the result.",
|
|
5601
|
+
pause: 7e3
|
|
5602
|
+
},
|
|
5603
|
+
{
|
|
5604
|
+
type: "clear",
|
|
5605
|
+
pause: 1500
|
|
5606
|
+
},
|
|
5607
|
+
{
|
|
5608
|
+
content: "Here's what it's doing now:",
|
|
5609
|
+
pause: 2e3
|
|
5610
|
+
},
|
|
5611
|
+
RUN_PLAN,
|
|
5612
|
+
{
|
|
5613
|
+
content: "Each side gets a flag only when your app has code there.",
|
|
5614
|
+
pause: 6e3
|
|
5615
|
+
}
|
|
5616
|
+
];
|
|
5617
|
+
//#endregion
|
|
5618
|
+
//#region src/tui/programs/feature-flags/deck/tips.ts
|
|
5619
|
+
const FEATURE_FLAGS_TIPS = [
|
|
5620
|
+
{
|
|
5621
|
+
id: "payloads",
|
|
5622
|
+
title: "Ship settings, not just on and off",
|
|
5623
|
+
description: "Attach a JSON payload to a flag to change copy, limits, or config without a deploy."
|
|
5624
|
+
},
|
|
5625
|
+
{
|
|
5626
|
+
id: "local-evaluation",
|
|
5627
|
+
title: "Check flags without a network call",
|
|
5628
|
+
description: "Server SDKs can download your flag definitions and evaluate them locally, so a check adds no round trip."
|
|
5629
|
+
},
|
|
5630
|
+
{
|
|
5631
|
+
id: "experiments",
|
|
5632
|
+
title: "Turn a flag into an experiment",
|
|
5633
|
+
description: "Give a flag variants and PostHog measures which one wins on the metrics you pick."
|
|
5634
|
+
}
|
|
5635
|
+
];
|
|
5636
|
+
const getTips$1 = () => FEATURE_FLAGS_TIPS;
|
|
5637
|
+
//#endregion
|
|
5638
|
+
//#region src/tui/programs/feature-flags/screens/FeatureFlagsIntroScreen.tsx
|
|
5639
|
+
const CANCEL_ONLY_MENU = [{
|
|
5640
|
+
label: "Cancel",
|
|
5641
|
+
value: "cancel"
|
|
5642
|
+
}];
|
|
5643
|
+
const FeatureFlagsIntroScreen = ({ store }) => {
|
|
5644
|
+
useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
|
|
5645
|
+
const [showingMoreInfo, setShowingMoreInfo] = useState(false);
|
|
5646
|
+
const { session } = store;
|
|
5647
|
+
const { skillEntry, fetchFailed } = useSkillEntry(FEATURE_FLAGS_STEP_SKILL_ID);
|
|
5648
|
+
const body = showingMoreInfo ? /* @__PURE__ */ jsxs(Box, {
|
|
5649
|
+
flexDirection: "column",
|
|
5650
|
+
width: 56,
|
|
5651
|
+
children: [
|
|
5652
|
+
/* @__PURE__ */ jsx(Box, {
|
|
5653
|
+
marginBottom: 1,
|
|
5654
|
+
children: /* @__PURE__ */ jsxs(Text, { children: [
|
|
5655
|
+
"The Wizard is an agent, it's here to help you set up PostHog. Its code is open source:",
|
|
5656
|
+
" ",
|
|
5657
|
+
/* @__PURE__ */ jsx(Text, {
|
|
5658
|
+
color: "cyan",
|
|
5659
|
+
children: "https://github.com/PostHog/wizard"
|
|
5660
|
+
})
|
|
5661
|
+
] })
|
|
5662
|
+
}),
|
|
5663
|
+
/* @__PURE__ */ jsx(Box, {
|
|
5664
|
+
marginBottom: 1,
|
|
5665
|
+
children: /* @__PURE__ */ jsx(Text, { children: "Feature flags let you ship code turned off, roll it out to a percentage of users or a chosen group, and switch it off in seconds without a deploy. The same flags run your experiments." })
|
|
5666
|
+
}),
|
|
5667
|
+
/* @__PURE__ */ jsxs(Text, { children: [
|
|
5668
|
+
"The",
|
|
5669
|
+
" ",
|
|
5670
|
+
/* @__PURE__ */ jsx(Text, {
|
|
5671
|
+
color: "cyan",
|
|
5672
|
+
italic: true,
|
|
5673
|
+
children: "feature-flags"
|
|
5674
|
+
}),
|
|
5675
|
+
" ",
|
|
5676
|
+
"program creates example flags in PostHog, off at 0% rollout: one for your backend and one for your frontend, for each side your app has. It installs and initializes the PostHog SDKs if needed, evaluates each flag once in your code, and writes a report on how to turn them on."
|
|
5677
|
+
] }),
|
|
5678
|
+
/* @__PURE__ */ jsx(Box, {
|
|
5679
|
+
marginTop: 1,
|
|
5680
|
+
children: /* @__PURE__ */ jsx(SkillSourceInfo, {
|
|
5681
|
+
skillId: FEATURE_FLAGS_STEP_SKILL_ID,
|
|
5682
|
+
skillEntry,
|
|
5683
|
+
fetchFailed
|
|
5684
|
+
})
|
|
5685
|
+
})
|
|
5686
|
+
]
|
|
5687
|
+
}) : /* @__PURE__ */ jsx(Box, {
|
|
5688
|
+
flexDirection: "column",
|
|
5689
|
+
alignItems: "center",
|
|
5690
|
+
children: /* @__PURE__ */ jsx(Text, { children: "Let's add your first feature flag, so you can ship safely and control rollouts." })
|
|
5691
|
+
});
|
|
5692
|
+
const menuOptions = showingMoreInfo ? [{
|
|
5693
|
+
label: "Back",
|
|
5694
|
+
value: "back"
|
|
5695
|
+
}] : [
|
|
5696
|
+
{
|
|
5697
|
+
label: "Continue",
|
|
5698
|
+
value: "continue"
|
|
5699
|
+
},
|
|
5700
|
+
{
|
|
5701
|
+
label: "More info",
|
|
5702
|
+
value: "more-info"
|
|
5703
|
+
},
|
|
5704
|
+
{
|
|
5705
|
+
label: "Cancel",
|
|
5706
|
+
value: "cancel"
|
|
5707
|
+
}
|
|
5708
|
+
];
|
|
5709
|
+
const menuActions = {
|
|
5710
|
+
cancel: () => store.requestExit(0),
|
|
5711
|
+
"more-info": () => setShowingMoreInfo(true),
|
|
5712
|
+
back: () => setShowingMoreInfo(false),
|
|
5713
|
+
continue: () => store.completeSetup()
|
|
5714
|
+
};
|
|
5715
|
+
const selectMenuAction = (value) => menuActions[value]?.();
|
|
5716
|
+
const blockedBody = bodyThatBlocksContinue(session);
|
|
5717
|
+
if (blockedBody) return /* @__PURE__ */ jsx(IntroScreenLayout, {
|
|
5718
|
+
installDir: session.installDir,
|
|
5719
|
+
body: blockedBody,
|
|
5720
|
+
showDetection: false,
|
|
5721
|
+
programLabel: store.programLabel,
|
|
5722
|
+
skillId: session.skillId,
|
|
5723
|
+
menuOptions: CANCEL_ONLY_MENU,
|
|
5724
|
+
onSelect: selectMenuAction
|
|
5725
|
+
});
|
|
5726
|
+
return /* @__PURE__ */ jsx(IntroScreenLayout, {
|
|
5727
|
+
installDir: session.installDir,
|
|
5728
|
+
body,
|
|
5729
|
+
showDetection: !showingMoreInfo,
|
|
5730
|
+
programLabel: store.programLabel,
|
|
5731
|
+
skillId: session.skillId,
|
|
5732
|
+
menuOptions,
|
|
5733
|
+
onSelect: selectMenuAction
|
|
5734
|
+
});
|
|
5735
|
+
};
|
|
5736
|
+
function bodyThatBlocksContinue(session) {
|
|
5737
|
+
if (!session.detectionComplete) return DETECTING_FRAMEWORK_BODY;
|
|
5738
|
+
if (session.integration === null) return UNDETECTED_FRAMEWORK_BODY;
|
|
5739
|
+
if (FEATURE_FLAGS_UNSUPPORTED.has(session.integration)) return UNSUPPORTED_FRAMEWORK_BODY;
|
|
5740
|
+
if (!session.unsupportedVersion) return null;
|
|
5741
|
+
const { current, minimum, docsUrl } = session.unsupportedVersion;
|
|
5742
|
+
return /* @__PURE__ */ jsxs(Box, {
|
|
5743
|
+
flexDirection: "column",
|
|
5744
|
+
alignItems: "center",
|
|
5745
|
+
width: 64,
|
|
5746
|
+
children: [/* @__PURE__ */ jsxs(Text, {
|
|
5747
|
+
color: "#DC9300",
|
|
5748
|
+
children: [
|
|
5749
|
+
"Version ",
|
|
5750
|
+
current,
|
|
5751
|
+
" is not supported by the wizard. Please upgrade to",
|
|
5752
|
+
" ",
|
|
5753
|
+
minimum,
|
|
5754
|
+
" or later."
|
|
5755
|
+
]
|
|
5756
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
5757
|
+
marginTop: 1,
|
|
5758
|
+
children: /* @__PURE__ */ jsxs(Text, {
|
|
5759
|
+
dimColor: true,
|
|
5760
|
+
children: ["Manual setup guide: ", docsUrl]
|
|
5761
|
+
})
|
|
5762
|
+
})]
|
|
5763
|
+
});
|
|
5764
|
+
}
|
|
5765
|
+
const DETECTING_FRAMEWORK_BODY = /* @__PURE__ */ jsx(Box, {
|
|
5766
|
+
marginY: 1,
|
|
5767
|
+
children: /* @__PURE__ */ jsx(LoadingBox, { message: "Detecting project framework..." })
|
|
5768
|
+
});
|
|
5769
|
+
const UNDETECTED_FRAMEWORK_BODY = /* @__PURE__ */ jsxs(Box, {
|
|
5770
|
+
flexDirection: "column",
|
|
5771
|
+
alignItems: "center",
|
|
5772
|
+
width: 64,
|
|
5773
|
+
children: [/* @__PURE__ */ jsx(Text, { children: "Could not detect your project's framework." }), /* @__PURE__ */ jsx(Box, {
|
|
5774
|
+
marginTop: 1,
|
|
5775
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
5776
|
+
dimColor: true,
|
|
5777
|
+
children: "The feature-flags program needs a supported framework. Run the wizard from your app's root directory."
|
|
5778
|
+
})
|
|
5779
|
+
})]
|
|
5780
|
+
});
|
|
5781
|
+
const UNSUPPORTED_FRAMEWORK_BODY = /* @__PURE__ */ jsxs(Box, {
|
|
5782
|
+
flexDirection: "column",
|
|
5783
|
+
alignItems: "center",
|
|
5784
|
+
width: 64,
|
|
5785
|
+
children: [/* @__PURE__ */ jsx(Text, { children: "The wizard cannot set up feature flags for this framework yet." }), /* @__PURE__ */ jsx(Box, {
|
|
5786
|
+
marginTop: 1,
|
|
5787
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
5788
|
+
dimColor: true,
|
|
5789
|
+
children: "Manual setup guide: https://posthog.com/docs/feature-flags"
|
|
5790
|
+
})
|
|
5791
|
+
})]
|
|
5792
|
+
});
|
|
5793
|
+
const TUI_PROGRAMS$7 = { "feature-flags": {
|
|
5794
|
+
flow: AGENT_SKILL_STEPS.map((step) => step.id === "intro" ? {
|
|
5795
|
+
...step,
|
|
5796
|
+
screenId: "feature-flags-intro"
|
|
5797
|
+
} : step),
|
|
5798
|
+
deck: getContentBlocks$3,
|
|
5799
|
+
tips: getTips$1,
|
|
5800
|
+
screens: { ["feature-flags-intro"]: (store) => /* @__PURE__ */ jsx(FeatureFlagsIntroScreen, { store }) }
|
|
5801
|
+
} };
|
|
5802
|
+
//#endregion
|
|
5444
5803
|
//#region src/tui/programs/metrics/screens/MetricsIntroScreen.tsx
|
|
5445
5804
|
const MetricsIntroScreen = ({ store }) => {
|
|
5446
5805
|
useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
|
|
@@ -5528,7 +5887,7 @@ const TUI_PROGRAMS$6 = { metrics: {
|
|
|
5528
5887
|
...step,
|
|
5529
5888
|
screenId: "metrics-intro"
|
|
5530
5889
|
} : step),
|
|
5531
|
-
deck: getContentBlocks$
|
|
5890
|
+
deck: getContentBlocks$6,
|
|
5532
5891
|
screens: { ["metrics-intro"]: (store) => /* @__PURE__ */ jsx(MetricsIntroScreen, { store }) }
|
|
5533
5892
|
} };
|
|
5534
5893
|
//#endregion
|
|
@@ -7054,7 +7413,7 @@ const FrameworkPicker = ({ store, onComplete }) => {
|
|
|
7054
7413
|
})),
|
|
7055
7414
|
onSelect: (value) => {
|
|
7056
7415
|
const integration = Array.isArray(value) ? value[0] : value;
|
|
7057
|
-
import("./programs-
|
|
7416
|
+
import("./programs-D2793-PK.js").then(({ FRAMEWORK_REGISTRY }) => {
|
|
7058
7417
|
const config = FRAMEWORK_REGISTRY[integration];
|
|
7059
7418
|
store.setFrameworkConfig(integration, config);
|
|
7060
7419
|
store.setDetectedFramework(config.metadata.name);
|
|
@@ -7601,7 +7960,7 @@ const DetectErrorBody$2 = ({ error }) => {
|
|
|
7601
7960
|
//#region src/tui/programs/revenue-analytics/index.tsx
|
|
7602
7961
|
const TUI_PROGRAMS$3 = { "revenue-analytics-setup": {
|
|
7603
7962
|
flow: REVENUE_ANALYTICS_FLOW,
|
|
7604
|
-
deck: getContentBlocks$
|
|
7963
|
+
deck: getContentBlocks$6,
|
|
7605
7964
|
screens: { ["revenue-intro"]: (store) => /* @__PURE__ */ jsx(RevenueIntroScreen, { store }) }
|
|
7606
7965
|
} };
|
|
7607
7966
|
//#endregion
|
|
@@ -8849,10 +9208,10 @@ async function checkGithubConnected(store, signal) {
|
|
|
8849
9208
|
try {
|
|
8850
9209
|
return await check(credentials);
|
|
8851
9210
|
} catch (err) {
|
|
8852
|
-
if (!isUnauthorized(err)
|
|
8853
|
-
const
|
|
8854
|
-
if (
|
|
8855
|
-
return check(
|
|
9211
|
+
if (!isUnauthorized(err)) throw err;
|
|
9212
|
+
const recovery = await rotateAfterUnauthorized(credentials, { requireRefreshToken: true });
|
|
9213
|
+
if (recovery.kind !== "rotated") throw err;
|
|
9214
|
+
return check(recovery.credentials);
|
|
8856
9215
|
}
|
|
8857
9216
|
}
|
|
8858
9217
|
function useGithubConnection(store) {
|
|
@@ -9266,12 +9625,13 @@ const DetectErrorBody = ({ error }) => {
|
|
|
9266
9625
|
//#region src/tui/programs/warehouse-source/index.tsx
|
|
9267
9626
|
const TUI_PROGRAMS$1 = { "warehouse-source": {
|
|
9268
9627
|
flow: WAREHOUSE_SOURCE_FLOW,
|
|
9269
|
-
deck: getContentBlocks$
|
|
9628
|
+
deck: getContentBlocks$6,
|
|
9270
9629
|
screens: { ["warehouse-intro"]: (store) => /* @__PURE__ */ jsx(WarehouseIntroScreen, { store }) }
|
|
9271
9630
|
} };
|
|
9272
9631
|
//#endregion
|
|
9273
9632
|
//#region src/tui/programs/index.ts
|
|
9274
9633
|
const TUI_PROGRAMS = {
|
|
9634
|
+
...TUI_PROGRAMS$11,
|
|
9275
9635
|
...TUI_PROGRAMS$10,
|
|
9276
9636
|
...TUI_PROGRAMS$9,
|
|
9277
9637
|
...TUI_PROGRAMS$8,
|
|
@@ -16209,6 +16569,6 @@ function releaseTerminal() {
|
|
|
16209
16569
|
process.stdout.write(RESET_ATTRS + LEAVE_ALT_SCREEN);
|
|
16210
16570
|
}
|
|
16211
16571
|
//#endregion
|
|
16212
|
-
export { AUDIT_AREA_SLIDES as A, totalTokenCount as B, assembleProfile as C, getTuiProgram as D, IssueTable as E, ContentSequencer as F, ModalOverlay as G, LogViewer as H, HNViewer as I, ProgressList as J, ConfirmationInput as K, TabContainer as L, IntroScreenLayout as M, PRIVACY_PANEL_LABEL as N, displayProgress as O, PrivacyPanel as P, getContentBlocks$
|
|
16572
|
+
export { AUDIT_AREA_SLIDES as A, totalTokenCount as B, assembleProfile as C, getTuiProgram as D, IssueTable as E, ContentSequencer as F, ModalOverlay as G, LogViewer as H, HNViewer as I, ProgressList as J, ConfirmationInput as K, TabContainer as L, IntroScreenLayout as M, PRIVACY_PANEL_LABEL as N, displayProgress as O, PrivacyPanel as P, getContentBlocks$6 as Q, ScreenContainer as R, McpSuggestedPromptsScreen as S, McpScreen as T, LinkText as U, EventPlanViewer as V, extractUrls as W, SplitView as X, LoadingBox as Y, CardLayout as Z, getTuiTool as _, SlackConnectScreen as a, extractOAuthCode as b, LearnCard as c, MINT_FAILURE_BODY as d, MINT_FAILURE_CONTACT as f, listFlowOwners as g, flowOwner as h, OutroScreen as i, AuditChecksViewer as j, useDismissOnAnyKey as k, AiOptInRequiredScreen as l, isRunFailure as m, releaseTerminal as n, TipsCard as o, MINT_FAILURE_MESSAGE as p, GroupedPickerMenu as q, WizardStore as r, VisualizerTab as s, enterDarkTerminal as t, ServiceHealthList as u, seededProfile as v, TAILORED_ROLES as w, abortOnScreens as x, getOrAskForProjectData as y, ViewportTooSmall as z };
|
|
16213
16573
|
|
|
16214
|
-
//# sourceMappingURL=terminal-
|
|
16574
|
+
//# sourceMappingURL=terminal-BLL-X6YP.js.map
|