meshy-dsh 0.3.2 → 0.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meshy-dsh",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Meshy skills for DeepSeek Harness: textured, rigged and animated 3D models or print-ready files from text or images, through meshy-cli, with a Meshy settings page and a 3D preview for GLB files.",
5
5
  "keywords": [
6
6
  "dsh-plugin",
@@ -49,7 +49,7 @@
49
49
  "smoke": "node scripts/smoke.mjs"
50
50
  },
51
51
  "meshy": {
52
- "skills": "meshy-dev/meshy-3d-agent#v0.9.1"
52
+ "skills": "meshy-dev/meshy-3d-agent#v0.9.4"
53
53
  },
54
54
  "dsh": {
55
55
  "bundle": {
@@ -65,6 +65,6 @@
65
65
  "tsdown": "^0.23.4"
66
66
  },
67
67
  "dependencies": {
68
- "meshy-cli": "0.8.2"
68
+ "meshy-cli": "0.8.3"
69
69
  }
70
70
  }
@@ -2,12 +2,12 @@
2
2
  name: meshy-3d-generation
3
3
  description: "Generates and edits digital 3D assets with the Meshy CLI: text-to-3D and image-to-3D models, texturing, remeshing and LODs, UV unwrapping, format conversion (GLB, FBX, OBJ, USDZ, STL, 3MF, Blender), rigging, animation, motion clips from text and reference images. Use when the user asks to make, texture, rig, animate or convert a 3D model or game asset. For physical 3D printing use meshy-3d-printing."
4
4
  license: MIT
5
- compatibility: "Needs Node.js 22.12+ and the Meshy CLI 0.8.x, 0.8.2 or later (npm install -g meshy-cli@0.8); network access to the Meshy API."
5
+ compatibility: "Needs Node.js 22.12+ and the Meshy CLI 0.8.x, 0.8.3 or later (npm install -g meshy-cli@0.8); network access to the Meshy API."
6
6
  ---
7
7
 
8
8
  # Meshy 3D Generation
9
9
 
10
- Use Meshy CLI **0.8** (0.8.2 or later) to turn the user's request into a delivered asset. Completion means
10
+ Use Meshy CLI **0.8** (0.8.3 or later) to turn the user's request into a delivered asset. Completion means
11
11
  saving the requested files in the requested location, inspecting an available preview, and
12
12
  finishing any project integration the user requested. Login or task submission alone is not
13
13
  completion. Choose the shortest suitable pipeline and reuse existing assets for follow-ups.
@@ -17,7 +17,7 @@ completion. Choose the shortest suitable pipeline and reuse existing assets for
17
17
  | Need | Reference |
18
18
  |---|---|
19
19
  | CLI runner, credentials, or output location | [Setup](references/setup.md) |
20
- | Generation, texturing, remeshing, conversion, scale, or 2D images | [Pipelines](references/pipelines.md) |
20
+ | Generation and the models to pair for a project, texturing, remeshing, conversion, scale, or 2D images | [Pipelines](references/pipelines.md) |
21
21
  | Rigging, animation, or generated motion | [Animation](references/animation.md) |
22
22
  | Cost, waiting, preview, delivery, or finding a previous model | [Delivery](references/delivery.md) |
23
23
  | Failed or uncertain operation | [Troubleshooting](references/troubleshooting.md) |
@@ -35,7 +35,7 @@ cannot see that sign-in — install nothing, and when a command reports that nob
35
35
  call the `meshy_sign_in` tool instead of `auth login` (Setup, section 1). Everywhere else:
36
36
 
37
37
  Before the first command run `meshy --version`; no need to ask. When `meshy` is missing or
38
- older than 0.8.2, install the newest 0.8.x with `npm install -g meshy-cli@0.8` and say so in
38
+ older than 0.8.3, install the newest 0.8.x with `npm install -g meshy-cli@0.8` and say so in
39
39
  one line; Setup covers a refused install and a CLI of 0.9 or newer. Reuse a verified session. If login is
40
40
  needed, follow Setup and run `auth login --device` (adding `--region cn` for a user in mainland
41
41
  China: the same account and the same credits as the global site) in a persistent tool session. Show its
@@ -45,6 +45,13 @@ A background process cannot resume a finished turn; do not require a "done" chat
45
45
  Setup's two-step sign-in for a user on a remote chat (a phone through a chat bot).
46
46
  Browser approval stays with the user; credentials never belong in chat.
47
47
 
48
+ Only the CLI touches its config directory (`~/.config/meshy` by default): never read, copy,
49
+ edit or delete a file there (an old `credentials.json` included), and never look for credentials
50
+ anywhere else. When a sandboxed shell blocks the network (`auth login` fails with `oauth_network`
51
+ or `fetch failed`), run the same command again with network access or outside the sandbox, asking
52
+ the user to allow it if the host requires. Do not probe with `curl` or switch to `--with-key`
53
+ (Setup, section 3).
54
+
48
55
  ## Execution boundaries
49
56
 
50
57
  - Run API, upload, download and mesh operations through the CLI. Local inputs have a 50 MiB
