filmopen_plugin_host
Generated by scripts/package_digest.py; regenerate, never edit.
The plug-in runtime (Software Specification §6.11): the registry of plug-ins in the development folder and shared library, the stock install from the app’s bundle, trust and consent, grants, preferred providers, machine settings and storage (<app support>/plugins/<tag>/), and the calls — each through filmopen_js’s runJs, five root calls in the app and serial admission per plug-in except work on a resolved program whose number of copies is above 0 — with every door of ctx answered here: http with the credential added at the door, keys, project.*, ai.complete, storage.*, asset, log, progress, call. The plug-in is chosen by the model asked for, a render’s request prepared once, and every answer of a function of the contract held to the interface definition before the app reads it. A transform’s entities are written as new versions under <viewer>.<tag> with their batch; a render’s outputs are fetched and staged for the insertion, which takes them in as a producer’s, and a capability’s answer is handed back for a page to apply. Every call a person starts keeps a usage ledger (usage_chain.dart).
Flutter. 59 files, 23,687 lines under lib/; 1647 tests in 119 files. Barrel: lib/filmopen_plugin_host.dart.
Depends on
Section titled “Depends on”- filmopen_exchange — uses
ExchangeContext,ExchangeId,ExchangeKind,ExportDocument,FieldPath,ImportState,PatternRefused,Projection,Scope,ScopeSelection,all,assemble,exchangeCollections,exportEntityDocument,exportScope,focus,patternScope,patternTokens,planImport,projectOverview,scopeRegistry,scopes - filmopen_format — uses
Author,Catalogue,CatalogueAccess,CatalogueEntry,CataloguePrice,CredentialRefusal,Entity,EntityType,ExactDecimal,FilmProject,JsonShape,MediaEntry,MediaKind,MediaLocation,Money,MoneyBasis,PlatformFile,PlatformKind,PlatformOauth,PriceBasis,ProjectSource,PromptContextReference,ReferenceCodec,ReferenceKind,RenderItem,ScriptBlock,ScriptRow,ServerAddress,ShortName,UsageBasisand 51 more - filmopen_js — uses
JsCall,JsCancel,JsDoorRefusal,JsFailure,JsLimits,JsNote,JsOutcome,JsSource,JsValue,runJs - filmopen_l10n — uses
appStringsByKey - filmopen_media — uses
MediaFetch,MediaFetchProblem,MediaStore,PlayableBytes,PlayableFile,PlayableUrl,ProjectMedia,PromptToken,promptTokenCandidates - filmopen_insertion — uses
Function,InsertionService,InsertionTarget,MediaImportException,ProducerSource,TakesOnly - filmopen_jobs — uses
JobAction,JobPhase,JobUnavailable,JobView,ProducedItem,describeJobError - filmopen_platform — uses
AudioFormat,AudioRecording,AudioSource,CredentialStore,CredentialStoreUnavailable,JsonAssetSource,VoicePlayback,WebRtcAudioDirection,WebRtcAudioEvent,WebRtcAudioEventKind,WebRtcAudioException,WebRtcAudioPeer,WebRtcAudioProblem,WindowsVoicePlayback,appendDeveloperLine,createDeviceWebRtcAudioPeer,developerLogPath,pluginDataDirectory,readEnvironment - filmopen_plugins — uses
ActionSpec,CallId,EntityHook,KeyId,KeySlot,OfferSpec,PlatformHook,PluginApi,PluginArchive,PluginFolder,PluginIssue,PluginManifest,PluginPackage,PluginProblem,PluginStrings,SettingScope,SettingSpec,SettingType,SharingOperation,SourcePluginPackage,WorkflowLoad,WorkflowRefused,WorkflowSpec,WorkflowStep,installStockPlugins,isPluginText,mostFolderBytes,mostFolderFiles,namesEveryObjectHas,plugInsMayCalland 3 more - filmopen_render — uses
BackendRenderManager,MemoryRenderJournal,RenderBackend,RenderCancelState,RenderCandidate,RenderCapacity,RenderDestination,RenderDestinationKind,RenderFactsBackend,RenderFailed,RenderIssue,RenderJob,RenderJournal,RenderManager,RenderNotReady,RenderOptions,RenderOrigin,RenderOutcome,RenderOutput,RenderPending,RenderPhase,RenderQuote,RenderRequest,RenderResource,RenderRoute,RenderServicePhase,RenderSettlementBackend,RenderStack,RenderStage,RenderSucceededand 17 more - filmopen_state — uses
AccountAuthentication,AccountSnapshots,AssistantAction,AssistantApply,AssistantApplyKind,AssistantCatalog,AssistantCatalogRefused,AssistantChoice,AssistantLevel,AssistantModelChoice,AssistantModelSelection,AssistantOffer,AssistantPreferences,AssistantReply,AssistantRequest,AssistantService,AssistantSession,AssistantSessionBackend,AssistantSourceBinding,AssistantTranscriptState,AssistantUnavailable,AssistantVoiceMessage,AssistantVoicePhase,AssistantVoiceProvider,AssistantVoiceRequest,AssistantVoiceService,AssistantVoiceSession,AssistantWhere,AutomationHost,Commandand 129 more - filmopen_store — uses
AppLog,Guards,LogLevel,PluginOutputException,PluginRun,ProjectWriter,UsageLog,UsageLogUnavailable,rfc3339Now - filmopen_machine — uses
MachineReader - filmopen_test_support (dev) — uses nothing by name the digest could see
Third-party: flutter_riverpod, http, http_parser, shared_preferences, crypto, url_launcher.
Used by
Section titled “Used by”filmopen_app
Public API
Section titled “Public API”What the barrel exports, file by file. A name is class, enum, mixin, extension, typedef, a top-level function, getter, setter or variable; under a class, its public constructors, fields, getters, setters and methods.
lib/src/create_runtime_stub.dart
Section titled “lib/src/create_runtime_stub.dart”- function
PluginRuntime createPluginRuntime({http.Client Function()? client})— The web runs no plug-ins: the seam’s runtime, which has none, and no connection of its own. - function
Future<ServerSessions?> startServers({String? directory})— The web starts no server: no sessions. - function
Future<RenderManager> startRenders({String? directory})— The web renders nothing: the manager is the empty one. - function
bool pokeLendingSupplier()— The web lends nothing: there is no loop to wake. - function
void installAssistantService({String? skipVoice})— Installs nothing where the plug-in host does not run, the web, and says so in the log (§6.11a). - function
Future<void> pluginsSettled()— The web loads no plug-ins: settled at once. - function
void refreshAssistantReadiness()— Has no assistant credential readiness to refresh on this platform. - function
Future<void> closePluginProcesses()— Has no plug-in program to stop on the web.
lib/src/key_records.dart
Section titled “lib/src/key_records.dart”- class
KeyRecordSource— The records Provider keys keeps of each key, as the plug-in host reads them.static String? Function(String name)? reader— The record Provider keys keeps under a preference’s [name] (providerKeys.<owner>/<slot>), or null for none; unset, the preferences answer.
Internal
Section titled “Internal”Files under lib/ the barrel does not reach; nothing outside the package may import them.
lib/src/agent_render_folder.dart:createAgentRenderFolderlib/src/assistant_host.dart:_portraitBytes,_actionPreamble,_fenced,_projections,_patternJson,_CatalogSource,_LoadedCatalog,_HostAssistantService,_callCode,_codeOf,_saysOf,_failureCode, +4lib/src/assistant_policy.dart:AssistantCallPolicylib/src/assistant_voice_host.dart:installAssistantVoiceService,_voiceProviders,hasVoiceRoute,_HostNativeConversation,_HostVoiceService,_OpenStage,_FinishingVoiceSession,VoiceFunding,readVoiceFunding,credentialCode,voiceBindingForlib/src/capability_args.dart:capabilityInterfaces,promptTargets,CapabilityRefused,capabilityArgs,_block,_promptContext,_promptTokens,_medialib/src/container_capture.dart:ContainerShapeRefused,ContainerCapturelib/src/create_runtime_io.dart:createPluginRuntime,installAssistantService,refreshAssistantReadiness,serverReportLevel,_troubleEvents,startServers,pluginsSettled,_failure,startRenders,pokeLendingSupplier,_createAgentRenderFolder,_journal, +1lib/src/ctx_doors.dart:_thinkingNote,KeyCandidate,PluginCaller,CtxDoors,_keyRecord,keyRecordOf,keyIsStored,readStoredKey,keyLastFour,_granting,_Placing,_MediaLine, +1lib/src/dev_folder.dart:DevFolderReader,DiskDevFolderReader,DevFolderProblem,DevelopmentFolderlib/src/dev_run.dart:DevRun,DevLog,DevLogFile,DevBenchRun,DevBenchCall,DevBenchCapability,DevSubmission,DevBenchSubmit,DevBenchlib/src/exchange_doors.dart:exchangeAnswerMost,keptExportsMost,ExchangeDoorslib/src/exposed_offers.dart:ExposedOfferslib/src/host_environment.dart:HostEnvironment,ContainerEnvironment,HostWriteslib/src/host_runtime.dart:HostPluginRuntime,_FrameDigest,_MachineEdit,_Changes,_HookOutcome,_HookProblemlib/src/http_door.dart:OperationEnded,CredentialReader,passTarget,UploadForm,SentRequestFate,PluginHttpDoor,KeyRoad,_Creditlib/src/http_stream.dart:frameSse,HttpEventStreamlib/src/lending_supplier.dart:LendingOffer,_unbuilt,lendingOffers,_serverSaid,_serving,_closed,_Held,_Run,LendingSupplier,startLendinglib/src/lent_render.dart:lentOffersBound,lentRetry,_unknown,_mediaMost,Function,_kinds,lentCandidates,lentQuantities,lentPriceCents,lentOptions,lentRender,lentCollect, +3lib/src/media_grants.dart:GrantedMedia,MediaGrants,isMediaType,_mediaTypelib/src/native_conversation_session.dart:NativeConversationSession,NotReadyConversationSessionlib/src/output_check.dart:kindsOfBytes,bytesMayBe,signedPictures,bytesCompletelib/src/package_assets.dart:assetInPackagelib/src/plugin_call_runner.dart:CallDoors,CallMode,Turns,Slots,CallFrame,PluginCallRunnerlib/src/plugin_choice.dart:PluginChoice,choosePlugin,stockPromptWriter,OfferedWriter,PromptWriterOrder,promptWriterOrder,promptWritersOf,_Candidate,_rank,_becauselib/src/plugin_data_files.dart:PluginDataFileslib/src/plugin_lifecycle.dart:LifecycleOperation,LifecycleCheck,_Stem,PluginLifecycleslib/src/plugin_log.dart:_eventName,_addressShaped,pluginLogEvent,pluginLogLevel,sayMissingStringlib/src/plugin_outputs.dart:_Stopped,StagedOutput,PluginOutputslib/src/plugin_registry.dart:PluginPreferenceStore,MemoryPluginPreferences,PluginPreferences,stockPluginsOffByDefault,FoundOrigin,RegisteredPlugin,revisionAdmittedInterfaces,renderAdmissionRevision,admitsRevision,needsRenderUpdate,PluginRegistrylib/src/plugin_views.dart:PluginViewslib/src/preferences.dart:SharedPluginPreferenceslib/src/process_door.dart:ProcessDoor,_windowsCommandLine,_Programlib/src/program_path.dart:programExecutable,findProgramlib/src/provider_choice.dart:NotChosenReason,ChosenBecause,ProviderChoice,ProviderChosen,ProviderNotChosen,LlmDecision,entryPlatforms,chooseProviderlib/src/provider_end.dart:providerEndConfirmedlib/src/realtime_io.dart:connectRealtime,_NoRedirects,_SocketWirelib/src/realtime_pricing.dart:RealtimePricinglib/src/realtime_protocol.dart:RealtimeProtocol,RealtimeWire,VoicePreparationlib/src/realtime_session.dart:_PlayedItem,NativeVoiceSessionlib/src/realtime_transcript.dart:RealtimeTranscriptlib/src/realtime_webrtc.dart:realtimeLoggedEvents,VoiceTrace,connectOpenAiWebRtc,connectOpenAiWebRtcOnCredit,_connect,_bounded,_refusalCode,_WebRtcWirelib/src/render_backend.dart:RenderJobCall,renderJobCalls,RenderJobCaller,PluginRenderBackend,quoteForPlugin,quoteFromPlugin,_Unkept,_StagedItemlib/src/render_events_log.dart:logRenderEventlib/src/render_inputs.dart:RenderInputsRefused,RenderInputslib/src/render_journal_file.dart:FileRenderJournallib/src/render_request.dart:PreparedRender,_copyOf,_withoutGrants,_references,RenderPreparation,prepareRender,_seedOf,_inputsOflib/src/run_binding.dart:RunBindinglib/src/server_backend.dart:PluginServerBackend,serverReportDatalib/src/server_gateway.dart:BoundServer,GatewayRoute,serverGatewaylib/src/sign_in_door.dart:SignInDoorlib/src/staged_media.dart:StagedMedia,StagedMediaStore,StagingRefused,checkedInline,DataUrlParts,dataUrlParts,stagedFileName,_extensionslib/src/tool_relay.dart:ToolRelay,_Turn,_Calllib/src/usage_chain.dart:UsagePricing,freeInterfaces,isFreeFunction,PluginUsageLedger,CompletionAdmission,_boundPrice,_Spentlib/src/voice_calls.dart:voiceRenderFunctions,voicePlatformOf,voiceAnswerAsRender,_seedAppliedlib/src/voice_tools.dart:_aliasMax,_outsideAlias,_toolNote,VoiceToolTable,voiceToolDeadline,ToolAnswer,runToolCall,_answer,_outcomeOf,_outputOf,ToolTurnRunner,_Call, +1