@fleox/agent3d 0.2.2 → 0.3.0
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 +21 -13
- package/changelog.json +24 -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-0bZsQn6N.mjs +190 -0
- package/dist/agent/chunks/depth-Dih8jLqx.mjs +483 -0
- package/dist/agent/chunks/{export-BHugc2H7.mjs → export-Cdqt3mt_.mjs} +8 -4
- 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-Dkr2v4or.mjs → package-d5e08XSG.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-Cv6N_YBI.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-BlDYgYFM.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-BFJsr9Oo.js +1 -0
- package/dist/studio/assets/{camera-braC-Y4j.js → camera-DT0xHipx.js} +1 -1
- package/dist/studio/assets/{editor-DwKj0yf_.js → editor-BjgHj9g8.js} +1 -1
- package/dist/studio/assets/{game-Bd0sO8CA.js → game-BXZEc9HN.js} +3 -3
- package/dist/studio/assets/{generators-CFiebqmG.js → generators-DqkPMEzm.js} +1 -1
- package/dist/studio/assets/index-DVTzVcBD.js +479 -0
- package/dist/studio/assets/{model-Bg7e4Z-9.js → model-BqQW4Dg-.js} +1 -1
- package/dist/studio/assets/params-gVpEEiSK.js +1 -0
- package/dist/studio/assets/photo-DRoVO5iZ.js +250 -0
- package/dist/studio/assets/{physicsHost-CwJdYJ2g.js → physicsHost-DNdZ7AsT.js} +1 -1
- package/dist/studio/assets/{postfx-CGkvYb03.js → postfx-JFUGdY0d.js} +1 -1
- package/dist/studio/assets/runtime-CMAP4azF.js +572 -0
- package/dist/studio/assets/{shaders-Brwuj1zc.js → shaders-C7u6rN_6.js} +12 -12
- package/dist/studio/assets/svg-DkIOJjzS.js +2 -0
- package/dist/studio/assets/{text-DqnNIq0M.js → text-LISSAism.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 +56 -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.jpg +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-C87jPees.js +0 -479
- package/dist/studio/assets/runtime-DNb5FyOS.js +0 -572
- package/dist/studio/assets/svg-Db96jdHi.js +0 -2
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
<a href="https://www.npmjs.com/package/@fleox/agent3d"><img src="https://img.shields.io/node/v/@fleox/agent3d?color=339933" alt="Node.js version"></a>
|
|
17
17
|
<a href="#claude-code"><img src="https://img.shields.io/badge/Claude%20Code-plugin-d97757" alt="Claude Code plugin"></a>
|
|
18
18
|
<a href="#mcp-server"><img src="https://img.shields.io/badge/MCP-server-0ea5e9" alt="MCP server"></a>
|
|
19
|
+
<a href="https://m8ven.ai/mcp/fleox/agent3d?s=readme"><img src="https://m8ven.ai/badge/mcp/fleox/agent3d" alt="M8ven Score"></a>
|
|
19
20
|
<a href="https://github.com/fleox/agent3d/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-PolyForm%20Noncommercial-6b7280" alt="License"></a>
|
|
20
21
|
</p>
|
|
21
22
|
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
<tr>
|
|
47
48
|
<td width="33%" valign="top">
|
|
48
49
|
<h3>🎬 Stunning by default</h3>
|
|
49
|
-
<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>
|
|
50
51
|
</td>
|
|
51
52
|
<td width="33%" valign="top">
|
|
52
53
|
<h3>🤖 Agent-native</h3>
|
|
@@ -108,19 +109,19 @@ Once the scene exists, changing it is a conversation:
|
|
|
108
109
|
### Without an agent
|
|
109
110
|
|
|
110
111
|
```bash
|
|
111
|
-
npx -y @fleox/agent3d@0.
|
|
112
|
-
npx -y @fleox/agent3d@0.
|
|
112
|
+
npx -y @fleox/agent3d@0.3.0 new bakery --target banner --title "Golden Crust"
|
|
113
|
+
npx -y @fleox/agent3d@0.3.0 studio --project bakery
|
|
113
114
|
```
|
|
114
115
|
|
|
115
|
-
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.0 doctor` checks your setup with a test render.
|
|
116
117
|
|
|
117
118
|
The whole loop from a terminal:
|
|
118
119
|
|
|
119
120
|
```bash
|
|
120
|
-
npx -y @fleox/agent3d@0.
|
|
121
|
-
npx -y @fleox/agent3d@0.
|
|
122
|
-
npx -y @fleox/agent3d@0.
|
|
123
|
-
npx -y @fleox/agent3d@0.
|
|
121
|
+
npx -y @fleox/agent3d@0.3.0 scene patch --project bakery '[{"op":"set","path":"objects#title.material","value":{"preset":"gold"}}]'
|
|
122
|
+
npx -y @fleox/agent3d@0.3.0 render --project bakery --sheet # → renders/…-sheet.png
|
|
123
|
+
npx -y @fleox/agent3d@0.3.0 check --project bakery
|
|
124
|
+
npx -y @fleox/agent3d@0.3.0 export --project bakery # → dist/embed/ + the snippet
|
|
124
125
|
```
|
|
125
126
|
|
|
126
127
|
Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/main/docs/getting-started.md).
|
|
@@ -151,6 +152,11 @@ Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/ma
|
|
|
151
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>
|
|
152
153
|
</p>
|
|
153
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
|
+
|
|
154
160
|
**Look**
|
|
155
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
|
|
156
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
|
|
@@ -165,6 +171,7 @@ Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/ma
|
|
|
165
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
|
|
166
172
|
- A procedural **character** generator (humanoid, astronaut, robot, blob, cat, fox, bird, ghost) with animations such as wave, run, jump, dance and celebrate
|
|
167
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
|
|
168
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
|
|
169
176
|
|
|
170
177
|
**Games**
|
|
@@ -187,7 +194,7 @@ Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/ma
|
|
|
187
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.
|
|
188
195
|
|
|
189
196
|
```bash
|
|
190
|
-
npx -y @fleox/agent3d@0.
|
|
197
|
+
npx -y @fleox/agent3d@0.3.0 studio --project bakery
|
|
191
198
|
```
|
|
192
199
|
|
|
193
200
|
<p align="center">
|
|
@@ -235,12 +242,12 @@ Move / rotate / scale gizmos, an editor camera and the scene camera with framing
|
|
|
235
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">
|
|
236
243
|
</p>
|
|
237
244
|
|
|
238
|
-
|
|
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.
|
|
239
246
|
|
|
240
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.
|
|
241
248
|
|
|
242
249
|
<details>
|
|
243
|
-
<summary><b>All
|
|
250
|
+
<summary><b>All 32 templates</b></summary>
|
|
244
251
|
|
|
245
252
|
| Preview | Template | Kind | What it is |
|
|
246
253
|
|---|---|---|---|
|
|
@@ -256,6 +263,7 @@ To see them all live in a browser, build the gallery from a clone (`npm install
|
|
|
256
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). |
|
|
257
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. |
|
|
258
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). |
|
|
259
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. |
|
|
260
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. |
|
|
261
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. |
|
|
@@ -315,7 +323,7 @@ Pick Spline when a designer wants a hosted visual tool, hand-written Three.js wh
|
|
|
315
323
|
|
|
316
324
|
## The `agent3d` CLI
|
|
317
325
|
|
|
318
|
-
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.0 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`.
|
|
319
327
|
|
|
320
328
|
<p align="center">
|
|
321
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">
|
|
@@ -353,7 +361,7 @@ Full reference: [docs/cli.md](https://github.com/fleox/agent3d/blob/main/docs/cl
|
|
|
353
361
|
## MCP server
|
|
354
362
|
|
|
355
363
|
```bash
|
|
356
|
-
claude mcp add agent3d -- npx -y @fleox/agent3d@0.
|
|
364
|
+
claude mcp add agent3d -- npx -y @fleox/agent3d@0.3.0 mcp --project ~/agent3d/my-banner
|
|
357
365
|
```
|
|
358
366
|
|
|
359
367
|
<p align="center">
|
package/changelog.json
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"versions": [
|
|
3
|
+
{
|
|
4
|
+
"version": "0.3.0",
|
|
5
|
+
"date": "2026-11-26",
|
|
6
|
+
"breaking": false,
|
|
7
|
+
"changes": [
|
|
8
|
+
"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).",
|
|
9
|
+
"`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.",
|
|
10
|
+
"Studio: a \"3D photo\" tab in the Add panel, a photo inspector and a \"Generate depth map\" button.",
|
|
11
|
+
"New template `hero-photo-3d` (blue-hour street with a letter-by-letter headline); skills, recipe and docs cover the photo workflow.",
|
|
12
|
+
"`check`: photo rules (depth aspect, heavy photo, lossy depth map); scenes made only of photos no longer ask for lights."
|
|
13
|
+
],
|
|
14
|
+
"actions": [
|
|
15
|
+
"Update the skills (`/plugin marketplace update agent3d`)."
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"version": "0.2.3",
|
|
20
|
+
"date": "2026-11-26",
|
|
21
|
+
"breaking": false,
|
|
22
|
+
"changes": [
|
|
23
|
+
"README / npm page: M8ven Score badge."
|
|
24
|
+
],
|
|
25
|
+
"actions": []
|
|
26
|
+
},
|
|
3
27
|
{
|
|
4
28
|
"version": "0.2.2",
|
|
5
29
|
"date": "2026-11-23",
|