Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connections Docs Updates #1836

Merged
merged 7 commits into from
Jan 24, 2025
Merged

Connections Docs Updates #1836

merged 7 commits into from
Jan 24, 2025

Conversation

oneirocosm
Copy link
Member

Lists new connections features and clarifies information including:

  • new options for ~/.ssh/config
  • new options for connections.json
  • a troubleshooting section with info on how to obtain logs and debug
  • a troubleshooting section with known limitations
  • a list of injected environment variables

Copy link
Contributor

coderabbitai bot commented Jan 24, 2025

Walkthrough

The pull request introduces comprehensive updates to the documentation for Wave's wsh shell extensions and connection mechanisms. The changes focus on enhancing the explanation of remote machine connections, detailing the wsh functionality, and expanding configuration options.

The documentation now provides a more in-depth exploration of how wsh operates, including the addition of ~/.waveterm/bin to the user's PATH and a detailed list of environment variables injected during remote sessions. The update includes expanded sections on SSH configuration parsing, introducing new keywords for connection customization.

A new "Troubleshooting Connections" section has been added to help users diagnose and resolve potential connection issues. The documentation also introduces multiple new configuration variables in the connections.json file, covering various SSH connection parameters such as authentication methods, identity management, and connection preferences.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (5)
docs/docs/connections.mdx (5)

26-26: Improve wording for better readability.

Consider simplifying "have the ability to" to "can" for more concise writing.

-With `wsh` installed, you have the ability to view certain widgets from the remote machine
+With `wsh` installed, you can view certain widgets from the remote machine
🧰 Tools
🪛 LanguageTool

[style] ~26-~26: The phrase ‘have the ability to’ might be wordy. Consider using “can”.
Context: ...in/cmd/wsh). With wsh installed, you have the ability to view certain widgets from the remote ma...

(HAS_THE_ABILITY_TO)


105-119: Improve sentence structure in configuration descriptions.

For better readability and formal documentation style, add subjects to the sentences. For example:

-Can be used to override the value in `~/.ssh/config`
+This option can be used to override the value in `~/.ssh/config`

Apply similar changes to all configuration descriptions for consistency.

🧰 Tools
🪛 LanguageTool

[style] ~105-105: To form a complete sentence, be sure to include a subject.
Context: ...dicates the username of the connection. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~106-106: To form a complete sentence, be sure to include a subject.
Context: ...he internal hostname of the connection. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~107-107: To form a complete sentence, be sure to include a subject.
Context: ...icate the numerical port to connect on. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~109-109: To form a complete sentence, be sure to include a subject.
Context: ...ssh:identityfileflag or the defaults. Can be used to override the value in
/.ss...

(MISSING_IT_THERE)


[style] ~110-110: To form a complete sentence, be sure to include a subject.
Context: ...d passphrase prompts should be skipped. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~111-111: To form a complete sentence, be sure to include a subject.
Context: ...f public key authentication is enabled. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~112-112: To form a complete sentence, be sure to include a subject.
Context: ... if password authentication is enabled. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~113-113: To form a complete sentence, be sure to include a subject.
Context: ... interactive authentication is enabled. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~114-114: To form a complete sentence, be sure to include a subject.
Context: ...on are not handled and will be skipped. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~115-115: To form a complete sentence, be sure to include a subject.
Context: ...ction should be added to the ssh agent. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~116-116: To form a complete sentence, be sure to include a subject.
Context: ...ix domain socket of the identity agent. Can be used to overwrite the value in `
/.s...

(MISSING_IT_THERE)


[style] ~117-117: To form a complete sentence, be sure to include a subject.
Context: ...p forwarding to establish a connection. Can be used to overwrite the value in `
/.s...

(MISSING_IT_THERE)


[style] ~118-118: To form a complete sentence, be sure to include a subject.
Context: ...o keep track of authorized connections. Can be used to overwrite the value in `
/.s...

(MISSING_IT_THERE)


[style] ~119-119: To form a complete sentence, be sure to include a subject.
Context: ...o keep track of authorized connections. Can be used to overwrite the value in `
/.s...

