@posthog/wizard 2.42.0 → 2.43.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.
Files changed (78) hide show
  1. package/dist/{add-mcp-server-to-clients-fGAJ6wRG.js → add-mcp-server-to-clients-BiZmRLE6.js} +4 -4
  2. package/dist/{add-mcp-server-to-clients-fGAJ6wRG.js.map → add-mcp-server-to-clients-BiZmRLE6.js.map} +1 -1
  3. package/dist/{agent-interface-dPcuJv8g.js → agent-interface-CUaNjvqq.js} +6 -6
  4. package/dist/{agent-interface-dPcuJv8g.js.map → agent-interface-CUaNjvqq.js.map} +1 -1
  5. package/dist/{agent-runner-3bDJ_WLl.js → agent-runner-BuH7W62W.js} +39 -17
  6. package/dist/agent-runner-BuH7W62W.js.map +1 -0
  7. package/dist/{analytics-jQRtyqzG.js → analytics-C_9Kh6J1.js} +2 -2
  8. package/dist/{analytics-jQRtyqzG.js.map → analytics-C_9Kh6J1.js.map} +1 -1
  9. package/dist/analytics-o-WJHD8Z.js +2 -0
  10. package/dist/{api-Bweisj9K.js → api-Kgk7BFqo.js} +3 -3
  11. package/dist/{api-Bweisj9K.js.map → api-Kgk7BFqo.js.map} +1 -1
  12. package/dist/bin.js +57 -39
  13. package/dist/bin.js.map +1 -1
  14. package/dist/{ci-install-BoATzVVs.js → ci-install-DoARcA-j.js} +4 -4
  15. package/dist/{ci-install-BoATzVVs.js.map → ci-install-DoARcA-j.js.map} +1 -1
  16. package/dist/{debug-DCQHRXu9.js → debug-CI0PLD6X.js} +1 -1
  17. package/dist/{debug--QPXcpzv.js → debug-DNEQR5DL.js} +9 -4
  18. package/dist/debug-DNEQR5DL.js.map +1 -0
  19. package/dist/{environment-Xdauxvph.js → environment-D44UP2Nu.js} +3 -3
  20. package/dist/{environment-Xdauxvph.js.map → environment-D44UP2Nu.js.map} +1 -1
  21. package/dist/{file-utils-BJhGBl-W.js → file-utils-C2PNKLhr.js} +2 -2
  22. package/dist/{file-utils-BJhGBl-W.js.map → file-utils-C2PNKLhr.js.map} +1 -1
  23. package/dist/{headless-ui-XdCxxQ0b.js → headless-ui-C3C0wWUi.js} +2 -2
  24. package/dist/{headless-ui-XdCxxQ0b.js.map → headless-ui-C3C0wWUi.js.map} +1 -1
  25. package/dist/{interactive-CwtUeGJT.js → interactive-k4xQiftO.js} +2 -2
  26. package/dist/{interactive-CwtUeGJT.js.map → interactive-k4xQiftO.js.map} +1 -1
  27. package/dist/{mcp-DIuzSJ8f.js → mcp-CJn_ryMN.js} +2 -2
  28. package/dist/{mcp-DIuzSJ8f.js.map → mcp-CJn_ryMN.js.map} +1 -1
  29. package/dist/{mcp-prompt-streaming-CCS2EkfY.js → mcp-prompt-streaming-BB5nO--L.js} +3 -3
  30. package/dist/{mcp-prompt-streaming-CCS2EkfY.js.map → mcp-prompt-streaming-BB5nO--L.js.map} +1 -1
  31. package/dist/{non-interactive-Cjb5uLLn.js → non-interactive-0x0Due8h.js} +2 -2
  32. package/dist/{non-interactive-Cjb5uLLn.js.map → non-interactive-0x0Due8h.js.map} +1 -1
  33. package/dist/{package-manager-D_05Bmr0.js → package-manager-CBRR4_i4.js} +2 -2
  34. package/dist/{package-manager-D_05Bmr0.js.map → package-manager-CBRR4_i4.js.map} +1 -1
  35. package/dist/{playground-BtB7RvUT.js → playground-CK617U6k.js} +6 -6
  36. package/dist/{playground-BtB7RvUT.js.map → playground-CK617U6k.js.map} +1 -1
  37. package/dist/{posthog-integration-Cw1QDMFi.js → posthog-integration-qRjKkLcu.js} +14 -13
  38. package/dist/{posthog-integration-Cw1QDMFi.js.map → posthog-integration-qRjKkLcu.js.map} +1 -1
  39. package/dist/{provisioning-CmpiiTaR.js → provisioning-BMXR8fS1.js} +3 -3
  40. package/dist/{provisioning-CmpiiTaR.js.map → provisioning-BMXR8fS1.js.map} +1 -1
  41. package/dist/{registry-DPriFJQI.js → registry-CsUUdVCd.js} +4 -4
  42. package/dist/{registry-DPriFJQI.js.map → registry-CsUUdVCd.js.map} +1 -1
  43. package/dist/{security-DJrWWO0M.js → security-CIP3lpp6.js} +4 -4
  44. package/dist/{security-DJrWWO0M.js.map → security-CIP3lpp6.js.map} +1 -1
  45. package/dist/{setup-utils-C8yipMUt.js → setup-utils-DkyEOBDx.js} +7 -7
  46. package/dist/{setup-utils-C8yipMUt.js.map → setup-utils-DkyEOBDx.js.map} +1 -1
  47. package/dist/{start-tui-BMZL7mKh.js → start-tui-CJlIgYjf.js} +19 -16
  48. package/dist/start-tui-CJlIgYjf.js.map +1 -0
  49. package/dist/{steps-Dhq5VReA.js → steps-CuNjxYsA.js} +7 -7
  50. package/dist/{steps-Dhq5VReA.js.map → steps-CuNjxYsA.js.map} +1 -1
  51. package/dist/{store-Bu1xO0_5.js → store-UKAJftq6.js} +4 -4
  52. package/dist/{store-Bu1xO0_5.js.map → store-UKAJftq6.js.map} +1 -1
  53. package/dist/{subagent-mVY-kDU0.js → subagent-_syej145.js} +2 -2
  54. package/dist/{subagent-mVY-kDU0.js.map → subagent-_syej145.js.map} +1 -1
  55. package/dist/{tasks-2af2kDE3.js → tasks-CUvCA1OY.js} +2 -2
  56. package/dist/{tasks-2af2kDE3.js.map → tasks-CUvCA1OY.js.map} +1 -1
  57. package/dist/{telemetry-wGk3UsDw.js → telemetry-DFYgJHH-.js} +3 -3
  58. package/dist/{telemetry-wGk3UsDw.js.map → telemetry-DFYgJHH-.js.map} +1 -1
  59. package/dist/{terminal-CnYduoIp.js → terminal-DLFgIxhg.js} +10 -10
  60. package/dist/{terminal-CnYduoIp.js.map → terminal-DLFgIxhg.js.map} +1 -1
  61. package/dist/{tools-BTq5sLH9.js → tools-CNyhLqlK.js} +4 -4
  62. package/dist/{tools-BTq5sLH9.js.map → tools-CNyhLqlK.js.map} +1 -1
  63. package/dist/{wizard-abort-CSMnla3D.js → wizard-abort-BM3pISoR.js} +3 -3
  64. package/dist/{wizard-abort-CSMnla3D.js.map → wizard-abort-BM3pISoR.js.map} +1 -1
  65. package/dist/{wizard-abort-D8Lj609C.js → wizard-abort-DCv08-op.js} +1 -1
  66. package/dist/{wizard-tools-BBLQk1YC.js → wizard-tools-BcuRxp1A.js} +5 -3
  67. package/dist/wizard-tools-BcuRxp1A.js.map +1 -0
  68. package/dist/wizard-ui-WZ48rUgr.js.map +1 -1
  69. package/dist/yara-hooks-DKbfESYf.js +2 -0
  70. package/dist/{yara-hooks-Ciy8d0ok.js → yara-hooks-GIs-R_g1.js} +3 -3
  71. package/dist/{yara-hooks-Ciy8d0ok.js.map → yara-hooks-GIs-R_g1.js.map} +1 -1
  72. package/package.json +1 -1
  73. package/dist/agent-runner-3bDJ_WLl.js.map +0 -1
  74. package/dist/analytics-B33Hy7zS.js +0 -2
  75. package/dist/debug--QPXcpzv.js.map +0 -1
  76. package/dist/start-tui-BMZL7mKh.js.map +0 -1
  77. package/dist/wizard-tools-BBLQk1YC.js.map +0 -1
  78. package/dist/yara-hooks-B42cYxIF.js +0 -2
