@integrity-labs/agt-cli 0.28.1260 → 0.28.1261
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-PXVHBJBB.js → api-client-2YLFNHFZ.js} +3 -3
- package/dist/bin/agt.js +7 -7
- package/dist/{chunk-UKZ3NXB7.js → chunk-335HKIDZ.js} +2 -2
- package/dist/{chunk-7EEU3X3T.js → chunk-6NHFZYUP.js} +3 -3
- package/dist/{chunk-E7DKUEXC.js → chunk-I2NQQOMD.js} +3 -3
- package/dist/{chunk-LLVL6LIB.js → chunk-JYSPPCHG.js} +2 -2
- package/dist/{chunk-UQLSI3C7.js → chunk-QFLR5EFT.js} +97 -5
- package/dist/chunk-QFLR5EFT.js.map +1 -0
- package/dist/{chunk-NABJJPLW.js → chunk-ZEJUBTXJ.js} +441 -254
- package/dist/chunk-ZEJUBTXJ.js.map +1 -0
- package/dist/{claude-code-updater-OXTQF5E5.js → claude-code-updater-B2BWPRFE.js} +3 -3
- package/dist/{claude-pair-runtime-BBOAF76W.js → claude-pair-runtime-FNDHAPXR.js} +3 -3
- package/dist/lib/manager-worker.js +580 -427
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +93 -1
- package/dist/mcp/index.js +93 -1
- package/dist/mcp/origami.js +93 -1
- package/dist/mcp/slack-channel.js +93 -1
- package/dist/mcp/telegram-channel.js +93 -1
- package/dist/{persistent-session-XPDKIBEM.js → persistent-session-LHQLLU4U.js} +4 -4
- package/dist/{responsiveness-probe-4B6Y2446.js → responsiveness-probe-KDSNPKUY.js} +4 -4
- package/dist/{session-auth-dead-4C7AK3A6.js → session-auth-dead-3IHR4M2B.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-NABJJPLW.js.map +0 -1
- package/dist/chunk-UQLSI3C7.js.map +0 -1
- /package/dist/{api-client-PXVHBJBB.js.map → api-client-2YLFNHFZ.js.map} +0 -0
- /package/dist/{chunk-UKZ3NXB7.js.map → chunk-335HKIDZ.js.map} +0 -0
- /package/dist/{chunk-7EEU3X3T.js.map → chunk-6NHFZYUP.js.map} +0 -0
- /package/dist/{chunk-E7DKUEXC.js.map → chunk-I2NQQOMD.js.map} +0 -0
- /package/dist/{chunk-LLVL6LIB.js.map → chunk-JYSPPCHG.js.map} +0 -0
- /package/dist/{claude-code-updater-OXTQF5E5.js.map → claude-code-updater-B2BWPRFE.js.map} +0 -0
- /package/dist/{claude-pair-runtime-BBOAF76W.js.map → claude-pair-runtime-FNDHAPXR.js.map} +0 -0
- /package/dist/{persistent-session-XPDKIBEM.js.map → persistent-session-LHQLLU4U.js.map} +0 -0
- /package/dist/{responsiveness-probe-4B6Y2446.js.map → responsiveness-probe-KDSNPKUY.js.map} +0 -0
- /package/dist/{session-auth-dead-4C7AK3A6.js.map → session-auth-dead-3IHR4M2B.js.map} +0 -0
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
mintRotatedHostKey,
|
|
16
16
|
probeHostKey,
|
|
17
17
|
setConfigHash
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-6NHFZYUP.js";
|
|
19
|
+
import "./chunk-QFLR5EFT.js";
|
|
20
20
|
import "./chunk-DGUM43GV.js";
|
|
21
21
|
export {
|
|
22
22
|
ApiError,
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
probeHostKey,
|
|
37
37
|
setConfigHash
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=api-client-
|
|
39
|
+
//# sourceMappingURL=api-client-2YLFNHFZ.js.map
|
package/dist/bin/agt.js
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
success,
|
|
32
32
|
table,
|
|
33
33
|
warn
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-ZEJUBTXJ.js";
|
|
35
35
|
import {
|
|
36
36
|
ApiError,
|
|
37
37
|
PROD_AGT_HOST,
|
|
@@ -42,17 +42,17 @@ import {
|
|
|
42
42
|
getHost,
|
|
43
43
|
getHostId,
|
|
44
44
|
setActiveTeam
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-6NHFZYUP.js";
|
|
46
46
|
import {
|
|
47
47
|
getProjectDir,
|
|
48
48
|
isSessionResumeDisabled,
|
|
49
49
|
readDirectChatSessionState
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-I2NQQOMD.js";
|
|
51
51
|
import {
|
|
52
52
|
markDailySessionSpawn,
|
|
53
53
|
sessionFileExists,
|
|
54
54
|
sessionTranscriptDir
|
|
55
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-JYSPPCHG.js";
|
|
56
56
|
import "../chunk-HYQ7VOC3.js";
|
|
57
57
|
import "../chunk-6HBXEJHO.js";
|
|
58
58
|
import "../chunk-XWVM4KPK.js";
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
requiredMcpWildcard,
|
|
86
86
|
resolveChannels,
|
|
87
87
|
serializeManifestForSlackCli
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-QFLR5EFT.js";
|
|
89
89
|
import "../chunk-AIUIMEUS.js";
|
|
90
90
|
import "../chunk-DGUM43GV.js";
|
|
91
91
|
|
|
@@ -5207,7 +5207,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5207
5207
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5208
5208
|
import chalk17 from "chalk";
|
|
5209
5209
|
import ora15 from "ora";
|
|
5210
|
-
var cliVersion = true ? "0.28.
|
|
5210
|
+
var cliVersion = true ? "0.28.1261" : "dev";
|
|
5211
5211
|
async function fetchLatestVersion() {
|
|
5212
5212
|
const host2 = getHost();
|
|
5213
5213
|
if (!host2) return null;
|
|
@@ -6467,7 +6467,7 @@ function handleError(err) {
|
|
|
6467
6467
|
}
|
|
6468
6468
|
|
|
6469
6469
|
// src/bin/agt.ts
|
|
6470
|
-
var cliVersion2 = true ? "0.28.
|
|
6470
|
+
var cliVersion2 = true ? "0.28.1261" : "dev";
|
|
6471
6471
|
var program = new Command();
|
|
6472
6472
|
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");
|
|
6473
6473
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-XWVM4KPK.js";
|
|
5
5
|
import {
|
|
6
6
|
FORCED_UPDATE_HARD_DEADLINE_MS
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QFLR5EFT.js";
|
|
8
8
|
import {
|
|
9
9
|
effectiveClaudeJsonPath
|
|
10
10
|
} from "./chunk-AIUIMEUS.js";
|
|
@@ -722,4 +722,4 @@ export {
|
|
|
722
722
|
probeClaudeInstalls,
|
|
723
723
|
maybeUpdateClaudeCode
|
|
724
724
|
};
|
|
725
|
-
//# sourceMappingURL=chunk-
|
|
725
|
+
//# sourceMappingURL=chunk-335HKIDZ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HOST_ROTATE_KEY_CONFLICT
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QFLR5EFT.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/config.ts
|
|
6
6
|
import { readFileSync, writeFileSync, mkdirSync, existsSync } from "fs";
|
|
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// src/lib/api-client.ts
|
|
106
|
-
var agtCliVersion = true ? "0.28.
|
|
106
|
+
var agtCliVersion = true ? "0.28.1261" : "dev";
|
|
107
107
|
var lastConfigHash = null;
|
|
108
108
|
function setConfigHash(hash) {
|
|
109
109
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -468,4 +468,4 @@ export {
|
|
|
468
468
|
api,
|
|
469
469
|
getHostId
|
|
470
470
|
};
|
|
471
|
-
//# sourceMappingURL=chunk-
|
|
471
|
+
//# sourceMappingURL=chunk-6NHFZYUP.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
rotateDailySession,
|
|
5
5
|
sessionFileExists,
|
|
6
6
|
todayLocalIso
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JYSPPCHG.js";
|
|
8
8
|
import {
|
|
9
9
|
classifyUnanswerablePane,
|
|
10
10
|
customApiKeyDialogKeys,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
remoteMcpConnectionEnvInfix,
|
|
53
53
|
remoteMcpConnectionLabel,
|
|
54
54
|
remoteMcpConnectionScopedEnvVar
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-QFLR5EFT.js";
|
|
56
56
|
import {
|
|
57
57
|
CLAUDE_CONFIG_DIR_ENV,
|
|
58
58
|
approveApiKeyInClaudeConfig,
|
|
@@ -6343,4 +6343,4 @@ export {
|
|
|
6343
6343
|
stopAllSessionsAndWait,
|
|
6344
6344
|
getProjectDir
|
|
6345
6345
|
};
|
|
6346
|
-
//# sourceMappingURL=chunk-
|
|
6346
|
+
//# sourceMappingURL=chunk-I2NQQOMD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeClaudeProjectPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QFLR5EFT.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/daily-session.ts
|
|
6
6
|
import { randomUUID } from "crypto";
|
|
@@ -244,4 +244,4 @@ export {
|
|
|
244
244
|
peekPreviousSession,
|
|
245
245
|
readDailySessionPin
|
|
246
246
|
};
|
|
247
|
-
//# sourceMappingURL=chunk-
|
|
247
|
+
//# sourceMappingURL=chunk-JYSPPCHG.js.map
|
|
@@ -1885,9 +1885,9 @@ variable, nothing at \`/\`.** The dangerous-rm guard fires on those even with
|
|
|
1885
1885
|
bypass on and freezes you on a prompt nothing can answer (five agents, up to
|
|
1886
1886
|
15h). If a cleanup can't be written that way, skip it.
|
|
1887
1887
|
|
|
1888
|
-
Scratch
|
|
1889
|
-
|
|
1890
|
-
|
|
1888
|
+
Scratch is swept: a file unchanged for ${SCRATCH_RETENTION_DAYS} days can go even while you read
|
|
1889
|
+
it, and a busy folder may keep old ones longer. To keep something, use
|
|
1890
|
+
\`project/\`, commit it, or publish it as an artefact.
|
|
1891
1891
|
|
|
1892
1892
|
## Development Workflow
|
|
1893
1893
|
|
|
@@ -6526,6 +6526,43 @@ var FLAG_REGISTRY = [
|
|
|
6526
6526
|
flagType: "boolean",
|
|
6527
6527
|
defaultValue: false
|
|
6528
6528
|
},
|
|
6529
|
+
{
|
|
6530
|
+
key: "scratch-sweep-held",
|
|
6531
|
+
description: "ENG-11877: stops ALL scratch sweeping for an agent, including the existing tree rule, for files someone has asked to keep. Resolved per agent by the manager. Sticky on the host: once seen it is written to a marker outside scratch, which keeps the agent held until heartbeats that evaluated it find the flag off for 10 minutes, so a restart or a failed flag read cannot let a sweep through. A host only honours it once its CLI has the reader: check reach before relying on it. Off is the safe default for everyone else.",
|
|
6532
|
+
sensitive: true,
|
|
6533
|
+
flagType: "boolean",
|
|
6534
|
+
defaultValue: false,
|
|
6535
|
+
// No published agt-cli has this reader yet, and a guessed floor would report reach
|
|
6536
|
+
// on hosts that can't act on it. So this reads as "no host yet" on purpose, the
|
|
6537
|
+
// safe direction. ENG-11877 re-pins it from the published dist after merge.
|
|
6538
|
+
since: "0.28.999999"
|
|
6539
|
+
},
|
|
6540
|
+
{
|
|
6541
|
+
key: "scratch-sweep-per-file",
|
|
6542
|
+
description: "ENG-11877: also expire old files inside scratch folders still in use, instead of keeping a whole folder while anything in it is fresh. IRREVERSIBLE on its first pass: every file unchanged for 7 days goes, customer documents included, so arm it per agent and read scratch-sweep-dry-run first. Off = the tree rule only.",
|
|
6543
|
+
sensitive: true,
|
|
6544
|
+
// CodeRabbit on #7378: `sensitive` only forces a confirmation; it does not say
|
|
6545
|
+
// WHO. Its first pass irreversibly deletes old customer files, and arming it is
|
|
6546
|
+
// Brad's rollout decision (ENG-11877), so an org owner/admin must not be able to
|
|
6547
|
+
// switch it on for their own agents. Only the cross-org admin route can write it.
|
|
6548
|
+
platformAdminOnly: true,
|
|
6549
|
+
flagType: "boolean",
|
|
6550
|
+
defaultValue: false,
|
|
6551
|
+
// No published agt-cli has this reader yet, and a guessed floor would report reach
|
|
6552
|
+
// on hosts that can't act on it. So this reads as "no host yet" on purpose, the
|
|
6553
|
+
// safe direction. ENG-11877 re-pins it from the published dist after merge.
|
|
6554
|
+
since: "0.28.999999"
|
|
6555
|
+
},
|
|
6556
|
+
{
|
|
6557
|
+
key: "scratch-sweep-dry-run",
|
|
6558
|
+
description: "ENG-11877: count what scratch-sweep-per-file would remove and log it to manager.log every 6 hours ([scratch] [sweep-dry-run]). Metadata only: never opens a file, never logs a name, removes nothing extra.",
|
|
6559
|
+
flagType: "boolean",
|
|
6560
|
+
defaultValue: false,
|
|
6561
|
+
// No published agt-cli has this reader yet, and a guessed floor would report reach
|
|
6562
|
+
// on hosts that can't act on it. So this reads as "no host yet" on purpose, the
|
|
6563
|
+
// safe direction. ENG-11877 re-pins it from the published dist after merge.
|
|
6564
|
+
since: "0.28.999999"
|
|
6565
|
+
},
|
|
6529
6566
|
{
|
|
6530
6567
|
key: "broker-read-jobs",
|
|
6531
6568
|
description: `Slow broker READ tools finish in a background job (ENG-11476, ADR-0129). When on for an org, an opted-in read tool (Pronto Xi first) that misses an 18s grace window answers "still running, call again with the same arguments" and finishes in the broker-read-job worker instead of timing out. Off = today's synchronous call, so false is the safe value. Evaluated in the API per org, team and agent.`,
|
|
@@ -18270,7 +18307,10 @@ var GITHUB_EVENT_RULES = {
|
|
|
18270
18307
|
pull_request_review: { actions: ["submitted"] },
|
|
18271
18308
|
check_suite: { actions: ["completed"] },
|
|
18272
18309
|
issues: { actions: ["opened", "closed"] },
|
|
18273
|
-
issue_comment: { actions: ["created"] }
|
|
18310
|
+
issue_comment: { actions: ["created"] },
|
|
18311
|
+
// ENG-12123 (CS-2564): a deployment's status changed. GitHub sends one
|
|
18312
|
+
// deployment_status event per state change, always with action `created`.
|
|
18313
|
+
deployment_status: { actions: ["created"] }
|
|
18274
18314
|
};
|
|
18275
18315
|
var GITHUB_WEBHOOK_EVENTS = Object.keys(GITHUB_EVENT_RULES);
|
|
18276
18316
|
var REPO_FULL_NAME = /^[A-Za-z0-9](?:[A-Za-z0-9-]{0,38})\/[A-Za-z0-9._-]{1,100}$/;
|
|
@@ -18293,6 +18333,28 @@ var CHECK_CONCLUSIONS = /* @__PURE__ */ new Set([
|
|
|
18293
18333
|
"startup_failure"
|
|
18294
18334
|
]);
|
|
18295
18335
|
var ISSUE_STATE_REASONS = /* @__PURE__ */ new Set(["completed", "not_planned", "reopened", "duplicate"]);
|
|
18336
|
+
var DEPLOYMENT_STATES = /* @__PURE__ */ new Set(["success", "failure", "error", "pending", "in_progress", "queued", "inactive"]);
|
|
18337
|
+
var ENVIRONMENT_TOKEN = /^[A-Za-z0-9][A-Za-z0-9._/:-]{0,63}$/;
|
|
18338
|
+
var ACTIONS_RUN_PATH = /^\/([^/]+)\/([^/]+)\/actions\/runs\/([1-9][0-9]{0,18})(?:\/job\/([1-9][0-9]{0,18}))?\/?$/;
|
|
18339
|
+
function githubActionsRunUrl(v, repo) {
|
|
18340
|
+
const s = str(v);
|
|
18341
|
+
if (s === null || s.length > 500)
|
|
18342
|
+
return null;
|
|
18343
|
+
let u;
|
|
18344
|
+
try {
|
|
18345
|
+
u = new URL(s);
|
|
18346
|
+
} catch {
|
|
18347
|
+
return null;
|
|
18348
|
+
}
|
|
18349
|
+
if (u.protocol !== "https:" || u.username || u.password || u.port || u.hostname !== "github.com")
|
|
18350
|
+
return null;
|
|
18351
|
+
const m = ACTIONS_RUN_PATH.exec(u.pathname);
|
|
18352
|
+
if (!m)
|
|
18353
|
+
return null;
|
|
18354
|
+
if (`${m[1]}/${m[2]}`.toLowerCase() !== repo.toLowerCase())
|
|
18355
|
+
return null;
|
|
18356
|
+
return `https://github.com/${repo}/actions/runs/${m[3]}${m[4] ? `/job/${m[4]}` : ""}`;
|
|
18357
|
+
}
|
|
18296
18358
|
function asDict(v) {
|
|
18297
18359
|
return v !== null && typeof v === "object" && !Array.isArray(v) ? v : null;
|
|
18298
18360
|
}
|
|
@@ -18438,6 +18500,36 @@ function extractGithubFacts(event, payload) {
|
|
|
18438
18500
|
summary: `Issue #${n2} ${action} in ${repo}`
|
|
18439
18501
|
};
|
|
18440
18502
|
}
|
|
18503
|
+
if (event === "deployment_status") {
|
|
18504
|
+
const status = asDict(root["deployment_status"]);
|
|
18505
|
+
const deployment = asDict(root["deployment"]);
|
|
18506
|
+
if (!status || !deployment)
|
|
18507
|
+
return null;
|
|
18508
|
+
const state = inSet(status["state"], DEPLOYMENT_STATES);
|
|
18509
|
+
const environment = shaped(status["environment"], ENVIRONMENT_TOKEN) ?? shaped(deployment["environment"], ENVIRONMENT_TOKEN);
|
|
18510
|
+
details.push(["Environment", environment ?? "(name withheld: not a plain token)"]);
|
|
18511
|
+
details.push(["State", state ?? "unknown"]);
|
|
18512
|
+
const deploymentId = posInt(deployment["id"]);
|
|
18513
|
+
if (deploymentId !== null)
|
|
18514
|
+
details.push(["Deployment id", String(deploymentId)]);
|
|
18515
|
+
const sha = shaped(str(deployment["sha"])?.toLowerCase(), SHA);
|
|
18516
|
+
if (sha)
|
|
18517
|
+
details.push(["Commit", sha]);
|
|
18518
|
+
const creator = shaped(asDict(status["creator"])?.["login"], LOGIN);
|
|
18519
|
+
if (creator)
|
|
18520
|
+
details.push(["Status set by", creator]);
|
|
18521
|
+
const link = githubActionsRunUrl(status["log_url"], repo) ?? githubActionsRunUrl(status["target_url"], repo);
|
|
18522
|
+
return {
|
|
18523
|
+
event,
|
|
18524
|
+
action,
|
|
18525
|
+
repo,
|
|
18526
|
+
subject: null,
|
|
18527
|
+
url: link ?? `${base}/deployments`,
|
|
18528
|
+
sender,
|
|
18529
|
+
details,
|
|
18530
|
+
summary: `Deployment to ${environment ?? "an environment"} ${state ?? "updated"} in ${repo}`
|
|
18531
|
+
};
|
|
18532
|
+
}
|
|
18441
18533
|
const issue = asDict(root["issue"]);
|
|
18442
18534
|
const n = issue ? posInt(issue["number"]) : null;
|
|
18443
18535
|
if (!issue || n === null)
|
|
@@ -18755,4 +18847,4 @@ export {
|
|
|
18755
18847
|
HOST_ROTATE_KEY_CONFLICT,
|
|
18756
18848
|
shouldMintReplacementKey
|
|
18757
18849
|
};
|
|
18758
|
-
//# sourceMappingURL=chunk-
|
|
18850
|
+
//# sourceMappingURL=chunk-QFLR5EFT.js.map
|