@lightsage/mcp 0.4.9 → 0.4.11

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 (67) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +21 -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.d.ts +0 -2
  25. package/esm/models/publiccompetitorrow.d.ts.map +1 -1
  26. package/esm/models/publiccompetitorrow.js +2 -4
  27. package/esm/models/publiccompetitorrow.js.map +1 -1
  28. package/esm/models/publiccurrentvisibilityresponse.d.ts +0 -2
  29. package/esm/models/publiccurrentvisibilityresponse.d.ts.map +1 -1
  30. package/esm/models/publiccurrentvisibilityresponse.js +2 -4
  31. package/esm/models/publiccurrentvisibilityresponse.js.map +1 -1
  32. package/esm/models/publicpromptvisibilitymetrics.d.ts +0 -2
  33. package/esm/models/publicpromptvisibilitymetrics.d.ts.map +1 -1
  34. package/esm/models/publicpromptvisibilitymetrics.js +1 -3
  35. package/esm/models/publicpromptvisibilitymetrics.js.map +1 -1
  36. package/esm/models/publicvisibilitybyplatform.d.ts +0 -3
  37. package/esm/models/publicvisibilitybyplatform.d.ts.map +1 -1
  38. package/esm/models/publicvisibilitybyplatform.js +0 -2
  39. package/esm/models/publicvisibilitybyplatform.js.map +1 -1
  40. package/esm/models/publicvisibilitysnapshot.d.ts +0 -2
  41. package/esm/models/publicvisibilitysnapshot.d.ts.map +1 -1
  42. package/esm/models/publicvisibilitysnapshot.js +2 -4
  43. package/esm/models/publicvisibilitysnapshot.js.map +1 -1
  44. package/esm/models/publicvisibilitytimeseries.d.ts +0 -1
  45. package/esm/models/publicvisibilitytimeseries.d.ts.map +1 -1
  46. package/esm/models/publicvisibilitytimeseries.js +0 -1
  47. package/esm/models/publicvisibilitytimeseries.js.map +1 -1
  48. package/esm/tool-names.js +3 -3
  49. package/esm/tool-names.js.map +1 -1
  50. package/package.json +1 -1
  51. package/src/funcs/agentsList.ts +1 -1
  52. package/src/funcs/visibilityCurrentRetrieve.ts +1 -1
  53. package/src/funcs/visibilityPromptsRetrieve.ts +1 -1
  54. package/src/landing-page.ts +1 -1
  55. package/src/lib/config.ts +2 -2
  56. package/src/mcp-server/mcp-server.ts +1 -1
  57. package/src/mcp-server/server.ts +1 -1
  58. package/src/mcp-server/tools/agentsList.ts +1 -1
  59. package/src/mcp-server/tools/visibilityCurrentRetrieve.ts +1 -1
  60. package/src/mcp-server/tools/visibilityPromptsRetrieve.ts +1 -1
  61. package/src/models/publiccompetitorrow.ts +2 -10
  62. package/src/models/publiccurrentvisibilityresponse.ts +2 -10
  63. package/src/models/publicpromptvisibilitymetrics.ts +1 -9
  64. package/src/models/publicvisibilitybyplatform.ts +0 -5
  65. package/src/models/publicvisibilitysnapshot.ts +2 -10
  66. package/src/models/publicvisibilitytimeseries.ts +0 -4
  67. package/src/tool-names.ts +3 -3
@@ -10,7 +10,7 @@ export const tool$agentsList: ToolDefinition = {
10
10
  name: "agents-list",
11
11
  description: `List Agents
12
12
 
13
- Returns all runnable harness-and-model combinations as single agent IDs for use in eval runs.`,
13
+ Returns the harness-and-model combinations your plan can run, as single agent IDs for use in eval runs.`,
14
14
  annotations: {
15
15
  "title": "",
16
16
  "destructiveHint": false,
@@ -15,7 +15,7 @@ export const tool$visibilityCurrentRetrieve: ToolDefinition<typeof args> = {
15
15
  name: "visibility-current-retrieve",
16
16
  description: `Retrieve Current Visibility
17
17
 
18
- Returns 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\`.`,
18
+ Returns 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\`.`,
19
19
  annotations: {
20
20
  "title": "",
21
21
  "destructiveHint": false,
@@ -15,7 +15,7 @@ export const tool$visibilityPromptsRetrieve: ToolDefinition<typeof args> = {
15
15
  name: "visibility-prompts-retrieve",
16
16
  description: `Retrieve Prompt Visibility Report
17
17
 
18
- Returns per-topic and per-prompt visibility metrics including score, rank, share of voice, average position, and citation counts.`,
18
+ Returns per-topic and per-prompt visibility metrics including recommendation score, rank, visibility score, average position, and citation counts.`,
19
19
  annotations: {
20
20
  "title": "",
21
21
  "destructiveHint": false,
@@ -12,8 +12,6 @@ export type PublicCompetitorRow = {
12
12
  recommendation_score_rank?: number | null | undefined;
13
13
  visibility_score?: number | null | undefined;
14
14
  visibility_score_rank?: number | null | undefined;
15
- share_of_voice?: number | null | undefined;
16
- share_of_voice_rank?: number | null | undefined;
17
15
  average_position?: number | null | undefined;
18
16
  average_position_rank?: number | null | undefined;
19
17
  };
@@ -31,14 +29,8 @@ export const PublicCompetitorRow$zodSchema: z.ZodType<PublicCompetitorRow> = z
31
29
  "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. Rows do not sum to 1.",
32
30
  ),
33
31
  recommendation_score_rank: z.int().nullable().optional(),
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.",
36
- ),
37
- share_of_voice_rank: z.int().nullable().optional(),
38
32
  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.",
33
+ "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
34
  ),
35
+ visibility_score_rank: z.int().nullable().optional(),
44
36
  });
@@ -12,8 +12,6 @@ export type PublicCurrentVisibilityResponse = {
12
12
  recommendation_score_rank?: number | null | undefined;
13
13
  visibility_score?: number | null | undefined;
14
14
  visibility_score_rank?: number | null | undefined;
15
- share_of_voice?: number | null | undefined;
16
- share_of_voice_rank?: number | null | undefined;
17
15
  average_position?: number | null | undefined;
18
16
  average_position_rank?: number | null | undefined;
19
17
  date?: string | null | undefined;
@@ -41,15 +39,9 @@ export const PublicCurrentVisibilityResponse$zodSchema: z.ZodType<
41
39
  "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.",
42
40
  ),
43
41
  recommendation_score_rank: z.int().nullable().optional(),
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.",
46
- ),
47
- share_of_voice_rank: z.int().nullable().optional(),
48
42
  start_date: z.string(),
49
43
  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.",
44
+ "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
45
  ),
46
+ visibility_score_rank: z.int().nullable().optional(),
55
47
  });
@@ -9,8 +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
- share_of_voice?: number | null | undefined;
14
12
  average_position?: number | null | undefined;
15
13
  citation_count?: number | undefined;
16
14
  run_count?: number | undefined;
@@ -30,13 +28,7 @@ export const PublicPromptVisibilityMetrics$zodSchema: z.ZodType<
30
28
  run_count: z.int().default(0).describe(
31
29
  "One per prompt, platform, and run date.",
32
30
  ),
33
- 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.",
35
- ),
36
31
  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.",
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.",
41
33
  ),
42
34
  });
@@ -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
  });
@@ -10,8 +10,6 @@ export type PublicVisibilitySnapshot = {
10
10
  recommendation_score_rank?: number | null | undefined;
11
11
  visibility_score?: number | null | undefined;
12
12
  visibility_score_rank?: number | null | undefined;
13
- share_of_voice?: number | null | undefined;
14
- share_of_voice_rank?: number | null | undefined;
15
13
  average_position?: number | null | undefined;
16
14
  average_position_rank?: number | null | undefined;
17
15
  total_citations?: number | undefined;
@@ -28,17 +26,11 @@ export const PublicVisibilitySnapshot$zodSchema: z.ZodType<
28
26
  "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
27
  ),
30
28
  recommendation_score_rank: z.int().nullable().optional(),
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.",
33
- ),
34
- share_of_voice_rank: z.int().nullable().optional(),
35
29
  total_citations: z.int().default(0).describe(
36
30
  "Owned-domain citations across all platforms; 0, not `null`, with no prompt runs.",
37
31
  ),
38
32
  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.",
33
+ "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
34
  ),
35
+ visibility_score_rank: z.int().nullable().optional(),
44
36
  });
@@ -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",