@integrity-labs/agt-cli 0.28.543 → 0.28.544
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
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-OG6SZTC7.js";
|
|
44
44
|
import {
|
|
45
45
|
AnchorSessionClient,
|
|
46
46
|
CHANNEL_REGISTRY,
|
|
@@ -4834,7 +4834,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4834
4834
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4835
4835
|
import chalk18 from "chalk";
|
|
4836
4836
|
import ora16 from "ora";
|
|
4837
|
-
var cliVersion = true ? "0.28.
|
|
4837
|
+
var cliVersion = true ? "0.28.544" : "dev";
|
|
4838
4838
|
async function fetchLatestVersion() {
|
|
4839
4839
|
const host2 = getHost();
|
|
4840
4840
|
if (!host2) return null;
|
|
@@ -6006,7 +6006,7 @@ function handleError(err) {
|
|
|
6006
6006
|
}
|
|
6007
6007
|
|
|
6008
6008
|
// src/bin/agt.ts
|
|
6009
|
-
var cliVersion2 = true ? "0.28.
|
|
6009
|
+
var cliVersion2 = true ? "0.28.544" : "dev";
|
|
6010
6010
|
var program = new Command();
|
|
6011
6011
|
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");
|
|
6012
6012
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -5549,7 +5549,7 @@ function exchangeFailureKind(err) {
|
|
|
5549
5549
|
}
|
|
5550
5550
|
|
|
5551
5551
|
// src/lib/api-client.ts
|
|
5552
|
-
var agtCliVersion = true ? "0.28.
|
|
5552
|
+
var agtCliVersion = true ? "0.28.544" : "dev";
|
|
5553
5553
|
var lastConfigHash = null;
|
|
5554
5554
|
function setConfigHash(hash) {
|
|
5555
5555
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8861,4 +8861,4 @@ export {
|
|
|
8861
8861
|
managerInstallSystemUnitCommand,
|
|
8862
8862
|
managerUninstallSystemUnitCommand
|
|
8863
8863
|
};
|
|
8864
|
-
//# sourceMappingURL=chunk-
|
|
8864
|
+
//# sourceMappingURL=chunk-OG6SZTC7.js.map
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
safeWriteJsonAtomic,
|
|
54
54
|
setConfigHash,
|
|
55
55
|
tripClass
|
|
56
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-OG6SZTC7.js";
|
|
57
57
|
import {
|
|
58
58
|
getProjectDir as getProjectDir2,
|
|
59
59
|
getReadyTasks,
|
|
@@ -5663,6 +5663,20 @@ async function deliverScheduledTaskOutput(agentCodeName, agentId, rawTarget, bod
|
|
|
5663
5663
|
}
|
|
5664
5664
|
|
|
5665
5665
|
// src/lib/manager/scheduler/kanban-route.ts
|
|
5666
|
+
var MAX_DELIVERY_CHARS = 3500;
|
|
5667
|
+
var truncationMarker = (dropped) => `
|
|
5668
|
+
|
|
5669
|
+
\u2026[truncated \u2014 ${dropped} more characters. The full result is on the card.]`;
|
|
5670
|
+
function truncateForDelivery(output) {
|
|
5671
|
+
if (output.length <= MAX_DELIVERY_CHARS) return output;
|
|
5672
|
+
let keep = MAX_DELIVERY_CHARS - truncationMarker(output.length - MAX_DELIVERY_CHARS).length;
|
|
5673
|
+
for (let i = 0; i < 5; i++) {
|
|
5674
|
+
const next = MAX_DELIVERY_CHARS - truncationMarker(output.length - keep).length;
|
|
5675
|
+
if (next === keep) break;
|
|
5676
|
+
keep = next;
|
|
5677
|
+
}
|
|
5678
|
+
return output.slice(0, keep) + truncationMarker(output.length - keep);
|
|
5679
|
+
}
|
|
5666
5680
|
async function deliverScheduledCardResult(codeName, agentId, cardId, completedBy = "self") {
|
|
5667
5681
|
const seen = { taskRef: null };
|
|
5668
5682
|
const result = await runScheduledCardDelivery(codeName, agentId, cardId, completedBy, seen);
|
|
@@ -5682,6 +5696,10 @@ async function runScheduledCardDelivery(codeName, agentId, cardId, completedBy,
|
|
|
5682
5696
|
item_id: cardId
|
|
5683
5697
|
});
|
|
5684
5698
|
card = resp.item;
|
|
5699
|
+
const lenOrMissing = (value) => value == null ? "missing" : String(value.length);
|
|
5700
|
+
log(
|
|
5701
|
+
`[scheduled-kanban] delivery: card ${cardId} on '${codeName}' fetched result_len=${lenOrMissing(card?.result)} deliverable_len=${lenOrMissing(card?.deliverable)} title_len=${lenOrMissing(card?.title)}`
|
|
5702
|
+
);
|
|
5685
5703
|
} catch (err) {
|
|
5686
5704
|
if (err instanceof ApiError && err.status >= 400 && err.status < 500) {
|
|
5687
5705
|
log(`[scheduled-kanban] delivery: card ${cardId} on '${codeName}' fetch returned ${err.status} (${err.message}) \u2014 treating as terminal, not retrying`);
|
|
@@ -6018,7 +6036,7 @@ async function processClaudeTaskResult(codeName, agentId, templateId, rawOutput,
|
|
|
6018
6036
|
codeName,
|
|
6019
6037
|
agentId,
|
|
6020
6038
|
delivery.to,
|
|
6021
|
-
output
|
|
6039
|
+
truncateForDelivery(output),
|
|
6022
6040
|
delivery.taskId
|
|
6023
6041
|
);
|
|
6024
6042
|
}
|
|
@@ -10437,7 +10455,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
10437
10455
|
var lastVersionCheckAt = 0;
|
|
10438
10456
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
10439
10457
|
var lastResponsivenessProbeAt = 0;
|
|
10440
|
-
var agtCliVersion = true ? "0.28.
|
|
10458
|
+
var agtCliVersion = true ? "0.28.544" : "dev";
|
|
10441
10459
|
function resolveBrewPath(execFileSync2) {
|
|
10442
10460
|
try {
|
|
10443
10461
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|