Skip to content

feat: surface the detected cliPath and tolerate CRLF skill files - #14

Open
daian2024 wants to merge 1 commit into
Tabbit-Browser:mainfrom
daian2024:fix/clipath-and-crlf
Open

feat: surface the detected cliPath and tolerate CRLF skill files#14
daian2024 wants to merge 1 commit into
Tabbit-Browser:mainfrom
daian2024:fix/clipath-and-crlf

Conversation

@daian2024

Copy link
Copy Markdown

Summary

Two small improvements on top of the existing detection flow:

  1. Expose the resolved launcher path (cliPath)detectTabbit already resolves the stable tabbit-cli launcher (%LOCALAPPDATA%\Tabbit\LocalAgent\bin\tabbit-cli.exe on Windows, ~/.local/bin/tabbit-cli elsewhere), but tabbit_browser_install never returned it. This PR adds cliPath to the tool's output schema and to every result branch (ready / restart-required / background, including session-cached copies), and mentions it in the ready message. Agents can now invoke the launcher directly instead of guessing from platform docs.

  2. Tolerate CRLF skill files in stripFrontmatter — the frontmatter stripper assumed LF-only line endings. On Windows checkouts (git autocrlf) the --- frontmatter was never stripped, so the skill content served to models included the raw YAML header. The helper now detects LF vs CRLF and is exported for direct testing.

Test plan

  • node --test: 34/34 pass (3 new tests: CRLF/LF frontmatter stripping, cliPath in tool result + cached copy, schema property).
  • Verified on a real Windows machine: detectTabbit() returns ready with cliPath pointing at the stable LocalAgent entry and the Runtime process detected.

detectTabbit already resolves the stable tabbit-cli launcher path, but the
tabbit_browser_install tool never exposed it: agents had to fall back to
platform documentation and a connection probe. Report the resolved
cliPath in the tool output schema, the ready message, and every result
branch (ready/restart-required/background, cached copies included) so
agents can invoke the launcher directly.

stripFrontmatter assumed LF-only frontmatter, so on Windows checkouts
(git autocrlf) the skill frontmatter was never stripped. Tolerate both
LF and CRLF line endings and export the helper for direct testing.
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