@lightsage/mcp 0.4.9 → 0.4.10

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 (61) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +28 -31
  3. package/bin/mcp-server.js.map +19 -19
  4. package/esm/funcs/agentsList.d.ts +1 -1
  5. package/esm/funcs/agentsList.js +1 -1
  6. package/esm/funcs/visibilityCurrentRetrieve.d.ts +1 -1
  7. package/esm/funcs/visibilityCurrentRetrieve.js +1 -1
  8. package/esm/funcs/visibilityPromptsRetrieve.d.ts +1 -1
  9. package/esm/funcs/visibilityPromptsRetrieve.js +1 -1
  10. package/esm/landing-page.js +1 -1
  11. package/esm/lib/config.d.ts +2 -2
  12. package/esm/lib/config.js +2 -2
  13. package/esm/lib/config.js.map +1 -1
  14. package/esm/mcp-server/mcp-server.js +1 -1
  15. package/esm/mcp-server/mcp-server.js.map +1 -1
  16. package/esm/mcp-server/server.js +1 -1
  17. package/esm/mcp-server/server.js.map +1 -1
  18. package/esm/mcp-server/tools/agentsList.js +1 -1
  19. package/esm/mcp-server/tools/agentsList.js.map +1 -1
  20. package/esm/mcp-server/tools/visibilityCurrentRetrieve.js +1 -1
  21. package/esm/mcp-server/tools/visibilityCurrentRetrieve.js.map +1 -1
  22. package/esm/mcp-server/tools/visibilityPromptsRetrieve.js +1 -1
  23. package/esm/mcp-server/tools/visibilityPromptsRetrieve.js.map +1 -1
  24. package/esm/models/publiccompetitorrow.js +4 -4
  25. package/esm/models/publiccompetitorrow.js.map +1 -1
  26. package/esm/models/publiccurrentvisibilityresponse.js +4 -4
  27. package/esm/models/publiccurrentvisibilityresponse.js.map +1 -1
  28. package/esm/models/publicpromptvisibilitymetrics.d.ts +0 -1
  29. package/esm/models/publicpromptvisibilitymetrics.d.ts.map +1 -1
  30. package/esm/models/publicpromptvisibilitymetrics.js +2 -3
  31. package/esm/models/publicpromptvisibilitymetrics.js.map +1 -1
  32. package/esm/models/publicvisibilitybyplatform.d.ts +0 -3
  33. package/esm/models/publicvisibilitybyplatform.d.ts.map +1 -1
  34. package/esm/models/publicvisibilitybyplatform.js +0 -2
  35. package/esm/models/publicvisibilitybyplatform.js.map +1 -1
  36. package/esm/models/publicvisibilitysnapshot.js +4 -4
  37. package/esm/models/publicvisibilitysnapshot.js.map +1 -1
  38. package/esm/models/publicvisibilitytimeseries.d.ts +0 -1
  39. package/esm/models/publicvisibilitytimeseries.d.ts.map +1 -1
  40. package/esm/models/publicvisibilitytimeseries.js +0 -1
  41. package/esm/models/publicvisibilitytimeseries.js.map +1 -1
  42. package/esm/tool-names.js +3 -3
  43. package/esm/tool-names.js.map +1 -1
  44. package/package.json +1 -1
  45. package/src/funcs/agentsList.ts +1 -1
  46. package/src/funcs/visibilityCurrentRetrieve.ts +1 -1
  47. package/src/funcs/visibilityPromptsRetrieve.ts +1 -1
  48. package/src/landing-page.ts +1 -1
  49. package/src/lib/config.ts +2 -2
  50. package/src/mcp-server/mcp-server.ts +1 -1
  51. package/src/mcp-server/server.ts +1 -1
  52. package/src/mcp-server/tools/agentsList.ts +1 -1
  53. package/src/mcp-server/tools/visibilityCurrentRetrieve.ts +1 -1
  54. package/src/mcp-server/tools/visibilityPromptsRetrieve.ts +1 -1
  55. package/src/models/publiccompetitorrow.ts +6 -6
  56. package/src/models/publiccurrentvisibilityresponse.ts +6 -6
  57. package/src/models/publicpromptvisibilitymetrics.ts +2 -6
  58. package/src/models/publicvisibilitybyplatform.ts +0 -5
  59. package/src/models/publicvisibilitysnapshot.ts +6 -6
  60. package/src/models/publicvisibilitytimeseries.ts +0 -4
  61. package/src/tool-names.ts +3 -3
