@yugoo-design/dsh-design-knowledge-ladybug 0.0.0-stage → 0.1.0-beta.1
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 +202 -0
- package/NOTICE +24 -0
- package/README.md +33 -2
- package/THIRD_PARTY_NOTICES.md +35 -0
- package/lib/dsh-plugin-BPwDtoBY.d.ts +50 -0
- package/lib/dsh-plugin-C0TG9tJI.js +1681 -0
- package/lib/dsh-plugin.d.ts +2 -0
- package/lib/dsh-plugin.js +3 -0
- package/lib/embedding-worker.js +80 -0
- package/lib/index.d.ts +63 -0
- package/lib/index.js +3 -0
- package/lib/semantic-index.d.ts +63 -0
- package/lib/semantic-index.js +367 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/BUILD-SOURCE.json +112 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/LICENSE +22 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/README.md +43 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/SOURCE.json +37 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/INDEX.json +115 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/fulltext-supplement/CRoaring-4.5.1.LICENSE +236 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/fulltext-supplement/SOURCES.json +70 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/fulltext-supplement/cpp-httplib-0.14.2.LICENSE +22 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/header-notices/INDEX.json +117 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/header-notices/antlr4_cypher-lexer.GENERATED.txt +4 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/header-notices/antlr4_cypher-parser.GENERATED.txt +5 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/header-notices/fast_float.NOTICE.txt +37 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/header-notices/httpfs-extension.LICENSE +22 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/header-notices/httpfs-httplib.NOTICE.txt +7 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/header-notices/roaring_bitmap.NOTICE.txt +56 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/third_party/antlr4_runtime/LICENSE +84 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/third_party/brotli/LICENSE +19 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/third_party/fastpfor/LICENSE +191 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/third_party/lz4/LICENSE +24 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/third_party/mbedtls/LICENSE +202 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/third_party/miniz/LICENSE +22 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/third_party/parquet/LICENSE +217 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/third_party/re2/LICENSE +27 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/third_party/simsimd/LICENSE +201 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/third_party/snappy/LICENSE +54 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/third_party/thrift/LICENSE +239 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/third_party/utf8proc/LICENSE.md +93 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/third_party/yyjson/LICENSE +21 -0
- package/lib/third-party/ladybug-wasm-core-0.21.1/source-materials/third_party/zstd/LICENSE +30 -0
- package/licenses/dsh-distribution.json +36 -0
- package/package.json +44 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Yugoo-design
|
|
2
|
+
Copyright 2026 YugooDesign Team
|
|
3
|
+
|
|
4
|
+
Yugoo Design was initiated by Jianfeng Yang, who independently completed
|
|
5
|
+
its initial design and development. The project is maintained by
|
|
6
|
+
YugooDesign Team.
|
|
7
|
+
|
|
8
|
+
Except where otherwise identified, the original code and documentation in this
|
|
9
|
+
repository are licensed under the Apache License, Version 2.0. See LICENSE.
|
|
10
|
+
|
|
11
|
+
Third-party code, dependencies, vendored runtimes, and attributed materials
|
|
12
|
+
retain their own licenses and copyright notices. This notice does not relicense
|
|
13
|
+
those materials. See THIRD_PARTY_NOTICES.md and applicable component notices.
|
|
14
|
+
|
|
15
|
+
Official @ladybugdb/wasm-core@0.21.1 license and source notices are included in
|
|
16
|
+
lib/third-party/ladybug-wasm-core-0.21.1/. See its LICENSE, README.md, SOURCE.json,
|
|
17
|
+
BUILD-SOURCE.json and source-materials/ indexes for the preserved original texts
|
|
18
|
+
and source correspondence limits. These materials do not establish complete
|
|
19
|
+
binary inventory or overall release license acceptance.
|
|
20
|
+
|
|
21
|
+
DSH distribution materials for this package: licenses/dsh-distribution.json.
|
|
22
|
+
It lists actual output hashes, selected original texts in this package, and external npm dependencies separately.
|
|
23
|
+
Existing third-party materials retain their individual terms.
|
|
24
|
+
Historical Companion/source observations are not claims of complete coverage for this DSH archive.
|
package/README.md
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Ladybug Design Knowledge provider
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This private package implements the first production slice of the host-neutral Design Knowledge port with `@ladybugdb/wasm-core/nodejs`. It owns persistence mechanics only; DesignJournal remains the sole human-decision authority, and Kit, G/R/A, Studio, panel, and host integration semantics stay outside this package.
|
|
4
|
+
|
|
5
|
+
Each branded Design Project maps to one SHA-256-named `.lbdb` file under the configured database root. Opening acquires a cross-process exclusive lock and creates one live database handle. A second owner fails with `LadybugProjectLockError`; the provider never allows Ladybug's independent-handle visibility behavior to weaken compare-and-set. Every database carries a singleton schema version and exact project identity. Existing bytes with no supported identity, a different project, an unsupported version, or duplicate project metadata fail before any schema or metadata is added.
|
|
6
|
+
|
|
7
|
+
The provider implements the complete `DesignKnowledgeService`. Delta and proposal transactions check exact replay before freshness, bind the full Pin, validate final relation endpoints, reject AI writes to authoritative lifecycles, append immutable versions, and advance the project revision before commit. Journal decisions bind the exact proposal revision and neutral digest. Deferred decisions retain proposed lifecycle; accepted and rejected decisions are terminal and immutable. Trace, impact, query, and export support historical revisions with explicit bounds.
|
|
8
|
+
|
|
9
|
+
Archive import accepts only an empty project namespace. It validates the neutral format, project, proposal digests, relation endpoints, terminal lifecycle decisions, and journal references before beginning a write. Import remaps source proposal revisions explicitly, rewrites decision proposal revisions to the target provider revisions, returns the complete source-to-target map, and commits the reconstruction in one database transaction.
|
|
10
|
+
|
|
11
|
+
The WASM package owns one worker for the Node.js process. Closing a project releases its database and project lock but intentionally keeps the worker available for reopen. Standalone embeddings may call `shutdownLadybugKnowledgeRuntime()` once, after all providers close, during terminal process teardown; opening after terminal shutdown fails loud. The reloadable DSH plugin drains every project handle on unload but leaves the process-global worker available for a later plugin activation.
|
|
12
|
+
|
|
13
|
+
Configuration resolves once at open. Writer acquisition, project-lock retry, maximum query result, text byte, and filter cardinality budgets are explicit. Invalid queries fail before any database read. Lock or writer exhaustion fails without opening or mutating project state.
|
|
14
|
+
|
|
15
|
+
Close waits for accepted writes, then attempts connection close, database close, and lock release even when an earlier step fails. It decrements the shared runtime ownership count exactly once and reports the first teardown error.
|
|
16
|
+
|
|
17
|
+
Recovery backup files are flushed through writable, non-truncating handles, as
|
|
18
|
+
required by Windows. Recovery manifests still flush file bytes before atomic
|
|
19
|
+
rename. Parent directories are flushed on POSIX; Node's Windows directory handles
|
|
20
|
+
do not support that operation, so Windows does not claim the same directory-entry
|
|
21
|
+
power-loss guarantee. Ordinary file flush, permission and disk errors still fail
|
|
22
|
+
the operation; an `EPERM` is never broadly ignored.
|
|
23
|
+
|
|
24
|
+
The validated 0.19.1 WASM package is 102,035,192 unpacked bytes and the current-host reopen probe reached about 370 MiB maximum RSS. Deployment packaging and memory budgets must account for this explicitly; the smaller native provider remains optional because its prebuilt Linux addon does not load on the supported Ubuntu 20.04 host.
|
|
25
|
+
|
|
26
|
+
Run the focused built-plane gates:
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
pnpm run typecheck
|
|
30
|
+
pnpm run build
|
|
31
|
+
pnpm test
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
DesignJournal remains the only human-decision authority. The `./dsh` host entry registers `ladybug-wasm` as the DSH composition's explicit default, derives each database root from external project runtime state, and exposes only `DesignKnowledgeService` to Core consumers. G/R/A scheduling, Studio, compaction, and future Codex/Claude integration remain outside this storage provider.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Third-party licensing inventory
|
|
2
|
+
|
|
3
|
+
Original Yugoo-design code and documentation are licensed under Apache-2.0,
|
|
4
|
+
except where otherwise identified. Third-party material retains its original
|
|
5
|
+
license. This inventory is a preparation record, not a complete release SBOM
|
|
6
|
+
or a substitute for license texts, source provision, or other obligations.
|
|
7
|
+
|
|
8
|
+
## Known components requiring release checks
|
|
9
|
+
|
|
10
|
+
| Component | License / location | Release requirement to verify |
|
|
11
|
+
| --- | --- | --- |
|
|
12
|
+
| Official Ladybug WASM dependency `@ladybugdb/wasm-core@0.21.1` | Package declares MIT; original text and public source locator in `third-party/native/ladybug-wasm-core-0.21.1/` | Current `packages/knowledge-ladybug` dependency route. Preserve Kùzu Inc./Ladybug Memory Inc. notices and verify actual release inclusion. The installed package has no separate third-party inventory or precise build-provenance file; embedded components and source/build correspondence remain unresolved. Package MIT is not a blanket license for the complete WASM. |
|
|
13
|
+
| Historical vendored Ladybug WASM runtime | MIT; `vendor/ladybug/runtime/LICENSE` | Separate legacy route: preserve its own copyright/license, provenance and patch if distributed. Do not use its patch/source evidence as the build provenance of the official npm dependency. Compiled-in component checks remain separate. |
|
|
14
|
+
| DSH code and reused utilities | MIT; `deepseek-harness/LICENSE` | Retain original notices; distinguish external host from copied/bundled utilities. |
|
|
15
|
+
| Pinned DSH JSON value utility (Core) | MIT; repository `packages/core/third-party/dsh-json/LICENSE`, Core package `third-party/dsh-json/LICENSE` | Preserve the original license and provenance README with the Core tarball; verify actual packed files. |
|
|
16
|
+
| ELK / elkjs | EPL-2.0 | Include license and corresponding source availability information; verify actual bundled version and modifications. |
|
|
17
|
+
| sharp | Apache-2.0 | Preserve applicable license and upstream notices. |
|
|
18
|
+
| Prebuilt sharp/libvips dependency bundle | Local `@img/sharp-libvips-*` package declares LGPL-3.0-or-later; contains multiple licenses | Inventory all bundled libraries per platform; provide required corresponding source/build materials and verify replacement/relinking conditions. libvips upstream alone is LGPL-2.1-or-later; do not confuse that with the distributed bundle's terms. |
|
|
19
|
+
| bpmn-js | bpmn.io License | Include original license/copyright; keep the required watermark visible and unchanged. |
|
|
20
|
+
| Design-style reference material and icon assets | Apache-2.0, MIT, ISC | Preserve the detailed notices in `packages/skills-web-app/skills/design_style/THIRD_PARTY_NOTICES.md`; verify required full license texts are distributed. |
|
|
21
|
+
|
|
22
|
+
## Scope exclusions
|
|
23
|
+
|
|
24
|
+
- `deepseek-harness/` and `vendor/ladybug/` are not relicensed by the root LICENSE.
|
|
25
|
+
- External packages keep their own licenses even when bundled into an output.
|
|
26
|
+
- Separately licensed Kit content and assets keep their explicit licenses.
|
|
27
|
+
- Downloaded model weights require their own version-specific license review;
|
|
28
|
+
the inference engine's license does not license the weights.
|
|
29
|
+
|
|
30
|
+
## Release work still pending
|
|
31
|
+
|
|
32
|
+
Generate a versioned inventory from actual tarballs and CLI plugin outputs,
|
|
33
|
+
include every required license/NOTICE, arrange corresponding source access for
|
|
34
|
+
applicable components, and verify Linux/Windows/macOS packaging separately.
|
|
35
|
+
See TODO.md. Do not label a release compliant based only on this inventory.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EmbeddingConfig } from "./semantic-index.js";
|
|
2
|
+
import { DesignKnowledgeProviderId } from "@yugoo-design/dsh-design-core";
|
|
3
|
+
import { Context } from "@deepseek-ai/cordis";
|
|
4
|
+
//#region src/config.d.ts
|
|
5
|
+
/** Deployment inputs for the private embedded Ladybug provider. */
|
|
6
|
+
interface LadybugKnowledgeConfigInput {
|
|
7
|
+
readonly databaseRoot: string;
|
|
8
|
+
readonly writerAttempts?: number;
|
|
9
|
+
readonly writerRetryMs?: number;
|
|
10
|
+
readonly projectLockRetries?: number;
|
|
11
|
+
readonly projectLockMinTimeoutMs?: number;
|
|
12
|
+
readonly projectLockStaleMs?: number;
|
|
13
|
+
readonly maxQueryLimit?: number;
|
|
14
|
+
readonly maxFilterValues?: number;
|
|
15
|
+
readonly maxTextBytes?: number;
|
|
16
|
+
readonly maxImpactDepth?: number;
|
|
17
|
+
readonly maxImpactSeeds?: number;
|
|
18
|
+
readonly maxArchiveRecords?: number;
|
|
19
|
+
}
|
|
20
|
+
/** Fully validated deployment values used by the provider. */
|
|
21
|
+
interface LadybugKnowledgeConfig {
|
|
22
|
+
readonly databaseRoot: string;
|
|
23
|
+
readonly writerAttempts: number;
|
|
24
|
+
readonly writerRetryMs: number;
|
|
25
|
+
readonly projectLockRetries: number;
|
|
26
|
+
readonly projectLockMinTimeoutMs: number;
|
|
27
|
+
readonly projectLockStaleMs: number;
|
|
28
|
+
readonly maxQueryLimit: number;
|
|
29
|
+
readonly maxFilterValues: number;
|
|
30
|
+
readonly maxTextBytes: number;
|
|
31
|
+
readonly maxImpactDepth: number;
|
|
32
|
+
readonly maxImpactSeeds: number;
|
|
33
|
+
readonly maxArchiveRecords: number;
|
|
34
|
+
}
|
|
35
|
+
/** Validate and resolve provider configuration before opening durable state. */
|
|
36
|
+
declare function resolveLadybugKnowledgeConfig(input: LadybugKnowledgeConfigInput): LadybugKnowledgeConfig;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/dsh-plugin.d.ts
|
|
39
|
+
declare const name = "dsh-design-knowledge-ladybug";
|
|
40
|
+
declare const inject: string[];
|
|
41
|
+
/** Stable provider id persisted in Design Project metadata by this composition. */
|
|
42
|
+
declare const LADYBUG_WASM_PROVIDER_ID: DesignKnowledgeProviderId;
|
|
43
|
+
/** Deployment tunables for the embedded provider; project state owns each database root. */
|
|
44
|
+
type Config = Omit<LadybugKnowledgeConfigInput, 'databaseRoot'> & {
|
|
45
|
+
embedding?: EmbeddingConfig;
|
|
46
|
+
};
|
|
47
|
+
/** Install the default embedded provider without exposing its implementation to consumers. */
|
|
48
|
+
declare function apply(ctx: Context, config?: Config): void;
|
|
49
|
+
//#endregion
|
|
50
|
+
export { name as a, resolveLadybugKnowledgeConfig as c, inject as i, LADYBUG_WASM_PROVIDER_ID as n, LadybugKnowledgeConfig as o, apply as r, LadybugKnowledgeConfigInput as s, Config as t };
|