@@ -53,6 +60,10 @@ Browser approval stays with the user; credentials never belong in chat.
53
60
  - Use `--format json --no-update-check` on every command: stdout is one `meshy.cli/v1` envelope,
54
61
  auth included. Resolve `WORKSPACE` from the user's output
55
62
  path and pass it to writes.
63
+ - Know what the model is for before the first paid create: a game asset, a character to rig, a
64
+ render, a 3D print. If the user hasn't said, ask once; the answer picks the route and the models
65
+ ([Pipelines](references/pipelines.md)). A game asset or a face-count budget means smart topology,
66
+ not a standard model remeshed down.
56
67
  - Submit once with `create --async`, retain the owning resource and ID, then `wait` on that
57
68
  task. Keep the agent turn active while awaiting a running command. Follow Troubleshooting
58
69
  on timeout or unknown submission; these do not authorize another paid create.
@@ -21,13 +21,15 @@ meshy make "MODEL_DESCRIPTION" --dry-run --format json --no-update-check
21
21
 
22
22
  Read `steps[]` and `estimated_credits`. The numbers carry over to `text-to-3d`/`image-to-3d`
23
23
  commands you run yourself only with the same settings (the default model, texture up to 4k, no
24
- `--geometry-resolution`); Smart Topology, 8k texture or the geometry pass are priced from the
25
- list below.
24
+ `--geometry-resolution`); Smart Topology, Meshy 6 Lite, 8k texture or the geometry pass are
25
+ priced from the list below. The texture model alone does not change the price: a task costs
26
+ the mesh plus the texture at its resolution.
26
27
 
27
28
  2. **The published price list**, <https://docs.meshy.ai/en/api/pricing>, for everything else —
28
29
  retexture, remesh, convert, resize, UV, rigging, animation, 2D, motion, print analysis and
29
30
  repair, multicolor, auto split, Creative Lab. Quote it with the date you read it and call it an estimate.
30
- Smart Topology is the `meshy-t2.5` (or `meshy-t2`) column; the page is also served as
31
+ Smart Topology is the `meshy-t2.5` (or `meshy-t2`) column, and a pair with a texture model
32
+ other than the default is in its *Texture models* table; the page is also served as
31
33
  Markdown at <https://docs.meshy.ai/api/pricing.md>.
32
34
 
33
35
  Nothing else is a quote. `meshy balance` reports the **balance**, not a price. Do not invent a
@@ -1,9 +1,10 @@
1
1
  # Digital asset pipelines — CLI 0.8
2
2
 
3
- Contents: route choice; shared lifecycle; text/image models; texture/topology/size; 2D images;
4
- downloads and recovery. Rigging, animation and generated motion are in [animation](animation.md);
5
- cost, previews, hand-over and follow-up requests in [delivery](delivery.md); the runner, login and
6
- the meaning of `WORKSPACE`/`JOB_DIR` in [setup](setup.md).
3
+ Contents: route choice; models by project; shared lifecycle; text/image models;
4
+ texture/topology/size; 2D images; downloads and recovery. Rigging, animation and generated
5
+ motion are in [animation](animation.md); cost, previews, hand-over and follow-up requests in
6
+ [delivery](delivery.md); the runner, login and the meaning of `WORKSPACE`/`JOB_DIR` in
7
+ [setup](setup.md).
7
8
 
8
9
  Commands are templates: replace uppercase placeholders with values from the user's inputs or
9
10
  the preceding JSON, quoting paths and text as individual shell arguments. Each command is a
@@ -16,10 +17,13 @@ text.
16
17
  | What the user wants | Route | Notes |
17
18
  |---|---|---|
18
19
  | A model to look at / a digital prop | text-to-3d preview, then refine when texture is wanted | GLB unless they name a format |
19
- | A model of a specific object in a photo | image-to-3d, textured by default (`--should-texture false` for a draft) | one clean reference, whole subject visible |
20
+ | A model of a specific object in a photo | image-to-3d, textured by default (`--should-texture false` for a draft) | one clean reference, whole subject visible; pick the models by project (below) |
20
21
  | A model from multi-view images of one object (front, side, back) | multi-image-to-3d | every view shows the same object; front first |
22
+ | A game character to rig and animate, from an image | image-to-3d with smart topology (`meshy-t2.5`) and `--texture-model meshy-n1` in A/T pose, then rigging | set `--target-polycount`; see [animation](animation.md) |
23
+ | Many props for a game scene, or user-generated content, from images | image-to-3d with smart topology `--ai-model meshy-t2` and `--texture-model meshy-n1` | one task per prop |
24
+ | Many drafts at a low cost | image-to-3d with `meshy-6-lite` geometry and texture | recipe under *Single image* below |
21
25
  | A new look for a model that exists | retexture that task or file | text style, style image, or photos of the real object |
22
- | A low-poly / game-ready asset on a budget | image-to-3d or text-to-3d preview with `--model-type smart-topology --target-polycount N`, or remesh after a standard model | ranges under *Single image* below; mobile/web budgets sit at the low end |
26
+ | A low-poly / game-ready asset on a budget | image-to-3d as in the game rows above, or text-to-3d preview with `--model-type smart-topology --target-polycount N`, or remesh a standard model the user already has | ranges under *Single image* below; mobile/web budgets sit at the low end |
23
27
  | An LOD chain from a model that exists | remesh the **existing** task, once per level | never regenerate for a second LOD |
