@integrity-labs/agt-cli 0.28.1230 → 0.28.1232

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 (34) hide show
  1. package/dist/bin/agt.js +11 -6
  2. package/dist/bin/agt.js.map +1 -1
  3. package/dist/{chunk-IHVSRQIE.js → chunk-3CUCO6BU.js} +17 -3
  4. package/dist/{chunk-IHVSRQIE.js.map → chunk-3CUCO6BU.js.map} +1 -1
  5. package/dist/{chunk-AG4RMBPC.js → chunk-BDXOVKWJ.js} +2 -2
  6. package/dist/{chunk-K3H5MSQS.js → chunk-LS27F6QF.js} +32 -6
  7. package/dist/chunk-LS27F6QF.js.map +1 -0
  8. package/dist/{chunk-DDWK6QGY.js → chunk-QCBL7EBD.js} +2 -2
  9. package/dist/{chunk-4B5LCENE.js → chunk-XBADGTJP.js} +11 -1
  10. package/dist/chunk-XBADGTJP.js.map +1 -0
  11. package/dist/{claude-code-updater-W5FRCR44.js → claude-code-updater-R7QSZDGD.js} +3 -3
  12. package/dist/{claude-pair-runtime-QAITVF75.js → claude-pair-runtime-BH7XN36C.js} +3 -3
  13. package/dist/lib/manager-worker.js +32 -21
  14. package/dist/lib/manager-worker.js.map +1 -1
  15. package/dist/mcp/direct-chat-channel.js +19 -2
  16. package/dist/mcp/index.js +14 -2
  17. package/dist/mcp/origami.js +10 -0
  18. package/dist/mcp/slack-channel.js +15 -1
  19. package/dist/mcp/teams-channel.js +5 -1
  20. package/dist/mcp/telegram-channel.js +15 -1
  21. package/dist/mcp/whatsapp-channel.js +5 -1
  22. package/dist/{persistent-session-TVE4RBPD.js → persistent-session-LQ4GJ264.js} +4 -4
  23. package/dist/{responsiveness-probe-G5YKDDTH.js → responsiveness-probe-NN7XEPJM.js} +4 -4
  24. package/dist/{session-auth-dead-ZUSPTKZ3.js → session-auth-dead-ESB735FG.js} +3 -3
  25. package/package.json +1 -1
  26. package/dist/chunk-4B5LCENE.js.map +0 -1
  27. package/dist/chunk-K3H5MSQS.js.map +0 -1
  28. /package/dist/{chunk-AG4RMBPC.js.map → chunk-BDXOVKWJ.js.map} +0 -0
  29. /package/dist/{chunk-DDWK6QGY.js.map → chunk-QCBL7EBD.js.map} +0 -0
  30. /package/dist/{claude-code-updater-W5FRCR44.js.map → claude-code-updater-R7QSZDGD.js.map} +0 -0
  31. /package/dist/{claude-pair-runtime-QAITVF75.js.map → claude-pair-runtime-BH7XN36C.js.map} +0 -0
  32. /package/dist/{persistent-session-TVE4RBPD.js.map → persistent-session-LQ4GJ264.js.map} +0 -0
  33. /package/dist/{responsiveness-probe-G5YKDDTH.js.map → responsiveness-probe-NN7XEPJM.js.map} +0 -0
  34. /package/dist/{session-auth-dead-ZUSPTKZ3.js.map → session-auth-dead-ESB735FG.js.map} +0 -0
