@posthog/wizard 2.43.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.
Files changed (118) hide show
  1. package/dist/{add-mcp-server-to-clients-BiZmRLE6.js → add-mcp-server-to-clients-CNzZMSat.js} +5 -5
  2. package/dist/{add-mcp-server-to-clients-BiZmRLE6.js.map → add-mcp-server-to-clients-CNzZMSat.js.map} +1 -1
  3. package/dist/{agent-interface-CUaNjvqq.js → agent-interface-CF7GsdFf.js} +298 -158
  4. package/dist/agent-interface-CF7GsdFf.js.map +1 -0
  5. package/dist/{agent-runner-BuH7W62W.js → agent-runner-B0LTVFfw.js} +130 -598
  6. package/dist/agent-runner-B0LTVFfw.js.map +1 -0
  7. package/dist/{analytics-C_9Kh6J1.js → analytics-DQEuL6qS.js} +2 -2
  8. package/dist/{analytics-C_9Kh6J1.js.map → analytics-DQEuL6qS.js.map} +1 -1
  9. package/dist/analytics-YD3D38z2.js +2 -0
  10. package/dist/{api-Kgk7BFqo.js → api-uCMvDII5.js} +3 -3
  11. package/dist/{api-Kgk7BFqo.js.map → api-uCMvDII5.js.map} +1 -1
  12. package/dist/bin.js +69 -116
  13. package/dist/bin.js.map +1 -1
  14. package/dist/{ci-install-DoARcA-j.js → ci-install-Bow8-f0j.js} +4 -4
  15. package/dist/{ci-install-DoARcA-j.js.map → ci-install-Bow8-f0j.js.map} +1 -1
  16. package/dist/commandments-CyB7Icr1.js +42 -0
  17. package/dist/commandments-CyB7Icr1.js.map +1 -0
  18. package/dist/commandments-DguPfCX8.js +2 -0
  19. package/dist/{debug-CI0PLD6X.js → debug-BixHZmHv.js} +1 -1
  20. package/dist/{debug-DNEQR5DL.js → debug-DBmxx59Q.js} +42 -21
  21. package/dist/debug-DBmxx59Q.js.map +1 -0
  22. package/dist/{defaults-CeNThA-1.js → defaults-8zjNjGGi.js} +2 -2
  23. package/dist/defaults-8zjNjGGi.js.map +1 -0
  24. package/dist/{env-api-key-cjD4yfGT.js → env-api-key-AcC_tz8G.js} +1 -1
  25. package/dist/{env-api-key-cjD4yfGT.js.map → env-api-key-AcC_tz8G.js.map} +1 -1
  26. package/dist/{environment-D44UP2Nu.js → environment-kZtkp7eG.js} +3 -3
  27. package/dist/{environment-D44UP2Nu.js.map → environment-kZtkp7eG.js.map} +1 -1
  28. package/dist/{file-utils-C2PNKLhr.js → file-utils-BAhYy5vC.js} +2 -2
  29. package/dist/{file-utils-C2PNKLhr.js.map → file-utils-BAhYy5vC.js.map} +1 -1
  30. package/dist/file-watcher-BL-IRbR7.js +123 -0
  31. package/dist/file-watcher-BL-IRbR7.js.map +1 -0
  32. package/dist/{headless-ui-C3C0wWUi.js → headless-ui-DWmMyhaP.js} +5 -4
  33. package/dist/headless-ui-DWmMyhaP.js.map +1 -0
  34. package/dist/{interactive-k4xQiftO.js → interactive-Cyic0bGL.js} +2 -2
  35. package/dist/{interactive-k4xQiftO.js.map → interactive-Cyic0bGL.js.map} +1 -1
  36. package/dist/{mcp-CJn_ryMN.js → mcp-BSGmEWjt.js} +3 -3
  37. package/dist/mcp-BSGmEWjt.js.map +1 -0
  38. package/dist/{mcp-prompt-streaming-BB5nO--L.js → mcp-prompt-streaming-C227vG1X.js} +3 -3
  39. package/dist/{mcp-prompt-streaming-BB5nO--L.js.map → mcp-prompt-streaming-C227vG1X.js.map} +1 -1
  40. package/dist/{non-interactive-0x0Due8h.js → non-interactive-DQA9vn9f.js} +2 -2
  41. package/dist/{non-interactive-0x0Due8h.js.map → non-interactive-DQA9vn9f.js.map} +1 -1
  42. package/dist/orchestrator-tools-NuWONNkF.js +99 -0
  43. package/dist/orchestrator-tools-NuWONNkF.js.map +1 -0
  44. package/dist/{package-json-CDs1ZVKu.js → package-json-DCuoye-H.js} +1 -1
  45. package/dist/{package-json-CDs1ZVKu.js.map → package-json-DCuoye-H.js.map} +1 -1
  46. package/dist/{package-manager-CBRR4_i4.js → package-manager-DKtR3xzM.js} +2 -2
  47. package/dist/{package-manager-CBRR4_i4.js.map → package-manager-DKtR3xzM.js.map} +1 -1
  48. package/dist/pi-DJCln9jJ.js +603 -0
  49. package/dist/pi-DJCln9jJ.js.map +1 -0
  50. package/dist/{playground-CK617U6k.js → playground-CbEndzc8.js} +7 -8
  51. package/dist/{playground-CK617U6k.js.map → playground-CbEndzc8.js.map} +1 -1
  52. package/dist/{posthog-DwKlq0HM.js → posthog-DFyux4Vw.js} +1 -1
  53. package/dist/{posthog-DwKlq0HM.js.map → posthog-DFyux4Vw.js.map} +1 -1
  54. package/dist/{posthog-integration-qRjKkLcu.js → posthog-integration-dmWJZ8mj.js} +132 -27
  55. package/dist/posthog-integration-dmWJZ8mj.js.map +1 -0
  56. package/dist/{provisioning-BMXR8fS1.js → provisioning-CcxCry5p.js} +21 -14
  57. package/dist/provisioning-CcxCry5p.js.map +1 -0
  58. package/dist/queue-tools-Bw-AANLM.js +366 -0
  59. package/dist/queue-tools-Bw-AANLM.js.map +1 -0
  60. package/dist/{registry-CsUUdVCd.js → registry-D2V88NoC.js} +96 -18
  61. package/dist/registry-D2V88NoC.js.map +1 -0
  62. package/dist/{security-CIP3lpp6.js → security-DOtBCBvx.js} +4 -4
  63. package/dist/{security-CIP3lpp6.js.map → security-DOtBCBvx.js.map} +1 -1
  64. package/dist/{setup-utils-DkyEOBDx.js → setup-utils-Qp-u6BZk.js} +7 -7
  65. package/dist/{setup-utils-DkyEOBDx.js.map → setup-utils-Qp-u6BZk.js.map} +1 -1
  66. package/dist/{start-tui-CJlIgYjf.js → start-tui-DHa_9aiB.js} +429 -234
  67. package/dist/start-tui-DHa_9aiB.js.map +1 -0
  68. package/dist/{steps-CuNjxYsA.js → steps-D07HUQyE.js} +7 -7
  69. package/dist/{steps-CuNjxYsA.js.map → steps-D07HUQyE.js.map} +1 -1
  70. package/dist/{store-UKAJftq6.js → store-DSwsITKX.js} +30 -9
  71. package/dist/store-DSwsITKX.js.map +1 -0
  72. package/dist/{subagent-_syej145.js → subagent-Dk4K5MDa.js} +2 -2
  73. package/dist/{subagent-_syej145.js.map → subagent-Dk4K5MDa.js.map} +1 -1
  74. package/dist/task-CQnV9Qd2.js +305 -0
  75. package/dist/task-CQnV9Qd2.js.map +1 -0
  76. package/dist/{task-stream-Ne-9ZOnf.js → task-stream-B7qia9eW.js} +72 -7
  77. package/dist/task-stream-B7qia9eW.js.map +1 -0
  78. package/dist/{tasks-CUvCA1OY.js → tasks-C7BQp659.js} +2 -2
  79. package/dist/{tasks-CUvCA1OY.js.map → tasks-C7BQp659.js.map} +1 -1
  80. package/dist/{telemetry-DFYgJHH-.js → telemetry-DgahJGSx.js} +3 -3
  81. package/dist/{telemetry-DFYgJHH-.js.map → telemetry-DgahJGSx.js.map} +1 -1
  82. package/dist/{terminal-DLFgIxhg.js → terminal-Bb6tZkf-.js} +14 -14
  83. package/dist/terminal-Bb6tZkf-.js.map +1 -0
  84. package/dist/{tools-CNyhLqlK.js → tools-BJEvSUWN.js} +4 -4
  85. package/dist/{tools-CNyhLqlK.js.map → tools-BJEvSUWN.js.map} +1 -1
  86. package/dist/{types-y3HkjtSq.js → types-BRe_EzTW.js} +1 -1
  87. package/dist/{types-y3HkjtSq.js.map → types-BRe_EzTW.js.map} +1 -1
  88. package/dist/{wizard-abort-BM3pISoR.js → wizard-abort-BxtdkgI-.js} +4 -4
  89. package/dist/{wizard-abort-BM3pISoR.js.map → wizard-abort-BxtdkgI-.js.map} +1 -1
  90. package/dist/{wizard-abort-DCv08-op.js → wizard-abort-DpDmuCfA.js} +1 -1
  91. package/dist/{wizard-session-DXivb7kv.js → wizard-session-DWHe83uk.js} +1 -1
  92. package/dist/{wizard-session-BudcixsA.js → wizard-session-tp4Zdbwl.js} +3 -3
  93. package/dist/wizard-session-tp4Zdbwl.js.map +1 -0
  94. package/dist/{wizard-tools-BcuRxp1A.js → wizard-tools-Dg8o2lcH.js} +64 -387
  95. package/dist/wizard-tools-Dg8o2lcH.js.map +1 -0
  96. package/dist/yara-hooks-CncaWRuC.js +2 -0
  97. package/dist/{yara-hooks-GIs-R_g1.js → yara-hooks-pw86rZ8y.js} +4 -4
  98. package/dist/{yara-hooks-GIs-R_g1.js.map → yara-hooks-pw86rZ8y.js.map} +1 -1
  99. package/package.json +1 -1
  100. package/dist/agent-interface-CUaNjvqq.js.map +0 -1
  101. package/dist/agent-runner-BuH7W62W.js.map +0 -1
  102. package/dist/analytics-o-WJHD8Z.js +0 -2
  103. package/dist/debug-DNEQR5DL.js.map +0 -1
  104. package/dist/defaults-CeNThA-1.js.map +0 -1
  105. package/dist/headless-ui-C3C0wWUi.js.map +0 -1
  106. package/dist/mcp-CJn_ryMN.js.map +0 -1
  107. package/dist/posthog-integration-qRjKkLcu.js.map +0 -1
  108. package/dist/provisioning-BMXR8fS1.js.map +0 -1
  109. package/dist/registry-CsUUdVCd.js.map +0 -1
  110. package/dist/start-tui-CJlIgYjf.js.map +0 -1
  111. package/dist/store-UKAJftq6.js.map +0 -1
  112. package/dist/task-stream-Ne-9ZOnf.js.map +0 -1
  113. package/dist/terminal-DLFgIxhg.js.map +0 -1
  114. package/dist/wizard-session-BudcixsA.js.map +0 -1
  115. package/dist/wizard-tools-BcuRxp1A.js.map +0 -1
  116. package/dist/wizard-ui-WZ48rUgr.js +0 -15
  117. package/dist/wizard-ui-WZ48rUgr.js.map +0 -1
  118. package/dist/yara-hooks-DKbfESYf.js +0 -2
