@tomagranate/toolui 0.3.0 → 0.3.2

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
@@ -215,6 +215,7 @@ Add to your MCP configuration (e.g., `~/.cursor/mcp.json`):
215
215
  | `stop_process` | Stop a running process |
216
216
  | `restart_process` | Restart a process |
217
217
  | `clear_logs` | Clear logs for a process |
218
+ | `reload_config` | Reload config file and restart all processes |
218
219
 
219
220
  ## Contributing
220
221
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomagranate/toolui",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "A Terminal User Interface (TUI) for running multiple local development servers and tools simultaneously",
5
5
  "type": "module",
6
6
  "bin": {
@@ -12,7 +12,6 @@ const zlib = require("node:zlib");
12
12
 
13
13
  // Configuration
14
14
  const REPO = "tomagranate/toolui";
15
- const R2_CDN = "https://toolui-releases.jetsail.xyz";
16
15
  const GITHUB_RELEASES = `https://github.com/${REPO}/releases`;
17
16
 
18
17
  // Platform mappings
@@ -63,13 +62,6 @@ function step(msg) {
63
62
  console.log(` ${colors.cyan}▸${colors.reset} ${msg}`);
64
63
  }
65
64
 
66
- /**
67
- * Print substep message
68
- */
69
- function substep(msg) {
70
- console.log(` ${colors.dim}${msg}${colors.reset}`);
71
- }
72
-
73
65
  /**
74
66
  * Print success message
75
67
  */
@@ -258,30 +250,14 @@ async function downloadWindowsBinary(url, destPath) {
258
250
  }
259
251
 
260
252
  /**
261
- * Try downloading from multiple URLs with fallback
253
+ * Download binary from URL
262
254
  */
263
- async function downloadWithFallback(urls, destPath, isWindows) {
264
- let lastError;
265
-
266
- for (let i = 0; i < urls.length; i++) {
267
- const url = urls[i];
268
-
269
- try {
270
- if (isWindows) {
271
- await downloadWindowsBinary(url, destPath);
272
- } else {
273
- await downloadBinary(url, destPath);
274
- }
275
- return;
276
- } catch (error) {
277
- lastError = error;
278
- if (i < urls.length - 1) {
279
- substep("Falling back to GitHub releases...");
280
- }
281
- }
255
+ async function downloadFromUrl(url, destPath, isWindows) {
256
+ if (isWindows) {
257
+ await downloadWindowsBinary(url, destPath);
258
+ } else {
259
+ await downloadBinary(url, destPath);
282
260
  }
283
-
284
- throw lastError;
285
261
  }
286
262
 
287
263
  async function main() {
@@ -326,15 +302,11 @@ async function main() {
326
302
  }
327
303
 
328
304
  const archiveExt = platform === "windows" ? "zip" : "tar.gz";
329
-
330
- const urls = [
331
- `${R2_CDN}/v${version}/${binaryName}.${archiveExt}`,
332
- `${GITHUB_RELEASES}/download/v${version}/${binaryName}.${archiveExt}`,
333
- ];
305
+ const url = `${GITHUB_RELEASES}/download/v${version}/${binaryName}.${archiveExt}`;
334
306
 
335
307
  try {
336
308
  step("Downloading binary...");
337
- await downloadWithFallback(urls, destPath, platform === "windows");
309
+ await downloadFromUrl(url, destPath, platform === "windows");
338
310
 
339
311
  step("Extracting...");
340
312
  success(`toolui v${version} ready`);