133 lines
4.0 KiB
JSON
133 lines
4.0 KiB
JSON
{
|
|
"name": "clawdis",
|
|
"version": "2.0.0-beta1",
|
|
"description": "WhatsApp gateway CLI (Baileys web) with Pi RPC agent",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"bin": {
|
|
"clawdis": "dist/index.js"
|
|
},
|
|
"scripts": {
|
|
"dev": "tsx src/index.ts",
|
|
"docs:list": "tsx scripts/docs-list.ts",
|
|
"build": "pnpm canvas:a2ui:bundle && tsc -p tsconfig.json && tsx scripts/canvas-a2ui-copy.ts",
|
|
"ui:install": "pnpm -C ui install",
|
|
"ui:dev": "pnpm -C ui dev",
|
|
"ui:build": "pnpm -C ui build",
|
|
"start": "tsx src/index.ts",
|
|
"clawdis": "tsx src/index.ts",
|
|
"clawdis:rpc": "tsx src/index.ts agent --mode rpc --json",
|
|
"lint": "biome check src",
|
|
"lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",
|
|
"lint:fix": "biome check --write --unsafe src && biome format --write src",
|
|
"format": "biome format src",
|
|
"format:swift": "swiftformat --lint --config .swiftformat apps/macos/Sources apps/ios/Sources apps/shared/ClawdisKit/Sources",
|
|
"format:fix": "biome format src --write",
|
|
"test": "vitest",
|
|
"test:force": "tsx scripts/test-force.ts",
|
|
"test:coverage": "vitest run --coverage",
|
|
"protocol:gen": "tsx scripts/protocol-gen.ts",
|
|
"protocol:gen:swift": "tsx scripts/protocol-gen-swift.ts",
|
|
"protocol:check": "pnpm protocol:gen && pnpm protocol:gen:swift && git diff --exit-code -- dist/protocol.schema.json apps/macos/Sources/ClawdisProtocol/GatewayModels.swift",
|
|
"canvas:a2ui:bundle": "pnpm -s exec tsc -p vendor/a2ui/renderers/lit/tsconfig.json && rolldown -c apps/shared/ClawdisKit/Tools/CanvasA2UI/rolldown.config.mjs"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=22.0.0"
|
|
},
|
|
"packageManager": "pnpm@10.23.0",
|
|
"dependencies": {
|
|
"@grammyjs/transformer-throttler": "^1.2.1",
|
|
"@homebridge/ciao": "^1.3.4",
|
|
"@mariozechner/pi-agent-core": "^0.25.0",
|
|
"@mariozechner/pi-ai": "^0.25.0",
|
|
"@mariozechner/pi-coding-agent": "^0.25.0",
|
|
"@sinclair/typebox": "^0.34.41",
|
|
"@whiskeysockets/baileys": "7.0.0-rc.9",
|
|
"ajv": "^8.17.1",
|
|
"body-parser": "^2.2.1",
|
|
"chalk": "^5.6.2",
|
|
"chokidar": "^5.0.0",
|
|
"chromium-bidi": "12.0.1",
|
|
"commander": "^14.0.2",
|
|
"croner": "^9.1.0",
|
|
"detect-libc": "^2.1.2",
|
|
"dotenv": "^17.2.3",
|
|
"express": "^5.2.1",
|
|
"file-type": "^21.1.1",
|
|
"grammy": "^1.38.4",
|
|
"json5": "^2.2.3",
|
|
"long": "5.3.2",
|
|
"playwright-core": "1.57.0",
|
|
"qrcode-terminal": "^0.12.0",
|
|
"sharp": "^0.34.5",
|
|
"tslog": "^4.10.2",
|
|
"undici": "^7.16.0",
|
|
"ws": "^8.18.3",
|
|
"zod": "^4.2.1"
|
|
},
|
|
"optionalDependencies": {
|
|
"authenticate-pam": "^1.0.5"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.3.10",
|
|
"@lit-labs/signals": "^0.1.3",
|
|
"@lit/context": "^1.1.6",
|
|
"@mariozechner/mini-lit": "0.2.1",
|
|
"@types/body-parser": "^1.19.6",
|
|
"@types/express": "^5.0.6",
|
|
"@types/markdown-it": "^14.1.2",
|
|
"@types/node": "^25.0.3",
|
|
"@types/qrcode-terminal": "^0.12.2",
|
|
"@types/ws": "^8.18.1",
|
|
"@vitest/coverage-v8": "^4.0.16",
|
|
"docx-preview": "^0.3.7",
|
|
"jszip": "^3.10.1",
|
|
"lit": "^3.3.1",
|
|
"lucide": "^0.562.0",
|
|
"markdown-it": "^14.1.0",
|
|
"ollama": "^0.6.3",
|
|
"quicktype-core": "^23.2.6",
|
|
"rolldown": "1.0.0-beta.55",
|
|
"signal-utils": "^0.21.1",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.9.3",
|
|
"vitest": "^4.0.16",
|
|
"wireit": "^0.14.12"
|
|
},
|
|
"vitest": {
|
|
"coverage": {
|
|
"provider": "v8",
|
|
"reporter": [
|
|
"text",
|
|
"lcov"
|
|
],
|
|
"thresholds": {
|
|
"lines": 70,
|
|
"functions": 70,
|
|
"branches": 70,
|
|
"statements": 70
|
|
},
|
|
"include": [
|
|
"src/**/*.ts"
|
|
],
|
|
"exclude": [
|
|
"src/**/*.test.ts"
|
|
]
|
|
},
|
|
"include": [
|
|
"src/**/*.test.ts"
|
|
],
|
|
"exclude": [
|
|
"dist/**",
|
|
"apps/macos/**",
|
|
"apps/macos/.build/**",
|
|
"**/vendor/**",
|
|
"apps/macos/.build/**",
|
|
"dist/Clawdis.app/**"
|
|
]
|
|
}
|
|
}
|