fix: rename all packages from @mosaic/* to @mosaicstack/*
- Updated all package.json name fields and dependency references - Updated all TypeScript/JavaScript imports - Updated .woodpecker/publish.yml filters and registry paths - Updated tools/install.sh scope default - Updated .npmrc registry paths (worktree + host) - Enhanced update-checker.ts with checkForAllUpdates() multi-package support - Updated CLI update command to show table of all packages - Added KNOWN_PACKAGES, formatAllPackagesTable, getInstallAllCommand - Marked checkForUpdate() with @deprecated JSDoc Closes #391
This commit is contained in:
@@ -61,7 +61,7 @@ pnpm install
|
||||
### 4. Initialize the database
|
||||
|
||||
```bash
|
||||
pnpm --filter @mosaic/db db:migrate
|
||||
pnpm --filter @mosaicstack/db db:migrate
|
||||
```
|
||||
|
||||
### 5. Build all packages
|
||||
@@ -73,7 +73,7 @@ pnpm build
|
||||
### 6. Start the gateway
|
||||
|
||||
```bash
|
||||
pnpm --filter @mosaic/gateway dev
|
||||
pnpm --filter @mosaicstack/gateway dev
|
||||
```
|
||||
|
||||
Or for production (after build):
|
||||
@@ -86,10 +86,10 @@ node apps/gateway/dist/main.js
|
||||
|
||||
```bash
|
||||
# Development
|
||||
pnpm --filter @mosaic/web dev
|
||||
pnpm --filter @mosaicstack/web dev
|
||||
|
||||
# Production (after build)
|
||||
pnpm --filter @mosaic/web start
|
||||
pnpm --filter @mosaicstack/web start
|
||||
```
|
||||
|
||||
The web app runs on port `3000` by default.
|
||||
@@ -157,7 +157,7 @@ pnpm build
|
||||
### Step 5 — Run database migrations
|
||||
|
||||
```bash
|
||||
pnpm --filter @mosaic/db db:migrate
|
||||
pnpm --filter @mosaicstack/db db:migrate
|
||||
```
|
||||
|
||||
### Step 6 — Start the gateway
|
||||
|
||||
@@ -129,7 +129,7 @@ The gateway loads `.env` from the monorepo root via `dotenv` at startup
|
||||
### 4. Push the Database Schema
|
||||
|
||||
```bash
|
||||
pnpm --filter @mosaic/db db:push
|
||||
pnpm --filter @mosaicstack/db db:push
|
||||
```
|
||||
|
||||
This applies the Drizzle schema directly to the database (development only; use
|
||||
@@ -138,7 +138,7 @@ migrations in production).
|
||||
### 5. Start the Gateway
|
||||
|
||||
```bash
|
||||
pnpm --filter @mosaic/gateway exec tsx src/main.ts
|
||||
pnpm --filter @mosaicstack/gateway exec tsx src/main.ts
|
||||
```
|
||||
|
||||
The gateway starts on port `14242` by default.
|
||||
@@ -146,7 +146,7 @@ The gateway starts on port `14242` by default.
|
||||
### 6. Start the Web App
|
||||
|
||||
```bash
|
||||
pnpm --filter @mosaic/web dev
|
||||
pnpm --filter @mosaicstack/web dev
|
||||
```
|
||||
|
||||
The web app starts on port `3000` by default.
|
||||
@@ -359,7 +359,7 @@ The `insights` table uses a `vector(1536)` column (pgvector) for semantic search
|
||||
Apply schema changes directly to the dev database (no migration files created):
|
||||
|
||||
```bash
|
||||
pnpm --filter @mosaic/db db:push
|
||||
pnpm --filter @mosaicstack/db db:push
|
||||
```
|
||||
|
||||
### Generating Migrations
|
||||
@@ -367,7 +367,7 @@ pnpm --filter @mosaic/db db:push
|
||||
For production-safe, versioned changes:
|
||||
|
||||
```bash
|
||||
pnpm --filter @mosaic/db db:generate
|
||||
pnpm --filter @mosaicstack/db db:generate
|
||||
```
|
||||
|
||||
This creates a new SQL migration file in `packages/db/drizzle/`.
|
||||
@@ -375,7 +375,7 @@ This creates a new SQL migration file in `packages/db/drizzle/`.
|
||||
### Running Migrations
|
||||
|
||||
```bash
|
||||
pnpm --filter @mosaic/db db:migrate
|
||||
pnpm --filter @mosaicstack/db db:migrate
|
||||
```
|
||||
|
||||
### Drizzle Config
|
||||
@@ -387,8 +387,8 @@ directory are defined there.
|
||||
|
||||
1. Add the table definition to `packages/db/src/schema.ts`.
|
||||
2. Export it from `packages/db/src/index.ts`.
|
||||
3. Run `pnpm --filter @mosaic/db db:push` (dev) or
|
||||
`pnpm --filter @mosaic/db db:generate && pnpm --filter @mosaic/db db:migrate`
|
||||
3. Run `pnpm --filter @mosaicstack/db db:push` (dev) or
|
||||
`pnpm --filter @mosaicstack/db db:generate && pnpm --filter @mosaicstack/db db:migrate`
|
||||
(production).
|
||||
|
||||
---
|
||||
|
||||
@@ -160,11 +160,11 @@ The `mosaic` CLI provides a terminal interface to the same gateway API.
|
||||
|
||||
### Installation
|
||||
|
||||
The CLI ships as part of the `@mosaic/cli` package:
|
||||
The CLI ships as part of the `@mosaicstack/cli` package:
|
||||
|
||||
```bash
|
||||
# From the monorepo root
|
||||
pnpm --filter @mosaic/cli build
|
||||
pnpm --filter @mosaicstack/cli build
|
||||
node packages/cli/dist/cli.js --help
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user