@vmise/aipi-companion 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -251352,7 +251352,7 @@ async function startDashboard({ executeRequest: executeRequest2, callTool: callT
|
|
|
251352
251352
|
try {
|
|
251353
251353
|
if (request.method === "GET" && url.pathname === "/launch") {
|
|
251354
251354
|
const project = url.searchParams.get("project");
|
|
251355
|
-
const destination = project ?
|
|
251355
|
+
const destination = project ? `/projects/${encodeURIComponent(project)}` : "/projects";
|
|
251356
251356
|
response.writeHead(302, {
|
|
251357
251357
|
location: destination,
|
|
251358
251358
|
"cache-control": "no-store",
|
|
@@ -251493,6 +251493,12 @@ async function startDashboard({ executeRequest: executeRequest2, callTool: callT
|
|
|
251493
251493
|
return;
|
|
251494
251494
|
} catch (error) {
|
|
251495
251495
|
if (error.code !== "ENOENT") throw error;
|
|
251496
|
+
if (!path9.extname(url.pathname)) {
|
|
251497
|
+
const content = await fs8.readFile(path9.join(UI_DIR, "index.html"));
|
|
251498
|
+
response.writeHead(200, { "content-type": mime[".html"], "cache-control": "no-store" });
|
|
251499
|
+
response.end(content);
|
|
251500
|
+
return;
|
|
251501
|
+
}
|
|
251496
251502
|
}
|
|
251497
251503
|
}
|
|
251498
251504
|
json(response, 404, { error: "Not found" });
|
|
@@ -284880,7 +284880,7 @@ async function startDashboard({ executeRequest: executeRequest2, callTool: callT
|
|
|
284880
284880
|
try {
|
|
284881
284881
|
if (request.method === "GET" && url2.pathname === "/launch") {
|
|
284882
284882
|
const project = url2.searchParams.get("project");
|
|
284883
|
-
const destination = project ?
|
|
284883
|
+
const destination = project ? `/projects/${encodeURIComponent(project)}` : "/projects";
|
|
284884
284884
|
response.writeHead(302, {
|
|
284885
284885
|
location: destination,
|
|
284886
284886
|
"cache-control": "no-store",
|
|
@@ -285021,6 +285021,12 @@ async function startDashboard({ executeRequest: executeRequest2, callTool: callT
|
|
|
285021
285021
|
return;
|
|
285022
285022
|
} catch (error62) {
|
|
285023
285023
|
if (error62.code !== "ENOENT") throw error62;
|
|
285024
|
+
if (!path6.extname(url2.pathname)) {
|
|
285025
|
+
const content = await fs5.readFile(path6.join(UI_DIR, "index.html"));
|
|
285026
|
+
response.writeHead(200, { "content-type": mime[".html"], "cache-control": "no-store" });
|
|
285027
|
+
response.end(content);
|
|
285028
|
+
return;
|
|
285029
|
+
}
|
|
285024
285030
|
}
|
|
285025
285031
|
}
|
|
285026
285032
|
json2(response, 404, { error: "Not found" });
|