deeparche 0.50.4__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.
- deeparche-0.50.4/.gitignore +80 -0
- deeparche-0.50.4/LICENSE +204 -0
- deeparche-0.50.4/PKG-INFO +169 -0
- deeparche-0.50.4/README.md +139 -0
- deeparche-0.50.4/code/deeparche/ARCHITECTURE.md +1700 -0
- deeparche-0.50.4/code/deeparche/CHANGELOG.md +5298 -0
- deeparche-0.50.4/code/deeparche/CONSISTENCY_CHECK.md +138 -0
- deeparche-0.50.4/code/deeparche/CONTRACT.md +603 -0
- deeparche-0.50.4/code/deeparche/README.md +183 -0
- deeparche-0.50.4/code/deeparche/__init__.py +299 -0
- deeparche-0.50.4/code/deeparche/builtin/__init__.py +0 -0
- deeparche-0.50.4/code/deeparche/builtin/command_surface.py +650 -0
- deeparche-0.50.4/code/deeparche/builtin/file_io.py +399 -0
- deeparche-0.50.4/code/deeparche/builtin/file_tools.py +1294 -0
- deeparche-0.50.4/code/deeparche/builtin/ignore_rules.py +190 -0
- deeparche-0.50.4/code/deeparche/builtin/limits.py +145 -0
- deeparche-0.50.4/code/deeparche/builtin/mcp.py +1866 -0
- deeparche-0.50.4/code/deeparche/builtin/minimal_subagent.py +140 -0
- deeparche-0.50.4/code/deeparche/builtin/model_info_tool.py +121 -0
- deeparche-0.50.4/code/deeparche/builtin/output_store.py +147 -0
- deeparche-0.50.4/code/deeparche/builtin/paging.py +96 -0
- deeparche-0.50.4/code/deeparche/builtin/persistent_tool.py +358 -0
- deeparche-0.50.4/code/deeparche/builtin/process_tool.py +304 -0
- deeparche-0.50.4/code/deeparche/builtin/recall_tool.py +146 -0
- deeparche-0.50.4/code/deeparche/builtin/registry.py +326 -0
- deeparche-0.50.4/code/deeparche/builtin/repo_map.py +754 -0
- deeparche-0.50.4/code/deeparche/builtin/shell_manual.py +98 -0
- deeparche-0.50.4/code/deeparche/builtin/shell_tool.py +370 -0
- deeparche-0.50.4/code/deeparche/builtin/skills.py +995 -0
- deeparche-0.50.4/code/deeparche/builtin/subagent_tool.py +755 -0
- deeparche-0.50.4/code/deeparche/builtin/todo_tool.py +327 -0
- deeparche-0.50.4/code/deeparche/builtin/webfetch_tool.py +793 -0
- deeparche-0.50.4/code/deeparche/builtin/websearch_tool.py +267 -0
- deeparche-0.50.4/code/deeparche/core/__init__.py +118 -0
- deeparche-0.50.4/code/deeparche/core/approval.py +89 -0
- deeparche-0.50.4/code/deeparche/core/atomic.py +81 -0
- deeparche-0.50.4/code/deeparche/core/background.py +544 -0
- deeparche-0.50.4/code/deeparche/core/call_grant.py +175 -0
- deeparche-0.50.4/code/deeparche/core/call_lease.py +289 -0
- deeparche-0.50.4/code/deeparche/core/command_grammar.py +455 -0
- deeparche-0.50.4/code/deeparche/core/command_surface.py +135 -0
- deeparche-0.50.4/code/deeparche/core/compaction.py +1272 -0
- deeparche-0.50.4/code/deeparche/core/context.py +3075 -0
- deeparche-0.50.4/code/deeparche/core/environment.py +108 -0
- deeparche-0.50.4/code/deeparche/core/errors.py +86 -0
- deeparche-0.50.4/code/deeparche/core/event_window.py +454 -0
- deeparche-0.50.4/code/deeparche/core/filters.py +111 -0
- deeparche-0.50.4/code/deeparche/core/hooks.py +230 -0
- deeparche-0.50.4/code/deeparche/core/inject_texts.py +81 -0
- deeparche-0.50.4/code/deeparche/core/invariants.py +57 -0
- deeparche-0.50.4/code/deeparche/core/loop.py +2209 -0
- deeparche-0.50.4/code/deeparche/core/media.py +181 -0
- deeparche-0.50.4/code/deeparche/core/permission.py +421 -0
- deeparche-0.50.4/code/deeparche/core/process.py +1487 -0
- deeparche-0.50.4/code/deeparche/core/provider_error.py +79 -0
- deeparche-0.50.4/code/deeparche/core/request_cleanup.py +650 -0
- deeparche-0.50.4/code/deeparche/core/sandbox.py +1108 -0
- deeparche-0.50.4/code/deeparche/core/session_state.py +55 -0
- deeparche-0.50.4/code/deeparche/core/state.py +89 -0
- deeparche-0.50.4/code/deeparche/core/subagent_result.py +171 -0
- deeparche-0.50.4/code/deeparche/core/token_estimate.py +219 -0
- deeparche-0.50.4/code/deeparche/core/tool_attempt.py +65 -0
- deeparche-0.50.4/code/deeparche/core/tool_host.py +260 -0
- deeparche-0.50.4/code/deeparche/core/tool_ipc.py +79 -0
- deeparche-0.50.4/code/deeparche/core/tool_worker.py +70 -0
- deeparche-0.50.4/code/deeparche/core/tools.py +1613 -0
- deeparche-0.50.4/code/deeparche/core/turn_token.py +83 -0
- deeparche-0.50.4/code/deeparche/core/turn_transaction.py +81 -0
- deeparche-0.50.4/code/deeparche/core/types.py +746 -0
- deeparche-0.50.4/code/deeparche/dist.toml +136 -0
- deeparche-0.50.4/code/deeparche/docs/extending.md +1195 -0
- deeparche-0.50.4/code/deeparche/docs/feature_tree.html +528 -0
- deeparche-0.50.4/code/deeparche/docs/integration.md +208 -0
- deeparche-0.50.4/code/deeparche/examples/README.md +88 -0
- deeparche-0.50.4/code/deeparche/examples/__init__.py +1 -0
- deeparche-0.50.4/code/deeparche/examples/config/HISTORY.md +506 -0
- deeparche-0.50.4/code/deeparche/examples/config/agent.example.toml +160 -0
- deeparche-0.50.4/code/deeparche/examples/config/channel.example.toml +26 -0
- deeparche-0.50.4/code/deeparche/examples/config/deeparche.example.toml +1417 -0
- deeparche-0.50.4/code/deeparche/examples/config/permissions.example.toml +83 -0
- deeparche-0.50.4/code/deeparche/examples/config/tool.example.toml +55 -0
- deeparche-0.50.4/code/deeparche/examples/dev/platform/quickstart_core_kb.py +210 -0
- deeparche-0.50.4/code/deeparche/examples/dev/platform/quickstart_kernel.py +422 -0
- deeparche-0.50.4/code/deeparche/examples/dev/platform/quickstart_orchestrator.py +313 -0
- deeparche-0.50.4/code/deeparche/examples/dev/platform/quickstart_tool_simple.py +60 -0
- deeparche-0.50.4/code/deeparche/examples/dev/product/agents/reviewer/agent.toml +15 -0
- deeparche-0.50.4/code/deeparche/examples/dev/product/agents/reviewer/system.md +12 -0
- deeparche-0.50.4/code/deeparche/examples/dev/product/quickstart_agent.py +79 -0
- deeparche-0.50.4/code/deeparche/examples/dev/product/quickstart_api.py +253 -0
- deeparche-0.50.4/code/deeparche/examples/dev/product/quickstart_headless.py +123 -0
- deeparche-0.50.4/code/deeparche/examples/dev/product/quickstart_resume.py +124 -0
- deeparche-0.50.4/code/deeparche/examples/dev/product/quickstart_subagent.py +210 -0
- deeparche-0.50.4/code/deeparche/examples/dev/product/quickstart_tool_product.py +60 -0
- deeparche-0.50.4/code/deeparche/llm/__init__.py +0 -0
- deeparche-0.50.4/code/deeparche/llm/adapter.py +571 -0
- deeparche-0.50.4/code/deeparche/llm/client.py +301 -0
- deeparche-0.50.4/code/deeparche/llm/constants.py +16 -0
- deeparche-0.50.4/code/deeparche/llm/fallback.py +161 -0
- deeparche-0.50.4/code/deeparche/llm/media.py +197 -0
- deeparche-0.50.4/code/deeparche/llm/pricing.py +1801 -0
- deeparche-0.50.4/code/deeparche/llm/protocols/__init__.py +29 -0
- deeparche-0.50.4/code/deeparche/llm/protocols/claude.py +376 -0
- deeparche-0.50.4/code/deeparche/llm/protocols/common.py +180 -0
- deeparche-0.50.4/code/deeparche/llm/protocols/compatible.py +206 -0
- deeparche-0.50.4/code/deeparche/llm/protocols/responses.py +294 -0
- deeparche-0.50.4/code/deeparche/llm/stream_parser.py +130 -0
- deeparche-0.50.4/code/deeparche/orch/__init__.py +58 -0
- deeparche-0.50.4/code/deeparche/orch/approval.py +468 -0
- deeparche-0.50.4/code/deeparche/orch/bootstrap.py +884 -0
- deeparche-0.50.4/code/deeparche/orch/event_journal.py +1162 -0
- deeparche-0.50.4/code/deeparche/orch/log.py +161 -0
- deeparche-0.50.4/code/deeparche/orch/messages.py +92 -0
- deeparche-0.50.4/code/deeparche/orch/model_config.py +393 -0
- deeparche-0.50.4/code/deeparche/orch/model_descriptor.py +156 -0
- deeparche-0.50.4/code/deeparche/orch/persist.py +72 -0
- deeparche-0.50.4/code/deeparche/orch/providers.py +1312 -0
- deeparche-0.50.4/code/deeparche/orch/resume.py +152 -0
- deeparche-0.50.4/code/deeparche/orch/runtime.py +425 -0
- deeparche-0.50.4/code/deeparche/orch/scope.py +131 -0
- deeparche-0.50.4/code/deeparche/orch/service/__init__.py +53 -0
- deeparche-0.50.4/code/deeparche/orch/service/contract.py +67 -0
- deeparche-0.50.4/code/deeparche/orch/service/events.py +85 -0
- deeparche-0.50.4/code/deeparche/orch/service/media.py +92 -0
- deeparche-0.50.4/code/deeparche/orch/service/stream.py +374 -0
- deeparche-0.50.4/code/deeparche/orch/session.py +2028 -0
- deeparche-0.50.4/code/deeparche/orch/session_assembler.py +59 -0
- deeparche-0.50.4/code/deeparche/orch/session_journal.py +94 -0
- deeparche-0.50.4/code/deeparche/orch/session_lock.py +348 -0
- deeparche-0.50.4/code/deeparche/orch/stream.py +143 -0
- deeparche-0.50.4/code/deeparche/orch/subagent.py +2114 -0
- deeparche-0.50.4/code/deeparche/orch/subagent_approval.py +334 -0
- deeparche-0.50.4/code/deeparche/orch/subagent_background.py +836 -0
- deeparche-0.50.4/code/deeparche/orch/subagent_config.py +301 -0
- deeparche-0.50.4/code/deeparche/orch/subagent_models.py +464 -0
- deeparche-0.50.4/code/deeparche/orch/subagent_sessions.py +559 -0
- deeparche-0.50.4/code/deeparche/orch/supervisor.py +399 -0
- deeparche-0.50.4/code/deeparche/orch/title.py +56 -0
- deeparche-0.50.4/code/deeparche/orch/tool_families.py +21 -0
- deeparche-0.50.4/code/deeparche/orch/transcript.py +865 -0
- deeparche-0.50.4/code/deeparche/orch/turn.py +484 -0
- deeparche-0.50.4/code/deeparche/orch/watcher.py +114 -0
- deeparche-0.50.4/code/deeparche/product/__init__.py +80 -0
- deeparche-0.50.4/code/deeparche/product/agent.py +129 -0
- deeparche-0.50.4/code/deeparche/product/agents/ask/agent.toml +25 -0
- deeparche-0.50.4/code/deeparche/product/agents/ask/system.md +14 -0
- deeparche-0.50.4/code/deeparche/product/agents/builder/agent.toml +9 -0
- deeparche-0.50.4/code/deeparche/product/agents/builder/system.md +28 -0
- deeparche-0.50.4/code/deeparche/product/agents/code/agent.toml +14 -0
- deeparche-0.50.4/code/deeparche/product/agents/code/system.md +382 -0
- deeparche-0.50.4/code/deeparche/product/agents/plan/agent.toml +25 -0
- deeparche-0.50.4/code/deeparche/product/agents/plan/system.md +32 -0
- deeparche-0.50.4/code/deeparche/product/agents/plan/tools/plan_writer/tool.toml +14 -0
- deeparche-0.50.4/code/deeparche/product/agents/plan/tools/plan_writer/tools.py +134 -0
- deeparche-0.50.4/code/deeparche/product/agents/reviewer/agent.toml +14 -0
- deeparche-0.50.4/code/deeparche/product/agents/reviewer/system.md +343 -0
- deeparche-0.50.4/code/deeparche/product/api/__init__.py +80 -0
- deeparche-0.50.4/code/deeparche/product/api/commands.py +479 -0
- deeparche-0.50.4/code/deeparche/product/api/config.py +23 -0
- deeparche-0.50.4/code/deeparche/product/api/display.py +113 -0
- deeparche-0.50.4/code/deeparche/product/api/owner.py +124 -0
- deeparche-0.50.4/code/deeparche/product/api/runtime.py +3218 -0
- deeparche-0.50.4/code/deeparche/product/assets/__init__.py +19 -0
- deeparche-0.50.4/code/deeparche/product/assets/example_assets.py +562 -0
- deeparche-0.50.4/code/deeparche/product/channels/__init__.py +73 -0
- deeparche-0.50.4/code/deeparche/product/channels/builtin.py +32 -0
- deeparche-0.50.4/code/deeparche/product/channels/contract.py +258 -0
- deeparche-0.50.4/code/deeparche/product/channels/launcher.py +247 -0
- deeparche-0.50.4/code/deeparche/product/channels/registry.py +160 -0
- deeparche-0.50.4/code/deeparche/product/cli/__init__.py +0 -0
- deeparche-0.50.4/code/deeparche/product/cli/__main__.py +24 -0
- deeparche-0.50.4/code/deeparche/product/cli/approval_ui.py +582 -0
- deeparche-0.50.4/code/deeparche/product/cli/auth.py +703 -0
- deeparche-0.50.4/code/deeparche/product/cli/banner.py +219 -0
- deeparche-0.50.4/code/deeparche/product/cli/colors.py +19 -0
- deeparche-0.50.4/code/deeparche/product/cli/commands.py +122 -0
- deeparche-0.50.4/code/deeparche/product/cli/consume.py +350 -0
- deeparche-0.50.4/code/deeparche/product/cli/display_state.py +72 -0
- deeparche-0.50.4/code/deeparche/product/cli/history.py +157 -0
- deeparche-0.50.4/code/deeparche/product/cli/input_stack.py +500 -0
- deeparche-0.50.4/code/deeparche/product/cli/main.py +2042 -0
- deeparche-0.50.4/code/deeparche/product/cli/media.py +161 -0
- deeparche-0.50.4/code/deeparche/product/cli/picker.py +300 -0
- deeparche-0.50.4/code/deeparche/product/cli/queue_wiring.py +108 -0
- deeparche-0.50.4/code/deeparche/product/cli/renderer.py +517 -0
- deeparche-0.50.4/code/deeparche/product/cli/repl.py +1115 -0
- deeparche-0.50.4/code/deeparche/product/cli/startup.py +556 -0
- deeparche-0.50.4/code/deeparche/product/cli/supervise.py +152 -0
- deeparche-0.50.4/code/deeparche/product/cli/tasks.py +201 -0
- deeparche-0.50.4/code/deeparche/product/host/__init__.py +20 -0
- deeparche-0.50.4/code/deeparche/product/host/lifecycle.py +217 -0
- deeparche-0.50.4/code/deeparche/product/host/options.py +25 -0
- deeparche-0.50.4/code/deeparche/product/host/runtime_host.py +127 -0
- deeparche-0.50.4/code/deeparche/product/manifest/__init__.py +45 -0
- deeparche-0.50.4/code/deeparche/product/manifest/discover.py +132 -0
- deeparche-0.50.4/code/deeparche/product/manifest/loader.py +243 -0
- deeparche-0.50.4/code/deeparche/product/orch/__init__.py +10 -0
- deeparche-0.50.4/code/deeparche/product/orch/actions/__init__.py +120 -0
- deeparche-0.50.4/code/deeparche/product/orch/actions/agent.py +586 -0
- deeparche-0.50.4/code/deeparche/product/orch/actions/approval.py +158 -0
- deeparche-0.50.4/code/deeparche/product/orch/actions/base.py +666 -0
- deeparche-0.50.4/code/deeparche/product/orch/actions/cleanup.py +211 -0
- deeparche-0.50.4/code/deeparche/product/orch/actions/config.py +350 -0
- deeparche-0.50.4/code/deeparche/product/orch/actions/cwd.py +131 -0
- deeparche-0.50.4/code/deeparche/product/orch/actions/helpers.py +197 -0
- deeparche-0.50.4/code/deeparche/product/orch/actions/revert.py +604 -0
- deeparche-0.50.4/code/deeparche/product/orch/actions/runtime.py +253 -0
- deeparche-0.50.4/code/deeparche/product/orch/actions/session.py +1496 -0
- deeparche-0.50.4/code/deeparche/product/orch/actions/workspace.py +286 -0
- deeparche-0.50.4/code/deeparche/product/orch/agent_config.py +676 -0
- deeparche-0.50.4/code/deeparche/product/orch/agents.py +1179 -0
- deeparche-0.50.4/code/deeparche/product/orch/app.py +911 -0
- deeparche-0.50.4/code/deeparche/product/orch/approval.py +530 -0
- deeparche-0.50.4/code/deeparche/product/orch/approval_api.py +641 -0
- deeparche-0.50.4/code/deeparche/product/orch/approval_command.py +262 -0
- deeparche-0.50.4/code/deeparche/product/orch/approval_modes.py +383 -0
- deeparche-0.50.4/code/deeparche/product/orch/approval_pending.py +576 -0
- deeparche-0.50.4/code/deeparche/product/orch/approval_presenters.py +265 -0
- deeparche-0.50.4/code/deeparche/product/orch/approval_relay.py +209 -0
- deeparche-0.50.4/code/deeparche/product/orch/assembly.py +2294 -0
- deeparche-0.50.4/code/deeparche/product/orch/auto_title.py +279 -0
- deeparche-0.50.4/code/deeparche/product/orch/cache_keeper.py +369 -0
- deeparche-0.50.4/code/deeparche/product/orch/capabilities.py +169 -0
- deeparche-0.50.4/code/deeparche/product/orch/channel.py +110 -0
- deeparche-0.50.4/code/deeparche/product/orch/checkpoint.py +1479 -0
- deeparche-0.50.4/code/deeparche/product/orch/command_args.py +663 -0
- deeparche-0.50.4/code/deeparche/product/orch/command_audit.py +155 -0
- deeparche-0.50.4/code/deeparche/product/orch/command_completion.py +314 -0
- deeparche-0.50.4/code/deeparche/product/orch/command_visibility.py +149 -0
- deeparche-0.50.4/code/deeparche/product/orch/completion_view.py +124 -0
- deeparche-0.50.4/code/deeparche/product/orch/config.py +1221 -0
- deeparche-0.50.4/code/deeparche/product/orch/config_compose.py +431 -0
- deeparche-0.50.4/code/deeparche/product/orch/config_manager.py +297 -0
- deeparche-0.50.4/code/deeparche/product/orch/config_write.py +282 -0
- deeparche-0.50.4/code/deeparche/product/orch/console.py +77 -0
- deeparche-0.50.4/code/deeparche/product/orch/continuation.py +258 -0
- deeparche-0.50.4/code/deeparche/product/orch/cost_view.py +199 -0
- deeparche-0.50.4/code/deeparche/product/orch/env.py +64 -0
- deeparche-0.50.4/code/deeparche/product/orch/goal.py +883 -0
- deeparche-0.50.4/code/deeparche/product/orch/goal_lifecycle.py +330 -0
- deeparche-0.50.4/code/deeparche/product/orch/goal_projection.py +167 -0
- deeparche-0.50.4/code/deeparche/product/orch/hooks_loader.py +92 -0
- deeparche-0.50.4/code/deeparche/product/orch/hot_reload.py +441 -0
- deeparche-0.50.4/code/deeparche/product/orch/input_queue.py +412 -0
- deeparche-0.50.4/code/deeparche/product/orch/instructions.py +274 -0
- deeparche-0.50.4/code/deeparche/product/orch/internal_events.py +55 -0
- deeparche-0.50.4/code/deeparche/product/orch/model_calls/__init__.py +69 -0
- deeparche-0.50.4/code/deeparche/product/orch/model_calls/discriminator.py +365 -0
- deeparche-0.50.4/code/deeparche/product/orch/model_calls/parsers.py +109 -0
- deeparche-0.50.4/code/deeparche/product/orch/model_calls/service.py +698 -0
- deeparche-0.50.4/code/deeparche/product/orch/model_calls/spec.py +246 -0
- deeparche-0.50.4/code/deeparche/product/orch/model_calls/summarizer.py +203 -0
- deeparche-0.50.4/code/deeparche/product/orch/model_presentation.py +133 -0
- deeparche-0.50.4/code/deeparche/product/orch/model_state.py +186 -0
- deeparche-0.50.4/code/deeparche/product/orch/paths.py +63 -0
- deeparche-0.50.4/code/deeparche/product/orch/reload.py +86 -0
- deeparche-0.50.4/code/deeparche/product/orch/restore.py +336 -0
- deeparche-0.50.4/code/deeparche/product/orch/revert.py +651 -0
- deeparche-0.50.4/code/deeparche/product/orch/reviewer.py +230 -0
- deeparche-0.50.4/code/deeparche/product/orch/roles.py +138 -0
- deeparche-0.50.4/code/deeparche/product/orch/sandbox_policy.py +211 -0
- deeparche-0.50.4/code/deeparche/product/orch/session_store.py +346 -0
- deeparche-0.50.4/code/deeparche/product/orch/system_notice.py +74 -0
- deeparche-0.50.4/code/deeparche/product/orch/template.py +381 -0
- deeparche-0.50.4/code/deeparche/product/orch/tool_risk.py +37 -0
- deeparche-0.50.4/code/deeparche/product/orch/tools_loader.py +445 -0
- deeparche-0.50.4/code/deeparche/product/orch/transcript_view.py +536 -0
- deeparche-0.50.4/code/deeparche/product/orch/turn_boundary.py +234 -0
- deeparche-0.50.4/code/deeparche/product/orch/workspaces.py +562 -0
- deeparche-0.50.4/code/deeparche/product/tools/__init__.py +17 -0
- deeparche-0.50.4/code/deeparche/product/tools/_state.py +339 -0
- deeparche-0.50.4/code/deeparche/product/tools/capability_set.py +551 -0
- deeparche-0.50.4/code/deeparche/product/tools/hot_reload_tool.py +162 -0
- deeparche-0.50.4/code/deeparche/product/tools/namespace.py +929 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/code_index/MANUAL.md +71 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/code_index/code_index_cmd.py +60 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/code_index/defaults.toml +25 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/code_index/entry.py +1130 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/code_index/tool.toml +20 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/config_info/config_info_tool.py +386 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/config_info/entry.py +28 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/config_info/tool.toml +25 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/feishu_notify/MANUAL.md +161 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/feishu_notify/defaults.toml +20 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/feishu_notify/entry.py +927 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/feishu_notify/feishu_audio.py +75 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/feishu_notify/feishu_client.py +181 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/feishu_notify/feishu_config.py +98 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/feishu_notify/feishu_pairing.py +574 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/feishu_notify/feishu_pairing_ws.py +536 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/feishu_notify/feishu_send.py +346 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/feishu_notify/feishu_targets.py +178 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/feishu_notify/feishu_token.py +120 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/feishu_notify/feishu_transport.py +244 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/feishu_notify/tool.toml +9 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/goal/MANUAL.md +74 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/goal/entry.py +342 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/goal/goal_cmd.py +183 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/goal/goal_continuation.py +108 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/goal/tool.toml +20 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/hot_reload/entry.py +16 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/hot_reload/tool.toml +20 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/workspace_scaffold/MANUAL.md +175 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/workspace_scaffold/defaults.toml +5 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/workspace_scaffold/entry.py +357 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/workspace_scaffold/templates/docs_only_readme.md +33 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/workspace_scaffold/templates/library_minimal/.deeparche/.env.example +3 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/workspace_scaffold/templates/library_minimal/.deeparche/deeparche.toml +16 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/workspace_scaffold/templates/library_minimal/README.md +45 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/workspace_scaffold/templates/library_minimal/main_agent.py +49 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/workspace_scaffold/templates/library_minimal/main_orch.py +80 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/workspace_scaffold/templates/library_minimal/requirements.txt +1 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/workspace_scaffold/templates/vendor_notes.md +40 -0
- deeparche-0.50.4/code/deeparche/product/tools/packs/workspace_scaffold/tool.toml +21 -0
- deeparche-0.50.4/code/deeparche/product/tools/policy.py +373 -0
- deeparche-0.50.4/code/deeparche/product/tools/registry.py +928 -0
- deeparche-0.50.4/code/deeparche/protocols/__init__.py +39 -0
- deeparche-0.50.4/code/deeparche/protocols/decision/__init__.py +17 -0
- deeparche-0.50.4/code/deeparche/protocols/decision/client.py +145 -0
- deeparche-0.50.4/code/deeparche/protocols/vector/__init__.py +19 -0
- deeparche-0.50.4/code/deeparche/protocols/vector/client.py +115 -0
- deeparche-0.50.4/docs//345/215/217/350/256/256/350/247/204/350/214/203/01_compatible_/351/235/236/346/265/201/345/274/217.md +99 -0
- deeparche-0.50.4/docs//345/215/217/350/256/256/350/247/204/350/214/203/02_compatible_/346/265/201/345/274/217.md +75 -0
- deeparche-0.50.4/docs//345/215/217/350/256/256/350/247/204/350/214/203/03_responses_/351/235/236/346/265/201/345/274/217.md +105 -0
- deeparche-0.50.4/docs//345/215/217/350/256/256/350/247/204/350/214/203/04_responses_/346/265/201/345/274/217.md +73 -0
- deeparche-0.50.4/docs//345/215/217/350/256/256/350/247/204/350/214/203/05_claude_/351/235/236/346/265/201/345/274/217.md +119 -0
- deeparche-0.50.4/docs//345/215/217/350/256/256/350/247/204/350/214/203/06_claude_/346/265/201/345/274/217.md +84 -0
- deeparche-0.50.4/docs//345/215/217/350/256/256/350/247/204/350/214/203/07_mcp.md +86 -0
- deeparche-0.50.4/docs//345/215/217/350/256/256/350/247/204/350/214/203/08_agent_skills.md +74 -0
- deeparche-0.50.4/docs//345/215/217/350/256/256/350/247/204/350/214/203/09_function_calling.md +54 -0
- deeparche-0.50.4/docs//345/215/217/350/256/256/350/247/204/350/214/203/10_structured_outputs.md +52 -0
- deeparche-0.50.4/docs//345/215/217/350/256/256/350/247/204/350/214/203/11_prompt_caching.md +250 -0
- deeparche-0.50.4/docs//345/215/217/350/256/256/350/247/204/350/214/203/12_/347/224/250/346/210/267/345/267/245/345/205/267/346/211/251/345/261/225/350/247/204/350/214/203.md +364 -0
- deeparche-0.50.4/docs//345/215/217/350/256/256/350/247/204/350/214/203/13_/345/255/220/344/273/243/347/220/206/346/211/247/350/241/214/345/231/250/345/215/217/350/256/256.md +163 -0
- deeparche-0.50.4/docs//345/215/217/350/256/256/350/247/204/350/214/203/README.md +29 -0
- deeparche-0.50.4/pyproject.toml +172 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# === 环境与密钥 ===
|
|
2
|
+
.env
|
|
3
|
+
.env.*
|
|
4
|
+
!.env.example
|
|
5
|
+
secrets/
|
|
6
|
+
config/local/
|
|
7
|
+
config/**/*.local.json
|
|
8
|
+
|
|
9
|
+
# === Python ===
|
|
10
|
+
__pycache__/
|
|
11
|
+
*.pyc
|
|
12
|
+
*.pyo
|
|
13
|
+
*.egg-info/
|
|
14
|
+
dist/
|
|
15
|
+
build/
|
|
16
|
+
*.egg
|
|
17
|
+
|
|
18
|
+
# === uv(依赖管理器)===
|
|
19
|
+
# uv sync 虚拟环境
|
|
20
|
+
.venv/
|
|
21
|
+
# uv 解析的 Python 版本
|
|
22
|
+
.python-version
|
|
23
|
+
# public CI 的 setup-python 需要 version file;公开导出必须可 add
|
|
24
|
+
!.python-version
|
|
25
|
+
# uv.lock # 默认提交(锁文件);如需忽略请删除本行
|
|
26
|
+
|
|
27
|
+
# === IDE ===
|
|
28
|
+
.idea/
|
|
29
|
+
.vscode/
|
|
30
|
+
.kilo/
|
|
31
|
+
.kiro/
|
|
32
|
+
.mimocode/
|
|
33
|
+
*.swp
|
|
34
|
+
*.swo
|
|
35
|
+
*~
|
|
36
|
+
|
|
37
|
+
# === 本地 git worktree ===
|
|
38
|
+
# 本地 worktree 容器(public_main/审计 worktree),非测试 scratch,不进入 public tree
|
|
39
|
+
.worktrees/
|
|
40
|
+
|
|
41
|
+
# === 临时文件 ===
|
|
42
|
+
.tmp/
|
|
43
|
+
.tmp-simple/
|
|
44
|
+
*.tmp
|
|
45
|
+
*.log
|
|
46
|
+
|
|
47
|
+
# === 会话与历史(运行时数据)===
|
|
48
|
+
.deeparche_history
|
|
49
|
+
.deeparche/
|
|
50
|
+
sessions/
|
|
51
|
+
|
|
52
|
+
# === 项目状态(.tasks 为项目记忆,提交保留;如不需版本管理请取消注释)===
|
|
53
|
+
# .tasks/
|
|
54
|
+
|
|
55
|
+
# === 测试 ===
|
|
56
|
+
.pytest_cache/
|
|
57
|
+
.ruff_cache/
|
|
58
|
+
.coverage
|
|
59
|
+
htmlcov/
|
|
60
|
+
*.cover
|
|
61
|
+
|
|
62
|
+
# === Docker ===
|
|
63
|
+
deeparche-sandbox*.tar
|
|
64
|
+
|
|
65
|
+
# === OS ===
|
|
66
|
+
.DS_Store
|
|
67
|
+
Thumbs.db
|
|
68
|
+
|
|
69
|
+
# === 本地配置 ===
|
|
70
|
+
# 用户本地配置(模板见 deeparche.example.toml)
|
|
71
|
+
deeparche.toml
|
|
72
|
+
.playwright-mcp/
|
|
73
|
+
|
|
74
|
+
# === 外部工具产物 ===
|
|
75
|
+
# pip 的构建/解包临时目录:本机系统 TEMP 对 `.venv` 解释器**不可写**(系统 python
|
|
76
|
+
# 与 pwsh 均可写——仅该解释器被拒),tempfile 因此回退 `os.getcwd()`(= 仓库根)
|
|
77
|
+
pip-*/
|
|
78
|
+
.workbuddy-ai/
|
|
79
|
+
|
|
80
|
+
.VSCodeCounter/
|
deeparche-0.50.4/LICENSE
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
Copyright 2026 Yang Mingguang
|
|
7
|
+
|
|
8
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
9
|
+
|
|
10
|
+
1. Definitions.
|
|
11
|
+
|
|
12
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
13
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
14
|
+
|
|
15
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
16
|
+
the copyright owner that is granting the License.
|
|
17
|
+
|
|
18
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
19
|
+
other entities that control, are controlled by, or are under common
|
|
20
|
+
control with that entity. For the purposes of this definition,
|
|
21
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
22
|
+
direction or management of such entity, whether by contract or
|
|
23
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
24
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
25
|
+
|
|
26
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
27
|
+
exercising permissions granted by this License.
|
|
28
|
+
|
|
29
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
30
|
+
including but not limited to software source code, documentation
|
|
31
|
+
source, and configuration files.
|
|
32
|
+
|
|
33
|
+
"Object" form shall mean any form resulting from mechanical
|
|
34
|
+
transformation or translation of a Source form, including but
|
|
35
|
+
not limited to compiled object code, generated documentation,
|
|
36
|
+
and conversions to other media types.
|
|
37
|
+
|
|
38
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
39
|
+
Object form, made available under the License, as indicated by a
|
|
40
|
+
copyright notice that is included in or attached to the work
|
|
41
|
+
(an example is provided in the Appendix below).
|
|
42
|
+
|
|
43
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
44
|
+
form, that is based on (or derived from) the Work and for which the
|
|
45
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
46
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
47
|
+
of this License, Derivative Works shall not include works that remain
|
|
48
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
49
|
+
the Work and Derivative Works thereof.
|
|
50
|
+
|
|
51
|
+
"Contribution" shall mean any work of authorship, including
|
|
52
|
+
the original version of the Work and any modifications or additions
|
|
53
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
54
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
55
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
56
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
57
|
+
means any form of electronic, verbal, or written communication sent
|
|
58
|
+
to the Licensor or its representatives, including but not limited to
|
|
59
|
+
communication on electronic mailing lists, source code control systems,
|
|
60
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
61
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
62
|
+
excluding communication that is conspicuously marked or otherwise
|
|
63
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
64
|
+
|
|
65
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
66
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
67
|
+
subsequently incorporated within the Work.
|
|
68
|
+
|
|
69
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
70
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
71
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
72
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
73
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
74
|
+
Work and such Derivative Works in Source or Object form.
|
|
75
|
+
|
|
76
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
77
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
78
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
79
|
+
(except as stated in this section) patent license to make, have made,
|
|
80
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
81
|
+
where such license applies only to those patent claims licensable
|
|
82
|
+
by such Contributor that are necessarily infringed by their
|
|
83
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
84
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
85
|
+
institute patent litigation against any entity (including a
|
|
86
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
87
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
88
|
+
or contributory patent infringement, then any patent licenses
|
|
89
|
+
granted to You under this License for that Work shall terminate
|
|
90
|
+
as of the date such litigation is filed.
|
|
91
|
+
|
|
92
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
93
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
94
|
+
modifications, and in Source or Object form, provided that You
|
|
95
|
+
meet the following conditions:
|
|
96
|
+
|
|
97
|
+
(a) You must give any other recipients of the Work or
|
|
98
|
+
Derivative Works a copy of this License; and
|
|
99
|
+
|
|
100
|
+
(b) You must cause any modified files to carry prominent notices
|
|
101
|
+
stating that You changed the files; and
|
|
102
|
+
|
|
103
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
104
|
+
that You distribute, all copyright, patent, trademark, and
|
|
105
|
+
attribution notices from the Source form of the Work,
|
|
106
|
+
excluding those notices that do not pertain to any part of
|
|
107
|
+
the Derivative Works; and
|
|
108
|
+
|
|
109
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
110
|
+
distribution, then any Derivative Works that You distribute must
|
|
111
|
+
include a readable copy of the attribution notices contained
|
|
112
|
+
within such NOTICE file, excluding those notices that do not
|
|
113
|
+
pertain to any part of the Derivative Works, in at least one
|
|
114
|
+
of the following places: within a NOTICE text file distributed
|
|
115
|
+
as part of the Derivative Works; within the Source form or
|
|
116
|
+
documentation, if provided along with the Derivative Works; or,
|
|
117
|
+
within a display generated by the Derivative Works, if and
|
|
118
|
+
wherever such third-party notices normally appear. The contents
|
|
119
|
+
of the NOTICE file are for informational purposes only and
|
|
120
|
+
do not modify the License. You may add Your own attribution
|
|
121
|
+
notices within Derivative Works that You distribute, alongside
|
|
122
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
123
|
+
that such additional attribution notices cannot be construed
|
|
124
|
+
as modifying the License.
|
|
125
|
+
|
|
126
|
+
You may add Your own copyright statement to Your modifications and
|
|
127
|
+
may provide additional or different license terms and conditions
|
|
128
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
129
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
130
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
131
|
+
the conditions stated in this License.
|
|
132
|
+
|
|
133
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
134
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
135
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
136
|
+
this License, without any additional terms or conditions.
|
|
137
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
138
|
+
the terms of any separate license agreement you may have executed
|
|
139
|
+
with Licensor regarding such Contributions.
|
|
140
|
+
|
|
141
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
142
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
143
|
+
except as required for reasonable and customary use in describing the
|
|
144
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
145
|
+
|
|
146
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
147
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
148
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
149
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
150
|
+
implied, including, without limitation, any warranties or conditions
|
|
151
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
152
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
153
|
+
appropriateness of using or redistributing the Work and assume any
|
|
154
|
+
risks associated with Your exercise of permissions under this License.
|
|
155
|
+
|
|
156
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
157
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
158
|
+
unless required by applicable law (such as deliberate and grossly
|
|
159
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
160
|
+
liable to You for damages, including any direct, indirect, special,
|
|
161
|
+
incidental, or consequential damages of any character arising as a
|
|
162
|
+
result of this License or out of the use or inability to use the
|
|
163
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
164
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
165
|
+
other commercial damages or losses), even if such Contributor
|
|
166
|
+
has been advised of the possibility of such damages.
|
|
167
|
+
|
|
168
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
169
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
170
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
171
|
+
or other liability obligations and/or rights consistent with this
|
|
172
|
+
License. However, in accepting such obligations, You may act only
|
|
173
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
174
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
175
|
+
defend, and hold each Contributor harmless for any liability
|
|
176
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
177
|
+
of your accepting any such warranty or additional liability.
|
|
178
|
+
|
|
179
|
+
END OF TERMS AND CONDITIONS
|
|
180
|
+
|
|
181
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
182
|
+
|
|
183
|
+
To apply the Apache License to your work, attach the following
|
|
184
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
185
|
+
replaced with your own identifying information. (Don't include
|
|
186
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
187
|
+
comment syntax for the file format. We also recommend that a
|
|
188
|
+
file or class name and description of purpose be included on the
|
|
189
|
+
same "printed page" as the copyright notice for easier
|
|
190
|
+
identification within third-party archives.
|
|
191
|
+
|
|
192
|
+
Copyright [yyyy] [name of copyright owner]
|
|
193
|
+
|
|
194
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
195
|
+
you may not use this file except in compliance with the License.
|
|
196
|
+
You may obtain a copy of the License at
|
|
197
|
+
|
|
198
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
199
|
+
|
|
200
|
+
Unless required by applicable law or agreed to in writing, software
|
|
201
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
202
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
203
|
+
See the License for the specific language governing permissions and
|
|
204
|
+
limitations under the License.
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: deeparche
|
|
3
|
+
Version: 0.50.4
|
|
4
|
+
Summary: 教学级 AI Agent Harness(平台/产品分层:core/llm/orch/builtin + product;官方 SDK 协议委托)
|
|
5
|
+
Project-URL: Homepage, https://github.com/MG5921MY/deeparche
|
|
6
|
+
Project-URL: Repository, https://github.com/MG5921MY/deeparche
|
|
7
|
+
Project-URL: Issues, https://github.com/MG5921MY/deeparche/issues
|
|
8
|
+
Author: Yang Mingguang
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
|
+
Requires-Dist: anthropic==0.120.2
|
|
13
|
+
Requires-Dist: av==17.1.0
|
|
14
|
+
Requires-Dist: faiss-cpu==1.15.1
|
|
15
|
+
Requires-Dist: httpx==0.28.1
|
|
16
|
+
Requires-Dist: jsonschema==4.26.0
|
|
17
|
+
Requires-Dist: mcp==2.0.0
|
|
18
|
+
Requires-Dist: openai==2.52.0
|
|
19
|
+
Requires-Dist: pillow==12.3.0
|
|
20
|
+
Requires-Dist: prompt-toolkit==3.0.53
|
|
21
|
+
Requires-Dist: pydantic==2.13.4
|
|
22
|
+
Requires-Dist: pyfiglet==1.0.4
|
|
23
|
+
Requires-Dist: rich==15.0.0
|
|
24
|
+
Requires-Dist: tomli==2.4.1; python_version < '3.11'
|
|
25
|
+
Requires-Dist: tree-sitter-language-pack==0.13.0
|
|
26
|
+
Requires-Dist: tree-sitter==0.25.2
|
|
27
|
+
Requires-Dist: typesafe-sdk==0.7.4
|
|
28
|
+
Requires-Dist: wcwidth==0.8.2
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
|
|
31
|
+
# DeepArche
|
|
32
|
+
|
|
33
|
+
教学级 AI Agent Harness——**平台/产品两层架构**:用最小完整内核,把 Agent 的必要职责收敛为 **Context、Tools、Loop** 三个原语。
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
Harness = Context Manager + Tool Registry + Agent Loop
|
|
37
|
+
Agent = Harness + LLM
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
> 当前为 **0.x developer preview**:开发期,API、配置与事件格式不承诺跨版本兼容。
|
|
41
|
+
> 官方公开仓库:https://github.com/MG5921MY/deeparche
|
|
42
|
+
> 许可证:Apache-2.0(见仓库根 `LICENSE`)
|
|
43
|
+
|
|
44
|
+
## 版本与发布
|
|
45
|
+
|
|
46
|
+
本仓库是 DeepArche 的官方公开仓库;代码、文档与发行记录均以本仓库为准。
|
|
47
|
+
版本由 Git tag / GitHub Release 表示;本文不固定描述当前版本号。
|
|
48
|
+
当前尚未发布到公网 PyPI。
|
|
49
|
+
|
|
50
|
+
## 不是什么
|
|
51
|
+
|
|
52
|
+
- 不是通用 Agent 框架竞争产品(不做 LangChain / PydanticAI 方向的平台化竞争)。
|
|
53
|
+
- 不是 Agent 市场或 Agent 托管平台。
|
|
54
|
+
- 不是 Graph / Workflow 架构;流程策略属于 Loop 的外层编排。
|
|
55
|
+
- 不是向量数据库内核;代码索引与检索属于 Tool。
|
|
56
|
+
- 不是完整 WebUI 产品;当前正式展示面是 CLI,历史展示层实现已归档且不随发行包提供。
|
|
57
|
+
|
|
58
|
+
## 平台 / 产品架构
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
平台(零约定——通用 Agent 构件)
|
|
62
|
+
core 内核:上下文 / 工具 / 循环 / 权限 / 压缩 / 沙箱 / 后台
|
|
63
|
+
→ llm 协议:OpenAI Compatible / OpenAI Responses / Claude 适配
|
|
64
|
+
→ orch 通用编排:装配 / 会话 / 回合 / 恢复 / 子代理 / 事件日志 / 投影
|
|
65
|
+
+ builtin 通用工具:文件 / shell / 常驻进程 / 代码地图 / 抓取 / MCP / Skills
|
|
66
|
+
|
|
67
|
+
产品(吃约定——第一个 harness)
|
|
68
|
+
product 产品编排(配置 / 装配 / agents / 审批 / 快照回滚)
|
|
69
|
+
→ api 服务契约 → cli 展示 / tools 工具接线 / channels 渠道契约
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
依赖方向单向:
|
|
73
|
+
|
|
74
|
+
```text
|
|
75
|
+
core → llm → orch / builtin → product
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
- **平台**不读取任何用户目录、不发现配置、不带产品约定;所有路径与策略由调用方显式传入。
|
|
79
|
+
- **产品**注入约定(两级配置、AGENTS、记忆、权限、快照回滚),是平台的第一个消费者。
|
|
80
|
+
- 依赖方向由静态守卫机械检查;平台层不得反向依赖产品层。
|
|
81
|
+
|
|
82
|
+
## 能力概览
|
|
83
|
+
|
|
84
|
+
- **三协议 LLM 适配**:OpenAI Compatible / OpenAI Responses / Claude,流式与非流式,供应商自定义请求头。
|
|
85
|
+
- **统一工具契约**:`name + description + schema + fn`;内置文件、shell、常驻进程、代码地图、抓取等工具,并支持 MCP、Skills 与自定义工具。
|
|
86
|
+
- **单一事件时间线**:上下文只由事件重放投影;展示层只读消费,不形成第二内容源。
|
|
87
|
+
- **缓存友好上下文**:system 会话装配一次,工具面与请求投影分离,尽量保持前缀稳定。
|
|
88
|
+
- **审批与安全**:审批端口、权限规则闭包、沙箱、审计;审批缺失时 fail-closed。
|
|
89
|
+
- **会话与恢复**:会话持久化、恢复、检查点与逐轮回滚。
|
|
90
|
+
- **展示与渠道边界**:API 拥有业务语义;Channel 只负责发现与启动;Display 负责具体 UI / transport。
|
|
91
|
+
- **产品门面**:CLI 与 `Agent` 门面复用同一装配链与回合编排。
|
|
92
|
+
|
|
93
|
+
完整功能清单、模块树、命令 / 工具 / 配置接入点见 **[docs/feature_tree.html](docs/feature_tree.html)**。该文件是生成物,由 [`code/deeparche/scripts/gen_feature_tree.py`](code/deeparche/scripts/gen_feature_tree.py) 生成,不要手改;完整功能以生成物为准。
|
|
94
|
+
|
|
95
|
+
原始理论长文:[Markdown](docs/理论起点/md/Agent%20框架的极简理论.md) / [自包含 HTML](docs/理论起点/html/Agent%20框架的极简理论.html)。
|
|
96
|
+
|
|
97
|
+
## 3 分钟源码快速开始
|
|
98
|
+
|
|
99
|
+
```powershell
|
|
100
|
+
# 从公开仓库获取源码,或使用当前检出目录:
|
|
101
|
+
uv sync
|
|
102
|
+
|
|
103
|
+
# 配置:在生效配置层生成 deeparche.toml + permissions.toml
|
|
104
|
+
uv run python -m deeparche.product.cli.main config init
|
|
105
|
+
|
|
106
|
+
# 设置供应商环境变量(示例:DEEPSEEK_API_KEY / MIMO_API_KEY)
|
|
107
|
+
# 完整配置参考:code/deeparche/examples/config/deeparche.example.toml
|
|
108
|
+
|
|
109
|
+
# 启动交互式 CLI
|
|
110
|
+
uv run python -m deeparche.product.cli.main
|
|
111
|
+
|
|
112
|
+
# 或单任务模式
|
|
113
|
+
uv run python -m deeparche.product.cli.main --task "分析当前目录结构"
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
```python
|
|
117
|
+
# 5 行嵌入(Agent 门面——与 CLI 同构)
|
|
118
|
+
from deeparche import Agent
|
|
119
|
+
|
|
120
|
+
with Agent() as agent:
|
|
121
|
+
print(agent.run("分析当前目录结构"))
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
> 当前尚未发布到公网 PyPI;源码运行是主要方式。包内安装说明见 [`code/deeparche/README.md`](code/deeparche/README.md)。
|
|
125
|
+
|
|
126
|
+
> **发布渠道**:版本通过 Git tag / GitHub Release 表示;当前尚未发布到公网 PyPI。
|
|
127
|
+
> 详见 [`RELEASE_POLICY.md`](RELEASE_POLICY.md)。
|
|
128
|
+
|
|
129
|
+
## 文档导航
|
|
130
|
+
|
|
131
|
+
| 文档 | 内容 |
|
|
132
|
+
|---|---|
|
|
133
|
+
| [`docs/feature_tree.html`](docs/feature_tree.html) | **完整能力清单(生成物,不手改)**:分层依赖、模块树、命令 / 工具 / 参数 / 配置键 / 公开 API 接入点 |
|
|
134
|
+
| [`docs/public/README.md`](docs/public/README.md) | 公开文档索引 |
|
|
135
|
+
| [`docs/public/architecture.md`](docs/public/architecture.md) | 分层职责、依赖方向、EventLog / Context / Tool / Loop、CLI / API / Channel / Display 边界 |
|
|
136
|
+
| [`docs/public/theory.md`](docs/public/theory.md) | Harness 理论、上下文投影、工具调用状态机、回合事务、审批、协议适配、测试分级 |
|
|
137
|
+
| [`docs/public/constraints.md`](docs/public/constraints.md) | 供应商 / 缓存 / 模态 / 请求体约束(带观测日期与变化声明) |
|
|
138
|
+
| [`docs/public/tradeoffs.md`](docs/public/tradeoffs.md) | 关键设计取舍与代价 |
|
|
139
|
+
| [`code/deeparche/ARCHITECTURE.md`](code/deeparche/ARCHITECTURE.md) | 架构与功能实现树(机器生成区 + 手工说明) |
|
|
140
|
+
| [`code/deeparche/CONTRACT.md`](code/deeparche/CONTRACT.md) | 公共契约清单(稳定 / 实验 / 内部三级) |
|
|
141
|
+
| [`docs/协议规范/README.md`](docs/协议规范/README.md) | 协议规范与实测阅读索引(防误读) |
|
|
142
|
+
| [`code/deeparche/examples/`](code/deeparche/examples/) | 示例单一根:配置示例与平台 / 产品开发示例 |
|
|
143
|
+
| [`CONTRIBUTING.md`](CONTRIBUTING.md) | 环境、测试(`--public`)、代码风格与提交约定 |
|
|
144
|
+
| [`SECURITY.md`](SECURITY.md) | 漏洞报告渠道、支持版本与发布安全边界 |
|
|
145
|
+
| [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md) | 社区行为规范与处理方式 |
|
|
146
|
+
| [`ACKNOWLEDGEMENTS.md`](ACKNOWLEDGEMENTS.md) | 设计参考致谢、协议 / 平台参考与第三方依赖边界 |
|
|
147
|
+
| [`docs/理论起点/`](docs/理论起点/) | 原始理论长文(Markdown / 自包含 HTML) |
|
|
148
|
+
|
|
149
|
+
## 社区与贡献
|
|
150
|
+
|
|
151
|
+
- 贡献流程、环境与测试:[CONTRIBUTING.md](CONTRIBUTING.md)
|
|
152
|
+
- 漏洞报告:[SECURITY.md](SECURITY.md)(不要在公开 issue 披露)
|
|
153
|
+
- 社区行为规范:[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)
|
|
154
|
+
- 设计参考与致谢:[ACKNOWLEDGEMENTS.md](ACKNOWLEDGEMENTS.md)
|
|
155
|
+
|
|
156
|
+
## 验证
|
|
157
|
+
|
|
158
|
+
```powershell
|
|
159
|
+
# 全量回归(测试套件 + 检查脚本;任一失败退出码非零)
|
|
160
|
+
uv run python code/deeparche/scripts/run_all_tests.py --concurrency 6
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
测试分级、发布守卫与当前基线以运行器报告和 `code/deeparche/README.md` 为准。
|
|
164
|
+
|
|
165
|
+
## 开发状态与许可证
|
|
166
|
+
|
|
167
|
+
- **状态**:0.x developer preview;开发期采用“零兼容”策略,旧路径直接删除,不维护双实现。
|
|
168
|
+
- **许可证**:Apache License 2.0,见 [`LICENSE`](LICENSE)。
|
|
169
|
+
- **发行**:版本通过 Git tag / GitHub Release 表示;当前尚未发布到公网 PyPI,详见 [`RELEASE_POLICY.md`](RELEASE_POLICY.md)。
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# DeepArche
|
|
2
|
+
|
|
3
|
+
教学级 AI Agent Harness——**平台/产品两层架构**:用最小完整内核,把 Agent 的必要职责收敛为 **Context、Tools、Loop** 三个原语。
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
Harness = Context Manager + Tool Registry + Agent Loop
|
|
7
|
+
Agent = Harness + LLM
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
> 当前为 **0.x developer preview**:开发期,API、配置与事件格式不承诺跨版本兼容。
|
|
11
|
+
> 官方公开仓库:https://github.com/MG5921MY/deeparche
|
|
12
|
+
> 许可证:Apache-2.0(见仓库根 `LICENSE`)
|
|
13
|
+
|
|
14
|
+
## 版本与发布
|
|
15
|
+
|
|
16
|
+
本仓库是 DeepArche 的官方公开仓库;代码、文档与发行记录均以本仓库为准。
|
|
17
|
+
版本由 Git tag / GitHub Release 表示;本文不固定描述当前版本号。
|
|
18
|
+
当前尚未发布到公网 PyPI。
|
|
19
|
+
|
|
20
|
+
## 不是什么
|
|
21
|
+
|
|
22
|
+
- 不是通用 Agent 框架竞争产品(不做 LangChain / PydanticAI 方向的平台化竞争)。
|
|
23
|
+
- 不是 Agent 市场或 Agent 托管平台。
|
|
24
|
+
- 不是 Graph / Workflow 架构;流程策略属于 Loop 的外层编排。
|
|
25
|
+
- 不是向量数据库内核;代码索引与检索属于 Tool。
|
|
26
|
+
- 不是完整 WebUI 产品;当前正式展示面是 CLI,历史展示层实现已归档且不随发行包提供。
|
|
27
|
+
|
|
28
|
+
## 平台 / 产品架构
|
|
29
|
+
|
|
30
|
+
```text
|
|
31
|
+
平台(零约定——通用 Agent 构件)
|
|
32
|
+
core 内核:上下文 / 工具 / 循环 / 权限 / 压缩 / 沙箱 / 后台
|
|
33
|
+
→ llm 协议:OpenAI Compatible / OpenAI Responses / Claude 适配
|
|
34
|
+
→ orch 通用编排:装配 / 会话 / 回合 / 恢复 / 子代理 / 事件日志 / 投影
|
|
35
|
+
+ builtin 通用工具:文件 / shell / 常驻进程 / 代码地图 / 抓取 / MCP / Skills
|
|
36
|
+
|
|
37
|
+
产品(吃约定——第一个 harness)
|
|
38
|
+
product 产品编排(配置 / 装配 / agents / 审批 / 快照回滚)
|
|
39
|
+
→ api 服务契约 → cli 展示 / tools 工具接线 / channels 渠道契约
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
依赖方向单向:
|
|
43
|
+
|
|
44
|
+
```text
|
|
45
|
+
core → llm → orch / builtin → product
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
- **平台**不读取任何用户目录、不发现配置、不带产品约定;所有路径与策略由调用方显式传入。
|
|
49
|
+
- **产品**注入约定(两级配置、AGENTS、记忆、权限、快照回滚),是平台的第一个消费者。
|
|
50
|
+
- 依赖方向由静态守卫机械检查;平台层不得反向依赖产品层。
|
|
51
|
+
|
|
52
|
+
## 能力概览
|
|
53
|
+
|
|
54
|
+
- **三协议 LLM 适配**:OpenAI Compatible / OpenAI Responses / Claude,流式与非流式,供应商自定义请求头。
|
|
55
|
+
- **统一工具契约**:`name + description + schema + fn`;内置文件、shell、常驻进程、代码地图、抓取等工具,并支持 MCP、Skills 与自定义工具。
|
|
56
|
+
- **单一事件时间线**:上下文只由事件重放投影;展示层只读消费,不形成第二内容源。
|
|
57
|
+
- **缓存友好上下文**:system 会话装配一次,工具面与请求投影分离,尽量保持前缀稳定。
|
|
58
|
+
- **审批与安全**:审批端口、权限规则闭包、沙箱、审计;审批缺失时 fail-closed。
|
|
59
|
+
- **会话与恢复**:会话持久化、恢复、检查点与逐轮回滚。
|
|
60
|
+
- **展示与渠道边界**:API 拥有业务语义;Channel 只负责发现与启动;Display 负责具体 UI / transport。
|
|
61
|
+
- **产品门面**:CLI 与 `Agent` 门面复用同一装配链与回合编排。
|
|
62
|
+
|
|
63
|
+
完整功能清单、模块树、命令 / 工具 / 配置接入点见 **[docs/feature_tree.html](docs/feature_tree.html)**。该文件是生成物,由 [`code/deeparche/scripts/gen_feature_tree.py`](code/deeparche/scripts/gen_feature_tree.py) 生成,不要手改;完整功能以生成物为准。
|
|
64
|
+
|
|
65
|
+
原始理论长文:[Markdown](docs/理论起点/md/Agent%20框架的极简理论.md) / [自包含 HTML](docs/理论起点/html/Agent%20框架的极简理论.html)。
|
|
66
|
+
|
|
67
|
+
## 3 分钟源码快速开始
|
|
68
|
+
|
|
69
|
+
```powershell
|
|
70
|
+
# 从公开仓库获取源码,或使用当前检出目录:
|
|
71
|
+
uv sync
|
|
72
|
+
|
|
73
|
+
# 配置:在生效配置层生成 deeparche.toml + permissions.toml
|
|
74
|
+
uv run python -m deeparche.product.cli.main config init
|
|
75
|
+
|
|
76
|
+
# 设置供应商环境变量(示例:DEEPSEEK_API_KEY / MIMO_API_KEY)
|
|
77
|
+
# 完整配置参考:code/deeparche/examples/config/deeparche.example.toml
|
|
78
|
+
|
|
79
|
+
# 启动交互式 CLI
|
|
80
|
+
uv run python -m deeparche.product.cli.main
|
|
81
|
+
|
|
82
|
+
# 或单任务模式
|
|
83
|
+
uv run python -m deeparche.product.cli.main --task "分析当前目录结构"
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
```python
|
|
87
|
+
# 5 行嵌入(Agent 门面——与 CLI 同构)
|
|
88
|
+
from deeparche import Agent
|
|
89
|
+
|
|
90
|
+
with Agent() as agent:
|
|
91
|
+
print(agent.run("分析当前目录结构"))
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
> 当前尚未发布到公网 PyPI;源码运行是主要方式。包内安装说明见 [`code/deeparche/README.md`](code/deeparche/README.md)。
|
|
95
|
+
|
|
96
|
+
> **发布渠道**:版本通过 Git tag / GitHub Release 表示;当前尚未发布到公网 PyPI。
|
|
97
|
+
> 详见 [`RELEASE_POLICY.md`](RELEASE_POLICY.md)。
|
|
98
|
+
|
|
99
|
+
## 文档导航
|
|
100
|
+
|
|
101
|
+
| 文档 | 内容 |
|
|
102
|
+
|---|---|
|
|
103
|
+
| [`docs/feature_tree.html`](docs/feature_tree.html) | **完整能力清单(生成物,不手改)**:分层依赖、模块树、命令 / 工具 / 参数 / 配置键 / 公开 API 接入点 |
|
|
104
|
+
| [`docs/public/README.md`](docs/public/README.md) | 公开文档索引 |
|
|
105
|
+
| [`docs/public/architecture.md`](docs/public/architecture.md) | 分层职责、依赖方向、EventLog / Context / Tool / Loop、CLI / API / Channel / Display 边界 |
|
|
106
|
+
| [`docs/public/theory.md`](docs/public/theory.md) | Harness 理论、上下文投影、工具调用状态机、回合事务、审批、协议适配、测试分级 |
|
|
107
|
+
| [`docs/public/constraints.md`](docs/public/constraints.md) | 供应商 / 缓存 / 模态 / 请求体约束(带观测日期与变化声明) |
|
|
108
|
+
| [`docs/public/tradeoffs.md`](docs/public/tradeoffs.md) | 关键设计取舍与代价 |
|
|
109
|
+
| [`code/deeparche/ARCHITECTURE.md`](code/deeparche/ARCHITECTURE.md) | 架构与功能实现树(机器生成区 + 手工说明) |
|
|
110
|
+
| [`code/deeparche/CONTRACT.md`](code/deeparche/CONTRACT.md) | 公共契约清单(稳定 / 实验 / 内部三级) |
|
|
111
|
+
| [`docs/协议规范/README.md`](docs/协议规范/README.md) | 协议规范与实测阅读索引(防误读) |
|
|
112
|
+
| [`code/deeparche/examples/`](code/deeparche/examples/) | 示例单一根:配置示例与平台 / 产品开发示例 |
|
|
113
|
+
| [`CONTRIBUTING.md`](CONTRIBUTING.md) | 环境、测试(`--public`)、代码风格与提交约定 |
|
|
114
|
+
| [`SECURITY.md`](SECURITY.md) | 漏洞报告渠道、支持版本与发布安全边界 |
|
|
115
|
+
| [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md) | 社区行为规范与处理方式 |
|
|
116
|
+
| [`ACKNOWLEDGEMENTS.md`](ACKNOWLEDGEMENTS.md) | 设计参考致谢、协议 / 平台参考与第三方依赖边界 |
|
|
117
|
+
| [`docs/理论起点/`](docs/理论起点/) | 原始理论长文(Markdown / 自包含 HTML) |
|
|
118
|
+
|
|
119
|
+
## 社区与贡献
|
|
120
|
+
|
|
121
|
+
- 贡献流程、环境与测试:[CONTRIBUTING.md](CONTRIBUTING.md)
|
|
122
|
+
- 漏洞报告:[SECURITY.md](SECURITY.md)(不要在公开 issue 披露)
|
|
123
|
+
- 社区行为规范:[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)
|
|
124
|
+
- 设计参考与致谢:[ACKNOWLEDGEMENTS.md](ACKNOWLEDGEMENTS.md)
|
|
125
|
+
|
|
126
|
+
## 验证
|
|
127
|
+
|
|
128
|
+
```powershell
|
|
129
|
+
# 全量回归(测试套件 + 检查脚本;任一失败退出码非零)
|
|
130
|
+
uv run python code/deeparche/scripts/run_all_tests.py --concurrency 6
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
测试分级、发布守卫与当前基线以运行器报告和 `code/deeparche/README.md` 为准。
|
|
134
|
+
|
|
135
|
+
## 开发状态与许可证
|
|
136
|
+
|
|
137
|
+
- **状态**:0.x developer preview;开发期采用“零兼容”策略,旧路径直接删除,不维护双实现。
|
|
138
|
+
- **许可证**:Apache License 2.0,见 [`LICENSE`](LICENSE)。
|
|
139
|
+
- **发行**:版本通过 Git tag / GitHub Release 表示;当前尚未发布到公网 PyPI,详见 [`RELEASE_POLICY.md`](RELEASE_POLICY.md)。
|