@integrity-labs/agt-cli 0.28.719 → 0.28.721

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 (24) hide show
  1. package/dist/bin/agt.js +5 -5
  2. package/dist/{chunk-7LH3SVAD.js → chunk-32WU3HBU.js} +7 -1
  3. package/dist/chunk-32WU3HBU.js.map +1 -0
  4. package/dist/{chunk-FNALM4HG.js → chunk-E3WGN4GX.js} +2 -2
  5. package/dist/{chunk-FG5F657H.js → chunk-KCWKZIQT.js} +4 -4
  6. package/dist/{claude-pair-runtime-PDG74SAT.js → claude-pair-runtime-EKP2KR6N.js} +2 -2
  7. package/dist/lib/manager-worker.js +493 -345
  8. package/dist/lib/manager-worker.js.map +1 -1
  9. package/dist/mcp/direct-chat-channel.js +37 -2
  10. package/dist/mcp/index.js +6 -0
  11. package/dist/mcp/origami.js +6 -0
  12. package/dist/mcp/slack-channel.js +6 -0
  13. package/dist/mcp/telegram-channel.js +6 -0
  14. package/dist/{persistent-session-2AWYIUCX.js → persistent-session-7NXQBNZB.js} +3 -3
  15. package/dist/{responsiveness-probe-JQS4WA2L.js → responsiveness-probe-UDFTVXOW.js} +3 -3
  16. package/dist/{session-auth-dead-VBMZW4GG.js → session-auth-dead-DQW6NXDX.js} +2 -2
  17. package/package.json +1 -1
  18. package/dist/chunk-7LH3SVAD.js.map +0 -1
  19. /package/dist/{chunk-FNALM4HG.js.map → chunk-E3WGN4GX.js.map} +0 -0
  20. /package/dist/{chunk-FG5F657H.js.map → chunk-KCWKZIQT.js.map} +0 -0
  21. /package/dist/{claude-pair-runtime-PDG74SAT.js.map → claude-pair-runtime-EKP2KR6N.js.map} +0 -0
  22. /package/dist/{persistent-session-2AWYIUCX.js.map → persistent-session-7NXQBNZB.js.map} +0 -0
  23. /package/dist/{responsiveness-probe-JQS4WA2L.js.map → responsiveness-probe-UDFTVXOW.js.map} +0 -0
  24. /package/dist/{session-auth-dead-VBMZW4GG.js.map → session-auth-dead-DQW6NXDX.js.map} +0 -0
@@ -30036,8 +30036,14 @@ function readDirectChatPendingInboundMarker(dir, sessionId, messageId, readFileI
30036
30036
  return null;
30037
30037
  }
30038
30038
  }
