@integrity-labs/agt-cli 0.28.76 → 0.28.77
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-EHSKP4FA.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 -13
- 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-EHSKP4FA.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-EHSKP4FA.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.77" : "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.77" : "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.77" : "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-EHSKP4FA.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-EHSKP4FA.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 {
|
|
@@ -6798,7 +6800,7 @@ var cachedMaintenanceWindow = null;
|
|
|
6798
6800
|
var lastVersionCheckAt = 0;
|
|
6799
6801
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
6800
6802
|
var lastResponsivenessProbeAt = 0;
|
|
6801
|
-
var agtCliVersion = true ? "0.28.
|
|
6803
|
+
var agtCliVersion = true ? "0.28.77" : "dev";
|
|
6802
6804
|
function resolveBrewPath(execFileSync4) {
|
|
6803
6805
|
try {
|
|
6804
6806
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -7906,7 +7908,7 @@ async function pollCycle() {
|
|
|
7906
7908
|
}
|
|
7907
7909
|
try {
|
|
7908
7910
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
7909
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
7911
|
+
const { collectDiagnostics } = await import("../persistent-session-Z3RHQRVC.js");
|
|
7910
7912
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
7911
7913
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
|
|
7912
7914
|
let tailscaleHostname;
|
|
@@ -8007,7 +8009,7 @@ async function pollCycle() {
|
|
|
8007
8009
|
const {
|
|
8008
8010
|
collectResponsivenessProbes,
|
|
8009
8011
|
getResponsivenessIntervalMs
|
|
8010
|
-
} = await import("../responsiveness-probe-
|
|
8012
|
+
} = await import("../responsiveness-probe-QWO75M34.js");
|
|
8011
8013
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
8012
8014
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
8013
8015
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -8039,7 +8041,7 @@ async function pollCycle() {
|
|
|
8039
8041
|
collectResponsivenessProbes,
|
|
8040
8042
|
livePendingInboundOldestAgeSeconds,
|
|
8041
8043
|
parkPendingInbound
|
|
8042
|
-
} = await import("../responsiveness-probe-
|
|
8044
|
+
} = await import("../responsiveness-probe-QWO75M34.js");
|
|
8043
8045
|
const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
|
|
8044
8046
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
8045
8047
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -10294,9 +10296,10 @@ In progress for ${age} minutes \u2014 auto-failed`).catch(() => {
|
|
|
10294
10296
|
const obFramework = agentFrameworkCache.get(agent.code_name) ?? "openclaw";
|
|
10295
10297
|
const obSessionMode = refreshData.agent.session_mode;
|
|
10296
10298
|
if (obFramework === "claude-code" && obSessionMode === "persistent") {
|
|
10297
|
-
const
|
|
10299
|
+
const obState = coerceOnboardingState(
|
|
10298
10300
|
refreshData.agent.onboarding_state
|
|
10299
|
-
)
|
|
10301
|
+
);
|
|
10302
|
+
const obStep = obState.step;
|
|
10300
10303
|
const markerPath = join16(homedir9(), ".augmented", agent.code_name, "onboarding-drive.json");
|
|
10301
10304
|
const marker = readOnboardingDriveMarker(markerPath);
|
|
10302
10305
|
const decision = decideOnboardingDrive(obStep, marker, Date.now());
|
|
@@ -10306,7 +10309,7 @@ In progress for ${age} minutes \u2014 auto-failed`).catch(() => {
|
|
|
10306
10309
|
const delivered = await injectMessage(
|
|
10307
10310
|
agent.code_name,
|
|
10308
10311
|
"system",
|
|
10309
|
-
buildOnboardingDirective(obStep),
|
|
10312
|
+
buildOnboardingDirective(obStep, obState.completed),
|
|
10310
10313
|
{ task_name: "onboarding" },
|
|
10311
10314
|
log
|
|
10312
10315
|
).catch(() => false);
|
|
@@ -11502,7 +11505,7 @@ async function processClaudePairSessions(agents) {
|
|
|
11502
11505
|
killPairSession,
|
|
11503
11506
|
pairTmuxSession,
|
|
11504
11507
|
finalizeClaudePairOnboarding
|
|
11505
|
-
} = await import("../claude-pair-runtime-
|
|
11508
|
+
} = await import("../claude-pair-runtime-IGVIKCHS.js");
|
|
11506
11509
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
11507
11510
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
11508
11511
|
const killed = await killPairSession(pairTmuxSession(pairId));
|