semantic-primitives 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 +201 -0
- package/README.md +449 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25016 -0
- package/dist/llm/client.d.ts +82 -0
- package/dist/llm/client.d.ts.map +1 -0
- package/dist/llm/index.d.ts +11 -0
- package/dist/llm/index.d.ts.map +1 -0
- package/dist/llm/providers/anthropic.d.ts +13 -0
- package/dist/llm/providers/anthropic.d.ts.map +1 -0
- package/dist/llm/providers/google.d.ts +13 -0
- package/dist/llm/providers/google.d.ts.map +1 -0
- package/dist/llm/providers/index.d.ts +7 -0
- package/dist/llm/providers/index.d.ts.map +1 -0
- package/dist/llm/providers/openai.d.ts +13 -0
- package/dist/llm/providers/openai.d.ts.map +1 -0
- package/dist/llm/types.d.ts +91 -0
- package/dist/llm/types.d.ts.map +1 -0
- package/dist/primitives/bigint/bigint.d.ts +197 -0
- package/dist/primitives/bigint/bigint.d.ts.map +1 -0
- package/dist/primitives/bigint/index.d.ts +7 -0
- package/dist/primitives/bigint/index.d.ts.map +1 -0
- package/dist/primitives/bigint/prompts.d.ts +37 -0
- package/dist/primitives/bigint/prompts.d.ts.map +1 -0
- package/dist/primitives/boolean/boolean.d.ts +194 -0
- package/dist/primitives/boolean/boolean.d.ts.map +1 -0
- package/dist/primitives/boolean/evals/from.evals.d.ts +7 -0
- package/dist/primitives/boolean/evals/from.evals.d.ts.map +1 -0
- package/dist/primitives/boolean/evals/index.d.ts +5 -0
- package/dist/primitives/boolean/evals/index.d.ts.map +1 -0
- package/dist/primitives/boolean/index.d.ts +6 -0
- package/dist/primitives/boolean/index.d.ts.map +1 -0
- package/dist/primitives/boolean/prompts.d.ts +29 -0
- package/dist/primitives/boolean/prompts.d.ts.map +1 -0
- package/dist/primitives/index.d.ts +14 -0
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/null/index.d.ts +6 -0
- package/dist/primitives/null/index.d.ts.map +1 -0
- package/dist/primitives/null/null.d.ts +181 -0
- package/dist/primitives/null/null.d.ts.map +1 -0
- package/dist/primitives/null/prompts.d.ts +39 -0
- package/dist/primitives/null/prompts.d.ts.map +1 -0
- package/dist/primitives/number/index.d.ts +6 -0
- package/dist/primitives/number/index.d.ts.map +1 -0
- package/dist/primitives/number/number.d.ts +154 -0
- package/dist/primitives/number/number.d.ts.map +1 -0
- package/dist/primitives/number/number.prompts.d.ts +53 -0
- package/dist/primitives/number/number.prompts.d.ts.map +1 -0
- package/dist/primitives/string/evals/classify.evals.d.ts +7 -0
- package/dist/primitives/string/evals/classify.evals.d.ts.map +1 -0
- package/dist/primitives/string/evals/index.d.ts +6 -0
- package/dist/primitives/string/evals/index.d.ts.map +1 -0
- package/dist/primitives/string/evals/semanticallyEquals.evals.d.ts +7 -0
- package/dist/primitives/string/evals/semanticallyEquals.evals.d.ts.map +1 -0
- package/dist/primitives/string/index.d.ts +206 -0
- package/dist/primitives/string/index.d.ts.map +1 -0
- package/dist/primitives/string/string.prompts.d.ts +45 -0
- package/dist/primitives/string/string.prompts.d.ts.map +1 -0
- package/dist/primitives/symbol/index.d.ts +6 -0
- package/dist/primitives/symbol/index.d.ts.map +1 -0
- package/dist/primitives/symbol/symbol.d.ts +176 -0
- package/dist/primitives/symbol/symbol.d.ts.map +1 -0
- package/dist/primitives/symbol/symbol.prompts.d.ts +53 -0
- package/dist/primitives/symbol/symbol.prompts.d.ts.map +1 -0
- package/dist/primitives/undefined/index.d.ts +5 -0
- package/dist/primitives/undefined/index.d.ts.map +1 -0
- package/dist/primitives/undefined/prompts.d.ts +40 -0
- package/dist/primitives/undefined/prompts.d.ts.map +1 -0
- package/dist/primitives/undefined/undefined.d.ts +216 -0
- package/dist/primitives/undefined/undefined.d.ts.map +1 -0
- package/dist/primitives/void/index.d.ts +5 -0
- package/dist/primitives/void/index.d.ts.map +1 -0
- package/dist/primitives/void/prompts.d.ts +37 -0
- package/dist/primitives/void/prompts.d.ts.map +1 -0
- package/dist/primitives/void/void.d.ts +172 -0
- package/dist/primitives/void/void.d.ts.map +1 -0
- package/dist/shared/base-classes.d.ts +331 -0
- package/dist/shared/base-classes.d.ts.map +1 -0
- package/dist/shared/eval-types.d.ts +82 -0
- package/dist/shared/eval-types.d.ts.map +1 -0
- package/dist/shared/index.d.ts +25 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/interfaces.d.ts +799 -0
- package/dist/shared/interfaces.d.ts.map +1 -0
- package/dist/shared/types.d.ts +335 -0
- package/dist/shared/types.d.ts.map +1 -0
- package/dist/types/array/array.d.ts +250 -0
- package/dist/types/array/array.d.ts.map +1 -0
- package/dist/types/array/index.d.ts +6 -0
- package/dist/types/array/index.d.ts.map +1 -0
- package/dist/types/array/prompts.d.ts +63 -0
- package/dist/types/array/prompts.d.ts.map +1 -0
- package/dist/types/blob-file/blob.d.ts +188 -0
- package/dist/types/blob-file/blob.d.ts.map +1 -0
- package/dist/types/blob-file/file.d.ts +144 -0
- package/dist/types/blob-file/file.d.ts.map +1 -0
- package/dist/types/blob-file/index.d.ts +8 -0
- package/dist/types/blob-file/index.d.ts.map +1 -0
- package/dist/types/blob-file/prompts.d.ts +101 -0
- package/dist/types/blob-file/prompts.d.ts.map +1 -0
- package/dist/types/bun/bun.d.ts +266 -0
- package/dist/types/bun/bun.d.ts.map +1 -0
- package/dist/types/bun/index.d.ts +7 -0
- package/dist/types/bun/index.d.ts.map +1 -0
- package/dist/types/bun/prompts.d.ts +93 -0
- package/dist/types/bun/prompts.d.ts.map +1 -0
- package/dist/types/callable/callable.d.ts +200 -0
- package/dist/types/callable/callable.d.ts.map +1 -0
- package/dist/types/callable/index.d.ts +6 -0
- package/dist/types/callable/index.d.ts.map +1 -0
- package/dist/types/callable/prompts.d.ts +45 -0
- package/dist/types/callable/prompts.d.ts.map +1 -0
- package/dist/types/constructable/constructable.d.ts +150 -0
- package/dist/types/constructable/constructable.d.ts.map +1 -0
- package/dist/types/constructable/index.d.ts +5 -0
- package/dist/types/constructable/index.d.ts.map +1 -0
- package/dist/types/constructable/prompts.d.ts +41 -0
- package/dist/types/constructable/prompts.d.ts.map +1 -0
- package/dist/types/date/date.d.ts +258 -0
- package/dist/types/date/date.d.ts.map +1 -0
- package/dist/types/date/index.d.ts +6 -0
- package/dist/types/date/index.d.ts.map +1 -0
- package/dist/types/date/prompts.d.ts +93 -0
- package/dist/types/date/prompts.d.ts.map +1 -0
- package/dist/types/error/error.d.ts +191 -0
- package/dist/types/error/error.d.ts.map +1 -0
- package/dist/types/error/index.d.ts +6 -0
- package/dist/types/error/index.d.ts.map +1 -0
- package/dist/types/error/prompts.d.ts +49 -0
- package/dist/types/error/prompts.d.ts.map +1 -0
- package/dist/types/event-emitter/event-emitter.d.ts +230 -0
- package/dist/types/event-emitter/event-emitter.d.ts.map +1 -0
- package/dist/types/event-emitter/index.d.ts +6 -0
- package/dist/types/event-emitter/index.d.ts.map +1 -0
- package/dist/types/event-emitter/prompts.d.ts +51 -0
- package/dist/types/event-emitter/prompts.d.ts.map +1 -0
- package/dist/types/fetch/headers.d.ts +126 -0
- package/dist/types/fetch/headers.d.ts.map +1 -0
- package/dist/types/fetch/index.d.ts +9 -0
- package/dist/types/fetch/index.d.ts.map +1 -0
- package/dist/types/fetch/prompts.d.ts +139 -0
- package/dist/types/fetch/prompts.d.ts.map +1 -0
- package/dist/types/fetch/request.d.ts +188 -0
- package/dist/types/fetch/request.d.ts.map +1 -0
- package/dist/types/fetch/response.d.ts +155 -0
- package/dist/types/fetch/response.d.ts.map +1 -0
- package/dist/types/form-data/form-data.d.ts +277 -0
- package/dist/types/form-data/form-data.d.ts.map +1 -0
- package/dist/types/form-data/index.d.ts +7 -0
- package/dist/types/form-data/index.d.ts.map +1 -0
- package/dist/types/form-data/prompts.d.ts +80 -0
- package/dist/types/form-data/prompts.d.ts.map +1 -0
- package/dist/types/index.d.ts +29 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/map/index.d.ts +6 -0
- package/dist/types/map/index.d.ts.map +1 -0
- package/dist/types/map/map.d.ts +204 -0
- package/dist/types/map/map.d.ts.map +1 -0
- package/dist/types/map/prompts.d.ts +56 -0
- package/dist/types/map/prompts.d.ts.map +1 -0
- package/dist/types/never/index.d.ts +5 -0
- package/dist/types/never/index.d.ts.map +1 -0
- package/dist/types/never/never.d.ts +220 -0
- package/dist/types/never/never.d.ts.map +1 -0
- package/dist/types/never/prompts.d.ts +50 -0
- package/dist/types/never/prompts.d.ts.map +1 -0
- package/dist/types/object/index.d.ts +6 -0
- package/dist/types/object/index.d.ts.map +1 -0
- package/dist/types/object/object.d.ts +162 -0
- package/dist/types/object/object.d.ts.map +1 -0
- package/dist/types/object/prompts.d.ts +55 -0
- package/dist/types/object/prompts.d.ts.map +1 -0
- package/dist/types/object-literal/index.d.ts +6 -0
- package/dist/types/object-literal/index.d.ts.map +1 -0
- package/dist/types/object-literal/object-literal.d.ts +223 -0
- package/dist/types/object-literal/object-literal.d.ts.map +1 -0
- package/dist/types/object-literal/prompts.d.ts +49 -0
- package/dist/types/object-literal/prompts.d.ts.map +1 -0
- package/dist/types/promise/index.d.ts +6 -0
- package/dist/types/promise/index.d.ts.map +1 -0
- package/dist/types/promise/promise.d.ts +240 -0
- package/dist/types/promise/promise.d.ts.map +1 -0
- package/dist/types/promise/prompts.d.ts +45 -0
- package/dist/types/promise/prompts.d.ts.map +1 -0
- package/dist/types/record/index.d.ts +5 -0
- package/dist/types/record/index.d.ts.map +1 -0
- package/dist/types/record/prompts.d.ts +45 -0
- package/dist/types/record/prompts.d.ts.map +1 -0
- package/dist/types/record/record.d.ts +179 -0
- package/dist/types/record/record.d.ts.map +1 -0
- package/dist/types/regexp/index.d.ts +7 -0
- package/dist/types/regexp/index.d.ts.map +1 -0
- package/dist/types/regexp/prompts.d.ts +56 -0
- package/dist/types/regexp/prompts.d.ts.map +1 -0
- package/dist/types/regexp/regexp.d.ts +160 -0
- package/dist/types/regexp/regexp.d.ts.map +1 -0
- package/dist/types/set/index.d.ts +6 -0
- package/dist/types/set/index.d.ts.map +1 -0
- package/dist/types/set/prompts.d.ts +60 -0
- package/dist/types/set/prompts.d.ts.map +1 -0
- package/dist/types/set/set.d.ts +261 -0
- package/dist/types/set/set.d.ts.map +1 -0
- package/dist/types/streams/index.d.ts +8 -0
- package/dist/types/streams/index.d.ts.map +1 -0
- package/dist/types/streams/prompts.d.ts +53 -0
- package/dist/types/streams/prompts.d.ts.map +1 -0
- package/dist/types/streams/readable-stream.d.ts +148 -0
- package/dist/types/streams/readable-stream.d.ts.map +1 -0
- package/dist/types/streams/transform-stream.d.ts +67 -0
- package/dist/types/streams/transform-stream.d.ts.map +1 -0
- package/dist/types/streams/writable-stream.d.ts +111 -0
- package/dist/types/streams/writable-stream.d.ts.map +1 -0
- package/dist/types/text-codec/index.d.ts +12 -0
- package/dist/types/text-codec/index.d.ts.map +1 -0
- package/dist/types/text-codec/prompts.d.ts +79 -0
- package/dist/types/text-codec/prompts.d.ts.map +1 -0
- package/dist/types/text-codec/text-codec.d.ts +305 -0
- package/dist/types/text-codec/text-codec.d.ts.map +1 -0
- package/dist/types/tuple/index.d.ts +6 -0
- package/dist/types/tuple/index.d.ts.map +1 -0
- package/dist/types/tuple/prompts.d.ts +41 -0
- package/dist/types/tuple/prompts.d.ts.map +1 -0
- package/dist/types/tuple/tuple.d.ts +221 -0
- package/dist/types/tuple/tuple.d.ts.map +1 -0
- package/dist/types/unknown/index.d.ts +5 -0
- package/dist/types/unknown/index.d.ts.map +1 -0
- package/dist/types/unknown/prompts.d.ts +45 -0
- package/dist/types/unknown/prompts.d.ts.map +1 -0
- package/dist/types/unknown/unknown.d.ts +220 -0
- package/dist/types/unknown/unknown.d.ts.map +1 -0
- package/dist/types/url/index.d.ts +7 -0
- package/dist/types/url/index.d.ts.map +1 -0
- package/dist/types/url/prompts.d.ts +93 -0
- package/dist/types/url/prompts.d.ts.map +1 -0
- package/dist/types/url/url.d.ts +270 -0
- package/dist/types/url/url.d.ts.map +1 -0
- package/package.json +73 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
# semantic-primitives
|
|
2
|
+
|
|
3
|
+
TypeScript library providing LLM-enhanced primitive types. Smart versions of bools, strings, numbers, and arrays with built-in semantic understanding, fuzzy matching, natural language parsing, and AI-powered operations. Drop-in replacements for native types that understand context and meaning.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
bun add semantic-primitives
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or with npm:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install semantic-primitives
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Quick Start
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { complete, LLMClient } from 'semantic-primitives';
|
|
21
|
+
|
|
22
|
+
// Simple completion using default provider
|
|
23
|
+
const response = await complete('What is 2 + 2?');
|
|
24
|
+
console.log(response.content); // "4"
|
|
25
|
+
|
|
26
|
+
// Or use the client for more control
|
|
27
|
+
const client = new LLMClient();
|
|
28
|
+
const result = await client.complete({
|
|
29
|
+
prompt: 'Explain quantum computing in one sentence.',
|
|
30
|
+
maxTokens: 100,
|
|
31
|
+
});
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Configuration
|
|
35
|
+
|
|
36
|
+
### Environment Variables
|
|
37
|
+
|
|
38
|
+
Create a `.env` file based on `.env.example`:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
# LLM Provider Selection (openai, anthropic, or google)
|
|
42
|
+
# Default: google
|
|
43
|
+
LLM_PROVIDER=google
|
|
44
|
+
|
|
45
|
+
# OpenAI Configuration
|
|
46
|
+
OPENAI_API_KEY=your-openai-api-key
|
|
47
|
+
OPENAI_MODEL=gpt-4o-mini
|
|
48
|
+
|
|
49
|
+
# Anthropic Configuration
|
|
50
|
+
ANTHROPIC_API_KEY=your-anthropic-api-key
|
|
51
|
+
ANTHROPIC_MODEL=claude-sonnet-4-20250514
|
|
52
|
+
|
|
53
|
+
# Google Configuration (default provider)
|
|
54
|
+
GOOGLE_API_KEY=your-google-api-key
|
|
55
|
+
GOOGLE_MODEL=gemini-2.0-flash-lite
|
|
56
|
+
|
|
57
|
+
# Optional: Default settings
|
|
58
|
+
LLM_MAX_TOKENS=1024
|
|
59
|
+
LLM_TEMPERATURE=0.7
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Bun automatically loads `.env` files, so no additional setup is required.
|
|
63
|
+
|
|
64
|
+
### Provider Configuration
|
|
65
|
+
|
|
66
|
+
#### Google (Default Provider)
|
|
67
|
+
|
|
68
|
+
Google's Gemini models are the default. To configure:
|
|
69
|
+
|
|
70
|
+
1. Get an API key from [Google AI Studio](https://aistudio.google.com/apikey)
|
|
71
|
+
2. Set environment variables:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
GOOGLE_API_KEY=your-google-api-key
|
|
75
|
+
GOOGLE_MODEL=gemini-2.0-flash-lite # Default model
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Available models: `gemini-2.0-flash-lite`, `gemini-2.0-flash`, `gemini-1.5-pro`, `gemini-1.5-flash`
|
|
79
|
+
|
|
80
|
+
#### OpenAI
|
|
81
|
+
|
|
82
|
+
To use OpenAI models:
|
|
83
|
+
|
|
84
|
+
1. Get an API key from [OpenAI Platform](https://platform.openai.com/api-keys)
|
|
85
|
+
2. Set environment variables:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
LLM_PROVIDER=openai
|
|
89
|
+
OPENAI_API_KEY=your-openai-api-key
|
|
90
|
+
OPENAI_MODEL=gpt-4o-mini # Default model
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Available models: `gpt-4o`, `gpt-4o-mini`, `gpt-4-turbo`, `gpt-4`, `gpt-3.5-turbo`
|
|
94
|
+
|
|
95
|
+
#### Anthropic
|
|
96
|
+
|
|
97
|
+
To use Anthropic's Claude models:
|
|
98
|
+
|
|
99
|
+
1. Get an API key from [Anthropic Console](https://console.anthropic.com/)
|
|
100
|
+
2. Set environment variables:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
LLM_PROVIDER=anthropic
|
|
104
|
+
ANTHROPIC_API_KEY=your-anthropic-api-key
|
|
105
|
+
ANTHROPIC_MODEL=claude-sonnet-4-20250514 # Default model
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Available models: `claude-opus-4-20250514`, `claude-sonnet-4-20250514`, `claude-3-5-sonnet-20241022`, `claude-3-haiku-20240307`
|
|
109
|
+
|
|
110
|
+
### Programmatic Configuration
|
|
111
|
+
|
|
112
|
+
You can also configure providers in code without using environment variables:
|
|
113
|
+
|
|
114
|
+
```typescript
|
|
115
|
+
import { LLMClient } from 'semantic-primitives';
|
|
116
|
+
|
|
117
|
+
// Configure with explicit API keys
|
|
118
|
+
const client = new LLMClient({
|
|
119
|
+
provider: 'anthropic',
|
|
120
|
+
apiKeys: {
|
|
121
|
+
openai: 'sk-...',
|
|
122
|
+
anthropic: 'sk-ant-...',
|
|
123
|
+
google: 'AIza...',
|
|
124
|
+
},
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
// Override provider and model per-request
|
|
128
|
+
const response = await client.complete({
|
|
129
|
+
prompt: 'Hello!',
|
|
130
|
+
provider: 'openai', // Use OpenAI for this request
|
|
131
|
+
model: 'gpt-4o', // Use specific model
|
|
132
|
+
maxTokens: 500,
|
|
133
|
+
temperature: 0.5,
|
|
134
|
+
});
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Configuration Priority
|
|
138
|
+
|
|
139
|
+
Settings are resolved in the following order (highest to lowest priority):
|
|
140
|
+
|
|
141
|
+
1. **Per-request options** - `provider`, `model`, etc. passed to `complete()` or `chat()`
|
|
142
|
+
2. **Client constructor** - Options passed when creating `LLMClient`
|
|
143
|
+
3. **Environment variables** - `LLM_PROVIDER`, `OPENAI_MODEL`, etc.
|
|
144
|
+
4. **Built-in defaults** - Google with `gemini-2.0-flash-lite`
|
|
145
|
+
|
|
146
|
+
## API Reference
|
|
147
|
+
|
|
148
|
+
### LLMClient
|
|
149
|
+
|
|
150
|
+
The main client class for interacting with LLM providers.
|
|
151
|
+
|
|
152
|
+
```typescript
|
|
153
|
+
import { LLMClient } from 'semantic-primitives';
|
|
154
|
+
|
|
155
|
+
const client = new LLMClient({
|
|
156
|
+
provider: 'openai', // Optional: override LLM_PROVIDER env var
|
|
157
|
+
apiKeys: {
|
|
158
|
+
openai: 'sk-...',
|
|
159
|
+
anthropic: 'sk-ant-...',
|
|
160
|
+
google: 'AIza...',
|
|
161
|
+
},
|
|
162
|
+
});
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
#### `client.complete(options)`
|
|
166
|
+
|
|
167
|
+
Generate a completion from a prompt.
|
|
168
|
+
|
|
169
|
+
```typescript
|
|
170
|
+
const response = await client.complete({
|
|
171
|
+
prompt: 'Write a haiku about programming',
|
|
172
|
+
systemPrompt: 'You are a creative poet.',
|
|
173
|
+
maxTokens: 100,
|
|
174
|
+
temperature: 0.8,
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
console.log(response.content);
|
|
178
|
+
console.log(response.usage); // { promptTokens, completionTokens, totalTokens }
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
**Options:**
|
|
182
|
+
|
|
183
|
+
| Option | Type | Description |
|
|
184
|
+
|--------|------|-------------|
|
|
185
|
+
| `prompt` | `string` | The prompt to send to the model (required) |
|
|
186
|
+
| `systemPrompt` | `string` | System message to set context |
|
|
187
|
+
| `provider` | `'openai' \| 'anthropic' \| 'google'` | Override the default provider |
|
|
188
|
+
| `model` | `string` | Override the default model |
|
|
189
|
+
| `maxTokens` | `number` | Maximum tokens to generate |
|
|
190
|
+
| `temperature` | `number` | Response randomness (0-2) |
|
|
191
|
+
| `topP` | `number` | Top-p sampling parameter |
|
|
192
|
+
| `stopSequences` | `string[]` | Stop sequences to end generation |
|
|
193
|
+
|
|
194
|
+
#### `client.chat(options)`
|
|
195
|
+
|
|
196
|
+
Generate a response in a multi-turn conversation.
|
|
197
|
+
|
|
198
|
+
```typescript
|
|
199
|
+
const response = await client.chat({
|
|
200
|
+
messages: [
|
|
201
|
+
{ role: 'user', content: 'Hello!' },
|
|
202
|
+
{ role: 'assistant', content: 'Hi there! How can I help you today?' },
|
|
203
|
+
{ role: 'user', content: 'What is the capital of France?' },
|
|
204
|
+
],
|
|
205
|
+
systemPrompt: 'You are a helpful geography assistant.',
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
console.log(response.content); // "The capital of France is Paris."
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
**Options:**
|
|
212
|
+
|
|
213
|
+
| Option | Type | Description |
|
|
214
|
+
|--------|------|-------------|
|
|
215
|
+
| `messages` | `Message[]` | Array of conversation messages (required) |
|
|
216
|
+
| `systemPrompt` | `string` | System message (prepended to messages) |
|
|
217
|
+
| `provider` | `'openai' \| 'anthropic' \| 'google'` | Override the default provider |
|
|
218
|
+
| `model` | `string` | Override the default model |
|
|
219
|
+
| `maxTokens` | `number` | Maximum tokens to generate |
|
|
220
|
+
| `temperature` | `number` | Response randomness (0-2) |
|
|
221
|
+
|
|
222
|
+
#### `client.withProvider(provider)`
|
|
223
|
+
|
|
224
|
+
Create a new client instance with a different provider.
|
|
225
|
+
|
|
226
|
+
```typescript
|
|
227
|
+
const openaiClient = new LLMClient({ provider: 'openai' });
|
|
228
|
+
const anthropicClient = openaiClient.withProvider('anthropic');
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
### Convenience Functions
|
|
232
|
+
|
|
233
|
+
#### `complete(prompt, options?)`
|
|
234
|
+
|
|
235
|
+
Shorthand for simple completions using the default client.
|
|
236
|
+
|
|
237
|
+
```typescript
|
|
238
|
+
import { complete } from 'semantic-primitives';
|
|
239
|
+
|
|
240
|
+
const response = await complete('What is the meaning of life?');
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
#### `chat(options)`
|
|
244
|
+
|
|
245
|
+
Shorthand for chat completions using the default client.
|
|
246
|
+
|
|
247
|
+
```typescript
|
|
248
|
+
import { chat } from 'semantic-primitives';
|
|
249
|
+
|
|
250
|
+
const response = await chat({
|
|
251
|
+
messages: [{ role: 'user', content: 'Hello!' }],
|
|
252
|
+
});
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
#### `getClient()`
|
|
256
|
+
|
|
257
|
+
Get the singleton default client instance.
|
|
258
|
+
|
|
259
|
+
```typescript
|
|
260
|
+
import { getClient } from 'semantic-primitives';
|
|
261
|
+
|
|
262
|
+
const client = getClient();
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### Direct Provider Access
|
|
266
|
+
|
|
267
|
+
For advanced use cases, you can instantiate providers directly:
|
|
268
|
+
|
|
269
|
+
```typescript
|
|
270
|
+
import { OpenAIProvider, AnthropicProvider, GoogleProvider } from 'semantic-primitives';
|
|
271
|
+
|
|
272
|
+
const openai = new OpenAIProvider('sk-...', 'gpt-4o');
|
|
273
|
+
const anthropic = new AnthropicProvider('sk-ant-...', 'claude-opus-4-20250514');
|
|
274
|
+
const google = new GoogleProvider('AIza...', 'gemini-2.0-flash-lite');
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### Types
|
|
278
|
+
|
|
279
|
+
```typescript
|
|
280
|
+
import type {
|
|
281
|
+
LLMProvider, // 'openai' | 'anthropic' | 'google'
|
|
282
|
+
Message, // { role: MessageRole; content: string }
|
|
283
|
+
MessageRole, // 'system' | 'user' | 'assistant'
|
|
284
|
+
LLMConfig, // Base configuration options
|
|
285
|
+
CompletionOptions, // Options for complete()
|
|
286
|
+
ChatOptions, // Options for chat()
|
|
287
|
+
LLMResponse, // Response from LLM calls
|
|
288
|
+
} from 'semantic-primitives';
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
### Response Format
|
|
292
|
+
|
|
293
|
+
All LLM methods return an `LLMResponse`:
|
|
294
|
+
|
|
295
|
+
```typescript
|
|
296
|
+
interface LLMResponse {
|
|
297
|
+
content: string; // Generated text
|
|
298
|
+
provider: LLMProvider; // Provider that generated response
|
|
299
|
+
model: string; // Model that was used
|
|
300
|
+
usage?: {
|
|
301
|
+
promptTokens: number;
|
|
302
|
+
completionTokens: number;
|
|
303
|
+
totalTokens: number;
|
|
304
|
+
};
|
|
305
|
+
raw?: unknown; // Raw provider response
|
|
306
|
+
}
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
## Examples
|
|
310
|
+
|
|
311
|
+
### Switching Providers at Runtime
|
|
312
|
+
|
|
313
|
+
```typescript
|
|
314
|
+
import { LLMClient } from 'semantic-primitives';
|
|
315
|
+
|
|
316
|
+
const client = new LLMClient();
|
|
317
|
+
|
|
318
|
+
// Use OpenAI for creative tasks
|
|
319
|
+
const poem = await client.complete({
|
|
320
|
+
prompt: 'Write a poem about the ocean',
|
|
321
|
+
provider: 'openai',
|
|
322
|
+
temperature: 0.9,
|
|
323
|
+
});
|
|
324
|
+
|
|
325
|
+
// Use Anthropic for analysis
|
|
326
|
+
const analysis = await client.complete({
|
|
327
|
+
prompt: 'Analyze this poem: ' + poem.content,
|
|
328
|
+
provider: 'anthropic',
|
|
329
|
+
temperature: 0.3,
|
|
330
|
+
});
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
### Building a Chatbot
|
|
334
|
+
|
|
335
|
+
```typescript
|
|
336
|
+
import { LLMClient, type Message } from 'semantic-primitives';
|
|
337
|
+
|
|
338
|
+
const client = new LLMClient();
|
|
339
|
+
const conversationHistory: Message[] = [];
|
|
340
|
+
|
|
341
|
+
async function sendMessage(userMessage: string): Promise<string> {
|
|
342
|
+
conversationHistory.push({ role: 'user', content: userMessage });
|
|
343
|
+
|
|
344
|
+
const response = await client.chat({
|
|
345
|
+
messages: conversationHistory,
|
|
346
|
+
systemPrompt: 'You are a helpful assistant.',
|
|
347
|
+
});
|
|
348
|
+
|
|
349
|
+
conversationHistory.push({ role: 'assistant', content: response.content });
|
|
350
|
+
return response.content;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
// Usage
|
|
354
|
+
await sendMessage('Hello!');
|
|
355
|
+
await sendMessage('What can you help me with?');
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
### Error Handling
|
|
359
|
+
|
|
360
|
+
```typescript
|
|
361
|
+
import { LLMClient } from 'semantic-primitives';
|
|
362
|
+
|
|
363
|
+
const client = new LLMClient();
|
|
364
|
+
|
|
365
|
+
try {
|
|
366
|
+
const response = await client.complete({
|
|
367
|
+
prompt: 'Hello, world!',
|
|
368
|
+
});
|
|
369
|
+
console.log(response.content);
|
|
370
|
+
} catch (error) {
|
|
371
|
+
if (error instanceof Error) {
|
|
372
|
+
console.error('LLM Error:', error.message);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
## Development
|
|
378
|
+
|
|
379
|
+
### Prerequisites
|
|
380
|
+
|
|
381
|
+
- [Bun](https://bun.sh/) v1.0 or later
|
|
382
|
+
|
|
383
|
+
### Setup
|
|
384
|
+
|
|
385
|
+
```bash
|
|
386
|
+
# Clone the repository
|
|
387
|
+
git clone https://github.com/elicollinson/semantic-primitives.git
|
|
388
|
+
cd semantic-primitives
|
|
389
|
+
|
|
390
|
+
# Install dependencies
|
|
391
|
+
bun install
|
|
392
|
+
|
|
393
|
+
# Copy environment template
|
|
394
|
+
cp .env.example .env
|
|
395
|
+
# Edit .env with your API keys
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
### Scripts
|
|
399
|
+
|
|
400
|
+
```bash
|
|
401
|
+
# Run tests
|
|
402
|
+
bun test
|
|
403
|
+
|
|
404
|
+
# Type check
|
|
405
|
+
bun run typecheck
|
|
406
|
+
|
|
407
|
+
# Build library
|
|
408
|
+
bun run build
|
|
409
|
+
|
|
410
|
+
# Development mode with watch
|
|
411
|
+
bun run dev
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
### Project Structure
|
|
415
|
+
|
|
416
|
+
```
|
|
417
|
+
semantic-primitives/
|
|
418
|
+
├── src/
|
|
419
|
+
│ ├── index.ts # Main library exports
|
|
420
|
+
│ └── llm/
|
|
421
|
+
│ ├── index.ts # LLM module exports
|
|
422
|
+
│ ├── types.ts # Type definitions
|
|
423
|
+
│ ├── client.ts # Unified LLMClient
|
|
424
|
+
│ ├── providers/
|
|
425
|
+
│ │ ├── index.ts # Provider exports
|
|
426
|
+
│ │ ├── openai.ts # OpenAI implementation
|
|
427
|
+
│ │ ├── anthropic.ts # Anthropic implementation
|
|
428
|
+
│ │ └── google.ts # Google implementation
|
|
429
|
+
│ └── __tests__/
|
|
430
|
+
│ ├── types.test.ts
|
|
431
|
+
│ ├── providers.test.ts
|
|
432
|
+
│ └── client.test.ts
|
|
433
|
+
├── .env.example # Environment template
|
|
434
|
+
├── package.json
|
|
435
|
+
├── tsconfig.json
|
|
436
|
+
└── README.md
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
## Supported Providers
|
|
440
|
+
|
|
441
|
+
| Provider | Default Model | Other Models | Status |
|
|
442
|
+
|----------|---------------|--------------|--------|
|
|
443
|
+
| Google (default) | gemini-2.0-flash-lite | Gemini 2.0 Flash, Gemini 1.5 Pro, etc. | Supported |
|
|
444
|
+
| OpenAI | gpt-4o-mini | GPT-4o, GPT-4, etc. | Supported |
|
|
445
|
+
| Anthropic | claude-sonnet-4-20250514 | Claude Opus 4, etc. | Supported |
|
|
446
|
+
|
|
447
|
+
## License
|
|
448
|
+
|
|
449
|
+
MIT
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,cAAc,gBAAgB,CAAC;AAG/B,cAAc,uBAAuB,CAAC;AAGtC,cAAc,kBAAkB,CAAC"}
|