Preserve applicable artifact processing phases and entered/unvisited status after interruption. Centralize JavaScript semantic applicability for full and incremental builders; retain native byte identity, actual JavaScript unknowns and structured-file provenance. Fixes #3948. Part of #4027. Validation:78 distinct focused cases across10files, full static/docs, and real Joplin timeout/default public CLI/MCP controls passed. Source pins, every attempt/outlier and compact resource/token projections are retained. No target/native provider execution or speedup claim. Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
29 lines
781 B
TypeScript
29 lines
781 B
TypeScript
import type { z } from "zod";
|
|
|
|
export interface StructuredScopeExpectation {
|
|
readonly operation:
|
|
| "parse-package-json"
|
|
| "parse-json-module"
|
|
| "parse-html-script-references"
|
|
| "parse-local-source-map";
|
|
readonly analysis_status: "interrupted" | "not-started";
|
|
}
|
|
|
|
export interface StructuredProcessingScope {
|
|
readonly properties: Readonly<Record<string, unknown>>;
|
|
readonly evidence: {
|
|
readonly authority: string;
|
|
readonly state: string;
|
|
readonly confidence: string;
|
|
};
|
|
}
|
|
|
|
export const structuredScopeExpectationsSchema: z.ZodType<
|
|
Record<string, StructuredScopeExpectation>
|
|
>;
|
|
|
|
export function matchesStructuredScopeExpectation(
|
|
scopes: readonly StructuredProcessingScope[],
|
|
expected: StructuredScopeExpectation | undefined,
|
|
): boolean;
|