Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"allow": ["URL", "URLSearchParams"]
}
],
"typescript/no-unnecessary-boolean-literal-compare": "error",
"jsx-a11y/interactive-supports-focus": "off",
"unicorn/prefer-spread": "error"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/alert/issues/edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export const editCommand = buildCommand({
id: stringifyUnknown(updated.id ?? rule.id),
// The workflows endpoint returns `enabled` rather than `status`; map it
// back to a status label so human/JSON output matches the create path.
status: updated.enabled === false ? "disabled" : "active",
status: !updated.enabled ? "disabled" : "active",
} satisfies IssueAlertEditOutput);
},
});
2 changes: 1 addition & 1 deletion packages/cli/src/commands/alert/metrics/edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ export const editCommand = buildCommand({
org: orgSlug,
id: stringifyUnknown(updated.id ?? rule.id),
// The detectors endpoint returns `enabled` rather than `status`.
status: updated.enabled === false ? "disabled" : "active",
status: !updated.enabled ? "disabled" : "active",
} satisfies MetricAlertEditOutput);
},
});
2 changes: 1 addition & 1 deletion packages/cli/test/skill-eval/helpers/judge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ or
}

const parsed = JSON.parse(jsonMatch[0]) as {
pass: boolean;
pass: unknown;
reason: string;
};
return {
Expand Down
5 changes: 1 addition & 4 deletions packages/mcp-core/src/tools/tools.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ test("unlisted tools declare a unique display title", () => {
test("no tool is both read-only and destructive", () => {
for (const tool of Object.values(tools.default)) {
assert(
!(
tool.annotations.readOnlyHint === true &&
tool.annotations.destructiveHint === true
),
!(tool.annotations.readOnlyHint && tool.annotations.destructiveHint),
`${tool.name} cannot be both read-only and destructive`,
);
}
Expand Down
Loading