lobehub/packages
Innei 8b3c871d08
♻️ refactor(onboarding): add OnboardingContextInjector and wire context engine (#13518)
* ♻️ refactor(onboarding): add OnboardingContextInjector and wire context engine

Made-with: Cursor

* 🔧 refactor(onboarding): update tool call references to use `lobe-user-interaction________builtin`

Modified onboarding documentation and utility functions to standardize the use of the `lobe-user-interaction________builtin` tool call for structured input collection, enhancing clarity and consistency across the codebase.

Signed-off-by: Innei <tukon479@gmail.com>

* 🔧 refactor(onboarding): standardize tool call references to `lobe-user-interaction____askUserQuestion____builtin`

Updated documentation and utility functions to replace instances of the `lobe-user-interaction________builtin` tool call with `lobe-user-interaction____askUserQuestion____builtin`, ensuring consistency in structured input collection across the onboarding process.

Signed-off-by: Innei <tukon479@gmail.com>

* ♻️ refactor(onboarding): move onboarding context before first user

* ♻️ refactor(context-engine): add virtual last user provider

* update v3

* 🐛 fix(onboarding): add early exit escape hatch for boundary cases

The `<next_actions>` directive only prompted finishOnboarding in the
summary phase, but phase transition required all fields + 5 discovery
exchanges — a condition extreme cases rarely meet. This left the model
stuck in discovery, never calling finishOnboarding.

- Add EARLY EXIT hint in discovery phase next_actions
- Add universal completion-signal REMINDER across all phases
- Add minimum-viable discovery fallback in systemRole
- Add explicit completion signal list in Early Exit section
- Add off-topic redirect limit in Boundaries
- Add CRITICAL persistence rule in toolSystemRole

*  test(context-engine): fix OnboardingContextInjector tests to match BaseFirstUserContentProvider

Remove brittle MessagesEngine onboarding test that hardcoded XML content.

---------

Signed-off-by: Innei <tukon479@gmail.com>
2026-04-07 19:25:16 +08:00
..
agent-manager-runtime 💄 style: suppot agent management (#12061) 2026-02-28 13:52:35 +08:00
agent-runtime feat(chat): intervention fallback UI, GTD default tools, intervention guard order (#13447) 2026-03-31 22:07:58 +08:00
agent-templates 🐛 fix(agentDocuments): add progressive disclosure PolicyLoad mode (#13571) 2026-04-05 01:23:32 +08:00
agent-tracing 🔧 chore: adjust eval qstash runtime retries (#13364) 2026-03-31 14:12:11 +08:00
builtin-agent-onboarding ♻️ refactor(onboarding): add OnboardingContextInjector and wire context engine (#13518) 2026-04-07 19:25:16 +08:00
builtin-agents feat(onboarding): agent web onboarding, feature toggle, and lifecycle sync (#13139) 2026-03-30 20:28:54 +08:00
builtin-skills feat: skill store add skills tab (#13568) 2026-04-04 22:11:17 +08:00
builtin-tool-activator ♻️ refactor: move skills/tools to @ mention with direct context injection (#13419) 2026-04-03 22:09:48 +08:00
builtin-tool-agent-builder feat(agent-browser): add browser automation skill and tool detection (#12858) 2026-03-10 16:13:33 +08:00
builtin-tool-agent-documents feat(onboarding): agent web onboarding, feature toggle, and lifecycle sync (#13139) 2026-03-30 20:28:54 +08:00
builtin-tool-agent-management ♻️ refactor: move skills/tools to @ mention with direct context injection (#13419) 2026-04-03 22:09:48 +08:00
builtin-tool-brief feat: support agent tasks system (#13289) 2026-03-26 17:43:51 +08:00
builtin-tool-calculator ⬆️ chore(deps): migrate @lobehub/ui to base-ui exports (#12587) 2026-03-02 22:40:46 +08:00
builtin-tool-cloud-sandbox ♻️ refactor: unify tool content formatting with ComputerRuntime and shared UI (#13470) 2026-04-02 19:42:45 +08:00
builtin-tool-creds ♻️ refactor: change the klavis github tools into lobehub skill & add vercel skills (#13442) 2026-04-01 14:48:16 +08:00
builtin-tool-cron ♻️ refactor: add the cronjob tools executiors (#13536) 2026-04-03 15:21:32 +08:00
builtin-tool-group-agent-builder feat(onboarding): agent web onboarding, feature toggle, and lifecycle sync (#13139) 2026-03-30 20:28:54 +08:00
builtin-tool-group-management 💄 style: batch fix eslint violations across packages (#12601) 2026-03-03 02:19:50 +08:00
builtin-tool-gtd 🌐 chore: translate non-English comments to English in packages (#13427) 2026-03-31 18:11:39 +08:00
builtin-tool-knowledge-base ⬆️ chore(deps): migrate @lobehub/ui to base-ui exports (#12587) 2026-03-02 22:40:46 +08:00
builtin-tool-local-system ♻️ refactor: unify tool content formatting with ComputerRuntime and shared UI (#13470) 2026-04-02 19:42:45 +08:00
builtin-tool-memory ♻️ refacor(database,userMemories): rework of user memory search (#13453) 2026-04-02 14:13:06 +08:00
builtin-tool-message 🔨 chore: optimize message tool (#13444) 2026-03-31 21:28:18 +08:00
builtin-tool-notebook feat: support agent tasks system (#13289) 2026-03-26 17:43:51 +08:00
builtin-tool-page-agent 🔨 chore: remove dead eslint disable comments for deleted rules (#12597) 2026-03-02 23:18:01 +08:00
builtin-tool-remote-device feat: improve agent context injection (skills discovery, device optimization, prompt cleanup) (#13021) 2026-03-17 00:35:18 +08:00
builtin-tool-skill-store ♻️ refactor: add the user creds modules & skill should auto inject the need creds (#13124) 2026-03-24 14:28:23 +08:00
builtin-tool-skills ♻️ refactor: unify tool content formatting with ComputerRuntime and shared UI (#13470) 2026-04-02 19:42:45 +08:00
builtin-tool-task feat: support agent tasks system (#13289) 2026-03-26 17:43:51 +08:00
builtin-tool-topic-reference ♻️ refactor(tool): decouple topic-reference executor from app TRPC client (#13451) 2026-03-31 23:27:42 +08:00
builtin-tool-user-interaction feat(onboarding): agent web onboarding, feature toggle, and lifecycle sync (#13139) 2026-03-30 20:28:54 +08:00
builtin-tool-web-browsing 🌐 chore: translate non-English comments to English in packages (#13427) 2026-03-31 18:11:39 +08:00
builtin-tool-web-onboarding ♻️ refactor(onboarding): add OnboardingContextInjector and wire context engine (#13518) 2026-04-07 19:25:16 +08:00
builtin-tools ♻️ refactor: add the cronjob tools executiors (#13536) 2026-04-03 15:21:32 +08:00
business ♻️ refactor: gate agent onboarding with dedicated business flag (#13472) 2026-04-01 19:38:14 +08:00
chat-adapter-feishu 🔨 chore: optimize bot platform ux (#13262) 2026-03-27 13:28:52 +08:00
chat-adapter-qq 🔨 chore: optimize bot platform ux (#13262) 2026-03-27 13:28:52 +08:00
chat-adapter-wechat 🔨 chore: optimize bot platform ux (#13262) 2026-03-27 13:28:52 +08:00
config feat: add notification system (temporarily disabled) (#13301) 2026-03-26 21:16:38 +08:00
const 🔧 chore: disable input completion by default (#13605) 2026-04-07 12:29:50 +08:00
context-engine ♻️ refactor(onboarding): add OnboardingContextInjector and wire context engine (#13518) 2026-04-07 19:25:16 +08:00
conversation-flow 🐛 fix: fix compression UI (#13113) 2026-03-20 17:23:02 +08:00
database 🐛 fix(agentDocuments): add progressive disclosure PolicyLoad mode (#13571) 2026-04-05 01:23:32 +08:00
desktop-bridge feat(trpc): add response metadata and auth header handling (#11816) 2026-01-25 20:39:51 +08:00
device-gateway-client 🐛 fix: cli gateway auto reconnect (#13418) 2026-03-31 01:16:17 +08:00
edge-config 🔨 chore: remove dead eslint disable comments for deleted rules (#12597) 2026-03-02 23:18:01 +08:00
editor-runtime ⬆️ chore: bump Lexical to 0.42 and align editor imports (#13440) 2026-03-31 20:45:32 +08:00
electron-client-ipc 👷 build(desktop): remove nightly release channel (#13480) 2026-04-03 19:13:25 +08:00
electron-server-ipc 📝 docs: Polishing and improving product documentation (#12612) 2026-03-03 16:01:41 +08:00
eval-dataset-parser test: add unit tests for eval-dataset-parser (#13197) 2026-03-25 10:55:58 +08:00
eval-rubric feat(eval): add external scoring mode (#12729) 2026-03-10 09:53:26 +08:00
fetch-sse 🐛 fix(fetch-sse): stop injecting contextBody into structured provider errors (#13477) 2026-04-01 21:24:01 +08:00
file-loaders 📝 docs: Polishing and improving product documentation (#12612) 2026-03-03 16:01:41 +08:00
local-file-shell ♻️ refactor(cli): extract shared @lobechat/local-file-shell package (#12865) 2026-03-11 00:04:22 +08:00
memory-user-memory ♻️ refacor(database,userMemories): rework of user memory search (#13453) 2026-04-02 14:13:06 +08:00
model-bank 👷 build(model-bank): add release workflow (#13384) 2026-04-03 19:35:26 +08:00
model-runtime 🐛 fix(model-runtime): strip additionalProperties and leftover $ref in Google tool schemas (#13613) 2026-04-07 16:08:15 +08:00
observability-otel 🔨 chore: remove dead eslint disable comments for deleted rules (#12597) 2026-03-02 23:18:01 +08:00
openapi 🐛 fix(openapi): fix response.completed output missing message, wrong tool name & id (#13555) 2026-04-04 15:08:58 +08:00
prompts 🐛 fix(prompts): enforce user perspective in input completion (#13619) 2026-04-07 17:31:14 +08:00
python-interpreter feat(desktop): implement subscription pages embedding with webview (#12114) 2026-02-11 13:05:10 +08:00
shared-tool-ui ♻️ refactor: unify tool content formatting with ComputerRuntime and shared UI (#13470) 2026-04-02 19:42:45 +08:00
ssrf-safe-fetch 🐛 fix: distinguish SSRF block errors from network errors (#13103) 2026-03-18 18:16:19 +08:00
tool-runtime ♻️ refactor: unify tool content formatting with ComputerRuntime and shared UI (#13470) 2026-04-02 19:42:45 +08:00
types 🌐 chore: translate non-English comments to English in store/task (#13561) 2026-04-07 12:16:24 +08:00
utils 🔒 fix: remove apiKey fallback in webapi auth to prevent auth bypass (#13535) 2026-04-07 11:53:07 +08:00
web-crawler 🔧 chore: adjust jina timeout to 15s (#13171) 2026-03-21 14:39:15 +08:00