@camstack/system 1.2.21 → 1.2.22
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.
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.d.ts +26 -13
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1289 -1028
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1289 -1028
- package/dist/builtins/backup-orchestrator/schedule-store.d.ts +33 -0
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +1 -1
- package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +5 -3
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +5 -3
- package/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +6 -0
- package/dist/builtins/system-config/system-config.addon.js +1 -1
- package/dist/builtins/system-config/system-config.addon.mjs +1 -1
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{dist-DmQ6thmF.mjs → dist-C9_XdXl5.mjs} +100 -4
- package/dist/{dist-OQ1yU92D.js → dist-j49ewCPY.js} +100 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -2
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-j49ewCPY.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as BaseAddon, it as errMsg, jt as EventCategory, p as addonPagesCapability } from "../../dist-
|
|
1
|
+
import { at as BaseAddon, it as errMsg, jt as EventCategory, p as addonPagesCapability } from "../../dist-C9_XdXl5.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-j49ewCPY.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as BaseAddon, h as addonWidgetsCapability, it as errMsg, jt as EventCategory } from "../../dist-
|
|
1
|
+
import { at as BaseAddon, h as addonWidgetsCapability, it as errMsg, jt as EventCategory } from "../../dist-C9_XdXl5.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-j49ewCPY.js");
|
|
7
7
|
//#region src/builtins/alerts/alerts.addon.ts
|
|
8
8
|
var CATEGORY_MAPPINGS = {
|
|
9
9
|
"addon.crashed": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as BaseAddon, g as alertsCapability, it as errMsg, jt as EventCategory, n as AlertSchema, vt as createEvent } from "../../dist-
|
|
1
|
+
import { at as BaseAddon, g as alertsCapability, it as errMsg, jt as EventCategory, n as AlertSchema, vt as createEvent } from "../../dist-C9_XdXl5.mjs";
|
|
2
2
|
//#region src/builtins/alerts/alerts.addon.ts
|
|
3
3
|
var CATEGORY_MAPPINGS = {
|
|
4
4
|
"addon.crashed": {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProviderRegistration, BaseAddon } from '@camstack/types';
|
|
2
2
|
export declare class BackupOrchestratorAddon extends BaseAddon<Record<string, never>> {
|
|
3
3
|
private systemBackup;
|
|
4
4
|
private policies;
|
|
5
|
+
private schedules;
|
|
5
6
|
private dataDir;
|
|
6
7
|
/**
|
|
7
8
|
* Transient build buffer for archive fan-out. The tar is built here
|
|
@@ -131,21 +132,33 @@ export declare class BackupOrchestratorAddon extends BaseAddon<Record<string, ne
|
|
|
131
132
|
private startScheduleTimer;
|
|
132
133
|
private stopScheduleTimer;
|
|
133
134
|
/**
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
* any global setting.
|
|
135
|
+
* Schedule-driven backup scheduling. Walks every enabled backup
|
|
136
|
+
* SCHEDULE (the N:M entry), computes the next due time after
|
|
137
|
+
* `lastRunAt` (or the orchestrator's first-tick baseline if never
|
|
138
|
+
* run), and fires a SINGLE archive fanned out to ALL of the
|
|
139
|
+
* schedule's `locationIds` when due — with the schedule's per-entry
|
|
140
|
+
* retention applied to each. Each schedule keeps its own cadence.
|
|
141
141
|
*
|
|
142
|
-
* Errors per
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
142
|
+
* Errors per schedule are isolated; one misconfigured cron doesn't
|
|
143
|
+
* block the others. The schedule's `lastRunAt` is updated BEFORE the
|
|
144
|
+
* trigger to dedupe (the tick runs every SCHEDULE_TICK_MS — without
|
|
145
|
+
* the up-front update a long-running upload could overlap with the
|
|
146
|
+
* next tick's same-due check).
|
|
147
147
|
*/
|
|
148
148
|
private onScheduleTick;
|
|
149
|
+
private listSchedules;
|
|
150
|
+
private upsertSchedule;
|
|
151
|
+
private deleteSchedule;
|
|
152
|
+
/**
|
|
153
|
+
* One-shot migration: pre-schedule installs carried the cron on each
|
|
154
|
+
* `BackupDestinationPolicy`. When the schedule table is empty but
|
|
155
|
+
* policies with crons exist, mint one schedule per cron'd destination
|
|
156
|
+
* so existing scheduled backups keep firing after the redesign. The
|
|
157
|
+
* legacy per-location cron is left intact but the scheduler no longer
|
|
158
|
+
* reads it, so no double-fire.
|
|
159
|
+
*/
|
|
160
|
+
private migrateLegacyCronToSchedules;
|
|
161
|
+
private resolveScheduleService;
|
|
149
162
|
private resolvePolicyService;
|
|
150
163
|
/**
|
|
151
164
|
* Narrow `ctx.api.storage` to the subset the manifest helpers need.
|