How cspotcode/flow.launcher.plugin.edgeworkspaces works
This Flow Launcher plugin searches workspaces across installed Edge instances and profiles, returning fuzzy-matched results that users can open. The runtime discovers Edge installations, finds profiles, reads legacy cache or newer sync data, then decodes and aggregates workspace records before sending results through Flow Launcher’s JSON-RPC interface. Selecting a result launches Edge with the profile and workspace ID. The LevelDB and protobuf internals are shown because they implement the newer format; unsampled source relationships are omitted.
Main entry points: main.ts Plugin runtime · edge-workspaces.ts Profile discovery · edge-instances.ts Instance discovery · leveldb-reader.ts LevelDB reader
Components 15
Launcher workflow
- Plugin runtime
src/main.ts - Flow JSON-RPC
src/flow-api.ts - Fuzzy matching
Edge discovery
- Instance discovery
src/edge-instances.ts - Profile discovery
src/edge-workspaces.ts
Workspace parsing
- Workspace parsing
src/edge-workspaces.ts
Data format internals
- LevelDB reader
src/leveldb-reader.ts - Binary readers
src/binary-readers.ts - Protobuf decoder
src/protobuf.ts - Generated entity types
src/gen/edge_workspaces_pb.ts - Workspace schema
proto/edge_workspaces.proto
Other components
- User
- Flow Launcher
- Edge application
- Edge installation and profile data
Connections 15
- User → Flow Launcher: searches or selects
README.md - Flow Launcher → Plugin runtime: invokes plugin
README.md - Plugin runtime → Flow JSON-RPC: reads requests; writes results
src/main.ts - Plugin runtime → Instance discovery: discovers instances
src/main.ts - Plugin runtime → Profile discovery: lists profiles and workspaces
src/main.ts - Plugin runtime → Fuzzy matching: matches query
src/main.ts - Plugin runtime → Edge application: launches workspace
src/main.ts - Instance discovery → Edge installation and profile data: checks installation paths
src/edge-instances.ts - Profile discovery → Edge installation and profile data: checks profile data
src/edge-workspaces.ts - Profile discovery → Workspace parsing: parses workspace data
src/edge-workspaces.ts - Workspace parsing → LevelDB reader: reads sync database
src/edge-workspaces.ts - Workspace parsing → Protobuf decoder: decodes sync entities
src/edge-workspaces.ts - LevelDB reader → Binary readers: reads binary fields
src/leveldb-reader.ts - Protobuf decoder → Generated entity types: decodes with schema types
src/protobuf.ts - Generated entity types → Workspace schema: implements message definitions
src/gen/edge_workspaces_pb.ts