elasticdash-test 0.1.18-alpha-19 → 0.1.18-alpha-20

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elasticdash-test",
3
- "version": "0.1.18-alpha-19",
3
+ "version": "0.1.18-alpha-20",
4
4
  "description": "AI-native test runner for ElasticDash workflow testing",
5
5
  "type": "module",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -103,3 +103,11 @@ export type { AgentTask, AgentPlan, AgentState, AgentTaskStatus, AgentPlanStatus
103
103
  export { startPortalServer } from './portal-server.js'
104
104
  export { executePortalTask } from './portal-executor.js'
105
105
  export type { PortalTask, PortalTaskResult, PortalServerOptions, PortalServerHandle, PortalStatus } from './types/portal.js'
106
+
107
+ // ─── Eager auto-init ────────────────────────────────────────
108
+ // When ELASTICDASH_API_KEY is set, automatically initialise observability mode
109
+ // at import time so the socket connection is established immediately (e.g. for
110
+ // onboarding detection). tryAutoInitHttpContext is idempotent and deduplicates
111
+ // concurrent calls, so this is safe even if interceptors trigger it again later.
112
+ import { tryAutoInitHttpContext } from './interceptors/telemetry-push.js'
113
+ tryAutoInitHttpContext().catch(() => {})