@solid-stack/mason 1.0.13 → 1.0.15
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/dist/bin.cjs +249 -844
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +246 -841
- package/dist/bin.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/index.cjs +250 -846
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +248 -843
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/commands/registry.d.ts +0 -64
- package/dist/commands/registry.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solid-stack/mason",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "An interactive, type-safe CLI generator for scaffolding Solid Stack Clean Architecture features, usecases, domain entities, infrastructure, interfaces, httpHandlers, and injectables.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type { RegistryIndex } from "../utils/registry.js";
|
|
2
|
-
export interface RegistryModuleStatus {
|
|
3
|
-
name: string;
|
|
4
|
-
type: "shared" | "feature";
|
|
5
|
-
isRegistered: boolean;
|
|
6
|
-
existsOnDisk: boolean;
|
|
7
|
-
hasUncommittedGitChanges: boolean;
|
|
8
|
-
uncommittedFilesCount: number;
|
|
9
|
-
hasIntegrityDrift: boolean;
|
|
10
|
-
localIntegrity?: string | undefined;
|
|
11
|
-
registeredIntegrity?: string | undefined;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Loads the master index.json from projectRoot or throws a user-friendly error
|
|
15
|
-
*/
|
|
16
|
-
export declare function loadMasterIndex(projectRoot: string): RegistryIndex;
|
|
17
|
-
/**
|
|
18
|
-
* Saves master index.json to projectRoot
|
|
19
|
-
*/
|
|
20
|
-
export declare function saveMasterIndex(projectRoot: string, index: RegistryIndex): void;
|
|
21
|
-
/**
|
|
22
|
-
* Discovers all modules present on disk in shared/ and features/
|
|
23
|
-
*/
|
|
24
|
-
export declare function discoverDiskModules(projectRoot: string): Array<{
|
|
25
|
-
name: string;
|
|
26
|
-
type: "shared" | "feature";
|
|
27
|
-
dir: string;
|
|
28
|
-
}>;
|
|
29
|
-
/**
|
|
30
|
-
* Checks git status for a specific directory path
|
|
31
|
-
*/
|
|
32
|
-
export declare function checkGitStatusForDir(projectRoot: string, dirPath: string): {
|
|
33
|
-
hasChanges: boolean;
|
|
34
|
-
filesCount: number;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Computes full status comparison for all modules (disk vs registry vs git)
|
|
38
|
-
*/
|
|
39
|
-
export declare function getRegistryDiff(projectRoot: string): RegistryModuleStatus[];
|
|
40
|
-
/**
|
|
41
|
-
* 1. register: registers module in index.json and stamps/updates registry.json
|
|
42
|
-
*/
|
|
43
|
-
export declare function registerModule(typeArg?: string, nameArg?: string, flags?: Record<string, any>): Promise<void>;
|
|
44
|
-
/**
|
|
45
|
-
* 2. commit: commits changes to a module using git in the background
|
|
46
|
-
*/
|
|
47
|
-
export declare function commitModule(typeArg?: string, nameArg?: string, flags?: Record<string, any>): Promise<void>;
|
|
48
|
-
/**
|
|
49
|
-
* 3. register-changes: recomputes hash and registers committed changes to index.json & registry.json
|
|
50
|
-
*/
|
|
51
|
-
export declare function registerModuleChanges(typeArg?: string, nameArg?: string, flags?: Record<string, any>): Promise<void>;
|
|
52
|
-
/**
|
|
53
|
-
* 4. unregister: removes module from index.json while keeping files on disk
|
|
54
|
-
*/
|
|
55
|
-
export declare function unregisterModule(typeArg?: string, nameArg?: string, flags?: Record<string, any>): Promise<void>;
|
|
56
|
-
/**
|
|
57
|
-
* 5. diff: gives a complete summary of unregistered, uncommitted, and drifted modules
|
|
58
|
-
*/
|
|
59
|
-
export declare function diffRegistry(flags?: Record<string, any>): void;
|
|
60
|
-
/**
|
|
61
|
-
* Interactive or programmatic router for registry operations
|
|
62
|
-
*/
|
|
63
|
-
export declare function handleRegistry(actionArg?: string, typeArg?: string, nameArg?: string, flags?: Record<string, any>): Promise<void>;
|
|
64
|
-
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/commands/registry.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1E,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC3B,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,wBAAwB,EAAE,OAAO,CAAC;IAClC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1C;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,aAAa,CASlE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI,CAM/E;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,CAwBzH;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,GACd;IAAE,UAAU,EAAE,OAAO,CAAC;IAAC,UAAU,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