@tangle-network/agent-runtime 0.18.0 → 0.20.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/README.md +110 -0
- package/dist/agent.d.ts +1 -1
- package/dist/chunk-LPPM7EGS.js +1141 -0
- package/dist/chunk-LPPM7EGS.js.map +1 -0
- package/dist/chunk-RZAOYKCO.js +51 -0
- package/dist/chunk-RZAOYKCO.js.map +1 -0
- package/dist/chunk-VFUEE6DF.js +373 -0
- package/dist/chunk-VFUEE6DF.js.map +1 -0
- package/dist/chunk-XLWPTPRP.js +52 -0
- package/dist/chunk-XLWPTPRP.js.map +1 -0
- package/dist/chunk-Z5LKAYAS.js +248 -0
- package/dist/chunk-Z5LKAYAS.js.map +1 -0
- package/dist/index.d.ts +4 -137
- package/dist/index.js +8 -38
- package/dist/index.js.map +1 -1
- package/dist/loops.d.ts +153 -0
- package/dist/loops.js +19 -0
- package/dist/loops.js.map +1 -0
- package/dist/mcp/bin.d.ts +1 -0
- package/dist/mcp/bin.js +150 -0
- package/dist/mcp/bin.js.map +1 -0
- package/dist/mcp/index.d.ts +827 -0
- package/dist/mcp/index.js +74 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/profiles.d.ts +133 -0
- package/dist/profiles.js +14 -0
- package/dist/profiles.js.map +1 -0
- package/dist/runtime-run-B2j-hvBj.d.ts +137 -0
- package/dist/types-Bx-tArkc.d.ts +225 -0
- package/dist/{types-ByIhNRFk.d.ts → types-DvJIha6w.d.ts} +1 -1
- package/package.json +25 -1
package/dist/index.js
CHANGED
|
@@ -1,44 +1,14 @@
|
|
|
1
|
-
import "./chunk-DGUM43GV.js";
|
|
2
|
-
|
|
3
|
-
// src/errors.ts
|
|
4
|
-
import { AgentEvalError } from "@tangle-network/agent-eval";
|
|
5
1
|
import {
|
|
6
|
-
AgentEvalError
|
|
7
|
-
|
|
2
|
+
AgentEvalError,
|
|
3
|
+
BackendTransportError,
|
|
8
4
|
ConfigError,
|
|
9
5
|
JudgeError,
|
|
10
6
|
NotFoundError,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "
|
|
15
|
-
|
|
16
|
-
sessionBackend;
|
|
17
|
-
requestedBackend;
|
|
18
|
-
constructor(sessionBackend, requestedBackend, options) {
|
|
19
|
-
super(
|
|
20
|
-
"validation",
|
|
21
|
-
`Cannot resume ${sessionBackend} session with ${requestedBackend} backend`,
|
|
22
|
-
options
|
|
23
|
-
);
|
|
24
|
-
this.sessionBackend = sessionBackend;
|
|
25
|
-
this.requestedBackend = requestedBackend;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
var BackendTransportError = class extends AgentEvalError {
|
|
29
|
-
backend;
|
|
30
|
-
status;
|
|
31
|
-
constructor(backend, message, options) {
|
|
32
|
-
super("config", message, options);
|
|
33
|
-
this.backend = backend;
|
|
34
|
-
this.status = options?.status;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
var RuntimeRunStateError = class extends AgentEvalError {
|
|
38
|
-
constructor(message, options) {
|
|
39
|
-
super("validation", message, options);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
7
|
+
RuntimeRunStateError,
|
|
8
|
+
SessionMismatchError,
|
|
9
|
+
ValidationError
|
|
10
|
+
} from "./chunk-RZAOYKCO.js";
|
|
11
|
+
import "./chunk-DGUM43GV.js";
|
|
42
12
|
|
|
43
13
|
// src/sessions.ts
|
|
44
14
|
function newRuntimeSession(backend, requestedId, metadata) {
|
|
@@ -1540,7 +1510,7 @@ function stripNewlines(value) {
|
|
|
1540
1510
|
return value.replace(/[\r\n]/g, " ");
|
|
1541
1511
|
}
|
|
1542
1512
|
export {
|
|
1543
|
-
|
|
1513
|
+
AgentEvalError,
|
|
1544
1514
|
ConfigError,
|
|
1545
1515
|
DEFAULT_ROUTER_BASE_URL,
|
|
1546
1516
|
InMemoryRuntimeSessionStore,
|