Skip to content

Hyve Connect - #206

Open
HardeepAsrani wants to merge 18 commits into
feat/new-uifrom
feat/connect
Open

Hyve Connect#206
HardeepAsrani wants to merge 18 commits into
feat/new-uifrom
feat/connect

Conversation

@HardeepAsrani

@HardeepAsrani HardeepAsrani commented Jul 17, 2026

Copy link
Copy Markdown
Member

Adds Hyve Connect (hosted AI) as an alternative to the self-hosted OpenAI setup, and rebuilds the admin as a screen-based React app. A site can now run its knowledge base and chat on the hosted service (no OpenAI key needed) or keep running self-hosted, and switch between the two.

Pro PR: https://github.com/Codeinwp/hyve/pull/266
Agents PR: https://github.com/Codeinwp/agents/pull/129
Closes: https://github.com/Codeinwp/hyve/issues/164

Highlights

  • Hyve Connect mode: index content and answer chat on the hosted service, metered by the site's plan. Free and paid tiers supported.
  • New admin UI: Dashboard, Knowledge Base, Connect, Messages, AI, Chat Appearance/Behavior, Integrations, and Settings screens, with a shared router and store (replaces the old parts/ + route.js structure).
  • Migrate in and out safely: switching to Connect syncs existing local content up in the background; disconnecting can either pull everything back down for self-hosted use ("import") or wipe it everywhere ("clear").

Backend (PHP)

  • Hyve_Connect: the hosted-service client (buffered and streamed SSE, license bearer, and a per-site token for the free tier).
  • DB_Table: the to-Connect sync lifecycle (start / run / advance / finish / block / resume), a watchdog for stranded syncs, reconcile (aggregate and per-bucket diffing against the cloud), identity-change re-sync, and the disconnect import/clear paths.
  • API: REST endpoints for connect, disconnect, reconcile, and chat (streaming and poll), plus quota/stats reporting.
  • Stream: SSE chat streaming for both self-hosted and Connect.
  • Records which embedding model each local chunk used (embedding_model column; local DB schema version bumped).

Notes for reviewers

  • Companion platform changes are in the Agents repo PR (hosted knowledge base and chat proxy).
  • The local database gains an embedding_model column; the schema version bump applies it automatically on upgrade.

Generate a persistent per-site token and send it as X-Site-Token so the
platform can bind a free site's identity without a license key.
@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown

Plugin build for 70b253d is ready 🛎️!

@HardeepAsrani HardeepAsrani changed the title Hyve Connect + new admin UI Hyve Connect Jul 17, 2026
@HardeepAsrani

Copy link
Copy Markdown
Member Author

@copilot resolve the merge conflicts in this pull request

# Conflicts:
#	src/backend/screens/Dashboard.js
#	src/backend/style.scss
#	src/backend/utils.js

Co-authored-by: HardeepAsrani <2649903+HardeepAsrani@users.noreply.github.com>

Copilot AI commented Jul 18, 2026

Copy link
Copy Markdown

@copilot resolve the merge conflicts in this pull request

Merged origin/feat/new-ui into feat/connect and resolved all conflicts in:

  • src/backend/screens/Dashboard.js — combined { setUtm, percentOf, quotaOf } (from this branch) and { isLicenseActive } (from feat/new-ui) into a single import.
  • src/backend/utils.js — kept all three new utility functions: percentOf and quotaOf (from this branch) alongside isLicenseActive (from feat/new-ui).
  • src/backend/style.scss — preserved the min-width: 0 comment from this branch while also including the new .hyve-next-act__row / .hyve-next-act__note nested rules from feat/new-ui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants