@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,490 @@
|
|
|
1
|
+
import { SkillProvider, StringChunkStream, 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 = 'workcard-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
|
+
const SEARCH_URL = 'https://uflow.baidu-int.com/workflow/api/flow/v1/trigger-webhook/a072fd263b524206bb1a3f1b485a8bb9';
|
|
28
|
+
|
|
29
|
+
class buildParamForUserDataProvider extends SkillProvider {
|
|
30
|
+
static{
|
|
31
|
+
this.skillName = 'buildParamForUserData';
|
|
32
|
+
}
|
|
33
|
+
static{
|
|
34
|
+
this.displayName = '生成卡片模板UserData对象';
|
|
35
|
+
}
|
|
36
|
+
static{
|
|
37
|
+
this.description = '构建卡片模板参数对应对象';
|
|
38
|
+
}
|
|
39
|
+
static{
|
|
40
|
+
this.parameters = {
|
|
41
|
+
type: 'object',
|
|
42
|
+
properties: {}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
async *execute() {
|
|
46
|
+
// 用户在输入框输入的问题
|
|
47
|
+
const { query } = this.currentContext;
|
|
48
|
+
const stream = new StringChunkStream();
|
|
49
|
+
yield stream.flush('正在思考中,请耐心等候...');
|
|
50
|
+
const userDetail = await this.currentUser.requestDetail();
|
|
51
|
+
const realUserName = userDetail && userDetail.name || '未知用户';
|
|
52
|
+
const codePath = this.currentContext.activeFilePath;
|
|
53
|
+
const activeFileLanguage = this.currentContext.activeFileLanguage;
|
|
54
|
+
const repository = await this.retriever.repositoryInfo();
|
|
55
|
+
const raw = JSON.stringify({
|
|
56
|
+
query,
|
|
57
|
+
task_engine_userId: realUserName,
|
|
58
|
+
codePath,
|
|
59
|
+
activeFileLanguage,
|
|
60
|
+
repository,
|
|
61
|
+
source: 'comate',
|
|
62
|
+
cmdType: 'buildParamForUserData'
|
|
63
|
+
});
|
|
64
|
+
const options = {
|
|
65
|
+
method: 'POST',
|
|
66
|
+
headers: {
|
|
67
|
+
'Content-Type': 'application/json'
|
|
68
|
+
},
|
|
69
|
+
body: raw
|
|
70
|
+
};
|
|
71
|
+
try {
|
|
72
|
+
const response = await fetch(SEARCH_URL, options);
|
|
73
|
+
const result = await response.json();
|
|
74
|
+
yield stream.flushReplaceLast(result.content); // markdown字符串
|
|
75
|
+
} catch (ex) {
|
|
76
|
+
yield stream.flushReplaceLast(`请求出错,请联系负责人(wangjie66)或稍后再试。${ex instanceof Error ? ex.message : ''}`);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
defaultArgumentValue() {
|
|
80
|
+
return {
|
|
81
|
+
query: '任意代码'
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
class buildParamForSendCardProvider extends SkillProvider {
|
|
87
|
+
static{
|
|
88
|
+
this.skillName = 'buildParamForSendCard';
|
|
89
|
+
}
|
|
90
|
+
static{
|
|
91
|
+
this.displayName = '生成卡片发送请求入参&返回值对象';
|
|
92
|
+
}
|
|
93
|
+
static{
|
|
94
|
+
this.description = '生成卡片发送请求入参&返回值对象';
|
|
95
|
+
}
|
|
96
|
+
static{
|
|
97
|
+
this.parameters = {
|
|
98
|
+
type: 'object',
|
|
99
|
+
properties: {}
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
async *execute() {
|
|
103
|
+
// 用户在输入框输入的问题
|
|
104
|
+
const { query } = this.currentContext;
|
|
105
|
+
const stream = new TaskProgressChunkStream();
|
|
106
|
+
const userDetail = await this.currentUser.requestDetail();
|
|
107
|
+
const realUserName = userDetail && userDetail.name || '未知用户';
|
|
108
|
+
const codePath = this.currentContext.activeFilePath;
|
|
109
|
+
const activeFileLanguage = this.currentContext.activeFileLanguage;
|
|
110
|
+
const repository = await this.retriever.repositoryInfo();
|
|
111
|
+
const raw = JSON.stringify({
|
|
112
|
+
query,
|
|
113
|
+
task_engine_userId: realUserName,
|
|
114
|
+
codePath,
|
|
115
|
+
activeFileLanguage,
|
|
116
|
+
repository,
|
|
117
|
+
source: 'comate',
|
|
118
|
+
cmdType: 'buildParamForSendCard'
|
|
119
|
+
});
|
|
120
|
+
const options = {
|
|
121
|
+
method: 'POST',
|
|
122
|
+
headers: {
|
|
123
|
+
'Content-Type': 'application/json'
|
|
124
|
+
},
|
|
125
|
+
body: raw
|
|
126
|
+
};
|
|
127
|
+
try {
|
|
128
|
+
const response = await fetch(SEARCH_URL, options);
|
|
129
|
+
const result = await response.json();
|
|
130
|
+
yield stream.flushReplaceLast(result.content); // markdown字符串
|
|
131
|
+
} catch (ex) {
|
|
132
|
+
yield stream.flushReplaceLast(`请求出错,请联系负责人(wangjie66)或稍后再试。${ex instanceof Error ? ex.message : ''}`);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
defaultArgumentValue() {
|
|
136
|
+
return {
|
|
137
|
+
query: '任意代码'
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
class buildParamForModifyCardProvider extends SkillProvider {
|
|
143
|
+
static{
|
|
144
|
+
this.skillName = 'buildParamForModifyCard';
|
|
145
|
+
}
|
|
146
|
+
static{
|
|
147
|
+
this.displayName = '生成卡片修改请求对象';
|
|
148
|
+
}
|
|
149
|
+
static{
|
|
150
|
+
this.description = '构建卡片修改请求对象';
|
|
151
|
+
}
|
|
152
|
+
static{
|
|
153
|
+
this.parameters = {
|
|
154
|
+
type: 'object',
|
|
155
|
+
properties: {}
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
async *execute() {
|
|
159
|
+
// 用户在输入框输入的问题
|
|
160
|
+
const { query } = this.currentContext;
|
|
161
|
+
const stream = new TaskProgressChunkStream();
|
|
162
|
+
const userDetail = await this.currentUser.requestDetail();
|
|
163
|
+
const realUserName = userDetail && userDetail.name || '未知用户';
|
|
164
|
+
const codePath = this.currentContext.activeFilePath;
|
|
165
|
+
const activeFileLanguage = this.currentContext.activeFileLanguage;
|
|
166
|
+
const repository = await this.retriever.repositoryInfo();
|
|
167
|
+
const raw = JSON.stringify({
|
|
168
|
+
query,
|
|
169
|
+
task_engine_userId: realUserName,
|
|
170
|
+
codePath,
|
|
171
|
+
activeFileLanguage,
|
|
172
|
+
repository,
|
|
173
|
+
source: 'comate',
|
|
174
|
+
cmdType: 'buildParamForModifyCard'
|
|
175
|
+
});
|
|
176
|
+
const options = {
|
|
177
|
+
method: 'POST',
|
|
178
|
+
headers: {
|
|
179
|
+
'Content-Type': 'application/json'
|
|
180
|
+
},
|
|
181
|
+
body: raw
|
|
182
|
+
};
|
|
183
|
+
try {
|
|
184
|
+
const response = await fetch(SEARCH_URL, options);
|
|
185
|
+
const result = await response.json();
|
|
186
|
+
yield stream.flushReplaceLast(result.content); // markdown字符串
|
|
187
|
+
} catch (ex) {
|
|
188
|
+
yield stream.flushReplaceLast(`请求出错,请联系负责人(wangjie66)或稍后再试。${ex instanceof Error ? ex.message : ''}`);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
defaultArgumentValue() {
|
|
192
|
+
return {
|
|
193
|
+
query: '任意代码'
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
class buildParamForCallbackRequestProvider extends SkillProvider {
|
|
199
|
+
static{
|
|
200
|
+
this.skillName = 'buildParamForCallbackRequest';
|
|
201
|
+
}
|
|
202
|
+
static{
|
|
203
|
+
this.displayName = '生成卡片回调请求入参&返回值对象';
|
|
204
|
+
}
|
|
205
|
+
static{
|
|
206
|
+
this.description = '生成卡片回调请求入参&返回值对象';
|
|
207
|
+
}
|
|
208
|
+
static{
|
|
209
|
+
this.parameters = {
|
|
210
|
+
type: 'object',
|
|
211
|
+
properties: {}
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
async *execute() {
|
|
215
|
+
// 用户在输入框输入的问题
|
|
216
|
+
const { query } = this.currentContext;
|
|
217
|
+
const stream = new TaskProgressChunkStream();
|
|
218
|
+
const userDetail = await this.currentUser.requestDetail();
|
|
219
|
+
const realUserName = userDetail && userDetail.name || '未知用户';
|
|
220
|
+
const codePath = this.currentContext.activeFilePath;
|
|
221
|
+
const activeFileLanguage = this.currentContext.activeFileLanguage;
|
|
222
|
+
const repository = await this.retriever.repositoryInfo();
|
|
223
|
+
const raw = JSON.stringify({
|
|
224
|
+
query,
|
|
225
|
+
task_engine_userId: realUserName,
|
|
226
|
+
codePath,
|
|
227
|
+
activeFileLanguage,
|
|
228
|
+
repository,
|
|
229
|
+
source: 'comate',
|
|
230
|
+
cmdType: 'buildParamForCallbackRequest'
|
|
231
|
+
});
|
|
232
|
+
const options = {
|
|
233
|
+
method: 'POST',
|
|
234
|
+
headers: {
|
|
235
|
+
'Content-Type': 'application/json'
|
|
236
|
+
},
|
|
237
|
+
body: raw
|
|
238
|
+
};
|
|
239
|
+
try {
|
|
240
|
+
const response = await fetch(SEARCH_URL, options);
|
|
241
|
+
const result = await response.json();
|
|
242
|
+
yield stream.flushReplaceLast(result.content); // markdown字符串
|
|
243
|
+
} catch (ex) {
|
|
244
|
+
yield stream.flushReplaceLast(`请求出错,请联系负责人(wangjie66)或稍后再试。${ex instanceof Error ? ex.message : ''}`);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
defaultArgumentValue() {
|
|
248
|
+
return {
|
|
249
|
+
query: '任意代码'
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
class MsgCipherUtilProvider extends SkillProvider {
|
|
255
|
+
static{
|
|
256
|
+
this.skillName = 'MsgCipherUtil';
|
|
257
|
+
}
|
|
258
|
+
static{
|
|
259
|
+
this.displayName = '生成卡片回调加解密方法';
|
|
260
|
+
}
|
|
261
|
+
static{
|
|
262
|
+
this.description = '构建卡片回调加解密方法';
|
|
263
|
+
}
|
|
264
|
+
static{
|
|
265
|
+
this.parameters = {
|
|
266
|
+
type: 'object',
|
|
267
|
+
properties: {}
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
async *execute() {
|
|
271
|
+
// 用户在输入框输入的问题
|
|
272
|
+
const { query } = this.currentContext;
|
|
273
|
+
const stream = new TaskProgressChunkStream();
|
|
274
|
+
const userDetail = await this.currentUser.requestDetail();
|
|
275
|
+
const realUserName = userDetail && userDetail.name || '未知用户';
|
|
276
|
+
const codePath = this.currentContext.activeFilePath;
|
|
277
|
+
const activeFileLanguage = this.currentContext.activeFileLanguage;
|
|
278
|
+
const repository = await this.retriever.repositoryInfo();
|
|
279
|
+
const raw = JSON.stringify({
|
|
280
|
+
query,
|
|
281
|
+
task_engine_userId: realUserName,
|
|
282
|
+
codePath,
|
|
283
|
+
activeFileLanguage,
|
|
284
|
+
repository,
|
|
285
|
+
source: 'comate',
|
|
286
|
+
cmdType: 'MsgCipherUtil'
|
|
287
|
+
});
|
|
288
|
+
const options = {
|
|
289
|
+
method: 'POST',
|
|
290
|
+
headers: {
|
|
291
|
+
'Content-Type': 'application/json'
|
|
292
|
+
},
|
|
293
|
+
body: raw
|
|
294
|
+
};
|
|
295
|
+
try {
|
|
296
|
+
const response = await fetch(SEARCH_URL, options);
|
|
297
|
+
const result = await response.json();
|
|
298
|
+
yield stream.flushReplaceLast(result.content); // markdown字符串
|
|
299
|
+
} catch (ex) {
|
|
300
|
+
yield stream.flushReplaceLast(`请求出错,请联系负责人(wangjie66)或稍后再试。${ex instanceof Error ? ex.message : ''}`);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
defaultArgumentValue() {
|
|
304
|
+
return {
|
|
305
|
+
query: '任意代码'
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
class buildAuthMethodProvider extends SkillProvider {
|
|
311
|
+
static{
|
|
312
|
+
this.skillName = 'buildAuthMethod';
|
|
313
|
+
}
|
|
314
|
+
static{
|
|
315
|
+
this.displayName = '生成卡片发送所需鉴权appToken';
|
|
316
|
+
}
|
|
317
|
+
static{
|
|
318
|
+
this.description = '生成卡片发送所需鉴权appToken';
|
|
319
|
+
}
|
|
320
|
+
static{
|
|
321
|
+
this.parameters = {
|
|
322
|
+
type: 'object',
|
|
323
|
+
properties: {}
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
async *execute() {
|
|
327
|
+
// 用户在输入框输入的问题
|
|
328
|
+
const { query } = this.currentContext;
|
|
329
|
+
const stream = new TaskProgressChunkStream();
|
|
330
|
+
const userDetail = await this.currentUser.requestDetail();
|
|
331
|
+
const realUserName = userDetail && userDetail.name || '未知用户';
|
|
332
|
+
const codePath = this.currentContext.activeFilePath;
|
|
333
|
+
const activeFileLanguage = this.currentContext.activeFileLanguage;
|
|
334
|
+
const repository = await this.retriever.repositoryInfo();
|
|
335
|
+
const raw = JSON.stringify({
|
|
336
|
+
query,
|
|
337
|
+
task_engine_userId: realUserName,
|
|
338
|
+
codePath,
|
|
339
|
+
activeFileLanguage,
|
|
340
|
+
repository,
|
|
341
|
+
source: 'comate',
|
|
342
|
+
cmdType: 'buildAuthMethod'
|
|
343
|
+
});
|
|
344
|
+
const options = {
|
|
345
|
+
method: 'POST',
|
|
346
|
+
headers: {
|
|
347
|
+
'Content-Type': 'application/json'
|
|
348
|
+
},
|
|
349
|
+
body: raw
|
|
350
|
+
};
|
|
351
|
+
try {
|
|
352
|
+
const response = await fetch(SEARCH_URL, options);
|
|
353
|
+
const result = await response.json();
|
|
354
|
+
yield stream.flushReplaceLast(result.content); // markdown字符串
|
|
355
|
+
} catch (ex) {
|
|
356
|
+
yield stream.flushReplaceLast(`请求出错,请联系负责人(wangjie66)或稍后再试。${ex instanceof Error ? ex.message : ''}`);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
defaultArgumentValue() {
|
|
360
|
+
return {
|
|
361
|
+
query: '任意代码'
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
class buildSendCardDemoProvider extends SkillProvider {
|
|
367
|
+
static{
|
|
368
|
+
this.skillName = 'buildSendCardDemo';
|
|
369
|
+
}
|
|
370
|
+
static{
|
|
371
|
+
this.displayName = '生成可调试发卡框架';
|
|
372
|
+
}
|
|
373
|
+
static{
|
|
374
|
+
this.description = '生成可调试发卡框架';
|
|
375
|
+
}
|
|
376
|
+
static{
|
|
377
|
+
this.parameters = {
|
|
378
|
+
type: 'object',
|
|
379
|
+
properties: {}
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
async *execute() {
|
|
383
|
+
// 用户在输入框输入的问题
|
|
384
|
+
const { query } = this.currentContext;
|
|
385
|
+
const stream = new TaskProgressChunkStream();
|
|
386
|
+
const userDetail = await this.currentUser.requestDetail();
|
|
387
|
+
const realUserName = userDetail && userDetail.name || '未知用户';
|
|
388
|
+
const codePath = this.currentContext.activeFilePath;
|
|
389
|
+
const activeFileLanguage = this.currentContext.activeFileLanguage;
|
|
390
|
+
const repository = await this.retriever.repositoryInfo();
|
|
391
|
+
const raw = JSON.stringify({
|
|
392
|
+
query,
|
|
393
|
+
task_engine_userId: realUserName,
|
|
394
|
+
codePath,
|
|
395
|
+
activeFileLanguage,
|
|
396
|
+
repository,
|
|
397
|
+
source: 'comate',
|
|
398
|
+
cmdType: 'buildSendCardDemo'
|
|
399
|
+
});
|
|
400
|
+
const options = {
|
|
401
|
+
method: 'POST',
|
|
402
|
+
headers: {
|
|
403
|
+
'Content-Type': 'application/json'
|
|
404
|
+
},
|
|
405
|
+
body: raw
|
|
406
|
+
};
|
|
407
|
+
try {
|
|
408
|
+
const response = await fetch(SEARCH_URL, options);
|
|
409
|
+
const result = await response.json();
|
|
410
|
+
yield stream.flushReplaceLast(result.content); // markdown字符串
|
|
411
|
+
} catch (ex) {
|
|
412
|
+
yield stream.flushReplaceLast(`请求出错,请联系负责人(wangjie66)或稍后再试。${ex instanceof Error ? ex.message : ''}`);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
defaultArgumentValue() {
|
|
416
|
+
return {
|
|
417
|
+
query: '任意代码'
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
class buildBubbleCardDemoProvider extends SkillProvider {
|
|
423
|
+
static{
|
|
424
|
+
this.skillName = 'buildBubbleCardDemo';
|
|
425
|
+
}
|
|
426
|
+
static{
|
|
427
|
+
this.displayName = '生成可调试气泡卡发卡框架';
|
|
428
|
+
}
|
|
429
|
+
static{
|
|
430
|
+
this.description = '生成可调试气泡卡发卡框架';
|
|
431
|
+
}
|
|
432
|
+
static{
|
|
433
|
+
this.parameters = {
|
|
434
|
+
type: 'object',
|
|
435
|
+
properties: {}
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
async *execute() {
|
|
439
|
+
// 用户在输入框输入的问题
|
|
440
|
+
const { query } = this.currentContext;
|
|
441
|
+
const stream = new TaskProgressChunkStream();
|
|
442
|
+
const userDetail = await this.currentUser.requestDetail();
|
|
443
|
+
const realUserName = userDetail && userDetail.name || '未知用户';
|
|
444
|
+
const codePath = this.currentContext.activeFilePath;
|
|
445
|
+
const activeFileLanguage = this.currentContext.activeFileLanguage;
|
|
446
|
+
const repository = await this.retriever.repositoryInfo();
|
|
447
|
+
const raw = JSON.stringify({
|
|
448
|
+
query,
|
|
449
|
+
task_engine_userId: realUserName,
|
|
450
|
+
codePath,
|
|
451
|
+
activeFileLanguage,
|
|
452
|
+
repository,
|
|
453
|
+
source: 'comate',
|
|
454
|
+
cmdType: 'buildBubbleCardDemo'
|
|
455
|
+
});
|
|
456
|
+
const options = {
|
|
457
|
+
method: 'POST',
|
|
458
|
+
headers: {
|
|
459
|
+
'Content-Type': 'application/json'
|
|
460
|
+
},
|
|
461
|
+
body: raw
|
|
462
|
+
};
|
|
463
|
+
try {
|
|
464
|
+
const response = await fetch(SEARCH_URL, options);
|
|
465
|
+
const result = await response.json();
|
|
466
|
+
yield stream.flushReplaceLast(result.content); // markdown字符串
|
|
467
|
+
} catch (ex) {
|
|
468
|
+
yield stream.flushReplaceLast(`请求出错,请联系负责人(wangjie66)或稍后再试。${ex instanceof Error ? ex.message : ''}`);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
defaultArgumentValue() {
|
|
472
|
+
return {
|
|
473
|
+
query: '任意代码'
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
function setup({ registry }) {
|
|
479
|
+
registry.registerSkillProvider('workcard-help', HelpSkillProvider);
|
|
480
|
+
registry.registerSkillProvider('buildParamForUserData', buildParamForUserDataProvider);
|
|
481
|
+
registry.registerSkillProvider('buildParamForSendCard', buildParamForSendCardProvider);
|
|
482
|
+
registry.registerSkillProvider('buildParamForModifyCard', buildParamForModifyCardProvider);
|
|
483
|
+
registry.registerSkillProvider('buildParamForCallbackRequest', buildParamForCallbackRequestProvider);
|
|
484
|
+
registry.registerSkillProvider('MsgCipherUtil', MsgCipherUtilProvider);
|
|
485
|
+
registry.registerSkillProvider('buildAuthMethod', buildAuthMethodProvider);
|
|
486
|
+
registry.registerSkillProvider('buildSendCardDemo', buildSendCardDemoProvider);
|
|
487
|
+
registry.registerSkillProvider('buildBubbleCardDemo', buildBubbleCardDemoProvider);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export { setup };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"name": "@comate-plugin/workcard",
|
|
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": "workcard",
|
|
19
|
+
"version": "1.0.0",
|
|
20
|
+
"icon": "./assets/favicon.png",
|
|
21
|
+
"entry": "./dist/index.js",
|
|
22
|
+
"displayName": "智能工作卡",
|
|
23
|
+
"description": "支持自动生成接入智能工作卡代码,包括发卡,回调,更新接口对象构建,加解密等方法",
|
|
24
|
+
"keyword": [],
|
|
25
|
+
"capabilities": [
|
|
26
|
+
{
|
|
27
|
+
"type": "Skill",
|
|
28
|
+
"name": "workcard-help",
|
|
29
|
+
"displayName": "插件介绍",
|
|
30
|
+
"description": "确认插件成功运行并介绍开发方式",
|
|
31
|
+
"placeholder": "无需输入内容,回车获得插件介绍"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "Skill",
|
|
35
|
+
"name": "buildSendCardDemo",
|
|
36
|
+
"displayName": "发卡-生成可调试发卡框架(推荐)",
|
|
37
|
+
"description": "生成可调试发卡框架",
|
|
38
|
+
"placeholder": "请输入卡片模板ID"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"type": "Skill",
|
|
42
|
+
"name": "buildBubbleCardDemo",
|
|
43
|
+
"displayName": "气泡卡-生成可调试气泡卡发卡框架",
|
|
44
|
+
"description": "生成可调试气泡卡发卡框架",
|
|
45
|
+
"placeholder": "请输入卡片模板ID"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"type": "Skill",
|
|
49
|
+
"name": "buildAuthMethod",
|
|
50
|
+
"displayName": "发卡-生成获取appToken方法",
|
|
51
|
+
"description": "生成获取appToken方法",
|
|
52
|
+
"placeholder": "无需输入内容,回车生成方法"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "Skill",
|
|
56
|
+
"name": "buildParamForUserData",
|
|
57
|
+
"displayName": "发卡-生成UserData对象",
|
|
58
|
+
"description": "构建卡片发送对象",
|
|
59
|
+
"placeholder": "请输入卡片模板ID"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "Skill",
|
|
63
|
+
"name": "buildParamForSendCard",
|
|
64
|
+
"displayName": "发卡-生成发卡请求入参&返回值对象",
|
|
65
|
+
"description": "生成发卡请求入参&返回值对象",
|
|
66
|
+
"placeholder": "请输入卡片模板ID"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "Skill",
|
|
70
|
+
"name": "buildParamForCallbackRequest",
|
|
71
|
+
"displayName": "回调-生成回调请求入参&返回值对象",
|
|
72
|
+
"description": "生成回调请求入参&返回值对象",
|
|
73
|
+
"placeholder": "请输入卡片模板ID"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "Skill",
|
|
77
|
+
"name": "MsgCipherUtil",
|
|
78
|
+
"displayName": "回调-生成回调加解密方法",
|
|
79
|
+
"description": "生成回调加解密方法",
|
|
80
|
+
"placeholder": "请输入卡片模板ID"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "Skill",
|
|
84
|
+
"name": "buildParamForModifyCard",
|
|
85
|
+
"displayName": "修改-生成卡片修改请求对象",
|
|
86
|
+
"description": "生成卡片修改请求对象",
|
|
87
|
+
"placeholder": "请输入卡片模板ID"
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
],
|
|
91
|
+
"configSchema": {
|
|
92
|
+
"sections": []
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
Binary file
|