Skip to content

feat(plugins): externalize Novita provider - #117007

Merged
vincentkoc merged 1 commit into
mainfrom
feat/externalize-novita
Jul 31, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
feat/externalize-novita

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Jul 31, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

NovitaAI currently ships inside the core OpenClaw distribution, so operators cannot install or update the provider independently and every core package carries its runtime surface.

Why This Change Was Made

Externalizes NovitaAI as the official @openclaw/novita-provider plugin. The official catalog now owns its aliases, credentials, endpoint, install metadata, and npm/ClawHub publication contract; the core artifact explicitly excludes the plugin.

The upgrade contract preserves existing enabled bundled installs through the generic persisted-location bridge. During update repair, novita resolves to the external npm/ClawHub package before restart. This branch is based on the generic doctor/update ordering correction that landed with the Mistral externalization in #116919 (8b93fd963c9c289b0934e1ce47253773caff3499), so it reuses that owner-neutral ordering rather than adding Novita-specific core policy.

User Impact

New users install @openclaw/novita-provider, configure NOVITA_API_KEY, and restart OpenClaw. Existing users with the formerly bundled Novita provider keep its enabled-by-default state and are repaired to the official external package during upgrade.

Evidence

  • exact reviewed head: 89e5f8969139e948c909d1b9fd851c77bfd4273d
  • 280 focused tests passed across four Vitest shards, covering Novita registration, official catalog aliases and credentials, endpoint ownership, persisted bundled upgrade bridging, artifact exclusion, and npm/ClawHub release contracts
  • plugin inventory and docs-map generation checks, docs formatting, targeted oxfmt, and git diff --check passed
  • Codex autoreview: no findings; patch correct at 0.99 confidence
  • clean-install proof plan: install the selected npm package, configure the provider, restart, and confirm discovery from the installed plugin root
  • bundled-upgrade proof plan: seed the persisted bundled novita record, run update repair, confirm replacement with @openclaw/novita-provider, then restart and confirm discovery

AI-assisted: yes; the changes and generated surfaces were reviewed and understood.

@vincentkoc vincentkoc self-assigned this Jul 31, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 31, 2026 19:10
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation cli CLI command changes scripts Repository scripts extensions: novita size: S maintainer Maintainer-authored PR labels Jul 31, 2026
@vincentkoc
vincentkoc force-pushed the feat/externalize-novita branch from 2e643bf to 89e5f89 Compare July 31, 2026 19:19
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. labels Jul 31, 2026
@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 31, 2026, 3:28 PM ET / 19:28 UTC.

ClawSweeper review

What this changes

This PR turns the bundled NovitaAI provider into the official @openclaw/novita-provider npm/ClawHub package, removes it from the core artifact, and adds catalog, documentation, and upgrade-bridge coverage.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this PR open for maintainer review. Current main still ships Novita as a private bundled plugin, so the requested externalization remains necessary; the proposed package metadata, catalog entry, artifact exclusion, and persisted-install bridge follow the merged Mistral migration pattern. The branch is cleanly mergeable but behind main, with build and broader checks still running, so release ordering and exact merge-result upgrade behavior remain the material review points.

