@hopper-agent/providers 0.1.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 +179 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/src/anthropic.d.ts +21 -0
- package/dist/src/anthropic.d.ts.map +1 -0
- package/dist/src/anthropic.js +237 -0
- package/dist/src/anthropic.js.map +1 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +4 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/openai.d.ts +21 -0
- package/dist/src/openai.d.ts.map +1 -0
- package/dist/src/openai.js +245 -0
- package/dist/src/openai.js.map +1 -0
- package/dist/src/provider.d.ts +123 -0
- package/dist/src/provider.d.ts.map +1 -0
- package/dist/src/provider.js +9 -0
- package/dist/src/provider.js.map +1 -0
- package/package.json +33 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
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
|
+
revisions are patently meant to be an adaptation, but does not
|
|
43
|
+
include a work that is merely a copy of the Work except a Derivative
|
|
44
|
+
Work.
|
|
45
|
+
|
|
46
|
+
"Contribution" shall mean any work of authorship, including
|
|
47
|
+
the original version of the Work and any modifications or additions
|
|
48
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
49
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
50
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
51
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
52
|
+
means any form of electronic, verbal, or written communication sent
|
|
53
|
+
to the Licensor or its representatives, including but not limited to
|
|
54
|
+
communication on electronic mailing lists, source code control systems,
|
|
55
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
56
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
57
|
+
excluding communication that is conspicuously marked or otherwise
|
|
58
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
59
|
+
|
|
60
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
61
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
62
|
+
subsequently incorporated within the Work.
|
|
63
|
+
|
|
64
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
65
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
66
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
67
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
68
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
69
|
+
Work and such Derivative Works in Source or Object form.
|
|
70
|
+
|
|
71
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
72
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
73
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
74
|
+
(except as stated in this section) patent license to make, have made,
|
|
75
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
76
|
+
where such license applies only to those patent claims licensable
|
|
77
|
+
by such Contributor that are necessarily infringed by their
|
|
78
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
79
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
80
|
+
institute patent litigation against any entity (including a
|
|
81
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
82
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
83
|
+
or contributory patent infringement, then any patent licenses
|
|
84
|
+
granted to You under this License for that Work shall terminate
|
|
85
|
+
as of the date such litigation is filed.
|
|
86
|
+
|
|
87
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
88
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
89
|
+
modifications, and in Source or Object form, provided that You
|
|
90
|
+
meet the following conditions:
|
|
91
|
+
|
|
92
|
+
(a) You must give any other recipients of the Work or
|
|
93
|
+
Derivative Works a copy of this License; and
|
|
94
|
+
|
|
95
|
+
(b) You must cause any modified files to carry prominent notices
|
|
96
|
+
stating that You changed the files; and
|
|
97
|
+
|
|
98
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
99
|
+
that You distribute, all copyright, patent, trademark, and
|
|
100
|
+
attribution notices from the Source form of the Work,
|
|
101
|
+
excluding those notices that do not pertain to any part of
|
|
102
|
+
the Derivative Works; and
|
|
103
|
+
|
|
104
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
105
|
+
distribution, then any Derivative Works that You distribute must
|
|
106
|
+
include a readable copy of the attribution notices contained
|
|
107
|
+
within such NOTICE file, excluding any notices that do not
|
|
108
|
+
pertain to any part of the Derivative Works, in at least one
|
|
109
|
+
of the following places: within a NOTICE text file distributed
|
|
110
|
+
as part of the Derivative Works; within the Source form or
|
|
111
|
+
documentation, if provided along with the Derivative Works; or,
|
|
112
|
+
within a display generated by the Derivative Works, if and
|
|
113
|
+
wherever such third-party notices normally appear. The contents
|
|
114
|
+
of the NOTICE file are for informational purposes only and
|
|
115
|
+
do not modify the License. You may add Your own attribution
|
|
116
|
+
notices within Derivative Works that You distribute, alongside
|
|
117
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
118
|
+
that such additional attribution notices cannot be construed
|
|
119
|
+
as modifying the License.
|
|
120
|
+
|
|
121
|
+
You may add Your own copyright statement to Your modifications and
|
|
122
|
+
may provide additional or different license terms and conditions
|
|
123
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
124
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
125
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
126
|
+
the conditions stated in this License.
|
|
127
|
+
|
|
128
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
129
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
130
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
131
|
+
this License, without any additional terms or conditions.
|
|
132
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
133
|
+
the terms of any separate license agreement you may have executed
|
|
134
|
+
with Licensor regarding such Contributions.
|
|
135
|
+
|
|
136
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
137
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
138
|
+
except as required for reasonable and customary use in describing the
|
|
139
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
140
|
+
|
|
141
|
+
7. Limitation of Liability. Unless required by applicable law or
|
|
142
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
143
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
144
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
145
|
+
implied, including, without limitation, any warranties or conditions
|
|
146
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
147
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
148
|
+
appropriateness of using or redistributing the Work and assume any
|
|
149
|
+
risks associated with Your exercise of permissions under this License.
|
|
150
|
+
|
|
151
|
+
8. Governing Law. This License shall be governed by the laws of the
|
|
152
|
+
State of New York, USA, excluding its choice of law rules.
|
|
153
|
+
|
|
154
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
155
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
156
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
157
|
+
or other liability obligations and/or rights consistent with this
|
|
158
|
+
License. However, in accepting such obligations, You may act only
|
|
159
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
160
|
+
of any other Contributor, and You agree to indemnify, defend, and
|
|
161
|
+
hold each Contributor harmless for any liability incurred by, or
|
|
162
|
+
claims asserted against, such Contributor by reason of your
|
|
163
|
+
exercising any rights or permissions given by this License.
|
|
164
|
+
|
|
165
|
+
END OF TERMS AND CONDITIONS
|
|
166
|
+
|
|
167
|
+
Copyright 2025 hopper-agent contributors
|
|
168
|
+
|
|
169
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
170
|
+
you may not use this file except in compliance with the License.
|
|
171
|
+
You may obtain a copy of the License at
|
|
172
|
+
|
|
173
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
174
|
+
|
|
175
|
+
Unless required by applicable law or agreed to in writing, software
|
|
176
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
177
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
178
|
+
See the License for the specific language governing permissions and
|
|
179
|
+
limitations under the License.
|
|
@@ -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.dom.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.scripthost.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.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.full.d.ts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.mts","../../../node_modules/.pnpm/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.19.17/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/internal/types.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/internal/headers.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/internal/shim-types.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/core/streaming.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/core/error.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/internal/parse.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/core/pagination.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/internal/uploads.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/internal/to-file.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/core/uploads.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/resources/shared.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/core/resource.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/error.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/resources/messages.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/lib/messagestream.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/lib/betamessagestream.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/resources/completions.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/resources/models.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/resources/index.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/client.d.mts","../../../node_modules/.pnpm/@anthropic-ai+sdk@0.50.4/node_modules/@anthropic-ai/sdk/index.d.mts","../src/provider.ts","../src/anthropic.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/_shims/manual-types.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/_shims/auto/types.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/streaming.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/error.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/_shims/multipartbody.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/uploads.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/core.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/_shims/index.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/pagination.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/shared.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/batches.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/chat/completions/messages.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/chat/completions/completions.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/completions.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/embeddings.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/files.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/images.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/models.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/moderations.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/audio/speech.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/audio/transcriptions.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/audio/translations.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/audio/audio.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/beta/threads/messages.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/beta/threads/runs/steps.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/beta/threads/runs/runs.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/lib/eventstream.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/lib/assistantstream.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/beta/threads/threads.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/beta/assistants.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/chat/completions.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/lib/abstractchatcompletionrunner.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/lib/chatcompletionstream.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/lib/responsesparser.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/responses/input-items.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/lib/responses/eventtypes.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/lib/responses/responsestream.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/responses/responses.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/lib/parser.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/lib/chatcompletionstreamingrunner.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/lib/jsonschema.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/lib/runnablefunction.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/lib/chatcompletionrunner.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/beta/chat/completions.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/beta/chat/chat.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/beta/realtime/sessions.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/beta/realtime/transcription-sessions.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/beta/realtime/realtime.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/beta/beta.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/containers/files/content.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/containers/files/files.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/containers/containers.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/graders/grader-models.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/evals/runs/output-items.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/evals/runs/runs.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/evals/evals.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/methods.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/alpha/graders.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/alpha/alpha.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/checkpoints/permissions.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/jobs/jobs.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/fine-tuning.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/graders/graders.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/uploads/parts.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/uploads/uploads.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/vector-stores/files.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/vector-stores/file-batches.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/vector-stores/vector-stores.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/index.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resource.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/chat/chat.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/chat/completions/index.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/chat/index.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/resources/index.d.ts","../../../node_modules/.pnpm/openai@4.104.0_ws@8.20.0_zod@3.25.76/node_modules/openai/index.d.mts","../src/openai.ts","../src/index.ts","../../../node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/index.d.ts","../../../node_modules/.pnpm/@types+json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts","../../../node_modules/.pnpm/@types+eslint@9.6.1/node_modules/@types/eslint/use-at-your-own-risk.d.ts","../../../node_modules/.pnpm/@types+eslint@9.6.1/node_modules/@types/eslint/index.d.ts","../../../node_modules/.pnpm/@types+eslint__js@8.42.3/node_modules/@types/eslint__js/index.d.ts"],"fileIdsList":[[64,72,84,101,102,170,171,174,175,176,178,179,182,193,197,198,199,200],[72,84,101,102,170,177,201],[72,84,101,102],[72,84,101,102,174,177,178,201],[72,84,101,102,201],[72,84,101,102,172],[72,84,101,102,180,181],[72,84,101,102,176],[72,84,101,102,176,178,179,182,201],[72,84,101,102,186],[72,84,101,102,174,179,201],[64,72,84,101,102,170,171,173],[64,72,84,101,102],[72,84,101,102,169],[64,72,84,101,102,174,201],[72,84,101,102,174,201],[72,84,101,102,172,174,189,196],[72,84,101,102,172,174,189,191],[72,84,101,102,184,185,196],[72,84,101,102,174,178,179,184,187,196,197],[72,84,101,102,173,174,178,184,193,194,195,196,197],[72,84,101,102,174,178,179,184,197],[72,84,101,102,173,174,178,184,193,197,198],[72,84,101,102,183,193,197,198,199],[72,84,101,102,190],[72,84,101,102,174,178,179,183,184,187,193],[72,84,101,102,188,193],[72,84,101,102,173,174,178,184,188,192,193],[72,84,101,102,284,285,286],[72,84,101,102,287],[72,81,82,84,101,102],[72,83,84,101,102],[84,101,102],[72,84,89,101,102,119],[72,84,85,90,95,101,102,104,116,127],[72,84,85,86,95,101,102,104],[67,68,69,72,84,101,102],[72,84,87,101,102,128],[72,84,88,89,96,101,102,105],[72,84,89,101,102,116,124],[72,84,90,92,95,101,102,104],[72,83,84,91,101,102],[72,84,92,93,101,102],[72,84,94,95,101,102],[72,83,84,95,101,102],[72,84,95,96,97,101,102,116,127],[72,84,95,96,97,101,102,111,116,119],[72,84,92,95,98,101,102,104,116,127,169],[72,84,95,96,98,99,101,102,104,116,124,127],[72,84,98,100,101,102,116,124,127],[70,71,72,73,74,75,76,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,126,127,128,129,130,131,132,133],[72,84,95,101,102],[72,84,101,102,103,127],[72,84,92,95,101,102,104,116],[72,84,101,102,105],[72,84,101,102,106],[72,83,84,101,102,107],[72,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,126,127,128,129,130,131,132,133],[72,84,101,102,109],[72,84,101,102,110],[72,84,95,101,102,111,112],[72,84,101,102,111,113,128,130],[72,84,96,101,102],[72,84,95,101,102,116,117,119],[72,84,101,102,118,119],[72,84,101,102,116,117],[72,84,101,102,119],[72,84,101,102,120],[72,81,84,101,102,116,121,127],[72,84,95,101,102,122,123],[72,84,101,102,122,123],[72,84,89,101,102,104,116,124],[72,84,101,102,125],[72,84,101,102,104,126],[72,84,98,101,102,110,127],[72,84,89,101,102,128],[72,84,101,102,116,129],[72,84,101,102,103,130],[72,84,101,102,131],[72,84,95,97,101,102,107,116,119,127,129,130,132,169],[72,84,101,102,116,133],[72,84,101,102,127,141,145],[72,84,101,102,116,127,141],[72,84,101,102,136],[72,84,101,102,124,127,138,141],[72,84,101,102,104,124],[72,84,101,102,134],[72,84,101,102,134,136],[72,84,101,102,104,127,138,141],[65,66,72,84,95,101,102,116,127,137,140],[72,84,101,102,141,148],[65,72,84,101,102,139],[72,84,101,102,141,162,163],[72,84,101,102,119,127,134,137,141],[72,84,101,102,134,162],[72,84,101,102,134,135,136],[72,84,101,102,141],[72,84,101,102,135,136,137,138,139,140,141,142,143,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,163,164,165,166,167,168],[72,84,101,102,141,156],[72,84,101,102,141,148,149],[72,84,101,102,139,141,149,150],[72,84,101,102,140],[65,72,84,101,102,136,141],[72,84,101,102,141,145,149,150],[72,84,101,102,145],[72,84,101,102,127,139,141,144],[65,72,84,101,102,138,141,148],[72,84,101,102,116],[72,84,101,102,132,134,136,141,162],[72,84,101,102,205,206,211],[72,84,101,102,207,208,210,212],[72,84,101,102,211],[72,84,101,102,208,210,211,212,213,215,217,218,219,220,221,222,223,227,242,253,256,260,268,269,271,274,277,280],[72,84,101,102,211,218,231,235,244,246,247,248,275],[72,84,101,102,211,212,228,229,230,231,233,234],[72,84,101,102,235,236,243,246,275],[72,84,101,102,211,212,217,236,248,275],[72,84,101,102,212,235,236,237,243,246,275],[72,84,101,102,208],[72,84,101,102,214,235,242,248],[72,84,101,102,242],[72,84,101,102,211,231,238,240,242,275],[72,84,101,102,235,242,243],[72,84,101,102,244,245,247],[72,84,101,102,275],[72,84,101,102,224,225,226,276],[72,84,101,102,211,212,276],[72,84,101,102,207,211,225,227,276],[72,84,101,102,211,225,227,276],[72,84,101,102,211,213,214,215,276],[72,84,101,102,211,213,214,228,229,230,232,233,276],[72,84,101,102,233,234,249,252,276],[72,84,101,102,248,276],[72,84,101,102,211,235,236,237,243,244,246,247,276],[72,84,101,102,214,250,251,252,276],[72,84,101,102,211,276],[72,84,101,102,211,213,214,234,276],[72,84,101,102,207,211,213,214,228,229,230,232,233,234,276],[72,84,101,102,211,213,214,229,276],[72,84,101,102,207,211,214,228,230,232,233,234,276],[72,84,101,102,214,217,276],[72,84,101,102,217],[72,84,101,102,207,211,213,214,216,217,218,276],[72,84,101,102,216,217],[72,84,101,102,211,213,217,276],[72,84,101,102,277,278],[72,84,101,102,207,211,217,218,276],[72,84,101,102,211,213,255,276],[72,84,101,102,211,213,254,276],[72,84,101,102,211,213,214,242,257,259,276],[72,84,101,102,211,213,259,276],[72,84,101,102,211,213,214,242,258,276],[72,84,101,102,211,212,213,276],[72,84,101,102,262,276],[72,84,101,102,211,257,276],[72,84,101,102,264,276],[72,84,101,102,211,213,276],[72,84,101,102,261,263,265,267,276],[72,84,101,102,211,213,261,266,276],[72,84,101,102,257,276],[72,84,101,102,242,276],[72,84,101,102,214,215,218,219,220,221,222,223,227,242,253,256,260,268,269,271,274,279],[72,84,101,102,211,213,242,276],[72,84,101,102,207,211,213,214,238,239,241,242,276],[72,84,101,102,211,220,270,276],[72,84,101,102,211,213,272,274,276],[72,84,101,102,211,213,274,276],[72,84,101,102,211,213,214,272,273,276],[72,84,101,102,212],[72,84,101,102,209,211,212],[72,84,101,102,202,203],[72,84,101,102,203,204,282],[72,84,101,102,203,281]],"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":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7a3c8b952931daebdfc7a2897c53c0a1c73624593fa070e46bd537e64dcd20a","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","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":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"3cbad9a1ba4453443026ed38e4b8be018abb26565fa7c944376463ad9df07c41","impliedFormat":1},{"version":"86d4ff8ba66b5ea1df375fe6092d2b167682ccd5dd0d9b003a7d30d95a0cda32","impliedFormat":99},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"58647d85d0f722a1ce9de50955df60a7489f0593bf1a7015521efe901c06d770","impliedFormat":1},{"version":"6b4e081d55ac24fc8a4631d5dd77fe249fa25900abd7d046abb87d90e3b45645","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6f137d651076822d4fe884287e68fd61785a0d3d1fdb250a5059b691fa897db","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"80523c00b8544a2000ae0143e4a90a00b47f99823eb7926c1e03c494216fc363","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"746911b62b329587939560deb5c036aca48aece03147b021fa680223255d5183","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2b55d426ff2b9087485e52ac4bc7cfafe1dc420fc76dad926cd46526567c501a","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"358765d5ea8afd285d4fd1532e78b88273f18cb3f87403a9b16fef61ac9fdcfe","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"f13b3a1249b976d047b9506a95e8f70c016670ddae256583b7a097e14ec1f041","impliedFormat":99},{"version":"014ba72e2add59d6d2d2e82166647982c824639e2902ccd7b3103cf720a0cb65","impliedFormat":99},{"version":"0932ab32b43893342fe9ab0989e1edf55bb7d5d391eacea1e7098bdf7aa60539","impliedFormat":99},{"version":"499b85df8e9141de47a8d76961fba4fbd96c17af0883a3ee5b9cba7eb0f26a5f","impliedFormat":99},{"version":"81bd63569f196167950a25641b9f6cbb461cdd2d84a511c922dc7c1046aa1dab","impliedFormat":99},{"version":"671ccab2e6a253d2516c0e4699b3077fc30cdb70b4436d8c79d76c91266a1a94","impliedFormat":99},{"version":"9b40cdceea5bb43a6e998cc6f8d47480741de5f336d9147653a5d9004175f6c1","impliedFormat":99},{"version":"e760f7860d08e9d42b6ecd7dd341602fbc0c13d60eb30beaf1153f1c7c44d66d","impliedFormat":99},{"version":"fb04e1ca667399e7302c033656cc285e6c1cff9c29f264cf229dd25e3962a762","impliedFormat":99},{"version":"e075c7b9fcd1b3ccbdb40d8421077adeea0e94f331c233c0947586b0bc98f8de","impliedFormat":99},{"version":"410e798cfb0d71e54d49284d16c7672db89720d017440abae05d547e9351e1cd","impliedFormat":99},{"version":"5ad576e13f58a0a2b5d4818dd13c16ec75b43025a14a89a7f09db3fe56c03d30","impliedFormat":99},{"version":"5668033966c8247576fc316629df131d6175d24ccf22940324c19c159671e1c1","impliedFormat":99},{"version":"c2f4c022fd9ba0d424d9a25e34748aab8417b71a655ab65e528a3b00ed90ce6d","impliedFormat":99},{"version":"de542f29565d1fbbf56a8569659f2ed61327027f1b78eb83e89d588f692b75f9","impliedFormat":99},{"version":"2484f21803a2f6d8e34230c1c4354288da5d842182d7102a49a004c819c4b8b3","impliedFormat":99},{"version":"cd8a4297d0ab56dc571dadd2845e558c9d979fe1e120a0dec537935bc8a36dd2","impliedFormat":99},{"version":"079a12cb0e0c42655d77da5185e882b4cc94bd5c6c2131171a9289fc1f4287fc","impliedFormat":99},{"version":"5dae1fbefdf74fea1e94193c2974aac846b23bf0e8ff68fed72f6bdf6ebe3200","impliedFormat":99},{"version":"50cf14b8f0fc2722c11794ca2a06565b1f29e266491da75c745894960ebbce06","impliedFormat":99},{"version":"40f42c27f6cf91185a68be52a9ff238a99945ed3f68b334bedd5c678ac4a1104","impliedFormat":99},{"version":"167edfac7664bec77aa2efb2ce9d515c41b5cc4269091a946b3fa6ec4e7e8738","impliedFormat":99},{"version":"7d793f091907f3ffcfc2b119e1124a46bd573d2a405262fbc5831c71a65f7459","impliedFormat":99},{"version":"d32795db5373db68ee7b823753e4f85642ca65f1157cc60fc0ba2a9a33738070","impliedFormat":99},{"version":"e1e837899820897455837d4161c7d8c09c23cbf49a5d0be2259b49c5df254618","impliedFormat":99},{"version":"192e2ef821d7b163719d5ecb01acb82b871ad1fa4bf7ee72dbccbca1535dc7ae","impliedFormat":99},{"version":"f3373d1f42cf1a6f7e283484395094167284c6f76361f8dfe0bf180a5a0a2786","impliedFormat":99},{"version":"1118883acf97218f3c7afc4f42aa6772043dc435dd38dbdc380e4068816bf9e0","impliedFormat":99},{"version":"7b1615fcfa2397fe944d40c0b64521ebe1afadefa39b3aea6a5552b093c4a461","impliedFormat":99},{"version":"647e1d0a723a7caa54487d50dbfd952f184a110899ce3f331f3c451f6fbd083f","impliedFormat":99},{"version":"effe24c379e404a2122c91ebed98935900169578c80a9751783331aac9d366ba","impliedFormat":99},{"version":"f18cdc2ab4a9663fa88ce91835ee3b1f89cb5d4246e122bf6e2e67530ab1c9eb","impliedFormat":99},{"version":"562640a0449842e1fc2663d2d731740114629a156366a46d26c561811d879600","impliedFormat":99},{"version":"c36b0b8989ffb03daaf222f669e5e803693e88ab1f423028465562319ba78062","signature":"7b7face356dc26af2b1aa38151ad28597476182ee1596d48250eca21050e5ce6"},{"version":"06eafb7ccad40e37f59fd8ed184262d860ef7fc0392cb186c19ec8526ecd64ab","signature":"d12702dd7b779bf045e369d4a069046e704f0cad8999db11f9ace57a2c3aaa25"},{"version":"b1535397a73ca6046ca08957788a4c9a745730c7b2b887e9b9bc784214f3abac","impliedFormat":1},{"version":"1dab12d45a7ab2b167b489150cc7d10043d97eadc4255bfee8d9e07697073c61","impliedFormat":1},{"version":"611c4448eee5289fb486356d96a8049ce8e10e58885608b1d218ab6000c489b3","impliedFormat":1},{"version":"5de017dece7444a2041f5f729fe5035c3e8a94065910fbd235949a25c0c5b035","impliedFormat":1},{"version":"d47961927fe421b16a444286485165f10f18c2ef7b2b32a599c6f22106cd223b","impliedFormat":1},{"version":"341672ca9475e1625c105a6a99f46e8b4f14dff977e53a828deef7b5e932638f","impliedFormat":1},{"version":"d3b5d359e0523d0b9f85016266c9a50ce9cda399aeac1b9eeecb63ba577e4d27","impliedFormat":1},{"version":"5b9f65234e953177fcc9088e69d363706ccd0696a15d254ac5787b28bdfb7cb0","impliedFormat":1},{"version":"510a5373df4110d355b3fb5c72dfd3906782aeacbb44de71ceee0f0dece36352","impliedFormat":1},{"version":"eb76f85d8a8893360da026a53b39152237aaa7f033a267009b8e590139afd7de","impliedFormat":1},{"version":"1c19f268e0f1ed1a6485ca80e0cfd4e21bdc71cb974e2ac7b04b5fce0a91482b","impliedFormat":1},{"version":"84a28d684e49bae482c89c996e8aeaabf44c0355237a3a1303749da2161a90c1","impliedFormat":1},{"version":"89c36d61bae1591a26b3c08db2af6fdd43ffaab0f96646dead5af39ff0cf44d3","impliedFormat":1},{"version":"fcd615891bdf6421c708b42a6006ed8b0cf50ca0ac2b37d66a5777d8222893ce","impliedFormat":1},{"version":"1c87dfe5efcac5c2cd5fc454fe5df66116d7dc284b6e7b70bd30c07375176b36","impliedFormat":1},{"version":"6362fcd24c5b52eb88e9cf33876abd9b066d520fc9d4c24173e58dcddcfe12d5","impliedFormat":1},{"version":"aa064f60b7e64c04a759f5806a0d82a954452300ee27566232b0cf5dad5b6ba6","impliedFormat":1},{"version":"7ffb4e58ca1b9ed5f26bed3dc0287c4abd7a2ba301ca55e2546d01a7f7f73de7","impliedFormat":1},{"version":"65a6307cc74644b8813e553b468ea7cc7a1e5c4b241db255098b35f308bfc4b5","impliedFormat":1},{"version":"bd8e8f02d1b0ebfa518f7d8b5f0db06ae260c192e211a1ef86397f4b49ee198f","impliedFormat":1},{"version":"71b32ccf8c508c2f7445b1b2c144dd7eef9434f7bfa6a92a9ebd0253a75cb54a","impliedFormat":1},{"version":"4fd8e7e446c8379cfb1f165961b1d2f984b40d73f5ad343d93e33962292ec2e0","impliedFormat":1},{"version":"45079ac211d6cfda93dd7d0e7fc1cf2e510dad5610048ef71e47328b765515be","impliedFormat":1},{"version":"7ae8f8b4f56ba486dc9561d873aae5b3ad263ffb9683c8f9ffc18d25a7fd09a4","impliedFormat":1},{"version":"e0ab56e00ef473df66b345c9d64e42823c03e84d9a679020746d23710c2f9fce","impliedFormat":1},{"version":"d99deead63d250c60b647620d1ddaf497779aef1084f85d3d0a353cbc4ea8a60","impliedFormat":1},{"version":"ba64b14db9d08613474dc7c06d8ffbcb22a00a4f9d2641b2dcf97bc91da14275","impliedFormat":1},{"version":"530197974beb0a02c5a9eb7223f03e27651422345c8c35e1a13ddc67e6365af5","impliedFormat":1},{"version":"512c43b21074254148f89bd80ae00f7126db68b4d0bd1583b77b9c8af91cc0d3","impliedFormat":1},{"version":"0bfacd36c923f059779049c6c74c00823c56386397a541fefc8d8672d26e0c42","impliedFormat":1},{"version":"19d04b82ed0dc5ba742521b6da97f22362fe40d6efa5ca5650f08381e5c939b2","impliedFormat":1},{"version":"f02ac71075b54b5c0a384dddbd773c9852dba14b4bf61ca9f1c8ba6b09101d3e","impliedFormat":1},{"version":"bbf0ae18efd0b886897a23141532d9695435c279921c24bcb86090f2466d0727","impliedFormat":1},{"version":"067670de65606b4aa07964b0269b788a7fe48026864326cd3ab5db9fc5e93120","impliedFormat":1},{"version":"7a094146e95764e687120cdb840d7e92fe9960c2168d697639ad51af7230ef5e","impliedFormat":1},{"version":"21290aaea56895f836a0f1da5e1ef89285f8c0e85dc85fd59e2b887255484a6f","impliedFormat":1},{"version":"a07254fded28555a750750f3016aa44ec8b41fbf3664b380829ed8948124bafe","impliedFormat":1},{"version":"f14fbd9ec19692009e5f2727a662f841bbe65ac098e3371eb9a4d9e6ac05bca7","impliedFormat":1},{"version":"46f640a5efe8e5d464ced887797e7855c60581c27575971493998f253931b9a3","impliedFormat":1},{"version":"cdf62cebf884c6fde74f733d7993b7e255e513d6bc1d0e76c5c745ac8df98453","impliedFormat":1},{"version":"e6dd8526d318cce4cb3e83bef3cb4bf3aa08186ddc984c4663cf7dee221d430e","impliedFormat":1},{"version":"bc79e5e54981d32d02e32014b0279f1577055b2ebee12f4d2dc6451efd823a19","impliedFormat":1},{"version":"ce9f76eceb4f35c5ecd9bf7a1a22774c8b4962c2c52e5d56a8d3581a07b392f9","impliedFormat":1},{"version":"7d390f34038ca66aef27575cffb5a25a1034df470a8f7789a9079397a359bf8b","impliedFormat":1},{"version":"18084f07f6e85e59ce11b7118163dff2e452694fffb167d9973617699405fbd1","impliedFormat":1},{"version":"6af607dd78a033679e46c1c69c126313a1485069bdec46036f0fbfe64e393979","impliedFormat":1},{"version":"44c556b0d0ede234f633da4fb95df7d6e9780007003e108e88b4969541373db1","impliedFormat":1},{"version":"ef1491fb98f7a8837af94bfff14351b28485d8b8f490987820695cedac76dc99","impliedFormat":1},{"version":"0d4ba4ad7632e46bab669c1261452a1b35b58c3b1f6a64fb456440488f9008cf","impliedFormat":1},{"version":"74a0fa488591d372a544454d6cd93bbadd09c26474595ea8afed7125692e0859","impliedFormat":1},{"version":"0a9ae72be840cc5be5b0af985997029c74e3f5bcd4237b0055096bb01241d723","impliedFormat":1},{"version":"920004608418d82d0aad39134e275a427255aaf1dafe44dca10cc432ef5ca72a","impliedFormat":1},{"version":"3ac2bd86af2bab352d126ccdde1381cd4db82e3d09a887391c5c1254790727a1","impliedFormat":1},{"version":"2efc9ad74a84d3af0e00c12769a1032b2c349430d49aadebdf710f57857c9647","impliedFormat":1},{"version":"f18cc4e4728203a0282b94fc542523dfd78967a8f160fabc920faa120688151f","impliedFormat":1},{"version":"cc609a30a3dd07d6074290dadfb49b9f0f2c09d0ae7f2fa6b41e2dae2432417b","impliedFormat":1},{"version":"c473f6bd005279b9f3a08c38986f1f0eaf1b0f9d094fec6bc66309e7504b6460","impliedFormat":1},{"version":"0043ff78e9f07cbbbb934dd80d0f5fe190437715446ec9550d1f97b74ec951ac","impliedFormat":1},{"version":"bdc013746db3189a2525e87e2da9a6681f78352ef25ae513aa5f9a75f541e0ae","impliedFormat":1},{"version":"4f567b8360c2be77e609f98efc15de3ffcdbe2a806f34a3eba1ee607c04abab6","impliedFormat":1},{"version":"615bf0ac5606a0e79312d70d4b978ac4a39b3add886b555b1b1a35472327034e","impliedFormat":1},{"version":"818e96d8e24d98dfd8fd6d9d1bbabcac082bcf5fbbe64ca2a32d006209a8ee54","impliedFormat":1},{"version":"18b0b9a38fe92aa95a40431676b2102139c5257e5635fe6a48b197e9dcb660f1","impliedFormat":1},{"version":"86b382f98cb678ff23a74fe1d940cbbf67bcd3162259e8924590ecf8ee24701e","impliedFormat":1},{"version":"aeea2c497f27ce34df29448cbe66adb0f07d3a5d210c24943d38b8026ffa6d3c","impliedFormat":1},{"version":"0fbe1a754e3da007cc2726f61bc8f89b34b466fe205b20c1e316eb240bebe9e8","impliedFormat":1},{"version":"aa2f3c289c7a3403633e411985025b79af473c0bf0fdd980b9712bd6a1705d59","impliedFormat":1},{"version":"e140d9fa025dadc4b098c54278271a032d170d09f85f16f372e4879765277af8","impliedFormat":1},{"version":"70d9e5189fd4dabc81b82cf7691d80e0abf55df5030cc7f12d57df62c72b5076","impliedFormat":1},{"version":"a96be3ed573c2a6d4c7d4e7540f1738a6e90c92f05f684f5ee2533929dd8c6b2","impliedFormat":1},{"version":"2a545aa0bc738bd0080a931ccf8d1d9486c75cbc93e154597d93f46d2f3be3b4","impliedFormat":1},{"version":"137272a656222e83280287c3b6b6d949d38e6c125b48aff9e987cf584ff8eb42","impliedFormat":1},{"version":"5277b2beeb856b348af1c23ffdaccde1ec447abede6f017a0ab0362613309587","impliedFormat":1},{"version":"d4b6804b4c4cb3d65efd5dc8a672825cea7b39db98363d2d9c2608078adce5f8","impliedFormat":1},{"version":"929f67e0e7f3b3a3bcd4e17074e2e60c94b1e27a8135472a7d002a36cd640629","impliedFormat":1},{"version":"0c73536b65135298d43d1ef51dd81a6eba3b69ef0ce005db3de11365fda30a55","impliedFormat":1},{"version":"2a545aa0bc738bd0080a931ccf8d1d9486c75cbc93e154597d93f46d2f3be3b4","impliedFormat":99},{"version":"8630844bd07b518cc13c8e2d5cbd070e7835bb2d52a228a3e653950eb5e2fada","signature":"9a9cdafbfeb45b0f858f4ced1d852378e4b5205805743f8e4787ba89988cff58"},{"version":"273c79c1cd5fe0fbe09053888ab401c747a681b744f22647162bfe77fb9b9f34","signature":"735340c50a19153bf4e6bc9d000421fbcc767ff01fa0dc9eab6047f51aee9bd2"},{"version":"151ff381ef9ff8da2da9b9663ebf657eac35c4c9a19183420c05728f31a6761d","impliedFormat":1},{"version":"f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","impliedFormat":1},{"version":"a4a39b5714adfcadd3bbea6698ca2e942606d833bde62ad5fb6ec55f5e438ff8","impliedFormat":1},{"version":"bbc1d029093135d7d9bfa4b38cbf8761db505026cc458b5e9c8b74f4000e5e75","impliedFormat":1},{"version":"bc5c8a86f2025c4f52e4b13f08f2b76daddf50d5bad325795226f94537060e5d","impliedFormat":1}],"root":[203,204,282,283],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"jsx":4,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noImplicitReturns":true,"noUncheckedIndexedAccess":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[201,1],[178,2],[176,3],[179,4],[184,5],[173,6],[182,7],[189,8],[202,9],[64,3],[187,10],[186,3],[171,3],[177,11],[174,12],[172,3],[181,13],[170,14],[180,15],[175,16],[195,17],[192,18],[197,19],[194,20],[196,21],[185,22],[198,23],[200,24],[191,25],[188,26],[190,27],[193,28],[199,22],[183,3],[287,29],[286,30],[288,30],[284,3],[285,3],[81,31],[82,31],[83,32],[72,33],[84,34],[85,35],[86,36],[67,3],[70,37],[68,3],[69,3],[87,38],[88,39],[89,40],[90,41],[91,42],[92,43],[93,43],[94,44],[95,45],[96,46],[97,47],[73,3],[71,3],[98,48],[99,49],[100,50],[134,51],[101,52],[102,3],[103,53],[104,54],[105,55],[106,56],[107,57],[108,58],[109,59],[110,60],[111,61],[112,61],[113,62],[114,3],[115,63],[116,64],[118,65],[117,66],[119,67],[120,68],[121,69],[122,70],[123,71],[124,72],[125,73],[126,74],[127,75],[128,76],[129,77],[130,78],[131,79],[74,3],[75,3],[76,3],[78,14],[79,3],[80,3],[132,80],[133,81],[148,82],[158,83],[147,82],[168,84],[139,85],[138,86],[167,87],[161,88],[166,89],[141,90],[155,91],[140,92],[164,93],[136,94],[135,87],[165,95],[137,96],[142,97],[143,3],[146,97],[65,3],[169,98],[159,99],[150,100],[151,101],[153,102],[149,103],[152,104],[162,87],[144,105],[145,106],[154,107],[66,108],[157,99],[156,97],[160,3],[163,109],[206,3],[212,110],[205,3],[209,3],[211,111],[208,112],[281,113],[275,113],[236,114],[232,115],[247,116],[237,117],[244,118],[231,119],[245,3],[243,120],[240,121],[241,122],[238,123],[246,124],[213,112],[276,125],[227,126],[224,127],[225,128],[226,129],[215,130],[234,131],[253,132],[249,133],[248,134],[252,135],[250,136],[251,136],[228,137],[230,138],[229,139],[233,140],[277,141],[235,142],[217,143],[278,144],[216,145],[279,146],[218,147],[256,148],[254,127],[255,149],[219,136],[260,150],[258,151],[259,152],[220,153],[263,154],[262,155],[265,156],[264,157],[268,158],[266,157],[267,159],[261,160],[257,161],[269,160],[221,136],[280,162],[222,157],[223,136],[239,163],[242,164],[214,3],[270,136],[271,165],[273,166],[272,167],[274,168],[207,169],[210,170],[61,3],[62,3],[12,3],[10,3],[11,3],[16,3],[15,3],[2,3],[17,3],[18,3],[19,3],[20,3],[21,3],[22,3],[23,3],[24,3],[3,3],[25,3],[26,3],[4,3],[27,3],[31,3],[28,3],[29,3],[30,3],[32,3],[33,3],[34,3],[5,3],[35,3],[36,3],[37,3],[38,3],[6,3],[42,3],[39,3],[40,3],[41,3],[43,3],[7,3],[44,3],[49,3],[50,3],[45,3],[46,3],[47,3],[48,3],[8,3],[54,3],[51,3],[52,3],[53,3],[55,3],[9,3],[56,3],[63,3],[57,3],[58,3],[60,3],[59,3],[1,3],[14,3],[13,3],[77,98],[204,171],[283,172],[282,173],[203,3]],"latestChangedDtsFile":"./src/index.d.ts","version":"5.9.3"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Provider, ProviderEvent, ProviderStreamArgs, ProviderCompleteArgs, ProviderCompleteResult } from './provider.js';
|
|
2
|
+
export declare class AnthropicProvider implements Provider {
|
|
3
|
+
readonly name = "anthropic";
|
|
4
|
+
readonly models: string[];
|
|
5
|
+
readonly defaultModel = "claude-sonnet-4-6";
|
|
6
|
+
private client;
|
|
7
|
+
constructor(apiKey?: string, baseUrl?: string, options?: {
|
|
8
|
+
local?: boolean;
|
|
9
|
+
});
|
|
10
|
+
private _local;
|
|
11
|
+
stream(args: ProviderStreamArgs): AsyncIterable<ProviderEvent>;
|
|
12
|
+
check(prompt: string, args?: {
|
|
13
|
+
model?: string;
|
|
14
|
+
system?: string;
|
|
15
|
+
signal?: AbortSignal;
|
|
16
|
+
}): Promise<string>;
|
|
17
|
+
complete(args: ProviderCompleteArgs): Promise<ProviderCompleteResult>;
|
|
18
|
+
private mapMessages;
|
|
19
|
+
private mapTools;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=anthropic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../src/anthropic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EACR,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EAIvB,MAAM,eAAe,CAAC;AAavB,qBAAa,iBAAkB,YAAW,QAAQ;IAChD,QAAQ,CAAC,IAAI,eAAe;IAC5B,QAAQ,CAAC,MAAM,WAIb;IACF,QAAQ,CAAC,YAAY,uBAAuB;IAE5C,OAAO,CAAC,MAAM,CAAY;gBAEd,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;IAgB5E,OAAO,CAAC,MAAM,CAAU;IAEjB,MAAM,CAAC,IAAI,EAAE,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC;IA4G/D,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QACjC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,WAAW,CAAC;KACtB,GAAG,OAAO,CAAC,MAAM,CAAC;IAgBb,QAAQ,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAiD3E,OAAO,CAAC,WAAW;IAiCnB,OAAO,CAAC,QAAQ;CAOjB"}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import Anthropic from '@anthropic-ai/sdk';
|
|
2
|
+
function effortToBudget(effort) {
|
|
3
|
+
switch (effort) {
|
|
4
|
+
case 'low': return 2_000;
|
|
5
|
+
case 'medium': return 6_000;
|
|
6
|
+
case 'high': return 16_000;
|
|
7
|
+
case 'max': return 32_000;
|
|
8
|
+
case 'auto':
|
|
9
|
+
default: return undefined;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export class AnthropicProvider {
|
|
13
|
+
name = 'anthropic';
|
|
14
|
+
models = [
|
|
15
|
+
'claude-opus-4-7',
|
|
16
|
+
'claude-sonnet-4-6',
|
|
17
|
+
'claude-haiku-4-5-20251001',
|
|
18
|
+
];
|
|
19
|
+
defaultModel = 'claude-sonnet-4-6';
|
|
20
|
+
client;
|
|
21
|
+
constructor(apiKey, baseUrl, options) {
|
|
22
|
+
const resolvedKey = (apiKey && apiKey.length > 0)
|
|
23
|
+
? apiKey
|
|
24
|
+
: process.env.ANTHROPIC_API_KEY;
|
|
25
|
+
if (!resolvedKey) {
|
|
26
|
+
throw new Error('AnthropicProvider: no API key (pass explicitly or set ANTHROPIC_API_KEY / MODEL_API_KEY).');
|
|
27
|
+
}
|
|
28
|
+
this.client = new Anthropic({
|
|
29
|
+
apiKey: resolvedKey,
|
|
30
|
+
...(baseUrl ? { baseURL: baseUrl } : {}),
|
|
31
|
+
});
|
|
32
|
+
this._local = options?.local ?? false;
|
|
33
|
+
}
|
|
34
|
+
_local;
|
|
35
|
+
async *stream(args) {
|
|
36
|
+
const model = args.model || this.defaultModel;
|
|
37
|
+
// Extended thinking is not supported by most local providers (Ollama, llama.cpp)
|
|
38
|
+
const thinkingBudget = this._local ? undefined : effortToBudget(args.effort);
|
|
39
|
+
// When thinking is enabled the model reserves the budget from max_tokens,
|
|
40
|
+
// so raise the ceiling to leave room for the actual answer.
|
|
41
|
+
const maxTokens = args.maxTokens || (thinkingBudget ? thinkingBudget + 8192 : 8192);
|
|
42
|
+
const messages = this.mapMessages(args.messages);
|
|
43
|
+
const tools = args.tools ? this.mapTools(args.tools) : undefined;
|
|
44
|
+
const streamArgs = {
|
|
45
|
+
model,
|
|
46
|
+
max_tokens: maxTokens,
|
|
47
|
+
system: args.system,
|
|
48
|
+
messages,
|
|
49
|
+
tools,
|
|
50
|
+
// Extended thinking requires temperature = 1.
|
|
51
|
+
temperature: thinkingBudget ? 1 : args.temperature,
|
|
52
|
+
};
|
|
53
|
+
if (thinkingBudget) {
|
|
54
|
+
streamArgs.thinking = { type: 'enabled', budget_tokens: thinkingBudget };
|
|
55
|
+
}
|
|
56
|
+
const stream = this.client.messages.stream(streamArgs);
|
|
57
|
+
// keyed by content block index
|
|
58
|
+
const toolBlocks = new Map();
|
|
59
|
+
const thinkingBlocks = new Map();
|
|
60
|
+
for await (const event of stream) {
|
|
61
|
+
if (args.signal?.aborted) {
|
|
62
|
+
stream.abort();
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
if (event.type === 'content_block_start') {
|
|
66
|
+
const cb = event.content_block;
|
|
67
|
+
if (cb.type === 'tool_use') {
|
|
68
|
+
toolBlocks.set(event.index, { id: cb.id, name: cb.name, inputStr: '' });
|
|
69
|
+
}
|
|
70
|
+
else if (cb.type === 'thinking') {
|
|
71
|
+
thinkingBlocks.set(event.index, { thinking: cb.thinking || '', signature: cb.signature || '' });
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if (event.type === 'content_block_delta') {
|
|
75
|
+
if (event.delta.type === 'text_delta') {
|
|
76
|
+
yield { type: 'text-delta', text: event.delta.text };
|
|
77
|
+
}
|
|
78
|
+
else if (event.delta.type === 'input_json_delta') {
|
|
79
|
+
const block = toolBlocks.get(event.index);
|
|
80
|
+
if (block)
|
|
81
|
+
block.inputStr += event.delta.partial_json;
|
|
82
|
+
}
|
|
83
|
+
else if (event.delta.type === 'thinking_delta') {
|
|
84
|
+
const t = thinkingBlocks.get(event.index);
|
|
85
|
+
if (t)
|
|
86
|
+
t.thinking += event.delta.thinking;
|
|
87
|
+
}
|
|
88
|
+
else if (event.delta.type === 'signature_delta') {
|
|
89
|
+
const t = thinkingBlocks.get(event.index);
|
|
90
|
+
if (t)
|
|
91
|
+
t.signature += event.delta.signature;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
if (event.type === 'content_block_stop') {
|
|
95
|
+
const tool = toolBlocks.get(event.index);
|
|
96
|
+
if (tool) {
|
|
97
|
+
let input = {};
|
|
98
|
+
try {
|
|
99
|
+
input = JSON.parse(tool.inputStr || '{}');
|
|
100
|
+
}
|
|
101
|
+
catch { /* empty input */ }
|
|
102
|
+
yield { type: 'tool-call', id: tool.id, name: tool.name, input };
|
|
103
|
+
toolBlocks.delete(event.index);
|
|
104
|
+
}
|
|
105
|
+
const thinking = thinkingBlocks.get(event.index);
|
|
106
|
+
if (thinking) {
|
|
107
|
+
yield { type: 'thinking-block', thinking: thinking.thinking, signature: thinking.signature };
|
|
108
|
+
thinkingBlocks.delete(event.index);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
if (event.type === 'message_delta' && event.usage) {
|
|
112
|
+
yield {
|
|
113
|
+
type: 'usage',
|
|
114
|
+
inputTokens: event.usage.input_tokens || 0,
|
|
115
|
+
outputTokens: event.usage.output_tokens || 0,
|
|
116
|
+
cacheReadTokens: event.usage.cache_read_input_tokens ?? undefined,
|
|
117
|
+
cacheWriteTokens: event.usage.cache_creation_input_tokens ?? undefined,
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (args.signal?.aborted) {
|
|
122
|
+
yield { type: 'stop', reason: 'aborted' };
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
try {
|
|
126
|
+
const final = await stream.finalMessage();
|
|
127
|
+
if (final.usage) {
|
|
128
|
+
yield {
|
|
129
|
+
type: 'usage',
|
|
130
|
+
inputTokens: final.usage.input_tokens,
|
|
131
|
+
outputTokens: final.usage.output_tokens,
|
|
132
|
+
cacheReadTokens: final.usage.cache_read_input_tokens ?? undefined,
|
|
133
|
+
cacheWriteTokens: final.usage.cache_creation_input_tokens ?? undefined,
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
catch {
|
|
138
|
+
// stream.finalMessage() throws if the stream was aborted — that's expected.
|
|
139
|
+
}
|
|
140
|
+
yield { type: 'stop', reason: args.signal?.aborted ? 'aborted' : 'stop' };
|
|
141
|
+
}
|
|
142
|
+
async check(prompt, args) {
|
|
143
|
+
const model = args?.model || this.defaultModel;
|
|
144
|
+
const response = await this.client.messages.create({
|
|
145
|
+
model,
|
|
146
|
+
max_tokens: 256,
|
|
147
|
+
system: args?.system,
|
|
148
|
+
messages: [{ role: 'user', content: prompt }],
|
|
149
|
+
temperature: 0,
|
|
150
|
+
});
|
|
151
|
+
const text = response.content
|
|
152
|
+
.filter((c) => c.type === 'text')
|
|
153
|
+
.map(c => c.text)
|
|
154
|
+
.join('\n');
|
|
155
|
+
return text.trim();
|
|
156
|
+
}
|
|
157
|
+
async complete(args) {
|
|
158
|
+
const model = args.model || this.defaultModel;
|
|
159
|
+
const thinkingBudget = this._local ? undefined : effortToBudget(args.effort);
|
|
160
|
+
const maxTokens = args.maxTokens || (thinkingBudget ? thinkingBudget + 8192 : 8192);
|
|
161
|
+
const messages = this.mapMessages(args.messages);
|
|
162
|
+
const tools = args.tools ? this.mapTools(args.tools) : undefined;
|
|
163
|
+
const streamArgs = {
|
|
164
|
+
model,
|
|
165
|
+
max_tokens: maxTokens,
|
|
166
|
+
system: args.system,
|
|
167
|
+
messages,
|
|
168
|
+
tools,
|
|
169
|
+
temperature: thinkingBudget ? 1 : (args.temperature ?? 0),
|
|
170
|
+
};
|
|
171
|
+
if (thinkingBudget) {
|
|
172
|
+
streamArgs.thinking = { type: 'enabled', budget_tokens: thinkingBudget };
|
|
173
|
+
}
|
|
174
|
+
const response = await this.client.messages.create(streamArgs);
|
|
175
|
+
const text = response.content
|
|
176
|
+
.filter((c) => c.type === 'text')
|
|
177
|
+
.map(c => c.text)
|
|
178
|
+
.join('\n');
|
|
179
|
+
const toolCalls = response.content
|
|
180
|
+
.filter((c) => c.type === 'tool_use')
|
|
181
|
+
.map(c => ({
|
|
182
|
+
id: c.id,
|
|
183
|
+
name: c.name,
|
|
184
|
+
input: c.input,
|
|
185
|
+
}));
|
|
186
|
+
return {
|
|
187
|
+
text: text.trim(),
|
|
188
|
+
stopReason: (response.stop_reason === 'tool_use')
|
|
189
|
+
? 'tool_use'
|
|
190
|
+
: (response.stop_reason === 'end_turn')
|
|
191
|
+
? 'end_turn'
|
|
192
|
+
: 'stop',
|
|
193
|
+
usage: response.usage
|
|
194
|
+
? { inputTokens: response.usage.input_tokens, outputTokens: response.usage.output_tokens }
|
|
195
|
+
: undefined,
|
|
196
|
+
toolCalls: toolCalls.length > 0 ? toolCalls : undefined,
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
mapMessages(messages) {
|
|
200
|
+
return messages.map((m) => {
|
|
201
|
+
if (m.role === 'tool') {
|
|
202
|
+
return {
|
|
203
|
+
role: 'user',
|
|
204
|
+
content: [
|
|
205
|
+
{
|
|
206
|
+
type: 'tool_result',
|
|
207
|
+
tool_use_id: m.toolUseId,
|
|
208
|
+
content: m.content,
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
const content = typeof m.content === 'string'
|
|
214
|
+
? m.content
|
|
215
|
+
: m.content.map((c) => {
|
|
216
|
+
if (c.type === 'text')
|
|
217
|
+
return { type: 'text', text: c.text };
|
|
218
|
+
if (c.type === 'thinking')
|
|
219
|
+
return { type: 'thinking', thinking: c.thinking, signature: c.signature };
|
|
220
|
+
if (c.type === 'tool-use')
|
|
221
|
+
return { type: 'tool_use', id: c.id, name: c.name, input: c.input };
|
|
222
|
+
if (c.type === 'tool-result')
|
|
223
|
+
return { type: 'tool_result', tool_use_id: c.tool_use_id, content: c.content };
|
|
224
|
+
return { type: 'text', text: JSON.stringify(c) };
|
|
225
|
+
});
|
|
226
|
+
return { role: m.role, content };
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
mapTools(tools) {
|
|
230
|
+
return tools.map((t) => ({
|
|
231
|
+
name: t.name,
|
|
232
|
+
description: t.description,
|
|
233
|
+
input_schema: t.inputSchema,
|
|
234
|
+
}));
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
//# sourceMappingURL=anthropic.js.map
|
|
@@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KAAK,UAAU;wBACvB,OAAO,EAAE,IAAI,EAAE,UAAmB,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC;oBACrF,IAAI,CAAC,CAAC,IAAI,KAAK,UAAU;wBACvB,OAAO,EAAE,IAAI,EAAE,UAAmB,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;oBAC/E,IAAI,CAAC,CAAC,IAAI,KAAK,aAAa;wBAC1B,OAAO,EAAE,IAAI,EAAE,aAAsB,EAAE,WAAW,EAAE,CAAC,CAAC,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;oBAC1F,OAAO,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC5D,CAAC,CAAC,CAAC;YAET,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,EAA4B,CAAC;QAC7D,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,QAAQ,CAAC,KAAyE;QACxF,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YACvB,IAAI,EAAE,CAAC,CAAC,IAAI;YACZ,WAAW,EAAE,CAAC,CAAC,WAAW;YAC1B,YAAY,EAAE,CAAC,CAAC,WAAyC;SAC1D,CAAC,CAAC,CAAC;IACN,CAAC;CACF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { createRegistry } from './provider.js';
|
|
2
|
+
export type { Provider, ProviderEvent, ProviderStreamArgs, ProviderMessage, MessageContent, ProviderRegistry, ReasoningEffort, } from './provider.js';
|
|
3
|
+
export { AnthropicProvider } from './anthropic.js';
|
|
4
|
+
export { OpenAIProvider } from './openai.js';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,YAAY,EACV,QAAQ,EACR,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAU/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Provider, ProviderEvent, ProviderStreamArgs, ProviderCompleteArgs, ProviderCompleteResult } from './provider.js';
|
|
2
|
+
export declare class OpenAIProvider implements Provider {
|
|
3
|
+
readonly name = "openai";
|
|
4
|
+
readonly models: string[];
|
|
5
|
+
readonly defaultModel = "gpt-4o";
|
|
6
|
+
private client;
|
|
7
|
+
constructor(apiKey?: string, baseUrl?: string, options?: {
|
|
8
|
+
local?: boolean;
|
|
9
|
+
});
|
|
10
|
+
private _local;
|
|
11
|
+
stream(args: ProviderStreamArgs): AsyncIterable<ProviderEvent>;
|
|
12
|
+
check(prompt: string, args?: {
|
|
13
|
+
model?: string;
|
|
14
|
+
system?: string;
|
|
15
|
+
signal?: AbortSignal;
|
|
16
|
+
}): Promise<string>;
|
|
17
|
+
complete(args: ProviderCompleteArgs): Promise<ProviderCompleteResult>;
|
|
18
|
+
private mapMessages;
|
|
19
|
+
private mapTools;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=openai.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../src/openai.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EACR,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EAKvB,MAAM,eAAe,CAAC;AAmBvB,qBAAa,cAAe,YAAW,QAAQ;IAC7C,QAAQ,CAAC,IAAI,YAAY;IACzB,QAAQ,CAAC,MAAM,WAWb;IACF,QAAQ,CAAC,YAAY,YAAY;IAEjC,OAAO,CAAC,MAAM,CAAS;gBAEX,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;IAgB5E,OAAO,CAAC,MAAM,CAAU;IAEjB,MAAM,CAAC,IAAI,EAAE,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC;IA0F/D,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QACjC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,WAAW,CAAC;KACtB,GAAG,OAAO,CAAC,MAAM,CAAC;IAiBb,QAAQ,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAgE3E,OAAO,CAAC,WAAW;IA+CnB,OAAO,CAAC,QAAQ;CAUjB"}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import OpenAI from 'openai';
|
|
2
|
+
function effortToReasoning(effort) {
|
|
3
|
+
switch (effort) {
|
|
4
|
+
case 'low': return 'low';
|
|
5
|
+
case 'medium': return 'medium';
|
|
6
|
+
case 'high': return 'high';
|
|
7
|
+
case 'max': return 'high';
|
|
8
|
+
case 'auto':
|
|
9
|
+
default: return undefined;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
const REASONING_MODEL_RE = /^(o1|o3)[-:]?(mini|medium|high|pro)?$/i;
|
|
13
|
+
function isReasoningModel(model) {
|
|
14
|
+
return REASONING_MODEL_RE.test(model);
|
|
15
|
+
}
|
|
16
|
+
export class OpenAIProvider {
|
|
17
|
+
name = 'openai';
|
|
18
|
+
models = [
|
|
19
|
+
'gpt-4o',
|
|
20
|
+
'gpt-4o-2024-11-20',
|
|
21
|
+
'gpt-4o-mini',
|
|
22
|
+
'gpt-4o-mini-2024-07-18',
|
|
23
|
+
'o1',
|
|
24
|
+
'o1-mini',
|
|
25
|
+
'o1-preview',
|
|
26
|
+
'o3-mini',
|
|
27
|
+
'o3-mini-2025-01-31',
|
|
28
|
+
'gpt-4-turbo',
|
|
29
|
+
];
|
|
30
|
+
defaultModel = 'gpt-4o';
|
|
31
|
+
client;
|
|
32
|
+
constructor(apiKey, baseUrl, options) {
|
|
33
|
+
const resolvedKey = (apiKey && apiKey.length > 0)
|
|
34
|
+
? apiKey
|
|
35
|
+
: process.env.OPENAI_API_KEY;
|
|
36
|
+
if (!resolvedKey) {
|
|
37
|
+
throw new Error('OpenAIProvider: no API key (pass explicitly or set OPENAI_API_KEY).');
|
|
38
|
+
}
|
|
39
|
+
this.client = new OpenAI({
|
|
40
|
+
apiKey: resolvedKey,
|
|
41
|
+
...(baseUrl ? { baseURL: baseUrl } : {}),
|
|
42
|
+
});
|
|
43
|
+
this._local = options?.local ?? false;
|
|
44
|
+
}
|
|
45
|
+
_local;
|
|
46
|
+
async *stream(args) {
|
|
47
|
+
const model = args.model || this.defaultModel;
|
|
48
|
+
const modelIsReasoning = isReasoningModel(model);
|
|
49
|
+
const reasoningEffort = effortToReasoning(args.effort);
|
|
50
|
+
const maxTokens = modelIsReasoning
|
|
51
|
+
? args.maxTokens ?? 16_384
|
|
52
|
+
: args.maxTokens;
|
|
53
|
+
const messages = this.mapMessages(args.messages);
|
|
54
|
+
const tools = args.tools ? this.mapTools(args.tools) : undefined;
|
|
55
|
+
const allMessages = args.system
|
|
56
|
+
? [{ role: 'system', content: args.system }, ...messages]
|
|
57
|
+
: messages;
|
|
58
|
+
const streamParams = {
|
|
59
|
+
model,
|
|
60
|
+
messages: allMessages,
|
|
61
|
+
stream: true,
|
|
62
|
+
...(tools ? { tools } : {}),
|
|
63
|
+
...(args.temperature !== undefined ? { temperature: args.temperature } : {}),
|
|
64
|
+
...(maxTokens ? { max_completion_tokens: maxTokens } : {}),
|
|
65
|
+
...(modelIsReasoning && reasoningEffort ? { reasoning_effort: reasoningEffort } : {}),
|
|
66
|
+
// stream_options is OpenAI-specific — omit for local providers (Ollama, etc.)
|
|
67
|
+
...(!this._local ? { stream_options: { include_usage: true } } : {}),
|
|
68
|
+
};
|
|
69
|
+
const stream = await this.client.chat.completions.create(streamParams);
|
|
70
|
+
const pendingTools = new Map();
|
|
71
|
+
let lastUsage = null;
|
|
72
|
+
for await (const chunk of stream) {
|
|
73
|
+
if (args.signal?.aborted) {
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
if (chunk.usage) {
|
|
77
|
+
lastUsage = chunk.usage;
|
|
78
|
+
}
|
|
79
|
+
const choice = chunk.choices?.[0];
|
|
80
|
+
if (!choice)
|
|
81
|
+
continue;
|
|
82
|
+
// Text deltas
|
|
83
|
+
if (choice.delta?.content) {
|
|
84
|
+
yield { type: 'text-delta', text: choice.delta.content };
|
|
85
|
+
}
|
|
86
|
+
// Tool call deltas
|
|
87
|
+
if (choice.delta?.tool_calls) {
|
|
88
|
+
for (const tc of choice.delta.tool_calls) {
|
|
89
|
+
const idx = tc.index ?? 0;
|
|
90
|
+
if (tc.id) {
|
|
91
|
+
pendingTools.set(idx, { id: tc.id, name: tc.function?.name ?? '', inputStr: '' });
|
|
92
|
+
}
|
|
93
|
+
const pending = pendingTools.get(idx);
|
|
94
|
+
if (pending) {
|
|
95
|
+
pending.inputStr += tc.function?.arguments ?? '';
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
// Resolve any pending tool calls
|
|
101
|
+
for (const [, pending] of pendingTools) {
|
|
102
|
+
let input = {};
|
|
103
|
+
try {
|
|
104
|
+
if (pending.inputStr) {
|
|
105
|
+
input = JSON.parse(pending.inputStr);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
catch { /* empty input on parse failure */ }
|
|
109
|
+
yield { type: 'tool-call', id: pending.id, name: pending.name, input };
|
|
110
|
+
}
|
|
111
|
+
// Emit usage
|
|
112
|
+
if (lastUsage) {
|
|
113
|
+
yield {
|
|
114
|
+
type: 'usage',
|
|
115
|
+
inputTokens: lastUsage.prompt_tokens ?? 0,
|
|
116
|
+
outputTokens: lastUsage.completion_tokens ?? 0,
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
yield { type: 'stop', reason: args.signal?.aborted ? 'aborted' : 'stop' };
|
|
120
|
+
}
|
|
121
|
+
async check(prompt, args) {
|
|
122
|
+
const model = args?.model || this.defaultModel;
|
|
123
|
+
const messages = [
|
|
124
|
+
{ role: 'user', content: prompt },
|
|
125
|
+
];
|
|
126
|
+
if (args?.system) {
|
|
127
|
+
messages.unshift({ role: 'system', content: args.system });
|
|
128
|
+
}
|
|
129
|
+
const response = await this.client.chat.completions.create({
|
|
130
|
+
model,
|
|
131
|
+
messages,
|
|
132
|
+
max_tokens: 256,
|
|
133
|
+
temperature: 0,
|
|
134
|
+
});
|
|
135
|
+
return response.choices[0]?.message?.content?.trim() ?? '';
|
|
136
|
+
}
|
|
137
|
+
async complete(args) {
|
|
138
|
+
const model = args.model || this.defaultModel;
|
|
139
|
+
const modelIsReasoning = isReasoningModel(model);
|
|
140
|
+
const reasoningEffort = effortToReasoning(args.effort);
|
|
141
|
+
const maxTokens = modelIsReasoning
|
|
142
|
+
? args.maxTokens ?? 16_384
|
|
143
|
+
: args.maxTokens;
|
|
144
|
+
const messages = this.mapMessages(args.messages);
|
|
145
|
+
const tools = args.tools ? this.mapTools(args.tools) : undefined;
|
|
146
|
+
const allMessages = args.system
|
|
147
|
+
? [{ role: 'system', content: args.system }, ...messages]
|
|
148
|
+
: messages;
|
|
149
|
+
const response = await this.client.chat.completions.create({
|
|
150
|
+
model,
|
|
151
|
+
messages: allMessages,
|
|
152
|
+
stream: false,
|
|
153
|
+
...(tools ? { tools } : {}),
|
|
154
|
+
...(args.temperature !== undefined ? { temperature: args.temperature } : {}),
|
|
155
|
+
...(maxTokens ? { max_completion_tokens: maxTokens } : {}),
|
|
156
|
+
...(modelIsReasoning && reasoningEffort ? { reasoning_effort: reasoningEffort } : {}),
|
|
157
|
+
...(!this._local ? { stream_options: { include_usage: true } } : {}),
|
|
158
|
+
});
|
|
159
|
+
const choice = response.choices[0];
|
|
160
|
+
const text = choice?.message?.content ?? '';
|
|
161
|
+
const toolCalls = choice?.message?.tool_calls?.map(tc => {
|
|
162
|
+
let input = {};
|
|
163
|
+
try {
|
|
164
|
+
if (tc.function?.arguments) {
|
|
165
|
+
input = JSON.parse(tc.function.arguments);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
catch { /* empty input on parse failure */ }
|
|
169
|
+
return {
|
|
170
|
+
id: tc.id ?? '',
|
|
171
|
+
name: tc.function?.name ?? '',
|
|
172
|
+
input,
|
|
173
|
+
};
|
|
174
|
+
}).filter(tc => tc.id) ?? [];
|
|
175
|
+
const usage = response.usage
|
|
176
|
+
? { inputTokens: response.usage.prompt_tokens, outputTokens: response.usage.completion_tokens }
|
|
177
|
+
: undefined;
|
|
178
|
+
return {
|
|
179
|
+
text: text.trim(),
|
|
180
|
+
stopReason: (choice?.finish_reason === 'stop' || choice?.finish_reason === 'function_call')
|
|
181
|
+
? 'stop'
|
|
182
|
+
: choice?.finish_reason === 'tool_calls'
|
|
183
|
+
? 'tool_use'
|
|
184
|
+
: choice?.finish_reason === 'length'
|
|
185
|
+
? 'length'
|
|
186
|
+
: choice?.finish_reason === 'content_filter'
|
|
187
|
+
? 'content_filter'
|
|
188
|
+
: 'stop',
|
|
189
|
+
usage,
|
|
190
|
+
toolCalls: toolCalls.length > 0 ? toolCalls : undefined,
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
mapMessages(messages) {
|
|
194
|
+
return messages.map((m) => {
|
|
195
|
+
if (m.role === 'tool') {
|
|
196
|
+
return {
|
|
197
|
+
role: 'tool',
|
|
198
|
+
content: m.content,
|
|
199
|
+
tool_call_id: m.toolUseId,
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
if (typeof m.content === 'string') {
|
|
203
|
+
return { role: m.role, content: m.content };
|
|
204
|
+
}
|
|
205
|
+
if (Array.isArray(m.content) && m.role === 'user') {
|
|
206
|
+
const textParts = m.content
|
|
207
|
+
.filter((c) => c.type === 'text')
|
|
208
|
+
.map(c => c.text);
|
|
209
|
+
return { role: 'user', content: textParts.join('\n') };
|
|
210
|
+
}
|
|
211
|
+
if (Array.isArray(m.content) && m.role === 'assistant') {
|
|
212
|
+
const textParts = m.content
|
|
213
|
+
.filter((c) => c.type === 'text')
|
|
214
|
+
.map(c => c.text);
|
|
215
|
+
const toolCalls = m.content
|
|
216
|
+
.filter((c) => c.type === 'tool-use')
|
|
217
|
+
.map(c => ({
|
|
218
|
+
id: c.id,
|
|
219
|
+
type: 'function',
|
|
220
|
+
function: {
|
|
221
|
+
name: c.name,
|
|
222
|
+
arguments: JSON.stringify(c.input),
|
|
223
|
+
},
|
|
224
|
+
}));
|
|
225
|
+
return {
|
|
226
|
+
role: 'assistant',
|
|
227
|
+
content: textParts.join('\n') || null,
|
|
228
|
+
...(toolCalls.length > 0 ? { tool_calls: toolCalls } : {}),
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
return { role: m.role, content: JSON.stringify(m.content) };
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
mapTools(tools) {
|
|
235
|
+
return tools.map((t) => ({
|
|
236
|
+
type: 'function',
|
|
237
|
+
function: {
|
|
238
|
+
name: t.name,
|
|
239
|
+
description: t.description,
|
|
240
|
+
parameters: t.inputSchema,
|
|
241
|
+
},
|
|
242
|
+
}));
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
//# sourceMappingURL=openai.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openai.js","sourceRoot":"","sources":["../../src/openai.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAa5B,SAAS,iBAAiB,CAAC,MAAwB;IACjD,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,KAAK,CAAC,CAAI,OAAO,KAAK,CAAC;QAC5B,KAAK,QAAQ,CAAC,CAAC,OAAO,QAAQ,CAAC;QAC/B,KAAK,MAAM,CAAC,CAAG,OAAO,MAAM,CAAC;QAC7B,KAAK,KAAK,CAAC,CAAI,OAAO,MAAM,CAAC;QAC7B,KAAK,MAAM,CAAC;QACZ,OAAO,CAAC,CAAO,OAAO,SAAS,CAAC;IAClC,CAAC;AACH,CAAC;AAED,MAAM,kBAAkB,GAAG,wCAAwC,CAAC;AAEpE,SAAS,gBAAgB,CAAC,KAAa;IACrC,OAAO,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACxC,CAAC;AAED,MAAM,OAAO,cAAc;IAChB,IAAI,GAAG,QAAQ,CAAC;IAChB,MAAM,GAAG;QAChB,QAAQ;QACR,mBAAmB;QACnB,aAAa;QACb,wBAAwB;QACxB,IAAI;QACJ,SAAS;QACT,YAAY;QACZ,SAAS;QACT,oBAAoB;QACpB,aAAa;KACd,CAAC;IACO,YAAY,GAAG,QAAQ,CAAC;IAEzB,MAAM,CAAS;IAEvB,YAAY,MAAe,EAAE,OAAgB,EAAE,OAA6B;QAC1E,MAAM,WAAW,GAAG,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;YAC/C,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,OAAO,CAAC,G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AAC;IAEO,QAAQ,CAAC,KAAuB;QACtC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YACvB,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE;gBACR,IAAI,EAAE,CAAC,CAAC,IAAI;gBACZ,WAAW,EAAE,CAAC,CAAC,WAAW;gBAC1B,UAAU,EAAE,CAAC,CAAC,WAAsC;aACrD;SACF,CAAC,CAAC,CAAC;IACN,CAAC;CACF"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
export interface ToolDefinition {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: 'object';
|
|
6
|
+
properties: Record<string, unknown>;
|
|
7
|
+
required?: string[];
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export type ProviderEvent = {
|
|
11
|
+
type: 'text-delta';
|
|
12
|
+
text: string;
|
|
13
|
+
} | {
|
|
14
|
+
type: 'thinking-block';
|
|
15
|
+
thinking: string;
|
|
16
|
+
signature: string;
|
|
17
|
+
} | {
|
|
18
|
+
type: 'tool-call';
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
input: Record<string, unknown>;
|
|
22
|
+
} | {
|
|
23
|
+
type: 'tool-result-request';
|
|
24
|
+
callId: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: 'usage';
|
|
27
|
+
inputTokens: number;
|
|
28
|
+
outputTokens: number;
|
|
29
|
+
cacheReadTokens?: number;
|
|
30
|
+
cacheWriteTokens?: number;
|
|
31
|
+
} | {
|
|
32
|
+
type: 'stop';
|
|
33
|
+
reason: string;
|
|
34
|
+
};
|
|
35
|
+
export type ReasoningEffort = 'low' | 'medium' | 'high' | 'max' | 'auto';
|
|
36
|
+
export interface ProviderStreamArgs {
|
|
37
|
+
messages: ProviderMessage[];
|
|
38
|
+
tools?: ToolDefinition[];
|
|
39
|
+
signal?: AbortSignal;
|
|
40
|
+
model?: string;
|
|
41
|
+
temperature?: number;
|
|
42
|
+
maxTokens?: number;
|
|
43
|
+
system?: string;
|
|
44
|
+
effort?: ReasoningEffort;
|
|
45
|
+
}
|
|
46
|
+
export interface ProviderCompleteArgs {
|
|
47
|
+
messages: ProviderMessage[];
|
|
48
|
+
tools?: ToolDefinition[];
|
|
49
|
+
signal?: AbortSignal;
|
|
50
|
+
model?: string;
|
|
51
|
+
temperature?: number;
|
|
52
|
+
maxTokens?: number;
|
|
53
|
+
system?: string;
|
|
54
|
+
effort?: ReasoningEffort;
|
|
55
|
+
}
|
|
56
|
+
export interface ProviderCompleteResult {
|
|
57
|
+
text: string;
|
|
58
|
+
stopReason: 'stop' | 'end_turn' | 'tool_use' | 'length' | 'content_filter' | 'aborted';
|
|
59
|
+
usage?: {
|
|
60
|
+
inputTokens: number;
|
|
61
|
+
outputTokens: number;
|
|
62
|
+
};
|
|
63
|
+
toolCalls?: Array<{
|
|
64
|
+
id: string;
|
|
65
|
+
name: string;
|
|
66
|
+
input: Record<string, unknown>;
|
|
67
|
+
}>;
|
|
68
|
+
}
|
|
69
|
+
export type MessageContent = {
|
|
70
|
+
type: 'text';
|
|
71
|
+
text: string;
|
|
72
|
+
} | {
|
|
73
|
+
type: 'thinking';
|
|
74
|
+
thinking: string;
|
|
75
|
+
signature: string;
|
|
76
|
+
} | {
|
|
77
|
+
type: 'image';
|
|
78
|
+
source: {
|
|
79
|
+
media_type: string;
|
|
80
|
+
data: string;
|
|
81
|
+
};
|
|
82
|
+
} | {
|
|
83
|
+
type: 'tool-use';
|
|
84
|
+
id: string;
|
|
85
|
+
name: string;
|
|
86
|
+
input: Record<string, unknown>;
|
|
87
|
+
} | {
|
|
88
|
+
type: 'tool-result';
|
|
89
|
+
tool_use_id: string;
|
|
90
|
+
content: string;
|
|
91
|
+
};
|
|
92
|
+
export type ProviderMessage = {
|
|
93
|
+
role: 'user';
|
|
94
|
+
content: string | MessageContent[];
|
|
95
|
+
} | {
|
|
96
|
+
role: 'assistant';
|
|
97
|
+
content: string | MessageContent[];
|
|
98
|
+
} | {
|
|
99
|
+
role: 'tool';
|
|
100
|
+
toolUseId: string;
|
|
101
|
+
content: string;
|
|
102
|
+
};
|
|
103
|
+
export interface Provider {
|
|
104
|
+
name: string;
|
|
105
|
+
models: string[];
|
|
106
|
+
defaultModel: string;
|
|
107
|
+
stream(args: ProviderStreamArgs): AsyncIterable<ProviderEvent>;
|
|
108
|
+
/** Non-streaming call — used for quick evaluations (e.g. harm-check). */
|
|
109
|
+
check(prompt: string, args?: {
|
|
110
|
+
model?: string;
|
|
111
|
+
system?: string;
|
|
112
|
+
signal?: AbortSignal;
|
|
113
|
+
}): Promise<string>;
|
|
114
|
+
/** Non-streaming call with full tool-use support — used for heartbeat and other batch scenarios. */
|
|
115
|
+
complete(args: ProviderCompleteArgs): Promise<ProviderCompleteResult>;
|
|
116
|
+
}
|
|
117
|
+
export interface ProviderRegistry {
|
|
118
|
+
register(provider: Provider): void;
|
|
119
|
+
get(name: string): Provider | undefined;
|
|
120
|
+
list(): Provider[];
|
|
121
|
+
}
|
|
122
|
+
export declare function createRegistry(): ProviderRegistry;
|
|
123
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/provider.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ,CAAC;QACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACpC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;CACH;AAED,MAAM,MAAM,aAAa,GACrB;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACpC;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC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C,CAAC;QACzC,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QAC5B,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC;KACpC,CAAC;AACJ,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hopper-agent/providers",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"main": "./dist/src/index.js",
|
|
9
|
+
"types": "./dist/src/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/src/index.js",
|
|
13
|
+
"types": "./dist/src/index.d.ts"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@anthropic-ai/sdk": "^0.50.0",
|
|
18
|
+
"openai": "^4.87.0",
|
|
19
|
+
"zod": "^3.25.0"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/node": "^22.0.0",
|
|
23
|
+
"typescript": "^5.9.0"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsc --project tsconfig.json",
|
|
27
|
+
"dev": "tsc --watch --project tsconfig.json",
|
|
28
|
+
"typecheck": "tsc --noEmit --project tsconfig.json",
|
|
29
|
+
"lint": "eslint src/",
|
|
30
|
+
"test": "vitest run",
|
|
31
|
+
"clean": "npx rimraf dist"
|
|
32
|
+
}
|
|
33
|
+
}
|