@eggjs/tegg-types 3.78.13 → 3.78.15
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/agent-runtime/errors.d.ts +11 -0
- package/agent-runtime/errors.js +17 -2
- package/package.json +2 -2
|
@@ -23,3 +23,14 @@ export declare class InvalidRunStateTransitionError extends Error {
|
|
|
23
23
|
status: number;
|
|
24
24
|
constructor(from: string, to: string);
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Error thrown when cancelRun waits for the executor's session to be
|
|
28
|
+
* committed to persistent storage (e.g. Claude Code SDK jsonl on disk)
|
|
29
|
+
* but the commit never arrives within the configured timeout. The run is
|
|
30
|
+
* transitioned to `failed` rather than `cancelled` to reflect that the
|
|
31
|
+
* executor never reached a resumable state.
|
|
32
|
+
*/
|
|
33
|
+
export declare class AgentTimeoutError extends Error {
|
|
34
|
+
status: number;
|
|
35
|
+
constructor(message: string);
|
|
36
|
+
}
|
package/agent-runtime/errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvalidRunStateTransitionError = exports.AgentConflictError = exports.AgentNotFoundError = void 0;
|
|
3
|
+
exports.AgentTimeoutError = exports.InvalidRunStateTransitionError = exports.AgentConflictError = exports.AgentNotFoundError = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Error thrown when a thread or run is not found.
|
|
6
6
|
* The `status` property is recognized by Koa/Egg error handling
|
|
@@ -38,4 +38,19 @@ class InvalidRunStateTransitionError extends Error {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
exports.InvalidRunStateTransitionError = InvalidRunStateTransitionError;
|
|
41
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Error thrown when cancelRun waits for the executor's session to be
|
|
43
|
+
* committed to persistent storage (e.g. Claude Code SDK jsonl on disk)
|
|
44
|
+
* but the commit never arrives within the configured timeout. The run is
|
|
45
|
+
* transitioned to `failed` rather than `cancelled` to reflect that the
|
|
46
|
+
* executor never reached a resumable state.
|
|
47
|
+
*/
|
|
48
|
+
class AgentTimeoutError extends Error {
|
|
49
|
+
constructor(message) {
|
|
50
|
+
super(message);
|
|
51
|
+
this.status = 408;
|
|
52
|
+
this.name = 'AgentTimeoutError';
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.AgentTimeoutError = AgentTimeoutError;
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZXJyb3JzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBOzs7O0dBSUc7QUFDSCxNQUFhLGtCQUFtQixTQUFRLEtBQUs7SUFHM0MsWUFBWSxPQUFlO1FBQ3pCLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUhqQixXQUFNLEdBQUcsR0FBRyxDQUFDO1FBSVgsSUFBSSxDQUFDLElBQUksR0FBRyxvQkFBb0IsQ0FBQztJQUNuQyxDQUFDO0NBQ0Y7QUFQRCxnREFPQztBQUVEOzs7R0FHRztBQUNILE1BQWEsa0JBQW1CLFNBQVEsS0FBSztJQUczQyxZQUFZLE9BQWU7UUFDekIsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBSGpCLFdBQU0sR0FBRyxHQUFHLENBQUM7UUFJWCxJQUFJLENBQUMsSUFBSSxHQUFHLG9CQUFvQixDQUFDO0lBQ25DLENBQUM7Q0FDRjtBQVBELGdEQU9DO0FBRUQ7OztHQUdHO0FBQ0gsTUFBYSw4QkFBK0IsU0FBUSxLQUFLO0lBR3ZELFlBQVksSUFBWSxFQUFFLEVBQVU7UUFDbEMsS0FBSyxDQUFDLGtDQUFrQyxJQUFJLFNBQVMsRUFBRSxHQUFHLENBQUMsQ0FBQztRQUg5RCxXQUFNLEdBQUcsR0FBRyxDQUFDO1FBSVgsSUFBSSxDQUFDLElBQUksR0FBRyxnQ0FBZ0MsQ0FBQztJQUMvQyxDQUFDO0NBQ0Y7QUFQRCx3RUFPQztBQUVEOzs7Ozs7R0FNRztBQUNILE1BQWEsaUJBQWtCLFNBQVEsS0FBSztJQUcxQyxZQUFZLE9BQWU7UUFDekIsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBSGpCLFdBQU0sR0FBRyxHQUFHLENBQUM7UUFJWCxJQUFJLENBQUMsSUFBSSxHQUFHLG1CQUFtQixDQUFDO0lBQ2xDLENBQUM7Q0FDRjtBQVBELDhDQU9DIn0=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/tegg-types",
|
|
3
|
-
"version": "3.78.
|
|
3
|
+
"version": "3.78.15",
|
|
4
4
|
"description": "tegg types",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"egg",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"ts-node": "^10.9.1",
|
|
46
46
|
"typescript": "^5.0.4"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "0ece332df20045c19678fd191f35611ce257681e"
|
|
49
49
|
}
|