@goodbones/core 0.1.0-beta.10 → 0.1.0-beta.12

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 (119) hide show
  1. package/build/dts/core/structure.d.ts.map +1 -1
  2. package/build/dts/domain/architecture-config.d.ts +3 -310
  3. package/build/dts/domain/architecture-config.d.ts.map +1 -1
  4. package/build/dts/domain/snapshot.d.ts +150 -18
  5. package/build/dts/domain/snapshot.d.ts.map +1 -1
  6. package/build/dts/index.d.ts +11 -14
  7. package/build/dts/index.d.ts.map +1 -1
  8. package/build/dts/infrastructure/file-system-fake.d.ts.map +1 -1
  9. package/build/dts/infrastructure/file-system-live.d.ts.map +1 -1
  10. package/build/dts/infrastructure/walk.d.ts +6 -1
  11. package/build/dts/infrastructure/walk.d.ts.map +1 -1
  12. package/build/dts/load/extension.d.ts +33 -0
  13. package/build/dts/load/extension.d.ts.map +1 -0
  14. package/build/dts/load/policy.d.ts +4 -10
  15. package/build/dts/load/policy.d.ts.map +1 -1
  16. package/build/dts/manifest/compile.d.ts +7 -2
  17. package/build/dts/manifest/compile.d.ts.map +1 -1
  18. package/build/dts/manifest/extension.d.ts +8 -0
  19. package/build/dts/manifest/extension.d.ts.map +1 -0
  20. package/build/dts/manifest/glob.d.ts +1 -0
  21. package/build/dts/manifest/glob.d.ts.map +1 -1
  22. package/build/dts/manifest/json-schema.d.ts +6 -2
  23. package/build/dts/manifest/json-schema.d.ts.map +1 -1
  24. package/build/dts/manifest/manifest.d.ts +7 -362
  25. package/build/dts/manifest/manifest.d.ts.map +1 -1
  26. package/build/dts/ports/file-system.d.ts +1 -0
  27. package/build/dts/ports/file-system.d.ts.map +1 -1
  28. package/build/dts/testing.d.ts +0 -1
  29. package/build/dts/testing.d.ts.map +1 -1
  30. package/build/esm/core/structure.js +1 -1
  31. package/build/esm/core/structure.js.map +1 -1
  32. package/build/esm/domain/architecture-config.js +3 -136
  33. package/build/esm/domain/architecture-config.js.map +1 -1
  34. package/build/esm/domain/snapshot.js +55 -15
  35. package/build/esm/domain/snapshot.js.map +1 -1
  36. package/build/esm/index.js +16 -10
  37. package/build/esm/index.js.map +1 -1
  38. package/build/esm/infrastructure/file-system-fake.js +10 -0
  39. package/build/esm/infrastructure/file-system-fake.js.map +1 -1
  40. package/build/esm/infrastructure/file-system-live.js +9 -1
  41. package/build/esm/infrastructure/file-system-live.js.map +1 -1
  42. package/build/esm/infrastructure/walk.js +50 -4
  43. package/build/esm/infrastructure/walk.js.map +1 -1
  44. package/build/esm/load/extension.js +2 -0
  45. package/build/esm/load/extension.js.map +1 -0
  46. package/build/esm/load/policy.js +43 -116
  47. package/build/esm/load/policy.js.map +1 -1
  48. package/build/esm/manifest/compile.js +3 -182
  49. package/build/esm/manifest/compile.js.map +1 -1
  50. package/build/esm/manifest/extension.js +2 -0
  51. package/build/esm/manifest/extension.js.map +1 -0
  52. package/build/esm/manifest/glob.js +3 -0
  53. package/build/esm/manifest/glob.js.map +1 -1
  54. package/build/esm/manifest/json-schema.js +45 -11
  55. package/build/esm/manifest/json-schema.js.map +1 -1
  56. package/build/esm/manifest/manifest.js +56 -172
  57. package/build/esm/manifest/manifest.js.map +1 -1
  58. package/build/esm/testing.js +0 -1
  59. package/build/esm/testing.js.map +1 -1
  60. package/package.json +1 -1
  61. package/schema/architecture-node.schema.json +0 -887
  62. package/schema/architecture.schema.json +3264 -1591
  63. package/schema/conformance.schema.json +291 -47
  64. package/src/core/structure.ts +5 -3
  65. package/src/domain/architecture-config.ts +3 -180
  66. package/src/domain/snapshot.ts +125 -25
  67. package/src/index.ts +51 -78
  68. package/src/infrastructure/file-system-fake.ts +12 -0
  69. package/src/infrastructure/file-system-live.ts +8 -1
  70. package/src/infrastructure/walk.ts +58 -3
  71. package/src/load/extension.ts +66 -0
  72. package/src/load/policy.ts +60 -175
  73. package/src/manifest/compile.ts +2 -213
  74. package/src/manifest/extension.ts +41 -0
  75. package/src/manifest/glob.ts +5 -0
  76. package/src/manifest/json-schema.ts +53 -11
  77. package/src/manifest/manifest.ts +82 -214
  78. package/src/ports/file-system.ts +3 -0
  79. package/src/testing.ts +0 -1
  80. package/build/dts/core/campaigns.d.ts +0 -141
  81. package/build/dts/core/campaigns.d.ts.map +0 -1
  82. package/build/dts/core/ledger.d.ts +0 -61
  83. package/build/dts/core/ledger.d.ts.map +0 -1
  84. package/build/dts/domain/report.d.ts +0 -16
  85. package/build/dts/domain/report.d.ts.map +0 -1
  86. package/build/dts/infrastructure/campaign-functions.d.ts +0 -7
  87. package/build/dts/infrastructure/campaign-functions.d.ts.map +0 -1
  88. package/build/dts/infrastructure/report-source-fake.d.ts +0 -4
  89. package/build/dts/infrastructure/report-source-fake.d.ts.map +0 -1
  90. package/build/dts/infrastructure/report-source-live.d.ts +0 -3
  91. package/build/dts/infrastructure/report-source-live.d.ts.map +0 -1
  92. package/build/dts/ports/campaign-predicate.d.ts +0 -24
  93. package/build/dts/ports/campaign-predicate.d.ts.map +0 -1
  94. package/build/dts/ports/report-source.d.ts +0 -14
  95. package/build/dts/ports/report-source.d.ts.map +0 -1
  96. package/build/esm/core/campaigns.js +0 -778
  97. package/build/esm/core/campaigns.js.map +0 -1
  98. package/build/esm/core/ledger.js +0 -171
  99. package/build/esm/core/ledger.js.map +0 -1
  100. package/build/esm/domain/report.js +0 -168
  101. package/build/esm/domain/report.js.map +0 -1
  102. package/build/esm/infrastructure/campaign-functions.js +0 -67
  103. package/build/esm/infrastructure/campaign-functions.js.map +0 -1
  104. package/build/esm/infrastructure/report-source-fake.js +0 -6
  105. package/build/esm/infrastructure/report-source-fake.js.map +0 -1
  106. package/build/esm/infrastructure/report-source-live.js +0 -165
  107. package/build/esm/infrastructure/report-source-live.js.map +0 -1
  108. package/build/esm/ports/campaign-predicate.js +0 -2
  109. package/build/esm/ports/campaign-predicate.js.map +0 -1
  110. package/build/esm/ports/report-source.js +0 -7
  111. package/build/esm/ports/report-source.js.map +0 -1
  112. package/src/core/campaigns.ts +0 -1056
  113. package/src/core/ledger.ts +0 -242
  114. package/src/domain/report.ts +0 -203
  115. package/src/infrastructure/campaign-functions.ts +0 -98
  116. package/src/infrastructure/report-source-fake.ts +0 -10
  117. package/src/infrastructure/report-source-live.ts +0 -192
  118. package/src/ports/campaign-predicate.ts +0 -30
  119. package/src/ports/report-source.ts +0 -35
