Consolidate Odysseus agent harness and tool contracts

This commit is contained in:
pewdiepie-archdaemon
2026-09-17 10:07:40 +00:00
parent 84aa9a91de
commit 218d762427
229 changed files with 28899 additions and 1551 deletions
+2 -3
View File
@@ -1,6 +1,7 @@
/** Rectangle and ellipse marquee interaction producing a document-space mask. */
import { state } from '../state.js';
import { selectionModeForEvent } from '../selection-modifiers.js';
import { canvasCoords } from '../canvas-coords.js';
import {
createMarqueeMask,
@@ -60,9 +61,7 @@ export function createMarqueeTool({
gesture.begin(e, { mode: 'move' }, { captureTarget: e.currentTarget });
return;
}
pendingMode = state.wandMode || 'replace';
if (e.shiftKey) pendingMode = 'add';
else if (e.altKey) pendingMode = 'subtract';
pendingMode = selectionModeForEvent(e, state.wandMode || 'replace');
state.marqueeStart = coords;
state.marqueeRect = normalizeConstrainedSelectionRect(
coords,