优化noco-agent功能和修复相关问题

- 修复Core类中的类型定义和拼写错误
- 添加tableId参数支持到NocoLifeService
- 优化认证逻辑,支持环境变量配置
- 增强配置功能,返回当前配置信息
- 改进任务完成功能,支持批量操作
- 添加记录创建和更新功能
- 更新依赖包版本
- 修复导出类型定义

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-10 17:46:45 +08:00
parent df385f00ed
commit 22fac88d01
10 changed files with 238 additions and 90 deletions

View File

@@ -1,4 +1,4 @@
import { app, sleep } from './common';
import { app, sleep, token } from './common.ts';
const res = await app.call({
@@ -8,8 +8,13 @@ const res = await app.call({
// question: '今天我需要做什么事情?',
// question: '任务5 完成了,帮我判断下一次运行时间应该是什么时候?',
// question: '任务59 完成了',
question: '我的多维表格配置'
}
// question: '我的多维表格配置'
// question: '记录一下,今天洗了澡',
// question: '编辑任务123进行补充, 对opencode进行描述介绍。',
// question: '编辑任务94对内容注释',
question: '任务59和124完成了',
token: token,
},
})
console.log('res', res.code, res.body, res.message);

View File

@@ -6,13 +6,15 @@ import { BailianProvider } from '@kevisual/ai';
import dotenv from 'dotenv';
dotenv.config();
console.log('process.env.BAILIAN_API_KEY', process.env.BAILIAN_API_KEY);
const token = process.env.KEVISUAL_API_TOKEN || '';
const ai = useContextKey('ai', () => {
return new BailianProvider({
apiKey: process.env.BAILIAN_API_KEY || '',
model: 'qwen-turbo'
model: 'qwen-plus'
});
});
export {
app,
ai,
token,
}