@@ -1,14 +1,14 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B_-DWIq7.js";
2
- import { A as HAIKU_MODEL, B as POSTHOG_FLAG_HEADER_PREFIX, D as GPT5_4_MODEL, I as OPUS_MODEL, O as GPT5_MINI_MODEL, U as POSTHOG_PROPERTY_HEADER_PREFIX, Y as SONNET_5_MODEL, _ as evaluateWizardReadiness, a as getLogFilePath, c as WIZARD_BENCHMARK_FILE, ct as getSkillsBaseUrl, dt as RUN_SURFACE, et as WIZARD_ORCHESTRATOR_FLAG_KEY, f as getUI, ft as runtimeEnv, g as SIGNUP_WIZARD_READINESS_CONFIG, h as SERVICE_LABELS, i as enableDebugLogs, it as WIZARD_REMARK_EVENT_NAME, k as GPT5_MODEL, l as WIZARD_LOG_FILE, nt as WIZARD_PI_MODEL_FLAG_KEY, o as initLogFile, ot as WIZARD_USER_AGENT, s as logToFile, st as WIZARD_USE_PI_HARNESS_FLAG_KEY, t as configureLogFile, tt as WIZARD_PI_EFFORT_FLAG_KEY, v as getBlockingServiceKeys, w as DEFAULT_AGENT_MODEL } from "./debug--QPXcpzv.js";
3
- import { a as ciExcludedTaskTypes, n as analytics, r as groupsFromUser } from "./analytics-jQRtyqzG.js";
4
- import { t as getOrAskForProjectData } from "./setup-utils-C8yipMUt.js";
2
+ import { $ as SONNET_5_MODEL, A as GPT5_6_SOL_MODEL, B as OPUS_MODEL, D as GPT5_4_MODEL, M as GPT5_MINI_MODEL, N as GPT5_MODEL, O as GPT5_5_MODEL, P as HAIKU_MODEL, W as POSTHOG_FLAG_HEADER_PREFIX, _ as evaluateWizardReadiness, a as getLogFilePath, at as WIZARD_PI_EFFORT_FLAG_KEY, c as WIZARD_BENCHMARK_FILE, ct as WIZARD_REMARK_EVENT_NAME, dt as WIZARD_USE_PI_HARNESS_FLAG_KEY, f as getUI, ft as getSkillsBaseUrl, g as SIGNUP_WIZARD_READINESS_CONFIG, gt as runtimeEnv, h as SERVICE_LABELS, ht as RUN_SURFACE, i as enableDebugLogs, it as WIZARD_ORCHESTRATOR_FLAG_KEY, j as GPT5_6_TERRA_MODEL, k as GPT5_6_LUNA_MODEL, l as WIZARD_LOG_FILE, o as initLogFile, ot as WIZARD_PI_MODEL_FLAG_KEY, q as POSTHOG_PROPERTY_HEADER_PREFIX, s as logToFile, t as configureLogFile, ut as WIZARD_USER_AGENT, v as getBlockingServiceKeys, w as DEFAULT_AGENT_MODEL } from "./debug-DNEQR5DL.js";
3
+ import { a as ciExcludedTaskTypes, n as analytics, r as groupsFromUser } from "./analytics-C_9Kh6J1.js";
4
+ import { t as getOrAskForProjectData } from "./setup-utils-DkyEOBDx.js";
5
5
  import "./wizard-session-BudcixsA.js";
