@integrity-labs/agt-cli 0.28.1223 → 0.28.1225
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 +6 -6
- package/dist/{chunk-LBEB7SZN.js → chunk-DKTSGG7Q.js} +71 -1
- package/dist/{chunk-LBEB7SZN.js.map → chunk-DKTSGG7Q.js.map} +1 -1
- package/dist/{chunk-3QWPLCMX.js → chunk-GBPHP6FI.js} +7 -3
- package/dist/chunk-GBPHP6FI.js.map +1 -0
- package/dist/{chunk-C6VRK3J2.js → chunk-M53VVKTM.js} +2 -2
- package/dist/{chunk-Y52PRRP4.js → chunk-VAYVJRT7.js} +5 -5
- package/dist/{chunk-4HPJCR5S.js → chunk-XF6SM5RR.js} +7 -4
- package/dist/chunk-XF6SM5RR.js.map +1 -0
- package/dist/{claude-code-updater-F7A6PTT6.js → claude-code-updater-QFDDREKD.js} +3 -3
- package/dist/{claude-pair-runtime-4X7ST7J3.js → claude-pair-runtime-3YHQHU45.js} +3 -3
- package/dist/lib/manager-worker.js +168 -30
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-OG2MVQUR.js → persistent-session-DBAPNU35.js} +4 -4
- package/dist/{responsiveness-probe-HOXQTWME.js → responsiveness-probe-6S34EWLC.js} +4 -4
- package/dist/{session-auth-dead-GQGLYVIG.js → session-auth-dead-TDTU2CHO.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-3QWPLCMX.js.map +0 -1
- package/dist/chunk-4HPJCR5S.js.map +0 -1
- /package/dist/{chunk-C6VRK3J2.js.map → chunk-M53VVKTM.js.map} +0 -0
- /package/dist/{chunk-Y52PRRP4.js.map → chunk-VAYVJRT7.js.map} +0 -0
- /package/dist/{claude-code-updater-F7A6PTT6.js.map → claude-code-updater-QFDDREKD.js.map} +0 -0
- /package/dist/{claude-pair-runtime-4X7ST7J3.js.map → claude-pair-runtime-3YHQHU45.js.map} +0 -0
- /package/dist/{persistent-session-OG2MVQUR.js.map → persistent-session-DBAPNU35.js.map} +0 -0
- /package/dist/{responsiveness-probe-HOXQTWME.js.map → responsiveness-probe-6S34EWLC.js.map} +0 -0
- /package/dist/{session-auth-dead-GQGLYVIG.js.map → session-auth-dead-TDTU2CHO.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,17 +40,17 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-VAYVJRT7.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
47
47
|
readDirectChatSessionState
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-XF6SM5RR.js";
|
|
49
49
|
import {
|
|
50
50
|
markDailySessionSpawn,
|
|
51
51
|
sessionFileExists,
|
|
52
52
|
sessionTranscriptDir
|
|
53
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-GBPHP6FI.js";
|
|
54
54
|
import "../chunk-HYQ7VOC3.js";
|
|
55
55
|
import "../chunk-6HBXEJHO.js";
|
|
56
56
|
import "../chunk-XWVM4KPK.js";
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
requiredMcpWildcard,
|
|
84
84
|
resolveChannels,
|
|
85
85
|
serializeManifestForSlackCli
|
|
86
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-DKTSGG7Q.js";
|
|
87
87
|
import "../chunk-AIUIMEUS.js";
|
|
88
88
|
import "../chunk-DGUM43GV.js";
|
|
89
89
|
|
|
@@ -5200,7 +5200,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5200
5200
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5201
5201
|
import chalk17 from "chalk";
|
|
5202
5202
|
import ora15 from "ora";
|
|
5203
|
-
var cliVersion = true ? "0.28.
|
|
5203
|
+
var cliVersion = true ? "0.28.1225" : "dev";
|
|
5204
5204
|
async function fetchLatestVersion() {
|
|
5205
5205
|
const host2 = getHost();
|
|
5206
5206
|
if (!host2) return null;
|
|
@@ -6460,7 +6460,7 @@ function handleError(err) {
|
|
|
6460
6460
|
}
|
|
6461
6461
|
|
|
6462
6462
|
// src/bin/agt.ts
|
|
6463
|
-
var cliVersion2 = true ? "0.28.
|
|
6463
|
+
var cliVersion2 = true ? "0.28.1225" : "dev";
|
|
6464
6464
|
var program = new Command();
|
|
6465
6465
|
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");
|
|
6466
6466
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -16791,6 +16791,73 @@ var NO_TRANSCRIPT_ACTIVITY = Object.freeze({
|
|
|
16791
16791
|
newestTurnOpen: false,
|
|
16792
16792
|
hasTurn: false
|
|
16793
16793
|
});
|
|
16794
|
+
function newBackgroundTaskLedger() {
|
|
16795
|
+
return { started: /* @__PURE__ */ new Set(), ended: /* @__PURE__ */ new Set() };
|
|
16796
|
+
}
|
|
16797
|
+
var BACKGROUND_TASK_LINE = /backgroundTaskId|async_launched|"timeoutMs"|task-notification/;
|
|
16798
|
+
var TASK_NOTIFICATION = /<task-notification>([\s\S]*?)<\/task-notification>/g;
|
|
16799
|
+
var TERMINAL_TASK_STATUSES = /* @__PURE__ */ new Set(["completed", "failed", "killed", "stopped"]);
|
|
16800
|
+
function nonEmptyString(value) {
|
|
16801
|
+
return typeof value === "string" && value ? value : null;
|
|
16802
|
+
}
|
|
16803
|
+
function startedBackgroundTaskId(result) {
|
|
16804
|
+
if (typeof result !== "object" || result === null)
|
|
16805
|
+
return null;
|
|
16806
|
+
const r = result;
|
|
16807
|
+
const shell = nonEmptyString(r.backgroundTaskId);
|
|
16808
|
+
if (shell)
|
|
16809
|
+
return shell;
|
|
16810
|
+
if (r.status === "async_launched")
|
|
16811
|
+
return nonEmptyString(r.agentId);
|
|
16812
|
+
return "timeoutMs" in r ? nonEmptyString(r.taskId) : null;
|
|
16813
|
+
}
|
|
16814
|
+
function taskNotificationTexts(row) {
|
|
16815
|
+
let texts = [];
|
|
16816
|
+
if (row.type === "queue-operation") {
|
|
16817
|
+
if (row.operation === "enqueue" && typeof row.content === "string")
|
|
16818
|
+
texts = [row.content];
|
|
16819
|
+
} else if (row.type === "user") {
|
|
16820
|
+
const content = row.message?.content;
|
|
16821
|
+
if (typeof content === "string")
|
|
16822
|
+
texts = [content];
|
|
16823
|
+
else
|
|
16824
|
+
texts = blockTypes(content).flatMap((b) => b.type === "text" && typeof b.text === "string" ? [b.text] : []);
|
|
16825
|
+
}
|
|
16826
|
+
return texts.filter((t) => t.trimStart().startsWith("<task-notification>"));
|
|
16827
|
+
}
|
|
16828
|
+
function recordBackgroundTaskLine(line, ledger, startedNotBeforeMs = null) {
|
|
16829
|
+
if (!BACKGROUND_TASK_LINE.test(line))
|
|
16830
|
+
return;
|
|
16831
|
+
let row;
|
|
16832
|
+
try {
|
|
16833
|
+
const parsed = JSON.parse(line);
|
|
16834
|
+
if (typeof parsed !== "object" || parsed === null)
|
|
16835
|
+
return;
|
|
16836
|
+
row = parsed;
|
|
16837
|
+
} catch {
|
|
16838
|
+
return;
|
|
16839
|
+
}
|
|
16840
|
+
const started = startedBackgroundTaskId(row.toolUseResult);
|
|
16841
|
+
const startedAtMs = parseMs(row.timestamp);
|
|
16842
|
+
const beforeThisProcess = startedNotBeforeMs !== null && startedAtMs !== null && startedAtMs < startedNotBeforeMs;
|
|
16843
|
+
if (started && !beforeThisProcess)
|
|
16844
|
+
ledger.started.add(started);
|
|
16845
|
+
for (const text of taskNotificationTexts(row)) {
|
|
16846
|
+
for (const [, body] of text.matchAll(TASK_NOTIFICATION)) {
|
|
16847
|
+
const id = /<task-id>([^<]+)<\/task-id>/.exec(body ?? "")?.[1];
|
|
16848
|
+
const status = /<status>([^<]+)<\/status>/.exec(body ?? "")?.[1];
|
|
16849
|
+
if (id && status && TERMINAL_TASK_STATUSES.has(status))
|
|
16850
|
+
ledger.ended.add(id);
|
|
16851
|
+
}
|
|
16852
|
+
}
|
|
16853
|
+
}
|
|
16854
|
+
function runningBackgroundTaskCount(ledger) {
|
|
16855
|
+
let running = 0;
|
|
16856
|
+
for (const id of ledger.started)
|
|
16857
|
+
if (!ledger.ended.has(id))
|
|
16858
|
+
running += 1;
|
|
16859
|
+
return running;
|
|
16860
|
+
}
|
|
16794
16861
|
function parseMs(value) {
|
|
16795
16862
|
if (typeof value !== "string" || !value)
|
|
16796
16863
|
return null;
|
|
@@ -17910,6 +17977,9 @@ export {
|
|
|
17910
17977
|
NO_FAILING_TURN_RUN,
|
|
17911
17978
|
analyzeFailingTurnRun,
|
|
17912
17979
|
NO_TRANSCRIPT_ACTIVITY,
|
|
17980
|
+
newBackgroundTaskLedger,
|
|
17981
|
+
recordBackgroundTaskLine,
|
|
17982
|
+
runningBackgroundTaskCount,
|
|
17913
17983
|
summarizeTranscriptActivity,
|
|
17914
17984
|
resolveSessionActivityState,
|
|
17915
17985
|
ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
|
|
@@ -17947,4 +18017,4 @@ export {
|
|
|
17947
18017
|
HOST_ROTATE_KEY_CONFLICT,
|
|
17948
18018
|
shouldMintReplacementKey
|
|
17949
18019
|
};
|
|
17950
|
-
//# sourceMappingURL=chunk-
|
|
18020
|
+
//# sourceMappingURL=chunk-DKTSGG7Q.js.map
|