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.
Files changed (629) hide show
  1. astromesh-0.17.4/.agents/skills/agent-creator/CHANGELOG.md +28 -0
  2. astromesh-0.17.4/.agents/skills/agent-creator/SKILL.md +159 -0
  3. astromesh-0.17.4/.agents/skills/agent-creator/references/agent-templates.md +163 -0
  4. astromesh-0.17.4/.agents/skills/agent-creator/references/creation-process.md +126 -0
  5. astromesh-0.17.4/.agents/skills/agent-creator/references/mcp-integration.md +173 -0
  6. astromesh-0.17.4/.agents/skills/changelog-automation/SKILL.md +580 -0
  7. astromesh-0.17.4/.agents/skills/fastapi-expert/SKILL.md +185 -0
  8. astromesh-0.17.4/.agents/skills/fastapi-expert/references/async-sqlalchemy.md +146 -0
  9. astromesh-0.17.4/.agents/skills/fastapi-expert/references/authentication.md +159 -0
  10. astromesh-0.17.4/.agents/skills/fastapi-expert/references/endpoints-routing.md +142 -0
  11. astromesh-0.17.4/.agents/skills/fastapi-expert/references/migration-from-django.md +997 -0
  12. astromesh-0.17.4/.agents/skills/fastapi-expert/references/pydantic-v2.md +135 -0
  13. astromesh-0.17.4/.agents/skills/fastapi-expert/references/testing-async.md +159 -0
  14. astromesh-0.17.4/.agents/skills/llm-app-patterns/SKILL.md +760 -0
  15. astromesh-0.17.4/.agents/skills/prompt-engineer/SKILL.md +93 -0
  16. astromesh-0.17.4/.claude/settings.local.json +40 -0
  17. astromesh-0.17.4/.claude/skills/agent-creator/CHANGELOG.md +28 -0
  18. astromesh-0.17.4/.claude/skills/agent-creator/SKILL.md +159 -0
  19. astromesh-0.17.4/.claude/skills/agent-creator/references/agent-templates.md +163 -0
  20. astromesh-0.17.4/.claude/skills/agent-creator/references/creation-process.md +126 -0
  21. astromesh-0.17.4/.claude/skills/agent-creator/references/mcp-integration.md +173 -0
  22. astromesh-0.17.4/.claude/skills/changelog-automation/SKILL.md +580 -0
  23. astromesh-0.17.4/.claude/skills/fastapi-expert/SKILL.md +185 -0
  24. astromesh-0.17.4/.claude/skills/fastapi-expert/references/async-sqlalchemy.md +146 -0
  25. astromesh-0.17.4/.claude/skills/fastapi-expert/references/authentication.md +159 -0
  26. astromesh-0.17.4/.claude/skills/fastapi-expert/references/endpoints-routing.md +142 -0
  27. astromesh-0.17.4/.claude/skills/fastapi-expert/references/migration-from-django.md +997 -0
  28. astromesh-0.17.4/.claude/skills/fastapi-expert/references/pydantic-v2.md +135 -0
  29. astromesh-0.17.4/.claude/skills/fastapi-expert/references/testing-async.md +159 -0
  30. astromesh-0.17.4/.claude/skills/llm-app-patterns/SKILL.md +760 -0
  31. astromesh-0.17.4/.claude/skills/prompt-engineer/SKILL.md +93 -0
  32. astromesh-0.17.4/.dockerignore +31 -0
  33. astromesh-0.17.4/.github/CODEOWNERS +14 -0
  34. astromesh-0.17.4/.github/workflows/ci.yml +56 -0
  35. astromesh-0.17.4/.github/workflows/docs.yml +67 -0
  36. astromesh-0.17.4/.github/workflows/release-adk.yml +141 -0
  37. astromesh-0.17.4/.github/workflows/release-pypi.yml +142 -0
  38. astromesh-0.17.4/.github/workflows/release.yml +177 -0
  39. astromesh-0.17.4/.gitignore +36 -0
  40. astromesh-0.17.4/CHANGELOG.md +637 -0
  41. astromesh-0.17.4/CLAUDE.md +97 -0
  42. astromesh-0.17.4/CODE_OF_CONDUCT.md +57 -0
  43. astromesh-0.17.4/CONTRIBUTING.md +145 -0
  44. astromesh-0.17.4/Cargo.lock +283 -0
  45. astromesh-0.17.4/Cargo.toml +3 -0
  46. astromesh-0.17.4/Dockerfile +74 -0
  47. astromesh-0.17.4/GOVERNANCE.md +113 -0
  48. astromesh-0.17.4/LICENSE +201 -0
  49. astromesh-0.17.4/Makefile +37 -0
  50. astromesh-0.17.4/NOTICE.md +92 -0
  51. astromesh-0.17.4/PKG-INFO +526 -0
  52. astromesh-0.17.4/README.md +461 -0
  53. astromesh-0.17.4/SECURITY.md +74 -0
  54. astromesh-0.17.4/assets/astromesh-logo.png +0 -0
  55. astromesh-0.17.4/astromesh/__init__.py +3 -0
  56. astromesh-0.17.4/astromesh/api/__init__.py +0 -0
  57. astromesh-0.17.4/astromesh/api/main.py +36 -0
  58. astromesh-0.17.4/astromesh/api/routes/__init__.py +0 -0
  59. astromesh-0.17.4/astromesh/api/routes/agents.py +115 -0
  60. astromesh-0.17.4/astromesh/api/routes/dashboard.py +112 -0
  61. astromesh-0.17.4/astromesh/api/routes/memory.py +41 -0
  62. astromesh-0.17.4/astromesh/api/routes/mesh.py +88 -0
  63. astromesh-0.17.4/astromesh/api/routes/metrics.py +45 -0
  64. astromesh-0.17.4/astromesh/api/routes/rag.py +25 -0
  65. astromesh-0.17.4/astromesh/api/routes/system.py +120 -0
  66. astromesh-0.17.4/astromesh/api/routes/tools.py +39 -0
  67. astromesh-0.17.4/astromesh/api/routes/traces.py +32 -0
  68. astromesh-0.17.4/astromesh/api/routes/whatsapp.py +77 -0
  69. astromesh-0.17.4/astromesh/api/routes/workflows.py +73 -0
  70. astromesh-0.17.4/astromesh/api/ws.py +60 -0
  71. astromesh-0.17.4/astromesh/channels/__init__.py +3 -0
  72. astromesh-0.17.4/astromesh/channels/base.py +54 -0
  73. astromesh-0.17.4/astromesh/channels/media.py +80 -0
  74. astromesh-0.17.4/astromesh/channels/whatsapp.py +125 -0
  75. astromesh-0.17.4/astromesh/core/__init__.py +0 -0
  76. astromesh-0.17.4/astromesh/core/guardrails.py +90 -0
  77. astromesh-0.17.4/astromesh/core/memory.py +155 -0
  78. astromesh-0.17.4/astromesh/core/model_router.py +192 -0
  79. astromesh-0.17.4/astromesh/core/prompt_engine.py +30 -0
  80. astromesh-0.17.4/astromesh/core/tools.py +238 -0
  81. astromesh-0.17.4/astromesh/mcp/__init__.py +0 -0
  82. astromesh-0.17.4/astromesh/mcp/client.py +89 -0
  83. astromesh-0.17.4/astromesh/mcp/server.py +74 -0
  84. astromesh-0.17.4/astromesh/memory/__init__.py +0 -0
  85. astromesh-0.17.4/astromesh/memory/backends/__init__.py +0 -0
  86. astromesh-0.17.4/astromesh/memory/backends/chroma_sem.py +61 -0
  87. astromesh-0.17.4/astromesh/memory/backends/faiss_sem.py +76 -0
  88. astromesh-0.17.4/astromesh/memory/backends/pg_conv.py +95 -0
  89. astromesh-0.17.4/astromesh/memory/backends/pg_episodic.py +80 -0
  90. astromesh-0.17.4/astromesh/memory/backends/pgvector_sem.py +78 -0
  91. astromesh-0.17.4/astromesh/memory/backends/qdrant_sem.py +78 -0
  92. astromesh-0.17.4/astromesh/memory/backends/redis_conv.py +52 -0
  93. astromesh-0.17.4/astromesh/memory/backends/sqlite_conv.py +83 -0
  94. astromesh-0.17.4/astromesh/memory/strategies/__init__.py +0 -0
  95. astromesh-0.17.4/astromesh/memory/strategies/sliding_window.py +8 -0
  96. astromesh-0.17.4/astromesh/memory/strategies/summary.py +24 -0
  97. astromesh-0.17.4/astromesh/memory/strategies/token_budget.py +29 -0
  98. astromesh-0.17.4/astromesh/mesh/__init__.py +1 -0
  99. astromesh-0.17.4/astromesh/mesh/config.py +36 -0
  100. astromesh-0.17.4/astromesh/mesh/leader.py +48 -0
  101. astromesh-0.17.4/astromesh/mesh/manager.py +175 -0
  102. astromesh-0.17.4/astromesh/mesh/scheduler.py +39 -0
  103. astromesh-0.17.4/astromesh/mesh/state.py +108 -0
  104. astromesh-0.17.4/astromesh/ml/__init__.py +0 -0
  105. astromesh-0.17.4/astromesh/ml/model_registry.py +120 -0
  106. astromesh-0.17.4/astromesh/ml/serving/__init__.py +0 -0
  107. astromesh-0.17.4/astromesh/ml/serving/onnx_runtime.py +49 -0
  108. astromesh-0.17.4/astromesh/ml/serving/torch_serve.py +36 -0
  109. astromesh-0.17.4/astromesh/ml/training/__init__.py +0 -0
  110. astromesh-0.17.4/astromesh/ml/training/classifier.py +43 -0
  111. astromesh-0.17.4/astromesh/ml/training/embeddings.py +36 -0
  112. astromesh-0.17.4/astromesh/observability/__init__.py +0 -0
  113. astromesh-0.17.4/astromesh/observability/collector.py +75 -0
  114. astromesh-0.17.4/astromesh/observability/cost_tracker.py +115 -0
  115. astromesh-0.17.4/astromesh/observability/logging.py +33 -0
  116. astromesh-0.17.4/astromesh/observability/metrics.py +100 -0
  117. astromesh-0.17.4/astromesh/observability/telemetry.py +86 -0
  118. astromesh-0.17.4/astromesh/observability/tracing.py +103 -0
  119. astromesh-0.17.4/astromesh/orchestration/__init__.py +0 -0
  120. astromesh-0.17.4/astromesh/orchestration/patterns.py +185 -0
  121. astromesh-0.17.4/astromesh/orchestration/supervisor.py +55 -0
  122. astromesh-0.17.4/astromesh/orchestration/swarm.py +76 -0
  123. astromesh-0.17.4/astromesh/providers/__init__.py +0 -0
  124. astromesh-0.17.4/astromesh/providers/base.py +83 -0
  125. astromesh-0.17.4/astromesh/providers/factory.py +26 -0
  126. astromesh-0.17.4/astromesh/providers/hf_tgi_provider.py +110 -0
  127. astromesh-0.17.4/astromesh/providers/llamacpp_provider.py +110 -0
  128. astromesh-0.17.4/astromesh/providers/ollama_provider.py +181 -0
  129. astromesh-0.17.4/astromesh/providers/onnx_provider.py +88 -0
  130. astromesh-0.17.4/astromesh/providers/openai_compat.py +139 -0
  131. astromesh-0.17.4/astromesh/providers/vllm_provider.py +113 -0
  132. astromesh-0.17.4/astromesh/rag/__init__.py +0 -0
  133. astromesh-0.17.4/astromesh/rag/chunking/__init__.py +0 -0
  134. astromesh-0.17.4/astromesh/rag/chunking/base.py +6 -0
  135. astromesh-0.17.4/astromesh/rag/chunking/fixed.py +41 -0
  136. astromesh-0.17.4/astromesh/rag/chunking/recursive.py +100 -0
  137. astromesh-0.17.4/astromesh/rag/chunking/semantic.py +75 -0
  138. astromesh-0.17.4/astromesh/rag/chunking/sentence.py +63 -0
  139. astromesh-0.17.4/astromesh/rag/embeddings/__init__.py +0 -0
  140. astromesh-0.17.4/astromesh/rag/embeddings/base.py +9 -0
  141. astromesh-0.17.4/astromesh/rag/embeddings/hf.py +53 -0
  142. astromesh-0.17.4/astromesh/rag/embeddings/ollama.py +40 -0
  143. astromesh-0.17.4/astromesh/rag/embeddings/st.py +28 -0
  144. astromesh-0.17.4/astromesh/rag/pipeline.py +50 -0
  145. astromesh-0.17.4/astromesh/rag/reranking/__init__.py +0 -0
  146. astromesh-0.17.4/astromesh/rag/reranking/base.py +6 -0
  147. astromesh-0.17.4/astromesh/rag/reranking/cohere.py +55 -0
  148. astromesh-0.17.4/astromesh/rag/reranking/cross_encoder.py +33 -0
  149. astromesh-0.17.4/astromesh/rag/stores/__init__.py +0 -0
  150. astromesh-0.17.4/astromesh/rag/stores/base.py +17 -0
  151. astromesh-0.17.4/astromesh/rag/stores/chroma.py +79 -0
  152. astromesh-0.17.4/astromesh/rag/stores/faiss_store.py +98 -0
  153. astromesh-0.17.4/astromesh/rag/stores/pgvector.py +106 -0
  154. astromesh-0.17.4/astromesh/rag/stores/qdrant.py +89 -0
  155. astromesh-0.17.4/astromesh/runtime/__init__.py +0 -0
  156. astromesh-0.17.4/astromesh/runtime/engine.py +340 -0
  157. astromesh-0.17.4/astromesh/runtime/peers.py +97 -0
  158. astromesh-0.17.4/astromesh/runtime/services.py +40 -0
  159. astromesh-0.17.4/astromesh/tools/__init__.py +34 -0
  160. astromesh-0.17.4/astromesh/tools/base.py +54 -0
  161. astromesh-0.17.4/astromesh/tools/builtin/__init__.py +38 -0
  162. astromesh-0.17.4/astromesh/tools/builtin/ai.py +55 -0
  163. astromesh-0.17.4/astromesh/tools/builtin/communication.py +115 -0
  164. astromesh-0.17.4/astromesh/tools/builtin/database.py +76 -0
  165. astromesh-0.17.4/astromesh/tools/builtin/files.py +78 -0
  166. astromesh-0.17.4/astromesh/tools/builtin/http.py +99 -0
  167. astromesh-0.17.4/astromesh/tools/builtin/rag.py +55 -0
  168. astromesh-0.17.4/astromesh/tools/builtin/utilities.py +103 -0
  169. astromesh-0.17.4/astromesh/tools/builtin/web_search.py +115 -0
  170. astromesh-0.17.4/astromesh/workflow/__init__.py +145 -0
  171. astromesh-0.17.4/astromesh/workflow/executor.py +108 -0
  172. astromesh-0.17.4/astromesh/workflow/loader.py +68 -0
  173. astromesh-0.17.4/astromesh/workflow/models.py +104 -0
  174. astromesh-0.17.4/astromesh-adk/astromesh_adk/__init__.py +32 -0
  175. astromesh-0.17.4/astromesh-adk/astromesh_adk/agent.py +253 -0
  176. astromesh-0.17.4/astromesh-adk/astromesh_adk/callbacks.py +23 -0
  177. astromesh-0.17.4/astromesh-adk/astromesh_adk/cli/__init__.py +0 -0
  178. astromesh-0.17.4/astromesh-adk/astromesh_adk/cli/main.py +244 -0
  179. astromesh-0.17.4/astromesh-adk/astromesh_adk/connection.py +66 -0
  180. astromesh-0.17.4/astromesh-adk/astromesh_adk/context.py +96 -0
  181. astromesh-0.17.4/astromesh-adk/astromesh_adk/exceptions.py +91 -0
  182. astromesh-0.17.4/astromesh-adk/astromesh_adk/guardrails.py +40 -0
  183. astromesh-0.17.4/astromesh-adk/astromesh_adk/mcp.py +94 -0
  184. astromesh-0.17.4/astromesh-adk/astromesh_adk/memory.py +45 -0
  185. astromesh-0.17.4/astromesh-adk/astromesh_adk/providers.py +89 -0
  186. astromesh-0.17.4/astromesh-adk/astromesh_adk/result.py +62 -0
  187. astromesh-0.17.4/astromesh-adk/astromesh_adk/runner.py +53 -0
  188. astromesh-0.17.4/astromesh-adk/astromesh_adk/team.py +79 -0
  189. astromesh-0.17.4/astromesh-adk/astromesh_adk/tools.py +137 -0
  190. astromesh-0.17.4/astromesh-adk/examples/multi_agent.py +47 -0
  191. astromesh-0.17.4/astromesh-adk/examples/quickstart.py +20 -0
  192. astromesh-0.17.4/astromesh-adk/examples/tools_example.py +56 -0
  193. astromesh-0.17.4/astromesh-adk/pyproject.toml +34 -0
  194. astromesh-0.17.4/astromesh-adk/tests/__init__.py +0 -0
  195. astromesh-0.17.4/astromesh-adk/tests/conftest.py +3 -0
  196. astromesh-0.17.4/astromesh-adk/tests/test_agent.py +135 -0
  197. astromesh-0.17.4/astromesh-adk/tests/test_callbacks.py +37 -0
  198. astromesh-0.17.4/astromesh-adk/tests/test_cli.py +32 -0
  199. astromesh-0.17.4/astromesh-adk/tests/test_connection.py +55 -0
  200. astromesh-0.17.4/astromesh-adk/tests/test_context.py +51 -0
  201. astromesh-0.17.4/astromesh-adk/tests/test_exceptions.py +66 -0
  202. astromesh-0.17.4/astromesh-adk/tests/test_guardrails_config.py +30 -0
  203. astromesh-0.17.4/astromesh-adk/tests/test_mcp.py +31 -0
  204. astromesh-0.17.4/astromesh-adk/tests/test_memory_config.py +34 -0
  205. astromesh-0.17.4/astromesh-adk/tests/test_providers.py +58 -0
  206. astromesh-0.17.4/astromesh-adk/tests/test_public_api.py +41 -0
  207. astromesh-0.17.4/astromesh-adk/tests/test_result.py +83 -0
  208. astromesh-0.17.4/astromesh-adk/tests/test_team.py +110 -0
  209. astromesh-0.17.4/astromesh-adk/tests/test_tools.py +92 -0
  210. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/__init__.py +0 -0
  211. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/config.py +22 -0
  212. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/database.py +11 -0
  213. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/main.py +49 -0
  214. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/middleware/__init__.py +0 -0
  215. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/middleware/auth.py +12 -0
  216. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/models/__init__.py +23 -0
  217. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/models/agent.py +39 -0
  218. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/models/api_key.py +25 -0
  219. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/models/base.py +69 -0
  220. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/models/organization.py +49 -0
  221. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/models/provider_key.py +21 -0
  222. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/models/usage_log.py +29 -0
  223. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/models/user.py +25 -0
  224. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/routes/__init__.py +0 -0
  225. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/routes/agents.py +264 -0
  226. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/routes/auth.py +65 -0
  227. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/routes/execution.py +161 -0
  228. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/routes/keys.py +202 -0
  229. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/routes/organizations.py +50 -0
  230. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/routes/usage.py +64 -0
  231. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/schemas/__init__.py +0 -0
  232. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/schemas/agent.py +57 -0
  233. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/schemas/auth.py +19 -0
  234. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/schemas/keys.py +27 -0
  235. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/schemas/organization.py +19 -0
  236. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/schemas/usage.py +10 -0
  237. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/services/__init__.py +0 -0
  238. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/services/agent_service.py +56 -0
  239. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/services/auth_service.py +22 -0
  240. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/services/config_builder.py +47 -0
  241. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/services/encryption.py +19 -0
  242. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/services/reconciliation.py +30 -0
  243. astromesh-0.17.4/astromesh-cloud/api/astromesh_cloud/services/runtime_proxy.py +48 -0
  244. astromesh-0.17.4/astromesh-cloud/api/pyproject.toml +40 -0
  245. astromesh-0.17.4/astromesh-cloud/api/tests/__init__.py +0 -0
  246. astromesh-0.17.4/astromesh-cloud/api/tests/conftest.py +39 -0
  247. astromesh-0.17.4/astromesh-cloud/api/tests/test_agent_routes.py +267 -0
  248. astromesh-0.17.4/astromesh-cloud/api/tests/test_auth.py +22 -0
  249. astromesh-0.17.4/astromesh-cloud/api/tests/test_auth_routes.py +11 -0
  250. astromesh-0.17.4/astromesh-cloud/api/tests/test_config_builder.py +21 -0
  251. astromesh-0.17.4/astromesh-cloud/api/tests/test_encryption.py +18 -0
  252. astromesh-0.17.4/astromesh-cloud/api/tests/test_execution_routes.py +296 -0
  253. astromesh-0.17.4/astromesh-cloud/api/tests/test_health.py +4 -0
  254. astromesh-0.17.4/astromesh-cloud/api/tests/test_key_routes.py +216 -0
  255. astromesh-0.17.4/astromesh-cloud/api/tests/test_models.py +175 -0
  256. astromesh-0.17.4/astromesh-cloud/api/tests/test_org_routes.py +16 -0
  257. astromesh-0.17.4/astromesh-cloud/api/tests/test_reconciliation.py +118 -0
  258. astromesh-0.17.4/astromesh-cloud/api/tests/test_runtime_proxy.py +43 -0
  259. astromesh-0.17.4/astromesh-cloud/api/tests/test_schemas.py +11 -0
  260. astromesh-0.17.4/astromesh-cloud/docker-compose.yaml +26 -0
  261. astromesh-0.17.4/astromesh-cloud/web/.gitignore +41 -0
  262. astromesh-0.17.4/astromesh-cloud/web/Dockerfile +15 -0
  263. astromesh-0.17.4/astromesh-cloud/web/README.md +36 -0
  264. astromesh-0.17.4/astromesh-cloud/web/eslint.config.mjs +18 -0
  265. astromesh-0.17.4/astromesh-cloud/web/next.config.ts +7 -0
  266. astromesh-0.17.4/astromesh-cloud/web/package-lock.json +6650 -0
  267. astromesh-0.17.4/astromesh-cloud/web/package.json +29 -0
  268. astromesh-0.17.4/astromesh-cloud/web/postcss.config.mjs +7 -0
  269. astromesh-0.17.4/astromesh-cloud/web/public/file.svg +1 -0
  270. astromesh-0.17.4/astromesh-cloud/web/public/globe.svg +1 -0
  271. astromesh-0.17.4/astromesh-cloud/web/public/next.svg +1 -0
  272. astromesh-0.17.4/astromesh-cloud/web/public/vercel.svg +1 -0
  273. astromesh-0.17.4/astromesh-cloud/web/public/window.svg +1 -0
  274. astromesh-0.17.4/astromesh-cloud/web/src/app/(auth)/login/page.tsx +142 -0
  275. astromesh-0.17.4/astromesh-cloud/web/src/app/(dashboard)/agents/page.tsx +131 -0
  276. astromesh-0.17.4/astromesh-cloud/web/src/app/(dashboard)/layout.tsx +66 -0
  277. astromesh-0.17.4/astromesh-cloud/web/src/app/(dashboard)/settings/keys/page.tsx +373 -0
  278. astromesh-0.17.4/astromesh-cloud/web/src/app/(dashboard)/settings/page.tsx +309 -0
  279. astromesh-0.17.4/astromesh-cloud/web/src/app/(dashboard)/settings/providers/page.tsx +315 -0
  280. astromesh-0.17.4/astromesh-cloud/web/src/app/(dashboard)/studio/[name]/page.tsx +144 -0
  281. astromesh-0.17.4/astromesh-cloud/web/src/app/(dashboard)/studio/page.tsx +6 -0
  282. astromesh-0.17.4/astromesh-cloud/web/src/app/(dashboard)/usage/page.tsx +213 -0
  283. astromesh-0.17.4/astromesh-cloud/web/src/app/favicon.ico +0 -0
  284. astromesh-0.17.4/astromesh-cloud/web/src/app/globals.css +30 -0
  285. astromesh-0.17.4/astromesh-cloud/web/src/app/layout.tsx +21 -0
  286. astromesh-0.17.4/astromesh-cloud/web/src/app/page.tsx +14 -0
  287. astromesh-0.17.4/astromesh-cloud/web/src/components/agent/AgentCard.tsx +162 -0
  288. astromesh-0.17.4/astromesh-cloud/web/src/components/agent/AgentStatus.tsx +49 -0
  289. astromesh-0.17.4/astromesh-cloud/web/src/components/chat/TestChat.tsx +184 -0
  290. astromesh-0.17.4/astromesh-cloud/web/src/components/ui/Badge.tsx +35 -0
  291. astromesh-0.17.4/astromesh-cloud/web/src/components/ui/Button.tsx +57 -0
  292. astromesh-0.17.4/astromesh-cloud/web/src/components/ui/Card.tsx +22 -0
  293. astromesh-0.17.4/astromesh-cloud/web/src/components/ui/Input.tsx +36 -0
  294. astromesh-0.17.4/astromesh-cloud/web/src/components/ui/Sidebar.tsx +63 -0
  295. astromesh-0.17.4/astromesh-cloud/web/src/components/ui/Toggle.tsx +35 -0
  296. astromesh-0.17.4/astromesh-cloud/web/src/components/wizard/StepDeploy.tsx +400 -0
  297. astromesh-0.17.4/astromesh-cloud/web/src/components/wizard/StepIdentity.tsx +161 -0
  298. astromesh-0.17.4/astromesh-cloud/web/src/components/wizard/StepModel.tsx +226 -0
  299. astromesh-0.17.4/astromesh-cloud/web/src/components/wizard/StepSettings.tsx +176 -0
  300. astromesh-0.17.4/astromesh-cloud/web/src/components/wizard/StepTools.tsx +151 -0
  301. astromesh-0.17.4/astromesh-cloud/web/src/components/wizard/WizardShell.tsx +265 -0
  302. astromesh-0.17.4/astromesh-cloud/web/src/lib/api.ts +221 -0
  303. astromesh-0.17.4/astromesh-cloud/web/src/lib/store.ts +112 -0
  304. astromesh-0.17.4/astromesh-cloud/web/src/lib/utils.ts +3 -0
  305. astromesh-0.17.4/astromesh-cloud/web/tailwind.config.ts +32 -0
  306. astromesh-0.17.4/astromesh-cloud/web/tsconfig.json +34 -0
  307. astromesh-0.17.4/cli/__init__.py +1 -0
  308. astromesh-0.17.4/cli/client.py +45 -0
  309. astromesh-0.17.4/cli/commands/__init__.py +0 -0
  310. astromesh-0.17.4/cli/commands/agents.py +41 -0
  311. astromesh-0.17.4/cli/commands/ask.py +109 -0
  312. astromesh-0.17.4/cli/commands/config.py +85 -0
  313. astromesh-0.17.4/cli/commands/dev.py +43 -0
  314. astromesh-0.17.4/cli/commands/doctor.py +44 -0
  315. astromesh-0.17.4/cli/commands/init.py +437 -0
  316. astromesh-0.17.4/cli/commands/mesh.py +105 -0
  317. astromesh-0.17.4/cli/commands/metrics.py +43 -0
  318. astromesh-0.17.4/cli/commands/new.py +168 -0
  319. astromesh-0.17.4/cli/commands/peers.py +38 -0
  320. astromesh-0.17.4/cli/commands/providers.py +38 -0
  321. astromesh-0.17.4/cli/commands/run.py +115 -0
  322. astromesh-0.17.4/cli/commands/services.py +41 -0
  323. astromesh-0.17.4/cli/commands/status.py +22 -0
  324. astromesh-0.17.4/cli/commands/tools.py +65 -0
  325. astromesh-0.17.4/cli/commands/traces.py +52 -0
  326. astromesh-0.17.4/cli/commands/validate.py +138 -0
  327. astromesh-0.17.4/cli/main.py +60 -0
  328. astromesh-0.17.4/cli/output.py +151 -0
  329. astromesh-0.17.4/cli/templates/agent.yaml.j2 +41 -0
  330. astromesh-0.17.4/cli/templates/tool.py.j2 +36 -0
  331. astromesh-0.17.4/cli/templates/workflow.yaml.j2 +31 -0
  332. astromesh-0.17.4/config/agents/astromesh-copilot.agent.yaml +62 -0
  333. astromesh-0.17.4/config/agents/sales-qualifier.agent.yaml +87 -0
  334. astromesh-0.17.4/config/agents/support-agent.agent.yaml +47 -0
  335. astromesh-0.17.4/config/agents/whatsapp-assistant.agent.yaml +74 -0
  336. astromesh-0.17.4/config/channels.yaml +18 -0
  337. astromesh-0.17.4/config/profiles/full.yaml +22 -0
  338. astromesh-0.17.4/config/profiles/gateway.yaml +21 -0
  339. astromesh-0.17.4/config/profiles/inference.yaml +18 -0
  340. astromesh-0.17.4/config/profiles/mesh-gateway.yaml +27 -0
  341. astromesh-0.17.4/config/profiles/mesh-inference.yaml +28 -0
  342. astromesh-0.17.4/config/profiles/mesh-worker.yaml +28 -0
  343. astromesh-0.17.4/config/profiles/worker.yaml +21 -0
  344. astromesh-0.17.4/config/providers.yaml +44 -0
  345. astromesh-0.17.4/config/rag/product-knowledge.rag.yaml +42 -0
  346. astromesh-0.17.4/config/runtime.yaml +12 -0
  347. astromesh-0.17.4/config/workflows/example.workflow.yaml +46 -0
  348. astromesh-0.17.4/daemon/__init__.py +1 -0
  349. astromesh-0.17.4/daemon/astromeshd.py +277 -0
  350. astromesh-0.17.4/deploy/gitops/argocd/applicationset.yaml +39 -0
  351. astromesh-0.17.4/deploy/helm/astromesh/.helmignore +17 -0
  352. astromesh-0.17.4/deploy/helm/astromesh/Chart.yaml +36 -0
  353. astromesh-0.17.4/deploy/helm/astromesh/charts/.gitkeep +0 -0
  354. astromesh-0.17.4/deploy/helm/astromesh/crds/agent.yaml +123 -0
  355. astromesh-0.17.4/deploy/helm/astromesh/crds/channel.yaml +91 -0
  356. astromesh-0.17.4/deploy/helm/astromesh/crds/provider.yaml +106 -0
  357. astromesh-0.17.4/deploy/helm/astromesh/crds/ragpipeline.yaml +107 -0
  358. astromesh-0.17.4/deploy/helm/astromesh/templates/NOTES.txt +26 -0
  359. astromesh-0.17.4/deploy/helm/astromesh/templates/_helpers.tpl +115 -0
  360. astromesh-0.17.4/deploy/helm/astromesh/templates/configmap-agents.yaml +13 -0
  361. astromesh-0.17.4/deploy/helm/astromesh/templates/configmap-channels.yaml +9 -0
  362. astromesh-0.17.4/deploy/helm/astromesh/templates/configmap-providers.yaml +9 -0
  363. astromesh-0.17.4/deploy/helm/astromesh/templates/configmap-runtime.yaml +9 -0
  364. astromesh-0.17.4/deploy/helm/astromesh/templates/deployment-tei.yaml +69 -0
  365. astromesh-0.17.4/deploy/helm/astromesh/templates/deployment-vllm.yaml +67 -0
  366. astromesh-0.17.4/deploy/helm/astromesh/templates/deployment.yaml +165 -0
  367. astromesh-0.17.4/deploy/helm/astromesh/templates/external-secret.yaml +30 -0
  368. astromesh-0.17.4/deploy/helm/astromesh/templates/hpa.yaml +22 -0
  369. astromesh-0.17.4/deploy/helm/astromesh/templates/ingress.yaml +41 -0
  370. astromesh-0.17.4/deploy/helm/astromesh/templates/secret-hf-token.yaml +11 -0
  371. astromesh-0.17.4/deploy/helm/astromesh/templates/secret-store.yaml +11 -0
  372. astromesh-0.17.4/deploy/helm/astromesh/templates/secret.yaml +15 -0
  373. astromesh-0.17.4/deploy/helm/astromesh/templates/service-tei.yaml +24 -0
  374. astromesh-0.17.4/deploy/helm/astromesh/templates/service-vllm.yaml +19 -0
  375. astromesh-0.17.4/deploy/helm/astromesh/templates/service.yaml +21 -0
  376. astromesh-0.17.4/deploy/helm/astromesh/templates/serviceaccount.yaml +13 -0
  377. astromesh-0.17.4/deploy/helm/astromesh/values-dev.yaml +42 -0
  378. astromesh-0.17.4/deploy/helm/astromesh/values-prod.yaml +105 -0
  379. astromesh-0.17.4/deploy/helm/astromesh/values-staging.yaml +33 -0
  380. astromesh-0.17.4/deploy/helm/astromesh/values.yaml +412 -0
  381. astromesh-0.17.4/docker/Dockerfile +16 -0
  382. astromesh-0.17.4/docker/Dockerfile.gpu +18 -0
  383. astromesh-0.17.4/docker/docker-compose.gossip.yml +82 -0
  384. astromesh-0.17.4/docker/docker-compose.mesh.yml +82 -0
  385. astromesh-0.17.4/docker/docker-compose.yaml +126 -0
  386. astromesh-0.17.4/docker/entrypoint.sh +60 -0
  387. astromesh-0.17.4/docker/init.sql +56 -0
  388. astromesh-0.17.4/docker/otel-config.yaml +27 -0
  389. astromesh-0.17.4/docker/prometheus.yml +11 -0
  390. astromesh-0.17.4/docs/ADK_PENDING.md +149 -0
  391. astromesh-0.17.4/docs/ADK_QUICKSTART.md +169 -0
  392. astromesh-0.17.4/docs/ASTROMESH_MAIA.md +305 -0
  393. astromesh-0.17.4/docs/ASTROMESH_NODES.md +198 -0
  394. astromesh-0.17.4/docs/ASTROMESH_OS.md +198 -0
  395. astromesh-0.17.4/docs/CONFIGURATION_GUIDE.md +493 -0
  396. astromesh-0.17.4/docs/DEVELOPER_TOOLS.md +67 -0
  397. astromesh-0.17.4/docs/DEV_QUICKSTART.md +201 -0
  398. astromesh-0.17.4/docs/GENERAL_ARCHITECTURE.md +309 -0
  399. astromesh-0.17.4/docs/INSTALLATION.md +105 -0
  400. astromesh-0.17.4/docs/K8S_ARCHITECTURE.md +201 -0
  401. astromesh-0.17.4/docs/KUBERNETES_DEPLOYMENT.md +577 -0
  402. astromesh-0.17.4/docs/MAIA_GUIDE.md +209 -0
  403. astromesh-0.17.4/docs/NATIVE_ESTENSIONS_RUST.md +88 -0
  404. astromesh-0.17.4/docs/TECH_OVERVIEW.md +279 -0
  405. astromesh-0.17.4/docs/WHATSAPP_INTEGRATION.md +353 -0
  406. astromesh-0.17.4/docs/plans/2026-03-06-astromesh-implementation-plan.md +3056 -0
  407. astromesh-0.17.4/docs/plans/2026-03-06-astromesh-runtime-design.md +392 -0
  408. astromesh-0.17.4/docs/plans/2026-03-06-whatsapp-channel-design.md +118 -0
  409. astromesh-0.17.4/docs/plans/2026-03-09-astromesh-mesh-design.md +345 -0
  410. astromesh-0.17.4/docs/plans/2026-03-09-astromesh-mesh-implementation.md +2694 -0
  411. astromesh-0.17.4/docs/plans/2026-03-09-astromesh-os-design.md +291 -0
  412. astromesh-0.17.4/docs/plans/2026-03-09-astromesh-os-implementation.md +1601 -0
  413. astromesh-0.17.4/docs/plans/2026-03-09-astromesh-os-phase2-design.md +495 -0
  414. astromesh-0.17.4/docs/plans/2026-03-09-astromesh-os-phase2-implementation.md +1642 -0
  415. astromesh-0.17.4/docs/plans/2026-03-09-docs-site-implementation.md +1500 -0
  416. astromesh-0.17.4/docs/plans/2026-03-09-external-secrets-design.md +30 -0
  417. astromesh-0.17.4/docs/plans/2026-03-09-gitops-design.md +40 -0
  418. astromesh-0.17.4/docs/plans/2026-03-09-helm-chart-design.md +213 -0
  419. astromesh-0.17.4/docs/plans/2026-03-09-helm-chart-implementation.md +1203 -0
  420. astromesh-0.17.4/docs/plans/2026-03-09-model-serving-design.md +78 -0
  421. astromesh-0.17.4/docs/plans/2026-03-09-observability-design.md +40 -0
  422. astromesh-0.17.4/docs/plans/2026-03-09-operator-crds-design.md +39 -0
  423. astromesh-0.17.4/docs/superpowers/plans/2026-03-10-builtin-tools-observability.md +3249 -0
  424. astromesh-0.17.4/docs/superpowers/plans/2026-03-10-cli-copilot.md +744 -0
  425. astromesh-0.17.4/docs/superpowers/plans/2026-03-10-multi-agent-enhanced.md +1481 -0
  426. astromesh-0.17.4/docs/superpowers/plans/2026-03-10-vscode-extension.md +2161 -0
  427. astromesh-0.17.4/docs/superpowers/plans/2026-03-10-workflow-dashboard.md +2150 -0
  428. astromesh-0.17.4/docs/superpowers/plans/2026-03-17-astromesh-adk.md +3938 -0
  429. astromesh-0.17.4/docs/superpowers/plans/2026-03-17-astromesh-cloud-api.md +2498 -0
  430. astromesh-0.17.4/docs/superpowers/plans/2026-03-17-astromesh-cloud-runtime-prerequisites.md +604 -0
  431. astromesh-0.17.4/docs/superpowers/plans/2026-03-17-astromesh-cloud-studio.md +879 -0
  432. astromesh-0.17.4/docs/superpowers/specs/2026-03-10-astromesh-ecosystem-design.md +576 -0
  433. astromesh-0.17.4/docs/superpowers/specs/2026-03-17-astromesh-adk-design.md +807 -0
  434. astromesh-0.17.4/docs/superpowers/specs/2026-03-17-astromesh-cloud-design.md +447 -0
  435. astromesh-0.17.4/docs-site/astro.config.mjs +113 -0
  436. astromesh-0.17.4/docs-site/package-lock.json +7308 -0
  437. astromesh-0.17.4/docs-site/package.json +15 -0
  438. astromesh-0.17.4/docs-site/public/astromesh-logo.png +0 -0
  439. astromesh-0.17.4/docs-site/src/components/ADKShowcase.astro +570 -0
  440. astromesh-0.17.4/docs-site/src/components/AgentExample.astro +207 -0
  441. astromesh-0.17.4/docs-site/src/components/DeploymentTabs.astro +240 -0
  442. astromesh-0.17.4/docs-site/src/components/DevToolkit.astro +513 -0
  443. astromesh-0.17.4/docs-site/src/components/FeatureCards.astro +374 -0
  444. astromesh-0.17.4/docs-site/src/components/PipelineDiagram.astro +336 -0
  445. astromesh-0.17.4/docs-site/src/components/SocialIcons.astro +161 -0
  446. astromesh-0.17.4/docs-site/src/components/StatusBadges.astro +105 -0
  447. astromesh-0.17.4/docs-site/src/components/ThemeSelect.astro +4 -0
  448. astromesh-0.17.4/docs-site/src/content/config.ts +6 -0
  449. astromesh-0.17.4/docs-site/src/content/docs/adk/cli-reference.mdx +54 -0
  450. astromesh-0.17.4/docs-site/src/content/docs/adk/creating-tools.mdx +68 -0
  451. astromesh-0.17.4/docs-site/src/content/docs/adk/defining-agents.mdx +53 -0
  452. astromesh-0.17.4/docs-site/src/content/docs/adk/introduction.mdx +37 -0
  453. astromesh-0.17.4/docs-site/src/content/docs/adk/multi-agent.mdx +69 -0
  454. astromesh-0.17.4/docs-site/src/content/docs/adk/quickstart.mdx +52 -0
  455. astromesh-0.17.4/docs-site/src/content/docs/adk/remote-execution.mdx +43 -0
  456. astromesh-0.17.4/docs-site/src/content/docs/advanced/maia-internals.md +281 -0
  457. astromesh-0.17.4/docs-site/src/content/docs/advanced/observability.md +445 -0
  458. astromesh-0.17.4/docs-site/src/content/docs/advanced/rust-extensions.md +228 -0
  459. astromesh-0.17.4/docs-site/src/content/docs/advanced/whatsapp.md +286 -0
  460. astromesh-0.17.4/docs-site/src/content/docs/architecture/agent-pipeline.md +557 -0
  461. astromesh-0.17.4/docs-site/src/content/docs/architecture/four-layer-design.md +419 -0
  462. astromesh-0.17.4/docs-site/src/content/docs/architecture/k8s-architecture.md +648 -0
  463. astromesh-0.17.4/docs-site/src/content/docs/architecture/overview.md +230 -0
  464. astromesh-0.17.4/docs-site/src/content/docs/configuration/agent-yaml.md +322 -0
  465. astromesh-0.17.4/docs-site/src/content/docs/configuration/channels.md +168 -0
  466. astromesh-0.17.4/docs-site/src/content/docs/configuration/init-wizard.md +226 -0
  467. astromesh-0.17.4/docs-site/src/content/docs/configuration/multi-agent.md +482 -0
  468. astromesh-0.17.4/docs-site/src/content/docs/configuration/profiles.md +354 -0
  469. astromesh-0.17.4/docs-site/src/content/docs/configuration/providers.md +322 -0
  470. astromesh-0.17.4/docs-site/src/content/docs/configuration/runtime-config.md +260 -0
  471. astromesh-0.17.4/docs-site/src/content/docs/deployment/argocd-gitops.md +609 -0
  472. astromesh-0.17.4/docs-site/src/content/docs/deployment/astromesh-os.md +655 -0
  473. astromesh-0.17.4/docs-site/src/content/docs/deployment/docker-maia-gpu.md +562 -0
  474. astromesh-0.17.4/docs-site/src/content/docs/deployment/docker-maia.md +475 -0
  475. astromesh-0.17.4/docs-site/src/content/docs/deployment/docker-single.md +497 -0
  476. astromesh-0.17.4/docs-site/src/content/docs/deployment/helm-kubernetes.md +905 -0
  477. astromesh-0.17.4/docs-site/src/content/docs/deployment/standalone.md +449 -0
  478. astromesh-0.17.4/docs-site/src/content/docs/getting-started/developer-tools.md +150 -0
  479. astromesh-0.17.4/docs-site/src/content/docs/getting-started/first-agent.md +480 -0
  480. astromesh-0.17.4/docs-site/src/content/docs/getting-started/installation.md +222 -0
  481. astromesh-0.17.4/docs-site/src/content/docs/getting-started/quickstart.md +243 -0
  482. astromesh-0.17.4/docs-site/src/content/docs/getting-started/what-is-astromesh.md +151 -0
  483. astromesh-0.17.4/docs-site/src/content/docs/index.mdx +58 -0
  484. astromesh-0.17.4/docs-site/src/content/docs/reference/api-endpoints.md +751 -0
  485. astromesh-0.17.4/docs-site/src/content/docs/reference/cli-commands.md +284 -0
  486. astromesh-0.17.4/docs-site/src/content/docs/reference/core/builtin-tools.md +335 -0
  487. astromesh-0.17.4/docs-site/src/content/docs/reference/core/memory-manager.md +183 -0
  488. astromesh-0.17.4/docs-site/src/content/docs/reference/core/model-router.md +166 -0
  489. astromesh-0.17.4/docs-site/src/content/docs/reference/core/runtime-engine.md +168 -0
  490. astromesh-0.17.4/docs-site/src/content/docs/reference/core/tool-registry.md +306 -0
  491. astromesh-0.17.4/docs-site/src/content/docs/reference/env-vars.md +97 -0
  492. astromesh-0.17.4/docs-site/src/content/docs/reference/mesh/gossip-protocol.md +138 -0
  493. astromesh-0.17.4/docs-site/src/content/docs/reference/mesh/scheduling.md +189 -0
  494. astromesh-0.17.4/docs-site/src/content/docs/reference/os/cli.md +454 -0
  495. astromesh-0.17.4/docs-site/src/content/docs/reference/os/daemon.md +160 -0
  496. astromesh-0.17.4/docs-site/src/content/docs/reference/os/vscode-extension.md +98 -0
  497. astromesh-0.17.4/docs-site/src/styles/custom.css +96 -0
  498. astromesh-0.17.4/docs-site/tsconfig.json +3 -0
  499. astromesh-0.17.4/native/Cargo.toml +15 -0
  500. astromesh-0.17.4/native/src/chunking.rs +334 -0
  501. astromesh-0.17.4/native/src/cost_tracker.rs +74 -0
  502. astromesh-0.17.4/native/src/guardrails.rs +71 -0
  503. astromesh-0.17.4/native/src/json_parser.rs +41 -0
  504. astromesh-0.17.4/native/src/lib.rs +35 -0
  505. astromesh-0.17.4/native/src/ratelimit.rs +43 -0
  506. astromesh-0.17.4/native/src/routing.rs +86 -0
  507. astromesh-0.17.4/native/src/tokens.rs +35 -0
  508. astromesh-0.17.4/nfpm.yaml +53 -0
  509. astromesh-0.17.4/packaging/build-deb.sh +43 -0
  510. astromesh-0.17.4/packaging/get-astromesh.sh +200 -0
  511. astromesh-0.17.4/packaging/install.sh +67 -0
  512. astromesh-0.17.4/packaging/scripts/postinstall.sh +27 -0
  513. astromesh-0.17.4/packaging/scripts/postremove.sh +20 -0
  514. astromesh-0.17.4/packaging/scripts/preinstall.sh +16 -0
  515. astromesh-0.17.4/packaging/scripts/preremove.sh +11 -0
  516. astromesh-0.17.4/packaging/systemd/astromeshd.service +31 -0
  517. astromesh-0.17.4/pyproject.toml +80 -0
  518. astromesh-0.17.4/recipes/dev-full.yml +96 -0
  519. astromesh-0.17.4/recipes/mesh-3node.yml +87 -0
  520. astromesh-0.17.4/recipes/mesh-gpu.yml +93 -0
  521. astromesh-0.17.4/recipes/single-node.yml +40 -0
  522. astromesh-0.17.4/skills-lock.json +30 -0
  523. astromesh-0.17.4/tests/__init__.py +0 -0
  524. astromesh-0.17.4/tests/benchmarks/__init__.py +0 -0
  525. astromesh-0.17.4/tests/benchmarks/bench_chunking.py +48 -0
  526. astromesh-0.17.4/tests/benchmarks/bench_cost.py +25 -0
  527. astromesh-0.17.4/tests/benchmarks/bench_guardrails.py +33 -0
  528. astromesh-0.17.4/tests/benchmarks/bench_json.py +27 -0
  529. astromesh-0.17.4/tests/benchmarks/bench_ratelimit.py +20 -0
  530. astromesh-0.17.4/tests/benchmarks/bench_routing.py +20 -0
  531. astromesh-0.17.4/tests/benchmarks/bench_tokens.py +36 -0
  532. astromesh-0.17.4/tests/conftest.py +11 -0
  533. astromesh-0.17.4/tests/test_agent_as_tool.py +472 -0
  534. astromesh-0.17.4/tests/test_ai_tool.py +95 -0
  535. astromesh-0.17.4/tests/test_all_tools_registry.py +55 -0
  536. astromesh-0.17.4/tests/test_api.py +82 -0
  537. astromesh-0.17.4/tests/test_builtin_tools.py +157 -0
  538. astromesh-0.17.4/tests/test_channels.py +256 -0
  539. astromesh-0.17.4/tests/test_cli.py +201 -0
  540. astromesh-0.17.4/tests/test_cli_ask.py +66 -0
  541. astromesh-0.17.4/tests/test_cli_mesh.py +79 -0
  542. astromesh-0.17.4/tests/test_cli_new.py +113 -0
  543. astromesh-0.17.4/tests/test_cli_run.py +88 -0
  544. astromesh-0.17.4/tests/test_cli_run_workflow.py +71 -0
  545. astromesh-0.17.4/tests/test_cli_tools.py +53 -0
  546. astromesh-0.17.4/tests/test_cli_traces.py +86 -0
  547. astromesh-0.17.4/tests/test_cli_validate.py +43 -0
  548. astromesh-0.17.4/tests/test_comm_tools.py +174 -0
  549. astromesh-0.17.4/tests/test_context_transform.py +119 -0
  550. astromesh-0.17.4/tests/test_daemon.py +132 -0
  551. astromesh-0.17.4/tests/test_daemon_integration.py +63 -0
  552. astromesh-0.17.4/tests/test_daemon_mesh.py +54 -0
  553. astromesh-0.17.4/tests/test_dashboard_api.py +47 -0
  554. astromesh-0.17.4/tests/test_database_tool.py +43 -0
  555. astromesh-0.17.4/tests/test_dynamic_agents.py +88 -0
  556. astromesh-0.17.4/tests/test_engine.py +61 -0
  557. astromesh-0.17.4/tests/test_engine_builtin.py +41 -0
  558. astromesh-0.17.4/tests/test_engine_services.py +71 -0
  559. astromesh-0.17.4/tests/test_file_tools.py +49 -0
  560. astromesh-0.17.4/tests/test_guardrails.py +54 -0
  561. astromesh-0.17.4/tests/test_init.py +246 -0
  562. astromesh-0.17.4/tests/test_integration.py +175 -0
  563. astromesh-0.17.4/tests/test_mcp.py +63 -0
  564. astromesh-0.17.4/tests/test_memory.py +96 -0
  565. astromesh-0.17.4/tests/test_memory_backends.py +305 -0
  566. astromesh-0.17.4/tests/test_mesh_api.py +118 -0
  567. astromesh-0.17.4/tests/test_mesh_config.py +72 -0
  568. astromesh-0.17.4/tests/test_mesh_full_integration.py +166 -0
  569. astromesh-0.17.4/tests/test_mesh_integration.py +119 -0
  570. astromesh-0.17.4/tests/test_mesh_leader.py +102 -0
  571. astromesh-0.17.4/tests/test_mesh_manager.py +208 -0
  572. astromesh-0.17.4/tests/test_mesh_scheduler.py +119 -0
  573. astromesh-0.17.4/tests/test_mesh_state.py +135 -0
  574. astromesh-0.17.4/tests/test_metrics_api.py +93 -0
  575. astromesh-0.17.4/tests/test_ml.py +65 -0
  576. astromesh-0.17.4/tests/test_model_router.py +269 -0
  577. astromesh-0.17.4/tests/test_native_chunking.py +93 -0
  578. astromesh-0.17.4/tests/test_native_cost.py +37 -0
  579. astromesh-0.17.4/tests/test_native_guardrails.py +63 -0
  580. astromesh-0.17.4/tests/test_native_ratelimit.py +37 -0
  581. astromesh-0.17.4/tests/test_native_routing.py +54 -0
  582. astromesh-0.17.4/tests/test_native_tokens.py +44 -0
  583. astromesh-0.17.4/tests/test_observability.py +96 -0
  584. astromesh-0.17.4/tests/test_patterns.py +151 -0
  585. astromesh-0.17.4/tests/test_peers.py +99 -0
  586. astromesh-0.17.4/tests/test_peers_mesh.py +114 -0
  587. astromesh-0.17.4/tests/test_prompt_engine.py +45 -0
  588. astromesh-0.17.4/tests/test_providers.py +197 -0
  589. astromesh-0.17.4/tests/test_rag.py +56 -0
  590. astromesh-0.17.4/tests/test_rag_tools.py +110 -0
  591. astromesh-0.17.4/tests/test_services.py +51 -0
  592. astromesh-0.17.4/tests/test_supervisor_agents.py +108 -0
  593. astromesh-0.17.4/tests/test_swarm_agents.py +125 -0
  594. astromesh-0.17.4/tests/test_system_api.py +140 -0
  595. astromesh-0.17.4/tests/test_tool_base.py +80 -0
  596. astromesh-0.17.4/tests/test_tools.py +91 -0
  597. astromesh-0.17.4/tests/test_traces_api.py +45 -0
  598. astromesh-0.17.4/tests/test_tracing.py +160 -0
  599. astromesh-0.17.4/tests/test_web_tools.py +78 -0
  600. astromesh-0.17.4/tests/test_whatsapp.py +438 -0
  601. astromesh-0.17.4/tests/test_workflow_api.py +91 -0
  602. astromesh-0.17.4/tests/test_workflow_engine.py +224 -0
  603. astromesh-0.17.4/tests/test_workflow_executor.py +169 -0
  604. astromesh-0.17.4/tests/test_workflow_loader.py +162 -0
  605. astromesh-0.17.4/tests/test_workflow_models.py +132 -0
  606. astromesh-0.17.4/vscode-extension/.gitignore +3 -0
  607. astromesh-0.17.4/vscode-extension/.vscodeignore +7 -0
  608. astromesh-0.17.4/vscode-extension/README.md +41 -0
  609. astromesh-0.17.4/vscode-extension/esbuild.js +19 -0
  610. astromesh-0.17.4/vscode-extension/package-lock.json +4255 -0
  611. astromesh-0.17.4/vscode-extension/package.json +84 -0
  612. astromesh-0.17.4/vscode-extension/schemas/agent.schema.json +499 -0
  613. astromesh-0.17.4/vscode-extension/schemas/workflow.schema.json +210 -0
  614. astromesh-0.17.4/vscode-extension/src/cli.ts +69 -0
  615. astromesh-0.17.4/vscode-extension/src/commands/copilot.ts +41 -0
  616. astromesh-0.17.4/vscode-extension/src/commands/diagnostics.ts +32 -0
  617. astromesh-0.17.4/vscode-extension/src/commands/runAgent.ts +44 -0
  618. astromesh-0.17.4/vscode-extension/src/commands/runWorkflow.ts +45 -0
  619. astromesh-0.17.4/vscode-extension/src/extension.ts +59 -0
  620. astromesh-0.17.4/vscode-extension/src/statusBar.ts +38 -0
  621. astromesh-0.17.4/vscode-extension/src/views/metricsPanel.ts +53 -0
  622. astromesh-0.17.4/vscode-extension/src/views/tracesProvider.ts +90 -0
  623. astromesh-0.17.4/vscode-extension/src/views/workflowPanel.ts +72 -0
  624. astromesh-0.17.4/vscode-extension/test/suite/cli.test.ts +28 -0
  625. astromesh-0.17.4/vscode-extension/test/suite/traces.test.ts +29 -0
  626. astromesh-0.17.4/vscode-extension/tsconfig.json +16 -0
  627. astromesh-0.17.4/vscode-extension/webview/copilot.html +71 -0
  628. astromesh-0.17.4/vscode-extension/webview/metrics.html +60 -0
  629. 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
+ ```