@decohere/create 0.0.1-dev.20261106.224 → 0.0.1-dev.20261106.228

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -151,9 +151,9 @@ In the project's Dev Container:
151
151
  pnpm decohere add auth0
152
152
  ```
153
153
 
154
- This logs in if needed, creates the Auth0 API and a `<project> Dev` login app, writes `AUTH0_ISSUER_BASE_URL`, `AUTH0_AUDIENCE` and `AUTH0_CLIENT_ID` to `.env`, adds the `auth` section to `config/config.yaml`, and adds `.withAuth()` to each API's `main.ts`. Running it again changes nothing. If a `main.ts` no longer has the generated shape, the command leaves it alone and prints the lines to add. It also creates a `<project> Token` machine app (written to `.env` as `AUTH0_TOKEN_CLIENT_ID`). It doesn't add the local user profile a new project with Postgres gets.
154
+ This logs in if needed, creates the Auth0 API and a `<project> Dev` login app, writes `AUTH0_ISSUER_BASE_URL`, `AUTH0_AUDIENCE` and `AUTH0_CLIENT_ID` to `.env`, adds the `auth` section to `config/config.yaml`, and adds `.use(auth())` to each API's `main.ts`. Running it again changes nothing. If a `main.ts` no longer has the generated shape, the command leaves it alone and prints the lines to add. It also creates a `<project> Token` machine app (written to `.env` as `AUTH0_TOKEN_CLIENT_ID`). It doesn't add the local user profile a new project with Postgres gets.
155
155
 
156
- Once Auth0 is added, **every route needs a token** unless it has `@AllowAnonymous()`, because `withAuth()` is secure by default. To call one, in the Dev Container:
156
+ Once Auth0 is added, **every route needs a token** unless it has `@AllowAnonymous()`, because `auth()` is secure by default. To call one, in the Dev Container:
157
157
 
158
158
  ```bash
159
159
  curl -H "Authorization: Bearer $(pnpm -s decohere auth0 token)" localhost:3000/hello/1
@@ -197,11 +197,11 @@ npx @decohere/create webapi -d my-app --database postgres/typeorm
197
197
  npx @decohere/create webapi -d my-app --name api --name billing --database postgres/typeorm
198
198
  ```
199
199
 
200
- `config.yaml` lists one datasource per API (`name: billing` → `withTypeOrm({ name: "billing" })`). Locally they share host `postgres` port `5432`. Point `BILLING_DB_HOST` / `BILLING_DB_PORT` at another server to split later. `webapi add billing --database postgres/typeorm` appends a datasource; TypeORM bootstrap `CREATE DATABASE`s it on first run.
200
+ `config.yaml` lists one datasource per API (`name: billing` → `typeOrm({ name: "billing" })`). Locally they share host `postgres` port `5432`. Point `BILLING_DB_HOST` / `BILLING_DB_PORT` at another server to split later. `webapi add billing --database postgres/typeorm` appends a datasource; TypeORM bootstrap `CREATE DATABASE`s it on first run.
201
201
 
202
202
  #### Health probes
203
203
 
204
- Scaffolded APIs call `.withHealth()` so these routes are available **without auth**:
204
+ Scaffolded APIs call `.use(health())` so these routes are available **without auth**:
205
205
 
206
206
  | Route | Purpose | Status |
207
207
  |---|---|---|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decohere/create",
3
- "version": "0.0.1-dev.20261106.224",
3
+ "version": "0.0.1-dev.20261106.228",
4
4
  "description": "Download the Decohere scaffolder image and run it (npm create @decohere)",
5
5
  "keywords": [
6
6
  "decohere",