@integrity-labs/agt-cli 0.28.1190 → 0.28.1192

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 (31) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-KV6ZNGTG.js → chunk-DXLSLT5G.js} +2 -2
  3. package/dist/{chunk-EFTLDAKN.js → chunk-NJ2AUTIO.js} +3 -3
  4. package/dist/{chunk-NVLV6XHL.js → chunk-TCPX64GU.js} +7 -5
  5. package/dist/chunk-TCPX64GU.js.map +1 -0
  6. package/dist/{chunk-55M26Q4M.js → chunk-UQYIFOWE.js} +2 -2
  7. package/dist/{chunk-7GZKHF45.js → chunk-UUO7QTLC.js} +98 -16
  8. package/dist/chunk-UUO7QTLC.js.map +1 -0
  9. package/dist/{claude-code-updater-IU23JJZI.js → claude-code-updater-EOJQHUZ2.js} +3 -3
  10. package/dist/{claude-pair-runtime-GMXVV5AJ.js → claude-pair-runtime-WKTA3HNF.js} +3 -3
  11. package/dist/lib/manager-worker.js +71 -23
  12. package/dist/lib/manager-worker.js.map +1 -1
  13. package/dist/mcp/direct-chat-channel.js +3 -0
  14. package/dist/mcp/index.js +54 -1
  15. package/dist/mcp/origami.js +3 -0
  16. package/dist/mcp/slack-channel.js +3 -0
  17. package/dist/mcp/telegram-channel.js +3 -0
  18. package/dist/{persistent-session-7PBVDLFI.js → persistent-session-5MGJGJIB.js} +4 -4
  19. package/dist/{responsiveness-probe-RSH4EMQP.js → responsiveness-probe-J4CBYZS3.js} +4 -4
  20. package/dist/{session-auth-dead-M2YABEQU.js → session-auth-dead-7CSZHNBK.js} +3 -3
  21. package/package.json +1 -1
  22. package/dist/chunk-7GZKHF45.js.map +0 -1
  23. package/dist/chunk-NVLV6XHL.js.map +0 -1
  24. /package/dist/{chunk-KV6ZNGTG.js.map → chunk-DXLSLT5G.js.map} +0 -0
  25. /package/dist/{chunk-EFTLDAKN.js.map → chunk-NJ2AUTIO.js.map} +0 -0
  26. /package/dist/{chunk-55M26Q4M.js.map → chunk-UQYIFOWE.js.map} +0 -0
  27. /package/dist/{claude-code-updater-IU23JJZI.js.map → claude-code-updater-EOJQHUZ2.js.map} +0 -0
  28. /package/dist/{claude-pair-runtime-GMXVV5AJ.js.map → claude-pair-runtime-WKTA3HNF.js.map} +0 -0
  29. /package/dist/{persistent-session-7PBVDLFI.js.map → persistent-session-5MGJGJIB.js.map} +0 -0
  30. /package/dist/{responsiveness-probe-RSH4EMQP.js.map → responsiveness-probe-J4CBYZS3.js.map} +0 -0
  31. /package/dist/{session-auth-dead-M2YABEQU.js.map → session-auth-dead-7CSZHNBK.js.map} +0 -0
@@ -38270,6 +38270,9 @@ var BY_ID = new Map(GUARDRAIL_ENFORCERS.map((e) => [e.id, e]));
38270
38270
  var MAX_AGENT_RULES = 8;
38271
38271
  var MAX_AGENT_RULE_CHARS = 200;
38272
38272
  var MAX_AGENT_RULES_CHARS = MAX_AGENT_RULES * (MAX_AGENT_RULE_CHARS + 4);
38273
+ var MAX_ORG_RULES = 10;
38274
+ var MAX_TEAM_RULES = 10;
38275
+ var MAX_INHERITED_RULES_CHARS = (MAX_ORG_RULES + MAX_TEAM_RULES) * (MAX_AGENT_RULE_CHARS + 4);
38273
38276
 
38274
38277
  // ../core/dist/provisioning/frameworks/claudecode/identity.js
38275
38278
  var CLAUDE_MD_CHARS_PER_TOKEN = 3.57;
package/dist/mcp/index.js CHANGED
@@ -24287,6 +24287,9 @@ var BY_ID = new Map(GUARDRAIL_ENFORCERS.map((e) => [e.id, e]));
24287
24287
  var MAX_AGENT_RULES = 8;
24288
24288
  var MAX_AGENT_RULE_CHARS = 200;
24289
24289
  var MAX_AGENT_RULES_CHARS = MAX_AGENT_RULES * (MAX_AGENT_RULE_CHARS + 4);
24290
+ var MAX_ORG_RULES = 10;
24291
+ var MAX_TEAM_RULES = 10;
24292
+ var MAX_INHERITED_RULES_CHARS = (MAX_ORG_RULES + MAX_TEAM_RULES) * (MAX_AGENT_RULE_CHARS + 4);
24290
24293
  var AGENT_RULE_NO_END_DATE_NOTE = ' Rules have no end date: this one applies on every turn until someone removes it. If it is only meant to hold for a while, say so IN the rule ("until the migration ships") so the reason to drop it is visible later \u2014 rule_list shows how old each rule is.';
24291
24294
  function describeAgentRuleList(rules, max, maxChars, now = Date.now()) {
24292
24295
  if (rules.length === 0) {
@@ -24304,6 +24307,47 @@ function describeAgentRuleList(rules, max, maxChars, now = Date.now()) {
24304
24307
  ${lines}
24305
24308
  ${note}`;
24306
24309
  }
24310
+ function describeInheritedAgentRules(inherited, now = Date.now()) {
24311
+ if (inherited === void 0)
24312
+ return "";
24313
+ const unreadable = (which) => `
24314
+ Could not read the rules you inherit from your ${which}, so this list may be incomplete. Do not tell anyone these are all the rules you follow.`;
24315
+ if (inherited === null || inherited.organization === null && inherited.team === null) {
24316
+ return unreadable("organisation and team");
24317
+ }
24318
+ const failed = inherited.organization === null ? unreadable("organisation") : inherited.team === null ? unreadable("team") : "";
24319
+ const block = (label, rules) => {
24320
+ if (rules === null)
24321
+ return "";
24322
+ const kept = rules.filter((r) => r.text.trim().length > 0);
24323
+ if (kept.length === 0)
24324
+ return "";
24325
+ const lines = kept.map((r) => {
24326
+ const days = agentRuleAgeInDays(r.createdAt, now);
24327
+ if (days === null)
24328
+ return `- ${r.text.trim()}`;
24329
+ return `- ${r.text.trim()} (${days === 0 ? "added today" : `added ${days} day${days === 1 ? "" : "s"} ago`})`;
24330
+ }).join("\n");
24331
+ return `${label}:
24332
+ ${lines}`;
24333
+ };
24334
+ const blocks = [block("From your organisation", inherited.organization), block("From your team", inherited.team)].filter(Boolean);
24335
+ if (blocks.length === 0)
24336
+ return failed;
24337
+ return failed + // Obi Wan 6e8bc3da77e9 on #7341: no console screen for these exists until
24338
+ // ENG-11472 part 2, and the agent relays this text to people, so it names
24339
+ // who manages them, not a page that is not there yet.
24340
+ `
24341
+ Also in force, inherited and read-only. You cannot add, replace or remove these: they are set for your whole organisation or team, so a change has to come from one of its admins. If one conflicts with your own rule, yours wins.
24342
+ ${blocks.join("\n")}`;
24343
+ }
24344
+ function describeRuleListReply(ownList, ownRules, inherited, now = Date.now()) {
24345
+ const inheritedText = describeInheritedAgentRules(inherited, now);
24346
+ const ownEmpty = !ownRules.some((r) => r.text.trim().length > 0);
24347
+ const own = ownEmpty && inheritedText !== "" ? ownList.replace(OWN_EMPTY_HEADLINE, "None of your own yet.") : ownList;
24348
+ return own + inheritedText;
24349
+ }
24350
+ var OWN_EMPTY_HEADLINE = /^No standing rules yet\./;
24307
24351
  function agentRuleAgeInDays(createdAt, now = Date.now()) {
24308
24352
  if (!createdAt)
24309
24353
  return null;
@@ -52223,7 +52267,16 @@ server.tool(
52223
52267
  return { content: [{ type: "text", text: "Could not read your standing rules." }], isError: true };
52224
52268
  }
52225
52269
  return {
52226
- content: [{ type: "text", text: describeAgentRuleList(data.rules, data.max, data.max_chars) }]
52270
+ content: [
52271
+ {
52272
+ type: "text",
52273
+ text: describeRuleListReply(
52274
+ describeAgentRuleList(data.rules, data.max, data.max_chars),
52275
+ data.rules,
52276
+ data.inherited
52277
+ )
52278
+ }
52279
+ ]
52227
52280
  };
52228
52281
  }
52229
52282
  );
@@ -38442,6 +38442,9 @@ var BY_ID = new Map(GUARDRAIL_ENFORCERS.map((e) => [e.id, e]));
38442
38442
  var MAX_AGENT_RULES = 8;
38443
38443
  var MAX_AGENT_RULE_CHARS = 200;
38444
38444
  var MAX_AGENT_RULES_CHARS = MAX_AGENT_RULES * (MAX_AGENT_RULE_CHARS + 4);
38445
+ var MAX_ORG_RULES = 10;
38446
+ var MAX_TEAM_RULES = 10;
38447
+ var MAX_INHERITED_RULES_CHARS = (MAX_ORG_RULES + MAX_TEAM_RULES) * (MAX_AGENT_RULE_CHARS + 4);
38445
38448
 
38446
38449
  // ../core/dist/provisioning/frameworks/claudecode/identity.js
38447
38450
  var CLAUDE_MD_CHARS_PER_TOKEN = 3.57;
@@ -32851,6 +32851,9 @@ var BY_ID = new Map(GUARDRAIL_ENFORCERS.map((e) => [e.id, e]));
32851
32851
  var MAX_AGENT_RULES = 8;
32852
32852
  var MAX_AGENT_RULE_CHARS = 200;
32853
32853
  var MAX_AGENT_RULES_CHARS = MAX_AGENT_RULES * (MAX_AGENT_RULE_CHARS + 4);
32854
+ var MAX_ORG_RULES = 10;
32855
+ var MAX_TEAM_RULES = 10;
32856
+ var MAX_INHERITED_RULES_CHARS = (MAX_ORG_RULES + MAX_TEAM_RULES) * (MAX_AGENT_RULE_CHARS + 4);
32854
32857
 
32855
32858
  // ../core/dist/provisioning/frameworks/claudecode/identity.js
32856
32859
  var CLAUDE_MD_CHARS_PER_TOKEN = 3.57;
@@ -33068,6 +33068,9 @@ var BY_ID = new Map(GUARDRAIL_ENFORCERS.map((e) => [e.id, e]));
33068
33068
  var MAX_AGENT_RULES = 8;
33069
33069
  var MAX_AGENT_RULE_CHARS = 200;
33070
33070
  var MAX_AGENT_RULES_CHARS = MAX_AGENT_RULES * (MAX_AGENT_RULE_CHARS + 4);
33071
+ var MAX_ORG_RULES = 10;
33072
+ var MAX_TEAM_RULES = 10;
33073
+ var MAX_INHERITED_RULES_CHARS = (MAX_ORG_RULES + MAX_TEAM_RULES) * (MAX_AGENT_RULE_CHARS + 4);
33071
33074
 
33072
33075
  // ../core/dist/provisioning/frameworks/claudecode/identity.js
33073
33076
  var CLAUDE_MD_CHARS_PER_TOKEN = 3.57;
@@ -68,12 +68,12 @@ import {
68
68
  writeDirectChatSessionState,
69
69
  writeEgressAllowlist,
70
70
  writePersistentClaudeWrapper
71
- } from "./chunk-EFTLDAKN.js";
72
- import "./chunk-KV6ZNGTG.js";
71
+ } from "./chunk-NJ2AUTIO.js";
72
+ import "./chunk-DXLSLT5G.js";
73
73
  import "./chunk-OO36JBFI.js";
74
74
  import "./chunk-6HBXEJHO.js";
75
75
  import "./chunk-XWVM4KPK.js";
76
- import "./chunk-7GZKHF45.js";
76
+ import "./chunk-UUO7QTLC.js";
77
77
  import "./chunk-AIUIMEUS.js";
78
78
  import "./chunk-DGUM43GV.js";
79
79
  export {
@@ -147,4 +147,4 @@ export {
147
147
  writeEgressAllowlist,
148
148
  writePersistentClaudeWrapper
149
149
  };
150
- //# sourceMappingURL=persistent-session-7PBVDLFI.js.map
150
+ //# sourceMappingURL=persistent-session-5MGJGJIB.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-EFTLDAKN.js";
4
- import "./chunk-KV6ZNGTG.js";
3
+ } from "./chunk-NJ2AUTIO.js";
4
+ import "./chunk-DXLSLT5G.js";
5
5
  import "./chunk-OO36JBFI.js";
6
6
  import "./chunk-6HBXEJHO.js";
7
7
  import "./chunk-XWVM4KPK.js";
8
- import "./chunk-7GZKHF45.js";
8
+ import "./chunk-UUO7QTLC.js";
9
9
  import "./chunk-AIUIMEUS.js";
10
10
  import "./chunk-DGUM43GV.js";
11
11
 
@@ -804,4 +804,4 @@ export {
804
804
  readAndResetSlackReplyBindingClassifications,
805
805
  readAndResetSlackReplyTargetClassifications
806
806
  };
807
- //# sourceMappingURL=responsiveness-probe-RSH4EMQP.js.map
807
+ //# sourceMappingURL=responsiveness-probe-J4CBYZS3.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  sessionTranscriptDir
3
- } from "./chunk-KV6ZNGTG.js";
4
- import "./chunk-7GZKHF45.js";
3
+ } from "./chunk-DXLSLT5G.js";
4
+ import "./chunk-UUO7QTLC.js";
5
5
  import "./chunk-DGUM43GV.js";
6
6
 
7
7
  // src/lib/session-auth-dead.ts
@@ -205,4 +205,4 @@ export {
205
205
  decideSessionAuthState,
206
206
  probeSessionAuth
207
207
  };
208
- //# sourceMappingURL=session-auth-dead-M2YABEQU.js.map
208
+ //# sourceMappingURL=session-auth-dead-7CSZHNBK.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.1190",
3
+ "version": "0.28.1192",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {