diff --git a/apps/cockpit/instrumentation-client.ts b/apps/cockpit/instrumentation-client.ts
index ae24d3687..3c472d616 100644
--- a/apps/cockpit/instrumentation-client.ts
+++ b/apps/cockpit/instrumentation-client.ts
@@ -6,9 +6,8 @@ import { shouldCaptureAnalytics } from './src/lib/analytics/properties';
const token = process.env.NEXT_PUBLIC_COCKPIT_POSTHOG_TOKEN;
const captureLocal = process.env.NEXT_PUBLIC_COCKPIT_CAPTURE_LOCAL === 'true';
const host = typeof window === 'undefined' ? undefined : window.location.host;
-const doNotTrack = typeof navigator !== 'undefined' && navigator.doNotTrack === '1';
-if (shouldCaptureAnalytics({ token, captureLocal, host, doNotTrack })) {
+if (shouldCaptureAnalytics({ token, captureLocal, host })) {
posthog.init(token!, {
api_host: process.env.NEXT_PUBLIC_COCKPIT_POSTHOG_HOST ?? 'https://us.i.posthog.com',
persistence: 'memory',
diff --git a/apps/cockpit/project.json b/apps/cockpit/project.json
index ce545c51b..232f456c7 100644
--- a/apps/cockpit/project.json
+++ b/apps/cockpit/project.json
@@ -57,7 +57,7 @@
"options": {
"commands": [
"npx nx serve cockpit --port 4201",
- "npx nx serve cockpit-langgraph-streaming-angular:serve:cockpit --port 4300",
+ "npx nx run cockpit-langgraph-streaming-angular:serve:cockpit --port 4300",
"cd cockpit/langgraph/streaming/python && source $HOME/.local/bin/env 2>/dev/null; uv sync && uv run langgraph dev --port 8123"
],
"parallel": true
@@ -68,7 +68,7 @@
"options": {
"commands": [
"npx nx serve cockpit --port 4201",
- "npx nx serve cockpit-langgraph-persistence-angular:serve:cockpit --port 4301",
+ "npx nx run cockpit-langgraph-persistence-angular:serve:cockpit --port 4301",
"cd cockpit/langgraph/persistence/python && source $HOME/.local/bin/env 2>/dev/null; uv sync && uv run langgraph dev --port 8123"
],
"parallel": true
@@ -79,7 +79,7 @@
"options": {
"commands": [
"npx nx serve cockpit --port 4201",
- "npx nx serve cockpit-langgraph-interrupts-angular:serve:cockpit --port 4302",
+ "npx nx run cockpit-langgraph-interrupts-angular:serve:cockpit --port 4302",
"cd cockpit/langgraph/interrupts/python && source $HOME/.local/bin/env 2>/dev/null; uv sync && uv run langgraph dev --port 8123"
],
"parallel": true
@@ -90,7 +90,7 @@
"options": {
"commands": [
"npx nx serve cockpit --port 4201",
- "npx nx serve cockpit-langgraph-memory-angular:serve:cockpit --port 4303",
+ "npx nx run cockpit-langgraph-memory-angular:serve:cockpit --port 4303",
"cd cockpit/langgraph/memory/python && source $HOME/.local/bin/env 2>/dev/null; uv sync && uv run langgraph dev --port 8123"
],
"parallel": true
@@ -101,7 +101,7 @@
"options": {
"commands": [
"npx nx serve cockpit --port 4201",
- "npx nx serve cockpit-langgraph-durable-execution-angular:serve:cockpit --port 4304",
+ "npx nx run cockpit-langgraph-durable-execution-angular:serve:cockpit --port 4304",
"cd cockpit/langgraph/durable-execution/python && source $HOME/.local/bin/env 2>/dev/null; uv sync && uv run langgraph dev --port 8123"
],
"parallel": true
@@ -112,7 +112,7 @@
"options": {
"commands": [
"npx nx serve cockpit --port 4201",
- "npx nx serve cockpit-langgraph-subgraphs-angular:serve:cockpit --port 4305",
+ "npx nx run cockpit-langgraph-subgraphs-angular:serve:cockpit --port 4305",
"cd cockpit/langgraph/subgraphs/python && source $HOME/.local/bin/env 2>/dev/null; uv sync && uv run langgraph dev --port 8123"
],
"parallel": true
@@ -123,7 +123,7 @@
"options": {
"commands": [
"npx nx serve cockpit --port 4201",
- "npx nx serve cockpit-langgraph-time-travel-angular:serve:cockpit --port 4306",
+ "npx nx run cockpit-langgraph-time-travel-angular:serve:cockpit --port 4306",
"cd cockpit/langgraph/time-travel/python && source $HOME/.local/bin/env 2>/dev/null; uv sync && uv run langgraph dev --port 8123"
],
"parallel": true
@@ -134,7 +134,7 @@
"options": {
"commands": [
"npx nx serve cockpit --port 4201",
- "npx nx serve cockpit-langgraph-deployment-runtime-angular:serve:cockpit --port 4307",
+ "npx nx run cockpit-langgraph-deployment-runtime-angular:serve:cockpit --port 4307",
"cd cockpit/langgraph/deployment-runtime/python && source $HOME/.local/bin/env 2>/dev/null; uv sync && uv run langgraph dev --port 8123"
],
"parallel": true
@@ -145,7 +145,7 @@
"options": {
"commands": [
"npx nx serve cockpit --port 4201",
- "npx nx serve cockpit-deep-agents-planning-angular:serve:cockpit --port 4310",
+ "npx nx run cockpit-deep-agents-planning-angular:serve:cockpit --port 4310",
"cd cockpit/deep-agents/planning/python && source $HOME/.local/bin/env 2>/dev/null; uv sync && uv run langgraph dev --port 8123"
],
"parallel": true
@@ -156,7 +156,7 @@
"options": {
"commands": [
"npx nx serve cockpit --port 4201",
- "npx nx serve cockpit-deep-agents-filesystem-angular:serve:cockpit --port 4311",
+ "npx nx run cockpit-deep-agents-filesystem-angular:serve:cockpit --port 4311",
"cd cockpit/deep-agents/filesystem/python && source $HOME/.local/bin/env 2>/dev/null; uv sync && uv run langgraph dev --port 8123"
],
"parallel": true
@@ -167,7 +167,7 @@
"options": {
"commands": [
"npx nx serve cockpit --port 4201",
- "npx nx serve cockpit-deep-agents-subagents-angular:serve:cockpit --port 4312",
+ "npx nx run cockpit-deep-agents-subagents-angular:serve:cockpit --port 4312",
"cd cockpit/deep-agents/subagents/python && source $HOME/.local/bin/env 2>/dev/null; uv sync && uv run langgraph dev --port 8123"
],
"parallel": true
@@ -178,7 +178,7 @@
"options": {
"commands": [
"npx nx serve cockpit --port 4201",
- "npx nx serve cockpit-deep-agents-memory-angular:serve:cockpit --port 4313",
+ "npx nx run cockpit-deep-agents-memory-angular:serve:cockpit --port 4313",
"cd cockpit/deep-agents/memory/python && source $HOME/.local/bin/env 2>/dev/null; uv sync && uv run langgraph dev --port 8123"
],
"parallel": true
@@ -189,7 +189,7 @@
"options": {
"commands": [
"npx nx serve cockpit --port 4201",
- "npx nx serve cockpit-deep-agents-skills-angular:serve:cockpit --port 4314",
+ "npx nx run cockpit-deep-agents-skills-angular:serve:cockpit --port 4314",
"cd cockpit/deep-agents/skills/python && source $HOME/.local/bin/env 2>/dev/null; uv sync && uv run langgraph dev --port 8123"
],
"parallel": true
@@ -200,7 +200,7 @@
"options": {
"commands": [
"npx nx serve cockpit --port 4201",
- "npx nx serve cockpit-deep-agents-sandboxes-angular:serve:cockpit --port 4315",
+ "npx nx run cockpit-deep-agents-sandboxes-angular:serve:cockpit --port 4315",
"cd cockpit/deep-agents/sandboxes/python && source $HOME/.local/bin/env 2>/dev/null; uv sync && uv run langgraph dev --port 8123"
],
"parallel": true
diff --git a/apps/cockpit/scripts/serve-example.ts b/apps/cockpit/scripts/serve-example.ts
index f129c7ba0..3f4c13a27 100644
--- a/apps/cockpit/scripts/serve-example.ts
+++ b/apps/cockpit/scripts/serve-example.ts
@@ -30,12 +30,12 @@ process.on('SIGTERM', cleanup);
run('cockpit', 'npx nx serve cockpit --port 4201', '36');
if (allMode) {
- capabilities.forEach((c) => run(c.id, `npx nx serve ${c.angularProject}:serve:cockpit --port ${c.port}`, '33'));
+ capabilities.forEach((c) => run(c.id, `npx nx run ${c.angularProject}:serve:cockpit --port ${c.port}`, '33'));
console.log('\nš Starting cockpit + all 14 examples\n');
} else {
const cap = findCapability(capabilityArg!);
if (!cap) { console.error(`Unknown: ${capabilityArg}`); process.exit(1); }
- run(cap.id, `npx nx serve ${cap.angularProject}:serve:cockpit --port ${cap.port}`, '33');
+ run(cap.id, `npx nx run ${cap.angularProject}:serve:cockpit --port ${cap.port}`, '33');
run(`${cap.id}-py`, `cd ${cap.pythonDir} && source $HOME/.local/bin/env 2>/dev/null; uv sync && uv run langgraph dev --port 8123`, '35');
console.log(`\nš ${cap.id}: cockpit=4201 angular=${cap.port} langgraph=8123\n`);
}
diff --git a/apps/cockpit/src/app/layout.tsx b/apps/cockpit/src/app/layout.tsx
index b28ceeb08..4a7a8cf3b 100644
--- a/apps/cockpit/src/app/layout.tsx
+++ b/apps/cockpit/src/app/layout.tsx
@@ -2,6 +2,7 @@ import type { ReactNode } from 'react';
import { cookies } from 'next/headers';
import { cssVars, ThemeProvider } from '@ngaf/ui-react';
import type { Theme } from '@ngaf/design-tokens';
+import { AnalyticsBootstrap } from '../components/analytics-bootstrap';
import './cockpit.css';
export const metadata = {
@@ -38,6 +39,7 @@ export default async function RootLayout({ children }: RootLayoutProps) {
color: 'var(--ds-text-primary)',
}}
>
+
{children}