@plumbus/core 0.7.6 → 0.7.8

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 (50) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +5 -3
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/ai/types/fields.d.ts +6 -0
  5. package/dist/cli/cli.d.ts.map +1 -1
  6. package/dist/cli/cli.js +2 -1
  7. package/dist/cli/cli.js.map +1 -1
  8. package/dist/cli/commands/dev.d.ts.map +1 -1
  9. package/dist/cli/commands/dev.js +1 -0
  10. package/dist/cli/commands/dev.js.map +1 -1
  11. package/dist/cli/commands/index.d.ts +1 -0
  12. package/dist/cli/commands/index.d.ts.map +1 -1
  13. package/dist/cli/commands/index.js +1 -0
  14. package/dist/cli/commands/index.js.map +1 -1
  15. package/dist/cli/commands/init.d.ts +1 -1
  16. package/dist/cli/commands/init.d.ts.map +1 -1
  17. package/dist/cli/commands/init.js +61 -3
  18. package/dist/cli/commands/init.js.map +1 -1
  19. package/dist/cli/commands/payments.d.ts +56 -0
  20. package/dist/cli/commands/payments.d.ts.map +1 -0
  21. package/dist/cli/commands/payments.js +184 -0
  22. package/dist/cli/commands/payments.js.map +1 -0
  23. package/dist/cli/commands/start.d.ts.map +1 -1
  24. package/dist/cli/commands/start.js +1 -0
  25. package/dist/cli/commands/start.js.map +1 -1
  26. package/dist/cli/discover.d.ts.map +1 -1
  27. package/dist/cli/discover.js +20 -3
  28. package/dist/cli/discover.js.map +1 -1
  29. package/dist/data/schema-generator.d.ts.map +1 -1
  30. package/dist/data/schema-generator.js +2 -2
  31. package/dist/data/schema-generator.js.map +1 -1
  32. package/dist/fields/index.d.ts +7 -0
  33. package/dist/fields/index.d.ts.map +1 -1
  34. package/dist/fields/index.js +10 -1
  35. package/dist/fields/index.js.map +1 -1
  36. package/dist/runtime/bootstrap.d.ts +1 -1
  37. package/dist/runtime/bootstrap.d.ts.map +1 -1
  38. package/dist/runtime/load-extensions.d.ts.map +1 -1
  39. package/dist/runtime/load-extensions.js +4 -0
  40. package/dist/runtime/load-extensions.js.map +1 -1
  41. package/dist/testing/field-validation.d.ts.map +1 -1
  42. package/dist/testing/field-validation.js +3 -0
  43. package/dist/testing/field-validation.js.map +1 -1
  44. package/dist/types/fields.d.ts +6 -0
  45. package/dist/types/fields.d.ts.map +1 -1
  46. package/instructions/cli.md +19 -1
  47. package/instructions/entities.md +3 -1
  48. package/instructions/framework.md +5 -0
  49. package/instructions/peer-dependencies.md +2 -1
  50. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @plumbus/core changelog
2
2
 
3
+ ## 0.7.8 — 2026-09-27
4
+
5
+ - `plumbus dev` and `plumbus start` load an `authenticationRuntime` export from `app/server.ts` (named or on the default export) and pass it to `createServer`, so apps that do not own their bootstrap can use `@plumbus/auth` browser sign-in. Without the export nothing changes. With it, capability routes authenticate through the runtime's composite authenticator (bearer first, then the session cookie) and `routeConfig.authAdapter` is the deny-all adapter, so custom routes in `onRoutesRegistered` should call `routeConfig.requestAuthenticator`.
6
+
7
+ ## 0.7.7 — 2026-09-27
8
+
9
+ - Add `field.bigint()`: a 64-bit integer column (PostgreSQL `bigint`, read and written as a JS number, safe integers only) for money in minor units and running totals. `field.number()` stays a 32-bit `integer`; test field validation rejects unsafe integers in bigint fields. Docs now state the actual column types (`field.decimal()` is floating point and must not hold money).
10
+ - Add `plumbus payments doctor [--live] [--webhook-url] [--fail-on-warning] [--json]`, `plumbus payments webhooks setup --url`, and `plumbus payments catalog sync|check [--json]` (the add-on's billing catalog at the provider; `check` exits 1 when it differs). They load the app's `app/payments/index.ts` export from the new optional `@plumbus/payments` add-on; core does not depend on it.
11
+ - Discovery registers exported collections: an exported array, or a plain object without a `name` (for example `export const paymentCapabilities = payments.capabilities`), contributes each capability, entity, event, or flow it contains, one level deep. A resource exported both alone and in a collection is registered once.
12
+ - Bump agent wiring to v18: all agent formats reference the `@plumbus/payments` and `@plumbus/payments-stripe` instruction files, and `@plumbus/auth-cognito`'s `attested-sign-in.md` (server-attested sign-in, auth-cognito 0.2.2). Refresh apps with `plumbus init --patch --agent all`.
13
+
3
14
  ## 0.7.6 — 2026-09-27
4
15
 
5
16
  - Fix the event pipeline stalling whenever audit is wired, which the worker pool does by default (#65). Since 0.7.0 `createAuditService` refuses outcomes outside `success | failure | denied`, but the outbox dispatcher and event worker still wrote `pending`, `retry` and `dead_lettered`. Every dispatch left its outbox row in `processing` and no consumer handler ran. Attempts now record no outcome (stored as `success`), `event.dispatch.failed` and `event.consumer.dead_lettered` record `failure`, and a failed dispatch keeps `retry` / `dead_lettered` in a `disposition` metadata field. Apps that rewrote these literals in `dist/` can remove that patch.
package/README.md CHANGED
@@ -166,9 +166,11 @@ node_modules/@plumbus/core/instructions/
166
166
  └── upgrading-0.5-capabilities.md # 0.5.x capability invocation migration
167
167
  ```
168
168
 
169
- Wire them up with `plumbus init --agent all`. After upgrading to core 0.7.4+, run
170
- `plumbus init --patch --agent all` for wiring v17. For classification, provider/model
171
- selection, or TypeSafe/Jev and Laya, start with [the classification recipe](instructions/ai-classification.md).
169
+ Wire them up with `plumbus init --agent all`. After upgrading to core 0.7.7+, run
170
+ `plumbus init --patch --agent all` for wiring v18 (v17 added the classification recipe;
171
+ v18 adds the payments packages and Cognito server-attested sign-in). For classification,
172
+ provider/model selection, or TypeSafe/Jev and Laya, start with
173
+ [the classification recipe](instructions/ai-classification.md).
172
174
 
173
175
  ## Documentation
174
176