@fleox/agent3d 0.2.3 → 0.3.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 +20 -13
- package/changelog.json +26 -0
- package/dist/agent/agent3d.mjs +228 -53
- package/dist/agent/chunks/{assets-BUUM9TUB.mjs → assets-YBkgdfgy.mjs} +27 -8
- package/dist/agent/chunks/{browser-Br1tURgt.mjs → browser-Dil7VM5m.mjs} +1 -1
- package/dist/agent/chunks/{cdp-Bdtm4fBN.mjs → cdp-DLEis_Z3.mjs} +1 -1
- package/dist/agent/chunks/{check-CfZcfaPs.mjs → check-DP9fRYbK.mjs} +64 -4
- package/dist/agent/chunks/depth-BZT4gseQ.mjs +483 -0
- package/dist/agent/chunks/depth-CD_ql3QJ.mjs +190 -0
- package/dist/agent/chunks/{export-BHugc2H7.mjs → export-bJwh2SqG.mjs} +12 -6
- package/dist/agent/chunks/{imageCodec-QM0EXQDJ.mjs → imageCodec-DeGfmBp3.mjs} +3 -3
- package/dist/agent/chunks/{objects-DBAws7uf.mjs → objects-DuytRxiC.mjs} +3 -3
- package/dist/agent/chunks/{optimizeSizing-CkZ3fZRp.mjs → optimizeSizing-B-BBiUkD.mjs} +51 -3
- package/dist/agent/chunks/{package-fw4h5vsh.mjs → package-fMbw9UGh.mjs} +2 -1
- package/dist/agent/chunks/{render-EHb40avl.mjs → render-B05DU4Q5.mjs} +4 -4
- package/dist/agent/chunks/{scene-BgajNvBf.mjs → scene-DWgXH6As.mjs} +2 -2
- package/dist/agent/chunks/{server-CACCerkZ.mjs → server-Dt_YFvN7.mjs} +6 -2
- package/dist/agent/chunks/{tools-DKxgjQSJ.mjs → tools-Cm4BqDkO.mjs} +60 -6
- package/dist/agent/chunks/{tree-BrNYGui2.mjs → tree-CqSj-o8T.mjs} +1 -0
- package/dist/agent/ort/LICENSE.txt +9 -0
- package/dist/agent/ort/ort-wasm-simd-threaded.wasm +0 -0
- package/dist/agent/ort/ort.wasm.bundle.min.mjs +9 -0
- package/dist/runtime/agent3d-runtime.js +6 -6
- package/dist/runtime/agent3d-runtime.single.js +311 -62
- package/dist/runtime/chunks/assets-qnxDnVkj.js +1 -0
- package/dist/runtime/chunks/materials-dC4vDNHh.js +107 -0
- package/dist/runtime/chunks/{model-DbfZaLni.js → model-BCAl_NRl.js} +1 -1
- package/dist/runtime/chunks/photo-DNf14X7B.js +250 -0
- package/dist/runtime/chunks/svg-CLUxY6Zy.js +1 -0
- package/dist/runtime/chunks/{text-BaON-ISS.js → text-rSo_2Luk.js} +2 -2
- package/dist/studio/assets/assets-BW5lQkYR.js +1 -0
- package/dist/studio/assets/{camera-Be6lnp3k.js → camera-BgzPVnn-.js} +1 -1
- package/dist/studio/assets/{editor-Mpnz-b2E.js → editor-NkBUKsDB.js} +1 -1
- package/dist/studio/assets/{game-WMgRSJUD.js → game-DARpu0ah.js} +3 -3
- package/dist/studio/assets/{generators-DozXE7ta.js → generators-BjIs-kHx.js} +1 -1
- package/dist/studio/assets/index-L-N-e2KM.js +479 -0
- package/dist/studio/assets/{model-C2bZTK7-.js → model-CqI8j03Z.js} +1 -1
- package/dist/studio/assets/params-DhsDKSDs.js +1 -0
- package/dist/studio/assets/photo-DAHd1yNF.js +250 -0
- package/dist/studio/assets/{physicsHost-CTRsIvfu.js → physicsHost-tEUto2-_.js} +1 -1
- package/dist/studio/assets/{postfx-DQtp0JIy.js → postfx-BGu30OJK.js} +1 -1
- package/dist/studio/assets/runtime-C_qkIpAK.js +572 -0
- package/dist/studio/assets/{shaders-BOb6Uter.js → shaders-Dt6FGXH_.js} +12 -12
- package/dist/studio/assets/svg-ZZt5MdNf.js +2 -0
- package/dist/studio/assets/{text-CGIZs8HE.js → text-B-HM422i.js} +2 -2
- package/dist/studio/index.html +1 -1
- package/package.json +2 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/skills/agent3d-assets/SKILL.md +40 -25
- package/plugin/skills/agent3d-create/SKILL.md +57 -21
- package/plugin/skills/agent3d-create/references/art-direction.md +3 -3
- package/plugin/skills/agent3d-create/references/recipes.md +71 -6
- package/plugin/skills/agent3d-edit/SKILL.md +22 -22
- package/plugin/skills/agent3d-edit/references/patch-ops.md +11 -3
- package/plugin/skills/agent3d-game/SKILL.md +7 -7
- package/plugin/skills/agent3d-publish/SKILL.md +23 -21
- package/plugin/skills/agent3d-publish/references/integrations.md +1 -1
- package/templates/hero-photo-3d/README.md +28 -0
- package/templates/hero-photo-3d/agent3d.json +8 -0
- package/templates/hero-photo-3d/assets/depth/street-depth.png +0 -0
- package/templates/hero-photo-3d/assets/manifest.json +25 -0
- package/templates/hero-photo-3d/assets/textures/street.webp +0 -0
- package/templates/hero-photo-3d/preview.png +0 -0
- package/templates/hero-photo-3d/scene.json +120 -0
- package/templates/hero-photo-3d/template.json +8 -0
- package/dist/runtime/chunks/materials-w3EW0g-7.js +0 -107
- package/dist/runtime/chunks/svg-CfPIQnDG.js +0 -1
- package/dist/studio/assets/index-tSGZFEt5.js +0 -479
- package/dist/studio/assets/runtime-NGp1VdnH.js +0 -572
- package/dist/studio/assets/svg-CnUMpv_N.js +0 -2
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
<tr>
|
|
48
48
|
<td width="33%" valign="top">
|
|
49
49
|
<h3>🎬 Stunning by default</h3>
|
|
50
|
-
<p>One-line light rigs, physical skies, contact shadows, physically based materials (car paint, ceramic, glass, diamond…) and cinematic <b>looks</b> (bloom, ambient occlusion, depth of field, grading). Agents start from
|
|
50
|
+
<p>One-line light rigs, physical skies, contact shadows, physically based materials (car paint, ceramic, glass, diamond…) and cinematic <b>looks</b> (bloom, ambient occlusion, depth of field, grading). Agents start from 32 templates and validated recipes, with art direction built into the skills.</p>
|
|
51
51
|
</td>
|
|
52
52
|
<td width="33%" valign="top">
|
|
53
53
|
<h3>🤖 Agent-native</h3>
|
|
@@ -109,19 +109,19 @@ Once the scene exists, changing it is a conversation:
|
|
|
109
109
|
### Without an agent
|
|
110
110
|
|
|
111
111
|
```bash
|
|
112
|
-
npx -y @fleox/agent3d@0.
|
|
113
|
-
npx -y @fleox/agent3d@0.
|
|
112
|
+
npx -y @fleox/agent3d@0.3.1 new bakery --target banner --title "Golden Crust"
|
|
113
|
+
npx -y @fleox/agent3d@0.3.1 studio --project bakery
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
The first command creates a project folder with an attractive starter scene for its target (banner, hero, card, square, fullscreen, inline or game); add `--template <id>` to start from one of the [templates](#templates). The second opens the [Studio](#the-studio) on it. You need **Node.js 22+** and **Google Chrome** (or Chromium / Edge / Brave) for renders; `npx -y @fleox/agent3d@0.
|
|
116
|
+
The first command creates a project folder with an attractive starter scene for its target (banner, hero, card, square, fullscreen, inline or game); add `--template <id>` to start from one of the [templates](#templates). The second opens the [Studio](#the-studio) on it. You need **Node.js 22+** and **Google Chrome** (or Chromium / Edge / Brave) for renders; `npx -y @fleox/agent3d@0.3.1 doctor` checks your setup with a test render.
|
|
117
117
|
|
|
118
118
|
The whole loop from a terminal:
|
|
119
119
|
|
|
120
120
|
```bash
|
|
121
|
-
npx -y @fleox/agent3d@0.
|
|
122
|
-
npx -y @fleox/agent3d@0.
|
|
123
|
-
npx -y @fleox/agent3d@0.
|
|
124
|
-
npx -y @fleox/agent3d@0.
|
|
121
|
+
npx -y @fleox/agent3d@0.3.1 scene patch --project bakery '[{"op":"set","path":"objects#title.material","value":{"preset":"gold"}}]'
|
|
122
|
+
npx -y @fleox/agent3d@0.3.1 render --project bakery --sheet # → renders/…-sheet.png
|
|
123
|
+
npx -y @fleox/agent3d@0.3.1 check --project bakery
|
|
124
|
+
npx -y @fleox/agent3d@0.3.1 export --project bakery # → dist/embed/ + the snippet
|
|
125
125
|
```
|
|
126
126
|
|
|
127
127
|
Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/main/docs/getting-started.md).
|
|
@@ -152,6 +152,11 @@ Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/ma
|
|
|
152
152
|
<br><sub>Headless renders of the built-in templates, straight from <code>agent3d render</code>. Nothing was downloaded: everything is procedural or from the built-in library.</sub>
|
|
153
153
|
</p>
|
|
154
154
|
|
|
155
|
+
<p align="center">
|
|
156
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/photo3d-old-town.webp" width="900" alt="A 3D photo: a blue-hour old-town street whose buildings slide in depth as the pointer moves, under a white serif OLD TOWN headline">
|
|
157
|
+
<br><sub><b>3D photo</b>: one CC0 photo plus a depth map estimated locally in about a second (<code>agent3d assets depth</code>), moving in depth as the pointer sweeps across it. The <a href="https://github.com/fleox/agent3d/tree/main/templates/hero-photo-3d"><code>hero-photo-3d</code></a> template, rendered with <code>agent3d render --input</code>.</sub>
|
|
158
|
+
</p>
|
|
159
|
+
|
|
155
160
|
**Look**
|
|
156
161
|
- **Lighting and lookdev**: 10 one-line light rigs (softbox, studio three-point, golden hour, neon, moonlight…), physical skies with a matching sun, 20 built-in HDRIs, height fog, contact shadows, rect panel lights and volumetric spots, mesh-gradient backgrounds
|
|
157
162
|
- **Materials**: 38 presets from chrome, glass and car paint to velvet, diamond and soap bubble; physical parameters (clearcoat, sheen, iridescence, transmission, anisotropy, dispersion), 12 procedural textures (marble, wood, terrazzo, carbon…) at zero bytes, 17 shaders (aurora, liquid chrome, nebula, caustics…), cel shading that keeps brand colours true
|
|
@@ -166,6 +171,7 @@ Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/ma
|
|
|
166
171
|
- 22 procedural **generators**: terrain (mountains, basins, valleys, islands), trees, rocks, grass, flowers, water with mirror reflections, clouds, birds, cities, roads, floating islands, globes, galaxies, crystals, 3D bar charts, mazes… deterministic from a seed
|
|
167
172
|
- A procedural **character** generator (humanoid, astronaut, robot, blob, cat, fox, bird, ghost) with animations such as wave, run, jump, dance and celebrate
|
|
168
173
|
- A built-in **library** of 179 assets usable offline (`library:<id>`): 128 models (rigged characters with clips, products, props), PBR textures and HDRIs; optional search and download from free CC0 sources (Poly Haven, ambientCG, Khronos samples) and Kenney / Quaternius pack import, with licences recorded
|
|
174
|
+
- **3D photos**: any photo plus a depth map estimated on your machine (`assets depth`: Depth Anything V2 Small, a 27 MB model downloaded once, then offline) moves in depth with the pointer, the phone's gyroscope, the scroll or a gentle automatic drift — shader parallax, a displaced mesh or pop-up layers
|
|
169
175
|
- 3D text in 13 kerned **fonts** with wrapping, outlines and letter-by-letter reveals; extruded **SVG logos** that keep their colours; 17 particle presets; 12 synth sounds
|
|
170
176
|
|
|
171
177
|
**Games**
|
|
@@ -188,7 +194,7 @@ Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/ma
|
|
|
188
194
|
A visual editor for when you want to see and touch the scene yourself, on the same files and the same validated tools as the agent. Changes your agent makes in a terminal appear live in the open Studio.
|
|
189
195
|
|
|
190
196
|
```bash
|
|
191
|
-
npx -y @fleox/agent3d@0.
|
|
197
|
+
npx -y @fleox/agent3d@0.3.1 studio --project bakery
|
|
192
198
|
```
|
|
193
199
|
|
|
194
200
|
<p align="center">
|
|
@@ -236,12 +242,12 @@ Move / rotate / scale gizmos, an editor camera and the scene camera with framing
|
|
|
236
242
|
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/templates-grid.jpg" width="900" alt="A grid of the 31 Agent3D templates: banners, heroes, landscapes, product cards, dioramas and games">
|
|
237
243
|
</p>
|
|
238
244
|
|
|
239
|
-
|
|
245
|
+
32 starter projects, each a complete scene that passes `check --render`: 8 banners, 13 heroes and landscapes, 2 product cards, 2 square dioramas and 7 playable games. Start from one with `agent3d new my-scene --template <id>`; `agent3d templates list` lists them and `templates show <id>` describes one.
|
|
240
246
|
|
|
241
247
|
To see them all live in a browser, build the gallery from a clone (`npm install --legacy-peer-deps && npm run build:runtime && npm run build:agent`, then `node scripts/build-examples.mjs`) and serve `examples/site/` with any static server (for example `python3 -m http.server -d examples/site`): each card plays the real embed, with the brief the agent that built the template received.
|
|
242
248
|
|
|
243
249
|
<details>
|
|
244
|
-
<summary><b>All
|
|
250
|
+
<summary><b>All 32 templates</b></summary>
|
|
245
251
|
|
|
246
252
|
| Preview | Template | Kind | What it is |
|
|
247
253
|
|---|---|---|---|
|
|
@@ -257,6 +263,7 @@ To see them all live in a browser, build the gallery from a clone (`npm install
|
|
|
257
263
|
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/character-showcase/preview.png" width="160" alt="Character showcase"> | [**Character showcase**](https://github.com/fleox/agent3d/tree/main/templates/character-showcase)<br>`character-showcase` | hero · 16:9 | Cartoon character line-up (16:9) for mascots, kids' products, games or team pages: five procedural characters on pastel pedestals — an astronaut cheering in the centre, a dancing robot, a waving fox, a dancing kid with headphones and a jumping cat — heads following the pointer, falling confetti and a 'Meet the crew' 3D title (from scene.data). |
|
|
258
264
|
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-floating-island/preview.png" width="160" alt="Floating island hero"> | [**Floating island hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-floating-island)<br>`hero-floating-island` | hero · 16:9 | Dreamy 16:9 hero: a low-poly floating island with trees, flowers, a pond and a waterfall pouring into a sea of pastel clouds, two distant islets, flapping birds circling and magic glints, under a peach-to-blue sunset gradient — slow orbit, pointer parallax, soft dreamy look. |
|
|
259
265
|
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-perfume-luxury/preview.png" width="160" alt="Luxury perfume hero"> | [**Luxury perfume hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-perfume-luxury)<br>`hero-perfume-luxury` | hero · 16:9 | Dark luxury product hero: an amber glass perfume bottle (refractive lathe glass with liquid colour) and faceted gold cap on a black-and-gold marble pedestal, diamonds and a ruby catching the light, a slow push-in with a rack focus from a diamond to the bottle, and a gold serif name (data-bound). |
|
|
266
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-photo-3d/preview.png" width="160" alt="3D photo hero"> | [**3D photo hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-photo-3d)<br>`hero-photo-3d` | hero · 16:9 | A photo brought to life: a blue-hour old-town street (CC0) turned into a 3D photo with its estimated depth map, moving in depth with the pointer, the phone's gyroscope and a gentle automatic sway, under a white serif headline and subtitle (data-bound). |
|
|
260
267
|
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-product-turntable/preview.png" width="160" alt="Product turntable hero"> | [**Product turntable hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-product-turntable)<br>`hero-product-turntable` | hero · 16:9 | Studio product hero: a realistic PBR boombox slowly turning on a terrazzo pedestal with a gold rim, softbox light rig, studio HDRI reflections, soft contact shadow, product look and drag-to-orbit. |
|
|
261
268
|
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-saas-globe/preview.png" width="160" alt="SaaS globe hero"> | [**SaaS globe hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-saas-globe)<br>`hero-saas-globe` | hero · 16:9 | Dark premium SaaS / network hero: a dotted-continent globe with a blue atmosphere slowly turning on the right, glowing arcs with light pulses travelling between world cities, faint orbit ring and stars; the left half stays empty for your HTML headline. |
|
|
262
269
|
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-scroll-story/preview.png" width="160" alt="Scroll story hero"> | [**Scroll story hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-scroll-story)<br>`hero-scroll-story` | hero · 16:9 | Scroll-driven 3D story: as the page scrolls, the camera glides across three chapters — Design, Build, Launch — each with its own object and a bold 3D title that pops in letter by letter, with markers that emit page events. |
|
|
@@ -316,7 +323,7 @@ Pick Spline when a designer wants a hosted visual tool, hand-written Three.js wh
|
|
|
316
323
|
|
|
317
324
|
## The `agent3d` CLI
|
|
318
325
|
|
|
319
|
-
The same engine the agents use, by hand: `npx -y @fleox/agent3d@0.
|
|
326
|
+
The same engine the agents use, by hand: `npx -y @fleox/agent3d@0.3.1 help`. Every command accepts `--json` and prints exactly one `{ ok, data }` or `{ ok: false, error }` object with an actionable hint, and commands that replace or overwrite something print a plan until you add `--yes`.
|
|
320
327
|
|
|
321
328
|
<p align="center">
|
|
322
329
|
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/demo-cli.gif" width="820" alt="Terminal running the agent3d CLI: a project from the gradient-blob template, its scene summary, a gold torus added, a behaviour patch rejected with an actionable error then fixed, and the pre-export check">
|
|
@@ -354,7 +361,7 @@ Full reference: [docs/cli.md](https://github.com/fleox/agent3d/blob/main/docs/cl
|
|
|
354
361
|
## MCP server
|
|
355
362
|
|
|
356
363
|
```bash
|
|
357
|
-
claude mcp add agent3d -- npx -y @fleox/agent3d@0.
|
|
364
|
+
claude mcp add agent3d -- npx -y @fleox/agent3d@0.3.1 mcp --project ~/agent3d/my-banner
|
|
358
365
|
```
|
|
359
366
|
|
|
360
367
|
<p align="center">
|
package/changelog.json
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"versions": [
|
|
3
|
+
{
|
|
4
|
+
"version": "0.3.1",
|
|
5
|
+
"date": "2026-11-26",
|
|
6
|
+
"breaking": false,
|
|
7
|
+
"changes": [
|
|
8
|
+
"3D photos load faster: `assets depth` writes the depth map at 1024 px by default (the model works at 518 px; the template's map went from 185 KB to 80 KB at the same look), and the `hero-photo-3d` template ships its photo as WebP (552 KB → 330 KB). Skills recommend `assets optimize --all` before exporting a photo hero.",
|
|
9
|
+
"Parallax photos spend fewer shader steps on weak devices (quality tiers) and with gentle depth.",
|
|
10
|
+
"Exports: heroes and full-screen scenes give their poster `fetchpriority=\"high\"` (it is usually the page's largest image)."
|
|
11
|
+
],
|
|
12
|
+
"actions": []
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"version": "0.3.0",
|
|
16
|
+
"date": "2026-11-26",
|
|
17
|
+
"breaking": false,
|
|
18
|
+
"changes": [
|
|
19
|
+
"3D photos: a new `photo` object turns an image + depth map into a 3D effect — `parallax` (relief mapping, the 3D-photo look), `mesh` (displaced grid with torn edges cut away, for larger moves) or `layers` (pop-up slices) — driven by the pointer, the phone's gyroscope, scroll or a looping drift; deterministic for renders and videos. `strength` defaults to 0.5 (parallax holds up to ~0.9).",
|
|
20
|
+
"`agent3d assets depth <image>` (and the `image_depth` AI tool) estimates the depth map locally with Depth Anything V2 Small (Apache-2.0) in your headless Chrome, in about a second; the 27 MB model is downloaded once into ~/.agent3d/models. Exports ship the photo and its depth PNG only.",
|
|
21
|
+
"Studio: a \"3D photo\" tab in the Add panel, a photo inspector and a \"Generate depth map\" button.",
|
|
22
|
+
"New template `hero-photo-3d` (blue-hour street with a letter-by-letter headline); skills, recipe and docs cover the photo workflow.",
|
|
23
|
+
"`check`: photo rules (depth aspect, heavy photo, lossy depth map); scenes made only of photos no longer ask for lights."
|
|
24
|
+
],
|
|
25
|
+
"actions": [
|
|
26
|
+
"Update the skills (`/plugin marketplace update agent3d`)."
|
|
27
|
+
]
|
|
28
|
+
},
|
|
3
29
|
{
|
|
4
30
|
"version": "0.2.3",
|
|
5
31
|
"date": "2026-11-26",
|