@gowelle/stint-agent 1.2.47 → 1.2.48
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-PWYZUDN3.js → StatusDashboard-EEY7KFZW.js} +2 -2
- package/dist/api-5NWCQKIO.js +7 -0
- package/dist/{chunk-ZPS772PW.js → chunk-BXL4FWJP.js} +9 -5
- package/dist/{chunk-EZWHVRCK.js → chunk-DO2UM4KG.js} +1 -1
- package/dist/{chunk-GTNFXUSW.js → chunk-FX5SUMJG.js} +1 -1
- package/dist/{chunk-AOMGKVON.js → chunk-GFOTV2EU.js} +2 -2
- package/dist/daemon/runner.js +4 -4
- package/dist/index.js +6 -6
- package/package.json +1 -1
- package/dist/api-DLJJ4DDC.js +0 -7
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
gitService,
|
|
3
3
|
projectService,
|
|
4
4
|
validatePidFile
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DO2UM4KG.js";
|
|
6
6
|
import {
|
|
7
7
|
authService
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FX5SUMJG.js";
|
|
9
9
|
|
|
10
10
|
// src/components/StatusDashboard.tsx
|
|
11
11
|
import { useState, useEffect } from "react";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
apiService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GFOTV2EU.js";
|
|
4
4
|
import {
|
|
5
5
|
gitService,
|
|
6
6
|
projectService
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DO2UM4KG.js";
|
|
8
8
|
import {
|
|
9
9
|
authService,
|
|
10
10
|
config,
|
|
11
11
|
logger
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FX5SUMJG.js";
|
|
13
13
|
|
|
14
14
|
// src/services/package-detector.ts
|
|
15
15
|
import fs from "fs";
|
|
@@ -165,7 +165,11 @@ var PackageDetectorService = class {
|
|
|
165
165
|
if (response.ok) {
|
|
166
166
|
const data = await response.json();
|
|
167
167
|
const downloads = data.package?.downloads || {};
|
|
168
|
-
const
|
|
168
|
+
const versions = data.package?.versions || {};
|
|
169
|
+
const versionKeys = Object.keys(versions).filter(
|
|
170
|
+
(v) => !v.includes("dev") && !v.startsWith("dev-")
|
|
171
|
+
);
|
|
172
|
+
const latestVersion = versionKeys[0] || Object.keys(versions)[0] || "";
|
|
169
173
|
return {
|
|
170
174
|
isPublished: true,
|
|
171
175
|
publishedVersion: latestVersion,
|
|
@@ -1425,7 +1429,7 @@ var WebSocketServiceImpl = class {
|
|
|
1425
1429
|
"websocket",
|
|
1426
1430
|
`Commit ${commit.id} marked as large, fetching full details...`
|
|
1427
1431
|
);
|
|
1428
|
-
const { apiService: apiService2 } = await import("./api-
|
|
1432
|
+
const { apiService: apiService2 } = await import("./api-5NWCQKIO.js");
|
|
1429
1433
|
const fullCommit = await apiService2.getCommit(commit.id);
|
|
1430
1434
|
commit = {
|
|
1431
1435
|
...commit,
|
|
@@ -358,7 +358,7 @@ var AuthServiceImpl = class {
|
|
|
358
358
|
return null;
|
|
359
359
|
}
|
|
360
360
|
try {
|
|
361
|
-
const { apiService } = await import("./api-
|
|
361
|
+
const { apiService } = await import("./api-5NWCQKIO.js");
|
|
362
362
|
const user = await apiService.getCurrentUser();
|
|
363
363
|
logger.info("auth", `Token validated for user: ${user.email}`);
|
|
364
364
|
return user;
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
authService,
|
|
3
3
|
config,
|
|
4
4
|
logger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FX5SUMJG.js";
|
|
6
6
|
|
|
7
7
|
// src/utils/circuit-breaker.ts
|
|
8
8
|
var CircuitBreaker = class {
|
|
@@ -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.48";
|
|
104
104
|
var ApiServiceImpl = class {
|
|
105
105
|
sessionId = null;
|
|
106
106
|
circuitBreaker = new CircuitBreaker({
|
package/dist/daemon/runner.js
CHANGED
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
notify,
|
|
5
5
|
packageDetector,
|
|
6
6
|
websocketService
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-BXL4FWJP.js";
|
|
8
8
|
import {
|
|
9
9
|
apiService
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-GFOTV2EU.js";
|
|
11
11
|
import {
|
|
12
12
|
gitService,
|
|
13
13
|
projectService,
|
|
14
14
|
removePidFile,
|
|
15
15
|
writePidFile
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-DO2UM4KG.js";
|
|
17
17
|
import {
|
|
18
18
|
authService,
|
|
19
19
|
logger
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-FX5SUMJG.js";
|
|
21
21
|
|
|
22
22
|
// src/daemon/runner.ts
|
|
23
23
|
import "dotenv/config";
|
package/dist/index.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
commitQueue,
|
|
4
4
|
packageDetector,
|
|
5
5
|
websocketService
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BXL4FWJP.js";
|
|
7
7
|
import {
|
|
8
8
|
apiService
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GFOTV2EU.js";
|
|
10
10
|
import {
|
|
11
11
|
getPidFilePath,
|
|
12
12
|
gitService,
|
|
@@ -15,14 +15,14 @@ import {
|
|
|
15
15
|
projectService,
|
|
16
16
|
spawnDetached,
|
|
17
17
|
validatePidFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DO2UM4KG.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM,
|
|
22
22
|
authService,
|
|
23
23
|
config,
|
|
24
24
|
logger
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-FX5SUMJG.js";
|
|
26
26
|
|
|
27
27
|
// node_modules/semver/internal/constants.js
|
|
28
28
|
var require_constants = __commonJS({
|
|
@@ -2658,7 +2658,7 @@ function registerStatusCommand(program2) {
|
|
|
2658
2658
|
try {
|
|
2659
2659
|
const { render } = await import("ink");
|
|
2660
2660
|
const { createElement } = await import("react");
|
|
2661
|
-
const { StatusDashboard } = await import("./StatusDashboard-
|
|
2661
|
+
const { StatusDashboard } = await import("./StatusDashboard-EEY7KFZW.js");
|
|
2662
2662
|
render(createElement(StatusDashboard, { cwd }));
|
|
2663
2663
|
return;
|
|
2664
2664
|
} catch (error) {
|
|
@@ -4946,7 +4946,7 @@ Tasks for project ${chalk15.cyan(linkedProject.projectId)}`
|
|
|
4946
4946
|
});
|
|
4947
4947
|
|
|
4948
4948
|
// src/index.ts
|
|
4949
|
-
var AGENT_VERSION = "1.2.
|
|
4949
|
+
var AGENT_VERSION = "1.2.48";
|
|
4950
4950
|
var program = new Command2();
|
|
4951
4951
|
program.name("stint").description("Stint Agent - Local daemon for Stint Project Assistant").version(AGENT_VERSION, "-v, --version", "output the current version").addHelpText(
|
|
4952
4952
|
"after",
|
package/package.json
CHANGED