File size: 1,096 Bytes
a574799
 
 
 
 
 
4058302
a574799
4058302
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a574799
 
eb2d131
 
4058302
eb2d131
4058302
 
a574799
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

"""Incident Command Center environment for OpenEnv.

The client module depends on the optional `openenv-core` package. We import
it lazily so that pure-domain consumers (such as the pytest domain suite)
can import this package even when OpenEnv is not installed.
"""

from __future__ import annotations

from .models import IncidentAction, IncidentObservation, IncidentState

__version__ = "3.0.0"

try:  # Optional runtime dependency — only required for HTTP clients.
    from .client import IncidentCommandEnvClient, SREEnvClient
except Exception:  # pragma: no cover - defensive fallback for domain-only users
    IncidentCommandEnvClient = None  # type: ignore[assignment]
    SREEnvClient = None  # type: ignore[assignment]

__all__ = [
    "IncidentAction",
    "IncidentObservation",
    "IncidentState",
    "IncidentCommandEnvClient",
    "SREEnvClient",
    "__version__",
]