@integrity-labs/agt-cli 0.28.821 → 0.28.823

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
@@ -40,12 +40,12 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-PPBIUOWR.js";
43
+ } from "../chunk-5PFBPGBO.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-ZDV575SW.js";
48
+ } from "../chunk-2MB3SP6H.js";
49
49
  import {
50
50
  AnchorSessionClient,
51
51
  CHANNEL_REGISTRY,
@@ -79,7 +79,7 @@ import {
79
79
  serializeManifestForSlackCli,
80
80
  sessionFileExists,
81
81
  sessionTranscriptDir
82
- } from "../chunk-NVUWRJWX.js";
82
+ } from "../chunk-3QZUOZUZ.js";
83
83
  import "../chunk-XWVM4KPK.js";
84
84
 
85
85
  // src/bin/agt.ts
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
5467
5467
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5468
5468
  import chalk18 from "chalk";
5469
5469
  import ora16 from "ora";
5470
- var cliVersion = true ? "0.28.821" : "dev";
5470
+ var cliVersion = true ? "0.28.823" : "dev";
5471
5471
  async function fetchLatestVersion() {
5472
5472
  const host2 = getHost();
5473
5473
  if (!host2) return null;
@@ -6658,7 +6658,7 @@ function handleError(err) {
6658
6658
  }
6659
6659
 
6660
6660
  // src/bin/agt.ts
6661
- var cliVersion2 = true ? "0.28.821" : "dev";
6661
+ var cliVersion2 = true ? "0.28.823" : "dev";
6662
6662
  var program = new Command();
6663
6663
  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");
6664
6664
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -18,7 +18,7 @@ import {
18
18
  rotateDailySession,
19
19
  sessionFileExists,
20
20
  todayLocalIso
21
- } from "./chunk-NVUWRJWX.js";
21
+ } from "./chunk-3QZUOZUZ.js";
22
22
  import {
23
23
  reapOrphanChannelMcps
24
24
  } from "./chunk-XWVM4KPK.js";
@@ -5312,4 +5312,4 @@ export {
5312
5312
  stopAllSessionsAndWait,
5313
5313
  getProjectDir
5314
5314
  };
5315
- //# sourceMappingURL=chunk-ZDV575SW.js.map
5315
+ //# sourceMappingURL=chunk-2MB3SP6H.js.map
@@ -10130,7 +10130,23 @@ var HTTP_PROBE_PROVIDERS = /* @__PURE__ */ new Set([
10130
10130
  // install (121 motion presets fetched through the broker) told the customer
10131
10131
  // it had never connected. Routes to `probeHiggsfield`: `Authorization: Key`
10132
10132
  // against the free, read-only `/v1/motions`.
10133
- "higgsfield"
10133
+ "higgsfield",
10134
+ // ENG-10082 (epic ENG-10081): Sprout Social, the third instance of the same
10135
+ // omission. `source_type: 'native'` with a null `cli_binary` — there is no
10136
+ // binary, the tools are brokered server-side against api.sproutsocial.com —
10137
+ // so it fell past every branch to `builtin` and returned `unverified` having
10138
+ // contacted nothing, forever.
10139
+ //
10140
+ // This is the install a customer reported (CS-1663 / ENG-9988). Basketball
10141
+ // Media saw a red "not connected" badge while the integration served six
10142
+ // successful authenticated round-trips across two agent sessions; an entire
10143
+ // commercial analysis was produced through it while the console said it was
10144
+ // down. `unverified` is neutral to hysteresis, so nothing promoted the row
10145
+ // off `status='configured'`, which the console renders as "not connected".
10146
+ //
10147
+ // Routes to `probeBearerJson` against the free, read-only, no-argument
10148
+ // `/v1/metadata/client` — the same read that backs `sprout_social_list_clients`.
10149
+ "sprout-social"
10134
10150
  // ENG-6100: GitHub is deliberately NOT here. This set drives the ASYNC
10135
10151
  // connectivity monitor's routing, where github (source_type='native')
10136
10152
  // stays host-side (cli_command — `gh`, the credential the agent actually
@@ -11295,6 +11311,23 @@ async function probeHttpProvider(definitionId, credentials, fetchImpl = fetch) {
11295
11311
  const user = body;
11296
11312
  return { status: "ok", message: `Connected as ${user.name ?? user.email ?? "unknown"}` };
11297
11313
  });
11314
+ case "sprout-social":
11315
+ return probeBearerJson("https://api.sproutsocial.com/v1/metadata/client", credentials, fetchImpl, (body) => {
11316
+ const data = body?.data;
11317
+ const clients = Array.isArray(data) ? data.filter((row) => {
11318
+ if (typeof row !== "object" || row === null)
11319
+ return false;
11320
+ const id = row.customer_id;
11321
+ return typeof id === "string" || typeof id === "number";
11322
+ }) : [];
11323
+ if (!clients.length) {
11324
+ return { status: "down", message: "Sprout Social returned no usable client account for this token" };
11325
+ }
11326
+ return {
11327
+ status: "ok",
11328
+ message: `Reached Sprout Social \u2014 ${clients.length} client account(s), incl. ${clients[0]?.name ?? "unnamed"}`
11329
+ };
11330
+ });
11298
11331
  case "github":
11299
11332
  return probeBearerJson("https://api.github.com/user", credentials, fetchImpl, (body) => {
11300
11333
  const u = body;
@@ -13803,4 +13836,4 @@ export {
13803
13836
  peekCurrentSession,
13804
13837
  readDailySessionPin
13805
13838
  };
13806
- //# sourceMappingURL=chunk-NVUWRJWX.js.map
13839
+ //# sourceMappingURL=chunk-3QZUOZUZ.js.map