Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions loopx/capabilities/content_ops/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,14 @@ def _execute(self, composition_id: str, attempt: str) -> None:
if binding.binding is None:
raise ValueError("Provider unavailable")
checked = _owner("plan", {"plan": record["plan"]})
result = execute_extension_runtime_binding(binding.binding, request={"protocol": PROTOCOL,
raw_result = execute_extension_runtime_binding(binding.binding, request={"protocol": PROTOCOL,
"plan": record["plan"], "layout_style": checked["layout_style"],
"plan_digest": record["plan_digest"], "frame_count": record["frame_count"],
"sources": record["sources"], "attempt_directory": str(_safe_path(bundle, attempt)), "cancel_file": str(cancel)})
spatial = [{"id": shot["id"], "frames": round(shot["seconds"] * record["plan"]["fps"])}
for shot in record["plan"]["shots"] if shot["kind"] == "blender"]
full_frame = [shot["id"] for shot in record["plan"]["shots"] if shot.get("framing") == "full_frame"]
result = _owner("result", {"result": result, "plan_digest": record["plan_digest"],
result = _owner("result", {"result": raw_result, "plan_digest": record["plan_digest"],
"frame_count": record["frame_count"], "narration_mode": record["plan"]["narration"]["mode"],
**({"blender_shots": spatial} if spatial else {}),
**({"full_frame_shots": full_frame} if full_frame else {}),
Expand Down
4 changes: 2 additions & 2 deletions loopx/extensions/capability_admission.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def resolve_external_capability_binding(
f"multiple enabled, doctor-ready external providers expose "
f"`{capability_id}`: {providers}"
)
extension_id, capability, profile = matches[0]
extension_id, matched_capability, profile = matches[0]
operation_profile = _operation_from_profile(profile, operation)
permission = _token(
operation_profile.get("required_permission"),
Expand All @@ -143,7 +143,7 @@ def resolve_external_capability_binding(
"capability_id": capability_id,
"operation": deepcopy(operation_profile),
"integration_profile_digest": _token(
capability.get("integration_profile_digest"),
matched_capability.get("integration_profile_digest"),
"external capability integration_profile_digest",
),
}
Expand Down
14 changes: 8 additions & 6 deletions loopx/extensions/lark/goal_channel_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,12 +722,14 @@ def _resolve_operation_executor_binding(
)
if not isinstance(executor, Mapping):
raise ValueError("operation executor binding is unavailable")
return resolve_extension_binding(
str(executor["extension_id"]),
state_file=default_extension_state_file(runtime_root),
capability_id=OPERATION_EXECUTOR_CAPABILITY_ID,
protocol=str(executor["protocol"]),
permission=str(executor["permission"]),
return dict(
resolve_extension_binding(
str(executor["extension_id"]),
state_file=default_extension_state_file(runtime_root),
capability_id=OPERATION_EXECUTOR_CAPABILITY_ID,
protocol=str(executor["protocol"]),
permission=str(executor["permission"]),
)
)


Expand Down
Loading
Loading