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,53 @@
|
|
|
1
|
+
# Roadmap Documentation Guide
|
|
2
|
+
|
|
3
|
+
## Document Categories
|
|
4
|
+
|
|
5
|
+
### 📌 Core Principles
|
|
6
|
+
- **[core-principles-unified.md](./core-principles-unified.md)** - The definitive principles guide (MAIN REFERENCE)
|
|
7
|
+
|
|
8
|
+
### 🧠 Conceptual Insights
|
|
9
|
+
- **[semantic-revolution.md](./semantic-revolution.md)** - From protocols to understanding
|
|
10
|
+
- **[the-semantic-insight.md](./the-semantic-insight.md)** - Why meaning matters more than form
|
|
11
|
+
- **[attack-defense-insights.md](./attack-defense-insights.md)** - Security through attacker's lens
|
|
12
|
+
|
|
13
|
+
### 💰 Economic Analysis
|
|
14
|
+
- **[economic-analysis.md](./economic-analysis.md)** - Detailed cost transformations
|
|
15
|
+
- **[mini-whitepaper.md](./mini-whitepaper.md)** - Cost-centric protocol analysis
|
|
16
|
+
|
|
17
|
+
### 🏗️ Implementation
|
|
18
|
+
- **[technical-architecture.md](./technical-architecture.md)** - How to build it
|
|
19
|
+
- **[migration-strategy.md](./migration-strategy.md)** - Moving from existing systems
|
|
20
|
+
// Removed: Function-as-Agent (deprecated in favor of Share & Find)
|
|
21
|
+
|
|
22
|
+
### 🛡️ Security
|
|
23
|
+
- **[threat-model.md](./threat-model.md)** - Multi-Agent Collaboration Threat Model
|
|
24
|
+
|
|
25
|
+
### 📊 Strategy
|
|
26
|
+
- **[business-model.md](./business-model.md)** - Revenue and growth strategy
|
|
27
|
+
- **[mcp-comparison-insights.md](./mcp-comparison-insights.md)** - Why we're different
|
|
28
|
+
|
|
29
|
+
### 📚 Historical Context
|
|
30
|
+
- **[discussion-journey.md](./discussion-journey.md)** - How these ideas evolved
|
|
31
|
+
|
|
32
|
+
## Deprecated/To Archive
|
|
33
|
+
|
|
34
|
+
These files have been consolidated into `core-principles-unified.md`:
|
|
35
|
+
- ~~principles.md~~ (merged)
|
|
36
|
+
- ~~core-principles-extracted.md~~ (merged)
|
|
37
|
+
- ~~simplicity-principles.md~~ (merged)
|
|
38
|
+
- ~~master-principles.md~~ (merged)
|
|
39
|
+
|
|
40
|
+
## Reading Order
|
|
41
|
+
|
|
42
|
+
1. Start with **[core-principles-unified.md](./core-principles-unified.md)**
|
|
43
|
+
2. Understand the paradigm shift in **[semantic-revolution.md](./semantic-revolution.md)**
|
|
44
|
+
3. Grasp the economics in **[mini-whitepaper.md](./mini-whitepaper.md)**
|
|
45
|
+
4. Explore implementation in **[technical-architecture.md](./technical-architecture.md)**
|
|
46
|
+
|
|
47
|
+
## Key Takeaways
|
|
48
|
+
|
|
49
|
+
- **Simplicity** is our core design constraint
|
|
50
|
+
- **Behavior** replaces identity
|
|
51
|
+
- **Understanding** replaces protocols
|
|
52
|
+
- **Natural selection** replaces central control
|
|
53
|
+
- **Cost reduction** from O(n²) to O(1) drives adoption
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Principle Documents Consolidation Plan
|
|
2
|
+
|
|
3
|
+
## Current Structure
|
|
4
|
+
|
|
5
|
+
### Documentation Principles
|
|
6
|
+
- `docs/principles.md` - How to write documentation (KEEP)
|
|
7
|
+
|
|
8
|
+
### Protocol Principles (TO CONSOLIDATE)
|
|
9
|
+
- `docs/roadmap/principles.md` - Core design principles
|
|
10
|
+
- `docs/roadmap/core-principles-extracted.md` - 15 extracted principles
|
|
11
|
+
- `docs/roadmap/simplicity-principles.md` - 15 simplicity principles
|
|
12
|
+
- `docs/roadmap/master-principles.md` - Attempt at consolidation
|
|
13
|
+
|
|
14
|
+
### Semantic & Economic Insights (KEEP AS SEPARATE TOPICS)
|
|
15
|
+
- `docs/roadmap/semantic-revolution.md` - Semantic understanding
|
|
16
|
+
- `docs/roadmap/the-semantic-insight.md` - Core semantic insight
|
|
17
|
+
- `docs/roadmap/economic-analysis.md` - Cost economics
|
|
18
|
+
- `docs/roadmap/mini-whitepaper.md` - Cost-centric analysis
|
|
19
|
+
|
|
20
|
+
### Technical Documents (KEEP)
|
|
21
|
+
- `docs/roadmap/technical-architecture.md` - Implementation details
|
|
22
|
+
- `docs/roadmap/migration-strategy.md` - Migration guide
|
|
23
|
+
- `docs/roadmap/business-model.md` - Business strategy
|
|
24
|
+
- `docs/roadmap/attack-defense-insights.md` - Security analysis
|
|
25
|
+
- `docs/roadmap/mcp-comparison-insights.md` - MCP comparison
|
|
26
|
+
- (removed) `docs/roadmap/function-as-agent.md` - superseded by Share & Find
|
|
27
|
+
|
|
28
|
+
### Journey Documents (KEEP)
|
|
29
|
+
- `docs/roadmap/discussion-journey.md` - Our discussion history
|
|
30
|
+
|
|
31
|
+
## Proposed New Structure
|
|
32
|
+
|
|
33
|
+
### 1. Core Principles Document (`docs/roadmap/core-principles.md`)
|
|
34
|
+
Consolidate the best of all principle documents into categories:
|
|
35
|
+
- Fundamental Laws (3-5 most important)
|
|
36
|
+
- Design Principles (8-10 key principles)
|
|
37
|
+
- Implementation Principles (5-8 practical guidelines)
|
|
38
|
+
- Meta-Principles (3-5 principles about principles)
|
|
39
|
+
|
|
40
|
+
### 2. Topic-Specific Documents
|
|
41
|
+
Keep these as deep dives into specific aspects:
|
|
42
|
+
- Semantic insights
|
|
43
|
+
- Economic analysis
|
|
44
|
+
- Security considerations
|
|
45
|
+
- Technical architecture
|
|
46
|
+
|
|
47
|
+
### 3. Reference Documents
|
|
48
|
+
- Mini white paper
|
|
49
|
+
- Migration strategy
|
|
50
|
+
- Business model
|
|
51
|
+
|
|
52
|
+
## Consolidation Strategy
|
|
53
|
+
|
|
54
|
+
1. **Identify Duplicates**: Many principles appear in multiple files with slight variations
|
|
55
|
+
2. **Choose Best Expression**: Pick the clearest, most insightful version
|
|
56
|
+
3. **Eliminate Redundancy**: Each principle appears once in the most appropriate section
|
|
57
|
+
4. **Maintain Coherence**: Ensure principles flow logically
|
|
58
|
+
5. **Preserve Insights**: Don't lose valuable nuances in consolidation
|
|
59
|
+
|
|
60
|
+
## Key Principles to Definitely Keep
|
|
61
|
+
|
|
62
|
+
From various documents:
|
|
63
|
+
1. Cost Conservation Law (成本守恒)
|
|
64
|
+
2. Behavior Over Identity (行为优于身份)
|
|
65
|
+
3. Function as Primitive (函数即基元)
|
|
66
|
+
4. Simplicity Enables Robustness (简单促进健壮)
|
|
67
|
+
5. Semantic Understanding Changes Everything (语义改变一切)
|
|
68
|
+
6. Work as Authentication (工作即认证)
|
|
69
|
+
7. Local Experience Trumps Global (局部胜全局)
|
|
70
|
+
8. Immunity Over Prevention (免疫优于预防)
|
|
71
|
+
9. Time Heals and Reveals (时间治愈并揭示)
|
|
72
|
+
10. Natural Selection Works (自然选择有效)
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
# Core Useful Principles from ConnectOnion Discussion
|
|
2
|
+
|
|
3
|
+
## 1. Cost Conservation Law
|
|
4
|
+
**成本守恒定律**
|
|
5
|
+
|
|
6
|
+
Costs in systems can only be transferred, never eliminated. Every "simplification" shifts cost somewhere else.
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
Traditional: Developer complexity → User configuration
|
|
10
|
+
ConnectOnion: Upfront design → Zero runtime config
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
**Insight**: Accept the cost where it creates least friction. We take complexity in protocol design so developers get simplicity.
|
|
14
|
+
|
|
15
|
+
## 2. Behavior Over Identity
|
|
16
|
+
**行为优于身份**
|
|
17
|
+
|
|
18
|
+
Trust emerges from consistent behavior patterns, not pre-assigned credentials.
|
|
19
|
+
|
|
20
|
+
```python
|
|
21
|
+
# Not: "I am trusted because I have certificate X"
|
|
22
|
+
# But: "I am trusted because I consistently deliver Y"
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**Application**: Every system should evaluate based on actions, not labels.
|
|
26
|
+
|
|
27
|
+
## 3. Function as Primitive
|
|
28
|
+
**函数即基元**
|
|
29
|
+
|
|
30
|
+
The simplest useful unit in computing is a function. Build everything from functions.
|
|
31
|
+
|
|
32
|
+
```python
|
|
33
|
+
# Everything is just:
|
|
34
|
+
input → function → output
|
|
35
|
+
|
|
36
|
+
# Even complex systems:
|
|
37
|
+
agent = function
|
|
38
|
+
network = function(function)
|
|
39
|
+
trust = function(behavior_history)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**Power**: Maximum composability with minimum concepts.
|
|
43
|
+
|
|
44
|
+
## 4. Local Experience Trumps Global Reputation
|
|
45
|
+
**局部经验胜过全局声誉**
|
|
46
|
+
|
|
47
|
+
Your direct experience matters more than what others say.
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
Trust hierarchy:
|
|
51
|
+
1. My experience with you (100% weight)
|
|
52
|
+
2. My friend's experience (30% weight)
|
|
53
|
+
3. Network reputation (10% weight)
|
|
54
|
+
4. Unknown (0% trust)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**Resilience**: Cannot be gamed by fake reviews or Sybil attacks.
|
|
58
|
+
|
|
59
|
+
## 5. Topology as Natural Defense
|
|
60
|
+
**拓扑即天然防御**
|
|
61
|
+
|
|
62
|
+
Physical/network topology limits create natural security boundaries.
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
Dunbar's number (~150) = Natural connection limit
|
|
66
|
+
Local network first = Natural boundary
|
|
67
|
+
Time delays = Natural rate limiting
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**Elegance**: Security through natural constraints, not artificial rules.
|
|
71
|
+
|
|
72
|
+
## 6. Progressive Enhancement
|
|
73
|
+
**渐进式增强**
|
|
74
|
+
|
|
75
|
+
Start where you are, enhance towards the ideal.
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
Day 1: Works on current internet
|
|
79
|
+
Day 100: Works better with peers
|
|
80
|
+
Day 1000: Optimal with full adoption
|
|
81
|
+
Always: Backwards compatible
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**Adoption**: No "flag day" migrations needed.
|
|
85
|
+
|
|
86
|
+
## 7. Semantic Understanding Changes Everything
|
|
87
|
+
**语义理解改变一切**
|
|
88
|
+
|
|
89
|
+
When protocols understand meaning, not just syntax, magic happens.
|
|
90
|
+
|
|
91
|
+
```python
|
|
92
|
+
# These find each other automatically:
|
|
93
|
+
"I need translation" → finds → "I translate text"
|
|
94
|
+
"Generate summary" → finds → "I summarize documents"
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
**Revolution**: Discovery without directories.
|
|
98
|
+
|
|
99
|
+
## 8. Simplicity at Interface, Complexity in Implementation
|
|
100
|
+
**接口简单,实现复杂**
|
|
101
|
+
|
|
102
|
+
Users see simplicity. Complexity exists but is hidden.
|
|
103
|
+
|
|
104
|
+
```python
|
|
105
|
+
# User sees:
|
|
106
|
+
agent = discover("translation")
|
|
107
|
+
result = agent("Hello")
|
|
108
|
+
|
|
109
|
+
# Hidden: Behavioral matching, trust calculation, routing...
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
**Success**: Complexity you don't see doesn't hurt you.
|
|
113
|
+
|
|
114
|
+
## 9. Time Heals and Reveals
|
|
115
|
+
**时间治愈并揭示**
|
|
116
|
+
|
|
117
|
+
Time naturally solves many security problems.
|
|
118
|
+
|
|
119
|
+
- New agents = naturally untrusted
|
|
120
|
+
- Consistent behavior + time = trust
|
|
121
|
+
- Bad actors + time = exposed
|
|
122
|
+
- No activity + time = forgotten
|
|
123
|
+
|
|
124
|
+
**Beauty**: No complex reputation algorithms needed.
|
|
125
|
+
|
|
126
|
+
## 10. Composition Over Configuration
|
|
127
|
+
**组合优于配置**
|
|
128
|
+
|
|
129
|
+
Build capabilities through composition, not configuration files.
|
|
130
|
+
|
|
131
|
+
```python
|
|
132
|
+
# Not:
|
|
133
|
+
config = {
|
|
134
|
+
"plugins": ["translator", "summarizer"],
|
|
135
|
+
"settings": {...100 lines...}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
# But:
|
|
139
|
+
agent = translate + summarize + analyze
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
**Developer Joy**: Code that reads like intent.
|
|
143
|
+
|
|
144
|
+
## 11. Failure as Feature
|
|
145
|
+
**失败即特性**
|
|
146
|
+
|
|
147
|
+
Systems that gracefully handle failure are antifragile.
|
|
148
|
+
|
|
149
|
+
```python
|
|
150
|
+
translators = discover_all("translation")
|
|
151
|
+
for t in translators:
|
|
152
|
+
try:
|
|
153
|
+
return t(text)
|
|
154
|
+
except:
|
|
155
|
+
continue # Natural failover
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
**Robustness**: No single point of failure.
|
|
159
|
+
|
|
160
|
+
## 12. Selection Cost as Quality Filter
|
|
161
|
+
**选择成本即质量过滤器**
|
|
162
|
+
|
|
163
|
+
Making selection costly naturally filters out bad actors.
|
|
164
|
+
|
|
165
|
+
```
|
|
166
|
+
Sandbox testing = Preparation cost
|
|
167
|
+
Time to build trust = Patience cost
|
|
168
|
+
Limited connections = Opportunity cost
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
**Natural Selection**: Good actors willing to pay, bad actors filtered out.
|
|
172
|
+
|
|
173
|
+
## 13. Network Effects from Day One
|
|
174
|
+
**第一天起的网络效应**
|
|
175
|
+
|
|
176
|
+
Value must exist for the first user, not just the millionth.
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
User 1: Gets 100 pre-seeded agents
|
|
180
|
+
User 2: Gets 101 agents (100 + User 1's)
|
|
181
|
+
User N: Gets N-1 + 100 agents
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
**Growth**: Every user adds value for all others.
|
|
185
|
+
|
|
186
|
+
## 14. Behavioral Fingerprints
|
|
187
|
+
**行为指纹**
|
|
188
|
+
|
|
189
|
+
Actions create unique, unforgeable signatures over time.
|
|
190
|
+
|
|
191
|
+
```python
|
|
192
|
+
fingerprint = hash(all_past_behaviors)
|
|
193
|
+
# Cannot be faked without doing the work
|
|
194
|
+
# Naturally evolves with agent growth
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
**Security**: Past behavior predicts future behavior.
|
|
198
|
+
|
|
199
|
+
## 15. The O(n²) to O(1) Transform
|
|
200
|
+
**O(n²)到O(1)的转换**
|
|
201
|
+
|
|
202
|
+
The core value: Transform quadratic integration cost to constant.
|
|
203
|
+
|
|
204
|
+
```
|
|
205
|
+
Traditional: n agents = n² integrations
|
|
206
|
+
ConnectOnion: n agents = n discoveries
|
|
207
|
+
|
|
208
|
+
From: "How do I connect to X?"
|
|
209
|
+
To: "X, are you there?"
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
**Economics**: This transformation justifies everything.
|
|
213
|
+
|
|
214
|
+
## Meta-Principles
|
|
215
|
+
|
|
216
|
+
### Principle Generation Principle
|
|
217
|
+
Good principles are:
|
|
218
|
+
- **Observable** in nature
|
|
219
|
+
- **Testable** in code
|
|
220
|
+
- **Valuable** in practice
|
|
221
|
+
- **Simple** to state
|
|
222
|
+
- **Profound** in implication
|
|
223
|
+
|
|
224
|
+
### The Ultimate Test
|
|
225
|
+
Ask: "Does this make developers' lives simpler while making the system more powerful?"
|
|
226
|
+
|
|
227
|
+
If yes → Keep
|
|
228
|
+
If no → Discard
|
|
229
|
+
|
|
230
|
+
### The Philosophy
|
|
231
|
+
We're not building a protocol. We're recognizing patterns that already exist in nature and making them accessible to code.
|
|
232
|
+
|
|
233
|
+
## Conclusion
|
|
234
|
+
|
|
235
|
+
These principles emerged from asking: "What if agents could collaborate as naturally as people at a marketplace?"
|
|
236
|
+
|
|
237
|
+
The answer: Remove artificial barriers (IDs, certificates, configurations) and amplify natural patterns (behavior, reputation, local trust).
|
|
238
|
+
|
|
239
|
+
The future of computing isn't more protocols - it's fewer barriers.
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# Master Principles of ConnectOnion
|
|
2
|
+
|
|
3
|
+
## The Trinity of Core Insights
|
|
4
|
+
|
|
5
|
+
### 1. Cost Conservation (成本守恒)
|
|
6
|
+
**Costs can only be transferred, never eliminated.**
|
|
7
|
+
- We transfer complexity from developers to protocol designers
|
|
8
|
+
- We transfer integration cost from runtime to design time
|
|
9
|
+
- We transfer trust verification from certificates to behavior
|
|
10
|
+
|
|
11
|
+
### 2. Behavior Over Identity (行为优于身份)
|
|
12
|
+
**Identity emerges from consistent behavior patterns.**
|
|
13
|
+
- Trust is earned through action, not granted by authority
|
|
14
|
+
- Past behavior predicts future behavior
|
|
15
|
+
- No certificates can fake a behavioral history
|
|
16
|
+
|
|
17
|
+
### 3. Simplicity Enables Robustness (简单促进健壮)
|
|
18
|
+
**Complex systems are fragile; simple systems are antifragile.**
|
|
19
|
+
- 100 lines of code > 1000 pages of specification
|
|
20
|
+
- Natural selection works on simple rules
|
|
21
|
+
- Complexity should emerge, not be designed
|
|
22
|
+
|
|
23
|
+
## The Fundamental Principles
|
|
24
|
+
|
|
25
|
+
### Principle 1: Function as Primitive (函数即基元)
|
|
26
|
+
Everything is a function:
|
|
27
|
+
```python
|
|
28
|
+
agent = function
|
|
29
|
+
network = function(function)
|
|
30
|
+
trust = function(behavior_history)
|
|
31
|
+
discovery = function(semantic_need)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Principle 2: Work as Authentication (工作即认证)
|
|
35
|
+
The best proof of ability is doing the work:
|
|
36
|
+
```python
|
|
37
|
+
# Not: "I have a certificate"
|
|
38
|
+
# But: "Here's the result"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Principle 3: Local Experience Trumps Global Reputation (局部胜全局)
|
|
42
|
+
Your experience matters most:
|
|
43
|
+
```
|
|
44
|
+
My experience: 100% weight
|
|
45
|
+
Friend's experience: 30% weight
|
|
46
|
+
Network reputation: 0% weight (we don't use it!)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Principle 4: Semantic Understanding Changes Everything (语义改变一切)
|
|
50
|
+
When protocols understand meaning:
|
|
51
|
+
```python
|
|
52
|
+
"I need translation" → finds → "I translate text"
|
|
53
|
+
# No configuration needed
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Principle 5: Time Heals and Reveals (时间治愈并揭示)
|
|
57
|
+
Time is a natural filter:
|
|
58
|
+
- New agents = naturally untrusted
|
|
59
|
+
- Good behavior + time = trust
|
|
60
|
+
- Bad behavior + time = exposure
|
|
61
|
+
- No activity + time = forgotten
|
|
62
|
+
|
|
63
|
+
### Principle 6: Topology as Defense (拓扑即防御)
|
|
64
|
+
Natural boundaries create security:
|
|
65
|
+
- Dunbar's number (~150) limits connections
|
|
66
|
+
- Local network creates natural boundary
|
|
67
|
+
- Time delays create rate limiting
|
|
68
|
+
|
|
69
|
+
### Principle 7: Immunity Over Prevention (免疫优于预防)
|
|
70
|
+
Make attacks pointless, not impossible:
|
|
71
|
+
```
|
|
72
|
+
Sybil attack → Creates 1000 real workers
|
|
73
|
+
Reputation gaming → No global reputation to game
|
|
74
|
+
Fake capabilities → Exposed by testing
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Principle 8: Progressive Enhancement (渐进式增强)
|
|
78
|
+
Evolution beats revolution:
|
|
79
|
+
```
|
|
80
|
+
Day 1: Works on current internet
|
|
81
|
+
Year 1: Works better with behavioral routing
|
|
82
|
+
Year 10: Pure behavioral network
|
|
83
|
+
Always: Backwards compatible
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Principle 9: Composition Over Configuration (组合优于配置)
|
|
87
|
+
Build through combination:
|
|
88
|
+
```python
|
|
89
|
+
# Not: config.json with 1000 lines
|
|
90
|
+
# But: agent = translate + summarize + analyze
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Principle 10: Natural Selection (自然选择)
|
|
94
|
+
Let the network evolve:
|
|
95
|
+
- Good agents get used more
|
|
96
|
+
- Bad agents naturally disappear
|
|
97
|
+
- No enforcement needed
|
|
98
|
+
|
|
99
|
+
## The Meta-Principles
|
|
100
|
+
|
|
101
|
+
### The Complexity Trap Principle
|
|
102
|
+
Every solution creates new problems:
|
|
103
|
+
```
|
|
104
|
+
Problem → Solution → New Problem → More Solutions → System Collapse
|
|
105
|
+
```
|
|
106
|
+
**Wisdom**: Stop adding, start removing.
|
|
107
|
+
|
|
108
|
+
### The Elegance Principle
|
|
109
|
+
The right solution feels obvious in hindsight:
|
|
110
|
+
- If it's not beautiful, it's not right
|
|
111
|
+
- If it needs extensive documentation, it's too complex
|
|
112
|
+
- If a child can't understand it, rethink it
|
|
113
|
+
|
|
114
|
+
### The 100-Line Test
|
|
115
|
+
If your protocol can't be implemented in 100 lines, it's too complex.
|
|
116
|
+
|
|
117
|
+
### The Natural System Principle
|
|
118
|
+
Study nature, not computer science:
|
|
119
|
+
- Markets work without IDs
|
|
120
|
+
- Ant colonies coordinate without managers
|
|
121
|
+
- Love happens without certificates
|
|
122
|
+
|
|
123
|
+
## The Economic Principles
|
|
124
|
+
|
|
125
|
+
### O(n²) to O(1) Transformation
|
|
126
|
+
The core value proposition:
|
|
127
|
+
```
|
|
128
|
+
Traditional: n agents = n² integrations
|
|
129
|
+
ConnectOnion: n agents = n discoveries
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Network Effects from Day One
|
|
133
|
+
Value for the first user, not just the millionth:
|
|
134
|
+
```
|
|
135
|
+
User 1: Gets 100 pre-seeded agents
|
|
136
|
+
User 2: Gets 101 agents
|
|
137
|
+
User N: Gets N-1 + 100 agents
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Selection Cost as Quality Filter
|
|
141
|
+
Making selection costly filters bad actors:
|
|
142
|
+
- Sandbox testing = preparation cost
|
|
143
|
+
- Building trust = patience cost
|
|
144
|
+
- Limited connections = opportunity cost
|
|
145
|
+
|
|
146
|
+
## The Design Principles
|
|
147
|
+
|
|
148
|
+
### Attraction Not Addressing (吸引而非寻址)
|
|
149
|
+
Messages attracted by behavior, not sent to addresses:
|
|
150
|
+
```python
|
|
151
|
+
# Not: send_to("agent://id-123")
|
|
152
|
+
# But: broadcast(need="translation")
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Dynamic Trust (动态信任)
|
|
156
|
+
Trust changes with behavior:
|
|
157
|
+
- No permanent certificates
|
|
158
|
+
- Trust increases with success
|
|
159
|
+
- Trust decreases with failure
|
|
160
|
+
- Trust fades without interaction
|
|
161
|
+
|
|
162
|
+
### Layered Complexity (层次化复杂度)
|
|
163
|
+
Match verification to risk:
|
|
164
|
+
```python
|
|
165
|
+
translate("Hello") # Simple, fast
|
|
166
|
+
transfer_funds(1000) # Multiple confirmations
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Collective Intelligence (群体智慧)
|
|
170
|
+
Network smarter than individuals:
|
|
171
|
+
- Individual nodes stay simple
|
|
172
|
+
- Complex verification through collaboration
|
|
173
|
+
- Emergent intelligence from simple rules
|
|
174
|
+
|
|
175
|
+
## The Philosophical Core
|
|
176
|
+
|
|
177
|
+
### Identity is Fluid
|
|
178
|
+
"Who you are" < "What you do"
|
|
179
|
+
|
|
180
|
+
### Trust is Earned
|
|
181
|
+
Not granted by authority but built through action
|
|
182
|
+
|
|
183
|
+
### Intelligence is Distributed
|
|
184
|
+
No single point of control or failure
|
|
185
|
+
|
|
186
|
+
### Systems Evolve
|
|
187
|
+
Like nature, the network adapts and improves
|
|
188
|
+
|
|
189
|
+
## The Ultimate Wisdom
|
|
190
|
+
|
|
191
|
+
### 少即是多 (Less is More)
|
|
192
|
+
- Fewer features, more robustness
|
|
193
|
+
- Fewer rules, more adaptability
|
|
194
|
+
- Fewer barriers, more innovation
|
|
195
|
+
|
|
196
|
+
### 道法自然 (Follow Nature's Way)
|
|
197
|
+
- Nature has no IDs but perfect coordination
|
|
198
|
+
- Study ecology, not technology
|
|
199
|
+
- Evolution beats intelligent design
|
|
200
|
+
|
|
201
|
+
### 大道至简 (The Greatest Way is Simple)
|
|
202
|
+
- TCP/IP is simple, thus successful
|
|
203
|
+
- HTTP is simple, thus ubiquitous
|
|
204
|
+
- ConnectOnion must be simple to succeed
|
|
205
|
+
|
|
206
|
+
## The Final Test
|
|
207
|
+
|
|
208
|
+
Before adding anything, ask:
|
|
209
|
+
1. Does nature do it this way?
|
|
210
|
+
2. Can it be simpler?
|
|
211
|
+
3. Does it make developers' lives easier?
|
|
212
|
+
4. Can it be explained to a child?
|
|
213
|
+
|
|
214
|
+
If any answer is "no", reconsider.
|
|
215
|
+
|
|
216
|
+
## Conclusion
|
|
217
|
+
|
|
218
|
+
These principles are not rules to follow but patterns we've recognized. They're not inventions but discoveries. They existed before we found them and will exist after we're gone.
|
|
219
|
+
|
|
220
|
+
The future network doesn't ask "Who are you?" but "What can we do together?"
|
|
221
|
+
|
|
222
|
+
**记住:复杂性是熵,简单性是生命。**
|