@camstack/server 1.2.760 → 1.2.761
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/CHANGELOG.md +11 -2
- package/dist/agent/main.js +1 -0
- package/dist/api/trpc/generated-cap-mounts.js +1 -0
- package/dist/api/trpc/generated-cap-routers.js +27 -12
- package/dist/core/addon/addon-registry.service.js +1 -0
- package/package.json +16 -8
- package/system/dist/addon-runner.js +1 -0
- package/system/dist/addon-runner.mjs +1 -0
- package/system/dist/{agent-https-Bafgj4ni.mjs → agent-https-D1B_fvIx.mjs} +1 -1
- package/system/dist/{agent-https-DXDFMq90.js → agent-https-YFeT_9qF.js} +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +7 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +7 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +3 -3
- package/system/dist/builtins/keychain/index.mjs +3 -3
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2 -2
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
- package/system/dist/builtins/storage-orchestrator/location-store.d.ts +8 -0
- package/system/dist/builtins/storage-orchestrator/migrations/index.d.ts +10 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +22 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +260 -19
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +260 -19
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +54 -21
- package/system/dist/builtins/storage-orchestrator/storage-writability-monitor.d.ts +36 -0
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-WttiBMdu.mjs → capture-engine-C6myWpTr.mjs} +1 -1
- package/system/dist/{capture-engine-CInzGJAh.js → capture-engine-JrgzDAeI.js} +1 -1
- package/system/dist/{composition-sources-DQHH_g-A.js → composition-sources-53ryTB8m.js} +1 -1
- package/system/dist/{composition-sources-A4LM38lT.mjs → composition-sources-BJleLIBr.mjs} +1 -1
- package/system/dist/{constants-BAG_5cF6.mjs → constants-DW74hDp7.mjs} +1 -1
- package/system/dist/{constants-hAbcGGDs.js → constants-nY2QXQK5.js} +1 -1
- package/system/dist/{device-ca-CCIaKs70.mjs → device-ca-BUTX2AaQ.mjs} +1 -1
- package/system/dist/{device-ca-lLGjDsFP.js → device-ca-CzGQ4dJn.js} +1 -1
- package/system/dist/{dist-BIJD_nvZ.mjs → dist-Cu6VwGZZ.mjs} +50 -11
- package/system/dist/{dist-CiwLP3-C.js → dist-Cyida7ne.js} +50 -11
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-CLlDILdC.js → hub-mdns-ciao-CXAFrkV0.js} +2 -2
- package/system/dist/{hub-mdns-ciao-CXsUIWw_.mjs → hub-mdns-ciao-scMSbV7j.mjs} +2 -2
- package/system/dist/index.js +36 -7
- package/system/dist/index.mjs +36 -7
- package/system/dist/kernel/addon-loader.d.ts +13 -1
- package/system/dist/kernel/moleculer/addon-context-factory.d.ts +3 -1
- package/system/dist/{restore-archive-Dx9r-ndj.mjs → restore-archive-jWL53_V-.mjs} +1 -1
- package/system/dist/{restore-archive-CN1BA_o6.js → restore-archive-pn_Y6UG7.js} +1 -1
- package/system/dist/{wal-maintenance-B7wMSexc.mjs → wal-maintenance-By_dPC7l.mjs} +0 -0
- package/system/dist/{wal-maintenance-CecPWej8.js → wal-maintenance-CODI9DuS.js} +0 -0
- package/system/package.json +1 -1
|
@@ -1171,7 +1171,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1171
1171
|
return DeviceRole;
|
|
1172
1172
|
}({});
|
|
1173
1173
|
//#endregion
|
|
1174
|
-
//#region ../types/dist/sleep-
|
|
1174
|
+
//#region ../types/dist/sleep-BkzQdpzF.mjs
|
|
1175
1175
|
/**
|
|
1176
1176
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
1177
1177
|
* window to float samples (D455).
|
|
@@ -4567,7 +4567,7 @@ function defineRecordKinds(specs) {
|
|
|
4567
4567
|
retention: spec.retention,
|
|
4568
4568
|
deviceRemoval: spec.deviceRemoval,
|
|
4569
4569
|
maxDataBytes: spec.maxDataBytes,
|
|
4570
|
-
secretPaths: [...secretPaths],
|
|
4570
|
+
secretPaths: [...new Set([...secretPaths, ...spec.retiredSecretPaths ?? []])],
|
|
4571
4571
|
secretArrayKeys: spec.secretArrayKeys === void 0 ? void 0 : { ...spec.secretArrayKeys },
|
|
4572
4572
|
transactFamily: spec.transactFamily,
|
|
4573
4573
|
entry: spec.entry === void 0 ? void 0 : {
|
|
@@ -4615,6 +4615,7 @@ function defineEntryKind(name, spec) {
|
|
|
4615
4615
|
...spec.database === void 0 ? {} : { database: spec.database },
|
|
4616
4616
|
...spec.indexes === void 0 ? {} : { indexes: spec.indexes },
|
|
4617
4617
|
...spec.secretArrayKeys === void 0 ? {} : { secretArrayKeys: spec.secretArrayKeys },
|
|
4618
|
+
...spec.retiredSecretPaths === void 0 ? {} : { retiredSecretPaths: spec.retiredSecretPaths },
|
|
4618
4619
|
entry: {
|
|
4619
4620
|
title: spec.title,
|
|
4620
4621
|
...spec.nameField === void 0 ? {} : { nameField: spec.nameField }
|
|
@@ -11097,7 +11098,7 @@ var RecordIntegrationInstances = class {
|
|
|
11097
11098
|
const shown = secretViewsOf(this.records.owner, this.kind.name, record.id, this.kind.declaration, record.data);
|
|
11098
11099
|
const rawName = record.data[this.nameField];
|
|
11099
11100
|
const kind = this.hooks.kindOf?.(record.data);
|
|
11100
|
-
const health = this.hooks.health?.(record.data);
|
|
11101
|
+
const health = this.hooks.health?.(record.data, record.id);
|
|
11101
11102
|
return {
|
|
11102
11103
|
id: record.id,
|
|
11103
11104
|
name: typeof rawName === "string" ? rawName : record.id,
|
|
@@ -56335,7 +56336,27 @@ var deviceCredentialsCapability = {
|
|
|
56335
56336
|
* exposes only the COMMON surface: link state, supported device
|
|
56336
56337
|
* kinds (so the UI can filter the device picker), and per-device
|
|
56337
56338
|
* expose/unexpose.
|
|
56338
|
-
|
|
56339
|
+
*
|
|
56340
|
+
* INSTANCES. One export addon can serve several independent targets (a
|
|
56341
|
+
* HomeKit bridge, a Home Assistant broker). `listInstances` names them.
|
|
56342
|
+
* `instanceId` on a READ is optional: absent = the whole addon (linked if any
|
|
56343
|
+
* enabled instance is, `exposedDeviceCount` = distinct devices, `setup` = the
|
|
56344
|
+
* default instance's); present = that instance; an id the provider does not
|
|
56345
|
+
* serve is refused with `ExportInstanceUnknownError` (`export-instance-unknown`),
|
|
56346
|
+
* never answered empty. `instanceId` on a WRITE is REQUIRED: a membership
|
|
56347
|
+
* change always names the target it changes. A single-instance provider
|
|
56348
|
+
* accepts an absent id on a read or its own id, and refuses any other.
|
|
56349
|
+
*/
|
|
56350
|
+
/** Which instance of an export addon a call addresses. Absent on a read = the whole addon. */
|
|
56351
|
+
var InstanceIdSchema$1 = z.string().min(1);
|
|
56352
|
+
var InstancePinSchema = z.object({ instanceId: InstanceIdSchema$1.optional() });
|
|
56353
|
+
/** One independent export target of an addon. */
|
|
56354
|
+
var ExportInstanceSchema = z.object({
|
|
56355
|
+
instanceId: InstanceIdSchema$1,
|
|
56356
|
+
name: z.string(),
|
|
56357
|
+
enabled: z.boolean(),
|
|
56358
|
+
kind: z.string().optional()
|
|
56359
|
+
});
|
|
56339
56360
|
var LinkStateSchema = z.enum([
|
|
56340
56361
|
"unlinked",
|
|
56341
56362
|
"linked",
|
|
@@ -56386,10 +56407,14 @@ var ExposedDeviceSchema = z.object({
|
|
|
56386
56407
|
capabilities: z.array(z.string()).optional()
|
|
56387
56408
|
});
|
|
56388
56409
|
var ExposeInputSchema = z.object({
|
|
56410
|
+
instanceId: InstanceIdSchema$1,
|
|
56389
56411
|
deviceId: z.string(),
|
|
56390
56412
|
capabilities: z.array(z.string()).optional()
|
|
56391
56413
|
});
|
|
56392
|
-
var UnexposeInputSchema = z.object({
|
|
56414
|
+
var UnexposeInputSchema = z.object({
|
|
56415
|
+
instanceId: InstanceIdSchema$1,
|
|
56416
|
+
deviceId: z.string()
|
|
56417
|
+
});
|
|
56393
56418
|
/**
|
|
56394
56419
|
* What an exporter may expose besides devices (D968). An action and a
|
|
56395
56420
|
* notification target are LIST ENTRIES, never devices (D954): they enter an
|
|
@@ -56418,8 +56443,14 @@ var ExposedEntitySchema = z.object({
|
|
|
56418
56443
|
entity: ExportEntityRefSchema,
|
|
56419
56444
|
exposedAs: z.string().optional()
|
|
56420
56445
|
});
|
|
56421
|
-
var ExposeEntityInputSchema = z.object({
|
|
56422
|
-
|
|
56446
|
+
var ExposeEntityInputSchema = z.object({
|
|
56447
|
+
instanceId: InstanceIdSchema$1,
|
|
56448
|
+
entity: ExportEntityRefSchema
|
|
56449
|
+
});
|
|
56450
|
+
var UnexposeEntityInputSchema = z.object({
|
|
56451
|
+
instanceId: InstanceIdSchema$1,
|
|
56452
|
+
entity: ExportEntityRefSchema
|
|
56453
|
+
});
|
|
56423
56454
|
var deviceExportCapability = {
|
|
56424
56455
|
name: "device-export",
|
|
56425
56456
|
scope: "system",
|
|
@@ -56439,9 +56470,10 @@ var deviceExportCapability = {
|
|
|
56439
56470
|
*/
|
|
56440
56471
|
exposesDeviceSettings: true,
|
|
56441
56472
|
methods: {
|
|
56442
|
-
getStatus: method(
|
|
56443
|
-
|
|
56444
|
-
|
|
56473
|
+
getStatus: method(InstancePinSchema, DeviceExportStatusSchema),
|
|
56474
|
+
listInstances: method(z.void(), z.array(ExportInstanceSchema)),
|
|
56475
|
+
listSupportedDeviceKinds: method(InstancePinSchema, z.array(DeviceKindSchema)),
|
|
56476
|
+
listExposedDevices: method(InstancePinSchema, z.array(ExposedDeviceSchema)),
|
|
56445
56477
|
exposeDevice: method(ExposeInputSchema, z.void(), {
|
|
56446
56478
|
kind: "mutation",
|
|
56447
56479
|
auth: "admin"
|
|
@@ -56451,7 +56483,7 @@ var deviceExportCapability = {
|
|
|
56451
56483
|
auth: "admin"
|
|
56452
56484
|
}),
|
|
56453
56485
|
listSupportedEntityKinds: optionalMethod(z.void(), z.array(ExportEntityKindSchema)),
|
|
56454
|
-
listExposedEntities: optionalMethod(
|
|
56486
|
+
listExposedEntities: optionalMethod(InstancePinSchema, z.array(ExposedEntitySchema)),
|
|
56455
56487
|
exposeEntity: optionalMethod(ExposeEntityInputSchema, z.void(), {
|
|
56456
56488
|
kind: "mutation",
|
|
56457
56489
|
auth: "admin"
|
|
@@ -97035,6 +97067,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
97035
97067
|
access: "view",
|
|
97036
97068
|
role: "admin"
|
|
97037
97069
|
},
|
|
97070
|
+
"deviceExport.listInstances": {
|
|
97071
|
+
capName: "device-export",
|
|
97072
|
+
capScope: "system",
|
|
97073
|
+
addonId: null,
|
|
97074
|
+
access: "view",
|
|
97075
|
+
role: "admin"
|
|
97076
|
+
},
|
|
97038
97077
|
"deviceExport.listSupportedDeviceKinds": {
|
|
97039
97078
|
capName: "device-export",
|
|
97040
97079
|
capScope: "system",
|
|
@@ -1171,7 +1171,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1171
1171
|
return DeviceRole;
|
|
1172
1172
|
}({});
|
|
1173
1173
|
//#endregion
|
|
1174
|
-
//#region ../types/dist/sleep-
|
|
1174
|
+
//#region ../types/dist/sleep-BkzQdpzF.mjs
|
|
1175
1175
|
/**
|
|
1176
1176
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
1177
1177
|
* window to float samples (D455).
|
|
@@ -4567,7 +4567,7 @@ function defineRecordKinds(specs) {
|
|
|
4567
4567
|
retention: spec.retention,
|
|
4568
4568
|
deviceRemoval: spec.deviceRemoval,
|
|
4569
4569
|
maxDataBytes: spec.maxDataBytes,
|
|
4570
|
-
secretPaths: [...secretPaths],
|
|
4570
|
+
secretPaths: [...new Set([...secretPaths, ...spec.retiredSecretPaths ?? []])],
|
|
4571
4571
|
secretArrayKeys: spec.secretArrayKeys === void 0 ? void 0 : { ...spec.secretArrayKeys },
|
|
4572
4572
|
transactFamily: spec.transactFamily,
|
|
4573
4573
|
entry: spec.entry === void 0 ? void 0 : {
|
|
@@ -4615,6 +4615,7 @@ function defineEntryKind(name, spec) {
|
|
|
4615
4615
|
...spec.database === void 0 ? {} : { database: spec.database },
|
|
4616
4616
|
...spec.indexes === void 0 ? {} : { indexes: spec.indexes },
|
|
4617
4617
|
...spec.secretArrayKeys === void 0 ? {} : { secretArrayKeys: spec.secretArrayKeys },
|
|
4618
|
+
...spec.retiredSecretPaths === void 0 ? {} : { retiredSecretPaths: spec.retiredSecretPaths },
|
|
4618
4619
|
entry: {
|
|
4619
4620
|
title: spec.title,
|
|
4620
4621
|
...spec.nameField === void 0 ? {} : { nameField: spec.nameField }
|
|
@@ -11097,7 +11098,7 @@ var RecordIntegrationInstances = class {
|
|
|
11097
11098
|
const shown = secretViewsOf(this.records.owner, this.kind.name, record.id, this.kind.declaration, record.data);
|
|
11098
11099
|
const rawName = record.data[this.nameField];
|
|
11099
11100
|
const kind = this.hooks.kindOf?.(record.data);
|
|
11100
|
-
const health = this.hooks.health?.(record.data);
|
|
11101
|
+
const health = this.hooks.health?.(record.data, record.id);
|
|
11101
11102
|
return {
|
|
11102
11103
|
id: record.id,
|
|
11103
11104
|
name: typeof rawName === "string" ? rawName : record.id,
|
|
@@ -56335,7 +56336,27 @@ var deviceCredentialsCapability = {
|
|
|
56335
56336
|
* exposes only the COMMON surface: link state, supported device
|
|
56336
56337
|
* kinds (so the UI can filter the device picker), and per-device
|
|
56337
56338
|
* expose/unexpose.
|
|
56338
|
-
|
|
56339
|
+
*
|
|
56340
|
+
* INSTANCES. One export addon can serve several independent targets (a
|
|
56341
|
+
* HomeKit bridge, a Home Assistant broker). `listInstances` names them.
|
|
56342
|
+
* `instanceId` on a READ is optional: absent = the whole addon (linked if any
|
|
56343
|
+
* enabled instance is, `exposedDeviceCount` = distinct devices, `setup` = the
|
|
56344
|
+
* default instance's); present = that instance; an id the provider does not
|
|
56345
|
+
* serve is refused with `ExportInstanceUnknownError` (`export-instance-unknown`),
|
|
56346
|
+
* never answered empty. `instanceId` on a WRITE is REQUIRED: a membership
|
|
56347
|
+
* change always names the target it changes. A single-instance provider
|
|
56348
|
+
* accepts an absent id on a read or its own id, and refuses any other.
|
|
56349
|
+
*/
|
|
56350
|
+
/** Which instance of an export addon a call addresses. Absent on a read = the whole addon. */
|
|
56351
|
+
var InstanceIdSchema$1 = zod.z.string().min(1);
|
|
56352
|
+
var InstancePinSchema = zod.z.object({ instanceId: InstanceIdSchema$1.optional() });
|
|
56353
|
+
/** One independent export target of an addon. */
|
|
56354
|
+
var ExportInstanceSchema = zod.z.object({
|
|
56355
|
+
instanceId: InstanceIdSchema$1,
|
|
56356
|
+
name: zod.z.string(),
|
|
56357
|
+
enabled: zod.z.boolean(),
|
|
56358
|
+
kind: zod.z.string().optional()
|
|
56359
|
+
});
|
|
56339
56360
|
var LinkStateSchema = zod.z.enum([
|
|
56340
56361
|
"unlinked",
|
|
56341
56362
|
"linked",
|
|
@@ -56386,10 +56407,14 @@ var ExposedDeviceSchema = zod.z.object({
|
|
|
56386
56407
|
capabilities: zod.z.array(zod.z.string()).optional()
|
|
56387
56408
|
});
|
|
56388
56409
|
var ExposeInputSchema = zod.z.object({
|
|
56410
|
+
instanceId: InstanceIdSchema$1,
|
|
56389
56411
|
deviceId: zod.z.string(),
|
|
56390
56412
|
capabilities: zod.z.array(zod.z.string()).optional()
|
|
56391
56413
|
});
|
|
56392
|
-
var UnexposeInputSchema = zod.z.object({
|
|
56414
|
+
var UnexposeInputSchema = zod.z.object({
|
|
56415
|
+
instanceId: InstanceIdSchema$1,
|
|
56416
|
+
deviceId: zod.z.string()
|
|
56417
|
+
});
|
|
56393
56418
|
/**
|
|
56394
56419
|
* What an exporter may expose besides devices (D968). An action and a
|
|
56395
56420
|
* notification target are LIST ENTRIES, never devices (D954): they enter an
|
|
@@ -56418,8 +56443,14 @@ var ExposedEntitySchema = zod.z.object({
|
|
|
56418
56443
|
entity: ExportEntityRefSchema,
|
|
56419
56444
|
exposedAs: zod.z.string().optional()
|
|
56420
56445
|
});
|
|
56421
|
-
var ExposeEntityInputSchema = zod.z.object({
|
|
56422
|
-
|
|
56446
|
+
var ExposeEntityInputSchema = zod.z.object({
|
|
56447
|
+
instanceId: InstanceIdSchema$1,
|
|
56448
|
+
entity: ExportEntityRefSchema
|
|
56449
|
+
});
|
|
56450
|
+
var UnexposeEntityInputSchema = zod.z.object({
|
|
56451
|
+
instanceId: InstanceIdSchema$1,
|
|
56452
|
+
entity: ExportEntityRefSchema
|
|
56453
|
+
});
|
|
56423
56454
|
var deviceExportCapability = {
|
|
56424
56455
|
name: "device-export",
|
|
56425
56456
|
scope: "system",
|
|
@@ -56439,9 +56470,10 @@ var deviceExportCapability = {
|
|
|
56439
56470
|
*/
|
|
56440
56471
|
exposesDeviceSettings: true,
|
|
56441
56472
|
methods: {
|
|
56442
|
-
getStatus: method(
|
|
56443
|
-
|
|
56444
|
-
|
|
56473
|
+
getStatus: method(InstancePinSchema, DeviceExportStatusSchema),
|
|
56474
|
+
listInstances: method(zod.z.void(), zod.z.array(ExportInstanceSchema)),
|
|
56475
|
+
listSupportedDeviceKinds: method(InstancePinSchema, zod.z.array(DeviceKindSchema)),
|
|
56476
|
+
listExposedDevices: method(InstancePinSchema, zod.z.array(ExposedDeviceSchema)),
|
|
56445
56477
|
exposeDevice: method(ExposeInputSchema, zod.z.void(), {
|
|
56446
56478
|
kind: "mutation",
|
|
56447
56479
|
auth: "admin"
|
|
@@ -56451,7 +56483,7 @@ var deviceExportCapability = {
|
|
|
56451
56483
|
auth: "admin"
|
|
56452
56484
|
}),
|
|
56453
56485
|
listSupportedEntityKinds: optionalMethod(zod.z.void(), zod.z.array(ExportEntityKindSchema)),
|
|
56454
|
-
listExposedEntities: optionalMethod(
|
|
56486
|
+
listExposedEntities: optionalMethod(InstancePinSchema, zod.z.array(ExposedEntitySchema)),
|
|
56455
56487
|
exposeEntity: optionalMethod(ExposeEntityInputSchema, zod.z.void(), {
|
|
56456
56488
|
kind: "mutation",
|
|
56457
56489
|
auth: "admin"
|
|
@@ -97035,6 +97067,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
97035
97067
|
access: "view",
|
|
97036
97068
|
role: "admin"
|
|
97037
97069
|
},
|
|
97070
|
+
"deviceExport.listInstances": {
|
|
97071
|
+
capName: "device-export",
|
|
97072
|
+
capScope: "system",
|
|
97073
|
+
addonId: null,
|
|
97074
|
+
access: "view",
|
|
97075
|
+
role: "admin"
|
|
97076
|
+
},
|
|
97038
97077
|
"deviceExport.listSupportedDeviceKinds": {
|
|
97039
97078
|
capName: "device-export",
|
|
97040
97079
|
capScope: "system",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
2
|
+
const require_wal_maintenance = require("./wal-maintenance-CODI9DuS.js");
|
|
3
3
|
let node_worker_threads = require("node:worker_threads");
|
|
4
4
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-
|
|
1
|
+
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-By_dPC7l.mjs";
|
|
2
2
|
import { parentPort, threadId, workerData } from "node:worker_threads";
|
|
3
3
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
4
4
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-Cyida7ne.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
|
-
const require_agent_https = require("./agent-https-
|
|
4
|
+
const require_agent_https = require("./agent-https-YFeT_9qF.js");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
6
|
let _camstack_types_node = require("@camstack/types/node");
|
|
7
7
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { ac as userError } from "./dist-
|
|
2
|
+
import { ac as userError } from "./dist-Cu6VwGZZ.mjs";
|
|
3
3
|
import { f as X509Certificate$1 } from "./x509.es-BRiJgOvu.mjs";
|
|
4
|
-
import { D as reasonRequiresNewCa, E as evaluateExistingCert, F as readNameConstraints, N as permitsIdentity, _ as issueLeaf, b as collectCertIdentity, g as generateCa, j as isConstrainedCa, v as loadCa, y as localCaCommonName } from "./agent-https-
|
|
4
|
+
import { D as reasonRequiresNewCa, E as evaluateExistingCert, F as readNameConstraints, N as permitsIdentity, _ as issueLeaf, b as collectCertIdentity, g as generateCa, j as isConstrainedCa, v as loadCa, y as localCaCommonName } from "./agent-https-D1B_fvIx.mjs";
|
|
5
5
|
import { X509Certificate, createPrivateKey } from "node:crypto";
|
|
6
6
|
import { writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
7
7
|
import { mkdir, writeFile } from "node:fs/promises";
|
package/system/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("./dist-
|
|
4
|
-
const require_device_ca = require("./device-ca-
|
|
3
|
+
const require_dist = require("./dist-Cyida7ne.js");
|
|
4
|
+
const require_device_ca = require("./device-ca-CzGQ4dJn.js");
|
|
5
5
|
const require_read_all_rows$1 = require("./read-all-rows-CVoO1ONM.js");
|
|
6
6
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
7
7
|
require("./builtins/alerts/index.js");
|
|
@@ -26,21 +26,21 @@ const require_builtins_loki_logging_index = require("./builtins/loki-logging/ind
|
|
|
26
26
|
const require_builtins_native_metrics_native_metrics_addon = require("./builtins/native-metrics/native-metrics.addon.js");
|
|
27
27
|
const require_builtins_device_history_device_history_addon = require("./builtins/device-history/device-history.addon.js");
|
|
28
28
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./builtins/sqlite-storage/filesystem-storage.addon.js");
|
|
29
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
29
|
+
const require_wal_maintenance = require("./wal-maintenance-CODI9DuS.js");
|
|
30
30
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
|
|
31
31
|
const require_builtins_sqlite_storage_index = require("./builtins/sqlite-storage/index.js");
|
|
32
32
|
const require_builtins_storage_orchestrator_storage_orchestrator_addon = require("./builtins/storage-orchestrator/storage-orchestrator.addon.js");
|
|
33
33
|
require("./builtins/storage-orchestrator/index.js");
|
|
34
|
-
const require_agent_https = require("./agent-https-
|
|
35
|
-
const require_constants = require("./constants-
|
|
34
|
+
const require_agent_https = require("./agent-https-YFeT_9qF.js");
|
|
35
|
+
const require_constants = require("./constants-nY2QXQK5.js");
|
|
36
36
|
const require_builtins_system_config_system_config_addon = require("./builtins/system-config/system-config.addon.js");
|
|
37
37
|
require("./builtins/system-config/index.js");
|
|
38
38
|
const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
|
|
39
39
|
const require_custom_action_registry = require("./custom-action-registry-JuMHGKEc.js");
|
|
40
|
-
const require_hub_mdns_ciao = require("./hub-mdns-ciao-
|
|
40
|
+
const require_hub_mdns_ciao = require("./hub-mdns-ciao-CXAFrkV0.js");
|
|
41
41
|
const require_platform_key_source = require("./platform-key-source-Di7HrlGR.js");
|
|
42
42
|
const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
|
|
43
|
-
const require_restore_archive = require("./restore-archive-
|
|
43
|
+
const require_restore_archive = require("./restore-archive-pn_Y6UG7.js");
|
|
44
44
|
const require_coral_accelerators = require("./coral-accelerators-BSVsBVzt.js");
|
|
45
45
|
let zod = require("zod");
|
|
46
46
|
let node_crypto = require("node:crypto");
|
|
@@ -6937,6 +6937,7 @@ var AddonLoader = class {
|
|
|
6937
6937
|
packageName,
|
|
6938
6938
|
addonDir,
|
|
6939
6939
|
addonId: declaration.id,
|
|
6940
|
+
declaration,
|
|
6940
6941
|
error,
|
|
6941
6942
|
timestamp: Date.now()
|
|
6942
6943
|
});
|
|
@@ -7026,6 +7027,33 @@ var AddonLoader = class {
|
|
|
7026
7027
|
listStorageLocationDeclarations() {
|
|
7027
7028
|
return extractStorageLocationDeclarations(this.addons.values());
|
|
7028
7029
|
}
|
|
7030
|
+
/**
|
|
7031
|
+
* Every addon that declares storage locations, loaded or not. A failed load
|
|
7032
|
+
* keeps the declarations its manifest carried; a package that could not be
|
|
7033
|
+
* read at all is listed with `addonId: null` and no declarations (unknown).
|
|
7034
|
+
*/
|
|
7035
|
+
listStorageLocationDeclarers() {
|
|
7036
|
+
const result = [];
|
|
7037
|
+
for (const [addonId, addon] of this.addons) {
|
|
7038
|
+
const declared = addon.declaration.storageLocations;
|
|
7039
|
+
if (declared !== void 0 && declared.length > 0) result.push({
|
|
7040
|
+
addonId,
|
|
7041
|
+
packageName: addon.packageName,
|
|
7042
|
+
loaded: true,
|
|
7043
|
+
declarations: [...declared]
|
|
7044
|
+
});
|
|
7045
|
+
}
|
|
7046
|
+
for (const failure of this.loadFailures) {
|
|
7047
|
+
if (failure.addonId !== void 0 && this.addons.has(failure.addonId)) continue;
|
|
7048
|
+
result.push({
|
|
7049
|
+
addonId: failure.addonId ?? null,
|
|
7050
|
+
packageName: failure.packageName,
|
|
7051
|
+
loaded: false,
|
|
7052
|
+
declarations: failure.declaration?.storageLocations ?? []
|
|
7053
|
+
});
|
|
7054
|
+
}
|
|
7055
|
+
return result;
|
|
7056
|
+
}
|
|
7029
7057
|
/** Check if an addon is registered */
|
|
7030
7058
|
hasAddon(addonId) {
|
|
7031
7059
|
return this.addons.has(addonId);
|
|
@@ -24280,6 +24308,7 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
|
24280
24308
|
storage: options?.storageProvider ?? void 0,
|
|
24281
24309
|
capabilityRegistry: options?.capabilityRegistry,
|
|
24282
24310
|
...options?.listStorageLocationDeclarations ? { listStorageLocationDeclarations: options.listStorageLocationDeclarations } : {},
|
|
24311
|
+
...options?.listStorageLocationDeclarers ? { listStorageLocationDeclarers: options.listStorageLocationDeclarers } : {},
|
|
24283
24312
|
readinessRegistry: readinessRegistry(),
|
|
24284
24313
|
deviceRegistry: workerDeviceRegistry,
|
|
24285
24314
|
devices: createBrokerDeviceManagerApi({
|
package/system/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __require } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { Ci as objectInputDeclaresRequiredDeviceId, Do as DATAPLANE_SECRET_HEADER$1, E as CatalogFileSchema, Ea as supportedRuntimes, Eo as CALLER_STAMPED_CAPABILITIES$1, Go as ReadinessRegistry, Gr as isVoidInput, Gs as parseJsonUnknown, Ii as procedureAuthKey, Ko as ReadinessTimeoutError, Kr as kebabToCamel$1, Lr as isArrayOutputSchema, Nr as interpolate, Oo as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Os as isDebugChannelName, Qi as resolveMethodAuth, Rr as isCollectionArrayMethod, Si as objectInputDeclaresAddonId, Ss as expandCapMethods, Ur as isObjectInput, Wo as RUNTIME_DEFAULTS, Ws as parseJsonObject, Ys as resolveCapMount, Zr as lifecycleJobSchema, Zs as scopeKey, a as AGENT_MDNS_TXT_KEYS, ac as userError, ai as looseSchema, as as asNumber, bs as emitDownForOwnedCaps, bt as METHOD_ACCESS_MAP, ca as scopesAllowDeviceCap, dc as EventCategory$1, i as AGENT_MDNS_SERVICE_TYPE, ii as logLevelAtMost, is as asJsonObject$1, ko as DEVICE_STATUS_METHOD, ln as addonSettingsCapability, ms as createEvent$1, o as ALL_CAPABILITY_DEFINITIONS, oc as withoutCallerStamp, os as asString$1, qs as readinessKey, sa as scopesAllowAddon, uc as errMsg$1, va as splitTranslationRef, vn as bareAddonId, vt as LOG_LEVEL_RANK, ws as getDebugInterest, y as CATALOG_LANGS, yr as extractNestedAddonId, ys as defineRecordKinds } from "./dist-
|
|
3
|
-
import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-
|
|
2
|
+
import { Ci as objectInputDeclaresRequiredDeviceId, Do as DATAPLANE_SECRET_HEADER$1, E as CatalogFileSchema, Ea as supportedRuntimes, Eo as CALLER_STAMPED_CAPABILITIES$1, Go as ReadinessRegistry, Gr as isVoidInput, Gs as parseJsonUnknown, Ii as procedureAuthKey, Ko as ReadinessTimeoutError, Kr as kebabToCamel$1, Lr as isArrayOutputSchema, Nr as interpolate, Oo as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Os as isDebugChannelName, Qi as resolveMethodAuth, Rr as isCollectionArrayMethod, Si as objectInputDeclaresAddonId, Ss as expandCapMethods, Ur as isObjectInput, Wo as RUNTIME_DEFAULTS, Ws as parseJsonObject, Ys as resolveCapMount, Zr as lifecycleJobSchema, Zs as scopeKey, a as AGENT_MDNS_TXT_KEYS, ac as userError, ai as looseSchema, as as asNumber, bs as emitDownForOwnedCaps, bt as METHOD_ACCESS_MAP, ca as scopesAllowDeviceCap, dc as EventCategory$1, i as AGENT_MDNS_SERVICE_TYPE, ii as logLevelAtMost, is as asJsonObject$1, ko as DEVICE_STATUS_METHOD, ln as addonSettingsCapability, ms as createEvent$1, o as ALL_CAPABILITY_DEFINITIONS, oc as withoutCallerStamp, os as asString$1, qs as readinessKey, sa as scopesAllowAddon, uc as errMsg$1, va as splitTranslationRef, vn as bareAddonId, vt as LOG_LEVEL_RANK, ws as getDebugInterest, y as CATALOG_LANGS, yr as extractNestedAddonId, ys as defineRecordKinds } from "./dist-Cu6VwGZZ.mjs";
|
|
3
|
+
import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-BUTX2AaQ.mjs";
|
|
4
4
|
import { t as require_read_all_rows } from "./read-all-rows-TaPqdWNF.mjs";
|
|
5
5
|
import { AlertCenterAddon } from "./builtins/alerts/alerts.addon.mjs";
|
|
6
6
|
import "./builtins/alerts/index.mjs";
|
|
@@ -25,21 +25,21 @@ import { LokiDestination, LokiLoggingAddon } from "./builtins/loki-logging/index
|
|
|
25
25
|
import NativeMetricsAddon, { a as NativeMetricsProvider, i as parseProcStatusRss, n as nodeProcReader, r as parseProcStat } from "./builtins/native-metrics/native-metrics.addon.mjs";
|
|
26
26
|
import { DeviceHistoryAddon } from "./builtins/device-history/device-history.addon.mjs";
|
|
27
27
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./builtins/sqlite-storage/filesystem-storage.addon.mjs";
|
|
28
|
-
import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-
|
|
28
|
+
import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-By_dPC7l.mjs";
|
|
29
29
|
import { SqliteSettingsAddon } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
|
|
30
30
|
import { ConfigStore, DeviceStore } from "./builtins/sqlite-storage/index.mjs";
|
|
31
31
|
import { StorageOrchestratorAddon, a as stripForwardedCaller, i as createHubCapForwardService, l as STORAGE_DRAIN_STATE_LEGACY, n as HUB_CAP_FWD_ACTION, o as buildStorageLocationRegistry, r as HUB_CAP_FWD_SERVICE, t as StorageOrchestratorService, u as storageOrchestratorRecordKinds } from "./builtins/storage-orchestrator/storage-orchestrator.addon.mjs";
|
|
32
32
|
import "./builtins/storage-orchestrator/index.mjs";
|
|
33
|
-
import { A as buildNameConstraintSet, B as setProcessAgentHttpsNames, C as LEAF_RENEWAL_WINDOW_DAYS, E as evaluateExistingCert, F as readNameConstraints, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, N as permitsIdentity, O as PERMITTED_DNS_SUFFIXES, P as permitsName, R as AgentHttpsNames, S as CA_VALIDITY_DAYS, T as SERVER_AUTH_OID, a as collectAgentNames, b as collectCertIdentity, c as installAgentHttps, d as issueAgentHttpsLeaf, f as loadAgentHttps, h as CA_COMMON_NAME, i as certificateNames, j as isConstrainedCa, k as PERMITTED_IP_RANGES, l as isContainerBridgeAddress, m as pinnedHttpsCaFingerprint, n as acceptAgentSans, o as createAgentHttpsRequest, p as pemDigest, r as agentHttpsPaths, s as describeHttpsLeaf, t as AgentHttpsInstallError, u as isPrivateAddress, w as MAX_LEAF_VALIDITY_DAYS, x as systemHostFacts, y as localCaCommonName, z as getProcessAgentHttpsNames } from "./agent-https-
|
|
34
|
-
import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "./constants-
|
|
33
|
+
import { A as buildNameConstraintSet, B as setProcessAgentHttpsNames, C as LEAF_RENEWAL_WINDOW_DAYS, E as evaluateExistingCert, F as readNameConstraints, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, N as permitsIdentity, O as PERMITTED_DNS_SUFFIXES, P as permitsName, R as AgentHttpsNames, S as CA_VALIDITY_DAYS, T as SERVER_AUTH_OID, a as collectAgentNames, b as collectCertIdentity, c as installAgentHttps, d as issueAgentHttpsLeaf, f as loadAgentHttps, h as CA_COMMON_NAME, i as certificateNames, j as isConstrainedCa, k as PERMITTED_IP_RANGES, l as isContainerBridgeAddress, m as pinnedHttpsCaFingerprint, n as acceptAgentSans, o as createAgentHttpsRequest, p as pemDigest, r as agentHttpsPaths, s as describeHttpsLeaf, t as AgentHttpsInstallError, u as isPrivateAddress, w as MAX_LEAF_VALIDITY_DAYS, x as systemHostFacts, y as localCaCommonName, z as getProcessAgentHttpsNames } from "./agent-https-D1B_fvIx.mjs";
|
|
34
|
+
import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "./constants-DW74hDp7.mjs";
|
|
35
35
|
import { $ as caFingerprintCompact, A as getProcessNodeMeshTransport, B as MESH_NODE_CERTIFICATES_COLLECTION, C as MESH_TLS_PORT_HELLO_FIELD, Ct as readOriginSetting, D as setProcessMeshTlsEnabler, Dt as readCidrSetting, E as ServiceBroker, Et as parseCidrList, F as renewMeshCertificate, G as getProcessMeshCertificateRegistry, H as MeshCertificateRegistry, I as revokeMeshCertificate, J as processMeshCrl, K as setProcessMeshCertificateRegistry, L as getProcessMeshTlsListenerState, M as isProcessVerifiedMeshPeer, N as onProcessNodeRegistered, O as dropProcessPeer, P as setProcessMeshPeerTransportLookup, Q as caFingerprint, R as openMeshTlsWhenRevocationsLoaded, S as verifyMembershipAnswer, St as parseOriginList, SystemConfigAddon, T as Errors, Tt as normalizeIp, U as RENEWAL_ABANDONED, V as MESH_NODE_CERTIFICATES_COLUMNS, W as describeMeshLeaf, X as getProcessMeshCaState, Y as MeshCaKeeper, Z as requireProcessMeshCa, _ as signPairingProof, _t as verifyAgentUiUnlockTicket, a as hubHostFromMeshAddress, at as issueMeshLeafForNode, b as MembershipResponder, bt as isInsecureOrigin, c as PAIRING_MAX_SESSIONS, ct as AGENT_DASHBOARD_ORIGINS_FIELD, d as PAIRING_PROTOCOL, dt as AGENT_UI_UNLOCK_USE, et as createMeshCsrPem, f as PAIRING_TTL_MS, ft as AGENT_UI_UNLOCK_VERSION, g as keyFingerprintShort, gt as parseAgentDashboardOrigins, h as describeCsr, ht as mintAgentUiUnlockTicket, i as AgentPairing, it as isValidAgentNodeId, j as getProcessPeerLeaf, k as emitProcessNodeRegistered, l as PAIRING_PATHS, lt as AGENT_UI_UNLOCK_TTL_MS, m as computePairingSas, mt as isAllowedAgentDashboardReturnTo, n as HubPairing, nt as generateMeshCa, o as PAIRING_CODE_DIGITS, ot as issueMeshLeafFromCsr, p as computePairingCommitment, pt as UnlockTicketJtiStore, q as MeshCrl, r as PairingHttpError, rt as generateMeshKeyPair, s as PAIRING_MAX_CODE_ATTEMPTS, st as loadMeshCa, tt as exportMeshPrivateKeyPem, u as PAIRING_PIN_DIGITS, ut as AGENT_UI_UNLOCK_TYP, v as verifyPairingProof, vt as InvalidCorsOriginError, w as TlsTcpTransporter, wt as createCidrMatcher, x as signMembershipProof, xt as normalizeOrigin, y as MEMBERSHIP_PATHS, yt as OPAQUE_ORIGIN, z as setProcessMeshTlsListenerState } from "./builtins/system-config/system-config.addon.mjs";
|
|
36
36
|
import "./builtins/system-config/index.mjs";
|
|
37
37
|
import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
|
|
38
38
|
import { C as isModelDownloaded, E as setHuggingFaceReachabilityObserver, T as revisionWeightUrl, _ as downloadFile, a as startEventLoopStallMonitor, b as fetchJson, c as createAuthenticatedFileServer, d as resolveFilePath, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, u as parseTokenizedUrl, v as downloadModel, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-oHl1xltx.mjs";
|
|
39
|
-
import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-
|
|
39
|
+
import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-scMSbV7j.mjs";
|
|
40
40
|
import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
|
|
41
41
|
import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
|
|
42
|
-
import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-
|
|
42
|
+
import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-jWL53_V-.mjs";
|
|
43
43
|
import { r as nodeCoralFs, t as classifyCoralAccelerator } from "./coral-accelerators-DBlgWB8k.mjs";
|
|
44
44
|
import { z } from "zod";
|
|
45
45
|
import * as crypto$1 from "node:crypto";
|
|
@@ -6934,6 +6934,7 @@ var AddonLoader = class {
|
|
|
6934
6934
|
packageName,
|
|
6935
6935
|
addonDir,
|
|
6936
6936
|
addonId: declaration.id,
|
|
6937
|
+
declaration,
|
|
6937
6938
|
error,
|
|
6938
6939
|
timestamp: Date.now()
|
|
6939
6940
|
});
|
|
@@ -7023,6 +7024,33 @@ var AddonLoader = class {
|
|
|
7023
7024
|
listStorageLocationDeclarations() {
|
|
7024
7025
|
return extractStorageLocationDeclarations(this.addons.values());
|
|
7025
7026
|
}
|
|
7027
|
+
/**
|
|
7028
|
+
* Every addon that declares storage locations, loaded or not. A failed load
|
|
7029
|
+
* keeps the declarations its manifest carried; a package that could not be
|
|
7030
|
+
* read at all is listed with `addonId: null` and no declarations (unknown).
|
|
7031
|
+
*/
|
|
7032
|
+
listStorageLocationDeclarers() {
|
|
7033
|
+
const result = [];
|
|
7034
|
+
for (const [addonId, addon] of this.addons) {
|
|
7035
|
+
const declared = addon.declaration.storageLocations;
|
|
7036
|
+
if (declared !== void 0 && declared.length > 0) result.push({
|
|
7037
|
+
addonId,
|
|
7038
|
+
packageName: addon.packageName,
|
|
7039
|
+
loaded: true,
|
|
7040
|
+
declarations: [...declared]
|
|
7041
|
+
});
|
|
7042
|
+
}
|
|
7043
|
+
for (const failure of this.loadFailures) {
|
|
7044
|
+
if (failure.addonId !== void 0 && this.addons.has(failure.addonId)) continue;
|
|
7045
|
+
result.push({
|
|
7046
|
+
addonId: failure.addonId ?? null,
|
|
7047
|
+
packageName: failure.packageName,
|
|
7048
|
+
loaded: false,
|
|
7049
|
+
declarations: failure.declaration?.storageLocations ?? []
|
|
7050
|
+
});
|
|
7051
|
+
}
|
|
7052
|
+
return result;
|
|
7053
|
+
}
|
|
7026
7054
|
/** Check if an addon is registered */
|
|
7027
7055
|
hasAddon(addonId) {
|
|
7028
7056
|
return this.addons.has(addonId);
|
|
@@ -24277,6 +24305,7 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
|
24277
24305
|
storage: options?.storageProvider ?? void 0,
|
|
24278
24306
|
capabilityRegistry: options?.capabilityRegistry,
|
|
24279
24307
|
...options?.listStorageLocationDeclarations ? { listStorageLocationDeclarations: options.listStorageLocationDeclarations } : {},
|
|
24308
|
+
...options?.listStorageLocationDeclarers ? { listStorageLocationDeclarers: options.listStorageLocationDeclarers } : {},
|
|
24280
24309
|
readinessRegistry: readinessRegistry(),
|
|
24281
24310
|
deviceRegistry: workerDeviceRegistry,
|
|
24282
24311
|
devices: createBrokerDeviceManagerApi({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AddonDeclaration, ICamstackAddon, IScopedLogger, StorageLocationDeclaration } from "@camstack/types";
|
|
1
|
+
import type { AddonDeclaration, ICamstackAddon, IScopedLogger, StorageLocationDeclaration, StorageLocationDeclarer } from "@camstack/types";
|
|
2
2
|
/**
|
|
3
3
|
* Cache-bust key for an addon entry module: the `?v=` query that makes each
|
|
4
4
|
* on-disk REVISION of `entryPath` a distinct ESM module URL. Returns null when
|
|
@@ -75,6 +75,12 @@ export interface AddonLoadFailure {
|
|
|
75
75
|
readonly packageName: string;
|
|
76
76
|
readonly addonDir: string;
|
|
77
77
|
readonly addonId?: string;
|
|
78
|
+
/**
|
|
79
|
+
* The manifest declaration of the addon that failed (declaration-level
|
|
80
|
+
* failures only). The kernel read it before the import threw, so what the
|
|
81
|
+
* addon DECLARES stays known even though it is not running.
|
|
82
|
+
*/
|
|
83
|
+
readonly declaration?: AddonDeclaration;
|
|
78
84
|
readonly error: Error;
|
|
79
85
|
readonly timestamp: number;
|
|
80
86
|
}
|
|
@@ -133,6 +139,12 @@ export declare class AddonLoader {
|
|
|
133
139
|
* instances.
|
|
134
140
|
*/
|
|
135
141
|
listStorageLocationDeclarations(): StorageLocationDeclaration[][];
|
|
142
|
+
/**
|
|
143
|
+
* Every addon that declares storage locations, loaded or not. A failed load
|
|
144
|
+
* keeps the declarations its manifest carried; a package that could not be
|
|
145
|
+
* read at all is listed with `addonId: null` and no declarations (unknown).
|
|
146
|
+
*/
|
|
147
|
+
listStorageLocationDeclarers(): StorageLocationDeclarer[];
|
|
136
148
|
/** Check if an addon is registered */
|
|
137
149
|
hasAddon(addonId: string): boolean;
|
|
138
150
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ServiceBroker } from "moleculer";
|
|
2
|
-
import type { InternalAddonContext, AddonDeclaration, IStorageProvider, IScopedLogger, IClusterBroker, StorageLocationDeclaration } from "@camstack/types";
|
|
2
|
+
import type { InternalAddonContext, AddonDeclaration, IStorageProvider, IScopedLogger, IClusterBroker, StorageLocationDeclaration, StorageLocationDeclarer } from "@camstack/types";
|
|
3
3
|
import { DeviceRegistry } from "../device-registry.js";
|
|
4
4
|
import type { CapabilityRegistry } from "../capability-registry.js";
|
|
5
5
|
import type { CapCallInput } from "../transport/index.js";
|
|
@@ -78,6 +78,8 @@ interface AddonContextOptions {
|
|
|
78
78
|
* "No default storage location configured for type addons-data".
|
|
79
79
|
*/
|
|
80
80
|
readonly listStorageLocationDeclarations?: () => StorageLocationDeclaration[][];
|
|
81
|
+
/** Declarers loaded or not — what the orchestrator's prune consults (D49, D315). */
|
|
82
|
+
readonly listStorageLocationDeclarers?: () => StorageLocationDeclarer[];
|
|
81
83
|
}
|
|
82
84
|
/**
|
|
83
85
|
* Broker-mode entry point — UNCHANGED public signature. The hub
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as DataStoreDatabaseSchema, M as DATABASE_SNAPSHOT_SUFFIX, ys as defineRecordKinds } from "./dist-
|
|
1
|
+
import { G as DataStoreDatabaseSchema, M as DATABASE_SNAPSHOT_SUFFIX, ys as defineRecordKinds } from "./dist-Cu6VwGZZ.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { createCipheriv, createDecipheriv, createHash, createPrivateKey, createPublicKey, diffieHellman, generateKeyPairSync, hkdfSync, randomBytes } from "node:crypto";
|
|
4
4
|
import { Buffer as Buffer$1 } from "buffer";
|
|
Binary file
|
|
Binary file
|