@integrity-labs/agt-cli 0.28.712 → 0.28.714

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,7 +40,7 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-4OXDKMGC.js";
43
+ } from "../chunk-FBYIO3Z6.js";
44
44
  import {
45
45
  readDirectChatSessionState
46
46
  } from "../chunk-F6AZ6KPI.js";
@@ -4909,7 +4909,7 @@ import { execFileSync, execSync } from "child_process";
4909
4909
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4910
4910
  import chalk18 from "chalk";
4911
4911
  import ora16 from "ora";
4912
- var cliVersion = true ? "0.28.712" : "dev";
4912
+ var cliVersion = true ? "0.28.714" : "dev";
4913
4913
  async function fetchLatestVersion() {
4914
4914
  const host2 = getHost();
4915
4915
  if (!host2) return null;
@@ -5767,6 +5767,32 @@ ${integration2.name}`), chalk19.dim(`(${integration2.slug})`));
5767
5767
  handleError(err);
5768
5768
  }
5769
5769
  }
5770
+ function buildForcedProbeTarget(row, ctx) {
5771
+ return {
5772
+ definitionId: row.definition_id,
5773
+ sourceType: ctx.sourceType,
5774
+ authType: ctx.authType,
5775
+ credentials: row.credentials ?? {},
5776
+ mcpServerKey: deriveMcpServerKey({
5777
+ definitionId: row.definition_id,
5778
+ sourceType: ctx.sourceType,
5779
+ authType: ctx.authType,
5780
+ connectivityTest: ctx.connectivityTest,
5781
+ // ENG-7543: probe this connection's own server (find() picks the first
5782
+ // connection for the slug; default fleet is single-connection = 'default').
5783
+ connectionKey: row.connection_key ?? null,
5784
+ remoteMcpUrl: ctx.remoteMcpUrl
5785
+ }),
5786
+ connectivityTest: ctx.connectivityTest,
5787
+ remoteMcpUrl: ctx.remoteMcpUrl,
5788
+ // ENG-5463: see the note on `cli_binary` in HostAgentIntegrationRow.
5789
+ cliBinary: row.cli_binary ?? void 0,
5790
+ // ENG-9588: the two fields the scheduled lane has always set and this one
5791
+ // never did. See the note on `created_at` in HostAgentIntegrationRow.
5792
+ createdAt: row.created_at ?? null,
5793
+ expectedAbsent: false
5794
+ };
5795
+ }
5770
5796
  async function integrationProbeCommand(agentCodeName, slug) {
5771
5797
  const json = isJsonMode();
5772
5798
  const spinner = ora17({ text: `Probing ${slug} on ${agentCodeName}\u2026`, isSilent: json }).start();
@@ -5801,26 +5827,7 @@ async function integrationProbeCommand(agentCodeName, slug) {
5801
5827
  const authType = integ.auth_type;
5802
5828
  const connectivityTest = integ.connectivity_test ?? null;
5803
5829
  const remoteMcpUrl = integ.remote_mcp?.url ?? null;
5804
- const target = {
5805
- definitionId: integ.definition_id,
5806
- sourceType,
5807
- authType,
5808
- credentials: integ.credentials ?? {},
5809
- mcpServerKey: deriveMcpServerKey({
5810
- definitionId: integ.definition_id,
5811
- sourceType,
5812
- authType,
5813
- connectivityTest,
5814
- // ENG-7543: probe this connection's own server (find() picks the first
5815
- // connection for the slug; default fleet is single-connection = 'default').
5816
- connectionKey: integ.connection_key ?? null,
5817
- remoteMcpUrl
5818
- }),
5819
- connectivityTest,
5820
- remoteMcpUrl,
5821
- // ENG-5463: see the note on `cli_binary` in HostAgentIntegrationRow.
5822
- cliBinary: integ.cli_binary ?? void 0
5823
- };
5830
+ const target = buildForcedProbeTarget(integ, { sourceType, authType, connectivityTest, remoteMcpUrl });
5824
5831
  const outcome = await executeConnectivityProbe(target, probeDeps);
5825
5832
  spinner.stop();
5826
5833
  const probedAt = (/* @__PURE__ */ new Date()).toISOString();
@@ -6089,7 +6096,7 @@ function handleError(err) {
6089
6096
  }
6090
6097
 
6091
6098
  // src/bin/agt.ts
6092
- var cliVersion2 = true ? "0.28.712" : "dev";
6099
+ var cliVersion2 = true ? "0.28.714" : "dev";
6093
6100
  var program = new Command();
6094
6101
  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");
6095
6102
  program.hook("preAction", async (thisCommand, actionCommand) => {