@integrity-labs/agt-cli 0.28.118 → 0.28.120

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 CHANGED
@@ -37,7 +37,7 @@ import {
37
37
  success,
38
38
  table,
39
39
  warn
40
- } from "../chunk-P7FAMLC4.js";
40
+ } from "../chunk-O3NKAOGE.js";
41
41
  import {
42
42
  CHANNEL_REGISTRY,
43
43
  DEPLOYMENT_TEMPLATES,
@@ -4777,7 +4777,7 @@ import { execFileSync, execSync } from "child_process";
4777
4777
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4778
4778
  import chalk18 from "chalk";
4779
4779
  import ora16 from "ora";
4780
- var cliVersion = true ? "0.28.118" : "dev";
4780
+ var cliVersion = true ? "0.28.120" : "dev";
4781
4781
  async function fetchLatestVersion() {
4782
4782
  const host2 = getHost();
4783
4783
  if (!host2) return null;
@@ -5791,7 +5791,7 @@ function handleError(err) {
5791
5791
  }
5792
5792
 
5793
5793
  // src/bin/agt.ts
5794
- var cliVersion2 = true ? "0.28.118" : "dev";
5794
+ var cliVersion2 = true ? "0.28.120" : "dev";
5795
5795
  var program = new Command();
5796
5796
  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");
5797
5797
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -917,28 +917,34 @@ function buildKnowledgeSection(knowledge) {
917
917
  return "";
918
918
  const orgEntries = knowledge.filter((k) => k.scope === "org");
919
919
  const teamEntries = knowledge.filter((k) => k.scope === "team");
920
+ const globalEntries = knowledge.filter((k) => k.scope === "global");
920
921
  const formatEntry = (k) => `- **${k.title}** \u2192 \`knowledge/${k.slug}.md\``;
921
- let body = "";
922
+ const groups = [];
922
923
  if (orgEntries.length) {
923
- body += `### Organization
924
+ groups.push(`### Organization
924
925
 
925
926
  ${orgEntries.map(formatEntry).join("\n")}
926
- `;
927
- }
928
- if (orgEntries.length && teamEntries.length) {
929
- body += "\n";
927
+ `);
930
928
  }
931
929
  if (teamEntries.length) {
932
- body += `### Team
930
+ groups.push(`### Team
933
931
 
934
932
  ${teamEntries.map(formatEntry).join("\n")}
935
- `;
933
+ `);
936
934
  }
935
+ if (globalEntries.length) {
936
+ groups.push(`### Augmented Team
937
+
938
+ ${globalEntries.map(formatEntry).join("\n")}
939
+ `);
940
+ }
941
+ const body = groups.join("\n");
937
942
  return `
938
943
  ## Core Knowledge
939
944
 
940
- Your team has provided the following knowledge. Read the relevant files when
941
- you need context about who you work for or how to operate.
945
+ The following knowledge is available to you (it may come from your team, your
946
+ organization, or Augmented Team). Read the relevant files when you need context
947
+ about who you work for or how to operate.
942
948
 
943
949
  ${body}`;
944
950
  }
@@ -2769,28 +2775,34 @@ function buildKnowledgeSection2(knowledge) {
2769
2775
  return "";
2770
2776
  const orgEntries = knowledge.filter((k) => k.scope === "org");
2771
2777
  const teamEntries = knowledge.filter((k) => k.scope === "team");
2778
+ const globalEntries = knowledge.filter((k) => k.scope === "global");
2772
2779
  const formatEntry = (k) => `- **${k.title}**`;
2773
- let body = "";
2780
+ const groups = [];
2774
2781
  if (orgEntries.length) {
2775
- body += `### Organization
2782
+ groups.push(`### Organization
2776
2783
 
2777
2784
  ${orgEntries.map(formatEntry).join("\n")}
2778
- `;
2779
- }
2780
- if (orgEntries.length && teamEntries.length) {
2781
- body += "\n";
2785
+ `);
2782
2786
  }
2783
2787
  if (teamEntries.length) {
2784
- body += `### Team
2788
+ groups.push(`### Team
2785
2789
 
2786
2790
  ${teamEntries.map(formatEntry).join("\n")}
2787
- `;
2791
+ `);
2788
2792
  }
2793
+ if (globalEntries.length) {
2794
+ groups.push(`### Augmented Team
2795
+
2796
+ ${globalEntries.map(formatEntry).join("\n")}
2797
+ `);
2798
+ }
2799
+ const body = groups.join("\n");
2789
2800
  return `## Core Knowledge
2790
2801
 
2791
- Your team has provided core knowledge via the \`core-knowledge\` skill.
2792
- It is automatically available \u2014 Claude Code will surface it when you need
2793
- context. You do not need to read files manually.
2802
+ The following core knowledge is available to you via the \`core-knowledge\`
2803
+ skill (it may come from your team, your organization, or Augmented Team). It is
2804
+ automatically available; Claude Code will surface it when you need context. You
2805
+ do not need to read files manually.
2794
2806
 
2795
2807
  ${body}
2796
2808
  `;
@@ -3401,6 +3413,14 @@ ${desc}
3401
3413
 
3402
3414
  ## \u26A0\uFE0F FIRST ACTION on every channel message: triage
3403
3415
 
3416
+ **The delivery rule, true of every reply below:** the ONLY way a channel user
3417
+ (Slack, Telegram, Microsoft Teams, Direct Chat) receives anything from you is a
3418
+ channel reply tool call - \`slack.reply\`, \`telegram.reply\`, \`teams.reply\`,
3419
+ or \`direct_chat.reply\`. Plain text you write in your turn is NOT delivered to
3420
+ the user; it goes only to your local session log. So always reply on the channel
3421
+ the message arrived on, and never answer a channel message with plain text
3422
+ alone: if you did not call a reply tool, the user received nothing.
3423
+
3404
3424
  This is the highest-priority instruction in this document. Before anything
3405
3425
  else when you receive an inbound \`<channel>\` tag (Slack/Telegram/Direct
3406
3426
  Chat), decide:
@@ -3412,7 +3432,7 @@ refreshes, multi-skill activations, or anything you'd reasonably want to
3412
3432
  acknowledge before you start.
3413
3433
 
3414
3434
  - **FAST (< 60s):** handle inline. Reply via the channel tool
3415
- (slack.reply / telegram.reply / directchat.reply) and end your turn.
3435
+ (slack.reply / telegram.reply / direct_chat.reply) and end your turn.
3416
3436
 
3417
3437
  - **SLOW (\u2265 60s):** acknowledge first, then handle inline.
3418
3438
  1. Send a one-line acknowledgement via the channel tool \u2014 short, warm,
@@ -3423,7 +3443,7 @@ acknowledge before you start.
3423
3443
  need (MCP, skills, file reads, etc.) \u2014 your parent session has the
3424
3444
  full MCP surface bound.
3425
3445
  3. Reply with the result via the channel tool (\`slack.reply\` /
3426
- \`telegram.reply\` / \`directchat.reply\`), addressing the same thread
3446
+ \`telegram.reply\` / \`direct_chat.reply\`), addressing the same thread
3427
3447
  / chat / conversation you acknowledged in step 1.
3428
3448
 
3429
3449
  > **Why inline and not sub-agent dispatch right now:** there is an
@@ -3539,8 +3559,9 @@ diving into slow work (sub-agent dispatch for channel replies is
3539
3559
  currently disabled due to an upstream Claude Code bug; see the FIRST
3540
3560
  ACTION section for the full rationale).
3541
3561
 
3542
- For fast requests, respond directly in the conversation. You can also
3543
- proactively use:
3562
+ For fast requests, reply with \`slack.reply\` (see the delivery rule in the
3563
+ FIRST ACTION section: a plain-text turn does NOT reach Slack - only a
3564
+ \`slack.reply\` call does). You can also proactively use:
3544
3565
 
3545
3566
  - **slack.reply** \u2014 reply to a message in a channel/thread
3546
3567
  - **slack.react** \u2014 add an emoji reaction to a message (use sparingly \u2014 see taxonomy below)
@@ -6024,7 +6045,7 @@ var claudeCodeAdapter = {
6024
6045
  if (knowledgeEntries.length > 0 && includeFiles) {
6025
6046
  const safeTitles = knowledgeEntries.map((k) => k.title.replace(/[\n\r"\\]/g, " ").trim().toLowerCase()).filter(Boolean);
6026
6047
  const sections = knowledgeEntries.map((entry) => {
6027
- const scopeLabel = entry.scope === "org" ? "Organization" : "Team";
6048
+ const scopeLabel = entry.scope === "org" ? "Organization" : entry.scope === "global" ? "Augmented Team" : "Team";
6028
6049
  const safeTitle = entry.title.replace(/[\n\r]/g, " ").trim();
6029
6050
  return `## ${safeTitle}
6030
6051
  *${scopeLabel} knowledge*
@@ -7632,7 +7653,7 @@ function requireHost() {
7632
7653
  }
7633
7654
 
7634
7655
  // src/lib/api-client.ts
7635
- var agtCliVersion = true ? "0.28.118" : "dev";
7656
+ var agtCliVersion = true ? "0.28.120" : "dev";
7636
7657
  var lastConfigHash = null;
7637
7658
  function setConfigHash(hash) {
7638
7659
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8929,4 +8950,4 @@ export {
8929
8950
  managerInstallSystemUnitCommand,
8930
8951
  managerUninstallSystemUnitCommand
8931
8952
  };
8932
- //# sourceMappingURL=chunk-P7FAMLC4.js.map
8953
+ //# sourceMappingURL=chunk-O3NKAOGE.js.map