@integrity-labs/agt-cli 0.28.674 → 0.28.675

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 CHANGED
@@ -40,7 +40,7 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-ZD72DPZT.js";
43
+ } from "../chunk-ZKP6UYPJ.js";
44
44
  import {
45
45
  readDirectChatSessionState
46
46
  } from "../chunk-7Y54PSMR.js";
@@ -4909,7 +4909,7 @@ import { execFileSync, execSync } from "child_process";
4909
4909
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4910
4910
  import chalk18 from "chalk";
4911
4911
  import ora16 from "ora";
4912
- var cliVersion = true ? "0.28.674" : "dev";
4912
+ var cliVersion = true ? "0.28.675" : "dev";
4913
4913
  async function fetchLatestVersion() {
4914
4914
  const host2 = getHost();
4915
4915
  if (!host2) return null;
@@ -6089,7 +6089,7 @@ function handleError(err) {
6089
6089
  }
6090
6090
 
6091
6091
  // src/bin/agt.ts
6092
- var cliVersion2 = true ? "0.28.674" : "dev";
6092
+ var cliVersion2 = true ? "0.28.675" : "dev";
6093
6093
  var program = new Command();
6094
6094
  program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
6095
6095
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -6292,7 +6292,7 @@ function exchangeFailureKind(err) {
6292
6292
  }
6293
6293
 
6294
6294
  // src/lib/api-client.ts
6295
- var agtCliVersion = true ? "0.28.674" : "dev";
6295
+ var agtCliVersion = true ? "0.28.675" : "dev";
6296
6296
  var lastConfigHash = null;
6297
6297
  function setConfigHash(hash) {
6298
6298
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -10033,4 +10033,4 @@ export {
10033
10033
  managerInstallSystemUnitCommand,
10034
10034
  managerUninstallSystemUnitCommand
10035
10035
  };
10036
- //# sourceMappingURL=chunk-ZD72DPZT.js.map
10036
+ //# sourceMappingURL=chunk-ZKP6UYPJ.js.map
@@ -54,7 +54,7 @@ import {
54
54
  safeWriteJsonAtomic,
55
55
  setConfigHash,
56
56
  tripClass
57
- } from "../chunk-ZD72DPZT.js";
57
+ } from "../chunk-ZKP6UYPJ.js";
58
58
  import {
59
59
  getProjectDir as getProjectDir2,
60
60
  getReadyTasks,
@@ -12265,7 +12265,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
12265
12265
  var lastVersionCheckAt = 0;
12266
12266
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
12267
12267
  var lastResponsivenessProbeAt = 0;
12268
- var agtCliVersion = true ? "0.28.674" : "dev";
12268
+ var agtCliVersion = true ? "0.28.675" : "dev";
12269
12269
  function resolveBrewPath(execFileSync3) {
12270
12270
  try {
12271
12271
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -29501,6 +29501,18 @@ function createInboundContextClient(args) {
29501
29501
  };
29502
29502
  }
29503
29503
 
29504
+ // src/direct-chat-inbound-origin.ts
29505
+ function directChatInboundOrigin(msg) {
29506
+ if (msg.kind === "notice") return null;
29507
+ const sessionId = typeof msg.session_id === "string" ? msg.session_id.trim() : "";
29508
+ if (!sessionId) return null;
29509
+ return {
29510
+ sourceIntegration: "direct-chat",
29511
+ sourceExternalId: sessionId,
29512
+ ...msg.sender_id ? { senderId: msg.sender_id } : {}
29513
+ };
29514
+ }
29515
+
29504
29516
  // src/impersonation.ts
29505
29517
  var ENV_VAR = "AGT_ACT_AS_AGENT_ID";
29506
29518
  var OVERRIDE_ENV_VAR = "ENABLE_IMPERSONATION_CHANNELS";
@@ -38851,12 +38863,10 @@ async function pollForMessages(sinceMs) {
38851
38863
  continue;
38852
38864
  }
38853
38865
  }
38854
- inboundContextClient?.recordInbound({
38855
- sourceIntegration: "direct-chat",
38856
- sourceExternalId: msg.session_id,
38857
- // ENG-7643 (P4a): the D16 verified sender uuid (requester identity).
38858
- ...msg.sender_id ? { senderId: msg.sender_id } : {}
38859
- });
38866
+ const inboundOrigin = directChatInboundOrigin(msg);
38867
+ if (inboundOrigin) {
38868
+ inboundContextClient?.recordInbound(inboundOrigin);
38869
+ }
38860
38870
  process.stderr.write(
38861
38871
  `direct-chat-channel: Injected message ${msg.id} (session=${msg.session_id})
38862
38872
  `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.674",
3
+ "version": "0.28.675",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {