itismyskillmarket 1.3.37 → 1.3.39
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 +4 -2
- package/dist/chunk-VRXNOGLL.js +2349 -0
- package/dist/electron-entry.d.ts +28 -0
- package/dist/electron-entry.js +7 -0
- package/dist/index.js +146 -2337
- package/electron/icon.ico +0 -0
- package/electron/icon.png +0 -0
- package/electron/main.mjs +214 -0
- package/electron/preload.mjs +18 -0
- package/electron/tray-icon.png +0 -0
- package/electron//345/220/257/345/212/250/346/241/214/351/235/242/345/272/224/347/224/250.bat +3 -0
- package/gui/app.js +38 -5
- package/package.json +60 -3
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as http from 'http';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* =============================================================================
|
|
5
|
+
* SkillMarket GUI Server
|
|
6
|
+
* =============================================================================
|
|
7
|
+
*
|
|
8
|
+
* 提供本地 HTTP API 供 GUI 前端调用,封装 SkillMarket 命令功能。
|
|
9
|
+
*
|
|
10
|
+
* API 端点:
|
|
11
|
+
* GET /api/skills?page=1&limit=20&search= - 列出 npm skills
|
|
12
|
+
* GET /api/installed - 列出已安装 skills
|
|
13
|
+
* GET /api/platforms - 列出可用平台
|
|
14
|
+
* GET /api/skill-info?skill=xxx - skill 详情
|
|
15
|
+
* POST /api/install - 安装 skill
|
|
16
|
+
* POST /api/uninstall - 卸载 skill
|
|
17
|
+
* POST /api/update - 更新 skill(s)
|
|
18
|
+
*
|
|
19
|
+
* @module commands/ui
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* 启动 GUI 服务器
|
|
23
|
+
*
|
|
24
|
+
* @param port - 监听端口(默认 18770)
|
|
25
|
+
*/
|
|
26
|
+
declare function startGuiServer(port?: number): http.Server;
|
|
27
|
+
|
|
28
|
+
export { startGuiServer };
|