@gowelle/stint-agent 1.2.1 → 1.2.2
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-JDQEB2R3.js → StatusDashboard-NTJAONDR.js} +2 -2
- package/dist/api-XYDQ3I2Y.js +7 -0
- package/dist/{chunk-ZYRZMZOJ.js → chunk-2QJPWC56.js} +1 -1
- package/dist/{chunk-PO5C2JHF.js → chunk-FY5S22C3.js} +1 -1
- package/dist/{chunk-CAD4Z7MG.js → chunk-GG6LVSVC.js} +2 -2
- package/dist/{chunk-EQHNRO33.js → chunk-XLTOQPAD.js} +3 -3
- package/dist/daemon/runner.js +4 -4
- package/dist/index.js +8 -8
- package/package.json +1 -1
- package/dist/api-VMAP5HW2.js +0 -7
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
gitService,
|
|
3
3
|
projectService,
|
|
4
4
|
validatePidFile
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FY5S22C3.js";
|
|
6
6
|
import {
|
|
7
7
|
authService
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2QJPWC56.js";
|
|
9
9
|
|
|
10
10
|
// src/components/StatusDashboard.tsx
|
|
11
11
|
import { useState, useEffect } from "react";
|
|
@@ -271,7 +271,7 @@ var AuthServiceImpl = class {
|
|
|
271
271
|
return null;
|
|
272
272
|
}
|
|
273
273
|
try {
|
|
274
|
-
const { apiService } = await import("./api-
|
|
274
|
+
const { apiService } = await import("./api-XYDQ3I2Y.js");
|
|
275
275
|
const user = await apiService.getCurrentUser();
|
|
276
276
|
logger.info("auth", `Token validated for user: ${user.email}`);
|
|
277
277
|
return user;
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
authService,
|
|
3
3
|
config,
|
|
4
4
|
logger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2QJPWC56.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.
|
|
101
|
+
var AGENT_VERSION = "1.2.2";
|
|
102
102
|
var ApiServiceImpl = class {
|
|
103
103
|
sessionId = null;
|
|
104
104
|
circuitBreaker = new CircuitBreaker({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
apiService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GG6LVSVC.js";
|
|
4
4
|
import {
|
|
5
5
|
gitService,
|
|
6
6
|
projectService
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FY5S22C3.js";
|
|
8
8
|
import {
|
|
9
9
|
authService,
|
|
10
10
|
config,
|
|
11
11
|
logger
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2QJPWC56.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/notify.ts
|
|
15
15
|
import notifier from "node-notifier";
|
package/dist/daemon/runner.js
CHANGED
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
commitQueue,
|
|
4
4
|
notify,
|
|
5
5
|
websocketService
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-XLTOQPAD.js";
|
|
7
7
|
import {
|
|
8
8
|
apiService
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-GG6LVSVC.js";
|
|
10
10
|
import {
|
|
11
11
|
gitService,
|
|
12
12
|
projectService,
|
|
13
13
|
removePidFile,
|
|
14
14
|
writePidFile
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-FY5S22C3.js";
|
|
16
16
|
import {
|
|
17
17
|
authService,
|
|
18
18
|
logger
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-2QJPWC56.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-
|
|
5
|
+
} from "./chunk-XLTOQPAD.js";
|
|
6
6
|
import {
|
|
7
7
|
apiService
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GG6LVSVC.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-
|
|
17
|
+
} from "./chunk-FY5S22C3.js";
|
|
18
18
|
import {
|
|
19
19
|
authService,
|
|
20
20
|
config,
|
|
21
21
|
logger
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2QJPWC56.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-
|
|
623
|
+
const { StatusDashboard } = await import("./StatusDashboard-NTJAONDR.js");
|
|
624
624
|
render(createElement(StatusDashboard, { cwd }));
|
|
625
625
|
return;
|
|
626
626
|
} catch (error) {
|
|
@@ -1651,12 +1651,12 @@ async function getLatestVersionForChannel(channel) {
|
|
|
1651
1651
|
return channelVersions[0];
|
|
1652
1652
|
}
|
|
1653
1653
|
function registerUpdateCommand(program2) {
|
|
1654
|
-
program2.command("update").description("Update stint agent to the latest version").option("-c, --channel <channel>", "Release channel (stable, beta, nightly)").action(async (
|
|
1654
|
+
program2.command("update").description("Update stint agent to the latest version").option("-c, --channel <channel>", "Release channel (stable, beta, nightly)").action(async (options) => {
|
|
1655
1655
|
const spinner = ora11("Checking for updates...").start();
|
|
1656
1656
|
try {
|
|
1657
1657
|
const currentVersion = program2.version();
|
|
1658
1658
|
const config2 = getChannelConfig();
|
|
1659
|
-
const channel = (
|
|
1659
|
+
const channel = (options.channel || config2.defaultChannel).toLowerCase();
|
|
1660
1660
|
if (!config2.channels[channel]) {
|
|
1661
1661
|
spinner.fail(`Invalid channel: ${channel}`);
|
|
1662
1662
|
console.log(chalk11.gray("\nAvailable channels:"));
|
|
@@ -1890,7 +1890,7 @@ function registerDoctorCommand(program2) {
|
|
|
1890
1890
|
}
|
|
1891
1891
|
|
|
1892
1892
|
// src/index.ts
|
|
1893
|
-
var AGENT_VERSION = "1.2.
|
|
1893
|
+
var AGENT_VERSION = "1.2.2";
|
|
1894
1894
|
var program = new Command();
|
|
1895
1895
|
program.name("stint").description("Stint Agent - Local daemon for Stint Project Assistant").version(AGENT_VERSION, "-v, --version", "output the current version").addHelpText("after", `
|
|
1896
1896
|
${chalk13.bold("Examples:")}
|
package/package.json
CHANGED