24
28
  | A character that must move, or new actions for a rig | textured humanoid in A/T pose → rigging → bundled walk/run, a library action, or a generated motion | see [animation](animation.md) |
25
29
  | A motion clip without a character | text-to-motion | see [animation](animation.md) |
@@ -31,6 +35,40 @@ text.
31
35
  Prefer the shortest chain that satisfies the request. An untextured mesh does not need refine;
32
36
  a GLB does not need a convert step; a plain preview does not need a 2D concept first.
33
37
 
38
+ ## Choose the models by project
39
+
40
+ Image-to-3d and multi-image-to-3d make a model with two AI models: a geometry model builds the
41
+ mesh and a texture model paints it. Choose models by project (geometry `ai_model` + `texture_model`):
42
+
43
+ | Project | Geometry | Texture |
44
+ |---|---|---|
45
+ | Detailed hero asset, product render, cinematic prop | `meshy-7.1` | `meshy-7` (PBR, up to 8K) |
46
+ | Game character to rig and animate | `meshy-t2.5` (smart topology, set `target_polycount`) | `meshy-n1` |
47
+ | Many props for a game scene, or user-generated content | `meshy-t2` (smart topology) | `meshy-n1` |
48
+ | A real object from 2 to 4 photos | `meshy-7.1` on Multi-Image to 3D | `meshy-7` |
49
+ | A model to 3D print | `meshy-7.1` | none, or `meshy-7` to print in color |
50
+ | Many drafts at a low cost | `meshy-6-lite` | `meshy-6-lite` |
51
+
52
+ More: <https://docs.meshy.ai/en/api/models>
53
+
54
+ How the CLI sets each one:
55
+
56
+ - **Geometry.** `meshy-7.1` is standard mode, the default, so it needs no flag. Smart topology is
57
+ `--model-type smart-topology`, on `meshy-t2.5` unless you add `--ai-model meshy-t2`.
58
+ `meshy-6-lite` has no flag: send it as `--data '{"ai_model":"meshy-6-lite"}'`.
59
+ - **Texture.** `--texture-model meshy-7`, `meshy-n1` or `meshy-6-lite`; multi-image-to-3d takes
60
+ `meshy-7` or `meshy-n1` only. Left out, the API uses the geometry's own default: Meshy 7 for
61
+ `meshy-7.1`, `meshy-t2.5` and `meshy-t2`, Meshy 6 Lite for `meshy-6-lite`. At a given texture
62
+ resolution the texture model does not change the price. An untextured run
63
+ (`--should-texture false`) has no texture model, and the CLI refuses the flag with it.
64
+ - **What each texture model takes.** Meshy 7: PBR maps, a 2k, 4k or 8k base color, a texture
65
+ prompt. Meshy N1: a 2k base color painted from the reference images alone, so no
66
+ `--enable-pbr true`, no 4k or 8k, no `--texture-prompt` and no `--remove-lighting`; a model
67
+ over 7,999,999 triangles fails with it and is refunded, so do not pair it with
68
+ `--geometry-resolution 4k`. Meshy 6 Lite: 2k only, PBR allowed, no `--remove-lighting`. The CLI's
69
+ texture defaults follow the texture model, and it refuses a setting that model does not take
70
+ (exit 2) before anything is sent, so drop that flag rather than retrying.
71
+
34
72
  ## Shared lifecycle
35
73
 
36
74
  Choose one `create` recipe below. Read its `result.submission.task_id` as `TASK_ID` and keep
@@ -70,33 +108,46 @@ Without `--texture-resolution` refine uses the server's 2k; 4k and 8k need a mes
70
108
  for one.
71
109
 
72
110
  **Single image:** use a clean reference with the whole subject visible. The CLI textures by
73
- default, as the API does, and also asks for full PBR maps and a 4k base colour; texturing is
74
- billed, so say which you want:
75
- `--should-texture false` gives the untextured draft. Texture settings (`--enable-pbr`,
76
- `--texture-resolution`, `--texture-prompt`) are refused together with `--should-texture false`.
111
+ default, as the API does, and with Meshy 7 also asks for full PBR maps and a 4k base colour;
112
+ texturing is billed, so say which you want:
113
+ `--should-texture false` gives the untextured draft. Texture settings (`--texture-model`,
114
+ `--enable-pbr`, `--texture-resolution`, `--texture-prompt`) are refused together with
115
+ `--should-texture false`. The detailed hero asset (`meshy-7.1` with `meshy-7`):
77
116
 
78
117
  ```bash
79
- meshy image-to-3d create --image-url "PHOTO_PATH" --model-type standard --should-texture true --enable-pbr true --texture-resolution 4k --target-formats glb --async --format json --no-update-check
118
+ meshy image-to-3d create --image-url "PHOTO_PATH" --model-type standard --should-texture true --texture-model meshy-7 --enable-pbr true --texture-resolution 4k --target-formats glb --async --format json --no-update-check
80
119
  ```
81
120
 
