@integrity-labs/agt-cli 0.28.97 → 0.28.98
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-5ZYUJDOX.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.98" : "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.98" : "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) => {
|
|
@@ -7541,7 +7541,7 @@ function requireHost() {
|
|
|
7541
7541
|
}
|
|
7542
7542
|
|
|
7543
7543
|
// src/lib/api-client.ts
|
|
7544
|
-
var agtCliVersion = true ? "0.28.
|
|
7544
|
+
var agtCliVersion = true ? "0.28.98" : "dev";
|
|
7545
7545
|
var lastConfigHash = null;
|
|
7546
7546
|
function setConfigHash(hash) {
|
|
7547
7547
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8838,4 +8838,4 @@ export {
|
|
|
8838
8838
|
managerInstallSystemUnitCommand,
|
|
8839
8839
|
managerUninstallSystemUnitCommand
|
|
8840
8840
|
};
|
|
8841
|
-
//# sourceMappingURL=chunk-
|
|
8841
|
+
//# sourceMappingURL=chunk-5ZYUJDOX.js.map
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
requireHost,
|
|
29
29
|
safeWriteJsonAtomic,
|
|
30
30
|
setConfigHash
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-5ZYUJDOX.js";
|
|
32
32
|
import {
|
|
33
33
|
getProjectDir as getProjectDir2,
|
|
34
34
|
getReadyTasks,
|
|
@@ -866,16 +866,18 @@ function decideOnboardingDrive(step, marker, nowMs, generation = 0, reinjectInte
|
|
|
866
866
|
clearMarker: false,
|
|
867
867
|
nextMarker: { step, injectedAtMs: nowMs, nudgeCount: 1, gaveUp: false, generation },
|
|
868
868
|
reminder: false,
|
|
869
|
-
standDown: false
|
|
869
|
+
standDown: false,
|
|
870
|
+
// The operator just re-ran /onboard: tell the agent to ask afresh now.
|
|
871
|
+
freshRestart: true
|
|
870
872
|
};
|
|
871
873
|
}
|
|
872
874
|
if (current?.gaveUp) {
|
|
873
|
-
return { inject: false, clearMarker: false, nextMarker: current, reminder: false, standDown: false };
|
|
875
|
+
return { inject: false, clearMarker: false, nextMarker: current, reminder: false, standDown: false, freshRestart: false };
|
|
874
876
|
}
|
|
875
877
|
const fresh = current === null;
|
|
876
878
|
const stale = current !== null && nowMs - current.injectedAtMs >= reinjectIntervalMs;
|
|
877
879
|
if (!fresh && !stale) {
|
|
878
|
-
return { inject: false, clearMarker: false, nextMarker: current, reminder: false, standDown: false };
|
|
880
|
+
return { inject: false, clearMarker: false, nextMarker: current, reminder: false, standDown: false, freshRestart: false };
|
|
879
881
|
}
|
|
880
882
|
const nudgeCount = fresh ? 1 : current.nudgeCount + 1;
|
|
881
883
|
const isFinal = nudgeCount >= maxNudges;
|
|
@@ -886,10 +888,11 @@ function decideOnboardingDrive(step, marker, nowMs, generation = 0, reinjectInte
|
|
|
886
888
|
// A middle re-fire (not fresh, not final) is a gentle "still waiting"
|
|
887
889
|
// reminder; the final one is a stand-down, not a reminder.
|
|
888
890
|
reminder: !fresh && !isFinal,
|
|
889
|
-
standDown: isFinal
|
|
891
|
+
standDown: isFinal,
|
|
892
|
+
freshRestart: false
|
|
890
893
|
};
|
|
891
894
|
}
|
|
892
|
-
return { inject: false, clearMarker: marker !== null, nextMarker: null, reminder: false, standDown: false };
|
|
895
|
+
return { inject: false, clearMarker: marker !== null, nextMarker: null, reminder: false, standDown: false, freshRestart: false };
|
|
893
896
|
}
|
|
894
897
|
var AREA_DIRECTIVE = {
|
|
895
898
|
framing: "Frame the work \u2014 ask your manager what matters in week one and what success looks like, then record it with memory_save",
|
|
@@ -898,11 +901,13 @@ var AREA_DIRECTIVE = {
|
|
|
898
901
|
reporting: "Agree how you keep your manager posted \u2014 settle on a cadence and channel, then create a recurring report scheduled task for it"
|
|
899
902
|
};
|
|
900
903
|
function buildOnboardingDirective(step, completed = [], opts = {}) {
|
|
901
|
-
const { channel, reminder = false, standDown = false, code } = opts;
|
|
904
|
+
const { channel, reminder = false, standDown = false, freshRestart = false, code } = opts;
|
|
902
905
|
const doneAreas = completed.filter(isOnboardingArea);
|
|
903
906
|
const alreadyCovered = doneAreas.length > 0 ? `You've already covered ${doneAreas.join(", ")} \u2014 re-orient, don't re-ask about those. ` : "";
|
|
904
907
|
const where = channel ? `your manager in ${describeOnboardingChannel(channel)} (the channel onboarding was triggered from)` : "your manager over your usual channel";
|
|
905
|
-
const
|
|
908
|
+
const waitClause = `WAIT for their reply. Do NOT self-answer, and do NOT call \`onboarding_advance\` until they respond. ${AREA_DIRECTIVE[step]} only once they have. `;
|
|
909
|
+
const askAndWait = `Ask ${where} this area's question and ${waitClause}`;
|
|
910
|
+
const mustAskNow = `Post this area's question to ${where} as a NEW message in THIS turn. Even if you think you asked in an earlier round, do NOT "stand down" to wait unless you have just asked it now; a previous round's ask does not count. Once it is out, ${waitClause}`;
|
|
906
911
|
if (standDown) {
|
|
907
912
|
const resumeCmd = code ? `/onboard-${code}` : "/onboard";
|
|
908
913
|
return `\u{1F6D1} Onboarding (${step}): your manager hasn't replied after a few nudges, so stand down on this for now. Post exactly this once to ${where}, then STOP nudging this area and do NOT call \`onboarding_advance\`: "Let me know if you'd like me to stop nudging you on this. You can resume onboarding at any time using ${resumeCmd}." After posting, leave onboarding parked; your manager can resume it whenever they're ready.`;
|
|
@@ -910,7 +915,10 @@ function buildOnboardingDirective(step, completed = [], opts = {}) {
|
|
|
910
915
|
if (reminder) {
|
|
911
916
|
return `\u23F3 Onboarding (${step}): still waiting on your manager's answer for this area. If you haven't asked yet, ask now; otherwise give them a gentle nudge, but don't move on without a reply. ` + askAndWait + `Advance with \`onboarding_advance\` (ADVANCE) once this area is done.`;
|
|
912
917
|
}
|
|
913
|
-
|
|
918
|
+
if (freshRestart) {
|
|
919
|
+
return `\u{1F504} Onboarding (${step}): your manager just re-ran \`/onboard\`, so onboarding has RESTARTED at this area. Call the \`onboarding_get\` tool now to re-read this area, then ${mustAskNow}Advance with \`onboarding_advance\` (ADVANCE) once this area is done.`;
|
|
920
|
+
}
|
|
921
|
+
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 ${mustAskNow}Advance with \`onboarding_advance\` (ADVANCE) once this area is done.`;
|
|
914
922
|
}
|
|
915
923
|
function onboardingNudgeReachedSession(result) {
|
|
916
924
|
return result.delivered || result.fallbackUsed;
|
|
@@ -6953,7 +6961,7 @@ var cachedMaintenanceWindow = null;
|
|
|
6953
6961
|
var lastVersionCheckAt = 0;
|
|
6954
6962
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
6955
6963
|
var lastResponsivenessProbeAt = 0;
|
|
6956
|
-
var agtCliVersion = true ? "0.28.
|
|
6964
|
+
var agtCliVersion = true ? "0.28.98" : "dev";
|
|
6957
6965
|
function resolveBrewPath(execFileSync4) {
|
|
6958
6966
|
try {
|
|
6959
6967
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -10475,11 +10483,14 @@ In progress for ${age} minutes \u2014 auto-failed`).catch(() => {
|
|
|
10475
10483
|
// ENG-6583: anchor the ask to the channel onboarding was triggered
|
|
10476
10484
|
// from, and phrase a staleness re-fire as a gentle reminder. ENG-6626:
|
|
10477
10485
|
// the final bounded nudge flips to the stand-down message, which names
|
|
10478
|
-
// the agent's /onboard-<code> resume command.
|
|
10486
|
+
// the agent's /onboard-<code> resume command. ENG-6636: a /onboard
|
|
10487
|
+
// restart (generation change) forces the "post the question afresh
|
|
10488
|
+
// this turn, don't stand down" variant.
|
|
10479
10489
|
buildOnboardingDirective(obStep, obState.completed, {
|
|
10480
10490
|
channel: obState.channel,
|
|
10481
10491
|
reminder: decision.reminder,
|
|
10482
10492
|
standDown: decision.standDown,
|
|
10493
|
+
freshRestart: decision.freshRestart,
|
|
10483
10494
|
code: agent.code_name
|
|
10484
10495
|
}),
|
|
10485
10496
|
{ task_name: "onboarding" },
|