refactor(tools): remove redundant limits and acknowledgements

This commit is contained in:
morluto
2026-09-29 10:53:45 +08:00
parent 7ba3580c86
commit bd0e341572
158 changed files with 599 additions and 1527 deletions
@@ -9,7 +9,6 @@ import {
export class JavaScriptArtifactGraphAccumulator {
readonly #nodes = new Map<string, ApplicationNode>();
readonly #edges = new Map<string, ApplicationEdge>();
#omittedObservations = 0;
/** Create or merge one canonical node. */
addNode(input: unknown): ApplicationNode {
@@ -27,9 +26,7 @@ export class JavaScriptArtifactGraphAccumulator {
);
const observations = [...bySemanticId.entries()]
.sort(([left], [right]) => (left < right ? -1 : left > right ? 1 : 0))
.slice(0, 64)
.map(([, observation]) => observation);
this.#omittedObservations += Math.max(0, bySemanticId.size - 64);
const merged = createJavaScriptApplicationNode({
kind: existing.kind,
identity: existing.identity,
@@ -55,11 +52,6 @@ export class JavaScriptArtifactGraphAccumulator {
edges(): readonly ApplicationEdge[] {
return [...this.#edges.values()];
}
/** Count distinct node observations omitted by the graph contract bound. */
omittedObservations(): number {
return this.#omittedObservations;
}
}
const observationInput = (