← Files HA Interaction AuditARCHIVED FILE

skills/ha-interaction-audit/assets/harness/adapter.js

671 Bytes · Oct 4, 2026 · 12:33 UTC

↓ Download file

import {createMockHass} from '/mock-hass.mjs';
import {createFaultController} from '/fault-controller.mjs';

// Replace this adapter with a mount of the verified active target resources.
// Supply explicit mock contracts and synthetic data. Never import live HA auth.
const faults = createFaultController();
const mock = createMockHass({faults});
window.__HA_AUDIT = {
  ready:false,
  identity:null,
  app:null,
  mock,
  faults,
  snapshot:() => ({adapterConfigured:false,intents:mock.intents}),
  dispose:() => mock.dispose()
};
document.getElementById('fixture-root').textContent =
  'Adapter not configured. Mount the verified dashboard before running assertions.';

SHA-256: 12d34d1af033f796d20fe5a88ac584aebe73de8829cbe1154c4cce087d74e6f7