@integrity-labs/agt-cli 0.28.282 → 0.28.284
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 +4 -4
- package/dist/{chunk-6SRVCYKR.js → chunk-6Y7K5FLO.js} +3 -3
- package/dist/{chunk-C4QMCOAN.js → chunk-TZKHPDOH.js} +34 -4
- package/dist/chunk-TZKHPDOH.js.map +1 -0
- package/dist/{claude-pair-runtime-JOYTDNXZ.js → claude-pair-runtime-2VTCDNBY.js} +2 -2
- package/dist/lib/manager-worker.js +19 -11
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/index.js +21 -5
- package/dist/mcp/origami.js +23 -1
- package/dist/{persistent-session-7H3IYXXP.js → persistent-session-MIA4XYG4.js} +2 -2
- package/dist/{responsiveness-probe-PFJM4QMQ.js → responsiveness-probe-C4OMAIZQ.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-C4QMCOAN.js.map +0 -1
- /package/dist/{chunk-6SRVCYKR.js.map → chunk-6Y7K5FLO.js.map} +0 -0
- /package/dist/{claude-pair-runtime-JOYTDNXZ.js.map → claude-pair-runtime-2VTCDNBY.js.map} +0 -0
- /package/dist/{persistent-session-7H3IYXXP.js.map → persistent-session-MIA4XYG4.js.map} +0 -0
- /package/dist/{responsiveness-probe-PFJM4QMQ.js.map → responsiveness-probe-C4OMAIZQ.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
success,
|
|
39
39
|
table,
|
|
40
40
|
warn
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-6Y7K5FLO.js";
|
|
42
42
|
import {
|
|
43
43
|
CHANNEL_REGISTRY,
|
|
44
44
|
DEFAULT_FRAMEWORK,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
renderTemplate,
|
|
68
68
|
resolveChannels,
|
|
69
69
|
serializeManifestForSlackCli
|
|
70
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-TZKHPDOH.js";
|
|
71
71
|
import "../chunk-XWVM4KPK.js";
|
|
72
72
|
|
|
73
73
|
// src/bin/agt.ts
|
|
@@ -4826,7 +4826,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4826
4826
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4827
4827
|
import chalk18 from "chalk";
|
|
4828
4828
|
import ora16 from "ora";
|
|
4829
|
-
var cliVersion = true ? "0.28.
|
|
4829
|
+
var cliVersion = true ? "0.28.284" : "dev";
|
|
4830
4830
|
async function fetchLatestVersion() {
|
|
4831
4831
|
const host2 = getHost();
|
|
4832
4832
|
if (!host2) return null;
|
|
@@ -5840,7 +5840,7 @@ function handleError(err) {
|
|
|
5840
5840
|
}
|
|
5841
5841
|
|
|
5842
5842
|
// src/bin/agt.ts
|
|
5843
|
-
var cliVersion2 = true ? "0.28.
|
|
5843
|
+
var cliVersion2 = true ? "0.28.284" : "dev";
|
|
5844
5844
|
var program = new Command();
|
|
5845
5845
|
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");
|
|
5846
5846
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
resolveConnectivityProbe,
|
|
19
19
|
worseConnectivityOutcome,
|
|
20
20
|
wrapScheduledTaskPrompt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TZKHPDOH.js";
|
|
22
22
|
import {
|
|
23
23
|
parsePsRows
|
|
24
24
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -5882,7 +5882,7 @@ function requireHost() {
|
|
|
5882
5882
|
}
|
|
5883
5883
|
|
|
5884
5884
|
// src/lib/api-client.ts
|
|
5885
|
-
var agtCliVersion = true ? "0.28.
|
|
5885
|
+
var agtCliVersion = true ? "0.28.284" : "dev";
|
|
5886
5886
|
var lastConfigHash = null;
|
|
5887
5887
|
function setConfigHash(hash) {
|
|
5888
5888
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8162,4 +8162,4 @@ export {
|
|
|
8162
8162
|
managerInstallSystemUnitCommand,
|
|
8163
8163
|
managerUninstallSystemUnitCommand
|
|
8164
8164
|
};
|
|
8165
|
-
//# sourceMappingURL=chunk-
|
|
8165
|
+
//# sourceMappingURL=chunk-6Y7K5FLO.js.map
|
|
@@ -6668,7 +6668,8 @@ var KANBAN_STATUSES = [
|
|
|
6668
6668
|
"done",
|
|
6669
6669
|
"failed",
|
|
6670
6670
|
"cancelled",
|
|
6671
|
-
"needs_attention"
|
|
6671
|
+
"needs_attention",
|
|
6672
|
+
"waiting"
|
|
6672
6673
|
];
|
|
6673
6674
|
var KANBAN_STATUS_SET = new Set(KANBAN_STATUSES);
|
|
6674
6675
|
|
|
@@ -7028,6 +7029,12 @@ var FLAG_REGISTRY = [
|
|
|
7028
7029
|
flagType: "boolean",
|
|
7029
7030
|
defaultValue: false
|
|
7030
7031
|
},
|
|
7032
|
+
{
|
|
7033
|
+
key: "integration-multi-connection",
|
|
7034
|
+
description: "Allow adding a SECOND+ connection of one managed integration on the same agent (ENG-7543 / ADR-0045 Phase 3), discriminated by connection_key (e.g. two Gmail mailboxes). When OFF, only the default connection can be created (today's behaviour: a duplicate 409s). Gates 2nd-connection CREATION only; runtime N-server surfacing is a later phase. Evaluated per-org. Additive capability, not an enforcement control. Boolean gate; ships dark.",
|
|
7035
|
+
flagType: "boolean",
|
|
7036
|
+
defaultValue: false
|
|
7037
|
+
},
|
|
7031
7038
|
{
|
|
7032
7039
|
key: "augmented-live-stream-producer",
|
|
7033
7040
|
description: "Augmented Live live-preview streaming producer (ENG-7210). The receiver (codec, artifact-draft channel, stream route, console Live Preview tab) shipped under ENG-6234 but never engages because nothing writes the working file the manager scanner watches. When ON for an org, a host-side PostToolUse hook mirrors agt-live.publish/editing content to ~/.augmented/{codeName}/artifacts/<slug>/index.html, so the scanner mints a draft and streams a keyframe to the console Live Preview tab. Additive, best-effort. Boolean gate; ships dark. Materialized to the host flags-cache; the bash hook reads it (operator/canary override AGT_LIVE_STREAM_PRODUCER_ENABLED).",
|
|
@@ -7589,6 +7596,21 @@ var FLAG_REGISTRY = [
|
|
|
7589
7596
|
// current behaviour (single-slot injection). Turning it ON only makes the
|
|
7590
7597
|
// fallback MORE conservative (injects less), so it removes no control.
|
|
7591
7598
|
defaultValue: false
|
|
7599
|
+
},
|
|
7600
|
+
{
|
|
7601
|
+
key: "kanban-waiting-status",
|
|
7602
|
+
description: "Let managed agents set the 'waiting' kanban status via POST /host/kanban (ADR-0044 / ENG-7493) - work that has started but is parked on a human decision or an external dependency (a PR review, an approval). This is the DEPLOY-ORDER gate (ADR-0044 section 8): the status value + its migration (20260709000003), the webapp Waiting column, and the ~7-day reaper backstop all ship first, and this flag is flipped ON per org LAST, once they are live - the moment agents are allowed to emit `waiting`. Off (default) = the API rejects an agent `waiting` write with the existing 400, exactly as today. The API gate (evaluated per-org in POST /host/kanban via getEvaluatedFlags()) is the authoritative boundary. It is ALSO materialized host-side into AGT_KANBAN_WAITING_ENABLED (ENG-7591) so the kanban_move MCP tool only exposes `waiting` to agents once the host resolves the flag on - a host-grained UX hint, not the security boundary (the per-org API gate still decides). Ships dark.",
|
|
7603
|
+
flagType: "boolean",
|
|
7604
|
+
// Declared safe value is `false`: agents cannot emit `waiting` until an operator
|
|
7605
|
+
// flips it on for the org, after the migration + webapp column + reaper backstop
|
|
7606
|
+
// are deployed. Turning it ON grants a new capability, so it is not sensitive in
|
|
7607
|
+
// the "relaxing a control" sense, but it MUST stay off until the deploy order is met.
|
|
7608
|
+
defaultValue: false,
|
|
7609
|
+
// Host-side materialization vehicle (ENG-7591): the manager writes this into the
|
|
7610
|
+
// agent's spawn env from the resolved flag so the stdio MCP server (which cannot
|
|
7611
|
+
// call the flag evaluator) can gate the kanban_move `waiting` option. Also the
|
|
7612
|
+
// highest-precedence operator override, per ADR-0022.
|
|
7613
|
+
envVar: "AGT_KANBAN_WAITING_ENABLED"
|
|
7592
7614
|
}
|
|
7593
7615
|
];
|
|
7594
7616
|
var REGISTRY_BY_KEY = new Map(FLAG_REGISTRY.map((definition) => [definition.key, definition]));
|
|
@@ -8266,7 +8288,7 @@ function restartEgressSidecar(codeName) {
|
|
|
8266
8288
|
}
|
|
8267
8289
|
}
|
|
8268
8290
|
function buildDockerRunCommand(args) {
|
|
8269
|
-
const { codeName, agentId, wrapperPath, projectDir, homeDir, runId, passApiKey, passOpenRouter, egress, forwardSlackReplyBinding, forwardBlockTurnEndAllMarkers } = args;
|
|
8291
|
+
const { codeName, agentId, wrapperPath, projectDir, homeDir, runId, passApiKey, passOpenRouter, egress, forwardSlackReplyBinding, forwardBlockTurnEndAllMarkers, forwardKanbanWaiting } = args;
|
|
8270
8292
|
const q = (s) => `'${s.replace(/'/g, `'\\''`)}'`;
|
|
8271
8293
|
const agentDir = join2(homeDir, ".augmented", codeName);
|
|
8272
8294
|
const agentIdDir = join2(homeDir, ".augmented", agentId);
|
|
@@ -8301,6 +8323,7 @@ function buildDockerRunCommand(args) {
|
|
|
8301
8323
|
envArgs.push(`-e AGT_IN_CONTAINER=true`);
|
|
8302
8324
|
if (forwardSlackReplyBinding) envArgs.push("-e AGT_SLACK_REPLY_BINDING");
|
|
8303
8325
|
if (forwardBlockTurnEndAllMarkers) envArgs.push("-e AGT_BLOCK_TURN_END_ALL_MARKERS_ENABLED");
|
|
8326
|
+
if (forwardKanbanWaiting) envArgs.push("-e AGT_KANBAN_WAITING_ENABLED");
|
|
8304
8327
|
const egressImage = process.env.AGT_EGRESS_IMAGE || "agt-squid:latest";
|
|
8305
8328
|
const internalNet = `agt-net-${codeName}`;
|
|
8306
8329
|
const squidName = `agt-squid-${codeName}`;
|
|
@@ -8648,6 +8671,9 @@ function spawnSession(config, session) {
|
|
|
8648
8671
|
if (config.blockTurnEndAllMarkers && !process.env["AGT_BLOCK_TURN_END_ALL_MARKERS_ENABLED"]) {
|
|
8649
8672
|
tmuxSessionEnvArgs.push("-e", "AGT_BLOCK_TURN_END_ALL_MARKERS_ENABLED=true");
|
|
8650
8673
|
}
|
|
8674
|
+
if (config.kanbanWaitingEnabled && !process.env["AGT_KANBAN_WAITING_ENABLED"]) {
|
|
8675
|
+
tmuxSessionEnvArgs.push("-e", "AGT_KANBAN_WAITING_ENABLED=true");
|
|
8676
|
+
}
|
|
8651
8677
|
const sessionHomeDir = process.env.HOME?.trim() || homedir2();
|
|
8652
8678
|
let egress;
|
|
8653
8679
|
if (egressMode(codeName) === "allowlist") {
|
|
@@ -8671,7 +8697,11 @@ function spawnSession(config, session) {
|
|
|
8671
8697
|
// ENG-6476: forward the reply-routing flag env if it will be present in the
|
|
8672
8698
|
// session env (operator-set OR materialized from the flag above).
|
|
8673
8699
|
forwardSlackReplyBinding: !!process.env["AGT_SLACK_REPLY_BINDING"] || !!config.slackReplyBindingMode && config.slackReplyBindingMode !== "shadow",
|
|
8674
|
-
forwardBlockTurnEndAllMarkers: !!process.env["AGT_BLOCK_TURN_END_ALL_MARKERS_ENABLED"] || !!config.blockTurnEndAllMarkers
|
|
8700
|
+
forwardBlockTurnEndAllMarkers: !!process.env["AGT_BLOCK_TURN_END_ALL_MARKERS_ENABLED"] || !!config.blockTurnEndAllMarkers,
|
|
8701
|
+
// feature-gate-allow: registry-flag envVar operator-override precedence, not a new gate
|
|
8702
|
+
// ENG-7493 (ADR-0044): forward AGT_KANBAN_WAITING_ENABLED if it will be in
|
|
8703
|
+
// the session env (operator-set OR materialized from the flag above).
|
|
8704
|
+
forwardKanbanWaiting: !!process.env["AGT_KANBAN_WAITING_ENABLED"] || !!config.kanbanWaitingEnabled
|
|
8675
8705
|
// feature-gate-allow: registry-flag envVar operator-override precedence, not a new gate
|
|
8676
8706
|
}) : JSON.stringify(wrapperPath);
|
|
8677
8707
|
const tmuxEnv = {
|
|
@@ -9355,4 +9385,4 @@ export {
|
|
|
9355
9385
|
stopAllSessionsAndWait,
|
|
9356
9386
|
getProjectDir
|
|
9357
9387
|
};
|
|
9358
|
-
//# sourceMappingURL=chunk-
|
|
9388
|
+
//# sourceMappingURL=chunk-TZKHPDOH.js.map
|