storyboard-bridge 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storyboard-bridge",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Desktop bridge that powers a hosted Storyboard AI webapp with your own local Claude Code / Gemini CLI login (no API key).",
5
5
  "type": "module",
6
6
  "bin": {
@@ -314,8 +314,11 @@ def main():
314
314
  # model default is capability-aware: image caps use seedream (seedANCE is the VIDEO model — a common mixup).
315
315
  model = args.model or ("seedream-5.0-pro" if args.capability in ("edit", "text-to-image") else "seedance-2.0-pro")
316
316
  image_urls = args.image_url or ["https://www.gstatic.com/webp/gallery/1.jpg"] # default = permissive test image
317
- sess = BrowserSession(f"http://{args.host}:{args.port}", args.match)
317
+ sess = None
318
318
  try:
319
+ # inside the try so a connect/tab failure ("No open tab … Open tryinfer.com and log in") surfaces as a
320
+ # clean error EVENT the node can show — not a raw Python traceback dumped to the UI.
321
+ sess = BrowserSession(f"http://{args.host}:{args.port}", args.match)
319
322
  if args.resume_task:
320
323
  task_id = args.resume_task
321
324
  log(f"resuming task {task_id}")
@@ -333,7 +336,8 @@ def main():
333
336
  log(f"\n❌ {e}")
334
337
  sys.exit(1)
335
338
  finally:
336
- sess.close()
339
+ if sess:
340
+ sess.close()
337
341
 
338
342
  if res.get("images"):
339
343
  event(event="done", taskId=task_id, images=res["images"])