@integrity-labs/agt-cli 0.28.342 → 0.28.344

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.
@@ -20,7 +20,7 @@ import {
20
20
  resolveConnectivityProbe,
21
21
  worseConnectivityOutcome,
22
22
  wrapScheduledTaskPrompt
23
- } from "./chunk-7OBFGSQS.js";
23
+ } from "./chunk-7MP37HYR.js";
24
24
  import {
25
25
  parsePsRows
26
26
  } from "./chunk-XWVM4KPK.js";
@@ -6295,6 +6295,18 @@ function buildChannelServerEnv(channelId, config, options) {
6295
6295
  }
6296
6296
  if (peerDisabledMode === "all")
6297
6297
  env["TELEGRAM_PEER_DISABLED"] = "true";
6298
+ const rawAllowedChats = config["allowed_chats"];
6299
+ if (Array.isArray(rawAllowedChats)) {
6300
+ const chats = rawAllowedChats.map((v) => typeof v === "string" || typeof v === "number" ? String(v).trim() : "").filter((v) => v.length > 0);
6301
+ if (chats.length > 0)
6302
+ env["TELEGRAM_ALLOWED_CHATS"] = chats.join(",");
6303
+ }
6304
+ const tgAckReaction = typeof config["ack_reaction"] === "string" ? config["ack_reaction"].trim() : "";
6305
+ if (tgAckReaction)
6306
+ env["TELEGRAM_ACK_REACTION"] = tgAckReaction;
6307
+ const tgSkipReaction = typeof config["skip_reaction"] === "string" ? config["skip_reaction"].trim() : "";
6308
+ if (tgSkipReaction)
6309
+ env["TELEGRAM_SKIP_REACTION"] = tgSkipReaction;
6298
6310
  return env;
6299
6311
  }
6300
6312
  if (channelId === "msteams") {
@@ -6323,6 +6335,8 @@ function toOpencodeModel(primaryModel) {
6323
6335
  return `openai/${m}`;
6324
6336
  if (/^gemini/i.test(m))
6325
6337
  return `google/${m}`;
6338
+ if (/^grok/i.test(m))
6339
+ return `xai/${m}`;
6326
6340
  return `anthropic/${m}`;
6327
6341
  }
6328
6342
  function providerOf(opencodeModel) {
@@ -6333,7 +6347,8 @@ function buildProvider(opencodeModel) {
6333
6347
  const keyEnv = {
6334
6348
  anthropic: "ANTHROPIC_API_KEY",
6335
6349
  openai: "OPENAI_API_KEY",
6336
- google: "GOOGLE_GENERATIVE_AI_API_KEY"
6350
+ google: "GOOGLE_GENERATIVE_AI_API_KEY",
6351
+ xai: "XAI_API_KEY"
6337
6352
  };
6338
6353
  const envVar = keyEnv[provider] ?? `${provider.toUpperCase()}_API_KEY`;
6339
6354
  return { [provider]: { options: { apiKey: `{env:${envVar}}` } } };
@@ -7037,7 +7052,7 @@ function requireHost() {
7037
7052
  }
7038
7053
 
7039
7054
  // src/lib/api-client.ts
7040
- var agtCliVersion = true ? "0.28.342" : "dev";
7055
+ var agtCliVersion = true ? "0.28.344" : "dev";
7041
7056
  var lastConfigHash = null;
7042
7057
  function setConfigHash(hash) {
7043
7058
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -9486,4 +9501,4 @@ export {
9486
9501
  managerInstallSystemUnitCommand,
9487
9502
  managerUninstallSystemUnitCommand
9488
9503
  };
9489
- //# sourceMappingURL=chunk-V2FVNWF2.js.map
9504
+ //# sourceMappingURL=chunk-AJ23F3MU.js.map