@meetkai/mka1 0.53.8 → 0.53.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 (78) hide show
  1. package/bin/mcp-server.js +16 -9
  2. package/bin/mcp-server.js.map +10 -10
  3. package/dist/commonjs/funcs/llmEvalsListSamples.js +1 -0
  4. package/dist/commonjs/funcs/llmEvalsListSamples.js.map +1 -1
  5. package/dist/commonjs/lib/config.d.ts +2 -2
  6. package/dist/commonjs/lib/config.js +2 -2
  7. package/dist/commonjs/lib/config.js.map +1 -1
  8. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  9. package/dist/commonjs/mcp-server/mcp-server.js.map +1 -1
  10. package/dist/commonjs/mcp-server/server.js +1 -1
  11. package/dist/commonjs/mcp-server/server.js.map +1 -1
  12. package/dist/commonjs/models/components/evalsampleobject.d.ts +5 -0
  13. package/dist/commonjs/models/components/evalsampleobject.d.ts.map +1 -1
  14. package/dist/commonjs/models/components/evalsampleobject.js +2 -0
  15. package/dist/commonjs/models/components/evalsampleobject.js.map +1 -1
  16. package/dist/commonjs/models/operations/exchangeapikeytoken.d.ts +2 -2
  17. package/dist/commonjs/models/operations/exchangeapikeytoken.d.ts.map +1 -1
  18. package/dist/commonjs/models/operations/exchangeapikeytoken.js +2 -4
  19. package/dist/commonjs/models/operations/exchangeapikeytoken.js.map +1 -1
  20. package/dist/commonjs/models/operations/getjwtfromkey.d.ts +2 -2
  21. package/dist/commonjs/models/operations/getjwtfromkey.d.ts.map +1 -1
  22. package/dist/commonjs/models/operations/getjwtfromkey.js +2 -2
  23. package/dist/commonjs/models/operations/getjwtfromkey.js.map +1 -1
  24. package/dist/commonjs/models/operations/listevalsamples.d.ts +2 -0
  25. package/dist/commonjs/models/operations/listevalsamples.d.ts.map +1 -1
  26. package/dist/commonjs/models/operations/listevalsamples.js +4 -0
  27. package/dist/commonjs/models/operations/listevalsamples.js.map +1 -1
  28. package/dist/commonjs/react-query/llmEvalsListSamples.core.d.ts +1 -0
  29. package/dist/commonjs/react-query/llmEvalsListSamples.core.d.ts.map +1 -1
  30. package/dist/commonjs/react-query/llmEvalsListSamples.core.js +1 -0
  31. package/dist/commonjs/react-query/llmEvalsListSamples.core.js.map +1 -1
  32. package/dist/commonjs/react-query/llmEvalsListSamples.d.ts +2 -0
  33. package/dist/commonjs/react-query/llmEvalsListSamples.d.ts.map +1 -1
  34. package/dist/commonjs/react-query/llmEvalsListSamples.js.map +1 -1
  35. package/dist/esm/funcs/llmEvalsListSamples.js +1 -0
  36. package/dist/esm/funcs/llmEvalsListSamples.js.map +1 -1
  37. package/dist/esm/lib/config.d.ts +2 -2
  38. package/dist/esm/lib/config.js +2 -2
  39. package/dist/esm/lib/config.js.map +1 -1
  40. package/dist/esm/mcp-server/mcp-server.js +1 -1
  41. package/dist/esm/mcp-server/mcp-server.js.map +1 -1
  42. package/dist/esm/mcp-server/server.js +1 -1
  43. package/dist/esm/mcp-server/server.js.map +1 -1
  44. package/dist/esm/models/components/evalsampleobject.d.ts +5 -0
  45. package/dist/esm/models/components/evalsampleobject.d.ts.map +1 -1
  46. package/dist/esm/models/components/evalsampleobject.js +2 -0
  47. package/dist/esm/models/components/evalsampleobject.js.map +1 -1
  48. package/dist/esm/models/operations/exchangeapikeytoken.d.ts +2 -2
  49. package/dist/esm/models/operations/exchangeapikeytoken.d.ts.map +1 -1
  50. package/dist/esm/models/operations/exchangeapikeytoken.js +2 -4
  51. package/dist/esm/models/operations/exchangeapikeytoken.js.map +1 -1
  52. package/dist/esm/models/operations/getjwtfromkey.d.ts +2 -2
  53. package/dist/esm/models/operations/getjwtfromkey.d.ts.map +1 -1
  54. package/dist/esm/models/operations/getjwtfromkey.js +2 -2
  55. package/dist/esm/models/operations/getjwtfromkey.js.map +1 -1
  56. package/dist/esm/models/operations/listevalsamples.d.ts +2 -0
  57. package/dist/esm/models/operations/listevalsamples.d.ts.map +1 -1
  58. package/dist/esm/models/operations/listevalsamples.js +4 -0
  59. package/dist/esm/models/operations/listevalsamples.js.map +1 -1
  60. package/dist/esm/react-query/llmEvalsListSamples.core.d.ts +1 -0
  61. package/dist/esm/react-query/llmEvalsListSamples.core.d.ts.map +1 -1
  62. package/dist/esm/react-query/llmEvalsListSamples.core.js +1 -0
  63. package/dist/esm/react-query/llmEvalsListSamples.core.js.map +1 -1
  64. package/dist/esm/react-query/llmEvalsListSamples.d.ts +2 -0
  65. package/dist/esm/react-query/llmEvalsListSamples.d.ts.map +1 -1
  66. package/dist/esm/react-query/llmEvalsListSamples.js.map +1 -1
  67. package/jsr.json +1 -1
  68. package/package.json +1 -1
  69. package/src/funcs/llmEvalsListSamples.ts +1 -0
  70. package/src/lib/config.ts +2 -2
  71. package/src/mcp-server/mcp-server.ts +1 -1
  72. package/src/mcp-server/server.ts +1 -1
  73. package/src/models/components/evalsampleobject.ts +7 -0
  74. package/src/models/operations/exchangeapikeytoken.ts +4 -6
  75. package/src/models/operations/getjwtfromkey.ts +4 -4
  76. package/src/models/operations/listevalsamples.ts +6 -0
  77. package/src/react-query/llmEvalsListSamples.core.ts +2 -0
  78. package/src/react-query/llmEvalsListSamples.ts +2 -0
@@ -26,6 +26,10 @@ export type EvalSampleObject = {
26
26
  target: string | null;
27
27
  responseId: string | null;
28
28
  outputText: string | null;
29
+ /**
30
+ * Model reasoning ('thinking') captured from the response's reasoning items, kept separate from `output_text` so graders and extraction never see it. Truncated at 64 KB of UTF-8 with a marker appended. Null when the model returned none, when the provider only sent encrypted reasoning, and for transcription tasks.
31
+ */
32
+ reasoning: string | null;
29
33
  extractedOutput: string | null;
30
34
  scores: { [k: string]: any };
31
35
  judge: { [k: string]: any } | null;
@@ -53,6 +57,7 @@ export const EvalSampleObject$inboundSchema: z.ZodType<
53
57
  target: z.nullable(z.string()),
54
58
  response_id: z.nullable(z.string()),
55
59
  output_text: z.nullable(z.string()),
60
+ reasoning: z.nullable(z.string()),
56
61
  extracted_output: z.nullable(z.string()),
57
62
  scores: z.record(z.any()),
58
63
  judge: z.nullable(z.record(z.any())),
@@ -88,6 +93,7 @@ export type EvalSampleObject$Outbound = {
88
93
  target: string | null;
89
94
  response_id: string | null;
90
95
  output_text: string | null;
96
+ reasoning: string | null;
91
97
  extracted_output: string | null;
92
98
  scores: { [k: string]: any };
93
99
  judge: { [k: string]: any } | null;
@@ -115,6 +121,7 @@ export const EvalSampleObject$outboundSchema: z.ZodType<
115
121
  target: z.nullable(z.string()),
116
122
  responseId: z.nullable(z.string()),
117
123
  outputText: z.nullable(z.string()),
124
+ reasoning: z.nullable(z.string()),
118
125
  extractedOutput: z.nullable(z.string()),
119
126
  scores: z.record(z.any()),
120
127
  judge: z.nullable(z.record(z.any())),
@@ -32,7 +32,7 @@ export type ExchangeApiKeyTokenRequest = {
32
32
  * Optional external end-user identifier forwarded by the API gateway.
33
33
  */
34
34
  xOnBehalfOf?: string | undefined;
35
- requestBody?: ExchangeApiKeyTokenRequestBody | undefined;
35
+ requestBody: ExchangeApiKeyTokenRequestBody;
36
36
  };
37
37
 
38
38
  /**
@@ -102,8 +102,7 @@ export const ExchangeApiKeyTokenRequest$inboundSchema: z.ZodType<
102
102
  unknown
103
103
  > = z.object({
104
104
  "X-On-Behalf-Of": z.string().optional(),
105
- RequestBody: z.lazy(() => ExchangeApiKeyTokenRequestBody$inboundSchema)
106
- .optional(),
105
+ RequestBody: z.lazy(() => ExchangeApiKeyTokenRequestBody$inboundSchema),
107
106
  }).transform((v) => {
108
107
  return remap$(v, {
109
108
  "X-On-Behalf-Of": "xOnBehalfOf",
@@ -113,7 +112,7 @@ export const ExchangeApiKeyTokenRequest$inboundSchema: z.ZodType<
113
112
  /** @internal */
114
113
  export type ExchangeApiKeyTokenRequest$Outbound = {
115
114
  "X-On-Behalf-Of"?: string | undefined;
116
- RequestBody?: ExchangeApiKeyTokenRequestBody$Outbound | undefined;
115
+ RequestBody: ExchangeApiKeyTokenRequestBody$Outbound;
117
116
  };
118
117
 
119
118
  /** @internal */
@@ -123,8 +122,7 @@ export const ExchangeApiKeyTokenRequest$outboundSchema: z.ZodType<
123
122
  ExchangeApiKeyTokenRequest
124
123
  > = z.object({
125
124
  xOnBehalfOf: z.string().optional(),
126
- requestBody: z.lazy(() => ExchangeApiKeyTokenRequestBody$outboundSchema)
127
- .optional(),
125
+ requestBody: z.lazy(() => ExchangeApiKeyTokenRequestBody$outboundSchema),
128
126
  }).transform((v) => {
129
127
  return remap$(v, {
130
128
  xOnBehalfOf: "X-On-Behalf-Of",
@@ -32,7 +32,7 @@ export type GetJwtFromKeyRequest = {
32
32
  * Optional external end-user identifier forwarded by the API gateway.
33
33
  */
34
34
  xOnBehalfOf?: string | undefined;
35
- requestBody?: GetJwtFromKeyRequestBody | undefined;
35
+ requestBody: GetJwtFromKeyRequestBody;
36
36
  };
37
37
 
38
38
  /**
@@ -100,7 +100,7 @@ export const GetJwtFromKeyRequest$inboundSchema: z.ZodType<
100
100
  unknown
101
101
  > = z.object({
102
102
  "X-On-Behalf-Of": z.string().optional(),
103
- RequestBody: z.lazy(() => GetJwtFromKeyRequestBody$inboundSchema).optional(),
103
+ RequestBody: z.lazy(() => GetJwtFromKeyRequestBody$inboundSchema),
104
104
  }).transform((v) => {
105
105
  return remap$(v, {
106
106
  "X-On-Behalf-Of": "xOnBehalfOf",
@@ -110,7 +110,7 @@ export const GetJwtFromKeyRequest$inboundSchema: z.ZodType<
110
110
  /** @internal */
111
111
  export type GetJwtFromKeyRequest$Outbound = {
112
112
  "X-On-Behalf-Of"?: string | undefined;
113
- RequestBody?: GetJwtFromKeyRequestBody$Outbound | undefined;
113
+ RequestBody: GetJwtFromKeyRequestBody$Outbound;
114
114
  };
115
115
 
116
116
  /** @internal */
@@ -120,7 +120,7 @@ export const GetJwtFromKeyRequest$outboundSchema: z.ZodType<
120
120
  GetJwtFromKeyRequest
121
121
  > = z.object({
122
122
  xOnBehalfOf: z.string().optional(),
123
- requestBody: z.lazy(() => GetJwtFromKeyRequestBody$outboundSchema).optional(),
123
+ requestBody: z.lazy(() => GetJwtFromKeyRequestBody$outboundSchema),
124
124
  }).transform((v) => {
125
125
  return remap$(v, {
126
126
  xOnBehalfOf: "X-On-Behalf-Of",
@@ -31,6 +31,7 @@ export type ListEvalSamplesRequest = {
31
31
  scoreMin?: number | undefined;
32
32
  scoreMax?: number | undefined;
33
33
  includeDatasetRow?: boolean | undefined;
34
+ includeReasoning?: boolean | undefined;
34
35
  sampleIndex?: string | undefined;
35
36
  /**
36
37
  * Optional external end-user identifier forwarded by the API gateway.
@@ -63,6 +64,7 @@ export const ListEvalSamplesRequest$inboundSchema: z.ZodType<
63
64
  score_min: z.number().optional(),
64
65
  score_max: z.number().optional(),
65
66
  include_dataset_row: z.boolean().default(true),
67
+ include_reasoning: z.boolean().default(false),
66
68
  sample_index: z.string().optional(),
67
69
  "X-On-Behalf-Of": z.string().optional(),
68
70
  }).transform((v) => {
@@ -73,6 +75,7 @@ export const ListEvalSamplesRequest$inboundSchema: z.ZodType<
73
75
  "score_min": "scoreMin",
74
76
  "score_max": "scoreMax",
75
77
  "include_dataset_row": "includeDatasetRow",
78
+ "include_reasoning": "includeReasoning",
76
79
  "sample_index": "sampleIndex",
77
80
  "X-On-Behalf-Of": "xOnBehalfOf",
78
81
  });
@@ -89,6 +92,7 @@ export type ListEvalSamplesRequest$Outbound = {
89
92
  score_min?: number | undefined;
90
93
  score_max?: number | undefined;
91
94
  include_dataset_row: boolean;
95
+ include_reasoning: boolean;
92
96
  sample_index?: string | undefined;
93
97
  "X-On-Behalf-Of"?: string | undefined;
94
98
  };
@@ -109,6 +113,7 @@ export const ListEvalSamplesRequest$outboundSchema: z.ZodType<
109
113
  scoreMin: z.number().optional(),
110
114
  scoreMax: z.number().optional(),
111
115
  includeDatasetRow: z.boolean().default(true),
116
+ includeReasoning: z.boolean().default(false),
112
117
  sampleIndex: z.string().optional(),
113
118
  xOnBehalfOf: z.string().optional(),
114
119
  }).transform((v) => {
@@ -119,6 +124,7 @@ export const ListEvalSamplesRequest$outboundSchema: z.ZodType<
119
124
  scoreMin: "score_min",
120
125
  scoreMax: "score_max",
121
126
  includeDatasetRow: "include_dataset_row",
127
+ includeReasoning: "include_reasoning",
122
128
  sampleIndex: "sample_index",
123
129
  xOnBehalfOf: "X-On-Behalf-Of",
124
130
  });
@@ -52,6 +52,7 @@ export function buildLlmEvalsListSamplesQuery(
52
52
  scoreMin: request.scoreMin,
53
53
  scoreMax: request.scoreMax,
54
54
  includeDatasetRow: request.includeDatasetRow,
55
+ includeReasoning: request.includeReasoning,
55
56
  sampleIndex: request.sampleIndex,
56
57
  xOnBehalfOf: request.xOnBehalfOf,
57
58
  }),
@@ -90,6 +91,7 @@ export function queryKeyLlmEvalsListSamples(
90
91
  scoreMin?: number | undefined;
91
92
  scoreMax?: number | undefined;
92
93
  includeDatasetRow?: boolean | undefined;
94
+ includeReasoning?: boolean | undefined;
93
95
  sampleIndex?: string | undefined;
94
96
  xOnBehalfOf?: string | undefined;
95
97
  },
@@ -115,6 +115,7 @@ export function setLlmEvalsListSamplesData(
115
115
  scoreMin?: number | undefined;
116
116
  scoreMax?: number | undefined;
117
117
  includeDatasetRow?: boolean | undefined;
118
+ includeReasoning?: boolean | undefined;
118
119
  sampleIndex?: string | undefined;
119
120
  xOnBehalfOf?: string | undefined;
120
121
  },
@@ -141,6 +142,7 @@ export function invalidateLlmEvalsListSamples(
141
142
  scoreMin?: number | undefined;
142
143
  scoreMax?: number | undefined;
143
144
  includeDatasetRow?: boolean | undefined;
145
+ includeReasoning?: boolean | undefined;
144
146
  sampleIndex?: string | undefined;
145
147
  xOnBehalfOf?: string | undefined;
146
148
  },