@integrity-labs/agt-cli 0.28.1189 → 0.28.1191
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 +6 -6
- package/dist/{chunk-6C22ELAZ.js → chunk-5RDPFXWO.js} +54 -21
- package/dist/chunk-5RDPFXWO.js.map +1 -0
- package/dist/{chunk-GYY5LC6U.js → chunk-7T4CZ2NS.js} +2 -2
- package/dist/{chunk-M5QY6SXB.js → chunk-GRU6GNLP.js} +31 -5
- package/dist/chunk-GRU6GNLP.js.map +1 -0
- package/dist/{chunk-CJ3KE25W.js → chunk-L5BWZX3Z.js} +3 -3
- package/dist/{chunk-BG7IPLTE.js → chunk-VS3QXUDM.js} +2 -2
- package/dist/{claude-code-updater-CQ2SWFEJ.js → claude-code-updater-JPVLPWVR.js} +3 -3
- package/dist/{claude-pair-runtime-N54HX4ZR.js → claude-pair-runtime-JXXYGKWS.js} +3 -3
- package/dist/lib/manager-worker.js +28 -21
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-NL7N3MA4.js → persistent-session-NSA3UYRF.js} +4 -4
- package/dist/{responsiveness-probe-BMLAPOIY.js → responsiveness-probe-MWH3BKAL.js} +4 -4
- package/dist/{session-auth-dead-PTHDHHK4.js → session-auth-dead-RYU7ZB56.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-6C22ELAZ.js.map +0 -1
- package/dist/chunk-M5QY6SXB.js.map +0 -1
- /package/dist/{chunk-GYY5LC6U.js.map → chunk-7T4CZ2NS.js.map} +0 -0
- /package/dist/{chunk-CJ3KE25W.js.map → chunk-L5BWZX3Z.js.map} +0 -0
- /package/dist/{chunk-BG7IPLTE.js.map → chunk-VS3QXUDM.js.map} +0 -0
- /package/dist/{claude-code-updater-CQ2SWFEJ.js.map → claude-code-updater-JPVLPWVR.js.map} +0 -0
- /package/dist/{claude-pair-runtime-N54HX4ZR.js.map → claude-pair-runtime-JXXYGKWS.js.map} +0 -0
- /package/dist/{persistent-session-NL7N3MA4.js.map → persistent-session-NSA3UYRF.js.map} +0 -0
- /package/dist/{responsiveness-probe-BMLAPOIY.js.map → responsiveness-probe-MWH3BKAL.js.map} +0 -0
- /package/dist/{session-auth-dead-PTHDHHK4.js.map → session-auth-dead-RYU7ZB56.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeClaudeProjectPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GRU6GNLP.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/daily-session.ts
|
|
6
6
|
import { randomUUID } from "crypto";
|
|
@@ -240,4 +240,4 @@ export {
|
|
|
240
240
|
peekPreviousSession,
|
|
241
241
|
readDailySessionPin
|
|
242
242
|
};
|
|
243
|
-
//# sourceMappingURL=chunk-
|
|
243
|
+
//# sourceMappingURL=chunk-7T4CZ2NS.js.map
|
|
@@ -1260,6 +1260,25 @@ var REQUIRE_APPROVAL_HOW = {
|
|
|
1260
1260
|
` \`check_approval\` says it is approved.`
|
|
1261
1261
|
]
|
|
1262
1262
|
};
|
|
1263
|
+
var REQUIRE_APPROVAL_DELETE_SCOPE = [
|
|
1264
|
+
` What \`delete\` covers: removing anything that cannot be recovered or is not only`,
|
|
1265
|
+
` yours.`,
|
|
1266
|
+
` - work that exists only in your directory: uncommitted changes, unpushed commits,`,
|
|
1267
|
+
` stashes, customer documents, memory files;`,
|
|
1268
|
+
` - anything shared or outside your own agent directory: remote branches, databases,`,
|
|
1269
|
+
` other agents' files, \`/tmp\`;`,
|
|
1270
|
+
` - anything customers or the platform can see.`,
|
|
1271
|
+
` It does not cover your own rebuildable files, which need no approval: package caches,`,
|
|
1272
|
+
` build output, and your own scratch files under your agent directory (never \`/tmp\`,`,
|
|
1273
|
+
` which other agents share). A git worktree or local branch joins that group only`,
|
|
1274
|
+
` when you have checked, against the remote as it is now and at the moment you remove`,
|
|
1275
|
+
` it, that its tree is clean with ignored files included, there are no stashes, nothing`,
|
|
1276
|
+
` is unpushed, and it is merged into, or fully on a branch that still exists on, the`,
|
|
1277
|
+
` remote, and that it is not your base clone, has no open pull request, and is not in`,
|
|
1278
|
+
` use by a task of yours that is still in progress or waiting (the`,
|
|
1279
|
+
` \`reclaim-stale-worktrees\` skill, where your org has it, walks through these).`,
|
|
1280
|
+
` If you cannot check, or are unsure which list something is on, treat it as a delete.`
|
|
1281
|
+
];
|
|
1263
1282
|
var REQUIRE_APPROVAL_EMAIL_DETAIL = [
|
|
1264
1283
|
` For an email, pass \`detail.email\` = { to, from, subject } so your manager sees who it`,
|
|
1265
1284
|
` goes to.`
|
|
@@ -1308,7 +1327,7 @@ function requireApprovalActions(config) {
|
|
|
1308
1327
|
const raw = config?.["actions"];
|
|
1309
1328
|
if (!Array.isArray(raw))
|
|
1310
1329
|
return null;
|
|
1311
|
-
const actions = raw.filter((a) => typeof a === "string" && a.trim() !== "").map((a) => a.trim());
|
|
1330
|
+
const actions = raw.filter((a) => typeof a === "string" && a.trim() !== "").map((a) => a.trim().toLowerCase());
|
|
1312
1331
|
return actions.length > 0 ? actions : null;
|
|
1313
1332
|
}
|
|
1314
1333
|
function requireApprovalHowLines(g, level, holds) {
|
|
@@ -1319,8 +1338,10 @@ function requireApprovalHowLines(g, level, holds) {
|
|
|
1319
1338
|
const namesOther = actions === null || actions.some((a) => a !== REQUIRE_APPROVAL_EMAIL_ACTION);
|
|
1320
1339
|
const asksAboutEmail = namesEmail && emailHold === null && domainHold === null;
|
|
1321
1340
|
const ask = namesOther || asksAboutEmail || namesEmail && domainHold !== null;
|
|
1341
|
+
const namesDelete = actions === null || actions.includes("delete");
|
|
1322
1342
|
return [
|
|
1323
1343
|
...ask ? REQUIRE_APPROVAL_HOW[level] : [],
|
|
1344
|
+
...namesDelete ? REQUIRE_APPROVAL_DELETE_SCOPE : [],
|
|
1324
1345
|
...asksAboutEmail ? REQUIRE_APPROVAL_EMAIL_DETAIL : [],
|
|
1325
1346
|
...namesEmail && emailHold !== null ? requireApprovalEmailException(emailHold) : [],
|
|
1326
1347
|
...namesEmail && domainHold !== null ? requireApprovalDomainHoldException(domainHold.covered) : []
|
|
@@ -14366,6 +14387,9 @@ async function parseRpc2(res, expectedId) {
|
|
|
14366
14387
|
return msg;
|
|
14367
14388
|
return null;
|
|
14368
14389
|
}
|
|
14390
|
+
function redactSentHeaders(text, headers) {
|
|
14391
|
+
return Object.values(headers ?? {}).filter((value) => value.length >= 8).reduce((out, value) => out.split(value).join("[redacted]"), text);
|
|
14392
|
+
}
|
|
14369
14393
|
async function probeComposioMcpToolCall(config, fetchImpl = fetch) {
|
|
14370
14394
|
const timeoutMs = config.timeoutMs ?? DEFAULT_TIMEOUT_MS2;
|
|
14371
14395
|
const baseHeaders = {
|
|
@@ -14440,8 +14464,9 @@ async function probeComposioMcpToolCall(config, fetchImpl = fetch) {
|
|
|
14440
14464
|
const errText = callRpc?.["error"]?.message;
|
|
14441
14465
|
const resContent = callRpc?.["result"]?.content;
|
|
14442
14466
|
const raw = errText ?? (resContent ?? []).map((c) => c.text ?? "").join(" ").trim();
|
|
14443
|
-
|
|
14444
|
-
|
|
14467
|
+
const response = redactSentHeaders(raw, config.headers);
|
|
14468
|
+
if (response)
|
|
14469
|
+
baseDetails.response = response.length > 2e3 ? `${response.slice(0, 2e3)}\u2026` : response;
|
|
14445
14470
|
}
|
|
14446
14471
|
const rpcErrMsg = callRpc && "error" in callRpc ? callRpc["error"]?.message ?? "" : "";
|
|
14447
14472
|
const result = callRpc?.["result"];
|
|
@@ -14449,7 +14474,8 @@ async function probeComposioMcpToolCall(config, fetchImpl = fetch) {
|
|
|
14449
14474
|
const failed = Boolean(rpcErrMsg) || Boolean(result?.isError) || isComposioFailureEnvelope(contentText2);
|
|
14450
14475
|
if (failed) {
|
|
14451
14476
|
const failureText = [rpcErrMsg, contentText2].filter(Boolean).join(" ");
|
|
14452
|
-
const
|
|
14477
|
+
const redactedFailure = redactSentHeaders(failureText, config.headers);
|
|
14478
|
+
const snippet = redactedFailure.length > 200 ? `${redactedFailure.slice(0, 200)}\u2026` : redactedFailure;
|
|
14453
14479
|
const kind = classifyToolCallFailure(failureText);
|
|
14454
14480
|
if (kind === "account") {
|
|
14455
14481
|
return {
|
|
@@ -17585,4 +17611,4 @@ export {
|
|
|
17585
17611
|
isForcedUpdatePastDeadline,
|
|
17586
17612
|
shouldMintReplacementKey
|
|
17587
17613
|
};
|
|
17588
|
-
//# sourceMappingURL=chunk-
|
|
17614
|
+
//# sourceMappingURL=chunk-GRU6GNLP.js.map
|