@integrity-labs/agt-cli 0.28.705 → 0.28.707
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 +5 -5
- package/dist/{chunk-ERBFMEWB.js → chunk-326G325O.js} +13 -4
- package/dist/chunk-326G325O.js.map +1 -0
- package/dist/{chunk-CPR6JCAB.js → chunk-5U45RQEM.js} +4 -4
- package/dist/{chunk-VDHPDNC4.js → chunk-QRGNDW6C.js} +1 -1
- package/dist/{chunk-VDHPDNC4.js.map → chunk-QRGNDW6C.js.map} +1 -1
- package/dist/{claude-pair-runtime-GKB2QQCX.js → claude-pair-runtime-HPYSFXPP.js} +2 -2
- package/dist/lib/manager-worker.js +392 -283
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/index.js +45 -10
- package/dist/{persistent-session-UQBJRLLZ.js → persistent-session-TPP35O6H.js} +3 -3
- package/dist/{responsiveness-probe-Y7HORWZE.js → responsiveness-probe-3HITHSYU.js} +3 -3
- package/dist/{session-auth-dead-DE4KM7PS.js → session-auth-dead-LY5264IN.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-ERBFMEWB.js.map +0 -1
- /package/dist/{chunk-CPR6JCAB.js.map → chunk-5U45RQEM.js.map} +0 -0
- /package/dist/{claude-pair-runtime-GKB2QQCX.js.map → claude-pair-runtime-HPYSFXPP.js.map} +0 -0
- /package/dist/{persistent-session-UQBJRLLZ.js.map → persistent-session-TPP35O6H.js.map} +0 -0
- /package/dist/{responsiveness-probe-Y7HORWZE.js.map → responsiveness-probe-3HITHSYU.js.map} +0 -0
- /package/dist/{session-auth-dead-DE4KM7PS.js.map → session-auth-dead-LY5264IN.js.map} +0 -0
package/dist/mcp/index.js
CHANGED
|
@@ -18867,7 +18867,7 @@ var require_filters = __commonJS({
|
|
|
18867
18867
|
return r.copySafeness(str, res);
|
|
18868
18868
|
}
|
|
18869
18869
|
_exports.indent = indent;
|
|
18870
|
-
function
|
|
18870
|
+
function join5(arr, del, attr) {
|
|
18871
18871
|
del = del || "";
|
|
18872
18872
|
if (attr) {
|
|
18873
18873
|
arr = lib.map(arr, function(v) {
|
|
@@ -18876,7 +18876,7 @@ var require_filters = __commonJS({
|
|
|
18876
18876
|
}
|
|
18877
18877
|
return arr.join(del);
|
|
18878
18878
|
}
|
|
18879
|
-
_exports.join =
|
|
18879
|
+
_exports.join = join5;
|
|
18880
18880
|
function last(arr) {
|
|
18881
18881
|
return arr[arr.length - 1];
|
|
18882
18882
|
}
|
|
@@ -22394,7 +22394,7 @@ ${first.duplicate_hint}` : added;
|
|
|
22394
22394
|
|
|
22395
22395
|
// src/index.ts
|
|
22396
22396
|
import { homedir as homedir3, tmpdir } from "os";
|
|
22397
|
-
import { basename, isAbsolute, join as
|
|
22397
|
+
import { basename, isAbsolute, join as join4, resolve as pathResolve, sep } from "path";
|
|
22398
22398
|
|
|
22399
22399
|
// src/host-file-path.ts
|
|
22400
22400
|
var SKILL_BODY_PATH_MAX_BYTES = 512 * 1024;
|
|
@@ -37311,6 +37311,22 @@ function captureSelfRestartConfirm(opts) {
|
|
|
37311
37311
|
return best.source;
|
|
37312
37312
|
}
|
|
37313
37313
|
|
|
37314
|
+
// ../core/dist/integrations/forwarded-tools-report.js
|
|
37315
|
+
import { readFileSync as readFileSync3, writeFileSync as writeFileSync3 } from "fs";
|
|
37316
|
+
import { join as join3 } from "path";
|
|
37317
|
+
var FORWARDED_TOOLS_REPORT_FILENAME = "forwarded-tools.json";
|
|
37318
|
+
function forwardedToolsReportPath(agentDir) {
|
|
37319
|
+
return join3(agentDir, FORWARDED_TOOLS_REPORT_FILENAME);
|
|
37320
|
+
}
|
|
37321
|
+
function writeForwardedToolsReport(agentDir, report) {
|
|
37322
|
+
try {
|
|
37323
|
+
writeFileSync3(forwardedToolsReportPath(agentDir), JSON.stringify(report), "utf-8");
|
|
37324
|
+
return true;
|
|
37325
|
+
} catch {
|
|
37326
|
+
return false;
|
|
37327
|
+
}
|
|
37328
|
+
}
|
|
37329
|
+
|
|
37314
37330
|
// src/in-container.ts
|
|
37315
37331
|
function isInContainer(env2 = process.env) {
|
|
37316
37332
|
const raw = (env2.AGT_IN_CONTAINER ?? "").trim().toLowerCase();
|
|
@@ -46631,9 +46647,9 @@ async function forwardToolCall(toolName, args) {
|
|
|
46631
46647
|
// root to its canonical form so both sides of the comparison are real
|
|
46632
46648
|
// paths. Falls back to the unresolved join if the dir is missing, which
|
|
46633
46649
|
// then simply refuses (there is nothing to read anyway).
|
|
46634
|
-
agentDir: canonicalAgentDir(
|
|
46650
|
+
agentDir: canonicalAgentDir(join4(homedir3(), ".augmented", AGT_AGENT_CODE_NAME)),
|
|
46635
46651
|
// agent-dir-allow: immediately realpath-resolved to the ADR-0049 agent_id-keyed dir before use as a containment root
|
|
46636
|
-
path: { isAbsolute, resolve: pathResolve, join:
|
|
46652
|
+
path: { isAbsolute, resolve: pathResolve, join: join4, sep },
|
|
46637
46653
|
// O_NOFOLLOW is the whole point of opening by flags: the path is already
|
|
46638
46654
|
// symlink-resolved, so a symlink at the final component means it was
|
|
46639
46655
|
// swapped after the check, and this turns that into an ELOOP.
|
|
@@ -46813,6 +46829,7 @@ async function registerForwardedApiTools() {
|
|
|
46813
46829
|
const localToolNames = LOCAL_TOOL_NAMES;
|
|
46814
46830
|
let registered = 0;
|
|
46815
46831
|
let skipped = 0;
|
|
46832
|
+
const failed = [];
|
|
46816
46833
|
for (const tool of apiTools) {
|
|
46817
46834
|
if (localToolNames.has(tool.name)) {
|
|
46818
46835
|
skipped++;
|
|
@@ -46833,12 +46850,13 @@ async function registerForwardedApiTools() {
|
|
|
46833
46850
|
);
|
|
46834
46851
|
registered++;
|
|
46835
46852
|
} catch (err) {
|
|
46853
|
+
failed.push(tool.name);
|
|
46836
46854
|
console.error(
|
|
46837
46855
|
`augmented-mcp: failed to register forwarded tool '${tool.name}': ${err.message}`
|
|
46838
46856
|
);
|
|
46839
46857
|
}
|
|
46840
46858
|
}
|
|
46841
|
-
return { registered, skipped };
|
|
46859
|
+
return { expected: apiTools.length, registered, skipped, failed };
|
|
46842
46860
|
}
|
|
46843
46861
|
async function listPublishedArtefactsText(params) {
|
|
46844
46862
|
const data = await apiPost(
|
|
@@ -47002,7 +47020,7 @@ async function exportArtefactToFile(dir, artefactId, format, item) {
|
|
|
47002
47020
|
item
|
|
47003
47021
|
});
|
|
47004
47022
|
const fallback = `${artefactId}${item !== void 0 ? `-item-${item + 1}` : ""}.${format}`;
|
|
47005
|
-
const filePath =
|
|
47023
|
+
const filePath = join4(dir, safeDownloadName(data.filename, fallback));
|
|
47006
47024
|
const buf = Buffer.from(data.base64, "base64");
|
|
47007
47025
|
await writeFile(filePath, buf);
|
|
47008
47026
|
return { path: filePath, bytes: buf.length, contentType: data.content_type, version: data.version };
|
|
@@ -47019,7 +47037,7 @@ async function resolveItemCountForPng(artefactId) {
|
|
|
47019
47037
|
return { count: 1, total: 1 };
|
|
47020
47038
|
}
|
|
47021
47039
|
async function downloadArtefactText(params) {
|
|
47022
|
-
const dir = await mkdtemp(
|
|
47040
|
+
const dir = await mkdtemp(join4(tmpdir(), "augmented-artefact-"));
|
|
47023
47041
|
let items;
|
|
47024
47042
|
let truncatedFrom = null;
|
|
47025
47043
|
if (params.format === "pdf") {
|
|
@@ -47343,11 +47361,28 @@ if (isSelfRestartEnabled(process.env) && AGT_AGENT_CODE_NAME) {
|
|
|
47343
47361
|
async function main() {
|
|
47344
47362
|
try {
|
|
47345
47363
|
const result = await registerForwardedApiTools();
|
|
47346
|
-
if (result.
|
|
47364
|
+
if (result.expected > 0) {
|
|
47365
|
+
console.error(
|
|
47366
|
+
`augmented-mcp: forwarded ${result.registered} of ${result.expected} API tool(s), skipped ${result.skipped} local override(s)`
|
|
47367
|
+
);
|
|
47368
|
+
}
|
|
47369
|
+
if (result.failed.length > 0) {
|
|
47347
47370
|
console.error(
|
|
47348
|
-
`augmented-mcp:
|
|
47371
|
+
`augmented-mcp: ${result.failed.length} forwarded tool(s) FAILED to register: ${result.failed.join(", ")}`
|
|
47349
47372
|
);
|
|
47350
47373
|
}
|
|
47374
|
+
if (AGT_AGENT_CODE_NAME) {
|
|
47375
|
+
const wrote = writeForwardedToolsReport(selfRestartAgentDir(AGT_AGENT_CODE_NAME), {
|
|
47376
|
+
expected: result.expected,
|
|
47377
|
+
registered: result.registered,
|
|
47378
|
+
skipped: result.skipped,
|
|
47379
|
+
failed: result.failed,
|
|
47380
|
+
at: (/* @__PURE__ */ new Date()).toISOString()
|
|
47381
|
+
});
|
|
47382
|
+
if (!wrote) {
|
|
47383
|
+
console.error("augmented-mcp: could not write the forwarded-tools report");
|
|
47384
|
+
}
|
|
47385
|
+
}
|
|
47351
47386
|
} catch (err) {
|
|
47352
47387
|
console.error(`augmented-mcp: tool discovery threw: ${err.message}`);
|
|
47353
47388
|
}
|
|
@@ -43,8 +43,8 @@ import {
|
|
|
43
43
|
writeDirectChatSessionState,
|
|
44
44
|
writeEgressAllowlist,
|
|
45
45
|
writePersistentClaudeWrapper
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import "./chunk-
|
|
46
|
+
} from "./chunk-326G325O.js";
|
|
47
|
+
import "./chunk-QRGNDW6C.js";
|
|
48
48
|
import "./chunk-XWVM4KPK.js";
|
|
49
49
|
export {
|
|
50
50
|
EGRESS_BASELINE_DOMAINS,
|
|
@@ -92,4 +92,4 @@ export {
|
|
|
92
92
|
writeEgressAllowlist,
|
|
93
93
|
writePersistentClaudeWrapper
|
|
94
94
|
};
|
|
95
|
-
//# sourceMappingURL=persistent-session-
|
|
95
|
+
//# sourceMappingURL=persistent-session-TPP35O6H.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-326G325O.js";
|
|
4
|
+
import "./chunk-QRGNDW6C.js";
|
|
5
5
|
import "./chunk-XWVM4KPK.js";
|
|
6
6
|
|
|
7
7
|
// src/lib/responsiveness-probe.ts
|
|
@@ -745,4 +745,4 @@ export {
|
|
|
745
745
|
readAndResetSlackReplyBindingClassifications,
|
|
746
746
|
readAndResetSlackReplyTargetClassifications
|
|
747
747
|
};
|
|
748
|
-
//# sourceMappingURL=responsiveness-probe-
|
|
748
|
+
//# sourceMappingURL=responsiveness-probe-3HITHSYU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionTranscriptDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QRGNDW6C.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/session-auth-dead.ts
|
|
6
6
|
import { closeSync, openSync, readSync, readdirSync, statSync } from "fs";
|
|
@@ -203,4 +203,4 @@ export {
|
|
|
203
203
|
decideSessionAuthState,
|
|
204
204
|
probeSessionAuth
|
|
205
205
|
};
|
|
206
|
-
//# sourceMappingURL=session-auth-dead-
|
|
206
|
+
//# sourceMappingURL=session-auth-dead-LY5264IN.js.map
|