yuanflow-cli 0.1.40 → 0.1.42
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.
- package/README.md +121 -10
- package/generated/registry.json +985 -984
- package/package.json +1 -1
- package/scripts/generate-registry.js +1 -1
- package/skills/yuanflow-skill/README.md +16 -12
- package/skills/yuanflow-skill/SKILL.md +41 -11
- package/skills/yuanflow-skill/{OSS → YuanFlow}/346/226/207/344/273/266/344/270/255/350/275/254/345/267/245/345/205/267/SKILL.md +13 -13
- package/skills/yuanflow-skill/yuanflow-cli/SKILL.md +8 -8
- package/skills/yuanflow-skill//344/270/252/344/272/272/345/210/233/344/275/234/345/272/223/SKILL.md +2 -2
- package/skills/yuanflow-skill//344/275/234/345/223/201/344/270/213/350/275/275/347/273/274/345/220/210/345/267/245/345/205/267/SKILL.md +4 -4
- package/skills/yuanflow-skill//344/275/234/345/223/201/350/257/204/350/256/272/351/207/207/351/233/206/SKILL.md +4 -4
- package/skills/yuanflow-skill//344/275/234/345/223/201/350/257/246/346/203/205/350/216/267/345/217/226/345/267/245/345/205/267/SKILL.md +3 -3
- package/skills/yuanflow-skill//345/205/254/344/274/227/345/217/267/347/224/237/346/210/220/344/270/216/345/217/221/345/270/203/SKILL.md +3 -3
- package/skills/yuanflow-skill//345/205/254/344/274/227/345/217/267/347/224/237/346/210/220/344/270/216/345/217/221/345/270/203/tests/test_wechat_draft.py +176 -0
- package/skills/yuanflow-skill//345/260/217/347/272/242/344/271/246/350/277/220/350/220/245/SKILL.md +1 -1
- package/skills/yuanflow-skill//345/270/220/345/217/267/347/233/221/346/216/247/SKILL.md +3 -3
- package/skills/yuanflow-skill//347/224/237/345/233/276/346/212/200/350/203/275/SKILL.md +1 -1
- package/skills/yuanflow-skill//347/273/274/345/220/210/346/220/234/347/264/242/345/267/245/345/205/267/SKILL.md +3 -3
- package/skills/yuanflow-skill//347/273/274/345/220/210/347/224/250/346/210/267/346/220/234/347/264/242/345/267/245/345/205/267/SKILL.md +3 -3
- package/skills/yuanflow-skill//350/207/252/345/252/222/344/275/223/346/265/217/350/247/210/345/231/250/350/207/252/345/212/250/345/214/226/SKILL.md +1 -1
- package/skills/yuanflow-skill//350/207/252/345/252/222/344/275/223/347/237/245/350/257/206/345/272/223/SKILL.md +4 -4
- package/skills/yuanflow-skill//350/247/206/350/247/211/347/220/206/350/247/243/SKILL.md +174 -0
- package/skills/yuanflow-skill//350/247/206/351/242/221/346/212/225/346/265/201/347/255/226/347/225/245/SKILL.md +1 -1
- package/skills/yuanflow-skill//350/247/206/351/242/221/346/213/206/350/247/243/SKILL.md +245 -0
- package/skills/yuanflow-skill//350/247/206/351/242/221/346/231/272/350/203/275/345/211/252/350/276/221/SKILL.md +4 -4
- package/skills/yuanflow-skill//351/237/263/350/247/206/351/242/221/345/234/250/347/272/277/350/275/254/346/226/207/345/255/227/SKILL.md +11 -11
- package/skills/yuanflow-skill//351/243/236/344/271/246/345/256/230/346/226/271/346/212/200/350/203/275/SKILL.md +1 -1
- package/src/agent-protocol.js +8 -5
- package/src/ai-tools.js +835 -0
- package/src/cli.js +36 -2
- package/src/comment-collector.js +1 -1
- package/src/oss-tools.js +11 -11
- package/src/shortcuts.js +3 -3
- package/src/trending-tools.js +1 -1
- package/src/work-tools.js +4 -4
package/src/agent-protocol.js
CHANGED
|
@@ -7,6 +7,7 @@ import { listBrowserCommands } from './browser-tools.js';
|
|
|
7
7
|
import { listSearchCommands, listWorkCommands } from './work-tools.js';
|
|
8
8
|
import { listVideoCommands } from './video-tools.js';
|
|
9
9
|
import { listTrendingCommands } from './trending-tools.js';
|
|
10
|
+
import { listAiCommands } from './ai-tools.js';
|
|
10
11
|
|
|
11
12
|
const ERROR_MAP = [
|
|
12
13
|
{
|
|
@@ -33,19 +34,19 @@ const ERROR_MAP = [
|
|
|
33
34
|
test: (message) => message.includes('HTTP 401') || message.includes('HTTP 403'),
|
|
34
35
|
},
|
|
35
36
|
{
|
|
36
|
-
code: '
|
|
37
|
+
code: 'YUANFLOW_CONFIG_ERROR',
|
|
37
38
|
exitCode: 4,
|
|
38
39
|
retryable: false,
|
|
39
40
|
test: (message) => message.includes('原子能力主站令牌未配置'),
|
|
40
41
|
},
|
|
41
42
|
{
|
|
42
|
-
code: '
|
|
43
|
+
code: 'PLATFORM_SERVICE_ERROR',
|
|
43
44
|
exitCode: 4,
|
|
44
45
|
retryable: true,
|
|
45
46
|
test: (message) => /HTTP 5\d\d/.test(message),
|
|
46
47
|
},
|
|
47
48
|
{
|
|
48
|
-
code: '
|
|
49
|
+
code: 'YUANFLOW_ROUTE_MISSING',
|
|
49
50
|
exitCode: 4,
|
|
50
51
|
retryable: false,
|
|
51
52
|
test: (message) =>
|
|
@@ -111,6 +112,7 @@ export function buildCommandRegistry() {
|
|
|
111
112
|
const browserCommands = listBrowserCommands();
|
|
112
113
|
const videoCommands = listVideoCommands();
|
|
113
114
|
const trendingCommands = listTrendingCommands();
|
|
115
|
+
const aiCommands = listAiCommands();
|
|
114
116
|
return [
|
|
115
117
|
...shortcuts,
|
|
116
118
|
...endpoints,
|
|
@@ -122,6 +124,7 @@ export function buildCommandRegistry() {
|
|
|
122
124
|
...browserCommands,
|
|
123
125
|
...videoCommands,
|
|
124
126
|
...trendingCommands,
|
|
127
|
+
...aiCommands,
|
|
125
128
|
].sort((left, right) => left.key.localeCompare(right.key));
|
|
126
129
|
}
|
|
127
130
|
|
|
@@ -151,7 +154,7 @@ export function commandToSchema(command) {
|
|
|
151
154
|
queryParams: command.queryParams || [],
|
|
152
155
|
requestBody: command.requestBody || null,
|
|
153
156
|
},
|
|
154
|
-
returns: command.returns || '
|
|
157
|
+
returns: command.returns || '返回字段以 YuanFlow API 实际响应为准。',
|
|
155
158
|
};
|
|
156
159
|
}
|
|
157
160
|
|
|
@@ -192,7 +195,7 @@ function endpointToCommand(endpoint) {
|
|
|
192
195
|
})),
|
|
193
196
|
queryParams: endpoint.queryParams || [],
|
|
194
197
|
requestBody: endpoint.bodyExample,
|
|
195
|
-
returns: '
|
|
198
|
+
returns: '返回字段以 YuanFlow API 实际响应为准。',
|
|
196
199
|
};
|
|
197
200
|
}
|
|
198
201
|
|