moonrockz/mission-control-server/core does not have a README file
pub(open) trait DocumentScorer {
fn id(Self) -> String
fn evaluate(Self, WirePacketDocument, WorkspaceDictionary) -> (Int, Array[WireScoreFinding])
}pub(open) trait MountProvider {
fn kind(Self) -> MountKind
fn resolve(Self, WorkspaceId, WorkspaceRoot, MountSpec) -> Inquiry[DomainMountedSource]
}pub(open) trait SourceAdapter {
fn id(Self) -> AdapterId
fn discover(Self, WorkspaceId, FolderPath, FolderPath) -> Inquiry[ReadOnlyArray[DomainInTreeSource]]
}pub(open) trait VcsBackend {
fn id(Self) -> BackendId
fn locate(Self, FolderPath) -> Inquiry[Located?]
fn observe(Self, FolderPath) -> Inquiry[Observation]
}fn DictionaryConceptError::not_equal(x : DictionaryConceptError, y : DictionaryConceptError) -> Boolfn DuplicateMountProvider::not_equal(x : DuplicateMountProvider, y : DuplicateMountProvider) -> Boolpub(all) suberror OpenWorkspaceError {
UnknownProject(ProjectId)
UnknownWorkspace(ProjectId, WorkspaceId)
} derive(Eq, Debug)pub(all) suberror ToolNameError {
InvalidToolName(text~ : String, rule~ : ToolNameRule)
} derive(Eq, Debug)pub(all) enum Anchor {
Folder(FolderPath)
Repository(backend~ : BackendId, store~ : FolderPath, seen~ : SeenWorkspaces)
} derive(Eq, Debug)type Backendsfn BaseFolder::of_env(platform : Platform, env : Map[String, String]) -> BaseFolder raise BaseFolderErrorpub(all) struct Checkout {
root : FolderPath
folder : FolderState
position : Position
} derive(Eq, Debug)pub(all) struct DerivedMetadata {
title : ProjectTitle?
caption : ProjectCaption?
} derive(Eq, Debug)pub struct DictionaryHygieneScorer {
}impl DocumentScorer for DictionaryHygieneScorerfn evaluate(_self : DictionaryHygieneScorer, doc : WirePacketDocument, dict : WorkspaceDictionary) -> (Int, Array[WireScoreFinding])pub struct DictionarySourceAdapter {
}impl SourceAdapter for DictionarySourceAdapterfn discover(self : DictionarySourceAdapter, workspace_id : WorkspaceId, workspace_root : FolderPath, real_root : FolderPath) -> Inquiry[ReadOnlyArray[DomainInTreeSource]]fn DictionarySourceAdapter::discover(self : DictionarySourceAdapter, workspace_id : WorkspaceId, workspace_root : FolderPath, real_root : FolderPath) -> Inquiry[ReadOnlyArray[DomainInTreeSource]]pub(all) enum DomainEvent {
ProjectAdmitted(ProjectId, AddedTarget)
ProjectRemoved(ProjectId)
WorkspaceOpened(ProjectId, WorkspaceId, UnixMillis)
WorkspacesReconciled(ProjectId, DomainProjectWorkspaces)
} derive(Eq, Debug)pub(all) struct DomainInTreeSource {
id : SourceId
name : SourceName
adapter : AdapterId
role : SourceRole
location : InTreeLocation
path : FolderPath
access : SourceAccess
status : InTreeStatus
} derive(Eq, Debug)pub(all) enum DomainMountedSource {
Resolved(DomainResolvedMount)
Refused(DomainRefusedMount)
} derive(Eq, Debug)pub(all) enum DomainProjectWorkspaces {
Empty
Populated(DomainWorkspaceSet)
Unavailable(reason~ : UnavailableReason, remembered~ : ReadOnlyArray[SeenWorkspace])
} derive(Eq, Debug)fn DomainProjectWorkspaces::not_equal(x : DomainProjectWorkspaces, y : DomainProjectWorkspaces) -> Boolpub(all) struct DomainRefusedMount {
id : SourceId
name : SourceName
kind : MountKind?
role : SourceRole?
target : String?
trust : TrustTier
origin : ConfigOrigin
reason : MountRefusalReason
} derive(Eq, Debug)pub(all) struct DomainResolvedMount {
id : SourceId
name : SourceName
kind : MountKind
role : SourceRole
target : MountTarget
resolved_root : FolderPath
access : SourceAccess
trust : TrustTier
origin : ConfigOrigin
status : ResolvedMountStatus
} derive(Eq, Debug)pub(all) struct DomainWorkspace {
id : WorkspaceId
name : WorkspaceName
root : FolderPath
backend : BackendId
folder : FolderState
position : Position
opened : UnixMillis?
} derive(Eq, Debug)fn DomainWorkspaceSet::DomainWorkspaceSet(workspaces : ArrayView[DomainWorkspace], default_id~ : WorkspaceId) -> DomainWorkspaceSet raise WorkspaceSetErrorpub(all) enum DomainWorkspaceSource {
InTree(DomainInTreeSource)
Mounted(DomainMountedSource)
} derive(Eq, Debug)pub(all) struct DomainWorkspaceSources {
workspace : WorkspaceId
sources : ReadOnlyArray[DomainWorkspaceSource]
problems : ReadOnlyArray[SourceProblem]
} derive(Eq, Debug)fn DomainWorkspaceSources::not_equal(x : DomainWorkspaceSources, y : DomainWorkspaceSources) -> Boolpub struct EarsConformanceScorer {
}impl DocumentScorer for EarsConformanceScorerfn evaluate(_self : EarsConformanceScorer, doc : WirePacketDocument, _dict : WorkspaceDictionary) -> (Int, Array[WireScoreFinding])pub struct Entry {
id : ProjectId
anchor : Anchor
title : ProjectTitle
caption : ProjectCaption?
added : UnixMillis
opened : UnixMillis?
} derive(Eq, Debug)fn Entry::reconcile(self : Entry, observation : Observation) -> (Entry, DomainProjectWorkspaces, ReadOnlyArray[DomainEvent])impl MetadataDeriver for FnMetadataDeriverfn FnMetadataDeriver::infer(self : FnMetadataDeriver, located : Located) -> Inquiry[DerivedMetadata]pub(all) struct FolderPathDeriver {
}impl MetadataDeriver for FolderPathDeriverpub(all) struct HostEnv {
platform : Platform
system_config_dir : FolderPath?
user_config_dir : FolderPath?
env_vars : ReadOnlyArray[(String, String)]
} derive(Eq, Debug)pub(all) enum Inquiry[T] {
Done(T)
Run(ToolCall, (ToolAnswer) -> Inquiry[T])
Look(FolderPath, (Looked) -> Inquiry[T])
Names(FolderPath, (Listing) -> Inquiry[T])
ReadFile(FolderPath, (FileText) -> Inquiry[T])
RealPath(FolderPath, (RealPathAnswer) -> Inquiry[T])
}pub struct LocalFolderMountProvider {
}impl MountProvider for LocalFolderMountProviderfn resolve(_self : LocalFolderMountProvider, workspace_id : WorkspaceId, workspace_root : WorkspaceRoot, spec : MountSpec) -> Inquiry[DomainMountedSource]fn LocalFolderMountProvider::resolve(_self : LocalFolderMountProvider, workspace_id : WorkspaceId, workspace_root : WorkspaceRoot, spec : MountSpec) -> Inquiry[DomainMountedSource]pub(all) enum Located {
PlainFolder(ValidatedFolder)
Checkout(backend~ : BackendId, store~ : FolderPath, root~ : FolderPath)
BareStore(backend~ : BackendId, store~ : FolderPath)
} derive(Eq, Debug)type MetadataDeriversfn MetadataDerivers::resolve(self : MetadataDerivers, located : Located, explicit~ : DerivedMetadata) -> Inquiry[(ProjectTitle, ProjectCaption?)]pub(all) struct MountConfigDiagnostic {
key : String
origin : ConfigOrigin
message : String
} derive(Eq, Debug)pub(all) struct MountConfigResult {
mounts : ReadOnlyArray[EvaluatedMount]
problems : ReadOnlyArray[SourceProblem]
warnings : ReadOnlyArray[MountConfigDiagnostic]
errors : ReadOnlyArray[MountConfigDiagnostic]
} derive(Eq, Debug)pub(all) enum MountGrant {
Confined(tier~ : ConfinedTier, target~ : TreePath)
Trusted(tier~ : TrustedTier, target~ : MountTarget, access~ : SourceAccess)
} derive(Eq, Debug)type MountProvidersfn MountProviders::MountProviders(providers : ArrayView[&MountProvider]) -> MountProviders raise DuplicateMountProviderpub(all) struct MountSpec {
name : SourceName
kind : MountKind
role : SourceRole
grant : MountGrant
origin : ConfigOrigin
} derive(Eq, Debug)pub(all) enum Observation {
Checkouts(ReadOnlyArray[Checkout])
NoAnswer(UnavailableReason)
} derive(Eq, Debug)pub struct OkfSourceAdapter {
}impl SourceAdapter for OkfSourceAdapterfn discover(self : OkfSourceAdapter, workspace_id : WorkspaceId, workspace_root : FolderPath, real_root : FolderPath) -> Inquiry[ReadOnlyArray[DomainInTreeSource]]fn OkfSourceAdapter::discover(self : OkfSourceAdapter, workspace_id : WorkspaceId, workspace_root : FolderPath, real_root : FolderPath) -> Inquiry[ReadOnlyArray[DomainInTreeSource]]pub struct OpenSpecIntentAdapter {
}impl IntentAdapter for OpenSpecIntentAdapterfn project(_self : OpenSpecIntentAdapter, workspace_urn~ : String, docs : ReadOnlyArray[(DocumentPath, String)]) -> IntentProjectionfn OpenSpecIntentAdapter::project(_self : OpenSpecIntentAdapter, workspace_urn~ : String, docs : ReadOnlyArray[(DocumentPath, String)]) -> IntentProjectionpub struct OpenSpecSourceAdapter {
}impl SourceAdapter for OpenSpecSourceAdapterfn discover(self : OpenSpecSourceAdapter, workspace_id : WorkspaceId, workspace_root : FolderPath, real_root : FolderPath) -> Inquiry[ReadOnlyArray[DomainInTreeSource]]fn OpenSpecSourceAdapter::discover(self : OpenSpecSourceAdapter, workspace_id : WorkspaceId, workspace_root : FolderPath, real_root : FolderPath) -> Inquiry[ReadOnlyArray[DomainInTreeSource]]fn ProjectList::add(self : ProjectList, folder : FolderPath, now : UnixMillis) -> (ProjectList, Entry, Addition)fn ProjectList::admit(self : ProjectList, located : Located, title~ : ProjectTitle, caption~ : ProjectCaption?, now : UnixMillis) -> (ProjectList, Admission, ReadOnlyArray[DomainEvent])fn ProjectList::of_file_text(text : String, platform : Platform) -> ProjectList raise ProjectFileErrorfn ProjectList::open(self : ProjectList, id : ProjectId, now : UnixMillis) -> (ProjectList, Entry) raise UnknownProjectfn ProjectList::open_workspace(self : ProjectList, project_id : ProjectId, workspace_id : WorkspaceId, observation : Observation, now : UnixMillis) -> (ProjectList, Entry, DomainWorkspace, ReadOnlyArray[DomainEvent]) raise OpenWorkspaceErrorfn ProjectList::project_of_folder(self : ProjectList, current : FolderPath) -> (Entry, WorkspaceId?)?fn ProjectList::remove(self : ProjectList, id : ProjectId) -> (ProjectList, Entry) raise UnknownProjectfn ProjectList::remove_with_events(self : ProjectList, id : ProjectId) -> (ProjectList, Entry, ReadOnlyArray[DomainEvent]) raise UnknownProjectfn ProjectRef::find(self : ProjectRef, projects : ArrayView[Project]) -> Project raise ProjectRefErrorpub(all) enum RealPathAnswer {
Resolved(FolderPath)
Missing
TimedOut
Failed(String)
} derive(Eq, Debug)type Secretfn SeenWorkspaces::SeenWorkspaces(items : ArrayView[SeenWorkspace]) -> SeenWorkspaces raise SeenWorkspacesErrorfn SeenWorkspaces::record_opened(self : SeenWorkspaces, root : FolderPath, now : UnixMillis) -> SeenWorkspacespub(all) enum ServerRecord {
Running(port~ : Port, version~ : Version, secret~ : Secret)
Failed(at~ : UnixMillis, failure~ : StartFailure)
} derive(Eq, Debug)fn Sessions::find_view(self : Sessions, name : CookieName, cookie_header~ : String?, key~ : String?) -> Surface?type SourceAdaptersfn SourceAdapters::SourceAdapters(adapters : ArrayView[&SourceAdapter]) -> SourceAdapters raise DuplicateAdapterpub struct StructuralCompletenessScorer {
}fn evaluate(_self : StructuralCompletenessScorer, doc : WirePacketDocument, _dict : WorkspaceDictionary) -> (Int, Array[WireScoreFinding])pub(all) struct ToolCall {
program : ToolName
args : ReadOnlyArray[String]
cwd : FolderPath
} derive(Eq, Debug)fn UnvalidatedFolderPath::validate(self : UnvalidatedFolderPath, platform : Platform) -> ValidatedFolder raise FolderPathErrorpub(all) enum WorkspaceRoot {
Present(root~ : FolderPath, real~ : FolderPath)
Missing(root~ : FolderPath)
Unavailable(root~ : FolderPath, reason~ : String)
} derive(Eq, Debug)fn audit_intent_prose(concepts : ReadOnlyArray[WireDictionaryConcept], intent : WorkspaceIntent) -> ReadOnlyArray[WireTermAuditFinding]fn compose_workspace_sources(workspace_id : WorkspaceId, workspace_root : FolderPath, adapters : SourceAdapters, providers : MountProviders, mounts : ReadOnlyArray[EvaluatedMount], problems : ReadOnlyArray[SourceProblem]) -> Inquiry[DomainWorkspaceSources]fn desktop_candidates(base : BaseFolder, name : InstanceName, channel : Channel, env : Map[String, String]) -> ReadOnlyArray[FolderPath]let desktop_variable : Stringfn evaluate_sdlc_pure(workspace : WorkspaceId, intent : WorkspaceIntent, dict : WorkspaceDictionary, workflow : WireWorkflowConfig, scorers? : Array[&DocumentScorer], initial_notes? : Array[String]) -> WorkspaceSdlcfn fnv1a_32_hex(input : String) -> Stringfn git_create_worktree(store : FolderPath, target_path : String, branch : String, start_point? : String?) -> Inquiry[LifecycleOutcome]fn git_delete_worktree(store : FolderPath, ws_root : FolderPath, force? : Bool) -> Inquiry[LifecycleOutcome]fn git_reset_worktree(ws_root : FolderPath, target? : String?, hard? : Bool) -> Inquiry[LifecycleOutcome]fn inspect_workspace_dictionary(workspace_id : WorkspaceId, workspace_root : FolderPath, sources : DomainWorkspaceSources, intent : WorkspaceIntent) -> Inquiry[WorkspaceDictionary]fn inspect_workspace_intent(workspace_id : WorkspaceId, workspace_root : FolderPath, adapters? : Array[&IntentAdapter]) -> Inquiry[WorkspaceIntent]fn inspect_workspace_sdlc(workspace_id : WorkspaceId, workspace_root : FolderPath, intent : WorkspaceIntent, dict : WorkspaceDictionary) -> Inquiry[WorkspaceSdlc]fn intent_projection_to_wire(workspace : WorkspaceId, projection : IntentProjection) -> WorkspaceIntentfn is_workspace_mount_key(key : String) -> Boolfn load_workspace_mounts(workspace_id : WorkspaceId?, workspace_root : FolderPath?, host_env : HostEnv) -> Inquiry[MountConfigResult]fn merge_local_concept_turtle(existing_ttl : String, pref_label~ : String, definition~ : String, alt_labels? : ReadOnlyArray[String]) -> String raise DictionaryConceptErrorfn score_document(doc : WirePacketDocument, dict : WorkspaceDictionary, scorers? : Array[&DocumentScorer]) -> WireDocumentScorecardfn score_to_grade(score : Int) -> Stringfn serialize_workflow_toml(preset~ : String, min_scorecard~ : Int, require_security_gate~ : Bool) -> String raise WorkflowConfigErrorfn source_id_in_tree(workspace_id : WorkspaceId, adapter : AdapterId, name : SourceName, location : InTreeLocation) -> SourceIdfn source_id_mounted(workspace_id : WorkspaceId, trust : TrustTier, kind : MountKind?, name : SourceName) -> SourceIdInstall
Download zipThe Mission Control server: instance folders, ports, folder paths and project rules