@posthog/wizard 2.70.0 → 2.70.1

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.
Files changed (91) hide show
  1. package/dist/{add-mcp-server-to-clients-D2z2adQL.js → add-mcp-server-to-clients-BCnjUqnW.js} +4 -4
  2. package/dist/{add-mcp-server-to-clients-D2z2adQL.js.map → add-mcp-server-to-clients-BCnjUqnW.js.map} +1 -1
  3. package/dist/{agent-interface-NZHof8u3.js → agent-interface-Lu7tnLr0.js} +7 -7
  4. package/dist/{agent-interface-NZHof8u3.js.map → agent-interface-Lu7tnLr0.js.map} +1 -1
  5. package/dist/{agent-prompt-loader-CQijHoX1.js → agent-prompt-loader-y5GxgEkc.js} +5 -5
  6. package/dist/{agent-prompt-loader-CQijHoX1.js.map → agent-prompt-loader-y5GxgEkc.js.map} +1 -1
  7. package/dist/{agent-runner-CK9z7-0z.js → agent-runner-vKtpgqVI.js} +20 -15
  8. package/dist/agent-runner-vKtpgqVI.js.map +1 -0
  9. package/dist/analytics-D-bMEYjD.js +2 -0
  10. package/dist/{analytics-DXPSL5IY.js → analytics-DTyJClPr.js} +2 -2
  11. package/dist/{analytics-DXPSL5IY.js.map → analytics-DTyJClPr.js.map} +1 -1
  12. package/dist/{api-CeapT_rn.js → api-j-OfJ8Dz.js} +3 -3
  13. package/dist/{api-CeapT_rn.js.map → api-j-OfJ8Dz.js.map} +1 -1
  14. package/dist/bin.js +54 -49
  15. package/dist/bin.js.map +1 -1
  16. package/dist/{bounded-fs-DdHuSE1X.js → bounded-fs-BWX25ixc.js} +3 -3
  17. package/dist/{bounded-fs-DdHuSE1X.js.map → bounded-fs-BWX25ixc.js.map} +1 -1
  18. package/dist/{ci-install-c-n8dJng.js → ci-install-zNWgp1TL.js} +4 -4
  19. package/dist/{ci-install-c-n8dJng.js.map → ci-install-zNWgp1TL.js.map} +1 -1
  20. package/dist/{debug-D5YT7Lil.js → debug-BM0fZaGl.js} +3 -3
  21. package/dist/{debug-D5YT7Lil.js.map → debug-BM0fZaGl.js.map} +1 -1
  22. package/dist/{debug-D2KQFr3-.js → debug-xr2Pq5VA.js} +1 -1
  23. package/dist/{env-api-key-ClK4nxHy.js → env-api-key-DlxCZWU0.js} +2 -2
  24. package/dist/{env-api-key-ClK4nxHy.js.map → env-api-key-DlxCZWU0.js.map} +1 -1
  25. package/dist/{environment-DbDconLv.js → environment-o-bTOuzK.js} +4 -4
  26. package/dist/{environment-DbDconLv.js.map → environment-o-bTOuzK.js.map} +1 -1
  27. package/dist/{file-watcher-CQj0wp1a.js → file-watcher-D7G4f5sP.js} +2 -2
  28. package/dist/{file-watcher-CQj0wp1a.js.map → file-watcher-D7G4f5sP.js.map} +1 -1
  29. package/dist/{headless-ui-BKU7MJQf.js → headless-ui-C46DctKG.js} +2 -2
  30. package/dist/{headless-ui-BKU7MJQf.js.map → headless-ui-C46DctKG.js.map} +1 -1
  31. package/dist/{interactive-Bfvo61oS.js → interactive-B5zy3Gxk.js} +2 -2
  32. package/dist/{interactive-Bfvo61oS.js.map → interactive-B5zy3Gxk.js.map} +1 -1
  33. package/dist/{mcp-C_pqYZQY.js → mcp-lJRwE-YW.js} +2 -2
  34. package/dist/{mcp-C_pqYZQY.js.map → mcp-lJRwE-YW.js.map} +1 -1
  35. package/dist/{mcp-prompt-streaming-DOHJxT8K.js → mcp-prompt-streaming-Dsos09hT.js} +4 -4
  36. package/dist/{mcp-prompt-streaming-DOHJxT8K.js.map → mcp-prompt-streaming-Dsos09hT.js.map} +1 -1
  37. package/dist/{non-interactive-CkBbj2As.js → non-interactive-qcCCtiYQ.js} +2 -2
  38. package/dist/{non-interactive-CkBbj2As.js.map → non-interactive-qcCCtiYQ.js.map} +1 -1
  39. package/dist/{orchestrator-tools-DaVjzCRn.js → orchestrator-tools-ezFTbAIp.js} +3 -3
  40. package/dist/{orchestrator-tools-DaVjzCRn.js.map → orchestrator-tools-ezFTbAIp.js.map} +1 -1
  41. package/dist/{package-manager-BD3WR7Ta.js → package-manager-CGfN9UhH.js} +2 -2
  42. package/dist/{package-manager-BD3WR7Ta.js.map → package-manager-CGfN9UhH.js.map} +1 -1
  43. package/dist/{pi-uDtK02b4.js → pi-DzQLHIcQ.js} +11 -11
  44. package/dist/{pi-uDtK02b4.js.map → pi-DzQLHIcQ.js.map} +1 -1
  45. package/dist/{playground-ELiBuGN0.js → playground-DLN31BPV.js} +6 -6
  46. package/dist/{playground-ELiBuGN0.js.map → playground-DLN31BPV.js.map} +1 -1
  47. package/dist/{posthog-DISFn-54.js → posthog-Dxr8XK4x.js} +2 -2
  48. package/dist/{posthog-DISFn-54.js.map → posthog-Dxr8XK4x.js.map} +1 -1
  49. package/dist/{posthog-integration-BGk6dYzS.js → posthog-integration-MDfRO911.js} +15 -15
  50. package/dist/posthog-integration-MDfRO911.js.map +1 -0
  51. package/dist/{provisioning-DoKcXygK.js → provisioning-Di5GNV9k.js} +3 -3
  52. package/dist/{provisioning-DoKcXygK.js.map → provisioning-Di5GNV9k.js.map} +1 -1
  53. package/dist/{queue-tools-B75RxrcC.js → queue-tools-KosDptd6.js} +3 -3
  54. package/dist/{queue-tools-B75RxrcC.js.map → queue-tools-KosDptd6.js.map} +1 -1
  55. package/dist/{registry-DbwlUbvA.js → registry-BBdaIFWq.js} +5 -5
  56. package/dist/{registry-DbwlUbvA.js.map → registry-BBdaIFWq.js.map} +1 -1
  57. package/dist/{security-lqzh7NaZ.js → security-BwOvjMaq.js} +5 -5
  58. package/dist/{security-lqzh7NaZ.js.map → security-BwOvjMaq.js.map} +1 -1
  59. package/dist/{setup-utils-DeIoqwPw.js → setup-utils-Bo3WZt3a.js} +8 -8
  60. package/dist/{setup-utils-DeIoqwPw.js.map → setup-utils-Bo3WZt3a.js.map} +1 -1
  61. package/dist/{start-tui-ebV_ynrs.js → start-tui-B1LrB7k1.js} +48 -18
  62. package/dist/{start-tui-ebV_ynrs.js.map → start-tui-B1LrB7k1.js.map} +1 -1
  63. package/dist/{steps-BB2izees.js → steps-BMrQJpQh.js} +7 -7
  64. package/dist/{steps-BB2izees.js.map → steps-BMrQJpQh.js.map} +1 -1
  65. package/dist/{store-BbDrhStP.js → store-DhNTBWQR.js} +5 -5
  66. package/dist/{store-BbDrhStP.js.map → store-DhNTBWQR.js.map} +1 -1
  67. package/dist/{subagent-oTBoYK3h.js → subagent-q6M-mBHo.js} +2 -2
  68. package/dist/{subagent-oTBoYK3h.js.map → subagent-q6M-mBHo.js.map} +1 -1
  69. package/dist/{task-BPsA2HrW.js → task-CgAOxod7.js} +12 -12
  70. package/dist/{task-BPsA2HrW.js.map → task-CgAOxod7.js.map} +1 -1
  71. package/dist/{task-stream-DffFXskR.js → task-stream-rxR1IsdJ.js} +4 -4
  72. package/dist/{task-stream-DffFXskR.js.map → task-stream-rxR1IsdJ.js.map} +1 -1
  73. package/dist/{tasks-CmyTWgU7.js → tasks-lzvWF__k.js} +2 -2
  74. package/dist/{tasks-CmyTWgU7.js.map → tasks-lzvWF__k.js.map} +1 -1
  75. package/dist/{telemetry-DfZNqwpb.js → telemetry-CickTk_7.js} +3 -3
  76. package/dist/{telemetry-DfZNqwpb.js.map → telemetry-CickTk_7.js.map} +1 -1
  77. package/dist/{terminal-DTJLXrQX.js → terminal-BjUFxn_x.js} +11 -11
  78. package/dist/{terminal-DTJLXrQX.js.map → terminal-BjUFxn_x.js.map} +1 -1
  79. package/dist/{tools-B4s78y8L.js → tools-MKXGXFSk.js} +6 -6
  80. package/dist/{tools-B4s78y8L.js.map → tools-MKXGXFSk.js.map} +1 -1
  81. package/dist/{wizard-abort-CE6vlOGM.js → wizard-abort-CW_C2EXr.js} +1 -1
  82. package/dist/{wizard-abort-XQFt0vkZ.js → wizard-abort-CooWEh9N.js} +3 -3
  83. package/dist/{wizard-abort-XQFt0vkZ.js.map → wizard-abort-CooWEh9N.js.map} +1 -1
  84. package/dist/{yara-hooks-gZxdqlkx.js → yara-hooks-BpngckdZ.js} +4 -4
  85. package/dist/{yara-hooks-gZxdqlkx.js.map → yara-hooks-BpngckdZ.js.map} +1 -1
  86. package/dist/yara-hooks-C-qG6EJt.js +2 -0
  87. package/package.json +1 -1
  88. package/dist/agent-runner-CK9z7-0z.js.map +0 -1
  89. package/dist/analytics-CbkGZjMp.js +0 -2
  90. package/dist/posthog-integration-BGk6dYzS.js.map +0 -1
  91. package/dist/yara-hooks-COTd_ALD.js +0 -2
