@camstack/server 1.2.921 → 1.2.922

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.
Files changed (90) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/api/trpc/generated-cap-routers.js +1843 -1833
  3. package/package.json +14 -10
  4. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  5. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  6. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  7. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  8. package/system/dist/builtins/alerts/alerts.addon.js +1 -1
  9. package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
  10. package/system/dist/builtins/autotrack/index.js +1 -1
  11. package/system/dist/builtins/autotrack/index.mjs +1 -1
  12. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  13. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  14. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  15. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  16. package/system/dist/builtins/camera-grid/index.js +1 -1
  17. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  18. package/system/dist/builtins/composer/composer.addon.js +4 -4
  19. package/system/dist/builtins/composer/composer.addon.mjs +4 -4
  20. package/system/dist/builtins/console-logging/index.js +1 -1
  21. package/system/dist/builtins/console-logging/index.mjs +1 -1
  22. package/system/dist/builtins/core-blocks/core-blocks.addon.js +4 -4
  23. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +4 -4
  24. package/system/dist/builtins/device-history/device-history.addon.js +2 -2
  25. package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
  26. package/system/dist/builtins/device-manager/device-manager.addon.js +3 -3
  27. package/system/dist/builtins/device-manager/device-manager.addon.mjs +3 -3
  28. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  29. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  30. package/system/dist/builtins/keychain/index.js +4 -4
  31. package/system/dist/builtins/keychain/index.mjs +4 -4
  32. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  33. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  34. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  35. package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  36. package/system/dist/builtins/local-network/local-network.addon.js +3 -3
  37. package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
  38. package/system/dist/builtins/loki-logging/index.js +1 -1
  39. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  40. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  41. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  42. package/system/dist/builtins/platform-probe/index.js +1 -1
  43. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  44. package/system/dist/builtins/record-entries/index.js +1 -1
  45. package/system/dist/builtins/record-entries/index.mjs +1 -1
  46. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  47. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  48. package/system/dist/builtins/snapshot/index.js +1 -1
  49. package/system/dist/builtins/snapshot/index.mjs +1 -1
  50. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  51. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  52. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  53. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  54. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
  55. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
  56. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  57. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  58. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  59. package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
  60. package/system/dist/builtins/winston-logging/index.js +1 -1
  61. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  62. package/system/dist/{capture-engine-TdUsuTbA.mjs → capture-engine-BgTJUDGZ.mjs} +1 -1
  63. package/system/dist/{capture-engine-B1soT1Ps.js → capture-engine-BrJrd7NK.js} +1 -1
  64. package/system/dist/{composition-sources-BTM1T_QY.js → composition-sources-5pex0zor.js} +1 -1
  65. package/system/dist/{composition-sources-BzrfJ9EV.mjs → composition-sources-DcylO7sC.mjs} +1 -1
  66. package/system/dist/{constants-sAtTO2DC.mjs → constants-BKGG2usb.mjs} +1 -1
  67. package/system/dist/{constants-DZEiIvtO.js → constants-DSkgpC0i.js} +1 -1
  68. package/system/dist/{device-ca-Bpsv_9zD.js → device-ca-B3cBsh5J.js} +1 -1
  69. package/system/dist/{device-ca-B9d9j1AQ.mjs → device-ca-CcN_j34c.mjs} +1 -1
  70. package/system/dist/{device-row-store-B4mygtF3.js → device-row-store-Dk7ifbgt.js} +1 -1
  71. package/system/dist/{device-row-store-OUq-xOJf.mjs → device-row-store-SolcTRe_.mjs} +1 -1
  72. package/system/dist/{dist-B-nGf0cw.js → dist-ByMqgbCg.js} +190 -12
  73. package/system/dist/{dist-aEgseEmg.mjs → dist-_fOmkvGL.mjs} +190 -12
  74. package/system/dist/file-host-worker.js +1 -1
  75. package/system/dist/file-host-worker.mjs +1 -1
  76. package/system/dist/{hub-identity-DxLcMLXg.mjs → hub-identity-C0N_7llq.mjs} +1 -1
  77. package/system/dist/{hub-identity-DKH4F5ig.js → hub-identity-C91XSJ8N.js} +1 -1
  78. package/system/dist/{hub-mdns-ciao-BeZydc9f.mjs → hub-mdns-ciao-BoJCqA6I.mjs} +2 -2
  79. package/system/dist/{hub-mdns-ciao-CkP1DWxb.js → hub-mdns-ciao-DhSpytH9.js} +2 -2
  80. package/system/dist/index.js +8 -8
  81. package/system/dist/index.mjs +8 -8
  82. package/system/dist/{legacy-integration-rows-door-B4HDGgxv.js → legacy-integration-rows-door-Boz5f4qq.js} +1 -1
  83. package/system/dist/{legacy-integration-rows-door-DdVk69Sm.mjs → legacy-integration-rows-door-Dm-zbWmk.mjs} +1 -1
  84. package/system/dist/{rename-composition-block-CscC9L8w.mjs → rename-composition-block-BUbupDAu.mjs} +1 -1
  85. package/system/dist/{rename-composition-block-FvczGAYq.js → rename-composition-block-D4v-Khq3.js} +1 -1
  86. package/system/dist/{restore-archive-BSv5-bWg.js → restore-archive-Cx4I93jb.js} +1 -1
  87. package/system/dist/{restore-archive-JRkEdn_v.mjs → restore-archive-D7sy-vk9.mjs} +1 -1
  88. package/system/dist/{wal-maintenance-BTiASQ3_.mjs → wal-maintenance-CHfhvqyV.mjs} +0 -0
  89. package/system/dist/{wal-maintenance-DlOdvy-L.js → wal-maintenance-jK9K7Ob8.js} +0 -0
  90. package/system/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import "node:crypto";
3
- //#region ../types/dist/event-category-7P4A3bYA.mjs
3
+ //#region ../types/dist/event-category-BEsBTS72.mjs
4
4
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
5
5
  EventCategory["SystemBoot"] = "system.boot";
6
6
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -447,6 +447,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
447
447
  */
448
448
  EventCategory["StreamBrokerOnRequestStreamSourceRefresh"] = "stream-broker.onRequestStreamSourceRefresh";
449
449
  /**
450
+ * A broker RE-DIALED its source (every dial after the first). A consumer that
451
+ * reads the broker over a transport that does not announce the cut — the
452
+ * recorder's ffmpeg writer — learns here instead of through its idle clock.
453
+ * Telemetry: a dropped event only means the idle clock recovers it later.
454
+ * Payload: `{ deviceId, camStreamId, brokerId, reason }`.
455
+ */
456
+ EventCategory["StreamBrokerOnSourceRestart"] = "stream-broker.onSourceRestart";
457
+ /**
450
458
  * A camera provider changed a device's stream parameters (codec /
451
459
  * resolution / bitrate / a stream added or removed). A LOW-LATENCY NUDGE
452
460
  * for the stream-broker's catalog reconcile: it carries NO authoritative
@@ -1315,7 +1323,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1315
1323
  */
1316
1324
  var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
1317
1325
  //#endregion
1318
- //#region ../types/dist/runtime-capabilities-CK6y0W5U.mjs
1326
+ //#region ../types/dist/runtime-capabilities-CG61dYnO.mjs
1319
1327
  /**
1320
1328
  * The audio chunk plane's byte format, and the ONE expansion from a coded
1321
1329
  * window to float samples (D455).
@@ -6519,6 +6527,15 @@ var CameraStreamSchema = z.object({
6519
6527
  */
6520
6528
  autoEligible: z.boolean().optional(),
