blendops 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -1
- package/README.md +26 -7
- package/bin/blendops.mjs +0 -0
- package/bundles/generic-project-local/README.md +3 -2
- package/docs/README.md +276 -0
- package/package.json +9 -5
- package/scripts/install-skills.mjs +100 -26
- package/scripts/runtime-orchestrator.mjs +63 -2
package/CHANGELOG.md
CHANGED
|
@@ -26,7 +26,7 @@ community `mcp-for-blender`, Blender CLI).
|
|
|
26
26
|
|
|
27
27
|
### Truth-State Posture
|
|
28
28
|
- In-repo live Blender runtime status remains `Not Run` and live Blender artifacts remain `Not Produced`.
|
|
29
|
-
- npm
|
|
29
|
+
- Public npm distribution is live as [`blendops@1.0.0`](https://www.npmjs.com/package/blendops) (`latest` dist-tag); the repository's Agent Skills source is also [listed on skills.sh](https://www.skills.sh/ThanhNguyxnOrg/blendops). Official marketplace/plugin listings remain unpublished.
|
|
30
30
|
|
|
31
31
|
## [v0.8.0-draft] — 2026-10-16
|
|
32
32
|
|
|
@@ -60,3 +60,15 @@ Skills-layer review hardening + runtime consistency.
|
|
|
60
60
|
|
|
61
61
|
## [v0.1.0-draft]
|
|
62
62
|
- 16 baseline skills.
|
|
63
|
+
|
|
64
|
+
## [1.0.1] - 2026-11-20
|
|
65
|
+
|
|
66
|
+
### Bug Fixes and Performance
|
|
67
|
+
|
|
68
|
+
- SemVer 2.0 prerelease order, exact skills.sh matching, <=255 description, and CodeQL-clean tests ([12a7a12](https://github.com/ThanhNguyxnOrg/blendops/commit/12a7a1257d740441d2e212df5f482e7819d0abab))
|
|
69
|
+
- restore original scripts, files, and keywords while keeping <=255 char description ([9cc3de8](https://github.com/ThanhNguyxnOrg/blendops/commit/9cc3de808a567b99d4d6420bf5b8ce1ae5042266))
|
|
70
|
+
|
|
71
|
+
## [1.1.0] - 2026-11-21
|
|
72
|
+
|
|
73
|
+
Re-declared at 466a4a92232b after prepared commit fcd0a0e8eb2f failed its required checks.
|
|
74
|
+
|
package/README.md
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
**AI-native Blender workflow specs for people who do not know Blender.**
|
|
12
12
|
|
|
13
13
|
[](./LICENSE)
|
|
14
|
+
[](https://www.npmjs.com/package/blendops)
|
|
14
15
|
[](./docs/release-readiness.md)
|
|
15
16
|
[](./docs/runtime-stack-strategy.md)
|
|
16
17
|
[](./docs/evals/blender-connector-read-only-smoke-test.md)
|
|
@@ -132,20 +133,38 @@ Auto-detect your environment first, then pick one mode:
|
|
|
132
133
|
Do not install Blender, configure runtime connectors, run Blender, or claim generated artifacts. Report the selected mode, files changed or ZIP filenames, runtime status, artifact status, and limitations.
|
|
133
134
|
```
|
|
134
135
|
|
|
135
|
-
### Option 2 —
|
|
136
|
+
### Option 2 — Install BlendOps Agent Skills
|
|
137
|
+
|
|
138
|
+
The BlendOps GitHub repository is already listed on [skills.sh](https://www.skills.sh/ThanhNguyxnOrg/blendops). Install the skill collection with the Agent Skills CLI:
|
|
136
139
|
|
|
137
140
|
```bash
|
|
138
|
-
# Via skills.sh ecosystem (pulls portable SKILL.md folders cleanly via skills.sh.json)
|
|
139
141
|
npx skills add ThanhNguyxnOrg/blendops
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
The Skills CLI guides you through choosing skills and supported agent targets. The repository's `skills.sh.json` defines eight display groups for the listing. It is source metadata; no ZIP upload or separate npm publication is required for skills.sh.
|
|
145
|
+
|
|
146
|
+
### Option 3 — Install and run the published BlendOps npm CLI
|
|
140
147
|
|
|
141
|
-
|
|
148
|
+
The public npm package is `blendops@1.0.0` (dist-tag `latest`). No clone or global install is required:
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
npx blendops --help
|
|
152
|
+
npx blendops doctor --project .
|
|
153
|
+
npx blendops install --target auto --project . --dry-run
|
|
154
|
+
npx blendops install --target auto --project . --write
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Review the dry-run plan before running the matching `--write`. The installer changes only the selected project; it does not install Blender or configure an MCP runtime.
|
|
158
|
+
|
|
159
|
+
### Option 4 — Local checkout installer
|
|
160
|
+
|
|
161
|
+
For contributors working from a local clone, use the repository scripts:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
142
164
|
npm run skills:install -- --target universal --project /path/to/your-project --with-skills-dir --dry-run
|
|
143
165
|
npm run skills:install -- --target universal --project /path/to/your-project --with-skills-dir --write
|
|
144
166
|
```
|
|
145
167
|
|
|
146
|
-
> [!NOTE]
|
|
147
|
-
> `package.json` is configured for public npm publication (`publishConfig.access: public`). The first staged npm release is pending maintainer approval (`npm package: Not Published` — no `npx blendops` registry package is live yet). Runtime status stays `Not Run` and artifact status stays `Not Produced` on install.
|
|
148
|
-
|
|
149
168
|
The agent auto-detects which mode applies. Coding agents (Claude Code, Cursor, Codex, OpenCode, Cline, Roo Code, Blackbox AI, Continue, Zed, Windsurf, Trae, Augment Code, goose, OpenHands, JetBrains Junie, Sourcegraph Cody, Aider, Amazon Q Developer, Gemini, Copilot, Antigravity, Kiro, Amp, Droid, Kilo, OpenClaw, ClawdBot, VS Code, universal `.agents/skills/`) hit **Mode A** and install **project-locally**. Claude Desktop / Claude.ai / ChatGPT chats hit **Mode B** and output **separate ZIPs from skills/*/SKILL.md** (one per skill, 48 total) for you to drag-drop into the Skills UI manually. Anything else falls back to **Mode C — blocked-needs-input**. Full mode logic in [`docs/ai-agent-install-flow.md`](./docs/ai-agent-install-flow.md).
|
|
150
169
|
|
|
151
170
|
---
|
|
@@ -181,7 +200,7 @@ BlendOps recognizes **2 MCP execution paths + a CLI fallback appendix** ([full d
|
|
|
181
200
|
|
|
182
201
|
## 🚫 What it does **not** do
|
|
183
202
|
|
|
184
|
-
BlendOps does not install Blender, ship its own runtime, configure Anthropic Connector or the Lab MCP add-on for you, run Blender, claim mutation/render/export artifacts, or claim
|
|
203
|
+
BlendOps does not install Blender, ship its own runtime, configure Anthropic Connector or the Lab MCP add-on for you, run Blender, claim mutation/render/export artifacts, or claim an official marketplace/plugin listing. npm and skills.sh provide content/CLI distribution only; Blender runtime setup is separate. See [`docs/release-readiness.md`](./docs/release-readiness.md) for the honest current state.
|
|
185
204
|
|
|
186
205
|
---
|
|
187
206
|
|
package/bin/blendops.mjs
CHANGED
|
File without changes
|
|
@@ -7,7 +7,7 @@ Target: `generic-project`
|
|
|
7
7
|
|
|
8
8
|
This is a static, inspectable project-local install fixture for BlendOps. It gives an AI coding agent a minimal set of files it can copy into another repository when target detection is unknown or ambiguous.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
This directory is a static reference fixture only; it is not itself an installer script, an npm package, a separate release artifact, an official marketplace listing, or a runtime setup. For the published CLI, use [`blendops@1.0.0`](https://www.npmjs.com/package/blendops); for direct Agent Skills installation, use [`skills.sh`](https://www.skills.sh/ThanhNguyxnOrg/blendops).
|
|
11
11
|
|
|
12
12
|
## When to use it
|
|
13
13
|
|
|
@@ -26,7 +26,8 @@ Do not use this bundle when:
|
|
|
26
26
|
- the user expects Blender runtime setup,
|
|
27
27
|
- the user expects a Claude Desktop Connector or Blender MCP bridge configuration,
|
|
28
28
|
- the user expects preview/render/GLB artifacts,
|
|
29
|
-
- the user expects
|
|
29
|
+
- the user expects to invoke the published npm CLI directly (use `npx blendops` instead of copying this static fixture),
|
|
30
|
+
- the user expects an official marketplace install (no such listing is claimed).
|
|
30
31
|
|
|
31
32
|
## Relationship to install docs
|
|
32
33
|
|
package/docs/README.md
ADDED
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
# 📚 BlendOps Documentation Hub
|
|
2
|
+
|
|
3
|
+
The single index for everything in this repo. Bookmark this page.
|
|
4
|
+
|
|
5
|
+
> [!NOTE]
|
|
6
|
+
> BlendOps is **v1.0.0 (Production)**. The public npm CLI package `blendops@1.0.0` is published, and the GitHub Agent Skills source is listed on skills.sh. No official marketplace/plugin listing is claimed. In-repo live Blender runtime evidence remains partial (Path 1 read-only smoke only; mutation/render/export `Not Run` / `Not Produced`).
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 🚦 Status dashboard
|
|
11
|
+
|
|
12
|
+
| Area | Status | Meaning |
|
|
13
|
+
|---|---|---|
|
|
14
|
+
| Product release | v1.0.0 (Production) | Canonical workflow specs, knowledge/recipe catalogs, CLI, and CI verification suites are released. |
|
|
15
|
+
| Skill / law / pack collection | v1.0.0 | **48** canonical portable skills, 4 laws, 1 pack (`product-hero-v0`). Canonical index: [`../skills/README.md`](../skills/README.md); public GitHub source is [listed on skills.sh](https://www.skills.sh/ThanhNguyxnOrg/blendops). |
|
|
16
|
+
| Runtime path model | Active (2-path + CLI appendix) | Path 1 (Lab MCP, hosted from Anthropic Connector or manual MCP); Path 2 (community `mcp-for-blender`); CLI fallback (documented upstream as first-class Blender CLI; no in-repo evidence file yet). |
|
|
17
|
+
| Path 1 read-only smoke | Pass / Available | 2026-04-29 record (likely Anthropic Connector host). |
|
|
18
|
+
| Path 2 user-reported verified | Yes (2026-05-08) | No formal eval file yet. |
|
|
19
|
+
| CLI fallback | Not Run | **Documented upstream** as a first-class Blender CLI surface; no in-repo evidence file yet. |
|
|
20
|
+
| Full runtime manual eval (any path) | Not Run | Mutation/render/export not attempted. |
|
|
21
|
+
| Runtime artifacts | Not Produced | No fresh preview/render/GLB. |
|
|
22
|
+
| Release tag (`v1.0.0`) | Ready | Skills layer (48 skills + 151 hardened references), catalogs, CLI (`35+` targets), and full verification suite are complete. |
|
|
23
|
+
| npm CLI package | Published (`blendops@1.0.0`, `latest`) | [Public npm package](https://www.npmjs.com/package/blendops); the CLI entrypoint and transactional project installer ship in the package. |
|
|
24
|
+
| Distribution metadata sync | Automated | ThanhNguyxnAgent checks npm registry + skills.sh on source changes and weekly; see `docs/audits/current/distribution-metadata.json` (created by the first successful live sync). |
|
|
25
|
+
| Knowledge & Recipe Catalog | Implemented & Verified (`90/90` bilingual retrieval evals) | **30** `knowledge.*` records across **11** 3D domains, **10** `recipe.*` blueprints, **20** `source.*` citations, deterministic `catalog-search` / `catalog-resolve` / `plan-compile` CLI, and 48-skill / 151-reference architecture audit in [`knowledge-and-recipe-catalog.md`](./knowledge-and-recipe-catalog.md) and [`audits/skill-architecture-audit.md`](./audits/skill-architecture-audit.md). |
|
|
26
|
+
| GLB Web Handoff & Viewer Integration | Implemented (`Not Run` / `Not Produced` for live Blender exports) | `schemas/glb-web-handoff-manifest.schema.json`, `scripts/inspect-glb.mjs`, `scripts/generate-glb-handoff-report.mjs`, CLI `glb-inspect` / `glb-handoff` / `glb-validate-manifest`, and Three.js + R3F examples in [`examples/glb-web-handoff/README.md`](./examples/glb-web-handoff/README.md). |
|
|
27
|
+
| Repository architecture & file inventory | Verified (`npm run arch:check`) | Canonical source, generated artifact, historical record, documentation, runtime/test, distribution, and config classification in [`architecture.md`](./architecture.md) and [`audits/current/repository-inventory.json`](./audits/current/repository-inventory.json). |
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## 🚀 Start here (recommended order)
|
|
32
|
+
|
|
33
|
+
1. [`start-here.md`](./start-here.md) — friendly first-read orientation.
|
|
34
|
+
2. [`product-direction.md`](./product-direction.md) — what BlendOps is and isn't.
|
|
35
|
+
3. [`runtime-stack-strategy.md`](./runtime-stack-strategy.md) — the canonical 2-path + CLI appendix runtime model with corrected attribution history.
|
|
36
|
+
4. [`external-runtime-setup.md`](./external-runtime-setup.md) — per-path Blender + MCP setup walkthrough.
|
|
37
|
+
5. [`ai-agent-quickstart.md`](./ai-agent-quickstart.md) — the prompt to paste into any AI agent.
|
|
38
|
+
6. [`ai-agent-install-flow.md`](./ai-agent-install-flow.md) — universal install/prep flow (Mode A/B/C).
|
|
39
|
+
|
|
40
|
+
> [!TIP]
|
|
41
|
+
> If you only have 5 minutes: read [`start-here.md`](./start-here.md). If you only need runtime setup: read [`external-runtime-setup.md`](./external-runtime-setup.md).
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## 🧭 Navigation by job
|
|
46
|
+
|
|
47
|
+
| Job | Start with | Then read |
|
|
48
|
+
|---|---|---|
|
|
49
|
+
| Understand the product | [`product-direction.md`](./product-direction.md) | [`architecture.md`](./architecture.md), [`reference-runtime.md`](./reference-runtime.md) |
|
|
50
|
+
| Set up Blender runtime | [`external-runtime-setup.md`](./external-runtime-setup.md) | [`runtime-stack-strategy.md`](./runtime-stack-strategy.md), [`reference-runtime.md`](./reference-runtime.md), [`unofficial-runtime-bridges.md`](./unofficial-runtime-bridges.md), [`../laws/official-runtime-only.md`](../laws/official-runtime-only.md) |
|
|
51
|
+
| Review workflow behavior | [`workflow-contract.md`](./workflow-contract.md) | [`first-user-journey.md`](./first-user-journey.md), [`safety-model.md`](./safety-model.md) |
|
|
52
|
+
| Search 3D domain knowledge & canonical recipes | [`knowledge-and-recipe-catalog.md`](./knowledge-and-recipe-catalog.md) | [`../registry/knowledge-catalog.json`](../registry/knowledge-catalog.json), [`../registry/recipe-catalog.json`](../registry/recipe-catalog.json), [`audits/skill-architecture-audit.md`](./audits/skill-architecture-audit.md) |
|
|
53
|
+
| Install BlendOps into a tool | [`ai-agent-quickstart.md`](./ai-agent-quickstart.md) | [`ai-agent-install-flow.md`](./ai-agent-install-flow.md), [`install-scopes.md`](./install-scopes.md), [`multi-agent-install-strategy.md`](./multi-agent-install-strategy.md), [`adapters/README.md`](./adapters/README.md), [`install/README.md`](./install/README.md) |
|
|
54
|
+
| Inspect a GLB & integrate into Three.js / React Three Fiber | [`examples/glb-web-handoff/README.md`](./examples/glb-web-handoff/README.md) | [`../skills/glb-web-handoff/SKILL.md`](../skills/glb-web-handoff/SKILL.md), [`../schemas/glb-web-handoff-manifest.schema.json`](../schemas/glb-web-handoff-manifest.schema.json) |
|
|
55
|
+
| Check eval evidence & repository audit | [`evals/README.md`](./evals/README.md) | [`audits/current/README.md`](./audits/current/README.md), [`audits/current/repository-inventory.json`](./audits/current/repository-inventory.json), [`release-readiness.md`](./release-readiness.md) |
|
|
56
|
+
| Review pack content | [`../packs/README.md`](../packs/README.md) | [`../skills/README.md`](../skills/README.md), [`workflows/README.md`](./workflows/README.md), [`recipes/README.md`](./recipes/README.md) |
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## 🧩 Core specs
|
|
61
|
+
|
|
62
|
+
| Area | Doc |
|
|
63
|
+
|---|---|
|
|
64
|
+
| Product direction | [`product-direction.md`](./product-direction.md) |
|
|
65
|
+
| Architecture | [`architecture.md`](./architecture.md) |
|
|
66
|
+
| Skill system | [`skill-system.md`](./skill-system.md) |
|
|
67
|
+
| Knowledge & recipe catalog | [`knowledge-and-recipe-catalog.md`](./knowledge-and-recipe-catalog.md) |
|
|
68
|
+
| 48-skill & 151-reference architecture audit | [`audits/skill-architecture-audit.md`](./audits/skill-architecture-audit.md) |
|
|
69
|
+
| Workflow contract | [`workflow-contract.md`](./workflow-contract.md) |
|
|
70
|
+
| Safety model | [`safety-model.md`](./safety-model.md) |
|
|
71
|
+
| First user journey | [`first-user-journey.md`](./first-user-journey.md) |
|
|
72
|
+
| Golden path (cyberpunk shoe) | [`golden-path-cyberpunk-shoe.md`](./golden-path-cyberpunk-shoe.md) |
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## 🧭 Runtime (2-path + CLI appendix model)
|
|
77
|
+
|
|
78
|
+
| Area | Doc |
|
|
79
|
+
|---|---|
|
|
80
|
+
| Path strategy + corrected attribution history | [`runtime-stack-strategy.md`](./runtime-stack-strategy.md) |
|
|
81
|
+
| External setup walkthrough | [`external-runtime-setup.md`](./external-runtime-setup.md) |
|
|
82
|
+
| Runtime boundary summary | [`reference-runtime.md`](./reference-runtime.md) |
|
|
83
|
+
| Path 2 caveats (community `mcp-for-blender`) | [`unofficial-runtime-bridges.md`](./unofficial-runtime-bridges.md) |
|
|
84
|
+
| Blender version compatibility matrix (`3.6 LTS`, `4.2 LTS`, `5.1+`) | [`blender-version-compatibility.md`](./blender-version-compatibility.md) |
|
|
85
|
+
| Claude app/Desktop setup notes | [`claude-app-setup.md`](./claude-app-setup.md) |
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## 📦 Install + adoption
|
|
90
|
+
|
|
91
|
+
| Area | Doc |
|
|
92
|
+
|---|---|
|
|
93
|
+
| AI agent quickstart (paste-this-prompt) | [`ai-agent-quickstart.md`](./ai-agent-quickstart.md) |
|
|
94
|
+
| AI agent install flow (Mode A/B/C) | [`ai-agent-install-flow.md`](./ai-agent-install-flow.md) |
|
|
95
|
+
| Install scopes (project-local / tool-native / generic-root / user-global / docs-only) | [`install-scopes.md`](./install-scopes.md) |
|
|
96
|
+
| Per-target install index | [`install/README.md`](./install/README.md) |
|
|
97
|
+
| Multi-agent install strategy | [`multi-agent-install-strategy.md`](./multi-agent-install-strategy.md) |
|
|
98
|
+
| Distribution strategy | [`distribution-strategy.md`](./distribution-strategy.md) |
|
|
99
|
+
| Adapter index | [`adapters/README.md`](./adapters/README.md) |
|
|
100
|
+
| Adapter registry (promotion ladder) | [`adapter-registry.md`](./adapter-registry.md) |
|
|
101
|
+
| Capability profile schema | [`capability-profile.md`](./capability-profile.md) |
|
|
102
|
+
| Local installer & CLI spec | [`install/installer-spec.md`](./install/installer-spec.md) |
|
|
103
|
+
| Bundle: canonical portable skill package | [`../bundles/skill-package/README.md`](../bundles/skill-package/README.md) |
|
|
104
|
+
| Bundle: Claude Desktop manual import | [`../bundles/claude-desktop-manual/README.md`](../bundles/claude-desktop-manual/README.md) |
|
|
105
|
+
| Bundle: generic project-local fallback | [`../bundles/generic-project-local/README.md`](../bundles/generic-project-local/README.md) |
|
|
106
|
+
| Example: agent install prompts | [`examples/agent-install-prompt.md`](./examples/agent-install-prompt.md) |
|
|
107
|
+
| Example: `BLENDOPS.md` root template | [`examples/blendops-root-entrypoint.md`](./examples/blendops-root-entrypoint.md) |
|
|
108
|
+
| Example: Claude app project instructions | [`examples/claude-app-project-instructions.md`](./examples/claude-app-project-instructions.md) |
|
|
109
|
+
| Example: GLB web handoff & Three.js / R3F viewer integration | [`examples/glb-web-handoff/README.md`](./examples/glb-web-handoff/README.md) |
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## 📂 Per-target install docs (26 targets total)
|
|
114
|
+
|
|
115
|
+
3 consumer types: **chat UI** (Claude Desktop), **coding agents** (21 — Claude Code through Amazon Q Developer), **local LLM runners** (3 — Ollama / LM Studio / Open WebUI). Plus a generic project-local fallback.
|
|
116
|
+
|
|
117
|
+
### 1) Chat UI with Skills upload
|
|
118
|
+
|
|
119
|
+
| Target | Doc | Selected mode | Confidence |
|
|
120
|
+
|---|---|---|---|
|
|
121
|
+
| Claude Desktop / Claude.ai | [`install/claude-desktop.md`](./install/claude-desktop.md) | multiple Skills ZIP preparation | linked-only / manual |
|
|
122
|
+
|
|
123
|
+
### 2) Coding agents (project-local install + can host MCP for Blender)
|
|
124
|
+
|
|
125
|
+
All 21 accept BlendOps via project-local files and can host MCP for Blender via Path 1 host (b) Lab MCP or Path 2 community `mcp-for-blender`. They differ in MCP config syntax and native-skill-loader maturity.
|
|
126
|
+
|
|
127
|
+
| Target | Doc | Selected mode | Confidence |
|
|
128
|
+
|---|---|---|---|
|
|
129
|
+
| Claude Code | [`install/claude-code.md`](./install/claude-code.md) | project-local install | verified-read for project-local adapter |
|
|
130
|
+
| OpenCode | [`install/opencode.md`](./install/opencode.md) | project-local install | linked-only |
|
|
131
|
+
| Cursor | [`install/cursor.md`](./install/cursor.md) | project-local install | linked-only |
|
|
132
|
+
| Codex CLI/App | [`install/codex.md`](./install/codex.md) | project-local install | linked-only |
|
|
133
|
+
| Gemini CLI | [`install/gemini.md`](./install/gemini.md) | project-local install | not researched |
|
|
134
|
+
| Antigravity (Google) | [`install/antigravity.md`](./install/antigravity.md) | project-local install | linked-only |
|
|
135
|
+
| GitHub Copilot | [`install/github-copilot.md`](./install/github-copilot.md) | project-local install | linked-only / generic |
|
|
136
|
+
| Cline (VS Code) | [`install/cline.md`](./install/cline.md) | project-local install | linked-only |
|
|
137
|
+
| Roo Code (VS Code) | [`install/roo-code.md`](./install/roo-code.md) | project-local install | linked-only |
|
|
138
|
+
| Blackbox AI (VS Code) | [`install/blackbox-ai.md`](./install/blackbox-ai.md) | project-local install | linked-only |
|
|
139
|
+
| Continue.dev | [`install/continue.md`](./install/continue.md) | project-local install | linked-only |
|
|
140
|
+
| Zed editor | [`install/zed.md`](./install/zed.md) | project-local install | linked-only |
|
|
141
|
+
| Windsurf (Codeium) | [`install/windsurf.md`](./install/windsurf.md) | project-local install | linked-only |
|
|
142
|
+
| Trae (ByteDance) | [`install/trae.md`](./install/trae.md) | project-local install | linked-only |
|
|
143
|
+
| Augment Code | [`install/augment-code.md`](./install/augment-code.md) | project-local install | linked-only |
|
|
144
|
+
| goose (Block) | [`install/goose.md`](./install/goose.md) | docs-only + Standard IO extension | linked-only — has upstream Blender tutorial |
|
|
145
|
+
| OpenHands | [`install/openhands.md`](./install/openhands.md) | project-local install | linked-only |
|
|
146
|
+
| JetBrains Junie / AI Assistant | [`install/jetbrains-junie.md`](./install/jetbrains-junie.md) | project-local install | linked-only |
|
|
147
|
+
| Sourcegraph Cody | [`install/sourcegraph-cody.md`](./install/sourcegraph-cody.md) | project-local install | linked-only |
|
|
148
|
+
| Aider (terminal) | [`install/aider.md`](./install/aider.md) | project-local install | linked-only |
|
|
149
|
+
| Amazon Q Developer CLI | [`install/amazon-q-developer.md`](./install/amazon-q-developer.md) | project-local install | linked-only |
|
|
150
|
+
|
|
151
|
+
### 3) Local LLM runners (docs-only; runner hosts MCP for Blender)
|
|
152
|
+
|
|
153
|
+
| Target | Doc | Selected mode | Confidence |
|
|
154
|
+
|---|---|---|---|
|
|
155
|
+
| Ollama | [`install/ollama.md`](./install/ollama.md) | docs-only + `~/.ollama/mcp-servers.json` (experimental) | linked-only / experimental |
|
|
156
|
+
| LM Studio | [`install/lm-studio.md`](./install/lm-studio.md) | docs-only + `mcp.json` (Cursor-compatible) | linked-only |
|
|
157
|
+
| Open WebUI | [`install/open-webui.md`](./install/open-webui.md) | docs-only + Streamable HTTP MCP | linked-only |
|
|
158
|
+
|
|
159
|
+
### Generic / future
|
|
160
|
+
|
|
161
|
+
| Target | Doc | Selected mode | Confidence |
|
|
162
|
+
|---|---|---|---|
|
|
163
|
+
| Generic project | [`install/generic-project.md`](./install/generic-project.md) | project-local install fallback | verified-read fallback |
|
|
164
|
+
| Local installer & CLI spec | [`install/installer-spec.md`](./install/installer-spec.md) | local CLI & tarball (`bin/blendops.mjs`, `scripts/install-skills.mjs`) | Public-release ready; initial npm stage pending approval |
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## ⚖️ Laws
|
|
169
|
+
|
|
170
|
+
| Law | Doc |
|
|
171
|
+
|---|---|
|
|
172
|
+
| Index | [`../laws/README.md`](../laws/README.md) |
|
|
173
|
+
| Official runtime only | [`../laws/official-runtime-only.md`](../laws/official-runtime-only.md) |
|
|
174
|
+
| No arbitrary Python interface | [`../laws/no-arbitrary-python-interface.md`](../laws/no-arbitrary-python-interface.md) |
|
|
175
|
+
| Evidence before done | [`../laws/evidence-before-done.md`](../laws/evidence-before-done.md) |
|
|
176
|
+
| Non-Blender-user language | [`../laws/non-blender-user-language.md`](../laws/non-blender-user-language.md) |
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## 🛠️ Skills (48 portable skills — canonical index)
|
|
181
|
+
|
|
182
|
+
The grouped inventory, depth status, eval links, and references live in [`../skills/README.md`](../skills/README.md). Baseline + expansion batches cover planning, readiness, evidence, web 3D handoff, focused quality validators, domain scene planners, process discipline, asset/sourcing, color/format/output decisions, recipe/pack operations, and runtime path discipline.
|
|
183
|
+
|
|
184
|
+
| Skill | Doc | Group |
|
|
185
|
+
|---|---|---|
|
|
186
|
+
| **Full inventory (48)** | [`../skills/README.md`](../skills/README.md) | Index |
|
|
187
|
+
|
|
188
|
+
Legacy quick links below cover only the **baseline 16**; the [`skills/README.md`](../skills/README.md) index lists all **48** skills by batch.
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
### Baseline 16 (historic quick links)
|
|
193
|
+
|
|
194
|
+
| Skill | Doc | Group |
|
|
195
|
+
|---|---|---|
|
|
196
|
+
| Index + how to add a new skill | [`../skills/README.md`](../skills/README.md) | — |
|
|
197
|
+
| `blendops-help` (router) | [`../skills/blendops-help/SKILL.md`](../skills/blendops-help/SKILL.md) | Help |
|
|
198
|
+
| `blender-brainstorming` (Superpowers `/brainstorming` analog) | [`../skills/blender-brainstorming/SKILL.md`](../skills/blender-brainstorming/SKILL.md) | Process |
|
|
199
|
+
| `intent-to-3d-brief-writer` (BMad analysis-phase analog) | [`../skills/intent-to-3d-brief-writer/SKILL.md`](../skills/intent-to-3d-brief-writer/SKILL.md) | Process |
|
|
200
|
+
| `asset-discovery` | [`../skills/asset-discovery/SKILL.md`](../skills/asset-discovery/SKILL.md) | Process |
|
|
201
|
+
| `runtime-setup` | [`../skills/runtime-setup/SKILL.md`](../skills/runtime-setup/SKILL.md) | Runtime |
|
|
202
|
+
| `runtime-readiness` | [`../skills/runtime-readiness/SKILL.md`](../skills/runtime-readiness/SKILL.md) | Runtime |
|
|
203
|
+
| `bridge-conflicts` (Single-bridge constraint) | [`../skills/bridge-conflicts/SKILL.md`](../skills/bridge-conflicts/SKILL.md) | Runtime |
|
|
204
|
+
| `product-hero-scene-planner` | [`../skills/product-hero-scene-planner/SKILL.md`](../skills/product-hero-scene-planner/SKILL.md) | Planning |
|
|
205
|
+
| `camera-composition` | [`../skills/camera-composition/SKILL.md`](../skills/camera-composition/SKILL.md) | Planning |
|
|
206
|
+
| `lighting-material-plan` | [`../skills/lighting-material-plan/SKILL.md`](../skills/lighting-material-plan/SKILL.md) | Planning |
|
|
207
|
+
| `scene-readiness` | [`../skills/scene-readiness/SKILL.md`](../skills/scene-readiness/SKILL.md) | Quality |
|
|
208
|
+
| `blender-troubleshooting` (Superpowers `/systematic-debugging` analog) | [`../skills/blender-troubleshooting/SKILL.md`](../skills/blender-troubleshooting/SKILL.md) | Quality |
|
|
209
|
+
| `render-export-evidence` | [`../skills/render-export-evidence/SKILL.md`](../skills/render-export-evidence/SKILL.md) | Evidence |
|
|
210
|
+
| `pre-handoff-verification` (Superpowers `/verification-before-completion` analog) | [`../skills/pre-handoff-verification/SKILL.md`](../skills/pre-handoff-verification/SKILL.md) | Evidence |
|
|
211
|
+
| `glb-web-handoff` | [`../skills/glb-web-handoff/SKILL.md`](../skills/glb-web-handoff/SKILL.md) | Handoff |
|
|
212
|
+
| `plain-language-response` | [`../skills/plain-language-response/SKILL.md`](../skills/plain-language-response/SKILL.md) | Handoff |
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
## 📦 Packs
|
|
217
|
+
|
|
218
|
+
| Pack | Doc |
|
|
219
|
+
|---|---|
|
|
220
|
+
| Index | [`../packs/README.md`](../packs/README.md) |
|
|
221
|
+
| `product-hero-v0` | [`../packs/product-hero-v0/PACK.md`](../packs/product-hero-v0/PACK.md) |
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## 🔁 Workflows + recipes
|
|
226
|
+
|
|
227
|
+
| Area | Doc |
|
|
228
|
+
|---|---|
|
|
229
|
+
| Workflows index | [`workflows/README.md`](./workflows/README.md) |
|
|
230
|
+
| **Full non-Blender-user workflow** (canonical **baseline 16** chain; extend with `workflow-stage-router` + [`skills/README.md`](../skills/README.md) for all 48) | [`workflows/full-non-blender-user-workflow.md`](./workflows/full-non-blender-user-workflow.md) |
|
|
231
|
+
| Product hero workflow (narrower subset, 5 stages) | [`workflows/product-hero-workflow.md`](./workflows/product-hero-workflow.md) |
|
|
232
|
+
| Recipes index | [`recipes/README.md`](./recipes/README.md) |
|
|
233
|
+
| Cyberpunk shoe hero recipe | [`recipes/cyberpunk-shoe-hero.md`](./recipes/cyberpunk-shoe-hero.md) |
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
## 🧪 Evals + readiness
|
|
238
|
+
|
|
239
|
+
| Area | Doc | Status |
|
|
240
|
+
|---|---|---|
|
|
241
|
+
| Evals index | [`evals/README.md`](./evals/README.md) | Active eval index |
|
|
242
|
+
| Path 1 read-only smoke test (likely Anthropic Connector host) | [`evals/blender-connector-read-only-smoke-test.md`](./evals/blender-connector-read-only-smoke-test.md) | Pass / Available |
|
|
243
|
+
| Cyberpunk shoe v0 text-only eval | [`evals/cyberpunk-shoe-hero-v0-text-eval.md`](./evals/cyberpunk-shoe-hero-v0-text-eval.md) | Executed / Text-only |
|
|
244
|
+
| Cyberpunk shoe v0 manual eval protocol | [`evals/cyberpunk-shoe-hero-v0-manual-eval.md`](./evals/cyberpunk-shoe-hero-v0-manual-eval.md) | Protocol / Not yet executed |
|
|
245
|
+
| Cyberpunk shoe v0 runtime eval | [`evals/cyberpunk-shoe-hero-v0-runtime-eval.md`](./evals/cyberpunk-shoe-hero-v0-runtime-eval.md) | Historical / Blocked |
|
|
246
|
+
| Manual install beta v0 | [`evals/manual-install-beta-v0.md`](./evals/manual-install-beta-v0.md) | Executed / Dry-run / Warn |
|
|
247
|
+
| Adapter install v0 dry-run | [`evals/adapter-install-v0-dry-run.md`](./evals/adapter-install-v0-dry-run.md) | Executed / Dry-run |
|
|
248
|
+
| Skill package upload-readiness v0 | [`evals/skill-package-upload-readiness-v0.md`](./evals/skill-package-upload-readiness-v0.md) | Executed / Text-only / No upload / Warn |
|
|
249
|
+
| Official runtime verification criteria | [`evals/official-runtime-verification-criteria.md`](./evals/official-runtime-verification-criteria.md) | Prepared |
|
|
250
|
+
| Runtime availability checklist | [`evals/runtime-availability-checklist.md`](./evals/runtime-availability-checklist.md) | Prepared |
|
|
251
|
+
| Official runtime manual eval packet | [`evals/official-runtime-manual-eval-packet.md`](./evals/official-runtime-manual-eval-packet.md) | Prepared |
|
|
252
|
+
| Release readiness status | [`release-readiness.md`](./release-readiness.md) | v1.0.0 (Production) |
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
## 🧪 Skill reviews + reports
|
|
257
|
+
|
|
258
|
+
| Area | Doc |
|
|
259
|
+
|---|---|
|
|
260
|
+
| Index | [`../skill-reviews/README.md`](../skill-reviews/README.md) |
|
|
261
|
+
| Review gates | [`../skill-reviews/review-gates.md`](../skill-reviews/review-gates.md) |
|
|
262
|
+
| Acceptance criteria | [`../skill-reviews/acceptance-criteria.md`](../skill-reviews/acceptance-criteria.md) |
|
|
263
|
+
| Skill template | [`../skill-reviews/blendops-skill-template.md`](../skill-reviews/blendops-skill-template.md) |
|
|
264
|
+
| Depth standard | [`../skill-reviews/depth-standard.md`](../skill-reviews/depth-standard.md) |
|
|
265
|
+
| v0 depth audit report | [`../skill-reviews/reports/v0-skill-depth-audit.md`](../skill-reviews/reports/v0-skill-depth-audit.md) |
|
|
266
|
+
| v0 skill gate review report | [`../skill-reviews/reports/v0-skill-gate-review.md`](../skill-reviews/reports/v0-skill-gate-review.md) |
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
## ⚠️ Non-claims preserved
|
|
271
|
+
|
|
272
|
+
- BlendOps does not install Blender, configure the Anthropic Blender Connector, configure the Blender Lab MCP add-on, configure the community `mcp-for-blender` stack, or run Blender.
|
|
273
|
+
- Read-only smoke evidence is not mutation/render/export evidence.
|
|
274
|
+
- CLI fallback is **documented upstream** as a first-class Blender CLI surface; no in-repo evidence file yet.
|
|
275
|
+
- No official marketplace/plugin listing is claimed. The npm CLI and skills.sh Agent Skills source are publicly available; Blender runtime execution and generated artifacts remain separately evidence-gated.
|
|
276
|
+
- See [`release-readiness.md`](./release-readiness.md) for the full readiness state.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blendops",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "AI-native Blender workflow, knowledge catalog, and portable skill pack for non-Blender users. Ships 48 Anthropic Skills, 4
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "AI-native Blender workflow, knowledge catalog, and portable skill pack for non-Blender users. Ships 48 Anthropic Skills, 4 laws, 10 recipes, SceneSpec compilation, MCP qualification, and GLB inspection.",
|
|
5
5
|
"homepage": "https://github.com/ThanhNguyxnOrg/blendops#readme",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
"workflow",
|
|
25
25
|
"3d",
|
|
26
26
|
"glb",
|
|
27
|
+
"gltf",
|
|
28
|
+
"pbr",
|
|
29
|
+
"scene-spec",
|
|
27
30
|
"non-blender-user"
|
|
28
31
|
],
|
|
29
32
|
"engines": {
|
|
@@ -82,11 +85,12 @@
|
|
|
82
85
|
"glb:handoff": "node scripts/generate-glb-handoff-report.mjs",
|
|
83
86
|
"arch:build": "node scripts/validate-repository-architecture.mjs",
|
|
84
87
|
"arch:check": "node scripts/validate-repository-architecture.mjs --check",
|
|
85
|
-
"test": "node --test scripts/test-skills-export.mjs scripts/test-routing-contracts.mjs scripts/test-behavioral-evals.mjs scripts/test-skill-templates.mjs scripts/test-catalog-contracts.mjs scripts/test-eval-coverage.mjs scripts/test-adapter-matrix.mjs scripts/test-bundle-summaries.mjs scripts/test-dev-server.mjs scripts/test-project-installer.mjs scripts/test-cli-package.mjs scripts/test-glb-handoff.mjs scripts/test-repository-architecture.mjs scripts/test-knowledge-catalog.mjs scripts/test-scene-spec-harmonizer.mjs scripts/test-runtime-orchestrator.mjs scripts/test-runtime-hardening.mjs scripts/test-mcp-qualification.mjs scripts/test-mcp-client-skills-sh.mjs",
|
|
88
|
+
"test": "node --test scripts/test-skills-export.mjs scripts/test-routing-contracts.mjs scripts/test-behavioral-evals.mjs scripts/test-skill-templates.mjs scripts/test-catalog-contracts.mjs scripts/test-eval-coverage.mjs scripts/test-adapter-matrix.mjs scripts/test-bundle-summaries.mjs scripts/test-dev-server.mjs scripts/test-project-installer.mjs scripts/test-cli-package.mjs scripts/test-glb-handoff.mjs scripts/test-repository-architecture.mjs scripts/test-knowledge-catalog.mjs scripts/test-scene-spec-harmonizer.mjs scripts/test-runtime-orchestrator.mjs scripts/test-live-runtime-eval.mjs scripts/test-runtime-hardening.mjs scripts/test-mcp-qualification.mjs scripts/test-mcp-client-skills-sh.mjs scripts/test-distribution-metadata.mjs",
|
|
86
89
|
"docs:check": "node scripts/check-docs.mjs",
|
|
87
90
|
"skills:export": "node scripts/export-claude-skills.mjs",
|
|
88
|
-
"ci": "npm run docs:check && npm run catalog:check && npm run operations:check && npm run arch:check && npm run registry:check && npm run evals:check && npm run evals:run && npm run bundles:summaries:check && npm run skills:export && npm test",
|
|
89
|
-
"audit:sync-digest": "node scripts/sync-current-audit-digest.mjs"
|
|
91
|
+
"ci": "npm run distribution:check && npm run docs:check && npm run catalog:check && npm run operations:check && npm run arch:check && npm run registry:check && npm run evals:check && npm run evals:run && npm run bundles:summaries:check && npm run skills:export && npm test",
|
|
92
|
+
"audit:sync-digest": "node scripts/sync-current-audit-digest.mjs",
|
|
93
|
+
"distribution:check": "node scripts/audit-distribution-metadata.mjs --local"
|
|
90
94
|
},
|
|
91
95
|
"dependencies": {
|
|
92
96
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
@@ -122,7 +122,7 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
122
122
|
const __dirname = path.dirname(__filename);
|
|
123
123
|
const DEFAULT_REPO_ROOT = path.resolve(__dirname, '..');
|
|
124
124
|
|
|
125
|
-
export const INSTALLER_VERSION = '1.
|
|
125
|
+
export const INSTALLER_VERSION = '1.1.0';
|
|
126
126
|
export const MANAGED_SECTION_START = '<!-- blendops:installer:start -->';
|
|
127
127
|
export const MANAGED_SECTION_END = '<!-- blendops:installer:end -->';
|
|
128
128
|
|
|
@@ -1440,7 +1440,7 @@ export function validateSkillsShConfig(repoRoot = DEFAULT_REPO_ROOT) {
|
|
|
1440
1440
|
if (!fs.existsSync(configPath)) {
|
|
1441
1441
|
return {
|
|
1442
1442
|
valid: false,
|
|
1443
|
-
errors: [
|
|
1443
|
+
errors: ['Missing skills.sh.json at ' + configPath],
|
|
1444
1444
|
groupCount: 0,
|
|
1445
1445
|
skillCount: 0,
|
|
1446
1446
|
skills: [],
|
|
@@ -1453,7 +1453,7 @@ export function validateSkillsShConfig(repoRoot = DEFAULT_REPO_ROOT) {
|
|
|
1453
1453
|
} catch (err) {
|
|
1454
1454
|
return {
|
|
1455
1455
|
valid: false,
|
|
1456
|
-
errors: [
|
|
1456
|
+
errors: ['Invalid JSON in skills.sh.json: ' + err.message],
|
|
1457
1457
|
groupCount: 0,
|
|
1458
1458
|
skillCount: 0,
|
|
1459
1459
|
skills: [],
|
|
@@ -1465,30 +1465,51 @@ export function validateSkillsShConfig(repoRoot = DEFAULT_REPO_ROOT) {
|
|
|
1465
1465
|
return { valid: false, errors, groupCount: 0, skillCount: 0, skills: [] };
|
|
1466
1466
|
}
|
|
1467
1467
|
|
|
1468
|
+
const allowedRootKeys = new Set(['$schema', 'schema', 'notGrouped', 'groupings', 'paths']);
|
|
1469
|
+
for (const key of Object.keys(parsed)) {
|
|
1470
|
+
if (!allowedRootKeys.has(key)) errors.push('Unknown top-level property in skills.sh.json: ' + key);
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1468
1473
|
if (parsed.$schema !== 'https://skills.sh/schemas/skills.sh.schema.json') {
|
|
1469
1474
|
errors.push(
|
|
1470
|
-
|
|
1475
|
+
"skills.sh.json $schema must be 'https://skills.sh/schemas/skills.sh.schema.json', got '" +
|
|
1476
|
+
String(parsed.$schema) + "'",
|
|
1471
1477
|
);
|
|
1472
1478
|
}
|
|
1479
|
+
|
|
1480
|
+
// Upstream schema enum is exactly "top" | "bottom"; "hide" is not valid.
|
|
1473
1481
|
if (
|
|
1474
1482
|
parsed.notGrouped !== undefined &&
|
|
1475
|
-
parsed.notGrouped !== '
|
|
1476
|
-
parsed.notGrouped !== '
|
|
1483
|
+
parsed.notGrouped !== 'top' &&
|
|
1484
|
+
parsed.notGrouped !== 'bottom'
|
|
1477
1485
|
) {
|
|
1478
1486
|
errors.push(
|
|
1479
|
-
|
|
1487
|
+
"skills.sh.json notGrouped must be 'top' or 'bottom', got '" + String(parsed.notGrouped) + "'",
|
|
1480
1488
|
);
|
|
1481
1489
|
}
|
|
1482
|
-
|
|
1490
|
+
|
|
1491
|
+
if (
|
|
1492
|
+
!Array.isArray(parsed.groupings) ||
|
|
1493
|
+
parsed.groupings.length < 1 ||
|
|
1494
|
+
parsed.groupings.length > 50
|
|
1495
|
+
) {
|
|
1483
1496
|
errors.push('skills.sh.json groupings must be a non-empty array with 1..50 groups');
|
|
1484
1497
|
}
|
|
1485
1498
|
|
|
1486
|
-
const
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1499
|
+
const skillsRoot = path.join(realRepoRoot, 'skills');
|
|
1500
|
+
const canonicalSkillDirs = new Set();
|
|
1501
|
+
if (!fs.existsSync(skillsRoot) || !fs.statSync(skillsRoot).isDirectory()) {
|
|
1502
|
+
errors.push('Missing canonical skills/ directory');
|
|
1503
|
+
} else {
|
|
1504
|
+
for (const entry of fs.readdirSync(skillsRoot, { withFileTypes: true })) {
|
|
1505
|
+
if (!entry.isDirectory() || entry.name === '_template') continue;
|
|
1506
|
+
canonicalSkillDirs.add(entry.name);
|
|
1507
|
+
const skillFile = path.join(skillsRoot, entry.name, 'SKILL.md');
|
|
1508
|
+
if (!fs.existsSync(skillFile) || !fs.statSync(skillFile).isFile()) {
|
|
1509
|
+
errors.push("Canonical skill directory '" + entry.name + "' is missing SKILL.md");
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1492
1513
|
|
|
1493
1514
|
const seenSkills = new Set();
|
|
1494
1515
|
const seenTitles = new Set();
|
|
@@ -1497,35 +1518,88 @@ export function validateSkillsShConfig(repoRoot = DEFAULT_REPO_ROOT) {
|
|
|
1497
1518
|
errors.push('Each entry in skills.sh.json groupings must be an object');
|
|
1498
1519
|
continue;
|
|
1499
1520
|
}
|
|
1500
|
-
|
|
1501
|
-
|
|
1521
|
+
|
|
1522
|
+
for (const key of Object.keys(group)) {
|
|
1523
|
+
if (!['title', 'description', 'skills'].includes(key)) {
|
|
1524
|
+
errors.push("Unknown property '" + key + "' in skills.sh.json group");
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
if (
|
|
1529
|
+
typeof group.title !== 'string' ||
|
|
1530
|
+
group.title.trim().length === 0 ||
|
|
1531
|
+
group.title.length > 120
|
|
1532
|
+
) {
|
|
1533
|
+
errors.push('Every group title must be a non-empty string of at most 120 characters');
|
|
1502
1534
|
} else if (seenTitles.has(group.title.trim())) {
|
|
1503
|
-
errors.push(
|
|
1535
|
+
errors.push("Duplicate group title in skills.sh.json: '" + group.title.trim() + "'");
|
|
1504
1536
|
} else {
|
|
1505
1537
|
seenTitles.add(group.title.trim());
|
|
1506
1538
|
}
|
|
1539
|
+
|
|
1540
|
+
if (
|
|
1541
|
+
group.description !== undefined &&
|
|
1542
|
+
(typeof group.description !== 'string' || group.description.length > 500)
|
|
1543
|
+
) {
|
|
1544
|
+
errors.push("Group '" + String(group.title) + "' description must be a string of at most 500 characters");
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1507
1547
|
if (!Array.isArray(group.skills) || group.skills.length < 1 || group.skills.length > 500) {
|
|
1508
|
-
errors.push(
|
|
1548
|
+
errors.push("Group '" + String(group.title) + "' must have 1..500 skill slugs");
|
|
1509
1549
|
continue;
|
|
1510
1550
|
}
|
|
1551
|
+
|
|
1511
1552
|
for (const slug of group.skills) {
|
|
1512
|
-
if (
|
|
1513
|
-
|
|
1553
|
+
if (
|
|
1554
|
+
typeof slug !== 'string' ||
|
|
1555
|
+
slug.length < 1 ||
|
|
1556
|
+
slug.length > 120 ||
|
|
1557
|
+
!/^[a-z0-9-]+$/.test(slug)
|
|
1558
|
+
) {
|
|
1559
|
+
errors.push("Invalid skill slug '" + String(slug) + "' in group '" + String(group.title) + "'");
|
|
1514
1560
|
continue;
|
|
1515
1561
|
}
|
|
1516
|
-
if (seenSkills.has(slug))
|
|
1517
|
-
errors.push(`Duplicate skill slug '${slug}' across skills.sh.json groupings`);
|
|
1518
|
-
}
|
|
1562
|
+
if (seenSkills.has(slug)) errors.push("Duplicate skill slug '" + slug + "' across skills.sh.json groupings");
|
|
1519
1563
|
seenSkills.add(slug);
|
|
1520
1564
|
if (!canonicalSkillDirs.has(slug)) {
|
|
1521
|
-
errors.push(
|
|
1565
|
+
errors.push("Skill slug '" + slug + "' in skills.sh.json does not exist under skills/" + slug + "/SKILL.md");
|
|
1522
1566
|
}
|
|
1523
1567
|
}
|
|
1524
1568
|
}
|
|
1525
1569
|
|
|
1570
|
+
// BlendOps requires every canonical skill to have an explicit curated group.
|
|
1571
|
+
// Do not rely on skills.sh's generic notGrouped fallback for newly added skills.
|
|
1526
1572
|
for (const canonical of [...canonicalSkillDirs].sort(compareCodeUnitOrder)) {
|
|
1527
1573
|
if (!seenSkills.has(canonical)) {
|
|
1528
|
-
errors.push(
|
|
1574
|
+
errors.push("Canonical skill '" + canonical + "' is missing from skills.sh.json groupings");
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
if (parsed.paths !== undefined) {
|
|
1579
|
+
if (!Array.isArray(parsed.paths) || parsed.paths.length < 1) {
|
|
1580
|
+
errors.push('skills.sh.json paths must be a non-empty array when specified');
|
|
1581
|
+
} else {
|
|
1582
|
+
const seenPaths = new Set();
|
|
1583
|
+
for (const entry of parsed.paths) {
|
|
1584
|
+
if (typeof entry !== 'string' || !/^\.\/[^\\]+$/.test(entry)) {
|
|
1585
|
+
errors.push("Invalid skills.sh.json search path '" + String(entry) + "' (expected ./relative/path)");
|
|
1586
|
+
continue;
|
|
1587
|
+
}
|
|
1588
|
+
const segments = entry.slice(2).split('/');
|
|
1589
|
+
if (segments.some((segment) => !segment || segment === '.' || segment === '..')) {
|
|
1590
|
+
errors.push("Unsafe skills.sh.json search path '" + entry + "'");
|
|
1591
|
+
continue;
|
|
1592
|
+
}
|
|
1593
|
+
if (seenPaths.has(entry)) errors.push("Duplicate skills.sh.json search path '" + entry + "'");
|
|
1594
|
+
seenPaths.add(entry);
|
|
1595
|
+
const resolved = path.resolve(realRepoRoot, entry.slice(2));
|
|
1596
|
+
const relative = path.relative(realRepoRoot, resolved);
|
|
1597
|
+
if (relative.startsWith('..') || path.isAbsolute(relative)) {
|
|
1598
|
+
errors.push("skills.sh.json search path escapes repository: '" + entry + "'");
|
|
1599
|
+
} else if (!fs.existsSync(resolved) || !fs.statSync(resolved).isDirectory()) {
|
|
1600
|
+
errors.push("skills.sh.json search path is not an existing directory: '" + entry + "'");
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1529
1603
|
}
|
|
1530
1604
|
}
|
|
1531
1605
|
|
|
@@ -2685,7 +2759,7 @@ export function formatInstallerHelp() {
|
|
|
2685
2759
|
...targetLines,
|
|
2686
2760
|
'',
|
|
2687
2761
|
'Boundaries:',
|
|
2688
|
-
'-
|
|
2762
|
+
'- Public npm CLI (blendops@1.0.0) and GitHub Agent Skills source (listed on skills.sh); no official marketplace listing, Blender install, or MCP setup.',
|
|
2689
2763
|
'- Global files touched: No',
|
|
2690
2764
|
'- Runtime status: Not Run',
|
|
2691
2765
|
'- Artifact status: Not Produced',
|
|
@@ -17,9 +17,10 @@ import fs from 'node:fs';
|
|
|
17
17
|
import os from 'node:os';
|
|
18
18
|
import path from 'node:path';
|
|
19
19
|
import crypto from 'node:crypto';
|
|
20
|
-
import { spawn } from 'node:child_process';
|
|
20
|
+
import { spawn, spawnSync } from 'node:child_process';
|
|
21
21
|
import { fileURLToPath } from 'node:url';
|
|
22
22
|
import Ajv2020 from 'ajv/dist/2020.js';
|
|
23
|
+
import { inspectGlbBuffer } from './inspect-glb.mjs';
|
|
23
24
|
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
24
25
|
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
|
|
25
26
|
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
@@ -46,6 +47,67 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
46
47
|
const __dirname = path.dirname(__filename);
|
|
47
48
|
const DEFAULT_REPO_ROOT = path.resolve(__dirname, '..');
|
|
48
49
|
|
|
50
|
+
export function runCliFallbackEval({ sceneSpecPath, recipePath, workDir, blender = 'blender', blenderArgs = [] }) {
|
|
51
|
+
const compiled = compileExecutionPlan(sceneSpecPath);
|
|
52
|
+
if (!compiled.ok || !compiled.plan.can_proceed_to_runtime) {
|
|
53
|
+
throw new Error(`SceneSpec/ExecutionPlan rejected: ${JSON.stringify(compiled.validation)}`);
|
|
54
|
+
}
|
|
55
|
+
if (!compiled.validation.spec.runtime_preference.allow_cli_fallback) {
|
|
56
|
+
throw new Error('SceneSpec does not permit CLI fallback');
|
|
57
|
+
}
|
|
58
|
+
const dir = path.resolve(workDir);
|
|
59
|
+
fs.mkdirSync(dir, { recursive: false });
|
|
60
|
+
const blendPath = path.join(dir, 'scene.blend');
|
|
61
|
+
const checkpointPath = path.join(dir, 'checkpoint.blend');
|
|
62
|
+
const glbPath = path.join(dir, 'actuator.glb');
|
|
63
|
+
const commands = [];
|
|
64
|
+
const run = (name, source) => {
|
|
65
|
+
const script = path.join(dir, `${name}.py`);
|
|
66
|
+
fs.writeFileSync(script, source);
|
|
67
|
+
const args = [...blenderArgs, '--background', '--factory-startup', '--python-exit-code', '1', '--python', script];
|
|
68
|
+
const result = spawnSync(blender, args, { encoding: 'utf8', timeout: 300000, maxBuffer: 16 * 1024 * 1024 });
|
|
69
|
+
commands.push({ executable: blender, args, status: result.status, stdout: result.stdout, stderr: result.stderr });
|
|
70
|
+
if (result.error || result.status !== 0) throw new Error(`${name} failed: ${result.error?.message || result.stderr || result.stdout}`);
|
|
71
|
+
};
|
|
72
|
+
const isSymlink = (file) => { try { return fs.lstatSync(file).isSymbolicLink(); } catch { return false; } };
|
|
73
|
+
const hash = (file) => crypto.createHash('sha256').update(fs.readFileSync(file)).digest('hex');
|
|
74
|
+
const summaryPath = path.join(dir, 'baseline.json');
|
|
75
|
+
const summaryExpression = "sorted((o.name, o.type) for o in bpy.data.objects)";
|
|
76
|
+
run('baseline', `import bpy, json\nbpy.ops.wm.save_as_mainfile(filepath=${JSON.stringify(blendPath)})\njson.dump(${summaryExpression}, open(${JSON.stringify(summaryPath)}, 'w'))\n`);
|
|
77
|
+
const safe = validateSafeBlendCheckpointPaths(blendPath, checkpointPath);
|
|
78
|
+
if (!safe.valid) throw new Error(safe.reason);
|
|
79
|
+
fs.copyFileSync(blendPath, checkpointPath, fs.constants.COPYFILE_EXCL);
|
|
80
|
+
const checkpointSha256 = hash(checkpointPath);
|
|
81
|
+
if (hash(blendPath) !== checkpointSha256) throw new Error('Checkpoint digest mismatch');
|
|
82
|
+
const report = { ok: false, blendPath, checkpointPath, checkpointSha256, glbPath, commands, rollback: null };
|
|
83
|
+
try {
|
|
84
|
+
run('recipe', `import bpy\nbpy.ops.wm.open_mainfile(filepath=${JSON.stringify(blendPath)})\nGLB_PATH=${JSON.stringify(glbPath)}\nBLEND_PATH=${JSON.stringify(blendPath)}\nexec(compile(open(${JSON.stringify(path.resolve(recipePath))}).read(), ${JSON.stringify(path.resolve(recipePath))}, 'exec'))\n`);
|
|
85
|
+
report.inspection = inspectGlbBuffer(fs.readFileSync(glbPath), { strictPositionBounds: true });
|
|
86
|
+
if (!report.inspection.valid) throw new Error(`GLB inspection failed: ${report.inspection.errors.join('; ')}`);
|
|
87
|
+
report.ok = true;
|
|
88
|
+
report.glbSha256 = hash(glbPath);
|
|
89
|
+
report.glbBytes = fs.statSync(glbPath).size;
|
|
90
|
+
} catch (error) {
|
|
91
|
+
report.error = error.message;
|
|
92
|
+
try {
|
|
93
|
+
const sceneMissing = !fs.existsSync(blendPath) && !isSymlink(blendPath);
|
|
94
|
+
const safeRestore = sceneMissing
|
|
95
|
+
? validateSafeBlendCheckpointPaths(checkpointPath)
|
|
96
|
+
: validateSafeBlendCheckpointPaths(blendPath, checkpointPath);
|
|
97
|
+
if (!safeRestore.valid) throw new Error(safeRestore.reason);
|
|
98
|
+
if (hash(checkpointPath) !== checkpointSha256) throw new Error('Checkpoint changed after mutation');
|
|
99
|
+
fs.copyFileSync(checkpointPath, blendPath, sceneMissing ? fs.constants.COPYFILE_EXCL : 0);
|
|
100
|
+
if (hash(blendPath) !== checkpointSha256) throw new Error('Restored digest mismatch');
|
|
101
|
+
run('readback', `import bpy, json\nbpy.ops.wm.open_mainfile(filepath=${JSON.stringify(blendPath)})\nassert json.loads(json.dumps(${summaryExpression})) == json.load(open(${JSON.stringify(summaryPath)}))\n`);
|
|
102
|
+
report.rollback = { verified: true, sha256: hash(blendPath) };
|
|
103
|
+
} catch (restoreError) {
|
|
104
|
+
report.rollback = { verified: false, error: restoreError.message, recoveryPath: checkpointPath };
|
|
105
|
+
}
|
|
106
|
+
fs.rmSync(glbPath, { force: true });
|
|
107
|
+
}
|
|
108
|
+
return report;
|
|
109
|
+
}
|
|
110
|
+
|
|
49
111
|
export const CLI_EXIT_CODES = Object.freeze({
|
|
50
112
|
SUCCESS: 0,
|
|
51
113
|
CLI_USAGE_OR_VALIDATION_ERROR: 1,
|
|
@@ -7649,4 +7711,3 @@ if (process.argv[1] && path.resolve(process.argv[1]) === __filename) {
|
|
|
7649
7711
|
process.exitCode = res.exitCode;
|
|
7650
7712
|
}
|
|
7651
7713
|
}
|
|
7652
|
-
|