janction-render 0.4.331__tar.gz → 0.4.333__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 (26) hide show
  1. {janction_render-0.4.331 → janction_render-0.4.333}/PKG-INFO +1 -1
  2. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render/__init__.py +1 -1
  3. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render/client.py +18 -2
  4. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render/mcp_common.py +5 -0
  5. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render/mcp_server.py +2 -0
  6. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render.egg-info/PKG-INFO +1 -1
  7. {janction_render-0.4.331 → janction_render-0.4.333}/pyproject.toml +1 -1
  8. {janction_render-0.4.331 → janction_render-0.4.333}/LICENSE +0 -0
  9. {janction_render-0.4.331 → janction_render-0.4.333}/README.md +0 -0
  10. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render/brief.py +0 -0
  11. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render/cli.py +0 -0
  12. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render/decision_words.py +0 -0
  13. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render/desktop_notify.py +0 -0
  14. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render/hookup.py +0 -0
  15. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render/libplan.py +0 -0
  16. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render/links.py +0 -0
  17. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render/mcp_app.html +0 -0
  18. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render/prompts.py +0 -0
  19. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render/terms_defaults.py +0 -0
  20. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render/tooldocs.py +0 -0
  21. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render.egg-info/SOURCES.txt +0 -0
  22. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render.egg-info/dependency_links.txt +0 -0
  23. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render.egg-info/entry_points.txt +0 -0
  24. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render.egg-info/requires.txt +0 -0
  25. {janction_render-0.4.331 → janction_render-0.4.333}/janction_render.egg-info/top_level.txt +0 -0
  26. {janction_render-0.4.331 → janction_render-0.4.333}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: janction-render
3
- Version: 0.4.331
3
+ Version: 0.4.333
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
@@ -1,3 +1,3 @@
1
1
  """JANCTION Render — ターミナルの AI エージェントから GPU で 3DCG を描く。"""
2
2
 
3
- __version__ = "0.4.331"
3
+ __version__ = "0.4.333"
@@ -51,6 +51,8 @@ PRO_ASSET_EXTENSIONS = frozenset({".vdb", ".bphys", ".blob", ".uni", ".gz", ".av
51
51
  LIBRARY_ASSET_EXTENSIONS = frozenset({".blend"})
52
52
  # 11/16 旗 JR_SPLAT_ASSETS の受付だけが受ける型(スクリプトが jr_assets.import_splat で読むスキャン)。旗の無い受付は 400 unsupported
53
53
  SPLAT_ASSET_EXTENSIONS = frozenset({".spz", ".ply"})
54
+ # 旗 JR_SCENE_AUDIO の受付だけが受ける型(シーケンサーの音のファイル、11/16、server/scene_audio.py)。旗の無い受付は 400 unsupported
55
+ SOUND_ASSET_EXTENSIONS = frozenset({".wav", ".mp3", ".ogg", ".flac", ".aif", ".aiff", ".m4a"})
54
56
  LIBRARY_FILES_MAX = 500 # リンクした .blend 1 つが読むファイルとして送る数の上限(材質の大きなライブラリで送りすぎない)
55
57
  _ASSET_NAME_RE = re.compile(r"^[A-Za-z0-9_.\-]{1,120}(/[A-Za-z0-9_.\-]{1,120}){0,4}$")
56
58
  # ワーカーは .blend を scene.blend として開くので、既定の点のキャッシュ(//blendcache_<名前>/)は blendcache_scene/ で送る
@@ -340,6 +342,9 @@ def is_pro_asset(name: str) -> bool:
340
342
  def is_splat_asset(name: str) -> bool:
341
343
  """旗 JR_SPLAT_ASSETS の受付だけが受ける型(素材のスキャン .spz・.ply)か(11/16)。"""
342
344
  return Path(name).suffix.lower() in SPLAT_ASSET_EXTENSIONS
345
+ def is_sound_asset(name: str) -> bool:
346
+ """旗 JR_SCENE_AUDIO の受付だけが受ける音のファイルか(11/16)。"""
347
+ return Path(name).suffix.lower() in SOUND_ASSET_EXTENSIONS
343
348
 
344
349
 
345
350
  def is_library_asset(name: str) -> bool:
@@ -354,7 +359,7 @@ def asset_name_problem(name: str) -> Optional[str]:
354
359
  return "the name has characters the service does not take (letters, digits, . _ - and up to 4 folders)"
355
360
  if ext == ".gz" and not name.lower().endswith(".bobj.gz"):
356
361
  return ".gz files other than fluid meshes (.bobj.gz) are not accepted"
357
- if ext not in BASE_ASSET_EXTENSIONS and ext not in PRO_ASSET_EXTENSIONS:
362
+ if ext not in BASE_ASSET_EXTENSIONS and ext not in PRO_ASSET_EXTENSIONS and ext not in SOUND_ASSET_EXTENSIONS:
358
363
  return f"{ext or 'no extension'} files are not accepted; pack it into the .blend"
359
364
  return None
360
365
 
@@ -986,7 +991,10 @@ class Client:
986
991
  libs = [(n, ap) for n, ap in todo if is_library_asset(n)]
987
992
  # 11/16: 素材のスキャン(旗 JR_SPLAT_ASSETS)も別に送る。受付が受けなければ外して理由を書く(描画は続ける)
988
993
  splats = [(n, ap) for n, ap in todo if is_splat_asset(n)]
989
- todo = [(n, ap) for n, ap in todo if not is_pro_asset(n) and not is_library_asset(n) and not is_splat_asset(n)]
994
+ # 11/16: シーケンサーの音のファイル(旗 JR_SCENE_AUDIO)も別に送る。受付が受けなければ外して理由を書く
995
+ sounds = [(n, ap) for n, ap in todo if is_sound_asset(n)]
996
+ todo = [(n, ap) for n, ap in todo if not is_pro_asset(n) and not is_library_asset(n) and not is_splat_asset(n)
997
+ and not is_sound_asset(n)]
990
998
  scene_id = out["scene_id"]
991
999
  if todo:
992
1000
  out = self.upload_assets(scene_id, todo)
@@ -1005,6 +1013,14 @@ class Client:
1005
1013
  raise
1006
1014
  missing += [f"{n} (this server does not take scans as assets yet; send the scan itself as the scene)"
1007
1015
  for n, _ in splats]
1016
+ if sounds:
1017
+ try:
1018
+ out = self.upload_assets(scene_id, sounds)
1019
+ except ClientError as exc:
1020
+ if exc.status != 400 or exc.error not in ("unsupported", "unsupported_input"):
1021
+ raise
1022
+ missing += [f"{n} (this server does not take sound files here; pack the sound into the .blend)"
1023
+ for n, _ in sounds]
1008
1024
  if libs:
1009
1025
  try:
1010
1026
  out = self.upload_assets(scene_id, libs)
@@ -857,6 +857,8 @@ OPT_IN: tuple[tuple[str, str, str, str], ...] = (
857
857
  # 11/12 スキャンの被写体だけ(受付の旗 JR_SPLAT_SUBJECT、server/splat.py)
858
858
  # 道具の説明には足さない(引数の説明だけ。11/9 の旗と同じ・審査中の道具の説明を変えない)
859
859
  ("JR_SPLAT_SUBJECT", "render_preview", "subject_only", ""),
860
+ # 11/14 v2 AGT-04 上限つきの自動の直し(受付の旗 JR_AUTO_FIX、server/auto_fix.py)。試し描きだけ
861
+ ("JR_AUTO_FIX", "render_preview", "auto_fix", ""),
860
862
  ("JR_SPLAT_SUBJECT", "render_final", "subject_only", ""),
861
863
  # 11/12 大きなスキャンを減らして描く(受付の旗 JR_SPLAT_REDUCE、server/splat.py)
862
864
  ("JR_SPLAT_REDUCE", "render_preview", "reduce_points", ""),
@@ -936,6 +938,9 @@ OPT_IN_PARAM_DOCS: dict[str, str] = {
936
938
  "Leave frames out. The reply's final_estimate is the time and price of every frame at full quality."),
937
939
  "full_turn": ("True with orbit=True (or preset='turntable'): preview the whole turn as up to 24 small frames in one sheet "
938
940
  "(labelled in degrees) instead of 4 angles; leave frames out. Preview only."),
941
+ "auto_fix": ("1-3: when the preview check says fix and suggests settings (fix_params), the service starts that many follow-up "
942
+ "previews with them by itself and stops when the check is ok, the score does not improve or a preview would be "
943
+ "charged; it never starts a final. Follow the reply's auto_fix.next_job with render_status. 0 = off."),
939
944
  "subject_only": ("Gaussian splats (.spz, 3DGS .ply) only: True keeps the scanned subject and what it stands on and removes the "
940
945
  "rest of the capture (sky, far scenery, haze, the floor); the file is not changed. Use the same value for the "
941
946
  "final as for the preview."),
@@ -747,6 +747,7 @@ def render_preview(
747
747
  camera_move: Annotated[str, D("camera_move", "")] = "",
748
748
  camera_angle: Annotated[float, D("camera_angle", 0.0)] = 0.0,
749
749
  changed_since: Annotated[str, D("changed_since", "")] = "",
750
+ auto_fix: Annotated[int, D("auto_fix", 0)] = 0,
750
751
  ) -> list[Any]:
751
752
  """Render a fast, cheap preview of a Blender scene on a JANCTION GPU and show the image. (full description on the tool)."""
752
753
  c = _client()
@@ -762,6 +763,7 @@ def render_preview(
762
763
  **_job_params(environment, environment_strength, environment_visible, blender, orbit, orbit_frames,
763
764
  orbit_elevation, orbit_target, orbit_distance, engine=engine),
764
765
  **mcp_common.opt_in_values(subject_only=(True if subject_only else None), # 11/12 旗 JR_SPLAT_SUBJECT
766
+ auto_fix=(int(auto_fix) if auto_fix else None), # 11/14 旗 JR_AUTO_FIX
765
767
  full_turn=(True if full_turn else None), # 11/12 旗 JR_FULL_TURN
766
768
  reduce_points=(True if reduce_points else None), # 11/12 旗 JR_SPLAT_REDUCE
767
769
  ocio_config=ocio_config or None, # 11/12 旗 JR_CUSTOM_OCIO
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: janction-render
3
- Version: 0.4.331
3
+ Version: 0.4.333
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "janction-render"
7
- version = "0.4.331"
7
+ version = "0.4.333"
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"