Skip to content

Commit eaaa345

Browse files
os-zhuangclaude
andauthored
chore(crm): remove the AI agent — service-ai is an enterprise capability (#2319)
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>
1 parent 17d0ed4 commit eaaa345

5 files changed

Lines changed: 0 additions & 79 deletions

File tree

examples/app-crm/objectstack.config.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ import * as actions from './src/actions/index.js';
1313
import * as emails from './src/emails/index.js';
1414
import { allHooks } from './src/hooks/index.js';
1515
import { allFlows } from './src/flows/index.js';
16-
import {
17-
SalesAssistantAgent,
18-
LookupContactTool,
19-
DealManagementSkill,
20-
} from './src/agents/index.js';
2116
import {
2217
SalesRepRole,
2318
SalesManagerRole,
@@ -136,19 +131,6 @@ export default defineStack({
136131
// Integrations
137132
connectors: [HubSpotConnector, SlackConnector],
138133

139-
// AI
140-
agents: [SalesAssistantAgent],
141-
skills: [DealManagementSkill],
142-
143134
// Seed data
144135
data: CrmSeedData,
145136
});
146-
147-
/**
148-
* Reference templates for metadata types not (yet) wired into a
149-
* top-level defineStack collection. The Studio metadata-admin UI
150-
* can copy from these when authoring.
151-
*/
152-
export const referenceMetadata = {
153-
tools: [LookupContactTool],
154-
};

examples/app-crm/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
},
2121
"dependencies": {
2222
"@objectstack/runtime": "workspace:*",
23-
"@objectstack/service-ai": "workspace:*",
2423
"@objectstack/spec": "workspace:*"
2524
},
2625
"devDependencies": {

examples/app-crm/src/agents/index.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/app-crm/src/agents/sales-assistant.agent.ts

Lines changed: 0 additions & 50 deletions
This file was deleted.

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)