82
- For a draft use `--should-texture false` and omit `--enable-pbr`/`--texture-resolution`. For
83
- controllable low-poly output use smart topology: its default model, meshy-t2.5, takes 100–30,000
121
+ For a draft use `--should-texture false` and omit `--texture-model`, `--enable-pbr` and
122
+ `--texture-resolution`. For controllable low-poly output use smart topology: its default model, meshy-t2.5, takes 100–30,000
84
123
  target triangles (default 15,000); `--ai-model meshy-t2`
85
124
  takes 100–15,000 (default 10,000). Standard mode needs a later remesh for polygon control.
86
125
  `--geometry-resolution 2k|4k` adds a paid high-detail geometry pass to standard mode on the
87
126
  default model (meshy-7.1) only; never
88
- combine it with smart topology.
127
+ combine it with smart topology. A game character to rig (`meshy-t2.5` with `meshy-n1`), then
128
+ many props or user-generated content (`meshy-t2` with `meshy-n1`):
129
+
130
+ ```bash
131
+ meshy image-to-3d create --image-url "PHOTO_PATH" --model-type smart-topology --target-polycount 10000 --texture-model meshy-n1 --pose-mode a-pose --target-formats glb --async --format json --no-update-check
132
+ meshy image-to-3d create --image-url "PHOTO_PATH" --model-type smart-topology --ai-model meshy-t2 --texture-model meshy-n1 --target-formats glb --async --format json --no-update-check
133
+ ```
134
+
135
+ Add `--should-texture false` and drop `--texture-model` for an untextured low-poly mesh. Many
136
+ drafts at a low cost (`meshy-6-lite` with `meshy-6-lite`): it remeshes to 30,000 faces by default
137
+ and textures at 2k, and the API refuses `--image-enhancement` and `--geometry-resolution` with it.
89
138
 
90
139
  ```bash
91
- meshy image-to-3d create --image-url "PHOTO_PATH" --model-type smart-topology --target-polycount 10000 --should-texture false --target-formats glb --async --format json --no-update-check
140
+ meshy image-to-3d create --image-url "PHOTO_PATH" --data '{"ai_model":"meshy-6-lite"}' --texture-model meshy-6-lite --target-formats glb --async --format json --no-update-check
92
141
  ```
93
142
 
94
143
  **Multiple views:** supply consistent views of the same object; it is textured by default like a
95
144
  single image. Use `--data` with an `image_urls` JSON array for paths containing commas.
96
- `--geometry-resolution 2k` is the paid high-detail pass here (no 4k).
145
+ `--geometry-resolution 2k` is the paid high-detail pass here (no 4k). A real object from 2 to 4
146
+ photos is `meshy-7.1` with `meshy-7`; `--texture-model meshy-n1` also paints from every view, and
147
+ `meshy-6-lite` is not offered here.
97
148
 
98
149
  ```bash
99
- meshy multi-image-to-3d create --image-urls "FRONT_PATH,SIDE_PATH,BACK_PATH" --should-texture true --enable-pbr true --texture-resolution 4k --target-formats glb --async --format json --no-update-check
150
+ meshy multi-image-to-3d create --image-urls "FRONT_PATH,SIDE_PATH,BACK_PATH" --should-texture true --texture-model meshy-7 --enable-pbr true --texture-resolution 4k --target-formats glb --async --format json --no-update-check
100
151
  ```
101
152
 
102
153
  A completed text-to-image or image-to-image task can supply the reference without downloading
@@ -161,9 +212,10 @@ new download and check. An unknown count is not a pass, and not a reason for a s
161
212
  Text-to-image makes a design or reference image. Image-to-image edits an existing reference; keep
162
213
  the edit prompt specific. These may be final deliverables, or approved pre-steps to 3D — offer
163
214
  them, never insert them silently into a 3D request. Use `gpt-image-2-5-flare` unless the user names
164
- another model from `create --help`. `nano-banana-pro` needs a Pro plan or higher, and
165
- on a lower plan it fails like an empty balance (exit 9) with credits left: retry once on
166
- `gpt-image-2-5-flare` rather than reporting a low balance.
215
+ another model from `create --help`. `nano-banana-pro`, and `--pose-mode` on the older nano-banana
216
+ models, need a Pro plan or above. On a lower plan the create fails with exit 9 and
217
+ `plan_upgrade_required` even with credits left: retry once on `gpt-image-2-5-flare` rather than
218
+ reporting a plan or balance problem.
167
219
 
