hvip-mcp-server 0.2.57 → 0.2.58

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -37289,6 +37289,17 @@ var AgentHub = class {
37289
37289
  message: `${agentId} \u5DF2\u5B8C\u6210 ${taskId}\uFF0C\u7B49\u5F85\u5BA1\u6838`
37290
37290
  });
37291
37291
  }
37292
+ // ── 注册任务(不派发,仅登记) ──
37293
+ registerTask(taskId, title) {
37294
+ if (!this.tasks.has(taskId)) {
37295
+ this.tasks.set(taskId, { status: "unassigned" });
37296
+ }
37297
+ if (title) {
37298
+ const t = this.tasks.get(taskId);
37299
+ t.title = title;
37300
+ }
37301
+ console.log(`[AgentHub] \u4EFB\u52A1\u6CE8\u518C: ${taskId} "${title || taskId}"`);
37302
+ }
37292
37303
  // ── 派发任务 ──
37293
37304
  dispatchTaskTo(taskId, agentId) {
37294
37305
  if (!this.tasks.has(taskId)) {
@@ -37442,6 +37453,9 @@ var AgentHub = class {
37442
37453
  "T-005": "\u4E8B\u4EF6\u5408\u7EA6\u4EA4\u6613 (5 \u7AEF\u70B9, EVENTS)",
37443
37454
  "T-006": "H Rails /markets \u5217\u8868 (1 \u7AEF\u70B9)"
37444
37455
  };
37456
+ const t = this.tasks.get(taskId);
37457
+ const custom3 = t?.title;
37458
+ if (custom3 && custom3 !== taskId) return custom3;
37445
37459
  return titles[taskId] || taskId;
37446
37460
  }
37447
37461
  // ── 状态快照 ──
@@ -38281,7 +38295,7 @@ async function startStdio(server, version2, auth, readOnly, skipped, skipLog) {
38281
38295
  await server.connect(transport);
38282
38296
  }
38283
38297
  async function main() {
38284
- const VERSION = "0.2.57";
38298
+ const VERSION = "0.2.58";
38285
38299
  const argv = process.argv.slice(2);
38286
38300
  if (argv.includes("--help") || argv.includes("-h")) printHelpAndExit(VERSION);
38287
38301
  if (argv.includes("--version") || argv.includes("-v")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hvip-mcp-server",
3
- "version": "0.2.57",
3
+ "version": "0.2.58",
4
4
  "description": "hvip MCP Server — 365 工具覆盖 97.7% OKX REST API,含交易/行情/资金/策略/预测市场/技术指标/Smart Money(非 OKX 官方产品)",
5
5
  "homepage": "https://github.com/okx-wallet-H/hvip-mcp",
6
6
  "repository": {