Gallery: cover the 2.0 operator layer in the coverage check
Browse files- showcase.py +15 -5
showcase.py
CHANGED
|
@@ -87,7 +87,11 @@ def api_surface() -> tuple[list[str], list[str]]:
|
|
| 87 |
|
| 88 |
names, constants = [], []
|
| 89 |
modules = ["actions", "act", "observe", "perception", "brain", "models", "loop",
|
| 90 |
-
"safety", "desktop", "demo", "trace", "__main__"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
for module_name in modules:
|
| 92 |
module = importlib.import_module(f"tiny_computer_agent.{module_name}")
|
| 93 |
for name, obj in vars(module).items():
|
|
@@ -127,10 +131,16 @@ def write_card(entries: list[dict]) -> Path:
|
|
| 127 |
lines = [
|
| 128 |
"## Capability gallery",
|
| 129 |
"",
|
| 130 |
-
f"**{len(entries)} capabilities, one screenshot each - and
|
| 131 |
-
f"{len(callables)
|
| 132 |
-
f"protocols)
|
| 133 |
-
f"{len(set(constants) & set(pictured))} of its public
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
"",
|
| 135 |
"Nothing here is a mock-up. Each picture is produced by "
|
| 136 |
"[`showcase.py`](showcase.py): a command or a call is run for real, and its actual "
|
|
|
|
| 87 |
|
| 88 |
names, constants = [], []
|
| 89 |
modules = ["actions", "act", "observe", "perception", "brain", "models", "loop",
|
| 90 |
+
"safety", "desktop", "demo", "trace", "accessibility", "__main__",
|
| 91 |
+
# 2.0: the operator layer. A picture that ignores it would let the gallery's
|
| 92 |
+
# promise quietly mean "the pre-2.0 API", which is exactly the kind of claim
|
| 93 |
+
# this repository is supposed to be too honest to make.
|
| 94 |
+
"diff", "gates", "runner", "skills", "watchdog", "audit"]
|
| 95 |
for module_name in modules:
|
| 96 |
module = importlib.import_module(f"tiny_computer_agent.{module_name}")
|
| 97 |
for name, obj in vars(module).items():
|
|
|
|
| 131 |
lines = [
|
| 132 |
"## Capability gallery",
|
| 133 |
"",
|
| 134 |
+
f"**{len(entries)} capabilities, one screenshot each - and "
|
| 135 |
+
f"{len(set(callables) & set(pictured))} of the package's {len(callables)} public "
|
| 136 |
+
f"callables (functions, methods, classes and protocols) appear in at least one of "
|
| 137 |
+
f"them**, together with {len(set(constants) & set(pictured))} of its public "
|
| 138 |
+
f"constants.",
|
| 139 |
+
"",
|
| 140 |
+
(f"_Not yet pictured: {len(missing)} callables added in 2.0 - the gate, skill, "
|
| 141 |
+
f"runner, diff, watchdog and audit layers. They are covered by tests; the "
|
| 142 |
+
f"roadmap tracks the pictures._" if missing else
|
| 143 |
+
"_Every public callable in the package is pictured._"),
|
| 144 |
"",
|
| 145 |
"Nothing here is a mock-up. Each picture is produced by "
|
| 146 |
"[`showcase.py`](showcase.py): a command or a call is run for real, and its actual "
|