Point leoclean claim links at Leo host
Some checks are pending
CI / lint-and-test (push) Waiting to run

This commit is contained in:
twentyOne2x 2026-07-09 09:41:00 +02:00 committed by GitHub
parent 1e0d747ae4
commit a1814671e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 7 additions and 8 deletions

View file

@ -24,7 +24,7 @@ STOPWORDS = {
"using", "what", "when", "where", "which", "who", "why", "with", "you", "your",
}
DEFAULT_CLAIM_BASE_URL = "https://dash.livingip.xyz"
DEFAULT_CLAIM_BASE_URL = "https://leo.livingip.xyz"
def parse_args() -> argparse.Namespace:

View file

@ -20,7 +20,7 @@ import subprocess
from collections import defaultdict
from typing import Any
DEFAULT_CLAIM_BASE_URL = "https://dash.livingip.xyz"
DEFAULT_CLAIM_BASE_URL = "https://leo.livingip.xyz"
STOPWORDS = {
"a",

View file

@ -58,7 +58,7 @@ Make KB answers easy to scan in Telegram:
command names in backticks;
- when citing a specific claim, include both the claim headline and the claim
ID, for example: `claim text` (`<claim_id>`);
- when the bridge output includes `claim page: https://dash.livingip.xyz/kb/claims/<claim_id>`,
- when the bridge output includes `claim page: https://leo.livingip.xyz/kb/claims/<claim_id>`,
copy that URL into the answer so Telegram users can open the claim, body,
evidence, and edges directly;
- when a dashboard URL is available, include the canonical claim page as

View file

@ -50,7 +50,7 @@ Make KB answers easy to scan in Telegram:
command names in backticks;
- when citing a specific claim, include both the claim headline and the claim
ID, for example: `claim text` (`<claim_id>`);
- when the bridge output includes `claim page: https://dash.livingip.xyz/kb/claims/<claim_id>`,
- when the bridge output includes `claim page: https://leo.livingip.xyz/kb/claims/<claim_id>`,
copy that URL into the answer so Telegram users can open the claim, body,
evidence, and edges directly;
- when a dashboard URL is available, include the canonical claim page as

View file

@ -73,7 +73,7 @@ def _load_module(path: Path):
def test_kb_bridges_emit_public_claim_links_for_telegram_rendering() -> None:
claim_id = "d3fb892b-3c5a-4700-9512-55e5c680eec1"
expected = f"https://dash.livingip.xyz/kb/claims/{claim_id}"
expected = f"https://leo.livingip.xyz/kb/claims/{claim_id}"
for filename in ("kb_tool.py", "cloudsql_memory_tool.py"):
module = _load_module(BRIDGE_DIR / filename)

View file

@ -1,6 +1,5 @@
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
SKILL_ROOT = ROOT / "hermes-agent" / "leoclean-skills"
@ -34,7 +33,7 @@ def test_vps_kb_skill_keeps_vps_scope_explicit() -> None:
assert "draft or refresh the admin review packet" in squashed
assert "/kb/claims/<claim_id>" in text
assert "wrap claim IDs, proposal IDs" in text
assert "claim page: https://dash.livingip.xyz/kb/claims/<claim_id>" in text
assert "claim page: https://leo.livingip.xyz/kb/claims/<claim_id>" in text
def test_gcp_kb_skill_keeps_claim_links_and_backtick_rendering() -> None:
@ -42,7 +41,7 @@ def test_gcp_kb_skill_keeps_claim_links_and_backtick_rendering() -> None:
assert "/kb/claims/<claim_id>" in text
assert "wrap claim IDs, proposal IDs" in text
assert "claim page: https://dash.livingip.xyz/kb/claims/<claim_id>" in text
assert "claim page: https://leo.livingip.xyz/kb/claims/<claim_id>" in text
def test_leoclean_kb_skills_anchor_external_doctrine_in_target_project_language() -> None: