open-index/open-npm huggingface dataset:
npm package: @lightyearminds/dotline-agent
Description: 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.
Latest version: 0.1.1

# 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:

```bash
cd agent-cli
npm install
npm run build
node dist/index.js --help
```

## Pair (from the UI)

1) Your Dotline UI calls `POST /agents/pairing-code` (authenticated) and shows the code.

2) On your machine:

```bash
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).