@integrity-labs/agt-cli 0.28.967 → 0.28.969

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-XWU4BFBQ.js → chunk-BWWQMMCR.js} +24 -12
  3. package/dist/chunk-BWWQMMCR.js.map +1 -0
  4. package/dist/{chunk-V73S7OXI.js → chunk-NOY2C63C.js} +35 -6
  5. package/dist/{chunk-V73S7OXI.js.map → chunk-NOY2C63C.js.map} +1 -1
  6. package/dist/{chunk-K2VDNAD2.js → chunk-O2Q4HY6I.js} +2 -2
  7. package/dist/{claude-pair-runtime-ICRPR6QQ.js → claude-pair-runtime-YBFVBB6G.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 +16 -1
  11. package/dist/mcp/index.js +16 -1
  12. package/dist/mcp/origami.js +16 -1
  13. package/dist/mcp/slack-channel.js +18 -5
  14. package/dist/mcp/teams-channel.js +2 -4
  15. package/dist/mcp/telegram-channel.js +16 -1
  16. package/dist/{persistent-session-6C3XIT5F.js → persistent-session-4J6SFXBI.js} +3 -3
  17. package/dist/{responsiveness-probe-22RREUHV.js → responsiveness-probe-GX6HLUES.js} +3 -3
  18. package/dist/{session-auth-dead-IOBL2YXT.js → session-auth-dead-EPI2A6RF.js} +2 -2
  19. package/package.json +1 -1
  20. package/dist/chunk-XWU4BFBQ.js.map +0 -1
  21. /package/dist/{chunk-K2VDNAD2.js.map → chunk-O2Q4HY6I.js.map} +0 -0
  22. /package/dist/{claude-pair-runtime-ICRPR6QQ.js.map → claude-pair-runtime-YBFVBB6G.js.map} +0 -0
  23. /package/dist/{persistent-session-6C3XIT5F.js.map → persistent-session-4J6SFXBI.js.map} +0 -0
  24. /package/dist/{responsiveness-probe-22RREUHV.js.map → responsiveness-probe-GX6HLUES.js.map} +0 -0
  25. /package/dist/{session-auth-dead-IOBL2YXT.js.map → session-auth-dead-EPI2A6RF.js.map} +0 -0
@@ -6537,6 +6537,21 @@ var FLAG_REGISTRY = [
6537
6537
  // safety control — mutations require explicit confirmation.
6538
6538
  sensitive: true
6539
6539
  },
6540
+ {
6541
+ key: "hitl-batch-approval",
6542
+ description: "ADR-0104: may an agent in this org ask for approval of a BATCH \u2014 one exact list of up to 1,000 destructive calls on a single card \u2014 instead of one card per call? The incident behind it needed ~700 calendar deletes and produced ~700 cards, which is a queue nobody reads and therefore a gate nobody applies. This flag is only half the gate, and the other half is deliberate: a tool must ALSO declare a `batch` block in the catalog (its reconciliation rule and pacing), so arming an org can never batch a tool whose semantics nobody reviewed. With the flag on and no tool opted in, every batch request is refused \u2014 which is the state this ships in. It does not lower any tier: a batched `write_destructive` call still routes to a human, and above 20 items that human must open the full list before approving. What the flag changes is how many actions ONE decision can cover. Evaluated per-org. Ships dark.",
6543
+ flagType: "boolean",
6544
+ // Off is the safe value in both directions. An org that never opted in cannot have an agent
6545
+ // request a batch, and a flag-read failure degrades to "not opted in" rather than to a
6546
+ // capability nobody asked for — an infrastructure blip is not an opt-in.
6547
+ defaultValue: false,
6548
+ // Turning it on lets one human tap authorise up to 1,000 irreversible calls, so it is a
6549
+ // deliberate, audited per-org flip (ADR-0022 §4).
6550
+ sensitive: true
6551
+ // NO newOrgOverride. Nothing has run in production yet; arming every new org on deploy
6552
+ // would put a first-of-its-kind approval shape in front of real customers with nothing
6553
+ // observed. Arm one org, watch a batch drain, then revisit.
6554
+ },
6540
6555
  {
6541
6556
  key: "hitl-approval-routing",
6542
6557
  description: "Routing for HITL-blocked integration calls (ENG-6028, ENG-7828): on (default) = route a blocked call into the Human Approval flow (an approval_requests row + an Approve/Deny card on Slack/Telegram, or a structured reply-to-approve prompt on channels with no buttons). off = kill switch: the blocked call hard-stops with an honest terminal block and NO approval is offered, for an org/agent that must never send even with approval. Needs a block first (composio-hitl-mode=enforce, or the always-on Direct-HTTP lane). ENG-7828 flipped the default from off to on so an org at enforce always produces a Human Approval card instead of a prose dead-end. Per-org rollout; ENG-7672 migrated this off the fleet-wide HITL_APPROVAL_ROUTING env var.",
@@ -7751,7 +7766,7 @@ var charter_frontmatter_v1_default = {
7751
7766
  sender_policy: {
7752
7767
  type: "string",
7753
7768
  enum: ["all", "agents_only", "team_only", "team_agents_only", "manager_only"],
7754
- 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."
7769
+ 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."
7755
7770
  }
7756
7771
  },
7757
7772
  additionalProperties: false
@@ -8751,9 +8766,9 @@ function senderPolicyRanks() {
8751
8766
  // team_only on humans — admits zero vs N).
8752
8767
  agents_only: { humanRank: 2, agentRank: 0 },
8753
8768
  team_agents_only: { humanRank: 2, agentRank: 1 },
8754
- // ENG-5842 + ENG-5871 renumber: was rank 2, now rank 3. The single-rank
8755
- // projection treats "named-one-principal" as semantically narrower
8756
- // than "zero humans" — the existing convention from ENG-5842, kept
8769
+ // ENG-5842 + ENG-5871 renumber: was rank 2, now rank 3 on humans. The
8770
+ // single-rank projection treats "named-one-principal" as semantically
8771
+ // narrower than "zero humans" — the existing convention from ENG-5842, kept
8757
8772
  // for cross-axis lint composition continuity. Known scalar-projection
8758
8773
  // limitation: org=manager_only + agent=agents_only fires a false
8759
8774
  // less-restrictive warning even though agents_only is stricter on the
@@ -8761,7 +8776,21 @@ function senderPolicyRanks() {
8761
8776
  // ENG-5872 (PR B of the team_only work) — dropping the webapp's
8762
8777
  // single-rank SENDER_POLICY_RANK helper in favour of consuming this
8763
8778
  // per-axis table directly.
8764
- manager_only: { humanRank: 3, agentRank: 1 }
8779
+ //
8780
+ // ENG-10685: agentRank 1 → 2. It was 1 because the mode admitted same-team
8781
+ // agents through the label, which is exactly `team_agents_only`'s agent
8782
+ // axis; that carve-out is gone and the mode now admits ZERO agents, which
8783
+ // is strictly narrower than rank 1 and has no peer at rank 2 on this axis.
8784
+ //
8785
+ // THE RANK IS NOT BOOKKEEPING — it decides lint. `manager_only` is now the
8786
+ // unique maximum on BOTH axes, so it can no longer be less restrictive than
8787
+ // any org default, and `CHARTER.CHANNELS.SENDER_POLICY_CONFLICT` can never
8788
+ // fire for an agent that overrides to it. That is the correct reading of a
8789
+ // mode that admits one counterparty and nothing else, and it also retires
8790
+ // one arm of the false-warning limitation above: org=manager_only +
8791
+ // agent=agents_only still mis-warns on the human axis, but the agent axis
8792
+ // no longer contributes a spurious comparison.
8793
+ manager_only: { humanRank: 3, agentRank: 2 }
8765
8794
  };
8766
8795
  }
8767
8796
 
@@ -15058,4 +15087,4 @@ export {
15058
15087
  peekCurrentSession,
15059
15088
  readDailySessionPin
15060
15089
  };
15061
- //# sourceMappingURL=chunk-V73S7OXI.js.map
15090
+ //# sourceMappingURL=chunk-NOY2C63C.js.map