feat: implement AI agent for flowme-life interactions

- Add agent-run module to handle AI interactions with tools and messages.
- Create routes for proxying requests to OpenAI and Anthropic APIs.
- Implement flowme-life chat route for user queries and task management.
- Add services for retrieving and updating life records in the database.
- Implement logic for fetching today's tasks and marking tasks as done with next execution time calculation.
- Introduce tests for flowme-life functionalities.
This commit is contained in:
2026-03-11 01:44:29 +08:00
parent 027cbecab6
commit 66a19139b7
22 changed files with 5190 additions and 676 deletions

View File

@@ -41,14 +41,14 @@
],
"license": "UNLICENSED",
"dependencies": {
"@kevisual/ai": "^0.0.26",
"@kevisual/ai": "^0.0.27",
"@kevisual/auth": "^2.0.3",
"@kevisual/js-filter": "^0.0.5",
"@kevisual/query": "^0.0.52",
"@kevisual/js-filter": "^0.0.6",
"@kevisual/query": "^0.0.53",
"@types/busboy": "^1.5.4",
"@types/send": "^1.2.1",
"@types/ws": "^8.18.1",
"bullmq": "^5.70.2",
"bullmq": "^5.70.4",
"busboy": "^1.6.0",
"drizzle-kit": "^0.31.9",
"drizzle-orm": "^0.45.1",
@@ -58,26 +58,28 @@
"xml2js": "^0.6.2"
},
"devDependencies": {
"@aws-sdk/client-s3": "^3.1002.0",
"@ai-sdk/openai-compatible": "^2.0.35",
"@aws-sdk/client-s3": "^3.1005.0",
"@kevisual/api": "^0.0.62",
"@kevisual/cnb": "^0.0.33",
"@kevisual/cnb": "^0.0.42",
"@kevisual/context": "^0.0.8",
"@kevisual/convex": "^0.0.4",
"@kevisual/convex": "^0.0.6",
"@kevisual/local-app-manager": "0.1.32",
"@kevisual/logger": "^0.0.4",
"@kevisual/oss": "0.0.20",
"@kevisual/permission": "^0.0.4",
"@kevisual/router": "0.0.85",
"@kevisual/router": "0.1.0",
"@kevisual/types": "^0.0.12",
"@kevisual/use-config": "^1.0.30",
"@types/archiver": "^7.0.0",
"@types/bun": "^1.3.10",
"@types/crypto-js": "^4.2.2",
"@types/jsonwebtoken": "^9.0.10",
"@types/node": "^25.3.3",
"@types/node": "^25.4.0",
"@types/pg": "^8.18.0",
"@types/semver": "^7.7.1",
"@types/xml2js": "^0.4.14",
"ai": "^6.0.116",
"archiver": "^7.0.1",
"convex": "^1.32.0",
"crypto-js": "^4.2.0",
@@ -87,6 +89,7 @@
"es-toolkit": "^1.45.1",
"ioredis": "^5.10.0",
"jsonwebtoken": "^9.0.3",
"lunar": "^2.0.0",
"nanoid": "^5.1.6",
"p-queue": "^9.1.0",
"pg": "^8.20.0",
@@ -99,7 +102,7 @@
"picomatch": "^4.0.2",
"ioredis": "^5.9.3"
},
"packageManager": "pnpm@10.30.3",
"packageManager": "pnpm@10.32.0",
"workspaces": [
"wxmsg"
]