6
- import { i as wizardAbort, n as registerCleanup, t as WizardError } from "./wizard-abort-CSMnla3D.js";
7
- import { n as isNonInteractiveEnvironment } from "./environment-Xdauxvph.js";
8
- import { c as classifySettingsConflicts, f as AgentOutputSignals, h as getWizardCommandments, i as runAgent$1, m as REMARK_INSTRUCTION, n as buildRunTags, o as backupAndFixClaudeSettings, p as AgentSignals, r as initializeAgent, s as checkAllSettingsConflicts, u as restoreClaudeSettings } from "./agent-interface-dPcuJv8g.js";
9
- import { a as installSkillById, d as TaskStatus, f as createWizardAskBridge, i as fetchSkillMenu, l as QUEUE_DIR_NAME, u as QueueStore } from "./wizard-tools-BBLQk1YC.js";
10
- import { a as flushScanReport, o as formatScanReport, p as writeScanReport, s as formatYaraAbortMessage } from "./yara-hooks-Ciy8d0ok.js";
11
- import { r as detectNodePackageManagers } from "./package-manager-D_05Bmr0.js";
6
+ import { i as wizardAbort, n as registerCleanup, t as WizardError } from "./wizard-abort-BM3pISoR.js";
7
+ import { n as isNonInteractiveEnvironment } from "./environment-D44UP2Nu.js";
8
+ import { c as classifySettingsConflicts, f as AgentOutputSignals, h as getWizardCommandments, i as runAgent$1, m as REMARK_INSTRUCTION, n as buildRunTags, o as backupAndFixClaudeSettings, p as AgentSignals, r as initializeAgent, s as checkAllSettingsConflicts, u as restoreClaudeSettings } from "./agent-interface-CUaNjvqq.js";
9
+ import { a as installSkillById, d as TaskStatus, f as createWizardAskBridge, i as fetchSkillMenu, l as QUEUE_DIR_NAME, u as QueueStore } from "./wizard-tools-BcuRxp1A.js";
10
+ import { a as flushScanReport, o as formatScanReport, p as writeScanReport, s as formatYaraAbortMessage } from "./yara-hooks-GIs-R_g1.js";
11
+ import { r as detectNodePackageManagers } from "./package-manager-CBRR4_i4.js";
12
12
  import fs, { existsSync, rmSync } from "fs";