@@ -46979,6 +46979,16 @@ var FLAG_REGISTRY = [
46979
46979
  // Fleet-wide security posture, not an org's choice: an org override must not be able
46980
46980
  // to arm or unarm its own keys (CodeRabbit on #7359).
46981
46981
  platformAdminOnly: true
46982
+ },
46983
+ {
46984
+ key: "pronto-gl-subledger-filter",
46985
+ description: "ENG-11885 - lets an agent pass `subledger_code` to the Pronto Xi GL transaction tools. OFF (default) = the parameter is not advertised, and a call that names it is refused as not available on this connection. That refusal is NEW for every Pronto agent whatever the flag: before ENG-11885 the argument was silently ignored and the read ran unfiltered (Obi Wan 2b8002a01c14). ON = advertised and sent to Pronto, within the ordinary 7-day range, with every returned row checked to carry the requested subledger (rowsMustMatch), so a Pronto that ignores the filter is refused rather than answering unfiltered. Off until a live read at Pedders proves Pronto filters on it; target that one agent for the test, then widen.",
46986
+ flagType: "boolean",
46987
+ defaultValue: false,
46988
+ // Obi Wan 6d17155b6efa: the key must be REGISTERED, or evaluation ignores every
46989
+ // row for it and the flag can never be on. Platform-admin-only: whether Pronto
46990
+ // honours the filter is unproven, so an org must not switch it on for itself.
46991
+ platformAdminOnly: true
46982
46992
  }
46983
46993
  ];
46984
46994
  var REGISTRY_BY_KEY = new Map(FLAG_REGISTRY.map((definition) => [definition.key, definition]));
@@ -47119,6 +47129,9 @@ Added by Ninjafy, not by the sender: the words above arrived on the live channel
47119
47129
  function isOperatorInstructionPayload(payload) {
47120
47130
  return typeof payload === "object" && payload !== null && payload.kind === "operator_instruction";
47121
47131
  }
