@cnbcool/cnb-api-generate 2.18.15 → 2.18.16

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.
@@ -131,13 +131,19 @@ export async function executeAction(
131
131
  }
132
132
 
133
133
  if (shortcut?.tool === '__skills-list__') {
134
- const result = skillsList({
135
- global: !!opts.global,
136
- project: !!opts.project,
137
- agent: (opts.agent as string) || undefined,
138
- json: !!opts.json,
139
- });
140
- console.log(result);
134
+ try {
135
+ const result = skillsList({
136
+ global: !!opts.global,
137
+ project: !!opts.project,
138
+ agent: (opts.agent as string) || undefined,
139
+ json: !!opts.json,
140
+ });
141
+ console.log(result);
142
+ } catch (e: any) {
143
+ console.error(`错误:${e.message}`);
144
+ console.error(`Error: ${e.message}`);
145
+ process.exitCode = 1;
146
+ }
141
147
  return;
142
148
  }
143
149
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cnbcool/cnb-api-generate",
3
- "version": "2.18.15",
3
+ "version": "2.18.16",
4
4
  "main": "./built/index.js",
5
5
  "module": "./src/index.ts",
6
6
  "types": "./src/index.ts",