tycono 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tycono",
3
- "version": "0.1.77",
3
+ "version": "0.1.78",
4
4
  "description": "Build an AI company. Watch them work.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,6 +25,9 @@ export function createApp() {
25
25
  app.use(cors({ origin: corsOrigin }));
26
26
  app.use(express.json());
27
27
 
28
+ // Suppress favicon 404
29
+ app.get('/favicon.ico', (_req, res) => res.status(204).end());
30
+
28
31
  // Setup / onboarding (always available)
29
32
  app.use('/api/setup', setupRouter);
30
33
 
@@ -16,6 +16,11 @@ saveRouter.get('/status', (req: Request, res: Response, next: NextFunction) => {
16
16
  try {
17
17
  res.json(getGitStatus(COMPANY_ROOT, getRepo(req)));
18
18
  } catch (err) {
19
+ // codeRoot not configured is expected for fresh installs — return empty status
20
+ if (err instanceof Error && err.message.includes('codeRoot not configured')) {
21
+ res.json({ isRepo: false, branch: '', staged: [], unstaged: [], untracked: [], notConfigured: true });
22
+ return;
23
+ }
19
24
  next(err);
20
25
  }
21
26
  });