@lidianai/cli 0.1.6 → 0.1.7
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 +1 -1
- package/src/commands/feedback.ts +1 -2
- package/src/index.ts +1 -1
package/package.json
CHANGED
package/src/commands/feedback.ts
CHANGED
|
@@ -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
|
-
|
|
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,
|
|
143
|
+
const result = await runFeedbackCommand(http, {
|
|
144
144
|
executionId,
|
|
145
145
|
rank,
|
|
146
146
|
...(feedback ? { feedback } : {}),
|