@plumbus/core 0.6.8 → 0.6.9

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 (111) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +1 -11
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/ai/types/enums.d.ts +1 -0
  5. package/dist/api/authentication-http.d.ts +17 -0
  6. package/dist/api/authentication-http.d.ts.map +1 -0
  7. package/dist/api/authentication-http.js +51 -0
  8. package/dist/api/authentication-http.js.map +1 -0
  9. package/dist/api/cookies.d.ts +2 -0
  10. package/dist/api/cookies.d.ts.map +1 -0
  11. package/dist/api/cookies.js +29 -0
  12. package/dist/api/cookies.js.map +1 -0
  13. package/dist/api/index.d.ts +2 -0
  14. package/dist/api/index.d.ts.map +1 -1
  15. package/dist/api/index.js +2 -0
  16. package/dist/api/index.js.map +1 -1
  17. package/dist/api/route-generator.d.ts +3 -0
  18. package/dist/api/route-generator.d.ts.map +1 -1
  19. package/dist/api/route-generator.js +107 -19
  20. package/dist/api/route-generator.js.map +1 -1
  21. package/dist/audit/index.d.ts +1 -0
  22. package/dist/audit/index.d.ts.map +1 -1
  23. package/dist/audit/index.js +1 -0
  24. package/dist/audit/index.js.map +1 -1
  25. package/dist/audit/service.d.ts +2 -1
  26. package/dist/audit/service.d.ts.map +1 -1
  27. package/dist/audit/service.js +7 -6
  28. package/dist/audit/service.js.map +1 -1
  29. package/dist/audit/writer.d.ts +4 -0
  30. package/dist/audit/writer.d.ts.map +1 -0
  31. package/dist/audit/writer.js +17 -0
  32. package/dist/audit/writer.js.map +1 -0
  33. package/dist/auth/http-authentication.d.ts +33 -0
  34. package/dist/auth/http-authentication.d.ts.map +1 -0
  35. package/dist/auth/http-authentication.js +37 -0
  36. package/dist/auth/http-authentication.js.map +1 -0
  37. package/dist/auth/index.d.ts +2 -0
  38. package/dist/auth/index.d.ts.map +1 -1
  39. package/dist/auth/index.js +1 -0
  40. package/dist/auth/index.js.map +1 -1
  41. package/dist/cli/commands/init.d.ts +1 -1
  42. package/dist/cli/commands/init.d.ts.map +1 -1
  43. package/dist/cli/commands/init.js +64 -2
  44. package/dist/cli/commands/init.js.map +1 -1
  45. package/dist/cli/commands/migrate.js +3 -3
  46. package/dist/cli/commands/migrate.js.map +1 -1
  47. package/dist/cli/commands/ui.d.ts +5 -0
  48. package/dist/cli/commands/ui.d.ts.map +1 -1
  49. package/dist/cli/commands/ui.js +26 -3
  50. package/dist/cli/commands/ui.js.map +1 -1
  51. package/dist/cli/discover.d.ts +1 -0
  52. package/dist/cli/discover.d.ts.map +1 -1
  53. package/dist/cli/discover.js +34 -1
  54. package/dist/cli/discover.js.map +1 -1
  55. package/dist/config/duration.d.ts +4 -0
  56. package/dist/config/duration.d.ts.map +1 -0
  57. package/dist/config/duration.js +22 -0
  58. package/dist/config/duration.js.map +1 -0
  59. package/dist/config/index.d.ts +1 -0
  60. package/dist/config/index.d.ts.map +1 -1
  61. package/dist/config/index.js +1 -0
  62. package/dist/config/index.js.map +1 -1
  63. package/dist/config/loader.d.ts.map +1 -1
  64. package/dist/config/loader.js +6 -1
  65. package/dist/config/loader.js.map +1 -1
  66. package/dist/data/migration.d.ts +1 -1
  67. package/dist/data/migration.d.ts.map +1 -1
  68. package/dist/data/migration.js +31 -2
  69. package/dist/data/migration.js.map +1 -1
  70. package/dist/errors/http.d.ts.map +1 -1
  71. package/dist/errors/http.js +1 -0
  72. package/dist/errors/http.js.map +1 -1
  73. package/dist/errors/index.d.ts +3 -0
  74. package/dist/errors/index.d.ts.map +1 -1
  75. package/dist/errors/index.js +6 -0
  76. package/dist/errors/index.js.map +1 -1
  77. package/dist/flows/engine.d.ts.map +1 -1
  78. package/dist/flows/engine.js +2 -22
  79. package/dist/flows/engine.js.map +1 -1
  80. package/dist/index.d.ts +8 -7
  81. package/dist/index.d.ts.map +1 -1
  82. package/dist/index.js +5 -5
  83. package/dist/index.js.map +1 -1
  84. package/dist/jobs/routes.d.ts +2 -0
  85. package/dist/jobs/routes.d.ts.map +1 -1
  86. package/dist/jobs/routes.js +36 -5
  87. package/dist/jobs/routes.js.map +1 -1
  88. package/dist/server/authentication-runtime.d.ts +14 -0
  89. package/dist/server/authentication-runtime.d.ts.map +1 -0
  90. package/dist/server/authentication-runtime.js +2 -0
  91. package/dist/server/authentication-runtime.js.map +1 -0
  92. package/dist/server/bootstrap.d.ts +3 -0
  93. package/dist/server/bootstrap.d.ts.map +1 -1
  94. package/dist/server/bootstrap.js +45 -14
  95. package/dist/server/bootstrap.js.map +1 -1
  96. package/dist/server/index.d.ts +1 -0
  97. package/dist/server/index.d.ts.map +1 -1
  98. package/dist/testing/e2e.d.ts +3 -0
  99. package/dist/testing/e2e.d.ts.map +1 -1
  100. package/dist/testing/e2e.js +1 -0
  101. package/dist/testing/e2e.js.map +1 -1
  102. package/dist/types/audit.d.ts +13 -0
  103. package/dist/types/audit.d.ts.map +1 -1
  104. package/dist/types/enums.d.ts +1 -0
  105. package/dist/types/enums.d.ts.map +1 -1
  106. package/dist/types/enums.js +1 -0
  107. package/dist/types/enums.js.map +1 -1
  108. package/dist/types/security.d.ts +2 -0
  109. package/dist/types/security.d.ts.map +1 -1
  110. package/instructions/peer-dependencies.md +4 -1
  111. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @plumbus/core changelog