47132
+ function isKanbanCheckPayload(payload) {
47133
+ return typeof payload === "object" && payload !== null && payload.kind === "kanban_check";
47134
+ }
47122
47135
  function formatDirectChatMessages(messages) {
47123
47136
  return messages.map((m) => {
47124
47137
  if (m.notice) {
@@ -47286,6 +47299,7 @@ function foldTurnInitiatorLedger(existing, marker, maxAgeMs = TURN_INITIATOR_MAX
47286
47299
  ...marker.chat_kind ? { chat_kind: marker.chat_kind } : {},
47287
47300
  ...marker.chat_id ? { chat_id: marker.chat_id } : {},
47288
47301
  ...marker.unattributed ? { unattributed: true } : {},
47302
+ ...marker.loop_tick ? { loop_tick: true } : {},
47289
47303
  ts: marker.ts
47290
47304
  });
47291
47305
  kept.sort((a, b) => b.ts - a.ts);
@@ -47388,8 +47402,11 @@ function writeUnattributedTurnMarker(channel, opts = {}) {
47388
47402
  updateTurnInitiatorLedger(file, {
47389
47403
  channel,
47390
47404
  sender_id: "",
47391
- channel_ref: "unattributed",
47405
+ // ENG-11979: its own ledger key. The ledger keeps one entry per (channel, ref),
47406
+ // so a tick sharing a key would overwrite a stricter unattributed notice.
47407
+ channel_ref: opts.loopTick ? "loop-tick" : "unattributed",
47392
47408
  unattributed: true,
47409
+ ...opts.loopTick ? { loop_tick: true } : {},
47393
47410
  ts: opts.now ?? Date.now()
47394
47411
  });
47395
47412
  } catch {
@@ -56168,7 +56185,7 @@ async function pollForMessages(sinceMs) {
56168
56185
  chat_kind: "direct"
56169
56186
  });
56170
56187
  } else {
56171
- writeUnattributedTurnMarker("direct-chat");
56188
+ writeUnattributedTurnMarker("direct-chat", { loopTick: isNotice && isKanbanCheckPayload(msg.payload) });
56172
56189
  }
56173
56190
  if (isNotice) {
56174
56191
  try {
package/dist/mcp/index.js CHANGED
@@ -32661,6 +32661,16 @@ var FLAG_REGISTRY = [
32661
32661
  // Fleet-wide security posture, not an org's choice: an org override must not be able
32662
32662
  // to arm or unarm its own keys (CodeRabbit on #7359).
32663
32663
  platformAdminOnly: true
32664
+ },
32665
+ {
32666
+ key: "pronto-gl-subledger-filter",
32667
+ description: "ENG-11885 - lets an agent pass `subledger_code` to the Pronto Xi GL transaction tools. OFF (default) = the parameter is not advertised, and a call that names it is refused as not available on this connection. That refusal is NEW for every Pronto agent whatever the flag: before ENG-11885 the argument was silently ignored and the read ran unfiltered (Obi Wan 2b8002a01c14). ON = advertised and sent to Pronto, within the ordinary 7-day range, with every returned row checked to carry the requested subledger (rowsMustMatch), so a Pronto that ignores the filter is refused rather than answering unfiltered. Off until a live read at Pedders proves Pronto filters on it; target that one agent for the test, then widen.",
32668
+ flagType: "boolean",
32669
+ defaultValue: false,
32670
+ // Obi Wan 6d17155b6efa: the key must be REGISTERED, or evaluation ignores every
32671
+ // row for it and the flag can never be on. Platform-admin-only: whether Pronto
32672
+ // honours the filter is unproven, so an org must not switch it on for itself.
32673
+ platformAdminOnly: true
32664
32674
  }
32665
32675
  ];
32666
32676
  var REGISTRY_BY_KEY = new Map(FLAG_REGISTRY.map((definition) => [definition.key, definition]));
@@ -37353,10 +37363,11 @@ function readJson(file) {
37353
37363
  return void 0;
37354
37364
  }
37355
37365
  }
37356
- function freshUnattributed(ledger, now, maxAgeMs) {
37366
+ function freshUnattributed(ledger, now, maxAgeMs, newestSenderTs) {
37357
37367
  if (!ledger || !Array.isArray(ledger.entries)) return false;
37358
37368
  return ledger.entries.some((e) => {
37359
37369
  const r = e;
37370
+ if (r?.loop_tick === true && typeof r.ts === "number" && r.ts < newestSenderTs) return false;
37360
37371
  return r?.unattributed === true && typeof r.ts === "number" && Number.isFinite(r.ts) && now - r.ts >= 0 && now - r.ts <= maxAgeMs;
37361
37372
  });
37362
37373
  }
@@ -37398,7 +37409,8 @@ function readTurnContextUnguarded(opts) {
37398
37409
  now
37399
37410
  );
37400
37411
  if (senders.length === 0) return { v: 1, kind: "none" };
37401
- if (scheduled || freshUnattributed(ledger, now, maxAgeMs)) return { v: 1, kind: "ambiguous" };
37412
+ const newestSenderTs = Math.max(...senders.map((s) => s.ts));
37413
+ if (scheduled || freshUnattributed(ledger, now, maxAgeMs, newestSenderTs)) return { v: 1, kind: "ambiguous" };
37402
37414
  const latest = [...senders].sort((a, b) => b.ts - a.ts)[0];
37403
37415
  const same = senders.every(
37404
37416
  (s) => s.channel === latest.channel && s.sender_id === latest.sender_id && s.chat_kind === latest.chat_kind && s.chat_id === latest.chat_id
@@ -46463,6 +46463,16 @@ var FLAG_REGISTRY = [
46463
46463
  // Fleet-wide security posture, not an org's choice: an org override must not be able
46464
46464
  // to arm or unarm its own keys (CodeRabbit on #7359).
46465
46465
  platformAdminOnly: true
46466
+ },
46467
+ {
46468
+ key: "pronto-gl-subledger-filter",
46469
+ description: "ENG-11885 - lets an agent pass `subledger_code` to the Pronto Xi GL transaction tools. OFF (default) = the parameter is not advertised, and a call that names it is refused as not available on this connection. That refusal is NEW for every Pronto agent whatever the flag: before ENG-11885 the argument was silently ignored and the read ran unfiltered (Obi Wan 2b8002a01c14). ON = advertised and sent to Pronto, within the ordinary 7-day range, with every returned row checked to carry the requested subledger (rowsMustMatch), so a Pronto that ignores the filter is refused rather than answering unfiltered. Off until a live read at Pedders proves Pronto filters on it; target that one agent for the test, then widen.",
46470
+ flagType: "boolean",
46471
+ defaultValue: false,
46472
+ // Obi Wan 6d17155b6efa: the key must be REGISTERED, or evaluation ignores every
46473
+ // row for it and the flag can never be on. Platform-admin-only: whether Pronto
46474
+ // honours the filter is unproven, so an org must not switch it on for itself.
46475
+ platformAdminOnly: true
46466
46476
  }
46467
46477
  ];
46468
46478
  var REGISTRY_BY_KEY = new Map(FLAG_REGISTRY.map((definition) => [definition.key, definition]));
@@ -41318,6 +41318,16 @@ var FLAG_REGISTRY = [
41318
41318
  // Fleet-wide security posture, not an org's choice: an org override must not be able
41319
41319
  // to arm or unarm its own keys (CodeRabbit on #7359).
41320
41320
  platformAdminOnly: true
41321
+ },
41322
+ {
41323
+ key: "pronto-gl-subledger-filter",
41324
+ description: "ENG-11885 - lets an agent pass `subledger_code` to the Pronto Xi GL transaction tools. OFF (default) = the parameter is not advertised, and a call that names it is refused as not available on this connection. That refusal is NEW for every Pronto agent whatever the flag: before ENG-11885 the argument was silently ignored and the read ran unfiltered (Obi Wan 2b8002a01c14). ON = advertised and sent to Pronto, within the ordinary 7-day range, with every returned row checked to carry the requested subledger (rowsMustMatch), so a Pronto that ignores the filter is refused rather than answering unfiltered. Off until a live read at Pedders proves Pronto filters on it; target that one agent for the test, then widen.",
41325
+ flagType: "boolean",
41326
+ defaultValue: false,
41327
+ // Obi Wan 6d17155b6efa: the key must be REGISTERED, or evaluation ignores every
41328
+ // row for it and the flag can never be on. Platform-admin-only: whether Pronto
41329
+ // honours the filter is unproven, so an org must not switch it on for itself.
41330
+ platformAdminOnly: true
41321
41331
  }
41322
41332
  ];
41323
41333
  var REGISTRY_BY_KEY = new Map(FLAG_REGISTRY.map((definition) => [definition.key, definition]));
@@ -44999,6 +45009,7 @@ function foldTurnInitiatorLedger(existing, marker, maxAgeMs = TURN_INITIATOR_MAX
44999
45009
  ...marker.chat_kind ? { chat_kind: marker.chat_kind } : {},
45000
45010
  ...marker.chat_id ? { chat_id: marker.chat_id } : {},
45001
45011
  ...marker.unattributed ? { unattributed: true } : {},
45012
+ ...marker.loop_tick ? { loop_tick: true } : {},
45002
45013
  ts: marker.ts
45003
45014
  });
45004
45015
  kept.sort((a, b) => b.ts - a.ts);
@@ -45143,8 +45154,11 @@ function writeUnattributedTurnMarker(channel, opts = {}) {
45143
45154
  updateTurnInitiatorLedger(file, {
45144
45155
  channel,
45145
45156
  sender_id: "",
45146
- channel_ref: "unattributed",
45157
+ // ENG-11979: its own ledger key. The ledger keeps one entry per (channel, ref),
45158
+ // so a tick sharing a key would overwrite a stricter unattributed notice.
45159
+ channel_ref: opts.loopTick ? "loop-tick" : "unattributed",
45147
45160
  unattributed: true,
45161
+ ...opts.loopTick ? { loop_tick: true } : {},
45148
45162
  ts: opts.now ?? Date.now()
45149
45163
  });
45150
45164
  } catch {
@@ -15428,6 +15428,7 @@ function foldTurnInitiatorLedger(existing, marker, maxAgeMs = TURN_INITIATOR_MAX
15428
15428
  ...marker.chat_kind ? { chat_kind: marker.chat_kind } : {},
15429
15429
  ...marker.chat_id ? { chat_id: marker.chat_id } : {},
15430
15430
  ...marker.unattributed ? { unattributed: true } : {},
15431
+ ...marker.loop_tick ? { loop_tick: true } : {},
15431
15432
  ts: marker.ts
15432
15433
  });
15433
15434
  kept.sort((a, b) => b.ts - a.ts);
@@ -15462,8 +15463,11 @@ function writeUnattributedTurnMarker(channel, opts = {}) {
15462
15463
  updateTurnInitiatorLedger(file, {
15463
15464
  channel,
15464
15465
  sender_id: "",
15465
- channel_ref: "unattributed",
15466
+ // ENG-11979: its own ledger key. The ledger keeps one entry per (channel, ref),
15467
+ // so a tick sharing a key would overwrite a stricter unattributed notice.
15468
+ channel_ref: opts.loopTick ? "loop-tick" : "unattributed",
15466
15469
  unattributed: true,
15470
+ ...opts.loopTick ? { loop_tick: true } : {},
15467
15471
  ts: opts.now ?? Date.now()
15468
15472
  });
15469
15473
  } catch {
@@ -41509,6 +41509,16 @@ var FLAG_REGISTRY = [
41509
41509
  // Fleet-wide security posture, not an org's choice: an org override must not be able
41510
41510
  // to arm or unarm its own keys (CodeRabbit on #7359).
41511
41511
  platformAdminOnly: true
41512
+ },
41513
+ {
41514
+ key: "pronto-gl-subledger-filter",
41515
+ description: "ENG-11885 - lets an agent pass `subledger_code` to the Pronto Xi GL transaction tools. OFF (default) = the parameter is not advertised, and a call that names it is refused as not available on this connection. That refusal is NEW for every Pronto agent whatever the flag: before ENG-11885 the argument was silently ignored and the read ran unfiltered (Obi Wan 2b8002a01c14). ON = advertised and sent to Pronto, within the ordinary 7-day range, with every returned row checked to carry the requested subledger (rowsMustMatch), so a Pronto that ignores the filter is refused rather than answering unfiltered. Off until a live read at Pedders proves Pronto filters on it; target that one agent for the test, then widen.",
41516
+ flagType: "boolean",
41517
+ defaultValue: false,
41518
+ // Obi Wan 6d17155b6efa: the key must be REGISTERED, or evaluation ignores every
41519
+ // row for it and the flag can never be on. Platform-admin-only: whether Pronto
41520
+ // honours the filter is unproven, so an org must not switch it on for itself.
41521
+ platformAdminOnly: true
41512
41522
  }
41513
41523
  ];
41514
41524
  var REGISTRY_BY_KEY = new Map(FLAG_REGISTRY.map((definition) => [definition.key, definition]));
@@ -41627,6 +41637,7 @@ function foldTurnInitiatorLedger(existing, marker, maxAgeMs = TURN_INITIATOR_MAX
41627
41637
  ...marker.chat_kind ? { chat_kind: marker.chat_kind } : {},
41628
41638
  ...marker.chat_id ? { chat_id: marker.chat_id } : {},
41629
41639
  ...marker.unattributed ? { unattributed: true } : {},
41640
+ ...marker.loop_tick ? { loop_tick: true } : {},
41630
41641
  ts: marker.ts
41631
41642
  });
