@kevisual/cnb 0.0.33 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,7 +35,7 @@ app.route({
35
35
  path: 'cnb',
36
36
  key: 'clean-closed-workspace',
37
37
  description: '批量删除已停止的cnb工作空间',
38
- middleware: ['admin-auth'],
38
+ middleware: ['auth-admin'],
39
39
  metadata: {
40
40
  tags: ['opencode'],
41
41
  ...createSkill({
@@ -45,7 +45,7 @@ app.route({
45
45
  })
46
46
  }
47
47
  }).define(async (ctx) => {
48
- const closedWorkspaces = await cnb.workspace.list({ status: 'closed' });
48
+ const closedWorkspaces = await cnb.workspace.list({ status: 'closed', pageSize: 100 });
49
49
  if (closedWorkspaces.code !== 200) {
50
50
  ctx.throw(500, '获取已关闭工作空间列表失败');
51
51
  }