Skip to content

πŸ™Œ OpenHands: AI-Driven Development

9.6 KB
Raw Blame
{
  "name": "@openhands/agent-canvas",
  "version": "1.32.0",
  "description": "Agent Canvas UI for OpenHands - run AI coding agents with a visual interface",
  "license": "MIT",
  "private": false,
  "type": "module",
  "repository": {
    "type": "git",
    "url": "https://github.com/OpenHands/OpenHands"
  },
  "homepage": "https://github.com/OpenHands/OpenHands#readme",
  "bugs": {
    "url": "https://github.com/OpenHands/OpenHands/issues"
  },
  "bin": {
    "agent-canvas": "bin/agent-canvas.mjs"
  },
  "engines": {
    "node": ">=24"
  },
  "dependencies": {
    "@heroui/react": "2.8.10",
    "@microlink/react-json-view": "1.31.25",
    "@monaco-editor/react": "4.7.0",
    "@openhands/extensions": "0.35.0",
    "@openhands/typescript-client": "1.58.1",
    "@react-router/node": "7.18.2",
    "@react-router/serve": "7.18.2",
    "@tailwindcss/vite": "4.3.3",
    "@tanstack/react-query": "5.103.1",
    "@types/shell-quote": "1.7.5",
    "@uidotdev/usehooks": "2.4.1",
    "@xterm/addon-fit": "0.11.0",
    "@xterm/xterm": "6.0.0",
    "axios": "1.18.0",
    "class-variance-authority": "0.7.1",
    "clsx": "2.1.1",
    "downshift": "9.4.0",
    "driver.js": "1.3.6",
    "framer-motion": "12.38.0",
    "httpxy": "0.5.5",
    "i18next": "26.4.2",
    "i18next-browser-languagedetector": "8.2.1",
    "i18next-http-backend": "4.0.2",
    "isbot": "5.2.1",
    "lucide-react": "1.25.0",
    "mdast-util-from-markdown": "2.0.3",
    "monaco-editor": "0.56.0",
    "posthog-js": "1.415.0",
    "react": "19.3.0",
    "react-dom": "19.3.0",
    "react-hot-toast": "2.6.0",
    "react-i18next": "17.0.14",
    "react-icons": "5.6.0",
    "react-markdown": "10.1.0",
    "react-router": "7.18.2",
    "react-syntax-highlighter": "16.1.1",
    "rehype-raw": "7.0.0",
    "rehype-sanitize": "6.0.0",
    "remark-breaks": "4.0.0",
    "remark-gfm": "4.0.1",
    "shell-quote": "1.9.0",
    "sirv": "3.0.2",
    "sirv-cli": "3.0.1",
    "tailwind-merge": "3.7.0",
    "tailwind-scrollbar": "4.0.2",
    "unist-util-visit": "5.1.0",
    "uuid": "14.0.1",
    "vite": "8.0.16",
    "winston": "3.19.0",
    "winston-daily-rotate-file": "5.0.0",
    "ws": "8.21.0",
    "zustand": "5.0.14"
  },
  "scripts": {
    "dev": "node --env-file-if-exists=.env scripts/dev-with-automation.mjs",
    "dev:static": "node --env-file-if-exists=.env scripts/dev-static.mjs",
    "dev:extra-backend": "node --env-file-if-exists=.env scripts/dev-extra-backend.mjs",
    "dev:minimal": "node --env-file-if-exists=.env scripts/dev-safe.mjs",
    "dev:frontend": "npm run make-i18n && cross-env VITE_MOCK_API=false react-router dev",
    "dev:mock": "npm run make-i18n && cross-env VITE_MOCK_API=true react-router dev",
    "build": "npm run build:app",
    "build:mock": "npm run make-i18n && cross-env VITE_MOCK_API=true react-router build",
    "start": "npx sirv-cli build/ --single",
    "test": "npm run make-i18n && vitest run",
    "test:e2e": "playwright test --pass-with-no-tests",
    "test:e2e:live": "node --env-file-if-exists=.env tests/e2e/live/scripts/run-live-e2e.mjs",
    "test:e2e:mock-llm": "playwright test --config=playwright.mock-llm.config.ts",
    "test:e2e:mock-llm:docker": "playwright test --config=playwright.mock-llm-docker.config.ts",
    "test:e2e:bind-policy": "playwright test --config=playwright.bind-policy.config.ts",
    "test:coverage": "npm run make-i18n && vitest run --coverage",
    "test:mutation": "npm run make-i18n && stryker run",
    "test:mutation:diff": "npm run make-i18n && node scripts/stryker-diff.mjs",
    "test:mutation:incremental": "npm run make-i18n && stryker run --incremental",
    "dev_wsl": "VITE_WATCH_USE_POLLING=true vite",
    "preview": "vite preview",
    "make-i18n": "node scripts/make-i18n-translations.cjs",
    "prelint": "npm run make-i18n",
    "lint": "npm run typecheck && eslint src && prettier --check src/**/*.{ts,tsx}",
    "lint:fix": "eslint src --fix && prettier --write src/**/*.{ts,tsx}",
    "postinstall": "node -e \"if (process.env.npm_config_global === 'true') { console.log('\\n\\x1b[32m\\x1b[1m\\u2713 @openhands/agent-canvas installed!\\x1b[0m\\n\\nTo start Agent Canvas, run:\\n\\n  \\x1b[36m\\x1b[1magent-canvas\\x1b[0m\\n\\nThis launches the full stack at \\x1b[36mhttp://localhost:8000\\x1b[0m.\\n\\nDocs: https://docs.openhands.dev/openhands/usage/agent-canvas/setup\\n') }\"",
    "prepare": "husky",
    "typecheck": "react-router typegen && tsc",
    "typecheck:staged": "react-router typegen && npx tsc --noEmit --skipLibCheck",
    "check-translation-completeness": "node scripts/check-translation-completeness.cjs",
    "build:app": "npm run make-i18n && react-router build",
    "build:lib": "npm run make-i18n && react-router typegen && cross-env BUILD_LIB=true vite build && tsc -p tsconfig.lib.json",
    "build:docker": "node scripts/docker-build.mjs",
    "example:acp-docker:env": "node scripts/gen-acp-docker-env.mjs",
    "predesktop": "node scripts/brand-dev-electron.mjs",
    "desktop": "npm run build:app && electron electron",
    "build:desktop": "npm run build:app && node scripts/download-uv.mjs && node scripts/download-node.mjs && electron-builder --config electron-builder.config.mjs --publish never",
    "build:desktop:universal": "npm run build:app && cross-env ELECTRON_ARCH=universal node scripts/download-uv.mjs && cross-env ELECTRON_ARCH=universal node scripts/download-node.mjs && cross-env ELECTRON_ARCH=universal electron-builder --config electron-builder.config.mjs --publish never",
    "download-uv": "node scripts/download-uv.mjs",
    "download-node": "node scripts/download-node.mjs",
    "generate-icons": "node scripts/generate-icons.mjs"
  },
  "lint-staged": {
    "src/**/*.{ts,tsx,js}": [
      "eslint --fix",
      "prettier --write"
    ],
    "src/**/*.{ts,tsx}": [
      "node scripts/run-staged-typecheck.mjs"
    ],
    "src/**/*": [
      "npm run check-translation-completeness"
    ]
  },
  "devDependencies": {
    "@eslint/eslintrc": "3.3.6",
    "@eslint/js": "9.39.4",
    "@playwright/test": "1.63.0",
    "@react-router/dev": "7.18.2",
    "@shadcn/lint": "0.2.1",
    "@stryker-mutator/core": "9.6.1",
    "@stryker-mutator/vitest-runner": "9.6.1",
    "@tailwindcss/node": "4.3.3",
    "@tailwindcss/typography": "0.5.20",
    "@tanstack/eslint-plugin-query": "5.103.1",
    "@testing-library/dom": "10.4.2",
    "@testing-library/jest-dom": "7.0.1",
    "@testing-library/react": "16.3.3",
    "@testing-library/user-event": "14.6.7",
    "@types/mdast": "4.0.4",
    "@types/node": "26.2.0",
    "@types/react": "19.3.0",
    "@types/react-dom": "19.3.0",
    "@types/react-syntax-highlighter": "15.5.13",
    "@types/ws": "8.18.1",
    "@typescript-eslint/eslint-plugin": "8.67.0",
    "@typescript-eslint/parser": "8.67.0",
    "@vercel/react-router": "1.3.3",
    "@vitest/coverage-v8": "5.0.0",
    "cross-env": "10.1.0",
    "electron": "43.3.0",
    "electron-builder": "26.15.3",
    "eslint": "9.39.5",
    "eslint-config-prettier": "10.1.8",
    "eslint-import-resolver-typescript": "4.4.5",
    "eslint-plugin-i18next": "6.1.5",
    "eslint-plugin-import-x": "4.17.1",
    "eslint-plugin-jsx-a11y": "6.10.2",
    "eslint-plugin-prettier": "5.5.6",
    "eslint-plugin-react": "7.37.5",
    "eslint-plugin-react-hooks": "7.1.1",
    "eslint-plugin-unused-imports": "4.4.1",
    "globals": "16.5.0",
    "husky": "9.1.7",
    "jsdom": "30.0.1",
    "lint-staged": "17.3.0",
    "msw": "2.15.0",
    "png2icons": "2.0.1",
    "postcss-prefix-selector": "2.1.1",
    "prettier": "3.8.3",
    "tailwindcss": "4.3.3",
    "typescript": "6.0.3",
    "vite-plugin-svgr": "5.2.0",
    "vitest": "5.0.0"
  },
  "packageManager": "[email protected]",
  "volta": {
    "node": "24.21.0",
    "npm": "11.12.1"
  },
  "msw": {
    "workerDirectory": [
      "public"
    ]
  },
  "overrides": {
    "@vercel/static-config": {
      "ajv": "8.20.0"
    },
    "dompurify": "3.4.14",
    "typed-rest-client": {
      "qs": "6.15.3"
    }
  },
  "main": "./dist/index.cjs",
  "module": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "files": [
    "dist",
    "bin",
    "build",
    "config",
    "scripts",
    "tools"
  ],
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.js",
      "require": "./dist/index.cjs"
    },
    "./browser": {
      "types": "./dist/components/browser/index.d.ts",
      "import": "./dist/components/browser/index.js",
      "require": "./dist/components/browser/index.cjs"
    },
    "./conversation": {
      "types": "./dist/components/conversation/index.d.ts",
      "import": "./dist/components/conversation/index.js",
      "require": "./dist/components/conversation/index.cjs"
    },
    "./files": {
      "types": "./dist/components/files/index.d.ts",
      "import": "./dist/components/files/index.js",
      "require": "./dist/components/files/index.cjs"
    },
    "./settings": {
      "types": "./dist/components/settings/index.d.ts",
      "import": "./dist/components/settings/index.js",
      "require": "./dist/components/settings/index.cjs"
    },
    "./sidebar": {
      "types": "./dist/components/sidebar/index.d.ts",
      "import": "./dist/components/sidebar/index.js",
      "require": "./dist/components/sidebar/index.cjs"
    },
    "./terminal": {
      "types": "./dist/components/terminal/index.d.ts",
      "import": "./dist/components/terminal/index.js",
      "require": "./dist/components/terminal/index.cjs"
    },
    "./i18n": {
      "types": "./dist/i18n/index.d.ts",
      "import": "./dist/i18n/index.js",
      "require": "./dist/i18n/index.cjs"
    },
    "./styles.css": "./dist/styles.css",
    "./package.json": "./package.json"
  },
  "peerDependencies": {
    "react": "19.3.0",
    "react-dom": "19.3.0",
    "react-router": "7.18.2"
  }
}