mercury-agent 0.4.14 → 0.4.16
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/package.json +1 -1
- package/src/config-file.ts +1 -0
- package/src/config.ts +1 -1
package/package.json
CHANGED
package/src/config-file.ts
CHANGED
|
@@ -364,6 +364,7 @@ export function mergeRawMercuryConfig(
|
|
|
364
364
|
const msg = e instanceof Error ? e.message : String(e);
|
|
365
365
|
throw new Error(`Failed to read mercury config ${configPath}: ${msg}`);
|
|
366
366
|
}
|
|
367
|
+
if (rawYaml == null) rawYaml = {};
|
|
367
368
|
const parsed = mercuryFileSchema.safeParse(rawYaml);
|
|
368
369
|
if (!parsed.success) {
|
|
369
370
|
const issues = parsed.error.issues
|
package/src/config.ts
CHANGED
|
@@ -83,7 +83,7 @@ const schema = z.object({
|
|
|
83
83
|
modelCapabilitiesEnv: z.string().optional(),
|
|
84
84
|
|
|
85
85
|
// ─── Trigger Behavior ───────────────────────────────────────────────
|
|
86
|
-
triggerPatterns: z.string().default("@
|
|
86
|
+
triggerPatterns: z.string().default("@Mercury,Mercury"),
|
|
87
87
|
triggerMatch: z.string().default("mention"),
|
|
88
88
|
|
|
89
89
|
// ─── Context Behavior ───────────────────────────────────────────────
|