@gowelle/stint-agent 1.2.13 → 1.2.14
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/{StatusDashboard-DB5NN4MB.js → StatusDashboard-VYOFLJDD.js} +1 -1
- package/dist/{api-DF4GJHID.js → api-DJSTPHLX.js} +2 -2
- package/dist/{chunk-GR56NPJ6.js → chunk-ODHF43SC.js} +7 -19
- package/dist/{chunk-MNCP4JFA.js → chunk-QRCU33OO.js} +1 -1
- package/dist/{chunk-4ECPXVXN.js → chunk-SJMVFX5Q.js} +2 -2
- package/dist/daemon/runner.js +3 -3
- package/dist/index.js +5 -5
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
apiService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SJMVFX5Q.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-
|
|
10
|
+
} from "./chunk-QRCU33OO.js";
|
|
11
11
|
import {
|
|
12
12
|
notify
|
|
13
13
|
} from "./chunk-HUQ7VJO6.js";
|
|
@@ -279,34 +279,22 @@ var WebSocketServiceImpl = class {
|
|
|
279
279
|
*/
|
|
280
280
|
async subscribeToUserChannel(userId) {
|
|
281
281
|
this.userId = userId;
|
|
282
|
-
if (
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
}
|
|
286
|
-
if (!this.socketId) {
|
|
287
|
-
logger.warn("websocket", "Cannot subscribe: socket_id not available yet");
|
|
288
|
-
return;
|
|
289
|
-
}
|
|
290
|
-
const channel = `private-user.${userId}`;
|
|
291
|
-
logger.info("websocket", `Subscribing to channel: ${channel}`);
|
|
292
|
-
try {
|
|
293
|
-
const auth = await this.getChannelAuth(channel, this.socketId);
|
|
282
|
+
if (this.userId) {
|
|
283
|
+
const channel = `user.${this.userId}`;
|
|
284
|
+
logger.info("websocket", `Subscribing to channel: ${channel}`);
|
|
294
285
|
this.sendMessage({
|
|
295
286
|
event: "pusher:subscribe",
|
|
296
287
|
data: {
|
|
297
|
-
channel
|
|
298
|
-
auth
|
|
288
|
+
channel
|
|
299
289
|
}
|
|
300
290
|
});
|
|
301
|
-
} catch (error) {
|
|
302
|
-
logger.error("websocket", "Failed to authenticate channel subscription", error);
|
|
303
291
|
}
|
|
304
292
|
}
|
|
305
293
|
/**
|
|
306
294
|
* Get authentication signature for private channel from Laravel backend
|
|
307
295
|
*/
|
|
308
296
|
async getChannelAuth(channel, socketId) {
|
|
309
|
-
const { apiService: apiService2 } = await import("./api-
|
|
297
|
+
const { apiService: apiService2 } = await import("./api-DJSTPHLX.js");
|
|
310
298
|
const response = await apiService2.request("/api/broadcasting/auth", {
|
|
311
299
|
method: "POST",
|
|
312
300
|
body: JSON.stringify({
|
|
@@ -71,7 +71,7 @@ var AuthServiceImpl = class {
|
|
|
71
71
|
return null;
|
|
72
72
|
}
|
|
73
73
|
try {
|
|
74
|
-
const { apiService } = await import("./api-
|
|
74
|
+
const { apiService } = await import("./api-DJSTPHLX.js");
|
|
75
75
|
const user = await apiService.getCurrentUser();
|
|
76
76
|
logger.info("auth", `Token validated for user: ${user.email}`);
|
|
77
77
|
return user;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
authService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QRCU33OO.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.
|
|
103
|
+
var AGENT_VERSION = "1.2.14";
|
|
104
104
|
var ApiServiceImpl = class {
|
|
105
105
|
sessionId = null;
|
|
106
106
|
circuitBreaker = new CircuitBreaker({
|
package/dist/daemon/runner.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
commitQueue,
|
|
4
4
|
websocketService
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-ODHF43SC.js";
|
|
6
6
|
import {
|
|
7
7
|
apiService
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-SJMVFX5Q.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-
|
|
17
|
+
} from "../chunk-QRCU33OO.js";
|
|
18
18
|
import {
|
|
19
19
|
notify
|
|
20
20
|
} from "../chunk-HUQ7VJO6.js";
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
commitQueue,
|
|
4
4
|
websocketService
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ODHF43SC.js";
|
|
6
6
|
import {
|
|
7
7
|
apiService
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SJMVFX5Q.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-
|
|
20
|
+
} from "./chunk-QRCU33OO.js";
|
|
21
21
|
import "./chunk-HUQ7VJO6.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-
|
|
626
|
+
const { StatusDashboard } = await import("./StatusDashboard-VYOFLJDD.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.
|
|
2006
|
+
var AGENT_VERSION = "1.2.14";
|
|
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:")}
|