From d9982365834f21006566109c0c7ea00d661644c7 Mon Sep 17 00:00:00 2001 From: QQ Date: Wed, 11 Nov 2026 10:51:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20lib/api.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/api.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/api.js b/lib/api.js index 21e2479..1d7a498 100644 --- a/lib/api.js +++ b/lib/api.js @@ -195,6 +195,22 @@ export class CloudClient { storageStatus() { return this.request('GET', '/storage/status'); } + /** List the cloud skill center inventory (memory token). */ + listSkills() { + return this.request('GET', '/skills'); + } + /** Fetch one skill bundle with hashed, base64-carried files (memory token). */ + skillBundle(name) { + return this.request('GET', `/skills/${encodeURIComponent(name)}/bundle`); + } + /** Create one skill in the center; `expected_revision` must be 0 (memory token). */ + createSkill(body) { + return this.request('POST', '/skills', body); + } + /** Replace one skill's files/description at an expected revision (memory token). */ + updateSkill(name, body) { + return this.request('PATCH', `/skills/${encodeURIComponent(name)}`, body); + } /** * One call against the dashboard auth surface (`/api/auth/*`). *