@integrity-labs/agt-cli 0.28.1272 → 0.28.1273
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-NKQCPDDZ.js → api-client-PENFPEFF.js} +2 -2
- package/dist/bin/agt.js +4 -4
- package/dist/{chunk-AIDGMBY5.js → chunk-3P3COJTT.js} +2 -2
- package/dist/{chunk-N6NICNIH.js → chunk-3WRBN6EY.js} +2 -2
- package/dist/lib/manager-worker.js +4 -4
- package/dist/mcp/index.js +6 -4
- package/package.json +1 -1
- /package/dist/{api-client-NKQCPDDZ.js.map → api-client-PENFPEFF.js.map} +0 -0
- /package/dist/{chunk-AIDGMBY5.js.map → chunk-3P3COJTT.js.map} +0 -0
- /package/dist/{chunk-N6NICNIH.js.map → chunk-3WRBN6EY.js.map} +0 -0
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
mintRotatedHostKey,
|
|
16
16
|
probeHostKey,
|
|
17
17
|
setConfigHash
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3P3COJTT.js";
|
|
19
19
|
import "./chunk-QOH2AE5I.js";
|
|
20
20
|
import "./chunk-DGUM43GV.js";
|
|
21
21
|
export {
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
probeHostKey,
|
|
37
37
|
setConfigHash
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=api-client-
|
|
39
|
+
//# sourceMappingURL=api-client-PENFPEFF.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-3WRBN6EY.js";
|
|
35
35
|
import {
|
|
36
36
|
ApiError,
|
|
37
37
|
PROD_AGT_HOST,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
getHost,
|
|
43
43
|
getHostId,
|
|
44
44
|
setActiveTeam
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-3P3COJTT.js";
|
|
46
46
|
import {
|
|
47
47
|
getProjectDir,
|
|
48
48
|
isSessionResumeDisabled,
|
|
@@ -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.1273" : "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.1273" : "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) => {
|
|
@@ -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.1273" : "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-3P3COJTT.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
exchangeApiKey,
|
|
3
3
|
getApiKey,
|
|
4
4
|
getHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3P3COJTT.js";
|
|
6
6
|
import {
|
|
7
7
|
LATE_BOUND_VARS,
|
|
8
8
|
PLATFORM_DENY_PERMISSIONS,
|
|
@@ -13808,4 +13808,4 @@ export {
|
|
|
13808
13808
|
managerInstallSystemUnitCommand,
|
|
13809
13809
|
managerUninstallSystemUnitCommand
|
|
13810
13810
|
};
|
|
13811
|
-
//# sourceMappingURL=chunk-
|
|
13811
|
+
//# sourceMappingURL=chunk-3WRBN6EY.js.map
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
tripClass,
|
|
71
71
|
writeEtcEnvironment,
|
|
72
72
|
writeProfileDScript
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-3WRBN6EY.js";
|
|
74
74
|
import {
|
|
75
75
|
ApiError,
|
|
76
76
|
adoptHostKeyInProcess,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
probeHostKey,
|
|
89
89
|
requireHost,
|
|
90
90
|
setConfigHash
|
|
91
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-3P3COJTT.js";
|
|
92
92
|
import {
|
|
93
93
|
BLOCKED_ON_PROMPT_DECISION,
|
|
94
94
|
CHANNEL_SECRET_ENV_KEYS,
|
|
@@ -14846,7 +14846,7 @@ function createFileMigrationReportIO(codeName, log2) {
|
|
|
14846
14846
|
};
|
|
14847
14847
|
}
|
|
14848
14848
|
var managerHostPost = async (path, body) => {
|
|
14849
|
-
const { api: api2, ApiError: ApiError3 } = await import("../api-client-
|
|
14849
|
+
const { api: api2, ApiError: ApiError3 } = await import("../api-client-PENFPEFF.js");
|
|
14850
14850
|
try {
|
|
14851
14851
|
const json = await api2.post(path, body);
|
|
14852
14852
|
return { status: 200, json };
|
|
@@ -17775,7 +17775,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
17775
17775
|
var lastVersionCheckAt = 0;
|
|
17776
17776
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
17777
17777
|
var lastResponsivenessProbeAt = 0;
|
|
17778
|
-
var agtCliVersion = true ? "0.28.
|
|
17778
|
+
var agtCliVersion = true ? "0.28.1273" : "dev";
|
|
17779
17779
|
function resolveBrewPath(execFileSync4) {
|
|
17780
17780
|
try {
|
|
17781
17781
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
package/dist/mcp/index.js
CHANGED
|
@@ -49443,6 +49443,8 @@ ${listed}`;
|
|
|
49443
49443
|
}
|
|
49444
49444
|
case "invalid_transition":
|
|
49445
49445
|
return `Can't move "${label}" from ${failure.from ?? "its current status"} to ${failure.to ?? "that status"} \u2014 closed cards are not reopened this way. Add a new card if the work has genuinely restarted.`;
|
|
49446
|
+
case "invalid_waiting":
|
|
49447
|
+
return failure.error ? `Couldn't update "${label}": ${failure.error}` : `Couldn't update "${label}": invalid_waiting.`;
|
|
49446
49448
|
case "not_found":
|
|
49447
49449
|
return null;
|
|
49448
49450
|
// The caller's existing "not found" message is correct here.
|
|
@@ -51036,11 +51038,11 @@ server.tool(
|
|
|
51036
51038
|
}
|
|
51037
51039
|
);
|
|
51038
51040
|
var kanbanMoveStatuses = AGT_KANBAN_WAITING_ENABLED ? ["backlog", "todo", "in_progress", "waiting", "done", "failed"] : ["backlog", "todo", "in_progress", "done", "failed"];
|
|
51039
|
-
var kanbanMoveDescription = AGT_KANBAN_WAITING_ENABLED ? `Move a kanban item to a different status column. Use status="failed" for a task attempted but not completable. Use status="waiting" when you have COMPLETED your part and cannot proceed until one specific external action happens (a person approves/answers/decides, or a dependency like a PR merge or deploy completes). status="waiting" REQUIRES waiting_kind - classify the wait as "pr-review", "pr-merged", "human", "agent", "external", or "other" (the catch-all when none fit). For a PR wait ("pr-review"/"pr-merged") set waiting_repo ("owner/repo") and waiting_pr (the number) INSTEAD of waiting_on - the card then links straight to the PR and can auto-resume when it lands. For "human"
|
|
51041
|
+
var kanbanMoveDescription = AGT_KANBAN_WAITING_ENABLED ? `Move a kanban item to a different status column. Use status="failed" for a task attempted but not completable. Use status="waiting" when you have COMPLETED your part and cannot proceed until one specific external action happens (a person approves/answers/decides, or a dependency like a PR merge or deploy completes). status="waiting" REQUIRES waiting_kind - classify the wait as "pr-review", "pr-merged", "human", "agent", "external", or "other" (the catch-all when none fit). For a PR wait ("pr-review"/"pr-merged") set waiting_repo ("owner/repo") and waiting_pr (the number) INSTEAD of waiting_on - the card then links straight to the PR and can auto-resume when it lands. For every non-PR wait ("human", "agent", "external", "other") set waiting_on to a one-line ask ("Answer my 5 scoping questions") AND put the full context the person needs to decide - the actual questions, options, links - in waiting_details, so they can answer from the card without opening a ticket. For "human" ALSO set waiting_on_person to that person's person_id (uuid, from directory_lookup \u2014 preferred) or their Slack user id, so the card lands in their "Awaiting you" queue and they are notified instead of your ask sitting unseen. When a teammate AGENT is what is blocking you, use waiting_kind="agent" with waiting_on_agent (its code_name) - that notifies the agent and shows the card on its board as something it is holding up. An "agent" or "human" park is REFUSED without a waiting_on that says what the blocker must do (ENG-12029): a blank one, or one that only repeats the card title, is refused too. Re-parking an already-waiting card without waiting_on keeps the ask it already has. ` + // ENG-11927: without this, agents with a manager agent parked design and
|
|
51040
51042
|
// scope questions on a human, because "a person must decide" was the only
|
|
51041
51043
|
// sentence that fit.
|
|
51042
51044
|
MANAGER_AGENT_WAIT_GUIDANCE + " Do NOT use waiting to offload hard work, and do NOT confuse it with a failure. (matches the hosted kanban_move enum)." : 'Move a kanban item to a different status column. Use status="failed" to mark a task that was attempted but could not complete (matches the hosted kanban_move enum).';
|
|
51043
|
-
var kanbanMoveStatusDescribe = AGT_KANBAN_WAITING_ENABLED ? 'Target status. "waiting" parks the card until one external action happens; it REQUIRES waiting_kind - use "pr-review"/"pr-merged" with waiting_repo + waiting_pr, "agent" with waiting_on_agent (a teammate agent is blocking you), or "human"/"external"/"other" with a concrete waiting_on. "failed" closes the row as a failed attempt; there is no "cancelled" status, close no-longer-needed work via kanban_done with an explanatory result.' : 'Target status. "failed" closes the row as a failed attempt; there is no "cancelled" status, close no-longer-needed work via kanban_done with an explanatory result.';
|
|
51045
|
+
var kanbanMoveStatusDescribe = AGT_KANBAN_WAITING_ENABLED ? 'Target status. "waiting" parks the card until one external action happens; it REQUIRES waiting_kind - use "pr-review"/"pr-merged" with waiting_repo + waiting_pr, "agent" with waiting_on_agent AND a concrete waiting_on (a teammate agent is blocking you), or "human"/"external"/"other" with a concrete waiting_on ("agent" and "human" parks are refused without one). "failed" closes the row as a failed attempt; there is no "cancelled" status, close no-longer-needed work via kanban_done with an explanatory result.' : 'Target status. "failed" closes the row as a failed attempt; there is no "cancelled" status, close no-longer-needed work via kanban_done with an explanatory result.';
|
|
51044
51046
|
server.tool(
|
|
51045
51047
|
"kanban_move",
|
|
51046
51048
|
kanbanMoveDescription,
|
|
@@ -51051,7 +51053,7 @@ server.tool(
|
|
|
51051
51053
|
notes: external_exports.string().optional().describe("Progress notes"),
|
|
51052
51054
|
...AGT_KANBAN_WAITING_ENABLED ? {
|
|
51053
51055
|
waiting_on: external_exports.string().optional().describe(
|
|
51054
|
-
'Only with status="waiting", for a NON-PR wait: a ONE-LINE headline of what you are parked on, phrased as an instruction ("Approve the budget", "Answer my 5 scoping questions"). Keep it short - it is the card headline. Put the FULL context the person needs to decide in waiting_details, not here. For a PR wait use waiting_kind/waiting_repo/waiting_pr instead.'
|
|
51056
|
+
'Only with status="waiting", for a NON-PR wait: a ONE-LINE headline of what you are parked on, phrased as an instruction ("Approve the budget", "Answer my 5 scoping questions"). REQUIRED when parking on waiting_kind="agent" or "human" (ENG-12029: refused if missing, blank, or only a copy of the card title); a re-park of an already-waiting card may omit it to keep the stored ask. Keep it short - it is the card headline. Put the FULL context the person needs to decide in waiting_details, not here. For a PR wait use waiting_kind/waiting_repo/waiting_pr instead.'
|
|
51055
51057
|
),
|
|
51056
51058
|
waiting_details: external_exports.string().optional().describe(
|
|
51057
51059
|
`Only with status="waiting" on a "human"/"agent"/"external"/"other" wait: the FULL context the person (or, on an "agent" wait, the agent you park on - it reads this in its blocking notice and its board) needs to make the decision, inline - the actual questions, the options, the specifics, any links. Put everything here so they can answer from the card alone; NEVER just point at a ticket ("see ENG-1234"). waiting_on stays the one-line headline; this is the body. Shown in full in the card's Respond panel; the card preview and chat notifications may show a truncated preview (kept within their limits).`
|
|
@@ -51067,7 +51069,7 @@ server.tool(
|
|
|
51067
51069
|
'Optional, best with waiting_kind="human": 2-5 short answer options to offer the person as one-click buttons (e.g. ["Ship it", "Hold", "Needs changes"]). Keep them short. They can still add a free-text comment alongside a choice. Omit for an open-ended human wait (they just get a comment box).'
|
|
51068
51070
|
),
|
|
51069
51071
|
waiting_on_agent: external_exports.string().optional().describe(
|
|
51070
|
-
'ENG-9051. The code_name (or uuid) of the teammate AGENT that has to act before you can continue - the same identifier kanban_assign takes as target_agent. Requires waiting_kind="agent". This notifies that agent and puts the card on its board as something it is holding up, so the blocker reaches it instead of sitting on a field. It does NOT reassign the card - you still own driving it to done and you resume as soon as they unblock you. Use this rather than "other"/"external" (which mean nobody to notify) or "human" (which takes a Slack user id and would notify the wrong entity).'
|
|
51072
|
+
'ENG-9051. The code_name (or uuid) of the teammate AGENT that has to act before you can continue - the same identifier kanban_assign takes as target_agent. Requires waiting_kind="agent", and the park also needs waiting_on saying what the agent must do (ENG-12029). This notifies that agent and puts the card on its board as something it is holding up, so the blocker reaches it instead of sitting on a field. It does NOT reassign the card - you still own driving it to done and you resume as soon as they unblock you. Use this rather than "other"/"external" (which mean nobody to notify) or "human" (which takes a Slack user id and would notify the wrong entity).'
|
|
51071
51073
|
),
|
|
51072
51074
|
waiting_on_person: external_exports.string().optional().describe(
|
|
51073
51075
|
`Who has to act before you can continue - the ONE person. Two accepted forms: a person_id (uuid) as emitted by directory_lookup, which is PREFERRED because it is the id the directory actually gives you and it resolves for people with no linked Slack account; or a Slack user id (e.g. "U0123ABCD" - the same id you would pass to deliver_to). This puts the card in that person's "Awaiting you" queue and notifies them, so your ask does not sit unseen. It does NOT reassign the card - you still own driving it to done and you resume as soon as they answer. Valid on "human", "approval", "pr-review" and "pr-merged" waits (ENG-8291: a PR waiting on a review or a merge tap IS waiting on a person, and naming them is the whole point). Note "approval" is absent from the waiting_kind enum above deliberately and that is NOT an inconsistency: the approval broker sets that kind server-side, so you never pass it - but a card the server already parked that way still accepts this field, and rejecting the pair the server itself produces was the ENG-8291 bug. NOT valid on "external" or "other", which are parked on a system or unclassified - there is nobody to notify. Set it whenever you know who has to act; omit only if genuinely nobody specific does.`
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|