dsh-skill-hub 0.2.5 → 0.3.0

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 CHANGED
@@ -254,7 +254,9 @@ All endpoints are **loopback-only** (`127.0.0.1`/`localhost`) and JSON.
254
254
  | `/api/skill-hub/market/check` | GET | Check market sources for newer releases (throttled). |
255
255
  | `/api/skill-hub/market/source/sync` | POST | Align a market source to its pinned ref; returns tracked skills. |
256
256
  | `/api/skill-hub/repo?repo=` | GET | Discover importable skills in a GitHub repo. |
257
- | `/api/skill-hub/repo/import` | POST | Import selected repo skills (records the source + default scene). |
257
+ | `/api/skill-hub/repo/import` | POST | Create an async import job (returns `{jobId, total, totalBytes}`); poll progress below. |
258
+ | `/api/skill-hub/repo/import/progress?jobId=` | GET | Poll a running import job (`{status, done, total, downloadedBytes, totalBytes, bytesPerSecond, current, imported, skipped, failed}`). |
259
+ | `/api/skill-hub/repo/import/cancel` | POST | Cancel a running import job (`{jobId}`). |
258
260
  | `/api/skill-hub/sources` | GET | Source records, derived origins/collections, trash. |
259
261
  | `/api/skill-hub/sources/check` | POST | Check upstream updates (throttled, 5 min). |
260
262
  | `/api/skill-hub/sources/sync` | POST | Sync selected (or all) skills of a source. |
package/README.zh.md CHANGED
@@ -231,7 +231,9 @@ description: 一句话说明什么时候该用这个技能。
231
231
  | `/api/skill-hub/market/check` | GET | 检查市场源是否有新版本(节流)。 |
232
232
  | `/api/skill-hub/market/source/sync` | POST | 市场源版本对齐,返回该源跟踪的技能。 |
233
233
  | `/api/skill-hub/repo?repo=` | GET | 发现 GitHub 仓库中可导入的技能。 |
234
- | `/api/skill-hub/repo/import` | POST | 导入所选仓库技能(记录来源 + 归入默认场景)。 |
234
+ | `/api/skill-hub/repo/import` | POST | 创建异步导入任务(返回 `{jobId, total, totalBytes}`,轮询进度见下)。 |
235
+ | `/api/skill-hub/repo/import/progress?jobId=` | GET | 轮询导入任务进度(`{status, done, total, downloadedBytes, totalBytes, bytesPerSecond, current, imported, skipped, failed}`)。 |
236
+ | `/api/skill-hub/repo/import/cancel` | POST | 取消进行中的导入任务(`{jobId}`)。 |
235
237
  | `/api/skill-hub/sources` | GET | 来源记录、派生 origin/集合、回收站。 |
236
238
  | `/api/skill-hub/sources/check` | POST | 检查上游更新(5 分钟节流)。 |
237
239
  | `/api/skill-hub/sources/sync` | POST | 同步某来源所选(或全部)技能。 |