@integrity-labs/agt-cli 0.28.928 → 0.28.930

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.
Files changed (24) hide show
  1. package/dist/bin/agt.js +51 -6
  2. package/dist/bin/agt.js.map +1 -1
  3. package/dist/{chunk-Y7ERASS6.js → chunk-7F32775G.js} +63 -1
  4. package/dist/{chunk-Y7ERASS6.js.map → chunk-7F32775G.js.map} +1 -1
  5. package/dist/{chunk-NIUBYSLW.js → chunk-HC3EDWKC.js} +2 -2
  6. package/dist/{chunk-OXWLTPU2.js → chunk-NCNQFUNQ.js} +23 -8
  7. package/dist/{chunk-OXWLTPU2.js.map → chunk-NCNQFUNQ.js.map} +1 -1
  8. package/dist/{claude-pair-runtime-RFY57WC3.js → claude-pair-runtime-TDP2NJTT.js} +2 -2
  9. package/dist/lib/manager-worker.js +26 -17
  10. package/dist/lib/manager-worker.js.map +1 -1
  11. package/dist/mcp/direct-chat-channel.js +21 -0
  12. package/dist/mcp/index.js +21 -0
  13. package/dist/mcp/origami.js +21 -0
  14. package/dist/mcp/slack-channel.js +21 -0
  15. package/dist/mcp/telegram-channel.js +21 -0
  16. package/dist/{persistent-session-O3AKW6IW.js → persistent-session-Z7S2MMRH.js} +3 -3
  17. package/dist/{responsiveness-probe-MIPUX3BG.js → responsiveness-probe-SR62Y32C.js} +3 -3
  18. package/dist/{session-auth-dead-ZGZZLE4X.js → session-auth-dead-25KP23AU.js} +2 -2
  19. package/package.json +1 -1
  20. /package/dist/{chunk-NIUBYSLW.js.map → chunk-HC3EDWKC.js.map} +0 -0
  21. /package/dist/{claude-pair-runtime-RFY57WC3.js.map → claude-pair-runtime-TDP2NJTT.js.map} +0 -0
  22. /package/dist/{persistent-session-O3AKW6IW.js.map → persistent-session-Z7S2MMRH.js.map} +0 -0
  23. /package/dist/{responsiveness-probe-MIPUX3BG.js.map → responsiveness-probe-SR62Y32C.js.map} +0 -0
  24. /package/dist/{session-auth-dead-ZGZZLE4X.js.map → session-auth-dead-25KP23AU.js.map} +0 -0
package/dist/bin/agt.js CHANGED
@@ -40,12 +40,12 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-OXWLTPU2.js";
43
+ } from "../chunk-NCNQFUNQ.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-NIUBYSLW.js";
48
+ } from "../chunk-HC3EDWKC.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-Y7ERASS6.js";
82
+ } from "../chunk-7F32775G.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.928" : "dev";
5470
+ var cliVersion = true ? "0.28.930" : "dev";
5471
5471
  async function fetchLatestVersion() {
5472
5472
  const host2 = getHost();
5473
5473
  if (!host2) return null;
@@ -6267,6 +6267,32 @@ function notProvisionedMessage(input4) {
6267
6267
  ].join("\n");
6268
6268
  }
6269
6269
 
6270
+ // src/lib/probe-scope-note.ts
6271
+ var UNKEYED = "(no connection_key)";
6272
+ function probeScopeNote(input4) {
6273
+ const key = input4.connectionKey ?? UNKEYED;
6274
+ const lines = [
6275
+ `This verdict is about connection "${key}" of "${input4.slug}" on ${input4.agentCodeName}.`
6276
+ ];
6277
+ if (input4.visibleSiblingKeys.length > 0) {
6278
+ lines.push(
6279
+ `Other connections under this slug in the probed set: ${input4.visibleSiblingKeys.map((k) => `"${k}"`).join(", ")}. Each needs its own probe \u2014 this run covered none of them.`
6280
+ );
6281
+ }
6282
+ lines.push(
6283
+ "",
6284
+ // The load-bearing sentence, and the reason listing siblings is not enough
6285
+ // on its own. Without it an empty sibling line reads as "there is only one".
6286
+ `It is NOT a verdict about "${input4.slug}" as a whole. A toolkit can hold`,
6287
+ `several connections (ENG-7543) and this command probes the FIRST one it`,
6288
+ `resolves. Siblings in status 'error' or 'unhealthy' are filtered out of the`,
6289
+ `set this command searches, so the connection most likely to be broken is`,
6290
+ `also the one that cannot appear above. To settle what exists, read the`,
6291
+ `agent's integration rows directly rather than relying on this verdict.`
6292
+ );
6293
+ return lines.join("\n");
6294
+ }
6295
+
6270
6296
  // src/commands/integration.ts
