@plumbus/core 0.6.6 → 0.6.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.
- package/CHANGELOG.md +16 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/ai/model-pricing.d.ts.map +1 -1
- package/dist/ai/model-pricing.js +8 -1
- package/dist/ai/model-pricing.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/testing/context.d.ts.map +1 -1
- package/dist/testing/context.js +113 -0
- package/dist/testing/context.js.map +1 -1
- package/dist/types/context.d.ts +61 -0
- package/dist/types/context.d.ts.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/instructions/capabilities.md +8 -1
- package/instructions/entities.md +25 -0
- package/instructions/security.md +2 -0
- package/instructions/testing.md +29 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @plumbus/core changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.8
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **`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.
|
|
8
|
+
|
|
9
|
+
## 0.6.7
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **Model pricing catalog** — `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna`, `claude-fable-5`, `claude-mythos-5`, `claude-opus-4-8`, and `claude-sonnet-5` (introductory rate through August 2026).
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- **`update-model-pricing` fetch script** — parses OpenAI flagship tables with a five-column layout (`input`, `cached`, `cache writes`, `output`); diff output now says "not parsed from page" instead of implying models were removed.
|
|
18
|
+
|
|
3
19
|
## 0.6.6
|
|
4
20
|
|
|
5
21
|
### Breaking behavior changes
|