meshy-dsh 0.3.5 → 0.3.7
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 +4 -0
- package/README.zh.md +4 -0
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +3 -3
- package/skills/meshy-3d-generation/SKILL.md +19 -28
- package/skills/meshy-3d-generation/references/animation.md +1 -2
- package/skills/meshy-3d-generation/references/delivery.md +9 -29
- package/skills/meshy-3d-generation/references/pipelines.md +50 -15
- package/skills/meshy-3d-generation/references/setup.md +39 -72
- package/skills/meshy-3d-generation/references/troubleshooting.md +5 -7
- package/skills/meshy-3d-printing/SKILL.md +14 -25
- package/skills/meshy-3d-printing/references/creative-lab.md +1 -3
- package/skills/meshy-3d-printing/references/delivery.md +9 -29
- package/skills/meshy-3d-printing/references/printing.md +38 -8
- package/skills/meshy-3d-printing/references/setup.md +39 -72
- package/skills/meshy-3d-printing/references/troubleshooting.md +5 -7
package/README.md
CHANGED
|
@@ -7,6 +7,8 @@ Meshy's 3D generation and 3D printing skills for [DeepSeek Harness](https://gith
|
|
|
7
7
|
tool and saves the results into your project: text or image to 3D, textures, remeshing, rigging
|
|
8
8
|
and animation, format conversion, and print-ready files with slicer handoff.
|
|
9
9
|
|
|
10
|
+

|
|
11
|
+
|
|
10
12
|
## Install
|
|
11
13
|
|
|
12
14
|
```bash
|
|
@@ -54,6 +56,8 @@ open, past dsh's 32 MB limit for previewing a whole file, because the preview re
|
|
|
54
56
|
pieces. tui and headless have
|
|
55
57
|
neither; the skills work the same everywhere.
|
|
56
58
|
|
|
59
|
+

|
|
60
|
+
|
|
57
61
|
## How it works
|
|
58
62
|
|
|
59
63
|
[`cordis.patch.yml`](cordis.patch.yml) mounts one more instance of dsh's built-in filesystem
|
package/README.zh.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
为 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)(dsh)提供 Meshy 的 3D 生成与 3D 打印 skill。agent 通过 shell 调用 [`meshy-cli`](https://www.npmjs.com/package/meshy-cli),结果直接保存到你的项目里:文字或图片生成 3D、贴图、重拓扑、绑骨与动画、格式转换,以及可直接打印的文件和切片软件对接。
|
|
6
6
|
|
|
7
|
+

|
|
8
|
+
|
|
7
9
|
## 安装
|
|
8
10
|
|
|
9
11
|
```bash
|
|
@@ -24,6 +26,8 @@ dsh 不会自动更新已安装的插件,重新安装之前一直是你当初
|
|
|
24
26
|
|
|
25
27
|
在 Web 和 Desktop 里,左侧栏会出现 **Meshy** 入口,打开后是 Meshy 页面:显示账号,并给出几个示例需求,点一个就会新开会话并填好需求,改一改再发送。**设置 → Meshy**(插件页里也有)会显示插件和 Meshy CLI 的版本、是否已登录及登录方式(浏览器或 API key)、登录的账号、所在站点(meshy.ai 或 meshy.cn)和积分。账号(名字和邮箱)要用这个版本登录后才会显示,中国站暂时还不提供。点**登录 Meshy**会显示批准链接、二维码和核对用的验证码,可以用手机扫码批准,页面会自动发现批准完成。在右侧栏点一个 `.glb` 文件,或点 agent 交付的模型卡片,会打开可交互的 3D 预览(拖动旋转,滚轮缩放,可复位视角或自动旋转),并显示文件大小和三角面数。预览会按 2 MB 分块读取模型,所以不受 dsh 整文件预览 32 MB 的上限限制,最大可预览 256 MB。tui 和 headless 没有这些界面,skill 在任何界面都一样能用。
|
|
26
28
|
|
|
29
|
+

