Notice: after bumping up to three 0.180.0 with @types/three 0.180.0,
Argument of type 'Group<Object3DEventMap>' is not assignable to parameter of type 'Object3D<Object3DEventMap>'.
Type 'Group<Object3DEventMap>' is missing the following properties from type 'Object3D<Object3DEventMap>': setPointerCapture, releasePointerCapture, hasPointerCapture
Currently, AFAIK, clearly, three, and @types/three doesn't have the setPointerCapture, releasePointerCapture, hasPointerCapture method / getters
The only place I found on GitHub, points out that https://github.com/pmndrs/xr/blob/456aa380206e93888cd3a5741a1534e672ae3106/packages/pointer-events/src/pointer.ts#L69-L100 declares
```js
declare module 'three' {
interface Object3D {
setPointerCapture(pointerId: number): void
releasePointerCapture(pointerId: number): void
hasPointerCapture(pointerId: number): boolean
intersectChildren?: boolean
interactableDescendants?: Array<Object3D>
/**
* @deprecated
*/
ancestorsHaveListeners?: boolean
ancestorsHavePointerListeners?: boolean
ancestorsHaveWheelListeners?: boolean
}
}
```
And in @tresjs/core v5, it uses the @pmndrs/pointer-events internally.
Somehow the Object3D from @types/three and the one augmented by @pmndrs/pointer-events are not compatible.
`new Object3D() as unknown as Object3D` works as workaround here but there should be no need to do such a thing since these two Object3D should be the same.
With no updates from `typescript`, I assume there is no breaking change or regression from `typescript` side.
67 lines
2.2 KiB
JSON
67 lines
2.2 KiB
JSON
{
|
|
"name": "@proj-airi/telegram-bot",
|
|
"type": "module",
|
|
"private": true,
|
|
"description": "Telegram bot for AIRI",
|
|
"author": {
|
|
"name": "Moeru AI Project AIRI Team",
|
|
"email": "airi@moeru.ai",
|
|
"url": "https://github.com/moeru-ai"
|
|
},
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/moeru-ai/airi.git",
|
|
"directory": "services/telegram-bot"
|
|
},
|
|
"scripts": {
|
|
"start": "dotenvx run -f .env -f .env.local --overload --ignore=MISSING_ENV_FILE -- tsx --max-old-space-size=8192 src/index.ts",
|
|
"db:generate": "drizzle-kit generate",
|
|
"db:push": "dotenvx run -f .env -f .env.local --overload --ignore=MISSING_ENV_FILE -- drizzle-kit push",
|
|
"script:embed-chat": "dotenvx run -f .env -f .env.local --overload --ignore=MISSING_ENV_FILE -- tsx scripts/embed-all-chat-messages.ts",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@dotenvx/dotenvx": "^1.51.0",
|
|
"@ffmpeg-installer/ffmpeg": "^1.1.0",
|
|
"@grammyjs/files": "^1.2.0",
|
|
"@guiiai/logg": "catalog:",
|
|
"@moeru/std": "catalog:",
|
|
"@opentelemetry/api": "^1.9.0",
|
|
"@opentelemetry/auto-instrumentations-node": "^0.64.1",
|
|
"@opentelemetry/exporter-metrics-otlp-proto": "^0.205.0",
|
|
"@opentelemetry/exporter-trace-otlp-proto": "^0.205.0",
|
|
"@opentelemetry/instrumentation-pg": "^0.58.0",
|
|
"@opentelemetry/resources": "^2.1.0",
|
|
"@opentelemetry/sdk-metrics": "^2.1.0",
|
|
"@opentelemetry/sdk-node": "^0.205.0",
|
|
"@opentelemetry/sdk-trace-node": "^2.1.0",
|
|
"@opentelemetry/semantic-conventions": "^1.37.0",
|
|
"@velin-dev/core": "^0.3.1",
|
|
"@xsai-ext/providers-cloud": "catalog:",
|
|
"@xsai/embed": "catalog:",
|
|
"@xsai/generate-text": "catalog:",
|
|
"@xsai/shared-chat": "catalog:",
|
|
"@xsai/tool": "catalog:",
|
|
"@xsai/utils-chat": "catalog:",
|
|
"best-effort-json-parser": "^1.2.1",
|
|
"dotenv": "^17.2.2",
|
|
"drizzle-orm": "^0.44.5",
|
|
"es-toolkit": "^1.39.10",
|
|
"fluent-ffmpeg": "^2.1.3",
|
|
"grammy": "^1.38.2",
|
|
"nanoid": "^5.1.6",
|
|
"p-limit": "^7.1.1",
|
|
"pg": "^8.16.3",
|
|
"sharp": "^0.34.4",
|
|
"telegram": "^2.26.22",
|
|
"uuid": "^13.0.0",
|
|
"valibot": "1.0.0-beta.9"
|
|
},
|
|
"devDependencies": {
|
|
"@types/pg": "^8.15.5",
|
|
"drizzle-kit": "^0.31.4",
|
|
"tsx": "^4.20.6"
|
|
}
|
|
}
|