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: 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 154, runner 139, extension 78, e2e helpers 12
npm run harness # extension UI harness: 53 groups in Chromium, 53 in Firefox
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
node deploy/caddy.check.mjs # the proxy rules with a real Caddy
```

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

## [Unreleased]

## [3.5] - 2026-11-14

Extension 0.6.0.

### Added

- Go back: a closed pin with a live fix has a "Go back" button in its card. You choose the version: the page before the pin, or the page after an earlier fix. `POST /api/pins/:id/revert { commit }` (users only) queues the pin with `revert`; the runner starts one revert run (lean, the project card, effort high with one retry counted from the request) that undoes the commits newest first, ships the old version and closes the pin.
- The pin JSON has `versions` (the live fix commits, oldest first), `revert` and `revertedAt`. The first open of an older database reads the versions from the `Done: <summary> (<commit>)` replies.
- `pins show` and `pins_get` print `versions:`, `go back:` and `reverted:`; `pins list` marks a go back. The element verdict has a revert rule: the element came back, went away or changed.
- Extension: the card shows "Going back" and "Reverted"; the run toast says "Going back #12"; the done toast says "Back to the earlier version · #12"; the Log chip says "Going back" or "Reverted".

### Fixed

- A resolve or a dismiss with a 4000-character summary or reason failed with 400, because its reply went over 4000 characters. The reply text is now cut; the commit stays.
- `pins ship` stopped at `git add` when a listed file was deleted and the deletion was staged already (`git revert`, `git rm`).
- Extension: a clipped text in the UI no longer ends with half an emoji.

## [3.4] - 2026-11-14

Extension 0.5.0. The first public release.
Expand Down
3 changes: 2 additions & 1 deletion PLAN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Plan
Current version: v3.4.0 (2026-11-14, the first public release; the units run `/srv/hub/pins`)
Current version: v3.5.0 (2026-11-14, Go back on each pin; the units run `/srv/hub/pins`)
Goal: not recorded

## Next release: v1.0.0
Expand All @@ -21,4 +21,5 @@ Goal: not recorded
- Adopt the project contract release (`proj release kog-pins prod`): back up `pins.db`, move the data to the release folder, give the service user what the runner needs, point the `pins` wrapper at the release, create the env file, then release and check. Until then the command must not run (source: `AGENTS.md` "Release"; the unit template headers in `deploy/units`)

## Done
- v3.5.0 (2026-11-14): Go back. A closed pin with a live fix returns the page to the version before the pin or after an earlier fix (order: "add a reverse button to the previous version on each pin ... full solid").
- v3.4.0 (2026-11-14): OnSpot (was Kog Pins), first public release at https://github.com/jstadev/onspot.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ The contract between all parts is [`docs/protocol.md`](docs/protocol.md). If the
+--------------------------------------------------+
```

Each closed pin keeps the commits of its fixes. **Go back** in the pin card starts a revert run: you choose the version (the page before the pin, or after an earlier fix), the session undoes the later commits, ships the old version and closes the pin.

| Part | Path | What it does |
|---|---|---|
| Extension | `extension/` | MV3 extension for Chrome and Firefox. The content script draws the picker, the note popup, the markers and the cards. The background script does all network and reads the live stream. |
Expand Down Expand Up @@ -65,7 +67,7 @@ In a second shell:
export PINS_PORT=4751 PINS_AGENT=demo

curl -s http://127.0.0.1:4751/api/health
# {"ok":true,"version":"0.1.0","extension":"0.5.0","open":{"queued":0,"working":0,"waiting":0}}
# {"ok":true,"version":"0.1.0","extension":"0.6.0","open":{"queued":0,"working":0,"waiting":0}}

# Create a pin as a user (no X-Pins-Agent header). The extension does this for you.
curl -s -X POST http://127.0.0.1:4751/api/pins -H 'Content-Type: application/json' \
Expand Down Expand Up @@ -171,9 +173,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 154, runner 139, extension 78, e2e helpers 12 tests
npm test # server 166, runner 143, extension 84, 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: 53 groups in Chromium and 53 in Firefox
npm run harness # the extension UI: 59 groups in Chromium and 59 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 Expand Up @@ -211,7 +213,7 @@ OnSpot runs in one deployment today. These parts are tied to it.
- **Prompt text.** The prompt names tools and paths of the current host: `maestro session`, `/root/triad/bin/triad delegate`, worktrees under `/srv/work`, `https://ai.koglabs.com/dev` (`runner/src/prompt.js`).
- **`pins ship`.** It needs `deploy/project.json` in the target project and the command `proj release <key> staging`. `proj` is not in this repo. Without them the command says "ship by hand".
- **The "before" shot.** The runner starts it with `/usr/bin/systemd-run` (`runner/src/index.js`).
- **Versions.** The contract is at v3.4 and the extension at 0.5.0. The server and the runner report 0.1.0.
- **Versions.** The contract is at v3.5 and the extension at 0.6.0. The server and the runner report 0.1.0.
- **Firefox.** The add-on is not signed.

## Licence
Expand Down
Loading
Loading