mission-control-web

    Mission Control web UI, written with Rabbita

    mission-control
    rabbita
    web
    ui
    Download zip
    Author
    Version
    0.7.0
    License
    Apache-2.0
    Last updated
    12 hours ago
    Downloads
    135

    #mission-control-web

    The Mission Control web UI, for a browser and for the window of the desktop app. It is a Rabbita page with the components of rui. It shows the projects, adds and removes them, and stops Mission Control. The guide for users says how to open it and how to add a project.

    moon test apps/web --target js moon build apps/web --target js --release

    This package is JavaScript only. The build makes one script, _build/js/release/build/moonrockz/mission-control-web/mission-control-web.js.

    #The bundle

    The server has a small form of this script in pkgs/server/ui/bundle.mbt. After each change of this package, run:

    mise run web:bundle

    Commit the file with the change. mise run validate makes the script again and fails when the file is old.

    #The page

    The server of Mission Control gives the page. The script needs:

    • an element with the ID app, where it mounts;
    • the name of the instance in data-instance on the html element. A view that cannot connect needs it for the command that opens Mission Control again;
    • data-surface="desktop" on the html element in a window of the desktop app, and no such attribute in a browser;
    • the view key in localStorage, under mission-control-view-key. Without a valid key the page says how to open Mission Control again;
    • /hub and /session on the origin of the page.

    The script keeps the state of the primary sidebar in localStorage, under mission-control-primary-sidebar, as shown or hidden. It also keeps the color scheme (mission-control-color-scheme: moonrockz, minimal, or warm-editorial) and appearance (mission-control-appearance: system, light, or dark). Without a stored choice, or with unknown text, the page defaults to a shown primary sidebar, Moonrockz, and System. Each page reads stored values at startup.

    The address of the page has the open project and active workspace URN, for example #/projects/urn:mc:proj:payments-a1b2c3d4 or #/projects/urn:mc:proj:payments-a1b2c3d4/workspaces/urn:mc:ws:payments-billing-7c1f8a2b, so a reload and the buttons of the browser keep it.

    #Adaptive Shell, Live Workspaces, and Mockup Preview

    Opening a live project loads its peer workspaces via list_workspaces (and subscribes to workspaces_changed). Multi-workspace projects expand peer workspace rows in the primary sidebar, show the active workspace in the top-bar Workspace Pill, and expose peer workspaces in the command palette; single-workspace projects collapse to one row. Repositories with zero workspaces (Empty) or an unavailable store (Unavailable) show guided states in the main area instead of perspective tabs while keeping Settings accessible.

    Populated workspaces enter the unified adaptive shell with three activity perspectives (Plan, Build, and Review), Back and Forward navigation history (Alt+Left / Alt+Right), and a full-page Settings overlay with workflow presets and Workflow Studio.

    Later changes (workspace-sources, canonical-intent, rdf-core, data-dictionary, and scorecards-and-sdlc) add live source mounts and workflow RPCs. Until then, workflow, intent, scorecard, reading packet, and Workflow Studio data come from the pure fixture module mockup.mbt. The status bar shows a Mockup chip while preview data is active.

    #Files

    • main.mbt reads the page and mounts the UI.
    • shell_types.mbt defines immutable shell domain types (Perspective, PlanView, ReadMode, ColorScheme, Appearance, SettingsTab, NavHistory) and storage parsers.
    • mockup.mbt holds the isolated local preview fixtures and state transitions per open project.
    • model.mbt has the state and its rules. step is pure: it gives the next state and the effects. update makes Rabbita commands of the effects.
    • actions.mbt has the operations of the user: open a project, add, remove, switch perspectives, navigate back/forward, open settings, hide or show the primary sidebar, and stop. actions(model) gives the ones of a view, and finds is the search for them.
    • palette.mbt has the command palette.
    • shortcuts.mbt has the shortcuts of the page (Ctrl/Cmd+K, Ctrl/Cmd+B, Alt+Left/Alt+Right, 1/2/3, Escape).
    • view.mbt has the screen, the theme tokens, the status bar (including the Mockup chip), and the subscriptions.
    • view_shell.mbt renders the unified top bar, Plan, Build, and Review perspectives, and the floating gate inspector.
    • view_settings.mbt renders the full-page Settings overlay, Workflow Studio preview, and Appearance controls.
    • connection.mbt has the connection to the server.

    A control and an entry of the palette for the same operation send the same message, ActionChosen(action). Action::enabled says if the operation is possible now. The controls show it, and step ignores an operation that is not possible. To add an operation, add a case to Action.

    #Command palette

    Ctrl+K or Ctrl+Shift+P opens the palette, and on macOS Cmd+K or Cmd+Shift+P. The button Find… in the primary sidebar opens it also. Firefox keeps Ctrl+Shift+P for itself. The palette finds each action that has all typed words in its title, its search words or its path, in any order.

    The palette is a combobox with a list. The focus stays in the search field, and the selected action is in the model (Palette(query~, selected~)) as an ActionId. The selection stays with its action when the projects or the connection change. If its action goes away, the first result is selected. Enter does nothing when the page still shows the actions before such a change, so it never runs an action that the user did not see.

    #Connection

    connection.mbt gives the UI a Proton client over the SignalR hub of the server, and the loop that connects again. No other file of the UI names SignalR.

    The button Browse… of the dialog that adds a project is only in a window of the desktop app. It calls app.choose_folder with @proton_client.desktop, which is the bridge of the window and not the server.

    • Connection::to_hub(url, key, session) makes the connection. check_session(url, key) is the request for the session.
    • ViewKey(text) parses the key that the server gave the view. Each request sends it. A page with no key uses Connection::without_key(), whose state is Restarted from the start.
    • client calls the server and gets its events. A subscription continues on each new connection.
    • run tries at once, after 1, 2 and 5 seconds, and then each 5 seconds. A try has 10 seconds to open a connection. A connection that was open for less than 5 seconds counts as a failed try. run ends when the server refuses the session (Restarted) or after stopped (Stopped).
    • The console of the browser gets the cause of each failure, without the key.

    ConceptDefinitionError

    pub suberror ConceptDefinitionError {
    Empty
    TooLong(Int)
    ContainsControlChar(String)
    } derive(Eq,
    Debug
    )

    Error returned when text is not a valid SKOS concept definition.

    ConceptDefinitionError::equal

    automatically derived

    ConceptDefinitionError::not_equal

    automatically derived

    ConceptDefinitionError::to_repr

    automatically derived

    ConceptIriError

    pub suberror ConceptIriError {
    Empty
    ContainsWhitespace(String)
    MissingScheme(String)
    } derive(Eq,
    Debug
    )

    Error returned when text is not a valid RDF concept IRI.

    ConceptIriError::equal

    automatically derived

    ConceptIriError::not_equal

    fn ConceptIriError::not_equal(x : ConceptIriError, y : ConceptIriError) -> Bool
    automatically derived

    ConceptIriError::to_repr

    automatically derived

    ConceptLabelError

    pub suberror ConceptLabelError {
    Empty
    TooLong(Int)
    ContainsControlChar(String)
    } derive(Eq,
    Debug
    )

    Error returned when text is not a valid SKOS concept label.

    ConceptLabelError::equal

    automatically derived

    ConceptLabelError::not_equal

    fn ConceptLabelError::not_equal(x : ConceptLabelError, y : ConceptLabelError) -> Bool
    automatically derived

    ConceptLabelError::to_repr

    automatically derived

    LocalConceptIdError

    pub suberror LocalConceptIdError {
    NonPositive(Int)
    } derive(Eq,
    Debug
    )

    Error returned when a local concept sequence identifier is not positive.

    LocalConceptIdError::equal

    automatically derived

    LocalConceptIdError::not_equal

    automatically derived

    LocalConceptIdError::to_repr

    automatically derived

    ScoreError

    pub suberror ScoreError {
    BelowZero(Int)
    AboveMax(Int)
    } derive(Eq,
    Debug
    )

    Error returned when a raw integer is outside the valid scorecard score range of 0 through 100.

    ScoreError::equal

    fn ScoreError::equal(ScoreError, ScoreError) -> Bool
    automatically derived

    ScoreError::not_equal

    fn ScoreError::not_equal(x : ScoreError, y : ScoreError) -> Bool
    automatically derived

    ScoreError::to_repr

    automatically derived

    StepNumberError

    pub suberror StepNumberError {
    NonPositive(Int)
    } derive(Eq,
    Debug
    )

    Error returned when a reading packet step number is not positive.

    StepNumberError::equal

    automatically derived

    StepNumberError::not_equal

    fn StepNumberError::not_equal(x : StepNumberError, y : StepNumberError) -> Bool
    automatically derived

    StepNumberError::to_repr

    automatically derived

    TaskProgressError

    pub suberror TaskProgressError {
    NegativeDone(Int)
    NegativeTotal(Int)
    DoneExceedsTotal(Int, Int)
    } derive(Eq,
    Debug
    )

    Error returned when task progress counts violate 0 <= done <= total.

    TaskProgressError::equal

    automatically derived

    TaskProgressError::not_equal

    fn TaskProgressError::not_equal(x : TaskProgressError, y : TaskProgressError) -> Bool
    automatically derived

    TaskProgressError::to_repr

    automatically derived

    ViewKeyError

    pub(all) suberror ViewKeyError {
    Empty
    NotUrlSafe
    TooLong
    } derive(Eq,
    Debug
    )

    The rule of a view key that a text breaks. An error never has the text, because the text can be almost a key.

    ViewKeyError::equal

    automatically derived

    ViewKeyError::not_equal

    fn ViewKeyError::not_equal(x : ViewKeyError, y : ViewKeyError) -> Bool
    automatically derived

    ViewKeyError::to_repr

    automatically derived

    WarningCountError

    pub suberror WarningCountError {
    Negative(Int)
    } derive(Eq,
    Debug
    )

    Error returned when a warning count is negative.

    WarningCountError::equal

    automatically derived

    WarningCountError::not_equal

    fn WarningCountError::not_equal(x : WarningCountError, y : WarningCountError) -> Bool
    automatically derived

    WarningCountError::to_repr

    automatically derived

    Action

    An operation of the user.

    Action::enabled

    fn Action::enabled(self : Action, model : Model) -> Bool

    The user can do the action now. step ignores an action that is not enabled.

    Action::equal

    fn Action::equal(Action, Action) -> Bool
    automatically derived

    Action::group

    fn Action::group(self : Action) -> ActionGroup

    Action::id

    fn Action::id(self : Action) -> ActionId

    Action::not_equal

    fn Action::not_equal(x : Action, y : Action) -> Bool
    automatically derived

    Action::search_words

    fn Action::search_words(self : Action) -> Array[String]

    Words that find the action in the command palette, and that its title does not have.

    Action::title

    fn Action::title(self : Action) -> String

    The text of the action for the user.

    Action::to_repr

    automatically derived

    ActionGroup

    pub(all) enum ActionGroup {
    Projects
    Workspaces
    Commands
    } derive(Eq,
    Debug
    )

    A group of actions in the command palette.

    ActionGroup::equal

    fn ActionGroup::equal(ActionGroup, ActionGroup) -> Bool
    automatically derived

    ActionGroup::not_equal

    fn ActionGroup::not_equal(x : ActionGroup, y : ActionGroup) -> Bool
    automatically derived

    ActionGroup::to_repr

    automatically derived

    ActionId

    What an action is, without the details that can change. Two projects can have the same name, and a project can get a different place in the list.

    ActionId::equal

    fn ActionId::equal(ActionId, ActionId) -> Bool
    automatically derived

    ActionId::not_equal

    fn ActionId::not_equal(x : ActionId, y : ActionId) -> Bool
    automatically derived

    ActionId::to_repr

    automatically derived

    AddState

    pub(all) enum AddState {
    Typing
    Refused(String)
    Browsing
    Sending
    } derive(Eq,
    Debug
    )

    The path of a new project.

    AddState::equal

    fn AddState::equal(AddState, AddState) -> Bool
    automatically derived

    AddState::not_equal

    fn AddState::not_equal(x : AddState, y : AddState) -> Bool
    automatically derived

    AddState::to_repr

    automatically derived

    Appearance

    pub(all) enum Appearance {
    System
    Light
    Dark
    } derive(Eq,
    Debug
    )

    Light or dark preference, or follow the operating system.

    Appearance::equal

    fn Appearance::equal(Appearance, Appearance) -> Bool
    automatically derived

    Appearance::label

    fn Appearance::label(self : Appearance) -> String

    Returns the display label of an appearance mode.

    Appearance::next

    fn Appearance::next(self : Appearance) -> Appearance

    Cycles appearance in order: System -> Light -> Dark -> System.

    Appearance::not_equal

    fn Appearance::not_equal(x : Appearance, y : Appearance) -> Bool
    automatically derived

    Appearance::of_stored

    fn Appearance::of_stored(text : String) -> Appearance

    Parses an appearance preference from browser storage text. Unknown text defaults to System.

    Appearance::stored

    fn Appearance::stored(self : Appearance) -> String

    Returns the canonical text written to browser storage and data-appearance.

    Appearance::to_repr

    automatically derived

    ArtifactKind

    pub(all) enum ArtifactKind {
    ProposalMd
    DesignMd
    SpecMd
    TasksMd
    Adr0015
    Adr0014
    ExploreMd
    SpecsSynced
    } derive(Eq,
    Debug
    )

    Typed artifact file slot attached to a workflow item.

    ArtifactKind::equal

    automatically derived

    ArtifactKind::label

    fn ArtifactKind::label(self : ArtifactKind) -> String

    Returns the display name of an artifact slot.

    ArtifactKind::not_equal

    fn ArtifactKind::not_equal(x : ArtifactKind, y : ArtifactKind) -> Bool
    automatically derived

    ArtifactKind::to_repr

    automatically derived

    ArtifactStatus

    pub(all) enum ArtifactStatus {
    Clean
    Warning
    Missing
    } derive(Eq,
    Debug
    )

    Required artifact verification status.

    ArtifactStatus::equal

    automatically derived

    ArtifactStatus::not_equal

    fn ArtifactStatus::not_equal(x : ArtifactStatus, y : ArtifactStatus) -> Bool
    automatically derived

    ArtifactStatus::to_repr

    automatically derived

    AuditKind

    pub(all) enum AuditKind {
    DeprecatedSynonym(target~ : ConceptId)
    UnlinkedMention(target~ : ConceptId)
    } derive(Eq,
    Debug
    )

    Classification of a Prose Term Audit item.

    AuditKind::equal

    fn AuditKind::equal(AuditKind, AuditKind) -> Bool
    automatically derived

    AuditKind::not_equal

    fn AuditKind::not_equal(x : AuditKind, y : AuditKind) -> Bool
    automatically derived

    AuditKind::to_repr

    automatically derived

    AuditStatus

    pub(all) enum AuditStatus {
    OpenAudit
    ResolvedAudit
    } derive(Eq,
    Debug
    )

    Lifecycle status of a Prose Term Audit finding.

    AuditStatus::equal

    fn AuditStatus::equal(AuditStatus, AuditStatus) -> Bool
    automatically derived

    AuditStatus::is_resolved

    fn AuditStatus::is_resolved(self : AuditStatus) -> Bool

    Reports whether an audit finding has been resolved.

    AuditStatus::not_equal

    fn AuditStatus::not_equal(x : AuditStatus, y : AuditStatus) -> Bool
    automatically derived

    AuditStatus::to_repr

    automatically derived

    BrandConfig

    pub struct BrandConfig {
    mark : BrandMark
    title : BrandTitle
    } derive(Eq,
    Debug
    )

    Complete persisted brand identity for this browser's Mission Control instance.

    BrandConfig::default

    fn BrandConfig::default() -> BrandConfig

    BrandConfig::equal

    fn BrandConfig::equal(BrandConfig, BrandConfig) -> Bool
    automatically derived

    BrandConfig::not_equal

    fn BrandConfig::not_equal(x : BrandConfig, y : BrandConfig) -> Bool
    automatically derived

    BrandConfig::of_stored

    fn BrandConfig::of_stored(text : String) -> BrandConfig

    Parses stored brand identity text, falling back to defaults on unknown, malformed, or untrusted data.

    BrandConfig::stored

    fn BrandConfig::stored(self : BrandConfig) -> String

    Encodes brand identity into a newline-delimited string for localStorage. Every field is validated to contain no control characters or newlines.

    BrandConfig::to_repr

    automatically derived

    BrandEmoji

    pub struct BrandEmoji {
    // private fields
    } derive(Eq,
    Debug
    )

    A validated concise emoji or symbol brand mark (1..=8 non-control chars).

    BrandEmoji::as_str

    fn BrandEmoji::as_str(self : BrandEmoji) -> String

    BrandEmoji::default

    fn BrandEmoji::default() -> BrandEmoji

    BrandEmoji::equal

    fn BrandEmoji::equal(BrandEmoji, BrandEmoji) -> Bool
    automatically derived

    BrandEmoji::not_equal

    fn BrandEmoji::not_equal(x : BrandEmoji, y : BrandEmoji) -> Bool
    automatically derived

    BrandEmoji::parse

    fn BrandEmoji::parse(raw : String) -> BrandEmoji?

    BrandEmoji::to_repr

    automatically derived

    BrandImageUrl

    pub struct BrandImageUrl {
    // private fields
    } derive(Eq,
    Debug
    )

    A validated raster data:image/*;base64,... URI allowed under the server's img-src data: CSP and capped at 128 KB.

    BrandImageUrl::as_str

    fn BrandImageUrl::as_str(self : BrandImageUrl) -> String

    BrandImageUrl::equal

    automatically derived

    BrandImageUrl::not_equal

    fn BrandImageUrl::not_equal(x : BrandImageUrl, y : BrandImageUrl) -> Bool
    automatically derived

    BrandImageUrl::parse

    fn BrandImageUrl::parse(raw : String) -> BrandImageUrl?

    BrandImageUrl::to_repr

    automatically derived

    BrandMark

    pub(all) enum BrandMark {
    Moonrockz
    Monogram(BrandMonogram)
    Emoji(BrandEmoji)
    CustomImage(BrandImageUrl)
    } derive(Eq,
    Debug
    )

    Closed set of configurable brand marks shown in the sidebar header and mobile bar.

    BrandMark::equal

    fn BrandMark::equal(BrandMark, BrandMark) -> Bool
    automatically derived

    BrandMark::not_equal

    fn BrandMark::not_equal(x : BrandMark, y : BrandMark) -> Bool
    automatically derived

    BrandMark::to_repr

    automatically derived

    BrandMonogram

    pub struct BrandMonogram {
    // private fields
    } derive(Eq,
    Debug
    )

    A validated 1..=3 character uppercase ASCII alphanumeric monogram badge.

    BrandMonogram::as_str

    fn BrandMonogram::as_str(self : BrandMonogram) -> String

    BrandMonogram::default

    fn BrandMonogram::default() -> BrandMonogram

    BrandMonogram::equal

    automatically derived

    BrandMonogram::not_equal

    fn BrandMonogram::not_equal(x : BrandMonogram, y : BrandMonogram) -> Bool
    automatically derived

    BrandMonogram::parse

    fn BrandMonogram::parse(raw : String) -> BrandMonogram?

    Parses 1..=3 ASCII letters or digits, normalizing lowercase letters to uppercase.

    BrandMonogram::to_repr

    automatically derived

    BrandTitle

    pub struct BrandTitle {
    // private fields
    } derive(Eq,
    Debug
    )

    A validated display title for the Mission Control header (1..=40 printable chars).

    BrandTitle::as_str

    fn BrandTitle::as_str(self : BrandTitle) -> String

    BrandTitle::default

    fn BrandTitle::default() -> BrandTitle

    BrandTitle::equal

    fn BrandTitle::equal(BrandTitle, BrandTitle) -> Bool
    automatically derived

    BrandTitle::not_equal

    fn BrandTitle::not_equal(x : BrandTitle, y : BrandTitle) -> Bool
    automatically derived

    BrandTitle::parse

    fn BrandTitle::parse(raw : String) -> BrandTitle?

    Parses a trimmed single-line brand title, returning None when empty, longer than 40 characters, or containing control characters.

    BrandTitle::to_repr

    automatically derived

    ClauseChange

    pub(all) enum ClauseChange {
    Added
    Modified(previous~ : String)
    } derive(Eq,
    Debug
    )

    Whether a requirement delta clause is newly added or modifies an earlier clause.

    ClauseChange::equal

    automatically derived

    ClauseChange::label

    fn ClauseChange::label(self : ClauseChange) -> String

    ClauseChange::not_equal

    fn ClauseChange::not_equal(x : ClauseChange, y : ClauseChange) -> Bool
    automatically derived

    ClauseChange::to_repr

    automatically derived

    ClauseFinding

    pub(all) enum ClauseFinding {
    NoFinding
    DeprecatedTermOpen
    DeprecatedTermResolved
    } derive(Eq,
    Debug
    )

    Whether a requirement clause carries an active or resolved policy finding banner.

    ClauseFinding::equal

    automatically derived

    ClauseFinding::not_equal

    fn ClauseFinding::not_equal(x : ClauseFinding, y : ClauseFinding) -> Bool
    automatically derived

    ClauseFinding::to_repr

    automatically derived

    CodeLanguage

    pub(all) enum CodeLanguage {
    Mermaid
    Xml
    Yaml
    Turtle
    JsonLd
    Markdown
    Toml
    Shell
    MoonBit
    } derive(Eq,
    Debug
    )

    Languages supported by the Mission Control code viewer and editor.

    CodeLanguage::equal

    automatically derived

    CodeLanguage::label

    fn CodeLanguage::label(self : CodeLanguage) -> String

    Human-readable badge label for a code language.

    CodeLanguage::not_equal

    fn CodeLanguage::not_equal(x : CodeLanguage, y : CodeLanguage) -> Bool
    automatically derived

    CodeLanguage::of_studio_format

    fn CodeLanguage::of_studio_format(format : StudioFormat) -> CodeLanguage

    Maps a Workflow Studio format into its syntax language.

    CodeLanguage::to_repr

    automatically derived

    ColorScheme

    pub(all) enum ColorScheme {
    Moonrockz
    Minimal
    WarmEditorial
    } derive(Eq,
    Debug
    )

    A selectable color scheme for the UI.

    ColorScheme::equal

    fn ColorScheme::equal(ColorScheme, ColorScheme) -> Bool
    automatically derived

    ColorScheme::label

    fn ColorScheme::label(self : ColorScheme) -> String

    Returns the display label of a color scheme.

    ColorScheme::not_equal

    fn ColorScheme::not_equal(x : ColorScheme, y : ColorScheme) -> Bool
    automatically derived

    ColorScheme::of_stored

    fn ColorScheme::of_stored(text : String) -> ColorScheme

    Parses a color scheme from browser storage text. Unknown text defaults to Moonrockz.

    ColorScheme::stored

    fn ColorScheme::stored(self : ColorScheme) -> String

    Returns the canonical text written to browser storage and data-scheme.

    ColorScheme::to_repr

    automatically derived

    CompanionPanel

    pub(all) enum CompanionPanel {
    CompanionShown
    CompanionHidden
    } derive(Eq,
    Debug
    )

    Open/collapsed state of the right companion panel in Review and Knowledge.

    CompanionPanel::equal

    automatically derived

    CompanionPanel::not_equal

    fn CompanionPanel::not_equal(x : CompanionPanel, y : CompanionPanel) -> Bool
    automatically derived

    CompanionPanel::of_stored

    fn CompanionPanel::of_stored(text : String) -> CompanionPanel

    CompanionPanel::other

    CompanionPanel::stored

    fn CompanionPanel::stored(self : CompanionPanel) -> String

    CompanionPanel::to_repr

    automatically derived
    pub struct ConceptBacklink {
    item : WorkflowItemId
    doc : ReviewDocId
    label : String
    } derive(Eq,
    Debug
    )

    Backlink connecting a dictionary concept to a workflow item and Review document.

    ConceptBacklink::equal

    automatically derived

    ConceptBacklink::not_equal

    fn ConceptBacklink::not_equal(x : ConceptBacklink, y : ConceptBacklink) -> Bool
    automatically derived

    ConceptBacklink::to_repr

    automatically derived

    ConceptCard

    pub struct ConceptCard {
    id : ConceptId
    label : ConceptLabel
    status : ConceptStatus
    iri : ConceptIri
    graph : NamedGraph
    alt_labels : ReadOnlyArray[String]
    broader : ReadOnlyArray[ConceptId]
    narrower : ReadOnlyArray[ConceptId]
    related : ReadOnlyArray[ConceptId]
    shacl : String
    definition : ConceptDefinition
    backlinks : ReadOnlyArray[ConceptBacklink]
    } derive(Eq,
    Debug
    )

    An RDF concept displayed in Review's Concept Peek and the Knowledge Data Dictionary.

    ConceptCard::access

    fn ConceptCard::access(self : ConceptCard) -> GraphAccess

    Returns the access policy derived from this concept's named graph.

    ConceptCard::equal

    fn ConceptCard::equal(ConceptCard, ConceptCard) -> Bool
    automatically derived

    ConceptCard::graph_display

    fn ConceptCard::graph_display(self : ConceptCard) -> String

    Returns the formatted named graph line for display and Turtle headers.

    ConceptCard::is_deprecated

    fn ConceptCard::is_deprecated(self : ConceptCard) -> Bool

    Reports whether this concept card is deprecated.

    ConceptCard::not_equal

    fn ConceptCard::not_equal(x : ConceptCard, y : ConceptCard) -> Bool
    automatically derived

    ConceptCard::to_json_ld

    fn ConceptCard::to_json_ld(self : ConceptCard, lookup : (ConceptId) -> ConceptCard?) -> String

    Serializes one dictionary concept into JSON-LD matching the Structured and Turtle representations.

    ConceptCard::to_repr

    automatically derived

    ConceptCard::to_turtle

    fn ConceptCard::to_turtle(self : ConceptCard, lookup : (ConceptId) -> ConceptCard?) -> String

    Serializes one dictionary concept into valid Turtle (TTL).

    ConceptDefinition

    pub struct ConceptDefinition {
    // private fields
    } derive(Eq,
    Debug
    )

    A validated definition for a local SKOS concept (1..=240 printable chars).

    ConceptDefinition::ConceptDefinition

    fn ConceptDefinition::ConceptDefinition(raw : String) -> ConceptDefinition raise ConceptDefinitionError

    Parses a trimmed SKOS concept definition of 1 to 240 printable characters.

    ConceptDefinition::as_str

    fn ConceptDefinition::as_str(self : ConceptDefinition) -> String

    Returns the validated concept definition text.

    ConceptDefinition::equal

    automatically derived

    ConceptDefinition::not_equal

    fn ConceptDefinition::not_equal(x : ConceptDefinition, y : ConceptDefinition) -> Bool
    automatically derived

    ConceptDefinition::to_repr

    automatically derived

    ConceptId

    pub(all) enum ConceptId {
    Pan
    MaskedPan
    PaymentMethod
    DeprecatedCc
    AuditEvent
    IdempotencyKey
    LocalConcept(LocalConceptId)
    } derive(Eq,
    Debug
    )

    Preview RDF Data Dictionary concepts referenced in prose and the Knowledge workbench.

    ConceptId::equal

    fn ConceptId::equal(ConceptId, ConceptId) -> Bool
    automatically derived

    ConceptId::not_equal

    fn ConceptId::not_equal(x : ConceptId, y : ConceptId) -> Bool
    automatically derived

    ConceptId::to_repr

    automatically derived

    ConceptIri

    pub struct ConceptIri {
    // private fields
    } derive(Eq,
    Debug
    )

    A validated RDF concept IRI with a supported URI scheme and no whitespace.

    ConceptIri::ConceptIri

    fn ConceptIri::ConceptIri(text : String) -> ConceptIri raise ConceptIriError

    Parses a concept IRI, rejecting empty text, whitespace, and missing schemes.

    ConceptIri::as_str

    fn ConceptIri::as_str(self : ConceptIri) -> String

    Returns the validated IRI text.

    ConceptIri::equal

    fn ConceptIri::equal(ConceptIri, ConceptIri) -> Bool
    automatically derived

    ConceptIri::not_equal

    fn ConceptIri::not_equal(x : ConceptIri, y : ConceptIri) -> Bool
    automatically derived

    ConceptIri::to_repr

    automatically derived

    ConceptLabel

    pub struct ConceptLabel {
    // private fields
    } derive(Eq,
    Debug
    )

    A validated preferred label for a local SKOS concept (1..=60 printable chars).

    ConceptLabel::ConceptLabel

    fn ConceptLabel::ConceptLabel(raw : String) -> ConceptLabel raise ConceptLabelError

    Parses a trimmed SKOS concept label of 1 to 60 printable characters.

    ConceptLabel::as_str

    fn ConceptLabel::as_str(self : ConceptLabel) -> String

    Returns the validated concept label text.

    ConceptLabel::equal

    automatically derived

    ConceptLabel::not_equal

    fn ConceptLabel::not_equal(x : ConceptLabel, y : ConceptLabel) -> Bool
    automatically derived

    ConceptLabel::to_repr

    automatically derived

    ConceptStatus

    pub(all) enum ConceptStatus {
    ActiveConcept
    DeprecatedConcept(replaced_by~ : ConceptId)
    } derive(Eq,
    Debug
    )

    Lifecycle status of a SKOS dictionary concept.

    ConceptStatus::equal

    automatically derived

    ConceptStatus::is_deprecated

    fn ConceptStatus::is_deprecated(self : ConceptStatus) -> Bool

    Reports whether a concept status marks the term as deprecated.

    ConceptStatus::not_equal

    fn ConceptStatus::not_equal(x : ConceptStatus, y : ConceptStatus) -> Bool
    automatically derived

    ConceptStatus::to_repr

    automatically derived

    Connection

    pub struct Connection {
    client :
    Client

    run : async ((ConnectionState) -> Unit) -> Unit
    stopped : () -> Unit
    }

    The connection of the UI. One value lives as long as the page.

    Connection::to_hub

    fn Connection::to_hub(url : String, key : ViewKey, session : async () -> SessionCheck) -> Connection

    The connection to the hub at url, for example http://127.0.0.1:3090/hub, with the key of the view. session asks the server for the session after each failed try; see check_session. A page with no key uses Connection::without_key.

    The cause of each failure goes to the console of the browser, without the key.

    Connection::without_key

    fn Connection::without_key() -> Connection

    The connection of a page that has no view key. The server refuses such a page, so the state is Restarted from the start: run gives it and ends, with no request. Each call fails with TransportFailure.

    ConnectionState

    pub(all) enum ConnectionState {
    Connecting
    Connected
    Reconnecting
    Restarted
    Stopped
    } derive(Eq,
    Debug
    )

    What the UI knows about its connection to the server.

    ConnectionState::equal

    automatically derived

    ConnectionState::not_equal

    fn ConnectionState::not_equal(x : ConnectionState, y : ConnectionState) -> Bool
    automatically derived

    ConnectionState::to_repr

    automatically derived

    Dialog

    pub(all) enum Dialog {
    NoDialog
    AddDialog(path~ : String, state~ : AddState)
    ConfirmStop
    Palette(query~ : String, selected~ : ActionId?)
    } derive(Eq,
    Debug
    )

    The dialog that is open. Two dialogs are never open at the same time.

    Dialog::add

    fn Dialog::add() -> Dialog

    The dialog that adds a project, with an empty field.

    Dialog::equal

    fn Dialog::equal(Dialog, Dialog) -> Bool
    automatically derived

    Dialog::not_equal

    fn Dialog::not_equal(x : Dialog, y : Dialog) -> Bool
    automatically derived

    Dialog::to_repr

    automatically derived

    DialogElement

    pub(all) enum DialogElement {
    AddElement
    StopElement
    PaletteElement
    } derive(Eq,
    Debug
    )

    An element of the page that shows a dialog.

    DialogElement::equal

    automatically derived

    DialogElement::not_equal

    fn DialogElement::not_equal(x : DialogElement, y : DialogElement) -> Bool
    automatically derived

    DialogElement::to_repr

    automatically derived

    DictFormat

    pub(all) enum DictFormat {
    DictStructured
    DictTurtle
    DictJsonLd
    } derive(Eq,
    Debug
    )

    Display format for one Data Dictionary concept in Knowledge.

    DictFormat::equal

    fn DictFormat::equal(DictFormat, DictFormat) -> Bool
    automatically derived

    DictFormat::label

    fn DictFormat::label(self : DictFormat) -> String

    Returns the display label of a dictionary serialization format.

    DictFormat::not_equal

    fn DictFormat::not_equal(x : DictFormat, y : DictFormat) -> Bool
    automatically derived

    DictFormat::to_repr

    automatically derived

    DictionaryLoad

    pub(all) enum DictionaryLoad {
    Idle
    Loading
    Ready(
    WorkspaceDictionary
    )
    Failed(String)
    } derive(Eq,
    Debug
    )

    Live RDF/SKOS Data Dictionary loading state for one workspace.

    DictionaryLoad::equal

    automatically derived

    DictionaryLoad::not_equal

    fn DictionaryLoad::not_equal(x : DictionaryLoad, y : DictionaryLoad) -> Bool
    automatically derived

    DictionaryLoad::to_repr

    automatically derived

    Direction

    pub(all) enum Direction {
    Up
    Down
    } derive(Eq,
    Debug
    )

    A direction in the list of the palette.

    Direction::equal

    fn Direction::equal(Direction, Direction) -> Bool
    automatically derived

    Direction::not_equal

    fn Direction::not_equal(x : Direction, y : Direction) -> Bool
    automatically derived

    Direction::to_repr

    automatically derived

    DocContent

    pub struct DocContent {
    summary : String
    preview_paragraphs : ReadOnlyArray[ReadOnlyArray[ProseSpan]]
    clauses : ReadOnlyArray[RequirementClause]
    source_lines : ReadOnlyArray[String]
    } derive(Eq,
    Debug
    )

    Per-document reading body for Structured, Preview, and Source modes.

    DocContent::equal

    fn DocContent::equal(DocContent, DocContent) -> Bool
    automatically derived

    DocContent::not_equal

    fn DocContent::not_equal(x : DocContent, y : DocContent) -> Bool
    automatically derived

    DocContent::to_repr

    automatically derived

    DocKind

    pub(all) enum DocKind {
    ProposalDoc
    DesignDoc
    SpecDeltaDoc
    AdrDoc
    MountedKbDoc
    TasksDoc
    } derive(Eq,
    Debug
    )

    Kind of document inside the Review reading packet.

    DocKind::equal

    fn DocKind::equal(DocKind, DocKind) -> Bool
    automatically derived

    DocKind::label

    fn DocKind::label(self : DocKind) -> String

    Returns the display label of a reading packet document kind.

    DocKind::not_equal

    fn DocKind::not_equal(x : DocKind, y : DocKind) -> Bool
    automatically derived

    DocKind::to_repr

    automatically derived

    EarsKind

    pub(all) enum EarsKind {
    Ubiquitous
    EventDriven
    StateDriven
    UnwantedBehavior
    } derive(Eq,
    Debug
    )

    Closed set of EARS requirement pattern classifications.

    EarsKind::equal

    fn EarsKind::equal(EarsKind, EarsKind) -> Bool
    automatically derived

    EarsKind::label

    fn EarsKind::label(self : EarsKind) -> String

    EarsKind::not_equal

    fn EarsKind::not_equal(x : EarsKind, y : EarsKind) -> Bool
    automatically derived

    EarsKind::to_repr

    automatically derived

    ExtraArtifactInput

    pub(all) enum ExtraArtifactInput {
    ThreatModel
    DictionaryAudit
    RunbookSignoff
    } derive(Eq,
    Debug
    )

    Optional extra artifact requirement that can be toggled onto a stage in Workflow Studio.

    ExtraArtifactInput::equal

    automatically derived

    ExtraArtifactInput::label

    fn ExtraArtifactInput::label(self : ExtraArtifactInput) -> String

    Returns the display label of an optional stage input artifact.

    ExtraArtifactInput::not_equal

    automatically derived

    ExtraArtifactInput::to_repr

    automatically derived

    GateCheck

    pub struct GateCheck {
    passed : Bool
    label : String
    source : GateSource
    } derive(Eq,
    Debug
    )

    A single evaluated transition guard check.

    GateCheck::equal

    fn GateCheck::equal(GateCheck, GateCheck) -> Bool
    automatically derived

    GateCheck::not_equal

    fn GateCheck::not_equal(x : GateCheck, y : GateCheck) -> Bool
    automatically derived

    GateCheck::to_repr

    automatically derived

    GateEvaluation

    pub struct GateEvaluation {
    target : StageId?
    checks : ReadOnlyArray[GateCheck]
    } derive(Eq,
    Debug
    )

    The transition gate evaluation for a workflow item.

    GateEvaluation::all_passed

    fn GateEvaluation::all_passed(self : GateEvaluation) -> Bool

    Reports whether every gate check in this evaluation passed.

    GateEvaluation::equal

    automatically derived

    GateEvaluation::not_equal

    fn GateEvaluation::not_equal(x : GateEvaluation, y : GateEvaluation) -> Bool
    automatically derived

    GateEvaluation::open_count

    fn GateEvaluation::open_count(self : GateEvaluation) -> Int

    Returns the count of gate checks that have not passed.

    GateEvaluation::to_repr

    automatically derived

    GateSource

    pub(all) enum GateSource {
    Artifact
    OkfGraph
    Ears
    RegoAndDict
    DocumentScorer
    InputContract
    TasksCheck
    OkfAndRego
    Terminal
    } derive(Eq,
    Debug
    )

    Policy or artifact source of a transition gate check.

    GateSource::equal

    fn GateSource::equal(GateSource, GateSource) -> Bool
    automatically derived

    GateSource::label

    fn GateSource::label(self : GateSource) -> String

    Returns the display label of a gate check source.

    GateSource::not_equal

    fn GateSource::not_equal(x : GateSource, y : GateSource) -> Bool
    automatically derived

    GateSource::to_repr

    automatically derived

    Grade

    pub(all) enum Grade {
    A
    B
    C
    D
    F
    } derive(Eq,
    Debug
    )

    Letter grade derived from a bounded scorecard Score.

    Grade::equal

    fn Grade::equal(Grade, Grade) -> Bool
    automatically derived

    Grade::label

    fn Grade::label(self : Grade) -> String

    Returns the single-letter display text of a grade.

    Grade::not_equal

    fn Grade::not_equal(x : Grade, y : Grade) -> Bool
    automatically derived

    Grade::to_repr

    automatically derived

    GraphAccess

    pub(all) enum GraphAccess {
    ReadOnly
    LocalWritable
    } derive(Eq,
    Debug
    )

    Whether a named graph is mounted read-only or writable in the workspace.

    GraphAccess::equal

    fn GraphAccess::equal(GraphAccess, GraphAccess) -> Bool
    automatically derived

    GraphAccess::label

    fn GraphAccess::label(self : GraphAccess) -> String

    Returns the display label of a graph access mode.

    GraphAccess::not_equal

    fn GraphAccess::not_equal(x : GraphAccess, y : GraphAccess) -> Bool
    automatically derived

    GraphAccess::to_repr

    automatically derived

    IntentLoad

    pub(all) enum IntentLoad {
    Idle
    Loading
    Ready(
    WorkspaceIntent
    )
    Failed(String)
    } derive(Eq,
    Debug
    )

    Live canonical OpenSpec intent loading state for one workspace.

    IntentLoad::equal

    fn IntentLoad::equal(IntentLoad, IntentLoad) -> Bool
    automatically derived

    IntentLoad::not_equal

    fn IntentLoad::not_equal(x : IntentLoad, y : IntentLoad) -> Bool
    automatically derived

    IntentLoad::to_repr

    automatically derived

    KbDocId

    pub(all) enum KbDocId {
    KbPciRunbook
    KbAdrMasking
    KbLedgerSpec
    KbSddPolicy
    } derive(Eq,
    Debug
    )

    Identifier of a preview OKF Knowledge Base document.

    KbDocId::equal

    fn KbDocId::equal(KbDocId, KbDocId) -> Bool
    automatically derived

    KbDocId::not_equal

    fn KbDocId::not_equal(x : KbDocId, y : KbDocId) -> Bool
    automatically derived

    KbDocId::to_repr

    automatically derived

    KbDocKind

    pub(all) enum KbDocKind {
    KbRunbook
    KbAdr
    KbSpec
    KbPolicy
    } derive(Eq,
    Debug
    )

    Classification of a Knowledge Base document.

    KbDocKind::equal

    fn KbDocKind::equal(KbDocKind, KbDocKind) -> Bool
    automatically derived

    KbDocKind::label

    fn KbDocKind::label(self : KbDocKind) -> String

    Returns the short display label of a Knowledge Base document kind.

    KbDocKind::not_equal

    fn KbDocKind::not_equal(x : KbDocKind, y : KbDocKind) -> Bool
    automatically derived

    KbDocKind::to_repr

    automatically derived

    KbDocument

    pub struct KbDocument {
    id : KbDocId
    title : String
    path : String
    kind : KbDocKind
    source : KbSource
    trust_tier : String
    summary : String
    paragraphs : ReadOnlyArray[ReadOnlyArray[ProseSpan]]
    source_lines : ReadOnlyArray[String]
    links : ReadOnlyArray[KbDocId]
    concepts : ReadOnlyArray[ConceptId]
    } derive(Eq,
    Debug
    )

    One local or mounted OKF Knowledge Base document.

    KbDocument::equal

    fn KbDocument::equal(KbDocument, KbDocument) -> Bool
    automatically derived

    KbDocument::not_equal

    fn KbDocument::not_equal(x : KbDocument, y : KbDocument) -> Bool
    automatically derived

    KbDocument::to_repr

    automatically derived

    KbReadMode

    pub(all) enum KbReadMode {
    KbPreview
    KbSource
    } derive(Eq,
    Debug
    )

    Reading mode for a Knowledge Base document.

    KbReadMode::equal

    fn KbReadMode::equal(KbReadMode, KbReadMode) -> Bool
    automatically derived

    KbReadMode::label

    fn KbReadMode::label(self : KbReadMode) -> String

    Returns the display label of a Knowledge Base reading mode.

    KbReadMode::not_equal

    fn KbReadMode::not_equal(x : KbReadMode, y : KbReadMode) -> Bool
    automatically derived

    KbReadMode::to_repr

    automatically derived

    KbSource

    pub(all) enum KbSource {
    LocalOkf
    MountedRo
    } derive(Eq,
    Debug
    )

    Concrete storage origin of a Knowledge Base document.

    KbSource::equal

    fn KbSource::equal(KbSource, KbSource) -> Bool
    automatically derived

    KbSource::label

    fn KbSource::label(self : KbSource) -> String

    Returns the display label of a concrete Knowledge Base source.

    KbSource::not_equal

    fn KbSource::not_equal(x : KbSource, y : KbSource) -> Bool
    automatically derived

    KbSource::to_repr

    automatically derived

    KbSourceFilter

    pub(all) enum KbSourceFilter {
    AllKbSources
    Source(KbSource)
    } derive(Eq,
    Debug
    )

    Source filter inside the Knowledge Base browser.

    KbSourceFilter::equal

    automatically derived

    KbSourceFilter::label

    fn KbSourceFilter::label(self : KbSourceFilter) -> String

    Returns the display label of a Knowledge Base source filter chip.

    KbSourceFilter::matches

    fn KbSourceFilter::matches(self : KbSourceFilter, source : KbSource) -> Bool

    Reports whether this filter includes source.

    KbSourceFilter::not_equal

    fn KbSourceFilter::not_equal(x : KbSourceFilter, y : KbSourceFilter) -> Bool
    automatically derived

    KbSourceFilter::to_repr

    automatically derived

    KnowledgeView

    pub(all) enum KnowledgeView {
    Dictionary
    KnowledgeBase
    } derive(Eq,
    Debug
    )

    Active sub-view inside the Knowledge perspective.

    KnowledgeView::equal

    automatically derived

    KnowledgeView::label

    fn KnowledgeView::label(self : KnowledgeView) -> String

    Returns the display label of a Knowledge sub-view.

    KnowledgeView::not_equal

    fn KnowledgeView::not_equal(x : KnowledgeView, y : KnowledgeView) -> Bool
    automatically derived

    KnowledgeView::to_repr

    automatically derived

    LocalConceptId

    pub struct LocalConceptId {
    // private fields
    } derive(Eq,
    Debug
    )

    A validated positive 1-based identifier for a user-authored local concept.

    LocalConceptId::LocalConceptId

    fn LocalConceptId::LocalConceptId(value : Int) -> LocalConceptId raise LocalConceptIdError

    Constructs a LocalConceptId when value >= 1.

    LocalConceptId::equal

    automatically derived

    LocalConceptId::not_equal

    fn LocalConceptId::not_equal(x : LocalConceptId, y : LocalConceptId) -> Bool
    automatically derived

    LocalConceptId::to_repr

    automatically derived

    LocalConceptId::value

    fn LocalConceptId::value(self : LocalConceptId) -> Int

    Returns the positive integer sequence value of a local concept identifier.

    MockupWorkspace

    pub struct MockupWorkspace {
    // private fields
    } derive(Eq,
    Debug
    )

    Pure local preview state scoped to one open @app.Project. Fields are private so every transition preserves invariants.

    MockupWorkspace::active_concept

    fn MockupWorkspace::active_concept(self : MockupWorkspace) -> ConceptId

    Returns the active RDF concept in the Reading Companion.

    MockupWorkspace::add_local_concept

    fn MockupWorkspace::add_local_concept(self : MockupWorkspace, label : ConceptLabel, definition : ConceptDefinition) -> MockupWorkspace

    Adds a validated local concept to <urn:mc:local:payments> and focuses it.

    MockupWorkspace::advance_item

    fn MockupWorkspace::advance_item(self : MockupWorkspace, item_id : WorkflowItemId) -> MockupWorkspace

    Advances item_id to its next stage if all transition guards pass.

    MockupWorkspace::all_concepts

    fn MockupWorkspace::all_concepts(self : MockupWorkspace) -> ReadOnlyArray[ConceptCard]

    All seeded plus user-authored local concepts in this workspace.

    MockupWorkspace::approve_selected_review

    fn MockupWorkspace::approve_selected_review(self : MockupWorkspace) -> MockupWorkspace

    Approves the currently selected workflow item from Review when all transition gates pass, recording the actual target stage for that item.

    MockupWorkspace::close_inspector

    fn MockupWorkspace::close_inspector(self : MockupWorkspace) -> MockupWorkspace

    Closes the floating gate inspector.

    MockupWorkspace::concept

    Looks up a concept card by ID, including local workspace concepts.

    MockupWorkspace::config_yaml

    fn MockupWorkspace::config_yaml(self : MockupWorkspace) -> String

    Generates the preview .mission-control/workspace.yaml excerpt shown in Project Settings.

    MockupWorkspace::doc

    Looks up a reading packet document by identifier.

    MockupWorkspace::docs

    fn MockupWorkspace::docs(self : MockupWorkspace) -> ReadOnlyArray[ReadDoc]

    Returns the immutable list of reading packet documents for the selected workflow item.

    MockupWorkspace::equal

    automatically derived

    MockupWorkspace::evaluate_gates

    fn MockupWorkspace::evaluate_gates(self : MockupWorkspace, item : WorkflowItem) -> GateEvaluation

    Evaluates transition guards for one workflow item under this workspace's rules.

    MockupWorkspace::has_extra_input

    fn MockupWorkspace::has_extra_input(self : MockupWorkspace, stage : StageId, extra : ExtraArtifactInput) -> Bool

    Reports whether extra is enabled as an input requirement on stage.

    MockupWorkspace::has_security_gate

    fn MockupWorkspace::has_security_gate(self : MockupWorkspace) -> Bool

    Reports whether the optional Security Gate stage is enabled.

    MockupWorkspace::inspector_open

    fn MockupWorkspace::inspector_open(self : MockupWorkspace) -> Bool

    Reports whether the gate inspector drawer is open.

    MockupWorkspace::item

    Looks up a workflow item by identifier.

    MockupWorkspace::items

    fn MockupWorkspace::items(self : MockupWorkspace) -> ReadOnlyArray[WorkflowItem]

    Returns the immutable list of workflow items.

    MockupWorkspace::min_scorecard

    fn MockupWorkspace::min_scorecard(self : MockupWorkspace) -> Score

    Returns the active minimum scorecard score gate.

    MockupWorkspace::normalize_deprecated_term

    fn MockupWorkspace::normalize_deprecated_term(self : MockupWorkspace) -> MockupWorkspace

    Normalizes the deprecated CC# term on the active item, clearing warnings and raising its spec score.

    MockupWorkspace::not_equal

    fn MockupWorkspace::not_equal(x : MockupWorkspace, y : MockupWorkspace) -> Bool
    automatically derived

    MockupWorkspace::open_inspector

    fn MockupWorkspace::open_inspector(self : MockupWorkspace, item_id : WorkflowItemId) -> MockupWorkspace

    Selects a workflow item and opens the gate inspector.

    MockupWorkspace::policy_floor

    fn MockupWorkspace::policy_floor(self : MockupWorkspace) -> Score

    Returns the organization policy floor that limits the minimum score gate.

    MockupWorkspace::preset

    Returns the selected workflow preset.

    MockupWorkspace::request_changes_selected_review

    fn MockupWorkspace::request_changes_selected_review(self : MockupWorkspace) -> MockupWorkspace

    Sends the currently selected workflow item back from Review when a previous stage exists, recording the actual target stage for that item.

    MockupWorkspace::resolve_open_gates

    fn MockupWorkspace::resolve_open_gates(self : MockupWorkspace, item_id : WorkflowItemId) -> MockupWorkspace

    Resolves all open gate checks on item_id so transition guards pass, creating any missing required stage artifacts as clean.

    MockupWorkspace::resolve_term_audit

    fn MockupWorkspace::resolve_term_audit(self : MockupWorkspace, audit_id : TermAuditId) -> MockupWorkspace

    Resolves one Prose Term Audit item without changing the selected workflow item.

    MockupWorkspace::review_decision

    fn MockupWorkspace::review_decision(self : MockupWorkspace) -> ReviewDecision

    Returns the recorded editorial review decision for the selected workflow item.

    MockupWorkspace::review_tab

    fn MockupWorkspace::review_tab(self : MockupWorkspace) -> ReviewTab

    Returns the active tab in the Reading Companion.

    MockupWorkspace::rollup_grade

    fn MockupWorkspace::rollup_grade(self : MockupWorkspace) -> Grade

    Computes the letter grade for the workspace rollup score.

    MockupWorkspace::rollup_score

    fn MockupWorkspace::rollup_score(self : MockupWorkspace) -> Score

    Computes the average scorecard score across all workflow items.

    MockupWorkspace::seed

    Builds the deterministic seed preview workspace for any real open project.

    MockupWorkspace::select_concept

    fn MockupWorkspace::select_concept(self : MockupWorkspace, concept : ConceptId) -> MockupWorkspace

    Focuses a dictionary concept and switches the Reading Companion to Concept Peek.

    MockupWorkspace::select_item

    fn MockupWorkspace::select_item(self : MockupWorkspace, item_id : WorkflowItemId) -> MockupWorkspace

    Selects a workflow item without changing inspector visibility.

    MockupWorkspace::selected

    Returns the currently selected workflow item, if present.

    MockupWorkspace::selected_item

    fn MockupWorkspace::selected_item(self : MockupWorkspace) -> WorkflowItemId

    Returns the selected workflow item identifier.

    MockupWorkspace::send_back_item

    fn MockupWorkspace::send_back_item(self : MockupWorkspace, item_id : WorkflowItemId) -> MockupWorkspace

    Sends item_id back to its previous stage when one exists.

    MockupWorkspace::stage_spec

    fn MockupWorkspace::stage_spec(self : MockupWorkspace, id : StageId) -> StageSpec

    Finds the stage contract for id, or falls back to Explore.

    MockupWorkspace::stages

    fn MockupWorkspace::stages(self : MockupWorkspace) -> ReadOnlyArray[StageSpec]

    Returns the ordered stages for this workspace preset and gate configuration.

    MockupWorkspace::studio_diagram

    fn MockupWorkspace::studio_diagram(self : MockupWorkspace) -> StudioDiagramKind

    Returns the active Workflow Studio diagram kind.

    MockupWorkspace::studio_error

    fn MockupWorkspace::studio_error(self : MockupWorkspace) -> String?

    Returns the current Workflow Studio source parse error, if the edited draft is invalid.

    MockupWorkspace::studio_format

    fn MockupWorkspace::studio_format(self : MockupWorkspace) -> StudioFormat

    Returns the active Workflow Studio source format.

    MockupWorkspace::studio_source

    fn MockupWorkspace::studio_source(self : MockupWorkspace) -> String

    Generates or returns the editable Workflow Studio source text for the active format.

    MockupWorkspace::studio_stage

    fn MockupWorkspace::studio_stage(self : MockupWorkspace) -> StageId

    Returns the stage selected in Workflow Studio.

    MockupWorkspace::summary

    Projects the active preview context and compact telemetry counts for one workspace.

    MockupWorkspace::term_audits

    fn MockupWorkspace::term_audits(self : MockupWorkspace) -> ReadOnlyArray[TermAuditItem]

    Returns the live Prose Term Audit items synced with workspace findings.

    MockupWorkspace::to_repr

    automatically derived

    MockupWorkspace::toggle_doc_read

    fn MockupWorkspace::toggle_doc_read(self : MockupWorkspace, doc_id : ReviewDocId) -> MockupWorkspace

    Marks a reading packet document as read or unread for the selected item only.

    MockupWorkspace::toggle_extra_input

    fn MockupWorkspace::toggle_extra_input(self : MockupWorkspace, stage : StageId, extra : ExtraArtifactInput) -> MockupWorkspace

    Toggles an optional input artifact requirement on a stage inside Workflow Studio.

    MockupWorkspace::toggle_security_gate

    fn MockupWorkspace::toggle_security_gate(self : MockupWorkspace) -> MockupWorkspace

    Toggles the optional Security Gate stage in Workflow Studio.

    MockupWorkspace::with_min_scorecard

    fn MockupWorkspace::with_min_scorecard(self : MockupWorkspace, score : Score) -> MockupWorkspace

    Updates the Verify Gate minimum scorecard score while respecting the policy floor.

    MockupWorkspace::with_preset

    fn MockupWorkspace::with_preset(self : MockupWorkspace, preset : WorkflowPreset) -> MockupWorkspace

    Updates the selected workflow preset, reconciling stages and studio state.

    MockupWorkspace::with_review_tab

    fn MockupWorkspace::with_review_tab(self : MockupWorkspace, tab : ReviewTab) -> MockupWorkspace

    Switches the Reading Companion tab in Review.

    MockupWorkspace::with_studio_diagram

    fn MockupWorkspace::with_studio_diagram(self : MockupWorkspace, kind : StudioDiagramKind) -> MockupWorkspace

    Switches the Workflow Studio diagram style.

    MockupWorkspace::with_studio_format

    fn MockupWorkspace::with_studio_format(self : MockupWorkspace, format : StudioFormat) -> MockupWorkspace

    Switches the Workflow Studio source format while preserving per-format custom drafts and updating the validation status for the newly selected format.

    MockupWorkspace::with_studio_source

    fn MockupWorkspace::with_studio_source(self : MockupWorkspace, source : String) -> MockupWorkspace

    Parses an edited Workflow Studio source draft and updates the effective workflow preview when valid, or records a parse error when invalid.

    MockupWorkspace::with_studio_stage

    fn MockupWorkspace::with_studio_stage(self : MockupWorkspace, stage : StageId) -> MockupWorkspace

    Selects a stage in Workflow Studio if that stage exists in the active workflow.

    Model

    pub struct Model {
    connection : ConnectionState
    surface :
    Surface

    instance :
    InstanceName

    info :
    AppInfo
    ?
    projects : ReadOnlyArray[
    Project
    ]?
    route : Route
    workspaces : ReadOnlyArray[(
    ProjectId
    , WorkspaceLoad)]
    sources : ReadOnlyArray[(
    WorkspaceId
    , SourcesLoad)]
    intents : ReadOnlyArray[(
    WorkspaceId
    , IntentLoad)]
    selected_live_intent : String?
    selected_live_doc : Int
    dictionaries : ReadOnlyArray[(
    WorkspaceId
    , DictionaryLoad)]
    selected_live_concept : String?
    selected_live_dict_graph : String?
    sdlc : ReadOnlyArray[(
    WorkspaceId
    , SdlcLoad)]
    collapsed_projects : ReadOnlyArray[
    ProjectId
    ]
    dialog : Dialog
    primary_sidebar : PrimarySidebar
    sidebar_width : SidebarWidth
    secondary_sidebar : SecondarySidebar
    secondary_sidebar_width : SecondarySidebarWidth
    companion_panel : CompanionPanel
    window : WindowSize
    notice : String?
    perspective : Perspective
    plan_view : PlanView
    read_mode : ReadMode
    review_doc : ReviewDocId
    knowledge_view : KnowledgeView
    dict_graph : NamedGraphFilter
    dict_format : DictFormat
    dict_query : String
    dict_draft_label : String
    dict_draft_def : String
    dict_draft_error : String?
    kb_source : KbSourceFilter
    kb_query : String
    kb_doc : KbDocId
    kb_read_mode : KbReadMode
    color_scheme : ColorScheme
    appearance : Appearance
    brand : BrandConfig
    brand_error : String?
    settings : SettingsSurface
    history : NavHistory
    mockups : ReadOnlyArray[(
    ProjectId
    , MockupWorkspace)]
    } derive(Eq,
    Debug
    )

    The state of one view.

    Model::Model

    fn Model::Model(surface~ :
    Surface
    , instance~ :
    InstanceName
    , primary_sidebar~ : PrimarySidebar, sidebar_width? : SidebarWidth, secondary_sidebar? : SecondarySidebar, secondary_sidebar_width? : SecondarySidebarWidth, companion_panel? : CompanionPanel, window~ : WindowSize, color_scheme? : ColorScheme, appearance? : Appearance, brand? : BrandConfig) -> Model

    The state of a view before its first connection.

    Model::active_dictionary_load

    fn Model::active_dictionary_load(self : Model) -> DictionaryLoad

    Returns the live RDF Data Dictionary loading state for the active workspace.

    Model::active_intent_load

    fn Model::active_intent_load(self : Model) -> IntentLoad

    Returns the live canonical intent loading state for the active workspace.

    Model::active_live_dictionary

    Returns the live WorkspaceDictionary of the active workspace when it has at least one real graph or concept on disk.

    Model::active_live_intent

    Returns the live WorkspaceIntent of the active workspace when it has at least one real intent item.

    Model::active_live_sdlc

    Returns the live WorkspaceSdlc of the active workspace when loaded.

    Model::active_mockup

    fn Model::active_mockup(self : Model) -> MockupWorkspace

    Returns the isolated mockup workspace for the currently open project, or the default seed when no project-specific edits exist yet.

    Model::active_sdlc_load

    fn Model::active_sdlc_load(self : Model) -> SdlcLoad

    Returns the live SDLC evaluation loading state for the active workspace.

    Model::active_sources_load

    fn Model::active_sources_load(self : Model) -> SourcesLoad

    Returns the live composed source loading state for the active workspace, or Idle when no populated workspace is active.

    Model::active_workspace_id

    The active workspace ID in the current route, if any.

    Model::active_workspace_value

    Returns the active @app.Workspace of the open project when populated.

    Model::dictionary_load

    Returns the live RDF Data Dictionary loading state for one workspace ID.

    Model::equal

    fn Model::equal(Model, Model) -> Bool
    automatically derived

    Model::has_perspectives

    fn Model::has_perspectives(self : Model) -> Bool

    Reports whether perspective tabs should be shown and enabled for the open project. Hidden when no project is open or when the open project has zero or unavailable workspaces.

    Model::intent_load

    Returns the live canonical intent loading state for one workspace ID.

    Model::is_over

    fn Model::is_over(self : Model) -> Bool

    The view ended: it does not connect again, and its state does not change.

    Model::is_project_collapsed

    fn Model::is_project_collapsed(self : Model, id :
    ProjectId
    ) -> Bool

    Returns true when the project's nested workspace tree is collapsed in the sidebar.

    Model::not_equal

    fn Model::not_equal(x : Model, y : Model) -> Bool
    automatically derived

    Model::open_id

    The project ID in the current route, if any.

    Model::open_project

    The open project, or None when no project is open or the list does not have it.

    Model::open_workspaces

    fn Model::open_workspaces(self : Model) -> WorkspaceLoad?

    Returns the live workspace loading state for the open project, if any.

    Model::other_instance

    fn Model::other_instance(self : Model) -> String?

    The name of the instance, if it is not stable.

    Model::sdlc_load

    Returns the live SDLC evaluation loading state for one workspace ID.

    Model::selected_live_intent_item

    Returns the selected live WireIntentItem, falling back to the first item.

    Model::sources_load

    Returns the live composed source loading state for one workspace ID.

    Model::to_repr

    automatically derived

    Model::workspace_load

    Returns the live workspace loading state for a project, if loaded or loading.

    Msg

    pub(all) enum Msg {
    ConnectionChanged(ConnectionState)
    ConnectionFailed(String)
    InfoRead(
    AppInfo
    )
    ProjectsListed(ReadOnlyArray[
    Project
    ])
    WorkspacesListed(
    ProjectId
    ,
    ProjectWorkspaces
    )
    WorkspacesChanged(
    WorkspacesChanged
    )
    WorkspacesFailed(
    ProjectId
    ,
    ClientFailure
    )
    SourcesListed(
    WorkspaceId
    ,
    WorkspaceSources
    )
    SourcesFailed(
    WorkspaceId
    ,
    ClientFailure
    )
    IntentListed(
    WorkspaceId
    ,
    WorkspaceIntent
    )
    IntentFailed(
    WorkspaceId
    ,
    ClientFailure
    )
    LiveIntentSelected(String)
    LiveDocSelected(Int)
    DictionaryListed(
    WorkspaceId
    ,
    WorkspaceDictionary
    )
    DictionaryFailed(
    WorkspaceId
    ,
    ClientFailure
    )
    LiveConceptAdded(
    WorkspaceId
    , String,
    WorkspaceDictionary
    )
    LiveConceptAddFailed(
    ClientFailure
    )
    LiveConceptSelected(String)
    LiveDictGraphSelected(String?)
    SdlcEvaluated(
    WorkspaceId
    ,
    WorkspaceSdlc
    )
    SdlcFailed(
    WorkspaceId
    ,
    ClientFailure
    )
    ProjectShown(
    ShownProject
    )
    AppStopping
    HashChanged(Route)
    WindowResized(WindowSize)
    ActionChosen(Action)
    ProjectTreeToggled(
    ProjectId
    )
    PaletteOpened
    PaletteTyped(String)
    PaletteMoved(Direction)
    PalettePointed(ActionId)
    PaletteEntered(seen~ : ReadOnlyArray[Action])
    CloseDialog
    DialogClosed(DialogElement)
    PathTyped(String)
    BrowseChosen
    FolderChosen(
    ChosenFolder
    )
    BrowseFailed(
    ClientFailure
    )
    AddSubmitted
    ProjectAdded(path~ : String,
    AddedProject
    )
    AddFailed(path~ : String,
    ClientFailure
    )
    ProjectRemoved(
    ProjectId
    )
    RemoveFailed(
    ProjectId
    ,
    ClientFailure
    )
    StopConfirmed
    CallFailed(
    ClientFailure
    )
    NoticeDismissed
    PerspectiveTabMoved(Perspective)
    PlanViewChosen(PlanView)
    ReadModeChosen(ReadMode)
    ReviewDocChosen(ReviewDocId)
    KnowledgeViewChosen(KnowledgeView)
    DictGraphChosen(NamedGraphFilter)
    DictFormatChosen(DictFormat)
    DictQueryChanged(String)
    DictDraftLabelChanged(String)
    DictDraftDefChanged(String)
    DictConceptSubmitted
    TermAuditResolved(TermAuditId)
    OpenConceptInDictionary(ConceptId)
    OpenBacklinkInReview(WorkflowItemId, ReviewDocId)
    KbSourceChosen(KbSourceFilter)
    KbQueryChanged(String)
    KbDocChosen(KbDocId)
    KbReadModeChosen(KbReadMode)
    ToggleDocRead(ReviewDocId)
    ReviewTabChosen(ReviewTab)
    ConceptSelected(ConceptId)
    NormalizeDeprecatedTerm
    ReviewApproved
    ReviewRequestedChanges
    ItemSelected(WorkflowItemId)
    CloseInspector
    ResolveOpenGates(WorkflowItemId)
    AdvanceWorkflowItem(WorkflowItemId)
    SendBackWorkflowItem(WorkflowItemId)
    OpenSettingsTab(SettingsTab)
    SettingsTabChosen(SettingsTab)
    CloseSettings
    AppearanceCycled
    BrandTitleChanged(String)
    BrandMarkChosen(BrandMark)
    BrandMonogramChanged(String)
    BrandEmojiChanged(String)
    BrandImageSelected(String)
    BrandReset
    PresetChosen(WorkflowPreset)
    MinScorecardChosen(Score)
    StudioDiagramChosen(StudioDiagramKind)
    StudioFormatChosen(StudioFormat)
    StudioStageChosen(StageId)
    StudioExtraInputToggled(StageId, ExtraArtifactInput)
    StudioSourceEdited(String)
    ToggleSecurityGate
    ColorSchemeChosen(ColorScheme)
    AppearanceChosen(Appearance)
    SidebarResized(SidebarWidth)
    SecondarySidebarToggled
    SecondarySidebarResized(SecondarySidebarWidth)
    CompanionPanelToggled
    }

    What happens to a view.

    NamedGraph

    pub(all) enum NamedGraph {
    MountedPci
    LocalPayments
    } derive(Eq,
    Debug
    )

    Concrete RDF named graph owning a dictionary concept.

    NamedGraph::access

    fn NamedGraph::access(self : NamedGraph) -> GraphAccess

    Returns the access policy derived from a concrete named graph.

    NamedGraph::equal

    fn NamedGraph::equal(NamedGraph, NamedGraph) -> Bool
    automatically derived

    NamedGraph::label

    fn NamedGraph::label(self : NamedGraph) -> String

    Returns the short display label of a concrete named graph.

    NamedGraph::not_equal

    fn NamedGraph::not_equal(x : NamedGraph, y : NamedGraph) -> Bool
    automatically derived

    NamedGraph::to_repr

    automatically derived

    NamedGraph::uri_label

    fn NamedGraph::uri_label(self : NamedGraph) -> String

    Returns the full URN and description of a concrete named graph.

    NamedGraphFilter

    pub(all) enum NamedGraphFilter {
    AllGraphs
    Graph(NamedGraph)
    } derive(Eq,
    Debug
    )

    Named graph filter inside the Data Dictionary view.

    NamedGraphFilter::equal

    automatically derived

    NamedGraphFilter::label

    fn NamedGraphFilter::label(self : NamedGraphFilter) -> String

    Returns the display label of a named graph filter chip.

    NamedGraphFilter::matches

    fn NamedGraphFilter::matches(self : NamedGraphFilter, graph : NamedGraph) -> Bool

    Reports whether this filter includes graph.

    NamedGraphFilter::not_equal

    fn NamedGraphFilter::not_equal(x : NamedGraphFilter, y : NamedGraphFilter) -> Bool
    automatically derived

    NamedGraphFilter::to_repr

    automatically derived
    pub struct NavHistory {
    // private fields
    } derive(Eq,
    Debug
    )

    Immutable Back and Forward navigation history with private stacks.
    fn NavHistory::NavHistory(initial : NavTarget) -> NavHistory

    Creates a fresh navigation history starting at initial.
    fn NavHistory::back_len(self : NavHistory) -> Int

    Returns the number of entries in the back stack.
    fn NavHistory::can_go_back(self : NavHistory) -> Bool

    Reports whether at least one back entry exists.
    fn NavHistory::can_go_forward(self : NavHistory) -> Bool

    Reports whether at least one forward entry exists.
    fn NavHistory::current(self : NavHistory) -> NavTarget

    Returns the current navigation target.
    fn NavHistory::equal(NavHistory, NavHistory) -> Bool
    automatically derived
    fn NavHistory::forward_len(self : NavHistory) -> Int

    Returns the number of entries in the forward stack.
    fn NavHistory::go_back(self : NavHistory) -> (NavHistory, NavTarget)?

    Moves one step backward and returns the updated history and new target, or None when the back stack is empty.
    fn NavHistory::go_forward(self : NavHistory) -> (NavHistory, NavTarget)?

    Moves one step forward and returns the updated history and new target, or None when the forward stack is empty.
    fn NavHistory::not_equal(x : NavHistory, y : NavHistory) -> Bool
    automatically derived

    Removes every history entry that references removed, clears current if it matches, and removes consecutive duplicates.
    fn NavHistory::push(self : NavHistory, target : NavTarget) -> NavHistory

    Pushes a new target, clears forward history, and caps the back stack. Pushing the current target leaves the history unchanged.
    fn NavHistory::replace_current(self : NavHistory, target : NavTarget) -> NavHistory

    Replaces the current target without adding a back-stack entry.
    fn NavHistory::retain_projects(self : NavHistory, projects : ReadOnlyArray[
    Project
    ]) -> NavHistory

    Keeps only history entries whose project ID is absent or present in projects, clearing current if its project was deleted and deduplicating adjacent entries.
    automatically derived
    pub struct NavTarget {
    route : Route
    perspective : Perspective
    plan_view : PlanView
    review_doc : ReviewDocId
    knowledge_view : KnowledgeView
    } derive(Eq,
    Debug
    )

    A single visited shell location recorded in NavHistory. Stores Route rather than paired optional IDs so (None, Some(workspace)) is unrepresentable.
    fn NavTarget::NavTarget(route~ : Route, perspective~ : Perspective, plan_view~ : PlanView, review_doc~ : ReviewDocId, knowledge_view? : KnowledgeView) -> NavTarget

    Constructs a NavTarget for a visited shell location.
    fn NavTarget::equal(NavTarget, NavTarget) -> Bool
    automatically derived
    fn NavTarget::not_equal(x : NavTarget, y : NavTarget) -> Bool
    automatically derived

    The project ID referenced by this navigation target, if any.
    automatically derived

    The workspace ID referenced by this navigation target, if any.

    Perspective

    pub(all) enum Perspective {
    Plan
    Build
    Review
    Knowledge
    } derive(Eq,
    Debug
    )

    An activity-tuned perspective over the open project.

    Perspective::equal

    fn Perspective::equal(Perspective, Perspective) -> Bool
    automatically derived

    Perspective::label

    fn Perspective::label(self : Perspective) -> String

    Returns the display label of a perspective.

    Perspective::not_equal

    fn Perspective::not_equal(x : Perspective, y : Perspective) -> Bool
    automatically derived

    Perspective::to_repr

    automatically derived

    PlanView

    pub(all) enum PlanView {
    Board
    StateMachine
    Bpmn
    } derive(Eq,
    Debug
    )

    The view inside the Plan perspective.

    PlanView::equal

    fn PlanView::equal(PlanView, PlanView) -> Bool
    automatically derived

    PlanView::not_equal

    fn PlanView::not_equal(x : PlanView, y : PlanView) -> Bool
    automatically derived

    PlanView::to_repr

    automatically derived

    PrimarySidebar

    pub(all) enum PrimarySidebar {
    Shown
    Hidden
    } derive(Eq,
    Debug
    )

    The state of the primary sidebar, which is at the left of a wide window.

    PrimarySidebar::equal

    automatically derived

    PrimarySidebar::not_equal

    fn PrimarySidebar::not_equal(x : PrimarySidebar, y : PrimarySidebar) -> Bool
    automatically derived

    PrimarySidebar::to_repr

    automatically derived

    ProseSpan

    pub(all) enum ProseSpan {
    Plain(String)
    Keyword(String)
    Term(ConceptId, String, deprecated~ : Bool)
    } derive(Eq,
    Debug
    )

    Inline segment of prose or requirement text shared across Review modes.

    ProseSpan::equal

    fn ProseSpan::equal(ProseSpan, ProseSpan) -> Bool
    automatically derived

    ProseSpan::not_equal

    fn ProseSpan::not_equal(x : ProseSpan, y : ProseSpan) -> Bool
    automatically derived

    ProseSpan::text

    fn ProseSpan::text(self : ProseSpan) -> String

    Plain text of one prose span.

    ProseSpan::to_repr

    automatically derived

    ReadDoc

    pub struct ReadDoc {
    id : ReviewDocId
    step : StepNumber
    title : String
    kind : DocKind
    file : String
    score : Score
    read : Bool
    } derive(Eq,
    Debug
    )

    A document inside the Review narrative reading packet.

    ReadDoc::equal

    fn ReadDoc::equal(ReadDoc, ReadDoc) -> Bool
    automatically derived

    ReadDoc::not_equal

    fn ReadDoc::not_equal(x : ReadDoc, y : ReadDoc) -> Bool
    automatically derived

    ReadDoc::to_repr

    automatically derived

    ReadMode

    pub(all) enum ReadMode {
    Structured
    Preview
    Source
    } derive(Eq,
    Debug
    )

    The reading mode of a document inside the Review perspective.

    ReadMode::equal

    fn ReadMode::equal(ReadMode, ReadMode) -> Bool
    automatically derived

    ReadMode::not_equal

    fn ReadMode::not_equal(x : ReadMode, y : ReadMode) -> Bool
    automatically derived

    ReadMode::to_repr

    automatically derived

    RequirementClause

    pub struct RequirementClause {
    id : String
    change : ClauseChange
    ears_kind : EarsKind
    spans : ReadOnlyArray[ProseSpan]
    finding : ClauseFinding
    } derive(Eq,
    Debug
    )

    One structured EARS requirement delta shared by Structured, Preview, and Source modes.

    RequirementClause::equal

    automatically derived

    RequirementClause::not_equal

    fn RequirementClause::not_equal(x : RequirementClause, y : RequirementClause) -> Bool
    automatically derived

    RequirementClause::plain_text

    fn RequirementClause::plain_text(self : RequirementClause) -> String

    Plain requirement text projected directly from this clause's shared spans.

    RequirementClause::to_repr

    automatically derived

    ReviewDecision

    pub(all) enum ReviewDecision {
    Pending
    Approved(StageId)
    ChangesRequested(StageId)
    } derive(Eq,
    Debug
    )

    Recorded editorial review outcome for the active workflow item.

    ReviewDecision::banner

    fn ReviewDecision::banner(self : ReviewDecision) -> String?

    Returns display text for a recorded review decision, if any.

    ReviewDecision::equal

    automatically derived

    ReviewDecision::not_equal

    fn ReviewDecision::not_equal(x : ReviewDecision, y : ReviewDecision) -> Bool
    automatically derived

    ReviewDecision::to_repr

    automatically derived

    ReviewDocId

    pub(all) enum ReviewDocId {
    Proposal
    Design
    Spec
    Adr
    Kb
    Tasks
    } derive(Eq,
    Debug
    )

    Identifier of a document in the Review reading packet.

    ReviewDocId::equal

    fn ReviewDocId::equal(ReviewDocId, ReviewDocId) -> Bool
    automatically derived

    ReviewDocId::key

    fn ReviewDocId::key(self : ReviewDocId) -> String

    Returns the stable machine key of a reading packet document identifier.

    ReviewDocId::not_equal

    fn ReviewDocId::not_equal(x : ReviewDocId, y : ReviewDocId) -> Bool
    automatically derived

    ReviewDocId::to_repr

    automatically derived

    ReviewTab

    pub(all) enum ReviewTab {
    ConceptPeek
    ScoreReview
    } derive(Eq,
    Debug
    )

    Active tab of the Review perspective Reading Companion.

    ReviewTab::equal

    fn ReviewTab::equal(ReviewTab, ReviewTab) -> Bool
    automatically derived

    ReviewTab::not_equal

    fn ReviewTab::not_equal(x : ReviewTab, y : ReviewTab) -> Bool
    automatically derived

    ReviewTab::to_repr

    automatically derived

    Route

    The typed location parsed from the URL hash fragment.

    Route::equal

    fn Route::equal(Route, Route) -> Bool
    automatically derived

    Route::not_equal

    fn Route::not_equal(x : Route, y : Route) -> Bool
    automatically derived

    Route::project

    The project ID of a route, if any.

    Route::to_hash

    fn Route::to_hash(self : Route) -> String

    Formats a typed Route as its canonical URL hash fragment.

    Route::to_repr

    automatically derived

    Route::workspace

    The workspace ID of a route, if any.

    Score

    pub struct Score {
    // private fields
    } derive(Eq,
    Debug
    )

    A bounded scorecard score between 0 and 100 inclusive.

    Score::Score

    fn Score::Score(value : Int) -> Score raise ScoreError

    Constructs a Score when value is between 0 and 100 inclusive.

    Score::clamped

    fn Score::clamped(value : Int) -> Score

    Returns a valid Score clamped into the 0..=100 range.

    Score::equal

    fn Score::equal(Score, Score) -> Bool
    automatically derived

    Score::grade

    fn Score::grade(self : Score) -> Grade

    Computes the letter grade for this score.

    Score::not_equal

    fn Score::not_equal(x : Score, y : Score) -> Bool
    automatically derived

    Score::to_repr

    automatically derived

    Score::value

    fn Score::value(self : Score) -> Int

    Returns the numeric score value between 0 and 100.

    SdlcLoad

    pub(all) enum SdlcLoad {
    Idle
    Loading
    Ready(
    WorkspaceSdlc
    )
    Failed(String)
    } derive(Eq,
    Debug
    )

    Live DocumentScorer and Rego SDLC gate evaluation state for one workspace.

    SdlcLoad::equal

    fn SdlcLoad::equal(SdlcLoad, SdlcLoad) -> Bool
    automatically derived

    SdlcLoad::not_equal

    fn SdlcLoad::not_equal(x : SdlcLoad, y : SdlcLoad) -> Bool
    automatically derived

    SdlcLoad::to_repr

    automatically derived

    SecondarySidebar

    pub(all) enum SecondarySidebar {
    SecondaryShown
    SecondaryHidden
    } derive(Eq,
    Debug
    )

    Open/collapsed state of the secondary left sidebar inside Review and Knowledge perspectives.

    SecondarySidebar::equal

    automatically derived

    SecondarySidebar::not_equal

    fn SecondarySidebar::not_equal(x : SecondarySidebar, y : SecondarySidebar) -> Bool
    automatically derived

    SecondarySidebar::of_stored

    fn SecondarySidebar::of_stored(text : String) -> SecondarySidebar

    SecondarySidebar::other

    SecondarySidebar::stored

    fn SecondarySidebar::stored(self : SecondarySidebar) -> String

    SecondarySidebar::to_repr

    automatically derived

    SecondarySidebarWidth

    pub struct SecondarySidebarWidth(Int) derive(Eq,
    Debug
    )

    Clamped pixel width of the secondary left sidebar.

    SecondarySidebarWidth::clamped

    SecondarySidebarWidth::default

    SecondarySidebarWidth::equal

    automatically derived

    SecondarySidebarWidth::not_equal

    automatically derived

    SecondarySidebarWidth::of_stored

    fn SecondarySidebarWidth::of_stored(text : String) -> SecondarySidebarWidth

    SecondarySidebarWidth::pixels

    SecondarySidebarWidth::step_by

    SecondarySidebarWidth::stored

    fn SecondarySidebarWidth::stored(self : SecondarySidebarWidth) -> String

    SecondarySidebarWidth::to_repr

    automatically derived

    SessionCheck

    pub(all) enum SessionCheck {
    Valid
    Invalid
    NoAnswer
    } derive(Eq,
    Debug
    )

    What the server says about the session of the view.

    SessionCheck::equal

    automatically derived

    SessionCheck::not_equal

    fn SessionCheck::not_equal(x : SessionCheck, y : SessionCheck) -> Bool
    automatically derived

    SessionCheck::to_repr

    automatically derived

    SettingsSurface

    pub(all) enum SettingsSurface {
    Closed
    Open(SettingsTab)
    } derive(Eq,
    Debug
    )

    Whether the full-page Settings overlay is open and which section it shows.

    SettingsSurface::equal

    automatically derived

    SettingsSurface::not_equal

    fn SettingsSurface::not_equal(x : SettingsSurface, y : SettingsSurface) -> Bool
    automatically derived

    SettingsSurface::to_repr

    automatically derived

    SettingsTab

    pub(all) enum SettingsTab {
    Workflow
    Studio
    Adapters
    Scorecards
    Mounts
    Appearance
    Perspectives
    } derive(Eq,
    Debug
    )

    A section of the full-page Settings overlay.

    SettingsTab::equal

    fn SettingsTab::equal(SettingsTab, SettingsTab) -> Bool
    automatically derived

    SettingsTab::not_equal

    fn SettingsTab::not_equal(x : SettingsTab, y : SettingsTab) -> Bool
    automatically derived

    SettingsTab::to_repr

    automatically derived

    Shortcut

    pub(all) enum Shortcut {
    OpenPalette
    ChangePrimarySidebar
    GoBack
    GoForward
    SwitchPerspective(Perspective)
    DismissOverlay
    } derive(Eq,
    Debug
    )

    A shortcut of the page.

    Shortcut::equal

    fn Shortcut::equal(Shortcut, Shortcut) -> Bool
    automatically derived

    Shortcut::not_equal

    fn Shortcut::not_equal(x : Shortcut, y : Shortcut) -> Bool
    automatically derived

    Shortcut::of_key

    fn Shortcut::of_key(key~ : String, code~ : String, ctrl~ : Bool, alt~ : Bool, meta~ : Bool, shift~ : Bool, composing~ : Bool, mac~ : Bool, typing? : Bool) -> Shortcut?

    The shortcut of a key press, if it has one. composing is true for a key of an input method. alt is necessary because AltGr is Ctrl+Alt on Windows, and AltGr+K types a character on some keyboards. typing is true when an input or editable control has focus.

    code is the key on the keyboard. It counts only when the character is not one of ASCII, because a keyboard for a different alphabet has no K, no P and no B.

    Shortcut::to_repr

    automatically derived

    SidebarWidth

    pub struct SidebarWidth(Int) derive(Eq,
    Debug
    )

    Clamped pixel width of the desktop primary sidebar.

    SidebarWidth::clamped

    fn SidebarWidth::clamped(px : Int) -> SidebarWidth

    SidebarWidth::default

    fn SidebarWidth::default() -> SidebarWidth

    SidebarWidth::equal

    automatically derived

    SidebarWidth::not_equal

    fn SidebarWidth::not_equal(x : SidebarWidth, y : SidebarWidth) -> Bool
    automatically derived

    SidebarWidth::of_stored

    fn SidebarWidth::of_stored(text : String) -> SidebarWidth

    SidebarWidth::pixels

    fn SidebarWidth::pixels(self : SidebarWidth) -> Int

    SidebarWidth::step_by

    fn SidebarWidth::step_by(self : SidebarWidth, delta : Int) -> SidebarWidth

    SidebarWidth::stored

    fn SidebarWidth::stored(self : SidebarWidth) -> String

    SidebarWidth::to_repr

    automatically derived

    SourcesLoad

    pub(all) enum SourcesLoad {
    Idle
    Loading
    Ready(
    WorkspaceSources
    )
    Failed(String)
    } derive(Eq,
    Debug
    )

    Live composed workspace sources loading state for one workspace.

    SourcesLoad::equal

    fn SourcesLoad::equal(SourcesLoad, SourcesLoad) -> Bool
    automatically derived

    SourcesLoad::not_equal

    fn SourcesLoad::not_equal(x : SourcesLoad, y : SourcesLoad) -> Bool
    automatically derived

    SourcesLoad::to_repr

    automatically derived

    StageId

    pub(all) enum StageId {
    Explore
    Propose
    SecurityGate
    Implement
    VerifyGate
    Archived
    } derive(Eq,
    Debug
    )

    A typed stage in the SDLC workflow state machine.

    StageId::equal

    fn StageId::equal(StageId, StageId) -> Bool
    automatically derived

    StageId::is_gate

    fn StageId::is_gate(self : StageId) -> Bool

    Reports whether this stage acts as a verification or security gate.

    StageId::key

    fn StageId::key(self : StageId) -> String

    Returns the stable machine key of a workflow stage.

    StageId::label

    fn StageId::label(self : StageId) -> String

    Returns the display label of a workflow stage.

    StageId::not_equal

    fn StageId::not_equal(x : StageId, y : StageId) -> Bool
    automatically derived

    StageId::to_repr

    automatically derived

    StageSpec

    pub struct StageSpec {
    id : StageId
    inputs : ReadOnlyArray[String]
    outputs : ReadOnlyArray[String]
    next : StageId?
    back : StageId?
    } derive(Eq,
    Debug
    )

    Contract describing a state's required inputs, expected outputs, and edges.

    StageSpec::equal

    fn StageSpec::equal(StageSpec, StageSpec) -> Bool
    automatically derived

    StageSpec::not_equal

    fn StageSpec::not_equal(x : StageSpec, y : StageSpec) -> Bool
    automatically derived

    StageSpec::to_repr

    automatically derived

    StepNumber

    pub struct StepNumber {
    // private fields
    } derive(Eq,
    Debug
    )

    A positive 1-based step number in a reading packet.

    StepNumber::StepNumber

    fn StepNumber::StepNumber(value : Int) -> StepNumber raise StepNumberError

    Constructs a StepNumber when value >= 1.

    StepNumber::equal

    fn StepNumber::equal(StepNumber, StepNumber) -> Bool
    automatically derived

    StepNumber::not_equal

    fn StepNumber::not_equal(x : StepNumber, y : StepNumber) -> Bool
    automatically derived

    StepNumber::to_repr

    automatically derived

    StepNumber::value

    fn StepNumber::value(self : StepNumber) -> Int

    Returns the positive step number value.

    StudioDiagramKind

    pub(all) enum StudioDiagramKind {
    MermaidState
    BpmnFlow
    } derive(Eq,
    Debug
    )

    Diagram rendering style inside the Workflow Studio preview.

    StudioDiagramKind::equal

    automatically derived

    StudioDiagramKind::not_equal

    fn StudioDiagramKind::not_equal(x : StudioDiagramKind, y : StudioDiagramKind) -> Bool
    automatically derived

    StudioDiagramKind::to_repr

    automatically derived

    StudioFormat

    pub(all) enum StudioFormat {
    Mermaid
    BpmnXml
    ArtifactYaml
    } derive(Eq,
    Debug
    )

    Source format displayed inside the Workflow Studio editor.

    StudioFormat::equal

    automatically derived

    StudioFormat::not_equal

    fn StudioFormat::not_equal(x : StudioFormat, y : StudioFormat) -> Bool
    automatically derived

    StudioFormat::to_repr

    automatically derived

    TaskProgress

    pub struct TaskProgress {
    // private fields
    } derive(Eq,
    Debug
    )

    Validated task completion progress where 0 <= done <= total.

    TaskProgress::TaskProgress

    fn TaskProgress::TaskProgress(done : Int, total : Int) -> TaskProgress raise TaskProgressError

    Constructs a TaskProgress when 0 <= done <= total.

    TaskProgress::complete_all

    fn TaskProgress::complete_all(self : TaskProgress) -> TaskProgress

    Returns a new TaskProgress with all tasks marked complete.

    TaskProgress::done

    fn TaskProgress::done(self : TaskProgress) -> Int

    Returns the number of completed tasks.

    TaskProgress::equal

    automatically derived

    TaskProgress::is_complete

    fn TaskProgress::is_complete(self : TaskProgress) -> Bool

    Reports whether at least one task exists and all tasks are complete.

    TaskProgress::not_equal

    fn TaskProgress::not_equal(x : TaskProgress, y : TaskProgress) -> Bool
    automatically derived

    TaskProgress::to_repr

    automatically derived

    TaskProgress::total

    fn TaskProgress::total(self : TaskProgress) -> Int

    Returns the total number of tasks.

    TermAuditId

    pub(all) enum TermAuditId {
    AuditDeprecatedCc
    AuditUnlinkedMaskedPan
    AuditUnlinkedIdempotency
    } derive(Eq,
    Debug
    )

    Identifier of a Prose Term Audit finding in the Data Dictionary workbench.

    TermAuditId::equal

    fn TermAuditId::equal(TermAuditId, TermAuditId) -> Bool
    automatically derived

    TermAuditId::not_equal

    fn TermAuditId::not_equal(x : TermAuditId, y : TermAuditId) -> Bool
    automatically derived

    TermAuditId::to_repr

    automatically derived

    TermAuditItem

    pub struct TermAuditItem {
    id : TermAuditId
    mention : String
    location : String
    item : WorkflowItemId
    doc : ReviewDocId
    kind : AuditKind
    status : AuditStatus
    } derive(Eq,
    Debug
    )

    One Prose Term Audit item surfaced in the Data Dictionary companion.

    TermAuditItem::equal

    automatically derived

    TermAuditItem::not_equal

    fn TermAuditItem::not_equal(x : TermAuditItem, y : TermAuditItem) -> Bool
    automatically derived

    TermAuditItem::to_repr

    automatically derived

    ViewKey

    The key that the server gave this view with its session. The page sends it with the cookie in each request for the hub and for the session. Debug text never shows it, and no function gives its text.

    ViewKey::ViewKey

    fn ViewKey::ViewKey(text : String) -> ViewKey raise ViewKeyError

    Parses the text of a view key, which is URL-safe base64 without padding.

    ViewKey::equal

    fn ViewKey::equal(ViewKey, ViewKey) -> Bool
    automatically derived

    ViewKey::not_equal

    fn ViewKey::not_equal(x : ViewKey, y : ViewKey) -> Bool
    automatically derived

    ViewKey::to_repr

    automatically derived

    WarningCount

    pub struct WarningCount {
    // private fields
    } derive(Eq,
    Debug
    )

    A non-negative count of validation warnings.

    WarningCount::WarningCount

    fn WarningCount::WarningCount(count : Int) -> WarningCount raise WarningCountError

    Constructs a WarningCount when count >= 0.

    WarningCount::count

    fn WarningCount::count(self : WarningCount) -> Int

    Returns the numeric warning count.

    WarningCount::equal

    automatically derived

    WarningCount::is_zero

    fn WarningCount::is_zero(self : WarningCount) -> Bool

    Reports whether there are zero warnings.

    WarningCount::not_equal

    fn WarningCount::not_equal(x : WarningCount, y : WarningCount) -> Bool
    automatically derived

    WarningCount::to_repr

    automatically derived

    WarningCount::zero

    Returns a zero warning count.

    WindowSize

    pub(all) enum WindowSize {
    Wide
    Small
    } derive(Eq,
    Debug
    )

    The size of the window. A small one has no space for the primary sidebar, and shows the same content in a sheet.

    WindowSize::equal

    fn WindowSize::equal(WindowSize, WindowSize) -> Bool
    automatically derived

    WindowSize::not_equal

    fn WindowSize::not_equal(x : WindowSize, y : WindowSize) -> Bool
    automatically derived

    WindowSize::to_repr

    automatically derived

    WorkflowAdapter

    pub(all) enum WorkflowAdapter {
    OpenSpec
    CompanionOkf
    NativeOkf
    } derive(Eq,
    Debug
    )

    Adapter source that owns a workflow item.

    WorkflowAdapter::equal

    automatically derived

    WorkflowAdapter::label

    fn WorkflowAdapter::label(self : WorkflowAdapter) -> String

    Returns the display label of a workflow adapter.

    WorkflowAdapter::not_equal

    fn WorkflowAdapter::not_equal(x : WorkflowAdapter, y : WorkflowAdapter) -> Bool
    automatically derived

    WorkflowAdapter::to_repr

    automatically derived

    WorkflowArtifact

    pub struct WorkflowArtifact {
    kind : ArtifactKind
    status : ArtifactStatus
    } derive(Eq,
    Debug
    )

    An artifact slot attached to a workflow item.

    WorkflowArtifact::equal

    automatically derived

    WorkflowArtifact::not_equal

    fn WorkflowArtifact::not_equal(x : WorkflowArtifact, y : WorkflowArtifact) -> Bool
    automatically derived

    WorkflowArtifact::to_repr

    automatically derived

    WorkflowItem

    pub struct WorkflowItem {
    id : WorkflowItemId
    title : String
    kind : WorkflowItemKind
    adapter : WorkflowAdapter
    intent : String
    stage : StageId
    score : Score
    progress : TaskProgress
    warnings : WarningCount
    artifacts : ReadOnlyArray[WorkflowArtifact]
    } derive(Eq,
    Debug
    )

    A workflow item flowing through the SDLC state machine.

    WorkflowItem::equal

    automatically derived

    WorkflowItem::grade

    fn WorkflowItem::grade(self : WorkflowItem) -> Grade

    Returns the letter grade of this workflow item's scorecard score.

    WorkflowItem::not_equal

    fn WorkflowItem::not_equal(x : WorkflowItem, y : WorkflowItem) -> Bool
    automatically derived

    WorkflowItem::to_repr

    automatically derived

    WorkflowItemId

    pub(all) enum WorkflowItemId {
    ChgMask
    ChgRefund
    Int3ds
    IntBmad
    ChgVault
    } derive(Eq,
    Debug
    )

    Identifier of a workflow item in the local preview workspace.

    WorkflowItemId::equal

    automatically derived

    WorkflowItemId::key

    fn WorkflowItemId::key(self : WorkflowItemId) -> String

    Returns the stable machine key of a workflow item identifier.

    WorkflowItemId::not_equal

    fn WorkflowItemId::not_equal(x : WorkflowItemId, y : WorkflowItemId) -> Bool
    automatically derived

    WorkflowItemId::to_repr

    automatically derived

    WorkflowItemKind

    pub(all) enum WorkflowItemKind {
    Intent
    Change
    } derive(Eq,
    Debug
    )

    Whether a workflow item tracks a top-level Intent or an OpenSpec Change.

    WorkflowItemKind::equal

    automatically derived

    WorkflowItemKind::not_equal

    fn WorkflowItemKind::not_equal(x : WorkflowItemKind, y : WorkflowItemKind) -> Bool
    automatically derived

    WorkflowItemKind::to_repr

    automatically derived

    WorkflowPreset

    pub(all) enum WorkflowPreset {
    OpenSpecSdlcV1
    RegulatedBpmnV1
    LightweightRfcV1
    CustomProjectFile
    } derive(Eq,
    Debug
    )

    Canned SDLC workflow presets and custom diagram option.

    WorkflowPreset::all

    fn WorkflowPreset::all() -> ReadOnlyArray[WorkflowPreset]

    Returns all selectable workflow presets in display order.

    WorkflowPreset::badge

    fn WorkflowPreset::badge(self : WorkflowPreset) -> String

    Returns the status badge text for a workflow preset.

    WorkflowPreset::diagram_kind

    fn WorkflowPreset::diagram_kind(self : WorkflowPreset) -> String

    Returns the diagram notation label for a workflow preset.

    WorkflowPreset::equal

    automatically derived

    WorkflowPreset::id

    fn WorkflowPreset::id(self : WorkflowPreset) -> String

    Returns the stable machine identifier of a workflow preset.

    WorkflowPreset::not_equal

    fn WorkflowPreset::not_equal(x : WorkflowPreset, y : WorkflowPreset) -> Bool
    automatically derived

    WorkflowPreset::summary

    fn WorkflowPreset::summary(self : WorkflowPreset) -> String

    Returns a short description of a workflow preset.

    WorkflowPreset::title

    fn WorkflowPreset::title(self : WorkflowPreset) -> String

    Returns the display title of a workflow preset.

    WorkflowPreset::to_repr

    automatically derived

    WorkspaceLoad

    Live workspace loading state for one project.

    WorkspaceLoad::equal

    automatically derived

    WorkspaceLoad::not_equal

    fn WorkspaceLoad::not_equal(x : WorkspaceLoad, y : WorkspaceLoad) -> Bool
    automatically derived

    WorkspaceLoad::to_repr

    automatically derived

    WorkspaceSummary

    pub struct WorkspaceSummary {
    active_item_title : String
    in_flight : Int
    open_warnings : Int
    mounted_sources : Int
    } derive(Eq,
    Debug
    )

    Compact preview telemetry displayed on Line 2 of a sidebar workspace card.

    WorkspaceSummary::equal

    automatically derived

    WorkspaceSummary::not_equal

    fn WorkspaceSummary::not_equal(x : WorkspaceSummary, y : WorkspaceSummary) -> Bool
    automatically derived

    WorkspaceSummary::to_repr

    automatically derived

    actions

    fn actions(model : Model) -> ReadOnlyArray[Action]

    The actions of a view, also the ones that are disabled now: each project in the order of the list (with peer workspaces of an open multi-workspace project), and then the commands. A small window has no primary sidebar.

    app

    fn app(connection : Connection, surface~ :
    Surface
    , instance~ :
    InstanceName
    , primary_sidebar~ : PrimarySidebar, sidebar_width? : SidebarWidth, secondary_sidebar? : SecondarySidebar, secondary_sidebar_width? : SecondarySidebarWidth, companion_panel? : CompanionPanel, mac~ : Bool, color_scheme? : ColorScheme, appearance? : Appearance, brand? : BrandConfig) ->
    Val
    [
    Html
    ]

    The UI. surface is the kind of this view, and instance gave its page. primary_sidebar, color_scheme, and appearance are the values kept by the browser. mac is true on macOS, which has other shortcuts. The UI runs the connection.

    check_session

    async fn check_session(url : String, key : ViewKey) -> SessionCheck

    Asks the server for the session of this view. url is the complete URL of /session, for example http://127.0.0.1:3090/session. The browser adds the cookie. A failed request, also because of a wrong URL, is NoAnswer.

    concept_card

    fn concept_card(id : ConceptId) -> ConceptCard?

    Returns RDF concept metadata for built-in concepts, or None for workspace-local concepts.

    default_concept_card

    fn default_concept_card() -> ConceptCard

    Returns the default fallback built-in concept (Pan).

    doc_content

    fn doc_content(doc_id : ReviewDocId, item : WorkflowItem) -> DocContent

    Returns distinct Structured, Preview, and Source content for a reading packet document, derived from one shared clause and span model per item.

    finds

    fn finds(query : String, title : String, words : Array[String]) -> Bool

    The action has each word of the query in its title or in one of its search words. The order of the words and their case make no difference.

    hash_of_project

    fn hash_of_project(project :
    ProjectId
    ?) -> String

    The fragment of the address of a project, or of no project.

    highlight_tag_of_cm_style

    fn highlight_tag_of_cm_style(style : String?) ->
    HighlightTag

    Maps a CodeMirror token style string (potentially space-separated like "string property" or "header header-1") to a moonbitlang/editor HighlightTag.

    highlighted_numbered_source

    fn highlighted_numbered_source(source : String, lang : CodeLanguage) ->
    Html

    Renders source as line-numbered, syntax-highlighted moonbitlang/editor HTML using the production mtk<n> token classes.

    kb_document

    fn kb_document(id : KbDocId) -> KbDocument

    Returns the seeded Knowledge Base document matching id.

    kb_documents

    fn kb_documents() -> ReadOnlyArray[KbDocument]

    Returns the seeded OKF Knowledge Base documents (local + mounted read-only).

    parse_route

    fn parse_route(hash : String) -> Route

    Parses a URL hash fragment into a typed Route:
    • #/projects/<project-urn> -> ProjectRoute
    • #/projects/<project-urn>/workspaces/<workspace-urn> -> WorkspaceRoute
    • anything else -> NoRoute

    project_of_hash

    The project in the fragment of an address, such as #/projects/urn:mc:proj:docs-01234567.

    retry_delay

    fn retry_delay(attempt : Int) -> Int

    The time before a try, in milliseconds. attempt is the number of tries that failed since the last long connection: the UI tries at once, after 1, 2 and 5 seconds, and then each 5 seconds.

    spans_plain_text

    fn spans_plain_text(spans : ReadOnlyArray[ProseSpan]) -> String

    Renders a sequence of prose spans into plain text.

    tokenize_mermaid_line

    fn tokenize_mermaid_line(line : String) -> Array[
    Span
    ]

    Pure line tokenizer for Mermaid workflow diagrams (stateDiagram-v2, flowchart, graph, comments, arrows, quoted strings, and state labels). Shared between moonbitlang/editor read-only views and the custom CodeMirror mermaid mode.

    update

    The model after a message, and the command that does the rest, with the connection to the server.

    workspace_position_label

    fn workspace_position_label(position :
    Position
    ) -> String

    Short display label for a workspace checkout position.