168
220
  ```bash
169
221
  meshy text-to-image create --ai-model gpt-image-2-5-flare --prompt "DESIGN_DESCRIPTION" --aspect-ratio 1:1 --async --format json --no-update-check
@@ -2,7 +2,7 @@
2
2
 
3
3
  Shared by the generation and print workflows. Three things are settled before any job
4
4
  starts: **how to run the CLI**, **whether a session already exists**, and **where files go**.
5
- The supported CLI is **0.8.x, from 0.8.2,** on **Node.js 22.12 or newer**. No Python, request wrapper or
5
+ The supported CLI is **0.8.x, from 0.8.3,** on **Node.js 22.12 or newer**. No Python, request wrapper or
6
6
  separate token store is involved.
7
7
 
8
8
  Contents: 1 runner · 2 reuse a session · 3 first login · 4 where files go · 5 one session
@@ -33,8 +33,8 @@ meshy --version
33
33
 
34
34
  | Observation | What to do |
35
35
  |---|---|
36
- | `meshy --version` prints 0.8.2 or a later 0.8.x | run `meshy` |
37
- | no `meshy` command, or a version older than 0.8.2 | install the newest 0.8.x (below), then run `meshy` |
36
+ | `meshy --version` prints 0.8.3 or a later 0.8.x | run `meshy` |
37
+ | no `meshy` command, or a version older than 0.8.3 | install the newest 0.8.x (below), then run `meshy` |
38
38
  | 0.9 or newer | keep it, since something else may rely on it, and run the temporary package |
39
39
  | no Node.js, or Node older than 22.12 | stop and report it: the user installs Node.js 22.12+ |
40
40
 
@@ -43,15 +43,15 @@ npm install -g meshy-cli@0.8
43
43
  ```
44
44
 
45
45
  Check and install without asking first; say in one line that you are installing it. Install at
46
- most once: when `meshy --version` still reports a version older than 0.8.2 afterwards, the
46
+ most once: when `meshy --version` still reports a version older than 0.8.3 afterwards, the
47
47
  registry this machine uses lags npm, so report that instead of installing again. Never use `sudo`
48
48
  or change system policy: when the install is refused (permissions, a managed machine, a sandbox), use the temporary package
49
49
  instead. It runs the same CLI without installing anything: put `npm exec --yes
50
- --package=meshy-cli@0.8.2 --` in front of the same arguments, and the exit code and the JSON on
50
+ --package=meshy-cli@0.8.3 --` in front of the same arguments, and the exit code and the JSON on
51
51
  stdout are forwarded unchanged. Recipes are written as `meshy …`; example:
52
52
 
53
53
  ```bash
