How yasir196/yg-plug-play works
YG-PLUG-PLAY is a plugin-first, Windows-local content production platform. Its evident user workflow is to configure a channel and project, save a validated brief, route capability requests to eligible providers, and execute durable workflows that track artifacts and approvals. Supporting product areas include plugin trust and assignment, authentication, settings, progress, and audit. The excerpts establish some service-to-service links; for other subsystems, the map preserves their documented or indexed modules without assuming runtime wiring that was not shown.
Main entry points: models.py SQLite Persistence · service.py Workspace Service · cli.py CLI · registry.py Plugin Registry
Components 25
Workspace
- Workspace API
core/workspace/api.py - Workspace Service
core/workspace/service.py - Demo Defaults
core/workspace/defaults.py
Plugin Platform
- Manifest Validation
core/plugin_registry/manifest.py - Plugin Registry
core/plugin_registry/registry.py - Plugin Installer
core/plugin_registry/installer.py - Plugin Runtime
core/plugin_runtime/manager.py - Runtime Permissions
core/plugin_runtime/permissions.py - Plugin Data
core/plugin_data/service.py
Content Production
- Purpose Router
core/routing/router.py - Prompt Executor
core/prompt_executor/executor.py - Workflow Engine
core/workflow/engine.py - Workflow Approvals
core/workflow/approvals.py - Workflow Validator
core/workflow/validator.py - Artifact Store
core/artifacts/store.py - Job Progress
core/progress/service.py
Platform Services
- CLI
tools/yg/cli.py - Dashboard Routes
dashboard/routes.py - Audit Service
core/audit/service.py - Auth API
core/auth/app.py - Auth Service
core/auth/service.py - Settings Service
core/settings/service.py - Data Root
core/config/data_root.py - SQLite Persistence
core/database/models.py
Other components
- Operator
Connections 28
- Operator → CLI: operates
tools/yg/cli.py - Operator → Dashboard Routes: uses
dashboard/routes.py - CLI → Data Root: configures
tools/yg/cli.py - CLI → SQLite Persistence: initializes
tools/yg/cli.py - CLI → Workspace Service: uses
tools/yg/cli.py - Dashboard Routes → SQLite Persistence: queries
dashboard/routes.py - Workspace API → Workspace Service: delegates
core/workspace/api.py - Workspace Service → Demo Defaults: materializes
core/workspace/service.py - Workspace Service → Audit Service: records
core/workspace/service.py - Workspace Service → SQLite Persistence: persists
core/workspace/service.py - Auth API → Auth Service: authenticates
core/auth/app.py - Auth Service → Operator: issues session
core/auth/service.py - Plugin Installer → Manifest Validation: validates
- Plugin Registry → Manifest Validation: parses
core/plugin_registry/registry.py - Plugin Registry → SQLite Persistence: stores trust
core/plugin_registry/registry.py - Plugin Runtime → Runtime Permissions: checks
- Plugin Data → Runtime Permissions: checks
core/plugin_data/service.py - Purpose Router → Plugin Registry: checks availability
core/routing/router.py - Purpose Router → Manifest Validation: validates capability
core/routing/router.py - Prompt Executor → Purpose Router: uses routing
core/prompt_executor/executor.py - Workflow Engine → SQLite Persistence: reads and writes
core/workflow/engine.py - Workflow Approvals → Workflow Engine: resumes runs
core/workflow/approvals.py - Workflow Approvals → SQLite Persistence: accesses records
core/workflow/approvals.py - Workflow Validator → Workflow Engine: validates definitions
- Artifact Store → SQLite Persistence: stores metadata
core/artifacts/store.py - Job Progress → SQLite Persistence: updates jobs
core/progress/service.py - Settings Service → SQLite Persistence: persists settings
core/settings/service.py - Runtime Permissions → Job Progress: provides context
core/progress/service.py