Priority: P2
Reviewed head: 89e5f8969139e948c909d1b9fd851c77bfd4273d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The implementation is a focused, source-consistent application of the merged Mistral externalization pattern with targeted contract coverage; remaining work is release/merge-result verification rather than a patch defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The author is a repository MEMBER, so the external-contributor proof gate does not apply; the PR body nevertheless documents focused test coverage and a useful fresh-install and upgrade-proof plan.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The author is a repository MEMBER, so the external-contributor proof gate does not apply; the PR body nevertheless documents focused test coverage and a useful fresh-install and upgrade-proof plan.
Evidence reviewed 6 items Current main still bundles Novita: Current main marks the Novita package private and describes its entry as bundled; it also does not exclude dist/extensions/novita/** from the core package. The requested externalization is therefore not already implemented.
Generic upgrade bridge is already on current main: The bridge derives a replacement package from an enabled persisted bundled record and the official external catalog before plugin synchronization, which is the owner-neutral upgrade path this PR extends with Novita catalog metadata.
Bridge provenance and adjacent migration: git blame attributes the persisted-location bridge to Vincent Koc in b7eceb45953858702c22df007b1e77d0fe182e6d; the adjacent Mistral externalization merged as 8b93fd963c9c289b0934e1ce47253773caff3499 and is contained by current main.
Findings None None.
Security None None.

How this fits together

OpenClaw uses the official external-plugin catalog during setup and update repair, then discovers installed provider plugins when the Gateway starts. This change moves Novita from the core distribution to an independently released plugin while relying on the generic persisted bundled-install bridge to preserve enabled existing installations.

flowchart LR
  A[Existing Novita configuration] --> B[Persisted bundled plugin record]
  C[New provider setup] --> D[Official external catalog]
  B --> E[Update repair]
  D --> F[External Novita package]
  E --> F
  F --> G[Gateway plugin discovery]
  G --> H[Novita authentication and models]
Loading

Before merge

  • Resolve merge risk (P1) - The PR is behind current main; GitHub reports it mergeable, but the exact merge-result build and smoke lanes are still pending.
  • Resolve merge risk (P1) - Once the core artifact excludes Novita, upgrades depend on the external npm/ClawHub package being published and resolvable before users run the new core version; fresh-install and bundled-upgrade behavior have a documented plan but no posted runtime transcript.
  • Complete next step (P2) - The PR is authored by a repository MEMBER and carries the protected maintainer label, so a human should coordinate release sequencing and review the exact merge-result proof rather than route it to automated repair.
Agent review details

Security

None.

PR surface

Source 0, Tests +25, Docs +23, Config +21, Other +50. Total +119 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 5 26 1 +25
Docs 5 33 10 +23
Config 2 23 2 +21
Generated 0 0 0 0
Other 1 50 0 +50
Total 14 133 14 +119

Review metrics

Metric Value Why it matters
Provider distribution change 1 existing bundled provider becomes an external dual-published package The migration changes both fresh installation and upgrade behavior, making package availability and persisted-location repair material before merge.

Merge-risk options

Maintainer options:

  1. Prove the release-ordering contract (recommended)
    Rebase or refresh the branch and run the exact merge-result fresh-install and bundled-upgrade path, confirming the published external package is discovered before users lose the bundled artifact.
  2. Accept a coordinated-release dependency
    Merge only if release owners explicitly schedule the external npm and ClawHub package publication ahead of the core artifact that excludes Novita.

Technical review

Best possible solution:

Rebase or refresh against current main, complete the exact merge-result package build, and verify in a release-like run that the external Novita package is available before core installation plus that update repair preserves enabled state and configured Novita model selection.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is a distribution and upgrade migration rather than a report of broken current behavior. The relevant high-confidence validation is a clean external install and a persisted bundled-to-external repair run against the merge result.

Is this the best way to solve the issue?

Yes. The patch uses the current generic persisted-location bridge rather than adding Novita-specific core policy, and its package metadata follows the already-merged external Mistral provider pattern.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against f4f990a91bce.

Labels

Label justifications:

  • P2: This is a normal-priority provider packaging migration with bounded but upgrade-sensitive user impact.
  • merge-risk: 🚨 compatibility: The PR removes Novita from the core artifact and relies on the persisted bundled-install bridge to preserve existing enabled users during upgrade.
  • merge-risk: 🚨 auth-provider: Novita aliases, API-key onboarding metadata, endpoint ownership, and model discovery move to the external catalog and published provider package.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The author is a repository MEMBER, so the external-contributor proof gate does not apply; the PR body nevertheless documents focused test coverage and a useful fresh-install and upgrade-proof plan.

Evidence

What I checked:

  • Current main still bundles Novita: Current main marks the Novita package private and describes its entry as bundled; it also does not exclude dist/extensions/novita/** from the core package. The requested externalization is therefore not already implemented. (extensions/novita/package.json:4, f4f990a91bce)
  • Generic upgrade bridge is already on current main: The bridge derives a replacement package from an enabled persisted bundled record and the official external catalog before plugin synchronization, which is the owner-neutral upgrade path this PR extends with Novita catalog metadata. (src/cli/plugins-location-bridges.ts:20, f4f990a91bce)
  • Bridge provenance and adjacent migration: git blame attributes the persisted-location bridge to Vincent Koc in b7eceb45953858702c22df007b1e77d0fe182e6d; the adjacent Mistral externalization merged as 8b93fd963c9c289b0934e1ce47253773caff3499 and is contained by current main. (src/cli/plugins-location-bridges.ts:24, b7eceb459538)
  • External-package contract precedent: Current Mistral, BytePlus, Cohere, Meta, and Xiaomi provider packages use the same install, plugin-API compatibility, external-build, and dual-publish metadata shape proposed for Novita. (extensions/mistral/package.json:1, f4f990a91bce)
  • PR contract coverage: The supplied hydrated PR patch adds Novita to the persisted-location bridge expectations, provider alias/environment resolution, endpoint mirror assertion, dual-publish release contract, and bundled-artifact exclusion test. (src/cli/plugins-location-bridges.test.ts:168, 89e5f8969139)
  • Docs-list infrastructure limitation: The required pnpm docs:list check could not run because Corepack attempted to create its cache under the read-only home filesystem. Relevant current provider and plugin documentation was inspected directly; the supplied PR context reports the CI docs check as successful. Public docs: docs/providers/novita.md. (docs/providers/novita.md:1, f4f990a91bce)

Likely related people:

  • vincentkoc: Git blame attributes the generic persisted bundled-plugin bridge to this contributor, and the same contributor authored the merged Mistral externalization that established the external-provider package pattern used here. (role: feature owner and recent area contributor; confidence: high; commits: b7eceb459538, 8b93fd963c9c; files: src/cli/plugins-location-bridges.ts, extensions/mistral/package.json, extensions/novita/package.json)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete the pending exact-head build and smoke lanes after refreshing the branch against current main.
  • Capture a redacted release-like fresh-install and bundled-upgrade transcript if release owners need direct evidence for package sequencing.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc

Copy link
Copy Markdown
Member Author

ClawSweeper disposition for exact head 89e5f8969139e948c909d1b9fd851c77bfd4273d:

  • Behind-main / merge-result risk: accepted through the repository-native merge workflow rather than a second code rebase. Exact-head CI is green, native prepare-run passed with hosted exact/recent-parent gates, and merge-run will perform the current-main relevance and merge guards before squashing.
  • Release ordering: accepted as an explicit coordinated-release dependency. Merging this PR does not publish a core release. Release owners must publish and verify @openclaw/novita-provider on npm and clawhub:@openclaw/novita-provider before shipping any core release that excludes the bundled Novita artifact. No package was published during this PR.
  • Maintainer coordination: complete. vincentkoc is assigned, and the maintainer-directed externalization/landing workflow is active.

The requested release-like proof passed on Blacksmith Testbox tbx_01kywv8wa6pndn76n7sare2h96: https://github.com/openclaw/openclaw/actions/runs/30660216394

  • built and packed the real @openclaw/[email protected] artifact;
  • installed it from npm-pack: into isolated state and confirmed runtime status loaded;
  • seeded the persisted pre-upgrade bundled record and derived the exact npm/ClawHub bridge with enabledByDefault: true;
  • ran stable-channel repair with the new core's bundled tree disabled, removed the stale bundled load path, and retained the external npm install record with zero warnings/errors;
  • refreshed and re-inspected the runtime after repair;
  • started the Gateway, received healthy status, stopped it, restarted it, and received healthy status again.

The optional rank-up proof is therefore complete. After merge, I will run the selected no-publish Plugin NPM preflight for only @openclaw/novita-provider; publication remains a separate release-owner action.

@vincentkoc
vincentkoc merged commit e84e2a4 into main Jul 31, 2026
135 of 146 checks passed
@vincentkoc
vincentkoc deleted the feat/externalize-novita branch July 31, 2026 19:53
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 31, 2026
* origin/main: (22 commits)
  fix(cron): preserve lazy ownership and bounded notification lifetimes (#117018)
  fix: live updater no-op restarts healthy gateways (#117038)
  fix(bedrock): release streaming clients (#117039)
  fix(google): restore canonical Gemini and Vertex provider invariants (#117042)
  fix(channels): preserve accepted LINE and Mattermost delivery (#117024)
  fix(feishu): unify truthful delivery and media ownership (#117023)
  fix(ui): isolate gateway observer lifecycles (#117017)
  fix(tui): keep reset transitions isolated from stale input (#116873)
  fix(gateway): centralize streamed media descriptor ownership (#117000)
  feat(plugins): externalize OpenCode provider (#117035)
  fix(onboarding): restore skill dependency consent (#116644)
  fix(streaming): preserve incomplete bracket tails in final replies (#116983)
  fix: allow slower gateway readiness after updates (#117032)
  fix(plugin-state): avoid shared SQLite corruption when CLI starts during gateway runtime (#113204)
  fix(cli): keep config file output raw under JSON logging (#116968)
  fix(ai): malformed Anthropic stream frames expose raw event payloads (#116938)
  fix(qa): authenticate actual scenario execution evidence (#117004)
  feat(plugins): externalize NovitaAI provider (#117007)
  fix(text): preserve fenced tool markers in visible-text sanitizer (#116939) (#116971)
  fix(channels): reset metadata memos with plugin lifecycle (#117005)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes docs Improvements or additions to documentation extensions: novita maintainer Maintainer-authored PR merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant