@selvajs/mcp 0.2.0-beta.5 → 0.2.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/dist/capture.d.ts +43 -8
- package/dist/capture.d.ts.map +1 -1
- package/dist/capture.js +40 -13
- package/dist/capture.js.map +1 -1
- package/dist/views/capture.html +52 -52
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -137,11 +137,15 @@ that call. `renderViewForm` from `@selvajs/mcp/view` draws the same form in a vi
|
|
|
137
137
|
|
|
138
138
|
`captureSolve(response, { views, width, height, grid, look, background, hdr })` from
|
|
139
139
|
`@selvajs/mcp/capture` draws a Rhino.Compute response in the same viewer as the 3D view, in a
|
|
140
|
-
headless Chromium, and resolves to
|
|
141
|
-
|
|
140
|
+
headless Chromium, and resolves to base64 PNGs for a tool's `images`. `views` takes several
|
|
141
|
+
preset views of one scene, `default` being the saved `camera`; `cameras` takes free ones
|
|
142
|
+
(`azimuth`, `elevation`, `zoom`, `target`). Each extra view costs a render, not a solve. `sheet`
|
|
143
|
+
joins them into one labelled grid. The camera fits what is drawn unless `frame: false`. `hide`
|
|
144
|
+
leaves out layers or object names, and `cutaway` leaves out, per camera, the tall thin walls
|
|
145
|
+
between it and the middle of the scene; the result lists the layers drawn. `hdr` is the environment
|
|
142
146
|
map as a URL; the page loads nothing from an origin, so a `data:` URL is the reliable form. Captures run one at a time on one browser, which closes after
|
|
143
147
|
two idle minutes. It needs the optional peer `playwright-core` and a browser
|
|
144
|
-
(`npx playwright install --with-deps chromium`, or `executablePath`); without them it throws
|
|
148
|
+
(`npx playwright install --with-deps chromium`, an installed Chrome, Edge or distro Chromium, or `executablePath`); without them it throws
|
|
145
149
|
`CaptureUnavailableError`, whose message says so. A bundled host passes the page as `html`,
|
|
146
150
|
since bundling moves `dist/views/capture.html` away from the module that reads it: with Vite,
|
|
147
151
|
`() => import('@selvajs/mcp/views/capture.html?raw').then((m) => m.default)`.
|
package/dist/capture.d.ts
CHANGED
|
@@ -1,10 +1,33 @@
|
|
|
1
1
|
/** A camera direction, as Selva's viewer names them; `default` is `camera`, or iso without one. */
|
|
2
2
|
export type CaptureView = 'default' | 'iso' | 'top' | 'front' | 'back' | 'left' | 'right' | 'bottom';
|
|
3
|
+
export interface CaptureCamera {
|
|
4
|
+
view?: CaptureView;
|
|
5
|
+
/** Degrees around the up axis: 0 looks from the front, 90 from the right, 180 from the back. Overrides `view`. */
|
|
6
|
+
azimuth?: number;
|
|
7
|
+
/** Degrees above the horizon, -89 to 89. Default 30 when `azimuth` is set. */
|
|
8
|
+
elevation?: number;
|
|
9
|
+
/** 1 fits the geometry; 2 is twice as close. Default 1. */
|
|
10
|
+
zoom?: number;
|
|
11
|
+
/** World point to look at, in model units. Default the middle of what is drawn. */
|
|
12
|
+
target?: [number, number, number];
|
|
13
|
+
/** Names the picture; defaults to the view or the angles. */
|
|
14
|
+
label?: string;
|
|
15
|
+
}
|
|
3
16
|
export interface CaptureOptions {
|
|
4
|
-
/** One view; ignored when `views` is given. Default `default`. */
|
|
17
|
+
/** One view; ignored when `views` or `cameras` is given. Default `default`. */
|
|
5
18
|
view?: CaptureView;
|
|
6
|
-
/** Several views
|
|
19
|
+
/** Several preset views, a picture each; ignored when `cameras` is given. */
|
|
7
20
|
views?: CaptureView[];
|
|
21
|
+
/** One picture per camera, drawn from the same scene. Costs a render each, not a solve. */
|
|
22
|
+
cameras?: CaptureCamera[];
|
|
23
|
+
/** Layers or object names to leave out. A layer hides its sublayers: `Room` hides `Room/Walls`. */
|
|
24
|
+
hide?: string[];
|
|
25
|
+
/** Per camera, leave out tall thin walls standing between the camera and the middle of the scene. */
|
|
26
|
+
cutaway?: boolean;
|
|
27
|
+
/** Default true: fit the camera tightly to what is drawn. False keeps the viewer's looser framing. */
|
|
28
|
+
frame?: boolean;
|
|
29
|
+
/** One picture with every camera in a labelled grid, instead of one per camera. */
|
|
30
|
+
sheet?: boolean;
|
|
8
31
|
/** Pixels. Default 1200 × 800. */
|
|
9
32
|
width?: number;
|
|
10
33
|
height?: number;
|
|
@@ -27,13 +50,16 @@ export interface CaptureOptions {
|
|
|
27
50
|
* The HDR environment the viewer lights with, as a URL (`data:` works: the page loads no
|
|
28
51
|
* origin). Without it the viewer generates its lighting, which reads flatter.
|
|
29
52
|
*/
|
|
30
|
-
hdr?: () => Promise<string>;
|
|
53
|
+
hdr?: () => Promise<string | undefined>;
|
|
31
54
|
/**
|
|
32
55
|
* The capture page. Defaults to `dist/views/capture.html` beside this module, which a bundler
|
|
33
56
|
* that moves this module breaks: a bundled host passes the file's text instead.
|
|
34
57
|
*/
|
|
35
58
|
html?: () => Promise<string>;
|
|
36
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* A Chromium or Chrome to launch. Unset: Playwright's own, else an installed Chrome, Edge or
|
|
61
|
+
* distro Chromium.
|
|
62
|
+
*/
|
|
37
63
|
executablePath?: string;
|
|
38
64
|
/** Default 60 s, launch included. */
|
|
39
65
|
timeoutMs?: number;
|
|
@@ -43,13 +69,22 @@ export interface CaptureOptions {
|
|
|
43
69
|
*/
|
|
44
70
|
signal?: AbortSignal;
|
|
45
71
|
}
|
|
72
|
+
export interface CaptureImage {
|
|
73
|
+
/** Base64 PNG. */
|
|
74
|
+
png: string;
|
|
75
|
+
label: string;
|
|
76
|
+
/** Layers or names the cutaway left out of this picture. */
|
|
77
|
+
cut: string[];
|
|
78
|
+
}
|
|
46
79
|
export interface Capture {
|
|
47
|
-
/**
|
|
80
|
+
/** The first picture, or the sheet. Empty when nothing was drawn. */
|
|
48
81
|
png: string;
|
|
49
|
-
/**
|
|
50
|
-
|
|
51
|
-
/** Objects drawn. Zero means the response had no display geometry and
|
|
82
|
+
/** One per camera in the order asked, or the one sheet. */
|
|
83
|
+
images: CaptureImage[];
|
|
84
|
+
/** Objects drawn. Zero means the response had no display geometry and there are no pictures. */
|
|
52
85
|
drawn: number;
|
|
86
|
+
/** Every layer drawn, the names `hide` takes. */
|
|
87
|
+
layers: string[];
|
|
53
88
|
}
|
|
54
89
|
/** Thrown when no browser can be launched; its message says how to install one. */
|
|
55
90
|
export declare class CaptureUnavailableError extends Error {
|
package/dist/capture.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../src/capture.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../src/capture.ts"],"names":[],"mappings":"AAGA,mGAAmG;AACnG,MAAM,MAAM,WAAW,GACtB,SAAS,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE5E,MAAM,WAAW,aAAa;IAC7B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,kHAAkH;IAClH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mFAAmF;IACnF,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC9B,+EAA+E;IAC/E,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,2FAA2F;IAC3F,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,mGAAmG;IACnG,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,qGAAqG;IACrG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sGAAsG;IACtG,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,mFAAmF;IACnF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kCAAkC;IAClC,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mB,GAAG,OAAO,CAAC,OAAO,CAAC,CAc9F"}
|
package/dist/capture.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
import { existsSync } from 'node:fs';
|
|
1
2
|
import { readFile } from 'node:fs/promises';
|
|
2
3
|
/** Thrown when no browser can be launched; its message says how to install one. */
|
|
3
4
|
export class CaptureUnavailableError extends Error {
|
|
4
5
|
name = 'CaptureUnavailableError';
|
|
5
6
|
}
|
|
7
|
+
// Distro Chromium, which Playwright's `chrome` channel does not look for.
|
|
8
|
+
const FALLBACK_PATHS = [
|
|
9
|
+
'/usr/bin/chromium',
|
|
10
|
+
'/usr/bin/chromium-browser',
|
|
11
|
+
'/snap/bin/chromium',
|
|
12
|
+
'/usr/bin/google-chrome'
|
|
13
|
+
];
|
|
6
14
|
const CAPTURE_FILE = new URL('../dist/views/capture.html', import.meta.url);
|
|
7
15
|
// Software WebGL: a server has no GPU, and headless Chromium refuses WebGL without these.
|
|
8
16
|
const ARGS = ['--use-angle=swiftshader', '--enable-unsafe-swiftshader', '--ignore-gpu-blocklist'];
|
|
@@ -22,16 +30,30 @@ async function launch(executablePath, timeout) {
|
|
|
22
30
|
catch {
|
|
23
31
|
throw new CaptureUnavailableError('Rendering needs the `playwright-core` package on the server, which is not installed.');
|
|
24
32
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
// Without an explicit path, fall back to a browser the machine already has: installing
|
|
34
|
+
// Playwright's needs `--with-deps`, which needs root, which most hosts never grant.
|
|
35
|
+
const candidates = executablePath
|
|
36
|
+
? [{ executablePath }]
|
|
37
|
+
: [
|
|
38
|
+
{},
|
|
39
|
+
{ channel: 'chrome' },
|
|
40
|
+
{ channel: 'msedge' },
|
|
41
|
+
...FALLBACK_PATHS.filter((p) => existsSync(p)).map((p) => ({ executablePath: p }))
|
|
42
|
+
];
|
|
43
|
+
let first;
|
|
44
|
+
for (const candidate of candidates) {
|
|
45
|
+
try {
|
|
46
|
+
const launched = await chromium.launch({ ...candidate, args: ARGS, timeout });
|
|
47
|
+
launched.on('disconnected', () => (browser = undefined));
|
|
48
|
+
return launched;
|
|
49
|
+
}
|
|
50
|
+
catch (err) {
|
|
51
|
+
first ??= err;
|
|
52
|
+
}
|
|
34
53
|
}
|
|
54
|
+
throw new CaptureUnavailableError(`No browser to render with: ${first instanceof Error ? first.message.split('\n')[0] : String(first)}. ` +
|
|
55
|
+
'Install Chrome or Chromium on the server (`npx playwright install --with-deps chromium`, ' +
|
|
56
|
+
'or the system package), or point the server at one.');
|
|
35
57
|
}
|
|
36
58
|
/**
|
|
37
59
|
* Draws a Rhino.Compute response in Selva's viewer, in a headless Chromium, and returns a PNG.
|
|
@@ -73,16 +95,21 @@ async function capture(response, options) {
|
|
|
73
95
|
await page.setViewportSize({ width: options.width ?? 1200, height: options.height ?? 800 });
|
|
74
96
|
await page.setContent(html, { waitUntil: 'load' });
|
|
75
97
|
const hdr = options.hdr ? await options.hdr() : undefined;
|
|
76
|
-
const
|
|
98
|
+
const presets = options.views?.length ? options.views : [options.view ?? 'default'];
|
|
99
|
+
const result = await page.evaluate((req) => globalThis.selvaCapture(req), {
|
|
77
100
|
response,
|
|
78
|
-
|
|
101
|
+
cameras: options.cameras?.length ? options.cameras : presets.map((view) => ({ view })),
|
|
79
102
|
grid: options.grid ?? true,
|
|
80
103
|
look: options.look,
|
|
81
104
|
background: options.background,
|
|
82
105
|
camera: options.camera,
|
|
83
|
-
hdr
|
|
106
|
+
hdr,
|
|
107
|
+
hide: options.hide,
|
|
108
|
+
cutaway: options.cutaway,
|
|
109
|
+
frame: options.frame,
|
|
110
|
+
sheet: options.sheet
|
|
84
111
|
});
|
|
85
|
-
return { png:
|
|
112
|
+
return { ...result, png: result.images[0]?.png ?? '' };
|
|
86
113
|
}
|
|
87
114
|
finally {
|
|
88
115
|
options.signal?.removeEventListener('abort', closePage);
|
package/dist/capture.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture.js","sourceRoot":"","sources":["../src/capture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"capture.js","sourceRoot":"","sources":["../src/capture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA4F5C,mFAAmF;AACnF,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IACxC,IAAI,GAAG,yBAAyB,CAAC;CAC1C;AAuBD,0EAA0E;AAC1E,MAAM,cAAc,GAAG;IACtB,mBAAmB;IACnB,2BAA2B;IAC3B,oBAAoB;IACpB,wBAAwB;CACxB,CAAC;AAEF,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,4BAA4B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC5E,0FAA0F;AAC1F,MAAM,IAAI,GAAG,CAAC,yBAAyB,EAAE,6BAA6B,EAAE,wBAAwB,CAAC,CAAC;AAClG,2EAA2E;AAC3E,MAAM,aAAa,GAAG,OAAO,CAAC;AAE9B,IAAI,OAAqC,CAAC;AAC1C,IAAI,IAA+C,CAAC;AACpD,wFAAwF;AACxF,IAAI,KAAK,GAAqB,OAAO,CAAC,OAAO,EAAE,CAAC;AAEhD,KAAK,UAAU,MAAM,CAAC,cAAkC,EAAE,OAAe;IACxE,6FAA6F;IAC7F,MAAM,IAAI,GAAG,iBAAiB,CAAC;IAC/B,IAAI,QAAkB,CAAC;IACvB,IAAI,CAAC;QACJ,CAAC,EAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,MAAM,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAA2B,CAAC,CAAC;IACpF,CAAC;IAAC,MAAM,CAAC;QACR,MAAM,IAAI,uBAAuB,CAChC,sFAA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