@@ -1,22 +1,22 @@
1
1
  import { l as ErrorCodes } from "./errors-BSdz2lsl.js";
2
- import { $ as REMOTE_SKILLS_BASE_URL, K as POSTHOG_ORG_AI_SETTINGS_URL, L as Integration, R as OAUTH_PORTS, U as POSTHOG_DOCS_URL, Z as POSTHOG_TERMS_URL, d as relativeToInstallDir, g as SIGNUP_WIZARD_READINESS_CONFIG, l as WIZARD_LOG_FILE, p as setUI, q as POSTHOG_PRIVACY_URL, s as logToFile, v as getBlockingServiceKeys, z as OAUTH_TIMEOUT_MS } from "./debug-D5YT7Lil.js";
2
+ import { $ as REMOTE_SKILLS_BASE_URL, K as POSTHOG_ORG_AI_SETTINGS_URL, L as Integration, R as OAUTH_PORTS, U as POSTHOG_DOCS_URL, Z as POSTHOG_TERMS_URL, d as relativeToInstallDir, g as SIGNUP_WIZARD_READINESS_CONFIG, l as WIZARD_LOG_FILE, p as setUI, q as POSTHOG_PRIVACY_URL, s as logToFile, v as getBlockingServiceKeys, z as OAUTH_TIMEOUT_MS } from "./debug-BM0fZaGl.js";
3
3
  import { t as ADDITIONAL_FEATURE_LABELS } from "./wizard-session-Bki7dQhv.js";
4
- import { n as analytics } from "./analytics-DXPSL5IY.js";
5
- import { i as readProjectFile, t as IGNORED_DIRS } from "./bounded-fs-DdHuSE1X.js";
6
- import { o as extractOAuthCode, t as getOrAskForProjectData } from "./setup-utils-DeIoqwPw.js";
7
- import { t as ApiError } from "./api-CeapT_rn.js";
8
- import { i as wizardAbort } from "./wizard-abort-XQFt0vkZ.js";
9
- import { a as formatCostUsd, o as formatTokenCount } from "./agent-runner-CK9z7-0z.js";
10
- import { O as downloadSkill, k as fetchSkillMenu } from "./agent-interface-NZHof8u3.js";
11
- import { _ as AUDIT_CHECKS_KEY, b as coerceAuditChecks, g as AUDIT_CHECKS_FILE, x as getAuditChecks, y as AUDIT_SEVERITY_STYLE } from "./yara-hooks-gZxdqlkx.js";
12
- import { t as FRAMEWORK_REGISTRY } from "./registry-DbwlUbvA.js";
13
- import { T as detectProjectsWithAgent, h as Icons, m as Colors, t as SETUP_REPORT_FILE, x as getDetectedWarehouseSources } from "./posthog-integration-BGk6dYzS.js";
4
+ import { n as analytics } from "./analytics-DTyJClPr.js";
5
+ import { i as readProjectFile, t as IGNORED_DIRS } from "./bounded-fs-BWX25ixc.js";
6
+ import { o as extractOAuthCode, t as getOrAskForProjectData } from "./setup-utils-Bo3WZt3a.js";
7
+ import { t as ApiError } from "./api-j-OfJ8Dz.js";
8
+ import { i as wizardAbort } from "./wizard-abort-CooWEh9N.js";
9
+ import { a as formatCostUsd, o as formatTokenCount } from "./agent-runner-vKtpgqVI.js";
10
+ import { O as downloadSkill, k as fetchSkillMenu } from "./agent-interface-Lu7tnLr0.js";
11
+ import { _ as AUDIT_CHECKS_KEY, b as coerceAuditChecks, g as AUDIT_CHECKS_FILE, x as getAuditChecks, y as AUDIT_SEVERITY_STYLE } from "./yara-hooks-BpngckdZ.js";
12
+ import { t as FRAMEWORK_REGISTRY } from "./registry-BBdaIFWq.js";
13
+ import { T as detectProjectsWithAgent, h as Icons, m as Colors, t as SETUP_REPORT_FILE, x as getDetectedWarehouseSources } from "./posthog-integration-MDfRO911.js";
14
14
  import { A as STRIPE_SDKS, C as MANUAL_SDK_VARIANTS, D as fetchHealthIssues, O as getContentBlocks, S as MANUAL_SDK_INSTALL, T as SOURCE_MAPS_CONTEXT_KEYS, _ as detectSelfDrivingIntegrationProjects, a as useStdoutDimensions, b as DISPLAY_NAME, f as Program, g as PRICING_SHORT, h as PRICING_LONG, k as POSTHOG_SDKS, m as NO_DEFAULT_LIMIT, n as useKeyBindings, p as getProgramConfig, t as PickerMenu, v as SELF_DRIVING_INTEGRATE_PATH_KEY, y as AUTOMATABLE_VARIANTS } from "./bin.js";
