agentize-bridge 0.2.0__tar.gz → 0.2.1__tar.gz
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.
- {agentize_bridge-0.2.0/src/agentize_bridge.egg-info → agentize_bridge-0.2.1}/PKG-INFO +1 -1
- {agentize_bridge-0.2.0 → agentize_bridge-0.2.1}/pyproject.toml +4 -4
- {agentize_bridge-0.2.0 → agentize_bridge-0.2.1}/src/agentize_bridge/__init__.py +3 -2
- {agentize_bridge-0.2.0/src/agentize_bridge/adapters → agentize_bridge-0.2.1/src/agentize_bridge/_adapters}/cli/parser.py +1 -1
- {agentize_bridge-0.2.0/src/agentize_bridge/adapters → agentize_bridge-0.2.1/src/agentize_bridge/_adapters}/mcp_server.py +1 -1
- {agentize_bridge-0.2.0/src/agentize_bridge/runtime → agentize_bridge-0.2.1/src/agentize_bridge/_runtime}/executor.py +1 -1
- {agentize_bridge-0.2.0/src/agentize_bridge/runtime → agentize_bridge-0.2.1/src/agentize_bridge/_runtime}/queues.py +1 -1
- {agentize_bridge-0.2.0/src/agentize_bridge/server → agentize_bridge-0.2.1/src/agentize_bridge/_server}/accept.py +1 -1
- {agentize_bridge-0.2.0/src/agentize_bridge/server → agentize_bridge-0.2.1/src/agentize_bridge/_server}/bridge.py +13 -4
- {agentize_bridge-0.2.0 → agentize_bridge-0.2.1/src/agentize_bridge.egg-info}/PKG-INFO +1 -1
- agentize_bridge-0.2.1/src/agentize_bridge.egg-info/SOURCES.txt +31 -0
- agentize_bridge-0.2.1/src/agentize_bridge.egg-info/entry_points.txt +4 -0
- {agentize_bridge-0.2.0 → agentize_bridge-0.2.1}/tests/test_integration.py +5 -5
- agentize_bridge-0.2.0/src/agentize_bridge/core/__init__.py +0 -9
- agentize_bridge-0.2.0/src/agentize_bridge/runtime/__init__.py +0 -9
- agentize_bridge-0.2.0/src/agentize_bridge/server/__init__.py +0 -3
- agentize_bridge-0.2.0/src/agentize_bridge.egg-info/SOURCES.txt +0 -34
- agentize_bridge-0.2.0/src/agentize_bridge.egg-info/entry_points.txt +0 -4
- {agentize_bridge-0.2.0 → agentize_bridge-0.2.1}/LICENSE +0 -0
- {agentize_bridge-0.2.0 → agentize_bridge-0.2.1}/README.md +0 -0
- {agentize_bridge-0.2.0 → agentize_bridge-0.2.1}/setup.cfg +0 -0
- {agentize_bridge-0.2.0 → agentize_bridge-0.2.1}/src/agentize_bridge/__version__.py +0 -0
- {agentize_bridge-0.2.0/src/agentize_bridge/adapters → agentize_bridge-0.2.1/src/agentize_bridge/_adapters}/cli/__init__.py +0 -0
- {agentize_bridge-0.2.0/src/agentize_bridge/adapters → agentize_bridge-0.2.1/src/agentize_bridge/_adapters}/cli/app.py +0 -0
- {agentize_bridge-0.2.0/src/agentize_bridge/adapters → agentize_bridge-0.2.1/src/agentize_bridge/_adapters}/cli/commands.py +0 -0
- {agentize_bridge-0.2.0/src/agentize_bridge/adapters → agentize_bridge-0.2.1/src/agentize_bridge/_adapters}/cli/output.py +0 -0
- {agentize_bridge-0.2.0/src/agentize_bridge/adapters → agentize_bridge-0.2.1/src/agentize_bridge/_adapters}/http_client.py +0 -0
- {agentize_bridge-0.2.0/src/agentize_bridge/core → agentize_bridge-0.2.1/src/agentize_bridge/_core}/command.py +0 -0
- {agentize_bridge-0.2.0/src/agentize_bridge/core → agentize_bridge-0.2.1/src/agentize_bridge/_core}/registry.py +0 -0
- {agentize_bridge-0.2.0/src/agentize_bridge/core → agentize_bridge-0.2.1/src/agentize_bridge/_core}/result.py +0 -0
- {agentize_bridge-0.2.0/src/agentize_bridge/core → agentize_bridge-0.2.1/src/agentize_bridge/_core}/schema.py +0 -0
- {agentize_bridge-0.2.0/src/agentize_bridge/runtime → agentize_bridge-0.2.1/src/agentize_bridge/_runtime}/container.py +0 -0
- {agentize_bridge-0.2.0/src/agentize_bridge/runtime → agentize_bridge-0.2.1/src/agentize_bridge/_runtime}/util.py +0 -0
- {agentize_bridge-0.2.0/src/agentize_bridge/server → agentize_bridge-0.2.1/src/agentize_bridge/_server}/access_log.py +0 -0
- {agentize_bridge-0.2.0/src/agentize_bridge/server → agentize_bridge-0.2.1/src/agentize_bridge/_server}/credentials.py +0 -0
- {agentize_bridge-0.2.0 → agentize_bridge-0.2.1}/src/agentize_bridge.egg-info/dependency_links.txt +0 -0
- {agentize_bridge-0.2.0 → agentize_bridge-0.2.1}/src/agentize_bridge.egg-info/requires.txt +0 -0
- {agentize_bridge-0.2.0 → agentize_bridge-0.2.1}/src/agentize_bridge.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "agentize-bridge"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.1"
|
|
8
8
|
description = "一个轻量级框架,用于通过 HTTP、CLI 和 MCP 暴露现有的 Python 应用程序命令。"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{ name = "ewoaoo" }]
|
|
@@ -19,9 +19,9 @@ dependencies = [
|
|
|
19
19
|
]
|
|
20
20
|
|
|
21
21
|
[project.scripts]
|
|
22
|
-
agentize-bridge = "agentize_bridge.
|
|
23
|
-
azb = "agentize_bridge.
|
|
24
|
-
agentize-bridge-mcp = "agentize_bridge.
|
|
22
|
+
agentize-bridge = "agentize_bridge._adapters.cli.app:main"
|
|
23
|
+
azb = "agentize_bridge._adapters.cli.app:main"
|
|
24
|
+
agentize-bridge-mcp = "agentize_bridge._adapters.mcp_server:main"
|
|
25
25
|
|
|
26
26
|
[dependency-groups]
|
|
27
27
|
dev = [
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from .__version__ import __version__ # 必须在最顶上,内部程序会从这里取版本
|
|
2
|
-
from .
|
|
3
|
-
from .
|
|
2
|
+
from ._server.bridge import AgentizeServer
|
|
3
|
+
from ._core.result import BinaryResult
|
|
4
|
+
from ._core.registry import command
|
|
4
5
|
|
|
5
6
|
__all__ = ["AgentizeServer", "BinaryResult", "command"]
|
|
@@ -5,9 +5,9 @@ from typing import Any, Mapping, cast
|
|
|
5
5
|
|
|
6
6
|
from pydantic import ValidationError
|
|
7
7
|
|
|
8
|
+
from .._core.command import Command
|
|
8
9
|
from .container import Container
|
|
9
10
|
from .util import get_instance_class_name
|
|
10
|
-
from agentize_bridge.core import Command
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class CommandNotFoundError(LookupError):
|
|
@@ -14,12 +14,21 @@ from fastapi import Body, FastAPI, HTTPException, Query, Request
|
|
|
14
14
|
from fastapi.middleware.trustedhost import TrustedHostMiddleware
|
|
15
15
|
from fastapi.responses import JSONResponse, Response
|
|
16
16
|
|
|
17
|
-
from .
|
|
17
|
+
from .._core.command import Command
|
|
18
|
+
from .._core.registry import snapshot
|
|
19
|
+
from .._core.result import BinaryResult
|
|
20
|
+
from .._runtime.container import Container
|
|
21
|
+
from .._runtime.executor import (
|
|
22
|
+
CommandArgumentsError,
|
|
23
|
+
CommandExecutionError,
|
|
24
|
+
CommandExecutor,
|
|
25
|
+
CommandNotFoundError,
|
|
26
|
+
)
|
|
27
|
+
from .._runtime.queues import CommandQueue
|
|
28
|
+
from ..__version__ import __version__
|
|
18
29
|
from .accept import DECLARED_MEDIA_TYPES, JSON_MEDIA_TYPE, accepted_media_types
|
|
30
|
+
from .access_log import AccessLogApp, LogMode, record_access_detail
|
|
19
31
|
from .credentials import AuthSetting, DEFAULT_TOKEN_FILE, load_or_create_credential, parse_auth_setting
|
|
20
|
-
from agentize_bridge import __version__
|
|
21
|
-
from agentize_bridge.runtime import CommandQueue, Container, CommandExecutor, CommandNotFoundError, CommandArgumentsError, CommandExecutionError
|
|
22
|
-
from agentize_bridge.core import BinaryResult, Command, snapshot
|
|
23
32
|
|
|
24
33
|
|
|
25
34
|
class ServerClosedError(RuntimeError):
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
src/agentize_bridge/__init__.py
|
|
5
|
+
src/agentize_bridge/__version__.py
|
|
6
|
+
src/agentize_bridge.egg-info/PKG-INFO
|
|
7
|
+
src/agentize_bridge.egg-info/SOURCES.txt
|
|
8
|
+
src/agentize_bridge.egg-info/dependency_links.txt
|
|
9
|
+
src/agentize_bridge.egg-info/entry_points.txt
|
|
10
|
+
src/agentize_bridge.egg-info/requires.txt
|
|
11
|
+
src/agentize_bridge.egg-info/top_level.txt
|
|
12
|
+
src/agentize_bridge/_adapters/http_client.py
|
|
13
|
+
src/agentize_bridge/_adapters/mcp_server.py
|
|
14
|
+
src/agentize_bridge/_adapters/cli/__init__.py
|
|
15
|
+
src/agentize_bridge/_adapters/cli/app.py
|
|
16
|
+
src/agentize_bridge/_adapters/cli/commands.py
|
|
17
|
+
src/agentize_bridge/_adapters/cli/output.py
|
|
18
|
+
src/agentize_bridge/_adapters/cli/parser.py
|
|
19
|
+
src/agentize_bridge/_core/command.py
|
|
20
|
+
src/agentize_bridge/_core/registry.py
|
|
21
|
+
src/agentize_bridge/_core/result.py
|
|
22
|
+
src/agentize_bridge/_core/schema.py
|
|
23
|
+
src/agentize_bridge/_runtime/container.py
|
|
24
|
+
src/agentize_bridge/_runtime/executor.py
|
|
25
|
+
src/agentize_bridge/_runtime/queues.py
|
|
26
|
+
src/agentize_bridge/_runtime/util.py
|
|
27
|
+
src/agentize_bridge/_server/accept.py
|
|
28
|
+
src/agentize_bridge/_server/access_log.py
|
|
29
|
+
src/agentize_bridge/_server/bridge.py
|
|
30
|
+
src/agentize_bridge/_server/credentials.py
|
|
31
|
+
tests/test_integration.py
|
|
@@ -11,11 +11,11 @@ from pydantic import BaseModel, PositiveInt
|
|
|
11
11
|
|
|
12
12
|
from mcp import Client, StdioServerParameters
|
|
13
13
|
from agentize_bridge import BinaryResult
|
|
14
|
-
from agentize_bridge.
|
|
15
|
-
from agentize_bridge.
|
|
16
|
-
from agentize_bridge.
|
|
17
|
-
from agentize_bridge.
|
|
18
|
-
from agentize_bridge.
|
|
14
|
+
from agentize_bridge._server.bridge import AgentizeServer
|
|
15
|
+
from agentize_bridge._core.registry import command, snapshot, clear
|
|
16
|
+
from agentize_bridge._adapters.http_client import HttpClient
|
|
17
|
+
from agentize_bridge._adapters.cli.app import run_cli
|
|
18
|
+
from agentize_bridge._adapters import mcp_server as mcp_adapter
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
_TEST_PNG = b64decode(
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
from .container import Container
|
|
2
|
-
from .executor import CommandExecutor, CommandArgumentsError, CommandExecutionError, CommandNotFoundError
|
|
3
|
-
from .queues import CommandQueue
|
|
4
|
-
|
|
5
|
-
__all__ = [
|
|
6
|
-
"Container",
|
|
7
|
-
"CommandExecutor", "CommandArgumentsError", "CommandExecutionError", "CommandNotFoundError",
|
|
8
|
-
"CommandQueue"
|
|
9
|
-
]
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
LICENSE
|
|
2
|
-
README.md
|
|
3
|
-
pyproject.toml
|
|
4
|
-
src/agentize_bridge/__init__.py
|
|
5
|
-
src/agentize_bridge/__version__.py
|
|
6
|
-
src/agentize_bridge.egg-info/PKG-INFO
|
|
7
|
-
src/agentize_bridge.egg-info/SOURCES.txt
|
|
8
|
-
src/agentize_bridge.egg-info/dependency_links.txt
|
|
9
|
-
src/agentize_bridge.egg-info/entry_points.txt
|
|
10
|
-
src/agentize_bridge.egg-info/requires.txt
|
|
11
|
-
src/agentize_bridge.egg-info/top_level.txt
|
|
12
|
-
src/agentize_bridge/adapters/http_client.py
|
|
13
|
-
src/agentize_bridge/adapters/mcp_server.py
|
|
14
|
-
src/agentize_bridge/adapters/cli/__init__.py
|
|
15
|
-
src/agentize_bridge/adapters/cli/app.py
|
|
16
|
-
src/agentize_bridge/adapters/cli/commands.py
|
|
17
|
-
src/agentize_bridge/adapters/cli/output.py
|
|
18
|
-
src/agentize_bridge/adapters/cli/parser.py
|
|
19
|
-
src/agentize_bridge/core/__init__.py
|
|
20
|
-
src/agentize_bridge/core/command.py
|
|
21
|
-
src/agentize_bridge/core/registry.py
|
|
22
|
-
src/agentize_bridge/core/result.py
|
|
23
|
-
src/agentize_bridge/core/schema.py
|
|
24
|
-
src/agentize_bridge/runtime/__init__.py
|
|
25
|
-
src/agentize_bridge/runtime/container.py
|
|
26
|
-
src/agentize_bridge/runtime/executor.py
|
|
27
|
-
src/agentize_bridge/runtime/queues.py
|
|
28
|
-
src/agentize_bridge/runtime/util.py
|
|
29
|
-
src/agentize_bridge/server/__init__.py
|
|
30
|
-
src/agentize_bridge/server/accept.py
|
|
31
|
-
src/agentize_bridge/server/access_log.py
|
|
32
|
-
src/agentize_bridge/server/bridge.py
|
|
33
|
-
src/agentize_bridge/server/credentials.py
|
|
34
|
-
tests/test_integration.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agentize_bridge-0.2.0 → agentize_bridge-0.2.1}/src/agentize_bridge.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|