@astralkit/cli 4.8.1 → 4.8.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 CHANGED
@@ -5,6 +5,11 @@ 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.2] (2026-12-03)
9
+
10
+ ### Fixed
11
+ - **A component already in the project counts as installed.** Installing several at once (`astralkit add zest-faq button`, or a website) where one was already there ended "Not installed: ..." with exit code 1, so an agent re-running an install was told it had failed. It now says "Already in your project" and keeps the file; `--overwrite` still replaces it.
12
+
8
13
  ## [4.8.1] (2026-12-03)
9
14
 
10
15
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astralkit/cli",
3
- "version": "4.8.1",
3
+ "version": "4.8.2",
4
4
  "description": "AstralKit CLI — Install and manage UI components in your project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -263,9 +263,10 @@ async function addComponent(componentSlug, options) {
263
263
  const targetFile = path.resolve(process.cwd(), componentsDir, `${componentSlug}${ext}`);
264
264
 
265
265
  if (fs.existsSync(targetFile) && !options.overwrite) {
266
- p.log.warn(`Already exists: ${componentsDir}/${componentSlug}${ext}`);
267
- console.log(pc.gray('Use --overwrite to replace.'));
268
- return;
266
+ // Already in the project counts as installed (2026-12-03): an agent re-running an install of several was told
267
+ // "Not installed" with exit code 1, and could take that as a reason to write the component by hand.
268
+ p.log.info(`Already in your project: ${componentsDir}/${componentSlug}${ext} (kept as it is; --overwrite replaces it)`);
269
+ return true;
269
270
  }
270
271
 
271
272
  const spinner = ora(`Fetching ${pc.cyan(componentSlug)} (${FRAMEWORK_LABELS[framework]})...`).start();