agentpane 0.1.0 → 0.1.1
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/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,14 +3,14 @@ import { cors } from "hono/cors";
|
|
|
3
3
|
import { serve } from "@hono/node-server";
|
|
4
4
|
import { sessionsRoutes } from "./routes/sessions.js";
|
|
5
5
|
const app = new Hono();
|
|
6
|
-
// Private Network Access
|
|
6
|
+
// Private Network Access: must wrap CORS so the header lands on the preflight response
|
|
7
7
|
app.use("*", async (c, next) => {
|
|
8
|
+
await next();
|
|
8
9
|
if (c.req.header("Access-Control-Request-Private-Network") === "true") {
|
|
9
10
|
c.header("Access-Control-Allow-Private-Network", "true");
|
|
10
11
|
}
|
|
11
|
-
await next();
|
|
12
12
|
});
|
|
13
|
-
app.use("*", cors({ origin: "*"
|
|
13
|
+
app.use("*", cors({ origin: "*" }));
|
|
14
14
|
app.get("/api/health", (c) => c.json({ app: "agentpane", status: "ok" }));
|
|
15
15
|
app.route("/api/sessions", sessionsRoutes);
|
|
16
16
|
serve({ fetch: app.fetch, port: 3456 }, (info) => {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;AAEtB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAA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gentPane — web interface for AI coding agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
28
|
-
"url": "https://github.com/bgub/agentpane",
|
|
28
|
+
"url": "git+https://github.com/bgub/agentpane.git",
|
|
29
29
|
"directory": "apps/server"
|
|
30
30
|
},
|
|
31
31
|
"license": "MIT",
|