wensity 0.1.5 → 0.1.6

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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +49 -11
  3. package/dist/index.js +1618 -64
  4. package/package.json +12 -8
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ksparth12
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,17 +1,55 @@
1
1
  # Wensity CLI
2
2
 
3
- The `wensity` CLI installs source-owned components from the Wensity registry.
3
+ Install open-code components and UI primitives from the Wensity registry into your project. There is no `@wensity/ui` runtime dependency and no theme provider to wire up.
4
4
 
5
5
  ```bash
6
- pnpm dlx wensity init
7
- pnpm dlx wensity login
8
- pnpm dlx wensity list
9
- pnpm dlx wensity add liquid-multimodal-input
10
- pnpm dlx wensity list --type block
11
- pnpm dlx wensity add monolith-hero --type block
12
- pnpm dlx wensity whoami
6
+ # Initialise (defaults: Tabler icons, medium radius)
7
+ npx wensity@latest init
8
+
9
+ # Or apply a shareable preset from https://ui.wensity.com/docs/primitives/setup
10
+ # Preset support requires wensity 0.1.6 or later (pin — @latest may be older)
11
+ npx wensity@0.1.6 init --preset <wsty1-code>
12
+
13
+ # Install a primitive or component
14
+ npx wensity@latest add button
15
+ npx wensity@latest add liquid-multimodal-input
13
16
  ```
14
17
 
15
- Premium components require an API token from the Wensity dashboard. Tokens are
16
- stored at `~/.config/wensity/credentials.json` with `0600` permissions.
17
- Blocks are always premium and require an authenticated Pro token.
18
+ ## Presets (primitives)
19
+
20
+ Generate a preset on [`/docs/primitives/setup`](https://ui.wensity.com/docs/primitives/setup), then run the copied `init --preset` command once. Settings land in `wensity.json` (`style.iconLibrary`, radius, fonts, control-solid colors) and a delimited `--primitive-*` CSS block in your Tailwind CSS file.
21
+
22
+ Later `wensity add <primitive>` / `wensity update <primitive>` reads that style automatically:
23
+
24
+ - Colors, radius, and fonts re-apply into the CSS block
25
+ - Tabler ↔ Lucide icon imports transform at install time for **UI primitives only**
26
+ - Mandatory dependency swap installs exactly one icon package when icons are used
27
+
28
+ Plain `init` (no `--preset`) refuses to overwrite an existing `wensity.json` unless you pass `--force`. `init --preset` merges `style` (+ CSS) into an existing config without rewriting installed component source.
29
+
30
+ ## Commands
31
+
32
+ | Command | Purpose |
33
+ |---|---|
34
+ | `wensity init [--preset <code>]` | Create / merge project config |
35
+ | `wensity login` | Save a dashboard API token for Pro |
36
+ | `wensity logout` | Clear credentials |
37
+ | `wensity whoami` | Show current user / plan |
38
+ | `wensity list` | List registry entries |
39
+ | `wensity add <slug>` | Install source (skips existing files) |
40
+ | `wensity update <slug>` | Re-download and overwrite local source |
41
+ | `wensity version` | Print `0.1.6` |
42
+
43
+ Premium components and blocks require an API token from the Wensity dashboard. Tokens are stored at `~/.config/wensity/credentials.json` with `0600` permissions.
44
+
45
+ ## CLI vs shadcn
46
+
47
+ | | Wensity CLI | Public shadcn registry (`@wensity/*`) |
48
+ |---|---|---|
49
+ | Stored presets (`wensity.json` style) | Yes | No |
50
+ | Lucide delivery | Yes (CLI transform) | No — Tabler-canonical payloads |
51
+ | Full editable source | Yes | Yes |
52
+ | `@wensity/ui` runtime | Never | Never |
53
+ | Premium `/components` | Token + license | Not exported |
54
+
55
+ Docs: [CLI reference](https://ui.wensity.com/docs/cli) · [Primitive setup](https://ui.wensity.com/docs/primitives/setup) · [Primitives](https://ui.wensity.com/docs/primitives)