30039
+ var MAX_REPORTED_ORPHANS = 20;
30039
30040
  function sweepAgedDirectChatMarkers(dir, deps) {
30040
- const result = { cleared: 0, orphaned: 0 };
30041
+ const result = {
30042
+ cleared: 0,
30043
+ orphaned: 0,
30044
+ orphanedIdentities: [],
30045
+ orphanedTruncated: false
30046
+ };
30041
30047
  if (!dir) return result;
30042
30048
  let names;
30043
30049
  try {
@@ -30063,11 +30069,21 @@ function sweepAgedDirectChatMarkers(dir, deps) {
30063
30069
  }
30064
30070
  result.cleared += 1;
30065
30071
  if (undelivered) {
30072
+ const identity = {
30073
+ inboundId: marker.inbound_id,
30074
+ receivedAt: marker.received_at,
30075
+ sessionId: marker.session_id
30076
+ };
30066
30077
  try {
30067
- deps.onOrphaned();
30078
+ deps.onOrphaned(identity);
30068
30079
  } catch {
30069
30080
  }
30070
30081
  result.orphaned += 1;
30082
+ if (result.orphanedIdentities.length < MAX_REPORTED_ORPHANS) {
30083
+ result.orphanedIdentities.push(identity);
30084
+ } else {
30085
+ result.orphanedTruncated = true;
30086
+ }
30071
30087
  }
30072
30088
  }
30073
30089
  return result;
@@ -34383,6 +34399,12 @@ var NOTICE_KIND_AUDIENCE = {
34383
34399
  // call addressed to the machine.
34384
34400
  live_advisor_escalation: "agent",
34385
34401
  live_advisor_session_open: "agent",
34402
+ // ENG-9631's counterpart to the open briefing, and agent-directed for the
34403
+ // same reason: `buildSessionCloseMessage` writes in the second person to the
34404
+ // machine — "the sales call YOU were advising on", "you will not be woken
34405
+ // again". Read the builder, as this file asks. The person already knows they
34406
+ // pressed Stop; the one who does not know is the agent.
34407
+ live_advisor_session_close: "agent",
34386
34408
  // The assigner reopened a card and the agent must work it again.
34387
34409
  assigner_reopen: "agent",
34388
34410
  // An inbound trigger event delivered onto the rail for the agent to handle.
@@ -39342,6 +39364,19 @@ function sweepAgedDirectChatMarkersNow(thresholdMs) {
39342
39364
  if (res.cleared > 0) {
39343
39365
  process.stderr.write(
39344
39366
  `direct-chat-channel(${AGT_AGENT_CODE_NAME}): stale-marker sweep cleared=${res.cleared} orphaned=${res.orphaned}
39367
+ `
39368
+ );
39369
+ }
39370
+ if (res.orphaned > 0) {
39371
+ const now2 = Date.now();
39372
+ const detail = res.orphanedIdentities.map((o) => {
39373
+ const receivedMs = o.receivedAt ? Date.parse(o.receivedAt) : NaN;
39374
+ const age = Number.isFinite(receivedMs) ? `${Math.round((now2 - receivedMs) / 6e4)}m` : "age?";
39375
+ return `${o.inboundId ?? "inbound?"}(session=${o.sessionId ?? "?"} age=${age})`;
39376
+ }).join(" ");
39377
+ const more = res.orphanedTruncated ? ` (+${res.orphaned - res.orphanedIdentities.length} more not listed)` : "";
39378
+ process.stderr.write(
39379
+ `direct-chat-channel(${AGT_AGENT_CODE_NAME}): orphaned_detail ${detail}${more}
39345
39380
  `
39346
39381
  );
39347
39382
  }
package/dist/mcp/index.js CHANGED
@@ -41799,6 +41799,12 @@ var NOTICE_KIND_AUDIENCE = {
41799
41799
  // call addressed to the machine.
41800
41800
  live_advisor_escalation: "agent",
41801
41801
  live_advisor_session_open: "agent",
41802
+ // ENG-9631's counterpart to the open briefing, and agent-directed for the
41803
+ // same reason: `buildSessionCloseMessage` writes in the second person to the
41804
+ // machine — "the sales call YOU were advising on", "you will not be woken
41805
+ // again". Read the builder, as this file asks. The person already knows they
41806
+ // pressed Stop; the one who does not know is the agent.
41807
+ live_advisor_session_close: "agent",
41802
41808
  // The assigner reopened a card and the agent must work it again.
41803
41809
  assigner_reopen: "agent",
41804
41810
  // An inbound trigger event delivered onto the rail for the agent to handle.
@@ -40591,6 +40591,12 @@ var NOTICE_KIND_AUDIENCE = {
40591
40591
  // call addressed to the machine.
40592
40592
  live_advisor_escalation: "agent",
40593
40593
  live_advisor_session_open: "agent",
40594
+ // ENG-9631's counterpart to the open briefing, and agent-directed for the
40595
+ // same reason: `buildSessionCloseMessage` writes in the second person to the
40596
+ // machine — "the sales call YOU were advising on", "you will not be woken
40597
+ // again". Read the builder, as this file asks. The person already knows they
40598
+ // pressed Stop; the one who does not know is the agent.
40599
+ live_advisor_session_close: "agent",
40594
40600
  // The assigner reopened a card and the agent must work it again.
40595
40601
  assigner_reopen: "agent",
40596
40602
  // An inbound trigger event delivered onto the rail for the agent to handle.
@@ -34704,6 +34704,12 @@ var NOTICE_KIND_AUDIENCE = {
34704
34704
  // call addressed to the machine.
34705
34705
  live_advisor_escalation: "agent",
34706
34706
  live_advisor_session_open: "agent",
34707
+ // ENG-9631's counterpart to the open briefing, and agent-directed for the
34708
+ // same reason: `buildSessionCloseMessage` writes in the second person to the
34709
+ // machine — "the sales call YOU were advising on", "you will not be woken
34710
+ // again". Read the builder, as this file asks. The person already knows they
34711
+ // pressed Stop; the one who does not know is the agent.
34712
+ live_advisor_session_close: "agent",
34707
34713
  // The assigner reopened a card and the agent must work it again.
34708
34714
  assigner_reopen: "agent",
34709
34715
  // An inbound trigger event delivered onto the rail for the agent to handle.
@@ -34860,6 +34860,12 @@ var NOTICE_KIND_AUDIENCE = {
34860
34860
  // call addressed to the machine.
34861
34861
  live_advisor_escalation: "agent",
34862
34862
  live_advisor_session_open: "agent",
34863
+ // ENG-9631's counterpart to the open briefing, and agent-directed for the
34864
+ // same reason: `buildSessionCloseMessage` writes in the second person to the
34865
+ // machine — "the sales call YOU were advising on", "you will not be woken
34866
+ // again". Read the builder, as this file asks. The person already knows they
34867
+ // pressed Stop; the one who does not know is the agent.
34868
+ live_advisor_session_close: "agent",
34863
34869
  // The assigner reopened a card and the agent must work it again.
34864
34870
  assigner_reopen: "agent",
34865
34871
  // An inbound trigger event delivered onto the rail for the agent to handle.
@@ -46,8 +46,8 @@ import {
46
46
  writeDirectChatSessionState,
47
47
  writeEgressAllowlist,
48
48
  writePersistentClaudeWrapper
49
- } from "./chunk-FNALM4HG.js";
50
- import "./chunk-7LH3SVAD.js";
49
+ } from "./chunk-E3WGN4GX.js";
50
+ import "./chunk-32WU3HBU.js";
51
51
  import "./chunk-XWVM4KPK.js";
52
52
  export {
53
53
  EGRESS_BASELINE_DOMAINS,
@@ -98,4 +98,4 @@ export {
98
98
  writeEgressAllowlist,
99
99
  writePersistentClaudeWrapper
100
100
  };
101
- //# sourceMappingURL=persistent-session-2AWYIUCX.js.map
101
+ //# sourceMappingURL=persistent-session-7NXQBNZB.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-FNALM4HG.js";
4
- import "./chunk-7LH3SVAD.js";
3
+ } from "./chunk-E3WGN4GX.js";
4
+ import "./chunk-32WU3HBU.js";
5
5
  import "./chunk-XWVM4KPK.js";
6
6
 
7
7
  // src/lib/responsiveness-probe.ts
@@ -745,4 +745,4 @@ export {
745
745
  readAndResetSlackReplyBindingClassifications,
746
746
  readAndResetSlackReplyTargetClassifications
747
747
  };
748
- //# sourceMappingURL=responsiveness-probe-JQS4WA2L.js.map
748
+ //# sourceMappingURL=responsiveness-probe-UDFTVXOW.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sessionTranscriptDir
3
- } from "./chunk-7LH3SVAD.js";
3
+ } from "./chunk-32WU3HBU.js";
4
4
 
5
5
  // src/lib/session-auth-dead.ts
6
6
  import { closeSync, openSync, readSync, readdirSync, statSync } from "fs";
@@ -203,4 +203,4 @@ export {
203
203
  decideSessionAuthState,
204
204
  probeSessionAuth
205
205
  };
206
- //# sourceMappingURL=session-auth-dead-VBMZW4GG.js.map
206
+ //# sourceMappingURL=session-auth-dead-DQW6NXDX.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.719",
3
+ "version": "0.28.721",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {