@lightsage/mcp 0.4.18 → 0.4.19

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 (101) hide show
  1. package/README.md +2 -2
  2. package/api/mcp.js +4 -1
  3. package/bin/mcp-server.js +440 -116
  4. package/bin/mcp-server.js.map +23 -14
  5. package/esm/funcs/agentsList.d.ts +1 -1
  6. package/esm/funcs/agentsList.js +1 -1
  7. package/esm/funcs/promptsRun.d.ts +2 -1
  8. package/esm/funcs/promptsRun.d.ts.map +1 -1
  9. package/esm/funcs/promptsRun.js +2 -1
  10. package/esm/funcs/promptsRun.js.map +1 -1
  11. package/esm/funcs/promptsTargetsList.d.ts +16 -0
  12. package/esm/funcs/promptsTargetsList.d.ts.map +1 -0
  13. package/esm/funcs/promptsTargetsList.js +86 -0
  14. package/esm/funcs/promptsTargetsList.js.map +1 -0
  15. package/esm/funcs/promptsTargetsSet.d.ts +16 -0
  16. package/esm/funcs/promptsTargetsSet.d.ts.map +1 -0
  17. package/esm/funcs/promptsTargetsSet.js +83 -0
  18. package/esm/funcs/promptsTargetsSet.js.map +1 -0
  19. package/esm/landing-page.js +1 -1
  20. package/esm/lib/config.d.ts +2 -2
  21. package/esm/lib/config.js +2 -2
  22. package/esm/mcp-server/mcp-server.js +1 -1
  23. package/esm/mcp-server/server.d.ts.map +1 -1
  24. package/esm/mcp-server/server.js +5 -1
  25. package/esm/mcp-server/server.js.map +1 -1
  26. package/esm/mcp-server/tools/agentsList.js +1 -1
  27. package/esm/mcp-server/tools/agentsList.js.map +1 -1
  28. package/esm/mcp-server/tools/promptsRun.d.ts.map +1 -1
  29. package/esm/mcp-server/tools/promptsRun.js +2 -1
  30. package/esm/mcp-server/tools/promptsRun.js.map +1 -1
  31. package/esm/mcp-server/tools/promptsTargetsList.d.ts +7 -0
  32. package/esm/mcp-server/tools/promptsTargetsList.d.ts.map +1 -0
  33. package/esm/mcp-server/tools/promptsTargetsList.js +35 -0
  34. package/esm/mcp-server/tools/promptsTargetsList.js.map +1 -0
  35. package/esm/mcp-server/tools/promptsTargetsSet.d.ts +7 -0
  36. package/esm/mcp-server/tools/promptsTargetsSet.d.ts.map +1 -0
  37. package/esm/mcp-server/tools/promptsTargetsSet.js +35 -0
  38. package/esm/mcp-server/tools/promptsTargetsSet.js.map +1 -0
  39. package/esm/models/createv2promptrunrequest.js +1 -1
  40. package/esm/models/createv2promptrunrequest.js.map +1 -1
  41. package/esm/models/evaltemplateschedule.d.ts +4 -4
  42. package/esm/models/evaltemplateschedule.d.ts.map +1 -1
  43. package/esm/models/evaltemplateschedule.js +4 -3
  44. package/esm/models/evaltemplateschedule.js.map +1 -1
  45. package/esm/models/setv2prompttargetsrequest.d.ts +8 -0
  46. package/esm/models/setv2prompttargetsrequest.d.ts.map +1 -0
  47. package/esm/models/setv2prompttargetsrequest.js +11 -0
  48. package/esm/models/setv2prompttargetsrequest.js.map +1 -0
  49. package/esm/models/setv2prompttargetsresponse.d.ts +9 -0
  50. package/esm/models/setv2prompttargetsresponse.d.ts.map +1 -0
  51. package/esm/models/setv2prompttargetsresponse.js +12 -0
  52. package/esm/models/setv2prompttargetsresponse.js.map +1 -0
  53. package/esm/models/v2prompttarget.d.ts +44 -0
  54. package/esm/models/v2prompttarget.d.ts.map +1 -0
  55. package/esm/models/v2prompttarget.js +41 -0
  56. package/esm/models/v2prompttarget.js.map +1 -0
  57. package/esm/models/v2prompttargetinput.d.ts +47 -0
  58. package/esm/models/v2prompttargetinput.d.ts.map +1 -0
  59. package/esm/models/v2prompttargetinput.js +45 -0
  60. package/esm/models/v2prompttargetinput.js.map +1 -0
  61. package/esm/models/v2prompttargetslistop.d.ts +10 -0
  62. package/esm/models/v2prompttargetslistop.d.ts.map +1 -0
  63. package/esm/models/v2prompttargetslistop.js +15 -0
  64. package/esm/models/v2prompttargetslistop.js.map +1 -0
  65. package/esm/models/v2prompttargetsresponse.d.ts +8 -0
  66. package/esm/models/v2prompttargetsresponse.d.ts.map +1 -0
  67. package/esm/models/v2prompttargetsresponse.js +11 -0
  68. package/esm/models/v2prompttargetsresponse.js.map +1 -0
  69. package/esm/models/v2prompttargetssetop.d.ts +6 -0
  70. package/esm/models/v2prompttargetssetop.d.ts.map +1 -0
  71. package/esm/models/v2prompttargetssetop.js +12 -0
  72. package/esm/models/v2prompttargetssetop.js.map +1 -0
  73. package/esm/tool-names.d.ts.map +1 -1
  74. package/esm/tool-names.js +10 -2
  75. package/esm/tool-names.js.map +1 -1
  76. package/lib/feedback.js +47 -0
  77. package/lib/tracker.js +4 -2
  78. package/package.json +5 -4
  79. package/src/funcs/agentsList.ts +1 -1
  80. package/src/funcs/promptsRun.ts +2 -1
  81. package/src/funcs/promptsTargetsList.ts +148 -0
  82. package/src/funcs/promptsTargetsSet.ts +145 -0
  83. package/src/landing-page.ts +1 -1
  84. package/src/lib/config.ts +2 -2
  85. package/src/mcp-server/mcp-server.ts +1 -1
  86. package/src/mcp-server/server.ts +5 -1
  87. package/src/mcp-server/tools/agentsList.ts +1 -1
  88. package/src/mcp-server/tools/promptsRun.ts +2 -1
  89. package/src/mcp-server/tools/promptsTargetsList.ts +43 -0
  90. package/src/mcp-server/tools/promptsTargetsSet.ts +43 -0
  91. package/src/models/createv2promptrunrequest.ts +1 -1
  92. package/src/models/evaltemplateschedule.ts +8 -7
  93. package/src/models/setv2prompttargetsrequest.ts +26 -0
  94. package/src/models/setv2prompttargetsresponse.ts +23 -0
  95. package/src/models/v2prompttarget.ts +79 -0
  96. package/src/models/v2prompttargetinput.ts +72 -0
  97. package/src/models/v2prompttargetslistop.ts +33 -0
  98. package/src/models/v2prompttargetsresponse.ts +19 -0
  99. package/src/models/v2prompttargetssetop.ts +25 -0
  100. package/src/tool-names.ts +10 -2
  101. package/test/tracker.test.js +83 -1
