Migrate remaining in-repo workstream REST callers to /workplans
Point cleanup_stale_tasks, validate_repo_adr, custodian_cli, dashboard data loaders, extensions poll, MCP legacy resource, and consistency_check task queries at preferred /workplans routes. Add caller inventory evidence doc.
This commit is contained in:
parent
050cbbceb9
commit
b05ca2ca8c
10 changed files with 66 additions and 16 deletions
|
|
@ -8,7 +8,7 @@ import urllib.error
|
|||
API_BASE = os.environ.get("API_BASE", "http://127.0.0.1:8000").rstrip("/")
|
||||
|
||||
try:
|
||||
with urllib.request.urlopen(f"{API_BASE}/workstreams", timeout=10) as resp:
|
||||
with urllib.request.urlopen(f"{API_BASE}/workplans", timeout=10) as resp:
|
||||
data = json.loads(resp.read())
|
||||
print(json.dumps(data))
|
||||
except urllib.error.URLError as e:
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ if not ws_id:
|
|||
sys.exit(1)
|
||||
|
||||
try:
|
||||
with urllib.request.urlopen(f"{API_BASE}/workstreams/{ws_id}", timeout=10) as resp:
|
||||
with urllib.request.urlopen(f"{API_BASE}/workplans/{ws_id}", timeout=10) as resp:
|
||||
data = json.loads(resp.read())
|
||||
print(json.dumps(data))
|
||||
except urllib.error.HTTPError as e:
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ const epState = (async function*() {
|
|||
try {
|
||||
const [re, rw, rt, rr] = await Promise.all([
|
||||
apiFetch("/extension-points/"),
|
||||
apiFetch("/workstreams/"),
|
||||
apiFetch("/workplans/"),
|
||||
apiFetch("/topics/"),
|
||||
apiFetch("/repos/"),
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue