@integrity-labs/agt-cli 0.28.265 → 0.28.267

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.
@@ -18,7 +18,7 @@ import {
18
18
  resolveConnectivityProbe,
19
19
  worseConnectivityOutcome,
20
20
  wrapScheduledTaskPrompt
21
- } from "./chunk-MWKR6B3T.js";
21
+ } from "./chunk-GBVZDTCB.js";
22
22
  import {
23
23
  parsePsRows
24
24
  } from "./chunk-XWVM4KPK.js";
@@ -1687,7 +1687,7 @@ function buildXurlAppFromIntegration(integration) {
1687
1687
  app.bearer_token = { type: "bearer", bearer: apiKey };
1688
1688
  }
1689
1689
  const accessToken = asString(creds["access_token"]);
1690
- if (integration.auth_type === "oauth2" && accessToken) {
1690
+ if ((integration.auth_type === "oauth2" || integration.auth_type === "github_app") && accessToken) {
1691
1691
  const username = asString(cfg["x_username"]) ?? "default";
1692
1692
  const expiresAt = asString(creds["token_expires_at"]);
1693
1693
  const expirationTime = expiresAt ? Math.floor(Date.parse(expiresAt) / 1e3) : 0;
@@ -5209,7 +5209,7 @@ ${sections}`
5209
5209
  const creds = integration.credentials;
5210
5210
  const def = INTEGRATION_REGISTRY.find((d) => d.id === integration.definition_id);
5211
5211
  let token;
5212
- if (integration.auth_type === "oauth2") {
5212
+ if (integration.auth_type === "oauth2" || integration.auth_type === "github_app") {
5213
5213
  token = creds.access_token;
5214
5214
  if (token) {
5215
5215
  envUpdates[`${prefix}_ACCESS_TOKEN`] = token;
@@ -5759,7 +5759,7 @@ ${sections}`
5759
5759
  mkdirSync2(agentDir, { recursive: true });
5760
5760
  const tokens = {};
5761
5761
  for (const integration of integrations) {
5762
- if (integration.auth_type !== "oauth2")
5762
+ if (integration.auth_type !== "oauth2" && integration.auth_type !== "github_app")
5763
5763
  continue;
5764
5764
  const creds = decryptIntegrationCredentials(integration.credentials);
5765
5765
  const accessToken = creds.access_token;
@@ -5876,7 +5876,7 @@ function requireHost() {
5876
5876
  }
5877
5877
 
5878
5878
  // src/lib/api-client.ts
5879
- var agtCliVersion = true ? "0.28.265" : "dev";
5879
+ var agtCliVersion = true ? "0.28.267" : "dev";
5880
5880
  var lastConfigHash = null;
5881
5881
  function setConfigHash(hash) {
5882
5882
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -6345,6 +6345,12 @@ function findMcpServersUsingVars(mcp, changedVars) {
6345
6345
  }
6346
6346
  return result;
6347
6347
  }
6348
+ function envOnlyRespawnVars(changedVars, mcp, channelSecretKeys) {
6349
+ const channelSet = new Set(channelSecretKeys);
6350
+ return [...changedVars].filter(
6351
+ (v) => !channelSet.has(v) && findMcpServersUsingVars(mcp, [v]).length === 0
6352
+ );
6353
+ }
6348
6354
  function buildArgvMatchersForEntry(key, entry) {
6349
6355
  const escapeRe = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
6350
6356
  const patterns = [];
@@ -8124,6 +8130,7 @@ export {
8124
8130
  HostFlagStore,
8125
8131
  diffEnvIntegrations,
8126
8132
  findMcpServersUsingVars,
8133
+ envOnlyRespawnVars,
8127
8134
  reapStaleMcpChildren,
8128
8135
  clearPresenceReaperState,
8129
8136
  clearPresenceReaperStateForKeys,
@@ -8146,4 +8153,4 @@ export {
8146
8153
  managerInstallSystemUnitCommand,
8147
8154
  managerUninstallSystemUnitCommand
8148
8155
  };
8149
- //# sourceMappingURL=chunk-PDE3XSVC.js.map
8156
+ //# sourceMappingURL=chunk-OTXH3YLU.js.map