@camstack/server 1.2.791 → 1.2.792

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.
@@ -5,7 +5,7 @@
5
5
  * operator supplies a URL: `url` defaults to empty and `LokiDestination` treats
6
6
  * that as inert. Whether it is used at all is the per-destination
7
7
  * `log-destination` capability toggle — the ONE enable (D777); the old private
8
- * `enabled` setting is retired by `retire-enabled-flag.ts`. The provider is
8
+ * `enabled` setting is retired by a ledger migration (`migrations/retired-enabled-flag.ts`). The provider is
9
9
  * registered either way, so the Logging page can show it and the operator can
10
10
  * turn it on without a restart of anything else.
11
11
  *
@@ -30,7 +30,6 @@ export declare class LokiLoggingAddon extends BaseAddon<LokiAddonConfig> {
30
30
  private destination;
31
31
  private instances;
32
32
  private refreshTimer;
33
- private retirementTimer;
34
33
  private shuttingDown;
35
34
  private declared;
36
35
  /** Instances whose keychain lock was already warned about — once per lock, per instance. */
@@ -58,8 +57,6 @@ export declare class LokiLoggingAddon extends BaseAddon<LokiAddonConfig> {
58
57
  private migrationPorts;
59
58
  /** Probe a Loki instance (`/ready`) with the form's values, falling back to the stored ones. */
60
59
  private probe;
61
- /** One attempt of the D777 carry-over; reschedules itself while deferred. */
62
- private attemptEnabledFlagRetirement;
63
60
  /**
64
61
  * Registration is done: the hub calls this after the providers are registered, so
65
62
  * `listCapabilityProviders` now sees Loki. The registry-toggle migration cannot decide before
@@ -1,12 +1,15 @@
1
1
  import type { AddonMigration } from "@camstack/types";
2
2
  import { type DropMovedSettingsPorts, type LokiMigrationPorts } from "./connection-to-records.js";
3
+ import { type RetiredEnabledFlagPorts } from "./retired-enabled-flag.js";
3
4
  import { type RegistryToggleMigrationPorts } from "./registry-toggle-to-record.js";
5
+ export { RETIRED_ENABLED_KEY, RETIREMENT_MARKER_KEY, type RetiredEnabledFlagPorts } from "./retired-enabled-flag.js";
4
6
  export type { RegistryState, RegistryToggleMigrationPorts } from "./registry-toggle-to-record.js";
5
7
  export type { DropMovedSettingsPorts, LokiMigrationLog, LokiMigrationPorts, LokiRecordState } from "./connection-to-records.js";
6
8
  /** Both bodies read through ONE port object, so the addon binds the catalogue once. */
7
- export type LokiCataloguePorts = LokiMigrationPorts & DropMovedSettingsPorts & RegistryToggleMigrationPorts;
9
+ export type LokiCataloguePorts = LokiMigrationPorts & DropMovedSettingsPorts & RegistryToggleMigrationPorts & RetiredEnabledFlagPorts;
8
10
  export declare const CONNECTION_TO_RECORDS_ID = "loki-logging/2026-11-02-connection-to-records";
9
11
  export declare const REGISTRY_TOGGLE_TO_RECORD_ID = "loki-logging/2026-11-02-registry-toggle-to-record";
12
+ export declare const DROP_RETIRED_ENABLED_ID = "loki-logging/2026-11-07-drop-retired-enabled-flag";
10
13
  /** The `loki-logging` catalogue (D987): offered to the engine when the hub-resident addon initialises. */
11
14
  export declare const ADDON_MIGRATIONS: readonly AddonMigration<LokiCataloguePorts>[];
12
15
  /**
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Loki's private `enabled` setting is gone (D777, D986, D987).
3
+ *
4
+ * The per-destination toggle is the only enable, and the legacy flag has not gated shipping since
5
+ * D777. A stored `enabled: false` therefore describes NOTHING in effect: carrying it over would
6
+ * switch off a destination that has been shipping for months, so this migration disables nothing.
7
+ * It deletes the dead key, and the marker the earlier boot-time carry-over left beside it, in ONE
8
+ * plan the engine applies under a precondition. Absence of the keys is the marker; a rerun finds
9
+ * nothing and writes nothing. A read that fails throws and nothing is written.
10
+ */
11
+ import { type MigrationPlan } from "@camstack/types";
12
+ /** The retired settings key. */
13
+ export declare const RETIRED_ENABLED_KEY = "enabled";
14
+ /** The marker the boot-time carry-over set. Not a schema field. Pre-D777 name kept. */
15
+ export declare const RETIREMENT_MARKER_KEY = "migratedEnabled";
16
+ export interface RetiredEnabledFlagPorts {
17
+ /** The addon's stored settings as written (markers unresolved), unparsed. Throws when unreadable. */
18
+ readRawStored(): Promise<Readonly<Record<string, unknown>>>;
19
+ /** Said once, at the moment the key goes: the operator learns nothing was switched. */
20
+ info(message: string): void;
21
+ }
22
+ export declare function planDropRetiredEnabledFlag(ports: RetiredEnabledFlagPorts): Promise<MigrationPlan>;