@integrity-labs/agt-cli 0.28.264 → 0.28.266

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-E45AAMBQ.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.264" : "dev";
5879
+ var agtCliVersion = true ? "0.28.266" : "dev";
5880
5880
  var lastConfigHash = null;
5881
5881
  function setConfigHash(hash) {
5882
5882
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8146,4 +8146,4 @@ export {
8146
8146
  managerInstallSystemUnitCommand,
8147
8147
  managerUninstallSystemUnitCommand
8148
8148
  };
8149
- //# sourceMappingURL=chunk-MQ5S642N.js.map
8149
+ //# sourceMappingURL=chunk-Z5YUBTSG.js.map