@agenthead/graph 0.0.0-stage → 0.3.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.
@@ -0,0 +1,474 @@
1
+ # Third-party notices — @agenthead/graph
2
+
3
+ Offline audit: 2026-12-05, AgentHead revision `5518959e6339d078322254ad9c9ab0a529b661e1`. These notices accompany this package and its complete third-party runtime dependency closure. Exact versions are from the shared root package-lock.json and were matched to installed package metadata and supplied legal files. Dependencies remain separately installed npm packages; these notices also preserve the applicable terms for redistributed copies.
4
+
5
+ ## AgentHead and fixture terms
6
+
7
+ AgentHead workspace packages are first-party code at version `0.3.0`, revision `5518959e6339d078322254ad9c9ab0a529b661e1`, under the repository's Apache-2.0 licence. Workspace links stay first-party; their third-party runtime closures are included here.
8
+
9
+ The fixture repositories are synthetic AgentHead test material, recorded in this repository's history, rather than downloads of similarly named npm or Python projects. Fixture code, sample data, documentation, logs, changelogs, expected outputs, checks and reference fixes are covered by Apache-2.0 unless an embedded manifest explicitly declares MIT. Those MIT declarations are retained below. Names, example URLs and tool-output formats do not add dependencies.
10
+
11
+ ## Runtime inventory
12
+
13
+ | Locked component | Licence | Use | Decision |
14
+ | -------------------------------- | ------- | --------------------------------------------------------------------------------------- | --------------------------------- |
15
+ | `@types/better-sqlite3@9.6.0` | MIT | Type declarations for the shipped SQLite API; installed via core and graph | Retain; preserve supplied notices |
16
+ | `@types/node@22.20.7` | MIT | Node.js type declarations used by shipped package declarations | Retain; preserve supplied notices |
17
+ | `@vscode/tree-sitter-wasm@0.3.1` | MIT | Precompiled parser runtime and TypeScript, TSX, JavaScript and Python grammars in graph | Retain; preserve supplied notices |
18
+ | `better-sqlite3@13.2.0` | MIT | Native SQLite connection, transactions and FTS5 for core evidence and graph stores | Retain; preserve supplied notices |
19
+ | `node-addon-api@8.5.0` | MIT | Node.js API (Node-API); installed via `better-sqlite3` | Retain; preserve supplied notices |
20
+ | `undici-types@6.21.0` | MIT | Fetch API type declarations; installed via `@types/node` | Retain; preserve supplied notices |
21
+
22
+ ## Fixtures and reference projects
23
+
24
+ | Path within package | Git object at audited revision | Licence | Use | Decision |
25
+ | ----------------------------------- | ------------------------------------------ | ---------- | -------------------------------------------------------------------------------------- | --------------------------- |
26
+ | `test-fixtures/repo` | `6e71c8ee9b88d56a0d5bb21e12e5a7626a499a21` | Apache-2.0 | Seven synthetic TS, TSX, JS and Python source files; graph extraction and import tests | Retain; first-party fixture |
27
+ | `test-fixtures/expected.json` | `2bee432050548795cb4186b33742b87f47e74f68` | Apache-2.0 | Hand-checked graph inventory; exact regression expectations | Retain; first-party fixture |
28
+ | `test-fixtures/fake-lsp-server.mjs` | `ed54d4accb24eedc53035562cfa0d929e008461c` | Apache-2.0 | Scripted local JSON-RPC peer; LSP protocol and lifecycle tests | Retain; first-party fixture |
29
+ | `test-fixtures/README.md` | `d590753eb1425f863f2e3d7923c1c226d984f103` | Apache-2.0 | Fixture relationship and position notes | Retain; first-party fixture |
30
+
31
+ No external reference-project source or checkout is included. Reference solutions and the fake LSP server are AgentHead-owned.
32
+
33
+ ## Embedded SQLite
34
+
35
+ SQLite `3.54.1` is compiled into `better-sqlite3@13.2.0` for local databases.
36
+ Its source id is `2026-10-16 14:45:20 555e07ef33f69a0957d24d8e555b702464a131d6f1607f4c3c1e4551e8e6ca76`, from `node_modules/better-sqlite3/deps/sqlite3/sqlite3.h`. Licence: public domain (the source author disclaims copyright). Decision: retain and preserve the supplied blessing.
37
+
38
+ Source: `node_modules/better-sqlite3/deps/sqlite3/sqlite3.h`.
39
+
40
+ ```text
41
+ ** 2001-09-15
42
+
43
+ The author disclaims copyright to this source code. In place of
44
+ a legal notice, here is a blessing:
45
+
46
+ May you do good and not evil.
47
+ May you find forgiveness for yourself and forgive others.
48
+ May you share freely, never taking more than you give.
49
+ ```
50
+
51
+ ## Tree-sitter distribution and grammar artifacts
52
+
53
+ Graph loads the CommonJS bindings and four grammars from the unchanged, exact-pinned `@vscode/tree-sitter-wasm@0.3.1` npm distribution. No grammar is copied into AgentHead source or downloaded at install time. The dependency also ships the unused grammars listed below.
54
+
55
+ Licence decision for every artifact: retain under the distribution's declared MIT licence and its supplied Microsoft copyright/permission notice (reproduced in the legal texts). This is the licence evidence available locally for these distributable binaries; upstream source ranges are not asserted as exact versions or revisions.
56
+
57
+ `node_modules/@vscode/tree-sitter-wasm/cgmanifest.json` identifies Tree-sitter runtime `0.25.1` at `fc15f621334a262039ffaded5937e2844f88da61`, MIT. The grammar source ranges come from `node_modules/@vscode/tree-sitter-wasm/package.json`. Every artifact is pinned by distribution version, lockfile integrity and the SHA-256 below. The JavaScript binding `wasm/tree-sitter.js` has SHA-256 `874f4a37c4beddef04d8eb9a8dbd28a65b63111f2d2123a38fd3f5333ee046dd`.
58
+
59
+ | Artifact under wasm/ | Source metadata | Licence | SHA-256 | Use and decision |
60
+ | ----------------------------- | --------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------ | ------------------------------------------------- |
61
+ | `tree-sitter-bash.wasm` | `^0.25.0` (source range only) | MIT (distribution) | `a14e9ed880b2c3f16cd00c796c38d237a3e9b028bdec5b4315c76976e67b01ca` | Retain in dependency payload; unused by AgentHead |
62
+ | `tree-sitter-c-sharp.wasm` | Pinned distribution 0.3.1 | MIT (distribution) | `d12d85996c25957b4c1b71e26db2d7cc8a294997b60642e9c2a3b031b2c66dd3` | Retain in dependency payload; unused by AgentHead |
63
+ | `tree-sitter-cpp.wasm` | Pinned distribution 0.3.1 | MIT (distribution) | `77a65bd42f43c2dcd69af40c12a6c32d6ed81d360c025e9feb28911f8339fd69` | Retain in dependency payload; unused by AgentHead |
64
+ | `tree-sitter-css.wasm` | `^0.25.0` (source range only) | MIT (distribution) | `8a23977fe271357cce6f254ef88c9bebf3854602d8046605aef6a45c02135c59` | Retain in dependency payload; unused by AgentHead |
65
+ | `tree-sitter-go.wasm` | `^0.25.0` (source range only) | MIT (distribution) | `9504573f352b20be7f2f1911754d710622aedc15afff16d5ed8fb5645681aee7` | Retain in dependency payload; unused by AgentHead |
66
+ | `tree-sitter-ini.wasm` | Pinned distribution 0.3.1 | Apache-2.0 (upstream justinmk/tree-sitter-ini); distribution declares MIT | `1e8cdf3027209100fa54a43d0faed69721ae1116428164c8ad6dcc496a9aa6af` | Retain in dependency payload; unused by AgentHead |
67
+ | `tree-sitter-java.wasm` | `^0.23.5` (source range only) | MIT (distribution) | `4fdeac4ca6ca089f06c6f7e562abcac1733cd465728cc7031ebb73c2019122c4` | Retain in dependency payload; unused by AgentHead |
68
+ | `tree-sitter-javascript.wasm` | `^0.25.0` (source range only) | MIT (distribution) | `5fb488d0cabb4775a594bab85682de5ad6ce83c0d6ac997a9f82dd084d571240` | Retain: graph parsing |
69
+ | `tree-sitter-php.wasm` | `0.24.2` (source range only) | MIT (distribution) | `d4df6a6ff08c87c3ec4f9cbb785fe09998a0cb570e03f57d7b19b3acfb146aa7` | Retain in dependency payload; unused by AgentHead |
70
+ | `tree-sitter-powershell.wasm` | Pinned distribution 0.3.1 | MIT (distribution) | `55526edd3545fb7e78ff88c39dd617d8b3c03a1d1a88209fffe5c64c7c7c8500` | Retain in dependency payload; unused by AgentHead |
71
+ | `tree-sitter-python.wasm` | `^0.25.0` (source range only) | MIT (distribution) | `16108b50df4ee9a30168794252ab55e7c93bfc5765d7fa0aa3e335752c515f47` | Retain: graph parsing |
72
+ | `tree-sitter-regex.wasm` | `^0.25.0` (source range only) | MIT (distribution) | `e63c28e3a023614e14f2086b0d818e190239ebe5b2fcce7e64a9940091d83a79` | Retain in dependency payload; unused by AgentHead |
73
+ | `tree-sitter-ruby.wasm` | `^0.23.1` (source range only) | MIT (distribution) | `09a96427d7c72f0613ed470cd9812223fc4a91d6a9c025c0235cc6bd59ff96f4` | Retain in dependency payload; unused by AgentHead |
74
+ | `tree-sitter-rust.wasm` | Pinned distribution 0.3.1 | MIT (distribution) | `0dac14947cb04d94466e3df659f80a4e264c216a60b3eda175eae4cf12ed7a8d` | Retain in dependency payload; unused by AgentHead |
75
+ | `tree-sitter-tsx.wasm` | `^0.23.2` (source range only) | MIT (distribution) | `79e5da75ea62855a0cd67177685f0164eac87d5f630b3cbe1e0a099751ad30f8` | Retain: graph parsing |
76
+ | `tree-sitter-typescript.wasm` | `^0.23.2` (source range only) | MIT (distribution) | `778025db5a8be0e70f8ccc3671e486dfeddd048c25d9e8a70c26de2e1bf6f97d` | Retain: graph parsing |
77
+ | `tree-sitter.wasm` | Runtime 0.25.1; cgmanifest commit below | MIT (distribution) | `3a31af706ffdf4a7116b064cdd4988df6791823298615009fc5b6bccbd42909b` | Retain: parser runtime |
78
+
79
+ ### Upstream licences for the four loaded grammars
80
+
81
+ The distributor's Microsoft MIT notice is accompanied by these upstream
82
+ LICENSE references and inline upstream copyright lines. The links include the MIT terms. Both
83
+ TypeScript and TSX use the tree-sitter-typescript project. The links use the
84
+ lower-bound release tags from the distributor's declared source ranges; they do
85
+ not assert the exact source revision used to build these WASM binaries. The
86
+ artifact hashes and pinned distribution remain the binary identities. These
87
+ copyright lines were checked against the linked release LICENSE files.
88
+
89
+ | Loaded grammar | Upstream project and LICENSE | Upstream copyright |
90
+ | -------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
91
+ | `typescript` | [tree-sitter-typescript v0.23.2 LICENSE](https://github.com/tree-sitter/tree-sitter-typescript/blob/v0.23.2/LICENSE) | Copyright (c) 2017 Max Brunsfeld |
92
+ | `tsx` | [tree-sitter-typescript v0.23.2 LICENSE](https://github.com/tree-sitter/tree-sitter-typescript/blob/v0.23.2/LICENSE) | Copyright (c) 2017 Max Brunsfeld |
93
+ | `javascript` | [tree-sitter-javascript v0.25.0 LICENSE](https://github.com/tree-sitter/tree-sitter-javascript/blob/v0.25.0/LICENSE) | Copyright (c) 2014 Max Brunsfeld |
94
+ | `python` | [tree-sitter-python v0.25.0 LICENSE](https://github.com/tree-sitter/tree-sitter-python/blob/v0.25.0/LICENSE) | Copyright (c) 2016 Max Brunsfeld |
95
+
96
+ ## Supplied third-party legal texts
97
+
98
+ The blocks preserve the installed copyright, permission, conditions and disclaimers; line endings are normalized to LF and trailing whitespace is removed. Identical copies for the same name/version are reproduced once. Licence evidence paths are relative to the audited monorepo root, including nested npm installs.
99
+
100
+ ### @types/better-sqlite3@9.6.0
101
+
102
+ Installed at `node_modules/@types/better-sqlite3`. Declared licence: MIT.
103
+
104
+ Source: `node_modules/@types/better-sqlite3/LICENSE`.
105
+
106
+ ```text
107
+ MIT License
108
+
109
+ Copyright (c) Microsoft Corporation.
110
+
111
+ Permission is hereby granted, free of charge, to any person obtaining a copy
112
+ of this software and associated documentation files (the "Software"), to deal
113
+ in the Software without restriction, including without limitation the rights
114
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
115
+ copies of the Software, and to permit persons to whom the Software is
116
+ furnished to do so, subject to the following conditions:
117
+
118
+ The above copyright notice and this permission notice shall be included in all
119
+ copies or substantial portions of the Software.
120
+
121
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
122
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
123
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
124
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
125
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
126
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
127
+ SOFTWARE
128
+ ```
129
+
130
+ ### @types/node@22.20.7
131
+
132
+ Installed at `node_modules/@types/node`. Declared licence: MIT.
133
+
134
+ Source: `node_modules/@types/node/LICENSE`.
135
+
136
+ ```text
137
+ MIT License
138
+
139
+ Copyright (c) Microsoft Corporation.
140
+
141
+ Permission is hereby granted, free of charge, to any person obtaining a copy
142
+ of this software and associated documentation files (the "Software"), to deal
143
+ in the Software without restriction, including without limitation the rights
144
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
145
+ copies of the Software, and to permit persons to whom the Software is
146
+ furnished to do so, subject to the following conditions:
147
+
148
+ The above copyright notice and this permission notice shall be included in all
149
+ copies or substantial portions of the Software.
150
+
151
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
152
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
153
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
154
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
155
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
156
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
157
+ SOFTWARE
158
+ ```
159
+
160
+ ### @vscode/tree-sitter-wasm@0.3.1
161
+
162
+ Installed at `node_modules/@vscode/tree-sitter-wasm`. Declared licence: MIT.
163
+
164
+ Source: `node_modules/@vscode/tree-sitter-wasm/LICENSE`.
165
+
166
+ ```text
167
+ MIT License
168
+
169
+ Copyright (c) Microsoft Corporation.
170
+
171
+ Permission is hereby granted, free of charge, to any person obtaining a copy
172
+ of this software and associated documentation files (the "Software"), to deal
173
+ in the Software without restriction, including without limitation the rights
174
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
175
+ copies of the Software, and to permit persons to whom the Software is
176
+ furnished to do so, subject to the following conditions:
177
+
178
+ The above copyright notice and this permission notice shall be included in all
179
+ copies or substantial portions of the Software.
180
+
181
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
182
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
183
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
184
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
185
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
186
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
187
+ SOFTWARE
188
+ ```
189
+
190
+ ### better-sqlite3@13.2.0
191
+
192
+ Installed at `node_modules/better-sqlite3`. Declared licence: MIT.
193
+
194
+ Source: `node_modules/better-sqlite3/LICENSE`.
195
+
196
+ ```text
197
+ The MIT License (MIT)
198
+
199
+ Copyright (c) 2017 Joshua Wise
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
+ ### node-addon-api@8.5.0
221
+
222
+ Installed at `node_modules/node-addon-api`. Declared licence: MIT.
223
+
224
+ Source: `node_modules/node-addon-api/LICENSE.md`.
225
+
226
+ ```text
227
+ The MIT License (MIT)
228
+
229
+ Copyright (c) 2017 [Node.js API collaborators](https://github.com/nodejs/node-addon-api#collaborators)
230
+
231
+ 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:
232
+
233
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
234
+
235
+ 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.
236
+ ```
237
+
238
+ ### undici-types@6.21.0
239
+
240
+ Installed at `node_modules/undici-types`. Declared licence: MIT.
241
+
242
+ Source: `node_modules/undici-types/LICENSE`.
243
+
244
+ ```text
245
+ MIT License
246
+
247
+ Copyright (c) Matteo Collina and Undici contributors
248
+
249
+ Permission is hereby granted, free of charge, to any person obtaining a copy
250
+ of this software and associated documentation files (the "Software"), to deal
251
+ in the Software without restriction, including without limitation the rights
252
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
253
+ copies of the Software, and to permit persons to whom the Software is
254
+ furnished to do so, subject to the following conditions:
255
+
256
+ The above copyright notice and this permission notice shall be included in all
257
+ copies or substantial portions of the Software.
258
+
259
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
260
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
261
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
262
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
263
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
264
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
265
+ SOFTWARE.
266
+ ```
267
+
268
+ ## AgentHead Apache-2.0 licence
269
+
270
+ Source: `LICENSE`.
271
+
272
+ ```text
273
+ Apache License
274
+ Version 2.0, January 2004
275
+ http://www.apache.org/licenses/
276
+
277
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
278
+
279
+ 1. Definitions.
280
+
281
+ "License" shall mean the terms and conditions for use, reproduction,
282
+ and distribution as defined by Sections 1 through 9 of this document.
283
+
284
+ "Licensor" shall mean the copyright owner or entity authorized by
285
+ the copyright owner that is granting the License.
286
+
287
+ "Legal Entity" shall mean the union of the acting entity and all
288
+ other entities that control, are controlled by, or are under common
289
+ control with that entity. For the purposes of this definition,
290
+ "control" means (i) the power, direct or indirect, to cause the
291
+ direction or management of such entity, whether by contract or
292
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
293
+ outstanding shares, or (iii) beneficial ownership of such entity.
294
+
295
+ "You" (or "Your") shall mean an individual or Legal Entity
296
+ exercising permissions granted by this License.
297
+
298
+ "Source" form shall mean the preferred form for making modifications,
299
+ including but not limited to software source code, documentation
300
+ source, and configuration files.
301
+
302
+ "Object" form shall mean any form resulting from mechanical
303
+ transformation or translation of a Source form, including but
304
+ not limited to compiled object code, generated documentation,
305
+ and conversions to other media types.
306
+
307
+ "Work" shall mean the work of authorship, whether in Source or
308
+ Object form, made available under the License, as indicated by a
309
+ copyright notice that is included in or attached to the work
310
+ (an example is provided in the Appendix below).
311
+
312
+ "Derivative Works" shall mean any work, whether in Source or Object
313
+ form, that is based on (or derived from) the Work and for which the
314
+ editorial revisions, annotations, elaborations, or other modifications
315
+ represent, as a whole, an original work of authorship. For the purposes
316
+ of this License, Derivative Works shall not include works that remain
317
+ separable from, or merely link (or bind by name) to the interfaces of,
318
+ the Work and Derivative Works thereof.
319
+
320
+ "Contribution" shall mean any work of authorship, including
321
+ the original version of the Work and any modifications or additions
322
+ to that Work or Derivative Works thereof, that is intentionally
323
+ submitted to Licensor for inclusion in the Work by the copyright owner
324
+ or by an individual or Legal Entity authorized to submit on behalf of
325
+ the copyright owner. For the purposes of this definition, "submitted"
326
+ means any form of electronic, verbal, or written communication sent
327
+ to the Licensor or its representatives, including but not limited to
328
+ communication on electronic mailing lists, source code control systems,
329
+ and issue tracking systems that are managed by, or on behalf of, the
330
+ Licensor for the purpose of discussing and improving the Work, but
331
+ excluding communication that is conspicuously marked or otherwise
332
+ designated in writing by the copyright owner as "Not a Contribution."
333
+
334
+ "Contributor" shall mean Licensor and any individual or Legal Entity
335
+ on behalf of whom a Contribution has been received by Licensor and
336
+ subsequently incorporated within the Work.
337
+
338
+ 2. Grant of Copyright License. Subject to the terms and conditions of
339
+ this License, each Contributor hereby grants to You a perpetual,
340
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
341
+ copyright license to reproduce, prepare Derivative Works of,
342
+ publicly display, publicly perform, sublicense, and distribute the
343
+ Work and such Derivative Works in Source or Object form.
344
+
345
+ 3. Grant of Patent License. Subject to the terms and conditions of
346
+ this License, each Contributor hereby grants to You a perpetual,
347
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
348
+ (except as stated in this section) patent license to make, have made,
349
+ use, offer to sell, sell, import, and otherwise transfer the Work,
350
+ where such license applies only to those patent claims licensable
351
+ by such Contributor that are necessarily infringed by their
352
+ Contribution(s) alone or by combination of their Contribution(s)
353
+ with the Work to which such Contribution(s) was submitted. If You
354
+ institute patent litigation against any entity (including a
355
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
356
+ or a Contribution incorporated within the Work constitutes direct
357
+ or contributory patent infringement, then any patent licenses
358
+ granted to You under this License for that Work shall terminate
359
+ as of the date such litigation is filed.
360
+
361
+ 4. Redistribution. You may reproduce and distribute copies of the
362
+ Work or Derivative Works thereof in any medium, with or without
363
+ modifications, and in Source or Object form, provided that You
364
+ meet the following conditions:
365
+
366
+ (a) You must give any other recipients of the Work or
367
+ Derivative Works a copy of this License; and
368
+
369
+ (b) You must cause any modified files to carry prominent notices
370
+ stating that You changed the files; and
371
+
372
+ (c) You must retain, in the Source form of any Derivative Works
373
+ that You distribute, all copyright, patent, trademark, and
374
+ attribution notices from the Source form of the Work,
375
+ excluding those notices that do not pertain to any part of
376
+ the Derivative Works; and
377
+
378
+ (d) If the Work includes a "NOTICE" text file as part of its
379
+ distribution, then any Derivative Works that You distribute must
380
+ include a readable copy of the attribution notices contained
381
+ within such NOTICE file, excluding those notices that do not
382
+ pertain to any part of the Derivative Works, in at least one
383
+ of the following places: within a NOTICE text file distributed
384
+ as part of the Derivative Works; within the Source form or
385
+ documentation, if provided along with the Derivative Works; or,
386
+ within a display generated by the Derivative Works, if and
387
+ wherever such third-party notices normally appear. The contents
388
+ of the NOTICE file are for informational purposes only and
389
+ do not modify the License. You may add Your own attribution
390
+ notices within Derivative Works that You distribute, alongside
391
+ or as an addendum to the NOTICE text from the Work, provided
392
+ that such additional attribution notices cannot be construed
393
+ as modifying the License.
394
+
395
+ You may add Your own copyright statement to Your modifications and
396
+ may provide additional or different license terms and conditions
397
+ for use, reproduction, or distribution of Your modifications, or
398
+ for any such Derivative Works as a whole, provided Your use,
399
+ reproduction, and distribution of the Work otherwise complies with
400
+ the conditions stated in this License.
401
+
402
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
403
+ any Contribution intentionally submitted for inclusion in the Work
404
+ by You to the Licensor shall be under the terms and conditions of
405
+ this License, without any additional terms or conditions.
406
+ Notwithstanding the above, nothing herein shall supersede or modify
407
+ the terms of any separate license agreement you may have executed
408
+ with Licensor regarding such Contributions.
409
+
410
+ 6. Trademarks. This License does not grant permission to use the trade
411
+ names, trademarks, service marks, or product names of the Licensor,
412
+ except as required for reasonable and customary use in describing the
413
+ origin of the Work and reproducing the content of the NOTICE file.
414
+
415
+ 7. Disclaimer of Warranty. Unless required by applicable law or
416
+ agreed to in writing, Licensor provides the Work (and each
417
+ Contributor provides its Contributions) on an "AS IS" BASIS,
418
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
419
+ implied, including, without limitation, any warranties or conditions
420
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
421
+ PARTICULAR PURPOSE. You are solely responsible for determining the
422
+ appropriateness of using or redistributing the Work and assume any
423
+ risks associated with Your exercise of permissions under this License.
424
+
425
+ 8. Limitation of Liability. In no event and under no legal theory,
426
+ whether in tort (including negligence), contract, or otherwise,
427
+ unless required by applicable law (such as deliberate and grossly
428
+ negligent acts) or agreed to in writing, shall any Contributor be
429
+ liable to You for damages, including any direct, indirect, special,
430
+ incidental, or consequential damages of any character arising as a
431
+ result of this License or out of the use or inability to use the
432
+ Work (including but not limited to damages for loss of goodwill,
433
+ work stoppage, computer failure or malfunction, or any and all
434
+ other commercial damages or losses), even if such Contributor
435
+ has been advised of the possibility of such damages.
436
+
437
+ 9. Accepting Warranty or Additional Liability. While redistributing
438
+ the Work or Derivative Works thereof, You may choose to offer,
439
+ and charge a fee for, acceptance of support, warranty, indemnity,
440
+ or other liability obligations and/or rights consistent with this
441
+ License. However, in accepting such obligations, You may act only
442
+ on Your own behalf and on Your sole responsibility, not on behalf
443
+ of any other Contributor, and only if You agree to indemnify,
444
+ defend, and hold each Contributor harmless for any liability
445
+ incurred by, or claims asserted against, such Contributor by reason
446
+ of your accepting any such warranty or additional liability.
447
+
448
+ END OF TERMS AND CONDITIONS
449
+
450
+ APPENDIX: How to apply the Apache License to your work.
451
+
452
+ To apply the Apache License to your work, attach the following
453
+ boilerplate notice, with the fields enclosed by brackets "[]"
454
+ replaced with your own identifying information. (Don't include
455
+ the brackets!) The text should be enclosed in the appropriate
456
+ comment syntax for the file format. We also recommend that a
457
+ file or class name and description of purpose be included on the
458
+ same "printed page" as the copyright notice for easier
459
+ identification within third-party archives.
460
+
461
+ Copyright [yyyy] [name of copyright owner]
462
+
463
+ Licensed under the Apache License, Version 2.0 (the "License");
464
+ you may not use this file except in compliance with the License.
465
+ You may obtain a copy of the License at
466
+
467
+ http://www.apache.org/licenses/LICENSE-2.0
468
+
469
+ Unless required by applicable law or agreed to in writing, software
470
+ distributed under the License is distributed on an "AS IS" BASIS,
471
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
472
+ See the License for the specific language governing permissions and
473
+ limitations under the License.
474
+ ```
@@ -0,0 +1,5 @@
1
+ import type { DiagramView } from "./diagrams.js";
2
+ export declare function renderMermaid(view: DiagramView): string;
3
+ export declare function renderSvg(view: DiagramView): string;
4
+ /** No scripts, fonts, images or stylesheets to fetch. SVG titles provide hover details. */
5
+ export declare function renderHtml(view: DiagramView): string;