@integrity-labs/agt-cli 0.28.966 → 0.28.968

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-STTM33M5.js → chunk-EOBOL6AF.js} +4 -4
  3. package/dist/chunk-EOBOL6AF.js.map +1 -0
  4. package/dist/{chunk-K2VDNAD2.js → chunk-NNLFFHCB.js} +2 -2
  5. package/dist/{chunk-V73S7OXI.js → chunk-R5G7EUJS.js} +20 -6
  6. package/dist/{chunk-V73S7OXI.js.map → chunk-R5G7EUJS.js.map} +1 -1
  7. package/dist/{claude-pair-runtime-ICRPR6QQ.js → claude-pair-runtime-MF7I4FNM.js} +2 -2
  8. package/dist/lib/manager-worker.js +16 -18
  9. package/dist/lib/manager-worker.js.map +1 -1
  10. package/dist/mcp/direct-chat-channel.js +1 -1
  11. package/dist/mcp/index.js +1 -1
  12. package/dist/mcp/origami.js +1 -1
  13. package/dist/mcp/slack-channel.js +3 -5
  14. package/dist/mcp/teams-channel.js +2 -4
  15. package/dist/mcp/telegram-channel.js +1 -1
  16. package/dist/{persistent-session-6C3XIT5F.js → persistent-session-G3YBVYJI.js} +3 -3
  17. package/dist/{responsiveness-probe-22RREUHV.js → responsiveness-probe-CUMOVJG2.js} +3 -3
  18. package/dist/{session-auth-dead-IOBL2YXT.js → session-auth-dead-XU6S3ZAU.js} +2 -2
  19. package/package.json +1 -1
  20. package/dist/chunk-STTM33M5.js.map +0 -1
  21. /package/dist/{chunk-K2VDNAD2.js.map → chunk-NNLFFHCB.js.map} +0 -0
  22. /package/dist/{claude-pair-runtime-ICRPR6QQ.js.map → claude-pair-runtime-MF7I4FNM.js.map} +0 -0
  23. /package/dist/{persistent-session-6C3XIT5F.js.map → persistent-session-G3YBVYJI.js.map} +0 -0
  24. /package/dist/{responsiveness-probe-22RREUHV.js.map → responsiveness-probe-CUMOVJG2.js.map} +0 -0
  25. /package/dist/{session-auth-dead-IOBL2YXT.js.map → session-auth-dead-XU6S3ZAU.js.map} +0 -0
@@ -30159,7 +30159,7 @@ var charter_frontmatter_v1_default = {
30159
30159
  sender_policy: {
30160
30160
  type: "string",
30161
30161
  enum: ["all", "agents_only", "team_only", "team_agents_only", "manager_only"],
30162
- description: "Restricts which senders this agent processes. 'all' (default): anyone. 'agents_only': only Augmented-labelled agents. 'team_only' (ENG-5871): humans on the same team (resolved via team_members \u22C8 organization_people on user_id, NOT NULL) OR same-team Augmented agents. 'team_agents_only': only same-team Augmented agents (humans dropped). 'manager_only' (ENG-5842): only the agent's reports_to_person OR same-team Augmented agents \u2014 narrows the human axis to one principal while keeping cross-agent coordination working. Enforced via message metadata labels (Slack/Teams) and principal-id env vars resolved at provision time."
30162
+ description: "Restricts which senders this agent processes. 'all' (default): anyone. 'agents_only': only Augmented-labelled agents. 'team_only' (ENG-5871): humans on the same team (resolved via team_members \u22C8 organization_people on user_id, NOT NULL) OR same-team Augmented agents. 'team_agents_only': only same-team Augmented agents (humans dropped). 'manager_only' (ENG-5842, narrowed by ENG-10685): ONLY the agent's reports_to_person \u2014 one permitted counterparty, with no agent carve-out. Other humans AND other Augmented agents are dropped; use 'team_agents_only' if peer coordination is wanted. Enforced via message metadata labels (Slack/Teams) and principal-id env vars resolved at provision time."
30163
30163
  }
30164
30164
  },
30165
30165
  additionalProperties: false
package/dist/mcp/index.js CHANGED
@@ -22735,7 +22735,7 @@ var charter_frontmatter_v1_default = {
22735
22735
  sender_policy: {
22736
22736
  type: "string",
22737
22737
  enum: ["all", "agents_only", "team_only", "team_agents_only", "manager_only"],
22738
- description: "Restricts which senders this agent processes. 'all' (default): anyone. 'agents_only': only Augmented-labelled agents. 'team_only' (ENG-5871): humans on the same team (resolved via team_members \u22C8 organization_people on user_id, NOT NULL) OR same-team Augmented agents. 'team_agents_only': only same-team Augmented agents (humans dropped). 'manager_only' (ENG-5842): only the agent's reports_to_person OR same-team Augmented agents \u2014 narrows the human axis to one principal while keeping cross-agent coordination working. Enforced via message metadata labels (Slack/Teams) and principal-id env vars resolved at provision time."
22738
+ description: "Restricts which senders this agent processes. 'all' (default): anyone. 'agents_only': only Augmented-labelled agents. 'team_only' (ENG-5871): humans on the same team (resolved via team_members \u22C8 organization_people on user_id, NOT NULL) OR same-team Augmented agents. 'team_agents_only': only same-team Augmented agents (humans dropped). 'manager_only' (ENG-5842, narrowed by ENG-10685): ONLY the agent's reports_to_person \u2014 one permitted counterparty, with no agent carve-out. Other humans AND other Augmented agents are dropped; use 'team_agents_only' if peer coordination is wanted. Enforced via message metadata labels (Slack/Teams) and principal-id env vars resolved at provision time."
22739
22739
  }
22740
22740
  },
22741
22741
  additionalProperties: false
@@ -36681,7 +36681,7 @@ var charter_frontmatter_v1_default = {
36681
36681
  sender_policy: {
36682
36682
  type: "string",
36683
36683
  enum: ["all", "agents_only", "team_only", "team_agents_only", "manager_only"],
36684
- description: "Restricts which senders this agent processes. 'all' (default): anyone. 'agents_only': only Augmented-labelled agents. 'team_only' (ENG-5871): humans on the same team (resolved via team_members \u22C8 organization_people on user_id, NOT NULL) OR same-team Augmented agents. 'team_agents_only': only same-team Augmented agents (humans dropped). 'manager_only' (ENG-5842): only the agent's reports_to_person OR same-team Augmented agents \u2014 narrows the human axis to one principal while keeping cross-agent coordination working. Enforced via message metadata labels (Slack/Teams) and principal-id env vars resolved at provision time."
36684
+ description: "Restricts which senders this agent processes. 'all' (default): anyone. 'agents_only': only Augmented-labelled agents. 'team_only' (ENG-5871): humans on the same team (resolved via team_members \u22C8 organization_people on user_id, NOT NULL) OR same-team Augmented agents. 'team_agents_only': only same-team Augmented agents (humans dropped). 'manager_only' (ENG-5842, narrowed by ENG-10685): ONLY the agent's reports_to_person \u2014 one permitted counterparty, with no agent carve-out. Other humans AND other Augmented agents are dropped; use 'team_agents_only' if peer coordination is wanted. Enforced via message metadata labels (Slack/Teams) and principal-id env vars resolved at provision time."
36685
36685
  }
36686
36686
  },
36687
36687
  additionalProperties: false
