@yousali/codetok 0.2.1-canary.20260219012136 → 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.
package/README.md CHANGED
@@ -5,7 +5,7 @@ Install the `codetok` CLI through npm.
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- npm install -g codetok
8
+ npm install -g @yousali/codetok
9
9
  ```
10
10
 
11
11
  ## How it works
package/bin/codetok.js CHANGED
@@ -8,7 +8,9 @@ const binName = process.platform === 'win32' ? 'codetok.exe' : 'codetok';
8
8
  const binPath = path.join(__dirname, '..', 'vendor', binName);
9
9
 
10
10
  if (!fs.existsSync(binPath)) {
11
- console.error('[codetok] native binary is missing. Reinstall with `npm install -g codetok`.');
11
+ console.error(
12
+ '[codetok] native binary is missing. Reinstall with `npm install -g @yousali/codetok`.'
13
+ );
12
14
  process.exit(1);
13
15
  }
14
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yousali/codetok",
3
- "version": "0.2.1-canary.20260219012136",
3
+ "version": "0.2.2",
4
4
  "description": "Track and aggregate token usage across AI coding CLI tools",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/miss-you/codetok#readme",
@@ -7,7 +7,7 @@ import path from 'node:path';
7
7
  import { fileURLToPath } from 'node:url';
8
8
 
9
9
  import extract from 'extract-zip';
10
- import tar from 'tar';
10
+ import { x as extractTar } from 'tar';
11
11
 
12
12
  const __filename = fileURLToPath(import.meta.url);
13
13
  const __dirname = path.dirname(__filename);
@@ -62,7 +62,7 @@ async function main() {
62
62
  await verifySHA256(checksumsPath, archivePath, archiveName);
63
63
 
64
64
  if (ext === 'tar.gz') {
65
- await tar.x({
65
+ await extractTar({
66
66
  cwd: extractDir,
67
67
  file: archivePath,
68
68
  strict: true,