@integrity-labs/agt-cli 0.27.7-test.6 → 0.27.8-test.10
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 +146 -37
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-AACMX6LE.js → chunk-2E5OABKX.js} +241 -61
- package/dist/chunk-2E5OABKX.js.map +1 -0
- package/dist/{chunk-YSBGIXJG.js → chunk-6HFXSNNY.js} +31 -18
- package/dist/chunk-6HFXSNNY.js.map +1 -0
- package/dist/{chunk-GN4XPQWJ.js → chunk-JIETOJQV.js} +37 -28
- package/dist/chunk-JIETOJQV.js.map +1 -0
- package/dist/{claude-pair-runtime-ZBQKBBMT.js → claude-pair-runtime-3UHTNKZ4.js} +2 -2
- package/dist/lib/manager-worker.js +536 -140
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +9 -462
- package/dist/mcp/index.js +44 -25
- package/dist/mcp/slack-channel.js +691 -638
- package/dist/mcp/telegram-channel.js +257 -513
- package/dist/{persistent-session-ICYFLUAM.js → persistent-session-HSHIZC2Q.js} +3 -3
- package/dist/{responsiveness-probe-WZNQ2762.js → responsiveness-probe-RYKS5TRP.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-AACMX6LE.js.map +0 -1
- package/dist/chunk-GN4XPQWJ.js.map +0 -1
- package/dist/chunk-YSBGIXJG.js.map +0 -1
- /package/dist/{claude-pair-runtime-ZBQKBBMT.js.map → claude-pair-runtime-3UHTNKZ4.js.map} +0 -0
- /package/dist/{persistent-session-ICYFLUAM.js.map → persistent-session-HSHIZC2Q.js.map} +0 -0
- /package/dist/{responsiveness-probe-WZNQ2762.js.map → responsiveness-probe-RYKS5TRP.js.map} +0 -0
|
@@ -1529,8 +1529,8 @@ var charter_frontmatter_v1_default = {
|
|
|
1529
1529
|
},
|
|
1530
1530
|
sender_policy: {
|
|
1531
1531
|
type: "string",
|
|
1532
|
-
enum: ["all", "agents_only", "team_agents_only"],
|
|
1533
|
-
description: "Restricts which senders this agent processes. 'all' (default): anyone. 'agents_only': only Augmented-labelled agents. 'team_agents_only': only same-team Augmented agents. Enforced via message metadata labels
|
|
1532
|
+
enum: ["all", "agents_only", "team_agents_only", "manager_only"],
|
|
1533
|
+
description: "Restricts which senders this agent processes. 'all' (default): anyone. 'agents_only': only Augmented-labelled agents. 'team_agents_only': only same-team Augmented agents. '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."
|
|
1534
1534
|
}
|
|
1535
1535
|
},
|
|
1536
1536
|
additionalProperties: false
|
|
@@ -2416,13 +2416,12 @@ function runChannelRules(charter, orgPolicy) {
|
|
|
2416
2416
|
}
|
|
2417
2417
|
if (orgPolicy?.sender_policy) {
|
|
2418
2418
|
const orgMode = orgPolicy.sender_policy.mode;
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
if (!(agentMode in rank) || !(orgMode in rank)) {
|
|
2419
|
+
if (channels.sender_policy === void 0) {
|
|
2420
|
+
return diagnostics;
|
|
2421
|
+
}
|
|
2422
|
+
const agentMode = channels.sender_policy;
|
|
2423
|
+
const ranks = senderPolicyRanks();
|
|
2424
|
+
if (!(agentMode in ranks) || !(orgMode in ranks)) {
|
|
2426
2425
|
diagnostics.push({
|
|
2427
2426
|
file: "CHARTER.md",
|
|
2428
2427
|
code: "CHARTER.CHANNELS.SENDER_POLICY_CONFLICT",
|
|
@@ -2430,18 +2429,32 @@ function runChannelRules(charter, orgPolicy) {
|
|
|
2430
2429
|
severity: "error",
|
|
2431
2430
|
message: `Invalid sender_policy mode (agent="${agentMode}", org="${orgMode}")`
|
|
2432
2431
|
});
|
|
2433
|
-
} else
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2432
|
+
} else {
|
|
2433
|
+
const a = ranks[agentMode];
|
|
2434
|
+
const o = ranks[orgMode];
|
|
2435
|
+
if (a.humanRank < o.humanRank || a.agentRank < o.agentRank) {
|
|
2436
|
+
diagnostics.push({
|
|
2437
|
+
file: "CHARTER.md",
|
|
2438
|
+
code: "CHARTER.CHANNELS.SENDER_POLICY_CONFLICT",
|
|
2439
|
+
path: "channels.sender_policy",
|
|
2440
|
+
severity: "error",
|
|
2441
|
+
message: `Agent sender_policy "${agentMode}" is less restrictive than the org policy "${orgMode}"`
|
|
2442
|
+
});
|
|
2443
|
+
}
|
|
2441
2444
|
}
|
|
2442
2445
|
}
|
|
2443
2446
|
return diagnostics;
|
|
2444
2447
|
}
|
|
2448
|
+
function senderPolicyRanks() {
|
|
2449
|
+
return {
|
|
2450
|
+
all: { humanRank: 0, agentRank: 0 },
|
|
2451
|
+
agents_only: { humanRank: 1, agentRank: 0 },
|
|
2452
|
+
team_agents_only: { humanRank: 1, agentRank: 1 },
|
|
2453
|
+
// manager_only: stricter than team_agents_only on humans (only the
|
|
2454
|
+
// principal), same as team_agents_only on agents (same-team allowed).
|
|
2455
|
+
manager_only: { humanRank: 2, agentRank: 1 }
|
|
2456
|
+
};
|
|
2457
|
+
}
|
|
2445
2458
|
|
|
2446
2459
|
// ../../packages/core/dist/lint/rules/cross-file.js
|
|
2447
2460
|
function runCrossFileRules(charter, tools) {
|
|
@@ -3933,4 +3946,4 @@ export {
|
|
|
3933
3946
|
attributeTranscriptUsageByRun,
|
|
3934
3947
|
KANBAN_CHECK_COMMAND
|
|
3935
3948
|
};
|
|
3936
|
-
//# sourceMappingURL=chunk-
|
|
3949
|
+
//# sourceMappingURL=chunk-6HFXSNNY.js.map
|