@hybridlabor-api/aos 4.4.1 → 4.4.2-beta.0
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/.agents/skills/firecrawl/SKILL.md +149 -0
- package/.agents/skills/firecrawl/rules/install.md +82 -0
- package/.agents/skills/firecrawl/rules/security.md +26 -0
- package/.agents/skills/firecrawl-agent/SKILL.md +58 -0
- package/.agents/skills/firecrawl-build/SKILL.md +39 -0
- package/.agents/skills/firecrawl-build-interact/SKILL.md +68 -0
- package/.agents/skills/firecrawl-build-onboarding/SKILL.md +103 -0
- package/.agents/skills/firecrawl-build-onboarding/references/auth-flow.md +39 -0
- package/.agents/skills/firecrawl-build-onboarding/references/project-setup.md +20 -0
- package/.agents/skills/firecrawl-build-onboarding/references/sdk-installation.md +17 -0
- package/.agents/skills/firecrawl-build-scrape/SKILL.md +69 -0
- package/.agents/skills/firecrawl-build-search/SKILL.md +69 -0
- package/.agents/skills/firecrawl-crawl/SKILL.md +59 -0
- package/.agents/skills/firecrawl-download/SKILL.md +70 -0
- package/.agents/skills/firecrawl-interact/SKILL.md +84 -0
- package/.agents/skills/firecrawl-map/SKILL.md +51 -0
- package/.agents/skills/firecrawl-scrape/SKILL.md +69 -0
- package/.agents/skills/firecrawl-search/SKILL.md +60 -0
- package/CLAUDE.md +573 -0
- package/README.de.md +0 -8
- package/README.md +0 -8
- package/README.pt.md +0 -8
- package/assets/brand/ao-ant-mark.svg +91 -0
- package/assets/brand/bdb-core-mark.svg +34 -0
- package/assets/brand/heimdall-guardian-mark.svg +16 -0
- package/assets/brand/memb-crystal-mark.svg +18 -0
- package/bin/aos-config.mjs +89 -0
- package/bin/aos-dashboard.mjs +608 -0
- package/bin/aos-uninstall.mjs +227 -0
- package/docs/sessions/audit-2026-09-14-silent-failures.md +114 -0
- package/docs/skills_table.md +0 -3
- package/installer.js +387 -237
- package/mcps/RhinoMCP/cc-plugin/.claude/settings.json +10 -0
- package/mcps/after-effects-mcp/build/index.js +840 -0
- package/mcps/after-effects-mcp/build/scripts/applyEffect.jsx +153 -0
- package/mcps/after-effects-mcp/build/scripts/applyEffectTemplate.jsx +218 -0
- package/mcps/after-effects-mcp/build/scripts/createComposition.jsx +71 -0
- package/mcps/after-effects-mcp/build/scripts/createShapeLayer.jsx +147 -0
- package/mcps/after-effects-mcp/build/scripts/createSolidLayer.jsx +114 -0
- package/mcps/after-effects-mcp/build/scripts/createTextLayer.jsx +115 -0
- package/mcps/after-effects-mcp/build/scripts/getLayerInfo.jsx +192 -0
- package/mcps/after-effects-mcp/build/scripts/getProjectInfo.jsx +90 -0
- package/mcps/after-effects-mcp/build/scripts/listCompositions.jsx +50 -0
- package/mcps/after-effects-mcp/build/scripts/mcp-bridge-auto.jsx +1773 -0
- package/mcps/after-effects-mcp/build/scripts/setLayerProperties.jsx +160 -0
- package/mcps/computer-use-mcp/dist/client.d.ts +150 -0
- package/mcps/computer-use-mcp/dist/client.js +136 -0
- package/mcps/computer-use-mcp/dist/entrypoint.d.ts +16 -0
- package/mcps/computer-use-mcp/dist/entrypoint.js +26 -0
- package/mcps/computer-use-mcp/dist/native.d.ts +212 -0
- package/mcps/computer-use-mcp/dist/native.js +50 -0
- package/mcps/computer-use-mcp/dist/server.d.ts +32 -0
- package/mcps/computer-use-mcp/dist/server.js +342 -0
- package/mcps/computer-use-mcp/dist/session.d.ts +101 -0
- package/mcps/computer-use-mcp/dist/session.js +2372 -0
- package/package.json +13 -4
- package/skills/global_config/aos-project-init/SKILL.md +97 -130
- package/skills/global_config/aos-project-init/assets/openwikiignore.template +62 -0
- package/skills/global_config/aos-project-init/scripts/aos-project-doctor.mjs +38 -1
- package/skills/global_config/aos-setup/SKILL.md +98 -8
- package/skills/global_config/aos-setup/scripts/aos-doctor.mjs +21 -2
- package/skills/global_config/ask-tim/SKILL.md +2 -7
- package/skills/global_config/openwiki-skill/scripts/openwiki_daemon.py +65 -12
- package/bin/setup-saas.mjs +0 -792
- package/mcps/blender-mcp-server/.dockerignore +0 -19
- package/mcps/blender-mcp-server/.github/workflows/ci.yml +0 -67
- package/mcps/blender-mcp-server/.github/workflows/publish-pypi.yml +0 -54
- package/mcps/blender-mcp-server/CHANGELOG.md +0 -64
- package/mcps/blender-mcp-server/CONTRIBUTING.md +0 -107
- package/mcps/blender-mcp-server/Dockerfile +0 -19
- package/mcps/blender-mcp-server/LICENSE +0 -21
- package/mcps/blender-mcp-server/README.md +0 -409
- package/mcps/blender-mcp-server/addon/__init__.py +0 -1440
- package/mcps/blender-mcp-server/addon/models.py +0 -223
- package/mcps/blender-mcp-server/pyproject.toml +0 -120
- package/mcps/blender-mcp-server/scripts/blender_bridge_request.py +0 -71
- package/mcps/blender-mcp-server/scripts/blender_create_test_cube.py +0 -49
- package/mcps/blender-mcp-server/scripts/blender_scene_info.py +0 -38
- package/mcps/blender-mcp-server/scripts/build_addon_zip.sh +0 -29
- package/mcps/blender-mcp-server/scripts/demos/README.md +0 -186
- package/mcps/blender-mcp-server/scripts/demos/dam_break_scene.py +0 -276
- package/mcps/blender-mcp-server/scripts/demos/open_dam_break_gui.py +0 -33
- package/mcps/blender-mcp-server/scripts/demos/pipe_movement_study.py +0 -518
- package/mcps/blender-mcp-server/scripts/demos/pipe_pressure_failure_scene.py +0 -806
- package/mcps/blender-mcp-server/scripts/demos/procedural_dam_break_scene.py +0 -600
- package/mcps/blender-mcp-server/scripts/demos/run_dam_break.py +0 -510
- package/mcps/blender-mcp-server/scripts/launch_blender_gui.py +0 -41
- package/mcps/blender-mcp-server/scripts/library/README.md +0 -64
- package/mcps/blender-mcp-server/scripts/library/apply_transforms.py +0 -46
- package/mcps/blender-mcp-server/scripts/library/camera.py +0 -51
- package/mcps/blender-mcp-server/scripts/library/collections.py +0 -65
- package/mcps/blender-mcp-server/scripts/library/create_mesh.py +0 -41
- package/mcps/blender-mcp-server/scripts/library/effector.py +0 -48
- package/mcps/blender-mcp-server/scripts/library/fluid_domain.py +0 -80
- package/mcps/blender-mcp-server/scripts/library/fluid_inflow.py +0 -98
- package/mcps/blender-mcp-server/scripts/library/frame_range.py +0 -35
- package/mcps/blender-mcp-server/scripts/library/keyframes.py +0 -59
- package/mcps/blender-mcp-server/scripts/library/rigid_body.py +0 -52
- package/mcps/blender-mcp-server/scripts/library/save_blend.py +0 -40
- package/mcps/blender-mcp-server/scripts/server_start.sh +0 -26
- package/mcps/blender-mcp-server/src/blender_mcp_server/__init__.py +0 -3
- package/mcps/blender-mcp-server/src/blender_mcp_server/headless.py +0 -330
- package/mcps/blender-mcp-server/src/blender_mcp_server/server.py +0 -606
- package/mcps/davinci-mcp-professional/.bandit +0 -35
- package/mcps/davinci-mcp-professional/.claude/commands/security-review.md +0 -191
- package/mcps/davinci-mcp-professional/.claude/settings.json +0 -1
- package/mcps/davinci-mcp-professional/.editorconfig +0 -27
- package/mcps/davinci-mcp-professional/.gitattributes +0 -207
- package/mcps/davinci-mcp-professional/.github/CODEOWNERS +0 -2
- package/mcps/davinci-mcp-professional/.github/ISSUE_TEMPLATE/bug_report.md +0 -33
- package/mcps/davinci-mcp-professional/.github/ISSUE_TEMPLATE/feature_request.md +0 -19
- package/mcps/davinci-mcp-professional/.github/PULL_REQUEST_TEMPLATE.md +0 -20
- package/mcps/davinci-mcp-professional/.github/SECURITY.md +0 -97
- package/mcps/davinci-mcp-professional/.github/dependabot.yml +0 -27
- package/mcps/davinci-mcp-professional/.github/workflows/ci.yml +0 -39
- package/mcps/davinci-mcp-professional/ATTRIBUTION.md +0 -4
- package/mcps/davinci-mcp-professional/AUTHORS.md +0 -9
- package/mcps/davinci-mcp-professional/BUGS.md +0 -55
- package/mcps/davinci-mcp-professional/CLAUDE.md +0 -229
- package/mcps/davinci-mcp-professional/CONTRIBUTING.md +0 -51
- package/mcps/davinci-mcp-professional/COPYING.md +0 -228
- package/mcps/davinci-mcp-professional/Doxyfile +0 -379
- package/mcps/davinci-mcp-professional/README.md +0 -143
- package/mcps/davinci-mcp-professional/SECURITY.md +0 -40
- package/mcps/davinci-mcp-professional/USING.md +0 -301
- package/mcps/davinci-mcp-professional/VERSION.md +0 -13
- package/mcps/davinci-mcp-professional/build.py +0 -169
- package/mcps/davinci-mcp-professional/claude_desktop_config_template.json +0 -11
- package/mcps/davinci-mcp-professional/hooks/ci-check.sh +0 -29
- package/mcps/davinci-mcp-professional/hooks/pre-push +0 -46
- package/mcps/davinci-mcp-professional/main.py +0 -40
- package/mcps/davinci-mcp-professional/mcp_server.py +0 -30
- package/mcps/davinci-mcp-professional/pyproject.toml +0 -115
- package/mcps/davinci-mcp-professional/security_audit.py +0 -379
- package/mcps/davinci-mcp-professional/src/davinci_mcp/__init__.py +0 -19
- package/mcps/davinci-mcp-professional/src/davinci_mcp/cli.py +0 -138
- package/mcps/davinci-mcp-professional/src/davinci_mcp/resolve_client.py +0 -342
- package/mcps/davinci-mcp-professional/src/davinci_mcp/resources/__init__.py +0 -60
- package/mcps/davinci-mcp-professional/src/davinci_mcp/server.py +0 -185
- package/mcps/davinci-mcp-professional/src/davinci_mcp/tools/__init__.py +0 -146
- package/mcps/davinci-mcp-professional/src/davinci_mcp/types.py +0 -125
- package/mcps/davinci-mcp-professional/src/davinci_mcp/utils/__init__.py +0 -19
- package/mcps/davinci-mcp-professional/src/davinci_mcp/utils/platform.py +0 -239
- package/mcps/davinci-mcp-professional/test.py +0 -186
- package/mcps/davinci-mcp-professional/uv.lock +0 -2073
- package/mcps/davinci-resolve-mcp/.claude/skills/media-analysis.md +0 -44
- package/mcps/davinci-resolve-mcp/.clinerules +0 -17
- package/mcps/davinci-resolve-mcp/.cursorrules +0 -17
- package/mcps/davinci-resolve-mcp/.github/copilot-instructions.md +0 -17
- package/mcps/davinci-resolve-mcp/.github/workflows/npm-publish.yml +0 -109
- package/mcps/davinci-resolve-mcp/.windsurfrules +0 -17
- package/mcps/davinci-resolve-mcp/AGENTS.md +0 -114
- package/mcps/davinci-resolve-mcp/CHANGELOG.md +0 -2648
- package/mcps/davinci-resolve-mcp/CLAUDE.md +0 -15
- package/mcps/davinci-resolve-mcp/LICENSE +0 -21
- package/mcps/davinci-resolve-mcp/README.md +0 -173
- package/mcps/davinci-resolve-mcp/SECURITY.md +0 -53
- package/mcps/davinci-resolve-mcp/bin/davinci-resolve-mcp.mjs +0 -450
- package/mcps/davinci-resolve-mcp/examples/README.md +0 -53
- package/mcps/davinci-resolve-mcp/examples/markers/README.md +0 -81
- package/mcps/davinci-resolve-mcp/examples/media/README.md +0 -94
- package/mcps/davinci-resolve-mcp/examples/timeline/README.md +0 -98
- package/mcps/davinci-resolve-mcp/install.py +0 -1687
- package/mcps/davinci-resolve-mcp/package.json +0 -52
- package/mcps/davinci-resolve-mcp/release-notes/v2.22.0.md +0 -51
- package/mcps/davinci-resolve-mcp/release-notes/v2.23.0.md +0 -51
- package/mcps/davinci-resolve-mcp/release-notes/v2.23.1.md +0 -35
- package/mcps/davinci-resolve-mcp/release-notes/v2.24.1.md +0 -32
- package/mcps/davinci-resolve-mcp/scripts/audit_api_parity.py +0 -275
- package/mcps/davinci-resolve-mcp/scripts/audit_readwrite_symmetry.py +0 -80
- package/mcps/davinci-resolve-mcp/scripts/doctor.py +0 -227
- package/mcps/davinci-resolve-mcp/scripts/gen_api_limitations.py +0 -144
- package/mcps/davinci-resolve-mcp/scripts/live_media_analysis_polish_probe.py +0 -65
- package/mcps/davinci-resolve-mcp/scripts/measure_bridge_cost.py +0 -65
- package/mcps/davinci-resolve-mcp/scripts/regen_panel_screenshots.py +0 -76
- package/mcps/davinci-resolve-mcp/src/__init__.py +0 -3
- package/mcps/davinci-resolve-mcp/src/analysis_dashboard.py +0 -15505
- package/mcps/davinci-resolve-mcp/src/batch_cli.py +0 -540
- package/mcps/davinci-resolve-mcp/src/control_panel.py +0 -13
- package/mcps/davinci-resolve-mcp/src/granular/__init__.py +0 -17
- package/mcps/davinci-resolve-mcp/src/granular/common.py +0 -741
- package/mcps/davinci-resolve-mcp/src/granular/folder.py +0 -420
- package/mcps/davinci-resolve-mcp/src/granular/gallery.py +0 -306
- package/mcps/davinci-resolve-mcp/src/granular/graph.py +0 -309
- package/mcps/davinci-resolve-mcp/src/granular/media_pool.py +0 -679
- package/mcps/davinci-resolve-mcp/src/granular/media_pool_item.py +0 -1020
- package/mcps/davinci-resolve-mcp/src/granular/media_storage.py +0 -179
- package/mcps/davinci-resolve-mcp/src/granular/project.py +0 -1654
- package/mcps/davinci-resolve-mcp/src/granular/resolve_control.py +0 -538
- package/mcps/davinci-resolve-mcp/src/granular/timeline.py +0 -1075
- package/mcps/davinci-resolve-mcp/src/granular/timeline_item.py +0 -2251
- package/mcps/davinci-resolve-mcp/src/resolve_mcp_server.py +0 -43
- package/mcps/davinci-resolve-mcp/src/server.py +0 -24116
- package/mcps/davinci-resolve-mcp/src/utils/__init__.py +0 -3
- package/mcps/davinci-resolve-mcp/src/utils/actor_identity.py +0 -46
- package/mcps/davinci-resolve-mcp/src/utils/analysis_caps.py +0 -678
- package/mcps/davinci-resolve-mcp/src/utils/analysis_memory.py +0 -755
- package/mcps/davinci-resolve-mcp/src/utils/analysis_runs.py +0 -307
- package/mcps/davinci-resolve-mcp/src/utils/analysis_store.py +0 -945
- package/mcps/davinci-resolve-mcp/src/utils/api_truth.py +0 -525
- package/mcps/davinci-resolve-mcp/src/utils/app_control.py +0 -319
- package/mcps/davinci-resolve-mcp/src/utils/audio_fairlight_live_probe.py +0 -263
- package/mcps/davinci-resolve-mcp/src/utils/brain_edits.py +0 -387
- package/mcps/davinci-resolve-mcp/src/utils/bridge_metrics.py +0 -76
- package/mcps/davinci-resolve-mcp/src/utils/cdl.py +0 -20
- package/mcps/davinci-resolve-mcp/src/utils/clip_query.py +0 -85
- package/mcps/davinci-resolve-mcp/src/utils/cloud_operations.py +0 -192
- package/mcps/davinci-resolve-mcp/src/utils/color_grade_live_probe.py +0 -444
- package/mcps/davinci-resolve-mcp/src/utils/contracts.py +0 -102
- package/mcps/davinci-resolve-mcp/src/utils/cut_ir.py +0 -115
- package/mcps/davinci-resolve-mcp/src/utils/dctl_templates.py +0 -368
- package/mcps/davinci-resolve-mcp/src/utils/deep_vision.py +0 -643
- package/mcps/davinci-resolve-mcp/src/utils/destructive_hook.py +0 -606
- package/mcps/davinci-resolve-mcp/src/utils/edit_engine.py +0 -737
- package/mcps/davinci-resolve-mcp/src/utils/embeddings.py +0 -922
- package/mcps/davinci-resolve-mcp/src/utils/entities.py +0 -579
- package/mcps/davinci-resolve-mcp/src/utils/extension_authoring_live_probe.py +0 -292
- package/mcps/davinci-resolve-mcp/src/utils/failure_tracker.py +0 -119
- package/mcps/davinci-resolve-mcp/src/utils/fuse_templates.py +0 -1968
- package/mcps/davinci-resolve-mcp/src/utils/fusion_composition_live_probe.py +0 -284
- package/mcps/davinci-resolve-mcp/src/utils/fusion_group_settings.py +0 -334
- package/mcps/davinci-resolve-mcp/src/utils/layout_presets.py +0 -333
- package/mcps/davinci-resolve-mcp/src/utils/mcp_stdio.py +0 -32
- package/mcps/davinci-resolve-mcp/src/utils/mcp_transport.py +0 -128
- package/mcps/davinci-resolve-mcp/src/utils/media_analysis.py +0 -7690
- package/mcps/davinci-resolve-mcp/src/utils/media_analysis_jobs.py +0 -805
- package/mcps/davinci-resolve-mcp/src/utils/media_pool_changes.py +0 -121
- package/mcps/davinci-resolve-mcp/src/utils/media_pool_ingest_live_probe.py +0 -592
- package/mcps/davinci-resolve-mcp/src/utils/multicam.py +0 -393
- package/mcps/davinci-resolve-mcp/src/utils/object_inspection.py +0 -301
- package/mcps/davinci-resolve-mcp/src/utils/page_lock.py +0 -75
- package/mcps/davinci-resolve-mcp/src/utils/platform.py +0 -157
- package/mcps/davinci-resolve-mcp/src/utils/proc.py +0 -26
- package/mcps/davinci-resolve-mcp/src/utils/project_cleanup.py +0 -73
- package/mcps/davinci-resolve-mcp/src/utils/project_lifecycle_live_probe.py +0 -376
- package/mcps/davinci-resolve-mcp/src/utils/project_lint.py +0 -131
- package/mcps/davinci-resolve-mcp/src/utils/project_properties.py +0 -601
- package/mcps/davinci-resolve-mcp/src/utils/project_spec.py +0 -459
- package/mcps/davinci-resolve-mcp/src/utils/readback.py +0 -91
- package/mcps/davinci-resolve-mcp/src/utils/render_deliver_live_probe.py +0 -384
- package/mcps/davinci-resolve-mcp/src/utils/resolve_ai_governance.py +0 -214
- package/mcps/davinci-resolve-mcp/src/utils/resolve_ai_ledger.py +0 -244
- package/mcps/davinci-resolve-mcp/src/utils/resolve_busy.py +0 -171
- package/mcps/davinci-resolve-mcp/src/utils/resolve_connection.py +0 -77
- package/mcps/davinci-resolve-mcp/src/utils/review_annotation_live_probe.py +0 -352
- package/mcps/davinci-resolve-mcp/src/utils/script_templates.py +0 -1193
- package/mcps/davinci-resolve-mcp/src/utils/shot_relationships.py +0 -544
- package/mcps/davinci-resolve-mcp/src/utils/structural_diff.py +0 -175
- package/mcps/davinci-resolve-mcp/src/utils/sync_detection.py +0 -889
- package/mcps/davinci-resolve-mcp/src/utils/timeline_brain_db.py +0 -826
- package/mcps/davinci-resolve-mcp/src/utils/timeline_conform_live_probe.py +0 -280
- package/mcps/davinci-resolve-mcp/src/utils/timeline_kernel_live_probe.py +0 -1092
- package/mcps/davinci-resolve-mcp/src/utils/timeline_kernel_probe.py +0 -185
- package/mcps/davinci-resolve-mcp/src/utils/timeline_title_text.py +0 -87
- package/mcps/davinci-resolve-mcp/src/utils/timeline_versioning.py +0 -730
- package/mcps/davinci-resolve-mcp/src/utils/update_check.py +0 -685
- package/mcps/vectorworks-mcp/.dockerignore +0 -8
- package/mcps/vectorworks-mcp/Dockerfile +0 -28
- package/mcps/vectorworks-mcp/README.md +0 -156
- package/mcps/vectorworks-mcp/app/__init__.py +0 -2
- package/mcps/vectorworks-mcp/app/api.py +0 -52
- package/mcps/vectorworks-mcp/app/chunking.py +0 -56
- package/mcps/vectorworks-mcp/app/config.py +0 -29
- package/mcps/vectorworks-mcp/app/embeddings.py +0 -28
- package/mcps/vectorworks-mcp/app/indexer.py +0 -106
- package/mcps/vectorworks-mcp/app/main.py +0 -33
- package/mcps/vectorworks-mcp/app/mcp_server.py +0 -71
- package/mcps/vectorworks-mcp/app/search.py +0 -54
- package/mcps/vectorworks-mcp/app/utils.py +0 -14
- package/mcps/vectorworks-mcp/data/.gitkeep +0 -1
- package/mcps/vectorworks-mcp/data/vw-app-help/VW2022_PluginScript.htm +0 -95
- package/mcps/vectorworks-mcp/data/vw-app-help/VW2022_ScriptEditor.htm +0 -266
- package/mcps/vectorworks-mcp/data/vw-app-help/VW2022_Scripting.htm +0 -106
- package/mcps/vectorworks-mcp/data/vw-app-help/VW2023_CreatingScriptedPlugins.htm +0 -327
- package/mcps/vectorworks-mcp/data/vw-app-help/VW2024_RunningScripts.htm +0 -116
- package/mcps/vectorworks-mcp/data/vw-devwiki/VS_Function_Reference_category.html +0 -2129
- package/mcps/vectorworks-mcp/data/vw-jp-ref/ObjectsSymbols.html +0 -2035
- package/mcps/vectorworks-mcp/data/vw-jp-ref/ScriptFunctionReference.html +0 -29
- package/mcps/vectorworks-mcp/design.md +0 -57
- package/mcps/vectorworks-mcp/docker-compose.yml +0 -18
- package/mcps/vectorworks-mcp/index/.gitkeep +0 -1
- package/mcps/vectorworks-mcp/index/meta.jsonl +0 -3956
- package/mcps/vectorworks-mcp/index/vw.faiss +0 -0
- package/mcps/vectorworks-mcp/requirements.txt +0 -10
- package/mcps/vectorworks-mcp/scripts/fetch_docs_minimal.sh +0 -84
- package/mcps/vectorworks-mcp/scripts/fetch_github_vectorworks.sh +0 -85
- package/mcps/vectorworks-mcp/templates/index.html +0 -40
- package/scripts/ecosystem-health-audit.js +0 -257
- package/skills/bdb-dev-os-skill/SKILL.md +0 -49
- package/skills/bdb-dev-os-skill/package.json +0 -11
- package/skills/bdbsaastraining/SKILL.md +0 -316
- package/skills/bdbsaastraining/references/exam-pool.md +0 -313
- package/skills/bdbsaastraining/references/interaction-modes.md +0 -94
- package/skills/bdbsaastraining/references/track-a-ai-agent.md +0 -111
- package/skills/bdbsaastraining/references/track-b-wordpress.md +0 -111
- package/skills/bdbsaastraining/references/track-c-mailserver.md +0 -107
- package/skills/bdbsaastraining/references/track-d-debian.md +0 -109
- package/skills/bdbsaastraining/references/track-e-custom.md +0 -83
- package/skills/bdbsaastraining/scripts/build_profile.py +0 -529
- package/skills/bdbsaastraining/scripts/generate_certificate.py +0 -161
- package/skills/bdbsaastraining/scripts/preflight_check.sh +0 -150
- package/skills/bdbsaastraining/templates/certificate_template.html +0 -508
- package/skills/global_config/bdb-ecosystem-health/SKILL.md +0 -68
- package/skills/global_config/bdbsaas-ops/SKILL.md +0 -16
- package/skills/global_config/bdbsaashost/SKILL.md +0 -125
|
@@ -1,1020 +0,0 @@
|
|
|
1
|
-
"""MediaPoolItem operations and metadata helpers."""
|
|
2
|
-
|
|
3
|
-
from src.granular.common import * # noqa: F401,F403
|
|
4
|
-
from src.utils.media_analysis import mark_registry_stale_for_clip as _mark_analysis_registry_stale
|
|
5
|
-
|
|
6
|
-
resolve = ResolveProxy()
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
def _invalidate_analysis_registry_for_clip(project, clip, *, reason: str) -> Optional[Dict[str, Any]]:
|
|
10
|
-
"""Best-effort: mark cached analysis stale after a Resolve clip replace.
|
|
11
|
-
|
|
12
|
-
Called from replace_clip / replace_media_pool_clip / preserve_sub_clip
|
|
13
|
-
after the Resolve API confirms the mutation. Failures here must NEVER
|
|
14
|
-
block the Resolve mutation — we return the result for diagnostics but
|
|
15
|
-
swallow exceptions so registry trouble does not corrupt the user's edit.
|
|
16
|
-
"""
|
|
17
|
-
if project is None or clip is None:
|
|
18
|
-
return None
|
|
19
|
-
try:
|
|
20
|
-
project_name = project.GetName() if hasattr(project, "GetName") else None
|
|
21
|
-
project_id = project.GetUniqueId() if hasattr(project, "GetUniqueId") else None
|
|
22
|
-
clip_id = clip.GetUniqueId() if hasattr(clip, "GetUniqueId") else None
|
|
23
|
-
media_id = clip.GetMediaId() if hasattr(clip, "GetMediaId") else None
|
|
24
|
-
source_file = None
|
|
25
|
-
try:
|
|
26
|
-
source_file = clip.GetClipProperty("File Path") if hasattr(clip, "GetClipProperty") else None
|
|
27
|
-
except Exception:
|
|
28
|
-
source_file = None
|
|
29
|
-
return _mark_analysis_registry_stale(
|
|
30
|
-
project_name=project_name,
|
|
31
|
-
project_id=project_id,
|
|
32
|
-
clip_id=clip_id,
|
|
33
|
-
media_id=media_id,
|
|
34
|
-
source_file=source_file,
|
|
35
|
-
reason=reason,
|
|
36
|
-
)
|
|
37
|
-
except Exception as exc: # noqa: BLE001 — never break a Resolve mutation
|
|
38
|
-
return {"success": False, "error": f"registry invalidation skipped: {type(exc).__name__}: {exc}"}
|
|
39
|
-
|
|
40
|
-
@mcp.tool(annotations=EXTERNAL_DESTRUCTIVE_TOOL)
|
|
41
|
-
def link_proxy_media(clip_name: str, proxy_file_path: str) -> str:
|
|
42
|
-
"""Link a proxy media file to a clip.
|
|
43
|
-
|
|
44
|
-
Args:
|
|
45
|
-
clip_name: Name of the clip to link proxy to
|
|
46
|
-
proxy_file_path: Path to the proxy media file
|
|
47
|
-
"""
|
|
48
|
-
pm, current_project = get_current_project()
|
|
49
|
-
if not current_project:
|
|
50
|
-
return "Error: No project currently open"
|
|
51
|
-
|
|
52
|
-
media_pool = current_project.GetMediaPool()
|
|
53
|
-
if not media_pool:
|
|
54
|
-
return "Error: Failed to get Media Pool"
|
|
55
|
-
|
|
56
|
-
# Find the clip by name (lazy walk; stops at the first match)
|
|
57
|
-
clips = iter_all_media_pool_clips(media_pool)
|
|
58
|
-
target_clip = None
|
|
59
|
-
|
|
60
|
-
for clip in clips:
|
|
61
|
-
if clip.GetName() == clip_name:
|
|
62
|
-
target_clip = clip
|
|
63
|
-
break
|
|
64
|
-
|
|
65
|
-
if not target_clip:
|
|
66
|
-
return f"Error: Clip '{clip_name}' not found in Media Pool"
|
|
67
|
-
|
|
68
|
-
# Check if file exists
|
|
69
|
-
if not os.path.exists(proxy_file_path):
|
|
70
|
-
return f"Error: Proxy file '{proxy_file_path}' does not exist"
|
|
71
|
-
|
|
72
|
-
try:
|
|
73
|
-
result = target_clip.LinkProxyMedia(proxy_file_path)
|
|
74
|
-
if result:
|
|
75
|
-
return f"Successfully linked proxy media '{proxy_file_path}' to clip '{clip_name}'"
|
|
76
|
-
else:
|
|
77
|
-
return f"Failed to link proxy media to clip '{clip_name}'"
|
|
78
|
-
except Exception as e:
|
|
79
|
-
return f"Error linking proxy media: {str(e)}"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
@mcp.tool()
|
|
83
|
-
def unlink_proxy_media(clip_name: str) -> str:
|
|
84
|
-
"""Unlink proxy media from a clip.
|
|
85
|
-
|
|
86
|
-
Args:
|
|
87
|
-
clip_name: Name of the clip to unlink proxy from
|
|
88
|
-
"""
|
|
89
|
-
pm, current_project = get_current_project()
|
|
90
|
-
if not current_project:
|
|
91
|
-
return "Error: No project currently open"
|
|
92
|
-
|
|
93
|
-
media_pool = current_project.GetMediaPool()
|
|
94
|
-
if not media_pool:
|
|
95
|
-
return "Error: Failed to get Media Pool"
|
|
96
|
-
|
|
97
|
-
# Find the clip by name (lazy walk; stops at the first match)
|
|
98
|
-
clips = iter_all_media_pool_clips(media_pool)
|
|
99
|
-
target_clip = None
|
|
100
|
-
|
|
101
|
-
for clip in clips:
|
|
102
|
-
if clip.GetName() == clip_name:
|
|
103
|
-
target_clip = clip
|
|
104
|
-
break
|
|
105
|
-
|
|
106
|
-
if not target_clip:
|
|
107
|
-
return f"Error: Clip '{clip_name}' not found in Media Pool"
|
|
108
|
-
|
|
109
|
-
try:
|
|
110
|
-
result = target_clip.UnlinkProxyMedia()
|
|
111
|
-
if result:
|
|
112
|
-
return f"Successfully unlinked proxy media from clip '{clip_name}'"
|
|
113
|
-
else:
|
|
114
|
-
return f"Failed to unlink proxy media from clip '{clip_name}'"
|
|
115
|
-
except Exception as e:
|
|
116
|
-
return f"Error unlinking proxy media: {str(e)}"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
@mcp.tool()
|
|
120
|
-
def replace_clip(clip_name: str, replacement_path: str) -> str:
|
|
121
|
-
"""Replace a clip with another media file.
|
|
122
|
-
|
|
123
|
-
Args:
|
|
124
|
-
clip_name: Name of the clip to be replaced
|
|
125
|
-
replacement_path: Path to the replacement media file
|
|
126
|
-
"""
|
|
127
|
-
pm, current_project = get_current_project()
|
|
128
|
-
if not current_project:
|
|
129
|
-
return "Error: No project currently open"
|
|
130
|
-
|
|
131
|
-
media_pool = current_project.GetMediaPool()
|
|
132
|
-
if not media_pool:
|
|
133
|
-
return "Error: Failed to get Media Pool"
|
|
134
|
-
|
|
135
|
-
# Find the clip by name (lazy walk; stops at the first match)
|
|
136
|
-
clips = iter_all_media_pool_clips(media_pool)
|
|
137
|
-
target_clip = None
|
|
138
|
-
|
|
139
|
-
for clip in clips:
|
|
140
|
-
if clip.GetName() == clip_name:
|
|
141
|
-
target_clip = clip
|
|
142
|
-
break
|
|
143
|
-
|
|
144
|
-
if not target_clip:
|
|
145
|
-
return f"Error: Clip '{clip_name}' not found in Media Pool"
|
|
146
|
-
|
|
147
|
-
# Check if file exists
|
|
148
|
-
if not os.path.exists(replacement_path):
|
|
149
|
-
return f"Error: Replacement file '{replacement_path}' does not exist"
|
|
150
|
-
|
|
151
|
-
try:
|
|
152
|
-
result = target_clip.ReplaceClip(replacement_path)
|
|
153
|
-
if result:
|
|
154
|
-
_invalidate_analysis_registry_for_clip(
|
|
155
|
-
current_project, target_clip, reason="replace_clip"
|
|
156
|
-
)
|
|
157
|
-
return f"Successfully replaced clip '{clip_name}' with '{replacement_path}'"
|
|
158
|
-
else:
|
|
159
|
-
return f"Failed to replace clip '{clip_name}'"
|
|
160
|
-
except Exception as e:
|
|
161
|
-
return f"Error replacing clip: {str(e)}"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
@mcp.tool()
|
|
165
|
-
def transcribe_audio(clip_name: str, use_speaker_detection: Optional[bool] = None) -> str:
|
|
166
|
-
"""Transcribe audio for a clip.
|
|
167
|
-
|
|
168
|
-
The transcription language follows the project's Speech Recognition setting
|
|
169
|
-
(Project Settings > Subtitles), not a per-call argument.
|
|
170
|
-
|
|
171
|
-
Args:
|
|
172
|
-
clip_name: Name of the clip to transcribe
|
|
173
|
-
use_speaker_detection: Optional (Resolve 21+). Enable speaker detection.
|
|
174
|
-
If omitted, the project's setting is used.
|
|
175
|
-
"""
|
|
176
|
-
pm, current_project = get_current_project()
|
|
177
|
-
if not current_project:
|
|
178
|
-
return "Error: No project currently open"
|
|
179
|
-
|
|
180
|
-
media_pool = current_project.GetMediaPool()
|
|
181
|
-
if not media_pool:
|
|
182
|
-
return "Error: Failed to get Media Pool"
|
|
183
|
-
|
|
184
|
-
# Find the clip by name (lazy walk; stops at the first match)
|
|
185
|
-
clips = iter_all_media_pool_clips(media_pool)
|
|
186
|
-
target_clip = None
|
|
187
|
-
|
|
188
|
-
for clip in clips:
|
|
189
|
-
if clip.GetName() == clip_name:
|
|
190
|
-
target_clip = clip
|
|
191
|
-
break
|
|
192
|
-
|
|
193
|
-
if not target_clip:
|
|
194
|
-
return f"Error: Clip '{clip_name}' not found in Media Pool"
|
|
195
|
-
|
|
196
|
-
# Resolve 21's signature is TranscribeAudio(useSpeakerDetection=None); pass the
|
|
197
|
-
# bool only when supplied so older Resolve builds (no arg) keep working.
|
|
198
|
-
try:
|
|
199
|
-
if use_speaker_detection is None:
|
|
200
|
-
result = target_clip.TranscribeAudio()
|
|
201
|
-
else:
|
|
202
|
-
result = target_clip.TranscribeAudio(use_speaker_detection)
|
|
203
|
-
if result:
|
|
204
|
-
return f"Successfully started audio transcription for clip '{clip_name}'"
|
|
205
|
-
else:
|
|
206
|
-
return f"Failed to start audio transcription for clip '{clip_name}'"
|
|
207
|
-
except Exception as e:
|
|
208
|
-
return f"Error during audio transcription: {str(e)}"
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
@mcp.tool()
|
|
212
|
-
def clear_transcription(clip_name: str) -> str:
|
|
213
|
-
"""Clear audio transcription for a clip.
|
|
214
|
-
|
|
215
|
-
Args:
|
|
216
|
-
clip_name: Name of the clip to clear transcription from
|
|
217
|
-
"""
|
|
218
|
-
pm, current_project = get_current_project()
|
|
219
|
-
if not current_project:
|
|
220
|
-
return "Error: No project currently open"
|
|
221
|
-
|
|
222
|
-
media_pool = current_project.GetMediaPool()
|
|
223
|
-
if not media_pool:
|
|
224
|
-
return "Error: Failed to get Media Pool"
|
|
225
|
-
|
|
226
|
-
# Find the clip by name (lazy walk; stops at the first match)
|
|
227
|
-
clips = iter_all_media_pool_clips(media_pool)
|
|
228
|
-
target_clip = None
|
|
229
|
-
|
|
230
|
-
for clip in clips:
|
|
231
|
-
if clip.GetName() == clip_name:
|
|
232
|
-
target_clip = clip
|
|
233
|
-
break
|
|
234
|
-
|
|
235
|
-
if not target_clip:
|
|
236
|
-
return f"Error: Clip '{clip_name}' not found in Media Pool"
|
|
237
|
-
|
|
238
|
-
try:
|
|
239
|
-
result = target_clip.ClearTranscription()
|
|
240
|
-
if result:
|
|
241
|
-
return f"Successfully cleared audio transcription for clip '{clip_name}'"
|
|
242
|
-
else:
|
|
243
|
-
return f"Failed to clear audio transcription for clip '{clip_name}'"
|
|
244
|
-
except Exception as e:
|
|
245
|
-
return f"Error clearing audio transcription: {str(e)}"
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
@mcp.tool()
|
|
249
|
-
def get_clip_metadata(clip_id: str, metadata_type: str = "") -> Dict[str, Any]:
|
|
250
|
-
"""Get metadata for a Media Pool clip.
|
|
251
|
-
|
|
252
|
-
Args:
|
|
253
|
-
clip_id: Unique ID of the clip.
|
|
254
|
-
metadata_type: Specific metadata key, or empty for all metadata.
|
|
255
|
-
"""
|
|
256
|
-
_, mp, err = _get_mp()
|
|
257
|
-
if err:
|
|
258
|
-
return err
|
|
259
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
260
|
-
if not clip:
|
|
261
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
262
|
-
if metadata_type:
|
|
263
|
-
result = clip.GetMetadata(metadata_type)
|
|
264
|
-
else:
|
|
265
|
-
result = clip.GetMetadata()
|
|
266
|
-
return {"clip_id": clip_id, "metadata": result if result else {}}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
@mcp.tool()
|
|
270
|
-
def set_clip_metadata(clip_id: str, metadata: Dict[str, str]) -> Dict[str, Any]:
|
|
271
|
-
"""Set metadata on a Media Pool clip.
|
|
272
|
-
|
|
273
|
-
Args:
|
|
274
|
-
clip_id: Unique ID of the clip.
|
|
275
|
-
metadata: Dict of metadata key-value pairs to set.
|
|
276
|
-
"""
|
|
277
|
-
_, mp, err = _get_mp()
|
|
278
|
-
if err:
|
|
279
|
-
return err
|
|
280
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
281
|
-
if not clip:
|
|
282
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
283
|
-
result = clip.SetMetadata(metadata)
|
|
284
|
-
return {"success": bool(result)}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
@mcp.tool()
|
|
288
|
-
def get_clip_third_party_metadata(clip_id: str, metadata_key: str = "") -> Dict[str, Any]:
|
|
289
|
-
"""Get third-party metadata for a clip.
|
|
290
|
-
|
|
291
|
-
Args:
|
|
292
|
-
clip_id: Unique ID of the clip.
|
|
293
|
-
metadata_key: Specific key, or empty for all.
|
|
294
|
-
"""
|
|
295
|
-
_, mp, err = _get_mp()
|
|
296
|
-
if err:
|
|
297
|
-
return err
|
|
298
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
299
|
-
if not clip:
|
|
300
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
301
|
-
if metadata_key:
|
|
302
|
-
result = clip.GetThirdPartyMetadata(metadata_key)
|
|
303
|
-
else:
|
|
304
|
-
result = clip.GetThirdPartyMetadata()
|
|
305
|
-
return {"clip_id": clip_id, "third_party_metadata": result if result else {}}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
@mcp.tool()
|
|
309
|
-
def set_clip_third_party_metadata(clip_id: str, metadata: Dict[str, str]) -> Dict[str, Any]:
|
|
310
|
-
"""Set third-party metadata on a clip.
|
|
311
|
-
|
|
312
|
-
Args:
|
|
313
|
-
clip_id: Unique ID of the clip.
|
|
314
|
-
metadata: Dict of metadata key-value pairs.
|
|
315
|
-
"""
|
|
316
|
-
_, mp, err = _get_mp()
|
|
317
|
-
if err:
|
|
318
|
-
return err
|
|
319
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
320
|
-
if not clip:
|
|
321
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
322
|
-
result = clip.SetThirdPartyMetadata(metadata)
|
|
323
|
-
return {"success": bool(result)}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
@mcp.tool()
|
|
327
|
-
def get_clip_media_id(clip_id: str) -> Dict[str, Any]:
|
|
328
|
-
"""Get the media ID for a clip.
|
|
329
|
-
|
|
330
|
-
Args:
|
|
331
|
-
clip_id: Unique ID of the clip.
|
|
332
|
-
"""
|
|
333
|
-
_, mp, err = _get_mp()
|
|
334
|
-
if err:
|
|
335
|
-
return err
|
|
336
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
337
|
-
if not clip:
|
|
338
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
339
|
-
media_id = clip.GetMediaId()
|
|
340
|
-
return {"clip_id": clip_id, "media_id": media_id}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
@mcp.tool()
|
|
344
|
-
def add_clip_marker(clip_id: str, frame_id: int, color: str, name: str, note: str = "", duration: int = 1, custom_data: str = "") -> Dict[str, Any]:
|
|
345
|
-
"""Add a marker to a Media Pool clip.
|
|
346
|
-
|
|
347
|
-
Args:
|
|
348
|
-
clip_id: Unique ID of the clip.
|
|
349
|
-
frame_id: Frame number for the marker.
|
|
350
|
-
color: Marker color (Blue, Cyan, Green, Yellow, Red, Pink, Purple, Fuchsia, Rose, Lavender, Sky, Mint, Lemon, Sand, Cocoa, Cream).
|
|
351
|
-
name: Marker name.
|
|
352
|
-
note: Marker note. Default: empty.
|
|
353
|
-
duration: Marker duration in frames. Default: 1.
|
|
354
|
-
custom_data: Custom data string. Default: empty.
|
|
355
|
-
"""
|
|
356
|
-
_, mp, err = _get_mp()
|
|
357
|
-
if err:
|
|
358
|
-
return err
|
|
359
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
360
|
-
if not clip:
|
|
361
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
362
|
-
result = clip.AddMarker(frame_id, color, name, note, duration, custom_data)
|
|
363
|
-
return {"success": bool(result)}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
@mcp.tool()
|
|
367
|
-
def get_clip_markers(clip_id: str) -> Dict[str, Any]:
|
|
368
|
-
"""Get all markers on a Media Pool clip.
|
|
369
|
-
|
|
370
|
-
Args:
|
|
371
|
-
clip_id: Unique ID of the clip.
|
|
372
|
-
"""
|
|
373
|
-
_, mp, err = _get_mp()
|
|
374
|
-
if err:
|
|
375
|
-
return err
|
|
376
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
377
|
-
if not clip:
|
|
378
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
379
|
-
markers = clip.GetMarkers()
|
|
380
|
-
return {"clip_id": clip_id, "markers": markers if markers else {}}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
@mcp.tool()
|
|
384
|
-
def get_clip_marker_by_custom_data(clip_id: str, custom_data: str) -> Dict[str, Any]:
|
|
385
|
-
"""Get a marker by its custom data string.
|
|
386
|
-
|
|
387
|
-
Args:
|
|
388
|
-
clip_id: Unique ID of the clip.
|
|
389
|
-
custom_data: Custom data string to search for.
|
|
390
|
-
"""
|
|
391
|
-
_, mp, err = _get_mp()
|
|
392
|
-
if err:
|
|
393
|
-
return err
|
|
394
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
395
|
-
if not clip:
|
|
396
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
397
|
-
marker = clip.GetMarkerByCustomData(custom_data)
|
|
398
|
-
return {"marker": marker if marker else {}}
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
@mcp.tool()
|
|
402
|
-
def update_clip_marker_custom_data(clip_id: str, frame_id: int, custom_data: str) -> Dict[str, Any]:
|
|
403
|
-
"""Update the custom data of a clip marker.
|
|
404
|
-
|
|
405
|
-
Args:
|
|
406
|
-
clip_id: Unique ID of the clip.
|
|
407
|
-
frame_id: Frame number of the marker.
|
|
408
|
-
custom_data: New custom data string.
|
|
409
|
-
"""
|
|
410
|
-
_, mp, err = _get_mp()
|
|
411
|
-
if err:
|
|
412
|
-
return err
|
|
413
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
414
|
-
if not clip:
|
|
415
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
416
|
-
result = clip.UpdateMarkerCustomData(frame_id, custom_data)
|
|
417
|
-
return {"success": bool(result)}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
@mcp.tool()
|
|
421
|
-
def get_clip_marker_custom_data(clip_id: str, frame_id: int) -> Dict[str, Any]:
|
|
422
|
-
"""Get the custom data of a clip marker at a specific frame.
|
|
423
|
-
|
|
424
|
-
Args:
|
|
425
|
-
clip_id: Unique ID of the clip.
|
|
426
|
-
frame_id: Frame number of the marker.
|
|
427
|
-
"""
|
|
428
|
-
_, mp, err = _get_mp()
|
|
429
|
-
if err:
|
|
430
|
-
return err
|
|
431
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
432
|
-
if not clip:
|
|
433
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
434
|
-
data = clip.GetMarkerCustomData(frame_id)
|
|
435
|
-
return {"frame_id": frame_id, "custom_data": data if data else ""}
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
@mcp.tool()
|
|
439
|
-
def delete_clip_markers_by_color(clip_id: str, color: str) -> Dict[str, Any]:
|
|
440
|
-
"""Delete all markers of a specific color on a clip.
|
|
441
|
-
|
|
442
|
-
Args:
|
|
443
|
-
clip_id: Unique ID of the clip.
|
|
444
|
-
color: Color of markers to delete. Use '' to delete all.
|
|
445
|
-
"""
|
|
446
|
-
_, mp, err = _get_mp()
|
|
447
|
-
if err:
|
|
448
|
-
return err
|
|
449
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
450
|
-
if not clip:
|
|
451
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
452
|
-
result = clip.DeleteMarkersByColor(color)
|
|
453
|
-
return {"success": bool(result)}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
@mcp.tool()
|
|
457
|
-
def delete_clip_marker_at_frame(clip_id: str, frame_id: int) -> Dict[str, Any]:
|
|
458
|
-
"""Delete a marker at a specific frame on a clip.
|
|
459
|
-
|
|
460
|
-
Args:
|
|
461
|
-
clip_id: Unique ID of the clip.
|
|
462
|
-
frame_id: Frame number of the marker to delete.
|
|
463
|
-
"""
|
|
464
|
-
_, mp, err = _get_mp()
|
|
465
|
-
if err:
|
|
466
|
-
return err
|
|
467
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
468
|
-
if not clip:
|
|
469
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
470
|
-
result = clip.DeleteMarkerAtFrame(frame_id)
|
|
471
|
-
return {"success": bool(result)}
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
@mcp.tool()
|
|
475
|
-
def delete_clip_marker_by_custom_data(clip_id: str, custom_data: str) -> Dict[str, Any]:
|
|
476
|
-
"""Delete a marker by its custom data string.
|
|
477
|
-
|
|
478
|
-
Args:
|
|
479
|
-
clip_id: Unique ID of the clip.
|
|
480
|
-
custom_data: Custom data string of the marker to delete.
|
|
481
|
-
"""
|
|
482
|
-
_, mp, err = _get_mp()
|
|
483
|
-
if err:
|
|
484
|
-
return err
|
|
485
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
486
|
-
if not clip:
|
|
487
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
488
|
-
result = clip.DeleteMarkerByCustomData(custom_data)
|
|
489
|
-
return {"success": bool(result)}
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
@mcp.tool()
|
|
493
|
-
def add_clip_flag(clip_id: str, color: str) -> Dict[str, Any]:
|
|
494
|
-
"""Add a flag to a Media Pool clip.
|
|
495
|
-
|
|
496
|
-
Args:
|
|
497
|
-
clip_id: Unique ID of the clip.
|
|
498
|
-
color: Flag color (Blue, Cyan, Green, Yellow, Red, Pink, Purple, Fuchsia, Rose, Lavender, Sky, Mint, Lemon, Sand, Cocoa, Cream).
|
|
499
|
-
"""
|
|
500
|
-
_, mp, err = _get_mp()
|
|
501
|
-
if err:
|
|
502
|
-
return err
|
|
503
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
504
|
-
if not clip:
|
|
505
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
506
|
-
result = clip.AddFlag(color)
|
|
507
|
-
return {"success": bool(result)}
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
@mcp.tool()
|
|
511
|
-
def get_clip_flag_list(clip_id: str) -> Dict[str, Any]:
|
|
512
|
-
"""Get list of flags on a clip.
|
|
513
|
-
|
|
514
|
-
Args:
|
|
515
|
-
clip_id: Unique ID of the clip.
|
|
516
|
-
"""
|
|
517
|
-
_, mp, err = _get_mp()
|
|
518
|
-
if err:
|
|
519
|
-
return err
|
|
520
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
521
|
-
if not clip:
|
|
522
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
523
|
-
flags = clip.GetFlagList()
|
|
524
|
-
return {"clip_id": clip_id, "flags": flags if flags else []}
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
@mcp.tool()
|
|
528
|
-
def clear_clip_flags(clip_id: str, color: str = "") -> Dict[str, Any]:
|
|
529
|
-
"""Clear flags on a clip.
|
|
530
|
-
|
|
531
|
-
Args:
|
|
532
|
-
clip_id: Unique ID of the clip.
|
|
533
|
-
color: Specific color to clear, or empty for all colors.
|
|
534
|
-
"""
|
|
535
|
-
_, mp, err = _get_mp()
|
|
536
|
-
if err:
|
|
537
|
-
return err
|
|
538
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
539
|
-
if not clip:
|
|
540
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
541
|
-
result = clip.ClearFlags(color)
|
|
542
|
-
return {"success": bool(result)}
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
@mcp.tool()
|
|
546
|
-
def get_clip_color(clip_id: str) -> Dict[str, Any]:
|
|
547
|
-
"""Get the clip color of a Media Pool item.
|
|
548
|
-
|
|
549
|
-
Args:
|
|
550
|
-
clip_id: Unique ID of the clip.
|
|
551
|
-
"""
|
|
552
|
-
_, mp, err = _get_mp()
|
|
553
|
-
if err:
|
|
554
|
-
return err
|
|
555
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
556
|
-
if not clip:
|
|
557
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
558
|
-
color = clip.GetClipColor()
|
|
559
|
-
return {"clip_id": clip_id, "clip_color": color if color else ""}
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
@mcp.tool()
|
|
563
|
-
def set_clip_color(clip_id: str, color: str) -> Dict[str, Any]:
|
|
564
|
-
"""Set the clip color of a Media Pool item.
|
|
565
|
-
|
|
566
|
-
Args:
|
|
567
|
-
clip_id: Unique ID of the clip.
|
|
568
|
-
color: Color name (Orange, Apricot, Yellow, Lime, Olive, Green, Teal, Navy, Blue, Purple, Violet, Pink, Tan, Beige, Brown, Chocolate).
|
|
569
|
-
"""
|
|
570
|
-
_, mp, err = _get_mp()
|
|
571
|
-
if err:
|
|
572
|
-
return err
|
|
573
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
574
|
-
if not clip:
|
|
575
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
576
|
-
result = clip.SetClipColor(color)
|
|
577
|
-
return {"success": bool(result)}
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
@mcp.tool()
|
|
581
|
-
def clear_clip_color(clip_id: str) -> Dict[str, Any]:
|
|
582
|
-
"""Clear the clip color of a Media Pool item.
|
|
583
|
-
|
|
584
|
-
Args:
|
|
585
|
-
clip_id: Unique ID of the clip.
|
|
586
|
-
"""
|
|
587
|
-
_, mp, err = _get_mp()
|
|
588
|
-
if err:
|
|
589
|
-
return err
|
|
590
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
591
|
-
if not clip:
|
|
592
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
593
|
-
result = clip.ClearClipColor()
|
|
594
|
-
return {"success": bool(result)}
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
@mcp.tool()
|
|
598
|
-
def set_clip_property(clip_id: str, property_name: str, property_value: str) -> Dict[str, Any]:
|
|
599
|
-
"""Set a property on a Media Pool clip.
|
|
600
|
-
|
|
601
|
-
Args:
|
|
602
|
-
clip_id: Unique ID of the clip.
|
|
603
|
-
property_name: Property name (e.g. 'Clip Name', 'Comments', 'Description').
|
|
604
|
-
property_value: Value to set.
|
|
605
|
-
"""
|
|
606
|
-
_, mp, err = _get_mp()
|
|
607
|
-
if err:
|
|
608
|
-
return err
|
|
609
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
610
|
-
if not clip:
|
|
611
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
612
|
-
result = clip.SetClipProperty(property_name, property_value)
|
|
613
|
-
return {"success": bool(result)}
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
@mcp.tool()
|
|
617
|
-
def get_clip_property(clip_id: str, property_name: str = "") -> Dict[str, Any]:
|
|
618
|
-
"""Get a property of a Media Pool clip.
|
|
619
|
-
|
|
620
|
-
Args:
|
|
621
|
-
clip_id: Unique ID of the clip.
|
|
622
|
-
property_name: Property name, or empty for all properties.
|
|
623
|
-
"""
|
|
624
|
-
_, mp, err = _get_mp()
|
|
625
|
-
if err:
|
|
626
|
-
return err
|
|
627
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
628
|
-
if not clip:
|
|
629
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
630
|
-
if property_name:
|
|
631
|
-
result = clip.GetClipProperty(property_name)
|
|
632
|
-
else:
|
|
633
|
-
result = clip.GetClipProperty()
|
|
634
|
-
return {"clip_id": clip_id, "property": result if result else {}}
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
@mcp.tool()
|
|
638
|
-
def set_media_pool_clip_name(clip_id: str, new_name: str) -> Dict[str, Any]:
|
|
639
|
-
"""Rename a Media Pool clip.
|
|
640
|
-
|
|
641
|
-
Args:
|
|
642
|
-
clip_id: Unique ID of the clip.
|
|
643
|
-
new_name: New clip name.
|
|
644
|
-
"""
|
|
645
|
-
_, mp, err = _get_mp()
|
|
646
|
-
if err:
|
|
647
|
-
return err
|
|
648
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
649
|
-
if not clip:
|
|
650
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
651
|
-
missing = _requires_method(clip, "SetName", "20.2")
|
|
652
|
-
if missing:
|
|
653
|
-
return missing
|
|
654
|
-
result = clip.SetName(new_name)
|
|
655
|
-
return {"success": bool(result), "name": new_name}
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
@mcp.tool()
|
|
659
|
-
def link_clip_proxy_media(clip_id: str, proxy_path: str) -> Dict[str, Any]:
|
|
660
|
-
"""Link proxy media to a clip.
|
|
661
|
-
|
|
662
|
-
Args:
|
|
663
|
-
clip_id: Unique ID of the clip.
|
|
664
|
-
proxy_path: Absolute path to the proxy media file.
|
|
665
|
-
"""
|
|
666
|
-
_, mp, err = _get_mp()
|
|
667
|
-
if err:
|
|
668
|
-
return err
|
|
669
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
670
|
-
if not clip:
|
|
671
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
672
|
-
result = clip.LinkProxyMedia(proxy_path)
|
|
673
|
-
return {"success": bool(result)}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
@mcp.tool()
|
|
677
|
-
def link_clip_full_resolution_media(clip_id: str, full_res_media_path: str) -> Dict[str, Any]:
|
|
678
|
-
"""Link full resolution media to a proxy clip.
|
|
679
|
-
|
|
680
|
-
Args:
|
|
681
|
-
clip_id: Unique ID of the clip.
|
|
682
|
-
full_res_media_path: Absolute path to the full resolution media file.
|
|
683
|
-
"""
|
|
684
|
-
_, mp, err = _get_mp()
|
|
685
|
-
if err:
|
|
686
|
-
return err
|
|
687
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
688
|
-
if not clip:
|
|
689
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
690
|
-
missing = _requires_method(clip, "LinkFullResolutionMedia", "20.0")
|
|
691
|
-
if missing:
|
|
692
|
-
return missing
|
|
693
|
-
result = clip.LinkFullResolutionMedia(full_res_media_path)
|
|
694
|
-
return {"success": bool(result)}
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
@mcp.tool()
|
|
698
|
-
def unlink_clip_proxy_media(clip_id: str) -> Dict[str, Any]:
|
|
699
|
-
"""Unlink proxy media from a clip.
|
|
700
|
-
|
|
701
|
-
Args:
|
|
702
|
-
clip_id: Unique ID of the clip.
|
|
703
|
-
"""
|
|
704
|
-
_, mp, err = _get_mp()
|
|
705
|
-
if err:
|
|
706
|
-
return err
|
|
707
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
708
|
-
if not clip:
|
|
709
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
710
|
-
result = clip.UnlinkProxyMedia()
|
|
711
|
-
return {"success": bool(result)}
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
@mcp.tool()
|
|
715
|
-
def replace_media_pool_clip(clip_id: str, new_file_path: str) -> Dict[str, Any]:
|
|
716
|
-
"""Replace a clip with a new media file.
|
|
717
|
-
|
|
718
|
-
Args:
|
|
719
|
-
clip_id: Unique ID of the clip to replace.
|
|
720
|
-
new_file_path: Absolute path to the new media file.
|
|
721
|
-
"""
|
|
722
|
-
project, mp, err = _get_mp()
|
|
723
|
-
if err:
|
|
724
|
-
return err
|
|
725
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
726
|
-
if not clip:
|
|
727
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
728
|
-
result = clip.ReplaceClip(new_file_path)
|
|
729
|
-
response: Dict[str, Any] = {"success": bool(result)}
|
|
730
|
-
if result:
|
|
731
|
-
registry = _invalidate_analysis_registry_for_clip(
|
|
732
|
-
project, clip, reason="replace_media_pool_clip"
|
|
733
|
-
)
|
|
734
|
-
if registry is not None:
|
|
735
|
-
response["analysis_registry_invalidation"] = registry
|
|
736
|
-
return response
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
@mcp.tool()
|
|
740
|
-
def replace_media_pool_clip_preserve_sub_clip(clip_id: str, file_path: str) -> Dict[str, Any]:
|
|
741
|
-
"""Replace a clip's underlying media while preserving subclip extents.
|
|
742
|
-
|
|
743
|
-
Args:
|
|
744
|
-
clip_id: Unique ID of the clip to replace.
|
|
745
|
-
file_path: Absolute path to the replacement media file.
|
|
746
|
-
"""
|
|
747
|
-
project, mp, err = _get_mp()
|
|
748
|
-
if err:
|
|
749
|
-
return err
|
|
750
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
751
|
-
if not clip:
|
|
752
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
753
|
-
missing = _requires_method(clip, "ReplaceClipPreserveSubClip", "20.0")
|
|
754
|
-
if missing:
|
|
755
|
-
return missing
|
|
756
|
-
result = clip.ReplaceClipPreserveSubClip(file_path)
|
|
757
|
-
response: Dict[str, Any] = {"success": bool(result)}
|
|
758
|
-
if result:
|
|
759
|
-
registry = _invalidate_analysis_registry_for_clip(
|
|
760
|
-
project, clip, reason="replace_media_pool_clip_preserve_sub_clip"
|
|
761
|
-
)
|
|
762
|
-
if registry is not None:
|
|
763
|
-
response["analysis_registry_invalidation"] = registry
|
|
764
|
-
return response
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
@mcp.tool()
|
|
768
|
-
def monitor_clip_growing_file(clip_id: str) -> Dict[str, Any]:
|
|
769
|
-
"""Monitor a growing media file for the given Media Pool clip."""
|
|
770
|
-
_, mp, err = _get_mp()
|
|
771
|
-
if err:
|
|
772
|
-
return err
|
|
773
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
774
|
-
if not clip:
|
|
775
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
776
|
-
missing = _requires_method(clip, "MonitorGrowingFile", "20.0")
|
|
777
|
-
if missing:
|
|
778
|
-
return missing
|
|
779
|
-
result = clip.MonitorGrowingFile()
|
|
780
|
-
return {"success": bool(result)}
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
@mcp.tool()
|
|
784
|
-
def get_clip_unique_id_by_name(clip_name: str) -> Dict[str, Any]:
|
|
785
|
-
"""Find a clip by name and return its unique ID.
|
|
786
|
-
|
|
787
|
-
Args:
|
|
788
|
-
clip_name: Name of the clip to find.
|
|
789
|
-
"""
|
|
790
|
-
_, mp, err = _get_mp()
|
|
791
|
-
if err:
|
|
792
|
-
return err
|
|
793
|
-
|
|
794
|
-
def search(folder):
|
|
795
|
-
for clip in (folder.GetClipList() or []):
|
|
796
|
-
if clip.GetName() == clip_name:
|
|
797
|
-
return clip
|
|
798
|
-
for sub in (folder.GetSubFolderList() or []):
|
|
799
|
-
found = search(sub)
|
|
800
|
-
if found:
|
|
801
|
-
return found
|
|
802
|
-
return None
|
|
803
|
-
|
|
804
|
-
clip = search(mp.GetRootFolder())
|
|
805
|
-
if clip:
|
|
806
|
-
return {"name": clip.GetName(), "unique_id": clip.GetUniqueId()}
|
|
807
|
-
return {"error": f"Clip '{clip_name}' not found"}
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
@mcp.tool()
|
|
811
|
-
def transcribe_clip_audio(clip_id: str) -> Dict[str, Any]:
|
|
812
|
-
"""Transcribe audio for a specific clip.
|
|
813
|
-
|
|
814
|
-
Args:
|
|
815
|
-
clip_id: Unique ID of the clip.
|
|
816
|
-
"""
|
|
817
|
-
_, mp, err = _get_mp()
|
|
818
|
-
if err:
|
|
819
|
-
return err
|
|
820
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
821
|
-
if not clip:
|
|
822
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
823
|
-
result = clip.TranscribeAudio()
|
|
824
|
-
return {"success": bool(result)}
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
@mcp.tool()
|
|
828
|
-
def clear_clip_transcription(clip_id: str) -> Dict[str, Any]:
|
|
829
|
-
"""Clear transcription for a specific clip.
|
|
830
|
-
|
|
831
|
-
Args:
|
|
832
|
-
clip_id: Unique ID of the clip.
|
|
833
|
-
"""
|
|
834
|
-
_, mp, err = _get_mp()
|
|
835
|
-
if err:
|
|
836
|
-
return err
|
|
837
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
838
|
-
if not clip:
|
|
839
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
840
|
-
result = clip.ClearTranscription()
|
|
841
|
-
return {"success": bool(result)}
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
@mcp.tool()
|
|
845
|
-
def get_clip_audio_mapping(clip_id: str) -> Dict[str, Any]:
|
|
846
|
-
"""Get audio mapping for a clip.
|
|
847
|
-
|
|
848
|
-
Args:
|
|
849
|
-
clip_id: Unique ID of the clip.
|
|
850
|
-
"""
|
|
851
|
-
_, mp, err = _get_mp()
|
|
852
|
-
if err:
|
|
853
|
-
return err
|
|
854
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
855
|
-
if not clip:
|
|
856
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
857
|
-
mapping = clip.GetAudioMapping()
|
|
858
|
-
return {"clip_id": clip_id, "audio_mapping": mapping if mapping else ""}
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
@mcp.tool()
|
|
862
|
-
def get_clip_mark_in_out(clip_id: str) -> Dict[str, Any]:
|
|
863
|
-
"""Get mark in/out points for a clip.
|
|
864
|
-
|
|
865
|
-
Args:
|
|
866
|
-
clip_id: Unique ID of the clip.
|
|
867
|
-
"""
|
|
868
|
-
_, mp, err = _get_mp()
|
|
869
|
-
if err:
|
|
870
|
-
return err
|
|
871
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
872
|
-
if not clip:
|
|
873
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
874
|
-
result = clip.GetMarkInOut()
|
|
875
|
-
return {"clip_id": clip_id, "mark_in_out": result if result else {}}
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
@mcp.tool()
|
|
879
|
-
def set_clip_mark_in_out(clip_id: str, mark_in: int, mark_out: int) -> Dict[str, Any]:
|
|
880
|
-
"""Set mark in/out points for a clip.
|
|
881
|
-
|
|
882
|
-
Args:
|
|
883
|
-
clip_id: Unique ID of the clip.
|
|
884
|
-
mark_in: Mark in frame number.
|
|
885
|
-
mark_out: Mark out frame number.
|
|
886
|
-
"""
|
|
887
|
-
_, mp, err = _get_mp()
|
|
888
|
-
if err:
|
|
889
|
-
return err
|
|
890
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
891
|
-
if not clip:
|
|
892
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
893
|
-
result = clip.SetMarkInOut(mark_in, mark_out)
|
|
894
|
-
return {"success": bool(result)}
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
@mcp.tool()
|
|
898
|
-
def clear_clip_mark_in_out(clip_id: str) -> Dict[str, Any]:
|
|
899
|
-
"""Clear mark in/out points for a clip.
|
|
900
|
-
|
|
901
|
-
Args:
|
|
902
|
-
clip_id: Unique ID of the clip.
|
|
903
|
-
"""
|
|
904
|
-
_, mp, err = _get_mp()
|
|
905
|
-
if err:
|
|
906
|
-
return err
|
|
907
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
908
|
-
if not clip:
|
|
909
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
910
|
-
result = clip.ClearMarkInOut()
|
|
911
|
-
return {"success": bool(result)}
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
_MARKER_COLORS = [
|
|
915
|
-
"Blue", "Cyan", "Green", "Yellow", "Red", "Pink", "Purple", "Fuchsia",
|
|
916
|
-
"Rose", "Lavender", "Sky", "Mint", "Lemon", "Sand", "Cocoa", "Cream",
|
|
917
|
-
]
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
@mcp.tool()
|
|
921
|
-
def perform_clip_audio_classification(clip_id: str) -> Dict[str, Any]:
|
|
922
|
-
"""Classify a clip's audio into categories and subcategories (Resolve 21+).
|
|
923
|
-
|
|
924
|
-
Args:
|
|
925
|
-
clip_id: Unique ID of the clip.
|
|
926
|
-
"""
|
|
927
|
-
_, mp, err = _get_mp()
|
|
928
|
-
if err:
|
|
929
|
-
return err
|
|
930
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
931
|
-
if not clip:
|
|
932
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
933
|
-
if not hasattr(clip, "PerformAudioClassification"):
|
|
934
|
-
return {"error": "PerformAudioClassification requires DaVinci Resolve 21+"}
|
|
935
|
-
return {"success": bool(clip.PerformAudioClassification())}
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
@mcp.tool()
|
|
939
|
-
def clear_clip_audio_classification(clip_id: str) -> Dict[str, Any]:
|
|
940
|
-
"""Clear a clip's audio classification (Resolve 21+).
|
|
941
|
-
|
|
942
|
-
Args:
|
|
943
|
-
clip_id: Unique ID of the clip.
|
|
944
|
-
"""
|
|
945
|
-
_, mp, err = _get_mp()
|
|
946
|
-
if err:
|
|
947
|
-
return err
|
|
948
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
949
|
-
if not clip:
|
|
950
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
951
|
-
if not hasattr(clip, "ClearAudioClassification"):
|
|
952
|
-
return {"error": "ClearAudioClassification requires DaVinci Resolve 21+"}
|
|
953
|
-
return {"success": bool(clip.ClearAudioClassification())}
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
@mcp.tool()
|
|
957
|
-
def analyze_clip_for_intellisearch(clip_id: str, identify_faces: bool = False, is_better_mode: bool = False) -> Dict[str, Any]:
|
|
958
|
-
"""Run IntelliSearch analysis on a clip (Resolve 21+, requires AI IntelliSearch Extra).
|
|
959
|
-
|
|
960
|
-
Args:
|
|
961
|
-
clip_id: Unique ID of the clip.
|
|
962
|
-
identify_faces: Whether to identify faces.
|
|
963
|
-
is_better_mode: Use Better mode (vs Faster).
|
|
964
|
-
"""
|
|
965
|
-
_, mp, err = _get_mp()
|
|
966
|
-
if err:
|
|
967
|
-
return err
|
|
968
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
969
|
-
if not clip:
|
|
970
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
971
|
-
if not hasattr(clip, "AnalyzeForIntellisearch"):
|
|
972
|
-
return {"error": "AnalyzeForIntellisearch requires DaVinci Resolve 21+"}
|
|
973
|
-
return {"success": bool(clip.AnalyzeForIntellisearch(bool(identify_faces), bool(is_better_mode)))}
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
@mcp.tool()
|
|
977
|
-
def analyze_clip_for_slate(clip_id: str, marker_color: str = "Blue") -> Dict[str, Any]:
|
|
978
|
-
"""Run Slate analysis on a clip (Resolve 21+, requires AI Slate ID Extra).
|
|
979
|
-
|
|
980
|
-
Args:
|
|
981
|
-
clip_id: Unique ID of the clip.
|
|
982
|
-
marker_color: Marker color for detected slates (Blue, Cyan, Green, Yellow, Red, Pink,
|
|
983
|
-
Purple, Fuchsia, Rose, Lavender, Sky, Mint, Lemon, Sand, Cocoa, Cream).
|
|
984
|
-
"""
|
|
985
|
-
_, mp, err = _get_mp()
|
|
986
|
-
if err:
|
|
987
|
-
return err
|
|
988
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
989
|
-
if not clip:
|
|
990
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
991
|
-
if not hasattr(clip, "AnalyzeForSlate"):
|
|
992
|
-
return {"error": "AnalyzeForSlate requires DaVinci Resolve 21+"}
|
|
993
|
-
if marker_color not in _MARKER_COLORS:
|
|
994
|
-
return {"error": f"Invalid marker_color '{marker_color}'. Valid: {', '.join(_MARKER_COLORS)}"}
|
|
995
|
-
return {"success": bool(clip.AnalyzeForSlate(marker_color))}
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
@mcp.tool()
|
|
999
|
-
def remove_clip_motion_blur(clip_id: str, deblur_option: Optional[Dict[str, Any]] = None) -> Dict[str, Any]:
|
|
1000
|
-
"""Render a motion-deblurred copy of a clip (Resolve 21+).
|
|
1001
|
-
|
|
1002
|
-
Creates a NEW media file; the source clip is not modified.
|
|
1003
|
-
|
|
1004
|
-
Args:
|
|
1005
|
-
clip_id: Unique ID of the clip.
|
|
1006
|
-
deblur_option: Settings dict (FileName, Format, Codec, EncodingProfile,
|
|
1007
|
-
UseExtremeMode, UseMarkInMarkOut, RenderAtSourceRes, UseMoreGpuMemory).
|
|
1008
|
-
"""
|
|
1009
|
-
_, mp, err = _get_mp()
|
|
1010
|
-
if err:
|
|
1011
|
-
return err
|
|
1012
|
-
clip = _find_clip_by_id(mp.GetRootFolder(), clip_id)
|
|
1013
|
-
if not clip:
|
|
1014
|
-
return {"error": f"Clip {clip_id} not found"}
|
|
1015
|
-
if not hasattr(clip, "RemoveMotionBlur"):
|
|
1016
|
-
return {"error": "RemoveMotionBlur requires DaVinci Resolve 21+"}
|
|
1017
|
-
new_clip = clip.RemoveMotionBlur(deblur_option or {})
|
|
1018
|
-
if not new_clip:
|
|
1019
|
-
return {"success": False}
|
|
1020
|
-
return {"success": True, "new": new_clip.GetName(), "new_id": new_clip.GetUniqueId()}
|