@johannes.latzel/llm-chat-workspace
v0.2.0
Published
Workspace and path-access management for the llm-chat package
Maintainers
Readme
LLM Chat Workspace
Workspace and path-access management for the llm-chat package. Provides the shared workspace management layer used by llm-chat-file and llm-chat-shell.
Features
DirectoryConfiguration: defines which directories are accessible (read and/or write), at what permission level, and how duplicate accesses for the same path are resolved (write-wins by default, or last-added-wins)Workspace: tracks the active workspace path and enforces read/write access control for all file operations; mutex-guarded, thread-safeswitchWorkspace()with an optionalonSwitchhook; optional symlink resolution to block path traversalSwitchWorkspaceTool:llm-chattool that changes the active workspace directory within configured accessible directorieswalk(): recursive directory traversal that skips configured directories (e.g.node_modules,.git)
Prerequisites
- Node.js >= 18
Installation
npm install @johannes.latzel/llm-chat-workspaceDocumentation
Full documentation at johanneslatzel.github.io/llm-chat-workspace/
License
MIT - see LICENSE.
Contributing
Issues and PRs welcome at github.com/johanneslatzel/llm-chat-workspace.
