@@ -8,7 +8,7 @@ const agent = new Agents(process.env.BEARER_TOKEN || '');
88describe ( 'Cetus Protocol Integration Tests' , ( ) => {
99 describe ( 'Pool Operations' , ( ) => {
1010 test ( 'should get pool information' , async ( ) => {
11- const response = await agent . SuperVisorAgent (
11+ const response = await agent . processUserQueryPipeline (
1212 `Get information about Cetus pool ${ TEST_POOLS . SUI_USDC } ` ,
1313 ) ;
1414 expect ( response ) . toBeDefined ( ) ;
@@ -19,7 +19,7 @@ describe('Cetus Protocol Integration Tests', () => {
1919 } ) ;
2020
2121 test ( 'should get pool statistics and TVL' , async ( ) => {
22- const response = await agent . SuperVisorAgent (
22+ const response = await agent . processUserQueryPipeline (
2323 `Get statistics and TVL for Cetus pool ${ TEST_POOLS . USDC_USDT } ` ,
2424 ) ;
2525 expect ( response ) . toBeDefined ( ) ;
@@ -29,7 +29,7 @@ describe('Cetus Protocol Integration Tests', () => {
2929 } ) ;
3030
3131 test ( 'should list all pools' , async ( ) => {
32- const response = await agent . SuperVisorAgent (
32+ const response = await agent . processUserQueryPipeline (
3333 'List all available Cetus pools' ,
3434 ) ;
3535 expect ( response ) . toBeDefined ( ) ;
@@ -41,7 +41,7 @@ describe('Cetus Protocol Integration Tests', () => {
4141
4242 describe ( 'Position Operations' , ( ) => {
4343 test ( 'should get positions for address' , async ( ) => {
44- const response = await agent . SuperVisorAgent (
44+ const response = await agent . processUserQueryPipeline (
4545 `Get all Cetus positions for address ${ TEST_ADDRESSES . LP_PROVIDER } ` ,
4646 ) ;
4747 expect ( response ) . toBeDefined ( ) ;
@@ -50,7 +50,7 @@ describe('Cetus Protocol Integration Tests', () => {
5050 } ) ;
5151
5252 test ( 'should calculate add liquidity parameters' , async ( ) => {
53- const response = await agent . SuperVisorAgent (
53+ const response = await agent . processUserQueryPipeline (
5454 `Calculate parameters for adding 1000 USDC to Cetus pool ${ TEST_POOLS . USDC_USDT } with ${ SLIPPAGE . MEDIUM * 100 } % slippage` ,
5555 ) ;
5656 expect ( response ) . toBeDefined ( ) ;
@@ -63,12 +63,12 @@ describe('Cetus Protocol Integration Tests', () => {
6363
6464 test ( 'should calculate remove liquidity parameters' , async ( ) => {
6565 // First get a position
66- const positionsResponse = await agent . SuperVisorAgent (
66+ const positionsResponse = await agent . processUserQueryPipeline (
6767 `Get all Cetus positions for address ${ TEST_ADDRESSES . LP_PROVIDER } ` ,
6868 ) ;
6969 const position = positionsResponse . response [ 0 ] ;
7070
71- const response = await agent . SuperVisorAgent (
71+ const response = await agent . processUserQueryPipeline (
7272 `Calculate parameters for removing liquidity from Cetus position ${ position . pos_object_id } with ${ SLIPPAGE . LOW * 100 } % slippage` ,
7373 ) ;
7474 expect ( response ) . toBeDefined ( ) ;
@@ -80,7 +80,7 @@ describe('Cetus Protocol Integration Tests', () => {
8080
8181 describe ( 'Trading Operations' , ( ) => {
8282 test ( 'should calculate swap quote for exact input' , async ( ) => {
83- const response = await agent . SuperVisorAgent (
83+ const response = await agent . processUserQueryPipeline (
8484 `Calculate swap quote for trading 1 SUI to USDC on Cetus pool ${ TEST_POOLS . SUI_USDC } with ${ SLIPPAGE . HIGH * 100 } % slippage` ,
8585 ) ;
8686 expect ( response ) . toBeDefined ( ) ;
@@ -90,7 +90,7 @@ describe('Cetus Protocol Integration Tests', () => {
9090 } ) ;
9191
9292 test ( 'should calculate swap quote for exact output' , async ( ) => {
93- const response = await agent . SuperVisorAgent (
93+ const response = await agent . processUserQueryPipeline (
9494 `Calculate swap quote to receive exactly 100 USDC by trading SUI on Cetus pool ${ TEST_POOLS . SUI_USDC } with ${ SLIPPAGE . MEDIUM * 100 } % slippage` ,
9595 ) ;
9696 expect ( response ) . toBeDefined ( ) ;
@@ -100,7 +100,7 @@ describe('Cetus Protocol Integration Tests', () => {
100100 } ) ;
101101
102102 test ( 'should handle price impact calculation' , async ( ) => {
103- const response = await agent . SuperVisorAgent (
103+ const response = await agent . processUserQueryPipeline (
104104 `Calculate price impact for swapping 1000 USDC to USDT on Cetus pool ${ TEST_POOLS . USDC_USDT } ` ,
105105 ) ;
106106 expect ( response ) . toBeDefined ( ) ;
@@ -114,7 +114,7 @@ describe('Cetus Protocol Integration Tests', () => {
114114
115115 describe ( 'Pool Creation' , ( ) => {
116116 test ( 'should validate pool creation parameters' , async ( ) => {
117- const response = await agent . SuperVisorAgent (
117+ const response = await agent . processUserQueryPipeline (
118118 'Create a new Cetus pool for SUI/USDC with tick spacing 2 and initial price 1.0' ,
119119 ) ;
120120 expect ( response ) . toBeDefined ( ) ;
@@ -126,7 +126,7 @@ describe('Cetus Protocol Integration Tests', () => {
126126
127127 describe ( 'Error Handling' , ( ) => {
128128 test ( 'should handle invalid pool ID gracefully' , async ( ) => {
129- const response = await agent . SuperVisorAgent (
129+ const response = await agent . processUserQueryPipeline (
130130 'Get information about Cetus pool 0xinvalid_pool_id' ,
131131 ) ;
132132 expect ( response ) . toBeDefined ( ) ;
@@ -135,7 +135,7 @@ describe('Cetus Protocol Integration Tests', () => {
135135 } ) ;
136136
137137 test ( 'should handle invalid address gracefully' , async ( ) => {
138- const response = await agent . SuperVisorAgent (
138+ const response = await agent . processUserQueryPipeline (
139139 'Get all Cetus positions for address 0xinvalid_address' ,
140140 ) ;
141141 expect ( response ) . toBeDefined ( ) ;
@@ -144,7 +144,7 @@ describe('Cetus Protocol Integration Tests', () => {
144144 } ) ;
145145
146146 test ( 'should handle excessive slippage values' , async ( ) => {
147- const response = await agent . SuperVisorAgent (
147+ const response = await agent . processUserQueryPipeline (
148148 `Calculate swap quote for trading 1 SUI to USDC on Cetus pool ${ TEST_POOLS . SUI_USDC } with 50% slippage` ,
149149 ) ;
150150 expect ( response ) . toBeDefined ( ) ;
0 commit comments