6271
6297
  async function fetchAgents() {
6272
6298
  const hostId = await getHostId().catch(() => null);
@@ -6391,9 +6417,10 @@ async function integrationProbeCommand(agentCodeName, slug) {
6391
6417
  { agent_id: agent2.agent_id }
6392
6418
  );
6393
6419
  const integrations = data.integrations ?? [];
6394
- const integ = integrations.find(
6420
+ const matches = integrations.filter(
6395
6421
  (i) => i.definition_id.toLowerCase() === slug.toLowerCase()
6396
6422
  );
6423
+ const integ = matches[0];
6397
6424
  if (!integ) {
6398
6425
  spinner.stop();
6399
6426
  error(
@@ -6417,10 +6444,20 @@ async function integrationProbeCommand(agentCodeName, slug) {
6417
6444
  const outcome = await executeConnectivityProbe(target, probeDeps);
6418
6445
  spinner.stop();
6419
6446
  const probedAt = (/* @__PURE__ */ new Date()).toISOString();
6447
+ const siblingKeys = matches.slice(1).map((m) => m.connection_key ?? "(no connection_key)");
6448
+ const scopeNote = probeScopeNote({
6449
+ slug: integ.definition_id,
6450
+ agentCodeName,
6451
+ connectionKey: integ.connection_key ?? null,
6452
+ visibleSiblingKeys: siblingKeys
6453
+ });
6420
6454
  if (outcome === null) {
6421
6455
  const result2 = {
6422
6456
  agent: agentCodeName,
6423
6457
  slug: integ.definition_id,
6458
+ connection_key: integ.connection_key ?? null,
6459
+ sibling_connection_keys: siblingKeys,
6460
+ scope_note: scopeNote,
6424
6461
  status: "not_probeable",
6425
6462
  message: "no connectivity probe is available for this integration kind",
6426
6463
  probed_at: probedAt
@@ -6430,11 +6467,18 @@ async function integrationProbeCommand(agentCodeName, slug) {
6430
6467
  return;
6431
6468
  }
6432
6469
  info(`${integ.definition_id}: not probeable (no probe wired for this integration kind)`);
6470
+ console.log(chalk19.dim(scopeNote.split("\n").map((l) => l ? ` ${l}` : "").join("\n")));
6433
6471
  return;
6434
6472
  }
6435
6473
  const result = {
6436
6474
  agent: agentCodeName,
6437
6475
  slug: integ.definition_id,
6476
+ // ENG-10488: WHICH connection this verdict is about. Absent, a consumer
6477
+ // (the admin-debug tool that shells this over SSM included) cannot tell a
6478
+ // single-connection integration from the first of several.
6479
+ connection_key: integ.connection_key ?? null,
6480
+ sibling_connection_keys: siblingKeys,
6481
+ scope_note: scopeNote,
6438
6482
  status: outcome.status,
6439
6483
  message: outcome.message ?? null,
6440
6484
  probed_at: probedAt
@@ -6448,6 +6492,7 @@ async function integrationProbeCommand(agentCodeName, slug) {
6448
6492
  `${chalk19.bold(integ.definition_id)} on ${chalk19.bold(agentCodeName)}: ${color(outcome.status)}`
6449
6493
  );
6450
6494
  if (outcome.message) console.log(chalk19.dim(` ${outcome.message}`));
6495
+ console.log(chalk19.dim(scopeNote.split("\n").map((l) => l ? ` ${l}` : "").join("\n")));
6451
6496
  } catch (err) {
6452
6497
  spinner.stop();
6453
6498
  handleError(err);
@@ -6682,7 +6727,7 @@ function handleError(err) {
6682
6727
  }
6683
6728
 
6684
6729
  // src/bin/agt.ts
6685
- var cliVersion2 = true ? "0.28.928" : "dev";
6730
+ var cliVersion2 = true ? "0.28.930" : "dev";
6686
6731
  var program = new Command();
6687
6732
  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");
6688
6733
  program.hook("preAction", async (thisCommand, actionCommand) => {