@comate/zulu 0.0.9 → 0.0.12
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 +98 -0
- 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 +94 -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,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"name": "@comate-plugin/jarvis",
|
|
4
|
+
"version": "0.9.2",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"clean": "rm -rf dist",
|
|
8
|
+
"dev": "cpd dev",
|
|
9
|
+
"build": "tsc && cpd build",
|
|
10
|
+
"lint": "eslint --max-warnings=0 src --fix"
|
|
11
|
+
},
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"@comate/plugin-cli": "^0.9.2",
|
|
14
|
+
"@comate/plugin-host": "^0.9.2",
|
|
15
|
+
"form-data": "^4.0.0",
|
|
16
|
+
"node-fetch": "^2.6.1",
|
|
17
|
+
"@types/node-fetch": "^2.6.1",
|
|
18
|
+
"tar": "^7.4.3",
|
|
19
|
+
"@baiducloud/sdk": "1.0.1-beta.3"
|
|
20
|
+
},
|
|
21
|
+
"comate": {
|
|
22
|
+
"name": "jarvis",
|
|
23
|
+
"version": "1.0.0",
|
|
24
|
+
"icon": "./assets/icon.svg",
|
|
25
|
+
"entry": "./dist/index.js",
|
|
26
|
+
"displayName": "Jarvis",
|
|
27
|
+
"description": "Jarvis、Higgs、海若插件,支持代码生成、应用部署",
|
|
28
|
+
"keyword": [
|
|
29
|
+
"商业平台",
|
|
30
|
+
"Jarvis"
|
|
31
|
+
],
|
|
32
|
+
"capabilities": [
|
|
33
|
+
{
|
|
34
|
+
"type": "Skill",
|
|
35
|
+
"name": "jarvis-help",
|
|
36
|
+
"displayName": "插件介绍",
|
|
37
|
+
"description": "插件介绍",
|
|
38
|
+
"placeholder": "无需输入内容,回车获得插件介绍"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"type": "Skill",
|
|
42
|
+
"name": "functionCompute",
|
|
43
|
+
"displayName": "函数计算",
|
|
44
|
+
"description": "LLM生成函数计算代码和其他代码",
|
|
45
|
+
"placeholder": "请描述您要生成的函数计算代码"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"type": "Skill",
|
|
49
|
+
"name": "jarvisAppDeploy",
|
|
50
|
+
"displayName": "应用部署",
|
|
51
|
+
"description": "Jarvis应用、函数、海若API更新部署",
|
|
52
|
+
"placeholder": "请输入部署应用对应的配置名"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "Skill",
|
|
56
|
+
"name": "jarvisEosDeploy",
|
|
57
|
+
"displayName": "EOS环境搭建",
|
|
58
|
+
"description": "EOS环境搭建",
|
|
59
|
+
"placeholder": "请输入EOS环境搭建对应的配置名"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "Skill",
|
|
63
|
+
"name": "marsproHotUpdate",
|
|
64
|
+
"displayName": "marspro配置热更新",
|
|
65
|
+
"description": "marspro配置热更新",
|
|
66
|
+
"placeholder": "请输入marspro热更新对应的配置名"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "Skill",
|
|
70
|
+
"name": "hairuoApi",
|
|
71
|
+
"displayName": "海若API",
|
|
72
|
+
"description": "海若API调用方和提供方代码生成",
|
|
73
|
+
"placeholder": "请输入curl命令/请求json/响应json,并告知要生成API调用方还是提供方代码"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "Skill",
|
|
77
|
+
"name": "jarvisqa",
|
|
78
|
+
"displayName": "智能问答",
|
|
79
|
+
"description": "智能问答",
|
|
80
|
+
"placeholder": "请输入您要咨询的Jarvis、Higgs、海若等相关问题"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "Fallback",
|
|
84
|
+
"name": "fallback",
|
|
85
|
+
"displayName": "兜底",
|
|
86
|
+
"description": "兜底"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"configSchema": {
|
|
90
|
+
"sections": []
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { SkillProvider, StringChunkStream, TextModel, FallbackProvider } from '@comate/plugin-host';
|
|
2
|
+
import { readFileSync } from 'node:fs';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import { dirname } from 'node:path';
|
|
5
|
+
|
|
6
|
+
class HelpSkillProvider extends SkillProvider {
|
|
7
|
+
static{
|
|
8
|
+
this.skillName = 'mapsearch-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 StringChunkStream();
|
|
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 = 'chat';
|
|
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 StringChunkStream();
|
|
46
|
+
yield stream.flush('正在思考中,请耐心等候...');
|
|
47
|
+
try {
|
|
48
|
+
const knowledge = await this.retriever.knowledgeFromQuery(query, {
|
|
49
|
+
knowledgeSets: [
|
|
50
|
+
{
|
|
51
|
+
uuid: '7d1342d8-7f32-4368-a41b-a74c4b5842c5',
|
|
52
|
+
type: 'NORMAL'
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
});
|
|
56
|
+
const prompt = this.llm.createPrompt(knowledge.length ? `你是百度地图检索官方助手,请根据以下背景知识:
|
|
57
|
+
{{knowledge}}
|
|
58
|
+
回答问题:{{query}}
|
|
59
|
+
` : '请回答问题:{{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
|
+
} catch (error) {
|
|
71
|
+
yield stream.flushReplaceLast('出现错误,请稍后再试');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
trimKnowledge(list, maxCount = 6, maxLength = 10000) {
|
|
75
|
+
const state = {
|
|
76
|
+
length: 0
|
|
77
|
+
};
|
|
78
|
+
const output = [];
|
|
79
|
+
for (const item of list){
|
|
80
|
+
if (state.length + item.length > maxLength || output.length >= maxCount) {
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
output.push(item);
|
|
84
|
+
state.length += item.length;
|
|
85
|
+
}
|
|
86
|
+
return output;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
class CustomFallbackProvider extends FallbackProvider {
|
|
91
|
+
static{
|
|
92
|
+
this.skillName = 'chat';
|
|
93
|
+
}
|
|
94
|
+
static{
|
|
95
|
+
this.displayName = '地图检索中台智能问答';
|
|
96
|
+
}
|
|
97
|
+
static{
|
|
98
|
+
this.description = '智能解答关于地图检索中台的相关问题';
|
|
99
|
+
}
|
|
100
|
+
static{
|
|
101
|
+
this.parameters = {
|
|
102
|
+
type: 'object',
|
|
103
|
+
properties: {}
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
async *handleQuery() {
|
|
107
|
+
const { query } = this.currentContext;
|
|
108
|
+
const stream = new StringChunkStream();
|
|
109
|
+
yield stream.flush('正在思考中,请耐心等候...');
|
|
110
|
+
try {
|
|
111
|
+
const knowledge = await this.retriever.knowledgeFromQuery(query, {
|
|
112
|
+
knowledgeSets: [
|
|
113
|
+
{
|
|
114
|
+
uuid: '7d1342d8-7f32-4368-a41b-a74c4b5842c5',
|
|
115
|
+
type: 'NORMAL'
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
});
|
|
119
|
+
const prompt = this.llm.createPrompt(knowledge.length ? `你是百度地图检索官方助手,请根据以下背景知识:
|
|
120
|
+
{{knowledge}}
|
|
121
|
+
回答问题:{{query}}
|
|
122
|
+
` : '请回答问题:{{query}}', {
|
|
123
|
+
knowledge,
|
|
124
|
+
query
|
|
125
|
+
});
|
|
126
|
+
const chunks = this.llm.askForTextStreaming(prompt, {
|
|
127
|
+
model: TextModel.Default
|
|
128
|
+
});
|
|
129
|
+
yield stream.flushReplaceLast('');
|
|
130
|
+
for await (const chunk of chunks){
|
|
131
|
+
yield stream.flush(chunk);
|
|
132
|
+
}
|
|
133
|
+
} catch (error) {
|
|
134
|
+
yield stream.flushReplaceLast('出现错误,请稍后再试');
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function setup({ registry }) {
|
|
140
|
+
registry.registerSkillProvider('mapsearch-help', HelpSkillProvider);
|
|
141
|
+
registry.registerSkillProvider('chat', ChatSkillProvider);
|
|
142
|
+
registry.registerFallbackProvider('fallback', CustomFallbackProvider, true);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export { setup };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"name": "@comate-plugin/mapsearch",
|
|
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": "mapsearch",
|
|
19
|
+
"version": "1.0.0",
|
|
20
|
+
"icon": "./assets/mapsearchicon.png",
|
|
21
|
+
"entry": "./dist/index.js",
|
|
22
|
+
"displayName": "地图检索中台",
|
|
23
|
+
"description": "一个综合性的服务平台,它集成了地图检索相关的各种规范、组件库、需求协同流程以及开发标准。",
|
|
24
|
+
"keyword": [
|
|
25
|
+
"地图检索中台",
|
|
26
|
+
"mapsearch"
|
|
27
|
+
],
|
|
28
|
+
"capabilities": [
|
|
29
|
+
{
|
|
30
|
+
"type": "Skill",
|
|
31
|
+
"name": "mapsearch-help",
|
|
32
|
+
"displayName": "插件介绍",
|
|
33
|
+
"description": "插件介绍",
|
|
34
|
+
"placeholder": "无需输入内容,回车获得插件介绍"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "Skill",
|
|
38
|
+
"name": "chat",
|
|
39
|
+
"displayName": "智能问答",
|
|
40
|
+
"description": "智能解答关于地图检索中台的相关问题"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"type": "Fallback",
|
|
44
|
+
"name": "fallback",
|
|
45
|
+
"displayName": "智能问答",
|
|
46
|
+
"description": "智能解答关于地图检索中台的相关问题"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"configSchema": {
|
|
50
|
+
"sections": []
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
您好,我是您的飞桨深度学习编程助手,我对深度学习与飞桨框架(PaddlePaddle)有着深入了解,可以为您编写深度学习领域内的代码并解答问题。我具备以下能力:
|
|
2
|
+
|
|
3
|
+
# 默认能力(通用问答)
|
|
4
|
+
* 无需选中特定能力,默认情况下为通用问答,包括深度学习领域内的问题解答、代码生成、代码转换、代码解释和代码改写等各种能力,同时支持多轮问答
|
|
5
|
+
* 您可以灵活的与我开展对话,例如:
|
|
6
|
+
1. 描述飞桨相关问题,例如:介绍下自动微分机制、介绍下飞桨的分布式自动并行方式、如何安装飞桨框架、介绍下飞桨的动静态图机制等
|
|
7
|
+
2. 描述飞桨代码需求,例如:帮我编写模型组网函数、编写网络训练函数、调用深度学习框架接口、Resnet50网络代码等
|
|
8
|
+
3. 任意提问...
|
|
9
|
+
|
|
10
|
+
# 代码生成
|
|
11
|
+
* 自动生成使用飞桨编写的代码,支持一键生成 **模型组网函数** 、**网络训练函数** 、**调用深度学习框架接口** 等
|
|
12
|
+
* 请具体描述您的飞桨代码需求,例如:线性层网络、矩阵乘法、二维卷积、最大池化、cross-entropy损失函数、正则化、梯度裁剪等
|
|
13
|
+
* 相比通用问答能力,代码生成能力更为定制化,可以更精准的满足您编写代码的需求
|
|
14
|
+
|
|
15
|
+
# 代码转换
|
|
16
|
+
* 将使用其他深度学习框架的代码(如Pytorch、Tensorflow、Keras、MXNet、MindSpore等),转换为使用飞桨框架的代码,支持项目一键迁移
|
|
17
|
+
* 针对Pytorch框架(推荐用法):做了特殊调优,转换速度极快,支持文件与目录的 **批量/长文本转换**,且准确率更高
|
|
18
|
+
* 针对其他框架:使用普通大模型转换方式,转换速度一般
|
|
19
|
+
* 输入方式:
|
|
20
|
+
1. 直接回车则默认转换 **当前文件**
|
|
21
|
+
2. 使用 # 选择路径(文件或目录)
|
|
22
|
+
3. 直接输入相对路径(文件或目录)
|
|
23
|
+
4. 框选代码
|
|
24
|
+
* 相比通用问答能力,代码转换能力更为定制化,可以更精准的满足您转换代码的需求,且转换速度更快,准确率更高
|
|
25
|
+
|
|
26
|
+
# 代码解释
|
|
27
|
+
* 结合飞桨专业知识与历史优秀代码集,对代码进行解释。直接 **框选代码** 后回车即可
|
|
28
|
+
* 相比通用问答能力,代码解释能力更为定制化,可以更精准的满足您的解释代码需求
|
|
29
|
+
|
|
30
|
+
# 代码改写
|
|
31
|
+
* 优化代码的写法,例如将单卡写法改为多卡写法。正在建设中,敬请期待...
|