iatoolkit 0.50.0__py3-none-any.whl → 0.51.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of iatoolkit might be problematic. Click here for more details.
- iatoolkit/common/routes.py +5 -5
- iatoolkit/iatoolkit.py +7 -1
- iatoolkit/templates/_login_widget.html +1 -1
- iatoolkit/templates/login_test.html +2 -2
- iatoolkit/views/base_login_view.py +63 -0
- iatoolkit/views/external_login_view.py +30 -53
- iatoolkit/views/login_view.py +27 -75
- {iatoolkit-0.50.0.dist-info → iatoolkit-0.51.0.dist-info}/METADATA +1 -1
- {iatoolkit-0.50.0.dist-info → iatoolkit-0.51.0.dist-info}/RECORD +11 -10
- {iatoolkit-0.50.0.dist-info → iatoolkit-0.51.0.dist-info}/WHEEL +0 -0
- {iatoolkit-0.50.0.dist-info → iatoolkit-0.51.0.dist-info}/top_level.txt +0 -0
iatoolkit/common/routes.py
CHANGED
|
@@ -26,8 +26,8 @@ def register_views(injector, app):
|
|
|
26
26
|
from iatoolkit.views.tasks_view import TaskView
|
|
27
27
|
from iatoolkit.views.tasks_review_view import TaskReviewView
|
|
28
28
|
from iatoolkit.views.login_test_view import LoginTest
|
|
29
|
-
from iatoolkit.views.login_view import LoginView,
|
|
30
|
-
from iatoolkit.views.external_login_view import
|
|
29
|
+
from iatoolkit.views.login_view import LoginView, FinalizeContextView
|
|
30
|
+
from iatoolkit.views.external_login_view import ExternalLoginView
|
|
31
31
|
from iatoolkit.views.signup_view import SignupView
|
|
32
32
|
from iatoolkit.views.verify_user_view import VerifyAccountView
|
|
33
33
|
from iatoolkit.views.forgot_password_view import ForgotPasswordView
|
|
@@ -46,8 +46,8 @@ def register_views(injector, app):
|
|
|
46
46
|
|
|
47
47
|
# this functions are for login external users (with api-key)
|
|
48
48
|
# only the first one should be used from an external app
|
|
49
|
-
app.add_url_rule('/<company_short_name>/
|
|
50
|
-
view_func=
|
|
49
|
+
app.add_url_rule('/<company_short_name>/external_login',
|
|
50
|
+
view_func=ExternalLoginView.as_view('external_login'))
|
|
51
51
|
|
|
52
52
|
# this endpoint is for requesting a chat token for external users
|
|
53
53
|
app.add_url_rule('/auth/chat_token',
|
|
@@ -55,8 +55,8 @@ def register_views(injector, app):
|
|
|
55
55
|
|
|
56
56
|
# login for the iatoolkit integrated frontend
|
|
57
57
|
# this is the main login endpoint for the frontend
|
|
58
|
-
app.add_url_rule('/<company_short_name>/chat', view_func=InitiateLoginView.as_view('chat'))
|
|
59
58
|
app.add_url_rule('/<company_short_name>/login', view_func=LoginView.as_view('login'))
|
|
59
|
+
app.add_url_rule('/<company_short_name>/finalize_context_load', view_func=FinalizeContextView.as_view('finalize_context_load'))
|
|
60
60
|
|
|
61
61
|
# register new user, account verification and forgot password
|
|
62
62
|
app.add_url_rule('/<company_short_name>/signup',view_func=SignupView.as_view('signup'))
|
iatoolkit/iatoolkit.py
CHANGED
|
@@ -19,7 +19,7 @@ from werkzeug.middleware.proxy_fix import ProxyFix
|
|
|
19
19
|
from injector import Binder, singleton, Injector
|
|
20
20
|
from importlib.metadata import version as _pkg_version, PackageNotFoundError
|
|
21
21
|
|
|
22
|
-
IATOOLKIT_VERSION = "0.
|
|
22
|
+
IATOOLKIT_VERSION = "0.50.2"
|
|
23
23
|
|
|
24
24
|
# global variable for the unique instance of IAToolkit
|
|
25
25
|
_iatoolkit_instance: Optional['IAToolkit'] = None
|
|
@@ -360,6 +360,10 @@ class IAToolkit:
|
|
|
360
360
|
@self.app.context_processor
|
|
361
361
|
def inject_globals():
|
|
362
362
|
from iatoolkit.common.session_manager import SessionManager
|
|
363
|
+
from iatoolkit.services.profile_service import ProfileService
|
|
364
|
+
|
|
365
|
+
profile_service = self._injector.get(ProfileService)
|
|
366
|
+
user_profile = profile_service.get_current_session_info().get('profile', {})
|
|
363
367
|
|
|
364
368
|
return {
|
|
365
369
|
'url_for': url_for,
|
|
@@ -367,6 +371,8 @@ class IAToolkit:
|
|
|
367
371
|
'app_name': 'IAToolkit',
|
|
368
372
|
'user_identifier': SessionManager.get('user_identifier'),
|
|
369
373
|
'company_short_name': SessionManager.get('company_short_name'),
|
|
374
|
+
'user_is_local': user_profile.get('user_is_local'),
|
|
375
|
+
'user_email': user_profile.get('user_email'),
|
|
370
376
|
'iatoolkit_base_url': os.environ.get('IATOOLKIT_BASE_URL', ''),
|
|
371
377
|
}
|
|
372
378
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
<!-- 2. Formulario de Inicio de Sesión -->
|
|
12
12
|
<form id="login-form"
|
|
13
|
-
action="{{ url_for('
|
|
13
|
+
action="{{ url_for('login', company_short_name=company_short_name) }}"
|
|
14
14
|
method="post">
|
|
15
15
|
<div class="mb-3">
|
|
16
16
|
<label for="email" class="form-label d-block">Correo Electrónico</label>
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
// Actualizar action del formulario "Iniciar Sesión"
|
|
74
74
|
if (selectedCompany && selectedCompany.trim() !== '') {
|
|
75
|
-
const loginAction = '/' + selectedCompany + '/
|
|
75
|
+
const loginAction = '/' + selectedCompany + '/external_login';
|
|
76
76
|
$('#login-form').attr('action', loginAction); // Actualizamos la URL del form
|
|
77
77
|
} else {
|
|
78
78
|
$('#login-form').attr('action', '#'); // URL genérica si no hay selección
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
return;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
fetch(`/${selectedCompany}/
|
|
119
|
+
fetch(`/${selectedCompany}/external_login`, {
|
|
120
120
|
method: 'POST',
|
|
121
121
|
headers: {
|
|
122
122
|
'Content-Type': 'application/json',
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# iatoolkit/views/base_login_view.py
|
|
2
|
+
# Copyright (c) 2024 Fernando Libedinsky
|
|
3
|
+
# Product: IAToolkit
|
|
4
|
+
#
|
|
5
|
+
# IAToolkit is open source software.
|
|
6
|
+
|
|
7
|
+
from flask.views import MethodView
|
|
8
|
+
from flask import render_template, url_for
|
|
9
|
+
from injector import inject
|
|
10
|
+
from iatoolkit.services.profile_service import ProfileService
|
|
11
|
+
from iatoolkit.services.query_service import QueryService
|
|
12
|
+
from iatoolkit.services.branding_service import BrandingService
|
|
13
|
+
from iatoolkit.services.onboarding_service import OnboardingService
|
|
14
|
+
from iatoolkit.services.prompt_manager_service import PromptService
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class BaseLoginView(MethodView):
|
|
18
|
+
"""
|
|
19
|
+
Base class for views that initiate a session and decide the context
|
|
20
|
+
loading path (fast or slow).
|
|
21
|
+
"""
|
|
22
|
+
@inject
|
|
23
|
+
def __init__(self,
|
|
24
|
+
profile_service: ProfileService,
|
|
25
|
+
branding_service: BrandingService,
|
|
26
|
+
prompt_service: PromptService,
|
|
27
|
+
onboarding_service: OnboardingService,
|
|
28
|
+
query_service: QueryService):
|
|
29
|
+
self.profile_service = profile_service
|
|
30
|
+
self.branding_service = branding_service
|
|
31
|
+
self.prompt_service = prompt_service
|
|
32
|
+
self.onboarding_service = onboarding_service
|
|
33
|
+
self.query_service = query_service
|
|
34
|
+
|
|
35
|
+
def _handle_login_path(self, company_short_name: str, user_identifier: str, company):
|
|
36
|
+
"""
|
|
37
|
+
Centralized logic to decide between the fast path and the slow path.
|
|
38
|
+
"""
|
|
39
|
+
prep_result = self.query_service.prepare_context(
|
|
40
|
+
company_short_name=company_short_name, user_identifier=user_identifier
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
branding_data = self.branding_service.get_company_branding(company)
|
|
44
|
+
|
|
45
|
+
if prep_result.get('rebuild_needed'):
|
|
46
|
+
# --- SLOW PATH: Render the loading shell ---
|
|
47
|
+
onboarding_cards = self.onboarding_service.get_onboarding_cards(company)
|
|
48
|
+
target_url = url_for('finalize_context_load', company_short_name=company_short_name, _external=True)
|
|
49
|
+
|
|
50
|
+
return render_template(
|
|
51
|
+
"onboarding_shell.html",
|
|
52
|
+
iframe_src_url=target_url,
|
|
53
|
+
branding=branding_data,
|
|
54
|
+
onboarding_cards=onboarding_cards
|
|
55
|
+
)
|
|
56
|
+
else:
|
|
57
|
+
# --- FAST PATH: Render the chat page directly ---
|
|
58
|
+
prompts = self.prompt_service.get_user_prompts(company_short_name)
|
|
59
|
+
return render_template(
|
|
60
|
+
"chat.html",
|
|
61
|
+
branding=branding_data,
|
|
62
|
+
prompts=prompts,
|
|
63
|
+
)
|
|
@@ -5,33 +5,41 @@
|
|
|
5
5
|
|
|
6
6
|
import os
|
|
7
7
|
import logging
|
|
8
|
-
from flask import request, jsonify
|
|
9
|
-
from flask.views import MethodView
|
|
8
|
+
from flask import request, jsonify
|
|
10
9
|
from injector import inject
|
|
11
10
|
from iatoolkit.services.auth_service import AuthService
|
|
11
|
+
from iatoolkit.views.base_login_view import BaseLoginView
|
|
12
|
+
|
|
13
|
+
# Importar los servicios que necesita la clase base
|
|
12
14
|
from iatoolkit.services.profile_service import ProfileService
|
|
13
|
-
from iatoolkit.services.query_service import QueryService
|
|
14
|
-
from iatoolkit.services.prompt_manager_service import PromptService
|
|
15
15
|
from iatoolkit.services.branding_service import BrandingService
|
|
16
16
|
from iatoolkit.services.onboarding_service import OnboardingService
|
|
17
|
+
from iatoolkit.services.query_service import QueryService
|
|
18
|
+
from iatoolkit.services.prompt_manager_service import PromptService
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
class ExternalLoginView(BaseLoginView):
|
|
21
|
+
"""
|
|
22
|
+
Handles login for external users via API.
|
|
23
|
+
Authenticates and then delegates the path decision (fast/slow) to the base class.
|
|
24
|
+
"""
|
|
20
25
|
@inject
|
|
21
26
|
def __init__(self,
|
|
22
27
|
iauthentication: AuthService,
|
|
23
|
-
branding_service: BrandingService,
|
|
24
28
|
profile_service: ProfileService,
|
|
29
|
+
branding_service: BrandingService,
|
|
30
|
+
prompt_service: PromptService,
|
|
25
31
|
onboarding_service: OnboardingService,
|
|
26
|
-
query_service: QueryService
|
|
27
|
-
|
|
28
|
-
|
|
32
|
+
query_service: QueryService):
|
|
33
|
+
# Pass the dependencies for the base class to its __init__
|
|
34
|
+
super().__init__(
|
|
35
|
+
profile_service=profile_service,
|
|
36
|
+
branding_service=branding_service,
|
|
37
|
+
onboarding_service=onboarding_service,
|
|
38
|
+
query_service=query_service,
|
|
39
|
+
prompt_service=prompt_service
|
|
40
|
+
)
|
|
41
|
+
# Handle the dependency specific to this child class
|
|
29
42
|
self.iauthentication = iauthentication
|
|
30
|
-
self.branding_service = branding_service
|
|
31
|
-
self.profile_service = profile_service
|
|
32
|
-
self.onboarding_service = onboarding_service
|
|
33
|
-
self.query_service = query_service
|
|
34
|
-
self.prompt_service = prompt_service
|
|
35
43
|
|
|
36
44
|
def post(self, company_short_name: str):
|
|
37
45
|
data = request.get_json()
|
|
@@ -51,43 +59,12 @@ class InitiateExternalChatView(MethodView):
|
|
|
51
59
|
if not iaut.get("success"):
|
|
52
60
|
return jsonify(iaut), 401
|
|
53
61
|
|
|
54
|
-
# 2.
|
|
62
|
+
# 2. Create the external user session.
|
|
55
63
|
self.profile_service.create_external_user_session(company, external_user_id)
|
|
56
64
|
|
|
57
|
-
# 3.
|
|
58
|
-
|
|
59
|
-
company_short_name
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
branding_data = self.branding_service.get_company_branding(company)
|
|
64
|
-
onboarding_cards = self.onboarding_service.get_onboarding_cards(company)
|
|
65
|
-
target_url = url_for('login', company_short_name=company_short_name,
|
|
66
|
-
_external=True)
|
|
67
|
-
|
|
68
|
-
return render_template(
|
|
69
|
-
"onboarding_shell.html",
|
|
70
|
-
iframe_src_url=target_url,
|
|
71
|
-
branding=branding_data,
|
|
72
|
-
onboarding_cards=onboarding_cards
|
|
73
|
-
)
|
|
74
|
-
else:
|
|
75
|
-
# fast path, the context is already on the cache, render the chat directly
|
|
76
|
-
try:
|
|
77
|
-
session_info = self.profile_service.get_current_session_info()
|
|
78
|
-
user_profile = session_info.get('profile', {})
|
|
79
|
-
|
|
80
|
-
prompts = self.prompt_service.get_user_prompts(company_short_name)
|
|
81
|
-
branding_data = self.branding_service.get_company_branding(company)
|
|
82
|
-
|
|
83
|
-
return render_template("chat.html",
|
|
84
|
-
company_short_name=company_short_name,
|
|
85
|
-
user_is_local=user_profile.get('user_is_local'),
|
|
86
|
-
user_email=user_profile.get('user_email'),
|
|
87
|
-
branding=branding_data,
|
|
88
|
-
prompts=prompts,
|
|
89
|
-
iatoolkit_base_url=os.getenv('IATOOLKIT_BASE_URL'),
|
|
90
|
-
), 200
|
|
91
|
-
except Exception as e:
|
|
92
|
-
logging.exception(f"Error en el camino rápido para {company_short_name}/{external_user_id}: {e}")
|
|
93
|
-
return jsonify({"error": f"Error interno al iniciar el chat. {str(e)}"}), 500
|
|
65
|
+
# 3. Delegate the path decision to the centralized logic.
|
|
66
|
+
try:
|
|
67
|
+
return self._handle_login_path(company_short_name, external_user_id, company)
|
|
68
|
+
except Exception as e:
|
|
69
|
+
logging.exception(f"Error processing external login path for {company_short_name}/{external_user_id}: {e}")
|
|
70
|
+
return jsonify({"error": f"Internal server error while starting chat. {str(e)}"}), 500
|
iatoolkit/views/login_view.py
CHANGED
|
@@ -7,33 +7,18 @@ from flask.views import MethodView
|
|
|
7
7
|
from flask import request, redirect, render_template, url_for
|
|
8
8
|
from injector import inject
|
|
9
9
|
from iatoolkit.services.profile_service import ProfileService
|
|
10
|
-
from iatoolkit.services.prompt_manager_service import PromptService
|
|
11
10
|
from iatoolkit.services.query_service import QueryService
|
|
12
|
-
import
|
|
11
|
+
from iatoolkit.services.prompt_manager_service import PromptService
|
|
13
12
|
from iatoolkit.services.branding_service import BrandingService
|
|
14
|
-
from iatoolkit.
|
|
13
|
+
from iatoolkit.views.base_login_view import BaseLoginView
|
|
15
14
|
|
|
16
15
|
|
|
17
|
-
class
|
|
16
|
+
class LoginView(BaseLoginView):
|
|
18
17
|
"""
|
|
19
|
-
Handles
|
|
20
|
-
Authenticates
|
|
21
|
-
either the chat page directly or the loading shell.
|
|
18
|
+
Handles login for local users.
|
|
19
|
+
Authenticates and then delegates the path decision (fast/slow) to the base class.
|
|
22
20
|
"""
|
|
23
21
|
|
|
24
|
-
@inject
|
|
25
|
-
def __init__(self,
|
|
26
|
-
profile_service: ProfileService,
|
|
27
|
-
branding_service: BrandingService,
|
|
28
|
-
onboarding_service: OnboardingService,
|
|
29
|
-
query_service: QueryService,
|
|
30
|
-
prompt_service: PromptService):
|
|
31
|
-
self.profile_service = profile_service
|
|
32
|
-
self.branding_service = branding_service
|
|
33
|
-
self.onboarding_service = onboarding_service
|
|
34
|
-
self.query_service = query_service
|
|
35
|
-
self.prompt_service = prompt_service
|
|
36
|
-
|
|
37
22
|
def post(self, company_short_name: str):
|
|
38
23
|
company = self.profile_service.get_company_by_short_name(company_short_name)
|
|
39
24
|
if not company:
|
|
@@ -50,60 +35,31 @@ class InitiateLoginView(MethodView):
|
|
|
50
35
|
)
|
|
51
36
|
|
|
52
37
|
if not auth_response['success']:
|
|
38
|
+
branding_data = self.branding_service.get_company_branding(company)
|
|
39
|
+
|
|
53
40
|
return render_template(
|
|
54
41
|
'index.html',
|
|
55
42
|
company_short_name=company_short_name,
|
|
56
43
|
company=company,
|
|
44
|
+
branding=branding_data,
|
|
57
45
|
form_data={"email": email},
|
|
58
46
|
alert_message=auth_response["message"]
|
|
59
47
|
), 400
|
|
60
48
|
|
|
61
49
|
user_identifier = auth_response['user_identifier']
|
|
62
50
|
|
|
63
|
-
# 2.
|
|
64
|
-
|
|
65
|
-
company_short_name
|
|
66
|
-
|
|
51
|
+
# 2. Delegate the path decision to the centralized logic.
|
|
52
|
+
try:
|
|
53
|
+
return self._handle_login_path(company_short_name, user_identifier, company)
|
|
54
|
+
except Exception as e:
|
|
55
|
+
return render_template("error.html", company=company, company_short_name=company_short_name,
|
|
56
|
+
message=f"Error processing login path: {str(e)}"), 500
|
|
67
57
|
|
|
68
|
-
if prep_result.get('rebuild_needed'):
|
|
69
|
-
# --- SLOW PATH: Context rebuild is needed ---
|
|
70
|
-
# Render the shell, which will call LoginView for the heavy lifting.
|
|
71
|
-
branding_data = self.branding_service.get_company_branding(company)
|
|
72
|
-
onboarding_cards = self.onboarding_service.get_onboarding_cards(company)
|
|
73
|
-
target_url = url_for('login', company_short_name=company_short_name, _external=True)
|
|
74
58
|
|
|
75
|
-
|
|
76
|
-
"onboarding_shell.html",
|
|
77
|
-
iframe_src_url=target_url,
|
|
78
|
-
branding=branding_data,
|
|
79
|
-
onboarding_cards=onboarding_cards
|
|
80
|
-
)
|
|
81
|
-
else:
|
|
82
|
-
# --- FAST PATH: Context is already cached ---
|
|
83
|
-
# Render chat.html directly.
|
|
84
|
-
try:
|
|
85
|
-
session_info = self.profile_service.get_current_session_info()
|
|
86
|
-
user_profile = session_info.get('profile', {})
|
|
87
|
-
|
|
88
|
-
prompts = self.prompt_service.get_user_prompts(company_short_name)
|
|
89
|
-
branding_data = self.branding_service.get_company_branding(company)
|
|
90
|
-
|
|
91
|
-
return render_template("chat.html",
|
|
92
|
-
user_is_local=user_profile.get('user_is_local'),
|
|
93
|
-
user_email=user_profile.get('user_email'),
|
|
94
|
-
branding=branding_data,
|
|
95
|
-
prompts=prompts,
|
|
96
|
-
iatoolkit_base_url=os.getenv('IATOOLKIT_BASE_URL'),
|
|
97
|
-
), 200
|
|
98
|
-
except Exception as e:
|
|
99
|
-
return render_template("error.html", company=company, company_short_name=company_short_name,
|
|
100
|
-
message=f"Error in fast path: {str(e)}"), 500
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
class LoginView(MethodView):
|
|
59
|
+
class FinalizeContextView(MethodView):
|
|
104
60
|
"""
|
|
105
|
-
|
|
106
|
-
|
|
61
|
+
Finalizes context loading in the slow path.
|
|
62
|
+
This view is invoked by the iframe inside onboarding_shell.html.
|
|
107
63
|
"""
|
|
108
64
|
|
|
109
65
|
@inject
|
|
@@ -111,17 +67,17 @@ class LoginView(MethodView):
|
|
|
111
67
|
profile_service: ProfileService,
|
|
112
68
|
query_service: QueryService,
|
|
113
69
|
prompt_service: PromptService,
|
|
114
|
-
branding_service: BrandingService
|
|
70
|
+
branding_service: BrandingService
|
|
71
|
+
):
|
|
115
72
|
self.profile_service = profile_service
|
|
116
73
|
self.query_service = query_service
|
|
117
74
|
self.prompt_service = prompt_service
|
|
118
75
|
self.branding_service = branding_service
|
|
119
76
|
|
|
120
77
|
def get(self, company_short_name: str):
|
|
121
|
-
# 1. Use the
|
|
78
|
+
# 1. Use the centralized method to get session info.
|
|
122
79
|
session_info = self.profile_service.get_current_session_info()
|
|
123
80
|
user_identifier = session_info.get('user_identifier')
|
|
124
|
-
user_profile = session_info.get('profile', {})
|
|
125
81
|
|
|
126
82
|
if not user_identifier:
|
|
127
83
|
# This can happen if the session expires or is invalid.
|
|
@@ -132,25 +88,21 @@ class LoginView(MethodView):
|
|
|
132
88
|
return render_template('error.html', message="Empresa no encontrada"), 404
|
|
133
89
|
|
|
134
90
|
try:
|
|
135
|
-
# 2. Finalize the context rebuild (the
|
|
136
|
-
# We pass the identifier, and the service resolves if it's local or external.
|
|
91
|
+
# 2. Finalize the context rebuild (the heavy task).
|
|
137
92
|
self.query_service.finalize_context_rebuild(
|
|
138
93
|
company_short_name=company_short_name,
|
|
139
94
|
user_identifier=user_identifier
|
|
140
95
|
)
|
|
141
96
|
|
|
142
|
-
# 3.
|
|
97
|
+
# 3. render the chat page.
|
|
143
98
|
prompts = self.prompt_service.get_user_prompts(company_short_name)
|
|
144
99
|
branding_data = self.branding_service.get_company_branding(company)
|
|
145
100
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
prompts=prompts,
|
|
152
|
-
iatoolkit_base_url=os.getenv('IATOOLKIT_BASE_URL'),
|
|
153
|
-
), 200
|
|
101
|
+
return render_template(
|
|
102
|
+
"chat.html",
|
|
103
|
+
branding=branding_data,
|
|
104
|
+
prompts=prompts,
|
|
105
|
+
)
|
|
154
106
|
|
|
155
107
|
except Exception as e:
|
|
156
108
|
return render_template("error.html",
|
|
@@ -2,10 +2,10 @@ iatoolkit/__init__.py,sha256=4PWjMJjktixtrxF6BY405qyA50Sv967kEP2x-oil6qk,1120
|
|
|
2
2
|
iatoolkit/base_company.py,sha256=uFJmy77LPAceVqkTeuJqo15-auDiq4aTwvC_bbBD0mQ,4607
|
|
3
3
|
iatoolkit/cli_commands.py,sha256=G5L9xQXZ0lVFXQWBaE_KEZHyfuiT6PL1nTQRoSdnBzc,2302
|
|
4
4
|
iatoolkit/company_registry.py,sha256=tduqt3oV8iDX_IB1eA7KIgvIxE4edTcy-3qZIXh3Lzw,2549
|
|
5
|
-
iatoolkit/iatoolkit.py,sha256=
|
|
5
|
+
iatoolkit/iatoolkit.py,sha256=iRxEAy8P4dgM67IRmQPVjyh63SlW6IEnRH5FONef6MM,17305
|
|
6
6
|
iatoolkit/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
iatoolkit/common/exceptions.py,sha256=EXx40n5htp7UiOM6P1xfJ9U6NMcADqm62dlFaKz7ICU,1154
|
|
8
|
-
iatoolkit/common/routes.py,sha256=
|
|
8
|
+
iatoolkit/common/routes.py,sha256=Djf8Q_b5IGkdhQ5Az_AuYIVqam6-HFA2d4ByursdARI,6030
|
|
9
9
|
iatoolkit/common/session_manager.py,sha256=UeKfD15bcEA3P5e0WSURfotLqpsiIMp3AXxAMhtgHs0,471
|
|
10
10
|
iatoolkit/common/util.py,sha256=w9dTd3csK0gKtFSp-a4t7XmCPZiYDhiON92uXRbTT8A,14624
|
|
11
11
|
iatoolkit/infra/__init__.py,sha256=5JqK9sZ6jBuK83zDQokUhxQ0wuJJJ9DXB8pYCLkX7X4,102
|
|
@@ -76,7 +76,7 @@ iatoolkit/system_prompts/format_styles.prompt,sha256=MSMe1qvR3cF_0IbFshn8R0z6Wx6
|
|
|
76
76
|
iatoolkit/system_prompts/query_main.prompt,sha256=D2Wjf0uunQIQsQiJVrY-BTQz6PemM5En6ftmw_c5t4E,2808
|
|
77
77
|
iatoolkit/system_prompts/sql_rules.prompt,sha256=y4nURVnb9AyFwt-lrbMNBHHtZlhk6kC9grYoOhRnrJo,59174
|
|
78
78
|
iatoolkit/templates/_branding_styles.html,sha256=x0GJmY1WWpPxKBUoqmxh685_1c6-4uLJWNPU6r81uAc,1912
|
|
79
|
-
iatoolkit/templates/_login_widget.html,sha256=
|
|
79
|
+
iatoolkit/templates/_login_widget.html,sha256=p7Xz0P1Xd3Otn41uVQTA3GmDswMrUVMIn9doDNJojAA,1852
|
|
80
80
|
iatoolkit/templates/_navbar.html,sha256=o1PvZE5ueLmVpGUAmsjtu-vS_WPROTlJc2sTXl6AS4Y,360
|
|
81
81
|
iatoolkit/templates/about.html,sha256=ciC08grUVz5qLzdzDDqDX31xirg5PrJIRYabWpV9oA8,294
|
|
82
82
|
iatoolkit/templates/base.html,sha256=Bd_dBk_wiAhX0DPQHJAdPtCBBq2xK1J1Z2b9p3Wn0e8,2214
|
|
@@ -87,14 +87,15 @@ iatoolkit/templates/error.html,sha256=c3dxieMygsvdjQMiQu_sn6kqqag9zFtVu-z5FunX6s
|
|
|
87
87
|
iatoolkit/templates/forgot_password.html,sha256=NRZqbNHJXSLNArF_KLbzuem-U57v07awS0ikI_DJbfM,2360
|
|
88
88
|
iatoolkit/templates/header.html,sha256=179agI7rnYwP_rvJNXIiVde5E8Ec5649_XKq6eew2Hk,1263
|
|
89
89
|
iatoolkit/templates/index.html,sha256=jBLCqZoIMmUCA1KQESW9BcEgaxE0Rjs-4-i2V0ueSMo,7654
|
|
90
|
-
iatoolkit/templates/login_test.html,sha256=
|
|
90
|
+
iatoolkit/templates/login_test.html,sha256=HsLgRNowhrg-G7Cyv4MFEYc6m7dJ92OpnQP6ia6eKoM,5981
|
|
91
91
|
iatoolkit/templates/onboarding_shell.html,sha256=at7VXh9vQmDiWu2mJbc6NkzEVlu8I8Xgn6_31JltrW0,7477
|
|
92
92
|
iatoolkit/templates/signup.html,sha256=9ArDvcNQgHFR2dwxy-37AXzGUOeOsT7Nz5u0y6fAB3U,4385
|
|
93
93
|
iatoolkit/templates/test.html,sha256=rwNtxC83tbCl5COZFXYvmRBxxmgFJtPNuVBd_nq9KWY,133
|
|
94
94
|
iatoolkit/views/__init__.py,sha256=5JqK9sZ6jBuK83zDQokUhxQ0wuJJJ9DXB8pYCLkX7X4,102
|
|
95
|
+
iatoolkit/views/base_login_view.py,sha256=k6FNULBwyqjQ9zWKJvFXS88dPydETazcSa_OR1hbKfY,2501
|
|
95
96
|
iatoolkit/views/change_password_view.py,sha256=tM0woZyKdhY4XYjS_YXg2sKq3RYkXGfcq_eVAKrNvNM,4498
|
|
96
97
|
iatoolkit/views/chat_token_request_view.py,sha256=wf32_A2Sq8NHYWshCwL10Tovd1znLoD0jQjzutR3sVE,4408
|
|
97
|
-
iatoolkit/views/external_login_view.py,sha256=
|
|
98
|
+
iatoolkit/views/external_login_view.py,sha256=qY5wxh98HyKI0Q1Phf6pkOzRGD7PvbH27GUZn0ccYu4,2889
|
|
98
99
|
iatoolkit/views/file_store_api_view.py,sha256=Uz9f6sey3_F5K8zuyQz6SwYRKAalCjD1ekf-Mkl_Kfo,2326
|
|
99
100
|
iatoolkit/views/forgot_password_view.py,sha256=-qKJeeOBqJFdvDUk7rCNg1E1cDQnJQkozPpb0T0FgwA,3159
|
|
100
101
|
iatoolkit/views/history_api_view.py,sha256=x-tZhB8UzqrD2n-WDIfmHK9iVhGZ9f0yncsGs9mxwt0,1953
|
|
@@ -103,14 +104,14 @@ iatoolkit/views/init_context_api_view.py,sha256=1j8NKfODfPrffbA5YO8TPMHh-ildlLNz
|
|
|
103
104
|
iatoolkit/views/llmquery_api_view.py,sha256=Rh-y-VENwwtNsDrYAD_SWKwjK16fW-pFRWlEvI-OYwY,2120
|
|
104
105
|
iatoolkit/views/llmquery_web_view.py,sha256=WhjlA1mfsoL8hL9tlKQfjCUcaTzT43odlp_uQKmT314,1500
|
|
105
106
|
iatoolkit/views/login_test_view.py,sha256=E50Lyhf6EsUilQl9W4SLKIWW39h_Gcyf8Y2rwAJqA-Y,1049
|
|
106
|
-
iatoolkit/views/login_view.py,sha256=
|
|
107
|
+
iatoolkit/views/login_view.py,sha256=TlLiNBaFvmk1bsGXutLkTqchvSjF1uC-Z1f6NDLYPjg,4323
|
|
107
108
|
iatoolkit/views/prompt_api_view.py,sha256=MP0r-MiswwKcbNc_5KY7aVbHkrR218I8XCiCX1D0yTA,1244
|
|
108
109
|
iatoolkit/views/signup_view.py,sha256=BCjhM2lMiDPwYrlW_eEwPl-ZLupblbFfsonWtq0E4vU,3922
|
|
109
110
|
iatoolkit/views/tasks_review_view.py,sha256=keLsLCyOTTlcoIapnB_lbuSvLwrPVZVpBiFC_7ChbLg,3388
|
|
110
111
|
iatoolkit/views/tasks_view.py,sha256=a3anTXrJTTvbQuc6PSpOzidLKQFL4hWa7PI2Cppcz8w,4110
|
|
111
112
|
iatoolkit/views/user_feedback_api_view.py,sha256=59XB9uQLHI4Q6QA4_XhK787HzfXb-c6EY7k1Ccyr4hI,2424
|
|
112
113
|
iatoolkit/views/verify_user_view.py,sha256=7XLSaxvs8LjBr3cYOUDa9B8DqW_50IGlq0IvmOQcD0Y,2340
|
|
113
|
-
iatoolkit-0.
|
|
114
|
-
iatoolkit-0.
|
|
115
|
-
iatoolkit-0.
|
|
116
|
-
iatoolkit-0.
|
|
114
|
+
iatoolkit-0.51.0.dist-info/METADATA,sha256=Hk7h63aIMgP0_P1ngiNJYhL4_VWtI-v8wSDEWFYyIBQ,9301
|
|
115
|
+
iatoolkit-0.51.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
116
|
+
iatoolkit-0.51.0.dist-info/top_level.txt,sha256=V_w4QvDx0b1RXiy8zTCrD1Bp7AZkFe3_O0-9fMiwogg,10
|
|
117
|
+
iatoolkit-0.51.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|