@integrity-labs/agt-cli 0.27.30 → 0.27.32
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/assets/impersonate-statusline.sh +7 -2
- package/dist/bin/agt.js +20 -5
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-2L2CHPOJ.js → chunk-J5BIXLKB.js} +15 -3
- package/dist/{chunk-2L2CHPOJ.js.map → chunk-J5BIXLKB.js.map} +1 -1
- package/dist/{chunk-JIETOJQV.js → chunk-MV4WLCUO.js} +2 -2
- package/dist/{chunk-6HFXSNNY.js → chunk-NZWPRYJO.js} +27 -8
- package/dist/chunk-NZWPRYJO.js.map +1 -0
- package/dist/{claude-pair-runtime-3UHTNKZ4.js → claude-pair-runtime-JRG2D5KQ.js} +2 -2
- package/dist/lib/manager-worker.js +8 -8
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/slack-channel.js +23 -1
- package/dist/{persistent-session-HSHIZC2Q.js → persistent-session-ZJDQHJL3.js} +3 -3
- package/dist/{responsiveness-probe-RYKS5TRP.js → responsiveness-probe-XQFRB2DB.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-6HFXSNNY.js.map +0 -1
- /package/dist/{chunk-JIETOJQV.js.map → chunk-MV4WLCUO.js.map} +0 -0
- /package/dist/{claude-pair-runtime-3UHTNKZ4.js.map → claude-pair-runtime-JRG2D5KQ.js.map} +0 -0
- /package/dist/{persistent-session-HSHIZC2Q.js.map → persistent-session-ZJDQHJL3.js.map} +0 -0
- /package/dist/{responsiveness-probe-RYKS5TRP.js.map → responsiveness-probe-XQFRB2DB.js.map} +0 -0
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
parseDeliveryTarget,
|
|
10
10
|
registerFramework,
|
|
11
11
|
wrapScheduledTaskPrompt
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NZWPRYJO.js";
|
|
13
13
|
|
|
14
14
|
// ../../packages/core/dist/integrations/registry.js
|
|
15
15
|
var INTEGRATION_REGISTRY = [
|
|
@@ -4872,9 +4872,11 @@ ${sections}`
|
|
|
4872
4872
|
writeChannelCredentials(codeName, channelId, config, options) {
|
|
4873
4873
|
const tzEnv = options?.agentTimezone && options.agentTimezone.trim() !== "" ? { TZ: options.agentTimezone.trim() } : {};
|
|
4874
4874
|
const senderPolicyMode = options?.senderPolicy?.mode;
|
|
4875
|
-
const senderPolicyTeamId = options?.senderPolicy?.mode === "team_agents_only" || options?.senderPolicy?.mode === "manager_only" ? options.senderPolicy.team_id : void 0;
|
|
4875
|
+
const senderPolicyTeamId = options?.senderPolicy?.mode === "team_agents_only" || options?.senderPolicy?.mode === "manager_only" || options?.senderPolicy?.mode === "team_only" ? options.senderPolicy.team_id : void 0;
|
|
4876
4876
|
const slackPrincipalId = options?.senderPolicy?.mode === "manager_only" ? options.senderPolicy.principal?.slack_user_id : void 0;
|
|
4877
4877
|
const teamsPrincipalId = options?.senderPolicy?.mode === "manager_only" ? options.senderPolicy.principal?.teams_aad_object_id : void 0;
|
|
4878
|
+
const slackTeamPrincipalIds = options?.senderPolicy?.mode === "team_only" ? options.senderPolicy.team_principals?.slack_user_ids?.join(",") : void 0;
|
|
4879
|
+
const teamsTeamPrincipalIds = options?.senderPolicy?.mode === "team_only" ? options.senderPolicy.team_principals?.teams_aad_object_ids?.join(",") : void 0;
|
|
4878
4880
|
const senderPolicyInternalOnly = options?.senderPolicy?.internal_only === true;
|
|
4879
4881
|
const senderPolicyEnv = senderPolicyTeamId ? { AGT_TEAM_ID: senderPolicyTeamId } : {};
|
|
4880
4882
|
const agentDir = getAgentDir(codeName);
|
|
@@ -5041,6 +5043,12 @@ ${sections}`
|
|
|
5041
5043
|
// principal has no Slack ID; MCP filter fails closed on the
|
|
5042
5044
|
// missing env var by dropping all human inbound.
|
|
5043
5045
|
...slackPrincipalId ? { SLACK_SENDER_POLICY_PRINCIPAL_ID: slackPrincipalId } : {},
|
|
5046
|
+
// ENG-5871: team_only mode injects a comma-separated list of
|
|
5047
|
+
// team-member Slack user_ids. Absent/empty = MCP filter drops
|
|
5048
|
+
// humans on Slack but still admits same-team agents via label.
|
|
5049
|
+
// No additional shape parsing on the MCP side — `.split(',')`
|
|
5050
|
+
// works because Slack user_ids are `[A-Z0-9]+` (no commas).
|
|
5051
|
+
...slackTeamPrincipalIds ? { SLACK_SENDER_POLICY_TEAM_PRINCIPAL_IDS: slackTeamPrincipalIds } : {},
|
|
5044
5052
|
// ENG-5843: org-boundary gate. SLACK_INTERNAL_ONLY signals the
|
|
5045
5053
|
// filter to check sender's workspace against SLACK_HOME_TEAM_ID
|
|
5046
5054
|
// (sourced from the bot install's team_id, populated by
|
|
@@ -5237,6 +5245,10 @@ ${sections}`
|
|
|
5237
5245
|
// people.contact_preferences.teams_aad_object_id. Same fail-closed
|
|
5238
5246
|
// contract as the Slack branch above.
|
|
5239
5247
|
...teamsPrincipalId ? { MSTEAMS_SENDER_POLICY_PRINCIPAL_ID: teamsPrincipalId } : {},
|
|
5248
|
+
// ENG-5871: team_only mode injects a comma-separated list of team-
|
|
5249
|
+
// member Teams AAD object IDs. Same fail-closed contract as Slack.
|
|
5250
|
+
// AAD IDs are UUIDs (no commas), so .split(',') is safe.
|
|
5251
|
+
...teamsTeamPrincipalIds ? { MSTEAMS_SENDER_POLICY_TEAM_PRINCIPAL_IDS: teamsTeamPrincipalIds } : {},
|
|
5240
5252
|
// ENG-5843: org-boundary gate. MSTEAMS_INTERNAL_ONLY + MSTEAMS_HOME_TENANT_ID
|
|
5241
5253
|
// mirror the Slack pair. Source is the same tenantId the existing
|
|
5242
5254
|
// MSTEAMS_TENANT_ID env var already carries — defaulting to "common"
|
|
@@ -6965,4 +6977,4 @@ export {
|
|
|
6965
6977
|
managerInstallSystemUnitCommand,
|
|
6966
6978
|
managerUninstallSystemUnitCommand
|
|
6967
6979
|
};
|
|
6968
|
-
//# sourceMappingURL=chunk-
|
|
6980
|
+
//# sourceMappingURL=chunk-J5BIXLKB.js.map
|