@fleox/agent3d 0.3.0 → 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.
Files changed (43) hide show
  1. package/README.md +10 -10
  2. package/changelog.json +11 -0
  3. package/dist/agent/agent3d.mjs +11 -11
  4. package/dist/agent/chunks/{depth-Dih8jLqx.mjs → depth-BZT4gseQ.mjs} +1 -1
  5. package/dist/agent/chunks/{depth-0bZsQn6N.mjs → depth-CD_ql3QJ.mjs} +1 -1
  6. package/dist/agent/chunks/{export-Cdqt3mt_.mjs → export-bJwh2SqG.mjs} +4 -2
  7. package/dist/agent/chunks/{package-d5e08XSG.mjs → package-fMbw9UGh.mjs} +1 -1
  8. package/dist/agent/chunks/{tools-Cv6N_YBI.mjs → tools-Cm4BqDkO.mjs} +4 -4
  9. package/dist/runtime/agent3d-runtime.js +2 -2
  10. package/dist/runtime/agent3d-runtime.single.js +75 -75
  11. package/dist/runtime/chunks/{photo-BlDYgYFM.js → photo-DNf14X7B.js} +9 -9
  12. package/dist/studio/assets/{assets-BFJsr9Oo.js → assets-BW5lQkYR.js} +1 -1
  13. package/dist/studio/assets/{camera-DT0xHipx.js → camera-BgzPVnn-.js} +1 -1
  14. package/dist/studio/assets/{editor-BjgHj9g8.js → editor-NkBUKsDB.js} +1 -1
  15. package/dist/studio/assets/{game-BXZEc9HN.js → game-DARpu0ah.js} +3 -3
  16. package/dist/studio/assets/{generators-DqkPMEzm.js → generators-BjIs-kHx.js} +1 -1
  17. package/dist/studio/assets/{index-DVTzVcBD.js → index-L-N-e2KM.js} +8 -8
  18. package/dist/studio/assets/{model-BqQW4Dg-.js → model-CqI8j03Z.js} +1 -1
  19. package/dist/studio/assets/{params-gVpEEiSK.js → params-DhsDKSDs.js} +1 -1
  20. package/dist/studio/assets/{photo-DRoVO5iZ.js → photo-DAHd1yNF.js} +9 -9
  21. package/dist/studio/assets/{physicsHost-DNdZ7AsT.js → physicsHost-tEUto2-_.js} +1 -1
  22. package/dist/studio/assets/{postfx-JFUGdY0d.js → postfx-BGu30OJK.js} +1 -1
  23. package/dist/studio/assets/{runtime-CMAP4azF.js → runtime-C_qkIpAK.js} +4 -4
  24. package/dist/studio/assets/{shaders-C7u6rN_6.js → shaders-Dt6FGXH_.js} +1 -1
  25. package/dist/studio/assets/{svg-DkIOJjzS.js → svg-ZZt5MdNf.js} +1 -1
  26. package/dist/studio/assets/{text-LISSAism.js → text-B-HM422i.js} +1 -1
  27. package/dist/studio/index.html +1 -1
  28. package/package.json +1 -1
  29. package/plugin/.claude-plugin/plugin.json +1 -1
  30. package/plugin/skills/agent3d-assets/SKILL.md +27 -27
  31. package/plugin/skills/agent3d-create/SKILL.md +28 -27
  32. package/plugin/skills/agent3d-create/references/art-direction.md +3 -3
  33. package/plugin/skills/agent3d-create/references/recipes.md +6 -6
  34. package/plugin/skills/agent3d-edit/SKILL.md +22 -22
  35. package/plugin/skills/agent3d-edit/references/patch-ops.md +2 -2
  36. package/plugin/skills/agent3d-game/SKILL.md +7 -7
  37. package/plugin/skills/agent3d-publish/SKILL.md +21 -21
  38. package/plugin/skills/agent3d-publish/references/integrations.md +1 -1
  39. package/templates/hero-photo-3d/assets/depth/street-depth.png +0 -0
  40. package/templates/hero-photo-3d/assets/manifest.json +3 -3
  41. package/templates/hero-photo-3d/assets/textures/street.webp +0 -0
  42. package/templates/hero-photo-3d/scene.json +1 -1
  43. package/templates/hero-photo-3d/assets/textures/street.jpg +0 -0
