Files
browser-helper/package.json
xiongxiao e5c3ec3f79 feat: refactor context usage and add search template route
- Updated context key usage from `useConfigKey` to `useContextKey` in app initialization.
- Introduced a new route for searching templates related to 小红书 with a default keyword.
- Enhanced error handling for saving notes and user information.
- Added a command for searching templates in the CLI.
- Created a new agent plugin for browser integration.
2026-01-21 01:45:27 +08:00

72 lines
2.1 KiB
JSON

{
"name": "@kevisual/browser-helper",
"version": "0.0.1",
"description": "",
"main": "index.js",
"types": "typings/note.d.ts",
"basename": "/root/browser-helper",
"app": {
"type": "pm2-system-app",
"entry": "./app.js",
"runtime": [
"client"
]
},
"scripts": {
"start": "tsx src/playwright/index.ts",
"dev": "tsx watch src/index.ts",
"init:browser": "npx playwright install",
"build": "bun run bun.config.ts",
"browser": "pm2 start start-browser.js --name browser ",
"dev:browser": "node start-browser.js ",
"cmd": "tsx src/test/cmd.ts ",
"init": "pnpm run init:pnpm && pnpm run init:db && pnpm run init:browser",
"init:pnpm": "pnpm approve-builds",
"init:db": "npx drizzle-kit push",
"push": "npx drizzle-kit push",
"studio": "npx drizzle-kit studio",
"drizzle:migrate": "npx drizzle-kit migrate",
"drizzle:push": "npx drizzle-kit push"
},
"keywords": [],
"files": [
"typings",
"dist",
"src",
"start-browser.ts"
],
"author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
"license": "MIT",
"packageManager": "pnpm@10.28.1",
"type": "module",
"dependencies": {
"better-sqlite3": "^12.6.2",
"nanoid": "^5.1.6",
"playwright": "^1.57.0",
"playwright-extra": "^4.3.6",
"playwright-extra-plugin-stealth": "^0.0.1",
"user-agents": "^1.1.669",
"zod": "^4.3.5",
"zod-to-json-schema": "^3.25.1"
},
"devDependencies": {
"@kevisual/code-builder": "^0.0.3",
"@kevisual/context": "^0.0.4",
"@kevisual/js-filter": "^0.0.5",
"@kevisual/router": "^0.0.59",
"@types/better-sqlite3": "^7.6.13",
"@kevisual/types": "^0.0.11",
"@kevisual/use-config": "^1.0.28",
"@types/bun": "^1.3.6",
"@types/node": "^25.0.9",
"@types/user-agents": "^1.0.4",
"commander": "^14.0.2",
"dotenv": "^17.2.3",
"drizzle-kit": "^0.31.8",
"drizzle-orm": "^0.45.1",
"es-toolkit": "^1.44.0",
"eventemitter3": "^5.0.4",
"lru-cache": "^11.2.4",
"puppeteer-extra-plugin-stealth": "^2.11.2"
}
}