@hexagen-monaco/sync 0.15.0 → 0.16.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/dist/__tests__/drift-files.test.d.ts +2 -0
- package/dist/__tests__/drift-files.test.d.ts.map +1 -0
- package/dist/cli.js +656 -525
- package/dist/cli.js.map +1 -1
- package/dist/commands/sync/check-json-files.test.d.ts +2 -0
- package/dist/commands/sync/check-json-files.test.d.ts.map +1 -0
- package/dist/commands/sync/check-json.d.ts +25 -5
- package/dist/commands/sync/check-json.d.ts.map +1 -1
- package/dist/generators/port-analyzer.d.ts +2 -0
- package/dist/generators/port-analyzer.d.ts.map +1 -1
- package/dist/index.js +235 -120
- package/dist/index.js.map +1 -1
- package/dist/preflight.d.ts +4 -1
- package/dist/preflight.d.ts.map +1 -1
- package/dist/results.d.ts +40 -0
- package/dist/results.d.ts.map +1 -1
- package/dist/sync-engine.d.ts +1 -0
- package/dist/sync-engine.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-json-files.test.d.ts","sourceRoot":"","sources":["../../../src/commands/sync/check-json-files.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import type { SyncRunSummary } from "../../results.js";
|
|
1
|
+
import type { DriftFile, SyncRunSummary } from "../../results.js";
|
|
2
2
|
/**
|
|
3
3
|
* Schema version of the machine-readable line `hexagen sync --check --json`
|
|
4
|
-
* prints (lane H2b). Bump
|
|
4
|
+
* prints (lane H2b). Bump on a breaking change. An added key is additive under the
|
|
5
|
+
* compatibility policy (consumer-contract plan, H3), so it keeps the version.
|
|
5
6
|
*/
|
|
6
7
|
export declare const SYNC_CHECK_JSON_SCHEMA_VERSION = 1;
|
|
7
8
|
/** Machine-readable status of a `sync --check` run. */
|
|
8
9
|
export type SyncCheckStatus = "converged" | "drift" | "could-not-run";
|
|
9
10
|
/**
|
|
10
|
-
* The one JSON line `hexagen sync --check --json` writes to stdout.
|
|
11
|
-
* documented in this order; `pending`, `errors
|
|
12
|
-
* `null` only on the fatal
|
|
11
|
+
* The one JSON line `hexagen sync --check --json` writes to stdout. Ten
|
|
12
|
+
* keys, `files` last, documented in this order; `pending`, `errors`,
|
|
13
|
+
* `manifestMissing`, `timingsMs` and `files` are `null` only on the fatal
|
|
14
|
+
* path, where no summary exists to report. On the non-fatal paths `files`
|
|
15
|
+
* is an array (empty when converged), sorted and workspace-relative.
|
|
13
16
|
*/
|
|
14
17
|
export interface SyncCheckJson {
|
|
15
18
|
schemaVersion: number;
|
|
@@ -25,6 +28,23 @@ export interface SyncCheckJson {
|
|
|
25
28
|
errors: number | null;
|
|
26
29
|
manifestMissing: boolean | null;
|
|
27
30
|
reason: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Per-phase timings, or `null` on the fatal path or when the summary has no
|
|
33
|
+
* `phaseTimingsMs`. `total` is the run's overall duration
|
|
34
|
+
* (`summary.durationMs`).
|
|
35
|
+
*/
|
|
36
|
+
timingsMs: {
|
|
37
|
+
gitStatus: number | null;
|
|
38
|
+
preflight: number | null;
|
|
39
|
+
generators: number;
|
|
40
|
+
linter: number | null;
|
|
41
|
+
total: number;
|
|
42
|
+
} | null;
|
|
43
|
+
/**
|
|
44
|
+
* Per-file drift, sorted and workspace-relative, or `null` on the fatal
|
|
45
|
+
* path. `[]` when converged.
|
|
46
|
+
*/
|
|
47
|
+
files: DriftFile[] | null;
|
|
28
48
|
}
|
|
29
49
|
/**
|
|
30
50
|
* Build the JSON payload for `sync --check --json`. Exactly one of `summary` /
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-json.d.ts","sourceRoot":"","sources":["../../../src/commands/sync/check-json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"check-json.d.ts","sourceRoot":"","sources":["../../../src/commands/sync/check-json.ts"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
|
}
|
|
48
|
+
/** Test/run boundary: forget the memo (issue #907). */
|
|
49
|
+
export declare function resetPortAnalysisMemo(): void;
|
|
48
50
|
/**
|
|
49
51
|
* Analyze a port interface file and extract method signatures and imports
|
|
50
52
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"port-analyzer.d.ts","sourceRoot":"","sources":["../../src/generators/port-analyzer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"port-analyzer.d.ts","sourceRoot":"","sources":["../../src/generators/port-analyzer.ts"],"names":[],"mappings":"AAmBA;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,MAAM,CAQR;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,MAAM,CASR;AA8DD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,KAAK,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC,CAAC;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAaD,uDAAuD;AACvD,wB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