Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/hub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ native tenant middleware.
provide the platform's own routes, auth, and tenant middleware; this
app never re-implements them.
- Every `@corbits/*` and `@workbench/*` package route (chat, approvals,
bench, insights, access-policy, mailbox, memory, skills, artifacts,
bench, insights, mailbox, memory, skills, artifacts,
routines, tasks, webhooks, and more) mounts here as one
explicit import plus one `app.route(...)` call, inside or outside the
tenant prefix as the extension requires. `src/index.ts` is the single
Expand Down
5 changes: 2 additions & 3 deletions apps/hub/src/hub-error-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ function hasGuidance(err: unknown): err is Error & { guidance: string } {
* `app.onError` runs for routes mounted both inside and outside the
* platform's tenant middleware, so `c`'s `Variables` aren't statically
* known here; this borrows the same `TenantEnv` a tenant-scoped route
* types `c.get("tenant")` with (see `packages/access-policy/src/routes.ts`)
* to read `tenant.id` when a tenant-scoped route set it, without claiming
* the wider type up front.
* types `c.get("tenant")` with to read `tenant.id` when a tenant-scoped
* route set it, without claiming the wider type up front.
*/
function extractTenantId(c: Context): string | undefined {
return (c as unknown as Context<TenantEnv>).var.tenant?.id;
Expand Down
41 changes: 9 additions & 32 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/GLOSSARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ Naming conventions for this repository's packages:
plain local domain code — with a kebab-case kind suffix where the
package is one of a family (`-agent`, `-tool`).
- `@workbench/*` is a legacy scope being migrated to `@corbits/*` package
by package; a handful of packages still carry it (`access-policy`,
`connections`, `onboarding`). New packages never use it.
by package; a handful of packages still carry it (`connections`,
`onboarding`). New packages never use it.
Loading
Loading