@@ -32,13 +32,13 @@ export const PublicCompetitorRow$zodSchema: z.ZodType<PublicCompetitorRow> = z
32
32
  ),
33
33
  recommendation_score_rank: z.int().nullable().optional(),
34
34
  share_of_voice: z.number().nullable().optional().describe(
35
- "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. A run can mention several companies, so rows do not sum to 1.",
35
+ "Deprecated: use `visibility_score`. Same value; this field will be removed in a future release.",
36
36
  ),
37
- share_of_voice_rank: z.int().nullable().optional(),
38
- visibility_score: z.number().nullable().optional().describe(
39
- "Deprecated: use `recommendation_score`. Same value; this field will be removed in a future release.",
37
+ share_of_voice_rank: z.int().nullable().optional().describe(
38
+ "Deprecated: use `visibility_score_rank`. Same value; this field will be removed in a future release.",
40
39
  ),
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.",
40
+ visibility_score: z.number().nullable().optional().describe(
41
+ "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. A run can mention several companies, so rows do not sum to 1.",
43
42
  ),
43
+ visibility_score_rank: z.int().nullable().optional(),
44
44
  });
@@ -42,14 +42,14 @@ export const PublicCurrentVisibilityResponse$zodSchema: z.ZodType<
42
42
  ),
43
43
  recommendation_score_rank: z.int().nullable().optional(),
44
44
  share_of_voice: z.number().nullable().optional().describe(
45
- "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.",
45
+ "Deprecated: use `visibility_score`. Same value; this field will be removed in a future release.",
46
+ ),
47
+ share_of_voice_rank: z.int().nullable().optional().describe(
48
+ "Deprecated: use `visibility_score_rank`. Same value; this field will be removed in a future release.",
46
49
  ),
47
- share_of_voice_rank: z.int().nullable().optional(),
48
50
  start_date: z.string(),
49
51
  visibility_score: z.number().nullable().optional().describe(
50
- "Deprecated: use `recommendation_score`. Same value; this field will be removed in a future release.",
51
- ),
52
- visibility_score_rank: z.int().nullable().optional().describe(
53
- "Deprecated: use `recommendation_score_rank`. Same value; this field will be removed in a future release.",
52
+ "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.",
54
53
  ),
54
+ visibility_score_rank: z.int().nullable().optional(),
55
55
  });
@@ -9,7 +9,6 @@ export type PublicPromptVisibilityMetrics = {
9
9
  recommendation_score?: number | null | undefined;
10
10
  recommendation_score_rank?: number | null | undefined;
11
11
  visibility_score?: number | null | undefined;
12
- visibility_score_rank?: number | null | undefined;
13
12
  share_of_voice?: number | null | undefined;
14
13
  average_position?: number | null | undefined;
15
14
  citation_count?: number | undefined;
@@ -31,12 +30,9 @@ export const PublicPromptVisibilityMetrics$zodSchema: z.ZodType<
31
30
  "One per prompt, platform, and run date.",
32
31
  ),
33
32
  share_of_voice: z.number().nullable().optional().describe(
34
- "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.",
33
+ "Deprecated: use `visibility_score`. Same value; this field will be removed in a future release.",
35
34
  ),
36
35
  visibility_score: z.number().nullable().optional().describe(
37
- "Deprecated: use `recommendation_score`. Same value; this field will be removed in a future release.",
38
- ),
39
- visibility_score_rank: z.int().nullable().optional().describe(
40
- "Deprecated: use `recommendation_score_rank`. Same value; this field will be removed in a future release.",
36
+ "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.",
41
37
  ),
