@integrity-labs/agt-cli 0.10.4 → 0.10.6
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 +3 -3
- package/dist/{chunk-CVQD6XGB.js → chunk-O5T62RSQ.js} +10 -4
- package/dist/chunk-O5T62RSQ.js.map +1 -0
- package/dist/lib/manager-worker.js +34 -3
- package/dist/lib/manager-worker.js.map +1 -1
- package/mcp/slack-channel.js +72 -0
- package/package.json +1 -1
- package/dist/chunk-CVQD6XGB.js.map +0 -1
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
provisionStopHook,
|
|
11
11
|
requireHost,
|
|
12
12
|
resolveChannels
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-O5T62RSQ.js";
|
|
14
14
|
import {
|
|
15
15
|
findTaskByTemplate,
|
|
16
16
|
getProjectDir,
|
|
@@ -1533,7 +1533,8 @@ async function processAgent(agent, agentStates) {
|
|
|
1533
1533
|
let existingHash;
|
|
1534
1534
|
if (artifact.relativePath === "CLAUDE.md") {
|
|
1535
1535
|
try {
|
|
1536
|
-
const
|
|
1536
|
+
const projectClaudeMd = join(config.configDir, agent.code_name, "project", "CLAUDE.md");
|
|
1537
|
+
const existing = readFileSync(projectClaudeMd, "utf-8");
|
|
1537
1538
|
const stripped = existing.replace(new RegExp(`${SKILLS_INDEX_START}[\\s\\S]*?${SKILLS_INDEX_END}`), "").trimEnd();
|
|
1538
1539
|
existingHash = sha256(stripped);
|
|
1539
1540
|
} catch {
|
|
@@ -1691,6 +1692,34 @@ async function processAgent(agent, agentStates) {
|
|
|
1691
1692
|
}
|
|
1692
1693
|
}
|
|
1693
1694
|
}
|
|
1695
|
+
if (frameworkId === "claude-code") {
|
|
1696
|
+
const channelPluginMap = {
|
|
1697
|
+
telegram: "telegram",
|
|
1698
|
+
discord: "discord",
|
|
1699
|
+
slack: "slack"
|
|
1700
|
+
};
|
|
1701
|
+
for (const channelId of Object.keys(refreshData.channel_configs)) {
|
|
1702
|
+
const pluginName = channelPluginMap[channelId];
|
|
1703
|
+
if (!pluginName) continue;
|
|
1704
|
+
const entry = refreshData.channel_configs[channelId];
|
|
1705
|
+
if (!entry || entry.status !== "active" && entry.status !== "pending") continue;
|
|
1706
|
+
const pluginDir = join(homedir(), ".claude", "plugins", pluginName);
|
|
1707
|
+
if (existsSync(pluginDir)) continue;
|
|
1708
|
+
try {
|
|
1709
|
+
const { execFileSync: efs } = await import("child_process");
|
|
1710
|
+
const claudePath = efs("which", ["claude"], { timeout: 5e3 }).toString().trim();
|
|
1711
|
+
if (claudePath) {
|
|
1712
|
+
efs(claudePath, ["plugin", "install", pluginName], {
|
|
1713
|
+
timeout: 3e4,
|
|
1714
|
+
stdio: "pipe"
|
|
1715
|
+
});
|
|
1716
|
+
log(`Auto-installed '${pluginName}' Claude Code plugin for '${agent.code_name}'`);
|
|
1717
|
+
}
|
|
1718
|
+
} catch (err) {
|
|
1719
|
+
log(`Failed to auto-install '${pluginName}' plugin for '${agent.code_name}': ${err.message}`);
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1694
1723
|
} else if (agent.status === "paused") {
|
|
1695
1724
|
if (frameworkAdapter.setChannelEnabled) {
|
|
1696
1725
|
for (const channelId of Object.keys(refreshData.channel_configs)) {
|
|
@@ -3784,7 +3813,9 @@ function generateArtifacts(agent, refreshData, adapter) {
|
|
|
3784
3813
|
timezone: agentTimezone,
|
|
3785
3814
|
reportsTo,
|
|
3786
3815
|
personalitySeed,
|
|
3787
|
-
knowledge: (refreshData.knowledge ?? []).filter((k) => !!k.content)
|
|
3816
|
+
knowledge: (refreshData.knowledge ?? []).filter((k) => !!k.content),
|
|
3817
|
+
teamMembers: refreshData.team_members ?? void 0,
|
|
3818
|
+
people: refreshData.people ?? void 0
|
|
3788
3819
|
};
|
|
3789
3820
|
const provisionOutput = provision(provisionInput, adapter.id);
|
|
3790
3821
|
return provisionOutput.artifacts;
|