@lidianai/cli 0.1.6 → 0.1.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lidianai/cli",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -32,6 +32,9 @@ export interface DiscoverApiResponse {
32
32
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
33
33
  description?: string | null;
34
34
  pricingCents: number;
35
+ inputMode?: "params" | "params.body";
36
+ requestSchema?: Record<string, unknown> | null;
37
+ requestRequired?: string[];
35
38
  }>;
36
39
  matchScore?: number;
37
40
  matchPercent?: number;
@@ -17,7 +17,6 @@ export interface FeedbackApiResponse {
17
17
 
18
18
  export const runFeedbackCommand = async (
19
19
  http: HttpClient,
20
- apiKey: string | undefined,
21
20
  input: FeedbackCommandInput,
22
21
  ): Promise<FeedbackApiResponse> => {
23
22
  if (!isUuid(input.executionId)) {
@@ -33,7 +32,7 @@ export const runFeedbackCommand = async (
33
32
  return http.post<FeedbackApiResponse, FeedbackCommandInput>(
34
33
  "/v1/consume/feedback",
35
34
  input,
36
- apiKey,
35
+ undefined,
37
36
  );
38
37
  };
39
38
 
package/src/index.ts CHANGED
@@ -140,7 +140,7 @@ const main = async (): Promise<void> => {
140
140
  }
141
141
  const rank = toIntInRange(rankRaw, "rank", 0, 10);
142
142
  const feedback = asString(parsed.options.feedback);
143
- const result = await runFeedbackCommand(http, apiKey, {
143
+ const result = await runFeedbackCommand(http, {
144
144
  executionId,
145
145
  rank,
146
146
  ...(feedback ? { feedback } : {}),