axconfig 3.4.1 → 3.4.2

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.
@@ -6,11 +6,3 @@
6
6
  * Throws if file exists but contains invalid JSON to prevent data loss.
7
7
  */
8
8
  export declare function readExistingSettings(settingsPath: string): Record<string, unknown>;
9
- /**
10
- * Disable Gemini's environment variable redaction for CI compatibility.
11
- *
12
- * Gemini CLI sanitizes environment variables in GitHub Actions, which blocks
13
- * access to REAL_HOME, GH_TOKEN, and other vars needed for shell commands.
14
- * Disabling redaction allows all parent env vars to pass through.
15
- */
16
- export declare function disableEnvironmentVariableRedaction(existingSettings: Record<string, unknown>): Record<string, unknown>;
@@ -19,22 +19,3 @@ export function readExistingSettings(settingsPath) {
19
19
  throw new Error(`Failed to parse existing settings at ${settingsPath}: ${message}`);
20
20
  }
21
21
  }
22
- /**
23
- * Disable Gemini's environment variable redaction for CI compatibility.
24
- *
25
- * Gemini CLI sanitizes environment variables in GitHub Actions, which blocks
26
- * access to REAL_HOME, GH_TOKEN, and other vars needed for shell commands.
27
- * Disabling redaction allows all parent env vars to pass through.
28
- */
29
- export function disableEnvironmentVariableRedaction(existingSettings) {
30
- const existingSecurity = existingSettings.security ?? {};
31
- return {
32
- ...existingSettings,
33
- security: {
34
- ...existingSecurity,
35
- environmentVariableRedaction: {
36
- enabled: false,
37
- },
38
- },
39
- };
40
- }
@@ -14,7 +14,7 @@ import { atomicWriteFileSync } from "../atomic-write.js";
14
14
  import { registerConfigBuilder } from "../builder.js";
15
15
  // Re-export reader
16
16
  export { geminiConfigReader } from "./gemini-reader.js";
17
- import { disableEnvironmentVariableRedaction, readExistingSettings, } from "./gemini-settings.js";
17
+ import { readExistingSettings } from "./gemini-settings.js";
18
18
  /** Gemini CLI tool name mapping */
19
19
  const TOOL_MAP = {
20
20
  read: "read_file",
@@ -138,11 +138,10 @@ function build(config, output) {
138
138
  const policyPath = path.join(policiesDirectory, "axconfig.toml");
139
139
  const policyContent = rules.filter((r) => r !== "").join("\n\n");
140
140
  atomicWriteFileSync(policyPath, policyContent || "# No rules\n");
141
- // Write settings.json, preserving existing settings and disabling env var redaction
141
+ // Write settings.json, preserving existing settings (e.g., model)
142
142
  const settingsPath = path.join(output, "settings.json");
143
143
  const existingSettings = readExistingSettings(settingsPath);
144
- const mergedSettings = disableEnvironmentVariableRedaction(existingSettings);
145
- atomicWriteFileSync(settingsPath, JSON.stringify(mergedSettings, undefined, 2));
144
+ atomicWriteFileSync(settingsPath, JSON.stringify(existingSettings, undefined, 2));
146
145
  return {
147
146
  ok: true,
148
147
  env: { GEMINI_DIR: output },
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "axconfig",
3
3
  "author": "Łukasz Jerciński",
4
4
  "license": "MIT",
5
- "version": "3.4.1",
5
+ "version": "3.4.2",
6
6
  "description": "Unified configuration management for AI coding agents - common API for permissions, settings, and config across Claude Code, Codex, Gemini CLI, and OpenCode",
7
7
  "repository": {
8
8
  "type": "git",
@@ -68,7 +68,7 @@
68
68
  "dependencies": {
69
69
  "@commander-js/extra-typings": "^14.0.0",
70
70
  "@iarna/toml": "^2.2.5",
71
- "axshared": "^1.7.0",
71
+ "axshared": "^1.7.1",
72
72
  "commander": "^14.0.2"
73
73
  },
74
74
  "devDependencies": {