Skip to main content

Crate lenso_app_authoring

Crate lenso_app_authoring 

Source
Expand description

Validated, atomic authoring operations for one Lenso App Plugin Root.

Every mutation resolves the complete candidate against the Host Catalog before changing visible App-owned files. Runtime Generation staging and switching remain the responsibility of the running Host.

Modules§

identity
Canonical identities shared by Plugin authoring and catalog consumers.

Structs§

LocalPluginRootAuthority
Default configuration authority backed by one visible App Plugin Root.
PluginAuthoringState
Read-only authoring state for one Plugin Release visible to the App owner.
PluginConfigurationAuthoritySource
Stable provenance for the authority that owns Plugin configuration publication.
PluginConfigurationDiagnostic
One stable reason a configuration proposal cannot proceed automatically.
PluginConfigurationProposal
Read-only review evidence for one exact Plugin Instance configuration change.
PluginConfigurationPublication
Evidence returned after compare-and-swap publication succeeds.
PluginConfigurationSourceConflict
Exact configuration source changed after a proposal was reviewed.
PluginConfigurationSourceDigest
A digest of the exact target configuration source, including absence.
PluginInstanceAuthoringState
Read-only authoring state for one Plugin Instance.
PluginRootAuthoringState
Complete read-only management projection for the current Plugin Root.
PluginRootRevision
A deterministic semantic revision of one App’s Plugin Root.
PluginRootRevisionConflict
A proposal was published against a Plugin Root that has since changed.
PluginRootRevisionParseError
Text did not contain one complete SHA-256 Plugin Root revision.
PluginSelectionPublication
One committed Plugin Instance selection change.
PreparedBundleMutation
Stable staged bytes and candidate resolution for one pending Bundle mutation.

Enums§

BundleMutation
Desired root-Bundle mutation validated before visible bytes change.
PluginConfigurationApplication
The Host action required after publication.
PluginConfigurationProposalStatus
Whether a configuration proposal can proceed to publication.
PluginInstanceOrigin
Authority that introduced one visible Plugin Instance.
PluginInstanceSelection
Current desired selection derived from the Plugin Root.

Traits§

PluginConfigurationAuthority
Host-side port for inspecting, proposing, and publishing Plugin configuration.
PluginSelectionAuthority
Host-side port for enabling or disabling one Plugin Instance.

Functions§

add_bundle
Adds one verified external Plugin Bundle after resolving the complete candidate App.
configure_instance
Atomically writes one typed Instance patch after resolving the complete candidate App.
inspect_plugin_root
Inspects the current Host Catalog and Plugin Root without changing either.
load_resolved_app
Resolves the App selected by one project root’s Host Catalog and Plugin Root.
prepare_bundle_mutation
Copies one candidate into stable staging, validates it once, and resolves the complete candidate App before any Plugin Root bytes change.
propose_instance_configuration
Builds review evidence without changing the Plugin Root.
publish_instance_configuration
Publishes an exact reviewed proposal when its base revision is still current.
remove_instance_difference
Removes one App-owned Instance difference after validating the remaining App.
remove_plugin
Moves one root-supplied Plugin to recoverable trash after validating the remaining App.
set_instance_disabled
Atomically changes one Instance selection marker after candidate resolution.
set_instance_enabled_fenced
Atomically changes one Instance selection after checking the exact current revision.
validate_bundle_mutation
Verifies one Bundle and resolves the complete candidate App for an add or replacement.