@finalai/agent-definition 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.
Potentially problematic release.
This version of @finalai/agent-definition might be problematic. Click here for more details.
- package/README.md +16 -0
- package/THIRD_PARTY_NOTICES.md +303 -0
- package/dist/compiler-assets/chunk-2CZRHOLL.ts +10 -0
- package/dist/compiler-assets/chunk-32O3ODZE.ts +39 -0
- package/dist/compiler-assets/chunk-5BK6FVRE.ts +75 -0
- package/dist/compiler-assets/chunk-6WR3PGNF.ts +0 -0
- package/dist/compiler-assets/chunk-7QP2CKPI.ts +30 -0
- package/dist/compiler-assets/chunk-7VSSVZM4.ts +55 -0
- package/dist/compiler-assets/chunk-7WGYG73V.ts +42 -0
- package/dist/compiler-assets/chunk-BLB6JGLO.ts +481 -0
- package/dist/compiler-assets/chunk-CWWRTRWW.ts +76 -0
- package/dist/compiler-assets/chunk-EVQIK62B.ts +188 -0
- package/dist/compiler-assets/chunk-GNR7XBPN.ts +3364 -0
- package/dist/compiler-assets/chunk-GTUZOATD.ts +10 -0
- package/dist/compiler-assets/chunk-HFS4KLEL.ts +10 -0
- package/dist/compiler-assets/chunk-HGW4YHAY.ts +6865 -0
- package/dist/compiler-assets/chunk-HNPUTP35.ts +172 -0
- package/dist/compiler-assets/chunk-JIPNTA56.ts +59 -0
- package/dist/compiler-assets/chunk-JNJE72EH.ts +10 -0
- package/dist/compiler-assets/chunk-JPY4L2UJ.ts +349 -0
- package/dist/compiler-assets/chunk-JTGTLYDT.ts +0 -0
- package/dist/compiler-assets/chunk-LUSAAV4L.ts +33 -0
- package/dist/compiler-assets/chunk-MZMSKIKU.ts +472 -0
- package/dist/compiler-assets/chunk-NMYHO2QN.ts +25 -0
- package/dist/compiler-assets/chunk-NYTOYKKF.ts +28 -0
- package/dist/compiler-assets/chunk-OWC6SFFF.ts +295 -0
- package/dist/compiler-assets/chunk-QMKWAFVZ.ts +59 -0
- package/dist/compiler-assets/chunk-QMWTDPNT.ts +79 -0
- package/dist/compiler-assets/chunk-RWUIMTBI.ts +13 -0
- package/dist/compiler-assets/chunk-SKTNMUO7.ts +64 -0
- package/dist/compiler-assets/chunk-T6WG4L4M.ts +19 -0
- package/dist/compiler-assets/chunk-TATN3PYK.ts +81 -0
- package/dist/compiler-assets/chunk-VHXHUU7L.ts +16 -0
- package/dist/compiler-assets/chunk-WMXMVFHM.ts +121 -0
- package/dist/compiler-assets/chunk-XHKPWT3G.ts +55 -0
- package/dist/compiler-assets/chunk-ZDLVA6XF.ts +476 -0
- package/dist/compiler-assets/src/authoring/agent.ts +10 -0
- package/dist/compiler-assets/src/authoring/approval.ts +19 -0
- package/dist/compiler-assets/src/authoring/brand.ts +23 -0
- package/dist/compiler-assets/src/authoring/channels.ts +26 -0
- package/dist/compiler-assets/src/authoring/connections.ts +10 -0
- package/dist/compiler-assets/src/authoring/context.ts +7 -0
- package/dist/compiler-assets/src/authoring/credentials.ts +21 -0
- package/dist/compiler-assets/src/authoring/dynamic.ts +10 -0
- package/dist/compiler-assets/src/authoring/harness.ts +17 -0
- package/dist/compiler-assets/src/authoring/hooks.ts +28 -0
- package/dist/compiler-assets/src/authoring/index.ts +110 -0
- package/dist/compiler-assets/src/authoring/instructions.ts +14 -0
- package/dist/compiler-assets/src/authoring/sandbox.ts +25 -0
- package/dist/compiler-assets/src/authoring/schedules.ts +10 -0
- package/dist/compiler-assets/src/authoring/skills.ts +10 -0
- package/dist/compiler-assets/src/authoring/tools.ts +23 -0
- package/dist/compiler-assets/src/compatibility.ts +14810 -0
- package/dist/compiler-assets/src/compiler/evaluate-child.mjs +77 -0
- package/dist/compiler-assets/src/index.ts +195 -0
- package/dist/compiler-assets/src/manifest.ts +72 -0
- package/dist/compiler-assets/src/resolve.ts +19 -0
- package/dist/compiler-assets/src/runtime/bundle.ts +72 -0
- package/dist/compiler-assets/src/runtime/describe.ts +31 -0
- package/dist/compiler-assets/src/runtime/described.ts +142 -0
- package/dist/compiler-assets/src/runtime/isolate.ts +28 -0
- package/dist/compiler-assets/src/runtime/layout.ts +15 -0
- package/dist/compiler-assets/src/runtime/lower.ts +52 -0
- package/dist/compiler-assets/src/runtime/schema-validation.ts +21 -0
- package/dist/compiler-assets/src/runtime/values.ts +38 -0
- package/dist/modules/authoring/agent.d.mts +22 -0
- package/dist/modules/authoring/agent.mjs +6 -0
- package/dist/modules/authoring/agent.mjs.map +7 -0
- package/dist/modules/authoring/approval.d.mts +17 -0
- package/dist/modules/authoring/approval.mjs +42 -0
- package/dist/modules/authoring/approval.mjs.map +7 -0
- package/dist/modules/authoring/brand.d.mts +27 -0
- package/dist/modules/authoring/brand.mjs +51 -0
- package/dist/modules/authoring/brand.mjs.map +7 -0
- package/dist/modules/authoring/channels.d.mts +41 -0
- package/dist/modules/authoring/channels.mjs +65 -0
- package/dist/modules/authoring/channels.mjs.map +7 -0
- package/dist/modules/authoring/connections.d.mts +23 -0
- package/dist/modules/authoring/connections.mjs +6 -0
- package/dist/modules/authoring/connections.mjs.map +7 -0
- package/dist/modules/authoring/context.d.mts +83 -0
- package/dist/modules/authoring/context.mjs +12 -0
- package/dist/modules/authoring/context.mjs.map +7 -0
- package/dist/modules/authoring/credentials.d.mts +10 -0
- package/dist/modules/authoring/credentials.mjs +31 -0
- package/dist/modules/authoring/credentials.mjs.map +7 -0
- package/dist/modules/authoring/dynamic.d.mts +30 -0
- package/dist/modules/authoring/dynamic.mjs +15 -0
- package/dist/modules/authoring/dynamic.mjs.map +7 -0
- package/dist/modules/authoring/harness.d.mts +85 -0
- package/dist/modules/authoring/harness.mjs +55 -0
- package/dist/modules/authoring/harness.mjs.map +7 -0
- package/dist/modules/authoring/hooks.d.mts +120 -0
- package/dist/modules/authoring/hooks.mjs +72 -0
- package/dist/modules/authoring/hooks.mjs.map +7 -0
- package/dist/modules/authoring/index.d.mts +27 -0
- package/dist/modules/authoring/index.mjs +63 -0
- package/dist/modules/authoring/index.mjs.map +7 -0
- package/dist/modules/authoring/instructions.d.mts +13 -0
- package/dist/modules/authoring/instructions.mjs +15 -0
- package/dist/modules/authoring/instructions.mjs.map +7 -0
- package/dist/modules/authoring/sandbox.d.mts +21 -0
- package/dist/modules/authoring/sandbox.mjs +13 -0
- package/dist/modules/authoring/sandbox.mjs.map +7 -0
- package/dist/modules/authoring/schedules.d.mts +8 -0
- package/dist/modules/authoring/schedules.mjs +6 -0
- package/dist/modules/authoring/schedules.mjs.map +7 -0
- package/dist/modules/authoring/skills.d.mts +8 -0
- package/dist/modules/authoring/skills.mjs +6 -0
- package/dist/modules/authoring/skills.mjs.map +7 -0
- package/dist/modules/authoring/tools.d.mts +80 -0
- package/dist/modules/authoring/tools.mjs +70 -0
- package/dist/modules/authoring/tools.mjs.map +7 -0
- package/dist/modules/compatibility.d.mts +36 -0
- package/dist/modules/compatibility.mjs +536 -0
- package/dist/modules/compatibility.mjs.map +7 -0
- package/dist/modules/compiler/assemble.d.mts +30 -0
- package/dist/modules/compiler/assemble.mjs +923 -0
- package/dist/modules/compiler/assemble.mjs.map +7 -0
- package/dist/modules/compiler/bundle.d.mts +22 -0
- package/dist/modules/compiler/bundle.mjs +385 -0
- package/dist/modules/compiler/bundle.mjs.map +7 -0
- package/dist/modules/compiler/diagnostics.d.mts +40 -0
- package/dist/modules/compiler/diagnostics.mjs +38 -0
- package/dist/modules/compiler/diagnostics.mjs.map +7 -0
- package/dist/modules/compiler/discovery.d.mts +36 -0
- package/dist/modules/compiler/discovery.mjs +158 -0
- package/dist/modules/compiler/discovery.mjs.map +7 -0
- package/dist/modules/compiler/evaluate.d.mts +13 -0
- package/dist/modules/compiler/evaluate.mjs +194 -0
- package/dist/modules/compiler/evaluate.mjs.map +7 -0
- package/dist/modules/compiler/files.d.mts +19 -0
- package/dist/modules/compiler/files.mjs +90 -0
- package/dist/modules/compiler/files.mjs.map +7 -0
- package/dist/modules/compiler/frontmatter.d.mts +9 -0
- package/dist/modules/compiler/frontmatter.mjs +34 -0
- package/dist/modules/compiler/frontmatter.mjs.map +7 -0
- package/dist/modules/compiler/index.d.mts +49 -0
- package/dist/modules/compiler/index.mjs +244 -0
- package/dist/modules/compiler/index.mjs.map +7 -0
- package/dist/modules/compiler/load.d.mts +8 -0
- package/dist/modules/compiler/load.mjs +45 -0
- package/dist/modules/compiler/load.mjs.map +7 -0
- package/dist/modules/compiler/local-isolate.d.mts +20 -0
- package/dist/modules/compiler/local-isolate.mjs +93 -0
- package/dist/modules/compiler/local-isolate.mjs.map +7 -0
- package/dist/modules/compiler/packages.d.mts +66 -0
- package/dist/modules/compiler/packages.mjs +307 -0
- package/dist/modules/compiler/packages.mjs.map +7 -0
- package/dist/modules/index.d.mts +7 -0
- package/dist/modules/index.mjs +25 -0
- package/dist/modules/index.mjs.map +7 -0
- package/dist/modules/manifest.d.mts +2 -0
- package/dist/modules/manifest.mjs +67 -0
- package/dist/modules/manifest.mjs.map +7 -0
- package/dist/modules/resolve.d.mts +24 -0
- package/dist/modules/resolve.mjs +176 -0
- package/dist/modules/resolve.mjs.map +7 -0
- package/dist/modules/runtime/bundle.d.mts +12 -0
- package/dist/modules/runtime/bundle.mjs +48 -0
- package/dist/modules/runtime/bundle.mjs.map +7 -0
- package/dist/modules/runtime/describe.d.mts +19 -0
- package/dist/modules/runtime/describe.mjs +471 -0
- package/dist/modules/runtime/describe.mjs.map +7 -0
- package/dist/modules/runtime/described.d.mts +376 -0
- package/dist/modules/runtime/described.mjs +116 -0
- package/dist/modules/runtime/described.mjs.map +7 -0
- package/dist/modules/runtime/isolate.d.mts +70 -0
- package/dist/modules/runtime/isolate.mjs +454 -0
- package/dist/modules/runtime/isolate.mjs.map +7 -0
- package/dist/modules/runtime/layout.d.mts +21 -0
- package/dist/modules/runtime/layout.mjs +24 -0
- package/dist/modules/runtime/layout.mjs.map +7 -0
- package/dist/modules/runtime/lower.d.mts +73 -0
- package/dist/modules/runtime/lower.mjs +463 -0
- package/dist/modules/runtime/lower.mjs.map +7 -0
- package/dist/modules/runtime/schema-validation.d.mts +21 -0
- package/dist/modules/runtime/schema-validation.mjs +238 -0
- package/dist/modules/runtime/schema-validation.mjs.map +7 -0
- package/dist/modules/runtime/values.d.mts +20 -0
- package/dist/modules/runtime/values.mjs +48 -0
- package/dist/modules/runtime/values.mjs.map +7 -0
- package/fixtures/acme-fleet/agent/agent.ts +74 -0
- package/fixtures/acme-fleet/agent/instructions.md +1 -0
- package/fixtures/assistant/agent/agent.ts +16 -0
- package/fixtures/assistant/agent/instructions.md +1 -0
- package/fixtures/assistant/agent/tools/current_time.ts +9 -0
- package/fixtures/assistant-with-tools/agent/agent.ts +16 -0
- package/fixtures/assistant-with-tools/agent/instructions.md +1 -0
- package/fixtures/assistant-with-tools/agent/tools/current_time.ts +9 -0
- package/fixtures/final-connection/agent/agent.ts +15 -0
- package/fixtures/final-connection/agent/connections/final.ts +9 -0
- package/fixtures/release-scout/agent/agent.ts +22 -0
- package/fixtures/release-scout/agent/channels/github-signature.ts +27 -0
- package/fixtures/release-scout/agent/channels/github.ts +38 -0
- package/fixtures/release-scout/agent/connections/linear.ts +9 -0
- package/fixtures/release-scout/agent/hooks/audit.ts +24 -0
- package/fixtures/release-scout/agent/instructions/org-context.ts +26 -0
- package/fixtures/release-scout/agent/instructions.md +2 -0
- package/fixtures/release-scout/agent/sandbox.ts +20 -0
- package/fixtures/release-scout/agent/schedules/daily-digest.md +7 -0
- package/fixtures/release-scout/agent/skills/triage/SKILL.md +8 -0
- package/fixtures/release-scout/agent/skills/triage/checklist.md +3 -0
- package/fixtures/release-scout/agent/tools/lookup_release_notes.ts +24 -0
- package/fixtures/tsconfig.json +5 -0
- package/package.json +94 -0
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# @finalai/agent-definition
|
|
2
|
+
|
|
3
|
+
Provider-independent agent authoring, manifest schemas, dynamic resolution,
|
|
4
|
+
compilation, and compatibility reports. The core has no runtime dependency on
|
|
5
|
+
Final's provider package.
|
|
6
|
+
|
|
7
|
+
Import authoring helpers from the root or focused subpaths. Import the Node
|
|
8
|
+
compiler from `/compiler` and compatibility reports from `/compatibility`.
|
|
9
|
+
The compiler packages its own evaluation assets and works outside a checkout.
|
|
10
|
+
|
|
11
|
+
Final bindings are authored in `@finalai/final-agent-provider`. Applications using
|
|
12
|
+
the convenient `@finalai/agents` exports can compile through that package, which
|
|
13
|
+
resolves those convenience entrypoints for the generic compiler.
|
|
14
|
+
|
|
15
|
+
Custom provider contracts and sandbox implementation helpers are available directly
|
|
16
|
+
from `@finalai/agent-provider` and `@finalai/agent-provider/sandbox`.
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
# Bundled third-party notices
|
|
2
|
+
|
|
3
|
+
## @sagold/json-pointer@7.2.1
|
|
4
|
+
|
|
5
|
+
License: MIT
|
|
6
|
+
|
|
7
|
+
### LICENSE.md
|
|
8
|
+
|
|
9
|
+
MIT License
|
|
10
|
+
|
|
11
|
+
Copyright 2022 Sascha Goldhofer <github@saschagoldhofer.de>
|
|
12
|
+
|
|
13
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## ajv@8.20.0
|
|
21
|
+
|
|
22
|
+
License: MIT
|
|
23
|
+
|
|
24
|
+
### LICENSE
|
|
25
|
+
|
|
26
|
+
The MIT License (MIT)
|
|
27
|
+
|
|
28
|
+
Copyright (c) 2015-2021 Evgeny Poberezkin
|
|
29
|
+
|
|
30
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
31
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
32
|
+
in the Software without restriction, including without limitation the rights
|
|
33
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
34
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
35
|
+
furnished to do so, subject to the following conditions:
|
|
36
|
+
|
|
37
|
+
The above copyright notice and this permission notice shall be included in all
|
|
38
|
+
copies or substantial portions of the Software.
|
|
39
|
+
|
|
40
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
41
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
42
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
43
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
44
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
45
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
46
|
+
SOFTWARE.
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
## ajv-formats@3.0.1
|
|
51
|
+
|
|
52
|
+
License: MIT
|
|
53
|
+
|
|
54
|
+
### LICENSE
|
|
55
|
+
|
|
56
|
+
MIT License
|
|
57
|
+
|
|
58
|
+
Copyright (c) 2020 Evgeny Poberezkin
|
|
59
|
+
|
|
60
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
61
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
62
|
+
in the Software without restriction, including without limitation the rights
|
|
63
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
64
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
65
|
+
furnished to do so, subject to the following conditions:
|
|
66
|
+
|
|
67
|
+
The above copyright notice and this permission notice shall be included in all
|
|
68
|
+
copies or substantial portions of the Software.
|
|
69
|
+
|
|
70
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
71
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
72
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
73
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
74
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
75
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
76
|
+
SOFTWARE.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
## fast-copy@4.1.2
|
|
80
|
+
|
|
81
|
+
License: MIT
|
|
82
|
+
|
|
83
|
+
### LICENSE
|
|
84
|
+
|
|
85
|
+
MIT License
|
|
86
|
+
|
|
87
|
+
Copyright (c) 2025 Tony Quetano
|
|
88
|
+
|
|
89
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
90
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
91
|
+
in the Software without restriction, including without limitation the rights
|
|
92
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
93
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
94
|
+
furnished to do so, subject to the following conditions:
|
|
95
|
+
|
|
96
|
+
The above copyright notice and this permission notice shall be included in all
|
|
97
|
+
copies or substantial portions of the Software.
|
|
98
|
+
|
|
99
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
100
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
101
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
102
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
103
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
104
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
105
|
+
SOFTWARE.
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
## fast-deep-equal@3.1.3
|
|
109
|
+
|
|
110
|
+
License: MIT
|
|
111
|
+
|
|
112
|
+
### LICENSE
|
|
113
|
+
|
|
114
|
+
MIT License
|
|
115
|
+
|
|
116
|
+
Copyright (c) 2017 Evgeny Poberezkin
|
|
117
|
+
|
|
118
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
119
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
120
|
+
in the Software without restriction, including without limitation the rights
|
|
121
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
122
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
123
|
+
furnished to do so, subject to the following conditions:
|
|
124
|
+
|
|
125
|
+
The above copyright notice and this permission notice shall be included in all
|
|
126
|
+
copies or substantial portions of the Software.
|
|
127
|
+
|
|
128
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
129
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
130
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
131
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
132
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
133
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
134
|
+
SOFTWARE.
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
## fast-uri@3.1.8
|
|
138
|
+
|
|
139
|
+
License: BSD-3-Clause
|
|
140
|
+
|
|
141
|
+
### LICENSE
|
|
142
|
+
|
|
143
|
+
Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
|
|
144
|
+
Copyright (c) 2021-present The Fastify team <https://github.com/fastify/fastify#team>
|
|
145
|
+
All rights reserved.
|
|
146
|
+
|
|
147
|
+
Redistribution and use in source and binary forms, with or without
|
|
148
|
+
modification, are permitted provided that the following conditions are met:
|
|
149
|
+
* Redistributions of source code must retain the above copyright
|
|
150
|
+
notice, this list of conditions and the following disclaimer.
|
|
151
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
152
|
+
notice, this list of conditions and the following disclaimer in the
|
|
153
|
+
documentation and/or other materials provided with the distribution.
|
|
154
|
+
* The names of any contributors may not be used to endorse or promote
|
|
155
|
+
products derived from this software without specific prior written
|
|
156
|
+
permission.
|
|
157
|
+
|
|
158
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
159
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
160
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
161
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY
|
|
162
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
163
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
164
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
165
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
166
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
167
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
168
|
+
|
|
169
|
+
* * *
|
|
170
|
+
|
|
171
|
+
The complete list of contributors can be found at:
|
|
172
|
+
- https://github.com/garycourt/uri-js/graphs/contributors
|
|
173
|
+
|
|
174
|
+
## json-schema-library@11.6.5
|
|
175
|
+
|
|
176
|
+
License: MIT
|
|
177
|
+
|
|
178
|
+
### LICENSE.md
|
|
179
|
+
|
|
180
|
+
MIT License
|
|
181
|
+
|
|
182
|
+
Copyright 2022 Sascha Goldhofer <github@saschagoldhofer.de>
|
|
183
|
+
|
|
184
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
185
|
+
|
|
186
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
187
|
+
|
|
188
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
## json-schema-traverse@1.0.0
|
|
192
|
+
|
|
193
|
+
License: MIT
|
|
194
|
+
|
|
195
|
+
### LICENSE
|
|
196
|
+
|
|
197
|
+
MIT License
|
|
198
|
+
|
|
199
|
+
Copyright (c) 2017 Evgeny Poberezkin
|
|
200
|
+
|
|
201
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
202
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
203
|
+
in the Software without restriction, including without limitation the rights
|
|
204
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
205
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
206
|
+
furnished to do so, subject to the following conditions:
|
|
207
|
+
|
|
208
|
+
The above copyright notice and this permission notice shall be included in all
|
|
209
|
+
copies or substantial portions of the Software.
|
|
210
|
+
|
|
211
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
212
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
213
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
214
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
215
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
216
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
217
|
+
SOFTWARE.
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
## re2js@2.8.6
|
|
221
|
+
|
|
222
|
+
License: MIT
|
|
223
|
+
|
|
224
|
+
### LICENSE
|
|
225
|
+
|
|
226
|
+
MIT License
|
|
227
|
+
|
|
228
|
+
Copyright (c) 2023 Oleksii Vasyliev
|
|
229
|
+
|
|
230
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
231
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
232
|
+
in the Software without restriction, including without limitation the rights
|
|
233
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
234
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
235
|
+
furnished to do so, subject to the following conditions:
|
|
236
|
+
|
|
237
|
+
The above copyright notice and this permission notice shall be included in all
|
|
238
|
+
copies or substantial portions of the Software.
|
|
239
|
+
|
|
240
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
241
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
242
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
243
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
244
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
245
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
246
|
+
SOFTWARE.
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
## valid-url@1.0.9
|
|
250
|
+
|
|
251
|
+
License: undefined
|
|
252
|
+
|
|
253
|
+
### LICENSE
|
|
254
|
+
|
|
255
|
+
Copyright (c) 2013 Odysseas Tsatalos and oDesk Corporation
|
|
256
|
+
|
|
257
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
258
|
+
a copy of this software and associated documentation files (the
|
|
259
|
+
"Software"), to deal in the Software without restriction, including
|
|
260
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
261
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
262
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
263
|
+
the following conditions:
|
|
264
|
+
|
|
265
|
+
The above copyright notice and this permission notice shall be
|
|
266
|
+
included in all copies or substantial portions of the Software.
|
|
267
|
+
|
|
268
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
269
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
270
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
271
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
272
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
273
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
274
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
## zod@4.6.5
|
|
278
|
+
|
|
279
|
+
License: MIT
|
|
280
|
+
|
|
281
|
+
### LICENSE
|
|
282
|
+
|
|
283
|
+
MIT License
|
|
284
|
+
|
|
285
|
+
Copyright (c) 2025 Colin McDonnell
|
|
286
|
+
|
|
287
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
288
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
289
|
+
in the Software without restriction, including without limitation the rights
|
|
290
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
291
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
292
|
+
furnished to do so, subject to the following conditions:
|
|
293
|
+
|
|
294
|
+
The above copyright notice and this permission notice shall be included in all
|
|
295
|
+
copies or substantial portions of the Software.
|
|
296
|
+
|
|
297
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
298
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
299
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
300
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
301
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
302
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
303
|
+
SOFTWARE.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
+
try {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
} catch (e) {
|
|
11
|
+
throw mod = 0, e;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
27
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
28
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
29
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
30
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
31
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
32
|
+
mod
|
|
33
|
+
));
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
__commonJS,
|
|
37
|
+
__export,
|
|
38
|
+
__toESM
|
|
39
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import {
|
|
2
|
+
jsonObjectSchema,
|
|
3
|
+
jsonValueSchema
|
|
4
|
+
} from "./chunk-7QP2CKPI.ts";
|
|
5
|
+
import {
|
|
6
|
+
_null,
|
|
7
|
+
array,
|
|
8
|
+
literal,
|
|
9
|
+
looseObject,
|
|
10
|
+
nativeEnum,
|
|
11
|
+
object,
|
|
12
|
+
string,
|
|
13
|
+
union
|
|
14
|
+
} from "./chunk-HGW4YHAY.ts";
|
|
15
|
+
|
|
16
|
+
// ../agent-provider/src/channel.ts
|
|
17
|
+
var ConversationKind = /* @__PURE__ */ ((ConversationKind2) => {
|
|
18
|
+
ConversationKind2["Direct"] = "direct";
|
|
19
|
+
ConversationKind2["Group"] = "group";
|
|
20
|
+
return ConversationKind2;
|
|
21
|
+
})(ConversationKind || {});
|
|
22
|
+
var ParticipantKind = /* @__PURE__ */ ((ParticipantKind2) => {
|
|
23
|
+
ParticipantKind2["User"] = "user";
|
|
24
|
+
ParticipantKind2["Agent"] = "agent";
|
|
25
|
+
ParticipantKind2["System"] = "system";
|
|
26
|
+
return ParticipantKind2;
|
|
27
|
+
})(ParticipantKind || {});
|
|
28
|
+
var MessageKind = /* @__PURE__ */ ((MessageKind2) => {
|
|
29
|
+
MessageKind2["Message"] = "message";
|
|
30
|
+
MessageKind2["System"] = "system";
|
|
31
|
+
MessageKind2["Card"] = "card";
|
|
32
|
+
return MessageKind2;
|
|
33
|
+
})(MessageKind || {});
|
|
34
|
+
var channelReceiveResultSchema = union([
|
|
35
|
+
object({ conversationId: string().min(1) }),
|
|
36
|
+
object({ sessionId: string().min(1) }),
|
|
37
|
+
_null()
|
|
38
|
+
]);
|
|
39
|
+
var channelMessageInputSchema = object({
|
|
40
|
+
conversationId: string().min(1),
|
|
41
|
+
authorParticipantId: string().min(1),
|
|
42
|
+
kind: nativeEnum(MessageKind).default("message" /* Message */),
|
|
43
|
+
content: array(jsonObjectSchema).min(1),
|
|
44
|
+
clientMessageId: string().min(1).nullish(),
|
|
45
|
+
replyToMessageId: string().min(1).nullish(),
|
|
46
|
+
threadRootId: string().min(1).nullish(),
|
|
47
|
+
quotedMessageIds: array(string().min(1)).default([]),
|
|
48
|
+
mentionedParticipantIds: array(string().min(1)).default([])
|
|
49
|
+
});
|
|
50
|
+
var PendingKind = /* @__PURE__ */ ((PendingKind2) => {
|
|
51
|
+
PendingKind2["Permission"] = "permission";
|
|
52
|
+
PendingKind2["Elicitation"] = "elicitation";
|
|
53
|
+
return PendingKind2;
|
|
54
|
+
})(PendingKind || {});
|
|
55
|
+
var pendingCreatedDataSchema = object({
|
|
56
|
+
pendingRequestId: string().min(1),
|
|
57
|
+
kind: nativeEnum(PendingKind),
|
|
58
|
+
audienceParticipantIds: array(string()),
|
|
59
|
+
request: jsonValueSchema
|
|
60
|
+
});
|
|
61
|
+
var pendingResolvedDataSchema = object({
|
|
62
|
+
pendingRequestId: string().min(1),
|
|
63
|
+
outcome: jsonValueSchema
|
|
64
|
+
});
|
|
65
|
+
var turnEndSchema = looseObject({
|
|
66
|
+
sessionUpdate: literal("state_update"),
|
|
67
|
+
state: literal("idle"),
|
|
68
|
+
stopReason: string().nullish(),
|
|
69
|
+
_meta: looseObject({ "final.ai": looseObject({ stopReason: string().nullish() }).nullish() }).nullish()
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export {
|
|
73
|
+
ConversationKind,
|
|
74
|
+
ParticipantKind
|
|
75
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
_null,
|
|
3
|
+
array,
|
|
4
|
+
boolean,
|
|
5
|
+
lazy,
|
|
6
|
+
number,
|
|
7
|
+
record,
|
|
8
|
+
string,
|
|
9
|
+
union
|
|
10
|
+
} from "./chunk-HGW4YHAY.ts";
|
|
11
|
+
|
|
12
|
+
// ../agent-provider/src/json.ts
|
|
13
|
+
var jsonValueSchema = lazy(
|
|
14
|
+
() => union([
|
|
15
|
+
string(),
|
|
16
|
+
number(),
|
|
17
|
+
boolean(),
|
|
18
|
+
_null(),
|
|
19
|
+
array(jsonValueSchema),
|
|
20
|
+
record(string(), jsonValueSchema)
|
|
21
|
+
])
|
|
22
|
+
);
|
|
23
|
+
var jsonObjectSchema = record(string(), jsonValueSchema);
|
|
24
|
+
var jsonSchemaSchema = jsonObjectSchema;
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
jsonValueSchema,
|
|
28
|
+
jsonObjectSchema,
|
|
29
|
+
jsonSchemaSchema
|
|
30
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ToolApproval
|
|
3
|
+
} from "./chunk-OWC6SFFF.ts";
|
|
4
|
+
import {
|
|
5
|
+
authoredKindOf,
|
|
6
|
+
stamp
|
|
7
|
+
} from "./chunk-XHKPWT3G.ts";
|
|
8
|
+
import {
|
|
9
|
+
callableSchema
|
|
10
|
+
} from "./chunk-JIPNTA56.ts";
|
|
11
|
+
import {
|
|
12
|
+
nativeEnum,
|
|
13
|
+
object,
|
|
14
|
+
string
|
|
15
|
+
} from "./chunk-HGW4YHAY.ts";
|
|
16
|
+
|
|
17
|
+
// src/authoring/approval.ts
|
|
18
|
+
var policy = (value, note = null) => stamp({ policy: value, note }, "approval" /* Approval */);
|
|
19
|
+
var always = () => policy("ask" /* Ask */);
|
|
20
|
+
var never = () => policy("allow" /* Allow */);
|
|
21
|
+
var whenInput = (predicate) => stamp({ policy: "ask" /* Ask */, note: null, predicate }, "approval" /* Approval */);
|
|
22
|
+
var approvalSchema = object({
|
|
23
|
+
policy: nativeEnum(ToolApproval),
|
|
24
|
+
note: string().nullable(),
|
|
25
|
+
predicate: callableSchema.optional()
|
|
26
|
+
});
|
|
27
|
+
var lowerApproval = (value) => {
|
|
28
|
+
if (value == null)
|
|
29
|
+
return { policy: "allow" /* Allow */, note: null, error: null, inputDependent: false };
|
|
30
|
+
const parsed = approvalSchema.safeParse(value);
|
|
31
|
+
if (authoredKindOf(value) === "approval" /* Approval */ && parsed.success) {
|
|
32
|
+
return {
|
|
33
|
+
policy: parsed.data.policy,
|
|
34
|
+
note: parsed.data.note,
|
|
35
|
+
error: null,
|
|
36
|
+
inputDependent: parsed.data.predicate != null
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
if (value === "ask" /* Ask */ || value === "allow" /* Allow */) {
|
|
40
|
+
return { policy: value, note: null, error: null, inputDependent: false };
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
policy: "ask" /* Ask */,
|
|
44
|
+
note: null,
|
|
45
|
+
inputDependent: false,
|
|
46
|
+
error: "approval callbacks are not supported; use always(), never() or whenInput() from @finalai/agents/approval"
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
always,
|
|
52
|
+
never,
|
|
53
|
+
whenInput,
|
|
54
|
+
lowerApproval
|
|
55
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS
|
|
3
|
+
} from "./chunk-32O3ODZE.ts";
|
|
4
|
+
|
|
5
|
+
// ../../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
6
|
+
var require_fast_deep_equal = __commonJS({
|
|
7
|
+
"../../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
8
|
+
"use strict";
|
|
9
|
+
module.exports = function equal(a, b) {
|
|
10
|
+
if (a === b) return true;
|
|
11
|
+
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
12
|
+
if (a.constructor !== b.constructor) return false;
|
|
13
|
+
var length, i, keys;
|
|
14
|
+
if (Array.isArray(a)) {
|
|
15
|
+
length = a.length;
|
|
16
|
+
if (length != b.length) return false;
|
|
17
|
+
for (i = length; i-- !== 0; )
|
|
18
|
+
if (!equal(a[i], b[i])) return false;
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
22
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
23
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
24
|
+
keys = Object.keys(a);
|
|
25
|
+
length = keys.length;
|
|
26
|
+
if (length !== Object.keys(b).length) return false;
|
|
27
|
+
for (i = length; i-- !== 0; )
|
|
28
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
29
|
+
for (i = length; i-- !== 0; ) {
|
|
30
|
+
var key = keys[i];
|
|
31
|
+
if (!equal(a[key], b[key])) return false;
|
|
32
|
+
}
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
return a !== a && b !== b;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export {
|
|
41
|
+
require_fast_deep_equal
|
|
42
|
+
};
|