@integrity-labs/agt-cli 0.28.192 → 0.28.194
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 +4 -4
- package/dist/{chunk-C7VSGFDC.js → chunk-4D2OW6W6.js} +1 -1
- package/dist/chunk-4D2OW6W6.js.map +1 -0
- package/dist/{chunk-SJ3TWGEN.js → chunk-AABQHAHG.js} +44 -12
- package/dist/chunk-AABQHAHG.js.map +1 -0
- package/dist/{chunk-GRVRRNJD.js → chunk-YFNARV7V.js} +4 -4
- package/dist/{chunk-GRVRRNJD.js.map → chunk-YFNARV7V.js.map} +1 -1
- package/dist/{claude-pair-runtime-NOZN3WKM.js → claude-pair-runtime-LNY256PK.js} +2 -2
- package/dist/lib/manager-worker.js +35 -10
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/slack-channel.js +43 -3
- package/dist/mcp/telegram-channel.js +1 -0
- package/dist/{persistent-session-HXTMZX67.js → persistent-session-HKZD767L.js} +3 -3
- package/dist/{responsiveness-probe-2OV5K45J.js → responsiveness-probe-WGO7BF64.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-C7VSGFDC.js.map +0 -1
- package/dist/chunk-SJ3TWGEN.js.map +0 -1
- /package/dist/{claude-pair-runtime-NOZN3WKM.js.map → claude-pair-runtime-LNY256PK.js.map} +0 -0
- /package/dist/{persistent-session-HXTMZX67.js.map → persistent-session-HKZD767L.js.map} +0 -0
- /package/dist/{responsiveness-probe-2OV5K45J.js.map → responsiveness-probe-WGO7BF64.js.map} +0 -0
|
@@ -7173,6 +7173,7 @@ async function resolveInteractive(cfg, input) {
|
|
|
7173
7173
|
const body = await res.text().catch(() => "");
|
|
7174
7174
|
throw new Error(`resolveInteractive failed (${res.status}): ${body.slice(0, 200)}`);
|
|
7175
7175
|
}
|
|
7176
|
+
return await res.json().catch(() => ({}));
|
|
7176
7177
|
}
|
|
7177
7178
|
async function submitInteractive(cfg, input) {
|
|
7178
7179
|
const res = await apiCall(cfg, "POST", "/host/interactive/submit", {
|
|
@@ -20453,6 +20454,37 @@ function interactiveHostAvailable() {
|
|
|
20453
20454
|
function forwardingHostAvailable() {
|
|
20454
20455
|
return Boolean(AGT_HOST && AGT_API_KEY && AGT_AGENT_ID);
|
|
20455
20456
|
}
|
|
20457
|
+
async function openFormModalViaSlack(triggerId, view, callbackId) {
|
|
20458
|
+
if (!triggerId) {
|
|
20459
|
+
process.stderr.write(
|
|
20460
|
+
`slack-channel(${AGENT_CODE_NAME}): form_open skipped \u2014 no trigger_id for ${hashId(callbackId)}
|
|
20461
|
+
`
|
|
20462
|
+
);
|
|
20463
|
+
return;
|
|
20464
|
+
}
|
|
20465
|
+
try {
|
|
20466
|
+
const res = await fetch("https://slack.com/api/views.open", {
|
|
20467
|
+
method: "POST",
|
|
20468
|
+
headers: {
|
|
20469
|
+
"Content-Type": "application/json; charset=utf-8",
|
|
20470
|
+
Authorization: `Bearer ${BOT_TOKEN}`
|
|
20471
|
+
},
|
|
20472
|
+
body: JSON.stringify({ trigger_id: triggerId, view })
|
|
20473
|
+
});
|
|
20474
|
+
const data = await res.json().catch(() => ({}));
|
|
20475
|
+
if (!data.ok) {
|
|
20476
|
+
process.stderr.write(
|
|
20477
|
+
`slack-channel(${AGENT_CODE_NAME}): views.open failed for ${hashId(callbackId)}: ${data.error}
|
|
20478
|
+
`
|
|
20479
|
+
);
|
|
20480
|
+
}
|
|
20481
|
+
} catch (err) {
|
|
20482
|
+
process.stderr.write(
|
|
20483
|
+
`slack-channel(${AGENT_CODE_NAME}): views.open threw for ${hashId(callbackId)}: ${err.message}
|
|
20484
|
+
`
|
|
20485
|
+
);
|
|
20486
|
+
}
|
|
20487
|
+
}
|
|
20456
20488
|
async function postSlackMessageWithTs(payload) {
|
|
20457
20489
|
const augmentedMeta = buildAugmentedSlackMetadata();
|
|
20458
20490
|
const payloadWithLabel = augmentedMeta ? { ...payload, metadata: augmentedMeta } : payload;
|
|
@@ -21080,7 +21112,7 @@ async function connectSocketMode() {
|
|
|
21080
21112
|
return;
|
|
21081
21113
|
}
|
|
21082
21114
|
try {
|
|
21083
|
-
await runtime.resolveInteractive(
|
|
21115
|
+
const result = await runtime.resolveInteractive(
|
|
21084
21116
|
{
|
|
21085
21117
|
apiHost: AGT_HOST,
|
|
21086
21118
|
apiKey: AGT_API_KEY,
|
|
@@ -21092,11 +21124,19 @@ async function connectSocketMode() {
|
|
|
21092
21124
|
respondedByUser: msg.payload.user?.id,
|
|
21093
21125
|
originalBlocks: msg.payload.message?.blocks,
|
|
21094
21126
|
responseUrl: msg.payload.response_url,
|
|
21095
|
-
// ENG-7170:
|
|
21096
|
-
//
|
|
21127
|
+
// ENG-7170: forwarded so the resolver's form_request branch can
|
|
21128
|
+
// correlate; the modal itself is opened HERE (below).
|
|
21097
21129
|
triggerId: msg.payload.trigger_id
|
|
21098
21130
|
}
|
|
21099
21131
|
);
|
|
21132
|
+
if (result?.form_open?.ok && result.form_open.view) {
|
|
21133
|
+
await openFormModalViaSlack(msg.payload.trigger_id, result.form_open.view, decoded.callbackId);
|
|
21134
|
+
} else if (result?.form_open && !result.form_open.ok) {
|
|
21135
|
+
process.stderr.write(
|
|
21136
|
+
`slack-channel(${AGENT_CODE_NAME}): form_open declined for ${hashId(decoded.callbackId)} reason=${result.form_open.reason}
|
|
21137
|
+
`
|
|
21138
|
+
);
|
|
21139
|
+
}
|
|
21100
21140
|
} catch (err) {
|
|
21101
21141
|
process.stderr.write(
|
|
21102
21142
|
`slack-channel(${AGENT_CODE_NAME}): resolveInteractive failed for ${hashId(decoded.callbackId)}: ${err.message}
|
|
@@ -7173,6 +7173,7 @@ async function resolveInteractive(cfg, input) {
|
|
|
7173
7173
|
const body = await res.text().catch(() => "");
|
|
7174
7174
|
throw new Error(`resolveInteractive failed (${res.status}): ${body.slice(0, 200)}`);
|
|
7175
7175
|
}
|
|
7176
|
+
return await res.json().catch(() => ({}));
|
|
7176
7177
|
}
|
|
7177
7178
|
async function submitInteractive(cfg, input) {
|
|
7178
7179
|
const res = await apiCall(cfg, "POST", "/host/interactive/submit", {
|
|
@@ -34,8 +34,8 @@ import {
|
|
|
34
34
|
writeDirectChatSessionState,
|
|
35
35
|
writeEgressAllowlist,
|
|
36
36
|
writePersistentClaudeWrapper
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-AABQHAHG.js";
|
|
38
|
+
import "./chunk-4D2OW6W6.js";
|
|
39
39
|
import "./chunk-XWVM4KPK.js";
|
|
40
40
|
export {
|
|
41
41
|
EGRESS_BASELINE_DOMAINS,
|
|
@@ -74,4 +74,4 @@ export {
|
|
|
74
74
|
writeEgressAllowlist,
|
|
75
75
|
writePersistentClaudeWrapper
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=persistent-session-
|
|
77
|
+
//# sourceMappingURL=persistent-session-HKZD767L.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-AABQHAHG.js";
|
|
4
|
+
import "./chunk-4D2OW6W6.js";
|
|
5
5
|
import "./chunk-XWVM4KPK.js";
|
|
6
6
|
|
|
7
7
|
// src/lib/responsiveness-probe.ts
|
|
@@ -304,4 +304,4 @@ export {
|
|
|
304
304
|
readAndResetChannelDeflections,
|
|
305
305
|
readAndResetChannelLaneClassifications
|
|
306
306
|
};
|
|
307
|
-
//# sourceMappingURL=responsiveness-probe-
|
|
307
|
+
//# sourceMappingURL=responsiveness-probe-WGO7BF64.js.map
|