Skip to content

feat: full monorepo scaffold — widget + backend + CI/CD#43

Closed
dzianisv wants to merge 4 commits into
mainfrom
feat/full-scaffold
Closed

feat: full monorepo scaffold — widget + backend + CI/CD#43
dzianisv wants to merge 4 commits into
mainfrom
feat/full-scaffold

Conversation

@dzianisv

Copy link
Copy Markdown
Contributor

Summary

  • Full monorepo scaffold with widget package and backend
  • Add WebMCP integration and pnpm lockfile
  • CI/CD workflows for build, test, and deploy

Test Plan

  • pnpm install succeeds
  • CI workflows pass

engineer and others added 4 commits April 18, 2026 20:25
- ci.yml: typecheck, lint (optional), test, build on push/PR to main
- publish.yml: publish packages/widget to npm on GitHub release
- deploy.yml: deploy packages/backend to Cloudflare Workers on push to main (path-filtered)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Widget (@vibetechnologies/webagent):
- Preact + Shadow DOM entry point (WebAgent.init)
- Client-side agent loop via Vercel AI SDK generateText
- 5 tools: web_fetch, skill, todo, send_email, escalate_to_human
- Knowledge base loader with TF-IDF search
- IndexedDB + localStorage session persistence with TTL
- WebMCP integration (provider + consumer + declarative forms)
- XSS-safe markdown rendering in chat messages
- esbuild bundle producing webagent.min.js + webagent.esm.js

Backend (@vibetechnologies/webagent-backend):
- Hono app on Cloudflare Workers
- LLM proxy with BYOK + managed key auth
- SSE streaming passthrough
- Fetch proxy with SSRF protection
- Email via Cloudflare Queues + Resend
- Escalation with ticket tracking + HTML email
- Admin API for customer key CRUD
- Knowledge base storage via R2
- D1 schema for customers, usage, tickets

Infrastructure:
- Turborepo + pnpm workspaces
- GitHub Actions CI/CD (ci, publish, deploy)
- 3 example pages (basic, ecommerce, docs-site)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Widget agent loop, types, knowledge base (TF-IDF)
- All 5 tools (web_fetch, skill, todo, send_email, escalate)
- Session store with IndexedDB + localStorage adapters
- WebMCP integration (provider, consumer, declarative forms)
- UI components (ChatFAB, ChatWindow, EscalationModal, TodoPanel)
- CSS styles with theming and dark mode
- esbuild config, widget tsconfig
- CI/CD workflows
- pnpm lockfile
- Global window.WebAgent export for script tag usage

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… test/build steps

- pnpm/action-setup@v4 errors on dual version spec (version: 9 + packageManager: pnpm@9.15.0)
- Gracefully skip tests when none exist yet
- Backend build: use tsc --noEmit instead of wrangler deploy --dry-run (no CF bindings in CI)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dzianisv

Copy link
Copy Markdown
Contributor Author

Closing: all scaffold content from this PR is already included in main via PR #44 (feat: Azure GPT-5.1 proxy + full monorepo). No code lost.

@dzianisv dzianisv closed this Jun 20, 2026
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.

1 participant