@astralkit/cli 4.7.3 → 4.8.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/CHANGELOG.md +20 -0
- package/README.md +18 -0
- package/bin/index.js +4 -2
- package/package.json +1 -1
- package/src/commands/add.js +1054 -853
- package/src/commands/list.js +27 -1
- package/src/commands/update.js +1 -1
- package/src/lib/api.js +39 -2
- package/src/lib/validators.js +2 -1
- package/src/lib/website.js +147 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,26 @@ All notable changes to the `@astralkit/cli` package.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [4.8.1] (2026-12-03)
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **A workflow's images and media arrive intact.** The registry sent every file as text, so a workflow's pictures, video and fonts were written as garbled text. A binary file now comes as base64 (`encoding: "base64"`) and is written as bytes, by `add` and `update` alike. Needs the site's matching change (it is what sends the encoding); a text file is written exactly as before.
|
|
12
|
+
|
|
13
|
+
## [4.8.0] (2026-12-01)
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
- **A whole website in one install:** `astralkit add zest --website` installs every section of a website template as a component and writes the page that renders them in order. Plain `astralkit add zest` does the same when nothing else has that name. Before, a website was installed by naming each of its sections, and the page was left to write.
|
|
17
|
+
- **Next.js with the App Router:** each page is a route under the website's name (`app/zest/page.tsx`), so it can be opened at once. The navigation and the footer sit beside `<main>`, the sections inside it.
|
|
18
|
+
- **A template of several pages** (Luma, Openhouse) gets every page (`app/luma/about/page.tsx`), and the links between its pages (`about.html`, `index.html#care`) are pointed at those routes.
|
|
19
|
+
- **React:** one component per page, next to the sections. **HTML** (`-f html`): one `.html` file per page in a folder of their own, each a single document.
|
|
20
|
+
- Run it again and only what is missing is installed; a page that exists is kept (`--overwrite` replaces).
|
|
21
|
+
- A missing key or a plan without premium components is said once, with the command to run again, not once for every section. The same when the registry cannot be reached.
|
|
22
|
+
- `astralkit list --websites` lists the websites.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
- In a website install the project's stylesheet, the icon package question and the summary of what changed are handled once for the whole website.
|
|
26
|
+
- A "too many requests" answer from the registry is waited out once (as long as it asks, at most 70 seconds) instead of failing the install.
|
|
27
|
+
|
|
8
28
|
## [4.7.3] (2026-12-01)
|
|
9
29
|
|
|
10
30
|
### Changed
|
package/README.md
CHANGED
|
@@ -89,8 +89,25 @@ astralkit add button-variants --framework react
|
|
|
89
89
|
| `--booster` | Install a booster |
|
|
90
90
|
| `--workflow` | Scaffold a workflow |
|
|
91
91
|
| `--overlay` | Merge workflow into current project |
|
|
92
|
+
| `--website` | Install a whole website template |
|
|
92
93
|
| `--dry-run` | Preview without writing files |
|
|
93
94
|
|
|
95
|
+
#### A whole website in one install
|
|
96
|
+
|
|
97
|
+
A website template (a landing page, or a site of several pages) installs as one unit: every section as a component, and the page files that put them in order.
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
astralkit add zest --website # 8 sections + app/zest/page.tsx
|
|
101
|
+
astralkit add luma --website # 19 sections + 12 pages under app/luma/
|
|
102
|
+
astralkit list --websites # every website
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
- **Next.js (App Router):** each page is a route under the website's name (`app/zest/page.tsx`). Links between the pages of a multi-page template are pointed at those routes.
|
|
106
|
+
- **React:** one component per page, next to the sections (`src/components/ui/zest-page.jsx`).
|
|
107
|
+
- **HTML** (`-f html`): one `.html` file per page, in a folder of their own.
|
|
108
|
+
|
|
109
|
+
Each section is still a component of its own (`astralkit add zest-hero`). Run the command again and it installs only what is missing; `--overwrite` replaces what is there. Websites are premium: Pro and Lifetime.
|
|
110
|
+
|
|
94
111
|
### `astralkit remove <name>`
|
|
95
112
|
|
|
96
113
|
Remove a previously installed component, booster, or workflow.
|
|
@@ -108,6 +125,7 @@ Browse available content.
|
|
|
108
125
|
astralkit list # components
|
|
109
126
|
astralkit list --boosters # boosters
|
|
110
127
|
astralkit list --workflows # workflows
|
|
128
|
+
astralkit list --websites # website templates
|
|
111
129
|
astralkit list --category forms
|
|
112
130
|
astralkit list --pro # pro-only items
|
|
113
131
|
```
|
package/bin/index.js
CHANGED
|
@@ -41,13 +41,14 @@ program
|
|
|
41
41
|
// ─── add ─────────────────────────────────────────────
|
|
42
42
|
program
|
|
43
43
|
.command('add <names...>')
|
|
44
|
-
.description('Add one or more components, boosters, or
|
|
44
|
+
.description('Add one or more components, boosters, workflows, or a whole website to your project')
|
|
45
45
|
.option('--api-key <key>', 'Your API key')
|
|
46
46
|
.option('-f, --framework <framework>', 'Framework version (html, react, nextjs)')
|
|
47
47
|
.option('--dir <directory>', 'Override output directory')
|
|
48
48
|
.option('--overwrite', 'Overwrite existing files', false)
|
|
49
49
|
.option('--booster', 'Install a booster (feature module)')
|
|
50
50
|
.option('--workflow', 'Scaffold a workflow (complete app template)')
|
|
51
|
+
.option('--website', 'Install a whole website template: every section, and the pages that order them')
|
|
51
52
|
.option('--overlay', 'Merge workflow into current project')
|
|
52
53
|
.option('--dry-run', 'Preview what will be installed without writing files', false)
|
|
53
54
|
.option('-y, --yes', 'Accept all prompts with their defaults (also implied when no TTY is attached — agent/CI shells)', false)
|
|
@@ -118,13 +119,14 @@ program
|
|
|
118
119
|
// ─── list ────────────────────────────────────────────
|
|
119
120
|
program
|
|
120
121
|
.command('list')
|
|
121
|
-
.description('List available components, boosters, or
|
|
122
|
+
.description('List available components, boosters, workflows, or websites')
|
|
122
123
|
.option('-c, --category <category>', 'Filter by category')
|
|
123
124
|
.option('--framework <framework>', 'Filter by framework')
|
|
124
125
|
.option('--pro', 'Show only pro items', false)
|
|
125
126
|
.option('--free', 'Show only free items', false)
|
|
126
127
|
.option('--boosters', 'List boosters')
|
|
127
128
|
.option('--workflows', 'List workflows')
|
|
129
|
+
.option('--websites', 'List website templates (each installs as one unit)')
|
|
128
130
|
.action(listCommand);
|
|
129
131
|
|
|
130
132
|
// ─── search ──────────────────────────────────────────
|