@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/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 as AgentEvalError2,
7
- CaptureIntegrityError,
2
+ AgentEvalError,
3
+ BackendTransportError,
8
4
  ConfigError,
9
5
  JudgeError,
10
6
  NotFoundError,
11
- ReplayError,
12
- ValidationError,
13
- VerificationError
14
- } from "@tangle-network/agent-eval";
15
- var SessionMismatchError = class extends AgentEvalError {
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
- AgentEvalError2 as AgentEvalError,
1513
+ AgentEvalError,
1544
1514
  ConfigError,
1545
1515
  DEFAULT_ROUTER_BASE_URL,
1546
1516
  InMemoryRuntimeSessionStore,