@posthog/wizard 2.46.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/dist/{add-mcp-server-to-clients-Bv2CBSil.js → add-mcp-server-to-clients-Dg64O4OZ.js} +4 -4
- package/dist/{add-mcp-server-to-clients-Bv2CBSil.js.map → add-mcp-server-to-clients-Dg64O4OZ.js.map} +1 -1
- package/dist/{agent-interface-B8roB2UP.js → agent-interface-RZY46R62.js} +10 -6
- package/dist/agent-interface-RZY46R62.js.map +1 -0
- package/dist/{agent-runner-CV3qh_2p.js → agent-runner-D8pEOs_2.js} +17 -12
- package/dist/{agent-runner-CV3qh_2p.js.map → agent-runner-D8pEOs_2.js.map} +1 -1
- package/dist/{analytics-k76OWsl0.js → analytics-B4dny8FA.js} +2 -2
- package/dist/{analytics-k76OWsl0.js.map → analytics-B4dny8FA.js.map} +1 -1
- package/dist/analytics-BAhDPsPK.js +2 -0
- package/dist/{api-CmIWcW-U.js → api-CdPvsnUm.js} +3 -3
- package/dist/{api-CmIWcW-U.js.map → api-CdPvsnUm.js.map} +1 -1
- package/dist/bin.js +109 -38
- package/dist/bin.js.map +1 -1
- package/dist/{ci-install-CNEJxdHf.js → ci-install-g8govb-6.js} +4 -4
- package/dist/{ci-install-CNEJxdHf.js.map → ci-install-g8govb-6.js.map} +1 -1
- package/dist/{debug-C9HmIrwx.js → debug-BiU-S12q.js} +3 -3
- package/dist/{debug-C9HmIrwx.js.map → debug-BiU-S12q.js.map} +1 -1
- package/dist/{debug-BwIo7nwn.js → debug-DQWRmiju.js} +1 -1
- package/dist/{environment-NJykOp33.js → environment-BT0RRheV.js} +3 -3
- package/dist/{environment-NJykOp33.js.map → environment-BT0RRheV.js.map} +1 -1
- package/dist/{file-utils-CLMcNIKi.js → file-utils-B1_Eciop.js} +2 -2
- package/dist/{file-utils-CLMcNIKi.js.map → file-utils-B1_Eciop.js.map} +1 -1
- package/dist/{file-watcher-CBDCNQVV.js → file-watcher-4frv2dFl.js} +2 -2
- package/dist/{file-watcher-CBDCNQVV.js.map → file-watcher-4frv2dFl.js.map} +1 -1
- package/dist/{headless-ui-B3QKxbz8.js → headless-ui-DQVBpo0v.js} +2 -2
- package/dist/{headless-ui-B3QKxbz8.js.map → headless-ui-DQVBpo0v.js.map} +1 -1
- package/dist/{interactive-CIJRex02.js → interactive-Bgb8njPS.js} +2 -2
- package/dist/{interactive-CIJRex02.js.map → interactive-Bgb8njPS.js.map} +1 -1
- package/dist/{mcp-qTjKHqXN.js → mcp-BEWwXAXk.js} +2 -2
- package/dist/{mcp-qTjKHqXN.js.map → mcp-BEWwXAXk.js.map} +1 -1
- package/dist/{mcp-prompt-streaming-D6OgW3lC.js → mcp-prompt-streaming-MfYiLHox.js} +3 -3
- package/dist/{mcp-prompt-streaming-D6OgW3lC.js.map → mcp-prompt-streaming-MfYiLHox.js.map} +1 -1
- package/dist/{non-interactive-8Eypq_h-.js → non-interactive-C0NbQTcD.js} +2 -2
- package/dist/{non-interactive-8Eypq_h-.js.map → non-interactive-C0NbQTcD.js.map} +1 -1
- package/dist/{orchestrator-tools-DVXOV-kz.js → orchestrator-tools-KtXpYp6j.js} +3 -3
- package/dist/{orchestrator-tools-DVXOV-kz.js.map → orchestrator-tools-KtXpYp6j.js.map} +1 -1
- package/dist/{package-manager-CAD9Uklp.js → package-manager-L1RLE1ne.js} +2 -2
- package/dist/{package-manager-CAD9Uklp.js.map → package-manager-L1RLE1ne.js.map} +1 -1
- package/dist/{pi-C9iHv5uG.js → pi-BMs3MY7y.js} +11 -11
- package/dist/{pi-C9iHv5uG.js.map → pi-BMs3MY7y.js.map} +1 -1
- package/dist/{playground-C-9Q3ETa.js → playground-DZoNrDEM.js} +6 -6
- package/dist/{playground-C-9Q3ETa.js.map → playground-DZoNrDEM.js.map} +1 -1
- package/dist/{posthog-integration-Do997QON.js → posthog-integration-BnWgrvts.js} +14 -14
- package/dist/{posthog-integration-Do997QON.js.map → posthog-integration-BnWgrvts.js.map} +1 -1
- package/dist/{provisioning-DpqnGk3z.js → provisioning-DS8zDveH.js} +3 -3
- package/dist/{provisioning-DpqnGk3z.js.map → provisioning-DS8zDveH.js.map} +1 -1
- package/dist/{queue-tools-CTUgbOU8.js → queue-tools-rAN2wwDC.js} +2 -2
- package/dist/{queue-tools-CTUgbOU8.js.map → queue-tools-rAN2wwDC.js.map} +1 -1
- package/dist/{registry-DT58jEYr.js → registry-Zp3B2L4q.js} +4 -4
- package/dist/{registry-DT58jEYr.js.map → registry-Zp3B2L4q.js.map} +1 -1
- package/dist/{security-CTigdAWm.js → security-R8m9JSHq.js} +4 -4
- package/dist/{security-CTigdAWm.js.map → security-R8m9JSHq.js.map} +1 -1
- package/dist/{setup-utils-Cb5uACEO.js → setup-utils-BMy5Zj3Z.js} +7 -7
- package/dist/{setup-utils-Cb5uACEO.js.map → setup-utils-BMy5Zj3Z.js.map} +1 -1
- package/dist/{start-tui-Cwc-PFma.js → start-tui-CJ7i0pbr.js} +95 -17
- package/dist/start-tui-CJ7i0pbr.js.map +1 -0
- package/dist/{steps-DyEKYM4I.js → steps-CsvYRuTV.js} +7 -7
- package/dist/{steps-DyEKYM4I.js.map → steps-CsvYRuTV.js.map} +1 -1
- package/dist/{store-4sj-vWr5.js → store-CVZL9JJe.js} +4 -4
- package/dist/store-CVZL9JJe.js.map +1 -0
- package/dist/{subagent-D8_yDgCB.js → subagent-C1OOk1kh.js} +2 -2
- package/dist/{subagent-D8_yDgCB.js.map → subagent-C1OOk1kh.js.map} +1 -1
- package/dist/{task-D8Y8pkzd.js → task-BMaazWIr.js} +11 -11
- package/dist/{task-D8Y8pkzd.js.map → task-BMaazWIr.js.map} +1 -1
- package/dist/{task-stream-DQT3vjwS.js → task-stream-DlgLKdMC.js} +3 -3
- package/dist/{task-stream-DQT3vjwS.js.map → task-stream-DlgLKdMC.js.map} +1 -1
- package/dist/{tasks-D2WKssA5.js → tasks-BcsQlnuL.js} +2 -2
- package/dist/{tasks-D2WKssA5.js.map → tasks-BcsQlnuL.js.map} +1 -1
- package/dist/{telemetry-CYr4HgS2.js → telemetry-3Y8LxNVU.js} +3 -3
- package/dist/{telemetry-CYr4HgS2.js.map → telemetry-3Y8LxNVU.js.map} +1 -1
- package/dist/{terminal-1RfyHQC2.js → terminal-B4cCBtMj.js} +11 -11
- package/dist/{terminal-1RfyHQC2.js.map → terminal-B4cCBtMj.js.map} +1 -1
- package/dist/{tools-DQCUOQZX.js → tools-C07lR0s-.js} +6 -6
- package/dist/{tools-DQCUOQZX.js.map → tools-C07lR0s-.js.map} +1 -1
- package/dist/{wizard-abort-FuyIaI_0.js → wizard-abort-D1UxHeiE.js} +3 -3
- package/dist/{wizard-abort-FuyIaI_0.js.map → wizard-abort-D1UxHeiE.js.map} +1 -1
- package/dist/{wizard-abort-D_-v1zvS.js → wizard-abort-DoI_ZWM-.js} +1 -1
- package/dist/yara-hooks-ChkXWyzs.js +2 -0
- package/dist/{yara-hooks-DdYRRxfH.js → yara-hooks-D9PSjEqo.js} +3 -3
- package/dist/{yara-hooks-DdYRRxfH.js.map → yara-hooks-D9PSjEqo.js.map} +1 -1
- package/package.json +1 -1
- package/dist/agent-interface-B8roB2UP.js.map +0 -1
- package/dist/analytics-D7vUZgzf.js +0 -2
- package/dist/start-tui-Cwc-PFma.js.map +0 -1
- package/dist/store-4sj-vWr5.js.map +0 -1
- package/dist/yara-hooks-6gNnPFPo.js +0 -2
|
@@ -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, 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-
|
|
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 { x as fetchSkillMenu, y as downloadSkill } from "./agent-interface-
|
|
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-
|
|
10
|
-
import { t as FRAMEWORK_REGISTRY } from "./registry-
|
|
11
|
-
import { b as detectProjectsWithAgent, m as Icons, p as Colors, t as SETUP_REPORT_FILE, v as getDetectedWarehouseSources } from "./posthog-integration-
|
|
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
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-
|
|
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-
|
|
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
15
|
import { t as ALL_FEATURE_VALUES } from "./defaults-CtWMmC8s.js";
|
|
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-
|
|
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);
|
|
@@ -2431,6 +2431,83 @@ const AgentSkillIntroScreen = ({ store }) => {
|
|
|
2431
2431
|
});
|
|
2432
2432
|
};
|
|
2433
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
|
|
2434
2511
|
//#region src/ui/tui/screens/SelfDrivingIntroScreen.tsx
|
|
2435
2512
|
/**
|
|
2436
2513
|
* SelfDrivingIntroScreen — Welcome screen for the self-driving flow.
|
|
@@ -5218,7 +5295,7 @@ function createMcpSuggestedPromptsServices(store) {
|
|
|
5218
5295
|
};
|
|
5219
5296
|
}
|
|
5220
5297
|
async function* runProductionPromptStreaming(args) {
|
|
5221
|
-
const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming-
|
|
5298
|
+
const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming-MfYiLHox.js");
|
|
5222
5299
|
yield* runMcpPromptViaSdk(args);
|
|
5223
5300
|
}
|
|
5224
5301
|
//#endregion
|
|
@@ -5246,6 +5323,7 @@ function createScreens(store, services) {
|
|
|
5246
5323
|
["source-maps-outro"]: /* @__PURE__ */ jsx(SourceMapsOutroScreen, { store }),
|
|
5247
5324
|
["migration-intro"]: /* @__PURE__ */ jsx(MigrationIntroScreen, { store }),
|
|
5248
5325
|
["agent-skill-intro"]: /* @__PURE__ */ jsx(AgentSkillIntroScreen, { store }),
|
|
5326
|
+
["ai-observability-intro"]: /* @__PURE__ */ jsx(AiObservabilityIntroScreen, { store }),
|
|
5249
5327
|
["self-driving-intro"]: /* @__PURE__ */ jsx(SelfDrivingIntroScreen, { store }),
|
|
5250
5328
|
["self-driving-integration-check"]: /* @__PURE__ */ jsx(SelfDrivingIntegrationCheckScreen, { store }),
|
|
5251
5329
|
["self-driving-integration-detect"]: /* @__PURE__ */ jsx(SelfDrivingIntegrationDetectScreen, { store }),
|
|
@@ -5394,4 +5472,4 @@ function startTUI(version, program = Program.PostHogIntegration) {
|
|
|
5394
5472
|
//#endregion
|
|
5395
5473
|
export { startTUI };
|
|
5396
5474
|
|
|
5397
|
-
//# sourceMappingURL=start-tui-
|
|
5475
|
+
//# sourceMappingURL=start-tui-CJ7i0pbr.js.map
|