# extendify/3.2.1/src/Agent/lib/canvas-views.js

Extendify, version 3.2.1. 18 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.2.1/code/src/Agent/lib/canvas-views.js
- Raw: https://pluginprobe.com/plugins/extendify/3.2.1/raw/src/Agent/lib/canvas-views.js
- Modified: 2026-08-27T17:39:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.2.1/code/src/Agent/lib/canvas-views.js#L10-L20`.

```javascript
// No seat means a modal of the canvas alone.
// dims 'agent' puts the agent window behind the scrim along with the page.
const VIEWS = {
	assisted: { assist: true, seat: 'beside', dims: 'page' },
	'assisted-modal': { assist: true, seat: 'modal', dims: 'page' },
	simple: { assist: false, seat: null, dims: 'agent' },
};

// An unknown or absent view renders whenFinished inline in the transcript.
export const canvasView = (name) => VIEWS[name] ?? null;

// Only the docked sidebar can widen for a pane; mobile has room for neither.
export const canvasSeat = (seat, { mode, isMobile }) => {
	if (!seat || isMobile) return null;
	if (seat === 'modal') return 'modal';
	return mode === 'docked-left' ? 'beside' : 'modal';
};

```
