mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-25 09:31:43 +01:00
Telemetry can count gstack's own use on Capy, opt-in and kept out of public numbers (GST-3311) (#4576)
Agent-driven Capy sessions still send no telemetry. If the owner's `preferences.yaml` holds `telemetry_capy: anonymous`, each skill run sends one anonymous row labelled `source=capy`, or `source=gt` from Garry's own machines. Why: we couldn't see our own gstack use on Capy, and if we had sent it, it would have been counted as real use. Nothing to do yet: nothing changes until the owner adds that line, and the ingest change ships in a separate deploy. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
87a473e5aa
commit
14a84980ee
15 files changed
+250
-19
No files matched your search
@@ -168,6 +168,12 @@ describe('the preferences file', () => {
|
||||
expect(() => readPreferencesFile(f)).toThrow(/sets agent_model twice/);
|
||||
});
|
||||
|
||||
test('the telemetry keys are read by gstack-telemetry-tier, so they pass without a warning', () => {
|
||||
const f = path.join(tmp(), 'preferences.yaml');
|
||||
fs.writeFileSync(f, 'agent_model: opus\ntelemetry_capy: anonymous\ntelemetry_capy_source: gt\n');
|
||||
expect(readPreferencesFile(f)).toEqual({ value: 'opus', warnings: [] });
|
||||
});
|
||||
|
||||
test('CRLF line endings, a byte-order mark and a trailing comment still read the value', () => {
|
||||
const f = path.join(tmp(), 'preferences.yaml');
|
||||
fs.writeFileSync(f, '\ufeff# owner preferences\r\nagent_model: opus # my pick\r\n');
|
||||
|
||||
Reference in new issue
Block a user