@lightyearminds/dotline-agent
v0.1.1
Published
The Dotline backend cannot reach `localhost` or private network addresses from the cloud. Dotline Agent runs on the user's machine and **executes HTTP requests locally**, then returns the response back to Dotline.
Readme
Dotline Agent (CLI)
The Dotline backend cannot reach localhost or private network addresses from the cloud.
Dotline Agent runs on the user's machine and executes HTTP requests locally, then
returns the response back to Dotline.
Install (dev)
From the repo root:
cd agent-cli
npm install
npm run build
node dist/index.js --helpPair (from the UI)
Your Dotline UI calls
POST /agents/pairing-code(authenticated) and shows the code.On your machine:
dotline-agent login --api https://<DOTLINE_API> --code <PAIRING_CODE> --name "My Machine"
dotline-agent start --api https://<DOTLINE_API>What it supports
- JSON/text requests (GET/POST/PUT/PATCH/DELETE)
- Localhost/private IP targets
Multipart/FormData support can be added next (it requires streaming files and boundaries).
