@semiont/backend 0.4.15 → 0.4.17
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 +10 -2
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +4 -0
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -14012,6 +14012,10 @@ var openapi_default = {
|
|
|
14012
14012
|
projectName: {
|
|
14013
14013
|
type: "string",
|
|
14014
14014
|
description: "Name of the knowledge base project"
|
|
14015
|
+
},
|
|
14016
|
+
gitBranch: {
|
|
14017
|
+
type: "string",
|
|
14018
|
+
description: "Current git branch of the knowledge base repository"
|
|
14015
14019
|
}
|
|
14016
14020
|
},
|
|
14017
14021
|
required: [
|
|
@@ -17268,7 +17272,10 @@ statusRouter.use("/api/status", authMiddleware);
|
|
|
17268
17272
|
statusRouter.get("/api/status", async (c) => {
|
|
17269
17273
|
const user = c.get("user");
|
|
17270
17274
|
const config2 = c.get("config");
|
|
17271
|
-
const
|
|
17275
|
+
const metadata = config2._metadata;
|
|
17276
|
+
const projectName = metadata?.projectName;
|
|
17277
|
+
const projectRoot2 = metadata?.projectRoot;
|
|
17278
|
+
const gitBranch = projectRoot2 ? new SemiontProject(projectRoot2).gitBranch() : void 0;
|
|
17272
17279
|
const response = {
|
|
17273
17280
|
status: "operational",
|
|
17274
17281
|
version: "0.1.0",
|
|
@@ -17279,7 +17286,8 @@ statusRouter.get("/api/status", async (c) => {
|
|
|
17279
17286
|
},
|
|
17280
17287
|
message: "Ready to build the future of knowledge management!",
|
|
17281
17288
|
authenticatedAs: user?.email,
|
|
17282
|
-
projectName
|
|
17289
|
+
projectName,
|
|
17290
|
+
gitBranch: gitBranch ?? void 0
|
|
17283
17291
|
};
|
|
17284
17292
|
return c.json(response, 200);
|
|
17285
17293
|
});
|