Skip to content

chore(showcase): remove the AI agent (service-ai is an enterprise capability) - #2317

Merged
os-zhuang merged 2 commits into
mainfrom
chore/showcase-remove-ai-agent
Jun 25, 2026
Merged

chore(showcase): remove the AI agent (service-ai is an enterprise capability)#2317
os-zhuang merged 2 commits into
mainfrom
chore/showcase-remove-ai-agent

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

Why

Follow-up to #2311 and objectui's service-ai gating. @objectstack/service-ai is an enterprise capability; the open-source showcase shouldn't define an AI agent that requires it.

The showcase shipped a showcase_assistant agent + a skill + two tools, served by the (enterprise) service-ai runtime. In #2311 I added a @objectstack/service-ai dependency to the showcase to keep that working — but per the edition model, the open showcase should be Community-Edition-shaped: no AI.

What

The enum-coverage test (coverage.test.ts) only asserts field/view/chart/report/action types — unaffected.

Verification (worktree, fresh runtime)

  • tsc --noEmit clean; all 39 showcase tests pass (incl. seed.test.ts and coverage.test.ts).
  • Boots as a CE shape: services.ai: { enabled: false, status: "unavailable" }, /api/v1/ai/agents404, AIService not in the plugin list → the console hides its AI surface.

Note: examples/app-crm also defines an agent (SalesAssistantAgent) + a @objectstack/service-ai dep (also from #2311). Left untouched here — happy to give it the same treatment if wanted.

🤖 Generated with Claude Code

os-zhuangand others added 2 commits June 25, 2026 13:09
fix(console): gate the AI surface on the service-ai capability, not the agent catalog (#1992)
objectui@8a3b351a5a320e6769a1616e85a6fd05aabd3279
…pability
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>
@vercel

vercelBot commented Jun 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
specReadyReadyPreview, CommentJun 25, 2026 5:21am

Request Review

@github-actionsgithub-actionsBot added size/s dependencies Pull requests that update a dependency file tests labels Jun 25, 2026
@os-zhuang
os-zhuang merged commit 7ae969e into mainJun 25, 2026
16 checks passed
@os-zhuang
os-zhuang deleted the chore/showcase-remove-ai-agent branch June 25, 2026 05:22
os-zhuang added a commit that referenced this pull request Jun 25, 2026
…ity (#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>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependenciesPull requests that update a dependency filesize/stests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@os-zhuang