minutework 0.1.33 → 0.1.34

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.
@@ -21,6 +21,16 @@ An `app pack` is the shipped product unit.
21
21
  per-app `src/app/api/auth/*`, `src/app/api/gateway/*`, platform-session BFF
22
22
  layers, platform credential login screens, operator-console links, or
23
23
  runtime-command demos.
24
+ - If a generated workspace reports `@minutework/web-auth` as missing, treat it
25
+ as dependency installation, package publishing, or package sync work. Do not
26
+ hand-roll auth/data routes or browser tokens as a workaround.
27
+ - The template may render a local `/login` page that calls SDK hooks. The SDK
28
+ also exposes hosted UI helpers for same-origin `/_mw/login`,
29
+ `/_mw/signup`, and `/_mw/verify-email`; both choices remain SDK-only.
30
+ - Client-side `/app` session checks are UX gating only. Real authorization is
31
+ enforced server-side by platform `/_mw` routes and runtime dispatch checks:
32
+ active customer membership, email verification, app publication, and
33
+ `webCustomerExposed` / `web_customer_exposed` manifest declarations.
24
34
  - Browser calls from `tenant-app` should use `mw.query(...)` and
25
35
  `mw.action(..., { idempotencyKey })`; actions require a non-empty
26
36
  idempotency key. The runtime surface must be declared on the manifest with
@@ -26,6 +26,15 @@ the monorepo or a live tenant runtime.
26
26
  `src/mw/` substrate and `@minutework/web-auth`. Product UI may call that
27
27
  substrate, but it must not recreate platform-session BFF routes, platform
28
28
  credential login, or browser-exposed platform/runtime tokens.
29
+ - If `@minutework/web-auth` is not installed or resolvable in a generated
30
+ workspace, fix dependency installation, package publishing, or package sync.
31
+ Do not replace the SDK with local auth/gateway routes.
32
+ - A local `/login` page may call SDK hooks, while SDK hosted UI helpers point
33
+ to same-origin `/_mw/login`, `/_mw/signup`, and `/_mw/verify-email`; both
34
+ are valid only when they stay on the SDK/`/_mw` contract.
35
+ - Client-side app guards are UX only. Platform `/_mw` routes and runtime
36
+ dispatch enforce active customer membership, email verification, app
37
+ publication, and manifest exposure server-side.
29
38
  - `tenant-app` runtime data access goes through `mw.query(...)` and
30
39
  `mw.action(..., { idempotencyKey })` against manifest-declared
31
40
  `webCustomerExposed` / `web_customer_exposed` customer surfaces.
@@ -22,6 +22,20 @@ This template uses the `tenant_web_auth_sdk` profile:
22
22
  Only `src/mw/` is MinuteWork substrate. Keep product UI and product logic in
23
23
  `src/app`, `src/features`, and developer-owned modules.
24
24
 
25
+ The local `/login` route is product UI that calls SDK hooks. The SDK also
26
+ provides hosted UI helpers for same-origin `/_mw/login`, `/_mw/signup`, and
27
+ `/_mw/verify-email` URLs; both paths stay on the same SDK contract.
28
+
29
+ Client-side `/app` session checks are only UX gating. Authorization is enforced
30
+ by the platform `/_mw` routes and runtime dispatch: active customer membership,
31
+ email verification, app publication, and manifest `web_customer_exposed`
32
+ declarations are checked server-side.
33
+
34
+ If a generated workspace reports `@minutework/web-auth` as missing, treat that
35
+ as a dependency installation or package publishing/sync issue. Do not recreate
36
+ platform BFF routes, browser bearer tokens, or platform credential login as a
37
+ workaround.
38
+
25
39
  ## Default route shape
26
40
 
27
41
  - public routes at `/`, `/pricing`, `/docs`, and `/blog`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minutework",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "MinuteWork CLI for workspace scaffolding, local preview workflows, and hosted preview deploys.",
5
5
  "type": "module",
6
6
  "bin": {