@chude/memory 4.0.1 → 4.0.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/README.md +1 -1
- package/dist/domain/ports/sources.d.ts +1 -1
- package/dist/domain/services/path-decoder.d.ts +1 -1
- package/dist/domain/value-objects/project-path.d.ts +2 -2
- package/dist/infrastructure/sources/project-name-resolver.d.ts +2 -2
- package/dist/presentation/cli/index.js +66 -66
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -310,7 +310,7 @@ gitleaks detect --no-banner --redact --source .
|
|
|
310
310
|
After publishing, verify registry metadata plus npm and Bun global installs:
|
|
311
311
|
|
|
312
312
|
```bash
|
|
313
|
-
bun run verify:published @chude/memory@4.0.
|
|
313
|
+
bun run verify:published @chude/memory@4.0.2
|
|
314
314
|
```
|
|
315
315
|
|
|
316
316
|
On Windows, Bun global install creates `memory.exe` in `bun pm bin -g`. Do not assume an npm-style `memory.cmd` shim exists.
|
|
@@ -79,7 +79,7 @@ export interface IProjectNameResolver {
|
|
|
79
79
|
/**
|
|
80
80
|
* Resolve a project name from a full encoded path.
|
|
81
81
|
*
|
|
82
|
-
* @param encodedPath The encoded directory path (e.g., "C--
|
|
82
|
+
* @param encodedPath The encoded directory path (e.g., "C--Projects-memory-nexus")
|
|
83
83
|
* @returns The resolved project name (e.g., "memory-nexus")
|
|
84
84
|
*/
|
|
85
85
|
resolveFromEncodedPath(encodedPath: string): string;
|
|
@@ -13,7 +13,7 @@ import { ProjectPath } from "../value-objects/index.js";
|
|
|
13
13
|
export declare class PathDecoder {
|
|
14
14
|
/**
|
|
15
15
|
* Decode an encoded project directory name to a ProjectPath value object.
|
|
16
|
-
* @param encoded The encoded directory name (e.g., "C--
|
|
16
|
+
* @param encoded The encoded directory name (e.g., "C--Projects-foo")
|
|
17
17
|
* @returns ProjectPath value object with decoded path
|
|
18
18
|
*/
|
|
19
19
|
static decodeProjectDirectory(encoded: string): ProjectPath;
|
|
@@ -34,13 +34,13 @@ export declare class ProjectPath {
|
|
|
34
34
|
private constructor();
|
|
35
35
|
/**
|
|
36
36
|
* Create ProjectPath from a decoded (original) path.
|
|
37
|
-
* @param path The original filesystem path (e.g., "C:\
|
|
37
|
+
* @param path The original filesystem path (e.g., "C:\Projects\foo")
|
|
38
38
|
* @throws Error if path is empty or whitespace-only
|
|
39
39
|
*/
|
|
40
40
|
static fromDecoded(path: string): ProjectPath;
|
|
41
41
|
/**
|
|
42
42
|
* Create ProjectPath from an encoded path.
|
|
43
|
-
* @param encoded The encoded path (e.g., "C--
|
|
43
|
+
* @param encoded The encoded path (e.g., "C--Projects-foo")
|
|
44
44
|
* @throws Error if path is empty or whitespace-only
|
|
45
45
|
*/
|
|
46
46
|
static fromEncoded(encoded: string): ProjectPath;
|
|
@@ -31,7 +31,7 @@ export declare class ProjectNameResolver implements IProjectNameResolver {
|
|
|
31
31
|
* Resolve the project name from an encoded path (without drive prefix).
|
|
32
32
|
* Walks the filesystem matching encoded segments against real directory names.
|
|
33
33
|
*
|
|
34
|
-
* @param encodedSegments - The encoded path without drive prefix (e.g., "
|
|
34
|
+
* @param encodedSegments - The encoded path without drive prefix (e.g., "Projects-memory-nexus")
|
|
35
35
|
* @returns The actual name of the last matched directory
|
|
36
36
|
*/
|
|
37
37
|
resolveProjectName(encodedSegments: string): string;
|
|
@@ -43,7 +43,7 @@ export declare class ProjectNameResolver implements IProjectNameResolver {
|
|
|
43
43
|
/**
|
|
44
44
|
* Probe for hidden/virtual directories that readdirSync does not enumerate.
|
|
45
45
|
*
|
|
46
|
-
|
|
46
|
+
* Some directories (for example, cloud-synced Windows folders) are valid and traversable
|
|
47
47
|
* but invisible to readdirSync. This method tries progressively longer
|
|
48
48
|
* dash-separated prefixes of the remaining encoded string as candidate
|
|
49
49
|
* directory names, checking each via statSync.
|