@moxxy/plugin-usage-stats 0.41.3 → 0.42.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moxxy/plugin-usage-stats",
3
- "version": "0.41.3",
3
+ "version": "0.42.0",
4
4
  "description": "Records cross-session token usage. On session close it folds this run's provider_response events by provider/model and merges the delta into ~/.moxxy/usage.json (a forward-going aggregate surfaced in the /usage panel and reset by /usage clear).",
5
5
  "keywords": [
6
6
  "moxxy",
@@ -43,13 +43,13 @@
43
43
  }
44
44
  },
45
45
  "dependencies": {
46
- "@moxxy/core": "0.41.3",
47
- "@moxxy/sdk": "0.41.3"
46
+ "@moxxy/sdk": "0.42.0",
47
+ "@moxxy/core": "0.42.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@types/node": "^22.10.0",
50
+ "@types/node": "^22.20.5",
51
51
  "typescript": "^6.0.3",
52
- "vitest": "^4.1.11",
52
+ "vitest": "^5.0.3",
53
53
  "@moxxy/tsconfig": "0.0.0",
54
54
  "@moxxy/vitest-preset": "0.0.0"
55
55
  },
package/src/index.test.ts CHANGED
@@ -14,6 +14,7 @@ import {
14
14
  } from '@moxxy/sdk';
15
15
  import { loadSkillUsage, loadUsageStats } from '@moxxy/core';
16
16
  import { buildUsageStatsPlugin, summarizeSkillEvents } from './index.js';
17
+ import { removeDir } from '@moxxy/vitest-preset/fs';
17
18
 
18
19
  const sid = asSessionId('s1');
19
20
  const tid = asTurnId('t1');
@@ -160,7 +161,7 @@ beforeEach(async () => {
160
161
  });
161
162
 
162
163
  afterEach(async () => {
163
- await fs.rm(tmpDir, { recursive: true, force: true });
164
+ await removeDir(tmpDir);
164
165
  });
165
166
 
166
167
  describe('usage-stats plugin', () => {