@@ -1,8 +1,8 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B_-DWIq7.js";
2
- import { f as getUI } from "./debug-DNEQR5DL.js";
3
- import { a as createVersionBucket, c as detectAllPackageManagers, i as tryGetPackageJson } from "./setup-utils-DkyEOBDx.js";
4
- import { n as getInstalledPackageVersion, r as hasDeclaredDependency, t as getDeclaredVersion } from "./package-json-CDs1ZVKu.js";
5
- import { a as gradlePackageManager, c as getPackageManagerName$1, i as detectPythonPackageManagers, l as getPythonVersion, n as composerPackageManager, o as swiftPackageManager, r as detectNodePackageManagers, s as detectPackageManager$1, t as bundlerPackageManager, u as getPythonVersionBucket } from "./package-manager-CBRR4_i4.js";
2
+ import { f as getUI } from "./debug-DBmxx59Q.js";
3
+ import { a as createVersionBucket, c as detectAllPackageManagers, i as tryGetPackageJson } from "./setup-utils-Qp-u6BZk.js";
4
+ import { n as getInstalledPackageVersion, r as hasDeclaredDependency, t as getDeclaredVersion } from "./package-json-DCuoye-H.js";
5
+ import { a as gradlePackageManager, c as getPackageManagerName$1, i as detectPythonPackageManagers, l as getPythonVersion, n as composerPackageManager, o as swiftPackageManager, r as detectNodePackageManagers, s as detectPackageManager$1, t as bundlerPackageManager, u as getPythonVersionBucket } from "./package-manager-DKtR3xzM.js";
6
6
  import * as semver from "semver";
7
7
  import { major, minVersion } from "semver";
8
8
  import path from "path";
@@ -10,19 +10,6 @@ import * as path$1 from "node:path";
10
10
  import * as fs$1 from "node:fs";
11
11
  import fg from "fast-glob";
12
12
  import fs from "fs/promises";
13
- //#region src/lib/framework-config.ts
14
- /**
15
- * Default package installation instruction used when frameworks don't
16
- * provide their own. Frameworks with specific needs (e.g., Swift SPM,
17
- * Composer) override this in their config.
18
- */
19
- const DEFAULT_PACKAGE_INSTALLATION = "Use the detect_package_manager tool to determine the package manager. Do not manually edit package.json; the package manager handles it automatically.";
20
- const PYTHON_PACKAGE_INSTALLATION = "Use the detect_package_manager tool to determine the package manager. If the detected tool manages dependencies directly (e.g. uv add, poetry add), use it — it will update the manifest automatically. If using pip, you must also add the dependency to requirements.txt or the appropriate manifest file.";
21
- /**
22
- * Shared spinner message for all frameworks
23
- */
24
- const SPINNER_MESSAGE = "Writing your PostHog setup with events, error capture and more...";
25
- //#endregion
26
13
  //#region src/frameworks/nextjs/utils.ts
27
14
  const getNextJsVersionBucket = createVersionBucket();
28
15
  const IGNORE_PATTERNS$9 = [
@@ -810,6 +797,19 @@ const ASTRO_AGENT_CONFIG = {
810
797
  }
811
798
  };
812
799
  //#endregion
800
+ //#region src/lib/framework-config.ts
801
+ /**
802
+ * Default package installation instruction used when frameworks don't
803
+ * provide their own. Frameworks with specific needs (e.g., Swift SPM,
804
+ * Composer) override this in their config.
805
+ */
806
+ const DEFAULT_PACKAGE_INSTALLATION = "Use the detect_package_manager tool to determine the package manager. Do not manually edit package.json; the package manager handles it automatically.";
807
+ const PYTHON_PACKAGE_INSTALLATION = "Use the detect_package_manager tool to determine the package manager. If the detected tool manages dependencies directly (e.g. uv add, poetry add), use it — it will update the manifest automatically. If using pip, you must also add the dependency to requirements.txt or the appropriate manifest file.";
808
+ /**
809
+ * Shared spinner message for all frameworks
810
+ */
811
+ const SPINNER_MESSAGE = "Writing your PostHog setup with events, error capture and more...";
812
+ //#endregion
813
813
  //#region src/frameworks/django/utils.ts
814
814
  const IGNORE_PATTERNS$5 = [
815
815
  "**/node_modules/**",
@@ -2071,6 +2071,83 @@ const SWIFT_AGENT_CONFIG = {
2071
2071
  }
2072
2072
  };
2073
2073
  //#endregion
