indiecrm-cli 0.2.3 → 0.2.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.4
4
+
5
+ - Skip case-only duplicate company search variants during Sales Navigator identity resolution, reducing repeated paginated requests while retaining punctuation and accent variants.
6
+
3
7
  ## 0.2.3
4
8
 
5
9
  - Add an IndieCRM Chrome companion that runs Sales Navigator research in an already signed-in tab through the local CLI relay, without copying browser cookies or asking for a second password.
@@ -14,7 +14,14 @@ export function companyIdentityKey(name) {
14
14
  export function companyQueryVariants(name) {
15
15
  const plain = name.replace(/\s*\([^)]*\)\s*/g, " ").trim();
16
16
  const primary = plain.split(/\s+\/\s+/)[0].trim();
17
- return [...new Set([name, plain, primary, companyIdentityKey(primary)].filter(Boolean))].slice(0, 3);
17
+ const seen = new Set();
18
+ return [name, plain, primary, companyIdentityKey(primary)].filter(query => {
19
+ const key = query.toLowerCase();
20
+ if (!query || seen.has(key))
21
+ return false;
22
+ seen.add(key);
23
+ return true;
24
+ }).slice(0, 3);
18
25
  }
19
26
  export async function resolveCompanyIdentity(name, search, details) {
20
27
  const diagnostic = { reason: "no_exact_match", attempts: [], candidates: [], observedAt: new Date().toISOString() };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indiecrm-cli",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "IndieCRM CLI for CRM workspaces and Salesprompter research workflows",
5
5
  "author": "Daniel Sinewe <hello@danielsinewe.com>",
6
6
  "type": "module",