The Open Standard for Generative UI
Integrate Reo tracking for docs and CLI (#915)
Zahle Khana616073ad9b1
diff --git a/docs/app/providers.tsx b/docs/app/providers.tsxindex 0c1d0f549..ee2dbb2ab 100644--- a/docs/app/providers.tsx+++ b/docs/app/providers.tsx@@ -4,11 +4,23 @@ import { loadPostHog } from "@/lib/analytics";import { addThesysLinkAttribution } from "@/lib/thesys-link-attribution";import { useEffect } from "react";+let reoPromise: Promise<void> | undefined;+export function PHProvider({ children }: { children: React.ReactNode }) {useEffect(() => {let posthogDistinctId: string | undefined;let posthogSessionId: string | undefined;+ const clientID = process.env.NEXT_PUBLIC_REO_CLIENT_ID?.trim();+ if (clientID) {+ reoPromise ??=+ // @ts-expect-error reodotdev does not publish TypeScript declarations.+ import("reodotdev")+ .then(({ loadReoScript }) => loadReoScript({ clientID }))+ .then((reo: { init(config: { clientID: string }): void }) => reo.init({ clientID }))+ .catch(() => {});+ }+const load = () => {void loadPostHog().then((posthog) => {diff --git a/docs/content/docs/api-reference/cli.mdx b/docs/content/docs/api-reference/cli.mdxindex 3f84f1cab..11d7e261e 100644--- a/docs/content/docs/api-reference/cli.mdx+++ b/docs/content/docs/api-reference/cli.mdx@@ -335,6 +335,13 @@ immediate-start selection, and best-effort dev-command start and result events.contain status, duration, exit code, and signal—not project paths, command output, code, orenvironment values. Use `--no-telemetry` or `DO_NOT_TRACK=1` to disable collection.+Package-install tracking is enabled by default and is separate from command telemetry. Disable it+for an installation with `PACKAGE_TRACKER_ANALYTICS=false`:++```bash+PACKAGE_TRACKER_ANALYTICS=false npm install @openuidev/cli+```+## See also<Cards>diff --git a/docs/package.json b/docs/package.jsonindex 7b3a77fa0..7c955778e 100644--- a/docs/package.json+++ b/docs/package.json@@ -41,6 +41,7 @@"prism-react-renderer": "^2.4.1","react": "^19.2.4","react-dom": "^19.2.4",+ "reodotdev": "^1.1.0","tailwind-merge": "^3.4.1","zod": "^4.3.6","zustand": "4.5.7"diff --git a/packages/openui-cli/package.json b/packages/openui-cli/package.jsonindex 1f0b5fcb2..8b8d2f9cc 100644--- a/packages/openui-cli/package.json+++ b/packages/openui-cli/package.json@@ -1,6 +1,6 @@{"name": "@openuidev/cli",- "version": "0.2.3",+ "version": "0.2.4","description": "CLI for OpenUI — scaffold generative UI chat apps and generate LLM system prompts from component libraries","bin": {"openui": "dist/index.js"@@ -58,6 +58,7 @@"esbuild": "^0.25.10","open": "^10.1.0","openid-client": "^6.1.7",- "posthog-node": "^5.35.6"+ "posthog-node": "^5.35.6",+ "reo-census": "^1.2.8"}}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 53e34e1ad..17552946e 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -145,6 +145,9 @@ importers:react-dom:specifier: ^19.2.4version: 19.2.4([email protected])+ reodotdev:+ specifier: ^1.1.0+ version: 1.1.0tailwind-merge:specifier: ^3.4.1version: 3.6.0@@ -1752,6 +1755,9 @@ importers:posthog-node:specifier: ^5.35.6version: 5.46.1([email protected])+ reo-census:+ specifier: ^1.2.8+ version: 1.2.9devDependencies:'@types/cross-spawn':specifier: ^6.0.6@@ -16300,6 +16306,13 @@ packages:resolution: {integrity: sha512-iIhggPkhW3hFImKtB10w0dz4EZbs28mV/dmbcYVonWEJ6UGHHpP+bFZnTh6GNWJONg5m+U56JrL+8IxZRdgWjw==}+ resolution: {integrity: sha512-QPnAyRk6gUK9h2XJy9yTXiA91+LEHahmzbRdfb6DigAoe1S/nKg2LXc+/m3//HGyMPAkCFVz/FJJ8YrKm5IrXw==}+ engines: {node: '>=12.0.0'}++ resolution: {integrity: sha512-BeIlYk59p4Gw+zPHJj249xPBQ0wHfI8NsksVFRTdPLkPXDSYyn6IBvbR0s7pELK9qk3p79UBcBWP84IsYLsvbg==}+resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}engines: {node: '>=0.10.0'}@@ -37654,6 +37667,12 @@ snapshots:+ [email protected]: {}++ dependencies:+ reo-census: 1.2.9+