acp-extension-claude 0.13.8 → 0.13.9

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 (2) hide show
  1. package/dist/usage.js +3 -3
  2. package/package.json +1 -1
package/dist/usage.js CHANGED
@@ -110,8 +110,8 @@ export async function getUsage(overrides = {}) {
110
110
  const sevenDayResetAt = parseDate(apiResponse.seven_day?.resets_at);
111
111
  const result = {
112
112
  planName,
113
- fiveHour: fiveHour ? fiveHour / 100 : null,
114
- sevenDay: sevenDay ? sevenDay / 100 : null,
113
+ fiveHour: fiveHour !== null ? fiveHour / 100 : null,
114
+ sevenDay: sevenDay !== null ? sevenDay / 100 : null,
115
115
  fiveHourResetAt,
116
116
  sevenDayResetAt,
117
117
  };
@@ -294,7 +294,7 @@ function parseDate(dateStr) {
294
294
  if (isNaN(date.getTime())) {
295
295
  return null;
296
296
  }
297
- return date.getMilliseconds();
297
+ return date.getTime();
298
298
  }
299
299
  function fetchUsageApi(accessToken) {
300
300
  return new Promise((resolve) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acp-extension-claude",
3
- "version": "0.13.8",
3
+ "version": "0.13.9",
4
4
  "description": "Forked ACP-compatible coding agent with improved timeout handling and logging",
5
5
  "main": "dist/lib.js",
6
6
  "types": "dist/lib.d.ts",