41632
41643
  kept.sort((a, b) => b.ts - a.ts);
@@ -41729,8 +41740,11 @@ function writeUnattributedTurnMarker(channel, opts = {}) {
41729
41740
  updateTurnInitiatorLedger(file, {
41730
41741
  channel,
41731
41742
  sender_id: "",
41732
- channel_ref: "unattributed",
41743
+ // ENG-11979: its own ledger key. The ledger keeps one entry per (channel, ref),
41744
+ // so a tick sharing a key would overwrite a stricter unattributed notice.
41745
+ channel_ref: opts.loopTick ? "loop-tick" : "unattributed",
41733
41746
  unattributed: true,
41747
+ ...opts.loopTick ? { loop_tick: true } : {},
41734
41748
  ts: opts.now ?? Date.now()
41735
41749
  });
41736
41750
  } catch {
@@ -161256,6 +161256,7 @@ function foldTurnInitiatorLedger(existing, marker, maxAgeMs = TURN_INITIATOR_MAX
161256
161256
  ...marker.chat_kind ? { chat_kind: marker.chat_kind } : {},
161257
161257
  ...marker.chat_id ? { chat_id: marker.chat_id } : {},
161258
161258
  ...marker.unattributed ? { unattributed: true } : {},
161259
+ ...marker.loop_tick ? { loop_tick: true } : {},
161259
161260
  ts: marker.ts
161260
161261
  });
