@eggjs/controller-decorator 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.
|
@@ -3,6 +3,18 @@ export interface AgentHandler {
|
|
|
3
3
|
execRun(input: CreateRunInput, signal?: AbortSignal): AsyncGenerator<AgentMessage>;
|
|
4
4
|
/** Create the AgentStore used to persist threads and runs. */
|
|
5
5
|
createStore(): Promise<unknown>;
|
|
6
|
+
/**
|
|
7
|
+
* Optional hook to decide whether the executor's underlying session has
|
|
8
|
+
* been committed to persistent storage (for example the Claude Code SDK
|
|
9
|
+
* jsonl file on disk). The runtime calls this each time a new message is
|
|
10
|
+
* yielded from `execRun`; once it returns true, `cancelRun` is allowed to
|
|
11
|
+
* abort and persist the thread.
|
|
12
|
+
*
|
|
13
|
+
* When not implemented, the runtime uses a default heuristic: any message
|
|
14
|
+
* with `type !== 'system'` counts as committed (covers the Claude Code SDK
|
|
15
|
+
* case where `system/init` is emitted before the session is fully written).
|
|
16
|
+
*/
|
|
17
|
+
isSessionCommitted?(msg: AgentMessage, history: AgentMessage[]): boolean | Promise<boolean>;
|
|
6
18
|
createThread?(): Promise<ThreadObject>;
|
|
7
19
|
getThread?(threadId: string): Promise<ThreadObjectWithMessages>;
|
|
8
20
|
asyncRun?(input: CreateRunInput): Promise<RunObject>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/controller-decorator",
|
|
3
|
-
"version": "3.78.
|
|
3
|
+
"version": "3.78.15",
|
|
4
4
|
"description": "tegg controller decorator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"egg",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"node": ">=14.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@eggjs/aop-decorator": "^3.78.
|
|
40
|
+
"@eggjs/aop-decorator": "^3.78.15",
|
|
41
41
|
"@eggjs/cookies": "^3.0.1",
|
|
42
|
-
"@eggjs/core-decorator": "^3.78.
|
|
43
|
-
"@eggjs/tegg-common-util": "^3.78.
|
|
44
|
-
"@eggjs/tegg-metadata": "^3.78.
|
|
45
|
-
"@eggjs/tegg-types": "^3.78.
|
|
42
|
+
"@eggjs/core-decorator": "^3.78.15",
|
|
43
|
+
"@eggjs/tegg-common-util": "^3.78.15",
|
|
44
|
+
"@eggjs/tegg-metadata": "^3.78.15",
|
|
45
|
+
"@eggjs/tegg-types": "^3.78.15",
|
|
46
46
|
"@modelcontextprotocol/sdk": "^1.23.0",
|
|
47
47
|
"is-type-of": "^1.2.1",
|
|
48
48
|
"path-to-regexp": "^1.8.0",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "0ece332df20045c19678fd191f35611ce257681e"
|
|
66
66
|
}
|