@integrity-labs/agt-cli 0.28.963 → 0.28.965

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.
Files changed (25) hide show
  1. package/dist/bin/agt.js +5 -5
  2. package/dist/{chunk-PE6Z3UMB.js → chunk-3XZNMC4V.js} +4 -4
  3. package/dist/{chunk-TI3V27FS.js → chunk-J6S2H54R.js} +2 -2
  4. package/dist/{chunk-4ZXFR64M.js → chunk-PWPE62DF.js} +108 -8
  5. package/dist/chunk-PWPE62DF.js.map +1 -0
  6. package/dist/{claude-pair-runtime-INNBV2E3.js → claude-pair-runtime-O7CZKXDK.js} +2 -2
  7. package/dist/lib/manager-worker.js +16 -94
  8. package/dist/lib/manager-worker.js.map +1 -1
  9. package/dist/mcp/direct-chat-channel.js +36 -22
  10. package/dist/mcp/index.js +23 -7
  11. package/dist/mcp/origami.js +23 -7
  12. package/dist/mcp/slack-channel.js +25 -7
  13. package/dist/mcp/teams-channel.js +2 -0
  14. package/dist/mcp/telegram-channel.js +25 -7
  15. package/dist/{persistent-session-C7QW6EZJ.js → persistent-session-BGZAGJVY.js} +3 -3
  16. package/dist/{responsiveness-probe-OVDIYW5R.js → responsiveness-probe-2PK6PG6Z.js} +3 -3
  17. package/dist/{session-auth-dead-BW6SDESD.js → session-auth-dead-HUYBSCNA.js} +2 -2
  18. package/package.json +1 -1
  19. package/dist/chunk-4ZXFR64M.js.map +0 -1
  20. /package/dist/{chunk-PE6Z3UMB.js.map → chunk-3XZNMC4V.js.map} +0 -0
  21. /package/dist/{chunk-TI3V27FS.js.map → chunk-J6S2H54R.js.map} +0 -0
  22. /package/dist/{claude-pair-runtime-INNBV2E3.js.map → claude-pair-runtime-O7CZKXDK.js.map} +0 -0
  23. /package/dist/{persistent-session-C7QW6EZJ.js.map → persistent-session-BGZAGJVY.js.map} +0 -0
  24. /package/dist/{responsiveness-probe-OVDIYW5R.js.map → responsiveness-probe-2PK6PG6Z.js.map} +0 -0
  25. /package/dist/{session-auth-dead-BW6SDESD.js.map → session-auth-dead-HUYBSCNA.js.map} +0 -0
package/dist/bin/agt.js CHANGED
@@ -40,12 +40,12 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-PE6Z3UMB.js";
43
+ } from "../chunk-3XZNMC4V.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-TI3V27FS.js";
48
+ } from "../chunk-J6S2H54R.js";
49
49
  import {
50
50
  AnchorSessionClient,
51
51
  CHANNEL_REGISTRY,
@@ -79,7 +79,7 @@ import {
79
79
  serializeManifestForSlackCli,
80
80
  sessionFileExists,
81
81
  sessionTranscriptDir
82
- } from "../chunk-4ZXFR64M.js";
82
+ } from "../chunk-PWPE62DF.js";
83
83
  import "../chunk-DHWNVVX4.js";
84
84
  import "../chunk-XWVM4KPK.js";
85
85
 
@@ -5471,7 +5471,7 @@ import { execFileSync, execSync } from "child_process";
5471
5471
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5472
5472
  import chalk18 from "chalk";
5473
5473
  import ora16 from "ora";