161261
161262
  kept.sort((a, b) => b.ts - a.ts);
@@ -161290,8 +161291,11 @@ function writeUnattributedTurnMarker(channel, opts = {}) {
161290
161291
  updateTurnInitiatorLedger(file, {
161291
161292
  channel,
161292
161293
  sender_id: "",
161293
- channel_ref: "unattributed",
161294
+ // ENG-11979: its own ledger key. The ledger keeps one entry per (channel, ref),
161295
+ // so a tick sharing a key would overwrite a stricter unattributed notice.
161296
+ channel_ref: opts.loopTick ? "loop-tick" : "unattributed",
161294
161297
  unattributed: true,
161298
+ ...opts.loopTick ? { loop_tick: true } : {},
161295
161299
  ts: opts.now ?? Date.now()
161296
161300
  });
161297
161301
  } catch {
@@ -68,12 +68,12 @@ import {
68
68
  writeDirectChatSessionState,
69
69
  writeEgressAllowlist,
70
70
  writePersistentClaudeWrapper
71
- } from "./chunk-IHVSRQIE.js";
72
- import "./chunk-AG4RMBPC.js";
71
+ } from "./chunk-3CUCO6BU.js";
72
+ import "./chunk-BDXOVKWJ.js";
73
73
  import "./chunk-HYQ7VOC3.js";
74
74
  import "./chunk-6HBXEJHO.js";
75
75
  import "./chunk-XWVM4KPK.js";
76
- import "./chunk-4B5LCENE.js";
76
+ import "./chunk-XBADGTJP.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-TVE4RBPD.js.map
150
+ //# sourceMappingURL=persistent-session-LQ4GJ264.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-IHVSRQIE.js";
4
- import "./chunk-AG4RMBPC.js";
3
+ } from "./chunk-3CUCO6BU.js";
4
+ import "./chunk-BDXOVKWJ.js";
5
5
  import "./chunk-HYQ7VOC3.js";
6
6
  import "./chunk-6HBXEJHO.js";
7
7
  import "./chunk-XWVM4KPK.js";
8
- import "./chunk-4B5LCENE.js";
8
+ import "./chunk-XBADGTJP.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-G5YKDDTH.js.map
807
+ //# sourceMappingURL=responsiveness-probe-NN7XEPJM.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  sessionTranscriptDir
3
- } from "./chunk-AG4RMBPC.js";
4
- import "./chunk-4B5LCENE.js";
3
+ } from "./chunk-BDXOVKWJ.js";
4
+ import "./chunk-XBADGTJP.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-ZUSPTKZ3.js.map
208
+ //# sourceMappingURL=session-auth-dead-ESB735FG.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.1230",
3
+ "version": "0.28.1232",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {