@plumbus/core 0.6.7 → 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.
- package/CHANGELOG.md +28 -0
- package/README.md +1 -11
- package/dist/.tsbuildinfo +1 -1
- package/dist/ai/types/enums.d.ts +1 -0
- package/dist/api/authentication-http.d.ts +17 -0
- package/dist/api/authentication-http.d.ts.map +1 -0
- package/dist/api/authentication-http.js +51 -0
- package/dist/api/authentication-http.js.map +1 -0
- package/dist/api/cookies.d.ts +2 -0
- package/dist/api/cookies.d.ts.map +1 -0
- package/dist/api/cookies.js +29 -0
- package/dist/api/cookies.js.map +1 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +2 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/route-generator.d.ts +3 -0
- package/dist/api/route-generator.d.ts.map +1 -1
- package/dist/api/route-generator.js +107 -19
- package/dist/api/route-generator.js.map +1 -1
- package/dist/audit/index.d.ts +1 -0
- package/dist/audit/index.d.ts.map +1 -1
- package/dist/audit/index.js +1 -0
- package/dist/audit/index.js.map +1 -1
- package/dist/audit/service.d.ts +2 -1
- package/dist/audit/service.d.ts.map +1 -1
- package/dist/audit/service.js +7 -6
- package/dist/audit/service.js.map +1 -1
- package/dist/audit/writer.d.ts +4 -0
- package/dist/audit/writer.d.ts.map +1 -0
- package/dist/audit/writer.js +17 -0
- package/dist/audit/writer.js.map +1 -0
- package/dist/auth/http-authentication.d.ts +33 -0
- package/dist/auth/http-authentication.d.ts.map +1 -0
- package/dist/auth/http-authentication.js +37 -0
- package/dist/auth/http-authentication.js.map +1 -0
- package/dist/auth/index.d.ts +2 -0
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +1 -0
- package/dist/auth/index.js.map +1 -1
- package/dist/cli/commands/init.d.ts +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +64 -2
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/migrate.js +3 -3
- package/dist/cli/commands/migrate.js.map +1 -1
- package/dist/cli/commands/ui.d.ts +5 -0
- package/dist/cli/commands/ui.d.ts.map +1 -1
- package/dist/cli/commands/ui.js +26 -3
- package/dist/cli/commands/ui.js.map +1 -1
- package/dist/cli/discover.d.ts +1 -0
- package/dist/cli/discover.d.ts.map +1 -1
- package/dist/cli/discover.js +34 -1
- package/dist/cli/discover.js.map +1 -1
- package/dist/config/duration.d.ts +4 -0
- package/dist/config/duration.d.ts.map +1 -0
- package/dist/config/duration.js +22 -0
- package/dist/config/duration.js.map +1 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +1 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/loader.js +6 -1
- package/dist/config/loader.js.map +1 -1
- package/dist/data/migration.d.ts +1 -1
- package/dist/data/migration.d.ts.map +1 -1
- package/dist/data/migration.js +31 -2
- package/dist/data/migration.js.map +1 -1
- package/dist/data/repository.d.ts.map +1 -1
- package/dist/data/repository.js +103 -1
- package/dist/data/repository.js.map +1 -1
- package/dist/errors/http.d.ts.map +1 -1
- package/dist/errors/http.js +1 -0
- package/dist/errors/http.js.map +1 -1
- package/dist/errors/index.d.ts +3 -0
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +6 -0
- package/dist/errors/index.js.map +1 -1
- package/dist/flows/engine.d.ts.map +1 -1
- package/dist/flows/engine.js +2 -22
- package/dist/flows/engine.js.map +1 -1
- package/dist/index.d.ts +8 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/jobs/routes.d.ts +2 -0
- package/dist/jobs/routes.d.ts.map +1 -1
- package/dist/jobs/routes.js +36 -5
- package/dist/jobs/routes.js.map +1 -1
- package/dist/server/authentication-runtime.d.ts +14 -0
- package/dist/server/authentication-runtime.d.ts.map +1 -0
- package/dist/server/authentication-runtime.js +2 -0
- package/dist/server/authentication-runtime.js.map +1 -0
- package/dist/server/bootstrap.d.ts +3 -0
- package/dist/server/bootstrap.d.ts.map +1 -1
- package/dist/server/bootstrap.js +45 -14
- package/dist/server/bootstrap.js.map +1 -1
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.d.ts.map +1 -1
- package/dist/testing/context.d.ts.map +1 -1
- package/dist/testing/context.js +113 -0
- package/dist/testing/context.js.map +1 -1
- package/dist/testing/e2e.d.ts +3 -0
- package/dist/testing/e2e.d.ts.map +1 -1
- package/dist/testing/e2e.js +1 -0
- package/dist/testing/e2e.js.map +1 -1
- package/dist/types/audit.d.ts +13 -0
- package/dist/types/audit.d.ts.map +1 -1
- package/dist/types/context.d.ts +61 -0
- package/dist/types/context.d.ts.map +1 -1
- package/dist/types/enums.d.ts +1 -0
- package/dist/types/enums.d.ts.map +1 -1
- package/dist/types/enums.js +1 -0
- package/dist/types/enums.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/security.d.ts +2 -0
- package/dist/types/security.d.ts.map +1 -1
- package/instructions/capabilities.md +8 -1
- package/instructions/entities.md +25 -0
- package/instructions/peer-dependencies.md +4 -1
- package/instructions/security.md +2 -0
- package/instructions/testing.md +29 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
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
|
+
|
|
25
|
+
## 0.6.8
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
|
|
29
|
+
- **`Repository.aggregate()`** — compute `SUM` / `AVG` / `MIN` / `MAX` / `COUNT` / `COUNT(DISTINCT)` in the database, optionally with `GROUP BY`, instead of loading rows to reduce in memory. Filtering reuses the exact `findMany`/`count` semantics (the `query` equality arg plus `dateFilters`/`search`/`in`/`notEq`), and tenant scoping, soft-delete, and encrypted-field guards all apply. Without `groupBy` it returns one grand-total row (even over an empty scope, where `SUM` is `0`); with `groupBy`, one row per matching group. `orderBy` accepts group columns or aggregate aliases (e.g. `sum_cost`); `limit` is clamped to 1–1000. New public types: `AggregateOptions`, `AggregateRow`, `AggregateValue`. The in-memory test repository (`createInMemoryRepository` / `createTestContext`) mirrors the semantics exactly, so `aggregate()` is unit-testable without a database. Additive and backward compatible — existing repository callers are unaffected, and the release stays within the `0.6.x` line so `@plumbus/ui`/`chat`/`voice` peer ranges remain satisfied.
|
|
30
|
+
|
|
3
31
|
## 0.6.7
|
|
4
32
|
|
|
5
33
|
### 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
|
-
|
|
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
|
|