@ziggs-ai/agent-sdk 0.38.8 → 0.38.9
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.
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* context shows the agent on the provider side (or the row is unknown). A known
|
|
10
10
|
* payer-only row is skipped. Fallback is still "exactly one active provider hire".
|
|
11
11
|
*/
|
|
12
|
+
import { parseRef } from '@ziggs-ai/api-client';
|
|
12
13
|
function asId(v) {
|
|
13
14
|
return typeof v === 'string' && v ? v : undefined;
|
|
14
15
|
}
|
|
@@ -85,7 +86,7 @@ export function resolveOnBehalfAgreementId(rawEvent, contextAgreements, agentId,
|
|
|
85
86
|
const fromEvent = asId(rawEvent?.agreementId);
|
|
86
87
|
if (fromEvent && fromEvent !== fromResult)
|
|
87
88
|
candidates.push(fromEvent);
|
|
88
|
-
if (typeof sessionId === 'string' && sessionId
|
|
89
|
+
if (typeof sessionId === 'string' && parseRef(sessionId)?.kind === 'agreement') {
|
|
89
90
|
if (!candidates.includes(sessionId))
|
|
90
91
|
candidates.push(sessionId);
|
|
91
92
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ziggs-ai/agent-sdk",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.9",
|
|
4
4
|
"description": "Agent framework SDK for building autonomous agents on the Ziggs platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@anthropic-ai/claude-agent-sdk": "^0.3.284",
|
|
27
27
|
"@anthropic-ai/sdk": "^0.110.0",
|
|
28
28
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
29
|
-
"@ziggs-ai/api-client": "0.37.
|
|
29
|
+
"@ziggs-ai/api-client": "0.37.11",
|
|
30
30
|
"@ziggs-ai/contracts": "^0.23.3",
|
|
31
31
|
"ajv": "^8.17.1",
|
|
32
32
|
"dotenv": "^17.2.3",
|