chati-dev 3.1.0 → 3.1.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/package.json
CHANGED
|
@@ -136,9 +136,10 @@ function buildReplacementConfig(provider) {
|
|
|
136
136
|
{ pattern: /(\|\s*)haiku(\s*\|)/g, replacement: `$1${minimal}$2` },
|
|
137
137
|
|
|
138
138
|
// Upgrade/downgrade conditions in prose: "sonnet if ...", "opus if ..."
|
|
139
|
-
|
|
140
|
-
{ pattern: /
|
|
141
|
-
{ pattern: /
|
|
139
|
+
// Negative lookbehind prevents double-prefix when deep model contains a tier name (e.g. claude-sonnet)
|
|
140
|
+
{ pattern: /(?<!-)opus if /g, replacement: `${deep} if ` },
|
|
141
|
+
{ pattern: /(?<!-)sonnet if /g, replacement: `${light} if ` },
|
|
142
|
+
{ pattern: /(?<!-)haiku if /g, replacement: `${minimal} if ` },
|
|
142
143
|
|
|
143
144
|
// Constitution/governance model tier definitions
|
|
144
145
|
{ pattern: /\*\*opus\*\*:/g, replacement: `**${deep}**:` },
|