minionsai 0.1.7 → 0.1.8
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.
|
@@ -9,7 +9,7 @@ import { filesRouter } from './routes/files.js';
|
|
|
9
9
|
import { HermesWorkerAdapter } from './adapters/hermes-worker.js';
|
|
10
10
|
import { initSSE, addClient, sendEvent } from './events.js';
|
|
11
11
|
import { getRunStatuses } from './live-chat.js';
|
|
12
|
-
import {
|
|
12
|
+
import { getAppVersion } from './version.js';
|
|
13
13
|
const app = express();
|
|
14
14
|
app.use(cors());
|
|
15
15
|
const adapter = new HermesWorkerAdapter();
|
|
@@ -18,7 +18,7 @@ app.get('/api/health', async (_req, res) => {
|
|
|
18
18
|
res.json({ ok: true, hermes });
|
|
19
19
|
});
|
|
20
20
|
app.get('/api/version', (_req, res) => {
|
|
21
|
-
res.json(
|
|
21
|
+
res.json(getAppVersion());
|
|
22
22
|
});
|
|
23
23
|
app.get('/api/events', (req, res) => {
|
|
24
24
|
initSSE(res);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { AppVersion } from '@shared/types';
|
|
2
|
-
export declare
|
|
2
|
+
export declare function getAppVersion(): AppVersion;
|