cmdbox 0.6.4__py3-none-any.whl → 0.6.4.2__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 cmdbox might be problematic. Click here for more details.
- cmdbox/app/app.py +6 -0
- cmdbox/app/common.py +7 -4
- cmdbox/app/commons/loghandler.py +101 -20
- cmdbox/app/edge.py +1 -3
- cmdbox/app/features/cli/{cmdbox_mcp_client.py → cmdbox_agent_mcp_client.py} +4 -3
- cmdbox/app/features/cli/{cmdbox_mcp_proxy.py → cmdbox_agent_mcp_proxy.py} +4 -4
- cmdbox/app/features/cli/cmdbox_cmd_list.py +1 -1
- cmdbox/app/features/cli/cmdbox_server_list.py +1 -1
- cmdbox/app/features/cli/cmdbox_server_start.py +2 -2
- cmdbox/app/features/cli/cmdbox_server_stop.py +2 -2
- cmdbox/app/features/cli/cmdbox_tts_install.py +11 -1
- cmdbox/app/features/cli/cmdbox_tts_start.py +1 -1
- cmdbox/app/features/cli/cmdbox_vision_install.py +213 -0
- cmdbox/app/features/cli/cmdbox_vision_predict.py +192 -0
- cmdbox/app/features/cli/cmdbox_vision_start.py +230 -0
- cmdbox/app/features/cli/cmdbox_web_apikey_add.py +1 -1
- cmdbox/app/features/cli/cmdbox_web_apikey_del.py +1 -1
- cmdbox/app/features/cli/cmdbox_web_gencert.py +1 -1
- cmdbox/app/features/cli/cmdbox_web_genpass.py +1 -1
- cmdbox/app/features/cli/cmdbox_web_group_add.py +1 -1
- cmdbox/app/features/cli/cmdbox_web_group_del.py +1 -1
- cmdbox/app/features/cli/cmdbox_web_group_edit.py +1 -1
- cmdbox/app/features/cli/cmdbox_web_group_list.py +2 -2
- cmdbox/app/features/cli/cmdbox_web_start.py +1 -0
- cmdbox/app/features/cli/cmdbox_web_stop.py +1 -1
- cmdbox/app/features/cli/cmdbox_web_user_add.py +1 -1
- cmdbox/app/features/cli/cmdbox_web_user_del.py +1 -1
- cmdbox/app/features/cli/cmdbox_web_user_edit.py +1 -1
- cmdbox/app/features/cli/cmdbox_web_user_list.py +2 -2
- cmdbox/app/features/web/cmdbox_web_agent.py +16 -4
- cmdbox/app/features/web/cmdbox_web_get_cmd_choices.py +10 -2
- cmdbox/app/features/web/cmdbox_web_save_cmd.py +1 -0
- cmdbox/app/features/web/cmdbox_web_versions_used.py +4 -0
- cmdbox/app/mcp.py +4 -1
- cmdbox/app/options.py +6 -4
- cmdbox/app/web.py +39 -17
- cmdbox/extensions/features.yml +4 -1
- cmdbox/licenses/LICENSE_APScheduler_3_11_0_MIT_License.txt +19 -0
- cmdbox/licenses/LICENSE_backoff_2_2_1_MIT_License.txt +21 -0
- cmdbox/licenses/LICENSE_fastapi-sso_0_18_0_MIT_License.txt +21 -0
- cmdbox/licenses/LICENSE_litellm-enterprise_0_1_19_UNKNOWN.txt +37 -0
- cmdbox/licenses/LICENSE_oauthlib_3_3_1_BSD-3-Clause.txt +27 -0
- cmdbox/licenses/LICENSE_orjson_3_11_1_Apache_Software_License-MIT_License.txt +201 -0
- cmdbox/licenses/files.txt +28 -23
- cmdbox/logconf_cmdbox.yml +32 -0
- cmdbox/version.py +2 -2
- cmdbox/web/agent.html +8 -0
- cmdbox/web/assets/cmdbox/agent.js +45 -1
- cmdbox/web/assets/cmdbox/common.js +4 -22
- cmdbox/web/voicevox_license_list.txt +41 -0
- {cmdbox-0.6.4.dist-info → cmdbox-0.6.4.2.dist-info}/METADATA +2 -1
- {cmdbox-0.6.4.dist-info → cmdbox-0.6.4.2.dist-info}/RECORD +78 -69
- cmdbox/licenses/LICENSE_voicevox_core_0_16_0_MIT.txt +0 -20
- /cmdbox/licenses/{LICENSE_SQLAlchemy_2_0_42_MIT.txt → LICENSE_SQLAlchemy_2_0_43_MIT.txt} +0 -0
- /cmdbox/licenses/{LICENSE_anyio_4_9_0_MIT_License.txt → LICENSE_anyio_4_10_0_UNKNOWN.txt} +0 -0
- /cmdbox/licenses/{LICENSE_certifi_2025_7_14_Mozilla_Public_License_2_0-MPL_2_0.txt → LICENSE_certifi_2025_8_3_Mozilla_Public_License_2_0-MPL_2_0.txt} +0 -0
- /cmdbox/licenses/{LICENSE_charset-normalizer_3_4_2_MIT_License.txt → LICENSE_charset-normalizer_3_4_3_MIT.txt} +0 -0
- /cmdbox/licenses/{LICENSE_cryptography_45_0_5_Apache-2_0_OR_BSD-3-Clause.txt → LICENSE_cryptography_45_0_6_Apache-2_0_OR_BSD-3-Clause.txt} +0 -0
- /cmdbox/licenses/{LICENSE_fastmcp_2_11_0_Apache_Software_License.txt → LICENSE_fastmcp_2_11_3_Apache_Software_License.txt} +0 -0
- /cmdbox/licenses/{LICENSE_google-adk_1_9_0_Apache_Software_License.txt → LICENSE_google-adk_1_10_0_Apache_Software_License.txt} +0 -0
- /cmdbox/licenses/{LICENSE_google-api-python-client_2_177_0_Apache_Software_License.txt → LICENSE_google-api-python-client_2_178_0_Apache_Software_License.txt} +0 -0
- /cmdbox/licenses/{LICENSE_google-cloud-aiplatform_1_106_0_Apache_2_0.txt → LICENSE_google-cloud-aiplatform_1_108_0_Apache_2_0.txt} +0 -0
- /cmdbox/licenses/{LICENSE_google-genai_1_28_0_Apache_Software_License.txt → LICENSE_google-genai_1_29_0_Apache_Software_License.txt} +0 -0
- /cmdbox/licenses/{LICENSE_greenlet_3_2_3_MIT_AND_Python-2_0.txt → LICENSE_greenlet_3_2_4_MIT_AND_Python-2_0.txt} +0 -0
- /cmdbox/licenses/{LICENSE_huggingface-hub_0_34_3_Apache_Software_License.txt → LICENSE_huggingface-hub_0_34_4_Apache_Software_License.txt} +0 -0
- /cmdbox/licenses/{LICENSE_litellm_1_74_12_MIT_License.txt → LICENSE_litellm_1_75_5_post1_MIT_License.txt} +0 -0
- /cmdbox/licenses/{LICENSE_markdown-it-py_3_0_0_MIT_License.txt → LICENSE_markdown-it-py_4_0_0_MIT_License.txt} +0 -0
- /cmdbox/licenses/{LICENSE_mcp_1_12_3_MIT_License.txt → LICENSE_mcp_1_12_4_MIT_License.txt} +0 -0
- /cmdbox/licenses/{LICENSE_multidict_6_6_3_Apache_License_2_0.txt → LICENSE_multidict_6_6_4_Apache_License_2_0.txt} +0 -0
- /cmdbox/licenses/{LICENSE_openai_1_98_0_Apache_Software_License.txt → LICENSE_openai_1_99_9_Apache_Software_License.txt} +0 -0
- /cmdbox/licenses/{LICENSE_redis_6_2_0_MIT_License.txt → LICENSE_redis_6_4_0_MIT_License.txt} +0 -0
- /cmdbox/licenses/{LICENSE_rpds-py_0_26_0_MIT.txt → LICENSE_rpds-py_0_27_0_UNKNOWN.txt} +0 -0
- /cmdbox/licenses/{LICENSE_sphinx-intl_2_3_1_BSD_License.txt → LICENSE_sphinx-intl_2_3_2_UNKNOWN.txt} +0 -0
- /cmdbox/licenses/{LICENSE_tenacity_8_5_0_Apache_Software_License.txt → LICENSE_tenacity_9_1_2_Apache_Software_License.txt} +0 -0
- /cmdbox/licenses/{LICENSE_tiktoken_0_9_0_MIT_License-Copyright-c-2022_OpenAI-Shantanu_Jain-Permission_is_hereby_granted-free_of_charge-to_any_pers.txt → LICENSE_tiktoken_0_11_0_MIT_License-Copyright-c-2022_OpenAI-Shantanu_Jain-Permission_is_hereby_granted-free_of_charge-to_any_per.txt} +0 -0
- {cmdbox-0.6.4.dist-info → cmdbox-0.6.4.2.dist-info}/WHEEL +0 -0
- {cmdbox-0.6.4.dist-info → cmdbox-0.6.4.2.dist-info}/entry_points.txt +0 -0
- {cmdbox-0.6.4.dist-info → cmdbox-0.6.4.2.dist-info}/licenses/LICENSE +0 -0
- {cmdbox-0.6.4.dist-info → cmdbox-0.6.4.2.dist-info}/top_level.txt +0 -0
|
@@ -50,5 +50,6 @@ class SaveCmd(feature.WebFeature):
|
|
|
50
50
|
if 'cmd_disabled' in opt: del opt['cmd_disabled']
|
|
51
51
|
if 'name_disabled' in opt: del opt['name_disabled']
|
|
52
52
|
if 'modal_mode' in opt: del opt['modal_mode']
|
|
53
|
+
if 'help' in opt: del opt['help']
|
|
53
54
|
common.saveopt(opt, opt_path, True)
|
|
54
55
|
return dict(success=f'Command "{title}" saved in "{opt_path}".')
|
|
@@ -25,6 +25,10 @@ class VersionsUsed(feature.WebFeature):
|
|
|
25
25
|
for i, line in enumerate(f.readlines()):
|
|
26
26
|
parts = line.strip().split('\t')
|
|
27
27
|
ret.append(parts)
|
|
28
|
+
with open(Path(cmdbox.__file__).parent / 'web' / 'voicevox_license_list.txt', 'r', encoding='utf-8') as f:
|
|
29
|
+
for i, line in enumerate(f.readlines()):
|
|
30
|
+
parts = line.strip().split('\t')
|
|
31
|
+
ret.append(parts)
|
|
28
32
|
with open(Path(cmdbox.__file__).parent / 'web' / 'assets_license_list.txt', 'r', encoding='utf-8') as f:
|
|
29
33
|
for i, line in enumerate(f.readlines()):
|
|
30
34
|
parts = line.strip().split('\t')
|
cmdbox/app/mcp.py
CHANGED
|
@@ -81,8 +81,9 @@ class Mcp:
|
|
|
81
81
|
"""
|
|
82
82
|
from google.adk.events import Event
|
|
83
83
|
from google.adk.sessions import DatabaseSessionService, InMemorySessionService, session
|
|
84
|
-
from typing_extensions import override
|
|
84
|
+
#from typing_extensions import override
|
|
85
85
|
if hasattr(args, 'agent_session_dburl') and args.agent_session_dburl is not None:
|
|
86
|
+
"""
|
|
86
87
|
class _DatabaseSessionService(DatabaseSessionService):
|
|
87
88
|
@override
|
|
88
89
|
async def append_event(self, session: session.Session, event: Event) -> Event:
|
|
@@ -98,6 +99,8 @@ class Mcp:
|
|
|
98
99
|
ret.content.parts = bk_parts
|
|
99
100
|
return ret
|
|
100
101
|
dss = _DatabaseSessionService(db_url=args.agent_session_dburl)
|
|
102
|
+
"""
|
|
103
|
+
dss = DatabaseSessionService(db_url=args.agent_session_dburl)
|
|
101
104
|
#dss.db_engine.echo = True
|
|
102
105
|
return dss
|
|
103
106
|
else:
|
cmdbox/app/options.py
CHANGED
|
@@ -8,10 +8,8 @@ from starlette.routing import Route
|
|
|
8
8
|
from typing import List, Dict, Any
|
|
9
9
|
import argparse
|
|
10
10
|
import functools
|
|
11
|
-
import locale
|
|
12
11
|
import logging
|
|
13
12
|
import re
|
|
14
|
-
import time
|
|
15
13
|
import uuid
|
|
16
14
|
|
|
17
15
|
|
|
@@ -179,8 +177,7 @@ class Options:
|
|
|
179
177
|
opt['action'] = 'append' if val['multi'] else None
|
|
180
178
|
o = [f'-{val["short"]}'] if "short" in val else []
|
|
181
179
|
o += [f'--{key}']
|
|
182
|
-
|
|
183
|
-
opt['help'] = val['description_en'] if language.find('Japan') < 0 and language.find('ja_JP') < 0 else val['description_ja']
|
|
180
|
+
opt['help'] = val['description_en'] if not common.is_japan() else val['description_ja']
|
|
184
181
|
opt['default'] = val['default']
|
|
185
182
|
if val['multi'] and val['default'] is not None:
|
|
186
183
|
raise ValueError(f'list_options: The default value must be None if multi is True. key={key}, val={val}')
|
|
@@ -300,6 +297,11 @@ class Options:
|
|
|
300
297
|
description_ja="このコマンド登録の説明文を指定します。Agentがこのコマンドの用途を理解するのに使用します。",
|
|
301
298
|
description_en="Specifies a description of this command registration, used to help the Agent understand the use of this command.",
|
|
302
299
|
choice=None)
|
|
300
|
+
self._options["logsv"] = dict(
|
|
301
|
+
type=Options.T_BOOL, default=False, required=False, multi=False, hide=True,
|
|
302
|
+
description_ja="logsvを有効にします。logsvは複数のプロセスがログファイルへの書き込みを同期するための機能です。すでにlogsvが有効なプロセスがある場合は無視されます。",
|
|
303
|
+
description_en="Enables logsv. Logsv is a feature that synchronizes log file writing among multiple processes. If there is already an active process with logsv enabled, it will be ignored.",
|
|
304
|
+
choice=[False, True])
|
|
303
305
|
|
|
304
306
|
def init_debugoption(self):
|
|
305
307
|
# デバックオプションを追加
|
cmdbox/app/web.py
CHANGED
|
@@ -793,10 +793,15 @@ class Web:
|
|
|
793
793
|
"""
|
|
794
794
|
if session_id is None:
|
|
795
795
|
session_id = common.random_string(32)
|
|
796
|
-
|
|
797
|
-
|
|
796
|
+
try:
|
|
797
|
+
session = await session_service.get_session(app_name=self.ver.__appid__, user_id=user_id, session_id=session_id)
|
|
798
|
+
if session is None:
|
|
799
|
+
session = await session_service.create_session(app_name=self.ver.__appid__, user_id=user_id, session_id=session_id)
|
|
800
|
+
return session
|
|
801
|
+
except NotImplementedError:
|
|
802
|
+
# セッションが1件もない場合はNotImplementedErrorが発生することがある
|
|
798
803
|
session = await session_service.create_session(app_name=self.ver.__appid__, user_id=user_id, session_id=session_id)
|
|
799
|
-
|
|
804
|
+
return session
|
|
800
805
|
self.create_agent_session = create_agent_session
|
|
801
806
|
async def list_agent_sessions(session_service:BaseSessionService, user_id:str, session_id:str=None) -> List[Session]:
|
|
802
807
|
"""
|
|
@@ -809,20 +814,37 @@ class Web:
|
|
|
809
814
|
Returns:
|
|
810
815
|
List[Session]: セッションリスト
|
|
811
816
|
"""
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
+
try:
|
|
818
|
+
if session_id is None:
|
|
819
|
+
sessions = await session_service.list_sessions(app_name=self.ver.__appid__, user_id=user_id)
|
|
820
|
+
ret = []
|
|
821
|
+
for s in sessions.sessions:
|
|
822
|
+
try:
|
|
823
|
+
session = await session_service.get_session(app_name=self.ver.__appid__, user_id=user_id, session_id=s.id)
|
|
824
|
+
if session is None:
|
|
825
|
+
continue
|
|
826
|
+
ret.append(session)
|
|
827
|
+
except:
|
|
828
|
+
# セッションが取得できない場合は削除する
|
|
829
|
+
try:
|
|
830
|
+
await session_service.delete_session(app_name=self.ver.__appid__, user_id=user_id, session_id=s.id)
|
|
831
|
+
except:
|
|
832
|
+
pass
|
|
833
|
+
finally:
|
|
834
|
+
continue
|
|
835
|
+
return ret
|
|
836
|
+
else:
|
|
837
|
+
session = await session_service.get_session(app_name=self.ver.__appid__, user_id=user_id, session_id=session_id)
|
|
817
838
|
if session is None:
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
839
|
+
return []
|
|
840
|
+
return [session]
|
|
841
|
+
except NotImplementedError:
|
|
842
|
+
# セッションが1件もない場合はNotImplementedErrorが発生することがある
|
|
843
|
+
return []
|
|
844
|
+
except Exception as e:
|
|
845
|
+
# それ以外のエラーが発生した時はログに出力して空リストを返す
|
|
846
|
+
self.logger.warning(f"list_agent_sessions warning: {e}", exc_info=True)
|
|
847
|
+
return []
|
|
826
848
|
self.list_agent_sessions = list_agent_sessions
|
|
827
849
|
async def delete_agent_session(session_service:BaseSessionService, user_id:str, session_id:str) -> bool:
|
|
828
850
|
"""
|
|
@@ -841,7 +863,7 @@ class Web:
|
|
|
841
863
|
|
|
842
864
|
mcp_app:Starlette = None
|
|
843
865
|
if self.mcp is not None:
|
|
844
|
-
mcp_app:Starlette = self.mcp.
|
|
866
|
+
mcp_app:Starlette = self.mcp.http_app()
|
|
845
867
|
#mcp_app:Starlette = self.mcp.http_app()
|
|
846
868
|
if mcp_app is not None:
|
|
847
869
|
app = FastAPI(lifespan=mcp_app.lifespan)
|
cmdbox/extensions/features.yml
CHANGED
|
@@ -44,7 +44,10 @@ agentrule: # Specifies a list of rules that determi
|
|
|
44
44
|
cmds: [list, load] # Specify the "cmd" to which the rule applies. Multiple items can be specified in a list.
|
|
45
45
|
rule: allow # Specifies whether the specified command is allowed or not. Values are allow or deny.
|
|
46
46
|
- mode: client
|
|
47
|
-
cmds: [http]
|
|
47
|
+
cmds: [file_download, file_list, http, server_info]
|
|
48
|
+
rule: allow
|
|
49
|
+
- mode: server
|
|
50
|
+
cmds: [list]
|
|
48
51
|
rule: allow
|
|
49
52
|
- mode: tts
|
|
50
53
|
cmds: [say]
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
This is the MIT license: http://www.opensource.org/licenses/mit-license.php
|
|
2
|
+
|
|
3
|
+
Copyright (c) Alex Grönholm
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
|
6
|
+
software and associated documentation files (the "Software"), to deal in the Software
|
|
7
|
+
without restriction, including without limitation the rights to use, copy, modify, merge,
|
|
8
|
+
publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
|
|
9
|
+
to whom the Software is furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all copies or
|
|
12
|
+
substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
15
|
+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
16
|
+
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
|
17
|
+
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
18
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
19
|
+
DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014 litl, LLC.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Tomas Votava <info@tomasvotava.eu>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
The BerriAI Enterprise license (the "Enterprise License")
|
|
3
|
+
Copyright (c) 2024 - present Berrie AI Inc.
|
|
4
|
+
|
|
5
|
+
With regard to the BerriAI Software:
|
|
6
|
+
|
|
7
|
+
This software and associated documentation files (the "Software") may only be
|
|
8
|
+
used in production, if you (and any entity that you represent) have agreed to,
|
|
9
|
+
and are in compliance with, the BerriAI Subscription Terms of Service, available
|
|
10
|
+
via [call](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat) or email (info@berri.ai) (the "Enterprise Terms"), or other
|
|
11
|
+
agreement governing the use of the Software, as agreed by you and BerriAI,
|
|
12
|
+
and otherwise have a valid BerriAI Enterprise license for the
|
|
13
|
+
correct number of user seats. Subject to the foregoing sentence, you are free to
|
|
14
|
+
modify this Software and publish patches to the Software. You agree that BerriAI
|
|
15
|
+
and/or its licensors (as applicable) retain all right, title and interest in and
|
|
16
|
+
to all such modifications and/or patches, and all such modifications and/or
|
|
17
|
+
patches may only be used, copied, modified, displayed, distributed, or otherwise
|
|
18
|
+
exploited with a valid BerriAI Enterprise license for the correct
|
|
19
|
+
number of user seats. Notwithstanding the foregoing, you may copy and modify
|
|
20
|
+
the Software for development and testing purposes, without requiring a
|
|
21
|
+
subscription. You agree that BerriAI and/or its licensors (as applicable) retain
|
|
22
|
+
all right, title and interest in and to all such modifications. You are not
|
|
23
|
+
granted any other rights beyond what is expressly stated herein. Subject to the
|
|
24
|
+
foregoing, it is forbidden to copy, merge, publish, distribute, sublicense,
|
|
25
|
+
and/or sell the Software.
|
|
26
|
+
|
|
27
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
28
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
29
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
30
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
31
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
32
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
33
|
+
SOFTWARE.
|
|
34
|
+
|
|
35
|
+
For all third party components incorporated into the BerriAI Software, those
|
|
36
|
+
components are licensed under the original license provided by the owner of the
|
|
37
|
+
applicable component.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Copyright (c) The OAuthlib Community
|
|
2
|
+
All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
|
6
|
+
|
|
7
|
+
1. Redistributions of source code must retain the above copyright notice,
|
|
8
|
+
this list of conditions and the following disclaimer.
|
|
9
|
+
|
|
10
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
+
notice, this list of conditions and the following disclaimer in the
|
|
12
|
+
documentation and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
15
|
+
contributors may be used to endorse or promote products derived from this
|
|
16
|
+
software without specific prior written permission.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
19
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
20
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
22
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
23
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
24
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
25
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
26
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
27
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|