feat: open projects directly over SSH#623
Open
Paduce wants to merge 3 commits into
Open
Conversation
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Closes #622.
Remote OpenKnowledge projects previously required starting the web editor on the SSH machine and maintaining a tunnel by hand. This adds a first-class Open over SSH workflow to the desktop app so a project on another machine behaves like a local project.
The change adds:
~/.ok/remotedirectory. It needs no globalokinstallation,sudo, stored password/private key, or PATH change.bun.lockchanges.Remote hosts currently require macOS or Linux, a POSIX-compatible login shell, Node.js 24+, and Git 2.31+.
How this was verified
bun run checkcompleted lint, all builds and typechecks, and the changed feature suites. It reaches the knownorigin/maindefect inpackages/desktop/tests/unit/verify-native-config-driver.test.mjs, which imports the absentscripts/verify-native-config-in-packaged-dmg.mjs; the desktop package otherwise reports 2,454 passing tests. The same missing-driver failure reproduces without this branch.bun test packages/cli/src/remote-project-bootstrap.test.ts— 17 passed, including HOME-boundary, nested.ok/frontmatter.yml, symlink, and content-confinement cases.bun run --cwd packages/cli typecheckbun run --cwd packages/cli buildbun run --cwd packages/desktop build:mac:unsigned0600companion, tested the connection, browsed to an uninitialized folder, confirmed initialization, created and persisted a document, ranpwdin the remote terminal, and closed the editor. Closing reaped the remote server, local tunnel, and terminal process; the temporary project was then removed.origin/main; the final sealed snapshot has zero findings.Checklist
bun run check(lint, typecheck, tests) locally — run in full; blocked only by the pre-existing missing packaged-DMG verification driver described abovebun run changeset) if this changes behaviorAfter you open this PR
See CONTRIBUTING.md for details.