@straiffi/archon 1.2.27 → 1.2.29

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-C2fCXYRE.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-Cnsdqm6z.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-BYbx6iT9.js">
10
- <link rel="modulepreload" crossorigin href="/assets/dropdown-menu-P4osjIhO.js">
10
+ <link rel="modulepreload" crossorigin href="/assets/dropdown-menu-q_xHq7cA.js">
11
11
  <link rel="stylesheet" crossorigin href="/assets/index-B1uf_7rL.css">
12
12
  </head>
13
13
  <body>
@@ -1351,6 +1351,7 @@ const submitBundleFollowUpResponse = (projectId, bundleId, payload, broadcaster)
1351
1351
  if (!instruction) {
1352
1352
  return { ok: false, status: 400, error: 'instruction is required' };
1353
1353
  }
1354
+ const mode = payload?.mode === 'plan' || payload?.mode === 'build' ? payload.mode : 'build';
1354
1355
  const tickets = listDetailedBundleTickets(project.id, bundle.id).filter(ticket => ticket.state !== 'plan');
1355
1356
  const targetTicket = resolveBundleTargetTicket(tickets);
1356
1357
  if (!targetTicket) {
@@ -1364,7 +1365,7 @@ const submitBundleFollowUpResponse = (projectId, bundleId, payload, broadcaster)
1364
1365
  if (!branch || targetTicket.has_worktree === false || !isWorktreeReady(branch, effectiveProject)) {
1365
1366
  return { ok: false, status: 400, error: 'Worktree not ready yet' };
1366
1367
  }
1367
- const started = startFollowUp(targetTicket, broadcaster, instruction);
1368
+ const started = startFollowUp(targetTicket, broadcaster, instruction, mode);
1368
1369
  if (!started) {
1369
1370
  return { ok: false, status: 409, error: 'Ticket is already running' };
1370
1371
  }