episoda 0.2.71 → 0.2.73

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.js CHANGED
@@ -3978,6 +3978,8 @@ Received ${signal}. Daemon continues running in background.`);
3978
3978
  };
3979
3979
  process.on("SIGTERM", () => shutdownHandler("SIGTERM"));
3980
3980
  process.on("SIGINT", () => shutdownHandler("SIGINT"));
3981
+ setInterval(() => {
3982
+ }, 1e3 * 60 * 60);
3981
3983
  await new Promise(() => {
3982
3984
  });
3983
3985
  } else {
@@ -5585,7 +5587,8 @@ The .bare directory or .episoda/config.json may be missing.`
5585
5587
  apiUrl,
5586
5588
  moduleDetails.id,
5587
5589
  config.access_token,
5588
- branchWasGenerated ? branchName : void 0
5590
+ branchWasGenerated ? branchName : void 0,
5591
+ result.worktreePath
5589
5592
  );
5590
5593
  } catch (error) {
5591
5594
  status.warning("Could not update server with checkout status");
@@ -5632,7 +5635,7 @@ ${errorBody}`
5632
5635
  }
5633
5636
  return data;
5634
5637
  }
5635
- async function updateModuleCheckout(apiUrl, moduleId, accessToken, branchName) {
5638
+ async function updateModuleCheckout(apiUrl, moduleId, accessToken, branchName, worktreePath) {
5636
5639
  const url = `${apiUrl}/api/modules/${moduleId}/checkout`;
5637
5640
  const body = {
5638
5641
  checked_out: true,
@@ -5641,6 +5644,10 @@ async function updateModuleCheckout(apiUrl, moduleId, accessToken, branchName) {
5641
5644
  if (branchName) {
5642
5645
  body.branch_name = branchName;
5643
5646
  }
5647
+ if (worktreePath) {
5648
+ body.worktree_path = worktreePath;
5649
+ body.worktree_status = "ready";
5650
+ }
5644
5651
  await fetchWithRetry(url, {
5645
5652
  method: "POST",
5646
5653
  headers: {