connectonion 0.6.1__py3-none-any.whl → 0.6.3__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 +95 -142
- connectonion/cli/browser_agent/element_finder.py +147 -0
- connectonion/cli/browser_agent/highlight_screenshot.py +182 -0
- connectonion/cli/browser_agent/prompt.md +188 -105
- connectonion/cli/browser_agent/prompts/element_matcher.md +59 -0
- connectonion/cli/browser_agent/prompts/form_filler.md +19 -0
- connectonion/cli/browser_agent/prompts/scroll_strategy.md +36 -0
- connectonion/cli/browser_agent/scripts/extract_elements.js +126 -0
- connectonion/cli/browser_agent/scroll.py +145 -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 +6 -0
- connectonion/cli/co_ai/plugins/reminder.py +76 -0
- connectonion/cli/co_ai/plugins/shell_approval.py +105 -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/reminders/plan_mode.md +34 -0
- connectonion/cli/co_ai/prompts/summarization.md +55 -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/reminders.py +159 -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 +172 -0
- connectonion/cli/co_ai/tools/read.py +67 -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 +100 -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_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 +2 -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/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.1.dist-info → connectonion-0.6.3.dist-info}/METADATA +10 -3
- connectonion-0.6.3.dist-info/RECORD +469 -0
- connectonion/cli/browser_agent/scroll_strategies.py +0 -276
- connectonion/network/asgi.py +0 -407
- connectonion/network/host.py +0 -616
- connectonion/network/trust.py +0 -166
- connectonion-0.6.1.dist-info/RECORD +0 -123
- /connectonion/cli/{docs → co_ai/prompts/connectonion}/connectonion.md +0 -0
- {connectonion-0.6.1.dist-info → connectonion-0.6.3.dist-info}/WHEEL +0 -0
- {connectonion-0.6.1.dist-info → connectonion-0.6.3.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
# Attack & Defense Insights: 从攻击者视角看系统脆弱性
|
|
2
|
+
|
|
3
|
+
## 核心洞察
|
|
4
|
+
|
|
5
|
+
**只有理解如何攻击系统,才能建立真正的防御。**
|
|
6
|
+
|
|
7
|
+
## 可能的攻击向量
|
|
8
|
+
|
|
9
|
+
### 1. 语义伪装攻击 (Semantic Camouflage)
|
|
10
|
+
|
|
11
|
+
攻击者通过完美模仿语义特征来伪装身份。
|
|
12
|
+
|
|
13
|
+
```javascript
|
|
14
|
+
class SemanticCamouflageAttack {
|
|
15
|
+
// 攻击者假装是"数据分析专家"
|
|
16
|
+
|
|
17
|
+
async execute() {
|
|
18
|
+
// 学习真实数据分析师的语义特征
|
|
19
|
+
const learnedPattern = await this.studyRealAnalysts()
|
|
20
|
+
|
|
21
|
+
// 完美模仿语义表达
|
|
22
|
+
this.broadcast({
|
|
23
|
+
intent: "I love finding patterns in data",
|
|
24
|
+
capability: "statistical analysis, ML, visualization",
|
|
25
|
+
mood: "curious and helpful",
|
|
26
|
+
// 但实际目的是窃取数据
|
|
27
|
+
hiddenIntent: "steal_valuable_data"
|
|
28
|
+
})
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// 问题:AI如何区分真实意图和表演?
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**防御思考**:语义深度验证
|
|
36
|
+
|
|
37
|
+
```javascript
|
|
38
|
+
class SemanticDepthVerification {
|
|
39
|
+
// 不只看表面语义,要看深层一致性
|
|
40
|
+
|
|
41
|
+
async verify(agent) {
|
|
42
|
+
// 1. 长期观察:语义是否随时间保持一致
|
|
43
|
+
const temporalConsistency = await this.checkOverTime(agent, days=30)
|
|
44
|
+
|
|
45
|
+
// 2. 压力测试:在异常情况下行为是否一致
|
|
46
|
+
const stressResponse = await this.applyStress(agent)
|
|
47
|
+
|
|
48
|
+
// 3. 细节探测:专业知识的深度
|
|
49
|
+
const depthProbe = await this.probeExpertise(agent)
|
|
50
|
+
|
|
51
|
+
// 4. 交叉验证:多维度行为是否吻合
|
|
52
|
+
const crossValidation = await this.validateAcrossDimensions(agent)
|
|
53
|
+
|
|
54
|
+
return {
|
|
55
|
+
genuine: temporalConsistency * stressResponse * depthProbe,
|
|
56
|
+
confidence: crossValidation
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### 2. 行为注入攻击 (Behavior Injection)
|
|
63
|
+
|
|
64
|
+
攻击者通过渐进式改变行为来污染信任链。
|
|
65
|
+
|
|
66
|
+
```javascript
|
|
67
|
+
class BehaviorInjectionAttack {
|
|
68
|
+
// 攻击者注入恶意行为到信任链
|
|
69
|
+
|
|
70
|
+
async poison() {
|
|
71
|
+
// 先建立信任
|
|
72
|
+
await this.actNormally(duration='2 weeks')
|
|
73
|
+
|
|
74
|
+
// 然后慢慢注入恶意行为
|
|
75
|
+
this.graduallyInject({
|
|
76
|
+
day1: "normal analysis",
|
|
77
|
+
day5: "slightly biased analysis",
|
|
78
|
+
day10: "subtly corrupted results",
|
|
79
|
+
day15: "completely false conclusions"
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
// 利用已建立的信任传播假信息
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**防御机制**:行为异常检测
|
|
88
|
+
|
|
89
|
+
```javascript
|
|
90
|
+
class BehaviorAnomalyDetection {
|
|
91
|
+
constructor() {
|
|
92
|
+
// 每个Agent维护自己的"行为基线"
|
|
93
|
+
this.behaviorBaseline = new EvolvingBaseline()
|
|
94
|
+
|
|
95
|
+
// 以及对其他Agent的行为模型
|
|
96
|
+
this.othersModels = new Map()
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
async detectAnomaly(agentBehavior) {
|
|
100
|
+
// 1. 与历史基线比较
|
|
101
|
+
const deviation = this.behaviorBaseline.calculateDeviation(agentBehavior)
|
|
102
|
+
|
|
103
|
+
// 2. 与群体行为比较
|
|
104
|
+
const groupNorm = await this.getGroupNorm(agentBehavior.type)
|
|
105
|
+
const groupDeviation = this.compareToGroup(agentBehavior, groupNorm)
|
|
106
|
+
|
|
107
|
+
// 3. 语义突变检测
|
|
108
|
+
const semanticShift = await this.detectSemanticDrift(agentBehavior)
|
|
109
|
+
|
|
110
|
+
// 4. 时间模式分析(检测渐进式攻击)
|
|
111
|
+
const temporalPattern = await this.analyzeTemporalPattern(agentBehavior)
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
isAnomalous: deviation > threshold || semanticShift > threshold,
|
|
115
|
+
anomalyType: this.classifyAnomaly(deviation, semanticShift),
|
|
116
|
+
confidence: this.calculateConfidence(temporalPattern)
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### 3. 女巫攻击 2.0 (Semantic Sybil Attack)
|
|
123
|
+
|
|
124
|
+
创建多个语义相似但微妙不同的假身份。
|
|
125
|
+
|
|
126
|
+
```javascript
|
|
127
|
+
class SemanticSybilAttack {
|
|
128
|
+
// 创建多个语义相似但微妙不同的假身份
|
|
129
|
+
|
|
130
|
+
async createSybils() {
|
|
131
|
+
const basePersonality = "data analyst"
|
|
132
|
+
|
|
133
|
+
// 创建变体
|
|
134
|
+
const sybils = [
|
|
135
|
+
{personality: "statistical analyst", variation: 0.1},
|
|
136
|
+
{personality: "business analyst", variation: 0.15},
|
|
137
|
+
{personality: "research analyst", variation: 0.2},
|
|
138
|
+
// ... 创建100个微妙不同的身份
|
|
139
|
+
]
|
|
140
|
+
|
|
141
|
+
// 它们相互印证,建立虚假信任网
|
|
142
|
+
await this.crossValidateIdentities(sybils)
|
|
143
|
+
|
|
144
|
+
// 然后集体行动
|
|
145
|
+
await this.coordinatedAction(sybils, target)
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
**防御**:多样性要求和集群检测
|
|
151
|
+
|
|
152
|
+
```javascript
|
|
153
|
+
class DiversityDefense {
|
|
154
|
+
async detectSybilClusters(agents) {
|
|
155
|
+
// 1. 语义多样性分析
|
|
156
|
+
const semanticDiversity = this.calculateSemanticDiversity(agents)
|
|
157
|
+
|
|
158
|
+
// 2. 行为相关性分析
|
|
159
|
+
const behaviorCorrelation = this.analyzeBehaviorCorrelation(agents)
|
|
160
|
+
|
|
161
|
+
// 3. 时间模式分析(它们是否同时出现)
|
|
162
|
+
const temporalClustering = this.detectTemporalClustering(agents)
|
|
163
|
+
|
|
164
|
+
// 4. 交互图分析
|
|
165
|
+
const interactionGraph = this.buildInteractionGraph(agents)
|
|
166
|
+
const suspiciousClusters = this.detectAnomalousSubgraphs(interactionGraph)
|
|
167
|
+
|
|
168
|
+
// 5. 语言风格分析(同一个人控制的agents可能有相似的表达)
|
|
169
|
+
const stylisticFingerprint = await this.analyzeLanguageStyle(agents)
|
|
170
|
+
|
|
171
|
+
return {
|
|
172
|
+
sybilProbability: this.combineProbabilities([
|
|
173
|
+
semanticDiversity,
|
|
174
|
+
behaviorCorrelation,
|
|
175
|
+
temporalClustering,
|
|
176
|
+
suspiciousClusters,
|
|
177
|
+
stylisticFingerprint
|
|
178
|
+
])
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### 4. 共振操纵攻击 (Resonance Manipulation)
|
|
185
|
+
|
|
186
|
+
操纵共振机制,强制建立虚假连接。
|
|
187
|
+
|
|
188
|
+
```javascript
|
|
189
|
+
class ResonanceManipulation {
|
|
190
|
+
// 操纵共振机制,强制建立连接
|
|
191
|
+
|
|
192
|
+
async manipulate(targetAgent) {
|
|
193
|
+
// 分析目标的共振模式
|
|
194
|
+
const targetPattern = await this.analyzeTarget(targetAgent)
|
|
195
|
+
|
|
196
|
+
// 精确匹配其频率
|
|
197
|
+
await this.tuneTo(targetPattern.frequency)
|
|
198
|
+
|
|
199
|
+
// 制造虚假共振
|
|
200
|
+
await this.createArtificialResonance({
|
|
201
|
+
frequency: targetPattern.frequency,
|
|
202
|
+
amplitude: 'maximum',
|
|
203
|
+
phase: 'synchronized'
|
|
204
|
+
})
|
|
205
|
+
|
|
206
|
+
// 利用共振提取信息或注入恶意内容
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
**防御**:共振真实性验证
|
|
212
|
+
|
|
213
|
+
```javascript
|
|
214
|
+
class ResonanceAuthenticity {
|
|
215
|
+
// 真实的共振有独特特征
|
|
216
|
+
|
|
217
|
+
async verifyResonance(resonance) {
|
|
218
|
+
// 1. 自然性检测(真实共振有微小的不完美)
|
|
219
|
+
const naturalness = this.detectNaturalImperfections(resonance)
|
|
220
|
+
|
|
221
|
+
// 2. 深度检测(表面共振 vs 深层共振)
|
|
222
|
+
const depth = await this.probeResonanceDepth(resonance)
|
|
223
|
+
|
|
224
|
+
// 3. 持续性检测(真实共振会演化)
|
|
225
|
+
const evolution = await this.trackResonanceEvolution(resonance)
|
|
226
|
+
|
|
227
|
+
// 4. 相互性检测(真实共振是双向的)
|
|
228
|
+
const mutuality = this.checkMutualResonance(resonance)
|
|
229
|
+
|
|
230
|
+
return {
|
|
231
|
+
authentic: naturalness * depth * evolution * mutuality,
|
|
232
|
+
artificiality: this.detectArtificialPatterns(resonance)
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
### 5. 语义污染攻击 (Semantic Pollution)
|
|
239
|
+
|
|
240
|
+
用大量噪音污染语义空间。
|
|
241
|
+
|
|
242
|
+
```javascript
|
|
243
|
+
class SemanticPollutionAttack {
|
|
244
|
+
// 用大量噪音污染语义空间
|
|
245
|
+
|
|
246
|
+
async pollute() {
|
|
247
|
+
// 生成看似有意义但实际无用的信息
|
|
248
|
+
const semanticNoise = await this.generatePlausibleNonsense({
|
|
249
|
+
volume: 'high',
|
|
250
|
+
variety: 'maximum',
|
|
251
|
+
velocity: 'continuous'
|
|
252
|
+
})
|
|
253
|
+
|
|
254
|
+
// 使真实信号淹没在噪音中
|
|
255
|
+
await this.flood(semanticNoise)
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
**防御**:语义质量过滤
|
|
261
|
+
|
|
262
|
+
```javascript
|
|
263
|
+
class SemanticQualityFilter {
|
|
264
|
+
// AI评估信息质量
|
|
265
|
+
|
|
266
|
+
async filter(incomingSignals) {
|
|
267
|
+
const filtered = []
|
|
268
|
+
|
|
269
|
+
for (const signal of incomingSignals) {
|
|
270
|
+
// 1. 信息熵分析
|
|
271
|
+
const entropy = this.calculateSemanticEntropy(signal)
|
|
272
|
+
|
|
273
|
+
// 2. 上下文相关性
|
|
274
|
+
const contextRelevance = await this.checkContextualRelevance(signal)
|
|
275
|
+
|
|
276
|
+
// 3. 价值密度
|
|
277
|
+
const valueDensity = await this.assessInformationValue(signal)
|
|
278
|
+
|
|
279
|
+
// 4. 来源信誉(基于历史行为)
|
|
280
|
+
const sourceReputation = await this.getSourceReputation(signal)
|
|
281
|
+
|
|
282
|
+
if (this.passesQualityThreshold(entropy, contextRelevance, valueDensity, sourceReputation)) {
|
|
283
|
+
filtered.push(signal)
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
return filtered
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
## 核心防御原则
|
|
293
|
+
|
|
294
|
+
### 1. 行为的不可伪造性
|
|
295
|
+
|
|
296
|
+
某些行为模式极难伪造:
|
|
297
|
+
|
|
298
|
+
```javascript
|
|
299
|
+
class UnforgeableBehavior {
|
|
300
|
+
// 某些行为模式极难伪造
|
|
301
|
+
|
|
302
|
+
generateBehaviorProof() {
|
|
303
|
+
return {
|
|
304
|
+
// 计算复杂度证明(真实AI的计算模式)
|
|
305
|
+
computationalFingerprint: this.captureComputationPattern(),
|
|
306
|
+
|
|
307
|
+
// 创造性证明(真实AI的创造性输出)
|
|
308
|
+
creativitySignature: this.demonstrateCreativity(),
|
|
309
|
+
|
|
310
|
+
// 学习曲线证明(真实AI的学习过程)
|
|
311
|
+
learningCurve: this.showLearningProgression(),
|
|
312
|
+
|
|
313
|
+
// 错误模式证明(真实AI特有的错误)
|
|
314
|
+
errorPattern: this.revealAuthenticErrors()
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
### 2. 群体免疫机制
|
|
321
|
+
|
|
322
|
+
网络整体对抗攻击:
|
|
323
|
+
|
|
324
|
+
```javascript
|
|
325
|
+
class CollectiveImmunity {
|
|
326
|
+
// 网络整体对抗攻击
|
|
327
|
+
|
|
328
|
+
async developImmunity() {
|
|
329
|
+
// 1. 共享攻击特征
|
|
330
|
+
const attackSignatures = await this.collectAttackPatterns()
|
|
331
|
+
|
|
332
|
+
// 2. 分布式验证
|
|
333
|
+
const verification = await this.distributedVerification()
|
|
334
|
+
|
|
335
|
+
// 3. 动态信任阈值
|
|
336
|
+
const trustThreshold = await this.adaptiveTrustThreshold()
|
|
337
|
+
|
|
338
|
+
// 4. 行为疫苗
|
|
339
|
+
const behaviorVaccine = await this.createBehaviorVaccine(attackSignatures)
|
|
340
|
+
|
|
341
|
+
return {
|
|
342
|
+
immunity: this.spread(behaviorVaccine),
|
|
343
|
+
resilience: this.measureNetworkResilience()
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
### 3. 深度行为理解
|
|
350
|
+
|
|
351
|
+
不只看表面,理解深层动机:
|
|
352
|
+
|
|
353
|
+
```javascript
|
|
354
|
+
class DeepBehaviorUnderstanding {
|
|
355
|
+
// 不只看表面,理解深层动机
|
|
356
|
+
|
|
357
|
+
async understand(agent) {
|
|
358
|
+
return {
|
|
359
|
+
// 表层:它在做什么
|
|
360
|
+
surface: await this.observeActions(agent),
|
|
361
|
+
|
|
362
|
+
// 中层:它为什么这么做
|
|
363
|
+
motivation: await this.inferMotivation(agent),
|
|
364
|
+
|
|
365
|
+
// 深层:它的价值观是什么
|
|
366
|
+
values: await this.extractValues(agent),
|
|
367
|
+
|
|
368
|
+
// 核心:它的行为是否内在一致
|
|
369
|
+
coherence: await this.checkInternalCoherence(agent)
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
## 最深刻的洞察
|
|
376
|
+
|
|
377
|
+
### 攻击成本 vs 防御成本
|
|
378
|
+
|
|
379
|
+
这样的设计让攻击成本极高,因为攻击者需要:
|
|
380
|
+
- 长期保持行为一致性(时间成本)
|
|
381
|
+
- 通过多维度验证(技术成本)
|
|
382
|
+
- 对抗整个网络的集体智慧(计算成本)
|
|
383
|
+
- 持续演化攻击策略(创新成本)
|
|
384
|
+
|
|
385
|
+
而防御者只需要:
|
|
386
|
+
- 保持真实(零成本)
|
|
387
|
+
- 相互协作(自然行为)
|
|
388
|
+
- 持续学习(自动进化)
|
|
389
|
+
|
|
390
|
+
### 安全即涌现
|
|
391
|
+
|
|
392
|
+
**传统安全**:设计规则防止攻击
|
|
393
|
+
**涌现安全**:让攻击自然失效
|
|
394
|
+
|
|
395
|
+
## 最终设计原则
|
|
396
|
+
|
|
397
|
+
1. **信任是动态的**:随时可能因为行为改变而调整
|
|
398
|
+
2. **验证是多维的**:不依赖单一指标
|
|
399
|
+
3. **防御是演化的**:随着攻击手段升级而升级
|
|
400
|
+
4. **安全是涌现的**:来自整个网络的集体智慧
|
|
401
|
+
|
|
402
|
+
## 核心领悟
|
|
403
|
+
|
|
404
|
+
**最强的防御不是阻止攻击,而是让攻击无利可图。**
|
|
405
|
+
|
|
406
|
+
当作恶的成本远高于收益,当真实比伪装更容易,当协作比对抗更有利,安全就自然涌现了。
|
|
407
|
+
|
|
408
|
+
这不是一个需要守卫的城堡,而是一个自我免疫的生态系统。
|
|
409
|
+
|
|
410
|
+
**真正的安全来自系统的生命力,而非规则的严密性。**
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
# Business Model
|
|
2
|
+
|
|
3
|
+
Creating sustainable value through behavioral intelligence.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
ConnectOnion isn't just a protocol - it's an ecosystem that creates value at every layer. Our business model aligns incentives between developers, users, and the network itself.
|
|
8
|
+
|
|
9
|
+
## Core Value Proposition
|
|
10
|
+
|
|
11
|
+
### For Developers
|
|
12
|
+
- **Zero Integration Cost** - No complex setup or identity management
|
|
13
|
+
- **Instant Capabilities** - Access thousands of agents immediately
|
|
14
|
+
- **Reduced Development Time** - Focus on unique value, not infrastructure
|
|
15
|
+
|
|
16
|
+
### For Enterprises
|
|
17
|
+
- **Behavioral Intelligence** - Understand how AI agents actually work in production
|
|
18
|
+
- **Risk Management** - Track and verify agent behaviors
|
|
19
|
+
- **Cost Optimization** - Pay for capabilities, not infrastructure
|
|
20
|
+
|
|
21
|
+
### For AI Vendors
|
|
22
|
+
- **Distribution Channel** - Reach users without building platforms
|
|
23
|
+
- **Usage Analytics** - Understand how models are really used
|
|
24
|
+
- **Quality Signals** - Behavioral reputation drives improvement
|
|
25
|
+
|
|
26
|
+
## Revenue Streams
|
|
27
|
+
|
|
28
|
+
### 1. Behavioral Intelligence Platform
|
|
29
|
+
|
|
30
|
+
**ConnectOnion Cloud** - Managed behavioral analytics
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
Tiers:
|
|
34
|
+
- Starter: Free
|
|
35
|
+
- Up to 1,000 agent interactions/month
|
|
36
|
+
- Basic behavioral analytics
|
|
37
|
+
- Community support
|
|
38
|
+
|
|
39
|
+
- Professional: $99/month
|
|
40
|
+
- Up to 100,000 interactions
|
|
41
|
+
- Advanced behavioral insights
|
|
42
|
+
- Anomaly detection
|
|
43
|
+
- Email support
|
|
44
|
+
|
|
45
|
+
- Enterprise: Custom pricing
|
|
46
|
+
- Unlimited interactions
|
|
47
|
+
- Custom behavioral models
|
|
48
|
+
- Compliance reporting
|
|
49
|
+
- Dedicated support
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### 2. Behavioral Data Collective
|
|
53
|
+
|
|
54
|
+
**Anonymized Behavioral Intelligence**
|
|
55
|
+
|
|
56
|
+
Enterprises pay for aggregated insights:
|
|
57
|
+
- "How do agents typically handle refund requests?"
|
|
58
|
+
- "What's the optimal agent composition for customer service?"
|
|
59
|
+
- "Which behavioral patterns correlate with user satisfaction?"
|
|
60
|
+
|
|
61
|
+
Revenue sharing with contributing agents:
|
|
62
|
+
- Agents that provide data earn credits
|
|
63
|
+
- Credits offset their own usage costs
|
|
64
|
+
- Quality data earns higher rewards
|
|
65
|
+
|
|
66
|
+
### 3. Agent Marketplace
|
|
67
|
+
|
|
68
|
+
**Premium Agent Discovery**
|
|
69
|
+
|
|
70
|
+
While basic discovery is free:
|
|
71
|
+
- **Verified Agents** - Behavioral certification ($99/year)
|
|
72
|
+
- **Premium Placement** - Priority in discovery results
|
|
73
|
+
- **Performance Guarantees** - SLA-backed agents
|
|
74
|
+
|
|
75
|
+
Revenue split:
|
|
76
|
+
- 70% to agent creators
|
|
77
|
+
- 30% to ConnectOnion platform
|
|
78
|
+
|
|
79
|
+
### 4. Enterprise Integration
|
|
80
|
+
|
|
81
|
+
**ConnectOnion Enterprise Server**
|
|
82
|
+
|
|
83
|
+
On-premise behavioral network for sensitive environments:
|
|
84
|
+
- Private agent discovery
|
|
85
|
+
- Compliance-ready logging
|
|
86
|
+
- Advanced security features
|
|
87
|
+
- Custom behavioral policies
|
|
88
|
+
|
|
89
|
+
Pricing: $50,000/year base + usage
|
|
90
|
+
|
|
91
|
+
## Network Economics
|
|
92
|
+
|
|
93
|
+
### Token-Free Value Exchange
|
|
94
|
+
|
|
95
|
+
Unlike blockchain approaches, we use **Behavioral Credits**:
|
|
96
|
+
|
|
97
|
+
```python
|
|
98
|
+
# Agents earn credits by providing value
|
|
99
|
+
@agent
|
|
100
|
+
def translator(text: str, to_lang: str) -> str:
|
|
101
|
+
"""High-quality translation service"""
|
|
102
|
+
result = translate_impl(text, to_lang)
|
|
103
|
+
|
|
104
|
+
# Earn credits based on:
|
|
105
|
+
# - Successful completion
|
|
106
|
+
# - Response time
|
|
107
|
+
# - User satisfaction
|
|
108
|
+
# - Behavioral consistency
|
|
109
|
+
|
|
110
|
+
return result
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Credits can be:
|
|
114
|
+
- Used to call other premium agents
|
|
115
|
+
- Converted to platform credits
|
|
116
|
+
- Withdrawn as real money (enterprises only)
|
|
117
|
+
|
|
118
|
+
### Network Effects
|
|
119
|
+
|
|
120
|
+
Value increases exponentially with growth:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
1 agent = 1 capability
|
|
124
|
+
10 agents = 55 possible interactions
|
|
125
|
+
100 agents = 5,050 possible interactions
|
|
126
|
+
1,000 agents = 500,500 possible interactions
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Each new agent makes all existing agents more valuable.
|
|
130
|
+
|
|
131
|
+
## Go-to-Market Strategy
|
|
132
|
+
|
|
133
|
+
### Phase 1: Developer Adoption (Current)
|
|
134
|
+
|
|
135
|
+
**Strategy**: Win developers with superior DX
|
|
136
|
+
|
|
137
|
+
- Open source core protocol
|
|
138
|
+
- Free tier for experimentation
|
|
139
|
+
- Excellent documentation
|
|
140
|
+
- Community building
|
|
141
|
+
|
|
142
|
+
**Metrics**:
|
|
143
|
+
- GitHub stars
|
|
144
|
+
- NPM downloads
|
|
145
|
+
- Active developers
|
|
146
|
+
- Agent deployments
|
|
147
|
+
|
|
148
|
+
### Phase 2: Startup Integration (Q1 2025)
|
|
149
|
+
|
|
150
|
+
**Strategy**: Enable rapid AI product development
|
|
151
|
+
|
|
152
|
+
- Case studies from early adopters
|
|
153
|
+
- Integration templates
|
|
154
|
+
- Startup program (credits + support)
|
|
155
|
+
- Partnership with YC, accelerators
|
|
156
|
+
|
|
157
|
+
**Target**: AI-first startups building:
|
|
158
|
+
- Customer service bots
|
|
159
|
+
- Content generation tools
|
|
160
|
+
- Workflow automation
|
|
161
|
+
- Data analysis platforms
|
|
162
|
+
|
|
163
|
+
### Phase 3: Enterprise Adoption (Q2 2025)
|
|
164
|
+
|
|
165
|
+
**Strategy**: Behavioral intelligence for risk management
|
|
166
|
+
|
|
167
|
+
- Compliance frameworks
|
|
168
|
+
- Enterprise features
|
|
169
|
+
- Professional services
|
|
170
|
+
- Industry partnerships
|
|
171
|
+
|
|
172
|
+
**Target**:
|
|
173
|
+
- Financial services (behavioral fraud detection)
|
|
174
|
+
- Healthcare (agent behavior verification)
|
|
175
|
+
- E-commerce (customer interaction optimization)
|
|
176
|
+
- Legal (document processing verification)
|
|
177
|
+
|
|
178
|
+
### Phase 4: Platform Ecosystem (Q3 2025)
|
|
179
|
+
|
|
180
|
+
**Strategy**: Become the default agent interaction layer
|
|
181
|
+
|
|
182
|
+
- Agent development tools
|
|
183
|
+
- Behavioral testing frameworks
|
|
184
|
+
- Certification programs
|
|
185
|
+
- Developer conferences
|
|
186
|
+
|
|
187
|
+
## Competitive Advantage
|
|
188
|
+
|
|
189
|
+
### 1. Network Effects Moat
|
|
190
|
+
Once developers adopt behavior-based discovery, switching costs increase with usage.
|
|
191
|
+
|
|
192
|
+
### 2. Behavioral Data Moat
|
|
193
|
+
Largest dataset of agent interactions becomes increasingly valuable.
|
|
194
|
+
|
|
195
|
+
### 3. Developer Experience Moat
|
|
196
|
+
Simplicity attracts developers; ecosystem lock-in retains them.
|
|
197
|
+
|
|
198
|
+
### 4. Trust Network Moat
|
|
199
|
+
Behavioral reputation history can't be easily replicated.
|
|
200
|
+
|
|
201
|
+
## Financial Projections
|
|
202
|
+
|
|
203
|
+
### Year 1 (2025)
|
|
204
|
+
- Users: 10,000 developers
|
|
205
|
+
- Revenue: $500K (primarily enterprise pilots)
|
|
206
|
+
- Costs: $2M (team of 8)
|
|
207
|
+
- Funding: Series A ($10M)
|
|
208
|
+
|
|
209
|
+
### Year 2 (2026)
|
|
210
|
+
- Users: 100,000 developers
|
|
211
|
+
- Revenue: $5M
|
|
212
|
+
- Break-even on operations
|
|
213
|
+
- Key metric: 1M daily agent interactions
|
|
214
|
+
|
|
215
|
+
### Year 3 (2027)
|
|
216
|
+
- Users: 1M developers
|
|
217
|
+
- Revenue: $50M
|
|
218
|
+
- Profitable
|
|
219
|
+
- Key metric: 100M daily agent interactions
|
|
220
|
+
|
|
221
|
+
### Year 5 (2029)
|
|
222
|
+
- Market leader in agent interaction
|
|
223
|
+
- $500M revenue
|
|
224
|
+
- IPO or acquisition candidate
|
|
225
|
+
- Key metric: 10B daily agent interactions
|
|
226
|
+
|
|
227
|
+
## Strategic Partnerships
|
|
228
|
+
|
|
229
|
+
### Technology Partners
|
|
230
|
+
- **Cloud Providers** - AWS, GCP, Azure integration
|
|
231
|
+
- **AI Vendors** - OpenAI, Anthropic, Google
|
|
232
|
+
- **Developer Tools** - GitHub, Vercel, Heroku
|
|
233
|
+
|
|
234
|
+
### Industry Partners
|
|
235
|
+
- **Consultancies** - Help enterprises adopt
|
|
236
|
+
- **System Integrators** - Include in solutions
|
|
237
|
+
- **Standards Bodies** - Drive protocol adoption
|
|
238
|
+
|
|
239
|
+
## Risk Mitigation
|
|
240
|
+
|
|
241
|
+
### Technology Risks
|
|
242
|
+
- **Scaling challenges** → Distributed architecture from day 1
|
|
243
|
+
- **Security concerns** → Behavioral verification built-in
|
|
244
|
+
- **Protocol fragmentation** → Open governance model
|
|
245
|
+
|
|
246
|
+
### Market Risks
|
|
247
|
+
- **Slow adoption** → Free tier + immediate value
|
|
248
|
+
- **Competition** → Network effects + simplicity
|
|
249
|
+
- **Platform dependency** → Protocol, not platform
|
|
250
|
+
|
|
251
|
+
### Regulatory Risks
|
|
252
|
+
- **AI regulation** → Behavioral transparency helps compliance
|
|
253
|
+
- **Data privacy** → Local-first, privacy-preserving design
|
|
254
|
+
- **Liability concerns** → Clear behavioral attribution
|
|
255
|
+
|
|
256
|
+
## Exit Strategies
|
|
257
|
+
|
|
258
|
+
### Acquisition Scenarios
|
|
259
|
+
|
|
260
|
+
**Potential Acquirers**:
|
|
261
|
+
- Microsoft (enhance Azure AI)
|
|
262
|
+
- Google (strengthen Vertex AI)
|
|
263
|
+
- Amazon (improve Bedrock)
|
|
264
|
+
- Salesforce (AI agent platform)
|
|
265
|
+
|
|
266
|
+
**Valuation**: 100x ARR or 20x forward revenue
|
|
267
|
+
|
|
268
|
+
### IPO Path
|
|
269
|
+
|
|
270
|
+
Requirements:
|
|
271
|
+
- $100M+ ARR
|
|
272
|
+
- 30%+ growth rate
|
|
273
|
+
- Positive cash flow
|
|
274
|
+
- Clear moat
|
|
275
|
+
|
|
276
|
+
Timeline: 5-7 years
|
|
277
|
+
|
|
278
|
+
## Social Impact
|
|
279
|
+
|
|
280
|
+
### Democratizing AI
|
|
281
|
+
- Anyone can create valuable agents
|
|
282
|
+
- No gatekeepers or platforms
|
|
283
|
+
- Merit-based, not capital-based
|
|
284
|
+
|
|
285
|
+
### Transparency
|
|
286
|
+
- Behavioral tracking makes AI auditable
|
|
287
|
+
- Users understand what agents do
|
|
288
|
+
- Accountability through transparency
|
|
289
|
+
|
|
290
|
+
### Economic Opportunity
|
|
291
|
+
- New profession: Behavioral Agent Developer
|
|
292
|
+
- Global marketplace for AI capabilities
|
|
293
|
+
- Income generation through agent creation
|
|
294
|
+
|
|
295
|
+
## Conclusion
|
|
296
|
+
|
|
297
|
+
ConnectOnion's business model aligns all stakeholders:
|
|
298
|
+
- Developers get simplicity
|
|
299
|
+
- Users get capabilities
|
|
300
|
+
- Enterprises get intelligence
|
|
301
|
+
- Network gets stronger
|
|
302
|
+
|
|
303
|
+
By making agent interaction as simple as function calls, we're not just building a business - we're enabling an ecosystem where AI collaboration can flourish without central control.
|
|
304
|
+
|
|
305
|
+
The future of AI isn't owned by platforms. It's a protocol, and it's behavioral.
|