@gowelle/stint-agent 1.2.20 → 1.2.22

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.
@@ -2,23 +2,21 @@
2
2
  import {
3
3
  commitQueue,
4
4
  notify,
5
- versionService,
6
5
  websocketService
7
- } from "../chunk-BH4OTBYH.js";
6
+ } from "../chunk-ZNBNEPPK.js";
8
7
  import {
9
8
  apiService
10
- } from "../chunk-L7PFNRLV.js";
9
+ } from "../chunk-KMYPMLEH.js";
11
10
  import {
12
11
  gitService,
13
12
  projectService,
14
13
  removePidFile,
15
14
  writePidFile
16
- } from "../chunk-ABDHDLEJ.js";
15
+ } from "../chunk-TQHWJWBZ.js";
17
16
  import {
18
17
  authService,
19
- config,
20
18
  logger
21
- } from "../chunk-GOS22L3R.js";
19
+ } from "../chunk-7H6J2KCA.js";
22
20
 
23
21
  // src/daemon/runner.ts
24
22
  import "dotenv/config";
@@ -163,7 +161,8 @@ var FileWatcher = class {
163
161
  return;
164
162
  }
165
163
  const repoInfo = await gitService.getRepoInfo(projectPath);
166
- await apiService.syncProject(projectId, repoInfo);
164
+ const changedFiles = await gitService.getChangedFiles(projectPath);
165
+ await apiService.syncProject(projectId, repoInfo, changedFiles);
167
166
  logger.success("watcher", `Synced project ${projectId}`);
168
167
  let projectName = projectId;
169
168
  try {
@@ -242,39 +241,6 @@ var heartbeatInterval = null;
242
241
  var isShuttingDown = false;
243
242
  var shutdownReason;
244
243
  var fileWatcher = new FileWatcher();
245
- async function checkForUpdatesIfEnabled() {
246
- try {
247
- const autoCheck = config.get("autoCheckUpdates");
248
- if (!autoCheck) {
249
- logger.debug("daemon", "Automatic update checks disabled");
250
- return;
251
- }
252
- const lastCheck = config.get("lastUpdateCheck");
253
- if (lastCheck) {
254
- const lastCheckTime = new Date(lastCheck).getTime();
255
- const now = Date.now();
256
- const cooldownMs = 24 * 60 * 60 * 1e3;
257
- if (now - lastCheckTime < cooldownMs) {
258
- logger.debug("daemon", "Update check cooldown active");
259
- return;
260
- }
261
- }
262
- logger.info("daemon", "Checking for updates...");
263
- const versionInfo = await versionService.checkForUpdates("stable");
264
- config.set("lastUpdateCheck", (/* @__PURE__ */ new Date()).toISOString());
265
- if (versionInfo.hasUpdate) {
266
- logger.info("daemon", `Update available: ${versionInfo.current} \u2192 ${versionInfo.latest}`);
267
- notify({
268
- title: "Stint Agent Update Available",
269
- message: `Version ${versionInfo.latest} is available. Run "stint update" to install.`
270
- });
271
- } else {
272
- logger.debug("daemon", "No updates available");
273
- }
274
- } catch (error) {
275
- logger.debug("daemon", "Failed to check for updates", error);
276
- }
277
- }
278
244
  async function startDaemon() {
279
245
  logger.info("daemon", "Starting daemon...");
280
246
  try {
@@ -387,7 +353,6 @@ Priority: ${suggestion.priority}`,
387
353
  logger.success("daemon", "Initial project sync complete");
388
354
  }
389
355
  logger.success("daemon", "Daemon started successfully");
390
- await checkForUpdatesIfEnabled();
391
356
  await new Promise(() => {
392
357
  });
393
358
  } catch (error) {