Skip to content

Commit f25e90a

Browse files
committed
various coderabbit fixes
1 parent 220c610 commit f25e90a

File tree

8 files changed

+20
-16
lines changed

8 files changed

+20
-16
lines changed

apps/webapp/app/routes/api.v1.projects.$projectRef.$env.workers.$tagName.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
112112
runs: `${$env.APP_ORIGIN}${v3RunsPath(
113113
{ slug: project.organization.slug },
114114
{ slug: project.slug },
115-
{ slug: env },
115+
{ slug: runtimeEnv.slug },
116116
{ versions: [currentWorker.version] }
117117
)}`,
118118
};

packages/cli-v3/src/commands/install-mcp.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { confirm, intro, isCancel, log, multiselect, select, spinner } from "@clack/prompts";
1+
import { confirm, intro, isCancel, log, multiselect, select } from "@clack/prompts";
22
import chalk from "chalk";
33
import { Command } from "commander";
44
import { extname } from "node:path";
@@ -15,6 +15,7 @@ import {
1515
} from "../utilities/fileSystem.js";
1616
import { printStandloneInitialBanner } from "../utilities/initialBanner.js";
1717
import { VERSION } from "../version.js";
18+
import { spinner } from "../utilities/windows.js";
1819

1920
const cliVersion = VERSION as string;
2021
const cliTag = cliVersion.includes("v4-beta") ? "v4-beta" : "latest";
@@ -317,7 +318,7 @@ async function installMcpServerForClient(
317318
return;
318319
}
319320

320-
const clientSpinner = spinner({ indicator: "dots" });
321+
const clientSpinner = spinner();
321322

322323
clientSpinner.start(`Installing in ${clientName}`);
323324

packages/cli-v3/src/commands/install-rules.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export function configureInstallRulesCommand(program: Command) {
9292
.addOption(
9393
new CommandOption(
9494
"--branch <branch>",
95-
"The branch to install the rules from. This is useful if you want to install the rules from a local file."
95+
"The branch to install the rules from, the default is main"
9696
).hideHelp()
9797
)
9898
.addOption(
@@ -152,7 +152,7 @@ type InstallRulesResult = {
152152
};
153153

154154
export type InstallRulesWizardOptions = {
155-
targets?: Array<(typeof targets)[number]>;
155+
target?: Array<(typeof targets)[number]>;
156156
manifestPath?: string;
157157
branch?: string;
158158
};

packages/cli-v3/src/commands/mcp.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,15 @@ export async function mcpCommand(options: McpCommandOptions) {
8585

8686
logger.loggerLevel = "none";
8787

88-
const server = new McpServer({
89-
name: serverMetadata.name,
90-
version: serverMetadata.version,
91-
description: serverMetadata.instructions,
92-
});
88+
const server = new McpServer(
89+
{
90+
name: serverMetadata.name,
91+
version: serverMetadata.version,
92+
},
93+
{
94+
instructions: serverMetadata.instructions,
95+
}
96+
);
9397

9498
server.server.oninitialized = async () => {
9599
fileLogger?.log("initialized mcp command", { options, argv: process.argv });

packages/cli-v3/src/commands/update.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,11 @@ export async function tryResolveTriggerPackageVersion(
342342
const { packageJson } = await getPackageJson(dirname(resolvedPath), {
343343
test: (filePath) => {
344344
// We need to skip any type-marker files
345-
if (filePath.includes("dist/commonjs")) {
345+
if (filePath.includes(join("dist", "commonjs"))) {
346346
return false;
347347
}
348348

349-
if (filePath.includes("dist/esm")) {
349+
if (filePath.includes(join("dist", "esm"))) {
350350
return false;
351351
}
352352

packages/cli-v3/src/mcp/formatters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
RetrieveRunResponse,
44
RetrieveRunTraceResponseBody,
55
} from "@trigger.dev/core/v3/schemas";
6-
import { CursorPageResponse } from "@trigger.dev/core/v3/zodfetch";
6+
import type { CursorPageResponse } from "@trigger.dev/core/v3/zodfetch";
77

88
export function formatRun(run: RetrieveRunResponse): string {
99
const lines: string[] = [];

packages/cli-v3/src/mcp/tools/docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import z from "zod";
1+
import { z } from "zod";
22
import { toolsMetadata } from "../config.js";
33
import { toolHandler } from "../utils.js";
44
import { performSearch } from "../mintlifyClient.js";

packages/cli-v3/src/mcp/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { CallToolResult, ServerNotification } from "@modelcontextprotocol/sdk/types.js";
2-
import z from "zod";
2+
import { z } from "zod";
33
import { ToolMeta } from "./types.js";
4-
import { loadConfig } from "../config.js";
54

65
export function respondWithError(error: unknown): CallToolResult {
76
return {

0 commit comments

Comments
 (0)