@mnemonik/shared 7.132.0 → 7.134.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ambientPointer.d.ts","sourceRoot":"","sources":["../src/ambientPointer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ambientPointer.d.ts","sourceRoot":"","sources":["../src/ambientPointer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAY1C,wFAAwF;AACxF,eAAO,MAAM,2BAA2B,QAEnB,CAAC;AAEtB,wBAAgB,uBAAuB,CAAC,KAAK,SAAM,GAAG,MAAM,CAE3D"}
|
package/dist/ambientPointer.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
export const AMBIENT_ID_PREFIX_LENGTH = 8;
|
|
2
2
|
const MEMORY_UUID_SOURCE = '[0-9A-Fa-f]{8}-(?:[0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}';
|
|
3
3
|
const LEGACY_MEMORY_ID_SOURCE = `[0-9A-Za-z_-]{${AMBIENT_ID_PREFIX_LENGTH}}`;
|
|
4
|
+
/**
|
|
5
|
+
* Words the memory-voice wording arm places between the dash and `memory_get`
|
|
6
|
+
* ("to recall it in full:"). Optional, so the production pointer form parses
|
|
7
|
+
* exactly as before.
|
|
8
|
+
*/
|
|
9
|
+
const FIRST_PERSON_POINTER_LEAD_SOURCE = '(?:to recall it in full:\\s*)?';
|
|
4
10
|
/** Current full UUID pointers plus cached eight-character pointers from older hooks. */
|
|
5
|
-
export const AMBIENT_ITEM_POINTER_SOURCE = `\\u2014\\s
|
|
11
|
+
export const AMBIENT_ITEM_POINTER_SOURCE = `\\u2014\\s*${FIRST_PERSON_POINTER_LEAD_SOURCE}memory_get\\s+(${MEMORY_UUID_SOURCE}|${LEGACY_MEMORY_ID_SOURCE})` +
|
|
6
12
|
'(?![0-9A-Za-z_-])';
|
|
7
13
|
export function ambientItemPointerRegex(flags = 'g') {
|
|
8
14
|
return new RegExp(AMBIENT_ITEM_POINTER_SOURCE, flags);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ambientPointer.js","sourceRoot":"","sources":["../src/ambientPointer.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC;AAE1C,MAAM,kBAAkB,GAAG,sDAAsD,CAAC;AAClF,MAAM,uBAAuB,GAAG,iBAAiB,wBAAwB,GAAG,CAAC;AAE7E,wFAAwF;AACxF,MAAM,CAAC,MAAM,2BAA2B,GACtC,
|
|
1
|
+
{"version":3,"file":"ambientPointer.js","sourceRoot":"","sources":["../src/ambientPointer.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC;AAE1C,MAAM,kBAAkB,GAAG,sDAAsD,CAAC;AAClF,MAAM,uBAAuB,GAAG,iBAAiB,wBAAwB,GAAG,CAAC;AAE7E;;;;GAIG;AACH,MAAM,gCAAgC,GAAG,gCAAgC,CAAC;AAE1E,wFAAwF;AACxF,MAAM,CAAC,MAAM,2BAA2B,GACtC,cAAc,gCAAgC,kBAAkB,kBAAkB,IAAI,uBAAuB,GAAG;IAChH,mBAAmB,CAAC;AAEtB,MAAM,UAAU,uBAAuB,CAAC,KAAK,GAAG,GAAG;IACjD,OAAO,IAAI,MAAM,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC"}
|
package/package.json
CHANGED
package/src/ambientPointer.ts
CHANGED
|
@@ -3,9 +3,16 @@ export const AMBIENT_ID_PREFIX_LENGTH = 8;
|
|
|
3
3
|
const MEMORY_UUID_SOURCE = '[0-9A-Fa-f]{8}-(?:[0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}';
|
|
4
4
|
const LEGACY_MEMORY_ID_SOURCE = `[0-9A-Za-z_-]{${AMBIENT_ID_PREFIX_LENGTH}}`;
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Words the memory-voice wording arm places between the dash and `memory_get`
|
|
8
|
+
* ("to recall it in full:"). Optional, so the production pointer form parses
|
|
9
|
+
* exactly as before.
|
|
10
|
+
*/
|
|
11
|
+
const FIRST_PERSON_POINTER_LEAD_SOURCE = '(?:to recall it in full:\\s*)?';
|
|
12
|
+
|
|
6
13
|
/** Current full UUID pointers plus cached eight-character pointers from older hooks. */
|
|
7
14
|
export const AMBIENT_ITEM_POINTER_SOURCE =
|
|
8
|
-
`\\u2014\\s
|
|
15
|
+
`\\u2014\\s*${FIRST_PERSON_POINTER_LEAD_SOURCE}memory_get\\s+(${MEMORY_UUID_SOURCE}|${LEGACY_MEMORY_ID_SOURCE})` +
|
|
9
16
|
'(?![0-9A-Za-z_-])';
|
|
10
17
|
|
|
11
18
|
export function ambientItemPointerRegex(flags = 'g'): RegExp {
|