@integrity-labs/agt-cli 0.28.654 → 0.28.655
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-
|
|
43
|
+
} from "../chunk-452C2DZR.js";
|
|
44
44
|
import {
|
|
45
45
|
readDirectChatSessionState
|
|
46
46
|
} from "../chunk-XGTAGSBI.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.
|
|
4912
|
+
var cliVersion = true ? "0.28.655" : "dev";
|
|
4913
4913
|
async function fetchLatestVersion() {
|
|
4914
4914
|
const host2 = getHost();
|
|
4915
4915
|
if (!host2) return null;
|
|
@@ -6089,7 +6089,7 @@ function handleError(err) {
|
|
|
6089
6089
|
}
|
|
6090
6090
|
|
|
6091
6091
|
// src/bin/agt.ts
|
|
6092
|
-
var cliVersion2 = true ? "0.28.
|
|
6092
|
+
var cliVersion2 = true ? "0.28.655" : "dev";
|
|
6093
6093
|
var program = new Command();
|
|
6094
6094
|
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
6095
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -6073,7 +6073,7 @@ function exchangeFailureKind(err) {
|
|
|
6073
6073
|
}
|
|
6074
6074
|
|
|
6075
6075
|
// src/lib/api-client.ts
|
|
6076
|
-
var agtCliVersion = true ? "0.28.
|
|
6076
|
+
var agtCliVersion = true ? "0.28.655" : "dev";
|
|
6077
6077
|
var lastConfigHash = null;
|
|
6078
6078
|
function setConfigHash(hash) {
|
|
6079
6079
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -9815,4 +9815,4 @@ export {
|
|
|
9815
9815
|
managerInstallSystemUnitCommand,
|
|
9816
9816
|
managerUninstallSystemUnitCommand
|
|
9817
9817
|
};
|
|
9818
|
-
//# sourceMappingURL=chunk-
|
|
9818
|
+
//# sourceMappingURL=chunk-452C2DZR.js.map
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
safeWriteJsonAtomic,
|
|
56
56
|
setConfigHash,
|
|
57
57
|
tripClass
|
|
58
|
-
} from "../chunk-
|
|
58
|
+
} from "../chunk-452C2DZR.js";
|
|
59
59
|
import {
|
|
60
60
|
getProjectDir as getProjectDir2,
|
|
61
61
|
getReadyTasks,
|
|
@@ -12252,7 +12252,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
12252
12252
|
var lastVersionCheckAt = 0;
|
|
12253
12253
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
12254
12254
|
var lastResponsivenessProbeAt = 0;
|
|
12255
|
-
var agtCliVersion = true ? "0.28.
|
|
12255
|
+
var agtCliVersion = true ? "0.28.655" : "dev";
|
|
12256
12256
|
function resolveBrewPath(execFileSync3) {
|
|
12257
12257
|
try {
|
|
12258
12258
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -12581,6 +12581,7 @@ function runAsync(cmd, args, opts) {
|
|
|
12581
12581
|
function claudeManagedSettingsPath() {
|
|
12582
12582
|
return process.platform === "darwin" ? "/Library/Application Support/ClaudeCode/managed-settings.json" : "/etc/claude-code/managed-settings.json";
|
|
12583
12583
|
}
|
|
12584
|
+
var MANAGED_SETTINGS_KEYS = ["channelsEnabled", "enableAllProjectMcpServers"];
|
|
12584
12585
|
function ensureClaudeManagedSettings(path = claudeManagedSettingsPath()) {
|
|
12585
12586
|
try {
|
|
12586
12587
|
let settings = {};
|
|
@@ -12599,15 +12600,16 @@ function ensureClaudeManagedSettings(path = claudeManagedSettingsPath()) {
|
|
|
12599
12600
|
}
|
|
12600
12601
|
}
|
|
12601
12602
|
}
|
|
12602
|
-
|
|
12603
|
-
|
|
12603
|
+
const missing = MANAGED_SETTINGS_KEYS.filter((key) => settings[key] !== true);
|
|
12604
|
+
if (missing.length === 0) return "ok";
|
|
12605
|
+
for (const key of missing) settings[key] = true;
|
|
12604
12606
|
mkdirSync11(dirname10(path), { recursive: true });
|
|
12605
12607
|
writeFileSync14(path, `${JSON.stringify(settings, null, 2)}
|
|
12606
12608
|
`);
|
|
12607
|
-
log(`[managed-settings] set
|
|
12609
|
+
log(`[managed-settings] set ${missing.map((k) => `${k}:true`).join(", ")} in ${path} (ENG-5786 unblocks Claude Code channels; ENG-9223 pre-approves project MCP servers so a headless session never freezes on the trust prompt)`);
|
|
12608
12610
|
return "ok";
|
|
12609
12611
|
} catch (err) {
|
|
12610
|
-
log(`[managed-settings] could not ensure ${path}: ${err.message} \u2014 Claude Code channels may be blocked; set
|
|
12612
|
+
log(`[managed-settings] could not ensure ${path}: ${err.message} \u2014 Claude Code channels may be blocked and a new agent may freeze on the MCP trust prompt; set ${MANAGED_SETTINGS_KEYS.map((k) => `${k}:true`).join(" and ")} manually`);
|
|
12611
12613
|
return "write_failed";
|
|
12612
12614
|
}
|
|
12613
12615
|
}
|