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.
@@ -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}")
@@ -0,0 +1,10 @@
1
+ """CLI entry point for `python -m agent_killswitch`."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import sys
6
+
7
+ from .core import main
8
+
9
+ if __name__ == "__main__":
10
+ sys.exit(main())