54
- npm exec --yes --package=meshy-cli@0.8.2 -- meshy auth status --format json --no-update-check
54
+ npm exec --yes --package=meshy-cli@0.8.3 -- meshy auth status --format json --no-update-check
55
55
  ```
56
56
 
57
57
  The first such call downloads the package into the npm cache; later calls reuse it. It names an
@@ -160,6 +160,13 @@ Failure branches — each is a different recovery, so read the error rather than
160
160
  - **`device_flow_not_supported`**: this API host has no device endpoint. Ask the user to run
161
161
  `meshy auth login` in their own desktop terminal (loopback + browser), or to store their own
162
162
  key with `meshy auth login --with-key <key>` privately. Never ask for the key in chat.
163
+ - **Network blocked by a sandbox** (the login fails within a second with `error.details.code:
164
+ "oauth_network"` and a `fetch failed` message, before any URL or code appears): the shell
165
+ cannot reach Meshy, so no login can finish there. Run the *same* command again with network
166
+ access or outside the sandbox, asking the user to allow it if the host requires approval. Do
167
+ not follow the error's `--with-key` hint, probe the network with `curl`, or go looking for a
168
+ credential to reuse: an older `credentials.json` is the CLI's to move over, never yours to
169
+ read, copy or edit (section 5).
163
170
  - **Host cannot keep a process alive at all**: use the two-step sign-in below.
164
171
 
165
172
  ### Remote chat: sign in across two turns
@@ -235,7 +242,9 @@ login over on its first write, and an older CLI then signs in once on its own.
235
242
 
236
243
  `MESHY_CONFIG_DIR` changes the config directory; `MESHY_CREDENTIALS_PATH` overrides the
237
244
  credential file. Non-production API hosts use `credentials.v2.dev.json` by default. Keep these
238
- settings consistent; do not copy tokens between plugins or read the credential file.
245
+ settings consistent. Only the CLI touches the config directory: never read, copy, move, edit or
246
+ delete a credential file there (the older `credentials.json` included, even to inspect its
247
+ fields), and do not copy tokens between plugins.
239
248
  `auth list` reports profile kinds with masked credentials. `auth use <name>` changes the shared
240
249
  active profile, so do not switch it independently in concurrent workflows.
241
250
 
@@ -11,9 +11,9 @@ timeout · deleting a task · local files.
11
11
 
12
12
  ## Runner problems
13
13
 
14
- - **`meshy: command not found`** or **a version older than 0.8.2**: install the newest 0.8.x as
14
+ - **`meshy: command not found`** or **a version older than 0.8.3**: install the newest 0.8.x as
15
15
  Setup describes. If the install is refused, use the temporary package
16
- (`npm exec --yes --package=meshy-cli@0.8.2 -- meshy …`) and carry on with the same job.
16
+ (`npm exec --yes --package=meshy-cli@0.8.3 -- meshy …`) and carry on with the same job.
17
17
  - **A global 0.9 or newer** answers `--version`. Do not uninstall or downgrade it; use the
18
18
  temporary package for this work and mention the mismatch once.
19
19
  - **Node older than 22.12** fails the CLI's own runtime gate. Report the required version and the
@@ -54,7 +54,7 @@ status does not honor it.
54
54
  | 6 | Rate limit | Back off for read/status requests; respect server guidance. A create refused with a message starting `NoMorePendingTasks` made no task: too many of the account's tasks are queued or running, so wait for one to finish, then submit once. |
55
55
  | 7 | Network | Retry safe reads after connectivity recovers; inspect submission state before any create. |
56
56
  | 8 | Timeout | Resume waiting on an existing task; a login timeout needs a new authorization flow. |
57
- | 9 | The account cannot pay for this task | Too few credits, a Free plan (creating tasks needs a paid plan), a per-key monthly credit limit, or a plan-gated model (`nano-banana-pro` below Pro). Read the message, report the actual cause, and do not resubmit. |
57
+ | 9 | The account cannot pay for this task | Too few credits, a Free plan (creating tasks needs a paid plan), a per-key monthly credit limit, or a model that needs a Pro plan or above (`nano-banana-pro`, or `--pose-mode` on an older nano-banana model). Read the message, report the actual cause, and do not resubmit the same request. `error.details.body.code` `plan_upgrade_required` (HTTP 402) is the plan, not the balance, even when the hint says out of credits and `error.recovery` suggests a top-up: credits do not lift it. If the refused task used one of those models, retry once on `gpt-image-2-5-flare`. Otherwise, or if that retry gets the same code, tell the user that creating tasks needs a Pro plan or above (plans and prices: <https://www.meshy.ai/pricing>), and do not suggest a top-up or an upgrade. |
58
58
  | 10 | Submission outcome unknown | Reconcile first; never automatically resubmit. |
59
59
  | 11 | Local I/O | Fix the output path/permissions, or choose another path when the target holds files that are not that task's own; then rerun the same `-o` or `download`. |
60
60
  | 12 / 13 | Check failed / unknown | Inspect check details; do not present an unknown result as a pass. |
@@ -2,12 +2,12 @@
2
2
  name: meshy-3d-printing
3
3
  description: "Generates and prepares models for physical 3D printing with the Meshy CLI: white and multicolor prints (3MF, STL, OBJ), printability analysis and repair, splitting into parts, Creative Lab products such as figures, lamps and keychains, sizing, and slicer handoff (Bambu Studio, OrcaSlicer, PrusaSlicer, Cura). Use when the user wants something 3D-printed or asks for print or slicer files."
4
4
  license: MIT
5
- compatibility: "Needs Node.js 22.12+ and the Meshy CLI 0.8.x, 0.8.2 or later (npm install -g meshy-cli@0.8); network access to the Meshy API."
5
+ compatibility: "Needs Node.js 22.12+ and the Meshy CLI 0.8.x, 0.8.3 or later (npm install -g meshy-cli@0.8); network access to the Meshy API."
6
6
  ---
7
7
 
8
8
  # Meshy 3D Printing
9
9
 
10
- Use Meshy CLI **0.8** (0.8.2 or later) to deliver the requested print files at the intended size, with
10
+ Use Meshy CLI **0.8** (0.8.3 or later) to deliver the requested print files at the intended size, with
11
11
  analysis/repair results where applicable and a slicer handoff when requested. This skill is
12
12
  self-contained. Ordinary digital assets belong to meshy-3d-generation.
13
13
 
@@ -54,7 +54,7 @@ cannot see that sign-in — install nothing, and when a command reports that nob
54
54
  call the `meshy_sign_in` tool instead of `auth login` (Setup, section 1). Everywhere else:
55
55
 
56
56
  Before the first command run `meshy --version`; no need to ask. When `meshy` is missing or
57
- older than 0.8.2, install the newest 0.8.x with `npm install -g meshy-cli@0.8` and say so in
57
+ older than 0.8.3, install the newest 0.8.x with `npm install -g meshy-cli@0.8` and say so in
58
58
  one line; Setup covers a refused install and a CLI of 0.9 or newer. Local-only work stops at runner setup.
59
59
  Cloud work reuses a verified session. If login is needed, keep `auth login --device` running (with `--region cn` for a
60
60
  user in mainland China: the same account and credits as the global site),
@@ -63,6 +63,13 @@ same tool session in this turn. After it exits, verify `auth status` and resume
63
63
  Never ask for credentials in chat, nor for a "done" message except in Setup's two-step sign-in for a
64
64
  user on a remote chat (a phone through a chat bot); Setup has the host wait procedure.
65
65
 
66
+ Only the CLI touches its config directory (`~/.config/meshy` by default): never read, copy,
67
+ edit or delete a file there (an old `credentials.json` included), and never look for credentials
68
+ anywhere else. When a sandboxed shell blocks the network (`auth login` fails with `oauth_network`
69
+ or `fetch failed`), run the same command again with network access or outside the sandbox, asking
70
+ the user to allow it if the host requires. Do not probe with `curl` or switch to `--with-key`
71
+ (Setup, section 3).
72
+
66
73
  ## Printing-specific constraints
67
74
 
68
75
  - Repair changes geometry and drops textures. Use repaired geometry downstream and retexture
@@ -21,13 +21,15 @@ meshy make "MODEL_DESCRIPTION" --dry-run --format json --no-update-check
21
21
 
22
22
  Read `steps[]` and `estimated_credits`. The numbers carry over to `text-to-3d`/`image-to-3d`
23
23
  commands you run yourself only with the same settings (the default model, texture up to 4k, no
24
- `--geometry-resolution`); Smart Topology, 8k texture or the geometry pass are priced from the
25
- list below.
24
+ `--geometry-resolution`); Smart Topology, Meshy 6 Lite, 8k texture or the geometry pass are
25
+ priced from the list below. The texture model alone does not change the price: a task costs
26
+ the mesh plus the texture at its resolution.
26
27
 
27
28
  2. **The published price list**, <https://docs.meshy.ai/en/api/pricing>, for everything else —
28
29
  retexture, remesh, convert, resize, UV, rigging, animation, 2D, motion, print analysis and
29
30
  repair, multicolor, auto split, Creative Lab. Quote it with the date you read it and call it an estimate.
30
- Smart Topology is the `meshy-t2.5` (or `meshy-t2`) column; the page is also served as
31
+ Smart Topology is the `meshy-t2.5` (or `meshy-t2`) column, and a pair with a texture model
32
+ other than the default is in its *Texture models* table; the page is also served as
31
33
  Markdown at <https://docs.meshy.ai/api/pricing.md>.
32
34
 
33
35
  Nothing else is a quote. `meshy balance` reports the **balance**, not a price. Do not invent a
@@ -2,7 +2,7 @@
2
2
 
3
3
  Use [Setup](setup.md) for the runner, login and path rules, [Delivery](delivery.md) for cost,
4
4
  previews and hand-over, and [Troubleshooting](troubleshooting.md) for recovery. These recipes
5
- target **Meshy CLI 0.8** (0.8.2 or later) on Node.js 22.12+. Parameter details come from each command's `--help`;
5
+ target **Meshy CLI 0.8** (0.8.3 or later) on Node.js 22.12+. Parameter details come from each command's `--help`;
6
6
  the skill carries no API client.
7
7
 
8
8
  Contents: 0 local-only work · state · print size · 1 white prints · 2 analysis and repair · 3 multicolor ·
@@ -151,7 +151,9 @@ not an assumed install. Default to 4 colors/depth 4 unless the request specifies
151
151
  supported colors 1–16 and depth 3–6.
152
152
 
153
153
  The input must carry textures. An unrepaired image-to-3d task made with the CLI's default
154
- texturing already does: pass it straight to `multi-color-print`. If an unrepaired text-to-3d preview is still the current geometry,
154
+ texturing already does: pass it straight to `multi-color-print`. That default is `meshy-7.1`
155
+ geometry with the `meshy-7` texture, the pair for printing in color
156
+ (<https://docs.meshy.ai/en/api/models>), so it needs no `--texture-model`. If an unrepaired text-to-3d preview is still the current geometry,
155
157
  texture it using its own preview ID:
156
158
 
157
159
  ```bash
@@ -2,7 +2,7 @@
2
2
 
3
3
  Shared by the generation and print workflows. Three things are settled before any job
4
4
  starts: **how to run the CLI**, **whether a session already exists**, and **where files go**.
5
- The supported CLI is **0.8.x, from 0.8.2,** on **Node.js 22.12 or newer**. No Python, request wrapper or
5
+ The supported CLI is **0.8.x, from 0.8.3,** on **Node.js 22.12 or newer**. No Python, request wrapper or
6
6
  separate token store is involved.
7
7
 
8
8
  Contents: 1 runner · 2 reuse a session · 3 first login · 4 where files go · 5 one session
@@ -33,8 +33,8 @@ meshy --version
33
33
 
34
34
  | Observation | What to do |
35
35
  |---|---|
36
- | `meshy --version` prints 0.8.2 or a later 0.8.x | run `meshy` |
37
- | no `meshy` command, or a version older than 0.8.2 | install the newest 0.8.x (below), then run `meshy` |
36
+ | `meshy --version` prints 0.8.3 or a later 0.8.x | run `meshy` |
37
+ | no `meshy` command, or a version older than 0.8.3 | install the newest 0.8.x (below), then run `meshy` |
38
38
  | 0.9 or newer | keep it, since something else may rely on it, and run the temporary package |
39
39
  | no Node.js, or Node older than 22.12 | stop and report it: the user installs Node.js 22.12+ |
40
40
 
@@ -43,15 +43,15 @@ npm install -g meshy-cli@0.8
43
43
  ```
44
44
 
45
45
  Check and install without asking first; say in one line that you are installing it. Install at
46
- most once: when `meshy --version` still reports a version older than 0.8.2 afterwards, the
46
+ most once: when `meshy --version` still reports a version older than 0.8.3 afterwards, the
47
47
  registry this machine uses lags npm, so report that instead of installing again. Never use `sudo`
48
48
  or change system policy: when the install is refused (permissions, a managed machine, a sandbox), use the temporary package
49
49
  instead. It runs the same CLI without installing anything: put `npm exec --yes
50
- --package=meshy-cli@0.8.2 --` in front of the same arguments, and the exit code and the JSON on
50
+ --package=meshy-cli@0.8.3 --` in front of the same arguments, and the exit code and the JSON on
51
51
  stdout are forwarded unchanged. Recipes are written as `meshy …`; example:
