@ziggs-ai/agent-sdk 0.38.13 → 0.38.14
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,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.38.14
|
|
4
|
+
|
|
5
|
+
- Clarify the shared hiring instructions: a mandate governs the work; agent-initiated hires need a covering grant or approval on the existing agreement.
|
|
6
|
+
|
|
7
|
+
- Preserve structured access refusals, approval choices, and callable recovery through wrapped tool failures, using the same formatter as MCP.
|
|
8
|
+
|
|
3
9
|
## 0.38.13
|
|
4
10
|
|
|
5
11
|
- Notes kept with an operator key are agent-private artifacts, so they survive a restart and are not announced.
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* What the model reads when a tool fails. A coverage refusal carries a machine
|
|
3
|
-
* code beside its sentence; the sentence alone used to look like a rate limit
|
|
4
|
-
* the model should wait out.
|
|
5
|
-
*/
|
|
1
|
+
/** Keep the same refusal and callable recovery on every agent runtime. */
|
|
6
2
|
export declare function toolFailureText(err: unknown): string;
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* code beside its sentence; the sentence alone used to look like a rate limit
|
|
4
|
-
* the model should wait out.
|
|
5
|
-
*/
|
|
1
|
+
import { describeOperationError } from '@ziggs-ai/api-client';
|
|
2
|
+
/** Keep the same refusal and callable recovery on every agent runtime. */
|
|
6
3
|
export function toolFailureText(err) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
? err.code
|
|
14
|
-
: '';
|
|
15
|
-
if (!code || message.startsWith(`${code}:`))
|
|
16
|
-
return message;
|
|
17
|
-
return `${code}: ${message}`;
|
|
4
|
+
const failure = describeOperationError(err, 'sdk');
|
|
5
|
+
if (failure.recovery || failure.choices)
|
|
6
|
+
return JSON.stringify(failure);
|
|
7
|
+
const message = failure.code === 'TOOL_ERROR' || failure.message.startsWith(`${failure.code}:`)
|
|
8
|
+
? failure.message : `${failure.code}: ${failure.message}`;
|
|
9
|
+
return failure.hint ? `${message}\n${failure.hint}` : message;
|
|
18
10
|
}
|
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.14",
|
|
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,7 +30,7 @@
|
|
|
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.37.
|
|
33
|
+
"@ziggs-ai/api-client": "0.37.17",
|
|
34
34
|
"@ziggs-ai/contracts": "^0.23.3",
|
|
35
35
|
"ajv": "^8.17.1",
|
|
36
36
|
"dotenv": "^17.2.3",
|