feat: Integration ecosystem refactor — monorepo, shared core, multi-account#4
Closed
feat: Integration ecosystem refactor — monorepo, shared core, multi-account#4
Conversation
…nd comprehensive QA test plans Integration & MCP: - Add multi-account support for integration settings and MCP servers (account_alias, is_default columns with composite unique keys) - Expand IntegrationController with full CRUD for multi-account setups - Update IntegrationSettingCredentialResolver to resolve by account alias - Refactor McpServerRegistrar and McpToolProvider for improved registration - Split composer path repo: ../integrations/core + ../integrations/packages/* Provider & config: - Update DynamicProviderResolver and GlmPrismGateway for latest relay - Update config/integrations.php and config/prism.php with new provider entries - Clean up AppServiceProvider registration Services: - Update LuaApiDocGenerator with improved catalog building - Update AgentChatService and OpenCompanyLuaToolInvoker - Add workspace-scoped tool meta lookup in LuaBridge Docs: - Add comprehensive docs/ecosystem/ with integration docs, iris analysis, and kosmokrator architecture/audit/research/proposal docs - Add QA test strategy and feature test map covering the full git tree: integration refactor, file management, automations, chat UI, Telegram forwarding, LLM providers, security hardening, and uncommitted changes Tests: - Update ChannelConversationLoaderTest and DynamicProviderResolverTest
Contributor
Author
|
Superseded by #6, which merges the integration ecosystem refactor and runtime memory alignment work on the integrated \ branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fundamental restructuring of how integrations are organized, shared, and loaded. Four commits that extract shared logic into a new
integration-corepackage, decompose the monolithicToolRegistryinto 15 provider classes, consolidate 13 integration packages into a sibling monorepo, and add multi-account support.99 files changed, +20,111 / -5,965 lines.
Commits
1.
4cffd75— Integration package ecosystem overhaul (Mar 30)The big refactor. 28 files, ~5300 lines changed.
ToolRegistrysplit into 15BuiltInToolProviderclasses underapp/Agents/Tools/Providers/. Each registers a named group of tools (agents, automations, calendar, chat, docs, files, lists, lua, memory, svg, system, tables, tasks, workspace).integration-corepackage — Framework-agnostic contracts (Tool,ToolProvider,CredentialResolver,ConfigurableIntegration) extracted into shared package. ProvidesToolProviderRegistry,LuaCatalogBuilder,LuaDocRenderer,LuaBridge.LuaBridgehandles both newIntegrationCore\Contracts\Tooland legacyLaravel\Ai\Contracts\Tool.tmp/integrations/.DIRECT_TOOL_GROUPS(tasks, system, agents, memory, lua) registered as direct AI tools. Everything else vialua_exec.2.
24e2cc8— Share Lua core via integration-core (Apr 1)Shared Lua infrastructure extracted from app into
integration-core.LuaApiDocGenerator— 576 lines of doc generation moved toLuaCatalogBuilder+LuaDocRenderer. App class now thin delegate (~180 lines).LuaBridge— Call routing, snake_case→camelCase, positional arg mapping moved to shared class. App wraps withOpenCompanyLuaToolInvoker.OpenCompanyLuaToolInvoker— New class implementingLuaToolInvokercontract. Dual dispatch, JSON auto-decoding.DynamicProviderResolver— Hardcoded provider URLs/models →ProviderMetalookups fromprism-relay.AppServiceProvider— 40+ lines of inline Prism provider registration removed. Now handled byPrismRelayServiceProvider.config/integrations.php— Hardcoded URLs →ProviderMetaclass constants.3.
df74cb3— Move integrations monorepo to sibling directory (Apr 5)Path relocation.
tmp/integrations/→../integrations/. Updatedcomposer.json, CI workflow, and Claude commands.4.
c4bbbfc— Multi-account integrations, MCP, ecosystem docs, QA plans (Apr 7)Uncommitted work from the tree.
account_alias+is_defaultcolumns onintegration_settingsandmcp_servers. Composite unique keys. ExpandedIntegrationControllerwith full CRUD for multi-account setups.McpServerRegistrarandMcpToolProviderrefactored.../integrations/core+../integrations/packages/*(replaces single wildcard).docs/ecosystem/with integration docs, iris analysis, kosmokrator audit/research/proposals.docs/testing/qa-strategy.mdanddocs/testing/feature-test-map.md.Key Architectural Changes
Before
After
Testing Required
Full test plans are in
docs/testing/qa-strategy.mdanddocs/testing/feature-test-map.md. Key areas:P0 — Must test before merge
../integrations/sibling exists,composer installsucceeds, all packages resolvelua_exec)php artisan migratesucceeds, existing settings preserved, new unique keys worklua_read_doc("overview"),lua_read_doc("integrations.clickup"),lua_search_docs(...)all return correct resultsP1 — Should test
config/integrations.phpusesProviderMetaconstants (not hardcoded URLs)../integrations,composer installsucceeds, tests passP2 — Nice to verify
.claude/commands/create-integration.md, verify auto-discoveryapp.mcp.*Migration
../integrations/must exist — App will not boot without it. CI updated accordingly.ToolRegistryAPI changed — Any code directly calling old methods must use new provider-based API.tasks,system,agents,memory,luaare direct AI tools. All other tools are Lua-only (lua_exec).AppServiceProvider. Handled byPrismRelayServiceProvider.