fix(claude-code): fix post-merge CI: regen API types, reformat

Regenerate schema.d.ts (drifted after merging 127 staging commits, not
just this PR's allowed_skills addition), reformat proxy_server.py and
claude_code_endpoints.py per ruff, and reformat the skill-picker UI files
per prettier.
This commit is contained in:
Krrish Dholakia 2026-07-11 18:10:18 -07:00
parent b333f6af66
commit 73042573c6
7 changed files with 90 additions and 1110 deletions

View file

@ -6458,9 +6458,7 @@ class ProxyConfig:
await backfill_default_skill_marketplace(prisma_client=prisma_client)
except Exception as e: # noqa: BLE001 # startup backfill must never block proxy boot
verbose_proxy_logger.exception(
"litellm.proxy.proxy_server.py::ProxyConfig:_init_skill_marketplace_backfill_in_db - {}".format(
str(e)
)
"litellm.proxy.proxy_server.py::ProxyConfig:_init_skill_marketplace_backfill_in_db - {}".format(str(e))
)
async def _init_vector_stores_in_db(self, prisma_client: PrismaClient):

View file

@ -157,9 +157,7 @@ class RegisterMarketplaceRequest(BaseModel):
source: str = Field(
...,
description=(
"'org/repo' shorthand, a github/gitlab/bitbucket URL, or a direct URL to a marketplace.json file"
),
description=("'org/repo' shorthand, a github/gitlab/bitbucket URL, or a direct URL to a marketplace.json file"),
)
name: Optional[str] = Field(
None, description="Marketplace slug to register under. Defaults to a slug derived from the source."

View file

@ -15,7 +15,12 @@ import PluginTable from "./plugin_table";
import SkillDetail from "@/components/claude_code_plugins/skill_detail";
import { isAdminRole } from "@/utils/roles";
import NotificationsManager from "@/components/molecules/notifications_manager";
import { Plugin, ListPluginsResponse, MarketplaceSource, ListMarketplacesResponse } from "@/components/claude_code_plugins/types";
import {
Plugin,
ListPluginsResponse,
MarketplaceSource,
ListMarketplacesResponse,
} from "@/components/claude_code_plugins/types";
interface ClaudeCodePluginsPanelProps {
accessToken: string | null;

View file

@ -144,8 +144,8 @@ const AddMarketplaceForm: React.FC<AddMarketplaceFormProps> = ({ visible, onClos
{skippedCount > 0 && (
<p className="mt-1 flex items-center gap-1 text-sm text-amber-600">
<ExclamationCircleFilled />
{skippedCount} skill{skippedCount === 1 ? "" : "s"} could not be fetched after retries. Use
&quot;Sync now&quot; on the marketplace to try again.
{skippedCount} skill{skippedCount === 1 ? "" : "s"} could not be fetched after retries. Use &quot;Sync
now&quot; on the marketplace to try again.
</p>
)}
</div>

View file

@ -90,7 +90,11 @@ describe("SkillPermissionsPicker", () => {
renderWithProviders(
<SkillPermissionsPicker
accessToken="tok"
value={["anthropic-agent-skills--document-skills", "anthropic-agent-skills--pdf-skills", "other-marketplace--some-skill"]}
value={[
"anthropic-agent-skills--document-skills",
"anthropic-agent-skills--pdf-skills",
"other-marketplace--some-skill",
]}
onChange={onChange}
/>,
);

View file

@ -40,9 +40,7 @@ const SkillPermissionsPicker: React.FC<SkillPermissionsPickerProps> = ({ value,
const handleToggleSkill = (skillName: string, checked: boolean) => {
if (disabled) return;
onChange(
checked ? Array.from(new Set([...selected, skillName])) : selected.filter((name) => name !== skillName),
);
onChange(checked ? Array.from(new Set([...selected, skillName])) : selected.filter((name) => name !== skillName));
};
if (marketplacesLoading) {

File diff suppressed because it is too large Load diff