42
38
  });
@@ -16,7 +16,6 @@ import {
16
16
  export type PublicVisibilityByPlatform = {
17
17
  platforms?: Array<PublicPlatformRef> | undefined;
18
18
  recommendation_score?: { [k: string]: Array<PublicSeriesPoint> } | undefined;
19
- visibility_score?: { [k: string]: Array<PublicSeriesPoint> } | undefined;
20
19
  citations?: { [k: string]: Array<PublicSeriesPoint> } | undefined;
21
20
  };
22
21
 
@@ -30,8 +29,4 @@ export const PublicVisibilityByPlatform$zodSchema: z.ZodType<
30
29
  z.string(),
31
30
  z.array(PublicSeriesPoint$zodSchema),
32
31
  ).optional().describe("Recommendation score series keyed by `platform_id`."),
33
- visibility_score: z.record(z.string(), z.array(PublicSeriesPoint$zodSchema))
34
- .optional().describe(
35
- "Deprecated: use `recommendation_score`. Same value; this field will be removed in a future release.",
36
- ),
37
32
  });
@@ -29,16 +29,16 @@ export const PublicVisibilitySnapshot$zodSchema: z.ZodType<
29
29
  ),
30
30
  recommendation_score_rank: z.int().nullable().optional(),
31
31
  share_of_voice: z.number().nullable().optional().describe(
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.",
32
+ "Deprecated: use `visibility_score`. Same value; this field will be removed in a future release.",
33
+ ),
34
+ share_of_voice_rank: z.int().nullable().optional().describe(
35
+ "Deprecated: use `visibility_score_rank`. Same value; this field will be removed in a future release.",
33
36
  ),
34
- share_of_voice_rank: z.int().nullable().optional(),
35
37
  total_citations: z.int().default(0).describe(
36
38
  "Owned-domain citations across all platforms; 0, not `null`, with no prompt runs.",
37
39
  ),
38
40
  visibility_score: z.number().nullable().optional().describe(
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.",
41
+ "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.",
43
42
  ),
43
+ visibility_score_rank: z.int().nullable().optional(),
44
44
  });
@@ -11,14 +11,10 @@ import {
11
11
 
12
12
  export type PublicVisibilityTimeseries = {
13
13
  recommendation_score?: Array<PublicSeriesPoint> | undefined;
14
- visibility_score?: Array<PublicSeriesPoint> | undefined;
15
14
  };
16
15
 
17
16
  export const PublicVisibilityTimeseries$zodSchema: z.ZodType<
18
17
  PublicVisibilityTimeseries
19
18
  > = z.object({
20
19
  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
- ),
24
20
  });
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 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`."
13
+ "description": "Retrieve Current Visibility\n\nReturns recommendation score, visibility score, 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",
@@ -22,7 +22,7 @@ export const toolNames: Array<{ name: string; description: string }>= [
22
22
  },
23
23
  {
24
24
  "name": "visibility-prompts-retrieve",
25
- "description": "Retrieve Prompt Visibility Report\n\nReturns per-topic and per-prompt visibility metrics including score, rank, share of voice, average position, and citation counts."
25
+ "description": "Retrieve Prompt Visibility Report\n\nReturns per-topic and per-prompt visibility metrics including recommendation score, rank, visibility score, average position, and citation counts."
26
26
  },
27
27
  {
28
28
  "name": "prompts-list",
@@ -222,7 +222,7 @@ export const toolNames: Array<{ name: string; description: string }>= [
222
222
  },
223
223
  {
224
224
  "name": "agents-list",
225
- "description": "List Agents\n\nReturns all runnable harness-and-model combinations as single agent IDs for use in eval runs."
225
+ "description": "List Agents\n\nReturns the harness-and-model combinations your plan can run, as single agent IDs for use in eval runs."
226
226
  },
227
227
  {
228
228
  "name": "repositories-list",