integrity-killswitch 0.3.0__py3-none-any.whl
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.
- agent_killswitch/__init__.py +63 -0
- agent_killswitch/__main__.py +10 -0
- agent_killswitch/ancestry.py +767 -0
- agent_killswitch/cloud.py +477 -0
- agent_killswitch/core.py +1214 -0
- agent_killswitch/hooks.py +748 -0
- agent_killswitch/mcp_server.py +551 -0
- agent_killswitch/network.py +1442 -0
- agent_killswitch/web.py +426 -0
- integrity_killswitch-0.3.0.dist-info/METADATA +356 -0
- integrity_killswitch-0.3.0.dist-info/RECORD +15 -0
- integrity_killswitch-0.3.0.dist-info/WHEEL +5 -0
- integrity_killswitch-0.3.0.dist-info/entry_points.txt +2 -0
- integrity_killswitch-0.3.0.dist-info/licenses/LICENSE +21 -0
- integrity_killswitch-0.3.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"""Local multi-vendor AI coding agent killswitch (stdlib only)."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .ancestry import detect_vendor, get_process_ancestor_names, web_actor
|
|
6
|
+
from .cloud import sync_cloud_state
|
|
7
|
+
from .core import (
|
|
8
|
+
EXIT_ALLOWED,
|
|
9
|
+
EXIT_HOOK_BLOCK,
|
|
10
|
+
EXIT_REFUSED,
|
|
11
|
+
KillswitchRefusedError,
|
|
12
|
+
check_or_refuse,
|
|
13
|
+
format_hook_refusal,
|
|
14
|
+
is_allowed,
|
|
15
|
+
load_state,
|
|
16
|
+
save_state,
|
|
17
|
+
)
|
|
18
|
+
from .hooks import install_hooks, uninstall_hooks
|
|
19
|
+
from .network import (
|
|
20
|
+
default_hardened_state_path,
|
|
21
|
+
freeze_or_thaw_agents,
|
|
22
|
+
harden_state,
|
|
23
|
+
net_cut,
|
|
24
|
+
net_restore,
|
|
25
|
+
net_status,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
__version__ = "0.3.0"
|
|
29
|
+
|
|
30
|
+
__all__ = [
|
|
31
|
+
"EXIT_ALLOWED",
|
|
32
|
+
"EXIT_HOOK_BLOCK",
|
|
33
|
+
"EXIT_REFUSED",
|
|
34
|
+
"KillswitchRefusedError",
|
|
35
|
+
"MCPServer",
|
|
36
|
+
"__version__",
|
|
37
|
+
"check_or_refuse",
|
|
38
|
+
"default_hardened_state_path",
|
|
39
|
+
"detect_vendor",
|
|
40
|
+
"format_hook_refusal",
|
|
41
|
+
"freeze_or_thaw_agents",
|
|
42
|
+
"get_process_ancestor_names",
|
|
43
|
+
"harden_state",
|
|
44
|
+
"install_hooks",
|
|
45
|
+
"is_allowed",
|
|
46
|
+
"load_state",
|
|
47
|
+
"net_cut",
|
|
48
|
+
"net_restore",
|
|
49
|
+
"net_status",
|
|
50
|
+
"save_state",
|
|
51
|
+
"serve_stdio",
|
|
52
|
+
"sync_cloud_state",
|
|
53
|
+
"uninstall_hooks",
|
|
54
|
+
"web_actor",
|
|
55
|
+
]
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def __getattr__(name: str):
|
|
59
|
+
if name in ("MCPServer", "serve_stdio"):
|
|
60
|
+
from . import mcp_server
|
|
61
|
+
|
|
62
|
+
return getattr(mcp_server, name)
|
|
63
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|