@zoowork-ai/sdk 0.10.1 → 0.10.2
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/CHANGELOG.md +6 -0
- package/dist/client.d.ts +30 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to `@zoowork-ai/sdk` (formerly `@zooclaw-agents/sdk`). Dates are the
|
|
4
4
|
day the behaviour was verified, not the day it was written.
|
|
5
5
|
|
|
6
|
+
## 0.10.2 — 2026-10-04
|
|
7
|
+
|
|
8
|
+
- Accept `project` in `uploadSkill` for named Project keys.
|
|
9
|
+
- Clarify Skill registry read/write scopes, version publishing, and Agent bindings for Platform keys.
|
|
10
|
+
- Existing calls remain compatible. Project-scoped uploads require service-side support; this SDK release does not deploy the service.
|
|
11
|
+
|
|
6
12
|
## 0.10.1 — 2026-10-03
|
|
7
13
|
|
|
8
14
|
- Correct production availability guidance for Files, Database viewer, Schedules and Agent configuration updates.
|
package/dist/client.d.ts
CHANGED
|
@@ -676,7 +676,7 @@ export interface AgentRecord {
|
|
|
676
676
|
*/
|
|
677
677
|
export interface SkillRecord {
|
|
678
678
|
skill_id: string;
|
|
679
|
-
scope?: 'org' | 'personal' | 'global' | 'pack' | string;
|
|
679
|
+
scope?: 'project' | 'org' | 'personal' | 'global' | 'pack' | string;
|
|
680
680
|
name?: string;
|
|
681
681
|
description?: string;
|
|
682
682
|
latest_version?: number | string | null;
|
|
@@ -694,6 +694,7 @@ export interface SkillRecord {
|
|
|
694
694
|
ownership?: {
|
|
695
695
|
owner_uid?: string | null;
|
|
696
696
|
org_id?: string | null;
|
|
697
|
+
project_id?: string | null;
|
|
697
698
|
[k: string]: unknown;
|
|
698
699
|
};
|
|
699
700
|
[k: string]: unknown;
|
|
@@ -1408,9 +1409,10 @@ export interface ZooworkClient extends DeveloperApi {
|
|
|
1408
1409
|
verbose?: boolean;
|
|
1409
1410
|
}): Promise<AgentSkill[]>;
|
|
1410
1411
|
/**
|
|
1411
|
-
* Attach a
|
|
1412
|
-
*
|
|
1413
|
-
*
|
|
1412
|
+
* Attach a visible Skill by id. Platform keys can attach global, same-org org,
|
|
1413
|
+
* same-Project project, and eligible owner-personal Skills. Binding a visible Skill
|
|
1414
|
+
* does not grant permission to publish its versions or delete its registry record.
|
|
1415
|
+
* Work service tokens retain their org/personal visibility rules.
|
|
1414
1416
|
*/
|
|
1415
1417
|
putAgentSkill(agentId: string, skillId: string, opts?: {
|
|
1416
1418
|
enabled?: boolean;
|
|
@@ -1574,14 +1576,18 @@ export interface ZooworkClient extends DeveloperApi {
|
|
|
1574
1576
|
* accepted. `SKILL.md` must be non-empty and declare both `name` and `description`.
|
|
1575
1577
|
* 50 MB expanded, zip only (store/deflate), encrypted zips rejected.
|
|
1576
1578
|
*
|
|
1577
|
-
*
|
|
1578
|
-
*
|
|
1579
|
+
* Platform keys on deployments with Project Skill registry support use project scope for a
|
|
1580
|
+
* named Project and org scope for the Default Project. Ownership is derived from the key;
|
|
1581
|
+
* Default Project org Skills are shared across the Organization. Other scopes return
|
|
1582
|
+
* 400 service_api.invalid_body. Work service tokens retain org/personal create scopes.
|
|
1583
|
+
* Older deployments may reject Platform registry requests with 404; SDK support alone
|
|
1584
|
+
* does not prove deployment availability. On CREATE the public gateway drops the
|
|
1579
1585
|
* description option: put the description in the zip's frontmatter instead.
|
|
1580
1586
|
* idempotencyKey is retained as a transport option, not a replay guarantee for Skill uploads.
|
|
1581
1587
|
* A retry after a successful create can return 409 skill_exists; read back before retrying.
|
|
1582
1588
|
*/
|
|
1583
1589
|
uploadSkill(zip: Blob | ArrayBuffer | Uint8Array, opts: {
|
|
1584
|
-
scope: 'org' | 'personal';
|
|
1590
|
+
scope: 'project' | 'org' | 'personal';
|
|
1585
1591
|
fileName?: string;
|
|
1586
1592
|
description?: string;
|
|
1587
1593
|
idempotencyKey?: string;
|
|
@@ -1592,6 +1598,10 @@ export interface ZooworkClient extends DeveloperApi {
|
|
|
1592
1598
|
* skill's name. Unlike root create, description can override the frontmatter here.
|
|
1593
1599
|
* Returns a version row (version/state), not a SkillRecord (latest_version/status).
|
|
1594
1600
|
* Identical content for the same skill is deduplicated by content, not by Idempotency-Key.
|
|
1601
|
+
* Platform keys can publish only within their write scope: their own named Project's
|
|
1602
|
+
* project Skills, or their Organization's org Skills for a Default Project key. Visible
|
|
1603
|
+
* global/personal Skills and a named Project's visible org Skills remain read-only in the
|
|
1604
|
+
* registry; writes return 404 service_api.not_found. Requires Project registry deployment support.
|
|
1595
1605
|
*
|
|
1596
1606
|
* Agents that installed the skill unpinned follow the new version on their own — the registry
|
|
1597
1607
|
* bumps their `config_version`; you do not re-`putAgentSkill`.
|
|
@@ -1602,16 +1612,24 @@ export interface ZooworkClient extends DeveloperApi {
|
|
|
1602
1612
|
idempotencyKey?: string;
|
|
1603
1613
|
}): Promise<SkillVersionRecord>;
|
|
1604
1614
|
/**
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
*
|
|
1615
|
+
* One page of the visible catalog. With Project registry deployment support, Platform keys
|
|
1616
|
+
* see global Skills, their Organization's org Skills, their named Project's project Skills,
|
|
1617
|
+
* and eligible personal Skills owned by the key's owner. Visibility does not grant registry
|
|
1618
|
+
* write permission. Ownership selectors come from the key. Work service tokens retain their
|
|
1619
|
+
* existing catalog behavior. `q` matches name; `page` is 1-based with a page size of 100.
|
|
1608
1620
|
*/
|
|
1609
1621
|
listSkills(opts?: {
|
|
1610
|
-
scope?: 'org' | 'personal' | 'global' | string;
|
|
1622
|
+
scope?: 'project' | 'org' | 'personal' | 'global' | string;
|
|
1611
1623
|
q?: string;
|
|
1612
1624
|
page?: number;
|
|
1613
1625
|
}): Promise<SkillRecord[]>;
|
|
1614
|
-
/**
|
|
1626
|
+
/**
|
|
1627
|
+
* Delete the registry Skill (204), not just one Agent binding. Platform keys require Project
|
|
1628
|
+
* registry deployment support and may delete only their own named Project's project Skills
|
|
1629
|
+
* or, for a Default Project key, their Organization's org Skills. Other IDs, including visible
|
|
1630
|
+
* read-only Skills, return 404 service_api.not_found. Check consumers before deleting a shared
|
|
1631
|
+
* org Skill; use deleteAgentSkill to detach only one Agent.
|
|
1632
|
+
*/
|
|
1615
1633
|
deleteSkill(skillId: string): Promise<void>;
|
|
1616
1634
|
createSession(agentId: string, input: {
|
|
1617
1635
|
initial_events?: OutboundEvent[];
|