@loopstack/remote-file-explorer-example-workflow
v0.22.0
Published
Example workflow demonstrating @loopstack/remote-file-explorer-module — lists a remote workspace tree and reads a file
Maintainers
Readme
@loopstack/remote-file-explorer-example-workflow
Demonstrates browsing a remote workspace. Imports @loopstack/remote-file-explorer-module so its HTTP endpoints (GET /tree, GET /read) are live, and ships a small workflow that mirrors the same flow using GlobTool + ReadTool from @loopstack/remote-client.
By using this example you'll get...
- The
RemoteFileExplorerControllermounted at/api/v1/workspaces/:workspaceId/files/* - A
RemoteFileExplorerExampleWorkflowthat lists files and reads one from the remote agent - A reference wiring for frontends that want to render a remote file tree
Installation
loopstack add @loopstack/remote-file-explorer-example-workflow@loopstack/remote-client must be configured with a sandbox environment pointing at a running remote agent.
How It Works
- The workflow globs
**/*.mdfrom the workspace root usingGlobTool. - It reads the first match using
ReadTool. - Both results are saved as
MessageDocuments. - Separately, the
RemoteFileExplorerControllermounted by the module exposes the same primitives as HTTP endpoints the frontend can hit directly.
Public API
RemoteFileExplorerExampleModuleRemoteFileExplorerExampleWorkflow
Dependencies
@loopstack/common,@loopstack/core@loopstack/remote-client@loopstack/remote-file-explorer-module
