mise API - v0.0.0
    Preparing search index...

    Class Session

    Manages the shell session state (Connection, Context).

    Index
    connection: ChRISConnection

    The CUBE connection the ChRIS commands use.

    • Changes directory as an interactive cd operation while retaining the previous directory for cd -.

      Other temporary context changes use setCWD directly and therefore do not disturb interactive navigation history.

      Parameters

      • path: string

        New current working directory.

      Returns Promise<void>

      Nothing.

    • The current working directory: what the backend stores for the identity, or, before it has stored anything, the identity's home.

      A first session used to begin at /, which is a place nobody works in — the operator's own words: "she should be in the user's homedir". A shell lands in the home; so does this one. A stored directory is always honoured, / included, since the operator put it there.

      Returns Promise<string>

    • Gets physical filesystem mode status.

      When true, path operations work directly with physical paths without logical-to-physical mapping.

      Returns boolean

      True if in physical mode, false if using logical paths.

    • Sets physical filesystem mode.

      Parameters

      • enabled: boolean

        True to enable physical mode, false for logical mode.

      Returns void

    • Returns the directory immediately preceding the latest interactive change.

      Returns string | undefined

      Previous directory, or undefined when none exists in this session.

    • Returns the session's retained regard: the addressable thing the operator most recently indicated on any surface, or null before the first indication. Last write wins; the value survives surface reattachment for the life of the session.

      Returns { address: string; groupId: string; modelKind?: string; paneId: string } | null

      The retained regard, or null when nothing has been indicated.

    • Retains a regard write from a surface.

      Parameters

      • regard: { address: string; groupId: string; modelKind?: string; paneId: string }

        The indicated address with its provenance.

      Returns void

    • Set Current Working Directory: the backend stores it for the identity.

      Parameters

      • path: string

      Returns Promise<void>

    • Gets timing mode status.

      When true, command execution times are displayed after each command.

      Returns boolean

      True if timing is enabled, false otherwise.

    • Sets timing mode.

      Parameters

      • enabled: boolean

        True to enable timing display, false to disable.

      Returns void