chore: sync repository to current working state
Some checks failed
Build and Test / Build Server (Linux) (push) Has been cancelled
Build and Test / Build Agent (Windows) (push) Has been cancelled
Build and Test / Security Audit (push) Has been cancelled
Build and Test / Build Summary (push) Has been cancelled
Run Tests / Test Server (push) Has been cancelled
Run Tests / Test Agent (push) Has been cancelled
Run Tests / Code Coverage (push) Has been cancelled
Run Tests / Lint and Format Check (push) Has been cancelled
Some checks failed
Build and Test / Build Server (Linux) (push) Has been cancelled
Build and Test / Build Agent (Windows) (push) Has been cancelled
Build and Test / Security Audit (push) Has been cancelled
Build and Test / Build Summary (push) Has been cancelled
Run Tests / Test Server (push) Has been cancelled
Run Tests / Test Agent (push) Has been cancelled
Run Tests / Code Coverage (push) Has been cancelled
Run Tests / Lint and Format Check (push) Has been cancelled
Brings azcomputerguru/guru-connect up to the authoritative working copy that had been maintained in the claudetools monorepo: Phase 1 security and infrastructure (middleware, metrics, utils, token blacklist, deployment scripts, security audits) plus the native-remote-control integration spec. Preserves the repo .gitignore, .cargo, and server/static/downloads. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -817,10 +817,7 @@
|
||||
|
||||
async function loadMachines() {
|
||||
try {
|
||||
const token = localStorage.getItem("guruconnect_token");
|
||||
const response = await fetch("/api/sessions", {
|
||||
headers: { "Authorization": "Bearer " + token }
|
||||
});
|
||||
const response = await fetch("/api/sessions");
|
||||
machines = await response.json();
|
||||
|
||||
// Update counts based on is_online status
|
||||
@@ -997,7 +994,7 @@
|
||||
|
||||
const protocol = window.location.protocol === "https:" ? "wss:" : "ws:";
|
||||
const serverUrl = encodeURIComponent(protocol + "//" + window.location.host + "/ws/viewer");
|
||||
const token = localStorage.getItem("guruconnect_token");
|
||||
const token = localStorage.getItem("authToken");
|
||||
const protocolUrl = `guruconnect://view/${connectSessionId}?server=${serverUrl}&token=${encodeURIComponent(token)}`;
|
||||
|
||||
// Try to launch the protocol handler
|
||||
@@ -1155,7 +1152,7 @@
|
||||
|
||||
const protocol = window.location.protocol === "https:" ? "wss:" : "ws:";
|
||||
const viewerName = user?.name || user?.email || "Technician";
|
||||
const token = localStorage.getItem("guruconnect_token");
|
||||
const token = localStorage.getItem("authToken");
|
||||
const wsUrl = `${protocol}//${window.location.host}/ws/viewer?session_id=${sessionId}&viewer_name=${encodeURIComponent(viewerName)}&token=${encodeURIComponent(token)}`;
|
||||
|
||||
console.log("Connecting chat to:", wsUrl);
|
||||
|
||||
Reference in New Issue
Block a user