13
13
  import * as path$1 from "path";
14
14
  import path from "path";
@@ -270,6 +270,22 @@ const MODEL_CAPABILITIES = {
270
270
  reasoning: true,
271
271
  thinkingLevel: "low"
272
272
  },
273
+ [GPT5_6_LUNA_MODEL]: {
274
+ reasoning: true,
275
+ thinkingLevel: "low"
276
+ },
277
+ [GPT5_6_TERRA_MODEL]: {
278
+ reasoning: true,
279
+ thinkingLevel: "low"
280
+ },
281
+ [GPT5_6_SOL_MODEL]: {
282
+ reasoning: true,
283
+ thinkingLevel: "low"
284
+ },
285
+ [GPT5_5_MODEL]: {
286
+ reasoning: true,
287
+ thinkingLevel: "low"
288
+ },
273
289
  [GPT5_MINI_MODEL]: {
274
290
  reasoning: true,
275
291
  thinkingLevel: "medium"
@@ -353,11 +369,12 @@ const PI_RUNTIME_NOTES = [
353
369
  "- Explore with the `ls`, `find`, and `grep` tools (list a directory, find files by name, search file contents). `read` is for FILES only — reading a directory errors. NEVER inspect files through `bash`; `ls`, `find`, `cat`, `sed`, `head`, `xxd`, `python -c` and the like are all blocked. To see the exact bytes of a file (e.g. whitespace before a precise `edit`), use `read`.",
354
370
  "- `bash` is ONLY for install/build/typecheck/lint/format commands the project itself defines (its package manager and scripts). Run installs synchronously and wait (e.g. `npm install <pkg>`); `&`, `&&`, and pipes are all blocked. Do not invoke standalone toolchain binaries the project has not configured (ad-hoc formatters, version probes) — they are blocked.",
355
371
  "- `bash` already runs in the project root, and its full output is returned to you. Run commands BARE: no `cd` into the project, no `--dir`/`-w`/workspace flags, no `2>&1` or `| tail` for output. Just `pnpm add <pkg>` or `pnpm typecheck` — adding any of those wrappers gets the command blocked.",
372
+ "- NEVER run a project-wide `format` or `lint --fix` script (e.g. `prettier --write .`, `eslint --fix`, a bare `pnpm format`). They rewrite files you never touched — reordering imports, changing quotes, reflowing whitespace — producing a huge diff of unrelated churn that violates the minimal-edits rule. Format or lint-fix ONLY the specific files you changed; if the project offers no way to scope its script to those files, skip it and keep your own edits clean by hand. Running a build or typecheck to verify is fine; reformatting untouched files is not.",
356
373
  "- If a `bash` command is blocked, do NOT retry it or a reworded variant — the fence is deterministic and will block it again. Change approach: inspect with `read`/`grep`, fix the `edit` and continue, or skip a step that is not essential. Retrying blocked commands only wastes turns.",
357
374
  "- If you get stuck on something outside your control — a package install that keeps failing, a command you are not permitted to run, or a fix outside the scope of this integration — do NOT spiral retrying it. Note it in the setup report for the user to resolve, and move on with the rest of the work.",
358
375
  "- A `[YARA]` block from the security scanner is on YOUR side — it caught a real problem in the edit you just tried (PII in a `capture()`, a hardcoded secret or host URL). Read the block reason, understand exactly what it flagged, and change the CODE to comply — e.g. a PII block means move that field off the event and onto the person via `identify()`/`$set`, keeping the event itself. Retrying the same edit will just block again, and dropping the step loses the instrumentation — so fix it to satisfy the scanner, then continue.",
359
376
  "- Call `load_skill_menu` once to choose the skill, then `install_skill`. Do not call `load_skill_menu` again this session.",
360
- "- Follow the skill's steps in order. Finish the SDK setup — install it, import it at the top of the module, and INITIALIZE it at the framework's entry point for every runtime the integration targets (typically both client and server) — BEFORE adding any event capture. A capture against an uninitialized SDK silently no-ops, so initialization comes first. Never guard a capture behind a runtime \"if the SDK happens to be installed\" check or a dynamic `require`; that ships an uninitialized SDK and no events fire. Do not jump ahead to the fix/revise step just to get a build passing.",
377
+ "- Follow the skill's steps in order. Finish the SDK setup — install it, import it at the top of the module, and INITIALIZE it at the framework's entry point for every runtime the integration targets (typically both client and server) — BEFORE adding any event capture. A capture against an uninitialized SDK silently no-ops, so initialization comes first. If you're stuck and cannot install an SDK, add capture calls and add a clear note at the top of the integration report. Never guard a capture behind a runtime \"if the SDK happens to be installed\" check or a dynamic `require`; that ships an uninitialized SDK and no events fire. Do not jump ahead to the fix/revise step just to get a build passing.",
361
378
  "- Never write a PostHog URL or token as a literal in source (e.g. 'https://us.i.posthog.com') — it is blocked. Read them from environment variables (process.env.POSTHOG_HOST, os.environ['POSTHOG_HOST'], etc.).",
362
379
  "- To inspect or change a project's `.env` files, go straight to the wizard-tools MCP: `check_env_keys` to see which keys are present, `set_env_values` to write them. A plain `read`, `edit`, or `write` of any `.env*` file is blocked — reach for those tools first rather than discovering the block.",
363
380
  "- The PostHog MCP is a SINGLE tool named `posthog_exec` that takes a `command` string. The grammar: `tools` (list the catalog), `search <regex>` (find a tool by name), `info <tool>` (show a tool’s schema), `call <tool> <json>` (run it with a JSON argument object). Run `info <tool>` once before your first `call` to that tool so you pass exactly the arguments it expects. Do not guess tool names — reach them through `search`/`info`.",
@@ -566,7 +583,7 @@ const piBackend = {
566
583
  message: "pi: gateway model could not be resolved"
567
584
  };
568
585
  logToFile(`[pi] gateway ${baseUrl} model ${modelId} (${api})`);
569
- const { createSecurityExtension } = await import("./security-DJrWWO0M.js");
586
+ const { createSecurityExtension } = await import("./security-CIP3lpp6.js");
570
587
  const security = createSecurityExtension({
571
588
  disallowedTools: programConfig.disallowedTools,
572
589
  triageAuth: {
@@ -575,13 +592,13 @@ const piBackend = {
575
592
  },
576
593
  workingDirectory: session.installDir
577
594
  });
578
- const { prewarmYaraScanner } = await import("./yara-hooks-B42cYxIF.js");
595
+ const { prewarmYaraScanner } = await import("./yara-hooks-DKbfESYf.js");
579
596
  prewarmYaraScanner();
580
597
  const extensionFactories = [security.factory];
581
598
  let mcpCleanup;
582
599
  let mcpInstructions;
583
600
  try {
584
- const { setupPostHogMcp } = await import("./mcp-DIuzSJ8f.js");
601
+ const { setupPostHogMcp } = await import("./mcp-CJn_ryMN.js");
585
602
  const mcp = await setupPostHogMcp({
586
603
  agentDir: getAgentDir(),
587
604
  mcpUrl: boot.credentials.host.mcpUrl,
@@ -606,9 +623,9 @@ const piBackend = {
606
623
  extensionFactories
607
624
  });
608
625
  await resourceLoader.reload();
609
- const { createWizardPiTools } = await import("./tools-BTq5sLH9.js");
610
- const { createWizardPiTaskTools } = await import("./tasks-2af2kDE3.js");
611
- const { createDispatchAgentTool } = await import("./subagent-mVY-kDU0.js");
626
+ const { createWizardPiTools } = await import("./tools-CNyhLqlK.js");
627
+ const { createWizardPiTaskTools } = await import("./tasks-CUvCA1OY.js");
628
+ const { createDispatchAgentTool } = await import("./subagent-_syej145.js");
612
629
  const wizardTaskTools = createWizardPiTaskTools();
613
630
  const scrubbedBash = withMode(createBashToolDefinition(session.installDir, { spawnHook: (ctx) => ({
614
631
  ...ctx,
@@ -786,6 +803,10 @@ const PI_MODEL_FLAG_VARIANTS = {
786
803
  "gpt-5": GPT5_MODEL,
787
804
  "gpt-5-4": GPT5_4_MODEL,
788
805
  "gpt-5-mini": GPT5_MINI_MODEL,
806
+ "gpt-5-5": GPT5_5_MODEL,
807
+ "gpt-5-6-luna": GPT5_6_LUNA_MODEL,
808
+ "gpt-5-6-terra": GPT5_6_TERRA_MODEL,
809
+ "gpt-5-6-sol": GPT5_6_SOL_MODEL,
789
810
  "sonnet-4-6": DEFAULT_AGENT_MODEL,
790
811
  "sonnet-5": SONNET_5_MODEL
791
812
  };
@@ -1874,6 +1895,7 @@ async function runLinearProgram(session, config, programConfig, boot, composed =
1874
1895
  const askBridge = shouldDisableAsk(session) ? void 0 : createWizardAskBridge({
1875
1896
  getSource: () => session.skillId ?? config.integrationLabel,
1876
1897
  showQuestion: (q) => getUI().requestQuestion(q),
1898
+ cancelQuestion: () => getUI().cancelPendingQuestion(),
1877
1899
  richLinks: config.richLinks ?? false,
1878
1900
  timeoutMs: config.askTimeoutMs
1879
1901
  });
@@ -2809,4 +2831,4 @@ var agent_runner_exports = /* @__PURE__ */ __exportAll({ runAgent: () => runAgen
2809
2831
  //#endregion
2810
2832
  export { formatTokenCount as a, formatCostUsd as i, runAgent as n, authenticate as o, computeTokenCostUsd as r, agent_runner_exports as t };
2811
2833
 
2812
- //# sourceMappingURL=agent-runner-3bDJ_WLl.js.map
2834
+ //# sourceMappingURL=agent-runner-BuH7W62W.js.map