@ian2018cs/agenthub 0.1.77 → 0.1.78

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.html CHANGED
@@ -25,7 +25,7 @@
25
25
 
26
26
  <!-- Prevent zoom on iOS -->
27
27
  <meta name="format-detection" content="telephone=no" />
28
- <script type="module" crossorigin src="/assets/index-C9030Hra.js"></script>
28
+ <script type="module" crossorigin src="/assets/index-NaMmXkCt.js"></script>
29
29
  <link rel="modulepreload" crossorigin href="/assets/vendor-react-Bv0Nkan8.js">
30
30
  <link rel="modulepreload" crossorigin href="/assets/vendor-codemirror-sVRjxPVQ.js">
31
31
  <link rel="modulepreload" crossorigin href="/assets/vendor-utils-00TdZexr.js">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ian2018cs/agenthub",
3
- "version": "0.1.77",
3
+ "version": "0.1.78",
4
4
  "description": "A web-based UI for AI Agents",
5
5
  "type": "module",
6
6
  "main": "server/index.js",
package/server/index.js CHANGED
@@ -447,6 +447,17 @@ app.use(express.static(path.join(__dirname, '../dist'), {
447
447
  // /api/config endpoint removed - no longer needed
448
448
  // Frontend now uses window.location for WebSocket URLs
449
449
 
450
+ // Public version endpoint - reads from package.json at runtime to avoid build-time lag
451
+ app.get('/api/version', (req, res) => {
452
+ try {
453
+ const pkgPath = path.join(__dirname, '..', 'package.json');
454
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
455
+ res.json({ version: pkg.version });
456
+ } catch (e) {
457
+ res.json({ version: 'unknown' });
458
+ }
459
+ });
460
+
450
461
  app.get('/api/projects', authenticateToken, async (req, res) => {
451
462
  try {
452
463
  const projects = await getProjects(req.user.uuid);