@integrity-labs/agt-cli 0.28.41 → 0.28.43
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
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
success,
|
|
38
38
|
table,
|
|
39
39
|
warn
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-Q7ZS6P56.js";
|
|
41
41
|
import {
|
|
42
42
|
CHANNEL_REGISTRY,
|
|
43
43
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -4777,7 +4777,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4777
4777
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4778
4778
|
import chalk18 from "chalk";
|
|
4779
4779
|
import ora16 from "ora";
|
|
4780
|
-
var cliVersion = true ? "0.28.
|
|
4780
|
+
var cliVersion = true ? "0.28.43" : "dev";
|
|
4781
4781
|
async function fetchLatestVersion() {
|
|
4782
4782
|
const host2 = getHost();
|
|
4783
4783
|
if (!host2) return null;
|
|
@@ -5787,7 +5787,7 @@ function handleError(err) {
|
|
|
5787
5787
|
}
|
|
5788
5788
|
|
|
5789
5789
|
// src/bin/agt.ts
|
|
5790
|
-
var cliVersion2 = true ? "0.28.
|
|
5790
|
+
var cliVersion2 = true ? "0.28.43" : "dev";
|
|
5791
5791
|
var program = new Command();
|
|
5792
5792
|
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");
|
|
5793
5793
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -3398,43 +3398,32 @@ acknowledge before you start.
|
|
|
3398
3398
|
- **FAST (< 60s):** handle inline. Reply via the channel tool
|
|
3399
3399
|
(slack.reply / telegram.reply / directchat.reply) and end your turn.
|
|
3400
3400
|
|
|
3401
|
-
- **SLOW (\u2265 60s):** acknowledge,
|
|
3401
|
+
- **SLOW (\u2265 60s):** acknowledge first, then handle inline.
|
|
3402
3402
|
1. Send a one-line acknowledgement via the channel tool \u2014 short, warm,
|
|
3403
3403
|
and tell the user you'll come back. Example shape (don't copy verbatim,
|
|
3404
3404
|
match your voice): "On it \u2014 this'll take a minute or two, I'll ping
|
|
3405
3405
|
when it's done."
|
|
3406
|
-
2.
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
>
|
|
3426
|
-
>
|
|
3427
|
-
> \`docs/spikes/ENG-6274-run-in-background-dispatch.md\`): background
|
|
3428
|
-
> dispatch returns immediately, your turn ends, inbound messages get
|
|
3429
|
-
> answered in seconds while the worker runs, and the completion arrives
|
|
3430
|
-
> as a notification you handle like any other turn. Use
|
|
3431
|
-
> \`subagent_type: general-purpose\` (inherit-all tools) \u2014 NOT
|
|
3432
|
-
> \`channel-message-handler\` or \`augmented-worker\` \u2014 until ENG-6273
|
|
3433
|
-
> re-verifies on this host that the upstream allowlist bug
|
|
3434
|
-
> ([anthropics/claude-code#64909](https://github.com/anthropics/claude-code/issues/64909),
|
|
3435
|
-
> empirically 0/6 MCP tools in named sub-agents on 2026-06-03) is fixed
|
|
3436
|
-
> at the fleet's pinned Claude Code version. \`general-purpose\` escapes
|
|
3437
|
-
> that bug by construction either way.
|
|
3406
|
+
2. Do the work yourself in this same session. Use whatever tools you
|
|
3407
|
+
need (MCP, skills, file reads, etc.) \u2014 your parent session has the
|
|
3408
|
+
full MCP surface bound.
|
|
3409
|
+
3. Reply with the result via the channel tool (\`slack.reply\` /
|
|
3410
|
+
\`telegram.reply\` / \`directchat.reply\`), addressing the same thread
|
|
3411
|
+
/ chat / conversation you acknowledged in step 1.
|
|
3412
|
+
|
|
3413
|
+
> **Why inline and not sub-agent dispatch right now:** there is an
|
|
3414
|
+
> upstream Claude Code bug
|
|
3415
|
+
> ([anthropics/claude-code#64909](https://github.com/anthropics/claude-code/issues/64909))
|
|
3416
|
+
> where sub-agents dispatched via the Task tool with an explicit
|
|
3417
|
+
> \`tools:\` allowlist (which is the shape \`channel-message-handler\`
|
|
3418
|
+
> uses) get an **empty MCP tool registry** \u2014 every \`mcp__*\` call
|
|
3419
|
+
> returns "No such tool available", including the channel reply tools.
|
|
3420
|
+
> Dispatching a slow channel reply to \`channel-message-handler\` will
|
|
3421
|
+
> therefore silently fail to land: you'd post the one-line ack, the
|
|
3422
|
+
> sub-agent would do the analysis fine, but its \`slack.reply\` call
|
|
3423
|
+
> would error and the user would never see the substantive reply.
|
|
3424
|
+
> Empirically confirmed 2026-06-03 with a 6-tool probe: 0/6 MCP tools
|
|
3425
|
+
> bound inside \`channel-message-handler\`. Until Anthropic ships the
|
|
3426
|
+
> fix, handling slow channel replies inline is the only working path.
|
|
3438
3427
|
|
|
3439
3428
|
**Why this triage decision still matters more than any other instruction
|
|
3440
3429
|
below:** if you skip the acknowledgement and just dive into slow work
|
|
@@ -3456,29 +3445,25 @@ For background tool work that **isn't** a channel reply \u2014 multi-step data
|
|
|
3456
3445
|
pulls, CRM enrichments, research workflows, cross-MCP orchestration \u2014 use
|
|
3457
3446
|
\`subagent_type: general-purpose\` (Anthropic's built-in). It inherits the
|
|
3458
3447
|
full MCP tool surface from this session and reliably binds every
|
|
3459
|
-
\`mcp__*\` server you have available.
|
|
3460
|
-
than a minute, add \`run_in_background: true\` so your turn ends and you
|
|
3461
|
-
stay responsive; the completion notification brings you the result.
|
|
3462
|
-
Don't background-dispatch trivial work \u2014 each dispatch is a fresh
|
|
3463
|
-
context and costs real tokens.
|
|
3448
|
+
\`mcp__*\` server you have available.
|
|
3464
3449
|
|
|
3465
3450
|
**Why not \`augmented-worker\` for now:** there is an upstream Claude Code
|
|
3466
3451
|
bug ([anthropics/claude-code#64909](https://github.com/anthropics/claude-code/issues/64909))
|
|
3467
3452
|
where sub-agents with an explicit \`tools:\` allowlist get an empty MCP
|
|
3468
3453
|
tool registry \u2014 every \`mcp__*\` call returns "No such tool available."
|
|
3469
3454
|
\`general-purpose\` uses \`tools: *\` (inherit-all) and escapes the bug.
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
(restricted tool surface for safety + working MCP binding) and
|
|
3474
|
-
\`channel-message-handler\` returns as a dispatch target. Until then,
|
|
3475
|
-
\`general-purpose\` only.
|
|
3455
|
+
Once Anthropic ships the fix, \`augmented-worker\` becomes preferred again
|
|
3456
|
+
(restricted tool surface for safety + working MCP binding); the dispatch
|
|
3457
|
+
recommendation here will flip back automatically.
|
|
3476
3458
|
|
|
3477
3459
|
For slow **channel** replies, see \xA7 FIRST ACTION above \u2014 those are
|
|
3478
|
-
dispatched
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3460
|
+
currently handled inline (not dispatched) because \`channel-message-handler\`
|
|
3461
|
+
shares the explicit-allowlist shape and so suffers the same upstream
|
|
3462
|
+
bug. Empirically confirmed 2026-06-03 on agt-aws-1 with a 6-tool probe:
|
|
3463
|
+
0/6 MCP tools bound inside \`channel-message-handler\` (matching the
|
|
3464
|
+
\`augmented-worker\` result). When Anthropic ships the upstream fix, both
|
|
3465
|
+
named sub-agents will work again and the FIRST ACTION triage will switch
|
|
3466
|
+
back to dispatch.
|
|
3482
3467
|
|
|
3483
3468
|
${activeTasksSection}${personalitySection}## Identity
|
|
3484
3469
|
|
|
@@ -7274,7 +7259,7 @@ function requireHost() {
|
|
|
7274
7259
|
}
|
|
7275
7260
|
|
|
7276
7261
|
// src/lib/api-client.ts
|
|
7277
|
-
var agtCliVersion = true ? "0.28.
|
|
7262
|
+
var agtCliVersion = true ? "0.28.43" : "dev";
|
|
7278
7263
|
var lastConfigHash = null;
|
|
7279
7264
|
function setConfigHash(hash) {
|
|
7280
7265
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8555,4 +8540,4 @@ export {
|
|
|
8555
8540
|
managerInstallSystemUnitCommand,
|
|
8556
8541
|
managerUninstallSystemUnitCommand
|
|
8557
8542
|
};
|
|
8558
|
-
//# sourceMappingURL=chunk-
|
|
8543
|
+
//# sourceMappingURL=chunk-Q7ZS6P56.js.map
|