conformtools 0.6.14 → 0.6.16

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 (81) hide show
  1. package/README.md +6 -1
  2. package/dist/account-W7Z2MYZU.js +3 -0
  3. package/dist/{agent-hook-setup-RTQT5JEN.js → agent-hook-setup-JCIZG3Q3.js} +1 -1
  4. package/dist/{analysis-engine-UWIK7AYB.js → analysis-engine-DCHJHZ7W.js} +1 -1
  5. package/dist/{bridge-46P34WCD.js → bridge-UPSJ7F3S.js} +1 -1
  6. package/dist/browser/timeline_core_bg.wasm +0 -0
  7. package/dist/{chunk-CQSNVQQE.js → chunk-4RA57LTJ.js} +1 -1
  8. package/dist/chunk-5W57ITT2.js +10 -0
  9. package/dist/chunk-DLF5AKXT.js +10 -0
  10. package/dist/chunk-FLLB6UZJ.js +7 -0
  11. package/dist/{chunk-FXK53VEO.js → chunk-HOACOBAY.js} +1 -1
  12. package/dist/{chunk-YKKB27VF.js → chunk-IDJIOKXA.js} +1 -1
  13. package/dist/{chunk-L3HRAIDR.js → chunk-JL454FFL.js} +1 -1
  14. package/dist/chunk-JM5LHKTU.js +510 -0
  15. package/dist/chunk-JV7TZDKJ.js +3 -0
  16. package/dist/chunk-MGMDNGNX.js +6 -0
  17. package/dist/chunk-OWWXUNJF.js +7 -0
  18. package/dist/{chunk-NZLL44HU.js → chunk-QH5DTYSE.js} +1 -1
  19. package/dist/{chunk-BO462NEL.js → chunk-QRZO5GOI.js} +1 -1
  20. package/dist/chunk-RJD44NQU.js +5 -0
  21. package/dist/{chunk-PHAMF4JF.js → chunk-ROGMKTND.js} +2 -2
  22. package/dist/{chunk-764P7TUD.js → chunk-RVZQ3Y6N.js} +1 -1
  23. package/dist/{chunk-6WLSIH2N.js → chunk-UAURERD3.js} +1 -1
  24. package/dist/{chunk-MOSLNNO5.js → chunk-UKXSKFL3.js} +1 -1
  25. package/dist/{chunk-EP4L2BWV.js → chunk-VETHR2O7.js} +1 -1
  26. package/dist/chunk-VWFEMXYZ.js +159 -0
  27. package/dist/chunk-X527E5VI.js +3 -0
  28. package/dist/{chunk-4BTTR6U3.js → chunk-XVZ7KJRI.js} +5 -5
  29. package/dist/{claude-setup-NGZ5NDYH.js → claude-setup-CM7G2YSG.js} +8 -8
  30. package/dist/cli.js +2 -2
  31. package/dist/demo-engine-CBFAAPPO.js +3 -0
  32. package/dist/engine-6YYXTF2Q.js +5 -0
  33. package/dist/framing-QYRCUEB5.js +3 -0
  34. package/dist/gfx-worker.js +1 -1
  35. package/dist/{h264-MAUQSLPY.js → h264-MAUVJTR4.js} +1 -1
  36. package/dist/{h264-mxf-2SZ66MPB.js → h264-mxf-2O4SAUTA.js} +1 -1
  37. package/dist/hook.js +1 -1
  38. package/dist/{host-relink-664IB3BC.js → host-relink-NVLUO73P.js} +1 -1
  39. package/dist/hosted-2XACQY7J.js +3 -0
  40. package/dist/hosts-GEXAZFB3.js +3 -0
  41. package/dist/http.js +3 -3
  42. package/dist/{inspect-ZM7IW23B.js → inspect-YIFLNOJW.js} +2 -2
  43. package/dist/isobmff-MTMGQKLK.js +3 -0
  44. package/dist/{mc-video-KMWTRVES.js → mc-video-HRZC7HGH.js} +1 -1
  45. package/dist/mcp.js +1 -1
  46. package/dist/{media-MSMXMA6E.js → media-WC4ZVKIL.js} +1 -1
  47. package/dist/{mxf-GOWHEH4A.js → mxf-J5QHA3VY.js} +1 -1
  48. package/dist/{ops-FI2NBTYK.js → ops-XIUVNJE2.js} +1 -1
  49. package/dist/probe-GIAKRPFV.js +3 -0
  50. package/dist/{r3d-LO5Z6DEX.js → r3d-2PCOFR2Z.js} +1 -1
  51. package/dist/resolve-bridge.py +116 -146
  52. package/dist/{sequence-patch-C2QRIT5V.js → sequence-patch-DFGEAJGB.js} +1 -1
  53. package/dist/{still-6FU7ALUV.js → still-4UR35GZH.js} +1 -1
  54. package/dist/{store-JNWELX35.js → store-MWNX47IK.js} +1 -1
  55. package/dist/timeline-Z3KD2CJX.js +3 -0
  56. package/dist/wasm/udf_bg.wasm +0 -0
  57. package/package.json +5 -5
  58. package/dist/account-F54SG45Q.js +0 -3
  59. package/dist/chunk-5PTQAFU5.js +0 -158
  60. package/dist/chunk-BTS3DFPD.js +0 -7
  61. package/dist/chunk-DP4KJ3KL.js +0 -514
  62. package/dist/chunk-EKTETRKB.js +0 -6
  63. package/dist/chunk-J43UCJ6G.js +0 -4
  64. package/dist/chunk-MJBJI6DV.js +0 -3
  65. package/dist/chunk-O372NT7V.js +0 -7
  66. package/dist/chunk-OD445COC.js +0 -7
  67. package/dist/chunk-P3EOFAZR.js +0 -10
  68. package/dist/chunk-XI6XF7FQ.js +0 -3
  69. package/dist/chunk-YYR3FM6A.js +0 -5
  70. package/dist/engine-6ACEWA4S.js +0 -5
  71. package/dist/framing-4HAHAG4I.js +0 -3
  72. package/dist/hosted-L26AGRIY.js +0 -3
  73. package/dist/hosts-BGWD7BKM.js +0 -3
  74. package/dist/isobmff-6ZPEXUF4.js +0 -3
  75. package/dist/nuke/panel/python/Startup/conformtools_nuke_startup.py +0 -44
  76. package/dist/nuke/panel/python/conformtools_nuke/__init__.py +0 -10
  77. package/dist/nuke/panel/python/conformtools_nuke/panel.py +0 -217
  78. package/dist/nuke/panel/python/conformtools_nuke/verbs.py +0 -837
  79. package/dist/probe-ZDX6XNRF.js +0 -3
  80. package/dist/resolve-presets/conform.tools.xml +0 -127
  81. package/dist/timeline-WVETLJZN.js +0 -3
@@ -6,8 +6,8 @@
6
6
  Resolve's scripting API exists only for Python and Lua, so this file is the one place the engine
7
7
  speaks it. It is glue, not know-how: every decision (what to import, what to render, what the
8
8
  findings mean) is made in TypeScript; this file performs one host action and reports exactly what
9
- Resolve said. One process per action: connecting costs ~0.1 s, and a crashed call can never wedge
10
- the next one.
9
+ Resolve said. `bridge.py serve` keeps one process connected (the engine's default: adapter.ts); a call
10
+ that hangs gets the process killed and the next call starts a fresh one.
11
11
 
12
12
  Safety, kept by every action (see mcp/hosts/contract.ts):
13
13
  - read-only unless the action's name says otherwise
@@ -166,17 +166,23 @@ def _project(resolve, p, args):
166
166
  want_clips = bool(args.get("clips"))
167
167
  finds = [str(q) for q in args.get("find") or []]
168
168
  found = dict((q, []) for q in finds)
169
+ # the bin selected in the Media Pool (0.9.5 All Clips read every timeline in it): its path, "" = Master
170
+ cur = mp.GetCurrentFolder()
171
+ cur_id = cur.GetUniqueId() if cur and hasattr(cur, "GetUniqueId") else None
172
+ selected = [None]
169
173
 
170
174
  # ponytail: GetClipProperty per clip walks the whole pool; fine for thousands, page it if it ever is not
171
175
  def walk(folder, path):
172
176
  clips = folder.GetClipList() or []
173
177
  node = {"path": path, "clips": len(clips), "folders": []}
178
+ if cur_id and hasattr(folder, "GetUniqueId") and folder.GetUniqueId() == cur_id:
179
+ selected[0] = path
174
180
  if want_clips or finds:
175
181
  rows = []
176
182
  for c in clips:
177
183
  pr = c.GetClipProperty() or {}
178
184
  row = {"id": c.GetUniqueId(), "name": c.GetName(), "file": pr.get("File Path") or "", "start_tc": pr.get("Start TC") or "",
179
- "usage": pr.get("Usage") or "", "folder": path, "type": pr.get("Type") or "",
185
+ "usage": pr.get("Usage") or "", "folder": path, "type": pr.get("Type") or "", "duration": pr.get("Duration") or "",
180
186
  # Grade Tracer's camera-roll clue (0.9.5 metadata.py: "Camera #", else "Camera")
181
187
  "camera": pr.get("Camera #") or pr.get("Camera") or ""}
182
188
  rows.append(row)
@@ -219,9 +225,11 @@ def _project(resolve, p, args):
219
225
  if args.get("grades"):
220
226
  extra["grades"] = _grab_grades(resolve, p, args["grades"], args["grades_dir"])
221
227
  pm = resolve.GetProjectManager()
222
- return {"ok": True, "project": p.GetName(), "pool": walk(mp.GetRootFolder(), ""), "found": found,
228
+ pool = walk(mp.GetRootFolder(), "")
229
+ return {"ok": True, "project": p.GetName(), "pool": pool, "found": found, "selected_bin": selected[0],
223
230
  "projects": [n for n in (pm.GetProjectListInCurrentFolder() or []) if n != p.GetName()], **extra,
224
- "jobs": jobs, "timeline": t.GetName() if t else None, "tracks": tracks_of(p, t) if t else [],
231
+ "jobs": jobs, "render_presets": [n for n in (p.GetRenderPresetList() or []) if not n.startswith("__ct_")],
232
+ "timeline": t.GetName() if t else None, "tracks": tracks_of(p, t) if t else [],
225
233
  "timelines": [x.GetName() for x in timelines(p)], "page": resolve.GetCurrentPage(),
226
234
  **({"used": sorted(used)} if used is not None else {})}
227
235
 
@@ -792,7 +800,7 @@ def a_render_start(resolve, args):
792
800
  if not os.path.isdir(target):
793
801
  os.makedirs(target)
794
802
  page = resolve.GetCurrentPage()
795
- if args.get("renderplugin") is not None or args.get("preset") or args.get("audio_tracks"):
803
+ if args.get("preset") or args.get("audio_tracks"):
796
804
  _deliver_ready(resolve, p)
797
805
  prev_tl = p.GetCurrentTimeline()
798
806
  tl = find_timeline(p, args.get("timeline"))
@@ -808,7 +816,7 @@ def a_render_start(resolve, args):
808
816
  set_video_tracks(resolve, tl, off, True)
809
817
  resolve.OpenPage(page)
810
818
  fail("tracks_not_disabled", "Resolve did not switch off video track(s) %s; nothing was queued" % bad)
811
- if args.get("renderplugin") is not None or args.get("preset"):
819
+ if args.get("preset"):
812
820
  resolve.OpenPage("deliver")
813
821
  try:
814
822
  return _queue_and_start(resolve, p, tl, args, target, page, prev_tl, off)
@@ -829,12 +837,6 @@ def _queue_and_start(resolve, p, tl, args, target, page, prev_tl, off):
829
837
  if mode not in (None, 1):
830
838
  p.SetCurrentRenderMode(1)
831
839
  routed, rejected = None, []
832
- if args.get("renderplugin") is not None:
833
- args["preset"] = QC_PRESET
834
- for f in QC_REPORTS: # a stale report from an earlier run is the classic wrong answer
835
- if os.path.exists(os.path.join(target, f)):
836
- os.remove(os.path.join(target, f))
837
- _write_qc_config(target, args["renderplugin"])
838
840
  try:
839
841
  if args.get("preset"):
840
842
  if args["preset"] not in (p.GetRenderPresetList() or []):
@@ -871,8 +873,8 @@ def _queue_and_start(resolve, p, tl, args, target, page, prev_tl, off):
871
873
  p.SetCurrentTimeline(prev_tl)
872
874
  resolve.OpenPage(page)
873
875
  return {"ok": True, "job_id": job, "queued": True, "timeline": tl.GetName(), "project": p.GetName(), "rejected_settings": rejected}
874
- # Starting a job loads ITS settings into the Deliver panel (measured on 21.1.1: ProRes 422 HQ
875
- # before a renderplugin scan, the plugin codec after), so the snapshot is kept and loaded again
876
+ # Starting a job loads ITS settings into the Deliver panel (measured on 21.1.1: the Deliver panel
877
+ # showed the job's codec afterwards), so the snapshot is kept and loaded again
876
878
  # when the job ends (render_finish), then deleted.
877
879
  if not p.StartRendering([job]):
878
880
  p.DeleteRenderJob(job)
@@ -956,47 +958,7 @@ def a_render_finish(resolve, args, state=None):
956
958
  return out
957
959
 
958
960
 
959
- # ── the renderplugin (conform.tools render plugin) ───────────────────────────────────────
960
- #
961
- # Resolve's scripting API cannot select a plugin codec (GetRenderFormats omits it), but a saved
962
- # render preset can: it stores "<pluginUUID>:<codecUUID>". We ship that preset
963
- # (presets/conform.tools.xml) and import it with Resolve.ImportRenderPreset, which names the preset
964
- # after the FILE and also SELECTS it, so the user's Deliver settings are snapshotted around it.
965
- # Presets live per Resolve database: ensure on every QC run.
966
-
967
- # Resolve names an imported preset after its FILE (presets/conform.tools.xml) and may cut the name at
968
- # the first dot ("conform"); a cut name is renamed back below. Earlier names of ours are renamed to it.
969
- QC_PRESET = "conform.tools"
970
- LEGACY_PRESETS = ("CONFORM.TOOLS", "CONFORM.TOOLS QC", "Conform Tools QC")
971
- QC_REPORTS = ("qc_report.json", "qc_audio.json", "qc_filmstrip.jpg")
972
-
973
-
974
- def _codec_id(xml_text):
975
- import re
976
- m = re.search(r"<RecordFormatSubType>([^<]+)</RecordFormatSubType>", xml_text or "")
977
- return m.group(1).strip().upper() if m else ""
978
-
979
-
980
- def _saved_codec_id(resolve, name):
981
- """The codec a saved preset really selects (export it and read it); None when unknowable."""
982
- import glob
983
- import shutil
984
- import tempfile
985
- exporter = getattr(resolve, "ExportRenderPreset", None)
986
- if exporter is None:
987
- return None
988
- d = tempfile.mkdtemp(prefix="ct_preset_")
989
- try:
990
- exporter(name, d) # the 2nd argument is a DIRECTORY; returns True regardless: trust the file
991
- for f in glob.glob(os.path.join(d, "*.xml")):
992
- with open(f) as fh:
993
- return _codec_id(fh.read()) or None
994
- return None
995
- except Exception:
996
- return None
997
- finally:
998
- shutil.rmtree(d, ignore_errors=True)
999
-
961
+ # ── render presets: the user's Deliver settings kept around what we load ─────────────────
1000
962
 
1001
963
  def _keeping_settings(project, fn):
1002
964
  """Run fn() and put the user's Deliver settings back (import and load both SELECT a preset)."""
@@ -1010,18 +972,10 @@ def _keeping_settings(project, fn):
1010
972
  project.DeleteRenderPreset(keep)
1011
973
 
1012
974
 
1013
- def _rename_preset(project, src, dst):
1014
- project.LoadRenderPreset(src)
1015
- if not project.SaveAsNewRenderPreset(dst):
1016
- return False
1017
- project.DeleteRenderPreset(src)
1018
- return True
1019
-
1020
-
1021
975
  def _deliver_ready(resolve, project):
1022
976
  """Open the Deliver page and give its panel a moment before touching render presets, and sweep
1023
977
  snapshot presets an interrupted earlier run left behind (ours only: the __ct_keep_ prefix).
1024
- Measured 2026-10-01 on Resolve Studio 20.3.2: a first renderplugin run on a project whose Deliver
978
+ Measured 2026-10-01 on Resolve Studio 20.3.2: a first plugin-codec render on a project whose Deliver
1025
979
  page had never been opened aborted Resolve inside its Deliver panel (assertion
1026
980
  GetUseProjectTimelineFilter in UiDeliverPanelTimelineController); the same calls on a project
1027
981
  whose Deliver page had been opened ran clean. This is the precaution; the exact trigger is not
@@ -1036,70 +990,6 @@ def _deliver_ready(resolve, project):
1036
990
  return page
1037
991
 
1038
992
 
1039
- def a_renderplugin_preset(resolve, args):
1040
- """Make sure the conform.tools render preset exists and selects OUR codec. Never deletes a preset
1041
- the user named; replaces ours when it is stale; renames a legacy name of ours. The user's page and
1042
- Deliver settings are put back."""
1043
- _pm, p = project_or_fail(resolve)
1044
- with open(args["preset_path"]) as fh:
1045
- expected = _codec_id(fh.read())
1046
- page = _deliver_ready(resolve, p)
1047
- try:
1048
- presets = p.GetRenderPresetList() or []
1049
- if QC_PRESET in presets:
1050
- got = _saved_codec_id(resolve, QC_PRESET)
1051
- if got is None or got == expected:
1052
- return {"ok": True, "preset": QC_PRESET, "imported": False}
1053
- _keeping_settings(p, lambda: p.DeleteRenderPreset(QC_PRESET))
1054
- replaced = True
1055
- else:
1056
- replaced = False
1057
- for legacy in LEGACY_PRESETS:
1058
- if legacy in presets:
1059
- got = _saved_codec_id(resolve, legacy)
1060
- if got is None or got == expected:
1061
- if _keeping_settings(p, lambda: _rename_preset(p, legacy, QC_PRESET)):
1062
- return {"ok": True, "preset": QC_PRESET, "imported": False, "renamed_from": legacy}
1063
- importer = getattr(resolve, "ImportRenderPreset", None)
1064
- if importer is None:
1065
- fail("no_preset_import", "this Resolve cannot import render presets (Resolve 19 or later can)")
1066
- before = set(p.GetRenderPresetList() or [])
1067
- _keeping_settings(p, lambda: importer(os.path.abspath(args["preset_path"])))
1068
- after = p.GetRenderPresetList() or []
1069
- if QC_PRESET not in after:
1070
- new = [x for x in after if x not in before]
1071
- if len(new) == 1: # Resolve may cut the name at the first dot
1072
- _keeping_settings(p, lambda: _rename_preset(p, new[0], QC_PRESET))
1073
- if QC_PRESET not in (p.GetRenderPresetList() or []):
1074
- fail("preset_import_failed", "Resolve did not import the conform.tools render preset")
1075
- return {"ok": True, "preset": QC_PRESET, "imported": True, "replaced": replaced}
1076
- finally:
1077
- if resolve.GetCurrentPage() != page:
1078
- resolve.OpenPage(page)
1079
-
1080
-
1081
- def _write_qc_config(folder, config):
1082
- """<render folder>/qc_config.txt, flat key=value lines the codec reads at its first frame. No config:
1083
- remove any stale one so the codec runs every check."""
1084
- path = os.path.join(folder, "qc_config.txt")
1085
- if not config:
1086
- if os.path.exists(path):
1087
- os.remove(path)
1088
- return
1089
- lines = ["color_space=%s" % (config.get("color_space") or "sdr_rec709")]
1090
- if config.get("id"):
1091
- lines.append("template_id=%s" % config["id"])
1092
- for check, params in (config.get("checks") or {}).items():
1093
- params = params or {}
1094
- lines.append("%s.enabled=%d" % (check, 1 if params.get("enabled", True) else 0))
1095
- for k, v in params.items():
1096
- if k != "enabled":
1097
- lines.append("%s.%s=%s" % (check, k, int(v) if isinstance(v, bool) else v))
1098
- # "\n" on every platform: Windows' text mode would end each line "\r\n" (the codec's lines then carry a "\r")
1099
- with open(path, "w", newline="\n") as fh:
1100
- fh.write("\n".join(lines) + "\n")
1101
-
1102
-
1103
993
  def a_clips(resolve, args):
1104
994
  """The video items of a timeline (absolute frames, end exclusive) + its start frame and raster:
1105
995
  what maps a measured frame to the clip that composites it."""
@@ -1252,6 +1142,8 @@ def _item_row(it, kind, track, t0):
1252
1142
  "nodes": int(it.GetNodeGraph().GetNumNodes() or 0) if kind == "video" and it.GetNodeGraph() else 0,
1253
1143
  "stacks": _stacks(it) if kind == "video" else [],
1254
1144
  "media_id": mpi.GetUniqueId() if mpi else "",
1145
+ # Resolve's own word on the media (the viewer greys only what Resolve has offline)
1146
+ "online": (mpi.GetClipProperty("Online Status") or "") != "Offline" if mpi else None,
1255
1147
  "src_in": _int_or_none(it.GetSourceStartFrame) if kind == "video" else None,
1256
1148
  # 21.1: the clip's retime and fades (Reconform carries them; Edit Index+ lists them)
1257
1149
  "speed": (it.GetSpeed() or {}).get("Percentage") if hasattr(it, "GetSpeed") else None,
@@ -1374,6 +1266,10 @@ def _probe_selection(t):
1374
1266
  def _items(p, args):
1375
1267
  t = find_timeline(p, args.get("timeline"))
1376
1268
  t0 = int(t.GetStartFrame())
1269
+ if args.get("follow"):
1270
+ # where the artist is, and nothing else (the window follows this several times a second): no clip walk, and
1271
+ # never ColorMatchProbe, whose widget scan from its own thread crashed Resolve under a fast poll (21.1, 2026-11-04)
1272
+ return {"ok": True, "project": p.GetName(), "timeline": t.GetName(), "start_frame": t0, "playhead_tc": t.GetCurrentTimecode() or ""}
1377
1273
  if args.get("selected"):
1378
1274
  # what the artist has selected in Resolve's timeline right now (GetSelectedClips, Resolve 21), addressed
1379
1275
  # like every item row: kind + track + start
@@ -1391,7 +1287,7 @@ def _items(p, args):
1391
1287
  probe = _probe_selection(t)
1392
1288
  for it in probe.get("items", []):
1393
1289
  add(it)
1394
- return {"ok": True, "timeline": t.GetName(), "start_frame": t0, "selected": out,
1290
+ return {"ok": True, "project": p.GetName(), "timeline": t.GetName(), "start_frame": t0, "selected": out, "playhead_tc": t.GetCurrentTimecode() or "",
1395
1291
  **({"probe": True, "node": probe["node"]} if probe.get("on") else {})}
1396
1292
  kinds = [args["kind"]] if args.get("kind") else ["video", "audio"]
1397
1293
  out = []
@@ -1405,7 +1301,8 @@ def _items(p, args):
1405
1301
  "layers": int(p.GetSetting("nodeStackLayers") or 1), "marker_data": _marker_data(t),
1406
1302
  "playhead_tc": t.GetCurrentTimecode() or "",
1407
1303
  "raster": list(_raster(t)),
1408
- **({"output_blanking": _blanking_px(t, *_raster(t))} if hasattr(t, "GetOutputBlanking") else {})}
1304
+ # only when asked: Resolve 21.1 flips to the Color page to answer it (QC's Blanking asks, no other read)
1305
+ **({"output_blanking": _blanking_px(t, *_raster(t))} if args.get("blanking") and hasattr(t, "GetOutputBlanking") else {})}
1409
1306
 
1410
1307
 
1411
1308
  def _graph(it, t, where):
@@ -1456,6 +1353,13 @@ def _blanking_px(t, w, h):
1456
1353
  return {"top": max(0, round(f("Top", 0))), "bottom": max(0, round(h - f("Bottom", h))),
1457
1354
  "left": max(0, round(f("Left", 0))), "right": max(0, round(w - f("Right", w)))}
1458
1355
 
1356
+ def _add_marker(h, frame, color, name, note, duration, data):
1357
+ """AddMarker, and an unnamed marker kept: Resolve (21.1) refuses an empty name (measured 2026-11-04), so a marker the
1358
+ artist left unnamed, moved or copied or put back, would be lost; a single space reads as blank."""
1359
+ return bool(h.AddMarker(frame, color, name, note, duration, data)) or (
1360
+ not (name or "").strip() and bool(h.AddMarker(frame, color, " ", note, duration, data)))
1361
+
1362
+
1459
1363
  def _op(p, t, op, find):
1460
1364
  """One edit → {ok, undo:[ops], detail?}. Raises on a bad address; returns ok False when Resolve refuses."""
1461
1365
  kind = op["op"]
@@ -1466,7 +1370,7 @@ def _op(p, t, op, find):
1466
1370
  here = (h.GetMarkers() or {})
1467
1371
  old = here.get(f) or here.get(float(f))
1468
1372
  addr = {"item": op["item"]} if op.get("item") else {}
1469
- if kind == "marker_add" and old and op.get("data") and (old.get("customData") or "") != op["data"]:
1373
+ if kind == "marker_add" and old and op.get("data") and (old.get("customData") or "") != op["data"] and not op.get("overwrite"):
1470
1374
  # Resolve holds one marker per frame and AddMarker over it replaces it: a tool's marker (tagged `data`)
1471
1375
  # never takes the frame of someone else's (the artist's, another tool's); it goes to the next free frame
1472
1376
  g = f + 1
@@ -1498,10 +1402,10 @@ def _op(p, t, op, find):
1498
1402
  duration=int(old["duration"]), data=old.get("customData", ""))]
1499
1403
  else:
1500
1404
  undo = [dict(addr, op="marker_delete", frame=to)]
1501
- ok = h.AddMarker(to, new.get("color", "Blue"), new.get("name", ""), new.get("note", ""),
1405
+ ok = _add_marker(h, to, new.get("color", "Blue"), new.get("name", ""), new.get("note", ""),
1502
1406
  max(1, int(new.get("duration", 1))), new.get("customData", "") or "")
1503
1407
  if not ok and old: # put the old one back rather than lose it
1504
- h.AddMarker(f, old["color"], old["name"], old["note"], int(old["duration"]), old.get("customData", ""))
1408
+ _add_marker(h, f, old["color"], old["name"], old["note"], int(old["duration"]), old.get("customData", ""))
1505
1409
  return {"ok": bool(ok), "undo": undo if ok else []}
1506
1410
  if kind == "timeline_output_blanking":
1507
1411
  # the timeline's output blanking (21.1+), as pixels per edge; Resolve speaks edge coordinates (0.9.5
@@ -1546,14 +1450,16 @@ def _op(p, t, op, find):
1546
1450
  # 0.9.5 Reconformer's Discard: a built copy deleted by name — only one whose name ends _RECONFORMED, so this never
1547
1451
  # deletes a real timeline; when it is open, B (its name without the suffix) is opened first. No undo (said).
1548
1452
  name = str(op.get("timeline") or "")
1549
- if not name.endswith("_RECONFORMED"):
1453
+ # a second build of the same B is "..._RECONFORMED (2)" (unique_name): a build too
1454
+ m = re.match(r"^(.*)_RECONFORMED(?: \(\d+\))?$", name)
1455
+ if not m:
1550
1456
  return {"ok": False, "undo": [], "detail": "only a ..._RECONFORMED timeline (a Reconform build) can be discarded"}
1551
1457
  tl = find_timeline(p, name) if name in [x.GetName() for x in timelines(p)] else None
1552
1458
  if tl is None:
1553
1459
  return {"ok": True, "undo": [], "detail": "already gone"}
1554
1460
  cur = p.GetCurrentTimeline()
1555
1461
  if cur is not None and cur.GetUniqueId() == tl.GetUniqueId():
1556
- base = name[: -len("_RECONFORMED")]
1462
+ base = m.group(1)
1557
1463
  if base in [x.GetName() for x in timelines(p)]:
1558
1464
  p.SetCurrentTimeline(find_timeline(p, base))
1559
1465
  return {"ok": bool(p.GetMediaPool().DeleteTimelines([tl])), "undo": [], "detail": "deleted (a deleted timeline cannot be undone)"}
@@ -1575,6 +1481,14 @@ def _op(p, t, op, find):
1575
1481
  n, f = int(round(fps)), int(tl.GetStartFrame()) + int(op.get("frame", 0))
1576
1482
  tc = "%02d:%02d:%02d:%02d" % (f // (3600 * n), f // (60 * n) % 60, f // n % 60, f % n)
1577
1483
  return {"ok": bool(tl.SetCurrentTimecode(tc)), "timeline": tl.GetName(), "tc": tc, "undo": []}
1484
+ if kind == "pool_select":
1485
+ # a Media Pool bin made the selected one (the tools that act on "the selected bin": Odd Image Fixer, All Clips,
1486
+ # Clip Renamer): a selection, not an edit, so nothing to undo
1487
+ mp = p.GetMediaPool()
1488
+ folder, _missing = pool_folder(mp, op["folder"], False)
1489
+ if not folder:
1490
+ return {"ok": False, "undo": [], "detail": "no bin %s" % op["folder"]}
1491
+ return {"ok": bool(mp.SetCurrentFolder(folder)), "undo": []}
1578
1492
  if kind == "pool_folder":
1579
1493
  # a media pool folder path (A/B/C), each missing level made; an empty folder is harmless, so nothing to undo
1580
1494
  # (a tester's suggestion, 2026-11-02: build the job's folder tree before importing into it)
@@ -1645,16 +1559,21 @@ def _op(p, t, op, find):
1645
1559
  if item is not None:
1646
1560
  placed += 1
1647
1561
  off += int(not exact)
1648
- t.SetTrackName("video", k, op.get("name") or "V1 HISTORY")
1649
- if _RESOLVE is not None and _RESOLVE.GetCurrentPage() != "edit": # SetTrackEnable lands on the Edit page only (21.1)
1650
- _RESOLVE.OpenPage("edit")
1651
- t.SetTrackEnable("video", k, False)
1562
+ if placed == 0:
1563
+ # nothing landed (Resolve refused every piece): no empty HISTORY track left behind
1564
+ t.DeleteTrack("video", k)
1565
+ else:
1566
+ t.SetTrackName("video", k, op.get("name") or "V1 HISTORY")
1567
+ if _RESOLVE is not None and _RESOLVE.GetCurrentPage() != "edit": # SetTrackEnable lands on the Edit page only (21.1)
1568
+ _RESOLVE.OpenPage("edit")
1569
+ t.SetTrackEnable("video", k, False)
1652
1570
  finally:
1653
1571
  if was and was.GetUniqueId() != t.GetUniqueId():
1654
1572
  p.SetCurrentTimeline(was)
1655
- return {"ok": placed == len(op["pieces"]), "track": k, "placed": placed, "off_by_frame": off,
1656
- **({"detail": "not in the media pool: " + ", ".join(missing)} if missing else {}),
1657
- "undo": [{"op": "track_delete", "kind": "video", "index": k}]}
1573
+ return {"ok": placed == len(op["pieces"]), "track": k if placed else None, "placed": placed, "off_by_frame": off,
1574
+ **({"detail": "not in the media pool: " + ", ".join(missing)} if missing else
1575
+ {"detail": "Resolve placed none of A's %d pieces" % len(op["pieces"])} if not placed else {}),
1576
+ "undo": [{"op": "track_delete", "kind": "video", "index": k}] if placed else []}
1658
1577
  if kind == "drop_in":
1659
1578
  # 0.9.5 Reconformer "Drop in VFX": finished comps (files) into the pool's VFX bin and onto a new top video track,
1660
1579
  # each over its plate (pieces: path, comp frames src_in / src_out, record start / end from the head, the plate
@@ -1765,6 +1684,16 @@ def _op(p, t, op, find):
1765
1684
  return {"ok": whole is not None and ok, "undo": []}
1766
1685
  if kind == "track_delete":
1767
1686
  return {"ok": bool(t.DeleteTrack(op.get("kind", "video"), int(op["index"]))), "undo": []}
1687
+ if kind == "render_jobs_start":
1688
+ # jobs this app queued (0.9.5 Marker Batch Renderer's Start Render), by id: only those, never the rest of the
1689
+ # artist's queue; nothing to undo (a render is not an edit)
1690
+ if p.IsRenderingInProgress():
1691
+ return {"ok": False, "undo": [], "detail": "Resolve is already rendering"}
1692
+ have = set(j["JobId"] for j in (p.GetRenderJobList() or []))
1693
+ ids = [i for i in (op.get("ids") or []) if i in have]
1694
+ if not ids:
1695
+ return {"ok": False, "undo": [], "detail": "none of those jobs is in the render queue now"}
1696
+ return {"ok": bool(p.StartRendering(ids)), "undo": [], "detail": "%d job(s) started" % len(ids)}
1768
1697
  if kind == "render_jobs_delete":
1769
1698
  # 0.9.5 Marker Batch Renderer's "delete jobs": the render queue's all / completed / incomplete jobs. A deleted
1770
1699
  # job cannot be brought back (no undo); one rendering now is never touched
@@ -1791,7 +1720,10 @@ def _op(p, t, op, find):
1791
1720
  return {"ok": c.GetName() == op["name"],
1792
1721
  "undo": [{"op": "pool_rename", "clip": op["clip"], "name": old}]}
1793
1722
  if kind == "pool_move":
1723
+ # where each clip was, for the undo: Resolve's walk, else the bin the planner read it in (op["from"])
1724
+ given = op.get("from") or []
1794
1725
  olds = [_folder_path(mp, c) for c in clips]
1726
+ olds = [o if o is not None else (("" if given[i] == "Master" else given[i]) if i < len(given) and given[i] else None) for i, o in enumerate(olds)]
1795
1727
  cur = mp.GetCurrentFolder()
1796
1728
  folder, _missing = pool_folder(mp, op["folder"], create=bool(op.get("create", True)))
1797
1729
  mp.SetCurrentFolder(cur) # a bin made here became current; the user's stays theirs
@@ -1937,7 +1869,9 @@ def _op(p, t, op, find):
1937
1869
  vt = VERSION_TYPE[op.get("type", "local")]
1938
1870
  cur = (it.GetCurrentVersion() or {}).get("versionName", "")
1939
1871
  if op.get("add"):
1940
- ok = it.AddVersion(op["add"], vt)
1872
+ # AddVersion does not make the new version current (21.1, measured 2026-11-04): it is loaded, so what follows
1873
+ # (a traced grade copied in) lands in it and never on the version the artist had
1874
+ ok = it.AddVersion(op["add"], vt) and it.LoadVersionByName(op["add"], vt)
1941
1875
  return {"ok": bool(ok), "undo": [{"op": "version", "item": item, "type": op.get("type", "local"),
1942
1876
  "load": cur, "delete": op["add"]}]}
1943
1877
  if op.get("delete"):
@@ -2752,7 +2686,6 @@ ACTIONS = {
2752
2686
  "render_status": a_render_status,
2753
2687
  "render_cancel": a_render_cancel,
2754
2688
  "render_finish": a_render_finish,
2755
- "renderplugin_preset": a_renderplugin_preset,
2756
2689
  "clips": a_clips,
2757
2690
  "markers": a_markers,
2758
2691
  "items": a_items,
@@ -2948,5 +2881,42 @@ def _grade_node_kept(it, op, t=None):
2948
2881
  return refuse("the sized grade did not come through intact")
2949
2882
  return {"ok": True, "undo": back, "detail": (("on new local version %r" if made else "Sizing replaced on our own version %r") + " = %s + Sizing in node %d%s (%d node(s) kept)") % (name, src, num, " %r" % label if label else "", len(after))}
2950
2883
 
2884
+ def serve():
2885
+ """bridge.py serve: one request per stdin line ({"action", "args"}) -> one reply line, Resolve connected once and kept
2886
+ (a call costs ~20 ms instead of a python start + connect, ~1 s). A dead connection (Resolve quit or restarted) is
2887
+ made again on the next call."""
2888
+ global _RESOLVE
2889
+ while True:
2890
+ line = sys.stdin.readline()
2891
+ if not line:
2892
+ return
2893
+ try:
2894
+ try:
2895
+ req = json.loads(line)
2896
+ except ValueError as e:
2897
+ fail("usage", "request is not JSON: %s" % e)
2898
+ act = ACTIONS.get(req.get("action"))
2899
+ if act is None:
2900
+ fail("usage", "unknown action %r" % req.get("action"))
2901
+ try:
2902
+ alive = _RESOLVE is not None and _RESOLVE.GetVersionString()
2903
+ except Exception:
2904
+ alive = False
2905
+ if not alive:
2906
+ _RESOLVE = None
2907
+ _RESOLVE = connect()
2908
+ t0 = time.time()
2909
+ try:
2910
+ out = act(_RESOLVE, req.get("args") or {})
2911
+ except SystemExit:
2912
+ raise
2913
+ except Exception as e:
2914
+ fail("resolve_error", "%s: %s" % (type(e).__name__, e))
2915
+ out["ms"] = int((time.time() - t0) * 1000)
2916
+ reply(out)
2917
+ except SystemExit:
2918
+ pass # reply()/fail() wrote the answer line and "exit": in serve mode that ends the call, not the process
2919
+
2920
+
2951
2921
  if __name__ == "__main__":
2952
- main()
2922
+ serve() if sys.argv[1:2] == ["serve"] else main()
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a,b,c,d,e,f,g,h}from"./chunk-NZLL44HU.js";import"./chunk-PHAMF4JF.js";import"./chunk-XI6XF7FQ.js";import"./chunk-PSANHDZM.js";export{b as APPLIED,a as BACKUP_SUFFIX,e as applyPatch,c as patchFolders,g as patchName,d as planPatch,h as readRecord,f as undoPatch};
3
+ import{a,b,c,d,e,f,g,h}from"./chunk-QH5DTYSE.js";import"./chunk-ROGMKTND.js";import"./chunk-X527E5VI.js";import"./chunk-PSANHDZM.js";export{b as APPLIED,a as BACKUP_SUFFIX,e as applyPatch,c as patchFolders,g as patchName,d as planPatch,h as readRecord,f as undoPatch};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as l,f as o,g as m}from"./chunk-MJBJI6DV.js";import{a as s}from"./chunk-RGMTLNMF.js";import"./chunk-PSANHDZM.js";var h=e=>{let t=e.split(/[/\\]/).pop()??"",i=t.lastIndexOf(".");return i>0?t.slice(i+1).toLowerCase():""};async function f(e,t){try{if(e==="dpx"){let r=await(await import("./dpx-wasm-XACWNFPB.js")).inspectDpxWasm(t);return r?{width:r.width,height:r.height}:null}if(e==="exr"){let r=await(await import("./exr-wasm-FQBUR6QT.js")).inspectExrWasm(t);return r?{width:r.width,height:r.height}:null}if(e==="dng"){let r=await(await import("./dng-wasm-XCPPBXPZ.js")).inspectDngWasm(t);return r?{width:r.width,height:r.height}:null}if(e==="cr3"){let r=await(await import("./cr3-wasm-NYCB34ND.js")).inspectCr3Wasm(t);return r?{width:r.width,height:r.height}:null}if(e==="tif"||e==="tiff"){let r=await(await import("./tiff-wasm-N2S267IA.js")).inspectTiffWasm(t);return r?{width:r.width,height:r.height}:null}let i=await import("./still-wasm-RTPOMH7S.js"),n=await i.inspectPhotoRawWasm(e,t);if(n)return{width:n.width,height:n.height};let a=await i.decodeStillWasm(e,t);return a?{width:a.width,height:a.height}:null}catch{}return null}async function p(e){if(typeof createImageBitmap!="function"||typeof Blob>"u")return null;try{let t=await createImageBitmap(new Blob([e])),i={width:t.width,height:t.height};return t.close?.(),i.width>0&&i.height>0?i:null}catch{return null}}async function c(e){let t=h(e.filename),i=await m(t,o(e));if(i)return i;let n=s(t);if(n===null||n==="none")return null;let a;try{a=await e.read(0,e.fileSize)}catch{return null}return n==="wasm-decoder"?await f(t,a):await p(a)}function u(e){let t=l(e);return t==="jpg"?"jpeg":t==="tif"?"tiff":t||"still"}var R={async inspect(e){let t=e.parts[0],i=await c(t);return{id:t.filename,kind:"external",content_kind:"still",target_url:t.filename,available_range:null,reel_name:null,source_timecode:null,container:l(t.filename)||"still",codec:u(t.filename),size_bytes:t.fileSize,bitrate_bps:null,source_resolution_w:i?.width??null,source_resolution_h:i?.height??null,source_pixel_aspect:i?1:null,streams:[],vendor_metadata:{},binding_state:"unbound",raw_extraction:{},metadata:{}}},async extract(e){let t=e.parts.map((i,n)=>({kind:"frame",part:n,offset:0,length:i.fileSize,frame_in:n,frame_out:n}));return t.length===0?null:{v:1,container:l(e.parts[0].filename)||"still",codec:u(e.parts[0].filename),frame_count:t.length,granularity:"frame",segments:t,...e.parts.length>1?{part_names:e.parts.map(i=>i.filename)}:{}}},async sparsify(){throw new Error("stillFormat.sparsify: stills ship whole \u2014 no sparse plan exists")},async trim(){throw new Error("stillFormat.trim: stills ship whole \u2014 no trim plan exists")}};export{R as stillFormat};
3
+ import{a as l,f as o,g as m}from"./chunk-JV7TZDKJ.js";import{a as s}from"./chunk-RGMTLNMF.js";import"./chunk-PSANHDZM.js";var h=e=>{let t=e.split(/[/\\]/).pop()??"",i=t.lastIndexOf(".");return i>0?t.slice(i+1).toLowerCase():""};async function f(e,t){try{if(e==="dpx"){let r=await(await import("./dpx-wasm-XACWNFPB.js")).inspectDpxWasm(t);return r?{width:r.width,height:r.height}:null}if(e==="exr"){let r=await(await import("./exr-wasm-FQBUR6QT.js")).inspectExrWasm(t);return r?{width:r.width,height:r.height}:null}if(e==="dng"){let r=await(await import("./dng-wasm-XCPPBXPZ.js")).inspectDngWasm(t);return r?{width:r.width,height:r.height}:null}if(e==="cr3"){let r=await(await import("./cr3-wasm-NYCB34ND.js")).inspectCr3Wasm(t);return r?{width:r.width,height:r.height}:null}if(e==="tif"||e==="tiff"){let r=await(await import("./tiff-wasm-N2S267IA.js")).inspectTiffWasm(t);return r?{width:r.width,height:r.height}:null}let i=await import("./still-wasm-RTPOMH7S.js"),n=await i.inspectPhotoRawWasm(e,t);if(n)return{width:n.width,height:n.height};let a=await i.decodeStillWasm(e,t);return a?{width:a.width,height:a.height}:null}catch{}return null}async function p(e){if(typeof createImageBitmap!="function"||typeof Blob>"u")return null;try{let t=await createImageBitmap(new Blob([e])),i={width:t.width,height:t.height};return t.close?.(),i.width>0&&i.height>0?i:null}catch{return null}}async function c(e){let t=h(e.filename),i=await m(t,o(e));if(i)return i;let n=s(t);if(n===null||n==="none")return null;let a;try{a=await e.read(0,e.fileSize)}catch{return null}return n==="wasm-decoder"?await f(t,a):await p(a)}function u(e){let t=l(e);return t==="jpg"?"jpeg":t==="tif"?"tiff":t||"still"}var R={async inspect(e){let t=e.parts[0],i=await c(t);return{id:t.filename,kind:"external",content_kind:"still",target_url:t.filename,available_range:null,reel_name:null,source_timecode:null,container:l(t.filename)||"still",codec:u(t.filename),size_bytes:t.fileSize,bitrate_bps:null,source_resolution_w:i?.width??null,source_resolution_h:i?.height??null,source_pixel_aspect:i?1:null,streams:[],vendor_metadata:{},binding_state:"unbound",raw_extraction:{},metadata:{}}},async extract(e){let t=e.parts.map((i,n)=>({kind:"frame",part:n,offset:0,length:i.fileSize,frame_in:n,frame_out:n}));return t.length===0?null:{v:1,container:l(e.parts[0].filename)||"still",codec:u(e.parts[0].filename),frame_count:t.length,granularity:"frame",segments:t,...e.parts.length>1?{part_names:e.parts.map(i=>i.filename)}:{}}},async sparsify(){throw new Error("stillFormat.sparsify: stills ship whole \u2014 no sparse plan exists")},async trim(){throw new Error("stillFormat.trim: stills ship whole \u2014 no trim plan exists")}};export{R as stillFormat};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{A as a,B as b,C as c,D as d,E as e,F as f,G as g}from"./chunk-L3HRAIDR.js";import"./chunk-OD445COC.js";import"./chunk-EP4L2BWV.js";import"./chunk-PHAMF4JF.js";import"./chunk-XI6XF7FQ.js";import"./chunk-PSANHDZM.js";export{a as createSession,g as getExtra,c as getSession,b as lastSessionId,e as listSessions,f as saveExtra,d as updateSession};
3
+ import{A as a,B as b,C as c,D as d,E as e,F as f,G as g}from"./chunk-JL454FFL.js";import"./chunk-OWWXUNJF.js";import"./chunk-VETHR2O7.js";import"./chunk-ROGMKTND.js";import"./chunk-X527E5VI.js";import"./chunk-PSANHDZM.js";export{a as createSession,g as getExtra,c as getSession,b as lastSessionId,e as listSessions,f as saveExtra,d as updateSession};
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
+ import{$b as l,Qb as a,Rb as b,Sb as c,Tb as d,Ub as e,Vb as f,Wb as g,Xb as h,Yb as i,Zb as j,_b as k,ac as m,bc as n,cc as o,dc as p,ec as q,fc as r,gc as s,hc as t,ic as u}from"./chunk-VWFEMXYZ.js";import"./chunk-IN6XVTUS.js";import"./chunk-DLF5AKXT.js";import"./chunk-PFZVET7S.js";import"./chunk-6V4OEOOX.js";import"./chunk-RVZQ3Y6N.js";import"./chunk-ISKNIQVO.js";import"./chunk-JKOB3U54.js";import"./chunk-EEDLRRKU.js";import"./chunk-WJ5EWXP2.js";import"./chunk-YUO3UWPH.js";import"./chunk-DKGGJM6Z.js";import"./chunk-JV7TZDKJ.js";import"./chunk-RGMTLNMF.js";import"./chunk-XDI6CPPV.js";import"./chunk-UKXSKFL3.js";import"./chunk-4RA57LTJ.js";import"./chunk-FLLB6UZJ.js";import"./chunk-UAURERD3.js";import"./chunk-LVGGCRDW.js";import"./chunk-C2ESM27Z.js";import"./chunk-N34DQ6MH.js";import"./chunk-NU3X7P4N.js";import"./chunk-DPA26AOI.js";import"./chunk-JL454FFL.js";import"./chunk-OWWXUNJF.js";import"./chunk-VETHR2O7.js";import"./chunk-ROGMKTND.js";import"./chunk-X527E5VI.js";import"./chunk-PSANHDZM.js";export{k as OPERATION_KINDS,a as READ_FORMATS,l as applyOperation,n as applyOperationWithSources,t as consolidate,i as countFlags,b as detectFormat,d as detectTimelineFormat,u as judge,s as linkText,g as listClips,j as listFlags,h as listMedia,e as readTimeline,o as resolveTarget,r as routesText,c as sniffFormat,f as summarize,m as trackIndex,q as writeDestination,p as writeTimeline};
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conformtools",
3
- "version": "0.6.14",
3
+ "version": "0.6.16",
4
4
  "description": "conform.tools on your machine: timeline exchange, relink, media trim, delivery and auto conform, as MCP tools for Claude and other AI apps, a CLI and a local HTTP API",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -44,9 +44,9 @@
44
44
  "access": "public"
45
45
  },
46
46
  "optionalDependencies": {
47
- "conformtools-darwin-arm64": "0.6.14",
48
- "conformtools-darwin-x64": "0.6.14",
49
- "conformtools-linux-x64": "0.6.14",
50
- "conformtools-windows-x64": "0.6.14"
47
+ "conformtools-darwin-arm64": "0.6.16",
48
+ "conformtools-darwin-x64": "0.6.16",
49
+ "conformtools-linux-x64": "0.6.16",
50
+ "conformtools-windows-x64": "0.6.16"
51
51
  }
52
52
  }
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a,b,c,d,e,f,g,h,i,j,k,l,m}from"./chunk-OD445COC.js";import"./chunk-EP4L2BWV.js";import"./chunk-PHAMF4JF.js";import"./chunk-XI6XF7FQ.js";import"./chunk-PSANHDZM.js";export{b as NET_TIMEOUT_MS,c as _forgetOffline,d as accessToken,e as accountStatus,a as config,g as includesOf,l as login,m as logout,k as requireApp,i as requireEntitled,j as requireMcp,h as setAccountGate,f as statusText};