accelr8 3.6.0 → 3.6.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.
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-HY6ULYGH.js";
7
7
  import {
8
8
  DEFAULT_SERVER
9
- } from "./chunk-AYM2QXJ4.js";
9
+ } from "./chunk-HXMWH7DE.js";
10
10
 
11
11
  // src/radio/app.ts
12
12
  import tk from "terminal-kit";
@@ -4672,8 +4672,8 @@ function makeVignette4(def) {
4672
4672
  durationMs: clamp4(totalMs, 18e3, 26e3),
4673
4673
  frame(tMs, w, h) {
4674
4674
  const out = new Array(w * h);
4675
- const BG2 = { ch: " ", color: 16 };
4676
- out.fill(BG2);
4675
+ const BG3 = { ch: " ", color: 16 };
4676
+ out.fill(BG3);
4677
4677
  if (w <= 0 || h <= 0) return out;
4678
4678
  const setCell = (x, y, ch, color) => {
4679
4679
  if (x >= 0 && x < w && y >= 0 && y < h) out[y * w + x] = { ch, color };
@@ -5697,26 +5697,23 @@ function drawVolToast() {
5697
5697
  for (let i = 0; i < s.length && x + i < screen.width; i++)
5698
5698
  screen.put({ x: x + i, y, attr: { color: 231, bgColor: 16, bold: true }, dx: 1, dy: 0, wrap: false }, s[i]);
5699
5699
  }
5700
+ var BG2 = 16;
5700
5701
  function blitVideo() {
5701
5702
  const w = screen.width, h = screen.height;
5702
5703
  if (lastFrame && frameW === w && frameH === h) {
5703
5704
  for (let y = 0; y < h; y++) {
5704
5705
  for (let x = 0; x < w; x++) {
5705
5706
  const c = lastFrame[y * w + x];
5706
- if (c) screen.put({ x, y, attr: { color: c.color, bgColor: c.color }, dx: 1, dy: 0, wrap: false }, c.ch);
5707
+ if (c) screen.put({ x, y, attr: { color: c.color, bgColor: BG2 }, dx: 1, dy: 0, wrap: false }, c.ch);
5707
5708
  }
5708
5709
  }
5709
5710
  } else {
5710
5711
  for (let y = 0; y < h; y++)
5711
- screen.put({ x: 0, y, attr: { color: 233, bgColor: 233 }, dx: 1, dy: 0, wrap: false }, " ".repeat(w));
5712
+ screen.put({ x: 0, y, attr: { color: BG2, bgColor: BG2 }, dx: 1, dy: 0, wrap: false }, " ".repeat(w));
5712
5713
  }
5713
5714
  }
5714
- function videoColorAt(x, y) {
5715
- if (lastFrame && frameW === screen.width && x < frameW && y < frameH) {
5716
- const c = lastFrame[y * frameW + x];
5717
- if (c) return c.color;
5718
- }
5719
- return 233;
5715
+ function videoColorAt(_x, _y) {
5716
+ return BG2;
5720
5717
  }
5721
5718
  function blitOverlay(cells) {
5722
5719
  const w = screen.width, h = screen.height;
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/protocol.ts
4
- var VERSION = true ? "3.6.0" : "3.6.0";
4
+ var VERSION = true ? "3.6.1" : "3.6.1";
5
5
  var PROTO = 3;
6
6
  var PORT = 8787;
7
7
  var DEFAULT_SERVER = "wss://accelr8-canvas.patonchain.workers.dev";
@@ -32,7 +32,7 @@ import {
32
32
  VERSION,
33
33
  decode,
34
34
  encode
35
- } from "./chunk-AYM2QXJ4.js";
35
+ } from "./chunk-HXMWH7DE.js";
36
36
 
37
37
  // src/client.ts
38
38
  import tk from "terminal-kit";
@@ -6,7 +6,7 @@ import {
6
6
  LIMITS,
7
7
  PORT,
8
8
  PROTO
9
- } from "./chunk-AYM2QXJ4.js";
9
+ } from "./chunk-HXMWH7DE.js";
10
10
 
11
11
  // src/server.ts
12
12
  import { WebSocketServer, WebSocket } from "ws";
package/dist/cli.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  DEFAULT_SERVER,
4
4
  PORT,
5
5
  VERSION
6
- } from "./chunks/chunk-AYM2QXJ4.js";
6
+ } from "./chunks/chunk-HXMWH7DE.js";
7
7
 
8
8
  // src/cli.ts
9
9
  var HELP = `
@@ -53,7 +53,7 @@ async function main() {
53
53
  console.error(`invalid port: ${argVal(args, "--port")}`);
54
54
  process.exit(1);
55
55
  }
56
- const { runServer } = await import("./chunks/server-YHDE4A3E.js");
56
+ const { runServer } = await import("./chunks/server-43CHBWWU.js");
57
57
  runServer(port);
58
58
  return;
59
59
  }
@@ -67,7 +67,7 @@ async function main() {
67
67
  console.error("accelr8 radio needs an interactive terminal (TTY).");
68
68
  process.exit(1);
69
69
  }
70
- const { runRadio } = await import("./chunks/app-P2DXCFXJ.js");
70
+ const { runRadio } = await import("./chunks/app-RLI7EJGK.js");
71
71
  runRadio({
72
72
  name: argVal(args, "--name"),
73
73
  server: argVal(args, "--server"),
@@ -90,7 +90,7 @@ async function main() {
90
90
  const { cachedUpdate, refreshUpdateCache } = await import("./chunks/update-UEPNGB6Y.js");
91
91
  refreshUpdateCache();
92
92
  const update = cachedUpdate(VERSION);
93
- const { runClient } = await import("./chunks/client-QLZ32S6H.js");
93
+ const { runClient } = await import("./chunks/client-HEB5PQCT.js");
94
94
  runClient({
95
95
  name: argVal(args, "--name"),
96
96
  server: argVal(args, "--server"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "accelr8",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "description": "Collaborative ascii canvas in your terminal. Real multiplayer, live cursors, mouse-driven TUI.",
5
5
  "type": "module",
6
6
  "license": "ISC",