@@ -5,7 +5,7 @@ const mocks = vi.hoisted(() => ({
55 runWebSearch : vi . fn ( ) ,
66 resolveManifestContractOwnerPluginId : vi . fn ( ) ,
77 getActiveRuntimeWebToolsMetadata : vi . fn ( ) ,
8- getActiveSecretsRuntimeSnapshot : vi . fn ( ) ,
8+ getActiveSecretsRuntimeConfigSnapshot : vi . fn ( ) ,
99} ) ) ;
1010
1111vi . mock ( "../../web-search/runtime.js" , ( ) => ( {
@@ -22,7 +22,7 @@ vi.mock("../../secrets/runtime-web-tools-state.js", () => ({
2222} ) ) ;
2323
2424vi . mock ( "../../secrets/runtime-state.js" , ( ) => ( {
25- getActiveSecretsRuntimeSnapshot : mocks . getActiveSecretsRuntimeSnapshot ,
25+ getActiveSecretsRuntimeConfigSnapshot : mocks . getActiveSecretsRuntimeConfigSnapshot ,
2626} ) ) ;
2727
2828type RunWebSearchParams = {
@@ -58,8 +58,8 @@ describe("web_search late-bound runtime fallback", () => {
5858 mocks . resolveManifestContractOwnerPluginId . mockReturnValue ( undefined ) ;
5959 mocks . getActiveRuntimeWebToolsMetadata . mockReset ( ) ;
6060 mocks . getActiveRuntimeWebToolsMetadata . mockReturnValue ( null ) ;
61- mocks . getActiveSecretsRuntimeSnapshot . mockReset ( ) ;
62- mocks . getActiveSecretsRuntimeSnapshot . mockReturnValue ( null ) ;
61+ mocks . getActiveSecretsRuntimeConfigSnapshot . mockReset ( ) ;
62+ mocks . getActiveSecretsRuntimeConfigSnapshot . mockReturnValue ( null ) ;
6363 } ) ;
6464
6565 it ( "falls back to options.runtimeWebSearch when active runtime web tools metadata is absent" , async ( ) => {
@@ -79,7 +79,7 @@ describe("web_search late-bound runtime fallback", () => {
7979 expect ( firstRunWebSearchParams ( ) ?. runtimeWebSearch ?. selectedProvider ) . toBe ( "brave" ) ;
8080 } ) ;
8181
82- it ( "falls back to options.config when getActiveSecretsRuntimeSnapshot is null" , async ( ) => {
82+ it ( "falls back to options.config when getActiveSecretsRuntimeConfigSnapshot is null" , async ( ) => {
8383 const fallbackConfig = {
8484 tools : { web : { search : { provider : "brave" } } } ,
8585 } ;
@@ -161,7 +161,7 @@ describe("web_search late-bound runtime fallback", () => {
161161 } ) ;
162162
163163 it ( "honors late-bound disabled search config at execute time" , async ( ) => {
164- mocks . getActiveSecretsRuntimeSnapshot . mockReturnValue ( {
164+ mocks . getActiveSecretsRuntimeConfigSnapshot . mockReturnValue ( {
165165 config : { tools : { web : { search : { enabled : false } } } } ,
166166 } ) ;
167167 const tool = createWebSearchTool ( {
0 commit comments