更新代码仓库相关功能,修改 API 参数,添加删除仓库功能,更新文档和测试用例
This commit is contained in:
37
test/agent.ts
Normal file
37
test/agent.ts
Normal 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));
|
||||
Reference in New Issue
Block a user