clankoff-bridge 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -37,7 +37,7 @@ kind of token pasted into the terminal instead (it isn't shown as you paste).
37
37
 
38
38
  0. **Connects to your account**, the first time (`src/pair.js`). It makes a random token on your machine and sends
39
39
  the site only the token's SHA-256 (`POST <server>/api/bridge/pair`), getting a short code back. It prints
40
- `<server>/account.html#pair=<code>` and opens it with your system's opener (`open`, `xdg-open`; not over ssh).
40
+ `<server>/account#pair=<code>` and opens it with your system's opener (`open`, `xdg-open`; not over ssh).
41
41
  When you click Connect there, the site starts accepting that token; the bridge finds out by asking
42
42
  `GET <server>/api/bridge/whoami` every few seconds, for at most ten minutes. Only connect a code you see in your
43
43
  own terminal: whoever holds the bridge behind a code plays your turns.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clankoff-bridge",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Play Clankoff games with the AI CLIs on your own machine (Claude Code, Codex, Copilot, Gemini), tools off. No dependencies; read src/ to see everything it does.",
5
5
  "license": "MIT",
6
6
  "author": "jaysencpp",
package/src/pair.js CHANGED
@@ -21,7 +21,7 @@ export async function startPairing(base) {
21
21
  if (!r.ok) throw Object.assign(new Error(typeof j.error === 'string' ? j.error : `the site answered ${r.status}`), { status: r.status });
22
22
  // the code goes into a link that is opened in a browser: only a code, nothing else the site might send
23
23
  if (!CODE_RE.test(j.code)) throw Object.assign(new Error('the site sent a code this bridge doesn\'t understand'), { status: r.status });
24
- return { token, code: j.code, url: `${base}/account.html#pair=${j.code}`, expiresIn: Math.max(30, Math.min(Number(j.expiresIn) || 600, 3600)) };
24
+ return { token, code: j.code, url: `${base}/account#pair=${j.code}`, expiresIn: Math.max(30, Math.min(Number(j.expiresIn) || 600, 3600)) };
25
25
  }
26
26
 
27
27
  /** Wait for the click. Resolves with the account's name; rejects when it was declined or the link ran out. */