auq-mcp-server 2.7.0 → 2.7.1
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/package.json
CHANGED
|
@@ -133,13 +133,13 @@ describe("ConfigLoader", () => {
|
|
|
133
133
|
});
|
|
134
134
|
});
|
|
135
135
|
describe("renderer config options", () => {
|
|
136
|
-
it("should have '
|
|
136
|
+
it("should have 'opentui' as default renderer when no config files exist", () => {
|
|
137
137
|
vi.mocked(fs.existsSync).mockReturnValue(false);
|
|
138
138
|
const config = loadConfig();
|
|
139
|
-
expect(config.renderer).toBe("
|
|
139
|
+
expect(config.renderer).toBe("opentui");
|
|
140
140
|
});
|
|
141
|
-
it("should include renderer in DEFAULT_CONFIG as '
|
|
142
|
-
expect(DEFAULT_CONFIG.renderer).toBe("
|
|
141
|
+
it("should include renderer in DEFAULT_CONFIG as 'opentui'", () => {
|
|
142
|
+
expect(DEFAULT_CONFIG.renderer).toBe("opentui");
|
|
143
143
|
});
|
|
144
144
|
it("should load renderer: 'opentui' from config file", () => {
|
|
145
145
|
vi.mocked(fs.existsSync).mockReturnValue(true);
|
|
@@ -153,13 +153,13 @@ describe("ConfigLoader", () => {
|
|
|
153
153
|
const config = loadConfig();
|
|
154
154
|
expect(config.renderer).toBe("ink");
|
|
155
155
|
});
|
|
156
|
-
it("should fall back to '
|
|
156
|
+
it("should fall back to 'opentui' for invalid renderer value", () => {
|
|
157
157
|
vi.mocked(fs.existsSync).mockReturnValue(true);
|
|
158
158
|
vi.mocked(fs.readFileSync).mockReturnValue(JSON.stringify({ renderer: "chrome" }));
|
|
159
159
|
const config = loadConfig();
|
|
160
|
-
// Invalid enum value should be ignored, default ('
|
|
160
|
+
// Invalid enum value should be ignored, default ('opentui') used
|
|
161
161
|
expect(config.renderer).toBe(DEFAULT_CONFIG.renderer);
|
|
162
|
-
expect(config.renderer).toBe("
|
|
162
|
+
expect(config.renderer).toBe("opentui");
|
|
163
163
|
});
|
|
164
164
|
it("should preserve other config values alongside renderer setting", () => {
|
|
165
165
|
vi.mocked(fs.existsSync).mockReturnValue(true);
|
package/dist/src/config/types.js
CHANGED
|
@@ -21,7 +21,7 @@ export const AUQConfigSchema = z.object({
|
|
|
21
21
|
language: z.string().default("auto"),
|
|
22
22
|
theme: z.string().default("system"),
|
|
23
23
|
autoSelectRecommended: z.boolean().default(true),
|
|
24
|
-
renderer: z.enum(["ink", "opentui"]).default("
|
|
24
|
+
renderer: z.enum(["ink", "opentui"]).default("opentui"),
|
|
25
25
|
// Stale/Orphan Session Detection
|
|
26
26
|
staleThreshold: z.number().min(0).default(7200000), // 2 hours in ms
|
|
27
27
|
notifyOnStale: z.boolean().default(true),
|