@@ -30514,9 +30514,7 @@ function decideModeForward(evt, policy) {
30514
30514
  if (policy.mode === "all")
30515
30515
  return { forward: true };
30516
30516
  if (policy.mode === "manager_only") {
30517
- if (policy.principalSlackUserId && evt.user === policy.principalSlackUserId) {
30518
- return { forward: true };
30519
- }
30517
+ return policy.principalSlackUserId && evt.user === policy.principalSlackUserId ? { forward: true } : { forward: false, reason: "sender_policy" };
30520
30518
  }
30521
30519
  if (policy.mode === "team_only") {
30522
30520
  if (policy.teamPrincipalSlackUserIds && policy.teamPrincipalSlackUserIds.length > 0 && typeof evt.user === "string" && policy.teamPrincipalSlackUserIds.includes(evt.user)) {
@@ -30531,7 +30529,7 @@ function decideModeForward(evt, policy) {
30531
30529
  return { forward: false, reason: "sender_policy" };
30532
30530
  }
30533
30531
  }
30534
- if (policy.mode === "team_agents_only" || policy.mode === "manager_only" || policy.mode === "team_only") {
30532
+ if (policy.mode === "team_agents_only" || policy.mode === "team_only") {
30535
30533
  if (!policy.teamId || label.teamId !== policy.teamId) {
30536
30534
  return { forward: false, reason: "sender_policy" };
30537
30535
  }
@@ -31131,7 +31129,7 @@ var charter_frontmatter_v1_default = {
31131
31129
  sender_policy: {
31132
31130
  type: "string",
31133
31131
  enum: ["all", "agents_only", "team_only", "team_agents_only", "manager_only"],
31134
- description: "Restricts which senders this agent processes. 'all' (default): anyone. 'agents_only': only Augmented-labelled agents. 'team_only' (ENG-5871): humans on the same team (resolved via team_members \u22C8 organization_people on user_id, NOT NULL) OR same-team Augmented agents. 'team_agents_only': only same-team Augmented agents (humans dropped). 'manager_only' (ENG-5842): only the agent's reports_to_person OR same-team Augmented agents \u2014 narrows the human axis to one principal while keeping cross-agent coordination working. Enforced via message metadata labels (Slack/Teams) and principal-id env vars resolved at provision time."
31132
+ description: "Restricts which senders this agent processes. 'all' (default): anyone. 'agents_only': only Augmented-labelled agents. 'team_only' (ENG-5871): humans on the same team (resolved via team_members \u22C8 organization_people on user_id, NOT NULL) OR same-team Augmented agents. 'team_agents_only': only same-team Augmented agents (humans dropped). 'manager_only' (ENG-5842, narrowed by ENG-10685): ONLY the agent's reports_to_person \u2014 one permitted counterparty, with no agent carve-out. Other humans AND other Augmented agents are dropped; use 'team_agents_only' if peer coordination is wanted. Enforced via message metadata labels (Slack/Teams) and principal-id env vars resolved at provision time."
31135
31133
  }
31136
31134
  },
31137
31135
  additionalProperties: false
@@ -14863,9 +14863,7 @@ function decideModeForwardTeams(activity, policy) {
14863
14863
  if (policy.mode === "all")
14864
14864
  return { forward: true };
14865
14865
  if (policy.mode === "manager_only") {
14866
- if (policy.principalAadObjectId && activity.from?.aadObjectId === policy.principalAadObjectId) {
14867
- return { forward: true };
14868
- }
14866
+ return policy.principalAadObjectId && activity.from?.aadObjectId === policy.principalAadObjectId ? { forward: true } : { forward: false, reason: "sender_policy" };
14869
14867
  }
14870
14868
  if (policy.mode === "team_only") {
14871
14869
  const fromAad = activity.from?.aadObjectId;
@@ -14876,7 +14874,7 @@ function decideModeForwardTeams(activity, policy) {
14876
14874
  const label = extractAugmentedTeamsLabel(activity);
14877
14875
  if (!label)
14878
14876
  return { forward: false, reason: "sender_policy" };
14879
- if (policy.mode === "team_agents_only" || policy.mode === "manager_only" || policy.mode === "team_only") {
14877
+ if (policy.mode === "team_agents_only" || policy.mode === "team_only") {
14880
14878
  if (!policy.teamId || label.teamId !== policy.teamId) {
14881
14879
  return { forward: false, reason: "sender_policy" };
14882
14880
  }
@@ -31149,7 +31149,7 @@ var charter_frontmatter_v1_default = {
31149
31149
  sender_policy: {
31150
31150
  type: "string",
31151
31151
  enum: ["all", "agents_only", "team_only", "team_agents_only", "manager_only"],
31152
- description: "Restricts which senders this agent processes. 'all' (default): anyone. 'agents_only': only Augmented-labelled agents. 'team_only' (ENG-5871): humans on the same team (resolved via team_members \u22C8 organization_people on user_id, NOT NULL) OR same-team Augmented agents. 'team_agents_only': only same-team Augmented agents (humans dropped). 'manager_only' (ENG-5842): only the agent's reports_to_person OR same-team Augmented agents \u2014 narrows the human axis to one principal while keeping cross-agent coordination working. Enforced via message metadata labels (Slack/Teams) and principal-id env vars resolved at provision time."
31152
+ description: "Restricts which senders this agent processes. 'all' (default): anyone. 'agents_only': only Augmented-labelled agents. 'team_only' (ENG-5871): humans on the same team (resolved via team_members \u22C8 organization_people on user_id, NOT NULL) OR same-team Augmented agents. 'team_agents_only': only same-team Augmented agents (humans dropped). 'manager_only' (ENG-5842, narrowed by ENG-10685): ONLY the agent's reports_to_person \u2014 one permitted counterparty, with no agent carve-out. Other humans AND other Augmented agents are dropped; use 'team_agents_only' if peer coordination is wanted. Enforced via message metadata labels (Slack/Teams) and principal-id env vars resolved at provision time."
31153
31153
  }
31154
31154
  },
31155
31155
  additionalProperties: false
@@ -62,8 +62,8 @@ import {
62
62
  writeDirectChatSessionState,
63
63
  writeEgressAllowlist,
64
64
  writePersistentClaudeWrapper
65
- } from "./chunk-K2VDNAD2.js";
66
- import "./chunk-V73S7OXI.js";
65
+ } from "./chunk-NNLFFHCB.js";
66
+ import "./chunk-R5G7EUJS.js";
67
67
  import "./chunk-DHWNVVX4.js";
68
68
  import "./chunk-XWVM4KPK.js";
69
69
  export {
@@ -131,4 +131,4 @@ export {
131
131
  writeEgressAllowlist,
132
132
  writePersistentClaudeWrapper
133
133
  };
134
- //# sourceMappingURL=persistent-session-6C3XIT5F.js.map
134
+ //# sourceMappingURL=persistent-session-G3YBVYJI.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-K2VDNAD2.js";
4
- import "./chunk-V73S7OXI.js";
3
+ } from "./chunk-NNLFFHCB.js";
4
+ import "./chunk-R5G7EUJS.js";
5
5
  import "./chunk-DHWNVVX4.js";
6
6
  import "./chunk-XWVM4KPK.js";
7
7
 
@@ -800,4 +800,4 @@ export {
800
800
  readAndResetSlackReplyBindingClassifications,
801
801
  readAndResetSlackReplyTargetClassifications
802
802
  };
803
- //# sourceMappingURL=responsiveness-probe-22RREUHV.js.map
803
+ //# sourceMappingURL=responsiveness-probe-CUMOVJG2.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sessionTranscriptDir
3
- } from "./chunk-V73S7OXI.js";
3
+ } from "./chunk-R5G7EUJS.js";
4
4
 
5
5
  // src/lib/session-auth-dead.ts
6
6
  import { closeSync, openSync, readSync, readdirSync, statSync } from "fs";
@@ -203,4 +203,4 @@ export {
203
203
  decideSessionAuthState,
204
204
  probeSessionAuth
205
205
  };
206
- //# sourceMappingURL=session-auth-dead-IOBL2YXT.js.map
206
+ //# sourceMappingURL=session-auth-dead-XU6S3ZAU.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.966",
3
+ "version": "0.28.968",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {