@@ -12,9 +12,10 @@ import type { CliMockOutputRuntime } from "./test-runtime-capture.js";
1212type UnknownMock = Mock < ( ...args : unknown [ ] ) => unknown > ;
1313type AsyncUnknownMock = Mock < ( ...args : unknown [ ] ) => Promise < unknown > > ;
1414type LoadConfigFn = ( typeof import ( "../config/config.js" ) ) [ "loadConfig" ] ;
15- type ParseClawHubPluginSpecFn = ( typeof import ( "../infra/clawhub.js" ) ) [ "parseClawHubPluginSpec" ] ;
15+ type ParseClawHubPluginSpecFn =
16+ ( typeof import ( "../infra/clawhub-spec.js" ) ) [ "parseClawHubPluginSpec" ] ;
1617type ReportClawHubPluginInstallTelemetryFn =
17- ( typeof import ( "../infra/clawhub.js" ) ) [ "reportClawHubPluginInstallTelemetry" ] ;
18+ ( typeof import ( "../infra/clawhub-packages .js" ) ) [ "reportClawHubPluginInstallTelemetry" ] ;
1819type InstallPluginFromMarketplaceFn =
1920 ( typeof import ( "../plugins/marketplace.js" ) ) [ "installPluginFromMarketplace" ] ;
2021type InstallPluginFromGitSpecFn =
@@ -767,29 +768,36 @@ vi.mock("../plugins/clawhub.js", () => ({
767768 ) ) as ( typeof import ( "../plugins/clawhub.js" ) ) [ "installPluginFromClawHub" ] ,
768769} ) ) ;
769770
770- vi . mock ( "../infra/clawhub.js" , ( ) => ( {
771+ vi . mock ( "../infra/clawhub-spec .js" , ( ) => ( {
771772 parseClawHubPluginSpec : ( (
772- ...args : Parameters < ( typeof import ( "../infra/clawhub.js" ) ) [ "parseClawHubPluginSpec" ] >
773+ ...args : Parameters < ( typeof import ( "../infra/clawhub-spec .js" ) ) [ "parseClawHubPluginSpec" ] >
773774 ) =>
774775 invokeMock <
775- Parameters < ( typeof import ( "../infra/clawhub.js" ) ) [ "parseClawHubPluginSpec" ] > ,
776- ReturnType < ( typeof import ( "../infra/clawhub.js" ) ) [ "parseClawHubPluginSpec" ] >
776+ Parameters < ( typeof import ( "../infra/clawhub-spec .js" ) ) [ "parseClawHubPluginSpec" ] > ,
777+ ReturnType < ( typeof import ( "../infra/clawhub-spec .js" ) ) [ "parseClawHubPluginSpec" ] >
777778 > (
778779 parseClawHubPluginSpec ,
779780 ...args ,
780- ) ) as ( typeof import ( "../infra/clawhub.js" ) ) [ "parseClawHubPluginSpec" ] ,
781+ ) ) as ( typeof import ( "../infra/clawhub-spec.js" ) ) [ "parseClawHubPluginSpec" ] ,
782+ } ) ) ;
783+
784+ vi . mock ( "../infra/clawhub-packages.js" , ( ) => ( {
781785 reportClawHubPluginInstallTelemetry : ( (
782786 ...args : Parameters <
783- ( typeof import ( "../infra/clawhub.js" ) ) [ "reportClawHubPluginInstallTelemetry" ]
787+ ( typeof import ( "../infra/clawhub-packages .js" ) ) [ "reportClawHubPluginInstallTelemetry" ]
784788 >
785789 ) =>
786790 invokeMock <
787- Parameters < ( typeof import ( "../infra/clawhub.js" ) ) [ "reportClawHubPluginInstallTelemetry" ] > ,
788- ReturnType < ( typeof import ( "../infra/clawhub.js" ) ) [ "reportClawHubPluginInstallTelemetry" ] >
791+ Parameters <
792+ ( typeof import ( "../infra/clawhub-packages.js" ) ) [ "reportClawHubPluginInstallTelemetry" ]
793+ > ,
794+ ReturnType <
795+ ( typeof import ( "../infra/clawhub-packages.js" ) ) [ "reportClawHubPluginInstallTelemetry" ]
796+ >
789797 > (
790798 reportClawHubPluginInstallTelemetry ,
791799 ...args ,
792- ) ) as ( typeof import ( "../infra/clawhub.js" ) ) [ "reportClawHubPluginInstallTelemetry" ] ,
800+ ) ) as ( typeof import ( "../infra/clawhub-packages .js" ) ) [ "reportClawHubPluginInstallTelemetry" ] ,
793801} ) ) ;
794802
795803const { registerPluginsCli } = await import ( "./plugins-cli.js" ) ;
0 commit comments