Skip to content

Commit 7ae969e

Browse files
os-zhuangclaude
andauthored
chore(showcase): remove the AI agent (service-ai is an enterprise capability) (#2317)
* chore: bump objectui to 8a3b351a5a32 fix(console): gate the AI surface on the service-ai capability, not the agent catalog (#1992) objectui@8a3b351a5a320e6769a1616e85a6fd05aabd3279 * chore(showcase): remove the AI agent — service-ai is an enterprise capability The showcase defined a `showcase_assistant` agent + a skill + two tools, all of which need the enterprise `@objectstack/service-ai` runtime to be served. The open-source showcase shouldn't require an enterprise capability, so drop the AI block entirely: - delete `src/agents/index.ts` (agent + skill + tools) and its config wiring (`agents` / `skills` / `tools`); - remove the `@objectstack/service-ai` dependency (added in #2311 to back the agent — no longer needed); - drop the descriptive `ai` entry from the coverage map and update the seed test (`agents.length` 1 → 0). The showcase now boots as a Community-Edition shape: no AI service is registered, discovery reports `services.ai` unavailable, and `/api/v1/ai/agents` 404s — so the console hides its AI surface. `tsc --noEmit` + all 39 showcase tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent c2f1605 commit 7ae969e

7 files changed

Lines changed: 2 additions & 72 deletions

File tree

.objectui-sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e30147510995881d51e79e4365203ecec5acb0b1
1+
8a3b351a5a320e6769a1616e85a6fd05aabd3279

examples/app-showcase/objectstack.config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import { allWebhooks } from './src/webhooks/index.js';
2828
import { allHooks } from './src/hooks/index.js';
2929
import { allJobs } from './src/jobs/index.js';
3030
import { allEmails } from './src/emails/index.js';
31-
import { ShowcaseAssistantAgent, ProjectOpsSkill, allTools } from './src/agents/index.js';
3231
import { allBooks } from './src/books/index.js';
3332
import {
3433
allRoles,
@@ -177,11 +176,6 @@ export default defineStack({
177176
sharingRules: allSharingRules,
178177
policies: allPolicies,
179178

180-
// AI
181-
agents: [ShowcaseAssistantAgent],
182-
skills: [ProjectOpsSkill],
183-
tools: allTools,
184-
185179
// Seed data
186180
data: ShowcaseSeedData,
187181
});

examples/app-showcase/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"@objectstack/connector-slack": "workspace:*",
2828
"@objectstack/driver-sql": "workspace:*",
2929
"@objectstack/runtime": "workspace:*",
30-
"@objectstack/service-ai": "workspace:*",
3130
"@objectstack/spec": "workspace:*"
3231
},
3332
"devDependencies": {

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

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

examples/app-showcase/src/coverage.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ export const COVERAGE = {
6868
capabilityChains: {
6969
security: 'security/index.ts — roles + permission set (CRUD + FLS + RLS) + sharing + policy',
7070
automation: 'flows/index.ts (incl. approval nodes) + webhooks/index.ts + jobs/index.ts + emails/index.ts',
71-
ai: 'agents/index.ts — agent + tool + skill',
7271
},
7372
i18nThemingPortals: {
7473
coveredBy: 'translations/index.ts (en + zh-CN), themes/index.ts (light + dark), portals/index.ts',

examples/app-showcase/test/seed.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ describe('showcase stack', () => {
2626
expect((stack.reports ?? []).length).toBe(3);
2727
expect((stack.flows ?? []).length).toBeGreaterThan(0);
2828
expect((stack.roles ?? []).length).toBe(3);
29-
expect((stack.agents ?? []).length).toBe(1);
29+
expect((stack.agents ?? []).length).toBe(0); // AI agents are an enterprise (service-ai) feature; the open showcase ships none
3030
});
3131
});

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)