2074
+ //#region src/frameworks/kmp/kmp-wizard-agent.ts
2075
+ const KMP_AGENT_CONFIG = {
2076
+ metadata: {
2077
+ name: "Kotlin Multiplatform",
2078
+ integration: "kmp",
2079
+ beta: true,
2080
+ docsUrl: "https://posthog.com/docs/libraries/kmp",
2081
+ preRunNotice: "The PostHog Kotlin Multiplatform SDK is in early access (0.x pre-release). The API may change between minor versions."
2082
+ },
2083
+ detection: {
2084
+ packageName: "posthog-kmp",
2085
+ packageDisplayName: "Kotlin Multiplatform",
2086
+ usesPackageJson: false,
2087
+ getVersion: () => void 0,
2088
+ detectPackageManager: gradlePackageManager,
2089
+ detect: async (options) => {
2090
+ const { installDir } = options;
2091
+ const buildFiles = await fg(["**/build.gradle", "**/build.gradle.kts"], {
2092
+ cwd: installDir,
2093
+ ignore: [
2094
+ "**/build/**",
2095
+ "**/node_modules/**",
2096
+ "**/.gradle/**"
2097
+ ]
2098
+ });
2099
+ for (const file of buildFiles) {
2100
+ const content = fs$1.readFileSync(path$1.join(installDir, file), "utf-8");
2101
+ if (content.includes("kotlin(\"multiplatform\")") || content.includes("org.jetbrains.kotlin.multiplatform") || content.includes("kotlin-multiplatform")) return true;
2102
+ }
2103
+ return (await fg("**/src/commonMain", {
2104
+ cwd: installDir,
2105
+ onlyDirectories: true,
2106
+ ignore: [
2107
+ "**/build/**",
2108
+ "**/node_modules/**",
2109
+ "**/.gradle/**"
2110
+ ]
2111
+ })).length > 0;
2112
+ }
2113
+ },
2114
+ environment: {
2115
+ uploadToHosting: false,
2116
+ getEnvVars: (apiKey, host) => ({
2117
+ POSTHOG_PROJECT_TOKEN: apiKey,
2118
+ POSTHOG_HOST: host
2119
+ })
2120
+ },
2121
+ analytics: { getTags: () => ({}) },
2122
+ prompts: {
2123
+ projectTypeDetection: "This is a Kotlin Multiplatform (KMP) project. Look for a build.gradle.kts (or build.gradle) that applies the Kotlin Multiplatform plugin (kotlin(\"multiplatform\") or org.jetbrains.kotlin.multiplatform) and a shared module with a src/commonMain source set.",
2124
+ packageInstallation: "Add the PostHog KMP SDK to the shared module's commonMain dependencies in build.gradle.kts: within the kotlin { sourceSets { ... } } block, add implementation(\"com.posthog:posthog-kmp:<VERSION>\") to commonMain.dependencies. Match the existing dependency format (Groovy vs Kotlin DSL).",
2125
+ getAdditionalContextLines: () => [
2126
+ "Framework docs ID: kmp (use posthog://docs/frameworks/kmp for documentation)",
2127
+ "Initialize once, early in the app lifecycle, from shared code. All PostHog APIs live in the com.posthog.kmp package.",
2128
+ "Setup call: PostHog.setup(config = PostHogConfig(apiKey = \"<POSTHOG_PROJECT_TOKEN>\", host = \"<POSTHOG_HOST>\"), context = PostHogContext())",
2129
+ "PostHogContext is platform-specific: on Android pass the Application via PostHogContext(application); on iOS and Web use the no-argument PostHogContext().",
2130
+ "Imports: com.posthog.kmp.PostHog, com.posthog.kmp.PostHogConfig, com.posthog.kmp.PostHogContext."
2131
+ ]
2132
+ },
2133
+ ui: {
2134
+ successMessage: "PostHog integration complete",
2135
+ estimatedDurationMinutes: 5,
2136
+ getOutroChanges: () => [
2137
+ "Analyzed your Kotlin Multiplatform project structure",
2138
+ "Added the PostHog KMP SDK to your shared module",
2139
+ "Configured PostHog initialization in your shared code",
2140
+ "Added event capture and user identification"
2141
+ ],
2142
+ getOutroNextSteps: () => [
2143
+ "Wire up the platform-specific PostHogContext for each target (Android/iOS/Web)",
2144
+ "Build and run your app to see PostHog in action",
2145
+ "Visit your PostHog dashboard to see incoming events",
2146
+ "Check out the PostHog KMP docs for feature flags, session replay, and more"
2147
+ ]
2148
+ }
2149
+ };
2150
+ //#endregion
2074
2151
  //#region src/frameworks/android/utils.ts
2075
2152
  const IGNORE_PATTERNS$2 = [
2076
2153
  "**/build/**",
@@ -2898,6 +2975,7 @@ const FRAMEWORK_REGISTRY = {
2898
2975
  ["fastapi"]: FASTAPI_AGENT_CONFIG,
2899
2976
  ["laravel"]: LARAVEL_AGENT_CONFIG,
2900
2977
  ["sveltekit"]: SVELTEKIT_AGENT_CONFIG,
2978
+ ["kmp"]: KMP_AGENT_CONFIG,
2901
2979
  ["swift"]: SWIFT_AGENT_CONFIG,
2902
2980
  ["android"]: ANDROID_AGENT_CONFIG,
2903
2981
  ["rails"]: RAILS_AGENT_CONFIG,
@@ -2909,4 +2987,4 @@ const FRAMEWORK_REGISTRY = {
2909
2987
  //#endregion
2910
2988
  export { SPINNER_MESSAGE as i, registry_exports as n, DEFAULT_PACKAGE_INSTALLATION as r, FRAMEWORK_REGISTRY as t };
2911
2989
 
2912
- //# sourceMappingURL=registry-CsUUdVCd.js.map
2990
+ //# sourceMappingURL=registry-D2V88NoC.js.map