@integrity-labs/agt-cli 0.15.3 → 0.15.4
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-IQI7XAQ6.js → chunk-WDF7NJ2F.js} +42 -11
- package/dist/chunk-WDF7NJ2F.js.map +1 -0
- package/dist/lib/manager-worker.js +58 -2
- package/dist/lib/manager-worker.js.map +1 -1
- package/mcp/index.js +0 -0
- package/mcp/slack-channel.js +17 -6
- package/mcp/telegram-channel.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-IQI7XAQ6.js.map +0 -1
package/dist/bin/agt.js
CHANGED
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
success,
|
|
46
46
|
table,
|
|
47
47
|
warn
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-WDF7NJ2F.js";
|
|
49
49
|
|
|
50
50
|
// src/bin/agt.ts
|
|
51
51
|
import { join as join9 } from "path";
|
|
@@ -3402,7 +3402,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
3402
3402
|
import { existsSync as existsSync4, realpathSync } from "fs";
|
|
3403
3403
|
import chalk17 from "chalk";
|
|
3404
3404
|
import ora15 from "ora";
|
|
3405
|
-
var cliVersion = true ? "0.15.
|
|
3405
|
+
var cliVersion = true ? "0.15.4" : "dev";
|
|
3406
3406
|
async function fetchLatestVersion() {
|
|
3407
3407
|
const host2 = getHost();
|
|
3408
3408
|
if (!host2) return null;
|
|
@@ -3851,7 +3851,7 @@ function handleError(err) {
|
|
|
3851
3851
|
}
|
|
3852
3852
|
|
|
3853
3853
|
// src/bin/agt.ts
|
|
3854
|
-
var cliVersion2 = true ? "0.15.
|
|
3854
|
+
var cliVersion2 = true ? "0.15.4" : "dev";
|
|
3855
3855
|
var program = new Command();
|
|
3856
3856
|
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");
|
|
3857
3857
|
program.hook("preAction", (thisCommand) => {
|
|
@@ -1317,6 +1317,8 @@ var openclawAdapter = {
|
|
|
1317
1317
|
slug: k.slug,
|
|
1318
1318
|
scope: k.scope
|
|
1319
1319
|
}));
|
|
1320
|
+
const delivery = input.knowledgeDelivery ?? "both";
|
|
1321
|
+
const includeFiles = delivery === "files" || delivery === "both";
|
|
1320
1322
|
const soulInput = {
|
|
1321
1323
|
frontmatter: input.charterFrontmatter,
|
|
1322
1324
|
role: input.agent.role,
|
|
@@ -1334,13 +1336,15 @@ var openclawAdapter = {
|
|
|
1334
1336
|
{ relativePath: "CHARTER.md", content: input.charterContent },
|
|
1335
1337
|
{ relativePath: "TOOLS.md", content: input.toolsContent }
|
|
1336
1338
|
];
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1339
|
+
if (includeFiles) {
|
|
1340
|
+
for (const entry of safeKnowledge) {
|
|
1341
|
+
artifacts.push({
|
|
1342
|
+
relativePath: `knowledge/${entry.slug}.md`,
|
|
1343
|
+
content: `# ${entry.title} (${entry.scope === "org" ? "Organization" : "Team"})
|
|
1341
1344
|
|
|
1342
1345
|
${entry.content}`
|
|
1343
|
-
|
|
1346
|
+
});
|
|
1347
|
+
}
|
|
1344
1348
|
}
|
|
1345
1349
|
return artifacts;
|
|
1346
1350
|
},
|
|
@@ -2222,6 +2226,7 @@ var nemoClawAdapter = {
|
|
|
2222
2226
|
return join3(homedir2(), ".augmented", codeName);
|
|
2223
2227
|
},
|
|
2224
2228
|
buildArtifacts(input) {
|
|
2229
|
+
void input.knowledgeDelivery;
|
|
2225
2230
|
const blueprint = {
|
|
2226
2231
|
agentCodeName: input.agent.code_name,
|
|
2227
2232
|
version: "1.0.0",
|
|
@@ -2705,10 +2710,24 @@ You have a Slack MCP server connected. When Slack messages arrive via the channe
|
|
|
2705
2710
|
protocol, respond directly in the conversation. You can also proactively use:
|
|
2706
2711
|
|
|
2707
2712
|
- **slack.reply** \u2014 reply to a message in a channel/thread
|
|
2708
|
-
- **slack.react** \u2014 add an emoji reaction to a message
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2713
|
+
- **slack.react** \u2014 add an emoji reaction to a message (use sparingly \u2014 see taxonomy below)
|
|
2714
|
+
|
|
2715
|
+
The Slack channel auto-applies \u{1F440} on every inbound message \u2014 do not call slack.react
|
|
2716
|
+
to add it yourself. After working, prefer a text reply via slack.reply over a reaction.
|
|
2717
|
+
|
|
2718
|
+
**Reaction taxonomy (the only emoji you should ever pass to slack.react):**
|
|
2719
|
+
- \u2705 (\`white_check_mark\`) \u2014 the requested action completed successfully and a text
|
|
2720
|
+
reply isn't warranted
|
|
2721
|
+
- \u274C (\`x\`) \u2014 **execution failure only**: you tried to execute the requested action
|
|
2722
|
+
and it errored. Do NOT use \u274C for "skipped", "disagree", "not addressed to me",
|
|
2723
|
+
"n/a", or "noted" \u2014 for those, simply do nothing or reply with text.
|
|
2724
|
+
|
|
2725
|
+
**When a thread message is not for you, do nothing.** If a message in a thread
|
|
2726
|
+
is addressed to a different user (different @-mention), is part of a conversation
|
|
2727
|
+
between others, or arrives via auto-follow with no relevance to you \u2014 silently
|
|
2728
|
+
skip it. No reaction. No reply. Adding \u274C in this case is wrong: it tells the
|
|
2729
|
+
user "execution failed" when in fact you correctly identified the message wasn't
|
|
2730
|
+
yours to handle.
|
|
2712
2731
|
` : ""}
|
|
2713
2732
|
## Governance
|
|
2714
2733
|
|
|
@@ -3362,7 +3381,9 @@ var claudeCodeAdapter = {
|
|
|
3362
3381
|
{ relativePath: "TOOLS.md", content: input.toolsContent }
|
|
3363
3382
|
];
|
|
3364
3383
|
const knowledgeEntries = input.knowledge ?? [];
|
|
3365
|
-
|
|
3384
|
+
const delivery = input.knowledgeDelivery ?? "both";
|
|
3385
|
+
const includeFiles = delivery === "files" || delivery === "both";
|
|
3386
|
+
if (knowledgeEntries.length > 0 && includeFiles) {
|
|
3366
3387
|
const safeTitles = knowledgeEntries.map((k) => k.title.replace(/[\n\r"\\]/g, " ").trim().toLowerCase()).filter(Boolean);
|
|
3367
3388
|
const sections = knowledgeEntries.map((entry) => {
|
|
3368
3389
|
const scopeLabel = entry.scope === "org" ? "Organization" : "Team";
|
|
@@ -5076,6 +5097,14 @@ function looksLikeNotesOnly(remainder) {
|
|
|
5076
5097
|
return lines.every((line) => NON_DELIVERABLE_REMAINDER_PATTERNS.some((pattern) => pattern.test(line)));
|
|
5077
5098
|
}
|
|
5078
5099
|
|
|
5100
|
+
// ../../packages/core/dist/types/kanban.js
|
|
5101
|
+
function formatActorId(kind, id) {
|
|
5102
|
+
return `${kind}:${id}`;
|
|
5103
|
+
}
|
|
5104
|
+
function isSelfCompletion(event) {
|
|
5105
|
+
return event.last_actor_id === formatActorId("agent", event.agent_id);
|
|
5106
|
+
}
|
|
5107
|
+
|
|
5079
5108
|
// ../../packages/core/dist/schemas/validators.js
|
|
5080
5109
|
import Ajv2020 from "ajv/dist/2020.js";
|
|
5081
5110
|
import addFormats from "ajv-formats";
|
|
@@ -7056,6 +7085,8 @@ export {
|
|
|
7056
7085
|
warn,
|
|
7057
7086
|
info,
|
|
7058
7087
|
table,
|
|
7088
|
+
formatActorId,
|
|
7089
|
+
isSelfCompletion,
|
|
7059
7090
|
resolveChannels,
|
|
7060
7091
|
SLACK_SCOPE_CATEGORY_LABELS,
|
|
7061
7092
|
getDefaultSlackScopes,
|
|
@@ -7083,4 +7114,4 @@ export {
|
|
|
7083
7114
|
managerStopCommand,
|
|
7084
7115
|
managerStatusCommand
|
|
7085
7116
|
};
|
|
7086
|
-
//# sourceMappingURL=chunk-
|
|
7117
|
+
//# sourceMappingURL=chunk-WDF7NJ2F.js.map
|