sycommon-python-lib 0.2.12a4__tar.gz → 0.2.12a5__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.
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/PKG-INFO +1 -1
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/pyproject.toml +4 -2
- sycommon_python_lib-0.2.12a5/src/sycommon/devchat/_page.html +556 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/devchat/handler.py +96 -16
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/devchat/store.py +2 -1
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/devchat/tasks.py +36 -10
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon_python_lib.egg-info/PKG-INFO +1 -1
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon_python_lib.egg-info/SOURCES.txt +1 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/README.md +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/setup.cfg +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/cli.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/core/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/core/console.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/core/models.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/core/project.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/core/utils.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/README.md.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/agent/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/agent/main_agent.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/agent/nodes/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/agent/nodes/example_node.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/agent/states/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/agent/states/agent_state.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/api/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/api/query.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/api/sse/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/api/sse/agent.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/app.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/client/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/db/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/db/model/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/db/model/entity.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/db/service.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/model/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/model/parse.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/tools/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/agent/tools/mq.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/base/.env.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/base/.gitignore.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/base/Dockerfile.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/base/README.md.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/base/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/base/app.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/base/app.yaml.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/base/client/FileServiceClient.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/base/client/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/base/model/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/base/model/file_info.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/base/requirements.txt.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/cli/README.md.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/cli/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/cli/app.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/cli/commands/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/cli/commands/hello.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/cli/pyproject.toml.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/cli/tools/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/web/README.md.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/web/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/web/api/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/web/api/echo.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/web/api/sse/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/web/api/sse/echo.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/web/app.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/web/client/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/web/model/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/web/tools/__init__.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/command/templates/web/tools/mq.py.tpl +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/nexus/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/__main__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/acp/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/acp/config.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/acp/executor.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/acp/registry.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/acp/server.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/agents/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/agents/factory.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/agents/prompts.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/cdp/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/cdp/browser.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/cdp/capabilities/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/cdp/capabilities/console.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/cdp/capabilities/dom.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/cdp/capabilities/network.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/cdp/capabilities/page_errors.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/cdp/capabilities/performance.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/cdp/capabilities/screenshot.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/cdp/client.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/cdp/protocol.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/cdp/repl.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/cli.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/commands/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/commands/acp_cmd.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/commands/acp_serve_cmd.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/commands/cdp_cmd.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/commands/chat_cmd.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/commands/create_cmd.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/commands/evaluate_cmd.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/commands/init_cmd.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/commands/memory_cmd.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/commands/resume_cmd.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/commands/rollback_cmd.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/commands/run_cmd.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/core/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/core/backend.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/core/config.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/core/display.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/core/git_integration.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/core/llm.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/core/state.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/evaluate/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/evaluate/api_evaluator.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/memory/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/memory/compressor.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/memory/full.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/memory/hot.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/memory/manager.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/memory/warm.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/mode/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/mode/create.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/mode/optimize.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/models/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/models/config_models.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/rl/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/rl/baseline_tests.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/rl/checkpoint.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/rl/convergence.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/rl/diagnosis.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/rl/engine.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/rl/environment.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/rl/experience.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/rl/harness_prompts.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/rl/history.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/rl/optimization_logger.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/rl/pre_validation.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/rl/reward.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/rl/strategy_bandit.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/rl/strategy_generator.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/rl/strategy_prompts.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/simple_chat_agent.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycli/skills/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/acp/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/acp/client.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/acp/fetch.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/acp/server_adapter.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/acp/ssh_init.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/acp/tool.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/agent_manager.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/chat_events.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/dashboard/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/dashboard/api.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/dashboard/models.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/dashboard/stats.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/deep_agent.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/mcp/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/mcp/models.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/mcp/tool_loader.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/middleware/model_request_prep.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/middleware/sandbox_path_guard.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/middleware/sensitive_guard.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/middleware/skill_write_guard.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/multi_agent_team.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/reasoning_content_patch.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/resume_compactor.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/sandbox/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/sandbox/consistent_hash.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/sandbox/file_ops.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/sandbox/http_sandbox_backend.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/sandbox/minio_sync.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/sandbox/sandbox_pool.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/sandbox/sandbox_recovery.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/sandbox/session.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/skills_retry_patch.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/agent/summarization_utils.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/alert/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/alert/alert_sdk.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/alert/ao.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/alert/api.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/alert/bridge.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/alert/env.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/alert/guard.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/alert/monitor.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/alert/mq_alert.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/alert/queue.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/alert/ratelimit.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/alert/sdk.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/alert/sdk_selfcheck.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/auth/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/auth/ldap_service.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/auth/oa_cache.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/auth/oa_crypto.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/auth/oa_service.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/auth/wecom_ldap_service.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/config/ACPAgentConfig.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/config/Config.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/config/DatabaseConfig.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/config/EgressPolicyConfig.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/config/ElasticsearchConfig.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/config/EmbeddingConfig.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/config/LLMConfig.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/config/LangfuseConfig.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/config/MQConfig.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/config/PgConfig.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/config/RedisConfig.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/config/RerankerConfig.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/config/SentryConfig.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/config/XxlJobConfig.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/config/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/config/config_change_notifier.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/database/async_base_db_service.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/database/async_database_service.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/database/base_db_service.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/database/database_service.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/database/distlock.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/database/elasticsearch_service.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/database/pg_checkpoint_service.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/database/redis_service.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/database/resilient_pg_saver.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/database/token_usage_db_service.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/database/txnref.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/devchat/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/devchat/_page.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/health/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/health/health_check.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/health/metrics.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/health/ping.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/health/readiness.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/heartbeat_process/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/heartbeat_process/heartbeat_config.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/heartbeat_process/heartbeat_process_manager.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/heartbeat_process/heartbeat_process_worker.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/llm/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/llm/embedding.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/llm/get_llm.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/llm/llm_logger.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/llm/llm_tokens.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/llm/llm_with_token_tracking.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/llm/native_with_fallback_runnable.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/llm/output_fixing_runnable.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/llm/struct_token.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/llm/sy_langfuse.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/llm/tiktoken_cache/9b5ad71b2ce5302211f9c61530b329a4922fc6a4 +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/llm/tiktoken_cache/fb374d419588a4632f3f557e76b4b70aebbca790 +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/llm/token_usage_es_service.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/llm/token_usage_mysql_service.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/llm/token_utils.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/llm/usage_token.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/logging/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/logging/async_sql_logger.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/logging/bounded_kafka_sink.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/logging/bounded_stdout_sink.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/logging/kafka_log.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/logging/log_masker.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/logging/logger_levels.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/logging/logger_wrapper.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/logging/mask_engine.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/logging/process_logger.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/logging/sql_logger.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/mcp_server/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/mcp_server/server.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/middleware/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/middleware/context.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/middleware/cors.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/middleware/crosstenant.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/middleware/docs.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/middleware/egress_wall.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/middleware/exception.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/middleware/middleware.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/middleware/monitor_memory.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/middleware/mq.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/middleware/sandbox.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/middleware/sandbox_gateway.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/middleware/timeout.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/middleware/token_tracking.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/middleware/tool_result_truncation.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/middleware/traceid.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/models/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/models/base_http.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/models/log.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/models/mcp_server_config.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/models/mqlistener_config.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/models/mqmsg_model.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/models/mqsend_config.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/models/sandbox.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/models/sso_user.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/models/token_usage.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/models/token_usage_mysql.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/models/xxljob_handler_config.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/notice/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/notice/uvicorn_monitor.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/notice/wecom_message.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/agent/loop.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/agent/types.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/coding/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/coding/mcpserver.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/core/json_parse.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/core/message.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/core/model.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/core/retry.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/core/transcript.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/core/transform.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/core/usage.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/core/validation.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/mcp/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/mcp/client.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/mcp/jsonrpc.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/mcp/transport.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/providers/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/providers/anthropic_client.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/providers/bedrock_client.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/providers/faux.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/providers/google_client.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/providers/kimi_client.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/pi/providers/openai_client.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/rabbitmq/delay_queue.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/rabbitmq/mq_store.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/rabbitmq/process_pool_consumer.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/rabbitmq/rabbit_management_client.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/rabbitmq/rabbitmq_client.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/rabbitmq/rabbitmq_pool.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/rabbitmq/rabbitmq_service.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/rabbitmq/rabbitmq_service_client_manager.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/rabbitmq/rabbitmq_service_connection_monitor.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/rabbitmq/rabbitmq_service_consumer_manager.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/rabbitmq/rabbitmq_service_core.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/rabbitmq/rabbitmq_service_producer_manager.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/rabbitmq/raw_mq.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/rabbitmq/topic_registry.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/sentry/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/sentry/sy_sentry.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/services.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/sse/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/sse/event.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/sse/sse.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/synacos/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/synacos/example.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/synacos/example2.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/synacos/feign.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/synacos/feign_client.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/synacos/nacos_async_loop.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/synacos/nacos_client_base.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/synacos/nacos_config_manager.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/synacos/nacos_connection_alert_listener.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/synacos/nacos_service.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/synacos/nacos_service_discovery.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/synacos/nacos_service_registration.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/synacos/param.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/deep_agent_server.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_backend_factory_compat.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_consistent_hash.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_consume_dedup.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_consumer_broker_health.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_consumer_loss_rootcause.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_consumer_recovery.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_consumer_recovery_fix.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_consumer_tags_sync.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_db_keepalive.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_deep_agent.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_dynamic_max_tokens.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_email.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_encoding_cache.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_env_tenant_helper.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_exp_concurrent_migrate.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_exp_delete_queue_with_consumers.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_fault_injection_real.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_fix_verification.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_heartbeat_timeout.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_integration_real_broker.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_mcp_server.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_minimax_reasoning.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_mq.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_mq_config_driven.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_nacos_llm_real.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_oa_login.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_queue_priority_fallback.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_queue_priority_upgrade_timing.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_real_summarization.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_reconnect_scenarios.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_sandbox_glob_hardening.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_services_plugin_defaults.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_summarization_config.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_summarization_real.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_summary_leak_e2e.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_upgrade_aio_pika.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_upgrade_langgraph_stream.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tests/test_upgrade_verification.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tools/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tools/async_utils.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tools/audit.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tools/docs.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tools/env.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tools/excel.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tools/merge_headers.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tools/money.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tools/snowflake.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tools/sso_token.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tools/syemail.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tools/time_utils.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tools/timing.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tools/tree.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tools/user_id.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/tools/usercache.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/xxljob/__init__.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/xxljob/sharding.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon/xxljob/xxljob_service.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon_python_lib.egg-info/dependency_links.txt +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon_python_lib.egg-info/entry_points.txt +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon_python_lib.egg-info/requires.txt +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/src/sycommon_python_lib.egg-info/top_level.txt +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_acp_tool.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_agent_manager_idle_reap.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_alert_monitor.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_asyncio_logging.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_config_change_notifier.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_frame_alignment.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_hotreload_snapshot.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_kafka_upie_fix.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_llm_apikey_contextvar.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_log_masker.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_mask_engine.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_mask_engine_wiring.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_print_capture.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_resilient_pg_saver.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_sandbox_path_guard.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_sensitive_guard.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_simple_chat_agent.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_skill_regex_upgrade.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_skill_write_guard.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_sql_params_full.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_streaming_e2e.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_summary_echo_break_loop.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_sycli.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_sylogger_fixes.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_sync_skills_to_sandbox.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_time_utils.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_traceid_omit_base64.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_unicode_decode_regress.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_upload_concurrency.py +0 -0
- {sycommon_python_lib-0.2.12a4 → sycommon_python_lib-0.2.12a5}/tests/test_upload_e2e_http.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "sycommon-python-lib"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.12a5"
|
|
4
4
|
description = "Add your description here"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.11"
|
|
@@ -51,7 +51,9 @@ dependencies = [
|
|
|
51
51
|
|
|
52
52
|
[tool.setuptools]
|
|
53
53
|
packages = {find = {where = ["src"], exclude = ["*.__pycache__", "*.__pycache__.*", "*.tests", "*.tests.*"]}}
|
|
54
|
-
|
|
54
|
+
# devchat/_page.html:_page.py import 时 read_text,缺席则包整体不可用
|
|
55
|
+
# (pip 安装侧 FileNotFoundError)— 必须随包分发。
|
|
56
|
+
package-data = {command = ["templates/**/*", "templates/**/.*"], sycommon = ["llm/tiktoken_cache/*", "devchat/_page.html"]}
|
|
55
57
|
|
|
56
58
|
[build-system]
|
|
57
59
|
requires = ["setuptools"]
|
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>DevChat 开发协作</title>
|
|
7
|
+
<style>
|
|
8
|
+
:root {
|
|
9
|
+
--navy: #0f0966; --blue: #185fa5; --blue-bg: #e6f1fb;
|
|
10
|
+
--teal: #0f6e56; --teal-bg: #e1f5ee; --orange: #e68615; --orange-bg: #faeeda;
|
|
11
|
+
--red: #a32d2d; --red-bg: #fcebeb;
|
|
12
|
+
--ink: #1f2329; --ink-2: #4b5563; --ink-3: #8a919c;
|
|
13
|
+
--line: #e5e7eb; --bg: #f6f7f9; --card: #fff; --r: 10px;
|
|
14
|
+
}
|
|
15
|
+
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
16
|
+
html, body { height: 100%; font-family: 'PingFang SC','Microsoft YaHei','Segoe UI',sans-serif; color: var(--ink); font-size: 14px; background: var(--bg); }
|
|
17
|
+
body.standalone { display: flex; flex-direction: column; }
|
|
18
|
+
body.embedded { background: transparent; overflow: hidden; }
|
|
19
|
+
|
|
20
|
+
/* 悬浮球(嵌入模式) */
|
|
21
|
+
.dc-fab {
|
|
22
|
+
position: fixed; right: 22px; bottom: 22px; width: 52px; height: 52px;
|
|
23
|
+
border-radius: 50%; background: var(--navy); color: #fff; border: none; cursor: pointer;
|
|
24
|
+
font-size: 22px; display: none; align-items: center; justify-content: center;
|
|
25
|
+
box-shadow: 0 6px 18px rgba(15,9,102,.35); z-index: 2147483000; transition: transform .15s;
|
|
26
|
+
}
|
|
27
|
+
.dc-fab:hover { transform: scale(1.06); }
|
|
28
|
+
.dc-fab .dc-fab-badge {
|
|
29
|
+
position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px;
|
|
30
|
+
border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
|
|
31
|
+
display: none;
|
|
32
|
+
}
|
|
33
|
+
.dc-fab .dc-fab-badge.show { display: block; }
|
|
34
|
+
body.embedded .dc-fab { display: flex; }
|
|
35
|
+
|
|
36
|
+
/* 面板 */
|
|
37
|
+
.dc-panel {
|
|
38
|
+
display: none; flex-direction: column;
|
|
39
|
+
width: 380px; height: 520px; max-height: calc(100vh - 44px);
|
|
40
|
+
background: var(--card); border: 1px solid var(--line); border-radius: 14px;
|
|
41
|
+
box-shadow: 0 12px 40px rgba(31,35,41,.22); overflow: hidden; z-index: 2147483001;
|
|
42
|
+
}
|
|
43
|
+
body.standalone .dc-panel { display: flex; width: 100%; height: 100%; max-height: none; border: none; border-radius: 0; }
|
|
44
|
+
body.embedded .dc-panel.open { display: flex; position: fixed; right: 22px; bottom: 86px; }
|
|
45
|
+
|
|
46
|
+
.dc-head {
|
|
47
|
+
display: flex; align-items: center; gap: 8px; padding: 12px 14px;
|
|
48
|
+
background: var(--navy); color: #fff; flex-shrink: 0;
|
|
49
|
+
}
|
|
50
|
+
.dc-head .dc-title { font-weight: 700; font-size: 14px; flex: 1; }
|
|
51
|
+
.dc-head .dc-sub { font-size: 11px; opacity: .75; }
|
|
52
|
+
.dc-head button {
|
|
53
|
+
background: rgba(255,255,255,.15); border: none; color: #fff; border-radius: 6px;
|
|
54
|
+
padding: 3px 9px; cursor: pointer; font-size: 12px;
|
|
55
|
+
}
|
|
56
|
+
.dc-head button:hover { background: rgba(255,255,255,.28); }
|
|
57
|
+
|
|
58
|
+
.dc-statusbar {
|
|
59
|
+
display: flex; align-items: center; gap: 6px; padding: 6px 14px;
|
|
60
|
+
background: var(--blue-bg); color: var(--blue); font-size: 12px; flex-shrink: 0;
|
|
61
|
+
}
|
|
62
|
+
.dc-statusbar.busy { background: var(--orange-bg); color: var(--orange); }
|
|
63
|
+
.dc-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
|
|
64
|
+
.dc-dot.pulse { animation: dcPulse 1.2s infinite; }
|
|
65
|
+
@keyframes dcPulse { 50% { opacity: .3; } }
|
|
66
|
+
|
|
67
|
+
.dc-messages { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
|
|
68
|
+
.dc-msg { max-width: 86%; }
|
|
69
|
+
.dc-msg.user { align-self: flex-end; }
|
|
70
|
+
.dc-msg-name { font-size: 11px; color: var(--ink-3); margin-bottom: 3px; }
|
|
71
|
+
.dc-msg.user .dc-msg-name { text-align: right; }
|
|
72
|
+
.dc-msg-bubble {
|
|
73
|
+
padding: 8px 11px; border-radius: 10px; background: var(--bg);
|
|
74
|
+
white-space: pre-wrap; word-break: break-word; line-height: 1.55; font-size: 13px;
|
|
75
|
+
}
|
|
76
|
+
.dc-msg.user .dc-msg-bubble { background: var(--navy); color: #fff; }
|
|
77
|
+
.dc-msg.claude .dc-msg-bubble { background: var(--teal-bg); border: 1px solid #cbe9de; }
|
|
78
|
+
.dc-msg.system .dc-msg-bubble { background: var(--orange-bg); color: #8a5508; font-size: 12px; }
|
|
79
|
+
|
|
80
|
+
.dc-tool {
|
|
81
|
+
align-self: flex-start; font-size: 11px; color: var(--ink-3);
|
|
82
|
+
background: var(--bg); border: 1px dashed var(--line); border-radius: 6px; padding: 2px 8px;
|
|
83
|
+
max-width: 86%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
84
|
+
}
|
|
85
|
+
.dc-typing {
|
|
86
|
+
align-self: flex-start; font-size: 12px; color: var(--teal); padding: 0 2px;
|
|
87
|
+
display: flex; gap: 4px; align-items: center;
|
|
88
|
+
}
|
|
89
|
+
.dc-typing .dc-caret { display: inline-block; width: 7px; background: var(--teal); animation: dcBlink .8s infinite; height: 13px; }
|
|
90
|
+
@keyframes dcBlink { 50% { opacity: 0; } }
|
|
91
|
+
|
|
92
|
+
.dc-compose { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); flex-shrink: 0; background: #fff; }
|
|
93
|
+
.dc-compose textarea {
|
|
94
|
+
flex: 1; resize: none; border: 1px solid var(--line); border-radius: 8px;
|
|
95
|
+
padding: 7px 10px; font: inherit; height: 58px; outline: none;
|
|
96
|
+
}
|
|
97
|
+
.dc-compose textarea:focus { border-color: var(--blue); }
|
|
98
|
+
.dc-send-col { display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; }
|
|
99
|
+
.dc-btn {
|
|
100
|
+
border: none; border-radius: 8px; padding: 7px 14px; cursor: pointer;
|
|
101
|
+
font: inherit; font-size: 13px; background: var(--navy); color: #fff;
|
|
102
|
+
}
|
|
103
|
+
.dc-btn:disabled { opacity: .5; cursor: not-allowed; }
|
|
104
|
+
.dc-btn.ghost { background: var(--orange-bg); color: #8a5508; font-size: 12px; padding: 5px 10px; }
|
|
105
|
+
.dc-btn.ghost:disabled { background: var(--line); color: var(--ink-3); }
|
|
106
|
+
.dc-hint { font-size: 11px; color: var(--ink-3); padding: 0 14px 8px; flex-shrink: 0; }
|
|
107
|
+
|
|
108
|
+
/* ===== 需求队列(左栏任务卡) ===== */
|
|
109
|
+
.dc-tabs { display: flex; border-bottom: 1px solid var(--line); flex-shrink: 0; }
|
|
110
|
+
.dc-tab {
|
|
111
|
+
flex: 1; padding: 8px 0; text-align: center; font-size: 12px; color: var(--ink-2);
|
|
112
|
+
background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent;
|
|
113
|
+
font-family: inherit;
|
|
114
|
+
}
|
|
115
|
+
.dc-tab.active { color: var(--navy); border-bottom-color: var(--navy); font-weight: 600; }
|
|
116
|
+
.dc-tab .dc-tab-count {
|
|
117
|
+
display: inline-block; min-width: 16px; padding: 0 4px; margin-left: 3px;
|
|
118
|
+
border-radius: 8px; background: var(--bg); font-size: 10px; color: var(--ink-2);
|
|
119
|
+
}
|
|
120
|
+
.dc-tasks { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
|
|
121
|
+
.dc-task {
|
|
122
|
+
border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
|
|
123
|
+
background: #fff; display: flex; flex-direction: column; gap: 5px;
|
|
124
|
+
}
|
|
125
|
+
.dc-task.s-queued { border-left: 3px solid var(--ink-3); }
|
|
126
|
+
.dc-task.s-running { border-left: 3px solid var(--blue); background: var(--blue-bg); }
|
|
127
|
+
.dc-task.s-done { border-left: 3px solid var(--teal); }
|
|
128
|
+
.dc-task.s-error,
|
|
129
|
+
.dc-task.s-cancelled { border-left: 3px solid var(--red); background: var(--red-bg); }
|
|
130
|
+
.dc-task-top { display: flex; align-items: center; gap: 6px; }
|
|
131
|
+
.dc-task-title {
|
|
132
|
+
flex: 1; font-size: 12px; color: var(--ink); overflow: hidden;
|
|
133
|
+
text-overflow: ellipsis; white-space: nowrap;
|
|
134
|
+
}
|
|
135
|
+
.dc-pill {
|
|
136
|
+
font-size: 10px; padding: 1px 8px; border-radius: 8px; white-space: nowrap;
|
|
137
|
+
display: inline-flex; align-items: center; gap: 4px;
|
|
138
|
+
}
|
|
139
|
+
.dc-pill.p-queued { background: var(--bg); color: var(--ink-2); }
|
|
140
|
+
.dc-pill.p-running { background: #d9e8f7; color: var(--blue); }
|
|
141
|
+
.dc-pill.p-running .dc-mini-spin { animation: dcPulse 1s infinite; }
|
|
142
|
+
.dc-pill.p-done { background: var(--teal-bg); color: var(--teal); }
|
|
143
|
+
.dc-pill.p-error, .dc-pill.p-cancelled { background: var(--red-bg); color: var(--red); }
|
|
144
|
+
.dc-task-meta { font-size: 10px; color: var(--ink-3); display: flex; gap: 8px; }
|
|
145
|
+
.dc-task-err { font-size: 10px; color: var(--red); word-break: break-all; }
|
|
146
|
+
.dc-task .dc-task-cancel {
|
|
147
|
+
border: none; background: none; color: var(--ink-3); cursor: pointer; font-size: 12px;
|
|
148
|
+
padding: 0 2px;
|
|
149
|
+
}
|
|
150
|
+
.dc-task .dc-task-cancel:hover { color: var(--red); }
|
|
151
|
+
</style>
|
|
152
|
+
</head>
|
|
153
|
+
<body class="standalone">
|
|
154
|
+
<button class="dc-fab" id="dcFab" aria-label="打开 DevChat 开发协作">
|
|
155
|
+
<span aria-hidden="true">💬</span>
|
|
156
|
+
<span class="dc-fab-badge" id="dcBadge">1</span>
|
|
157
|
+
</button>
|
|
158
|
+
|
|
159
|
+
<div class="dc-panel" id="dcPanel" role="dialog" aria-label="DevChat 开发协作面板">
|
|
160
|
+
<div class="dc-head">
|
|
161
|
+
<div style="flex:1">
|
|
162
|
+
<div class="dc-title">DevChat 开发协作</div>
|
|
163
|
+
<div class="dc-sub" id="dcSub">群聊 · claude code 在编队里</div>
|
|
164
|
+
</div>
|
|
165
|
+
<button id="dcRestartBtn" title="重建并重启服务(仅管理员)" style="display:none">⟳ 重启服务</button>
|
|
166
|
+
<button id="dcCloseBtn" title="收起" style="display:none">—</button>
|
|
167
|
+
</div>
|
|
168
|
+
<div class="dc-statusbar" id="dcStatus"><span class="dc-dot"></span><span id="dcStatusText">连接中…</span></div>
|
|
169
|
+
<div class="dc-tabs">
|
|
170
|
+
<button class="dc-tab active" id="dcTabChat" data-tab="chat">群聊</button>
|
|
171
|
+
<button class="dc-tab" id="dcTabTasks" data-tab="tasks">需求队列 <span class="dc-tab-count" id="dcTaskCount">0</span></button>
|
|
172
|
+
</div>
|
|
173
|
+
<div class="dc-messages" id="dcMessages" aria-live="polite"></div>
|
|
174
|
+
<div class="dc-tasks" id="dcTasks" style="display:none" aria-label="需求队列"></div>
|
|
175
|
+
<div class="dc-hint" id="dcHint">claude 在本机项目目录执行开发任务;所有打开本页的人共享此群聊。</div>
|
|
176
|
+
<div class="dc-compose">
|
|
177
|
+
<div id="dcAttachRow" style="display:none;flex-wrap:wrap;gap:4px"></div>
|
|
178
|
+
<textarea id="dcInput" placeholder="给 claude 派个开发任务…(Enter 发送 / Shift+Enter 换行,📎 附件)"></textarea>
|
|
179
|
+
<div class="dc-send-col">
|
|
180
|
+
<input type="file" id="dcFileInput" multiple style="display:none"
|
|
181
|
+
accept="image/*,.txt,.md,.json,.yaml,.yml,.csv,.log,.xml,.html,.js,.ts,.py,.go,.java,.sql,.pdf,.doc,.docx,.xls,.xlsx,.zip,.tar,.gz">
|
|
182
|
+
<button class="dc-btn ghost" id="dcAttachBtn" title="选择文件/图片附件">📎</button>
|
|
183
|
+
<button class="dc-btn ghost" id="dcStopBtn" style="display:none">停止</button>
|
|
184
|
+
<button class="dc-btn" id="dcSendBtn">发送</button>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
</div>
|
|
188
|
+
|
|
189
|
+
<script>
|
|
190
|
+
(function () {
|
|
191
|
+
'use strict';
|
|
192
|
+
|
|
193
|
+
// ── 嵌入模式判定 ──
|
|
194
|
+
var params = new URLSearchParams(location.search);
|
|
195
|
+
var embedded = params.get('embed') === '1' || window.self !== window.top;
|
|
196
|
+
if (embedded) {
|
|
197
|
+
document.body.classList.remove('standalone');
|
|
198
|
+
document.body.classList.add('embedded');
|
|
199
|
+
document.getElementById('dcCloseBtn').style.display = '';
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
var BASE = (params.get('base') || '').replace(/\/+$/, '');
|
|
203
|
+
function url(p) { return BASE + p; }
|
|
204
|
+
|
|
205
|
+
var $ = function (id) { return document.getElementById(id); };
|
|
206
|
+
var fab = $('dcFab'), panel = $('dcPanel'), badge = $('dcBadge');
|
|
207
|
+
var msgs = $('dcMessages'), input = $('dcInput'), sendBtn = $('dcSendBtn');
|
|
208
|
+
var stopBtn = $('dcStopBtn'), restartBtn = $('dcRestartBtn'), closeBtn = $('dcCloseBtn');
|
|
209
|
+
var statusBar = $('dcStatus'), statusText = $('dcStatusText'), sub = $('dcSub');
|
|
210
|
+
|
|
211
|
+
var state = {
|
|
212
|
+
open: !embedded, running: false, isAdmin: false, unread: 0, seenTs: 0,
|
|
213
|
+
typingEl: null, es: null, bootedAt: Date.now(),
|
|
214
|
+
tasks: [], activeTab: 'chat'
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
// ── 任务队列(需求状态卡:排队/进行中/完成) ──
|
|
218
|
+
var STATUS_LABEL = { queued: '排队等待', running: '进行中', done: '完成', error: '失败', cancelled: '已取消' };
|
|
219
|
+
function fmtDuration(ms) {
|
|
220
|
+
if (!ms || ms <= 0) return '';
|
|
221
|
+
var s = Math.round(ms / 1000);
|
|
222
|
+
if (s < 60) return s + 's';
|
|
223
|
+
return Math.floor(s / 60) + 'm' + (s % 60) + 's';
|
|
224
|
+
}
|
|
225
|
+
function fmtTaskTime(iso) {
|
|
226
|
+
try {
|
|
227
|
+
var d = toDate(iso);
|
|
228
|
+
if (Number.isNaN(d.getTime())) return '';
|
|
229
|
+
return d.toLocaleString('zh-CN', { month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit' });
|
|
230
|
+
} catch (e) { return ''; }
|
|
231
|
+
}
|
|
232
|
+
function renderTasks() {
|
|
233
|
+
var box = $('dcTasks');
|
|
234
|
+
var counts = { queued: 0, running: 0, done: 0, error: 0, cancelled: 0 };
|
|
235
|
+
state.tasks.forEach(function (t) { counts[t.status] = (counts[t.status] || 0) + 1; });
|
|
236
|
+
$('dcTaskCount').textContent = String(counts.queued + counts.running);
|
|
237
|
+
box.innerHTML = '';
|
|
238
|
+
if (!state.tasks.length) {
|
|
239
|
+
var empty = document.createElement('div');
|
|
240
|
+
empty.className = 'dc-task-meta';
|
|
241
|
+
empty.textContent = '还没有需求。在「群聊」里给 claude 发一条任务,这里会出现它的状态卡。';
|
|
242
|
+
box.appendChild(empty);
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
state.tasks.forEach(function (t) {
|
|
246
|
+
var card = document.createElement('div');
|
|
247
|
+
card.className = 'dc-task s-' + t.status;
|
|
248
|
+
var top = document.createElement('div');
|
|
249
|
+
top.className = 'dc-task-top';
|
|
250
|
+
var title = document.createElement('div');
|
|
251
|
+
title.className = 'dc-task-title';
|
|
252
|
+
title.textContent = (t.prompt || '').slice(0, 60) || '(空需求)';
|
|
253
|
+
title.title = t.prompt || '';
|
|
254
|
+
var pill = document.createElement('span');
|
|
255
|
+
pill.className = 'dc-pill p-' + t.status;
|
|
256
|
+
pill.textContent = (t.status === 'running' ? '⏳ ' : '') + (STATUS_LABEL[t.status] || t.status);
|
|
257
|
+
top.appendChild(title); top.appendChild(pill);
|
|
258
|
+
if (t.status === 'queued') {
|
|
259
|
+
// 排队任务:走任务删除(只影响这一条),绝不能调全局 /stop —
|
|
260
|
+
// 那会取消【正在跑的】任务,与本卡意图正好相反。
|
|
261
|
+
var del = document.createElement('button');
|
|
262
|
+
del.className = 'dc-task-cancel';
|
|
263
|
+
del.textContent = '✕';
|
|
264
|
+
del.title = '删除这条排队需求';
|
|
265
|
+
del.addEventListener('click', function () {
|
|
266
|
+
post('/devchat/tasks/delete', { id: t.id }).then(function () { loadTasks(); });
|
|
267
|
+
});
|
|
268
|
+
top.appendChild(del);
|
|
269
|
+
} else if (t.status === 'running') {
|
|
270
|
+
var stop = document.createElement('button');
|
|
271
|
+
stop.className = 'dc-task-cancel';
|
|
272
|
+
stop.textContent = '✕';
|
|
273
|
+
stop.title = '停止正在执行的这条需求';
|
|
274
|
+
stop.addEventListener('click', function () {
|
|
275
|
+
post('/devchat/stop', {}).then(function () { loadTasks(); refreshStatus(); });
|
|
276
|
+
});
|
|
277
|
+
top.appendChild(stop);
|
|
278
|
+
}
|
|
279
|
+
card.appendChild(top);
|
|
280
|
+
var meta = document.createElement('div');
|
|
281
|
+
meta.className = 'dc-task-meta';
|
|
282
|
+
var dur = t.duration_ms ? fmtDuration(t.duration_ms) : (t.status === 'running' ? '进行中' : '');
|
|
283
|
+
meta.textContent = '#' + String(t.seq).slice(-6) + ' · ' + (t.requester || '?') + ' · ' + fmtTaskTime(t.created_at) + (dur ? ' · ' + dur : '');
|
|
284
|
+
card.appendChild(meta);
|
|
285
|
+
if (t.error) {
|
|
286
|
+
var err = document.createElement('div');
|
|
287
|
+
err.className = 'dc-task-err';
|
|
288
|
+
err.textContent = t.error;
|
|
289
|
+
card.appendChild(err);
|
|
290
|
+
}
|
|
291
|
+
box.appendChild(card);
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
function loadTasks() {
|
|
295
|
+
return fetch(url('/devchat/tasks?limit=100'), { credentials: 'include' })
|
|
296
|
+
.then(function (r) { return r.json(); })
|
|
297
|
+
.then(function (d) { state.tasks = d.tasks || []; renderTasks(); })
|
|
298
|
+
.catch(function () {});
|
|
299
|
+
}
|
|
300
|
+
// ── tab 切换(切到任务列表也滚到底:最新执行历史在底部) ──
|
|
301
|
+
function switchTab(name) {
|
|
302
|
+
state.activeTab = name;
|
|
303
|
+
$('dcTabChat').classList.toggle('active', name === 'chat');
|
|
304
|
+
$('dcTabTasks').classList.toggle('active', name === 'tasks');
|
|
305
|
+
msgs.style.display = name === 'chat' ? '' : 'none';
|
|
306
|
+
$('dcTasks').style.display = name === 'tasks' ? '' : 'none';
|
|
307
|
+
$('dcHint').style.display = name === 'chat' ? '' : 'none';
|
|
308
|
+
requestAnimationFrame(function () { requestAnimationFrame(function () {
|
|
309
|
+
var box = name === 'tasks' ? $('dcTasks') : msgs;
|
|
310
|
+
if (box) box.scrollTop = box.scrollHeight;
|
|
311
|
+
}); });
|
|
312
|
+
}
|
|
313
|
+
$('dcTabChat').addEventListener('click', function () { switchTab('chat'); });
|
|
314
|
+
$('dcTabTasks').addEventListener('click', function () { switchTab('tasks'); loadTasks(); });
|
|
315
|
+
|
|
316
|
+
// ── 面板开合 ──
|
|
317
|
+
function renderOpen() {
|
|
318
|
+
if (embedded) panel.classList.toggle('open', state.open);
|
|
319
|
+
if (state.open) { state.unread = 0; renderBadge(); scrollBottom(); }
|
|
320
|
+
}
|
|
321
|
+
function renderBadge() {
|
|
322
|
+
if (!embedded) return;
|
|
323
|
+
badge.textContent = state.unread > 9 ? '9+' : String(state.unread);
|
|
324
|
+
badge.classList.toggle('show', !state.open && state.unread > 0);
|
|
325
|
+
}
|
|
326
|
+
fab.addEventListener('click', function () { state.open = !state.open; renderOpen(); });
|
|
327
|
+
closeBtn.addEventListener('click', function () { state.open = false; renderOpen(); });
|
|
328
|
+
|
|
329
|
+
// ── 状态 ──
|
|
330
|
+
function setRunning(r) {
|
|
331
|
+
state.running = r;
|
|
332
|
+
statusBar.classList.toggle('busy', r);
|
|
333
|
+
statusText.textContent = r ? 'claude 执行中…(实时进度见下方)' : 'claude 空闲 · 可派任务';
|
|
334
|
+
var dot = statusBar.querySelector('.dc-dot');
|
|
335
|
+
if (dot) dot.classList.toggle('pulse', r);
|
|
336
|
+
stopBtn.style.display = r ? '' : 'none';
|
|
337
|
+
sendBtn.disabled = false;
|
|
338
|
+
sub.textContent = r ? '群聊 · claude code 工作中' : '群聊 · claude code 在编队里';
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
// ── 消息渲染 ──
|
|
342
|
+
function scrollBottom() { msgs.scrollTop = msgs.scrollHeight; }
|
|
343
|
+
// 后端 created_at 是 epoch 秒(SSE 本地构造的是 ISO 串):数字且
|
|
344
|
+
// < 1e12 视为秒 → 乘 1000;其余(Date 可直接解析的串)原样。
|
|
345
|
+
function toDate(v) {
|
|
346
|
+
var n = typeof v === 'number' ? v : Number(v);
|
|
347
|
+
if (!Number.isNaN(n) && v !== null && v !== '' && !/[^0-9.]/.test(String(v))) {
|
|
348
|
+
return new Date(n < 1e12 ? n * 1000 : n);
|
|
349
|
+
}
|
|
350
|
+
return new Date(v);
|
|
351
|
+
}
|
|
352
|
+
function fmtTime(iso) {
|
|
353
|
+
try { var d = toDate(iso); if (Number.isNaN(d.getTime())) return ''; return d.toLocaleTimeString('zh-CN', { hour: '2-digit', minute: '2-digit' }); } catch (e) { return ''; }
|
|
354
|
+
}
|
|
355
|
+
function appendMessage(m) {
|
|
356
|
+
var wrap = document.createElement('div');
|
|
357
|
+
wrap.className = 'dc-msg ' + (m.sender_role || 'system');
|
|
358
|
+
var name = document.createElement('div');
|
|
359
|
+
name.className = 'dc-msg-name';
|
|
360
|
+
name.textContent = (m.sender_name || m.sender_role || '?') + ' · ' + fmtTime(m.created_at);
|
|
361
|
+
var bubble = document.createElement('div');
|
|
362
|
+
bubble.className = 'dc-msg-bubble';
|
|
363
|
+
bubble.textContent = m.content || '';
|
|
364
|
+
wrap.appendChild(name); wrap.appendChild(bubble);
|
|
365
|
+
clearTyping();
|
|
366
|
+
msgs.appendChild(wrap);
|
|
367
|
+
if (wrap.offsetTop < msgs.scrollTop || wrap.offsetTop > msgs.scrollTop + msgs.clientHeight - 80 || state.open) scrollBottom();
|
|
368
|
+
if (m.created_at && toDate(m.created_at).getTime() > state.seenTs) {
|
|
369
|
+
state.seenTs = toDate(m.created_at).getTime();
|
|
370
|
+
}
|
|
371
|
+
if (!state.open && embedded) { state.unread++; renderBadge(); }
|
|
372
|
+
}
|
|
373
|
+
function appendToolLine(tool, phase) {
|
|
374
|
+
var el = document.createElement('div');
|
|
375
|
+
el.className = 'dc-tool';
|
|
376
|
+
el.textContent = (phase === 'call' ? '🔧 ' : '✓ ') + (tool || 'tool');
|
|
377
|
+
msgs.appendChild(el);
|
|
378
|
+
if (state.open) scrollBottom();
|
|
379
|
+
}
|
|
380
|
+
function showTyping(chunk) {
|
|
381
|
+
if (!state.typingEl) {
|
|
382
|
+
state.typingEl = document.createElement('div');
|
|
383
|
+
state.typingEl.className = 'dc-typing';
|
|
384
|
+
state.typingEl.innerHTML = '<span class="dc-typing-text"></span><span class="dc-caret"></span>';
|
|
385
|
+
msgs.appendChild(state.typingEl);
|
|
386
|
+
}
|
|
387
|
+
var t = state.typingEl.querySelector('.dc-typing-text');
|
|
388
|
+
t.textContent = (t.textContent || '') + chunk;
|
|
389
|
+
if (t.textContent.length > 400) t.textContent = t.textContent.slice(-400);
|
|
390
|
+
if (state.open) scrollBottom();
|
|
391
|
+
}
|
|
392
|
+
function clearTyping() {
|
|
393
|
+
if (state.typingEl && state.typingEl.parentNode) state.typingEl.parentNode.removeChild(state.typingEl);
|
|
394
|
+
state.typingEl = null;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
// ── API ──
|
|
398
|
+
function post(p, body) {
|
|
399
|
+
return fetch(url(p), {
|
|
400
|
+
method: 'POST', credentials: 'include',
|
|
401
|
+
headers: { 'Content-Type': 'application/json' },
|
|
402
|
+
body: JSON.stringify(body || {})
|
|
403
|
+
}).then(function (r) { return r.json().catch(function () { return {}; }); });
|
|
404
|
+
}
|
|
405
|
+
function loadHistory() {
|
|
406
|
+
return fetch(url('/devchat/messages?limit=200'), { credentials: 'include' })
|
|
407
|
+
.then(function (r) { return r.json(); })
|
|
408
|
+
.then(function (d) {
|
|
409
|
+
(d.messages || []).forEach(function (m) {
|
|
410
|
+
// 过滤掉本页 boot 前很久的系统重复提示可选;全量展示(群聊语义)
|
|
411
|
+
appendMessage(m);
|
|
412
|
+
});
|
|
413
|
+
setRunning(!!d.running);
|
|
414
|
+
if (d.session_id) state.sessionId = d.session_id;
|
|
415
|
+
}).catch(function () { statusText.textContent = '历史加载失败'; });
|
|
416
|
+
}
|
|
417
|
+
function refreshStatus() {
|
|
418
|
+
fetch(url('/devchat/status'), { credentials: 'include' })
|
|
419
|
+
.then(function (r) { return r.json(); })
|
|
420
|
+
.then(function (d) {
|
|
421
|
+
state.isAdmin = !!d.is_admin;
|
|
422
|
+
restartBtn.style.display = state.isAdmin ? '' : 'none';
|
|
423
|
+
setRunning(!!d.running);
|
|
424
|
+
sub.textContent = (d.viewers || 1) + ' 人在线 · ' + (d.running ? 'claude 工作中' : 'claude 空闲');
|
|
425
|
+
}).catch(function () {});
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
// ── SSE ──
|
|
429
|
+
function connect() {
|
|
430
|
+
if (state.es) { state.es.close(); state.es = null; }
|
|
431
|
+
var es = new EventSource(url('/devchat/stream'));
|
|
432
|
+
state.es = es;
|
|
433
|
+
es.onopen = function () { statusText.textContent = state.running ? 'claude 执行中…' : '已连接 · claude 空闲'; };
|
|
434
|
+
es.onerror = function () {
|
|
435
|
+
statusText.textContent = '连接断开,重连中…';
|
|
436
|
+
es.close(); if (state.es === es) state.es = null;
|
|
437
|
+
setTimeout(connect, 3000);
|
|
438
|
+
};
|
|
439
|
+
es.onmessage = function (e) {
|
|
440
|
+
var d; try { d = JSON.parse(e.data); } catch (err) { return; }
|
|
441
|
+
switch (d.type) {
|
|
442
|
+
case 'hello':
|
|
443
|
+
setRunning(!!d.running);
|
|
444
|
+
if (d.session_id) state.sessionId = d.session_id;
|
|
445
|
+
break;
|
|
446
|
+
case 'message': appendMessage(d.message || {}); break;
|
|
447
|
+
case 'typing': showTyping(d.content || ''); break;
|
|
448
|
+
case 'tool': appendToolLine(d.tool, d.phase); break;
|
|
449
|
+
case 'status': setRunning(d.state === 'running'); break;
|
|
450
|
+
case 'done':
|
|
451
|
+
setRunning(false);
|
|
452
|
+
if (d.state === 'success') restartBtn.style.display = state.isAdmin ? '' : 'none';
|
|
453
|
+
break;
|
|
454
|
+
case 'error':
|
|
455
|
+
clearTyping();
|
|
456
|
+
appendMessage({ sender_role: 'system', sender_name: 'devchat', content: '⚠ ' + (d.message || '未知错误'), created_at: new Date().toISOString() });
|
|
457
|
+
break;
|
|
458
|
+
case 'restarting':
|
|
459
|
+
clearTyping();
|
|
460
|
+
appendMessage({ sender_role: 'system', sender_name: 'devchat', content: '♻ ' + (d.message || '服务重启中…'), created_at: new Date().toISOString() });
|
|
461
|
+
statusText.textContent = '服务重启中,稍后自动重连…';
|
|
462
|
+
setTimeout(function () { location.reload(); }, 6000);
|
|
463
|
+
break;
|
|
464
|
+
case 'tasks':
|
|
465
|
+
state.tasks = d.tasks || [];
|
|
466
|
+
renderTasks();
|
|
467
|
+
break;
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
// ── 发送 ──
|
|
473
|
+
// ── 附件(文件/图片):选择 → 上传 → 路径清单拼进消息文本 ──
|
|
474
|
+
var attachRow = $('dcAttachRow'), fileInput = $('dcFileInput');
|
|
475
|
+
var attachments = []; // {name}
|
|
476
|
+
$('dcAttachBtn').addEventListener('click', function () { fileInput.click(); });
|
|
477
|
+
fileInput.addEventListener('change', function () {
|
|
478
|
+
Array.prototype.slice.call(fileInput.files || []).forEach(function (f) {
|
|
479
|
+
if (attachments.length < 5) attachments.push(f);
|
|
480
|
+
});
|
|
481
|
+
fileInput.value = '';
|
|
482
|
+
renderAttachments();
|
|
483
|
+
});
|
|
484
|
+
function renderAttachments() {
|
|
485
|
+
attachRow.style.display = attachments.length ? 'flex' : 'none';
|
|
486
|
+
attachRow.innerHTML = '';
|
|
487
|
+
attachments.forEach(function (f, i) {
|
|
488
|
+
var tag = document.createElement('span');
|
|
489
|
+
tag.style.cssText = 'font-size:11px;color:#4b5563;background:#f6f7f9;border:1px solid #e5e7eb;border-radius:6px;padding:1px 6px;cursor:pointer';
|
|
490
|
+
tag.textContent = (f.type && f.type.indexOf('image/') === 0 ? '🖼 ' : '📄 ') + f.name + ' ✕';
|
|
491
|
+
tag.title = '点击移除';
|
|
492
|
+
tag.addEventListener('click', function () {
|
|
493
|
+
attachments.splice(i, 1); renderAttachments();
|
|
494
|
+
});
|
|
495
|
+
attachRow.appendChild(tag);
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
function uploadAttachment(f) {
|
|
499
|
+
var form = new FormData();
|
|
500
|
+
form.append('file', f);
|
|
501
|
+
return fetch(url('/devchat/upload'), { method: 'POST', credentials: 'include', body: form })
|
|
502
|
+
.then(function (r) { return r.json(); })
|
|
503
|
+
.then(function (d) {
|
|
504
|
+
if (d.path) return d.path;
|
|
505
|
+
appendMessage({ sender_role: 'system', sender_name: 'devchat', content: '⚠ 上传失败:' + f.name, created_at: new Date().toISOString() });
|
|
506
|
+
return null;
|
|
507
|
+
})
|
|
508
|
+
.catch(function () { return null; });
|
|
509
|
+
}
|
|
510
|
+
function send() {
|
|
511
|
+
var text = input.value.trim();
|
|
512
|
+
if (!text) return;
|
|
513
|
+
sendBtn.disabled = true;
|
|
514
|
+
var pre = attachments.length
|
|
515
|
+
? Promise.all(attachments.map(uploadAttachment))
|
|
516
|
+
: Promise.resolve([]);
|
|
517
|
+
pre.then(function (paths) {
|
|
518
|
+
attachments = []; renderAttachments();
|
|
519
|
+
paths = paths.filter(Boolean);
|
|
520
|
+
if (paths.length) {
|
|
521
|
+
text += '\n\n[附件](可用 Read 工具直接查看):\n' + paths.map(function (p) { return '- ' + p; }).join('\n');
|
|
522
|
+
}
|
|
523
|
+
return post('/devchat/send', { content: text }).then(function (d) {
|
|
524
|
+
if (d.started) { setRunning(true); input.value = ''; }
|
|
525
|
+
else if (d.detail) {
|
|
526
|
+
appendMessage({ sender_role: 'system', sender_name: 'devchat', content: d.detail, created_at: new Date().toISOString() });
|
|
527
|
+
}
|
|
528
|
+
sendBtn.disabled = false;
|
|
529
|
+
});
|
|
530
|
+
}).catch(function () { sendBtn.disabled = false; });
|
|
531
|
+
}
|
|
532
|
+
sendBtn.addEventListener('click', send);
|
|
533
|
+
input.addEventListener('keydown', function (e) {
|
|
534
|
+
if (e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); send(); }
|
|
535
|
+
});
|
|
536
|
+
stopBtn.addEventListener('click', function () {
|
|
537
|
+
post('/devchat/stop', {}).then(function () { refreshStatus(); });
|
|
538
|
+
});
|
|
539
|
+
restartBtn.addEventListener('click', function () {
|
|
540
|
+
if (!confirm('重建并重启当前服务?(构建失败不会重启)')) return;
|
|
541
|
+
restartBtn.disabled = true;
|
|
542
|
+
post('/devchat/restart', {}).then(function (d) {
|
|
543
|
+
if (!d.detail || d.detail.indexOf('已安排') < 0) { restartBtn.disabled = false; alert(d.detail || '重启失败'); }
|
|
544
|
+
}).catch(function () { restartBtn.disabled = false; });
|
|
545
|
+
});
|
|
546
|
+
|
|
547
|
+
// ── 启动 ──
|
|
548
|
+
renderOpen();
|
|
549
|
+
loadTasks();
|
|
550
|
+
loadHistory().then(refreshStatus).then(connect);
|
|
551
|
+
setInterval(refreshStatus, 15000);
|
|
552
|
+
setInterval(function () { if (state.activeTab === 'tasks') loadTasks(); }, 10000);
|
|
553
|
+
})();
|
|
554
|
+
</script>
|
|
555
|
+
</body>
|
|
556
|
+
</html>
|