connectonion 0.6.2__py3-none-any.whl → 0.6.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- connectonion/__init__.py +46 -9
- connectonion/cli/__init__.py +11 -1
- connectonion/cli/browser_agent/__init__.py +11 -1
- connectonion/cli/browser_agent/browser.py +13 -3
- connectonion/cli/browser_agent/element_finder.py +8 -0
- connectonion/cli/browser_agent/highlight_screenshot.py +9 -1
- connectonion/cli/browser_agent/scroll.py +8 -0
- connectonion/cli/co_ai/__init__.py +6 -0
- connectonion/cli/co_ai/agent.py +87 -0
- connectonion/cli/co_ai/agents/__init__.py +5 -0
- connectonion/cli/co_ai/agents/registry.py +57 -0
- connectonion/cli/co_ai/commands/__init__.py +45 -0
- connectonion/cli/co_ai/commands/compact.py +173 -0
- connectonion/cli/co_ai/commands/cost.py +77 -0
- connectonion/cli/co_ai/commands/export.py +60 -0
- connectonion/cli/co_ai/commands/help.py +80 -0
- connectonion/cli/co_ai/commands/init.py +101 -0
- connectonion/cli/co_ai/commands/sessions.py +55 -0
- connectonion/cli/co_ai/commands/tasks.py +63 -0
- connectonion/cli/co_ai/commands/undo.py +103 -0
- connectonion/cli/co_ai/context.py +127 -0
- connectonion/cli/co_ai/main.py +52 -0
- connectonion/cli/co_ai/plugins/__init__.py +5 -0
- connectonion/cli/co_ai/plugins/system_reminder.py +154 -0
- connectonion/cli/co_ai/prompts/agents/explore.md +79 -0
- connectonion/cli/co_ai/prompts/agents/plan.md +60 -0
- connectonion/cli/co_ai/prompts/assembler.py +303 -0
- connectonion/cli/{docs/co-vibecoding-principles-docs-contexts-all-in-one.md → co_ai/prompts/connectonion/README.md} +26 -0
- connectonion/cli/co_ai/prompts/connectonion/api.md +457 -0
- connectonion/cli/co_ai/prompts/connectonion/cli/README.md +805 -0
- connectonion/cli/co_ai/prompts/connectonion/cli/auth.md +46 -0
- connectonion/cli/co_ai/prompts/connectonion/cli/browser.md +235 -0
- connectonion/cli/co_ai/prompts/connectonion/cli/copy.md +184 -0
- connectonion/cli/co_ai/prompts/connectonion/cli/create.md +335 -0
- connectonion/cli/co_ai/prompts/connectonion/cli/init.md +431 -0
- connectonion/cli/co_ai/prompts/connectonion/co-directory-structure.md +214 -0
- connectonion/cli/co_ai/prompts/connectonion/concepts/agent.md +1078 -0
- connectonion/cli/co_ai/prompts/connectonion/concepts/events.md +816 -0
- connectonion/cli/co_ai/prompts/connectonion/concepts/llm_do.md +256 -0
- connectonion/cli/co_ai/prompts/connectonion/concepts/max_iterations.md +362 -0
- connectonion/cli/co_ai/prompts/connectonion/concepts/models.md +641 -0
- connectonion/cli/co_ai/prompts/connectonion/concepts/plugins.md +100 -0
- connectonion/cli/co_ai/prompts/connectonion/concepts/prompts.md +122 -0
- connectonion/cli/co_ai/prompts/connectonion/concepts/tools.md +512 -0
- connectonion/cli/co_ai/prompts/connectonion/concepts/transcribe.md +156 -0
- connectonion/cli/co_ai/prompts/connectonion/concepts/trust.md +291 -0
- connectonion/cli/co_ai/prompts/connectonion/debug/README.md +18 -0
- connectonion/cli/co_ai/prompts/connectonion/debug/auto_debug.md +1026 -0
- connectonion/cli/co_ai/prompts/connectonion/debug/console.md +129 -0
- connectonion/cli/co_ai/prompts/connectonion/debug/eval-format.md +178 -0
- connectonion/cli/co_ai/prompts/connectonion/debug/eval.md +230 -0
- connectonion/cli/co_ai/prompts/connectonion/debug/exceptions.md +307 -0
- connectonion/cli/co_ai/prompts/connectonion/debug/log.md +117 -0
- connectonion/cli/co_ai/prompts/connectonion/debug/xray.md +215 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/001-choosing-input-method.md +202 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/002-choosing-llm-function-name.md +202 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/003-choosing-trust-keyword.md +141 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/004-cli-create-flow.md +117 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/005-designing-agent-network-protocol.md +503 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/006-agent-address-format.md +305 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/007-authentication-backend-design.md +240 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/008-naming-is-hard.md +228 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/009-why-connect-function.md +167 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/010-cli-ux-progressive-disclosure.md +176 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/011-global-config-identity-management.md +357 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/012-tool-execution-separation.md +259 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/013-debug-and-logging-design.md +253 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/014-hook-system-design.md +510 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/015-interactive-auto-debug-design.md +837 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/016-why-no-zero-knowledge-proofs.md +358 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/017-session-logging-and-eval-format.md +120 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/018-event-api-naming.md +274 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/019-agent-lifecycle-design.md +655 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/020-trust-system-and-network-architecture.md +503 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/021-task-storage-jsonl-design.md +496 -0
- connectonion/cli/co_ai/prompts/connectonion/design-decisions/022-raw-asgi-implementation.md +273 -0
- connectonion/cli/co_ai/prompts/connectonion/examples/agent_reasoning.md +62 -0
- connectonion/cli/co_ai/prompts/connectonion/examples/atomic_tools.md +24 -0
- connectonion/cli/co_ai/prompts/connectonion/examples/load_guide.md +18 -0
- connectonion/cli/co_ai/prompts/connectonion/examples.md +0 -0
- connectonion/cli/co_ai/prompts/connectonion/hook-system-options.md +364 -0
- connectonion/cli/co_ai/prompts/connectonion/index.md +162 -0
- connectonion/cli/co_ai/prompts/connectonion/integrations/README.md +12 -0
- connectonion/cli/co_ai/prompts/connectonion/integrations/auth.md +450 -0
- connectonion/cli/co_ai/prompts/connectonion/integrations/google.md +431 -0
- connectonion/cli/co_ai/prompts/connectonion/integrations/microsoft.md +370 -0
- connectonion/cli/co_ai/prompts/connectonion/network/README.md +14 -0
- connectonion/cli/co_ai/prompts/connectonion/network/connect.md +543 -0
- connectonion/cli/co_ai/prompts/connectonion/network/connection.md +538 -0
- connectonion/cli/co_ai/prompts/connectonion/network/deploy.md +123 -0
- connectonion/cli/co_ai/prompts/connectonion/network/host.md +1049 -0
- connectonion/cli/co_ai/prompts/connectonion/network/protocol/agent-relay-protocol.md +495 -0
- connectonion/cli/co_ai/prompts/connectonion/network/protocol/announce-message.md +115 -0
- connectonion/cli/co_ai/prompts/connectonion/principles.md +124 -0
- connectonion/cli/co_ai/prompts/connectonion/quickstart.md +261 -0
- connectonion/cli/co_ai/prompts/connectonion/roadmap.md +81 -0
- connectonion/cli/co_ai/prompts/connectonion/templates/README.md +77 -0
- connectonion/cli/co_ai/prompts/connectonion/templates/meta-agent.md +152 -0
- connectonion/cli/co_ai/prompts/connectonion/templates/minimal.md +105 -0
- connectonion/cli/co_ai/prompts/connectonion/templates/playwright.md +130 -0
- connectonion/cli/co_ai/prompts/connectonion/templates/web-research.md +144 -0
- connectonion/cli/co_ai/prompts/connectonion/tui/README.md +95 -0
- connectonion/cli/co_ai/prompts/connectonion/tui/chat.md +181 -0
- connectonion/cli/co_ai/prompts/connectonion/tui/divider.md +63 -0
- connectonion/cli/co_ai/prompts/connectonion/tui/dropdown.md +83 -0
- connectonion/cli/co_ai/prompts/connectonion/tui/footer.md +44 -0
- connectonion/cli/co_ai/prompts/connectonion/tui/fuzzy.md +68 -0
- connectonion/cli/co_ai/prompts/connectonion/tui/input.md +84 -0
- connectonion/cli/co_ai/prompts/connectonion/tui/keys.md +77 -0
- connectonion/cli/co_ai/prompts/connectonion/tui/pick.md +71 -0
- connectonion/cli/co_ai/prompts/connectonion/tui/providers.md +89 -0
- connectonion/cli/co_ai/prompts/connectonion/tui/status_bar.md +67 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_plugins/README.md +156 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_plugins/calendar_plugin.md +68 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_plugins/eval.md +89 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_plugins/gmail_plugin.md +68 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_plugins/image_result_formatter.md +74 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_plugins/re_act.md +86 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_plugins/shell_approval.md +69 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_tools/README.md +81 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_tools/diff_writer.md +138 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_tools/get_emails.md +499 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_tools/gmail.md +135 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_tools/google_calendar.md +106 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_tools/memory.md +486 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_tools/microsoft_calendar.md +106 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_tools/outlook.md +120 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_tools/send_email.md +403 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_tools/shell.md +95 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_tools/slash_command.md +96 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_tools/terminal.md +97 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_tools/todo_list.md +252 -0
- connectonion/cli/co_ai/prompts/connectonion/useful_tools/web_fetch.md +130 -0
- connectonion/cli/co_ai/prompts/connectonion/vibe-coding-guide.md +97 -0
- connectonion/cli/co_ai/prompts/connectonion/windows-support.md +258 -0
- connectonion/cli/co_ai/prompts/main.md +247 -0
- connectonion/cli/co_ai/prompts/summarization.md +55 -0
- connectonion/cli/co_ai/prompts/system-reminders/agent.md +23 -0
- connectonion/cli/co_ai/prompts/system-reminders/plan_mode.md +13 -0
- connectonion/cli/co_ai/prompts/system-reminders/security.md +14 -0
- connectonion/cli/co_ai/prompts/system-reminders/simplicity.md +14 -0
- connectonion/cli/co_ai/prompts/tools/ask_user.md +61 -0
- connectonion/cli/co_ai/prompts/tools/background.md +57 -0
- connectonion/cli/co_ai/prompts/tools/edit.md +90 -0
- connectonion/cli/co_ai/prompts/tools/glob.md +52 -0
- connectonion/cli/co_ai/prompts/tools/grep.md +55 -0
- connectonion/cli/co_ai/prompts/tools/plan_mode.md +80 -0
- connectonion/cli/co_ai/prompts/tools/read.md +40 -0
- connectonion/cli/co_ai/prompts/tools/shell.md +67 -0
- connectonion/cli/co_ai/prompts/tools/task.md +51 -0
- connectonion/cli/co_ai/prompts/tools/todo.md +139 -0
- connectonion/cli/co_ai/prompts/tools/write.md +47 -0
- connectonion/cli/co_ai/prompts/workflow.md +89 -0
- connectonion/cli/co_ai/sessions.py +110 -0
- connectonion/cli/co_ai/skills/__init__.py +37 -0
- connectonion/cli/co_ai/skills/builtin/commit/SKILL.md +63 -0
- connectonion/cli/co_ai/skills/builtin/review-pr/SKILL.md +76 -0
- connectonion/cli/co_ai/skills/loader.py +166 -0
- connectonion/cli/co_ai/skills/tool.py +46 -0
- connectonion/cli/co_ai/tools/__init__.py +92 -0
- connectonion/cli/co_ai/tools/ask_user.py +35 -0
- connectonion/cli/co_ai/tools/background.py +201 -0
- connectonion/cli/co_ai/tools/diff_writer.py +291 -0
- connectonion/cli/co_ai/tools/edit.py +89 -0
- connectonion/cli/co_ai/tools/glob.py +84 -0
- connectonion/cli/co_ai/tools/grep.py +158 -0
- connectonion/cli/co_ai/tools/load_guide.py +23 -0
- connectonion/cli/co_ai/tools/multi_edit.py +116 -0
- connectonion/cli/co_ai/tools/plan_mode.py +169 -0
- connectonion/cli/co_ai/tools/read.py +61 -0
- connectonion/cli/co_ai/tools/task.py +59 -0
- connectonion/cli/co_ai/tools/todo_list.py +159 -0
- connectonion/cli/co_ai/tools/write.py +126 -0
- connectonion/cli/commands/__init__.py +11 -1
- connectonion/cli/commands/ai_commands.py +34 -0
- connectonion/cli/commands/copy_commands.py +55 -6
- connectonion/cli/commands/create.py +20 -17
- connectonion/cli/commands/init.py +19 -22
- connectonion/cli/commands/project_cmd_lib.py +15 -0
- connectonion/cli/main.py +11 -0
- connectonion/console.py +15 -1
- connectonion/core/__init__.py +10 -1
- connectonion/core/agent.py +37 -16
- connectonion/core/exceptions.py +74 -0
- connectonion/core/llm.py +54 -6
- connectonion/core/tool_executor.py +32 -31
- connectonion/core/tool_factory.py +47 -10
- connectonion/debug/__init__.py +10 -1
- connectonion/debug/debug_explainer/__init__.py +10 -1
- connectonion/debug/execution_analyzer/__init__.py +10 -1
- connectonion/debug/execution_analyzer/execution_analysis.py +5 -2
- connectonion/debug/runtime_inspector/__init__.py +10 -1
- connectonion/docs/.package-ignore +6 -0
- connectonion/docs/README.md +2036 -0
- connectonion/docs/api.md +457 -0
- connectonion/docs/archive/001-ai-agent-is-just-prompt-plus-function.md +249 -0
- connectonion/docs/archive/README.md +53 -0
- connectonion/docs/archive/archive/consolidation-plan.md +72 -0
- connectonion/docs/archive/archive/core-principles-extracted.md +239 -0
- connectonion/docs/archive/archive/master-principles.md +222 -0
- connectonion/docs/archive/archive/principles.md +293 -0
- connectonion/docs/archive/archive/simplicity-principles.md +221 -0
- connectonion/docs/archive/attack-defense-insights.md +410 -0
- connectonion/docs/archive/business-model.md +305 -0
- connectonion/docs/archive/core-principles-unified.md +190 -0
- connectonion/docs/archive/discussion-journey.md +178 -0
- connectonion/docs/archive/economic-analysis.md +323 -0
- connectonion/docs/archive/features/01-share-and-find.md +256 -0
- connectonion/docs/archive/features/02-agent-authentication.md +93 -0
- connectonion/docs/archive/features/03-test-before-trust.md +71 -0
- connectonion/docs/archive/features/06-reliability-and-offline.md +197 -0
- connectonion/docs/archive/features/README.md +46 -0
- connectonion/docs/archive/features-roadmap.md +247 -0
- connectonion/docs/archive/mcp-comparison-insights.md +215 -0
- connectonion/docs/archive/migration-strategy.md +571 -0
- connectonion/docs/archive/mini-whitepaper.md +293 -0
- connectonion/docs/archive/network-protocol.md +394 -0
- connectonion/docs/archive/semantic-revolution.md +367 -0
- connectonion/docs/archive/technical-architecture.md +453 -0
- connectonion/docs/archive/the-semantic-insight.md +207 -0
- connectonion/docs/archive/threat-model.md +164 -0
- connectonion/docs/cli/README.md +805 -0
- connectonion/docs/cli/auth.md +46 -0
- connectonion/docs/cli/browser.md +235 -0
- connectonion/docs/cli/copy.md +232 -0
- connectonion/docs/cli/create.md +335 -0
- connectonion/docs/cli/init.md +431 -0
- connectonion/docs/co-directory-structure.md +214 -0
- connectonion/docs/concepts/agent.md +1078 -0
- connectonion/docs/concepts/events.md +699 -0
- connectonion/docs/concepts/llm_do.md +256 -0
- connectonion/docs/concepts/max_iterations.md +362 -0
- connectonion/docs/concepts/models.md +641 -0
- connectonion/docs/concepts/plugins.md +101 -0
- connectonion/docs/concepts/prompts.md +122 -0
- connectonion/docs/concepts/session.md +428 -0
- connectonion/docs/concepts/tools.md +512 -0
- connectonion/docs/concepts/transcribe.md +156 -0
- connectonion/docs/concepts/trust.md +291 -0
- connectonion/docs/connectonion.md +1256 -0
- connectonion/docs/debug/README.md +18 -0
- connectonion/docs/debug/auto_debug.md +1026 -0
- connectonion/docs/debug/console.md +129 -0
- connectonion/docs/debug/eval-format.md +178 -0
- connectonion/docs/debug/eval.md +230 -0
- connectonion/docs/debug/exceptions.md +307 -0
- connectonion/docs/debug/log.md +117 -0
- connectonion/docs/debug/xray.md +215 -0
- connectonion/docs/design-decisions/001-choosing-input-method.md +202 -0
- connectonion/docs/design-decisions/002-choosing-llm-function-name.md +202 -0
- connectonion/docs/design-decisions/003-choosing-trust-keyword.md +141 -0
- connectonion/docs/design-decisions/004-cli-create-flow.md +117 -0
- connectonion/docs/design-decisions/005-designing-agent-network-protocol.md +503 -0
- connectonion/docs/design-decisions/006-agent-address-format.md +305 -0
- connectonion/docs/design-decisions/007-authentication-backend-design.md +240 -0
- connectonion/docs/design-decisions/008-naming-is-hard.md +228 -0
- connectonion/docs/design-decisions/009-why-connect-function.md +167 -0
- connectonion/docs/design-decisions/010-cli-ux-progressive-disclosure.md +176 -0
- connectonion/docs/design-decisions/011-global-config-identity-management.md +357 -0
- connectonion/docs/design-decisions/012-tool-execution-separation.md +259 -0
- connectonion/docs/design-decisions/013-debug-and-logging-design.md +253 -0
- connectonion/docs/design-decisions/014-hook-system-design.md +510 -0
- connectonion/docs/design-decisions/015-interactive-auto-debug-design.md +837 -0
- connectonion/docs/design-decisions/016-why-no-zero-knowledge-proofs.md +358 -0
- connectonion/docs/design-decisions/017-session-logging-and-eval-format.md +120 -0
- connectonion/docs/design-decisions/018-event-api-naming.md +274 -0
- connectonion/docs/design-decisions/019-agent-lifecycle-design.md +655 -0
- connectonion/docs/design-decisions/020-trust-system-and-network-architecture.md +503 -0
- connectonion/docs/design-decisions/021-task-storage-jsonl-design.md +496 -0
- connectonion/docs/design-decisions/022-raw-asgi-implementation.md +273 -0
- connectonion/docs/examples.md +0 -0
- connectonion/docs/hook-system-options.md +364 -0
- connectonion/docs/integrations/README.md +12 -0
- connectonion/docs/integrations/auth.md +450 -0
- connectonion/docs/integrations/google.md +431 -0
- connectonion/docs/integrations/microsoft.md +370 -0
- connectonion/docs/network/README.md +14 -0
- connectonion/docs/network/connect.md +629 -0
- connectonion/docs/network/deploy.md +124 -0
- connectonion/docs/network/host.md +1087 -0
- connectonion/docs/network/io.md +538 -0
- connectonion/docs/network/protocol/agent-relay-protocol.md +495 -0
- connectonion/docs/network/protocol/announce-message.md +115 -0
- connectonion/docs/principles.md +124 -0
- connectonion/docs/quickstart.md +261 -0
- connectonion/docs/roadmap.md +81 -0
- connectonion/docs/templates/README.md +77 -0
- connectonion/docs/templates/meta-agent.md +152 -0
- connectonion/docs/templates/minimal.md +105 -0
- connectonion/docs/templates/playwright.md +130 -0
- connectonion/docs/templates/web-research.md +144 -0
- connectonion/docs/tui/README.md +95 -0
- connectonion/docs/tui/chat.md +181 -0
- connectonion/docs/tui/divider.md +63 -0
- connectonion/docs/tui/dropdown.md +83 -0
- connectonion/docs/tui/footer.md +44 -0
- connectonion/docs/tui/fuzzy.md +68 -0
- connectonion/docs/tui/input.md +84 -0
- connectonion/docs/tui/keys.md +77 -0
- connectonion/docs/tui/pick.md +71 -0
- connectonion/docs/tui/providers.md +89 -0
- connectonion/docs/tui/status_bar.md +67 -0
- connectonion/docs/useful_plugins/README.md +160 -0
- connectonion/docs/useful_plugins/calendar_plugin.md +68 -0
- connectonion/docs/useful_plugins/eval.md +89 -0
- connectonion/docs/useful_plugins/gmail_plugin.md +68 -0
- connectonion/docs/useful_plugins/image_result_formatter.md +74 -0
- connectonion/docs/useful_plugins/re_act.md +86 -0
- connectonion/docs/useful_plugins/shell_approval.md +69 -0
- connectonion/docs/useful_plugins/system_reminder.md +210 -0
- connectonion/docs/useful_plugins/tool_approval.md +139 -0
- connectonion/docs/useful_prompts/README.md +127 -0
- connectonion/docs/useful_prompts/coding_agent.md +214 -0
- connectonion/docs/useful_tools/README.md +81 -0
- connectonion/docs/useful_tools/ask_user.md +103 -0
- connectonion/docs/useful_tools/diff_writer.md +158 -0
- connectonion/docs/useful_tools/get_emails.md +519 -0
- connectonion/docs/useful_tools/gmail.md +155 -0
- connectonion/docs/useful_tools/google_calendar.md +126 -0
- connectonion/docs/useful_tools/memory.md +506 -0
- connectonion/docs/useful_tools/microsoft_calendar.md +126 -0
- connectonion/docs/useful_tools/outlook.md +140 -0
- connectonion/docs/useful_tools/send_email.md +423 -0
- connectonion/docs/useful_tools/shell.md +115 -0
- connectonion/docs/useful_tools/slash_command.md +116 -0
- connectonion/docs/useful_tools/terminal.md +115 -0
- connectonion/docs/useful_tools/todo_list.md +272 -0
- connectonion/docs/useful_tools/web_fetch.md +150 -0
- connectonion/docs/vibe-coding-guide.md +97 -0
- connectonion/docs/windows-support.md +258 -0
- connectonion/logger.py +3 -3
- connectonion/network/__init__.py +19 -6
- connectonion/network/asgi/__init__.py +81 -0
- connectonion/network/asgi/http.py +205 -0
- connectonion/network/asgi/websocket.py +217 -0
- connectonion/network/connect.py +232 -185
- connectonion/network/host/__init__.py +59 -0
- connectonion/network/host/auth.py +191 -0
- connectonion/network/host/routes.py +135 -0
- connectonion/network/host/server.py +289 -0
- connectonion/network/host/session.py +78 -0
- connectonion/network/io/__init__.py +21 -0
- connectonion/network/{connection.py → io/base.py} +17 -42
- connectonion/network/io/websocket.py +55 -0
- connectonion/network/relay.py +37 -16
- connectonion/network/trust/__init__.py +30 -0
- connectonion/network/trust/factory.py +138 -0
- connectonion/network/{trust_agents.py → trust/prompts.py} +3 -3
- connectonion/network/{trust_functions.py → trust/tools.py} +2 -2
- connectonion/prompt_files/__init__.py +11 -1
- connectonion/prompt_files/react_acknowledge.md +26 -0
- connectonion/prompts.py +10 -1
- connectonion/tui/chat.py +10 -1
- connectonion/tui/divider.py +10 -1
- connectonion/tui/dropdown.py +10 -1
- connectonion/tui/footer.py +8 -0
- connectonion/tui/fuzzy.py +11 -1
- connectonion/tui/input.py +118 -70
- connectonion/tui/keys.py +133 -6
- connectonion/tui/providers.py +11 -1
- connectonion/tui/status_bar.py +10 -1
- connectonion/useful_events_handlers/__init__.py +8 -0
- connectonion/useful_events_handlers/reflect.py +19 -4
- connectonion/useful_plugins/__init__.py +3 -1
- connectonion/useful_plugins/eval.py +2 -2
- connectonion/useful_plugins/gmail_plugin.py +3 -3
- connectonion/useful_plugins/image_result_formatter.py +3 -3
- connectonion/useful_plugins/re_act.py +114 -28
- connectonion/useful_plugins/shell_approval.py +2 -2
- connectonion/useful_plugins/system_reminder.py +103 -0
- connectonion/useful_plugins/tool_approval.py +233 -0
- connectonion/useful_plugins/ui_stream.py +18 -133
- connectonion/useful_prompts/README.md +61 -0
- connectonion/useful_prompts/__init__.py +45 -0
- connectonion/useful_prompts/coding_agent/README.md +106 -0
- connectonion/useful_prompts/coding_agent/assembler.py +123 -0
- connectonion/useful_prompts/coding_agent/prompts/main.md +227 -0
- connectonion/useful_prompts/coding_agent/prompts/tools/ask_user.md +61 -0
- connectonion/useful_prompts/coding_agent/prompts/tools/background.md +57 -0
- connectonion/useful_prompts/coding_agent/prompts/tools/edit.md +90 -0
- connectonion/useful_prompts/coding_agent/prompts/tools/glob.md +52 -0
- connectonion/useful_prompts/coding_agent/prompts/tools/grep.md +55 -0
- connectonion/useful_prompts/coding_agent/prompts/tools/plan_mode.md +80 -0
- connectonion/useful_prompts/coding_agent/prompts/tools/read.md +40 -0
- connectonion/useful_prompts/coding_agent/prompts/tools/shell.md +67 -0
- connectonion/useful_prompts/coding_agent/prompts/tools/task.md +51 -0
- connectonion/useful_prompts/coding_agent/prompts/tools/todo.md +139 -0
- connectonion/useful_prompts/coding_agent/prompts/tools/write.md +48 -0
- connectonion/useful_prompts/system-reminders/security-warning.md +14 -0
- connectonion/useful_prompts/system-reminders/test-reminder.md +11 -0
- connectonion/useful_tools/__init__.py +31 -4
- connectonion/useful_tools/ask_user.py +35 -0
- connectonion/useful_tools/bash.py +69 -0
- connectonion/useful_tools/diff_writer.py +186 -94
- connectonion/useful_tools/edit.py +102 -0
- connectonion/useful_tools/glob_files.py +97 -0
- connectonion/useful_tools/grep_files.py +171 -0
- connectonion/useful_tools/multi_edit.py +116 -0
- connectonion/useful_tools/read_file.py +73 -0
- connectonion/useful_tools/shell.py +50 -45
- connectonion/useful_tools/write_file.py +129 -0
- {connectonion-0.6.2.dist-info → connectonion-0.6.4.dist-info}/METADATA +10 -3
- connectonion-0.6.4.dist-info/RECORD +472 -0
- connectonion/network/asgi.py +0 -407
- connectonion/network/host.py +0 -616
- connectonion/network/trust.py +0 -166
- connectonion-0.6.2.dist-info/RECORD +0 -129
- /connectonion/cli/{docs → co_ai/prompts/connectonion}/connectonion.md +0 -0
- {connectonion-0.6.2.dist-info → connectonion-0.6.4.dist-info}/WHEEL +0 -0
- {connectonion-0.6.2.dist-info → connectonion-0.6.4.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Documentation Principles
|
|
2
|
+
|
|
3
|
+
## Core Philosophy
|
|
4
|
+
|
|
5
|
+
**"Show, don't tell"** - Every concept should be immediately usable.
|
|
6
|
+
|
|
7
|
+
## The 7 Principles
|
|
8
|
+
|
|
9
|
+
### 1. Start with Success
|
|
10
|
+
```markdown
|
|
11
|
+
BAD: "ConnectOnion uses function-based tools with automatic schema generation..."
|
|
12
|
+
GOOD: "Build your first AI agent in 60 seconds."
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### 2. One Concept Per Page
|
|
16
|
+
```markdown
|
|
17
|
+
BAD: "Agents, Tools, and History" (one page)
|
|
18
|
+
GOOD: "Agents" | "Tools" | "History" (separate pages)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### 3. Code First, Explanation Second
|
|
22
|
+
```markdown
|
|
23
|
+
GOOD:
|
|
24
|
+
```python
|
|
25
|
+
@xray
|
|
26
|
+
def my_tool():
|
|
27
|
+
print(xray.task) # "User's request"
|
|
28
|
+
```
|
|
29
|
+
That's it! Add @xray to see inside.
|
|
30
|
+
|
|
31
|
+
BAD:
|
|
32
|
+
"The xray decorator provides introspection capabilities..."
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### 4. Progressive Disclosure
|
|
36
|
+
```
|
|
37
|
+
Level 1: Quick Start (60 seconds)
|
|
38
|
+
Level 2: Basic Usage (5 minutes)
|
|
39
|
+
Level 3: Advanced Patterns (when needed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### 5. Real Output, Not Promises
|
|
43
|
+
```markdown
|
|
44
|
+
GOOD:
|
|
45
|
+
Task: "Find Python tutorials"
|
|
46
|
+
[1] • 45ms search(query="Python tutorials")
|
|
47
|
+
OUT ← "Found 10 tutorials..."
|
|
48
|
+
|
|
49
|
+
BAD:
|
|
50
|
+
"The trace function will show execution details"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### 6. Practical Examples Only
|
|
54
|
+
```markdown
|
|
55
|
+
GOOD: "Check why emergency_shutdown() was called"
|
|
56
|
+
BAD: "Process abstract data with generic handler"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### 7. Scannable Structure
|
|
60
|
+
```markdown
|
|
61
|
+
GOOD:
|
|
62
|
+
## Quick Start (2 lines of code)
|
|
63
|
+
## What You Get (bullet points)
|
|
64
|
+
## Real Example (10 lines max)
|
|
65
|
+
## Tips (4 items max)
|
|
66
|
+
|
|
67
|
+
BAD:
|
|
68
|
+
Long paragraphs explaining theory...
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Writing Checklist
|
|
72
|
+
|
|
73
|
+
Before publishing any doc:
|
|
74
|
+
|
|
75
|
+
- [ ] Can someone use this in 60 seconds?
|
|
76
|
+
- [ ] Is the first example under 5 lines?
|
|
77
|
+
- [ ] Does it show real output?
|
|
78
|
+
- [ ] One main concept only?
|
|
79
|
+
- [ ] Mobile-friendly line lengths?
|
|
80
|
+
- [ ] Would I read this if I was in a hurry?
|
|
81
|
+
|
|
82
|
+
## Examples of Good Docs
|
|
83
|
+
|
|
84
|
+
### Quick Start Pattern
|
|
85
|
+
```
|
|
86
|
+
1. Show minimal working code (3-5 lines)
|
|
87
|
+
2. Show output
|
|
88
|
+
3. Say "That's it!"
|
|
89
|
+
4. Then explain what happened
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Feature Introduction Pattern
|
|
93
|
+
```
|
|
94
|
+
1. One-line description
|
|
95
|
+
2. Simplest possible example
|
|
96
|
+
3. What you can do with it (bullets)
|
|
97
|
+
4. Common use cases (2-3)
|
|
98
|
+
5. Link to more if needed
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### API Reference Pattern
|
|
102
|
+
```
|
|
103
|
+
1. Function signature
|
|
104
|
+
2. One-line description
|
|
105
|
+
3. Minimal example
|
|
106
|
+
4. Parameters table
|
|
107
|
+
5. Return value
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## What to Avoid
|
|
111
|
+
|
|
112
|
+
❌ **Theory before practice**
|
|
113
|
+
❌ **Multiple concepts per section**
|
|
114
|
+
❌ **Examples over 20 lines**
|
|
115
|
+
❌ **Unexplained output**
|
|
116
|
+
❌ **Abstract examples**
|
|
117
|
+
❌ **Dense paragraphs**
|
|
118
|
+
❌ **Assuming prior knowledge**
|
|
119
|
+
|
|
120
|
+
## Remember
|
|
121
|
+
|
|
122
|
+
> "The best documentation is the code itself. The second best is showing the code in action."
|
|
123
|
+
|
|
124
|
+
Every doc should make someone think: "Wow, that's simple!"
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
# Quick Start
|
|
2
|
+
|
|
3
|
+
Build your first AI agent in 60 seconds.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install connectonion
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start with CLI
|
|
12
|
+
|
|
13
|
+
The fastest way to start is with the ConnectOnion CLI:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# Create a new agent project
|
|
17
|
+
co create my-agent
|
|
18
|
+
|
|
19
|
+
# Navigate to the project
|
|
20
|
+
cd my-agent
|
|
21
|
+
|
|
22
|
+
# Run your agent (API key setup is automatic!)
|
|
23
|
+
python agent.py
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
That's it! You now have a working agent ready to use. 🎉
|
|
27
|
+
|
|
28
|
+
## Manual Setup (Alternative)
|
|
29
|
+
|
|
30
|
+
```python
|
|
31
|
+
from connectonion import Agent
|
|
32
|
+
|
|
33
|
+
# Define what your agent can do
|
|
34
|
+
def calculate(expression: str) -> str:
|
|
35
|
+
"""Do math calculations."""
|
|
36
|
+
return str(eval(expression))
|
|
37
|
+
|
|
38
|
+
# Create your agent
|
|
39
|
+
agent = Agent(
|
|
40
|
+
"assistant",
|
|
41
|
+
tools=[calculate],
|
|
42
|
+
max_iterations=5 # Simple calculations don't need many iterations
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
# Use it!
|
|
46
|
+
result = agent.input("What is 42 * 17?")
|
|
47
|
+
print(result)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**Output:**
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
To calculate 42 * 17, I'll use the calculator tool.
|
|
54
|
+
|
|
55
|
+
The result is 714.
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
That's it! You just built an AI agent that can use tools. 🎉
|
|
59
|
+
|
|
60
|
+
## Add More Tools
|
|
61
|
+
|
|
62
|
+
Want your agent to do more? Just add more functions:
|
|
63
|
+
|
|
64
|
+
```python
|
|
65
|
+
def search(query: str) -> str:
|
|
66
|
+
"""Search the web."""
|
|
67
|
+
return f"Results for {query}: [simulated results]"
|
|
68
|
+
|
|
69
|
+
def get_time() -> str:
|
|
70
|
+
"""Get current time."""
|
|
71
|
+
from datetime import datetime
|
|
72
|
+
return datetime.now().strftime("%I:%M %p")
|
|
73
|
+
|
|
74
|
+
# Create a more capable agent
|
|
75
|
+
agent = Agent(
|
|
76
|
+
name="assistant",
|
|
77
|
+
tools=[calculate, search, get_time],
|
|
78
|
+
max_iterations=10 # Default for general purpose agents
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
# It can use multiple tools in one request!
|
|
82
|
+
result = agent.input("Search for Python tutorials and tell me what time it is")
|
|
83
|
+
print(result)
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Make It Yours
|
|
87
|
+
|
|
88
|
+
Give your agent a personality with flexible system prompts:
|
|
89
|
+
|
|
90
|
+
```python
|
|
91
|
+
# Option 1: Direct string
|
|
92
|
+
agent = Agent(
|
|
93
|
+
name="friendly_bot",
|
|
94
|
+
system_prompt="You are a cheerful assistant who loves to help!",
|
|
95
|
+
tools=[calculate, search, get_time]
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
# Option 2: Load from file (auto-detected)
|
|
99
|
+
agent = Agent(
|
|
100
|
+
name="expert_bot",
|
|
101
|
+
system_prompt="prompts/expert.md", # Loads from file
|
|
102
|
+
tools=[calculate, search, get_time]
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
# Option 3: Using Path object
|
|
106
|
+
from pathlib import Path
|
|
107
|
+
agent = Agent(
|
|
108
|
+
name="custom_bot",
|
|
109
|
+
system_prompt=Path("prompts/custom_personality.txt"),
|
|
110
|
+
tools=[calculate, search, get_time]
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
result = agent.input("Hello!")
|
|
114
|
+
# Response will reflect the personality defined in your prompt
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Track Everything (Automatic!)
|
|
118
|
+
|
|
119
|
+
ConnectOnion tracks all agent behavior automatically:
|
|
120
|
+
|
|
121
|
+
```python
|
|
122
|
+
# See what your agent has been doing
|
|
123
|
+
print(agent.history.summary())
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**Output:**
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
Agent: assistant
|
|
130
|
+
Total tasks: 3
|
|
131
|
+
Tools used: calculate (2), search (1), get_time (1)
|
|
132
|
+
Activity logged to: .co/logs/assistant.log
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## Real Example
|
|
136
|
+
|
|
137
|
+
Here's a practical agent in ~10 lines:
|
|
138
|
+
|
|
139
|
+
```python
|
|
140
|
+
from connectonion import Agent
|
|
141
|
+
|
|
142
|
+
def write_file(filename: str, content: str) -> str:
|
|
143
|
+
"""Save content to a file."""
|
|
144
|
+
with open(filename, 'w') as f:
|
|
145
|
+
f.write(content)
|
|
146
|
+
return f"Saved to {filename}"
|
|
147
|
+
|
|
148
|
+
def read_file(filename: str) -> str:
|
|
149
|
+
"""Read a file."""
|
|
150
|
+
with open(filename, 'r') as f:
|
|
151
|
+
return f.read()
|
|
152
|
+
|
|
153
|
+
# Create a file assistant
|
|
154
|
+
assistant = Agent(
|
|
155
|
+
"file_helper",
|
|
156
|
+
tools=[write_file, read_file],
|
|
157
|
+
max_iterations=8 # File operations are usually straightforward
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
# Use it
|
|
161
|
+
assistant.input("Save 'Hello World' to greeting.txt")
|
|
162
|
+
assistant.input("What's in greeting.txt?")
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
## CLI Templates
|
|
166
|
+
|
|
167
|
+
ConnectOnion provides different templates for common use cases:
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
# Create with minimal template (default)
|
|
171
|
+
co create my-agent
|
|
172
|
+
|
|
173
|
+
# Create with playwright template
|
|
174
|
+
co create my-browser-bot --template playwright
|
|
175
|
+
|
|
176
|
+
# Initialize in existing directory
|
|
177
|
+
co init # Adds .co folder only
|
|
178
|
+
co init --template playwright # Adds full template
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
## Copy & Customize Built-in Tools
|
|
182
|
+
|
|
183
|
+
Want to customize a built-in tool? Copy it to your project:
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
# See what's available
|
|
187
|
+
co copy --list
|
|
188
|
+
|
|
189
|
+
# Copy a tool to ./tools/
|
|
190
|
+
co copy Gmail
|
|
191
|
+
|
|
192
|
+
# Copy a plugin to ./plugins/
|
|
193
|
+
co copy re_act
|
|
194
|
+
|
|
195
|
+
# Copy multiple items
|
|
196
|
+
co copy Gmail Shell memory
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
Then import from your local copy instead:
|
|
200
|
+
|
|
201
|
+
```python
|
|
202
|
+
# Before (from package)
|
|
203
|
+
from connectonion import Gmail
|
|
204
|
+
|
|
205
|
+
# After (from your copy)
|
|
206
|
+
from tools.gmail import Gmail # Now you can customize it!
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### What Gets Created
|
|
210
|
+
|
|
211
|
+
```
|
|
212
|
+
my-agent/
|
|
213
|
+
├── agent.py # Main agent implementation
|
|
214
|
+
├── .env # API keys (auto-configured)
|
|
215
|
+
├── co-vibecoding-principles-docs-contexts-all-in-one.md # Complete framework docs
|
|
216
|
+
├── .gitignore # Git configuration
|
|
217
|
+
└── .co/ # ConnectOnion metadata
|
|
218
|
+
├── config.toml
|
|
219
|
+
└── docs/
|
|
220
|
+
└── co-vibecoding-principles-docs-contexts-all-in-one.md
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
Learn more about templates in the [Templates Documentation](templates/).
|
|
224
|
+
|
|
225
|
+
## Next Steps
|
|
226
|
+
|
|
227
|
+
Ready for more?
|
|
228
|
+
|
|
229
|
+
- **[CLI Reference](cli/)** - All CLI commands and options
|
|
230
|
+
- **[Templates](templates/)** - Pre-built agent templates
|
|
231
|
+
- **[Agent Guide](concepts/agent.md)** - How agents work
|
|
232
|
+
- **[Tools Guide](concepts/tools.md)** - How tools work
|
|
233
|
+
- **[Examples](examples.md)** - Copy-paste ready code
|
|
234
|
+
- **[API Reference](api.md)** - Detailed documentation
|
|
235
|
+
|
|
236
|
+
## Quick Tips
|
|
237
|
+
|
|
238
|
+
1. **Functions = Tools** (no classes needed!)
|
|
239
|
+
2. **Docstrings = Descriptions** (agent reads these)
|
|
240
|
+
3. **Type hints = Better results** (helps agent understand)
|
|
241
|
+
4. **Logging = Free** (automatic activity tracking to `.co/logs/`)
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## Troubleshooting
|
|
246
|
+
|
|
247
|
+
### "API key not found"
|
|
248
|
+
Make sure you:
|
|
249
|
+
1. Copied `.env.example` to `.env`
|
|
250
|
+
2. Added your actual API key
|
|
251
|
+
3. Are running from the project directory
|
|
252
|
+
|
|
253
|
+
### "Permission denied"
|
|
254
|
+
Ensure you have write permissions in the current directory.
|
|
255
|
+
|
|
256
|
+
### "Module not found"
|
|
257
|
+
Install ConnectOnion: `pip install connectonion`
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
**Need help?** Check our [examples](examples.md) or [join Discord](https://discord.gg/4xfD9k8AUF) for support.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Roadmap
|
|
2
|
+
|
|
3
|
+
ConnectOnion's development roadmap. Track progress on [GitHub](https://github.com/openonion/connectonion/milestones).
|
|
4
|
+
|
|
5
|
+
## Current Milestones
|
|
6
|
+
|
|
7
|
+
### Launch the Network (Q4 2025)
|
|
8
|
+
|
|
9
|
+
Implement the ConnectOnion peer-to-peer network protocol where agents discover and collaborate using public keys as addresses.
|
|
10
|
+
|
|
11
|
+
**Features:**
|
|
12
|
+
- Message-based architecture (ANNOUNCE/FIND/TASK)
|
|
13
|
+
- Relay nodes for NAT traversal
|
|
14
|
+
- Encrypted peer-to-peer communication
|
|
15
|
+
- Contact/stranger management
|
|
16
|
+
- Managed keys API (`co/` prefix) - **Done**
|
|
17
|
+
|
|
18
|
+
### Multi-Agent Trust System (Q1 2026)
|
|
19
|
+
|
|
20
|
+
Build a trust system for secure multi-agent collaboration.
|
|
21
|
+
|
|
22
|
+
**Features:**
|
|
23
|
+
- Agent-to-agent trust verification
|
|
24
|
+
- Trust levels for remote agents (open/tested/strict)
|
|
25
|
+
- Behavior-based trust scoring
|
|
26
|
+
- Trust policies for agent networks
|
|
27
|
+
|
|
28
|
+
### co deploy - Agent Deployment (Q1 2026)
|
|
29
|
+
|
|
30
|
+
One-command deployment for production agents.
|
|
31
|
+
|
|
32
|
+
**Features:**
|
|
33
|
+
- `co deploy` CLI command
|
|
34
|
+
- Deploy to cloud providers (AWS, GCP, etc.)
|
|
35
|
+
- Automatic HTTPS and domain setup
|
|
36
|
+
- Environment management (dev/staging/prod)
|
|
37
|
+
- Health monitoring and auto-restart
|
|
38
|
+
|
|
39
|
+
### AI Auto-Coding (Q2 2026)
|
|
40
|
+
|
|
41
|
+
Enable AI agents to automatically write, debug, and improve code.
|
|
42
|
+
|
|
43
|
+
**Features:**
|
|
44
|
+
- `auto_debug_exception` for runtime debugging - **Done**
|
|
45
|
+
- Code generation tools
|
|
46
|
+
- Automated testing
|
|
47
|
+
- AI-powered refactoring
|
|
48
|
+
|
|
49
|
+
## Open Features
|
|
50
|
+
|
|
51
|
+
### Debugging & Development
|
|
52
|
+
- [ ] Implement AI Help Mode for interactive debugging assistance
|
|
53
|
+
- [ ] Implement step mode for debugging all tool executions
|
|
54
|
+
- [ ] Implement modify result command for time-travel debugging
|
|
55
|
+
- [ ] Implement inspect command for viewing agent state
|
|
56
|
+
- [ ] Implement retry command for re-executing tools
|
|
57
|
+
- [ ] Implement update prompt command for mid-execution changes
|
|
58
|
+
|
|
59
|
+
### Documentation
|
|
60
|
+
- [ ] Create tutorial video series
|
|
61
|
+
- [ ] Update docs website with current features
|
|
62
|
+
- [ ] Create comprehensive auto-debug documentation
|
|
63
|
+
- [ ] Create templates/ documentation folder with individual template guides
|
|
64
|
+
- [ ] Document Claude Code plugin templates for AI vibe coding
|
|
65
|
+
|
|
66
|
+
### Platform
|
|
67
|
+
- [ ] Add Microsoft OAuth integration (`co auth microsoft`)
|
|
68
|
+
- [ ] Add conflict detection for duplicate tool names
|
|
69
|
+
- [ ] Session logging and eval system
|
|
70
|
+
|
|
71
|
+
## Recently Completed
|
|
72
|
+
|
|
73
|
+
- Google OAuth integration (`co auth google`)
|
|
74
|
+
- React-mode plugin example
|
|
75
|
+
- Managed keys API (`co/` prefix)
|
|
76
|
+
- Auto-detect base64 image results for vision models
|
|
77
|
+
- Network feature API design (serve/connect)
|
|
78
|
+
|
|
79
|
+
## Contributing
|
|
80
|
+
|
|
81
|
+
Want to contribute? Check [open issues](https://github.com/openonion/connectonion/issues) or join our [Discord](https://discord.gg/4xfD9k8AUF).
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Templates
|
|
2
|
+
|
|
3
|
+
Pre-built agent templates for common use cases. Create a new project with:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
co create my-agent --template <template-name>
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Template Selection Guide
|
|
10
|
+
|
|
11
|
+
| Template | Best For | Key Tools |
|
|
12
|
+
|----------|----------|-----------|
|
|
13
|
+
| [minimal](minimal.md) | Getting started, learning | `calculator` |
|
|
14
|
+
| [playwright](playwright.md) | Web automation, scraping | Browser control, screenshots |
|
|
15
|
+
| [meta-agent](meta-agent.md) | Building agents, dev assistance | Docs search, shell, todos |
|
|
16
|
+
| [web-research](web-research.md) | Research, data extraction | Web search, analysis |
|
|
17
|
+
|
|
18
|
+
## Quick Comparison
|
|
19
|
+
|
|
20
|
+
### minimal
|
|
21
|
+
Simple starting point with one tool. Perfect for learning ConnectOnion basics.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
co create my-bot --template minimal
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### playwright
|
|
28
|
+
Full browser automation with 11 tools. Scrape websites, fill forms, take screenshots.
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
co create browser-bot --template playwright
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### meta-agent
|
|
35
|
+
Development assistant that knows ConnectOnion. Query docs, run shell commands, manage todos.
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
co create dev-helper --template meta-agent
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### web-research
|
|
42
|
+
Research and data extraction. Search web, extract content, save findings.
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
co create researcher --template web-research
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Creating Custom Templates
|
|
49
|
+
|
|
50
|
+
Start with any template and customize:
|
|
51
|
+
|
|
52
|
+
1. Create project: `co create my-agent --template minimal`
|
|
53
|
+
2. Add tools to `agent.py`
|
|
54
|
+
3. Update `prompt.md` for agent personality
|
|
55
|
+
4. Add dependencies to `requirements.txt`
|
|
56
|
+
|
|
57
|
+
See [Tools](../concepts/tools.md) for creating custom tools.
|
|
58
|
+
|
|
59
|
+
## What Each Template Includes
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
my-agent/
|
|
63
|
+
├── agent.py # Agent with tools
|
|
64
|
+
├── prompt.md # System prompt (optional)
|
|
65
|
+
├── .env # API keys
|
|
66
|
+
├── .co/
|
|
67
|
+
│ ├── config.toml # Project config
|
|
68
|
+
│ └── docs/ # ConnectOnion docs for AI
|
|
69
|
+
├── requirements.txt # Dependencies
|
|
70
|
+
└── README.md # Project documentation
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Next Steps
|
|
74
|
+
|
|
75
|
+
- [CLI Create Command](../cli/create.md) - Full `co create` options
|
|
76
|
+
- [Tools Documentation](../concepts/tools.md) - Creating custom tools
|
|
77
|
+
- [Prompts](../concepts/prompts.md) - Customizing agent behavior
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# Meta-Agent Template
|
|
2
|
+
|
|
3
|
+
Development assistant that knows ConnectOnion. Query docs, run commands, manage tasks.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
co create dev-helper --template meta-agent
|
|
9
|
+
cd dev-helper
|
|
10
|
+
python agent.py
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## What You Get
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
dev-helper/
|
|
17
|
+
├── agent.py # Meta-agent with 7 tools
|
|
18
|
+
├── prompts/
|
|
19
|
+
│ ├── metagent.md # Main system prompt
|
|
20
|
+
│ ├── answer_prompt.md # Answer generation rules
|
|
21
|
+
│ ├── docs_retrieve_prompt.md # Doc extraction prompt
|
|
22
|
+
│ └── think_prompt.md # Reflection strategy
|
|
23
|
+
├── .env # API keys
|
|
24
|
+
├── .co/
|
|
25
|
+
│ └── docs/ # ConnectOnion documentation
|
|
26
|
+
└── README.md # Project docs
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Tools Included
|
|
30
|
+
|
|
31
|
+
| Tool | Description |
|
|
32
|
+
|------|-------------|
|
|
33
|
+
| `answer_connectonion_question(question)` | Search docs and answer ConnectOnion questions |
|
|
34
|
+
| `think(context)` | Self-reflection on current progress |
|
|
35
|
+
| `add_todo(task)` | Add task to todo.md |
|
|
36
|
+
| `delete_todo(task)` | Remove task from todo.md |
|
|
37
|
+
| `list_todos()` | View current todo list |
|
|
38
|
+
| `run_shell(command, timeout, cwd)` | Execute shell commands |
|
|
39
|
+
|
|
40
|
+
## Example Usage
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
# Ask about ConnectOnion
|
|
44
|
+
result = agent.input("How do I add tools to an agent?")
|
|
45
|
+
|
|
46
|
+
# Get project planning help
|
|
47
|
+
result = agent.input("Create a todo list for building an email automation agent")
|
|
48
|
+
|
|
49
|
+
# Run shell commands
|
|
50
|
+
result = agent.input("Run 'pip list' to show installed packages")
|
|
51
|
+
|
|
52
|
+
# Reflect on progress
|
|
53
|
+
result = agent.input("Think about what we've accomplished so far")
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Interactive mode:
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
You: How do events work in ConnectOnion?
|
|
60
|
+
Agent: [Searches embedded documentation]
|
|
61
|
+
Events are lifecycle hooks that trigger at specific points...
|
|
62
|
+
|
|
63
|
+
You: Add a todo to implement the search feature
|
|
64
|
+
Agent: Added "Implement the search feature" to todo.md
|
|
65
|
+
|
|
66
|
+
You: Run pytest to check our tests
|
|
67
|
+
Agent: [Executes: pytest]
|
|
68
|
+
All tests passed!
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Use Cases
|
|
72
|
+
|
|
73
|
+
- Learning ConnectOnion framework
|
|
74
|
+
- Development assistance
|
|
75
|
+
- Project planning with todos
|
|
76
|
+
- Running shell commands
|
|
77
|
+
- Code generation guidance
|
|
78
|
+
- Architecture questions
|
|
79
|
+
|
|
80
|
+
## Dependencies
|
|
81
|
+
|
|
82
|
+
- `connectonion`
|
|
83
|
+
- `python-dotenv`
|
|
84
|
+
|
|
85
|
+
## How It Works
|
|
86
|
+
|
|
87
|
+
### Documentation Search
|
|
88
|
+
|
|
89
|
+
The agent searches `.co/docs/connectonion.md` to answer framework questions:
|
|
90
|
+
|
|
91
|
+
1. Extracts relevant sections from docs
|
|
92
|
+
2. Uses LLM to formulate answer
|
|
93
|
+
3. Returns comprehensive response
|
|
94
|
+
|
|
95
|
+
### Todo Management
|
|
96
|
+
|
|
97
|
+
Tasks are stored in `todo.md`:
|
|
98
|
+
|
|
99
|
+
```markdown
|
|
100
|
+
# Todo
|
|
101
|
+
|
|
102
|
+
- [ ] Implement search feature
|
|
103
|
+
- [ ] Add unit tests
|
|
104
|
+
- [x] Setup project structure
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Shell Execution
|
|
108
|
+
|
|
109
|
+
Cross-platform shell commands:
|
|
110
|
+
- macOS/Linux: Uses bash
|
|
111
|
+
- Windows: Uses PowerShell
|
|
112
|
+
|
|
113
|
+
## Customization
|
|
114
|
+
|
|
115
|
+
### Add Project-Specific Knowledge
|
|
116
|
+
|
|
117
|
+
Add documentation to `.co/docs/` folder:
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
.co/docs/
|
|
121
|
+
├── connectonion.md # Framework docs
|
|
122
|
+
├── project-guide.md # Your project docs
|
|
123
|
+
└── api-reference.md # Your API docs
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Modify System Prompts
|
|
127
|
+
|
|
128
|
+
Edit files in `prompts/` folder to customize behavior:
|
|
129
|
+
|
|
130
|
+
- `metagent.md` - Main personality and capabilities
|
|
131
|
+
- `answer_prompt.md` - How to answer questions
|
|
132
|
+
- `think_prompt.md` - Reflection strategy
|
|
133
|
+
|
|
134
|
+
### Add Custom Tools
|
|
135
|
+
|
|
136
|
+
```python
|
|
137
|
+
def deploy(environment: str = "staging") -> str:
|
|
138
|
+
"""Deploy the application."""
|
|
139
|
+
# Your deployment logic
|
|
140
|
+
return f"Deployed to {environment}"
|
|
141
|
+
|
|
142
|
+
agent = Agent(
|
|
143
|
+
"meta-agent",
|
|
144
|
+
tools=[..., deploy]
|
|
145
|
+
)
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## Next Steps
|
|
149
|
+
|
|
150
|
+
- [Tools](../concepts/tools.md) - Add custom tools
|
|
151
|
+
- [Prompts](../concepts/prompts.md) - Customize agent behavior
|
|
152
|
+
- [XRay Debugging](../debug/xray.md) - Debug with @xray decorator
|