@integrity-labs/agt-cli 0.28.390 → 0.28.391
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-F2HXWMB6.js";
|
|
44
44
|
import {
|
|
45
45
|
AnchorSessionClient,
|
|
46
46
|
CHANNEL_REGISTRY,
|
|
@@ -4829,7 +4829,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4829
4829
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4830
4830
|
import chalk18 from "chalk";
|
|
4831
4831
|
import ora16 from "ora";
|
|
4832
|
-
var cliVersion = true ? "0.28.
|
|
4832
|
+
var cliVersion = true ? "0.28.391" : "dev";
|
|
4833
4833
|
async function fetchLatestVersion() {
|
|
4834
4834
|
const host2 = getHost();
|
|
4835
4835
|
if (!host2) return null;
|
|
@@ -6001,7 +6001,7 @@ function handleError(err) {
|
|
|
6001
6001
|
}
|
|
6002
6002
|
|
|
6003
6003
|
// src/bin/agt.ts
|
|
6004
|
-
var cliVersion2 = true ? "0.28.
|
|
6004
|
+
var cliVersion2 = true ? "0.28.391" : "dev";
|
|
6005
6005
|
var program = new Command();
|
|
6006
6006
|
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");
|
|
6007
6007
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -6196,7 +6196,7 @@ function requireHost() {
|
|
|
6196
6196
|
}
|
|
6197
6197
|
|
|
6198
6198
|
// src/lib/api-client.ts
|
|
6199
|
-
var agtCliVersion = true ? "0.28.
|
|
6199
|
+
var agtCliVersion = true ? "0.28.391" : "dev";
|
|
6200
6200
|
var lastConfigHash = null;
|
|
6201
6201
|
function setConfigHash(hash) {
|
|
6202
6202
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8650,4 +8650,4 @@ export {
|
|
|
8650
8650
|
managerInstallSystemUnitCommand,
|
|
8651
8651
|
managerUninstallSystemUnitCommand
|
|
8652
8652
|
};
|
|
8653
|
-
//# sourceMappingURL=chunk-
|
|
8653
|
+
//# sourceMappingURL=chunk-F2HXWMB6.js.map
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
resolveEffectivePinRaw,
|
|
44
44
|
safeWriteJsonAtomic,
|
|
45
45
|
setConfigHash
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-F2HXWMB6.js";
|
|
47
47
|
import {
|
|
48
48
|
getProjectDir as getProjectDir2,
|
|
49
49
|
getReadyTasks,
|
|
@@ -9120,7 +9120,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
9120
9120
|
var lastVersionCheckAt = 0;
|
|
9121
9121
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
9122
9122
|
var lastResponsivenessProbeAt = 0;
|
|
9123
|
-
var agtCliVersion = true ? "0.28.
|
|
9123
|
+
var agtCliVersion = true ? "0.28.391" : "dev";
|
|
9124
9124
|
function resolveBrewPath(execFileSync2) {
|
|
9125
9125
|
try {
|
|
9126
9126
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -37664,6 +37664,15 @@ function clearScheduledTurnMarker(agentDir) {
|
|
|
37664
37664
|
}
|
|
37665
37665
|
}
|
|
37666
37666
|
|
|
37667
|
+
// src/slack-reply-scheduled-priority.ts
|
|
37668
|
+
function resolveSlackScheduledPriority(opts) {
|
|
37669
|
+
const inboundWins = !!(opts.inboundId || opts.enforceBound);
|
|
37670
|
+
const effectiveChannel = inboundWins ? opts.bindingChannel ?? opts.fallbackChannel : opts.scheduledDest ? opts.scheduledDest.channel : opts.fallbackChannel;
|
|
37671
|
+
const effectiveThreadTs = inboundWins ? opts.bindingThreadTs ?? void 0 : opts.scheduledDest ? opts.scheduledDest.thread_ts : opts.fallbackThreadTs ?? void 0;
|
|
37672
|
+
const settleThreadTs = inboundWins ? opts.bindingThreadTs ?? void 0 : opts.fallbackSettleThreadTs ?? void 0;
|
|
37673
|
+
return { effectiveChannel, effectiveThreadTs, settleThreadTs };
|
|
37674
|
+
}
|
|
37675
|
+
|
|
37667
37676
|
// src/slack-allowlist-source.ts
|
|
37668
37677
|
function parseAllowedUsersCsv(raw) {
|
|
37669
37678
|
return new Set(
|
|
@@ -41384,6 +41393,7 @@ mcp.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
41384
41393
|
`
|
|
41385
41394
|
);
|
|
41386
41395
|
}
|
|
41396
|
+
const enforceBound = bindingMode === "enforce" && (binding.classification === "bound" || binding.classification === "coords_corrected");
|
|
41387
41397
|
const scheduledMarker = readScheduledTurnMarker(SLACK_AGENT_DIR);
|
|
41388
41398
|
const scheduledDest = scheduledMarker ? resolveScheduledTurnDestination(scheduledMarker, { channel, thread_ts }) : null;
|
|
41389
41399
|
if (scheduledDest?.retargeted) {
|
|
@@ -41392,7 +41402,6 @@ mcp.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
41392
41402
|
`
|
|
41393
41403
|
);
|
|
41394
41404
|
}
|
|
41395
|
-
const effectiveChannel = scheduledDest ? scheduledDest.channel : channelGuard.corrected && channelGuard.channel ? channelGuard.channel : channel;
|
|
41396
41405
|
const effectiveMessageTs = channelGuard.corrected ? channelGuard.messageTs : message_ts;
|
|
41397
41406
|
if (bindingMode === "enforce" && binding.reject && !channelGuard.corrected && !scheduledDest) {
|
|
41398
41407
|
process.stderr.write(
|
|
@@ -41401,7 +41410,6 @@ mcp.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
41401
41410
|
);
|
|
41402
41411
|
return { content: [{ type: "text", text: binding.reject }], isError: true };
|
|
41403
41412
|
}
|
|
41404
|
-
const enforceBound = bindingMode === "enforce" && (binding.classification === "bound" || binding.classification === "coords_corrected");
|
|
41405
41413
|
if (enforceBound && binding.channel && binding.channel !== channel) {
|
|
41406
41414
|
process.stderr.write(
|
|
41407
41415
|
`slack-channel(${AGENT_CODE_NAME}): reply_binding_channel_mismatch_rejected class=${binding.classification} model=${redactSlackId(channel)} registry=${redactSlackId(binding.channel)}
|
|
@@ -41447,7 +41455,16 @@ mcp.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
41447
41455
|
}
|
|
41448
41456
|
}
|
|
41449
41457
|
}
|
|
41450
|
-
const
|
|
41458
|
+
const { effectiveChannel, effectiveThreadTs, settleThreadTs } = resolveSlackScheduledPriority({
|
|
41459
|
+
inboundId: inbound_id,
|
|
41460
|
+
enforceBound,
|
|
41461
|
+
scheduledDest: scheduledDest ?? null,
|
|
41462
|
+
bindingChannel: binding.channel,
|
|
41463
|
+
bindingThreadTs: binding.threadTs,
|
|
41464
|
+
fallbackChannel: channelGuard.corrected && channelGuard.channel ? channelGuard.channel : channel,
|
|
41465
|
+
fallbackThreadTs: channelGuard.corrected ? channelGuard.threadTs : hotThreadMode === "enforce" && hotGuard ? hotGuard.threadTs : baseThreadTs,
|
|
41466
|
+
fallbackSettleThreadTs: channelGuard.corrected ? channelGuard.threadTs : thread_ts
|
|
41467
|
+
});
|
|
41451
41468
|
const hotThreadRedirected = hotThreadMode === "enforce" && hotGuard?.guard === "redirected_to_hot_thread";
|
|
41452
41469
|
if (effectiveChannel) {
|
|
41453
41470
|
recordReplyTargetClassification(
|
|
@@ -41497,7 +41514,6 @@ mcp.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
41497
41514
|
}
|
|
41498
41515
|
const settleChannel = effectiveChannel;
|
|
41499
41516
|
const settleMessageTs = effectiveMessageTs;
|
|
41500
|
-
const settleThreadTs = enforceBound ? binding.threadTs : channelGuard.corrected ? channelGuard.threadTs : thread_ts;
|
|
41501
41517
|
const settlePendingMarker = () => {
|
|
41502
41518
|
if (!settleChannel) return;
|
|
41503
41519
|
if (settleMessageTs) {
|
package/package.json
CHANGED
|
File without changes
|