52
52
 
53
53
  ```bash
54
- npm exec --yes --package=meshy-cli@0.8.2 -- meshy auth status --format json --no-update-check
54
+ npm exec --yes --package=meshy-cli@0.8.3 -- meshy auth status --format json --no-update-check
55
55
  ```
56
56
 
57
57
  The first such call downloads the package into the npm cache; later calls reuse it. It names an
@@ -160,6 +160,13 @@ Failure branches — each is a different recovery, so read the error rather than
160
160
  - **`device_flow_not_supported`**: this API host has no device endpoint. Ask the user to run
161
161
  `meshy auth login` in their own desktop terminal (loopback + browser), or to store their own
162
162
  key with `meshy auth login --with-key <key>` privately. Never ask for the key in chat.
163
+ - **Network blocked by a sandbox** (the login fails within a second with `error.details.code:
164
+ "oauth_network"` and a `fetch failed` message, before any URL or code appears): the shell
165
+ cannot reach Meshy, so no login can finish there. Run the *same* command again with network
166
+ access or outside the sandbox, asking the user to allow it if the host requires approval. Do
167
+ not follow the error's `--with-key` hint, probe the network with `curl`, or go looking for a
168
+ credential to reuse: an older `credentials.json` is the CLI's to move over, never yours to
169
+ read, copy or edit (section 5).
163
170
  - **Host cannot keep a process alive at all**: use the two-step sign-in below.
164
171
 
165
172
  ### Remote chat: sign in across two turns
@@ -235,7 +242,9 @@ login over on its first write, and an older CLI then signs in once on its own.
235
242
 
236
243
  `MESHY_CONFIG_DIR` changes the config directory; `MESHY_CREDENTIALS_PATH` overrides the
237
244
  credential file. Non-production API hosts use `credentials.v2.dev.json` by default. Keep these
238
- settings consistent; do not copy tokens between plugins or read the credential file.
245
+ settings consistent. Only the CLI touches the config directory: never read, copy, move, edit or
246
+ delete a credential file there (the older `credentials.json` included, even to inspect its
247
+ fields), and do not copy tokens between plugins.
239
248
  `auth list` reports profile kinds with masked credentials. `auth use <name>` changes the shared
240
249
  active profile, so do not switch it independently in concurrent workflows.
241
250
 
@@ -11,9 +11,9 @@ timeout · deleting a task · local files.
11
11
 
12
12
  ## Runner problems
13
13
 
14
- - **`meshy: command not found`** or **a version older than 0.8.2**: install the newest 0.8.x as
14
+ - **`meshy: command not found`** or **a version older than 0.8.3**: install the newest 0.8.x as
15
15
  Setup describes. If the install is refused, use the temporary package
16
- (`npm exec --yes --package=meshy-cli@0.8.2 -- meshy …`) and carry on with the same job.
16
+ (`npm exec --yes --package=meshy-cli@0.8.3 -- meshy …`) and carry on with the same job.
17
17
  - **A global 0.9 or newer** answers `--version`. Do not uninstall or downgrade it; use the
18
18
  temporary package for this work and mention the mismatch once.
19
19
  - **Node older than 22.12** fails the CLI's own runtime gate. Report the required version and the
@@ -54,7 +54,7 @@ status does not honor it.
54
54
  | 6 | Rate limit | Back off for read/status requests; respect server guidance. A create refused with a message starting `NoMorePendingTasks` made no task: too many of the account's tasks are queued or running, so wait for one to finish, then submit once. |
55
55
  | 7 | Network | Retry safe reads after connectivity recovers; inspect submission state before any create. |
56
56
  | 8 | Timeout | Resume waiting on an existing task; a login timeout needs a new authorization flow. |
57
- | 9 | The account cannot pay for this task | Too few credits, a Free plan (creating tasks needs a paid plan), a per-key monthly credit limit, or a plan-gated model (`nano-banana-pro` below Pro). Read the message, report the actual cause, and do not resubmit. |
57
+ | 9 | The account cannot pay for this task | Too few credits, a Free plan (creating tasks needs a paid plan), a per-key monthly credit limit, or a model that needs a Pro plan or above (`nano-banana-pro`, or `--pose-mode` on an older nano-banana model). Read the message, report the actual cause, and do not resubmit the same request. `error.details.body.code` `plan_upgrade_required` (HTTP 402) is the plan, not the balance, even when the hint says out of credits and `error.recovery` suggests a top-up: credits do not lift it. If the refused task used one of those models, retry once on `gpt-image-2-5-flare`. Otherwise, or if that retry gets the same code, tell the user that creating tasks needs a Pro plan or above (plans and prices: <https://www.meshy.ai/pricing>), and do not suggest a top-up or an upgrade. |
58
58
  | 10 | Submission outcome unknown | Reconcile first; never automatically resubmit. |
59
59
  | 11 | Local I/O | Fix the output path/permissions, or choose another path when the target holds files that are not that task's own; then rerun the same `-o` or `download`. |
60
60
  | 12 / 13 | Check failed / unknown | Inspect check details; do not present an unknown result as a pass. |