@integrity-labs/agt-cli 0.28.493 → 0.28.495
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-SRO2IQ4R.js → chunk-4SQZDAWG.js} +85 -6
- package/dist/chunk-4SQZDAWG.js.map +1 -0
- package/dist/{chunk-3XLUSG32.js → chunk-CAHE6QSE.js} +5 -8
- package/dist/{chunk-3XLUSG32.js.map → chunk-CAHE6QSE.js.map} +1 -1
- package/dist/{claude-pair-runtime-7TSEIWGA.js → claude-pair-runtime-LCQYCW67.js} +2 -2
- package/dist/lib/manager-worker.js +272 -212
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +301 -46
- package/dist/mcp/origami.js +14 -0
- package/dist/mcp/remote-oauth-proxy.js +37 -5
- package/dist/mcp/slack-channel.js +14 -0
- package/dist/mcp/telegram-channel.js +14 -0
- package/dist/{persistent-session-MVAEGE6J.js → persistent-session-TSPVNVQL.js} +2 -2
- package/dist/{responsiveness-probe-6YXN4G6V.js → responsiveness-probe-3LWQKHV2.js} +64 -2
- package/dist/responsiveness-probe-3LWQKHV2.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-SRO2IQ4R.js.map +0 -1
- package/dist/responsiveness-probe-6YXN4G6V.js.map +0 -1
- /package/dist/{claude-pair-runtime-7TSEIWGA.js.map → claude-pair-runtime-LCQYCW67.js.map} +0 -0
- /package/dist/{persistent-session-MVAEGE6J.js.map → persistent-session-TSPVNVQL.js.map} +0 -0
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-CAHE6QSE.js";
|
|
44
44
|
import {
|
|
45
45
|
AnchorSessionClient,
|
|
46
46
|
CHANNEL_REGISTRY,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
requiredMcpWildcard,
|
|
72
72
|
resolveChannels,
|
|
73
73
|
serializeManifestForSlackCli
|
|
74
|
-
} from "../chunk-
|
|
74
|
+
} from "../chunk-4SQZDAWG.js";
|
|
75
75
|
import "../chunk-XWVM4KPK.js";
|
|
76
76
|
|
|
77
77
|
// src/bin/agt.ts
|
|
@@ -4830,7 +4830,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4830
4830
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4831
4831
|
import chalk18 from "chalk";
|
|
4832
4832
|
import ora16 from "ora";
|
|
4833
|
-
var cliVersion = true ? "0.28.
|
|
4833
|
+
var cliVersion = true ? "0.28.495" : "dev";
|
|
4834
4834
|
async function fetchLatestVersion() {
|
|
4835
4835
|
const host2 = getHost();
|
|
4836
4836
|
if (!host2) return null;
|
|
@@ -6002,7 +6002,7 @@ function handleError(err) {
|
|
|
6002
6002
|
}
|
|
6003
6003
|
|
|
6004
6004
|
// src/bin/agt.ts
|
|
6005
|
-
var cliVersion2 = true ? "0.28.
|
|
6005
|
+
var cliVersion2 = true ? "0.28.495" : "dev";
|
|
6006
6006
|
var program = new Command();
|
|
6007
6007
|
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");
|
|
6008
6008
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -5133,6 +5133,26 @@ function getOAuthProvider(definitionId) {
|
|
|
5133
5133
|
}
|
|
5134
5134
|
|
|
5135
5135
|
// ../../packages/core/dist/integrations/connectivity-probe.js
|
|
5136
|
+
function handshakeToolsListOutcome(toolCount) {
|
|
5137
|
+
if (toolCount === void 0) {
|
|
5138
|
+
return {
|
|
5139
|
+
status: "unverified",
|
|
5140
|
+
message: "MCP tools/list returned no readable tool list - handshake succeeded but no capability was proven"
|
|
5141
|
+
};
|
|
5142
|
+
}
|
|
5143
|
+
if (toolCount === 0) {
|
|
5144
|
+
return {
|
|
5145
|
+
status: "unverified",
|
|
5146
|
+
message: "MCP server advertised 0 tools - handshake succeeded but no capability was proven",
|
|
5147
|
+
details: { toolCount: 0 }
|
|
5148
|
+
};
|
|
5149
|
+
}
|
|
5150
|
+
return {
|
|
5151
|
+
status: "ok",
|
|
5152
|
+
message: `${toolCount} tools`,
|
|
5153
|
+
details: { toolCount }
|
|
5154
|
+
};
|
|
5155
|
+
}
|
|
5136
5156
|
var CONNECTIVITY_SEVERITY = {
|
|
5137
5157
|
ok: 0,
|
|
5138
5158
|
unverified: 1,
|
|
@@ -5440,11 +5460,7 @@ async function probeMcpHttp(config, fetchImpl = fetch) {
|
|
|
5440
5460
|
details: { ...toolCount !== void 0 ? { toolCount } : {}, testTool }
|
|
5441
5461
|
};
|
|
5442
5462
|
}
|
|
5443
|
-
return
|
|
5444
|
-
status: "ok",
|
|
5445
|
-
message: toolCount !== void 0 ? `${toolCount} tools` : "reachable",
|
|
5446
|
-
...toolCount !== void 0 ? { details: { toolCount } } : {}
|
|
5447
|
-
};
|
|
5463
|
+
return handshakeToolsListOutcome(toolCount);
|
|
5448
5464
|
} catch (err) {
|
|
5449
5465
|
const isAbort = err?.name === "TimeoutError" || err?.name === "AbortError";
|
|
5450
5466
|
return {
|
|
@@ -7142,6 +7158,65 @@ var DIRECT_CHAT_UPLOAD_MAX_BYTES = 10 * MB2;
|
|
|
7142
7158
|
var AGENT_DIRECTED_NOTICE_KINDS = ["scheduled_task_nudge", "kanban_check"];
|
|
7143
7159
|
var AGENT_DIRECTED_KIND_SET = new Set(AGENT_DIRECTED_NOTICE_KINDS);
|
|
7144
7160
|
|
|
7161
|
+
// ../../packages/core/dist/direct-chat/cursor-advance.js
|
|
7162
|
+
var CURSOR_SHORTFALL_REASONS = [
|
|
7163
|
+
"not_found",
|
|
7164
|
+
"gave_up",
|
|
7165
|
+
"already_delivered",
|
|
7166
|
+
"error",
|
|
7167
|
+
"undiagnosed",
|
|
7168
|
+
"unknown",
|
|
7169
|
+
"unreported",
|
|
7170
|
+
"malformed_count",
|
|
7171
|
+
"other"
|
|
7172
|
+
];
|
|
7173
|
+
var KNOWN_REASONS = new Set(CURSOR_SHORTFALL_REASONS);
|
|
7174
|
+
function normalizeCursorShortfallReason(raw) {
|
|
7175
|
+
if (raw == null || raw === "")
|
|
7176
|
+
return "unreported";
|
|
7177
|
+
return KNOWN_REASONS.has(raw) ? raw : "other";
|
|
7178
|
+
}
|
|
7179
|
+
function classifyCursorAdvance(input) {
|
|
7180
|
+
const body = input.body ?? void 0;
|
|
7181
|
+
if (!input.httpOk || body?.error != null) {
|
|
7182
|
+
const error = body?.error ?? input.statusText ?? (input.httpStatus !== void 0 ? `HTTP ${input.httpStatus}` : "request failed");
|
|
7183
|
+
return { outcome: "failed", error };
|
|
7184
|
+
}
|
|
7185
|
+
const expected = new Set(input.messageIds).size;
|
|
7186
|
+
const raw = body?.consumed;
|
|
7187
|
+
if (raw === void 0 || raw === null) {
|
|
7188
|
+
return { outcome: "advanced", reported: false, expected, consumed: 0 };
|
|
7189
|
+
}
|
|
7190
|
+
if (typeof raw !== "number" || !Number.isSafeInteger(raw) || raw < 0) {
|
|
7191
|
+
if (expected === 0)
|
|
7192
|
+
return { outcome: "advanced", reported: false, expected, consumed: 0 };
|
|
7193
|
+
return {
|
|
7194
|
+
outcome: "shortfall",
|
|
7195
|
+
expected,
|
|
7196
|
+
consumed: 0,
|
|
7197
|
+
reason: "malformed_count",
|
|
7198
|
+
partial: false
|
|
7199
|
+
};
|
|
7200
|
+
}
|
|
7201
|
+
if (raw < expected) {
|
|
7202
|
+
return {
|
|
7203
|
+
outcome: "shortfall",
|
|
7204
|
+
expected,
|
|
7205
|
+
consumed: raw,
|
|
7206
|
+
reason: normalizeCursorShortfallReason(body?.reason),
|
|
7207
|
+
partial: raw > 0
|
|
7208
|
+
};
|
|
7209
|
+
}
|
|
7210
|
+
return { outcome: "advanced", reported: true, expected, consumed: raw };
|
|
7211
|
+
}
|
|
7212
|
+
function cursorShortfallKey(route, reason, partial) {
|
|
7213
|
+
return `${route}|${reason}|${partial ? "true" : "false"}`;
|
|
7214
|
+
}
|
|
7215
|
+
function formatCursorAdvanceShortfall(verdict, ctx) {
|
|
7216
|
+
const cleared = ctx.cleared.length > 0 ? ctx.cleared.join(",") : "none";
|
|
7217
|
+
return `[direct-chat] cursor advance shortfall route=/${ctx.route} site=${ctx.site} session=${ctx.sessionId} expected=${verdict.expected} consumed=${verdict.consumed} reason=${verdict.reason} partial=${verdict.partial} cleared_anyway=${cleared}`;
|
|
7218
|
+
}
|
|
7219
|
+
|
|
7145
7220
|
// ../../packages/core/dist/anchor/types.js
|
|
7146
7221
|
var ANCHOR_API_BASE_URL = "https://api.anchorbrowser.io/v1";
|
|
7147
7222
|
var ANCHOR_API_KEY_HEADER = "anchor-api-key";
|
|
@@ -14395,6 +14470,7 @@ export {
|
|
|
14395
14470
|
DEPLOYMENT_TEMPLATES,
|
|
14396
14471
|
getTemplate,
|
|
14397
14472
|
StreamEncoder,
|
|
14473
|
+
handshakeToolsListOutcome,
|
|
14398
14474
|
bestConnectivityEvidence,
|
|
14399
14475
|
worseConnectivityOutcome,
|
|
14400
14476
|
resolveConnectivityProbe,
|
|
@@ -14402,6 +14478,9 @@ export {
|
|
|
14402
14478
|
probeComposioAccount,
|
|
14403
14479
|
probeComposioMcpToolCall,
|
|
14404
14480
|
probeHttpProvider,
|
|
14481
|
+
classifyCursorAdvance,
|
|
14482
|
+
cursorShortfallKey,
|
|
14483
|
+
formatCursorAdvanceShortfall,
|
|
14405
14484
|
AnchorSessionClient,
|
|
14406
14485
|
isOnboardingArea,
|
|
14407
14486
|
describeOnboardingChannel,
|
|
@@ -14512,4 +14591,4 @@ export {
|
|
|
14512
14591
|
stopAllSessionsAndWait,
|
|
14513
14592
|
getProjectDir
|
|
14514
14593
|
};
|
|
14515
|
-
//# sourceMappingURL=chunk-
|
|
14594
|
+
//# sourceMappingURL=chunk-4SQZDAWG.js.map
|