axios+telemetry cleanup

This commit is contained in:
2026-04-02 15:19:11 +03:00
parent a3cbca1e11
commit 7e1eac8002
100 changed files with 3048 additions and 4491 deletions

View File

@@ -14,6 +14,7 @@ import {
import { tmpdir } from 'os'
import { extname, join } from 'path'
import type { Command } from '../commands.js'
import { VERSION } from '../constants/product.js'
import { queryWithModel } from '../services/api/claude.js'
import {
AGENT_TOOL_NAME,
@@ -2682,7 +2683,7 @@ export function buildExportData(
facets: Map<string, SessionFacets>,
remoteStats?: { hosts: RemoteHostInfo[]; totalCopied: number },
): InsightsExport {
const version = typeof MACRO !== 'undefined' ? MACRO.VERSION : 'unknown'
const version = VERSION
const remote_hosts_collected = remoteStats?.hosts
.filter(h => h.sessionCount > 0)