fix(ci): repair main type and lint failures · openclaw/openclaw@760dd98
steipete
·
2026-04-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -571,12 +571,12 @@ export function registerPluginsCli(program: Command) {
|
571 | 571 | } = await import("../plugins/installed-plugin-index-records.js"); |
572 | 572 | const { buildPluginDiagnosticsReport } = await import("../plugins/status.js"); |
573 | 573 | const { |
| 574 | + applyPluginUninstallDirectoryRemoval, |
574 | 575 | formatUninstallActionLabels, |
575 | 576 | formatUninstallSlotResetPreview, |
| 577 | + planPluginUninstall, |
576 | 578 | resolveUninstallChannelConfigKeys, |
577 | | - resolveUninstallDirectoryTarget, |
578 | 579 | UNINSTALL_ACTION_LABELS, |
579 | | - uninstallPlugin, |
580 | 580 | } = await import("../plugins/uninstall.js"); |
581 | 581 | const { commitPluginInstallRecordsWithConfig } = |
582 | 582 | await import("./plugins-install-record-commit.js"); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -12,19 +12,6 @@ const OPENAI_CODEX_MODEL = {
|
12 | 12 | cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 }, |
13 | 13 | }; |
14 | 14 | |
15 | | -const OPENAI_CODEX_MINI_MODEL = { |
16 | | - ...OPENAI_CODEX_MODEL, |
17 | | -id: "gpt-5.4-mini", |
18 | | -name: "GPT-5.4 Mini", |
19 | | -contextWindow: 272_000, |
20 | | -}; |
21 | | - |
22 | | -const OPENAI_CODEX_PRO_MODEL = { |
23 | | - ...OPENAI_CODEX_MODEL, |
24 | | -id: "gpt-5.4-pro", |
25 | | -name: "GPT-5.4 Pro", |
26 | | -}; |
27 | | - |
28 | 15 | const OPENAI_CODEX_53_MODEL = { |
29 | 16 | ...OPENAI_CODEX_MODEL, |
30 | 17 | id: "gpt-5.4", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -604,6 +604,9 @@ function buildInstalledPluginIndex(
|
604 | 604 | if (record.enabledByDefault === true) { |
605 | 605 | indexRecord.enabledByDefault = true; |
606 | 606 | } |
| 607 | +if (record.syntheticAuthRefs && record.syntheticAuthRefs.length > 0) { |
| 608 | +indexRecord.syntheticAuthRefs = record.syntheticAuthRefs; |
| 609 | +} |
607 | 610 | if (record.setupSource) { |
608 | 611 | indexRecord.setupSource = record.setupSource; |
609 | 612 | } |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 2 | |
| 3 | +type SyntheticAuthRegistrySnapshotResult = { |
| 4 | +source: "persisted" | "provided" | "derived"; |
| 5 | +snapshot: { |
| 6 | +plugins: Array<{ syntheticAuthRefs?: string[] }>; |
| 7 | +}; |
| 8 | +diagnostics: []; |
| 9 | +}; |
| 10 | + |
3 | 11 | const getPluginRegistryState = vi.hoisted(() => vi.fn()); |
4 | 12 | const pluginRegistryMocks = vi.hoisted(() => ({ |
5 | | -loadPluginRegistrySnapshotWithMetadata: vi.fn((_params?: unknown) => ({ |
6 | | -source: "persisted", |
7 | | -snapshot: { plugins: [] }, |
8 | | -diagnostics: [], |
9 | | -})), |
| 13 | +loadPluginRegistrySnapshotWithMetadata: vi.fn( |
| 14 | +(_params?: unknown): SyntheticAuthRegistrySnapshotResult => ({ |
| 15 | +source: "persisted", |
| 16 | +snapshot: { plugins: [] }, |
| 17 | +diagnostics: [], |
| 18 | +}), |
| 19 | +), |
10 | 20 | })); |
11 | 21 | |
12 | 22 | vi.mock("./runtime-state.js", () => ({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。