5474
- var cliVersion = true ? "0.28.963" : "dev";
5474
+ var cliVersion = true ? "0.28.965" : "dev";
5475
5475
  async function fetchLatestVersion() {
5476
5476
  const host2 = getHost();
5477
5477
  if (!host2) return null;
@@ -6731,7 +6731,7 @@ function handleError(err) {
6731
6731
  }
6732
6732
 
6733
6733
  // src/bin/agt.ts
6734
- var cliVersion2 = true ? "0.28.963" : "dev";
6734
+ var cliVersion2 = true ? "0.28.965" : "dev";
6735
6735
  var program = new Command();
6736
6736
  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");
6737
6737
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -14,7 +14,7 @@ import {
14
14
  parseEnvFileEntries,
15
15
  parseEnvIntegrations,
16
16
  shellQuote
17
- } from "./chunk-TI3V27FS.js";
17
+ } from "./chunk-J6S2H54R.js";
18
18
  import {
19
19
  BIND_FAILURE_QUARANTINE_THRESHOLD,
20
20
  INTEGRATIONS_SECTION_END,
@@ -74,7 +74,7 @@ import {
74
74
  sessionTranscriptDir,
75
75
  worseConnectivityOutcome,
76
76
  wrapScheduledTaskPrompt
77
- } from "./chunk-4ZXFR64M.js";
77
+ } from "./chunk-PWPE62DF.js";
78
78
  import {
79
79
  classifyUnanswerablePane,
80
80
  summarizeUnanswerablePane
@@ -6967,7 +6967,7 @@ function exchangeFailureKind(err) {
6967
6967
  }
6968
6968
 
6969
6969
  // src/lib/api-client.ts
6970
- var agtCliVersion = true ? "0.28.963" : "dev";
6970
+ var agtCliVersion = true ? "0.28.965" : "dev";
6971
6971
  var lastConfigHash = null;
6972
6972
  function setConfigHash(hash) {
6973
6973
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -11666,4 +11666,4 @@ export {
11666
11666
  managerInstallSystemUnitCommand,
11667
11667
  managerUninstallSystemUnitCommand
11668
11668
  };
11669
- //# sourceMappingURL=chunk-PE6Z3UMB.js.map
11669
+ //# sourceMappingURL=chunk-3XZNMC4V.js.map
@@ -20,7 +20,7 @@ import {
20
20
  rotateDailySession,
21
21
  sessionFileExists,
22
22
  todayLocalIso
23
- } from "./chunk-4ZXFR64M.js";
23
+ } from "./chunk-PWPE62DF.js";
24
24
  import {
25
25
  classifyUnanswerablePane,
26
26
  findUsageLimitResetHint,
@@ -5575,4 +5575,4 @@ export {
5575
5575
  stopAllSessionsAndWait,
5576
5576
  getProjectDir
5577
5577
  };
5578
- //# sourceMappingURL=chunk-TI3V27FS.js.map
5578
+ //# sourceMappingURL=chunk-J6S2H54R.js.map
@@ -4267,6 +4267,88 @@ var AZURE_PROVISIONING_SCOPES = [
4267
4267
  "https://management.azure.com/user_impersonation"
4268
4268
  ];
4269
4269
 
4270
+ // ../../packages/core/dist/channels/governance/sender-policy-decline.js
4271
+ function teamOnlyReason(allowlist) {
4272
+ return allowlist && allowlist.length > 0 ? "mode_team_only" : "mode_team_only_no_principals";
4273
+ }
4274
+ function classifySlackPolicyBlock(evt, policy) {
4275
+ if (policy.internalOnly && (!policy.homeTeamId || evt.team !== policy.homeTeamId)) {
4276
+ return "internal_only";
4277
+ }
4278
+ switch (policy.mode) {
4279
+ case "manager_only":
4280
+ return "mode_manager_only";
4281
+ case "team_only":
4282
+ return teamOnlyReason(policy.teamPrincipalSlackUserIds);
4283
+ case "team_agents_only":
4284
+ return "mode_team_agents_only";
4285
+ case "agents_only":
4286
+ return "mode_agents_only";
4287
+ case "all":
4288
+ return "internal_only";
4289
+ }
4290
+ }
4291
+ function politeDeclineCopy(reason) {
4292
+ switch (reason) {
4293
+ case "internal_only":
4294
+ return "Sorry, I can only respond to people inside our organisation. This conversation appears to be from outside.";
4295
+ case "mode_manager_only":
4296
+ return "Sorry, I only respond to my manager in this channel.";
4297
+ case "mode_team_only":
4298
+ return "Sorry, this agent only replies to its team members.";
4299
+ case "mode_team_only_no_principals":
4300
+ return "Sorry, I can't reply to anyone in this channel yet: none of my team members' accounts here are linked to me. An admin needs to link them first.";
4301
+ case "mode_manager_only_no_principals":
4302
+ return "Sorry, I can't reply to anyone right now: I'm set to talk only to my manager, and no manager is configured for me. An admin needs to set who I report to.";
4303
+ case "mode_team_agents_only":
4304
+ return "Sorry, I only respond to agents on my team in this channel.";
4305
+ case "mode_agents_only":
4306
+ return "Sorry, I only respond to other agents in this channel.";
4307
+ }
4308
+ }
4309
+
4310
+ // ../../packages/core/dist/channels/governance/inbound-access.js
4311
+ function decideInboundAccess(input) {
4312
+ if (!input.content.forward) {
4313
+ return { kind: "drop", reason: `content:${input.content.reason}` };
4314
+ }
4315
+ if (input.isSelf) {
4316
+ return { kind: "drop", reason: "self" };
4317
+ }
4318
+ if (input.orgBoundary && !input.orgBoundary.forward) {
4319
+ return { kind: "drop", reason: "org_boundary" };
4320
+ }
4321
+ if (input.chatType && !input.chatType.forward) {
4322
+ return { kind: "drop", reason: "chat_type" };
4323
+ }
4324
+ if (input.senderPolicy && !input.senderPolicy.forward) {
4325
+ const reason = input.senderPolicy.reason;
4326
+ const declineWorthy = input.sameOrg && reason !== "internal_only";
4327
+ return {
4328
+ kind: "drop",
4329
+ reason: `sender_policy:${reason}`,
4330
+ decline: declineWorthy ? politeDeclineCopy(reason) : void 0
4331
+ };
4332
+ }
4333
+ if (input.command && !input.isBot) {
4334
+ return {
4335
+ kind: "command",
4336
+ command: input.command.command,
4337
+ authorized: input.command.authorized
4338
+ };
4339
+ }
4340
+ if (input.isBot) {
4341
+ const peer = input.peer;
4342
+ if (!peer || peer.kind === "self") {
4343
+ return { kind: "drop", reason: peer?.kind === "self" ? "self" : "peer:unclassified" };
4344
+ }
4345
+ if (peer.kind === "drop") {
4346
+ return { kind: "drop", reason: `peer:${peer.reason ?? "unspecified"}` };
4347
+ }
4348
+ }
4349
+ return { kind: "admit" };
4350
+ }
4351
+
4270
4352
  // ../../packages/core/dist/parser/frontmatter.js
4271
4353
  import { parse as parseYaml, parseDocument } from "yaml";
4272
4354
  function extractFrontmatter(content) {
@@ -11851,12 +11933,12 @@ var composio_approved_egress_default = {
11851
11933
  "id, so comparing ids would red on the safe case - which is precisely the case Part 2's",
11852
11934
  "EIP adoption exists to create.",
11853
11935
  "",
11854
- "WHEN ENG-9426 LANDS THIS GOES RED UNTIL IT IS UPDATED. That is the forcing function",
11855
- "working, not a fault. ENG-9426 adds a NAT in ap-southeast-2b, i.e. a THIRD egress",
11856
- "address: add it here in the same change that lands it, or the detector correctly",
11936
+ "ANY NEW HOSTS-ACCOUNT EGRESS ADDRESS TURNS THE DETECTOR RED UNTIL IT IS ADDED HERE.",
11937
+ "That is the forcing function working, not a fault: ENG-9426's 2b NAT was added in the",
11938
+ "same change that created it. Do the same for the next one, or the detector correctly",
11857
11939
  "reports that hosts are leaving from an address no key allows. Do not loosen the check.",
11858
- "",
11859
- " crossing to 2a and stop dying with it. The address does not exist until",
11940
+ "A CONTROL-PLANE address gets no such forcing function - the detector never sees that",
11941
+ "account at all - which is why the bridge note below is written out by hand instead.",
11860
11942
  "",
11861
11943
  "15.135.204.192 IS GONE AND MUST NOT BE RE-ADDED (ENG-9426, 2026-09-15).",
11862
11944
  "The dev NAT was retired and that address was RELEASED back to the AWS pool, so it can",
@@ -11870,8 +11952,24 @@ var composio_approved_egress_default = {
11870
11952
  "delete-time options from the STATE recorded at the resource's last registration, and by",
11871
11953
  "the time this ran the resource was no longer in the program at all - so the state still",
11872
11954
  "said 'delete normally'. retainOnDelete has to land in a deploy that STILL DECLARES the",
11873
- "resource before it protects anything. The two prod EIPs above are protected, because",
11874
- "this apply registered them with the option set."
11955
+ "resource before it protects anything. The two prod hosts EIPs listed below are protected, because",
11956
+ "this apply registered them with the option set.",
11957
+ "",
11958
+ "TWO BRIDGE ADDRESSES ARE STILL MISSING FROM THIS FILE (ENG-9684, 2026-09-15).",
11959
+ "The control-plane egress bridge is being deployed to prod with a managed multi-AZ NAT,",
11960
+ "which allocates two more Elastic IPs - in the CONTROL PLANE account (109039361030), not",
11961
+ "the hosts account. They are not listed here yet because they do not exist until that",
11962
+ "deploy runs; read them from SSM at",
11963
+ "/augmented/prod/secrets/COMPOSIO_EGRESS_IPS (comma-separated, ready to paste) and add",
11964
+ "them here in the same change that arms anything.",
11965
+ "",
11966
+ "THE DETECTOR CANNOT VERIFY THOSE TWO, AND THAT IS CORRECT, NOT A BUG.",
11967
+ "ComposioEgressAddressDrift enumerates ONE account - the hosts account - so it compares",
11968
+ "only the addresses instances there actually route through. Bridge addresses will sit in",
11969
+ "this set unmatched and unflagged. Do NOT 'fix' that by trimming this file to what the",
11970
+ "detector checks: the file records what the ALLOWLIST must hold, which is a superset of",
11971
+ "what any one account scan can see. Trimming it would make the allowlist incomplete,",
11972
+ "which is a fleet-wide 401 rather than a tidy file."
11875
11973
  ],
11876
11974
  account: "711726113003",
11877
11975
  homeRegion: "ap-southeast-2",
@@ -14812,6 +14910,8 @@ export {
14812
14910
  serializeManifestForSlackCli,
14813
14911
  SlackApiError,
14814
14912
  createSlackApp,
14913
+ classifySlackPolicyBlock,
14914
+ decideInboundAccess,
14815
14915
  extractFrontmatter,
14816
14916
  generateCharterMd,
14817
14917
  generateToolsMd,
@@ -14928,4 +15028,4 @@ export {
14928
15028
  peekCurrentSession,
14929
15029
  readDailySessionPin
14930
15030
  };
14931
- //# sourceMappingURL=chunk-4ZXFR64M.js.map
15031
+ //# sourceMappingURL=chunk-PWPE62DF.js.map