@integrity-labs/agt-cli 0.28.1050 → 0.28.1052

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-GQYD3ESJ.js";
43
+ } from "../chunk-3E63PEXT.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-FNUTMHWV.js";
48
+ } from "../chunk-4ZH75WMF.js";
49
49
  import {
50
50
  AnchorSessionClient,
51
51
  CHANNEL_REGISTRY,
@@ -5474,7 +5474,7 @@ import { execFileSync, execSync } from "child_process";
5474
5474
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5475
5475
  import chalk18 from "chalk";
5476
5476
  import ora16 from "ora";
5477
- var cliVersion = true ? "0.28.1050" : "dev";
5477
+ var cliVersion = true ? "0.28.1052" : "dev";
5478
5478
  async function fetchLatestVersion() {
5479
5479
  const host2 = getHost();
5480
5480
  if (!host2) return null;
@@ -6734,7 +6734,7 @@ function handleError(err) {
6734
6734
  }
6735
6735
 
6736
6736
  // src/bin/agt.ts
6737
- var cliVersion2 = true ? "0.28.1050" : "dev";
6737
+ var cliVersion2 = true ? "0.28.1052" : "dev";
6738
6738
  var program = new Command();
6739
6739
  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");
6740
6740
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -16,7 +16,7 @@ import {
16
16
  parseEnvFileEntries,
17
17
  parseEnvIntegrations,
18
18
  shellQuote
19
- } from "./chunk-FNUTMHWV.js";
19
+ } from "./chunk-4ZH75WMF.js";
20
20
  import {
21
21
  BIND_FAILURE_QUARANTINE_THRESHOLD,
22
22
  INTEGRATIONS_SECTION_END,
@@ -7122,7 +7122,7 @@ function exchangeFailureKind(err) {
7122
7122
  }
7123
7123
 
7124
7124
  // src/lib/api-client.ts
7125
- var agtCliVersion = true ? "0.28.1050" : "dev";
7125
+ var agtCliVersion = true ? "0.28.1052" : "dev";
7126
7126
  var lastConfigHash = null;
7127
7127
  function setConfigHash(hash) {
7128
7128
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -12079,4 +12079,4 @@ export {
12079
12079
  managerInstallSystemUnitCommand,
12080
12080
  managerUninstallSystemUnitCommand
12081
12081
  };
12082
- //# sourceMappingURL=chunk-GQYD3ESJ.js.map
12082
+ //# sourceMappingURL=chunk-3E63PEXT.js.map
@@ -7,6 +7,7 @@ import {
7
7
  claudeModelAlias,
8
8
  containerMemoryForAgentClass,
9
9
  encodeClaudeProjectPath,
10
+ extractFrontmatter,
10
11
  getOrCreateDailySession,
11
12
  isAutoTier,
12
13
  isClaudeFastMode,
@@ -349,6 +350,27 @@ function buildAllowedTools(mcpServerNames, policy) {
349
350
  const builtins = BASE_TOOLS.filter((t) => !removable.has(t));
350
351
  return [...mcpWildcardsForServers(mcpServerNames), ...builtins].join(",");
351
352
  }
353
+ function webFetchDisallowedByNetworkPolicy(toolsFrontmatter) {
354
+ return toolsFrontmatter?.global_controls?.default_network_policy !== "allow";
355
+ }
356
+ function webFetchDenyFlags(denyWebFetch) {
357
+ return denyWebFetch === true ? ["--disallowedTools", "WebFetch"] : [];
358
+ }
359
+ function denyWebFetchForToolsContent(raw) {
360
+ const frontmatter = raw ? extractFrontmatter(raw).frontmatter : null;
361
+ return webFetchDisallowedByNetworkPolicy(frontmatter);
362
+ }
363
+ function webFetchRestartNeeded(prev, current) {
364
+ return prev !== current;
365
+ }
366
+ function webFetchBaselineValue(denyWebFetch) {
367
+ return denyWebFetch ? "deny" : "allow";
368
+ }
369
+ function resolveWebFetchBaseline(inMemory, persisted) {
370
+ if (inMemory !== void 0) return inMemory;
371
+ if (persisted === "deny") return true;
372
+ return false;
373
+ }
352
374
 
353
375
  // src/lib/mcp-env-probe.ts
354
376
  import { existsSync, readFileSync as readFileSync2 } from "fs";
@@ -4913,6 +4935,7 @@ function spawnSession(config, session) {
4913
4935
  args.push("--allowedTools", buildAllowedTools(mcpServerNames, config.toolPolicy));
4914
4936
  const builtinTools = builtinToolsForPolicy(config.toolPolicy);
4915
4937
  if (builtinTools !== null) args.push("--tools", builtinTools);
4938
+ args.push(...webFetchDenyFlags(config.denyWebFetch));
4916
4939
  const initPrompt = resuming ? "" : 'You are now online. Say "Ready." and wait for incoming messages. Do not run any tools or load any data until a message arrives.';
4917
4940
  const claudeBin = resolveClaudeBinary();
4918
4941
  const claudeArgsJoined = args.map((a) => a.includes(" ") || a.includes("*") ? JSON.stringify(a) : a).join(" ");
@@ -5882,6 +5905,10 @@ export {
5882
5905
  resolveContainerMemory,
5883
5906
  seedContainerMemory,
5884
5907
  syncContainerMemory,
5908
+ denyWebFetchForToolsContent,
5909
+ webFetchRestartNeeded,
5910
+ webFetchBaselineValue,
5911
+ resolveWebFetchBaseline,
5885
5912
  agentRuntimeKey,
5886
5913
  log,
5887
5914
  sha256,
@@ -5984,4 +6011,4 @@ export {
5984
6011
  stopAllSessionsAndWait,
5985
6012
  getProjectDir
5986
6013
  };
5987
- //# sourceMappingURL=chunk-FNUTMHWV.js.map
6014
+ //# sourceMappingURL=chunk-4ZH75WMF.js.map