@usalyt/cli 0.0.1 → 0.0.2
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/CHANGELOG.md +8 -0
- package/LICENSE +21 -674
- package/NOTICE +7 -8
- package/README.md +22 -8
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/index.mjs +1514 -99
- package/package.json +4 -4
- package/src/commands/add.ts +42 -12
- package/src/commands/diff.ts +130 -0
- package/src/commands/init.ts +177 -9
- package/src/commands/theme.ts +194 -0
- package/src/index.ts +6 -1
- package/src/lib/config.ts +30 -0
- package/src/lib/imports.ts +31 -5
- package/src/lib/install.ts +85 -13
- package/src/lib/paths.ts +31 -5
- package/src/lib/project.ts +218 -0
- package/src/lib/theme.ts +161 -0
package/NOTICE
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Copyright (C) 2026 Pablo Pincay Alvarez, Ricardo Villamar and Usalyt contributors.
|
|
4
4
|
|
|
5
|
-
The `usalyt` workspace and
|
|
5
|
+
The `usalyt` workspace and all six of its public packages are distributed under the MIT License (`MIT`). The complete license text for each package is in its own `LICENSE` file. There is no warranty, to the extent permitted by law.
|
|
6
6
|
|
|
7
7
|
## Package license map
|
|
8
8
|
|
|
9
9
|
| Package | License |
|
|
10
10
|
| --- | --- |
|
|
11
|
-
| `@usalyt/ui` | `
|
|
12
|
-
| `@usalyt/registry` | `
|
|
13
|
-
| `@usalyt/cli` | `
|
|
14
|
-
| `@usalyt/mcp-server` | `
|
|
15
|
-
| `@usalyt/eslint-config` | `
|
|
11
|
+
| `@usalyt/ui` | `MIT` |
|
|
12
|
+
| `@usalyt/registry` | `MIT` |
|
|
13
|
+
| `@usalyt/cli` | `MIT` |
|
|
14
|
+
| `@usalyt/mcp-server` | `MIT` |
|
|
15
|
+
| `@usalyt/eslint-config` | `MIT` |
|
|
16
16
|
| `@usalyt/tsconfig` | `MIT` |
|
|
17
17
|
|
|
18
18
|
## Source availability
|
|
19
19
|
|
|
20
|
-
Each public package tarball includes its source entry points and build inputs so recipients can rebuild
|
|
20
|
+
Each public package tarball includes its source entry points and build inputs so recipients can rebuild and customize the package. The project repository referenced by the package metadata is `https://github.com/Usalyt/ui`.
|
|
21
21
|
|
|
22
22
|
## Scope
|
|
23
23
|
|
|
@@ -27,6 +27,5 @@ This notice covers the `usalyt` workspace and its npm release workflow.
|
|
|
27
27
|
|
|
28
28
|
- Components and distribution patterns are derived from the shadcn/ui approach (MIT). The MIT notice for shadcn/ui is preserved in `THIRD_PARTY_NOTICES.md`.
|
|
29
29
|
- Base UI, React, Tailwind CSS, and the other direct dependencies keep their own licenses as listed in `THIRD_PARTY_NOTICES.md`.
|
|
30
|
-
- `packages/tsconfig` retains its original `MIT` declaration by explicit owner decision. The preserved baseline manifest declared `MIT`; no upstream copyright notice or provenance record was found in the checked-in files. This notice does not identify an upstream author, claim new ownership, or assert permissions beyond the MIT text in that package's `LICENSE`.
|
|
31
30
|
- The Inter font is distributed under the SIL Open Font License 1.1 and is attributed in `THIRD_PARTY_NOTICES.md`. Berkeley Mono is a commercial typeface and is not bundled; the stylesheet only references a locally installed copy and documents the substitution.
|
|
32
31
|
- This notice records the available evidence. It is not a legal certification.
|
package/README.md
CHANGED
|
@@ -37,11 +37,15 @@ Both commands resolve the packaged registry through the installed
|
|
|
37
37
|
### `usalyt init`
|
|
38
38
|
|
|
39
39
|
Creates `usalyt.json` in the current directory with component and utility
|
|
40
|
-
aliases.
|
|
40
|
+
aliases, writes `usalyt-theme.css` next to the detected Tailwind CSS entry, and
|
|
41
|
+
adds `@import "./usalyt-theme.css";` so copied components have working design
|
|
42
|
+
tokens without installing `@usalyt/ui`. When `tsconfig.json` defines wildcard
|
|
43
|
+
path aliases (such as `"@/*": ["./src/*"]`), `init` aligns aliases to match.
|
|
41
44
|
|
|
42
45
|
```bash
|
|
43
|
-
usalyt init
|
|
44
|
-
usalyt init --yes
|
|
46
|
+
usalyt init # prompt for aliases and CSS entry when interactive
|
|
47
|
+
usalyt init --yes # accept detected defaults without prompting
|
|
48
|
+
usalyt init --no-theme # create usalyt.json without writing theme CSS
|
|
45
49
|
usalyt init --overwrite
|
|
46
50
|
```
|
|
47
51
|
|
|
@@ -85,10 +89,20 @@ Flags:
|
|
|
85
89
|
| Flag | Behavior |
|
|
86
90
|
| ----------------- | ------------------------------------------------------------------------ |
|
|
87
91
|
| `--all`, `-a` | Install every registry item. |
|
|
88
|
-
| `--overwrite`, `-o` | Replace existing destination files. Without it,
|
|
89
|
-
| `--install` |
|
|
92
|
+
| `--overwrite`, `-o` | Replace existing destination files. Without it, existing transitive dependencies are skipped while conflicts on directly requested items abort before writing. |
|
|
93
|
+
| `--install` | Install missing npm dependencies using the detected package manager (`pnpm`, `npm`, `yarn`, or `bun`) after confirming consent. |
|
|
90
94
|
| `--yes`, `-y` | Confirm dependency installation without an interactive prompt. |
|
|
91
95
|
|
|
96
|
+
### `usalyt diff`
|
|
97
|
+
|
|
98
|
+
Compares locally installed components against the packaged registry (including
|
|
99
|
+
import rewriting and `rsc` settings) without overwriting local edits.
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
usalyt diff # check all installed registry files
|
|
103
|
+
usalyt diff button # check a specific component
|
|
104
|
+
```
|
|
105
|
+
|
|
92
106
|
For every planned file the CLI:
|
|
93
107
|
|
|
94
108
|
1. Resolves the destination from the configured alias and normalizes it
|
|
@@ -186,11 +200,11 @@ packaged registry cannot be found, the command exits non-zero with an
|
|
|
186
200
|
actionable message instead of silently using an empty catalog. A
|
|
187
201
|
monorepo-relative path exists only as a development fallback.
|
|
188
202
|
|
|
189
|
-
## License
|
|
203
|
+
## License
|
|
190
204
|
|
|
191
|
-
`@usalyt/cli` is licensed `
|
|
205
|
+
`@usalyt/cli` is licensed `MIT`; the full text is in `LICENSE`. The
|
|
192
206
|
package ships the TypeScript source and build configuration needed to rebuild
|
|
193
|
-
the executable
|
|
207
|
+
the executable.
|
|
194
208
|
The source repository is recorded in `package.json`. Third-party dependency
|
|
195
209
|
licenses are recorded in `THIRD_PARTY_NOTICES.md`; the inventory is an audit of
|
|
196
210
|
declared licenses, not a legal certification. The commercial Berkeley Mono font
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -443,4 +443,4 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
|
443
443
|
|
|
444
444
|
## Transitive dependencies
|
|
445
445
|
|
|
446
|
-
The UI bundle may include code from transitive production dependencies of the direct packages listed above. Their licenses are recorded in the resolved production inventory in the release evidence. Any dependency whose license is incompatible with
|
|
446
|
+
The UI bundle may include code from transitive production dependencies of the direct packages listed above. Their licenses are recorded in the resolved production inventory in the release evidence. Any dependency whose license is incompatible with MIT distribution must be removed or replaced before publication.
|