@lightsage/mcp 0.4.8 → 0.4.9

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.
Files changed (52) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +28 -18
  3. package/bin/mcp-server.js.map +15 -15
  4. package/esm/funcs/visibilityCurrentRetrieve.d.ts +1 -1
  5. package/esm/funcs/visibilityCurrentRetrieve.js +1 -1
  6. package/esm/landing-page.js +1 -1
  7. package/esm/lib/config.d.ts +2 -2
  8. package/esm/lib/config.js +2 -2
  9. package/esm/mcp-server/mcp-server.js +1 -1
  10. package/esm/mcp-server/server.js +1 -1
  11. package/esm/mcp-server/tools/visibilityCurrentRetrieve.js +1 -1
  12. package/esm/mcp-server/tools/visibilityCurrentRetrieve.js.map +1 -1
  13. package/esm/models/publiccompetitorrow.d.ts +2 -0
  14. package/esm/models/publiccompetitorrow.d.ts.map +1 -1
  15. package/esm/models/publiccompetitorrow.js +4 -2
  16. package/esm/models/publiccompetitorrow.js.map +1 -1
  17. package/esm/models/publiccurrentvisibilityresponse.d.ts +2 -0
  18. package/esm/models/publiccurrentvisibilityresponse.d.ts.map +1 -1
  19. package/esm/models/publiccurrentvisibilityresponse.js +4 -2
  20. package/esm/models/publiccurrentvisibilityresponse.js.map +1 -1
  21. package/esm/models/publicpromptvisibilitymetrics.d.ts +2 -0
  22. package/esm/models/publicpromptvisibilitymetrics.d.ts.map +1 -1
  23. package/esm/models/publicpromptvisibilitymetrics.js +4 -2
  24. package/esm/models/publicpromptvisibilitymetrics.js.map +1 -1
  25. package/esm/models/publicvisibilitybyplatform.d.ts +3 -0
  26. package/esm/models/publicvisibilitybyplatform.d.ts.map +1 -1
  27. package/esm/models/publicvisibilitybyplatform.js +2 -1
  28. package/esm/models/publicvisibilitybyplatform.js.map +1 -1
  29. package/esm/models/publicvisibilitysnapshot.d.ts +2 -0
  30. package/esm/models/publicvisibilitysnapshot.d.ts.map +1 -1
  31. package/esm/models/publicvisibilitysnapshot.js +4 -2
  32. package/esm/models/publicvisibilitysnapshot.js.map +1 -1
  33. package/esm/models/publicvisibilitytimeseries.d.ts +1 -0
  34. package/esm/models/publicvisibilitytimeseries.d.ts.map +1 -1
  35. package/esm/models/publicvisibilitytimeseries.js +2 -1
  36. package/esm/models/publicvisibilitytimeseries.js.map +1 -1
  37. package/esm/tool-names.js +1 -1
  38. package/esm/tool-names.js.map +1 -1
  39. package/package.json +3 -3
  40. package/src/funcs/visibilityCurrentRetrieve.ts +1 -1
  41. package/src/landing-page.ts +1 -1
  42. package/src/lib/config.ts +2 -2
  43. package/src/mcp-server/mcp-server.ts +1 -1
  44. package/src/mcp-server/server.ts +1 -1
  45. package/src/mcp-server/tools/visibilityCurrentRetrieve.ts +1 -1
  46. package/src/models/publiccompetitorrow.ts +10 -2
  47. package/src/models/publiccurrentvisibilityresponse.ts +10 -2
  48. package/src/models/publicpromptvisibilitymetrics.ts +10 -2
  49. package/src/models/publicvisibilitybyplatform.ts +8 -1
  50. package/src/models/publicvisibilitysnapshot.ts +10 -2
  51. package/src/models/publicvisibilitytimeseries.ts +5 -1
  52. package/src/tool-names.ts +1 -1
@@ -6,6 +6,8 @@
6
6
  import * as z from "zod";
7
7
 
8
8
  export type PublicVisibilitySnapshot = {
9
+ recommendation_score?: number | null | undefined;
10
+ recommendation_score_rank?: number | null | undefined;
9
11
  visibility_score?: number | null | undefined;
10
12
  visibility_score_rank?: number | null | undefined;
11
13
  share_of_voice?: number | null | undefined;
@@ -22,6 +24,10 @@ export const PublicVisibilitySnapshot$zodSchema: z.ZodType<
22
24
  "Mean mention position in AI responses; 1 is first and lower is better.",
23
25
  ),
24
26
  average_position_rank: z.int().nullable().optional(),
27
+ recommendation_score: z.number().nullable().optional().describe(
28
+ "Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded.",
29
+ ),
30
+ recommendation_score_rank: z.int().nullable().optional(),
25
31
  share_of_voice: z.number().nullable().optional().describe(
26
32
  "Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded.",
27
33
  ),
@@ -30,7 +36,9 @@ export const PublicVisibilitySnapshot$zodSchema: z.ZodType<
30
36
  "Owned-domain citations across all platforms; 0, not `null`, with no prompt runs.",
31
37
  ),
32
38
  visibility_score: z.number().nullable().optional().describe(
33
- "Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded.",
39
+ "Deprecated: use `recommendation_score`. Same value; this field will be removed in a future release.",
40
+ ),
41
+ visibility_score_rank: z.int().nullable().optional().describe(
42
+ "Deprecated: use `recommendation_score_rank`. Same value; this field will be removed in a future release.",
34
43
  ),
35
- visibility_score_rank: z.int().nullable().optional(),
36
44
  });
@@ -10,11 +10,15 @@ import {
10
10
  } from "./publicseriespoint.js";
11
11
 
12
12
  export type PublicVisibilityTimeseries = {
13
+ recommendation_score?: Array<PublicSeriesPoint> | undefined;
13
14
  visibility_score?: Array<PublicSeriesPoint> | undefined;
14
15
  };
15
16
 
16
17
  export const PublicVisibilityTimeseries$zodSchema: z.ZodType<
17
18
  PublicVisibilityTimeseries
18
19
  > = z.object({
19
- visibility_score: z.array(PublicSeriesPoint$zodSchema).optional(),
20
+ recommendation_score: z.array(PublicSeriesPoint$zodSchema).optional(),
21
+ visibility_score: z.array(PublicSeriesPoint$zodSchema).optional().describe(
22
+ "Deprecated: use `recommendation_score`. Same value; this field will be removed in a future release.",
23
+ ),
20
24
  });
package/src/tool-names.ts CHANGED
@@ -10,7 +10,7 @@ export const toolNames: Array<{ name: string; description: string }>= [
10
10
  },
11
11
  {
12
12
  "name": "visibility-current-retrieve",
13
- "description": "Retrieve Current Visibility\n\nReturns visibility score, share of voice, ranks, and date-range metadata for the configured primary company. Metrics are computed from active prompts only; when no data exists, values are `null`."
13
+ "description": "Retrieve Current Visibility\n\nReturns recommendation score, share of voice, ranks, and date-range metadata for the configured primary company. Metrics are computed from active prompts only; when no data exists, values are `null`."
14
14
  },
15
15
  {
16
16
  "name": "visibility-overview-retrieve",