@towles/tool 0.0.95 → 0.0.96

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@towles/tool",
3
- "version": "0.0.95",
3
+ "version": "0.0.96",
4
4
  "description": "One off quality of life scripts that I use on a daily basis.",
5
5
  "homepage": "https://github.com/ChrisTowles/towles-tool#readme",
6
6
  "bugs": {
@@ -6,13 +6,13 @@ import consola from "consola";
6
6
  import { colors } from "consola/utils";
7
7
  import { BaseCommand } from "./base.js";
8
8
 
9
- const PLUGIN_DIR = resolve(import.meta.dirname, "../../plugins/tt-agentboard2");
9
+ const PLUGIN_DIR = resolve(import.meta.dirname, "../../plugins/tt-agentboard");
10
10
 
11
11
  // Keybinding defaults
12
12
  const DEFAULT_KEY = "a";
13
13
  const TMUX_BINDINGS = { toggle: "t", focus: "s" } as const;
14
- const RUN_SHELL_LINE = `run-shell '${PLUGIN_DIR}/agentboard2.tmux'`;
15
- const MARKER = "# agentboard2";
14
+ const RUN_SHELL_LINE = `run-shell '${PLUGIN_DIR}/agentboard.tmux'`;
15
+ const MARKER = "# agentboard";
16
16
 
17
17
  function findTmuxConf(): string | null {
18
18
  const candidates = [
@@ -36,20 +36,20 @@ export default class Agentboard2 extends BaseCommand {
36
36
 
37
37
  static override examples = [
38
38
  {
39
- description: "Install agentboard2 into tmux",
40
- command: "<%= config.bin %> agentboard2 setup",
39
+ description: "Install agentboard into tmux",
40
+ command: "<%= config.bin %> agentboard setup",
41
41
  },
42
42
  {
43
43
  description: "Uninstall from tmux",
44
- command: "<%= config.bin %> agentboard2 uninstall",
44
+ command: "<%= config.bin %> agentboard uninstall",
45
45
  },
46
46
  {
47
47
  description: "Launch the server",
48
- command: "<%= config.bin %> agentboard2 server",
48
+ command: "<%= config.bin %> agentboard server",
49
49
  },
50
50
  {
51
51
  description: "Launch the TUI directly",
52
- command: "<%= config.bin %> agentboard2 tui",
52
+ command: "<%= config.bin %> agentboard tui",
53
53
  },
54
54
  ];
55
55
 
@@ -101,7 +101,7 @@ export default class Agentboard2 extends BaseCommand {
101
101
  // Install deps if needed for runtime package
102
102
  const runtimeNodeModules = resolve(PLUGIN_DIR, "packages/runtime/node_modules");
103
103
  if (!existsSync(runtimeNodeModules)) {
104
- consola.info("Installing agentboard2 dependencies...");
104
+ consola.info("Installing agentboard dependencies...");
105
105
  execSync("pnpm install", { cwd: PLUGIN_DIR, stdio: "inherit" });
106
106
  }
107
107
  }
@@ -127,7 +127,7 @@ export default class Agentboard2 extends BaseCommand {
127
127
 
128
128
  // Check if already installed
129
129
  const content = readFileSync(editPath, "utf8");
130
- if (content.includes("agentboard2.tmux")) {
130
+ if (content.includes("agentboard.tmux")) {
131
131
  consola.success("Already installed in tmux.conf");
132
132
  this.reloadTmux();
133
133
  return;
@@ -149,7 +149,7 @@ export default class Agentboard2 extends BaseCommand {
149
149
  }
150
150
 
151
151
  writeFileSync(editPath, newContent);
152
- consola.success(`Added agentboard2 to ${editPath}`);
152
+ consola.success(`Added agentboard to ${editPath}`);
153
153
 
154
154
  this.reloadTmux();
155
155
  this.showKeys();
@@ -170,20 +170,20 @@ export default class Agentboard2 extends BaseCommand {
170
170
  }
171
171
 
172
172
  const content = readFileSync(editPath, "utf8");
173
- if (!content.includes("agentboard2")) {
174
- consola.info("agentboard2 not found in tmux.conf");
173
+ if (!content.includes("agentboard")) {
174
+ consola.info("agentboard not found in tmux.conf");
175
175
  return;
176
176
  }
177
177
 
178
178
  // Remove the marker line and run-shell line
179
179
  const newContent = content
180
180
  .split("\n")
181
- .filter((line) => !line.includes("agentboard2"))
181
+ .filter((line) => !line.includes("agentboard"))
182
182
  .join("\n")
183
183
  .replace(/\n{3,}/g, "\n\n");
184
184
 
185
185
  writeFileSync(editPath, newContent);
186
- consola.success("Removed agentboard2 from tmux.conf");
186
+ consola.success("Removed agentboard from tmux.conf");
187
187
  this.reloadTmux();
188
188
  }
189
189
 
@@ -192,7 +192,7 @@ export default class Agentboard2 extends BaseCommand {
192
192
  this.ensureDeps();
193
193
 
194
194
  const serverEntry = resolve(PLUGIN_DIR, "apps/server/src/main.ts");
195
- consola.info("Starting agentboard2 server (foreground, Ctrl+C to stop)...");
195
+ consola.info("Starting agentboard server (foreground, Ctrl+C to stop)...");
196
196
 
197
197
  execSync(`bun run ${serverEntry}`, {
198
198
  stdio: "inherit",
@@ -221,7 +221,7 @@ export default class Agentboard2 extends BaseCommand {
221
221
  }
222
222
 
223
223
  private showKeys(): void {
224
- // Get tmux prefix and agentboard2 key from tmux
224
+ // Get tmux prefix and agentboard key from tmux
225
225
  let prefix = "C-a";
226
226
  let key = DEFAULT_KEY;
227
227
  try {
@@ -230,7 +230,7 @@ export default class Agentboard2 extends BaseCommand {
230
230
  stdio: ["pipe", "pipe", "pipe"],
231
231
  }).trim();
232
232
  const ab2Key = execSync(
233
- `tmux show-option -gv @agentboard2-key 2>/dev/null || echo ${DEFAULT_KEY}`,
233
+ `tmux show-option -gv @agentboard-key 2>/dev/null || echo ${DEFAULT_KEY}`,
234
234
  {
235
235
  encoding: "utf8",
236
236
  stdio: ["pipe", "pipe", "pipe"],