@integrity-labs/agt-cli 0.28.1257 → 0.28.1258

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.
@@ -15,7 +15,7 @@ import {
15
15
  mintRotatedHostKey,
16
16
  probeHostKey,
17
17
  setConfigHash
18
- } from "./chunk-HXM2V3VK.js";
18
+ } from "./chunk-DISUKAOD.js";
19
19
  import "./chunk-MXDVYW5G.js";
20
20
  import "./chunk-DGUM43GV.js";
21
21
  export {
@@ -36,4 +36,4 @@ export {
36
36
  probeHostKey,
37
37
  setConfigHash
38
38
  };
39
- //# sourceMappingURL=api-client-6W27Z5SN.js.map
39
+ //# sourceMappingURL=api-client-E5AB7DBB.js.map
package/dist/bin/agt.js CHANGED
@@ -31,7 +31,7 @@ import {
31
31
  success,
32
32
  table,
33
33
  warn
34
- } from "../chunk-W6NQLEKG.js";
34
+ } from "../chunk-W2TGJEF3.js";
35
35
  import {
36
36
  ApiError,
37
37
  PROD_AGT_HOST,
@@ -42,7 +42,7 @@ import {
42
42
  getHost,
43
43
  getHostId,
44
44
  setActiveTeam
45
- } from "../chunk-HXM2V3VK.js";
45
+ } from "../chunk-DISUKAOD.js";
46
46
  import {
47
47
  getProjectDir,
48
48
  isSessionResumeDisabled,
@@ -5207,7 +5207,7 @@ import { execFileSync, execSync } from "child_process";
5207
5207
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
5208
5208
  import chalk17 from "chalk";
5209
5209
  import ora15 from "ora";
5210
- var cliVersion = true ? "0.28.1257" : "dev";
5210
+ var cliVersion = true ? "0.28.1258" : "dev";
5211
5211
  async function fetchLatestVersion() {
5212
5212
  const host2 = getHost();
5213
5213
  if (!host2) return null;
@@ -6467,7 +6467,7 @@ function handleError(err) {
6467
6467
  }
6468
6468
 
6469
6469
  // src/bin/agt.ts
6470
- var cliVersion2 = true ? "0.28.1257" : "dev";
6470
+ var cliVersion2 = true ? "0.28.1258" : "dev";
6471
6471
  var program = new Command();
6472
6472
  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");
6473
6473
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
103
103
  }
104
104
 
105
105
  // src/lib/api-client.ts
106
- var agtCliVersion = true ? "0.28.1257" : "dev";
106
+ var agtCliVersion = true ? "0.28.1258" : "dev";
107
107
  var lastConfigHash = null;
108
108
  function setConfigHash(hash) {
109
109
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -468,4 +468,4 @@ export {
468
468
  api,
469
469
  getHostId
470
470
  };
471
- //# sourceMappingURL=chunk-HXM2V3VK.js.map
471
+ //# sourceMappingURL=chunk-DISUKAOD.js.map
@@ -2,7 +2,7 @@ import {
2
2
  exchangeApiKey,
3
3
  getApiKey,
4
4
  getHost
5
- } from "./chunk-HXM2V3VK.js";
5
+ } from "./chunk-DISUKAOD.js";
6
6
  import {
7
7
  LATE_BOUND_VARS,
8
8
  PLATFORM_DENY_PERMISSIONS,
@@ -2746,15 +2746,17 @@ function isFreshWithin(path, cutoff) {
2746
2746
  }
2747
2747
  return false;
2748
2748
  }
2749
- function syncMcpToProject(codeName) {
2749
+ function syncMcpToProject(codeName, provisionContent) {
2750
2750
  const agentDir = getAgentDir(codeName);
2751
2751
  const projectDir = getProjectDir2(codeName);
2752
2752
  const provisionMcpPath = join5(agentDir, "provision", ".mcp.json");
2753
2753
  const projectMcpPath = join5(projectDir, ".mcp.json");
2754
- let content = null;
2755
- try {
2756
- content = readFileSync5(provisionMcpPath, "utf-8");
2757
- } catch {
2754
+ let content = provisionContent ?? null;
2755
+ if (content === null) {
2756
+ try {
2757
+ content = readFileSync5(provisionMcpPath, "utf-8");
2758
+ } catch {
2759
+ }
2758
2760
  }
2759
2761
  if (content !== null)
2760
2762
  try {
@@ -7816,8 +7818,9 @@ ${sections}`
7816
7818
  },
7817
7819
  syncMcpMirror(codeName) {
7818
7820
  const provisionMcpPath = join5(getAgentDir(codeName), "provision", ".mcp.json");
7821
+ let content;
7819
7822
  try {
7820
- readFileSync5(provisionMcpPath, "utf-8");
7823
+ content = readFileSync5(provisionMcpPath, "utf-8");
7821
7824
  } catch (err) {
7822
7825
  const missing = err.code === "ENOENT";
7823
7826
  if (!missing || existsSync4(join5(getProjectDir2(codeName), ".mcp.json"))) {
@@ -7827,7 +7830,7 @@ ${sections}`
7827
7830
  }
7828
7831
  return;
7829
7832
  }
7830
- syncMcpToProject(codeName);
7833
+ syncMcpToProject(codeName, content);
7831
7834
  },
7832
7835
  consumeMcpWriteFailures(codeName) {
7833
7836
  const n = mcpWriteFailures.get(codeName) ?? 0;
@@ -13534,4 +13537,4 @@ export {
13534
13537
  managerInstallSystemUnitCommand,
13535
13538
  managerUninstallSystemUnitCommand
13536
13539
  };
13537
- //# sourceMappingURL=chunk-W6NQLEKG.js.map
13540
+ //# sourceMappingURL=chunk-W2TGJEF3.js.map