Skip to content

♻️ refactor(builtin-tools): retire lobe-tools alias and slim lobe-notebook to render-only#14422

Merged
arvinxx merged 2 commits into
canaryfrom
feat/notebook-render-cleanup
May 4, 2026
Merged

♻️ refactor(builtin-tools): retire lobe-tools alias and slim lobe-notebook to render-only#14422
arvinxx merged 2 commits into
canaryfrom
feat/notebook-render-cleanup

Conversation

@arvinxx

@arvinxx arvinxx commented May 4, 2026

Copy link
Copy Markdown
Member

Summary

  • lobe-tools (deprecated alias) — gone. Removed the 'lobe-tools' entries from the inspector / render registries, the backward-compat checks in dbMessage selectors, and the legacy fixtures in the dev RenderGallery. The tooling docs that referenced it have been generalized.
  • lobe-notebook — slimmed to render-only. The only surviving notebook UI (the createDocument document card) has been hoisted into packages/builtin-tools/src/notebook/ mirroring the github tool layout, and marked @deprecated with a ~3-month removal target. The rest of packages/builtin-tool-notebook/src/client/ (Inspector / Intervention / Placeholder / Streaming / components) has been deleted, and notebook is no longer registered in those four registries.
  • Notebook's manifest / executor / ExecutionRuntime are intentionally kept so legacy tool calls still resolve in old conversations; lobe-notebook remains a recognized identifier in identifiers.ts. Added antd to builtin-tools peer deps because the moved DocumentCard uses antd's Button.

Test plan

  • bun run type-check — passes
  • bunx vitest run for affected suites: dbMessage selectors, notebook server runtime, agentConfigResolver, builtinToolRegistry, streamingExecutor, conversationLifecycle, parseCommands, operation/actions — 244 tests pass
  • Visual smoke: open an old conversation containing a lobe-notebook createDocument call and confirm the document card still renders (via DevPanel RenderGallery → "Lobe Notebook → createDocument" fixture)

🤖 Generated with Claude Code

…ebook to render-only

- Drop the deprecated `'lobe-tools'` identifier alias from the inspector / render
  registries plus its backward-compat checks in dbMessage selectors and the dev
  RenderGallery fixtures.
- Hoist the only surviving notebook UI (the `createDocument` document card) into
  `packages/builtin-tools/src/notebook/`, mirroring the github tool layout.
  Marked the new module `@deprecated` with a ~3-month removal target.
- Delete `packages/builtin-tool-notebook/src/client/` entirely and unregister
  notebook from the inspectors / interventions / placeholders / streamings
  registries (it can no longer be invoked by the LLM, so those surfaces are dead
  code). Manifest / executor / ExecutionRuntime stay so legacy tool calls keep
  resolving.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented May 4, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
lobehub Ready Ready Preview, Comment May 4, 2026 0:53am

Request Review

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @arvinxx, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. feature:tool Tool calling and function execution labels May 4, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f5bd64f0b3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/store/chat/slices/message/selectors/dbMessage.ts
antd is already provided by the workspace and peered through
@lobehub/ui, so listing it explicitly on builtin-tools is noise.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented May 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.73%. Comparing base (aa3c7e5) to head (388da05).
⚠️ Report is 1 commits behind head on canary.

Additional details and impacted files
@@            Coverage Diff            @@
##           canary   #14422     +/-   ##
=========================================
  Coverage   68.73%   68.73%             
=========================================
  Files        2496     2496             
  Lines      213967   213965      -2     
  Branches    22456    26081   +3625     
=========================================
  Hits       147061   147061             
+ Misses      66762    66760      -2     
  Partials      144      144             
Flag Coverage Δ
app 62.91% <0.00%> (+<0.01%) ⬆️
database 92.37% <ø> (ø)
packages/agent-runtime 79.94% <ø> (ø)
packages/builtin-tool-lobe-agent 83.41% <ø> (ø)
packages/context-engine 83.88% <ø> (ø)
packages/conversation-flow 92.43% <ø> (ø)
packages/file-loaders 87.60% <ø> (ø)
packages/memory-user-memory 74.74% <ø> (ø)
packages/model-bank 99.94% <ø> (ø)
packages/model-runtime 83.82% <ø> (ø)
packages/prompts 69.57% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/types 5.05% <ø> (ø)
packages/utils 88.02% <ø> (ø)
packages/web-crawler 88.29% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Store 66.76% <0.00%> (+<0.01%) ⬆️
Services 53.80% <ø> (ø)
Server 69.94% <ø> (ø)
Libs 53.36% <ø> (ø)
Utils 79.95% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arvinxx arvinxx merged commit 95375ce into canary May 4, 2026
35 checks passed
@arvinxx arvinxx deleted the feat/notebook-render-cleanup branch May 4, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature:tool Tool calling and function execution size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant