@winding-labs/zest 0.1.0 → 0.2.0

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
@@ -1,18 +1,18 @@
1
1
  # Zest CLI
2
2
 
3
- Measure your AI coding sessions with [Zest](https://meetzest.com). One command installs the Zest CLI, signs you in, and collects new Claude Code and Codex sessions in the background:
3
+ Measure your AI coding sessions with [Zest](https://meetzest.com). One command installs the Zest plugin of each AI coding tool you pick (Claude Code, Codex, Grok Build, Hermes, opencode, Freebuff):
4
4
 
5
5
  ```sh
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 collector starts with each Claude Code and Codex session and stops after the last one closes; `zest start` keeps it running until `zest stop`.
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.
10
10
 
11
11
  - `zest status` — sign-in, collector and per-tool state
12
12
  - `zest update` — update now (the CLI also updates itself; set `ZEST_NO_AUTO_UPDATE=1` to turn that off)
13
13
  - `zest pause` / `zest resume` — stop or restart uploads
14
14
  - `npx @winding-labs/zest --uninstall` — stop collecting and remove the hooks, shims and the binary
15
15
 
16
- If a tool already has the Zest plugin, the installer uploads what the plugin still holds and turns it off, so sessions are never collected twice. Only sessions started after setup are collected.
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.
17
17
 
18
18
  Binaries for each release are attached to this repository's [releases](https://github.com/Winding-Labs/zest-cli/releases).
package/bin/zest.js CHANGED
@@ -195,8 +195,8 @@ var addToUserPath = (dir, first = false) => editUserPath(dir, true, first);
195
195
 
196
196
  // src/bootstrap.ts
197
197
  var REPO = "Winding-Labs/zest-cli";
198
- var VERSION = "0.1.0";
199
- var ASSETS = JSON.parse('{"darwin-arm64":{"file":"zest-darwin-arm64.gz","sha256":"d1634c3406263b227821b55cb03331022dbf8ec45c45346126134f0a173be084"},"darwin-x64":{"file":"zest-darwin-x64.gz","sha256":"885d97f23f61b60c79feeda449a541e77ee24ece3d2faf5f2aafea943d8826ca"},"linux-arm64":{"file":"zest-linux-arm64.gz","sha256":"64cb6eeafd7e97565588e1759a49fa23dcc2a1adbb7871b2b8c484d547165797"},"linux-x64":{"file":"zest-linux-x64.gz","sha256":"6be401efabb3913a6e4e4867eaa3754cbe56e7ef800ebe162b8f2215626dbe8c"},"win-x64":{"file":"zest-win-x64.exe.zip","sha256":"9c62d478114cbb56ffe2eac1978d34093bb447d92715459e3ebd1b8ddfb12c6b"}}');
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"}}');
200
200
  function linkOnPath(target) {
201
201
  const dir = join3(homedir2(), ".local", "bin");
202
202
  const link = join3(dir, "zest");
@@ -253,7 +253,8 @@ function removeOldExecutables(dir) {
253
253
  }
254
254
  async function main() {
255
255
  const stable = join3(homedir2(), ".zest", "bin", windows ? "zest.exe" : "zest");
256
- const args = ["install", ...process.argv.slice(2)];
256
+ const given = process.argv.slice(2);
257
+ const args = ["install", ...given[0] === "install" ? given.slice(1) : given];
257
258
  if (args.includes("--uninstall")) {
258
259
  if (existsSync2(stable))
259
260
  return spawnSync3(stable, args, { stdio: "inherit" }).status ?? 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@winding-labs/zest",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Measure your AI coding sessions with Zest",
5
5
  "type": "module",
6
6
  "bin": {