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.
@@ -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 };
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ startGuiServer
4
+ } from "./chunk-VRXNOGLL.js";
5
+ export {
6
+ startGuiServer
7
+ };