@ziggs-ai/api-client 0.20.0 → 0.22.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/capabilities/agreementVerbs.d.ts +7 -0
- package/dist/capabilities/agreementVerbs.js +84 -1
- package/dist/capabilities/artifacts.js +53 -26
- package/dist/capabilities/chat.d.ts +31 -1
- package/dist/capabilities/chat.js +40 -1
- package/dist/capabilities/context.d.ts +1 -0
- package/dist/capabilities/context.js +46 -5
- package/dist/capabilities/discovery.js +10 -4
- package/dist/capabilities/index.d.ts +4 -4
- package/dist/capabilities/index.js +4 -4
- package/dist/capabilities/marketplace.js +15 -6
- package/dist/capabilities/nextCall.js +62 -4
- package/dist/capabilities/tasks.d.ts +68 -1
- package/dist/capabilities/tasks.js +112 -3
- package/dist/decisionWords.d.ts +51 -0
- package/dist/decisionWords.js +86 -0
- package/dist/engagementGuide.d.ts +148 -0
- package/dist/engagementGuide.js +349 -0
- package/dist/http/AgreementClient.d.ts +2 -1
- package/dist/http/AgreementClient.js +4 -0
- package/dist/http/ChatClient.d.ts +28 -2
- package/dist/http/ChatClient.js +7 -0
- package/dist/http/ContextGrantsClient.d.ts +17 -1
- package/dist/http/ContextGrantsClient.js +26 -2
- package/dist/http/ContextReadClient.d.ts +8 -1
- package/dist/http/TaskClient.d.ts +14 -2
- package/dist/http/TaskClient.js +21 -6
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/types.d.ts +11 -0
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -216,6 +216,17 @@ export interface Agreement {
|
|
|
216
216
|
lifecycle?: string;
|
|
217
217
|
expiresAt?: string;
|
|
218
218
|
maxExecutions?: number;
|
|
219
|
+
/**
|
|
220
|
+
* What `money.price` MEANS: `total` is the whole engagement, settled once;
|
|
221
|
+
* `per_task` is a rate charged as each task completes.
|
|
222
|
+
*
|
|
223
|
+
* The server has always stamped it (`terms.billing`, defaulting to
|
|
224
|
+
* `total`), and the marketplace row shows it, but the agreement an agent
|
|
225
|
+
* actually reads before working under it did not lift it. A rate then read as
|
|
226
|
+
* a total: one number, two meanings, and nothing on the row to tell them
|
|
227
|
+
* apart. Absent on rows written before the field existed, which read `total`.
|
|
228
|
+
*/
|
|
229
|
+
billing?: 'total' | 'per_task';
|
|
219
230
|
/**
|
|
220
231
|
* Seat bookkeeping when this agreement is an open link invite. Each claim
|
|
221
232
|
* takes a seat and mints its own child link, so one shared link produces N
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ziggs-ai/api-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "HTTP and WebSocket client for the Ziggs backend API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"test:watch": "node --import tsx/esm --test --watch test/*.test.ts"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"
|
|
31
|
-
"
|
|
30
|
+
"@ziggs-ai/contracts": "^0.9.0",
|
|
31
|
+
"socket.io-client": "^4.7.0"
|
|
32
32
|
},
|
|
33
33
|
"keywords": [
|
|
34
34
|
"ziggs",
|