@integrity-labs/agt-cli 0.28.1311 → 0.28.1313
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/{api-client-LJIV4E3U.js → api-client-OATI5QPI.js} +3 -3
- package/dist/bin/agt.js +8 -8
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-C35ONIOM.js → chunk-4VFHXY7W.js} +2 -2
- package/dist/{chunk-LNLKOJC5.js → chunk-ABU3BOHU.js} +10 -10
- package/dist/{chunk-LNLKOJC5.js.map → chunk-ABU3BOHU.js.map} +1 -1
- package/dist/{chunk-AATR5MO7.js → chunk-BSZRE4X6.js} +38 -6
- package/dist/{chunk-AATR5MO7.js.map → chunk-BSZRE4X6.js.map} +1 -1
- package/dist/{chunk-PRSMP7YW.js → chunk-JX4S7KFB.js} +2 -2
- package/dist/{chunk-DTGNYXYM.js → chunk-JYBRZAAK.js} +8 -1
- package/dist/chunk-JYBRZAAK.js.map +1 -0
- package/dist/{chunk-NYBVFW7X.js → chunk-NBIS2LOE.js} +3 -3
- package/dist/{chunk-H3JMPEH7.js → chunk-ZE6WANYK.js} +11 -4
- package/dist/chunk-ZE6WANYK.js.map +1 -0
- package/dist/{claude-code-updater-QRAOQLXJ.js → claude-code-updater-OLV2OEVG.js} +3 -3
- package/dist/{claude-pair-runtime-ZI2LPY5E.js → claude-pair-runtime-QA3AUNBF.js} +3 -3
- package/dist/lib/manager-worker.js +22 -22
- package/dist/{manager-supervisor-TD7E6FPC.js → manager-supervisor-NZHBYHWF.js} +2 -2
- package/dist/mcp/direct-chat-channel.js +61 -2
- package/dist/mcp/slack-channel.js +48 -2
- package/dist/mcp/teams-channel.js +48 -2
- package/dist/mcp/telegram-channel.js +48 -2
- package/dist/{persistent-session-ADLDX7QL.js → persistent-session-K5WFQVXD.js} +4 -4
- package/dist/{responsiveness-probe-ETVF2D2O.js → responsiveness-probe-Q5PDMK2L.js} +4 -4
- package/dist/{session-auth-dead-36OZTRBJ.js → session-auth-dead-T57ORTYP.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-DTGNYXYM.js.map +0 -1
- package/dist/chunk-H3JMPEH7.js.map +0 -1
- /package/dist/{api-client-LJIV4E3U.js.map → api-client-OATI5QPI.js.map} +0 -0
- /package/dist/{chunk-C35ONIOM.js.map → chunk-4VFHXY7W.js.map} +0 -0
- /package/dist/{chunk-PRSMP7YW.js.map → chunk-JX4S7KFB.js.map} +0 -0
- /package/dist/{chunk-NYBVFW7X.js.map → chunk-NBIS2LOE.js.map} +0 -0
- /package/dist/{claude-code-updater-QRAOQLXJ.js.map → claude-code-updater-OLV2OEVG.js.map} +0 -0
- /package/dist/{claude-pair-runtime-ZI2LPY5E.js.map → claude-pair-runtime-QA3AUNBF.js.map} +0 -0
- /package/dist/{manager-supervisor-TD7E6FPC.js.map → manager-supervisor-NZHBYHWF.js.map} +0 -0
- /package/dist/{persistent-session-ADLDX7QL.js.map → persistent-session-K5WFQVXD.js.map} +0 -0
- /package/dist/{responsiveness-probe-ETVF2D2O.js.map → responsiveness-probe-Q5PDMK2L.js.map} +0 -0
- /package/dist/{session-auth-dead-36OZTRBJ.js.map → session-auth-dead-T57ORTYP.js.map} +0 -0
|
@@ -50168,9 +50168,9 @@ function createInboundContextClient(args) {
|
|
|
50168
50168
|
cachedTokenExpiresAt = data.expires_at ? new Date(data.expires_at).getTime() - 12e4 : Date.now() + 55 * 6e4;
|
|
50169
50169
|
return cachedToken;
|
|
50170
50170
|
}
|
|
50171
|
-
async function postOnce(body) {
|
|
50171
|
+
async function postOnce(body, path = "/host/inbound-context") {
|
|
50172
50172
|
const token = await getToken();
|
|
50173
|
-
return fetchImpl(`${base}
|
|
50173
|
+
return fetchImpl(`${base}${path}`, {
|
|
50174
50174
|
method: "POST",
|
|
50175
50175
|
headers: { Authorization: `Bearer ${token}`, "Content-Type": "application/json" },
|
|
50176
50176
|
body: JSON.stringify(body),
|
|
@@ -50202,12 +50202,58 @@ function createInboundContextClient(args) {
|
|
|
50202
50202
|
log(`inbound-context: emit threw integration=${args2.sourceIntegration}: ${err.message}`);
|
|
50203
50203
|
}
|
|
50204
50204
|
}
|
|
50205
|
+
let activityUnsupportedUntil = 0;
|
|
50206
|
+
async function emitActivity(sessionId) {
|
|
50207
|
+
if (Date.now() < activityUnsupportedUntil) return;
|
|
50208
|
+
const body = { agent_id: agentId, session_id: sessionId };
|
|
50209
|
+
try {
|
|
50210
|
+
let resp = await postOnce(body, "/host/inbound-activity");
|
|
50211
|
+
if (resp.status === 401) {
|
|
50212
|
+
cachedToken = null;
|
|
50213
|
+
cachedTokenExpiresAt = 0;
|
|
50214
|
+
resp = await postOnce(body, "/host/inbound-activity");
|
|
50215
|
+
}
|
|
50216
|
+
if (resp.status === 404) {
|
|
50217
|
+
const text = await resp.text().catch(() => "");
|
|
50218
|
+
if (isRouteJsonError(text)) {
|
|
50219
|
+
log(`inbound-context: activity POST refused (404): ${text.slice(0, 200)}`);
|
|
50220
|
+
return;
|
|
50221
|
+
}
|
|
50222
|
+
const firstPause = activityUnsupportedUntil === 0;
|
|
50223
|
+
activityUnsupportedUntil = Date.now() + ACTIVITY_ROUTE_REPROBE_MS;
|
|
50224
|
+
if (firstPause) {
|
|
50225
|
+
log(
|
|
50226
|
+
`inbound-context: /host/inbound-activity not on this API yet; notices are not recorded, re-checking every ${ACTIVITY_ROUTE_REPROBE_MS / 6e4}m (ENG-12336)`
|
|
50227
|
+
);
|
|
50228
|
+
}
|
|
50229
|
+
return;
|
|
50230
|
+
}
|
|
50231
|
+
if (!resp.ok) {
|
|
50232
|
+
const text = await resp.text().catch(() => "");
|
|
50233
|
+
log(`inbound-context: activity POST failed (${resp.status}): ${text.slice(0, 200)}`);
|
|
50234
|
+
}
|
|
50235
|
+
} catch (err) {
|
|
50236
|
+
log(`inbound-context: activity emit threw: ${err.message}`);
|
|
50237
|
+
}
|
|
50238
|
+
}
|
|
50205
50239
|
return {
|
|
50206
50240
|
recordInbound(args2) {
|
|
50207
50241
|
void emit(args2);
|
|
50242
|
+
},
|
|
50243
|
+
recordActivity(args2) {
|
|
50244
|
+
void emitActivity(args2.sessionId);
|
|
50208
50245
|
}
|
|
50209
50246
|
};
|
|
50210
50247
|
}
|
|
50248
|
+
var ACTIVITY_ROUTE_REPROBE_MS = 10 * 6e4;
|
|
50249
|
+
function isRouteJsonError(text) {
|
|
50250
|
+
try {
|
|
50251
|
+
const parsed = JSON.parse(text);
|
|
50252
|
+
return typeof parsed === "object" && parsed !== null && typeof parsed.error === "string";
|
|
50253
|
+
} catch {
|
|
50254
|
+
return false;
|
|
50255
|
+
}
|
|
50256
|
+
}
|
|
50211
50257
|
|
|
50212
50258
|
// src/reconcile-identity-client.ts
|
|
50213
50259
|
var REQUEST_TIMEOUT_MS5 = 1e4;
|
|
@@ -17547,9 +17547,9 @@ function createInboundContextClient(args) {
|
|
|
17547
17547
|
cachedTokenExpiresAt = data.expires_at ? new Date(data.expires_at).getTime() - 12e4 : Date.now() + 55 * 6e4;
|
|
17548
17548
|
return cachedToken;
|
|
17549
17549
|
}
|
|
17550
|
-
async function postOnce(body) {
|
|
17550
|
+
async function postOnce(body, path = "/host/inbound-context") {
|
|
17551
17551
|
const token = await getToken();
|
|
17552
|
-
return fetchImpl(`${base}
|
|
17552
|
+
return fetchImpl(`${base}${path}`, {
|
|
17553
17553
|
method: "POST",
|
|
17554
17554
|
headers: { Authorization: `Bearer ${token}`, "Content-Type": "application/json" },
|
|
17555
17555
|
body: JSON.stringify(body),
|
|
@@ -17581,12 +17581,58 @@ function createInboundContextClient(args) {
|
|
|
17581
17581
|
log(`inbound-context: emit threw integration=${args2.sourceIntegration}: ${err.message}`);
|
|
17582
17582
|
}
|
|
17583
17583
|
}
|
|
17584
|
+
let activityUnsupportedUntil = 0;
|
|
17585
|
+
async function emitActivity(sessionId) {
|
|
17586
|
+
if (Date.now() < activityUnsupportedUntil) return;
|
|
17587
|
+
const body = { agent_id: agentId, session_id: sessionId };
|
|
17588
|
+
try {
|
|
17589
|
+
let resp = await postOnce(body, "/host/inbound-activity");
|
|
17590
|
+
if (resp.status === 401) {
|
|
17591
|
+
cachedToken = null;
|
|
17592
|
+
cachedTokenExpiresAt = 0;
|
|
17593
|
+
resp = await postOnce(body, "/host/inbound-activity");
|
|
17594
|
+
}
|
|
17595
|
+
if (resp.status === 404) {
|
|
17596
|
+
const text = await resp.text().catch(() => "");
|
|
17597
|
+
if (isRouteJsonError(text)) {
|
|
17598
|
+
log(`inbound-context: activity POST refused (404): ${text.slice(0, 200)}`);
|
|
17599
|
+
return;
|
|
17600
|
+
}
|
|
17601
|
+
const firstPause = activityUnsupportedUntil === 0;
|
|
17602
|
+
activityUnsupportedUntil = Date.now() + ACTIVITY_ROUTE_REPROBE_MS;
|
|
17603
|
+
if (firstPause) {
|
|
17604
|
+
log(
|
|
17605
|
+
`inbound-context: /host/inbound-activity not on this API yet; notices are not recorded, re-checking every ${ACTIVITY_ROUTE_REPROBE_MS / 6e4}m (ENG-12336)`
|
|
17606
|
+
);
|
|
17607
|
+
}
|
|
17608
|
+
return;
|
|
17609
|
+
}
|
|
17610
|
+
if (!resp.ok) {
|
|
17611
|
+
const text = await resp.text().catch(() => "");
|
|
17612
|
+
log(`inbound-context: activity POST failed (${resp.status}): ${text.slice(0, 200)}`);
|
|
17613
|
+
}
|
|
17614
|
+
} catch (err) {
|
|
17615
|
+
log(`inbound-context: activity emit threw: ${err.message}`);
|
|
17616
|
+
}
|
|
17617
|
+
}
|
|
17584
17618
|
return {
|
|
17585
17619
|
recordInbound(args2) {
|
|
17586
17620
|
void emit(args2);
|
|
17621
|
+
},
|
|
17622
|
+
recordActivity(args2) {
|
|
17623
|
+
void emitActivity(args2.sessionId);
|
|
17587
17624
|
}
|
|
17588
17625
|
};
|
|
17589
17626
|
}
|
|
17627
|
+
var ACTIVITY_ROUTE_REPROBE_MS = 10 * 6e4;
|
|
17628
|
+
function isRouteJsonError(text) {
|
|
17629
|
+
try {
|
|
17630
|
+
const parsed = JSON.parse(text);
|
|
17631
|
+
return typeof parsed === "object" && parsed !== null && typeof parsed.error === "string";
|
|
17632
|
+
} catch {
|
|
17633
|
+
return false;
|
|
17634
|
+
}
|
|
17635
|
+
}
|
|
17590
17636
|
|
|
17591
17637
|
// src/inbound-lanes-runtime.ts
|
|
17592
17638
|
var CONVERSATIONAL_LANE = "conversational";
|
|
@@ -46738,9 +46738,9 @@ function createInboundContextClient(args) {
|
|
|
46738
46738
|
cachedTokenExpiresAt = data.expires_at ? new Date(data.expires_at).getTime() - 12e4 : Date.now() + 55 * 6e4;
|
|
46739
46739
|
return cachedToken;
|
|
46740
46740
|
}
|
|
46741
|
-
async function postOnce(body) {
|
|
46741
|
+
async function postOnce(body, path = "/host/inbound-context") {
|
|
46742
46742
|
const token = await getToken();
|
|
46743
|
-
return fetchImpl(`${base}
|
|
46743
|
+
return fetchImpl(`${base}${path}`, {
|
|
46744
46744
|
method: "POST",
|
|
46745
46745
|
headers: { Authorization: `Bearer ${token}`, "Content-Type": "application/json" },
|
|
46746
46746
|
body: JSON.stringify(body),
|
|
@@ -46772,12 +46772,58 @@ function createInboundContextClient(args) {
|
|
|
46772
46772
|
log(`inbound-context: emit threw integration=${args2.sourceIntegration}: ${err.message}`);
|
|
46773
46773
|
}
|
|
46774
46774
|
}
|
|
46775
|
+
let activityUnsupportedUntil = 0;
|
|
46776
|
+
async function emitActivity(sessionId) {
|
|
46777
|
+
if (Date.now() < activityUnsupportedUntil) return;
|
|
46778
|
+
const body = { agent_id: agentId, session_id: sessionId };
|
|
46779
|
+
try {
|
|
46780
|
+
let resp = await postOnce(body, "/host/inbound-activity");
|
|
46781
|
+
if (resp.status === 401) {
|
|
46782
|
+
cachedToken = null;
|
|
46783
|
+
cachedTokenExpiresAt = 0;
|
|
46784
|
+
resp = await postOnce(body, "/host/inbound-activity");
|
|
46785
|
+
}
|
|
46786
|
+
if (resp.status === 404) {
|
|
46787
|
+
const text = await resp.text().catch(() => "");
|
|
46788
|
+
if (isRouteJsonError(text)) {
|
|
46789
|
+
log(`inbound-context: activity POST refused (404): ${text.slice(0, 200)}`);
|
|
46790
|
+
return;
|
|
46791
|
+
}
|
|
46792
|
+
const firstPause = activityUnsupportedUntil === 0;
|
|
46793
|
+
activityUnsupportedUntil = Date.now() + ACTIVITY_ROUTE_REPROBE_MS;
|
|
46794
|
+
if (firstPause) {
|
|
46795
|
+
log(
|
|
46796
|
+
`inbound-context: /host/inbound-activity not on this API yet; notices are not recorded, re-checking every ${ACTIVITY_ROUTE_REPROBE_MS / 6e4}m (ENG-12336)`
|
|
46797
|
+
);
|
|
46798
|
+
}
|
|
46799
|
+
return;
|
|
46800
|
+
}
|
|
46801
|
+
if (!resp.ok) {
|
|
46802
|
+
const text = await resp.text().catch(() => "");
|
|
46803
|
+
log(`inbound-context: activity POST failed (${resp.status}): ${text.slice(0, 200)}`);
|
|
46804
|
+
}
|
|
46805
|
+
} catch (err) {
|
|
46806
|
+
log(`inbound-context: activity emit threw: ${err.message}`);
|
|
46807
|
+
}
|
|
46808
|
+
}
|
|
46775
46809
|
return {
|
|
46776
46810
|
recordInbound(args2) {
|
|
46777
46811
|
void emit(args2);
|
|
46812
|
+
},
|
|
46813
|
+
recordActivity(args2) {
|
|
46814
|
+
void emitActivity(args2.sessionId);
|
|
46778
46815
|
}
|
|
46779
46816
|
};
|
|
46780
46817
|
}
|
|
46818
|
+
var ACTIVITY_ROUTE_REPROBE_MS = 10 * 6e4;
|
|
46819
|
+
function isRouteJsonError(text) {
|
|
46820
|
+
try {
|
|
46821
|
+
const parsed = JSON.parse(text);
|
|
46822
|
+
return typeof parsed === "object" && parsed !== null && typeof parsed.error === "string";
|
|
46823
|
+
} catch {
|
|
46824
|
+
return false;
|
|
46825
|
+
}
|
|
46826
|
+
}
|
|
46781
46827
|
|
|
46782
46828
|
// src/impersonation.ts
|
|
46783
46829
|
var ENV_VAR = "AGT_ACT_AS_AGENT_ID";
|
|
@@ -95,12 +95,12 @@ import {
|
|
|
95
95
|
writeDirectChatSessionState,
|
|
96
96
|
writeEgressAllowlist,
|
|
97
97
|
writePersistentClaudeWrapper
|
|
98
|
-
} from "./chunk-
|
|
99
|
-
import "./chunk-
|
|
98
|
+
} from "./chunk-BSZRE4X6.js";
|
|
99
|
+
import "./chunk-JX4S7KFB.js";
|
|
100
100
|
import "./chunk-XL2HPM67.js";
|
|
101
101
|
import "./chunk-6HBXEJHO.js";
|
|
102
102
|
import "./chunk-XWVM4KPK.js";
|
|
103
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-JYBRZAAK.js";
|
|
104
104
|
import "./chunk-AIUIMEUS.js";
|
|
105
105
|
import "./chunk-DGUM43GV.js";
|
|
106
106
|
export {
|
|
@@ -201,4 +201,4 @@ export {
|
|
|
201
201
|
writeEgressAllowlist,
|
|
202
202
|
writePersistentClaudeWrapper
|
|
203
203
|
};
|
|
204
|
-
//# sourceMappingURL=persistent-session-
|
|
204
|
+
//# sourceMappingURL=persistent-session-K5WFQVXD.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-BSZRE4X6.js";
|
|
4
|
+
import "./chunk-JX4S7KFB.js";
|
|
5
5
|
import "./chunk-XL2HPM67.js";
|
|
6
6
|
import "./chunk-6HBXEJHO.js";
|
|
7
7
|
import "./chunk-XWVM4KPK.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-JYBRZAAK.js";
|
|
9
9
|
import "./chunk-AIUIMEUS.js";
|
|
10
10
|
import "./chunk-DGUM43GV.js";
|
|
11
11
|
|
|
@@ -804,4 +804,4 @@ export {
|
|
|
804
804
|
readAndResetSlackReplyBindingClassifications,
|
|
805
805
|
readAndResetSlackReplyTargetClassifications
|
|
806
806
|
};
|
|
807
|
-
//# sourceMappingURL=responsiveness-probe-
|
|
807
|
+
//# sourceMappingURL=responsiveness-probe-Q5PDMK2L.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionTranscriptDir
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-JX4S7KFB.js";
|
|
4
|
+
import "./chunk-JYBRZAAK.js";
|
|
5
5
|
import "./chunk-DGUM43GV.js";
|
|
6
6
|
|
|
7
7
|
// src/lib/session-auth-dead.ts
|
|
@@ -205,4 +205,4 @@ export {
|
|
|
205
205
|
decideSessionAuthState,
|
|
206
206
|
probeSessionAuth
|
|
207
207
|
};
|
|
208
|
-
//# sourceMappingURL=session-auth-dead-
|
|
208
|
+
//# sourceMappingURL=session-auth-dead-T57ORTYP.js.map
|