chore(crm): remove the AI agent (service-ai is an enterprise capability)#2319
Merged
Conversation
Mirror the showcase change (#2317): the open-source CRM example shouldn't define an AI agent that requires the enterprise @objectstack/service-ai runtime. - delete src/agents/ (SalesAssistantAgent + DealManagementSkill + LookupContactTool) and its config wiring (agents / skills) plus the unused referenceMetadata export; - remove the @objectstack/service-ai dependency (added in #2311 to back the agent). crm now boots as a Community-Edition shape: no AI service registered, discovery reports services.ai unavailable, /api/v1/ai/agents 404. tsc --noEmit + all 29 crm tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Why
Same as the showcase (#2317):
@objectstack/service-aiis an enterprise capability, so the open-source CRM example shouldn't define an AI agent that requires it.What
src/agents/(SalesAssistantAgent+DealManagementSkill+LookupContactTool) and remove theagents/skillswiring fromobjectstack.config.ts, plus the now-empty, unusedreferenceMetadataexport that only held the AI tool.@objectstack/service-aidependency (reverts feat(cli): make the AI service opt-in via a declared dependency (Community-Edition support) #2311's crm addition).Verification (worktree, fresh runtime)
tsc --noEmitclean; all 29 crm tests pass (smoke.test.tsdoesn't assert agents, so no test change needed).services.ai: { enabled: false, status: "unavailable" },/api/v1/ai/agents→404, AIService not in the plugin list.With this, both open-source examples (showcase + crm) are Community-Edition-shaped — no AI.
🤖 Generated with Claude Code