@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.
- package/LICENSE +8 -5
- package/README.md +2 -2
- package/dist/application/ports/out/file-system.port.d.ts.map +1 -1
- package/dist/application/ports/out/symbol-reference-index.port.d.ts +9 -9
- package/dist/application/ports/out/symbol-reference-index.port.d.ts.map +1 -1
- package/dist/application/use-cases/migrate-manifest.use-case.d.ts +4 -1
- package/dist/application/use-cases/migrate-manifest.use-case.d.ts.map +1 -1
- package/dist/application/use-cases/refactoring-impact.use-case.d.ts +6 -5
- package/dist/application/use-cases/refactoring-impact.use-case.d.ts.map +1 -1
- package/dist/cli.js +891 -323
- package/dist/cli.js.map +1 -1
- package/dist/commands/adopt/index.d.ts.map +1 -1
- package/dist/commands/bootstrap/index.d.ts +21 -0
- package/dist/commands/bootstrap/index.d.ts.map +1 -1
- package/dist/commands/manifest/migrate.d.ts.map +1 -1
- package/dist/commands/scan/index.d.ts +185 -0
- package/dist/commands/scan/index.d.ts.map +1 -0
- package/dist/commands/shared/index.d.ts +1 -0
- package/dist/commands/shared/index.d.ts.map +1 -1
- package/dist/commands/shared/lstat-exists.d.ts +7 -0
- package/dist/commands/shared/lstat-exists.d.ts.map +1 -0
- package/dist/domain/services/impact-request-validator.d.ts.map +1 -1
- package/dist/domain/services/layer-dir-resolver.d.ts +20 -1
- package/dist/domain/services/layer-dir-resolver.d.ts.map +1 -1
- package/dist/generators/layer-folders.d.ts +9 -1
- package/dist/generators/layer-folders.d.ts.map +1 -1
- package/dist/generators/package-src-index.d.ts +5 -0
- package/dist/generators/package-src-index.d.ts.map +1 -0
- package/dist/index.js +106 -11
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/adapters/atomic-file-system.adapter.d.ts.map +1 -1
- package/dist/infrastructure/adapters/file-system-workspace.adapter.d.ts.map +1 -1
- package/dist/infrastructure/adapters/ts-morph-symbol-index.adapter.d.ts +1 -1
- package/dist/infrastructure/adapters/ts-morph-symbol-index.adapter.d.ts.map +1 -1
- package/dist/sync-engine.d.ts.map +1 -1
- package/dist/types/index.d.ts +20 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/commands/bootstrap.d.ts +0 -30
- package/dist/commands/bootstrap.d.ts.map +0 -1
package/LICENSE
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
This is the
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
This is the license for `@hexagen-monaco/sync`, the Hexagen-Monaco
|
|
2
|
+
generator. It is part of the proprietary platform and is licensed under the
|
|
3
|
+
Source-Available Evaluation License below -- the same terms as the web
|
|
4
|
+
application and hosted services (ADR-0066).
|
|
5
|
+
|
|
6
|
+
It is NOT part of the fair-source wedge. The wedge is `@hexagen-monaco/arch-linter`
|
|
7
|
+
only, which carries the Functional Source License (FSL-1.1-Apache-2.0;
|
|
8
|
+
SPDX identifier FSL-1.1-ALv2) in its own LICENSE file.
|
|
6
9
|
|
|
7
10
|
KRAKOWSKI CLOUD SOLUTIONS LLC - SOURCE-AVAILABLE EVALUATION LICENSE
|
|
8
11
|
|
package/README.md
CHANGED
|
@@ -157,7 +157,7 @@ plus four inlined workspace packages:
|
|
|
157
157
|
| `@hexagen/visualization` | Architecture graph schemas |
|
|
158
158
|
|
|
159
159
|
Bundling is handled at build time by [`tsup`](https://tsup.egoist.dev/) and
|
|
160
|
-
is codified in [`.architecture/decisions/ADR-
|
|
160
|
+
is codified in [`.architecture/decisions/ADR-0068-published-cli-bundling.md`](../../.architecture/decisions/ADR-0068-published-cli-bundling.md).
|
|
161
161
|
|
|
162
162
|
### Runtime Dependencies (not bundled)
|
|
163
163
|
|
|
@@ -216,7 +216,7 @@ The source `packages/sync/package.json` is never mutated by this process.
|
|
|
216
216
|
## Links
|
|
217
217
|
|
|
218
218
|
- **HexaGen Monaco repository:** https://github.com/martinkrakowski/hexagen-monaco
|
|
219
|
-
- **Architecture Decision Record:** [`ADR-
|
|
219
|
+
- **Architecture Decision Record:** [`ADR-0068`](../../.architecture/decisions/ADR-0068-published-cli-bundling.md) — CLI Bundling Strategy
|
|
220
220
|
- **Manifest schema:** `@hexagen/project-configuration`
|
|
221
221
|
- **Issue tracker:** https://github.com/martinkrakowski/hexagen-monaco/issues
|
|
222
222
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-system.port.d.ts","sourceRoot":"","sources":["../../../../src/application/ports/out/file-system.port.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE3C;;OAEG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtC;;OAEG;IACH,SAAS,
|
|
1
|
+
{"version":3,"file":"file-system.port.d.ts","sourceRoot":"","sources":["../../../../src/application/ports/out/file-system.port.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE3C;;OAEG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtC;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7D"}
|
|
@@ -29,15 +29,10 @@
|
|
|
29
29
|
* exactly; collapsing it into one call would quietly change what a second
|
|
30
30
|
* `analyze()` on the same instance sees.
|
|
31
31
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* yields a confident, wrong report — can be fixed additively: an optional
|
|
37
|
-
* `diagnostics` field here, populated by the adapter, consumed by
|
|
38
|
-
* `generateWarnings`. No such field is added today, because a field no
|
|
39
|
-
* producer fills and no consumer reads is not a fix; the point is only that
|
|
40
|
-
* the shape leaves room for one.
|
|
32
|
+
* RI-2.1. `diagnostics` is optional and syntactic-only. Semantic errors
|
|
33
|
+
* (unresolved types, missing modules) are not collected — a consumer
|
|
34
|
+
* workspace with those would flood the warning channel. An empty or
|
|
35
|
+
* omitted array means "I could read this file".
|
|
41
36
|
*/
|
|
42
37
|
/** One file that mentions the symbol under analysis. Plain data, no AST. */
|
|
43
38
|
export interface SymbolReferenceDto {
|
|
@@ -56,6 +51,11 @@ export interface SymbolReferenceDto {
|
|
|
56
51
|
* the user as `FileToModify.reason`.
|
|
57
52
|
*/
|
|
58
53
|
readonly reason: string;
|
|
54
|
+
/**
|
|
55
|
+
* Syntactic diagnostics from the parser for this file. Absent or empty
|
|
56
|
+
* when the file parsed. Never semantic diagnostics.
|
|
57
|
+
*/
|
|
58
|
+
readonly diagnostics?: readonly string[];
|
|
59
59
|
}
|
|
60
60
|
/** A parsed, queryable index of workspace source files. */
|
|
61
61
|
export interface SymbolReferenceIndexPort {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"symbol-reference-index.port.d.ts","sourceRoot":"","sources":["../../../../src/application/ports/out/symbol-reference-index.port.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"symbol-reference-index.port.d.ts","sourceRoot":"","sources":["../../../../src/application/ports/out/symbol-reference-index.port.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,4EAA4E;AAC5E,MAAM,WAAW,kBAAkB;IACjC;;;;;;;OAOG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1C;AAED,2DAA2D;AAC3D,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,UAAU,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;IAE/C;;;OAGG;IACH,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,kBAAkB,EAAE,CAAC;CACnE"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** Deep equality used by the stamp-only invariant. */
|
|
2
|
+
export type DeepEqual = (left: unknown, right: unknown) => boolean;
|
|
1
3
|
export interface ManifestMigration {
|
|
2
4
|
/** The schemaVersion this migration upgrades TO (applied when stamped version < toVersion). */
|
|
3
5
|
readonly toVersion: number;
|
|
@@ -25,9 +27,10 @@ export interface MigrateManifestResult {
|
|
|
25
27
|
changed: boolean;
|
|
26
28
|
}
|
|
27
29
|
export declare class MigrateManifestUseCase {
|
|
30
|
+
private readonly deepEqual;
|
|
28
31
|
private readonly currentVersion;
|
|
29
32
|
private readonly migrations;
|
|
30
|
-
constructor(currentVersion?: number, migrations?: readonly ManifestMigration[]);
|
|
33
|
+
constructor(deepEqual: DeepEqual, currentVersion?: number, migrations?: readonly ManifestMigration[]);
|
|
31
34
|
execute(content: string): MigrateManifestResult;
|
|
32
35
|
/**
|
|
33
36
|
* Textually stamp `schemaVersion: <current>` — replace an existing
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-manifest.use-case.d.ts","sourceRoot":"","sources":["../../../src/application/use-cases/migrate-manifest.use-case.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"migrate-manifest.use-case.d.ts","sourceRoot":"","sources":["../../../src/application/use-cases/migrate-manifest.use-case.ts"],"names":[],"mappings":"AAgCA,sDAAsD;AACtD,MAAM,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;AAEnE,MAAM,WAAW,iBAAiB;IAChC,+FAA+F;IAC/F,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,yFAAyF;IACzF,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,+EAA+E;IAC/E,QAAQ,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;CAC7C;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,iBAAiB,EAAO,CAAC;AAEpE,MAAM,WAAW,qBAAqB;IACpC,oFAAoF;IACpF,OAAO,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,qBAAa,sBAAsB;IAE/B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAFV,SAAS,EAAE,SAAS,EACpB,cAAc,GAAE,MAAwC,EACxD,UAAU,GAAE,SAAS,iBAAiB,EAAwB;IAGjF,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,qBAAqB;IAmD/C;;;;;;OAMG;IACH,OAAO,CAAC,KAAK;IAsBb;;;;;OAKG;IACH,OAAO,CAAC,8BAA8B;CAwBvC"}
|
|
@@ -16,11 +16,12 @@ export interface ImpactAnalysisRequest {
|
|
|
16
16
|
* The TypeScript parser sits behind `SymbolReferenceIndexPort` (HEX-013, item
|
|
17
17
|
* 5.7): this use case no longer constructs a ts-morph `Project` and no AST node
|
|
18
18
|
* ever reaches it. What crosses the boundary is `SymbolReferenceDto` — a file
|
|
19
|
-
* path
|
|
20
|
-
* (classification, cross-package detection, boundary
|
|
21
|
-
* derived by string work alone. Enumerating which
|
|
22
|
-
* stays here, because that is exactly such string
|
|
23
|
-
* exclusions (`node_modules`, build output, `.d.ts`)
|
|
19
|
+
* path, a reason sentence, and optional syntactic diagnostics — from which
|
|
20
|
+
* every downstream step (classification, cross-package detection, boundary
|
|
21
|
+
* assessment, warnings) is derived by string work alone. Enumerating which
|
|
22
|
+
* files to hand the index stays here, because that is exactly such string
|
|
23
|
+
* work and it is where the exclusions (`node_modules`, build output, `.d.ts`)
|
|
24
|
+
* are decided.
|
|
24
25
|
*/
|
|
25
26
|
export declare class RefactoringImpactUseCase {
|
|
26
27
|
private readonly workspaceRoot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refactoring-impact.use-case.d.ts","sourceRoot":"","sources":["../../../src/application/use-cases/refactoring-impact.use-case.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAC9F,OAAO,KAAK,EAEV,wBAAwB,EACzB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,2CAA2C,CAAC;AAEnD,OAAO,KAAK,EACV,eAAe,EAKf,oBAAoB,EACrB,MAAM,gDAAgD,CAAC;AAExD,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED
|
|
1
|
+
{"version":3,"file":"refactoring-impact.use-case.d.ts","sourceRoot":"","sources":["../../../src/application/use-cases/refactoring-impact.use-case.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,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