@fleox/agent3d 0.2.0 → 0.2.1
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 +350 -126
- package/changelog.json +12 -0
- package/dist/agent/agent3d.mjs +16 -16
- package/dist/agent/chunks/{cdp-CaKRRzMX.mjs → cdp-Bdtm4fBN.mjs} +3 -2
- package/dist/agent/chunks/{imageCodec-BpDU9Lsq.mjs → imageCodec-Dz9PFxi9.mjs} +1 -1
- package/dist/agent/chunks/{package-Ck7_Nszg.mjs → package-BOIyp_2B.mjs} +1 -1
- package/dist/agent/chunks/{render-Cbuhz5uW.mjs → render-CN4mgGLQ.mjs} +2 -2
- package/dist/runtime/agent3d-runtime.js +23 -23
- package/dist/runtime/agent3d-runtime.single.js +2 -2
- package/dist/runtime/chunks/{BufferGeometryUtils-Re3wQkXp.js → BufferGeometryUtils-XmME4f7Z.js} +1 -1
- package/dist/runtime/chunks/{EXRLoader-Bzm84si5.js → EXRLoader-CBdIpBMT.js} +1 -1
- package/dist/runtime/chunks/{FontLoader-BocwqK8V.js → FontLoader-dVu9WH2X.js} +1 -1
- package/dist/runtime/chunks/GLTFLoader-Z9Inv-Xm.js +1 -0
- package/dist/runtime/chunks/{GroundedSkybox-esvlRCO0.js → GroundedSkybox-g1ASZWNu.js} +1 -1
- package/dist/runtime/chunks/{HDRLoader-DHrHp8fs.js → HDRLoader-DBOMWa7O.js} +2 -2
- package/dist/{studio/assets/OrbitControls-fcOgB96a.js → runtime/chunks/OrbitControls-BIpWXK4x.js} +1 -1
- package/dist/runtime/chunks/{RectAreaLightUniformsLib-_mZ62yWn.js → RectAreaLightUniformsLib-4ZzgX9vp.js} +1 -1
- package/dist/runtime/chunks/{RoomEnvironment-CL4UR6ZW.js → RoomEnvironment-CXgfLJdO.js} +1 -1
- package/dist/runtime/chunks/{RoundedBoxGeometry-x-ot8ZSh.js → RoundedBoxGeometry-BViRogcJ.js} +1 -1
- package/dist/runtime/chunks/{SVGLoader-hRF0EwD-.js → SVGLoader-CV0U1EIF.js} +1 -1
- package/dist/runtime/chunks/{Sky-BrLN9Fk5.js → Sky-DGJXlPb_.js} +1 -1
- package/dist/runtime/chunks/{extrude-m04mghOS.js → extrude-D6WnITQq.js} +1 -1
- package/dist/runtime/chunks/{game-BoG2S6g4.js → game-BoEiyZrL.js} +3 -3
- package/dist/runtime/chunks/generators-D5JUo0jp.js +331 -0
- package/dist/runtime/chunks/{materials-C2uffFEd.js → materials-Dn-bYrZd.js} +5 -5
- package/dist/runtime/chunks/{model-D-4xZz21.js → model-BCVF3QzB.js} +1 -1
- package/dist/runtime/chunks/{params-DdApDOBw.js → params-C2uoUDJ0.js} +1 -1
- package/dist/runtime/chunks/{physicsHost-DPaVdM0R.js → physicsHost-ChPgysMQ.js} +1 -1
- package/dist/runtime/chunks/{postfx-BpBXjLX3.js → postfx-UgKCbmZs.js} +29 -29
- package/dist/{studio/assets/shaders-BEznGIct.js → runtime/chunks/shaders-Dw6zHdu_.js} +3 -3
- package/dist/runtime/chunks/svg-CmlFY_8O.js +1 -0
- package/dist/runtime/chunks/{text-CmkU-b0C.js → text-D1EQpdSU.js} +2 -2
- package/dist/runtime/chunks/{three.module-W4hp4qHb.js → three.module-DnaBiDAJ.js} +31 -31
- package/dist/runtime/chunks/{toon-B5Jhf37V.js → toon-BsvVk_nK.js} +1 -1
- package/dist/runtime/chunks/{util-THUewKBk.js → util-CyaW1fcW.js} +1 -1
- package/dist/studio/assets/{BufferGeometryUtils-wW9vV1l2.js → BufferGeometryUtils-CAlXAboW.js} +1 -1
- package/dist/studio/assets/{EXRLoader-f8U8jnlr.js → EXRLoader-BKkzlNd8.js} +1 -1
- package/dist/studio/assets/{FontLoader-9sHudKzD.js → FontLoader-Bzjx8mXt.js} +2 -2
- package/dist/studio/assets/GLTFLoader-1Zd9N406.js +1 -0
- package/dist/studio/assets/GroundedSkybox-BEMqNCBD.js +1 -0
- package/dist/studio/assets/{HDRLoader-CkQyrTWY.js → HDRLoader-DxB0kxPH.js} +2 -2
- package/dist/{runtime/chunks/OrbitControls-sjN2MF0e.js → studio/assets/OrbitControls-MlE9XiCg.js} +1 -1
- package/dist/studio/assets/{RectAreaLightUniformsLib-CZHWO9xf.js → RectAreaLightUniformsLib-ClHrtYY6.js} +1 -1
- package/dist/studio/assets/{RoomEnvironment-BsISzuCp.js → RoomEnvironment-MJ-jIEC8.js} +1 -1
- package/dist/studio/assets/{SVGLoader-BIkQDT66.js → SVGLoader-CIYl0nEy.js} +1 -1
- package/dist/studio/assets/{Sky-C282PFL1.js → Sky-DNMfpp92.js} +1 -1
- package/dist/studio/assets/{camera-BhKdE9ej.js → camera-7sEn13L-.js} +2 -2
- package/dist/studio/assets/editor-CnbvVkhU.js +53 -0
- package/dist/studio/assets/{extrude-CnayHczh.js → extrude-9bG8hr2C.js} +1 -1
- package/dist/studio/assets/{game-Dv5s4eMN.js → game-B04KGAK0.js} +3 -3
- package/dist/studio/assets/generators-LSni1Yfc.js +331 -0
- package/dist/studio/assets/{index-Dh-2Y34U.js → index-3LL5NEIH.js} +8 -8
- package/dist/studio/assets/{model-XZSP52pV.js → model-CNddhwmA.js} +2 -2
- package/dist/studio/assets/{physicsHost-C84FddIe.js → physicsHost-hMU_SDiX.js} +1 -1
- package/dist/studio/assets/{postfx-BWWXb8i8.js → postfx-BcCZS0Bq.js} +27 -27
- package/dist/studio/assets/runtime-DY_KqD1x.js +572 -0
- package/dist/{runtime/chunks/shaders-CmeJRio1.js → studio/assets/shaders-BhMCstyv.js} +3 -3
- package/dist/studio/assets/svg-CNKK-h7H.js +2 -0
- package/dist/studio/assets/{text-5DsJJHcj.js → text-BSPI7dk1.js} +3 -3
- package/dist/studio/assets/{three.module-ByMn_ZTv.js → three.module-CnI50X0U.js} +31 -31
- package/dist/studio/index.html +3 -3
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +2 -2
- package/plugin/skills/agent3d-assets/SKILL.md +24 -24
- package/plugin/skills/agent3d-create/SKILL.md +20 -20
- package/plugin/skills/agent3d-create/references/art-direction.md +3 -3
- package/plugin/skills/agent3d-create/references/recipes.md +6 -6
- package/plugin/skills/agent3d-edit/SKILL.md +22 -22
- package/plugin/skills/agent3d-edit/references/patch-ops.md +2 -2
- package/plugin/skills/agent3d-game/SKILL.md +7 -7
- package/plugin/skills/agent3d-publish/SKILL.md +21 -21
- package/plugin/skills/agent3d-publish/references/integrations.md +1 -1
- package/dist/runtime/chunks/GLTFLoader-DHp1wv6J.js +0 -1
- package/dist/runtime/chunks/generators-OHhFCc2E.js +0 -331
- package/dist/runtime/chunks/svg-B3nZaQFD.js +0 -1
- package/dist/studio/assets/GLTFLoader-C3C_3K62.js +0 -1
- package/dist/studio/assets/GroundedSkybox-BTqmv4fv.js +0 -1
- package/dist/studio/assets/editor-BgY_RoRd.js +0 -1
- package/dist/studio/assets/generators-DVX3bAxe.js +0 -331
- package/dist/studio/assets/runtime-k_MFerbJ.js +0 -572
- package/dist/studio/assets/svg-DT8kx37i.js +0 -2
package/changelog.json
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"versions": [
|
|
3
|
+
{
|
|
4
|
+
"version": "0.2.1",
|
|
5
|
+
"date": "2026-11-22",
|
|
6
|
+
"breaking": false,
|
|
7
|
+
"changes": [
|
|
8
|
+
"New README / npm page: a 2-minute demo film, real Claude Code sessions, terminal demos, showcase renders, Studio screenshots and a how-it-works diagram.",
|
|
9
|
+
"Studio: the new Agent3D logo; the editor grid is depth-tested, fades with distance and at grazing angles, and the G toggle hides it immediately; timeline ruler labels no longer overlap.",
|
|
10
|
+
"render / export: AGENT3D_CDP_TIMEOUT_MS raises the headless-browser timeouts on slow machines (CI runners with software WebGL).",
|
|
11
|
+
"Releases are published from GitHub Actions with npm provenance (trusted publishing)."
|
|
12
|
+
],
|
|
13
|
+
"actions": []
|
|
14
|
+
},
|
|
3
15
|
{
|
|
4
16
|
"version": "0.2.0",
|
|
5
17
|
"date": "2026-11-22",
|
package/dist/agent/agent3d.mjs
CHANGED
|
@@ -6,7 +6,7 @@ __a3dRequire(import.meta.url);
|
|
|
6
6
|
const __filename = __a3dPath(import.meta.url);
|
|
7
7
|
__a3dDirname(__filename);
|
|
8
8
|
import { t as __exportAll } from "./chunks/rolldown-runtime-ebOQtxsr.mjs";
|
|
9
|
-
import { r as version, t as package_default } from "./chunks/package-
|
|
9
|
+
import { r as version, t as package_default } from "./chunks/package-BOIyp_2B.mjs";
|
|
10
10
|
import { n as didYouMean, r as listOptions, t as closest } from "./chunks/suggest-Cpcgv1RP.mjs";
|
|
11
11
|
import { format, parseArgs } from "node:util";
|
|
12
12
|
import { createReadStream, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, watch, writeFileSync } from "node:fs";
|
|
@@ -8356,7 +8356,7 @@ var assetsCommand = {
|
|
|
8356
8356
|
});
|
|
8357
8357
|
let entry;
|
|
8358
8358
|
if (maxSize && (await import("./chunks/browser-t_JL_B82.mjs")).findBrowser()) {
|
|
8359
|
-
const { withImageCodec } = await import("./chunks/imageCodec-
|
|
8359
|
+
const { withImageCodec } = await import("./chunks/imageCodec-Dz9PFxi9.mjs");
|
|
8360
8360
|
entry = await withImageCodec((codec) => dl(codec), { log: log$1 });
|
|
8361
8361
|
} else entry = await dl();
|
|
8362
8362
|
return printResult(io, { asset: entry }, () => [
|
|
@@ -8468,7 +8468,7 @@ var assetsCommand = {
|
|
|
8468
8468
|
}, codec);
|
|
8469
8469
|
let r;
|
|
8470
8470
|
if (needsCodec && findBrowser()) {
|
|
8471
|
-
const { withImageCodec } = await import("./chunks/imageCodec-
|
|
8471
|
+
const { withImageCodec } = await import("./chunks/imageCodec-Dz9PFxi9.mjs");
|
|
8472
8472
|
r = await withImageCodec((codec) => run(codec), { log: log$1 });
|
|
8473
8473
|
} else r = await run();
|
|
8474
8474
|
r.skipped.unshift(...plan.skipped);
|
|
@@ -8635,7 +8635,7 @@ var checkCommand = {
|
|
|
8635
8635
|
};
|
|
8636
8636
|
let renderNote;
|
|
8637
8637
|
if (boolOpt(options, "render")) {
|
|
8638
|
-
const { renderProject } = await import("./chunks/render-
|
|
8638
|
+
const { renderProject } = await import("./chunks/render-CN4mgGLQ.mjs");
|
|
8639
8639
|
const out = strOpt(options, "out");
|
|
8640
8640
|
const outDir = out ? isAbsolute(out) ? out : resolve(fs.root, out) : mkdtempSync(join(tmpdir(), "agent3d-check-"));
|
|
8641
8641
|
const r = await renderProject({
|
|
@@ -8836,7 +8836,7 @@ var doctorCommand = {
|
|
|
8836
8836
|
const dir = mkdtempSync(join(tmpdir(), "agent3d-doctor-"));
|
|
8837
8837
|
try {
|
|
8838
8838
|
writeFileSync(join(dir, "scene.json"), JSON.stringify(DOCTOR_SCENE));
|
|
8839
|
-
const { renderProject } = await import("./chunks/render-
|
|
8839
|
+
const { renderProject } = await import("./chunks/render-CN4mgGLQ.mjs");
|
|
8840
8840
|
const { decodePng, pngVariance } = await import("./chunks/png-DXfSGJZt.mjs");
|
|
8841
8841
|
const t0 = Date.now();
|
|
8842
8842
|
const r = await renderProject({
|
|
@@ -9157,10 +9157,10 @@ var renderCommand = {
|
|
|
9157
9157
|
],
|
|
9158
9158
|
async run({ io, options }) {
|
|
9159
9159
|
const fs = projectFs(options);
|
|
9160
|
-
const { parseQuality } = await import("./chunks/render-
|
|
9160
|
+
const { parseQuality } = await import("./chunks/render-CN4mgGLQ.mjs");
|
|
9161
9161
|
const quality = parseQuality(strOpt(options, "quality"));
|
|
9162
9162
|
const scroll = numOpt(options, "scroll");
|
|
9163
|
-
const { parseInputScript } = await import("./chunks/render-
|
|
9163
|
+
const { parseInputScript } = await import("./chunks/render-CN4mgGLQ.mjs");
|
|
9164
9164
|
const rawInput = strOpt(options, "input") !== void 0 ? jsonOpt(options, "input", `--input '[{"t": 0.5, "key": "ArrowRight", "hold": 1}]' or --input @inputs.json`) : void 0;
|
|
9165
9165
|
const input = rawInput === void 0 ? void 0 : parseInputScript(rawInput);
|
|
9166
9166
|
const segment = strOpt(options, "segment");
|
|
@@ -9174,7 +9174,7 @@ var renderCommand = {
|
|
|
9174
9174
|
if (mediaOpts.length) {
|
|
9175
9175
|
const kind = mediaOpts[0];
|
|
9176
9176
|
const out = projectPath(fs.root, strOpt(options, kind));
|
|
9177
|
-
const { renderMedia, mediaFormatFromPath } = await import("./chunks/render-
|
|
9177
|
+
const { renderMedia, mediaFormatFromPath } = await import("./chunks/render-CN4mgGLQ.mjs");
|
|
9178
9178
|
const format = kind === "video" ? mediaFormatFromPath(out) : kind;
|
|
9179
9179
|
if (kind === "video" && format !== "mp4" && format !== "webm") usage(`--video needs a .mp4 or .webm file name, got "${strOpt(options, kind)}".`, "e.g. --video renders/banner.mp4");
|
|
9180
9180
|
if (existsSync(out) && !confirmOrPlan(io, options, { overwrite: [out] }, () => `Overwrite ${out}`)) return;
|
|
@@ -9212,7 +9212,7 @@ var renderCommand = {
|
|
|
9212
9212
|
"canvas",
|
|
9213
9213
|
"page"
|
|
9214
9214
|
].includes(capture)) usage(`--capture must be auto, canvas or page, got "${capture}".`);
|
|
9215
|
-
const { renderProject } = await import("./chunks/render-
|
|
9215
|
+
const { renderProject } = await import("./chunks/render-CN4mgGLQ.mjs");
|
|
9216
9216
|
const frames = renderFrames(strOpt(options, "frames"), numOpt(options, "count"), scroll);
|
|
9217
9217
|
const r = await renderProject({
|
|
9218
9218
|
projectDir: fs.root,
|
|
@@ -9387,7 +9387,7 @@ var exportCommand = {
|
|
|
9387
9387
|
];
|
|
9388
9388
|
if (!FORMATS.includes(format)) usage(`Unknown --format "${format}".`, `Use ${FORMATS.join(", ")}.`);
|
|
9389
9389
|
const outOpt = strOpt(options, "out");
|
|
9390
|
-
const render = () => import("./chunks/render-
|
|
9390
|
+
const render = () => import("./chunks/render-CN4mgGLQ.mjs");
|
|
9391
9391
|
if (format === "poster" || format === "video" || format === "gif") {
|
|
9392
9392
|
const { parseQuality, mediaFormatFromPath } = await render();
|
|
9393
9393
|
const quality = parseQuality(strOpt(options, "quality"));
|
|
@@ -9471,7 +9471,7 @@ var exportCommand = {
|
|
|
9471
9471
|
}
|
|
9472
9472
|
const runtime = { files: readRuntimeFiles(format) };
|
|
9473
9473
|
const { buildExport } = await import("./chunks/export-BCI8vKw8.mjs").then((n) => n.n);
|
|
9474
|
-
const { version } = (await import("./chunks/package-
|
|
9474
|
+
const { version } = (await import("./chunks/package-BOIyp_2B.mjs").then((n) => n.n)).default;
|
|
9475
9475
|
let exportFs = fs;
|
|
9476
9476
|
let exportLibrary = libraryProvider();
|
|
9477
9477
|
let optimizeReport;
|
|
@@ -9480,7 +9480,7 @@ var exportCommand = {
|
|
|
9480
9480
|
const { optimizedExportSources } = await import("./chunks/assets-BUUM9TUB.mjs").then((n) => n.d);
|
|
9481
9481
|
let codec;
|
|
9482
9482
|
if ((await import("./chunks/browser-t_JL_B82.mjs")).findBrowser()) {
|
|
9483
|
-
const c = await (await import("./chunks/imageCodec-
|
|
9483
|
+
const c = await (await import("./chunks/imageCodec-Dz9PFxi9.mjs")).openImageCodec({ log });
|
|
9484
9484
|
codec = c.codec;
|
|
9485
9485
|
closeCodec = c.close;
|
|
9486
9486
|
} else warnings.push("--optimize: no Chrome found, textures were not resized (geometry was compressed).");
|
|
@@ -10108,7 +10108,7 @@ function runtimeIssueToIssue(i) {
|
|
|
10108
10108
|
function nodeHost(fs) {
|
|
10109
10109
|
return {
|
|
10110
10110
|
...fs ? { async render(opts) {
|
|
10111
|
-
const { renderProject } = await import("./chunks/render-
|
|
10111
|
+
const { renderProject } = await import("./chunks/render-CN4mgGLQ.mjs");
|
|
10112
10112
|
const r = await renderProject({
|
|
10113
10113
|
projectDir: fs.root,
|
|
10114
10114
|
frames: opts.frames?.length ? opts.frames.join(",") : void 0,
|
|
@@ -10116,7 +10116,7 @@ function nodeHost(fs) {
|
|
|
10116
10116
|
size: opts.size,
|
|
10117
10117
|
sheet: opts.sheet ?? true,
|
|
10118
10118
|
outDir: opts.out ? fs.resolve(opts.out) : void 0,
|
|
10119
|
-
input: opts.input ? (await import("./chunks/render-
|
|
10119
|
+
input: opts.input ? (await import("./chunks/render-CN4mgGLQ.mjs")).parseInputScript(opts.input) : void 0,
|
|
10120
10120
|
previewWidth: opts.previewWidth,
|
|
10121
10121
|
isolate: opts.isolate,
|
|
10122
10122
|
bg: opts.bg,
|
|
@@ -10140,7 +10140,7 @@ function nodeHost(fs) {
|
|
|
10140
10140
|
};
|
|
10141
10141
|
} } : {},
|
|
10142
10142
|
...fs ? { async media(opts) {
|
|
10143
|
-
const render = await import("./chunks/render-
|
|
10143
|
+
const render = await import("./chunks/render-CN4mgGLQ.mjs");
|
|
10144
10144
|
const log = (m) => void process.stderr.write(`${m}\n`);
|
|
10145
10145
|
if (opts.format === "poster") {
|
|
10146
10146
|
const r = await render.renderPoster({
|
|
@@ -10232,7 +10232,7 @@ function nodeHost(fs) {
|
|
|
10232
10232
|
},
|
|
10233
10233
|
inflate: (data) => new Uint8Array(inflateRawSync(data)),
|
|
10234
10234
|
async withImageCodec(fn) {
|
|
10235
|
-
const { withImageCodec } = await import("./chunks/imageCodec-
|
|
10235
|
+
const { withImageCodec } = await import("./chunks/imageCodec-Dz9PFxi9.mjs");
|
|
10236
10236
|
return withImageCodec(fn, { log: (m) => void process.stderr.write(`${m}\n`) });
|
|
10237
10237
|
},
|
|
10238
10238
|
readLocalFile: async (path) => new Uint8Array(readFileSync(resolve(path)))
|
|
@@ -6,6 +6,7 @@ const __filename = __a3dPath(import.meta.url);
|
|
|
6
6
|
__a3dDirname(__filename);
|
|
7
7
|
import { z as CliError } from "../agent3d.mjs";
|
|
8
8
|
// agent/render/cdp.ts
|
|
9
|
+
var DEFAULT_TIMEOUT_MS = Number(process.env.AGENT3D_CDP_TIMEOUT_MS) || 6e4;
|
|
9
10
|
var CdpError = class extends Error {
|
|
10
11
|
method;
|
|
11
12
|
name = "CdpError";
|
|
@@ -71,7 +72,7 @@ var CdpClient = class CdpClient {
|
|
|
71
72
|
for (const p of this.pending.values()) p.reject(new CdpError(p.method, "connection closed"));
|
|
72
73
|
this.pending.clear();
|
|
73
74
|
}
|
|
74
|
-
rawSend(method, params = {}, sessionId, timeoutMs =
|
|
75
|
+
rawSend(method, params = {}, sessionId, timeoutMs = DEFAULT_TIMEOUT_MS) {
|
|
75
76
|
if (this.closed) return Promise.reject(new CdpError(method, "connection closed"));
|
|
76
77
|
const id = this.nextId++;
|
|
77
78
|
return new Promise((resolve, reject) => {
|
|
@@ -150,7 +151,7 @@ var CdpSession = class {
|
|
|
150
151
|
waitFor(event, predicate, timeoutMs = 3e4) {
|
|
151
152
|
return waitForEvent(this, event, predicate, timeoutMs);
|
|
152
153
|
}
|
|
153
|
-
async evaluate(expression, timeoutMs =
|
|
154
|
+
async evaluate(expression, timeoutMs = DEFAULT_TIMEOUT_MS) {
|
|
154
155
|
const r = await this.send("Runtime.evaluate", {
|
|
155
156
|
expression,
|
|
156
157
|
awaitPromise: true,
|
|
@@ -6,7 +6,7 @@ const __filename = __a3dPath(import.meta.url);
|
|
|
6
6
|
__a3dDirname(__filename);
|
|
7
7
|
import { z as CliError } from "../agent3d.mjs";
|
|
8
8
|
import { launchBrowser, requireBrowser } from "./browser-t_JL_B82.mjs";
|
|
9
|
-
import { t as CdpClient } from "./cdp-
|
|
9
|
+
import { t as CdpClient } from "./cdp-Bdtm4fBN.mjs";
|
|
10
10
|
// agent/render/imageCodec.ts
|
|
11
11
|
var PAGE_FN = `async function (b64, mime, maxSize, quality, format, allowJpeg) {
|
|
12
12
|
const bin = atob(b64);
|
|
@@ -8,7 +8,7 @@ import { t as __exportAll } from "./rolldown-runtime-ebOQtxsr.mjs";
|
|
|
8
8
|
// package.json
|
|
9
9
|
var package_exports = /* @__PURE__ */ __exportAll({ default: () => package_default });
|
|
10
10
|
var name = "@fleox/agent3d";
|
|
11
|
-
var version = "0.2.
|
|
11
|
+
var version = "0.2.1";
|
|
12
12
|
var package_default = {
|
|
13
13
|
name,
|
|
14
14
|
version,
|
|
@@ -8,7 +8,7 @@ import { t as closest } from "./suggest-Cpcgv1RP.mjs";
|
|
|
8
8
|
import { n as findObject, o as walkObjects } from "./tree-BrNYGui2.mjs";
|
|
9
9
|
import { I as libraryDir, L as runtimeBuilt, R as runtimeDir, n as startLocalServer, t as sendText, z as CliError } from "../agent3d.mjs";
|
|
10
10
|
import { launchBrowser, requireBrowser } from "./browser-t_JL_B82.mjs";
|
|
11
|
-
import { t as CdpClient } from "./cdp-
|
|
11
|
+
import { t as CdpClient } from "./cdp-Bdtm4fBN.mjs";
|
|
12
12
|
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
13
13
|
// agent/render/preview.ts
|
|
14
14
|
var RUNTIME_URL = "/__runtime/agent3d-runtime.js";
|
|
@@ -658,7 +658,7 @@ async function openRenderSession(opts) {
|
|
|
658
658
|
if (!runtimeBuilt()) throw new CliError("runtime-missing", `The runtime build is missing (${join(runtimeDir(), "agent3d-runtime.js")}).`, "Use the npm package (it ships dist/runtime), or run `npm run build:runtime` in a clone. AGENT3D_DIST can point at another dist/ folder.");
|
|
659
659
|
const browserInfo = requireBrowser();
|
|
660
660
|
const scene = opts.scene ?? readScene(opts.projectDir);
|
|
661
|
-
const timeoutMs = opts.timeoutMs ?? 6e4;
|
|
661
|
+
const timeoutMs = opts.timeoutMs ?? (Number(process.env.AGENT3D_CDP_TIMEOUT_MS) || 6e4);
|
|
662
662
|
const log = opts.log ?? (() => void 0);
|
|
663
663
|
const t0 = Date.now();
|
|
664
664
|
const html = previewHtml({
|