Skip to content

Commit 6b6254d

Browse files
committed
perf(plugins): drop verbose JSDoc from discovery? params
1 parent 87fef16 commit 6b6254d

4 files changed

Lines changed: 0 additions & 25 deletions

File tree

src/plugins/config-contracts.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ export function resolvePluginConfigContractsById(params: {
114114
fallbackToBundledMetadataForResolvedBundled?: boolean;
115115
fallbackBundledPluginIds?: readonly string[];
116116
pluginIds: readonly string[];
117-
/**
118-
* Pre-computed discovery result. When supplied, the bundled-fallback path
119-
* skips its internal `discoverOpenClawPlugins` call so callers sharing a
120-
* discovery snapshot across registry helpers avoid redundant filesystem
121-
* walks.
122-
*/
123117
discovery?: PluginDiscoveryResult;
124118
}): ReadonlyMap<string, PluginConfigContractMetadata> {
125119
const matches = new Map<string, PluginConfigContractMetadata>();

src/plugins/installed-plugin-index-types.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,6 @@ export type LoadInstalledPluginIndexParams = {
130130
installRecords?: Record<string, PluginInstallRecord>;
131131
candidates?: PluginCandidate[];
132132
diagnostics?: PluginDiagnostic[];
133-
/**
134-
* Pre-computed discovery result. When supplied (and `candidates` is not),
135-
* the internal `discoverOpenClawPlugins` call is skipped. Callers sharing a
136-
* discovery snapshot across registry helpers in the same flow should supply
137-
* this to avoid redundant filesystem walks.
138-
*/
139133
discovery?: PluginDiscoveryResult;
140134
now?: () => Date;
141135
};

src/plugins/loader.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,6 @@ export type PluginLoadOptions = {
202202
loadModules?: boolean;
203203
throwOnLoadError?: boolean;
204204
manifestRegistry?: PluginManifestRegistry;
205-
/**
206-
* Pre-computed plugin discovery result. When supplied, internal calls to
207-
* `discoverOpenClawPlugins` are skipped. Callers in the same startup flow
208-
* can compute one discovery result and share it across loader entry points
209-
* to eliminate redundant filesystem walks. Ignored when `manifestRegistry`
210-
* is also provided (the registry already implies a discovery snapshot).
211-
*/
212205
discovery?: PluginDiscoveryResult;
213206
};
214207

src/plugins/manifest-registry.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -920,12 +920,6 @@ export function loadPluginManifestRegistry(
920920
diagnostics?: PluginDiagnostic[];
921921
installRecords?: Record<string, PluginInstallRecord>;
922922
bundledChannelConfigCollector?: BundledChannelConfigCollector;
923-
/**
924-
* Pre-computed discovery result. When supplied (and `candidates` is not),
925-
* the internal `discoverOpenClawPlugins` call is skipped. Callers sharing
926-
* a discovery snapshot across multiple registry helpers in the same flow
927-
* should supply this to avoid redundant filesystem walks.
928-
*/
929923
discovery?: PluginDiscoveryResult;
930924
} = {},
931925
): PluginManifestRegistry {

0 commit comments

Comments
 (0)