mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-17 14:01:34 +00:00
* feat(ui): add plugin catalog management * feat(gateway): add plugins.uninstall and richer plugin catalog metadata Adds a plugins.uninstall gateway method (operator.admin, control-plane write) backed by a lock-guarded uninstallManagedPlugin that mirrors the CLI flow: config cleanup, install-record removal, managed file deletion, and registry refresh. Bundled plugins stay disable-only. Catalog entries now carry a manifest-derived category and a removable flag; ClawHub search results expose download counts and verification tiers. * feat(ui): redesign plugins page with inventory, store shelves, and cover art Rebuilds /settings/plugins around three tabs: Installed (category-grouped inventory with overview stats, state filters, uninstall for external plugins, and inline MCP server management through the shared config seam), Discover (featured/official shelves plus one-click MCP connectors and curated ClawHub searches), and ClawHub (search with download counts and verification badges). Every catalog entry renders bundled cover art or a deterministic gradient monogram tile - no more empty boxes. Artwork generated with Codex CLI, shipped as 512px WebP under ui/public/plugin-art. * chore(ui): regenerate locale bundles for plugins manager strings * docs: describe plugins manager tabs, uninstall, and MCP connectors * fix(plugins): human catalog labels and un-pinned hosted fallback ids listManagedPlugins now prefers manifest names over registry package-name backfill, falls back to channel catalog labels and blurbs, and stops pinning expectedPluginId when a hosted feed entry only exposes its package name (which rejected every legitimate install of that package). Found via live gateway testing against ClawHub. * fix(ui): send minimal RFC 7396 merge patches for MCP server edits config.patch merges rather than replaces, so key removal needs an explicit null; sending the full config back made MCP server removal a no-op. Found via live gateway testing. * fix(ui): write explicit MCP transports for URL servers The MCP runtime defaults URL-only servers to SSE, so streamable HTTP endpoints saved by the add form or connector templates would fail at connect time. Connector templates now declare their transport and the add form infers streamable-http unless the URL follows the /sse convention. Flagged by autoreview against the transport resolver. * test(ui): wait for deferred plugin requests before resolving in e2e * feat(ui): plugins detail view, action menus, and unified ClawHub search Reworks the plugins page from PR #103176 feedback: merges the ClawHub tab into Discover (typing searches ClawHub inline and appends a quiet From ClawHub section, with Browse ClawHub demoted to a header text link), makes every row and store card open a plugin detail overlay (hero art, primary enable/install action, metadata table), and replaces enable/disable switches with a state chip plus an overflow menu (Enable/Disable, Remove for external plugins, View details) matching the ChatGPT-store install+menu pattern. MCP rows use the same menu; refresh is now icon-only. * chore(ui): regenerate locale bundles for plugins UI iteration * feat(ui): vetted, grouped connector catalog for the plugins store Expands Connect your world to 28 connectors organized into use-case shelves (Work & productivity, Coding & infrastructure, Home & media, Everyday life). Every entry passed a three-stage subagent review: official-docs verification plus live endpoint probes for MCP servers, ClawHub result-quality and malware/typosquat screening for curated searches, and an adversarial pass that dynamically registered OAuth clients to prove one-click viability. That review removed Figma (registration allowlisted, 403) and Atlassian (OAuth issuer-mismatch bug upstream), downgraded GitHub to PAT-based setup (no dynamic client registration upstream), fixed Linear (/sse retired) and Home Assistant (/api/mcp, streamable HTTP) endpoints, retargeted poisoned or dead searches (youtube, finance, hue dropped; calendar -> google calendar; stocks replaces finance), and added Todoist, Airtable, Canva, Stripe, Context7, DeepWiki, Hugging Face one-click MCP servers plus Jira, PDF, transcription, Kubernetes, Reddit, maps, translation, and notes searches. Keyless servers get a ready-to-use success message; new cover art included. * chore(ui): regenerate locale bundles for connector groups * fix(plugins): suppress hosted catalog rows once their package is installed Hosted feed entries without a declared runtime id fall back to their package name as catalog id, which never matches the installed runtime id, so the Discover shelf kept offering an already-installed package. Installed package names now also suppress official rows. Flagged by autoreview. * fix(plugins): pin declared runtime ids and surface connector errors in place The runtime-id pin now keys off explicitly declared catalog ids (plugin, channel, or provider) instead of string-comparing against the package name, so declared ids that equal their package name stay enforced while entry-id fallbacks stay unpinned. Connector add failures on Discover now render on the triggering card instead of the Installed tab's MCP section. Both flagged by autoreview; regression tests included. * feat(ui): full inventory artwork, pulse header, and two-column plugin list Every bundled plugin now ships distinctive cover art (113 new Codex CLI illustrations; 172 total, ~2.1MB WebP), so inventory rows and detail views never fall back to monogram tiles. The four stat cards give way to a compact inventory pulse: a segmented enabled/disabled/issues meter whose legend and counts live inside the filter chips. Inventory, MCP, and search rows flow into two columns when the panel is wide enough. * chore(ui): regenerate locale bundles for pulse header * fix(ui): omit stdio args from the MCP server row target Stdio MCP args routinely carry tokens, and the inventory is visible to read-only operators; mirror the config page and show only the command. Flagged by autoreview; regression test included. * fix(merge): point crestodian setup at relocated plugin commit/refresh modules * fix(merge): add bootstrapToken to plugins page test gateway harness * fix(plugins): name catalog install-action branches so Swift emits the union * fix(ui): satisfy strict lint on plugins page form parsing and mocks * chore(build): regen docs map, raise plugin-sdk declaration budget for new protocol surface * fix(ui): type the plugins page patch mock with its real call signature
383 lines
15 KiB
TypeScript
383 lines
15 KiB
TypeScript
// `openclaw plugins update` command implementation for tracked npm plugins and hook packs.
|
|
import { theme } from "../../packages/terminal-core/src/theme.js";
|
|
import {
|
|
assertConfigWriteAllowedInCurrentMode,
|
|
getRuntimeConfig,
|
|
readConfigFileSnapshotForWrite,
|
|
replaceConfigFile,
|
|
} from "../config/config.js";
|
|
import { createMergePatch } from "../config/io.write-prepare.js";
|
|
import { applyMergePatch } from "../config/merge-patch.js";
|
|
import { extractShippedPluginInstallConfigRecords } from "../config/plugin-install-config-migration.js";
|
|
import type { OpenClawConfig } from "../config/types.openclaw.js";
|
|
import type { PluginInstallRecord } from "../config/types.plugins.js";
|
|
import { updateNpmInstalledHookPacks } from "../hooks/update.js";
|
|
import { normalizeUpdateChannel } from "../infra/update-channels.js";
|
|
import {
|
|
containsConfigIncludeDirective,
|
|
resolveCombinedPluginAndHookConfigMutationPreflight,
|
|
resolveInstallConfigMutationPreflights,
|
|
selectInstallMutationWriteOptions,
|
|
} from "../plugins/install-persistence.js";
|
|
import { commitPluginInstallRecordsWithConfig } from "../plugins/install-record-commit.js";
|
|
import {
|
|
loadInstalledPluginIndexInstallRecords,
|
|
withoutPluginInstallRecords,
|
|
withPluginInstallRecords,
|
|
} from "../plugins/installed-plugin-index-records.js";
|
|
import { refreshPluginRegistryAfterConfigMutation } from "../plugins/registry-refresh.js";
|
|
import {
|
|
isPluginInstallRecordUpdateSource,
|
|
pluginInstallRecordMayMigrateConfigId,
|
|
updateNpmInstalledPlugins,
|
|
} from "../plugins/update.js";
|
|
import { defaultRuntime } from "../runtime.js";
|
|
import { VERSION } from "../version.js";
|
|
import { resolveClawHubRiskAcknowledgementCliOptions } from "./clawhub-risk-acknowledgement.js";
|
|
import { logPluginUpdateOutcomes } from "./plugins-update-outcomes.js";
|
|
import {
|
|
resolveHookPackUpdateSelection,
|
|
resolvePluginUpdateSelection,
|
|
} from "./plugins-update-selection.js";
|
|
import { promptYesNo } from "./prompt.js";
|
|
|
|
const DEPRECATED_DANGEROUS_FORCE_UNSAFE_UPDATE_WARNING =
|
|
"--dangerously-force-unsafe-install is deprecated and no longer affects plugin updates because built-in install-time dangerous-code scanning has been removed. Configure security.installPolicy for operator-owned install decisions.";
|
|
|
|
function mayMutatePluginInstallRecord(
|
|
record: PluginInstallRecord | undefined,
|
|
specOverride: string | undefined,
|
|
): boolean {
|
|
if (!isPluginInstallRecordUpdateSource(record)) {
|
|
return false;
|
|
}
|
|
if (record?.source === "npm") {
|
|
return Boolean(specOverride ?? record.spec);
|
|
}
|
|
if (record?.source === "git") {
|
|
return Boolean(record.spec);
|
|
}
|
|
if (record?.source === "clawhub") {
|
|
return Boolean(record.clawhubPackage);
|
|
}
|
|
return Boolean(record?.marketplaceSource && record.marketplacePlugin);
|
|
}
|
|
|
|
function pluginConfigReferencesId(config: ReturnType<typeof getRuntimeConfig>, pluginId: string) {
|
|
const plugins = config.plugins;
|
|
return (
|
|
plugins?.allow?.includes(pluginId) ||
|
|
plugins?.deny?.includes(pluginId) ||
|
|
Object.hasOwn(plugins?.entries ?? {}, pluginId) ||
|
|
plugins?.slots?.memory === pluginId ||
|
|
plugins?.slots?.contextEngine === pluginId
|
|
);
|
|
}
|
|
|
|
function shouldPreserveEmptyPlugins(params: {
|
|
parsed: unknown;
|
|
sourceConfig: ReturnType<typeof getRuntimeConfig>;
|
|
}): boolean {
|
|
const plugins = params.sourceConfig.plugins;
|
|
const parsedPlugins =
|
|
params.parsed && typeof params.parsed === "object" && !Array.isArray(params.parsed)
|
|
? (params.parsed as Record<string, unknown>).plugins
|
|
: undefined;
|
|
return Boolean(
|
|
plugins &&
|
|
(!Object.hasOwn(plugins, "installs") ||
|
|
Object.keys(plugins).some((key) => key !== "installs") ||
|
|
containsConfigIncludeDirective(parsedPlugins)),
|
|
);
|
|
}
|
|
|
|
function projectUpdaterResultOntoSourceConfig(params: {
|
|
runtimeBase: OpenClawConfig;
|
|
sourceBase: OpenClawConfig;
|
|
updatedConfig: OpenClawConfig;
|
|
}): OpenClawConfig {
|
|
const updatePatch = createMergePatch(params.runtimeBase, params.updatedConfig);
|
|
return applyMergePatch(params.sourceBase, updatePatch) as OpenClawConfig;
|
|
}
|
|
|
|
/** Run plugin/hook-pack updates, persist changed install records, and refresh runtime registry. */
|
|
export async function runPluginUpdateCommand(params: {
|
|
id?: string;
|
|
opts: {
|
|
all?: boolean;
|
|
acknowledgeClawHubRisk?: boolean;
|
|
dryRun?: boolean;
|
|
dangerouslyForceUnsafeInstall?: boolean;
|
|
};
|
|
}) {
|
|
assertConfigWriteAllowedInCurrentMode();
|
|
|
|
const sourceSnapshotPromise = readConfigFileSnapshotForWrite()
|
|
.then((prepared) => ({
|
|
...prepared,
|
|
writeOptions: selectInstallMutationWriteOptions(prepared.writeOptions),
|
|
}))
|
|
.catch(() => null);
|
|
const mutationSnapshot = params.opts.dryRun ? null : await sourceSnapshotPromise;
|
|
if (!params.opts.dryRun && !mutationSnapshot) {
|
|
defaultRuntime.error("Could not inspect config ownership before updating plugins or hooks.");
|
|
return defaultRuntime.exit(1);
|
|
}
|
|
if (mutationSnapshot && !mutationSnapshot.snapshot.valid) {
|
|
defaultRuntime.error("Cannot update plugins or hooks while the config is invalid.");
|
|
return defaultRuntime.exit(1);
|
|
}
|
|
// Bind selection, updater input, ownership checks, and persistence to one
|
|
// mutation-start snapshot so concurrent config changes cannot be resurrected.
|
|
const cfg = mutationSnapshot?.snapshot.runtimeConfig ?? getRuntimeConfig();
|
|
const sourceCfg = mutationSnapshot?.snapshot.sourceConfig ?? cfg;
|
|
const shippedPluginInstallRecords = mutationSnapshot
|
|
? {
|
|
...extractShippedPluginInstallConfigRecords(mutationSnapshot.snapshot.parsed),
|
|
...extractShippedPluginInstallConfigRecords(mutationSnapshot.snapshot.sourceConfig),
|
|
}
|
|
: extractShippedPluginInstallConfigRecords(cfg);
|
|
const persistedPluginInstallRecords = await loadInstalledPluginIndexInstallRecords();
|
|
// Persisted index records win over shipped legacy config during migration.
|
|
const pluginInstallRecords = {
|
|
...shippedPluginInstallRecords,
|
|
...persistedPluginInstallRecords,
|
|
};
|
|
const cfgWithPluginInstallRecords = withPluginInstallRecords(cfg, pluginInstallRecords);
|
|
const sourceCfgWithPluginInstallRecords = withPluginInstallRecords(
|
|
sourceCfg,
|
|
pluginInstallRecords,
|
|
);
|
|
const logger = {
|
|
info: (msg: string) => defaultRuntime.log(msg),
|
|
warn: (msg: string) => defaultRuntime.log(msg.includes("╭─") ? msg : theme.warn(msg)),
|
|
};
|
|
if (params.opts.dangerouslyForceUnsafeInstall) {
|
|
defaultRuntime.log(theme.warn(DEPRECATED_DANGEROUS_FORCE_UNSAFE_UPDATE_WARNING));
|
|
}
|
|
const pluginSelection = resolvePluginUpdateSelection({
|
|
installs: pluginInstallRecords,
|
|
rawId: params.id,
|
|
all: params.opts.all,
|
|
});
|
|
const hookSelection = resolveHookPackUpdateSelection({
|
|
installs: cfg.hooks?.internal?.installs ?? {},
|
|
rawId: params.id,
|
|
all: params.opts.all,
|
|
});
|
|
|
|
if (pluginSelection.pluginIds.length === 0 && hookSelection.hookIds.length === 0) {
|
|
if (params.opts.all) {
|
|
defaultRuntime.log("No tracked plugins or hook packs to update.");
|
|
return;
|
|
}
|
|
defaultRuntime.error("Provide a plugin or hook-pack id, or use --all.");
|
|
return defaultRuntime.exit(1);
|
|
}
|
|
|
|
const selectedHooks = cfg.hooks?.internal?.installs ?? {};
|
|
const pluginUpdateMayMutate =
|
|
!params.opts.dryRun &&
|
|
pluginSelection.pluginIds.some((pluginId) => {
|
|
return mayMutatePluginInstallRecord(
|
|
pluginInstallRecords[pluginId],
|
|
pluginSelection.specOverrides?.[pluginId],
|
|
);
|
|
});
|
|
const hookUpdateMayMutate =
|
|
!params.opts.dryRun &&
|
|
hookSelection.hookIds.some((hookId) => {
|
|
const record = selectedHooks[hookId];
|
|
return (
|
|
record?.source === "npm" && Boolean(hookSelection.specOverrides?.[hookId] ?? record.spec)
|
|
);
|
|
});
|
|
if (pluginUpdateMayMutate || hookUpdateMayMutate) {
|
|
if (!mutationSnapshot) {
|
|
defaultRuntime.error("Could not inspect config ownership before updating plugins or hooks.");
|
|
return defaultRuntime.exit(1);
|
|
}
|
|
const { hookMutation, pluginMutation } = resolveInstallConfigMutationPreflights({
|
|
parsed: (mutationSnapshot.snapshot.parsed ?? {}) as Record<string, unknown>,
|
|
snapshotPath: mutationSnapshot.snapshot.path,
|
|
writeOptions: mutationSnapshot.writeOptions,
|
|
});
|
|
// Write snapshots retain valid shipped install records in sourceConfig after
|
|
// include resolution; parsed also catches root-authored legacy records.
|
|
const pluginRecordCleanupMayMutate =
|
|
Object.keys(extractShippedPluginInstallConfigRecords(mutationSnapshot.snapshot.sourceConfig))
|
|
.length > 0 ||
|
|
Object.keys(extractShippedPluginInstallConfigRecords(mutationSnapshot.snapshot.parsed))
|
|
.length > 0;
|
|
const parsedConfig =
|
|
mutationSnapshot.snapshot.parsed &&
|
|
typeof mutationSnapshot.snapshot.parsed === "object" &&
|
|
!Array.isArray(mutationSnapshot.snapshot.parsed)
|
|
? (mutationSnapshot.snapshot.parsed as Record<string, unknown>)
|
|
: {};
|
|
const pluginReferencesMayBeUnresolved =
|
|
Object.hasOwn(parsedConfig, "$include") ||
|
|
containsConfigIncludeDirective(mutationSnapshot.snapshot.sourceConfig.plugins);
|
|
const pluginIdMigrationMayMutate = pluginSelection.pluginIds.some((pluginId) => {
|
|
return (
|
|
pluginInstallRecordMayMigrateConfigId({
|
|
pluginId,
|
|
record: pluginInstallRecords[pluginId],
|
|
specOverride: pluginSelection.specOverrides?.[pluginId],
|
|
}) &&
|
|
(pluginReferencesMayBeUnresolved ||
|
|
pluginConfigReferencesId(mutationSnapshot.snapshot.sourceConfig, pluginId))
|
|
);
|
|
});
|
|
// Manual update records stay in the index unless shipped-record cleanup or
|
|
// scoped-package compatibility migrates authored references from a legacy id.
|
|
const pluginConfigMayMutate = pluginRecordCleanupMayMutate || pluginIdMigrationMayMutate;
|
|
const blockedReasons = new Set<string>();
|
|
if (pluginConfigMayMutate && pluginMutation.mode === "blocked") {
|
|
blockedReasons.add(pluginMutation.reason);
|
|
}
|
|
if (hookUpdateMayMutate && hookMutation.mode === "blocked") {
|
|
blockedReasons.add(hookMutation.reason);
|
|
}
|
|
if (
|
|
pluginConfigMayMutate &&
|
|
hookUpdateMayMutate &&
|
|
pluginMutation.mode === "allowed" &&
|
|
hookMutation.mode === "allowed"
|
|
) {
|
|
// Config persistence can commit one include-owned top-level section, not
|
|
// a mixed plugin-and-hook mutation spanning root and include ownership.
|
|
const combinedMutation = resolveCombinedPluginAndHookConfigMutationPreflight({
|
|
parsed: (mutationSnapshot.snapshot.parsed ?? {}) as Record<string, unknown>,
|
|
snapshotPath: mutationSnapshot.snapshot.path,
|
|
});
|
|
if (combinedMutation.mode === "blocked") {
|
|
blockedReasons.add(combinedMutation.reason);
|
|
}
|
|
}
|
|
if (blockedReasons.size > 0) {
|
|
defaultRuntime.error(Array.from(blockedReasons).join(" "));
|
|
return defaultRuntime.exit(1);
|
|
}
|
|
}
|
|
|
|
const pluginResult =
|
|
pluginSelection.pluginIds.length > 0
|
|
? await updateNpmInstalledPlugins({
|
|
config: cfgWithPluginInstallRecords,
|
|
pluginIds: pluginSelection.pluginIds,
|
|
specOverrides: pluginSelection.specOverrides,
|
|
dryRun: params.opts.dryRun,
|
|
officialPluginUpdateChannel: params.opts.all
|
|
? (normalizeUpdateChannel(cfg.update?.channel) ?? undefined)
|
|
: undefined,
|
|
syncOfficialPluginInstalls: params.opts.all ? true : undefined,
|
|
coreVersion: VERSION,
|
|
dangerouslyForceUnsafeInstall: params.opts.dangerouslyForceUnsafeInstall,
|
|
...resolveClawHubRiskAcknowledgementCliOptions({
|
|
acknowledgeClawHubRisk: params.opts.acknowledgeClawHubRisk,
|
|
action: "updating",
|
|
allowPrompt: !params.opts.dryRun,
|
|
}),
|
|
logger,
|
|
onIntegrityDrift: async (drift) => {
|
|
const specLabel = drift.resolvedSpec ?? drift.spec;
|
|
defaultRuntime.log(
|
|
theme.warn(
|
|
`Integrity drift detected for "${drift.pluginId}" (${specLabel})` +
|
|
`\nExpected: ${drift.expectedIntegrity}` +
|
|
`\nActual: ${drift.actualIntegrity}`,
|
|
),
|
|
);
|
|
if (drift.dryRun) {
|
|
return true;
|
|
}
|
|
return await promptYesNo(`Continue updating "${drift.pluginId}" with this artifact?`);
|
|
},
|
|
})
|
|
: { config: cfgWithPluginInstallRecords, changed: false, outcomes: [] };
|
|
const hookResult =
|
|
hookSelection.hookIds.length > 0
|
|
? await updateNpmInstalledHookPacks({
|
|
config: pluginResult.config,
|
|
hookIds: hookSelection.hookIds,
|
|
specOverrides: hookSelection.specOverrides,
|
|
dryRun: params.opts.dryRun,
|
|
logger,
|
|
onIntegrityDrift: async (drift) => {
|
|
const specLabel = drift.resolvedSpec ?? drift.spec;
|
|
defaultRuntime.log(
|
|
theme.warn(
|
|
`Integrity drift detected for hook pack "${drift.hookId}" (${specLabel})` +
|
|
`\nExpected: ${drift.expectedIntegrity}` +
|
|
`\nActual: ${drift.actualIntegrity}`,
|
|
),
|
|
);
|
|
if (drift.dryRun) {
|
|
return true;
|
|
}
|
|
return await promptYesNo(
|
|
`Continue updating hook pack "${drift.hookId}" with this artifact?`,
|
|
);
|
|
},
|
|
})
|
|
: { config: pluginResult.config, changed: false, outcomes: [] };
|
|
|
|
const outcomeSummary = logPluginUpdateOutcomes({
|
|
outcomes: [...pluginResult.outcomes, ...hookResult.outcomes],
|
|
log: (message) => defaultRuntime.log(message),
|
|
});
|
|
|
|
if (!params.opts.dryRun && (pluginResult.changed || hookResult.changed)) {
|
|
const sourceSnapshot = mutationSnapshot ?? (await sourceSnapshotPromise);
|
|
const nextPluginInstallRecords = pluginResult.config.plugins?.installs ?? {};
|
|
const shouldPersistPluginInstallIndex =
|
|
pluginResult.changed || Object.keys(pluginInstallRecords).length > 0;
|
|
const sourceShapedUpdateConfig = projectUpdaterResultOntoSourceConfig({
|
|
runtimeBase: cfgWithPluginInstallRecords,
|
|
sourceBase: sourceCfgWithPluginInstallRecords,
|
|
updatedConfig: hookResult.config,
|
|
});
|
|
// Plugin install records live in the persisted index. Preserve an authored
|
|
// empty plugins section so include ownership does not become a false mutation.
|
|
const nextConfig = withoutPluginInstallRecords(sourceShapedUpdateConfig, {
|
|
preserveEmptyPlugins: shouldPreserveEmptyPlugins({
|
|
parsed: sourceSnapshot?.snapshot.parsed,
|
|
sourceConfig: sourceSnapshot?.snapshot.sourceConfig ?? {},
|
|
}),
|
|
});
|
|
if (shouldPersistPluginInstallIndex) {
|
|
await commitPluginInstallRecordsWithConfig({
|
|
previousInstallRecords: persistedPluginInstallRecords,
|
|
nextInstallRecords: nextPluginInstallRecords,
|
|
nextConfig,
|
|
baseHash: sourceSnapshot?.snapshot.hash,
|
|
writeOptions: {
|
|
...sourceSnapshot?.writeOptions,
|
|
afterWrite: { mode: "restart", reason: "plugin source changed" },
|
|
},
|
|
});
|
|
} else {
|
|
await replaceConfigFile({
|
|
nextConfig,
|
|
baseHash: sourceSnapshot?.snapshot.hash,
|
|
writeOptions: sourceSnapshot?.writeOptions,
|
|
});
|
|
}
|
|
if (pluginResult.changed) {
|
|
await refreshPluginRegistryAfterConfigMutation({
|
|
config: nextConfig,
|
|
reason: "source-changed",
|
|
installRecords: nextPluginInstallRecords,
|
|
invalidateRuntimeCache: false,
|
|
logger,
|
|
});
|
|
}
|
|
defaultRuntime.log("Restart the gateway to load plugins and hooks.");
|
|
}
|
|
|
|
if (outcomeSummary.hasErrors) {
|
|
defaultRuntime.exit(1);
|
|
}
|
|
}
|