@@ -1,165 +0,0 @@
1
- import { spawn, spawnSync } from "node:child_process";
2
- import { readFileSync } from "node:fs";
3
- import { availableParallelism } from "node:os";
4
- import * as path from "node:path";
5
- import { ReportUnavailable } from "../domain/architecture-error.js";
6
- import { indexByFile, parseReport, uniqueDiagnostics } from "../domain/report.js";
7
- import { reportSourcesOf } from "../ports/report-source.js";
8
- // The report source on this host: runs a `report` term's commands from the
9
- // repository root, or reads the files it names, and parses the output once
10
- // — a report is about the whole repository, a campaign asks per file, and
11
- // the plugin asks for one file at a time across a whole lint run. Cached
12
- // per spec for the life of the process: the CLI is one process per `check`,
13
- // and oxlint's language server is one process per editor session, which
14
- // sees the report as of when it loaded the plugin. A report the build
15
- // writes to a file is the predictable form for the editor, and for CI.
16
- //
17
- // A term may name several commands — a tool that checks one project at a
18
- // time, run once per project — and their outputs are one report: parsed
19
- // each, joined, and a diagnostic two of them print kept once. `read` runs
20
- // them concurrently, as many at a time as the machine has cores, which is
21
- // why both hosts call it before any file asks; `diagnosticsOf` with no
22
- // answer kept runs them one after another, synchronously, and keeps that.
23
- //
24
- // A non-zero exit is not a failure — `tsc` exits 2 when there are errors,
25
- // which is the case the term exists for. A command that cannot be spawned,
26
- // or a file that is not there, is — and that failure is cached as the report
27
- // would have been, so the second file to ask gets the same answer without a
28
- // second spawn. The command is forked from the asking process; under the
29
- // oxlint plugin that is the linter, which Linux refuses to fork once its AST
30
- // buffers have merged into one mapping larger than RAM and swap — so the
31
- // plugin asks at load, and retrying per file would only repeat the refusal.
32
- const MAX_BUFFER = 256 * 1024 * 1024;
33
- const fileTextOf = (repoRoot, file) => {
34
- const at = path.resolve(repoRoot, file);
35
- try {
36
- return readFileSync(at, "utf8");
37
- }
38
- catch (cause) {
39
- throw new ReportUnavailable({ kind: "file", source: file, detail: String(cause) });
40
- }
41
- };
42
- const commandTextSync = (repoRoot, command) => {
43
- const run = spawnSync(command, {
44
- cwd: repoRoot,
45
- shell: true,
46
- encoding: "utf8",
47
- maxBuffer: MAX_BUFFER,
48
- stdio: ["ignore", "pipe", "pipe"],
49
- });
50
- if (run.error !== undefined) {
51
- throw new ReportUnavailable({ kind: "command", source: command, detail: run.error.message });
52
- }
53
- return run.stdout;
54
- };
55
- const commandText = (repoRoot, command) => new Promise((resolve, reject) => {
56
- const child = spawn(command, {
57
- cwd: repoRoot,
58
- shell: true,
59
- stdio: ["ignore", "pipe", "pipe"],
60
- });
61
- const chunks = [];
62
- let size = 0;
63
- child.stdout.on("data", (chunk) => {
64
- size += chunk.length;
65
- if (size > MAX_BUFFER) {
66
- child.kill();
67
- reject(new ReportUnavailable({
68
- kind: "command",
69
- source: command,
70
- detail: `stdout exceeded ${String(MAX_BUFFER)} bytes`,
71
- }));
72
- return;
73
- }
74
- chunks.push(chunk);
75
- });
76
- child.stderr.resume();
77
- child.on("error", (cause) => {
78
- reject(new ReportUnavailable({ kind: "command", source: command, detail: cause.message }));
79
- });
80
- child.on("close", () => {
81
- resolve(Buffer.concat(chunks).toString("utf8"));
82
- });
83
- });
84
- // `work` over `items`, at most `lanes` at a time, answers in order.
85
- const inLanes = async (items, lanes, work) => {
86
- const answers = new Array(items.length);
87
- let next = 0;
88
- const lane = async () => {
89
- while (next < items.length) {
90
- const index = next;
91
- next += 1;
92
- answers[index] = await work(items[index]);
93
- }
94
- };
95
- await Promise.all(Array.from({ length: Math.min(lanes, items.length) }, lane));
96
- return answers;
97
- };
98
- // One command named as a string and the same one as a list of one are the
99
- // same report.
100
- const keyOf = (spec) => JSON.stringify([
101
- spec.file === undefined ? "command" : "file",
102
- reportSourcesOf(spec),
103
- spec.format,
104
- spec.pattern ?? null,
105
- ]);
106
- export const makeReportSourceLive = (repoRoot) => {
107
- const cache = new Map();
108
- const reading = new Map();
109
- // The outputs, in the order named, as one report.
110
- const indexOf = (spec, texts) => indexByFile(uniqueDiagnostics(texts.flatMap((text) => parseReport(spec.format, text, { repoRoot, pattern: spec.pattern }))));
111
- const answerSync = (spec) => {
112
- try {
113
- const texts = reportSourcesOf(spec).map((source) => spec.file === undefined ? commandTextSync(repoRoot, source) : fileTextOf(repoRoot, source));
114
- return indexOf(spec, texts);
115
- }
116
- catch (cause) {
117
- if (cause instanceof ReportUnavailable)
118
- return cause;
119
- throw cause;
120
- }
121
- };
122
- const answer = async (spec) => {
123
- try {
124
- const sources = reportSourcesOf(spec);
125
- const texts = spec.file === undefined
126
- ? await inLanes(sources, availableParallelism(), (command) => commandText(repoRoot, command))
127
- : sources.map((file) => fileTextOf(repoRoot, file));
128
- return indexOf(spec, texts);
129
- }
130
- catch (cause) {
131
- if (cause instanceof ReportUnavailable)
132
- return cause;
133
- throw cause;
134
- }
135
- };
136
- const read = (spec) => {
137
- const key = keyOf(spec);
138
- if (cache.has(key))
139
- return Promise.resolve();
140
- const pending = reading.get(key);
141
- if (pending !== undefined)
142
- return pending;
143
- const started = answer(spec).then((found) => {
144
- cache.set(key, found);
145
- reading.delete(key);
146
- });
147
- reading.set(key, started);
148
- return started;
149
- };
150
- return {
151
- read,
152
- diagnosticsOf: (spec, file) => {
153
- const key = keyOf(spec);
154
- let found = cache.get(key);
155
- if (found === undefined) {
156
- found = answerSync(spec);
157
- cache.set(key, found);
158
- }
159
- if (found instanceof ReportUnavailable)
160
- throw found;
161
- return found.get(file) ?? [];
162
- },
163
- };
164
- };
165
- //# sourceMappingURL=report-source-live.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"report-source-live.js","sourceRoot":"","sources":["../../../src/infrastructure/report-source-live.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,C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CAAC;QACH,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAC1B,OAAO,OAAO,CAAC;IACjB,CAAC,CAAC;IAEF,OAAO;QACL,IAAI;QACJ,aAAa,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE;YAC5B,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;YACxB,IAAI,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC3B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;gBACzB,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YACxB,CAAC;YACD,IAAI,KAAK,YAAY,iBAAiB;gBAAE,MAAM,KAAK,CAAC;YACpD,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAC/B,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=campaign-predicate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"campaign-predicate.js","sourceRoot":"","sources":["../../../src/ports/campaign-predicate.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- // The commands or files a spec names, as a list.
2
- export const reportSourcesOf = (spec) => {
3
- const named = spec.command ?? spec.file ?? [];
4
- return typeof named === "string" ? [named] : named;
5
- };
6
- export const NO_REPORTS = { diagnosticsOf: () => [] };
7
- //# sourceMappingURL=report-source.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"report-source.js","sourceRoot":"","sources":["../../../src/ports/report-source.ts"],"names":[],"mappings":"AAaA,iDAAiD;AACjD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAAgB,EAAyB,EAAE;IACzE,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;IAC9C,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AACrD,CAAC,CAAC;AAiBF,MAAM,CAAC,MAAM,UAAU,GAAiB,EAAE,aAAa,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC"}