(MISSING_IT_THERE)


188-188: Fix informal grammar usage.

Change "A couple additional options" to "A couple of additional options" for formal documentation style.

-A couple additional options are set as well as an example of how that can be done.
+A couple of additional options are set as well as an example of how that can be done.
🧰 Tools
🪛 LanguageTool

[style] ~188-~188: It’s considered informal to use ‘a couple’ without the preposition ‘of’ before a noun.
Context: ...ding to be in the ~/.ssh/config file. A couple additional options are set as well as a...

(A_COUPLE_OF)


214-214: Improve writing style in troubleshooting steps.

Replace repetitive "To do this" with more expressive alternatives:

-To do this, click the **<code><i className="fa-gear fa-solid fa-sharp"/></code>** button
+To enable debugging, click the **<code><i className="fa-gear fa-solid fa-sharp"/></code>** button

-To do this, you can run the command `wsh wavepath log`
+To locate the log file, you can run the command `wsh wavepath log`

Also applies to: 216-216

🧰 Tools
🪛 LanguageTool

[style] ~214-~214: Consider a more expressive alternative.
Context: ...al widget that is trying to connect. To do this, click the **<i className="f...

(DO_ACHIEVE)


231-231: Fix grammar in shell compatibility section.

Replace "different than" with "different from" for correct grammar:

-If the shell is different than those
+If the shell is different from those

Also, replace "at the moment" with "currently" for conciseness:

-The easiest way to fix this at the moment
+The easiest way to fix this currently
🧰 Tools
🪛 LanguageTool

[style] ~231-~231: Did you mean ‘different from’? ‘Different than’ is often considered colloquial style.
Context: ...hell) - fish If the shell is different than those, it is possible the wsh command...

(DIFFERENT_THAN)


[style] ~231-~231: For conciseness, consider replacing this expression with an adverb.
Context: ...by default. The easiest way to fix this at the moment is the switch the shell type. This can ...

(AT_THE_MOMENT)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7bad4b3b31f7b3345682c65bdaf63a3a78aa077e and a8fe3cc051f0bd5548592f46b961b7aa84c06059.

📒 Files selected for processing (1)
  • docs/docs/connections.mdx (6 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/docs/connections.mdx

[style] ~26-~26: The phrase ‘have the ability to’ might be wordy. Consider using “can”.
Context: ...in/cmd/wsh). With wsh installed, you have the ability to view certain widgets from the remote ma...

(HAS_THE_ABILITY_TO)


[style] ~105-105: To form a complete sentence, be sure to include a subject.
Context: ...dicates the username of the connection. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~106-106: To form a complete sentence, be sure to include a subject.
Context: ...he internal hostname of the connection. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~107-107: To form a complete sentence, be sure to include a subject.
Context: ...icate the numerical port to connect on. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~109-109: To form a complete sentence, be sure to include a subject.
Context: ...ssh:identityfileflag or the defaults. Can be used to override the value in
/.ss...

(MISSING_IT_THERE)


[style] ~110-110: To form a complete sentence, be sure to include a subject.
Context: ...d passphrase prompts should be skipped. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~111-111: To form a complete sentence, be sure to include a subject.
Context: ...f public key authentication is enabled. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~112-112: To form a complete sentence, be sure to include a subject.
Context: ... if password authentication is enabled. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~113-113: To form a complete sentence, be sure to include a subject.
Context: ... interactive authentication is enabled. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~114-114: To form a complete sentence, be sure to include a subject.
Context: ...on are not handled and will be skipped. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~115-115: To form a complete sentence, be sure to include a subject.
Context: ...ction should be added to the ssh agent. Can be used to override the value in `
/.ss...

(MISSING_IT_THERE)


[style] ~116-116: To form a complete sentence, be sure to include a subject.
Context: ...ix domain socket of the identity agent. Can be used to overwrite the value in `
/.s...

