fix(hopper)!: bind analysis to the active target and correct boundary contracts
Preserve native document identity, nullable bookmark labels, address diagnostics, segment-end byte prefixes, and verified file mappings. Validate batch rename addresses before mutation. BREAKING CHANGE: remove set_current_document. Use open_binary to switch targets; document arguments are scoped to the active target.
This commit is contained in:
@@ -62,6 +62,11 @@ const segmentSchema = z.object({
|
||||
const unavailableAnalysisFactSchema = z
|
||||
.object({ available: z.literal(false), reason: z.string() })
|
||||
.strict();
|
||||
/** An analyzed bookmark retains a missing provider label as null. */
|
||||
export const analysisBookmarkSchema = z.strictObject({
|
||||
address: z.string(),
|
||||
name: z.string().nullable(),
|
||||
});
|
||||
/** Complete observed function-body ranges; every range endpoint is inclusive. */
|
||||
export const functionBodySchema = z.discriminatedUnion("available", [
|
||||
unavailableAnalysisFactSchema,
|
||||
|
||||
Reference in New Issue
Block a user