@ziggs-ai/agent-sdk 0.48.23 → 0.48.24
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
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { RawEvent } from '../runtime/buildOutcome.js';
|
|
2
2
|
export declare function agreementEventId(event: RawEvent | undefined): string | undefined;
|
|
3
3
|
/**
|
|
4
|
-
* Provider acceptance leaves a standing listing OPEN with its
|
|
5
|
-
*
|
|
6
|
-
* /status, event actor ids and the word "approved" cannot
|
|
4
|
+
* Provider acceptance leaves a standing listing OPEN with its paying side still
|
|
5
|
+
* empty: nobody has taken it yet. It is not a customer hire. Check the full
|
|
6
|
+
* authoritative row; /status, event actor ids and the word "approved" cannot
|
|
7
|
+
* prove this shape.
|
|
7
8
|
*/
|
|
8
9
|
export declare function isOwnUnclaimedStandingOffer(value: unknown, agreementId: string, agentId: string): boolean;
|
|
9
10
|
/** Remove only proven listing-acceptance notices; mixed batches keep all real work. */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { SERVER_EVENTS } from '@ziggs-ai/contracts';
|
|
2
|
-
import { isBroadcastTarget } from '@ziggs-ai/api-client';
|
|
1
|
+
import { SERVER_EVENTS, isSellerListing } from '@ziggs-ai/contracts';
|
|
3
2
|
import { getBatchEvents } from '../context/batch.js';
|
|
4
3
|
function record(value) {
|
|
5
4
|
return value !== null && typeof value === 'object' && !Array.isArray(value)
|
|
@@ -21,21 +20,18 @@ export function agreementEventId(event) {
|
|
|
21
20
|
return ids.length === 1 ? ids[0] : undefined;
|
|
22
21
|
}
|
|
23
22
|
/**
|
|
24
|
-
* Provider acceptance leaves a standing listing OPEN with its
|
|
25
|
-
*
|
|
26
|
-
* /status, event actor ids and the word "approved" cannot
|
|
23
|
+
* Provider acceptance leaves a standing listing OPEN with its paying side still
|
|
24
|
+
* empty: nobody has taken it yet. It is not a customer hire. Check the full
|
|
25
|
+
* authoritative row; /status, event actor ids and the word "approved" cannot
|
|
26
|
+
* prove this shape.
|
|
27
27
|
*/
|
|
28
28
|
export function isOwnUnclaimedStandingOffer(value, agreementId, agentId) {
|
|
29
29
|
const row = record(value);
|
|
30
|
-
const
|
|
31
|
-
const payer = record(parties?.payer);
|
|
32
|
-
const provider = record(parties?.provider);
|
|
30
|
+
const provider = record(record(row?.parties)?.provider);
|
|
33
31
|
return row?.agreementId === agreementId &&
|
|
34
32
|
row.status === 'open' &&
|
|
35
|
-
row.providerPinned === true &&
|
|
36
33
|
provider?.actor === agentId &&
|
|
37
|
-
|
|
38
|
-
isBroadcastTarget(payer.principal);
|
|
34
|
+
isSellerListing(row);
|
|
39
35
|
}
|
|
40
36
|
/** Remove only proven listing-acceptance notices; mixed batches keep all real work. */
|
|
41
37
|
export async function filterStandingOfferNotices(event, agentId, readAgreement) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ziggs-ai/agent-sdk",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.24",
|
|
4
4
|
"description": "Agent framework SDK for building autonomous agents on the Ziggs platform",
|
|
5
5
|
"homepage": "https://ziggsai.com/docs",
|
|
6
6
|
"bugs": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"@anthropic-ai/claude-agent-sdk": "^0.3.284",
|
|
31
31
|
"@anthropic-ai/sdk": "^0.110.0",
|
|
32
32
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
33
|
-
"@ziggs-ai/api-client": "0.42.
|
|
34
|
-
"@ziggs-ai/contracts": "0.
|
|
33
|
+
"@ziggs-ai/api-client": "0.42.23",
|
|
34
|
+
"@ziggs-ai/contracts": "0.55.0",
|
|
35
35
|
"ajv": "^8.17.1",
|
|
36
36
|
"dotenv": "^17.2.3",
|
|
37
37
|
"openai": "^4.0.0",
|