Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ PORT=
PINS_DB=
# Default "shots" next to the database. Folder for the before and after images.
PINS_SHOTS_DIR=
# Default "images" next to the database. Folder for the images that you attach to pins and replies.
PINS_IMAGES_DIR=
# Default <repo>/extension/dist. Folder with the two extension ZIPs for /download/.
PINS_DOWNLOAD_DIR=
# Default koglabs.com. A pin URL must be https on this domain or a subdomain.
Expand Down Expand Up @@ -49,6 +51,8 @@ PINS_RUNNER_BRIEF=
PINS_RUNNER_SHOTS=
# Default on. 0 switches the lean session start off. Only 0 and 1 are valid.
PINS_RUNNER_LEAN=
# Default /var/lib/onspot-runner/images. Where the runner saves the images of a pin for its session.
PINS_RUNNER_IMAGES_DIR=
# Default http://127.0.0.1:7788. The Triad service; loopback HTTP only.
TRIAD_URL=
# Default /srv/hub/triad/data/token. File that holds the Triad key. The value never goes in an env variable.
Expand Down
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Node 22 (`/opt/studio/bin/node`; `node:sqlite` needs 22.13 or later). The server
export PATH=/opt/studio/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
unset NODE_ENV # with NODE_ENV=production npm skips esbuild
npm --prefix extension ci && npm --prefix extension run build # release.build (writes extension/dist and the two ZIPs)
npm test # release.test: server 166, runner 143, extension 84, e2e helpers 12
npm run harness # extension UI harness: 59 groups in Chromium, 59 in Firefox
npm test # release.test: server 176, runner 150, extension 91, e2e helpers 12
npm run harness # extension UI harness: 60 groups in Chromium, 60 in Firefox
node deploy/caddy.check.mjs # the proxy rules with a real Caddy
```

Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ The headings are versions of the contract (`docs/protocol.md`). The extension ha

## [Unreleased]

## [3.6] - 2026-11-15

Extension 0.7.0.

### Added

- Images on pins: paste (Ctrl+V or ⌘V), drop or pick up to 6 images while you write a pin note or a reply. Each image uploads at once (`POST /api/images`, PNG, JPEG or WebP up to 2 MiB; the extension shrinks larger images and converts other formats) and the pin or the reply links it when it is created. The pin JSON has `images`.
- The card shows the images of the pin after the note and the images of a reply inside the reply.
- The runner saves the images of each pin as files before the session starts and lists their paths in the prompt; the session opens them with the Read tool.
- `pins images <id> [--dir D]` saves the images of a pin; `pins show` and `pins_get` print `images: <n>`.
- `PINS_IMAGES_DIR` (server) and `PINS_RUNNER_IMAGES_DIR` (runner).

## [3.5] - 2026-11-14

Extension 0.6.0.
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ Every environment variable that the code reads. `.env.example` holds the same na
| `PORT` | server | `4750` | Port on `127.0.0.1`. An integer from 0 to 65535; 0 takes a free port. |
| `PINS_DB` | server | `<repo>/data/pins.db` | The SQLite file. The server creates the folder and migrates the schema on open. |
| `PINS_SHOTS_DIR` | server | `shots` next to the database | Folder for the before and after images. |
| `PINS_IMAGES_DIR` | server | `images` next to the database | Folder for the images that you attach to pins and replies. |
| `PINS_DOWNLOAD_DIR` | server | `<repo>/extension/dist` | Folder with the two extension ZIPs that `/download/` serves. |
| `PINS_ROOT_DOMAIN` | server | `koglabs.com` | A pin URL must be on this domain or a subdomain. |
| `PINS_QUEUE_URL` | server | `https://ai.koglabs.com/triad?tab=pins` | Where `GET /` redirects (the queue UI). A bad value stops the start. |
Expand All @@ -129,6 +130,7 @@ Every environment variable that the code reads. `.env.example` holds the same na
| `PINS_RUNNER_BRIEF` | runner | on | `0` switches the brief off. Only `0` and `1` are valid. |
| `PINS_RUNNER_SHOTS` | runner | on | `0` switches the "before" shot by the runner off. Only `0` and `1` are valid. |
| `PINS_RUNNER_LEAN` | runner | on | `0` switches the lean session start off. Only `0` and `1` are valid. |
| `PINS_RUNNER_IMAGES_DIR` | runner | `/var/lib/onspot-runner/images` | Where the runner saves the images of a pin for its session. |
| `MAX_RUNS` | runner | `0` | Runs at the same time. 0 is no limit. |
| `MAX_RUNS_PER_PROJECT` | runner | `0` | Runs at the same time for one project. 0 is no limit. |
| `MAX_RUNS_PER_DAY` | runner | `0` | Runs per UTC day. 0 is no limit. |
Expand Down Expand Up @@ -173,9 +175,9 @@ To report a problem, read [`SECURITY.md`](SECURITY.md).

```sh
npm --prefix extension ci # one time: the extension tests run the build
npm test # server 166, runner 143, extension 84, e2e helpers 12 tests
npm test # server 176, runner 150, extension 91, e2e helpers 12 tests
node deploy/caddy.check.mjs # the proxy rules against a real Caddy (needs the caddy binary)
npm run harness # the extension UI: 59 groups in Chromium and 59 in Firefox
npm run harness # the extension UI: 60 groups in Chromium and 60 in Firefox
```

- The tests use an in-memory store, ports that the system picks and temp folders. They send nothing to a running server.
Expand Down
Loading
Loading