@posthog/wizard 2.72.0 → 2.73.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/README.md +10 -2
- package/dist/{add-mcp-server-to-clients-QZyr6NuZ.js → add-mcp-server-to-clients-B8t2xAPf.js} +4 -4
- package/dist/{add-mcp-server-to-clients-QZyr6NuZ.js.map → add-mcp-server-to-clients-B8t2xAPf.js.map} +1 -1
- package/dist/{agent-interface-Yjknz6Al.js → agent-interface-tcCEmyPQ.js} +104 -19
- package/dist/agent-interface-tcCEmyPQ.js.map +1 -0
- package/dist/{agent-prompt-loader-CDXm4C35.js → agent-prompt-loader-V2smIztP.js} +5 -5
- package/dist/{agent-prompt-loader-CDXm4C35.js.map → agent-prompt-loader-V2smIztP.js.map} +1 -1
- package/dist/{agent-runner-CL7rCY0G.js → agent-runner-DUyO1Ehj.js} +14 -14
- package/dist/{agent-runner-CL7rCY0G.js.map → agent-runner-DUyO1Ehj.js.map} +1 -1
- package/dist/analytics-DEL7clQK.js +2 -0
- package/dist/{analytics-DjCPD6u-.js → analytics-DsMH06jo.js} +2 -2
- package/dist/{analytics-DjCPD6u-.js.map → analytics-DsMH06jo.js.map} +1 -1
- package/dist/{api-xwQeBMcX.js → api-R6bXIwII.js} +3 -3
- package/dist/{api-xwQeBMcX.js.map → api-R6bXIwII.js.map} +1 -1
- package/dist/bin.js +43 -43
- package/dist/{bounded-fs-BtxN0nYO.js → bounded-fs-BV-KhOtU.js} +3 -3
- package/dist/{bounded-fs-BtxN0nYO.js.map → bounded-fs-BV-KhOtU.js.map} +1 -1
- package/dist/{ci-install-BVzTnIBw.js → ci-install-mR8CeIt2.js} +4 -4
- package/dist/{ci-install-BVzTnIBw.js.map → ci-install-mR8CeIt2.js.map} +1 -1
- package/dist/{debug-BoadIH6Q.js → debug-PfLVvLhT.js} +1 -1
- package/dist/{debug-D0T44879.js → debug-aXxgvtal.js} +50 -16
- package/dist/debug-aXxgvtal.js.map +1 -0
- package/dist/{env-api-key-Bj9butHX.js → env-api-key-_lBt9tHl.js} +2 -2
- package/dist/{env-api-key-Bj9butHX.js.map → env-api-key-_lBt9tHl.js.map} +1 -1
- package/dist/{environment-vpmKreMf.js → environment-DRhZbhxU.js} +4 -4
- package/dist/{environment-vpmKreMf.js.map → environment-DRhZbhxU.js.map} +1 -1
- package/dist/{file-watcher-BPH4wR8R.js → file-watcher-BZw1_Y84.js} +2 -2
- package/dist/{file-watcher-BPH4wR8R.js.map → file-watcher-BZw1_Y84.js.map} +1 -1
- package/dist/{headless-ui-vA7lv8m2.js → headless-ui-Cdqfufhk.js} +2 -2
- package/dist/{headless-ui-vA7lv8m2.js.map → headless-ui-Cdqfufhk.js.map} +1 -1
- package/dist/{interactive-jk3IGgns.js → interactive-BCI9b-dp.js} +2 -2
- package/dist/{interactive-jk3IGgns.js.map → interactive-BCI9b-dp.js.map} +1 -1
- package/dist/{mcp-DE2AonGF.js → mcp-CzB3lWsm.js} +2 -2
- package/dist/{mcp-DE2AonGF.js.map → mcp-CzB3lWsm.js.map} +1 -1
- package/dist/{mcp-prompt-streaming-pPEIwc78.js → mcp-prompt-streaming-RZGAH4YO.js} +4 -4
- package/dist/{mcp-prompt-streaming-pPEIwc78.js.map → mcp-prompt-streaming-RZGAH4YO.js.map} +1 -1
- package/dist/{non-interactive-CEGz0nDY.js → non-interactive-CgjTZZ9J.js} +2 -2
- package/dist/{non-interactive-CEGz0nDY.js.map → non-interactive-CgjTZZ9J.js.map} +1 -1
- package/dist/{orchestrator-tools-BZ4Nzw6a.js → orchestrator-tools-OWgPinUt.js} +3 -3
- package/dist/{orchestrator-tools-BZ4Nzw6a.js.map → orchestrator-tools-OWgPinUt.js.map} +1 -1
- package/dist/{package-manager-BZjKEDO2.js → package-manager-B-Z3IVYu.js} +2 -2
- package/dist/{package-manager-BZjKEDO2.js.map → package-manager-B-Z3IVYu.js.map} +1 -1
- package/dist/{pi-D48qAwlf.js → pi-CLLkGrND.js} +11 -11
- package/dist/{pi-D48qAwlf.js.map → pi-CLLkGrND.js.map} +1 -1
- package/dist/{playground-DYGJwugo.js → playground-D1TgX0EU.js} +8 -8
- package/dist/playground-D1TgX0EU.js.map +1 -0
- package/dist/{posthog-BTvVhvBY.js → posthog-CMef8KLR.js} +2 -2
- package/dist/{posthog-BTvVhvBY.js.map → posthog-CMef8KLR.js.map} +1 -1
- package/dist/{posthog-integration-BQh-YQAP.js → posthog-integration-wiunwp8X.js} +12 -12
- package/dist/{posthog-integration-BQh-YQAP.js.map → posthog-integration-wiunwp8X.js.map} +1 -1
- package/dist/{provisioning-Dw3B2T_b.js → provisioning-94OneD64.js} +3 -3
- package/dist/{provisioning-Dw3B2T_b.js.map → provisioning-94OneD64.js.map} +1 -1
- package/dist/{queue-tools-DEbzMDrF.js → queue-tools--k2v8QYY.js} +3 -3
- package/dist/{queue-tools-DEbzMDrF.js.map → queue-tools--k2v8QYY.js.map} +1 -1
- package/dist/{registry-Dv6JVm5r.js → registry-C60oJv02.js} +5 -5
- package/dist/{registry-Dv6JVm5r.js.map → registry-C60oJv02.js.map} +1 -1
- package/dist/{security-BaggjIE4.js → security-DnOP36w-.js} +5 -5
- package/dist/{security-BaggjIE4.js.map → security-DnOP36w-.js.map} +1 -1
- package/dist/{setup-utils-CnW0Zsu8.js → setup-utils-BwX6QmL_.js} +8 -8
- package/dist/{setup-utils-CnW0Zsu8.js.map → setup-utils-BwX6QmL_.js.map} +1 -1
- package/dist/{start-tui-SpyGz7wM.js → start-tui-C3PdKFtP.js} +30 -30
- package/dist/start-tui-C3PdKFtP.js.map +1 -0
- package/dist/{steps-ClfUajTv.js → steps-BpCRk8Ef.js} +7 -7
- package/dist/{steps-ClfUajTv.js.map → steps-BpCRk8Ef.js.map} +1 -1
- package/dist/{store-Cmy0pN1R.js → store-EzqWyb60.js} +6 -6
- package/dist/store-EzqWyb60.js.map +1 -0
- package/dist/{subagent-tYlbbkJt.js → subagent-DwdrVprk.js} +2 -2
- package/dist/{subagent-tYlbbkJt.js.map → subagent-DwdrVprk.js.map} +1 -1
- package/dist/{task-B8QfEVcu.js → task-CrXgNEUB.js} +12 -12
- package/dist/{task-B8QfEVcu.js.map → task-CrXgNEUB.js.map} +1 -1
- package/dist/{task-stream-BRSWhbXQ.js → task-stream-ZBbfHo7l.js} +4 -4
- package/dist/{task-stream-BRSWhbXQ.js.map → task-stream-ZBbfHo7l.js.map} +1 -1
- package/dist/{tasks-DjEvyWQJ.js → tasks-CbMEKWZ9.js} +2 -2
- package/dist/{tasks-DjEvyWQJ.js.map → tasks-CbMEKWZ9.js.map} +1 -1
- package/dist/{telemetry-EPB2n_f6.js → telemetry-B2dz2-PT.js} +3 -3
- package/dist/{telemetry-EPB2n_f6.js.map → telemetry-B2dz2-PT.js.map} +1 -1
- package/dist/{terminal-DJ4Gaupr.js → terminal-DTe59M4j.js} +11 -11
- package/dist/{terminal-DJ4Gaupr.js.map → terminal-DTe59M4j.js.map} +1 -1
- package/dist/{tools-CB0Vfc6r.js → tools-DZ9lZgJI.js} +6 -6
- package/dist/{tools-CB0Vfc6r.js.map → tools-DZ9lZgJI.js.map} +1 -1
- package/dist/{wizard-abort-Db_YNkB2.js → wizard-abort-CUT8MXXt.js} +3 -3
- package/dist/{wizard-abort-Db_YNkB2.js.map → wizard-abort-CUT8MXXt.js.map} +1 -1
- package/dist/{wizard-abort-DD-kkQaq.js → wizard-abort-CfKnrSlX.js} +1 -1
- package/dist/yara-hooks-CLeMu2EY.js +2 -0
- package/dist/{yara-hooks-BvyFD2Nb.js → yara-hooks-VvwkZn5s.js} +7 -6
- package/dist/yara-hooks-VvwkZn5s.js.map +1 -0
- package/package.json +1 -1
- package/dist/agent-interface-Yjknz6Al.js.map +0 -1
- package/dist/analytics-CkNv3N4o.js +0 -2
- package/dist/debug-D0T44879.js.map +0 -1
- package/dist/playground-DYGJwugo.js.map +0 -1
- package/dist/start-tui-SpyGz7wM.js.map +0 -1
- package/dist/store-Cmy0pN1R.js.map +0 -1
- package/dist/yara-hooks-BvyFD2Nb.js.map +0 -1
- package/dist/yara-hooks-CuW_b30M.js +0 -2
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { l as ErrorCodes } from "./errors-u8z27V-x.js";
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as POSTHOG_TERMS_URL, B as OAUTH_PORTS, G as POSTHOG_DOCS_URL, J as POSTHOG_ORG_AI_SETTINGS_URL, V as OAUTH_TIMEOUT_MS, Y as POSTHOG_PRIVACY_URL, d as relativeToInstallDir, g as SIGNUP_WIZARD_READINESS_CONFIG, j as GITHUB_SKILLS_BASE_URL, l as WIZARD_LOG_FILE, p as setUI, s as logToFile, v as getBlockingServiceKeys, z as Integration } from "./debug-aXxgvtal.js";
|
|
3
3
|
import { t as ADDITIONAL_FEATURE_LABELS } from "./wizard-session-GdDN_aMS.js";
|
|
4
|
-
import { n as analytics } from "./analytics-
|
|
5
|
-
import { n as openTrackedLink } from "./telemetry-
|
|
6
|
-
import { i as readProjectFile, t as IGNORED_DIRS } from "./bounded-fs-
|
|
7
|
-
import { o as extractOAuthCode, t as getOrAskForProjectData } from "./setup-utils-
|
|
8
|
-
import { c as getIntegrationAuthorizeUrl, i as requestDeepLink } from "./provisioning-
|
|
9
|
-
import { r as fetchGithubConnected, t as ApiError } from "./api-
|
|
10
|
-
import { i as wizardAbort } from "./wizard-abort-
|
|
11
|
-
import { M as downloadSkill, N as fetchSkillMenu } from "./agent-interface-
|
|
12
|
-
import { a as formatCostUsd, f as getDetectedWarehouseSources, m as detectProjectsWithAgent, o as formatTokenCount } from "./agent-runner-
|
|
13
|
-
import { t as FRAMEWORK_REGISTRY } from "./registry-
|
|
14
|
-
import { _ as AUDIT_CHECKS_KEY, b as coerceAuditChecks, g as AUDIT_CHECKS_FILE, x as getAuditChecks, y as AUDIT_SEVERITY_STYLE } from "./yara-hooks-
|
|
15
|
-
import { h as Icons, m as Colors, t as SETUP_REPORT_FILE } from "./posthog-integration-
|
|
4
|
+
import { n as analytics } from "./analytics-DsMH06jo.js";
|
|
5
|
+
import { n as openTrackedLink } from "./telemetry-B2dz2-PT.js";
|
|
6
|
+
import { i as readProjectFile, t as IGNORED_DIRS } from "./bounded-fs-BV-KhOtU.js";
|
|
7
|
+
import { o as extractOAuthCode, t as getOrAskForProjectData } from "./setup-utils-BwX6QmL_.js";
|
|
8
|
+
import { c as getIntegrationAuthorizeUrl, i as requestDeepLink } from "./provisioning-94OneD64.js";
|
|
9
|
+
import { r as fetchGithubConnected, t as ApiError } from "./api-R6bXIwII.js";
|
|
10
|
+
import { i as wizardAbort } from "./wizard-abort-CUT8MXXt.js";
|
|
11
|
+
import { M as downloadSkill, N as fetchSkillMenu } from "./agent-interface-tcCEmyPQ.js";
|
|
12
|
+
import { a as formatCostUsd, f as getDetectedWarehouseSources, m as detectProjectsWithAgent, o as formatTokenCount } from "./agent-runner-DUyO1Ehj.js";
|
|
13
|
+
import { t as FRAMEWORK_REGISTRY } from "./registry-C60oJv02.js";
|
|
14
|
+
import { _ as AUDIT_CHECKS_KEY, b as coerceAuditChecks, g as AUDIT_CHECKS_FILE, x as getAuditChecks, y as AUDIT_SEVERITY_STYLE } from "./yara-hooks-VvwkZn5s.js";
|
|
15
|
+
import { h as Icons, m as Colors, t as SETUP_REPORT_FILE } from "./posthog-integration-wiunwp8X.js";
|
|
16
16
|
import { A as getContentBlocks, D as SOURCE_MAPS_CONTEXT_KEYS, M as STRIPE_SDKS, S as DISPLAY_NAME, T as MANUAL_SDK_VARIANTS, _ as detectSelfDrivingIntegrationProjects, a as useStdoutDimensions, b as SELF_DRIVING_INTEGRATE_PATH_KEY, f as Program, g as PRICING_SHORT, h as PRICING_LONG, j as POSTHOG_SDKS, k as fetchHealthIssues, m as NO_DEFAULT_LIMIT, n as useKeyBindings, p as getProgramConfig, t as PickerMenu, v as GITHUB_REQUIRED_BODY, w as MANUAL_SDK_INSTALL, x as AUTOMATABLE_VARIANTS, y as GITHUB_REQUIRED_MESSAGE } from "./bin.js";
|
|
17
|
-
import { r as totalTokenCount, t as WizardStore } from "./store-
|
|
18
|
-
import { B as SplitView, C as VisualizerTab, D as HNViewer, F as ModalOverlay, I as ConfirmationInput, M as LogViewer, N as LinkText, O as TabContainer, P as extractUrls, R as ProgressList, S as ServiceHealthList, T as LearnCard, a as useSkillEntry, b as SEVERITY_LABEL, c as SlackConnectScreen, d as AuditChecksViewer, f as seedDemoEvents, g as probeProjectData, i as SkillSourceInfo, j as EventPlanViewer, k as ScreenContainer, l as AUDIT_AREA_SLIDES, m as McpSuggestedPromptsScreen, n as releaseTerminal, o as OutroScreen, r as AiOptInRequiredScreen, s as useDismissOnAnyKey, t as enterDarkTerminal, u as VisualBox, v as McpScreen, w as TipsCard, x as SEVERITY_ORDER, y as IssueTable, z as LoadingBox } from "./terminal-
|
|
17
|
+
import { r as totalTokenCount, t as WizardStore } from "./store-EzqWyb60.js";
|
|
18
|
+
import { B as SplitView, C as VisualizerTab, D as HNViewer, F as ModalOverlay, I as ConfirmationInput, M as LogViewer, N as LinkText, O as TabContainer, P as extractUrls, R as ProgressList, S as ServiceHealthList, T as LearnCard, a as useSkillEntry, b as SEVERITY_LABEL, c as SlackConnectScreen, d as AuditChecksViewer, f as seedDemoEvents, g as probeProjectData, i as SkillSourceInfo, j as EventPlanViewer, k as ScreenContainer, l as AUDIT_AREA_SLIDES, m as McpSuggestedPromptsScreen, n as releaseTerminal, o as OutroScreen, r as AiOptInRequiredScreen, s as useDismissOnAnyKey, t as enterDarkTerminal, u as VisualBox, v as McpScreen, w as TipsCard, x as SEVERITY_ORDER, y as IssueTable, z as LoadingBox } from "./terminal-DTe59M4j.js";
|
|
19
19
|
import { c as namesWithStatus, d as toClientResult, l as redactSecrets, t as ALL_FEATURE_VALUES } from "./defaults-DI642M3n.js";
|
|
20
|
-
import { t as startFileWatcher } from "./file-watcher-
|
|
21
|
-
import { a as getSupportedClients, c as removeMCPServer, i as getInstalledClients, o as getSupportedPluginClients, s as installPlugins, u as isPluginCapable } from "./add-mcp-server-to-clients-
|
|
20
|
+
import { t as startFileWatcher } from "./file-watcher-BZw1_Y84.js";
|
|
21
|
+
import { a as getSupportedClients, c as removeMCPServer, i as getInstalledClients, o as getSupportedPluginClients, s as installPlugins, u as isPluginCapable } from "./add-mcp-server-to-clients-B8t2xAPf.js";
|
|
22
22
|
import { existsSync, readFileSync, readdirSync } from "fs";
|
|
23
23
|
import path, { join } from "path";
|
|
24
24
|
import { join as join$1 } from "node:path";
|
|
@@ -274,17 +274,17 @@ const HealthCheckScreen = ({ store }) => {
|
|
|
274
274
|
const hasHardBlock = blockingKeys.length > 0;
|
|
275
275
|
const displayKeys = hasHardBlock ? blockingKeys : warningKeys;
|
|
276
276
|
if (displayKeys.length === 0) return null;
|
|
277
|
-
const
|
|
278
|
-
const canDownloadSkills = result.health.
|
|
277
|
+
const isSkillsOriginDown = hasHardBlock && blockingKeys.includes("skillsOrigin");
|
|
278
|
+
const canDownloadSkills = result.health.skillsOrigin.status === "healthy";
|
|
279
279
|
const integration = store.session.integration;
|
|
280
280
|
const allBlockingHaveNoConnection = hasHardBlock && displayKeys.every((k) => result.health[k].status === "no-connection");
|
|
281
|
-
const title =
|
|
281
|
+
const title = isSkillsOriginDown ? "Ongoing service disruptions" : allBlockingHaveNoConnection ? "Couldn't reach PostHog" : hasHardBlock ? "Ongoing service disruptions" : "Service disruption detected";
|
|
282
282
|
const docsUrl = store.session.frameworkConfig?.metadata.docsUrl;
|
|
283
|
-
const description =
|
|
283
|
+
const description = isSkillsOriginDown ? "The Wizard can't download the skills it needs — neither GitHub Releases nor PostHog's mirror is reachable right now." : allBlockingHaveNoConnection ? "We couldn't reach these services from this machine. PostHog's status page shows no incidents, so this is most likely a network issue — VPN, firewall, captive portal, or flaky Wi-Fi." : hasHardBlock ? "The Wizard cannot start while these services are down." : "Some services are degraded. You can continue, but parts of the wizard may not work reliably.";
|
|
284
284
|
const handleDownloadAndExit = async () => {
|
|
285
285
|
if (downloading) return;
|
|
286
286
|
setDownloading(true);
|
|
287
|
-
const menu = await fetchSkillMenu(
|
|
287
|
+
const menu = await fetchSkillMenu(GITHUB_SKILLS_BASE_URL);
|
|
288
288
|
if (menu) {
|
|
289
289
|
const prefix = `integration-${integration}`;
|
|
290
290
|
const skills = (menu.categories["integration"] ?? []).filter((s) => s.id.startsWith(prefix));
|
|
@@ -299,7 +299,7 @@ const HealthCheckScreen = ({ store }) => {
|
|
|
299
299
|
borderColor: hasHardBlock && !allBlockingHaveNoConnection ? "red" : "yellow",
|
|
300
300
|
title,
|
|
301
301
|
width: 72,
|
|
302
|
-
footer:
|
|
302
|
+
footer: isSkillsOriginDown ? /* @__PURE__ */ jsx(ConfirmationInput, {
|
|
303
303
|
message: "",
|
|
304
304
|
confirmLabel: "",
|
|
305
305
|
cancelLabel: "Exit [Esc]",
|
|
@@ -314,9 +314,9 @@ const HealthCheckScreen = ({ store }) => {
|
|
|
314
314
|
}) : /* @__PURE__ */ jsx(ConfirmationInput, {
|
|
315
315
|
message: "Continue anyway?",
|
|
316
316
|
confirmLabel: "Continue [Enter]",
|
|
317
|
-
cancelLabel: canDownloadSkills && !
|
|
317
|
+
cancelLabel: canDownloadSkills && !isSkillsOriginDown ? downloading ? "Downloading..." : "Download skills & Exit [Esc]" : "Exit [Esc]",
|
|
318
318
|
onConfirm: () => store.dismissOutage(),
|
|
319
|
-
onCancel: canDownloadSkills && !
|
|
319
|
+
onCancel: canDownloadSkills && !isSkillsOriginDown ? () => void handleDownloadAndExit() : () => void wizardAbort({
|
|
320
320
|
code: ErrorCodes.EnvServiceOutage,
|
|
321
321
|
message: "Exited due to service outage."
|
|
322
322
|
})
|
|
@@ -363,14 +363,14 @@ const HealthCheckScreen = ({ store }) => {
|
|
|
363
363
|
dimColor: true,
|
|
364
364
|
children: description
|
|
365
365
|
}),
|
|
366
|
-
|
|
366
|
+
isSkillsOriginDown && docsUrl && /* @__PURE__ */ jsx(Box, {
|
|
367
367
|
marginTop: 1,
|
|
368
368
|
children: /* @__PURE__ */ jsxs(Text, { children: ["Set up manually: ", /* @__PURE__ */ jsx(Text, {
|
|
369
369
|
color: "cyan",
|
|
370
370
|
children: docsUrl
|
|
371
371
|
})] })
|
|
372
372
|
}),
|
|
373
|
-
canDownloadSkills && !
|
|
373
|
+
canDownloadSkills && !isSkillsOriginDown && /* @__PURE__ */ jsx(Box, {
|
|
374
374
|
marginTop: 1,
|
|
375
375
|
children: /* @__PURE__ */ jsx(Text, { children: "You can still download the PostHog integration skills and continue with another agent." })
|
|
376
376
|
})
|
|
@@ -1293,7 +1293,7 @@ const FrameworkPicker = ({ store, onComplete }) => {
|
|
|
1293
1293
|
})),
|
|
1294
1294
|
onSelect: (value) => {
|
|
1295
1295
|
const integration = Array.isArray(value) ? value[0] : value;
|
|
1296
|
-
import("./registry-
|
|
1296
|
+
import("./registry-C60oJv02.js").then((n) => n.n).then(({ FRAMEWORK_REGISTRY }) => {
|
|
1297
1297
|
const config = FRAMEWORK_REGISTRY[integration];
|
|
1298
1298
|
store.setFrameworkConfig(integration, config);
|
|
1299
1299
|
store.setDetectedFramework(config.metadata.name);
|
|
@@ -6048,7 +6048,7 @@ function createMcpSuggestedPromptsServices(store) {
|
|
|
6048
6048
|
};
|
|
6049
6049
|
}
|
|
6050
6050
|
async function* runProductionPromptStreaming(args) {
|
|
6051
|
-
const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming-
|
|
6051
|
+
const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming-RZGAH4YO.js");
|
|
6052
6052
|
yield* runMcpPromptViaSdk(args);
|
|
6053
6053
|
}
|
|
6054
6054
|
//#endregion
|
|
@@ -6242,4 +6242,4 @@ function startTUI(version, program = Program.PostHogIntegration) {
|
|
|
6242
6242
|
//#endregion
|
|
6243
6243
|
export { startTUI };
|
|
6244
6244
|
|
|
6245
|
-
//# sourceMappingURL=start-tui-
|
|
6245
|
+
//# sourceMappingURL=start-tui-C3PdKFtP.js.map
|