@gowelle/stint-agent 1.2.5 → 1.2.6

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-7RFRGXTU.js";
5
+ } from "./chunk-Y3573VCA.js";
6
6
  import {
7
7
  authService
8
- } from "./chunk-M62KR3LR.js";
8
+ } from "./chunk-BQSZTSYJ.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-WKUVY5JC.js";
4
+ import "./chunk-BQSZTSYJ.js";
5
+ export {
6
+ apiService
7
+ };
@@ -282,7 +282,7 @@ var AuthServiceImpl = class {
282
282
  return null;
283
283
  }
284
284
  try {
285
- const { apiService } = await import("./api-CTKZUAEV.js");
285
+ const { apiService } = await import("./api-434J2GGQ.js");
286
286
  const user = await apiService.getCurrentUser();
287
287
  logger.info("auth", `Token validated for user: ${user.email}`);
288
288
  return user;
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  apiService
3
- } from "./chunk-QSQGPVIU.js";
3
+ } from "./chunk-WKUVY5JC.js";
4
4
  import {
5
5
  gitService,
6
6
  projectService
7
- } from "./chunk-7RFRGXTU.js";
7
+ } from "./chunk-Y3573VCA.js";
8
8
  import {
9
9
  authService,
10
10
  config,
11
11
  logger
12
- } from "./chunk-M62KR3LR.js";
12
+ } from "./chunk-BQSZTSYJ.js";
13
13
 
14
14
  // src/utils/notify.ts
15
15
  import notifier from "node-notifier";
@@ -348,7 +348,7 @@ var WebSocketServiceImpl = class {
348
348
  handleMessage(data) {
349
349
  try {
350
350
  const message = JSON.parse(data.toString());
351
- logger.debug("websocket", `Received message: ${message.event}`);
351
+ logger.info("websocket", `Received message: ${message.event}`);
352
352
  if (message.event === "pusher:connection_established") {
353
353
  logger.success("websocket", "Connection established");
354
354
  return;
@@ -393,7 +393,7 @@ var WebSocketServiceImpl = class {
393
393
  this.agentDisconnectedHandlers.forEach((handler) => handler(reason ?? "Server requested disconnect"));
394
394
  return;
395
395
  }
396
- logger.debug("websocket", `Unhandled event: ${message.event}`);
396
+ logger.info("websocket", `Unhandled event: ${message.event}, payload: ${JSON.stringify(message)}`);
397
397
  } catch (error) {
398
398
  logger.error("websocket", "Failed to parse message", error);
399
399
  }
@@ -2,7 +2,7 @@ import {
2
2
  authService,
3
3
  config,
4
4
  logger
5
- } from "./chunk-M62KR3LR.js";
5
+ } from "./chunk-BQSZTSYJ.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.5";
101
+ var AGENT_VERSION = "1.2.6";
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-M62KR3LR.js";
4
+ } from "./chunk-BQSZTSYJ.js";
5
5
 
6
6
  // src/services/git.ts
7
7
  import simpleGit from "simple-git";
@@ -3,20 +3,20 @@ import {
3
3
  commitQueue,
4
4
  notify,
5
5
  websocketService
6
- } from "../chunk-MMZYYFJF.js";
6
+ } from "../chunk-E2JTYLJT.js";
7
7
  import {
8
8
  apiService
9
- } from "../chunk-QSQGPVIU.js";
9
+ } from "../chunk-WKUVY5JC.js";
10
10
  import {
11
11
  gitService,
12
12
  projectService,
13
13
  removePidFile,
14
14
  writePidFile
15
- } from "../chunk-7RFRGXTU.js";
15
+ } from "../chunk-Y3573VCA.js";
16
16
  import {
17
17
  authService,
18
18
  logger
19
- } from "../chunk-M62KR3LR.js";
19
+ } from "../chunk-BQSZTSYJ.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-MMZYYFJF.js";
5
+ } from "./chunk-E2JTYLJT.js";
6
6
  import {
7
7
  apiService
8
- } from "./chunk-QSQGPVIU.js";
8
+ } from "./chunk-WKUVY5JC.js";
9
9
  import {
10
10
  getPidFilePath,
11
11
  gitService,
@@ -14,12 +14,12 @@ import {
14
14
  projectService,
15
15
  spawnDetached,
16
16
  validatePidFile
17
- } from "./chunk-7RFRGXTU.js";
17
+ } from "./chunk-Y3573VCA.js";
18
18
  import {
19
19
  authService,
20
20
  config,
21
21
  logger
22
- } from "./chunk-M62KR3LR.js";
22
+ } from "./chunk-BQSZTSYJ.js";
23
23
 
24
24
  // src/index.ts
25
25
  import "dotenv/config";
@@ -620,7 +620,7 @@ function registerStatusCommand(program2) {
620
620
  try {
621
621
  const { render } = await import("ink");
622
622
  const { createElement } = await import("react");
623
- const { StatusDashboard } = await import("./StatusDashboard-N6F7NTE6.js");
623
+ const { StatusDashboard } = await import("./StatusDashboard-3OZZYL62.js");
624
624
  render(createElement(StatusDashboard, { cwd }));
625
625
  return;
626
626
  } catch (error) {
@@ -2000,7 +2000,7 @@ function registerDoctorCommand(program2) {
2000
2000
  }
2001
2001
 
2002
2002
  // src/index.ts
2003
- var AGENT_VERSION = "1.2.5";
2003
+ var AGENT_VERSION = "1.2.6";
2004
2004
  var program = new Command();
2005
2005
  program.name("stint").description("Stint Agent - Local daemon for Stint Project Assistant").version(AGENT_VERSION, "-v, --version", "output the current version").addHelpText("after", `
2006
2006
  ${chalk13.bold("Examples:")}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gowelle/stint-agent",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
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-QSQGPVIU.js";
4
- import "./chunk-M62KR3LR.js";
5
- export {
6
- apiService
7
- };