@integrity-labs/agt-cli 0.28.79 → 0.28.80
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/bin/agt.js
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
success,
|
|
38
38
|
table,
|
|
39
39
|
warn
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-JIJ5BGO5.js";
|
|
41
41
|
import {
|
|
42
42
|
CHANNEL_REGISTRY,
|
|
43
43
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -4777,7 +4777,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4777
4777
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4778
4778
|
import chalk18 from "chalk";
|
|
4779
4779
|
import ora16 from "ora";
|
|
4780
|
-
var cliVersion = true ? "0.28.
|
|
4780
|
+
var cliVersion = true ? "0.28.80" : "dev";
|
|
4781
4781
|
async function fetchLatestVersion() {
|
|
4782
4782
|
const host2 = getHost();
|
|
4783
4783
|
if (!host2) return null;
|
|
@@ -5791,7 +5791,7 @@ function handleError(err) {
|
|
|
5791
5791
|
}
|
|
5792
5792
|
|
|
5793
5793
|
// src/bin/agt.ts
|
|
5794
|
-
var cliVersion2 = true ? "0.28.
|
|
5794
|
+
var cliVersion2 = true ? "0.28.80" : "dev";
|
|
5795
5795
|
var program = new Command();
|
|
5796
5796
|
program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
|
|
5797
5797
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -7516,7 +7516,7 @@ function requireHost() {
|
|
|
7516
7516
|
}
|
|
7517
7517
|
|
|
7518
7518
|
// src/lib/api-client.ts
|
|
7519
|
-
var agtCliVersion = true ? "0.28.
|
|
7519
|
+
var agtCliVersion = true ? "0.28.80" : "dev";
|
|
7520
7520
|
var lastConfigHash = null;
|
|
7521
7521
|
function setConfigHash(hash) {
|
|
7522
7522
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8813,4 +8813,4 @@ export {
|
|
|
8813
8813
|
managerInstallSystemUnitCommand,
|
|
8814
8814
|
managerUninstallSystemUnitCommand
|
|
8815
8815
|
};
|
|
8816
|
-
//# sourceMappingURL=chunk-
|
|
8816
|
+
//# sourceMappingURL=chunk-JIJ5BGO5.js.map
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
requireHost,
|
|
29
29
|
safeWriteJsonAtomic,
|
|
30
30
|
setConfigHash
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-JIJ5BGO5.js";
|
|
32
32
|
import {
|
|
33
33
|
getProjectDir as getProjectDir2,
|
|
34
34
|
getReadyTasks,
|
|
@@ -870,6 +870,9 @@ function buildOnboardingDirective(step, completed = []) {
|
|
|
870
870
|
const alreadyCovered = doneAreas.length > 0 ? `You've already covered ${doneAreas.join(", ")} \u2014 re-orient, don't re-ask about those. ` : "";
|
|
871
871
|
return `\u{1F680} Onboarding (${step}): your self-onboarding is active and waiting on you. ` + alreadyCovered + `Call the \`onboarding_get\` tool now to see this area's questions and full instructions, then proceed. ${AREA_DIRECTIVE[step]}. Advance with \`onboarding_advance\` (ADVANCE) once this area is done.`;
|
|
872
872
|
}
|
|
873
|
+
function onboardingNudgeReachedSession(result) {
|
|
874
|
+
return result.delivered || result.fallbackUsed;
|
|
875
|
+
}
|
|
873
876
|
function readOnboardingDriveMarker(path) {
|
|
874
877
|
try {
|
|
875
878
|
const raw = JSON.parse(readFileSync2(path, "utf8"));
|
|
@@ -6800,7 +6803,7 @@ var cachedMaintenanceWindow = null;
|
|
|
6800
6803
|
var lastVersionCheckAt = 0;
|
|
6801
6804
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
6802
6805
|
var lastResponsivenessProbeAt = 0;
|
|
6803
|
-
var agtCliVersion = true ? "0.28.
|
|
6806
|
+
var agtCliVersion = true ? "0.28.80" : "dev";
|
|
6804
6807
|
function resolveBrewPath(execFileSync4) {
|
|
6805
6808
|
try {
|
|
6806
6809
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -10306,14 +10309,14 @@ In progress for ${age} minutes \u2014 auto-failed`).catch(() => {
|
|
|
10306
10309
|
if (decision.clearMarker) {
|
|
10307
10310
|
clearOnboardingDriveMarker(markerPath);
|
|
10308
10311
|
} else if (decision.inject && isOnboardingArea(obStep) && isSessionHealthy(agent.code_name)) {
|
|
10309
|
-
const
|
|
10312
|
+
const injectResult = await injectMessageWithStatus(
|
|
10310
10313
|
agent.code_name,
|
|
10311
10314
|
"system",
|
|
10312
10315
|
buildOnboardingDirective(obStep, obState.completed),
|
|
10313
10316
|
{ task_name: "onboarding" },
|
|
10314
10317
|
log
|
|
10315
|
-
).catch(() => false);
|
|
10316
|
-
if (
|
|
10318
|
+
).catch(() => ({ delivered: false, fallbackUsed: false }));
|
|
10319
|
+
if (onboardingNudgeReachedSession(injectResult) && decision.nextMarker) {
|
|
10317
10320
|
writeOnboardingDriveMarker(markerPath, decision.nextMarker);
|
|
10318
10321
|
log(`[onboarding] nudged '${agent.code_name}' into '${obStep}'`);
|
|
10319
10322
|
}
|