refactor: use canonical implementations and types directly

Remove forwarding wrappers and shadow aliases, migrate callers and verification scripts to their owners, and share one exhaustive semantic resource-bound projection.
This commit is contained in:
morluto
2026-10-09 23:17:17 +08:00
parent 3283a45d09
commit 765e809e36
119 changed files with 577 additions and 629 deletions
@@ -3,12 +3,9 @@ import type {
JavaScriptSemanticValue,
} from "./javascriptSemanticValueTypes.js";
/** A container's own slot, using the value lattice's canonical presence model. */
export type JavaScriptSemanticSlot = JavaScriptSemanticProperty;
/** Static container inventory; partial siblings do not weaken retained slots. */
export interface JavaScriptSemanticContainer {
readonly slots: readonly JavaScriptSemanticSlot[];
readonly slots: readonly JavaScriptSemanticProperty[];
readonly coverage:
| { readonly status: "complete"; readonly omitted: 0 }
| { readonly status: "partial"; readonly omitted: number | null };
@@ -48,9 +45,9 @@ export function semanticContainer(
export const semanticSlotAtPath = (
value: JavaScriptSemanticValue,
path: readonly string[],
): JavaScriptSemanticSlot => {
): JavaScriptSemanticProperty => {
const leafName = path.at(-1) ?? "";
let current: JavaScriptSemanticSlot = {
let current: JavaScriptSemanticProperty = {
name: "",
presence: "present",
value,