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