You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(service-ai)!: rename data agent data_chat → ask (Path A) with back-compat alias (#2144)
* feat(service-ai)!: rename data agent data_chat -> ask (Path A) with alias
The platform data agent's identifier is renamed so the friendly console
URL equals the real name (/ai/ask). Back-compat is preserved:
- DEFAULT_DATA_AGENT_NAME = 'ask' (was 'data_chat'); LEGACY_DATA_AGENT_NAME
kept for migrations/diagnostics.
- New process-wide alias registry (agent-aliases.ts): seeds data_chat->ask;
AgentRuntime.loadAgent normalizes a requested name through it, so
/agents/data_chat/chat and persisted agent_id='data_chat' keep resolving.
Exposes registerAgentAlias() so other packages register their OWN renames
(cloud AI Studio: metadata_assistant->build) — keeping the two renames
decoupled and independently safe; no alias points at an unregistered id.
- Aliases are resolution-only (not records), so GET /ai/agents still lists
each agent once. On upgrade, the plugin prunes the stale 'data_chat'
registry entry so the catalog isn't doubled.
Unit-tested: alias table + loadAgent legacy resolution (5 cases). The
objectui console already resolves both legacy and renamed catalogs (its
agentAliases layer is verified live), so no client change is required.
BREAKING CHANGE: the built-in data agent's canonical name is now 'ask'.
The legacy 'data_chat' name remains accepted via the alias table.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* chore: changeset for data_chat->ask rename
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* chore: remove accidentally-committed node_modules symlinks
git add -A swept in local worktree node_modules symlinks (the repo
.gitignore matches node_modules/ as a dir, not a symlink), which broke CI
install (ENOTDIR). Untracked; functionally inert.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* test(service-ai): update agent-name assertions for data_chat->ask rename
chatbot-features: catalog/loadAgent/agent-spec now assert canonical 'ask';
legacy '/agents/data_chat/chat' POST tests kept as back-compat (resolve via
alias). 83 AI tests pass locally.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* ci: re-trigger checks
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Jack Zhuang <zhuangjianguo@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Rename the built-in data agent `data_chat` → `ask` (Path A: friendly console URL == real id). Back-compat preserved via a new process-wide alias registry: `AgentRuntime.loadAgent` normalizes legacy names, so `/agents/data_chat/chat` and persisted `agent_id='data_chat'` keep resolving. `registerAgentAlias()` is exported so other packages register their own renames (cloud AI Studio: `metadata_assistant`→`build`). The plugin prunes the stale legacy agent record on upgrade so the catalog isn't doubled.
0 commit comments