@deepblend/dsh-blender-bundle 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/README.md CHANGED
@@ -14,15 +14,26 @@ recipe or import your own model, then compare real renders as you work.
14
14
  · [Try the cup walkthrough](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/creator-tutorial.md)
15
15
  · [Quick start](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/quick-start.md)
16
16
 
17
- ## See what you can make
17
+ ## Real work: light and material
18
18
 
19
- | Metal task lamp | Glass and ceramic | Desktop speaker |
19
+ Starting with 0.3.3, `deepblend-doctor` checks supported executable versions and reports
20
+ installation blockers, with separate PNG and MP4 tool readiness. See the
21
+ [environment check guide](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/environment-check.md)
22
+ for commands and scope. It does not change profiles or project files.
23
+
24
+ Three product studies made with the locally installed DeepBlend plugin: amber glass, a champagne-metal lamp and a speaker with a physical woven grille. Each includes a high-resolution hero, a material close-up and a **6-second / 1080p / 24 fps** camera animation.
25
+
26
+ | 琥珀时间 · Amber Atlas | 金色暮光 · Solstice | 织声 · Nocturne |
20
27
  | --- | --- | --- |
21
- | ![Blender render of a metal task lamp](https://raw.githubusercontent.com/pearjelly/deep-blend/v0.3.0/deepblend/benchmarks/previews/metal-lamp-hero.png) | ![Blender render of glass and ceramic](https://raw.githubusercontent.com/pearjelly/deep-blend/v0.3.0/deepblend/benchmarks/previews/glass-ceramic-hero.png) | ![Blender render of a desktop speaker](https://raw.githubusercontent.com/pearjelly/deep-blend/v0.3.0/deepblend/benchmarks/previews/modular-speaker-hero.png) |
28
+ | [![Actual DeepBlend camera animation: amber glass and ivory glaze](https://raw.githubusercontent.com/pearjelly/deep-blend/main/deepblend/docs/assets/showcase/amber-atlas-loop.webp)](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/assets/showcase/amber-atlas-hero.png) | [![Actual DeepBlend camera animation: champagne metal lamp](https://raw.githubusercontent.com/pearjelly/deep-blend/main/deepblend/docs/assets/showcase/solstice-loop.webp)](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/assets/showcase/solstice-hero.png) | [![Actual DeepBlend camera animation: wood finish and woven grille](https://raw.githubusercontent.com/pearjelly/deep-blend/main/deepblend/docs/assets/showcase/nocturne-loop.webp)](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/assets/showcase/nocturne-hero.png) |
29
+ | [Play MP4](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/assets/showcase/amber-atlas.mp4) | [Play MP4](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/assets/showcase/solstice.mp4) | [Play MP4](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/assets/showcase/nocturne.mp4) |
30
+
31
+ The inline previews sample the actual films at 12 fps; the MP4s retain all 144 rendered frames at 24 fps. Click a preview for its 2560×1440 still.
32
+
33
+ [Open the gallery](https://pearjelly.github.io/deep-blend/) · [Scene sources and rebuild](https://github.com/pearjelly/deep-blend/blob/main/deepblend/showcase/README.md) · [Render provenance](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/assets/showcase/manifest.json) · [Official Blender visual references](https://github.com/pearjelly/deep-blend/blob/main/deepblend/showcase/REFERENCES.md)
34
+
35
+ The scenes and output come from editable SceneSpec and actual rendering. Official Blender examples informed the lighting and material direction; no official demo model, texture or movie frame is used in these works.
22
36
 
23
- These are actual Blender renders, with reproducible inputs and
24
- [image provenance](https://github.com/pearjelly/deep-blend/blob/v0.3.0/deepblend/benchmarks/previews/manifest.json).
25
- The gallery also includes an editable glazed cup with a handle.
26
37
 
27
38
  ## From a starting point to a saved result
28
39
 
package/README.zh.md CHANGED
@@ -10,14 +10,21 @@
10
10
  工作台负责具体编辑,DeepBlend Studio 智能体预设提供场景操作、预览、视觉评审和交付工具。
11
11
  每次保存保留独立版本,可以对照真实图片继续修改。
12
12
 
13
- ## 先看实际作品
13
+ ## 真实作品:光与材质
14
14
 
15
- | 金属台灯 | 玻璃陶瓷 | 桌面音箱 |
15
+ 用本机安装的 DeepBlend 制作三组产品场景:琥珀玻璃、香槟金属灯具、编织格栅音箱。每组包含高清主图、材质近景和一段 **6 秒 / 1080p / 24 fps** 的真实镜头动画。
16
+
17
+ | 琥珀时间 · Amber Atlas | 金色暮光 · Solstice | 织声 · Nocturne |
16
18
  | --- | --- | --- |
17
- | ![Blender 实际渲染的金属台灯](https://raw.githubusercontent.com/pearjelly/deep-blend/v0.3.0/deepblend/benchmarks/previews/metal-lamp-hero.png) | ![Blender 实际渲染的玻璃陶瓷](https://raw.githubusercontent.com/pearjelly/deep-blend/v0.3.0/deepblend/benchmarks/previews/glass-ceramic-hero.png) | ![Blender 实际渲染的桌面音箱](https://raw.githubusercontent.com/pearjelly/deep-blend/v0.3.0/deepblend/benchmarks/previews/modular-speaker-hero.png) |
19
+ | [![DeepBlend 真实镜头动画:琥珀玻璃与象牙釉盘](https://raw.githubusercontent.com/pearjelly/deep-blend/main/deepblend/docs/assets/showcase/amber-atlas-loop.webp)](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/assets/showcase/amber-atlas-hero.png) | [![DeepBlend 真实镜头动画:建筑背景前的香槟金桌灯](https://raw.githubusercontent.com/pearjelly/deep-blend/main/deepblend/docs/assets/showcase/solstice-loop.webp)](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/assets/showcase/solstice-hero.png) | [![DeepBlend 真实镜头动画:深色木纹音箱与编织格栅](https://raw.githubusercontent.com/pearjelly/deep-blend/main/deepblend/docs/assets/showcase/nocturne-loop.webp)](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/assets/showcase/nocturne-hero.png) |
20
+ | [播放 MP4](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/assets/showcase/amber-atlas.mp4) | [播放 MP4](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/assets/showcase/solstice.mp4) | [播放 MP4](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/assets/showcase/nocturne.mp4) |
21
+
22
+ 页内动图从实际成片按 12 fps 取样;MP4 保留全部 144 个渲染帧,帧率为 24 fps。点击预览可查看 2560×1440 高清静帧。
23
+
24
+ [打开作品画廊](https://pearjelly.github.io/deep-blend/) · [场景源码与复现](https://github.com/pearjelly/deep-blend/blob/main/deepblend/showcase/README.md) · [渲染来源记录](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/assets/showcase/manifest.json) · [Blender 官网视觉参考](https://github.com/pearjelly/deep-blend/blob/main/deepblend/showcase/REFERENCES.md)
25
+
26
+ 作品的造型、布景与输出来自公开 SceneSpec 和实际渲染;官网案例用于光影与材质的设计参考。没有使用官方案例的模型、纹理或成片。
18
27
 
19
- 图片来自真实 Blender 渲染,保留了可重建输入和
20
- [来源记录](https://github.com/pearjelly/deep-blend/blob/v0.3.0/deepblend/benchmarks/previews/manifest.json)。
21
28
 
22
29
  ## 可以怎样使用
23
30
 
@@ -31,6 +38,10 @@
31
38
 
32
39
  ## 安装并开始
33
40
 
41
+ 0.3.3 新增 `deepblend-doctor`,集中检查工具版本与安装问题,分别显示 PNG 和 MP4 工具是否齐备。
42
+ 命令与检查范围见[环境自检指南](https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/environment-check.md)。
43
+ 自检不修改 profile 或项目文件。
44
+
34
45
  推荐使用正式 npm 包:
35
46
 
36
47
  ```sh
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env node
2
+ import { formatEnvironmentReport, inspectEnvironment } from './doctor.js'
3
+
4
+ const help = `deepblend-doctor [--json] [--require-video]
5
+ [--blender PATH] [--dsh PATH] [--pnpm PATH] [--ffmpeg PATH] [--ffprobe PATH]
6
+
7
+ Read-only environment checks / 只读环境自检
8
+ Reports all missing tools, supported versions and next steps.
9
+ FFmpeg/ffprobe are optional unless --require-video is selected.
10
+ Explicit paths check the executables you name; profile configuration is not read.
11
+ Exit: 0 required tools ready, 1 requirements missing, 2 invalid arguments.
12
+ This does not install tools or change your DSH profile.`
13
+
14
+ function main(args) {
15
+ if (args.includes('--help') || args.includes('-h')) { console.log(help); return 0 }
16
+ const commands = {}
17
+ let json = false
18
+ let requireVideo = false
19
+ for (let i = 0; i < args.length; i++) {
20
+ const arg = args[i]
21
+ if (arg === '--json') json = true
22
+ else if (arg === '--require-video') requireVideo = true
23
+ else if (/^--(?:blender|dsh|pnpm|ffmpeg|ffprobe)$/.test(arg)) {
24
+ const path = args[++i]
25
+ if (!path || path.startsWith('--')) { console.error(`${arg} requires an executable path.\n${help}`); return 2 }
26
+ commands[arg.slice(2)] = path
27
+ } else { console.error(`Unknown argument: ${arg}\n${help}`); return 2 }
28
+ }
29
+ const report = inspectEnvironment({ commands })
30
+ console.log(json ? JSON.stringify(report, null, 2) : formatEnvironmentReport(report))
31
+ return report.ready.installation && (!requireVideo || report.ready.video) ? 0 : 1
32
+ }
33
+
34
+ process.exitCode = main(process.argv.slice(2))
@@ -0,0 +1,6 @@
1
+ {
2
+ "node": "22.23.3",
3
+ "dsh": "0.1.5-rc.2",
4
+ "pnpm": "10.28.2",
5
+ "blender": "5.2.1"
6
+ }
package/lib/doctor.js ADDED
@@ -0,0 +1,86 @@
1
+ /** Read-only executable checks. No DSH imports, model calls or profile writes. */
2
+ import { spawnSync } from 'node:child_process'
3
+ import { readFileSync } from 'node:fs'
4
+
5
+ export const REQUIREMENTS = Object.freeze(JSON.parse(readFileSync(new URL('./doctor-requirements.json', import.meta.url), 'utf8')))
6
+
7
+ export function probeExecutable(executable, args, { timeout = 8000 } = {}) {
8
+ const result = spawnSync(executable, args, {
9
+ encoding: 'utf8', timeout, maxBuffer: 256 * 1024, shell: false,
10
+ // DSH configuration/auth notices must not be copied into the diagnostic report.
11
+ windowsHide: true,
12
+ })
13
+ if (result.error?.code === 'ETIMEDOUT') return { ok: false, reason: 'timeout' }
14
+ if (result.error?.code === 'ENOENT') return { ok: false, reason: 'missing' }
15
+ if (result.error || result.status !== 0) return { ok: false, reason: 'failed' }
16
+ return { ok: true, output: `${result.stdout ?? ''}\n${result.stderr ?? ''}` }
17
+ }
18
+
19
+ const SEMVER = '(\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?)'
20
+ const definitions = [
21
+ { id: 'dsh', label: 'DSH', args: ['--version'], pattern: new RegExp(`^(?:v|(?:DSH|dsh|@deepseek-ai/dsh)(?: CLI)?[ :v]*)?${SEMVER}(?:\\s|$)`, 'im'),
22
+ expected: REQUIREMENTS.dsh, action: `Install the supported DSH ${REQUIREMENTS.dsh}; see the quick start.` },
23
+ { id: 'pnpm', label: 'pnpm', args: ['--version'], pattern: new RegExp(`^v?${SEMVER}(?:\\s|$)`, 'm'),
24
+ expected: REQUIREMENTS.pnpm, action: `Use the verified pnpm ${REQUIREMENTS.pnpm} for DSH profile installation; pnpm 9 can refuse the profile workspace root.` },
25
+ { id: 'blender', label: 'Blender', args: ['--version'], pattern: new RegExp(`^Blender ${SEMVER}(?:\\s|$)`, 'm'),
26
+ expected: REQUIREMENTS.blender, action: `Install Blender ${REQUIREMENTS.blender} or pass --blender /path/to/blender.` },
27
+ { id: 'ffmpeg', label: 'FFmpeg', args: ['-version'], pattern: /^ffmpeg version (\S+)/m, optional: true,
28
+ action: 'Install FFmpeg or pass --ffmpeg /path/to/ffmpeg for MP4 delivery. PNG creation remains available.' },
29
+ { id: 'ffprobe', label: 'ffprobe', args: ['-version'], pattern: /^ffprobe version (\S+)/m, optional: true,
30
+ action: 'Install ffprobe or pass --ffprobe /path/to/ffprobe to verify MP4 delivery. PNG creation remains available.' },
31
+ ]
32
+
33
+ function nodeSupported(version) {
34
+ if (!/^\d+\.\d+\.\d+$/.test(version)) return false
35
+ const actual = version.split('.').map(Number)
36
+ const minimum = REQUIREMENTS.node.split('.').map(Number)
37
+ for (let i = 0; i < 3; i++) {
38
+ if (actual[i] !== minimum[i]) return actual[i] > minimum[i]
39
+ }
40
+ return true
41
+ }
42
+
43
+ /** Availability only: passing does not prove a profile or plugin is installed. */
44
+ export function inspectEnvironment({ nodeVersion = process.versions.node, commands = {}, probe = probeExecutable } = {}) {
45
+ const checks = [{
46
+ id: 'node', label: 'Node.js', status: nodeSupported(nodeVersion) ? 'pass' : 'fail',
47
+ required: true, version: nodeVersion, expected: `>=${REQUIREMENTS.node}`,
48
+ reason: nodeSupported(nodeVersion) ? null : 'version',
49
+ action: nodeSupported(nodeVersion) ? null : `Use Node.js ${REQUIREMENTS.node} or newer for the supported DSH CLI.`,
50
+ }]
51
+ for (const definition of definitions) {
52
+ const result = probe(commands[definition.id] ?? definition.id, definition.args)
53
+ const version = result.ok ? result.output.match(definition.pattern)?.[1] ?? null : null
54
+ const reason = !result.ok ? result.reason : !version ? 'unrecognized' : definition.expected && version !== definition.expected ? 'version' : null
55
+ checks.push({
56
+ id: definition.id, label: definition.label, required: !definition.optional,
57
+ status: reason ? definition.optional ? 'warning' : 'fail' : 'pass',
58
+ version, expected: definition.expected ?? null, reason,
59
+ action: reason === 'unrecognized' && definition.id === 'dsh'
60
+ ? `Check that PATH uses Node.js ${REQUIREMENTS.node} or newer, then run dsh --version. No recognizable version was returned.`
61
+ : reason ? definition.action : null,
62
+ })
63
+ }
64
+ const passed = id => checks.find(check => check.id === id)?.status === 'pass'
65
+ const images = ['node', 'dsh', 'blender'].every(passed)
66
+ return {
67
+ schemaVersion: 'deepblend.environment-check/v1',
68
+ ready: { installation: images && passed('pnpm'), images, video: images && passed('ffmpeg') && passed('ffprobe') },
69
+ checks,
70
+ scope: 'Executable availability and supported versions only; profile configuration, plugin activation and rendering must be checked in DSH.',
71
+ }
72
+ }
73
+
74
+ export function formatEnvironmentReport(report) {
75
+ const lines = ['DeepBlend environment check / 环境自检', '']
76
+ for (const check of report.checks) {
77
+ lines.push(`[${check.status.toUpperCase()}] ${check.label}: ${check.version ?? check.reason}${check.expected ? ` (requires ${check.expected})` : ''}`)
78
+ if (check.action) lines.push(` Next: ${check.action}`)
79
+ }
80
+ lines.push('', `Installation / 安装: ${report.ready.installation ? 'ready' : 'needs attention'}`,
81
+ `PNG tools / 图片工具: ${report.ready.images ? 'ready' : 'needs attention'}`,
82
+ `MP4 tools / 视频工具: ${report.ready.video ? 'ready' : 'needs attention'}`,
83
+ '', report.scope,
84
+ 'Guide: https://github.com/pearjelly/deep-blend/blob/main/deepblend/docs/quick-start.md')
85
+ return lines.join('\n')
86
+ }
package/lib/index.js CHANGED
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * @deepblend/dsh-blender-bundle
3
3
  *
4
- * This package is **patch-only**: it contributes no runtime plugin, no service
4
+ * This package is **patch-only when composed**: it contributes no runtime plugin, no service
5
5
  * and no tool of its own. Its entire contribution is `cordis.patch.yml`,
6
6
  * declared through `dsh.bundle.patch` and composed by the profile boot before
7
7
  * the profile's own patch layer.
8
+ * The optional deepblend-doctor executable runs only when explicitly invoked.
8
9
  *
9
10
  * The module exists so the package is a well-formed, importable ESM package —
10
11
  * an `exports` map with no `.` entry makes `require.resolve('@deepblend/dsh-blender-bundle')`
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@deepblend/dsh-blender-bundle",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Create Blender product scenes in DSH with editable recipes, model imports, previews and PNG/MP4 delivery; includes workbench and agent configuration.",
5
5
  "main": "lib/index.js",
6
+ "bin": {
7
+ "deepblend-doctor": "lib/doctor-cli.js"
8
+ },
6
9
  "exports": {
7
10
  ".": {
8
11
  "default": "./lib/index.js"
@@ -22,12 +25,12 @@
22
25
  }
23
26
  },
24
27
  "dependencies": {
25
- "@deepblend/dsh-blender-contracts": "0.3.2",
26
- "@deepblend/dsh-blender-host": "0.3.2",
27
- "@deepblend/dsh-blender-preset": "0.3.2",
28
- "@deepblend/dsh-blender-provider-local": "0.3.2",
29
- "@deepblend/dsh-blender-tool": "0.3.2",
30
- "@deepblend/dsh-blender-ui": "0.3.2"
28
+ "@deepblend/dsh-blender-contracts": "0.3.3",
29
+ "@deepblend/dsh-blender-host": "0.3.3",
30
+ "@deepblend/dsh-blender-preset": "0.3.3",
31
+ "@deepblend/dsh-blender-provider-local": "0.3.3",
32
+ "@deepblend/dsh-blender-tool": "0.3.3",
33
+ "@deepblend/dsh-blender-ui": "0.3.3"
31
34
  },
32
35
  "type": "module",
33
36
  "license": "MIT",
package/screenshots.json CHANGED
@@ -1,10 +1,10 @@
1
1
  [
2
- "deepblend/docs/brand/banner.png",
3
- "deepblend/benchmarks/previews/metal-lamp-hero.png",
4
- "deepblend/benchmarks/previews/glass-ceramic-hero.png",
5
- "deepblend/benchmarks/previews/modular-speaker-hero.png",
6
- "deepblend/docs/assets/creator-tutorial/cup-final-frame.png",
7
- "deepblend/docs/images/workbench-scene.png",
8
- "deepblend/docs/images/render-contact-sheet.png",
9
- "deepblend/docs/images/preview-compare.png"
2
+ "https://raw.githubusercontent.com/pearjelly/deep-blend/main/deepblend/docs/brand/banner.png",
3
+ "https://raw.githubusercontent.com/pearjelly/deep-blend/main/deepblend/docs/assets/showcase/solstice-loop.webp",
4
+ "https://raw.githubusercontent.com/pearjelly/deep-blend/main/deepblend/docs/assets/showcase/amber-atlas-loop.webp",
5
+ "https://raw.githubusercontent.com/pearjelly/deep-blend/main/deepblend/docs/assets/showcase/nocturne-loop.webp",
6
+ "https://raw.githubusercontent.com/pearjelly/deep-blend/main/deepblend/docs/assets/creator-tutorial/cup-final-frame.png",
7
+ "https://raw.githubusercontent.com/pearjelly/deep-blend/main/deepblend/docs/images/workbench-scene.png",
8
+ "https://raw.githubusercontent.com/pearjelly/deep-blend/main/deepblend/docs/images/render-contact-sheet.png",
9
+ "https://raw.githubusercontent.com/pearjelly/deep-blend/main/deepblend/docs/images/preview-compare.png"
10
10
  ]