@agentapplicationprotocol/server 0.4.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/LICENSE +201 -0
- package/dist/src/agent.d.ts +30 -0
- package/dist/src/agent.js +74 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/index.js +12 -0
- package/dist/src/model.d.ts +20 -0
- package/dist/src/model.js +207 -0
- package/dist/src/server.d.ts +27 -0
- package/dist/src/server.js +77 -0
- package/dist/src/session.d.ts +69 -0
- package/dist/src/session.js +269 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +31 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AgentInfo, AgentOption } from "@agentapplicationprotocol/core";
|
|
2
|
+
import z from "zod";
|
|
3
|
+
/** Defines an AAP agent: its metadata, capabilities, options, and tools. Use the fluent builder methods to configure, then pass to `Session`. */
|
|
4
|
+
export declare class Agent {
|
|
5
|
+
info: AgentInfo;
|
|
6
|
+
/** Registered tool executors keyed by tool name. Values accept raw JSON string input and return raw JSON string output. */
|
|
7
|
+
tools: Map<string, (input: string) => Promise<string>>;
|
|
8
|
+
constructor(name: string, options?: {
|
|
9
|
+
title?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
version?: string;
|
|
12
|
+
});
|
|
13
|
+
/** Declares a configurable agent option (text, secret, or select). */
|
|
14
|
+
option(opt: AgentOption): Agent;
|
|
15
|
+
/** Declares image input capability. */
|
|
16
|
+
image(image: NonNullable<AgentInfo["capabilities"]>["image"]): Agent;
|
|
17
|
+
/** Declares history retrieval capability. */
|
|
18
|
+
history(history: NonNullable<AgentInfo["capabilities"]>["history"]): Agent;
|
|
19
|
+
/**
|
|
20
|
+
* Registers a tool with typed input/output schemas and an async executor.
|
|
21
|
+
* The executor receives parsed input and its return value is JSON-serialized.
|
|
22
|
+
* If `outputSchema` is provided, the output is validated before serialization.
|
|
23
|
+
*/
|
|
24
|
+
tool<I, O>(name: string, options: {
|
|
25
|
+
title?: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
inputSchema: z.ZodType<I>;
|
|
28
|
+
outputSchema?: z.ZodType<O>;
|
|
29
|
+
}, exec: (input: I) => Promise<O>): Agent;
|
|
30
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Agent = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
/** Defines an AAP agent: its metadata, capabilities, options, and tools. Use the fluent builder methods to configure, then pass to `Session`. */
|
|
9
|
+
class Agent {
|
|
10
|
+
constructor(name, options) {
|
|
11
|
+
/** Registered tool executors keyed by tool name. Values accept raw JSON string input and return raw JSON string output. */
|
|
12
|
+
this.tools = new Map();
|
|
13
|
+
this.info = {
|
|
14
|
+
name,
|
|
15
|
+
title: options?.title,
|
|
16
|
+
description: options?.description,
|
|
17
|
+
version: options?.version ?? "1.0.0",
|
|
18
|
+
tools: [],
|
|
19
|
+
options: [],
|
|
20
|
+
capabilities: {
|
|
21
|
+
stream: {
|
|
22
|
+
delta: {},
|
|
23
|
+
message: {},
|
|
24
|
+
none: {},
|
|
25
|
+
},
|
|
26
|
+
application: {
|
|
27
|
+
tools: {},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/** Declares a configurable agent option (text, secret, or select). */
|
|
33
|
+
option(opt) {
|
|
34
|
+
var _a;
|
|
35
|
+
(_a = this.info).options ?? (_a.options = []);
|
|
36
|
+
this.info.options.push(opt);
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
/** Declares image input capability. */
|
|
40
|
+
image(image) {
|
|
41
|
+
var _a;
|
|
42
|
+
(_a = this.info).capabilities ?? (_a.capabilities = {});
|
|
43
|
+
this.info.capabilities.image = image;
|
|
44
|
+
return this;
|
|
45
|
+
}
|
|
46
|
+
/** Declares history retrieval capability. */
|
|
47
|
+
history(history) {
|
|
48
|
+
var _a;
|
|
49
|
+
(_a = this.info).capabilities ?? (_a.capabilities = {});
|
|
50
|
+
this.info.capabilities.history = history;
|
|
51
|
+
return this;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Registers a tool with typed input/output schemas and an async executor.
|
|
55
|
+
* The executor receives parsed input and its return value is JSON-serialized.
|
|
56
|
+
* If `outputSchema` is provided, the output is validated before serialization.
|
|
57
|
+
*/
|
|
58
|
+
tool(name, options, exec) {
|
|
59
|
+
var _a;
|
|
60
|
+
(_a = this.info).tools ?? (_a.tools = []);
|
|
61
|
+
this.info.tools.push({
|
|
62
|
+
name,
|
|
63
|
+
title: options.title,
|
|
64
|
+
description: options.description ?? "",
|
|
65
|
+
inputSchema: zod_1.default.toJSONSchema(options.inputSchema),
|
|
66
|
+
});
|
|
67
|
+
this.tools.set(name, async (input) => {
|
|
68
|
+
const output = await exec(options.inputSchema.parse(JSON.parse(input)));
|
|
69
|
+
return JSON.stringify(options.outputSchema ? options.outputSchema.parse(output) : output);
|
|
70
|
+
});
|
|
71
|
+
return this;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.Agent = Agent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Agent = exports.Session = exports.AiModelProvider = exports.ModelProvider = exports.aap = void 0;
|
|
4
|
+
var server_1 = require("./server");
|
|
5
|
+
Object.defineProperty(exports, "aap", { enumerable: true, get: function () { return server_1.aap; } });
|
|
6
|
+
var model_1 = require("./model");
|
|
7
|
+
Object.defineProperty(exports, "ModelProvider", { enumerable: true, get: function () { return model_1.ModelProvider; } });
|
|
8
|
+
Object.defineProperty(exports, "AiModelProvider", { enumerable: true, get: function () { return model_1.AiModelProvider; } });
|
|
9
|
+
var session_1 = require("./session");
|
|
10
|
+
Object.defineProperty(exports, "Session", { enumerable: true, get: function () { return session_1.Session; } });
|
|
11
|
+
var agent_1 = require("./agent");
|
|
12
|
+
Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { return agent_1.Agent; } });
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HistoryMessage, ToolSpec, AgentResponse, DeltaSSEEvent } from "@agentapplicationprotocol/core";
|
|
2
|
+
import { LanguageModel } from "ai";
|
|
3
|
+
/**
|
|
4
|
+
* Base class for LLM backends. Subclasses must implement `stream`.
|
|
5
|
+
* By default, `call` falls back to streaming mode, but overriding it with a
|
|
6
|
+
* native non-streaming call is more efficient when the LLM supports it.
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class ModelProvider {
|
|
9
|
+
/** Calls the LLM in streaming mode and yields SSE events as they arrive. */
|
|
10
|
+
abstract stream(history: HistoryMessage[], tools: ToolSpec[]): AsyncIterable<DeltaSSEEvent>;
|
|
11
|
+
/** Calls the LLM in non-streaming mode and returns a complete AgentResponse. Falls back to streaming if not overridden. */
|
|
12
|
+
call(history: HistoryMessage[], tools: ToolSpec[]): Promise<AgentResponse>;
|
|
13
|
+
}
|
|
14
|
+
/** `ModelProvider` implementation backed by any Vercel AI SDK `LanguageModel`. */
|
|
15
|
+
export declare class AiModelProvider extends ModelProvider {
|
|
16
|
+
model: LanguageModel;
|
|
17
|
+
constructor(model: LanguageModel);
|
|
18
|
+
stream(history: HistoryMessage[], tools: ToolSpec[]): AsyncGenerator<DeltaSSEEvent, void, unknown>;
|
|
19
|
+
call(history: HistoryMessage[], tools: ToolSpec[]): Promise<AgentResponse>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiModelProvider = exports.ModelProvider = void 0;
|
|
4
|
+
const core_1 = require("@agentapplicationprotocol/core");
|
|
5
|
+
const ai_1 = require("ai");
|
|
6
|
+
/**
|
|
7
|
+
* Base class for LLM backends. Subclasses must implement `stream`.
|
|
8
|
+
* By default, `call` falls back to streaming mode, but overriding it with a
|
|
9
|
+
* native non-streaming call is more efficient when the LLM supports it.
|
|
10
|
+
*/
|
|
11
|
+
class ModelProvider {
|
|
12
|
+
/** Calls the LLM in non-streaming mode and returns a complete AgentResponse. Falls back to streaming if not overridden. */
|
|
13
|
+
async call(history, tools) {
|
|
14
|
+
const [messages, stopReason] = await (0, core_1.sseEventsToMessagesAsync)(this.stream(history, tools));
|
|
15
|
+
return { messages, stopReason };
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ModelProvider = ModelProvider;
|
|
19
|
+
/**
|
|
20
|
+
* Converts AAP `HistoryMessage[]` to the AI SDK message format.
|
|
21
|
+
* Multi-block assistant messages are mapped to `content` arrays;
|
|
22
|
+
* tool results are wrapped in the AI SDK `tool-result` shape.
|
|
23
|
+
* Image blocks in user messages are converted to AI SDK image parts
|
|
24
|
+
* (URL objects for `https://` links, base64 strings for `data:` URIs).
|
|
25
|
+
*/
|
|
26
|
+
function toAiMessages(messages) {
|
|
27
|
+
// Build a lookup map from toolCallId to tool name from all assistant messages
|
|
28
|
+
const toolNameById = new Map();
|
|
29
|
+
for (const m of messages) {
|
|
30
|
+
if (m.role === "assistant" && Array.isArray(m.content)) {
|
|
31
|
+
for (const b of m.content) {
|
|
32
|
+
if (b.type === "tool_use")
|
|
33
|
+
toolNameById.set(b.toolCallId, b.name);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return messages.flatMap((m) => {
|
|
38
|
+
if (m.role === "system")
|
|
39
|
+
return [{ role: "system", content: m.content }];
|
|
40
|
+
if (m.role === "user") {
|
|
41
|
+
if (typeof m.content === "string")
|
|
42
|
+
return [{ role: "user", content: m.content }];
|
|
43
|
+
const parts = m.content.map((b) => {
|
|
44
|
+
if (b.type === "text")
|
|
45
|
+
return { type: "text", text: b.text };
|
|
46
|
+
if (b.type === "image") {
|
|
47
|
+
if (b.url.startsWith("data:")) {
|
|
48
|
+
const [header, data] = b.url.slice(5).split(",");
|
|
49
|
+
const mimeType = header.replace(";base64", "");
|
|
50
|
+
return { type: "image", image: data, mimeType };
|
|
51
|
+
}
|
|
52
|
+
return { type: "image", image: new URL(b.url) };
|
|
53
|
+
}
|
|
54
|
+
return { type: "text", text: JSON.stringify(b) }; // fallback for unknown block types
|
|
55
|
+
});
|
|
56
|
+
return [{ role: "user", content: parts }];
|
|
57
|
+
}
|
|
58
|
+
if (m.role === "assistant") {
|
|
59
|
+
if (typeof m.content === "string")
|
|
60
|
+
return [{ role: "assistant", content: m.content }];
|
|
61
|
+
const parts = m.content.map((b) => {
|
|
62
|
+
if (b.type === "text")
|
|
63
|
+
return { type: "text", text: b.text };
|
|
64
|
+
if (b.type === "thinking")
|
|
65
|
+
return { type: "reasoning", text: b.thinking };
|
|
66
|
+
if (b.type === "tool_use")
|
|
67
|
+
return {
|
|
68
|
+
type: "tool-call",
|
|
69
|
+
toolCallId: b.toolCallId,
|
|
70
|
+
toolName: b.name,
|
|
71
|
+
input: b.input,
|
|
72
|
+
};
|
|
73
|
+
return { type: "text", text: JSON.stringify(b) }; // fallback for unknown block types
|
|
74
|
+
});
|
|
75
|
+
return [{ role: "assistant", content: parts }];
|
|
76
|
+
}
|
|
77
|
+
if (m.role === "tool") {
|
|
78
|
+
const content = typeof m.content === "string" ? m.content : JSON.stringify(m.content);
|
|
79
|
+
return [
|
|
80
|
+
{
|
|
81
|
+
role: "tool",
|
|
82
|
+
content: [
|
|
83
|
+
{
|
|
84
|
+
type: "tool-result",
|
|
85
|
+
toolCallId: m.toolCallId,
|
|
86
|
+
toolName: toolNameById.get(m.toolCallId) ?? "",
|
|
87
|
+
output: { type: "text", value: content },
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
];
|
|
92
|
+
}
|
|
93
|
+
return []; // skip unknown roles
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/** Maps an AI SDK `finishReason` string to an AAP `StopReason`. */
|
|
97
|
+
function toStopReason(reason) {
|
|
98
|
+
if (reason === "tool-calls")
|
|
99
|
+
return "tool_use";
|
|
100
|
+
if (reason === "length")
|
|
101
|
+
return "max_tokens";
|
|
102
|
+
if (reason === "content-filter")
|
|
103
|
+
return "refusal";
|
|
104
|
+
if (reason === "error")
|
|
105
|
+
return "error";
|
|
106
|
+
return "end_turn";
|
|
107
|
+
}
|
|
108
|
+
/** Maps an AI SDK `TextStreamPart` to an AAP `DeltaSSEEvent`, or `undefined` for irrelevant part types. */
|
|
109
|
+
function toAAPEvent(part) {
|
|
110
|
+
if (part.type === "text-delta") {
|
|
111
|
+
return { event: "text_delta", delta: part.text };
|
|
112
|
+
}
|
|
113
|
+
else if (part.type === "reasoning-delta") {
|
|
114
|
+
return { event: "thinking_delta", delta: part.text };
|
|
115
|
+
}
|
|
116
|
+
else if (part.type === "tool-call") {
|
|
117
|
+
return {
|
|
118
|
+
event: "tool_call",
|
|
119
|
+
toolCallId: part.toolCallId,
|
|
120
|
+
name: part.toolName,
|
|
121
|
+
input: part.input,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
else if (part.type === "finish") {
|
|
125
|
+
return {
|
|
126
|
+
event: "turn_stop",
|
|
127
|
+
stopReason: toStopReason(part.finishReason),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
/** Converts AI SDK `ResponseMessage[]` to AAP `HistoryMessage[]`. */
|
|
132
|
+
function fromAiMessages(messages) {
|
|
133
|
+
return messages.flatMap((m) => {
|
|
134
|
+
if (m.role === "assistant") {
|
|
135
|
+
if (typeof m.content === "string")
|
|
136
|
+
return [{ role: "assistant", content: m.content }];
|
|
137
|
+
const content = m.content.flatMap((b) => {
|
|
138
|
+
if (b.type === "text")
|
|
139
|
+
return [{ type: "text", text: b.text }];
|
|
140
|
+
if (b.type === "reasoning")
|
|
141
|
+
return [{ type: "thinking", thinking: b.text }];
|
|
142
|
+
if (b.type === "tool-call")
|
|
143
|
+
return [
|
|
144
|
+
{
|
|
145
|
+
type: "tool_use",
|
|
146
|
+
toolCallId: b.toolCallId,
|
|
147
|
+
name: b.toolName,
|
|
148
|
+
input: b.input,
|
|
149
|
+
},
|
|
150
|
+
];
|
|
151
|
+
return [];
|
|
152
|
+
});
|
|
153
|
+
return [{ role: "assistant", content }];
|
|
154
|
+
}
|
|
155
|
+
if (m.role === "tool") {
|
|
156
|
+
return m.content.flatMap((b) => {
|
|
157
|
+
if (b.type !== "tool-result")
|
|
158
|
+
return [];
|
|
159
|
+
const content = b.output.type === "text" ? b.output.value : JSON.stringify(b.output);
|
|
160
|
+
return [{ role: "tool", toolCallId: b.toolCallId, content }];
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
return [];
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
function toToolSet(tools) {
|
|
167
|
+
const res = {};
|
|
168
|
+
for (const t of tools) {
|
|
169
|
+
res[t.name] = (0, ai_1.tool)({
|
|
170
|
+
description: t.description,
|
|
171
|
+
inputSchema: (0, ai_1.jsonSchema)(t.inputSchema),
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
return res;
|
|
175
|
+
}
|
|
176
|
+
/** `ModelProvider` implementation backed by any Vercel AI SDK `LanguageModel`. */
|
|
177
|
+
class AiModelProvider extends ModelProvider {
|
|
178
|
+
constructor(model) {
|
|
179
|
+
super();
|
|
180
|
+
this.model = model;
|
|
181
|
+
}
|
|
182
|
+
async *stream(history, tools) {
|
|
183
|
+
const result = (0, ai_1.streamText)({
|
|
184
|
+
model: this.model,
|
|
185
|
+
tools: toToolSet(tools),
|
|
186
|
+
messages: toAiMessages(history),
|
|
187
|
+
});
|
|
188
|
+
for await (const part of result.fullStream) {
|
|
189
|
+
const e = toAAPEvent(part);
|
|
190
|
+
if (e !== undefined) {
|
|
191
|
+
yield e;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
async call(history, tools) {
|
|
196
|
+
const res = await (0, ai_1.generateText)({
|
|
197
|
+
model: this.model,
|
|
198
|
+
tools: toToolSet(tools),
|
|
199
|
+
messages: toAiMessages(history),
|
|
200
|
+
});
|
|
201
|
+
return {
|
|
202
|
+
messages: fromAiMessages(res.response.messages),
|
|
203
|
+
stopReason: toStopReason(res.finishReason),
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
exports.AiModelProvider = AiModelProvider;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Hono } from "hono";
|
|
2
|
+
import { AgentResponse, CreateSessionRequest, CreateSessionResponse, MetaResponse, SessionListResponse, SessionResponse, SessionTurnRequest, SSEEvent } from "@agentapplicationprotocol/core";
|
|
3
|
+
export interface Handler {
|
|
4
|
+
getMeta(): MetaResponse;
|
|
5
|
+
listSessions(params: {
|
|
6
|
+
after?: string;
|
|
7
|
+
}): Promise<SessionListResponse>;
|
|
8
|
+
getSession(sessionId: string): Promise<SessionResponse>;
|
|
9
|
+
/** The last message in `req.messages` is guaranteed to be a user message. */
|
|
10
|
+
createSession(req: CreateSessionRequest): Promise<CreateSessionResponse> | AsyncIterable<SSEEvent>;
|
|
11
|
+
sendTurn(sessionId: string, req: SessionTurnRequest): Promise<AgentResponse> | AsyncIterable<SSEEvent>;
|
|
12
|
+
deleteSession(sessionId: string): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns a Hono app with all AAP endpoints mounted.
|
|
16
|
+
* Use with `app.route()` to compose it into your app, optionally under a base path.
|
|
17
|
+
* Apply auth, CORS, and other middleware to your outer app before routing.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* const app = new Hono()
|
|
21
|
+
* app.use(bearerAuth({ token: 'secret' }))
|
|
22
|
+
* app.route('/', aap(handler))
|
|
23
|
+
*
|
|
24
|
+
* // with base path:
|
|
25
|
+
* app.route('/api/v1', aap(handler))
|
|
26
|
+
*/
|
|
27
|
+
export declare function aap(handler: Handler): Hono;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.aap = aap;
|
|
4
|
+
const hono_1 = require("hono");
|
|
5
|
+
const streaming_1 = require("hono/streaming");
|
|
6
|
+
// --- SSE helper ---
|
|
7
|
+
async function writeSSEEvents(stream, events) {
|
|
8
|
+
for await (const { event, ...data } of events) {
|
|
9
|
+
await stream.writeSSE({ event, data: JSON.stringify(data) });
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function redactSecretOptions(session, agents) {
|
|
13
|
+
const { options } = session.agent;
|
|
14
|
+
if (!options)
|
|
15
|
+
return session;
|
|
16
|
+
const agentInfo = agents.find((a) => a.name === session.agent.name);
|
|
17
|
+
const secretNames = new Set(agentInfo?.options?.filter((o) => o.type === "secret").map((o) => o.name) ?? []);
|
|
18
|
+
if (secretNames.size === 0)
|
|
19
|
+
return session;
|
|
20
|
+
return {
|
|
21
|
+
...session,
|
|
22
|
+
agent: {
|
|
23
|
+
...session.agent,
|
|
24
|
+
options: Object.fromEntries(Object.entries(options).map(([k, v]) => [k, secretNames.has(k) ? "***" : v])),
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
// --- aap ---
|
|
29
|
+
/**
|
|
30
|
+
* Returns a Hono app with all AAP endpoints mounted.
|
|
31
|
+
* Use with `app.route()` to compose it into your app, optionally under a base path.
|
|
32
|
+
* Apply auth, CORS, and other middleware to your outer app before routing.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* const app = new Hono()
|
|
36
|
+
* app.use(bearerAuth({ token: 'secret' }))
|
|
37
|
+
* app.route('/', aap(handler))
|
|
38
|
+
*
|
|
39
|
+
* // with base path:
|
|
40
|
+
* app.route('/api/v1', aap(handler))
|
|
41
|
+
*/
|
|
42
|
+
function aap(handler) {
|
|
43
|
+
const router = new hono_1.Hono();
|
|
44
|
+
router.get("/meta", (c) => c.json(handler.getMeta()));
|
|
45
|
+
router.put("/session", async (c) => {
|
|
46
|
+
const req = await c.req.json();
|
|
47
|
+
if (req.messages.at(-1)?.role !== "user")
|
|
48
|
+
return c.json({ error: "Last message must be a user message" }, 400);
|
|
49
|
+
const result = await handler.createSession(req);
|
|
50
|
+
if (req.stream === "delta" || req.stream === "message") {
|
|
51
|
+
return (0, streaming_1.streamSSE)(c, (stream) => writeSSEEvents(stream, result));
|
|
52
|
+
}
|
|
53
|
+
return c.json(result, 201);
|
|
54
|
+
});
|
|
55
|
+
router.post("/session/:id", async (c) => {
|
|
56
|
+
const req = await c.req.json();
|
|
57
|
+
const result = await handler.sendTurn(c.req.param("id"), req);
|
|
58
|
+
if (req.stream === "delta" || req.stream === "message") {
|
|
59
|
+
return (0, streaming_1.streamSSE)(c, (stream) => writeSSEEvents(stream, result));
|
|
60
|
+
}
|
|
61
|
+
return c.json(result);
|
|
62
|
+
});
|
|
63
|
+
router.get("/session/:id", async (c) => {
|
|
64
|
+
const session = await handler.getSession(c.req.param("id"));
|
|
65
|
+
const meta = handler.getMeta();
|
|
66
|
+
return c.json(redactSecretOptions(session, meta.agents));
|
|
67
|
+
});
|
|
68
|
+
router.get("/sessions", async (c) => {
|
|
69
|
+
const after = c.req.query("after");
|
|
70
|
+
return c.json(await handler.listSessions({ after }));
|
|
71
|
+
});
|
|
72
|
+
router.delete("/session/:id", async (c) => {
|
|
73
|
+
await handler.deleteSession(c.req.param("id"));
|
|
74
|
+
return new Response(null, { status: 204 });
|
|
75
|
+
});
|
|
76
|
+
return router;
|
|
77
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { HistoryMessage, ToolPermissionMessage, AgentConfig, ToolSpec, SSEEvent, AgentResponse, CreateSessionRequest, CreateSessionResponse, SessionTurnRequest, SessionResponse, DeltaSSEEvent } from "@agentapplicationprotocol/core";
|
|
2
|
+
import { ModelProvider } from "./model";
|
|
3
|
+
import { Agent } from "./agent";
|
|
4
|
+
/** Messages accepted as input to a turn: regular history messages or client-side tool permission responses. */
|
|
5
|
+
export type TurnMessages = (HistoryMessage | ToolPermissionMessage)[];
|
|
6
|
+
/** Manages a stateful conversation session, accumulating history across turns. */
|
|
7
|
+
export declare class Session {
|
|
8
|
+
sessionId: string;
|
|
9
|
+
agent: Agent;
|
|
10
|
+
agentConfig: AgentConfig;
|
|
11
|
+
/** Application-side tools declared for this session. */
|
|
12
|
+
clientTools: ToolSpec[];
|
|
13
|
+
/** Accumulated conversation history across all turns. */
|
|
14
|
+
history: HistoryMessage[];
|
|
15
|
+
model: ModelProvider;
|
|
16
|
+
constructor(sessionId: string, agent: Agent, model: ModelProvider, agentConfig: AgentConfig, clientTools?: ToolSpec[]);
|
|
17
|
+
/** Resolves tool_permission messages into tool result messages by executing granted tools. */
|
|
18
|
+
private resolvePermissions;
|
|
19
|
+
/** Returns the set of trusted server tool names from agentConfig. */
|
|
20
|
+
private trustedTools;
|
|
21
|
+
/** Returns ToolSpec[] for enabled server tools + client tools to pass to the model. */
|
|
22
|
+
private enabledToolSpecs;
|
|
23
|
+
/**
|
|
24
|
+
* Streams the LLM response for new `messages`.
|
|
25
|
+
* `messages` are combined with history for the LLM call, but only appended
|
|
26
|
+
* to history along with the response once streaming is complete.
|
|
27
|
+
*
|
|
28
|
+
* Override to customize history sent to the model, e.g. compaction or summarization.
|
|
29
|
+
*/
|
|
30
|
+
protected stream(messages: HistoryMessage[]): AsyncIterable<DeltaSSEEvent>;
|
|
31
|
+
/**
|
|
32
|
+
* Calls the LLM with new `messages`.
|
|
33
|
+
* `messages` are combined with history for the LLM call, but only appended
|
|
34
|
+
* to history along with the response once the call is complete.
|
|
35
|
+
*
|
|
36
|
+
* Override to customize history sent to the model, e.g. compaction or summarization.
|
|
37
|
+
*/
|
|
38
|
+
protected call(messages: HistoryMessage[]): Promise<AgentResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Runs a single agent turn in delta streaming mode, yielding SSE events chunk by chunk.
|
|
41
|
+
* Resolves permissions, then loops: streams the model, executes any trusted
|
|
42
|
+
* server tools inline, and repeats until a non-tool-use stop or an untrusted
|
|
43
|
+
* tool is encountered.
|
|
44
|
+
*/
|
|
45
|
+
private runTurnDelta;
|
|
46
|
+
/**
|
|
47
|
+
* Runs a single agent turn in message streaming mode, yielding complete text/thinking
|
|
48
|
+
* events (not deltas). Uses a non-streaming LLM call internally, then emits SSE events
|
|
49
|
+
* from the response. Loops on trusted inline tool calls.
|
|
50
|
+
*/
|
|
51
|
+
private runTurnMessage;
|
|
52
|
+
/**
|
|
53
|
+
* Runs a single agent turn without streaming, returning a complete `AgentResponse`.
|
|
54
|
+
* Loops the LLM call as long as all tool calls are trusted and executed inline.
|
|
55
|
+
*/
|
|
56
|
+
private runTurnNone;
|
|
57
|
+
/** Runs the first turn and wraps the result with `sessionId` for a `createSession` response. */
|
|
58
|
+
runNewSession(req: CreateSessionRequest): Promise<CreateSessionResponse> | AsyncIterable<SSEEvent>;
|
|
59
|
+
/** Applies config overrides from the request that persist for the session lifetime: client tools, enabled/trusted agent tools, and agent options. */
|
|
60
|
+
private applySessionOverrides;
|
|
61
|
+
/** Routes to the appropriate turn runner based on the requested stream mode. */
|
|
62
|
+
private dispatchTurn;
|
|
63
|
+
/** Dispatches to the appropriate turn runner based on `stream` mode. Applies optional config overrides that persist for the session lifetime. */
|
|
64
|
+
runTurn(req: SessionTurnRequest): AsyncIterable<SSEEvent> | Promise<AgentResponse>;
|
|
65
|
+
/** Returns all `tool_use` blocks from the most recent assistant message in history. */
|
|
66
|
+
private lastToolUses;
|
|
67
|
+
/** Serializes the session state for a `GET /session/:id` response. History is not included. */
|
|
68
|
+
toSessionResponse(): SessionResponse;
|
|
69
|
+
}
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Session = void 0;
|
|
4
|
+
const core_1 = require("@agentapplicationprotocol/core");
|
|
5
|
+
/** Manages a stateful conversation session, accumulating history across turns. */
|
|
6
|
+
class Session {
|
|
7
|
+
constructor(sessionId, agent, model, agentConfig, clientTools = []) {
|
|
8
|
+
this.sessionId = sessionId;
|
|
9
|
+
this.agent = agent;
|
|
10
|
+
this.model = model;
|
|
11
|
+
this.agentConfig = agentConfig;
|
|
12
|
+
this.clientTools = clientTools;
|
|
13
|
+
this.history = [];
|
|
14
|
+
}
|
|
15
|
+
/** Resolves tool_permission messages into tool result messages by executing granted tools. */
|
|
16
|
+
async resolvePermissions(messages) {
|
|
17
|
+
const resolved = [];
|
|
18
|
+
for (const m of messages) {
|
|
19
|
+
// pass through regular history messages unchanged
|
|
20
|
+
if (m.role !== "tool_permission") {
|
|
21
|
+
resolved.push(m);
|
|
22
|
+
continue;
|
|
23
|
+
}
|
|
24
|
+
// for tool_permission, look up the original tool_use block in history to get name + args
|
|
25
|
+
let toolName = "";
|
|
26
|
+
let toolInput = "";
|
|
27
|
+
for (const h of this.history) {
|
|
28
|
+
if (h.role === "assistant" && Array.isArray(h.content)) {
|
|
29
|
+
for (const b of h.content) {
|
|
30
|
+
if (b.type === "tool_use" && b.toolCallId === m.toolCallId) {
|
|
31
|
+
toolName = b.name;
|
|
32
|
+
toolInput = JSON.stringify(b.input);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
// execute the tool if granted, otherwise produce a denial message
|
|
38
|
+
const content = m.granted && this.agent.tools.has(toolName)
|
|
39
|
+
? await this.agent.tools.get(toolName)(toolInput)
|
|
40
|
+
: `Tool use denied${m.reason ? `: ${m.reason}` : ""}`;
|
|
41
|
+
resolved.push({ role: "tool", toolCallId: m.toolCallId, content });
|
|
42
|
+
}
|
|
43
|
+
return resolved;
|
|
44
|
+
}
|
|
45
|
+
/** Returns the set of trusted server tool names from agentConfig. */
|
|
46
|
+
trustedTools() {
|
|
47
|
+
return new Set((this.agentConfig.tools ?? []).filter((r) => r.trust).map((r) => r.name));
|
|
48
|
+
}
|
|
49
|
+
/** Returns ToolSpec[] for enabled server tools + client tools to pass to the model. */
|
|
50
|
+
enabledToolSpecs() {
|
|
51
|
+
const enabledNames = new Set((this.agentConfig.tools ?? []).map((r) => r.name));
|
|
52
|
+
const serverSpecs = (this.agent.info.tools ?? []).filter((t) => enabledNames.has(t.name));
|
|
53
|
+
return [...serverSpecs, ...this.clientTools];
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Streams the LLM response for new `messages`.
|
|
57
|
+
* `messages` are combined with history for the LLM call, but only appended
|
|
58
|
+
* to history along with the response once streaming is complete.
|
|
59
|
+
*
|
|
60
|
+
* Override to customize history sent to the model, e.g. compaction or summarization.
|
|
61
|
+
*/
|
|
62
|
+
async *stream(messages) {
|
|
63
|
+
const history = [...this.history, ...messages];
|
|
64
|
+
const events = [];
|
|
65
|
+
for await (const e of this.model.stream(history, this.enabledToolSpecs())) {
|
|
66
|
+
events.push(e);
|
|
67
|
+
yield e;
|
|
68
|
+
}
|
|
69
|
+
const [resMessages] = (0, core_1.sseEventsToMessages)(events);
|
|
70
|
+
this.history.push(...messages, ...resMessages);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Calls the LLM with new `messages`.
|
|
74
|
+
* `messages` are combined with history for the LLM call, but only appended
|
|
75
|
+
* to history along with the response once the call is complete.
|
|
76
|
+
*
|
|
77
|
+
* Override to customize history sent to the model, e.g. compaction or summarization.
|
|
78
|
+
*/
|
|
79
|
+
async call(messages) {
|
|
80
|
+
const history = [...this.history, ...messages];
|
|
81
|
+
const res = await this.model.call(history, this.enabledToolSpecs());
|
|
82
|
+
this.history.push(...messages, ...res.messages);
|
|
83
|
+
return res;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Runs a single agent turn in delta streaming mode, yielding SSE events chunk by chunk.
|
|
87
|
+
* Resolves permissions, then loops: streams the model, executes any trusted
|
|
88
|
+
* server tools inline, and repeats until a non-tool-use stop or an untrusted
|
|
89
|
+
* tool is encountered.
|
|
90
|
+
*/
|
|
91
|
+
async *runTurnDelta(messages) {
|
|
92
|
+
const incoming = await this.resolvePermissions(messages);
|
|
93
|
+
const trusted = this.trustedTools();
|
|
94
|
+
yield { event: "turn_start" };
|
|
95
|
+
let stopReason = "end_turn";
|
|
96
|
+
let next = incoming;
|
|
97
|
+
while (true) {
|
|
98
|
+
// stream the LLM response chunk by chunk, forwarding events to the caller
|
|
99
|
+
for await (const e of this.stream(next)) {
|
|
100
|
+
if (e.event === "turn_stop")
|
|
101
|
+
stopReason = e.stopReason;
|
|
102
|
+
yield e;
|
|
103
|
+
}
|
|
104
|
+
// non-tool stop: we're done
|
|
105
|
+
if (stopReason !== "tool_use")
|
|
106
|
+
break;
|
|
107
|
+
const toolUses = this.lastToolUses();
|
|
108
|
+
// any untrusted tool: return to client for permission
|
|
109
|
+
const untrusted = toolUses.filter((b) => !trusted.has(b.name));
|
|
110
|
+
if (untrusted.length > 0)
|
|
111
|
+
break;
|
|
112
|
+
// all tools are trusted: execute inline, emit tool_result events, and loop
|
|
113
|
+
next = [];
|
|
114
|
+
for (const b of toolUses) {
|
|
115
|
+
const content = await this.agent.tools.get(b.name)(JSON.stringify(b.input));
|
|
116
|
+
yield {
|
|
117
|
+
event: "tool_result",
|
|
118
|
+
toolCallId: b.toolCallId,
|
|
119
|
+
content,
|
|
120
|
+
};
|
|
121
|
+
next.push({ role: "tool", toolCallId: b.toolCallId, content });
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
yield { event: "turn_stop", stopReason };
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Runs a single agent turn in message streaming mode, yielding complete text/thinking
|
|
128
|
+
* events (not deltas). Uses a non-streaming LLM call internally, then emits SSE events
|
|
129
|
+
* from the response. Loops on trusted inline tool calls.
|
|
130
|
+
*/
|
|
131
|
+
async *runTurnMessage(messages) {
|
|
132
|
+
const incoming = await this.resolvePermissions(messages);
|
|
133
|
+
const trusted = this.trustedTools();
|
|
134
|
+
yield { event: "turn_start" };
|
|
135
|
+
let stopReason = "end_turn";
|
|
136
|
+
let next = incoming;
|
|
137
|
+
while (true) {
|
|
138
|
+
// call the LLM non-streaming, then emit events from the response messages
|
|
139
|
+
const res = await this.call(next);
|
|
140
|
+
stopReason = res.stopReason;
|
|
141
|
+
next = [];
|
|
142
|
+
for (const msg of res.messages) {
|
|
143
|
+
if (msg.role === "assistant") {
|
|
144
|
+
const blocks = Array.isArray(msg.content)
|
|
145
|
+
? msg.content
|
|
146
|
+
: [{ type: "text", text: msg.content }];
|
|
147
|
+
for (const b of blocks) {
|
|
148
|
+
if (b.type === "text")
|
|
149
|
+
yield { event: "text", text: b.text };
|
|
150
|
+
else if (b.type === "thinking")
|
|
151
|
+
yield { event: "thinking", thinking: b.thinking };
|
|
152
|
+
else if (b.type === "tool_use")
|
|
153
|
+
yield {
|
|
154
|
+
event: "tool_call",
|
|
155
|
+
toolCallId: b.toolCallId,
|
|
156
|
+
name: b.name,
|
|
157
|
+
input: b.input,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
// non-tool stop: we're done
|
|
163
|
+
if (stopReason !== "tool_use")
|
|
164
|
+
break;
|
|
165
|
+
const toolUses = this.lastToolUses();
|
|
166
|
+
// any untrusted tool: return to client for permission
|
|
167
|
+
const untrusted = toolUses.filter((b) => !trusted.has(b.name));
|
|
168
|
+
if (untrusted.length > 0)
|
|
169
|
+
break;
|
|
170
|
+
// all tools are trusted: execute inline, emit tool_result events, and loop
|
|
171
|
+
for (const b of toolUses) {
|
|
172
|
+
const content = await this.agent.tools.get(b.name)(JSON.stringify(b.input));
|
|
173
|
+
yield {
|
|
174
|
+
event: "tool_result",
|
|
175
|
+
toolCallId: b.toolCallId,
|
|
176
|
+
content,
|
|
177
|
+
};
|
|
178
|
+
next.push({ role: "tool", toolCallId: b.toolCallId, content });
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
yield { event: "turn_stop", stopReason };
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Runs a single agent turn without streaming, returning a complete `AgentResponse`.
|
|
185
|
+
* Loops the LLM call as long as all tool calls are trusted and executed inline.
|
|
186
|
+
*/
|
|
187
|
+
async runTurnNone(messages) {
|
|
188
|
+
const incoming = await this.resolvePermissions(messages);
|
|
189
|
+
const trusted = this.trustedTools();
|
|
190
|
+
const newMessages = [];
|
|
191
|
+
let next = incoming;
|
|
192
|
+
while (true) {
|
|
193
|
+
// call the LLM with the next batch of messages
|
|
194
|
+
const res = await this.call(next);
|
|
195
|
+
newMessages.push(...res.messages);
|
|
196
|
+
// non-tool stop: we're done
|
|
197
|
+
if (res.stopReason !== "tool_use")
|
|
198
|
+
return { stopReason: res.stopReason, messages: newMessages };
|
|
199
|
+
const toolUses = this.lastToolUses();
|
|
200
|
+
// any untrusted tool: return to client for permission
|
|
201
|
+
const untrusted = toolUses.filter((b) => !trusted.has(b.name));
|
|
202
|
+
if (untrusted.length > 0)
|
|
203
|
+
return { stopReason: "tool_use", messages: newMessages };
|
|
204
|
+
// all tools are trusted: execute inline and loop
|
|
205
|
+
next = [];
|
|
206
|
+
for (const b of toolUses) {
|
|
207
|
+
const content = await this.agent.tools.get(b.name)(JSON.stringify(b.input));
|
|
208
|
+
next.push({ role: "tool", toolCallId: b.toolCallId, content });
|
|
209
|
+
}
|
|
210
|
+
newMessages.push(...next);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
/** Runs the first turn and wraps the result with `sessionId` for a `createSession` response. */
|
|
214
|
+
runNewSession(req) {
|
|
215
|
+
const sessionId = this.sessionId;
|
|
216
|
+
const result = this.dispatchTurn(req.stream, req.messages);
|
|
217
|
+
if (result instanceof Promise) {
|
|
218
|
+
return result.then((res) => ({ ...res, sessionId }));
|
|
219
|
+
}
|
|
220
|
+
return (async function* () {
|
|
221
|
+
yield { event: "session_start", sessionId };
|
|
222
|
+
yield* result;
|
|
223
|
+
})();
|
|
224
|
+
}
|
|
225
|
+
/** Applies config overrides from the request that persist for the session lifetime: client tools, enabled/trusted agent tools, and agent options. */
|
|
226
|
+
applySessionOverrides(req) {
|
|
227
|
+
// Override client-provided tools
|
|
228
|
+
if (req.tools)
|
|
229
|
+
this.clientTools = req.tools;
|
|
230
|
+
// Override enabled and trusted agent tools
|
|
231
|
+
if (req.agent?.tools)
|
|
232
|
+
this.agentConfig = { ...this.agentConfig, tools: req.agent.tools };
|
|
233
|
+
// Override options by field; omit a field to keep current value, use its default value to reset
|
|
234
|
+
if (req.agent?.options)
|
|
235
|
+
this.agentConfig = {
|
|
236
|
+
...this.agentConfig,
|
|
237
|
+
options: { ...this.agentConfig.options, ...req.agent.options },
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
/** Routes to the appropriate turn runner based on the requested stream mode. */
|
|
241
|
+
dispatchTurn(stream, messages) {
|
|
242
|
+
if (stream === "delta")
|
|
243
|
+
return this.runTurnDelta(messages);
|
|
244
|
+
if (stream === "message")
|
|
245
|
+
return this.runTurnMessage(messages);
|
|
246
|
+
return this.runTurnNone(messages);
|
|
247
|
+
}
|
|
248
|
+
/** Dispatches to the appropriate turn runner based on `stream` mode. Applies optional config overrides that persist for the session lifetime. */
|
|
249
|
+
runTurn(req) {
|
|
250
|
+
this.applySessionOverrides(req);
|
|
251
|
+
return this.dispatchTurn(req.stream, req.messages);
|
|
252
|
+
}
|
|
253
|
+
/** Returns all `tool_use` blocks from the most recent assistant message in history. */
|
|
254
|
+
lastToolUses() {
|
|
255
|
+
const last = [...this.history].reverse().find((m) => m.role === "assistant");
|
|
256
|
+
if (!last || !Array.isArray(last.content))
|
|
257
|
+
return [];
|
|
258
|
+
return last.content.filter((b) => b.type === "tool_use");
|
|
259
|
+
}
|
|
260
|
+
/** Serializes the session state for a `GET /session/:id` response. History is not included. */
|
|
261
|
+
toSessionResponse() {
|
|
262
|
+
return {
|
|
263
|
+
sessionId: this.sessionId,
|
|
264
|
+
agent: this.agentConfig,
|
|
265
|
+
tools: this.clientTools.length ? this.clientTools : undefined,
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
exports.Session = Session;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/@types+json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts","../../core/dist/src/types.d.ts","../../core/dist/src/utils.d.ts","../../core/dist/src/index.d.ts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/standard-schema.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ar.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/az.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/be.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/bg.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ca.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/cs.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/da.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/de.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/en.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/eo.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/es.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fa.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fi.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/he.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hu.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hy.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/id.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/is.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/it.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ja.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ka.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/kh.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/km.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ko.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/lt.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/mk.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ms.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/nl.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/no.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ota.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ps.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pl.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pt.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ru.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sl.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sv.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ta.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/th.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/tr.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ua.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uk.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ur.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uz.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/vi.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/yo.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/index.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/index.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/checks.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/coerce.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/index.d.cts","../src/agent.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/request/constants.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/router.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/utils/headers.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/utils/http-status.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/utils/types.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/types.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/utils/body.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/request.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/utils/mime.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/context.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/hono-base.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/hono.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/client/types.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/client/client.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/client/fetch-result-please.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/client/utils.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/client/index.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/index.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/utils/stream.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/helper/streaming/stream.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/helper/streaming/sse.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/helper/streaming/text.d.ts","../../../node_modules/.pnpm/hono@4.12.9/node_modules/hono/dist/types/helper/streaming/index.d.ts","../src/server.ts","../../../node_modules/.pnpm/@ai-sdk+provider@3.0.8/node_modules/@ai-sdk/provider/dist/index.d.ts","../../../node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.ts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/typeAliases.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/util.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/ZodError.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/locales/en.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/errors.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/parseUtil.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/enumUtil.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/errorUtil.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/partialUtil.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/standard-schema.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/types.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/external.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/index.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/index.d.cts","../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/index.d.cts","../../../node_modules/.pnpm/eventsource-parser@3.0.6/node_modules/eventsource-parser/dist/stream.d.ts","../../../node_modules/.pnpm/@ai-sdk+provider-utils@4.0.21_zod@4.3.6/node_modules/@ai-sdk/provider-utils/dist/index.d.ts","../../../node_modules/.pnpm/@ai-sdk+gateway@3.0.84_zod@4.3.6/node_modules/@ai-sdk/gateway/dist/index.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/baggage/types.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/baggage/utils.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/common/Exception.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/common/Time.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/common/Attributes.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/context/types.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/context/context.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/api/context.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/diag/types.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/diag/consoleLogger.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/api/diag.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/metrics/ObservableResult.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/metrics/Metric.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/metrics/Meter.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/metrics/MeterProvider.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/api/metrics.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/baggage/context-helpers.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/api/propagation.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/attributes.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/trace_state.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span_context.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/link.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/status.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/span_kind.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/SpanOptions.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer_options.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/tracer_provider.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/SamplingResult.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/Sampler.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/trace_flags.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/internal/utils.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/context-utils.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/api/trace.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/context-api.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/diag-api.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/metrics-api.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/propagation-api.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace-api.d.ts","../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/index.d.ts","../../../node_modules/.pnpm/ai@6.0.142_zod@4.3.6/node_modules/ai/dist/index.d.ts","../src/model.ts","../src/session.ts","../src/index.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/web-globals/blob.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/web-globals/console.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/web-globals/crypto.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/web-globals/encoding.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/utility.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/client-stats.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/round-robin-pool.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/h2c-client.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/mock-call-history.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/snapshot-agent.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/cache-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@7.18.2/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/web-globals/importmeta.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/web-globals/messaging.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/web-globals/performance.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/web-globals/streams.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/web-globals/timers.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/web-globals/url.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/inspector/promises.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/path/posix.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/path/win32.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/quic.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/test/reporters.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/util/types.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@25.5.0/node_modules/@types/node/index.d.ts"],"fileIdsList":[[167,185,241,304,312,316,319,321,322,323,335],[167,168,181,183,184,241,304,312,316,319,321,322,323,335],[61,241,304,312,316,319,321,322,323,335],[193,241,304,312,316,319,321,322,323,335],[196,241,304,312,316,319,321,322,323,335],[201,203,241,304,312,316,319,321,322,323,335],[189,193,205,206,241,304,312,316,319,321,322,323,335],[216,219,225,227,241,304,312,316,319,321,322,323,335],[188,193,241,304,312,316,319,321,322,323,335],[241,304,312,316,319,321,322,323,335],[187,241,304,312,316,319,321,322,323,335],[188,241,304,312,316,319,321,322,323,335],[195,241,304,312,316,319,321,322,323,335],[198,241,304,312,316,319,321,322,323,335],[188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,228,229,230,231,232,233,241,304,312,316,319,321,322,323,335],[204,241,304,312,316,319,321,322,323,335],[200,241,304,312,316,319,321,322,323,335],[201,241,304,312,316,319,321,322,323,335],[192,193,199,241,304,312,316,319,321,322,323,335],[200,201,241,304,312,316,319,321,322,323,335],[207,241,304,312,316,319,321,322,323,335],[228,241,304,312,316,319,321,322,323,335],[193,213,215,216,217,241,304,312,316,319,321,322,323,335],[216,217,219,241,304,312,316,319,321,322,323,335],[193,208,211,214,221,241,304,312,316,319,321,322,323,335],[208,209,241,304,312,316,319,321,322,323,335],[191,208,211,214,241,304,312,316,319,321,322,323,335],[192,241,304,312,316,319,321,322,323,335],[193,210,213,241,304,312,316,319,321,322,323,335],[209,241,304,312,316,319,321,322,323,335],[210,241,304,312,316,319,321,322,323,335],[208,210,241,304,312,316,319,321,322,323,335],[190,191,208,210,211,212,241,304,312,316,319,321,322,323,335],[210,213,241,304,312,316,319,321,322,323,335],[193,213,215,241,304,312,316,319,321,322,323,335],[216,217,241,304,312,316,319,321,322,323,335],[241,301,302,304,312,316,319,321,322,323,335],[241,303,304,312,316,319,321,322,323,335],[304,312,316,319,321,322,323,335],[241,304,312,316,319,321,322,323,335,343],[241,304,305,310,312,315,316,319,321,322,323,325,335,340,352],[241,304,305,306,312,315,316,319,321,322,323,335],[241,304,307,312,316,319,321,322,323,335,353],[241,304,308,309,312,316,319,321,322,323,326,335],[241,304,309,312,316,319,321,322,323,335,340,349],[241,304,310,312,315,316,319,321,322,323,325,335],[241,303,304,311,312,316,319,321,322,323,335],[241,304,312,313,316,319,321,322,323,335],[241,304,312,314,315,316,319,321,322,323,335],[241,303,304,312,315,316,319,321,322,323,335],[241,304,312,315,316,317,319,321,322,323,335,340,352],[241,304,312,315,316,317,319,321,322,323,335,340,343],[241,291,304,312,315,316,318,319,321,322,323,325,335,340,352],[241,304,312,315,316,318,319,321,322,323,325,335,340,349,352],[241,304,312,316,318,319,320,321,322,323,335,340,349,352],[239,240,241,242,243,244,245,246,247,248,249,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359],[241,304,312,315,316,319,321,322,323,335],[241,304,312,316,319,321,323,335],[241,304,312,316,319,321,322,323,324,335,352],[241,304,312,315,316,319,321,322,323,325,335,340],[241,304,312,316,319,321,322,323,326,335],[241,304,312,316,319,321,322,323,327,335],[241,304,312,315,316,319,321,322,323,330,335],[241,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359],[241,304,312,316,319,321,322,323,332,335],[241,304,312,316,319,321,322,323,333,335],[241,304,309,312,316,319,321,322,323,325,335,343],[241,304,312,315,316,319,321,322,323,335,336],[241,304,312,316,319,321,322,323,335,337,353,356],[241,304,312,315,316,319,321,322,323,335,340,342,343],[241,304,312,316,319,321,322,323,335,341,343],[241,304,312,316,319,321,322,323,335,343,353],[241,304,312,316,319,321,322,323,335,344],[241,301,304,312,316,319,321,322,323,335,340,346,352],[241,304,312,316,319,321,322,323,335,340,345],[241,304,312,315,316,319,321,322,323,335,347,348],[241,304,312,316,319,321,322,323,335,347,348],[241,304,309,312,316,319,321,322,323,325,335,340,349],[241,304,312,316,319,321,322,323,335,350],[241,304,312,316,319,321,322,323,325,335,351],[241,304,312,316,318,319,321,322,323,333,335,352],[241,304,312,316,319,321,322,323,335,353,354],[241,304,309,312,316,319,321,322,323,335,354],[241,304,312,316,319,321,322,323,335,340,355],[241,304,312,316,319,321,322,323,324,335,356],[241,304,312,316,319,321,322,323,335,357],[241,304,307,312,316,319,321,322,323,335],[241,304,309,312,316,319,321,322,323,335],[241,304,312,316,319,321,322,323,335,353],[241,291,304,312,316,319,321,322,323,335],[241,304,312,316,319,321,322,323,335,352],[241,304,312,316,319,321,322,323,335,358],[241,304,312,316,319,321,322,323,330,335],[241,304,312,316,319,321,322,323,335,348],[241,291,304,312,315,316,317,319,321,322,323,330,335,340,343,352,355,356,358],[241,304,312,316,319,321,322,323,335,340,359],[167,183,185,186,234,241,304,312,316,318,319,321,322,323,335],[147,154,155,241,304,312,316,319,321,322,323,335],[155,156,158,241,304,312,316,319,321,322,323,335],[144,146,147,148,153,154,241,304,312,316,319,321,322,323,335],[146,155,157,241,304,312,316,319,321,322,323,335],[144,145,146,147,148,150,151,241,304,312,316,319,321,322,323,335],[162,163,164,241,304,312,316,319,321,322,323,335],[152,161,241,304,312,316,319,321,322,323,335],[144,148,152,241,304,312,316,319,321,322,323,335],[148,153,241,304,312,316,319,321,322,323,335],[148,150,152,154,159,241,304,312,316,319,321,322,323,335],[143,144,145,147,148,149,241,304,312,316,319,321,322,323,335],[145,146,147,152,153,241,304,312,316,319,321,322,323,335],[150,241,304,312,316,319,321,322,323,335],[241,256,259,262,263,304,312,316,319,321,322,323,335,352],[241,259,304,312,316,319,321,322,323,335,340,352],[241,259,263,304,312,316,319,321,322,323,335,352],[241,304,312,316,319,321,322,323,335,340],[241,253,304,312,316,319,321,322,323,335],[241,257,304,312,316,319,321,322,323,335],[241,255,256,259,304,312,316,319,321,322,323,335,352],[241,304,312,316,319,321,322,323,325,335,349],[241,304,312,316,319,321,322,323,335,360],[241,253,304,312,316,319,321,322,323,335,360],[241,255,259,304,312,316,319,321,322,323,325,335,352],[241,250,251,252,254,258,304,312,315,316,319,321,322,323,335,340,352],[241,259,268,276,304,312,316,319,321,322,323,335],[241,251,257,304,312,316,319,321,322,323,335],[241,259,285,286,304,312,316,319,321,322,323,335],[241,251,254,259,304,312,316,319,321,322,323,335,343,352,360],[241,259,304,312,316,319,321,322,323,335],[241,255,259,304,312,316,319,321,322,323,335,352],[241,250,304,312,316,319,321,322,323,335],[241,253,254,255,257,258,259,260,261,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,286,287,288,289,290,304,312,316,319,321,322,323,335],[241,259,278,281,304,312,316,319,321,322,323,335],[241,259,268,269,270,304,312,316,319,321,322,323,335],[241,257,259,269,271,304,312,316,319,321,322,323,335],[241,258,304,312,316,319,321,322,323,335],[241,251,253,259,304,312,316,319,321,322,323,335],[241,259,263,269,271,304,312,316,319,321,322,323,335],[241,263,304,312,316,319,321,322,323,335],[241,257,259,262,304,312,316,319,321,322,323,335,352],[241,251,255,259,268,304,312,316,319,321,322,323,335],[241,259,278,304,312,316,319,321,322,323,335],[241,271,304,312,316,319,321,322,323,335],[241,253,259,285,304,312,316,319,321,322,323,335,343,358,360],[140,241,304,312,316,319,321,322,323,335],[169,170,181,241,304,312,316,319,321,322,323,335],[171,172,241,304,312,316,319,321,322,323,335],[169,170,171,173,174,179,241,304,312,316,319,321,322,323,335],[170,171,241,304,312,316,319,321,322,323,335],[179,241,304,312,316,319,321,322,323,335],[180,241,304,312,316,319,321,322,323,335],[171,241,304,312,316,319,321,322,323,335],[169,170,171,174,175,176,177,178,241,304,312,316,319,321,322,323,335],[131,241,304,312,316,319,321,322,323,335],[131,134,241,304,312,316,319,321,322,323,335],[126,129,131,132,133,134,135,136,137,138,139,241,304,312,316,319,321,322,323,335],[65,67,134,241,304,312,316,319,321,322,323,335],[131,132,241,304,312,316,319,321,322,323,335],[66,131,133,241,304,312,316,319,321,322,323,335],[67,69,71,72,73,74,241,304,312,316,319,321,322,323,335],[69,71,73,74,241,304,312,316,319,321,322,323,335],[69,71,73,241,304,312,316,319,321,322,323,335],[66,69,71,72,74,241,304,312,316,319,321,322,323,335],[65,67,68,69,70,71,72,73,74,75,76,126,127,128,129,130,241,304,312,316,319,321,322,323,335],[65,67,68,71,241,304,312,316,319,321,322,323,335],[67,68,71,241,304,312,316,319,321,322,323,335],[71,74,241,304,312,316,319,321,322,323,335],[65,66,68,69,70,72,73,74,241,304,312,316,319,321,322,323,335],[65,66,67,71,131,241,304,312,316,319,321,322,323,335],[71,72,73,74,241,304,312,316,319,321,322,323,335],[182,241,304,312,316,319,321,322,323,335],[73,241,304,312,316,319,321,322,323,335],[77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,241,304,312,316,319,321,322,323,335],[62,63,241,304,312,316,319,321,322,323,335],[62,241,304,312,316,319,321,322,323,335],[64,141,241,304,312,316,319,321,322,323,335],[142,166,236,237,241,304,312,316,319,321,322,323,335],[64,235,241,304,312,316,319,321,322,323,335],[64,160,165,241,304,312,316,319,321,322,323,335],[64,142,236,241,304,312,316,319,321,322,323,335]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","impliedFormat":1},"13ac90d0a4dc9e43f65897ee0e0bb3aaf3b86988edf138a3846572a2c2ca4646","4541b19f4f9398bd12595c86f55279a0cd5ea6f384e4acbcb863215d5abe5254","b573196f24878a6e4a35997166e818366843000659d94cb423c6df9e26eaebd5",{"version":"c1a2e05eb6d7ca8d7e4a7f4c93ccf0c2857e842a64c98eaee4d85841ee9855e6","impliedFormat":1},{"version":"835fb2909ce458740fb4a49fc61709896c6864f5ce3db7f0a88f06c720d74d02","impliedFormat":1},{"version":"6e5857f38aa297a859cab4ec891408659218a5a2610cd317b6dcbef9979459cc","impliedFormat":1},{"version":"ead8e39c2e11891f286b06ae2aa71f208b1802661fcdb2425cffa4f494a68854","impliedFormat":1},{"version":"82919acbb38870fcf5786ec1292f0f5afe490f9b3060123e48675831bd947192","impliedFormat":1},{"version":"e222701788ec77bd57c28facbbd142eadf5c749a74d586bc2f317db7e33544b1","impliedFormat":1},{"version":"09154713fae0ed7befacdad783e5bd1970c06fc41a5f866f7f933b96312ce764","impliedFormat":1},{"version":"8d67b13da77316a8a2fabc21d340866ddf8a4b99e76a6c951cc45189142df652","impliedFormat":1},{"version":"a91c8d28d10fee7fe717ddf3743f287b68770c813c98f796b6e38d5d164bd459","impliedFormat":1},{"version":"68add36d9632bc096d7245d24d6b0b8ad5f125183016102a3dad4c9c2438ccb0","impliedFormat":1},{"version":"3a819c2928ee06bbcc84e2797fd3558ae2ebb7e0ed8d87f71732fb2e2acc87b4","impliedFormat":1},{"version":"f6f827cd43e92685f194002d6b52a9408309cda1cec46fb7ca8489a95cbd2fd4","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"e0bfe601a9fdf6defe94ed62dc60ac71597566001a1f86e705c95e431a9c816d","impliedFormat":1},{"version":"a270a1a893d1aee5a3c1c8c276cd2778aa970a2741ee2ccf29cc3210d7da80f5","impliedFormat":1},{"version":"add0ce7b77ba5b308492fa68f77f24d1ed1d9148534bdf05ac17c30763fc1a79","impliedFormat":1},{"version":"8926594ee895917e90701d8cbb5fdf77fc238b266ac540f929c7253f8ad6233d","impliedFormat":1},{"version":"2f67911e4bf4e0717dc2ded248ce2d5e4398d945ee13889a6852c1233ea41508","impliedFormat":1},{"version":"d8430c275b0f59417ea8e173cfb888a4477b430ec35b595bf734f3ec7a7d729f","impliedFormat":1},{"version":"69364df1c776372d7df1fb46a6cb3a6bf7f55e700f533a104e3f9d70a32bec18","impliedFormat":1},{"version":"6042774c61ece4ba77b3bf375f15942eb054675b7957882a00c22c0e4fe5865c","impliedFormat":1},{"version":"5a3bd57ed7a9d9afef74c75f77fce79ba3c786401af9810cdf45907c4e93f30e","impliedFormat":1},{"version":"ed8763205f02fb65e84eff7432155258df7f93b7d938f01785cb447d043d53f3","impliedFormat":1},{"version":"30db853bb2e60170ba11e39ab48bacecb32d06d4def89eedf17e58ebab762a65","impliedFormat":1},{"version":"e27451b24234dfed45f6cf22112a04955183a99c42a2691fb4936d63cfe42761","impliedFormat":1},{"version":"2316301dd223d31962d917999acf8e543e0119c5d24ec984c9f22cb23247160c","impliedFormat":1},{"version":"58d65a2803c3b6629b0e18c8bf1bc883a686fcf0333230dd0151ab6e85b74307","impliedFormat":1},{"version":"e818471014c77c103330aee11f00a7a00b37b35500b53ea6f337aefacd6174c9","impliedFormat":1},{"version":"d4a5b1d2ff02c37643e18db302488cd64c342b00e2786e65caac4e12bda9219b","impliedFormat":1},{"version":"29f823cbe0166e10e7176a94afe609a24b9e5af3858628c541ff8ce1727023cd","impliedFormat":1},{"version":"453a75d9ffd3dcc78f735b57164b6e3c6d87c03c16fa292620bcf42e9ce42dfe","signature":"8c9a7f8eda732f15dcdc46d50432e05f2961f82fb196ee6577c3b8b859fc11dc"},{"version":"a8cc184ee589bd3806e9e2c5b113f66c5953a20502775adabbce54ec30de8052","impliedFormat":1},{"version":"a033992e14caa339d5b5ba48061035be198e008296b95bc3f0cdaa5c02a845c8","impliedFormat":1},{"version":"b9c8c2b3e7b665f0d8f07c46e4ee4ef586f4fa6e2a9b7e05b453737d7e144d3e","impliedFormat":1},{"version":"984c26e8864dc326bf6f7a72f89625b3facd86a901d406b7e54aca3d6ef9d674","impliedFormat":1},{"version":"9065f8bfa4e2bbbb38964d8f93a052965e432beb813c444db26a6494434482aa","impliedFormat":1},{"version":"ca6e767165251f4ec3fed240d95ebf19564a9ca99974adde254c9f73fc25d2bf","impliedFormat":1},{"version":"5c9b631fd684665b7ab77aadfae34060a03e049bf2b39166a4e3878a2fe978dc","impliedFormat":1},{"version":"4f8ab5f636fe50dee05fdaed4f4d7a68458edcaf65bc7c7e0764710a9738d435","impliedFormat":1},{"version":"304797c1a60c5f9d85cc55c1b21cdf6d327957cd61191dfc60357b4227b2a94b","impliedFormat":1},{"version":"1ab578c2a429a3c9cc09da99161712aca9730b56452bcf9d7d95c434a9ff2cc9","impliedFormat":1},{"version":"a9382cc4fe0533a57a86e32684d916899528dac08c03bae387a7afacde76cd4a","impliedFormat":1},{"version":"45dd008396b925f1d22bd7c9adbacce9cf66a929ddd4ffb80dc936863bffe103","impliedFormat":1},{"version":"2c01a3ba2a23b8a3a85e12de6e1c7347dfb6554da9e30b49bbb125f6fd217462","impliedFormat":1},{"version":"f19e3abbf04cb89295686f97190766a0b21d1a8191b86e52c63765cfd09b19ca","impliedFormat":1},{"version":"f5bfda545fc03ca1b3dae2cf4c44d06e74bc9865a6a038272ecc4de91dc78685","impliedFormat":1},{"version":"4f6a71f795afdbc9389eb2c8d7ea9f228d95b0d70dfff00a2cf357aecb26f394","impliedFormat":1},{"version":"a01c34217ba822ccd2dd0040822c1f615eeee8ea957efdcb62526152024d9dc6","impliedFormat":1},{"version":"38bf0f2ce09fcf3eba1db11181696a3ffc32a795974d67cef41ff756e08a5c2e","impliedFormat":1},{"version":"8d642e03c98875229acc78017ec09a7378e4db7dfbb2faebdcb9d09bc9a81055","impliedFormat":1},{"version":"89db4dba091e9b6a4ee3a406dbf8330ec0e04b516708070ceae6b408a164312f","impliedFormat":1},{"version":"8e1f1885b426c1b9c9d4b112ae314dde7b59c22b191fcef2f986ce4dee480ad4","impliedFormat":1},{"version":"8eae77ceea6dde2d39b69c9c020076f2f220461e4292b21c2f8aeb5119e48a9e","impliedFormat":1},{"version":"ab51c55519234bdd79cb5b1c1db44288eb6262fcfceacbf843bb1bcb1ac2011f","impliedFormat":1},{"version":"7e4f5fc545c608fdc45fb6305bf7299a9e10ad49a4bb9a2720b65c6fb53b273f","signature":"68eb811f4a340af43c9b9b0af05bf36c724384fcc5c8f846369662cee3d41845"},{"version":"6ff4c27ce1c30040730481cab949bf344938252c250111642ae5e12c51de8324","impliedFormat":1},{"version":"bdd14f07b4eca0b4b5203b85b8dbc4d084c749fa590bee5ea613e1641dcd3b29","impliedFormat":99},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","impliedFormat":1},{"version":"36eb5babc665b890786550d4a8cb20ef7105673a6d5551fbdd7012877bb26942","impliedFormat":1},{"version":"fec412ded391a7239ef58f455278154b62939370309c1fed322293d98c8796a6","impliedFormat":1},{"version":"e3498cf5e428e6c6b9e97bd88736f26d6cf147dedbfa5a8ad3ed8e05e059af8a","impliedFormat":1},{"version":"dba3f34531fd9b1b6e072928b6f885aa4d28dd6789cbd0e93563d43f4b62da53","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","impliedFormat":1},{"version":"2329d90062487e1eaca87b5e06abcbbeeecf80a82f65f949fd332cfcf824b87b","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"93c3e73824ad57f98fd23b39335dbdae2db0bd98199b0dc0b9ccc60bf3c5134a","impliedFormat":1},{"version":"a9ebb67d6bbead6044b43714b50dcb77b8f7541ffe803046fdec1714c1eba206","impliedFormat":1},{"version":"833e92c058d033cde3f29a6c7603f517001d1ddd8020bc94d2067a3bc69b2a8e","impliedFormat":1},{"version":"d8bc0c5487582c6d887c32c92d8b4ffb23310146fcb1d82adf4b15c77f57c4ac","impliedFormat":1},{"version":"8cb31102790372bebfd78dd56d6752913b0f3e2cefbeb08375acd9f5ba737155","impliedFormat":1},{"version":"56e0775830b68d13c3d7f4ec75df7d016db6b879ef9676affb5233a9a289c192","impliedFormat":99},{"version":"674a33f32b61b48c020697b749b39fb291fd7d0b5464464abfc174d35225049c","impliedFormat":1},{"version":"05f3164adf0c282f823dc41d2db74f89bdb12eed1206cb85765575bae8cbb47e","impliedFormat":1},{"version":"a4e9e0d92dcad2cb387a5f1bdffe621569052f2d80186e11973aa7080260d296","impliedFormat":1},{"version":"f6380cc36fc3efc70084d288d0a05d0a2e09da012ee3853f9d62431e7216f129","impliedFormat":1},{"version":"497c3e541b4acf6c5d5ba75b03569cfe5fe25c8a87e6c87f1af98da6a3e7b918","impliedFormat":1},{"version":"d9429b81edf2fb2abf1e81e9c2e92615f596ed3166673d9b69b84c369b15fdc0","impliedFormat":1},{"version":"7e22943ae4e474854ca0695ab750a8026f55bb94278331fda02a4fb42efce063","impliedFormat":1},{"version":"7da9ff3d9a7e62ddca6393a23e67296ab88f2fcb94ee5f7fb977fa8e478852ac","impliedFormat":1},{"version":"e1b45cc21ea200308cbc8abae2fb0cfd014cb5b0e1d1643bcc50afa5959b6d83","impliedFormat":1},{"version":"c9740b0ce7533ce6ba21a7d424e38d2736acdddeab2b1a814c00396e62cc2f10","impliedFormat":1},{"version":"b3c1f6a3fdbb04c6b244de6d5772ffdd9e962a2faea1440e410049c13e874b87","impliedFormat":1},{"version":"dcaa872d9b52b9409979170734bdfd38f846c32114d05b70640fd05140b171bb","impliedFormat":1},{"version":"6c434d20da381fcd2e8b924a3ec9b8653cf8bed8e0da648e91f4c984bd2a5a91","impliedFormat":1},{"version":"992419d044caf6b14946fa7b9463819ab2eeb7af7c04919cc2087ce354c92266","impliedFormat":1},{"version":"fa9815e9ce1330289a5c0192e2e91eb6178c0caa83c19fe0c6a9f67013fe795c","impliedFormat":1},{"version":"06384a1a73fcf4524952ecd0d6b63171c5d41dd23573907a91ef0a687ddb4a8c","impliedFormat":1},{"version":"34b1594ecf1c84bcc7a04d9f583afa6345a6fea27a52cf2685f802629219de45","impliedFormat":1},{"version":"d82c9ca830d7b94b7530a2c5819064d8255b93dfeddc5b2ebb8a09316f002c89","impliedFormat":1},{"version":"7e046b9634add57e512412a7881efbc14d44d1c65eadd35432412aa564537975","impliedFormat":1},{"version":"aac9079b9e2b5180036f27ab37cb3cf4fd19955be48ccc82eab3f092ee3d4026","impliedFormat":1},{"version":"3d9c38933bc69e0a885da20f019de441a3b5433ce041ba5b9d3a541db4b568cb","impliedFormat":1},{"version":"606aa2b74372221b0f79ca8ae3568629f444cc454aa59b032e4cb602308dec94","impliedFormat":1},{"version":"50474eaea72bfda85cc37ae6cd29f0556965c0849495d96c8c04c940ef3d2f44","impliedFormat":1},{"version":"b4874382f863cf7dc82b3d15aed1e1372ac3fede462065d5bfc8510c0d8f7b19","impliedFormat":1},{"version":"df10b4f781871afb72b2d648d497671190b16b679bf7533b744cc10b3c6bf7ea","impliedFormat":1},{"version":"1fdc28754c77e852c92087c789a1461aa6eed19c335dc92ce6b16a188e7ba305","impliedFormat":1},{"version":"a656dab1d502d4ddc845b66d8735c484bfebbf0b1eda5fb29729222675759884","impliedFormat":1},{"version":"465a79505258d251068dc0047a67a3605dd26e6b15e9ad2cec297442cbb58820","impliedFormat":1},{"version":"ddae22d9329db28ce3d80a2a53f99eaed66959c1c9cd719c9b744e5470579d2f","impliedFormat":1},{"version":"d0e25feadef054c6fc6a7f55ccc3b27b7216142106b9ff50f5e7b19d85c62ca7","impliedFormat":1},{"version":"111214009193320cacbae104e8281f6cb37788b52a6a84d259f9822c8c71f6ca","impliedFormat":1},{"version":"01c8e2c8984c96b9b48be20ee396bd3689a3a3e6add8d50fe8229a7d4e62ff45","impliedFormat":1},{"version":"a4a0800b592e533897b4967b00fb00f7cd48af9714d300767cc231271aa100af","impliedFormat":1},{"version":"20aa818c3e16e40586f2fa26327ea17242c8873fe3412a69ec68846017219314","impliedFormat":1},{"version":"f498532f53d54f831851990cb4bcd96063d73e302906fa07e2df24aa5935c7d1","impliedFormat":1},{"version":"5fd19dfde8de7a0b91df6a9bbdc44b648fd1f245cae9e8b8cf210d83ee06f106","impliedFormat":1},{"version":"3b8d6638c32e63ea0679eb26d1eb78534f4cc02c27b80f1c0a19f348774f5571","impliedFormat":1},{"version":"ce0da52e69bc3d82a7b5bc40da6baad08d3790de13ad35e89148a88055b46809","impliedFormat":1},{"version":"9e01233da81bfed887f8d9a70d1a26bf11b8ddff165806cc586c84980bf8fc24","impliedFormat":1},{"version":"214a6afbab8b285fc97eb3cece36cae65ea2fca3cbd0c017a96159b14050d202","impliedFormat":1},{"version":"14beeca2944b75b229c0549e0996dc4b7863e07257e0d359d63a7be49a6b86a4","impliedFormat":1},{"version":"f7bb9adb1daa749208b47d1313a46837e4d27687f85a3af7777fc1c9b3dc06b1","impliedFormat":1},{"version":"c549fe2f52101ffe47f58107c702af7cdcd42da8c80afd79f707d1c5d77d4b6e","impliedFormat":1},{"version":"3966ea9e1c1a5f6e636606785999734988e135541b79adc6b5d00abdc0f4bf05","impliedFormat":1},{"version":"0b60b69c957adb27f990fbc27ea4ac1064249400262d7c4c1b0a1687506b3406","impliedFormat":1},{"version":"12c26e5d1befc0ded725cee4c2316f276013e6f2eb545966562ae9a0c1931357","impliedFormat":1},{"version":"27b247363f1376c12310f73ebac6debcde009c0b95b65a8207e4fa90e132b30a","impliedFormat":1},{"version":"05bd302e2249da923048c09dc684d1d74cb205551a87f22fb8badc09ec532a08","impliedFormat":1},{"version":"fe930ec064571ab3b698b13bddf60a29abf9d2f36d51ab1ca0083b087b061f3a","impliedFormat":1},{"version":"6b85c4198e4b62b0056d55135ad95909adf1b95c9a86cdbed2c0f4cc1a902d53","impliedFormat":1},{"version":"c34b28160d8a9796cf030ceaf3f6ef1f1ce33e694420a9e64b016e190dcbca54","affectsGlobalScope":true,"impliedFormat":1},{"version":"59213bb49bf52fb38339b99ec2a9ab5541574be6ddf1857f31b238ff3b35c139","signature":"7c9c8e4ebccc52edd206a6e82e68450be7471106e1ce4dc834f3013764115d3d"},{"version":"be867cb41d66ba21e071293b1fa51adeb807fb9b7296330b11203f79a8d512ed","signature":"1978f814374dccc8b7adebef14d81bb29e3570e95122e7315f354b0e912b5c67"},"6e330339fdeaf61ab40f51a738e0abedcec0dcb972f944c7d5c40a5ed5f62942",{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"0ccdaa19852d25ecd84eec365c3bfa16e7859cadecf6e9ca6d0dbbbee439743f","affectsGlobalScope":true,"impliedFormat":1},{"version":"438b41419b1df9f1fbe33b5e1b18f5853432be205991d1b19f5b7f351675541e","affectsGlobalScope":true,"impliedFormat":1},{"version":"096116f8fedc1765d5bd6ef360c257b4a9048e5415054b3bf3c41b07f8951b0b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5e01375c9e124a83b52ee4b3244ed1a4d214a6cfb54ac73e164a823a4a7860a","affectsGlobalScope":true,"impliedFormat":1},{"version":"f90ae2bbce1505e67f2f6502392e318f5714bae82d2d969185c4a6cecc8af2fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b58e207b93a8f1c88bbf2a95ddc686ac83962b13830fe8ad3f404ffc7051fb4","affectsGlobalScope":true,"impliedFormat":1},{"version":"1fefabcb2b06736a66d2904074d56268753654805e829989a46a0161cd8412c5","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"c18a99f01eb788d849ad032b31cafd49de0b19e083fe775370834c5675d7df8e","affectsGlobalScope":true,"impliedFormat":1},{"version":"5247874c2a23b9a62d178ae84f2db6a1d54e6c9a2e7e057e178cc5eea13757fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"156a859e21ef3244d13afeeba4e49760a6afa035c149dda52f0c45ea8903b338","impliedFormat":1},{"version":"10ec5e82144dfac6f04fa5d1d6c11763b3e4dbbac6d99101427219ab3e2ae887","impliedFormat":1},{"version":"615754924717c0b1e293e083b83503c0a872717ad5aa60ed7f1a699eb1b4ea5c","impliedFormat":1},{"version":"074de5b2fdead0165a2757e3aaef20f27a6347b1c36adea27d51456795b37682","impliedFormat":1},{"version":"68834d631c8838c715f225509cfc3927913b9cc7a4870460b5b60c8dbdb99baf","impliedFormat":1},{"version":"24371e69a38fc33e268d4a8716dbcda430d6c2c414a99ff9669239c4b8f40dea","impliedFormat":1},{"version":"ccab02f3920fc75c01174c47fcf67882a11daf16baf9e81701d0a94636e94556","impliedFormat":1},{"version":"3e11fce78ad8c0e1d1db4ba5f0652285509be3acdd519529bc8fcef85f7dafd9","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"9c32412007b5662fd34a8eb04292fb5314ec370d7016d1c2fb8aa193c807fe22","impliedFormat":1},{"version":"7fd1b31fd35876b0aa650811c25ec2c97a3c6387e5473eb18004bed86cdd76b6","impliedFormat":1},{"version":"4d327f7d72ad0918275cea3eee49a6a8dc8114ae1d5b7f3f5d0774de75f7439a","impliedFormat":1},{"version":"6ebe8ebb8659aaa9d1acbf3710d7dae3e923e97610238b9511c25dc39023a166","impliedFormat":1},{"version":"e85d7f8068f6a26710bff0cc8c0fc5e47f71089c3780fbede05857331d2ddec9","impliedFormat":1},{"version":"7befaf0e76b5671be1d47b77fcc65f2b0aad91cc26529df1904f4a7c46d216e9","impliedFormat":1},{"version":"0a60a292b89ca7218b8616f78e5bbd1c96b87e048849469cccb4355e98af959a","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"9666f2f84b985b62400d2e5ab0adae9ff44de9b2a34803c2c5bd3c8325b17dc0","impliedFormat":1},{"version":"40cd35c95e9cf22cfa5bd84e96408b6fcbca55295f4ff822390abb11afbc3dca","impliedFormat":1},{"version":"b1616b8959bf557feb16369c6124a97a0e74ed6f49d1df73bb4b9ddf68acf3f3","impliedFormat":1},{"version":"5b03a034c72146b61573aab280f295b015b9168470f2df05f6080a2122f9b4df","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"249b9cab7f5d628b71308c7d9bb0a808b50b091e640ba3ed6e2d0516f4a8d91d","impliedFormat":1},{"version":"80aae6afc67faa5ac0b32b5b8bc8cc9f7fa299cff15cf09cc2e11fd28c6ae29e","impliedFormat":1},{"version":"f473cd2288991ff3221165dcf73cd5d24da30391f87e85b3dd4d0450c787a391","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"8aee8b6d4f9f62cf3776cda1305fb18763e2aade7e13cea5bbe699112df85214","impliedFormat":1},{"version":"c63b9ada8c72f95aac5db92aea07e5e87ec810353cdf63b2d78f49a58662cf6c","impliedFormat":1},{"version":"1cc2a09e1a61a5222d4174ab358a9f9de5e906afe79dbf7363d871a7edda3955","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"b64d4d1c5f877f9c666e98e833f0205edb9384acc46e98a1fef344f64d6aba44","impliedFormat":1},{"version":"adf27937dba6af9f08a68c5b1d3fce0ca7d4b960c57e6d6c844e7d1a8e53adae","impliedFormat":1},{"version":"12950411eeab8563b349cb7959543d92d8d02c289ed893d78499a19becb5a8cc","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"c9381908473a1c92cb8c516b184e75f4d226dad95c3a85a5af35f670064d9a2f","impliedFormat":1},{"version":"c3f5289820990ab66b70c7fb5b63cb674001009ff84b13de40619619a9c8175f","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3275d55fac10b799c9546804126239baf020d220136163f763b55a74e50e750","affectsGlobalScope":true,"impliedFormat":1},{"version":"fa68a0a3b7cb32c00e39ee3cd31f8f15b80cac97dce51b6ee7fc14a1e8deb30b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1cf059eaf468efcc649f8cf6075d3cb98e9a35a0fe9c44419ec3d2f5428d7123","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c36e755bced82df7fb6ce8169265d0a7bb046ab4e2cb6d0da0cb72b22033e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"7a93de4ff8a63bafe62ba86b89af1df0ccb5e40bb85b0c67d6bbcfdcf96bf3d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"90e85f9bc549dfe2b5749b45fe734144e96cd5d04b38eae244028794e142a77e","affectsGlobalScope":true,"impliedFormat":1},{"version":"e0a5deeb610b2a50a6350bd23df6490036a1773a8a71d70f2f9549ab009e67ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"3fad5618174d74a34ee006406d4eb37e8d07dd62eb1315dbf52f48d31a337547","impliedFormat":1},{"version":"7e49f52a159435fc8df4de9dc377ef5860732ca2dc9efec1640531d3cf5da7a3","impliedFormat":1},{"version":"dd4bde4bdc2e5394aed6855e98cf135dfdf5dd6468cad842e03116d31bbcc9bc","impliedFormat":1},{"version":"4d4e879009a84a47c05350b8dca823036ba3a29a3038efed1be76c9f81e45edf","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b50a819485ffe0d237bf0d131e92178d14d11e2aa873d73615a9ec578b341f5","impliedFormat":1},{"version":"9ba13b47cb450a438e3076c4a3f6afb9dc85e17eae50f26d4b2d72c0688c9251","impliedFormat":1},{"version":"b64cd4401633ea4ecadfd700ddc8323a13b63b106ac7127c1d2726f32424622c","impliedFormat":1},{"version":"37c6e5fe5715814412b43cc9b50b24c67a63c4e04e753e0d1305970d65417a60","impliedFormat":1},{"version":"1d024184fb57c58c5c91823f9d10b4915a4867b7934e89115fd0d861a9df27c8","impliedFormat":1},{"version":"ee0e4946247f842c6dd483cbb60a5e6b484fee07996e3a7bc7343dfb68a04c5d","impliedFormat":1},{"version":"ef051f42b7e0ef5ca04552f54c4552eac84099d64b6c5ad0ef4033574b6035b8","impliedFormat":1},{"version":"853a43154f1d01b0173d9cbd74063507ece57170bad7a3b68f3fa1229ad0a92f","impliedFormat":1},{"version":"56231e3c39a031bfb0afb797690b20ed4537670c93c0318b72d5180833d98b72","impliedFormat":1},{"version":"5cc7c39031bfd8b00ad58f32143d59eb6ffc24f5d41a20931269011dccd36c5e","impliedFormat":1},{"version":"12d602a8fe4c2f2ba4f7804f5eda8ba07e0c83bf5cf0cda8baffa2e9967bfb77","affectsGlobalScope":true,"impliedFormat":1},{"version":"a856ab781967b62b288dfd85b860bef0e62f005ed4b1b8fa25c53ce17856acaf","impliedFormat":1},{"version":"cc25940cfb27aa538e60d465f98bb5068d4d7d33131861ace43f04fe6947d68f","impliedFormat":1},{"version":"8db46b61a690f15b245cf16270db044dc047dce9f93b103a59f50262f677ea1f","impliedFormat":1},{"version":"01ff95aa1443e3f7248974e5a771f513cb2ac158c8898f470a1792f817bee497","impliedFormat":1},{"version":"757227c8b345c57d76f7f0e3bbad7a91ffca23f1b2547cbed9e10025816c9cb7","impliedFormat":1},{"version":"959d0327c96dd9bb5521f3ed6af0c435996504cc8dd46baa8e12cb3b3518cef1","impliedFormat":1},{"version":"e1c1a0b4d1ead0de9eca52203aeb1f771f21e6238d6fcd15aa56ac2a02f1b7bf","impliedFormat":1},{"version":"101f482fd48cb4c7c0468dcc6d62c843d842977aea6235644b1edd05e81fbf22","impliedFormat":1},{"version":"266bee0a41e9c3ba335583e21e9277ae03822402cf5e8e1d99f5196853613b98","affectsGlobalScope":true,"impliedFormat":1},{"version":"386606f8a297988535cb1401959041cfa7f59d54b8a9ed09738e65c98684c976","impliedFormat":1},{"version":"3ef397f12387eff17f550bc484ea7c27d21d43816bbe609d495107f44b97e933","impliedFormat":1},{"version":"1023282e2ba810bc07905d3668349fbd37a26411f0c8f94a70ef3c05fe523fcf","impliedFormat":1},{"version":"b214ebcf76c51b115453f69729ee8aa7b7f8eccdae2a922b568a45c2d7ff52f7","impliedFormat":1},{"version":"429c9cdfa7d126255779efd7e6d9057ced2d69c81859bbab32073bad52e9ba76","impliedFormat":1},{"version":"e236b5eba291f51bdf32c231673e6cab81b5410850e61f51a7a524dddadc0f95","impliedFormat":1},{"version":"ce8653341224f8b45ff46d2a06f2cacb96f841f768a886c9d8dd8ec0878b11bd","affectsGlobalScope":true,"impliedFormat":1},{"version":"7f2c62938251b45715fd2a9887060ec4fbc8724727029d1cbce373747252bdd7","impliedFormat":1},{"version":"e3ace08b6bbd84655d41e244677b474fd995923ffef7149ddb68af8848b60b05","impliedFormat":1},{"version":"132580b0e86c48fab152bab850fc57a4b74fe915c8958d2ccb052b809a44b61c","impliedFormat":1},{"version":"90a278f5fab7557e69e97056c0841adf269c42697194f0bd5c5e69152637d4b3","impliedFormat":1},{"version":"69c9a5a9392e8564bd81116e1ed93b13205201fb44cb35a7fde8c9f9e21c4b23","impliedFormat":1},{"version":"5f8fc37f8434691ffac1bfd8fc2634647da2c0e84253ab5d2dd19a7718915b35","impliedFormat":1},{"version":"5981c2340fd8b076cae8efbae818d42c11ffc615994cb060b1cd390795f1be2b","impliedFormat":1},{"version":"f263485c9ca90df9fe7bb3a906db9701997dc6cae86ace1f8106ac8d2f7f677b","impliedFormat":1},{"version":"1edcf2f36fc332615846bde6dcc71a8fe526065505bc5e3dcfd65a14becdf698","affectsGlobalScope":true,"impliedFormat":1},{"version":"0250da3eb85c99624f974e77ef355cdf86f43980251bc371475c2b397ba55bcd","impliedFormat":1},{"version":"f1c93e046fb3d9b7f8249629f4b63dc068dd839b824dd0aa39a5e68476dc9420","impliedFormat":1},{"version":"3d3a5f27ffbc06c885dd4d5f9ee20de61faf877fe2c3a7051c4825903d9a7fdc","impliedFormat":1},{"version":"12806f9f085598ef930edaf2467a5fa1789a878fba077cd27e85dc5851e11834","impliedFormat":1},{"version":"1dbca38aa4b0db1f4f9e6edacc2780af7e028b733d2a98dd3598cd235ca0c97d","impliedFormat":1},{"version":"a43fe41c33d0a192a0ecaf9b92e87bef3709c9972e6d53c42c49251ccb962d69","impliedFormat":1},{"version":"a177959203c017fad3ecc4f3d96c8757a840957a4959a3ae00dab9d35961ca6c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc727ccf9b36e257ff982ea0badeffbfc2c151802f741bddff00c6af3b784cf","impliedFormat":1},{"version":"19143c930aef7ccf248549f3e78992f2f1049118ec5d4622e95025057d8e392b","impliedFormat":1},{"version":"4844a4c9b4b1e812b257676ed8a80b3f3be0e29bf05e742cc2ea9c3c6865e6c6","impliedFormat":1},{"version":"064878a60367e0407c42fb7ba02a2ea4d83257357dc20088e549bd4d89433e9c","impliedFormat":1},{"version":"cca8917838a876e2d7016c9b6af57cbf11fdf903c5fdd8e613fa31840b2957bf","impliedFormat":1},{"version":"d91ae55e4282c22b9c21bc26bd3ef637d3fe132507b10529ae68bf76f5de785b","impliedFormat":1},{"version":"b484ec11ba00e3a2235562a41898d55372ccabe607986c6fa4f4aba72093749f","impliedFormat":1},{"version":"7e8a671604329e178bb479c8f387715ebd40a091fc4a7552a0a75c2f3a21c65c","impliedFormat":1},{"version":"41ef7992c555671a8fe54db302788adefa191ded810a50329b79d20a6772d14c","impliedFormat":1},{"version":"041a7781b9127ab568d2cdcce62c58fdea7c7407f40b8c50045d7866a2727130","impliedFormat":1},{"version":"4c5e90ddbcd177ad3f2ffc909ae217c87820f1e968f6959e4b6ba38a8cec935e","impliedFormat":1},{"version":"b70dd9a44e1ac42f030bb12e7d79117eac7cb74170d72d381a1e7913320af23a","impliedFormat":1},{"version":"55cdbeebe76a1fa18bbd7e7bf73350a2173926bd3085bb050cf5a5397025ee4e","impliedFormat":1}],"root":[142,166,[236,238]],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"module":1,"outDir":"./","skipLibCheck":true,"strict":true,"target":7},"referencedMap":[[186,1],[185,2],[167,3],[195,4],[198,5],[204,6],[207,7],[228,8],[206,9],[187,10],[188,11],[189,12],[192,10],[190,10],[191,10],[229,13],[194,4],[193,10],[230,14],[197,5],[196,10],[234,15],[231,16],[201,17],[203,18],[200,19],[202,20],[199,17],[232,21],[205,4],[233,22],[218,23],[220,24],[222,25],[221,26],[215,27],[208,28],[227,29],[224,30],[226,31],[211,32],[213,33],[210,30],[214,10],[225,34],[212,10],[223,10],[209,10],[216,35],[217,10],[219,36],[168,10],[61,10],[301,37],[302,37],[303,38],[241,39],[304,40],[305,41],[306,42],[239,10],[307,43],[308,44],[309,45],[310,46],[311,47],[312,48],[313,48],[314,49],[315,50],[316,51],[317,52],[242,10],[240,10],[318,53],[319,54],[320,55],[360,56],[321,57],[322,58],[323,57],[324,59],[325,60],[326,61],[327,62],[328,62],[329,62],[330,63],[331,64],[332,65],[333,66],[334,67],[335,68],[336,68],[337,69],[338,10],[339,10],[340,70],[341,71],[342,70],[343,72],[344,73],[345,74],[346,75],[347,76],[348,77],[349,78],[350,79],[351,80],[352,81],[353,82],[354,83],[355,84],[356,85],[357,86],[243,57],[244,10],[245,87],[246,88],[247,10],[248,89],[249,10],[292,90],[293,91],[294,92],[295,92],[296,93],[297,10],[298,40],[299,94],[300,91],[358,95],[359,96],[235,97],[184,10],[156,98],[157,10],[159,99],[155,100],[158,101],[152,102],[165,103],[163,104],[162,104],[164,104],[153,105],[154,106],[160,107],[150,108],[143,10],[144,10],[148,109],[149,110],[145,10],[146,10],[151,10],[161,10],[147,10],[59,10],[60,10],[10,10],[12,10],[11,10],[2,10],[13,10],[14,10],[15,10],[16,10],[17,10],[18,10],[19,10],[20,10],[3,10],[21,10],[22,10],[4,10],[23,10],[27,10],[24,10],[25,10],[26,10],[28,10],[29,10],[30,10],[5,10],[31,10],[32,10],[33,10],[34,10],[6,10],[38,10],[35,10],[36,10],[37,10],[39,10],[7,10],[40,10],[45,10],[46,10],[41,10],[42,10],[43,10],[44,10],[8,10],[50,10],[47,10],[48,10],[49,10],[51,10],[9,10],[52,10],[53,10],[54,10],[56,10],[55,10],[1,10],[57,10],[58,10],[268,111],[280,112],[265,113],[281,114],[290,115],[256,116],[257,117],[255,118],[289,119],[284,120],[288,121],[259,122],[277,123],[258,124],[287,125],[253,126],[254,120],[260,127],[261,10],[267,128],[264,127],[251,129],[291,130],[282,131],[271,132],[270,127],[272,133],[275,134],[269,135],[273,136],[285,119],[262,137],[263,138],[276,139],[252,114],[279,140],[278,127],[266,138],[274,141],[283,10],[250,10],[286,142],[141,143],[171,144],[173,145],[180,146],[175,10],[176,10],[174,147],[177,148],[169,10],[170,10],[181,149],[172,150],[178,10],[179,151],[135,152],[139,153],[136,153],[132,152],[140,154],[137,155],[182,143],[138,153],[133,156],[134,157],[128,158],[72,159],[74,160],[127,10],[73,161],[131,162],[130,163],[129,164],[65,10],[75,159],[76,10],[67,165],[71,166],[66,10],[68,167],[69,168],[70,10],[183,169],[77,170],[78,170],[79,170],[80,170],[81,170],[82,170],[83,170],[84,170],[85,170],[86,170],[87,170],[88,170],[89,170],[91,170],[90,170],[92,170],[93,170],[94,170],[95,170],[126,171],[96,170],[97,170],[98,170],[99,170],[100,170],[101,170],[102,170],[103,170],[104,170],[105,170],[106,170],[107,170],[108,170],[110,170],[109,170],[111,170],[112,170],[113,170],[114,170],[115,170],[116,170],[117,170],[118,170],[119,170],[120,170],[121,170],[122,170],[125,170],[123,170],[124,170],[64,172],[62,3],[63,173],[142,174],[238,175],[236,176],[166,177],[237,178]],"latestChangedDtsFile":"./src/index.d.ts","version":"5.9.3"}
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agentapplicationprotocol/server",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "AAP server",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"!dist/**/*.test.js",
|
|
9
|
+
"!dist/**/*.test.d.ts"
|
|
10
|
+
],
|
|
11
|
+
"main": "dist/index.js",
|
|
12
|
+
"types": "dist/index.d.ts",
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"ai": "^6.0.141",
|
|
15
|
+
"hono": "^4.12.8",
|
|
16
|
+
"zod": "^4.3.6",
|
|
17
|
+
"@agentapplicationprotocol/core": "0.4.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@ai-sdk/openai": "^3.0.48",
|
|
21
|
+
"@hono/node-server": "^1.19.12",
|
|
22
|
+
"tsx": "^4.21.0"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsc",
|
|
26
|
+
"test": "vitest run",
|
|
27
|
+
"dev": "tsc --watch",
|
|
28
|
+
"example:basic": "tsx src/examples/basic/index.ts",
|
|
29
|
+
"example:compact-history": "tsx src/examples/compact-history/index.ts"
|
|
30
|
+
}
|
|
31
|
+
}
|