@integrity-labs/agt-cli 0.28.1320 → 0.28.1321
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/{api-client-ZCSKN3SJ.js → api-client-ALOZB62N.js} +2 -2
- package/dist/bin/agt.js +4 -4
- package/dist/{chunk-ZDO57BCK.js → chunk-7KHPD3XH.js} +2 -2
- package/dist/{chunk-ZA34ZZCC.js → chunk-XK3GPDIC.js} +2 -2
- package/dist/lib/manager-worker.js +23 -13
- package/dist/lib/manager-worker.js.map +1 -1
- package/package.json +1 -1
- /package/dist/{api-client-ZCSKN3SJ.js.map → api-client-ALOZB62N.js.map} +0 -0
- /package/dist/{chunk-ZDO57BCK.js.map → chunk-7KHPD3XH.js.map} +0 -0
- /package/dist/{chunk-ZA34ZZCC.js.map → chunk-XK3GPDIC.js.map} +0 -0
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
mintRotatedHostKey,
|
|
16
16
|
probeHostKey,
|
|
17
17
|
setConfigHash
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XK3GPDIC.js";
|
|
19
19
|
import "./chunk-HGLJ2T4J.js";
|
|
20
20
|
import "./chunk-DGUM43GV.js";
|
|
21
21
|
export {
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
probeHostKey,
|
|
37
37
|
setConfigHash
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=api-client-
|
|
39
|
+
//# sourceMappingURL=api-client-ALOZB62N.js.map
|
package/dist/bin/agt.js
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
success,
|
|
32
32
|
table,
|
|
33
33
|
warn
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-7KHPD3XH.js";
|
|
35
35
|
import {
|
|
36
36
|
ApiError,
|
|
37
37
|
PROD_AGT_HOST,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
getHost,
|
|
43
43
|
getHostId,
|
|
44
44
|
setActiveTeam
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-XK3GPDIC.js";
|
|
46
46
|
import {
|
|
47
47
|
getProjectDir,
|
|
48
48
|
isSessionResumeDisabled,
|
|
@@ -5207,7 +5207,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5207
5207
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5208
5208
|
import chalk17 from "chalk";
|
|
5209
5209
|
import ora15 from "ora";
|
|
5210
|
-
var cliVersion = true ? "0.28.
|
|
5210
|
+
var cliVersion = true ? "0.28.1321" : "dev";
|
|
5211
5211
|
async function fetchLatestVersion() {
|
|
5212
5212
|
const host2 = getHost();
|
|
5213
5213
|
if (!host2) return null;
|
|
@@ -6467,7 +6467,7 @@ function handleError(err) {
|
|
|
6467
6467
|
}
|
|
6468
6468
|
|
|
6469
6469
|
// src/bin/agt.ts
|
|
6470
|
-
var cliVersion2 = true ? "0.28.
|
|
6470
|
+
var cliVersion2 = true ? "0.28.1321" : "dev";
|
|
6471
6471
|
var program = new Command();
|
|
6472
6472
|
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");
|
|
6473
6473
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
exchangeApiKey,
|
|
3
3
|
getApiKey,
|
|
4
4
|
getHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XK3GPDIC.js";
|
|
6
6
|
import {
|
|
7
7
|
LATE_BOUND_VARS,
|
|
8
8
|
PLATFORM_DENY_PERMISSIONS,
|
|
@@ -13882,4 +13882,4 @@ export {
|
|
|
13882
13882
|
managerInstallSystemUnitCommand,
|
|
13883
13883
|
managerUninstallSystemUnitCommand
|
|
13884
13884
|
};
|
|
13885
|
-
//# sourceMappingURL=chunk-
|
|
13885
|
+
//# sourceMappingURL=chunk-7KHPD3XH.js.map
|
|
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// src/lib/api-client.ts
|
|
106
|
-
var agtCliVersion = true ? "0.28.
|
|
106
|
+
var agtCliVersion = true ? "0.28.1321" : "dev";
|
|
107
107
|
var lastConfigHash = null;
|
|
108
108
|
function setConfigHash(hash) {
|
|
109
109
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -468,4 +468,4 @@ export {
|
|
|
468
468
|
api,
|
|
469
469
|
getHostId
|
|
470
470
|
};
|
|
471
|
-
//# sourceMappingURL=chunk-
|
|
471
|
+
//# sourceMappingURL=chunk-XK3GPDIC.js.map
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
tripClass,
|
|
71
71
|
writeEtcEnvironment,
|
|
72
72
|
writeProfileDScript
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-7KHPD3XH.js";
|
|
74
74
|
import {
|
|
75
75
|
ApiError,
|
|
76
76
|
adoptHostKeyInProcess,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
probeHostKey,
|
|
89
89
|
requireHost,
|
|
90
90
|
setConfigHash
|
|
91
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-XK3GPDIC.js";
|
|
92
92
|
import {
|
|
93
93
|
BLOCKED_ON_PROMPT_DECISION,
|
|
94
94
|
CHANNEL_SECRET_ENV_KEYS,
|
|
@@ -10209,6 +10209,14 @@ function forceGates(gates, agentId) {
|
|
|
10209
10209
|
}
|
|
10210
10210
|
}
|
|
10211
10211
|
|
|
10212
|
+
// src/lib/default-schedules-refetch.ts
|
|
10213
|
+
function mustRefetchAfterEnsureDefaultSchedules(response) {
|
|
10214
|
+
if (typeof response !== "object" || response === null) return true;
|
|
10215
|
+
const { created, updated } = response;
|
|
10216
|
+
if (typeof created !== "number" || typeof updated !== "number") return true;
|
|
10217
|
+
return created !== 0 || updated !== 0;
|
|
10218
|
+
}
|
|
10219
|
+
|
|
10212
10220
|
// src/lib/conditional-fetch.ts
|
|
10213
10221
|
function stillHeld(quoted, live) {
|
|
10214
10222
|
if (!quoted || !live) return void 0;
|
|
@@ -16314,7 +16322,7 @@ function createFileMigrationReportIO(codeName, log2) {
|
|
|
16314
16322
|
};
|
|
16315
16323
|
}
|
|
16316
16324
|
var managerHostPost = async (path, body) => {
|
|
16317
|
-
const { api: api2, ApiError: ApiError3 } = await import("../api-client-
|
|
16325
|
+
const { api: api2, ApiError: ApiError3 } = await import("../api-client-ALOZB62N.js");
|
|
16318
16326
|
try {
|
|
16319
16327
|
const json = await api2.post(path, body);
|
|
16320
16328
|
return { status: 200, json };
|
|
@@ -19396,7 +19404,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
19396
19404
|
var lastVersionCheckAt = 0;
|
|
19397
19405
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
19398
19406
|
var lastResponsivenessProbeAt = 0;
|
|
19399
|
-
var agtCliVersion = true ? "0.28.
|
|
19407
|
+
var agtCliVersion = true ? "0.28.1321" : "dev";
|
|
19400
19408
|
function resolveBrewPath(execFileSync5) {
|
|
19401
19409
|
try {
|
|
19402
19410
|
const out = execFileSync5("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -25428,7 +25436,7 @@ async function processAgent(agent, agentStates, managedToolkits) {
|
|
|
25428
25436
|
(s) => !existingTemplateIds.has(s.template_id)
|
|
25429
25437
|
);
|
|
25430
25438
|
if (allSchedules.length > 0) {
|
|
25431
|
-
await api.post("/host/ensure-default-schedules", {
|
|
25439
|
+
const ensured = await api.post("/host/ensure-default-schedules", {
|
|
25432
25440
|
agent_id: agent.agent_id,
|
|
25433
25441
|
team_id: defaultsData.team_id,
|
|
25434
25442
|
timezone: defaultsData.timezone,
|
|
@@ -25437,14 +25445,16 @@ async function processAgent(agent, agentStates, managedToolkits) {
|
|
|
25437
25445
|
if (missing.length > 0) {
|
|
25438
25446
|
log(`Auto-provisioned ${missing.length} default schedule(s) for '${agent.code_name}': ${missing.map((s) => s.template_id).join(", ")}`);
|
|
25439
25447
|
}
|
|
25440
|
-
|
|
25441
|
-
|
|
25442
|
-
|
|
25443
|
-
|
|
25444
|
-
|
|
25445
|
-
|
|
25446
|
-
|
|
25447
|
-
|
|
25448
|
+
if (mustRefetchAfterEnsureDefaultSchedules(ensured)) {
|
|
25449
|
+
const freshData = await api.post("/host/refresh", {
|
|
25450
|
+
agent_id: agent.agent_id,
|
|
25451
|
+
// Only `scheduled_tasks` is read here, so ask for the manifest shape on
|
|
25452
|
+
// every lane — nothing in this branch consumes a skill body, and the
|
|
25453
|
+
// skill lanes are the largest part of the payload being discarded.
|
|
25454
|
+
...REFRESH_MANIFEST_FLAGS
|
|
25455
|
+
});
|
|
25456
|
+
tasks = freshData.scheduled_tasks ?? tasks;
|
|
25457
|
+
}
|
|
25448
25458
|
}
|
|
25449
25459
|
defaultSchedulesFetchGate.markFetched(agent.agent_id, defaultSchedulesToken);
|
|
25450
25460
|
} catch (err) {
|