@melite/models-trellis2-native 0.0.0-stage → 0.1.5-pre-alpha
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 +557 -0
- package/README.md +35 -2
- package/lib/actions.d.ts +25 -0
- package/lib/actions.js +258 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +214 -0
- package/package.json +34 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,557 @@
|
|
|
1
|
+
Server Side Public License
|
|
2
|
+
VERSION 1, OCTOBER 16, 2018
|
|
3
|
+
|
|
4
|
+
Copyright © 2018 MongoDB, Inc.
|
|
5
|
+
|
|
6
|
+
Everyone is permitted to copy and distribute verbatim copies of this
|
|
7
|
+
license document, but changing it is not allowed.
|
|
8
|
+
|
|
9
|
+
TERMS AND CONDITIONS
|
|
10
|
+
|
|
11
|
+
0. Definitions.
|
|
12
|
+
|
|
13
|
+
“This License” refers to Server Side Public License.
|
|
14
|
+
|
|
15
|
+
“Copyright” also means copyright-like laws that apply to other kinds of
|
|
16
|
+
works, such as semiconductor masks.
|
|
17
|
+
|
|
18
|
+
“The Program” refers to any copyrightable work licensed under this
|
|
19
|
+
License. Each licensee is addressed as “you”. “Licensees” and
|
|
20
|
+
“recipients” may be individuals or organizations.
|
|
21
|
+
|
|
22
|
+
To “modify” a work means to copy from or adapt all or part of the work in
|
|
23
|
+
a fashion requiring copyright permission, other than the making of an
|
|
24
|
+
exact copy. The resulting work is called a “modified version” of the
|
|
25
|
+
earlier work or a work “based on” the earlier work.
|
|
26
|
+
|
|
27
|
+
A “covered work” means either the unmodified Program or a work based on
|
|
28
|
+
the Program.
|
|
29
|
+
|
|
30
|
+
To “propagate” a work means to do anything with it that, without
|
|
31
|
+
permission, would make you directly or secondarily liable for
|
|
32
|
+
infringement under applicable copyright law, except executing it on a
|
|
33
|
+
computer or modifying a private copy. Propagation includes copying,
|
|
34
|
+
distribution (with or without modification), making available to the
|
|
35
|
+
public, and in some countries other activities as well.
|
|
36
|
+
|
|
37
|
+
To “convey” a work means any kind of propagation that enables other
|
|
38
|
+
parties to make or receive copies. Mere interaction with a user through a
|
|
39
|
+
computer network, with no transfer of a copy, is not conveying.
|
|
40
|
+
|
|
41
|
+
An interactive user interface displays “Appropriate Legal Notices” to the
|
|
42
|
+
extent that it includes a convenient and prominently visible feature that
|
|
43
|
+
(1) displays an appropriate copyright notice, and (2) tells the user that
|
|
44
|
+
there is no warranty for the work (except to the extent that warranties
|
|
45
|
+
are provided), that licensees may convey the work under this License, and
|
|
46
|
+
how to view a copy of this License. If the interface presents a list of
|
|
47
|
+
user commands or options, such as a menu, a prominent item in the list
|
|
48
|
+
meets this criterion.
|
|
49
|
+
|
|
50
|
+
1. Source Code.
|
|
51
|
+
|
|
52
|
+
The “source code” for a work means the preferred form of the work for
|
|
53
|
+
making modifications to it. “Object code” means any non-source form of a
|
|
54
|
+
work.
|
|
55
|
+
|
|
56
|
+
A “Standard Interface” means an interface that either is an official
|
|
57
|
+
standard defined by a recognized standards body, or, in the case of
|
|
58
|
+
interfaces specified for a particular programming language, one that is
|
|
59
|
+
widely used among developers working in that language. The “System
|
|
60
|
+
Libraries” of an executable work include anything, other than the work as
|
|
61
|
+
a whole, that (a) is included in the normal form of packaging a Major
|
|
62
|
+
Component, but which is not part of that Major Component, and (b) serves
|
|
63
|
+
only to enable use of the work with that Major Component, or to implement
|
|
64
|
+
a Standard Interface for which an implementation is available to the
|
|
65
|
+
public in source code form. A “Major Component”, in this context, means a
|
|
66
|
+
major essential component (kernel, window system, and so on) of the
|
|
67
|
+
specific operating system (if any) on which the executable work runs, or
|
|
68
|
+
a compiler used to produce the work, or an object code interpreter used
|
|
69
|
+
to run it.
|
|
70
|
+
|
|
71
|
+
The “Corresponding Source” for a work in object code form means all the
|
|
72
|
+
source code needed to generate, install, and (for an executable work) run
|
|
73
|
+
the object code and to modify the work, including scripts to control
|
|
74
|
+
those activities. However, it does not include the work's System
|
|
75
|
+
Libraries, or general-purpose tools or generally available free programs
|
|
76
|
+
which are used unmodified in performing those activities but which are
|
|
77
|
+
not part of the work. For example, Corresponding Source includes
|
|
78
|
+
interface definition files associated with source files for the work, and
|
|
79
|
+
the source code for shared libraries and dynamically linked subprograms
|
|
80
|
+
that the work is specifically designed to require, such as by intimate
|
|
81
|
+
data communication or control flow between those subprograms and other
|
|
82
|
+
parts of the work.
|
|
83
|
+
|
|
84
|
+
The Corresponding Source need not include anything that users can
|
|
85
|
+
regenerate automatically from other parts of the Corresponding Source.
|
|
86
|
+
|
|
87
|
+
The Corresponding Source for a work in source code form is that same work.
|
|
88
|
+
|
|
89
|
+
2. Basic Permissions.
|
|
90
|
+
|
|
91
|
+
All rights granted under this License are granted for the term of
|
|
92
|
+
copyright on the Program, and are irrevocable provided the stated
|
|
93
|
+
conditions are met. This License explicitly affirms your unlimited
|
|
94
|
+
permission to run the unmodified Program, subject to section 13. The
|
|
95
|
+
output from running a covered work is covered by this License only if the
|
|
96
|
+
output, given its content, constitutes a covered work. This License
|
|
97
|
+
acknowledges your rights of fair use or other equivalent, as provided by
|
|
98
|
+
copyright law. Subject to section 13, you may make, run and propagate
|
|
99
|
+
covered works that you do not convey, without conditions so long as your
|
|
100
|
+
license otherwise remains in force. You may convey covered works to
|
|
101
|
+
others for the sole purpose of having them make modifications exclusively
|
|
102
|
+
for you, or provide you with facilities for running those works, provided
|
|
103
|
+
that you comply with the terms of this License in conveying all
|
|
104
|
+
material for which you do not control copyright. Those thus making or
|
|
105
|
+
running the covered works for you must do so exclusively on your
|
|
106
|
+
behalf, under your direction and control, on terms that prohibit them
|
|
107
|
+
from making any copies of your copyrighted material outside their
|
|
108
|
+
relationship with you.
|
|
109
|
+
|
|
110
|
+
Conveying under any other circumstances is permitted solely under the
|
|
111
|
+
conditions stated below. Sublicensing is not allowed; section 10 makes it
|
|
112
|
+
unnecessary.
|
|
113
|
+
|
|
114
|
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
|
115
|
+
|
|
116
|
+
No covered work shall be deemed part of an effective technological
|
|
117
|
+
measure under any applicable law fulfilling obligations under article 11
|
|
118
|
+
of the WIPO copyright treaty adopted on 20 December 1996, or similar laws
|
|
119
|
+
prohibiting or restricting circumvention of such measures.
|
|
120
|
+
|
|
121
|
+
When you convey a covered work, you waive any legal power to forbid
|
|
122
|
+
circumvention of technological measures to the extent such circumvention is
|
|
123
|
+
effected by exercising rights under this License with respect to the
|
|
124
|
+
covered work, and you disclaim any intention to limit operation or
|
|
125
|
+
modification of the work as a means of enforcing, against the work's users,
|
|
126
|
+
your or third parties' legal rights to forbid circumvention of
|
|
127
|
+
technological measures.
|
|
128
|
+
|
|
129
|
+
4. Conveying Verbatim Copies.
|
|
130
|
+
|
|
131
|
+
You may convey verbatim copies of the Program's source code as you
|
|
132
|
+
receive it, in any medium, provided that you conspicuously and
|
|
133
|
+
appropriately publish on each copy an appropriate copyright notice; keep
|
|
134
|
+
intact all notices stating that this License and any non-permissive terms
|
|
135
|
+
added in accord with section 7 apply to the code; keep intact all notices
|
|
136
|
+
of the absence of any warranty; and give all recipients a copy of this
|
|
137
|
+
License along with the Program. You may charge any price or no price for
|
|
138
|
+
each copy that you convey, and you may offer support or warranty
|
|
139
|
+
protection for a fee.
|
|
140
|
+
|
|
141
|
+
5. Conveying Modified Source Versions.
|
|
142
|
+
|
|
143
|
+
You may convey a work based on the Program, or the modifications to
|
|
144
|
+
produce it from the Program, in the form of source code under the terms
|
|
145
|
+
of section 4, provided that you also meet all of these conditions:
|
|
146
|
+
|
|
147
|
+
a) The work must carry prominent notices stating that you modified it,
|
|
148
|
+
and giving a relevant date.
|
|
149
|
+
|
|
150
|
+
b) The work must carry prominent notices stating that it is released
|
|
151
|
+
under this License and any conditions added under section 7. This
|
|
152
|
+
requirement modifies the requirement in section 4 to “keep intact all
|
|
153
|
+
notices”.
|
|
154
|
+
|
|
155
|
+
c) You must license the entire work, as a whole, under this License to
|
|
156
|
+
anyone who comes into possession of a copy. This License will therefore
|
|
157
|
+
apply, along with any applicable section 7 additional terms, to the
|
|
158
|
+
whole of the work, and all its parts, regardless of how they are
|
|
159
|
+
packaged. This License gives no permission to license the work in any
|
|
160
|
+
other way, but it does not invalidate such permission if you have
|
|
161
|
+
separately received it.
|
|
162
|
+
|
|
163
|
+
d) If the work has interactive user interfaces, each must display
|
|
164
|
+
Appropriate Legal Notices; however, if the Program has interactive
|
|
165
|
+
interfaces that do not display Appropriate Legal Notices, your work
|
|
166
|
+
need not make them do so.
|
|
167
|
+
|
|
168
|
+
A compilation of a covered work with other separate and independent
|
|
169
|
+
works, which are not by their nature extensions of the covered work, and
|
|
170
|
+
which are not combined with it such as to form a larger program, in or on
|
|
171
|
+
a volume of a storage or distribution medium, is called an “aggregate” if
|
|
172
|
+
the compilation and its resulting copyright are not used to limit the
|
|
173
|
+
access or legal rights of the compilation's users beyond what the
|
|
174
|
+
individual works permit. Inclusion of a covered work in an aggregate does
|
|
175
|
+
not cause this License to apply to the other parts of the aggregate.
|
|
176
|
+
|
|
177
|
+
6. Conveying Non-Source Forms.
|
|
178
|
+
|
|
179
|
+
You may convey a covered work in object code form under the terms of
|
|
180
|
+
sections 4 and 5, provided that you also convey the machine-readable
|
|
181
|
+
Corresponding Source under the terms of this License, in one of these
|
|
182
|
+
ways:
|
|
183
|
+
|
|
184
|
+
a) Convey the object code in, or embodied in, a physical product
|
|
185
|
+
(including a physical distribution medium), accompanied by the
|
|
186
|
+
Corresponding Source fixed on a durable physical medium customarily
|
|
187
|
+
used for software interchange.
|
|
188
|
+
|
|
189
|
+
b) Convey the object code in, or embodied in, a physical product
|
|
190
|
+
(including a physical distribution medium), accompanied by a written
|
|
191
|
+
offer, valid for at least three years and valid for as long as you
|
|
192
|
+
offer spare parts or customer support for that product model, to give
|
|
193
|
+
anyone who possesses the object code either (1) a copy of the
|
|
194
|
+
Corresponding Source for all the software in the product that is
|
|
195
|
+
covered by this License, on a durable physical medium customarily used
|
|
196
|
+
for software interchange, for a price no more than your reasonable cost
|
|
197
|
+
of physically performing this conveying of source, or (2) access to
|
|
198
|
+
copy the Corresponding Source from a network server at no charge.
|
|
199
|
+
|
|
200
|
+
c) Convey individual copies of the object code with a copy of the
|
|
201
|
+
written offer to provide the Corresponding Source. This alternative is
|
|
202
|
+
allowed only occasionally and noncommercially, and only if you received
|
|
203
|
+
the object code with such an offer, in accord with subsection 6b.
|
|
204
|
+
|
|
205
|
+
d) Convey the object code by offering access from a designated place
|
|
206
|
+
(gratis or for a charge), and offer equivalent access to the
|
|
207
|
+
Corresponding Source in the same way through the same place at no
|
|
208
|
+
further charge. You need not require recipients to copy the
|
|
209
|
+
Corresponding Source along with the object code. If the place to copy
|
|
210
|
+
the object code is a network server, the Corresponding Source may be on
|
|
211
|
+
a different server (operated by you or a third party) that supports
|
|
212
|
+
equivalent copying facilities, provided you maintain clear directions
|
|
213
|
+
next to the object code saying where to find the Corresponding Source.
|
|
214
|
+
Regardless of what server hosts the Corresponding Source, you remain
|
|
215
|
+
obligated to ensure that it is available for as long as needed to
|
|
216
|
+
satisfy these requirements.
|
|
217
|
+
|
|
218
|
+
e) Convey the object code using peer-to-peer transmission, provided you
|
|
219
|
+
inform other peers where the object code and Corresponding Source of
|
|
220
|
+
the work are being offered to the general public at no charge under
|
|
221
|
+
subsection 6d.
|
|
222
|
+
|
|
223
|
+
A separable portion of the object code, whose source code is excluded
|
|
224
|
+
from the Corresponding Source as a System Library, need not be included
|
|
225
|
+
in conveying the object code work.
|
|
226
|
+
|
|
227
|
+
A “User Product” is either (1) a “consumer product”, which means any
|
|
228
|
+
tangible personal property which is normally used for personal, family,
|
|
229
|
+
or household purposes, or (2) anything designed or sold for incorporation
|
|
230
|
+
into a dwelling. In determining whether a product is a consumer product,
|
|
231
|
+
doubtful cases shall be resolved in favor of coverage. For a particular
|
|
232
|
+
product received by a particular user, “normally used” refers to a
|
|
233
|
+
typical or common use of that class of product, regardless of the status
|
|
234
|
+
of the particular user or of the way in which the particular user
|
|
235
|
+
actually uses, or expects or is expected to use, the product. A product
|
|
236
|
+
is a consumer product regardless of whether the product has substantial
|
|
237
|
+
commercial, industrial or non-consumer uses, unless such uses represent
|
|
238
|
+
the only significant mode of use of the product.
|
|
239
|
+
|
|
240
|
+
“Installation Information” for a User Product means any methods,
|
|
241
|
+
procedures, authorization keys, or other information required to install
|
|
242
|
+
and execute modified versions of a covered work in that User Product from
|
|
243
|
+
a modified version of its Corresponding Source. The information must
|
|
244
|
+
suffice to ensure that the continued functioning of the modified object
|
|
245
|
+
code is in no case prevented or interfered with solely because
|
|
246
|
+
modification has been made.
|
|
247
|
+
|
|
248
|
+
If you convey an object code work under this section in, or with, or
|
|
249
|
+
specifically for use in, a User Product, and the conveying occurs as part
|
|
250
|
+
of a transaction in which the right of possession and use of the User
|
|
251
|
+
Product is transferred to the recipient in perpetuity or for a fixed term
|
|
252
|
+
(regardless of how the transaction is characterized), the Corresponding
|
|
253
|
+
Source conveyed under this section must be accompanied by the
|
|
254
|
+
Installation Information. But this requirement does not apply if neither
|
|
255
|
+
you nor any third party retains the ability to install modified object
|
|
256
|
+
code on the User Product (for example, the work has been installed in
|
|
257
|
+
ROM).
|
|
258
|
+
|
|
259
|
+
The requirement to provide Installation Information does not include a
|
|
260
|
+
requirement to continue to provide support service, warranty, or updates
|
|
261
|
+
for a work that has been modified or installed by the recipient, or for
|
|
262
|
+
the User Product in which it has been modified or installed. Access
|
|
263
|
+
to a network may be denied when the modification itself materially
|
|
264
|
+
and adversely affects the operation of the network or violates the
|
|
265
|
+
rules and protocols for communication across the network.
|
|
266
|
+
|
|
267
|
+
Corresponding Source conveyed, and Installation Information provided, in
|
|
268
|
+
accord with this section must be in a format that is publicly documented
|
|
269
|
+
(and with an implementation available to the public in source code form),
|
|
270
|
+
and must require no special password or key for unpacking, reading or
|
|
271
|
+
copying.
|
|
272
|
+
|
|
273
|
+
7. Additional Terms.
|
|
274
|
+
|
|
275
|
+
“Additional permissions” are terms that supplement the terms of this
|
|
276
|
+
License by making exceptions from one or more of its conditions.
|
|
277
|
+
Additional permissions that are applicable to the entire Program shall be
|
|
278
|
+
treated as though they were included in this License, to the extent that
|
|
279
|
+
they are valid under applicable law. If additional permissions apply only
|
|
280
|
+
to part of the Program, that part may be used separately under those
|
|
281
|
+
permissions, but the entire Program remains governed by this License
|
|
282
|
+
without regard to the additional permissions. When you convey a copy of
|
|
283
|
+
a covered work, you may at your option remove any additional permissions
|
|
284
|
+
from that copy, or from any part of it. (Additional permissions may be
|
|
285
|
+
written to require their own removal in certain cases when you modify the
|
|
286
|
+
work.) You may place additional permissions on material, added by you to
|
|
287
|
+
a covered work, for which you have or can give appropriate copyright
|
|
288
|
+
permission.
|
|
289
|
+
|
|
290
|
+
Notwithstanding any other provision of this License, for material you add
|
|
291
|
+
to a covered work, you may (if authorized by the copyright holders of
|
|
292
|
+
that material) supplement the terms of this License with terms:
|
|
293
|
+
|
|
294
|
+
a) Disclaiming warranty or limiting liability differently from the
|
|
295
|
+
terms of sections 15 and 16 of this License; or
|
|
296
|
+
|
|
297
|
+
b) Requiring preservation of specified reasonable legal notices or
|
|
298
|
+
author attributions in that material or in the Appropriate Legal
|
|
299
|
+
Notices displayed by works containing it; or
|
|
300
|
+
|
|
301
|
+
c) Prohibiting misrepresentation of the origin of that material, or
|
|
302
|
+
requiring that modified versions of such material be marked in
|
|
303
|
+
reasonable ways as different from the original version; or
|
|
304
|
+
|
|
305
|
+
d) Limiting the use for publicity purposes of names of licensors or
|
|
306
|
+
authors of the material; or
|
|
307
|
+
|
|
308
|
+
e) Declining to grant rights under trademark law for use of some trade
|
|
309
|
+
names, trademarks, or service marks; or
|
|
310
|
+
|
|
311
|
+
f) Requiring indemnification of licensors and authors of that material
|
|
312
|
+
by anyone who conveys the material (or modified versions of it) with
|
|
313
|
+
contractual assumptions of liability to the recipient, for any
|
|
314
|
+
liability that these contractual assumptions directly impose on those
|
|
315
|
+
licensors and authors.
|
|
316
|
+
|
|
317
|
+
All other non-permissive additional terms are considered “further
|
|
318
|
+
restrictions” within the meaning of section 10. If the Program as you
|
|
319
|
+
received it, or any part of it, contains a notice stating that it is
|
|
320
|
+
governed by this License along with a term that is a further restriction,
|
|
321
|
+
you may remove that term. If a license document contains a further
|
|
322
|
+
restriction but permits relicensing or conveying under this License, you
|
|
323
|
+
may add to a covered work material governed by the terms of that license
|
|
324
|
+
document, provided that the further restriction does not survive such
|
|
325
|
+
relicensing or conveying.
|
|
326
|
+
|
|
327
|
+
If you add terms to a covered work in accord with this section, you must
|
|
328
|
+
place, in the relevant source files, a statement of the additional terms
|
|
329
|
+
that apply to those files, or a notice indicating where to find the
|
|
330
|
+
applicable terms. Additional terms, permissive or non-permissive, may be
|
|
331
|
+
stated in the form of a separately written license, or stated as
|
|
332
|
+
exceptions; the above requirements apply either way.
|
|
333
|
+
|
|
334
|
+
8. Termination.
|
|
335
|
+
|
|
336
|
+
You may not propagate or modify a covered work except as expressly
|
|
337
|
+
provided under this License. Any attempt otherwise to propagate or modify
|
|
338
|
+
it is void, and will automatically terminate your rights under this
|
|
339
|
+
License (including any patent licenses granted under the third paragraph
|
|
340
|
+
of section 11).
|
|
341
|
+
|
|
342
|
+
However, if you cease all violation of this License, then your license
|
|
343
|
+
from a particular copyright holder is reinstated (a) provisionally,
|
|
344
|
+
unless and until the copyright holder explicitly and finally terminates
|
|
345
|
+
your license, and (b) permanently, if the copyright holder fails to
|
|
346
|
+
notify you of the violation by some reasonable means prior to 60 days
|
|
347
|
+
after the cessation.
|
|
348
|
+
|
|
349
|
+
Moreover, your license from a particular copyright holder is reinstated
|
|
350
|
+
permanently if the copyright holder notifies you of the violation by some
|
|
351
|
+
reasonable means, this is the first time you have received notice of
|
|
352
|
+
violation of this License (for any work) from that copyright holder, and
|
|
353
|
+
you cure the violation prior to 30 days after your receipt of the notice.
|
|
354
|
+
|
|
355
|
+
Termination of your rights under this section does not terminate the
|
|
356
|
+
licenses of parties who have received copies or rights from you under
|
|
357
|
+
this License. If your rights have been terminated and not permanently
|
|
358
|
+
reinstated, you do not qualify to receive new licenses for the same
|
|
359
|
+
material under section 10.
|
|
360
|
+
|
|
361
|
+
9. Acceptance Not Required for Having Copies.
|
|
362
|
+
|
|
363
|
+
You are not required to accept this License in order to receive or run a
|
|
364
|
+
copy of the Program. Ancillary propagation of a covered work occurring
|
|
365
|
+
solely as a consequence of using peer-to-peer transmission to receive a
|
|
366
|
+
copy likewise does not require acceptance. However, nothing other than
|
|
367
|
+
this License grants you permission to propagate or modify any covered
|
|
368
|
+
work. These actions infringe copyright if you do not accept this License.
|
|
369
|
+
Therefore, by modifying or propagating a covered work, you indicate your
|
|
370
|
+
acceptance of this License to do so.
|
|
371
|
+
|
|
372
|
+
10. Automatic Licensing of Downstream Recipients.
|
|
373
|
+
|
|
374
|
+
Each time you convey a covered work, the recipient automatically receives
|
|
375
|
+
a license from the original licensors, to run, modify and propagate that
|
|
376
|
+
work, subject to this License. You are not responsible for enforcing
|
|
377
|
+
compliance by third parties with this License.
|
|
378
|
+
|
|
379
|
+
An “entity transaction” is a transaction transferring control of an
|
|
380
|
+
organization, or substantially all assets of one, or subdividing an
|
|
381
|
+
organization, or merging organizations. If propagation of a covered work
|
|
382
|
+
results from an entity transaction, each party to that transaction who
|
|
383
|
+
receives a copy of the work also receives whatever licenses to the work
|
|
384
|
+
the party's predecessor in interest had or could give under the previous
|
|
385
|
+
paragraph, plus a right to possession of the Corresponding Source of the
|
|
386
|
+
work from the predecessor in interest, if the predecessor has it or can
|
|
387
|
+
get it with reasonable efforts.
|
|
388
|
+
|
|
389
|
+
You may not impose any further restrictions on the exercise of the rights
|
|
390
|
+
granted or affirmed under this License. For example, you may not impose a
|
|
391
|
+
license fee, royalty, or other charge for exercise of rights granted
|
|
392
|
+
under this License, and you may not initiate litigation (including a
|
|
393
|
+
cross-claim or counterclaim in a lawsuit) alleging that any patent claim
|
|
394
|
+
is infringed by making, using, selling, offering for sale, or importing
|
|
395
|
+
the Program or any portion of it.
|
|
396
|
+
|
|
397
|
+
11. Patents.
|
|
398
|
+
|
|
399
|
+
A “contributor” is a copyright holder who authorizes use under this
|
|
400
|
+
License of the Program or a work on which the Program is based. The work
|
|
401
|
+
thus licensed is called the contributor's “contributor version”.
|
|
402
|
+
|
|
403
|
+
A contributor's “essential patent claims” are all patent claims owned or
|
|
404
|
+
controlled by the contributor, whether already acquired or hereafter
|
|
405
|
+
acquired, that would be infringed by some manner, permitted by this
|
|
406
|
+
License, of making, using, or selling its contributor version, but do not
|
|
407
|
+
include claims that would be infringed only as a consequence of further
|
|
408
|
+
modification of the contributor version. For purposes of this definition,
|
|
409
|
+
“control” includes the right to grant patent sublicenses in a manner
|
|
410
|
+
consistent with the requirements of this License.
|
|
411
|
+
|
|
412
|
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
|
413
|
+
patent license under the contributor's essential patent claims, to make,
|
|
414
|
+
use, sell, offer for sale, import and otherwise run, modify and propagate
|
|
415
|
+
the contents of its contributor version.
|
|
416
|
+
|
|
417
|
+
In the following three paragraphs, a “patent license” is any express
|
|
418
|
+
agreement or commitment, however denominated, not to enforce a patent
|
|
419
|
+
(such as an express permission to practice a patent or covenant not to
|
|
420
|
+
sue for patent infringement). To “grant” such a patent license to a party
|
|
421
|
+
means to make such an agreement or commitment not to enforce a patent
|
|
422
|
+
against the party.
|
|
423
|
+
|
|
424
|
+
If you convey a covered work, knowingly relying on a patent license, and
|
|
425
|
+
the Corresponding Source of the work is not available for anyone to copy,
|
|
426
|
+
free of charge and under the terms of this License, through a publicly
|
|
427
|
+
available network server or other readily accessible means, then you must
|
|
428
|
+
either (1) cause the Corresponding Source to be so available, or (2)
|
|
429
|
+
arrange to deprive yourself of the benefit of the patent license for this
|
|
430
|
+
particular work, or (3) arrange, in a manner consistent with the
|
|
431
|
+
requirements of this License, to extend the patent license to downstream
|
|
432
|
+
recipients. “Knowingly relying” means you have actual knowledge that, but
|
|
433
|
+
for the patent license, your conveying the covered work in a country, or
|
|
434
|
+
your recipient's use of the covered work in a country, would infringe
|
|
435
|
+
one or more identifiable patents in that country that you have reason
|
|
436
|
+
to believe are valid.
|
|
437
|
+
|
|
438
|
+
If, pursuant to or in connection with a single transaction or
|
|
439
|
+
arrangement, you convey, or propagate by procuring conveyance of, a
|
|
440
|
+
covered work, and grant a patent license to some of the parties receiving
|
|
441
|
+
the covered work authorizing them to use, propagate, modify or convey a
|
|
442
|
+
specific copy of the covered work, then the patent license you grant is
|
|
443
|
+
automatically extended to all recipients of the covered work and works
|
|
444
|
+
based on it.
|
|
445
|
+
|
|
446
|
+
A patent license is “discriminatory” if it does not include within the
|
|
447
|
+
scope of its coverage, prohibits the exercise of, or is conditioned on
|
|
448
|
+
the non-exercise of one or more of the rights that are specifically
|
|
449
|
+
granted under this License. You may not convey a covered work if you are
|
|
450
|
+
a party to an arrangement with a third party that is in the business of
|
|
451
|
+
distributing software, under which you make payment to the third party
|
|
452
|
+
based on the extent of your activity of conveying the work, and under
|
|
453
|
+
which the third party grants, to any of the parties who would receive the
|
|
454
|
+
covered work from you, a discriminatory patent license (a) in connection
|
|
455
|
+
with copies of the covered work conveyed by you (or copies made from
|
|
456
|
+
those copies), or (b) primarily for and in connection with specific
|
|
457
|
+
products or compilations that contain the covered work, unless you
|
|
458
|
+
entered into that arrangement, or that patent license was granted, prior
|
|
459
|
+
to 28 March 2007.
|
|
460
|
+
|
|
461
|
+
Nothing in this License shall be construed as excluding or limiting any
|
|
462
|
+
implied license or other defenses to infringement that may otherwise be
|
|
463
|
+
available to you under applicable patent law.
|
|
464
|
+
|
|
465
|
+
12. No Surrender of Others' Freedom.
|
|
466
|
+
|
|
467
|
+
If conditions are imposed on you (whether by court order, agreement or
|
|
468
|
+
otherwise) that contradict the conditions of this License, they do not
|
|
469
|
+
excuse you from the conditions of this License. If you cannot use,
|
|
470
|
+
propagate or convey a covered work so as to satisfy simultaneously your
|
|
471
|
+
obligations under this License and any other pertinent obligations, then
|
|
472
|
+
as a consequence you may not use, propagate or convey it at all. For
|
|
473
|
+
example, if you agree to terms that obligate you to collect a royalty for
|
|
474
|
+
further conveying from those to whom you convey the Program, the only way
|
|
475
|
+
you could satisfy both those terms and this License would be to refrain
|
|
476
|
+
entirely from conveying the Program.
|
|
477
|
+
|
|
478
|
+
13. Offering the Program as a Service.
|
|
479
|
+
|
|
480
|
+
If you make the functionality of the Program or a modified version
|
|
481
|
+
available to third parties as a service, you must make the Service Source
|
|
482
|
+
Code available via network download to everyone at no charge, under the
|
|
483
|
+
terms of this License. Making the functionality of the Program or
|
|
484
|
+
modified version available to third parties as a service includes,
|
|
485
|
+
without limitation, enabling third parties to interact with the
|
|
486
|
+
functionality of the Program or modified version remotely through a
|
|
487
|
+
computer network, offering a service the value of which entirely or
|
|
488
|
+
primarily derives from the value of the Program or modified version, or
|
|
489
|
+
offering a service that accomplishes for users the primary purpose of the
|
|
490
|
+
Program or modified version.
|
|
491
|
+
|
|
492
|
+
“Service Source Code” means the Corresponding Source for the Program or
|
|
493
|
+
the modified version, and the Corresponding Source for all programs that
|
|
494
|
+
you use to make the Program or modified version available as a service,
|
|
495
|
+
including, without limitation, management software, user interfaces,
|
|
496
|
+
application program interfaces, automation software, monitoring software,
|
|
497
|
+
backup software, storage software and hosting software, all such that a
|
|
498
|
+
user could run an instance of the service using the Service Source Code
|
|
499
|
+
you make available.
|
|
500
|
+
|
|
501
|
+
14. Revised Versions of this License.
|
|
502
|
+
|
|
503
|
+
MongoDB, Inc. may publish revised and/or new versions of the Server Side
|
|
504
|
+
Public License from time to time. Such new versions will be similar in
|
|
505
|
+
spirit to the present version, but may differ in detail to address new
|
|
506
|
+
problems or concerns.
|
|
507
|
+
|
|
508
|
+
Each version is given a distinguishing version number. If the Program
|
|
509
|
+
specifies that a certain numbered version of the Server Side Public
|
|
510
|
+
License “or any later version” applies to it, you have the option of
|
|
511
|
+
following the terms and conditions either of that numbered version or of
|
|
512
|
+
any later version published by MongoDB, Inc. If the Program does not
|
|
513
|
+
specify a version number of the Server Side Public License, you may
|
|
514
|
+
choose any version ever published by MongoDB, Inc.
|
|
515
|
+
|
|
516
|
+
If the Program specifies that a proxy can decide which future versions of
|
|
517
|
+
the Server Side Public License can be used, that proxy's public statement
|
|
518
|
+
of acceptance of a version permanently authorizes you to choose that
|
|
519
|
+
version for the Program.
|
|
520
|
+
|
|
521
|
+
Later license versions may give you additional or different permissions.
|
|
522
|
+
However, no additional obligations are imposed on any author or copyright holder
|
|
523
|
+
as a result of your choosing to follow a later version.
|
|
524
|
+
|
|
525
|
+
15. Disclaimer of Warranty.
|
|
526
|
+
|
|
527
|
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
|
528
|
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS
|
|
529
|
+
AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY
|
|
530
|
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
|
531
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
532
|
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
|
533
|
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
|
534
|
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
535
|
+
|
|
536
|
+
16. Limitation of Liability.
|
|
537
|
+
|
|
538
|
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
539
|
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
|
540
|
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING
|
|
541
|
+
ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF
|
|
542
|
+
THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO
|
|
543
|
+
LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU
|
|
544
|
+
OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
|
545
|
+
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
|
546
|
+
POSSIBILITY OF SUCH DAMAGES.
|
|
547
|
+
|
|
548
|
+
17. Interpretation of Sections 15 and 16.
|
|
549
|
+
|
|
550
|
+
If the disclaimer of warranty and limitation of liability provided above
|
|
551
|
+
cannot be given local legal effect according to their terms, reviewing
|
|
552
|
+
courts shall apply local law that most closely approximates an absolute
|
|
553
|
+
waiver of all civil liability in connection with the Program, unless a
|
|
554
|
+
warranty or assumption of liability accompanies a copy of the Program in
|
|
555
|
+
return for a fee.
|
|
556
|
+
|
|
557
|
+
END OF TERMS AND CONDITIONS
|
package/README.md
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
description: TRELLIS.2 Native family — background-removed image to textured GLB through voxel structure, shape, and texture stages, with the mesh action on the ComfyUI engine.
|
|
3
|
+
kind: package-library
|
|
4
|
+
---
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
# @melite/models-trellis2-native
|
|
7
|
+
|
|
8
|
+
`@melite/models-trellis2-native` is the model family package for TRELLIS.2 on native ComfyUI (`form_img_to_mesh`, genre 3d): background-removed conditioning flows to a voxel structure, a shape latent, and a texture atlas, saved as a `.glb`. The DECL declares the `mesh` action, a three-resolution variant rail, and the five-file lift-chain provisioning. The estate boot mounts it as a Cordis plugin through `ctx.models.registerFamily` inside `ctx.effect`; the img-to-mesh card binds the action. The lane is this package's own `actions.ts`, pinned to committed goldens.
|
|
9
|
+
|
|
10
|
+
## Declaration
|
|
11
|
+
|
|
12
|
+
Variants: `1024` (default; BF16 at ~12 GB VRAM peak or INT8 ConvRot at ~8 GB), `1536` (hero quality; 16/10 GB), and a hidden fast `512`. Family defaults fix the sampler table (euler/normal structure and shape, euler/simple then euler/normal texture), `steps` 12 / `shape_steps` 20, `cfg` 7.5, remesh at 768 faces decimated to 700k, atlas 4096, AO 1024, normal 2048, `sd3_shift` 5, and `seed` 42. The `mesh` action requires `input_image` — the 3D lift is image-conditioned and takes no text prompt — and its facts door refuses any of the five load keys missing: `unet`, `vae`, `texture_vae`, `clip_vision`, `background_removal`. Provisions pin the weights, including `birefnet.safetensors` from Comfy-Org's BiRefNet repo for background removal. The build runs structure, shape, upsample, remesh, texture, and the atlas/AO/normal bakes, then saves through `MeshToFile3D` + `Save3DAdvanced`.
|
|
13
|
+
|
|
14
|
+
## Model Experience
|
|
15
|
+
|
|
16
|
+
### Request context and condition
|
|
17
|
+
|
|
18
|
+
#### What the model sees
|
|
19
|
+
|
|
20
|
+
- **input_image** — required; the source image the lift conditions on.
|
|
21
|
+
- **resolution / bg_removal** — the closed variant table and the birefnet on/off/auto pick.
|
|
22
|
+
- **sampler rows and seed** — the per-stage sampler/scheduler/steps/cfg table and the sentinel-minted seed.
|
|
23
|
+
|
|
24
|
+
#### Token effect
|
|
25
|
+
|
|
26
|
+
Zero-direct token effect — the fields ride the composed ComfyUI graph; no harness context is spent.
|
|
27
|
+
|
|
28
|
+
#### KV Cache effect
|
|
29
|
+
|
|
30
|
+
Independent — each mesh run is its own engine request; no shared prefix.
|
|
31
|
+
|
|
32
|
+
## Known Limitations and Deferred Work
|
|
33
|
+
|
|
34
|
+
- **No text conditioning** — the lane accepts no prompt; shape intent must come from the image alone.
|
|
35
|
+
- **VRAM peaks are cell-declared** — the 8–16 GB figures are the DECL's measured rows, not runtime guarantees on every GPU.
|
|
36
|
+
- **Image quality ceiling** — background removal and texture fidelity are not verified against the running engine.
|
package/lib/actions.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ComfyActionSpec } from "@melite/comfyui-card-kit";
|
|
2
|
+
import { type LaneInputsFacts } from "@melite/comfyui-card-kit/facts";
|
|
3
|
+
/** The closed facts shape the mesh segment reads (the lift chain's
|
|
4
|
+
* five load keys, resolved from the row's lane_inputs). */
|
|
5
|
+
export type MeshFacts = {
|
|
6
|
+
readonly unet: string;
|
|
7
|
+
readonly vae: string;
|
|
8
|
+
readonly texture_vae: string;
|
|
9
|
+
readonly clip_vision: string;
|
|
10
|
+
};
|
|
11
|
+
/** The gated params doc the mesh segment reads (the card's schema
|
|
12
|
+
* walk validated types and bounds — a same-process typed boundary;
|
|
13
|
+
* the seed arrives minted through the declared seed-sentinel rule,
|
|
14
|
+
* so the ported chain's own mint is a pass-through). */
|
|
15
|
+
export type MeshParams = Record<string, unknown>;
|
|
16
|
+
/** The mesh facts door: the resolved lane_inputs parsed into the
|
|
17
|
+
* closed shape — a missing load key refuses field-named here,
|
|
18
|
+
* never composes a loader on an empty directory.
|
|
19
|
+
* @param raw the resolved lane_inputs (family ⊕ variant)
|
|
20
|
+
* @returns the typed facts the segment factory reads */
|
|
21
|
+
export declare function parseMeshFacts(raw: LaneInputsFacts): MeshFacts;
|
|
22
|
+
/** The mesh action: trellis_t1 — DINOv3 conditioning (the image IS
|
|
23
|
+
* the prompt; the negative is the conditioning's own output 1). */
|
|
24
|
+
export declare const mesh: ComfyActionSpec<MeshParams, MeshFacts>;
|
|
25
|
+
//# sourceMappingURL=actions.d.ts.map
|
package/lib/actions.js
ADDED
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { requireText } from "@melite/comfyui-card-kit/facts";
|
|
2
|
+
import { MESH_RESOLUTIONS, MESH_ATLAS_SIZES, MESH_AO_SIZES, MESH_NORMAL_SIZES, admitMeshLiftShared, isSpell } from "@melite/comfyui-card-kit";
|
|
3
|
+
import { SAMPLER_OPTIONS, SCHEDULER_OPTIONS } from "@melite/comfyui-card-kit/vocab";
|
|
4
|
+
/** The mesh facts door: the resolved lane_inputs parsed into the
|
|
5
|
+
* closed shape — a missing load key refuses field-named here,
|
|
6
|
+
* never composes a loader on an empty directory.
|
|
7
|
+
* @param raw the resolved lane_inputs (family ⊕ variant)
|
|
8
|
+
* @returns the typed facts the segment factory reads */
|
|
9
|
+
export function parseMeshFacts(raw) {
|
|
10
|
+
return {
|
|
11
|
+
unet: requireText(raw, 'unet', 'trellis2-native mesh'),
|
|
12
|
+
vae: requireText(raw, 'vae', 'trellis2-native mesh'),
|
|
13
|
+
texture_vae: requireText(raw, 'texture_vae', 'trellis2-native mesh'),
|
|
14
|
+
clip_vision: requireText(raw, 'clip_vision', 'trellis2-native mesh'),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/** The wired-tensor law (the lanes-image precedent, ported 1:1):
|
|
18
|
+
* a '$name' value names an upstream stage's wired output — the
|
|
19
|
+
* spell IS the tensor and rides node inputs verbatim. ROW-4
|
|
20
|
+
* refuses producer links in Load* file slots, so a spelled image
|
|
21
|
+
* NEVER builds a loader; file paths keep the disk handoff. */
|
|
22
|
+
/** The lift arms' admission slice for THIS family: the SHARED kit
|
|
23
|
+
* seat (the dry-sweep's J4 re-hoist — two families carried this
|
|
24
|
+
* verbatim; the required image and closed sets refuse in the
|
|
25
|
+
* slice, never in the schema). This family adds no private arm
|
|
26
|
+
* (the pixal-only camera_fov row is pixal's, not ours). */
|
|
27
|
+
const admitMeshLift = admitMeshLiftShared;
|
|
28
|
+
/** The dual guided unet + the two VAEs — the lift chain's shared
|
|
29
|
+
* head. Creation order lands the reference renderers' numbering: the SHAPE
|
|
30
|
+
* pair first (CFGOverride.0/RescaleCFG.0), then the STRUCT pair
|
|
31
|
+
* (.1). */
|
|
32
|
+
function loadLiftHeads(g, li, p) {
|
|
33
|
+
const unet = g.node('UNETLoader', { unet_name: li.unet, weight_dtype: 'default' }).out();
|
|
34
|
+
// shape arm (0.769 / 0.5) — numbered FIRST (served order)
|
|
35
|
+
const overrideShape = g.node('CFGOverride', {
|
|
36
|
+
model: unet, cfg: 1.0,
|
|
37
|
+
start_percent: p.override_shape, end_percent: 1.0,
|
|
38
|
+
}).out();
|
|
39
|
+
const rescaleShape = g.node('RescaleCFG', {
|
|
40
|
+
model: overrideShape, multiplier: p.rescale_shape,
|
|
41
|
+
}).out();
|
|
42
|
+
// struct arm (0.667 / 0.7) — numbered SECOND (served order)
|
|
43
|
+
const overrideStruct = g.node('CFGOverride', {
|
|
44
|
+
model: unet, cfg: 1.0,
|
|
45
|
+
start_percent: p.override_struct, end_percent: 1.0,
|
|
46
|
+
}).out();
|
|
47
|
+
const rescaleStruct = g.node('RescaleCFG', {
|
|
48
|
+
model: overrideStruct, multiplier: p.rescale_struct,
|
|
49
|
+
}).out();
|
|
50
|
+
const shifted = g.node('ModelSamplingSD3', {
|
|
51
|
+
model: rescaleStruct, shift: p.sd3_shift,
|
|
52
|
+
}).out();
|
|
53
|
+
const shapeVae = g.node('VAELoader', { vae_name: li.vae }).out();
|
|
54
|
+
const texVae = g.node('VAELoader', { vae_name: li.texture_vae }).out();
|
|
55
|
+
return { unet, rescaleShape, shifted, shapeVae, texVae };
|
|
56
|
+
}
|
|
57
|
+
/** The shared structure→shape→upsample→texture→bake→glb chain
|
|
58
|
+
* (_shared_lift_chain verbatim — the model delta lives
|
|
59
|
+
* ENTIRELY in the conditioning pair passed in). */
|
|
60
|
+
function sharedLiftChain(g, p, heads, pos, neg, prefix) {
|
|
61
|
+
const seed = p.seed;
|
|
62
|
+
const { unet, rescaleShape, shifted, shapeVae, texVae } = heads;
|
|
63
|
+
// structure stage (the lift): card steps + cfg knobs
|
|
64
|
+
const empty = g.node('EmptyTrellis2LatentStructure', { batch_size: 1 }).out();
|
|
65
|
+
const struct = g.node('KSampler', {
|
|
66
|
+
seed, steps: p.steps, cfg: p.cfg,
|
|
67
|
+
sampler_name: p.struct_sampler,
|
|
68
|
+
scheduler: p.struct_scheduler, denoise: 1.0,
|
|
69
|
+
model: shifted, positive: pos, negative: neg, latent_image: empty,
|
|
70
|
+
});
|
|
71
|
+
const voxel = g.node('VaeDecodeStructureTrellis2', {
|
|
72
|
+
samples: struct.out(), vae: shapeVae, resolution: '32',
|
|
73
|
+
}).out();
|
|
74
|
+
// shape stage: 20 steps / cfg 7.5 on the 0.5 arm (official)
|
|
75
|
+
const shapeStage = g.node('Trellis2ShapeStage', { positive: pos, negative: neg, voxel });
|
|
76
|
+
const shapeLatent = g.node('KSampler', {
|
|
77
|
+
seed, steps: p.shape_steps,
|
|
78
|
+
cfg: p.shape_cfg,
|
|
79
|
+
sampler_name: p.shape_sampler,
|
|
80
|
+
scheduler: p.shape_scheduler, denoise: 1.0,
|
|
81
|
+
model: rescaleShape,
|
|
82
|
+
positive: shapeStage.out(0), negative: shapeStage.out(1),
|
|
83
|
+
latent_image: shapeStage.out(2),
|
|
84
|
+
});
|
|
85
|
+
// upsample + first texture pass: UNCONDITIONAL, target floored at 1024
|
|
86
|
+
const up = g.node('Trellis2UpsampleStage', {
|
|
87
|
+
positive: shapeStage.out(0), negative: shapeStage.out(1),
|
|
88
|
+
shape_latent: shapeLatent.out(), vae: shapeVae,
|
|
89
|
+
target_resolution: Math.max(Number(p.resolution), 1024),
|
|
90
|
+
});
|
|
91
|
+
const upLatent = g.node('KSampler', {
|
|
92
|
+
seed, steps: p.tex1_steps,
|
|
93
|
+
cfg: p.tex1_cfg,
|
|
94
|
+
sampler_name: p.tex1_sampler,
|
|
95
|
+
scheduler: p.tex1_scheduler, denoise: 1.0,
|
|
96
|
+
model: rescaleShape,
|
|
97
|
+
positive: up.out(0), negative: up.out(1), latent_image: up.out(2),
|
|
98
|
+
});
|
|
99
|
+
// mesh lineage: decode → info → UDF remesh → exact-count decimate
|
|
100
|
+
const decodeShape = g.node('VaeDecodeShapeTrellis', { samples: upLatent.out(), vae: shapeVae });
|
|
101
|
+
const mesh = decodeShape.out(0);
|
|
102
|
+
const subdivides = decodeShape.out(1);
|
|
103
|
+
const info = g.node('GetMeshInfo', { mesh }).out(0);
|
|
104
|
+
const remeshed = g.node('RemeshMesh', {
|
|
105
|
+
mesh: info, resolution: p.remesh_resolution,
|
|
106
|
+
sign_mode: 'udf',
|
|
107
|
+
|
|
108
|
+
// card's schema defaults (false) ARE the pinned core defaults
|
|
109
|
+
'sign_mode.qef': p.remesh_qef === true,
|
|
110
|
+
'sign_mode.drop_inverted_components': p.remesh_drop_inverted === true,
|
|
111
|
+
'sign_mode.drop_enclosed_components': p.remesh_drop_enclosed === true,
|
|
112
|
+
smooth_iters: 20,
|
|
113
|
+
drop_small_components: 0.01, precluster_max_verts: 20000000,
|
|
114
|
+
// pin autofills leaves in place (core defaults)
|
|
115
|
+
band: 1.0, fix_poles: p.remesh_fix_poles === true, project_back: 0.0,
|
|
116
|
+
}).out();
|
|
117
|
+
// texture stage, two passes: 12/7.5/simple feeds the stage; 12/1.0
|
|
118
|
+
// on the RAW unet samples it (official template KSampler#12)
|
|
119
|
+
const texStage = g.node('Trellis2TextureStage', {
|
|
120
|
+
positive: up.out(0), negative: up.out(1), shape_latent: upLatent.out(),
|
|
121
|
+
});
|
|
122
|
+
const texLatent = g.node('KSampler', {
|
|
123
|
+
seed, steps: p.tex2_steps,
|
|
124
|
+
cfg: p.tex2_cfg,
|
|
125
|
+
sampler_name: p.tex2_sampler,
|
|
126
|
+
scheduler: p.tex2_scheduler, denoise: 1.0,
|
|
127
|
+
model: unet,
|
|
128
|
+
positive: texStage.out(0), negative: texStage.out(1),
|
|
129
|
+
latent_image: texStage.out(2),
|
|
130
|
+
});
|
|
131
|
+
const voxelColors = g.node('VaeDecodeTextureTrellis', {
|
|
132
|
+
samples: texLatent.out(), vae: texVae, shape_subdivides: subdivides,
|
|
133
|
+
}).out();
|
|
134
|
+
// bake tail: decimate → smooth → unwrap → bake color/AO/normal →
|
|
135
|
+
// apply → smooth → glb (the textured mesh is the saved hero)
|
|
136
|
+
const decimated = g.node('DecimateMesh', {
|
|
137
|
+
mesh: remeshed, target_face_count: p.decimate_faces,
|
|
138
|
+
placement_mode: 'midpoint',
|
|
139
|
+
}).out();
|
|
140
|
+
const smooth1 = g.node('MeshSmoothNormals', {
|
|
141
|
+
mesh: decimated, crease_angle: p.smooth_angle,
|
|
142
|
+
}).out();
|
|
143
|
+
const unwrapped = g.node('UnwrapMesh', {
|
|
144
|
+
mesh: smooth1, segmenter: 'pec', resolution: Number(p.atlas_size),
|
|
145
|
+
padding: 1, weld_distance: 0.0002,
|
|
146
|
+
}).out();
|
|
147
|
+
const baked = g.node('BakeTextureFromVoxel', {
|
|
148
|
+
mesh: unwrapped, voxel_colors: voxelColors,
|
|
149
|
+
texture_size: Number(p.atlas_size), reference_mesh: mesh,
|
|
150
|
+
});
|
|
151
|
+
const occlusion = g.node('BakeAmbientOcclusion', {
|
|
152
|
+
low_poly: unwrapped, high_poly: remeshed,
|
|
153
|
+
resolution: Number(p.ao_size),
|
|
154
|
+
samples: 64, max_distance: 0.71, strength: 1.0, bias: 0.01,
|
|
155
|
+
}).out();
|
|
156
|
+
const normalMap = g.node('BakeNormalMapFromMesh', {
|
|
157
|
+
low_poly: unwrapped, high_poly: remeshed,
|
|
158
|
+
resolution: Number(p.normal_size),
|
|
159
|
+
cage_distance: 0.05, ignore_backfaces: true,
|
|
160
|
+
}).out();
|
|
161
|
+
const textured = g.node('ApplyTextureToMesh', {
|
|
162
|
+
mesh: unwrapped,
|
|
163
|
+
base_color: baked.out(0), metallic: baked.out(1),
|
|
164
|
+
roughness: baked.out(2),
|
|
165
|
+
occlusion, normal_map: normalMap,
|
|
166
|
+
}).out();
|
|
167
|
+
const smooth2 = g.node('MeshSmoothNormals', {
|
|
168
|
+
mesh: textured, crease_angle: p.smooth_angle,
|
|
169
|
+
}).out();
|
|
170
|
+
const glb = g.node('MeshToFile3D', { mesh: smooth2 }).out();
|
|
171
|
+
return g.node('Save3DAdvanced', {
|
|
172
|
+
model_3d: glb, filename_prefix: prefix,
|
|
173
|
+
viewport_state: '', width: 1024, height: 1024,
|
|
174
|
+
}).out();
|
|
175
|
+
}
|
|
176
|
+
/** The mesh action: trellis_t1 — DINOv3 conditioning (the image IS
|
|
177
|
+
* the prompt; the negative is the conditioning's own output 1). */
|
|
178
|
+
export const mesh = {
|
|
179
|
+
id: "mesh",
|
|
180
|
+
inputs: [],
|
|
181
|
+
outputs: [{ name: "glb", kind: "GLB" }],
|
|
182
|
+
// THE DECLARED SURFACE (the write plane, phase 2): the
|
|
183
|
+
// img-to-mesh card schema's own types and bounds — the family
|
|
184
|
+
// door judges defaults and variant presets against this row.
|
|
185
|
+
// The closed sets (resolutions, bg modes, bake sizes) are the
|
|
186
|
+
// card-kit's ONE mesh vocabularies; the sampler/scheduler rows
|
|
187
|
+
// resolve from the ONE engine vocabulary.
|
|
188
|
+
params: [
|
|
189
|
+
{ name: "input_image", type: "string" },
|
|
190
|
+
{ name: "seed", type: "number", rule: "seed-sentinel" },
|
|
191
|
+
{ name: "resolution", type: "enum", options: MESH_RESOLUTIONS },
|
|
192
|
+
{ name: "steps", type: "number", bounds: [4, 60] },
|
|
193
|
+
{ name: "cfg", type: "number", bounds: [1, 15] },
|
|
194
|
+
{ name: "shape_steps", type: "number", bounds: [4, 60] },
|
|
195
|
+
{ name: "shape_cfg", type: "number", bounds: [1, 15] },
|
|
196
|
+
{ name: "shape_sampler", type: "enum", options: SAMPLER_OPTIONS },
|
|
197
|
+
{ name: "shape_scheduler", type: "enum", options: SCHEDULER_OPTIONS },
|
|
198
|
+
{ name: "tex1_steps", type: "number", bounds: [4, 60] },
|
|
199
|
+
{ name: "tex1_cfg", type: "number", bounds: [1, 15] },
|
|
200
|
+
{ name: "tex1_sampler", type: "enum", options: SAMPLER_OPTIONS },
|
|
201
|
+
{ name: "tex1_scheduler", type: "enum", options: SCHEDULER_OPTIONS },
|
|
202
|
+
{ name: "tex2_steps", type: "number", bounds: [4, 60] },
|
|
203
|
+
{ name: "tex2_cfg", type: "number", bounds: [1, 15] },
|
|
204
|
+
{ name: "tex2_sampler", type: "enum", options: SAMPLER_OPTIONS },
|
|
205
|
+
{ name: "tex2_scheduler", type: "enum", options: SCHEDULER_OPTIONS },
|
|
206
|
+
{ name: "struct_sampler", type: "enum", options: SAMPLER_OPTIONS },
|
|
207
|
+
{ name: "struct_scheduler", type: "enum", options: SCHEDULER_OPTIONS },
|
|
208
|
+
{ name: "remesh_resolution", type: "number", bounds: [128, 2048] },
|
|
209
|
+
{ name: "remesh_qef", type: "boolean" },
|
|
210
|
+
{ name: "remesh_drop_inverted", type: "boolean" },
|
|
211
|
+
{ name: "remesh_drop_enclosed", type: "boolean" },
|
|
212
|
+
{ name: "remesh_fix_poles", type: "boolean" },
|
|
213
|
+
{ name: "decimate_faces", type: "number", bounds: [10000, 2000000] },
|
|
214
|
+
{ name: "smooth_angle", type: "number", bounds: [0, 180] },
|
|
215
|
+
{ name: "atlas_size", type: "enum", options: MESH_ATLAS_SIZES },
|
|
216
|
+
{ name: "ao_size", type: "enum", options: MESH_AO_SIZES },
|
|
217
|
+
{ name: "normal_size", type: "enum", options: MESH_NORMAL_SIZES },
|
|
218
|
+
{ name: "sd3_shift", type: "number", bounds: [1, 10] },
|
|
219
|
+
{ name: "rescale_struct", type: "number", bounds: [0.1, 1] },
|
|
220
|
+
{ name: "rescale_shape", type: "number", bounds: [0.1, 1] },
|
|
221
|
+
{ name: "override_struct", type: "number", bounds: [0, 1] },
|
|
222
|
+
{ name: "override_shape", type: "number", bounds: [0, 1] },
|
|
223
|
+
],
|
|
224
|
+
facts: parseMeshFacts,
|
|
225
|
+
build({ p, facts, g }) {
|
|
226
|
+
admitMeshLift(p);
|
|
227
|
+
const li = facts;
|
|
228
|
+
// THE SPELLED ANCHOR (the gap-audit law: img-to-mesh seats
|
|
229
|
+
// input_image, so a producer CAN wire in — the spell rides the
|
|
230
|
+
// conditioning tensor verbatim, never a loader).
|
|
231
|
+
const img = isSpell(p.input_image)
|
|
232
|
+
? p.input_image
|
|
233
|
+
: g.node('LoadImage', { image: p.input_image }).out();
|
|
234
|
+
const heads = loadLiftHeads(g, li, p);
|
|
235
|
+
// THE TEMPLATE HAS NO MASK BRIDGE: the crop eats the photo
|
|
236
|
+
// (LoadImage) verbatim — a MaskToImage-sourced crop feeds the
|
|
237
|
+
// silhouette, and the silhouette starves every appearance
|
|
238
|
+
|
|
239
|
+
// IMAGE for its masks leg.
|
|
240
|
+
const cropped = g.node('ImageCropToMask', {
|
|
241
|
+
images: img, masks: img,
|
|
242
|
+
pad_factor: 1.1, width: 1024, height: 1024,
|
|
243
|
+
// pin autofills leaves in place (core defaults)
|
|
244
|
+
background: '#000000', grow_mask: 0,
|
|
245
|
+
}).out();
|
|
246
|
+
const clip = g.node('CLIPVisionLoader', { clip_name: li.clip_vision }).out();
|
|
247
|
+
const cond = g.node('Trellis2Conditioning', { clip_vision_model: clip, image: cropped });
|
|
248
|
+
const pos = cond.out(0);
|
|
249
|
+
// the negative IS the conditioning's second output — never a
|
|
250
|
+
// fabricated zero (the zero drops the shared proj pack the
|
|
251
|
+
// template routes as every pass's negative)
|
|
252
|
+
const neg = cond.out(1);
|
|
253
|
+
// Family constant, never a knob (compose stamps the prefix
|
|
254
|
+
// internally; stable).
|
|
255
|
+
return sharedLiftChain(g, p, heads, pos, neg, 'trellis2_native');
|
|
256
|
+
},
|
|
257
|
+
};
|
|
258
|
+
//# sourceMappingURL=actions.js.map
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Plugin } from "@deepseek-ai/cordis";
|
|
2
|
+
import type { ModelDecl } from '@melite/comfyui-card-kit/model-contract';
|
|
3
|
+
export declare const DECL: ModelDecl;
|
|
4
|
+
export declare const family: Plugin;
|
|
5
|
+
export { mesh } from "./actions.js";
|
|
6
|
+
export { family as default };
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { mesh } from "./actions.js";
|
|
2
|
+
export const DECL = {
|
|
3
|
+
"id": "trellis2-native",
|
|
4
|
+
"form": "form_img_to_mesh",
|
|
5
|
+
"label": "TRELLIS.2 Native",
|
|
6
|
+
"description": "Image to textured 3D mesh (native ComfyUI TRELLIS.2): background-removed conditioning → voxel structure → shape latent → texture atlas, saved as a .glb.",
|
|
7
|
+
"engine": "comfyui",
|
|
8
|
+
"defaults": {
|
|
9
|
+
|
|
10
|
+
// standard / quality, defaulting to standard): the floors ARE the
|
|
11
|
+
// standard tier — 1024 + the template's 768/700k tail (the card
|
|
12
|
+
// schema carries no remesh default, so this row is the raw-compose
|
|
13
|
+
// floor; the surviving 1024 lane stamps none, and the quality
|
|
14
|
+
// recipe's 1536/2048/2M picks override these as patch-only rows).
|
|
15
|
+
"resolution": "1024",
|
|
16
|
+
"steps": 12,
|
|
17
|
+
"cfg": 7.5,
|
|
18
|
+
"shape_steps": 20,
|
|
19
|
+
"shape_cfg": 7.5,
|
|
20
|
+
"tex1_steps": 12,
|
|
21
|
+
"tex1_cfg": 7.5,
|
|
22
|
+
"tex2_steps": 12,
|
|
23
|
+
"tex2_cfg": 1,
|
|
24
|
+
"remesh_resolution": 768,
|
|
25
|
+
"decimate_faces": 700000,
|
|
26
|
+
"smooth_angle": 180,
|
|
27
|
+
"atlas_size": "4096",
|
|
28
|
+
"ao_size": "1024",
|
|
29
|
+
"normal_size": "2048",
|
|
30
|
+
"struct_sampler": "euler",
|
|
31
|
+
"struct_scheduler": "normal",
|
|
32
|
+
"shape_sampler": "euler",
|
|
33
|
+
"shape_scheduler": "normal",
|
|
34
|
+
"tex1_sampler": "euler",
|
|
35
|
+
"tex1_scheduler": "simple",
|
|
36
|
+
"tex2_sampler": "euler",
|
|
37
|
+
"tex2_scheduler": "normal",
|
|
38
|
+
"sd3_shift": 5,
|
|
39
|
+
"rescale_struct": 0.7,
|
|
40
|
+
"rescale_shape": 0.5,
|
|
41
|
+
"override_struct": 0.667,
|
|
42
|
+
"override_shape": 0.769,
|
|
43
|
+
"seed": -1
|
|
44
|
+
},
|
|
45
|
+
"studio": {
|
|
46
|
+
"tenant": "3d/img-to-mesh",
|
|
47
|
+
"owns_params": false,
|
|
48
|
+
"writes": [
|
|
49
|
+
"input_image",
|
|
50
|
+
"rigged_glb",
|
|
51
|
+
"target_glb"
|
|
52
|
+
],
|
|
53
|
+
"kind": "assembly",
|
|
54
|
+
"size": "normal",
|
|
55
|
+
"layout": "studio"
|
|
56
|
+
},
|
|
57
|
+
"genre": "3d",
|
|
58
|
+
"variants": [
|
|
59
|
+
{
|
|
60
|
+
"id": "1024",
|
|
61
|
+
"label": "1024",
|
|
62
|
+
"hint": "Standard resolution — the fast tier",
|
|
63
|
+
"group": "Variant",
|
|
64
|
+
"route": "trellis2-native",
|
|
65
|
+
// no resolver_defaults — the family defaults row owns
|
|
66
|
+
// resolution (one value, one owner); this row IS the lane
|
|
67
|
+
"order": 0,
|
|
68
|
+
"cells": [
|
|
69
|
+
{
|
|
70
|
+
"quant": "bf16",
|
|
71
|
+
"label": "BF16",
|
|
72
|
+
"hide_from_dropdown": true,
|
|
73
|
+
"route": "trellis2-native-bf16",
|
|
74
|
+
"vram_peak_gb": 12,
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"quant": "int8",
|
|
78
|
+
"label": "INT8 ConvRot",
|
|
79
|
+
"route": "trellis2-native-int8",
|
|
80
|
+
"vram_peak_gb": 8,
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
// standard, quality on the img to mesh node, defaulting to
|
|
86
|
+
// standard"). Resolution rides ONE seat — the family defaults
|
|
87
|
+
// row's 1024 — so fast and standard leave it unstated and only
|
|
88
|
+
// quality restates the 1536 pick (the card's closed enum owns
|
|
89
|
+
// the vocabulary: 1024 | 1536; the hidden 512 lane was
|
|
90
|
+
// off-envelope and died with its variant row). The remesh tail
|
|
91
|
+
// rides the family defaults row (the floors ARE the standard —
|
|
92
|
+
// the h3 precedent: a recipe stamps only what DIFFERS from the
|
|
93
|
+
// floor). STANDARD is the stamp-less first row: the birth stamp
|
|
94
|
+
// takes the FIRST Recipe row, so every fresh card lands here
|
|
95
|
+
// named Standard with the calibration riding as floors.
|
|
96
|
+
{
|
|
97
|
+
"id": "standard",
|
|
98
|
+
"label": "Standard",
|
|
99
|
+
"hint": "The default — the official template's calibration as the floor: 1024 + remesh 768 + 700k faces; fits a 24GB card.",
|
|
100
|
+
"group": "Recipe",
|
|
101
|
+
"cells": [],
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"id": "fast",
|
|
105
|
+
"label": "Fast",
|
|
106
|
+
"hint": "Preview tier — remesh 128 + 10k faces at the same 1024 floor; the lightest mesh that still unwraps.",
|
|
107
|
+
"group": "Recipe",
|
|
108
|
+
"wire_defaults": { "remesh_resolution": 128, "decimate_faces": 10000 },
|
|
109
|
+
"cells": [],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "quality",
|
|
113
|
+
"label": "Quality",
|
|
114
|
+
"hint": "Hero assets — resolution 1536 + remesh 2048 + 2M faces; RemeshMesh wants ~3.6 GiB over a ~19 GiB resident chain (32GB+ VRAM only).",
|
|
115
|
+
"group": "Recipe",
|
|
116
|
+
"wire_defaults": { "resolution": "1536", "remesh_resolution": 2048, "decimate_faces": 2000000 },
|
|
117
|
+
"cells": [],
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
"variant_groups": [
|
|
121
|
+
{
|
|
122
|
+
"id": "Variant",
|
|
123
|
+
"label": "Variant",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"id": "Quant",
|
|
127
|
+
"label": "Quant",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": "Recipe",
|
|
131
|
+
"label": "Recipe",
|
|
132
|
+
"tooltip": "One-click mesh tiers — patch-only rows: Fast (preview tail), Standard (the calibrated default), Quality (1536 hero pass).",
|
|
133
|
+
"default": "standard"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"provisions": [
|
|
137
|
+
{
|
|
138
|
+
"name": "trellis_2_int8_convrot.safetensors",
|
|
139
|
+
"url": "https://huggingface.co/Comfy-Org/TRELLIS.2/resolve/main/diffusion_models/trellis_2_int8_convrot.safetensors",
|
|
140
|
+
"folder": "diffusion_models",
|
|
141
|
+
"sha256": "d01952ad137213f6a868f86b6b877026276f84af5eec23069217475a0bad3a31",
|
|
142
|
+
"size_bytes": 5253048192
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "trellis_2_shape_vae_bf16.safetensors",
|
|
146
|
+
"url": "https://huggingface.co/Comfy-Org/TRELLIS.2/resolve/main/vae/trellis_2_shape_vae_bf16.safetensors",
|
|
147
|
+
"folder": "vae",
|
|
148
|
+
"sha256": "de0cb4949a76c59ee5c091a995a69bcc8c51d5aeda939f0c641a50d2a72341f4",
|
|
149
|
+
"size_bytes": 1095844024
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "trellis_2_texture_vae_bf16.safetensors",
|
|
153
|
+
"url": "https://huggingface.co/Comfy-Org/TRELLIS.2/resolve/main/vae/trellis_2_texture_vae_bf16.safetensors",
|
|
154
|
+
"folder": "vae",
|
|
155
|
+
"sha256": "714e5ebf094a610e12a8e3b5175c18a62f37f6ea4218acb6073644456b73ab0e",
|
|
156
|
+
"size_bytes": 948461364
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "dino_v3_vit_l.safetensors",
|
|
160
|
+
"url": "https://huggingface.co/Comfy-Org/TRELLIS.2/resolve/main/clip_vision/dino_v3_vit_l.safetensors",
|
|
161
|
+
"folder": "clip_vision",
|
|
162
|
+
"sha256": "5cb785e458de7c460579082418af81f5c62380c181599344bdc60898c63468ee",
|
|
163
|
+
"size_bytes": 1212559776
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"lane_inputs": {
|
|
167
|
+
"clip_vision": "dino_v3_vit_l.safetensors",
|
|
168
|
+
"texture_vae": "trellis_2_texture_vae_bf16.safetensors",
|
|
169
|
+
"unet": "trellis_2_int8_convrot.safetensors",
|
|
170
|
+
"vae": "trellis_2_shape_vae_bf16.safetensors"
|
|
171
|
+
},
|
|
172
|
+
// THE DECLARED HOME (the lane-presence cure): the store folder this
|
|
173
|
+
// pack-specific lane file lives in — the run gate probes it at press
|
|
174
|
+
// instead of dying untyped at the engine.
|
|
175
|
+
"lane_homes": { "texture_vae": "vae" },
|
|
176
|
+
// THE LANE SURFACE (the z-image precedent): exactly the knobs the
|
|
177
|
+
// img-to-mesh card serves — the mesh lift, its shape/texture
|
|
178
|
+
// passes, the remesh/decimate tail, and the per-pass sampler pairs.
|
|
179
|
+
"params": [
|
|
180
|
+
"input_image", "rigged_glb", "target_glb",
|
|
181
|
+
"seed", "resolution", "steps", "cfg",
|
|
182
|
+
"camera_fov",
|
|
183
|
+
"shape_steps", "shape_cfg", "tex1_steps", "tex1_cfg",
|
|
184
|
+
"tex2_steps", "tex2_cfg",
|
|
185
|
+
"remesh_resolution", "remesh_qef", "remesh_drop_inverted",
|
|
186
|
+
"remesh_drop_enclosed", "remesh_fix_poles",
|
|
187
|
+
"decimate_faces", "smooth_angle",
|
|
188
|
+
"atlas_size", "ao_size", "normal_size",
|
|
189
|
+
"struct_sampler", "struct_scheduler",
|
|
190
|
+
"shape_sampler", "shape_scheduler",
|
|
191
|
+
"tex1_sampler", "tex1_scheduler",
|
|
192
|
+
"tex2_sampler", "tex2_scheduler",
|
|
193
|
+
"sd3_shift",
|
|
194
|
+
"rescale_struct", "rescale_shape",
|
|
195
|
+
"override_struct", "override_shape",
|
|
196
|
+
],
|
|
197
|
+
// the mesh action the img-to-mesh card binds (the trellis_t1
|
|
198
|
+
// lane tree).
|
|
199
|
+
"actions": [mesh],
|
|
200
|
+
};
|
|
201
|
+
export const family = {
|
|
202
|
+
name: "family-trellis2-native",
|
|
203
|
+
inject: ["models"],
|
|
204
|
+
apply(ctx) {
|
|
205
|
+
ctx.effect(() => ctx.models.registerFamily(DECL));
|
|
206
|
+
},
|
|
207
|
+
};
|
|
208
|
+
export { mesh } from "./actions.js";
|
|
209
|
+
// The Loader-row face: DSH loads plugin rows by bare specifier and
|
|
210
|
+
// unwraps `exports.default ?? exports` (vendor/cordis_plugins/loader
|
|
211
|
+
// unwrapExports) — the default export IS the row-loadable plugin. The
|
|
212
|
+
// named `family` stays the library face (engine loadFamilies).
|
|
213
|
+
export { family as default };
|
|
214
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@melite/models-trellis2-native",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.5-pre-alpha",
|
|
4
|
+
"license": "SSPL-1.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./lib/index.d.ts",
|
|
9
|
+
"default": "./lib/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./package.json": "./package.json"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@melite/comfyui-card-kit": "0.1.5-pre-alpha"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/node": "^22.20.0",
|
|
18
|
+
"typescript": "^5.9.3",
|
|
19
|
+
"@deepseek-ai/cordis": "^4.0.4"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"lib/index.js",
|
|
23
|
+
"lib/**/*.js",
|
|
24
|
+
"lib/**/*.d.ts"
|
|
25
|
+
],
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@deepseek-ai/cordis": "^4.0.4"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsc -p tsconfig.build.json",
|
|
31
|
+
"typecheck": "tsc --noEmit"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
}
|
|
36
|
+
}
|