@gowelle/stint-agent 1.2.25 → 1.2.26

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,10 +2,10 @@ import {
2
2
  gitService,
3
3
  projectService,
4
4
  validatePidFile
5
- } from "./chunk-HE5HT4JN.js";
5
+ } from "./chunk-Z7ZSQCVR.js";
6
6
  import {
7
7
  authService
8
- } from "./chunk-PIGCGH44.js";
8
+ } from "./chunk-ZHIGA6EY.js";
9
9
 
10
10
  // src/components/StatusDashboard.tsx
11
11
  import { useState, useEffect } from "react";
@@ -0,0 +1,7 @@
1
+ import {
2
+ apiService
3
+ } from "./chunk-YXNR7UVV.js";
4
+ import "./chunk-ZHIGA6EY.js";
5
+ export {
6
+ apiService
7
+ };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  apiService
3
- } from "./chunk-VKMJHETS.js";
3
+ } from "./chunk-YXNR7UVV.js";
4
4
  import {
5
5
  gitService,
6
6
  projectService
7
- } from "./chunk-HE5HT4JN.js";
7
+ } from "./chunk-Z7ZSQCVR.js";
8
8
  import {
9
9
  authService,
10
10
  config,
11
11
  logger
12
- } from "./chunk-PIGCGH44.js";
12
+ } from "./chunk-ZHIGA6EY.js";
13
13
 
14
14
  // src/utils/notify.ts
15
15
  import notifier from "node-notifier";
@@ -532,6 +532,11 @@ var WebSocketServiceImpl = class {
532
532
  * @throws Error if connection fails or no auth token available
533
533
  */
534
534
  async connect() {
535
+ if (this.echo) {
536
+ logger.debug("websocket", "Closing existing connection before reconnecting...");
537
+ this.echo.disconnect();
538
+ this.echo = null;
539
+ }
535
540
  try {
536
541
  const token = await authService.getToken();
537
542
  if (!token) {
@@ -711,7 +716,7 @@ var WebSocketServiceImpl = class {
711
716
  if (commit.has_large_files) {
712
717
  try {
713
718
  logger.info("websocket", `Commit ${commit.id} marked as large, fetching full details...`);
714
- const { apiService: apiService2 } = await import("./api-OOHTCUOC.js");
719
+ const { apiService: apiService2 } = await import("./api-3Y72TBXG.js");
715
720
  const fullCommit = await apiService2.getCommit(commit.id);
716
721
  commit = {
717
722
  ...commit,
@@ -2,7 +2,7 @@ import {
2
2
  authService,
3
3
  config,
4
4
  logger
5
- } from "./chunk-PIGCGH44.js";
5
+ } from "./chunk-ZHIGA6EY.js";
6
6
 
7
7
  // src/utils/circuit-breaker.ts
8
8
  var CircuitBreaker = class {
@@ -98,7 +98,7 @@ var CircuitBreaker = class {
98
98
  };
99
99
 
100
100
  // src/services/api.ts
101
- var AGENT_VERSION = "1.2.25";
101
+ var AGENT_VERSION = "1.2.26";
102
102
  var ApiServiceImpl = class {
103
103
  sessionId = null;
104
104
  circuitBreaker = new CircuitBreaker({
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  config,
3
3
  logger
4
- } from "./chunk-PIGCGH44.js";
4
+ } from "./chunk-ZHIGA6EY.js";
5
5
 
6
6
  // src/services/git.ts
7
7
  import simpleGit from "simple-git";
@@ -308,7 +308,7 @@ var AuthServiceImpl = class {
308
308
  return null;
309
309
  }
310
310
  try {
311
- const { apiService } = await import("./api-OOHTCUOC.js");
311
+ const { apiService } = await import("./api-3Y72TBXG.js");
312
312
  const user = await apiService.getCurrentUser();
313
313
  logger.info("auth", `Token validated for user: ${user.email}`);
314
314
  return user;
@@ -3,20 +3,20 @@ import {
3
3
  commitQueue,
4
4
  notify,
5
5
  websocketService
6
- } from "../chunk-36K4UN6O.js";
6
+ } from "../chunk-CCMXVYVO.js";
7
7
  import {
8
8
  apiService
9
- } from "../chunk-VKMJHETS.js";
9
+ } from "../chunk-YXNR7UVV.js";
10
10
  import {
11
11
  gitService,
12
12
  projectService,
13
13
  removePidFile,
14
14
  writePidFile
15
- } from "../chunk-HE5HT4JN.js";
15
+ } from "../chunk-Z7ZSQCVR.js";
16
16
  import {
17
17
  authService,
18
18
  logger
19
- } from "../chunk-PIGCGH44.js";
19
+ } from "../chunk-ZHIGA6EY.js";
20
20
 
21
21
  // src/daemon/runner.ts
22
22
  import "dotenv/config";
package/dist/index.js CHANGED
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  commitQueue,
4
4
  websocketService
5
- } from "./chunk-36K4UN6O.js";
5
+ } from "./chunk-CCMXVYVO.js";
6
6
  import {
7
7
  apiService
8
- } from "./chunk-VKMJHETS.js";
8
+ } from "./chunk-YXNR7UVV.js";
9
9
  import {
10
10
  getPidFilePath,
11
11
  gitService,
@@ -14,14 +14,14 @@ import {
14
14
  projectService,
15
15
  spawnDetached,
16
16
  validatePidFile
17
- } from "./chunk-HE5HT4JN.js";
17
+ } from "./chunk-Z7ZSQCVR.js";
18
18
  import {
19
19
  __commonJS,
20
20
  __toESM,
21
21
  authService,
22
22
  config,
23
23
  logger
24
- } from "./chunk-PIGCGH44.js";
24
+ } from "./chunk-ZHIGA6EY.js";
25
25
 
26
26
  // node_modules/semver/internal/constants.js
27
27
  var require_constants = __commonJS({
@@ -2552,7 +2552,7 @@ function registerStatusCommand(program2) {
2552
2552
  try {
2553
2553
  const { render } = await import("ink");
2554
2554
  const { createElement } = await import("react");
2555
- const { StatusDashboard } = await import("./StatusDashboard-XKX4CWF7.js");
2555
+ const { StatusDashboard } = await import("./StatusDashboard-6BRCPQQO.js");
2556
2556
  render(createElement(StatusDashboard, { cwd }));
2557
2557
  return;
2558
2558
  } catch (error) {
@@ -4356,7 +4356,7 @@ ${chalk14.bold("Config file:")} ${chalk14.cyan(configPath)}
4356
4356
  }
4357
4357
 
4358
4358
  // src/index.ts
4359
- var AGENT_VERSION = "1.2.25";
4359
+ var AGENT_VERSION = "1.2.26";
4360
4360
  var program = new Command();
4361
4361
  program.name("stint").description("Stint Agent - Local daemon for Stint Project Assistant").version(AGENT_VERSION, "-v, --version", "output the current version").addHelpText("after", `
4362
4362
  ${chalk15.bold("Examples:")}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gowelle/stint-agent",
3
- "version": "1.2.25",
3
+ "version": "1.2.26",
4
4
  "description": "Local agent for Stint - Project Assistant",
5
5
  "author": "Gowelle John <gowelle.john@icloud.com>",
6
6
  "license": "MIT",
@@ -1,7 +0,0 @@
1
- import {
2
- apiService
3
- } from "./chunk-VKMJHETS.js";
4
- import "./chunk-PIGCGH44.js";
5
- export {
6
- apiService
7
- };