@hexagen-monaco/sync 0.11.0 → 0.12.0

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.
Files changed (40) hide show
  1. package/LICENSE +8 -5
  2. package/README.md +2 -2
  3. package/dist/application/ports/out/file-system.port.d.ts.map +1 -1
  4. package/dist/application/ports/out/symbol-reference-index.port.d.ts +9 -9
  5. package/dist/application/ports/out/symbol-reference-index.port.d.ts.map +1 -1
  6. package/dist/application/use-cases/migrate-manifest.use-case.d.ts +4 -1
  7. package/dist/application/use-cases/migrate-manifest.use-case.d.ts.map +1 -1
  8. package/dist/application/use-cases/refactoring-impact.use-case.d.ts +6 -5
  9. package/dist/application/use-cases/refactoring-impact.use-case.d.ts.map +1 -1
  10. package/dist/cli.js +891 -323
  11. package/dist/cli.js.map +1 -1
  12. package/dist/commands/adopt/index.d.ts.map +1 -1
  13. package/dist/commands/bootstrap/index.d.ts +21 -0
  14. package/dist/commands/bootstrap/index.d.ts.map +1 -1
  15. package/dist/commands/manifest/migrate.d.ts.map +1 -1
  16. package/dist/commands/scan/index.d.ts +185 -0
  17. package/dist/commands/scan/index.d.ts.map +1 -0
  18. package/dist/commands/shared/index.d.ts +1 -0
  19. package/dist/commands/shared/index.d.ts.map +1 -1
  20. package/dist/commands/shared/lstat-exists.d.ts +7 -0
  21. package/dist/commands/shared/lstat-exists.d.ts.map +1 -0
  22. package/dist/domain/services/impact-request-validator.d.ts.map +1 -1
  23. package/dist/domain/services/layer-dir-resolver.d.ts +20 -1
  24. package/dist/domain/services/layer-dir-resolver.d.ts.map +1 -1
  25. package/dist/generators/layer-folders.d.ts +9 -1
  26. package/dist/generators/layer-folders.d.ts.map +1 -1
  27. package/dist/generators/package-src-index.d.ts +5 -0
  28. package/dist/generators/package-src-index.d.ts.map +1 -0
  29. package/dist/index.js +106 -11
  30. package/dist/index.js.map +1 -1
  31. package/dist/infrastructure/adapters/atomic-file-system.adapter.d.ts.map +1 -1
  32. package/dist/infrastructure/adapters/file-system-workspace.adapter.d.ts.map +1 -1
  33. package/dist/infrastructure/adapters/ts-morph-symbol-index.adapter.d.ts +1 -1
  34. package/dist/infrastructure/adapters/ts-morph-symbol-index.adapter.d.ts.map +1 -1
  35. package/dist/sync-engine.d.ts.map +1 -1
  36. package/dist/types/index.d.ts +20 -1
  37. package/dist/types/index.d.ts.map +1 -1
  38. package/package.json +1 -1
  39. package/dist/commands/bootstrap.d.ts +0 -30
  40. package/dist/commands/bootstrap.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"atomic-file-system.adapter.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/adapters/atomic-file-system.adapter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAEtF,qBAAa,uBAAwB,YAAW,cAAc;IACtD,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAY1C,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrC,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAUlE"}
