@integrity-labs/agt-cli 0.28.76 → 0.28.78
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 +4 -4
- package/dist/{chunk-5TJ25V24.js → chunk-J4H4BRPQ.js} +3 -3
- package/dist/{chunk-4NTTCTDC.js → chunk-PEVDRQJA.js} +2 -2
- package/dist/{chunk-GHH23BAM.js → chunk-XHKMS4UY.js} +1 -1
- package/dist/{claude-pair-runtime-75J2Q6BN.js → claude-pair-runtime-IGVIKCHS.js} +2 -2
- package/dist/lib/manager-worker.js +16 -14
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-ZUGPA5HU.js → persistent-session-Z3RHQRVC.js} +3 -3
- package/dist/{responsiveness-probe-KDMBLW5W.js → responsiveness-probe-QWO75M34.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-5TJ25V24.js.map → chunk-J4H4BRPQ.js.map} +0 -0
- /package/dist/{chunk-4NTTCTDC.js.map → chunk-PEVDRQJA.js.map} +0 -0
- /package/dist/{chunk-GHH23BAM.js.map → chunk-XHKMS4UY.js.map} +0 -0
- /package/dist/{claude-pair-runtime-75J2Q6BN.js.map → claude-pair-runtime-IGVIKCHS.js.map} +0 -0
- /package/dist/{persistent-session-ZUGPA5HU.js.map → persistent-session-Z3RHQRVC.js.map} +0 -0
- /package/dist/{responsiveness-probe-KDMBLW5W.js.map → responsiveness-probe-QWO75M34.js.map} +0 -0
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-J4H4BRPQ.js";
|
|
41
41
|
import {
|
|
42
42
|
CHANNEL_REGISTRY,
|
|
43
43
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
renderTemplate,
|
|
65
65
|
resolveChannels,
|
|
66
66
|
serializeManifestForSlackCli
|
|
67
|
-
} from "../chunk-
|
|
67
|
+
} from "../chunk-XHKMS4UY.js";
|
|
68
68
|
|
|
69
69
|
// src/bin/agt.ts
|
|
70
70
|
import { join as join22 } from "path";
|
|
@@ -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.78" : "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.78" : "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) => {
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveConnectivityProbe,
|
|
23
23
|
worseConnectivityOutcome,
|
|
24
24
|
wrapScheduledTaskPrompt
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XHKMS4UY.js";
|
|
26
26
|
|
|
27
27
|
// ../../packages/core/dist/integrations/registry.js
|
|
28
28
|
var INTEGRATION_REGISTRY = [
|
|
@@ -7397,7 +7397,7 @@ function requireHost() {
|
|
|
7397
7397
|
}
|
|
7398
7398
|
|
|
7399
7399
|
// src/lib/api-client.ts
|
|
7400
|
-
var agtCliVersion = true ? "0.28.
|
|
7400
|
+
var agtCliVersion = true ? "0.28.78" : "dev";
|
|
7401
7401
|
var lastConfigHash = null;
|
|
7402
7402
|
function setConfigHash(hash) {
|
|
7403
7403
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8693,4 +8693,4 @@ export {
|
|
|
8693
8693
|
managerInstallSystemUnitCommand,
|
|
8694
8694
|
managerUninstallSystemUnitCommand
|
|
8695
8695
|
};
|
|
8696
|
-
//# sourceMappingURL=chunk-
|
|
8696
|
+
//# sourceMappingURL=chunk-J4H4BRPQ.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatMissingVar,
|
|
4
4
|
isClaudeFastMode,
|
|
5
5
|
probeMcpEnvSubstitution
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XHKMS4UY.js";
|
|
7
7
|
import {
|
|
8
8
|
reapOrphanChannelMcps
|
|
9
9
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -1395,4 +1395,4 @@ export {
|
|
|
1395
1395
|
stopAllSessionsAndWait,
|
|
1396
1396
|
getProjectDir
|
|
1397
1397
|
};
|
|
1398
|
-
//# sourceMappingURL=chunk-
|
|
1398
|
+
//# sourceMappingURL=chunk-PEVDRQJA.js.map
|
|
@@ -100,7 +100,7 @@ async function spawnPairSession(session) {
|
|
|
100
100
|
return { ok: true };
|
|
101
101
|
} catch {
|
|
102
102
|
}
|
|
103
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
103
|
+
const { resolveClaudeBinary } = await import("./persistent-session-Z3RHQRVC.js");
|
|
104
104
|
const claudeBin = resolveClaudeBinary();
|
|
105
105
|
const pairEnv = {
|
|
106
106
|
...process.env,
|
|
@@ -373,4 +373,4 @@ export {
|
|
|
373
373
|
startClaudePair,
|
|
374
374
|
submitClaudePairCode
|
|
375
375
|
};
|
|
376
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
376
|
+
//# sourceMappingURL=claude-pair-runtime-IGVIKCHS.js.map
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
requireHost,
|
|
28
28
|
safeWriteJsonAtomic,
|
|
29
29
|
setConfigHash
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-J4H4BRPQ.js";
|
|
31
31
|
import {
|
|
32
32
|
getProjectDir as getProjectDir2,
|
|
33
33
|
getReadyTasks,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
takeWatchdogGiveUpCount,
|
|
66
66
|
takeZombieDetection,
|
|
67
67
|
transcriptActivityAgeSeconds
|
|
68
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-PEVDRQJA.js";
|
|
69
69
|
import {
|
|
70
70
|
FLAGS_SCHEMA_VERSION,
|
|
71
71
|
FLAG_REGISTRY,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
resolveDmTarget,
|
|
100
100
|
sumTranscriptUsageInWindow,
|
|
101
101
|
wrapScheduledTaskPrompt
|
|
102
|
-
} from "../chunk-
|
|
102
|
+
} from "../chunk-XHKMS4UY.js";
|
|
103
103
|
import {
|
|
104
104
|
parsePsRows,
|
|
105
105
|
reapOrphanChannelMcps
|
|
@@ -864,8 +864,10 @@ var AREA_DIRECTIVE = {
|
|
|
864
864
|
integrations: "Wire up your tools \u2014 ask your manager which integrations your role uses and request access to the ones they confirm (connecting is a human OAuth step)",
|
|
865
865
|
reporting: "Agree how you keep your manager posted \u2014 settle on a cadence and channel, then create a recurring report scheduled task for it"
|
|
866
866
|
};
|
|
867
|
-
function buildOnboardingDirective(step) {
|
|
868
|
-
|
|
867
|
+
function buildOnboardingDirective(step, completed = []) {
|
|
868
|
+
const doneAreas = completed.filter(isOnboardingArea);
|
|
869
|
+
const alreadyCovered = doneAreas.length > 0 ? `You've already covered ${doneAreas.join(", ")} \u2014 re-orient, don't re-ask about those. ` : "";
|
|
870
|
+
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.`;
|
|
869
871
|
}
|
|
870
872
|
function readOnboardingDriveMarker(path) {
|
|
871
873
|
try {
|
|
@@ -1587,7 +1589,6 @@ var GATEABLE_RESTART_REASONS = /* @__PURE__ */ new Set([
|
|
|
1587
1589
|
"channel-set-change",
|
|
1588
1590
|
"sender-policy-change",
|
|
1589
1591
|
"channel-behaviour-change",
|
|
1590
|
-
"hot-reload-mcp",
|
|
1591
1592
|
"mcp-presence-reaper"
|
|
1592
1593
|
]);
|
|
1593
1594
|
function isGateableRestartReason(reason) {
|
|
@@ -6798,7 +6799,7 @@ var cachedMaintenanceWindow = null;
|
|
|
6798
6799
|
var lastVersionCheckAt = 0;
|
|
6799
6800
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
6800
6801
|
var lastResponsivenessProbeAt = 0;
|
|
6801
|
-
var agtCliVersion = true ? "0.28.
|
|
6802
|
+
var agtCliVersion = true ? "0.28.78" : "dev";
|
|
6802
6803
|
function resolveBrewPath(execFileSync4) {
|
|
6803
6804
|
try {
|
|
6804
6805
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -7906,7 +7907,7 @@ async function pollCycle() {
|
|
|
7906
7907
|
}
|
|
7907
7908
|
try {
|
|
7908
7909
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
7909
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
7910
|
+
const { collectDiagnostics } = await import("../persistent-session-Z3RHQRVC.js");
|
|
7910
7911
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
7911
7912
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
|
|
7912
7913
|
let tailscaleHostname;
|
|
@@ -8007,7 +8008,7 @@ async function pollCycle() {
|
|
|
8007
8008
|
const {
|
|
8008
8009
|
collectResponsivenessProbes,
|
|
8009
8010
|
getResponsivenessIntervalMs
|
|
8010
|
-
} = await import("../responsiveness-probe-
|
|
8011
|
+
} = await import("../responsiveness-probe-QWO75M34.js");
|
|
8011
8012
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
8012
8013
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
8013
8014
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -8039,7 +8040,7 @@ async function pollCycle() {
|
|
|
8039
8040
|
collectResponsivenessProbes,
|
|
8040
8041
|
livePendingInboundOldestAgeSeconds,
|
|
8041
8042
|
parkPendingInbound
|
|
8042
|
-
} = await import("../responsiveness-probe-
|
|
8043
|
+
} = await import("../responsiveness-probe-QWO75M34.js");
|
|
8043
8044
|
const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
|
|
8044
8045
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
8045
8046
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -10294,9 +10295,10 @@ In progress for ${age} minutes \u2014 auto-failed`).catch(() => {
|
|
|
10294
10295
|
const obFramework = agentFrameworkCache.get(agent.code_name) ?? "openclaw";
|
|
10295
10296
|
const obSessionMode = refreshData.agent.session_mode;
|
|
10296
10297
|
if (obFramework === "claude-code" && obSessionMode === "persistent") {
|
|
10297
|
-
const
|
|
10298
|
+
const obState = coerceOnboardingState(
|
|
10298
10299
|
refreshData.agent.onboarding_state
|
|
10299
|
-
)
|
|
10300
|
+
);
|
|
10301
|
+
const obStep = obState.step;
|
|
10300
10302
|
const markerPath = join16(homedir9(), ".augmented", agent.code_name, "onboarding-drive.json");
|
|
10301
10303
|
const marker = readOnboardingDriveMarker(markerPath);
|
|
10302
10304
|
const decision = decideOnboardingDrive(obStep, marker, Date.now());
|
|
@@ -10306,7 +10308,7 @@ In progress for ${age} minutes \u2014 auto-failed`).catch(() => {
|
|
|
10306
10308
|
const delivered = await injectMessage(
|
|
10307
10309
|
agent.code_name,
|
|
10308
10310
|
"system",
|
|
10309
|
-
buildOnboardingDirective(obStep),
|
|
10311
|
+
buildOnboardingDirective(obStep, obState.completed),
|
|
10310
10312
|
{ task_name: "onboarding" },
|
|
10311
10313
|
log
|
|
10312
10314
|
).catch(() => false);
|
|
@@ -11502,7 +11504,7 @@ async function processClaudePairSessions(agents) {
|
|
|
11502
11504
|
killPairSession,
|
|
11503
11505
|
pairTmuxSession,
|
|
11504
11506
|
finalizeClaudePairOnboarding
|
|
11505
|
-
} = await import("../claude-pair-runtime-
|
|
11507
|
+
} = await import("../claude-pair-runtime-IGVIKCHS.js");
|
|
11506
11508
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
11507
11509
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
11508
11510
|
const killed = await killPairSession(pairTmuxSession(pairId));
|