@gethmy/agent 1.7.2 → 1.7.3
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/cli.js +18 -8
- package/dist/index.js +18 -8
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5389,7 +5389,12 @@ function prettyBanner(config, version) {
|
|
|
5389
5389
|
gitProvider = provider;
|
|
5390
5390
|
},
|
|
5391
5391
|
check(message) {
|
|
5392
|
-
checks.push(message);
|
|
5392
|
+
checks.push({ kind: "ok", message });
|
|
5393
|
+
},
|
|
5394
|
+
warn(message) {
|
|
5395
|
+
log.warn(TAG25, message);
|
|
5396
|
+
checks.push({ kind: "warn", message: message.split(`
|
|
5397
|
+
`, 1)[0] });
|
|
5393
5398
|
},
|
|
5394
5399
|
fail() {
|
|
5395
5400
|
failed = true;
|
|
@@ -5425,6 +5430,9 @@ function jsonBanner(config, version) {
|
|
|
5425
5430
|
check(message) {
|
|
5426
5431
|
log.info(TAG25, message);
|
|
5427
5432
|
},
|
|
5433
|
+
warn(message) {
|
|
5434
|
+
log.warn(TAG25, message);
|
|
5435
|
+
},
|
|
5428
5436
|
fail() {
|
|
5429
5437
|
failed = true;
|
|
5430
5438
|
},
|
|
@@ -5445,8 +5453,8 @@ function renderPretty(input) {
|
|
|
5445
5453
|
lines.push(` ${dim(row.label.padEnd(9))} ${row.value}`);
|
|
5446
5454
|
}
|
|
5447
5455
|
lines.push("");
|
|
5448
|
-
for (const
|
|
5449
|
-
lines.push(` ${cyan("✓")} ${
|
|
5456
|
+
for (const row of checks) {
|
|
5457
|
+
lines.push(row.kind === "warn" ? ` ${yellow("⚠")} ${row.message}` : ` ${cyan("✓")} ${row.message}`);
|
|
5450
5458
|
}
|
|
5451
5459
|
lines.push("");
|
|
5452
5460
|
lines.push(`${cyan("▶")} ${cyan("Ready")} — ${readyMessage}`);
|
|
@@ -5495,13 +5503,17 @@ function dim(s) {
|
|
|
5495
5503
|
function cyan(s) {
|
|
5496
5504
|
return `${ANSI.cyan}${s}${ANSI.reset}`;
|
|
5497
5505
|
}
|
|
5506
|
+
function yellow(s) {
|
|
5507
|
+
return `${ANSI.yellow}${s}${ANSI.reset}`;
|
|
5508
|
+
}
|
|
5498
5509
|
var TAG25 = "daemon", RULE_WIDTH = 70, ANSI;
|
|
5499
5510
|
var init_startup_banner = __esm(() => {
|
|
5500
5511
|
init_log();
|
|
5501
5512
|
ANSI = {
|
|
5502
5513
|
reset: "\x1B[0m",
|
|
5503
5514
|
dim: "\x1B[2m",
|
|
5504
|
-
cyan: "\x1B[36m"
|
|
5515
|
+
cyan: "\x1B[36m",
|
|
5516
|
+
yellow: "\x1B[33m"
|
|
5505
5517
|
};
|
|
5506
5518
|
});
|
|
5507
5519
|
|
|
@@ -5966,8 +5978,7 @@ async function validatePrerequisites(config, banner) {
|
|
|
5966
5978
|
encoding: "utf-8"
|
|
5967
5979
|
}).trim();
|
|
5968
5980
|
if (status) {
|
|
5969
|
-
banner.
|
|
5970
|
-
log.warn(TAG28, `Working directory has uncommitted changes:
|
|
5981
|
+
banner.warn(`Working directory has uncommitted changes:
|
|
5971
5982
|
${status}`);
|
|
5972
5983
|
}
|
|
5973
5984
|
execFileSync10("git", ["rev-parse", "--verify", `origin/${config.agent.worktree.baseBranch}`], {
|
|
@@ -6135,8 +6146,7 @@ async function main() {
|
|
|
6135
6146
|
try {
|
|
6136
6147
|
await httpServer.start();
|
|
6137
6148
|
} catch (err) {
|
|
6138
|
-
banner.
|
|
6139
|
-
log.warn(TAG28, `HTTP server failed to bind: ${err instanceof Error ? err.message : err}`);
|
|
6149
|
+
banner.warn(`HTTP server failed to bind: ${err instanceof Error ? err.message : err}`);
|
|
6140
6150
|
}
|
|
6141
6151
|
}
|
|
6142
6152
|
const reviewCount = config.agent.review.enabled ? config.agent.review.poolSize : 0;
|
package/dist/index.js
CHANGED
|
@@ -5388,7 +5388,12 @@ function prettyBanner(config, version) {
|
|
|
5388
5388
|
gitProvider = provider;
|
|
5389
5389
|
},
|
|
5390
5390
|
check(message) {
|
|
5391
|
-
checks.push(message);
|
|
5391
|
+
checks.push({ kind: "ok", message });
|
|
5392
|
+
},
|
|
5393
|
+
warn(message) {
|
|
5394
|
+
log.warn(TAG25, message);
|
|
5395
|
+
checks.push({ kind: "warn", message: message.split(`
|
|
5396
|
+
`, 1)[0] });
|
|
5392
5397
|
},
|
|
5393
5398
|
fail() {
|
|
5394
5399
|
failed = true;
|
|
@@ -5424,6 +5429,9 @@ function jsonBanner(config, version) {
|
|
|
5424
5429
|
check(message) {
|
|
5425
5430
|
log.info(TAG25, message);
|
|
5426
5431
|
},
|
|
5432
|
+
warn(message) {
|
|
5433
|
+
log.warn(TAG25, message);
|
|
5434
|
+
},
|
|
5427
5435
|
fail() {
|
|
5428
5436
|
failed = true;
|
|
5429
5437
|
},
|
|
@@ -5444,8 +5452,8 @@ function renderPretty(input) {
|
|
|
5444
5452
|
lines.push(` ${dim(row.label.padEnd(9))} ${row.value}`);
|
|
5445
5453
|
}
|
|
5446
5454
|
lines.push("");
|
|
5447
|
-
for (const
|
|
5448
|
-
lines.push(` ${cyan("✓")} ${
|
|
5455
|
+
for (const row of checks) {
|
|
5456
|
+
lines.push(row.kind === "warn" ? ` ${yellow("⚠")} ${row.message}` : ` ${cyan("✓")} ${row.message}`);
|
|
5449
5457
|
}
|
|
5450
5458
|
lines.push("");
|
|
5451
5459
|
lines.push(`${cyan("▶")} ${cyan("Ready")} — ${readyMessage}`);
|
|
@@ -5494,13 +5502,17 @@ function dim(s) {
|
|
|
5494
5502
|
function cyan(s) {
|
|
5495
5503
|
return `${ANSI.cyan}${s}${ANSI.reset}`;
|
|
5496
5504
|
}
|
|
5505
|
+
function yellow(s) {
|
|
5506
|
+
return `${ANSI.yellow}${s}${ANSI.reset}`;
|
|
5507
|
+
}
|
|
5497
5508
|
var TAG25 = "daemon", RULE_WIDTH = 70, ANSI;
|
|
5498
5509
|
var init_startup_banner = __esm(() => {
|
|
5499
5510
|
init_log();
|
|
5500
5511
|
ANSI = {
|
|
5501
5512
|
reset: "\x1B[0m",
|
|
5502
5513
|
dim: "\x1B[2m",
|
|
5503
|
-
cyan: "\x1B[36m"
|
|
5514
|
+
cyan: "\x1B[36m",
|
|
5515
|
+
yellow: "\x1B[33m"
|
|
5504
5516
|
};
|
|
5505
5517
|
});
|
|
5506
5518
|
|
|
@@ -5965,8 +5977,7 @@ async function validatePrerequisites(config, banner) {
|
|
|
5965
5977
|
encoding: "utf-8"
|
|
5966
5978
|
}).trim();
|
|
5967
5979
|
if (status) {
|
|
5968
|
-
banner.
|
|
5969
|
-
log.warn(TAG28, `Working directory has uncommitted changes:
|
|
5980
|
+
banner.warn(`Working directory has uncommitted changes:
|
|
5970
5981
|
${status}`);
|
|
5971
5982
|
}
|
|
5972
5983
|
execFileSync10("git", ["rev-parse", "--verify", `origin/${config.agent.worktree.baseBranch}`], {
|
|
@@ -6134,8 +6145,7 @@ async function main() {
|
|
|
6134
6145
|
try {
|
|
6135
6146
|
await httpServer.start();
|
|
6136
6147
|
} catch (err) {
|
|
6137
|
-
banner.
|
|
6138
|
-
log.warn(TAG28, `HTTP server failed to bind: ${err instanceof Error ? err.message : err}`);
|
|
6148
|
+
banner.warn(`HTTP server failed to bind: ${err instanceof Error ? err.message : err}`);
|
|
6139
6149
|
}
|
|
6140
6150
|
}
|
|
6141
6151
|
const reviewCount = config.agent.review.enabled ? config.agent.review.poolSize : 0;
|