File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
1212import { clearCurrentPluginMetadataSnapshot } from "./current-plugin-metadata-state.js" ;
1313import { resolveInstalledPluginIndexPolicyHash } from "./installed-plugin-index-policy.js" ;
1414import { writePersistedInstalledPluginIndexSync } from "./installed-plugin-index-store.js" ;
15+ import type { PluginManifestRecord } from "./manifest-registry.js" ;
1516import { clearPluginMetadataLifecycleCaches } from "./plugin-metadata-lifecycle.js" ;
1617import type { PluginMetadataSnapshot } from "./plugin-metadata-snapshot.js" ;
1718
@@ -24,9 +25,19 @@ function createSnapshot(
2425 workspaceDir ?: string ;
2526 } = { } ,
2627) : PluginMetadataSnapshot {
27- const plugins = params . normalizationAlias
28- ? ( [
28+ const plugins : PluginManifestRecord [ ] = params . normalizationAlias
29+ ? [
2930 {
31+ id : "fixture" ,
32+ channels : [ ] ,
33+ providers : [ ] ,
34+ cliBackends : [ ] ,
35+ skills : [ ] ,
36+ hooks : [ ] ,
37+ origin : "config" ,
38+ rootDir : "/fixture" ,
39+ source : "test" ,
40+ manifestPath : "/fixture/openclaw.plugin.json" ,
3041 modelIdNormalization : {
3142 providers : {
3243 fixture : {
@@ -35,7 +46,7 @@ function createSnapshot(
3546 } ,
3647 } ,
3748 } ,
38- ] as PluginMetadataSnapshot [ "plugins" ] )
49+ ]
3950 : [ ] ;
4051 return {
4152 policyHash : resolveInstalledPluginIndexPolicyHash ( params . config ) ,
You can’t perform that action at this time.
0 commit comments