|
|
30
|
+
|
|
27
31
|
## 工作方式
|
|
28
32
|
|
|
29
33
|
[`cordis.patch.yml`](cordis.patch.yml) 再挂一个 dsh 内置的文件系统 skill provider,只扫描本包的 `skills/` 目录,所以这些 skill 和本地 skill 的加载方式完全一样;同时加载本包自身:`lib/index.js` 负责刷新登录态,并给每次 shell 调用提供本包依赖的 CLI(`DSH_MESHY_NODE`、`DSH_MESHY_CLI`)、登录态(`DSH_MESHY_CREDENTIAL`、`DSH_MESHY_REGION`、`DSH_MESHY_SUBJECT`,从不包含 refresh token),以及会话 workspace 里给 CLI 操作日志用的 `.meshy` 目录(`DSH_MESHY_STATE_DIR`);它还注册 `meshy_sign_in` 工具,并在 Web 和 Desktop 里提供四个需要鉴权的接口,用固定参数调用 Meshy CLI;`lib/client.js`(由 `src/client/` 构建)是浏览器端,three.js 单独放在首次使用时才加载的 `lib/client.viewer.js` 里。项目里 `.dsh/skills` 或 `.agents/skills` 下的同名 skill 优先。`locale/` 和 `icon.svg` 是 dsh 插件管理页显示的名称、简介和图标。
|
package/locale/en.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "Meshy",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Text or image to 3D: textured, rigged and animated models, and print-ready files."
|
|
5
5
|
}
|
|
6
6
|
}
|
package/locale/zh.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meshy-dsh",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
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.
|
|
52
|
+
"skills": "meshy-dev/meshy-3d-agent#v0.9.6"
|
|
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.
|
|
68
|
+
"meshy-cli": "0.8.5"
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -2,15 +2,15 @@
|
|
|
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.
|
|
5
|
+
compatibility: "Needs Node.js 22.12+ and the Meshy CLI 0.8.x, 0.8.5 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.
|
|
11
|
-
saving the requested files in the requested location
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
Use Meshy CLI **0.8** (0.8.5 or later) to turn the user's request into a delivered asset. Completion means
|
|
11
|
+
saving the requested files in the requested location and inspecting an available preview.
|
|
12
|
+
Login or task submission alone is not completion. Choose the shortest suitable pipeline and
|
|
13
|
+
reuse existing assets for follow-ups.
|
|
14
14
|
|
|
15
15
|
## Read what this request needs
|
|
16
16
|
|
|
@@ -28,29 +28,17 @@ existing GLB needs no extra format conversion. Use command help when parameters
|
|
|
28
28
|
|
|
29
29
|
## First use and authorization
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
`
|
|
33
|
-
`
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
In DeepSeek Harness with the Meshy plugin (`DSH_MESHY_CLI` is set) run every command as
|
|
32
|
+
`"$DSH_MESHY_NODE" "$DSH_MESHY_CLI" …`, never a `meshy` on PATH, install nothing, and sign in with
|
|
33
|
+
the `meshy_sign_in` tool. Everywhere else run `meshy --version` before the first command, without
|
|
34
|
+
asking; when it is missing or older than 0.8.5, install it with `npm install -g meshy-cli@0.8`
|
|
35
|
+
and say so in one line ([Setup](references/setup.md), section 1).
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
verification URL and user code in **commentary/progress, not a final answer**. Await that same
|
|
43
|
-
session in this turn until it exits, verify `auth status`, then continue the original request.
|
|
44
|
-
A background process cannot resume a finished turn; do not require a "done" chat message, except in
|
|
45
|
-
Setup's two-step sign-in for a user on a remote chat (a phone through a chat bot).
|
|
46
|
-
Browser approval stays with the user; credentials never belong in chat.
|
|
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).
|
|
37
|
+
Reuse a verified session. If login is needed, run `auth login --device` (with `--region cn` for a
|
|
38
|
+
user in mainland China) as Setup, section 3 describes: show its URL and user code in
|
|
39
|
+
**commentary/progress, not a final answer**, wait on that same command in this turn, verify
|
|
40
|
+
`auth status`, then continue the original request. Browser approval stays with the user;
|
|
41
|
+
credentials never belong in chat, and only the CLI touches its config directory.
|
|
54
42
|
|
|
55
43
|
## Execution boundaries
|
|
56
44
|
|
|
@@ -67,6 +55,9 @@ the user to allow it if the host requires. Do not probe with `curl` or switch to
|
|
|
67
55
|
- Submit once with `create --async`, retain the owning resource and ID, then `wait` on that
|
|
68
56
|
task. Keep the agent turn active while awaiting a running command. Follow Troubleshooting
|
|
69
57
|
on timeout or unknown submission; these do not authorize another paid create.
|
|
58
|
+
- Without a usable photo, recommend making a reference image first and building the model
|
|
59
|
+
from it; text-to-3d is the quicker alternative ([Pipelines](references/pipelines.md), *Start
|
|
60
|
+
from an image*).
|
|
70
61
|
- Continue work within the user's approved scope and budget. Propose additional paid stages
|
|
71
62
|
or reruns before spending; Delivery specifies estimates and balance checks.
|
|
72
63
|
|
|
@@ -74,5 +65,5 @@ the user to allow it if the host requires. Do not probe with `curl` or switch to
|
|
|
74
65
|
|
|
75
66
|
Download only needed assets. Inspect and show a preview when available; a missing preview
|
|
76
67
|
must not prevent delivery or be described as inspected. Delivery covers earlier-stage preview
|
|
77
|
-
lookup
|
|
68
|
+
lookup and actual charges. Report the result and any concrete
|
|
78
69
|
limitation; a rendered image does not establish topology quality or provide a 3D viewer.
|
|
@@ -18,8 +18,7 @@ meshy rigging create --input-task-id TEXTURED_ID --height-meters 1.7 --async --f
|
|
|
18
18
|
|
|
19
19
|
Apply the same pass/fail/unknown rule as for UV unwrap in [pipelines](pipelines.md). Wait through `rigging` using the newly accepted ID.
|
|
20
20
|
For external input the rigging CLI accepts a textured GLB via `--model-url`, with the character
|
|
21
|
-
facing +Z (glTF forward); it still needs the same suitability and face evidence.
|
|
22
|
-
keeps the model's own textures, and that flag replaces them with one image.
|
|
21
|
+
facing +Z (glTF forward); it still needs the same suitability and face evidence.
|
|
23
22
|
|
|
24
23
|
Choose the motion source in this order; stop at the first that gives the requested action:
|
|
25
24
|
|
|
@@ -6,7 +6,7 @@ what the user sees while it runs, what is handed over at the end, and how the ne
|
|
|
6
6
|
("make it 1500 faces", "now as FBX") reuses what already exists.
|
|
7
7
|
|
|
8
8
|
Contents: cost · waiting · previews · handing over the result · continuing from something that
|
|
9
|
-
already exists
|
|
9
|
+
already exists.
|
|
10
10
|
|
|
11
11
|
## Cost: only estimates you can point at
|
|
12
12
|
|
|
@@ -99,31 +99,22 @@ download, and "looks right" is never claimed for an image nobody looked at.
|
|
|
99
99
|
|
|
100
100
|
Deliver four things, every time:
|
|
101
101
|
|
|
102
|
-
1. **The model file**, at the path the user asked for
|
|
103
|
-
Do not present it as a clickable link: hosts open such links in a text/preview pane that
|
|
104
|
-
cannot render a binary mesh, and it looks broken. A host with a tool that delivers files to the
|
|
105
|
-
user (dsh's `present`) gets the model through that tool as well, so it opens from the
|
|
106
|
-
conversation. Offer the next real action instead —
|
|
107
|
-
reveal it in the file manager (`open -R <path>` on macOS, `explorer /select,<path>` on
|
|
108
|
-
Windows), open it in a local 3D tool, or wire it into the project.
|
|
102
|
+
1. **The model file**, at the path the user asked for.
|
|
109
103
|
2. **The preview**, shown inline when one exists, or an explicit note that none does.
|
|
110
104
|
A PNG render is not an interactive 3D viewer; this CLI has no local viewer command, so say
|
|
111
105
|
"rendered preview", never "3D preview".
|
|
112
106
|
3. **The task trail**: the producing task ID(s) and the resource each belongs to. That is what
|
|
113
107
|
makes the next request cheap. A delivery made with `-o` also leaves a sidecar beside the model
|
|
114
|
-
(`chest_meta.json` next to `chest.glb`, or `meta.json` in a directory
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
continues from that task instead of generating again. It also holds the task's signed URLs,
|
|
119
|
-
so do not paste it whole. The user may delete it; then follow-ups
|
|
120
|
-
fall back to the account's task list, and the same `-o` no longer replaces that model, so a new
|
|
121
|
-
delivery needs a new path.
|
|
108
|
+
(`chest_meta.json` next to `chest.glb`, or `meta.json` in a directory; `download` and
|
|
109
|
+
`mesh prepare-print` leave none) recording the same resource and task ID. Name it in the
|
|
110
|
+
handover: a later "now as FBX" continues from that task instead of generating again. It holds
|
|
111
|
+
the task's signed URLs, so do not paste it.
|
|
122
112
|
4. **What it cost**: `consumed_credits` when reported, otherwise stated as unknown, plus any
|
|
123
113
|
warnings that affect use.
|
|
124
114
|
|
|
125
|
-
If the result is wrong, report it and offer the concrete fix (a rerun, a
|
|
126
|
-
image, different parameters) with its cost. Do not silently rerun a
|
|
115
|
+
If the result is wrong, report it and offer the concrete fix (a rerun, a new or edited
|
|
116
|
+
reference image, multi-view input, different parameters) with its cost. Do not silently rerun a
|
|
117
|
+
paid stage.
|
|
127
118
|
|
|
128
119
|
## Continuing from something that already exists
|
|
129
120
|
|
|
@@ -160,14 +151,3 @@ format, `resize` for a physical size, `retexture` for a new look, `rigging`/`ani
|
|
|
160
151
|
Ask only when the reference is genuinely ambiguous (several candidates, none obviously the one),
|
|
161
152
|
and then ask with the candidates listed — never by asking the user to find a task ID. A missing
|
|
162
153
|
index is a lookup problem, not a reason to regenerate.
|
|
163
|
-
|
|
164
|
-
## Wiring the asset into a project
|
|
165
|
-
|
|
166
|
-
When the user asks for the asset **in** their game, site or app — "use it in my Three.js scene",
|
|
167
|
-
"add it to the Unity project" — finish that job: check the preview first, put the file where the
|
|
168
|
-
project keeps its assets, add the loader call, prefab entry or manifest line the project
|
|
169
|
-
actually uses, and verify the reference resolves (the path exists, the build or type check still
|
|
170
|
-
passes). Match the surrounding code's conventions.
|
|
171
|
-
|
|
172
|
-
Without such a request, deliver the files and stop. Do not edit application code, asset
|
|
173
|
-
manifests or build configuration on your own initiative.
|
|
@@ -16,7 +16,9 @@ text.
|
|
|
16
16
|
|
|
17
17
|
| What the user wants | Route | Notes |
|
|
18
18
|
|---|---|---|
|
|
19
|
-
| A model to
|
|
19
|
+
| A model from a description | recommend: text-to-image → the user approves the image → image-to-3d from that task; or text-to-3d preview, then refine when texture is wanted | offer both, image route first; see *Start from an image* below |
|
|
20
|
+
| A model from a sketch, silhouette, line drawing or logo | image-to-image into a shaded image → the user approves it → image-to-3d from that task | an outline is not a photo; text-to-3d would ignore it |
|
|
21
|
+
| A model whose exact shape matters: proportions, depth, sides or back one picture cannot show | multi-view text-to-image or image-to-image → the user approves the views → multi-image-to-3d from that task | see *Start from an image* below |
|
|
20
22
|
| 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) |
|
|
21
23
|
| 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
24
|
| 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) |
|
|
@@ -29,11 +31,36 @@ text.
|
|
|
29
31
|
| A motion clip without a character | text-to-motion | see [animation](animation.md) |
|
|
30
32
|
| A UV-unwrapped white model to texture elsewhere | uv-unwrap | GLB, at most 40,000 faces |
|
|
31
33
|
| A different format / size of an existing asset | convert / resize on that task | one step, no regeneration |
|
|
32
|
-
| A concept image
|
|
34
|
+
| A concept image or a style reference on its own | text-to-image / image-to-image | see *2D images* below |
|
|
33
35
|
| A printable physical object | the print workflow, not these recipes | it sets geometry, format and texture from the start |
|
|
34
36
|
|
|
35
37
|
Prefer the shortest chain that satisfies the request. An untextured mesh does not need refine;
|
|
36
|
-
a GLB does not need a convert step
|
|
38
|
+
a GLB does not need a convert step.
|
|
39
|
+
|
|
40
|
+
## Start from an image
|
|
41
|
+
|
|
42
|
+
A 3D model follows its reference image closely, so an image is the best place for the user to
|
|
43
|
+
steer the result. When the request has no usable photo, recommend making one first:
|
|
44
|
+
|
|
45
|
+
1. **Propose the plan once**, before any paid create: the image route, with text-to-3d named as
|
|
46
|
+
the quicker alternative with nothing to review. The user's yes covers every stage of the route
|
|
47
|
+
they pick; the image review below is not a second cost question.
|
|
48
|
+
2. **Make the image** with text-to-image, or with image-to-image when the user gave a sketch,
|
|
49
|
+
silhouette, line drawing or logo: those are outlines, not photos, and image-to-3d reads them
|
|
50
|
+
as flat shapes. Describe the subject as one object, whole and unobstructed, on a plain
|
|
51
|
+
background in soft studio light, with the shape requirements the user stated (depth,
|
|
52
|
+
proportions, what must not be thin). For a model whose exact shape matters, add
|
|
53
|
+
`--generate-multi-view true` to get front, side and back views of the same object.
|
|
54
|
+
3. **Show the image and wait for approval.** Adjust it with image-to-image from that task
|
|
55
|
+
(`--input-task-id`) until the user is satisfied: a new image costs less than a new model.
|
|
56
|
+
Skip the review only when the user said not to stop for it.
|
|
57
|
+
4. **Make the model from that task** by `--input-task-id`: image-to-3d from a single image,
|
|
58
|
+
multi-image-to-3d from multi-view output. A multi-view task can return fewer than three views;
|
|
59
|
+
look at them before the 3D create.
|
|
60
|
+
|
|
61
|
+
Text-to-3d goes straight from words to geometry: faster, but the only way to steer it is to
|
|
62
|
+
reword the prompt and pay for another model. Run it when the user picks it, asks for a quick
|
|
63
|
+
draft, or names text-to-3d.
|
|
37
64
|
|
|
38
65
|
## Choose the models by project
|
|
39
66
|
|
|
@@ -150,16 +177,18 @@ photos is `meshy-7.1` with `meshy-7`; `--texture-model meshy-n1` also paints fro
|
|
|
150
177
|
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
|
|
151
178
|
```
|
|
152
179
|
|
|
153
|
-
|
|
154
|
-
and re-uploading it
|
|
180
|
+
**From an image task** (the image-first route above): a completed text-to-image or
|
|
181
|
+
image-to-image task supplies the reference without downloading and re-uploading it. These run
|
|
182
|
+
the untextured draft; the texture and model flags of the recipes above apply the same way.
|
|
155
183
|
|
|
156
184
|
```bash
|
|
157
185
|
meshy image-to-3d create --input-task-id IMAGE_TASK_ID --should-texture false --target-formats glb --async --format json --no-update-check
|
|
186
|
+
meshy multi-image-to-3d create --input-task-id VIEWS_TASK_ID --should-texture false --target-formats glb --async --format json --no-update-check
|
|
158
187
|
```
|
|
159
188
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
189
|
+
Image-to-3d takes a task that produced exactly one image; a multi-view image task feeds
|
|
190
|
+
multi-image-to-3d instead. Use the resulting 3D task for retexture, not the 2D task. For
|
|
191
|
+
single-image humanoids, `--pose-mode a-pose` is available.
|
|
163
192
|
|
|
164
193
|
## Texture, topology, formats and scale
|
|
165
194
|
|
|
@@ -210,8 +239,8 @@ new download and check. An unknown count is not a pass, and not a reason for a s
|
|
|
210
239
|
## 2D images
|
|
211
240
|
|
|
212
241
|
Text-to-image makes a design or reference image. Image-to-image edits an existing reference; keep
|
|
213
|
-
the edit prompt specific. These may be final deliverables, or
|
|
214
|
-
|
|
242
|
+
the edit prompt specific. These may be final deliverables, or the first stage of a 3D request
|
|
243
|
+
(*Start from an image* above), proposed with the rest of the plan. Use `gpt-image-2-5-flare` unless the user names
|
|
215
244
|
another model from `create --help`. `nano-banana-pro`, and `--pose-mode` on the older nano-banana
|
|
216
245
|
models, need a Pro plan or above. On a lower plan the create fails with exit 9 and
|
|
217
246
|
`plan_upgrade_required` even with credits left: retry once on `gpt-image-2-5-flare` rather than
|
|
@@ -222,9 +251,15 @@ meshy text-to-image create --ai-model gpt-image-2-5-flare --prompt "DESIGN_DESCR
|
|
|
222
251
|
meshy image-to-image create --ai-model gpt-image-2-5-flare --prompt "EDIT_DESCRIPTION" --reference-image-urls "IMAGE_PATH" --async --format json --no-update-check
|
|
223
252
|
```
|
|
224
253
|
|
|
225
|
-
Wait on the selected resource as above.
|
|
226
|
-
|
|
227
|
-
|
|
254
|
+
Wait on the selected resource as above. `--generate-multi-view true` makes front, side and back
|
|
255
|
+
views of one object as transparent cutouts, on either command; drop `--aspect-ratio`, which it
|
|
256
|
+
excludes:
|
|
257
|
+
|
|
258
|
+
```bash
|
|
259
|
+
meshy text-to-image create --ai-model gpt-image-2-5-flare --prompt "VIEWS_DESCRIPTION" --generate-multi-view true --async --format json --no-update-check
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
A character concept adds `--pose-mode a-pose`. A nano-banana model renders any pose at 3:4
|
|
228
263
|
(a `pose_aspect_ratio` warning says so). `--remove-background true` returns a transparent PNG. A
|
|
229
264
|
finished image task can feed image-to-image with `--input-task-id IMAGE_TASK_ID` instead of
|
|
230
265
|
re-uploading its output. Download image tasks with `--kind image`, using `--output-dir`.
|
|
@@ -258,7 +293,7 @@ command carries `--workspace WORKSPACE`. A `get` of a task that has not succeede
|
|
|
258
293
|
`downloads.state: "not_ready"` with exit 0, so `wait` first.
|
|
259
294
|
|
|
260
295
|
Rerunning the same `-o` for the same task is safe and free; anything else already at a target is
|
|
261
|
-
refused (exit 11). Meshy keeps
|
|
262
|
-
`download --resource` fetch
|
|
296
|
+
refused (exit 11). While Meshy keeps the task ([delivery](delivery.md)), `get` and
|
|
297
|
+
`download --resource` fetch its files again, so never regenerate a model to obtain a file. Existing
|
|
263
298
|
files, part-way transfers, task failures, interrupted waits and unknown submissions follow
|
|
264
299
|
[troubleshooting](troubleshooting.md); a failed local save does not erase a remote task.
|
|
@@ -2,8 +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.
|
|
6
|
-
separate token store is involved.
|
|
5
|
+
The supported CLI is **0.8.x, from 0.8.5,** on **Node.js 22.12 or newer**.
|
|
7
6
|
|
|
8
7
|
Contents: 1 runner · 2 reuse a session · 3 first login · 4 where files go · 5 one session
|
|
9
8
|
everywhere · 6 API keys · 7 the China site.
|
|
@@ -33,8 +32,8 @@ meshy --version
|
|
|
33
32
|
|
|
34
33
|
| Observation | What to do |
|
|
35
34
|
|---|---|
|
|
36
|
-
| `meshy --version` prints 0.8.
|
|
37
|
-
| no `meshy` command, or a version older than 0.8.
|
|
35
|
+
| `meshy --version` prints 0.8.5 or a later 0.8.x | run `meshy` |
|
|
36
|
+
| no `meshy` command, or a version older than 0.8.5 | install the newest 0.8.x (below), then run `meshy` |
|
|
38
37
|
| 0.9 or newer | keep it, since something else may rely on it, and run the temporary package |
|
|
39
38
|
| no Node.js, or Node older than 22.12 | stop and report it: the user installs Node.js 22.12+ |
|
|
40
39
|
|
|
@@ -43,15 +42,15 @@ npm install -g meshy-cli@0.8
|
|
|
43
42
|
```
|
|
44
43
|
|
|
45
44
|
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.
|
|
45
|
+
most once: when `meshy --version` still reports a version older than 0.8.5 afterwards, the
|
|
47
46
|
registry this machine uses lags npm, so report that instead of installing again. Never use `sudo`
|
|
48
47
|
or change system policy: when the install is refused (permissions, a managed machine, a sandbox), use the temporary package
|
|
49
48
|
instead. It runs the same CLI without installing anything: put `npm exec --yes
|
|
50
|
-
--package=meshy-cli@0.8.
|
|
49
|
+
--package=meshy-cli@0.8.5 --` in front of the same arguments, and the exit code and the JSON on
|
|
51
50
|
stdout are forwarded unchanged. Recipes are written as `meshy …`; example:
|
|
52
51
|
|
|
53
52
|
```bash
|
|
54
|
-
npm exec --yes --package=meshy-cli@0.8.
|
|
53
|
+
npm exec --yes --package=meshy-cli@0.8.5 -- meshy auth status --format json --no-update-check
|
|
55
54
|
```
|
|
56
55
|
|
|
57
56
|
The first such call downloads the package into the npm cache; later calls reuse it. It names an
|
|
@@ -71,8 +70,7 @@ Every command, auth included, prints one `meshy.cli/v1` envelope on stdout (`ok`
|
|
|
71
70
|
the unauthenticated and unverified answers below are `ok: true` with exit 3.
|
|
72
71
|
|
|
73
72
|
- `authenticated: true`, `verified: true`, exit 0: continue with this account. **No new login.**
|
|
74
|
-
`result.account` names who is signed in when the site reports it
|
|
75
|
-
login made before CLI 0.8, and the China site for now).
|
|
73
|
+
`result.account` names who is signed in when the site reports it, and may be `null`.
|
|
76
74
|
- `authenticated: false`, exit 3: no usable credential; log in (next section).
|
|
77
75
|
- `authenticated: true`, `verified: false`, exit 3: a credential exists but verification failed —
|
|
78
76
|
which includes network and server errors, not just rejection. Do not start a login or delete
|
|
@@ -94,10 +92,8 @@ meshy auth login --device --format json --no-update-check
|
|
|
94
92
|
In mainland China, or when the user asks for the China site, add `--region cn`
|
|
95
93
|
([section 7](#7-the-china-site)): the code is then entered at `meshy.cn`.
|
|
96
94
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
to consume its result. Do not detach it with `&`, `nohup`, or a terminal launch and then
|
|
100
|
-
return. The CLI writes the verification instruction to **stderr**, before it starts polling:
|
|
95
|
+
The CLI writes the verification instruction to **stderr**, then polls until the user approves or
|
|
96
|
+
the code expires:
|
|
101
97
|
|
|
102
98
|
```text
|
|
103
99
|
Enter code WXYZ-1234 at https://www.meshy.ai/device
|
|
@@ -112,38 +108,17 @@ the chat — the CLI receives the credential itself.
|
|
|
112
108
|
|
|
113
109
|
### Keep the agent turn alive
|
|
114
110
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
chunk contains only npm startup output, read more from that same session.
|
|
127
|
-
3. Call `write_stdin` with that `session_id`, empty input and a bounded wait (e.g.
|
|
128
|
-
`yield_time_ms: 1000`–`10000`). While still running, repeat; no output means keep waiting.
|
|
129
|
-
The CLI already polls OAuth, so do not spawn another login or poll HTTP yourself.
|
|
130
|
-
4. Consume the actual exit code and final JSON. Only then verify `auth status` and continue
|
|
131
|
-
the original task in this turn. A tool yield/timeout is not an OAuth expiry.
|
|
132
|
-
|
|
133
|
-
If shell calls are wrapped by `functions.exec` and it returns a running `cell_id`, resume
|
|
134
|
-
that cell with `functions.wait`; once it returns the shell result, use its `session_id`
|
|
135
|
-
if present. Do not confuse the two IDs or leave an unawaited promise in a finished wrapper.
|
|
136
|
-
In Claude Code, start it with the Bash tool's `run_in_background`, read its output file until
|
|
137
|
-
the code line appears, then keep checking that output until the process exits. Other hosts use
|
|
138
|
-
their equivalent running-command wait tool. Send a brief progress
|
|
139
|
-
update during a long wait without ending the turn. Stop waiting on a terminal login error,
|
|
140
|
-
actual code expiry, user cancellation, or an explicit host limitation; report the reason.
|
|
141
|
-
Do not create recurring automations or a second task to keep a login alive.
|
|
142
|
-
|
|
143
|
-
The process keeps polling until the user approves or the code expires. While it polls, do not
|
|
144
|
-
start a second login, do not kill it, and do not ask the user to paste anything. On approval it
|
|
145
|
-
prints the envelope with `result.status: "logged_in"` and `result.verified: true` to stdout and
|
|
146
|
-
exits 0. Then:
|
|
111
|
+
Run the login as a running tool session and keep waiting on that **same** session in this turn,
|
|
112
|
+
with the host's own tool for reading a running command, until it exits. Browser approval ends
|
|
113
|
+
the CLI process, not your turn, and a process still running when the turn ends has nobody to
|
|
114
|
+
read its result. So do not detach it (`&`, `nohup`, a new terminal), do not end the turn with
|
|
115
|
+
"authorize and I will continue", and do not ask the user to reply "done". A tool yield or timeout
|
|
116
|
+
is not a code expiry. While it polls, do not start a second login, kill it or poll the API
|
|
117
|
+
yourself; send a brief progress note during a long wait. A host whose own skill says it wakes the
|
|
118
|
+
session when a background command exits follows that procedure instead.
|
|
119
|
+
|
|
120
|
+
On approval the CLI prints the envelope with `result.status: "logged_in"` and
|
|
121
|
+
`result.verified: true` to stdout and exits 0. Then:
|
|
147
122
|
|
|
148
123
|
1. Re-run `auth status`; `verified: true` is the proof, not the exit code of `login`.
|
|
149
124
|
2. **Continue the request the user originally made**, with the same inputs, output path and
|
|
@@ -164,26 +139,22 @@ Failure branches — each is a different recovery, so read the error rather than
|
|
|
164
139
|
"oauth_network"` and a `fetch failed` message, before any URL or code appears): the shell
|
|
165
140
|
cannot reach Meshy, so no login can finish there. Run the *same* command again with network
|
|
166
141
|
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
|
|
168
|
-
credential to reuse
|
|
169
|
-
|
|
170
|
-
|
|
142
|
+
not follow the error's `--with-key` hint, probe the network with `curl`, or look for a
|
|
143
|
+
credential to reuse (section 5).
|
|
144
|
+
- **The host cannot wait in the turn** (no tool reads a running command, or progress messages
|
|
145
|
+
reach the user only when the turn ends): use the two-step sign-in below.
|
|
171
146
|
|
|
172
|
-
###
|
|
147
|
+
### Two-step sign-in
|
|
173
148
|
|
|
174
|
-
|
|
175
|
-
Slack or Telegram), progress messages may arrive late or only when the turn ends, so a link shown
|
|
176
|
-
while the login waits never reaches them. Sign in in two steps instead (add `--region cn` to the
|
|
177
|
-
first for the China site):
|
|
149
|
+
Step one returns at once (add `--region cn` for the China site):
|
|
178
150
|
|
|
179
151
|
```bash
|
|
180
152
|
meshy auth login --device --no-wait --format json --no-update-check
|
|
181
153
|
```
|
|
182
154
|
|
|
183
|
-
It
|
|
184
|
-
`result.
|
|
185
|
-
|
|
186
|
-
in-app browser may not keep the sign-in), approve, and reply when done. When they reply:
|
|
155
|
+
It prints `result.verification_url` (the code is already in the link), `result.user_code` and
|
|
156
|
+
`result.flow_id`. Keep FLOW_ID in your notes, end the turn with the link and the code, and ask the
|
|
157
|
+
user to approve and reply. When they reply:
|
|
187
158
|
|
|
188
159
|
```bash
|
|
189
160
|
meshy auth login --device-flow FLOW_ID --format json --no-update-check
|
|
@@ -192,8 +163,7 @@ meshy auth login --device-flow FLOW_ID --format json --no-update-check
|
|
|
192
163
|
It waits while the approval is still pending, saves the session and prints
|
|
193
164
|
`result.status: "logged_in"`; verify `auth status` and continue the original request. An expired
|
|
194
165
|
or unknown flow means running step one again. A host whose question tool reaches the user can
|
|
195
|
-
instead ask with the link and wait for the answer in the same turn, then run step two.
|
|
196
|
-
DeepSeek Harness the `meshy_sign_in` tool replaces both steps (section 1).
|
|
166
|
+
instead ask with the link and wait for the answer in the same turn, then run step two.
|
|
197
167
|
|
|
198
168
|
Do not use `--manual` from an agent — it prompts on stdin for a pasted code. Never show a token, a device
|
|
199
169
|
code or a signed URL to the user or copy one into chat or a file: task results and sidecars
|
|
@@ -226,9 +196,8 @@ Existing files are never silently replaced. `download` refuses to overwrite unle
|
|
|
226
196
|
is passed, and `-o` refuses a target that holds anything but its own task's earlier output
|
|
227
197
|
(rerunning the same `-o` for the same task is fine). So an existing `chest.glb` is a decision — a
|
|
228
198
|
new name or, for `download`, an explicit overwrite — covered by what the user already authorized,
|
|
229
|
-
not a silent clobber.
|
|
230
|
-
|
|
231
|
-
to delete.
|
|
199
|
+
not a silent clobber. The sidecar `-o` leaves beside a model is described in
|
|
200
|
+
[delivery.md](delivery.md).
|
|
232
201
|
|
|
233
202
|
## 5. One session, both skills, any directory
|
|
234
203
|
|
|
@@ -237,14 +206,12 @@ are encrypted under a key the OS keeps (Keychain, DPAPI or the Secret Service; a
|
|
|
237
206
|
file where none is usable). Generation and printing, in either plugin, reuse it when run as the
|
|
238
207
|
same OS user with the same CLI configuration. Changing the working directory does not require
|
|
239
208
|
another login. Different users, machines, containers or configuration directories do not
|
|
240
|
-
automatically share sessions.
|
|
241
|
-
login over on its first write, and an older CLI then signs in once on its own.
|
|
209
|
+
automatically share sessions.
|
|
242
210
|
|
|
243
211
|
`MESHY_CONFIG_DIR` changes the config directory; `MESHY_CREDENTIALS_PATH` overrides the
|
|
244
|
-
credential file.
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
fields), and do not copy tokens between plugins.
|
|
212
|
+
credential file. Keep these settings consistent. Only the CLI touches the config directory: never
|
|
213
|
+
read, copy, move, edit or delete a file there, never look for credentials anywhere else, and do
|
|
214
|
+
not copy tokens between plugins.
|
|
248
215
|
`auth list` reports profile kinds with masked credentials. `auth use <name>` changes the shared
|
|
249
216
|
active profile, so do not switch it independently in concurrent workflows.
|
|
250
217
|
|
|
@@ -259,9 +226,9 @@ Credential priority is `--api-key` > `MESHY_API_KEY` > explicit `--api-key-file`
|
|
|
259
226
|
Harness plugin's session > stored active profile. An existing environment key overrides browser login; report `source` when
|
|
260
227
|
diagnosing account selection, and do not change the user's environment or account implicitly.
|
|
261
228
|
|
|
262
|
-
DeepSeek Harness
|
|
263
|
-
|
|
264
|
-
|
|
229
|
+
In DeepSeek Harness an exported `MESHY_API_KEY` never reaches the CLI (dsh removes
|
|
230
|
+
credential-shaped variables); the plugin's sign-in (section 1) or an explicit `--api-key-file` is
|
|
231
|
+
used instead.
|
|
265
232
|
|
|
266
233
|
There is no automatic `.env` discovery. If the user chooses a project key file, pass its
|
|
267
234
|
explicit path on authenticated commands. **`auth status` ignores `--api-key-file`**,
|
|
@@ -3,17 +3,16 @@
|
|
|
3
3
|
Every command uses `--format json --no-update-check` and prints one envelope. Read the process
|
|
4
4
|
exit code and the envelope's `error`, `result` and `warnings`; preserve any task ID, operation
|
|
5
5
|
ID, downloaded files and recovery command even when `ok` is false. Auth results are in
|
|
6
|
-
`result` as well; see [setup.md](setup.md).
|
|
7
|
-
skill is no longer read by the CLI; take task IDs from it by hand.
|
|
6
|
+
`result` as well; see [setup.md](setup.md).
|
|
8
7
|
|
|
9
8
|
Contents: runner problems · authentication · exit codes · unknown submission, failure and
|
|
10
9
|
timeout · deleting a task · local files.
|
|
11
10
|
|
|
12
11
|
## Runner problems
|
|
13
12
|
|
|
14
|
-
- **`meshy: command not found`** or **a version older than 0.8.
|
|
13
|
+
- **`meshy: command not found`** or **a version older than 0.8.5**: install the newest 0.8.x as
|
|
15
14
|
Setup describes. If the install is refused, use the temporary package
|
|
16
|
-
(`npm exec --yes --package=meshy-cli@0.8.
|
|
15
|
+
(`npm exec --yes --package=meshy-cli@0.8.5 -- meshy …`) and carry on with the same job.
|
|
17
16
|
- **A global 0.9 or newer** answers `--version`. Do not uninstall or downgrade it; use the
|
|
18
17
|
temporary package for this work and mention the mismatch once.
|
|
19
18
|
- **Node older than 22.12** fails the CLI's own runtime gate. Report the required version and the
|
|
@@ -37,8 +36,7 @@ status does not honor it.
|
|
|
37
36
|
- **Login code expired or denied**: rerun the same `auth login --device` for a fresh code, and
|
|
38
37
|
show the new URL and code. Nothing paid is retried because a login timed out.
|
|
39
38
|
- **Works in another terminal**: compare status `source`, active profile, OS user and
|
|
40
|
-
config/API environment. An environment key overrides a stored OAuth session.
|
|
41
|
-
shell profiles or print secret values.
|
|
39
|
+
config/API environment. An environment key overrides a stored OAuth session.
|
|
42
40
|
- **`device_flow_not_supported`**: this API host has no device endpoint — the user logs in
|
|
43
41
|
from their own desktop terminal, or supplies their own key privately.
|
|
44
42
|
|
|
@@ -47,7 +45,7 @@ status does not honor it.
|
|
|
47
45
|
| Exit | Meaning | Recovery |
|
|
48
46
|
|---|---|---|
|
|
49
47
|
| 1 | Generic/server/protocol error or failed task | Inspect the error and any known task before deciding next steps. |
|
|
50
|
-
| 2 | Usage or operation conflict | Correct arguments/account/payload mismatch; do not invent a fresh operation ID to bypass a conflict. A local STL/OBJ/FBX `--model-url` lands here: pass it as an http(s) URL instead.
|
|
48
|
+
| 2 | Usage or operation conflict | Correct arguments/account/payload mismatch; do not invent a fresh operation ID to bypass a conflict. A local STL/OBJ/FBX `--model-url` lands here: pass it as an http(s) URL instead. |
|
|
51
49
|
| 3 | Authentication | Use the source-aware checks above; status also uses this for failed network verification. |
|
|
52
50
|
| 4 | Validation | Correct the rejected input or explain the unsupported request. |
|
|
53
51
|
| 5 | Not found | Check the resource, task ID and account; a task older than Meshy's 3-day retention is gone (see Delivery). |
|
|
@@ -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.
|
|
5
|
+
compatibility: "Needs Node.js 22.12+ and the Meshy CLI 0.8.x, 0.8.5 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.
|
|
10
|
+
Use Meshy CLI **0.8** (0.8.5 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
|
|
|
@@ -28,7 +28,7 @@ needed for the user's output.
|
|
|
28
28
|
|---|---|
|
|
29
29
|
| Scale, orient or ground an existing OBJ | Local `mesh prepare-print`; no auth or balance |
|
|
30
30
|
| Open an existing STL or 3MF | Local `slicer detect` and `slicer open`; no auth or balance |
|
|
31
|
-
| White model from
|
|
31
|
+
| White model from a photo, a sketch or text | Photo: image-to-3d. Otherwise recommend a reference image first (multi-view when depth or sides matter), with text-to-3d as the quicker alternative; geometry without textures; analyze/repair as needed; prepare the file |
|
|
32
32
|
| Multicolor model | Generate/reuse geometry; analyze/repair as needed; texture; multi-color-print |
|
|
33
33
|
| Print in separate parts (build plate, colours per part, fewer supports) | Generate/reuse geometry; auto-split; slice the parts |
|
|
34
34
|
| Check or fix an existing model (holes, thin walls), any format | Free analyze-printability by task ID or `--model-url`; repair only if needed |
|
|
@@ -47,28 +47,17 @@ local dimension check cannot establish full printability.
|
|
|
47
47
|
|
|
48
48
|
## Cloud authorization
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
`
|
|
52
|
-
`
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
show its URL and user code in **commentary/progress, never a final answer**, and await the
|
|
62
|
-
same tool session in this turn. After it exits, verify `auth status` and resume the print job.
|
|
63
|
-
Never ask for credentials in chat, nor for a "done" message except in Setup's two-step sign-in for a
|
|
64
|
-
user on a remote chat (a phone through a chat bot); Setup has the host wait procedure.
|
|
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).
|
|
50
|
+
In DeepSeek Harness with the Meshy plugin (`DSH_MESHY_CLI` is set) run every command as
|
|
51
|
+
`"$DSH_MESHY_NODE" "$DSH_MESHY_CLI" …`, never a `meshy` on PATH, install nothing, and sign in with
|
|
52
|
+
the `meshy_sign_in` tool. Everywhere else run `meshy --version` before the first command, without
|
|
53
|
+
asking; when it is missing or older than 0.8.5, install it with `npm install -g meshy-cli@0.8`
|
|
54
|
+
and say so in one line ([Setup](references/setup.md), section 1). Local-only work stops there.
|
|
55
|
+
|
|
56
|
+
Cloud work reuses a verified session. If login is needed, run `auth login --device` (with
|
|
57
|
+
`--region cn` for a user in mainland China) as Setup, section 3 describes: show its URL and user
|
|
58
|
+
code in **commentary/progress, never a final answer**, wait on that same command in this turn,
|
|
59
|
+
verify `auth status`, then resume the print job. Never ask for credentials in chat; only the CLI
|
|
60
|
+
touches its config directory.
|
|
72
61
|
|
|
73
62
|
## Printing-specific constraints
|
|
74
63
|
|
|
@@ -110,9 +110,7 @@ meshy download --resource creative-lab.lamp.build --task-id BUILD_ID --asset mod
|
|
|
110
110
|
|
|
111
111
|
For another listed asset, adapt the resource, selector and stage-specific output directory.
|
|
112
112
|
Repeat `--asset` to select multiple actual parts. The CLI does not extract archives; do not label
|
|
113
|
-
a downloaded ZIP as print-ready OBJ.
|
|
114
|
-
use the host's supported archive operation within the workspace after validating member paths and
|
|
115
|
-
symlinks. Do not create an extraction script inside the skill. Check the product's actual units
|
|
113
|
+
a downloaded ZIP as print-ready OBJ. Check the product's actual units
|
|
116
114
|
and orientation in the slicer; the generic Y-up rotation is not a blanket requirement for product
|
|
117
115
|
STL/3MF/relief bundles. A figure OBJ that is Y-up can use the local preparation recipe.
|
|
118
116
|
|
|
@@ -6,7 +6,7 @@ what the user sees while it runs, what is handed over at the end, and how the ne
|
|
|
6
6
|
("make it 1500 faces", "now as FBX") reuses what already exists.
|
|
7
7
|
|
|
8
8
|
Contents: cost · waiting · previews · handing over the result · continuing from something that
|
|
9
|
-
already exists
|
|
9
|
+
already exists.
|
|
10
10
|
|
|
11
11
|
## Cost: only estimates you can point at
|
|
12
12
|
|
|
@@ -99,31 +99,22 @@ download, and "looks right" is never claimed for an image nobody looked at.
|
|
|
99
99
|
|
|
100
100
|
Deliver four things, every time:
|
|
101
101
|
|
|
102
|
-
1. **The model file**, at the path the user asked for
|
|
103
|
-
Do not present it as a clickable link: hosts open such links in a text/preview pane that
|
|
104
|
-
cannot render a binary mesh, and it looks broken. A host with a tool that delivers files to the
|
|
105
|
-
user (dsh's `present`) gets the model through that tool as well, so it opens from the
|
|
106
|
-
conversation. Offer the next real action instead —
|
|
107
|
-
reveal it in the file manager (`open -R <path>` on macOS, `explorer /select,<path>` on
|
|
108
|
-
Windows), open it in a local 3D tool, or wire it into the project.
|
|
102
|
+
1. **The model file**, at the path the user asked for.
|
|
109
103
|
2. **The preview**, shown inline when one exists, or an explicit note that none does.
|
|
110
104
|
A PNG render is not an interactive 3D viewer; this CLI has no local viewer command, so say
|
|
111
105
|
"rendered preview", never "3D preview".
|
|
112
106
|
3. **The task trail**: the producing task ID(s) and the resource each belongs to. That is what
|
|
113
107
|
makes the next request cheap. A delivery made with `-o` also leaves a sidecar beside the model
|
|
114
|
-
(`chest_meta.json` next to `chest.glb`, or `meta.json` in a directory
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
continues from that task instead of generating again. It also holds the task's signed URLs,
|
|
119
|
-
so do not paste it whole. The user may delete it; then follow-ups
|
|
120
|
-
fall back to the account's task list, and the same `-o` no longer replaces that model, so a new
|
|
121
|
-
delivery needs a new path.
|
|
108
|
+
(`chest_meta.json` next to `chest.glb`, or `meta.json` in a directory; `download` and
|
|
109
|
+
`mesh prepare-print` leave none) recording the same resource and task ID. Name it in the
|
|
110
|
+
handover: a later "now as FBX" continues from that task instead of generating again. It holds
|
|
111
|
+
the task's signed URLs, so do not paste it.
|
|
122
112
|
4. **What it cost**: `consumed_credits` when reported, otherwise stated as unknown, plus any
|
|
123
113
|
warnings that affect use.
|
|
124
114
|
|
|
125
|
-
If the result is wrong, report it and offer the concrete fix (a rerun, a
|
|
126
|
-
image, different parameters) with its cost. Do not silently rerun a
|
|
115
|
+
If the result is wrong, report it and offer the concrete fix (a rerun, a new or edited
|
|
116
|
+
reference image, multi-view input, different parameters) with its cost. Do not silently rerun a
|
|
117
|
+
paid stage.
|
|
127
118
|
|
|
128
119
|
## Continuing from something that already exists
|
|
129
120
|
|
|
@@ -160,14 +151,3 @@ format, `resize` for a physical size, `retexture` for a new look, `rigging`/`ani
|
|
|
160
151
|
Ask only when the reference is genuinely ambiguous (several candidates, none obviously the one),
|
|
161
152
|
and then ask with the candidates listed — never by asking the user to find a task ID. A missing
|
|
162
153
|
index is a lookup problem, not a reason to regenerate.
|
|
163
|
-
|
|
164
|
-
## Wiring the asset into a project
|
|
165
|
-
|
|
166
|
-
When the user asks for the asset **in** their game, site or app — "use it in my Three.js scene",
|
|
167
|
-
"add it to the Unity project" — finish that job: check the preview first, put the file where the
|
|
168
|
-
project keeps its assets, add the loader call, prefab entry or manifest line the project
|
|
169
|
-
actually uses, and verify the reference resolves (the path exists, the build or type check still
|
|
170
|
-
passes). Match the surrounding code's conventions.
|
|
171
|
-
|
|
172
|
-
Without such a request, deliver the files and stop. Do not edit application code, asset
|
|
173
|
-
manifests or build configuration on your own initiative.
|
|
@@ -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.
|
|
5
|
+
target **Meshy CLI 0.8** (0.8.5 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 ·
|
|
@@ -54,23 +54,53 @@ parts, product STLs) arrive in millimetres at a size Meshy chooses, not the user
|
|
|
54
54
|
uniformly in the slicer to the requested size, and in the hand-over say which size to set rather
|
|
55
55
|
than claiming the file already has it.
|
|
56
56
|
|
|
57
|
-
## 1. White geometry from
|
|
57
|
+
## 1. White geometry from a photo, an image or text
|
|
58
58
|
|
|
59
59
|
A plain single-colour print is this route — generation, optional analysis, local preparation.
|
|
60
60
|
The word "figurine", "statue" or "toy" does not by itself send the job to Creative Lab.
|
|
61
61
|
|
|
62
|
-
Choose **one** creation route.
|
|
62
|
+
Choose **one** creation route. The user's photo (local JPG/PNG/WebP or a supported URL) goes
|
|
63
|
+
straight to image-to-3d:
|
|
63
64
|
|
|
64
65
|
```bash
|
|
65
|
-
meshy
|
|
66
|
-
meshy
|
|
66
|
+
meshy image-to-3d create --image-url INPUT_IMAGE --should-texture false --target-formats glb,obj --async --format json --no-update-check
|
|
67
|
+
meshy image-to-3d wait IMAGE_ID --timeout 600 --format json --no-update-check
|
|
67
68
|
```
|
|
68
69
|
|
|
69
|
-
|
|
70
|
+
Without a usable photo — a description, or a sketch, silhouette, line drawing or logo, which
|
|
71
|
+
image-to-3d reads as a flat shape — recommend making a reference image first: the model follows
|
|
72
|
+
its image closely, and a print is judged on exactly the shape the image fixes. Propose this route
|
|
73
|
+
once, with text-to-3d (below) named as the quicker alternative with nothing to review; the user's
|
|
74
|
+
yes covers every stage of the route they pick. Describe one solid object, whole and unobstructed,
|
|
75
|
+
on a plain background in soft studio light, with the shape requirements the user stated (depth,
|
|
76
|
+
proportions, what must not be thin). From a sketch, use image-to-image on it instead; wait on
|
|
77
|
+
that resource the same way. When depth, sides or back matter, add `--generate-multi-view true`
|
|
78
|
+
for front, side and back views:
|
|
70
79
|
|
|
71
80
|
```bash
|
|
72
|
-
meshy
|
|
73
|
-
meshy image-to-
|
|
81
|
+
meshy text-to-image create --ai-model gpt-image-2-5-flare --prompt "A single solid owl figurine on a broad flat base, whole object in view, plain background, soft studio light" --async --format json --no-update-check
|
|
82
|
+
meshy image-to-image create --ai-model gpt-image-2-5-flare --prompt "Turn this outline into one solid, rounded object, whole object in view, plain background, soft studio light" --reference-image-urls INPUT_IMAGE --async --format json --no-update-check
|
|
83
|
+
meshy text-to-image create --ai-model gpt-image-2-5-flare --prompt "A single solid owl figurine on a broad flat base" --generate-multi-view true --async --format json --no-update-check
|
|
84
|
+
meshy text-to-image wait DESIGN_ID --timeout 600 --format json --no-update-check
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Download the image with `download --kind image` and show it; continue once the user approves it,
|
|
88
|
+
adjusting it with image-to-image `--input-task-id DESIGN_ID` until they do (unless they said not
|
|
89
|
+
to stop for review). A multi-view task can return fewer than three views; look at them. Then make
|
|
90
|
+
the model from that task: one image feeds image-to-3d, multi-view output feeds multi-image-to-3d.
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
meshy image-to-3d create --input-task-id DESIGN_ID --should-texture false --target-formats glb,obj --async --format json --no-update-check
|
|
94
|
+
meshy multi-image-to-3d create --input-task-id DESIGN_ID --should-texture false --target-formats glb,obj --async --format json --no-update-check
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Wait on the resource that made the model, as above. Text-to-3d goes straight from words to
|
|
98
|
+
untextured geometry: faster, but the only way to steer it is to reword the prompt and pay for
|
|
99
|
+
another model. Run it when the user picks it, asks for a quick draft, or names text-to-3d:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
meshy text-to-3d create --mode preview --prompt "A sturdy small owl figurine on a broad flat base" --target-formats glb,obj --async --format json --no-update-check
|
|
103
|
+
meshy text-to-3d wait TEXT_ID --timeout 600 --format json --no-update-check
|
|
74
104
|
```
|
|
75
105
|
|
|
76
106
|
`--should-texture false` is deliberate for a white print: the CLI textures an image by default,
|
|
@@ -2,8 +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.
|
|
6
|
-
separate token store is involved.
|
|
5
|
+
The supported CLI is **0.8.x, from 0.8.5,** on **Node.js 22.12 or newer**.
|
|
7
6
|
|
|
8
7
|
Contents: 1 runner · 2 reuse a session · 3 first login · 4 where files go · 5 one session
|
|
9
8
|
everywhere · 6 API keys · 7 the China site.
|
|
@@ -33,8 +32,8 @@ meshy --version
|
|
|
33
32
|
|
|
34
33
|
| Observation | What to do |
|
|
35
34
|
|---|---|
|
|
36
|
-
| `meshy --version` prints 0.8.
|
|
37
|
-
| no `meshy` command, or a version older than 0.8.
|
|
35
|
+
| `meshy --version` prints 0.8.5 or a later 0.8.x | run `meshy` |
|
|
36
|
+
| no `meshy` command, or a version older than 0.8.5 | install the newest 0.8.x (below), then run `meshy` |
|
|
38
37
|
| 0.9 or newer | keep it, since something else may rely on it, and run the temporary package |
|
|
39
38
|
| no Node.js, or Node older than 22.12 | stop and report it: the user installs Node.js 22.12+ |
|
|
40
39
|
|
|
@@ -43,15 +42,15 @@ npm install -g meshy-cli@0.8
|
|
|
43
42
|
```
|
|
44
43
|
|
|
45
44
|
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.
|
|
45
|
+
most once: when `meshy --version` still reports a version older than 0.8.5 afterwards, the
|
|
47
46
|
registry this machine uses lags npm, so report that instead of installing again. Never use `sudo`
|
|
48
47
|
or change system policy: when the install is refused (permissions, a managed machine, a sandbox), use the temporary package
|
|
49
48
|
instead. It runs the same CLI without installing anything: put `npm exec --yes
|
|
50
|
-
--package=meshy-cli@0.8.
|
|
49
|
+
--package=meshy-cli@0.8.5 --` in front of the same arguments, and the exit code and the JSON on
|
|
51
50
|
stdout are forwarded unchanged. Recipes are written as `meshy …`; example:
|
|
52
51
|
|
|
53
52
|
```bash
|
|
54
|
-
npm exec --yes --package=meshy-cli@0.8.
|
|
53
|
+
npm exec --yes --package=meshy-cli@0.8.5 -- meshy auth status --format json --no-update-check
|
|
55
54
|
```
|
|
56
55
|
|
|
57
56
|
The first such call downloads the package into the npm cache; later calls reuse it. It names an
|
|
@@ -71,8 +70,7 @@ Every command, auth included, prints one `meshy.cli/v1` envelope on stdout (`ok`
|
|
|
71
70
|
the unauthenticated and unverified answers below are `ok: true` with exit 3.
|
|
72
71
|
|
|
73
72
|
- `authenticated: true`, `verified: true`, exit 0: continue with this account. **No new login.**
|
|
74
|
-
`result.account` names who is signed in when the site reports it
|
|
75
|
-
login made before CLI 0.8, and the China site for now).
|
|
73
|
+
`result.account` names who is signed in when the site reports it, and may be `null`.
|
|
76
74
|
- `authenticated: false`, exit 3: no usable credential; log in (next section).
|
|
77
75
|
- `authenticated: true`, `verified: false`, exit 3: a credential exists but verification failed —
|
|
78
76
|
which includes network and server errors, not just rejection. Do not start a login or delete
|
|
@@ -94,10 +92,8 @@ meshy auth login --device --format json --no-update-check
|
|
|
94
92
|
In mainland China, or when the user asks for the China site, add `--region cn`
|
|
95
93
|
([section 7](#7-the-china-site)): the code is then entered at `meshy.cn`.
|
|
96
94
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
to consume its result. Do not detach it with `&`, `nohup`, or a terminal launch and then
|
|
100
|
-
return. The CLI writes the verification instruction to **stderr**, before it starts polling:
|
|
95
|
+
The CLI writes the verification instruction to **stderr**, then polls until the user approves or
|
|
96
|
+
the code expires:
|
|
101
97
|
|
|
102
98
|
```text
|
|
103
99
|
Enter code WXYZ-1234 at https://www.meshy.ai/device
|
|
@@ -112,38 +108,17 @@ the chat — the CLI receives the credential itself.
|
|
|
112
108
|
|
|
113
109
|
### Keep the agent turn alive
|
|
114
110
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
chunk contains only npm startup output, read more from that same session.
|
|
127
|
-
3. Call `write_stdin` with that `session_id`, empty input and a bounded wait (e.g.
|
|
128
|
-
`yield_time_ms: 1000`–`10000`). While still running, repeat; no output means keep waiting.
|
|
129
|
-
The CLI already polls OAuth, so do not spawn another login or poll HTTP yourself.
|
|
130
|
-
4. Consume the actual exit code and final JSON. Only then verify `auth status` and continue
|
|
131
|
-
the original task in this turn. A tool yield/timeout is not an OAuth expiry.
|
|
132
|
-
|
|
133
|
-
If shell calls are wrapped by `functions.exec` and it returns a running `cell_id`, resume
|
|
134
|
-
that cell with `functions.wait`; once it returns the shell result, use its `session_id`
|
|
135
|
-
if present. Do not confuse the two IDs or leave an unawaited promise in a finished wrapper.
|
|
136
|
-
In Claude Code, start it with the Bash tool's `run_in_background`, read its output file until
|
|
137
|
-
the code line appears, then keep checking that output until the process exits. Other hosts use
|
|
138
|
-
their equivalent running-command wait tool. Send a brief progress
|
|
139
|
-
update during a long wait without ending the turn. Stop waiting on a terminal login error,
|
|
140
|
-
actual code expiry, user cancellation, or an explicit host limitation; report the reason.
|
|
141
|
-
Do not create recurring automations or a second task to keep a login alive.
|
|
142
|
-
|
|
143
|
-
The process keeps polling until the user approves or the code expires. While it polls, do not
|
|
144
|
-
start a second login, do not kill it, and do not ask the user to paste anything. On approval it
|
|
145
|
-
prints the envelope with `result.status: "logged_in"` and `result.verified: true` to stdout and
|
|
146
|
-
exits 0. Then:
|
|
111
|
+
Run the login as a running tool session and keep waiting on that **same** session in this turn,
|
|
112
|
+
with the host's own tool for reading a running command, until it exits. Browser approval ends
|
|
113
|
+
the CLI process, not your turn, and a process still running when the turn ends has nobody to
|
|
114
|
+
read its result. So do not detach it (`&`, `nohup`, a new terminal), do not end the turn with
|
|
115
|
+
"authorize and I will continue", and do not ask the user to reply "done". A tool yield or timeout
|
|
116
|
+
is not a code expiry. While it polls, do not start a second login, kill it or poll the API
|
|
117
|
+
yourself; send a brief progress note during a long wait. A host whose own skill says it wakes the
|
|
118
|
+
session when a background command exits follows that procedure instead.
|
|
119
|
+
|
|
120
|
+
On approval the CLI prints the envelope with `result.status: "logged_in"` and
|
|
121
|
+
`result.verified: true` to stdout and exits 0. Then:
|
|
147
122
|
|
|
148
123
|
1. Re-run `auth status`; `verified: true` is the proof, not the exit code of `login`.
|
|
149
124
|
2. **Continue the request the user originally made**, with the same inputs, output path and
|
|
@@ -164,26 +139,22 @@ Failure branches — each is a different recovery, so read the error rather than
|
|
|
164
139
|
"oauth_network"` and a `fetch failed` message, before any URL or code appears): the shell
|
|
165
140
|
cannot reach Meshy, so no login can finish there. Run the *same* command again with network
|
|
166
141
|
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
|
|
168
|
-
credential to reuse
|
|
169
|
-
|
|
170
|
-
|
|
142
|
+
not follow the error's `--with-key` hint, probe the network with `curl`, or look for a
|
|
143
|
+
credential to reuse (section 5).
|
|
144
|
+
- **The host cannot wait in the turn** (no tool reads a running command, or progress messages
|
|
145
|
+
reach the user only when the turn ends): use the two-step sign-in below.
|
|
171
146
|
|
|
172
|
-
###
|
|
147
|
+
### Two-step sign-in
|
|
173
148
|
|
|
174
|
-
|
|
175
|
-
Slack or Telegram), progress messages may arrive late or only when the turn ends, so a link shown
|
|
176
|
-
while the login waits never reaches them. Sign in in two steps instead (add `--region cn` to the
|
|
177
|
-
first for the China site):
|
|
149
|
+
Step one returns at once (add `--region cn` for the China site):
|
|
178
150
|
|
|
179
151
|
```bash
|
|
180
152
|
meshy auth login --device --no-wait --format json --no-update-check
|
|
181
153
|
```
|
|
182
154
|
|
|
183
|
-
It
|
|
184
|
-
`result.
|
|
185
|
-
|
|
186
|
-
in-app browser may not keep the sign-in), approve, and reply when done. When they reply:
|
|
155
|
+
It prints `result.verification_url` (the code is already in the link), `result.user_code` and
|
|
156
|
+
`result.flow_id`. Keep FLOW_ID in your notes, end the turn with the link and the code, and ask the
|
|
157
|
+
user to approve and reply. When they reply:
|
|
187
158
|
|
|
188
159
|
```bash
|
|
189
160
|
meshy auth login --device-flow FLOW_ID --format json --no-update-check
|
|
@@ -192,8 +163,7 @@ meshy auth login --device-flow FLOW_ID --format json --no-update-check
|
|
|
192
163
|
It waits while the approval is still pending, saves the session and prints
|
|
193
164
|
`result.status: "logged_in"`; verify `auth status` and continue the original request. An expired
|
|
194
165
|
or unknown flow means running step one again. A host whose question tool reaches the user can
|
|
195
|
-
instead ask with the link and wait for the answer in the same turn, then run step two.
|
|
196
|
-
DeepSeek Harness the `meshy_sign_in` tool replaces both steps (section 1).
|
|
166
|
+
instead ask with the link and wait for the answer in the same turn, then run step two.
|
|
197
167
|
|
|
198
168
|
Do not use `--manual` from an agent — it prompts on stdin for a pasted code. Never show a token, a device
|
|
199
169
|
code or a signed URL to the user or copy one into chat or a file: task results and sidecars
|
|
@@ -226,9 +196,8 @@ Existing files are never silently replaced. `download` refuses to overwrite unle
|
|
|
226
196
|
is passed, and `-o` refuses a target that holds anything but its own task's earlier output
|
|
227
197
|
(rerunning the same `-o` for the same task is fine). So an existing `chest.glb` is a decision — a
|
|
228
198
|
new name or, for `download`, an explicit overwrite — covered by what the user already authorized,
|
|
229
|
-
not a silent clobber.
|
|
230
|
-
|
|
231
|
-
to delete.
|
|
199
|
+
not a silent clobber. The sidecar `-o` leaves beside a model is described in
|
|
200
|
+
[delivery.md](delivery.md).
|
|
232
201
|
|
|
233
202
|
## 5. One session, both skills, any directory
|
|
234
203
|
|
|
@@ -237,14 +206,12 @@ are encrypted under a key the OS keeps (Keychain, DPAPI or the Secret Service; a
|
|
|
237
206
|
file where none is usable). Generation and printing, in either plugin, reuse it when run as the
|
|
238
207
|
same OS user with the same CLI configuration. Changing the working directory does not require
|
|
239
208
|
another login. Different users, machines, containers or configuration directories do not
|
|
240
|
-
automatically share sessions.
|
|
241
|
-
login over on its first write, and an older CLI then signs in once on its own.
|
|
209
|
+
automatically share sessions.
|
|
242
210
|
|
|
243
211
|
`MESHY_CONFIG_DIR` changes the config directory; `MESHY_CREDENTIALS_PATH` overrides the
|
|
244
|
-
credential file.
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
fields), and do not copy tokens between plugins.
|
|
212
|
+
credential file. Keep these settings consistent. Only the CLI touches the config directory: never
|
|
213
|
+
read, copy, move, edit or delete a file there, never look for credentials anywhere else, and do
|
|
214
|
+
not copy tokens between plugins.
|
|
248
215
|
`auth list` reports profile kinds with masked credentials. `auth use <name>` changes the shared
|
|
249
216
|
active profile, so do not switch it independently in concurrent workflows.
|
|
250
217
|
|
|
@@ -259,9 +226,9 @@ Credential priority is `--api-key` > `MESHY_API_KEY` > explicit `--api-key-file`
|
|
|
259
226
|
Harness plugin's session > stored active profile. An existing environment key overrides browser login; report `source` when
|
|
260
227
|
diagnosing account selection, and do not change the user's environment or account implicitly.
|
|
261
228
|
|
|
262
|
-
DeepSeek Harness
|
|
263
|
-
|
|
264
|
-
|
|
229
|
+
In DeepSeek Harness an exported `MESHY_API_KEY` never reaches the CLI (dsh removes
|
|
230
|
+
credential-shaped variables); the plugin's sign-in (section 1) or an explicit `--api-key-file` is
|
|
231
|
+
used instead.
|
|
265
232
|
|
|
266
233
|
There is no automatic `.env` discovery. If the user chooses a project key file, pass its
|
|
267
234
|
explicit path on authenticated commands. **`auth status` ignores `--api-key-file`**,
|
|
@@ -3,17 +3,16 @@
|
|
|
3
3
|
Every command uses `--format json --no-update-check` and prints one envelope. Read the process
|
|
4
4
|
exit code and the envelope's `error`, `result` and `warnings`; preserve any task ID, operation
|
|
5
5
|
ID, downloaded files and recovery command even when `ok` is false. Auth results are in
|
|
6
|
-
`result` as well; see [setup.md](setup.md).
|
|
7
|
-
skill is no longer read by the CLI; take task IDs from it by hand.
|
|
6
|
+
`result` as well; see [setup.md](setup.md).
|
|
8
7
|
|
|
9
8
|
Contents: runner problems · authentication · exit codes · unknown submission, failure and
|
|
10
9
|
timeout · deleting a task · local files.
|
|
11
10
|
|
|
12
11
|
## Runner problems
|
|
13
12
|
|
|
14
|
-
- **`meshy: command not found`** or **a version older than 0.8.
|
|
13
|
+
- **`meshy: command not found`** or **a version older than 0.8.5**: install the newest 0.8.x as
|
|
15
14
|
Setup describes. If the install is refused, use the temporary package
|
|
16
|
-
(`npm exec --yes --package=meshy-cli@0.8.
|
|
15
|
+
(`npm exec --yes --package=meshy-cli@0.8.5 -- meshy …`) and carry on with the same job.
|
|
17
16
|
- **A global 0.9 or newer** answers `--version`. Do not uninstall or downgrade it; use the
|
|
18
17
|
temporary package for this work and mention the mismatch once.
|
|
19
18
|
- **Node older than 22.12** fails the CLI's own runtime gate. Report the required version and the
|
|
@@ -37,8 +36,7 @@ status does not honor it.
|
|
|
37
36
|
- **Login code expired or denied**: rerun the same `auth login --device` for a fresh code, and
|
|
38
37
|
show the new URL and code. Nothing paid is retried because a login timed out.
|
|
39
38
|
- **Works in another terminal**: compare status `source`, active profile, OS user and
|
|
40
|
-
config/API environment. An environment key overrides a stored OAuth session.
|
|
41
|
-
shell profiles or print secret values.
|
|
39
|
+
config/API environment. An environment key overrides a stored OAuth session.
|
|
42
40
|
- **`device_flow_not_supported`**: this API host has no device endpoint — the user logs in
|
|
43
41
|
from their own desktop terminal, or supplies their own key privately.
|
|
44
42
|
|
|
@@ -47,7 +45,7 @@ status does not honor it.
|
|
|
47
45
|
| Exit | Meaning | Recovery |
|
|
48
46
|
|---|---|---|
|
|
49
47
|
| 1 | Generic/server/protocol error or failed task | Inspect the error and any known task before deciding next steps. |
|
|
50
|
-
| 2 | Usage or operation conflict | Correct arguments/account/payload mismatch; do not invent a fresh operation ID to bypass a conflict. A local STL/OBJ/FBX `--model-url` lands here: pass it as an http(s) URL instead.
|
|
48
|
+
| 2 | Usage or operation conflict | Correct arguments/account/payload mismatch; do not invent a fresh operation ID to bypass a conflict. A local STL/OBJ/FBX `--model-url` lands here: pass it as an http(s) URL instead. |
|
|
51
49
|
| 3 | Authentication | Use the source-aware checks above; status also uses this for failed network verification. |
|
|
52
50
|
| 4 | Validation | Correct the rejected input or explain the unsupported request. |
|
|
53
51
|
| 5 | Not found | Check the resource, task ID and account; a task older than Meshy's 3-day retention is gone (see Delivery). |
|