xbp 10.5.0

XBP is a zero-config build pack that can also interact with proxies, kafka, sockets, synthetic monitors.
Documentation
�

�čhu��.�SSKrSSKJr SSKrSSKrSrg)�N)�XbpLogc��# �0SS_SS_SS_SS_S	S
_SS_S
S_SS_SS_SS_SS_SS_SS_SS_SS_SS _S!S _S"S#S$S%.EnUR5GH_up4[R"X05nU(dM%[U5(aU"U5OUnS&U;aUR	S'5OS(n0S)[[R"55_S*S+_S,S+_S-S+_S.S+_S/UR_S0U_S1UR_S2UR_S3UR_S4S5_S6S7_S8S9_S:S+_S;S<URS=UR3_S>S?_S@U_SASBSCU;a[UR	SD55OS+S+S+S+S+S+S+S+S+S+S+S+SE.En[SR0UD6n	[R"U	5 [SFU35 SHU;Ga
SIUlSJS+KnUR'5IS+hv�NnUR(URUR*UR,UR.URURURURUR0URSK.n
UR3SLU
SM9IS+hv�Nn[SNUR4SOUR635 S+S+S+5IS+hv�N [8R:"SP5IS+hv�N  gQ g? g?![ a"n
[SG[#U
535 S+n
A
GN@S+n
A
ff=fGN"N�N]!,IS+hv�N(df   Nr=fN[7f)Sa"
Matches a line against predefined regex patterns and logs to Supabase if a match is found.
Returns True if the deployment process is fully completed, otherwise False.

Args:
    line (str): The line to be matched.
    deployment_data (dict): Deployment metadata to be included in the log.
zRedeploying .*zRedeploying projectz'Resetting local changes for (.+) \.\.\.c�*�SURS53$)Nz!Resetting the git commit tree on ���group��matchs �9C:\Users\floris\Documents\GitHub\xbp\log_parser\nextjs.py�<lambda>�#parse_nextjs_logs.<locals>.<lambda>s��9�%�+�+�a�.�9I�J�zPulling latest changes for .*z-Pulling new git changes onto local repositoryzAlready up to date\.z+Successfully synced git to local repositoryzInstalling dependencies for .*z'Installing dependencies for the projectzDone in (\d+\.\d+)sc�,�SURS5S3$)Nz+Successfully installed all dependencies in rz secondsrr	s rrr
s��
5�e�k�k�!�n�5E�X�NrzBuilding .*zInitializing build of projectz'Generating static pages \((\d+)/(\d+)\)c�P�SURS5SURS5S3$)NzGenerating static pages: r�/�z
 completedrr	s rrr
"s&��
#�E�K�K��N�#3�1�U�[�[��^�4D�J�Orz)Creating an optimized production build .*z&Creating an optimized production buildz#Finalizing page optimization \.\.\.zFinalizing the build processzCollecting build traces \.\.\.z1Collecting build traces and finalizing deploymentz,Received GET request to generate thumbnail.*z,Processing GET request to generate thumbnailzsudo: .*z*Executing command with elevated privilegesu▲ Next\.js (\d+\.\d+\.\d+)c�*�SURS53$)NzUsing Next.js version rrr	s rrr
/s��.�u�{�{�1�~�.>�?rzHEAD is now at ([a-f0-9]+)c�*�SURS53$)Nz*Successfully reset the git commit tree to rrr	s rrr
1s��
4�U�[�[��^�4D�Eru○ \(Static\).*z:Build completed successfully. Deployment will follow next.uƒ \(Dynamic\).*c�*�SURS53$)Nz+Replacing old build with the new build for rrr	s rrr
8s��
5�e�k�k�!�n�5E�Frc�P�SURS5SURS5S3$)Nz"Successfully killed old build for r� (Process ID: r�)rr	s rrr
;s(��
,�U�[�[��^�,<�N�5�;�;�WX�>�JZ�Z[�\rc�P�SURS5SURS5S3$)NzSuccessfully deployed rrrrrr	s rrr
>s&��
 ����Q�� 0��u�{�{�1�~�>N�a�Pr)z-Stopping existing PM2 process for (.+) \.\.\.zI\[PM2\] Applying action stopProcessId on app \[(.+)\]\(ids: \[ (\d+) \]\)u\[PM2\] \[(.+)\]\((\d+)\) ✓u▲ Next.jsrz14.2.23�time�requestN�http_status�method�payload�status�message�
deployment_id�	commit_id�
project_id�action�log_line_match�hostzxylex.cloud�
user_agentz
xbp/nextjs�content_type�repository_urlzhttps://github.com/r�errorF�runtime_version�nodejszNext.jszGenerating static pagesr)�runtime�	framework�total_pages�
build_time�
time_start�time_finish�	lint_time�routes_sourcemap�build_duration�
lint_duration�routes_duration�routes�routes_count�routes_timezLogged line to Supabase: z Failed to log line to Supabase: zSuccessfully deployed�successr)�sha�	sha_short�github_username�organization_name�project_namer!r�repository_name�repository_owner�xbp_commandr#z0https://xbp.xylex.cloud/report-deployment-status)�jsonz#Report deployment status response: z, �
T�)�items�re�search�callabler�intrrr!r=r#rBrAr�add_xbp_log_to_supabase�print�	Exception�str�httpx�AsyncClientr<r>r?r@rC�post�status_code�text�asyncio�sleep)�line�deployment_data�patterns�patternr r
�log_messager+�log_data�xbp_log�erP�clientr�responses               r�parse_nextjs_logsrasy���/���/�	3�J�	/�
	)�7�
/�	 �5�/�	*�1�/�	�	O�/�	�'�/� 	3�	P�#/�&	5�0�)/�*	/�&�-/�.	*�;�1/�2	8�6�5/�6	�4�9/�:	(�?�=/�>	&�	F�A/�D	�D�G/�H	�D�K/�N	G�	]�	Q�[/�H�d%�N�N�,����	�	�'�(���5�,4�W�,=�,=�'�%�.�7�K�$�w�.�$�k�k���4=�
�@���D�I�I�K� �@���	@�
��
@���@���@���&�&�@���@� ��-�-�!@�"��)�)�%@�&��*�*�)@�*� �-@�.��1@�2��5@�6��9@�:!�%�o�&F�&F�%G�q��Ih�Ih�Hi�j�=@�>��A@�B"��E@�H��-��7��E�K�K��N�#�=A������������@�H�F
C� �,�8�,���.�.�w�7��1�+��?�@�
'�+�5�)2��&�� �,�,�.�.�&�.�2�2�%4�%>�%>�+:�+J�+J�-<�-N�-N�(7�(D�(D�)8�)F�)F�"1�"8�"8�+:�+J�+J�,;�,L�,L�'6�'B�'B�&5�&@�&@��G�&,�[�[�J�$�&1�&&� &�H��=�h�>R�>R�=S�SU�V^�Vc�Vc�Ud�e��#/�.�(�m�m�B�'�'�'����g-�f��C�
C��8��Q���A�B�B��
C��/� &�/�.�.�.��((�s��A5L
�;C7L
�3/J;�"&L
�K*�	L
�BK1�K-�)K1�L
�K/�L
�/L�0L
�;
K'�K"�L
�"K'�'L
�-K1�/L
�1L	�7K:�8L	�L
)rH�
log_to_serverrrrUrarFrr�<module>rcs��	� ���or