(MISSING_IT_THERE)


[style] ~117-117: To form a complete sentence, be sure to include a subject.
Context: ...p forwarding to establish a connection. Can be used to overwrite the value in `
/.s...

(MISSING_IT_THERE)


[style] ~118-118: To form a complete sentence, be sure to include a subject.
Context: ...o keep track of authorized connections. Can be used to overwrite the value in `
/.s...

(MISSING_IT_THERE)


[style] ~119-119: To form a complete sentence, be sure to include a subject.
Context: ...o keep track of authorized connections. Can be used to overwrite the value in `
/.s...

(MISSING_IT_THERE)


[style] ~188-~188: It’s considered informal to use ‘a couple’ without the preposition ‘of’ before a noun.
Context: ...ding to be in the ~/.ssh/config file. A couple additional options are set as well as a...

(A_COUPLE_OF)


[style] ~214-~214: Consider a more expressive alternative.
Context: ...al widget that is trying to connect. To do this, click the **<i className="f...

(DO_ACHIEVE)


[style] ~216-~216: Consider a more expressive alternative.
Context: ... possible to view the full log file. To do this, you can run the command `wsh wave...

(DO_ACHIEVE)


[style] ~231-~231: Did you mean ‘different from’? ‘Different than’ is often considered colloquial style.
Context: ...hell) - fish If the shell is different than those, it is possible the wsh command...

(DIFFERENT_THAN)


[style] ~231-~231: For conciseness, consider replacing this expression with an adverb.
Context: ...by default. The easiest way to fix this at the moment is the switch the shell type. This can ...

(AT_THE_MOMENT)


[style] ~235-~235: Consider a shorter alternative to avoid wordiness.
Context: ...wsh will not work on your connection. In order to get wsh working, set the value for `A...

(IN_ORDER_TO_PREMIUM)

⏰ Context from checks skipped due to timeout of 90000ms (5)
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: Build Docsite
  • GitHub Check: Build for TestDriver.ai
  • GitHub Check: Analyze (go)
  • GitHub Check: merge-gatekeeper
🔇 Additional comments (2)
docs/docs/connections.mdx (2)

Line range hint 61-74: Well-documented SSH configuration options!

The new SSH configuration options are thoroughly documented with clear descriptions and default values.


Line range hint 1-235: Excellent documentation updates!

The documentation changes successfully achieve all PR objectives:

  • ✅ New SSH config options
  • ✅ New connections.json options
  • ✅ Troubleshooting guidance
  • ✅ Known limitations
  • ✅ Environment variables documentation

The technical content is accurate, comprehensive, and well-organized. The minor style suggestions above will help improve readability but don't impact the technical accuracy of the documentation.

🧰 Tools
🪛 LanguageTool

[style] ~214-~214: Consider a more expressive alternative.
Context: ...al widget that is trying to connect. To do this, click the **<i className="f...

(DO_ACHIEVE)


[style] ~216-~216: Consider a more expressive alternative.
Context: ... possible to view the full log file. To do this, you can run the command `wsh wave...

(DO_ACHIEVE)


[style] ~231-~231: Did you mean ‘different from’? ‘Different than’ is often considered colloquial style.
Context: ...hell) - fish If the shell is different than those, it is possible the wsh command...

(DIFFERENT_THAN)


[style] ~231-~231: For conciseness, consider replacing this expression with an adverb.
Context: ...by default. The easiest way to fix this at the moment is the switch the shell type. This can ...

(AT_THE_MOMENT)


[style] ~235-~235: Consider a shorter alternative to avoid wordiness.
Context: ...wsh will not work on your connection. In order to get wsh working, set the value for `A...

(IN_ORDER_TO_PREMIUM)

@oneirocosm oneirocosm merged commit 3c7f4d2 into main Jan 24, 2025
10 checks passed
@oneirocosm oneirocosm deleted the sylvie/connection-docs-update branch January 24, 2025 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant