@integrity-labs/agt-cli 0.28.461 → 0.28.463
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-WCYGJANF.js → chunk-VCZNGC6J.js} +155 -9
- package/dist/{chunk-WCYGJANF.js.map → chunk-VCZNGC6J.js.map} +1 -1
- package/dist/lib/manager-worker.js +69 -3
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +14 -6
- package/package.json +1 -1
|
@@ -36543,7 +36543,10 @@ async function maybeSendDirectChatAccountWarn(sessionId) {
|
|
|
36543
36543
|
agent_id: AGT_AGENT_ID,
|
|
36544
36544
|
session_id: sessionId,
|
|
36545
36545
|
content: buildAccountIssueReplyText(),
|
|
36546
|
-
message_ids: []
|
|
36546
|
+
message_ids: [],
|
|
36547
|
+
// ENG-8274: kind:'notice' — an account-auth nag is the system speaking, not
|
|
36548
|
+
// the agent, and owes no reply.
|
|
36549
|
+
kind: "notice"
|
|
36547
36550
|
});
|
|
36548
36551
|
const data = await res.json().catch(() => ({}));
|
|
36549
36552
|
if (!res.ok || data.error) {
|
|
@@ -36850,7 +36853,8 @@ async function postDirectChatNoticeMessage(sessionId, content) {
|
|
|
36850
36853
|
agent_id: AGT_AGENT_ID,
|
|
36851
36854
|
session_id: sessionId,
|
|
36852
36855
|
content,
|
|
36853
|
-
liveness_stamp: false
|
|
36856
|
+
liveness_stamp: false,
|
|
36857
|
+
kind: "notice"
|
|
36854
36858
|
});
|
|
36855
36859
|
if (!res.ok) return false;
|
|
36856
36860
|
const data = await res.json().catch(() => ({}));
|
|
@@ -37024,7 +37028,11 @@ function armUsageLimitWatch(args) {
|
|
|
37024
37028
|
agent_id: AGT_AGENT_ID,
|
|
37025
37029
|
session_id: args.sessionId,
|
|
37026
37030
|
content: buildUsageLimitReplyText(refusal.resetsAt),
|
|
37027
|
-
message_ids: [args.messageId]
|
|
37031
|
+
message_ids: [args.messageId],
|
|
37032
|
+
// ENG-8274: a cap refusal is the SYSTEM speaking, not the agent.
|
|
37033
|
+
// Orthogonal to message_ids — consuming the cursor is about delivery,
|
|
37034
|
+
// `kind` is about who authored this and whether a reply is owed.
|
|
37035
|
+
kind: "notice"
|
|
37028
37036
|
} : { agent_id: AGT_AGENT_ID, session_id: args.sessionId, message_ids: [args.messageId] };
|
|
37029
37037
|
const res = await apiPost(route, body);
|
|
37030
37038
|
const data = await res.json().catch(() => ({}));
|
|
@@ -37095,7 +37103,7 @@ async function pollForMessages(sinceMs) {
|
|
|
37095
37103
|
now: Date.now()
|
|
37096
37104
|
});
|
|
37097
37105
|
const route = throttle.reply ? "/host/direct-chat/reply" : "/host/direct-chat/consume";
|
|
37098
|
-
const body = throttle.reply ? { agent_id: AGT_AGENT_ID, session_id: msg.session_id, content: MAINTENANCE_OFFLINE_MESSAGE, message_ids: [msg.id] } : { agent_id: AGT_AGENT_ID, session_id: msg.session_id, message_ids: [msg.id] };
|
|
37106
|
+
const body = throttle.reply ? { agent_id: AGT_AGENT_ID, session_id: msg.session_id, content: MAINTENANCE_OFFLINE_MESSAGE, message_ids: [msg.id], kind: "notice" } : { agent_id: AGT_AGENT_ID, session_id: msg.session_id, message_ids: [msg.id] };
|
|
37099
37107
|
try {
|
|
37100
37108
|
const res2 = await apiPost(route, body);
|
|
37101
37109
|
const data2 = await res2.json().catch(() => ({}));
|
|
@@ -37126,7 +37134,7 @@ async function pollForMessages(sinceMs) {
|
|
|
37126
37134
|
now: Date.now()
|
|
37127
37135
|
});
|
|
37128
37136
|
const route = throttle.reply ? "/host/direct-chat/reply" : "/host/direct-chat/consume";
|
|
37129
|
-
const body = throttle.reply ? { agent_id: AGT_AGENT_ID, session_id: msg.session_id, content: buildAccountIssueReplyText(), message_ids: [msg.id] } : { agent_id: AGT_AGENT_ID, session_id: msg.session_id, message_ids: [msg.id] };
|
|
37137
|
+
const body = throttle.reply ? { agent_id: AGT_AGENT_ID, session_id: msg.session_id, content: buildAccountIssueReplyText(), message_ids: [msg.id], kind: "notice" } : { agent_id: AGT_AGENT_ID, session_id: msg.session_id, message_ids: [msg.id] };
|
|
37130
37138
|
try {
|
|
37131
37139
|
const res2 = await apiPost(route, body);
|
|
37132
37140
|
const data2 = await res2.json().catch(() => ({}));
|
|
@@ -37157,7 +37165,7 @@ async function pollForMessages(sinceMs) {
|
|
|
37157
37165
|
now: Date.now()
|
|
37158
37166
|
});
|
|
37159
37167
|
const route = throttle.reply ? "/host/direct-chat/reply" : "/host/direct-chat/consume";
|
|
37160
|
-
const body = throttle.reply ? { agent_id: AGT_AGENT_ID, session_id: msg.session_id, content: buildUsageLimitReplyText(usageLimitUntil), message_ids: [msg.id] } : { agent_id: AGT_AGENT_ID, session_id: msg.session_id, message_ids: [msg.id] };
|
|
37168
|
+
const body = throttle.reply ? { agent_id: AGT_AGENT_ID, session_id: msg.session_id, content: buildUsageLimitReplyText(usageLimitUntil), message_ids: [msg.id], kind: "notice" } : { agent_id: AGT_AGENT_ID, session_id: msg.session_id, message_ids: [msg.id] };
|
|
37161
37169
|
try {
|
|
37162
37170
|
const res2 = await apiPost(route, body);
|
|
37163
37171
|
const data2 = await res2.json().catch(() => ({}));
|