@dalexto/lexsys-cli 0.0.2 → 0.0.4

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.
@@ -0,0 +1,4 @@
1
+ import type { RegistryItem } from "@dalexto/lexsys-registry";
2
+ export type ComponentDriftStatus = "missing" | "in-sync" | "drift";
3
+ export declare const getComponentDriftStatus: (name: string) => Promise<ComponentDriftStatus>;
4
+ export declare const itemHasTemplateDrift: (item: RegistryItem) => Promise<boolean>;
@@ -2,7 +2,7 @@ import type { RegistryItem } from "@dalexto/lexsys-registry";
2
2
  import type { LexsysConfig } from "../config/config.js";
3
3
  import type { ResolvedRegistryStyle, ResolvedRegistryUtility } from "../registry/types.js";
4
4
  import type { InstallResourceResult } from "./results.js";
5
- import { type UninstallResourceResult } from "./uninstall-results.js";
5
+ import { type UninstallResourceResult } from "./results.js";
6
6
  export declare const getRegistryTemplatePath: (templatePath: string) => string;
7
7
  export declare const ensureProjectStructure: (config: LexsysConfig) => Promise<void>;
8
8
  export declare const installUtilities: (utilities: ResolvedRegistryUtility[], config: LexsysConfig) => Promise<InstallResourceResult>;
@@ -4,7 +4,17 @@ export interface InstallResourceResult {
4
4
  skipped: string[];
5
5
  conflicted: string[];
6
6
  }
7
+ export interface UninstallResourceResult {
8
+ removed: string[];
9
+ skipped: string[];
10
+ conflicted: string[];
11
+ missing: string[];
12
+ }
7
13
  export declare const createInstallResourceResult: () => InstallResourceResult;
14
+ export declare const createUninstallResourceResult: () => UninstallResourceResult;
8
15
  export declare const mergeInstallResults: (results: InstallResourceResult[]) => InstallResourceResult;
16
+ export declare const mergeUninstallResults: (results: UninstallResourceResult[]) => UninstallResourceResult;
9
17
  export declare const hasInstallConflicts: (result: InstallResourceResult) => boolean;
18
+ export declare const hasUninstallConflicts: (result: UninstallResourceResult) => boolean;
10
19
  export declare const printResourceSummary: (label: string, result: InstallResourceResult) => void;
20
+ export declare const printUninstallSummary: (label: string, result: UninstallResourceResult) => void;
@@ -1,4 +1,3 @@
1
1
  import type { RegistryItem } from "@dalexto/lexsys-registry";
2
2
  import type { LexsysConfig } from "../config/config.js";
3
- export declare const resolveComponentsRoot: (config: LexsysConfig) => string;
4
3
  export declare const resolveItemInstallTarget: (config: LexsysConfig, item: RegistryItem) => string;
@@ -1,2 +1,4 @@
1
1
  export declare const checkItemFiles: (name: string) => Promise<void>;
2
- export declare const checkItemUpdate: (name: string, installedVersion: string, dryRun: boolean, force: boolean, sync?: boolean) => Promise<boolean>;
2
+ export declare const applyItemOverwrite: (name: string, force: boolean) => Promise<boolean>;
3
+ export declare const checkItemUpdate: (name: string, dryRun: boolean, force: boolean, sync?: boolean) => Promise<boolean>;
4
+ export declare const resetItem: (name: string, dryRun: boolean) => Promise<boolean>;
@@ -1,3 +1,3 @@
1
1
  import type { RegistryItem } from "@dalexto/lexsys-registry";
2
2
  export declare const computeRegistryClosure: (rootNames: string[], items: RegistryItem[]) => Set<string>;
3
- export declare const findOrphanInstalledItems: (removedTargetNames: string[], remainingInstalled: Record<string, string>, items: RegistryItem[]) => RegistryItem[];
3
+ export declare const findOrphanInstalledItems: (removedTargetNames: string[], remainingInstalled: string[], items: RegistryItem[]) => RegistryItem[];
@@ -0,0 +1,4 @@
1
+ export declare const writeScaffoldFile: (targetPath: string, content: string, options?: {
2
+ allowExisting?: boolean;
3
+ }) => Promise<void>;
4
+ export declare const writePackageJsonFile: (targetDirectory: string, getContent: (dir: string) => string, mergeContent: (dir: string, existing: Record<string, unknown>) => string) => Promise<void>;
@@ -1,3 +1,2 @@
1
1
  export declare const fileExists: (path: string) => Promise<boolean>;
2
2
  export declare const filesAreEqual: (sourcePath: string, targetPath: string) => Promise<boolean>;
3
- export declare const writeFileIfMissing: (path: string, content: string) => Promise<void>;
@@ -0,0 +1,9 @@
1
+ interface MultiselectChoice {
2
+ title: string;
3
+ value: string;
4
+ }
5
+ interface MultiselectOptions {
6
+ min?: number;
7
+ }
8
+ export declare const promptMultiselect: (message: string, choices: MultiselectChoice[], options?: MultiselectOptions) => Promise<string[]>;
9
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalexto/lexsys-cli",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Registry-first CLI that installs Lexsys React UI components into your project",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "prompts": "^2.4.2",
35
- "@dalexto/lexsys-registry": "0.0.2"
35
+ "@dalexto/lexsys-registry": "0.0.4"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "^25.9.1",
@@ -1,10 +0,0 @@
1
- export interface UninstallResourceResult {
2
- removed: string[];
3
- skipped: string[];
4
- conflicted: string[];
5
- missing: string[];
6
- }
7
- export declare const createUninstallResourceResult: () => UninstallResourceResult;
8
- export declare const mergeUninstallResults: (results: UninstallResourceResult[]) => UninstallResourceResult;
9
- export declare const hasUninstallConflicts: (result: UninstallResourceResult) => boolean;
10
- export declare const printUninstallSummary: (label: string, result: UninstallResourceResult) => void;
@@ -1,2 +0,0 @@
1
- export declare const compareVersions: (a: string, b: string) => number;
2
- export declare const isUpdateAvailable: (installed: string, latest: string) => boolean;
File without changes
File without changes
File without changes
File without changes
File without changes