File size: 2,783 Bytes
da0ce7b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#!/usr/bin/env python3
"""Inert release facade for the unreleased interactive persona launcher."""

from __future__ import annotations

import json
import sys
from typing import Any, Dict

ASK_AUREON_RELEASE_HOLD = (
    "ask_aureon_hold:production_magic_star_release_unavailable"
)


def preflight() -> Dict[str, Any]:
    return {
        "status": "HOLD",
        "reason_code": "production_magic_star_release_unavailable",
        "production_ready": False,
        "effect_enabled": False,
        "browser_or_repl_started": False,
        "thread_started": False,
        "obsidian_attached": False,
        "vault_mutated": False,
        "bus_mutated": False,
    }


def _raise_hold() -> None:
    raise RuntimeError(ASK_AUREON_RELEASE_HOLD)


def apply_mood(*_args: Any, **_kwargs: Any) -> str:
    _raise_hold()


class PersonaResponseAdapter:
    """Compatibility shell for benchmark discovery; generation is held."""

    def __init__(self, *_args: Any, **_kwargs: Any) -> None:
        pass

    def prompt(self, *_args: Any, **_kwargs: Any) -> Any:
        _raise_hold()

    def stream(self, *_args: Any, **_kwargs: Any) -> Any:
        _raise_hold()

    def health_check(self) -> bool:
        return False


class ConversationSession:
    """Compatibility shell whose mutating conversation methods are held."""

    def __init__(self, *_args: Any, **_kwargs: Any) -> None:
        self.ambient = None
        self.obsidian = None
        self.transcript: list[Dict[str, Any]] = []

    def attach_obsidian(self, *_args: Any, **_kwargs: Any) -> str:
        _raise_hold()

    def mirror_to_obsidian(self, *_args: Any, **_kwargs: Any) -> None:
        _raise_hold()

    def ask(self, *_args: Any, **_kwargs: Any) -> Dict[str, Any]:
        _raise_hold()

    def detach_obsidian(self) -> None:
        self.obsidian = None

    def stats(self) -> Dict[str, Any]:
        return dict(preflight(), turns=0)


class AmbientEngine:
    """Compatibility shell that cannot create a background thread."""

    def __init__(self, *_args: Any, **_kwargs: Any) -> None:
        self._running = False

    def start(self) -> None:
        _raise_hold()

    def stop(self) -> None:
        self._running = False

    @property
    def running(self) -> bool:
        return False

    def _loop(self) -> None:
        _raise_hold()

    def _beat(self) -> None:
        _raise_hold()


def _build_session(*_args: Any, **_kwargs: Any) -> ConversationSession:
    _raise_hold()


def main(_argv: list[str] | None = None) -> int:
    print(json.dumps(preflight(), sort_keys=True), file=sys.stderr)
    return 2


if __name__ == "__main__":
    raise SystemExit(main())