@@ -4,7 +4,7 @@ description: Export an Agent3D scene and put it on a website - embed folder (Web
4
4
  license: PolyForm-Noncommercial-1.0.0
5
5
  compatibility: Requires Node.js 22+ and Google Chrome (or Chromium/Edge) for renders.
6
6
  metadata:
7
- version: "0.3.0"
7
+ version: "0.3.1"
8
8
  repository: "https://github.com/fleox/agent3d"
9
9
  allowed-tools: Bash Read Write
10
10
  ---
@@ -13,12 +13,12 @@ allowed-tools: Bash Read Write
13
13
 
14
14
  **Language:** talk to the user in their language; keep commands, code and files in English.
15
15
 
16
- Every command is `npx -y @fleox/agent3d@0.3.0 <command> --json` with `--project <dir>`. Read `error.hint` when `ok` is false.
16
+ Every command is `npx -y @fleox/agent3d@0.3.1 <command> --json` with `--project <dir>`. Read `error.hint` when `ok` is false.
17
17
 
18
18
  ## Before exporting
19
19
 
20
20
  ```bash
21
- npx -y @fleox/agent3d@0.3.0 check --project my-banner --render --json
21
+ npx -y @fleox/agent3d@0.3.1 check --project my-banner --render --json
22
22
  ```
23
23
 
24
24
  No errors, no warnings (or warnings the user accepted). Keep the `licences` list: credits ship in the export.
@@ -39,15 +39,15 @@ Every asset the scene uses is copied into the export (never hotlinked): a 3D pho
39
39
  Default outputs land in `<project>/dist/`. A relative `--out` is resolved from the **project folder** (like every output path of `render` and `export`): `--project my-banner --out dist/promo.mp4` writes `my-banner/dist/promo.mp4`; absolute paths are kept.
40
40
 
41
41
  ```bash
42
- npx -y @fleox/agent3d@0.3.0 export --project my-banner --json
43
- npx -y @fleox/agent3d@0.3.0 export --project my-banner --name spring-banner --out ./site/agent3d --json
44
- npx -y @fleox/agent3d@0.3.0 export --project my-banner --base-url /wp-content/uploads/agent3d/ --cache-bust --out ./wp --json
45
- npx -y @fleox/agent3d@0.3.0 export --project my-banner --optimize --json
46
- npx -y @fleox/agent3d@0.3.0 export --format zip --project my-banner --json
47
- npx -y @fleox/agent3d@0.3.0 export --format single-html --project my-banner --json
48
- npx -y @fleox/agent3d@0.3.0 export --format poster --time 2 --image png --quality high --transparent --project my-banner --json
49
- npx -y @fleox/agent3d@0.3.0 export --format video --out dist/promo.mp4 --duration 8 --fps 30 --size 1920x1080 --project my-banner --json
50
- npx -y @fleox/agent3d@0.3.0 export --format gif --duration 4 --project my-banner --json
42
+ npx -y @fleox/agent3d@0.3.1 export --project my-banner --json
43
+ npx -y @fleox/agent3d@0.3.1 export --project my-banner --name spring-banner --out ./site/agent3d --json
44
+ npx -y @fleox/agent3d@0.3.1 export --project my-banner --base-url /wp-content/uploads/agent3d/ --cache-bust --out ./wp --json
45
+ npx -y @fleox/agent3d@0.3.1 export --project my-banner --optimize --json
46
+ npx -y @fleox/agent3d@0.3.1 export --format zip --project my-banner --json
47
+ npx -y @fleox/agent3d@0.3.1 export --format single-html --project my-banner --json
48
+ npx -y @fleox/agent3d@0.3.1 export --format poster --time 2 --image png --quality high --transparent --project my-banner --json
49
+ npx -y @fleox/agent3d@0.3.1 export --format video --out dist/promo.mp4 --duration 8 --fps 30 --size 1920x1080 --project my-banner --json
50
+ npx -y @fleox/agent3d@0.3.1 export --format gif --duration 4 --project my-banner --json
51
51
  ```
52
52
 
53
53
  Embed / zip options:
@@ -70,11 +70,11 @@ Embed / zip options:
70
70
  Media straight from `render` (frame-exact, any size / fps; LOOK at a few frames of the result):
71
71
 
72
72
  ```bash
73
- npx -y @fleox/agent3d@0.3.0 render --video renders/promo.mp4 --duration 6 --size 1920x1080 --quality high --project my-banner --json
74
- npx -y @fleox/agent3d@0.3.0 render --gif renders/banner.gif --duration 4 --project my-banner --json
75
- npx -y @fleox/agent3d@0.3.0 render --webp renders/banner.webp --duration 4 --project my-banner --json
76
- npx -y @fleox/agent3d@0.3.0 render --frames 2 --size 2400x600 --quality ultra --transparent --project my-banner --json
77
- npx -y @fleox/agent3d@0.3.0 render --scroll 0.5 --project my-scroll-story --json
73
+ npx -y @fleox/agent3d@0.3.1 render --video renders/promo.mp4 --duration 6 --size 1920x1080 --quality high --project my-banner --json
74
+ npx -y @fleox/agent3d@0.3.1 render --gif renders/banner.gif --duration 4 --project my-banner --json
75
+ npx -y @fleox/agent3d@0.3.1 render --webp renders/banner.webp --duration 4 --project my-banner --json
76
+ npx -y @fleox/agent3d@0.3.1 render --frames 2 --size 2400x600 --quality ultra --transparent --project my-banner --json
77
+ npx -y @fleox/agent3d@0.3.1 render --scroll 0.5 --project my-scroll-story --json
78
78
  ```
79
79
 
80
80
  `--quality high|ultra` supersamples 2× / 3× (smoother edges), `--transparent` gives alpha PNG / GIF / WebP, `--scroll 0.5` holds a scroll-driven scene at that scroll progress, `--fps` / `--start` / `--bitrate` tune videos, `--yes` overwrites an existing media file. `--video`, `--gif` and `--webp` paths (like `--out`) are relative to the project folder. MP4 needs Google Chrome or Edge (H.264 encoder); with Chromium, render `.webm`. Videos and posters capture the WebGL canvas only (no HUD).
@@ -82,8 +82,8 @@ npx -y @fleox/agent3d@0.3.0 render --scroll 0.5 --project my-scroll-story --json
82
82
  Scenes whose timeline waits for the visitor (`autoplay: false`, `trigger: "manual"` / `"click"`, segments played by interactions) are still at t = 0 in a plain render: film the segment with `--segment`, or play the interaction with `--input` (frames, `--video`, `--gif` and `--webp` all apply it):
83
83
 
84
84
  ```bash
85
- npx -y @fleox/agent3d@0.3.0 render --video renders/celebrate.webm --segment celebrate --duration 4 --project my-mascot --json
86
- npx -y @fleox/agent3d@0.3.0 render --sheet --frames 0,1,2,3 --input '[{"t": 0, "segment": "celebrate"}]' --project my-mascot --json
85
+ npx -y @fleox/agent3d@0.3.1 render --video renders/celebrate.webm --segment celebrate --duration 4 --project my-mascot --json
86
+ npx -y @fleox/agent3d@0.3.1 render --sheet --frames 0,1,2,3 --input '[{"t": 0, "segment": "celebrate"}]' --project my-mascot --json
87
87
  ```
88
88
 
89
89
  `--reduced-motion` renders what visitors with prefers-reduced-motion see.
@@ -114,7 +114,7 @@ Always paste the snippet from the export result (hashes and file names change wi
114
114
  Write `{data.key}` in a text object's `text` (or an `href`), give defaults in `scene.data`, and the page fills them per embed — no re-export:
115
115
 
116
116
  ```bash
117
- npx -y @fleox/agent3d@0.3.0 scene patch --project my-banner '[{"op":"set","path":"data","value":{"title":"Spring sale"}},{"op":"updateObject","id":"title","set":{"text":"{data.title}"}}]' --json
117
+ npx -y @fleox/agent3d@0.3.1 scene patch --project my-banner '[{"op":"set","path":"data","value":{"title":"Spring sale"}},{"op":"updateObject","id":"title","set":{"text":"{data.title}"}}]' --json
118
118
  ```
119
119
 
120
120
  ```html
@@ -127,7 +127,7 @@ Placeholders work in text objects' `text`, any object's `href` and HUD texts. `{
127
127
 
128
128
  Step-by-step per platform (plain HTML, WordPress, AgentCMS, React / Next.js, Astro, Vue / Nuxt, Svelte, static hosts and CDNs): [references/integrations.md](references/integrations.md). In short:
129
129
 
130
- - **Plain HTML / static hosts** (Netlify, GitHub Pages, Cloudflare Pages, S3): copy the export folder next to the page, paste the snippet. Open `index.html` of the export through a local server (`npx -y @fleox/agent3d@0.3.0 serve --project my-banner` previews the project; module scripts don't run from `file://`: opened that way, the demo page only shows the poster and a note asking for a web server).
130
+ - **Plain HTML / static hosts** (Netlify, GitHub Pages, Cloudflare Pages, S3): copy the export folder next to the page, paste the snippet. Open `index.html` of the export through a local server (`npx -y @fleox/agent3d@0.3.1 serve --project my-banner` previews the project; module scripts don't run from `file://`: opened that way, the demo page only shows the poster and a note asking for a web server).
131
131
  - **WordPress**: export with `--base-url /wp-content/uploads/agent3d/`, upload the export folder there (SFTP / the host's file manager), then a **Custom HTML** block with the snippet. The media library refuses `.js` / `.json` files.
132
132
  - **Webflow / Shopify**: host the folder on a static host or CDN, export with `--base-url https://…/`, paste the snippet in an Embed element / Custom Liquid section.
133
133
  - **Squarespace / Wix / Framer**: `single-html` in an `<iframe>`.
@@ -7,7 +7,7 @@ All examples assume the embed export was uploaded to `/agent3d/` at the root of
7
7
  /agent3d/spring-banner/scene.json (+ assets/, scripts/, poster.webp, og-image.png, CREDITS.txt)
8
8
  ```
9
9
 
10
- Export straight into that layout with `npx -y @fleox/agent3d@0.3.0 export --project spring-banner --out ./public/agent3d --base-url /agent3d/ --json` (the `<name>` folder defaults to the project name; `--name` changes it; `--base-url` writes root-absolute URLs in the snippet, the wrappers and EMBED.md). Paste the `snippet` of the result: the examples below shorten the integrity hashes and the poster markup.
10
+ Export straight into that layout with `npx -y @fleox/agent3d@0.3.1 export --project spring-banner --out ./public/agent3d --base-url /agent3d/ --json` (the `<name>` folder defaults to the project name; `--name` changes it; `--base-url` writes root-absolute URLs in the snippet, the wrappers and EMBED.md). Paste the `snippet` of the result: the examples below shorten the integrity hashes and the poster markup.
11
11
 
12
12
  ## Plain HTML
13
13
 
@@ -3,7 +3,7 @@
3
3
  {
4
4
  "path": "assets/depth/street-depth.png",
5
5
  "kind": "texture",
6
- "bytes": 185654,
6
+ "bytes": 80233,
7
7
  "source": "depth-anything-v2-small",
8
8
  "sourceUrl": "https://huggingface.co/onnx-community/depth-anything-v2-small",
9
9
  "license": "CC0-1.0",
@@ -12,9 +12,9 @@
12
12
  "addedAt": "2026-11-26T00:00:00.000Z"
13
13
  },
14
14
  {
15
- "path": "assets/textures/street.jpg",
15
+ "path": "assets/textures/street.webp",
16
16
  "kind": "texture",
17
- "bytes": 552060,
17
+ "bytes": 329510,
18
18
  "source": "local",
19
19
  "sourceUrl": "https://commons.wikimedia.org/wiki/File:Herzog-Friedrich-Stra%C3%9Fe_in_Innsbruck%27s_Historic_Old_Town,_Austria.jpg",
20
20
  "license": "CC0-1.0",
@@ -38,7 +38,7 @@
38
38
  {
39
39
  "id": "photo",
40
40
  "kind": "photo",
41
- "src": "assets/textures/street.jpg",
41
+ "src": "assets/textures/street.webp",
42
42
  "depth": "assets/depth/street-depth.png",
43
43
  "mode": "parallax",
44
44
  "width": 11.9,