Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Mentingo Packages

Reusable libraries for Mentingo: UI and voice building blocks, plus the Luma and self-onboarding API SDKs. Each package is versioned and released independently. UI packages receive transport from their consuming application; the SDKs provide typed service clients.

Packages

Package Path Description
@mentingo/voice apps/voice Voice mentor: microphone capture with Silero VAD, mentor playback and session UI
@mentingo/luma-sdk apps/luma-sdk Luma HTTP API, durable course authoring, administration and realtime audio clients
@mentingo/guide-sdk apps/guide-sdk Self-onboarding search, chapter lookup and authenticated video publication

Every publishable package lives in apps/. packages/ holds internal tooling that is never published, currently @mentingo/typescript-config with the base and react-library presets.

Requirements

Node.js 20 or newer and pnpm 10 (the exact version is pinned in packageManager).

Development

pnpm install
pnpm typecheck
pnpm test
pnpm build
pnpm format

Commands run through Turborepo for every package; use pnpm --filter <package> <command> to target one:

pnpm --filter @mentingo/voice test
pnpm --filter @mentingo/luma-sdk typecheck
pnpm --filter @mentingo/luma-sdk test
pnpm --filter @mentingo/luma-sdk build
pnpm --filter @mentingo/luma-sdk generate:client

The SDK owns its OpenAPI schema and generated client in apps/luma-sdk/src/api/. Regenerate the client through its script when updating the schema. CI runs format:check, typecheck, test and build on every pull request.

Adding a package

Create apps/<name> with a package.json that:

  • uses the appropriate published scope (normally @mentingo/<name>) with "publishConfig": { "access": "public" },
  • lists only build output, README.md and LICENSE in files,
  • declares entry points in exports with types,
  • defines build, typecheck and test scripts so Turborepo and CI pick them up,
  • runs typecheck, test and build in a prepack script,
  • pins devDependencies to exact versions and uses compatible ranges for runtime dependencies,
  • keeps React and other singletons in peerDependencies.

Extend @mentingo/typescript-config/react-library.json (or base.json without React), add a README.md following apps/voice and add the package to the table above.

Releasing

Versions are managed with Changesets. Every pull request that changes a published package adds a changeset with pnpm changeset, naming the package, the bump (patch, minor or major) and a summary for the changelog. Changes that need no release add one with pnpm changeset add --empty. CI fails on pull requests without a changeset.

To release from an up-to-date main:

pnpm version-packages

This applies pending changesets, bumps package versions and writes each CHANGELOG.md. Update the versioned install command in the package README, then merge the result through a pull request titled chore: release packages. From main after the merge:

pnpm release
git push origin --tags

pnpm release publishes every package version that is not on npm yet, running each package's prepack checks, and tags the commit with its package name and version. Publishing requires access to the @mentingo npm scope.

Contributing

Branches, commits and pull requests follow the Mentingo conventions: branches named [initials]_[type]_[module]_[ticket]_[short_description], Conventional Commits, and pull request titles such as feat: add voice session controls. Keep code comments for non-obvious constraints only.

License

MIT. See LICENSE.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages