{
  "name": "ugly-app",
  "packageManager": "pnpm@10.34.5",
  "version": "0.1.943",
  "type": "module",
  "comment:files": "Allowlist what ships to npm. dist = runtime; src = sourcemap targets (dist/*.js.map reference ../../src/); templates = CLI scaffold. Everything else at repo root (.pgdata local Postgres, coverage, assets/icons sources, test/, test-results/) is excluded by omission. The !negations strip the scaffold's installed deps + cruft (templates/node_modules is 200MB+ and must never ship). package.json/README/LICENSE ship automatically.",
  "files": [
    "dist",
    "src",
    "templates",
    "!templates/node_modules",
    "!templates/node_modules/**",
    "!templates/package-lock.json",
    "!**/.DS_Store",
    "!**/*.log"
  ],
  "main": "./dist/server/index.js",
  "exports": {
    ".": "./dist/server/index.js",
    "./server": "./dist/server/index.js",
    "./server/adapter/workers": "./dist/server/adapter/workers/index.js",
    "./server/ssr": "./dist/server/adapter/workers/createSsrRender.js",
    "./server/publishFrame": "./dist/server/adapter/publishFrame.js",
    "./shared": "./dist/shared/index.js",
    "./menu-chrome": "./dist/shared/menuChrome.js",
    "./cli/publish": "./dist/cli/publish/orchestrator.js",
    "./cli/publish/types": "./dist/cli/publish/types.js",
    "./cli/publish/secret-storage": "./dist/cli/publish/secret-storage.js",
    "./cli/auth/credentials": "./dist/cli/auth/credentials.js",
    "./client": "./dist/client/index.js",
    "./playwright": "./dist/playwright/index.js",
    "./testing": "./dist/testing/index.js",
    "./collab/server": "./dist/collab/server/index.js",
    "./collab/client": "./dist/collab/client/index.js",
    "./markdown/shared": "./dist/markdown/shared/index.js",
    "./markdown/client": "./dist/markdown/client/index.js",
    "./conversation/shared": "./dist/conversation/shared/index.js",
    "./conversation/server": "./dist/conversation/server/index.js",
    "./conversation/engine": "./dist/conversation/server/engine.js",
    "./conversation/client": "./dist/conversation/client/index.js",
    "./search/shared": "./dist/search/shared/index.js",
    "./search/server": "./dist/search/server/index.js",
    "./agent/shared": "./dist/agent/shared/index.js",
    "./agent/server": "./dist/agent/server/index.js",
    "./agent/client": "./dist/agent/client/index.js",
    "./webrtc": {
      "default": "./dist/webrtc/index.js"
    },
    "./webrtc/server": "./dist/webrtc/server/index.js",
    "./worker": "./dist/worker/index.js",
    "./three/server": "./dist/three/server/index.js",
    "./three/client": "./dist/three/client/index.js",
    "./vite": "./dist/vite/index.js",
    "./eslint": "./dist/eslint/index.js",
    "./native": "./dist/native/index.js",
    "./native/conformance": "./dist/native/conformance/harness.js",
    "./native/server": "./dist/native/server/index.js",
    "./native/server/binaries": "./dist/native/server/binaries/index.js",
    "./inspect": "./dist/inspect/index.js",
    "./inspect/agent": "./dist/inspect/agent/install.js",
    "./inspect/agent-bundle": "./dist/inspect/agent-bundle.js",
    "./inspect/host-bundle": "./dist/inspect/host-bundle.js",
    "./inspect/ui": "./dist/inspect/ui/index.js"
  },
  "bin": {
    "ugly-app": "dist/cli/index.js"
  },
  "scripts": {
    "preinstall": "npx only-allow pnpm",
    "prebuild": "node -e \"const p=JSON.parse(require('fs').readFileSync('package.json','utf8'));require('fs').writeFileSync('src/cli/version.ts','// Auto-generated by prebuild — do not edit manually\\nexport const CLI_VERSION = '+JSON.stringify(p.version)+';\\n');\" && rm -rf dist",
    "build": "tsc && chmod +x dist/cli/index.js && cp src/markdown/client/*.css dist/markdown/client/ && mkdir -p dist/cli/publish/recipes && cp -R src/cli/publish/recipes/. dist/cli/publish/recipes/ && mkdir -p dist/native/server/taskHost && cp src/native/server/taskHost/*.mjs dist/native/server/taskHost/ && esbuild src/inspect/agent/bundle-entry.ts --bundle --format=iife --platform=browser --minify --outfile=dist/inspect/agent-bundle.js --footer:js='//# sourceURL=ugly-inspect-agent.js' && esbuild src/inspect/host-bundle-entry.ts --bundle --format=iife --platform=browser --minify --outfile=dist/inspect/host-bundle.js",
    "test": "vitest run",
    "test:e2e": "E2E=1 vitest run tests/cli/e2e-integration.test.ts",
    "test:e2e:full": "pnpm exec tsx tests/e2e/full-e2e.ts",
    "test:scaffold": "vitest run tests/cli/scaffold.test.ts",
    "test:watch": "vitest",
    "build:workers": "tsx scripts/build-workers.ts && tsx scripts/check-workers-bundle.ts",
    "check:workers": "tsx scripts/check-workers-bundle.ts",
    "dev:workers": "tsx scripts/dev-workers.ts",
    "test:workers": "vitest --config vitest.workers.config.ts run",
    "test:e2e-workers": "vitest --config vitest.e2e-workers.config.ts run",
    "test:parity": "vitest run tests/adapter-parity && vitest --config vitest.workers.config.ts run && vitest --config vitest.e2e-workers.config.ts run",
    "preversion": "[ \"$SKIP_README\" = \"1\" ] || claude --print 'Read src/server/App.ts, src/client/Router.tsx, src/shared/Router.ts, src/client/AppProvider.tsx, templates/server/index.ts and rewrite README.md to accurately document the current ugly-app public API. Cover: createApp/AppConfigurator, routing (definePage/lazyPage/lazyPageLoader/useRouter/openPopup), auth flow, TypedDB, AI providers, storage. Then run npm run build to verify everything compiles.'",
    "logo": "cd assets/icons && ./logo.sh",
    "release": "npm version patch --force && pnpm run build && npm publish && git push --follow-tags",
    "release:quick": "SKIP_README=1 pnpm run release",
    "test:e2e-pages": "playwright test --config playwright.e2e-pages.config.ts",
    "test:full": "pnpm run test:parity && pnpm run test:e2e-pages",
    "test:template": "node scripts/test-template.mjs",
    "pretty": "prettier --write .",
    "lint": "ESLINT_USE_FLAT_CONFIG=true NODE_OPTIONS=--max-old-space-size=8192 eslint .",
    "prepublishOnly": "pnpm run pretty && pnpm run lint"
  },
  "dependencies": {
    "@aws-sdk/client-s3": "^3.700.0",
    "@aws-sdk/s3-request-presigner": "^3.700.0",
    "@codemirror/commands": "^6.10.3",
    "@codemirror/lang-markdown": "^6.5.0",
    "@codemirror/state": "^6.6.0",
    "@codemirror/theme-one-dark": "^6.1.3",
    "@codemirror/view": "^6.41.0",
    "@eslint/js": "^8.57.1",
    "@neondatabase/serverless": "^1.1.0",
    "@tanstack/virtual-core": "^3.0.0",
    "@types/jsonwebtoken": "^9.0.10",
    "@types/turndown": "^5.0.6",
    "@types/url-parse": "^1.4.11",
    "@typescript-eslint/eslint-plugin": "^8.0.0",
    "@typescript-eslint/parser": "^8.0.0",
    "bcrypt": "^6.0.0",
    "canvas-confetti": "^1.9.4",
    "codemirror": "^6.0.2",
    "commander": "^12.0.0",
    "concurrently": "^9.0.0",
    "cookie-parser": "^1.4.7",
    "esbuild": "^0.27.5",
    "eslint": "^8.57.0",
    "eslint-plugin-react": "^7.37.5",
    "eslint-plugin-react-hooks": "^7.0.1",
    "express": "^4.21.1",
    "fs-extra": "^11.0.0",
    "google-auth-library": "^10.9.0",
    "handlebars": "^4.7.8",
    "hast-util-to-html": "^9.0.5",
    "highlight.js": "^11.11.1",
    "hono": "^4.12.25",
    "html2canvas": "^1.4.1",
    "jose": "^6.0.13",
    "jsonwebtoken": "^9.0.3",
    "katex": "^0.16.45",
    "lru-cache": "^11.0.0",
    "lucide": "^1.8.0",
    "markmap-common": "^0.18.9",
    "markmap-lib": "^0.18.12",
    "markmap-view": "^0.18.12",
    "mdast-util-from-markdown": "^2.0.3",
    "mdast-util-gfm": "^3.1.0",
    "mdast-util-gfm-footnote": "^2.1.0",
    "mdast-util-to-hast": "^13.2.1",
    "mdast-util-to-markdown": "^2.1.2",
    "mdast-util-to-string": "^4.0.0",
    "mermaid": "^11.14.0",
    "micromark-extension-gfm": "^3.0.0",
    "micromark-extension-gfm-footnote": "^2.1.0",
    "nanoid": "^5.1.5",
    "nats": "^2.28.2",
    "onnxruntime-node": "^1.23.0",
    "pg": "^8.21.0",
    "prosemirror-commands": "^1.7.1",
    "prosemirror-history": "^1.5.0",
    "prosemirror-inputrules": "^1.5.1",
    "prosemirror-keymap": "^1.2.3",
    "prosemirror-model": "^1.25.4",
    "prosemirror-schema-list": "^1.5.1",
    "prosemirror-state": "^1.4.4",
    "prosemirror-tables": "^1.8.5",
    "prosemirror-transform": "^1.12.0",
    "prosemirror-view": "^1.41.8",
    "react-datepicker": "^9.1.0",
    "sprintf-js": "^1.1.3",
    "turndown": "^7.2.4",
    "typescript-eslint": "^8.57.2",
    "url-parse": "^1.5.10",
    "vega-embed": "^7.1.0",
    "ws": "^8.18.0",
    "y-prosemirror": "^1.3.7",
    "zod": "^4.3.6",
    "better-sqlite3": "^12.11.1"
  },
  "devDependencies": {
    "@cloudflare/vitest-pool-workers": "^0.16.14",
    "@cloudflare/workers-types": "^4.20260610.1",
    "@playwright/test": "^1.58.2",
    "@testing-library/dom": "^10.4.1",
    "@testing-library/react": "^16.3.2",
    "@types/bcrypt": "^5.0.2",
    "@types/better-sqlite3": "^7.6.13",
    "@types/canvas-confetti": "^1.9.0",
    "@types/cookie-parser": "^1.4.10",
    "@types/express": "^5.0.0",
    "@types/fs-extra": "^11.0.4",
    "@types/katex": "^0.16.8",
    "@types/node": "^22.0.0",
    "@types/pg": "^8.20.0",
    "@types/react": "^19.2.14",
    "@types/react-datepicker": "^6.2.0",
    "@types/react-dom": "^19.2.3",
    "@types/sprintf-js": "^1.1.4",
    "@types/three": "^0.183.1",
    "@types/ws": "^8.5.13",
    "@vitejs/plugin-react": "^6.0.1",
    "@vitest/coverage-v8": "^4.1.2",
    "html2canvas": "^1.4.1",
    "jsdom": "^29.0.1",
    "miniflare": "^4.20260603.0",
    "prettier": "^3.9.5",
    "react": "^19.2.4",
    "react-dom": "^19.2.4",
    "three": "^0.183.2",
    "tsx": "^4.22.4",
    "typescript": "^5.9.3",
    "vitest": "^4.0.18",
    "yjs": "^13.6.30"
  },
  "peerDependencies": {
    "@types/react": ">=18.0.0",
    "preact": "^10.29.0",
    "react": ">=18.0.0",
    "react-dom": ">=18.0.0",
    "three": ">=0.150.0",
    "yjs": ">=13.0.0"
  },
  "peerDependenciesMeta": {
    "@types/react": {
      "optional": true
    },
    "preact": {
      "optional": true
    },
    "mediasoup": {
      "optional": true
    },
    "three": {
      "optional": true
    },
    "yjs": {
      "optional": true
    }
  },
  "pnpm": {
    "onlyBuiltDependencies": [
      "better-sqlite3",
      "bcrypt",
      "esbuild",
      "sharp",
      "onnxruntime-node",
      "workerd"
    ]
  }
}
