@astralkit/cli 4.6.1 → 4.6.3
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 +16 -0
- package/LICENSE +10 -6
- package/README.md +11 -10
- package/package.json +1 -1
- package/src/commands/login.js +2 -1
- package/src/lib/ai-rules.js +8 -4
- package/src/lib/validators.js +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,22 @@ 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.6.3] (2026-11-24)
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- After `astralkit login`, suggest `astralkit add button` (a free component that works on every plan) instead of `astralkit add pricing-table`, which does not exist.
|
|
12
|
+
- **AI rules fallback** (written when the `astralkit` SDK is not installed) on the final token names: `ak-N` = N x 4px, no underscores. It still taught the pre-0.8 scale (`ak-1` as 8px), which halves every space an agent writes. It also no longer bans Framer Motion (GSAP is what is not allowed), uses `min-h-ak-12` instead of an arbitrary value, and names a palette that exists.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- **README plans:** Free, Pro and Lifetime. The CLI works on every plan: Free installs the free core components in all three frameworks; premium components, boosters and workflows need Pro (metered unlocks) or Lifetime.
|
|
16
|
+
- **LICENSE:** the AI clause matches the AstralKit license: no training on the content, and using AI coding assistants and agents (Claude Code, Codex, Cursor, the AstralKit MCP) to read, install and modify licensed content in your own projects is allowed.
|
|
17
|
+
|
|
18
|
+
## [4.6.2] — 2026-10-14
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
- Install Next.js catch-all and optional catch-all routes used by authentication boosters. Dots within route names no longer trigger the directory-traversal guard.
|
|
22
|
+
- Continue rejecting parent-directory traversal with either slash convention, absolute paths, Windows drive-relative paths and null bytes. Existing route files remain preserved by create-if-missing merges.
|
|
23
|
+
|
|
8
24
|
## [4.6.1] — 2026-10-11
|
|
9
25
|
|
|
10
26
|
### Fixed
|
package/LICENSE
CHANGED
|
@@ -18,9 +18,10 @@ PROHIBITED USES
|
|
|
18
18
|
You may NOT, without the express prior written consent of Blue Beacon Creative LLC:
|
|
19
19
|
|
|
20
20
|
1. Use the Software's source code, or any code delivered through the Software,
|
|
21
|
-
|
|
22
|
-
system, machine learning model, large language model, neural network, or
|
|
23
|
-
|
|
21
|
+
to train, fine-tune, or otherwise develop any artificial intelligence
|
|
22
|
+
system, machine learning model, large language model, or neural network, or
|
|
23
|
+
include it in any dataset, corpus, or index made available to third parties
|
|
24
|
+
for that purpose.
|
|
24
25
|
|
|
25
26
|
2. Resell, sublicense, redistribute, or otherwise transfer the Software or any
|
|
26
27
|
component, booster, or workflow delivered through the Software as a standalone
|
|
@@ -30,9 +31,12 @@ You may NOT, without the express prior written consent of Blue Beacon Creative L
|
|
|
30
31
|
|
|
31
32
|
4. Share account credentials or license keys with unauthorized individuals.
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
learning, unsupervised learning, reinforcement learning, transfer learning
|
|
35
|
-
|
|
34
|
+
Restriction 1 applies to all forms of model training, including supervised
|
|
35
|
+
learning, unsupervised learning, reinforcement learning, and transfer learning.
|
|
36
|
+
|
|
37
|
+
It does not restrict using AI coding assistants and agents (for example Claude
|
|
38
|
+
Code, Codex, or Cursor, including through the AstralKit MCP server) to read,
|
|
39
|
+
install, modify, and extend licensed content in your own projects.
|
|
36
40
|
|
|
37
41
|
For clarity, AstralKit's publicly available documentation, marketing materials,
|
|
38
42
|
and API reference content are not subject to these restrictions.
|
package/README.md
CHANGED
|
@@ -248,16 +248,17 @@ Teammates clone and run `npm install` — everything works. No `astralkit init`
|
|
|
248
248
|
|
|
249
249
|
## Plans
|
|
250
250
|
|
|
251
|
-
| | Free | Pro |
|
|
252
|
-
|
|
253
|
-
| **
|
|
254
|
-
| **
|
|
255
|
-
| **
|
|
256
|
-
| **React
|
|
257
|
-
| **Boosters** |
|
|
258
|
-
| **Workflows** |
|
|
259
|
-
|
|
260
|
-
|
|
251
|
+
| | Free | Pro | Lifetime |
|
|
252
|
+
|---|---|---|---|
|
|
253
|
+
| **Free core components** | ✓ | ✓ | ✓ |
|
|
254
|
+
| **Component downloads** | Unlimited (free components) | Unlimited | Unlimited |
|
|
255
|
+
| **Premium components** | - | ✓ | ✓ |
|
|
256
|
+
| **HTML / Tailwind, React, Next.js** | ✓ | ✓ | ✓ |
|
|
257
|
+
| **Boosters** | - | 3 unlocks per billing month | Unlimited |
|
|
258
|
+
| **Workflows** | - | 1 unlock per billing month | Unlimited |
|
|
259
|
+
| **License** | Personal projects | Client and commercial | Client and commercial |
|
|
260
|
+
|
|
261
|
+
> **The CLI works on every plan.** Free installs the free core components in all three frameworks. Premium components, boosters and workflows need Pro or Lifetime.
|
|
261
262
|
|
|
262
263
|
Upgrade at [astralkit.com/pricing](https://astralkit.com/pricing).
|
|
263
264
|
|
package/package.json
CHANGED
package/src/commands/login.js
CHANGED
|
@@ -124,7 +124,8 @@ export async function loginCommand() {
|
|
|
124
124
|
console.log(pc.gray(` Email: ${authData.email || 'unknown'}`));
|
|
125
125
|
console.log(pc.gray(` Plan: ${authData.plan || 'free'}`));
|
|
126
126
|
console.log();
|
|
127
|
-
|
|
127
|
+
// A real, free component, so the first command works on every plan. ("pricing-table" never existed.)
|
|
128
|
+
p.outro(pc.green('You are connected. Try it: ' + pc.cyan('astralkit add button')));
|
|
128
129
|
|
|
129
130
|
} catch (err) {
|
|
130
131
|
spinner.fail(err.message);
|
package/src/lib/ai-rules.js
CHANGED
|
@@ -46,8 +46,12 @@ ALWAYS use \`ak-*\` design tokens. NEVER use arbitrary bracket values or raw Tai
|
|
|
46
46
|
- Display/hero: \`text-ak-display-*\` (dramatic scaling for marketing headings)
|
|
47
47
|
- Fonts: \`font-ak-sans\` (Inter), \`font-ak-serif\` (DM Serif Display), \`font-ak-mono\` (JetBrains Mono)
|
|
48
48
|
|
|
49
|
+
## Token names: Tailwind with \`ak-\` in front
|
|
50
|
+
- Spacing is whole numbers only, \`ak-N\` = N x 4px, the same numbers as Tailwind: \`ak-1\` (4px), \`ak-2\` (8px), \`ak-3\` (12px), \`ak-4\` (16px), \`ak-6\` (24px), \`ak-8\` (32px), \`ak-12\` (48px), \`ak-16\` (64px)
|
|
51
|
+
- Type sizes are Tailwind's size words only. There are no in-between sizes.
|
|
52
|
+
- No underscore and no dot after \`ak-\`, ever: \`ak-1_5\`, \`ak-1.5\` and \`text-ak-2xl_5\` do not exist and render nothing.
|
|
53
|
+
|
|
49
54
|
## Spacing
|
|
50
|
-
Use \`ak-*\` spacing tokens: \`ak-0_5\` (4px), \`ak-1\` (8px), \`ak-1_5\` (12px), \`ak-2\` (16px), \`ak-3\` (24px), \`ak-4\` (32px), \`ak-6\` (48px), \`ak-8\` (64px)
|
|
51
55
|
- Fluid: \`ak-fl-xs\` through \`ak-fl-3xl\` (responsive, no breakpoints)
|
|
52
56
|
- Page margin: \`px-ak-fl-page-margin\` (16px mobile → 80px desktop)
|
|
53
57
|
|
|
@@ -62,11 +66,11 @@ Phosphor Icons ONLY (\`@phosphor-icons/react\`). Never inline SVGs or other icon
|
|
|
62
66
|
## Conventions
|
|
63
67
|
- No inline \`style={{}}\` — use Tailwind classes
|
|
64
68
|
- No shadows on panels/dropdowns — use borders
|
|
65
|
-
-
|
|
69
|
+
- Motion: Framer Motion (prefer \`astralkit/motion\`), CSS and Lenis are fine. No GSAP.
|
|
66
70
|
- 16px body floor + AAA contrast minimum
|
|
67
|
-
- All buttons/inputs: \`min-h-
|
|
71
|
+
- All buttons/inputs: \`min-h-ak-12\` (48px) touch target + \`cursor-pointer\`
|
|
68
72
|
- Dark mode: \`.dark\` class or \`data-theme="dark"\` on \`<html>\`
|
|
69
|
-
- Palettes: \`data-ak-theme="
|
|
73
|
+
- Palettes: \`data-ak-theme="warm-earth"\` (the palettes are in \`astralkit/palettes\`; \`THEME_PALETTES\` lists them)
|
|
70
74
|
- Density: \`data-ak-density="compact|spacious"\` on any container
|
|
71
75
|
|
|
72
76
|
## For the full token reference
|
package/src/lib/validators.js
CHANGED
|
@@ -97,8 +97,12 @@ export function isSafePath(basedir, filepath) {
|
|
|
97
97
|
*/
|
|
98
98
|
export function isSafeInstallDir(cwd, requestedDir) {
|
|
99
99
|
if (typeof requestedDir !== 'string' || !requestedDir) return false;
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
// Check both separator conventions on every host. Next.js catch-all route
|
|
101
|
+
// names contain dots ([[...slug]]), but only a complete '..' segment is
|
|
102
|
+
// traversal. Reject drive-relative paths too (C:foo on Windows).
|
|
103
|
+
if (path.posix.isAbsolute(requestedDir) || path.win32.isAbsolute(requestedDir)) return false;
|
|
104
|
+
if (/^[a-z]:/i.test(requestedDir) || requestedDir.includes('\0')) return false;
|
|
105
|
+
if (requestedDir.split(/[\\/]/).includes('..')) return false;
|
|
102
106
|
const resolved = path.resolve(cwd, requestedDir);
|
|
103
107
|
const relative = path.relative(cwd, resolved);
|
|
104
108
|
return !relative.startsWith('..') && !path.isAbsolute(relative);
|