mirror of
https://github.com/morluto/rea.git
synced 2026-10-28 10:25:42 +00:00
fix(javascript): bound semantic unknown retention at projection
Admit unknowns before canonical construction and provenance interning. Offer independent per-file and application capacities through CLI, Evidence and the owned analysis worker, and reject over-allocation during streamed decoding. Report examined omitted emission occurrences by family and reason without retaining discarded identities. Preserve omission-free graph identities and distinguish node truncation from overall partial coverage. Fixes #4797
This commit is contained in:
1 parent
926e18b3fc
commit
f4322b15ed
34 files changed
+892
-293
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import type { JavaScriptSemanticProjectionCapacity } from "../../domain/javascript/javascriptSemanticFileProjection.js";
|
||||
import { createHash } from "node:crypto";
|
||||
import { readFile, writeFile } from "node:fs/promises";
|
||||
import { join } from "node:path";
|
||||
@@ -26,7 +27,7 @@ import {
|
||||
export interface JavaScriptSourceWorkerAnalyzer {
|
||||
(
|
||||
file: JavaScriptArtifactFile,
|
||||
nodeBudget: number,
|
||||
capacity: JavaScriptSemanticProjectionCapacity,
|
||||
callbacks: {
|
||||
readonly phase: (
|
||||
phase: "parse" | "static" | "semantic" | "projection",
|
||||
@@ -111,7 +112,7 @@ const analyzeJob = async (
|
||||
...request.file,
|
||||
text: { included: true, value: source },
|
||||
},
|
||||
request.node_budget,
|
||||
{ nodes: request.node_budget, unknowns: request.unknown_budget },
|
||||
{
|
||||
phase: async (phase) => send({ kind: "phase", id: request.id, phase }),
|
||||
checkpoint: async (facts) => {
|
||||
|
||||
Reference in new issue
Block a user