@staff0rd/assist 0.326.0 → 0.326.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.
Files changed (2) hide show
  1. package/dist/index.js +11 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.326.0",
9
+ version: "0.326.1",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -6654,8 +6654,10 @@ async function connect2() {
6654
6654
  await ensureDaemonRunning("web log stream");
6655
6655
  const socket = await connectToDaemon();
6656
6656
  wire(socket);
6657
- socket.write(`${JSON.stringify({ type: "subscribe-logs" })}
6658
- `);
6657
+ socket.write(
6658
+ `${JSON.stringify({ type: "subscribe-logs", replay: false })}
6659
+ `
6660
+ );
6659
6661
  } catch {
6660
6662
  scheduleReconnect();
6661
6663
  }
@@ -20579,9 +20581,11 @@ var ClientHub = class extends Set {
20579
20581
  sendTo(client, { type: "limits", rateLimits: this.latestLimits });
20580
20582
  }
20581
20583
  }
20582
- subscribeLogs(client) {
20583
- for (const line of recentDaemonLogLines()) {
20584
- sendTo(client, { type: "log", line });
20584
+ subscribeLogs(client, replay = true) {
20585
+ if (replay) {
20586
+ for (const line of recentDaemonLogLines()) {
20587
+ sendTo(client, { type: "log", line });
20588
+ }
20585
20589
  }
20586
20590
  this.logSubscribers.add(client);
20587
20591
  }
@@ -22198,7 +22202,7 @@ function routed(local) {
22198
22202
  }
22199
22203
  var messageHandlers = {
22200
22204
  ping: (client) => sendTo(client, { type: "pong", pid: process.pid }),
22201
- "subscribe-logs": (client, m) => m.clients.subscribeLogs(client),
22205
+ "subscribe-logs": (client, m, d) => m.clients.subscribeLogs(client, d.replay !== false),
22202
22206
  hello: (client) => sendTo(client, buildHello()),
22203
22207
  create: creator(
22204
22208
  true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.326.0",
3
+ "version": "0.326.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {