@integrity-labs/agt-cli 0.27.125 → 0.27.127

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
@@ -28,7 +28,7 @@ import {
28
28
  success,
29
29
  table,
30
30
  warn
31
- } from "../chunk-QHKJELRV.js";
31
+ } from "../chunk-RKM5IRRT.js";
32
32
  import {
33
33
  CHANNEL_REGISTRY,
34
34
  DEPLOYMENT_TEMPLATES,
@@ -54,7 +54,7 @@ import {
54
54
  renderTemplate,
55
55
  resolveChannels,
56
56
  serializeManifestForSlackCli
57
- } from "../chunk-Z6JJRLHH.js";
57
+ } from "../chunk-MH7HA6QV.js";
58
58
 
59
59
  // src/bin/agt.ts
60
60
  import { join as join20 } from "path";
@@ -4934,7 +4934,7 @@ import { execFileSync, execSync } from "child_process";
4934
4934
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4935
4935
  import chalk18 from "chalk";
4936
4936
  import ora16 from "ora";
4937
- var cliVersion = true ? "0.27.125" : "dev";
4937
+ var cliVersion = true ? "0.27.127" : "dev";
4938
4938
  async function fetchLatestVersion() {
4939
4939
  const host2 = getHost();
4940
4940
  if (!host2) return null;
@@ -5857,7 +5857,7 @@ function handleError(err) {
5857
5857
  }
5858
5858
 
5859
5859
  // src/bin/agt.ts
5860
- var cliVersion2 = true ? "0.27.125" : "dev";
5860
+ var cliVersion2 = true ? "0.27.127" : "dev";
5861
5861
  var program = new Command();
5862
5862
  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");
5863
5863
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -1746,6 +1746,11 @@ var OAUTH_PROVIDERS = {
1746
1746
  definitionId: "github",
1747
1747
  authorizeUrl: "https://github.com/login/oauth/authorize",
1748
1748
  tokenUrl: "https://github.com/login/oauth/access_token",
1749
+ // ENG-6187: revoke the existing grant on reconnect so GitHub re-prompts and
1750
+ // the four scopes below are actually granted. Without this, a stale narrow
1751
+ // grant (e.g. an old read:user-only authorization) is silently re-issued and
1752
+ // the missing-scopes banner loops forever.
1753
+ grantRevokeUrl: "https://api.github.com/applications/{client_id}/grant",
1749
1754
  defaultScopes: ["repo", "read:org", "gist", "workflow"],
1750
1755
  supportsRefresh: true,
1751
1756
  extraAuthorizeParams: {},
@@ -4663,4 +4668,4 @@ export {
4663
4668
  attributeTranscriptUsageByRun,
4664
4669
  KANBAN_CHECK_COMMAND
4665
4670
  };
4666
- //# sourceMappingURL=chunk-Z6JJRLHH.js.map
4671
+ //# sourceMappingURL=chunk-MH7HA6QV.js.map