@@ -3,7 +3,7 @@ import { ClosedEnum } from "../types/enums.js";
3
3
  /**
4
4
  * Schedule cadence used when `enabled` is true.
5
5
  */
6
- export declare const Frequency: {
6
+ export declare const EvalTemplateScheduleFrequency: {
7
7
  readonly Daily: "daily";
8
8
  readonly EveryOtherDay: "every_other_day";
9
9
  readonly Weekly: "weekly";
@@ -11,8 +11,8 @@ export declare const Frequency: {
11
11
  /**
12
12
  * Schedule cadence used when `enabled` is true.
13
13
  */
14
- export type Frequency = ClosedEnum<typeof Frequency>;
15
- export declare const Frequency$zodSchema: z.ZodEnum<{
14
+ export type EvalTemplateScheduleFrequency = ClosedEnum<typeof EvalTemplateScheduleFrequency>;
15
+ export declare const EvalTemplateScheduleFrequency$zodSchema: z.ZodEnum<{
16
16
  daily: "daily";
17
17
  every_other_day: "every_other_day";
18
18
  weekly: "weekly";
@@ -22,7 +22,7 @@ export declare const Frequency$zodSchema: z.ZodEnum<{
22
22
  */
23
23
  export type EvalTemplateSchedule = {
24
24
  enabled?: boolean | undefined;
25
- frequency?: Frequency | undefined;
25
+ frequency?: EvalTemplateScheduleFrequency | undefined;
26
26
  };
27
27
  export declare const EvalTemplateSchedule$zodSchema: z.ZodType<EvalTemplateSchedule>;
28
28
  //# sourceMappingURL=evaltemplateschedule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"evaltemplateschedule.d.ts","sourceRoot":"","sources":["../../src/models/evaltemplateschedule.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,SAAS;;;;CAIZ,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAErD,eAAO,MAAM,mBAAmB;;;;EAI4B,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAQA,CAAC"}
1
+ {"version":3,"file":"evaltemplateschedule.d.ts","sourceRoot":"","sources":["../../src/models/evaltemplateschedule.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;CAIhC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,OAAO,6BAA6B,CACrC,CAAC;AAEF,eAAO,MAAM,uCAAuC;;;;EAIQ,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,6BAA6B,GAAG,SAAS,CAAC;CACvD,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAOA,CAAC"}
@@ -6,12 +6,12 @@ import * as z from "zod";
6
6
  /**
7
7
  * Schedule cadence used when `enabled` is true.
8
8
  */
9
- export const Frequency = {
9
+ export const EvalTemplateScheduleFrequency = {
10
10
  Daily: "daily",
11
11
  EveryOtherDay: "every_other_day",
12
12
  Weekly: "weekly",
13
13
  };
14
- export const Frequency$zodSchema = z.enum([
14
+ export const EvalTemplateScheduleFrequency$zodSchema = z.enum([
15
15
  "daily",
16
16
  "every_other_day",
17
17
  "weekly",
@@ -19,6 +19,7 @@ export const Frequency$zodSchema = z.enum([
19
19
  export const EvalTemplateSchedule$zodSchema = z
20
20
  .object({
21
21
  enabled: z.boolean().default(false).describe("Whether each eval created from the template receives a schedule."),
22
- frequency: Frequency$zodSchema.default("weekly").describe("Schedule cadence used when `enabled` is true."),
22
+ frequency: EvalTemplateScheduleFrequency$zodSchema.default("weekly")
23
+ .describe("Schedule cadence used when `enabled` is true."),
23
24
  }).describe("Schedule copied into every eval created from the template.");
24
25
  //# sourceMappingURL=evaltemplateschedule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"evaltemplateschedule.js","sourceRoot":"","sources":["../../src/models/evaltemplateschedule.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,KAAK,EAAE,OAAO;IACd,aAAa,EAAE,iBAAiB;IAChC,MAAM,EAAE,QAAQ;CACR,CAAC;AAMX,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,OAAO;IACP,iBAAiB;IACjB,QAAQ;CACT,CAAC,CAAC,QAAQ,CAAC,+CAA+C,CAAC,CAAC;AAU7D,MAAM,CAAC,MAAM,8BAA8B,GAAoC,CAAC;KAC7E,MAAM,CAAC;IACN,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAC1C,kEAAkE,CACnE;IACD,SAAS,EAAE,mBAAmB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,QAAQ,CACvD,+CAA+C,CAChD;CACF,CAAC,CAAC,QAAQ,CAAC,4DAA4D,CAAC,CAAC"}
1
+ {"version":3,"file":"evaltemplateschedule.js","sourceRoot":"","sources":["../../src/models/evaltemplateschedule.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,KAAK,EAAE,OAAO;IACd,aAAa,EAAE,iBAAiB;IAChC,MAAM,EAAE,QAAQ;CACR,CAAC;AAQX,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,IAAI,CAAC;IAC5D,OAAO;IACP,iBAAiB;IACjB,QAAQ;CACT,CAAC,CAAC,QAAQ,CAAC,+CAA+C,CAAC,CAAC;AAU7D,MAAM,CAAC,MAAM,8BAA8B,GAAoC,CAAC;KAC7E,MAAM,CAAC;IACN,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAC1C,kEAAkE,CACnE;IACD,SAAS,EAAE,uCAAuC,CAAC,OAAO,CAAC,QAAQ,CAAC;SACjE,QAAQ,CAAC,+CAA+C,CAAC;CAC7D,CAAC,CAAC,QAAQ,CAAC,4DAA4D,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import * as z from "zod";
2
+ import { V2PromptTargetInput } from "./v2prompttargetinput.js";
3
+ export type SetV2PromptTargetsRequest = {
4
+ topic_id: string;
5
+ targets: Array<V2PromptTargetInput>;
6
+ };
7
+ export declare const SetV2PromptTargetsRequest$zodSchema: z.ZodType<SetV2PromptTargetsRequest>;
8
+ //# sourceMappingURL=setv2prompttargetsrequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setv2prompttargetsrequest.d.ts","sourceRoot":"","sources":["../../src/models/setv2prompttargetsrequest.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,yBAAyB,CAQzB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 483b0230664b
4
+ */
5
+ import * as z from "zod";
6
+ import { V2PromptTargetInput$zodSchema, } from "./v2prompttargetinput.js";
7
+ export const SetV2PromptTargetsRequest$zodSchema = z.object({
8
+ targets: z.array(V2PromptTargetInput$zodSchema).describe("The complete set of answer engines and coding agents for the topic. Targets you leave out stop running. List an agent harness more than once to run it on several models."),
9
+ topic_id: z.string().describe("Prompt topic ID from `GET /v2/prompts/topics`."),
10
+ });
11
+ //# sourceMappingURL=setv2prompttargetsrequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setv2prompttargetsrequest.js","sourceRoot":"","sources":["../../src/models/setv2prompttargetsrequest.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAOlC,MAAM,CAAC,MAAM,mCAAmC,GAE5C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC,QAAQ,CACtD,2KAA2K,CAC5K;IACD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAC3B,gDAAgD,CACjD;CACF,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import * as z from "zod";
2
+ import { V2PromptTarget } from "./v2prompttarget.js";
3
+ export type SetV2PromptTargetsResponse = {
4
+ data?: Array<V2PromptTarget> | undefined;
5
+ count: number;
6
+ updated_prompt_count: number;
7
+ };
8
+ export declare const SetV2PromptTargetsResponse$zodSchema: z.ZodType<SetV2PromptTargetsResponse>;
9
+ //# sourceMappingURL=setv2prompttargetsresponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setv2prompttargetsresponse.d.ts","sourceRoot":"","sources":["../../src/models/setv2prompttargetsresponse.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,cAAc,EAA4B,MAAM,qBAAqB,CAAC;AAE/E,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,0BAA0B,CAO1B,CAAC"}
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 91889a594979
4
+ */
5
+ import * as z from "zod";
6
+ import { V2PromptTarget$zodSchema } from "./v2prompttarget.js";
7
+ export const SetV2PromptTargetsResponse$zodSchema = z.object({
8
+ count: z.int(),
9
+ data: z.array(V2PromptTarget$zodSchema).optional(),
10
+ updated_prompt_count: z.int().describe("Prompts in the topic whose platforms were set to match the targets."),
11
+ });
12
+ //# sourceMappingURL=setv2prompttargetsresponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setv2prompttargetsresponse.js","sourceRoot":"","sources":["../../src/models/setv2prompttargetsresponse.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAkB,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAQ/E,MAAM,CAAC,MAAM,oCAAoC,GAE7C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE;IAClD,oBAAoB,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CACpC,qEAAqE,CACtE;CACF,CAAC,CAAC"}
@@ -0,0 +1,44 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ import { V2PromptRunTopic } from "./v2promptruntopic.js";
4
+ export declare const V2PromptTargetKind: {
5
+ readonly AnswerEngine: "answer_engine";
6
+ readonly CodingAgent: "coding_agent";
7
+ };
8
+ export type V2PromptTargetKind = ClosedEnum<typeof V2PromptTargetKind>;
9
+ export declare const V2PromptTargetKind$zodSchema: z.ZodEnum<{
10
+ answer_engine: "answer_engine";
11
+ coding_agent: "coding_agent";
12
+ }>;
13
+ /**
14
+ * How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.
15
+ */
16
+ export declare const V2PromptTargetFrequency: {
17
+ readonly Daily: "daily";
18
+ readonly EveryOtherDay: "every_other_day";
19
+ readonly Weekly: "weekly";
20
+ readonly Manual: "manual";
21
+ };
22
+ /**
23
+ * How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.
24
+ */
25
+ export type V2PromptTargetFrequency = ClosedEnum<typeof V2PromptTargetFrequency>;
26
+ export declare const V2PromptTargetFrequency$zodSchema: z.ZodEnum<{
27
+ manual: "manual";
28
+ daily: "daily";
29
+ every_other_day: "every_other_day";
30
+ weekly: "weekly";
31
+ }>;
32
+ export type V2PromptTarget = {
33
+ id: string;
34
+ topic?: V2PromptRunTopic | null | undefined;
35
+ kind: V2PromptTargetKind;
36
+ answer_engine?: string | null | undefined;
37
+ agent?: string | null | undefined;
38
+ name: string;
39
+ frequency: V2PromptTargetFrequency;
40
+ next_run_at?: string | null | undefined;
41
+ last_run_at?: string | null | undefined;
42
+ };
43
+ export declare const V2PromptTarget$zodSchema: z.ZodType<V2PromptTarget>;
44
+ //# sourceMappingURL=v2prompttarget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2prompttarget.d.ts","sourceRoot":"","sources":["../../src/models/v2prompttarget.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEvE,eAAO,MAAM,4BAA4B;;;EAGvC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;CAK1B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAC9C,OAAO,uBAAuB,CAC/B,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;EAO7C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,IAAI,EAAE,kBAAkB,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,uBAAuB,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAkB7D,CAAC"}
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: bcbdf1e69dc7
4
+ */
5
+ import * as z from "zod";
6
+ import { V2PromptRunTopic$zodSchema, } from "./v2promptruntopic.js";
7
+ export const V2PromptTargetKind = {
8
+ AnswerEngine: "answer_engine",
9
+ CodingAgent: "coding_agent",
10
+ };
11
+ export const V2PromptTargetKind$zodSchema = z.enum([
12
+ "answer_engine",
13
+ "coding_agent",
14
+ ]);
15
+ /**
16
+ * How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.
17
+ */
18
+ export const V2PromptTargetFrequency = {
19
+ Daily: "daily",
20
+ EveryOtherDay: "every_other_day",
21
+ Weekly: "weekly",
22
+ Manual: "manual",
23
+ };
24
+ export const V2PromptTargetFrequency$zodSchema = z.enum([
25
+ "daily",
26
+ "every_other_day",
27
+ "weekly",
28
+ "manual",
29
+ ]).describe("How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.");
30
+ export const V2PromptTarget$zodSchema = z.object({
31
+ agent: z.string().nullable().optional().describe("Agent ID from `GET /v2/agents` for coding-agent targets."),
32
+ answer_engine: z.string().nullable().optional().describe("Answer engine identifier for answer-engine targets."),
33
+ frequency: V2PromptTargetFrequency$zodSchema.describe("How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization."),
34
+ id: z.string(),
35
+ kind: V2PromptTargetKind$zodSchema,
36
+ last_run_at: z.string().nullable().optional(),
37
+ name: z.string().describe("Human-readable answer engine or agent name."),
38
+ next_run_at: z.string().nullable().optional(),
39
+ topic: V2PromptRunTopic$zodSchema.nullable().optional().describe("Topic the target runs for. Null means it runs for every topic."),
40
+ });
41
+ //# sourceMappingURL=v2prompttarget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2prompttarget.js","sourceRoot":"","sources":["../../src/models/v2prompttarget.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAEL,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,YAAY,EAAE,eAAe;IAC7B,WAAW,EAAE,cAAc;CACnB,CAAC;AAGX,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IACjD,eAAe;IACf,cAAc;CACf,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE,OAAO;IACd,aAAa,EAAE,iBAAiB;IAChC,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACR,CAAC;AAQX,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,IAAI,CAAC;IACtD,OAAO;IACP,iBAAiB;IACjB,QAAQ;IACR,QAAQ;CACT,CAAC,CAAC,QAAQ,CACT,6KAA6K,CAC9K,CAAC;AAcF,MAAM,CAAC,MAAM,wBAAwB,GAA8B,CAAC,CAAC,MAAM,CAAC;IAC1E,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC9C,0DAA0D,CAC3D;IACD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACtD,qDAAqD,CACtD;IACD,SAAS,EAAE,iCAAiC,CAAC,QAAQ,CACnD,6KAA6K,CAC9K;IACD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6CAA6C,CAAC;IACxE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,KAAK,EAAE,0BAA0B,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC9D,gEAAgE,CACjE;CACF,CAAC,CAAC"}
@@ -0,0 +1,47 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ export declare const AnswerEngine: {
4
+ readonly Chatgpt: "chatgpt";
5
+ readonly GoogleAiOverviews: "google-ai-overviews";
6
+ readonly GoogleAiMode: "google-ai-mode";
7
+ readonly GeminiSearch: "gemini-search";
8
+ readonly Perplexity: "perplexity";
9
+ readonly Claude: "claude";
10
+ readonly MicrosoftCopilot: "microsoft-copilot";
11
+ };
12
+ export type AnswerEngine = ClosedEnum<typeof AnswerEngine>;
13
+ export declare const AnswerEngine$zodSchema: z.ZodEnum<{
14
+ chatgpt: "chatgpt";
15
+ "google-ai-overviews": "google-ai-overviews";
16
+ "google-ai-mode": "google-ai-mode";
17
+ "gemini-search": "gemini-search";
18
+ perplexity: "perplexity";
19
+ claude: "claude";
20
+ "microsoft-copilot": "microsoft-copilot";
21
+ }>;
22
+ /**
23
+ * How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.
24
+ */
25
+ export declare const V2PromptTargetInputFrequency: {
26
+ readonly Daily: "daily";
27
+ readonly EveryOtherDay: "every_other_day";
28
+ readonly Weekly: "weekly";
29
+ readonly Manual: "manual";
30
+ };
31
+ /**
32
+ * How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.
33
+ */
34
+ export type V2PromptTargetInputFrequency = ClosedEnum<typeof V2PromptTargetInputFrequency>;
35
+ export declare const V2PromptTargetInputFrequency$zodSchema: z.ZodEnum<{
36
+ manual: "manual";
37
+ daily: "daily";
38
+ every_other_day: "every_other_day";
39
+ weekly: "weekly";
40
+ }>;
41
+ export type V2PromptTargetInput = {
42
+ answer_engine?: AnswerEngine | null | undefined;
43
+ agent?: string | null | undefined;
44
+ frequency?: V2PromptTargetInputFrequency | undefined;
45
+ };
46
+ export declare const V2PromptTargetInput$zodSchema: z.ZodType<V2PromptTargetInput>;
47
+ //# sourceMappingURL=v2prompttargetinput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2prompttargetinput.d.ts","sourceRoot":"","sources":["../../src/models/v2prompttargetinput.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,eAAO,MAAM,YAAY;;;;;;;;CAQf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,eAAO,MAAM,sBAAsB;;;;;;;;EAQjC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;CAK/B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,4BAA4B,CACpC,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;;;EAOlD,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,CAAC,EAAE,YAAY,GAAG,IAAI,GAAG,SAAS,CAAC;IAChD,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,SAAS,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;CACtD,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAWrE,CAAC"}
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 69ccb1989872
4
+ */
5
+ import * as z from "zod";
6
+ export const AnswerEngine = {
7
+ Chatgpt: "chatgpt",
8
+ GoogleAiOverviews: "google-ai-overviews",
9
+ GoogleAiMode: "google-ai-mode",
10
+ GeminiSearch: "gemini-search",
11
+ Perplexity: "perplexity",
12
+ Claude: "claude",
13
+ MicrosoftCopilot: "microsoft-copilot",
14
+ };
15
+ export const AnswerEngine$zodSchema = z.enum([
16
+ "chatgpt",
17
+ "google-ai-overviews",
18
+ "google-ai-mode",
19
+ "gemini-search",
20
+ "perplexity",
21
+ "claude",
22
+ "microsoft-copilot",
23
+ ]);
24
+ /**
25
+ * How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.
26
+ */
27
+ export const V2PromptTargetInputFrequency = {
28
+ Daily: "daily",
29
+ EveryOtherDay: "every_other_day",
30
+ Weekly: "weekly",
31
+ Manual: "manual",
32
+ };
33
+ export const V2PromptTargetInputFrequency$zodSchema = z.enum([
34
+ "daily",
35
+ "every_other_day",
36
+ "weekly",
37
+ "manual",
38
+ ]).describe("How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.");
39
+ export const V2PromptTargetInput$zodSchema = z
40
+ .object({
41
+ agent: z.string().nullable().optional().describe("Runnable agent from `GET /v2/agents`, a coding-agent harness and model such as `claude-code:claude-opus-5-5`. Set this or `answer_engine`, not both."),
42
+ answer_engine: AnswerEngine$zodSchema.nullable().optional().describe("Answer engine to run the topic's prompts on. Set this or `agent`, not both."),
43
+ frequency: V2PromptTargetInputFrequency$zodSchema.default("daily").describe("How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization."),
44
+ });
45
+ //# sourceMappingURL=v2prompttargetinput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2prompttargetinput.js","sourceRoot":"","sources":["../../src/models/v2prompttargetinput.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,OAAO,EAAE,SAAS;IAClB,iBAAiB,EAAE,qBAAqB;IACxC,YAAY,EAAE,gBAAgB;IAC9B,YAAY,EAAE,eAAe;IAC7B,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,gBAAgB,EAAE,mBAAmB;CAC7B,CAAC;AAGX,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,SAAS;IACT,qBAAqB;IACrB,gBAAgB;IAChB,eAAe;IACf,YAAY;IACZ,QAAQ;IACR,mBAAmB;CACpB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,KAAK,EAAE,OAAO;IACd,aAAa,EAAE,iBAAiB;IAChC,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACR,CAAC;AAQX,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3D,OAAO;IACP,iBAAiB;IACjB,QAAQ;IACR,QAAQ;CACT,CAAC,CAAC,QAAQ,CACT,6KAA6K,CAC9K,CAAC;AAQF,MAAM,CAAC,MAAM,6BAA6B,GAAmC,CAAC;KAC3E,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC9C,sJAAsJ,CACvJ;IACD,aAAa,EAAE,sBAAsB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAClE,6EAA6E,CAC9E;IACD,SAAS,EAAE,sCAAsC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,QAAQ,CACzE,6KAA6K,CAC9K;CACF,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as z from "zod";
2
+ import { HTTPValidationError } from "./httpvalidationerror.js";
3
+ import { V2PromptTargetsResponse } from "./v2prompttargetsresponse.js";
4
+ export type V2PromptTargetsListRequest = {
5
+ topic_id?: string | undefined;
6
+ };
7
+ export declare const V2PromptTargetsListRequest$zodSchema: z.ZodType<V2PromptTargetsListRequest>;
8
+ export type V2PromptTargetsListResponse = V2PromptTargetsResponse | HTTPValidationError;
9
+ export declare const V2PromptTargetsListResponse$zodSchema: z.ZodType<V2PromptTargetsListResponse>;
10
+ //# sourceMappingURL=v2prompttargetslistop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2prompttargetslistop.d.ts","sourceRoot":"","sources":["../../src/models/v2prompttargetslistop.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,uBAAuB,EAExB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,0BAA0B,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAE3E,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,0BAA0B,CAG1B,CAAC;AAEH,MAAM,MAAM,2BAA2B,GACnC,uBAAuB,GACvB,mBAAmB,CAAC;AAExB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,2BAA2B,CAI3B,CAAC"}
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 31f493d5ba11
4
+ */
5
+ import * as z from "zod";
6
+ import { HTTPValidationError$zodSchema, } from "./httpvalidationerror.js";
7
+ import { V2PromptTargetsResponse$zodSchema, } from "./v2prompttargetsresponse.js";
8
+ export const V2PromptTargetsListRequest$zodSchema = z.object({
9
+ topic_id: z.string().describe("Optional prompt topic ID.").optional(),
10
+ });
11
+ export const V2PromptTargetsListResponse$zodSchema = z.union([
12
+ V2PromptTargetsResponse$zodSchema,
13
+ HTTPValidationError$zodSchema,
14
+ ]);
15
+ //# sourceMappingURL=v2prompttargetslistop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2prompttargetslistop.js","sourceRoot":"","sources":["../../src/models/v2prompttargetslistop.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,iCAAiC,GAClC,MAAM,8BAA8B,CAAC;AAItC,MAAM,CAAC,MAAM,oCAAoC,GAE7C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC,QAAQ,EAAE;CACtE,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,qCAAqC,GAE9C,CAAC,CAAC,KAAK,CAAC;IACV,iCAAiC;IACjC,6BAA6B;CAC9B,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import * as z from "zod";
2
+ import { V2PromptTarget } from "./v2prompttarget.js";
3
+ export type V2PromptTargetsResponse = {
4
+ data?: Array<V2PromptTarget> | undefined;
5
+ count: number;
6
+ };
7
+ export declare const V2PromptTargetsResponse$zodSchema: z.ZodType<V2PromptTargetsResponse>;
8
+ //# sourceMappingURL=v2prompttargetsresponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2prompttargetsresponse.d.ts","sourceRoot":"","sources":["../../src/models/v2prompttargetsresponse.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,cAAc,EAA4B,MAAM,qBAAqB,CAAC;AAE/E,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,uBAAuB,CAIvB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 25379b3b6438
4
+ */
5
+ import * as z from "zod";
6
+ import { V2PromptTarget$zodSchema } from "./v2prompttarget.js";
7
+ export const V2PromptTargetsResponse$zodSchema = z.object({
8
+ count: z.int(),
9
+ data: z.array(V2PromptTarget$zodSchema).optional(),
10
+ });
11
+ //# sourceMappingURL=v2prompttargetsresponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2prompttargetsresponse.js","sourceRoot":"","sources":["../../src/models/v2prompttargetsresponse.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAkB,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAO/E,MAAM,CAAC,MAAM,iCAAiC,GAE1C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as z from "zod";
2
+ import { HTTPValidationError } from "./httpvalidationerror.js";
3
+ import { SetV2PromptTargetsResponse } from "./setv2prompttargetsresponse.js";
4
+ export type V2PromptTargetsSetResponse = SetV2PromptTargetsResponse | HTTPValidationError;
5
+ export declare const V2PromptTargetsSetResponse$zodSchema: z.ZodType<V2PromptTargetsSetResponse>;
6
+ //# sourceMappingURL=v2prompttargetssetop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2prompttargetssetop.d.ts","sourceRoot":"","sources":["../../src/models/v2prompttargetssetop.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,0BAA0B,EAE3B,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,0BAA0B,GAClC,0BAA0B,GAC1B,mBAAmB,CAAC;AAExB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,0BAA0B,CAI1B,CAAC"}
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 4187502eab53
4
+ */
5
+ import * as z from "zod";
6
+ import { HTTPValidationError$zodSchema, } from "./httpvalidationerror.js";
7
+ import { SetV2PromptTargetsResponse$zodSchema, } from "./setv2prompttargetsresponse.js";
8
+ export const V2PromptTargetsSetResponse$zodSchema = z.union([
9
+ SetV2PromptTargetsResponse$zodSchema,
10
+ HTTPValidationError$zodSchema,
11
+ ]);
12
+ //# sourceMappingURL=v2prompttargetssetop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2prompttargetssetop.js","sourceRoot":"","sources":["../../src/models/v2prompttargetssetop.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,oCAAoC,GACrC,MAAM,iCAAiC,CAAC;AAMzC,MAAM,CAAC,MAAM,oCAAoC,GAE7C,CAAC,CAAC,KAAK,CAAC;IACV,oCAAoC;IACpC,6BAA6B;CAC9B,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tool-names.d.ts","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAySlE,CAAC"}
1
+ {"version":3,"file":"tool-names.d.ts","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAiTlE,CAAC"}
package/esm/tool-names.js CHANGED
@@ -52,6 +52,14 @@ export const toolNames = [
52
52
  "name": "prompts-topics-delete",
53
53
  "description": "Delete Topic\n\nArchives a prompt topic. Set `archive_prompts` to archive remaining prompts; otherwise the request fails with `400` if prompts remain."
54
54
  },
55
+ {
56
+ "name": "prompts-targets-list",
57
+ "description": "List Targets\n\nReturns the answer engines and coding agents that run the organization's prompts on schedule, with each target's topic and frequency. Provide `topic_id` to list one topic's targets."
58
+ },
59
+ {
60
+ "name": "prompts-targets-set",
61
+ "description": "Set Targets\n\nSets which answer engines and coding agents run a topic's prompts on schedule, the same way the prompt editor does. The list replaces the topic's targets: targets you leave out stop running. Every prompt in the topic is set to exactly these platforms; you can still narrow one prompt afterwards with `platform_ids`. Name coding agents with IDs from `GET /v2/agents`, and list a harness more than once to run it on several models. To pick agents for a single run without changing the schedule, pass `agent` to `POST /v2/prompts/runs` instead."
62
+ },
55
63
  {
56
64
  "name": "prompts-runs-list",
57
65
  "description": "List Prompt Runs\n\nReturns stored prompt runs with limit-and-offset pagination, without exposing raw runtime or provider configuration. Filter by prompt, platform, or date range."
@@ -74,7 +82,7 @@ export const toolNames = [
74
82
  },
75
83
  {
76
84
  "name": "prompts-run",
77
- "description": "Run Prompts\n\nQueue saved prompts on answer engines and coding agents.\n\nProvide `prompt_ids` to run selected prompts, or omit them to run all active\nprompts. By default the run uses the organization's configured targets.\nProvide `agent` with IDs from `GET /v2/agents` to run the prompts on\nspecific coding-agent harnesses and models instead, for example to compare\nhow several coding tools answer the same developer question. Results\ninclude mentions and citations. Saved prompt run settings apply to\ncoding-agent targets. The response returns a run ID to poll with\n`GET /v2/prompts/runs/{run_id}/status`."
85
+ "description": "Run Prompts\n\nQueue saved prompts on answer engines and coding agents.\n\nProvide `prompt_ids` to run selected prompts, or omit them to run all active\nprompts. By default the run uses the organization's configured targets,\nlisted by `GET /v2/prompts/targets`.\nProvide `agent` with IDs from `GET /v2/agents` to run the prompts on\nspecific coding-agent harnesses and models instead, for example to compare\nhow several coding tools answer the same developer question. Results\ninclude mentions and citations. Saved prompt run settings apply to\ncoding-agent targets. The response returns a run ID to poll with\n`GET /v2/prompts/runs/{run_id}/status`."
78
86
  },
79
87
  {
80
88
  "name": "prompts-run-status",
@@ -258,7 +266,7 @@ export const toolNames = [
258
266
  },
259
267
  {
260
268
  "name": "agents-list",
261
- "description": "List Agents\n\nReturns the coding-agent harness-and-model combinations your plan can run, as single agent IDs. Pass them as `agent` to `POST /v2/prompts/runs` to see how coding agents answer your prompts, with mentions and citations; to `POST /v2/agent-preference/evals` to see whether agents recommend your company over one competitor; or to `POST /v2/evals` and `POST /v2/eval-runs` to measure how well agents complete tasks with your product."
269
+ "description": "List Agents\n\nReturns the coding-agent harness-and-model combinations your plan can run, as single agent IDs. Pass them as `agent` to `POST /v2/prompts/runs` to see how coding agents answer your prompts, with mentions and citations, or to `PUT /v2/prompts/targets` to run them on a schedule; to `POST /v2/agent-preference/evals` to see whether agents recommend your company over one competitor; or to `POST /v2/evals` and `POST /v2/eval-runs` to measure how well agents complete tasks with your product."
262
270
  },
263
271
  {
264
272
  "name": "repositories-list",
@@ -1 +1 @@
1
- {"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,SAAS,GAAgD;IACpE;QACE,MAAM,EAAE,YAAY;QACpB,aAAa,EAAE,6GAA6G;KAC7H;IACD;QACE,MAAM,EAAE,wBAAwB;QAChC,aAAa,EAAE,0HAA0H;KAC1I;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,aAAa,EAAE,6YAA6Y;KAC7Z;IACD;QACE,MAAM,EAAE,8BAA8B;QACtC,aAAa,EAAE,qOAAqO;KACrP;IACD;QACE,MAAM,EAAE,2BAA2B;QACnC,aAAa,EAAE,wQAAwQ;KACxR;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,aAAa,EAAE,yLAAyL;KACzM;IACD;QACE,MAAM,EAAE,uCAAuC;QAC/C,aAAa,EAAE,4YAA4Y;KAC5Z;IACD;QACE,MAAM,EAAE,cAAc;QACtB,aAAa,EAAE,qHAAqH;KACrI;IACD;QACE,MAAM,EAAE,gBAAgB;QACxB,aAAa,EAAE,6JAA6J;KAC7K;IACD;QACE,MAAM,EAAE,qBAAqB;QAC7B,aAAa,EAAE,yEAAyE;KACzF;IACD;QACE,MAAM,EAAE,uBAAuB;QAC/B,aAAa,EAAE,qEAAqE;KACrF;IACD;QACE,MAAM,EAAE,uBAAuB;QAC/B,aAAa,EAAE,uEAAuE;KACvF;IACD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C3B,aAAa,EAAE,oFAAoF;KACpG;IACD;QACE,MAAM,EAAE,kBAAkB;QAC1B,aAAa,EAAE,iGAAiG;KACjH;IACD;QACE,MAAM,EAAE,YAAY;QACpB,aAAa,EAAE,qFAAqF;KACrG;IACD;QACE,MAAM,EAAE,aAAa;QACrB,aAAa,EAAE,wFAAwF;KACxG;CACF,CAAC"}
1
+ {"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,SAAS,GAAgD;IACpE;QACE,MAAM,EAAE,YAAY;QACpB,aAAa,EAAE,6GAA6G;KAC7H;IACD;QACE,MAAM,EAAE,wBAAwB;QAChC,aAAa,EAAE,0HAA0H;KAC1I;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,aAAa,EAAE,6YAA6Y;KAC7Z;IACD;QACE,MAAM,EAAE,8BAA8B;QACtC,aAAa,EAAE,qOAAqO;KACrP;IACD;QACE,MAAM,EAAE,2BAA2B;QACnC,aAAa,EAAE,wQAAwQ;KACxR;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,aAAa,EAAE,yLAAyL;KACzM;IACD;QACE,MAAM,EAAE,uCAAuC;QAC/C,aAAa,EAAE,4YAA4Y;KAC5Z;IACD;QACE,MAAM,EAAE,cAAc;QACtB,aAAa,EAAE,qHAAqH;KACrI;IACD;QACE,MAAM,EAAE,gBAAgB;QACxB,aAAa,EAAE,6JAA6J;KAC7K;IACD;QACE,MAAM,EAAE,qBAAqB;QAC7B,aAAa,EAAE,yEAAyE;KACzF;IACD;QACE,MAAM,EAAE,uBAAuB;QAC/B,aAAa,EAAE,qEAAqE;KACrF;IACD;QACE,MAAM,EAAE,uBAAuB;QAC/B,aAAa,EAAE,uEAAuE;KACvF;IACD;QACE,MAAM,EAAE,uBAAuB;QAC/B,aAAa,EAAE,wJAAwJ;KACxK;IACD;QACE,MAAM,EAAE,sBAAsB;QAC9B,aAAa,EAAE,uMA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MAAM,EAAE,mBAAmB;QAC3B,aAAa,EAAE,oFAAoF;KACpG;IACD;QACE,MAAM,EAAE,kBAAkB;QAC1B,aAAa,EAAE,iGAAiG;KACjH;IACD;QACE,MAAM,EAAE,YAAY;QACpB,aAAa,EAAE,qFAAqF;KACrG;IACD;QACE,MAAM,EAAE,aAAa;QACrB,aAAa,EAAE,wFAAwF;KACxG;CACF,CAAC"}
@@ -0,0 +1,47 @@
1
+ // Feedback tool: lets an agent pass the user's feedback to the Lightsage team.
2
+ //
3
+ // The tool sends nothing itself. Its input is the feedback, and MCP Analytics
4
+ // records every call's input (lib/tracker.js), so the team reads it in MCP
5
+ // Analytics > Feedback. It is therefore only registered on requests that are
6
+ // recorded; elsewhere the feedback would be lost while the agent reports it
7
+ // as sent.
8
+ //
9
+ // Modelled on the Neon MCP server's send_feedback tool.
10
+ //
11
+ // Hand-written (not Speakeasy-generated) so regeneration does not remove it.
12
+
13
+ import { z } from "zod";
14
+
15
+ export const FEEDBACK_TOOL_NAME = "send_feedback";
16
+
17
+ // MCP Analytics cuts longer strings, so reject them instead.
18
+ export const MAX_FEEDBACK_LENGTH = 10_000;
19
+
20
+ const feedbackInputSchema = z.strictObject({
21
+ feedback: z.string().trim().min(1).max(MAX_FEEDBACK_LENGTH).describe(
22
+ "The feedback to send to Lightsage. Do not include passwords, API keys, or other secrets.",
23
+ ),
24
+ });
25
+
26
+ /** Register the feedback tool on a server whose calls MCP Analytics records. */
27
+ export function registerFeedbackTool(mcpServer) {
28
+ mcpServer.registerTool(
29
+ FEEDBACK_TOOL_NAME,
30
+ {
31
+ title: "Send Feedback",
32
+ description:
33
+ "Send feedback about Lightsage or this MCP server to the Lightsage team. Only call this when the user asks to give feedback. Sends only the feedback text, with no Lightsage data or credentials.",
34
+ inputSchema: feedbackInputSchema,
35
+ annotations: {
36
+ title: "Send Feedback",
37
+ readOnlyHint: false,
38
+ destructiveHint: false,
39
+ idempotentHint: false,
40
+ openWorldHint: true,
41
+ },
42
+ },
43
+ async () => ({
44
+ content: [{ type: "text", text: "Feedback received. Thank you!" }],
45
+ }),
46
+ );
47
+ }
package/lib/tracker.js CHANGED
@@ -11,6 +11,7 @@ import { createHash } from "node:crypto";
11
11
  import { finished } from "node:stream/promises";
12
12
  import { Lightsage } from "@lightsage/mcp-tracker";
13
13
  import { waitUntil } from "@vercel/functions";
14
+ import { FEEDBACK_TOOL_NAME } from "./feedback.js";
14
15
 
15
16
  const apiKey = process.env.LIGHTSAGE_MCP_TRACKER_API_KEY?.trim();
16
17
 
@@ -86,10 +87,11 @@ const CATALOG_TOOLS = new Set(["list_tools", "describe_tool_input"]);
86
87
  * Tool results hold callers' own Lightsage data, so keep only failures, which
87
88
  * are needed to debug errors. Catalog tools return tool names and schemas, not
88
89
  * data, and their results are how MCP Analytics spots a search that found
89
- * nothing.
90
+ * nothing. The feedback tool returns only a confirmation.
90
91
  */
91
92
  export function shouldStoreResponse({ toolName, isError }) {
92
- return isError || CATALOG_TOOLS.has(toolName);
93
+ return isError || CATALOG_TOOLS.has(toolName) ||
94
+ toolName === FEEDBACK_TOOL_NAME;
93
95
  }
94
96
 
95
97
  // One tracker per process; each request's server is instrumented separately.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightsage/mcp",
3
- "version": "0.4.18",
3
+ "version": "0.4.19",
4
4
  "author": "Speakeasy",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -28,7 +28,7 @@
28
28
  "@stricli/core": "^1.1.2",
29
29
  "@vercel/functions": "3.9.11",
30
30
  "express": "^5.1.0",
31
- "zod": "^4.0.0"
31
+ "zod": "^4.6.6"
32
32
  },
33
33
  "overrides": {
34
34
  "@modelcontextprotocol/sdk": "1.32.1",
@@ -38,12 +38,13 @@
38
38
  "ip-address": ">=10.7.1 <11.0.0",
39
39
  "nanoid@^5.0.0": ">=5.1.16 <6.0.0",
40
40
  "brace-expansion@^2.0.0": ">=2.1.4 <3.0.0",
41
- "body-parser": ">=2.3.0 <3.0.0",
41
+ "body-parser": ">=2.4.0 <3.0.0",
42
42
  "@hono/node-server": ">=1.19.15 <2.0.0",
43
43
  "brace-expansion@^1.1.7": ">=1.1.18 <2.0.0",
44
44
  "brace-expansion@^5.0.0": ">=5.0.9 <6.0.0",
45
45
  "proxy-addr": ">=2.0.8 <3.0.0",
46
- "qs": ">=6.16.0 <7.0.0",
46
+ "qs": ">=6.16.1 <7.0.0",
47
+ "zod": "$zod",
47
48
  "tmp": ">=0.2.6 <0.3.0",
48
49
  "node-forge": "$node-forge"
49
50
  },
@@ -24,7 +24,7 @@ import { Result } from "../types/fp.js";
24
24
  * List Agents
25
25
  *
26
26
  * @remarks
27
- * Returns the coding-agent harness-and-model combinations your plan can run, as single agent IDs. Pass them as `agent` to `POST /v2/prompts/runs` to see how coding agents answer your prompts, with mentions and citations; to `POST /v2/agent-preference/evals` to see whether agents recommend your company over one competitor; or to `POST /v2/evals` and `POST /v2/eval-runs` to measure how well agents complete tasks with your product.
27
+ * Returns the coding-agent harness-and-model combinations your plan can run, as single agent IDs. Pass them as `agent` to `POST /v2/prompts/runs` to see how coding agents answer your prompts, with mentions and citations, or to `PUT /v2/prompts/targets` to run them on a schedule; to `POST /v2/agent-preference/evals` to see whether agents recommend your company over one competitor; or to `POST /v2/evals` and `POST /v2/eval-runs` to measure how well agents complete tasks with your product.
28
28
  */
29
29
  export function agentsList(
30
30
  client$: LightsageMcpCore,
@@ -33,7 +33,8 @@ import { Result } from "../types/fp.js";
33
33
  * Queue saved prompts on answer engines and coding agents.
34
34
  *
35
35
  * Provide `prompt_ids` to run selected prompts, or omit them to run all active
36
- * prompts. By default the run uses the organization's configured targets.
36
+ * prompts. By default the run uses the organization's configured targets,
37
+ * listed by `GET /v2/prompts/targets`.
37
38
  * Provide `agent` with IDs from `GET /v2/agents` to run the prompts on
38
39
  * specific coding-agent harnesses and models instead, for example to compare
39
40
  * how several coding tools answer the same developer question. Results