@bungeegum-senpai/session-board 0.1.1 → 0.1.3

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/dist/cli.js CHANGED
@@ -40,7 +40,9 @@ async function init(useDefaults) {
40
40
  const ask = async (question, fallback) => (await rl.question(question + (fallback ? " [" + fallback + "]" : "") + ": ")).trim() || fallback;
41
41
  answers.title = await ask("Name of your board", answers.title || DEFAULTS.title);
42
42
  answers.name = await ask("Your name, shown to a session with each message", answers.name);
43
- answers.project = await ask("Show one project only? Give part of its folder name, or leave empty for all", answers.project);
43
+ // An empty answer must clear the project, so this question has no fallback.
44
+ const now = answers.project ? " (now: " + answers.project + ")" : "";
45
+ answers.project = await ask("Show one project only? Give part of its folder name, or leave empty for all" + now, "");
44
46
  startRelay = !/^n/i.test(await ask("Open a Claude session for the relay now? (y/n)", "y"));
45
47
  rl.close();
46
48
  }
@@ -95,10 +97,12 @@ async function main(argv) {
95
97
  }
96
98
  return 0;
97
99
  }
100
+ // The process ends by itself when the work is done. A forced exit can cut the output
101
+ // when it goes to a pipe, and the relay reads its messages from that output.
98
102
  main(process.argv.slice(2)).then((code) => {
99
103
  if (code >= 0)
100
- process.exit(code);
104
+ process.exitCode = code;
101
105
  }).catch((err) => {
102
106
  console.error(err.message);
103
- process.exit(1);
107
+ process.exitCode = 1;
104
108
  });
package/dist/server.js CHANGED
@@ -152,7 +152,7 @@ export function serve() {
152
152
  console.log("The board already runs. Open http://127.0.0.1:" + config.port);
153
153
  else
154
154
  console.error(err.message);
155
- process.exit(err.code === "EADDRINUSE" ? 0 : 1);
155
+ process.exitCode = err.code === "EADDRINUSE" ? 0 : 1;
156
156
  });
157
157
  server.listen(config.port, "127.0.0.1", () => {
158
158
  console.log(config.title + ": http://127.0.0.1:" + config.port + " (project: " + (config.project || "all") + ")");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bungeegum-senpai/session-board",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "One local page for your Claude Code desktop sessions: who waits for you, who works, and a chat for each. Pixel-game look.",
5
5
  "license": "MIT",
6
6
  "author": "brend0nc",