hebbian 0.5.2 → 0.5.3
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/hebbian.js +8 -4
- package/dist/bin/hebbian.js.map +1 -1
- package/dist/digest.d.ts.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/digest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"digest.d.ts","sourceRoot":"","sources":["../src/digest.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,YAAY;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;IACtC,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB;
|
|
1
|
+
{"version":3,"file":"digest.d.ts","sourceRoot":"","sources":["../src/digest.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,YAAY;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;IACtC,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB;AAyDD;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAYjG;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,CAsD5G;AA6CD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,mBAAmB,EAAE,CAiC5E"}
|
package/dist/index.js
CHANGED
|
@@ -1694,12 +1694,15 @@ var NEGATION_PATTERNS = [
|
|
|
1694
1694
|
/^no[,.\s!]/i,
|
|
1695
1695
|
/\bdon[''\u2019]?t\s+use\b/i,
|
|
1696
1696
|
/\bavoid\b/i,
|
|
1697
|
-
// Korean negation
|
|
1697
|
+
// Korean negation — specific verb forms only to avoid matching incidental 않/대신 in explanations
|
|
1698
1698
|
/하지\s*마/,
|
|
1699
1699
|
/안\s*돼/,
|
|
1700
|
-
/대신/,
|
|
1701
1700
|
/쓰지\s*마/,
|
|
1702
|
-
|
|
1701
|
+
/[가-힣]+지\s*마/,
|
|
1702
|
+
/하지\s*않/,
|
|
1703
|
+
// "do not" specifically
|
|
1704
|
+
/쓰지\s*않/
|
|
1705
|
+
// "do not use" specifically
|
|
1703
1706
|
];
|
|
1704
1707
|
var AFFIRMATION_PATTERNS = [
|
|
1705
1708
|
/\balways\b/i,
|
|
@@ -1810,6 +1813,7 @@ function extractCorrections(messages) {
|
|
|
1810
1813
|
if (text.trim().endsWith("?")) continue;
|
|
1811
1814
|
if (/^<[a-zA-Z]/.test(text.trim())) continue;
|
|
1812
1815
|
if (/^Base directory for this skill:/i.test(text.trim())) continue;
|
|
1816
|
+
if (/^[•·▸▶\-\*]\s/.test(text.trim())) continue;
|
|
1813
1817
|
const correction = detectCorrection(text);
|
|
1814
1818
|
if (correction) {
|
|
1815
1819
|
corrections.push(correction);
|