@plumbus/core 0.7.5 → 0.7.7

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 (54) hide show
  1. package/CHANGELOG.md +14 -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/index.d.ts +1 -0
  9. package/dist/cli/commands/index.d.ts.map +1 -1
  10. package/dist/cli/commands/index.js +1 -0
  11. package/dist/cli/commands/index.js.map +1 -1
  12. package/dist/cli/commands/init.d.ts +1 -1
  13. package/dist/cli/commands/init.d.ts.map +1 -1
  14. package/dist/cli/commands/init.js +61 -3
  15. package/dist/cli/commands/init.js.map +1 -1
  16. package/dist/cli/commands/payments.d.ts +56 -0
  17. package/dist/cli/commands/payments.d.ts.map +1 -0
  18. package/dist/cli/commands/payments.js +184 -0
  19. package/dist/cli/commands/payments.js.map +1 -0
  20. package/dist/cli/discover.d.ts.map +1 -1
  21. package/dist/cli/discover.js +20 -3
  22. package/dist/cli/discover.js.map +1 -1
  23. package/dist/data/schema-generator.d.ts.map +1 -1
  24. package/dist/data/schema-generator.js +2 -2
  25. package/dist/data/schema-generator.js.map +1 -1
  26. package/dist/events/dispatcher.d.ts +9 -0
  27. package/dist/events/dispatcher.d.ts.map +1 -1
  28. package/dist/events/dispatcher.js +31 -16
  29. package/dist/events/dispatcher.js.map +1 -1
  30. package/dist/events/pipeline-audit.d.ts +14 -0
  31. package/dist/events/pipeline-audit.d.ts.map +1 -0
  32. package/dist/events/pipeline-audit.js +29 -0
  33. package/dist/events/pipeline-audit.js.map +1 -0
  34. package/dist/events/worker.d.ts +3 -0
  35. package/dist/events/worker.d.ts.map +1 -1
  36. package/dist/events/worker.js +13 -12
  37. package/dist/events/worker.js.map +1 -1
  38. package/dist/fields/index.d.ts +7 -0
  39. package/dist/fields/index.d.ts.map +1 -1
  40. package/dist/fields/index.js +10 -1
  41. package/dist/fields/index.js.map +1 -1
  42. package/dist/testing/field-validation.d.ts.map +1 -1
  43. package/dist/testing/field-validation.js +3 -0
  44. package/dist/testing/field-validation.js.map +1 -1
  45. package/dist/types/fields.d.ts +6 -0
  46. package/dist/types/fields.d.ts.map +1 -1
  47. package/dist/worker/bootstrap.d.ts.map +1 -1
  48. package/dist/worker/bootstrap.js +3 -0
  49. package/dist/worker/bootstrap.js.map +1 -1
  50. package/instructions/cli.md +18 -0
  51. package/instructions/entities.md +3 -1
  52. package/instructions/framework.md +4 -0
  53. package/instructions/peer-dependencies.md +2 -1
  54. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @plumbus/core changelog
2
2
 
3
+ ## 0.7.7 — 2026-09-27
4
+
5
+ - 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).
6
+ - 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.
7
+ - 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.
8
+ - 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`.
9
+
10
+ ## 0.7.6 — 2026-09-27
11
+
12
+ - 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.
13
+ - Make dispatch and delivery audit entries best-effort: a failed audit write is logged (worker pool logger, else console) and no longer skips the consumer handler, the publish, or the dead-letter write. Capabilities running inside a consumer still record their own audit.
14
+ - Return outbox rows claimed more than five minutes ago (`claimTimeoutMs`) to `pending`, so rows left in `processing` by a stopped dispatcher, including those stranded by this bug, are published after upgrading.
15
+ - Log a failed timer-driven outbox poll instead of leaving an unhandled promise rejection.
16
+
3
17
  ## 0.7.5 — 2026-09-24
4
18
 
5
19
  - Fix GPT-6 OpenAI request compatibility: Chat Completions use `max_completion_tokens`, active/default reasoning omits unsupported sampling temperature, and tool calls with GPT-6 default reasoning use the Responses API. Explicitly disabled reasoning stays on Chat Completions and retains configured temperature.
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