@winding-labs/zest 0.2.0 → 0.2.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.
Files changed (3) hide show
  1. package/README.md +13 -5
  2. package/bin/zest.js +7 -4
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -6,13 +6,21 @@ Measure your AI coding sessions with [Zest](https://meetzest.com). One command i
6
6
  npx @winding-labs/zest
7
7
  ```
8
8
 
9
- It works on macOS, Linux and Windows (x64) and needs Node.js 18 or newer for the installer only. The CLI itself is a standalone binary in `~/.zest/bin/zest` (`%USERPROFILE%\.zest\bin\zest.exe` on Windows, added to your user PATH — open a new terminal afterwards), verified against SHA256 checksums shipped in the npm package. The CLI's own collector runs only for a tool moved to it with `zest enable` (an opt-in still in testing): it starts with that tool's sessions and stops after the last one closes.
9
+ In a terminal it runs as a short guided setup: pick your tools (the ones found on your machine are preselected) and it installs their plugins. Skip the questions with:
10
10
 
11
- - `zest status` — sign-in, collector and per-tool state
12
- - `zest update` — update now (the CLI also updates itself; set `ZEST_NO_AUTO_UPDATE=1` to turn that off)
11
+ - `--yes` — install the plugins of the detected tools without asking
12
+ - `--only=claude,codex,grok,hermes,opencode,freebuff` — install only the tools you list
13
+
14
+ It works on macOS, Linux and Windows (x64) and needs Node.js 18 or newer for the installer only. The CLI itself is a standalone binary in `~/.zest/bin/zest` (`%USERPROFILE%\.zest\bin\zest.exe` on Windows, added to your user PATH — open a new terminal afterwards), verified against SHA256 checksums shipped in the npm package.
15
+
16
+ Each plugin signs in once inside its tool; the installer prints the command. Only sessions started after setup are collected.
17
+
18
+ - `zest status` — your Zest plugins per tool: sign-in, sync, last sync and errors; `--watch` keeps it live, `--json` prints it as JSON
19
+ - `zest update` — install the latest release
13
20
  - `zest pause` / `zest resume` — stop or restart uploads
14
- - `npx @winding-labs/zest --uninstall` — stop collecting and remove the hooks, shims and the binary
21
+ - `zest logout` — sign this device out, also on the Zest server; the web app, your plugins and other devices stay signed in
22
+ - `npx @winding-labs/zest --uninstall` — stop collecting, remove the hooks, shims and the binary and sign out; the Zest plugins stay installed (it offers to turn back on any plugin the CLI replaced)
15
23
 
16
- Each plugin signs in once inside its tool; the installer prints the command. `zest enable <tool> --replace-plugin` moves a tool to the CLI instead: it uploads what the plugin still holds and turns it off, so sessions are never collected twice. Only sessions started after setup are collected.
24
+ `zest enable <tool> --replace-plugin` moves a tool from its plugin to the CLI's own collector. That is an invite-only test: without it the command switches nothing. Where it is on, the CLI also updates itself; set `ZEST_NO_AUTO_UPDATE=1` to turn that off.
17
25
 
18
26
  Binaries for each release are attached to this repository's [releases](https://github.com/Winding-Labs/zest-cli/releases).
package/bin/zest.js CHANGED
@@ -34,7 +34,7 @@ import {
34
34
  writeFileSync
35
35
  } from "node:fs";
36
36
  import { homedir } from "node:os";
37
- import { dirname, join, resolve, sep } from "node:path";
37
+ import { dirname, join, resolve, sep, win32 } from "node:path";
38
38
  import { pipeline } from "node:stream/promises";
39
39
  import { createGunzip } from "node:zlib";
40
40
  function getCacheBase(namespace) {
@@ -59,6 +59,9 @@ function getPlatformKey() {
59
59
  function getBinaryName(prefix, platform) {
60
60
  return platform === "win-x64" ? `${prefix}win-x64.exe` : `${prefix}${platform}`;
61
61
  }
62
+ function zipTar(platform = process.platform, systemRoot = process.env.SystemRoot) {
63
+ return platform === "win32" ? win32.join(systemRoot ?? "C:\\Windows", "System32", "tar.exe") : "tar";
64
+ }
62
65
  function extractZipToFile(zipPath, destPath) {
63
66
  const unzip = spawnSync("unzip", ["-p", zipPath], {
64
67
  encoding: "buffer",
@@ -68,7 +71,7 @@ function extractZipToFile(zipPath, destPath) {
68
71
  writeFileSync(destPath, unzip.stdout);
69
72
  return;
70
73
  }
71
- const tar = spawnSync("tar", ["-xOf", zipPath], {
74
+ const tar = spawnSync(zipTar(), ["-xOf", zipPath], {
72
75
  encoding: "buffer",
73
76
  maxBuffer: 256 * 1024 * 1024
74
77
  });
@@ -195,8 +198,8 @@ var addToUserPath = (dir, first = false) => editUserPath(dir, true, first);
195
198
 
196
199
  // src/bootstrap.ts
197
200
  var REPO = "Winding-Labs/zest-cli";
198
- var VERSION = "0.2.0";
199
- var ASSETS = JSON.parse('{"darwin-arm64":{"file":"zest-darwin-arm64.gz","sha256":"297c5aa5381658c4e1b8f4e575efe5843239a67fac25d5eed738b00ba977b2c1"},"darwin-x64":{"file":"zest-darwin-x64.gz","sha256":"4fcddd9336866be0b7ecdb6068650efb81d09324e909ee1e436de3f3821e89a3"},"linux-arm64":{"file":"zest-linux-arm64.gz","sha256":"9f79e07724ab87ae13577a1505ca83f9e15d9e3a7b12116bce4f17f3e46e53e7"},"linux-x64":{"file":"zest-linux-x64.gz","sha256":"d6682c1fd7fc74898a4b4ba8d2f657368a7bf2dc2060b647f882c29013f8dee8"},"win-x64":{"file":"zest-win-x64.exe.zip","sha256":"245e1ec5572cc7dc9380e0b9aa4cd02e29af34955da5baf5d89f1b9a7c73968d"}}');
201
+ var VERSION = "0.2.2";
202
+ var ASSETS = JSON.parse('{"darwin-arm64":{"file":"zest-darwin-arm64.gz","sha256":"f2fd31f5b9efc28a0c06a9f1feea183c054ed0e7791fc80ed6ce6b4efd646d4b"},"darwin-x64":{"file":"zest-darwin-x64.gz","sha256":"01c71113a173af0bc208ce4a7987401d09cd651239cf4b542e7fd847bf453fa9"},"linux-arm64":{"file":"zest-linux-arm64.gz","sha256":"52a05fb5085b611dbb084907e7273f9c4fe1d5db26c187a4228a24f3f1d12bd7"},"linux-x64":{"file":"zest-linux-x64.gz","sha256":"02e9fdb5afeaaac90352f7f7d63d72a84776b5c968f9ba955eb0a00f65059244"},"win-x64":{"file":"zest-win-x64.exe.zip","sha256":"be209a7d3bad63d82125c47f04f730134e75af90bb4ad8275b86c1a788f3a999"}}');
200
203
  function linkOnPath(target) {
201
204
  const dir = join3(homedir2(), ".local", "bin");
202
205
  const link = join3(dir, "zest");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@winding-labs/zest",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Measure your AI coding sessions with Zest",
5
5
  "type": "module",
6
6
  "bin": {