@integrity-labs/agt-cli 0.28.536 → 0.28.538
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-TPJ57PWU.js → chunk-N6HD5UG4.js} +38 -1
- package/dist/chunk-N6HD5UG4.js.map +1 -0
- package/dist/{chunk-NOOKTWZP.js → chunk-XREQUTXK.js} +68 -5
- package/dist/chunk-XREQUTXK.js.map +1 -0
- package/dist/{claude-pair-runtime-ND4BTXAM.js → claude-pair-runtime-FHNWMTUH.js} +2 -2
- package/dist/lib/manager-worker.js +10 -10
- package/dist/mcp/direct-chat-channel.js +12 -0
- package/dist/mcp/origami.js +12 -0
- package/dist/mcp/slack-channel.js +12 -0
- package/dist/mcp/telegram-channel.js +12 -0
- package/dist/{persistent-session-D2JEPOKD.js → persistent-session-D47WOTHA.js} +4 -2
- package/dist/{responsiveness-probe-4LVECRWX.js → responsiveness-probe-HZUQTMSG.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-NOOKTWZP.js.map +0 -1
- package/dist/chunk-TPJ57PWU.js.map +0 -1
- /package/dist/{claude-pair-runtime-ND4BTXAM.js.map → claude-pair-runtime-FHNWMTUH.js.map} +0 -0
- /package/dist/{persistent-session-D2JEPOKD.js.map → persistent-session-D47WOTHA.js.map} +0 -0
- /package/dist/{responsiveness-probe-4LVECRWX.js.map → responsiveness-probe-HZUQTMSG.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-XREQUTXK.js";
|
|
44
44
|
import {
|
|
45
45
|
AnchorSessionClient,
|
|
46
46
|
CHANNEL_REGISTRY,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
requiredMcpWildcard,
|
|
72
72
|
resolveChannels,
|
|
73
73
|
serializeManifestForSlackCli
|
|
74
|
-
} from "../chunk-
|
|
74
|
+
} from "../chunk-N6HD5UG4.js";
|
|
75
75
|
import "../chunk-XWVM4KPK.js";
|
|
76
76
|
|
|
77
77
|
// src/bin/agt.ts
|
|
@@ -4834,7 +4834,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4834
4834
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4835
4835
|
import chalk18 from "chalk";
|
|
4836
4836
|
import ora16 from "ora";
|
|
4837
|
-
var cliVersion = true ? "0.28.
|
|
4837
|
+
var cliVersion = true ? "0.28.538" : "dev";
|
|
4838
4838
|
async function fetchLatestVersion() {
|
|
4839
4839
|
const host2 = getHost();
|
|
4840
4840
|
if (!host2) return null;
|
|
@@ -6006,7 +6006,7 @@ function handleError(err) {
|
|
|
6006
6006
|
}
|
|
6007
6007
|
|
|
6008
6008
|
// src/bin/agt.ts
|
|
6009
|
-
var cliVersion2 = true ? "0.28.
|
|
6009
|
+
var cliVersion2 = true ? "0.28.538" : "dev";
|
|
6010
6010
|
var program = new Command();
|
|
6011
6011
|
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");
|
|
6012
6012
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -10050,6 +10050,18 @@ var FLAG_REGISTRY = [
|
|
|
10050
10050
|
// so mutations require explicit confirmation (ADR-0022 §4).
|
|
10051
10051
|
sensitive: true
|
|
10052
10052
|
},
|
|
10053
|
+
{
|
|
10054
|
+
key: "kanban-push-status",
|
|
10055
|
+
description: "Write a kanban card's status back to the ticket it was imported from (ENG-8384). When ON for a team, a status change on an external-origin card (source=integration) is enqueued by a DB trigger and drained by the kanban-status-push cron, which calls the adapter's optional pushStatus - Linear resolves the target workflow state for the issue's own team and calls LINEAR_UPDATE_ISSUE. When OFF (default) the outbox rows are drained straight to skipped and the team sees ZERO upstream writes, which is the whole point of the gate: this is the first code path that MUTATES a customer's own Jira/Linear instance, so it must never be silently-on. Adapters that cannot honestly push (Jira has no transition tool in its Composio pack) omit pushStatus and their cards report local-only regardless of this flag. Boolean gate; ships dark; evaluated per-team at drain time.",
|
|
10056
|
+
flagType: "boolean",
|
|
10057
|
+
// Declared safe value is `false` = do not write to customer systems. A flag
|
|
10058
|
+
// outage must degrade to "don't touch their tracker", never to an
|
|
10059
|
+
// unattributed mutation in someone else's tool.
|
|
10060
|
+
defaultValue: false,
|
|
10061
|
+
// Turning it ON starts writing into a customer-owned system. That is exactly
|
|
10062
|
+
// the deliberate, audited decision ADR-0022 §4 reserves confirmation for.
|
|
10063
|
+
sensitive: true
|
|
10064
|
+
},
|
|
10053
10065
|
{
|
|
10054
10066
|
key: "augmented-live-stream-producer",
|
|
10055
10067
|
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).",
|
|
@@ -14513,6 +14525,18 @@ function buildSpawnEnv(args) {
|
|
|
14513
14525
|
function findMissingSpawnEnv(env2) {
|
|
14514
14526
|
return REQUIRED_SPAWN_ENV.filter((k) => !env2[k]?.trim());
|
|
14515
14527
|
}
|
|
14528
|
+
function findForeignAgentIdsInMcpConfig(args) {
|
|
14529
|
+
const { mcpConfigText, agentId } = args;
|
|
14530
|
+
const expected = agentId.trim();
|
|
14531
|
+
const out = [];
|
|
14532
|
+
for (const m of mcpConfigText.matchAll(/"AGT_AGENT_ID"\s*:\s*"([^"]+)"/g)) {
|
|
14533
|
+
const found = (m[1] ?? "").trim();
|
|
14534
|
+
if (!found || found.startsWith("$")) continue;
|
|
14535
|
+
if (found === expected) continue;
|
|
14536
|
+
if (!out.includes(found)) out.push(found);
|
|
14537
|
+
}
|
|
14538
|
+
return out;
|
|
14539
|
+
}
|
|
14516
14540
|
var sessions2 = /* @__PURE__ */ new Map();
|
|
14517
14541
|
var PANE_LOG_DIR = join6(homedir6(), ".augmented");
|
|
14518
14542
|
var PANE_TAIL_LINES = 20;
|
|
@@ -14882,6 +14906,18 @@ function spawnSession(config, session) {
|
|
|
14882
14906
|
`[persistent-session] MISSING SPAWN ENV ${key} agent=${codeName} isolation=${isolationMode(codeName)} \u2014 programs reading process.env.${key} will fail (e.g. the agt-bin/gh GitHub credential shim hard-exits without AGT_AGENT_ID, taking every git fetch/push with it)`
|
|
14883
14907
|
);
|
|
14884
14908
|
}
|
|
14909
|
+
try {
|
|
14910
|
+
const foreign = findForeignAgentIdsInMcpConfig({
|
|
14911
|
+
mcpConfigText: readFileSync7(mcpConfigPath, "utf8"),
|
|
14912
|
+
agentId: config.agentId
|
|
14913
|
+
});
|
|
14914
|
+
if (foreign.length > 0) {
|
|
14915
|
+
log2(
|
|
14916
|
+
`[persistent-session] AGENT ID CONFLICT agent=${codeName} spawning-as=${config.agentId} but .mcp.json carries ${foreign.join(", ")} \u2014 broker lookups keyed on the agent id (the agt-bin/gh GitHub shim) will resolve to the wrong agent and return "Integration not found"`
|
|
14917
|
+
);
|
|
14918
|
+
}
|
|
14919
|
+
} catch {
|
|
14920
|
+
}
|
|
14885
14921
|
const child = spawn2("tmux", [
|
|
14886
14922
|
"new-session",
|
|
14887
14923
|
"-d",
|
|
@@ -15627,6 +15663,7 @@ export {
|
|
|
15627
15663
|
REQUIRED_SPAWN_ENV,
|
|
15628
15664
|
buildSpawnEnv,
|
|
15629
15665
|
findMissingSpawnEnv,
|
|
15666
|
+
findForeignAgentIdsInMcpConfig,
|
|
15630
15667
|
paneLogPath,
|
|
15631
15668
|
rotatePaneLogForDayRollover,
|
|
15632
15669
|
readPaneLogTail,
|
|
@@ -15654,4 +15691,4 @@ export {
|
|
|
15654
15691
|
stopAllSessionsAndWait,
|
|
15655
15692
|
getProjectDir
|
|
15656
15693
|
};
|
|
15657
|
-
//# sourceMappingURL=chunk-
|
|
15694
|
+
//# sourceMappingURL=chunk-N6HD5UG4.js.map
|