@comate/zulu 0.2.1-beta.2 → 0.2.2
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 +1 -0
- package/comate-engine/bin/comate.js +9 -0
- package/comate-engine/node_modules/@comate/plugin-engine/dist/index.js +8 -8
- package/comate-engine/node_modules/@comate/plugin-host/dist/index.js +1 -1
- package/comate-engine/node_modules/@comate/plugin-host/dist/main.js +1 -1
- package/comate-engine/node_modules/@comate/plugin-host/dist/user-DQgjkMe9.js +44 -0
- package/comate-engine/node_modules/@comate/plugin-shared-internals/dist/index.d.ts +24 -6
- package/comate-engine/node_modules/@comate/plugin-shared-internals/dist/index.js +8 -8
- package/comate-engine/node_modules/@comate/preview-proxy/dist/index.js +59 -72
- package/comate-engine/node_modules/@comate/preview-proxy/static/comate-preview-injector.css +1 -1
- package/comate-engine/node_modules/@comate/preview-proxy/static/comate-preview-injector.js +1 -1
- package/comate-engine/node_modules/better-sqlite3/node_modules/.bin/prebuild-install +2 -2
- package/comate-engine/plugins/demo-feature/dist/index.js +337 -30
- package/comate-engine/server.js +11 -11
- package/dist/bundle/index.js +8 -8
- package/package.json +1 -1
- package/comate-engine/node_modules/@comate/plugin-host/dist/user-Buhpnssj.js +0 -44
- package/comate-engine/plugins/aiscan/assets/icon.svg +0 -12
- package/comate-engine/plugins/aiscan/dist/index.js +0 -53861
- package/comate-engine/plugins/aiscan/package.json +0 -67
- package/comate-engine/plugins/appdev/assets/icon.png +0 -0
- package/comate-engine/plugins/appdev/dist/help.md +0 -12
- package/comate-engine/plugins/appdev/dist/index.d.ts +0 -2
- package/comate-engine/plugins/appdev/dist/index.js +0 -194
- package/comate-engine/plugins/appdev/dist/providers/err.d.ts +0 -8
- package/comate-engine/plugins/appdev/dist/providers/err.js +0 -37
- package/comate-engine/plugins/appdev/dist/providers/fallback.d.ts +0 -5
- package/comate-engine/plugins/appdev/dist/providers/fallback.js +0 -28
- package/comate-engine/plugins/appdev/dist/providers/help.d.ts +0 -8
- package/comate-engine/plugins/appdev/dist/providers/help.js +0 -19
- package/comate-engine/plugins/appdev/dist/providers/medusa.d.ts +0 -8
- package/comate-engine/plugins/appdev/dist/providers/medusa.js +0 -39
- package/comate-engine/plugins/appdev/dist/providers/qa.d.ts +0 -8
- package/comate-engine/plugins/appdev/dist/providers/qa.js +0 -33
- package/comate-engine/plugins/appdev/package.json +0 -67
- package/comate-engine/plugins/bfc/assets/bfc-icon.png +0 -0
- package/comate-engine/plugins/bfc/dist/config/config.d.ts +0 -4
- package/comate-engine/plugins/bfc/dist/config/config.js +0 -4
- package/comate-engine/plugins/bfc/dist/help.md +0 -11
- package/comate-engine/plugins/bfc/dist/index.d.ts +0 -2
- package/comate-engine/plugins/bfc/dist/index.js +0 -452
- package/comate-engine/plugins/bfc/dist/providers/bfcInstructMode.d.ts +0 -8
- package/comate-engine/plugins/bfc/dist/providers/bfcInstructMode.js +0 -77
- package/comate-engine/plugins/bfc/dist/providers/genAbnormalCode.d.ts +0 -8
- package/comate-engine/plugins/bfc/dist/providers/genAbnormalCode.js +0 -71
- package/comate-engine/plugins/bfc/dist/providers/genBfcCode.d.ts +0 -8
- package/comate-engine/plugins/bfc/dist/providers/genBfcCode.js +0 -74
- package/comate-engine/plugins/bfc/dist/providers/getBatchCases.d.ts +0 -10
- package/comate-engine/plugins/bfc/dist/providers/getBatchCases.js +0 -71
- package/comate-engine/plugins/bfc/dist/providers/help.d.ts +0 -8
- package/comate-engine/plugins/bfc/dist/providers/help.js +0 -19
- package/comate-engine/plugins/bfc/dist/service/generateService.d.ts +0 -14
- package/comate-engine/plugins/bfc/dist/service/generateService.js +0 -27
- package/comate-engine/plugins/bfc/package.json +0 -85
- package/comate-engine/plugins/bpm/assets/bpm.png +0 -0
- package/comate-engine/plugins/bpm/dist/index.js +0 -313
- package/comate-engine/plugins/bpm/package.json +0 -65
- package/comate-engine/plugins/casebuilder/assets/icon.svg +0 -1
- package/comate-engine/plugins/casebuilder/dist/help.md +0 -33
- package/comate-engine/plugins/casebuilder/dist/index.js +0 -837
- package/comate-engine/plugins/casebuilder/package.json +0 -80
- package/comate-engine/plugins/centrino/assets/icon.png +0 -0
- package/comate-engine/plugins/centrino/dist/help.md +0 -30
- package/comate-engine/plugins/centrino/dist/index.js +0 -1046
- package/comate-engine/plugins/centrino/package.json +0 -68
- package/comate-engine/plugins/cnap/assets/cnap.png +0 -0
- package/comate-engine/plugins/cnap/dist/help.md +0 -11
- package/comate-engine/plugins/cnap/dist/index.js +0 -171
- package/comate-engine/plugins/cnap/package.json +0 -65
- package/comate-engine/plugins/demo-timer/assets/icon.svg +0 -2
- package/comate-engine/plugins/demo-timer/dist/index.js +0 -463
- package/comate-engine/plugins/demo-timer/package.json +0 -73
- package/comate-engine/plugins/dev-tools/assets/icon.png +0 -0
- package/comate-engine/plugins/dev-tools/dist/help.md +0 -18
- package/comate-engine/plugins/dev-tools/dist/index.js +0 -166160
- package/comate-engine/plugins/dev-tools/package.json +0 -95
- package/comate-engine/plugins/devaux/assets/icon.svg +0 -1
- package/comate-engine/plugins/devaux/dist/help.md +0 -41
- package/comate-engine/plugins/devaux/dist/index.js +0 -74138
- package/comate-engine/plugins/devaux/dist/static/tree-sitter-cpp.wasm +0 -0
- package/comate-engine/plugins/devaux/dist/static/tree-sitter-go.wasm +0 -0
- package/comate-engine/plugins/devaux/dist/static/tree-sitter.wasm +0 -0
- package/comate-engine/plugins/devaux/dist/tree-sitter.wasm +0 -0
- package/comate-engine/plugins/devaux/package.json +0 -83
- package/comate-engine/plugins/f2c/assets/icon.svg +0 -11
- package/comate-engine/plugins/f2c/dist/help.md +0 -13
- package/comate-engine/plugins/f2c/dist/index.js +0 -81787
- package/comate-engine/plugins/f2c/package.json +0 -56
- package/comate-engine/plugins/fcnap/assets/icon.png +0 -0
- package/comate-engine/plugins/fcnap/dist/help.md +0 -9
- package/comate-engine/plugins/fcnap/dist/index.js +0 -105
- package/comate-engine/plugins/fcnap/package.json +0 -50
- package/comate-engine/plugins/front-end-skills/assets/icon.svg +0 -1
- package/comate-engine/plugins/front-end-skills/dist/help.md +0 -17
- package/comate-engine/plugins/front-end-skills/dist/index.js +0 -8172
- package/comate-engine/plugins/front-end-skills/package.json +0 -79
- package/comate-engine/plugins/gdp/assets/icon.png +0 -0
- package/comate-engine/plugins/gdp/dist/help.md +0 -11
- package/comate-engine/plugins/gdp/dist/index.js +0 -53065
- package/comate-engine/plugins/gdp/package.json +0 -79
- package/comate-engine/plugins/git/assets/git.svg +0 -1
- package/comate-engine/plugins/git/assets/icon.svg +0 -1
- package/comate-engine/plugins/git/dist/help.md +0 -7
- package/comate-engine/plugins/git/dist/index.js +0 -32675
- package/comate-engine/plugins/git/package.json +0 -91
- package/comate-engine/plugins/harmonyos/assets/harmonyos.png +0 -0
- package/comate-engine/plugins/harmonyos/dist/index.js +0 -78
- package/comate-engine/plugins/harmonyos/package.json +0 -37
- package/comate-engine/plugins/iapi/assets/icon.png +0 -0
- package/comate-engine/plugins/iapi/dist/help.md +0 -13
- package/comate-engine/plugins/iapi/dist/index.js +0 -458
- package/comate-engine/plugins/iapi/dist/static/lang/tree-sitter-go.wasm +0 -0
- package/comate-engine/plugins/iapi/dist/static/lang/tree-sitter-java.wasm +0 -0
- package/comate-engine/plugins/iapi/dist/static/tree-sitter-go.wasm +0 -0
- package/comate-engine/plugins/iapi/dist/static/tree-sitter-java.wasm +0 -0
- package/comate-engine/plugins/iapi/dist/tree-sitter.wasm +0 -0
- package/comate-engine/plugins/iapi/package.json +0 -102
- package/comate-engine/plugins/icafe/assets/icafe.svg +0 -1
- package/comate-engine/plugins/icafe/dist/help.md +0 -5
- package/comate-engine/plugins/icafe/dist/index.js +0 -885
- package/comate-engine/plugins/icafe/package.json +0 -74
- package/comate-engine/plugins/ievalue/assets/iEValue.svg +0 -10
- package/comate-engine/plugins/ievalue/dist/index.js +0 -2920
- package/comate-engine/plugins/ievalue/package.json +0 -88
- package/comate-engine/plugins/ipipe/assets/iPipePlugin.png +0 -0
- package/comate-engine/plugins/ipipe/dist/help.md +0 -15
- package/comate-engine/plugins/ipipe/dist/index.js +0 -7264
- package/comate-engine/plugins/ipipe/package.json +0 -62
- package/comate-engine/plugins/jarvis/assets/icon.svg +0 -1
- package/comate-engine/plugins/jarvis/dist/help.md +0 -17
- package/comate-engine/plugins/jarvis/dist/index.js +0 -140416
- package/comate-engine/plugins/jarvis/package.json +0 -93
- package/comate-engine/plugins/mapsearch/assets/mapsearchicon.png +0 -0
- package/comate-engine/plugins/mapsearch/dist/help.md +0 -4
- package/comate-engine/plugins/mapsearch/dist/index.js +0 -145
- package/comate-engine/plugins/mapsearch/package.json +0 -53
- package/comate-engine/plugins/paddle/assets/icon.png +0 -0
- package/comate-engine/plugins/paddle/assets/paconvert-3.0.1-py3-none-any.whl +0 -0
- package/comate-engine/plugins/paddle/dist/help.md +0 -31
- package/comate-engine/plugins/paddle/dist/index.js +0 -1011
- package/comate-engine/plugins/paddle/package.json +0 -129
- package/comate-engine/plugins/robot/assets/Robot.png +0 -0
- package/comate-engine/plugins/robot/dist/index.js +0 -288
- package/comate-engine/plugins/robot/package.json +0 -67
- package/comate-engine/plugins/security/assets/comate.png +0 -0
- package/comate-engine/plugins/security/dist/index.js +0 -18393
- package/comate-engine/plugins/security/package.json +0 -82
- package/comate-engine/plugins/smartapp/assets/icon.png +0 -0
- package/comate-engine/plugins/smartapp/dist/help.md +0 -4
- package/comate-engine/plugins/smartapp/dist/index.js +0 -113
- package/comate-engine/plugins/smartapp/package.json +0 -54
- package/comate-engine/plugins/testmate/assets/icon.svg +0 -1
- package/comate-engine/plugins/testmate/dist/help.md +0 -62
- package/comate-engine/plugins/testmate/dist/index.js +0 -21483
- package/comate-engine/plugins/testmate/package.json +0 -85
- package/comate-engine/plugins/tor/assets/TorPlugin.png +0 -0
- package/comate-engine/plugins/tor/dist/help.md +0 -22
- package/comate-engine/plugins/tor/dist/index.js +0 -807
- package/comate-engine/plugins/tor/package.json +0 -99
- package/comate-engine/plugins/weiyun/assets/icon.png +0 -0
- package/comate-engine/plugins/weiyun/dist/help.md +0 -11
- package/comate-engine/plugins/weiyun/dist/index.js +0 -100491
- package/comate-engine/plugins/weiyun/package.json +0 -55
- package/comate-engine/plugins/workcard/assets/favicon.png +0 -0
- package/comate-engine/plugins/workcard/dist/help.md +0 -30
- package/comate-engine/plugins/workcard/dist/index.js +0 -490
- package/comate-engine/plugins/workcard/package.json +0 -95
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"private": true,
|
|
3
|
-
"name": "@comate-plugin/security",
|
|
4
|
-
"version": "0.9.2",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"clean": "rm -rf dist",
|
|
8
|
-
"dev": "cpd dev",
|
|
9
|
-
"build": "npm run clean && tsc && cpd build",
|
|
10
|
-
"lint": "eslint src",
|
|
11
|
-
"test": "vitest",
|
|
12
|
-
"format": "dprint fmt '**/*.{ts,tsx,json}'"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@comate/plugin-cli": "^0.9.2",
|
|
16
|
-
"@comate/plugin-host": "^0.9.2",
|
|
17
|
-
"@comate/plugin-shared-internals": "^0.9.2",
|
|
18
|
-
"@types/pako": "^2.0.3",
|
|
19
|
-
"@types/ws": "^8.18.1",
|
|
20
|
-
"vitest": "^1.2.2"
|
|
21
|
-
},
|
|
22
|
-
"comate": {
|
|
23
|
-
"name": "security",
|
|
24
|
-
"version": "2.7.5",
|
|
25
|
-
"icon": "./assets/comate.png",
|
|
26
|
-
"entry": "./dist/index.js",
|
|
27
|
-
"displayName": "Comate",
|
|
28
|
-
"description": "代码安全检测、扫描",
|
|
29
|
-
"keyword": [
|
|
30
|
-
"安全",
|
|
31
|
-
"扫描",
|
|
32
|
-
"sca",
|
|
33
|
-
"sast",
|
|
34
|
-
"供应链",
|
|
35
|
-
"代码漏洞"
|
|
36
|
-
],
|
|
37
|
-
"capabilities": [
|
|
38
|
-
{
|
|
39
|
-
"type": "Skill",
|
|
40
|
-
"name": "codeScan",
|
|
41
|
-
"displayName": "代码安全",
|
|
42
|
-
"description": "代码安全",
|
|
43
|
-
"displayTag": "beta",
|
|
44
|
-
"defaultUserMessage": "为我的代码库扫描可能的安全漏洞",
|
|
45
|
-
"placeholder": "回车或点击发送发起检测"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"type": "Secubot",
|
|
49
|
-
"name": "secubot",
|
|
50
|
-
"displayName": "代码安全",
|
|
51
|
-
"description": "代码安全",
|
|
52
|
-
"defaultUserMessage": "为我的代码库扫描、修复可能的安全漏洞",
|
|
53
|
-
"placeholder": "回车或点击发送发起检测"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"type": "Fallback",
|
|
57
|
-
"name": "vulRepair",
|
|
58
|
-
"displayName": "漏洞修复",
|
|
59
|
-
"description": "漏洞修复"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"type": "DiagnosticScan",
|
|
63
|
-
"name": "diagnosticScan",
|
|
64
|
-
"displayName": "漏洞修复",
|
|
65
|
-
"description": "代码安全"
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
"configSchema": {
|
|
69
|
-
"sections": []
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
"dependencies": {
|
|
73
|
-
"@comate/plugin-host": "^0.9.2",
|
|
74
|
-
"async-mutex": "^0.5.0",
|
|
75
|
-
"fast-glob": "^3.3.2",
|
|
76
|
-
"ignore": "^7.0.5",
|
|
77
|
-
"pako": "^2.1.0",
|
|
78
|
-
"slash": "^5.1.0",
|
|
79
|
-
"watcher": "^2.3.0",
|
|
80
|
-
"ws": "^8.18.1"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
Binary file
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { SkillProvider, TaskProgressChunkStream, TextModel, FallbackProvider, StringChunkStream } from '@comate/plugin-host';
|
|
2
|
-
import { readFileSync } from 'fs';
|
|
3
|
-
import { fileURLToPath } from 'node:url';
|
|
4
|
-
import { dirname } from 'path';
|
|
5
|
-
|
|
6
|
-
class HelpSkillProvider extends SkillProvider {
|
|
7
|
-
static{
|
|
8
|
-
this.skillName = 'smartapp-help';
|
|
9
|
-
}
|
|
10
|
-
static{
|
|
11
|
-
this.description = '插件介绍';
|
|
12
|
-
}
|
|
13
|
-
static{
|
|
14
|
-
this.parameters = {
|
|
15
|
-
type: 'object',
|
|
16
|
-
properties: {}
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
async *execute() {
|
|
20
|
-
const stream = new TaskProgressChunkStream();
|
|
21
|
-
const filename = fileURLToPath(import.meta.url);
|
|
22
|
-
const content = readFileSync(`${dirname(filename)}/help.md`, 'utf8');
|
|
23
|
-
yield stream.flush(content);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
class ChatSkillProvider extends SkillProvider {
|
|
28
|
-
static{
|
|
29
|
-
this.skillName = 'answerQuestion';
|
|
30
|
-
}
|
|
31
|
-
static{
|
|
32
|
-
this.displayName = '百度智能小程序智能问答';
|
|
33
|
-
}
|
|
34
|
-
static{
|
|
35
|
-
this.description = '智能解答关于百度智能小程序的相关问题';
|
|
36
|
-
}
|
|
37
|
-
static{
|
|
38
|
-
this.parameters = {
|
|
39
|
-
type: 'object',
|
|
40
|
-
properties: {}
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
async *execute() {
|
|
44
|
-
const { query } = this.currentContext;
|
|
45
|
-
const stream = new TaskProgressChunkStream();
|
|
46
|
-
if (!query) {
|
|
47
|
-
yield stream.flushReplaceLast('请用自然语言描述你的问题');
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
yield stream.flush('正在思考中,请耐心等候...');
|
|
51
|
-
const knowledge = await this.retriever.knowledgeFromQuery(query, {
|
|
52
|
-
knowledgeSets: [
|
|
53
|
-
{
|
|
54
|
-
uuid: '95dbb877-0d0a-4965-8774-7e988733dab1',
|
|
55
|
-
type: 'NORMAL'
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
});
|
|
59
|
-
const prompt = this.llm.createPrompt(knowledge.length ? '你是百度智能小程序官方助手,不许回答微信小程序,请根据以下背景知识:\n\n{{knowledge}}\n\n回答问题:{{query}}' : '{{query}}', {
|
|
60
|
-
knowledge,
|
|
61
|
-
query
|
|
62
|
-
});
|
|
63
|
-
const chunks = this.llm.askForTextStreaming(prompt, {
|
|
64
|
-
model: TextModel.Default
|
|
65
|
-
});
|
|
66
|
-
yield stream.flushReplaceLast('');
|
|
67
|
-
for await (const chunk of chunks){
|
|
68
|
-
yield stream.flush(chunk);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
class CustomFallbackProvider extends FallbackProvider {
|
|
74
|
-
static{
|
|
75
|
-
this.description = '智能解答关于百度智能小程序的相关问题';
|
|
76
|
-
}
|
|
77
|
-
async *handleQuery() {
|
|
78
|
-
const { query } = this.currentContext;
|
|
79
|
-
const stream = new StringChunkStream();
|
|
80
|
-
if (!query) {
|
|
81
|
-
yield stream.flushReplaceLast('请用自然语言描述你的问题');
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
yield stream.flush('正在思考中,请耐心等候...');
|
|
85
|
-
const knowledge = await this.retriever.knowledgeFromQuery(query, {
|
|
86
|
-
knowledgeSets: [
|
|
87
|
-
{
|
|
88
|
-
uuid: '95dbb877-0d0a-4965-8774-7e988733dab1',
|
|
89
|
-
type: 'NORMAL'
|
|
90
|
-
}
|
|
91
|
-
]
|
|
92
|
-
});
|
|
93
|
-
const prompt = this.llm.createPrompt(knowledge.length ? '你是百度智能小程序官方助手,不许回答微信小程序,请根据以下背景知识:\n\n{{knowledge}}\n\n回答问题:{{query}}' : '{{query}}', {
|
|
94
|
-
knowledge,
|
|
95
|
-
query
|
|
96
|
-
});
|
|
97
|
-
const chunks = this.llm.askForTextStreaming(prompt, {
|
|
98
|
-
model: TextModel.Default
|
|
99
|
-
});
|
|
100
|
-
yield stream.flushReplaceLast('');
|
|
101
|
-
for await (const chunk of chunks){
|
|
102
|
-
yield stream.flush(chunk);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
function setup({ registry }) {
|
|
108
|
-
registry.registerSkillProvider('smartapp-help', HelpSkillProvider);
|
|
109
|
-
registry.registerSkillProvider('chat', ChatSkillProvider);
|
|
110
|
-
registry.registerFallbackProvider('fallback', CustomFallbackProvider, true);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export { setup };
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"private": true,
|
|
3
|
-
"name": "@comate-plugin/smartapp",
|
|
4
|
-
"version": "0.8.0",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"clean": "rm -rf dist",
|
|
8
|
-
"dev": "cpd dev",
|
|
9
|
-
"build": "tsc && cpd build"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {},
|
|
12
|
-
"devDependencies": {
|
|
13
|
-
"@comate/plugin-cli": "^0.9.2",
|
|
14
|
-
"@comate/plugin-host": "^0.9.2",
|
|
15
|
-
"typescript": "^5.3.2"
|
|
16
|
-
},
|
|
17
|
-
"comate": {
|
|
18
|
-
"name": "smartapp",
|
|
19
|
-
"version": "1.0.0",
|
|
20
|
-
"icon": "./assets/icon.png",
|
|
21
|
-
"entry": "./dist/index.js",
|
|
22
|
-
"displayName": "百度智能小程序",
|
|
23
|
-
"description": "小程序官方插件,支持代码生成,智能问答",
|
|
24
|
-
"keyword": [
|
|
25
|
-
"小程序",
|
|
26
|
-
"智能小程序",
|
|
27
|
-
"百度智能小程序"
|
|
28
|
-
],
|
|
29
|
-
"capabilities": [
|
|
30
|
-
{
|
|
31
|
-
"type": "Skill",
|
|
32
|
-
"name": "smartapp-help",
|
|
33
|
-
"displayName": "插件介绍",
|
|
34
|
-
"description": "插件介绍",
|
|
35
|
-
"placeholder": "无需输入内容,回车获得插件介绍"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"type": "Skill",
|
|
39
|
-
"name": "chat",
|
|
40
|
-
"displayName": "智能问答",
|
|
41
|
-
"description": "智能解答关于百度智能小程序的相关问题"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"type": "Fallback",
|
|
45
|
-
"name": "fallback",
|
|
46
|
-
"displayName": "智能问答",
|
|
47
|
-
"description": "智能解答关于百度智能小程序的相关问题"
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"configSchema": {
|
|
51
|
-
"sections": []
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24"><defs><pattern id="d" width="100%" height="100%" patternUnits="objectBoundingBox"><use xlink:href="#a"/></pattern><pattern id="e" width="100%" height="100%" patternUnits="objectBoundingBox"><use xlink:href="#b"/></pattern><image xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAOCAYAAAAbvf3sAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAADKADAAQAAAABAAAADgAAAABpzKk9AAABX0lEQVQoFWWSvU4DMRCExz4nQJBQGlpqHoHX5aGQqCgoaCJEEnKX+7X55pIICayM1o5ndmfXF95ecoklKGedMBH/oPjMfQGxzUUlFIWgE0QEKr8o7C+I7VR0RBTiWUC8rJl0ruzsrpIayERW1qqKc1mX+EfGlkXpeyzqyUrglHWDKIzsOV96mTibfBJMGUtBLejA/VJaInJ5E8cB4rlpJ0k7Ugd2FTYWdP45ZD3eJvXHqK45ZR3wNwJ0SlsI7oFW5IuaITx/1Cr7oKfltdYkWYJEWs+DChmisFN0gLzpJ73Wo75I5PVQJa1j1IoxXlmwx1JH5gbyHvGmz3OVHU28TzYhNaXSHW+1cqUDTbckq4kWu4r9dhC3jGXFILyG6P8i7wDBD2fvfhNbYzv7bRDs+WwWwGObCMlkw5+IyW7c7iOXtnoENcJqTpGVOm6xPWNA4Oz85u+JJ1B7FiX+9ZR+APZtIoDTI9YaAAAAAElFTkSuQmCC" id="a" width="12" height="14"/><image xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAOCAYAAAAWo42rAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAACqADAAQAAAABAAAADgAAAADO+B41AAABIElEQVQoFW2STU7EMAyFnxP3v0M7BU0lNkiz5AJsuQVnRrPgIixgB0yb8JyWCsRYspzUX2w/q3J/eo5RcNH2yDBIhk4Urgr+IqQQVOJQi0djYB0URXD/4AKOgMeO0BVddwTNJvnCLHF70BLq2HrP1ubaTznULxVfs88NHCTH6AqMjL2BNwQbzlmt7Q1u4HF0NY5S45qQjaCHqcSEiIMLGM8lXuo3PFQdHv3AljlKzqoiUEt67ieLDmX0eHq/w3AL5CVA0SCTTPs5R06wpKgWmoDzx5L01Om4PYO1tfWwWsG5LGFVYgDCtMCRi3D8pjWFKLN2MbfXlgyEZWY03uA/EMEfS1UJpEjaBC0D/4YMWKH0H/BsBTd1SeGqMlVeYTt/AxQHTFJP5HKCAAAAAElFTkSuQmCC" id="b" width="10" height="14"/><linearGradient id="c" x1="13.066%" x2="85.383%" y1="21.827%" y2="78.173%"><stop offset="0%" stop-color="#69D2FF"/><stop offset="40.999%" stop-color="#4887FD"/><stop offset="100%" stop-color="#69D2FF"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><path fill="url(#c)" d="M8.194.275a4.497 4.497 0 0 1 1.803 1.228l.002-.003a5.49 5.49 0 0 1 1.04 1.746l.062.173c.289.843.42 1.787.382 2.77.023.13.04.235.049.311.012.802.163 1.652.467 2.497 1.07 2.973 3.629 4.761 5.715 3.993a2.989 2.989 0 0 0 1.158-.78 4.57 4.57 0 0 1-2.164 1.682c-2.432.895-5.087-.477-6.704-3 .022-.035.047-.079.073-.132l-.078.127a9.397 9.397 0 0 1-.842-1.66l-.078-.216a9.776 9.776 0 0 1-.007-.018l-.041-.119-.047-.127a9.273 9.273 0 0 1-.474-2.739l-.015.106v-.369c-.02-.97-.309-1.782-.773-2.255-.384-.59-.902-1.034-1.539-1.269C4.097 1.453 1.538 3.241.47 6.214a7.808 7.808 0 0 0-.465 2.36 9.221 9.221 0 0 1 .555-3.4c1.322-3.677 4.647-6 7.635-4.9Z" transform="translate(2 5.162)"/><path fill="url(#d)" d="M18.873 12.21a2.988 2.988 0 0 1-1.159.78c-2.086.768-4.645-1.02-5.715-3.993a7.769 7.769 0 0 1-.467-2.497c.057.467.177.957.356 1.456.817 2.27 2.61 3.523 3.795 3.087 1.185-.437 1.762-2.562.945-4.833-.817-2.27-2.609-3.523-3.794-3.086-.18.066-.345.17-.494.309l.131-.182.14-.171c-.096.11-.187.228-.271.353a2.16 2.16 0 0 0-.033.031L11.249.525a4.48 4.48 0 0 1 .495-.226l.065-.024.09-.032c2.964-1.022 6.236 1.291 7.545 4.93a9.29 9.29 0 0 1 .559 3.103c.004 1.492-.384 2.879-1.13 3.934Z" transform="translate(2 5.162)"/><path fill="url(#e)" d="M.005 8.576a7.802 7.802 0 0 1 .464-2.362c1.07-2.973 3.628-4.76 5.714-3.993.636.235 1.155.68 1.539 1.27a1.52 1.52 0 0 0-.522-.356l-.031-.011-.036-.013c-1.185-.399-2.95.851-3.758 3.1-.817 2.27-.24 4.395.945 4.832 1.045.384 2.56-.543 3.465-2.323l.168.467L9.02 12.15c-1.597 1.69-3.735 2.474-5.724 1.742-.94-.346-1.69-.973-2.235-1.784C.408 11.138.048 9.906.005 8.576Z" transform="translate(2 5.162)"/></g></svg>
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
您好,我是自动化用例编写助手,提供自动化用例生成,自动化用例改写和扩展,以及根据自然语言生成用例功能。
|
|
2
|
-
|
|
3
|
-
一\.调起TestMate插件能力
|
|
4
|
-
|
|
5
|
-
方法1:直接调用testmate的测试能力
|
|
6
|
-
|
|
7
|
-
在输入中输入:"/生成测试代码"
|
|
8
|
-
|
|
9
|
-
方法2:依次调用TestMate和测试能力
|
|
10
|
-
|
|
11
|
-
(1)\.输入@TestMate,回车
|
|
12
|
-
|
|
13
|
-
(2)输入生成测试代码,回车
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
二\. 生成用例或代码
|
|
18
|
-
|
|
19
|
-
场景1:根据鼠标选中代码和自然语言描述生成测试用例
|
|
20
|
-
|
|
21
|
-
使用鼠标划选部分代码,并输入对选中代码的修改指令,生成新的用例,
|
|
22
|
-
|
|
23
|
-
样例1:生成异常用例
|
|
24
|
-
|
|
25
|
-
(1)生成随机条数异常用例:
|
|
26
|
-
|
|
27
|
-
(2)生成指定条数的异常用例:生成4条异常用例
|
|
28
|
-
|
|
29
|
-
(3)指定参数异常的用例,例如:生成user\_name异常的测试用例
|
|
30
|
-
|
|
31
|
-
更多的异常用例场景,欢迎大家体验
|
|
32
|
-
|
|
33
|
-
样例2:修改选中用例的输入或校验
|
|
34
|
-
|
|
35
|
-
描述:当user\_id为null时,校验code不等于0
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
场景2:根据自然语言描述生成测试代码
|
|
40
|
-
|
|
41
|
-
学习代码库中代码片段与描述,结合本次的自然语言描述,生成新的代码或用例。
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
场景3:根据输入IAPI的接口文档链接生成测试用例
|
|
46
|
-
|
|
47
|
-
首先打开IAPI,复制接口文档的链接,再把复制的链接粘贴到插件的输入框中,点击生成
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
场景4:输入用例描述\+IAPI链接
|
|
52
|
-
|
|
53
|
-
首先在IAPI平台复制接口文档链接,然后在输入框中粘贴该链接,并输入对生成用例的要求
|
|
54
|
-
|
|
55
|
-
三\. 采纳用例或代码
|
|
56
|
-
|
|
57
|
-
1\.鼠标点击右侧代码文件中的某个位置
|
|
58
|
-
|
|
59
|
-
2\.点击采纳按钮
|
|
60
|
-
|
|
61
|
-
3\.生成的用例或代码即粘贴到光标位置
|
|
62
|
-
|