Implementation
@override
Tool get definition => Tool(
name: 'telemetry',
description: 'Glint telemetry control + transparency. ops: status (default), '
'report, ship, dryRun, token_usage, audit_show, audit_verify. '
'report = local usage rollup (per-tool counts, error kinds, latency, '
'transitions) with nothing sent anywhere. Usage stats are recorded '
'locally and sent only if the user sets GLINT_TELEMETRY=on; '
'DO_NOT_TRACK, GLINT_NO_TELEMETRY and GLINT_NO_USAGE always turn '
'sharing off. ship sends nothing unless sharing is on.',
inputSchema: ObjectSchema(
properties: {
'op': Schema.string(
description: 'status (default) | report | ship | dryRun | token_usage | '
'audit_show | audit_verify',
),
'limit': Schema.int(
description: 'For audit_show / token_usage / report: max entries to '
'return (default 20 / 10 / 15).',
),
'sinceId': Schema.int(
description: 'For token_usage / report: only count events with id > '
'sinceId (default 0 = everything recorded).',
),
},
),
);