@base_bit/vmg-cli 0.0.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 +201 -0
- package/NOTICE +9 -0
- package/README.md +37 -0
- package/THIRD_PARTY_NOTICES.md +238 -0
- package/bin/vmg.mjs +46 -0
- package/package.json +27 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Vibe Motion Graphics (VMG)
|
|
2
|
+
Copyright 2026 VMG contributors
|
|
3
|
+
|
|
4
|
+
This product includes software developed by VMG contributors.
|
|
5
|
+
|
|
6
|
+
VMG-authored source code is licensed under the Apache License, Version 2.0.
|
|
7
|
+
Third-party software, fonts, media, names, logos, and brand artwork are not
|
|
8
|
+
relicensed by the Apache License. See THIRD_PARTY_NOTICES.md for their terms
|
|
9
|
+
and release status.
|
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# VMG CLI
|
|
2
|
+
|
|
3
|
+
Install the CLI with npm (currently macOS Apple Silicon / arm64 only):
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install -g @base_bit/vmg-cli
|
|
7
|
+
vmg doctor
|
|
8
|
+
vmg init ./my-project
|
|
9
|
+
vmg dev ./my-project
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Or run without a global installation:
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npx @base_bit/vmg-cli --help
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Node.js 22.13+ and pnpm 10.x must already be installed. The CLI does not install
|
|
19
|
+
or manage them. Project initialization needs registry access to the matching
|
|
20
|
+
`@base_bit/vmg-sdk` and project dependencies. Run `vmg skill` for the authoring
|
|
21
|
+
and Agent guide.
|
|
22
|
+
|
|
23
|
+
`@base_bit/vmg-cli` provides the `vmg` command and selects an exactly matching
|
|
24
|
+
platform package. `@base_bit/vmg-cli-darwin-arm64` contains the macOS arm64 native
|
|
25
|
+
binary; install the main package for the command. Other platforms are not yet
|
|
26
|
+
supported. Keep optional dependencies enabled. Installation works with
|
|
27
|
+
`--ignore-scripts`: there are no postinstall hooks or extra binary downloads.
|
|
28
|
+
|
|
29
|
+
The binary embeds VMG's fixed runtime resources. On first use these expand into
|
|
30
|
+
`~/Library/Caches/vmg/runtime/<payload-sha256>/`. `VMG_CACHE_DIR` can select an
|
|
31
|
+
absolute private writable base; `vmg doctor --json` reports the resource location.
|
|
32
|
+
A damaged cache is an error: stop processes using the affected hash, remove only
|
|
33
|
+
that hash directory and retry. Older hashes are retained across upgrades.
|
|
34
|
+
|
|
35
|
+
Upgrade with `npm install -g @base_bit/vmg-cli@latest`; uninstall with
|
|
36
|
+
`npm uninstall -g @base_bit/vmg-cli`. Cached runtime resources remain on disk.
|
|
37
|
+
The independently distributed native binary continues to work without npm.
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
# Third-Party Notices and Asset Rights
|
|
2
|
+
|
|
3
|
+
Last reviewed: 2026-09-04, against the repository manifests, the lockfile,
|
|
4
|
+
installed package metadata, accompanying license files, and embedded font
|
|
5
|
+
metadata.
|
|
6
|
+
|
|
7
|
+
The Apache License, Version 2.0 in `LICENSE` applies to source code authored
|
|
8
|
+
for VMG, except where a file or accompanying notice states otherwise. It does
|
|
9
|
+
not relicense the third-party software or assets identified below. Package
|
|
10
|
+
versions are the versions currently resolved by this repository; update this
|
|
11
|
+
inventory whenever dependencies or distributed assets change.
|
|
12
|
+
|
|
13
|
+
## @vmg/kit declared dependencies
|
|
14
|
+
|
|
15
|
+
The following packages are declared as runtime dependencies or peer
|
|
16
|
+
dependencies of `@vmg/kit@1.0.0`. They remain under their own licenses.
|
|
17
|
+
|
|
18
|
+
| Package | Resolved version | License | Upstream |
|
|
19
|
+
| --- | ---: | --- | --- |
|
|
20
|
+
| `@vitejs/plugin-react` | 6.1.0 | MIT | <https://github.com/vitejs/vite-plugin-react> |
|
|
21
|
+
| `client-zip` | 2.5.0 | MIT | <https://github.com/Touffy/client-zip> |
|
|
22
|
+
| `fflate` | 0.8.3 | MIT | <https://github.com/101arrowz/fflate> |
|
|
23
|
+
| `mediabunny` | 1.55.2 | MPL-2.0 | <https://github.com/Vanilagy/mediabunny> |
|
|
24
|
+
| `playwright-core` | 1.62.1 | Apache-2.0 | <https://github.com/microsoft/playwright> |
|
|
25
|
+
| `vite` | 8.2.2 | MIT | <https://github.com/vitejs/vite> |
|
|
26
|
+
| `react` (peer) | 19.2.8 | MIT | <https://github.com/facebook/react> |
|
|
27
|
+
| `react-dom` (peer) | 19.2.8 | MIT | <https://github.com/facebook/react> |
|
|
28
|
+
|
|
29
|
+
The npm package contains compiled VMG files and declares these packages as
|
|
30
|
+
external dependencies; it does not intentionally vendor their source into the
|
|
31
|
+
tarball. npm-installed copies contain their own license files. If a future
|
|
32
|
+
release bundles any of this code into a standalone application or executable,
|
|
33
|
+
the release artifact must also retain the applicable copyright notices and
|
|
34
|
+
license text. In particular, MPL-2.0-covered files and modifications must stay
|
|
35
|
+
available in Source Code Form as required by MPL-2.0.
|
|
36
|
+
|
|
37
|
+
Vite's distributed package contains its own bundled-dependency notices in
|
|
38
|
+
`vite/LICENSE.md`; retain that file when Vite itself is redistributed.
|
|
39
|
+
|
|
40
|
+
## Other direct development dependencies
|
|
41
|
+
|
|
42
|
+
These tools are used to build or test the repository and are not intended to
|
|
43
|
+
be copied into `@vmg/kit` release artifacts. Their installed packages retain
|
|
44
|
+
their own license files.
|
|
45
|
+
|
|
46
|
+
| Package family | Resolved version | License |
|
|
47
|
+
| --- | ---: | --- |
|
|
48
|
+
| `esbuild` | 0.28.1 | MIT |
|
|
49
|
+
| `@testing-library/jest-dom` | 6.9.1 | MIT |
|
|
50
|
+
| `@testing-library/react` | 16.3.2 | MIT |
|
|
51
|
+
| `@testing-library/user-event` | 14.6.6 | MIT |
|
|
52
|
+
| `@types/node` | 22.19.19 | MIT |
|
|
53
|
+
| `@types/react` | 19.2.14 | MIT |
|
|
54
|
+
| `@types/react-dom` | 19.2.3 | MIT |
|
|
55
|
+
| `fake-indexeddb` | 6.2.5 | Apache-2.0 |
|
|
56
|
+
| `jsdom` | 26.1.0 | MIT |
|
|
57
|
+
| `typescript` | 5.9.3 | Apache-2.0 |
|
|
58
|
+
| `vitest` | 4.1.11 | MIT |
|
|
59
|
+
|
|
60
|
+
Transitive packages are locked in `pnpm-lock.yaml` and carry license
|
|
61
|
+
metadata and license files in their npm distributions. A production release
|
|
62
|
+
process must regenerate a license inventory from the final resolved dependency
|
|
63
|
+
tree instead of treating this dated snapshot as proof for a different build.
|
|
64
|
+
|
|
65
|
+
## Liquid Glass Studio rendering technique
|
|
66
|
+
|
|
67
|
+
`examples/templates/liquid-glass-bars/src/liquid-glass-renderer.ts` adapts the
|
|
68
|
+
WebGL2 multi-pass background blur, SDF refraction, Fresnel, and directional glare
|
|
69
|
+
implementation from Liquid Glass Studio at commit
|
|
70
|
+
`d13c3e53813ebc1d8b52d878071b63212a550ebc`.
|
|
71
|
+
|
|
72
|
+
Copyright (c) 2024 Charles Yin. Licensed under the MIT License. The complete
|
|
73
|
+
copyright and permission notice is retained in the adapted source file.
|
|
74
|
+
|
|
75
|
+
Upstream: <https://github.com/iyinchao/liquid-glass-studio>
|
|
76
|
+
|
|
77
|
+
## Fonts
|
|
78
|
+
|
|
79
|
+
### Nunito
|
|
80
|
+
|
|
81
|
+
`@fontsource/nunito@5.2.7`, used by the brand animation and VMG Studio, contains
|
|
82
|
+
Nunito font files under the SIL Open Font License, Version 1.1.
|
|
83
|
+
|
|
84
|
+
Copyright 2014 The Nunito Project Authors
|
|
85
|
+
(<https://github.com/googlefonts/nunito>).
|
|
86
|
+
|
|
87
|
+
### Glow Sans SC / 未来荧黑
|
|
88
|
+
|
|
89
|
+
The following files are embedded in the Keep growth animation:
|
|
90
|
+
|
|
91
|
+
- `apps/keep-growth-animation/src/fonts/GlowSansSC-Compressed-Book.otf`
|
|
92
|
+
(SHA-256 `fcb74781e57d1421e74073476e3092035f281787b22fc8f9a24d1fc5ba4f3b61`)
|
|
93
|
+
- `apps/keep-growth-animation/src/fonts/GlowSansSC-Compressed-ExtraBold.otf`
|
|
94
|
+
(SHA-256 `6bbb644a2d58b1b7ef8682b87b8eb9f2084c3eb883b2647be0996321663afc07`)
|
|
95
|
+
|
|
96
|
+
The embedded font metadata identifies version 0.93, Project Wêlai / Project
|
|
97
|
+
Welai, Celestial Phineas, Source Han Sans, Fira Sans, and Raleway contributors,
|
|
98
|
+
and states that the font software is licensed under the SIL Open Font License,
|
|
99
|
+
Version 1.1. Upstream: <https://github.com/welai/glow-sans>.
|
|
100
|
+
|
|
101
|
+
The following SIL Open Font License text applies to both Nunito and Glow Sans
|
|
102
|
+
font software:
|
|
103
|
+
|
|
104
|
+
```text
|
|
105
|
+
-----------------------------------------------------------
|
|
106
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
107
|
+
-----------------------------------------------------------
|
|
108
|
+
|
|
109
|
+
PREAMBLE
|
|
110
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
111
|
+
development of collaborative font projects, to support the font creation
|
|
112
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
113
|
+
open framework in which fonts may be shared and improved in partnership
|
|
114
|
+
with others.
|
|
115
|
+
|
|
116
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
117
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
118
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
119
|
+
redistributed and/or sold with any software provided that any reserved
|
|
120
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
121
|
+
however, cannot be released under any other type of license. The
|
|
122
|
+
requirement for fonts to remain under this license does not apply
|
|
123
|
+
to any document created using the fonts or their derivatives.
|
|
124
|
+
|
|
125
|
+
DEFINITIONS
|
|
126
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
127
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
128
|
+
include source files, build scripts and documentation.
|
|
129
|
+
|
|
130
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
131
|
+
copyright statement(s).
|
|
132
|
+
|
|
133
|
+
"Original Version" refers to the collection of Font Software components as
|
|
134
|
+
distributed by the Copyright Holder(s).
|
|
135
|
+
|
|
136
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
137
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
138
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
139
|
+
new environment.
|
|
140
|
+
|
|
141
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
142
|
+
writer or other person who contributed to the Font Software.
|
|
143
|
+
|
|
144
|
+
PERMISSION & CONDITIONS
|
|
145
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
146
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
147
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
148
|
+
Software, subject to the following conditions:
|
|
149
|
+
|
|
150
|
+
1) Neither the Font Software nor any of its individual components,
|
|
151
|
+
in Original or Modified Versions, may be sold by itself.
|
|
152
|
+
|
|
153
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
154
|
+
redistributed and/or sold with any software, provided that each copy
|
|
155
|
+
contains the above copyright notice and this license. These can be
|
|
156
|
+
included either as stand-alone text files, human-readable headers or
|
|
157
|
+
in the appropriate machine-readable metadata fields within text or
|
|
158
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
159
|
+
|
|
160
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
161
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
162
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
163
|
+
presented to the users.
|
|
164
|
+
|
|
165
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
166
|
+
Software shall not be used to promote, endorse or advertise any
|
|
167
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
168
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
169
|
+
permission.
|
|
170
|
+
|
|
171
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
172
|
+
must be distributed entirely under this license, and must not be
|
|
173
|
+
distributed under any other license. The requirement for fonts to
|
|
174
|
+
remain under this license does not apply to any document created using
|
|
175
|
+
the Font Software.
|
|
176
|
+
|
|
177
|
+
TERMINATION
|
|
178
|
+
This license becomes null and void if any of the above conditions are
|
|
179
|
+
not met.
|
|
180
|
+
|
|
181
|
+
DISCLAIMER
|
|
182
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
183
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
184
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
185
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
186
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
187
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
188
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
189
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
190
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## Brand icons from Simple Icons
|
|
194
|
+
|
|
195
|
+
`apps/brand-animation` uses glyph data from `simple-icons@15.5.0`. The Simple
|
|
196
|
+
Icons package is distributed under CC0-1.0, but Simple Icons expressly warns
|
|
197
|
+
that this does not establish that every depicted brand icon is CC0 or clear
|
|
198
|
+
trademark rights. The current example depicts Alibaba.com, Alipay, WeChat, QQ,
|
|
199
|
+
Sina Weibo, Bilibili, Zhihu, Baidu, Kuaishou, NetEase Cloud Music, ByteDance,
|
|
200
|
+
Xiaomi, Huawei, DJI, and OnePlus.
|
|
201
|
+
|
|
202
|
+
These third-party names and logos are used only as replaceable demonstration
|
|
203
|
+
content. Their inclusion does not imply affiliation or endorsement. Before a
|
|
204
|
+
public or commercial distribution of that example, verify each owner's current
|
|
205
|
+
brand guidelines and obtain any permission required for that use, or replace
|
|
206
|
+
the icons with cleared sample artwork. Apache-2.0 and Simple Icons' CC0-1.0
|
|
207
|
+
dedication grant no trademark rights in those brands.
|
|
208
|
+
|
|
209
|
+
Simple Icons license and disclaimer:
|
|
210
|
+
|
|
211
|
+
- <https://github.com/simple-icons/simple-icons/blob/15.5.0/LICENSE.md>
|
|
212
|
+
- <https://github.com/simple-icons/simple-icons/blob/15.5.0/DISCLAIMER.md>
|
|
213
|
+
|
|
214
|
+
## VMG names, logos, and brand artwork
|
|
215
|
+
|
|
216
|
+
The VMG name, logos, icon renders, colorway sheets, and other VMG brand artwork
|
|
217
|
+
under `docs/brand/`, plus copies under application or example `public/`
|
|
218
|
+
directories, are not licensed under Apache-2.0. No trademark rights are
|
|
219
|
+
granted. Their public asset license and permitted-use policy have not yet been
|
|
220
|
+
selected; keep them out of third-party reuse and redistribution until the
|
|
221
|
+
rights holder records that decision.
|
|
222
|
+
|
|
223
|
+
## Media with undocumented provenance
|
|
224
|
+
|
|
225
|
+
The repository currently contains the following clue-board template demonstration media
|
|
226
|
+
without a committed source, author, generation record, or license notice:
|
|
227
|
+
|
|
228
|
+
- `examples/templates/caseboard/assets/evidence/alley.webp`
|
|
229
|
+
- `examples/templates/caseboard/assets/evidence/diner.webp`
|
|
230
|
+
- `examples/templates/caseboard/assets/evidence/key-217.webp`
|
|
231
|
+
- `examples/templates/caseboard/assets/evidence/sedan.webp`
|
|
232
|
+
- `examples/templates/caseboard/assets/materials/corkboard-generated.webp`
|
|
233
|
+
- `examples/templates/caseboard/assets/materials/wood-frame-border.webp`
|
|
234
|
+
|
|
235
|
+
Their presence in the repository is not evidence of permission for public
|
|
236
|
+
redistribution. They are not covered by Apache-2.0 and are not cleared for a
|
|
237
|
+
public release until provenance and redistribution rights are documented, or
|
|
238
|
+
the files are replaced with cleared assets.
|
package/bin/vmg.mjs
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawn } from 'node:child_process';
|
|
3
|
+
import { readFileSync, realpathSync } from 'node:fs';
|
|
4
|
+
import { createRequire } from 'node:module';
|
|
5
|
+
import { dirname, join, resolve } from 'node:path';
|
|
6
|
+
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
7
|
+
|
|
8
|
+
export const platforms = Object.freeze({ 'darwin-arm64': '@base_bit/vmg-cli-darwin-arm64' });
|
|
9
|
+
|
|
10
|
+
export function resolveBinary(packageJson, platform = process.platform, arch = process.arch) {
|
|
11
|
+
const name = platforms[`${platform}-${arch}`];
|
|
12
|
+
if (!name) throw new Error(`VMG does not support ${platform}-${arch}. Supported platforms: ${Object.keys(platforms).join(', ')}.`);
|
|
13
|
+
const entry = JSON.parse(readFileSync(packageJson, 'utf8'));
|
|
14
|
+
let manifestPath;
|
|
15
|
+
try { manifestPath = createRequire(packageJson).resolve(`${name}/package.json`); }
|
|
16
|
+
catch (error) {
|
|
17
|
+
if (error.code !== 'MODULE_NOT_FOUND') throw error;
|
|
18
|
+
throw new Error(`Missing ${name}@${entry.version}. Reinstall @base_bit/vmg-cli with optional dependencies enabled (npm install -g @base_bit/vmg-cli@${entry.version} --include=optional).`);
|
|
19
|
+
}
|
|
20
|
+
const installed = JSON.parse(readFileSync(manifestPath, 'utf8'));
|
|
21
|
+
if (installed.name !== name || installed.version !== entry.version || entry.optionalDependencies?.[name] !== entry.version)
|
|
22
|
+
throw new Error(`VMG platform package version mismatch: expected ${name}@${entry.version}, found ${installed.name}@${installed.version}. Reinstall @base_bit/vmg-cli.`);
|
|
23
|
+
return join(dirname(manifestPath), 'bin', 'vmg');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function launch(binary, args) {
|
|
27
|
+
// Keep Rust attached to the terminal. Rust owns the separately grouped bridge
|
|
28
|
+
// and must finish reaping it before this launcher exits.
|
|
29
|
+
const child = spawn(binary, args, { stdio: 'inherit', shell: false });
|
|
30
|
+
const interrupt = () => child.kill('SIGINT'), terminate = () => child.kill('SIGTERM');
|
|
31
|
+
process.on('SIGINT', interrupt); process.on('SIGTERM', terminate);
|
|
32
|
+
const cleanup = () => { process.off('SIGINT', interrupt); process.off('SIGTERM', terminate); };
|
|
33
|
+
let spawnFailed = false;
|
|
34
|
+
child.once('error', error => { spawnFailed = true; cleanup(); console.error(`vmg: Cannot start platform binary: ${error.message}`); process.exitCode = 1; });
|
|
35
|
+
child.once('close', (code, signal) => {
|
|
36
|
+
cleanup();
|
|
37
|
+
if (spawnFailed) return;
|
|
38
|
+
if (signal) process.kill(process.pid, signal);
|
|
39
|
+
else process.exitCode = code ?? 1;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (process.argv[1] && pathToFileURL(realpathSync(resolve(process.argv[1]))).href === import.meta.url) {
|
|
44
|
+
try { launch(resolveBinary(fileURLToPath(new URL('../package.json', import.meta.url))), process.argv.slice(2)); }
|
|
45
|
+
catch (error) { console.error(`vmg: ${error.message}`); process.exitCode = 1; }
|
|
46
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.0.1",
|
|
3
|
+
"license": "Apache-2.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=22.13.0"
|
|
7
|
+
},
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public",
|
|
10
|
+
"registry": "https://registry.npmjs.org/"
|
|
11
|
+
},
|
|
12
|
+
"name": "@base_bit/vmg-cli",
|
|
13
|
+
"description": "VMG motion graphics CLI",
|
|
14
|
+
"bin": {
|
|
15
|
+
"vmg": "bin/vmg.mjs"
|
|
16
|
+
},
|
|
17
|
+
"optionalDependencies": {
|
|
18
|
+
"@base_bit/vmg-cli-darwin-arm64": "0.0.1"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"bin/vmg.mjs",
|
|
22
|
+
"README.md",
|
|
23
|
+
"LICENSE",
|
|
24
|
+
"NOTICE",
|
|
25
|
+
"THIRD_PARTY_NOTICES.md"
|
|
26
|
+
]
|
|
27
|
+
}
|