6521
6529
  /**
6530
+ * The longest continuous session the SOURCE will keep open, in ms, declared by
6531
+ * the provider that knows it (a hub that cuts every child's session on a
6532
+ * timer). Absent = no limit. The broker re-dials a live source a little
6533
+ * BEFORE this elapses, on its own terms and announced to consumers, so the
6534
+ * source's cut never lands mid-recording. Declare slightly under what was
6535
+ * observed.
6536
+ */
6537
+ maxSessionMs: z.number().int().positive().optional(),
6538
+ /**
6522
6539
  * The profile slot the PUBLISHER says this stream is: `low` for a stream
6523
6540
  * whose only sensible role is the low-bandwidth one, `high` for a main
6524
6541
  * stream. Consulted by the broker's automatic ranking
@@ -24956,7 +24973,7 @@ function e(group, en, it, flags = {}) {
24956
24973
  };
24957
24974
  }
24958
24975
  var N = { noise: true };
24959
- EventCategory.SystemBoot, e("system", "System booted", "Sistema avviato"), EventCategory.SystemAddonsReady, e("system", "Addons ready", "Addon pronti"), EventCategory.SystemRestarting, e("system", "System restarting", "Sistema in riavvio"), EventCategory.SystemRestartCompleted, e("system", "Restart completed", "Riavvio completato"), EventCategory.SystemTlsCertChanged, e("system", "TLS certificate changed", "Certificato TLS cambiato"), EventCategory.UpdateAvailable, e("system", "Update available", "Aggiornamento disponibile"), EventCategory.SystemReadyState, e("system", "Readiness changed", "Stato di prontezza cambiato"), EventCategory.AddonStarted, e("addons", "Addon started", "Addon avviato"), EventCategory.AddonStopped, e("addons", "Addon stopped", "Addon fermato"), EventCategory.AddonRestarted, e("addons", "Addon restarted", "Addon riavviato"), EventCategory.AddonUpdated, e("addons", "Addon updated", "Addon aggiornato"), EventCategory.AddonInstalled, e("addons", "Addon installed", "Addon installato"), EventCategory.AddonUninstalled, e("addons", "Addon uninstalled", "Addon disinstallato"), EventCategory.AddonCrashed, e("addons", "Addon crashed", "Addon in errore fatale"), EventCategory.AddonRunnerFailed, e("addons", "Runner failed for good", "Runner fallito definitivamente"), EventCategory.AddonRunnerRefused, e("addons", "Runner refused", "Runner rifiutato"), EventCategory.ProcessStateChanged, e("addons", "Process state changed", "Stato del processo cambiato"), EventCategory.SystemRunnerCheck, e("system", "Runner check", "Verifica dei runner"), EventCategory.AlertEpisode, e("system", "Alert episode", "Episodio di allarme"), EventCategory.AddonError, e("addons", "Addon error", "Errore di un addon"), EventCategory.AddonPageReady, e("addons", "Addon page ready", "Pagina addon pronta"), EventCategory.AddonWidgetReady, e("addons", "Addon widget ready", "Widget addon pronto"), EventCategory.AddonLoadFailed, e("addons", "Addon failed to load", "Caricamento addon fallito"), EventCategory.KeychainChanged, e("system", "Keychain changed", "Portachiavi modificato"), EventCategory.AddonLoadRecovered, e("addons", "Addon load recovered", "Caricamento addon ripristinato"), EventCategory.AddonUnsupportedVersion, e("addons", "Addon version unsupported", "Versione addon non supportata"), EventCategory.AddonUnsupportedResolved, e("addons", "Unsupported addon resolved", "Addon non supportato risolto"), EventCategory.AddonRetryScheduled, e("addons", "Addon retry scheduled", "Nuovo tentativo addon pianificato"), EventCategory.SystemLivenessFailed, e("system", "Liveness check failed", "Controllo di attività fallito"), EventCategory.SystemLivenessRecovered, e("system", "Liveness recovered", "Controllo di attività ripristinato"), EventCategory.AddonRetryAttempting, e("addons", "Addon retry running", "Nuovo tentativo addon in corso"), EventCategory.DeviceRegistered, e("devices", "Device registered", "Dispositivo registrato"), EventCategory.DeviceUnregistered, e("devices", "Device removed", "Dispositivo rimosso"), EventCategory.DeviceEnabled, e("devices", "Device enabled", "Dispositivo abilitato"), EventCategory.DeviceDisabled, e("devices", "Device disabled", "Dispositivo disabilitato"), EventCategory.DeviceSettingsUpdated, e("devices", "Device settings updated", "Impostazioni dispositivo aggiornate"), EventCategory.DeviceBindingsChanged, e("devices", "Device bindings changed", "Collegamenti dispositivo cambiati"), EventCategory.DeviceMetaChanged, e("devices", "Device details changed", "Dettagli dispositivo cambiati"), EventCategory.DeviceSourceInfoChanged, e("devices", "Device source info changed", "Info sorgente dispositivo cambiate"), EventCategory.DeviceStreamsRegistered, e("streams", "Device streams registered", "Stream del dispositivo registrati"), EventCategory.DeviceProvisioned, e("devices", "Device provisioned", "Dispositivo configurato"), EventCategory.DeviceReady, e("devices", "Device ready", "Dispositivo pronto"), EventCategory.IdentityLinkCreated, e("integrations", "Identity linked", "Identità collegata"), EventCategory.IdentityLinkLost, e("integrations", "Identity link lost", "Collegamento identità perso"), EventCategory.IntegrationEnabled, e("integrations", "Integration enabled", "Integrazione abilitata"), EventCategory.IntegrationDisabled, e("integrations", "Integration disabled", "Integrazione disabilitata"), EventCategory.IntegrationDeleted, e("integrations", "Integration deleted", "Integrazione eliminata"), EventCategory.BrokerStatusChanged, e("integrations", "Broker status changed", "Stato del broker cambiato"), EventCategory.BrokerMessage, e("integrations", "Broker message", "Messaggio del broker", N), EventCategory.ProviderStarted, e("integrations", "Provider started", "Provider avviato"), EventCategory.ProviderStopped, e("integrations", "Provider stopped", "Provider fermato"), EventCategory.ProcessCrashed, e("addons", "Process crashed", "Processo andato in crash"), EventCategory.ProcessRestartScheduled, e("addons", "Process restart scheduled", "Riavvio del processo pianificato"), EventCategory.ProcessRestarted, e("addons", "Process restarted", "Processo riavviato"), EventCategory.StorageLocationsChanged, e("storage", "Storage locations changed", "Posizioni di archiviazione cambiate"), EventCategory.RecordingStarted, e("recording", "Recording started", "Registrazione avviata"), EventCategory.RecordingStopped, e("recording", "Recording stopped", "Registrazione fermata"), EventCategory.RecordingError, e("recording", "Recording error", "Errore di registrazione"), EventCategory.RecordingHealthDegraded, e("recording", "Recording degraded", "Registrazione degradata"), EventCategory.RecordingHealthStalled, e("recording", "Recording stalled", "Registrazione bloccata"), EventCategory.RecordingHealthOk, e("recording", "Recording healthy", "Registrazione regolare"), EventCategory.RecordingStorageCritical, e("recording", "Recording storage critical", "Spazio di registrazione critico"), EventCategory.StorageLocationLow, e("storage", "Storage location low", "Spazio in esaurimento"), EventCategory.StorageLocationCritical, e("storage", "Storage location critical", "Spazio critico"), EventCategory.StorageLocationOk, e("storage", "Storage location recovered", "Spazio tornato regolare"), EventCategory.StorageDrainProgress, e("storage", "Drain progress", "Avanzamento dello svuotamento"), EventCategory.StorageDrainComplete, e("storage", "Drain complete", "Svuotamento completato"), EventCategory.RecordingSegmentWritten, e("recording", "Segment written", "Segmento scritto"), EventCategory.RecordingPolicyFallback, e("recording", "Recording policy fallback", "Politica di registrazione di ripiego"), EventCategory.RecordingRetentionCompleted, e("recording", "Retention completed", "Pulizia completata"), EventCategory.RecordingExportProgress, e("recording", "Export progress", "Avanzamento esportazione"), EventCategory.RecordingExportCompleted, e("recording", "Export completed", "Esportazione completata"), EventCategory.RecordingExportFailed, e("recording", "Export failed", "Esportazione fallita"), EventCategory.DetectionEvent, e("detection", "Detection", "Rilevamento"), EventCategory.SessionTrackNew, e("detection", "Session track started", "Nuova traccia di sessione"), EventCategory.SessionTrackExpired, e("detection", "Session track expired", "Traccia di sessione scaduta"), EventCategory.BenchmarkProgress, e("metrics", "Benchmark progress", "Avanzamento benchmark", N), EventCategory.PlatformProbePhase, e("metrics", "Platform probe phase", "Fase di analisi piattaforma", N), EventCategory.PipelineProgress, e("pipeline", "Pipeline progress", "Avanzamento pipeline", N), EventCategory.PipelineTrace, e("pipeline", "Pipeline trace", "Traccia pipeline", N), EventCategory.PipelineInferenceResult, e("pipeline", "Inference result", "Risultato di inferenza", N), EventCategory.PipelineCameraAssigned, e("pipeline", "Camera assigned to pipeline", "Camera assegnata alla pipeline"), EventCategory.PipelineCameraUnassigned, e("pipeline", "Camera unassigned from pipeline", "Camera rimossa dalla pipeline"), EventCategory.PipelineNodeInferenceUnavailable, e("pipeline", "Node inference unavailable", "Inferenza del nodo non disponibile"), EventCategory.PipelineDetectionBlind, e("pipeline", "Detection blind", "Rilevamento cieco"), EventCategory.PipelineMotionNoisy, e("pipeline", "Motion too noisy", "Movimento troppo disturbato"), EventCategory.PipelineMotionCalm, e("pipeline", "Motion calm again", "Movimento di nuovo calmo"), EventCategory.PipelinePackageLlmSilent, e("pipeline", "Package check silent", "Verifica pacchi senza risposta"), EventCategory.PipelinePackageLlmAnswered, e("pipeline", "Package check answered", "Verifica pacchi con risposta"), EventCategory.PipelineCameraUpdated, e("pipeline", "Pipeline camera updated", "Camera della pipeline aggiornata"), EventCategory.PipelineIngestOwnerChanged, e("pipeline", "Ingest owner changed", "Responsabile dell’acquisizione cambiato"), EventCategory.PipelineRunnerLoadSnapshot, e("metrics", "Runner load snapshot", "Carico dei runner", N), EventCategory.PipelineCameraMetricsSnapshot, e("metrics", "Camera metrics snapshot", "Metriche delle camere", N), EventCategory.StreamBrokerMetricsSnapshot, e("metrics", "Stream broker metrics", "Metriche dello stream broker", N), EventCategory.StreamBrokerOnCamStreamDemand, e("streams", "Stream requested", "Stream richiesto"), EventCategory.StreamBrokerOnCamStreamIdle, e("streams", "Stream idle", "Stream inattivo"), EventCategory.StreamBrokerOnRequestStreamSourceRefresh, e("streams", "Stream source refresh requested", "Aggiornamento sorgente stream richiesto"), EventCategory.StreamParamsChanged, e("streams", "Stream parameters changed", "Parametri dello stream cambiati"), EventCategory.DeviceStateChanged, e("devices", "Device state changed", "Stato dispositivo cambiato"), EventCategory.DeviceCommandSettled, e("devices", "Device command settled", "Comando al dispositivo concluso"), EventCategory.DeviceNativeShadowChanged, e("devices", "Device native state changed", "Stato nativo del dispositivo cambiato"), EventCategory.ZoneAnalyticsOccupancyChanged, e("detection", "Zone occupancy changed", "Occupazione zona cambiata"), EventCategory.BatteryOnStatusChanged, e("devices", "Battery status changed", "Stato batteria cambiato"), EventCategory.NetworkLinkOnStatusChanged, e("devices", "Network link status changed", "Stato del collegamento di rete cambiato"), EventCategory.BatteryOnWakeStarted, e("devices", "Battery device woke up", "Dispositivo a batteria attivato"), EventCategory.DoorbellOnPressed, e("devices", "Doorbell pressed", "Campanello premuto"), EventCategory.RunningStarted, e("devices", "Run started", "Esecuzione avviata"), EventCategory.RunningFinished, e("devices", "Run finished", "Esecuzione terminata"), EventCategory.WorkloadStarted, e("devices", "Workload started", "Carico di lavoro avviato"), EventCategory.WorkloadStopped, e("devices", "Workload stopped", "Carico di lavoro fermato"), EventCategory.WorkloadCrashed, e("devices", "Workload crashed", "Carico di lavoro in crash"), EventCategory.WorkloadRecovered, e("devices", "Workload recovered", "Carico di lavoro ripristinato"), EventCategory.DeviceRunOpened, e("devices", "Device run opened", "Ciclo del dispositivo aperto"), EventCategory.DeviceRunClosed, e("devices", "Device run closed", "Ciclo del dispositivo chiuso"), EventCategory.EventEmitted, e("devices", "Device event", "Evento del dispositivo"), EventCategory.PipelineEngineMetricsSnapshot, e("metrics", "Engine metrics snapshot", "Metriche dei motori", N), EventCategory.PipelineEngineProvisioning, e("pipeline", "Engine provisioning", "Preparazione del motore"), EventCategory.ClusterTopologySnapshot, e("metrics", "Cluster topology snapshot", "Topologia del cluster", N), EventCategory.MetricsNodeResourcesSnapshot, e("metrics", "Node resources snapshot", "Risorse dei nodi", N), EventCategory.MetricsNodeProcessesSnapshot, e("metrics", "Node processes snapshot", "Processi dei nodi", N), EventCategory.CapabilityBindingChanged, e("system", "Capability binding changed", "Collegamento di capability cambiato", N), EventCategory.ModelDownloadProgress, e("pipeline", "Model download progress", "Avanzamento download modello", N), EventCategory.AgentRegistered, e("agents", "Agent registered", "Agent registrato"), EventCategory.AgentUnregistered, e("agents", "Agent removed", "Agent rimosso"), EventCategory.AgentOnline, e("agents", "Agent online", "Agent online"), EventCategory.AgentOffline, e("agents", "Agent offline", "Agent offline"), EventCategory.WorkerOnline, e("agents", "Worker online", "Worker online"), EventCategory.WorkerOffline, e("agents", "Worker offline", "Worker offline"), EventCategory.AgentTaskDispatched, e("agents", "Agent task dispatched", "Attività inviata a un agent"), EventCategory.AgentTaskAssigned, e("agents", "Agent task assigned", "Attività assegnata a un agent"), EventCategory.AgentTrpcConnected, e("agents", "Agent API connected", "API dell’agent connessa"), EventCategory.AgentWsConnected, e("agents", "Agent socket connected", "Socket dell’agent connesso"), EventCategory.AgentWsDisconnected, e("agents", "Agent socket disconnected", "Socket dell’agent disconnesso"), EventCategory.AgentBackupActivated, e("agents", "Agent backup activated", "Backup dell’agent attivato"), EventCategory.OrchestrationSettingsUpdated, e("pipeline", "Orchestration settings updated", "Impostazioni di orchestrazione aggiornate"), EventCategory.MotionAnalysis, e("detection", "Motion analysis", "Analisi del movimento", N), EventCategory.MotionZonesRaw, e("detection", "Raw motion zones", "Zone di movimento grezze", N), EventCategory.MotionOnMotionChanged, e("detection", "Motion changed", "Movimento cambiato", N), EventCategory.DetectionResult, e("detection", "Detection result", "Risultato del rilevamento", N), EventCategory.DetectionRaw, e("detection", "Raw detection", "Rilevamento grezzo"), EventCategory.DetectionCameraNative, e("detection", "Camera native detection", "Rilevamento nativo della camera"), EventCategory.PipelineAudioInferenceResult, e("pipeline", "Audio inference result", "Risultato di inferenza audio", N), EventCategory.DetectionPhaseTransition, e("detection", "Detection phase changed", "Fase di rilevamento cambiata"), EventCategory.ProviderMotion, e("detection", "Camera raw motion", "Movimento grezzo della camera", N), EventCategory.ProviderDetection, e("detection", "Camera onboard detection", "Rilevamento a bordo camera"), EventCategory.EnrichmentEmbeddingStored, e("enrichment", "Embedding stored", "Embedding salvato"), EventCategory.EnrichmentSceneStateChanged, e("enrichment", "Scene state changed", "Stato della scena cambiato"), EventCategory.EnrichmentActivitySummary, e("enrichment", "Activity summary", "Riepilogo dell’attività"), EventCategory.PipelineAnalyticsTrackLifecycle, e("detection", "Track lifecycle", "Ciclo di vita della traccia"), EventCategory.PipelineAnalyticsTrackStarted, e("detection", "Track started", "Traccia iniziata", {
24976
+ EventCategory.SystemBoot, e("system", "System booted", "Sistema avviato"), EventCategory.SystemAddonsReady, e("system", "Addons ready", "Addon pronti"), EventCategory.SystemRestarting, e("system", "System restarting", "Sistema in riavvio"), EventCategory.SystemRestartCompleted, e("system", "Restart completed", "Riavvio completato"), EventCategory.SystemTlsCertChanged, e("system", "TLS certificate changed", "Certificato TLS cambiato"), EventCategory.UpdateAvailable, e("system", "Update available", "Aggiornamento disponibile"), EventCategory.SystemReadyState, e("system", "Readiness changed", "Stato di prontezza cambiato"), EventCategory.AddonStarted, e("addons", "Addon started", "Addon avviato"), EventCategory.AddonStopped, e("addons", "Addon stopped", "Addon fermato"), EventCategory.AddonRestarted, e("addons", "Addon restarted", "Addon riavviato"), EventCategory.AddonUpdated, e("addons", "Addon updated", "Addon aggiornato"), EventCategory.AddonInstalled, e("addons", "Addon installed", "Addon installato"), EventCategory.AddonUninstalled, e("addons", "Addon uninstalled", "Addon disinstallato"), EventCategory.AddonCrashed, e("addons", "Addon crashed", "Addon in errore fatale"), EventCategory.AddonRunnerFailed, e("addons", "Runner failed for good", "Runner fallito definitivamente"), EventCategory.AddonRunnerRefused, e("addons", "Runner refused", "Runner rifiutato"), EventCategory.ProcessStateChanged, e("addons", "Process state changed", "Stato del processo cambiato"), EventCategory.SystemRunnerCheck, e("system", "Runner check", "Verifica dei runner"), EventCategory.AlertEpisode, e("system", "Alert episode", "Episodio di allarme"), EventCategory.AddonError, e("addons", "Addon error", "Errore di un addon"), EventCategory.AddonPageReady, e("addons", "Addon page ready", "Pagina addon pronta"), EventCategory.AddonWidgetReady, e("addons", "Addon widget ready", "Widget addon pronto"), EventCategory.AddonLoadFailed, e("addons", "Addon failed to load", "Caricamento addon fallito"), EventCategory.KeychainChanged, e("system", "Keychain changed", "Portachiavi modificato"), EventCategory.AddonLoadRecovered, e("addons", "Addon load recovered", "Caricamento addon ripristinato"), EventCategory.AddonUnsupportedVersion, e("addons", "Addon version unsupported", "Versione addon non supportata"), EventCategory.AddonUnsupportedResolved, e("addons", "Unsupported addon resolved", "Addon non supportato risolto"), EventCategory.AddonRetryScheduled, e("addons", "Addon retry scheduled", "Nuovo tentativo addon pianificato"), EventCategory.SystemLivenessFailed, e("system", "Liveness check failed", "Controllo di attività fallito"), EventCategory.SystemLivenessRecovered, e("system", "Liveness recovered", "Controllo di attività ripristinato"), EventCategory.AddonRetryAttempting, e("addons", "Addon retry running", "Nuovo tentativo addon in corso"), EventCategory.DeviceRegistered, e("devices", "Device registered", "Dispositivo registrato"), EventCategory.DeviceUnregistered, e("devices", "Device removed", "Dispositivo rimosso"), EventCategory.DeviceEnabled, e("devices", "Device enabled", "Dispositivo abilitato"), EventCategory.DeviceDisabled, e("devices", "Device disabled", "Dispositivo disabilitato"), EventCategory.DeviceSettingsUpdated, e("devices", "Device settings updated", "Impostazioni dispositivo aggiornate"), EventCategory.DeviceBindingsChanged, e("devices", "Device bindings changed", "Collegamenti dispositivo cambiati"), EventCategory.DeviceMetaChanged, e("devices", "Device details changed", "Dettagli dispositivo cambiati"), EventCategory.DeviceSourceInfoChanged, e("devices", "Device source info changed", "Info sorgente dispositivo cambiate"), EventCategory.DeviceStreamsRegistered, e("streams", "Device streams registered", "Stream del dispositivo registrati"), EventCategory.DeviceProvisioned, e("devices", "Device provisioned", "Dispositivo configurato"), EventCategory.DeviceReady, e("devices", "Device ready", "Dispositivo pronto"), EventCategory.IdentityLinkCreated, e("integrations", "Identity linked", "Identità collegata"), EventCategory.IdentityLinkLost, e("integrations", "Identity link lost", "Collegamento identità perso"), EventCategory.IntegrationEnabled, e("integrations", "Integration enabled", "Integrazione abilitata"), EventCategory.IntegrationDisabled, e("integrations", "Integration disabled", "Integrazione disabilitata"), EventCategory.IntegrationDeleted, e("integrations", "Integration deleted", "Integrazione eliminata"), EventCategory.BrokerStatusChanged, e("integrations", "Broker status changed", "Stato del broker cambiato"), EventCategory.BrokerMessage, e("integrations", "Broker message", "Messaggio del broker", N), EventCategory.ProviderStarted, e("integrations", "Provider started", "Provider avviato"), EventCategory.ProviderStopped, e("integrations", "Provider stopped", "Provider fermato"), EventCategory.ProcessCrashed, e("addons", "Process crashed", "Processo andato in crash"), EventCategory.ProcessRestartScheduled, e("addons", "Process restart scheduled", "Riavvio del processo pianificato"), EventCategory.ProcessRestarted, e("addons", "Process restarted", "Processo riavviato"), EventCategory.StorageLocationsChanged, e("storage", "Storage locations changed", "Posizioni di archiviazione cambiate"), EventCategory.RecordingStarted, e("recording", "Recording started", "Registrazione avviata"), EventCategory.RecordingStopped, e("recording", "Recording stopped", "Registrazione fermata"), EventCategory.RecordingError, e("recording", "Recording error", "Errore di registrazione"), EventCategory.RecordingHealthDegraded, e("recording", "Recording degraded", "Registrazione degradata"), EventCategory.RecordingHealthStalled, e("recording", "Recording stalled", "Registrazione bloccata"), EventCategory.RecordingHealthOk, e("recording", "Recording healthy", "Registrazione regolare"), EventCategory.RecordingStorageCritical, e("recording", "Recording storage critical", "Spazio di registrazione critico"), EventCategory.StorageLocationLow, e("storage", "Storage location low", "Spazio in esaurimento"), EventCategory.StorageLocationCritical, e("storage", "Storage location critical", "Spazio critico"), EventCategory.StorageLocationOk, e("storage", "Storage location recovered", "Spazio tornato regolare"), EventCategory.StorageDrainProgress, e("storage", "Drain progress", "Avanzamento dello svuotamento"), EventCategory.StorageDrainComplete, e("storage", "Drain complete", "Svuotamento completato"), EventCategory.RecordingSegmentWritten, e("recording", "Segment written", "Segmento scritto"), EventCategory.RecordingPolicyFallback, e("recording", "Recording policy fallback", "Politica di registrazione di ripiego"), EventCategory.RecordingRetentionCompleted, e("recording", "Retention completed", "Pulizia completata"), EventCategory.RecordingExportProgress, e("recording", "Export progress", "Avanzamento esportazione"), EventCategory.RecordingExportCompleted, e("recording", "Export completed", "Esportazione completata"), EventCategory.RecordingExportFailed, e("recording", "Export failed", "Esportazione fallita"), EventCategory.DetectionEvent, e("detection", "Detection", "Rilevamento"), EventCategory.SessionTrackNew, e("detection", "Session track started", "Nuova traccia di sessione"), EventCategory.SessionTrackExpired, e("detection", "Session track expired", "Traccia di sessione scaduta"), EventCategory.BenchmarkProgress, e("metrics", "Benchmark progress", "Avanzamento benchmark", N), EventCategory.PlatformProbePhase, e("metrics", "Platform probe phase", "Fase di analisi piattaforma", N), EventCategory.PipelineProgress, e("pipeline", "Pipeline progress", "Avanzamento pipeline", N), EventCategory.PipelineTrace, e("pipeline", "Pipeline trace", "Traccia pipeline", N), EventCategory.PipelineInferenceResult, e("pipeline", "Inference result", "Risultato di inferenza", N), EventCategory.PipelineCameraAssigned, e("pipeline", "Camera assigned to pipeline", "Camera assegnata alla pipeline"), EventCategory.PipelineCameraUnassigned, e("pipeline", "Camera unassigned from pipeline", "Camera rimossa dalla pipeline"), EventCategory.PipelineNodeInferenceUnavailable, e("pipeline", "Node inference unavailable", "Inferenza del nodo non disponibile"), EventCategory.PipelineDetectionBlind, e("pipeline", "Detection blind", "Rilevamento cieco"), EventCategory.PipelineMotionNoisy, e("pipeline", "Motion too noisy", "Movimento troppo disturbato"), EventCategory.PipelineMotionCalm, e("pipeline", "Motion calm again", "Movimento di nuovo calmo"), EventCategory.PipelinePackageLlmSilent, e("pipeline", "Package check silent", "Verifica pacchi senza risposta"), EventCategory.PipelinePackageLlmAnswered, e("pipeline", "Package check answered", "Verifica pacchi con risposta"), EventCategory.PipelineCameraUpdated, e("pipeline", "Pipeline camera updated", "Camera della pipeline aggiornata"), EventCategory.PipelineIngestOwnerChanged, e("pipeline", "Ingest owner changed", "Responsabile dell’acquisizione cambiato"), EventCategory.PipelineRunnerLoadSnapshot, e("metrics", "Runner load snapshot", "Carico dei runner", N), EventCategory.PipelineCameraMetricsSnapshot, e("metrics", "Camera metrics snapshot", "Metriche delle camere", N), EventCategory.StreamBrokerMetricsSnapshot, e("metrics", "Stream broker metrics", "Metriche dello stream broker", N), EventCategory.StreamBrokerOnCamStreamDemand, e("streams", "Stream requested", "Stream richiesto"), EventCategory.StreamBrokerOnCamStreamIdle, e("streams", "Stream idle", "Stream inattivo"), EventCategory.StreamBrokerOnRequestStreamSourceRefresh, e("streams", "Stream source refresh requested", "Aggiornamento sorgente stream richiesto"), EventCategory.StreamBrokerOnSourceRestart, e("streams", "Stream source restarted", "Sorgente stream riavviata"), EventCategory.StreamParamsChanged, e("streams", "Stream parameters changed", "Parametri dello stream cambiati"), EventCategory.DeviceStateChanged, e("devices", "Device state changed", "Stato dispositivo cambiato"), EventCategory.DeviceCommandSettled, e("devices", "Device command settled", "Comando al dispositivo concluso"), EventCategory.DeviceNativeShadowChanged, e("devices", "Device native state changed", "Stato nativo del dispositivo cambiato"), EventCategory.ZoneAnalyticsOccupancyChanged, e("detection", "Zone occupancy changed", "Occupazione zona cambiata"), EventCategory.BatteryOnStatusChanged, e("devices", "Battery status changed", "Stato batteria cambiato"), EventCategory.NetworkLinkOnStatusChanged, e("devices", "Network link status changed", "Stato del collegamento di rete cambiato"), EventCategory.BatteryOnWakeStarted, e("devices", "Battery device woke up", "Dispositivo a batteria attivato"), EventCategory.DoorbellOnPressed, e("devices", "Doorbell pressed", "Campanello premuto"), EventCategory.RunningStarted, e("devices", "Run started", "Esecuzione avviata"), EventCategory.RunningFinished, e("devices", "Run finished", "Esecuzione terminata"), EventCategory.WorkloadStarted, e("devices", "Workload started", "Carico di lavoro avviato"), EventCategory.WorkloadStopped, e("devices", "Workload stopped", "Carico di lavoro fermato"), EventCategory.WorkloadCrashed, e("devices", "Workload crashed", "Carico di lavoro in crash"), EventCategory.WorkloadRecovered, e("devices", "Workload recovered", "Carico di lavoro ripristinato"), EventCategory.DeviceRunOpened, e("devices", "Device run opened", "Ciclo del dispositivo aperto"), EventCategory.DeviceRunClosed, e("devices", "Device run closed", "Ciclo del dispositivo chiuso"), EventCategory.EventEmitted, e("devices", "Device event", "Evento del dispositivo"), EventCategory.PipelineEngineMetricsSnapshot, e("metrics", "Engine metrics snapshot", "Metriche dei motori", N), EventCategory.PipelineEngineProvisioning, e("pipeline", "Engine provisioning", "Preparazione del motore"), EventCategory.ClusterTopologySnapshot, e("metrics", "Cluster topology snapshot", "Topologia del cluster", N), EventCategory.MetricsNodeResourcesSnapshot, e("metrics", "Node resources snapshot", "Risorse dei nodi", N), EventCategory.MetricsNodeProcessesSnapshot, e("metrics", "Node processes snapshot", "Processi dei nodi", N), EventCategory.CapabilityBindingChanged, e("system", "Capability binding changed", "Collegamento di capability cambiato", N), EventCategory.ModelDownloadProgress, e("pipeline", "Model download progress", "Avanzamento download modello", N), EventCategory.AgentRegistered, e("agents", "Agent registered", "Agent registrato"), EventCategory.AgentUnregistered, e("agents", "Agent removed", "Agent rimosso"), EventCategory.AgentOnline, e("agents", "Agent online", "Agent online"), EventCategory.AgentOffline, e("agents", "Agent offline", "Agent offline"), EventCategory.WorkerOnline, e("agents", "Worker online", "Worker online"), EventCategory.WorkerOffline, e("agents", "Worker offline", "Worker offline"), EventCategory.AgentTaskDispatched, e("agents", "Agent task dispatched", "Attività inviata a un agent"), EventCategory.AgentTaskAssigned, e("agents", "Agent task assigned", "Attività assegnata a un agent"), EventCategory.AgentTrpcConnected, e("agents", "Agent API connected", "API dell’agent connessa"), EventCategory.AgentWsConnected, e("agents", "Agent socket connected", "Socket dell’agent connesso"), EventCategory.AgentWsDisconnected, e("agents", "Agent socket disconnected", "Socket dell’agent disconnesso"), EventCategory.AgentBackupActivated, e("agents", "Agent backup activated", "Backup dell’agent attivato"), EventCategory.OrchestrationSettingsUpdated, e("pipeline", "Orchestration settings updated", "Impostazioni di orchestrazione aggiornate"), EventCategory.MotionAnalysis, e("detection", "Motion analysis", "Analisi del movimento", N), EventCategory.MotionZonesRaw, e("detection", "Raw motion zones", "Zone di movimento grezze", N), EventCategory.MotionOnMotionChanged, e("detection", "Motion changed", "Movimento cambiato", N), EventCategory.DetectionResult, e("detection", "Detection result", "Risultato del rilevamento", N), EventCategory.DetectionRaw, e("detection", "Raw detection", "Rilevamento grezzo"), EventCategory.DetectionCameraNative, e("detection", "Camera native detection", "Rilevamento nativo della camera"), EventCategory.PipelineAudioInferenceResult, e("pipeline", "Audio inference result", "Risultato di inferenza audio", N), EventCategory.DetectionPhaseTransition, e("detection", "Detection phase changed", "Fase di rilevamento cambiata"), EventCategory.ProviderMotion, e("detection", "Camera raw motion", "Movimento grezzo della camera", N), EventCategory.ProviderDetection, e("detection", "Camera onboard detection", "Rilevamento a bordo camera"), EventCategory.EnrichmentEmbeddingStored, e("enrichment", "Embedding stored", "Embedding salvato"), EventCategory.EnrichmentSceneStateChanged, e("enrichment", "Scene state changed", "Stato della scena cambiato"), EventCategory.EnrichmentActivitySummary, e("enrichment", "Activity summary", "Riepilogo dell’attività"), EventCategory.PipelineAnalyticsTrackLifecycle, e("detection", "Track lifecycle", "Ciclo di vita della traccia"), EventCategory.PipelineAnalyticsTrackStarted, e("detection", "Track started", "Traccia iniziata", {
24960
24977
  noise: true,
24961
24978
  deprecated: true
24962
24979
  }), EventCategory.PipelineAnalyticsTrackEnded, e("detection", "Track ended", "Traccia terminata", {
@@ -52533,8 +52550,15 @@ function convertLegacyWhen(half) {
52533
52550
  /** The longest one `wait` step lasts. It is cut by a restart of the run and does not survive a hub restart. */
52534
52551
  var WAIT_MAX_SECONDS = 3600;
52535
52552
  var WAIT_TOO_LONG = `a wait is at most one hour (${WAIT_MAX_SECONDS} s)`;
52553
+ /**
52554
+ * Every step kind may be switched off without deleting it: `enabled: false`
52555
+ * skips the step (and, for a block step, its whole subtree), traced `disabled`.
52556
+ * Absent means enabled.
52557
+ */
52558
+ var stepEnabledShape = { enabled: z.boolean().optional() };
52536
52559
  var AutomationWaitStepSchema = z.object({
52537
52560
  kind: z.literal("wait"),
52561
+ ...stepEnabledShape,
52538
52562
  seconds: z.number().min(0).max(WAIT_MAX_SECONDS, WAIT_TOO_LONG)
52539
52563
  });
52540
52564
  /**
@@ -52543,6 +52567,7 @@ var AutomationWaitStepSchema = z.object({
52543
52567
  */
52544
52568
  var AutomationCommandStepBaseSchema = z.object({
52545
52569
  kind: z.literal("command"),
52570
+ ...stepEnabledShape,
52546
52571
  /** WHO the step acts on. */
52547
52572
  target: ActionTargetSchema,
52548
52573
  /** The vocabulary action this step performs (`cover.open`). */
@@ -52620,6 +52645,7 @@ var AutomationGuardedCommandStepSchema = AutomationCommandStepBaseSchema.extend(
52620
52645
  /** End the run here, on purpose. `reason` may carry `{{vars.x}}` slots. */
52621
52646
  var AutomationStopStepSchema = z.object({
52622
52647
  kind: z.literal("stop"),
52648
+ ...stepEnabledShape,
52623
52649
  reason: z.string().min(1, "a stop needs a reason: it is what the run trace shows").max(200),
52624
52650
  /** `ok`: the run ends as a success. `failed`: it ends as a failure, with the reason. */
52625
52651
  outcome: z.enum(["ok", "failed"]),
@@ -52639,6 +52665,7 @@ var RESERVED_RUN_VARS = [
52639
52665
  */
52640
52666
  var AutomationSetStepSchema = z.object({
52641
52667
  kind: z.literal("set"),
52668
+ ...stepEnabledShape,
52642
52669
  vars: z.record(z.string(), z.union([
52643
52670
  z.string().max(500),
52644
52671
  z.number(),
@@ -52647,8 +52674,25 @@ var AutomationSetStepSchema = z.object({
52647
52674
  /** Set only when this reads true; false or unknown leaves the bag as it is. */
52648
52675
  if: AutomationWhenSchema.optional()
52649
52676
  });
52677
+ var NOTIFY_BODY_MAX = 2e3;
52678
+ /**
52679
+ * Send a notification through one notification target (the same targets the
52680
+ * notification centre addresses). Title and body may carry `{{vars.x}}` slots.
52681
+ * Not a device command: a notification target is an instance of the
52682
+ * `notification-output` cap, not a device.
52683
+ */
52684
+ var AutomationNotifyStepSchema = z.object({
52685
+ kind: z.literal("notify"),
52686
+ ...stepEnabledShape,
52687
+ /** The notification target (an instance id of `notification-output`). */
52688
+ targetId: z.string().min(1, "pick the notification target"),
52689
+ title: z.string().max(200).optional(),
52690
+ body: z.string().min(1, "a notification needs a message").max(NOTIFY_BODY_MAX),
52691
+ ...continueOnErrorShape
52692
+ });
52650
52693
  var AutomationRunActionStepSchema = z.object({
52651
52694
  kind: z.literal("action"),
52695
+ ...stepEnabledShape,
52652
52696
  /** An entry of the `actions` surface (`internal:<uuid>` or `<addonId>:<localId>`). */
52653
52697
  actionId: z.string().min(1),
52654
52698
  /** Values for the action's declared variables; the others take their default. */
@@ -52674,6 +52718,7 @@ var WAIT_UNTIL_TIMEOUT_MAX_S = 21600;
52674
52718
  */
52675
52719
  var AutomationWaitUntilStepSchema = z.object({
52676
52720
  kind: z.literal("wait-until"),
52721
+ ...stepEnabledShape,
52677
52722
  when: AutomationWhenSchema,
52678
52723
  timeoutS: z.number().int().min(1, "a wait needs a timeout of at least one second").max(WAIT_UNTIL_TIMEOUT_MAX_S, `a wait for a condition is at most six hours (${WAIT_UNTIL_TIMEOUT_MAX_S} s)`),
52679
52724
  onTimeout: z.enum(["continue", "stop"])
@@ -52699,7 +52744,8 @@ var plainStepSchemas = [
52699
52744
  AutomationCommandStepBaseSchema.extend(continueOnErrorShape).strict().superRefine(refineKnownAction),
52700
52745
  AutomationStopStepSchema.omit({ if: true }).strict(),
52701
52746
  AutomationSetStepSchema.omit({ if: true }).strict(),
52702
- AutomationRunActionStepSchema.strict()
52747
+ AutomationRunActionStepSchema.strict(),
52748
+ AutomationNotifyStepSchema.strict()
52703
52749
  ];
52704
52750
  /**
52705
52751
  * A plain step: a flow step with no condition of its own and no step inside
@@ -52707,7 +52753,7 @@ var plainStepSchemas = [
52707
52753
  */
52708
52754
  var AutomationBranchStepSchema = z.discriminatedUnion("kind", plainStepSchemas, { error: nestTooDeep });
52709
52755
  /** A step that can run beside others: it writes no variable and does not end the run. */
52710
- var AutomationParallelMemberSchema = AutomationBranchStepSchema.refine((step) => step.kind === "command" || step.kind === "action" || step.kind === "wait", "a parallel holds device commands, actions and waits only: a set or a stop beside other steps has no order");
52756
+ var AutomationParallelMemberSchema = AutomationBranchStepSchema.refine((step) => step.kind === "command" || step.kind === "action" || step.kind === "notify" || step.kind === "wait", "a parallel holds device commands, actions and waits only: a set or a stop beside other steps has no order");
52711
52757
  /**
52712
52758
  * Several steps at once (#500): all are started together and all are awaited.
52713
52759
  * A failure fails the run once the others finished, as in a sequence; a member
@@ -52715,6 +52761,7 @@ var AutomationParallelMemberSchema = AutomationBranchStepSchema.refine((step) =>
52715
52761
  */
52716
52762
  var AutomationParallelStepSchema = z.object({
52717
52763
  kind: z.literal("parallel"),
52764
+ ...stepEnabledShape,
52718
52765
  steps: z.array(AutomationParallelMemberSchema).min(2, "a parallel needs at least two steps").max(5, `a parallel takes at most 5 steps`)
52719
52766
  }).strict();
52720
52767
  /** The run variable a loop over devices writes before each iteration: the device id. */
@@ -52757,6 +52804,7 @@ var AutomationRepeatLoopSchema = z.discriminatedUnion("by", [
52757
52804
  function repeatSchemaOf(step) {
52758
52805
  return z.object({
52759
52806
  kind: z.literal("repeat"),
52807
+ ...stepEnabledShape,
52760
52808
  loop: AutomationRepeatLoopSchema,
52761
52809
  steps: z.array(step).min(1, "a repeat needs at least one step").max(10, `a repeat takes at most 10 steps`)
52762
52810
  }).strict();
@@ -52772,6 +52820,7 @@ function chooseSchemaOf(step) {
52772
52820
  const steps = z.array(step).max(10);
52773
52821
  return z.object({
52774
52822
  kind: z.literal("choose"),
52823
+ ...stepEnabledShape,
52775
52824
  branches: z.array(z.object({
52776
52825
  if: AutomationWhenSchema,
52777
52826
  steps: steps.min(1, "a branch needs at least one step")
@@ -52798,8 +52847,10 @@ var AutomationActionSchema = z.discriminatedUnion("kind", [
52798
52847
  AutomationParallelStepSchema,
52799
52848
  AutomationRepeatStepSchema,
52800
52849
  AutomationRunActionStepSchema,
52850
+ AutomationNotifyStepSchema,
52801
52851
  z.object({
52802
52852
  kind: z.literal("code"),
52853
+ ...stepEnabledShape,
52803
52854
  /** Compiled into the automation's OWN block by esbuild — not a third
52804
52855
  * runtime, not a `vm`, and not dynamically evaluated. */
52805
52856
  code: z.string().min(1).max(2e4)
@@ -52871,6 +52922,7 @@ var AutomationRecipeSchema = z.union([CurrentAutomationRecipeSchema, LegacyAutom
52871
52922
  function stepGuardOf(action) {
52872
52923
  switch (action.kind) {
52873
52924
  case "action":
52925
+ case "notify":
52874
52926
  case "code":
52875
52927
  case "choose":
52876
52928
  case "wait-until":
@@ -53710,6 +53762,8 @@ function withoutNested(trace) {
53710
53762
  steps: steps.map(plainRow)
53711
53763
  };
53712
53764
  }
53765
+ /** The trace message of a step switched off with `enabled: false`. */
53766
+ var DISABLED_STEP_MESSAGE = "disabled";
53713
53767
  async function runSteps(steps, options) {
53714
53768
  const traces = [];
53715
53769
  let failed = false;
@@ -53737,6 +53791,18 @@ async function runSteps(steps, options) {
53737
53791
  });
53738
53792
  continue;
53739
53793
  }
53794
+ if (step.disabled === true) {
53795
+ const at = options.now();
53796
+ traces.push({
53797
+ ...step.meta,
53798
+ path,
53799
+ startedAt: at,
53800
+ endedAt: at,
53801
+ outcome: "skipped",
53802
+ message: DISABLED_STEP_MESSAGE
53803
+ });
53804
+ continue;
53805
+ }
53740
53806
  const startedAt = options.now();
53741
53807
  if (step.parallel !== void 0) {
53742
53808
  const members = await Promise.all(step.parallel.map((member, at) => runSteps([member], {
@@ -54223,7 +54289,10 @@ function guardOf(step, vars, deps) {
54223
54289
  }
54224
54290
  function buildActionSteps(steps, vars, deps) {
54225
54291
  return steps.map((step) => {
54226
- const guarded = guardOf(step, vars, deps);
54292
+ const guarded = {
54293
+ ...guardOf(step, vars, deps),
54294
+ ...step.enabled === false ? { disabled: true } : {}
54295
+ };
54227
54296
  const meta = stepMetaOfAction(step);
54228
54297
  if (step.kind === "wait") return {
54229
54298
  meta,
@@ -55086,6 +55155,7 @@ function stepMetaOf(action) {
55086
55155
  case "wait": return { kind: "wait" };
55087
55156
  case "code": return { kind: "code" };
55088
55157
  case "action": return { kind: "action" };
55158
+ case "notify": return { kind: "notify" };
55089
55159
  case "stop": return { kind: "stop" };
55090
55160
  case "wait-until": return { kind: "wait-until" };
55091
55161
  case "parallel": return { kind: "parallel" };
@@ -55364,6 +55434,17 @@ function emitStepBody(action) {
55364
55434
  if (result.outcome !== 'ran') {
55365
55435
  throw new Error('action ' + ${j(action.actionId)} + ' ' + result.outcome + (result.message === undefined ? '' : ': ' + result.message))
55366
55436
  }`;
55437
+ case "notify": return ` // a notification through one target: the one send path the exporters use
55438
+ const sent = await sendToExportedTarget(ctx.api, ctx.logger, {
55439
+ exporter: 'automation',
55440
+ targetId: ${j(action.targetId)},
55441
+ notification: {
55442
+ body: String(substitute(${j(action.body)}, vars)),
55443
+ ${action.title === void 0 ? "" : `title: String(substitute(${j(action.title)}, vars)),`}
55444
+ },
55445
+ })
55446
+ if (sent.status === 'refused') throw new Error('notification target ' + sent.reason)
55447
+ if (sent.status === 'failed') throw new Error('notification failed: ' + sent.message)`;
55367
55448
  case "stop": return ` // end the run here, on purpose: the steps after it are not-run with this reason
55368
55449
  scope.stop(String(substitute(${j(action.reason)}, vars)), ${j(action.outcome)})`;
55369
55450
  case "set": return ` // write the run's own bag, for the steps after this one — substitution only
@@ -55375,7 +55456,7 @@ ${action.code.split("\n").map((line) => ` ${line}`).join("\n")}
55375
55456
  }
55376
55457
  }
55377
55458
  function continues(action) {
55378
- return (action.kind === "command" || action.kind === "action") && action.continueOnError === true;
55459
+ return (action.kind === "command" || action.kind === "action" || action.kind === "notify") && action.continueOnError === true;
55379
55460
  }
55380
55461
  /** Whether the site is inside a block step: the automation's own steps sit at `actions.<n>`. */
55381
55462
  function isNestedSite(site) {
@@ -55476,6 +55557,12 @@ function emitRepeatLoop(loop, site) {
55476
55557
  }
55477
55558
  /** One step, wherever it sits: a block step emits its own steps one level down, under its path. */
55478
55559
  function emitStep(action, site) {
55560
+ const emitted = emitStepEnabled(action, site);
55561
+ if (action.enabled !== false) return emitted;
55562
+ const marker = `meta: ${site.meta},`;
55563
+ return emitted.replace(marker, `${marker}\n disabled: true,`);
55564
+ }
55565
+ function emitStepEnabled(action, site) {
55479
55566
  if (action.kind === "repeat") return ` {
55480
55567
  meta: ${site.meta},
55481
55568
  // a repeat step: the runner runs these once per iteration, under the bound
@@ -55616,6 +55703,7 @@ import {
55616
55703
  resolveStepArgs,
55617
55704
  resolveStepArgsWithTemplates,
55618
55705
  runForDevices,
55706
+ sendToExportedTarget,
55619
55707
  vocabCall,
55620
55708
  evaluateStepCondition,
55621
55709
  runSteps,
@@ -62374,6 +62462,8 @@ var streamBrokerCapability = {
62374
62462
  /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
62375
62463
  profileHint: CamProfileSchema.optional(),
62376
62464
  metadata: z.record(z.string(), z.unknown()).optional(),
62465
+ /** The longest session the source keeps open (ms) — see `CameraStreamSchema.maxSessionMs`. */
62466
+ maxSessionMs: z.number().int().positive().optional(),
62377
62467
  /** Required when kind === 'derived' — the source camStreamId the
62378
62468
  * derived broker reads its encoded plane from.
62379
62469
  * The runtime guard (broker manager, Task 10) enforces presence for
@@ -62817,6 +62907,12 @@ var streamBrokerCapability = {
62817
62907
  deviceId: z.number().int().nonnegative(),
62818
62908
  camStreamId: z.string(),
62819
62909
  brokerId: z.string()
62910
+ })),
62911
+ onSourceRestart: event(z.object({
62912
+ deviceId: z.number().int().nonnegative(),
62913
+ camStreamId: z.string(),
62914
+ brokerId: z.string(),
62915
+ reason: z.string()
62820
62916
  }))
62821
62917
  },
62822
62918
  vocabulary: { notOperatorFacing: NOT_A_DEVICE.PIPELINE }
@@ -78746,6 +78842,15 @@ var DeviceFaultSchema = z.object({
78746
78842
  label: z.string(),
78747
78843
  severity: DeviceErrorSeveritySchema
78748
78844
  });
78845
+ /** One kind of fault a device CAN raise: the integration's own declared catalog entry. */
78846
+ var DeviceFaultTypeSchema = DeviceFaultSchema;
78847
+ /**
78848
+ * The fault catalog of a device, declared by its integration at runtime (never a
78849
+ * code enum). A fault outside the catalog is still published and still matches
78850
+ * a rule that names no code.
78851
+ */
78852
+ var ListFaultTypesInputSchema = z.object({ deviceId: z.number().int().nonnegative() });
78853
+ var FaultTypesSchema = z.object({ types: z.array(DeviceFaultTypeSchema) });
78749
78854
  /**
78750
78855
  * The fault a device reports right now. One slice per device.
78751
78856
  *
@@ -78783,7 +78888,12 @@ var errorCapability = {
78783
78888
  scope: "device",
78784
78889
  deviceNative: true,
78785
78890
  mode: "singleton",
78786
- methods: {},
78891
+ methods: {
78892
+ /** The fault codes this device's integration can raise; `[]` when it declares none. */
78893
+ listFaultTypes: method(ListFaultTypesInputSchema, FaultTypesSchema, {
78894
+ kind: "query",
78895
+ auth: "protected"
78896
+ }) },
78787
78897
  status: {
78788
78898
  schema: ErrorStatusSchema,
78789
78899
  kind: "push",
@@ -96989,6 +97099,13 @@ var NcSystemEventConditionSchema = z.object({
96989
97099
  * pick from. The hub refuses an id the action index does not know.
96990
97100
  */
96991
97101
  commandActions: z.array(z.string().min(1)).min(1).optional(),
97102
+ /**
97103
+ * `device-attention-*` only: the fault CODES this rule speaks about (the
97104
+ * integration declares them through `error.listFaultTypes`; free text is
97105
+ * accepted too). Absent or empty = any fault. The rule matches when any
97106
+ * fault of the episode is in the list.
97107
+ */
97108
+ faultCodes: z.array(z.string().min(1)).optional(),
96992
97109
  /** `device-command` only: how the command settled. A device's own change is not a command. */
96993
97110
  commandOutcomes: z.array(z.enum([
96994
97111
  "confirmed",
@@ -110601,7 +110718,16 @@ var CamStreamDescriptorSchema = z.object({
110601
110718
  /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
110602
110719
  profileHint: CamProfileSchema.optional(),
110603
110720
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
110604
- metadata: z.record(z.string(), z.unknown()).optional()
110721
+ metadata: z.record(z.string(), z.unknown()).optional(),
110722
+ /**
110723
+ * The longest continuous session the SOURCE will keep open, in ms, declared by
110724
+ * the provider that knows it (a hub that cuts every child's session on a
110725
+ * timer). Absent = no limit. The broker re-dials a live source a little
110726
+ * BEFORE this elapses, on its own terms and announced to consumers, so the
110727
+ * source's cut never lands mid-recording. Declare slightly under what was
110728
+ * observed.
110729
+ */
110730
+ maxSessionMs: z.number().int().positive().optional()
110605
110731
  });
110606
110732
  /**
110607
110733
  * `stream-catalog` — device-scoped, provider-implemented. The pull counterpart
@@ -120593,6 +120719,20 @@ function deviceErrorEdge(previous, next) {
120593
120719
  function deviceErrorAlertId(deviceId) {
120594
120720
  return `device-error:${String(deviceId)}`;
120595
120721
  }
120722
+ /** Every active fault, the principal first; a status that lists none still names its principal. */
120723
+ function activeFaults(status) {
120724
+ if (status.faults !== void 0 && status.faults.length > 0) return status.faults.map(({ code, label, severity }) => ({
120725
+ code,
120726
+ label,
120727
+ severity
120728
+ }));
120729
+ if (status.code === null) return [];
120730
+ return [{
120731
+ code: status.code,
120732
+ label: status.label ?? status.code,
120733
+ severity: status.severity
120734
+ }];
120735
+ }
120596
120736
  /** The alert that opens an episode. `since` is the fault's own start, else `now`. */
120597
120737
  function buildDeviceErrorAlert(deviceId, deviceName, status, now) {
120598
120738
  const label = status.label ?? status.code ?? "Fault";
@@ -120620,7 +120760,9 @@ function buildDeviceErrorAlert(deviceId, deviceName, status, now) {
120620
120760
  metadata: {
120621
120761
  episodeId: `${alertId}@${String(startedAt)}`,
120622
120762
  code: status.code,
120623
- deviceSeverity: status.severity
120763
+ deviceSeverity: status.severity,
120764
+ label: status.label,
120765
+ faults: activeFaults(status)
120624
120766
  }
120625
120767
  };
120626
120768
  }
@@ -120630,6 +120772,8 @@ var BaseDevice = class {
120630
120772
  type;
120631
120773
  /** True when another process owns the base slices (`options.deviceStatus: 'external'`). */
120632
120774
  statusIsExternal;
120775
+ /** The fault catalog the integration declared; `[]` until it does. */
120776
+ faultTypes = [];
120633
120777
  name;
120634
120778
  parentDeviceId;
120635
120779
  role;
@@ -120967,10 +121111,19 @@ var BaseDevice = class {
120967
121111
  * a restart is compared, not announced again.
120968
121112
  */
120969
121113
  registerErrorCap() {
120970
- this.ctx.registerNativeCap?.(errorCapability, {});
121114
+ this.ctx.registerNativeCap?.(errorCapability, { listFaultTypes: async () => ({ types: [...this.faultTypes] }) });
120971
121115
  if (this.runtimeState.getCapState(errorCapability.name) === void 0) this.setCapSlice(errorCapability, ERROR_STATUS_COLD);
120972
121116
  }
120973
121117
  /**
121118
+ * Declare the fault kinds this device's integration can raise (code, label,
121119
+ * severity), served by `error.listFaultTypes` so a rule's code picker is
121120
+ * offered the integration's own words. The default is `[]`; a fault outside
121121
+ * the catalog is still published. Call it before or after `registerErrorCap`.
121122
+ */
121123
+ declareFaultTypes(types) {
121124
+ this.faultTypes = types.map((type) => ({ ...type }));
121125
+ }
121126
+ /**
120974
121127
  * Publish the device's fault. The slice is written; on an EDGE (a fault
120975
121128
  * starts, or one resolves) an attention episode opens or closes through the
120976
121129
  * alerts cap, which the notification center announces as
@@ -128987,6 +129140,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
128987
129140
  access: "view",
128988
129141
  role: "viewer"
128989
129142
  },
129143
+ "error.listFaultTypes": {
129144
+ capName: "error",
129145
+ capScope: "device",
129146
+ addonId: null,
129147
+ access: "view",
129148
+ role: "viewer"
129149
+ },
128990
129150
  "eventEmitter.getStatus": {
128991
129151
  capName: "event-emitter",
128992
129152
  capScope: "device",
@@ -137784,6 +137944,11 @@ Object.freeze({
137784
137944
  form: "single",
137785
137945
  optional: false
137786
137946
  }],
137947
+ "error.listFaultTypes": [{
137948
+ name: "deviceId",
137949
+ form: "single",
137950
+ optional: false
137951
+ }],
137787
137952
  "eventEmitter.getStatus": [{
137788
137953
  name: "deviceId",
137789
137954
  form: "single",
@@ -140501,7 +140666,8 @@ var NC_SYSTEM_EVENT_FILTER_KEYS = [
140501
140666
  "consumableLowPercent",
140502
140667
  "commandActions",
140503
140668
  "commandOutcomes",
140504
- "commandActorKinds"
140669
+ "commandActorKinds",
140670
+ "faultCodes"
140505
140671
  ];
140506
140672
  new Map(Object.entries({
140507
140673
  "device-online": "device-events",
@@ -140872,6 +141038,8 @@ z.object({
140872
141038
  nodeId: z.string().optional(),
140873
141039
  /** The alert's own action link (where the operator acts on it), when it has one. */
140874
141040
  actionUrl: z.string().optional(),
141041
+ /** A device fault episode: every active fault (`metadata.faults`), principal first. */
141042
+ faults: z.array(DeviceFaultSchema).optional(),
140875
141043
  at: z.number()
140876
141044
  });
140877
141045
  /** An episode is closed once its alert is completed or dismissed. */
@@ -140897,8 +141065,14 @@ function alertNodeId(alert) {
140897
141065
  }
140898
141066
  return alert.source?.type === "node" ? alert.source.id : void 0;
140899
141067
  }
141068
+ /** The faults a device-error alert carries in its metadata; none when absent or malformed. */
141069
+ function alertFaults(alert) {
141070
+ const parsed = z.array(DeviceFaultSchema).safeParse(alert.metadata?.["faults"]);
141071
+ return parsed.success && parsed.data.length > 0 ? parsed.data : void 0;
141072
+ }
140900
141073
  function alertEpisodePayload(alert, phase, at) {
140901
141074
  const nodeId = alertNodeId(alert);
141075
+ const faults = alertFaults(alert);
140902
141076
  return {
140903
141077
  phase,
140904
141078
  episodeId: alertEpisodeId(alert),
@@ -140913,6 +141087,7 @@ function alertEpisodePayload(alert, phase, at) {
140913
141087
  } : {},
140914
141088
  ...nodeId !== void 0 ? { nodeId } : {},
140915
141089
  ...alert.action?.href !== void 0 ? { actionUrl: alert.action.href } : {},
141090
+ ...faults !== void 0 ? { faults } : {},
140916
141091
  at
140917
141092
  };
140918
141093
  }
@@ -141198,6 +141373,9 @@ var STATE_SUMMARY_VARS = [
141198
141373
  ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
141199
141374
  ([...RULE_TEXT], [...ALERT_EPISODE]),
141200
141375
  ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
141376
+ ([...RULE_TEXT], [...DEVICE_ATTENTION]),
141377
+ ([...RULE_TEXT], [...DEVICE_ATTENTION]),
141378
+ ([...RULE_TEXT], [...DEVICE_ATTENTION]),
141201
141379
  [...RULE_TEXT],
141202
141380
  [...RULE_TEXT],
141203
141381
  [...RULE_TEXT],
@@ -1,5 +1,5 @@
1
1
  require("./chunk-Cek0wNdY.js");
2
- const require_wal_maintenance = require("./wal-maintenance-DlOdvy-L.js");
2
+ const require_wal_maintenance = require("./wal-maintenance-jK9K7Ob8.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-BTiASQ3_.mjs";
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-CHfhvqyV.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,4 +1,4 @@
1
- import { El as defineRecordKinds } from "./dist-aEgseEmg.mjs";
1
+ import { El as defineRecordKinds } from "./dist-_fOmkvGL.mjs";
2
2
  import { C as backdatedNotBefore, S as withUtcTimeEncoding, _ as NameConstraints, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, g as GeneralSubtrees, h as GeneralSubtree, i as Extension, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension, v as GeneralName, x as AsnConvert } from "./x509.es-BRiJgOvu.mjs";
3
3
  import { z } from "zod";
4
4
  import { X509Certificate, createHash, createPrivateKey, randomBytes, webcrypto } from "node:crypto";
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-Cek0wNdY.js");
2
- const require_dist = require("./dist-B-nGf0cw.js");
2
+ const require_dist = require("./dist-ByMqgbCg.js");
3
3
  const require_x509_es = require("./x509.es-WtnRNyYS.js");
4
4
  let zod = require("zod");
5
5
  let node_crypto = require("node:crypto");
@@ -1,7 +1,7 @@
1
1
  import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
2
- import { xu as userError } from "./dist-aEgseEmg.mjs";
2
+ import { xu as userError } from "./dist-_fOmkvGL.mjs";
3
3
  import { f as X509Certificate$1 } from "./x509.es-BRiJgOvu.mjs";
4
- import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-DxLcMLXg.mjs";
4
+ import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-C0N_7llq.mjs";
5
5
  import { X509Certificate, createPrivateKey } from "node:crypto";
6
6
  import { writeOwnerOnlyFileSync } from "@camstack/types/node";
7
7
  import { copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require("./chunk-Cek0wNdY.js");
2
- const require_dist = require("./dist-B-nGf0cw.js");
2
+ const require_dist = require("./dist-ByMqgbCg.js");
3
3
  const require_x509_es = require("./x509.es-WtnRNyYS.js");
4
- const require_hub_identity = require("./hub-identity-DKH4F5ig.js");
4
+ const require_hub_identity = require("./hub-identity-C91XSJ8N.js");
5
5
  let node_crypto = require("node:crypto");
6
6
  let _camstack_types_node = require("@camstack/types/node");
7
7
  let node_fs = require("node:fs");