跳转到内容

Share a project

此内容尚不支持你的语言。

A project room lets several people work on the same files of a remote project at the same time: everyone’s edits go through the one backend on the host, which orders them, saves them and keeps a shared history. You invite people with a link that carries a role and an end. Project rooms are In progress: the backend part is tested end to end, the window parts exist and have not been hand-tested yet.

  • The project is opened from a host, over SSH or as a paired host (Work on a remote host over SSH, Pair a host). A room lives with the backend on the host; a local project has none.
  • Everyone who joins needs their own way in: an account on the host with SSH keys, or a device paired with the host. A link never replaces that; it only gives a place and a role in the room. Nothing new listens on the network for a room.
Role May
viewer read files, see the others and their carets, follow, watch runs
commenter also comment on lines, reply, resolve
editor also change files and commit
runner also run, debug, use terminals and agent tools
admin also share, change roles and remove people

A role never exceeds the channel. A device paired with view stays a viewer even with an editor link; the device’s rights are the host owner’s decision at pairing. Once a project has a room, every session needs a place in it: a person who was removed cannot get back in through a paired device or another link.

  1. In the remote project’s window choose File › Share Project…, or the Share button left of the avatars in the toolbar.
  2. Without a room the dialog explains what a room does and offers Start Room. You become the room’s admin.
  3. Pick the role, Viewer (the default) or Editor, and how long the link works: 1 hour, 1 day (the default), 7 days or 30 days. Every link made in the dialog ends.
  4. Choose Create Link. The link is shown once with its role and end. Only Copy puts it on the clipboard; close the dialog and the link is gone from your screen. Send it over a channel you trust.

Below, the dialog lists the links still in force with how long each works and a Revoke button; the secret of a listed link is never shown again. A revoked or ended link stops working within a second, also for guests already in the room.

  1. PasteFile › Join Project by Link… reads the link from the clipboard and shows host, folder, role and end.If not: Malformed or ended links are refused before anything connects.
  2. Host keyThe link carries the host key fingerprint; it is compared with your own known_hosts.If not: Different: refused as a possible attack. Unknown: you add the key yourself first.
  3. SSHYour own ssh logs in with your own account, post-quantum key exchange and the matched key only.
  4. RoomThe room admits the link; the project window opens with the link's role.If not: Revoked, ended or not from this room: nothing stays open.
  1. Copy the link you received, then choose File › Join Project by Link… in any window.
  2. Paste (or ⌘V in the dialog). Before connecting, the dialog shows the host and port, the project folder, the room, the host key fingerprint, the role and how long the link still works. The secret part is shown as •••• and its last four characters.
  3. Read the host key line:
    • The host key matches your known_hosts: Join is offered.
    • The key in the link differs from the one you trust: joining is refused, because this can mean an attack or a forged link. Ask the room’s admin over another channel.
    • The host is unknown: Ferris IDEA never adds host keys itself. Connect once in a terminal with ssh -p <port> <host> and answer yes only if the fingerprint equals the link’s; to see the fingerprints without logging in, run ssh-keyscan -p <port> <host> | ssh-keygen -lf -. Then choose Check Again.
  4. Join. A project window opens on the folder, already in the room with the link’s role (or your higher one). If that project is already open from the host, the link joins there.

A link is a bearer secret: whoever holds it holds its role within their own account. Ferris IDEA registers no ferris-idea:// handler with the system, so a web page cannot start a connection with one; links are always pasted.

The Share dialog lists everyone in the room now, you first, with role and away. An admin also sees members who are not there (not here) and a Remove button at each other member, which asks once more in the row. A removed person’s sessions close within a second, and no link brings them back. The last admin cannot be removed. Agents and guests are not members; they leave with their person or link.

While you are in a room, the status bar shows Room · N with the number of people there. Its tooltip names the room, your role, the others and the connection; a click opens the Share dialog.

The backend on the host sees the plain text of the project: language services, the index and running code need it. Each connection between a window and the host is encrypted; the host itself is not kept from reading what is shared. Share a room only on a host you trust with the project.

Message What to do
Sharing needs a project opened from a host Open the project with File › Remote Development… first.
This link ended … Ask an admin of the room for a new link.
The host did not admit this link It was withdrawn, has ended or is not from this room. Ask for a new link.
You were removed from this room Ask an admin to add you.
No post-quantum key exchange The host, a jump host or your own OpenSSH is too old; see How remote connections are protected.
Only an admin makes links Your role is lower; the dialog shows the people and your role only.

Agents create rooms, make and revoke links and change roles with the user-granted right ssh (sharing also needs the admin role); a link made by a tool appears only in its answer, never in a log. room_join_link checks a link like the dialog does and defaults to a dry run. An anonymous link (viewer only, always ending, within 7 days) can be made only by a tool, for the WebSocket endpoint.

  • room_createchangessshCreate the shared room of a remote project (SPEC-0323, Experimental): one ordering authority for typing, change sets, file operations and changes from outside, per-person undo, roles and a shared history.
  • room_joinchangeswriteJoin the room of a remote project (SPEC-0323, Experimental), with a link or as a known member; with agent as an agent under that name, shown with it in the history, its role at most the person's and never admin (a named version is recorded first).
  • room_join_linkchangesdry run by defaultrunsshwriteJoin a project room by a full room link (SPEC-0323 v7, Experimental): the link names host, port, project folder and the host key's SHA-256 fingerprint.
  • room_linksreadsThe links of a room (SPEC-0323, Experimental): id, role, audience, expiry and state, never the secret.
  • room_revoke_linkchangessshWithdraw a link of a room (SPEC-0323, Experimental); guests who came through it leave within a second.
  • room_set_rolechangessshChange a person's role in a room, or remove them with role removed (SPEC-0323, Experimental); takes effect within a second by closing their session, and a removed person cannot return through a link.
  • room_sharechangessshMake a link to the room of a remote project (SPEC-0323, Experimental): role viewer and audience organisation unless given; anonymous is read-only, always expires and never runs anything.
  • room_statusreadsThe room of a remote project (SPEC-0323, Experimental): id, participants with role, kind and presence, members and the journal position.