15
- import { r as totalTokenCount, t as WizardStore } from "./store-BbDrhStP.js";
16
- import { A as EventPlanViewer, C as VisualizerTab, D as HNViewer, F as ConfirmationInput, L as ProgressList, M as LinkText, N as extractUrls, O as TabContainer, P as ModalOverlay, R as LoadingBox, 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 LogViewer, 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 SplitView } from "./terminal-DTJLXrQX.js";
15
+ import { r as totalTokenCount, t as WizardStore } from "./store-DhNTBWQR.js";
16
+ import { A as EventPlanViewer, C as VisualizerTab, D as HNViewer, F as ConfirmationInput, L as ProgressList, M as LinkText, N as extractUrls, O as TabContainer, P as ModalOverlay, R as LoadingBox, 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 LogViewer, 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 SplitView } from "./terminal-BjUFxn_x.js";
17
17
  import { c as namesWithStatus, d as toClientResult, l as redactSecrets, t as ALL_FEATURE_VALUES } from "./defaults-DI642M3n.js";
18
- import { t as startFileWatcher } from "./file-watcher-CQj0wp1a.js";
19
- 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-D2z2adQL.js";
18
+ import { t as startFileWatcher } from "./file-watcher-D7G4f5sP.js";
19
+ 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-BCnjUqnW.js";
20
20
  import { existsSync, readFileSync, readdirSync } from "fs";
21
21
  import path, { join } from "path";
22
22
  import { join as join$1 } from "node:path";
@@ -1288,7 +1288,7 @@ const FrameworkPicker = ({ store, onComplete }) => {
1288
1288
  })),
