@bobannomi/client 0.6.0 → 0.7.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/dist/service.js CHANGED
@@ -5472,6 +5472,18 @@ function createRuntimeResources(transport, providers) {
5472
5472
  },
5473
5473
  skills: {
5474
5474
  list: (options) => transport.request("/skills", options),
5475
+ /** Install a ZIP into the current daemon's personal or authorized project skill directory. */
5476
+ async install(input, options) {
5477
+ const target = new URLSearchParams({ scope: input.scope });
5478
+ if (input.scope === "project") target.set("projectId", input.projectId);
5479
+ const response = await transport.requestResponse(`/skills/install?${target}`, {
5480
+ ...options,
5481
+ method: "POST",
5482
+ headers: { "content-type": "application/zip" },
5483
+ body: input.archive
5484
+ });
5485
+ return response.json();
5486
+ },
5475
5487
  marketplace: {
5476
5488
  list: (options) => transport.request("/skills/marketplace", options),
5477
5489
  install: (body, options) => transport.request("/skills/marketplace/install", { ...options, method: "POST", body })