janction-render 0.4.337__tar.gz → 0.4.339__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. {janction_render-0.4.337 → janction_render-0.4.339}/PKG-INFO +23 -5
  2. {janction_render-0.4.337 → janction_render-0.4.339}/README.md +22 -4
  3. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render/__init__.py +1 -1
  4. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render/brief.py +4 -2
  5. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render/cli.py +2 -2
  6. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render/mcp_common.py +7 -5
  7. janction_render-0.4.339/janction_render/package_check.py +77 -0
  8. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render/terms_defaults.py +3 -2
  9. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render/tooldocs.py +38 -7
  10. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render.egg-info/PKG-INFO +23 -5
  11. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render.egg-info/SOURCES.txt +1 -0
  12. {janction_render-0.4.337 → janction_render-0.4.339}/pyproject.toml +1 -1
  13. {janction_render-0.4.337 → janction_render-0.4.339}/LICENSE +0 -0
  14. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render/client.py +0 -0
  15. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render/decision_words.py +0 -0
  16. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render/desktop_notify.py +0 -0
  17. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render/hookup.py +0 -0
  18. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render/libplan.py +0 -0
  19. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render/links.py +0 -0
  20. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render/mcp_app.html +0 -0
  21. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render/mcp_server.py +0 -0
  22. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render/prompts.py +0 -0
  23. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render.egg-info/dependency_links.txt +0 -0
  24. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render.egg-info/entry_points.txt +0 -0
  25. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render.egg-info/requires.txt +0 -0
  26. {janction_render-0.4.337 → janction_render-0.4.339}/janction_render.egg-info/top_level.txt +0 -0
  27. {janction_render-0.4.337 → janction_render-0.4.339}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: janction-render
3
- Version: 0.4.337
3
+ Version: 0.4.339
4
4
  Summary: Cloud GPU rendering for Blender scenes and 3D models (GLB, FBX, USD, OBJ, STL), built for AI agents: MCP server (remote + stdio), HTTP API and CLI. Product shots, 360-degree turntables, animations and stills; preview in seconds with a critic; no local Blender or GPU. Free welcome credit for a new key. Current pricing and limits: https://render.janction.jp/pricing
5
5
  Author-email: "JasmyLab Inc." <contact@jasmylab.com>
6
6
  License-Expression: MIT
@@ -162,7 +162,7 @@ into the agent's skills directory (for example `~/.claude/skills/` or `~/.codex/
162
162
  ## Quick start
163
163
 