1
+ {"version":3,"file":"atomic-file-system.adapter.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/adapters/atomic-file-system.adapter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAEtF,qBAAa,uBAAwB,YAAW,cAAc;IACtD,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAiB1C,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrC,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAUlE"}
@@ -1 +1 @@
1
- {"version":3,"file":"file-system-workspace.adapter.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/adapters/file-system-workspace.adapter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,6DAA6D,CAAC;AAEhI,qBAAa,0BAA2B,YAAW,yBAAyB;IAC9D,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,MAAM;IAElD,YAAY,IAAI,MAAM,EAAE;IAWxB,QAAQ,IAAI,MAAM,EAAE;IAWpB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,EAAE;IAYhD,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAIrC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAQzC,gBAAgB,IAAI,MAAM;CAG3B"}
1
+ {"version":3,"file":"file-system-workspace.adapter.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/adapters/file-system-workspace.adapter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,6DAA6D,CAAC;AAErE,qBAAa,0BAA2B,YAAW,yBAAyB;IAC9D,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,MAAM;IAElD,YAAY,IAAI,MAAM,EAAE;IAWxB,QAAQ,IAAI,MAAM,EAAE;IAWpB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,EAAE;IAYhD,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAIrC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAQzC,gBAAgB,IAAI,MAAM;CAG3B"}
@@ -28,7 +28,7 @@ export declare const REFACTORING_IMPACT_COMPILER_OPTIONS: {
28
28
  *
29
29
  * This is the only place in `packages/sync` outside `src/refactoring/`'s own
30
30
  * rewrite patterns that knows the analyser is built on ts-morph. Everything it
31
- * hands back across the boundary is a `SymbolReferenceDto` of two strings.
31
+ * hands back across the boundary is a `SymbolReferenceDto` of strings.
32
32
  *
33
33
  * The reason ladder below is lifted verbatim (order included) from the
34
34
  * `DefaultSymbolReferenceProvider` that used to live inside
@@ -1 +1 @@
1
- {"version":3,"file":"ts-morph-symbol-index.adapter.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/adapters/ts-morph-symbol-index.adapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,4DAA4D,CAAC;AAEpE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mCAAmC;;;;;;;CAOtC,CAAC;AAEX;;;;;;;;;;;;;;GAcG;AACH,qBAAa,yBAA0B,YAAW,wBAAwB;IACxE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;;IAMlC,UAAU,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI;IAM9C,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,kBAAkB,EAAE;CAYlE"}
1
+ {"version":3,"file":"ts-morph-symbol-index.adapter.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/adapters/ts-morph-symbol-index.adapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,4DAA4D,CAAC;AAEpE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mCAAmC;;;;;;;CAOtC,CAAC;AAEX;;;;;;;;;;;;;;GAcG;AACH,qBAAa,yBAA0B,YAAW,wBAAwB;IACxE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;;IAMlC,UAAU,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI;IAM9C,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,kBAAkB,EAAE;CAgBlE"}
@@ -1 +1 @@
1
- {"version":3,"file":"sync-engine.d.ts","sourceRoot":"","sources":["../src/sync-engine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAc,MAAM,aAAa,CAAC;AAkBpD,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAkBpD,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAyB;IAKvC,OAAO,CAAC,OAAO,CAAqB;IAYpC,OAAO,CAAC,QAAQ,CAA+C;IAC/D,OAAO,CAAC,aAAa,CAAY;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,aAAa,CAAc;IACnC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAoB;gBAEjC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,iBAAiB;IAKzD,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,SAAS;IAOjB;;;;;;;OAOG;IACH,OAAO,CAAC,WAAW;YAML,iBAAiB;YAmCjB,qBAAqB;IAiG7B,GAAG,IAAI,OAAO,CAAC,cAAc,CAAC;CAwTrC"}
1
+ {"version":3,"file":"sync-engine.d.ts","sourceRoot":"","sources":["../src/sync-engine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAc,MAAM,aAAa,CAAC;AAmBpD,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAkBpD,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAyB;IAKvC,OAAO,CAAC,OAAO,CAAqB;IAYpC,OAAO,CAAC,QAAQ,CAA+C;IAC/D,OAAO,CAAC,aAAa,CAAY;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,aAAa,CAAc;IACnC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAoB;gBAEjC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,iBAAiB;IAKzD,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,SAAS;IAOjB;;;;;;;OAOG;IACH,OAAO,CAAC,WAAW;YAML,iBAAiB;YAwCjB,qBAAqB;IAwG7B,GAAG,IAAI,OAAO,CAAC,cAAc,CAAC;CAwTrC"}
@@ -1,3 +1,22 @@
1
1
  export type { Manifest, BoundedContext, LayerConfig, PlaneType, IndexBoundedContextEntry, IndexAppEntry, IndexManifest, RelationshipPattern, RelationshipRole, AclDefinition, Relationship, PortDefinition, LegacyOrNewPort, } from "./manifest.js";
2
- export { portName } from "./manifest.js";
2
+ /**
3
+ * `portName` and `sanitizeScope` are the two VALUE exports this barrel carries.
4
+ *
5
+ * `sanitizeScope` is surfaced for the brownfield ratification screen (S4) and
6
+ * `POST /api/projects/bootstrap`, which both have to show or apply the SAME
7
+ * npm-scope normalisation `hexagen bootstrap` applies when it writes
8
+ * `manifest.yaml`. A consumer that reimplements it drifts from what the CLI
9
+ * actually writes, and the user finds out only after the file has landed.
10
+ *
11
+ * This is the CANONICAL copy — `types/manifest/helpers.ts`, re-exported through
12
+ * `types/manifest.ts`. It is deliberately not a second export of the private
13
+ * duplicate `commands/bootstrap/index.ts` used to hold: that duplicate is gone
14
+ * and now delegates here, so there is one implementation to keep correct rather
15
+ * than two that happen to agree today.
16
+ *
17
+ * Adding a name here widens the surface pinned by
18
+ * `__tests__/contract/public-surface.contract.test.ts` — see that file's header
19
+ * for what a later removal would cost.
20
+ */
21
+ export { portName, sanitizeScope } from "./manifest.js";
3
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,QAAQ,EACR,cAAc,EACd,WAAW,EACX,SAAS,EACT,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,cAAc,EACd,eAAe,GAChB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,QAAQ,EACR,cAAc,EACd,WAAW,EACX,SAAS,EACT,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,cAAc,EACd,eAAe,GAChB,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexagen-monaco/sync",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "type": "module",
5
5
  "description": "HexaGen Sync Engine — Generate and sync modular monorepos",
6
6
  "keywords": [
@@ -1,30 +0,0 @@
1
- import { Project, type SourceFile } from "ts-morph";
2
- import { type Result } from "../domain/result.js";
3
- export declare const ARCH_LINT_BASELINE_RELATIVE_PATH = ".architecture/arch-lint-baseline.json";
4
- /** Empty ratchet baseline (ADR-0054) — numeric version + `entries`. */
5
- export declare const EMPTY_ARCH_LINT_BASELINE: {
6
- version: number;
7
- entries: readonly [];
8
- };
9
- export interface BootstrapOptions {
10
- force?: boolean;
11
- }
12
- interface WorkspaceInfo {
13
- name: string;
14
- dir: string;
15
- fullPath: string;
16
- }
17
- /** ts-morph globs reject native Windows separators. */
18
- export declare function toTsMorphGlob(absPath: string): string;
19
- export declare function resolveWorkspaceSpecifier(specifier: string, packageNames: Iterable<string>): string | undefined;
20
- export declare function collectModuleSpecifiers(file: SourceFile): string[];
21
- export declare function deriveSystemAndScope(pkgName: string | undefined): {
22
- system: string;
23
- scope: string;
24
- };
25
- export declare function discoverWorkspaces(root: string): Promise<Result<WorkspaceInfo[], Error>>;
26
- export declare function scanWorkspaceSources(project: Project, workspaces: readonly WorkspaceInfo[]): Promise<Result<void, Error>>;
27
- export declare function inferDependencies(sourceFiles: readonly SourceFile[], selectedContexts: readonly WorkspaceInfo[]): Map<string, Set<string>>;
28
- export declare function bootstrapCommand(options?: BootstrapOptions): Promise<void>;
29
- export {};
30
- //# sourceMappingURL=bootstrap.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../src/commands/bootstrap.ts"],"names":[],"mappings":"AAIA,OAAO,EAAQ,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAI1D,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO3D,eAAO,MAAM,gCAAgC,0CACJ,CAAC;AAE1C,uEAAuE;AACvE,eAAO,MAAM,wBAAwB;;;CAGpC,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB;AAmBD,uDAAuD;AACvD,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAErD;AAED,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,GAC7B,MAAM,GAAG,SAAS,CAQpB;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,EAAE,CAoClE;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,CAiBA;AA+ED,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,EAAE,KAAK,CAAC,CAAC,CAiEzC;AAED,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,SAAS,aAAa,EAAE,GACnC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAsB9B;AAED,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,SAAS,UAAU,EAAE,EAClC,gBAAgB,EAAE,SAAS,aAAa,EAAE,GACzC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAwB1B;AAWD,wBAAsB,gBAAgB,CACpC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,IAAI,CAAC,CAwJf"}