@bli-cockpit/telemetry-core 0.1.106 → 0.1.108

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.
@@ -39,13 +39,14 @@ export declare function modeDropsImages(mode: ImageHandlingMode): boolean;
39
39
  export declare function modeStoresImages(mode: ImageHandlingMode): boolean;
40
40
  /**
41
41
  * The FLEET DEFAULT and the fallback: the mode a machine uses when Tower has no setting for it and it
42
- * has never heard from Tower. Default is keep (images stay in the transcript, uploaded as on disk).
42
+ * has never heard from Tower. Default is drop (described images become markers and the transcript is
43
+ * slimmed), on fleet-wide since 2026-11-27; a per-machine row can still put one machine back on keep.
43
44
  *
44
45
  * Since BLI-17273 the mode is decided PER MACHINE. The `collector_image_mode:<device_id>` row in
45
46
  * `public.system_settings` (`cockpit settings switches set collector_image_mode:<device_id> describe_and_drop`)
46
47
  * rides the reply to the sync-start receipt, the collector caches the last value it saw, and that
47
- * value overrides this constant for that machine only. Flipping one machine needs a CLI release that
48
- * carries the per-machine path (`gh workflow run release.yml -f tag=latest`); no other file changes.
48
+ * value overrides this constant for that machine only. The dashboard mirrors this constant as
49
+ * `COLLECTOR_IMAGE_MODE_DEFAULT`, which is what a machine with no row is told; change both together.
49
50
  */
50
51
  export declare const IMAGE_HANDLING_MODE: ImageHandlingMode;
51
52
  /**
@@ -29,15 +29,16 @@ export function modeStoresImages(mode) {
29
29
  }
30
30
  /**
31
31
  * The FLEET DEFAULT and the fallback: the mode a machine uses when Tower has no setting for it and it
32
- * has never heard from Tower. Default is keep (images stay in the transcript, uploaded as on disk).
32
+ * has never heard from Tower. Default is drop (described images become markers and the transcript is
33
+ * slimmed), on fleet-wide since 2026-11-27; a per-machine row can still put one machine back on keep.
33
34
  *
34
35
  * Since BLI-17273 the mode is decided PER MACHINE. The `collector_image_mode:<device_id>` row in
35
36
  * `public.system_settings` (`cockpit settings switches set collector_image_mode:<device_id> describe_and_drop`)
36
37
  * rides the reply to the sync-start receipt, the collector caches the last value it saw, and that
37
- * value overrides this constant for that machine only. Flipping one machine needs a CLI release that
38
- * carries the per-machine path (`gh workflow run release.yml -f tag=latest`); no other file changes.
38
+ * value overrides this constant for that machine only. The dashboard mirrors this constant as
39
+ * `COLLECTOR_IMAGE_MODE_DEFAULT`, which is what a machine with no row is told; change both together.
39
40
  */
40
- export const IMAGE_HANDLING_MODE = "describe_and_keep";
41
+ export const IMAGE_HANDLING_MODE = "describe_and_drop";
41
42
  // ---------------------------------------------------------------------------
42
43
  // Limits
43
44
  // ---------------------------------------------------------------------------
@@ -61,7 +61,3 @@ export declare class SourceRefusal extends Error {
61
61
  readonly detail: string;
62
62
  constructor(reason: string, detail: string);
63
63
  }
64
- export interface SourceSpec {
65
- /** `collector`, `dashboard`, `railway`, `railway:<service>`, `-`. */
66
- name: string;
67
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bli-cockpit/telemetry-core",
3
- "version": "0.1.106",
3
+ "version": "0.1.108",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",