@integrity-labs/agt-cli 0.28.389 → 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 +3 -3
- package/dist/{chunk-GZKD4K7H.js → chunk-F2HXWMB6.js} +2 -2
- package/dist/lib/manager-worker.js +26 -8
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/slack-channel.js +20 -4
- package/package.json +1 -1
- /package/dist/{chunk-GZKD4K7H.js.map → chunk-F2HXWMB6.js.map} +0 -0
|
@@ -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
|