164
164
  **Claude.ai (nothing to install).** Plugins (older menu: Customize → Connectors) → Add custom connector → `https://render.janction.jp/mcp` → Connect (a free key
165
- is created on the consent page). **ChatGPT:** Plugins (left sidebar) → Add → Create plugin → the same URL (OAuth; on Business workspaces an admin adds it). Then paste:
165
+ is created on the consent page). **ChatGPT:** install [JANCTION Render from the plugin directory](https://chatgpt.com/plugins/plugin_asdk_app_6abd560972048191aa42f2cbb1980bd9) (Plugins → search "JANCTION Render" → Install plugin; on Business workspaces an admin may need to allow it). Then paste:
166
166
 
167
167
  > Render a preview of https://render.janction.jp/samples/cube_scene.py
168
168
 
@@ -329,7 +329,7 @@ in Claude Code: try_janction_render, render_my_scene, turntable_video, product_s
329
329
  |---|---|
330
330
  | Claude.ai (web, desktop, mobile) | Plugins (older menu: Customize → Connectors) → Add custom connector → paste the URL → Connect |
331
331
  | Claude Team / Enterprise | An owner adds the URL under Organization settings → Connectors; members press Connect. If the org turns Skills off, Claude Desktop blocks plugins from November 30, so use the connector URL |
332
- | ChatGPT | Settings → Connectors → Advanced → Developer mode → Create → paste the URL (OAuth) |
332
+ | ChatGPT | Plugins → search "JANCTION Render" → Install plugin ([plugin page](https://chatgpt.com/plugins/plugin_asdk_app_6abd560972048191aa42f2cbb1980bd9)) |
333
333
  | Claude Code | `claude mcp add --transport http janction-render https://render.janction.jp/mcp`, then `/mcp` to authenticate |
334
334
  | Codex | `codex mcp add janction-render --url https://render.janction.jp/mcp` |
335
335
  | Gemini CLI / Antigravity CLI | `gemini extensions install https://github.com/JasmyLab-JANCTION/janction-render` (this repository carries `gemini-extension.json`) |
@@ -487,14 +487,14 @@ As of 2026-10-26 (the current values are always at https://render.janction.jp/fa
487
487
 
488
488
  ## Docs
489
489
 
490
- - Fact sheet (the primary source when answers disagree): https://render.janction.jp/facts · JSON: `/facts.json`, `/version.json`, `/changelog.json`, `/status.json`
490
+ - Fact sheet (the primary source when answers disagree): https://render.janction.jp/facts · JSON: `/facts.json`, `/version.json`, `/status.json` · What's New: https://render.janction.jp/changelog (`/updates.xml`)
491
491
  - For agents: https://render.janction.jp/llms.txt (full text of all guides: `/llms-full.txt`)
492
492
  - Guides: [render farm for agents](https://render.janction.jp/blender-render-farm) · [without a GPU](https://render.janction.jp/render-blender-without-gpu) ·
493
493
  [Cycles is slow on my MacBook](https://render.janction.jp/blender-slow-on-macbook) ·
494
494
  [Claude](https://render.janction.jp/claude-blender) · [ChatGPT](https://render.janction.jp/chatgpt-blender) · [Claude Code](https://render.janction.jp/claude-code-blender) ·
495
495
  [Codex](https://render.janction.jp/codex-blender) · [Cursor](https://render.janction.jp/cursor-blender) · [bpy scripts](https://render.janction.jp/bpy-script-cloud-gpu) ·
496
496
  [API](https://render.janction.jp/blender-render-api) · [compare](https://render.janction.jp/compare) · [products](https://render.janction.jp/products) · 日本語は `/ja/`
497
- - Status: https://render.janction.jp/status · Security and retention: https://render.janction.jp/security · Changelog: https://render.janction.jp/changelog
497
+ - Status: https://render.janction.jp/status · Security and retention: https://render.janction.jp/security · What's New: https://render.janction.jp/changelog
498
498
 
499
499
  ## Features in detail
500
500
 
@@ -546,6 +546,24 @@ This server is listed in the official MCP registry as `io.github.JasmyLab-JANCTI
546
546
 
547
547
  mcp-name: io.github.JasmyLab-JANCTION/janction-render
548
548
 
549
+ ## Compatibility
550
+
551
+ - Python 3.11, 3.12 and 3.13, on any OS (the package is pure Python; Blender and the GPU run on the service).
552
+ - The CLI, the Python client and the stdio MCP server talk to the service's HTTP API (`/v1/...`). `janction-render doctor`
553
+ checks the connection, the key and the credit; `GET /v1/health` and `/version.json` show what the service runs.
554
+ - Authentication: an API key (`X-API-Key: jr_...` or `Authorization: Bearer jr_...`), created on first use without sign-up,
555
+ or OAuth 2.1 for the remote MCP connector.
556
+
557
+ ## Releases and product updates
558
+
559
+ - This package (CLI, Python client, stdio MCP server): release notes in [CHANGELOG.md](https://github.com/JasmyLab-JANCTION/janction-render/blob/main/CHANGELOG.md)
560
+ and [GitHub Releases](https://github.com/JasmyLab-JANCTION/janction-render/releases).
561
+ - A new version of this package is published only when the package itself changes; updates to the hosted service
562
+ (web pages, API, remote MCP, GPU workers) do not need one. If the service ever needs a newer client, `/version.json`
563
+ says so in `min_client_version` and `janction-render doctor` reports it.
564
+ - The service as a whole (new features, integrations, changes to pricing or terms): [What's New](https://render.janction.jp/changelog)
565
+ ([Atom](https://render.janction.jp/updates.xml)).
566
+
549
567
  ## Privacy and support
550
568
 
551
569
  - Privacy Policy: https://render.janction.jp/privacy (inputs and results are deleted automatically after a short retention period and are never used for training)
@@ -121,7 +121,7 @@ into the agent's skills directory (for example `~/.claude/skills/` or `~/.codex/
121
121
  ## Quick start
122
122
 
123
123
  **Claude.ai (nothing to install).** Plugins (older menu: Customize → Connectors) → Add custom connector → `https://render.janction.jp/mcp` → Connect (a free key
124
- is created on the consent page). **ChatGPT:** Plugins (left sidebar) → Add → Create plugin → the same URL (OAuth; on Business workspaces an admin adds it). Then paste:
124
+ is created on the consent page). **ChatGPT:** install [JANCTION Render from the plugin directory](https://chatgpt.com/plugins/plugin_asdk_app_6abd560972048191aa42f2cbb1980bd9) (Plugins → search "JANCTION Render" → Install plugin; on Business workspaces an admin may need to allow it). Then paste:
125
125
 
126
126
  > Render a preview of https://render.janction.jp/samples/cube_scene.py
127
127
 
@@ -288,7 +288,7 @@ in Claude Code: try_janction_render, render_my_scene, turntable_video, product_s
288
288
  |---|---|
289
289
  | Claude.ai (web, desktop, mobile) | Plugins (older menu: Customize → Connectors) → Add custom connector → paste the URL → Connect |
290
290
  | Claude Team / Enterprise | An owner adds the URL under Organization settings → Connectors; members press Connect. If the org turns Skills off, Claude Desktop blocks plugins from November 30, so use the connector URL |
291
- | ChatGPT | Settings → Connectors → Advanced → Developer mode → Create → paste the URL (OAuth) |
291
+ | ChatGPT | Plugins → search "JANCTION Render" → Install plugin ([plugin page](https://chatgpt.com/plugins/plugin_asdk_app_6abd560972048191aa42f2cbb1980bd9)) |
292
292
  | Claude Code | `claude mcp add --transport http janction-render https://render.janction.jp/mcp`, then `/mcp` to authenticate |
293
293
  | Codex | `codex mcp add janction-render --url https://render.janction.jp/mcp` |
294
294
  | Gemini CLI / Antigravity CLI | `gemini extensions install https://github.com/JasmyLab-JANCTION/janction-render` (this repository carries `gemini-extension.json`) |
@@ -446,14 +446,14 @@ As of 2026-10-26 (the current values are always at https://render.janction.jp/fa
446
446
 
447
447
  ## Docs
448
448
 
449
- - Fact sheet (the primary source when answers disagree): https://render.janction.jp/facts · JSON: `/facts.json`, `/version.json`, `/changelog.json`, `/status.json`
449
+ - Fact sheet (the primary source when answers disagree): https://render.janction.jp/facts · JSON: `/facts.json`, `/version.json`, `/status.json` · What's New: https://render.janction.jp/changelog (`/updates.xml`)
450
450
  - For agents: https://render.janction.jp/llms.txt (full text of all guides: `/llms-full.txt`)
451
451
  - Guides: [render farm for agents](https://render.janction.jp/blender-render-farm) · [without a GPU](https://render.janction.jp/render-blender-without-gpu) ·
452
452
  [Cycles is slow on my MacBook](https://render.janction.jp/blender-slow-on-macbook) ·
453
453
  [Claude](https://render.janction.jp/claude-blender) · [ChatGPT](https://render.janction.jp/chatgpt-blender) · [Claude Code](https://render.janction.jp/claude-code-blender) ·
454
454
  [Codex](https://render.janction.jp/codex-blender) · [Cursor](https://render.janction.jp/cursor-blender) · [bpy scripts](https://render.janction.jp/bpy-script-cloud-gpu) ·
455
455
  [API](https://render.janction.jp/blender-render-api) · [compare](https://render.janction.jp/compare) · [products](https://render.janction.jp/products) · 日本語は `/ja/`
456
- - Status: https://render.janction.jp/status · Security and retention: https://render.janction.jp/security · Changelog: https://render.janction.jp/changelog
456
+ - Status: https://render.janction.jp/status · Security and retention: https://render.janction.jp/security · What's New: https://render.janction.jp/changelog
457
457
 
458
458
  ## Features in detail
459
459
 
@@ -505,6 +505,24 @@ This server is listed in the official MCP registry as `io.github.JasmyLab-JANCTI
505
505
 
506
506
  mcp-name: io.github.JasmyLab-JANCTION/janction-render
507
507
 
508
+ ## Compatibility
509
+
510
+ - Python 3.11, 3.12 and 3.13, on any OS (the package is pure Python; Blender and the GPU run on the service).
511
+ - The CLI, the Python client and the stdio MCP server talk to the service's HTTP API (`/v1/...`). `janction-render doctor`
512
+ checks the connection, the key and the credit; `GET /v1/health` and `/version.json` show what the service runs.
513
+ - Authentication: an API key (`X-API-Key: jr_...` or `Authorization: Bearer jr_...`), created on first use without sign-up,
514
+ or OAuth 2.1 for the remote MCP connector.
515
+
516
+ ## Releases and product updates
517
+
518
+ - This package (CLI, Python client, stdio MCP server): release notes in [CHANGELOG.md](https://github.com/JasmyLab-JANCTION/janction-render/blob/main/CHANGELOG.md)
519
+ and [GitHub Releases](https://github.com/JasmyLab-JANCTION/janction-render/releases).
520
+ - A new version of this package is published only when the package itself changes; updates to the hosted service
521
+ (web pages, API, remote MCP, GPU workers) do not need one. If the service ever needs a newer client, `/version.json`
522
+ says so in `min_client_version` and `janction-render doctor` reports it.
523
+ - The service as a whole (new features, integrations, changes to pricing or terms): [What's New](https://render.janction.jp/changelog)
524
+ ([Atom](https://render.janction.jp/updates.xml)).
525
+
508
526
  ## Privacy and support
509
527
 
510
528
  - Privacy Policy: https://render.janction.jp/privacy (inputs and results are deleted automatically after a short retention period and are never used for training)
@@ -1,3 +1,3 @@
1
1
  """JANCTION Render — ターミナルの AI エージェントから GPU で 3DCG を描く。"""
2
2
 
3
- __version__ = "0.4.337"
3
+ __version__ = "0.4.339"
@@ -49,7 +49,7 @@ def estimate_brief(e: dict[str, Any] | None) -> dict[str, Any] | None:
49
49
  # 11/9 最終の経路での試し描きのコマ・見積もり・値段(受付の旗 JR_FINAL_TEST。OFF なら無い)
50
50
  "test",
51
51
  # 11/13 見積もりの ID(受付の旗 JR_ESTIMATE_ID。OFF なら無い)。render_final(estimate_id=...) に渡す
52
- "estimate_id",
52
+ "estimate_id", "estimate_id_expires_at",
53
53
  # 11/13 人に見せる計画(受付の旗 JR_PLAN_REQUIRED。OFF なら無い): 描くもの・天井・時間・送り先
54
54
  "plan")
55
55
  return {k: e[k] for k in keep if e.get(k) is not None}
@@ -683,7 +683,9 @@ CREATOR_FIELDS = ("extras", "compare", "deliver", "passes", "colors", "auto_samp
683
683
  # シーンと違う設定(scene_diff)・シーンの設定で描いた値(scene_settings)(11/9、受付の旗 JR_SCENE_DIFF・JR_SCENE_SETTINGS)。受付の形のまま
684
684
  SCENE_FIELDS = ("scene_diff", "scene_settings")
685
685
  # 色の管理(読んだだけ)と透過の形・EXR の書き方と点検(11/9、受付の旗 JR_PRO_EXR)。受付の形のまま
686
- PRO_EXR_FIELDS = ("color_management", "exr")
686
+ PRO_EXR_FIELDS = ("color_management", "exr",
687
+ "color_check", # 11/24 色の仕様と照らした結果(受付の旗 JR_COLOR_SPEC)。MCP の返事に入っていなかった
688
+ "package") # 11/24 納品の目録の要約(受付の旗 JR_DELIVERY_PACKAGE)
687
689
  # 最終の経路での試し描き(final_test)と、前の仕上げから写したコマの数(frames_reused)(11/9、受付の旗 JR_FINAL_TEST)。受付の形のまま
688
690
  TEST_FIELDS = ("final_test", "frames_reused")
689
691
 
@@ -198,7 +198,7 @@ def cmd_upload(c: Client, args: argparse.Namespace) -> int:
198
198
  def cmd_verify_package(c: Any, args: argparse.Namespace) -> int:
199
199
  """手元に落とした仕上げのフォルダを package.json(受付の旗 JR_DELIVERY_PACKAGE の納品の目録)と照らす(11/13、v2 QAD-08)。
200
200
  受付には何も送らない。欠け・中身違い・目録に無い納品物があれば 1 で終わる。"""
201
- from .server import package
201
+ from . import package_check as package # 11/24: 公開版には server/ が無い(照らす部分だけを分けた)
202
202
  folder = Path(args.folder)
203
203
  if not (folder / package.NAME).is_file():
204
204
  print(_j({"ok": False, "error": f"no {package.NAME} in {folder}"}))
@@ -972,7 +972,7 @@ def cmd_estimate(c: Client, args: argparse.Namespace) -> int:
972
972
  if est.get("estimate_id") and not getattr(args, "preview", False):
973
973
  # 11/16 見積もりの ID(受付の旗 JR_ESTIMATE_ID): 同じ設定の仕上げに渡すと、この額を超えるなら描かずに断る
974
974
  print(f"to render at this estimate: janction-render render ... --estimate-id {est['estimate_id']} "
975
- "(same settings; valid for 10 minutes)",
975
+ "(same settings; valid for 1 hour)",
976
976
  file=sys.stderr)
977
977
  print(_j({"scene_id": sid, **est}))
978
978
  if args.max_yen is not None and cost.get("within_max_yen") is False:
@@ -488,8 +488,9 @@ def upload_page_hint(server: str, use_as: str = "scene_url") -> str:
488
488
  """大きすぎる・届かないファイルの代わりの道: /upload のページ(ブラウザで分けて送る、途中から再開)→ 出たリンクを scene_url に。
489
489
  use_as はリンクの渡し先(CLI はファイルの代わりにリンクを引数に)。"""
490
490
  base = (server or "https://render.janction.jp").rstrip("/")
491
- return (f"open {base}/upload in a browser and drop the file there (it is sent in parts and resumes after a drop; textures "
492
- f"can go with it), then pass the link the page shows as {use_as}")
491
+ # 11/20: リンクは 1 ファイルだけ(extra_pages.upload_html)。前は「テクスチャも一緒に」と書いていた
492
+ return (f"open {base}/upload in a browser and drop the file there (one file per link: a .glb or a .blend with "
493
+ f"packed textures), then pass the link the page shows as {use_as}")
493
494
 
494
495
 
495
496
  TERMINAL_UPLOAD = ("if you can run commands on the user's computer: pip install janction-render, then "
@@ -837,7 +838,8 @@ OPT_IN: tuple[tuple[str, str, str, str], ...] = (
837
838
  "ProRes 4444 .mov (alpha with transparent=True)."),
838
839
  ("JR_SOCIAL_EXPORT", "render_final", "deliver",
839
840
  " deliver=['x','vertical','square'] (animations): also returns social_x.mp4 (fits X: up to 2:20, 512 MB, 1080p or 720p), "
840
- "social_vertical.mp4 (1080x1920) and social_square.mp4 (1080x1080); the whole frame on a blurred fill, no cropping."),
841
+ "social_vertical.mp4 (1080x1920) and social_square.mp4 (1080x1080); these keep the subject whole: cropped around it "
842
+ "when it fits, otherwise the whole frame on a blurred fill."),
841
843
  ("JR_AUTO_SAMPLES", "render_final", "auto_samples", ""),
842
844
  ("JR_AUTO_SAMPLES", "render_final", "probe_frame", ""),
843
845
  ("JR_AUTO_SAMPLES", "render_estimate", "auto_samples", ""),
@@ -912,7 +914,7 @@ OPT_IN_PARAM_DOCS: dict[str, str] = {
912
914
  "passes": ("Render passes for compositing (Cycles, final only): 'depth', 'mist', 'normal', 'diffuse', 'glossy', 'emission', "
913
915
  "'ao', 'shadow_catcher', 'crypto_object', 'crypto_material'; each frame becomes one multilayer EXR."),
914
916
  "deliver": ("Extra videos for social posts from an animation: 'x' (fits X's limits), 'vertical' (1080x1920), 'square' "
915
- "(1080x1080); the whole frame on a blurred fill, nothing cropped."),
917
+ "(1080x1080); the subject is kept whole: cropped around it when it fits, otherwise the whole frame on a blurred fill."),
916
918
  **AUTO_SAMPLES_DOCS,
917
919
  "allow_missing": ("True renders even though scene_info found files the scene uses that were not sent (missing images render "
918
920
  "pink or black, objects from a missing linked .blend are absent). Only when the user accepted that; "
@@ -978,7 +980,7 @@ OPT_IN_PARAM_DOCS: dict[str, str] = {
978
980
  "or 9 (3x3); the parts overlap and are joined into one frame_0001.png. GPU time is about the same as one frame, "
979
981
  "the wait is shorter. 0 = not split."),
980
982
  "estimate_id": ("The estimate_id from render_estimate with the same settings: the render is refused, with nothing charged, "
981
- "if the estimate is for another scene, has expired (10 minutes) or the render would now hold more than the "
983
+ "if the estimate is for another scene, has expired (1 hour) or the render would now hold more than the "
982
984
  "price the estimate showed. Pass it after the user agreed to that price."),
983
985
  "upload_url": ("A pre-signed HTTPS PUT URL of the user's own storage (S3, R2, GCS, Azure SAS ...): when the render is done the "
984
986
  "service uploads the result there once (the video, the single image, or a zip of the frames), with that "
@@ -0,0 +1,77 @@
1
+ """納品の目録 package.json を手元のフォルダと照らす(11/24 に server/package.py から分けた)。
2
+
3
+ `janction-render verify-package <フォルダ>`(cli.py)が読む。公開版(PyPI)には受付(server/)が入らないので、照らす部分だけを
4
+ ここに置く(11/13 から 11/24 まで、公開版の verify-package は server を読もうとして落ちていた)。受付の server/package.py もここを使う。
5
+
6
+ 長い仕上げ(241 コマ以上を部分に分けて 1 つの b_… で返す)は、部分のコマが part-01_frame_0001.png の名前で落ちる。目録は
7
+ frame_0001.png で書くので、part-NN_ を外した名前でも照らす。
8
+ """
9
+ from __future__ import annotations
10
+
11
+ import hashlib
12
+ import json
13
+ import re
14
+ from pathlib import Path
15
+ from typing import Any, Optional
16
+
17
+ NAME = "package.json"
18
+ SCHEMA = "jr-package-1"
19
+ _DELIVERABLE = re.compile(r"^(frame_\d+\.(png|exr|jpg|webp)|output\.[a-z0-9]+|social_[a-z]+\.mp4|fo[A-Za-z0-9_.-]+|scene\.blend)$")
20
+ _QC = re.compile(r"^(report\.json|report_sheet\.png|compare\.(mp4|gif|png|json)|compare_outside\.png)$")
21
+ _INFO = re.compile(r"^[a-z_]+\.json$")
22
+ _SKIP = {NAME, "upload.json", "log.txt"}
23
+ _PART = re.compile(r"^part-\d{2,}_(.+)$")
24
+
25
+
26
+ def role_of(name: str) -> Optional[str]:
27
+ if name in _SKIP or name.startswith((".", "joined_post")):
28
+ return None
29
+ if _DELIVERABLE.match(name):
30
+ return "deliverable"
31
+ if _QC.match(name):
32
+ return "qc"
33
+ if _INFO.match(name):
34
+ return "info"
35
+ return None
36
+
37
+
38
+ def sha256_of(p: Path) -> str:
39
+ h = hashlib.sha256()
40
+ with p.open("rb") as fh:
41
+ for block in iter(lambda: fh.read(1 << 20), b""):
42
+ h.update(block)
43
+ return h.hexdigest()
44
+
45
+
46
+ def _local_files(folder: Path, listed: dict[str, Any]) -> dict[str, Path]:
47
+ """目録の名前 → 手元のファイル。同じ名前が無ければ part-NN_<名前>(長い仕上げの部分のコマ)。目録に無い部分の
48
+ ファイル(部分ごとの控え)は目録の外として扱わない。"""
49
+ out: dict[str, Path] = {}
50
+ for p in folder.iterdir():
51
+ if p.is_file() and p.name in listed:
52
+ out[p.name] = p
53
+ for p in sorted(folder.iterdir(), key=lambda x: x.name):
54
+ m = _PART.match(p.name) if p.is_file() else None
55
+ if m and m.group(1) in listed and m.group(1) not in out:
56
+ out[m.group(1)] = p
57
+ return out
58
+
59
+
60
+ def verify(folder: Path) -> dict[str, Any]:
61
+ """手元のフォルダを package.json と照らす。{ok, missing, changed, extra, checked}。"""
62
+ m = json.loads((folder / NAME).read_text(encoding="utf-8"))
63
+ if m.get("schema") != SCHEMA:
64
+ raise ValueError(f"{NAME} is not a {SCHEMA} manifest")
65
+ listed = {f["name"]: f for f in m.get("files") or []}
66
+ have = _local_files(folder, listed)
67
+ missing, changed = [], []
68
+ for name, f in listed.items():
69
+ p = have.get(name)
70
+ if p is None:
71
+ missing.append(name)
72
+ elif p.stat().st_size != f.get("size") or (f.get("sha256") and sha256_of(p) != f["sha256"]):
73
+ changed.append(name)
74
+ extra = sorted(p.name for p in folder.iterdir()
75
+ if p.is_file() and role_of(p.name) == "deliverable" and p.name not in listed)
76
+ return {"ok": not (missing or changed or extra), "missing": missing, "changed": changed, "extra": extra,
77
+ "checked": len(listed), "job_id": m.get("job_id"), "sku": m.get("sku") or ""}
@@ -25,8 +25,8 @@ PREPAID_RESOLUTION = "3840x2160"
25
25
  MAX_JOB_GPU_HOURS = 10
26
26
  MIN_TOPUP_YEN = 100
27
27
  TOPUP_STEP_YEN = 100
28
- TOPUP_PACKS_YEN = [100, 500, 2000, 5000, 10000]
29
- TOPUP_PACK_CREDIT_YEN = [100, 500, 2000, 5000, 10000]
28
+ TOPUP_PACKS_YEN = [100, 500, 3000, 10000]
29
+ TOPUP_PACK_CREDIT_YEN = [100, 500, 3000, 10000]
30
30
  FIRST_TOPUP_MULTIPLIER = 1.5
31
31
  FIRST_TOPUP_BONUS_CAP_YEN = 500
32
32
  RETENTION_HOURS = 24
@@ -70,6 +70,7 @@ ENV_PROFILE: dict[str, str] = {
70
70
  'JR_PAID_TTL_HOURS': '168',
71
71
  'JR_PAID_MIN_YEN': '500',
72
72
  'JR_MONTHLY_PLANS': 'basic:Basic:1500:1500,standard:Standard:4500:4500,pro:Pro:15000:15000',
73
+ 'JR_TOPUP_PACKS': '100,500,3000,10000',
73
74
  'JR_TOPUP_BONUS_TIERS': '',
74
75
  'JR_PLAN_RESET': '1',
75
76
  'JR_PLAN_RESET_SINCE': '2026-11-17',
@@ -131,6 +131,31 @@ PREVIEW_MAX_SIZE = "1280x720" # 試し描きの上限(server/capabili
131
131
  PREVIEW_FRAMES_MAX = 4
132
132
  UPLOAD_LINK_HOURS = _env_int_doc("JR_DROP_TTL_HOURS", 12)
133
133
 
134
+ # 11/20 取り消しの料金の 1 句。旗 JR_CANCEL_BILL_FRAMES が全員に ON のときだけ ON の文(受付のページの pages.cancel_frames_note と
135
+ # 同じ切り替え。ops・beta の鍵だけの間は今の動き=描き終えた束の GPU 秒だけ、billing.settle → job_counted_seconds)
136
+ CANCEL_BILL_FLAG = "JR_CANCEL_BILL_FRAMES"
137
+
138
+
139
+ def cancel_charge_clause() -> str:
140
+ from .mcp_common import flag_on
141
+ if flag_on(CANCEL_BILL_FLAG):
142
+ return ("only frames that finished rendering and can be downloaded are charged; unfinished, unavailable or failed "
143
+ "frames are not charged")
144
+ return "only the GPU time of parts that finished rendering is charged, nothing extra"
145
+
146
+
147
+ def upload_page_sizes() -> str:
148
+ """/upload のページで送れる大きさ(extra_pages.upload_html と同じ式・同じ env)。受付の外(stdio)では受付の設定を読めないので空。"""
149
+ try:
150
+ from .server.extra_pages import _mb_label, _size_caps, _upload_limits, big_upload_labels
151
+ from .server.uploads import uploads_mode
152
+ if uploads_mode() != "on":
153
+ return f"up to {_upload_limits()[0]} MB"
154
+ mx, nc, _ = _size_caps()
155
+ return f".blend up to {big_upload_labels()[0]}, other files up to {_mb_label(min(nc, mx) // (1024 * 1024))}"
156
+ except Exception: # noqa: BLE001 説明の飾り
157
+ return ""
158
+
134
159
 
135
160
  def _plan_keep() -> str:
136
161
  """11/16 月額+JANCTION Storage(β): 月額なら契約中ずっと残る(server.storage_aio。旗が OFF・読めないときは空)。"""
@@ -301,8 +326,8 @@ def descriptions(flavor: str, wait_cap_s: int = 50) -> dict[str, str]:
301
326
  # 何が残るかが書かれていなかった。実装は routes_jobs.cancel_for・routes_shares.unshare_for・shares.remove)
302
327
  cancel = (
303
328
  "Stop a queued or running render job of this key (a j_... job, or a b_... job split into parts, which stops every part). "
304
- "Effects: queued frames are dropped; frames already rendered are charged and stay downloadable until the job expires; "
305
- "the rest of the GPU time held for the job is returned to the key at once. It cannot be undone or resumed: to render "
329
+ f"Effects: queued frames are dropped; {cancel_charge_clause()}; frames already rendered stay downloadable until the job "
330
+ "expires; the rest of the GPU time held for the job is returned to the key at once. It cannot be undone or resumed: to render "
306
331
  "again, call render_final again (a new job). A job that is already done, failed or canceled is returned unchanged, and "
307
332
  "a job whose frames are all rendered and is being assembled into the video cannot be stopped (nothing more is charged). "
308
333
  "Only the key that started the job can stop it; any other job_id returns not_found. Ask the user before cancelling a "
@@ -389,15 +414,21 @@ def _script_notes(flavor: str) -> str:
389
414
 
390
415
  def param_docs(flavor: str, wait_cap_s: int = 50) -> dict[str, str]:
391
416
  remote = flavor == "remote"
417
+ # 11/20: /upload のリンクは 1 ファイル(extra_pages.upload_html の決まり)。大きさは受付の設定から(リモートだけ)
418
+ sizes = upload_page_sizes() if remote else ""
419
+ upload = (f"a {UPLOAD_LINK_HOURS}-hour /upload link: the user drops one file at {SITE}/upload in a browser"
420
+ + (f" ({sizes})" if sizes else ""))
421
+ # 11/20: 別の .bin・テクスチャを使う .gltf は、それが届いていないと描く前に断る(submit._refuse_lone_gltf、料金なし)
422
+ refused = "a .gltf whose .bin or textures are missing is refused before rendering (gltf_external_files, no charge)"
392
423
  return {
393
- "scene_path": "Local path to the scene: a .blend file, a bpy .py script, or a 3D file (.glb/.gltf/.fbx/.usd/.obj/.stl/.ply/.abc, imported into an empty scene; a Gaussian splat .spz or 3DGS .ply opens with Blender 5.3). Uploaded once; reuse the returned scene_id afterwards.",
424
+ "scene_path": "Local path to the scene: a .blend file, a bpy .py script, or a 3D file (.glb (recommended)/.gltf/.fbx/.usd/.obj/.stl/.ply/.abc, imported into an empty scene; a .gltf also sends the .bin and textures next to it; a Gaussian splat .spz or 3DGS .ply opens with Blender 5.3). Uploaded once; reuse the returned scene_id afterwards.",
394
425
  "scene_id": "scene_id returned by an earlier call (reuses the uploaded scene without sending it again).",
395
426
  "resume_limit": "How many projects to return (1-20, default 3).",
396
427
  "resume_cursor": "next_cursor from the previous call, to see more projects. Leave empty for the newest.",
397
428
  "scene_script": "The scene as bpy Python code (text). No file and no local Blender needed; the service runs it in Blender 5.0 (5.2 or 5.3 with blender='5.2' / '5.3')." + _script_notes(flavor),
398
- "scene_url": f"https link to a .blend, a .py script or a 3D file (.glb/.gltf/.fbx/.usd/.obj/.stl/.ply/.abc; a Gaussian splat .spz or 3DGS .ply opens with Blender 5.3); the service fetches it (e.g. the sample {SAMPLE_URL}, or a {UPLOAD_LINK_HOURS}-hour /upload link). A .gltf or .obj also brings its .bin / .mtl / textures from the same folder.",
399
- "asset_urls": "Extra files sent with the scene: https links (textures, glTF .bin) or 'polyhaven:<id>' CC0 assets from asset_search ('polyhaven:<id>@2k' for 2k textures). A .blend finds them through relative paths (same folder); a script through os.environ['JR_ASSETS_DIR'] or the jr_assets helpers.",
400
- "assets": "Extra files sent with the scene: local paths (textures, glTF .bin), https links, or 'polyhaven:<id>' CC0 assets from asset_search. A .blend finds them through relative paths (same folder); a script through os.environ['JR_ASSETS_DIR'] or the jr_assets helpers.",
429
+ "scene_url": f"https link to a .blend, a .py script or a 3D file (.glb (recommended)/.gltf/.fbx/.usd/.obj/.stl/.ply/.abc; a Gaussian splat .spz or 3DGS .ply opens with Blender 5.3); the service fetches it (e.g. the sample {SAMPLE_URL}, or {upload}). A .gltf or .obj link also brings its .bin / .mtl / textures from the same folder; an /upload link carries one file, so a .gltf with separate files goes there as a .glb.",
430
+ "asset_urls": f"Extra files sent with the scene: https links (textures, glTF .bin; saved under the link's file name) or 'polyhaven:<id>' CC0 assets from asset_search ('polyhaven:<id>@2k' for 2k textures). A .blend finds them through relative paths (same folder); a script through os.environ['JR_ASSETS_DIR'] or the jr_assets helpers; {refused}.",
431
+ "assets": f"Extra files sent with the scene: local paths (textures, glTF .bin), https links, or 'polyhaven:<id>' CC0 assets from asset_search. A .blend finds them through relative paths (same folder); a script through os.environ['JR_ASSETS_DIR'] or the jr_assets helpers; {refused}.",
401
432
  "blender": "Blender version: '' (default: a .blend opens with the version it was saved in, other scenes with 5.0) or '5.0' / '5.2' / '5.3' (also '4.5', '4.2', '3.6'; a script that stops on Blender 5 because of an older API is rendered again on those automatically) to choose.",
402
433
  "frames": f"Preview frames: '' = frame 1; '12' = one frame; '1,8,16,24' or '1-24' = up to {PREVIEW_FRAMES_MAX} frames tiled in one labeled image (to judge camera motion and animation; same GPU time as one 720p frame).",
403
434
  "camera": "Name of the camera object to render from (default: the scene's active camera, or an automatic camera if there is none). Ignored with orbit=True; not combinable with cameras.",
@@ -428,7 +459,7 @@ def param_docs(flavor: str, wait_cap_s: int = 50) -> dict[str, str]:
428
459
  "notify_url": "Optional https URL that receives one JSON POST when the final render finishes (job.done / job.failed, with download links), so nobody has to poll.",
429
460
  "compare_to": "job_id of an earlier final render of this key to compare with: when this render finishes, compare.mp4 shows before / after side by side (frames matched by number), with compare.gif and compare.json (most changed frames).",
430
461
  "passes": "Render passes for compositing (Cycles, final only): 'depth', 'mist', 'normal', 'diffuse', 'glossy', 'emission', 'ao', 'shadow_catcher', 'crypto_object', 'crypto_material'. Each frame becomes one multilayer OpenEXR (beauty denoised as usual plus those passes); output must be 'exr' or 'auto'.",
431
- "deliver": "Extra MP4s for posting an animation, made from the rendered frames at no extra GPU time: 'x' (H.264 with a silent AAC track that fits X: up to 2 min 20 s and 512 MB, 1920x1080 or 1280x720), 'vertical' (1080x1920) and 'square' (1080x1080), the whole frame on a blurred fill with nothing cropped.",
462
+ "deliver": "Extra MP4s for posting an animation, made from the rendered frames at no extra GPU time: 'x' (H.264 with a silent AAC track that fits X: up to 2 min 20 s and 512 MB, 1920x1080 or 1280x720), 'vertical' (1080x1920) and 'square' (1080x1080), which keep the subject whole: cropped around it when it fits, otherwise the whole frame on a blurred fill.",
432
463
  "kind": "'final' (frame_start..frame_end at width x height, samples) or 'preview' (frames like '1-24').",
433
464
  "job_id": "The job_id returned by render_preview or render_final (j_...; a long final split into parts is b_...). Only this key's jobs; in render_status, leave it empty to list them.",
434
465
  "wait_seconds": (f"Wait for the job to finish before returning the links (0 = do not wait). The service waits at most {wait_cap_s} s per call; call again while the job is still running."
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: janction-render
3
- Version: 0.4.337
3
+ Version: 0.4.339
4
4
  Summary: Cloud GPU rendering for Blender scenes and 3D models (GLB, FBX, USD, OBJ, STL), built for AI agents: MCP server (remote + stdio), HTTP API and CLI. Product shots, 360-degree turntables, animations and stills; preview in seconds with a critic; no local Blender or GPU. Free welcome credit for a new key. Current pricing and limits: https://render.janction.jp/pricing
5
5
  Author-email: "JasmyLab Inc." <contact@jasmylab.com>
6
6
  License-Expression: MIT
@@ -162,7 +162,7 @@ into the agent's skills directory (for example `~/.claude/skills/` or `~/.codex/
162
162
  ## Quick start
163
163
 
164
164
  **Claude.ai (nothing to install).** Plugins (older menu: Customize → Connectors) → Add custom connector → `https://render.janction.jp/mcp` → Connect (a free key
165
- is created on the consent page). **ChatGPT:** Plugins (left sidebar) → Add → Create plugin → the same URL (OAuth; on Business workspaces an admin adds it). Then paste:
165
+ is created on the consent page). **ChatGPT:** install [JANCTION Render from the plugin directory](https://chatgpt.com/plugins/plugin_asdk_app_6abd560972048191aa42f2cbb1980bd9) (Plugins → search "JANCTION Render" → Install plugin; on Business workspaces an admin may need to allow it). Then paste:
166
166
 
167
167
  > Render a preview of https://render.janction.jp/samples/cube_scene.py
168
168
 
@@ -329,7 +329,7 @@ in Claude Code: try_janction_render, render_my_scene, turntable_video, product_s
329
329
  |---|---|
330
330
  | Claude.ai (web, desktop, mobile) | Plugins (older menu: Customize → Connectors) → Add custom connector → paste the URL → Connect |
331
331
  | Claude Team / Enterprise | An owner adds the URL under Organization settings → Connectors; members press Connect. If the org turns Skills off, Claude Desktop blocks plugins from November 30, so use the connector URL |
332
- | ChatGPT | Settings → Connectors → Advanced → Developer mode → Create → paste the URL (OAuth) |
332
+ | ChatGPT | Plugins → search "JANCTION Render" → Install plugin ([plugin page](https://chatgpt.com/plugins/plugin_asdk_app_6abd560972048191aa42f2cbb1980bd9)) |
333
333
  | Claude Code | `claude mcp add --transport http janction-render https://render.janction.jp/mcp`, then `/mcp` to authenticate |
334
334
  | Codex | `codex mcp add janction-render --url https://render.janction.jp/mcp` |
335
335
  | Gemini CLI / Antigravity CLI | `gemini extensions install https://github.com/JasmyLab-JANCTION/janction-render` (this repository carries `gemini-extension.json`) |
@@ -487,14 +487,14 @@ As of 2026-10-26 (the current values are always at https://render.janction.jp/fa
487
487
 
488
488
  ## Docs
489
489
 
490
- - Fact sheet (the primary source when answers disagree): https://render.janction.jp/facts · JSON: `/facts.json`, `/version.json`, `/changelog.json`, `/status.json`
490
+ - Fact sheet (the primary source when answers disagree): https://render.janction.jp/facts · JSON: `/facts.json`, `/version.json`, `/status.json` · What's New: https://render.janction.jp/changelog (`/updates.xml`)
491
491
  - For agents: https://render.janction.jp/llms.txt (full text of all guides: `/llms-full.txt`)
492
492
  - Guides: [render farm for agents](https://render.janction.jp/blender-render-farm) · [without a GPU](https://render.janction.jp/render-blender-without-gpu) ·
493
493
  [Cycles is slow on my MacBook](https://render.janction.jp/blender-slow-on-macbook) ·
494
494
  [Claude](https://render.janction.jp/claude-blender) · [ChatGPT](https://render.janction.jp/chatgpt-blender) · [Claude Code](https://render.janction.jp/claude-code-blender) ·
495
495
  [Codex](https://render.janction.jp/codex-blender) · [Cursor](https://render.janction.jp/cursor-blender) · [bpy scripts](https://render.janction.jp/bpy-script-cloud-gpu) ·
496
496
  [API](https://render.janction.jp/blender-render-api) · [compare](https://render.janction.jp/compare) · [products](https://render.janction.jp/products) · 日本語は `/ja/`
497
- - Status: https://render.janction.jp/status · Security and retention: https://render.janction.jp/security · Changelog: https://render.janction.jp/changelog
497
+ - Status: https://render.janction.jp/status · Security and retention: https://render.janction.jp/security · What's New: https://render.janction.jp/changelog
498
498
 
499
499
  ## Features in detail
500
500
 
@@ -546,6 +546,24 @@ This server is listed in the official MCP registry as `io.github.JasmyLab-JANCTI
546
546
 
547
547
  mcp-name: io.github.JasmyLab-JANCTION/janction-render
548
548
 
549
+ ## Compatibility
550
+
551
+ - Python 3.11, 3.12 and 3.13, on any OS (the package is pure Python; Blender and the GPU run on the service).
552
+ - The CLI, the Python client and the stdio MCP server talk to the service's HTTP API (`/v1/...`). `janction-render doctor`
553
+ checks the connection, the key and the credit; `GET /v1/health` and `/version.json` show what the service runs.
554
+ - Authentication: an API key (`X-API-Key: jr_...` or `Authorization: Bearer jr_...`), created on first use without sign-up,
555
+ or OAuth 2.1 for the remote MCP connector.
556
+
557
+ ## Releases and product updates
558
+
559
+ - This package (CLI, Python client, stdio MCP server): release notes in [CHANGELOG.md](https://github.com/JasmyLab-JANCTION/janction-render/blob/main/CHANGELOG.md)
560
+ and [GitHub Releases](https://github.com/JasmyLab-JANCTION/janction-render/releases).
561
+ - A new version of this package is published only when the package itself changes; updates to the hosted service
562
+ (web pages, API, remote MCP, GPU workers) do not need one. If the service ever needs a newer client, `/version.json`
563
+ says so in `min_client_version` and `janction-render doctor` reports it.
564
+ - The service as a whole (new features, integrations, changes to pricing or terms): [What's New](https://render.janction.jp/changelog)
565
+ ([Atom](https://render.janction.jp/updates.xml)).
566
+
549
567
  ## Privacy and support
550
568
 
551
569
  - Privacy Policy: https://render.janction.jp/privacy (inputs and results are deleted automatically after a short retention period and are never used for training)
@@ -13,6 +13,7 @@ janction_render/links.py
13
13
  janction_render/mcp_app.html
14
14
  janction_render/mcp_common.py
15
15
  janction_render/mcp_server.py
16
+ janction_render/package_check.py
16
17
  janction_render/prompts.py
17
18
  janction_render/terms_defaults.py
18
19
  janction_render/tooldocs.py
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "janction-render"
7
- version = "0.4.337"
7
+ version = "0.4.339"
8
8
  description = "Cloud GPU rendering for Blender scenes and 3D models (GLB, FBX, USD, OBJ, STL), built for AI agents: MCP server (remote + stdio), HTTP API and CLI. Product shots, 360-degree turntables, animations and stills; preview in seconds with a critic; no local Blender or GPU. Free welcome credit for a new key. Current pricing and limits: https://render.janction.jp/pricing"
9
9
  readme = "README.md"
10
10
  license = "MIT"