2
2
 
3
+ ## 0.6.9
4
+
5
+ ### Added (M5 — authentication contract)
6
+
7
+ - **Request-authentication contract** — `AuthenticationRequest`, `AuthenticationResult`, `RequestAuthenticator`, `wrapAuthAdapter`, and `createCompositeRequestAuthenticator` with bearer-over-cookie precedence.
8
+ - **`HttpAuthenticationRuntime`** — optional `createServer({ authenticationRuntime })` seam for session/OIDC packages.
9
+ - **`AuthContext.providerId`** — configured provider registration id for multi-provider mechanisms.
10
+ - **`AuditWriter`** — injectable audit sink with `createDatabaseAuditWriter`.
11
+ - **`parseCookieHeader` and `parseDurationToMs`** — shared HTTP cookie parsing and duration normalization utilities.
12
+ - **Migrate `app/schemas/` seam** — `discoverResources` collects extra Drizzle tables for migration generation.
13
+ - **`unauthorized` error code** — `UnauthorizedError` maps to HTTP 401.
14
+
15
+ ### Added (M6 — auth packages, docs, agent wiring)
16
+
17
+ - **`@plumbus/auth` and `@plumbus/auth-cognito` publish steps** — CI publishes both packages after `@plumbus/core`.
18
+ - **`docs/auth/`** — full OIDC session runtime documentation (getting started, configuration, providers, CSRF, Cognito, security, testing, migration, deployment).
19
+ - **Consumer AI guidance includes auth** — `plumbus init` wires `@plumbus/auth/instructions/*` and `@plumbus/auth-cognito/instructions/*`. `AGENT_WIRING_VERSION` bumped to **9**. Run `plumbus init --patch` on existing projects.
20
+
21
+ ### Changed
22
+
23
+ - **`auth.secret` no longer required** when a custom `authAdapter` or `authenticationRuntime` is supplied (§22.4).
24
+
3
25
  ## 0.6.8
4
26
 
5
27
  ### Added
package/README.md CHANGED
@@ -170,17 +170,7 @@ Full documentation: [github.com/plumbus-framework/plumbus/docs](https://github.c
170
170
 
171
171
  ## The Plumbus ecosystem
172
172
 
173
- | Package | Purpose | When to install |
174
- |---|---|---|
175
- | **`@plumbus/core`** | **You are here.** Foundation — capabilities, entities, events, flows, prompts, translations, runtime, CLI, audit, governance. | Always (required). |
176
- | [`@plumbus/ui`](../ui/) | Next.js/React UI — typed API clients, auth helpers, form metadata, scaffolds. | When building a Plumbus web UI. |
177
- | [`@plumbus/api`](../api/) | Partner external API — manifest, OpenAPI, docs, compatibility diff, test intent. | Optional peer `0.1.x` — when publishing a documented partner-facing HTTP API. |
178
- | [`@plumbus/mcp`](../mcp/) | MCP runtime — serve capabilities to AI agents (`tools/*`, `tasks/*`, transports). | Optional peer `0.5.x \|\| 0.6.x` — when exposing capabilities to MCP clients. |
179
- | [`@plumbus/chat`](../chat/) | Conversational runtime — `defineChat`, policy guards, context sources, streamed events. | Optional peer `0.1.x` — when adding a chat surface. |
180
- | [`@plumbus/chat-ui`](../chat-ui/) | React chat UI — hooks and `<ChatPanel />` for the `@plumbus/chat` turn protocol. | Peer of `@plumbus/chat` — when adding a browser chat client. |
181
- | [`@plumbus/knowledge-base`](../knowledge-base/) | Knowledge providers — scoped sources, registry, chat `knowledgeContext` integration. | Optional peer of `@plumbus/chat` `0.1.x` — when sharing named knowledge across features. |
182
- | [`@plumbus/voice`](../voice/) | Real-time voice runtime — `defineVoice`, STT/TTS/transport providers, session worker, cost ledger. | Optional peer `0.3.x` on `@plumbus/core` `0.6.x` — when adding speech I/O (not speech-to-speech); complements `@plumbus/chat` text surfaces. |
183
- | [`@plumbus/browser-extension`](../browser-extension/) | Extension scaffolder — WXT Chrome/Firefox project wired to your capabilities. | With `@plumbus/ui` (`0.1.x`) — when shipping a browser extension UI. |
173
+ `@plumbus/core` is one package in the Plumbus framework. For the full list of packages and when to use each, see the [Plumbus monorepo README](https://github.com/plumbus-framework/plumbus#packages).
184
174
 
185
175
  ## License
186
176