copilot-tracer 1.0.10 → 1.0.11
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/dist/setup.js +9 -3
- package/package.json +1 -1
package/dist/setup.js
CHANGED
|
@@ -256,9 +256,15 @@ export function patchClaudeSettings(settingsPath, port) {
|
|
|
256
256
|
// ── Detection helpers ─────────────────────────────────────────────────────────
|
|
257
257
|
function detectCopilotCli() {
|
|
258
258
|
try {
|
|
259
|
-
const p = execSync('which copilot', { encoding: 'utf8' }).trim();
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
const p = execSync(isWindows() ? 'where copilot' : 'which copilot', { encoding: 'utf8' }).trim().split('\n')[0];
|
|
260
|
+
let version;
|
|
261
|
+
try {
|
|
262
|
+
version = execSync('copilot --version', { encoding: 'utf8' }).trim().split('\n')[0];
|
|
263
|
+
}
|
|
264
|
+
catch {
|
|
265
|
+
// version lookup is best-effort; presence of the binary is what matters
|
|
266
|
+
}
|
|
267
|
+
return { found: true, path: p, version };
|
|
262
268
|
}
|
|
263
269
|
catch {
|
|
264
270
|
return { found: false };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "copilot-tracer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Real-time tracing and prompt-refinement companion for GitHub Copilot CLI and VS Code Copilot — tracks tokens, AI credits, tool calls, and refined prompts with console and web UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"copilot",
|