@comate/zulu 0.0.9 → 0.0.11
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/comate-engine/bin/comate.js +10 -0
- package/comate-engine/fallbackServer.js +1 -0
- package/comate-engine/node_modules/@comate/plugin-engine/dist/index.d.ts +188 -0
- package/comate-engine/node_modules/@comate/plugin-engine/dist/index.js +36 -0
- package/comate-engine/node_modules/@comate/plugin-engine/package.json +49 -0
- package/comate-engine/node_modules/@comate/plugin-host/bin.js +44 -0
- package/comate-engine/node_modules/@comate/plugin-host/dist/index.js +1 -0
- package/comate-engine/node_modules/@comate/plugin-host/dist/main.d.ts +14 -0
- package/comate-engine/node_modules/@comate/plugin-host/dist/main.js +9 -0
- package/comate-engine/node_modules/@comate/plugin-host/dist/user-Btg63hPI.js +36 -0
- package/comate-engine/node_modules/@comate/plugin-host/package.json +47 -0
- package/comate-engine/node_modules/@comate/plugin-shared-internals/dist/index.d.ts +2849 -0
- package/comate-engine/node_modules/@comate/plugin-shared-internals/dist/index.js +36 -0
- package/comate-engine/node_modules/@comate/plugin-shared-internals/package.json +72 -0
- package/comate-engine/node_modules/@comate/preview-proxy/bin/preview.js +13 -0
- package/comate-engine/node_modules/@comate/preview-proxy/dist/index.js +350 -0
- package/comate-engine/node_modules/@comate/preview-proxy/package.json +83 -0
- package/comate-engine/node_modules/@comate/preview-proxy/static/comate-preview-injector.css +1 -0
- package/comate-engine/node_modules/@comate/preview-proxy/static/comate-preview-injector.js +2 -0
- package/comate-engine/node_modules/@comate/preview-proxy/static/comate-preview-injector.js.LICENSE.txt +58 -0
- package/comate-engine/node_modules/compare-versions/LICENSE +21 -0
- package/comate-engine/node_modules/compare-versions/README.md +133 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/compare.d.ts +19 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/compare.js +44 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/compare.js.map +1 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/compareVersions.d.ts +8 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/compareVersions.js +29 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/compareVersions.js.map +1 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/index.d.ts +5 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/index.js +5 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/index.js.map +1 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/satisfies.d.ts +14 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/satisfies.js +66 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/satisfies.js.map +1 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/utils.d.ts +7 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/utils.js +37 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/utils.js.map +1 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/validate.d.ts +28 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/validate.js +31 -0
- package/comate-engine/node_modules/compare-versions/lib/esm/validate.js.map +1 -0
- package/comate-engine/node_modules/compare-versions/lib/umd/index.js +216 -0
- package/comate-engine/node_modules/compare-versions/lib/umd/index.js.map +1 -0
- package/comate-engine/node_modules/compare-versions/package.json +45 -0
- package/comate-engine/node_modules/compare-versions/src/compare.ts +54 -0
- package/comate-engine/node_modules/compare-versions/src/compareVersions.ts +31 -0
- package/comate-engine/node_modules/compare-versions/src/index.ts +5 -0
- package/comate-engine/node_modules/compare-versions/src/satisfies.ts +69 -0
- package/comate-engine/node_modules/compare-versions/src/utils.ts +50 -0
- package/comate-engine/node_modules/compare-versions/src/validate.ts +36 -0
- package/comate-engine/node_modules/pkce-challenge/LICENSE +21 -0
- package/comate-engine/node_modules/pkce-challenge/README.md +55 -0
- package/comate-engine/node_modules/pkce-challenge/dist/index.browser.d.ts +19 -0
- package/comate-engine/node_modules/pkce-challenge/dist/index.browser.js +72 -0
- package/comate-engine/node_modules/pkce-challenge/dist/index.node.cjs +80 -0
- package/comate-engine/node_modules/pkce-challenge/dist/index.node.d.cts +19 -0
- package/comate-engine/node_modules/pkce-challenge/dist/index.node.d.ts +19 -0
- package/comate-engine/node_modules/pkce-challenge/dist/index.node.js +75 -0
- package/comate-engine/node_modules/pkce-challenge/package.json +58 -0
- package/comate-engine/node_modules/web-streams-polyfill/LICENSE +22 -0
- package/comate-engine/node_modules/web-streams-polyfill/README.md +119 -0
- package/comate-engine/node_modules/web-streams-polyfill/dist/polyfill.es5.js +8 -0
- package/comate-engine/node_modules/web-streams-polyfill/dist/polyfill.js +8 -0
- package/comate-engine/node_modules/web-streams-polyfill/dist/ponyfill.es5.js +8 -0
- package/comate-engine/node_modules/web-streams-polyfill/dist/ponyfill.es5.mjs +8 -0
- package/comate-engine/node_modules/web-streams-polyfill/dist/ponyfill.js +8 -0
- package/comate-engine/node_modules/web-streams-polyfill/dist/ponyfill.mjs +8 -0
- package/comate-engine/node_modules/web-streams-polyfill/package.json +98 -0
- package/comate-engine/node_modules/web-streams-polyfill/types/polyfill.d.ts +28 -0
- package/comate-engine/node_modules/web-streams-polyfill/types/ponyfill.d.ts +809 -0
- package/comate-engine/node_modules/web-streams-polyfill/types/tsdoc-metadata.json +11 -0
- package/comate-engine/package.json +91 -0
- package/comate-engine/plugins/aiscan/assets/icon.svg +12 -0
- package/comate-engine/plugins/aiscan/dist/index.js +53861 -0
- package/comate-engine/plugins/aiscan/package.json +67 -0
- package/comate-engine/plugins/appdev/assets/icon.png +0 -0
- package/comate-engine/plugins/appdev/dist/help.md +12 -0
- package/comate-engine/plugins/appdev/dist/index.d.ts +2 -0
- package/comate-engine/plugins/appdev/dist/index.js +194 -0
- package/comate-engine/plugins/appdev/dist/providers/err.d.ts +8 -0
- package/comate-engine/plugins/appdev/dist/providers/err.js +37 -0
- package/comate-engine/plugins/appdev/dist/providers/fallback.d.ts +5 -0
- package/comate-engine/plugins/appdev/dist/providers/fallback.js +28 -0
- package/comate-engine/plugins/appdev/dist/providers/help.d.ts +8 -0
- package/comate-engine/plugins/appdev/dist/providers/help.js +19 -0
- package/comate-engine/plugins/appdev/dist/providers/medusa.d.ts +8 -0
- package/comate-engine/plugins/appdev/dist/providers/medusa.js +39 -0
- package/comate-engine/plugins/appdev/dist/providers/qa.d.ts +8 -0
- package/comate-engine/plugins/appdev/dist/providers/qa.js +33 -0
- package/comate-engine/plugins/appdev/package.json +67 -0
- package/comate-engine/plugins/bfc/assets/bfc-icon.png +0 -0
- package/comate-engine/plugins/bfc/dist/config/config.d.ts +4 -0
- package/comate-engine/plugins/bfc/dist/config/config.js +4 -0
- package/comate-engine/plugins/bfc/dist/help.md +11 -0
- package/comate-engine/plugins/bfc/dist/index.d.ts +2 -0
- package/comate-engine/plugins/bfc/dist/index.js +452 -0
- package/comate-engine/plugins/bfc/dist/providers/bfcInstructMode.d.ts +8 -0
- package/comate-engine/plugins/bfc/dist/providers/bfcInstructMode.js +77 -0
- package/comate-engine/plugins/bfc/dist/providers/genAbnormalCode.d.ts +8 -0
- package/comate-engine/plugins/bfc/dist/providers/genAbnormalCode.js +71 -0
- package/comate-engine/plugins/bfc/dist/providers/genBfcCode.d.ts +8 -0
- package/comate-engine/plugins/bfc/dist/providers/genBfcCode.js +74 -0
- package/comate-engine/plugins/bfc/dist/providers/getBatchCases.d.ts +10 -0
- package/comate-engine/plugins/bfc/dist/providers/getBatchCases.js +71 -0
- package/comate-engine/plugins/bfc/dist/providers/help.d.ts +8 -0
- package/comate-engine/plugins/bfc/dist/providers/help.js +19 -0
- package/comate-engine/plugins/bfc/dist/service/generateService.d.ts +14 -0
- package/comate-engine/plugins/bfc/dist/service/generateService.js +27 -0
- package/comate-engine/plugins/bfc/package.json +85 -0
- package/comate-engine/plugins/bpm/assets/bpm.png +0 -0
- package/comate-engine/plugins/bpm/dist/index.js +313 -0
- package/comate-engine/plugins/bpm/package.json +65 -0
- package/comate-engine/plugins/casebuilder/assets/icon.svg +1 -0
- package/comate-engine/plugins/casebuilder/dist/help.md +33 -0
- package/comate-engine/plugins/casebuilder/dist/index.js +837 -0
- package/comate-engine/plugins/casebuilder/package.json +80 -0
- package/comate-engine/plugins/centrino/assets/icon.png +0 -0
- package/comate-engine/plugins/centrino/dist/help.md +30 -0
- package/comate-engine/plugins/centrino/dist/index.js +1046 -0
- package/comate-engine/plugins/centrino/package.json +68 -0
- package/comate-engine/plugins/cnap/assets/cnap.png +0 -0
- package/comate-engine/plugins/cnap/dist/help.md +11 -0
- package/comate-engine/plugins/cnap/dist/index.js +171 -0
- package/comate-engine/plugins/cnap/package.json +65 -0
- package/comate-engine/plugins/demo-feature/assets/icon.svg +1 -0
- package/comate-engine/plugins/demo-feature/dist/help.md +1 -0
- package/comate-engine/plugins/demo-feature/dist/index.d.ts +2 -0
- package/comate-engine/plugins/demo-feature/dist/index.js +36008 -0
- package/comate-engine/plugins/demo-feature/dist/providers/codeQuery.d.ts +12 -0
- package/comate-engine/plugins/demo-feature/dist/providers/codeQuery.js +23 -0
- package/comate-engine/plugins/demo-feature/dist/providers/codeSearch.d.ts +8 -0
- package/comate-engine/plugins/demo-feature/dist/providers/codeSearch.js +26 -0
- package/comate-engine/plugins/demo-feature/dist/providers/config.d.ts +13 -0
- package/comate-engine/plugins/demo-feature/dist/providers/config.js +25 -0
- package/comate-engine/plugins/demo-feature/dist/providers/context.d.ts +10 -0
- package/comate-engine/plugins/demo-feature/dist/providers/context.js +49 -0
- package/comate-engine/plugins/demo-feature/dist/providers/debugAgent.d.ts +8 -0
- package/comate-engine/plugins/demo-feature/dist/providers/debugAgent.js +65 -0
- package/comate-engine/plugins/demo-feature/dist/providers/explainCode.d.ts +9 -0
- package/comate-engine/plugins/demo-feature/dist/providers/explainCode.js +24 -0
- package/comate-engine/plugins/demo-feature/dist/providers/fallback.d.ts +5 -0
- package/comate-engine/plugins/demo-feature/dist/providers/fallback.js +23 -0
- package/comate-engine/plugins/demo-feature/dist/providers/file.d.ts +13 -0
- package/comate-engine/plugins/demo-feature/dist/providers/file.js +36 -0
- package/comate-engine/plugins/demo-feature/dist/providers/help.d.ts +8 -0
- package/comate-engine/plugins/demo-feature/dist/providers/help.js +19 -0
- package/comate-engine/plugins/demo-feature/dist/providers/information.d.ts +13 -0
- package/comate-engine/plugins/demo-feature/dist/providers/information.js +23 -0
- package/comate-engine/plugins/demo-feature/dist/providers/knowledge.d.ts +15 -0
- package/comate-engine/plugins/demo-feature/dist/providers/knowledge.js +71 -0
- package/comate-engine/plugins/demo-feature/dist/providers/log.d.ts +12 -0
- package/comate-engine/plugins/demo-feature/dist/providers/log.js +21 -0
- package/comate-engine/plugins/demo-feature/dist/providers/onlyCode.d.ts +8 -0
- package/comate-engine/plugins/demo-feature/dist/providers/onlyCode.js +23 -0
- package/comate-engine/plugins/demo-feature/dist/providers/pluginConfig.d.ts +8 -0
- package/comate-engine/plugins/demo-feature/dist/providers/pluginConfig.js +47 -0
- package/comate-engine/plugins/demo-feature/dist/providers/prompt.d.ts +7 -0
- package/comate-engine/plugins/demo-feature/dist/providers/prompt.js +7 -0
- package/comate-engine/plugins/demo-feature/dist/providers/ragProvider.d.ts +8 -0
- package/comate-engine/plugins/demo-feature/dist/providers/ragProvider.js +17 -0
- package/comate-engine/plugins/demo-feature/dist/providers/render.d.ts +8 -0
- package/comate-engine/plugins/demo-feature/dist/providers/render.js +75 -0
- package/comate-engine/plugins/demo-feature/dist/providers/renderJsx.d.ts +10 -0
- package/comate-engine/plugins/demo-feature/dist/providers/renderJsx.js +173 -0
- package/comate-engine/plugins/demo-feature/dist/providers/section.d.ts +8 -0
- package/comate-engine/plugins/demo-feature/dist/providers/section.js +136 -0
- package/comate-engine/plugins/demo-feature/dist/providers/selectedKnowledge.d.ts +12 -0
- package/comate-engine/plugins/demo-feature/dist/providers/selectedKnowledge.js +17 -0
- package/comate-engine/plugins/demo-feature/dist/providers/streaming.d.ts +8 -0
- package/comate-engine/plugins/demo-feature/dist/providers/streaming.js +29 -0
- package/comate-engine/plugins/demo-feature/dist/providers/userDetail.d.ts +8 -0
- package/comate-engine/plugins/demo-feature/dist/providers/userDetail.js +28 -0
- package/comate-engine/plugins/demo-feature/package.json +214 -0
- package/comate-engine/plugins/demo-timer/assets/icon.svg +2 -0
- package/comate-engine/plugins/demo-timer/dist/index.js +463 -0
- package/comate-engine/plugins/demo-timer/package.json +73 -0
- package/comate-engine/plugins/dev-tools/assets/icon.png +0 -0
- package/comate-engine/plugins/dev-tools/dist/help.md +18 -0
- package/comate-engine/plugins/dev-tools/dist/index.js +166160 -0
- package/comate-engine/plugins/dev-tools/package.json +95 -0
- package/comate-engine/plugins/devaux/assets/icon.svg +1 -0
- package/comate-engine/plugins/devaux/dist/help.md +41 -0
- package/comate-engine/plugins/devaux/dist/index.js +73829 -0
- 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 +83 -0
- package/comate-engine/plugins/f2c/assets/icon.svg +11 -0
- package/comate-engine/plugins/f2c/dist/help.md +13 -0
- package/comate-engine/plugins/f2c/dist/index.js +64551 -0
- package/comate-engine/plugins/f2c/package.json +56 -0
- package/comate-engine/plugins/fcnap/assets/icon.png +0 -0
- package/comate-engine/plugins/fcnap/dist/help.md +9 -0
- package/comate-engine/plugins/fcnap/dist/index.js +105 -0
- package/comate-engine/plugins/fcnap/package.json +50 -0
- package/comate-engine/plugins/front-end-skills/assets/icon.svg +1 -0
- package/comate-engine/plugins/front-end-skills/dist/help.md +17 -0
- package/comate-engine/plugins/front-end-skills/dist/index.js +8172 -0
- package/comate-engine/plugins/front-end-skills/package.json +79 -0
- package/comate-engine/plugins/gdp/assets/icon.png +0 -0
- package/comate-engine/plugins/gdp/dist/help.md +11 -0
- package/comate-engine/plugins/gdp/dist/index.js +53065 -0
- package/comate-engine/plugins/gdp/package.json +79 -0
- package/comate-engine/plugins/git/assets/git.svg +1 -0
- package/comate-engine/plugins/git/assets/icon.svg +1 -0
- package/comate-engine/plugins/git/dist/help.md +7 -0
- package/comate-engine/plugins/git/dist/index.js +32675 -0
- package/comate-engine/plugins/git/package.json +91 -0
- package/comate-engine/plugins/harmonyos/assets/harmonyos.png +0 -0
- package/comate-engine/plugins/harmonyos/dist/index.js +78 -0
- package/comate-engine/plugins/harmonyos/package.json +37 -0
- package/comate-engine/plugins/iapi/assets/icon.png +0 -0
- package/comate-engine/plugins/iapi/dist/help.md +13 -0
- package/comate-engine/plugins/iapi/dist/index.js +458 -0
- 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 +102 -0
- package/comate-engine/plugins/icafe/assets/icafe.svg +1 -0
- package/comate-engine/plugins/icafe/dist/help.md +5 -0
- package/comate-engine/plugins/icafe/dist/index.js +885 -0
- package/comate-engine/plugins/icafe/package.json +74 -0
- package/comate-engine/plugins/ievalue/assets/iEValue.svg +10 -0
- package/comate-engine/plugins/ievalue/dist/index.js +2920 -0
- package/comate-engine/plugins/ievalue/package.json +88 -0
- package/comate-engine/plugins/ipipe/assets/iPipePlugin.png +0 -0
- package/comate-engine/plugins/ipipe/dist/help.md +15 -0
- package/comate-engine/plugins/ipipe/dist/index.js +7264 -0
- package/comate-engine/plugins/ipipe/package.json +62 -0
- package/comate-engine/plugins/jarvis/assets/icon.svg +1 -0
- package/comate-engine/plugins/jarvis/dist/help.md +17 -0
- package/comate-engine/plugins/jarvis/dist/index.js +140416 -0
- package/comate-engine/plugins/jarvis/package.json +93 -0
- package/comate-engine/plugins/mapsearch/assets/mapsearchicon.png +0 -0
- package/comate-engine/plugins/mapsearch/dist/help.md +4 -0
- package/comate-engine/plugins/mapsearch/dist/index.js +145 -0
- package/comate-engine/plugins/mapsearch/package.json +53 -0
- 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 +31 -0
- package/comate-engine/plugins/paddle/dist/index.js +1011 -0
- package/comate-engine/plugins/paddle/package.json +129 -0
- package/comate-engine/plugins/robot/assets/Robot.png +0 -0
- package/comate-engine/plugins/robot/dist/index.js +288 -0
- package/comate-engine/plugins/robot/package.json +67 -0
- package/comate-engine/plugins/security/assets/comate.png +0 -0
- package/comate-engine/plugins/security/dist/index.js +18393 -0
- package/comate-engine/plugins/security/package.json +82 -0
- package/comate-engine/plugins/smartapp/assets/icon.png +0 -0
- package/comate-engine/plugins/smartapp/dist/help.md +4 -0
- package/comate-engine/plugins/smartapp/dist/index.js +113 -0
- package/comate-engine/plugins/smartapp/package.json +54 -0
- package/comate-engine/plugins/springer/assets/icon.png +0 -0
- package/comate-engine/plugins/springer/dist/help.md +4 -0
- package/comate-engine/plugins/springer/dist/index.js +94525 -0
- package/comate-engine/plugins/springer/package.json +71 -0
- package/comate-engine/plugins/testmate/assets/icon.svg +1 -0
- package/comate-engine/plugins/testmate/dist/help.md +62 -0
- package/comate-engine/plugins/testmate/dist/index.js +21483 -0
- package/comate-engine/plugins/testmate/package.json +85 -0
- package/comate-engine/plugins/tor/assets/TorPlugin.png +0 -0
- package/comate-engine/plugins/tor/dist/help.md +22 -0
- package/comate-engine/plugins/tor/dist/index.js +807 -0
- package/comate-engine/plugins/tor/package.json +99 -0
- package/comate-engine/plugins/weiyun/assets/icon.png +0 -0
- package/comate-engine/plugins/weiyun/dist/help.md +11 -0
- package/comate-engine/plugins/weiyun/dist/index.js +100491 -0
- package/comate-engine/plugins/weiyun/package.json +55 -0
- package/comate-engine/plugins/wenku/assets/icon.svg +1 -0
- package/comate-engine/plugins/wenku/dist/index.js +249 -0
- package/comate-engine/plugins/wenku/package.json +55 -0
- package/comate-engine/plugins/workcard/assets/favicon.png +0 -0
- package/comate-engine/plugins/workcard/dist/help.md +30 -0
- package/comate-engine/plugins/workcard/dist/index.js +490 -0
- package/comate-engine/plugins/workcard/package.json +95 -0
- package/comate-engine/plugins/xiaomi-aiot/assets/icon.png +0 -0
- package/comate-engine/plugins/xiaomi-aiot/dist/help.md +6 -0
- package/comate-engine/plugins/xiaomi-aiot/dist/index.js +37466 -0
- package/comate-engine/plugins/xiaomi-aiot/package.json +63 -0
- package/comate-engine/server.d.ts +3 -0
- package/comate-engine/server.js +474 -0
- package/dist/bundle/index.js +29 -58174
- package/package.json +2 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"name": "@comate-plugin/centrino",
|
|
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
|
+
"eventsource-parser": "^2.0.0"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@comate/plugin-cli": "^0.9.2",
|
|
16
|
+
"@comate/plugin-host": "^0.9.2",
|
|
17
|
+
"typescript": "^5.3.2"
|
|
18
|
+
},
|
|
19
|
+
"comate": {
|
|
20
|
+
"name": "centrino",
|
|
21
|
+
"version": "1.0.0",
|
|
22
|
+
"icon": "./assets/icon.png",
|
|
23
|
+
"entry": "./dist/index.js",
|
|
24
|
+
"displayName": "ACG后端用例生成",
|
|
25
|
+
"description": "基于知识增强的后端用例生成工具",
|
|
26
|
+
"keyword": [],
|
|
27
|
+
"capabilities": [
|
|
28
|
+
{
|
|
29
|
+
"type": "Skill",
|
|
30
|
+
"name": "help",
|
|
31
|
+
"displayName": "插件介绍",
|
|
32
|
+
"description": "插件功能介绍",
|
|
33
|
+
"placeholder": "无需输入信息,直接回车"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "Skill",
|
|
37
|
+
"name": "knowledgeConfig",
|
|
38
|
+
"displayName": "知识库",
|
|
39
|
+
"description": "查询或修改知识库配置",
|
|
40
|
+
"placeholder": "回车可查询知识配置情况;输入知识集ID则为当前库添加(或更新)配置;输入用例描述信息,可进行知识检索验证测试"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"type": "Skill",
|
|
44
|
+
"name": "genCaseByCase",
|
|
45
|
+
"displayName": "用例生成",
|
|
46
|
+
"description": "基于用例场景和步骤描述生成新用例",
|
|
47
|
+
"placeholder": "请输入用例功能和步骤描述(每个步骤单独一行,CMD+回车换行);被鼠标选中的代码,将被作为代码生成的示例"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "Skill",
|
|
51
|
+
"name": "addKnowledge",
|
|
52
|
+
"displayName": "添加知识",
|
|
53
|
+
"description": "将函数或用例代码添加为知识文本",
|
|
54
|
+
"placeholder": "请选中部分代码片段(若干个函数片段/一个完全的用例代码),不超过500行"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"type": "Skill",
|
|
58
|
+
"name": "genCaseAB",
|
|
59
|
+
"displayName": "用例生成v2",
|
|
60
|
+
"description": "基于用例场景和步骤描述生成新用例",
|
|
61
|
+
"placeholder": "请输入用例功能和步骤描述(每个步骤单独一行,CMD+回车换行);被鼠标选中的代码,将被作为代码生成风格示例"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"configSchema": {
|
|
65
|
+
"sections": []
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
您好,我是您的一站式AI原生应用研发助手CNAP,我可以为您生成符合厂内标准的Dockerfile以及CNAP标准chart value.yaml配置文件。
|
|
2
|
+
|
|
3
|
+
**生成dockerfile**
|
|
4
|
+
* 能力介绍:根据您的需求描述,自动为您生成符合厂内标准的Dockerfile
|
|
5
|
+
* 使用方式:先"@CNAP",再"/生成dockerfile"。或者直接"/生成dockerfile"
|
|
6
|
+
|
|
7
|
+
**生成chart配置**
|
|
8
|
+
* 能力介绍:根据您的需求描述,自动为您生成CNAP标准chart value.yaml配置文件
|
|
9
|
+
* 使用方式:先"@CNAP",再"/生成chart配置"。或者直接"/生成chart配置"
|
|
10
|
+
|
|
11
|
+
此外,如果您对CNAP插件还有其他使用需求或意见,可以进入用户群 **8689677|5602724** 或通过服务号"CNAP"反馈给我们。
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { SkillProvider, TaskProgressChunkStream } 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 = 'cnap-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 DockerfileSkillProvider extends SkillProvider {
|
|
28
|
+
static{
|
|
29
|
+
this.skillName = 'genDockerfile';
|
|
30
|
+
}
|
|
31
|
+
static{
|
|
32
|
+
this.displayName = '生成dockerfile';
|
|
33
|
+
}
|
|
34
|
+
static{
|
|
35
|
+
this.description = '根据自然语言生成dockerfile';
|
|
36
|
+
}
|
|
37
|
+
static{
|
|
38
|
+
this.parameters = {
|
|
39
|
+
type: 'object',
|
|
40
|
+
properties: {}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
async *execute() {
|
|
44
|
+
const { query, activeFileName: fileName, activeFileContent: codeContent } = this.currentContext;
|
|
45
|
+
const stream = new TaskProgressChunkStream();
|
|
46
|
+
const user = await this.currentUser.requestDetail();
|
|
47
|
+
yield stream.flush('正在思考中,请耐心等候...');
|
|
48
|
+
const info = await this.retriever.knowledgeFromQuery(query, {
|
|
49
|
+
knowledgeSets: [
|
|
50
|
+
{
|
|
51
|
+
uuid: '79b9e79a-9f7b-45c5-8a1e-6c2f4f432fbc',
|
|
52
|
+
type: 'NORMAL'
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
});
|
|
56
|
+
const knowledges = info.join('\n');
|
|
57
|
+
const body = {
|
|
58
|
+
userName: user ? user.name : 'nologin',
|
|
59
|
+
platform: 'comate',
|
|
60
|
+
category: 'dockerfile',
|
|
61
|
+
question: query,
|
|
62
|
+
knowledge: knowledges,
|
|
63
|
+
fileName: fileName,
|
|
64
|
+
existedContent: codeContent
|
|
65
|
+
};
|
|
66
|
+
try {
|
|
67
|
+
const response = await fetch('http://10.11.133.88:8201/api/rest/v1/copilot/answer/stream', {
|
|
68
|
+
method: 'POST',
|
|
69
|
+
headers: {
|
|
70
|
+
'Content-Type': 'text/event-stream;charset=UTF-8'
|
|
71
|
+
},
|
|
72
|
+
body: JSON.stringify(body)
|
|
73
|
+
});
|
|
74
|
+
yield stream.flushReplaceLast('');
|
|
75
|
+
if (!response.body) {
|
|
76
|
+
throw new Error('请求出错,请联系服务号[CNAP]或稍后再试.');
|
|
77
|
+
}
|
|
78
|
+
const reader = response.body.getReader();
|
|
79
|
+
const decoder = new TextDecoder();
|
|
80
|
+
while(true){
|
|
81
|
+
const { done, value } = await reader.read();
|
|
82
|
+
if (done) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
const chunk = decoder.decode(value, {
|
|
86
|
+
stream: true
|
|
87
|
+
});
|
|
88
|
+
yield stream.flush(chunk);
|
|
89
|
+
}
|
|
90
|
+
} catch (error) {
|
|
91
|
+
yield stream.flushReplaceLast(`请求出错,请联系服务号[CNAP]或稍后再试.${error}`);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
class ChartSkillProvider extends SkillProvider {
|
|
97
|
+
static{
|
|
98
|
+
this.skillName = 'genChartValue';
|
|
99
|
+
}
|
|
100
|
+
static{
|
|
101
|
+
this.displayName = '生成chart配置';
|
|
102
|
+
}
|
|
103
|
+
static{
|
|
104
|
+
this.description = '根据自然语言生成chart value配置';
|
|
105
|
+
}
|
|
106
|
+
static{
|
|
107
|
+
this.parameters = {
|
|
108
|
+
type: 'object',
|
|
109
|
+
properties: {}
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
async *execute() {
|
|
113
|
+
const { query, activeFileName: fileName, activeFileContent: codeContent } = this.currentContext;
|
|
114
|
+
const stream = new TaskProgressChunkStream();
|
|
115
|
+
const user = await this.currentUser.requestDetail();
|
|
116
|
+
yield stream.flush('正在思考中,请耐心等候...');
|
|
117
|
+
const info = await this.retriever.knowledgeFromQuery(query, {
|
|
118
|
+
knowledgeSets: [
|
|
119
|
+
{
|
|
120
|
+
uuid: '79b9e79a-9f7b-45c5-8a1e-6c2f4f432fbc',
|
|
121
|
+
type: 'NORMAL'
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
});
|
|
125
|
+
const knowledges = info.join('\n');
|
|
126
|
+
const body = {
|
|
127
|
+
userName: user ? user.name : 'nologin',
|
|
128
|
+
platform: 'comate',
|
|
129
|
+
category: 'chart',
|
|
130
|
+
question: query,
|
|
131
|
+
knowledge: knowledges,
|
|
132
|
+
fileName: fileName,
|
|
133
|
+
existedContent: codeContent
|
|
134
|
+
};
|
|
135
|
+
try {
|
|
136
|
+
const response = await fetch('http://10.11.133.88:8201/api/rest/v1/copilot/answer/stream', {
|
|
137
|
+
method: 'POST',
|
|
138
|
+
headers: {
|
|
139
|
+
'Content-Type': 'text/event-stream;charset=UTF-8'
|
|
140
|
+
},
|
|
141
|
+
body: JSON.stringify(body)
|
|
142
|
+
});
|
|
143
|
+
yield stream.flushReplaceLast('');
|
|
144
|
+
if (!response.body) {
|
|
145
|
+
throw new Error('请求出错,请联系服务号[CNAP]或稍后再试.');
|
|
146
|
+
}
|
|
147
|
+
const reader = response.body.getReader();
|
|
148
|
+
const decoder = new TextDecoder();
|
|
149
|
+
while(true){
|
|
150
|
+
const { done, value } = await reader.read();
|
|
151
|
+
if (done) {
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
const chunk = decoder.decode(value, {
|
|
155
|
+
stream: true
|
|
156
|
+
});
|
|
157
|
+
yield stream.flush(chunk);
|
|
158
|
+
}
|
|
159
|
+
} catch (error) {
|
|
160
|
+
yield stream.flushReplaceLast(`请求出错,请联系服务号[CNAP]或稍后再试.${error}`);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function setup({ registry }) {
|
|
166
|
+
registry.registerSkillProvider('cnap-help', HelpSkillProvider);
|
|
167
|
+
registry.registerSkillProvider('genDockerfile', DockerfileSkillProvider);
|
|
168
|
+
registry.registerSkillProvider('genChartValue', ChartSkillProvider);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export { setup };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"name": "@comate-plugin/cnap",
|
|
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": "cnap",
|
|
19
|
+
"version": "1.0.0",
|
|
20
|
+
"icon": "./assets/cnap.png",
|
|
21
|
+
"entry": "./dist/index.js",
|
|
22
|
+
"displayName": "CNAP",
|
|
23
|
+
"description": "CNAP智能助理, 支持dockerfile和chart配置生成, 线下打包部署等",
|
|
24
|
+
"keyword": [
|
|
25
|
+
"cnap",
|
|
26
|
+
"appspace",
|
|
27
|
+
"cicd",
|
|
28
|
+
"k8s",
|
|
29
|
+
"docker",
|
|
30
|
+
"chart"
|
|
31
|
+
],
|
|
32
|
+
"author": [
|
|
33
|
+
{
|
|
34
|
+
"name": "hekai09",
|
|
35
|
+
"email": "hekai09@baidu.com"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"capabilities": [
|
|
39
|
+
{
|
|
40
|
+
"type": "Skill",
|
|
41
|
+
"name": "cnap-help",
|
|
42
|
+
"displayName": "插件介绍",
|
|
43
|
+
"description": "插件介绍",
|
|
44
|
+
"placeholder": "无需输入内容,回车获得插件介绍"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "Skill",
|
|
48
|
+
"name": "genDockerfile",
|
|
49
|
+
"displayName": "生成dockerfile",
|
|
50
|
+
"description": "根据自然语言生成dockerfile",
|
|
51
|
+
"placeholder": "请描述您要生成的dockerfile"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "Skill",
|
|
55
|
+
"name": "genChartValue",
|
|
56
|
+
"displayName": "生成chart配置",
|
|
57
|
+
"description": "根据自然语言生成chart value配置",
|
|
58
|
+
"placeholder": "请描述您要生成的chart value配置"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"configSchema": {
|
|
62
|
+
"sections": []
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1705481777420" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="14346" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M512 106.01c-228.646 0-414 185.354-414 414s185.354 414 414 414 414-185.354 414-414-185.354-414-414-414z m247.898 373.655L648.675 588.08l26.257 153.083a17.543 17.543 0 0 1-25.453 18.493L512 687.379l-137.478 72.277a17.542 17.542 0 0 1-25.452-18.493l26.256-153.083-111.222-108.415a17.54 17.54 0 1 1 9.722-29.923l153.704-22.335 68.739-139.28a17.544 17.544 0 0 1 31.464 0l68.737 139.28 153.706 22.335a17.543 17.543 0 0 1 9.722 29.923z" fill="#1296db" p-id="14347"></path><path d="M98 520.01c0 228.646 185.354 414 414 414s414-185.354 414-414-185.354-414-414-414-414 185.354-414 414z m161.664-58.328a17.542 17.542 0 0 1 14.161-11.939l153.706-22.335 68.737-139.28a17.545 17.545 0 0 1 31.464 0l68.739 139.28 153.704 22.335a17.543 17.543 0 0 1 9.722 29.923L648.674 588.08l26.256 153.083a17.54 17.54 0 0 1-25.452 18.493L512 687.379l-137.478 72.277a17.537 17.537 0 0 1-18.474-1.336 17.543 17.543 0 0 1-6.979-17.157l26.257-153.083-111.224-108.415a17.544 17.544 0 0 1-4.438-17.983z" fill="#1296db" p-id="14348"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# demo-feature - help
|