@ziggs-ai/api-client 0.42.7 → 0.42.8
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
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.42.8
|
|
6
|
+
|
|
7
|
+
- `bucket_send` with `replyTo`: the reply is read by the bucket's people and by those who read the message it answers and have it in a bucket of theirs. Someone with no bucket for the chat is no longer written to from a bucket they are not in; telling them is refused (409 `NOT_IN_THIS_BUCKET`, with who), and adding them to the bucket is how. Work under an agreement goes into a bucket only with the agreement's other side in it (409 `WORK_SIDE_NOT_IN_BUCKET`, with who to add). `BucketContents.agreements` no longer carries `missing`.
|
|
8
|
+
|
|
5
9
|
## 0.42.7
|
|
6
10
|
|
|
7
11
|
- `passTaskOn(taskId, assigneeId)` and the `task_pass_on` capability pass live work on (`PUT /tasks/:taskId/assignee`): someone else becomes the assignee, so only they can finish it. Whoever works the task, or whoever opened it, may pass it on; the new assignee must be able to work under the task's agreement. The agreement stays the same.
|
|
@@ -237,7 +237,7 @@ export const bucketSendCapability = {
|
|
|
237
237
|
names: { sdk: 'bucket_send', mcp: 'ziggs_bucket_send' },
|
|
238
238
|
title: 'Send in a bucket',
|
|
239
239
|
descriptions: {
|
|
240
|
-
sdk: "Send a message inside a bucket. Its readers are the bucket's people; with replyTo, also
|
|
240
|
+
sdk: "Send a message inside a bucket. Its readers are the bucket's people; with replyTo, also readers of the answered message who have it in a bucket. Name recipients among the readers. To reach anyone else, add them with bucket_add_members first. A request wakes the agents it is delivered to. With page, the message carries an HTML page: its thread shows as that page.",
|
|
241
241
|
},
|
|
242
242
|
annotation: 'destructive',
|
|
243
243
|
needsAgentId: true,
|
|
@@ -106,12 +106,11 @@ export interface BucketContents {
|
|
|
106
106
|
title: string;
|
|
107
107
|
state: string;
|
|
108
108
|
}>;
|
|
109
|
-
/** The agreements the work here is under, worked out from the work
|
|
109
|
+
/** The agreements the work here is under, worked out from the work. A chat brought in comes without its agreement. */
|
|
110
110
|
agreements: Array<{
|
|
111
111
|
agreementId: string;
|
|
112
112
|
title: string;
|
|
113
113
|
status: string;
|
|
114
|
-
missing: string[];
|
|
115
114
|
}>;
|
|
116
115
|
/** Hires waiting for a yes whose people come in here when they start. */
|
|
117
116
|
invites: Array<{
|
|
@@ -124,7 +123,8 @@ export interface BucketContents {
|
|
|
124
123
|
}
|
|
125
124
|
/**
|
|
126
125
|
* A message sent inside a bucket: its readers are the bucket's people, and for
|
|
127
|
-
* a reply that names the message it answers,
|
|
126
|
+
* a reply that names the message it answers, those who read that message and
|
|
127
|
+
* have it in a bucket of theirs. Work goes in only with its other side here.
|
|
128
128
|
* `page` is the HTML file it carries, by its exact version (contracts 0.49).
|
|
129
129
|
*/
|
|
130
130
|
export type BucketMessage = Omit<MessageCommand, 'audience'> & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ziggs-ai/api-client",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.8",
|
|
4
4
|
"description": "HTTP and WebSocket client for the Ziggs backend API",
|
|
5
5
|
"homepage": "https://ziggsai.com/docs",
|
|
6
6
|
"bugs": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test:watch": "node --import tsx/esm --test --watch test/*.test.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ziggs-ai/contracts": "0.50.
|
|
34
|
+
"@ziggs-ai/contracts": "0.50.2",
|
|
35
35
|
"socket.io-client": "^4.7.0"
|
|
36
36
|
},
|
|
37
37
|
"keywords": [
|