@posthog/wizard 2.45.0 → 2.47.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 +5 -1
- package/dist/{add-mcp-server-to-clients-CNzZMSat.js → add-mcp-server-to-clients-Dg64O4OZ.js} +53 -6
- package/dist/add-mcp-server-to-clients-Dg64O4OZ.js.map +1 -0
- package/dist/{agent-interface-CF7GsdFf.js → agent-interface-RZY46R62.js} +837 -8
- package/dist/agent-interface-RZY46R62.js.map +1 -0
- package/dist/{agent-runner-B0LTVFfw.js → agent-runner-D8pEOs_2.js} +209 -48
- package/dist/agent-runner-D8pEOs_2.js.map +1 -0
- package/dist/{analytics-DQEuL6qS.js → analytics-B4dny8FA.js} +20 -6
- package/dist/analytics-B4dny8FA.js.map +1 -0
- package/dist/analytics-BAhDPsPK.js +2 -0
- package/dist/{api-uCMvDII5.js → api-CdPvsnUm.js} +3 -3
- package/dist/{api-uCMvDII5.js.map → api-CdPvsnUm.js.map} +1 -1
- package/dist/bin.js +300 -986
- package/dist/bin.js.map +1 -1
- package/dist/{ci-install-Bow8-f0j.js → ci-install-g8govb-6.js} +4 -4
- package/dist/{ci-install-Bow8-f0j.js.map → ci-install-g8govb-6.js.map} +1 -1
- package/dist/{commandments-CyB7Icr1.js → commandments-DSNrOeOC.js} +1 -1
- package/dist/{commandments-CyB7Icr1.js.map → commandments-DSNrOeOC.js.map} +1 -1
- package/dist/commandments-qTW7pwaT.js +2 -0
- package/dist/{debug-DBmxx59Q.js → debug-BiU-S12q.js} +19 -5
- package/dist/debug-BiU-S12q.js.map +1 -0
- package/dist/{debug-BixHZmHv.js → debug-DQWRmiju.js} +1 -1
- package/dist/{defaults-8zjNjGGi.js → defaults-CtWMmC8s.js} +1 -1
- package/dist/{defaults-8zjNjGGi.js.map → defaults-CtWMmC8s.js.map} +1 -1
- package/dist/{env-api-key-AcC_tz8G.js → env-api-key-C3LzH8Lr.js} +1 -1
- package/dist/{env-api-key-AcC_tz8G.js.map → env-api-key-C3LzH8Lr.js.map} +1 -1
- package/dist/{environment-kZtkp7eG.js → environment-BT0RRheV.js} +3 -3
- package/dist/{environment-kZtkp7eG.js.map → environment-BT0RRheV.js.map} +1 -1
- package/dist/{file-utils-BAhYy5vC.js → file-utils-B1_Eciop.js} +2 -2
- package/dist/{file-utils-BAhYy5vC.js.map → file-utils-B1_Eciop.js.map} +1 -1
- package/dist/{file-watcher-BL-IRbR7.js → file-watcher-4frv2dFl.js} +2 -2
- package/dist/{file-watcher-BL-IRbR7.js.map → file-watcher-4frv2dFl.js.map} +1 -1
- package/dist/{headless-ui-DWmMyhaP.js → headless-ui-DQVBpo0v.js} +2 -2
- package/dist/{headless-ui-DWmMyhaP.js.map → headless-ui-DQVBpo0v.js.map} +1 -1
- package/dist/{interactive-Cyic0bGL.js → interactive-Bgb8njPS.js} +2 -2
- package/dist/{interactive-Cyic0bGL.js.map → interactive-Bgb8njPS.js.map} +1 -1
- package/dist/{mcp-BSGmEWjt.js → mcp-BEWwXAXk.js} +2 -2
- package/dist/{mcp-BSGmEWjt.js.map → mcp-BEWwXAXk.js.map} +1 -1
- package/dist/{mcp-prompt-streaming-C227vG1X.js → mcp-prompt-streaming-MfYiLHox.js} +3 -3
- package/dist/{mcp-prompt-streaming-C227vG1X.js.map → mcp-prompt-streaming-MfYiLHox.js.map} +1 -1
- package/dist/{non-interactive-DQA9vn9f.js → non-interactive-C0NbQTcD.js} +2 -2
- package/dist/{non-interactive-DQA9vn9f.js.map → non-interactive-C0NbQTcD.js.map} +1 -1
- package/dist/{orchestrator-tools-NuWONNkF.js → orchestrator-tools-KtXpYp6j.js} +3 -3
- package/dist/{orchestrator-tools-NuWONNkF.js.map → orchestrator-tools-KtXpYp6j.js.map} +1 -1
- package/dist/{package-manager-DKtR3xzM.js → package-manager-L1RLE1ne.js} +2 -2
- package/dist/{package-manager-DKtR3xzM.js.map → package-manager-L1RLE1ne.js.map} +1 -1
- package/dist/{pi-DJCln9jJ.js → pi-BMs3MY7y.js} +48 -32
- package/dist/pi-BMs3MY7y.js.map +1 -0
- package/dist/{playground-CbEndzc8.js → playground-DZoNrDEM.js} +7 -7
- package/dist/{playground-CbEndzc8.js.map → playground-DZoNrDEM.js.map} +1 -1
- package/dist/{posthog-DFyux4Vw.js → posthog-DZZbziJ1.js} +1 -1
- package/dist/{posthog-DFyux4Vw.js.map → posthog-DZZbziJ1.js.map} +1 -1
- package/dist/{posthog-integration-dmWJZ8mj.js → posthog-integration-BnWgrvts.js} +2006 -17
- package/dist/posthog-integration-BnWgrvts.js.map +1 -0
- package/dist/{provisioning-CcxCry5p.js → provisioning-DS8zDveH.js} +3 -3
- package/dist/{provisioning-CcxCry5p.js.map → provisioning-DS8zDveH.js.map} +1 -1
- package/dist/{queue-tools-Bw-AANLM.js → queue-tools-rAN2wwDC.js} +2 -2
- package/dist/{queue-tools-Bw-AANLM.js.map → queue-tools-rAN2wwDC.js.map} +1 -1
- package/dist/{registry-D2V88NoC.js → registry-Zp3B2L4q.js} +4 -4
- package/dist/{registry-D2V88NoC.js.map → registry-Zp3B2L4q.js.map} +1 -1
- package/dist/{security-DOtBCBvx.js → security-R8m9JSHq.js} +10 -8
- package/dist/security-R8m9JSHq.js.map +1 -0
- package/dist/{setup-utils-Qp-u6BZk.js → setup-utils-BMy5Zj3Z.js} +31 -9
- package/dist/setup-utils-BMy5Zj3Z.js.map +1 -0
- package/dist/{start-tui-DHa_9aiB.js → start-tui-CJ7i0pbr.js} +114 -30
- package/dist/start-tui-CJ7i0pbr.js.map +1 -0
- package/dist/{steps-D07HUQyE.js → steps-CsvYRuTV.js} +7 -7
- package/dist/{steps-D07HUQyE.js.map → steps-CsvYRuTV.js.map} +1 -1
- package/dist/{store-DSwsITKX.js → store-CVZL9JJe.js} +4 -4
- package/dist/store-CVZL9JJe.js.map +1 -0
- package/dist/{subagent-Dk4K5MDa.js → subagent-C1OOk1kh.js} +2 -2
- package/dist/{subagent-Dk4K5MDa.js.map → subagent-C1OOk1kh.js.map} +1 -1
- package/dist/{task-CQnV9Qd2.js → task-BMaazWIr.js} +12 -13
- package/dist/task-BMaazWIr.js.map +1 -0
- package/dist/{task-stream-B7qia9eW.js → task-stream-DlgLKdMC.js} +4 -4
- package/dist/{task-stream-B7qia9eW.js.map → task-stream-DlgLKdMC.js.map} +1 -1
- package/dist/{tasks-C7BQp659.js → tasks-BcsQlnuL.js} +2 -2
- package/dist/{tasks-C7BQp659.js.map → tasks-BcsQlnuL.js.map} +1 -1
- package/dist/{telemetry-DgahJGSx.js → telemetry-3Y8LxNVU.js} +3 -3
- package/dist/{telemetry-DgahJGSx.js.map → telemetry-3Y8LxNVU.js.map} +1 -1
- package/dist/{terminal-Bb6tZkf-.js → terminal-B4cCBtMj.js} +12 -12
- package/dist/{terminal-Bb6tZkf-.js.map → terminal-B4cCBtMj.js.map} +1 -1
- package/dist/tools-C07lR0s-.js +199 -0
- package/dist/tools-C07lR0s-.js.map +1 -0
- package/dist/{wizard-abort-BxtdkgI-.js → wizard-abort-D1UxHeiE.js} +3 -3
- package/dist/{wizard-abort-BxtdkgI-.js.map → wizard-abort-D1UxHeiE.js.map} +1 -1
- package/dist/{wizard-abort-DpDmuCfA.js → wizard-abort-DoI_ZWM-.js} +1 -1
- package/dist/yara-hooks-ChkXWyzs.js +2 -0
- package/dist/{yara-hooks-pw86rZ8y.js → yara-hooks-D9PSjEqo.js} +82 -21
- package/dist/yara-hooks-D9PSjEqo.js.map +1 -0
- package/package.json +1 -1
- package/dist/add-mcp-server-to-clients-CNzZMSat.js.map +0 -1
- package/dist/agent-interface-CF7GsdFf.js.map +0 -1
- package/dist/agent-runner-B0LTVFfw.js.map +0 -1
- package/dist/analytics-DQEuL6qS.js.map +0 -1
- package/dist/analytics-YD3D38z2.js +0 -2
- package/dist/commandments-DguPfCX8.js +0 -2
- package/dist/debug-DBmxx59Q.js.map +0 -1
- package/dist/pi-DJCln9jJ.js.map +0 -1
- package/dist/posthog-integration-dmWJZ8mj.js.map +0 -1
- package/dist/security-DOtBCBvx.js.map +0 -1
- package/dist/setup-utils-Qp-u6BZk.js.map +0 -1
- package/dist/start-tui-DHa_9aiB.js.map +0 -1
- package/dist/store-DSwsITKX.js.map +0 -1
- package/dist/task-CQnV9Qd2.js.map +0 -1
- package/dist/tools-BJEvSUWN.js +0 -122
- package/dist/tools-BJEvSUWN.js.map +0 -1
- package/dist/types-BRe_EzTW.js +0 -46
- package/dist/types-BRe_EzTW.js.map +0 -1
- package/dist/wizard-tools-Dg8o2lcH.js +0 -783
- package/dist/wizard-tools-Dg8o2lcH.js.map +0 -1
- package/dist/yara-hooks-CncaWRuC.js +0 -2
- package/dist/yara-hooks-pw86rZ8y.js.map +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { B as Integration, H as OAUTH_TIMEOUT_MS, K as POSTHOG_DOCS_URL, V as OAUTH_PORTS, X as POSTHOG_PRIVACY_URL, Y as POSTHOG_ORG_AI_SETTINGS_URL, d as relativeToInstallDir, et as POSTHOG_TERMS_URL, g as SIGNUP_WIZARD_READINESS_CONFIG,
|
|
2
|
-
import { n as analytics } from "./analytics-
|
|
3
|
-
import { o as extractOAuthCode, t as getOrAskForProjectData } from "./setup-utils-
|
|
4
|
-
import { t as ApiError } from "./api-
|
|
1
|
+
import { B as Integration, H as OAUTH_TIMEOUT_MS, K as POSTHOG_DOCS_URL, V as OAUTH_PORTS, X as POSTHOG_PRIVACY_URL, Y as POSTHOG_ORG_AI_SETTINGS_URL, d as relativeToInstallDir, et as POSTHOG_TERMS_URL, g as SIGNUP_WIZARD_READINESS_CONFIG, ht as WIZARD_TOOLS_MENU_FLAG_KEY, l as WIZARD_LOG_FILE, nt as REMOTE_SKILLS_BASE_URL, p as setUI, s as logToFile, v as getBlockingServiceKeys } from "./debug-BiU-S12q.js";
|
|
2
|
+
import { n as analytics } from "./analytics-B4dny8FA.js";
|
|
3
|
+
import { o as extractOAuthCode, t as getOrAskForProjectData } from "./setup-utils-BMy5Zj3Z.js";
|
|
4
|
+
import { t as ApiError } from "./api-CdPvsnUm.js";
|
|
5
5
|
import { t as ADDITIONAL_FEATURE_LABELS } from "./wizard-session-tp4Zdbwl.js";
|
|
6
|
-
import { i as wizardAbort } from "./wizard-abort-
|
|
7
|
-
import { a as formatTokenCount, i as formatCostUsd } from "./agent-runner-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as FRAMEWORK_REGISTRY } from "./registry-
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { r as totalTokenCount, t as WizardStore } from "./store-
|
|
14
|
-
import { A as ConfirmationInput, C as TabContainer, D as LinkText, E as LogViewer, F as SplitView, M as useStdoutDimensions, N as ProgressList, O as extractUrls, P as LoadingBox, S as HNViewer, T as EventPlanViewer, _ as SEVERITY_ORDER, a as useSkillEntry, b as LearnCard, c as SlackConnectScreen, d as AuditChecksViewer, f as McpSuggestedPromptsScreen, g as SEVERITY_LABEL, h as IssueTable, i as SkillSourceInfo, k as ModalOverlay, l as AUDIT_AREA_SLIDES, m as McpScreen, n as releaseTerminal, o as OutroScreen, r as AiOptInRequiredScreen, s as useDismissOnAnyKey, t as enterDarkTerminal, u as VisualBox, v as ServiceHealthList, w as ScreenContainer, y as TipsCard } from "./terminal-
|
|
15
|
-
import { t as ALL_FEATURE_VALUES } from "./defaults-
|
|
16
|
-
import { t as startFileWatcher } from "./file-watcher-
|
|
17
|
-
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-
|
|
6
|
+
import { i as wizardAbort } from "./wizard-abort-D1UxHeiE.js";
|
|
7
|
+
import { a as formatTokenCount, i as formatCostUsd } from "./agent-runner-D8pEOs_2.js";
|
|
8
|
+
import { x as fetchSkillMenu, y as downloadSkill } from "./agent-interface-RZY46R62.js";
|
|
9
|
+
import { S as getAuditChecks, _ as AUDIT_CHECKS_FILE, b as AUDIT_SEVERITY_STYLE, v as AUDIT_CHECKS_KEY, x as coerceAuditChecks } from "./yara-hooks-D9PSjEqo.js";
|
|
10
|
+
import { t as FRAMEWORK_REGISTRY } from "./registry-Zp3B2L4q.js";
|
|
11
|
+
import { b as detectProjectsWithAgent, m as Icons, p as Colors, t as SETUP_REPORT_FILE, v as getDetectedWarehouseSources } from "./posthog-integration-BnWgrvts.js";
|
|
12
|
+
import { S as STRIPE_SDKS, _ as SOURCE_MAPS_CONTEXT_KEYS, b as getContentBlocks, d as Program, f as getProgramConfig, g as DISPLAY_NAME, h as AUTOMATABLE_VARIANTS, m as SELF_DRIVING_INTEGRATE_PATH_KEY, n as useKeyBindings, p as detectSelfDrivingIntegrationProjects, t as PickerMenu, x as POSTHOG_SDKS, y as fetchHealthIssues } from "./bin.js";
|
|
13
|
+
import { r as totalTokenCount, t as WizardStore } from "./store-CVZL9JJe.js";
|
|
14
|
+
import { A as ConfirmationInput, C as TabContainer, D as LinkText, E as LogViewer, F as SplitView, M as useStdoutDimensions, N as ProgressList, O as extractUrls, P as LoadingBox, S as HNViewer, T as EventPlanViewer, _ as SEVERITY_ORDER, a as useSkillEntry, b as LearnCard, c as SlackConnectScreen, d as AuditChecksViewer, f as McpSuggestedPromptsScreen, g as SEVERITY_LABEL, h as IssueTable, i as SkillSourceInfo, k as ModalOverlay, l as AUDIT_AREA_SLIDES, m as McpScreen, n as releaseTerminal, o as OutroScreen, r as AiOptInRequiredScreen, s as useDismissOnAnyKey, t as enterDarkTerminal, u as VisualBox, v as ServiceHealthList, w as ScreenContainer, y as TipsCard } from "./terminal-B4cCBtMj.js";
|
|
15
|
+
import { t as ALL_FEATURE_VALUES } from "./defaults-CtWMmC8s.js";
|
|
16
|
+
import { t as startFileWatcher } from "./file-watcher-4frv2dFl.js";
|
|
17
|
+
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-Dg64O4OZ.js";
|
|
18
18
|
import path from "path";
|
|
19
19
|
import { join as join$1 } from "node:path";
|
|
20
20
|
import { spawn, spawnSync } from "node:child_process";
|
|
@@ -1081,7 +1081,7 @@ const FrameworkPicker = ({ store, onComplete }) => {
|
|
|
1081
1081
|
})),
|
|
1082
1082
|
onSelect: (value) => {
|
|
1083
1083
|
const integration = Array.isArray(value) ? value[0] : value;
|
|
1084
|
-
import("./registry-
|
|
1084
|
+
import("./registry-Zp3B2L4q.js").then((n) => n.n).then(({ FRAMEWORK_REGISTRY }) => {
|
|
1085
1085
|
const config = FRAMEWORK_REGISTRY[integration];
|
|
1086
1086
|
store.setFrameworkConfig(integration, config);
|
|
1087
1087
|
store.setDetectedFramework(config.metadata.name);
|
|
@@ -1901,12 +1901,17 @@ const SourceMapsIntroScreen = ({ store }) => {
|
|
|
1901
1901
|
*/
|
|
1902
1902
|
/**
|
|
1903
1903
|
* Variant precedence for the agentic picker (most specific first). The detector
|
|
1904
|
-
* keeps the EARLIEST matching target
|
|
1905
|
-
*
|
|
1906
|
-
*
|
|
1907
|
-
*
|
|
1904
|
+
* keeps the EARLIEST matching target. Unsupported native targets are included
|
|
1905
|
+
* as guards before Android and iOS so React Native and Flutter projects with
|
|
1906
|
+
* nested Gradle or Xcode manifests are not misclassified as instrumentable
|
|
1907
|
+
* native apps. JS ordering mirrors `pickJsVariant` in detect.ts: opinionated
|
|
1908
|
+
* frameworks → bundlers → bare React → Node → generic web.
|
|
1908
1909
|
*/
|
|
1910
|
+
const NON_AUTOMATABLE_NATIVE_VARIANTS = ["react-native", "flutter"];
|
|
1909
1911
|
const VARIANT_PRECEDENCE = [
|
|
1912
|
+
...NON_AUTOMATABLE_NATIVE_VARIANTS,
|
|
1913
|
+
"android",
|
|
1914
|
+
"ios",
|
|
1910
1915
|
"nextjs",
|
|
1911
1916
|
"nuxt",
|
|
1912
1917
|
"angular",
|
|
@@ -1922,13 +1927,11 @@ const precedenceRank = (v) => {
|
|
|
1922
1927
|
return i === -1 ? Number.MAX_SAFE_INTEGER : i;
|
|
1923
1928
|
};
|
|
1924
1929
|
/**
|
|
1925
|
-
* Source-
|
|
1926
|
-
*
|
|
1927
|
-
*
|
|
1928
|
-
* so a newly-automatable variant is never silently dropped (unranked ones sort
|
|
1929
|
-
* last). Exported for testing.
|
|
1930
|
+
* Source-map detection targets, ordered by VARIANT_PRECEDENCE. Unsupported
|
|
1931
|
+
* native variants remain in the target list so the detector can identify and
|
|
1932
|
+
* block them instead of falling through to iOS or a JS target.
|
|
1930
1933
|
*/
|
|
1931
|
-
const SOURCE_MAPS_TARGETS = [...AUTOMATABLE_VARIANTS].sort((a, b) => precedenceRank(a) - precedenceRank(b)).map((v) => ({
|
|
1934
|
+
const SOURCE_MAPS_TARGETS = [...NON_AUTOMATABLE_NATIVE_VARIANTS, ...AUTOMATABLE_VARIANTS].sort((a, b) => precedenceRank(a) - precedenceRank(b)).map((v) => ({
|
|
1932
1935
|
id: v,
|
|
1933
1936
|
name: DISPLAY_NAME[v]
|
|
1934
1937
|
}));
|
|
@@ -1943,12 +1946,15 @@ function classify(variant, hasPostHog) {
|
|
|
1943
1946
|
};
|
|
1944
1947
|
return { instrumentable: true };
|
|
1945
1948
|
}
|
|
1949
|
+
function isAutomatableVariant(value) {
|
|
1950
|
+
return value !== null && AUTOMATABLE_VARIANTS.includes(value);
|
|
1951
|
+
}
|
|
1946
1952
|
/** Map a generic detection report into source-maps projects. */
|
|
1947
1953
|
function toSourceMapsReport(report) {
|
|
1948
1954
|
return {
|
|
1949
1955
|
repoType: report.repoType,
|
|
1950
1956
|
projects: report.projects.map((p) => {
|
|
1951
|
-
const variant = p.targetId
|
|
1957
|
+
const variant = isAutomatableVariant(p.targetId) && !/\b(?:react[\s-]*native|expo|flutter)\b/i.test(p.framework) ? p.targetId : null;
|
|
1952
1958
|
return {
|
|
1953
1959
|
path: p.path,
|
|
1954
1960
|
framework: p.framework,
|
|
@@ -2425,6 +2431,83 @@ const AgentSkillIntroScreen = ({ store }) => {
|
|
|
2425
2431
|
});
|
|
2426
2432
|
};
|
|
2427
2433
|
//#endregion
|
|
2434
|
+
//#region src/ui/tui/screens/AiObservabilityIntroScreen.tsx
|
|
2435
|
+
const AiObservabilityIntroScreen = ({ store }) => {
|
|
2436
|
+
useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
|
|
2437
|
+
const [showingMoreInfo, setShowingMoreInfo] = useState(false);
|
|
2438
|
+
const { session } = store;
|
|
2439
|
+
const skillId = session.skillId ?? "ai-observability";
|
|
2440
|
+
const { skillEntry, fetchFailed } = useSkillEntry(skillId, session.localMcp);
|
|
2441
|
+
const body = showingMoreInfo ? /* @__PURE__ */ jsxs(Box, {
|
|
2442
|
+
flexDirection: "column",
|
|
2443
|
+
width: 56,
|
|
2444
|
+
children: [
|
|
2445
|
+
/* @__PURE__ */ jsx(Box, {
|
|
2446
|
+
marginBottom: 1,
|
|
2447
|
+
children: /* @__PURE__ */ jsxs(Text, { children: ["The wizard is an agent that executes PostHog tasks. Its code is open source: ", /* @__PURE__ */ jsx(Text, {
|
|
2448
|
+
color: "cyan",
|
|
2449
|
+
children: "https://github.com/PostHog/wizard"
|
|
2450
|
+
})] })
|
|
2451
|
+
}),
|
|
2452
|
+
/* @__PURE__ */ jsxs(Text, { children: [
|
|
2453
|
+
"The",
|
|
2454
|
+
" ",
|
|
2455
|
+
/* @__PURE__ */ jsx(Text, {
|
|
2456
|
+
color: "cyan",
|
|
2457
|
+
italic: true,
|
|
2458
|
+
children: "ai-observability"
|
|
2459
|
+
}),
|
|
2460
|
+
" ",
|
|
2461
|
+
"program wraps your LLM SDK calls with PostHog's OpenTelemetry-based tracing so every prompt, completion, tool call, token count, and cost lands in AI Observability. Supports OpenAI, Anthropic, Google, LangChain, Vercel AI, and other SDKs."
|
|
2462
|
+
] }),
|
|
2463
|
+
/* @__PURE__ */ jsx(Box, {
|
|
2464
|
+
marginTop: 1,
|
|
2465
|
+
children: /* @__PURE__ */ jsx(SkillSourceInfo, {
|
|
2466
|
+
skillId,
|
|
2467
|
+
skillEntry,
|
|
2468
|
+
fetchFailed
|
|
2469
|
+
})
|
|
2470
|
+
})
|
|
2471
|
+
]
|
|
2472
|
+
}) : /* @__PURE__ */ jsx(Box, {
|
|
2473
|
+
flexDirection: "column",
|
|
2474
|
+
alignItems: "center",
|
|
2475
|
+
children: /* @__PURE__ */ jsx(Text, { children: "Let's instrument your LLM calls with PostHog AI Observability." })
|
|
2476
|
+
});
|
|
2477
|
+
const menuOptions = showingMoreInfo ? [{
|
|
2478
|
+
label: "Back",
|
|
2479
|
+
value: "back"
|
|
2480
|
+
}] : [
|
|
2481
|
+
{
|
|
2482
|
+
label: "Continue",
|
|
2483
|
+
value: "continue"
|
|
2484
|
+
},
|
|
2485
|
+
{
|
|
2486
|
+
label: "More info",
|
|
2487
|
+
value: "more-info"
|
|
2488
|
+
},
|
|
2489
|
+
{
|
|
2490
|
+
label: "Cancel",
|
|
2491
|
+
value: "cancel"
|
|
2492
|
+
}
|
|
2493
|
+
];
|
|
2494
|
+
const handleSelect = (value) => {
|
|
2495
|
+
if (value === "cancel") process.exit(0);
|
|
2496
|
+
else if (value === "more-info") setShowingMoreInfo(true);
|
|
2497
|
+
else if (value === "back") setShowingMoreInfo(false);
|
|
2498
|
+
else store.completeSetup();
|
|
2499
|
+
};
|
|
2500
|
+
return /* @__PURE__ */ jsx(IntroScreenLayout, {
|
|
2501
|
+
installDir: session.installDir,
|
|
2502
|
+
body,
|
|
2503
|
+
showDetection: !showingMoreInfo,
|
|
2504
|
+
programLabel: session.programLabel,
|
|
2505
|
+
skillId: session.skillId,
|
|
2506
|
+
menuOptions,
|
|
2507
|
+
onSelect: handleSelect
|
|
2508
|
+
});
|
|
2509
|
+
};
|
|
2510
|
+
//#endregion
|
|
2428
2511
|
//#region src/ui/tui/screens/SelfDrivingIntroScreen.tsx
|
|
2429
2512
|
/**
|
|
2430
2513
|
* SelfDrivingIntroScreen — Welcome screen for the self-driving flow.
|
|
@@ -5212,7 +5295,7 @@ function createMcpSuggestedPromptsServices(store) {
|
|
|
5212
5295
|
};
|
|
5213
5296
|
}
|
|
5214
5297
|
async function* runProductionPromptStreaming(args) {
|
|
5215
|
-
const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming-
|
|
5298
|
+
const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming-MfYiLHox.js");
|
|
5216
5299
|
yield* runMcpPromptViaSdk(args);
|
|
5217
5300
|
}
|
|
5218
5301
|
//#endregion
|
|
@@ -5240,6 +5323,7 @@ function createScreens(store, services) {
|
|
|
5240
5323
|
["source-maps-outro"]: /* @__PURE__ */ jsx(SourceMapsOutroScreen, { store }),
|
|
5241
5324
|
["migration-intro"]: /* @__PURE__ */ jsx(MigrationIntroScreen, { store }),
|
|
5242
5325
|
["agent-skill-intro"]: /* @__PURE__ */ jsx(AgentSkillIntroScreen, { store }),
|
|
5326
|
+
["ai-observability-intro"]: /* @__PURE__ */ jsx(AiObservabilityIntroScreen, { store }),
|
|
5243
5327
|
["self-driving-intro"]: /* @__PURE__ */ jsx(SelfDrivingIntroScreen, { store }),
|
|
5244
5328
|
["self-driving-integration-check"]: /* @__PURE__ */ jsx(SelfDrivingIntegrationCheckScreen, { store }),
|
|
5245
5329
|
["self-driving-integration-detect"]: /* @__PURE__ */ jsx(SelfDrivingIntegrationDetectScreen, { store }),
|
|
@@ -5388,4 +5472,4 @@ function startTUI(version, program = Program.PostHogIntegration) {
|
|
|
5388
5472
|
//#endregion
|
|
5389
5473
|
export { startTUI };
|
|
5390
5474
|
|
|
5391
|
-
//# sourceMappingURL=start-tui-
|
|
5475
|
+
//# sourceMappingURL=start-tui-CJ7i0pbr.js.map
|