Point leoclean claim links at Leo host
Some checks are pending
CI / lint-and-test (push) Waiting to run
Some checks are pending
CI / lint-and-test (push) Waiting to run
This commit is contained in:
parent
1e0d747ae4
commit
a1814671e1
6 changed files with 7 additions and 8 deletions
|
|
@ -24,7 +24,7 @@ STOPWORDS = {
|
||||||
"using", "what", "when", "where", "which", "who", "why", "with", "you", "your",
|
"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:
|
def parse_args() -> argparse.Namespace:
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ import subprocess
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
DEFAULT_CLAIM_BASE_URL = "https://dash.livingip.xyz"
|
DEFAULT_CLAIM_BASE_URL = "https://leo.livingip.xyz"
|
||||||
|
|
||||||
STOPWORDS = {
|
STOPWORDS = {
|
||||||
"a",
|
"a",
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ Make KB answers easy to scan in Telegram:
|
||||||
command names in backticks;
|
command names in backticks;
|
||||||
- when citing a specific claim, include both the claim headline and the claim
|
- when citing a specific claim, include both the claim headline and the claim
|
||||||
ID, for example: `claim text` (`<claim_id>`);
|
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,
|
copy that URL into the answer so Telegram users can open the claim, body,
|
||||||
evidence, and edges directly;
|
evidence, and edges directly;
|
||||||
- when a dashboard URL is available, include the canonical claim page as
|
- when a dashboard URL is available, include the canonical claim page as
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ Make KB answers easy to scan in Telegram:
|
||||||
command names in backticks;
|
command names in backticks;
|
||||||
- when citing a specific claim, include both the claim headline and the claim
|
- when citing a specific claim, include both the claim headline and the claim
|
||||||
ID, for example: `claim text` (`<claim_id>`);
|
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,
|
copy that URL into the answer so Telegram users can open the claim, body,
|
||||||
evidence, and edges directly;
|
evidence, and edges directly;
|
||||||
- when a dashboard URL is available, include the canonical claim page as
|
- when a dashboard URL is available, include the canonical claim page as
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ def _load_module(path: Path):
|
||||||
|
|
||||||
def test_kb_bridges_emit_public_claim_links_for_telegram_rendering() -> None:
|
def test_kb_bridges_emit_public_claim_links_for_telegram_rendering() -> None:
|
||||||
claim_id = "d3fb892b-3c5a-4700-9512-55e5c680eec1"
|
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"):
|
for filename in ("kb_tool.py", "cloudsql_memory_tool.py"):
|
||||||
module = _load_module(BRIDGE_DIR / filename)
|
module = _load_module(BRIDGE_DIR / filename)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
ROOT = Path(__file__).resolve().parents[1]
|
ROOT = Path(__file__).resolve().parents[1]
|
||||||
SKILL_ROOT = ROOT / "hermes-agent" / "leoclean-skills"
|
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 "draft or refresh the admin review packet" in squashed
|
||||||
assert "/kb/claims/<claim_id>" in text
|
assert "/kb/claims/<claim_id>" in text
|
||||||
assert "wrap claim IDs, proposal IDs" 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:
|
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 "/kb/claims/<claim_id>" in text
|
||||||
assert "wrap claim IDs, proposal IDs" 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:
|
def test_leoclean_kb_skills_anchor_external_doctrine_in_target_project_language() -> None:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue