@geometra/mcp 1.59.1 → 1.61.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 +0,0 @@
1
- export {};
@@ -1,52 +0,0 @@
1
- import { describe, expect, it } from 'vitest';
2
- import { valuesEquivalent } from '../server.js';
3
- describe('valuesEquivalent', () => {
4
- describe('plain strings', () => {
5
- it('matches identical strings case-insensitively', () => {
6
- expect(valuesEquivalent('Charlie', 'charlie')).toBe(true);
7
- });
8
- it('matches with whitespace collapse', () => {
9
- expect(valuesEquivalent('Charlie Greenman', 'Charlie Greenman')).toBe(true);
10
- });
11
- it('rejects unrelated strings', () => {
12
- expect(valuesEquivalent('Charlie', 'Alice')).toBe(false);
13
- });
14
- });
15
- describe('phone numbers', () => {
16
- it('matches identical phone signatures', () => {
17
- expect(valuesEquivalent('9296081737', '9296081737')).toBe(true);
18
- });
19
- // Bug surfaced by JobForge round-2 marathon — Cloudflare FDE NYC #312.
20
- // Greenhouse formats `+1-929-608-1737` → `(929) 608-1737`. The expected
21
- // side carries the country code; the actual readback drops it. The
22
- // strict-equality digit comparison previously rejected this as a
23
- // mismatch even though the underlying value is correct.
24
- it('matches phone numbers when expected has country code and actual does not', () => {
25
- expect(valuesEquivalent('+1-929-608-1737', '(929) 608-1737')).toBe(true);
26
- });
27
- it('matches phone numbers when actual has country code and expected does not', () => {
28
- expect(valuesEquivalent('(929) 608-1737', '+1-929-608-1737')).toBe(true);
29
- });
30
- it('matches across many ATS auto-format variants', () => {
31
- const expected = '+19296081737';
32
- expect(valuesEquivalent(expected, '(929) 608-1737')).toBe(true);
33
- expect(valuesEquivalent(expected, '929-608-1737')).toBe(true);
34
- expect(valuesEquivalent(expected, '929.608.1737')).toBe(true);
35
- expect(valuesEquivalent(expected, '929 608 1737')).toBe(true);
36
- expect(valuesEquivalent(expected, '+1 (929) 608-1737')).toBe(true);
37
- });
38
- it('rejects two phone numbers that differ in the local 10 digits', () => {
39
- expect(valuesEquivalent('+1-929-608-1737', '(415) 555-0123')).toBe(false);
40
- });
41
- it('rejects suffix-match below the 7-digit local minimum', () => {
42
- // Pure 6-digit IDs must not match against a longer phone signature
43
- // even if the IDs happen to be a digit-suffix.
44
- expect(valuesEquivalent('19296081737', '081737')).toBe(false);
45
- });
46
- });
47
- describe('formatted numbers', () => {
48
- it('matches a salary across comma formatting', () => {
49
- expect(valuesEquivalent('$160000', '$160,000')).toBe(true);
50
- });
51
- });
52
- });