astromesh 0.17.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- astromesh-0.17.4/.agents/skills/agent-creator/CHANGELOG.md +28 -0
- astromesh-0.17.4/.agents/skills/agent-creator/SKILL.md +159 -0
- astromesh-0.17.4/.agents/skills/agent-creator/references/agent-templates.md +163 -0
- astromesh-0.17.4/.agents/skills/agent-creator/references/creation-process.md +126 -0
- astromesh-0.17.4/.agents/skills/agent-creator/references/mcp-integration.md +173 -0
- astromesh-0.17.4/.agents/skills/changelog-automation/SKILL.md +580 -0
- astromesh-0.17.4/.agents/skills/fastapi-expert/SKILL.md +185 -0
- astromesh-0.17.4/.agents/skills/fastapi-expert/references/async-sqlalchemy.md +146 -0
- astromesh-0.17.4/.agents/skills/fastapi-expert/references/authentication.md +159 -0
- astromesh-0.17.4/.agents/skills/fastapi-expert/references/endpoints-routing.md +142 -0
- astromesh-0.17.4/.agents/skills/fastapi-expert/references/migration-from-django.md +997 -0
- astromesh-0.17.4/.agents/skills/fastapi-expert/references/pydantic-v2.md +135 -0
- astromesh-0.17.4/.agents/skills/fastapi-expert/references/testing-async.md +159 -0
- astromesh-0.17.4/.agents/skills/llm-app-patterns/SKILL.md +760 -0
- astromesh-0.17.4/.agents/skills/prompt-engineer/SKILL.md +93 -0
- astromesh-0.17.4/.claude/settings.local.json +40 -0
- astromesh-0.17.4/.claude/skills/agent-creator/CHANGELOG.md +28 -0
- astromesh-0.17.4/.claude/skills/agent-creator/SKILL.md +159 -0
- astromesh-0.17.4/.claude/skills/agent-creator/references/agent-templates.md +163 -0
- astromesh-0.17.4/.claude/skills/agent-creator/references/creation-process.md +126 -0
- astromesh-0.17.4/.claude/skills/agent-creator/references/mcp-integration.md +173 -0
- astromesh-0.17.4/.claude/skills/changelog-automation/SKILL.md +580 -0
- astromesh-0.17.4/.claude/skills/fastapi-expert/SKILL.md +185 -0
- astromesh-0.17.4/.claude/skills/fastapi-expert/references/async-sqlalchemy.md +146 -0
- astromesh-0.17.4/.claude/skills/fastapi-expert/references/authentication.md +159 -0
- astromesh-0.17.4/.claude/skills/fastapi-expert/references/endpoints-routing.md +142 -0
- astromesh-0.17.4/.claude/skills/fastapi-expert/references/migration-from-django.md +997 -0
- astromesh-0.17.4/.claude/skills/fastapi-expert/references/pydantic-v2.md +135 -0
- astromesh-0.17.4/.claude/skills/fastapi-expert/references/testing-async.md +159 -0
- astromesh-0.17.4/.claude/skills/llm-app-patterns/SKILL.md +760 -0
- astromesh-0.17.4/.claude/skills/prompt-engineer/SKILL.md +93 -0
- astromesh-0.17.4/.dockerignore +31 -0
- astromesh-0.17.4/.github/CODEOWNERS +14 -0
- astromesh-0.17.4/.github/workflows/ci.yml +56 -0
- astromesh-0.17.4/.github/workflows/docs.yml +67 -0
- astromesh-0.17.4/.github/workflows/release-adk.yml +141 -0
- astromesh-0.17.4/.github/workflows/release-pypi.yml +142 -0
- astromesh-0.17.4/.github/workflows/release.yml +177 -0
- astromesh-0.17.4/.gitignore +36 -0
- astromesh-0.17.4/CHANGELOG.md +637 -0
- astromesh-0.17.4/CLAUDE.md +97 -0
- astromesh-0.17.4/CODE_OF_CONDUCT.md +57 -0
- astromesh-0.17.4/CONTRIBUTING.md +145 -0
- astromesh-0.17.4/Cargo.lock +283 -0
- astromesh-0.17.4/Cargo.toml +3 -0
- astromesh-0.17.4/Dockerfile +74 -0
- astromesh-0.17.4/GOVERNANCE.md +113 -0
- astromesh-0.17.4/LICENSE +201 -0
- astromesh-0.17.4/Makefile +37 -0
- astromesh-0.17.4/NOTICE.md +92 -0
- astromesh-0.17.4/PKG-INFO +526 -0
- astromesh-0.17.4/README.md +461 -0
- astromesh-0.17.4/SECURITY.md +74 -0
- astromesh-0.17.4/assets/astromesh-logo.png +0 -0
- astromesh-0.17.4/astromesh/__init__.py +3 -0
- astromesh-0.17.4/astromesh/api/__init__.py +0 -0
- astromesh-0.17.4/astromesh/api/main.py +36 -0
- astromesh-0.17.4/astromesh/api/routes/__init__.py +0 -0
- astromesh-0.17.4/astromesh/api/routes/agents.py +115 -0
- astromesh-0.17.4/astromesh/api/routes/dashboard.py +112 -0
- astromesh-0.17.4/astromesh/api/routes/memory.py +41 -0
- astromesh-0.17.4/astromesh/api/routes/mesh.py +88 -0
- astromesh-0.17.4/astromesh/api/routes/metrics.py +45 -0
- astromesh-0.17.4/astromesh/api/routes/rag.py +25 -0
- astromesh-0.17.4/astromesh/api/routes/system.py +120 -0
- astromesh-0.17.4/astromesh/api/routes/tools.py +39 -0
- astromesh-0.17.4/astromesh/api/routes/traces.py +32 -0
- astromesh-0.17.4/astromesh/api/routes/whatsapp.py +77 -0
- astromesh-0.17.4/astromesh/api/routes/workflows.py +73 -0
- astromesh-0.17.4/astromesh/api/ws.py +60 -0
- astromesh-0.17.4/astromesh/channels/__init__.py +3 -0
- astromesh-0.17.4/astromesh/channels/base.py +54 -0
- astromesh-0.17.4/astromesh/channels/media.py +80 -0
- astromesh-0.17.4/astromesh/channels/whatsapp.py +125 -0
- astromesh-0.17.4/astromesh/core/__init__.py +0 -0
- astromesh-0.17.4/astromesh/core/guardrails.py +90 -0
- astromesh-0.17.4/astromesh/core/memory.py +155 -0
- astromesh-0.17.4/astromesh/core/model_router.py +192 -0
- astromesh-0.17.4/astromesh/core/prompt_engine.py +30 -0
- astromesh-0.17.4/astromesh/core/tools.py +238 -0
- astromesh-0.17.4/astromesh/mcp/__init__.py +0 -0
- astromesh-0.17.4/astromesh/mcp/client.py +89 -0
- astromesh-0.17.4/astromesh/mcp/server.py +74 -0
- astromesh-0.17.4/astromesh/memory/__init__.py +0 -0
- astromesh-0.17.4/astromesh/memory/backends/__init__.py +0 -0
- astromesh-0.17.4/astromesh/memory/backends/chroma_sem.py +61 -0
- astromesh-0.17.4/astromesh/memory/backends/faiss_sem.py +76 -0
- astromesh-0.17.4/astromesh/memory/backends/pg_conv.py +95 -0
- astromesh-0.17.4/astromesh/memory/backends/pg_episodic.py +80 -0
- astromesh-0.17.4/astromesh/memory/backends/pgvector_sem.py +78 -0
- astromesh-0.17.4/astromesh/memory/backends/qdrant_sem.py +78 -0
- astromesh-0.17.4/astromesh/memory/backends/redis_conv.py +52 -0
- astromesh-0.17.4/astromesh/memory/backends/sqlite_conv.py +83 -0
- astromesh-0.17.4/astromesh/memory/strategies/__init__.py +0 -0
- astromesh-0.17.4/astromesh/memory/strategies/sliding_window.py +8 -0
- astromesh-0.17.4/astromesh/memory/strategies/summary.py +24 -0
- astromesh-0.17.4/astromesh/memory/strategies/token_budget.py +29 -0
- astromesh-0.17.4/astromesh/mesh/__init__.py +1 -0
- astromesh-0.17.4/astromesh/mesh/config.py +36 -0
- astromesh-0.17.4/astromesh/mesh/leader.py +48 -0
- astromesh-0.17.4/astromesh/mesh/manager.py +175 -0
- astromesh-0.17.4/astromesh/mesh/scheduler.py +39 -0
- astromesh-0.17.4/astromesh/mesh/state.py +108 -0
- astromesh-0.17.4/astromesh/ml/__init__.py +0 -0
- astromesh-0.17.4/astromesh/ml/model_registry.py +120 -0
- astromesh-0.17.4/astromesh/ml/serving/__init__.py +0 -0
- astromesh-0.17.4/astromesh/ml/serving/onnx_runtime.py +49 -0
- astromesh-0.17.4/astromesh/ml/serving/torch_serve.py +36 -0
- astromesh-0.17.4/astromesh/ml/training/__init__.py +0 -0
- astromesh-0.17.4/astromesh/ml/training/classifier.py +43 -0
- astromesh-0.17.4/astromesh/ml/training/embeddings.py +36 -0
- astromesh-0.17.4/astromesh/observability/__init__.py +0 -0
- astromesh-0.17.4/astromesh/observability/collector.py +75 -0
- astromesh-0.17.4/astromesh/observability/cost_tracker.py +115 -0
- astromesh-0.17.4/astromesh/observability/logging.py +33 -0
- astromesh-0.17.4/astromesh/observability/metrics.py +100 -0
- astromesh-0.17.4/astromesh/observability/telemetry.py +86 -0
- astromesh-0.17.4/astromesh/observability/tracing.py +103 -0
- astromesh-0.17.4/astromesh/orchestration/__init__.py +0 -0
- astromesh-0.17.4/astromesh/orchestration/patterns.py +185 -0
- astromesh-0.17.4/astromesh/orchestration/supervisor.py +55 -0
- astromesh-0.17.4/astromesh/orchestration/swarm.py +76 -0
- astromesh-0.17.4/astromesh/providers/__init__.py +0 -0
- astromesh-0.17.4/astromesh/providers/base.py +83 -0
- astromesh-0.17.4/astromesh/providers/factory.py +26 -0
- astromesh-0.17.4/astromesh/providers/hf_tgi_provider.py +110 -0
- astromesh-0.17.4/astromesh/providers/llamacpp_provider.py +110 -0
- astromesh-0.17.4/astromesh/providers/ollama_provider.py +181 -0
- astromesh-0.17.4/astromesh/providers/onnx_provider.py +88 -0
- astromesh-0.17.4/astromesh/providers/openai_compat.py +139 -0
- astromesh-0.17.4/astromesh/providers/vllm_provider.py +113 -0
- astromesh-0.17.4/astromesh/rag/__init__.py +0 -0
- astromesh-0.17.4/astromesh/rag/chunking/__init__.py +0 -0
- astromesh-0.17.4/astromesh/rag/chunking/base.py +6 -0
- astromesh-0.17.4/astromesh/rag/chunking/fixed.py +41 -0
- astromesh-0.17.4/astromesh/rag/chunking/recursive.py +100 -0
- astromesh-0.17.4/astromesh/rag/chunking/semantic.py +75 -0
- astromesh-0.17.4/astromesh/rag/chunking/sentence.py +63 -0
- astromesh-0.17.4/astromesh/rag/embeddings/__init__.py +0 -0
- astromesh-0.17.4/astromesh/rag/embeddings/base.py +9 -0
- astromesh-0.17.4/astromesh/rag/embeddings/hf.py +53 -0
- astromesh-0.17.4/astromesh/rag/embeddings/ollama.py +40 -0
- astromesh-0.17.4/astromesh/rag/embeddings/st.py +28 -0
- astromesh-0.17.4/astromesh/rag/pipeline.py +50 -0
- astromesh-0.17.4/astromesh/rag/reranking/__init__.py +0 -0
- astromesh-0.17.4/astromesh/rag/reranking/base.py +6 -0
- astromesh-0.17.4/astromesh/rag/reranking/cohere.py +55 -0
- astromesh-0.17.4/astromesh/rag/reranking/cross_encoder.py +33 -0
- astromesh-0.17.4/astromesh/rag/stores/__init__.py +0 -0
- astromesh-0.17.4/astromesh/rag/stores/base.py +17 -0
- astromesh-0.17.4/astromesh/rag/stores/chroma.py +79 -0
- astromesh-0.17.4/astromesh/rag/stores/faiss_store.py +98 -0
- astromesh-0.17.4/astromesh/rag/stores/pgvector.py +106 -0
- astromesh-0.17.4/astromesh/rag/stores/qdrant.py +89 -0
- astromesh-0.17.4/astromesh/runtime/__init__.py +0 -0
- astromesh-0.17.4/astromesh/runtime/engine.py +340 -0
- astromesh-0.17.4/astromesh/runtime/peers.py +97 -0
- astromesh-0.17.4/astromesh/runtime/services.py +40 -0
- astromesh-0.17.4/astromesh/tools/__init__.py +34 -0
- astromesh-0.17.4/astromesh/tools/base.py +54 -0
- astromesh-0.17.4/astromesh/tools/builtin/__init__.py +38 -0
- astromesh-0.17.4/astromesh/tools/builtin/ai.py +55 -0
- astromesh-0.17.4/astromesh/tools/builtin/communication.py +115 -0
- astromesh-0.17.4/astromesh/tools/builtin/database.py +76 -0
- astromesh-0.17.4/astromesh/tools/builtin/files.py +78 -0
- astromesh-0.17.4/astromesh/tools/builtin/http.py +99 -0
- astromesh-0.17.4/astromesh/tools/builtin/rag.py +55 -0
- astromesh-0.17.4/astromesh/tools/builtin/utilities.py +103 -0
- astromesh-0.17.4/astromesh/tools/builtin/web_search.py +115 -0
- astromesh-0.17.4/astromesh/workflow/__init__.py +145 -0
- astromesh-0.17.4/astromesh/workflow/executor.py +108 -0
- astromesh-0.17.4/astromesh/workflow/loader.py +68 -0
- astromesh-0.17.4/astromesh/workflow/models.py +104 -0
- astromesh-0.17.4/astromesh-adk/astromesh_adk/__init__.py +32 -0
- astromesh-0.17.4/astromesh-adk/astromesh_adk/agent.py +253 -0
- astromesh-0.17.4/astromesh-adk/astromesh_adk/callbacks.py +23 -0
- astromesh-0.17.4/astromesh-adk/astromesh_adk/cli/__init__.py +0 -0
- astromesh-0.17.4/astromesh-adk/astromesh_adk/cli/main.py +244 -0
- astromesh-0.17.4/astromesh-adk/astromesh_adk/connection.py +66 -0
- astromesh-0.17.4/astromesh-adk/astromesh_adk/context.py +96 -0
- astromesh-0.17.4/astromesh-adk/astromesh_adk/exceptions.py +91 -0
- astromesh-0.17.4/astromesh-adk/astromesh_adk/guardrails.py +40 -0
- astromesh-0.17.4/astromesh-adk/astromesh_adk/mcp.py +94 -0
- astromesh-0.17.4/astromesh-adk/astromesh_adk/memory.py +45 -0
- astromesh-0.17.4/astromesh-adk/astromesh_adk/providers.py +89 -0
- astromesh-0.17.4/astromesh-adk/astromesh_adk/result.py +62 -0
- astromesh-0.17.4/astromesh-adk/astromesh_adk/runner.py +53 -0
- astromesh-0.17.4/astromesh-adk/astromesh_adk/team.py +79 -0
- astromesh-0.17.4/astromesh-adk/astromesh_adk/tools.py +137 -0
- astromesh-0.17.4/astromesh-adk/examples/multi_agent.py +47 -0
- astromesh-0.17.4/astromesh-adk/examples/quickstart.py +20 -0
- astromesh-0.17.4/astromesh-adk/examples/tools_example.py +56 -0
- astromesh-0.17.4/astromesh-adk/pyproject.toml +34 -0
- astromesh-0.17.4/astromesh-adk/tests/__init__.py +0 -0
- astromesh-0.17.4/astromesh-adk/tests/conftest.py +3 -0
- astromesh-0.17.4/astromesh-adk/tests/test_agent.py +135 -0
- astromesh-0.17.4/astromesh-adk/tests/test_callbacks.py +37 -0
- astromesh-0.17.4/astromesh-adk/tests/test_cli.py +32 -0
- astromesh-0.17.4/astromesh-adk/tests/test_connection.py +55 -0
- astromesh-0.17.4/astromesh-adk/tests/test_context.py +51 -0
- astromesh-0.17.4/astromesh-adk/tests/test_exceptions.py +66 -0
- astromesh-0.17.4/astromesh-adk/tests/test_guardrails_config.py +30 -0
- astromesh-0.17.4/astromesh-adk/tests/test_mcp.py +31 -0
- astromesh-0.17.4/astromesh-adk/tests/test_memory_config.py +34 -0
- astromesh-0.17.4/astromesh-adk/tests/test_providers.py +58 -0
- astromesh-0.17.4/astromesh-adk/tests/test_public_api.py +41 -0
- astromesh-0.17.4/astromesh-adk/tests/test_result.py +83 -0
- astromesh-0.17.4/astromesh-adk/tests/test_team.py +110 -0
- astromesh-0.17.4/astromesh-adk/tests/test_tools.py +92 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/__init__.py +0 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/config.py +22 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/database.py +11 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/main.py +49 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/middleware/__init__.py +0 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/middleware/auth.py +12 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/models/__init__.py +23 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/models/agent.py +39 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/models/api_key.py +25 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/models/base.py +69 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/models/organization.py +49 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/models/provider_key.py +21 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/models/usage_log.py +29 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/models/user.py +25 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/routes/__init__.py +0 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/routes/agents.py +264 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/routes/auth.py +65 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/routes/execution.py +161 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/routes/keys.py +202 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/routes/organizations.py +50 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/routes/usage.py +64 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/schemas/__init__.py +0 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/schemas/agent.py +57 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/schemas/auth.py +19 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/schemas/keys.py +27 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/schemas/organization.py +19 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/schemas/usage.py +10 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/services/__init__.py +0 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/services/agent_service.py +56 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/services/auth_service.py +22 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/services/config_builder.py +47 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/services/encryption.py +19 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/services/reconciliation.py +30 -0
- astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/services/runtime_proxy.py +48 -0
- astromesh-0.17.4/astromesh-cloud/api/pyproject.toml +40 -0
- astromesh-0.17.4/astromesh-cloud/api/tests/__init__.py +0 -0
- astromesh-0.17.4/astromesh-cloud/api/tests/conftest.py +39 -0
- astromesh-0.17.4/astromesh-cloud/api/tests/test_agent_routes.py +267 -0
- astromesh-0.17.4/astromesh-cloud/api/tests/test_auth.py +22 -0
- astromesh-0.17.4/astromesh-cloud/api/tests/test_auth_routes.py +11 -0
- astromesh-0.17.4/astromesh-cloud/api/tests/test_config_builder.py +21 -0
- astromesh-0.17.4/astromesh-cloud/api/tests/test_encryption.py +18 -0
- astromesh-0.17.4/astromesh-cloud/api/tests/test_execution_routes.py +296 -0
- astromesh-0.17.4/astromesh-cloud/api/tests/test_health.py +4 -0
- astromesh-0.17.4/astromesh-cloud/api/tests/test_key_routes.py +216 -0
- astromesh-0.17.4/astromesh-cloud/api/tests/test_models.py +175 -0
- astromesh-0.17.4/astromesh-cloud/api/tests/test_org_routes.py +16 -0
- astromesh-0.17.4/astromesh-cloud/api/tests/test_reconciliation.py +118 -0
- astromesh-0.17.4/astromesh-cloud/api/tests/test_runtime_proxy.py +43 -0
- astromesh-0.17.4/astromesh-cloud/api/tests/test_schemas.py +11 -0
- astromesh-0.17.4/astromesh-cloud/docker-compose.yaml +26 -0
- astromesh-0.17.4/astromesh-cloud/web/.gitignore +41 -0
- astromesh-0.17.4/astromesh-cloud/web/Dockerfile +15 -0
- astromesh-0.17.4/astromesh-cloud/web/README.md +36 -0
- astromesh-0.17.4/astromesh-cloud/web/eslint.config.mjs +18 -0
- astromesh-0.17.4/astromesh-cloud/web/next.config.ts +7 -0
- astromesh-0.17.4/astromesh-cloud/web/package-lock.json +6650 -0
- astromesh-0.17.4/astromesh-cloud/web/package.json +29 -0
- astromesh-0.17.4/astromesh-cloud/web/postcss.config.mjs +7 -0
- astromesh-0.17.4/astromesh-cloud/web/public/file.svg +1 -0
- astromesh-0.17.4/astromesh-cloud/web/public/globe.svg +1 -0
- astromesh-0.17.4/astromesh-cloud/web/public/next.svg +1 -0
- astromesh-0.17.4/astromesh-cloud/web/public/vercel.svg +1 -0
- astromesh-0.17.4/astromesh-cloud/web/public/window.svg +1 -0
- astromesh-0.17.4/astromesh-cloud/web/src/app/(auth)/login/page.tsx +142 -0
- astromesh-0.17.4/astromesh-cloud/web/src/app/(dashboard)/agents/page.tsx +131 -0
- astromesh-0.17.4/astromesh-cloud/web/src/app/(dashboard)/layout.tsx +66 -0
- astromesh-0.17.4/astromesh-cloud/web/src/app/(dashboard)/settings/keys/page.tsx +373 -0
- astromesh-0.17.4/astromesh-cloud/web/src/app/(dashboard)/settings/page.tsx +309 -0
- astromesh-0.17.4/astromesh-cloud/web/src/app/(dashboard)/settings/providers/page.tsx +315 -0
- astromesh-0.17.4/astromesh-cloud/web/src/app/(dashboard)/studio/[name]/page.tsx +144 -0
- astromesh-0.17.4/astromesh-cloud/web/src/app/(dashboard)/studio/page.tsx +6 -0
- astromesh-0.17.4/astromesh-cloud/web/src/app/(dashboard)/usage/page.tsx +213 -0
- astromesh-0.17.4/astromesh-cloud/web/src/app/favicon.ico +0 -0
- astromesh-0.17.4/astromesh-cloud/web/src/app/globals.css +30 -0
- astromesh-0.17.4/astromesh-cloud/web/src/app/layout.tsx +21 -0
- astromesh-0.17.4/astromesh-cloud/web/src/app/page.tsx +14 -0
- astromesh-0.17.4/astromesh-cloud/web/src/components/agent/AgentCard.tsx +162 -0
- astromesh-0.17.4/astromesh-cloud/web/src/components/agent/AgentStatus.tsx +49 -0
- astromesh-0.17.4/astromesh-cloud/web/src/components/chat/TestChat.tsx +184 -0
- astromesh-0.17.4/astromesh-cloud/web/src/components/ui/Badge.tsx +35 -0
- astromesh-0.17.4/astromesh-cloud/web/src/components/ui/Button.tsx +57 -0
- astromesh-0.17.4/astromesh-cloud/web/src/components/ui/Card.tsx +22 -0
- astromesh-0.17.4/astromesh-cloud/web/src/components/ui/Input.tsx +36 -0
- astromesh-0.17.4/astromesh-cloud/web/src/components/ui/Sidebar.tsx +63 -0
- astromesh-0.17.4/astromesh-cloud/web/src/components/ui/Toggle.tsx +35 -0
- astromesh-0.17.4/astromesh-cloud/web/src/components/wizard/StepDeploy.tsx +400 -0
- astromesh-0.17.4/astromesh-cloud/web/src/components/wizard/StepIdentity.tsx +161 -0
- astromesh-0.17.4/astromesh-cloud/web/src/components/wizard/StepModel.tsx +226 -0
- astromesh-0.17.4/astromesh-cloud/web/src/components/wizard/StepSettings.tsx +176 -0
- astromesh-0.17.4/astromesh-cloud/web/src/components/wizard/StepTools.tsx +151 -0
- astromesh-0.17.4/astromesh-cloud/web/src/components/wizard/WizardShell.tsx +265 -0
- astromesh-0.17.4/astromesh-cloud/web/src/lib/api.ts +221 -0
- astromesh-0.17.4/astromesh-cloud/web/src/lib/store.ts +112 -0
- astromesh-0.17.4/astromesh-cloud/web/src/lib/utils.ts +3 -0
- astromesh-0.17.4/astromesh-cloud/web/tailwind.config.ts +32 -0
- astromesh-0.17.4/astromesh-cloud/web/tsconfig.json +34 -0
- astromesh-0.17.4/cli/__init__.py +1 -0
- astromesh-0.17.4/cli/client.py +45 -0
- astromesh-0.17.4/cli/commands/__init__.py +0 -0
- astromesh-0.17.4/cli/commands/agents.py +41 -0
- astromesh-0.17.4/cli/commands/ask.py +109 -0
- astromesh-0.17.4/cli/commands/config.py +85 -0
- astromesh-0.17.4/cli/commands/dev.py +43 -0
- astromesh-0.17.4/cli/commands/doctor.py +44 -0
- astromesh-0.17.4/cli/commands/init.py +437 -0
- astromesh-0.17.4/cli/commands/mesh.py +105 -0
- astromesh-0.17.4/cli/commands/metrics.py +43 -0
- astromesh-0.17.4/cli/commands/new.py +168 -0
- astromesh-0.17.4/cli/commands/peers.py +38 -0
- astromesh-0.17.4/cli/commands/providers.py +38 -0
- astromesh-0.17.4/cli/commands/run.py +115 -0
- astromesh-0.17.4/cli/commands/services.py +41 -0
- astromesh-0.17.4/cli/commands/status.py +22 -0
- astromesh-0.17.4/cli/commands/tools.py +65 -0
- astromesh-0.17.4/cli/commands/traces.py +52 -0
- astromesh-0.17.4/cli/commands/validate.py +138 -0
- astromesh-0.17.4/cli/main.py +60 -0
- astromesh-0.17.4/cli/output.py +151 -0
- astromesh-0.17.4/cli/templates/agent.yaml.j2 +41 -0
- astromesh-0.17.4/cli/templates/tool.py.j2 +36 -0
- astromesh-0.17.4/cli/templates/workflow.yaml.j2 +31 -0
- astromesh-0.17.4/config/agents/astromesh-copilot.agent.yaml +62 -0
- astromesh-0.17.4/config/agents/sales-qualifier.agent.yaml +87 -0
- astromesh-0.17.4/config/agents/support-agent.agent.yaml +47 -0
- astromesh-0.17.4/config/agents/whatsapp-assistant.agent.yaml +74 -0
- astromesh-0.17.4/config/channels.yaml +18 -0
- astromesh-0.17.4/config/profiles/full.yaml +22 -0
- astromesh-0.17.4/config/profiles/gateway.yaml +21 -0
- astromesh-0.17.4/config/profiles/inference.yaml +18 -0
- astromesh-0.17.4/config/profiles/mesh-gateway.yaml +27 -0
- astromesh-0.17.4/config/profiles/mesh-inference.yaml +28 -0
- astromesh-0.17.4/config/profiles/mesh-worker.yaml +28 -0
- astromesh-0.17.4/config/profiles/worker.yaml +21 -0
- astromesh-0.17.4/config/providers.yaml +44 -0
- astromesh-0.17.4/config/rag/product-knowledge.rag.yaml +42 -0
- astromesh-0.17.4/config/runtime.yaml +12 -0
- astromesh-0.17.4/config/workflows/example.workflow.yaml +46 -0
- astromesh-0.17.4/daemon/__init__.py +1 -0
- astromesh-0.17.4/daemon/astromeshd.py +277 -0
- astromesh-0.17.4/deploy/gitops/argocd/applicationset.yaml +39 -0
- astromesh-0.17.4/deploy/helm/astromesh/.helmignore +17 -0
- astromesh-0.17.4/deploy/helm/astromesh/Chart.yaml +36 -0
- astromesh-0.17.4/deploy/helm/astromesh/charts/.gitkeep +0 -0
- astromesh-0.17.4/deploy/helm/astromesh/crds/agent.yaml +123 -0
- astromesh-0.17.4/deploy/helm/astromesh/crds/channel.yaml +91 -0
- astromesh-0.17.4/deploy/helm/astromesh/crds/provider.yaml +106 -0
- astromesh-0.17.4/deploy/helm/astromesh/crds/ragpipeline.yaml +107 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/NOTES.txt +26 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/_helpers.tpl +115 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/configmap-agents.yaml +13 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/configmap-channels.yaml +9 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/configmap-providers.yaml +9 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/configmap-runtime.yaml +9 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/deployment-tei.yaml +69 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/deployment-vllm.yaml +67 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/deployment.yaml +165 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/external-secret.yaml +30 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/hpa.yaml +22 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/ingress.yaml +41 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/secret-hf-token.yaml +11 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/secret-store.yaml +11 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/secret.yaml +15 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/service-tei.yaml +24 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/service-vllm.yaml +19 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/service.yaml +21 -0
- astromesh-0.17.4/deploy/helm/astromesh/templates/serviceaccount.yaml +13 -0
- astromesh-0.17.4/deploy/helm/astromesh/values-dev.yaml +42 -0
- astromesh-0.17.4/deploy/helm/astromesh/values-prod.yaml +105 -0
- astromesh-0.17.4/deploy/helm/astromesh/values-staging.yaml +33 -0
- astromesh-0.17.4/deploy/helm/astromesh/values.yaml +412 -0
- astromesh-0.17.4/docker/Dockerfile +16 -0
- astromesh-0.17.4/docker/Dockerfile.gpu +18 -0
- astromesh-0.17.4/docker/docker-compose.gossip.yml +82 -0
- astromesh-0.17.4/docker/docker-compose.mesh.yml +82 -0
- astromesh-0.17.4/docker/docker-compose.yaml +126 -0
- astromesh-0.17.4/docker/entrypoint.sh +60 -0
- astromesh-0.17.4/docker/init.sql +56 -0
- astromesh-0.17.4/docker/otel-config.yaml +27 -0
- astromesh-0.17.4/docker/prometheus.yml +11 -0
- astromesh-0.17.4/docs/ADK_PENDING.md +149 -0
- astromesh-0.17.4/docs/ADK_QUICKSTART.md +169 -0
- astromesh-0.17.4/docs/ASTROMESH_MAIA.md +305 -0
- astromesh-0.17.4/docs/ASTROMESH_NODES.md +198 -0
- astromesh-0.17.4/docs/ASTROMESH_OS.md +198 -0
- astromesh-0.17.4/docs/CONFIGURATION_GUIDE.md +493 -0
- astromesh-0.17.4/docs/DEVELOPER_TOOLS.md +67 -0
- astromesh-0.17.4/docs/DEV_QUICKSTART.md +201 -0
- astromesh-0.17.4/docs/GENERAL_ARCHITECTURE.md +309 -0
- astromesh-0.17.4/docs/INSTALLATION.md +105 -0
- astromesh-0.17.4/docs/K8S_ARCHITECTURE.md +201 -0
- astromesh-0.17.4/docs/KUBERNETES_DEPLOYMENT.md +577 -0
- astromesh-0.17.4/docs/MAIA_GUIDE.md +209 -0
- astromesh-0.17.4/docs/NATIVE_ESTENSIONS_RUST.md +88 -0
- astromesh-0.17.4/docs/TECH_OVERVIEW.md +279 -0
- astromesh-0.17.4/docs/WHATSAPP_INTEGRATION.md +353 -0
- astromesh-0.17.4/docs/plans/2026-03-06-astromesh-implementation-plan.md +3056 -0
- astromesh-0.17.4/docs/plans/2026-03-06-astromesh-runtime-design.md +392 -0
- astromesh-0.17.4/docs/plans/2026-03-06-whatsapp-channel-design.md +118 -0
- astromesh-0.17.4/docs/plans/2026-03-09-astromesh-mesh-design.md +345 -0
- astromesh-0.17.4/docs/plans/2026-03-09-astromesh-mesh-implementation.md +2694 -0
- astromesh-0.17.4/docs/plans/2026-03-09-astromesh-os-design.md +291 -0
- astromesh-0.17.4/docs/plans/2026-03-09-astromesh-os-implementation.md +1601 -0
- astromesh-0.17.4/docs/plans/2026-03-09-astromesh-os-phase2-design.md +495 -0
- astromesh-0.17.4/docs/plans/2026-03-09-astromesh-os-phase2-implementation.md +1642 -0
- astromesh-0.17.4/docs/plans/2026-03-09-docs-site-implementation.md +1500 -0
- astromesh-0.17.4/docs/plans/2026-03-09-external-secrets-design.md +30 -0
- astromesh-0.17.4/docs/plans/2026-03-09-gitops-design.md +40 -0
- astromesh-0.17.4/docs/plans/2026-03-09-helm-chart-design.md +213 -0
- astromesh-0.17.4/docs/plans/2026-03-09-helm-chart-implementation.md +1203 -0
- astromesh-0.17.4/docs/plans/2026-03-09-model-serving-design.md +78 -0
- astromesh-0.17.4/docs/plans/2026-03-09-observability-design.md +40 -0
- astromesh-0.17.4/docs/plans/2026-03-09-operator-crds-design.md +39 -0
- astromesh-0.17.4/docs/superpowers/plans/2026-03-10-builtin-tools-observability.md +3249 -0
- astromesh-0.17.4/docs/superpowers/plans/2026-03-10-cli-copilot.md +744 -0
- astromesh-0.17.4/docs/superpowers/plans/2026-03-10-multi-agent-enhanced.md +1481 -0
- astromesh-0.17.4/docs/superpowers/plans/2026-03-10-vscode-extension.md +2161 -0
- astromesh-0.17.4/docs/superpowers/plans/2026-03-10-workflow-dashboard.md +2150 -0
- astromesh-0.17.4/docs/superpowers/plans/2026-03-17-astromesh-adk.md +3938 -0
- astromesh-0.17.4/docs/superpowers/plans/2026-03-17-astromesh-cloud-api.md +2498 -0
- astromesh-0.17.4/docs/superpowers/plans/2026-03-17-astromesh-cloud-runtime-prerequisites.md +604 -0
- astromesh-0.17.4/docs/superpowers/plans/2026-03-17-astromesh-cloud-studio.md +879 -0
- astromesh-0.17.4/docs/superpowers/specs/2026-03-10-astromesh-ecosystem-design.md +576 -0
- astromesh-0.17.4/docs/superpowers/specs/2026-03-17-astromesh-adk-design.md +807 -0
- astromesh-0.17.4/docs/superpowers/specs/2026-03-17-astromesh-cloud-design.md +447 -0
- astromesh-0.17.4/docs-site/astro.config.mjs +113 -0
- astromesh-0.17.4/docs-site/package-lock.json +7308 -0
- astromesh-0.17.4/docs-site/package.json +15 -0
- astromesh-0.17.4/docs-site/public/astromesh-logo.png +0 -0
- astromesh-0.17.4/docs-site/src/components/ADKShowcase.astro +570 -0
- astromesh-0.17.4/docs-site/src/components/AgentExample.astro +207 -0
- astromesh-0.17.4/docs-site/src/components/DeploymentTabs.astro +240 -0
- astromesh-0.17.4/docs-site/src/components/DevToolkit.astro +513 -0
- astromesh-0.17.4/docs-site/src/components/FeatureCards.astro +374 -0
- astromesh-0.17.4/docs-site/src/components/PipelineDiagram.astro +336 -0
- astromesh-0.17.4/docs-site/src/components/SocialIcons.astro +161 -0
- astromesh-0.17.4/docs-site/src/components/StatusBadges.astro +105 -0
- astromesh-0.17.4/docs-site/src/components/ThemeSelect.astro +4 -0
- astromesh-0.17.4/docs-site/src/content/config.ts +6 -0
- astromesh-0.17.4/docs-site/src/content/docs/adk/cli-reference.mdx +54 -0
- astromesh-0.17.4/docs-site/src/content/docs/adk/creating-tools.mdx +68 -0
- astromesh-0.17.4/docs-site/src/content/docs/adk/defining-agents.mdx +53 -0
- astromesh-0.17.4/docs-site/src/content/docs/adk/introduction.mdx +37 -0
- astromesh-0.17.4/docs-site/src/content/docs/adk/multi-agent.mdx +69 -0
- astromesh-0.17.4/docs-site/src/content/docs/adk/quickstart.mdx +52 -0
- astromesh-0.17.4/docs-site/src/content/docs/adk/remote-execution.mdx +43 -0
- astromesh-0.17.4/docs-site/src/content/docs/advanced/maia-internals.md +281 -0
- astromesh-0.17.4/docs-site/src/content/docs/advanced/observability.md +445 -0
- astromesh-0.17.4/docs-site/src/content/docs/advanced/rust-extensions.md +228 -0
- astromesh-0.17.4/docs-site/src/content/docs/advanced/whatsapp.md +286 -0
- astromesh-0.17.4/docs-site/src/content/docs/architecture/agent-pipeline.md +557 -0
- astromesh-0.17.4/docs-site/src/content/docs/architecture/four-layer-design.md +419 -0
- astromesh-0.17.4/docs-site/src/content/docs/architecture/k8s-architecture.md +648 -0
- astromesh-0.17.4/docs-site/src/content/docs/architecture/overview.md +230 -0
- astromesh-0.17.4/docs-site/src/content/docs/configuration/agent-yaml.md +322 -0
- astromesh-0.17.4/docs-site/src/content/docs/configuration/channels.md +168 -0
- astromesh-0.17.4/docs-site/src/content/docs/configuration/init-wizard.md +226 -0
- astromesh-0.17.4/docs-site/src/content/docs/configuration/multi-agent.md +482 -0
- astromesh-0.17.4/docs-site/src/content/docs/configuration/profiles.md +354 -0
- astromesh-0.17.4/docs-site/src/content/docs/configuration/providers.md +322 -0
- astromesh-0.17.4/docs-site/src/content/docs/configuration/runtime-config.md +260 -0
- astromesh-0.17.4/docs-site/src/content/docs/deployment/argocd-gitops.md +609 -0
- astromesh-0.17.4/docs-site/src/content/docs/deployment/astromesh-os.md +655 -0
- astromesh-0.17.4/docs-site/src/content/docs/deployment/docker-maia-gpu.md +562 -0
- astromesh-0.17.4/docs-site/src/content/docs/deployment/docker-maia.md +475 -0
- astromesh-0.17.4/docs-site/src/content/docs/deployment/docker-single.md +497 -0
- astromesh-0.17.4/docs-site/src/content/docs/deployment/helm-kubernetes.md +905 -0
- astromesh-0.17.4/docs-site/src/content/docs/deployment/standalone.md +449 -0
- astromesh-0.17.4/docs-site/src/content/docs/getting-started/developer-tools.md +150 -0
- astromesh-0.17.4/docs-site/src/content/docs/getting-started/first-agent.md +480 -0
- astromesh-0.17.4/docs-site/src/content/docs/getting-started/installation.md +222 -0
- astromesh-0.17.4/docs-site/src/content/docs/getting-started/quickstart.md +243 -0
- astromesh-0.17.4/docs-site/src/content/docs/getting-started/what-is-astromesh.md +151 -0
- astromesh-0.17.4/docs-site/src/content/docs/index.mdx +58 -0
- astromesh-0.17.4/docs-site/src/content/docs/reference/api-endpoints.md +751 -0
- astromesh-0.17.4/docs-site/src/content/docs/reference/cli-commands.md +284 -0
- astromesh-0.17.4/docs-site/src/content/docs/reference/core/builtin-tools.md +335 -0
- astromesh-0.17.4/docs-site/src/content/docs/reference/core/memory-manager.md +183 -0
- astromesh-0.17.4/docs-site/src/content/docs/reference/core/model-router.md +166 -0
- astromesh-0.17.4/docs-site/src/content/docs/reference/core/runtime-engine.md +168 -0
- astromesh-0.17.4/docs-site/src/content/docs/reference/core/tool-registry.md +306 -0
- astromesh-0.17.4/docs-site/src/content/docs/reference/env-vars.md +97 -0
- astromesh-0.17.4/docs-site/src/content/docs/reference/mesh/gossip-protocol.md +138 -0
- astromesh-0.17.4/docs-site/src/content/docs/reference/mesh/scheduling.md +189 -0
- astromesh-0.17.4/docs-site/src/content/docs/reference/os/cli.md +454 -0
- astromesh-0.17.4/docs-site/src/content/docs/reference/os/daemon.md +160 -0
- astromesh-0.17.4/docs-site/src/content/docs/reference/os/vscode-extension.md +98 -0
- astromesh-0.17.4/docs-site/src/styles/custom.css +96 -0
- astromesh-0.17.4/docs-site/tsconfig.json +3 -0
- astromesh-0.17.4/native/Cargo.toml +15 -0
- astromesh-0.17.4/native/src/chunking.rs +334 -0
- astromesh-0.17.4/native/src/cost_tracker.rs +74 -0
- astromesh-0.17.4/native/src/guardrails.rs +71 -0
- astromesh-0.17.4/native/src/json_parser.rs +41 -0
- astromesh-0.17.4/native/src/lib.rs +35 -0
- astromesh-0.17.4/native/src/ratelimit.rs +43 -0
- astromesh-0.17.4/native/src/routing.rs +86 -0
- astromesh-0.17.4/native/src/tokens.rs +35 -0
- astromesh-0.17.4/nfpm.yaml +53 -0
- astromesh-0.17.4/packaging/build-deb.sh +43 -0
- astromesh-0.17.4/packaging/get-astromesh.sh +200 -0
- astromesh-0.17.4/packaging/install.sh +67 -0
- astromesh-0.17.4/packaging/scripts/postinstall.sh +27 -0
- astromesh-0.17.4/packaging/scripts/postremove.sh +20 -0
- astromesh-0.17.4/packaging/scripts/preinstall.sh +16 -0
- astromesh-0.17.4/packaging/scripts/preremove.sh +11 -0
- astromesh-0.17.4/packaging/systemd/astromeshd.service +31 -0
- astromesh-0.17.4/pyproject.toml +80 -0
- astromesh-0.17.4/recipes/dev-full.yml +96 -0
- astromesh-0.17.4/recipes/mesh-3node.yml +87 -0
- astromesh-0.17.4/recipes/mesh-gpu.yml +93 -0
- astromesh-0.17.4/recipes/single-node.yml +40 -0
- astromesh-0.17.4/skills-lock.json +30 -0
- astromesh-0.17.4/tests/__init__.py +0 -0
- astromesh-0.17.4/tests/benchmarks/__init__.py +0 -0
- astromesh-0.17.4/tests/benchmarks/bench_chunking.py +48 -0
- astromesh-0.17.4/tests/benchmarks/bench_cost.py +25 -0
- astromesh-0.17.4/tests/benchmarks/bench_guardrails.py +33 -0
- astromesh-0.17.4/tests/benchmarks/bench_json.py +27 -0
- astromesh-0.17.4/tests/benchmarks/bench_ratelimit.py +20 -0
- astromesh-0.17.4/tests/benchmarks/bench_routing.py +20 -0
- astromesh-0.17.4/tests/benchmarks/bench_tokens.py +36 -0
- astromesh-0.17.4/tests/conftest.py +11 -0
- astromesh-0.17.4/tests/test_agent_as_tool.py +472 -0
- astromesh-0.17.4/tests/test_ai_tool.py +95 -0
- astromesh-0.17.4/tests/test_all_tools_registry.py +55 -0
- astromesh-0.17.4/tests/test_api.py +82 -0
- astromesh-0.17.4/tests/test_builtin_tools.py +157 -0
- astromesh-0.17.4/tests/test_channels.py +256 -0
- astromesh-0.17.4/tests/test_cli.py +201 -0
- astromesh-0.17.4/tests/test_cli_ask.py +66 -0
- astromesh-0.17.4/tests/test_cli_mesh.py +79 -0
- astromesh-0.17.4/tests/test_cli_new.py +113 -0
- astromesh-0.17.4/tests/test_cli_run.py +88 -0
- astromesh-0.17.4/tests/test_cli_run_workflow.py +71 -0
- astromesh-0.17.4/tests/test_cli_tools.py +53 -0
- astromesh-0.17.4/tests/test_cli_traces.py +86 -0
- astromesh-0.17.4/tests/test_cli_validate.py +43 -0
- astromesh-0.17.4/tests/test_comm_tools.py +174 -0
- astromesh-0.17.4/tests/test_context_transform.py +119 -0
- astromesh-0.17.4/tests/test_daemon.py +132 -0
- astromesh-0.17.4/tests/test_daemon_integration.py +63 -0
- astromesh-0.17.4/tests/test_daemon_mesh.py +54 -0
- astromesh-0.17.4/tests/test_dashboard_api.py +47 -0
- astromesh-0.17.4/tests/test_database_tool.py +43 -0
- astromesh-0.17.4/tests/test_dynamic_agents.py +88 -0
- astromesh-0.17.4/tests/test_engine.py +61 -0
- astromesh-0.17.4/tests/test_engine_builtin.py +41 -0
- astromesh-0.17.4/tests/test_engine_services.py +71 -0
- astromesh-0.17.4/tests/test_file_tools.py +49 -0
- astromesh-0.17.4/tests/test_guardrails.py +54 -0
- astromesh-0.17.4/tests/test_init.py +246 -0
- astromesh-0.17.4/tests/test_integration.py +175 -0
- astromesh-0.17.4/tests/test_mcp.py +63 -0
- astromesh-0.17.4/tests/test_memory.py +96 -0
- astromesh-0.17.4/tests/test_memory_backends.py +305 -0
- astromesh-0.17.4/tests/test_mesh_api.py +118 -0
- astromesh-0.17.4/tests/test_mesh_config.py +72 -0
- astromesh-0.17.4/tests/test_mesh_full_integration.py +166 -0
- astromesh-0.17.4/tests/test_mesh_integration.py +119 -0
- astromesh-0.17.4/tests/test_mesh_leader.py +102 -0
- astromesh-0.17.4/tests/test_mesh_manager.py +208 -0
- astromesh-0.17.4/tests/test_mesh_scheduler.py +119 -0
- astromesh-0.17.4/tests/test_mesh_state.py +135 -0
- astromesh-0.17.4/tests/test_metrics_api.py +93 -0
- astromesh-0.17.4/tests/test_ml.py +65 -0
- astromesh-0.17.4/tests/test_model_router.py +269 -0
- astromesh-0.17.4/tests/test_native_chunking.py +93 -0
- astromesh-0.17.4/tests/test_native_cost.py +37 -0
- astromesh-0.17.4/tests/test_native_guardrails.py +63 -0
- astromesh-0.17.4/tests/test_native_ratelimit.py +37 -0
- astromesh-0.17.4/tests/test_native_routing.py +54 -0
- astromesh-0.17.4/tests/test_native_tokens.py +44 -0
- astromesh-0.17.4/tests/test_observability.py +96 -0
- astromesh-0.17.4/tests/test_patterns.py +151 -0
- astromesh-0.17.4/tests/test_peers.py +99 -0
- astromesh-0.17.4/tests/test_peers_mesh.py +114 -0
- astromesh-0.17.4/tests/test_prompt_engine.py +45 -0
- astromesh-0.17.4/tests/test_providers.py +197 -0
- astromesh-0.17.4/tests/test_rag.py +56 -0
- astromesh-0.17.4/tests/test_rag_tools.py +110 -0
- astromesh-0.17.4/tests/test_services.py +51 -0
- astromesh-0.17.4/tests/test_supervisor_agents.py +108 -0
- astromesh-0.17.4/tests/test_swarm_agents.py +125 -0
- astromesh-0.17.4/tests/test_system_api.py +140 -0
- astromesh-0.17.4/tests/test_tool_base.py +80 -0
- astromesh-0.17.4/tests/test_tools.py +91 -0
- astromesh-0.17.4/tests/test_traces_api.py +45 -0
- astromesh-0.17.4/tests/test_tracing.py +160 -0
- astromesh-0.17.4/tests/test_web_tools.py +78 -0
- astromesh-0.17.4/tests/test_whatsapp.py +438 -0
- astromesh-0.17.4/tests/test_workflow_api.py +91 -0
- astromesh-0.17.4/tests/test_workflow_engine.py +224 -0
- astromesh-0.17.4/tests/test_workflow_executor.py +169 -0
- astromesh-0.17.4/tests/test_workflow_loader.py +162 -0
- astromesh-0.17.4/tests/test_workflow_models.py +132 -0
- astromesh-0.17.4/vscode-extension/.gitignore +3 -0
- astromesh-0.17.4/vscode-extension/.vscodeignore +7 -0
- astromesh-0.17.4/vscode-extension/README.md +41 -0
- astromesh-0.17.4/vscode-extension/esbuild.js +19 -0
- astromesh-0.17.4/vscode-extension/package-lock.json +4255 -0
- astromesh-0.17.4/vscode-extension/package.json +84 -0
- astromesh-0.17.4/vscode-extension/schemas/agent.schema.json +499 -0
- astromesh-0.17.4/vscode-extension/schemas/workflow.schema.json +210 -0
- astromesh-0.17.4/vscode-extension/src/cli.ts +69 -0
- astromesh-0.17.4/vscode-extension/src/commands/copilot.ts +41 -0
- astromesh-0.17.4/vscode-extension/src/commands/diagnostics.ts +32 -0
- astromesh-0.17.4/vscode-extension/src/commands/runAgent.ts +44 -0
- astromesh-0.17.4/vscode-extension/src/commands/runWorkflow.ts +45 -0
- astromesh-0.17.4/vscode-extension/src/extension.ts +59 -0
- astromesh-0.17.4/vscode-extension/src/statusBar.ts +38 -0
- astromesh-0.17.4/vscode-extension/src/views/metricsPanel.ts +53 -0
- astromesh-0.17.4/vscode-extension/src/views/tracesProvider.ts +90 -0
- astromesh-0.17.4/vscode-extension/src/views/workflowPanel.ts +72 -0
- astromesh-0.17.4/vscode-extension/test/suite/cli.test.ts +28 -0
- astromesh-0.17.4/vscode-extension/test/suite/traces.test.ts +29 -0
- astromesh-0.17.4/vscode-extension/tsconfig.json +16 -0
- astromesh-0.17.4/vscode-extension/webview/copilot.html +71 -0
- astromesh-0.17.4/vscode-extension/webview/metrics.html +60 -0
- astromesh-0.17.4/vscode-extension/webview/workflow.html +59 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [2.0.0] - 2024-01-XX
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- **BREAKING**: Restructured from monolithic 602-line file to progressive disclosure architecture
|
|
7
|
+
- Fixed frontmatter format: `tools:` → `allowed-tools:` (comma-separated)
|
|
8
|
+
- Added NOT clause to description for precise activation boundaries
|
|
9
|
+
- Reduced SKILL.md from 602 lines to 150 lines (75% reduction)
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- `references/agent-templates.md` - Technical Expert, Creative/Design, Orchestrator templates
|
|
13
|
+
- `references/mcp-integration.md` - MCP server template, official packages, creation steps
|
|
14
|
+
- `references/creation-process.md` - Rapid prototyping workflow, quality checklist
|
|
15
|
+
- Anti-patterns section with "What it looks like / Why wrong / Instead" format
|
|
16
|
+
- Quick reference table for agent templates
|
|
17
|
+
- 45-minute rapid prototyping workflow
|
|
18
|
+
|
|
19
|
+
### Removed
|
|
20
|
+
- Verbose template descriptions (moved to references)
|
|
21
|
+
- Inline MCP server code (moved to references)
|
|
22
|
+
- Redundant design philosophy sections
|
|
23
|
+
|
|
24
|
+
### Migration Guide
|
|
25
|
+
Reference files are now in `/references/` directory. Import patterns:
|
|
26
|
+
- Agent templates → `references/agent-templates.md`
|
|
27
|
+
- MCP server code → `references/mcp-integration.md`
|
|
28
|
+
- Creation workflow → `references/creation-process.md`
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agent-creator
|
|
3
|
+
description: Meta-agent for creating new custom agents, skills, and MCP integrations. Expert in agent design, MCP development, skill architecture, and rapid prototyping. Activate on 'create agent', 'new
|
|
4
|
+
skill', 'MCP server', 'custom tool', 'agent design'. NOT for using existing agents (invoke them directly), general coding (use language-specific skills), or infrastructure setup (use deployment-engineer).
|
|
5
|
+
allowed-tools: Read,Write,Edit,Glob,Grep,Bash,mcp__firecrawl__firecrawl_search,WebFetch
|
|
6
|
+
metadata:
|
|
7
|
+
category: Productivity & Meta
|
|
8
|
+
pairs-with:
|
|
9
|
+
- skill: skill-coach
|
|
10
|
+
reason: Quality review for created skills
|
|
11
|
+
- skill: mcp-creator
|
|
12
|
+
reason: When skills need external tool integration
|
|
13
|
+
tags:
|
|
14
|
+
- agents
|
|
15
|
+
- mcp
|
|
16
|
+
- automation
|
|
17
|
+
- meta
|
|
18
|
+
- skill-development
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# Agent Creator
|
|
22
|
+
|
|
23
|
+
Meta-agent specializing in creating new custom agents, skills, and MCP integrations. Transform requirements into fully-functional, well-documented agent systems.
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
User: "Create an agent for database optimization"
|
|
29
|
+
|
|
30
|
+
Agent Creator:
|
|
31
|
+
1. Analyze requirements (domain, users, problems, scope)
|
|
32
|
+
2. Design persona (Senior DBA, 20 years experience)
|
|
33
|
+
3. Map capabilities (EXPLAIN analysis, indexing, query rewriting)
|
|
34
|
+
4. Select template (Technical Expert)
|
|
35
|
+
5. Encode knowledge (anti-patterns, techniques, examples)
|
|
36
|
+
6. Add MCP tools (optional: SQL parser)
|
|
37
|
+
7. Document usage and limitations
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Result**: Production-ready agent in ~45 minutes
|
|
41
|
+
|
|
42
|
+
## Core Competencies
|
|
43
|
+
|
|
44
|
+
### 1. Agent Design & Architecture
|
|
45
|
+
- Persona development with distinct voices
|
|
46
|
+
- Skill definition and scope management
|
|
47
|
+
- Interaction pattern design
|
|
48
|
+
- Knowledge encoding for optimal retrieval
|
|
49
|
+
|
|
50
|
+
### 2. MCP Integration
|
|
51
|
+
- Protocol understanding and server development
|
|
52
|
+
- Resource management and API design
|
|
53
|
+
- State management for persistent agents
|
|
54
|
+
|
|
55
|
+
### 3. Skill Framework Design
|
|
56
|
+
- Progressive disclosure (lightweight metadata, on-demand detail)
|
|
57
|
+
- Composability and modularity
|
|
58
|
+
- Clear documentation
|
|
59
|
+
|
|
60
|
+
## Agent Templates
|
|
61
|
+
|
|
62
|
+
| Template | Best For | Key Elements |
|
|
63
|
+
|----------|----------|--------------|
|
|
64
|
+
| **Technical Expert** | Domain specialists | Problem-solving framework, code examples, best practices |
|
|
65
|
+
| **Creative/Design** | Creative roles | Design philosophy, creative process, quality standards |
|
|
66
|
+
| **Orchestrator** | Coordination | Delegation strategy, integration patterns, QA |
|
|
67
|
+
|
|
68
|
+
## Rapid Prototyping Workflow
|
|
69
|
+
|
|
70
|
+
| Step | Time | Activity |
|
|
71
|
+
|------|------|----------|
|
|
72
|
+
| 1. Understand Need | 2 min | What capability is missing? |
|
|
73
|
+
| 2. Design Persona | 3 min | What expert would solve this? |
|
|
74
|
+
| 3. Map Knowledge | 10 min | What do they need to know? |
|
|
75
|
+
| 4. Create Structure | 5 min | Organize into template |
|
|
76
|
+
| 5. Add Examples | 10 min | Concrete, runnable code |
|
|
77
|
+
| 6. Write Docs | 5 min | How to use it |
|
|
78
|
+
| 7. Test & Refine | 10 min | Validate with queries |
|
|
79
|
+
|
|
80
|
+
**Total**: ~45 minutes for quality agent
|
|
81
|
+
|
|
82
|
+
## MCP Server Creation
|
|
83
|
+
|
|
84
|
+
**Official Packages**:
|
|
85
|
+
- `@modelcontextprotocol/sdk` - Core TypeScript SDK
|
|
86
|
+
- `@modelcontextprotocol/create-server` - Scaffold new servers
|
|
87
|
+
- `@modelcontextprotocol/inspector` - Test and debug
|
|
88
|
+
|
|
89
|
+
**Creation Steps**:
|
|
90
|
+
1. Define capability (inputs, outputs, purpose)
|
|
91
|
+
2. Design interface (clean tool schema)
|
|
92
|
+
3. Implement core logic
|
|
93
|
+
4. Package as MCP server
|
|
94
|
+
|
|
95
|
+
## Quality Checklist
|
|
96
|
+
|
|
97
|
+
### Expertise
|
|
98
|
+
- [ ] Clear domain boundaries
|
|
99
|
+
- [ ] Specific, actionable guidance
|
|
100
|
+
- [ ] Real-world examples
|
|
101
|
+
- [ ] Common pitfalls covered
|
|
102
|
+
|
|
103
|
+
### Usability
|
|
104
|
+
- [ ] Clear mission statement
|
|
105
|
+
- [ ] Easy-to-scan structure
|
|
106
|
+
- [ ] Concrete code examples
|
|
107
|
+
|
|
108
|
+
### Integration
|
|
109
|
+
- [ ] Works standalone
|
|
110
|
+
- [ ] Can combine with other agents
|
|
111
|
+
- [ ] Clear input/output formats
|
|
112
|
+
|
|
113
|
+
## When to Use
|
|
114
|
+
|
|
115
|
+
**Use for:**
|
|
116
|
+
- Creating new domain expert agents
|
|
117
|
+
- Building MCP servers for custom capabilities
|
|
118
|
+
- Designing skill architecture
|
|
119
|
+
- Rapid prototyping of AI capabilities
|
|
120
|
+
|
|
121
|
+
**Do NOT use for:**
|
|
122
|
+
- Using existing agents (invoke them directly)
|
|
123
|
+
- General coding tasks (use language-specific skills)
|
|
124
|
+
- Infrastructure setup (use deployment-engineer)
|
|
125
|
+
- Modifying Claude's core behavior
|
|
126
|
+
|
|
127
|
+
## Anti-Patterns
|
|
128
|
+
|
|
129
|
+
### Anti-Pattern: Knowledge Dump
|
|
130
|
+
**What it looks like**: Pasting entire documentation into agent
|
|
131
|
+
**Why wrong**: Overwhelming, poor retrieval, bloated context
|
|
132
|
+
**Instead**: Curate essential knowledge, use progressive disclosure
|
|
133
|
+
|
|
134
|
+
### Anti-Pattern: Vague Persona
|
|
135
|
+
**What it looks like**: "You are an expert assistant"
|
|
136
|
+
**Why wrong**: No personality, generic outputs
|
|
137
|
+
**Instead**: Specific role, years of experience, communication style
|
|
138
|
+
|
|
139
|
+
### Anti-Pattern: Missing Scope
|
|
140
|
+
**What it looks like**: Agent that tries to do everything
|
|
141
|
+
**Why wrong**: Jack of all trades, master of none
|
|
142
|
+
**Instead**: Clear boundaries with redirect suggestions
|
|
143
|
+
|
|
144
|
+
### Anti-Pattern: No Examples
|
|
145
|
+
**What it looks like**: Abstract descriptions without code
|
|
146
|
+
**Why wrong**: Users can't see how to apply guidance
|
|
147
|
+
**Instead**: Concrete, runnable examples for key patterns
|
|
148
|
+
|
|
149
|
+
## Reference Files
|
|
150
|
+
|
|
151
|
+
- `references/agent-templates.md` - Technical, Creative, Orchestrator templates
|
|
152
|
+
- `references/mcp-integration.md` - MCP server creation patterns, SDK usage
|
|
153
|
+
- `references/creation-process.md` - End-to-end workflow, quality checklist
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
**Core insight**: Great agents aren't knowledge dumps—they're thoughtfully designed expert systems with personality, practical guidance, and real-world applicability.
|
|
158
|
+
|
|
159
|
+
**Use with**: skill-coach (quality review) | skill-documentarian (documentation) | orchestrator (multi-agent design)
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# Agent Templates
|
|
2
|
+
|
|
3
|
+
Templates for different agent types.
|
|
4
|
+
|
|
5
|
+
## Template 1: Technical Expert Agent
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# [Domain] Expert Agent
|
|
9
|
+
|
|
10
|
+
You are an expert [role] with deep knowledge of [domain].
|
|
11
|
+
|
|
12
|
+
## Your Mission
|
|
13
|
+
[Clear, concise mission statement]
|
|
14
|
+
|
|
15
|
+
## Core Competencies
|
|
16
|
+
|
|
17
|
+
### [Technical Area 1]
|
|
18
|
+
- Specific skills and knowledge
|
|
19
|
+
- When and how to apply them
|
|
20
|
+
|
|
21
|
+
### [Technical Area 2]
|
|
22
|
+
- Specific skills and knowledge
|
|
23
|
+
- When and how to apply them
|
|
24
|
+
|
|
25
|
+
## Problem-Solving Framework
|
|
26
|
+
|
|
27
|
+
1. **Understand**: Questions to ask, context to gather
|
|
28
|
+
2. **Analyze**: How to break down the problem
|
|
29
|
+
3. **Solve**: Approaches and patterns
|
|
30
|
+
4. **Validate**: Testing and verification
|
|
31
|
+
|
|
32
|
+
## Code Examples
|
|
33
|
+
[Concrete, runnable examples]
|
|
34
|
+
|
|
35
|
+
## Best Practices
|
|
36
|
+
[Do's and don'ts with reasoning]
|
|
37
|
+
|
|
38
|
+
## Common Pitfalls
|
|
39
|
+
[What to avoid and why]
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
Remember: [Key philosophy or principle]
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Template 2: Creative/Design Agent
|
|
46
|
+
|
|
47
|
+
```markdown
|
|
48
|
+
# [Creative Domain] Expert Agent
|
|
49
|
+
|
|
50
|
+
You are a [creative role] specializing in [specific area].
|
|
51
|
+
|
|
52
|
+
## Your Mission
|
|
53
|
+
[Inspirational mission statement]
|
|
54
|
+
|
|
55
|
+
## Design Philosophy
|
|
56
|
+
[Core beliefs and principles]
|
|
57
|
+
|
|
58
|
+
## Creative Process
|
|
59
|
+
|
|
60
|
+
1. **Discovery**: Understanding goals and constraints
|
|
61
|
+
2. **Exploration**: Generating ideas and options
|
|
62
|
+
3. **Refinement**: Iterating toward excellence
|
|
63
|
+
4. **Delivery**: Polished, production-ready output
|
|
64
|
+
|
|
65
|
+
## Techniques & Patterns
|
|
66
|
+
[Specific creative methods]
|
|
67
|
+
|
|
68
|
+
## Inspiration Sources
|
|
69
|
+
[Where to draw ideas from]
|
|
70
|
+
|
|
71
|
+
## Quality Standards
|
|
72
|
+
[What makes work exceptional vs. acceptable]
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
Remember: [Creative principle or mantra]
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Template 3: Orchestrator/Meta-Agent
|
|
79
|
+
|
|
80
|
+
```markdown
|
|
81
|
+
# [Capability] Orchestrator Agent
|
|
82
|
+
|
|
83
|
+
You are a coordinator specializing in [orchestration domain].
|
|
84
|
+
|
|
85
|
+
## Your Mission
|
|
86
|
+
[How this agent coordinates others]
|
|
87
|
+
|
|
88
|
+
## Orchestration Patterns
|
|
89
|
+
|
|
90
|
+
### Pattern 1: [Name]
|
|
91
|
+
**When to Use**: Scenario
|
|
92
|
+
**Sequence**: Step-by-step delegation
|
|
93
|
+
**Integration**: How outputs combine
|
|
94
|
+
|
|
95
|
+
## Delegation Strategy
|
|
96
|
+
[How to choose which agents/skills to use]
|
|
97
|
+
|
|
98
|
+
## Quality Assurance
|
|
99
|
+
[How to validate coordinated outputs]
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
Remember: [Orchestration principle]
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Pattern Libraries
|
|
106
|
+
|
|
107
|
+
### Persona Patterns
|
|
108
|
+
|
|
109
|
+
**Technical Expert Pattern**:
|
|
110
|
+
```markdown
|
|
111
|
+
You are a [role] with [X years] experience in [domain].
|
|
112
|
+
You specialize in [specific areas] and are known for [unique approach].
|
|
113
|
+
Your communication style is [tone adjectives].
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**Creative Expert Pattern**:
|
|
117
|
+
```markdown
|
|
118
|
+
You are a [creative role] who [unique philosophy].
|
|
119
|
+
You draw inspiration from [sources] and believe [core principle].
|
|
120
|
+
You communicate with [emotional tone] and [linguistic style].
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Knowledge Encoding Patterns
|
|
124
|
+
|
|
125
|
+
**Best Practices Encoding**:
|
|
126
|
+
```markdown
|
|
127
|
+
## Best Practices
|
|
128
|
+
|
|
129
|
+
### [Practice Area]
|
|
130
|
+
✅ **Do**: Specific actionable guidance
|
|
131
|
+
❌ **Don't**: Anti-patterns with explanations
|
|
132
|
+
💡 **Why**: Deeper reasoning and context
|
|
133
|
+
🔍 **Example**: Concrete demonstration
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
**Technical Patterns**:
|
|
137
|
+
```markdown
|
|
138
|
+
## [Pattern Name]
|
|
139
|
+
|
|
140
|
+
**When to Use**: Specific scenarios
|
|
141
|
+
**Trade-offs**: Pros and cons
|
|
142
|
+
**Implementation**: Code examples
|
|
143
|
+
**Gotchas**: Common mistakes
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## Multi-Agent System Design
|
|
147
|
+
|
|
148
|
+
### Agent Team Pattern
|
|
149
|
+
```
|
|
150
|
+
Orchestrator Agent
|
|
151
|
+
├── Frontend Expert
|
|
152
|
+
├── Backend Expert
|
|
153
|
+
├── Database Expert
|
|
154
|
+
└── DevOps Expert
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Coordination Protocol
|
|
158
|
+
1. Orchestrator analyzes request
|
|
159
|
+
2. Identifies required specialists
|
|
160
|
+
3. Delegates subtasks with context
|
|
161
|
+
4. Integrates responses
|
|
162
|
+
5. Resolves conflicts
|
|
163
|
+
6. Delivers unified solution
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Agent Creation Process
|
|
2
|
+
|
|
3
|
+
End-to-end workflow for creating production agents.
|
|
4
|
+
|
|
5
|
+
## Requirements Analysis
|
|
6
|
+
|
|
7
|
+
**Ask Critical Questions**:
|
|
8
|
+
- What domain expertise is needed?
|
|
9
|
+
- Who is the target user?
|
|
10
|
+
- What problems should this agent solve?
|
|
11
|
+
- What are the constraints (scope, complexity, context size)?
|
|
12
|
+
- How will this agent interact with others?
|
|
13
|
+
|
|
14
|
+
**Example Analysis**:
|
|
15
|
+
```
|
|
16
|
+
User Request: "Create an agent for database optimization"
|
|
17
|
+
|
|
18
|
+
Analysis:
|
|
19
|
+
- Domain: Database administration, query optimization, indexing
|
|
20
|
+
- User: Backend developers, DBAs
|
|
21
|
+
- Problems: Slow queries, inefficient schemas, scaling issues
|
|
22
|
+
- Scope: Focus on PostgreSQL/MySQL, common patterns
|
|
23
|
+
- Integration: Should work with code review agents
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Capability Mapping
|
|
27
|
+
|
|
28
|
+
**Core Competencies Structure**:
|
|
29
|
+
```markdown
|
|
30
|
+
## Core Competencies
|
|
31
|
+
|
|
32
|
+
### [Category 1]
|
|
33
|
+
- **[Skill A]**: Description, when to use, examples
|
|
34
|
+
- **[Skill B]**: Description, when to use, examples
|
|
35
|
+
|
|
36
|
+
### [Category 2]
|
|
37
|
+
- **[Skill C]**: Description, when to use, examples
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Problem-Solving Patterns**:
|
|
41
|
+
```markdown
|
|
42
|
+
## Common Problems & Solutions
|
|
43
|
+
|
|
44
|
+
### Problem: [Specific scenario]
|
|
45
|
+
**Approach**:
|
|
46
|
+
1. Step-by-step process
|
|
47
|
+
2. Key considerations
|
|
48
|
+
3. Code/examples
|
|
49
|
+
4. Validation method
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Rapid Prototyping Workflow
|
|
53
|
+
|
|
54
|
+
| Step | Time | Activity |
|
|
55
|
+
|------|------|----------|
|
|
56
|
+
| 1. Understand Need | 2 min | What capability is missing? |
|
|
57
|
+
| 2. Design Persona | 3 min | What expert would solve this? |
|
|
58
|
+
| 3. Map Knowledge | 10 min | What do they need to know? |
|
|
59
|
+
| 4. Create Structure | 5 min | Organize into template |
|
|
60
|
+
| 5. Add Examples | 10 min | Concrete, runnable code |
|
|
61
|
+
| 6. Write Documentation | 5 min | How to use it |
|
|
62
|
+
| 7. Test & Refine | 10 min | Validate with sample queries |
|
|
63
|
+
|
|
64
|
+
**Total Time**: ~45 minutes for a quality agent
|
|
65
|
+
|
|
66
|
+
## Agent Quality Checklist
|
|
67
|
+
|
|
68
|
+
### Expertise Quality
|
|
69
|
+
- [ ] Clear domain boundaries
|
|
70
|
+
- [ ] Specific, actionable guidance
|
|
71
|
+
- [ ] Real-world examples
|
|
72
|
+
- [ ] Common pitfalls covered
|
|
73
|
+
- [ ] Best practices with rationale
|
|
74
|
+
|
|
75
|
+
### Usability
|
|
76
|
+
- [ ] Clear mission statement
|
|
77
|
+
- [ ] Easy-to-scan structure
|
|
78
|
+
- [ ] Progressive detail disclosure
|
|
79
|
+
- [ ] Concrete code examples
|
|
80
|
+
- [ ] Appropriate tone and voice
|
|
81
|
+
|
|
82
|
+
### Integration
|
|
83
|
+
- [ ] Works standalone
|
|
84
|
+
- [ ] Can combine with other agents
|
|
85
|
+
- [ ] Clear input/output formats
|
|
86
|
+
- [ ] Proper error handling
|
|
87
|
+
- [ ] State management (if needed)
|
|
88
|
+
|
|
89
|
+
### Documentation
|
|
90
|
+
- [ ] Usage examples
|
|
91
|
+
- [ ] When to use this agent
|
|
92
|
+
- [ ] What problems it solves
|
|
93
|
+
- [ ] Integration patterns
|
|
94
|
+
- [ ] Limitations noted
|
|
95
|
+
|
|
96
|
+
## Meta-Learning: Improving Agent Design
|
|
97
|
+
|
|
98
|
+
### Feedback Loop
|
|
99
|
+
1. **Deploy**: Release agent
|
|
100
|
+
2. **Monitor**: Track usage patterns
|
|
101
|
+
3. **Analyze**: Identify gaps and issues
|
|
102
|
+
4. **Refine**: Update knowledge and patterns
|
|
103
|
+
5. **Iterate**: Continuous improvement
|
|
104
|
+
|
|
105
|
+
### Common Improvements
|
|
106
|
+
- Add missing domain knowledge
|
|
107
|
+
- Refine examples for clarity
|
|
108
|
+
- Improve error handling
|
|
109
|
+
- Optimize context usage
|
|
110
|
+
- Better integration patterns
|
|
111
|
+
|
|
112
|
+
## Example: SQL Optimization Agent
|
|
113
|
+
|
|
114
|
+
**User Request**: "I need an agent that can help with SQL query optimization"
|
|
115
|
+
|
|
116
|
+
**Agent Creation Process**:
|
|
117
|
+
|
|
118
|
+
1. **Requirements**: PostgreSQL/MySQL focus, query analysis, indexing advice
|
|
119
|
+
2. **Persona**: Senior DBA with 20 years experience
|
|
120
|
+
3. **Capabilities**: EXPLAIN analysis, index recommendations, query rewriting
|
|
121
|
+
4. **Structure**: Use technical expert template
|
|
122
|
+
5. **Knowledge**: Common anti-patterns, optimization techniques, example queries
|
|
123
|
+
6. **MCP Tool**: SQL parser and analyzer (optional)
|
|
124
|
+
7. **Documentation**: When to use, example optimizations
|
|
125
|
+
|
|
126
|
+
**Result**: Production-ready SQL optimization agent in ~45 minutes
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# MCP Integration
|
|
2
|
+
|
|
3
|
+
Creating custom MCP servers for agents.
|
|
4
|
+
|
|
5
|
+
## Official Packages
|
|
6
|
+
|
|
7
|
+
| Package | Purpose | Install |
|
|
8
|
+
|---------|---------|---------|
|
|
9
|
+
| `@modelcontextprotocol/sdk` | Core TypeScript SDK | `npm install @modelcontextprotocol/sdk` |
|
|
10
|
+
| `@modelcontextprotocol/create-server` | Scaffold new servers | `npx @modelcontextprotocol/create-server my-server` |
|
|
11
|
+
| `@modelcontextprotocol/inspector` | Test and debug | `npx @modelcontextprotocol/inspector` |
|
|
12
|
+
|
|
13
|
+
## MCP Server Template
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
17
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
18
|
+
|
|
19
|
+
const server = new Server(
|
|
20
|
+
{
|
|
21
|
+
name: "custom-skill-server",
|
|
22
|
+
version: "1.0.0",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
capabilities: {
|
|
26
|
+
tools: {},
|
|
27
|
+
resources: {},
|
|
28
|
+
},
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
// Define tools
|
|
33
|
+
server.setRequestHandler("tools/list", async () => {
|
|
34
|
+
return {
|
|
35
|
+
tools: [
|
|
36
|
+
{
|
|
37
|
+
name: "analyze_code",
|
|
38
|
+
description: "Analyzes code for [specific purpose]",
|
|
39
|
+
inputSchema: {
|
|
40
|
+
type: "object",
|
|
41
|
+
properties: {
|
|
42
|
+
code: { type: "string" },
|
|
43
|
+
language: { type: "string" },
|
|
44
|
+
},
|
|
45
|
+
required: ["code"],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
// Implement tool
|
|
53
|
+
server.setRequestHandler("tools/call", async (request) => {
|
|
54
|
+
const { name, arguments: args } = request.params;
|
|
55
|
+
|
|
56
|
+
if (name === "analyze_code") {
|
|
57
|
+
// Implementation
|
|
58
|
+
return {
|
|
59
|
+
content: [
|
|
60
|
+
{
|
|
61
|
+
type: "text",
|
|
62
|
+
text: "Analysis results...",
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
// Start server
|
|
70
|
+
const transport = new StdioServerTransport();
|
|
71
|
+
await server.connect(transport);
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## MCP Skill Creation Steps
|
|
75
|
+
|
|
76
|
+
### Step 1: Define the Capability
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
// What unique capability does this provide?
|
|
80
|
+
interface SkillCapability {
|
|
81
|
+
name: string;
|
|
82
|
+
description: string;
|
|
83
|
+
inputs: SchemaDefinition;
|
|
84
|
+
outputs: SchemaDefinition;
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Step 2: Design the Interface
|
|
89
|
+
|
|
90
|
+
```typescript
|
|
91
|
+
// Clean, intuitive tool interface
|
|
92
|
+
{
|
|
93
|
+
name: "analyze_quality",
|
|
94
|
+
description: "Analyzes code quality metrics",
|
|
95
|
+
inputSchema: {
|
|
96
|
+
type: "object",
|
|
97
|
+
properties: {
|
|
98
|
+
code: { type: "string", description: "Code to analyze" },
|
|
99
|
+
language: { type: "string", enum: ["python", "javascript", "go"] },
|
|
100
|
+
focus: {
|
|
101
|
+
type: "array",
|
|
102
|
+
items: { type: "string" },
|
|
103
|
+
description: "Aspects to focus on: complexity, security, performance"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
required: ["code", "language"]
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Step 3: Implement Core Logic
|
|
112
|
+
|
|
113
|
+
```typescript
|
|
114
|
+
async function analyzeCode(
|
|
115
|
+
code: string,
|
|
116
|
+
language: string,
|
|
117
|
+
focus: string[]
|
|
118
|
+
): Promise<Analysis> {
|
|
119
|
+
// Implementation using appropriate tools
|
|
120
|
+
// - AST parsing
|
|
121
|
+
// - Pattern matching
|
|
122
|
+
// - Metric calculation
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
score: calculateScore(),
|
|
126
|
+
issues: findIssues(),
|
|
127
|
+
suggestions: generateSuggestions(),
|
|
128
|
+
metrics: computeMetrics()
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Step 4: Package as MCP Server
|
|
134
|
+
|
|
135
|
+
Complete server with:
|
|
136
|
+
- Tool registration
|
|
137
|
+
- Request handling
|
|
138
|
+
- Error management
|
|
139
|
+
- State management (if needed)
|
|
140
|
+
|
|
141
|
+
## Example: Performance Optimizer MCP
|
|
142
|
+
|
|
143
|
+
```typescript
|
|
144
|
+
// performance-optimizer-server.ts
|
|
145
|
+
server.setRequestHandler("tools/list", async () => {
|
|
146
|
+
return {
|
|
147
|
+
tools: [
|
|
148
|
+
{
|
|
149
|
+
name: "analyze_bundle",
|
|
150
|
+
description: "Analyzes bundle composition and suggests optimizations",
|
|
151
|
+
inputSchema: {
|
|
152
|
+
type: "object",
|
|
153
|
+
properties: {
|
|
154
|
+
bundlePath: { type: "string" },
|
|
155
|
+
framework: { type: "string", enum: ["webpack", "vite", "rollup"] }
|
|
156
|
+
},
|
|
157
|
+
required: ["bundlePath"]
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
};
|
|
162
|
+
});
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
## Testing MCP Servers
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
# Start inspector
|
|
169
|
+
npx @modelcontextprotocol/inspector
|
|
170
|
+
|
|
171
|
+
# Test tool invocation
|
|
172
|
+
# Use inspector UI to send requests and verify responses
|
|
173
|
+
```
|