@eggjs/controller-decorator 3.73.0-beta.2 → 3.73.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/controller-decorator",
|
|
3
|
-
"version": "3.73.0
|
|
3
|
+
"version": "3.73.0",
|
|
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.73.0
|
|
40
|
+
"@eggjs/aop-decorator": "^3.73.0",
|
|
41
41
|
"@eggjs/cookies": "^3.0.1",
|
|
42
|
-
"@eggjs/core-decorator": "^3.73.0
|
|
43
|
-
"@eggjs/tegg-common-util": "^3.73.0
|
|
44
|
-
"@eggjs/tegg-metadata": "^3.73.0
|
|
45
|
-
"@eggjs/tegg-types": "^3.73.0
|
|
42
|
+
"@eggjs/core-decorator": "^3.73.0",
|
|
43
|
+
"@eggjs/tegg-common-util": "^3.73.0",
|
|
44
|
+
"@eggjs/tegg-metadata": "^3.73.0",
|
|
45
|
+
"@eggjs/tegg-types": "^3.73.0",
|
|
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": "c5b7d35c5a3c0ca6aecfaaa6b15d0f8293d155bd"
|
|
66
66
|
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
export interface InputMessage {
|
|
2
|
-
role: 'user' | 'assistant' | 'system';
|
|
3
|
-
content: string | InputContentPart[];
|
|
4
|
-
metadata?: Record<string, unknown>;
|
|
5
|
-
}
|
|
6
|
-
export interface InputContentPart {
|
|
7
|
-
type: 'text';
|
|
8
|
-
text: string;
|
|
9
|
-
}
|
|
10
|
-
export interface MessageObject {
|
|
11
|
-
id: string;
|
|
12
|
-
object: 'thread.message';
|
|
13
|
-
created_at: number;
|
|
14
|
-
thread_id?: string;
|
|
15
|
-
run_id?: string;
|
|
16
|
-
role: 'user' | 'assistant';
|
|
17
|
-
status: 'in_progress' | 'incomplete' | 'completed';
|
|
18
|
-
content: MessageContentBlock[];
|
|
19
|
-
metadata?: Record<string, unknown>;
|
|
20
|
-
}
|
|
21
|
-
export interface TextContentBlock {
|
|
22
|
-
type: 'text';
|
|
23
|
-
text: {
|
|
24
|
-
value: string;
|
|
25
|
-
annotations: unknown[];
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export type MessageContentBlock = TextContentBlock;
|
|
29
|
-
export interface ThreadObject {
|
|
30
|
-
id: string;
|
|
31
|
-
object: 'thread';
|
|
32
|
-
created_at: number;
|
|
33
|
-
metadata: Record<string, unknown>;
|
|
34
|
-
}
|
|
35
|
-
export interface ThreadObjectWithMessages extends ThreadObject {
|
|
36
|
-
messages: MessageObject[];
|
|
37
|
-
}
|
|
38
|
-
export type RunStatus = 'queued' | 'in_progress' | 'completed' | 'failed' | 'cancelled' | 'cancelling' | 'expired';
|
|
39
|
-
export interface RunObject {
|
|
40
|
-
id: string;
|
|
41
|
-
object: 'thread.run';
|
|
42
|
-
created_at: number;
|
|
43
|
-
thread_id?: string;
|
|
44
|
-
status: RunStatus;
|
|
45
|
-
last_error?: {
|
|
46
|
-
code: string;
|
|
47
|
-
message: string;
|
|
48
|
-
} | null;
|
|
49
|
-
started_at?: number | null;
|
|
50
|
-
completed_at?: number | null;
|
|
51
|
-
cancelled_at?: number | null;
|
|
52
|
-
failed_at?: number | null;
|
|
53
|
-
usage?: {
|
|
54
|
-
prompt_tokens: number;
|
|
55
|
-
completion_tokens: number;
|
|
56
|
-
total_tokens: number;
|
|
57
|
-
} | null;
|
|
58
|
-
metadata?: Record<string, unknown>;
|
|
59
|
-
output?: MessageObject[];
|
|
60
|
-
config?: AgentRunConfig;
|
|
61
|
-
}
|
|
62
|
-
export interface CreateRunInput {
|
|
63
|
-
thread_id?: string;
|
|
64
|
-
input: {
|
|
65
|
-
messages: InputMessage[];
|
|
66
|
-
};
|
|
67
|
-
config?: AgentRunConfig;
|
|
68
|
-
metadata?: Record<string, unknown>;
|
|
69
|
-
}
|
|
70
|
-
export interface MessageDeltaObject {
|
|
71
|
-
id: string;
|
|
72
|
-
object: 'thread.message.delta';
|
|
73
|
-
delta: {
|
|
74
|
-
content: MessageContentBlock[];
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
export interface AgentRunUsage {
|
|
78
|
-
total_tokens?: number;
|
|
79
|
-
prompt_tokens?: number;
|
|
80
|
-
completion_tokens?: number;
|
|
81
|
-
duration_ms?: number;
|
|
82
|
-
}
|
|
83
|
-
export interface AgentRunConfig {
|
|
84
|
-
max_iterations?: number;
|
|
85
|
-
timeout_ms?: number;
|
|
86
|
-
}
|
|
87
|
-
export interface AgentStreamMessage {
|
|
88
|
-
type: string;
|
|
89
|
-
message?: {
|
|
90
|
-
role: string;
|
|
91
|
-
content: string | {
|
|
92
|
-
type: string;
|
|
93
|
-
text: string;
|
|
94
|
-
}[];
|
|
95
|
-
};
|
|
96
|
-
usage?: AgentRunUsage;
|
|
97
|
-
[key: string]: unknown;
|
|
98
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// ===== Input Message (what clients send in request body) =====
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQWdlbnRDb250cm9sbGVyVHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbW9kZWwvQWdlbnRDb250cm9sbGVyVHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLGdFQUFnRSJ9
|