@xapp/arachne-web-service 1.21.0 → 1.22.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.
package/lib/contants.js CHANGED
@@ -99,6 +99,10 @@ exports.DEFAULT_DETECTORS = [
99
99
  arachne_parsers_1.SalonBizDetector,
100
100
  arachne_parsers_1.StyleSeatDetector,
101
101
  arachne_parsers_1.ZenotiDetector,
102
+ // Movers
103
+ arachne_parsers_1.ChariotDetector,
104
+ arachne_parsers_1.ElromcoDetector,
105
+ arachne_parsers_1.SmartMovingDetector,
102
106
  // Chat
103
107
  arachne_parsers_1.AutoBotAIDetector,
104
108
  arachne_parsers_1.ApexChatDetector,
@@ -1 +1 @@
1
- {"version":3,"file":"contants.js","sourceRoot":"","sources":["../src/contants.ts"],"names":[],"mappings":";;;;;;;;;;;;AA6FA,4CAEC;AAaD,4CAwCC;AApJD,kCAAkC;AAClC,2DAoF+B;AAC/B,mDAAqC;AAMrC,qFAAqF;AACrF,SAAgB,gBAAgB,CAAC,KAAwC;IACrE,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,yBAAiB,CAAC;AAC5D,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAsB,gBAAgB,CAClC,SAAgC,EAChC,IAAY,EACZ,IAAe,EACf,SAA8C;;QAE9C,6BAA6B;QAC7B,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;YAC/B,IAAI,CAAC;gBACD,IAAI,OAAO,CAAC,GAAG,CAAC,eAAe,KAAK,MAAM,EAAE,CAAC;oBACzC,IAAA,oBAAG,GAAE,CAAC,IAAI,CAAC,oBAAoB,QAAQ,CAAC,IAAI,KAAK,CAAC,CAAC;gBACvD,CAAC;gBACD,oCAAoC;gBACpC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;gBACzB,MAAM,cAAc,GAAG,MAAM,IAAI,QAAQ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b,gCAAc;IACd,gCAAc;IACd,cAAc;IACd,uCAAqB;IACrB,uCAAqB;IACrB,gCAAc;IACd,qCAAmB;IACnB,8BAAY;IACZ,mCAAiB;IACjB,+BAAa;IACb,oCAAkB;IAClB,iCAAe;IACf,kCAAgB;IAChB,mCAAiB;IACjB,gCAAc;IACd,SAAS;IACT,iCAAe;IACf,iCAAe;IACf,qCAAmB;IACnB,OAAO;IACP,mCAAiB;IACjB,kCAAgB;IAChB,iCAAe;IACf,kCAAgB;IAChB,oCAAkB;IAClB,iCAAe;IACf,kCAAgB;IAChB,+BAAa;IACb,mCAAiB;IACjB,iCAAe;IACf,kCAAgB;IAChB,kCAAgB;IAChB,uCAAqB;IACrB,qCAAmB;IACnB,mCAAiB;IACjB,gCAAc;IACd,2CAAyB;IACzB,+BAAa;IACb,gCAAc;IACd,kCAAgB;IAChB,kCAAgB;IAChB,sBAAsB;IACtB,gCAAc;IACd,iCAAe;IACf,MAAM;IACN,gCAAc;IACd,8BAAY;IACZ,gCAAc;IACd,iCAAe;IACf,wCAAsB;IACtB,gCAAc;IACd,gCAAc;IACd,sCAAoB;IACpB,qCAAmB;IACnB,iCAAe;IACf,6BAAW;IACX,mCAAiB;IACjB,WAAW;IACX,gCAAc;IACd,mCAAiB;IACjB,cAAc;IACd,iFAAiF;IACjF,iCAAe;IACf,mCAAiB;IACjB,0CAAwB;IACxB,yCAAuB;IACvB,qCAAmB;IACnB,qCAAmB;IACnB,cAAc;IACd,qCAAmB;IACnB,QAAQ;IACR,iCAAe;IACf,yCAAuB;IACvB,mCAAiB;IACjB,8BAAY;CACf,CAAC"}
package/lib/models.d.ts CHANGED
@@ -122,7 +122,14 @@ export interface BusinessLicense {
122
122
  */
123
123
  fullText?: string;
124
124
  }
125
- export type BusinessCategory = "business-coaching" | "consulting" | "contact-capture" | "financial-services" | "home-services-cleaning" | "home-services-contractors" | "home-services-outdoor" | "insurance" | "legal-services" | "life-coaching" | "radio" | "real-estate" | "technology-services" | "travel";
125
+ /**
126
+ * Every category a business can be put in.
127
+ *
128
+ * These values are stored downstream (prospector keeps them as `websiteCategory`) so an existing
129
+ * value is never renamed or removed, only added to.
130
+ */
131
+ export declare const BUSINESS_CATEGORIES: readonly ["business-coaching", "consulting", "contact-capture", "financial-services", "home-services-cleaning", "home-services-contractors", "home-services-outdoor", "insurance", "legal-services", "life-coaching", "medical-spa", "moving-services", "pest-control", "property-management", "radio", "real-estate", "salon-spa", "technology-services", "travel"];
132
+ export type BusinessCategory = (typeof BUSINESS_CATEGORIES)[number];
126
133
  export interface BusinessData {
127
134
  /**
128
135
  * Name of the business
package/lib/models.js CHANGED
@@ -1,6 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BUSINESS_OWNERSHIP_TYPES = void 0;
3
+ exports.BUSINESS_OWNERSHIP_TYPES = exports.BUSINESS_CATEGORIES = void 0;
4
+ /**
5
+ * Every category a business can be put in.
6
+ *
7
+ * These values are stored downstream (prospector keeps them as `websiteCategory`) so an existing
8
+ * value is never renamed or removed, only added to.
9
+ */
10
+ exports.BUSINESS_CATEGORIES = [
11
+ "business-coaching",
12
+ "consulting",
13
+ "contact-capture",
14
+ "financial-services",
15
+ "home-services-cleaning",
16
+ "home-services-contractors",
17
+ "home-services-outdoor",
18
+ "insurance",
19
+ "legal-services",
20
+ "life-coaching",
21
+ "medical-spa",
22
+ "moving-services",
23
+ "pest-control",
24
+ "property-management",
25
+ "radio",
26
+ "real-estate",
27
+ "salon-spa",
28
+ "technology-services",
29
+ "travel",
30
+ ];
4
31
  exports.BUSINESS_OWNERSHIP_TYPES = [
5
32
  "family-owned",
6
33
  "veteran-owned",
package/lib/models.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":";;;AA8Oa,QAAA,wBAAwB,GAAiC;IAClE,cAAc;IACd,eAAe;IACf,aAAa;IACb,gBAAgB;IAChB,eAAe;IACf,gBAAgB;IAChB,WAAW;CACd,CAAC"}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":";;;AA8HA;;;;;GAKG;AACU,QAAA,mBAAmB,GAAG;IAC/B,mBAAmB;IACnB,YAAY;IACZ,iBAAiB;IACjB,oBAAoB;IACpB,wBAAwB;IACxB,2BAA2B;IAC3B,uBAAuB;IACvB,WAAW;IACX,gBAAgB;IAChB,eAAe;IACf,aAAa;IACb,iBAAiB;IACjB,cAAc;IACd,qBAAqB;IACrB,OAAO;IACP,aAAa;IACb,WAAW;IACX,qBAAqB;IACrB,QAAQ;CACF,CAAC;AAoGE,QAAA,wBAAwB,GAAiC;IAClE,cAAc;IACd,eAAe;IACf,aAAa;IACb,gBAAgB;IAChB,eAAe;IACf,gBAAgB;IAChB,WAAW;CACd,CAAC"}
@@ -1,3 +1,17 @@
1
+ /*! Copyright (c) 2023, XAPP AI */
2
+ import { BusinessCategory } from "../models";
3
+ /**
4
+ * Categories that exist on {@link BusinessCategory} but are not industries, so they are never
5
+ * offered to the AI.
6
+ */
7
+ export declare const NON_INDUSTRY_CATEGORIES: readonly ["contact-capture"];
8
+ /**
9
+ * The industry categories offered to the AI, each with the description it sees.
10
+ *
11
+ * Keyed by {@link BusinessCategory} so the prompt cannot offer a value the type does not allow, and
12
+ * a new category cannot be added to the type without describing it here.
13
+ */
14
+ export declare const INDUSTRY_CATEGORY_DESCRIPTIONS: Record<Exclude<BusinessCategory, (typeof NON_INDUSTRY_CATEGORIES)[number]>, string>;
1
15
  export interface Prompt {
2
16
  /**
3
17
  * The prompt string.
@@ -1,13 +1,60 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.INDUSTRY_CATEGORY_DESCRIPTIONS = exports.NON_INDUSTRY_CATEGORIES = void 0;
3
4
  exports.getTokens = getTokens;
4
5
  exports.getWebMarkdownPrompt = getWebMarkdownPrompt;
5
6
  exports.getAboutUsPrompt = getAboutUsPrompt;
6
7
  exports.getJSONSchemaPrompt = getJSONSchemaPrompt;
7
- /*! Copyright (c) 2023, XAPP AI */
8
8
  // TODO: REPLACE, has problem with webpack
9
- const { encode } = require('gpt-3-encoder');
9
+ const { encode } = require("gpt-3-encoder");
10
10
  const RESERVED_BUFFER = 100;
11
+ /**
12
+ * Categories that exist on {@link BusinessCategory} but are not industries, so they are never
13
+ * offered to the AI.
14
+ */
15
+ exports.NON_INDUSTRY_CATEGORIES = ["contact-capture"];
16
+ /**
17
+ * The industry categories offered to the AI, each with the description it sees.
18
+ *
19
+ * Keyed by {@link BusinessCategory} so the prompt cannot offer a value the type does not allow, and
20
+ * a new category cannot be added to the type without describing it here.
21
+ */
22
+ exports.INDUSTRY_CATEGORY_DESCRIPTIONS = {
23
+ "business-coaching": "Business provides coaching services for other business",
24
+ consulting: "Business provides consulting services",
25
+ "financial-services": "Business provides wealth & asset management services",
26
+ "home-services-cleaning": "Provide janitorial and cleaning services",
27
+ "home-services-contractors": "Electricians, plumbers, roofers, and other technicians and contractors",
28
+ "home-services-outdoor": "Lawn care, gardeners and other outside residential services",
29
+ "pest-control": "Pest control services",
30
+ insurance: "Insurance agents and brokers",
31
+ "legal-services": "Lawyers, legal services, tax attorneys",
32
+ "life-coaching": "Life coaching services",
33
+ "medical-spa": "Med spas and aesthetics clinics, injectables, laser treatments and skin care under a medical provider",
34
+ "moving-services": "Movers, relocation, packing, moving and storage",
35
+ radio: "Radio stations and broadcasters",
36
+ "real-estate": "Real estate agents and brokers",
37
+ "salon-spa": "Hair, nail and beauty salons, barbers, day spas, massage and esthetics",
38
+ "technology-services": "IT consultants and software services",
39
+ travel: "Travel agents",
40
+ "property-management": "Property management services",
41
+ };
42
+ /**
43
+ * The industry_category options as they appear in the prompt.
44
+ */
45
+ function getIndustryCategoryOptions() {
46
+ return Object.entries(exports.INDUSTRY_CATEGORY_DESCRIPTIONS)
47
+ .map(([category, description]) => ` "${category}" - ${description}`)
48
+ .join("\n");
49
+ }
50
+ /**
51
+ * The licenses instruction, shared by the prompts that ask for them so the two cannot drift.
52
+ *
53
+ * @param source What the content being analyzed is called, "website" or "page".
54
+ */
55
+ function getLicensesInstruction(source) {
56
+ return `"licenses" - An array of state-issued contractor or trade license numbers found on the ${source}, along with the operating authority and state board license numbers other trades publish. Focus on licenses required to operate, for example: state contractor licenses, HVAC licenses, plumbing licenses, electrical licenses; for movers a USDOT number, an MC (motor carrier) number and state authority such as CAL-T or CPUC in California, a Florida IM number or a state DOT mover registration; for salons, spas and med spas state cosmetology, barber, esthetician, nail salon establishment or massage therapy licenses, and the medical director's license when a med spa publishes one. Do not include general business registrations, ISO certifications, or membership numbers. Use an object with keys: number (just the license number itself), type (the type of license such as HVAC, Plumbing, Electrical, General Contractor, Roofing, USDOT, MC, CAL-T, Cosmetology, Barber, Esthetician, Massage Therapy, Medical Director, etc), state (two-letter state code if identifiable from context, leave it out for federal numbers such as USDOT and MC), fullText (the complete license text exactly as shown on the ${source}).`;
57
+ }
11
58
  /**
12
59
  * Calculates the number of tokens in a prompt and the maximum tokens available for the response.
13
60
  * @param {string} prompt - The input prompt string.
@@ -41,25 +88,12 @@ Please print out in JSON format on one line information about the website above
41
88
  "region" - Typically the state or province
42
89
  "postalCode" - The postal or zip code
43
90
  "country" - The country
44
- "services" - An array of the top five unique service categories the organization provides. Use a single concise term (1-3 words) per service. Do not list variations of the same service - for example, use "HVAC" rather than listing "HVAC Installation", "HVAC Repair", "HVAC Maintenance" as separate entries. Common home services (non-exhaustive): "HVAC", "Plumbing", "Electrical", "Roofing", "Painting", "Landscaping", "Pest Control", "Cleaning", "Flooring", "Remodeling"
91
+ "services" - An array of the top five unique service categories the organization provides. Use a single concise term (1-3 words) per service. Do not list variations of the same service - for example, use "HVAC" rather than listing "HVAC Installation", "HVAC Repair", "HVAC Maintenance" as separate entries. Name the services of whatever trade the organization is in. Examples by trade (non-exhaustive): home services - "HVAC", "Plumbing", "Electrical", "Roofing", "Painting", "Landscaping", "Pest Control", "Cleaning", "Flooring", "Remodeling"; salons and spas - "Haircuts", "Color", "Manicures", "Facials", "Massage", "Injectables", "Laser Hair Removal"; movers - "Local Moving", "Long Distance Moving", "Packing", "Storage", "Junk Removal"
45
92
  "calls_to_action" - An array of the top five unique calls to action found on the site and their fully formed URL if they have one. Good examples of calls to actions are "Request Demo", "Get Started", "Free Quote", "Schedule Consultation", "Sign Up". Bad examples are "Learn More" or "Follow us on Facebook". Use an object with keys: url & callToAction in the array. For the url please combine it properly with the website's URL.
46
93
  "description" - A description of what the organization does, include the name of the organization, their services, their location, phone number, email. Keep it concise and to a few sentences and around 480 characters.
47
94
  "industry_category" - A description of which industry category the business is in. Only pick from one of the following and use the value in quotes:
48
- "business-coaching" - Business provides coaching services for other business
49
- "consulting" - Business provides consulting services
50
- "financial-services" - Business provides wealth & asset management services
51
- "home-services-cleaning" - Provide janitorial and cleaning services
52
- "home-services-contractors" - Electricians, plumbers, roofers, and other technicians and contractors
53
- "home-services-outdoor" - Lawn care, gardeners and other outside residential services
54
- "pest-control" - Pest control services
55
- "insurance" - Insurance agents and brokers,
56
- "legal-services" - Lawyers, legal services, tax attorneys
57
- "life-coaching" - Life coaching services
58
- "real-estate" - Real estate agents and brokers
59
- "technology-services" - IT consultants and software services
60
- "travel" - Travel agents
61
- "property-management" - Property management services
62
- "licenses" - An array of state-issued contractor or trade license numbers found on the website. Focus on licenses required to operate (e.g., state contractor licenses, HVAC licenses, plumbing licenses, electrical licenses). Do not include general business registrations, ISO certifications, or membership numbers. Use an object with keys: number (just the license number itself), type (the type of license such as HVAC, Plumbing, Electrical, General Contractor, Roofing, etc), state (two-letter state code if identifiable from context), fullText (the complete license text exactly as shown on the website).
95
+ ${getIndustryCategoryOptions()}
96
+ ${getLicensesInstruction("website")}
63
97
  `;
64
98
  const tokens = getTokens(prompt);
65
99
  return Object.assign({ prompt: prompt.trim() }, tokens);
@@ -85,7 +119,7 @@ Please print out in JSON format on one line the following keys:
85
119
  "ownership" - An array describing how the business is owned, only using these values: "family-owned", "veteran-owned", "woman-owned", "minority-owned", "locally-owned", "employee-owned", "franchise".
86
120
  "service_areas" - An array of the cities, counties or regions the business says it serves, written exactly as they appear on the page.
87
121
  "team_size" - The number of employees or team members, as a number. Only include it if the number itself is written on the page.
88
- "licenses" - An array of state-issued contractor or trade license numbers found on the page. Do not include general business registrations, ISO certifications, or membership numbers. Use an object with keys: number (just the license number itself), type (the type of license such as HVAC, Plumbing, Electrical, General Contractor, Roofing, etc), state (two-letter state code if identifiable from context), fullText (the complete license text exactly as shown on the page).
122
+ ${getLicensesInstruction("page")}
89
123
  `;
90
124
  const tokens = getTokens(prompt);
91
125
  return Object.assign({ prompt: prompt.trim() }, tokens);
@@ -1 +1 @@
1
- {"version":3,"file":"getPrompt.js","sourceRoot":"","sources":["../../src/utils/getPrompt.ts"],"names":[],"mappings":";;AA2BA,8BAQC;AAGD,oDAiDC;AASD,4CAwBC;AAED,kDAoBC;AA9ID,kCAAkC;AAClC,0CAA0C;AAC1C,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAE5C,MAAM,eAAe,GAAG,GAAG,CAAC;AAiB5B;;;;;GAKG;AACH,SAAgB,SAAS,CAAC,MAAc,EAAE,aAAqB,KAAK;IAEhE,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC;IAErC,4CAA4C;IAC5C,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,eAAe,CAAC,CAAC;IAErE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AACjC,CAAC;AAGD,SAAgB,oBAAoB,CAAC,QAAgB,EAAE,GAAW;IAE9D,MAAM,MAAM,GAAG;0FACuE,GAAG;;;EAG3F,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCT,CAAC;IAEE,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IAEjC,uBAC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C,MAAM,CAAC,CAAC;IAEjC,uBACI,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,IAClB,MAAM,EACX;AACN,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,gBAAgB,CAAC,QAAgB,EAAE,GAAW;IAC1D,MAAM,MAAM,GAAG;0GACuF,GAAG;;;EAG3G,QAAQ;;;;;;;;;EASR,sBAAsB,CAAC,MAAM,CAAC;CAC/B,CAAC;IAEE,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IAEjC,uBACI,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,IAClB,MAAM,EACX;AACN,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS,EAAE,GAAW;IACtD,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAExC,MAAM,MAAM,GAAG;EACjB,UAAU;;kDAEsC,GAAG;;;CAGpD,CAAC;IAEE,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;IAE9B,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IAElC,uBACI,MAAM,EAAE,OAAO,IACZ,MAAM,EACX;AACN,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xapp/arachne-web-service",
3
- "version": "1.21.0",
3
+ "version": "1.22.0",
4
4
  "types": "lib/index",
5
5
  "main": "lib/index",
6
6
  "files": [
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@xapp/arachne": "1.17.4",
37
- "@xapp/arachne-parsers": "1.17.0",
37
+ "@xapp/arachne-parsers": "1.18.0",
38
38
  "gpt-3-encoder": "1.1.4",
39
39
  "ico-to-png": "0.2.2",
40
40
  "node-vibrant": "3.2.1-alpha.1",