getaimeter 0.11.2 → 0.11.3

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/package.json +1 -1
  2. package/watcher.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "getaimeter",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "description": "Track AI coding costs across Claude, Cursor, Codex, Copilot, and Gemini. MCP server, billing blocks, optimization recommendations.",
5
5
  "bin": {
6
6
  "aimeter": "cli.js",
package/watcher.js CHANGED
@@ -207,6 +207,11 @@ function getConversationMeta(filePath) {
207
207
  projectPath = obj.payload.cwd;
208
208
  break;
209
209
  }
210
+ // Copilot: session.start stores cwd at data.context.cwd
211
+ if (obj.type === 'session.start' && obj.data?.context?.cwd) {
212
+ projectPath = obj.data.context.cwd;
213
+ break;
214
+ }
210
215
  } catch {}
211
216
  }
212
217
  } catch {}