@integrity-labs/agt-cli 0.28.170 → 0.28.172
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 +14 -43
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-25T4GQTU.js → chunk-N25WAF7G.js} +2 -2
- package/dist/{chunk-VZP5CIVP.js → chunk-OMC7BHRP.js} +43 -64
- package/dist/chunk-OMC7BHRP.js.map +1 -0
- package/dist/{chunk-ZLEYBDHR.js → chunk-XGTHOGKA.js} +2507 -4508
- package/dist/chunk-XGTHOGKA.js.map +1 -0
- package/dist/{claude-pair-runtime-SEFGHAXC.js → claude-pair-runtime-XIVBNVSR.js} +2 -2
- package/dist/lib/manager-worker.js +15 -1112
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +40 -1
- package/dist/mcp/slack-channel.js +43 -2
- package/dist/mcp/teams-channel.js +43 -2
- package/dist/mcp/telegram-channel.js +43 -2
- package/dist/{persistent-session-2QNOLKCT.js → persistent-session-4HC7YFSU.js} +3 -3
- package/dist/{responsiveness-probe-4JPUYWPB.js → responsiveness-probe-W4PCY6HC.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-VZP5CIVP.js.map +0 -1
- package/dist/chunk-ZLEYBDHR.js.map +0 -1
- /package/dist/{chunk-25T4GQTU.js.map → chunk-N25WAF7G.js.map} +0 -0
- /package/dist/{claude-pair-runtime-SEFGHAXC.js.map → claude-pair-runtime-XIVBNVSR.js.map} +0 -0
- /package/dist/{persistent-session-2QNOLKCT.js.map → persistent-session-4HC7YFSU.js.map} +0 -0
- /package/dist/{responsiveness-probe-4JPUYWPB.js.map → responsiveness-probe-W4PCY6HC.js.map} +0 -0
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-XGTHOGKA.js";
|
|
41
41
|
import {
|
|
42
42
|
CHANNEL_REGISTRY,
|
|
43
43
|
DEFAULT_FRAMEWORK,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
renderTemplate,
|
|
66
66
|
resolveChannels,
|
|
67
67
|
serializeManifestForSlackCli
|
|
68
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-OMC7BHRP.js";
|
|
69
69
|
|
|
70
70
|
// src/bin/agt.ts
|
|
71
71
|
import { join as join22 } from "path";
|
|
@@ -1551,8 +1551,7 @@ async function provisionCommand(codeName, options) {
|
|
|
1551
1551
|
toolsContent,
|
|
1552
1552
|
resolvedChannels,
|
|
1553
1553
|
integrations,
|
|
1554
|
-
deploymentTarget: target
|
|
1555
|
-
gatewayPort: 9e3
|
|
1554
|
+
deploymentTarget: target
|
|
1556
1555
|
};
|
|
1557
1556
|
const provisionOutput = provision(provisionInput, frameworkId);
|
|
1558
1557
|
const templateId = target === "local_docker" ? "shared-gateway-local" : "shared-gateway-local";
|
|
@@ -2762,7 +2761,7 @@ async function readJsonFile(filePath) {
|
|
|
2762
2761
|
}
|
|
2763
2762
|
}
|
|
2764
2763
|
async function readLiveState(options) {
|
|
2765
|
-
const trackedFiles = options.trackedFiles ?? ["
|
|
2764
|
+
const trackedFiles = options.trackedFiles ?? ["CLAUDE.md", "CHARTER.md", "TOOLS.md"];
|
|
2766
2765
|
const charterFile = trackedFiles.find((f) => f.includes("CHARTER")) ?? "CHARTER.md";
|
|
2767
2766
|
const toolsFile = trackedFiles.find((f) => f.includes("TOOLS")) ?? "TOOLS.md";
|
|
2768
2767
|
const [frameworkConfig, charterHash, toolsHash] = await Promise.all([
|
|
@@ -2845,7 +2844,7 @@ async function driftCheckCommand(codeName, opts) {
|
|
|
2845
2844
|
});
|
|
2846
2845
|
const report = detectDrift(
|
|
2847
2846
|
{
|
|
2848
|
-
frameworkConfig:
|
|
2847
|
+
frameworkConfig: {},
|
|
2849
2848
|
charterHash: snapshot.charter_hash ?? "",
|
|
2850
2849
|
toolsHash: snapshot.tools_hash ?? "",
|
|
2851
2850
|
toolAllow: snapshot.tool_allow ?? [],
|
|
@@ -2927,7 +2926,7 @@ Watching drift for "${codeName}" every ${intervalSec}s. Press Ctrl+C to stop.
|
|
|
2927
2926
|
});
|
|
2928
2927
|
const report = detectDrift(
|
|
2929
2928
|
{
|
|
2930
|
-
frameworkConfig:
|
|
2929
|
+
frameworkConfig: {},
|
|
2931
2930
|
charterHash: snapshot.charter_hash ?? "",
|
|
2932
2931
|
toolsHash: snapshot.tools_hash ?? "",
|
|
2933
2932
|
toolAllow: snapshot.tool_allow ?? [],
|
|
@@ -3794,7 +3793,6 @@ Start the manager first: agt manager start
|
|
|
3794
3793
|
|
|
3795
3794
|
// src/commands/agent.ts
|
|
3796
3795
|
import chalk14 from "chalk";
|
|
3797
|
-
import JSON52 from "json5";
|
|
3798
3796
|
import { readFileSync as readFileSync7, existsSync as existsSync8 } from "fs";
|
|
3799
3797
|
import { join as join14 } from "path";
|
|
3800
3798
|
async function agentShowCommand(codeName, opts) {
|
|
@@ -3832,7 +3830,6 @@ async function agentShowCommand(codeName, opts) {
|
|
|
3832
3830
|
}
|
|
3833
3831
|
let charter = null;
|
|
3834
3832
|
let tools = null;
|
|
3835
|
-
let openclawConfig = null;
|
|
3836
3833
|
let agentState = null;
|
|
3837
3834
|
if (hasLocalConfig) {
|
|
3838
3835
|
const charterPath = join14(agentDir, "CHARTER.md");
|
|
@@ -3851,14 +3848,6 @@ async function agentShowCommand(codeName, opts) {
|
|
|
3851
3848
|
tools = parsed.frontmatter;
|
|
3852
3849
|
}
|
|
3853
3850
|
}
|
|
3854
|
-
const openclawPath = join14(agentDir, "openclaw.json5");
|
|
3855
|
-
if (existsSync8(openclawPath)) {
|
|
3856
|
-
try {
|
|
3857
|
-
const raw = readFileSync7(openclawPath, "utf-8");
|
|
3858
|
-
openclawConfig = JSON52.parse(raw);
|
|
3859
|
-
} catch {
|
|
3860
|
-
}
|
|
3861
|
-
}
|
|
3862
3851
|
const statePath = join14(opts.configDir, "manager-state.json");
|
|
3863
3852
|
if (existsSync8(statePath)) {
|
|
3864
3853
|
try {
|
|
@@ -3882,19 +3871,6 @@ async function agentShowCommand(codeName, opts) {
|
|
|
3882
3871
|
e2e: def ? String(def.e2eEncrypted) : "\u2014"
|
|
3883
3872
|
});
|
|
3884
3873
|
}
|
|
3885
|
-
} else {
|
|
3886
|
-
const openclawChannels = Array.isArray(openclawConfig?.channels) ? openclawConfig.channels : [];
|
|
3887
|
-
for (const ch of openclawChannels) {
|
|
3888
|
-
const def = getChannel(ch.id);
|
|
3889
|
-
channelRows.push({
|
|
3890
|
-
id: ch.id,
|
|
3891
|
-
name: def?.name ?? ch.id,
|
|
3892
|
-
tier: def?.securityTier ?? "unknown",
|
|
3893
|
-
enabled: ch.enabled !== false,
|
|
3894
|
-
status: ch.enabled !== false ? "configured" : "disabled",
|
|
3895
|
-
e2e: def ? String(def.e2eEncrypted) : "\u2014"
|
|
3896
|
-
});
|
|
3897
|
-
}
|
|
3898
3874
|
}
|
|
3899
3875
|
if (json) {
|
|
3900
3876
|
const filtered2 = opts.allChannels ? channelRows : channelRows.filter((c) => c.enabled);
|
|
@@ -3923,8 +3899,7 @@ async function agentShowCommand(codeName, opts) {
|
|
|
3923
3899
|
count: tools?.tools?.length ?? 0,
|
|
3924
3900
|
items: tools?.tools ?? []
|
|
3925
3901
|
},
|
|
3926
|
-
channels: filtered2
|
|
3927
|
-
openclaw: openclawConfig ? { sandbox: openclawConfig.sandbox ?? null, gateway: openclawConfig.gateway ?? null } : null
|
|
3902
|
+
channels: filtered2
|
|
3928
3903
|
});
|
|
3929
3904
|
return;
|
|
3930
3905
|
}
|
|
@@ -3948,10 +3923,6 @@ Agent: ${codeName}`) + (displayName !== codeName ? ` (${displayName})` : "") + "
|
|
|
3948
3923
|
if (toolsVer !== "\u2014") {
|
|
3949
3924
|
info(`Tools: v${toolsVer}${provTs ? ` (provisioned ${provTs})` : ""}`);
|
|
3950
3925
|
}
|
|
3951
|
-
const sandbox = openclawConfig ? openclawConfig.sandbox : null;
|
|
3952
|
-
if (sandbox != null) {
|
|
3953
|
-
info(`Sandbox: ${sandbox ? "on" : "off"}`);
|
|
3954
|
-
}
|
|
3955
3926
|
const b = charter?.budget;
|
|
3956
3927
|
if (b) {
|
|
3957
3928
|
const budgetStr = `${b.limit.toLocaleString()} ${b.type} / ${b.window} (${b.enforcement ?? "block"})`;
|
|
@@ -4778,7 +4749,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4778
4749
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4779
4750
|
import chalk18 from "chalk";
|
|
4780
4751
|
import ora16 from "ora";
|
|
4781
|
-
var cliVersion = true ? "0.28.
|
|
4752
|
+
var cliVersion = true ? "0.28.172" : "dev";
|
|
4782
4753
|
async function fetchLatestVersion() {
|
|
4783
4754
|
const host2 = getHost();
|
|
4784
4755
|
if (!host2) return null;
|
|
@@ -5792,7 +5763,7 @@ function handleError(err) {
|
|
|
5792
5763
|
}
|
|
5793
5764
|
|
|
5794
5765
|
// src/bin/agt.ts
|
|
5795
|
-
var cliVersion2 = true ? "0.28.
|
|
5766
|
+
var cliVersion2 = true ? "0.28.172" : "dev";
|
|
5796
5767
|
var program = new Command();
|
|
5797
5768
|
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");
|
|
5798
5769
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -5869,12 +5840,12 @@ var beam = channels.command("beam").description("Manage Beam Protocol channel co
|
|
|
5869
5840
|
beam.command("setup <agent-code-name>").description("Generate Beam identity, register in directory, and configure channel").option("--directory-url <url>", "Beam directory URL (default: hosted)").option("--skip-register", "Skip directory registration").option("--auto-publish", "Auto-publish capabilities from TOOLS.md", true).action(channelBeamSetupCommand);
|
|
5870
5841
|
beam.command("status <agent-code-name>").description("Show Beam configuration and directory status").action(channelBeamStatusCommand);
|
|
5871
5842
|
beam.command("remove <agent-code-name>").description("Remove Beam identity for an agent").action(channelBeamRemoveCommand);
|
|
5872
|
-
program.command("provision <code-name>").description("Provision an agent: build
|
|
5843
|
+
program.command("provision <code-name>").description("Provision an agent: build config, generate files, store snapshot").option("--target <target>", "Deployment target", "local_docker").option("--output <dir>", "Output directory for generated files").option("--dry-run", "Print what would be generated without writing files").action(provisionCommand);
|
|
5873
5844
|
program.command("deploy").description("Generate deployment config from a template").option("--template <id>", "Template ID (triggers non-interactive mode)").option("--port <number>", "Base port for gateway", "9000").action(deployCommand);
|
|
5874
5845
|
var drift = program.command("drift").description("Detect configuration drift from provisioned state");
|
|
5875
|
-
drift.command("check <code-name>").description("Compare live state against provisioned snapshot").option("--json", "Output as JSON").option("--audit", "Run
|
|
5876
|
-
drift.command("watch <code-name>").description("Continuously monitor for drift").option("--interval <seconds>", "Check interval in seconds", "60").option("--webhook <url>", "POST webhook URL on new findings").option("--json", "Output as JSON").option("--config <path>", "Path to
|
|
5877
|
-
var host = program.command("host").description("Manage hosts
|
|
5846
|
+
drift.command("check <code-name>").description("Compare live state against provisioned snapshot").option("--json", "Output as JSON").option("--audit", "Run security audit").option("--config <path>", "Path to config file").action(driftCheckCommand);
|
|
5847
|
+
drift.command("watch <code-name>").description("Continuously monitor for drift").option("--interval <seconds>", "Check interval in seconds", "60").option("--webhook <url>", "POST webhook URL on new findings").option("--json", "Output as JSON").option("--config <path>", "Path to config file").action(driftWatchCommand);
|
|
5848
|
+
var host = program.command("host").description("Manage hosts and their API keys");
|
|
5878
5849
|
host.command("list").description("List hosts in the active team").action(hostListCommand);
|
|
5879
5850
|
host.command("assign <host-name> <agent-code-names...>").description("Assign agents to a host").option("--force", "Reassign agents already assigned to another host").action(hostAssignCommand);
|
|
5880
5851
|
host.command("unassign <host-name> <agent-code-names...>").description("Unassign agents from a host").action(hostUnassignCommand);
|
|
@@ -5898,7 +5869,7 @@ manager.command("uninstall").description("Remove the OS-level supervisor (launch
|
|
|
5898
5869
|
manager.command("install-system-unit").description("Install a system-level systemd unit (Linux, root) so the manager auto-starts on every boot. For headless EC2 hosts \u2014 survives reboot without `loginctl enable-linger`. (ENG-4706)").option("--interval <seconds>", "Poll interval in seconds (min 5)", "10").option("--config-dir <dir>", "Config directory for agent files (defaults to /root/.augmented or /home/<user>/.augmented)").option("--user <name>", "Unix user the manager runs as", "root").action(managerInstallSystemUnitCommand);
|
|
5899
5870
|
manager.command("uninstall-system-unit").description("Remove the system-level systemd unit (Linux, root). Idempotent. (ENG-4706)").action(managerUninstallSystemUnitCommand);
|
|
5900
5871
|
var agent = program.command("agent").description("Inspect and manage agents");
|
|
5901
|
-
agent.command("show <code-name>").description("Display an agent's provisioned
|
|
5872
|
+
agent.command("show <code-name>").description("Display an agent's provisioned configuration").option("--config-dir <dir>", "Config directory", join22(homedir11(), ".augmented")).option("--all-channels", "Show all channels (including disabled)").action(agentShowCommand);
|
|
5902
5873
|
var kanban = program.command("kanban").description("Manage agent kanban boards");
|
|
5903
5874
|
kanban.command("list").description("List kanban board items for an agent").requiredOption("--agent <code-name>", "Agent code name").action(kanbanListCommand);
|
|
5904
5875
|
kanban.command("add <title>").description("Add a new item to an agent kanban board").requiredOption("--agent <code-name>", "Agent code name").option("--priority <1|2|3>", "Priority: 1=high, 2=medium, 3=low", "2").option("--status <status>", "Initial status: backlog | todo | in_progress", "todo").option("--description <text>", "Item description").option("--estimate <minutes>", "Estimated time in minutes").option("--deliverable <text>", "Expected output/deliverable").action(kanbanAddCommand);
|