sycommon-python-lib 0.2.3a5__py3-none-any.whl → 0.2.3a7__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.
- command/__init__.py +28 -28
- command/cli.py +457 -457
- command/core/__init__.py +19 -19
- command/core/console.py +36 -36
- command/core/models.py +78 -78
- command/core/project.py +310 -310
- command/core/utils.py +31 -31
- command/templates/__init__.py +1 -1
- command/templates/agent/README.md.tpl +88 -88
- command/templates/agent/__init__.py +1 -1
- command/templates/agent/agent/__init__.py.tpl +6 -6
- command/templates/agent/agent/main_agent.py.tpl +51 -51
- command/templates/agent/agent/nodes/__init__.py.tpl +6 -6
- command/templates/agent/agent/nodes/example_node.py.tpl +33 -33
- command/templates/agent/agent/states/__init__.py.tpl +6 -6
- command/templates/agent/agent/states/agent_state.py.tpl +30 -30
- command/templates/agent/api/__init__.py.tpl +3 -3
- command/templates/agent/api/query.py.tpl +30 -30
- command/templates/agent/api/sse/__init__.py.tpl +6 -6
- command/templates/agent/api/sse/agent.py.tpl +30 -30
- command/templates/agent/app.py.tpl +95 -95
- command/templates/agent/client/__init__.py.tpl +3 -3
- command/templates/agent/db/__init__.py.tpl +8 -8
- command/templates/agent/db/model/__init__.py.tpl +8 -8
- command/templates/agent/db/model/entity.py.tpl +24 -24
- command/templates/agent/db/service.py.tpl +37 -37
- command/templates/agent/model/__init__.py.tpl +3 -3
- command/templates/agent/model/parse.py.tpl +22 -22
- command/templates/agent/tools/__init__.py.tpl +3 -3
- command/templates/agent/tools/mq.py.tpl +66 -66
- command/templates/base/.env.tpl +9 -9
- command/templates/base/.gitignore.tpl +38 -38
- command/templates/base/Dockerfile.tpl +19 -19
- command/templates/base/README.md.tpl +62 -62
- command/templates/base/__init__.py +1 -1
- command/templates/base/app.py.tpl +66 -66
- command/templates/base/app.yaml.tpl +29 -29
- command/templates/base/client/FileServiceClient.py.tpl +15 -15
- command/templates/base/model/file_info.py.tpl +14 -14
- command/templates/base/requirements.txt.tpl +32 -32
- command/templates/cli/README.md.tpl +54 -54
- command/templates/cli/__init__.py +1 -1
- command/templates/cli/app.py.tpl +45 -45
- command/templates/cli/commands/__init__.py.tpl +1 -1
- command/templates/cli/commands/hello.py.tpl +6 -6
- command/templates/cli/pyproject.toml.tpl +14 -14
- command/templates/cli/tools/__init__.py.tpl +3 -3
- command/templates/web/README.md.tpl +80 -80
- command/templates/web/__init__.py +1 -1
- command/templates/web/api/__init__.py.tpl +6 -6
- command/templates/web/api/echo.py.tpl +28 -28
- command/templates/web/api/sse/__init__.py.tpl +8 -8
- command/templates/web/api/sse/echo.py.tpl +37 -37
- command/templates/web/app.py.tpl +99 -99
- command/templates/web/client/__init__.py.tpl +3 -3
- command/templates/web/model/__init__.py.tpl +3 -3
- command/templates/web/tools/__init__.py.tpl +3 -3
- command/templates/web/tools/mq.py.tpl +29 -29
- nexus/__init__.py +40 -40
- sycli/__init__.py +3 -3
- sycli/__main__.py +6 -6
- sycli/agents/__init__.py +1 -1
- sycli/agents/factory.py +245 -245
- sycli/agents/prompts.py +469 -469
- sycli/cdp/__init__.py +1 -1
- sycli/cdp/browser.py +214 -214
- sycli/cdp/capabilities/__init__.py +1 -1
- sycli/cdp/capabilities/console.py +85 -85
- sycli/cdp/capabilities/dom.py +53 -53
- sycli/cdp/capabilities/network.py +119 -119
- sycli/cdp/capabilities/page_errors.py +91 -91
- sycli/cdp/capabilities/performance.py +67 -67
- sycli/cdp/capabilities/screenshot.py +61 -61
- sycli/cdp/client.py +148 -148
- sycli/cdp/protocol.py +133 -133
- sycli/cdp/repl.py +267 -267
- sycli/cli.py +558 -558
- sycli/commands/__init__.py +1 -1
- sycli/commands/cdp_cmd.py +271 -271
- sycli/commands/chat_cmd.py +283 -283
- sycli/commands/create_cmd.py +122 -122
- sycli/commands/evaluate_cmd.py +180 -180
- sycli/commands/init_cmd.py +164 -164
- sycli/commands/memory_cmd.py +168 -168
- sycli/commands/resume_cmd.py +234 -234
- sycli/commands/rollback_cmd.py +52 -52
- sycli/commands/run_cmd.py +112 -112
- sycli/core/__init__.py +31 -31
- sycli/core/backend.py +36 -36
- sycli/core/config.py +4 -4
- sycli/core/display.py +96 -96
- sycli/core/git_integration.py +198 -198
- sycli/core/llm.py +63 -63
- sycli/core/state.py +40 -40
- sycli/evaluate/__init__.py +1 -1
- sycli/evaluate/api_evaluator.py +696 -696
- sycli/memory/__init__.py +1 -1
- sycli/memory/compressor.py +134 -134
- sycli/memory/full.py +74 -74
- sycli/memory/hot.py +92 -92
- sycli/memory/manager.py +253 -253
- sycli/memory/warm.py +85 -85
- sycli/mode/__init__.py +1 -1
- sycli/mode/create.py +501 -501
- sycli/mode/optimize.py +40 -40
- sycli/models/__init__.py +1 -1
- sycli/models/config_models.py +212 -212
- sycli/rl/__init__.py +1 -1
- sycli/rl/baseline_tests.py +245 -245
- sycli/rl/checkpoint.py +497 -497
- sycli/rl/convergence.py +226 -226
- sycli/rl/diagnosis.py +195 -195
- sycli/rl/engine.py +1792 -1792
- sycli/rl/environment.py +489 -489
- sycli/rl/experience.py +230 -230
- sycli/rl/harness_prompts.py +93 -93
- sycli/rl/history.py +136 -136
- sycli/rl/optimization_logger.py +264 -264
- sycli/rl/pre_validation.py +106 -106
- sycli/rl/reward.py +132 -132
- sycli/rl/strategy_bandit.py +291 -291
- sycli/rl/strategy_generator.py +218 -218
- sycli/rl/strategy_prompts.py +97 -97
- sycli/skills/__init__.py +5 -5
- sycommon/agent/__init__.py +150 -150
- sycommon/agent/agent_manager.py +445 -445
- sycommon/agent/chat_events.py +447 -447
- sycommon/agent/deep_agent.py +729 -729
- sycommon/agent/multi_agent_team.py +719 -719
- sycommon/agent/sandbox/__init__.py +103 -103
- sycommon/agent/sandbox/file_ops.py +612 -612
- sycommon/agent/sandbox/http_sandbox_backend.py +1298 -1298
- sycommon/agent/sandbox/minio_sync.py +500 -500
- sycommon/agent/sandbox/sandbox_pool.py +267 -267
- sycommon/agent/sandbox/sandbox_recovery.py +200 -200
- sycommon/agent/sandbox/session.py +82 -82
- sycommon/agent/summarization_utils.py +144 -77
- sycommon/auth/__init__.py +46 -46
- sycommon/auth/ldap_service.py +340 -340
- sycommon/auth/wecom_ldap_service.py +490 -490
- sycommon/config/Config.py +175 -175
- sycommon/config/DatabaseConfig.py +34 -34
- sycommon/config/ElasticsearchConfig.py +65 -65
- sycommon/config/EmbeddingConfig.py +15 -15
- sycommon/config/LLMConfig.py +19 -19
- sycommon/config/LangfuseConfig.py +15 -15
- sycommon/config/MQConfig.py +15 -15
- sycommon/config/RedisConfig.py +150 -150
- sycommon/config/RerankerConfig.py +14 -14
- sycommon/config/SentryConfig.py +13 -13
- sycommon/config/XxlJobConfig.py +17 -17
- sycommon/database/async_base_db_service.py +36 -36
- sycommon/database/async_database_service.py +100 -100
- sycommon/database/base_db_service.py +30 -30
- sycommon/database/database_service.py +98 -98
- sycommon/database/elasticsearch_service.py +104 -104
- sycommon/database/redis_service.py +767 -767
- sycommon/database/token_usage_db_service.py +181 -181
- sycommon/health/health_check.py +17 -17
- sycommon/health/metrics.py +13 -13
- sycommon/health/ping.py +13 -13
- sycommon/heartbeat_process/__init__.py +67 -67
- sycommon/heartbeat_process/heartbeat_config.py +137 -137
- sycommon/heartbeat_process/heartbeat_process_manager.py +299 -299
- sycommon/heartbeat_process/heartbeat_process_worker.py +466 -466
- sycommon/llm/embedding.py +455 -455
- sycommon/llm/get_llm.py +189 -189
- sycommon/llm/llm_logger.py +77 -77
- sycommon/llm/llm_tokens.py +127 -127
- sycommon/llm/llm_with_token_tracking.py +259 -259
- sycommon/llm/native_with_fallback_runnable.py +201 -201
- sycommon/llm/output_fixing_runnable.py +216 -216
- sycommon/llm/struct_token.py +486 -486
- sycommon/llm/sy_langfuse.py +120 -120
- sycommon/llm/token_usage_es_service.py +539 -539
- sycommon/llm/token_usage_mysql_service.py +818 -818
- sycommon/llm/usage_token.py +186 -186
- sycommon/logging/async_sql_logger.py +65 -65
- sycommon/logging/kafka_log.py +339 -339
- sycommon/logging/logger_levels.py +23 -23
- sycommon/logging/logger_wrapper.py +25 -25
- sycommon/logging/process_logger.py +177 -177
- sycommon/logging/sql_logger.py +53 -53
- sycommon/middleware/background_execution.py +568 -568
- sycommon/middleware/context.py +5 -5
- sycommon/middleware/cors.py +16 -16
- sycommon/middleware/docs.py +30 -30
- sycommon/middleware/exception.py +79 -79
- sycommon/middleware/middleware.py +51 -51
- sycommon/middleware/monitor_memory.py +22 -22
- sycommon/middleware/mq.py +8 -8
- sycommon/middleware/sandbox.py +1553 -1553
- sycommon/middleware/timeout.py +44 -44
- sycommon/middleware/token_tracking.py +173 -173
- sycommon/middleware/tool_result_truncation.py +192 -192
- sycommon/middleware/traceid.py +312 -312
- sycommon/models/base_http.py +101 -101
- sycommon/models/log.py +30 -30
- sycommon/models/mqlistener_config.py +39 -40
- sycommon/models/mqmsg_model.py +11 -11
- sycommon/models/mqsend_config.py +8 -8
- sycommon/models/sandbox.py +340 -340
- sycommon/models/sso_user.py +66 -66
- sycommon/models/token_usage.py +25 -25
- sycommon/models/token_usage_mysql.py +59 -59
- sycommon/models/xxljob_handler_config.py +11 -11
- sycommon/notice/__init__.py +5 -5
- sycommon/notice/uvicorn_monitor.py +346 -346
- sycommon/notice/wecom_message.py +328 -328
- sycommon/rabbitmq/process_pool_consumer.py +850 -850
- sycommon/rabbitmq/rabbitmq_client.py +455 -455
- sycommon/rabbitmq/rabbitmq_pool.py +324 -324
- sycommon/rabbitmq/rabbitmq_service.py +242 -242
- sycommon/rabbitmq/rabbitmq_service_client_manager.py +252 -253
- sycommon/rabbitmq/rabbitmq_service_connection_monitor.py +108 -108
- sycommon/rabbitmq/rabbitmq_service_consumer_manager.py +243 -243
- sycommon/rabbitmq/rabbitmq_service_core.py +130 -130
- sycommon/rabbitmq/rabbitmq_service_producer_manager.py +231 -231
- sycommon/sentry/sy_sentry.py +35 -35
- sycommon/services.py +505 -505
- sycommon/sse/__init__.py +4 -4
- sycommon/sse/event.py +97 -97
- sycommon/sse/sse.py +289 -289
- sycommon/synacos/__init__.py +9 -9
- sycommon/synacos/example.py +248 -248
- sycommon/synacos/example2.py +227 -227
- sycommon/synacos/feign.py +310 -310
- sycommon/synacos/feign_client.py +432 -432
- sycommon/synacos/nacos_client_base.py +171 -171
- sycommon/synacos/nacos_config_manager.py +163 -163
- sycommon/synacos/nacos_heartbeat_manager.py +245 -245
- sycommon/synacos/nacos_service.py +286 -286
- sycommon/synacos/nacos_service_discovery.py +245 -245
- sycommon/synacos/nacos_service_registration.py +263 -263
- sycommon/synacos/param.py +75 -75
- sycommon/tests/deep_agent_server.py +535 -535
- sycommon/tests/test_deep_agent.py +160 -160
- sycommon/tests/test_email.py +172 -172
- sycommon/tests/test_mq.py +128 -128
- sycommon/tests/test_real_summarization.py +166 -0
- sycommon/tools/async_utils.py +26 -26
- sycommon/tools/docs.py +42 -42
- sycommon/tools/env.py +62 -62
- sycommon/tools/merge_headers.py +135 -135
- sycommon/tools/snowflake.py +263 -263
- sycommon/tools/syemail.py +173 -173
- sycommon/tools/timing.py +73 -73
- sycommon/xxljob/__init__.py +3 -3
- sycommon/xxljob/xxljob_service.py +196 -196
- {sycommon_python_lib-0.2.3a5.dist-info → sycommon_python_lib-0.2.3a7.dist-info}/METADATA +149 -149
- sycommon_python_lib-0.2.3a7.dist-info/RECORD +265 -0
- sycommon_python_lib-0.2.3a5.dist-info/RECORD +0 -264
- {sycommon_python_lib-0.2.3a5.dist-info → sycommon_python_lib-0.2.3a7.dist-info}/WHEEL +0 -0
- {sycommon_python_lib-0.2.3a5.dist-info → sycommon_python_lib-0.2.3a7.dist-info}/entry_points.txt +0 -0
- {sycommon_python_lib-0.2.3a5.dist-info → sycommon_python_lib-0.2.3a7.dist-info}/top_level.txt +0 -0
command/__init__.py
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
"""
|
|
2
|
-
sycommon CLI 工具集
|
|
3
|
-
"""
|
|
4
|
-
from .cli import main
|
|
5
|
-
from .core import (
|
|
6
|
-
FeatureOptions,
|
|
7
|
-
print_info,
|
|
8
|
-
print_success,
|
|
9
|
-
print_error,
|
|
10
|
-
print_warning,
|
|
11
|
-
Colors,
|
|
12
|
-
get_all_files_in_directory,
|
|
13
|
-
init_project,
|
|
14
|
-
interactive_feature_selection,
|
|
15
|
-
)
|
|
16
|
-
|
|
17
|
-
__all__ = [
|
|
18
|
-
"main",
|
|
19
|
-
"FeatureOptions",
|
|
20
|
-
"print_info",
|
|
21
|
-
"print_success",
|
|
22
|
-
"print_error",
|
|
23
|
-
"print_warning",
|
|
24
|
-
"Colors",
|
|
25
|
-
"get_all_files_in_directory",
|
|
26
|
-
"init_project",
|
|
27
|
-
"interactive_feature_selection",
|
|
28
|
-
]
|
|
1
|
+
"""
|
|
2
|
+
sycommon CLI 工具集
|
|
3
|
+
"""
|
|
4
|
+
from .cli import main
|
|
5
|
+
from .core import (
|
|
6
|
+
FeatureOptions,
|
|
7
|
+
print_info,
|
|
8
|
+
print_success,
|
|
9
|
+
print_error,
|
|
10
|
+
print_warning,
|
|
11
|
+
Colors,
|
|
12
|
+
get_all_files_in_directory,
|
|
13
|
+
init_project,
|
|
14
|
+
interactive_feature_selection,
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
"main",
|
|
19
|
+
"FeatureOptions",
|
|
20
|
+
"print_info",
|
|
21
|
+
"print_success",
|
|
22
|
+
"print_error",
|
|
23
|
+
"print_warning",
|
|
24
|
+
"Colors",
|
|
25
|
+
"get_all_files_in_directory",
|
|
26
|
+
"init_project",
|
|
27
|
+
"interactive_feature_selection",
|
|
28
|
+
]
|