1289
1289
  onSelect: (value) => {
1290
1290
  const integration = Array.isArray(value) ? value[0] : value;
1291
- import("./registry-DbwlUbvA.js").then((n) => n.n).then(({ FRAMEWORK_REGISTRY }) => {
1291
+ import("./registry-BBdaIFWq.js").then((n) => n.n).then(({ FRAMEWORK_REGISTRY }) => {
1292
1292
  const config = FRAMEWORK_REGISTRY[integration];
1293
1293
  store.setFrameworkConfig(integration, config);
1294
1294
  store.setDetectedFramework(config.metadata.name);
@@ -5450,12 +5450,29 @@ const SessionTimeoutScreen = ({ store }) => {
5450
5450
  function handleAskKey(key, store) {
5451
5451
  if (key.escape) store.cancelPendingQuestion();
5452
5452
  }
5453
+ /**
5454
+ * Whether an answer would leave a required question effectively unanswered.
5455
+ *
5456
+ * The `wizard_ask` schema marks fields `required` (defaulting to true), but the
5457
+ * overlay used to submit whatever the input held — so pressing Enter on an empty
5458
+ * required credential field sent an empty string on to the agent. A blank host
5459
+ * or password is indistinguishable there from a real answer, so the warehouse
5460
+ * task ran on it, failed source creation, and dead-ended with no signal that the
5461
+ * user had in effect declined. Blocking the empty submit keeps the contract the
5462
+ * schema already advertises; Esc stays the way to skip. Optional fields
5463
+ * (`required === false`) are never blocked, and pickers always yield a value.
5464
+ */
5465
+ function isRequiredButEmpty(question, value) {
5466
+ if (question.required === false) return false;
5467
+ return Array.isArray(value) ? value.length === 0 : value.trim().length === 0;
5468
+ }
5453
5469
  const WizardAskScreen = ({ store }) => {
5454
5470
  useSyncExternalStore((cb) => store.subscribe(cb), () => store.getSnapshot());
5455
5471
  const pending = store.session.pendingQuestion;
5456
5472
  const [index, setIndex] = useState(0);
5457
5473
  const [answers, setAnswers] = useState({});
5458
5474
  const [lastPendingId, setLastPendingId] = useState(null);
5475
+ const [requiredHint, setRequiredHint] = useState(false);
5459
5476
  const [linkStatus, setLinkStatus] = useState("idle");
5460
5477
  const richLinks = pending?.richLinks ?? false;
5461
5478
  const currentPrompt = pending?.questions[index]?.prompt ?? "";
@@ -5498,6 +5515,7 @@ const WizardAskScreen = ({ store }) => {
5498
5515
  setLastPendingId(pending.id);
5499
5516
  setIndex(0);
5500
5517
  setAnswers({});
5518
+ setRequiredHint(false);
5501
5519
  return null;
5502
5520
  }
5503
5521
  const question = pending.questions[index];
@@ -5505,6 +5523,11 @@ const WizardAskScreen = ({ store }) => {
5505
5523
  const total = pending.questions.length;
5506
5524
  const progress = total > 1 ? `Question ${index + 1} of ${total}` : null;
5507
5525
  const submit = (value) => {
5526
+ if (isRequiredButEmpty(question, value)) {
5527
+ setRequiredHint(true);
5528
+ return;
5529
+ }
5530
+ setRequiredHint(false);
5508
5531
  const next = {
5509
5532
  ...answers,
5510
5533
  [question.id]: value
@@ -5569,6 +5592,13 @@ const WizardAskScreen = ({ store }) => {
5569
5592
  onSubmit: submit
5570
5593
  }, `${pending.id}:${question.id}`)
5571
5594
  }),
5595
+ requiredHint && /* @__PURE__ */ jsx(Box, {
5596
+ marginTop: 1,
5597
+ children: /* @__PURE__ */ jsxs(Text, {
5598
+ color: Colors.accent,
5599
+ children: [Icons.warning, " This field is required — type an answer, or press ESC to skip."]
5600
+ })
5601
+ }),
5572
5602
  /* @__PURE__ */ jsx(Box, {
5573
5603
  marginTop: 1,
5574
5604
  children: /* @__PURE__ */ jsxs(Text, {
@@ -5764,7 +5794,7 @@ function createMcpSuggestedPromptsServices(store) {
5764
5794
  };
5765
5795
  }
5766
5796
  async function* runProductionPromptStreaming(args) {
5767
- const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming-DOHJxT8K.js");
5797
+ const { runMcpPromptViaSdk } = await import("./mcp-prompt-streaming-Dsos09hT.js");
5768
5798
  yield* runMcpPromptViaSdk(args);
5769
5799
  }
5770
5800
  //#endregion
@@ -5957,4 +5987,4 @@ function startTUI(version, program = Program.PostHogIntegration) {
5957
5987
  //#endregion
5958
5988
  export { startTUI };
5959
5989
 
5960
- //# sourceMappingURL=start-tui-ebV_ynrs.js.map
5990
+ //# sourceMappingURL=start-tui-B1LrB7k1.js.map