@anuma/agent-runtime 6.31.2 → 6.31.3
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/index.cjs +2 -5
- package/dist/index.d.mts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.mjs +2 -5
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -137,16 +137,14 @@ function parseMintError(status, body) {
|
|
|
137
137
|
if (code === "connector_not_connected") {
|
|
138
138
|
return {
|
|
139
139
|
code: "connector_not_connected",
|
|
140
|
-
provider: body.provider ?? "unknown"
|
|
141
|
-
connectUrl: body.connect_url ?? ""
|
|
140
|
+
provider: body.provider ?? "unknown"
|
|
142
141
|
};
|
|
143
142
|
}
|
|
144
143
|
if (code === "scope_not_covered") {
|
|
145
144
|
return {
|
|
146
145
|
code: "scope_not_covered",
|
|
147
146
|
provider: body.provider ?? "unknown",
|
|
148
|
-
missingScopes: body.missing_scopes ?? []
|
|
149
|
-
connectUrl: body.connect_url ?? ""
|
|
147
|
+
missingScopes: body.missing_scopes ?? []
|
|
150
148
|
};
|
|
151
149
|
}
|
|
152
150
|
if (code === "insufficient_scope") {
|
|
@@ -300,7 +298,6 @@ function extractConnectorToolErrors(toolResults) {
|
|
|
300
298
|
error: {
|
|
301
299
|
code: parsed.code,
|
|
302
300
|
provider: parsed.provider,
|
|
303
|
-
connectUrl: parsed.connect_url,
|
|
304
301
|
missingScopes: parsed.missing_scopes,
|
|
305
302
|
required: parsed.required
|
|
306
303
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -108,13 +108,12 @@ interface IncomingRequest {
|
|
|
108
108
|
*/
|
|
109
109
|
/**
|
|
110
110
|
* Open shape so future tool-execution errors can lift into the same union
|
|
111
|
-
* without breaking consumers. Connector errors populate `provider
|
|
112
|
-
*
|
|
111
|
+
* without breaking consumers. Connector errors populate `provider`; other
|
|
112
|
+
* errors carry a `message`.
|
|
113
113
|
*/
|
|
114
114
|
interface ToolErrorInfo {
|
|
115
115
|
code: string;
|
|
116
116
|
provider?: string;
|
|
117
|
-
connectUrl?: string;
|
|
118
117
|
missingScopes?: string[];
|
|
119
118
|
required?: string;
|
|
120
119
|
message?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -108,13 +108,12 @@ interface IncomingRequest {
|
|
|
108
108
|
*/
|
|
109
109
|
/**
|
|
110
110
|
* Open shape so future tool-execution errors can lift into the same union
|
|
111
|
-
* without breaking consumers. Connector errors populate `provider
|
|
112
|
-
*
|
|
111
|
+
* without breaking consumers. Connector errors populate `provider`; other
|
|
112
|
+
* errors carry a `message`.
|
|
113
113
|
*/
|
|
114
114
|
interface ToolErrorInfo {
|
|
115
115
|
code: string;
|
|
116
116
|
provider?: string;
|
|
117
|
-
connectUrl?: string;
|
|
118
117
|
missingScopes?: string[];
|
|
119
118
|
required?: string;
|
|
120
119
|
message?: string;
|
package/dist/index.mjs
CHANGED
|
@@ -105,16 +105,14 @@ function parseMintError(status, body) {
|
|
|
105
105
|
if (code === "connector_not_connected") {
|
|
106
106
|
return {
|
|
107
107
|
code: "connector_not_connected",
|
|
108
|
-
provider: body.provider ?? "unknown"
|
|
109
|
-
connectUrl: body.connect_url ?? ""
|
|
108
|
+
provider: body.provider ?? "unknown"
|
|
110
109
|
};
|
|
111
110
|
}
|
|
112
111
|
if (code === "scope_not_covered") {
|
|
113
112
|
return {
|
|
114
113
|
code: "scope_not_covered",
|
|
115
114
|
provider: body.provider ?? "unknown",
|
|
116
|
-
missingScopes: body.missing_scopes ?? []
|
|
117
|
-
connectUrl: body.connect_url ?? ""
|
|
115
|
+
missingScopes: body.missing_scopes ?? []
|
|
118
116
|
};
|
|
119
117
|
}
|
|
120
118
|
if (code === "insufficient_scope") {
|
|
@@ -272,7 +270,6 @@ function extractConnectorToolErrors(toolResults) {
|
|
|
272
270
|
error: {
|
|
273
271
|
code: parsed.code,
|
|
274
272
|
provider: parsed.provider,
|
|
275
|
-
connectUrl: parsed.connect_url,
|
|
276
273
|
missingScopes: parsed.missing_scopes,
|
|
277
274
|
required: parsed.required
|
|
278
275
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anuma/agent-runtime",
|
|
3
|
-
"version": "6.31.
|
|
3
|
+
"version": "6.31.3",
|
|
4
4
|
"description": "Server-side runtime contract for Anuma agents — extractGrantContext, PortalClient, runAgentRequest.",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@anuma/sdk": "6.31.
|
|
33
|
+
"@anuma/sdk": "6.31.3"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"tsup": "^8.5.1",
|
|
37
37
|
"typescript": "^5.9.3",
|
|
38
38
|
"vitest": "^4.1.11",
|
|
39
|
-
"@anuma/sdk": "6.31.
|
|
39
|
+
"@anuma/sdk": "6.31.3"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "tsup",
|