@gowelle/stint-agent 1.2.16 → 1.2.17

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,7 +5,7 @@ import {
5
5
  } from "./chunk-QQP6IASS.js";
6
6
  import {
7
7
  authService
8
- } from "./chunk-7TIF7QZL.js";
8
+ } from "./chunk-ES33YYVA.js";
9
9
  import "./chunk-XHXSWLUC.js";
10
10
 
11
11
  // src/components/StatusDashboard.tsx
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  apiService
3
- } from "./chunk-I6DTKIFX.js";
4
- import "./chunk-7TIF7QZL.js";
3
+ } from "./chunk-D6BP2Z5S.js";
4
+ import "./chunk-ES33YYVA.js";
5
5
  import "./chunk-XHXSWLUC.js";
6
6
  export {
7
7
  apiService
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  authService
3
- } from "./chunk-7TIF7QZL.js";
3
+ } from "./chunk-ES33YYVA.js";
4
4
  import {
5
5
  config,
6
6
  logger
@@ -100,7 +100,7 @@ var CircuitBreaker = class {
100
100
  };
101
101
 
102
102
  // src/services/api.ts
103
- var AGENT_VERSION = "1.2.16";
103
+ var AGENT_VERSION = "1.2.17";
104
104
  var ApiServiceImpl = class {
105
105
  sessionId = null;
106
106
  circuitBreaker = new CircuitBreaker({
@@ -71,7 +71,7 @@ var AuthServiceImpl = class {
71
71
  return null;
72
72
  }
73
73
  try {
74
- const { apiService } = await import("./api-IB5F32WJ.js");
74
+ const { apiService } = await import("./api-ORVLKYAQ.js");
75
75
  const user = await apiService.getCurrentUser();
76
76
  logger.info("auth", `Token validated for user: ${user.email}`);
77
77
  return user;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  apiService
3
- } from "./chunk-I6DTKIFX.js";
3
+ } from "./chunk-D6BP2Z5S.js";
4
4
  import {
5
5
  gitService,
6
6
  projectService
7
7
  } from "./chunk-QQP6IASS.js";
8
8
  import {
9
9
  authService
10
- } from "./chunk-7TIF7QZL.js";
10
+ } from "./chunk-ES33YYVA.js";
11
11
  import {
12
12
  notify
13
13
  } from "./chunk-DCY3EXDX.js";
@@ -100,7 +100,7 @@ var CommitQueueProcessor = class {
100
100
  pushed = true;
101
101
  logger.success("queue", `Pushed commit ${sha} to remote`);
102
102
  notify({
103
- title: "Commit Executed & Pushed",
103
+ title: `Commit Pushed - ${project.name}`,
104
104
  message: `Commit "${commit.message}" successfully pushed.`
105
105
  });
106
106
  } catch (error) {
@@ -109,14 +109,14 @@ var CommitQueueProcessor = class {
109
109
  if (isConflict) {
110
110
  logger.warn("queue", `Push failed due to remote conflict: ${pushError}`);
111
111
  notify({
112
- title: "\u26A0\uFE0F Push Failed - Manual Action Required",
112
+ title: `Push Conflict - ${project.name}`,
113
113
  message: `Commit "${commit.message}" created but push failed.
114
- Run "git pull --rebase && git push" to resolve.`
114
+ Run "git pull --rebase" to resolve.`
115
115
  });
116
116
  } else {
117
117
  logger.error("queue", `Push failed: ${pushError}`);
118
118
  notify({
119
- title: "\u274C Push Failed",
119
+ title: `Push Failed - ${project.name}`,
120
120
  message: `Commit created but push failed: ${pushError}`
121
121
  });
122
122
  }
@@ -126,7 +126,7 @@ Run "git pull --rebase && git push" to resolve.`
126
126
  await this.reportSuccess(commit.id, sha, pushed, pushError);
127
127
  if (!pushed && !pushError) {
128
128
  notify({
129
- title: "Commit Executed",
129
+ title: `Commit Created - ${project.name}`,
130
130
  message: `Commit "${commit.message}" created locally.`
131
131
  });
132
132
  }
@@ -135,7 +135,7 @@ Run "git pull --rebase && git push" to resolve.`
135
135
  msg = error.message;
136
136
  logger.error("queue", `Commit execution failed: ${msg}`);
137
137
  notify({
138
- title: "Commit Failed",
138
+ title: `Commit Failed - ${project.name}`,
139
139
  message: `Failed to execute commit "${commit.message}": ${msg}`
140
140
  });
141
141
  await this.reportFailure(commit.id, msg);
@@ -308,7 +308,7 @@ var WebSocketServiceImpl = class {
308
308
  * Get authentication signature for private channel from Laravel backend
309
309
  */
310
310
  async getChannelAuth(channel, socketId) {
311
- const { apiService: apiService2 } = await import("./api-IB5F32WJ.js");
311
+ const { apiService: apiService2 } = await import("./api-ORVLKYAQ.js");
312
312
  const response = await apiService2.request("/api/broadcasting/auth", {
313
313
  method: "POST",
314
314
  body: JSON.stringify({
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  commitQueue,
4
4
  websocketService
5
- } from "../chunk-Z44NPHXG.js";
5
+ } from "../chunk-VHCNMUHN.js";
6
6
  import {
7
7
  apiService
8
- } from "../chunk-I6DTKIFX.js";
8
+ } from "../chunk-D6BP2Z5S.js";
9
9
  import {
10
10
  gitService,
11
11
  projectService,
@@ -14,7 +14,7 @@ import {
14
14
  } from "../chunk-QQP6IASS.js";
15
15
  import {
16
16
  authService
17
- } from "../chunk-7TIF7QZL.js";
17
+ } from "../chunk-ES33YYVA.js";
18
18
  import {
19
19
  notify
20
20
  } from "../chunk-DCY3EXDX.js";
@@ -286,9 +286,16 @@ var FileWatcher = class {
286
286
  const repoInfo = await gitService.getRepoInfo(projectPath);
287
287
  await apiService.syncProject(projectId, repoInfo);
288
288
  logger.success("watcher", `Synced project ${projectId}`);
289
+ let projectName = projectId;
290
+ try {
291
+ const projects = await apiService.getLinkedProjects();
292
+ const p = projects.find((proj) => proj.id === projectId);
293
+ if (p) projectName = p.name;
294
+ } catch (e) {
295
+ }
289
296
  notify({
290
297
  title: "Sync Complete",
291
- message: `Project ${projectId} synced successfully.`
298
+ message: `Project "${projectName}" synced successfully.`
292
299
  });
293
300
  } catch (error) {
294
301
  logger.error("watcher", `Failed to sync project ${projectId}`, error);
@@ -393,10 +400,18 @@ Project: ${project.name}`
393
400
  });
394
401
  commitQueue.addToQueue(commit, project);
395
402
  });
396
- websocketService.onCommitPending((commit) => {
403
+ websocketService.onCommitPending(async (data) => {
404
+ const commit = data;
397
405
  logger.info("daemon", `Commit pending: ${commit.id}`);
406
+ let projectName = commit.projectId;
407
+ try {
408
+ const projects = await apiService.getLinkedProjects();
409
+ const p = projects.find((proj) => proj.id === commit.projectId);
410
+ if (p) projectName = p.name;
411
+ } catch (e) {
412
+ }
398
413
  notify({
399
- title: "New Pending Commit",
414
+ title: `New Proposal - ${projectName}`,
400
415
  message: commit.message
401
416
  });
402
417
  });
@@ -436,9 +451,18 @@ Priority: ${suggestion.priority}`,
436
451
  websocketService.onSyncRequested(async (projectId) => {
437
452
  logger.info("daemon", `Server requested sync for project: ${projectId}`);
438
453
  try {
454
+ let projectName = projectId;
455
+ try {
456
+ const projects = await apiService.getLinkedProjects();
457
+ const project = projects.find((p) => p.id === projectId);
458
+ if (project) {
459
+ projectName = project.name;
460
+ }
461
+ } catch (e) {
462
+ }
439
463
  notify({
440
464
  title: "Sync Requested",
441
- message: `Syncing project ${projectId}...`
465
+ message: `Syncing project "${projectName}"...`
442
466
  });
443
467
  await fileWatcher.syncProjectById(projectId);
444
468
  } catch (error) {
package/dist/index.js CHANGED
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  commitQueue,
4
4
  websocketService
5
- } from "./chunk-Z44NPHXG.js";
5
+ } from "./chunk-VHCNMUHN.js";
6
6
  import {
7
7
  apiService
8
- } from "./chunk-I6DTKIFX.js";
8
+ } from "./chunk-D6BP2Z5S.js";
9
9
  import {
10
10
  getPidFilePath,
11
11
  gitService,
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-QQP6IASS.js";
18
18
  import {
19
19
  authService
20
- } from "./chunk-7TIF7QZL.js";
20
+ } from "./chunk-ES33YYVA.js";
21
21
  import "./chunk-DCY3EXDX.js";
22
22
  import {
23
23
  config,
@@ -623,7 +623,7 @@ function registerStatusCommand(program2) {
623
623
  try {
624
624
  const { render } = await import("ink");
625
625
  const { createElement } = await import("react");
626
- const { StatusDashboard } = await import("./StatusDashboard-LCGOELR4.js");
626
+ const { StatusDashboard } = await import("./StatusDashboard-ATB5BFZR.js");
627
627
  render(createElement(StatusDashboard, { cwd }));
628
628
  return;
629
629
  } catch (error) {
@@ -2003,7 +2003,7 @@ function registerDoctorCommand(program2) {
2003
2003
  }
2004
2004
 
2005
2005
  // src/index.ts
2006
- var AGENT_VERSION = "1.2.16";
2006
+ var AGENT_VERSION = "1.2.17";
2007
2007
  var program = new Command();
2008
2008
  program.name("stint").description("Stint Agent - Local daemon for Stint Project Assistant").version(AGENT_VERSION, "-v, --version", "output the current version").addHelpText("after", `
2009
2009
  ${chalk13.bold("Examples:")}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gowelle/stint-agent",
3
- "version": "1.2.16",
3
+ "version": "1.2.17",
4
4
  "description": "Local agent for Stint - Project Assistant",
5
5
  "author": "Gowelle John <gowelle.john@icloud.com>",
6
6
  "license": "MIT",