mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-04 02:31:27 +00:00
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:
parent
b333f6af66
commit
73042573c6
7 changed files with 90 additions and 1110 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
"Sync now" on the marketplace to try again.
|
||||
{skippedCount} skill{skippedCount === 1 ? "" : "s"} could not be fetched after retries. Use "Sync
|
||||
now" on the marketplace to try again.
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
/>,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
1171
ui/litellm-dashboard/src/lib/http/schema.d.ts
generated
vendored
1171
ui/litellm-dashboard/src/lib/http/schema.d.ts
generated
vendored
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue