@integrity-labs/agt-cli 0.28.209 → 0.28.210

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.
@@ -14302,7 +14302,7 @@ function readLockHolder(path) {
14302
14302
 
14303
14303
  // src/direct-chat-channel.ts
14304
14304
  import { homedir as homedir2 } from "os";
14305
- import { join as join4 } from "path";
14305
+ import { dirname as dirname2, join as join4 } from "path";
14306
14306
  import { watch, mkdirSync as mkdirSync3, writeFileSync as writeFileSync3 } from "fs";
14307
14307
 
14308
14308
  // src/direct-chat-inbound-attachments.ts
@@ -14511,6 +14511,14 @@ var AGT_HOST = process.env.AGT_HOST;
14511
14511
  var AGT_API_KEY = process.env.AGT_API_KEY;
14512
14512
  var AGT_AGENT_ID = process.env.AGT_AGENT_ID;
14513
14513
  var DIRECT_CHAT_AGENT_DIR = AGT_AGENT_ID ? join4(homedir2(), ".augmented", AGT_AGENT_ID) : null;
14514
+ var CODE_NAME_AGENT_DIR = (() => {
14515
+ const codeName = process.env.AGT_AGENT_CODE_NAME;
14516
+ if (codeName) return join4(homedir2(), ".augmented", codeName);
14517
+ const initiatorFile = process.env.AGT_TURN_INITIATOR_FILE;
14518
+ if (initiatorFile) return dirname2(initiatorFile);
14519
+ return DIRECT_CHAT_AGENT_DIR;
14520
+ })();
14521
+ var INBOUND_ATTACHMENTS_DIR = CODE_NAME_AGENT_DIR ? join4(CODE_NAME_AGENT_DIR, "direct-chat-inbound") : null;
14514
14522
  var inboundContextClient = createInboundContextClient({
14515
14523
  agtHost: AGT_HOST ?? null,
14516
14524
  agtApiKey: AGT_API_KEY ?? null,
@@ -14902,10 +14910,10 @@ async function pollForMessages(sinceMs) {
14902
14910
  let injectContent = msg.content;
14903
14911
  let attachmentMeta = {};
14904
14912
  const inboundAttachments = msg.attachments ?? [];
14905
- if (!isNotice && inboundAttachments.length > 0 && DIRECT_CHAT_AGENT_DIR) {
14913
+ if (!isNotice && inboundAttachments.length > 0 && INBOUND_ATTACHMENTS_DIR) {
14906
14914
  const processed = await downloadInboundAttachments(
14907
14915
  inboundAttachments,
14908
- join4(DIRECT_CHAT_AGENT_DIR, "direct-chat-inbound"),
14916
+ INBOUND_ATTACHMENTS_DIR,
14909
14917
  inboundAttachmentDeps
14910
14918
  );
14911
14919
  const annotation = buildAttachmentAnnotation(processed);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.209",
3
+ "version": "0.28.210",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {