diff --git a/apps/vscode-extension/CHANGELOG.md b/apps/vscode-extension/CHANGELOG.md index 8d98d264..0ee5c182 100644 --- a/apps/vscode-extension/CHANGELOG.md +++ b/apps/vscode-extension/CHANGELOG.md @@ -18,9 +18,13 @@ - Untouched floors keep the building's grey; a floor the agent read or edited keeps a soft tint of that action. - The floors the current step reads or edits light up in the action's colour, with an outline: exactly the functions it works on, not the whole file. - A function the agent writes from scratch gets a new floor, built in front of you when the step plays. - - Replaying the timeline animates the city as it changed: moving back shows the city as it was at that point of the chat, and playing forward grows new floors, raises and lowers buildings and fades neighbours step by step. Before, every growth and fade finished on the next frame. - Resting the pointer on a floor names its function, its lines and how many times it was read and written. - Line data comes from Claude Code's edit and read results and from the Code-XR IDE's agent locations; a step without it lights the whole building, as before. + - The timeline is time travel: at any step the city shows the project as it was then, and playing forward builds each change. + - Files created, deleted, moved or renamed appear and disappear in their step, whatever tool did it: shell commands (`rm`, `git rm`, `mv`, `git mv`, `cp`, `touch`, `> file`, `tee`, `sed -i` and their PowerShell and cmd forms), Codex patches (including moves) and the IDE's agents. + - A function the agent deletes keeps its floor until that step, then the floor comes down. + - Growth, fades and floors animate when a step plays; before, they finished on the next frame, so a replayed step showed its result already built. + - Deleting or moving a file no longer counts as a blind edit. - Agents fly UFOs: each agent is a flying saucer in its colour, cruising above the tallest building and below the legends, so it is always in sight. - Buildings are at most 0.55 m tall, so the UFOs fly at the height of a standing viewer's eyes. - It glides from file to file at its altitude; the trail draws the flight path in the sky. diff --git a/apps/vscode-extension/src/core/agent-flow/acpSessionEvents.ts b/apps/vscode-extension/src/core/agent-flow/acpSessionEvents.ts index 9e4b410e..bef4c351 100644 --- a/apps/vscode-extension/src/core/agent-flow/acpSessionEvents.ts +++ b/apps/vscode-extension/src/core/agent-flow/acpSessionEvents.ts @@ -153,6 +153,16 @@ function withLineTouches(step: StepEvent, locations: AgentTraceLocation[], creat return step; } +/** A terminal command read as the step it really was (a read, a search, a change to the tree). */ +function applyShellCommand(command: string, kind: AgentStepKind, locations: AgentTraceLocation[], created: string[], deleted: string[]): AgentStepKind { + const classified = classifyShellCommand(command); + if (classified.kind === 'execute') { return kind; } + for (const path of classified.paths) { locations.push({ path }); } + created.push(...(classified.created ?? [])); + deleted.push(...(classified.deleted ?? [])); + return classified.kind; +} + /** A created diff's lines (every line new), when it has any. */ function createdTouch(path: string, newText: string, into: AgentTraceLineTouch[]): void { const touch = touchFromCreatedContent(path, newText); @@ -255,13 +265,7 @@ export class AcpSessionEventMapper { let kind = content.kind; const deleted: string[] = event.toolKind === 'delete' ? locations.map((loc) => loc.path) : []; const command = kind === 'execute' ? parseRawCommand(event.rawInput) : undefined; - if (command) { - const classified = classifyShellCommand(command); - if (classified.kind !== 'execute') { - kind = classified.kind; - for (const path of classified.paths) { locations.push({ path }); } - } - } + if (command) { kind = applyShellCommand(command, kind, locations, content.created, deleted); } this.kinds.set(event.id, kind); if (locations.length > 0) { this.locations.set(event.id, locations); } return withLineTouches(toolStep(event.id, kind, at, { diff --git a/apps/vscode-extension/src/core/agent-flow/agentFlowBuilder.ts b/apps/vscode-extension/src/core/agent-flow/agentFlowBuilder.ts index ac79eefa..972f46ba 100644 --- a/apps/vscode-extension/src/core/agent-flow/agentFlowBuilder.ts +++ b/apps/vscode-extension/src/core/agent-flow/agentFlowBuilder.ts @@ -22,6 +22,7 @@ import { import { type CityLayout, type LayoutRect, layoutCity, PLATE_HEIGHT } from './agentFlowLayout'; import { relativeToRoot } from './agentFlowPaths'; import { foldTraceEvents, type MutableStep } from './agentFlowSteps'; +import { buildLifecycle, type LifecycleResult } from './agentFlowLifecycle'; import { buildFloors } from './agentFlowFloors'; import { applyMetricDeltas, computeBlastRadius, foldTouches, round, sessionMetrics, TOUCHING_KINDS } from './agentFlowMetrics'; @@ -196,7 +197,7 @@ function applyFloors( input: AgentFlowBuildInput, files: AgentFlowFile[], steps: MutableStep[], - indexByPath: Map, + lifecycle: LifecycleResult, warnings: string[], ): Map> { if (!input.functions || input.functions.length === 0) { return new Map(); } @@ -206,13 +207,12 @@ function applyFloors( functionsByPath.set(rel, entry.functions); } const createdBy = new Map(); - for (const step of steps) { - for (const path of step.createdPaths) { - const index = indexByPath.get(path); - if (index !== undefined && !createdBy.has(index)) { createdBy.set(index, step.seq); } - } + const movedTo = new Map(); + for (const [seq, change] of [...lifecycle.steps].sort((a, b) => a[0] - b[0])) { + for (const index of change.created) { if (!createdBy.has(index)) { createdBy.set(index, seq); } } + for (const [from, to] of change.moves) { movedTo.set(from, to); } } - const result = buildFloors(files, steps, functionsByPath, createdBy); + const result = buildFloors(files, steps, functionsByPath, createdBy, movedTo); if (result.tooMany > 0) { warnings.push(`${result.tooMany} file(s) have too many functions to draw as floors and stay one block.`); } @@ -240,8 +240,12 @@ export function buildAgentFlowDataset(input: AgentFlowBuildInput): AgentFlowBuil const totalDelta = applyMetricDeltas({ steps, turns, files, indexByPath, baseByPath, currentByPath, turnDeltas }); const { blastRadius, unreadDependents } = computeBlastRadius(files, indexByPath, input.dependencyEdges); - // ---- 7. Function floors ------------------------------------------------- - const stepFloors = applyFloors(input, files, steps, indexByPath, warnings); + // ---- 7. Lifecycle: which files exist at every step ---------------------- + const lifecycle = buildLifecycle(steps, files.length, indexByPath); + files.forEach((file) => { file.existed = lifecycle.existed[file.index]; }); + + // ---- 8. Function floors ------------------------------------------------- + const stepFloors = applyFloors(input, files, steps, lifecycle, warnings); const dataset: AgentFlowDataset = { schemaVersion: AGENT_FLOW_SCHEMA_VERSION, @@ -255,7 +259,12 @@ export function buildAgentFlowDataset(input: AgentFlowBuildInput): AgentFlowBuil turns, steps: steps.map(({ paths: _paths, createdPaths: _created, deletedPaths: _deleted, lineTouches: _lines, ...step }) => { const floors = stepFloors.get(step.seq); - return floors ? { ...step, floors } : step; + const change = lifecycle.steps.get(step.seq); + return { + ...step, + ...(floors ? { floors } : {}), + ...(change ? { created: change.created, deleted: change.deleted, ...(change.moves.length ? { moves: change.moves } : {}) } : {}), + }; }), transitions: touches.transitions, metrics: sessionMetrics({ diff --git a/apps/vscode-extension/src/core/agent-flow/agentFlowFloors.ts b/apps/vscode-extension/src/core/agent-flow/agentFlowFloors.ts index 8a2341bc..74c2b5ce 100644 --- a/apps/vscode-extension/src/core/agent-flow/agentFlowFloors.ts +++ b/apps/vscode-extension/src/core/agent-flow/agentFlowFloors.ts @@ -12,7 +12,10 @@ * * A function is new (its floor is built during the playback) when its * signature line was added by a write step whose removed lines did not - * mention its name; the earliest such step builds it. Pure: no fs. + * mention its name; the earliest such step builds it. A function a write + * removed (its definition among the removed lines) that the file no longer + * has gets a floor that stands until that step and comes down in it, so the + * timeline shows the file as it was at every step. Pure: no fs. */ import type { AgentFlowFile, @@ -190,6 +193,7 @@ function addedNow(touch: AgentTraceLineTouch, seq: number, edits: ReadonlyArray< /** True when a write at `seq` added the floor's signature line without removing its name. */ function writeBuilds(floor: AgentFlowFloor, seq: number, added: LineRange[], removed: Set): boolean { + if (floor.diedStep !== undefined) { return false; } if (floor.bornStep >= 0 && floor.bornStep <= seq) { return false; } const signatureAdded = added.some((range) => range.start <= floor.lineStart && range.end >= floor.lineStart); return signatureAdded && !removed.has(functionIdentifier(floor.name)); @@ -211,6 +215,54 @@ function markBorn(floors: AgentFlowFloor[], touches: ReadonlyArray, e } } +/** + * Floors for the functions the session removed: a write whose removed lines + * defined a function the file no longer has. The floor stands from when the + * function was written (a write that defined it, the file's creation, or + * before the session) until the step that removed it, at the point where it + * was. A name defined again later is a rewrite, not a removal. + */ +function removedFloors( + spans: ReadonlyArray, + touches: ReadonlyArray, + edits: ReadonlyArray, + createdBy: number, +): AgentFlowFloor[] { + const alive = new Set(spans.map((fn) => functionIdentifier(fn.name))); + const definedAt = new Map(); + const out: AgentFlowFloor[] = []; + for (const { seq, kind, touch } of touches) { + if (kind !== 'write') { continue; } + const { readded, removals } = definitionChanges(touch, alive); + for (const [name, at] of removals) { + if (out.some((floor) => floor.name === name && floor.diedStep === seq)) { continue; } + out.push(dyingFloor(name, at, seq, edits, definedAt.get(name) ?? bornWithFile(createdBy, seq))); + definedAt.delete(name); + } + for (const name of readded) { if (!definedAt.has(name)) { definedAt.set(name, seq); } } + } + return out; +} + +/** The functions a write re-adds, and the ones it removes for good (gone at the end, not re-added). */ +function definitionChanges(touch: AgentTraceLineTouch, alive: ReadonlySet): { readded: Set; removals: Array<[string, number]> } { + const hunks = touch.hunks ?? []; + const readded = new Set(hunks.flatMap((hunk) => (hunk.addedDefs ?? []).map(([name]) => name))); + const removals = hunks.flatMap((hunk) => hunk.removedDefs ?? []).filter(([name]) => !alive.has(name) && !readded.has(name)); + return { readded, removals }; +} + +/** A function with no recorded definition was born with its file, when the file was created earlier. */ +function bornWithFile(createdBy: number, seq: number): number { + return createdBy >= 0 && createdBy < seq ? createdBy : -1; +} + +/** The floor of a function removed at `seq`, at its removal point in today's numbering. */ +function dyingFloor(name: string, at: number, seq: number, edits: ReadonlyArray, born: number): AgentFlowFloor { + const point = forward({ start: at, end: at }, seq, edits).start; + return { name, lineStart: point, lineEnd: point, bornStep: born, diedStep: seq }; +} + /** Records that step `seq` touched `floors` of `file` (merging touches of the same file). */ function addStepFloors(stepFloors: Map, seq: number, file: number, floors: number[]): void { const list = stepFloors.get(seq) ?? []; @@ -242,13 +294,16 @@ export function buildFloors( steps: ReadonlyArray, functionsByPath: ReadonlyMap>, createdBy: ReadonlyMap = new Map(), + movedTo: ReadonlyMap = new Map(), ): FloorsResult { const stepFloors = new Map(); let floorCount = 0; let tooMany = 0; for (const file of files) { - const functions = functionsByPath.get(file.path); - const spans = functions && !file.deleted ? floorFunctions(functions) : []; + // A file moved away keeps, until the move, the functions its new path has now. + const moved = movedTo.get(file.index); + const functions = functionsByPath.get(file.path) ?? (moved !== undefined ? functionsByPath.get(files[moved]?.path ?? '') : undefined); + const spans = functions ? floorFunctions(functions) : []; if (spans.length === 0) { continue; } if (spans.length > MAX_FLOORS_PER_FILE || floorCount + spans.length > MAX_FLOORS_TOTAL) { tooMany += 1; continue; } file.floors = fileFloors(file, spans, steps, createdBy.get(file.index) ?? -1, stepFloors); @@ -265,16 +320,18 @@ function fileFloors( createdBy: number, stepFloors: Map, ): AgentFlowFloor[] { - const floors: AgentFlowFloor[] = spans.map((fn) => ({ name: fn.name, lineStart: fn.lineStart, lineEnd: fn.lineEnd, bornStep: -1 })); const touches = fileTouches(steps, file.index, file.path); const edits: FileEdit[] = touches .filter((entry) => entry.kind === 'write' && entry.touch.hunks?.length) .map((entry) => ({ seq: entry.seq, hunks: sortedHunks(entry.touch.hunks ?? []) })); + const floors: AgentFlowFloor[] = spans.map((fn) => ({ name: fn.name, lineStart: fn.lineStart, lineEnd: fn.lineEnd, bornStep: -1 })); markBorn(floors, touches, edits, createdBy); + floors.push(...removedFloors(spans, touches, edits, createdBy)); + floors.sort((a, b) => a.lineStart - b.lineStart || (a.diedStep ?? Infinity) - (b.diedStep ?? Infinity)); for (const { seq, touch } of touches) { const ranges = touchRanges(touch).map((range) => forward(range, seq, edits)); if (ranges.length === 0) { continue; } - const hit = overlapping(floors, ranges); + const hit = overlapping(floors, ranges).filter((index) => !(floors[index].diedStep !== undefined && (floors[index].diedStep as number) <= seq)); // The floors this step built are part of what it wrote. floors.forEach((floor, index) => { if (floor.bornStep === seq && !hit.includes(index)) { hit.push(index); } }); addStepFloors(stepFloors, seq, file.index, hit); diff --git a/apps/vscode-extension/src/core/agent-flow/agentFlowLifecycle.ts b/apps/vscode-extension/src/core/agent-flow/agentFlowLifecycle.ts new file mode 100644 index 00000000..c7ac343a --- /dev/null +++ b/apps/vscode-extension/src/core/agent-flow/agentFlowLifecycle.ts @@ -0,0 +1,79 @@ +/** + * Which files exist at every point of an agent session: the lifecycle the + * timeline replays. Every action that adds, removes or moves a file reaches + * the steps as `createdPaths` / `deletedPaths` (Write, apply_patch, ACP + * diffs and deletes, and the shell commands shellCommandClassifier reads), + * and this module turns them into per-step indexes, a per-file "existed + * before the session" flag and the moves (a delete and a create of the same + * name in one step). A new kind of action only has to fill those two lists. + * Pure: no fs. + */ + +/** A step as the lifecycle needs it. */ +export interface LifecycleStepInput { + seq: number; + files: number[]; + createdPaths: string[]; + deletedPaths: string[]; +} + +export interface StepLifecycle { + created: number[]; + deleted: number[]; + /** [from, to] file indexes moved by the step. */ + moves: Array<[number, number]>; +} + +export interface LifecycleResult { + /** Per step seq, the files it created, deleted and moved (only steps that change any). */ + steps: Map; + /** Per file index: it existed before the session's first step. */ + existed: boolean[]; +} + +function indexesOf(paths: ReadonlyArray, indexByPath: ReadonlyMap): number[] { + const out: number[] = []; + for (const path of paths) { + const index = indexByPath.get(path); + if (index !== undefined && !out.includes(index)) { out.push(index); } + } + return out; +} + +function baseName(path: string): string { + return path.slice(path.lastIndexOf('/') + 1); +} + +/** A step that deletes `a/x.ts` and creates `b/x.ts` (or deletes one file and creates one) moved it. */ +function pairMoves(created: number[], deleted: number[], pathOf: (index: number) => string): Array<[number, number]> { + if (created.length === 1 && deleted.length === 1) { return [[deleted[0], created[0]]]; } + const moves: Array<[number, number]> = []; + for (const from of deleted) { + const to = created.find((index) => baseName(pathOf(index)) === baseName(pathOf(from)) && !moves.some((move) => move[1] === index)); + if (to !== undefined) { moves.push([from, to]); } + } + return moves; +} + +export function buildLifecycle( + steps: ReadonlyArray, + fileCount: number, + indexByPath: ReadonlyMap, +): LifecycleResult { + const pathByIndex = new Map(); + for (const [path, index] of indexByPath) { pathByIndex.set(index, path); } + const result: LifecycleResult = { steps: new Map(), existed: new Array(fileCount).fill(true) }; + // A file's first event decides: created before anything else touched it -> it did not exist yet. + const decided = new Set(); + for (const step of [...steps].sort((a, b) => a.seq - b.seq)) { + const created = indexesOf(step.createdPaths, indexByPath); + const deleted = indexesOf(step.deletedPaths, indexByPath).filter((index) => !created.includes(index)); + for (const index of created) { + if (!decided.has(index)) { result.existed[index] = false; } + } + for (const index of [...created, ...deleted, ...step.files]) { decided.add(index); } + if (created.length + deleted.length === 0) { continue; } + result.steps.set(step.seq, { created, deleted, moves: pairMoves(created, deleted, (index) => pathByIndex.get(index) ?? '') }); + } + return result; +} diff --git a/apps/vscode-extension/src/core/agent-flow/agentFlowMetrics.ts b/apps/vscode-extension/src/core/agent-flow/agentFlowMetrics.ts index f9721de9..b7944b62 100644 --- a/apps/vscode-extension/src/core/agent-flow/agentFlowMetrics.ts +++ b/apps/vscode-extension/src/core/agent-flow/agentFlowMetrics.ts @@ -71,7 +71,7 @@ function markFiles(paths: string[], indexByPath: Map, mark: (ind } } -function touchFile(state: TouchState, step: MutableStep, index: number): void { +function touchFile(state: TouchState, step: MutableStep, index: number, removes: ReadonlySet): void { const file = state.files[index]; if (step.kind === 'read') { file.touches.reads += 1; @@ -79,7 +79,8 @@ function touchFile(state: TouchState, step: MutableStep, index: number): void { state.readSoFar.add(index); } else if (step.kind === 'write') { file.touches.writes += 1; - if (!state.readSoFar.has(index) && !file.created) { state.writtenBeforeRead.add(index); } + // Creating, deleting or moving a file is not editing what it says: never blind. + if (!state.readSoFar.has(index) && !file.created && !removes.has(index)) { state.writtenBeforeRead.add(index); } } else if (step.kind === 'search') { file.touches.searches += 1; } else { @@ -106,9 +107,11 @@ function recordHop(state: TouchState, step: MutableStep): void { function foldStepTouches(state: TouchState, step: MutableStep, indexByPath: Map): void { markFiles(step.createdPaths, indexByPath, (index) => { state.files[index].created = true; }); const set = state.turnFiles.get(step.turn) ?? new Set(); + const removes = new Set(); + markFiles(step.deletedPaths, indexByPath, (index) => { removes.add(index); }); for (const index of step.files) { set.add(index); - touchFile(state, step, index); + touchFile(state, step, index, removes); } markFiles(step.deletedPaths, indexByPath, (index) => { state.files[index].deleted = true; }); state.turnFiles.set(step.turn, set); diff --git a/apps/vscode-extension/src/core/agent-flow/agentFlowModels.ts b/apps/vscode-extension/src/core/agent-flow/agentFlowModels.ts index 53be0510..d20a54a0 100644 --- a/apps/vscode-extension/src/core/agent-flow/agentFlowModels.ts +++ b/apps/vscode-extension/src/core/agent-flow/agentFlowModels.ts @@ -52,6 +52,10 @@ export interface AgentTraceHunk { newLines: number; added?: Array<[number, number]>; removedAt?: number[]; + /** Functions the added lines define, as [name, line] (new numbering): best effort, any language. */ + addedDefs?: Array<[string, number]>; + /** Functions the removed lines defined, as [name, removal point] (new numbering). */ + removedDefs?: Array<[string, number]>; } /** @@ -157,6 +161,12 @@ export interface AgentFlowFloor { lineEnd: number; /** Seq of the write step that created the function; -1 when it existed before the session. */ bornStep: number; + /** + * Seq of the write step that removed the function, when the agent deleted + * it: the floor stands before that step and is gone from it on. Its span + * is then the point where it was, in the numbering of the file now. + */ + diedStep?: number; } /** The floors one step read or wrote in one file (indexes into `files[file].floors`). */ @@ -204,6 +214,8 @@ export interface AgentFlowFile { turns: number[]; created: boolean; deleted: boolean; + /** It existed before the session's first step (false: a step of the session created it). */ + existed?: boolean; /** Net metric change the session caused, null when unknown. */ delta: AgentFlowMetricDelta | null; /** Files that import this one (from the dependency graph), -1 when unknown. */ @@ -249,6 +261,14 @@ export interface AgentFlowStep { * lines. A file of `files` missing here gets its whole building lit. */ floors?: AgentFlowStepFloors[]; + /** + * The files this step brought into being / removed (indexes), and the + * moves among them ([from, to]). Every change to which files exist is + * here, so the timeline can show the tree as it was at any step. + */ + created?: number[]; + deleted?: number[]; + moves?: Array<[number, number]>; } /** diff --git a/apps/vscode-extension/src/core/agent-flow/claudeCodeTranscript.ts b/apps/vscode-extension/src/core/agent-flow/claudeCodeTranscript.ts index d0d619c9..d2712041 100644 --- a/apps/vscode-extension/src/core/agent-flow/claudeCodeTranscript.ts +++ b/apps/vscode-extension/src/core/agent-flow/claudeCodeTranscript.ts @@ -160,6 +160,8 @@ interface ToolCallShape { locations: AgentTraceLocation[]; title: string; command?: string; + created?: string[]; + deleted?: string[]; } /** A shell command: its own label, and a read or search verb when it is one. */ @@ -169,6 +171,8 @@ function applyCommand(shape: ToolCallShape, command: string): void { if (classified.kind !== 'execute') { shape.kind = classified.kind; for (const path of classified.paths) { shape.locations.push({ path }); } + if (classified.created?.length) { shape.created = classified.created; } + if (classified.deleted?.length) { shape.deleted = classified.deleted; } } shape.title = command.length > 80 ? `${command.slice(0, 77)}...` : command; } @@ -360,7 +364,7 @@ export class ClaudeCodeTranscriptParser { } private toolStep(id: string, name: string, input: Json, at: number, subagent: boolean): AgentTraceEvent { - const { kind, locations, title, command } = toolCallShape(name, input); + const { kind, locations, title, command, created, deleted } = toolCallShape(name, input); const { added, removed } = editLineCounts(name, input); this.tools.set(id, { name, kind }); const step: StepEvent = { @@ -372,6 +376,8 @@ export class ClaudeCodeTranscriptParser { } if (locations.length > 0) { step.locations = locations; } if (command) { step.command = command; } + if (created) { step.created = created; } + if (deleted) { step.deleted = deleted; } if (added !== undefined) { step.added = added; } if (removed !== undefined) { step.removed = removed; } return step; diff --git a/apps/vscode-extension/src/core/agent-flow/codexRollout.ts b/apps/vscode-extension/src/core/agent-flow/codexRollout.ts index 6499e028..471a6843 100644 --- a/apps/vscode-extension/src/core/agent-flow/codexRollout.ts +++ b/apps/vscode-extension/src/core/agent-flow/codexRollout.ts @@ -4,7 +4,7 @@ * shell commands are classified (cat/sed -n -> read, rg/find -> search) and the * patch headers name the files it edits, creates and deletes. Pure: no fs. */ -import type { AgentTraceEvent, AgentTraceLocation } from './agentFlowModels'; +import type { AgentTraceEvent } from './agentFlowModels'; import { classifyShellCommand, parseApplyPatch, unwrapShell } from './shellCommandClassifier'; type Json = Record; @@ -93,6 +93,18 @@ function patchStep(id: string, at: number, patch: string): StepEvent { }; } +const CALL_KINDS = new Set(['read', 'search', 'write']); + +/** A shell call, read as the step it really was: a read, a search, a change to the tree, or a run. */ +function shellStep(id: string, at: number, name: string, command: string): StepEvent { + const classified = classifyShellCommand(command); + const step: StepEvent = { type: 'step', at, id, kind: classified.kind, tool: name, status: 'running', title: shortTitle(command), command }; + if (classified.paths.length > 0) { step.locations = classified.paths.map((path) => ({ path })); } + if (classified.created?.length) { step.created = classified.created; } + if (classified.deleted?.length) { step.deleted = classified.deleted; } + return step; +} + export class CodexRolloutParser { private readonly calls = new Map(); private turnOpen = false; @@ -211,15 +223,9 @@ export class CodexRolloutParser { return patchStep(id, at, patch); } if (command) { - const classified = classifyShellCommand(command); - const locations: AgentTraceLocation[] = classified.paths.map((path) => ({ path })); - this.calls.set(id, classified.kind === 'read' || classified.kind === 'search' ? classified.kind : 'execute'); - return { - type: 'step', at, id, kind: classified.kind, tool: name, status: 'running', - title: shortTitle(command), - command, - ...(locations.length > 0 ? { locations } : {}), - }; + const step = shellStep(id, at, name, command); + this.calls.set(id, CALL_KINDS.has(step.kind) ? step.kind as CallKind : 'execute'); + return step; } this.calls.set(id, 'execute'); return { type: 'step', at, id, kind: name.startsWith('mcp') ? 'fetch' : 'other', tool: name, status: 'running', title: name }; diff --git a/apps/vscode-extension/src/core/agent-flow/lineTouches.ts b/apps/vscode-extension/src/core/agent-flow/lineTouches.ts index 9f3d4a9b..6358cf6f 100644 --- a/apps/vscode-extension/src/core/agent-flow/lineTouches.ts +++ b/apps/vscode-extension/src/core/agent-flow/lineTouches.ts @@ -22,6 +22,22 @@ function whole(value: unknown): number | null { return typeof value === 'number' && Number.isFinite(value) && value >= 0 ? Math.floor(value) : null; } +const NOT_A_NAME = new Set(['if', 'for', 'while', 'switch', 'catch', 'return', 'function', 'else', 'do', 'try', 'with', 'new', 'typeof', 'await', 'yield', 'super', 'this']); +/** `function f(`, `def f(`, `fn f(`, `func (r T) f(`, `const f = (...) =>`, `f = function`. */ +const KEYWORD_DEFINITION = /\b(?:function\s*\*?\s*|def\s+|fn\s+|func\s+(?:\([^)]*\)\s*)?|sub\s+|proc\s+)([A-Za-z_$][\w$]*)\s*[(<]/; +const BOUND_FUNCTION = /\b([A-Za-z_$][\w$]*)\s*[:=]\s*(?:async\s+)?(?:function\b|\([^()]*\)\s*(?::[^=]+)?=>|[A-Za-z_$][\w$]*\s*=>)/; +/** A method or C-family function whose body opens on the same line: `public int f(a) {`, ` f(a) {`. */ +const BODY_DEFINITION = /^\s*(?:[\w$<>[\],.?*&:]+\s+)*?([A-Za-z_$][\w$]*)\s*\([^;]*\)\s*(?::\s*[^{;=]+)?\{\s*$/; + +/** The function a source line defines, when it visibly defines one (any language, best effort). */ +export function definedFunctionName(line: string): string | null { + for (const pattern of [KEYWORD_DEFINITION, BOUND_FUNCTION, BODY_DEFINITION]) { + const name = pattern.exec(line)?.[1]; + if (name && !NOT_A_NAME.has(name)) { return name; } + } + return null; +} + function addIdentifiers(target: Set, text: string): void { for (const match of text.matchAll(IDENTIFIER)) { if (target.size >= MAX_REMOVED_IDENTIFIERS) { return; } @@ -29,25 +45,42 @@ function addIdentifiers(target: Set, text: string): void { } } +type HunkScan = Pick; + +/** An added line at `line`: extends the current run, notes a function it defines. */ +function scanAdded(text: string, line: number, added: Array<[number, number]>, defined: Array<[string, number]>): void { + const name = definedFunctionName(text); + if (name) { defined.push([name, line]); } + const last = added[added.length - 1]; + if (last && last[1] === line - 1) { last[1] = line; } else { added.push([line, line]); } +} + +/** A removed line before `line`: the removal point, its identifiers and a function it defined. */ +function scanRemoved(text: string, line: number, removedAt: number[], removed: Set, undefinedNames: Array<[string, number]>): void { + if (removedAt[removedAt.length - 1] !== line) { removedAt.push(line); } + addIdentifiers(removed, text); + const name = definedFunctionName(text); + if (name) { undefinedNames.push([name, line]); } +} + /** Walks a hunk's prefixed lines: runs of added lines and where removals happened (new numbering). */ -function scanHunkLines(lines: readonly string[], newStart: number, removed: Set): Pick { +function scanHunkLines(lines: readonly string[], newStart: number, removed: Set): HunkScan { const added: Array<[number, number]> = []; const removedAt: number[] = []; + const defined: Array<[string, number]> = []; + const undefinedNames: Array<[string, number]> = []; let line = newStart; for (const raw of lines) { const mark = raw.charAt(0); - if (mark === '+') { - const last = added[added.length - 1]; - if (last && last[1] === line - 1) { last[1] = line; } else { added.push([line, line]); } - line += 1; - } else if (mark === '-') { - if (removedAt[removedAt.length - 1] !== line) { removedAt.push(line); } - addIdentifiers(removed, raw.slice(1)); - } else if (mark !== '\\') { - line += 1; - } + if (mark === '-') { scanRemoved(raw.slice(1), line, removedAt, removed, undefinedNames); continue; } + if (mark === '\\') { continue; } + if (mark === '+') { scanAdded(raw.slice(1), line, added, defined); } + line += 1; } - return { added, removedAt }; + const result: HunkScan = { added, removedAt }; + if (defined.length > 0) { result.addedDefs = defined; } + if (undefinedNames.length > 0) { result.removedDefs = undefinedNames; } + return result; } /** One hunk of a structured patch, or null when its numbers are missing. */ @@ -89,7 +122,14 @@ export function touchFromCreatedContent(path: string, content: unknown): AgentTr if (typeof content !== 'string') { return null; } const lines = content.length === 0 ? 0 : content.replace(/\r?\n$/, '').split(/\r?\n/).length; if (lines === 0) { return null; } - return { path, hunks: [{ oldStart: 0, oldLines: 0, newStart: 1, newLines: lines, added: [[1, lines]] }] }; + const hunk: AgentTraceHunk = { oldStart: 0, oldLines: 0, newStart: 1, newLines: lines, added: [[1, lines]] }; + const defined: Array<[string, number]> = []; + content.split(/\r?\n/).forEach((text, i) => { + const name = definedFunctionName(text); + if (name) { defined.push([name, i + 1]); } + }); + if (defined.length > 0) { hunk.addedDefs = defined.slice(0, MAX_REMOVED_IDENTIFIERS); } + return { path, hunks: [hunk] }; } /** A read window: `count` lines from `start` (1-based). */ diff --git a/apps/vscode-extension/src/core/agent-flow/shellCommandClassifier.ts b/apps/vscode-extension/src/core/agent-flow/shellCommandClassifier.ts index f50ab72d..55171661 100644 --- a/apps/vscode-extension/src/core/agent-flow/shellCommandClassifier.ts +++ b/apps/vscode-extension/src/core/agent-flow/shellCommandClassifier.ts @@ -10,6 +10,10 @@ export interface ClassifiedCommand { kind: AgentStepKind; /** File operands that look like paths (read/search targets). */ paths: string[]; + /** Files a `mv`/`git mv` brings into being (the destination). */ + created?: string[]; + /** Files a `rm`/`git rm`/`mv` takes away. */ + deleted?: string[]; } const READ_COMMANDS = new Set(['cat', 'head', 'tail', 'less', 'more', 'nl', 'bat', 'wc', 'sed', 'awk', 'type', 'get-content']); @@ -65,14 +69,37 @@ export function unwrapShell(words: string[]): string { return words.join(' '); } +/** Every simple command of a pipeline / list, as words. */ +function allSegments(command: string): string[][] { + return command.split(/&&|\|\||;|\|/).map((part) => splitShellWords(part.trim())).filter((w) => w.length > 0); +} + +/** The command name, with `git rm` / `git mv` / `git grep` folded into one word. */ +function commandName(words: string[]): { name: string; args: string[] } { + let name = words[0].replace(/^.*[/\\]/, '').toLowerCase().replace(/\.exe$/, ''); + let args = words.slice(1); + if (name === 'git' && ['grep', 'rm', 'mv'].includes(args[0])) { name = `git-${args[0]}`; args = args.slice(1); } + return { name, args }; +} + +/** What one command did to the files: wrote to them, created them, removed them. */ +interface FileEffects { + written: string[]; + created: string[]; + deleted: string[]; +} + export function classifyShellCommand(command: string): ClassifiedCommand { + const effects: FileEffects = { written: [], created: [], deleted: [] }; + for (const words of allSegments(command)) { collectFileEffects(words, effects); } + if (effects.written.length + effects.created.length + effects.deleted.length > 0) { + return fileChange(effects); + } const words = primarySegment(command); if (words.length === 0) { return { kind: 'execute', paths: [] }; } - let name = words[0].replace(/^.*[/\\]/, '').toLowerCase(); - let args = words.slice(1); - if (name === 'git' && args[0] === 'grep') { name = 'git-grep'; args = args.slice(1); } + const { name, args } = commandName(words); if (name === 'sed' && !args.some((a) => a === '-n' || /^\d+(,\d+)?p$/.test(a))) { return { kind: 'execute', paths: [] }; } @@ -85,23 +112,144 @@ export function classifyShellCommand(command: string): ClassifiedCommand { return { kind: 'execute', paths: [] }; } +function unique(list: string[]): string[] { return [...new Set(list)]; } + +/** A command that changed files is a write: the files it names are its locations. */ +function fileChange(effects: FileEffects): ClassifiedCommand { + const created = unique(effects.created); + const deleted = unique(effects.deleted).filter((path) => !created.includes(path)); + const result: ClassifiedCommand = { kind: 'write', paths: unique([...effects.written, ...deleted, ...created]) }; + if (created.length > 0) { result.created = created; } + if (deleted.length > 0) { result.deleted = deleted; } + return result; +} + +function baseName(path: string): string { + return path.replace(/[/\\]+$/, '').replace(/^.*[/\\]/, ''); +} + +/** A destination that names a folder (`dir/`, `.`, or a last segment without an extension). */ +function isFolderTarget(target: string, sources: number): boolean { + return sources > 1 || /[/\\]$/.test(target) || target === '.' || target === '..' || !baseName(target).includes('.'); +} + +function joinPath(dir: string, name: string): string { + const trimmed = dir.replace(/[/\\]+$/, ''); + return trimmed === '.' ? name : `${trimmed}/${name}`; +} + +/** Plain operands: no flags, no variables, no globs (a glob names no file we can know). */ +function operandsOf(args: string[]): string[] { + const operands: string[] = []; + for (let i = 0; i < args.length; i += 1) { + const word = args[i]; + if (/^\d?>{1,2}|^&>/.test(word)) { if (!/[^>&\d]/.test(word)) { i += 1; } continue; } + if (!word || word.startsWith('-') || word.includes('$') || word.includes('*')) { continue; } + operands.push(word); + } + return operands; +} + +/** `mv a b` / `cp a b` / `mv a b dir`: the destination of each source. */ +function destinations(operands: string[]): { sources: string[]; targets: string[] } | null { + if (operands.length < 2) { return null; } + const target = operands[operands.length - 1]; + const sources = operands.slice(0, -1).filter(looksLikePath); + if (sources.length === 0) { return null; } + const targets = isFolderTarget(target, sources.length) + ? sources.map((source) => joinPath(target, baseName(source))) + : [target]; + return { sources, targets }; +} + +/** `> file`, `>> file`, `>file`, `1> file`, `&> file` (stderr-only `2>` and /dev/null write nothing). */ +function redirectTargets(words: string[]): string[] { + const targets: string[] = []; + for (let i = 0; i < words.length; i += 1) { + const match = /^(\d?|&)(>{1,2})(.*)$/.exec(words[i]); + if (!match || match[1] === '2') { continue; } + const target = match[3] || words[i + 1] || ''; + if (!match[3]) { i += 1; } + if (looksLikePath(target) && !/^\/dev\//.test(target) && target.toLowerCase() !== 'nul') { targets.push(target); } + } + return targets; +} + +const REMOVE_COMMANDS = new Set(['rm', 'git-rm', 'del', 'erase', 'remove-item', 'ri', 'unlink']); +const MOVE_COMMANDS = new Set(['mv', 'git-mv', 'move', 'move-item', 'mi', 'rename-item', 'ren', 'rename']); +const COPY_COMMANDS = new Set(['cp', 'copy', 'copy-item', 'cpi', 'xcopy', 'robocopy']); +const CREATE_COMMANDS = new Set(['touch', 'new-item', 'ni']); +const WRITE_COMMANDS = new Set(['tee', 'set-content', 'add-content', 'out-file', 'sc', 'ac', 'truncate']); + +/** + * Collects what one simple command did to files. Every command that changes + * the tree must be listed here (see docs/agent-flow/timeline.md): a change the + * classifier misses is a change the timeline cannot replay. + */ +function collectFileEffects(words: string[], effects: FileEffects): void { + effects.written.push(...redirectTargets(words)); + const { name, args } = commandName(words); + const operands = operandsOf(args); + const effect = FILE_EFFECTS.find((entry) => entry.names.has(name)); + effect?.apply(operands, args, effects); +} + +/** Each command family and what it does to its operands. */ +const FILE_EFFECTS: Array<{ names: Set; apply: (operands: string[], args: string[], effects: FileEffects) => void }> = [ + { + names: REMOVE_COMMANDS, + // `git rm --cached` only untracks: the file stays on disk. + apply: (operands, args, effects) => { if (!args.includes('--cached')) { effects.deleted.push(...operands.filter(looksLikePath)); } }, + }, + { + names: MOVE_COMMANDS, + apply: (operands, _args, effects) => { + const moved = destinations(operands); + if (moved) { effects.created.push(...moved.targets); effects.deleted.push(...moved.sources); } + }, + }, + { names: COPY_COMMANDS, apply: (operands, _args, effects) => { effects.created.push(...(destinations(operands)?.targets ?? [])); } }, + { names: CREATE_COMMANDS, apply: (operands, _args, effects) => { effects.created.push(...operands.filter(looksLikePath)); } }, + { names: WRITE_COMMANDS, apply: (operands, _args, effects) => { effects.written.push(...operands.filter(looksLikePath)); } }, + { names: new Set(['sed']), apply: (operands, args, effects) => { effects.written.push(...sedInPlaceFiles(operands, args)); } }, +]; + +/** sed -i 's/a/b/' file...: the script is the first operand, or each word after -e. */ +function sedInPlaceFiles(operands: string[], args: string[]): string[] { + if (!args.some((a) => /^-i/.test(a) || a === '--in-place')) { return []; } + const scripts = args.filter((_, i) => i > 0 && (args[i - 1] === '-e' || args[i - 1] === '--expression')); + const files = scripts.length > 0 ? operands.filter((word) => !scripts.includes(word)) : operands.slice(1); + return files.filter(looksLikePath); +} + /** * The files an apply_patch body touches (`*** Update File: a/b.ts`, `*** Add * File:`, `*** Delete File:`), and the lines it adds/removes. */ -export function parseApplyPatch(patch: string): { updated: string[]; added: string[]; deleted: string[]; plus: number; minus: number } { - const result = { updated: [] as string[], added: [] as string[], deleted: [] as string[], plus: 0, minus: 0 }; +type ApplyPatchFiles = { updated: string[]; added: string[]; deleted: string[]; plus: number; minus: number }; + +/** A `*** Update|Add|Delete File:` or `*** Move to:` header; false when the line is not one. */ +function applyPatchHeader(line: string, result: ApplyPatchFiles): boolean { + const header = /^\*\*\* (Update|Add|Delete) File: (.+)$/.exec(line); + if (header) { + const target = header[2].trim(); + const list = { Update: result.updated, Add: result.added, Delete: result.deleted }[header[1] as 'Update' | 'Add' | 'Delete']; + list.push(target); + return true; + } + const move = /^\*\*\* Move to: (.+)$/.exec(line); + if (!move) { return false; } + // The updated file is renamed: its old path goes away. + const from = result.updated.pop(); + if (from !== undefined) { result.deleted.push(from); } + result.added.push(move[1].trim()); + return true; +} + +export function parseApplyPatch(patch: string): ApplyPatchFiles { + const result: ApplyPatchFiles = { updated: [], added: [], deleted: [], plus: 0, minus: 0 }; for (const line of patch.split(/\r?\n/)) { - const header = /^\*\*\* (Update|Add|Delete) File: (.+)$/.exec(line); - if (header) { - const target = header[2].trim(); - if (header[1] === 'Update') { result.updated.push(target); } - else if (header[1] === 'Add') { result.added.push(target); } - else { result.deleted.push(target); } - continue; - } - const move = /^\*\*\* Move to: (.+)$/.exec(line); - if (move) { result.added.push(move[1].trim()); continue; } + if (applyPatchHeader(line, result)) { continue; } if (line.startsWith('+') && !line.startsWith('+++')) { result.plus += 1; } else if (line.startsWith('-') && !line.startsWith('---')) { result.minus += 1; } } diff --git a/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/cityFloors.js b/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/cityFloors.js index 1f61aeac..0987f691 100644 --- a/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/cityFloors.js +++ b/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/cityFloors.js @@ -151,8 +151,9 @@ var target = standing ? 1 : 0; if (c.floorTargets[slot] === target && !c.floorAnims[slot]) { return false; } c.floorTargets[slot] = target; - if (animate && state.motion && target === 1) { - c.floorAnims[slot] = { from: c.floorWeights[slot], to: 1, t: 0, dur: FLOOR_BUILD_MS, file: index }; + if (animate && state.motion) { + // Built: grows from nothing. Removed: shrinks away. + c.floorAnims[slot] = { from: c.floorWeights[slot], to: target, t: 0, dur: FLOOR_BUILD_MS, file: index, ease: target === 1 ? easeOutBack : easeOutCubic }; return true; } delete c.floorAnims[slot]; @@ -219,7 +220,7 @@ Object.keys(c.floorAnims || {}).forEach(function (key) { var anim = c.floorAnims[key]; anim.t = Math.min(1, anim.t + dt / anim.dur); - c.floorWeights[key] = anim.from + (anim.to - anim.from) * easeOutBack(anim.t); + c.floorWeights[key] = Math.max(0, anim.from + (anim.to - anim.from) * (anim.ease || easeOutBack)(anim.t)); moved[anim.file] = true; if (anim.t >= 1) { c.floorWeights[key] = anim.to; delete c.floorAnims[key]; } }); @@ -284,7 +285,8 @@ if (!v.city.hasFloors(index)) { return; } file.floors.forEach(function (floor, k) { var stands = floorStands(file, k, seq); - var builds = animate && current && current.kind === 'write' && floor.bornStep === current.seq; + // A step that builds or removes the function plays it; any other change (a seek) is instant. + var builds = animate && current && current.kind === 'write' && (floor.bornStep === current.seq || floor.diedStep === current.seq); if (stands && v.city.consumeFresh(index, k)) { builds = true; } v.city.setFloorStanding(index, k, stands, builds); }); diff --git a/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/floorModel.js b/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/floorModel.js index 84bd241b..29620ef0 100644 --- a/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/floorModel.js +++ b/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/floorModel.js @@ -19,7 +19,9 @@ name: String(floor.name || 'function'), lineStart: start, lineEnd: Math.max(start, Math.floor(toNumber(floor.lineEnd, start))), - bornStep: Math.floor(toNumber(floor.bornStep, -1)) + bornStep: Math.floor(toNumber(floor.bornStep, -1)), + // The step that removed the function (it stands before it), or -1. + diedStep: floor.diedStep === undefined || floor.diedStep === null ? -1 : Math.floor(toNumber(floor.diedStep, -1)) }; }); } @@ -68,8 +70,10 @@ /** True when floor `floor` of `file` stands after the step with seq `seq` (-Infinity: before the session). */ function floorStands(file, floor, seq) { - var born = file.floors[floor]?.bornStep; - return born === undefined || born < 0 || born <= seq; + var entry = file.floors[floor]; + var born = entry?.bornStep; + var standing = born === undefined || born < 0 || born <= seq; + return standing && !(entry && entry.diedStep >= 0 && entry.diedStep <= seq); } /** The floor's colour when nothing points at it: its own touches, else the building's colour. */ diff --git a/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/modeLifecycle.js b/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/modeLifecycle.js index 1e87f1ec..fb4891b0 100644 --- a/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/modeLifecycle.js +++ b/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/modeLifecycle.js @@ -314,6 +314,8 @@ setToggle: setToggle, getState: debugSnapshot, __testing: { + settleView: settleView, + sceneSnapshot: sceneSnapshot, MODE: MODE, COLORS: COLORS, ROOT_POSITION: ROOT_POSITION, diff --git a/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/seeThrough.js b/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/seeThrough.js index c4090bf3..406ac7f8 100644 --- a/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/seeThrough.js +++ b/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/seeThrough.js @@ -137,7 +137,12 @@ var eye = focus.length ? eyeInCity(v, camera) : null; var moved = !!eye && (!st.eye || Math.hypot(eye.x - st.eye.x, eye.y - st.eye.y, eye.z - st.eye.z) > SEE_THROUGH.eyeEpsilon); var due = timeMs - st.at >= SEE_THROUGH.intervalMs; - if (key === st.key && !(due && (moved || v.city.isAnimating()))) { return; } + var animating = v.city.isAnimating(); + // Heights that just stopped moving get one last pass, so what is faded + // matches the final city and not a frame of its growth. + var settled = !!st.animating && !animating; + st.animating = animating; + if (key === st.key && !settled && !(due && (moved || animating))) { return; } st.at = timeMs; st.key = key; st.eye = eye; diff --git a/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/timelineModel.js b/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/timelineModel.js index 3e867fde..16338a82 100644 --- a/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/timelineModel.js +++ b/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/timelineModel.js @@ -35,6 +35,8 @@ turns: Array.isArray(file?.turns) ? file.turns.map(Number) : [], created: file?.created === true, deleted: file?.deleted === true, + // Did it exist before the session? Older datasets only know "created". + existed: typeof file?.existed === 'boolean' ? file.existed : file?.created !== true, delta: file?.delta && typeof file.delta === 'object' ? { codeLines: toNumber(file.delta.codeLines, 0), complexity: toNumber(file.delta.complexity, 0) } : null, @@ -56,14 +58,9 @@ files.forEach(function (file) { file.h = CITY.minHeight + (file.h - CITY.minHeight) * k; }); } - /** - * Files a step removes, as indexes. `step.deleted` may list indexes or - * paths; without it a file flagged deleted is removed by its last step - * (resolved in stateAt, which knows the file's lastStep). - */ - function deletedFilesOf(step, files, validFile) { - if (!Array.isArray(step.deleted)) { return []; } - return step.deleted.map(function (entry) { + /** Resolves a step's list of files (indexes or paths) to valid indexes. */ + function fileIndexesOf(list, files, validFile) { + return list.map(function (entry) { if (typeof entry === 'number') { return entry; } var path = String(entry || ''); var found = files.find(function (file) { return file.path === path || (path && path.endsWith('/' + file.path)); }); @@ -71,6 +68,22 @@ }).filter(validFile); } + /** + * The lifecycle of the files a step changes: which it brings into being and + * which it removes. Datasets carry them per step (`created`, `deleted`); + * older ones only flag the file, so a created file appears at its first + * step and a deleted one goes at its last. + */ + function createdFilesOf(step, seq, files, validFile) { + if (Array.isArray(step.created)) { return fileIndexesOf(step.created, files, validFile); } + return files.filter(function (file) { return file.created && file.firstStep === seq; }).map(function (file) { return file.index; }); + } + + function deletedFilesOf(step, seq, files, validFile) { + if (Array.isArray(step.deleted)) { return fileIndexesOf(step.deleted, files, validFile); } + return files.filter(function (file) { return file.deleted && file.lastStep === seq; }).map(function (file) { return file.index; }); + } + /** * The workers on the table. actors[0] is always the main agent; a dataset * from before multi-agent tracing gets that one actor synthesized. @@ -105,8 +118,9 @@ var steps = (Array.isArray(raw.steps) ? raw.steps : []) .filter(function (step) { return step && typeof step === 'object'; }) .map(function (step, order) { + var seq = toNumber(step.seq, order); return Object.assign({}, step, { - seq: toNumber(step.seq, order), + seq: seq, turn: Math.max(0, toNumber(step.turn, 0)), kind: String(step.kind || 'other'), status: String(step.status || 'done'), @@ -115,7 +129,8 @@ files: (Array.isArray(step.files) ? step.files : []).map(Number).filter(validFile), actor: Math.max(0, Math.floor(toNumber(step.actor, 0))), spawns: step.spawns === undefined || step.spawns === null ? null : Math.floor(toNumber(step.spawns, -1)), - deletes: deletedFilesOf(step, files, validFile), + creates: createdFilesOf(step, seq, files, validFile), + deletes: deletedFilesOf(step, seq, files, validFile), floors: normalizeStepFloors(step.floors, files) }); }) @@ -281,8 +296,8 @@ if (step.kind === 'write') { step.files.forEach(function (fileIndex) { var file = data.files[fileIndex]; - var creates = file?.created && file.firstStep === step.seq; - if (!readFiles[fileIndex] && !creates) { step.blind.push(fileIndex); } + var creates = step.creates.indexOf(fileIndex) >= 0 || (file && !file.existed && file.firstStep === step.seq); + if (!readFiles[fileIndex] && !creates && step.deletes.indexOf(fileIndex) < 0) { step.blind.push(fileIndex); } }); } if (step.kind === 'read' || step.kind === 'write') { @@ -345,10 +360,11 @@ floors: initialFloorStates(file), touches: { reads: 0, writes: 0, searches: 0, executes: 0 }, turns: [], - created: file.created, + // Lifecycle at the playhead: brought into being by a step of the session, removed by one. + created: false, deleted: false, - visible: !file.created, - height: file.created ? 0 : (entry ? heightForLoc(file, entry.baseLoc) : file.h), + visible: file.existed, + height: !file.existed ? 0 : (entry ? heightForLoc(file, entry.baseLoc) : file.h), lastIndex: -1, lastKind: null, blind: false @@ -367,15 +383,29 @@ var entry = plan[file.index]; var share = entry ? toNumber(entry.shares[step.index], 1) : 1; fileState.height = entry ? heightForLoc(file, entry.baseLoc + entry.totalDelta * share) : file.h; + // Something written to exists: a write after a delete brings the file back. fileState.visible = true; - } - if ((file.deleted && step.seq === file.lastStep && !step.deletes.length) || step.deletes.indexOf(file.index) >= 0) { - fileState.deleted = true; + fileState.deleted = false; } if (step.blind && step.blind.indexOf(file.index) >= 0) { fileState.blind = true; } applyStepToFloors(fileState, step); } + /** + * Creations and removals, after the step's touches: `mv a b` writes both, + * then `a` is gone and `b` is new. Every change to which files exist goes + * through here, so any position of the timeline shows the tree as it was. + */ + function applyLifecycle(files, step) { + step.creates.forEach(function (index) { + var fileState = files[index]; + fileState.created = true; + fileState.visible = true; + fileState.deleted = false; + }); + step.deletes.forEach(function (index) { files[index].deleted = true; }); + } + /** * The city after the step at `stepIndex` (-1: before the session). Pure and * idempotent: per-file touches, turns, visible height and heat category. @@ -394,9 +424,7 @@ for (var f = 0; f < step.files.length; f += 1) { applyStepToFile(files[step.files[f]], data.files[step.files[f]], step, line.writePlan); } - for (var d = 0; d < step.deletes.length; d += 1) { - if (step.files.indexOf(step.deletes[d]) < 0) { files[step.deletes[d]].deleted = true; } - } + applyLifecycle(files, step); } files.forEach(function (fileState) { fileState.heat = heatCategory(fileState); }); return { diff --git a/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/viewController.js b/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/viewController.js index 3373cae8..374dd52c 100644 --- a/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/viewController.js +++ b/apps/vscode-extension/templates/components/codexr/agent-flow/agentFlowRuntime/viewController.js @@ -155,6 +155,67 @@ renderPanel(); } + /** + * Test hook: runs frames (64 ms each) until nothing moves, so a played step + * can be compared with a seek to the same step without waiting on the GPU. + */ + function settleView(maxFrames) { + var v = view; + if (!v) { return 0; } + var frames = 0; + var clock = 1e6; + var moving = function () { + return (v.workers || []).some(function (worker) { return !!worker?.hop; }) || v.city.isAnimating() || v.city.isFloorAnimating() + || Object.keys(v.city.state.fadeTargets).length > 0; + }; + // A few frames at least: the see-through pass runs on its own interval. + while (frames < (maxFrames || 2000) && (frames < 12 || moving())) { + clock += 64; + tickView(clock, 64); + frames += 1; + } + return frames; + } + + function round4(value) { return Math.round(Number(value) * 1e4) / 1e4; } + + /** + * Test hook: everything the city shows that depends on the playhead, as + * plain data. Any position reached by seeking, playing or stepping back must + * give the same snapshot (the timeline invariant, see + * docs/agent-flow/timeline.md). Transient effects (dust, ripples) and the + * worker trail, which keeps the last hops walked, are left out. + */ + function sceneSnapshot() { + var v = view; + if (!v) { return null; } + var c = v.city.state; + var floors = {}; + v.files.forEach(function (file, index) { + if (!v.city.hasFloors(index)) { return; } + floors[index] = v.city.floorInstances(index).map(function (slot) { + // A floor not standing shows no colour. + return [round4(c.floorWeights[slot]), c.floorTargets[slot], c.floorWeights[slot] > 0 ? c.floorColorKeys[slot] : '']; + }); + }); + return { + step: v.cityState?.stepIndex, + heights: Array.prototype.map.call(c.heights, round4), + colors: c.colorKeys.slice(), + demolished: Object.keys(c.demolitions).sort(), + fade: Array.prototype.map.call(c.fade, round4), + floors: floors, + foundations: Object.keys(c.foundations).filter(function (key) { return !!c.foundations[key]; }).sort(), + hazards: Object.keys(c.hazards).filter(function (key) { return !!c.hazards[key]; }).sort(), + scaffolds: Object.keys(c.scaffolds).filter(function (key) { return !!c.scaffolds[key]; }).sort(), + ghosts: Object.keys(v.ghosts || {}).filter(function (key) { return v.ghosts[key].visible; }).sort(), + workers: (v.workers || []).map(function (worker) { + // Where an absent worker last stood is not drawn. + return worker ? { present: !!worker.present, rest: worker.present && worker.rest ? [round4(worker.rest.x), round4(worker.rest.z)] : null } : null; + }) + }; + } + function tickView(time, delta) { var v = view; if (!v || !state.active) { return; } diff --git a/apps/vscode-extension/test/analysis/agentFlowCore.test.cjs b/apps/vscode-extension/test/analysis/agentFlowCore.test.cjs index 2f30dac5..27bfe8c2 100644 --- a/apps/vscode-extension/test/analysis/agentFlowCore.test.cjs +++ b/apps/vscode-extension/test/analysis/agentFlowCore.test.cjs @@ -37,7 +37,7 @@ function tmpDir(prefix) { test('shell commands are read as the step they really are', () => { assert.deepEqual(classifyShellCommand('cat src/a.ts'), { kind: 'read', paths: ['src/a.ts'] }); assert.deepEqual(classifyShellCommand("sed -n '1,80p' src/b.ts"), { kind: 'read', paths: ['src/b.ts'] }); - assert.equal(classifyShellCommand("sed -i 's/a/b/' src/b.ts").kind, 'execute', 'an in-place sed edits, it is not a read'); + assert.deepEqual(classifyShellCommand("sed -i 's/a/b/' src/b.ts"), { kind: 'write', paths: ['src/b.ts'] }, 'an in-place sed edits, it is not a read'); assert.deepEqual(classifyShellCommand('rg -n "fanIn" src'), { kind: 'search', paths: [] }); assert.deepEqual(classifyShellCommand('cd apps/x && cat README.md | head -20'), { kind: 'read', paths: ['README.md'] }); assert.equal(classifyShellCommand('npm test').kind, 'execute'); @@ -213,11 +213,11 @@ test('the sample session builds the dataset the scene draws: turns, touches, pat assert.equal(dataset.schemaVersion, 1); assert.equal(dataset.revision, 7); assert.equal(dataset.rootName, 'vscode-extension'); - assert.equal(dataset.turns.length, 3); - assert.equal(dataset.steps.length, 29); - assert.deepEqual(dataset.turns.map((t) => [t.stepStart, t.stepEnd]), [[0, 13], [14, 23], [24, 28]]); + assert.equal(dataset.turns.length, 4); + assert.equal(dataset.steps.length, 33); + assert.deepEqual(dataset.turns.map((t) => [t.stepStart, t.stepEnd]), [[0, 13], [14, 23], [24, 28], [29, 32]]); assert.deepEqual(dataset.actors.map((a) => [a.id, a.kind, a.parent, a.steps]), [ - ['main', 'main', null, 23], ['tool-sub-a', 'subagent', 0, 3], ['tool-sub-b', 'subagent', 0, 3], + ['main', 'main', null, 27], ['tool-sub-a', 'subagent', 0, 3], ['tool-sub-b', 'subagent', 0, 3], ]); assert.equal(dataset.actors[1].label, 'Map the tooltip code'); assert.equal(dataset.steps[dataset.actors[1].spawnStep].kind, 'delegate'); diff --git a/apps/vscode-extension/test/analysis/agentFlowRuntime.test.cjs b/apps/vscode-extension/test/analysis/agentFlowRuntime.test.cjs index 9bdbb1a2..63e80d5b 100644 --- a/apps/vscode-extension/test/analysis/agentFlowRuntime.test.cjs +++ b/apps/vscode-extension/test/analysis/agentFlowRuntime.test.cjs @@ -117,10 +117,10 @@ test('normalizeDataset rejects non-datasets and drops step file indexes that poi }); test('buildTimeline orders the steps, marks turn boundaries, failures and per-step targets', () => { - assert.equal(timeline.count, 29); - assert.equal(timeline.turns.length, 3); - assert.deepEqual(plain(timeline.turnStarts), [0, 14, 24]); - assert.deepEqual(plain(timeline.turns.map((turn) => [turn.start, turn.end, turn.label])), [[0, 13, 'T1'], [14, 23, 'T2'], [24, 28, 'T3']]); + assert.equal(timeline.count, 33); + assert.equal(timeline.turns.length, 4); + assert.deepEqual(plain(timeline.turnStarts), [0, 14, 24, 29]); + assert.deepEqual(plain(timeline.turns.map((turn) => [turn.start, turn.end, turn.label])), [[0, 13, 'T1'], [14, 23, 'T2'], [24, 28, 'T3'], [29, 32, 'T4']]); assert.deepEqual( plain(timeline.turns[1].counts), { read: 3, search: 0, write: 4, execute: 2, other: 1, failed: 1 }, @@ -156,7 +156,7 @@ test('stateAt is idempotent: a seek is a recomputation, not an undo log', () => // The timeline is optional: stateAt builds it when absent. assert.deepEqual(JSON.parse(JSON.stringify(api.stateAt(clone(sample), 8))), JSON.parse(JSON.stringify(direct))); const clamped = api.stateAt(dataset, 999, timeline); - assert.equal(clamped.stepIndex, 28); + assert.equal(clamped.stepIndex, 32); assert.equal(api.stateAt(dataset, -5, timeline).stepIndex, -1); }); @@ -197,7 +197,7 @@ test('heat categories and colours follow what happened so far', () => { test('actors: workers get lanes, spawn at their delegate step and work in parallel', () => { assert.equal(timeline.actors.length, 3); assert.deepEqual(plain(timeline.actors.map((lane) => [lane.kind, lane.spawnIndex, lane.firstIndex, lane.lastIndex])), - [['main', -1, 0, 28], ['subagent', 1, 3, 8], ['subagent', 2, 4, 10]]); + [['main', -1, 0, 32], ['subagent', 1, 3, 8], ['subagent', 2, 4, 10]]); assert.equal(api.actorColor(0), '#10b981'); assert.equal(api.actorColor(1), api.ACTOR_PALETTE[0]); assert.equal(api.actorColor(6), api.ACTOR_PALETTE[0], 'the palette cycles'); @@ -252,7 +252,7 @@ test('a deleted file turns into a ghost after its last step', () => { test('files outside the analysis are detected from the district chain', () => { const outside = dataset.files.filter((file) => api.isOutsideFile(file, dataset.districts)).map((file) => file.path); - assert.deepEqual(outside.sort(), ['CHANGELOG.md', 'test/analysis/dependencyGraphTooltip.test.cjs']); + assert.deepEqual(outside.sort(), ['CHANGELOG.md', 'test/analysis/dependencyGraphFanTooltip.test.cjs', 'test/analysis/dependencyGraphTooltip.test.cjs']); }); test('colour encodings: verb hues, turn ramp, delta caps, district tones', () => { @@ -328,7 +328,11 @@ test('playback: seeking, stepping and turn jumps never animate backwards', () => playback.nextTurn(); assert.equal(playback.getState().index, 24); playback.nextTurn(); - assert.equal(playback.getState().index, 28, 'past the last turn: the end'); + assert.equal(playback.getState().index, 29); + playback.nextTurn(); + assert.equal(playback.getState().index, 32, 'past the last turn: the end'); + playback.previousTurn(); + assert.equal(playback.getState().index, 29); playback.previousTurn(); assert.equal(playback.getState().index, 24); playback.previousTurn(); @@ -336,7 +340,7 @@ test('playback: seeking, stepping and turn jumps never animate backwards', () => playback.seek(0); playback.previousTurn(); assert.equal(playback.getState().index, -1); - assert.equal(playback.seek(500), 28, 'clamped'); + assert.equal(playback.seek(500), 32, 'clamped'); assert.equal(playback.setSpeed(-3), 1, 'an invalid speed falls back to 1x'); }); @@ -364,17 +368,17 @@ test('playback: follow live waits at the end and animates appended steps', () => test('planLiveUpdate: rebuild on a new layout, animate new steps only when following at the end', () => { const first = api.planLiveUpdate(null, dataset, -1, { followLive: true }); - assert.deepEqual(plain(first), { rebuild: true, index: 28, animateFrom: null }); + assert.deepEqual(plain(first), { rebuild: true, index: 32, animateFrom: null }); const grown = clone(sample); grown.session.live = true; - grown.steps.push({ ...grown.steps[3], seq: 29 }, { ...grown.steps[5], seq: 30 }); + grown.steps.push({ ...grown.steps[3], seq: 33 }, { ...grown.steps[5], seq: 34 }); const next = api.normalizeDataset(grown); - assert.deepEqual(plain(api.planLiveUpdate(dataset, next, 28, { followLive: true })), { rebuild: false, index: 28, animateFrom: 29 }); + assert.deepEqual(plain(api.planLiveUpdate(dataset, next, 32, { followLive: true })), { rebuild: false, index: 32, animateFrom: 33 }); assert.deepEqual(plain(api.planLiveUpdate(dataset, next, 7, { followLive: true })), { rebuild: false, index: 7, animateFrom: null }); - assert.equal(api.planLiveUpdate(dataset, next, 28, { followLive: false }).animateFrom, null); + assert.equal(api.planLiveUpdate(dataset, next, 32, { followLive: false }).animateFrom, null); const moved = clone(grown); moved.files.push({ ...moved.files[0], path: 'src/new.ts', index: moved.files.length }); - assert.equal(api.planLiveUpdate(dataset, api.normalizeDataset(moved), 28, { followLive: true }).rebuild, true); + assert.equal(api.planLiveUpdate(dataset, api.normalizeDataset(moved), 32, { followLive: true }).rebuild, true); assert.equal(api.layoutSignature(dataset), api.layoutSignature(api.normalizeDataset(clone(sample)))); const empty = api.normalizeDataset({ ...clone(sample), steps: [] }); assert.equal(api.planLiveUpdate(null, empty, -1, {}).index, -1); @@ -384,13 +388,13 @@ test('panel text: metric rows, step line and verbs are plain ASCII', () => { const rows = api.metricsModel(dataset); assert.equal(rows.length, 10); const byLabel = Object.fromEntries(rows.map((row) => [row.label, row.value])); - assert.equal(byLabel.Footprint, '13 files'); - assert.equal(byLabel['Read / write / search / run'], '13 / 6 / 4 / 3'); - assert.equal(byLabel['Read/write ratio'], '2.17'); + assert.equal(byLabel.Footprint, '15 files'); + assert.equal(byLabel['Read / write / search / run'], '13 / 9 / 4 / 4'); + assert.equal(byLabel['Read/write ratio'], '1.44'); assert.equal(byLabel['Revisit rate'], '23%'); assert.equal(byLabel['Unread dependents'], '1'); - assert.equal(byLabel['Delta code lines'], '+87'); - assert.equal(byLabel['Delta complexity'], '+10'); + assert.equal(byLabel['Delta code lines'], '-227', 'the tidy-up turn deletes livepanel/charts.js'); + assert.equal(byLabel['Delta complexity'], '-44'); rows.forEach((row) => assert.match(row.label + row.value, /^[\x20-\x7e]*$/)); assert.equal(api.stepLine(timeline, 15), 'Turn 2: Edit tooltipsAndSelection.js'); assert.equal(api.stepLine(timeline, 20), 'Turn 2: npm run test:unit -- dependencyGraphTooltip (failed)'); diff --git a/apps/vscode-extension/test/analysis/agentFlowTimeline.test.cjs b/apps/vscode-extension/test/analysis/agentFlowTimeline.test.cjs new file mode 100644 index 00000000..1597b27c --- /dev/null +++ b/apps/vscode-extension/test/analysis/agentFlowTimeline.test.cjs @@ -0,0 +1,204 @@ +'use strict'; + +/** + * The Agent Flow timeline replays the session: at any step the city must show + * the tree as it was then (docs/agent-flow/timeline.md). These tests cover the + * lifecycle every action reduces to: which files a step creates, deletes or + * moves (shell commands included), whether a file existed before the session, + * floors for functions the session removed, and the runtime's state at a step. + * The scene-level check (seek = play = step back, step by step) is section (f) + * of the Agent Flow harness. + */ +const test = require('node:test'); +const assert = require('node:assert/strict'); +const path = require('node:path'); +const vm = require('node:vm'); + +const projectRoot = path.resolve(__dirname, '..', '..'); +const out = (...parts) => require(path.join(projectRoot, 'out', 'core', 'agent-flow', ...parts)); +const { classifyShellCommand, parseApplyPatch } = out('shellCommandClassifier.js'); +const { parseClaudeCodeTranscript } = out('claudeCodeTranscript.js'); +const { buildAgentFlowDataset } = out('agentFlowBuilder.js'); +const { buildLifecycle } = out('agentFlowLifecycle.js'); +const { touchFromPatch, touchFromCreatedContent, definedFunctionName } = out('lineTouches.js'); +const { readAssembledRuntime } = require(path.join(projectRoot, 'test', 'helpers', 'runtimeAssembly.cjs')); + +const ROOT = '/work/demo'; +const session = { id: 's', source: 'fixture', agent: 'Test', label: 'Test', startedAt: 0, updatedAt: 0, live: false }; + +function runtime() { + const sandbox = { console, Date, Math, JSON, setTimeout() { return 1; }, clearTimeout() {} }; + sandbox.window = sandbox; + vm.runInNewContext(readAssembledRuntime('agent-flow', 'agentFlowRuntime.js'), sandbox, { filename: 'agentFlowRuntime.js' }); + return sandbox.CodeXRAgentFlowRuntime.__testing; +} + +// ---- every command that changes the tree ------------------------------------ + +test('shell commands that remove, move, copy, create or write files say which', () => { + const cases = [ + ['rm src/a.ts', { deleted: ['src/a.ts'] }], + ['git rm -f src/a.ts b.js', { deleted: ['src/a.ts', 'b.js'] }], + ['Remove-Item -Path src/a.ts', { deleted: ['src/a.ts'] }], + ['del src\\a.ts', { deleted: ['src\\a.ts'] }], + ['mv src/a.ts src/b.ts', { created: ['src/b.ts'], deleted: ['src/a.ts'] }], + ['git mv src/a.ts lib/', { created: ['lib/a.ts'], deleted: ['src/a.ts'] }], + ['mv a.ts b.ts dest', { created: ['dest/a.ts', 'dest/b.ts'], deleted: ['a.ts', 'b.ts'] }], + ['Move-Item -Path a.ts -Destination b.ts', { created: ['b.ts'], deleted: ['a.ts'] }], + ['cp src/a.ts src/c.ts', { created: ['src/c.ts'] }], + ['Copy-Item a.ts b.ts', { created: ['b.ts'] }], + ['touch src/new.ts', { created: ['src/new.ts'] }], + ['New-Item -ItemType File -Path x.ts', { created: ['x.ts'] }], + ['mkdir -p lib && git mv src/a.ts lib/a.ts', { created: ['lib/a.ts'], deleted: ['src/a.ts'] }], + ]; + for (const [command, expected] of cases) { + const result = classifyShellCommand(command); + assert.equal(result.kind, 'write', command); + assert.deepEqual(result.created ?? [], expected.created ?? [], `${command}: created`); + assert.deepEqual(result.deleted ?? [], expected.deleted ?? [], `${command}: deleted`); + } + // Writes that keep the file: its building is written, not created. + for (const [command, paths] of [ + ['echo hi > notes.md', ['notes.md']], ['cat a.ts >> b.ts', ['b.ts']], ['npm test 2>&1 | tee out.log', ['out.log']], + ['sed -i -e s/a/b/ src/x.ts src/y.ts', ['src/x.ts', 'src/y.ts']], ['Set-Content -Path a.txt -Value x', ['a.txt']], + ]) { + assert.deepEqual(classifyShellCommand(command), { kind: 'write', paths }, command); + } + // Not a change to the tree. + for (const command of ['git rm --cached a.ts', 'echo x 2> err.log', 'ls > /dev/null', 'npm test', 'rm -rf build']) { + assert.notEqual(classifyShellCommand(command).kind, 'write', command); + } +}); + +test('an apply_patch move removes the old path and adds the new one', () => { + const patch = ['*** Begin Patch', '*** Update File: a.ts', '*** Move to: lib/a.ts', '@@', '-x', '+y', '*** End Patch'].join('\n'); + assert.deepEqual(parseApplyPatch(patch), { updated: [], added: ['lib/a.ts'], deleted: ['a.ts'], plus: 1, minus: 1 }); +}); + +test('a Claude Code Bash rm / git mv becomes a write step that deletes and creates', () => { + const line = (obj) => JSON.stringify({ sessionId: 'x', cwd: ROOT, timestamp: '2026-12-02T10:00:00.000Z', ...obj }); + const bash = (id, command) => line({ type: 'assistant', message: { role: 'assistant', content: [{ type: 'tool_use', id, name: 'Bash', input: { command } }] } }); + const { events } = parseClaudeCodeTranscript([ + line({ type: 'user', message: { role: 'user', content: 'Tidy up' } }), + bash('t1', 'git mv src/old.ts src/new.ts'), + bash('t2', 'rm src/dead.ts'), + ].join('\n')); + const steps = events.filter((event) => event.type === 'step'); + assert.equal(steps[0].kind, 'write'); + assert.deepEqual(steps[0].created, ['src/new.ts']); + assert.deepEqual(steps[0].deleted, ['src/old.ts']); + assert.deepEqual(steps[1].deleted, ['src/dead.ts']); +}); + +// ---- the lifecycle the dataset carries --------------------------------------- + +test('the lifecycle: created, deleted, moved, recreated, and what existed before the session', () => { + const index = new Map([['a.ts', 0], ['b.ts', 1], ['c.ts', 2], ['d.ts', 3]]); + const step = (seq, files, createdPaths = [], deletedPaths = []) => ({ seq, files, createdPaths, deletedPaths }); + const { steps, existed } = buildLifecycle([ + step(0, [0]), // read a: it existed + step(1, [1], ['b.ts']), // b created + step(2, [0, 2], ['c.ts'], ['a.ts']), // a moved to c + step(3, [3], [], ['d.ts']), // d deleted + step(4, [3], ['d.ts']), // d back + ], 4, index); + assert.deepEqual(existed, [true, false, false, true]); + assert.deepEqual(steps.get(2), { created: [2], deleted: [0], moves: [[0, 2]] }); + assert.deepEqual(steps.get(3), { created: [], deleted: [3], moves: [] }); + assert.deepEqual(steps.get(4), { created: [3], deleted: [], moves: [] }); + assert.equal(steps.has(0), false, 'a step that changes no file has no lifecycle'); +}); + +test('the dataset carries the lifecycle per step and per file', () => { + const events = [ + { type: 'turn-start', at: 0, prompt: 'Rename' }, + { type: 'step', at: 1, id: 'r', kind: 'read', locations: [{ path: 'src/a.ts' }] }, + { type: 'step', at: 2, id: 'm', kind: 'write', locations: [{ path: 'src/a.ts' }, { path: 'src/b.ts' }], created: ['src/b.ts'], deleted: ['src/a.ts'] }, + ]; + const { dataset } = buildAgentFlowDataset({ root: ROOT, session, events, baseMetrics: [{ path: 'src/b.ts', loc: 10 }], revision: 1 }); + const a = dataset.files.find((file) => file.path === 'src/a.ts'); + const b = dataset.files.find((file) => file.path === 'src/b.ts'); + assert.equal(a.existed, true); + assert.equal(b.existed, false); + assert.deepEqual(dataset.steps[1].created, [b.index]); + assert.deepEqual(dataset.steps[1].deleted, [a.index]); + assert.deepEqual(dataset.steps[1].moves, [[a.index, b.index]]); + assert.equal(dataset.metrics.blindWrites, 0, 'moving a file is not a blind edit'); +}); + +// ---- floors for functions the session removed --------------------------------- + +test('functions are recognised on the lines that define them, in any language', () => { + for (const [line, name] of [ + ['function render(a) {', 'render'], ['export async function load() {', 'load'], ['def parse(self, text):', 'parse'], + ['fn main() {', 'main'], ['func (s *Server) Start() error {', 'Start'], ['const draw = (x) => {', 'draw'], + [' handle = function (event) {', 'handle'], [' public void close() {', 'close'], [' render(props) {', 'render'], + ]) { + assert.equal(definedFunctionName(line), name, line); + } + for (const line of ['if (x) {', '} else {', 'return f(x);', 'for (const a of b) {', 'call(x);']) { + assert.equal(definedFunctionName(line), null, line); + } + const touch = touchFromPatch('a.js', [{ oldStart: 10, oldLines: 4, newStart: 10, newLines: 1, lines: ['-function old() {', '- return 1;', '-}', ' keep();', '+function fresh() {}'] }]); + assert.deepEqual(touch.hunks[0].removedDefs, [['old', 10]]); + assert.deepEqual(touch.hunks[0].addedDefs, [['fresh', 11]], 'after the kept line'); + assert.deepEqual(touchFromCreatedContent('b.py', 'def a():\n pass\ndef b():\n pass\n').hunks[0].addedDefs, [['a', 1], ['b', 3]]); +}); + +test('a function the agent deleted keeps a floor until the step that deletes it', () => { + const events = [ + { type: 'turn-start', at: 0, prompt: 'Drop old' }, + { type: 'step', at: 1, id: 'r', kind: 'read', locations: [{ path: 'src/a.js' }], lines: [{ path: 'src/a.js', start: 1, end: 30 }] }, + { type: 'step', at: 2, id: 'w', kind: 'write', locations: [{ path: 'src/a.js' }], lines: [{ path: 'src/a.js', hunks: [{ oldStart: 11, oldLines: 5, newStart: 10, newLines: 0, removedAt: [11], removedDefs: [['old', 11]] }], removedIdentifiers: ['old'] }] }, + ]; + const functions = [{ path: `${ROOT}/src/a.js`, functions: [{ name: 'first', lineStart: 1, lineEnd: 10 }, { name: 'last', lineStart: 11, lineEnd: 20 }] }]; + const { dataset } = buildAgentFlowDataset({ root: ROOT, session, events, baseMetrics: [{ path: 'src/a.js', loc: 20 }], revision: 1, functions }); + const floors = dataset.files[0].floors; + assert.deepEqual(floors.map((floor) => floor.name), ['first', 'old', 'last']); + assert.equal(floors[1].bornStep, -1); + assert.equal(floors[1].diedStep, 1); + + const api = runtime(); + const data = api.normalizeDataset(dataset); + const standing = (index) => data.files[0].floors.map((_, k) => api.floorStands(data.files[0], k, index)); + assert.deepEqual(standing(0), [true, true, true], 'before the delete: three floors'); + assert.deepEqual(standing(1), [true, false, true], 'from the delete on: two'); +}); + +// ---- the runtime's state at a step --------------------------------------------- + +test('stateAt shows which files exist at every step: created, deleted, moved and recreated', () => { + const api = runtime(); + const file = (index, path, extra = {}) => ({ index, path, loc: 10, x: index, z: 0, w: 0.1, d: 0.1, h: 0.1, firstStep: -1, lastStep: -1, ...extra }); + const dataset = api.normalizeDataset({ + files: [file(0, 'a.ts', { existed: true }), file(1, 'b.ts', { existed: false, created: true }), file(2, 'c.ts', { existed: true, deleted: true })], + steps: [ + { seq: 0, kind: 'read', files: [0] }, + { seq: 1, kind: 'write', files: [0, 1], created: [1], deleted: [0], moves: [[0, 1]] }, + { seq: 2, kind: 'write', files: [2], deleted: [2] }, + { seq: 3, kind: 'write', files: [2], created: [2] }, + ], + }); + const exists = (index) => api.stateAt(dataset, index).files.map((fileState) => fileState.visible && !fileState.deleted); + assert.deepEqual(exists(-1), [true, false, true], 'before the session'); + assert.deepEqual(exists(0), [true, false, true]); + assert.deepEqual(exists(1), [false, true, true], 'the move'); + assert.deepEqual(exists(2), [false, true, false], 'the delete'); + assert.deepEqual(exists(3), [false, true, true], 'recreated'); + for (let index = -1; index <= 3; index += 1) { + assert.deepEqual(api.stateAt(dataset, index), api.stateAt(dataset, index), 'pure: the same step gives the same state'); + } +}); + +test('a dataset without per-step lifecycle still replays: created at the first step, deleted at the last', () => { + const api = runtime(); + const file = (index, extra) => ({ index, path: `f${index}.ts`, loc: 10, x: index, z: 0, w: 0.1, d: 0.1, h: 0.1, ...extra }); + const dataset = api.normalizeDataset({ + files: [file(0, { created: true, firstStep: 1, lastStep: 1 }), file(1, { deleted: true, firstStep: 0, lastStep: 2 })], + steps: [{ seq: 0, kind: 'read', files: [1] }, { seq: 1, kind: 'write', files: [0] }, { seq: 2, kind: 'write', files: [1] }], + }); + const exists = (index) => api.stateAt(dataset, index).files.map((fileState) => fileState.visible && !fileState.deleted); + assert.deepEqual(exists(0), [false, true]); + assert.deepEqual(exists(1), [true, true]); + assert.deepEqual(exists(2), [true, false]); +}); diff --git a/apps/vscode-extension/test/manual/agent-flow/sample-dataset.json b/apps/vscode-extension/test/manual/agent-flow/sample-dataset.json index db66c3a9..ee20d3a7 100644 --- a/apps/vscode-extension/test/manual/agent-flow/sample-dataset.json +++ b/apps/vscode-extension/test/manual/agent-flow/sample-dataset.json @@ -21,8 +21,8 @@ "parent": null, "spawnStep": null, "firstSeq": 0, - "lastSeq": 28, - "steps": 23 + "lastSeq": 32, + "steps": 27 }, { "index": 1, @@ -54,12 +54,12 @@ "name": "dependencyGraphModels.ts", "dir": "src/core/dependencies", "loc": 69, - "x": 0.3561, - "z": -0.2685, - "w": 0.0732, - "d": 0.0885, + "x": 0.3575, + "z": -0.2739, + "w": 0.0731, + "d": 0.0879, "baseY": 0.028, - "h": 0.2264, + "h": 0.1505, "touches": { "reads": 1, "writes": 0, @@ -77,7 +77,8 @@ "delta": null, "dependents": 1, "language": "TypeScript", - "complexity": 0 + "complexity": 0, + "existed": true }, { "index": 1, @@ -85,12 +86,12 @@ "name": "dependencyGraphService.ts", "dir": "src/core/dependencies", "loc": 328, - "x": 0.2272, - "z": -0.2107, - "w": 0.1689, - "d": 0.2041, + "x": 0.2287, + "z": -0.2164, + "w": 0.1687, + "d": 0.2029, "baseY": 0.028, - "h": 0.4464, + "h": 0.281, "touches": { "reads": 1, "writes": 0, @@ -108,6 +109,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 48, + "existed": true, "floors": [ { "name": "constructor", @@ -213,12 +215,12 @@ "name": "analysisUpdateEvents.ts", "dir": "src/core/history", "loc": 17, - "x": 0.2096, - "z": -0.4183, + "x": 0.2111, + "z": -0.4228, "w": 0.0324, - "d": 0.0391, + "d": 0.0389, "baseY": 0.028, - "h": 0.1325, + "h": 0.0949, "touches": { "reads": 0, "writes": 0, @@ -234,6 +236,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 0, + "existed": true, "floors": [ { "name": "emit", @@ -255,12 +258,12 @@ "name": "gitAnalysisEligibility.ts", "dir": "src/core/history", "loc": 251, - "x": -0.2423, - "z": -0.9447, - "w": 0.1468, - "d": 0.1774, + "x": -0.2404, + "z": -0.9461, + "w": 0.1466, + "d": 0.1763, "baseY": 0.028, - "h": 0.3955, + "h": 0.2508, "touches": { "reads": 0, "writes": 0, @@ -276,6 +279,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 34, + "existed": true, "floors": [ { "name": "constructor", @@ -363,12 +367,12 @@ "name": "gitAnalysisSessionContext.ts", "dir": "src/core/history", "loc": 321, - "x": -0.0082, - "z": -0.5483, - "w": 0.167, - "d": 0.2018, + "x": -0.0065, + "z": -0.552, + "w": 0.1669, + "d": 0.2006, "baseY": 0.028, - "h": 0.442, + "h": 0.2784, "touches": { "reads": 0, "writes": 0, @@ -384,6 +388,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 23, + "existed": true, "floors": [ { "name": "constructor", @@ -453,12 +458,12 @@ "name": "gitAnalysisShared.ts", "dir": "src/core/history", "loc": 116, - "x": 0.3384, - "z": -0.7515, - "w": 0.0973, - "d": 0.1175, + "x": 0.3397, + "z": -0.7541, + "w": 0.0972, + "d": 0.1168, "baseY": 0.028, - "h": 0.2817, + "h": 0.1833, "touches": { "reads": 0, "writes": 0, @@ -474,6 +479,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 16, + "existed": true, "floors": [ { "name": "toPortableRelativePath", @@ -513,12 +519,12 @@ "name": "gitBatchObjectReader.ts", "dir": "src/core/history", "loc": 280, - "x": -0.2467, - "z": -0.7526, - "w": 0.1555, - "d": 0.1879, + "x": -0.2447, + "z": -0.7551, + "w": 0.1553, + "d": 0.1867, "baseY": 0.028, - "h": 0.4155, + "h": 0.2627, "touches": { "reads": 0, "writes": 0, @@ -534,6 +540,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 37, + "existed": true, "floors": [ { "name": "gitBatchError", @@ -645,12 +652,12 @@ "name": "gitLineStream.ts", "dir": "src/core/history", "loc": 80, - "x": 0.3295, - "z": -0.5127, - "w": 0.0795, - "d": 0.096, + "x": 0.3308, + "z": -0.5167, + "w": 0.0794, + "d": 0.0954, "baseY": 0.028, - "h": 0.2407, + "h": 0.159, "touches": { "reads": 0, "writes": 0, @@ -666,6 +673,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 9, + "existed": true, "floors": [ { "name": "streamGitLines", @@ -681,12 +689,12 @@ "name": "gitOfflineEnvironment.ts", "dir": "src/core/history", "loc": 56, - "x": 0.3223, - "z": -0.4158, - "w": 0.0652, - "d": 0.0788, + "x": 0.3237, + "z": -0.4204, + "w": 0.0651, + "d": 0.0783, "baseY": 0.028, - "h": 0.2079, + "h": 0.1396, "touches": { "reads": 0, "writes": 0, @@ -702,6 +710,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 7, + "existed": true, "floors": [ { "name": "gitOfflineEnvironment", @@ -729,12 +738,12 @@ "name": "gitRepositoryService.ts", "dir": "src/core/history", "loc": 626, - "x": -0.0429, - "z": -0.8015, - "w": 0.2364, - "d": 0.2856, + "x": -0.0411, + "z": -0.8037, + "w": 0.2361, + "d": 0.2839, "baseY": 0.028, - "h": 0.6014, + "h": 0.3729, "touches": { "reads": 0, "writes": 0, @@ -750,6 +759,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 105, + "existed": true, "floors": [ { "name": "describeGitFailure", @@ -987,12 +997,12 @@ "name": "gitSnapshotPlan.ts", "dir": "src/core/history", "loc": 108, - "x": 0.3365, - "z": -0.6267, - "w": 0.0936, - "d": 0.1131, + "x": 0.3379, + "z": -0.63, + "w": 0.0935, + "d": 0.1124, "baseY": 0.028, - "h": 0.2732, + "h": 0.1783, "touches": { "reads": 0, "writes": 0, @@ -1008,6 +1018,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 20, + "existed": true, "floors": [ { "name": "relativeToTarget", @@ -1047,12 +1058,12 @@ "name": "gitSnapshotWriter.ts", "dir": "src/core/history", "loc": 148, - "x": 0.2911, - "z": -1.0208, - "w": 0.1109, - "d": 0.134, + "x": 0.2925, + "z": -1.0217, + "w": 0.1108, + "d": 0.1332, "baseY": 0.028, - "h": 0.313, + "h": 0.2019, "touches": { "reads": 0, "writes": 0, @@ -1068,6 +1079,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 14, + "existed": true, "floors": [ { "name": "openBatchBlobSource", @@ -1119,12 +1131,12 @@ "name": "gitTimelineBlobIndex.ts", "dir": "src/core/history", "loc": 316, - "x": -0.1824, - "z": -0.5491, - "w": 0.1657, - "d": 0.2002, + "x": -0.1805, + "z": -0.5529, + "w": 0.1655, + "d": 0.199, "baseY": 0.028, - "h": 0.4389, + "h": 0.2765, "touches": { "reads": 0, "writes": 0, @@ -1140,6 +1152,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 55, + "existed": true, "floors": [ { "name": "parseTreeObject", @@ -1227,12 +1240,12 @@ "name": "gitTimelineSampler.ts", "dir": "src/core/history", "loc": 188, - "x": 0.044, - "z": -1.0299, - "w": 0.126, - "d": 0.1522, + "x": 0.0457, + "z": -1.0308, + "w": 0.1258, + "d": 0.1513, "baseY": 0.028, - "h": 0.3477, + "h": 0.2224, "touches": { "reads": 0, "writes": 0, @@ -1248,6 +1261,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 43, + "existed": true, "floors": [ { "name": "revisionTime", @@ -1287,12 +1301,12 @@ "name": "historicalComparisonModels.ts", "dir": "src/core/history", "loc": 212, - "x": -0.094, - "z": -1.0349, - "w": 0.1343, - "d": 0.1622, + "x": -0.0921, + "z": -1.0357, + "w": 0.1341, + "d": 0.1613, "baseY": 0.028, - "h": 0.3667, + "h": 0.2337, "touches": { "reads": 0, "writes": 0, @@ -1308,6 +1322,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 9, + "existed": true, "floors": [ { "name": "buildBabiaStyleFilePath", @@ -1323,12 +1338,12 @@ "name": "historicalComparisonService.ts", "dir": "src/core/history", "loc": 448, - "x": 0.1825, - "z": -0.8242, - "w": 0.1988, - "d": 0.2401, + "x": 0.184, + "z": -0.8263, + "w": 0.1985, + "d": 0.2387, "baseY": 0.028, - "h": 0.5149, + "h": 0.3216, "touches": { "reads": 0, "writes": 0, @@ -1344,6 +1359,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 62, + "existed": true, "floors": [ { "name": "classifyHistoricalComparisonError", @@ -1521,12 +1537,12 @@ "name": "historicalComparisonStatus.ts", "dir": "src/core/history", "loc": 33, - "x": 0.2578, - "z": -0.4087, + "x": 0.2592, + "z": -0.4133, "w": 0.0482, - "d": 0.0583, + "d": 0.0579, "baseY": 0.028, - "h": 0.1689, + "h": 0.1164, "touches": { "reads": 0, "writes": 0, @@ -1542,6 +1558,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 8, + "existed": true, "floors": [ { "name": "describeComparisonStatus", @@ -1557,12 +1574,12 @@ "name": "projectEvolutionArtifacts.ts", "dir": "src/core/history", "loc": 153, - "x": 0.1713, - "z": -1.022, - "w": 0.1129, - "d": 0.1364, + "x": 0.1729, + "z": -1.0229, + "w": 0.1128, + "d": 0.1356, "baseY": 0.028, - "h": 0.3175, + "h": 0.2046, "touches": { "reads": 0, "writes": 0, @@ -1578,6 +1595,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 24, + "existed": true, "floors": [ { "name": "writeEvolutionRevision", @@ -1635,12 +1653,12 @@ "name": "projectEvolutionService.ts", "dir": "src/core/history", "loc": 401, - "x": 0.1769, - "z": -0.5813, - "w": 0.1876, - "d": 0.2267, + "x": 0.1785, + "z": -0.5849, + "w": 0.1874, + "d": 0.2253, "baseY": 0.028, - "h": 0.4893, + "h": 0.3065, "touches": { "reads": 0, "writes": 0, @@ -1656,6 +1674,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 42, + "existed": true, "floors": [ { "name": "ownExclusion", @@ -1803,12 +1822,12 @@ "name": "projectEvolutionTimeline.ts", "dir": "src/core/history", "loc": 129, - "x": 0.3413, - "z": -0.882, - "w": 0.103, - "d": 0.1245, + "x": 0.3426, + "z": -0.8838, + "w": 0.1029, + "d": 0.1237, "baseY": 0.028, - "h": 0.2948, + "h": 0.1911, "touches": { "reads": 0, "writes": 0, @@ -1824,6 +1843,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 24, + "existed": true, "floors": [ { "name": "workingCopyOf", @@ -1881,12 +1901,12 @@ "name": "agentFlowBridge.ts", "dir": "src/core/server/analysis", "loc": 70, - "x": 0.7993, - "z": -0.3455, - "w": 0.0738, - "d": 0.0892, + "x": 0.9114, + "z": -0.3363, + "w": 0.0737, + "d": 0.0887, "baseY": 0.028, - "h": 0.2277, + "h": 0.1513, "touches": { "reads": 0, "writes": 0, @@ -1902,6 +1922,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 13, + "existed": true, "floors": [ { "name": "constructor", @@ -1953,12 +1974,12 @@ "name": "agentFlowHostWiring.ts", "dir": "src/core/server/analysis", "loc": 104, - "x": 0.6156, - "z": -0.3563, - "w": 0.0917, - "d": 0.1108, + "x": 0.7278, + "z": -0.3471, + "w": 0.0916, + "d": 0.1101, "baseY": 0.028, - "h": 0.2688, + "h": 0.1757, "touches": { "reads": 0, "writes": 0, @@ -1974,6 +1995,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 13, + "existed": true, "floors": [ { "name": "toFloorFunctions", @@ -2013,12 +2035,12 @@ "name": "analysisBridgeReplies.ts", "dir": "src/core/server/analysis", "loc": 91, - "x": 0.7119, - "z": -0.3524, - "w": 0.0853, - "d": 0.103, + "x": 0.8241, + "z": -0.3432, + "w": 0.0852, + "d": 0.1024, "baseY": 0.028, - "h": 0.254, + "h": 0.1669, "touches": { "reads": 0, "writes": 0, @@ -2034,6 +2056,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 9, + "existed": true, "floors": [ { "name": "broadcastFilteredGitReferences", @@ -2061,12 +2084,12 @@ "name": "analysisFeatureHost.ts", "dir": "src/core/server/analysis", "loc": 491, - "x": 0.674, - "z": -0.1655, - "w": 0.2084, - "d": 0.2519, + "x": 0.675, + "z": -0.1574, + "w": 0.2082, + "d": 0.2503, "baseY": 0.028, - "h": 0.5372, + "h": 0.3348, "touches": { "reads": 0, "writes": 0, @@ -2082,6 +2105,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 67, + "existed": true, "floors": [ { "name": "describeHistoricalRefreshFailure", @@ -2247,12 +2271,12 @@ "name": "analysisMessageRouter.ts", "dir": "src/core/server/analysis", "loc": 162, - "x": 0.5037, - "z": -0.1098, - "w": 0.1164, - "d": 0.1406, + "x": 0.5049, + "z": -0.1021, + "w": 0.1163, + "d": 0.1398, "baseY": 0.028, - "h": 0.3256, + "h": 0.2094, "touches": { "reads": 0, "writes": 0, @@ -2268,6 +2292,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 32, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -2325,12 +2350,12 @@ "name": "dependencyGraphBridge.ts", "dir": "src/core/server/analysis", "loc": 442, - "x": 0.8847, - "z": -0.1722, - "w": 0.1974, - "d": 0.2385, + "x": 0.8855, + "z": -0.1641, + "w": 0.1972, + "d": 0.237, "baseY": 0.028, - "h": 0.5117, + "h": 0.3198, "touches": { "reads": 1, "writes": 0, @@ -2348,6 +2373,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 73, + "existed": true, "floors": [ { "name": "sanitizeDependencyScope", @@ -2441,12 +2467,12 @@ "name": "drillDownBridge.ts", "dir": "src/core/server/analysis", "loc": 62, - "x": 0.8786, - "z": -0.3426, - "w": 0.069, - "d": 0.0834, + "x": 0.9905, + "z": -0.3335, + "w": 0.0689, + "d": 0.0829, "baseY": 0.028, - "h": 0.2167, + "h": 0.1448, "touches": { "reads": 0, "writes": 0, @@ -2462,6 +2488,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 10, + "existed": true, "floors": [ { "name": "constructor", @@ -2531,12 +2558,12 @@ "name": "drillDownHostWiring.ts", "dir": "src/core/server/analysis", "loc": 340, - "x": 0.8721, - "z": 0.0606, - "w": 0.1721, - "d": 0.208, + "x": 0.8729, + "z": 0.0673, + "w": 0.1719, + "d": 0.2067, "baseY": 0.028, - "h": 0.4537, + "h": 0.2854, "touches": { "reads": 0, "writes": 0, @@ -2552,6 +2579,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 59, + "existed": true, "floors": [ { "name": "createPythonDrillAnalyzer", @@ -2687,12 +2715,12 @@ "name": "editorNavigation.ts", "dir": "src/core/server/analysis", "loc": 130, - "x": 0.5102, - "z": -0.2521, - "w": 0.1034, - "d": 0.125, + "x": 0.6225, + "z": -0.3541, + "w": 0.1033, + "d": 0.1242, "baseY": 0.028, - "h": 0.2958, + "h": 0.1917, "touches": { "reads": 0, "writes": 0, @@ -2708,6 +2736,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 39, + "existed": true, "floors": [ { "name": "parseOpenInEditorPayload", @@ -2771,12 +2800,12 @@ "name": "historicalComparisonBridge.ts", "dir": "src/core/server/analysis", "loc": 334, - "x": 0.6929, - "z": 0.073, - "w": 0.1705, - "d": 0.2061, + "x": 0.6939, + "z": 0.0796, + "w": 0.1704, + "d": 0.2048, "baseY": 0.028, - "h": 0.4501, + "h": 0.2832, "touches": { "reads": 0, "writes": 0, @@ -2792,6 +2821,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 51, + "existed": true, "floors": [ { "name": "constructor", @@ -2867,12 +2897,12 @@ "name": "projectEvolutionBridge.ts", "dir": "src/core/server/analysis", "loc": 272, - "x": 0.5232, - "z": 0.0625, - "w": 0.1531, - "d": 0.185, + "x": 0.5244, + "z": 0.0692, + "w": 0.153, + "d": 0.1839, "baseY": 0.028, - "h": 0.4101, + "h": 0.2595, "touches": { "reads": 0, "writes": 0, @@ -2888,6 +2918,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 38, + "existed": true, "floors": [ { "name": "constructor", @@ -2951,12 +2982,12 @@ "name": "sceneDrillDown.ts", "dir": "src/core/server/analysis", "loc": 36, - "x": 0.9463, - "z": -0.3315, + "x": 1.0173, + "z": -0.2521, "w": 0.0507, - "d": 0.0613, + "d": 0.0609, "baseY": 0.028, - "h": 0.1746, + "h": 0.1198, "touches": { "reads": 0, "writes": 0, @@ -2972,6 +3003,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 8, + "existed": true, "floors": [ { "name": "drillKindOf", @@ -2989,16 +3021,95 @@ }, { "index": 32, + "path": "src/core/server/analysis/sceneModeControl.ts", + "name": "sceneModeControl.ts", + "dir": "src/core/server/analysis", + "loc": 146, + "x": 0.508, + "z": -0.2476, + "w": 0.11, + "d": 0.1322, + "baseY": 0.028, + "h": 0.2008, + "touches": { + "reads": 0, + "writes": 0, + "searches": 0, + "executes": 0 + }, + "firstStep": -1, + "lastStep": -1, + "turns": [], + "created": false, + "deleted": false, + "delta": null, + "dependents": 0, + "language": "TypeScript", + "complexity": 27, + "existed": true, + "floors": [ + { + "name": "sceneModeOptions", + "lineStart": 54, + "lineEnd": 62, + "bornStep": -1 + }, + { + "name": "sceneModeMessage", + "lineStart": 69, + "lineEnd": 75, + "bornStep": -1 + }, + { + "name": "hostMessageContext", + "lineStart": 88, + "lineEnd": 101, + "bornStep": -1 + }, + { + "name": "replyError", + "lineStart": 104, + "lineEnd": 113, + "bornStep": -1 + }, + { + "name": "switchSceneMode", + "lineStart": 120, + "lineEnd": 142, + "bornStep": -1 + }, + { + "name": "runtimeOf", + "lineStart": 144, + "lineEnd": 147, + "bornStep": -1 + }, + { + "name": "sceneModesOf", + "lineStart": 150, + "lineEnd": 153, + "bornStep": -1 + }, + { + "name": "activateSceneMode", + "lineStart": 156, + "lineEnd": 162, + "bornStep": -1 + } + ] + }, + { + "index": 33, "path": "src/core/server/analysis/sceneReveal.ts", "name": "sceneReveal.ts", "dir": "src/core/server/analysis", "loc": 34, - "x": 1.0041, - "z": -0.3305, - "w": 0.0491, - "d": 0.0593, + "x": 1.0164, + "z": -0.1828, + "w": 0.049, + "d": 0.0589, "baseY": 0.028, - "h": 0.1708, + "h": 0.1176, "touches": { "reads": 0, "writes": 0, @@ -3014,6 +3125,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 7, + "existed": true, "floors": [ { "name": "scenePathOf", @@ -3030,17 +3142,17 @@ ] }, { - "index": 33, + "index": 34, "path": "src/core/charts/chartModels.ts", "name": "chartModels.ts", "dir": "src/core/charts", "loc": 83, - "x": 0.789, - "z": -0.5942, - "w": 0.0811, - "d": 0.098, + "x": 0.7899, + "z": -0.5977, + "w": 0.081, + "d": 0.0974, "baseY": 0.028, - "h": 0.2444, + "h": 0.1612, "touches": { "reads": 0, "writes": 0, @@ -3056,6 +3168,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 14, + "existed": true, "floors": [ { "name": "isDimensionOff", @@ -3072,17 +3185,17 @@ ] }, { - "index": 34, + "index": 35, "path": "src/core/charts/chartPresentation.ts", "name": "chartPresentation.ts", "dir": "src/core/charts", "loc": 226, - "x": 0.9068, - "z": -0.5593, - "w": 0.1389, - "d": 0.1678, + "x": 0.9076, + "z": -0.563, + "w": 0.1387, + "d": 0.1668, "baseY": 0.028, - "h": 0.3773, + "h": 0.24, "touches": { "reads": 0, "writes": 0, @@ -3098,6 +3211,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 12, + "existed": true, "floors": [ { "name": "getChartPresentationProfile", @@ -3114,17 +3228,17 @@ ] }, { - "index": 35, + "index": 36, "path": "src/core/charts/chartRegistry.ts", "name": "chartRegistry.ts", "dir": "src/core/charts", "loc": 81, - "x": 0.7006, - "z": -0.5949, - "w": 0.08, - "d": 0.0967, + "x": 0.7016, + "z": -0.5984, + "w": 0.0799, + "d": 0.0961, "baseY": 0.028, - "h": 0.2419, + "h": 0.1598, "touches": { "reads": 0, "writes": 0, @@ -3140,6 +3254,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 5, + "existed": true, "floors": [ { "name": "constructor", @@ -3210,17 +3325,17 @@ ] }, { - "index": 36, + "index": 37, "path": "src/core/charts/getVisualizationConfiguration.ts", "name": "getVisualizationConfiguration.ts", "dir": "src/core/charts", "loc": 47, - "x": 0.6232, - "z": -0.6075, - "w": 0.0591, - "d": 0.0714, + "x": 0.6243, + "z": -0.611, + "w": 0.059, + "d": 0.0709, "baseY": 0.028, - "h": 0.1938, + "h": 0.1312, "touches": { "reads": 0, "writes": 0, @@ -3236,6 +3351,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 3, + "existed": true, "floors": [ { "name": "getVisualizationConfiguration", @@ -3246,17 +3362,17 @@ ] }, { - "index": 37, + "index": 38, "path": "src/core/charts/processing/dimensionValidator.ts", "name": "dimensionValidator.ts", "dir": "src/core/charts/processing", "loc": 130, - "x": 0.5881, - "z": -0.7913, - "w": 0.1034, - "d": 0.125, + "x": 0.5892, + "z": -0.7936, + "w": 0.1033, + "d": 0.1242, "baseY": 0.042, - "h": 0.2958, + "h": 0.1917, "touches": { "reads": 0, "writes": 0, @@ -3272,6 +3388,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 25, + "existed": true, "floors": [ { "name": "checkRequiredDimensionsMapped", @@ -3318,17 +3435,17 @@ ] }, { - "index": 38, + "index": 39, "path": "src/core/charts/processing/mappingUiSchema.ts", "name": "mappingUiSchema.ts", "dir": "src/core/charts/processing", "loc": 254, - "x": 0.8734, - "z": -0.8037, - "w": 0.1477, - "d": 0.1785, + "x": 0.8741, + "z": -0.8059, + "w": 0.1476, + "d": 0.1774, "baseY": 0.042, - "h": 0.3976, + "h": 0.2521, "touches": { "reads": 0, "writes": 0, @@ -3344,6 +3461,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 33, + "existed": true, "floors": [ { "name": "buildSchemaFieldPools", @@ -3396,17 +3514,17 @@ ] }, { - "index": 39, + "index": 40, "path": "src/core/charts/processing/placeholders/createChart.ts", "name": "createChart.ts", "dir": "src/core/charts/processing/placeholders", "loc": 235, - "x": 0.5613, - "z": -0.9761, - "w": 0.1418, - "d": 0.1713, + "x": 0.5624, + "z": -0.9773, + "w": 0.1416, + "d": 0.1703, "baseY": 0.056, - "h": 0.384, + "h": 0.244, "touches": { "reads": 0, "writes": 0, @@ -3422,6 +3540,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 41, + "existed": true, "floors": [ { "name": "escapeChartTitleForComponent", @@ -3522,17 +3641,17 @@ ] }, { - "index": 40, + "index": 41, "path": "src/core/charts/processing/placeholders/createStructure.ts", "name": "createStructure.ts", "dir": "src/core/charts/processing/placeholders", "loc": 197, - "x": 0.7046, - "z": -0.9837, - "w": 0.1292, - "d": 0.1561, + "x": 0.7056, + "z": -0.9849, + "w": 0.129, + "d": 0.1551, "baseY": 0.056, - "h": 0.3549, + "h": 0.2268, "touches": { "reads": 0, "writes": 0, @@ -3548,6 +3667,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 24, + "existed": true, "floors": [ { "name": "createStructuralPlaceholders", @@ -3624,17 +3744,17 @@ ] }, { - "index": 41, + "index": 42, "path": "src/core/charts/processing/templateHTMLProcessor.ts", "name": "templateHTMLProcessor.ts", "dir": "src/core/charts/processing", "loc": 242, - "x": 0.7197, - "z": -0.7668, - "w": 0.144, - "d": 0.174, + "x": 0.7206, + "z": -0.7693, + "w": 0.1438, + "d": 0.1729, "baseY": 0.042, - "h": 0.3891, + "h": 0.247, "touches": { "reads": 0, "writes": 0, @@ -3650,6 +3770,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 28, + "existed": true, "floors": [ { "name": "processHTMLTemplate", @@ -3708,17 +3829,17 @@ ] }, { - "index": 42, + "index": 43, "path": "src/core/charts/processing/templateProcessor.ts", "name": "templateProcessor.ts", "dir": "src/core/charts/processing", "loc": 276, - "x": 0.8767, - "z": -0.9957, - "w": 0.1543, - "d": 0.1865, + "x": 0.8774, + "z": -0.9967, + "w": 0.1541, + "d": 0.1853, "baseY": 0.042, - "h": 0.4128, + "h": 0.2611, "touches": { "reads": 0, "writes": 0, @@ -3734,6 +3855,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 37, + "existed": true, "floors": [ { "name": "generateXRVisualization", @@ -3798,17 +3920,17 @@ ] }, { - "index": 43, + "index": 44, "path": "src/core/charts/settings/settingsAccessors.ts", "name": "settingsAccessors.ts", "dir": "src/core/charts/settings", "loc": 145, - "x": 1.1931, - "z": -0.8777, - "w": 0.1097, - "d": 0.1325, + "x": 1.1935, + "z": -0.8795, + "w": 0.1096, + "d": 0.1317, "baseY": 0.042, - "h": 0.3102, + "h": 0.2002, "touches": { "reads": 0, "writes": 0, @@ -3824,6 +3946,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 14, + "existed": true, "floors": [ { "name": "initializeSettingsAccessors", @@ -3894,17 +4017,17 @@ ] }, { - "index": 44, + "index": 45, "path": "src/core/charts/settings/settingsFile.ts", "name": "settingsFile.ts", "dir": "src/core/charts/settings", "loc": 25, - "x": 1.1099, - "z": -0.905, - "w": 0.041, - "d": 0.0495, + "x": 1.1105, + "z": -0.9066, + "w": 0.0409, + "d": 0.0492, "baseY": 0.042, - "h": 0.1522, + "h": 0.1065, "touches": { "reads": 0, "writes": 0, @@ -3920,6 +4043,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 0, + "existed": true, "floors": [ { "name": "getVisualizationConfigDirectory", @@ -3936,17 +4060,17 @@ ] }, { - "index": 45, + "index": 46, "path": "src/core/charts/settings/settingsModel.ts", "name": "settingsModel.ts", "dir": "src/core/charts/settings", "loc": 151, - "x": 1.1943, - "z": -1.0212, - "w": 0.1121, - "d": 0.1354, + "x": 1.1947, + "z": -1.0221, + "w": 0.112, + "d": 0.1346, "baseY": 0.042, - "h": 0.3157, + "h": 0.2035, "touches": { "reads": 0, "writes": 0, @@ -3962,6 +4086,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 12, + "existed": true, "floors": [ { "name": "isValidHexColor", @@ -3972,17 +4097,17 @@ ] }, { - "index": 46, + "index": 47, "path": "src/core/charts/settings/settingsStorage.ts", "name": "settingsStorage.ts", "dir": "src/core/charts/settings", "loc": 182, - "x": 1.0685, - "z": -1.0141, - "w": 0.1238, - "d": 0.1496, + "x": 1.0691, + "z": -1.015, + "w": 0.1237, + "d": 0.1487, "baseY": 0.042, - "h": 0.3427, + "h": 0.2195, "touches": { "reads": 0, "writes": 0, @@ -3998,6 +4123,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 20, + "existed": true, "floors": [ { "name": "constructor", @@ -4074,17 +4200,17 @@ ] }, { - "index": 47, + "index": 48, "path": "src/core/charts/templateCharts.ts", "name": "templateCharts.ts", "dir": "src/core/charts", "loc": 467, - "x": 1.0857, - "z": -0.6521, - "w": 0.2031, - "d": 0.2454, + "x": 1.0862, + "z": -0.6552, + "w": 0.2029, + "d": 0.2439, "baseY": 0.028, - "h": 0.5249, + "h": 0.3276, "touches": { "reads": 0, "writes": 0, @@ -4100,6 +4226,7 @@ "dependents": 0, "language": "TypeScript", "complexity": 29, + "existed": true, "floors": [ { "name": "buildChartEntityHtml", @@ -4110,17 +4237,17 @@ ] }, { - "index": 48, + "index": 49, "path": "src/core/charts/xrFieldModels.ts", "name": "xrFieldModels.ts", "dir": "src/core/charts", "loc": 32, - "x": 0.5621, - "z": -0.6146, - "w": 0.0474, - "d": 0.0572, + "x": 0.5632, + "z": -0.618, + "w": 0.0473, + "d": 0.0569, "baseY": 0.028, - "h": 0.1669, + "h": 0.1153, "touches": { "reads": 0, "writes": 0, @@ -4135,20 +4262,21 @@ "delta": null, "dependents": 0, "language": "TypeScript", - "complexity": 1 + "complexity": 1, + "existed": true }, { - "index": 49, + "index": 50, "path": "templates/components/codexr/dependency-graph/dependencyGraphRuntime/componentCore.js", "name": "componentCore.js", "dir": "templates/components/codexr/dependency-graph/dependencyGraphRuntime", "loc": 459, - "x": 0.0064, - "z": 0.8908, - "w": 0.2013, - "d": 0.2432, + "x": 0.0081, + "z": 0.8925, + "w": 0.2011, + "d": 0.2417, "baseY": 0.042, - "h": 0.5207, + "h": 0.3251, "touches": { "reads": 1, "writes": 0, @@ -4166,6 +4294,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 95, + "existed": true, "floors": [ { "name": "registerComponent", @@ -4176,17 +4305,17 @@ ] }, { - "index": 50, + "index": 51, "path": "templates/components/codexr/dependency-graph/dependencyGraphRuntime/configAndStatus.js", "name": "configAndStatus.js", "dir": "templates/components/codexr/dependency-graph/dependencyGraphRuntime", "loc": 232, - "x": -0.0368, - "z": 0.4062, - "w": 0.1408, - "d": 0.1702, + "x": -0.0351, + "z": 0.4108, + "w": 0.1407, + "d": 0.1691, "baseY": 0.042, - "h": 0.3818, + "h": 0.2427, "touches": { "reads": 0, "writes": 0, @@ -4202,6 +4331,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 40, + "existed": true, "floors": [ { "name": "registerCodeXRDependencyGraphRuntime", @@ -4212,38 +4342,40 @@ ] }, { - "index": 51, + "index": 52, "path": "templates/components/codexr/dependency-graph/dependencyGraphRuntime/datasetProjection.js", "name": "datasetProjection.js", "dir": "templates/components/codexr/dependency-graph/dependencyGraphRuntime", - "loc": 523, - "x": -0.0001, - "z": 0.6302, - "w": 0.2143, - "d": 0.2589, + "loc": 518, + "x": 0.0016, + "z": 0.6335, + "w": 0.2141, + "d": 0.2574, "baseY": 0.042, - "h": 0.5531, + "h": 0.3428, "touches": { "reads": 1, - "writes": 1, + "writes": 2, "searches": 1, "executes": 0 }, "firstStep": 12, - "lastStep": 16, + "lastStep": 29, "turns": [ 0, - 1 + 1, + 3 ], "created": false, "deleted": false, "delta": { - "codeLines": 5, + "codeLines": 0, "complexity": 1 }, "dependents": 1, "language": "JavaScript", "complexity": 143, + "existed": true, "floors": [ { "name": "getNormalVisualizationRoots", @@ -4385,36 +4517,37 @@ }, { "name": "renderBudgetNotice", - "lineStart": 478, - "lineEnd": 482, - "bornStep": -1 + "lineStart": 483, + "lineEnd": 483, + "bornStep": -1, + "diedStep": 29 }, { "name": "filteredDataset", "lineStart": 483, - "lineEnd": 510, + "lineEnd": 505, "bornStep": -1 }, { "name": "publishState", - "lineStart": 512, - "lineEnd": 533, + "lineStart": 507, + "lineEnd": 528, "bornStep": -1 } ] }, { - "index": 52, + "index": 53, "path": "templates/components/codexr/dependency-graph/dependencyGraphRuntime/edgeEncoding.js", "name": "edgeEncoding.js", "dir": "templates/components/codexr/dependency-graph/dependencyGraphRuntime", "loc": 89, - "x": 0.0835, - "z": 0.4404, - "w": 0.0842, - "d": 0.1018, + "x": 0.0852, + "z": 0.4448, + "w": 0.0841, + "d": 0.1012, "baseY": 0.042, - "h": 0.2517, + "h": 0.1655, "touches": { "reads": 0, "writes": 0, @@ -4430,6 +4563,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 23, + "existed": true, "floors": [ { "name": "intensityBucket", @@ -4452,17 +4586,17 @@ ] }, { - "index": 53, + "index": 54, "path": "templates/components/codexr/dependency-graph/dependencyGraphRuntime/edgesAndHighlights.js", "name": "edgesAndHighlights.js", "dir": "templates/components/codexr/dependency-graph/dependencyGraphRuntime", "loc": 362, - "x": -0.2041, - "z": 0.6523, - "w": 0.1779, - "d": 0.2149, + "x": -0.2021, + "z": 0.6554, + "w": 0.1777, + "d": 0.2136, "baseY": 0.042, - "h": 0.4669, + "h": 0.2932, "touches": { "reads": 1, "writes": 0, @@ -4480,6 +4614,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 80, + "existed": true, "floors": [ { "name": "disposeEdgeBatches", @@ -4580,17 +4715,17 @@ ] }, { - "index": 54, + "index": 55, "path": "templates/components/codexr/dependency-graph/dependencyGraphRuntime/flowAndAxes.js", "name": "flowAndAxes.js", "dir": "templates/components/codexr/dependency-graph/dependencyGraphRuntime", "loc": 315, - "x": -0.1978, - "z": 0.4354, - "w": 0.1654, - "d": 0.1998, + "x": -0.1959, + "z": 0.4398, + "w": 0.1652, + "d": 0.1986, "baseY": 0.042, - "h": 0.4382, + "h": 0.2762, "touches": { "reads": 0, "writes": 0, @@ -4606,6 +4741,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 68, + "existed": true, "floors": [ { "name": "ensureFlowLayer", @@ -4676,17 +4812,17 @@ ] }, { - "index": 55, + "index": 56, "path": "templates/components/codexr/dependency-graph/dependencyGraphRuntime/scalesAndControls.js", "name": "scalesAndControls.js", "dir": "templates/components/codexr/dependency-graph/dependencyGraphRuntime", "loc": 497, - "x": 0.2198, - "z": 0.6275, - "w": 0.2098, - "d": 0.2534, + "x": 0.2213, + "z": 0.6308, + "w": 0.2095, + "d": 0.2519, "baseY": 0.042, - "h": 0.5402, + "h": 0.3366, "touches": { "reads": 1, "writes": 0, @@ -4704,6 +4840,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 166, + "existed": true, "floors": [ { "name": "openDirectory", @@ -4822,17 +4959,17 @@ ] }, { - "index": 56, + "index": 57, "path": "templates/components/codexr/dependency-graph/dependencyGraphRuntime/tooltipsAndSelection.js", "name": "tooltipsAndSelection.js", "dir": "templates/components/codexr/dependency-graph/dependencyGraphRuntime", "loc": 464, - "x": -0.202, - "z": 0.89, - "w": 0.1999, - "d": 0.2415, + "x": -0.2001, + "z": 0.8917, + "w": 0.1997, + "d": 0.2401, "baseY": 0.042, - "h": 0.5233, + "h": 0.3266, "touches": { "reads": 3, "writes": 2, @@ -4855,6 +4992,7 @@ "dependents": 2, "language": "JavaScript", "complexity": 171, + "existed": true, "floors": [ { "name": "selectionKey", @@ -5033,17 +5171,17 @@ ] }, { - "index": 57, + "index": 58, "path": "templates/components/codexr/dependency-graph/dependencyGraphRuntime/viewLifecycle.js", "name": "viewLifecycle.js", "dir": "templates/components/codexr/dependency-graph/dependencyGraphRuntime", "loc": 469, - "x": 0.2167, - "z": 0.8867, - "w": 0.2035, - "d": 0.2459, + "x": 0.2182, + "z": 0.8884, + "w": 0.2033, + "d": 0.2445, "baseY": 0.042, - "h": 0.5259, + "h": 0.3282, "touches": { "reads": 0, "writes": 0, @@ -5059,6 +5197,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 121, + "existed": true, "floors": [ { "name": "renderCurrentGraphIfReady", @@ -5237,17 +5376,17 @@ ] }, { - "index": 58, + "index": 59, "path": "templates/components/codexr/project-evolution/projectEvolutionRuntime/declarativePipeline.js", "name": "declarativePipeline.js", "dir": "templates/components/codexr/project-evolution/projectEvolutionRuntime", "loc": 547, - "x": 0.6492, - "z": 0.6186, - "w": 0.2204, - "d": 0.2664, + "x": 0.6502, + "z": 0.6219, + "w": 0.2202, + "d": 0.2648, "baseY": 0.042, - "h": 0.5648, + "h": 0.3512, "touches": { "reads": 0, "writes": 0, @@ -5263,6 +5402,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 119, + "existed": true, "floors": [ { "name": "ensureEvolutionRoot", @@ -5453,17 +5593,17 @@ ] }, { - "index": 59, + "index": 60, "path": "templates/components/codexr/project-evolution/projectEvolutionRuntime/frameApplication.js", "name": "frameApplication.js", "dir": "templates/components/codexr/project-evolution/projectEvolutionRuntime", "loc": 274, - "x": 0.4543, - "z": 0.6589, - "w": 0.1537, - "d": 0.1857, + "x": 0.4555, + "z": 0.662, + "w": 0.1536, + "d": 0.1846, "baseY": 0.042, - "h": 0.4114, + "h": 0.2603, "touches": { "reads": 0, "writes": 0, @@ -5479,6 +5619,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 78, + "existed": true, "floors": [ { "name": "handleFrameApplied", @@ -5591,17 +5732,17 @@ ] }, { - "index": 60, + "index": 61, "path": "templates/components/codexr/project-evolution/projectEvolutionRuntime/framePlaybackEngine.js", "name": "framePlaybackEngine.js", "dir": "templates/components/codexr/project-evolution/projectEvolutionRuntime", "loc": 355, - "x": 0.6714, - "z": 0.8676, - "w": 0.1761, - "d": 0.2127, + "x": 0.6724, + "z": 0.8695, + "w": 0.1759, + "d": 0.2115, "baseY": 0.042, - "h": 0.4628, + "h": 0.2907, "touches": { "reads": 0, "writes": 0, @@ -5617,6 +5758,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 87, + "existed": true, "floors": [ { "name": "bridgeUrl", @@ -5693,17 +5835,17 @@ ] }, { - "index": 61, + "index": 62, "path": "templates/components/codexr/project-evolution/projectEvolutionRuntime/offlineGitData.js", "name": "offlineGitData.js", "dir": "templates/components/codexr/project-evolution/projectEvolutionRuntime", "loc": 167, - "x": 0.7341, - "z": 0.4044, - "w": 0.1183, - "d": 0.1429, + "x": 0.735, + "z": 0.4091, + "w": 0.1182, + "d": 0.1421, "baseY": 0.042, - "h": 0.33, + "h": 0.212, "touches": { "reads": 0, "writes": 0, @@ -5719,6 +5861,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 59, + "existed": true, "floors": [ { "name": "getOfflineGitData", @@ -5777,17 +5920,17 @@ ] }, { - "index": 62, + "index": 63, "path": "templates/components/codexr/project-evolution/projectEvolutionRuntime/overlayAndPanel.js", "name": "overlayAndPanel.js", "dir": "templates/components/codexr/project-evolution/projectEvolutionRuntime", "loc": 267, - "x": 0.4553, - "z": 0.4649, - "w": 0.1516, - "d": 0.1832, + "x": 0.4566, + "z": 0.4692, + "w": 0.1515, + "d": 0.1821, "baseY": 0.042, - "h": 0.4066, + "h": 0.2574, "touches": { "reads": 0, "writes": 0, @@ -5803,6 +5946,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 38, + "existed": true, "floors": [ { "name": "ensurePlaybackOverlay", @@ -5873,17 +6017,17 @@ ] }, { - "index": 63, + "index": 64, "path": "templates/components/codexr/project-evolution/projectEvolutionRuntime/playbackControlsAndMessages.js", "name": "playbackControlsAndMessages.js", "dir": "templates/components/codexr/project-evolution/projectEvolutionRuntime", "loc": 344, - "x": 0.4889, - "z": 0.8659, - "w": 0.1732, - "d": 0.2093, + "x": 0.4901, + "z": 0.8677, + "w": 0.173, + "d": 0.208, "baseY": 0.042, - "h": 0.4562, + "h": 0.2868, "touches": { "reads": 0, "writes": 0, @@ -5899,6 +6043,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 112, + "existed": true, "floors": [ { "name": "render", @@ -6017,17 +6162,17 @@ ] }, { - "index": 64, + "index": 65, "path": "templates/components/codexr/project-evolution/projectEvolutionRuntime/stateAndUiAtoms.js", "name": "stateAndUiAtoms.js", "dir": "templates/components/codexr/project-evolution/projectEvolutionRuntime", "loc": 194, - "x": 0.6031, - "z": 0.3985, - "w": 0.1281, - "d": 0.1548, + "x": 0.6041, + "z": 0.4032, + "w": 0.128, + "d": 0.1539, "baseY": 0.042, - "h": 0.3525, + "h": 0.2253, "touches": { "reads": 0, "writes": 0, @@ -6043,6 +6188,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 37, + "existed": true, "floors": [ { "name": "registerCodeXRProjectEvolutionRuntime", @@ -6053,17 +6199,17 @@ ] }, { - "index": 65, + "index": 66, "path": "templates/components/codexr/project-evolution/projectEvolutionRuntime/timelineAndSources.js", "name": "timelineAndSources.js", "dir": "templates/components/codexr/project-evolution/projectEvolutionRuntime", "loc": 448, - "x": 0.8667, - "z": 0.6055, - "w": 0.1988, - "d": 0.2401, + "x": 0.8675, + "z": 0.6089, + "w": 0.1985, + "d": 0.2387, "baseY": 0.042, - "h": 0.5149, + "h": 0.3216, "touches": { "reads": 0, "writes": 0, @@ -6079,6 +6225,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 92, + "existed": true, "floors": [ { "name": "unwrapPayload", @@ -6245,17 +6392,17 @@ ] }, { - "index": 66, + "index": 67, "path": "templates/components/codexr/project-evolution/projectEvolutionRuntime/transportAndRegistration.js", "name": "transportAndRegistration.js", "dir": "templates/components/codexr/project-evolution/projectEvolutionRuntime", "loc": 378, - "x": 0.8583, - "z": 0.845, - "w": 0.1819, - "d": 0.2198, + "x": 0.8591, + "z": 0.8469, + "w": 0.1817, + "d": 0.2185, "baseY": 0.042, - "h": 0.4762, + "h": 0.2987, "touches": { "reads": 0, "writes": 0, @@ -6271,6 +6418,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 86, + "existed": true, "floors": [ { "name": "play", @@ -6371,17 +6519,51 @@ ] }, { - "index": 67, + "index": 68, "path": "templates/components/livepanel/charts.js", "name": "charts.js", "dir": "templates/components/livepanel", "loc": 367, - "x": 1.4548, - "z": 0.4022, - "w": 0.1791, - "d": 0.2165, + "x": 1.455, + "z": 0.4069, + "w": 0.179, + "d": 0.2152, + "baseY": 0.028, + "h": 0.2949, + "touches": { + "reads": 0, + "writes": 1, + "searches": 0, + "executes": 0 + }, + "firstStep": 31, + "lastStep": 31, + "turns": [ + 3 + ], + "created": false, + "deleted": true, + "delta": { + "codeLines": -367, + "complexity": -54 + }, + "dependents": 0, + "language": "JavaScript", + "complexity": 54, + "existed": true + }, + { + "index": 69, + "path": "templates/components/livepanel/dataTable.js", + "name": "dataTable.js", + "dir": "templates/components/livepanel", + "loc": 303, + "x": 1.4464, + "z": 0.6212, + "w": 0.1619, + "d": 0.1946, "baseY": 0.028, - "h": 0.4699, + "h": 0.2716, "touches": { "reads": 0, "writes": 0, @@ -6396,204 +6578,79 @@ "delta": null, "dependents": 0, "language": "JavaScript", - "complexity": 54, + "complexity": 79, + "existed": true, "floors": [ { - "name": "codexrSeriesClass", - "lineStart": 20, - "lineEnd": 22, + "name": "escapeHtml", + "lineStart": 25, + "lineEnd": 29, "bornStep": -1 }, { - "name": "(anonymous)", - "lineStart": 42, - "lineEnd": 46, + "name": "normalizeDataTableColumn", + "lineStart": 44, + "lineEnd": 61, "bornStep": -1 }, { - "name": "codexrFormatShare", - "lineStart": 72, - "lineEnd": 77, + "name": "numericColumn", + "lineStart": 74, + "lineEnd": 82, "bornStep": -1 }, { - "name": "codexrDefaultValueFormat", - "lineStart": 79, - "lineEnd": 81, + "name": "formatDataTableValue", + "lineStart": 85, + "lineEnd": 87, "bornStep": -1 }, { "name": "constructor", - "lineStart": 90, - "lineEnd": 99, + "lineStart": 102, + "lineEnd": 129, "bornStep": -1 }, { - "name": "setData", - "lineStart": 101, - "lineEnd": 118, + "name": "setRows", + "lineStart": 132, + "lineEnd": 135, "bornStep": -1 }, { - "name": "renderEmpty", - "lineStart": 120, - "lineEnd": 125, + "name": "render", + "lineStart": 138, + "lineEnd": 144, "bornStep": -1 }, { - "name": "buildSvg", - "lineStart": 127, - "lineEnd": 183, + "name": "getVisibleRows", + "lineStart": 147, + "lineEnd": 162, "bornStep": -1 }, { - "name": "buildLegend", - "lineStart": 185, - "lineEnd": 210, + "name": "_columnByKey", + "lineStart": 166, + "lineEnd": 168, "bornStep": -1 }, { - "name": "attachHover", - "lineStart": 212, - "lineEnd": 225, + "name": "_rowMatchesTerm", + "lineStart": 170, + "lineEnd": 177, "bornStep": -1 }, { - "name": "setHighlight", - "lineStart": 227, - "lineEnd": 231, + "name": "_buildSkeleton", + "lineStart": 179, + "lineEnd": 244, "bornStep": -1 }, { - "name": "constructor", - "lineStart": 240, - "lineEnd": 247, - "bornStep": -1 - }, - { - "name": "setData", - "lineStart": 249, - "lineEnd": 304, - "bornStep": -1 - }, - { - "name": "constructor", - "lineStart": 313, - "lineEnd": 320, - "bornStep": -1 - }, - { - "name": "setLabels", - "lineStart": 322, - "lineEnd": 325, - "bornStep": -1 - }, - { - "name": "setData", - "lineStart": 327, - "lineEnd": 406, - "bornStep": -1 - } - ] - }, - { - "index": 68, - "path": "templates/components/livepanel/dataTable.js", - "name": "dataTable.js", - "dir": "templates/components/livepanel", - "loc": 303, - "x": 1.4463, - "z": 0.6179, - "w": 0.1621, - "d": 0.1958, - "baseY": 0.028, - "h": 0.4306, - "touches": { - "reads": 0, - "writes": 0, - "searches": 0, - "executes": 0 - }, - "firstStep": -1, - "lastStep": -1, - "turns": [], - "created": false, - "deleted": false, - "delta": null, - "dependents": 0, - "language": "JavaScript", - "complexity": 79, - "floors": [ - { - "name": "escapeHtml", - "lineStart": 25, - "lineEnd": 29, - "bornStep": -1 - }, - { - "name": "normalizeDataTableColumn", - "lineStart": 44, - "lineEnd": 61, - "bornStep": -1 - }, - { - "name": "numericColumn", - "lineStart": 74, - "lineEnd": 82, - "bornStep": -1 - }, - { - "name": "formatDataTableValue", - "lineStart": 85, - "lineEnd": 87, - "bornStep": -1 - }, - { - "name": "constructor", - "lineStart": 102, - "lineEnd": 129, - "bornStep": -1 - }, - { - "name": "setRows", - "lineStart": 132, - "lineEnd": 135, - "bornStep": -1 - }, - { - "name": "render", - "lineStart": 138, - "lineEnd": 144, - "bornStep": -1 - }, - { - "name": "getVisibleRows", - "lineStart": 147, - "lineEnd": 162, - "bornStep": -1 - }, - { - "name": "_columnByKey", - "lineStart": 166, - "lineEnd": 168, - "bornStep": -1 - }, - { - "name": "_rowMatchesTerm", - "lineStart": 170, - "lineEnd": 177, - "bornStep": -1 - }, - { - "name": "_buildSkeleton", - "lineStart": 179, - "lineEnd": 244, - "bornStep": -1 - }, - { - "name": "_applySort", - "lineStart": 246, - "lineEnd": 254, + "name": "_applySort", + "lineStart": 246, + "lineEnd": 254, "bornStep": -1 }, { @@ -6629,17 +6686,17 @@ ] }, { - "index": 69, + "index": 70, "path": "templates/components/livepanel/dependencySummaryPanel.js", "name": "dependencySummaryPanel.js", "dir": "templates/components/livepanel", "loc": 319, - "x": 1.2765, - "z": 0.6504, - "w": 0.1618, - "d": 0.1955, + "x": 1.2768, + "z": 0.6536, + "w": 0.1616, + "d": 0.1943, "baseY": 0.028, - "h": 0.4408, + "h": 0.2777, "touches": { "reads": 1, "writes": 1, @@ -6660,6 +6717,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 59, + "existed": true, "floors": [ { "name": "constructor", @@ -6772,17 +6830,17 @@ ] }, { - "index": 70, + "index": 71, "path": "templates/components/livepanel/historicalPanel.js", "name": "historicalPanel.js", "dir": "templates/components/livepanel", "loc": 481, - "x": 1.2543, - "z": 0.4186, - "w": 0.2062, - "d": 0.2492, + "x": 1.2546, + "z": 0.4231, + "w": 0.206, + "d": 0.2477, "baseY": 0.028, - "h": 0.5321, + "h": 0.3318, "touches": { "reads": 0, "writes": 0, @@ -6798,6 +6856,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 113, + "existed": true, "floors": [ { "name": "constructor", @@ -6928,17 +6987,17 @@ ] }, { - "index": 71, + "index": 72, "path": "templates/components/livepanel/panelShell.js", "name": "panelShell.js", "dir": "templates/components/livepanel", "loc": 250, - "x": 1.1145, - "z": 0.6412, - "w": 0.1465, - "d": 0.177, + "x": 1.115, + "z": 0.6444, + "w": 0.1463, + "d": 0.1759, "baseY": 0.028, - "h": 0.3948, + "h": 0.2504, "touches": { "reads": 0, "writes": 0, @@ -6954,6 +7013,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 32, + "existed": true, "floors": [ { "name": "getStoredTheme", @@ -7036,17 +7096,17 @@ ] }, { - "index": 72, + "index": 73, "path": "templates/components/common/codexrCommonRuntime.js", "name": "codexrCommonRuntime.js", "dir": "templates/components/common", "loc": 689, - "x": 1.425, - "z": 0.9619, - "w": 0.2484, - "d": 0.3001, + "x": 1.4252, + "z": 0.9632, + "w": 0.2481, + "d": 0.2983, "baseY": 0.028, - "h": 0.629, + "h": 0.3893, "touches": { "reads": 0, "writes": 0, @@ -7064,6 +7124,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 212, + "existed": true, "floors": [ { "name": "registerCodeXRCommonRuntime", @@ -7074,17 +7135,17 @@ ] }, { - "index": 73, + "index": 74, "path": "templates/components/common/codexrGitRefPickerRuntime.js", "name": "codexrGitRefPickerRuntime.js", "dir": "templates/components/common", "loc": 707, - "x": 1.1671, - "z": 0.9639, - "w": 0.2517, - "d": 0.3041, + "x": 1.1676, + "z": 0.9652, + "w": 0.2514, + "d": 0.3023, "baseY": 0.028, - "h": 0.6366, + "h": 0.3938, "touches": { "reads": 0, "writes": 0, @@ -7100,6 +7161,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 250, + "existed": true, "floors": [ { "name": "registerCodeXRGitRefPickerRuntime", @@ -7110,17 +7172,17 @@ ] }, { - "index": 74, + "index": 75, "path": "test/analysis/activeAnalysesActions.test.cjs", "name": "activeAnalysesActions.test.cjs", "dir": "test/analysis", "loc": 202, - "x": -2.2345, - "z": 0.8068, - "w": 0.1309, - "d": 0.1581, + "x": -2.2318, + "z": 0.7996, + "w": 0.1307, + "d": 0.1572, "baseY": 0.014, - "h": 0.3589, + "h": 0.2291, "touches": { "reads": 0, "writes": 0, @@ -7136,6 +7198,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 12, + "existed": true, "floors": [ { "name": "readProjectFile", @@ -7212,17 +7275,17 @@ ] }, { - "index": 75, + "index": 76, "path": "test/analysis/activeAnalysesCommands.test.cjs", "name": "activeAnalysesCommands.test.cjs", "dir": "test/analysis", "loc": 401, - "x": -1.879, - "z": -0.8849, - "w": 0.1876, - "d": 0.2267, + "x": -1.8766, + "z": -0.8819, + "w": 0.1874, + "d": 0.2253, "baseY": 0.014, - "h": 0.4893, + "h": 0.3065, "touches": { "reads": 0, "writes": 0, @@ -7238,6 +7301,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 11, + "existed": true, "floors": [ { "name": "createRegistry", @@ -7500,17 +7564,114 @@ ] }, { - "index": 76, + "index": 77, + "path": "test/analysis/activeAnalysesCore.test.cjs", + "name": "activeAnalysesCore.test.cjs", + "dir": "test/analysis", + "loc": 66, + "x": -0.4571, + "z": 0.8343, + "w": 0.0714, + "d": 0.0858, + "baseY": 0.014, + "h": 0.1481, + "touches": { + "reads": 0, + "writes": 0, + "searches": 0, + "executes": 0 + }, + "firstStep": -1, + "lastStep": -1, + "turns": [], + "created": false, + "deleted": false, + "delta": null, + "dependents": 0, + "language": "JavaScript", + "complexity": 1, + "existed": true, + "floors": [ + { + "name": "session", + "lineStart": 11, + "lineEnd": 16, + "bornStep": -1 + }, + { + "name": "server", + "lineStart": 17, + "lineEnd": 17, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 19, + "lineEnd": 25, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 27, + "lineEnd": 41, + "bornStep": -1 + }, + { + "name": "getSession", + "lineStart": 50, + "lineEnd": 50, + "bornStep": -1 + }, + { + "name": "closeSession", + "lineStart": 51, + "lineEnd": 51, + "bornStep": -1 + }, + { + "name": "getServersByStatus", + "lineStart": 52, + "lineEnd": 52, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 54, + "lineEnd": 54, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 57, + "lineEnd": 57, + "bornStep": -1 + }, + { + "name": "getServersByStatus", + "lineStart": 62, + "lineEnd": 62, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 63, + "lineEnd": 63, + "bornStep": -1 + } + ] + }, + { + "index": 78, "path": "test/analysis/activeAnalysesPresentation.test.cjs", "name": "activeAnalysesPresentation.test.cjs", "dir": "test/analysis", "loc": 168, - "x": -2.2545, - "z": -0.6457, - "w": 0.1187, - "d": 0.1434, + "x": -2.2546, + "z": -0.8041, + "w": 0.1185, + "d": 0.1425, "baseY": 0.014, - "h": 0.3308, + "h": 0.2125, "touches": { "reads": 0, "writes": 0, @@ -7526,6 +7687,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 15, + "existed": true, "floors": [ { "name": "render", @@ -7572,17 +7734,17 @@ ] }, { - "index": 77, + "index": 79, "path": "test/analysis/agentFlowCore.test.cjs", "name": "agentFlowCore.test.cjs", "dir": "test/analysis", - "loc": 445, - "x": -2.0797, - "z": 0.06, - "w": 0.1981, - "d": 0.2393, + "loc": 455, + "x": -2.0782, + "z": 0.0525, + "w": 0.2001, + "d": 0.2406, "baseY": 0.014, - "h": 0.5133, + "h": 0.3238, "touches": { "reads": 0, "writes": 0, @@ -7598,6 +7760,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 34, + "existed": true, "floors": [ { "name": "out", @@ -7899,80 +8062,92 @@ "lineEnd": 390, "bornStep": -1 }, + { + "name": "(anonymous)", + "lineStart": 395, + "lineEnd": 395, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 397, + "lineEnd": 397, + "bornStep": -1 + }, { "name": "line", - "lineStart": 413, - "lineEnd": 413, + "lineStart": 423, + "lineEnd": 423, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 418, - "lineEnd": 418, + "lineStart": 428, + "lineEnd": 428, "bornStep": -1 }, { "name": "waitFor", - "lineStart": 424, - "lineEnd": 430, + "lineStart": 434, + "lineEnd": 440, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 431, - "lineEnd": 431, + "lineStart": 441, + "lineEnd": 441, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 440, - "lineEnd": 440, + "lineStart": 450, + "lineEnd": 450, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 442, - "lineEnd": 442, + "lineStart": 452, + "lineEnd": 452, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 449, - "lineEnd": 449, + "lineStart": 459, + "lineEnd": 459, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 454, - "lineEnd": 454, + "lineStart": 464, + "lineEnd": 464, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 465, - "lineEnd": 465, + "lineStart": 475, + "lineEnd": 475, "bornStep": -1 }, { "name": "activate", - "lineStart": 467, - "lineEnd": 467, + "lineStart": 477, + "lineEnd": 477, "bornStep": -1 } ] }, { - "index": 78, + "index": 80, "path": "test/analysis/agentFlowFloors.test.cjs", "name": "agentFlowFloors.test.cjs", "dir": "test/analysis", "loc": 187, - "x": -2.258, - "z": -0.0126, - "w": 0.1256, - "d": 0.1518, + "x": -2.2581, + "z": -0.0149, + "w": 0.1255, + "d": 0.1509, "baseY": 0.014, - "h": 0.3468, + "h": 0.222, "touches": { "reads": 0, "writes": 0, @@ -7988,6 +8163,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 4, + "existed": true, "floors": [ { "name": "out", @@ -8118,17 +8294,17 @@ ] }, { - "index": 79, + "index": 81, "path": "test/analysis/agentFlowRuntime.test.cjs", "name": "agentFlowRuntime.test.cjs", "dir": "test/analysis", - "loc": 483, - "x": -2.084, - "z": 0.314, - "w": 0.2067, - "d": 0.2497, + "loc": 521, + "x": -1.4979, + "z": 0.5724, + "w": 0.2147, + "d": 0.2582, "baseY": 0.014, - "h": 0.5331, + "h": 0.3437, "touches": { "reads": 0, "writes": 0, @@ -8143,7 +8319,8 @@ "delta": null, "dependents": 0, "language": "JavaScript", - "complexity": 13, + "complexity": 14, + "existed": true, "floors": [ { "name": "clone", @@ -8315,90 +8492,241 @@ }, { "name": "(anonymous)", - "lineStart": 343, - "lineEnd": 363, + "lineStart": 347, + "lineEnd": 367, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 365, - "lineEnd": 381, + "lineStart": 369, + "lineEnd": 385, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 386, - "lineEnd": 386, + "lineStart": 390, + "lineEnd": 390, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 394, - "lineEnd": 394, + "lineStart": 398, + "lineEnd": 398, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 415, - "lineEnd": 415, + "lineStart": 419, + "lineEnd": 419, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 417, - "lineEnd": 417, + "lineStart": 421, + "lineEnd": 421, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 423, - "lineEnd": 444, + "lineStart": 427, + "lineEnd": 448, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 446, - "lineEnd": 454, + "lineStart": 450, + "lineEnd": 458, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 462, + "lineEnd": 462, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 472, + "lineEnd": 472, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 484, + "lineEnd": 498, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 500, + "lineEnd": 518, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 520, + "lineEnd": 529, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 531, + "lineEnd": 549, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 551, + "lineEnd": 556, + "bornStep": -1 + } + ] + }, + { + "index": 82, + "path": "test/analysis/agentFlowTimeline.test.cjs", + "name": "agentFlowTimeline.test.cjs", + "dir": "test/analysis", + "loc": 186, + "x": -2.2579, + "z": -0.175, + "w": 0.1251, + "d": 0.1505, + "baseY": 0.014, + "h": 0.2215, + "touches": { + "reads": 0, + "writes": 0, + "searches": 0, + "executes": 0 + }, + "firstStep": -1, + "lastStep": -1, + "turns": [], + "created": false, + "deleted": false, + "delta": null, + "dependents": 0, + "language": "JavaScript", + "complexity": 17, + "existed": true, + "floors": [ + { + "name": "out", + "lineStart": 18, + "lineEnd": 18, + "bornStep": -1 + }, + { + "name": "runtime", + "lineStart": 29, + "lineEnd": 34, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 38, + "lineEnd": 71, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 73, + "lineEnd": 76, + "bornStep": -1 + }, + { + "name": "line", + "lineStart": 79, + "lineEnd": 79, + "bornStep": -1 + }, + { + "name": "bash", + "lineStart": 80, + "lineEnd": 80, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 86, + "lineEnd": 86, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 95, + "lineEnd": 110, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 119, + "lineEnd": 119, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 120, + "lineEnd": 120, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 131, + "lineEnd": 146, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 157, + "lineEnd": 157, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 163, + "lineEnd": 163, "bornStep": -1 }, { - "name": "(anonymous)", - "lineStart": 458, - "lineEnd": 458, + "name": "file", + "lineStart": 172, + "lineEnd": 172, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 468, - "lineEnd": 468, + "lineStart": 182, + "lineEnd": 182, "bornStep": -1 }, { - "name": "(anonymous)", - "lineStart": 480, - "lineEnd": 494, + "name": "file", + "lineStart": 195, + "lineEnd": 195, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 496, - "lineEnd": 514, + "lineStart": 200, + "lineEnd": 200, "bornStep": -1 } ] }, { - "index": 80, + "index": 83, "path": "test/analysis/analysisMessageRouter.test.cjs", "name": "analysisMessageRouter.test.cjs", "dir": "test/analysis", "loc": 132, - "x": -1.2036, - "z": -1.0707, - "w": 0.1043, - "d": 0.126, + "x": -1.0811, + "z": -1.0666, + "w": 0.1042, + "d": 0.1253, "baseY": 0.014, - "h": 0.2978, + "h": 0.1929, "touches": { "reads": 0, "writes": 0, @@ -8414,6 +8742,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 2, + "existed": true, "floors": [ { "name": "withRouter", @@ -8460,17 +8789,17 @@ ] }, { - "index": 81, + "index": 84, "path": "test/analysis/analysisModeLifecycleContract.test.cjs", "name": "analysisModeLifecycleContract.test.cjs", "dir": "test/analysis", "loc": 249, - "x": -1.2266, - "z": 0.8161, - "w": 0.1462, - "d": 0.1766, + "x": -1.225, + "z": 0.8088, + "w": 0.146, + "d": 0.1756, "baseY": 0.014, - "h": 0.3941, + "h": 0.25, "touches": { "reads": 0, "writes": 0, @@ -8486,6 +8815,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 9, + "existed": true, "floors": [ { "name": "error", @@ -8628,17 +8958,17 @@ ] }, { - "index": 82, + "index": 85, "path": "test/analysis/analysisModeMegatest.test.cjs", "name": "analysisModeMegatest.test.cjs", "dir": "test/analysis", "loc": 913, - "x": -1.8228, - "z": -0.5312, - "w": 0.2871, - "d": 0.3469, + "x": -1.8205, + "z": -0.5304, + "w": 0.2868, + "d": 0.3448, "baseY": 0.014, - "h": 0.718, + "h": 0.4421, "touches": { "reads": 0, "writes": 0, @@ -8654,6 +8984,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 72, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -8946,17 +9277,17 @@ ] }, { - "index": 83, + "index": 86, "path": "test/analysis/analysisNamespace.test.cjs", "name": "analysisNamespace.test.cjs", "dir": "test/analysis", "loc": 96, - "x": -0.4498, - "z": -0.3462, - "w": 0.0878, - "d": 0.1061, + "x": -0.449, + "z": -0.2224, + "w": 0.0877, + "d": 0.1054, "baseY": 0.014, - "h": 0.2598, + "h": 0.1704, "touches": { "reads": 0, "writes": 0, @@ -8972,6 +9303,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 5, + "existed": true, "floors": [ { "name": "collectMenuCommandIds", @@ -9078,17 +9410,17 @@ ] }, { - "index": 84, + "index": 87, "path": "test/analysis/analysisOrchestratorDuplicate.test.cjs", "name": "analysisOrchestratorDuplicate.test.cjs", "dir": "test/analysis", "loc": 95, - "x": -0.45, - "z": -0.231, - "w": 0.0873, - "d": 0.1055, + "x": -0.4492, + "z": -0.1079, + "w": 0.0872, + "d": 0.1048, "baseY": 0.014, - "h": 0.2587, + "h": 0.1697, "touches": { "reads": 0, "writes": 0, @@ -9104,6 +9436,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 10, + "existed": true, "floors": [ { "name": "withOrchestrator", @@ -9120,17 +9453,17 @@ ] }, { - "index": 85, + "index": 88, "path": "test/analysis/analysisPaths.test.cjs", "name": "analysisPaths.test.cjs", "dir": "test/analysis", "loc": 51, - "x": -0.6035, - "z": 0.96, - "w": 0.0619, - "d": 0.0747, + "x": -0.7516, + "z": 0.9519, + "w": 0.0618, + "d": 0.0743, "baseY": 0.014, - "h": 0.2002, + "h": 0.135, "touches": { "reads": 0, "writes": 0, @@ -9146,6 +9479,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 4, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -9174,17 +9508,17 @@ ] }, { - "index": 86, + "index": 89, "path": "test/analysis/analysisRefreshCoordinator.test.cjs", "name": "analysisRefreshCoordinator.test.cjs", "dir": "test/analysis", "loc": 274, - "x": -0.5955, - "z": 0.7765, - "w": 0.1537, - "d": 0.1857, + "x": -0.5945, + "z": 0.7695, + "w": 0.1536, + "d": 0.1846, "baseY": 0.014, - "h": 0.4114, + "h": 0.2603, "touches": { "reads": 0, "writes": 0, @@ -9200,6 +9534,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 10, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -9312,17 +9647,17 @@ ] }, { - "index": 87, + "index": 90, "path": "test/analysis/analysisServerCapabilities.test.cjs", "name": "analysisServerCapabilities.test.cjs", "dir": "test/analysis", "loc": 117, - "x": -0.6521, - "z": -1.0667, - "w": 0.0977, - "d": 0.1181, + "x": -0.5302, + "z": -1.0627, + "w": 0.0976, + "d": 0.1174, "baseY": 0.014, - "h": 0.2827, + "h": 0.1839, "touches": { "reads": 0, "writes": 0, @@ -9338,6 +9673,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 15, + "existed": true, "floors": [ { "name": "readProjectFile", @@ -9408,17 +9744,17 @@ ] }, { - "index": 88, + "index": 91, "path": "test/analysis/analysisTreeBridge.test.cjs", "name": "analysisTreeBridge.test.cjs", "dir": "test/analysis", "loc": 25, - "x": -0.9481, - "z": 0.9474, - "w": 0.041, - "d": 0.0495, + "x": -1.1641, + "z": 0.9393, + "w": 0.0409, + "d": 0.0492, "baseY": 0.014, - "h": 0.1522, + "h": 0.1065, "touches": { "reads": 0, "writes": 0, @@ -9434,6 +9770,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 0, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -9450,17 +9787,17 @@ ] }, { - "index": 89, + "index": 92, "path": "test/analysis/analysisViewModes.test.cjs", "name": "analysisViewModes.test.cjs", "dir": "test/analysis", "loc": 38, - "x": -0.7368, - "z": 0.9542, + "x": -0.953, + "z": 0.9461, "w": 0.0523, - "d": 0.0632, + "d": 0.0628, "baseY": 0.014, - "h": 0.1783, + "h": 0.122, "touches": { "reads": 0, "writes": 0, @@ -9476,6 +9813,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 2, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -9498,17 +9836,17 @@ ] }, { - "index": 90, + "index": 93, "path": "test/analysis/audioPolicy.test.cjs", "name": "audioPolicy.test.cjs", "dir": "test/analysis", "loc": 126, - "x": -0.7597, - "z": -1.0691, - "w": 0.1017, - "d": 0.1229, + "x": -0.6377, + "z": -1.0651, + "w": 0.1016, + "d": 0.1222, "baseY": 0.014, - "h": 0.2919, + "h": 0.1894, "touches": { "reads": 0, "writes": 0, @@ -9524,6 +9862,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 10, + "existed": true, "floors": [ { "name": "walkFiles", @@ -9570,17 +9909,17 @@ ] }, { - "index": 91, + "index": 94, "path": "test/analysis/babiaChartDimensionContract.test.cjs", "name": "babiaChartDimensionContract.test.cjs", "dir": "test/analysis", "loc": 74, - "x": -0.4556, - "z": 0.4195, - "w": 0.0761, - "d": 0.092, + "x": -0.4548, + "z": 0.5387, + "w": 0.076, + "d": 0.0914, "baseY": 0.014, - "h": 0.233, + "h": 0.1545, "touches": { "reads": 0, "writes": 0, @@ -9596,6 +9935,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 2, + "existed": true, "floors": [ { "name": "readProjectFile", @@ -9618,17 +9958,17 @@ ] }, { - "index": 92, + "index": 95, "path": "test/analysis/backendScriptPath.test.cjs", "name": "backendScriptPath.test.cjs", "dir": "test/analysis", "loc": 89, - "x": -0.4516, - "z": -0.1178, - "w": 0.0842, - "d": 0.1018, + "x": -0.4508, + "z": 0.0046, + "w": 0.0841, + "d": 0.1012, "baseY": 0.014, - "h": 0.2517, + "h": 0.1655, "touches": { "reads": 0, "writes": 0, @@ -9644,6 +9984,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 3, + "existed": true, "floors": [ { "name": "makeInstalledLayout", @@ -9690,17 +10031,17 @@ ] }, { - "index": 93, + "index": 96, "path": "test/analysis/boatsWindowsGlow.test.cjs", "name": "boatsWindowsGlow.test.cjs", "dir": "test/analysis", "loc": 83, - "x": -0.4532, - "z": 0.2109, - "w": 0.0811, - "d": 0.098, + "x": -0.4523, + "z": 0.3313, + "w": 0.081, + "d": 0.0974, "baseY": 0.014, - "h": 0.2444, + "h": 0.1612, "touches": { "reads": 0, "writes": 0, @@ -9716,6 +10057,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 1, + "existed": true, "floors": [ { "name": "out", @@ -9780,17 +10122,17 @@ ] }, { - "index": 94, + "index": 97, "path": "test/analysis/chartTypeCommands.test.cjs", "name": "chartTypeCommands.test.cjs", "dir": "test/analysis", "loc": 73, - "x": -0.4559, - "z": 0.5206, + "x": -0.4551, + "z": 0.6392, "w": 0.0755, - "d": 0.0913, + "d": 0.0907, "baseY": 0.014, - "h": 0.2317, + "h": 0.1537, "touches": { "reads": 0, "writes": 0, @@ -9806,6 +10148,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 4, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -9816,17 +10159,17 @@ ] }, { - "index": 95, + "index": 98, "path": "test/analysis/chartTypeSettings.test.cjs", "name": "chartTypeSettings.test.cjs", "dir": "test/analysis", "loc": 205, - "x": -1.9562, - "z": 0.8074, - "w": 0.1319, - "d": 0.1594, + "x": -1.9538, + "z": 0.8002, + "w": 0.1318, + "d": 0.1584, "baseY": 0.014, - "h": 0.3613, + "h": 0.2305, "touches": { "reads": 0, "writes": 0, @@ -9842,6 +10185,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 17, + "existed": true, "floors": [ { "name": "silenceConsole", @@ -9966,17 +10310,78 @@ ] }, { - "index": 96, + "index": 99, + "path": "test/analysis/claudeSessionContinuity.test.cjs", + "name": "claudeSessionContinuity.test.cjs", + "dir": "test/analysis", + "loc": 49, + "x": -0.8206, + "z": 0.951, + "w": 0.0604, + "d": 0.0726, + "baseY": 0.014, + "h": 0.1331, + "touches": { + "reads": 0, + "writes": 0, + "searches": 0, + "executes": 0 + }, + "firstStep": -1, + "lastStep": -1, + "turns": [], + "created": false, + "deleted": false, + "delta": null, + "dependents": 0, + "language": "JavaScript", + "complexity": 1, + "existed": true, + "floors": [ + { + "name": "(anonymous)", + "lineStart": 19, + "lineEnd": 27, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 29, + "lineEnd": 37, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 39, + "lineEnd": 46, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 50, + "lineEnd": 50, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 54, + "lineEnd": 54, + "bornStep": -1 + } + ] + }, + { + "index": 100, "path": "test/analysis/codexrCommonRuntime.test.cjs", "name": "codexrCommonRuntime.test.cjs", "dir": "test/analysis", "loc": 346, - "x": -0.7429, - "z": -0.8765, - "w": 0.1737, - "d": 0.2099, + "x": -0.7353, + "z": -0.8736, + "w": 0.1735, + "d": 0.2086, "baseY": 0.014, - "h": 0.4574, + "h": 0.2875, "touches": { "reads": 0, "writes": 0, @@ -9992,6 +10397,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 14, + "existed": true, "floors": [ { "name": "createElement", @@ -10080,17 +10486,17 @@ ] }, { - "index": 97, + "index": 101, "path": "test/analysis/codexrDebugRuntime.test.cjs", "name": "codexrDebugRuntime.test.cjs", "dir": "test/analysis", "loc": 131, - "x": -1.0917, - "z": -1.0704, - "w": 0.1039, - "d": 0.1255, + "x": -0.9693, + "z": -1.0664, + "w": 0.1038, + "d": 0.1247, "baseY": 0.014, - "h": 0.2968, + "h": 0.1923, "touches": { "reads": 0, "writes": 0, @@ -10106,6 +10512,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 1, + "existed": true, "floors": [ { "name": "log", @@ -10218,17 +10625,17 @@ ] }, { - "index": 98, + "index": 102, "path": "test/analysis/codexrLogoRuntime.test.cjs", "name": "codexrLogoRuntime.test.cjs", "dir": "test/analysis", "loc": 286, - "x": -0.5937, - "z": 0.5792, - "w": 0.1572, - "d": 0.19, + "x": -0.5928, + "z": 0.5734, + "w": 0.1571, + "d": 0.1888, "baseY": 0.014, - "h": 0.4195, + "h": 0.265, "touches": { "reads": 0, "writes": 0, @@ -10244,6 +10651,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 17, + "existed": true, "floors": [ { "name": "createThreeStub", @@ -10320,17 +10728,17 @@ ] }, { - "index": 99, + "index": 103, "path": "test/analysis/collaborationRuntime.test.cjs", "name": "collaborationRuntime.test.cjs", "dir": "test/analysis", "loc": 682, - "x": -0.8037, - "z": -0.287, - "w": 0.2471, - "d": 0.2985, + "x": -0.8025, + "z": -0.2876, + "w": 0.2468, + "d": 0.2967, "baseY": 0.014, - "h": 0.626, + "h": 0.3875, "touches": { "reads": 0, "writes": 0, @@ -10346,6 +10754,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 22, + "existed": true, "floors": [ { "name": "loadAvatarComponentDefinition", @@ -10596,17 +11005,17 @@ ] }, { - "index": 100, + "index": 104, "path": "test/analysis/controllerViewMapSync.test.cjs", "name": "controllerViewMapSync.test.cjs", "dir": "test/analysis", "loc": 621, - "x": -0.8096, - "z": 0.014, - "w": 0.2354, - "d": 0.2844, + "x": -0.8084, + "z": 0.0116, + "w": 0.2351, + "d": 0.2827, "baseY": 0.014, - "h": 0.5992, + "h": 0.3716, "touches": { "reads": 0, "writes": 0, @@ -10622,6 +11031,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 50, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -10860,17 +11270,17 @@ ] }, { - "index": 101, + "index": 105, "path": "test/analysis/crossPlatformOffline.test.cjs", "name": "crossPlatformOffline.test.cjs", "dir": "test/analysis", "loc": 273, - "x": -0.7569, - "z": 0.8204, - "w": 0.1534, - "d": 0.1854, + "x": -0.7558, + "z": 0.8132, + "w": 0.1533, + "d": 0.1843, "baseY": 0.014, - "h": 0.4107, + "h": 0.2599, "touches": { "reads": 0, "writes": 0, @@ -10886,6 +11296,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 24, + "existed": true, "floors": [ { "name": "out", @@ -10998,17 +11409,17 @@ ] }, { - "index": 102, + "index": 106, "path": "test/analysis/dependencyFileScope.test.cjs", "name": "dependencyFileScope.test.cjs", "dir": "test/analysis", "loc": 193, - "x": -2.259, - "z": 0.4764, - "w": 0.1278, - "d": 0.1544, + "x": -2.2591, + "z": 0.4712, + "w": 0.1276, + "d": 0.1534, "baseY": 0.014, - "h": 0.3517, + "h": 0.2249, "touches": { "reads": 0, "writes": 0, @@ -11024,6 +11435,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 9, + "existed": true, "floors": [ { "name": "withService", @@ -11100,17 +11512,17 @@ ] }, { - "index": 103, + "index": 107, "path": "test/analysis/dependencyGraph.test.cjs", "name": "dependencyGraph.test.cjs", "dir": "test/analysis", "loc": 1376, - "x": -1.1202, - "z": 0.2249, - "w": 0.3542, - "d": 0.428, + "x": -1.1187, + "z": 0.2212, + "w": 0.3539, + "d": 0.4254, "baseY": 0.014, - "h": 0.8723, + "h": 0.5336, "touches": { "reads": 2, "writes": 0, @@ -11129,6 +11541,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 52, + "existed": true, "floors": [ { "name": "read", @@ -11601,17 +12014,17 @@ ] }, { - "index": 104, + "index": 108, "path": "test/analysis/dependencyGraphBridge.test.cjs", "name": "dependencyGraphBridge.test.cjs", "dir": "test/analysis", "loc": 444, - "x": -2.0796, - "z": -0.1886, - "w": 0.1978, - "d": 0.239, + "x": -2.077, + "z": -0.1961, + "w": 0.1976, + "d": 0.2376, "baseY": 0.014, - "h": 0.5128, + "h": 0.3204, "touches": { "reads": 0, "writes": 0, @@ -11627,6 +12040,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 10, + "existed": true, "floors": [ { "name": "createMessageContext", @@ -11739,17 +12153,17 @@ ] }, { - "index": 105, + "index": 109, "path": "test/analysis/dependencyGraphS13.test.cjs", "name": "dependencyGraphS13.test.cjs", "dir": "test/analysis", "loc": 139, - "x": -1.5424, - "z": -1.0725, - "w": 0.1072, - "d": 0.1296, + "x": -1.4195, + "z": -1.0684, + "w": 0.1071, + "d": 0.1288, "baseY": 0.014, - "h": 0.3045, + "h": 0.1969, "touches": { "reads": 0, "writes": 0, @@ -11765,6 +12179,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 2, + "existed": true, "floors": [ { "name": "loadRuntime", @@ -11925,17 +12340,17 @@ ] }, { - "index": 106, + "index": 110, "path": "test/analysis/devLaunchConfig.test.cjs", "name": "devLaunchConfig.test.cjs", "dir": "test/analysis", "loc": 63, - "x": -0.4589, - "z": 0.7158, - "w": 0.0696, - "d": 0.0841, + "x": -0.4581, + "z": 0.9285, + "w": 0.0695, + "d": 0.0836, "baseY": 0.014, - "h": 0.2181, + "h": 0.1456, "touches": { "reads": 0, "writes": 0, @@ -11951,6 +12366,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 3, + "existed": true, "floors": [ { "name": "readJson", @@ -11997,17 +12413,17 @@ ] }, { - "index": 107, + "index": 111, "path": "test/analysis/dimensionMappingShared.test.cjs", "name": "dimensionMappingShared.test.cjs", "dir": "test/analysis", "loc": 78, - "x": -0.4545, - "z": 0.3167, - "w": 0.0784, - "d": 0.0947, + "x": -0.4537, + "z": 0.4365, + "w": 0.0783, + "d": 0.0941, "baseY": 0.014, - "h": 0.2382, + "h": 0.1575, "touches": { "reads": 0, "writes": 0, @@ -12023,6 +12439,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 2, + "existed": true, "floors": [ { "name": "readProjectFile", @@ -12045,17 +12462,17 @@ ] }, { - "index": 108, + "index": 112, "path": "test/analysis/dimensionValidator.test.cjs", "name": "dimensionValidator.test.cjs", "dir": "test/analysis", "loc": 88, - "x": -0.4518, - "z": -0.0069, - "w": 0.0837, - "d": 0.1011, + "x": -0.451, + "z": 0.1149, + "w": 0.0836, + "d": 0.1005, "baseY": 0.014, - "h": 0.2505, + "h": 0.1648, "touches": { "reads": 0, "writes": 0, @@ -12071,6 +12488,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 6, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -12117,17 +12535,17 @@ ] }, { - "index": 109, + "index": 113, "path": "test/analysis/directoryAnalysisStartup.test.cjs", "name": "directoryAnalysisStartup.test.cjs", "dir": "test/analysis", "loc": 29, - "x": -0.7932, - "z": 0.9496, + "x": -1.0093, + "z": 0.9416, "w": 0.0447, - "d": 0.054, + "d": 0.0537, "baseY": 0.014, - "h": 0.1608, + "h": 0.1117, "touches": { "reads": 0, "writes": 0, @@ -12143,6 +12561,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 1, + "existed": true, "floors": [ { "name": "readProjectFile", @@ -12171,17 +12590,17 @@ ] }, { - "index": 110, + "index": 114, "path": "test/analysis/directoryLivePanelUi.test.cjs", "name": "directoryLivePanelUi.test.cjs", "dir": "test/analysis", "loc": 747, - "x": -1.2723, - "z": -0.6021, - "w": 0.2589, - "d": 0.3129, + "x": -1.2706, + "z": -0.6009, + "w": 0.2587, + "d": 0.311, "baseY": 0.014, - "h": 0.6533, + "h": 0.4037, "touches": { "reads": 0, "writes": 0, @@ -12197,6 +12616,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 17, + "existed": true, "floors": [ { "name": "readTemplate", @@ -12477,17 +12897,17 @@ ] }, { - "index": 111, + "index": 115, "path": "test/analysis/directorySnapshotRuntime.test.cjs", "name": "directorySnapshotRuntime.test.cjs", "dir": "test/analysis", "loc": 29, - "x": -0.8457, - "z": 0.9496, + "x": -1.0619, + "z": 0.9416, "w": 0.0447, - "d": 0.054, + "d": 0.0537, "baseY": 0.014, - "h": 0.1608, + "h": 0.1117, "touches": { "reads": 0, "writes": 0, @@ -12503,6 +12923,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 0, + "existed": true, "floors": [ { "name": "createTempDir", @@ -12531,17 +12952,17 @@ ] }, { - "index": 112, + "index": 116, "path": "test/analysis/domSceneTemplateContract.test.cjs", "name": "domSceneTemplateContract.test.cjs", "dir": "test/analysis", "loc": 254, - "x": -1.0718, - "z": 0.817, - "w": 0.1477, - "d": 0.1785, + "x": -1.0704, + "z": 0.8097, + "w": 0.1476, + "d": 0.1774, "baseY": 0.014, - "h": 0.3976, + "h": 0.2521, "touches": { "reads": 0, "writes": 0, @@ -12557,6 +12978,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 21, + "existed": true, "floors": [ { "name": "withoutHtmlComments", @@ -12675,17 +13097,17 @@ ] }, { - "index": 113, + "index": 117, "path": "test/analysis/drillDownCore.test.cjs", "name": "drillDownCore.test.cjs", "dir": "test/analysis", "loc": 502, - "x": -1.7199, - "z": 0.5758, - "w": 0.2109, - "d": 0.2548, + "x": -1.9403, + "z": 0.57, + "w": 0.2106, + "d": 0.2532, "baseY": 0.014, - "h": 0.5427, + "h": 0.3381, "touches": { "reads": 0, "writes": 0, @@ -12701,6 +13123,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 13, + "existed": true, "floors": [ { "name": "out", @@ -13035,17 +13458,17 @@ ] }, { - "index": 114, + "index": 118, "path": "test/analysis/drillDownRuntime.test.cjs", "name": "drillDownRuntime.test.cjs", "dir": "test/analysis", - "loc": 368, - "x": -1.1123, - "z": -0.8799, - "w": 0.1794, - "d": 0.2168, + "loc": 394, + "x": -1.6822, + "z": -0.8809, + "w": 0.1857, + "d": 0.2233, "baseY": 0.014, - "h": 0.4704, + "h": 0.3041, "touches": { "reads": 0, "writes": 0, @@ -13060,7 +13483,8 @@ "delta": null, "dependents": 0, "language": "JavaScript", - "complexity": 22, + "complexity": 24, + "existed": true, "floors": [ { "name": "loadRuntime", @@ -13195,121 +13619,139 @@ "bornStep": -1 }, { - "name": "(anonymous)", - "lineStart": 213, + "name": "boatsWithPins", + "lineStart": 214, "lineEnd": 219, "bornStep": -1 }, + { + "name": "getElementById", + "lineStart": 225, + "lineEnd": 225, + "bornStep": -1 + }, + { + "name": "mode", + "lineStart": 226, + "lineEnd": 226, + "bornStep": -1 + }, + { + "name": "(anonymous)", + "lineStart": 244, + "lineEnd": 250, + "bornStep": -1 + }, { "name": "manualTimers", - "lineStart": 222, - "lineEnd": 237, + "lineStart": 253, + "lineEnd": 268, "bornStep": -1 }, { "name": "fakeDocument", - "lineStart": 240, - "lineEnd": 260, + "lineStart": 271, + "lineEnd": 291, "bornStep": -1 }, { "name": "chartWithBuildings", - "lineStart": 262, - "lineEnd": 266, + "lineStart": 293, + "lineEnd": 297, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 268, - "lineEnd": 282, + "lineStart": 299, + "lineEnd": 313, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 284, - "lineEnd": 315, + "lineStart": 315, + "lineEnd": 346, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 322, - "lineEnd": 322, + "lineStart": 353, + "lineEnd": 353, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 333, - "lineEnd": 333, + "lineStart": 364, + "lineEnd": 364, "bornStep": -1 }, { "name": "stopPropagation", - "lineStart": 342, - "lineEnd": 342, + "lineStart": 373, + "lineEnd": 373, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 345, - "lineEnd": 345, + "lineStart": 376, + "lineEnd": 376, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 354, - "lineEnd": 369, + "lineStart": 385, + "lineEnd": 400, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 371, - "lineEnd": 377, + "lineStart": 402, + "lineEnd": 408, "bornStep": -1 }, { "name": "entity", - "lineStart": 380, - "lineEnd": 380, + "lineStart": 411, + "lineEnd": 411, "bornStep": -1 }, { "name": "plain", - "lineStart": 381, - "lineEnd": 381, + "lineStart": 412, + "lineEnd": 412, "bornStep": -1 }, { "name": "getState", - "lineStart": 388, - "lineEnd": 388, + "lineStart": 419, + "lineEnd": 419, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 396, - "lineEnd": 410, + "lineStart": 427, + "lineEnd": 441, "bornStep": -1 }, { "name": "(anonymous)", - "lineStart": 412, - "lineEnd": 418, + "lineStart": 443, + "lineEnd": 449, "bornStep": -1 } ] }, { - "index": 115, + "index": 119, "path": "test/analysis/embeddedRuntimeAssets.test.cjs", "name": "embeddedRuntimeAssets.test.cjs", "dir": "test/analysis", "loc": 55, - "x": -0.4614, - "z": 0.8992, + "x": -0.6097, + "z": 0.9535, "w": 0.0645, - "d": 0.078, + "d": 0.0775, "baseY": 0.014, - "h": 0.2064, + "h": 0.1387, "touches": { "reads": 0, "writes": 0, @@ -13325,6 +13767,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 2, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -13341,17 +13784,17 @@ ] }, { - "index": 116, + "index": 120, "path": "test/analysis/executePythonResults.test.cjs", "name": "executePythonResults.test.cjs", "dir": "test/analysis", "loc": 301, - "x": -0.5916, - "z": -0.0263, - "w": 0.1615, - "d": 0.1951, + "x": -0.5906, + "z": -0.0285, + "w": 0.1613, + "d": 0.194, "baseY": 0.014, - "h": 0.4293, + "h": 0.2709, "touches": { "reads": 0, "writes": 0, @@ -13367,6 +13810,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 17, + "existed": true, "floors": [ { "name": "MARKERS", @@ -13515,17 +13959,17 @@ ] }, { - "index": 117, + "index": 121, "path": "test/analysis/exportManifest.test.cjs", "name": "exportManifest.test.cjs", "dir": "test/analysis", "loc": 373, - "x": -1.3002, - "z": -0.8807, - "w": 0.1807, - "d": 0.2183, + "x": -1.1049, + "z": -0.8777, + "w": 0.1805, + "d": 0.217, "baseY": 0.014, - "h": 0.4734, + "h": 0.297, "touches": { "reads": 0, "writes": 0, @@ -13541,6 +13985,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 9, + "existed": true, "floors": [ { "name": "selectedModes", @@ -13677,17 +14122,17 @@ ] }, { - "index": 118, + "index": 122, "path": "test/analysis/exportManifestSnapshot.test.cjs", "name": "exportManifestSnapshot.test.cjs", "dir": "test/analysis", "loc": 739, - "x": -1.0063, - "z": -0.6013, - "w": 0.2575, - "d": 0.3111, + "x": -1.0048, + "z": -0.6, + "w": 0.2572, + "d": 0.3093, "baseY": 0.014, - "h": 0.65, + "h": 0.4017, "touches": { "reads": 0, "writes": 0, @@ -13703,6 +14148,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 14, + "existed": true, "floors": [ { "name": "selectedModes", @@ -13833,17 +14279,17 @@ ] }, { - "index": 119, + "index": 123, "path": "test/analysis/exportPackageTransaction.test.cjs", "name": "exportPackageTransaction.test.cjs", "dir": "test/analysis", "loc": 127, - "x": -0.8695, - "z": -1.0694, - "w": 0.1021, - "d": 0.1234, + "x": -0.7474, + "z": -1.0653, + "w": 0.102, + "d": 0.1227, "baseY": 0.014, - "h": 0.2929, + "h": 0.19, "touches": { "reads": 0, "writes": 0, @@ -13859,6 +14305,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 6, + "existed": true, "floors": [ { "name": "makeRoot", @@ -13899,17 +14346,17 @@ ] }, { - "index": 120, + "index": 124, "path": "test/analysis/exportPackageValidation.test.cjs", "name": "exportPackageValidation.test.cjs", "dir": "test/analysis", "loc": 107, - "x": -0.4471, - "z": -0.8188, - "w": 0.0931, - "d": 0.1125, + "x": -0.4463, + "z": -0.6922, + "w": 0.093, + "d": 0.1118, "baseY": 0.014, - "h": 0.2721, + "h": 0.1776, "touches": { "reads": 0, "writes": 0, @@ -13925,6 +14372,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 5, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -13983,17 +14431,17 @@ ] }, { - "index": 121, + "index": 125, "path": "test/analysis/fileHashTrackerRuntime.test.cjs", "name": "fileHashTrackerRuntime.test.cjs", "dir": "test/analysis", "loc": 85, - "x": -0.4526, - "z": 0.1028, + "x": -0.4518, + "z": 0.2239, "w": 0.0821, - "d": 0.0992, + "d": 0.0987, "baseY": 0.014, - "h": 0.2469, + "h": 0.1627, "touches": { "reads": 0, "writes": 0, @@ -14009,6 +14457,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 0, + "existed": true, "floors": [ { "name": "createTempDir", @@ -14031,17 +14480,17 @@ ] }, { - "index": 122, + "index": 126, "path": "test/analysis/functionMetricsBridge.test.cjs", "name": "functionMetricsBridge.test.cjs", "dir": "test/analysis", "loc": 99, - "x": -0.4491, - "z": -0.5788, - "w": 0.0893, - "d": 0.1079, + "x": -0.4482, + "z": -0.4537, + "w": 0.0892, + "d": 0.1072, "baseY": 0.014, - "h": 0.2633, + "h": 0.1724, "touches": { "reads": 0, "writes": 0, @@ -14057,6 +14506,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 2, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -14157,17 +14607,17 @@ ] }, { - "index": 123, + "index": 127, "path": "test/analysis/gitAnalysisShared.test.cjs", "name": "gitAnalysisShared.test.cjs", "dir": "test/analysis", "loc": 69, - "x": -0.4571, - "z": 0.62, - "w": 0.0732, - "d": 0.0885, + "x": -0.4563, + "z": 0.738, + "w": 0.0731, + "d": 0.0879, "baseY": 0.014, - "h": 0.2264, + "h": 0.1505, "touches": { "reads": 0, "writes": 0, @@ -14183,6 +14633,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 0, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -14211,17 +14662,17 @@ ] }, { - "index": 124, + "index": 128, "path": "test/analysis/gitExportPreflight.test.cjs", "name": "gitExportPreflight.test.cjs", "dir": "test/analysis", "loc": 62, - "x": -0.4592, - "z": 0.809, - "w": 0.069, - "d": 0.0834, + "x": -0.5351, + "z": 0.9562, + "w": 0.0689, + "d": 0.0829, "baseY": 0.014, - "h": 0.2167, + "h": 0.1448, "touches": { "reads": 0, "writes": 0, @@ -14237,6 +14688,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 4, + "existed": true, "floors": [ { "name": "runGit", @@ -14271,17 +14723,17 @@ ] }, { - "index": 125, + "index": 129, "path": "test/analysis/gitHistoryServices.test.cjs", "name": "gitHistoryServices.test.cjs", "dir": "test/analysis", "loc": 1437, - "x": -1.1162, - "z": -0.2174, - "w": 0.3622, - "d": 0.4376, + "x": -1.1147, + "z": -0.2185, + "w": 0.3618, + "d": 0.435, "baseY": 0.014, - "h": 0.8906, + "h": 0.5444, "touches": { "reads": 0, "writes": 0, @@ -14297,6 +14749,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 87, + "existed": true, "floors": [ { "name": "runGit", @@ -14619,17 +15072,17 @@ ] }, { - "index": 126, + "index": 130, "path": "test/analysis/gitListReferences.test.cjs", "name": "gitListReferences.test.cjs", "dir": "test/analysis", "loc": 143, - "x": -1.6583, - "z": -1.0735, - "w": 0.1089, - "d": 0.1315, + "x": -1.5353, + "z": -1.0694, + "w": 0.1088, + "d": 0.1308, "baseY": 0.014, - "h": 0.3083, + "h": 0.1991, "touches": { "reads": 0, "writes": 0, @@ -14645,6 +15098,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 10, + "existed": true, "floors": [ { "name": "sha", @@ -14697,17 +15151,17 @@ ] }, { - "index": 127, + "index": 131, "path": "test/analysis/gitMaterializeDirectory.test.cjs", "name": "gitMaterializeDirectory.test.cjs", "dir": "test/analysis", "loc": 326, - "x": -0.5882, - "z": -0.4444, - "w": 0.1684, - "d": 0.2035, + "x": -0.5872, + "z": -0.4441, + "w": 0.1682, + "d": 0.2022, "baseY": 0.014, - "h": 0.4451, + "h": 0.2803, "touches": { "reads": 0, "writes": 0, @@ -14723,6 +15177,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 21, + "existed": true, "floors": [ { "name": "blobOf", @@ -14883,17 +15338,17 @@ ] }, { - "index": 128, + "index": 132, "path": "test/analysis/gitRefPickerRuntime.test.cjs", "name": "gitRefPickerRuntime.test.cjs", "dir": "test/analysis", "loc": 315, - "x": -0.5897, - "z": -0.2333, - "w": 0.1654, - "d": 0.1998, + "x": -0.5887, + "z": -0.2342, + "w": 0.1652, + "d": 0.1986, "baseY": 0.014, - "h": 0.4382, + "h": 0.2762, "touches": { "reads": 0, "writes": 0, @@ -14909,6 +15364,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 16, + "existed": true, "floors": [ { "name": "makeElement", @@ -15075,17 +15531,17 @@ ] }, { - "index": 129, + "index": 133, "path": "test/analysis/gitRevisionExportPhases.test.cjs", "name": "gitRevisionExportPhases.test.cjs", "dir": "test/analysis", "loc": 291, - "x": -0.593, - "z": 0.3789, - "w": 0.1587, - "d": 0.1917, + "x": -0.5921, + "z": 0.3742, + "w": 0.1585, + "d": 0.1906, "baseY": 0.014, - "h": 0.4228, + "h": 0.267, "touches": { "reads": 0, "writes": 0, @@ -15101,6 +15557,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 11, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -15243,17 +15700,17 @@ ] }, { - "index": 130, + "index": 134, "path": "test/analysis/gitRevisionExporter.test.cjs", "name": "gitRevisionExporter.test.cjs", "dir": "test/analysis", "loc": 763, - "x": -1.5406, - "z": -0.6039, - "w": 0.2618, - "d": 0.3163, + "x": -1.5386, + "z": -0.6026, + "w": 0.2615, + "d": 0.3144, "baseY": 0.014, - "h": 0.6598, + "h": 0.4076, "touches": { "reads": 0, "writes": 0, @@ -15269,6 +15726,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 25, + "existed": true, "floors": [ { "name": "loadGitRepositoryService", @@ -15627,17 +16085,17 @@ ] }, { - "index": 131, + "index": 135, "path": "test/analysis/gitTimeline.test.cjs", "name": "gitTimeline.test.cjs", "dir": "test/analysis", "loc": 190, - "x": -2.2585, - "z": 0.1493, - "w": 0.1267, - "d": 0.1531, + "x": -2.2586, + "z": 0.146, + "w": 0.1266, + "d": 0.1522, "baseY": 0.014, - "h": 0.3493, + "h": 0.2234, "touches": { "reads": 0, "writes": 0, @@ -15653,6 +16111,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 8, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -15777,17 +16236,17 @@ ] }, { - "index": 132, + "index": 136, "path": "test/analysis/guideScreenRuntime.test.cjs", "name": "guideScreenRuntime.test.cjs", "dir": "test/analysis", "loc": 225, - "x": -1.6717, - "z": 0.8115, - "w": 0.1386, - "d": 0.1674, + "x": -1.6695, + "z": 0.8042, + "w": 0.1384, + "d": 0.1664, "baseY": 0.014, - "h": 0.3766, + "h": 0.2396, "touches": { "reads": 0, "writes": 0, @@ -15803,6 +16262,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 16, + "existed": true, "floors": [ { "name": "read", @@ -15915,17 +16375,17 @@ ] }, { - "index": 133, + "index": 137, "path": "test/analysis/historicalComparison.test.cjs", "name": "historicalComparison.test.cjs", "dir": "test/analysis", "loc": 1165, - "x": -1.4678, - "z": 0.2124, - "w": 0.3253, - "d": 0.3931, + "x": -1.4659, + "z": 0.2087, + "w": 0.325, + "d": 0.3907, "baseY": 0.014, - "h": 0.8059, + "h": 0.4942, "touches": { "reads": 0, "writes": 0, @@ -15941,6 +16401,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 55, + "existed": true, "floors": [ { "name": "readProjectFile", @@ -16155,17 +16616,17 @@ ] }, { - "index": 134, + "index": 138, "path": "test/analysis/historicalComparisonRuntime.test.cjs", "name": "historicalComparisonRuntime.test.cjs", "dir": "test/analysis", "loc": 147, - "x": -1.893, - "z": -1.0744, - "w": 0.1105, - "d": 0.1335, + "x": -1.7697, + "z": -1.0704, + "w": 0.1104, + "d": 0.1327, "baseY": 0.014, - "h": 0.312, + "h": 0.2013, "touches": { "reads": 0, "writes": 0, @@ -16181,6 +16642,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 2, + "existed": true, "floors": [ { "name": "loadRuntime", @@ -16221,17 +16683,17 @@ ] }, { - "index": 135, + "index": 139, "path": "test/analysis/historicalStaysCorrect.test.cjs", "name": "historicalStaysCorrect.test.cjs", "dir": "test/analysis", "loc": 203, - "x": -2.0956, - "z": 0.807, - "w": 0.1312, - "d": 0.1586, + "x": -2.093, + "z": 0.7998, + "w": 0.1311, + "d": 0.1576, "baseY": 0.014, - "h": 0.3597, + "h": 0.2296, "touches": { "reads": 0, "writes": 0, @@ -16247,6 +16709,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 10, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -16341,17 +16804,17 @@ ] }, { - "index": 136, + "index": 140, "path": "test/analysis/immersiveRigRuntime.test.cjs", "name": "immersiveRigRuntime.test.cjs", "dir": "test/analysis", "loc": 496, - "x": -1.938, - "z": 0.575, - "w": 0.2095, - "d": 0.2532, + "x": -2.0828, + "z": 0.3081, + "w": 0.2093, + "d": 0.2517, "baseY": 0.014, - "h": 0.5397, + "h": 0.3363, "touches": { "reads": 0, "writes": 0, @@ -16367,6 +16830,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 25, + "existed": true, "floors": [ { "name": "vec3", @@ -16587,17 +17051,17 @@ ] }, { - "index": 137, + "index": 141, "path": "test/analysis/jobRunner.test.cjs", "name": "jobRunner.test.cjs", "dir": "test/analysis", "loc": 144, - "x": -1.7752, - "z": -1.0737, - "w": 0.1093, - "d": 0.132, + "x": -1.6521, + "z": -1.0696, + "w": 0.1092, + "d": 0.1312, "baseY": 0.014, - "h": 0.3093, + "h": 0.1997, "touches": { "reads": 0, "writes": 0, @@ -16613,6 +17077,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 8, + "existed": true, "floors": [ { "name": "withRunner", @@ -16683,17 +17148,17 @@ ] }, { - "index": 138, + "index": 142, "path": "test/analysis/launchTransaction.test.cjs", "name": "launchTransaction.test.cjs", "dir": "test/analysis", "loc": 392, - "x": -1.4911, - "z": -0.8835, - "w": 0.1854, - "d": 0.224, + "x": -1.2956, + "z": -0.8806, + "w": 0.1852, + "d": 0.2227, "baseY": 0.014, - "h": 0.4843, + "h": 0.3035, "touches": { "reads": 0, "writes": 0, @@ -16709,6 +17174,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 7, + "existed": true, "floors": [ { "name": "silenceConsole", @@ -16827,17 +17293,17 @@ ] }, { - "index": 139, + "index": 143, "path": "test/analysis/launcherClosures.test.cjs", "name": "launcherClosures.test.cjs", "dir": "test/analysis", "loc": 133, - "x": -1.4285, - "z": -1.071, - "w": 0.1047, - "d": 0.1265, + "x": -1.3058, + "z": -1.0669, + "w": 0.1046, + "d": 0.1258, "baseY": 0.014, - "h": 0.2988, + "h": 0.1935, "touches": { "reads": 0, "writes": 0, @@ -16853,6 +17319,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 10, + "existed": true, "floors": [ { "name": "withLaunchers", @@ -16881,17 +17348,17 @@ ] }, { - "index": 140, + "index": 144, "path": "test/analysis/liveChannelRuntime.test.cjs", "name": "liveChannelRuntime.test.cjs", "dir": "test/analysis", "loc": 130, - "x": -0.9802, - "z": -1.0702, - "w": 0.1034, - "d": 0.125, + "x": -0.8579, + "z": -1.0661, + "w": 0.1033, + "d": 0.1242, "baseY": 0.014, - "h": 0.2958, + "h": 0.1917, "touches": { "reads": 0, "writes": 0, @@ -16907,6 +17374,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 2, + "existed": true, "floors": [ { "name": "loadRuntime", @@ -16965,17 +17433,17 @@ ] }, { - "index": 141, + "index": 145, "path": "test/analysis/livePanelBundle.test.cjs", "name": "livePanelBundle.test.cjs", "dir": "test/analysis", "loc": 104, - "x": -0.4478, - "z": -0.6977, - "w": 0.0917, - "d": 0.1108, + "x": -0.447, + "z": -0.5718, + "w": 0.0916, + "d": 0.1101, "baseY": 0.014, - "h": 0.2688, + "h": 0.1757, "touches": { "reads": 0, "writes": 0, @@ -16991,6 +17459,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 8, + "existed": true, "floors": [ { "name": "readSharedParts", @@ -17037,17 +17506,17 @@ ] }, { - "index": 142, + "index": 146, "path": "test/analysis/livePanelDomIntegration.test.cjs", "name": "livePanelDomIntegration.test.cjs", "dir": "test/analysis", "loc": 226, - "x": -1.5251, - "z": 0.8117, - "w": 0.1389, - "d": 0.1678, + "x": -1.5231, + "z": 0.8044, + "w": 0.1387, + "d": 0.1668, "baseY": 0.014, - "h": 0.3773, + "h": 0.24, "touches": { "reads": 0, "writes": 0, @@ -17063,6 +17532,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 11, + "existed": true, "floors": [ { "name": "readProjectFile", @@ -17157,17 +17627,17 @@ ] }, { - "index": 143, + "index": 147, "path": "test/analysis/livePanelHistorical.test.cjs", "name": "livePanelHistorical.test.cjs", "dir": "test/analysis", "loc": 161, - "x": -2.2532, - "z": -0.9475, - "w": 0.116, - "d": 0.1402, + "x": -2.1295, + "z": -1.0737, + "w": 0.1159, + "d": 0.1393, "baseY": 0.014, - "h": 0.3247, + "h": 0.2088, "touches": { "reads": 0, "writes": 0, @@ -17183,6 +17653,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 21, + "existed": true, "floors": [ { "name": "readProjectFile", @@ -17253,17 +17724,17 @@ ] }, { - "index": 144, + "index": 148, "path": "test/analysis/livePanelHistoricalCancel.test.cjs", "name": "livePanelHistoricalCancel.test.cjs", "dir": "test/analysis", "loc": 426, - "x": -2.0774, - "z": -0.6786, - "w": 0.1936, - "d": 0.2339, + "x": -2.0749, + "z": -0.6831, + "w": 0.1934, + "d": 0.2325, "baseY": 0.014, - "h": 0.5031, + "h": 0.3146, "touches": { "reads": 0, "writes": 0, @@ -17279,6 +17750,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 17, + "existed": true, "floors": [ { "name": "readProjectFile", @@ -17451,17 +17923,17 @@ ] }, { - "index": 145, + "index": 149, "path": "test/analysis/livePanelLiveChannel.test.cjs", "name": "livePanelLiveChannel.test.cjs", "dir": "test/analysis", "loc": 193, - "x": -2.259, - "z": 0.3125, - "w": 0.1278, - "d": 0.1544, + "x": -2.2591, + "z": 0.3083, + "w": 0.1276, + "d": 0.1534, "baseY": 0.014, - "h": 0.3517, + "h": 0.2249, "touches": { "reads": 0, "writes": 0, @@ -17477,6 +17949,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 3, + "existed": true, "floors": [ { "name": "readBundle", @@ -17589,17 +18062,17 @@ ] }, { - "index": 146, + "index": 150, "path": "test/analysis/liveReloadClient.test.cjs", "name": "liveReloadClient.test.cjs", "dir": "test/analysis", "loc": 230, - "x": -1.3777, - "z": 0.8124, - "w": 0.1402, - "d": 0.1694, + "x": -1.3759, + "z": 0.8052, + "w": 0.14, + "d": 0.1684, "baseY": 0.014, - "h": 0.3803, + "h": 0.2418, "touches": { "reads": 0, "writes": 0, @@ -17615,6 +18088,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 14, + "existed": true, "floors": [ { "name": "createDataEntity", @@ -17709,17 +18183,17 @@ ] }, { - "index": 147, + "index": 151, "path": "test/analysis/offlineHistoricalDelta.test.cjs", "name": "offlineHistoricalDelta.test.cjs", "dir": "test/analysis", "loc": 581, - "x": -0.8136, - "z": 0.3031, - "w": 0.2274, - "d": 0.2748, + "x": -0.8123, + "z": 0.2989, + "w": 0.2272, + "d": 0.2732, "baseY": 0.014, - "h": 0.5808, + "h": 0.3607, "touches": { "reads": 0, "writes": 0, @@ -17735,6 +18209,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 45, + "existed": true, "floors": [ { "name": "loadExtensionDelta", @@ -17901,17 +18376,17 @@ ] }, { - "index": 148, + "index": 152, "path": "test/analysis/pointerPolicyRuntime.test.cjs", "name": "pointerPolicyRuntime.test.cjs", "dir": "test/analysis", "loc": 428, - "x": -2.0777, - "z": -0.4349, - "w": 0.1941, - "d": 0.2345, + "x": -2.0751, + "z": -0.4409, + "w": 0.1939, + "d": 0.2331, "baseY": 0.014, - "h": 0.5042, + "h": 0.3153, "touches": { "reads": 0, "writes": 0, @@ -17927,6 +18402,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 17, + "existed": true, "floors": [ { "name": "mockEntity", @@ -18069,17 +18545,17 @@ ] }, { - "index": 149, + "index": 153, "path": "test/analysis/profileConfigurationCommands.test.cjs", "name": "profileConfigurationCommands.test.cjs", "dir": "test/analysis", "loc": 186, - "x": -2.2578, - "z": -0.1737, - "w": 0.1253, - "d": 0.1514, + "x": -2.2579, + "z": -0.3349, + "w": 0.1251, + "d": 0.1505, "baseY": 0.014, - "h": 0.346, + "h": 0.2215, "touches": { "reads": 0, "writes": 0, @@ -18095,6 +18571,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 4, + "existed": true, "floors": [ { "name": "withProfileCommands", @@ -18147,17 +18624,17 @@ ] }, { - "index": 150, + "index": 154, "path": "test/analysis/projectEvolutionRuntime.test.cjs", "name": "projectEvolutionRuntime.test.cjs", "dir": "test/analysis", "loc": 561, - "x": -1.0468, - "z": 0.5833, - "w": 0.2233, - "d": 0.2699, + "x": -1.0453, + "z": 0.5775, + "w": 0.2231, + "d": 0.2682, "baseY": 0.014, - "h": 0.5715, + "h": 0.3552, "touches": { "reads": 0, "writes": 0, @@ -18173,6 +18650,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 30, + "existed": true, "floors": [ { "name": "loadRuntime", @@ -18387,17 +18865,17 @@ ] }, { - "index": 151, + "index": 155, "path": "test/analysis/pythonStderrProgress.test.cjs", "name": "pythonStderrProgress.test.cjs", "dir": "test/analysis", "loc": 133, - "x": -1.316, - "z": -1.071, - "w": 0.1047, - "d": 0.1265, + "x": -1.1934, + "z": -1.0669, + "w": 0.1046, + "d": 0.1258, "baseY": 0.014, - "h": 0.2988, + "h": 0.1935, "touches": { "reads": 0, "writes": 0, @@ -18413,6 +18891,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 3, + "existed": true, "floors": [ { "name": "writeFakeBackend", @@ -18447,17 +18926,17 @@ ] }, { - "index": 152, + "index": 156, "path": "test/analysis/pythonStderrStream.test.cjs", "name": "pythonStderrStream.test.cjs", "dir": "test/analysis", "loc": 49, - "x": -0.6726, - "z": 0.9592, - "w": 0.0605, - "d": 0.0731, + "x": -0.8889, + "z": 0.951, + "w": 0.0604, + "d": 0.0726, "baseY": 0.014, - "h": 0.1971, + "h": 0.1331, "touches": { "reads": 0, "writes": 0, @@ -18473,6 +18952,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 1, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -18507,17 +18987,17 @@ ] }, { - "index": 153, + "index": 157, "path": "test/analysis/reanalysisArchitecture.test.cjs", "name": "reanalysisArchitecture.test.cjs", "dir": "test/analysis", "loc": 163, - "x": -2.2536, - "z": -0.7974, - "w": 0.1168, - "d": 0.1411, + "x": -2.2537, + "z": -0.9549, + "w": 0.1166, + "d": 0.1402, "baseY": 0.014, - "h": 0.3265, + "h": 0.2099, "touches": { "reads": 0, "writes": 0, @@ -18533,6 +19013,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 12, + "existed": true, "floors": [ { "name": "readProjectFile", @@ -18591,17 +19072,17 @@ ] }, { - "index": 154, + "index": 158, "path": "test/analysis/roomAndGuideAssets.test.cjs", "name": "roomAndGuideAssets.test.cjs", "dir": "test/analysis", "loc": 109, - "x": -0.4467, - "z": -0.9414, - "w": 0.0941, - "d": 0.1136, + "x": -0.4458, + "z": -0.814, + "w": 0.094, + "d": 0.113, "baseY": 0.014, - "h": 0.2743, + "h": 0.1789, "touches": { "reads": 0, "writes": 0, @@ -18617,6 +19098,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 1, + "existed": true, "floors": [ { "name": "tempDir", @@ -18669,17 +19151,17 @@ ] }, { - "index": 155, + "index": 159, "path": "test/analysis/runtimeAssemblyParity.test.cjs", "name": "runtimeAssemblyParity.test.cjs", "dir": "test/analysis", "loc": 210, - "x": -1.8156, - "z": 0.8085, - "w": 0.1336, - "d": 0.1614, + "x": -1.8133, + "z": 0.8012, + "w": 0.1335, + "d": 0.1605, "baseY": 0.014, - "h": 0.3652, + "h": 0.2328, "touches": { "reads": 0, "writes": 0, @@ -18695,6 +19177,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 14, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -18783,17 +19266,17 @@ ] }, { - "index": 156, + "index": 160, "path": "test/analysis/runtimeSharedHelperSync.test.cjs", "name": "runtimeSharedHelperSync.test.cjs", "dir": "test/analysis", "loc": 518, - "x": -1.4995, - "z": 0.5779, - "w": 0.2143, - "d": 0.2589, + "x": -1.7201, + "z": 0.572, + "w": 0.2141, + "d": 0.2574, "baseY": 0.014, - "h": 0.5507, + "h": 0.3428, "touches": { "reads": 0, "writes": 0, @@ -18809,6 +19292,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 60, + "existed": true, "floors": [ { "name": "collectConfiguredIdsTable", @@ -19095,17 +19579,17 @@ ] }, { - "index": 157, + "index": 161, "path": "test/analysis/sceneReveal.test.cjs", "name": "sceneReveal.test.cjs", "dir": "test/analysis", "loc": 183, - "x": -2.2573, - "z": -0.3339, - "w": 0.1242, - "d": 0.1501, + "x": -2.2574, + "z": -0.4941, + "w": 0.1241, + "d": 0.1492, "baseY": 0.014, - "h": 0.3435, + "h": 0.22, "touches": { "reads": 0, "writes": 0, @@ -19121,6 +19605,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 15, + "existed": true, "floors": [ { "name": "constructor", @@ -19269,17 +19754,17 @@ ] }, { - "index": 158, + "index": 162, "path": "test/analysis/sessionRegistryCreate.test.cjs", "name": "sessionRegistryCreate.test.cjs", "dir": "test/analysis", "loc": 151, - "x": -2.1313, - "z": -1.0754, - "w": 0.1121, - "d": 0.1354, + "x": -2.0078, + "z": -1.0713, + "w": 0.112, + "d": 0.1346, "baseY": 0.014, - "h": 0.3157, + "h": 0.2035, "touches": { "reads": 0, "writes": 0, @@ -19295,6 +19780,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 5, + "existed": true, "floors": [ { "name": "silenceConsole", @@ -19335,17 +19821,17 @@ ] }, { - "index": 159, + "index": 163, "path": "test/analysis/singleFileRuntimeAssets.test.cjs", "name": "singleFileRuntimeAssets.test.cjs", "dir": "test/analysis", "loc": 97, - "x": -0.4495, - "z": -0.4621, - "w": 0.0883, - "d": 0.1067, + "x": -0.4487, + "z": -0.3376, + "w": 0.0882, + "d": 0.106, "baseY": 0.014, - "h": 0.261, + "h": 0.1711, "touches": { "reads": 0, "writes": 0, @@ -19361,6 +19847,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 4, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -19377,17 +19864,17 @@ ] }, { - "index": 160, + "index": 164, "path": "test/analysis/uiPolicy.test.cjs", "name": "uiPolicy.test.cjs", "dir": "test/analysis", "loc": 149, - "x": -2.0117, - "z": -1.0749, - "w": 0.1113, - "d": 0.1345, + "x": -1.8884, + "z": -1.0708, + "w": 0.1112, + "d": 0.1337, "baseY": 0.014, - "h": 0.3139, + "h": 0.2024, "touches": { "reads": 0, "writes": 0, @@ -19403,6 +19890,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 9, + "existed": true, "floors": [ { "name": "readProjectFile", @@ -19461,17 +19949,17 @@ ] }, { - "index": 161, + "index": 165, "path": "test/analysis/virtualScreenRuntime.test.cjs", "name": "virtualScreenRuntime.test.cjs", "dir": "test/analysis", "loc": 953, - "x": -1.826, - "z": -0.171, - "w": 0.2935, - "d": 0.3546, + "x": -1.8237, + "z": -0.1723, + "w": 0.2932, + "d": 0.3525, "baseY": 0.014, - "h": 0.7327, + "h": 0.4508, "touches": { "reads": 0, "writes": 0, @@ -19487,6 +19975,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 75, + "existed": true, "floors": [ { "name": "readProjectFile", @@ -19821,17 +20310,17 @@ ] }, { - "index": 162, + "index": 166, "path": "test/analysis/watcherExtensionContract.test.cjs", "name": "watcherExtensionContract.test.cjs", "dir": "test/analysis", "loc": 294, - "x": -0.5926, - "z": 0.1771, - "w": 0.1595, - "d": 0.1927, + "x": -0.5916, + "z": 0.1737, + "w": 0.1593, + "d": 0.1916, "baseY": 0.014, - "h": 0.4247, + "h": 0.2682, "touches": { "reads": 0, "writes": 0, @@ -19847,6 +20336,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 19, + "existed": true, "floors": [ { "name": "uniqueSorted", @@ -20001,17 +20491,17 @@ ] }, { - "index": 163, + "index": 167, "path": "test/analysis/workspaceSnapshotModel.test.cjs", "name": "workspaceSnapshotModel.test.cjs", "dir": "test/analysis", "loc": 28, - "x": -0.8979, - "z": 0.9491, - "w": 0.0438, - "d": 0.0529, + "x": -1.1139, + "z": 0.941, + "w": 0.0437, + "d": 0.0526, "baseY": 0.014, - "h": 0.1587, + "h": 0.1104, "touches": { "reads": 0, "writes": 0, @@ -20027,6 +20517,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 0, + "existed": true, "floors": [ { "name": "(anonymous)", @@ -20043,17 +20534,17 @@ ] }, { - "index": 164, + "index": 168, "path": "test/analysis/xrAnalysisTableRuntime.test.cjs", "name": "xrAnalysisTableRuntime.test.cjs", "dir": "test/analysis", "loc": 1469, - "x": -1.4883, - "z": -0.2149, - "w": 0.3663, - "d": 0.4426, + "x": -1.4864, + "z": -0.216, + "w": 0.3659, + "d": 0.4399, "baseY": 0.014, - "h": 0.9, + "h": 0.55, "touches": { "reads": 0, "writes": 0, @@ -20069,6 +20560,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 51, + "existed": true, "floors": [ { "name": "loadRuntimeSandbox", @@ -20469,17 +20961,17 @@ ] }, { - "index": 165, + "index": 169, "path": "test/analysis/xrChartDebugRuntime.test.cjs", "name": "xrChartDebugRuntime.test.cjs", "dir": "test/analysis", "loc": 536, - "x": -1.2754, - "z": 0.5802, - "w": 0.2181, - "d": 0.2636, + "x": -1.2737, + "z": 0.5743, + "w": 0.2179, + "d": 0.262, "baseY": 0.014, - "h": 0.5595, + "h": 0.3481, "touches": { "reads": 0, "writes": 0, @@ -20495,6 +20987,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 41, + "existed": true, "floors": [ { "name": "constructor", @@ -20811,17 +21304,17 @@ ] }, { - "index": 166, + "index": 170, "path": "test/analysis/xrChartMappingUiRuntime.test.cjs", "name": "xrChartMappingUiRuntime.test.cjs", "dir": "test/analysis", "loc": 1151, - "x": -1.8, - "z": 0.2112, - "w": 0.3233, - "d": 0.3907, + "x": -1.7977, + "z": 0.2075, + "w": 0.323, + "d": 0.3883, "baseY": 0.014, - "h": 0.8012, + "h": 0.4914, "touches": { "reads": 0, "writes": 0, @@ -20837,6 +21330,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 71, + "existed": true, "floors": [ { "name": "plain", @@ -21135,17 +21629,17 @@ ] }, { - "index": 167, + "index": 171, "path": "test/analysis/xrChartTableBounds.test.cjs", "name": "xrChartTableBounds.test.cjs", "dir": "test/analysis", "loc": 257, - "x": -0.9158, - "z": 0.8175, - "w": 0.1486, - "d": 0.1796, + "x": -0.9145, + "z": 0.8103, + "w": 0.1485, + "d": 0.1785, "baseY": 0.014, - "h": 0.3997, + "h": 0.2533, "touches": { "reads": 0, "writes": 0, @@ -21161,6 +21655,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 12, + "existed": true, "floors": [ { "name": "makeFakeBabiaAxisClass", @@ -21267,17 +21762,17 @@ ] }, { - "index": 168, + "index": 172, "path": "test/analysis/xrDataSource.test.cjs", "name": "xrDataSource.test.cjs", "dir": "test/analysis", "loc": 335, - "x": -0.5869, - "z": -0.6588, - "w": 0.1708, - "d": 0.2064, + "x": -0.586, + "z": -0.6572, + "w": 0.1706, + "d": 0.2051, "baseY": 0.014, - "h": 0.4507, + "h": 0.2835, "touches": { "reads": 0, "writes": 0, @@ -21293,6 +21788,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 20, + "existed": true, "floors": [ { "name": "readProjectFile", @@ -21417,17 +21913,17 @@ ] }, { - "index": 169, + "index": 173, "path": "test/analysis/xrFieldSchemaIntegration.test.cjs", "name": "xrFieldSchemaIntegration.test.cjs", "dir": "test/analysis", "loc": 112, - "x": -0.5477, - "z": -1.0654, - "w": 0.0954, - "d": 0.1153, + "x": -0.4452, + "z": -0.9372, + "w": 0.0953, + "d": 0.1146, "baseY": 0.014, - "h": 0.2775, + "h": 0.1808, "touches": { "reads": 0, "writes": 0, @@ -21443,6 +21939,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 8, + "existed": true, "floors": [ { "name": "readProjectFile", @@ -21489,17 +21986,17 @@ ] }, { - "index": 170, + "index": 174, "path": "test/analysis/xrMappingUiModel.test.cjs", "name": "xrMappingUiModel.test.cjs", "dir": "test/analysis", "loc": 195, - "x": -2.2594, - "z": 0.6407, - "w": 0.1285, - "d": 0.1552, + "x": -2.2595, + "z": 0.6344, + "w": 0.1283, + "d": 0.1543, "baseY": 0.014, - "h": 0.3533, + "h": 0.2258, "touches": { "reads": 0, "writes": 0, @@ -21515,6 +22012,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 34, + "existed": true, "floors": [ { "name": "buildCases", @@ -21561,17 +22059,17 @@ ] }, { - "index": 171, + "index": 175, "path": "test/analysis/xrPanelLayering.test.cjs", "name": "xrPanelLayering.test.cjs", "dir": "test/analysis", "loc": 53, - "x": -0.5332, - "z": 0.9608, - "w": 0.0632, - "d": 0.0764, + "x": -0.6813, + "z": 0.9527, + "w": 0.0631, + "d": 0.0759, "baseY": 0.014, - "h": 0.2034, + "h": 0.1369, "touches": { "reads": 0, "writes": 0, @@ -21587,6 +22085,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 4, + "existed": true, "floors": [ { "name": "listRuntimeFiles", @@ -21615,17 +22114,17 @@ ] }, { - "index": 172, + "index": 176, "path": "test/analysis/xrRobustnessPass.test.cjs", "name": "xrRobustnessPass.test.cjs", "dir": "test/analysis", "loc": 359, - "x": -0.9262, - "z": -0.8785, - "w": 0.1771, - "d": 0.214, + "x": -0.9184, + "z": -0.8756, + "w": 0.1769, + "d": 0.2127, "baseY": 0.014, - "h": 0.4651, + "h": 0.2921, "touches": { "reads": 0, "writes": 0, @@ -21641,6 +22140,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 16, + "existed": true, "floors": [ { "name": "log", @@ -21891,17 +22391,17 @@ ] }, { - "index": 173, + "index": 177, "path": "test/analysis/xrRoomRuntime.test.cjs", "name": "xrRoomRuntime.test.cjs", "dir": "test/analysis", "loc": 174, - "x": -2.2556, - "z": -0.4915, - "w": 0.1209, - "d": 0.1461, + "x": -2.2557, + "z": -0.6508, + "w": 0.1208, + "d": 0.1452, "baseY": 0.014, - "h": 0.336, + "h": 0.2155, "touches": { "reads": 0, "writes": 0, @@ -21917,6 +22417,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 6, + "existed": true, "floors": [ { "name": "mockBox", @@ -21975,17 +22476,17 @@ ] }, { - "index": 174, + "index": 178, "path": "test/analysis/xrRuntimeManifestAsymmetry.test.cjs", "name": "xrRuntimeManifestAsymmetry.test.cjs", "dir": "test/analysis", "loc": 393, - "x": -1.6845, - "z": -0.8837, - "w": 0.1857, - "d": 0.2243, + "x": -1.4888, + "z": -0.8807, + "w": 0.1855, + "d": 0.223, "baseY": 0.014, - "h": 0.4848, + "h": 0.3038, "touches": { "reads": 0, "writes": 0, @@ -22001,6 +22502,7 @@ "dependents": 0, "language": "JavaScript", "complexity": 40, + "existed": true, "floors": [ { "name": "unique", @@ -22161,37 +22663,37 @@ ] }, { - "index": 175, + "index": 179, "path": "test/analysis/dependencyGraphTooltip.test.cjs", "name": "dependencyGraphTooltip.test.cjs", "dir": "test/analysis", - "loc": 52, + "loc": 0, "x": 1.743, "z": -1.03, "w": 0.172, "d": 0.172, "baseY": 0, - "h": 0.2018, + "h": 0.04, "touches": { "reads": 0, - "writes": 1, + "writes": 2, "searches": 0, "executes": 0 }, "firstStep": 18, - "lastStep": 18, + "lastStep": 30, "turns": [ - 1 + 1, + 3 ], "created": true, - "deleted": false, + "deleted": true, "delta": { - "codeLines": 52, - "complexity": 2 + "codeLines": 58, + "complexity": 0 }, "dependents": 0, - "language": "JavaScript", - "complexity": 2, + "existed": false, "floors": [ { "name": "sampleGraph", @@ -22220,7 +22722,7 @@ ] }, { - "index": 176, + "index": 180, "path": "CHANGELOG.md", "name": "CHANGELOG.md", "dir": "", @@ -22248,143 +22750,204 @@ "codeLines": 2, "complexity": 0 }, - "dependents": 0 + "dependents": 0, + "existed": true + }, + { + "index": 181, + "path": "test/analysis/dependencyGraphFanTooltip.test.cjs", + "name": "dependencyGraphFanTooltip.test.cjs", + "dir": "test/analysis", + "loc": 52, + "x": 1.743, + "z": -0.59, + "w": 0.172, + "d": 0.172, + "baseY": 0, + "h": 0.136, + "touches": { + "reads": 0, + "writes": 1, + "searches": 0, + "executes": 0 + }, + "firstStep": 30, + "lastStep": 30, + "turns": [ + 3 + ], + "created": true, + "deleted": false, + "delta": { + "codeLines": 52, + "complexity": 2 + }, + "dependents": 0, + "language": "JavaScript", + "complexity": 2, + "existed": false, + "floors": [ + { + "name": "sampleGraph", + "lineStart": 6, + "lineEnd": 18, + "bornStep": 30 + }, + { + "name": "tooltipRowsFor", + "lineStart": 20, + "lineEnd": 31, + "bornStep": 30 + }, + { + "name": "(anonymous)", + "lineStart": 33, + "lineEnd": 44, + "bornStep": 30 + }, + { + "name": "(anonymous)", + "lineStart": 46, + "lineEnd": 57, + "bornStep": 30 + } + ] } ], "districts": [ { "path": "test/analysis", "depth": 1, - "x": -1.3616, - "z": -0.0721, - "w": 1.9767, - "d": 2.2059, + "x": -1.3606, + "z": -0.0729, + "w": 1.9789, + "d": 2.2043, "y": 0 }, { "path": "src/core", "depth": 1, - "x": 0.4742, - "z": -0.47, - "w": 1.6949, - "d": 1.41, + "x": 0.4754, + "z": -0.4672, + "w": 1.6931, + "d": 1.4157, "y": 0 }, { "path": "src/core/history", "depth": 2, - "x": 0.0342, - "z": -0.7462, - "w": 0.7699, - "d": 0.8033, + "x": 0.0358, + "z": -0.7488, + "w": 0.7691, + "d": 0.7985, "y": 0.014 }, { "path": "src/core/charts", "depth": 2, - "x": 0.8592, - "z": -0.7957, - "w": 0.88, - "d": 0.7043, + "x": 0.86, + "z": -0.798, + "w": 0.8791, + "d": 0.7001, "y": 0.014 }, { "path": "src/core/charts/processing", "depth": 3, - "x": 0.7109, - "z": -0.8844, - "w": 0.5386, - "d": 0.4728, + "x": 0.7118, + "z": -0.8861, + "w": 0.538, + "d": 0.4699, "y": 0.028 }, { "path": "src/core/charts/processing/placeholders", "depth": 4, - "x": 0.6298, - "z": -0.9761, - "w": 0.3315, - "d": 0.2351, + "x": 0.6308, + "z": -0.9773, + "w": 0.3312, + "d": 0.2336, "y": 0.042 }, { "path": "src/core/charts/settings", "depth": 3, - "x": 1.1285, - "z": -0.9502, - "w": 0.2965, - "d": 0.3412, + "x": 1.129, + "z": -0.9515, + "w": 0.2962, + "d": 0.3392, "y": 0.028 }, { "path": "src/core/server/analysis", "depth": 2, - "x": 0.737, - "z": -0.1178, - "w": 0.6358, - "d": 0.6514, + "x": 0.7447, + "z": -0.1171, + "w": 0.6485, + "d": 0.6616, "y": 0.014 }, { "path": "src/core/dependencies", "depth": 2, - "x": 0.2678, - "z": -0.2107, - "w": 0.3028, - "d": 0.2679, + "x": 0.2692, + "z": -0.2164, + "w": 0.3024, + "d": 0.2662, "y": 0.014 }, { "path": "templates/components", "depth": 1, - "x": 0.6124, - "z": 0.705, - "w": 1.9713, - "d": 0.94, + "x": 0.6134, + "z": 0.7078, + "w": 1.9691, + "d": 0.9343, "y": 0 }, { "path": "templates/components/codexr", "depth": 2, - "x": 0.332, - "z": 0.6668, - "w": 1.3657, - "d": 0.8093, + "x": 0.3334, + "z": 0.6698, + "w": 1.3642, + "d": 0.8044, "y": 0.014 }, { "path": "templates/components/codexr/dependency-graph/dependencyGraphRuntime", "depth": 3, - "x": 0.0113, - "z": 0.6668, - "w": 0.6794, - "d": 0.755, + "x": 0.0131, + "z": 0.6698, + "w": 0.6787, + "d": 0.7505, "y": 0.028 }, { "path": "templates/components/codexr/project-evolution/projectEvolutionRuntime", "depth": 3, - "x": 0.6717, - "z": 0.6476, - "w": 0.6414, - "d": 0.7166, + "x": 0.6727, + "z": 0.6507, + "w": 0.6407, + "d": 0.7123, "y": 0.028 }, { "path": "templates/components/livepanel", "depth": 2, - "x": 1.2928, - "z": 0.5211, - "w": 0.5559, - "d": 0.5179, + "x": 1.2931, + "z": 0.525, + "w": 0.5553, + "d": 0.5148, "y": 0.014 }, { "path": "templates/components/common", "depth": 2, - "x": 1.2952, - "z": 0.9639, - "w": 0.5607, - "d": 0.3679, + "x": 1.2955, + "z": 0.9652, + "w": 0.5601, + "d": 0.3656, "y": 0.014 } ], @@ -22439,6 +23002,24 @@ "complexity": 0 }, "stopReason": "end_turn" + }, + { + "index": 3, + "prompt": "Tidy up: drop the unused render budget notice, give the new test a clearer name and remove the old charts module.", + "startedAt": 1795856671000, + "endedAt": 1795856699000, + "stepStart": 29, + "stepEnd": 32, + "reads": 0, + "writes": 3, + "searches": 0, + "executes": 1, + "filesTouched": 4, + "delta": { + "codeLines": -5, + "complexity": 0 + }, + "stopReason": "end_turn" } ], "steps": [ @@ -22452,9 +23033,9 @@ "title": "Grep tooltip", "status": "done", "files": [ - 56, - 53, - 72, + 57, + 54, + 73, 0 ] }, @@ -22492,7 +23073,7 @@ "title": "Read edgesAndHighlights.js", "status": "done", "files": [ - 53 + 54 ], "subagent": true }, @@ -22506,7 +23087,7 @@ "title": "Glob test/analysis/dependency*", "status": "done", "files": [ - 103 + 107 ], "subagent": true }, @@ -22520,7 +23101,7 @@ "title": "Read componentCore.js", "status": "done", "files": [ - 49 + 50 ], "subagent": true }, @@ -22534,11 +23115,11 @@ "title": "Read tooltipsAndSelection.js", "status": "done", "files": [ - 56 + 57 ], "floors": [ { - "file": 56, + "file": 57, "floors": [ 11, 12, @@ -22557,7 +23138,7 @@ "title": "Read dependencyGraph.test.cjs", "status": "done", "files": [ - 103 + 107 ], "subagent": true }, @@ -22571,7 +23152,7 @@ "title": "Read scalesAndControls.js", "status": "done", "files": [ - 55 + 56 ], "subagent": true }, @@ -22625,7 +23206,7 @@ "title": "Glob **/datasetProjection*", "status": "done", "files": [ - 51 + 52 ] }, { @@ -22638,7 +23219,7 @@ "title": "Read datasetProjection.js", "status": "done", "files": [ - 51 + 52 ] }, { @@ -22651,7 +23232,7 @@ "title": "Read tooltipsAndSelection.js", "status": "done", "files": [ - 56 + 57 ] }, { @@ -22664,13 +23245,13 @@ "title": "Edit tooltipsAndSelection.js", "status": "done", "files": [ - 56 + 57 ], "added": 14, "removed": 3, "floors": [ { - "file": 56, + "file": 57, "floors": [ 15 ] @@ -22687,13 +23268,13 @@ "title": "Edit datasetProjection.js", "status": "done", "files": [ - 51 + 52 ], "added": 6, "removed": 1, "floors": [ { - "file": 51, + "file": 52, "floors": [ 13 ] @@ -22710,7 +23291,7 @@ "title": "Read dependencyGraph.test.cjs", "status": "done", "files": [ - 103 + 107 ] }, { @@ -22723,9 +23304,13 @@ "title": "Write dependencyGraphTooltip.test.cjs", "status": "done", "files": [ - 175 + 179 ], - "added": 58 + "added": 58, + "created": [ + 179 + ], + "deleted": [] }, { "actor": 0, @@ -22761,11 +23346,11 @@ "title": "Read tooltipsAndSelection.js", "status": "done", "files": [ - 56 + 57 ], "floors": [ { - "file": 56, + "file": 57, "floors": [ 14, 15 @@ -22783,13 +23368,13 @@ "title": "Edit tooltipsAndSelection.js", "status": "done", "files": [ - 56 + 57 ], "added": 2, "removed": 2, "floors": [ { - "file": 56, + "file": 57, "floors": [ 15 ] @@ -22819,9 +23404,9 @@ "title": "Grep fanIn", "status": "done", "files": [ - 69, + 70, 0, - 56 + 57 ] }, { @@ -22834,7 +23419,7 @@ "title": "Read dependencySummaryPanel.js", "status": "done", "files": [ - 69 + 70 ] }, { @@ -22847,13 +23432,13 @@ "title": "Edit dependencySummaryPanel.js", "status": "done", "files": [ - 69 + 70 ], "added": 21, "removed": 4, "floors": [ { - "file": 69, + "file": 70, "floors": [ 5, 6 @@ -22871,7 +23456,7 @@ "title": "Edit CHANGELOG.md", "status": "done", "files": [ - 176 + 180 ], "added": 2, "removed": 0 @@ -22888,31 +23473,114 @@ "files": [], "command": "npm run lint", "exitCode": 0 + }, + { + "actor": 0, + "seq": 29, + "turn": 3, + "at": 1795856675000, + "kind": "write", + "tool": "Edit", + "title": "Edit datasetProjection.js", + "status": "done", + "files": [ + 52 + ], + "added": 0, + "removed": 5, + "floors": [ + { + "file": 52, + "floors": [ + 24 + ] + } + ] + }, + { + "actor": 0, + "seq": 30, + "turn": 3, + "at": 1795856680000, + "kind": "write", + "tool": "Bash", + "title": "git mv test/analysis/dependencyGraphTooltip.test.cjs test/analysis/dependencyGraphFanTooltip.test.cjs", + "status": "done", + "files": [ + 179, + 181 + ], + "command": "git mv test/analysis/dependencyGraphTooltip.test.cjs test/analysis/dependencyGraphFanTooltip.test.cjs", + "exitCode": 0, + "created": [ + 181 + ], + "deleted": [ + 179 + ], + "moves": [ + [ + 179, + 181 + ] + ] + }, + { + "actor": 0, + "seq": 31, + "turn": 3, + "at": 1795856685000, + "kind": "write", + "tool": "Bash", + "title": "git rm templates/components/livepanel/charts.js", + "status": "done", + "files": [ + 68 + ], + "command": "git rm templates/components/livepanel/charts.js", + "exitCode": 0, + "created": [], + "deleted": [ + 68 + ] + }, + { + "actor": 0, + "seq": 32, + "turn": 3, + "at": 1795856694000, + "kind": "execute", + "tool": "Bash", + "title": "npm run test:unit", + "status": "done", + "files": [], + "command": "npm run test:unit", + "exitCode": 0 } ], "transitions": [ { - "from": 53, - "to": 49, + "from": 54, + "to": 50, "count": 1 }, { - "from": 49, - "to": 56, + "from": 50, + "to": 57, "count": 1 }, { - "from": 56, - "to": 103, + "from": 57, + "to": 107, "count": 1 }, { - "from": 103, - "to": 55, + "from": 107, + "to": 56, "count": 1 }, { - "from": 55, + "from": 56, "to": 0, "count": 1 }, @@ -22928,79 +23596,94 @@ }, { "from": 1, - "to": 51, + "to": 52, "count": 1 }, { - "from": 51, - "to": 56, + "from": 52, + "to": 57, "count": 1 }, { - "from": 56, - "to": 51, + "from": 57, + "to": 52, "count": 1 }, { - "from": 51, - "to": 103, + "from": 52, + "to": 107, "count": 1 }, { - "from": 103, - "to": 175, + "from": 107, + "to": 179, "count": 1 }, { - "from": 175, - "to": 56, + "from": 179, + "to": 57, "count": 1 }, { - "from": 56, - "to": 69, + "from": 57, + "to": 70, + "count": 1 + }, + { + "from": 70, + "to": 180, "count": 1 }, { - "from": 69, - "to": 176, + "from": 180, + "to": 52, + "count": 1 + }, + { + "from": 52, + "to": 179, + "count": 1 + }, + { + "from": 179, + "to": 68, "count": 1 } ], "metrics": { - "turns": 3, - "steps": 29, - "footprint": 13, + "turns": 4, + "steps": 33, + "footprint": 15, "reads": 13, - "writes": 6, + "writes": 9, "searches": 4, - "executes": 3, + "executes": 4, "failures": 1, - "readWriteRatio": 2.17, + "readWriteRatio": 1.44, "revisitRate": 0.231, "blindWrites": 1, "unverifiedEdits": 0, "unreadDependents": 1, - "filesCreated": 1, - "filesDeleted": 0, - "durationMs": 237000, + "filesCreated": 2, + "filesDeleted": 2, + "durationMs": 295000, "delta": { - "codeLines": 87, - "complexity": 10 + "codeLines": -227, + "complexity": -44 } }, "blastRadius": [ { - "file": 51, + "file": 52, "dependents": [ - 55 + 56 ] }, { - "file": 56, + "file": 57, "dependents": [ - 57, - 49 + 58, + 50 ] } ], diff --git a/apps/vscode-extension/test/manual/agent-flow/sampleSession.cjs b/apps/vscode-extension/test/manual/agent-flow/sampleSession.cjs index fe970695..b30c5345 100644 --- a/apps/vscode-extension/test/manual/agent-flow/sampleSession.cjs +++ b/apps/vscode-extension/test/manual/agent-flow/sampleSession.cjs @@ -18,6 +18,9 @@ const TOOLTIPS = 'templates/components/codexr/dependency-graph/dependencyGraphRu const PROJECTION = 'templates/components/codexr/dependency-graph/dependencyGraphRuntime/datasetProjection.js'; const SUMMARY = 'templates/components/livepanel/dependencySummaryPanel.js'; const NEW_TEST = 'test/analysis/dependencyGraphTooltip.test.cjs'; +// The last turn tidies up: the test is renamed, an old module removed (the timeline lifecycle). +const MOVED_TEST = 'test/analysis/dependencyGraphFanTooltip.test.cjs'; +const REMOVED_MODULE = 'templates/components/livepanel/charts.js'; /** * The lines each step read or wrote (the function floors), as a Claude Code @@ -38,6 +41,8 @@ const SAMPLE_LINES = { { oldStart: 141, oldLines: 1, newStart: 141, newLines: 1, added: [[141, 141]], removedAt: [141] }, { oldStart: 149, oldLines: 1, newStart: 149, newLines: 18, added: [[150, 166]] }, ], removedIdentifiers: ['rows'] }], + // renderBudgetNotice (5 lines after the earlier edit) is deleted: its floor comes down. + dropNotice: [{ path: PROJECTION, hunks: [{ oldStart: 483, oldLines: 5, newStart: 482, newLines: 0, removedAt: [483], removedDefs: [['renderBudgetNotice', 483]] }], removedIdentifiers: ['renderBudgetNotice', 'notice'] }], }; /** Shifts the functions below `after` by `delta` lines (a function spanning it grows). */ @@ -69,9 +74,11 @@ function sampleFunctions(root, folders) { const files = folders.filter((folder) => fs.existsSync(path.join(root, folder))).flatMap((folder) => backendFunctions(root, folder)); const edit = (rel, change) => { const entry = files.find((file) => file.path === rel); if (entry) { entry.functions = change(entry.functions); } }; edit(TOOLTIPS, (list) => [...shiftFunctions(list, 244, 13), { name: 'fanInOutRows', lineStart: 246, lineEnd: 257 }]); - edit(PROJECTION, (list) => shiftFunctions(list, 200, 5)); + edit(PROJECTION, (list) => shiftFunctions(shiftFunctions(list, 200, 5).filter((fn) => fn.name !== 'renderBudgetNotice'), 487, -5)); edit(SUMMARY, (list) => [...shiftFunctions(list, 149, 17), { name: 'fanRows', lineStart: 151, lineEnd: 165 }]); - files.push({ path: NEW_TEST, functions: [ + const removed = files.findIndex((file) => file.path === REMOVED_MODULE); + if (removed >= 0) { files.splice(removed, 1); } + files.push({ path: MOVED_TEST, functions: [ { name: 'sampleGraph', lineStart: 6, lineEnd: 18 }, { name: 'tooltipRowsFor', lineStart: 20, lineEnd: 31 }, { name: '(anonymous)', lineStart: 33, lineEnd: 44 }, @@ -149,6 +156,17 @@ function sampleEvents(root) { step('write', 'Edit', ['CHANGELOG.md'], { fields: { added: 2, removed: 0 } }); step('execute', 'Bash', [], { title: 'npm run lint', fields: { command: 'npm run lint' }, update: { exitCode: 0 }, wait: 12 }); events.push({ type: 'turn-end', at: tick(4), stopReason: 'end_turn' }); + + // Every kind of change to the tree, for the timeline: a function removed, + // a file moved and a file deleted by shell commands. + events.push({ type: 'turn-start', at: tick(30), prompt: 'Tidy up: drop the unused render budget notice, give the new test a clearer name and remove the old charts module.' }); + step('write', 'Edit', [PROJECTION], { fields: { added: 0, removed: 5 }, lines: SAMPLE_LINES.dropNotice }); + const mv = `git mv ${NEW_TEST} ${MOVED_TEST}`; + step('write', 'Bash', [NEW_TEST, MOVED_TEST], { title: mv, fields: { command: mv, created: [abs(MOVED_TEST)], deleted: [abs(NEW_TEST)] }, update: { exitCode: 0 } }); + const rm = `git rm ${REMOVED_MODULE}`; + step('write', 'Bash', [REMOVED_MODULE], { title: rm, fields: { command: rm, deleted: [abs(REMOVED_MODULE)] }, update: { exitCode: 0 } }); + step('execute', 'Bash', [], { title: 'npm run test:unit', fields: { command: 'npm run test:unit' }, update: { exitCode: 0 }, wait: 8 }); + events.push({ type: 'turn-end', at: tick(4), stopReason: 'end_turn' }); return events; } @@ -185,7 +203,9 @@ if (require.main === module) { bump('templates/components/codexr/dependency-graph/dependencyGraphRuntime/tooltipsAndSelection.js', 11, 3); bump('templates/components/codexr/dependency-graph/dependencyGraphRuntime/datasetProjection.js', 5, 1); bump('templates/components/livepanel/dependencySummaryPanel.js', 17, 4); - current.push({ path: 'test/analysis/dependencyGraphTooltip.test.cjs', loc: 52, complexity: 2, language: 'JavaScript' }); + bump('templates/components/codexr/dependency-graph/dependencyGraphRuntime/datasetProjection.js', -5, 0); + current.push({ path: MOVED_TEST, loc: 52, complexity: 2, language: 'JavaScript' }); + current.splice(current.findIndex((file) => file.path === REMOVED_MODULE), 1); const edges = [ ['templates/components/codexr/dependency-graph/dependencyGraphRuntime/viewLifecycle.js', 'templates/components/codexr/dependency-graph/dependencyGraphRuntime/tooltipsAndSelection.js'], ['templates/components/codexr/dependency-graph/dependencyGraphRuntime/componentCore.js', 'templates/components/codexr/dependency-graph/dependencyGraphRuntime/tooltipsAndSelection.js'], @@ -208,6 +228,7 @@ if (require.main === module) { console.log(`wrote ${out}: ${dataset.files.length} files, ${dataset.steps.length} steps, ${dataset.turns.length} turns`); console.log(JSON.stringify(dataset.metrics)); const floors = dataset.files.reduce((sum, file) => sum + (file.floors?.length ?? 0), 0); - const born = dataset.files.flatMap((file) => (file.floors ?? []).filter((floor) => floor.bornStep >= 0).map((floor) => `${file.name}:${floor.name}@${floor.bornStep}`)); + const born = dataset.files.flatMap((file) => (file.floors ?? []).filter((floor) => floor.bornStep >= 0 || floor.diedStep !== undefined).map((floor) => `${file.name}:${floor.name}@${floor.bornStep}${floor.diedStep !== undefined ? `-${floor.diedStep}` : ''}`)); + console.log(`lifecycle: ${dataset.steps.filter((step) => step.created || step.deleted).map((step) => `${step.seq}:+${JSON.stringify(step.created)}-${JSON.stringify(step.deleted)}${step.moves ? ` moves ${JSON.stringify(step.moves)}` : ''}`).join(' ')}`); console.log(`floors: ${floors}; new: ${born.join(', ')}; steps with floor detail: ${dataset.steps.filter((step) => step.floors).map((step) => `${step.seq}:${JSON.stringify(step.floors)}`).join(' ')}`); } diff --git a/apps/vscode-extension/test/runners/run-agent-flow-harness.cjs b/apps/vscode-extension/test/runners/run-agent-flow-harness.cjs index 947f5e2e..132b9380 100644 --- a/apps/vscode-extension/test/runners/run-agent-flow-harness.cjs +++ b/apps/vscode-extension/test/runners/run-agent-flow-harness.cjs @@ -526,7 +526,13 @@ async function runScenario(browser, port) { }); await sleep(700); state = await snapshot(page); - const expectedRings = sample.files.reduce((sum, file) => sum + file.turns.length, 0); + // A file gone at the end of the session (deleted, or moved away) carries no rings. + const goneAtEnd = new Set(); + sample.steps.forEach((step) => { + (step.deleted || []).forEach((index) => goneAtEnd.add(index)); + (step.created || []).forEach((index) => goneAtEnd.delete(index)); + }); + const expectedRings = sample.files.reduce((sum, file) => sum + (goneAtEnd.has(file.index) ? 0 : file.turns.length), 0); assert.equal(state.turnRings, expectedRings); await shot(page, '10-turn-rings'); await page.evaluate(() => window.CodeXRAgentFlowRuntime.setToggle('rings', false)); @@ -536,6 +542,61 @@ async function runScenario(browser, port) { await sleep(700); await shot(page, '11-controller-panel'); + // (f) The timeline invariant: the city at a step is the same whether the + // playhead jumped there, played into it from the step before, or stepped + // back to it. Every building, floor, colour, fade, foundation, hazard, + // scaffold, ghost and worker position is compared, step by step, with all + // animations run to their end. Any action that draws something not + // derived from the step's state breaks this. + await page.evaluate(() => window.CodeXRAgentFlowHarness.camera('overview')); + const at = (mode, index) => page.evaluate(([m, i]) => { + const runtime = window.CodeXRAgentFlowRuntime; + const hooks = runtime.__testing; + if (m === 'seek') { runtime.seek(i); } + if (m === 'play') { runtime.seek(i - 1); hooks.settleView(); runtime.stepForward(); } + if (m === 'back') { runtime.seek(Math.min(i + 2, runtime.getState().steps - 1)); hooks.settleView(); while (runtime.getState().stepIndex > i) { runtime.stepBack(); hooks.settleView(); } } + hooks.settleView(); + return hooks.sceneSnapshot(); + }, [mode, index]); + const firstDifference = (a, b, where = '') => { + if (JSON.stringify(a) === JSON.stringify(b)) { return null; } + if (a && b && typeof a === 'object' && typeof b === 'object') { + for (const key of new Set([...Object.keys(a), ...Object.keys(b)])) { + const found = firstDifference(a[key], b[key], `${where}.${key}`); + if (found) { return found; } + } + } + return `${where}: ${JSON.stringify(a)} vs ${JSON.stringify(b)}`; + }; + const timeline = []; + for (let index = 0; index < sample.steps.length; index += 1) { + const jumped = await at('seek', index); + const played = await at('play', index); + const back = await at('back', index); + assert.equal(firstDifference(jumped, played), null, `step ${index}: playing into it draws what seeking draws`); + assert.equal(firstDifference(jumped, back), null, `step ${index}: stepping back to it draws what seeking draws`); + timeline.push(jumped); + } + // The lifecycle the sample's last turn exercises, read off the same snapshots. + const fileIndex = (suffix) => sample.files.findIndex((file) => file.path.endsWith(suffix)); + const standing = (index, file) => timeline[index].heights[file] > 0.0005 && !timeline[index].demolished.includes(String(file)); + const lifecycleSteps = sample.steps.filter((step) => step.created || step.deleted); + const createdTest = fileIndex('/dependencyGraphTooltip.test.cjs'); + const movedTest = fileIndex('/dependencyGraphFanTooltip.test.cjs'); + const removedModule = fileIndex('livepanel/charts.js'); + const createStep = lifecycleSteps.find((step) => step.created?.includes(createdTest)).seq; + const moveStep = lifecycleSteps.find((step) => step.moves?.length).seq; + const removeStep = lifecycleSteps.find((step) => step.deleted?.includes(removedModule)).seq; + assert.ok(!standing(createStep - 1, createdTest) && standing(createStep, createdTest), 'a created file is not there before its step'); + assert.ok(standing(moveStep - 1, createdTest) && !standing(moveStep, createdTest), 'a moved file leaves its old path in the move'); + assert.ok(!standing(moveStep - 1, movedTest) && standing(moveStep, movedTest), 'and appears at its new path in the same step'); + assert.ok(standing(removeStep - 1, removedModule) && !standing(removeStep, removedModule), 'a deleted file stands until its step'); + const projection = fileIndex('/datasetProjection.js'); + const notice = sample.files[projection].floors.findIndex((floor) => floor.name === 'renderBudgetNotice'); + const noticeDies = sample.files[projection].floors[notice].diedStep; + assert.ok(timeline[noticeDies - 1].floors[projection][notice][0] > 0.5, 'a removed function has its floor before the step that removes it'); + assert.equal(timeline[noticeDies].floors[projection][notice][0], 0, 'and none from that step on'); + // Follow live: a newer revision with three more steps animates them in. await page.evaluate(() => { window.CodeXRAgentFlowHarness.camera('overview'); window.CodeXRAgentFlowRuntime.seek(1000); }); await sleep(300); diff --git a/docs/agent-flow/test-guide.md b/docs/agent-flow/test-guide.md index 8bf989a0..102c1437 100644 --- a/docs/agent-flow/test-guide.md +++ b/docs/agent-flow/test-guide.md @@ -186,3 +186,24 @@ Design: [legends.md](legends.md). Story #419. 6. The current-step label (file and verb) also floats in that band, with its own line down to the building. 7. XR headset: the same with the controller ray and trigger. 8. Code-XR IDE: the same in the scene pane. + +## Timeline: the city as it was at every step + +Design: [timeline.md](timeline.md). The sample session's last turn tidies up: +it removes `renderBudgetNotice` from `datasetProjection.js`, `git mv`s the +new test to `dependencyGraphFanTooltip.test.cjs` and `git rm`s +`livepanel/charts.js`. + +1. Open the sample (or a real session where the agent created, moved or + deleted files) and seek to the start: files the session created are not + there, files it deleted stand. +2. Press Play. Each change happens in its own step: + - a created file rises from a foundation; + - a moved file comes down at its old path and rises at the new one; + - a deleted file crumbles; + - a new function's floor grows; + - a deleted function's floor shrinks away. +3. Seek back to any point: the city is exactly as it was there. Press Next + and Previous around a change, and it comes and goes the same way. +4. In a real Claude Code or Codex session, ask the agent to run `rm`, + `git mv` or `cp` on a file, and check that the building follows. diff --git a/docs/agent-flow/timeline.md b/docs/agent-flow/timeline.md new file mode 100644 index 00000000..733da019 --- /dev/null +++ b/docs/agent-flow/timeline.md @@ -0,0 +1,110 @@ +# Agent Flow timeline: the city as it was at every step + +Story #413 (epic #319), follow-up from Adrián's manual test (2026-12-02). + +The Agent Flow timeline is time travel through the agent's chat. Whatever +the playhead's position, the city shows the project as it was at that point: +which files exist, how tall each one is, which functions (floors) it has, what +the agent had read and written so far. Playing forward applies each step's +changes, and you watch them happen. Seeking or stepping back shows the earlier +state. + +## One state per step + +The scene never stores history of its own. `stateAt(dataset, step)` in +`timelineModel.js` folds the steps up to the playhead into one state. That +state holds touches, heights, the lifecycle, floor touches, heat and the +legend values. Everything the scene draws is painted from it: + +- buildings +- floors +- colours +- see-through fades +- foundations and hazards +- scaffolds +- ghosts +- worker positions + +A forward step animates from the previous state to the new one. A seek or a +step back paints the new state at once. Both end at the same picture. + +## The lifecycle every action reduces to + +Whatever tool the agent used, a change to the tree reaches the steps as +`createdPaths` and `deletedPaths`. `agentFlowLifecycle.ts` (core, shared by +the IDE and the extension) turns those lists into three things: + +- Per step: `created` and `deleted` file indexes, and `moves` as + `[from, to]` pairs (a delete and a create of the same name in one step). +- Per file: `existed`, false when a step of the session created the file + before anything else touched it. +- For the floors: the moves, so a file that was moved keeps its functions + until the move. + +In the runtime, `applyLifecycle` applies the per-step lists. A write to a file +also brings it back if it had been deleted. Datasets from before this change, +which have no per-step lists, fall back to the old rule: a created file +appears at its first step and a deleted file goes at its last. + +### Where the lists come from + +| Source | Created | Deleted | Moved | +|---|---|---|---| +| Claude Code `Write` (create) | yes | | | +| Codex `apply_patch` | Add File | Delete File | Update + Move to | +| ACP (IDE agents) | new-file diff | `delete` tool | | +| Shell, any agent (`shellCommandClassifier.ts`) | `cp`, `touch`, `New-Item`, `Copy-Item`, destination of a move | `rm`, `git rm`, `del`, `Remove-Item`, `unlink` | `mv`, `git mv`, `move`, `Move-Item`, `Rename-Item` | + +The shell classifier also marks the files written by `>`, `>>`, `tee`, +`sed -i` and `Set-Content` as written. It ignores `git rm --cached`, stderr +redirects and `/dev/null`. + +## Functions that come and go + +A floor carries `bornStep` (set when the agent wrote the function) and +`diedStep`. A write whose removed lines defined a function the file no +longer has gives that function a floor that stands until the step that +removed it. The floor sits at the point where the function was, and it +shrinks away when that step plays. Function definitions are recognised on +the patch lines by `definedFunctionName` (`lineTouches.ts`). It covers JS/TS, +Python, Rust, Go, C-family methods and bound arrows, on a best-effort basis. + +## The rule for anything new + +A new action, tool or agent source must do two things: + +1. Report its effect on the tree through `created` / `deleted` on the step + event (and its lines through `lines` when it knows them). +2. Draw only from the state `stateAt` gives for the step. A per-file or + per-step field the scene needs belongs in `initialFileState` / + `applyStepToFile`, never in something the animation accumulates. + +Two checks enforce the rule: + +- `test/analysis/agentFlowTimeline.test.cjs` covers the classifier, the + lifecycle, the dying floors and `stateAt` for create, delete, move and + recreate. +- Section (f) of the Agent Flow harness (`npm run test:harnesses`) is the + **timeline invariant**. For every step of the sample session, it compares + the whole scene (`__testing.sceneSnapshot()`, with tweens run to the end by + `__testing.settleView()`) reached three ways: seeking to the step, playing + into it from the step before, and stepping back to it. The three must be + identical. The sample's last turn removes a function, `git mv`s a file and + `git rm`s another, so the lifecycle is part of that comparison. + +The invariant has already caught two bugs: + +- The city's tweens finished in one frame, because A-Frame called the city's + `tick`. +- See-through kept a fade computed halfway through a growth. + +## Known limits + +- **Commands that change files without naming them** cannot be read from the + command alone: formatters (`prettier --write`), `git checkout`, `git stash` + and code generators. Comparing with `git diff` when each turn closes is the + planned next step. +- **A file deleted by the session** has no floors before its deletion, + because its functions are not on disk any more. The exception is a moved + file, which takes the floors of its new path. +- **Shell paths after a `cd`** are resolved from the session root.