@posthog/wizard 2.44.0 → 2.45.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-D5qsqCkj.js → add-mcp-server-to-clients-CNzZMSat.js} +5 -5
- package/dist/{add-mcp-server-to-clients-D5qsqCkj.js.map → add-mcp-server-to-clients-CNzZMSat.js.map} +1 -1
- package/dist/{agent-interface-BvTxWiol.js → agent-interface-CF7GsdFf.js} +297 -157
- package/dist/agent-interface-CF7GsdFf.js.map +1 -0
- package/dist/{agent-runner-BF6_f8Qh.js → agent-runner-B0LTVFfw.js} +130 -598
- package/dist/agent-runner-B0LTVFfw.js.map +1 -0
- package/dist/{analytics-DSlQuwOT.js → analytics-DQEuL6qS.js} +2 -2
- package/dist/{analytics-DSlQuwOT.js.map → analytics-DQEuL6qS.js.map} +1 -1
- package/dist/analytics-YD3D38z2.js +2 -0
- package/dist/{api-BXduJZrw.js → api-uCMvDII5.js} +3 -3
- package/dist/{api-BXduJZrw.js.map → api-uCMvDII5.js.map} +1 -1
- package/dist/bin.js +57 -101
- package/dist/bin.js.map +1 -1
- package/dist/{ci-install-GirEJqu2.js → ci-install-Bow8-f0j.js} +4 -4
- package/dist/{ci-install-GirEJqu2.js.map → ci-install-Bow8-f0j.js.map} +1 -1
- package/dist/commandments-CyB7Icr1.js +42 -0
- package/dist/commandments-CyB7Icr1.js.map +1 -0
- package/dist/commandments-DguPfCX8.js +2 -0
- package/dist/{debug-BOFxiVVs.js → debug-BixHZmHv.js} +1 -1
- package/dist/{debug-DXfQFmcM.js → debug-DBmxx59Q.js} +21 -5
- package/dist/debug-DBmxx59Q.js.map +1 -0
- package/dist/{defaults-BWLIffh5.js → defaults-8zjNjGGi.js} +1 -1
- package/dist/{defaults-BWLIffh5.js.map → defaults-8zjNjGGi.js.map} +1 -1
- package/dist/{env-api-key-cjD4yfGT.js → env-api-key-AcC_tz8G.js} +1 -1
- package/dist/{env-api-key-cjD4yfGT.js.map → env-api-key-AcC_tz8G.js.map} +1 -1
- package/dist/{environment-F1yw21dG.js → environment-kZtkp7eG.js} +3 -3
- package/dist/{environment-F1yw21dG.js.map → environment-kZtkp7eG.js.map} +1 -1
- package/dist/{file-utils-D-7YfJ7A.js → file-utils-BAhYy5vC.js} +2 -2
- package/dist/{file-utils-D-7YfJ7A.js.map → file-utils-BAhYy5vC.js.map} +1 -1
- package/dist/file-watcher-BL-IRbR7.js +123 -0
- package/dist/file-watcher-BL-IRbR7.js.map +1 -0
- package/dist/{headless-ui-Dni0gPND.js → headless-ui-DWmMyhaP.js} +5 -4
- package/dist/headless-ui-DWmMyhaP.js.map +1 -0
- package/dist/{interactive-Bmi82rsO.js → interactive-Cyic0bGL.js} +2 -2
- package/dist/{interactive-Bmi82rsO.js.map → interactive-Cyic0bGL.js.map} +1 -1
- package/dist/{mcp-xKRDnrcq.js → mcp-BSGmEWjt.js} +3 -3
- package/dist/mcp-BSGmEWjt.js.map +1 -0
- package/dist/{mcp-prompt-streaming-AtntLsJ8.js → mcp-prompt-streaming-C227vG1X.js} +3 -3
- package/dist/{mcp-prompt-streaming-AtntLsJ8.js.map → mcp-prompt-streaming-C227vG1X.js.map} +1 -1
- package/dist/{non-interactive-BIHqcW8g.js → non-interactive-DQA9vn9f.js} +2 -2
- package/dist/{non-interactive-BIHqcW8g.js.map → non-interactive-DQA9vn9f.js.map} +1 -1
- package/dist/orchestrator-tools-NuWONNkF.js +99 -0
- package/dist/orchestrator-tools-NuWONNkF.js.map +1 -0
- package/dist/{package-json-CDs1ZVKu.js → package-json-DCuoye-H.js} +1 -1
- package/dist/{package-json-CDs1ZVKu.js.map → package-json-DCuoye-H.js.map} +1 -1
- package/dist/{package-manager-C6R_zpML.js → package-manager-DKtR3xzM.js} +2 -2
- package/dist/{package-manager-C6R_zpML.js.map → package-manager-DKtR3xzM.js.map} +1 -1
- package/dist/pi-DJCln9jJ.js +603 -0
- package/dist/pi-DJCln9jJ.js.map +1 -0
- package/dist/{playground-DwL36I2u.js → playground-CbEndzc8.js} +7 -8
- package/dist/{playground-DwL36I2u.js.map → playground-CbEndzc8.js.map} +1 -1
- package/dist/{posthog-DwKlq0HM.js → posthog-DFyux4Vw.js} +1 -1
- package/dist/{posthog-DwKlq0HM.js.map → posthog-DFyux4Vw.js.map} +1 -1
- package/dist/{posthog-integration-BhLKCFsI.js → posthog-integration-dmWJZ8mj.js} +131 -26
- package/dist/posthog-integration-dmWJZ8mj.js.map +1 -0
- package/dist/{provisioning-jVZm2E-A.js → provisioning-CcxCry5p.js} +3 -3
- package/dist/{provisioning-jVZm2E-A.js.map → provisioning-CcxCry5p.js.map} +1 -1
- package/dist/queue-tools-Bw-AANLM.js +366 -0
- package/dist/queue-tools-Bw-AANLM.js.map +1 -0
- package/dist/{registry-DcoBCMQR.js → registry-D2V88NoC.js} +96 -18
- package/dist/registry-D2V88NoC.js.map +1 -0
- package/dist/{security-jxjVsOpd.js → security-DOtBCBvx.js} +4 -4
- package/dist/{security-jxjVsOpd.js.map → security-DOtBCBvx.js.map} +1 -1
- package/dist/{setup-utils-BQCl28D8.js → setup-utils-Qp-u6BZk.js} +7 -7
- package/dist/{setup-utils-BQCl28D8.js.map → setup-utils-Qp-u6BZk.js.map} +1 -1
- package/dist/{start-tui-DgSKFMVh.js → start-tui-DHa_9aiB.js} +19 -80
- package/dist/start-tui-DHa_9aiB.js.map +1 -0
- package/dist/{steps-erepgD0V.js → steps-D07HUQyE.js} +7 -7
- package/dist/{steps-erepgD0V.js.map → steps-D07HUQyE.js.map} +1 -1
- package/dist/{store-C79GoHCQ.js → store-DSwsITKX.js} +5 -6
- package/dist/store-DSwsITKX.js.map +1 -0
- package/dist/{subagent-aDlD_Ltz.js → subagent-Dk4K5MDa.js} +2 -2
- package/dist/{subagent-aDlD_Ltz.js.map → subagent-Dk4K5MDa.js.map} +1 -1
- package/dist/task-CQnV9Qd2.js +305 -0
- package/dist/task-CQnV9Qd2.js.map +1 -0
- package/dist/{task-stream-0Pk0tPBN.js → task-stream-B7qia9eW.js} +72 -7
- package/dist/task-stream-B7qia9eW.js.map +1 -0
- package/dist/{tasks-ZkrluXCa.js → tasks-C7BQp659.js} +2 -2
- package/dist/{tasks-ZkrluXCa.js.map → tasks-C7BQp659.js.map} +1 -1
- package/dist/{telemetry-DZShaH-y.js → telemetry-DgahJGSx.js} +3 -3
- package/dist/{telemetry-DZShaH-y.js.map → telemetry-DgahJGSx.js.map} +1 -1
- package/dist/{terminal-CEhufbJ4.js → terminal-Bb6tZkf-.js} +13 -13
- package/dist/{terminal-CEhufbJ4.js.map → terminal-Bb6tZkf-.js.map} +1 -1
- package/dist/{tools-BIPMan6l.js → tools-BJEvSUWN.js} +4 -4
- package/dist/{tools-BIPMan6l.js.map → tools-BJEvSUWN.js.map} +1 -1
- package/dist/{types-y3HkjtSq.js → types-BRe_EzTW.js} +1 -1
- package/dist/{types-y3HkjtSq.js.map → types-BRe_EzTW.js.map} +1 -1
- package/dist/{wizard-abort-C14PzXZ8.js → wizard-abort-BxtdkgI-.js} +4 -4
- package/dist/{wizard-abort-C14PzXZ8.js.map → wizard-abort-BxtdkgI-.js.map} +1 -1
- package/dist/{wizard-abort-UCm4Pd5m.js → wizard-abort-DpDmuCfA.js} +1 -1
- package/dist/{wizard-session-C5lZPPEc.js → wizard-session-DWHe83uk.js} +1 -1
- package/dist/{wizard-session-BAZql11N.js → wizard-session-tp4Zdbwl.js} +1 -1
- package/dist/{wizard-session-BAZql11N.js.map → wizard-session-tp4Zdbwl.js.map} +1 -1
- package/dist/{wizard-tools-B7SLjCic.js → wizard-tools-Dg8o2lcH.js} +64 -387
- package/dist/wizard-tools-Dg8o2lcH.js.map +1 -0
- package/dist/yara-hooks-CncaWRuC.js +2 -0
- package/dist/{yara-hooks-CPH8N4yz.js → yara-hooks-pw86rZ8y.js} +4 -4
- package/dist/{yara-hooks-CPH8N4yz.js.map → yara-hooks-pw86rZ8y.js.map} +1 -1
- package/package.json +1 -1
- package/dist/agent-interface-BvTxWiol.js.map +0 -1
- package/dist/agent-runner-BF6_f8Qh.js.map +0 -1
- package/dist/analytics-C7Xx6csw.js +0 -2
- package/dist/debug-DXfQFmcM.js.map +0 -1
- package/dist/headless-ui-Dni0gPND.js.map +0 -1
- package/dist/mcp-xKRDnrcq.js.map +0 -1
- package/dist/posthog-integration-BhLKCFsI.js.map +0 -1
- package/dist/registry-DcoBCMQR.js.map +0 -1
- package/dist/start-tui-DgSKFMVh.js.map +0 -1
- package/dist/store-C79GoHCQ.js.map +0 -1
- package/dist/task-stream-0Pk0tPBN.js.map +0 -1
- package/dist/wizard-tools-B7SLjCic.js.map +0 -1
- package/dist/wizard-ui-WZ48rUgr.js +0 -15
- package/dist/wizard-ui-WZ48rUgr.js.map +0 -1
- package/dist/yara-hooks-VZlj4Lib.js +0 -2
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
5
|
-
import { t as ADDITIONAL_FEATURE_LABELS } from "./wizard-session-
|
|
6
|
-
import { i as wizardAbort } from "./wizard-abort-
|
|
7
|
-
import { a as formatTokenCount, i as formatCostUsd } from "./agent-runner-
|
|
8
|
-
import { i as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { g as detectProjectsWithAgent, m as Icons, p as Colors, t as SETUP_REPORT_FILE } from "./posthog-integration-BhLKCFsI.js";
|
|
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, l as WIZARD_LOG_FILE, mt as WIZARD_TOOLS_MENU_FLAG_KEY, nt as REMOTE_SKILLS_BASE_URL, p as setUI, s as logToFile, v as getBlockingServiceKeys } from "./debug-DBmxx59Q.js";
|
|
2
|
+
import { n as analytics } from "./analytics-DQEuL6qS.js";
|
|
3
|
+
import { o as extractOAuthCode, t as getOrAskForProjectData } from "./setup-utils-Qp-u6BZk.js";
|
|
4
|
+
import { t as ApiError } from "./api-uCMvDII5.js";
|
|
5
|
+
import { t as ADDITIONAL_FEATURE_LABELS } from "./wizard-session-tp4Zdbwl.js";
|
|
6
|
+
import { i as wizardAbort } from "./wizard-abort-BxtdkgI-.js";
|
|
7
|
+
import { a as formatTokenCount, i as formatCostUsd } from "./agent-runner-B0LTVFfw.js";
|
|
8
|
+
import { a as coerceAuditChecks, i as AUDIT_SEVERITY_STYLE, n as AUDIT_CHECKS_KEY, o as getAuditChecks, t as AUDIT_CHECKS_FILE } from "./types-BRe_EzTW.js";
|
|
9
|
+
import { i as fetchSkillMenu, r as downloadSkill } from "./wizard-tools-Dg8o2lcH.js";
|
|
10
|
+
import { t as FRAMEWORK_REGISTRY } from "./registry-D2V88NoC.js";
|
|
11
|
+
import { _ as detectProjectsWithAgent, m as Icons, p as Colors, t as SETUP_REPORT_FILE } from "./posthog-integration-dmWJZ8mj.js";
|
|
13
12
|
import { C as STRIPE_SDKS, S as POSTHOG_SDKS, _ as SOURCE_MAPS_CONTEXT_KEYS, b as getDetectedWarehouseSources, 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 getContentBlocks, y as fetchHealthIssues } from "./bin.js";
|
|
14
|
-
import { r as totalTokenCount, t as WizardStore } from "./store-
|
|
15
|
-
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-
|
|
16
|
-
import { t as ALL_FEATURE_VALUES } from "./defaults-
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
13
|
+
import { r as totalTokenCount, t as WizardStore } from "./store-DSwsITKX.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-Bb6tZkf-.js";
|
|
15
|
+
import { t as ALL_FEATURE_VALUES } from "./defaults-8zjNjGGi.js";
|
|
16
|
+
import { t as startFileWatcher } from "./file-watcher-BL-IRbR7.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-CNzZMSat.js";
|
|
19
18
|
import path from "path";
|
|
20
19
|
import { join as join$1 } from "node:path";
|
|
21
20
|
import { spawn, spawnSync } from "node:child_process";
|
|
@@ -1082,7 +1081,7 @@ const FrameworkPicker = ({ store, onComplete }) => {
|
|
|
1082
1081
|
})),
|
|
1083
1082
|
onSelect: (value) => {
|
|
1084
1083
|
const integration = Array.isArray(value) ? value[0] : value;
|
|
1085
|
-
import("./registry-
|
|
1084
|
+
import("./registry-D2V88NoC.js").then((n) => n.n).then(({ FRAMEWORK_REGISTRY }) => {
|
|
1086
1085
|
const config = FRAMEWORK_REGISTRY[integration];
|
|
1087
1086
|
store.setFrameworkConfig(integration, config);
|
|
1088
1087
|
store.setDetectedFramework(config.metadata.name);
|
|
@@ -3280,59 +3279,6 @@ const AuditIntroScreen = ({ store }) => {
|
|
|
3280
3279
|
};
|
|
3281
3280
|
//#endregion
|
|
3282
3281
|
//#region src/ui/tui/hooks/file-watcher.ts
|
|
3283
|
-
/**
|
|
3284
|
-
* File watcher (UI concern).
|
|
3285
|
-
*
|
|
3286
|
-
* `fs.watch` alone is unreliable for atomic-rename writes (which is how Claude
|
|
3287
|
-
* rewrites JSON files), so the watcher pairs `fs.watch` with a continuous
|
|
3288
|
-
* mtime-polled re-read. The poll catches missed events; the watch keeps
|
|
3289
|
-
* latency low when it does fire. We dedupe with `mtimeMs` so steady-state
|
|
3290
|
-
* polls cost a single `stat`.
|
|
3291
|
-
*
|
|
3292
|
-
* Screens that need to mirror an agent-emitted JSON file into the store call
|
|
3293
|
-
* `useFileWatcher(absolutePath, onUpdate)`; the watcher starts on mount and
|
|
3294
|
-
* tears down on unmount.
|
|
3295
|
-
*/
|
|
3296
|
-
const DEFAULT_POLL_INTERVAL_MS = 5e3;
|
|
3297
|
-
const DEFAULT_ATTACH_RETRY_INTERVAL_MS = 1e3;
|
|
3298
|
-
/** Watch `path` for JSON updates and call `onUpdate(parsed)` whenever the
|
|
3299
|
-
* file's mtime changes and the contents are valid JSON. Caller must invoke
|
|
3300
|
-
* `handle.stop()` to release the watcher. */
|
|
3301
|
-
function startFileWatcher(path, onUpdate, options = {}) {
|
|
3302
|
-
const pollIntervalMs = options.pollIntervalMs ?? DEFAULT_POLL_INTERVAL_MS;
|
|
3303
|
-
const attachRetryIntervalMs = options.attachRetryIntervalMs ?? DEFAULT_ATTACH_RETRY_INTERVAL_MS;
|
|
3304
|
-
const watchers = [];
|
|
3305
|
-
const intervals = [];
|
|
3306
|
-
let lastMtimeMs = 0;
|
|
3307
|
-
const read = (force = false) => {
|
|
3308
|
-
try {
|
|
3309
|
-
const stat = fs$1.statSync(path);
|
|
3310
|
-
if (!force && stat.mtimeMs === lastMtimeMs) return;
|
|
3311
|
-
lastMtimeMs = stat.mtimeMs;
|
|
3312
|
-
onUpdate(JSON.parse(fs$1.readFileSync(path, "utf-8")));
|
|
3313
|
-
} catch {}
|
|
3314
|
-
};
|
|
3315
|
-
intervals.push(setInterval(() => read(), pollIntervalMs));
|
|
3316
|
-
try {
|
|
3317
|
-
watchers.push(fs$1.watch(path, () => read(true)));
|
|
3318
|
-
read(true);
|
|
3319
|
-
} catch {
|
|
3320
|
-
const attachInterval = setInterval(() => {
|
|
3321
|
-
try {
|
|
3322
|
-
fs$1.accessSync(path);
|
|
3323
|
-
clearInterval(attachInterval);
|
|
3324
|
-
const idx = intervals.indexOf(attachInterval);
|
|
3325
|
-
if (idx >= 0) intervals.splice(idx, 1);
|
|
3326
|
-
watchers.push(fs$1.watch(path, () => read(true)));
|
|
3327
|
-
} catch {}
|
|
3328
|
-
}, attachRetryIntervalMs);
|
|
3329
|
-
intervals.push(attachInterval);
|
|
3330
|
-
}
|
|
3331
|
-
return { stop() {
|
|
3332
|
-
for (const w of watchers) w.close();
|
|
3333
|
-
for (const i of intervals) clearInterval(i);
|
|
3334
|
-
} };
|
|
3335
|
-
}
|
|
3336
3282
|
/** React hook wrapping `startFileWatcher`. Starts on mount, stops on unmount
|
|
3337
3283
|
* or when `path` changes. `onUpdate` and `options` are captured at mount
|
|
3338
3284
|
* time — change `path` to restart with a new callback. */
|
|
@@ -4543,13 +4489,6 @@ const AuthScreen = ({ store }) => {
|
|
|
4543
4489
|
*/
|
|
4544
4490
|
const RunScreen = ({ store }) => {
|
|
4545
4491
|
useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
|
|
4546
|
-
useFileWatcher(join$1(store.session.installDir, EVENT_PLAN_FILE), (parsed) => {
|
|
4547
|
-
if (!Array.isArray(parsed)) return;
|
|
4548
|
-
store.setEventPlan(parsed.map((e) => ({
|
|
4549
|
-
name: e.event_name ?? e.name ?? e.event ?? "",
|
|
4550
|
-
description: e.event_description ?? e.description ?? ""
|
|
4551
|
-
})).filter((e) => e.name));
|
|
4552
|
-
});
|
|
4553
4492
|
const [columns] = useStdoutDimensions();
|
|
4554
4493
|
const progressItems = store.tasks.map((t) => ({
|
|
4555
4494
|
label: t.label,
|
|
@@ -5273,7 +5212,7 @@ function createMcpSuggestedPromptsServices(store) {
|
|
|
5273
5212
|
};
|
|
5274
5213
|
}
|
|
5275
5214
|
async function* runProductionPromptStreaming(args) {
|
|
5276
|
-
const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming-
|
|
5215
|
+
const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming-C227vG1X.js");
|
|
5277
5216
|
yield* runMcpPromptViaSdk(args);
|
|
5278
5217
|
}
|
|
5279
5218
|
//#endregion
|
|
@@ -5449,4 +5388,4 @@ function startTUI(version, program = Program.PostHogIntegration) {
|
|
|
5449
5388
|
//#endregion
|
|
5450
5389
|
export { startTUI };
|
|
5451
5390
|
|
|
5452
|
-
//# sourceMappingURL=start-tui-
|
|
5391
|
+
//# sourceMappingURL=start-tui-DHa_9aiB.js.map
|