更新代码仓库相关功能,修改 API 参数,添加删除仓库功能,更新文档和测试用例

This commit is contained in:
xiongxiao
2026-01-16 03:46:14 +08:00
parent d85f42d38b
commit f10f588ea5
10 changed files with 208 additions and 45 deletions

37
test/agent.ts Normal file
View File

@@ -0,0 +1,37 @@
import { app, showMore } from './common.ts';
// const res = await app.run({
// path: 'cnb',
// key: 'create-repo',
// payload: {
// name: 'kevisual/exam',
// description: 'kevisual 创建的代码仓库',
// visibility: 'public',
// }
// })
// console.log(showMore(res));
// const res2 = await app.run({
// path: 'cnb',
// key: 'create-repo-file',
// payload: {
// name: 'kevisual/exam',
// path: 'README.md',
// content: '# Example Skill\nThis is an example skill created via API.',
// encoding: 'raw',
// },
// })
// console.log(showMore(res2));
// const deleteRes = await app.run({
// path: 'cnb',
// key: 'delete-repo',
// payload: {
// name: 'kevisual/exam',
// },
// })
// console.log(showMore(deleteRes));