Skip to content

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.

  • 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, UsageBasis and 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, plugInsMayCall and 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, RenderSucceeded and 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, Command and 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.

filmopen_app

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.

  • 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.
  • 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.

Files under lib/ the barrel does not reach; nothing outside the package may import them.

  • lib/src/agent_render_folder.dart: createAgentRenderFolder
  • lib/src/assistant_host.dart: _portraitBytes, _actionPreamble, _fenced, _projections, _patternJson, _CatalogSource, _LoadedCatalog, _HostAssistantService, _callCode, _codeOf, _saysOf, _failureCode, +4
  • lib/src/assistant_policy.dart: AssistantCallPolicy
  • lib/src/assistant_voice_host.dart: installAssistantVoiceService, _voiceProviders, hasVoiceRoute, _HostNativeConversation, _HostVoiceService, _OpenStage, _FinishingVoiceSession, VoiceFunding, readVoiceFunding, credentialCode, voiceBindingFor
  • lib/src/capability_args.dart: capabilityInterfaces, promptTargets, CapabilityRefused, capabilityArgs, _block, _promptContext, _promptTokens, _media
  • lib/src/container_capture.dart: ContainerShapeRefused, ContainerCapture
  • lib/src/create_runtime_io.dart: createPluginRuntime, installAssistantService, refreshAssistantReadiness, serverReportLevel, _troubleEvents, startServers, pluginsSettled, _failure, startRenders, pokeLendingSupplier, _createAgentRenderFolder, _journal, +1
  • lib/src/ctx_doors.dart: _thinkingNote, KeyCandidate, PluginCaller, CtxDoors, _keyRecord, keyRecordOf, keyIsStored, readStoredKey, keyLastFour, _granting, _Placing, _MediaLine, +1
  • lib/src/dev_folder.dart: DevFolderReader, DiskDevFolderReader, DevFolderProblem, DevelopmentFolder
  • lib/src/dev_run.dart: DevRun, DevLog, DevLogFile, DevBenchRun, DevBenchCall, DevBenchCapability, DevSubmission, DevBenchSubmit, DevBench
  • lib/src/exchange_doors.dart: exchangeAnswerMost, keptExportsMost, ExchangeDoors
  • lib/src/exposed_offers.dart: ExposedOffers
  • lib/src/host_environment.dart: HostEnvironment, ContainerEnvironment, HostWrites
  • lib/src/host_runtime.dart: HostPluginRuntime, _FrameDigest, _MachineEdit, _Changes, _HookOutcome, _HookProblem
  • lib/src/http_door.dart: OperationEnded, CredentialReader, passTarget, UploadForm, SentRequestFate, PluginHttpDoor, KeyRoad, _Credit
  • lib/src/http_stream.dart: frameSse, HttpEventStream
  • lib/src/lending_supplier.dart: LendingOffer, _unbuilt, lendingOffers, _serverSaid, _serving, _closed, _Held, _Run, LendingSupplier, startLending
  • lib/src/lent_render.dart: lentOffersBound, lentRetry, _unknown, _mediaMost, Function, _kinds, lentCandidates, lentQuantities, lentPriceCents, lentOptions, lentRender, lentCollect, +3
  • lib/src/media_grants.dart: GrantedMedia, MediaGrants, isMediaType, _mediaType
  • lib/src/native_conversation_session.dart: NativeConversationSession, NotReadyConversationSession
  • lib/src/output_check.dart: kindsOfBytes, bytesMayBe, signedPictures, bytesComplete
  • lib/src/package_assets.dart: assetInPackage
  • lib/src/plugin_call_runner.dart: CallDoors, CallMode, Turns, Slots, CallFrame, PluginCallRunner
  • lib/src/plugin_choice.dart: PluginChoice, choosePlugin, stockPromptWriter, OfferedWriter, PromptWriterOrder, promptWriterOrder, promptWritersOf, _Candidate, _rank, _because
  • lib/src/plugin_data_files.dart: PluginDataFiles
  • lib/src/plugin_lifecycle.dart: LifecycleOperation, LifecycleCheck, _Stem, PluginLifecycles
  • lib/src/plugin_log.dart: _eventName, _addressShaped, pluginLogEvent, pluginLogLevel, sayMissingString
  • lib/src/plugin_outputs.dart: _Stopped, StagedOutput, PluginOutputs
  • lib/src/plugin_registry.dart: PluginPreferenceStore, MemoryPluginPreferences, PluginPreferences, stockPluginsOffByDefault, FoundOrigin, RegisteredPlugin, revisionAdmittedInterfaces, renderAdmissionRevision, admitsRevision, needsRenderUpdate, PluginRegistry
  • lib/src/plugin_views.dart: PluginViews
  • lib/src/preferences.dart: SharedPluginPreferences
  • lib/src/process_door.dart: ProcessDoor, _windowsCommandLine, _Program
  • lib/src/program_path.dart: programExecutable, findProgram
  • lib/src/provider_choice.dart: NotChosenReason, ChosenBecause, ProviderChoice, ProviderChosen, ProviderNotChosen, LlmDecision, entryPlatforms, chooseProvider
  • lib/src/provider_end.dart: providerEndConfirmed
  • lib/src/realtime_io.dart: connectRealtime, _NoRedirects, _SocketWire
  • lib/src/realtime_pricing.dart: RealtimePricing
  • lib/src/realtime_protocol.dart: RealtimeProtocol, RealtimeWire, VoicePreparation
  • lib/src/realtime_session.dart: _PlayedItem, NativeVoiceSession
  • lib/src/realtime_transcript.dart: RealtimeTranscript
  • lib/src/realtime_webrtc.dart: realtimeLoggedEvents, VoiceTrace, connectOpenAiWebRtc, connectOpenAiWebRtcOnCredit, _connect, _bounded, _refusalCode, _WebRtcWire
  • lib/src/render_backend.dart: RenderJobCall, renderJobCalls, RenderJobCaller, PluginRenderBackend, quoteForPlugin, quoteFromPlugin, _Unkept, _StagedItem
  • lib/src/render_events_log.dart: logRenderEvent
  • lib/src/render_inputs.dart: RenderInputsRefused, RenderInputs
  • lib/src/render_journal_file.dart: FileRenderJournal
  • lib/src/render_request.dart: PreparedRender, _copyOf, _withoutGrants, _references, RenderPreparation, prepareRender, _seedOf, _inputsOf
  • lib/src/run_binding.dart: RunBinding
  • lib/src/server_backend.dart: PluginServerBackend, serverReportData
  • lib/src/server_gateway.dart: BoundServer, GatewayRoute, serverGateway
  • lib/src/sign_in_door.dart: SignInDoor
  • lib/src/staged_media.dart: StagedMedia, StagedMediaStore, StagingRefused, checkedInline, DataUrlParts, dataUrlParts, stagedFileName, _extensions
  • lib/src/tool_relay.dart: ToolRelay, _Turn, _Call
  • lib/src/usage_chain.dart: UsagePricing, freeInterfaces, isFreeFunction, PluginUsageLedger, CompletionAdmission, _boundPrice, _Spent
  • lib/src/voice_calls.dart: voiceRenderFunctions, voicePlatformOf, voiceAnswerAsRender, _seedApplied
  • lib/src/voice_tools.dart: _aliasMax, _outsideAlias, _toolNote, VoiceToolTable, voiceToolDeadline, ToolAnswer, runToolCall, _answer, _outcomeOf, _outputOf, ToolTurnRunner, _Call, +1