{
  "generated_at": "2026-04-28T23:58:28.693Z",
  "system": {
    "id": "topolo-platform",
    "name": "Topolo Platform",
    "slug": "topolo-platform",
    "kind": "platform",
    "summary": "Shared platform concepts spanning multi-context identity, zero-to-many org and household memberships, entitlements, owner-scoped billing boundaries, API keys, service registration, deployment, and observability.",
    "aliases": [],
    "lifecycle": "active",
    "last_verified": "2026-04-29",
    "owners": [
      "platform"
    ],
    "repo_paths": [
      "PlatformApplications/TopoloAuth",
      "PlatformApplications/TopoloOne",
      "PlatformApplications/TopoloDocs",
      "PlatformApplications/TopoloCloudControl",
      "PlatformApplications/packages/topolo-ui-kit"
    ],
    "service_ids": [],
    "visibility": "public",
    "api_contract": {
      "type": "curated",
      "source": "PlatformApplications/TopoloDocs/src/content/public/platform",
      "notes": "Canonical platform behavior is documented directly in the docs monorepo, including the separation between Topolo identity, personal plus household context, organization membership, service entitlement, launcher eligibility, owner-scoped billing, and docs validation of Auth service catalog coverage."
    },
    "primary_hosts": [
      "https://docs.topolo.app"
    ],
    "doc_paths": [
      "platform/architecture",
      "platform/api-keys",
      "internal/platform/identity-access-entitlements",
      "internal/platform/auth-and-identity",
      "internal/platform/security-assurance",
      "internal/platform/isolated-installations",
      "internal/platform/api-key-resource-bindings",
      "internal/platform/design-language",
      "internal/platform/topolo-ui-kit",
      "internal/platform/mobile-experience-rollout"
    ],
    "security_assurance": {
      "risk_tier": "critical",
      "auth_boundary": "Platform-wide Auth, service registration, docs, deployment, and operational governance boundaries.",
      "tenant_isolation": "mixed",
      "external_inputs": [
        "browser",
        "api",
        "webhook",
        "callback",
        "queue",
        "scheduled_task",
        "third_party_app",
        "ai_agent_action",
        "cli",
        "operator_tool"
      ],
      "sensitive_data": [
        "identity",
        "org_data",
        "payment",
        "provider_credentials",
        "customer_content",
        "telemetry"
      ],
      "last_security_review": "2026-04-16",
      "security_review_status": "in_progress",
      "pentest_status": "not_started",
      "evidence_doc": "internal/platform/security-assurance"
    },
    "dependencies": [
      "topolo-auth",
      "topolo-one"
    ],
    "public_hub_url": "/systems/topolo-platform",
    "internal_hub_url": null,
    "application_api_url": null,
    "generated_openapi_url": null,
    "machine_urls": {
      "system": "/machine/systems/topolo-platform.json",
      "application": null
    }
  },
  "docs": {
    "public": [
      {
        "id": "applications/auth.mdx",
        "title": "Topolo Auth",
        "summary": "Public overview of identity, service registration, API keys, and permission ownership across the platform.",
        "audience": "public",
        "tags": [
          "identity",
          "auth",
          "api-keys"
        ],
        "url": "/applications/auth.mdx",
        "last_verified": "2026-04-28"
      },
      {
        "id": "applications/catalog.mdx",
        "title": "Application Catalog",
        "summary": "Platform-wide inventory of the Topolo application portfolio and where each product currently stands in docs coverage.",
        "audience": "public",
        "tags": [
          "applications",
          "inventory",
          "platform"
        ],
        "url": "/applications/catalog.mdx",
        "last_verified": "2026-04-28"
      },
      {
        "id": "applications/learn.mdx",
        "title": "TopoloLearn",
        "summary": "Public overview of the Topolo-native multi-tenant learning platform for branded education businesses, cohort delivery, assessment, and certification.",
        "audience": "public",
        "tags": [
          "learning",
          "multi-tenant",
          "assessment",
          "certification"
        ],
        "url": "/applications/learn.mdx",
        "last_verified": "2026-04-28"
      },
      {
        "id": "applications/nexus.mdx",
        "title": "Topolo Nexus",
        "summary": "Public overview of Nexus as the platform gateway for metered third-party API usage across Topolo applications.",
        "audience": "public",
        "tags": [
          "ai",
          "gateway",
          "usage",
          "platform"
        ],
        "url": "/applications/nexus.mdx",
        "last_verified": "2026-04-28"
      },
      {
        "id": "guides/authentication.mdx",
        "title": "Authentication",
        "summary": "How authentication and authorization flow through Topolo Auth and downstream services.",
        "audience": "public",
        "tags": [
          "auth",
          "identity",
          "authorization"
        ],
        "url": "/guides/authentication.mdx",
        "last_verified": "2026-04-21"
      },
      {
        "id": "guides/introduction.mdx",
        "title": "Introduction",
        "summary": "Overview of the Topolo documentation platform, what is considered canonical, and where to start.",
        "audience": "public",
        "tags": [
          "platform",
          "onboarding",
          "canonical"
        ],
        "url": "/guides/introduction.mdx",
        "last_verified": "2026-04-07"
      },
      {
        "id": "guides/quick-start.mdx",
        "title": "Quick Start",
        "summary": "Fast onboarding path for developers integrating with Topolo services.",
        "audience": "public",
        "tags": [
          "onboarding",
          "auth",
          "api-keys"
        ],
        "url": "/guides/quick-start.mdx",
        "last_verified": "2026-04-07"
      },
      {
        "id": "guides/third-party-auth-integration.mdx",
        "title": "Third-Party Auth Integration",
        "summary": "Canonical guide for external developers integrating with Topolo Auth without relying on first-party repo docs.",
        "audience": "public",
        "tags": [
          "auth",
          "integration",
          "third-party"
        ],
        "url": "/guides/third-party-auth-integration.mdx",
        "last_verified": "2026-04-23"
      },
      {
        "id": "platform/api-keys.mdx",
        "title": "API Keys",
        "summary": "Central API key model, scope ownership, and resource binding behavior across Topolo services.",
        "audience": "public",
        "tags": [
          "api-keys",
          "security",
          "platform"
        ],
        "url": "/platform/api-keys.mdx",
        "last_verified": "2026-04-07"
      },
      {
        "id": "platform/architecture.mdx",
        "title": "Platform Architecture",
        "summary": "Top-level platform shape, authority boundaries, and how the unified documentation platform maps onto the codebase.",
        "audience": "public",
        "tags": [
          "architecture",
          "platform",
          "systems"
        ],
        "url": "/platform/architecture.mdx",
        "last_verified": "2026-04-10"
      }
    ],
    "internal": [],
    "runbooks": []
  },
  "authority": {
    "owners": [
      "platform"
    ],
    "repo_paths": [
      "PlatformApplications/TopoloAuth",
      "PlatformApplications/TopoloOne",
      "PlatformApplications/TopoloDocs",
      "PlatformApplications/TopoloCloudControl",
      "PlatformApplications/packages/topolo-ui-kit"
    ],
    "service_ids": [],
    "dependencies": [
      "topolo-auth",
      "topolo-one"
    ],
    "aliases": []
  },
  "interfaces": {
    "contract_type": "curated",
    "contract_source": "PlatformApplications/TopoloDocs/src/content/public/platform",
    "contract_source_exists": true,
    "openapi": null,
    "readme": {
      "path": "PlatformApplications/TopoloAuth/README.md",
      "intro": [
        "Canonical documentation for Topolo Auth lives in `PlatformApplications/TopoloDocs`.",
        "Use this repository for implementation only. Local product and operational docs have been retired in favor of the docs application."
      ],
      "headings": [
        "Topolo Auth"
      ],
      "routeHighlights": [],
      "commandHighlights": []
    }
  },
  "auth": {
    "depends_on_topolo_auth": true,
    "api_key_scopes": [],
    "service_permissions": []
  },
  "runtime": {
    "primary_hosts": [
      "https://docs.topolo.app"
    ],
    "repo_entries": [
      "PlatformApplications/TopoloAuth/README.md",
      "PlatformApplications/TopoloAuth/ROADMAP_HANDOFF_2026-03-31_topoloauth.md",
      "PlatformApplications/TopoloAuth/catalog/",
      "PlatformApplications/TopoloAuth/cloudcontrol-deployment-report-topolo-auth.json",
      "PlatformApplications/TopoloAuth/migration.config.ts",
      "PlatformApplications/TopoloAuth/package-lock.json",
      "PlatformApplications/TopoloAuth/package.json",
      "PlatformApplications/TopoloAuth/packages/",
      "PlatformApplications/TopoloAuth/schema-evolution-local.sql",
      "PlatformApplications/TopoloAuth/schema-evolution.sql",
      "PlatformApplications/TopoloAuth/schema-oauth.sql",
      "PlatformApplications/TopoloAuth/schema-update.sql",
      "PlatformApplications/TopoloAuth/schema.sql",
      "PlatformApplications/TopoloAuth/scripts/",
      "PlatformApplications/TopoloAuth/src/",
      "PlatformApplications/TopoloAuth/test/",
      "PlatformApplications/TopoloAuth/topolo.cloudcontrol.json",
      "PlatformApplications/TopoloAuth/wrangler.toml",
      "PlatformApplications/TopoloOne/AGENTS.md",
      "PlatformApplications/TopoloOne/README.md"
    ],
    "wrangler_surfaces": [
      {
        "path": "PlatformApplications/TopoloAuth/wrangler.toml",
        "observabilityEnabled": true,
        "environments": [
          "production"
        ],
        "routes": [
          "auth.stg.topolo.us",
          "auth.topolo.app"
        ],
        "vars": [
          "AUTH_ACCESS_TOKEN_TTL_SECONDS",
          "AUTH_ALLOW_REFRESH_TOKEN_IN_BODY",
          "AUTH_CLIENT_COMPAT_ALLOWLIST",
          "AUTH_COOKIE_DOMAIN",
          "AUTH_COOKIE_MODE_DEFAULT",
          "AUTH_LEGACY_TOKEN_DELIVERY_ENABLED",
          "AUTH_MAGIC_LINK_ENABLED",
          "AUTH_MFA_CHALLENGE_TTL_SECONDS",
          "AUTH_REFRESH_COOKIE_NAME",
          "AUTH_REFRESH_SKIP_SESSION_CHECK",
          "AUTH_REFRESH_TOKEN_TTL_SECONDS",
          "AUTH_SESSION_TTL_SECONDS",
          "ENVIRONMENT",
          "GITHUB_CLIENT_ID",
          "NEXUS_GATEWAY_URL",
          "TOPOLO_NOTIFY_URL"
        ],
        "bindings": [
          {
            "kind": "d1",
            "binding": "DB",
            "sourcePath": "PlatformApplications/TopoloAuth/wrangler.toml",
            "target": "7b2ede91-717b-47c5-ae8a-4d2f195a4672"
          },
          {
            "kind": "d1",
            "binding": "DB",
            "environment": "production",
            "sourcePath": "PlatformApplications/TopoloAuth/wrangler.toml",
            "target": "9f2c0e78-738a-41c0-95bf-9968ff369926"
          }
        ],
        "cronTriggers": [
          "0 3 * * *"
        ],
        "workerName": "topolo-auth-staging",
        "main": "src/index.js",
        "compatibilityDate": "2026-04-10"
      },
      {
        "path": "PlatformApplications/TopoloOne/apps/ai-chat-rag/wrangler.toml",
        "observabilityEnabled": true,
        "environments": [
          "preview",
          "production"
        ],
        "routes": [],
        "vars": [
          "ALLOWED_ORIGINS",
          "LOG_LEVEL",
          "NEXUS_GATEWAY_URL",
          "NODE_ENV",
          "SERVICE_NAME"
        ],
        "bindings": [
          {
            "kind": "kv",
            "binding": "CHAT_CACHE",
            "sourcePath": "PlatformApplications/TopoloOne/apps/ai-chat-rag/wrangler.toml",
            "target": "5ee16c92ffe34626aacbe45b94e416fe"
          },
          {
            "kind": "kv",
            "binding": "CHAT_CACHE",
            "environment": "preview",
            "sourcePath": "PlatformApplications/TopoloOne/apps/ai-chat-rag/wrangler.toml",
            "target": "5ee16c92ffe34626aacbe45b94e416fe"
          },
          {
            "kind": "kv",
            "binding": "CHAT_CACHE",
            "environment": "production",
            "sourcePath": "PlatformApplications/TopoloOne/apps/ai-chat-rag/wrangler.toml",
            "target": "5ee16c92ffe34626aacbe45b94e416fe"
          }
        ],
        "cronTriggers": [],
        "workerName": "ai-chat-rag",
        "main": "dist/index.js",
        "compatibilityDate": "2026-04-10",
        "buildCommand": "pnpm --filter @topolo/ai-chat-rag build",
        "assetsDirectory": "./public"
      },
      {
        "path": "PlatformApplications/TopoloOne/apps/dashboard-web/wrangler.toml",
        "observabilityEnabled": true,
        "environments": [],
        "routes": [],
        "vars": [
          "AUTH_API_URL",
          "VITE_API_URL",
          "VITE_AUTH_URL",
          "VITE_P2P_API_URL",
          "VITE_STORE_API_BASE_URL",
          "VITE_TOPOLO_AUTH_URL"
        ],
        "bindings": [],
        "cronTriggers": [],
        "workerName": "topoloone",
        "compatibilityDate": "2026-04-10"
      },
      {
        "path": "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
        "observabilityEnabled": true,
        "environments": [
          "preview",
          "staging",
          "production"
        ],
        "routes": [
          "one.stg.topolo.us",
          "one.topolo.app/*"
        ],
        "vars": [
          "ALLOWED_ORIGINS",
          "AUTH_API_URL",
          "DASHBOARD_APP_ORIGIN",
          "LOG_LEVEL",
          "NODE_ENV",
          "SERVICE_NAME"
        ],
        "bindings": [
          {
            "kind": "d1",
            "binding": "ONECLICK_DB",
            "sourcePath": "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
            "target": "ace6619b-0dae-4248-870b-71561d9087e2"
          },
          {
            "kind": "kv",
            "binding": "ONECLICK_KV",
            "sourcePath": "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
            "target": "53140b1879254915bfb46179f09d197b"
          },
          {
            "kind": "d1",
            "binding": "ONECLICK_DB",
            "environment": "preview",
            "sourcePath": "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
            "target": "ace6619b-0dae-4248-870b-71561d9087e2"
          },
          {
            "kind": "kv",
            "binding": "ONECLICK_KV",
            "environment": "preview",
            "sourcePath": "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
            "target": "a4ed16d4573d45b8a05eefa54f18eb5f"
          },
          {
            "kind": "d1",
            "binding": "ONECLICK_DB",
            "environment": "staging",
            "sourcePath": "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
            "target": "b068feb5-e36f-4b40-a980-2d43a82f4778"
          },
          {
            "kind": "kv",
            "binding": "ONECLICK_KV",
            "environment": "staging",
            "sourcePath": "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
            "target": "45c47c1f450b40fda41a7ce941e9e845"
          },
          {
            "kind": "d1",
            "binding": "ONECLICK_DB",
            "environment": "production",
            "sourcePath": "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
            "target": "ace6619b-0dae-4248-870b-71561d9087e2"
          },
          {
            "kind": "kv",
            "binding": "ONECLICK_KV",
            "environment": "production",
            "sourcePath": "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
            "target": "a4ed16d4573d45b8a05eefa54f18eb5f"
          }
        ],
        "cronTriggers": [],
        "workerName": "topoloone-worker",
        "main": "dist/index.js",
        "compatibilityDate": "2026-04-10",
        "buildCommand": "pnpm run build",
        "assetsDirectory": "./public"
      },
      {
        "path": "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
        "observabilityEnabled": true,
        "environments": [
          "staging"
        ],
        "routes": [
          "stg.topolo.us"
        ],
        "vars": [
          "ENVIRONMENT",
          "NEXT_PUBLIC_AUTH_URL",
          "NEXT_PUBLIC_DEVELOPER_PORTAL_URL",
          "NEXT_PUBLIC_DOCS_URL",
          "NEXT_PUBLIC_ONE_URL",
          "NEXT_PUBLIC_SIGNUP_MODE",
          "NEXT_PUBLIC_SITE_URL",
          "NEXUS_GATEWAY_URL",
          "TOPOLO_ONE_BILLING_URL"
        ],
        "bindings": [
          {
            "kind": "kv",
            "binding": "WAITLIST_KV",
            "sourcePath": "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
            "target": "97ef5229c1574541bb7d5dd6b437d5b6"
          },
          {
            "kind": "kv",
            "binding": "BOOKING_KV",
            "sourcePath": "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
            "target": "b45b9707d5984639b03f42e3f9e42fcb"
          },
          {
            "kind": "kv",
            "binding": "SUBS_KV",
            "sourcePath": "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
            "target": "5cd7bce0ea88411d857169ea9ef46c2a"
          },
          {
            "kind": "d1",
            "binding": "ONECLICK_DB",
            "sourcePath": "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
            "target": "ace6619b-0dae-4248-870b-71561d9087e2"
          },
          {
            "kind": "kv",
            "binding": "WAITLIST_KV",
            "environment": "staging",
            "sourcePath": "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
            "target": "2fed68e530b94c2c8ab1e74b998a8c73"
          },
          {
            "kind": "kv",
            "binding": "BOOKING_KV",
            "environment": "staging",
            "sourcePath": "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
            "target": "dee1938ea8754510b9ede1bf1e8f4bf9"
          },
          {
            "kind": "kv",
            "binding": "SUBS_KV",
            "environment": "staging",
            "sourcePath": "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
            "target": "d1bf35da79c64095a49296a9b7100931"
          },
          {
            "kind": "d1",
            "binding": "ONECLICK_DB",
            "environment": "staging",
            "sourcePath": "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
            "target": "b068feb5-e36f-4b40-a980-2d43a82f4778"
          }
        ],
        "cronTriggers": [],
        "workerName": "topoloone-website",
        "compatibilityDate": "2026-04-10",
        "main": "worker/index.js",
        "assetsDirectory": "out"
      }
    ],
    "packages": [
      {
        "path": "PlatformApplications/TopoloAuth/package.json",
        "name": "topolo-auth",
        "description": "Authentication service for Topolo MDM multi-tenant system",
        "scripts": [
          "dev",
          "build",
          "test",
          "deploy",
          "deploy:staging",
          "deploy:production",
          "deploy:dry-run",
          "bootstrap",
          "local-dev",
          "remote-dev",
          "seed-test-data",
          "setup-oauth",
          "catalog:bootstrap",
          "catalog:generate",
          "catalog:check",
          "validate:catalog"
        ],
        "scriptCommands": [
          {
            "name": "dev",
            "command": "wrangler dev"
          },
          {
            "name": "build",
            "command": "wrangler deploy --dry-run --outdir .wrangler/build"
          },
          {
            "name": "test",
            "command": "node --test"
          },
          {
            "name": "deploy",
            "command": "wrangler deploy"
          },
          {
            "name": "deploy:staging",
            "command": "wrangler deploy"
          },
          {
            "name": "deploy:production",
            "command": "wrangler deploy --env production"
          },
          {
            "name": "deploy:dry-run",
            "command": "wrangler deploy --dry-run --outdir .wrangler/build"
          },
          {
            "name": "bootstrap",
            "command": "node scripts/bootstrap.js"
          },
          {
            "name": "local-dev",
            "command": "node scripts/local-dev.js"
          },
          {
            "name": "remote-dev",
            "command": "node scripts/local-dev.js --remote"
          },
          {
            "name": "seed-test-data",
            "command": "node scripts/seed-test-data.js"
          },
          {
            "name": "setup-oauth",
            "command": "node scripts/setup-oauth.js"
          },
          {
            "name": "catalog:bootstrap",
            "command": "node scripts/bootstrap-service-manifests.mjs"
          },
          {
            "name": "catalog:generate",
            "command": "node scripts/generate-service-catalog-sql.mjs"
          },
          {
            "name": "catalog:check",
            "command": "node scripts/generate-service-catalog-sql.mjs --check"
          },
          {
            "name": "validate:catalog",
            "command": "npm run catalog:check && node scripts/validate-service-catalog.mjs"
          }
        ]
      },
      {
        "path": "PlatformApplications/TopoloAuth/packages/topolo-auth-client/package.json",
        "name": "@topolo/auth-client",
        "description": "Shared authentication client for Topolo applications",
        "scripts": [
          "build",
          "dev",
          "typecheck"
        ],
        "scriptCommands": [
          {
            "name": "build",
            "command": "tsup src/index.ts --format esm,cjs --dts"
          },
          {
            "name": "dev",
            "command": "tsup src/index.ts --format esm,cjs --dts --watch"
          },
          {
            "name": "typecheck",
            "command": "tsc --noEmit"
          }
        ]
      },
      {
        "path": "PlatformApplications/TopoloOne/apps/ai-chat-rag/package.json",
        "name": "@topolo/ai-chat-rag",
        "scripts": [
          "dev",
          "start",
          "build",
          "deploy",
          "deploy:dry-run",
          "test",
          "test:ci",
          "test:miniflare",
          "cf-typegen",
          "clean",
          "lint",
          "type-check",
          "typecheck"
        ],
        "scriptCommands": [
          {
            "name": "dev",
            "command": "wrangler dev --port 8687"
          },
          {
            "name": "start",
            "command": "wrangler dev --port 8687"
          },
          {
            "name": "build",
            "command": "esbuild src/index.ts --bundle --outfile=dist/index.js --format=esm --platform=browser --target=es2022"
          },
          {
            "name": "deploy",
            "command": "wrangler deploy"
          },
          {
            "name": "deploy:dry-run",
            "command": "wrangler deploy --dry-run --outdir .wrangler/build"
          },
          {
            "name": "test",
            "command": "vitest"
          },
          {
            "name": "test:ci",
            "command": "vitest run"
          },
          {
            "name": "test:miniflare",
            "command": "miniflare src/index.ts --modules --compatibility-date=2025-07-01"
          },
          {
            "name": "cf-typegen",
            "command": "wrangler types"
          },
          {
            "name": "clean",
            "command": "rm -rf dist"
          },
          {
            "name": "lint",
            "command": "eslint src --ext .ts"
          },
          {
            "name": "type-check",
            "command": "tsc --noEmit"
          },
          {
            "name": "typecheck",
            "command": "tsc --noEmit"
          }
        ]
      },
      {
        "path": "PlatformApplications/TopoloOne/apps/dashboard-web/package.json",
        "name": "@topolo/dashboard-web",
        "description": "Topolo SSO Dashboard Web Application",
        "scripts": [
          "dev",
          "build",
          "build:staging",
          "preview",
          "lint",
          "lint:fix",
          "test",
          "clean",
          "deploy:check",
          "deploy",
          "deploy:staging"
        ],
        "scriptCommands": [
          {
            "name": "dev",
            "command": "vite"
          },
          {
            "name": "build",
            "command": "tsc && vite build --mode production"
          },
          {
            "name": "build:staging",
            "command": "env VITE_PUBLIC_URL=https://topoloone-dashboard-staging.pages.dev VITE_API_URL=https://one.stg.topolo.us VITE_AUTH_URL=https://auth.stg.topolo.us VITE_TOPOLO_AUTH_URL=https://auth.stg.topolo.us VITE_STORE_API_BASE_URL=https://developers.stg.topolo.us/api/store VITE_P2P_API_URL=https://p2p.stg.topolo.us sh -c 'tsc && vite build --mode production'"
          },
          {
            "name": "preview",
            "command": "vite preview"
          },
          {
            "name": "lint",
            "command": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
          },
          {
            "name": "lint:fix",
            "command": "eslint . --ext ts,tsx --fix"
          },
          {
            "name": "test",
            "command": "vitest"
          },
          {
            "name": "clean",
            "command": "rm -rf dist"
          },
          {
            "name": "deploy:check",
            "command": "node ../../scripts/check-deploy-fresh.mjs"
          },
          {
            "name": "deploy",
            "command": "node ../../scripts/check-deploy-fresh.mjs && rm -f node_modules/.cache/wrangler/pages.json node_modules/.cache/wrangler/wrangler-account.json && rm -rf dist && pnpm run build && CLOUDFLARE_ACCOUNT_ID=49ef1ba682ad8cfd720c86699ae17521 wrangler pages deploy dist --project-name topoloone --branch main --commit-dirty=true"
          },
          {
            "name": "deploy:staging",
            "command": "rm -f node_modules/.cache/wrangler/pages.json node_modules/.cache/wrangler/wrangler-account.json && rm -rf dist && pnpm run build:staging && CLOUDFLARE_ACCOUNT_ID=4f4e1c69a3830946f9fea7b1eb7531ac wrangler pages deploy dist --project-name topoloone-dashboard-staging --branch staging --commit-dirty=true"
          }
        ]
      },
      {
        "path": "PlatformApplications/TopoloOne/apps/dashboard-worker/package.json",
        "name": "@topolo/dashboard-worker",
        "scripts": [
          "dev",
          "start",
          "build",
          "deploy",
          "deploy:staging",
          "deploy:dry-run",
          "test",
          "test:ci",
          "test:miniflare",
          "cf-typegen",
          "clean",
          "lint",
          "type-check",
          "typecheck"
        ],
        "scriptCommands": [
          {
            "name": "dev",
            "command": "wrangler dev --port 8686"
          },
          {
            "name": "start",
            "command": "wrangler dev --port 8686"
          },
          {
            "name": "build",
            "command": "esbuild src/index.ts --bundle --outfile=dist/index.js --format=esm --platform=browser --target=es2022"
          },
          {
            "name": "deploy",
            "command": "wrangler deploy"
          },
          {
            "name": "deploy:staging",
            "command": "env -u CLOUDFLARE_API_TOKEN CLOUDFLARE_ACCOUNT_ID=4f4e1c69a3830946f9fea7b1eb7531ac wrangler deploy --env staging"
          },
          {
            "name": "deploy:dry-run",
            "command": "wrangler deploy --dry-run --outdir .wrangler/build"
          },
          {
            "name": "test",
            "command": "vitest"
          },
          {
            "name": "test:ci",
            "command": "vitest run"
          },
          {
            "name": "test:miniflare",
            "command": "miniflare src/index.ts --modules --compatibility-date=2025-07-01"
          },
          {
            "name": "cf-typegen",
            "command": "wrangler types"
          },
          {
            "name": "clean",
            "command": "rm -rf dist"
          },
          {
            "name": "lint",
            "command": "eslint src --ext .ts"
          },
          {
            "name": "type-check",
            "command": "tsc --noEmit"
          },
          {
            "name": "typecheck",
            "command": "tsc --noEmit"
          }
        ]
      }
    ]
  },
  "data": {
    "env_vars": [
      "ALLOWED_ORIGINS",
      "AUTH_ACCESS_TOKEN_TTL_SECONDS",
      "AUTH_ALLOW_REFRESH_TOKEN_IN_BODY",
      "AUTH_API_URL",
      "AUTH_CLIENT_COMPAT_ALLOWLIST",
      "AUTH_COOKIE_DOMAIN",
      "AUTH_COOKIE_MODE_DEFAULT",
      "AUTH_LEGACY_TOKEN_DELIVERY_ENABLED",
      "AUTH_MAGIC_LINK_ENABLED",
      "AUTH_MFA_CHALLENGE_TTL_SECONDS",
      "AUTH_REFRESH_COOKIE_NAME",
      "AUTH_REFRESH_SKIP_SESSION_CHECK",
      "AUTH_REFRESH_TOKEN_TTL_SECONDS",
      "AUTH_SESSION_TTL_SECONDS",
      "DASHBOARD_APP_ORIGIN",
      "ENVIRONMENT",
      "GITHUB_CLIENT_ID",
      "LOG_LEVEL",
      "NEXT_PUBLIC_AUTH_URL",
      "NEXT_PUBLIC_DEVELOPER_PORTAL_URL",
      "NEXT_PUBLIC_DOCS_URL",
      "NEXT_PUBLIC_ONE_URL",
      "NEXT_PUBLIC_SIGNUP_MODE",
      "NEXT_PUBLIC_SITE_URL",
      "NEXUS_GATEWAY_URL",
      "NODE_ENV",
      "SERVICE_NAME",
      "TOPOLO_NOTIFY_URL",
      "TOPOLO_ONE_BILLING_URL",
      "VITE_API_URL",
      "VITE_AUTH_URL",
      "VITE_P2P_API_URL",
      "VITE_STORE_API_BASE_URL",
      "VITE_TOPOLO_AUTH_URL"
    ],
    "bindings": [
      {
        "kind": "d1",
        "binding": "DB",
        "sourcePath": "PlatformApplications/TopoloAuth/wrangler.toml",
        "target": "7b2ede91-717b-47c5-ae8a-4d2f195a4672"
      },
      {
        "kind": "d1",
        "binding": "DB",
        "environment": "production",
        "sourcePath": "PlatformApplications/TopoloAuth/wrangler.toml",
        "target": "9f2c0e78-738a-41c0-95bf-9968ff369926"
      },
      {
        "kind": "kv",
        "binding": "CHAT_CACHE",
        "sourcePath": "PlatformApplications/TopoloOne/apps/ai-chat-rag/wrangler.toml",
        "target": "5ee16c92ffe34626aacbe45b94e416fe"
      },
      {
        "kind": "kv",
        "binding": "CHAT_CACHE",
        "environment": "preview",
        "sourcePath": "PlatformApplications/TopoloOne/apps/ai-chat-rag/wrangler.toml",
        "target": "5ee16c92ffe34626aacbe45b94e416fe"
      },
      {
        "kind": "kv",
        "binding": "CHAT_CACHE",
        "environment": "production",
        "sourcePath": "PlatformApplications/TopoloOne/apps/ai-chat-rag/wrangler.toml",
        "target": "5ee16c92ffe34626aacbe45b94e416fe"
      },
      {
        "kind": "d1",
        "binding": "ONECLICK_DB",
        "sourcePath": "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
        "target": "ace6619b-0dae-4248-870b-71561d9087e2"
      },
      {
        "kind": "kv",
        "binding": "ONECLICK_KV",
        "sourcePath": "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
        "target": "53140b1879254915bfb46179f09d197b"
      },
      {
        "kind": "d1",
        "binding": "ONECLICK_DB",
        "environment": "preview",
        "sourcePath": "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
        "target": "ace6619b-0dae-4248-870b-71561d9087e2"
      },
      {
        "kind": "kv",
        "binding": "ONECLICK_KV",
        "environment": "preview",
        "sourcePath": "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
        "target": "a4ed16d4573d45b8a05eefa54f18eb5f"
      },
      {
        "kind": "d1",
        "binding": "ONECLICK_DB",
        "environment": "staging",
        "sourcePath": "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
        "target": "b068feb5-e36f-4b40-a980-2d43a82f4778"
      },
      {
        "kind": "kv",
        "binding": "ONECLICK_KV",
        "environment": "staging",
        "sourcePath": "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
        "target": "45c47c1f450b40fda41a7ce941e9e845"
      },
      {
        "kind": "d1",
        "binding": "ONECLICK_DB",
        "environment": "production",
        "sourcePath": "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
        "target": "ace6619b-0dae-4248-870b-71561d9087e2"
      },
      {
        "kind": "kv",
        "binding": "ONECLICK_KV",
        "environment": "production",
        "sourcePath": "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
        "target": "a4ed16d4573d45b8a05eefa54f18eb5f"
      },
      {
        "kind": "kv",
        "binding": "WAITLIST_KV",
        "sourcePath": "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
        "target": "97ef5229c1574541bb7d5dd6b437d5b6"
      },
      {
        "kind": "kv",
        "binding": "BOOKING_KV",
        "sourcePath": "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
        "target": "b45b9707d5984639b03f42e3f9e42fcb"
      },
      {
        "kind": "kv",
        "binding": "SUBS_KV",
        "sourcePath": "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
        "target": "5cd7bce0ea88411d857169ea9ef46c2a"
      },
      {
        "kind": "d1",
        "binding": "ONECLICK_DB",
        "sourcePath": "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
        "target": "ace6619b-0dae-4248-870b-71561d9087e2"
      },
      {
        "kind": "kv",
        "binding": "WAITLIST_KV",
        "environment": "staging",
        "sourcePath": "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
        "target": "2fed68e530b94c2c8ab1e74b998a8c73"
      },
      {
        "kind": "kv",
        "binding": "BOOKING_KV",
        "environment": "staging",
        "sourcePath": "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
        "target": "dee1938ea8754510b9ede1bf1e8f4bf9"
      },
      {
        "kind": "kv",
        "binding": "SUBS_KV",
        "environment": "staging",
        "sourcePath": "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
        "target": "d1bf35da79c64095a49296a9b7100931"
      },
      {
        "kind": "d1",
        "binding": "ONECLICK_DB",
        "environment": "staging",
        "sourcePath": "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
        "target": "b068feb5-e36f-4b40-a980-2d43a82f4778"
      }
    ],
    "queue_bindings": [],
    "storage_kinds": [
      "d1",
      "kv"
    ],
    "workflow_signals": [
      "cron 0 3 * * *"
    ]
  },
  "deployment": {
    "commands": [
      {
        "name": "build",
        "command": "PlatformApplications/TopoloAuth/package.json :: wrangler deploy --dry-run --outdir .wrangler/build"
      },
      {
        "name": "deploy",
        "command": "PlatformApplications/TopoloAuth/package.json :: wrangler deploy"
      },
      {
        "name": "deploy:staging",
        "command": "PlatformApplications/TopoloAuth/package.json :: wrangler deploy"
      },
      {
        "name": "deploy:production",
        "command": "PlatformApplications/TopoloAuth/package.json :: wrangler deploy --env production"
      },
      {
        "name": "deploy:dry-run",
        "command": "PlatformApplications/TopoloAuth/package.json :: wrangler deploy --dry-run --outdir .wrangler/build"
      },
      {
        "name": "build",
        "command": "PlatformApplications/TopoloAuth/packages/topolo-auth-client/package.json :: tsup src/index.ts --format esm,cjs --dts"
      },
      {
        "name": "build",
        "command": "PlatformApplications/TopoloOne/apps/ai-chat-rag/package.json :: esbuild src/index.ts --bundle --outfile=dist/index.js --format=esm --platform=browser --target=es2022"
      },
      {
        "name": "deploy",
        "command": "PlatformApplications/TopoloOne/apps/ai-chat-rag/package.json :: wrangler deploy"
      },
      {
        "name": "deploy:dry-run",
        "command": "PlatformApplications/TopoloOne/apps/ai-chat-rag/package.json :: wrangler deploy --dry-run --outdir .wrangler/build"
      },
      {
        "name": "build",
        "command": "PlatformApplications/TopoloOne/apps/dashboard-web/package.json :: tsc && vite build --mode production"
      },
      {
        "name": "build:staging",
        "command": "PlatformApplications/TopoloOne/apps/dashboard-web/package.json :: env VITE_PUBLIC_URL=https://topoloone-dashboard-staging.pages.dev VITE_API_URL=https://one.stg.topolo.us VITE_AUTH_URL=https://auth.stg.topolo.us VITE_TOPOLO_AUTH_URL=https://auth.stg.topolo.us VITE_STORE_API_BASE_URL=https://developers.stg.topolo.us/api/store VITE_P2P_API_URL=https://p2p.stg.topolo.us sh -c 'tsc && vite build --mode production'"
      },
      {
        "name": "preview",
        "command": "PlatformApplications/TopoloOne/apps/dashboard-web/package.json :: vite preview"
      },
      {
        "name": "deploy:check",
        "command": "PlatformApplications/TopoloOne/apps/dashboard-web/package.json :: node ../../scripts/check-deploy-fresh.mjs"
      },
      {
        "name": "deploy",
        "command": "PlatformApplications/TopoloOne/apps/dashboard-web/package.json :: node ../../scripts/check-deploy-fresh.mjs && rm -f node_modules/.cache/wrangler/pages.json node_modules/.cache/wrangler/wrangler-account.json && rm -rf dist && pnpm run build && CLOUDFLARE_ACCOUNT_ID=49ef1ba682ad8cfd720c86699ae17521 wrangler pages deploy dist --project-name topoloone --branch main --commit-dirty=true"
      },
      {
        "name": "deploy:staging",
        "command": "PlatformApplications/TopoloOne/apps/dashboard-web/package.json :: rm -f node_modules/.cache/wrangler/pages.json node_modules/.cache/wrangler/wrangler-account.json && rm -rf dist && pnpm run build:staging && CLOUDFLARE_ACCOUNT_ID=4f4e1c69a3830946f9fea7b1eb7531ac wrangler pages deploy dist --project-name topoloone-dashboard-staging --branch staging --commit-dirty=true"
      },
      {
        "name": "build",
        "command": "PlatformApplications/TopoloOne/apps/dashboard-worker/package.json :: esbuild src/index.ts --bundle --outfile=dist/index.js --format=esm --platform=browser --target=es2022"
      }
    ],
    "routes": [
      "auth.stg.topolo.us",
      "auth.topolo.app",
      "one.stg.topolo.us",
      "one.topolo.app/*",
      "stg.topolo.us"
    ],
    "environments": [
      "production",
      "preview",
      "staging"
    ],
    "assets_directories": [
      "./public",
      "out"
    ],
    "observability_enabled": true
  },
  "debugging": {
    "failure_modes": [
      "No Auth service ID is registered for this system."
    ],
    "entrypoints": [
      "PlatformApplications/TopoloAuth/wrangler.toml",
      "PlatformApplications/TopoloOne/apps/ai-chat-rag/wrangler.toml",
      "PlatformApplications/TopoloOne/apps/dashboard-web/wrangler.toml",
      "PlatformApplications/TopoloOne/apps/dashboard-worker/wrangler.toml",
      "PlatformApplications/TopoloOne/apps/marketing-site/wrangler.toml",
      "PlatformApplications/TopoloDocs/src/content/public/platform",
      "PlatformApplications/TopoloAuth/README.md",
      "PlatformApplications/TopoloAuth/package.json",
      "PlatformApplications/TopoloAuth/packages/topolo-auth-client/package.json",
      "PlatformApplications/TopoloOne/apps/ai-chat-rag/package.json",
      "PlatformApplications/TopoloOne/apps/dashboard-web/package.json",
      "PlatformApplications/TopoloOne/apps/dashboard-worker/package.json"
    ]
  }
}