Spaces:
Running on Zero
Running on Zero
Commit ·
f34cc82
1
Parent(s): 2273238
Deploy the control tower
Browse files- deploy/space/__pycache__/groq_client.cpython-311.pyc +0 -0
- deploy/space/__pycache__/local_model.cpython-311.pyc +0 -0
- tests/run_cases.py +5 -2
- tests/run_given.py +6 -2
- tower/ui/dist/assets/index-DqbAdF7q.js +0 -0
- tower/ui/dist/assets/index-nwvD2L4Q.js +0 -0
- tower/ui/dist/index.html +1 -1
- tower/ui/event_desk.py +24 -26
- tower/ui/reports.py +62 -32
- tower/ui/reset.py +13 -10
- tower/ui/runner.py +53 -16
- tower/ui/server.py +29 -23
- tower/ui/web/src/components/EventDesk.jsx +3 -2
- tower/ui/web/src/components/ResetButton.jsx +1 -2
- tower/ui/web/src/components/RunTests.jsx +11 -9
- tower/ui/web/src/locales/de.json +10 -0
- tower/ui/web/src/locales/es.json +10 -0
- tower/ui/web/src/locales/fr.json +10 -0
- tower/ui/web/src/locales/hi.json +10 -0
- tower/ui/web/src/locales/ja.json +10 -0
- tower/ui/web/src/locales/ko.json +10 -0
- tower/ui/web/src/locales/pt.json +10 -0
- tower/ui/web/src/locales/zh.json +10 -0
- tower/ui/web/src/pages/Events.jsx +3 -1
- tower/ui/web/src/pages/Guide.jsx +15 -12
- tower/ui/web/src/pages/Overview.jsx +11 -5
deploy/space/__pycache__/groq_client.cpython-311.pyc
ADDED
|
Binary file (15.6 kB). View file
|
|
|
deploy/space/__pycache__/local_model.cpython-311.pyc
ADDED
|
Binary file (13.1 kB). View file
|
|
|
tests/run_cases.py
CHANGED
|
@@ -24,7 +24,9 @@ from tower.agents.coordinator import handle_event # noqa: E402
|
|
| 24 |
from tower.graph import WorldGraph # noqa: E402
|
| 25 |
|
| 26 |
DATA = os.path.join(HITACHI, "Data", "hack_the_highway_package", "data")
|
| 27 |
-
|
|
|
|
|
|
|
| 28 |
WRITE_TOOLS = {"mes.reschedule", "mes.transfer", "dealer.notify", "dealer.stop_sale",
|
| 29 |
"crm.assign_loaner", "crm.notify_customer", "quality.hold_lot"}
|
| 30 |
SUPPLY_TOOLS = {"mes.reschedule", "mes.transfer", "dealer.notify", "crm.assign_loaner"}
|
|
@@ -395,7 +397,8 @@ def log_run(folder, reader, results):
|
|
| 395 |
entry = {"time": time.strftime("%Y-%m-%d %H:%M:%S"), "suite": SUITE_OF_FOLDER.get(folder, folder),
|
| 396 |
"folder": folder, "reader": reader, "passed": sum(r["verdict"] == "PASS" for r in results),
|
| 397 |
"total": len(results), "by_category": dict(by_cat)}
|
| 398 |
-
|
|
|
|
| 399 |
handle.write(json.dumps(entry) + "\n")
|
| 400 |
|
| 401 |
|
|
|
|
| 24 |
from tower.graph import WorldGraph # noqa: E402
|
| 25 |
|
| 26 |
DATA = os.path.join(HITACHI, "Data", "hack_the_highway_package", "data")
|
| 27 |
+
# Where runs are saved. The online dashboard points this at one visitor's workspace (TOWER_RUNS_DIR).
|
| 28 |
+
RUNS = os.environ.get("TOWER_RUNS_DIR") or os.path.join(HITACHI, "runs")
|
| 29 |
+
OUT = os.path.join(RUNS, "tests")
|
| 30 |
WRITE_TOOLS = {"mes.reschedule", "mes.transfer", "dealer.notify", "dealer.stop_sale",
|
| 31 |
"crm.assign_loaner", "crm.notify_customer", "quality.hold_lot"}
|
| 32 |
SUPPLY_TOOLS = {"mes.reschedule", "mes.transfer", "dealer.notify", "crm.assign_loaner"}
|
|
|
|
| 397 |
entry = {"time": time.strftime("%Y-%m-%d %H:%M:%S"), "suite": SUITE_OF_FOLDER.get(folder, folder),
|
| 398 |
"folder": folder, "reader": reader, "passed": sum(r["verdict"] == "PASS" for r in results),
|
| 399 |
"total": len(results), "by_category": dict(by_cat)}
|
| 400 |
+
os.makedirs(RUNS, exist_ok=True)
|
| 401 |
+
with open(os.path.join(RUNS, "test_log.jsonl"), "a", encoding="utf-8") as handle:
|
| 402 |
handle.write(json.dumps(entry) + "\n")
|
| 403 |
|
| 404 |
|
tests/run_given.py
CHANGED
|
@@ -28,7 +28,9 @@ sys.path.insert(0, HITACHI)
|
|
| 28 |
import run_cases as rc # noqa: E402
|
| 29 |
from tower.graph import WorldGraph # noqa: E402
|
| 30 |
|
| 31 |
-
OUT = os.path.join(
|
|
|
|
|
|
|
| 32 |
REAL = {"supplier_delay", "plant_outage", "quality_hold"}
|
| 33 |
|
| 34 |
# What each docx test case is about, and the graph-path evidence it requires.
|
|
@@ -46,6 +48,8 @@ def load_cases():
|
|
| 46 |
events = {e["event_id"]: e for e in json.load(open(os.path.join(rc.DATA, "events.json")))}
|
| 47 |
data = json.load(open(os.path.join(HERE, "given_cases.json")))
|
| 48 |
cases = data["cases"] if isinstance(data, dict) else data
|
|
|
|
|
|
|
| 49 |
for case in cases:
|
| 50 |
case["text"] = events[case["id"]]["text"]
|
| 51 |
case["source"] = events[case["id"]]["source"]
|
|
@@ -129,7 +133,7 @@ def _fields(inc: dict) -> str:
|
|
| 129 |
def write_report(all_results, cases, traces_by_reader, rows_by_reader):
|
| 130 |
names = list(all_results)
|
| 131 |
lines = [
|
| 132 |
-
"# Given test cases — the
|
| 133 |
"",
|
| 134 |
"Each event is graded twice:",
|
| 135 |
"",
|
|
|
|
| 28 |
import run_cases as rc # noqa: E402
|
| 29 |
from tower.graph import WorldGraph # noqa: E402
|
| 30 |
|
| 31 |
+
OUT = os.path.join(rc.RUNS, "given")
|
| 32 |
+
# TOWER_TEST_IDS=E-01,E-02,... grades only those events (the online demo's short set).
|
| 33 |
+
ONLY = {e.strip() for e in os.environ.get("TOWER_TEST_IDS", "").split(",") if e.strip()}
|
| 34 |
REAL = {"supplier_delay", "plant_outage", "quality_hold"}
|
| 35 |
|
| 36 |
# What each docx test case is about, and the graph-path evidence it requires.
|
|
|
|
| 48 |
events = {e["event_id"]: e for e in json.load(open(os.path.join(rc.DATA, "events.json")))}
|
| 49 |
data = json.load(open(os.path.join(HERE, "given_cases.json")))
|
| 50 |
cases = data["cases"] if isinstance(data, dict) else data
|
| 51 |
+
if ONLY:
|
| 52 |
+
cases = [c for c in cases if c["id"] in ONLY]
|
| 53 |
for case in cases:
|
| 54 |
case["text"] = events[case["id"]]["text"]
|
| 55 |
case["source"] = events[case["id"]]["source"]
|
|
|
|
| 133 |
def write_report(all_results, cases, traces_by_reader, rows_by_reader):
|
| 134 |
names = list(all_results)
|
| 135 |
lines = [
|
| 136 |
+
f"# Given test cases — the {len(cases)} given events",
|
| 137 |
"",
|
| 138 |
"Each event is graded twice:",
|
| 139 |
"",
|
tower/ui/dist/assets/index-DqbAdF7q.js
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tower/ui/dist/assets/index-nwvD2L4Q.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tower/ui/dist/index.html
CHANGED
|
@@ -34,7 +34,7 @@
|
|
| 34 |
@media (prefers-reduced-motion: reduce) { .boot div, .boot b::after { animation: none; } }
|
| 35 |
html[data-motion="reduce"] .boot div, html[data-motion="reduce"] .boot b::after { animation: none; }
|
| 36 |
</style>
|
| 37 |
-
<script type="module" crossorigin src="/assets/index-
|
| 38 |
<link rel="stylesheet" crossorigin href="/assets/index-BXAotZxv.css">
|
| 39 |
</head>
|
| 40 |
<body>
|
|
|
|
| 34 |
@media (prefers-reduced-motion: reduce) { .boot div, .boot b::after { animation: none; } }
|
| 35 |
html[data-motion="reduce"] .boot div, html[data-motion="reduce"] .boot b::after { animation: none; }
|
| 36 |
</style>
|
| 37 |
+
<script type="module" crossorigin src="/assets/index-nwvD2L4Q.js"></script>
|
| 38 |
<link rel="stylesheet" crossorigin href="/assets/index-BXAotZxv.css">
|
| 39 |
</head>
|
| 40 |
<body>
|
tower/ui/event_desk.py
CHANGED
|
@@ -8,8 +8,9 @@ Ollama is not running), and keeps the event beside
|
|
| 8 |
the official feed. The official events.json is never written.
|
| 9 |
|
| 10 |
Workspaces (TOWER_WORKSPACES=1, the online version): each visitor gets a Desk of their own, with
|
| 11 |
-
its own feed, added events, chat and
|
| 12 |
-
|
|
|
|
| 13 |
"""
|
| 14 |
|
| 15 |
from __future__ import annotations
|
|
@@ -133,10 +134,11 @@ DESK_NAMES = ("events.json", "traces.json", "action_log.jsonl", "chat.json")
|
|
| 133 |
class Desk:
|
| 134 |
"""One event feed: its files (the feed's run folder and the added events), its run, its updates."""
|
| 135 |
|
| 136 |
-
def __init__(self, desk_dir: str, feed_dir: str, backups: str):
|
| 137 |
self.desk_dir = desk_dir
|
| 138 |
self.feed_dir = feed_dir
|
| 139 |
-
self.backups = backups # where Reset events keeps its backups
|
|
|
|
| 140 |
self.events_path = os.path.join(desk_dir, "events.json")
|
| 141 |
self.traces_path = os.path.join(desk_dir, "traces.json")
|
| 142 |
self.log_path = os.path.join(desk_dir, "action_log.jsonl")
|
|
@@ -417,7 +419,7 @@ class Desk:
|
|
| 417 |
# The desk on this computer (no workspaces): runs/run1 and runs/desk, as before.
|
| 418 |
DEFAULT = Desk(DESK, FEED_DIR, os.path.join(HITACHI, "runs", ".reset"))
|
| 419 |
|
| 420 |
-
# Workspaces: one Desk per visitor, under runs/ws/<id>/ (desk/, run1/, .reset/). Ids are random,
|
| 421 |
# made by the server. An open tab checks in every few seconds (once a minute in the background), so a
|
| 422 |
# workspace with no requests for IDLE_MINUTES belongs to a closed tab: a background sweep deletes it,
|
| 423 |
# off the request path. At most MAX_WORKSPACES are kept.
|
|
@@ -429,28 +431,21 @@ _ws: dict[str, Desk] = {}
|
|
| 429 |
_ws_lock = threading.Lock()
|
| 430 |
|
| 431 |
|
| 432 |
-
def
|
| 433 |
-
""
|
| 434 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 435 |
|
|
|
|
|
|
|
|
|
|
| 436 |
os.makedirs(desk.desk_dir, exist_ok=True)
|
| 437 |
os.makedirs(desk.feed_dir, exist_ok=True)
|
| 438 |
-
|
| 439 |
-
src = os.path.join(FEED_DIR, name)
|
| 440 |
-
if not os.path.isfile(src):
|
| 441 |
-
continue
|
| 442 |
-
dest = os.path.join(desk.feed_dir, name)
|
| 443 |
-
if not DEMO_EVENTS:
|
| 444 |
-
shutil.copyfile(src, dest)
|
| 445 |
-
elif name.endswith(".json"):
|
| 446 |
-
_write(dest, [t for t in _read(src, []) if shown(t.get("event_id", ""))])
|
| 447 |
-
else:
|
| 448 |
-
with open(src, encoding="utf-8") as handle, open(dest, "w", encoding="utf-8") as out:
|
| 449 |
-
out.writelines(ln for ln in handle if ln.strip() and shown(json.loads(ln).get("event_id", "")))
|
| 450 |
-
for name in DESK_NAMES:
|
| 451 |
-
src = os.path.join(DESK, name)
|
| 452 |
-
if os.path.isfile(src):
|
| 453 |
-
shutil.copyfile(src, os.path.join(desk.desk_dir, name))
|
| 454 |
|
| 455 |
|
| 456 |
def _prune_workspaces(now: float, make_room: bool = True) -> None:
|
|
@@ -458,7 +453,10 @@ def _prune_workspaces(now: float, make_room: bool = True) -> None:
|
|
| 458 |
make_room, also the oldest ones past MAX_WORKSPACES, so a new one fits."""
|
| 459 |
import shutil
|
| 460 |
|
| 461 |
-
|
|
|
|
|
|
|
|
|
|
| 462 |
over = max(0, len(_ws) - MAX_WORKSPACES + 1) if make_room else 0
|
| 463 |
for used, wid in idle:
|
| 464 |
if now - used < IDLE_MINUTES * 60 and over <= 0:
|
|
@@ -494,7 +492,7 @@ def get(workspace: str | None = None) -> Desk:
|
|
| 494 |
if len(_ws) >= MAX_WORKSPACES:
|
| 495 |
_prune_workspaces(now)
|
| 496 |
root = os.path.join(WS_ROOT, workspace)
|
| 497 |
-
desk =
|
| 498 |
if not os.path.isdir(root):
|
| 499 |
_seed(desk)
|
| 500 |
_ws[workspace] = desk
|
|
|
|
| 8 |
the official feed. The official events.json is never written.
|
| 9 |
|
| 10 |
Workspaces (TOWER_WORKSPACES=1, the online version): each visitor gets a Desk of their own, with
|
| 11 |
+
its own feed, added events, chat, run and test runs, under runs/ws/<id>/. A new workspace starts
|
| 12 |
+
empty: nothing handled, no tests run. Without workspaces there is one Desk, on runs/run1 and
|
| 13 |
+
runs/desk, as before.
|
| 14 |
"""
|
| 15 |
|
| 16 |
from __future__ import annotations
|
|
|
|
| 134 |
class Desk:
|
| 135 |
"""One event feed: its files (the feed's run folder and the added events), its run, its updates."""
|
| 136 |
|
| 137 |
+
def __init__(self, desk_dir: str, feed_dir: str, backups: str, tests_dir: str | None = None):
|
| 138 |
self.desk_dir = desk_dir
|
| 139 |
self.feed_dir = feed_dir
|
| 140 |
+
self.backups = backups # where Reset events (and, online, Reset tests) keeps its backups
|
| 141 |
+
self.tests_dir = tests_dir or os.path.join(HITACHI, "runs") # where this desk's test runs are saved
|
| 142 |
self.events_path = os.path.join(desk_dir, "events.json")
|
| 143 |
self.traces_path = os.path.join(desk_dir, "traces.json")
|
| 144 |
self.log_path = os.path.join(desk_dir, "action_log.jsonl")
|
|
|
|
| 419 |
# The desk on this computer (no workspaces): runs/run1 and runs/desk, as before.
|
| 420 |
DEFAULT = Desk(DESK, FEED_DIR, os.path.join(HITACHI, "runs", ".reset"))
|
| 421 |
|
| 422 |
+
# Workspaces: one Desk per visitor, under runs/ws/<id>/ (desk/, run1/, tests/, .reset/). Ids are random,
|
| 423 |
# made by the server. An open tab checks in every few seconds (once a minute in the background), so a
|
| 424 |
# workspace with no requests for IDLE_MINUTES belongs to a closed tab: a background sweep deletes it,
|
| 425 |
# off the request path. At most MAX_WORKSPACES are kept.
|
|
|
|
| 431 |
_ws_lock = threading.Lock()
|
| 432 |
|
| 433 |
|
| 434 |
+
def _ws_desk(root: str) -> Desk:
|
| 435 |
+
return Desk(os.path.join(root, "desk"), os.path.join(root, "run1"), os.path.join(root, ".reset"),
|
| 436 |
+
os.path.join(root, "tests"))
|
| 437 |
+
|
| 438 |
+
|
| 439 |
+
# Online, a first visit (no cookie yet) reads this empty desk. It is never written, so it never exists
|
| 440 |
+
# on disk: every page shows its empty state. ("_blank" cannot be a workspace id: ids are 16+ characters.)
|
| 441 |
+
BLANK = _ws_desk(os.path.join(WS_ROOT, "_blank")) if WORKSPACES else DEFAULT
|
| 442 |
|
| 443 |
+
|
| 444 |
+
def _seed(desk: Desk) -> None:
|
| 445 |
+
"""A new workspace starts fresh: nothing handled, no events added, no tests run."""
|
| 446 |
os.makedirs(desk.desk_dir, exist_ok=True)
|
| 447 |
os.makedirs(desk.feed_dir, exist_ok=True)
|
| 448 |
+
os.makedirs(desk.tests_dir, exist_ok=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 449 |
|
| 450 |
|
| 451 |
def _prune_workspaces(now: float, make_room: bool = True) -> None:
|
|
|
|
| 453 |
make_room, also the oldest ones past MAX_WORKSPACES, so a new one fits."""
|
| 454 |
import shutil
|
| 455 |
|
| 456 |
+
from tower.ui import runner
|
| 457 |
+
|
| 458 |
+
grading = runner.busy_root()
|
| 459 |
+
idle = sorted((d.used, wid) for wid, d in _ws.items() if not d.running and d.tests_dir != grading)
|
| 460 |
over = max(0, len(_ws) - MAX_WORKSPACES + 1) if make_room else 0
|
| 461 |
for used, wid in idle:
|
| 462 |
if now - used < IDLE_MINUTES * 60 and over <= 0:
|
|
|
|
| 492 |
if len(_ws) >= MAX_WORKSPACES:
|
| 493 |
_prune_workspaces(now)
|
| 494 |
root = os.path.join(WS_ROOT, workspace)
|
| 495 |
+
desk = _ws_desk(root)
|
| 496 |
if not os.path.isdir(root):
|
| 497 |
_seed(desk)
|
| 498 |
_ws[workspace] = desk
|
tower/ui/reports.py
CHANGED
|
@@ -16,6 +16,10 @@ Two scores per case:
|
|
| 16 |
simulator and checks them against the handbook: free slots, transfers, loaner
|
| 17 |
priority, one notice per dealer, no failed calls.
|
| 18 |
Built on request and cached until any input file changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
"""
|
| 20 |
|
| 21 |
from __future__ import annotations
|
|
@@ -42,16 +46,25 @@ SUITES = [
|
|
| 42 |
"cases": "blind100_cases.json", "runs": "blind100"},
|
| 43 |
]
|
| 44 |
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
_lock = threading.Lock()
|
| 47 |
|
| 48 |
|
| 49 |
-
def _inputs() -> list[str]:
|
| 50 |
"""Every file the report depends on, for cache invalidation."""
|
| 51 |
paths = []
|
| 52 |
for suite in SUITES:
|
| 53 |
paths.append(os.path.join(TESTS, suite["cases"]))
|
| 54 |
-
folder = os.path.join(
|
| 55 |
if os.path.isdir(folder):
|
| 56 |
for name in sorted(os.listdir(folder)):
|
| 57 |
for f in ("results.json", "action_log.jsonl"):
|
|
@@ -65,7 +78,7 @@ MODEL_RUNS = os.path.join(RUNS, "model")
|
|
| 65 |
|
| 66 |
|
| 67 |
def _model_files() -> list[str]:
|
| 68 |
-
if not os.path.isdir(MODEL_RUNS):
|
| 69 |
return []
|
| 70 |
return [os.path.join(MODEL_RUNS, d, f) for d in sorted(os.listdir(MODEL_RUNS))
|
| 71 |
for f in ("summary.json", "results.json") if os.path.isfile(os.path.join(MODEL_RUNS, d, f))]
|
|
@@ -74,6 +87,8 @@ def _model_files() -> list[str]:
|
|
| 74 |
def model_eval() -> list[dict]:
|
| 75 |
"""tests/run_model.py results: each model on its own, scored against the expected graphs."""
|
| 76 |
out = []
|
|
|
|
|
|
|
| 77 |
for d in sorted(os.listdir(MODEL_RUNS)) if os.path.isdir(MODEL_RUNS) else []:
|
| 78 |
s_path, r_path = os.path.join(MODEL_RUNS, d, "summary.json"), os.path.join(MODEL_RUNS, d, "results.json")
|
| 79 |
if not os.path.isfile(s_path):
|
|
@@ -89,13 +104,17 @@ def model_eval() -> list[dict]:
|
|
| 89 |
return out
|
| 90 |
|
| 91 |
|
| 92 |
-
def
|
| 93 |
-
return
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
|
| 96 |
-
def revision() -> str:
|
| 97 |
"""Token for the dashboard. Changes when a result file, case file, or the test log changes."""
|
| 98 |
-
return str(_key())
|
| 99 |
|
| 100 |
|
| 101 |
def _load_cases(name: str) -> list[dict]:
|
|
@@ -104,7 +123,10 @@ def _load_cases(name: str) -> list[dict]:
|
|
| 104 |
return []
|
| 105 |
with open(path, encoding="utf-8") as handle:
|
| 106 |
data = json.load(handle)
|
| 107 |
-
|
|
|
|
|
|
|
|
|
|
| 108 |
|
| 109 |
|
| 110 |
def _label(folder_name: str) -> str:
|
|
@@ -198,7 +220,7 @@ def score_case(expected: dict, actual: dict) -> dict:
|
|
| 198 |
"mismatches": mismatches}
|
| 199 |
|
| 200 |
|
| 201 |
-
def build() -> dict:
|
| 202 |
if TESTS not in sys.path:
|
| 203 |
sys.path.insert(0, TESTS)
|
| 204 |
import run_cases as rc # the independent grader
|
|
@@ -210,7 +232,7 @@ def build() -> dict:
|
|
| 210 |
suites = []
|
| 211 |
for suite in SUITES:
|
| 212 |
cases = _load_cases(suite["cases"])
|
| 213 |
-
folder = os.path.join(
|
| 214 |
readers = []
|
| 215 |
for name in sorted(os.listdir(folder)) if os.path.isdir(folder) else []:
|
| 216 |
res_path = os.path.join(folder, name, "results.json")
|
|
@@ -278,7 +300,7 @@ def build() -> dict:
|
|
| 278 |
})
|
| 279 |
readers.sort(key=lambda r: r["updated"], reverse=True)
|
| 280 |
suites.append({k: suite[k] for k in ("id", "title", "subtitle")} | {"readers": readers})
|
| 281 |
-
return {"suites": suites, "system_prompt": _system_prompt(), "model_eval": model_eval(), "log": run_log(suites)}
|
| 282 |
|
| 283 |
|
| 284 |
def _by_category(items: list[dict]) -> dict:
|
|
@@ -290,21 +312,23 @@ def _by_category(items: list[dict]) -> dict:
|
|
| 290 |
return out
|
| 291 |
|
| 292 |
|
| 293 |
-
LOG =
|
| 294 |
|
| 295 |
|
| 296 |
-
def run_log(suites: list[dict]) -> list[dict]:
|
| 297 |
"""Every test run, newest first, from runs/test_log.jsonl. Runs from before the log existed
|
| 298 |
appear once each, dated by their results file."""
|
| 299 |
rows = []
|
| 300 |
-
|
| 301 |
-
|
|
|
|
| 302 |
for line in handle:
|
| 303 |
if line.strip():
|
| 304 |
try:
|
| 305 |
rows.append(json.loads(line))
|
| 306 |
except json.JSONDecodeError:
|
| 307 |
continue
|
|
|
|
| 308 |
logged = {(r["suite"], r["reader"]) for r in rows}
|
| 309 |
for s in suites:
|
| 310 |
for r in s["readers"]:
|
|
@@ -327,7 +351,7 @@ def _system_prompt() -> str | None:
|
|
| 327 |
return getattr(llm_reader, "_SYSTEM", None)
|
| 328 |
|
| 329 |
|
| 330 |
-
def delete(suite_id: str, reader_id: str) -> bool:
|
| 331 |
"""Delete one report: the runs/<suite>/<reader>/ folder (results, traces, action log).
|
| 332 |
|
| 333 |
Both names must match an existing suite and an existing folder inside it, so a crafted
|
|
@@ -336,7 +360,7 @@ def delete(suite_id: str, reader_id: str) -> bool:
|
|
| 336 |
suite = next((s for s in SUITES if s["id"] == suite_id), None)
|
| 337 |
if suite is None:
|
| 338 |
return False
|
| 339 |
-
parent = os.path.realpath(os.path.join(
|
| 340 |
if not os.path.isdir(parent) or reader_id not in os.listdir(parent):
|
| 341 |
return False
|
| 342 |
target = os.path.realpath(os.path.join(parent, reader_id))
|
|
@@ -344,29 +368,35 @@ def delete(suite_id: str, reader_id: str) -> bool:
|
|
| 344 |
return False
|
| 345 |
shutil.rmtree(target)
|
| 346 |
with _lock:
|
| 347 |
-
_cache
|
| 348 |
return True
|
| 349 |
|
| 350 |
|
| 351 |
-
def payload() -> dict:
|
| 352 |
"""Cached build; rebuilt when a cases file, results.json or action log changes."""
|
| 353 |
-
key = _key()
|
| 354 |
with _lock:
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 364 |
|
| 365 |
|
| 366 |
-
def write_summary(path: str =
|
| 367 |
"""Write runs/TEST_SUMMARY.md from the current results, so it never goes stale."""
|
|
|
|
| 368 |
if data is None:
|
| 369 |
-
data = payload()
|
| 370 |
lines = ["# Control tower — test summary", "",
|
| 371 |
f"Written {time.strftime('%Y-%m-%d %H:%M')} from the saved results by `tower/ui/reports.py`. "
|
| 372 |
"Each test's expected output is its answer key traced through the company graph (`tests/run_cases.py`, "
|
|
|
|
| 16 |
simulator and checks them against the handbook: free slots, transfers, loaner
|
| 17 |
priority, one notice per dealer, no failed calls.
|
| 18 |
Built on request and cached until any input file changes.
|
| 19 |
+
|
| 20 |
+
Online (TOWER_WORKSPACES=1) each visitor's runs live in their workspace (root=<workspace>/tests), and
|
| 21 |
+
only the given suite exists there, limited to the demo's events (TOWER_DEMO_EVENTS). The blind sets
|
| 22 |
+
and the laptop's saved runs are never shown online.
|
| 23 |
"""
|
| 24 |
|
| 25 |
from __future__ import annotations
|
|
|
|
| 46 |
"cases": "blind100_cases.json", "runs": "blind100"},
|
| 47 |
]
|
| 48 |
|
| 49 |
+
ONLINE = os.environ.get("TOWER_WORKSPACES", "") == "1"
|
| 50 |
+
DEMO = {e.strip() for e in os.environ.get("TOWER_DEMO_EVENTS", "").split(",") if e.strip()}
|
| 51 |
+
if ONLINE:
|
| 52 |
+
_given = dict(SUITES[0])
|
| 53 |
+
if DEMO:
|
| 54 |
+
_given["subtitle"] = (f"The {len(DEMO)} demo events, one of each kind, graded against the docx test "
|
| 55 |
+
"cases TC1–TC6")
|
| 56 |
+
SUITES = [_given]
|
| 57 |
+
|
| 58 |
+
_cache: dict = {}
|
| 59 |
_lock = threading.Lock()
|
| 60 |
|
| 61 |
|
| 62 |
+
def _inputs(root: str = RUNS) -> list[str]:
|
| 63 |
"""Every file the report depends on, for cache invalidation."""
|
| 64 |
paths = []
|
| 65 |
for suite in SUITES:
|
| 66 |
paths.append(os.path.join(TESTS, suite["cases"]))
|
| 67 |
+
folder = os.path.join(root, suite["runs"])
|
| 68 |
if os.path.isdir(folder):
|
| 69 |
for name in sorted(os.listdir(folder)):
|
| 70 |
for f in ("results.json", "action_log.jsonl"):
|
|
|
|
| 78 |
|
| 79 |
|
| 80 |
def _model_files() -> list[str]:
|
| 81 |
+
if ONLINE or not os.path.isdir(MODEL_RUNS):
|
| 82 |
return []
|
| 83 |
return [os.path.join(MODEL_RUNS, d, f) for d in sorted(os.listdir(MODEL_RUNS))
|
| 84 |
for f in ("summary.json", "results.json") if os.path.isfile(os.path.join(MODEL_RUNS, d, f))]
|
|
|
|
| 87 |
def model_eval() -> list[dict]:
|
| 88 |
"""tests/run_model.py results: each model on its own, scored against the expected graphs."""
|
| 89 |
out = []
|
| 90 |
+
if ONLINE:
|
| 91 |
+
return out
|
| 92 |
for d in sorted(os.listdir(MODEL_RUNS)) if os.path.isdir(MODEL_RUNS) else []:
|
| 93 |
s_path, r_path = os.path.join(MODEL_RUNS, d, "summary.json"), os.path.join(MODEL_RUNS, d, "results.json")
|
| 94 |
if not os.path.isfile(s_path):
|
|
|
|
| 104 |
return out
|
| 105 |
|
| 106 |
|
| 107 |
+
def _log(root: str = RUNS) -> str:
|
| 108 |
+
return os.path.join(root, "test_log.jsonl")
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
def _key(root: str = RUNS) -> tuple:
|
| 112 |
+
return tuple((p, os.path.getmtime(p)) for p in _inputs(root) + _model_files() + [_log(root)] if os.path.exists(p))
|
| 113 |
|
| 114 |
|
| 115 |
+
def revision(root: str = RUNS) -> str:
|
| 116 |
"""Token for the dashboard. Changes when a result file, case file, or the test log changes."""
|
| 117 |
+
return str(_key(root))
|
| 118 |
|
| 119 |
|
| 120 |
def _load_cases(name: str) -> list[dict]:
|
|
|
|
| 123 |
return []
|
| 124 |
with open(path, encoding="utf-8") as handle:
|
| 125 |
data = json.load(handle)
|
| 126 |
+
cases = data["cases"] if isinstance(data, dict) else data
|
| 127 |
+
if ONLINE and DEMO:
|
| 128 |
+
cases = [c for c in cases if c.get("id") in DEMO]
|
| 129 |
+
return cases
|
| 130 |
|
| 131 |
|
| 132 |
def _label(folder_name: str) -> str:
|
|
|
|
| 220 |
"mismatches": mismatches}
|
| 221 |
|
| 222 |
|
| 223 |
+
def build(root: str = RUNS) -> dict:
|
| 224 |
if TESTS not in sys.path:
|
| 225 |
sys.path.insert(0, TESTS)
|
| 226 |
import run_cases as rc # the independent grader
|
|
|
|
| 232 |
suites = []
|
| 233 |
for suite in SUITES:
|
| 234 |
cases = _load_cases(suite["cases"])
|
| 235 |
+
folder = os.path.join(root, suite["runs"])
|
| 236 |
readers = []
|
| 237 |
for name in sorted(os.listdir(folder)) if os.path.isdir(folder) else []:
|
| 238 |
res_path = os.path.join(folder, name, "results.json")
|
|
|
|
| 300 |
})
|
| 301 |
readers.sort(key=lambda r: r["updated"], reverse=True)
|
| 302 |
suites.append({k: suite[k] for k in ("id", "title", "subtitle")} | {"readers": readers})
|
| 303 |
+
return {"suites": suites, "system_prompt": _system_prompt(), "model_eval": model_eval(), "log": run_log(suites, root)}
|
| 304 |
|
| 305 |
|
| 306 |
def _by_category(items: list[dict]) -> dict:
|
|
|
|
| 312 |
return out
|
| 313 |
|
| 314 |
|
| 315 |
+
LOG = _log()
|
| 316 |
|
| 317 |
|
| 318 |
+
def run_log(suites: list[dict], root: str = RUNS) -> list[dict]:
|
| 319 |
"""Every test run, newest first, from runs/test_log.jsonl. Runs from before the log existed
|
| 320 |
appear once each, dated by their results file."""
|
| 321 |
rows = []
|
| 322 |
+
known = {s["id"] for s in suites}
|
| 323 |
+
if os.path.isfile(_log(root)):
|
| 324 |
+
with open(_log(root), encoding="utf-8") as handle:
|
| 325 |
for line in handle:
|
| 326 |
if line.strip():
|
| 327 |
try:
|
| 328 |
rows.append(json.loads(line))
|
| 329 |
except json.JSONDecodeError:
|
| 330 |
continue
|
| 331 |
+
rows = [r for r in rows if r.get("suite") in known] if ONLINE else rows
|
| 332 |
logged = {(r["suite"], r["reader"]) for r in rows}
|
| 333 |
for s in suites:
|
| 334 |
for r in s["readers"]:
|
|
|
|
| 351 |
return getattr(llm_reader, "_SYSTEM", None)
|
| 352 |
|
| 353 |
|
| 354 |
+
def delete(suite_id: str, reader_id: str, root: str = RUNS) -> bool:
|
| 355 |
"""Delete one report: the runs/<suite>/<reader>/ folder (results, traces, action log).
|
| 356 |
|
| 357 |
Both names must match an existing suite and an existing folder inside it, so a crafted
|
|
|
|
| 360 |
suite = next((s for s in SUITES if s["id"] == suite_id), None)
|
| 361 |
if suite is None:
|
| 362 |
return False
|
| 363 |
+
parent = os.path.realpath(os.path.join(root, suite["runs"]))
|
| 364 |
if not os.path.isdir(parent) or reader_id not in os.listdir(parent):
|
| 365 |
return False
|
| 366 |
target = os.path.realpath(os.path.join(parent, reader_id))
|
|
|
|
| 368 |
return False
|
| 369 |
shutil.rmtree(target)
|
| 370 |
with _lock:
|
| 371 |
+
_cache.pop(root, None)
|
| 372 |
return True
|
| 373 |
|
| 374 |
|
| 375 |
+
def payload(root: str = RUNS) -> dict:
|
| 376 |
"""Cached build; rebuilt when a cases file, results.json or action log changes."""
|
| 377 |
+
key = _key(root)
|
| 378 |
with _lock:
|
| 379 |
+
cached = _cache.get(root)
|
| 380 |
+
if cached is None or cached[0] != key:
|
| 381 |
+
data = build(root)
|
| 382 |
+
# One entry per workspace online; the sweeper deletes workspaces, so drop stale ones too.
|
| 383 |
+
if len(_cache) > 64:
|
| 384 |
+
_cache.clear()
|
| 385 |
+
_cache[root] = (key, data)
|
| 386 |
+
if os.path.isdir(root):
|
| 387 |
+
try:
|
| 388 |
+
write_summary(root=root, data=data)
|
| 389 |
+
except OSError:
|
| 390 |
+
pass
|
| 391 |
+
return data
|
| 392 |
+
return cached[1]
|
| 393 |
|
| 394 |
|
| 395 |
+
def write_summary(path: str | None = None, data: dict | None = None, root: str = RUNS) -> str:
|
| 396 |
"""Write runs/TEST_SUMMARY.md from the current results, so it never goes stale."""
|
| 397 |
+
path = path or os.path.join(root, "TEST_SUMMARY.md")
|
| 398 |
if data is None:
|
| 399 |
+
data = payload(root)
|
| 400 |
lines = ["# Control tower — test summary", "",
|
| 401 |
f"Written {time.strftime('%Y-%m-%d %H:%M')} from the saved results by `tower/ui/reports.py`. "
|
| 402 |
"Each test's expected output is its answer key traced through the company graph (`tests/run_cases.py`, "
|
tower/ui/reset.py
CHANGED
|
@@ -13,8 +13,8 @@ shows its empty state. Undo swaps the newest backup back in (and backs up whatev
|
|
| 13 |
an undo can itself be undone). The last few backups of each kind are kept. Confirmation is checked
|
| 14 |
here as well as in the page: a reset needs confirm="RESET".
|
| 15 |
|
| 16 |
-
Online, with a workspace per visitor,
|
| 17 |
-
|
| 18 |
"""
|
| 19 |
|
| 20 |
from __future__ import annotations
|
|
@@ -39,7 +39,7 @@ def _desk(desk=None):
|
|
| 39 |
|
| 40 |
def _root(kind: str, desk=None) -> str:
|
| 41 |
"""Where this kind's backups go."""
|
| 42 |
-
return os.path.join(_desk(desk).backups
|
| 43 |
|
| 44 |
|
| 45 |
def _paths(kind: str, desk=None) -> list[str]:
|
|
@@ -49,8 +49,10 @@ def _paths(kind: str, desk=None) -> list[str]:
|
|
| 49 |
return [d.feed_traces, d.feed_log, d.feed_outbox, d.desk_dir]
|
| 50 |
from tower.ui import reports
|
| 51 |
|
| 52 |
-
|
| 53 |
-
|
|
|
|
|
|
|
| 54 |
|
| 55 |
|
| 56 |
def _blank(kind: str, desk=None) -> None:
|
|
@@ -65,9 +67,10 @@ def _blank(kind: str, desk=None) -> None:
|
|
| 65 |
return
|
| 66 |
from tower.ui import reports
|
| 67 |
|
|
|
|
| 68 |
for s in reports.SUITES:
|
| 69 |
-
os.makedirs(os.path.join(
|
| 70 |
-
open(os.path.join(
|
| 71 |
|
| 72 |
|
| 73 |
def _has_data(path: str) -> bool:
|
|
@@ -116,7 +119,7 @@ def _stop(kind: str, desk=None) -> None:
|
|
| 116 |
else:
|
| 117 |
from tower.ui import runner
|
| 118 |
|
| 119 |
-
runner.stop()
|
| 120 |
|
| 121 |
|
| 122 |
def _forget(kind: str, desk=None) -> None:
|
|
@@ -126,9 +129,9 @@ def _forget(kind: str, desk=None) -> None:
|
|
| 126 |
else:
|
| 127 |
from tower.ui import reports, runner
|
| 128 |
|
| 129 |
-
runner.forget()
|
| 130 |
try:
|
| 131 |
-
reports.write_summary()
|
| 132 |
except OSError:
|
| 133 |
pass
|
| 134 |
|
|
|
|
| 13 |
an undo can itself be undone). The last few backups of each kind are kept. Confirmation is checked
|
| 14 |
here as well as in the page: a reset needs confirm="RESET".
|
| 15 |
|
| 16 |
+
Online, with a workspace per visitor, both kinds are that visitor's own (event_desk.Desk: its feed,
|
| 17 |
+
and its test runs under tests_dir), and the backups live in the workspace.
|
| 18 |
"""
|
| 19 |
|
| 20 |
from __future__ import annotations
|
|
|
|
| 39 |
|
| 40 |
def _root(kind: str, desk=None) -> str:
|
| 41 |
"""Where this kind's backups go."""
|
| 42 |
+
return os.path.join(_desk(desk).backups, kind)
|
| 43 |
|
| 44 |
|
| 45 |
def _paths(kind: str, desk=None) -> list[str]:
|
|
|
|
| 49 |
return [d.feed_traces, d.feed_log, d.feed_outbox, d.desk_dir]
|
| 50 |
from tower.ui import reports
|
| 51 |
|
| 52 |
+
root = _desk(desk).tests_dir
|
| 53 |
+
suites = [os.path.join(root, s["runs"]) for s in reports.SUITES]
|
| 54 |
+
model = [] if reports.ONLINE else [reports.MODEL_RUNS]
|
| 55 |
+
return suites + model + [os.path.join(root, "test_log.jsonl"), os.path.join(root, "TEST_SUMMARY.md")]
|
| 56 |
|
| 57 |
|
| 58 |
def _blank(kind: str, desk=None) -> None:
|
|
|
|
| 67 |
return
|
| 68 |
from tower.ui import reports
|
| 69 |
|
| 70 |
+
root = _desk(desk).tests_dir
|
| 71 |
for s in reports.SUITES:
|
| 72 |
+
os.makedirs(os.path.join(root, s["runs"]), exist_ok=True)
|
| 73 |
+
open(os.path.join(root, "test_log.jsonl"), "w", encoding="utf-8").close()
|
| 74 |
|
| 75 |
|
| 76 |
def _has_data(path: str) -> bool:
|
|
|
|
| 119 |
else:
|
| 120 |
from tower.ui import runner
|
| 121 |
|
| 122 |
+
runner.stop(_desk(desk).tests_dir)
|
| 123 |
|
| 124 |
|
| 125 |
def _forget(kind: str, desk=None) -> None:
|
|
|
|
| 129 |
else:
|
| 130 |
from tower.ui import reports, runner
|
| 131 |
|
| 132 |
+
runner.forget(_desk(desk).tests_dir)
|
| 133 |
try:
|
| 134 |
+
reports.write_summary(root=_desk(desk).tests_dir)
|
| 135 |
except OSError:
|
| 136 |
pass
|
| 137 |
|
tower/ui/runner.py
CHANGED
|
@@ -3,6 +3,10 @@
|
|
| 3 |
The Tests page posts here, then reads /api/run (and the event stream) to draw the run while
|
| 4 |
the grader is still going. One run at a time. The commands are the same ones start.py uses;
|
| 5 |
the request can only pick a known suite and rules, llm, or both.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
"""
|
| 7 |
|
| 8 |
from __future__ import annotations
|
|
@@ -41,6 +45,10 @@ _ok: bool | None = None
|
|
| 41 |
_error: str | None = None
|
| 42 |
_tail: list[str] = []
|
| 43 |
_ollama = {"at": 0.0, "ok": False, "why": "not checked"}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
|
| 46 |
def ollama_info() -> tuple[bool, str]:
|
|
@@ -72,11 +80,7 @@ def _specs():
|
|
| 72 |
def _case_count(spec) -> int:
|
| 73 |
from tower.ui import reports
|
| 74 |
|
| 75 |
-
|
| 76 |
-
with open(path, encoding="utf-8") as handle:
|
| 77 |
-
data = json.load(handle)
|
| 78 |
-
cases = data["cases"] if isinstance(data, dict) and "cases" in data else data
|
| 79 |
-
return len(cases)
|
| 80 |
|
| 81 |
|
| 82 |
def _command(spec, reader: str) -> list[str]:
|
|
@@ -122,18 +126,38 @@ def _snapshot() -> dict:
|
|
| 122 |
}
|
| 123 |
|
| 124 |
|
| 125 |
-
def
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
"""Reset tests: drop the last grade so the page stops showing cases whose files are gone."""
|
| 127 |
global _running, _reader, _suites, _passed, _failed, _total, _ok, _error, _tail
|
| 128 |
with _lock:
|
|
|
|
|
|
|
| 129 |
_running, _reader, _suites, _passed, _failed, _total, _ok, _error, _tail = False, None, [], 0, 0, 0, None, None, []
|
| 130 |
_emit({"type": "reset"})
|
| 131 |
|
| 132 |
|
| 133 |
-
def status() -> dict:
|
| 134 |
ollama_info()
|
| 135 |
with _lock:
|
| 136 |
-
return _snapshot()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
|
| 138 |
|
| 139 |
def _emit(event: dict) -> None:
|
|
@@ -155,9 +179,11 @@ def _note(text: str) -> None:
|
|
| 155 |
_emit({"type": "log", "text": text})
|
| 156 |
|
| 157 |
|
| 158 |
-
def start(reader: str, suite_ids: list[str] | None) -> dict:
|
| 159 |
"""Begin a grade. ValueError is a bad request. error=already running is a 409."""
|
| 160 |
-
global _running, _cancel, _reader, _model, _suites, _passed, _failed, _total, _ok, _error, _tail
|
|
|
|
|
|
|
| 161 |
if reader not in READERS:
|
| 162 |
raise ValueError("reader must be rules, llm, or both")
|
| 163 |
specs = _specs()
|
|
@@ -178,7 +204,8 @@ def start(reader: str, suite_ids: list[str] | None) -> dict:
|
|
| 178 |
planned.append(_blank_suite(specs[sid], _case_count(specs[sid]) * passes))
|
| 179 |
with _lock:
|
| 180 |
if _running:
|
| 181 |
-
return {"error": "A run is already going"}
|
|
|
|
| 182 |
_running = True
|
| 183 |
_cancel = False
|
| 184 |
_reader = reader
|
|
@@ -196,10 +223,12 @@ def start(reader: str, suite_ids: list[str] | None) -> dict:
|
|
| 196 |
return {"started": True, "reader": reader, "suites": chosen, "total": total}
|
| 197 |
|
| 198 |
|
| 199 |
-
def stop() -> dict:
|
| 200 |
"""End the grade that is going. Safe to call when nothing is running."""
|
| 201 |
global _cancel
|
| 202 |
with _lock:
|
|
|
|
|
|
|
| 203 |
_cancel = True
|
| 204 |
proc = _proc
|
| 205 |
if proc is not None and proc.poll() is None:
|
|
@@ -212,13 +241,14 @@ def stop() -> dict:
|
|
| 212 |
return _snapshot()
|
| 213 |
|
| 214 |
|
| 215 |
-
def follow():
|
| 216 |
-
"""Yield ('state', snapshot) once, then ('update', event) for each later change, and pings.
|
|
|
|
| 217 |
ok, why = ollama_info()
|
| 218 |
with _lock:
|
| 219 |
_ollama["ok"], _ollama["why"] = ok, why
|
| 220 |
seq = _seq
|
| 221 |
-
snap = _snapshot()
|
| 222 |
yield "state", snap
|
| 223 |
while True:
|
| 224 |
with _lock:
|
|
@@ -227,6 +257,8 @@ def follow():
|
|
| 227 |
fresh = [(n, ev) for n, ev in _deltas if n > seq]
|
| 228 |
if fresh:
|
| 229 |
seq = fresh[-1][0]
|
|
|
|
|
|
|
| 230 |
if not fresh:
|
| 231 |
yield "ping", {"seq": seq}
|
| 232 |
continue
|
|
@@ -271,7 +303,7 @@ def _finish(ok: bool, error: str | None) -> None:
|
|
| 271 |
try:
|
| 272 |
from tower.ui import reports
|
| 273 |
|
| 274 |
-
reports.write_summary()
|
| 275 |
except Exception as exc: # noqa: BLE001 - the grade is already on disk; the page still reloads it
|
| 276 |
with _lock:
|
| 277 |
_note(f"Could not write the summary: {exc}")
|
|
@@ -289,6 +321,11 @@ def _run_suite(reader: str, spec) -> int:
|
|
| 289 |
env = os.environ.copy()
|
| 290 |
env["PYTHONUNBUFFERED"] = "1"
|
| 291 |
env["PYTHONIOENCODING"] = "utf-8"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 292 |
with _lock:
|
| 293 |
if _cancel:
|
| 294 |
_set_suite(spec["id"], status="stopped")
|
|
|
|
| 3 |
The Tests page posts here, then reads /api/run (and the event stream) to draw the run while
|
| 4 |
the grader is still going. One run at a time. The commands are the same ones start.py uses;
|
| 5 |
the request can only pick a known suite and rules, llm, or both.
|
| 6 |
+
|
| 7 |
+
Online (TOWER_WORKSPACES=1) a grade belongs to the visitor who started it: it writes into their
|
| 8 |
+
workspace (root), only they see it, it reads with the AI model alone, and it grades only the demo's
|
| 9 |
+
events. One grade runs at a time; another visitor who asks meanwhile is told to try again shortly.
|
| 10 |
"""
|
| 11 |
|
| 12 |
from __future__ import annotations
|
|
|
|
| 45 |
_error: str | None = None
|
| 46 |
_tail: list[str] = []
|
| 47 |
_ollama = {"at": 0.0, "ok": False, "why": "not checked"}
|
| 48 |
+
ONLINE = os.environ.get("TOWER_WORKSPACES", "") == "1"
|
| 49 |
+
RUNS = os.path.join(HITACHI, "runs")
|
| 50 |
+
_root = RUNS # where the current (or last) grade writes; online, its visitor's workspace
|
| 51 |
+
BUSY = "Someone else is running the tests right now. Try again in a minute."
|
| 52 |
|
| 53 |
|
| 54 |
def ollama_info() -> tuple[bool, str]:
|
|
|
|
| 80 |
def _case_count(spec) -> int:
|
| 81 |
from tower.ui import reports
|
| 82 |
|
| 83 |
+
return len(reports._load_cases(spec["cases"])) # online, only the demo's events
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
|
| 86 |
def _command(spec, reader: str) -> list[str]:
|
|
|
|
| 126 |
}
|
| 127 |
|
| 128 |
|
| 129 |
+
def _mine(root: str | None) -> bool:
|
| 130 |
+
"""Caller holds _lock. Whether this visitor (root) owns the current grade. Always on a laptop."""
|
| 131 |
+
return not ONLINE or (root or RUNS) == _root
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
def _blank_snapshot() -> dict:
|
| 135 |
+
"""Caller holds _lock. What a visitor sees while someone else's grade is the one in memory."""
|
| 136 |
+
return {"seq": _seq, "running": False, "reader": None, "model": _model, "ollama": _ollama["ok"],
|
| 137 |
+
"why": _ollama["why"], "passed": 0, "failed": 0, "total": 0, "ok": None, "error": None,
|
| 138 |
+
"tail": [], "suites": []}
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
def forget(root: str | None = None) -> None:
|
| 142 |
"""Reset tests: drop the last grade so the page stops showing cases whose files are gone."""
|
| 143 |
global _running, _reader, _suites, _passed, _failed, _total, _ok, _error, _tail
|
| 144 |
with _lock:
|
| 145 |
+
if not _mine(root):
|
| 146 |
+
return
|
| 147 |
_running, _reader, _suites, _passed, _failed, _total, _ok, _error, _tail = False, None, [], 0, 0, 0, None, None, []
|
| 148 |
_emit({"type": "reset"})
|
| 149 |
|
| 150 |
|
| 151 |
+
def status(root: str | None = None) -> dict:
|
| 152 |
ollama_info()
|
| 153 |
with _lock:
|
| 154 |
+
return _snapshot() if _mine(root) else _blank_snapshot()
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
def busy_root() -> str | None:
|
| 158 |
+
"""The workspace a grade is writing into right now, or None."""
|
| 159 |
+
with _lock:
|
| 160 |
+
return _root if _running else None
|
| 161 |
|
| 162 |
|
| 163 |
def _emit(event: dict) -> None:
|
|
|
|
| 179 |
_emit({"type": "log", "text": text})
|
| 180 |
|
| 181 |
|
| 182 |
+
def start(reader: str, suite_ids: list[str] | None, root: str | None = None) -> dict:
|
| 183 |
"""Begin a grade. ValueError is a bad request. error=already running is a 409."""
|
| 184 |
+
global _running, _cancel, _reader, _model, _suites, _passed, _failed, _total, _ok, _error, _tail, _root
|
| 185 |
+
if ONLINE:
|
| 186 |
+
reader, suite_ids = "llm", ["given"] # online: the AI model alone, on the demo's events
|
| 187 |
if reader not in READERS:
|
| 188 |
raise ValueError("reader must be rules, llm, or both")
|
| 189 |
specs = _specs()
|
|
|
|
| 204 |
planned.append(_blank_suite(specs[sid], _case_count(specs[sid]) * passes))
|
| 205 |
with _lock:
|
| 206 |
if _running:
|
| 207 |
+
return {"error": "A run is already going" if _mine(root) else BUSY, "busy": not _mine(root)}
|
| 208 |
+
_root = root or RUNS
|
| 209 |
_running = True
|
| 210 |
_cancel = False
|
| 211 |
_reader = reader
|
|
|
|
| 223 |
return {"started": True, "reader": reader, "suites": chosen, "total": total}
|
| 224 |
|
| 225 |
|
| 226 |
+
def stop(root: str | None = None) -> dict:
|
| 227 |
"""End the grade that is going. Safe to call when nothing is running."""
|
| 228 |
global _cancel
|
| 229 |
with _lock:
|
| 230 |
+
if not _mine(root):
|
| 231 |
+
return _blank_snapshot()
|
| 232 |
_cancel = True
|
| 233 |
proc = _proc
|
| 234 |
if proc is not None and proc.poll() is None:
|
|
|
|
| 241 |
return _snapshot()
|
| 242 |
|
| 243 |
|
| 244 |
+
def follow(root: str | None = None):
|
| 245 |
+
"""Yield ('state', snapshot) once, then ('update', event) for each later change, and pings.
|
| 246 |
+
Online, changes to another visitor's grade are not sent (a ping instead)."""
|
| 247 |
ok, why = ollama_info()
|
| 248 |
with _lock:
|
| 249 |
_ollama["ok"], _ollama["why"] = ok, why
|
| 250 |
seq = _seq
|
| 251 |
+
snap = _snapshot() if _mine(root) else _blank_snapshot()
|
| 252 |
yield "state", snap
|
| 253 |
while True:
|
| 254 |
with _lock:
|
|
|
|
| 257 |
fresh = [(n, ev) for n, ev in _deltas if n > seq]
|
| 258 |
if fresh:
|
| 259 |
seq = fresh[-1][0]
|
| 260 |
+
if not _mine(root):
|
| 261 |
+
fresh = []
|
| 262 |
if not fresh:
|
| 263 |
yield "ping", {"seq": seq}
|
| 264 |
continue
|
|
|
|
| 303 |
try:
|
| 304 |
from tower.ui import reports
|
| 305 |
|
| 306 |
+
reports.write_summary(root=_root)
|
| 307 |
except Exception as exc: # noqa: BLE001 - the grade is already on disk; the page still reloads it
|
| 308 |
with _lock:
|
| 309 |
_note(f"Could not write the summary: {exc}")
|
|
|
|
| 321 |
env = os.environ.copy()
|
| 322 |
env["PYTHONUNBUFFERED"] = "1"
|
| 323 |
env["PYTHONIOENCODING"] = "utf-8"
|
| 324 |
+
if ONLINE:
|
| 325 |
+
from tower.ui import reports
|
| 326 |
+
|
| 327 |
+
env["TOWER_RUNS_DIR"] = _root
|
| 328 |
+
env["TOWER_TEST_IDS"] = ",".join(sorted(reports.DEMO))
|
| 329 |
with _lock:
|
| 330 |
if _cancel:
|
| 331 |
_set_suite(spec["id"], status="stopped")
|
tower/ui/server.py
CHANGED
|
@@ -75,8 +75,6 @@ STATIC_TYPES = {
|
|
| 75 |
".css": "text/css; charset=utf-8", ".json": "application/json", ".svg": "image/svg+xml",
|
| 76 |
".png": "image/png", ".ico": "image/x-icon", ".woff2": "font/woff2", ".md": "text/markdown; charset=utf-8",
|
| 77 |
}
|
| 78 |
-
# Test-suite run folders the knowledge graph may read traces from (suite id -> runs/ subfolder).
|
| 79 |
-
SUITE_RUNS = {"given": "given", "blind": "blind", "blind100": "blind100"}
|
| 80 |
EVENTS = os.path.join(HITACHI, "Data", "hack_the_highway_package", "data", "events.json")
|
| 81 |
# TOWER_RUN_DIR=runs/live shows the live channel feed instead of the batch run.
|
| 82 |
RUN_DIR = os.path.join(HITACHI, os.environ.get("TOWER_RUN_DIR", os.path.join("runs", "run1")))
|
|
@@ -192,9 +190,12 @@ def knowledge_payload(query, desk):
|
|
| 192 |
traces = desk.feed_traces
|
| 193 |
run = (query.get("run") or [""])[0]
|
| 194 |
if run:
|
|
|
|
|
|
|
| 195 |
suite, _, reader = run.partition("/")
|
| 196 |
-
|
| 197 |
-
|
|
|
|
| 198 |
raise NotFound(f"no test run {run}")
|
| 199 |
traces = os.path.join(parent, reader, "traces.json")
|
| 200 |
if run:
|
|
@@ -223,7 +224,7 @@ def revision_payload(desk):
|
|
| 223 |
"""Changes when the run files or any saved test result change. Stat calls only, no report build."""
|
| 224 |
from tower.ui import reports
|
| 225 |
|
| 226 |
-
stamps = [reports.revision()]
|
| 227 |
for path in (desk.feed_traces, desk.feed_log, desk.feed_outbox, EVENTS, ONTOLOGY_JSON, *desk.stamp_paths()):
|
| 228 |
if os.path.isfile(path):
|
| 229 |
st = os.stat(path)
|
|
@@ -273,7 +274,7 @@ class Handler(BaseHTTPRequestHandler):
|
|
| 273 |
wid = self._new_ws or secrets.token_urlsafe(18)
|
| 274 |
self._new_ws = wid
|
| 275 |
if not write:
|
| 276 |
-
return event_desk.
|
| 277 |
return event_desk.get(wid)
|
| 278 |
|
| 279 |
def end_headers(self):
|
|
@@ -324,7 +325,7 @@ class Handler(BaseHTTPRequestHandler):
|
|
| 324 |
if path == "/api/mode":
|
| 325 |
from tower.ui import event_desk
|
| 326 |
|
| 327 |
-
# Online, each visitor has a workspace
|
| 328 |
return self._json({"workspaces": event_desk.WORKSPACES, "demo": sorted(event_desk.DEMO_EVENTS)})
|
| 329 |
if path == "/":
|
| 330 |
built = os.path.join(DIST, "index.html")
|
|
@@ -367,9 +368,17 @@ class Handler(BaseHTTPRequestHandler):
|
|
| 367 |
if path == "/api/ontology_export":
|
| 368 |
return self._json(ontology_export())
|
| 369 |
if split.path.startswith("/runs/") and split.path.endswith(".md"):
|
| 370 |
-
return self._static(
|
| 371 |
if path == "/api/logs":
|
| 372 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 373 |
if path == "/api/domains":
|
| 374 |
from tower.domains import payload as domain_payload
|
| 375 |
|
|
@@ -383,7 +392,9 @@ class Handler(BaseHTTPRequestHandler):
|
|
| 383 |
if path == "/api/summary.pdf":
|
| 384 |
from tower.ui import summary_pdf
|
| 385 |
|
| 386 |
-
|
|
|
|
|
|
|
| 387 |
self.send_response(200)
|
| 388 |
self.send_header("Content-Type", "application/pdf")
|
| 389 |
self.send_header("Content-Disposition", f'attachment; filename="{summary_pdf.filename()}"')
|
|
@@ -405,7 +416,7 @@ class Handler(BaseHTTPRequestHandler):
|
|
| 405 |
if path == "/api/test_reports":
|
| 406 |
from tower.ui import reports
|
| 407 |
|
| 408 |
-
return self._json(reports.payload())
|
| 409 |
if path == "/api/revision":
|
| 410 |
return self._json(revision_payload(desk))
|
| 411 |
if path == "/api/events/chat":
|
|
@@ -417,7 +428,7 @@ class Handler(BaseHTTPRequestHandler):
|
|
| 417 |
if path == "/api/run":
|
| 418 |
from tower.ui import runner
|
| 419 |
|
| 420 |
-
return self._json(runner.status())
|
| 421 |
if path == "/api/run/stream":
|
| 422 |
return self._stream_run()
|
| 423 |
except NotFound as exc:
|
|
@@ -457,11 +468,8 @@ class Handler(BaseHTTPRequestHandler):
|
|
| 457 |
from tower.ui import event_desk, runner
|
| 458 |
|
| 459 |
desk = self._desk(write=True)
|
| 460 |
-
# Online the test results are shared by every visitor: nobody grades or clears them from the page.
|
| 461 |
-
if event_desk.WORKSPACES and path in ("/api/run", "/api/run/stop"):
|
| 462 |
-
return self._json({"error": "Tests are read-only online"}, 403)
|
| 463 |
if path == "/api/run/stop":
|
| 464 |
-
return self._json(runner.stop())
|
| 465 |
if path == "/api/events/run/stop":
|
| 466 |
return self._json(desk.stop())
|
| 467 |
try:
|
|
@@ -481,8 +489,6 @@ class Handler(BaseHTTPRequestHandler):
|
|
| 481 |
from tower.ui import reset
|
| 482 |
|
| 483 |
kind = str(body.get("kind") or "")
|
| 484 |
-
if event_desk.WORKSPACES and kind != "events":
|
| 485 |
-
return self._json({"error": "Tests are read-only online"}, 403)
|
| 486 |
try:
|
| 487 |
if path == "/api/reset":
|
| 488 |
return self._json(reset.reset(kind, str(body.get("confirm") or ""), desk))
|
|
@@ -499,7 +505,7 @@ class Handler(BaseHTTPRequestHandler):
|
|
| 499 |
return self._json(result, 409)
|
| 500 |
return self._json(result)
|
| 501 |
try:
|
| 502 |
-
result = runner.start(body.get("reader") or "rules", body.get("suites"))
|
| 503 |
except ValueError as exc:
|
| 504 |
return self._json({"error": str(exc)}, 400)
|
| 505 |
except OSError as exc:
|
|
@@ -539,15 +545,14 @@ class Handler(BaseHTTPRequestHandler):
|
|
| 539 |
return self._json({"error": "forbidden"}, 403)
|
| 540 |
from tower.ui import event_desk
|
| 541 |
|
| 542 |
-
|
| 543 |
-
return self._json({"error": "Tests are read-only online"}, 403)
|
| 544 |
parts = [urllib.parse.unquote(p) for p in urllib.parse.urlsplit(self.path).path.strip("/").split("/")]
|
| 545 |
if len(parts) != 4 or parts[:2] != ["api", "test_reports"]:
|
| 546 |
return self._json({"error": "not found"}, 404)
|
| 547 |
from tower.ui import reports
|
| 548 |
|
| 549 |
try:
|
| 550 |
-
removed = reports.delete(parts[2], parts[3])
|
| 551 |
except OSError as exc:
|
| 552 |
return self._json({"error": "delete failed", "detail": str(exc)}, 500)
|
| 553 |
if not removed:
|
|
@@ -597,7 +602,8 @@ class Handler(BaseHTTPRequestHandler):
|
|
| 597 |
"""Server-sent events for the live grade. One event per case, plus a snapshot on connect."""
|
| 598 |
from tower.ui import runner
|
| 599 |
|
| 600 |
-
|
|
|
|
| 601 |
|
| 602 |
def _static(self, root, rel):
|
| 603 |
"""Serve a file under root; anything that resolves outside it is a 404."""
|
|
|
|
| 75 |
".css": "text/css; charset=utf-8", ".json": "application/json", ".svg": "image/svg+xml",
|
| 76 |
".png": "image/png", ".ico": "image/x-icon", ".woff2": "font/woff2", ".md": "text/markdown; charset=utf-8",
|
| 77 |
}
|
|
|
|
|
|
|
| 78 |
EVENTS = os.path.join(HITACHI, "Data", "hack_the_highway_package", "data", "events.json")
|
| 79 |
# TOWER_RUN_DIR=runs/live shows the live channel feed instead of the batch run.
|
| 80 |
RUN_DIR = os.path.join(HITACHI, os.environ.get("TOWER_RUN_DIR", os.path.join("runs", "run1")))
|
|
|
|
| 190 |
traces = desk.feed_traces
|
| 191 |
run = (query.get("run") or [""])[0]
|
| 192 |
if run:
|
| 193 |
+
from tower.ui import reports
|
| 194 |
+
|
| 195 |
suite, _, reader = run.partition("/")
|
| 196 |
+
known = {s["id"]: s["runs"] for s in reports.SUITES}
|
| 197 |
+
parent = os.path.join(desk.tests_dir, known.get(suite, ""))
|
| 198 |
+
if suite not in known or not os.path.isdir(parent) or reader not in os.listdir(parent):
|
| 199 |
raise NotFound(f"no test run {run}")
|
| 200 |
traces = os.path.join(parent, reader, "traces.json")
|
| 201 |
if run:
|
|
|
|
| 224 |
"""Changes when the run files or any saved test result change. Stat calls only, no report build."""
|
| 225 |
from tower.ui import reports
|
| 226 |
|
| 227 |
+
stamps = [reports.revision(desk.tests_dir)]
|
| 228 |
for path in (desk.feed_traces, desk.feed_log, desk.feed_outbox, EVENTS, ONTOLOGY_JSON, *desk.stamp_paths()):
|
| 229 |
if os.path.isfile(path):
|
| 230 |
st = os.stat(path)
|
|
|
|
| 274 |
wid = self._new_ws or secrets.token_urlsafe(18)
|
| 275 |
self._new_ws = wid
|
| 276 |
if not write:
|
| 277 |
+
return event_desk.BLANK
|
| 278 |
return event_desk.get(wid)
|
| 279 |
|
| 280 |
def end_headers(self):
|
|
|
|
| 325 |
if path == "/api/mode":
|
| 326 |
from tower.ui import event_desk
|
| 327 |
|
| 328 |
+
# Online, each visitor has a workspace of their own: events and test runs.
|
| 329 |
return self._json({"workspaces": event_desk.WORKSPACES, "demo": sorted(event_desk.DEMO_EVENTS)})
|
| 330 |
if path == "/":
|
| 331 |
built = os.path.join(DIST, "index.html")
|
|
|
|
| 368 |
if path == "/api/ontology_export":
|
| 369 |
return self._json(ontology_export())
|
| 370 |
if split.path.startswith("/runs/") and split.path.endswith(".md"):
|
| 371 |
+
return self._static(desk.tests_dir, urllib.parse.unquote(split.path[len("/runs/"):]))
|
| 372 |
if path == "/api/logs":
|
| 373 |
+
from tower.ui import event_desk
|
| 374 |
+
|
| 375 |
+
# The saved start.py outputs are this laptop's; online there are none.
|
| 376 |
+
name = (query.get("name") or [None])[0]
|
| 377 |
+
if event_desk.WORKSPACES:
|
| 378 |
+
if name:
|
| 379 |
+
raise NotFound(name)
|
| 380 |
+
return self._json([])
|
| 381 |
+
return self._json(logs_payload(name))
|
| 382 |
if path == "/api/domains":
|
| 383 |
from tower.domains import payload as domain_payload
|
| 384 |
|
|
|
|
| 392 |
if path == "/api/summary.pdf":
|
| 393 |
from tower.ui import summary_pdf
|
| 394 |
|
| 395 |
+
from tower.ui import reports
|
| 396 |
+
|
| 397 |
+
body = summary_pdf.build(reports.payload(desk.tests_dir))
|
| 398 |
self.send_response(200)
|
| 399 |
self.send_header("Content-Type", "application/pdf")
|
| 400 |
self.send_header("Content-Disposition", f'attachment; filename="{summary_pdf.filename()}"')
|
|
|
|
| 416 |
if path == "/api/test_reports":
|
| 417 |
from tower.ui import reports
|
| 418 |
|
| 419 |
+
return self._json(reports.payload(desk.tests_dir))
|
| 420 |
if path == "/api/revision":
|
| 421 |
return self._json(revision_payload(desk))
|
| 422 |
if path == "/api/events/chat":
|
|
|
|
| 428 |
if path == "/api/run":
|
| 429 |
from tower.ui import runner
|
| 430 |
|
| 431 |
+
return self._json(runner.status(desk.tests_dir))
|
| 432 |
if path == "/api/run/stream":
|
| 433 |
return self._stream_run()
|
| 434 |
except NotFound as exc:
|
|
|
|
| 468 |
from tower.ui import event_desk, runner
|
| 469 |
|
| 470 |
desk = self._desk(write=True)
|
|
|
|
|
|
|
|
|
|
| 471 |
if path == "/api/run/stop":
|
| 472 |
+
return self._json(runner.stop(desk.tests_dir))
|
| 473 |
if path == "/api/events/run/stop":
|
| 474 |
return self._json(desk.stop())
|
| 475 |
try:
|
|
|
|
| 489 |
from tower.ui import reset
|
| 490 |
|
| 491 |
kind = str(body.get("kind") or "")
|
|
|
|
|
|
|
| 492 |
try:
|
| 493 |
if path == "/api/reset":
|
| 494 |
return self._json(reset.reset(kind, str(body.get("confirm") or ""), desk))
|
|
|
|
| 505 |
return self._json(result, 409)
|
| 506 |
return self._json(result)
|
| 507 |
try:
|
| 508 |
+
result = runner.start(body.get("reader") or "rules", body.get("suites"), desk.tests_dir)
|
| 509 |
except ValueError as exc:
|
| 510 |
return self._json({"error": str(exc)}, 400)
|
| 511 |
except OSError as exc:
|
|
|
|
| 545 |
return self._json({"error": "forbidden"}, 403)
|
| 546 |
from tower.ui import event_desk
|
| 547 |
|
| 548 |
+
desk = self._desk(write=True)
|
|
|
|
| 549 |
parts = [urllib.parse.unquote(p) for p in urllib.parse.urlsplit(self.path).path.strip("/").split("/")]
|
| 550 |
if len(parts) != 4 or parts[:2] != ["api", "test_reports"]:
|
| 551 |
return self._json({"error": "not found"}, 404)
|
| 552 |
from tower.ui import reports
|
| 553 |
|
| 554 |
try:
|
| 555 |
+
removed = reports.delete(parts[2], parts[3], desk.tests_dir)
|
| 556 |
except OSError as exc:
|
| 557 |
return self._json({"error": "delete failed", "detail": str(exc)}, 500)
|
| 558 |
if not removed:
|
|
|
|
| 602 |
"""Server-sent events for the live grade. One event per case, plus a snapshot on connect."""
|
| 603 |
from tower.ui import runner
|
| 604 |
|
| 605 |
+
root = self._desk().tests_dir
|
| 606 |
+
return self._stream(lambda: runner.follow(root))
|
| 607 |
|
| 608 |
def _static(self, root, rel):
|
| 609 |
"""Serve a file under root; anything that resolves outside it is a 404."""
|
tower/ui/web/src/components/EventDesk.jsx
CHANGED
|
@@ -266,7 +266,7 @@ export function EventChat() {
|
|
| 266 |
}
|
| 267 |
|
| 268 |
export function EventRun() {
|
| 269 |
-
const { reload } = useData();
|
| 270 |
const { toast } = useUi();
|
| 271 |
const [job, setJob] = useState(null);
|
| 272 |
const [stopping, setStopping] = useState(false);
|
|
@@ -329,7 +329,8 @@ export function EventRun() {
|
|
| 329 |
: shown.events.length
|
| 330 |
? (shown.error === "Stopped" ? tr("Stopped after {done} of {total} events.", { done: shown.done, total: shown.total })
|
| 331 |
: shown.error ? tr("Stopped. {error}.", { error: shown.error }) : tr("Finished. {done} events.", { done: shown.done }))
|
| 332 |
-
: tr("Walks the
|
|
|
|
| 333 |
|
| 334 |
return (
|
| 335 |
<div className="card desk-card">
|
|
|
|
| 266 |
}
|
| 267 |
|
| 268 |
export function EventRun() {
|
| 269 |
+
const { reload, demoSize } = useData();
|
| 270 |
const { toast } = useUi();
|
| 271 |
const [job, setJob] = useState(null);
|
| 272 |
const [stopping, setStopping] = useState(false);
|
|
|
|
| 329 |
: shown.events.length
|
| 330 |
? (shown.error === "Stopped" ? tr("Stopped after {done} of {total} events.", { done: shown.done, total: shown.total })
|
| 331 |
: shown.error ? tr("Stopped. {error}.", { error: shown.error }) : tr("Finished. {done} events.", { done: shown.done }))
|
| 332 |
+
: demoSize ? tr("Walks the {n} demo events and shows each one as it finishes.", { n: demoSize })
|
| 333 |
+
: tr("Walks the 15 given events, then any event from the chat, and shows each one as it finishes. The saved run of the 15 stays as it is.");
|
| 334 |
|
| 335 |
return (
|
| 336 |
<div className="card desk-card">
|
tower/ui/web/src/components/ResetButton.jsx
CHANGED
|
@@ -31,7 +31,7 @@ const COPY = {
|
|
| 31 |
export const RESET_EVENT = "tower:reset";
|
| 32 |
|
| 33 |
export function ResetButton({ kind, disabled }) {
|
| 34 |
-
const { reload
|
| 35 |
const { toast, set } = useUi();
|
| 36 |
const [state, setState] = useState(null); // GET /api/reset for this kind: has_data, undo, at
|
| 37 |
const [open, setOpen] = useState(false);
|
|
@@ -86,7 +86,6 @@ export function ResetButton({ kind, disabled }) {
|
|
| 86 |
const ready = typed.trim() === WORD;
|
| 87 |
|
| 88 |
// Online the test results are shared by every visitor, so they cannot be cleared from the page.
|
| 89 |
-
if (online && kind === "tests") return null;
|
| 90 |
return (
|
| 91 |
<>
|
| 92 |
{state?.undo && !state.has_data && (
|
|
|
|
| 31 |
export const RESET_EVENT = "tower:reset";
|
| 32 |
|
| 33 |
export function ResetButton({ kind, disabled }) {
|
| 34 |
+
const { reload } = useData();
|
| 35 |
const { toast, set } = useUi();
|
| 36 |
const [state, setState] = useState(null); // GET /api/reset for this kind: has_data, undo, at
|
| 37 |
const [open, setOpen] = useState(false);
|
|
|
|
| 86 |
const ready = typed.trim() === WORD;
|
| 87 |
|
| 88 |
// Online the test results are shared by every visitor, so they cannot be cleared from the page.
|
|
|
|
| 89 |
return (
|
| 90 |
<>
|
| 91 |
{state?.undo && !state.has_data && (
|
tower/ui/web/src/components/RunTests.jsx
CHANGED
|
@@ -48,22 +48,24 @@ function folderFor(label) {
|
|
| 48 |
return label === "rules" ? "rules" : `llm_${(label || "").replace(":", "_")}`;
|
| 49 |
}
|
| 50 |
|
| 51 |
-
function blurb(job, mode) {
|
| 52 |
if (job?.running) {
|
| 53 |
const seen = job.passed + job.failed;
|
| 54 |
-
const who = job.reader === "rules" ? tr("rule reader") : tr("{model} + rule check", { model: job.model });
|
| 55 |
return tr("Running with the {who}. {seen} of {total} cases finished.", { who: who, seen: seen, total: job.total });
|
| 56 |
}
|
| 57 |
if (job?.suites?.length) {
|
| 58 |
if (job.ok) return tr("Finished. {passed} passed{failed}", { passed: job.passed, failed: job.failed ? }), ${job.failed} failed` : ""}.`;
|
| 59 |
return job.error ? tr("Stopped. {error}.", { error: job.error }) : tr("Finished with {failed} failed.", { failed: job.failed });
|
| 60 |
}
|
|
|
|
| 61 |
if (mode === "both") return "Grades the 15 given events with the model, then checks every reading against the rules. Each case shows up when it finishes.";
|
| 62 |
return "Grades the 15 given events with the rule reader. Each case shows up as soon as it finishes. This does not re-run the event feed.";
|
| 63 |
}
|
| 64 |
|
| 65 |
export function RunTests() {
|
| 66 |
-
|
|
|
|
| 67 |
const { toast } = useUi();
|
| 68 |
const [job, setJob] = useState(null);
|
| 69 |
const [mode, setMode] = useState("rules");
|
|
@@ -112,13 +114,13 @@ export function RunTests() {
|
|
| 112 |
}, [seen]);
|
| 113 |
|
| 114 |
const start = async () => {
|
| 115 |
-
const body = mode === "both" ? { reader: "both", suites: ["given"] } : { reader: "rules" };
|
| 116 |
try {
|
| 117 |
const res = await fetch("/api/run", {
|
| 118 |
method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(body),
|
| 119 |
});
|
| 120 |
const data = await res.json().catch(() => ({}));
|
| 121 |
-
if (!res.ok) toast(data.error || "Could not start the run");
|
| 122 |
} catch {
|
| 123 |
toast(tr("Could not start the run"));
|
| 124 |
}
|
|
@@ -144,14 +146,14 @@ export function RunTests() {
|
|
| 144 |
|
| 145 |
return (
|
| 146 |
<div className="card run-card">
|
| 147 |
-
<CardHead title={tr("Run tests")} sub={blurb(job, mode)}>
|
| 148 |
<div className="controls">
|
| 149 |
-
<div className="toggle" role="group" aria-label={tr("What to run")}>
|
| 150 |
<button type="button" className={mode === "rules" ? "on" : ""} disabled={running} onClick={() => setMode("rules")}>{tr("Rules")}</button>
|
| 151 |
<button type="button" className={mode === "both" ? "on" : ""} disabled={running || !job?.ollama}
|
| 152 |
title={job && !job.ollama ? job.why : "Grade the 15 given events with the model and the rule check"}
|
| 153 |
onClick={() => setMode("both")}>{tr("Model + rules")}</button>
|
| 154 |
-
</div>
|
| 155 |
<button type="button" className="btn primary" disabled={running} onClick={start}>
|
| 156 |
<Icon name="play" />{running ? tr("Running") : tr("Run tests")}
|
| 157 |
</button>
|
|
@@ -189,7 +191,7 @@ export function RunTests() {
|
|
| 189 |
<div key={c.key} className={`run-case ${c.verdict === "PASS" ? "pass" : "fail"}${i === last ? " latest" : ""}`}>
|
| 190 |
<span className="mark">{c.verdict === "PASS" ? tr("PASS") : tr("FAIL")}</span>
|
| 191 |
{open ? <a href={href}>{c.id}</a> : <b>{c.id}</b>}
|
| 192 |
-
<span className="who">{c.reader}</span>
|
| 193 |
<span className="cat">{c.category}</span>
|
| 194 |
<span className="set">{c.suite.title}</span>
|
| 195 |
</div>
|
|
|
|
| 48 |
return label === "rules" ? "rules" : `llm_${(label || "").replace(":", "_")}`;
|
| 49 |
}
|
| 50 |
|
| 51 |
+
function blurb(job, mode, demo) {
|
| 52 |
if (job?.running) {
|
| 53 |
const seen = job.passed + job.failed;
|
| 54 |
+
const who = demo ? tr("AI model") : job.reader === "rules" ? tr("rule reader") : tr("{model} + rule check", { model: job.model });
|
| 55 |
return tr("Running with the {who}. {seen} of {total} cases finished.", { who: who, seen: seen, total: job.total });
|
| 56 |
}
|
| 57 |
if (job?.suites?.length) {
|
| 58 |
if (job.ok) return tr("Finished. {passed} passed{failed}", { passed: job.passed, failed: job.failed ? }), ${job.failed} failed` : ""}.`;
|
| 59 |
return job.error ? tr("Stopped. {error}.", { error: job.error }) : tr("Finished with {failed} failed.", { failed: job.failed });
|
| 60 |
}
|
| 61 |
+
if (demo) return tr("Grades the {n} demo events with the AI model. Each case shows up as soon as it finishes.", { n: demo });
|
| 62 |
if (mode === "both") return "Grades the 15 given events with the model, then checks every reading against the rules. Each case shows up when it finishes.";
|
| 63 |
return "Grades the 15 given events with the rule reader. Each case shows up as soon as it finishes. This does not re-run the event feed.";
|
| 64 |
}
|
| 65 |
|
| 66 |
export function RunTests() {
|
| 67 |
+
// Online (demoSize > 0) the grade is the visitor's own: the AI model alone, on the demo's events.
|
| 68 |
+
const { reload, demoSize } = useData();
|
| 69 |
const { toast } = useUi();
|
| 70 |
const [job, setJob] = useState(null);
|
| 71 |
const [mode, setMode] = useState("rules");
|
|
|
|
| 114 |
}, [seen]);
|
| 115 |
|
| 116 |
const start = async () => {
|
| 117 |
+
const body = demoSize ? { reader: "llm", suites: ["given"] } : mode === "both" ? { reader: "both", suites: ["given"] } : { reader: "rules" };
|
| 118 |
try {
|
| 119 |
const res = await fetch("/api/run", {
|
| 120 |
method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(body),
|
| 121 |
});
|
| 122 |
const data = await res.json().catch(() => ({}));
|
| 123 |
+
if (!res.ok) toast(data.busy ? tr("Someone else is running the tests right now. Try again in a minute.") : data.error || "Could not start the run");
|
| 124 |
} catch {
|
| 125 |
toast(tr("Could not start the run"));
|
| 126 |
}
|
|
|
|
| 146 |
|
| 147 |
return (
|
| 148 |
<div className="card run-card">
|
| 149 |
+
<CardHead title={tr("Run tests")} sub={blurb(job, mode, demoSize)}>
|
| 150 |
<div className="controls">
|
| 151 |
+
{!demoSize && <div className="toggle" role="group" aria-label={tr("What to run")}>
|
| 152 |
<button type="button" className={mode === "rules" ? "on" : ""} disabled={running} onClick={() => setMode("rules")}>{tr("Rules")}</button>
|
| 153 |
<button type="button" className={mode === "both" ? "on" : ""} disabled={running || !job?.ollama}
|
| 154 |
title={job && !job.ollama ? job.why : "Grade the 15 given events with the model and the rule check"}
|
| 155 |
onClick={() => setMode("both")}>{tr("Model + rules")}</button>
|
| 156 |
+
</div>}
|
| 157 |
<button type="button" className="btn primary" disabled={running} onClick={start}>
|
| 158 |
<Icon name="play" />{running ? tr("Running") : tr("Run tests")}
|
| 159 |
</button>
|
|
|
|
| 191 |
<div key={c.key} className={`run-case ${c.verdict === "PASS" ? "pass" : "fail"}${i === last ? " latest" : ""}`}>
|
| 192 |
<span className="mark">{c.verdict === "PASS" ? tr("PASS") : tr("FAIL")}</span>
|
| 193 |
{open ? <a href={href}>{c.id}</a> : <b>{c.id}</b>}
|
| 194 |
+
<span className="who">{demoSize ? tr("AI model") : c.reader}</span>
|
| 195 |
<span className="cat">{c.category}</span>
|
| 196 |
<span className="set">{c.suite.title}</span>
|
| 197 |
</div>
|
tower/ui/web/src/locales/de.json
CHANGED
|
@@ -202,6 +202,7 @@
|
|
| 202 |
"Give the tower a new message, or run the whole feed.":"Gib dem Tower eine neue Nachricht oder führe den ganzen Feed aus.",
|
| 203 |
"Given tests":"Vorgegebene Tests",
|
| 204 |
"Gold":"Gold",
|
|
|
|
| 205 |
"Group by":"Gruppieren nach",
|
| 206 |
"Guardrail:":"Schutzregel:",
|
| 207 |
"Guide":"Anleitung",
|
|
@@ -288,6 +289,7 @@
|
|
| 288 |
"No events to export.":"Keine Ereignisse zum Exportieren.",
|
| 289 |
"No events yet.":"Noch keine Ereignisse.",
|
| 290 |
"No events yet. Go to {add} to send one, or to run the 15 given events.":"Noch keine Ereignisse. Gehen Sie zu {add}, um eines zu senden oder die 15 vorgegebenen Ereignisse abzuspielen.",
|
|
|
|
| 291 |
"No failed calls.":"Keine fehlgeschlagenen Aufrufe.",
|
| 292 |
"No failures.":"Keine Fehlschläge.",
|
| 293 |
"No graph traversal: nothing operational to trace.":"Keine Graphdurchsuchung: nichts Operatives zu verfolgen.",
|
|
@@ -315,6 +317,7 @@
|
|
| 315 |
"Nothing was recorded.":"Es wurde nichts aufgenommen.",
|
| 316 |
"Notifications":"Benachrichtigungen",
|
| 317 |
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the 15 given events in as if they were arriving live.":"Unter „Ereignisse hinzufügen“ eine Nachricht eingeben, einfügen, als Datei anhängen oder diktieren. „Ereignisse abspielen“ spielt die 15 vorgegebenen Ereignisse ein, als kämen sie live an.",
|
|
|
|
| 318 |
"On a test set, {delete} removes that result for good (it asks first).":"In einem Testset entfernt {delete} das Ergebnis endgültig (mit Rückfrage).",
|
| 319 |
"On track":"Im Plan",
|
| 320 |
"One coordinator and three specialists. Specialists plan; the coordinator checks every planned call against the agent's tools, then runs it.":"Ein Koordinator und drei Fachagenten. Die Fachagenten planen; der Koordinator prüft jeden geplanten Aufruf gegen die Werkzeuge des Agenten und führt ihn dann aus.",
|
|
@@ -410,10 +413,12 @@
|
|
| 410 |
"Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.":"Gerüchte und alles Unbestätigte gehen an eine Person. Dafür wird nichts geändert.",
|
| 411 |
"Run events":"Ereignisse ausführen",
|
| 412 |
"Run events walks the 15 given events and the chat's events":"Ereignisse ausführen geht die 15 vorgegebenen Ereignisse und die aus dem Chat durch",
|
|
|
|
| 413 |
"Run history":"Laufverlauf",
|
| 414 |
"Run output, every tool call, and the test-run history":"Laufausgabe, jeder Tool-Aufruf und der Testlauf-Verlauf",
|
| 415 |
"Run tests":"Tests ausführen",
|
| 416 |
"Run tests and watch each of the 15 given events pass or fail as it finishes":"Führe die Tests aus und sieh, wie jedes der 15 Ereignisse besteht oder scheitert",
|
|
|
|
| 417 |
"Run the demo":"Demo starten",
|
| 418 |
"Running":"Läuft",
|
| 419 |
"Running the demo":"Demo ausführen",
|
|
@@ -442,6 +447,7 @@
|
|
| 442 |
"Showing the first 1,000 of {n}.":"Die ersten 1.000 von {n} werden angezeigt.",
|
| 443 |
"Showing {n} of {m}":"{n} von {m} angezeigt",
|
| 444 |
"Small":"Klein",
|
|
|
|
| 445 |
"Specialist agents plan tool calls; the coordinator checks each one against the handbook, then runs it.":"Fachagenten planen Tool-Aufrufe; der Koordinator prüft jeden anhand des Handbuchs und führt ihn dann aus.",
|
| 446 |
"Speech engine":"Sprach-Engine",
|
| 447 |
"Spreadsheet (.csv)":"Tabelle (.csv)",
|
|
@@ -476,6 +482,7 @@
|
|
| 476 |
"Test sets":"Testsets",
|
| 477 |
"Test summary report":"Testzusammenfassung",
|
| 478 |
"Tests":"Tests",
|
|
|
|
| 479 |
"Tests compares the tower's actions with answer keys, case by case, for the given events and the blind set.":"Tests vergleicht die Aktionen des Towers Fall für Fall mit den Lösungsschlüsseln, für die vorgegebenen Ereignisse und den Blindsatz.",
|
| 480 |
"Text size":"Textgröße",
|
| 481 |
"That test set has no results for this reader.":"Dieses Testset hat keine Ergebnisse für diesen Leser.",
|
|
@@ -547,6 +554,7 @@
|
|
| 547 |
"Waiting":"Warte",
|
| 548 |
"Waiting for events.":"Warte auf Ereignisse.",
|
| 549 |
"Walks the 15 given events, then any event from the chat, and shows each one as it finishes. The saved run of the 15 stays as it is.":"Geht die 15 vorgegebenen Ereignisse und danach die Ereignisse aus dem Chat durch und zeigt jedes, sobald es fertig ist. Der gespeicherte Lauf der 15 bleibt unverändert.",
|
|
|
|
| 550 |
"Week":"Woche",
|
| 551 |
"Week of {date}":"Woche ab {date}",
|
| 552 |
"What a person needs to answer":"Was eine Person beantworten muss",
|
|
@@ -572,6 +580,7 @@
|
|
| 572 |
"Why they were escalated":"Warum eskaliert wurde",
|
| 573 |
"Will ask when you record":"Wird bei der Aufnahme gefragt",
|
| 574 |
"Working: {name}":"Funktioniert: {name}",
|
|
|
|
| 575 |
"Written by hand for the 15 given events; built from the company records for the blind set":"Für die 15 vorgegebenen Ereignisse von Hand geschrieben; für den Blindsatz aus den Unternehmensdaten erstellt",
|
| 576 |
"Zoom in":"Hinzoomen",
|
| 577 |
"Zoom out":"Auszoomen",
|
|
@@ -609,6 +618,7 @@
|
|
| 609 |
"part id":"Teile-ID",
|
| 610 |
"partly handled already":"bereits teilweise erledigt",
|
| 611 |
"passed":"bestanden",
|
|
|
|
| 612 |
"per event, on a local 1.7B model":"pro Ereignis, auf einem lokalen 1,7B Modell",
|
| 613 |
"plant id":"Werks-ID",
|
| 614 |
"quality holds":"Qualitätssperren",
|
|
|
|
| 202 |
"Give the tower a new message, or run the whole feed.":"Gib dem Tower eine neue Nachricht oder führe den ganzen Feed aus.",
|
| 203 |
"Given tests":"Vorgegebene Tests",
|
| 204 |
"Gold":"Gold",
|
| 205 |
+
"Grades the {n} demo events with the AI model. Each case shows up as soon as it finishes.":"Bewertet die {n} Demo-Ereignisse mit dem KI-Modell. Jeder Fall erscheint, sobald er fertig ist.",
|
| 206 |
"Group by":"Gruppieren nach",
|
| 207 |
"Guardrail:":"Schutzregel:",
|
| 208 |
"Guide":"Anleitung",
|
|
|
|
| 289 |
"No events to export.":"Keine Ereignisse zum Exportieren.",
|
| 290 |
"No events yet.":"Noch keine Ereignisse.",
|
| 291 |
"No events yet. Go to {add} to send one, or to run the 15 given events.":"Noch keine Ereignisse. Gehen Sie zu {add}, um eines zu senden oder die 15 vorgegebenen Ereignisse abzuspielen.",
|
| 292 |
+
"No events yet. Go to {add} to send one, or to run the {n} demo events.":"Noch keine Ereignisse. Gehen Sie zu {add}, um eines zu senden oder die {n} Demo-Ereignisse abzuspielen.",
|
| 293 |
"No failed calls.":"Keine fehlgeschlagenen Aufrufe.",
|
| 294 |
"No failures.":"Keine Fehlschläge.",
|
| 295 |
"No graph traversal: nothing operational to trace.":"Keine Graphdurchsuchung: nichts Operatives zu verfolgen.",
|
|
|
|
| 317 |
"Nothing was recorded.":"Es wurde nichts aufgenommen.",
|
| 318 |
"Notifications":"Benachrichtigungen",
|
| 319 |
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the 15 given events in as if they were arriving live.":"Unter „Ereignisse hinzufügen“ eine Nachricht eingeben, einfügen, als Datei anhängen oder diktieren. „Ereignisse abspielen“ spielt die 15 vorgegebenen Ereignisse ein, als kämen sie live an.",
|
| 320 |
+
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the {n} demo events in as if they were arriving live.":"Unter „Ereignisse hinzufügen“ eine Nachricht eingeben, einfügen, als Datei anhängen oder diktieren. „Ereignisse abspielen“ spielt die {n} Demo-Ereignisse ein, als kämen sie live an.",
|
| 321 |
"On a test set, {delete} removes that result for good (it asks first).":"In einem Testset entfernt {delete} das Ergebnis endgültig (mit Rückfrage).",
|
| 322 |
"On track":"Im Plan",
|
| 323 |
"One coordinator and three specialists. Specialists plan; the coordinator checks every planned call against the agent's tools, then runs it.":"Ein Koordinator und drei Fachagenten. Die Fachagenten planen; der Koordinator prüft jeden geplanten Aufruf gegen die Werkzeuge des Agenten und führt ihn dann aus.",
|
|
|
|
| 413 |
"Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.":"Gerüchte und alles Unbestätigte gehen an eine Person. Dafür wird nichts geändert.",
|
| 414 |
"Run events":"Ereignisse ausführen",
|
| 415 |
"Run events walks the 15 given events and the chat's events":"Ereignisse ausführen geht die 15 vorgegebenen Ereignisse und die aus dem Chat durch",
|
| 416 |
+
"Run events walks the {n} demo events":"Ereignisse ausführen geht die {n} Demo-Ereignisse durch",
|
| 417 |
"Run history":"Laufverlauf",
|
| 418 |
"Run output, every tool call, and the test-run history":"Laufausgabe, jeder Tool-Aufruf und der Testlauf-Verlauf",
|
| 419 |
"Run tests":"Tests ausführen",
|
| 420 |
"Run tests and watch each of the 15 given events pass or fail as it finishes":"Führe die Tests aus und sieh, wie jedes der 15 Ereignisse besteht oder scheitert",
|
| 421 |
+
"Run tests and watch each of the {n} demo events pass or fail as it finishes":"Führe die Tests aus und sieh, wie jedes der {n} Demo-Ereignisse besteht oder scheitert",
|
| 422 |
"Run the demo":"Demo starten",
|
| 423 |
"Running":"Läuft",
|
| 424 |
"Running the demo":"Demo ausführen",
|
|
|
|
| 447 |
"Showing the first 1,000 of {n}.":"Die ersten 1.000 von {n} werden angezeigt.",
|
| 448 |
"Showing {n} of {m}":"{n} von {m} angezeigt",
|
| 449 |
"Small":"Klein",
|
| 450 |
+
"Someone else is running the tests right now. Try again in a minute.":"Gerade führt jemand anderes die Tests aus. Versuchen Sie es in einer Minute erneut.",
|
| 451 |
"Specialist agents plan tool calls; the coordinator checks each one against the handbook, then runs it.":"Fachagenten planen Tool-Aufrufe; der Koordinator prüft jeden anhand des Handbuchs und führt ihn dann aus.",
|
| 452 |
"Speech engine":"Sprach-Engine",
|
| 453 |
"Spreadsheet (.csv)":"Tabelle (.csv)",
|
|
|
|
| 482 |
"Test sets":"Testsets",
|
| 483 |
"Test summary report":"Testzusammenfassung",
|
| 484 |
"Tests":"Tests",
|
| 485 |
+
"Tests compares the tower's actions with answer keys, case by case, for the demo events.":"Tests vergleicht die Aktionen des Towers Fall für Fall mit den Lösungsschlüsseln, für die Demo-Ereignisse.",
|
| 486 |
"Tests compares the tower's actions with answer keys, case by case, for the given events and the blind set.":"Tests vergleicht die Aktionen des Towers Fall für Fall mit den Lösungsschlüsseln, für die vorgegebenen Ereignisse und den Blindsatz.",
|
| 487 |
"Text size":"Textgröße",
|
| 488 |
"That test set has no results for this reader.":"Dieses Testset hat keine Ergebnisse für diesen Leser.",
|
|
|
|
| 554 |
"Waiting":"Warte",
|
| 555 |
"Waiting for events.":"Warte auf Ereignisse.",
|
| 556 |
"Walks the 15 given events, then any event from the chat, and shows each one as it finishes. The saved run of the 15 stays as it is.":"Geht die 15 vorgegebenen Ereignisse und danach die Ereignisse aus dem Chat durch und zeigt jedes, sobald es fertig ist. Der gespeicherte Lauf der 15 bleibt unverändert.",
|
| 557 |
+
"Walks the {n} demo events and shows each one as it finishes.":"Geht die {n} Demo-Ereignisse durch und zeigt jedes, sobald es fertig ist.",
|
| 558 |
"Week":"Woche",
|
| 559 |
"Week of {date}":"Woche ab {date}",
|
| 560 |
"What a person needs to answer":"Was eine Person beantworten muss",
|
|
|
|
| 580 |
"Why they were escalated":"Warum eskaliert wurde",
|
| 581 |
"Will ask when you record":"Wird bei der Aufnahme gefragt",
|
| 582 |
"Working: {name}":"Funktioniert: {name}",
|
| 583 |
+
"Written by hand for each demo event":"Für jedes Demo-Ereignis von Hand geschrieben",
|
| 584 |
"Written by hand for the 15 given events; built from the company records for the blind set":"Für die 15 vorgegebenen Ereignisse von Hand geschrieben; für den Blindsatz aus den Unternehmensdaten erstellt",
|
| 585 |
"Zoom in":"Hinzoomen",
|
| 586 |
"Zoom out":"Auszoomen",
|
|
|
|
| 618 |
"part id":"Teile-ID",
|
| 619 |
"partly handled already":"bereits teilweise erledigt",
|
| 620 |
"passed":"bestanden",
|
| 621 |
+
"per event, in your test run":"pro Ereignis, in Ihrem Testlauf",
|
| 622 |
"per event, on a local 1.7B model":"pro Ereignis, auf einem lokalen 1,7B Modell",
|
| 623 |
"plant id":"Werks-ID",
|
| 624 |
"quality holds":"Qualitätssperren",
|
tower/ui/web/src/locales/es.json
CHANGED
|
@@ -202,6 +202,7 @@
|
|
| 202 |
"Give the tower a new message, or run the whole feed.":"Dale a la torre un mensaje nuevo o ejecuta el feed completo.",
|
| 203 |
"Given tests":"Pruebas dadas",
|
| 204 |
"Gold":"Gold",
|
|
|
|
| 205 |
"Group by":"Agrupar por",
|
| 206 |
"Guardrail:":"Salvaguarda:",
|
| 207 |
"Guide":"Guía",
|
|
@@ -288,6 +289,7 @@
|
|
| 288 |
"No events to export.":"No hay eventos que exportar.",
|
| 289 |
"No events yet.":"Aún no hay eventos.",
|
| 290 |
"No events yet. Go to {add} to send one, or to run the 15 given events.":"Aún no hay eventos. Ve a {add} para enviar uno o ejecutar los 15 eventos dados.",
|
|
|
|
| 291 |
"No failed calls.":"No hay llamadas fallidas.",
|
| 292 |
"No failures.":"Sin fallos.",
|
| 293 |
"No graph traversal: nothing operational to trace.":"Sin recorrido del grafo: no hay nada operativo que rastrear.",
|
|
@@ -315,6 +317,7 @@
|
|
| 315 |
"Nothing was recorded.":"No se grabó nada.",
|
| 316 |
"Notifications":"Notificaciones",
|
| 317 |
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the 15 given events in as if they were arriving live.":"En Añadir eventos, escribe o pega un mensaje, adjunta un archivo o díctalo. Ejecutar eventos reproduce los 15 eventos dados como si llegaran en vivo.",
|
|
|
|
| 318 |
"On a test set, {delete} removes that result for good (it asks first).":"En un conjunto de pruebas, {delete} elimina ese resultado para siempre (antes lo pregunta).",
|
| 319 |
"On track":"A tiempo",
|
| 320 |
"One coordinator and three specialists. Specialists plan; the coordinator checks every planned call against the agent's tools, then runs it.":"Un coordinador y tres especialistas. Los especialistas planifican; el coordinador comprueba cada llamada prevista con las herramientas del agente y luego la ejecuta.",
|
|
@@ -410,10 +413,12 @@
|
|
| 410 |
"Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.":"Los rumores y todo lo que no se puede confirmar pasan a una persona. No se cambia nada por ellos.",
|
| 411 |
"Run events":"Ejecutar eventos",
|
| 412 |
"Run events walks the 15 given events and the chat's events":"Ejecutar eventos recorre los 15 eventos dados y los del chat",
|
|
|
|
| 413 |
"Run history":"Historial de ejecuciones",
|
| 414 |
"Run output, every tool call, and the test-run history":"Salida de ejecución, cada llamada a herramienta y el historial de pruebas",
|
| 415 |
"Run tests":"Ejecutar pruebas",
|
| 416 |
"Run tests and watch each of the 15 given events pass or fail as it finishes":"Ejecuta las pruebas y ve cómo cada uno de los 15 eventos aprueba o falla al terminar",
|
|
|
|
| 417 |
"Run the demo":"Ejecutar la demostración",
|
| 418 |
"Running":"En curso",
|
| 419 |
"Running the demo":"Ejecutando la demostración",
|
|
@@ -442,6 +447,7 @@
|
|
| 442 |
"Showing the first 1,000 of {n}.":"Se muestran los primeros 1000 de {n}.",
|
| 443 |
"Showing {n} of {m}":"Mostrando {n} de {m}",
|
| 444 |
"Small":"Pequeño",
|
|
|
|
| 445 |
"Specialist agents plan tool calls; the coordinator checks each one against the handbook, then runs it.":"Los agentes especialistas planifican las llamadas a herramientas; el coordinador comprueba cada una con el manual y luego la ejecuta.",
|
| 446 |
"Speech engine":"Motor de voz",
|
| 447 |
"Spreadsheet (.csv)":"Hoja de cálculo (.csv)",
|
|
@@ -476,6 +482,7 @@
|
|
| 476 |
"Test sets":"Conjuntos de pruebas",
|
| 477 |
"Test summary report":"Informe resumen de pruebas",
|
| 478 |
"Tests":"Pruebas",
|
|
|
|
| 479 |
"Tests compares the tower's actions with answer keys, case by case, for the given events and the blind set.":"Pruebas compara las acciones de la torre con las claves de respuesta, caso por caso, para los eventos dados y el conjunto ciego.",
|
| 480 |
"Text size":"Tamaño del texto",
|
| 481 |
"That test set has no results for this reader.":"Ese conjunto de pruebas no tiene resultados para este lector.",
|
|
@@ -547,6 +554,7 @@
|
|
| 547 |
"Waiting":"Esperando",
|
| 548 |
"Waiting for events.":"Esperando eventos.",
|
| 549 |
"Walks the 15 given events, then any event from the chat, and shows each one as it finishes. The saved run of the 15 stays as it is.":"Recorre los 15 eventos dados y después los eventos del chat, y muestra cada uno al terminar. La ejecución guardada de los 15 no cambia.",
|
|
|
|
| 550 |
"Week":"Semana",
|
| 551 |
"Week of {date}":"Semana del {date}",
|
| 552 |
"What a person needs to answer":"Qué debe responder una persona",
|
|
@@ -572,6 +580,7 @@
|
|
| 572 |
"Why they were escalated":"Por qué se escalaron",
|
| 573 |
"Will ask when you record":"Se preguntará al grabar",
|
| 574 |
"Working: {name}":"Funciona: {name}",
|
|
|
|
| 575 |
"Written by hand for the 15 given events; built from the company records for the blind set":"Escritas a mano para los 15 eventos dados; creadas a partir de los registros de la empresa para el conjunto ciego",
|
| 576 |
"Zoom in":"Acercar",
|
| 577 |
"Zoom out":"Alejar",
|
|
@@ -609,6 +618,7 @@
|
|
| 609 |
"part id":"id de pieza",
|
| 610 |
"partly handled already":"ya atendidos en parte",
|
| 611 |
"passed":"aprobados",
|
|
|
|
| 612 |
"per event, on a local 1.7B model":"por evento, en un modelo local de 1.7B",
|
| 613 |
"plant id":"id de planta",
|
| 614 |
"quality holds":"retenciones de calidad",
|
|
|
|
| 202 |
"Give the tower a new message, or run the whole feed.":"Dale a la torre un mensaje nuevo o ejecuta el feed completo.",
|
| 203 |
"Given tests":"Pruebas dadas",
|
| 204 |
"Gold":"Gold",
|
| 205 |
+
"Grades the {n} demo events with the AI model. Each case shows up as soon as it finishes.":"Evalúa los {n} eventos de demostración con el modelo de IA. Cada caso aparece en cuanto termina.",
|
| 206 |
"Group by":"Agrupar por",
|
| 207 |
"Guardrail:":"Salvaguarda:",
|
| 208 |
"Guide":"Guía",
|
|
|
|
| 289 |
"No events to export.":"No hay eventos que exportar.",
|
| 290 |
"No events yet.":"Aún no hay eventos.",
|
| 291 |
"No events yet. Go to {add} to send one, or to run the 15 given events.":"Aún no hay eventos. Ve a {add} para enviar uno o ejecutar los 15 eventos dados.",
|
| 292 |
+
"No events yet. Go to {add} to send one, or to run the {n} demo events.":"Aún no hay eventos. Ve a {add} para enviar uno o ejecutar los {n} eventos de demostración.",
|
| 293 |
"No failed calls.":"No hay llamadas fallidas.",
|
| 294 |
"No failures.":"Sin fallos.",
|
| 295 |
"No graph traversal: nothing operational to trace.":"Sin recorrido del grafo: no hay nada operativo que rastrear.",
|
|
|
|
| 317 |
"Nothing was recorded.":"No se grabó nada.",
|
| 318 |
"Notifications":"Notificaciones",
|
| 319 |
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the 15 given events in as if they were arriving live.":"En Añadir eventos, escribe o pega un mensaje, adjunta un archivo o díctalo. Ejecutar eventos reproduce los 15 eventos dados como si llegaran en vivo.",
|
| 320 |
+
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the {n} demo events in as if they were arriving live.":"En Añadir eventos, escribe o pega un mensaje, adjunta un archivo o díctalo. Ejecutar eventos reproduce los {n} eventos de demostración como si llegaran en vivo.",
|
| 321 |
"On a test set, {delete} removes that result for good (it asks first).":"En un conjunto de pruebas, {delete} elimina ese resultado para siempre (antes lo pregunta).",
|
| 322 |
"On track":"A tiempo",
|
| 323 |
"One coordinator and three specialists. Specialists plan; the coordinator checks every planned call against the agent's tools, then runs it.":"Un coordinador y tres especialistas. Los especialistas planifican; el coordinador comprueba cada llamada prevista con las herramientas del agente y luego la ejecuta.",
|
|
|
|
| 413 |
"Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.":"Los rumores y todo lo que no se puede confirmar pasan a una persona. No se cambia nada por ellos.",
|
| 414 |
"Run events":"Ejecutar eventos",
|
| 415 |
"Run events walks the 15 given events and the chat's events":"Ejecutar eventos recorre los 15 eventos dados y los del chat",
|
| 416 |
+
"Run events walks the {n} demo events":"Ejecutar eventos recorre los {n} eventos de demostración",
|
| 417 |
"Run history":"Historial de ejecuciones",
|
| 418 |
"Run output, every tool call, and the test-run history":"Salida de ejecución, cada llamada a herramienta y el historial de pruebas",
|
| 419 |
"Run tests":"Ejecutar pruebas",
|
| 420 |
"Run tests and watch each of the 15 given events pass or fail as it finishes":"Ejecuta las pruebas y ve cómo cada uno de los 15 eventos aprueba o falla al terminar",
|
| 421 |
+
"Run tests and watch each of the {n} demo events pass or fail as it finishes":"Ejecuta las pruebas y ve cómo cada uno de los {n} eventos de demostración aprueba o falla al terminar",
|
| 422 |
"Run the demo":"Ejecutar la demostración",
|
| 423 |
"Running":"En curso",
|
| 424 |
"Running the demo":"Ejecutando la demostración",
|
|
|
|
| 447 |
"Showing the first 1,000 of {n}.":"Se muestran los primeros 1000 de {n}.",
|
| 448 |
"Showing {n} of {m}":"Mostrando {n} de {m}",
|
| 449 |
"Small":"Pequeño",
|
| 450 |
+
"Someone else is running the tests right now. Try again in a minute.":"Otra persona está ejecutando las pruebas ahora mismo. Inténtalo de nuevo en un minuto.",
|
| 451 |
"Specialist agents plan tool calls; the coordinator checks each one against the handbook, then runs it.":"Los agentes especialistas planifican las llamadas a herramientas; el coordinador comprueba cada una con el manual y luego la ejecuta.",
|
| 452 |
"Speech engine":"Motor de voz",
|
| 453 |
"Spreadsheet (.csv)":"Hoja de cálculo (.csv)",
|
|
|
|
| 482 |
"Test sets":"Conjuntos de pruebas",
|
| 483 |
"Test summary report":"Informe resumen de pruebas",
|
| 484 |
"Tests":"Pruebas",
|
| 485 |
+
"Tests compares the tower's actions with answer keys, case by case, for the demo events.":"Pruebas compara las acciones de la torre con las claves de respuesta, caso por caso, para los eventos de demostración.",
|
| 486 |
"Tests compares the tower's actions with answer keys, case by case, for the given events and the blind set.":"Pruebas compara las acciones de la torre con las claves de respuesta, caso por caso, para los eventos dados y el conjunto ciego.",
|
| 487 |
"Text size":"Tamaño del texto",
|
| 488 |
"That test set has no results for this reader.":"Ese conjunto de pruebas no tiene resultados para este lector.",
|
|
|
|
| 554 |
"Waiting":"Esperando",
|
| 555 |
"Waiting for events.":"Esperando eventos.",
|
| 556 |
"Walks the 15 given events, then any event from the chat, and shows each one as it finishes. The saved run of the 15 stays as it is.":"Recorre los 15 eventos dados y después los eventos del chat, y muestra cada uno al terminar. La ejecución guardada de los 15 no cambia.",
|
| 557 |
+
"Walks the {n} demo events and shows each one as it finishes.":"Recorre los {n} eventos de demostración y muestra cada uno al terminar.",
|
| 558 |
"Week":"Semana",
|
| 559 |
"Week of {date}":"Semana del {date}",
|
| 560 |
"What a person needs to answer":"Qué debe responder una persona",
|
|
|
|
| 580 |
"Why they were escalated":"Por qué se escalaron",
|
| 581 |
"Will ask when you record":"Se preguntará al grabar",
|
| 582 |
"Working: {name}":"Funciona: {name}",
|
| 583 |
+
"Written by hand for each demo event":"Escritas a mano para cada evento de demostración",
|
| 584 |
"Written by hand for the 15 given events; built from the company records for the blind set":"Escritas a mano para los 15 eventos dados; creadas a partir de los registros de la empresa para el conjunto ciego",
|
| 585 |
"Zoom in":"Acercar",
|
| 586 |
"Zoom out":"Alejar",
|
|
|
|
| 618 |
"part id":"id de pieza",
|
| 619 |
"partly handled already":"ya atendidos en parte",
|
| 620 |
"passed":"aprobados",
|
| 621 |
+
"per event, in your test run":"por evento, en tu ejecución de pruebas",
|
| 622 |
"per event, on a local 1.7B model":"por evento, en un modelo local de 1.7B",
|
| 623 |
"plant id":"id de planta",
|
| 624 |
"quality holds":"retenciones de calidad",
|
tower/ui/web/src/locales/fr.json
CHANGED
|
@@ -202,6 +202,7 @@
|
|
| 202 |
"Give the tower a new message, or run the whole feed.":"Donnez un nouveau message à la tour, ou exécutez tout le flux.",
|
| 203 |
"Given tests":"Tests fournis",
|
| 204 |
"Gold":"Gold",
|
|
|
|
| 205 |
"Group by":"Grouper par",
|
| 206 |
"Guardrail:":"Garde-fou :",
|
| 207 |
"Guide":"Guide",
|
|
@@ -288,6 +289,7 @@
|
|
| 288 |
"No events to export.":"Aucun événement à exporter.",
|
| 289 |
"No events yet.":"Aucun événement pour l’instant.",
|
| 290 |
"No events yet. Go to {add} to send one, or to run the 15 given events.":"Aucun événement pour l’instant. Allez dans {add} pour en envoyer un ou lancer les 15 événements fournis.",
|
|
|
|
| 291 |
"No failed calls.":"Aucun appel en échec.",
|
| 292 |
"No failures.":"Aucun échec.",
|
| 293 |
"No graph traversal: nothing operational to trace.":"Aucun parcours du graphe : rien d’opérationnel à retracer.",
|
|
@@ -315,6 +317,7 @@
|
|
| 315 |
"Nothing was recorded.":"Rien n’a été enregistré.",
|
| 316 |
"Notifications":"Notifications",
|
| 317 |
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the 15 given events in as if they were arriving live.":"Dans Ajouter des événements, saisissez ou collez un message, joignez un fichier ou dictez-le. Lancer les événements rejoue les 15 événements fournis comme s’ils arrivaient en direct.",
|
|
|
|
| 318 |
"On a test set, {delete} removes that result for good (it asks first).":"Dans un jeu de tests, {delete} supprime définitivement ce résultat (après confirmation).",
|
| 319 |
"On track":"Dans les temps",
|
| 320 |
"One coordinator and three specialists. Specialists plan; the coordinator checks every planned call against the agent's tools, then runs it.":"Un coordinateur et trois spécialistes. Les spécialistes planifient ; le coordinateur vérifie chaque appel prévu par rapport aux outils de l’agent, puis l’exécute.",
|
|
@@ -410,10 +413,12 @@
|
|
| 410 |
"Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.":"Les rumeurs et tout ce qui ne peut pas être confirmé sont transmis à une personne. Rien n’est modifié pour eux.",
|
| 411 |
"Run events":"Exécuter les événements",
|
| 412 |
"Run events walks the 15 given events and the chat's events":"Exécuter les événements parcourt les 15 événements fournis et ceux du chat",
|
|
|
|
| 413 |
"Run history":"Historique des exécutions",
|
| 414 |
"Run output, every tool call, and the test-run history":"Sortie d’exécution, chaque appel d’outil et l’historique des tests",
|
| 415 |
"Run tests":"Lancer les tests",
|
| 416 |
"Run tests and watch each of the 15 given events pass or fail as it finishes":"Lancez les tests et voyez chacun des 15 événements réussir ou échouer dès qu’il est terminé",
|
|
|
|
| 417 |
"Run the demo":"Exécuter le démonstrateur",
|
| 418 |
"Running":"En cours",
|
| 419 |
"Running the demo":"Exécution du démonstrateur",
|
|
@@ -442,6 +447,7 @@
|
|
| 442 |
"Showing the first 1,000 of {n}.":"Affichage des 1 000 premiers sur {n}.",
|
| 443 |
"Showing {n} of {m}":"{n} affichés sur {m}",
|
| 444 |
"Small":"Petit",
|
|
|
|
| 445 |
"Specialist agents plan tool calls; the coordinator checks each one against the handbook, then runs it.":"Les agents spécialisés planifient les appels d’outils ; le coordinateur vérifie chacun avec le manuel, puis l’exécute.",
|
| 446 |
"Speech engine":"Moteur vocal",
|
| 447 |
"Spreadsheet (.csv)":"Tableur (.csv)",
|
|
@@ -476,6 +482,7 @@
|
|
| 476 |
"Test sets":"Jeux de tests",
|
| 477 |
"Test summary report":"Rapport de synthèse des tests",
|
| 478 |
"Tests":"Tests",
|
|
|
|
| 479 |
"Tests compares the tower's actions with answer keys, case by case, for the given events and the blind set.":"Tests compare les actions de la tour aux corrigés, cas par cas, pour les événements fournis et le jeu à l’aveugle.",
|
| 480 |
"Text size":"Taille du texte",
|
| 481 |
"That test set has no results for this reader.":"Ce jeu de tests n’a aucun résultat pour ce lecteur.",
|
|
@@ -547,6 +554,7 @@
|
|
| 547 |
"Waiting":"En attente",
|
| 548 |
"Waiting for events.":"En attente d'événements.",
|
| 549 |
"Walks the 15 given events, then any event from the chat, and shows each one as it finishes. The saved run of the 15 stays as it is.":"Parcourt les 15 événements fournis, puis ceux du chat, et affiche chacun dès qu’il est terminé. L’exécution enregistrée des 15 reste inchangée.",
|
|
|
|
| 550 |
"Week":"Semaine",
|
| 551 |
"Week of {date}":"Semaine du {date}",
|
| 552 |
"What a person needs to answer":"Ce qu’une personne doit trancher",
|
|
@@ -572,6 +580,7 @@
|
|
| 572 |
"Why they were escalated":"Pourquoi ils ont été transmis",
|
| 573 |
"Will ask when you record":"Demandé à l’enregistrement",
|
| 574 |
"Working: {name}":"Fonctionne : {name}",
|
|
|
|
| 575 |
"Written by hand for the 15 given events; built from the company records for the blind set":"Rédigés à la main pour les 15 événements fournis ; construits à partir des données de l’entreprise pour le jeu à l’aveugle",
|
| 576 |
"Zoom in":"Zoomer en avant",
|
| 577 |
"Zoom out":"Zoomer en arrière",
|
|
@@ -609,6 +618,7 @@
|
|
| 609 |
"part id":"id pièce",
|
| 610 |
"partly handled already":"déjà en partie traités",
|
| 611 |
"passed":"réussis",
|
|
|
|
| 612 |
"per event, on a local 1.7B model":"par événement, sur un modèle local de 1.7B",
|
| 613 |
"plant id":"id usine",
|
| 614 |
"quality holds":"blocages qualité",
|
|
|
|
| 202 |
"Give the tower a new message, or run the whole feed.":"Donnez un nouveau message à la tour, ou exécutez tout le flux.",
|
| 203 |
"Given tests":"Tests fournis",
|
| 204 |
"Gold":"Gold",
|
| 205 |
+
"Grades the {n} demo events with the AI model. Each case shows up as soon as it finishes.":"Évalue les {n} événements de démonstration avec le modèle d’IA. Chaque cas apparaît dès qu’il est terminé.",
|
| 206 |
"Group by":"Grouper par",
|
| 207 |
"Guardrail:":"Garde-fou :",
|
| 208 |
"Guide":"Guide",
|
|
|
|
| 289 |
"No events to export.":"Aucun événement à exporter.",
|
| 290 |
"No events yet.":"Aucun événement pour l’instant.",
|
| 291 |
"No events yet. Go to {add} to send one, or to run the 15 given events.":"Aucun événement pour l’instant. Allez dans {add} pour en envoyer un ou lancer les 15 événements fournis.",
|
| 292 |
+
"No events yet. Go to {add} to send one, or to run the {n} demo events.":"Aucun événement pour l’instant. Allez dans {add} pour en envoyer un ou lancer les {n} événements de démonstration.",
|
| 293 |
"No failed calls.":"Aucun appel en échec.",
|
| 294 |
"No failures.":"Aucun échec.",
|
| 295 |
"No graph traversal: nothing operational to trace.":"Aucun parcours du graphe : rien d’opérationnel à retracer.",
|
|
|
|
| 317 |
"Nothing was recorded.":"Rien n’a été enregistré.",
|
| 318 |
"Notifications":"Notifications",
|
| 319 |
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the 15 given events in as if they were arriving live.":"Dans Ajouter des événements, saisissez ou collez un message, joignez un fichier ou dictez-le. Lancer les événements rejoue les 15 événements fournis comme s’ils arrivaient en direct.",
|
| 320 |
+
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the {n} demo events in as if they were arriving live.":"Dans Ajouter des événements, saisissez ou collez un message, joignez un fichier ou dictez-le. Lancer les événements rejoue les {n} événements de démonstration comme s’ils arrivaient en direct.",
|
| 321 |
"On a test set, {delete} removes that result for good (it asks first).":"Dans un jeu de tests, {delete} supprime définitivement ce résultat (après confirmation).",
|
| 322 |
"On track":"Dans les temps",
|
| 323 |
"One coordinator and three specialists. Specialists plan; the coordinator checks every planned call against the agent's tools, then runs it.":"Un coordinateur et trois spécialistes. Les spécialistes planifient ; le coordinateur vérifie chaque appel prévu par rapport aux outils de l’agent, puis l’exécute.",
|
|
|
|
| 413 |
"Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.":"Les rumeurs et tout ce qui ne peut pas être confirmé sont transmis à une personne. Rien n’est modifié pour eux.",
|
| 414 |
"Run events":"Exécuter les événements",
|
| 415 |
"Run events walks the 15 given events and the chat's events":"Exécuter les événements parcourt les 15 événements fournis et ceux du chat",
|
| 416 |
+
"Run events walks the {n} demo events":"Exécuter les événements parcourt les {n} événements de démonstration",
|
| 417 |
"Run history":"Historique des exécutions",
|
| 418 |
"Run output, every tool call, and the test-run history":"Sortie d’exécution, chaque appel d’outil et l’historique des tests",
|
| 419 |
"Run tests":"Lancer les tests",
|
| 420 |
"Run tests and watch each of the 15 given events pass or fail as it finishes":"Lancez les tests et voyez chacun des 15 événements réussir ou échouer dès qu’il est terminé",
|
| 421 |
+
"Run tests and watch each of the {n} demo events pass or fail as it finishes":"Lancez les tests et voyez chacun des {n} événements de démonstration réussir ou échouer dès qu’il est terminé",
|
| 422 |
"Run the demo":"Exécuter le démonstrateur",
|
| 423 |
"Running":"En cours",
|
| 424 |
"Running the demo":"Exécution du démonstrateur",
|
|
|
|
| 447 |
"Showing the first 1,000 of {n}.":"Affichage des 1 000 premiers sur {n}.",
|
| 448 |
"Showing {n} of {m}":"{n} affichés sur {m}",
|
| 449 |
"Small":"Petit",
|
| 450 |
+
"Someone else is running the tests right now. Try again in a minute.":"Quelqu’un d’autre lance les tests en ce moment. Réessayez dans une minute.",
|
| 451 |
"Specialist agents plan tool calls; the coordinator checks each one against the handbook, then runs it.":"Les agents spécialisés planifient les appels d’outils ; le coordinateur vérifie chacun avec le manuel, puis l’exécute.",
|
| 452 |
"Speech engine":"Moteur vocal",
|
| 453 |
"Spreadsheet (.csv)":"Tableur (.csv)",
|
|
|
|
| 482 |
"Test sets":"Jeux de tests",
|
| 483 |
"Test summary report":"Rapport de synthèse des tests",
|
| 484 |
"Tests":"Tests",
|
| 485 |
+
"Tests compares the tower's actions with answer keys, case by case, for the demo events.":"Tests compare les actions de la tour aux corrigés, cas par cas, pour les événements de démonstration.",
|
| 486 |
"Tests compares the tower's actions with answer keys, case by case, for the given events and the blind set.":"Tests compare les actions de la tour aux corrigés, cas par cas, pour les événements fournis et le jeu à l’aveugle.",
|
| 487 |
"Text size":"Taille du texte",
|
| 488 |
"That test set has no results for this reader.":"Ce jeu de tests n’a aucun résultat pour ce lecteur.",
|
|
|
|
| 554 |
"Waiting":"En attente",
|
| 555 |
"Waiting for events.":"En attente d'événements.",
|
| 556 |
"Walks the 15 given events, then any event from the chat, and shows each one as it finishes. The saved run of the 15 stays as it is.":"Parcourt les 15 événements fournis, puis ceux du chat, et affiche chacun dès qu’il est terminé. L’exécution enregistrée des 15 reste inchangée.",
|
| 557 |
+
"Walks the {n} demo events and shows each one as it finishes.":"Parcourt les {n} événements de démonstration et affiche chacun dès qu’il est terminé.",
|
| 558 |
"Week":"Semaine",
|
| 559 |
"Week of {date}":"Semaine du {date}",
|
| 560 |
"What a person needs to answer":"Ce qu’une personne doit trancher",
|
|
|
|
| 580 |
"Why they were escalated":"Pourquoi ils ont été transmis",
|
| 581 |
"Will ask when you record":"Demandé à l’enregistrement",
|
| 582 |
"Working: {name}":"Fonctionne : {name}",
|
| 583 |
+
"Written by hand for each demo event":"Rédigés à la main pour chaque événement de démonstration",
|
| 584 |
"Written by hand for the 15 given events; built from the company records for the blind set":"Rédigés à la main pour les 15 événements fournis ; construits à partir des données de l’entreprise pour le jeu à l’aveugle",
|
| 585 |
"Zoom in":"Zoomer en avant",
|
| 586 |
"Zoom out":"Zoomer en arrière",
|
|
|
|
| 618 |
"part id":"id pièce",
|
| 619 |
"partly handled already":"déjà en partie traités",
|
| 620 |
"passed":"réussis",
|
| 621 |
+
"per event, in your test run":"par événement, dans votre série de tests",
|
| 622 |
"per event, on a local 1.7B model":"par événement, sur un modèle local de 1.7B",
|
| 623 |
"plant id":"id usine",
|
| 624 |
"quality holds":"blocages qualité",
|
tower/ui/web/src/locales/hi.json
CHANGED
|
@@ -202,6 +202,7 @@
|
|
| 202 |
"Give the tower a new message, or run the whole feed.":"टावर को नया संदेश दें, या पूरा फ़ीड चलाएँ।",
|
| 203 |
"Given tests":"दिए गए टेस्ट",
|
| 204 |
"Gold":"गोल्ड",
|
|
|
|
| 205 |
"Group by":"इसके अनुसार समूह",
|
| 206 |
"Guardrail:":"सुरक्षा नियम:",
|
| 207 |
"Guide":"गाइड",
|
|
@@ -288,6 +289,7 @@
|
|
| 288 |
"No events to export.":"निर्यात करने के लिए कोई इवेंट नहीं।",
|
| 289 |
"No events yet.":"अभी कोई इवेंट नहीं।",
|
| 290 |
"No events yet. Go to {add} to send one, or to run the 15 given events.":"अभी कोई इवेंट नहीं। एक भेजने या दिए गए 15 इवेंट चलाने के लिए {add} पर जाएँ।",
|
|
|
|
| 291 |
"No failed calls.":"कोई विफल कॉल नहीं।",
|
| 292 |
"No failures.":"कोई विफलता नहीं।",
|
| 293 |
"No graph traversal: nothing operational to trace.":"कोई ग्राफ़ ट्रैवर्सल नहीं: खोजने के लिए कुछ परिचालन नहीं है।",
|
|
@@ -315,6 +317,7 @@
|
|
| 315 |
"Nothing was recorded.":"कुछ रिकॉर्ड नहीं हुआ।",
|
| 316 |
"Notifications":"सूचनाएँ",
|
| 317 |
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the 15 given events in as if they were arriving live.":"इवेंट जोड़ें में संदेश टाइप या पेस्ट करें, फ़ाइल जोड़ें या बोलकर लिखें। इवेंट चलाएँ दिए गए 15 इवेंट को ऐसे चलाता है जैसे वे लाइव आ रहे हों।",
|
|
|
|
| 318 |
"On a test set, {delete} removes that result for good (it asks first).":"किसी टेस्ट सेट में, {delete} उस परिणाम को हमेशा के लिए हटा देता है (पहले पूछता है)।",
|
| 319 |
"On track":"समय पर",
|
| 320 |
"One coordinator and three specialists. Specialists plan; the coordinator checks every planned call against the agent's tools, then runs it.":"एक कोऑर्डिनेटर और तीन विशेषज्ञ। विशेषज्ञ योजना बनाते हैं; कोऑर्डिनेटर हर नियोजित कॉल को उस एजेंट के टूल से जाँचता है, फिर चलाता है।",
|
|
@@ -410,10 +413,12 @@
|
|
| 410 |
"Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.":"अफ़वाहें और जिसकी पुष्टि न हो सके, वह किसी व्यक्ति को भेजा जाता है। उनके लिए कुछ नहीं बदला जाता।",
|
| 411 |
"Run events":"इवेंट चलाएँ",
|
| 412 |
"Run events walks the 15 given events and the chat's events":"इवेंट चलाएँ, दिए गए 15 इवेंट और चैट के इवेंट एक-एक करके चलाता है",
|
|
|
|
| 413 |
"Run history":"रन इतिहास",
|
| 414 |
"Run output, every tool call, and the test-run history":"रन आउटपुट, हर टूल कॉल और टेस्ट-रन इतिहास",
|
| 415 |
"Run tests":"टेस्ट चलाएँ",
|
| 416 |
"Run tests and watch each of the 15 given events pass or fail as it finishes":"टेस्ट चलाएँ और दिए गए 15 इवेंट में से हर एक को पूरा होते ही पास या विफल होते देखें",
|
|
|
|
| 417 |
"Run the demo":"डेमो चलाएं",
|
| 418 |
"Running":"चल रहा है",
|
| 419 |
"Running the demo":"डेमो चलाएं",
|
|
@@ -442,6 +447,7 @@
|
|
| 442 |
"Showing the first 1,000 of {n}.":"{n} में से पहले 1,000 दिखाए जा रहे हैं।",
|
| 443 |
"Showing {n} of {m}":"{m} में से {n} दिखाए जा रहे हैं",
|
| 444 |
"Small":"छोटा",
|
|
|
|
| 445 |
"Specialist agents plan tool calls; the coordinator checks each one against the handbook, then runs it.":"विशेषज्ञ एजेंट टूल कॉल की योजना बनाते हैं; कोऑर्डिनेटर हर एक को हैंडबुक से जाँचकर चलाता है।",
|
| 446 |
"Speech engine":"स्पीच इंजन",
|
| 447 |
"Spreadsheet (.csv)":"स्प्रेडशीट (.csv)",
|
|
@@ -476,6 +482,7 @@
|
|
| 476 |
"Test sets":"टेस्ट सेट",
|
| 477 |
"Test summary report":"टेस्ट सारांश रिपोर्ट",
|
| 478 |
"Tests":"टेस्ट",
|
|
|
|
| 479 |
"Tests compares the tower's actions with answer keys, case by case, for the given events and the blind set.":"टेस्ट दिए गए इवेंट और ब्लाइंड सेट के लिए टावर की कार्रवाइयों की उत्तर कुंजी से केस-दर-केस तुलना करता है।",
|
| 480 |
"Text size":"टेक्स्ट का आकार",
|
| 481 |
"That test set has no results for this reader.":"इस टेस्ट सेट में इस रीडर के कोई परिणाम नहीं हैं।",
|
|
@@ -547,6 +554,7 @@
|
|
| 547 |
"Waiting":"इंतजार",
|
| 548 |
"Waiting for events.":"गतिविधियों का इंतजार",
|
| 549 |
"Walks the 15 given events, then any event from the chat, and shows each one as it finishes. The saved run of the 15 stays as it is.":"दिए गए 15 इवेंट और फिर चैट के इवेंट एक-एक करके चलाता है, और हर इवेंट पूरा होते ही दिखाता है। 15 इवेंट का सहेजा गया रन जैसा है वैसा रहता है।",
|
|
|
|
| 550 |
"Week":"सप्ताह",
|
| 551 |
"Week of {date}":"{date} वाला सप्ताह",
|
| 552 |
"What a person needs to answer":"किसी व्यक्ति को क्या जवाब देना है",
|
|
@@ -572,6 +580,7 @@
|
|
| 572 |
"Why they were escalated":"क्यों भेजे गए",
|
| 573 |
"Will ask when you record":"रिकॉर्ड करते समय पूछेगा",
|
| 574 |
"Working: {name}":"काम कर रहा है: {name}",
|
|
|
|
| 575 |
"Written by hand for the 15 given events; built from the company records for the blind set":"दिए गए 15 इवेंट के लिए हाथ से लिखी गईं; ब्लाइंड सेट के लिए कंपनी रिकॉर्ड से बनाई गईं",
|
| 576 |
"Zoom in":"ज़ूम इन",
|
| 577 |
"Zoom out":"ज़ूम आउट",
|
|
@@ -609,6 +618,7 @@
|
|
| 609 |
"part id":"पार्ट आईडी",
|
| 610 |
"partly handled already":"आंशिक रूप से संभाले गए",
|
| 611 |
"passed":"पास",
|
|
|
|
| 612 |
"per event, on a local 1.7B model":"प्रति घटना, स्थानीय 1.7B मॉडल पर",
|
| 613 |
"plant id":"प्लांट आईडी",
|
| 614 |
"quality holds":"गुणवत्ता रोक",
|
|
|
|
| 202 |
"Give the tower a new message, or run the whole feed.":"टावर को नया संदेश दें, या पूरा फ़ीड चलाएँ।",
|
| 203 |
"Given tests":"दिए गए टेस्ट",
|
| 204 |
"Gold":"गोल्ड",
|
| 205 |
+
"Grades the {n} demo events with the AI model. Each case shows up as soon as it finishes.":"{n} डेमो इवेंट को AI मॉडल से जाँचता है। हर केस पूरा होते ही दिखता है।",
|
| 206 |
"Group by":"इसके अनुसार समूह",
|
| 207 |
"Guardrail:":"सुरक्षा नियम:",
|
| 208 |
"Guide":"गाइड",
|
|
|
|
| 289 |
"No events to export.":"निर्यात करने के लिए कोई इवेंट नहीं।",
|
| 290 |
"No events yet.":"अभी कोई इवेंट नहीं।",
|
| 291 |
"No events yet. Go to {add} to send one, or to run the 15 given events.":"अभी कोई इवेंट नहीं। एक भेजने या दिए गए 15 इवेंट चलाने के लिए {add} पर जाएँ।",
|
| 292 |
+
"No events yet. Go to {add} to send one, or to run the {n} demo events.":"अभी कोई इवेंट नहीं। एक भेजने या {n} डेमो इवेंट चलाने के लिए {add} पर जाएँ।",
|
| 293 |
"No failed calls.":"कोई विफल कॉल नहीं।",
|
| 294 |
"No failures.":"कोई विफलता नहीं।",
|
| 295 |
"No graph traversal: nothing operational to trace.":"कोई ग्राफ़ ट्रैवर्सल नहीं: खोजने के लिए कुछ परिचालन नहीं है।",
|
|
|
|
| 317 |
"Nothing was recorded.":"कुछ रिकॉर्ड नहीं हुआ।",
|
| 318 |
"Notifications":"सूचनाएँ",
|
| 319 |
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the 15 given events in as if they were arriving live.":"इवेंट जोड़ें में संदेश टाइप या पेस्ट करें, फ़ाइल जोड़ें या बोलकर लिखें। इवेंट चलाएँ दिए गए 15 इवेंट को ऐसे चलाता है जैसे वे लाइव आ रहे हों।",
|
| 320 |
+
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the {n} demo events in as if they were arriving live.":"इवेंट जोड़ें में संदेश टाइप या पेस्ट करें, फ़ाइल जोड़ें या बोलकर लिखें। इवेंट चलाएँ {n} डेमो इवेंट को ऐसे चलाता है जैसे वे लाइव आ रहे हों।",
|
| 321 |
"On a test set, {delete} removes that result for good (it asks first).":"किसी टेस्ट सेट में, {delete} उस परिणाम को हमेशा के लिए हटा देता है (पहले पूछता है)।",
|
| 322 |
"On track":"समय पर",
|
| 323 |
"One coordinator and three specialists. Specialists plan; the coordinator checks every planned call against the agent's tools, then runs it.":"एक कोऑर्डिनेटर और तीन विशेषज्ञ। विशेषज्ञ योजना बनाते हैं; कोऑर्डिनेटर हर नियोजित कॉल को उस एजेंट के टूल से जाँचता है, फिर चलाता है।",
|
|
|
|
| 413 |
"Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.":"अफ़वाहें और जिसकी पुष्टि न हो सके, वह किसी व्यक्ति को भेजा जाता है। उनके लिए कुछ नहीं बदला जाता।",
|
| 414 |
"Run events":"इवेंट चलाएँ",
|
| 415 |
"Run events walks the 15 given events and the chat's events":"इवेंट चलाएँ, दिए गए 15 इवेंट और चैट के इवेंट एक-एक करके चलाता है",
|
| 416 |
+
"Run events walks the {n} demo events":"इवेंट चलाएँ, {n} डेमो इवेंट एक-एक करके चलाता है",
|
| 417 |
"Run history":"रन इतिहास",
|
| 418 |
"Run output, every tool call, and the test-run history":"रन आउटपुट, हर टूल कॉल और टेस्ट-रन इतिहास",
|
| 419 |
"Run tests":"टेस्ट चलाएँ",
|
| 420 |
"Run tests and watch each of the 15 given events pass or fail as it finishes":"टेस्ट चलाएँ और दिए गए 15 इवेंट में से हर एक को पूरा होते ही पास या विफल होते देखें",
|
| 421 |
+
"Run tests and watch each of the {n} demo events pass or fail as it finishes":"टेस्��� चलाएँ और {n} डेमो इवेंट में से हर एक को पूरा होते ही पास या विफल होते देखें",
|
| 422 |
"Run the demo":"डेमो चलाएं",
|
| 423 |
"Running":"चल रहा है",
|
| 424 |
"Running the demo":"डेमो चलाएं",
|
|
|
|
| 447 |
"Showing the first 1,000 of {n}.":"{n} में से पहले 1,000 दिखाए जा रहे हैं।",
|
| 448 |
"Showing {n} of {m}":"{m} में से {n} दिखाए जा रहे हैं",
|
| 449 |
"Small":"छोटा",
|
| 450 |
+
"Someone else is running the tests right now. Try again in a minute.":"अभी कोई और टेस्ट चला रहा है। एक मिनट बाद फिर कोशिश करें।",
|
| 451 |
"Specialist agents plan tool calls; the coordinator checks each one against the handbook, then runs it.":"विशेषज्ञ एजेंट टूल कॉल की योजना बनाते हैं; कोऑर्डिनेटर हर एक को हैंडबुक से जाँचकर चलाता है।",
|
| 452 |
"Speech engine":"स्पीच इंजन",
|
| 453 |
"Spreadsheet (.csv)":"स्प्रेडशीट (.csv)",
|
|
|
|
| 482 |
"Test sets":"टेस्ट सेट",
|
| 483 |
"Test summary report":"टेस्ट सारांश रिपोर्ट",
|
| 484 |
"Tests":"टेस्ट",
|
| 485 |
+
"Tests compares the tower's actions with answer keys, case by case, for the demo events.":"टेस्ट, डेमो इवेंट के लिए, टावर की कार्रवाइयों की तुलना उत्तर कुंजियों से एक-एक केस करके करता है।",
|
| 486 |
"Tests compares the tower's actions with answer keys, case by case, for the given events and the blind set.":"टेस्ट दिए गए इवेंट और ब्लाइंड सेट के लिए टावर की कार्रवाइयों की उत्तर कुंजी से केस-दर-केस तुलना करता है।",
|
| 487 |
"Text size":"टेक्स्ट का आकार",
|
| 488 |
"That test set has no results for this reader.":"इस टेस्ट सेट में इस रीडर के कोई परिणाम नहीं हैं।",
|
|
|
|
| 554 |
"Waiting":"इंतजार",
|
| 555 |
"Waiting for events.":"गतिविधियों का इंतजार",
|
| 556 |
"Walks the 15 given events, then any event from the chat, and shows each one as it finishes. The saved run of the 15 stays as it is.":"दिए गए 15 इवेंट और फिर चैट के इवेंट एक-एक करके चलाता है, और हर इवेंट पूरा होते ही दिखाता है। 15 इवेंट का सहेजा गया रन जैसा है वैसा रहता है।",
|
| 557 |
+
"Walks the {n} demo events and shows each one as it finishes.":"{n} डेमो इवेंट एक-एक करके चलाता है और हर एक को पूरा होते ही दिखाता है।",
|
| 558 |
"Week":"सप्ताह",
|
| 559 |
"Week of {date}":"{date} वाला सप्ताह",
|
| 560 |
"What a person needs to answer":"किसी व्यक्ति को क्या जवाब देना है",
|
|
|
|
| 580 |
"Why they were escalated":"क्यों भेजे गए",
|
| 581 |
"Will ask when you record":"रिकॉर्ड करते समय पूछेगा",
|
| 582 |
"Working: {name}":"काम कर रहा है: {name}",
|
| 583 |
+
"Written by hand for each demo event":"हर डेमो इवेंट के लिए हाथ से लिखी गईं",
|
| 584 |
"Written by hand for the 15 given events; built from the company records for the blind set":"दिए गए 15 इवेंट के लिए हाथ से लिखी गईं; ब्लाइंड सेट के लिए कंपनी रिकॉर्ड से बनाई गईं",
|
| 585 |
"Zoom in":"ज़ूम इन",
|
| 586 |
"Zoom out":"ज़ूम आउट",
|
|
|
|
| 618 |
"part id":"पार्ट आईडी",
|
| 619 |
"partly handled already":"आंशिक रूप से संभाले गए",
|
| 620 |
"passed":"पास",
|
| 621 |
+
"per event, in your test run":"प्रति इवेंट, आपके टेस्ट रन में",
|
| 622 |
"per event, on a local 1.7B model":"प्रति घटना, स्थानीय 1.7B मॉडल पर",
|
| 623 |
"plant id":"प्लांट आईडी",
|
| 624 |
"quality holds":"गुणवत्ता रोक",
|
tower/ui/web/src/locales/ja.json
CHANGED
|
@@ -202,6 +202,7 @@
|
|
| 202 |
"Give the tower a new message, or run the whole feed.":"新しいメッセージをタワーに渡すか、フィード全体を実行します。",
|
| 203 |
"Given tests":"既定のテスト",
|
| 204 |
"Gold":"ゴールド",
|
|
|
|
| 205 |
"Group by":"グループ化",
|
| 206 |
"Guardrail:":"ガードレール:",
|
| 207 |
"Guide":"ガイド",
|
|
@@ -288,6 +289,7 @@
|
|
| 288 |
"No events to export.":"書き出すイベントがありません。",
|
| 289 |
"No events yet.":"まだイベントはありません。",
|
| 290 |
"No events yet. Go to {add} to send one, or to run the 15 given events.":"まだイベントはありません。{add}で送信するか、提供された15件のイベントを実行してください。",
|
|
|
|
| 291 |
"No failed calls.":"失敗した呼び出しはありません。",
|
| 292 |
"No failures.":"失敗はありません。",
|
| 293 |
"No graph traversal: nothing operational to trace.":"グラフの探索なし:たどる業務対象がありません。",
|
|
@@ -315,6 +317,7 @@
|
|
| 315 |
"Nothing was recorded.":"何も録音されませんでした。",
|
| 316 |
"Notifications":"通知",
|
| 317 |
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the 15 given events in as if they were arriving live.":"「イベントを追加」で、メッセージを入力・貼り付け・ファイル添付・音声入力します。「イベントを実行」は提供された15件をライブで届いたように再生します。",
|
|
|
|
| 318 |
"On a test set, {delete} removes that result for good (it asks first).":"テストセットでは、{delete} でその結果を完全に削除します(事前に確認します)。",
|
| 319 |
"On track":"予定どおり",
|
| 320 |
"One coordinator and three specialists. Specialists plan; the coordinator checks every planned call against the agent's tools, then runs it.":"コーディネーター 1 人と専門エージェント 3 人。専門エージェントが計画し、コーディネーターが各呼び出しをそのエージェントのツールと照合してから実行します。",
|
|
@@ -410,10 +413,12 @@
|
|
| 410 |
"Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.":"うわさや確認できない情報は担当者に回します。それらについては何も変更しません。",
|
| 411 |
"Run events":"イベントを実行",
|
| 412 |
"Run events walks the 15 given events and the chat's events":"「イベントを実行」で 15 件の既定イベントとチャットのイベントを順に処理します",
|
|
|
|
| 413 |
"Run history":"実行履歴",
|
| 414 |
"Run output, every tool call, and the test-run history":"実行の出力、すべてのツール呼び出し、テスト実行の履歴",
|
| 415 |
"Run tests":"テストを実行",
|
| 416 |
"Run tests and watch each of the 15 given events pass or fail as it finishes":"テストを実行し、15 件の既定イベントが終わるたびに合否を確認できます",
|
|
|
|
| 417 |
"Run the demo":"デモを実行",
|
| 418 |
"Running":"実行中",
|
| 419 |
"Running the demo":"デモを実行中",
|
|
@@ -442,6 +447,7 @@
|
|
| 442 |
"Showing the first 1,000 of {n}.":"{n}件中、最初の1,000件を表示しています。",
|
| 443 |
"Showing {n} of {m}":"{m} 件中 {n} 件を表示",
|
| 444 |
"Small":"小",
|
|
|
|
| 445 |
"Specialist agents plan tool calls; the coordinator checks each one against the handbook, then runs it.":"専門エージェントがツール呼び出しを計画し、コーディネーターが一つずつハンドブックと照合してから実行します。",
|
| 446 |
"Speech engine":"音声エンジン",
|
| 447 |
"Spreadsheet (.csv)":"スプレッドシート(.csv)",
|
|
@@ -476,6 +482,7 @@
|
|
| 476 |
"Test sets":"テストセット",
|
| 477 |
"Test summary report":"テスト要約レポート",
|
| 478 |
"Tests":"テスト",
|
|
|
|
| 479 |
"Tests compares the tower's actions with answer keys, case by case, for the given events and the blind set.":"テストでは、提供イベントとブラインドセットについて、タワーの行動を解答キーと1件ずつ比較します。",
|
| 480 |
"Text size":"文字サイズ",
|
| 481 |
"That test set has no results for this reader.":"このテストセットには、このリーダーの結果がありません。",
|
|
@@ -547,6 +554,7 @@
|
|
| 547 |
"Waiting":"待機中",
|
| 548 |
"Waiting for events.":"イベントを待機中",
|
| 549 |
"Walks the 15 given events, then any event from the chat, and shows each one as it finishes. The saved run of the 15 stays as it is.":"15 件の既定イベントと、チャットで追加したイベントを順に処理し、終わったものから表示します。保存済みの 15 件の実行結果はそのまま残ります。",
|
|
|
|
| 550 |
"Week":"週",
|
| 551 |
"Week of {date}":"{date}の週",
|
| 552 |
"What a person needs to answer":"担当者が答えるべきこと",
|
|
@@ -572,6 +580,7 @@
|
|
| 572 |
"Why they were escalated":"エスカレーションの理由",
|
| 573 |
"Will ask when you record":"録音時に確認します",
|
| 574 |
"Working: {name}":"使用可能:{name}",
|
|
|
|
| 575 |
"Written by hand for the 15 given events; built from the company records for the blind set":"提供された15件は手作業で作成、ブラインドセットは会社の記録から作成",
|
| 576 |
"Zoom in":"ズームイン",
|
| 577 |
"Zoom out":"ズームアウト",
|
|
@@ -609,6 +618,7 @@
|
|
| 609 |
"part id":"部品 ID",
|
| 610 |
"partly handled already":"一部対応済み",
|
| 611 |
"passed":"合格",
|
|
|
|
| 612 |
"per event, on a local 1.7B model":"各イベントごとにローカルの 1.7B モデルで評価",
|
| 613 |
"plant id":"工場 ID",
|
| 614 |
"quality holds":"品質保留",
|
|
|
|
| 202 |
"Give the tower a new message, or run the whole feed.":"新しいメッセージをタワーに渡すか、フィード全体を実行します。",
|
| 203 |
"Given tests":"既定のテスト",
|
| 204 |
"Gold":"ゴールド",
|
| 205 |
+
"Grades the {n} demo events with the AI model. Each case shows up as soon as it finishes.":"{n} 件のデモイベントを AI モデルで評価します。各ケースは終わり次第表示されます。",
|
| 206 |
"Group by":"グループ化",
|
| 207 |
"Guardrail:":"ガードレール:",
|
| 208 |
"Guide":"ガイド",
|
|
|
|
| 289 |
"No events to export.":"書き出すイベントがありません。",
|
| 290 |
"No events yet.":"まだイベントはありません。",
|
| 291 |
"No events yet. Go to {add} to send one, or to run the 15 given events.":"まだイベントはありません。{add}で送信するか、提供された15件のイベントを実行してください。",
|
| 292 |
+
"No events yet. Go to {add} to send one, or to run the {n} demo events.":"まだイベントはありません。{add}で送信するか、{n} 件のデモイベントを実行してください。",
|
| 293 |
"No failed calls.":"失敗した呼び出しはありません。",
|
| 294 |
"No failures.":"失敗はありません。",
|
| 295 |
"No graph traversal: nothing operational to trace.":"グラフの探索なし:たどる業務対象がありません。",
|
|
|
|
| 317 |
"Nothing was recorded.":"何も録音されませんでした。",
|
| 318 |
"Notifications":"通知",
|
| 319 |
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the 15 given events in as if they were arriving live.":"「イベントを追加」で、メッセージを入力・貼り付け・ファイル添付・音声入力します。「イベントを実行」は提供された15件をライブで届いたように再生します。",
|
| 320 |
+
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the {n} demo events in as if they were arriving live.":"「イベントを追加」で、メッセージを入力・貼り付け・ファイル添付・音声入力します。「イベントを実行」は {n} 件のデモイベントをライブで届いたように再生します。",
|
| 321 |
"On a test set, {delete} removes that result for good (it asks first).":"テストセットでは、{delete} でその結果を完全に削除します(事前に確認します)。",
|
| 322 |
"On track":"予定どおり",
|
| 323 |
"One coordinator and three specialists. Specialists plan; the coordinator checks every planned call against the agent's tools, then runs it.":"コーディネーター 1 人と専門エージェント 3 人。専門エージェントが計画し、コーディネーターが各呼び出しをそのエージェントのツールと照合してから実行します。",
|
|
|
|
| 413 |
"Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.":"うわさや確認できない情報は担当者に回します。それらについては何も変更しません。",
|
| 414 |
"Run events":"イベントを実行",
|
| 415 |
"Run events walks the 15 given events and the chat's events":"「イベントを実行」で 15 件の既定イベントとチャットのイベントを順に処理します",
|
| 416 |
+
"Run events walks the {n} demo events":"「イベントを実行」で {n} 件のデモイベントを順に処理します",
|
| 417 |
"Run history":"実行履歴",
|
| 418 |
"Run output, every tool call, and the test-run history":"実行の出力、すべてのツール呼び出し、テスト実行の履歴",
|
| 419 |
"Run tests":"テストを実行",
|
| 420 |
"Run tests and watch each of the 15 given events pass or fail as it finishes":"テストを実行し、15 件の既定イベントが終わるたびに合否を確認できます",
|
| 421 |
+
"Run tests and watch each of the {n} demo events pass or fail as it finishes":"テストを実行し、{n} 件のデモイベントが終わるたびに合否を確認できます",
|
| 422 |
"Run the demo":"デモを実行",
|
| 423 |
"Running":"実行中",
|
| 424 |
"Running the demo":"デモを実行中",
|
|
|
|
| 447 |
"Showing the first 1,000 of {n}.":"{n}件中、最初の1,000件を表示しています。",
|
| 448 |
"Showing {n} of {m}":"{m} 件中 {n} 件を表示",
|
| 449 |
"Small":"小",
|
| 450 |
+
"Someone else is running the tests right now. Try again in a minute.":"現在、他の人がテストを実行中です。1 分後にもう一度お試しください。",
|
| 451 |
"Specialist agents plan tool calls; the coordinator checks each one against the handbook, then runs it.":"専門エージェントがツール呼び出しを計画し、コーディネーターが一つずつハンドブックと照合してから実行します。",
|
| 452 |
"Speech engine":"音声エンジン",
|
| 453 |
"Spreadsheet (.csv)":"スプレッドシート(.csv)",
|
|
|
|
| 482 |
"Test sets":"テストセット",
|
| 483 |
"Test summary report":"テスト要約レポート",
|
| 484 |
"Tests":"テスト",
|
| 485 |
+
"Tests compares the tower's actions with answer keys, case by case, for the demo events.":"テストでは、デモイベントについて、タワーの操作を正解データとケースごとに比較します。",
|
| 486 |
"Tests compares the tower's actions with answer keys, case by case, for the given events and the blind set.":"テストでは、提供イベントとブラインドセットについて、タワーの行動を解答キーと1件ずつ比較します。",
|
| 487 |
"Text size":"文字サイズ",
|
| 488 |
"That test set has no results for this reader.":"このテストセットには、このリーダーの結果がありません。",
|
|
|
|
| 554 |
"Waiting":"待機中",
|
| 555 |
"Waiting for events.":"イベントを待機中",
|
| 556 |
"Walks the 15 given events, then any event from the chat, and shows each one as it finishes. The saved run of the 15 stays as it is.":"15 件の既定イベントと、チャットで追加したイベントを順に処理し、終わったものから表示します。保存済みの 15 件の実行結果はそのまま残ります。",
|
| 557 |
+
"Walks the {n} demo events and shows each one as it finishes.":"{n} 件のデモイベントを順に処理し、終わったものから表示します。",
|
| 558 |
"Week":"週",
|
| 559 |
"Week of {date}":"{date}の週",
|
| 560 |
"What a person needs to answer":"担当者が答えるべきこと",
|
|
|
|
| 580 |
"Why they were escalated":"エスカレーションの理由",
|
| 581 |
"Will ask when you record":"録音時に確認します",
|
| 582 |
"Working: {name}":"使用可能:{name}",
|
| 583 |
+
"Written by hand for each demo event":"各デモイベントについて手作業で作成",
|
| 584 |
"Written by hand for the 15 given events; built from the company records for the blind set":"提供された15件は手作業で作成、ブラインドセットは会社の記録から作成",
|
| 585 |
"Zoom in":"ズームイン",
|
| 586 |
"Zoom out":"ズームアウト",
|
|
|
|
| 618 |
"part id":"部品 ID",
|
| 619 |
"partly handled already":"一部対応済み",
|
| 620 |
"passed":"合格",
|
| 621 |
+
"per event, in your test run":"1 イベントあたり(あなたのテスト実行)",
|
| 622 |
"per event, on a local 1.7B model":"各イベントごとにローカルの 1.7B モデルで評価",
|
| 623 |
"plant id":"工場 ID",
|
| 624 |
"quality holds":"品質保留",
|
tower/ui/web/src/locales/ko.json
CHANGED
|
@@ -202,6 +202,7 @@
|
|
| 202 |
"Give the tower a new message, or run the whole feed.":"타워에 새 메시지를 주거나 피드 전체를 실행합니다.",
|
| 203 |
"Given tests":"기본 테스트",
|
| 204 |
"Gold":"골드",
|
|
|
|
| 205 |
"Group by":"그룹 기준",
|
| 206 |
"Guardrail:":"안전장치:",
|
| 207 |
"Guide":"가이드",
|
|
@@ -288,6 +289,7 @@
|
|
| 288 |
"No events to export.":"내보낼 이벤트가 없습니다.",
|
| 289 |
"No events yet.":"아직 이벤트가 없습니다.",
|
| 290 |
"No events yet. Go to {add} to send one, or to run the 15 given events.":"아직 이벤트가 없습니다. {add}에서 이벤트를 보내거나 주어진 15개 이벤트를 실행하세요.",
|
|
|
|
| 291 |
"No failed calls.":"실패한 호출이 없습니다.",
|
| 292 |
"No failures.":"실패 없음.",
|
| 293 |
"No graph traversal: nothing operational to trace.":"그래프 탐색 없음: 추적할 운영 대상이 없습니다.",
|
|
@@ -315,6 +317,7 @@
|
|
| 315 |
"Nothing was recorded.":"녹음된 내용이 없습니다.",
|
| 316 |
"Notifications":"알림",
|
| 317 |
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the 15 given events in as if they were arriving live.":"이벤트 추가에서 메시지를 입력·붙여넣기·파일 첨부·음성 입력하세요. 이벤트 실행은 주어진 15개 이벤트를 실시간으로 도착하는 것처럼 재생합니다.",
|
|
|
|
| 318 |
"On a test set, {delete} removes that result for good (it asks first).":"테스트 세트에서 {delete}을(를) 누르면 해당 결과가 영구 삭제됩니다(먼저 확인합니다).",
|
| 319 |
"On track":"정상",
|
| 320 |
"One coordinator and three specialists. Specialists plan; the coordinator checks every planned call against the agent's tools, then runs it.":"코디네이터 1명과 전문 에이전트 3명. 전문 에이전트가 계획하고, 코디네이터가 계획된 호출을 해당 에이전트의 도구와 대조한 뒤 실행합니다.",
|
|
@@ -410,10 +413,12 @@
|
|
| 410 |
"Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.":"소문이나 확인할 수 없는 내용은 담당자에게 넘깁니다. 이에 대해서는 아무것도 바꾸지 않습니다.",
|
| 411 |
"Run events":"이벤트 실행",
|
| 412 |
"Run events walks the 15 given events and the chat's events":"이벤트 실행은 기본 이벤트 15개와 채팅 이벤트를 차례로 처리합니다",
|
|
|
|
| 413 |
"Run history":"실행 기록",
|
| 414 |
"Run output, every tool call, and the test-run history":"실행 출력, 모든 도구 호출, 테스트 실행 기록",
|
| 415 |
"Run tests":"테스트 실행",
|
| 416 |
"Run tests and watch each of the 15 given events pass or fail as it finishes":"테스트를 실행하고 기본 이벤트 15개가 끝날 때마다 통과·실패를 확인합니다",
|
|
|
|
| 417 |
"Run the demo":"데모 실행",
|
| 418 |
"Running":"실행 중",
|
| 419 |
"Running the demo":"데모 실행 중",
|
|
@@ -442,6 +447,7 @@
|
|
| 442 |
"Showing the first 1,000 of {n}.":"{n}개 중 처음 1,000개를 표시합니다.",
|
| 443 |
"Showing {n} of {m}":"{m}개 중 {n}개 표시",
|
| 444 |
"Small":"작게",
|
|
|
|
| 445 |
"Specialist agents plan tool calls; the coordinator checks each one against the handbook, then runs it.":"전문 에이전트가 도구 호출을 계획하고, 코디네이터가 하나씩 핸드북과 대조한 뒤 실행합니다.",
|
| 446 |
"Speech engine":"음성 엔진",
|
| 447 |
"Spreadsheet (.csv)":"스프레드시트(.csv)",
|
|
@@ -476,6 +482,7 @@
|
|
| 476 |
"Test sets":"테스트 세트",
|
| 477 |
"Test summary report":"테스트 요약 보고서",
|
| 478 |
"Tests":"테스트",
|
|
|
|
| 479 |
"Tests compares the tower's actions with answer keys, case by case, for the given events and the blind set.":"테스트는 주어진 이벤트와 블라인드 세트에 대해 타워의 조치를 정답과 사례별로 비교합니다.",
|
| 480 |
"Text size":"글자 크기",
|
| 481 |
"That test set has no results for this reader.":"이 테스트 세���에는 이 판독기의 결과가 없습니다.",
|
|
@@ -547,6 +554,7 @@
|
|
| 547 |
"Waiting":"대기 중",
|
| 548 |
"Waiting for events.":"이벤트를 기다리는 중",
|
| 549 |
"Walks the 15 given events, then any event from the chat, and shows each one as it finishes. The saved run of the 15 stays as it is.":"기본 이벤트 15개와 채팅에서 추가한 이벤트를 차례로 처리하고, 끝나는 대로 하나씩 보여 줍니다. 저장된 15개 실행 결과는 그대로 유지됩니다.",
|
|
|
|
| 550 |
"Week":"주",
|
| 551 |
"Week of {date}":"{date} 주",
|
| 552 |
"What a person needs to answer":"담당자가 답해야 할 내용",
|
|
@@ -572,6 +580,7 @@
|
|
| 572 |
"Why they were escalated":"에스컬레이션한 이유",
|
| 573 |
"Will ask when you record":"녹음할 때 묻습니다",
|
| 574 |
"Working: {name}":"작동 중: {name}",
|
|
|
|
| 575 |
"Written by hand for the 15 given events; built from the company records for the blind set":"주어진 15개 이벤트는 직접 작성, 블라인드 세트는 회사 기록으로 생성",
|
| 576 |
"Zoom in":"확대",
|
| 577 |
"Zoom out":"축소",
|
|
@@ -609,6 +618,7 @@
|
|
| 609 |
"part id":"부품 ID",
|
| 610 |
"partly handled already":"이미 일부 처리됨",
|
| 611 |
"passed":"통과",
|
|
|
|
| 612 |
"per event, on a local 1.7B model":"각 이벤트당, 로컬 1.7B 모델 기준",
|
| 613 |
"plant id":"공장 ID",
|
| 614 |
"quality holds":"품질 보류",
|
|
|
|
| 202 |
"Give the tower a new message, or run the whole feed.":"타워에 새 메시지를 주거나 피드 전체를 실행합니다.",
|
| 203 |
"Given tests":"기본 테스트",
|
| 204 |
"Gold":"골드",
|
| 205 |
+
"Grades the {n} demo events with the AI model. Each case shows up as soon as it finishes.":"데모 이벤트 {n}개를 AI 모델로 채점합니다. 각 사례는 끝나는 즉시 표시됩니다.",
|
| 206 |
"Group by":"그룹 기준",
|
| 207 |
"Guardrail:":"안전장치:",
|
| 208 |
"Guide":"가이드",
|
|
|
|
| 289 |
"No events to export.":"내보낼 이벤트가 없습니다.",
|
| 290 |
"No events yet.":"아직 이벤트가 없습니다.",
|
| 291 |
"No events yet. Go to {add} to send one, or to run the 15 given events.":"아직 이벤트가 없습니다. {add}에서 이벤트를 보내거나 주어진 15개 이벤트를 실행하세요.",
|
| 292 |
+
"No events yet. Go to {add} to send one, or to run the {n} demo events.":"아직 이벤트가 없습니다. {add}에서 이벤트를 보내거나 데모 이벤트 {n}개를 실행하세요.",
|
| 293 |
"No failed calls.":"실패한 호출이 없습니다.",
|
| 294 |
"No failures.":"실패 없음.",
|
| 295 |
"No graph traversal: nothing operational to trace.":"그래프 탐색 없음: 추적할 운영 대상이 없습니다.",
|
|
|
|
| 317 |
"Nothing was recorded.":"녹음된 내용이 없습니다.",
|
| 318 |
"Notifications":"알림",
|
| 319 |
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the 15 given events in as if they were arriving live.":"이벤트 추가에서 메시지를 입력·붙여넣기·파일 첨부·음성 입력하세요. 이벤트 실행은 주어진 15개 이벤트를 실시간으로 도착하는 것처럼 재생합니다.",
|
| 320 |
+
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the {n} demo events in as if they were arriving live.":"이벤트 추가에서 메시지를 입력·붙여넣기·파일 첨부·음성 입력하세요. 이벤트 실행은 데모 이벤트 {n}개를 실시간으로 도착하는 것처럼 재생합니다.",
|
| 321 |
"On a test set, {delete} removes that result for good (it asks first).":"테스트 세트에서 {delete}을(를) 누르면 해당 결과가 영구 삭제됩니다(먼저 확인합니다).",
|
| 322 |
"On track":"정상",
|
| 323 |
"One coordinator and three specialists. Specialists plan; the coordinator checks every planned call against the agent's tools, then runs it.":"코디네이터 1명과 전문 에이전트 3명. 전문 에이전트가 계획하고, 코디네이터가 계획된 호출을 해당 에이전트의 도구와 대조한 뒤 실행합니다.",
|
|
|
|
| 413 |
"Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.":"소문이나 확인할 수 없는 내용은 담당자에게 넘깁니다. 이에 대해서는 아무것도 바꾸지 않습니다.",
|
| 414 |
"Run events":"이벤트 실행",
|
| 415 |
"Run events walks the 15 given events and the chat's events":"이벤트 실행은 기본 이벤트 15개와 채팅 이벤트를 차례로 처리합니다",
|
| 416 |
+
"Run events walks the {n} demo events":"이벤트 실행은 데모 이벤트 {n}개를 차례로 처리합니다",
|
| 417 |
"Run history":"실행 기록",
|
| 418 |
"Run output, every tool call, and the test-run history":"실행 출력, 모든 도구 호출, 테스트 실행 기록",
|
| 419 |
"Run tests":"테스트 실행",
|
| 420 |
"Run tests and watch each of the 15 given events pass or fail as it finishes":"테스트를 실행하고 기본 이벤트 15개가 끝날 때마다 통과·실패를 확인합니다",
|
| 421 |
+
"Run tests and watch each of the {n} demo events pass or fail as it finishes":"테스트를 실행하고 데모 이벤트 {n}개가 끝날 때마다 통과·실패를 확인합니다",
|
| 422 |
"Run the demo":"데모 실행",
|
| 423 |
"Running":"실행 중",
|
| 424 |
"Running the demo":"데모 실행 중",
|
|
|
|
| 447 |
"Showing the first 1,000 of {n}.":"{n}개 중 처음 1,000개를 표시합니다.",
|
| 448 |
"Showing {n} of {m}":"{m}개 중 {n}개 표시",
|
| 449 |
"Small":"작게",
|
| 450 |
+
"Someone else is running the tests right now. Try again in a minute.":"지금 다른 사람이 테스트를 실행하고 있습니다. 1분 후에 다시 시도하세요.",
|
| 451 |
"Specialist agents plan tool calls; the coordinator checks each one against the handbook, then runs it.":"전문 에이전트가 도구 호출을 계획하고, 코디네이터가 하나씩 핸드북과 대조한 뒤 실행합니다.",
|
| 452 |
"Speech engine":"음성 엔진",
|
| 453 |
"Spreadsheet (.csv)":"스프레드시트(.csv)",
|
|
|
|
| 482 |
"Test sets":"테스트 세트",
|
| 483 |
"Test summary report":"테스트 요약 보고서",
|
| 484 |
"Tests":"테스트",
|
| 485 |
+
"Tests compares the tower's actions with answer keys, case by case, for the demo events.":"테스트는 데모 이벤트에 대해 타워의 조치를 정답 키와 사례별로 비교합니다.",
|
| 486 |
"Tests compares the tower's actions with answer keys, case by case, for the given events and the blind set.":"테스트는 주어진 이벤트와 블라인드 세트에 대해 타워의 조치를 정답과 사례별로 비교합니다.",
|
| 487 |
"Text size":"글자 크기",
|
| 488 |
"That test set has no results for this reader.":"이 테스트 세���에는 이 판독기의 결과가 없습니다.",
|
|
|
|
| 554 |
"Waiting":"대기 중",
|
| 555 |
"Waiting for events.":"이벤트를 기다리는 중",
|
| 556 |
"Walks the 15 given events, then any event from the chat, and shows each one as it finishes. The saved run of the 15 stays as it is.":"기본 이벤트 15개와 채팅에서 추가한 이벤트를 차례로 처리하고, 끝나는 대로 하나씩 보여 줍니다. 저장된 15개 실행 결과는 그대로 유지됩니다.",
|
| 557 |
+
"Walks the {n} demo events and shows each one as it finishes.":"데모 이벤트 {n}개를 차례로 처리하고 끝나는 대로 하나씩 보여줍니다.",
|
| 558 |
"Week":"주",
|
| 559 |
"Week of {date}":"{date} 주",
|
| 560 |
"What a person needs to answer":"담당자가 답해야 할 내용",
|
|
|
|
| 580 |
"Why they were escalated":"에스컬레이션한 이유",
|
| 581 |
"Will ask when you record":"녹음할 때 묻습니다",
|
| 582 |
"Working: {name}":"작동 중: {name}",
|
| 583 |
+
"Written by hand for each demo event":"데모 이벤트마다 직접 작성",
|
| 584 |
"Written by hand for the 15 given events; built from the company records for the blind set":"주어진 15개 이벤트는 직접 작성, 블라인드 세트는 회사 기록으로 생성",
|
| 585 |
"Zoom in":"확대",
|
| 586 |
"Zoom out":"축소",
|
|
|
|
| 618 |
"part id":"부품 ID",
|
| 619 |
"partly handled already":"이미 일부 처리됨",
|
| 620 |
"passed":"통과",
|
| 621 |
+
"per event, in your test run":"이벤트당, 내 테스트 실행 기준",
|
| 622 |
"per event, on a local 1.7B model":"각 이벤트당, 로컬 1.7B 모델 기준",
|
| 623 |
"plant id":"공장 ID",
|
| 624 |
"quality holds":"품질 보류",
|
tower/ui/web/src/locales/pt.json
CHANGED
|
@@ -202,6 +202,7 @@
|
|
| 202 |
"Give the tower a new message, or run the whole feed.":"Dê à torre uma nova mensagem ou execute o feed inteiro.",
|
| 203 |
"Given tests":"Testes fornecidos",
|
| 204 |
"Gold":"Gold",
|
|
|
|
| 205 |
"Group by":"Agrupar por",
|
| 206 |
"Guardrail:":"Proteção:",
|
| 207 |
"Guide":"Guia",
|
|
@@ -288,6 +289,7 @@
|
|
| 288 |
"No events to export.":"Nenhum evento para exportar.",
|
| 289 |
"No events yet.":"Ainda não há eventos.",
|
| 290 |
"No events yet. Go to {add} to send one, or to run the 15 given events.":"Ainda não há eventos. Vá para {add} para enviar um ou executar os 15 eventos fornecidos.",
|
|
|
|
| 291 |
"No failed calls.":"Nenhuma chamada com falha.",
|
| 292 |
"No failures.":"Nenhuma falha.",
|
| 293 |
"No graph traversal: nothing operational to trace.":"Sem percurso no grafo: nada operacional para rastrear.",
|
|
@@ -315,6 +317,7 @@
|
|
| 315 |
"Nothing was recorded.":"Nada foi gravado.",
|
| 316 |
"Notifications":"Notificações",
|
| 317 |
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the 15 given events in as if they were arriving live.":"Em Adicionar eventos, digite ou cole uma mensagem, anexe um arquivo ou dite. Executar eventos reproduz os 15 eventos fornecidos como se chegassem ao vivo.",
|
|
|
|
| 318 |
"On a test set, {delete} removes that result for good (it asks first).":"Num conjunto de testes, {delete} remove esse resultado de vez (pergunta antes).",
|
| 319 |
"On track":"No prazo",
|
| 320 |
"One coordinator and three specialists. Specialists plan; the coordinator checks every planned call against the agent's tools, then runs it.":"Um coordenador e três especialistas. Os especialistas planejam; o coordenador confere cada chamada planejada com as ferramentas do agente e depois a executa.",
|
|
@@ -410,10 +413,12 @@
|
|
| 410 |
"Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.":"Boatos e tudo o que não pode ser confirmado vão para uma pessoa. Nada é alterado por eles.",
|
| 411 |
"Run events":"Executar eventos",
|
| 412 |
"Run events walks the 15 given events and the chat's events":"Executar eventos percorre os 15 eventos fornecidos e os do chat",
|
|
|
|
| 413 |
"Run history":"Histórico de execuções",
|
| 414 |
"Run output, every tool call, and the test-run history":"Saída de execução, cada chamada de ferramenta e o histórico de testes",
|
| 415 |
"Run tests":"Executar testes",
|
| 416 |
"Run tests and watch each of the 15 given events pass or fail as it finishes":"Execute os testes e veja cada um dos 15 eventos passar ou falhar ao terminar",
|
|
|
|
| 417 |
"Run the demo":"Executar o demo",
|
| 418 |
"Running":"Em execução",
|
| 419 |
"Running the demo":"Executando o demo",
|
|
@@ -442,6 +447,7 @@
|
|
| 442 |
"Showing the first 1,000 of {n}.":"Mostrando os primeiros 1.000 de {n}.",
|
| 443 |
"Showing {n} of {m}":"Mostrando {n} de {m}",
|
| 444 |
"Small":"Pequeno",
|
|
|
|
| 445 |
"Specialist agents plan tool calls; the coordinator checks each one against the handbook, then runs it.":"Agentes especialistas planejam as chamadas de ferramentas; o coordenador confere cada uma com o manual e depois a executa.",
|
| 446 |
"Speech engine":"Mecanismo de voz",
|
| 447 |
"Spreadsheet (.csv)":"Planilha (.csv)",
|
|
@@ -476,6 +482,7 @@
|
|
| 476 |
"Test sets":"Conjuntos de testes",
|
| 477 |
"Test summary report":"Relatório resumido dos testes",
|
| 478 |
"Tests":"Testes",
|
|
|
|
| 479 |
"Tests compares the tower's actions with answer keys, case by case, for the given events and the blind set.":"Testes compara as ações da torre com os gabaritos, caso a caso, para os eventos fornecidos e o conjunto cego.",
|
| 480 |
"Text size":"Tamanho do texto",
|
| 481 |
"That test set has no results for this reader.":"Esse conjunto de testes não tem resultados para este leitor.",
|
|
@@ -547,6 +554,7 @@
|
|
| 547 |
"Waiting":"Aguardando",
|
| 548 |
"Waiting for events.":"Aguardando eventos.",
|
| 549 |
"Walks the 15 given events, then any event from the chat, and shows each one as it finishes. The saved run of the 15 stays as it is.":"Percorre os 15 eventos fornecidos e depois os eventos do chat, mostrando cada um ao terminar. A execução salva dos 15 permanece igual.",
|
|
|
|
| 550 |
"Week":"Semana",
|
| 551 |
"Week of {date}":"Semana de {date}",
|
| 552 |
"What a person needs to answer":"O que uma pessoa precisa responder",
|
|
@@ -572,6 +580,7 @@
|
|
| 572 |
"Why they were escalated":"Por que foram escalados",
|
| 573 |
"Will ask when you record":"Será perguntado ao gravar",
|
| 574 |
"Working: {name}":"Funcionando: {name}",
|
|
|
|
| 575 |
"Written by hand for the 15 given events; built from the company records for the blind set":"Escritos à mão para os 15 eventos fornecidos; gerados a partir dos registros da empresa para o conjunto cego",
|
| 576 |
"Zoom in":"Aumentar zoom",
|
| 577 |
"Zoom out":"Diminuir zoom",
|
|
@@ -609,6 +618,7 @@
|
|
| 609 |
"part id":"id da peça",
|
| 610 |
"partly handled already":"já parcialmente tratados",
|
| 611 |
"passed":"aprovados",
|
|
|
|
| 612 |
"per event, on a local 1.7B model":"por evento, em um modelo local de 1.7B",
|
| 613 |
"plant id":"id da fábrica",
|
| 614 |
"quality holds":"retenções de qualidade",
|
|
|
|
| 202 |
"Give the tower a new message, or run the whole feed.":"Dê à torre uma nova mensagem ou execute o feed inteiro.",
|
| 203 |
"Given tests":"Testes fornecidos",
|
| 204 |
"Gold":"Gold",
|
| 205 |
+
"Grades the {n} demo events with the AI model. Each case shows up as soon as it finishes.":"Avalia os {n} eventos de demonstração com o modelo de IA. Cada caso aparece assim que termina.",
|
| 206 |
"Group by":"Agrupar por",
|
| 207 |
"Guardrail:":"Proteção:",
|
| 208 |
"Guide":"Guia",
|
|
|
|
| 289 |
"No events to export.":"Nenhum evento para exportar.",
|
| 290 |
"No events yet.":"Ainda não há eventos.",
|
| 291 |
"No events yet. Go to {add} to send one, or to run the 15 given events.":"Ainda não há eventos. Vá para {add} para enviar um ou executar os 15 eventos fornecidos.",
|
| 292 |
+
"No events yet. Go to {add} to send one, or to run the {n} demo events.":"Ainda não há eventos. Vá para {add} para enviar um ou executar os {n} eventos de demonstração.",
|
| 293 |
"No failed calls.":"Nenhuma chamada com falha.",
|
| 294 |
"No failures.":"Nenhuma falha.",
|
| 295 |
"No graph traversal: nothing operational to trace.":"Sem percurso no grafo: nada operacional para rastrear.",
|
|
|
|
| 317 |
"Nothing was recorded.":"Nada foi gravado.",
|
| 318 |
"Notifications":"Notificações",
|
| 319 |
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the 15 given events in as if they were arriving live.":"Em Adicionar eventos, digite ou cole uma mensagem, anexe um arquivo ou dite. Executar eventos reproduz os 15 eventos fornecidos como se chegassem ao vivo.",
|
| 320 |
+
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the {n} demo events in as if they were arriving live.":"Em Adicionar eventos, digite ou cole uma mensagem, anexe um arquivo ou dite. Executar eventos reproduz os {n} eventos de demonstração como se chegassem ao vivo.",
|
| 321 |
"On a test set, {delete} removes that result for good (it asks first).":"Num conjunto de testes, {delete} remove esse resultado de vez (pergunta antes).",
|
| 322 |
"On track":"No prazo",
|
| 323 |
"One coordinator and three specialists. Specialists plan; the coordinator checks every planned call against the agent's tools, then runs it.":"Um coordenador e três especialistas. Os especialistas planejam; o coordenador confere cada chamada planejada com as ferramentas do agente e depois a executa.",
|
|
|
|
| 413 |
"Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.":"Boatos e tudo o que não pode ser confirmado vão para uma pessoa. Nada é alterado por eles.",
|
| 414 |
"Run events":"Executar eventos",
|
| 415 |
"Run events walks the 15 given events and the chat's events":"Executar eventos percorre os 15 eventos fornecidos e os do chat",
|
| 416 |
+
"Run events walks the {n} demo events":"Executar eventos percorre os {n} eventos de demonstração",
|
| 417 |
"Run history":"Histórico de execuções",
|
| 418 |
"Run output, every tool call, and the test-run history":"Saída de execução, cada chamada de ferramenta e o histórico de testes",
|
| 419 |
"Run tests":"Executar testes",
|
| 420 |
"Run tests and watch each of the 15 given events pass or fail as it finishes":"Execute os testes e veja cada um dos 15 eventos passar ou falhar ao terminar",
|
| 421 |
+
"Run tests and watch each of the {n} demo events pass or fail as it finishes":"Execute os testes e veja cada um dos {n} eventos de demonstração passar ou falhar ao terminar",
|
| 422 |
"Run the demo":"Executar o demo",
|
| 423 |
"Running":"Em execução",
|
| 424 |
"Running the demo":"Executando o demo",
|
|
|
|
| 447 |
"Showing the first 1,000 of {n}.":"Mostrando os primeiros 1.000 de {n}.",
|
| 448 |
"Showing {n} of {m}":"Mostrando {n} de {m}",
|
| 449 |
"Small":"Pequeno",
|
| 450 |
+
"Someone else is running the tests right now. Try again in a minute.":"Outra pessoa está executando os testes agora. Tente novamente em um minuto.",
|
| 451 |
"Specialist agents plan tool calls; the coordinator checks each one against the handbook, then runs it.":"Agentes especialistas planejam as chamadas de ferramentas; o coordenador confere cada uma com o manual e depois a executa.",
|
| 452 |
"Speech engine":"Mecanismo de voz",
|
| 453 |
"Spreadsheet (.csv)":"Planilha (.csv)",
|
|
|
|
| 482 |
"Test sets":"Conjuntos de testes",
|
| 483 |
"Test summary report":"Relatório resumido dos testes",
|
| 484 |
"Tests":"Testes",
|
| 485 |
+
"Tests compares the tower's actions with answer keys, case by case, for the demo events.":"Testes compara as ações da torre com os gabaritos, caso a caso, para os eventos de demonstração.",
|
| 486 |
"Tests compares the tower's actions with answer keys, case by case, for the given events and the blind set.":"Testes compara as ações da torre com os gabaritos, caso a caso, para os eventos fornecidos e o conjunto cego.",
|
| 487 |
"Text size":"Tamanho do texto",
|
| 488 |
"That test set has no results for this reader.":"Esse conjunto de testes não tem resultados para este leitor.",
|
|
|
|
| 554 |
"Waiting":"Aguardando",
|
| 555 |
"Waiting for events.":"Aguardando eventos.",
|
| 556 |
"Walks the 15 given events, then any event from the chat, and shows each one as it finishes. The saved run of the 15 stays as it is.":"Percorre os 15 eventos fornecidos e depois os eventos do chat, mostrando cada um ao terminar. A execução salva dos 15 permanece igual.",
|
| 557 |
+
"Walks the {n} demo events and shows each one as it finishes.":"Percorre os {n} eventos de demonstração e mostra cada um ao terminar.",
|
| 558 |
"Week":"Semana",
|
| 559 |
"Week of {date}":"Semana de {date}",
|
| 560 |
"What a person needs to answer":"O que uma pessoa precisa responder",
|
|
|
|
| 580 |
"Why they were escalated":"Por que foram escalados",
|
| 581 |
"Will ask when you record":"Será perguntado ao gravar",
|
| 582 |
"Working: {name}":"Funcionando: {name}",
|
| 583 |
+
"Written by hand for each demo event":"Escritos à mão para cada evento de demonstração",
|
| 584 |
"Written by hand for the 15 given events; built from the company records for the blind set":"Escritos à mão para os 15 eventos fornecidos; gerados a partir dos registros da empresa para o conjunto cego",
|
| 585 |
"Zoom in":"Aumentar zoom",
|
| 586 |
"Zoom out":"Diminuir zoom",
|
|
|
|
| 618 |
"part id":"id da peça",
|
| 619 |
"partly handled already":"já parcialmente tratados",
|
| 620 |
"passed":"aprovados",
|
| 621 |
+
"per event, in your test run":"por evento, na sua execução de testes",
|
| 622 |
"per event, on a local 1.7B model":"por evento, em um modelo local de 1.7B",
|
| 623 |
"plant id":"id da fábrica",
|
| 624 |
"quality holds":"retenções de qualidade",
|
tower/ui/web/src/locales/zh.json
CHANGED
|
@@ -202,6 +202,7 @@
|
|
| 202 |
"Give the tower a new message, or run the whole feed.":"给控制塔一条新消息,或运行整个事件流。",
|
| 203 |
"Given tests":"给定测试",
|
| 204 |
"Gold":"黄金",
|
|
|
|
| 205 |
"Group by":"分组方式",
|
| 206 |
"Guardrail:":"护栏:",
|
| 207 |
"Guide":"指南",
|
|
@@ -288,6 +289,7 @@
|
|
| 288 |
"No events to export.":"没有可导出的事件。",
|
| 289 |
"No events yet.":"还没有事件。",
|
| 290 |
"No events yet. Go to {add} to send one, or to run the 15 given events.":"还没有事件。前往{add}发送事件,或运行给定的 15 个事件。",
|
|
|
|
| 291 |
"No failed calls.":"没有失败的调用。",
|
| 292 |
"No failures.":"没有失败。",
|
| 293 |
"No graph traversal: nothing operational to trace.":"无图谱遍历:没有需要追踪的业务对象。",
|
|
@@ -315,6 +317,7 @@
|
|
| 315 |
"Nothing was recorded.":"没有录到任何内容。",
|
| 316 |
"Notifications":"通知",
|
| 317 |
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the 15 given events in as if they were arriving live.":"在“添加事件”中输入或粘贴消息、附加文件或语音输入。“运行事件”会像实时到达一样播放给定的 15 个事件。",
|
|
|
|
| 318 |
"On a test set, {delete} removes that result for good (it asks first).":"在测试集中,{delete} 会永久删除该结果(会先确认)。",
|
| 319 |
"On track":"按计划",
|
| 320 |
"One coordinator and three specialists. Specialists plan; the coordinator checks every planned call against the agent's tools, then runs it.":"一个协调器和三个专业智能体。专业智能体负责规划;协调器将每个计划调用与该智能体的工具核对后再执行。",
|
|
@@ -410,10 +413,12 @@
|
|
| 410 |
"Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.":"传闻和无法确认的内容交给人工处理,不做任何更改。",
|
| 411 |
"Run events":"运行事件",
|
| 412 |
"Run events walks the 15 given events and the chat's events":"“运行事件”会依次处理 15 个给定事件和聊天中的事件",
|
|
|
|
| 413 |
"Run history":"运行历史",
|
| 414 |
"Run output, every tool call, and the test-run history":"运行输出、每次工具调用和测试运行历史",
|
| 415 |
"Run tests":"运行测试",
|
| 416 |
"Run tests and watch each of the 15 given events pass or fail as it finishes":"运行测试,查看 15 个给定事件逐个通过或失败",
|
|
|
|
| 417 |
"Run the demo":"运行演示",
|
| 418 |
"Running":"运行中",
|
| 419 |
"Running the demo":"运行演示",
|
|
@@ -442,6 +447,7 @@
|
|
| 442 |
"Showing the first 1,000 of {n}.":"显示 {n} 条中的前 1,000 条。",
|
| 443 |
"Showing {n} of {m}":"显示 {n}/{m}",
|
| 444 |
"Small":"小",
|
|
|
|
| 445 |
"Specialist agents plan tool calls; the coordinator checks each one against the handbook, then runs it.":"专业智能体规划工具调用;协调器逐一按手册核对后再执行。",
|
| 446 |
"Speech engine":"语音引擎",
|
| 447 |
"Spreadsheet (.csv)":"电子表格(.csv)",
|
|
@@ -476,6 +482,7 @@
|
|
| 476 |
"Test sets":"测试集",
|
| 477 |
"Test summary report":"测试摘要报告",
|
| 478 |
"Tests":"测试",
|
|
|
|
| 479 |
"Tests compares the tower's actions with answer keys, case by case, for the given events and the blind set.":"测试会逐个案例将塔台的操作与答案比对,涵盖给定事件和盲测集。",
|
| 480 |
"Text size":"文字大小",
|
| 481 |
"That test set has no results for this reader.":"该测试集没有此读取器的结果。",
|
|
@@ -547,6 +554,7 @@
|
|
| 547 |
"Waiting":"等待",
|
| 548 |
"Waiting for events.":"等待事件",
|
| 549 |
"Walks the 15 given events, then any event from the chat, and shows each one as it finishes. The saved run of the 15 stays as it is.":"依次处理 15 个给定事件和聊天中添加的事件,每完成一个就显示一个。已保存的 15 个事件的运行结果保持不变。",
|
|
|
|
| 550 |
"Week":"周",
|
| 551 |
"Week of {date}":"{date} 当周",
|
| 552 |
"What a person needs to answer":"需要人工回答的问题",
|
|
@@ -572,6 +580,7 @@
|
|
| 572 |
"Why they were escalated":"上报原因",
|
| 573 |
"Will ask when you record":"录���时询问",
|
| 574 |
"Working: {name}":"可用:{name}",
|
|
|
|
| 575 |
"Written by hand for the 15 given events; built from the company records for the blind set":"给定的 15 个事件为人工编写;盲测集根据公司记录生成",
|
| 576 |
"Zoom in":"放大",
|
| 577 |
"Zoom out":"缩小",
|
|
@@ -609,6 +618,7 @@
|
|
| 609 |
"part id":"零件 ID",
|
| 610 |
"partly handled already":"已部分处理",
|
| 611 |
"passed":"通过",
|
|
|
|
| 612 |
"per event, on a local 1.7B model":"每个事件,在本地 1.7B 模型上",
|
| 613 |
"plant id":"工厂 ID",
|
| 614 |
"quality holds":"质量扣留",
|
|
|
|
| 202 |
"Give the tower a new message, or run the whole feed.":"给控制塔一条新消息,或运行整个事件流。",
|
| 203 |
"Given tests":"给定测试",
|
| 204 |
"Gold":"黄金",
|
| 205 |
+
"Grades the {n} demo events with the AI model. Each case shows up as soon as it finishes.":"使用 AI 模型评估 {n} 个演示事件。每个用例完成后立即显示。",
|
| 206 |
"Group by":"分组方式",
|
| 207 |
"Guardrail:":"护栏:",
|
| 208 |
"Guide":"指南",
|
|
|
|
| 289 |
"No events to export.":"没有可导出的事件。",
|
| 290 |
"No events yet.":"还没有事件。",
|
| 291 |
"No events yet. Go to {add} to send one, or to run the 15 given events.":"还没有事件。前往{add}发送事件,或运行给定的 15 个事件。",
|
| 292 |
+
"No events yet. Go to {add} to send one, or to run the {n} demo events.":"还没有事件。前往{add}发送事件,或运行 {n} 个演示事件。",
|
| 293 |
"No failed calls.":"没有失败的调用。",
|
| 294 |
"No failures.":"没有失败。",
|
| 295 |
"No graph traversal: nothing operational to trace.":"无图谱遍历:没有需要追踪的业务对象。",
|
|
|
|
| 317 |
"Nothing was recorded.":"没有录到任何内容。",
|
| 318 |
"Notifications":"通知",
|
| 319 |
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the 15 given events in as if they were arriving live.":"在“添加事件”中输入或粘贴消息、附加文件或语音输入。“运行事件”会像实时到达一样播放给定的 15 个事件。",
|
| 320 |
+
"On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the {n} demo events in as if they were arriving live.":"在“添加事件”中输入或粘贴消息、附加文件或语音输入。“运行事件”会像实时到达一样播放 {n} 个演示事件。",
|
| 321 |
"On a test set, {delete} removes that result for good (it asks first).":"在测试集中,{delete} 会永久删除该结果(会先确认)。",
|
| 322 |
"On track":"按计划",
|
| 323 |
"One coordinator and three specialists. Specialists plan; the coordinator checks every planned call against the agent's tools, then runs it.":"一个协调器和三个专业智能体。专业智能体负责规划;协调器将每个计划调用与该智能体的工具核对后再执行。",
|
|
|
|
| 413 |
"Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.":"传闻和无法确认的内容交给人工处理,不做任何更改。",
|
| 414 |
"Run events":"运行事件",
|
| 415 |
"Run events walks the 15 given events and the chat's events":"“运行事件”会依次处理 15 个给定事件和聊天中的事件",
|
| 416 |
+
"Run events walks the {n} demo events":"“运行事件”会依次处理 {n} 个演示事件",
|
| 417 |
"Run history":"运行历史",
|
| 418 |
"Run output, every tool call, and the test-run history":"运行输出、每次工具调用和测试运行历史",
|
| 419 |
"Run tests":"运行测试",
|
| 420 |
"Run tests and watch each of the 15 given events pass or fail as it finishes":"运行测试,查看 15 个给定事件逐个通过或失败",
|
| 421 |
+
"Run tests and watch each of the {n} demo events pass or fail as it finishes":"运行测试,查看 {n} 个演示事件逐个通过或失败",
|
| 422 |
"Run the demo":"运行演示",
|
| 423 |
"Running":"运行中",
|
| 424 |
"Running the demo":"运行演示",
|
|
|
|
| 447 |
"Showing the first 1,000 of {n}.":"显示 {n} 条中的前 1,000 条。",
|
| 448 |
"Showing {n} of {m}":"显示 {n}/{m}",
|
| 449 |
"Small":"小",
|
| 450 |
+
"Someone else is running the tests right now. Try again in a minute.":"其他人正在运行测试。请一分钟后再试。",
|
| 451 |
"Specialist agents plan tool calls; the coordinator checks each one against the handbook, then runs it.":"专业智能体规划工具调用;协调器逐一按手册核对后再执行。",
|
| 452 |
"Speech engine":"语音引擎",
|
| 453 |
"Spreadsheet (.csv)":"电子表格(.csv)",
|
|
|
|
| 482 |
"Test sets":"测试集",
|
| 483 |
"Test summary report":"测试摘要报告",
|
| 484 |
"Tests":"测试",
|
| 485 |
+
"Tests compares the tower's actions with answer keys, case by case, for the demo events.":"测试会针对演示事件,逐个将控制塔的操作与标准答案进行比较。",
|
| 486 |
"Tests compares the tower's actions with answer keys, case by case, for the given events and the blind set.":"测试会逐个案例将塔台的操作与答案比对,涵盖给定事件和盲测集。",
|
| 487 |
"Text size":"文字大小",
|
| 488 |
"That test set has no results for this reader.":"该测试集没有此读取器的结果。",
|
|
|
|
| 554 |
"Waiting":"等待",
|
| 555 |
"Waiting for events.":"等待事件",
|
| 556 |
"Walks the 15 given events, then any event from the chat, and shows each one as it finishes. The saved run of the 15 stays as it is.":"依次处理 15 个给定事件和聊天中添加的事件,每完成一个就显示一个。已保存的 15 个事件的运行结果保持不变。",
|
| 557 |
+
"Walks the {n} demo events and shows each one as it finishes.":"依次处理 {n} 个演示事件,每完成一个就显示出来。",
|
| 558 |
"Week":"周",
|
| 559 |
"Week of {date}":"{date} 当周",
|
| 560 |
"What a person needs to answer":"需要人工回答的问题",
|
|
|
|
| 580 |
"Why they were escalated":"上报原因",
|
| 581 |
"Will ask when you record":"录���时询问",
|
| 582 |
"Working: {name}":"可用:{name}",
|
| 583 |
+
"Written by hand for each demo event":"每个演示事件均为人工编写",
|
| 584 |
"Written by hand for the 15 given events; built from the company records for the blind set":"给定的 15 个事件为人工编写;盲测集根据公司记录生成",
|
| 585 |
"Zoom in":"放大",
|
| 586 |
"Zoom out":"缩小",
|
|
|
|
| 618 |
"part id":"零件 ID",
|
| 619 |
"partly handled already":"已部分处理",
|
| 620 |
"passed":"通过",
|
| 621 |
+
"per event, in your test run":"每个事件,在你的测试运行中",
|
| 622 |
"per event, on a local 1.7B model":"每个事件,在本地 1.7B 模型上",
|
| 623 |
"plant id":"工厂 ID",
|
| 624 |
"quality holds":"质量扣留",
|
tower/ui/web/src/pages/Events.jsx
CHANGED
|
@@ -221,7 +221,9 @@ export default function Events() {
|
|
| 221 |
<Page title={tr("Event center")} subtitle={subtitle}>
|
| 222 |
<RunTimeline job={run.job} />
|
| 223 |
{tabs}
|
| 224 |
-
{!d.traces.length ? <div className="card empty">{d.loadedAt ?
|
|
|
|
|
|
|
| 225 |
<div className="ev-layout">
|
| 226 |
<div className="ev-side">
|
| 227 |
<div className="ev-filters panel">
|
|
|
|
| 221 |
<Page title={tr("Event center")} subtitle={subtitle}>
|
| 222 |
<RunTimeline job={run.job} />
|
| 223 |
{tabs}
|
| 224 |
+
{!d.traces.length ? <div className="card empty">{d.loadedAt ? (d.demoSize
|
| 225 |
+
? trx("No events yet. Go to {add} to send one, or to run the {n} demo events.", { add: <a className="link" href="#/add">{tr("Add events")}</a>, n: d.demoSize })
|
| 226 |
+
: trx("No events yet. Go to {add} to send one, or to run the 15 given events.", { add: <a className="link" href="#/add">{tr("Add events")}</a> })) : "Loading…"}</div> : view === "results" ? <EventResults list={list} /> : view === "escalated" ? <EventEscalations list={list} /> : (
|
| 227 |
<div className="ev-layout">
|
| 228 |
<div className="ev-side">
|
| 229 |
<div className="ev-filters panel">
|
tower/ui/web/src/pages/Guide.jsx
CHANGED
|
@@ -14,16 +14,17 @@ const FLOW = () => [
|
|
| 14 |
{ icon: "alert", t: tr("Escalate"), p: tr("Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.") },
|
| 15 |
];
|
| 16 |
|
| 17 |
-
// Built when the page renders, so it is in the language chosen in Settings.
|
| 18 |
-
|
|
|
|
| 19 |
{ id: "overview", icon: "home", t: tr("Overview"), p: tr("The state of the run at a glance."),
|
| 20 |
points: [tr("Headline counts: events, tool calls, escalations, test pass rate"), tr("Agent team and what each agent may do"), tr("Tool calls per event; click a bar to open that event")] },
|
| 21 |
{ id: "events", icon: "feed", t: tr("Event center"), p: tr("Every message and exactly what the tower did about it."),
|
| 22 |
points: [tr("Every event, filterable by outcome and incident type"), tr("How it was read and the graph path it traced"), tr("Every tool call and the audit trail")] },
|
| 23 |
{ id: "add", icon: "plus", t: tr("Add events"), p: tr("Give the tower a new message, or run the whole feed."),
|
| 24 |
-
points: [tr("Type, paste, attach a file, or dictate by voice (Safari or Chrome)"), tr("The tower reads it, acts or escalates, and adds it to the feed"), tr("Run events walks the 15 given events and the chat's events")] },
|
| 25 |
{ id: "tests", icon: "check", t: tr("Tests"), p: tr("How well the tower predicts, scored against answer keys."),
|
| 26 |
-
points: [tr("Run tests and watch each of the 15 given events pass or fail as it finishes"), tr("Pass rate by kind of message"), tr("Open one event: input, expected output, actual output")] },
|
| 27 |
{ id: "ontology", icon: "graph", t: tr("Knowledge graph"), p: tr("The company's records and how they connect."),
|
| 28 |
points: [tr("Network, schema, or one event's traced records"), tr("Drag, click to focus, scroll to zoom"), tr("Edge types and the traversals agents use")] },
|
| 29 |
{ id: "logs", icon: "doc", t: tr("Logs"), p: tr("The raw record behind every page."),
|
|
@@ -42,20 +43,22 @@ const TERMS = () => [
|
|
| 42 |
];
|
| 43 |
|
| 44 |
// Built when the page renders, so it is in the language chosen in Settings.
|
| 45 |
-
const USE = () => [
|
| 46 |
-
{ icon: "plus", t: tr("Give it events"), p: tr("On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the
|
|
|
|
| 47 |
{ icon: "feed", t: tr("See what it did"), p: tr("The Event Center opens on Results: what the tower did with each event. Switch to Feed for how each message was read and every action taken.") },
|
| 48 |
{ icon: "doc", t: tr("Export the history"), p: tr("From the Event Center, download the events shown as a readable log, a spreadsheet, or a full data file.") },
|
| 49 |
-
{ icon: "check", t: tr("Check the scores"), p: tr("Tests compares the tower's actions with answer keys, case by case, for the
|
|
|
|
| 50 |
{ icon: "graph", t: tr("Explore the records"), p: tr("The Knowledge Graph shows the company's records and the paths the agents follow from a problem to the people it affects.") },
|
| 51 |
{ icon: "wrench", t: tr("Make it yours"), p: tr("Settings sets the theme, language, number format, time zone and voice input.") },
|
| 52 |
];
|
| 53 |
|
| 54 |
// Built when the page renders, so it is in the language chosen in Settings.
|
| 55 |
-
const SOURCES = () => [
|
| 56 |
[tr("Overview, Event center"), tr("The events in the feed and every action the tower took")],
|
| 57 |
[tr("Tests"), tr("Saved test runs, scored against answer keys")],
|
| 58 |
-
[tr("Answer keys"), tr("Written by hand for the 15 given events; built from the company records for the blind set")],
|
| 59 |
[tr("Knowledge graph"), tr("The company records: plants, parts, suppliers, orders, dealers, vehicles and owners")],
|
| 60 |
[tr("Logs"), tr("Every tool call, notification and agent handoff, and the test history")],
|
| 61 |
[tr("Notifications"), tr("The messages sent to dealers and owners for each event")],
|
|
@@ -82,7 +85,7 @@ export default function Guide() {
|
|
| 82 |
<div className="card" style={{ marginTop: 20 }}>
|
| 83 |
<CardHead title={titleCase(tr("The pages"))} sub={tr("Click a card to open the page.")} />
|
| 84 |
<div className="tour">
|
| 85 |
-
{TOUR().map((p) => (
|
| 86 |
<a key={p.id} href={`#/${p.id}`} className="panel tour-card">
|
| 87 |
<div className="flow-head"><span className="badge-ico"><Icon name={p.icon} /></span><b>{titleCase(p.t)}</b></div>
|
| 88 |
<p>{p.p}</p>
|
|
@@ -106,7 +109,7 @@ export default function Guide() {
|
|
| 106 |
<div className="card">
|
| 107 |
<CardHead title={titleCase(tr("Using the dashboard"))} sub={tr("Everything happens in the app; there is nothing to install or type.")} />
|
| 108 |
<ol className="guse">
|
| 109 |
-
{USE().map((x) => (
|
| 110 |
<li key={x.t}><span className="badge-ico"><Icon name={x.icon} /></span><div><b>{titleCase(x.t)}</b><p>{x.p}</p></div></li>
|
| 111 |
))}
|
| 112 |
</ol>
|
|
@@ -118,7 +121,7 @@ export default function Guide() {
|
|
| 118 |
</dl>
|
| 119 |
<div className="section-title">{tr("Where each page's data lives")}</div>
|
| 120 |
<dl className="gloss compact">
|
| 121 |
-
{SOURCES().map(([p, s]) => <div key={p}><dt><b>{titleCase(p)}</b></dt><dd>{s}</dd></div>)}
|
| 122 |
</dl>
|
| 123 |
</div>
|
| 124 |
</div>
|
|
|
|
| 14 |
{ icon: "alert", t: tr("Escalate"), p: tr("Rumors and anything that can't be confirmed go to a human. Nothing is changed for them.") },
|
| 15 |
];
|
| 16 |
|
| 17 |
+
// Built when the page renders, so it is in the language chosen in Settings. demo: online, the number of
|
| 18 |
+
// demo events (the short set the online version uses); 0 on a laptop.
|
| 19 |
+
const TOUR = (demo) => [
|
| 20 |
{ id: "overview", icon: "home", t: tr("Overview"), p: tr("The state of the run at a glance."),
|
| 21 |
points: [tr("Headline counts: events, tool calls, escalations, test pass rate"), tr("Agent team and what each agent may do"), tr("Tool calls per event; click a bar to open that event")] },
|
| 22 |
{ id: "events", icon: "feed", t: tr("Event center"), p: tr("Every message and exactly what the tower did about it."),
|
| 23 |
points: [tr("Every event, filterable by outcome and incident type"), tr("How it was read and the graph path it traced"), tr("Every tool call and the audit trail")] },
|
| 24 |
{ id: "add", icon: "plus", t: tr("Add events"), p: tr("Give the tower a new message, or run the whole feed."),
|
| 25 |
+
points: [tr("Type, paste, attach a file, or dictate by voice (Safari or Chrome)"), tr("The tower reads it, acts or escalates, and adds it to the feed"), demo ? tr("Run events walks the {n} demo events", { n: demo }) : tr("Run events walks the 15 given events and the chat's events")] },
|
| 26 |
{ id: "tests", icon: "check", t: tr("Tests"), p: tr("How well the tower predicts, scored against answer keys."),
|
| 27 |
+
points: [demo ? tr("Run tests and watch each of the {n} demo events pass or fail as it finishes", { n: demo }) : tr("Run tests and watch each of the 15 given events pass or fail as it finishes"), tr("Pass rate by kind of message"), tr("Open one event: input, expected output, actual output")] },
|
| 28 |
{ id: "ontology", icon: "graph", t: tr("Knowledge graph"), p: tr("The company's records and how they connect."),
|
| 29 |
points: [tr("Network, schema, or one event's traced records"), tr("Drag, click to focus, scroll to zoom"), tr("Edge types and the traversals agents use")] },
|
| 30 |
{ id: "logs", icon: "doc", t: tr("Logs"), p: tr("The raw record behind every page."),
|
|
|
|
| 43 |
];
|
| 44 |
|
| 45 |
// Built when the page renders, so it is in the language chosen in Settings.
|
| 46 |
+
const USE = (demo) => [
|
| 47 |
+
{ icon: "plus", t: tr("Give it events"), p: demo ? tr("On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the {n} demo events in as if they were arriving live.", { n: demo })
|
| 48 |
+
: tr("On Add Events, type or paste a message, attach a file, or dictate it. Run Events plays the 15 given events in as if they were arriving live.") },
|
| 49 |
{ icon: "feed", t: tr("See what it did"), p: tr("The Event Center opens on Results: what the tower did with each event. Switch to Feed for how each message was read and every action taken.") },
|
| 50 |
{ icon: "doc", t: tr("Export the history"), p: tr("From the Event Center, download the events shown as a readable log, a spreadsheet, or a full data file.") },
|
| 51 |
+
{ icon: "check", t: tr("Check the scores"), p: demo ? tr("Tests compares the tower's actions with answer keys, case by case, for the demo events.")
|
| 52 |
+
: tr("Tests compares the tower's actions with answer keys, case by case, for the given events and the blind set.") },
|
| 53 |
{ icon: "graph", t: tr("Explore the records"), p: tr("The Knowledge Graph shows the company's records and the paths the agents follow from a problem to the people it affects.") },
|
| 54 |
{ icon: "wrench", t: tr("Make it yours"), p: tr("Settings sets the theme, language, number format, time zone and voice input.") },
|
| 55 |
];
|
| 56 |
|
| 57 |
// Built when the page renders, so it is in the language chosen in Settings.
|
| 58 |
+
const SOURCES = (demo) => [
|
| 59 |
[tr("Overview, Event center"), tr("The events in the feed and every action the tower took")],
|
| 60 |
[tr("Tests"), tr("Saved test runs, scored against answer keys")],
|
| 61 |
+
[tr("Answer keys"), demo ? tr("Written by hand for each demo event") : tr("Written by hand for the 15 given events; built from the company records for the blind set")],
|
| 62 |
[tr("Knowledge graph"), tr("The company records: plants, parts, suppliers, orders, dealers, vehicles and owners")],
|
| 63 |
[tr("Logs"), tr("Every tool call, notification and agent handoff, and the test history")],
|
| 64 |
[tr("Notifications"), tr("The messages sent to dealers and owners for each event")],
|
|
|
|
| 85 |
<div className="card" style={{ marginTop: 20 }}>
|
| 86 |
<CardHead title={titleCase(tr("The pages"))} sub={tr("Click a card to open the page.")} />
|
| 87 |
<div className="tour">
|
| 88 |
+
{TOUR(d.demoSize).map((p) => (
|
| 89 |
<a key={p.id} href={`#/${p.id}`} className="panel tour-card">
|
| 90 |
<div className="flow-head"><span className="badge-ico"><Icon name={p.icon} /></span><b>{titleCase(p.t)}</b></div>
|
| 91 |
<p>{p.p}</p>
|
|
|
|
| 109 |
<div className="card">
|
| 110 |
<CardHead title={titleCase(tr("Using the dashboard"))} sub={tr("Everything happens in the app; there is nothing to install or type.")} />
|
| 111 |
<ol className="guse">
|
| 112 |
+
{USE(d.demoSize).map((x) => (
|
| 113 |
<li key={x.t}><span className="badge-ico"><Icon name={x.icon} /></span><div><b>{titleCase(x.t)}</b><p>{x.p}</p></div></li>
|
| 114 |
))}
|
| 115 |
</ol>
|
|
|
|
| 121 |
</dl>
|
| 122 |
<div className="section-title">{tr("Where each page's data lives")}</div>
|
| 123 |
<dl className="gloss compact">
|
| 124 |
+
{SOURCES(d.demoSize).map(([p, s]) => <div key={p}><dt><b>{titleCase(p)}</b></dt><dd>{s}</dd></div>)}
|
| 125 |
</dl>
|
| 126 |
</div>
|
| 127 |
</div>
|
tower/ui/web/src/pages/Overview.jsx
CHANGED
|
@@ -116,7 +116,8 @@ function PromiseCard({ p }) {
|
|
| 116 |
}
|
| 117 |
|
| 118 |
// The first thing a visitor sees: what this is, how well it works (from the saved test runs), and a
|
| 119 |
-
// button that plays the
|
|
|
|
| 120 |
function Hero({ run }) {
|
| 121 |
const d = useData();
|
| 122 |
const { toast } = useUi();
|
|
@@ -150,18 +151,23 @@ function Hero({ run }) {
|
|
| 150 |
{job?.running && <div className="run-meter hero2-meter" aria-hidden="true"><span style={{ width: `${job.total ? (job.done / job.total) * 100 : 0}%` }} /></div>}
|
| 151 |
</div>
|
| 152 |
<div className="hero2-metrics">
|
| 153 |
-
<div className="metric">
|
| 154 |
<div className="metric-v">{pct(blind) != null ? <><CountUp value={pct(blind)} />%</> : "—"}</div>
|
| 155 |
<div className="metric-k">{tr("accuracy on {n} unseen messages", { n: fmt(blind?.total || 100) })}</div>
|
| 156 |
{pct(rules) != null && <div className="metric-s">{tr("vs {n}% rule-based", { n: pct(rules) })}</div>}
|
| 157 |
-
</div>
|
| 158 |
<div className="metric">
|
| 159 |
<div className="metric-v">{tested ? <><CountUp value={tested.passed} />/{tested.total}</> : "—"}</div>
|
| 160 |
<div className="metric-k">{d.demoSize ? tr("demo events passed their tests") : tr("required test events passed")}</div>
|
| 161 |
</div>
|
| 162 |
<div className="metric">
|
| 163 |
-
|
| 164 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
</div>
|
| 166 |
</div>
|
| 167 |
</section>
|
|
|
|
| 116 |
}
|
| 117 |
|
| 118 |
// The first thing a visitor sees: what this is, how well it works (from the saved test runs), and a
|
| 119 |
+
// button that plays the given events through the real tower, live. Online the numbers come only from
|
| 120 |
+
// the visitor's own test run of the demo events ("—" until they run one).
|
| 121 |
function Hero({ run }) {
|
| 122 |
const d = useData();
|
| 123 |
const { toast } = useUi();
|
|
|
|
| 151 |
{job?.running && <div className="run-meter hero2-meter" aria-hidden="true"><span style={{ width: `${job.total ? (job.done / job.total) * 100 : 0}%` }} /></div>}
|
| 152 |
</div>
|
| 153 |
<div className="hero2-metrics">
|
| 154 |
+
{!d.online && <div className="metric">
|
| 155 |
<div className="metric-v">{pct(blind) != null ? <><CountUp value={pct(blind)} />%</> : "—"}</div>
|
| 156 |
<div className="metric-k">{tr("accuracy on {n} unseen messages", { n: fmt(blind?.total || 100) })}</div>
|
| 157 |
{pct(rules) != null && <div className="metric-s">{tr("vs {n}% rule-based", { n: pct(rules) })}</div>}
|
| 158 |
+
</div>}
|
| 159 |
<div className="metric">
|
| 160 |
<div className="metric-v">{tested ? <><CountUp value={tested.passed} />/{tested.total}</> : "—"}</div>
|
| 161 |
<div className="metric-k">{d.demoSize ? tr("demo events passed their tests") : tr("required test events passed")}</div>
|
| 162 |
</div>
|
| 163 |
<div className="metric">
|
| 164 |
+
{d.online ? <>
|
| 165 |
+
<div className="metric-v">{given?.avg_seconds ? `${given.avg_seconds} s` : "—"}</div>
|
| 166 |
+
<div className="metric-k">{tr("per event, in your test run")}</div>
|
| 167 |
+
</> : <>
|
| 168 |
+
<div className="metric-v">{blind?.avg_seconds ? `${blind.avg_seconds} s` : "—"}</div>
|
| 169 |
+
<div className="metric-k">{tr("per event, on a local 1.7B model")}</div>
|
| 170 |
+
</>}
|
| 171 |
</div>
|
| 172 |
</div>
|
| 173 |
</section>
|