@straiffi/archon 1.1.1 → 1.1.3

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.
@@ -5,9 +5,9 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Archon</title>
8
- <script type="module" crossorigin src="/assets/index-BK_84mfc.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-kbsOL4Bp.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-BYbx6iT9.js">
10
- <link rel="modulepreload" crossorigin href="/assets/badge-DBRMkzQk.js">
10
+ <link rel="modulepreload" crossorigin href="/assets/badge-BentDQnz.js">
11
11
  <link rel="stylesheet" crossorigin href="/assets/index-Dr_tNX7Y.css">
12
12
  </head>
13
13
  <body>
@@ -2292,7 +2292,8 @@ app.get('/tickets/:id/git-status', (req, res) => {
2292
2292
  if ('error' in workspace) {
2293
2293
  return res.status(workspace.status).json({ error: workspace.error });
2294
2294
  }
2295
- return res.json(getGitStatus(workspace.cwd, workspace.branch, workspace.project));
2295
+ const refreshRemote = req.query.refresh_remote === 'true';
2296
+ return res.json(getGitStatus(workspace.cwd, workspace.branch, workspace.project, { refreshRemote }));
2296
2297
  });
2297
2298
  app.get('/tickets/:id/git-commits', (req, res) => {
2298
2299
  const ticket = getTicketRouteContext(req.params.id);
@@ -3331,6 +3332,7 @@ app.post('/planning-agent', async (req, res) => {
3331
3332
  }
3332
3333
  });
3333
3334
  app.get('/projects', (_req, res) => {
3335
+ res.set('Cache-Control', 'no-store');
3334
3336
  const projects = listProjects();
3335
3337
  res.json(projects.map(serializeProject));
3336
3338
  });
@@ -3372,6 +3374,7 @@ app.post('/projects', (req, res) => {
3372
3374
  res.status(201).json(serializeProject(project ?? null));
3373
3375
  });
3374
3376
  app.get('/projects/:id', (req, res) => {
3377
+ res.set('Cache-Control', 'no-store');
3375
3378
  const project = db.prepare('SELECT * FROM projects WHERE id = ?').get(req.params.id);
3376
3379
  if (!project) {
3377
3380
  return res.status(404).json({ error: 'Not found' });