@madewithremy/admin 0.1.59 → 0.1.61

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 CHANGED
@@ -4,6 +4,32 @@ What changed in `@madewithremy/admin`, newest first, each version under its own
4
4
 
5
5
  Versions before 0.1.44 aren't recorded here.
6
6
 
7
+ ## 0.1.61
8
+
9
+ ### New
10
+
11
+ - `db history purge` (`admin.db.historyPurge()`) deletes every copy of the database the app's replaced releases keep, now, for a deletion request that can't wait. Live is untouched.
12
+ - Each entry `db history` lists carries `keptUntil`, when its copy is deleted.
13
+
14
+ ### Changed behavior
15
+
16
+ - `data lift-from-live` (`admin.data.liftFromLive()`) is refused with `live_too_large_to_copy` (422) once live's databases are past 1 GB. Check for: a workflow that pulls a large live into dev, which should seed dev with scenarios instead. `--truncate` is unaffected.
17
+ - A replaced release's copy of the database is kept 28 days after the release is replaced, then deleted. Before, every copy was kept for the life of the app. `db history` lists only the copies still kept, and reading or attaching one that's gone answers `copy_expired` (404) instead of `no_database`. Check for: a script or a recovery that reaches for a copy older than 28 days.
18
+
19
+ ## 0.1.60
20
+
21
+ ### New
22
+
23
+ - A data source's model settings keep a route pin: `--embedding-model`, `--extraction-model`, `--contextual-model`, `--image-model` and `--rerank-model` each take `model@routeKey` (`text-embedding-3-large@openai`), and `datasources config` shows the pin as stored. Before, the api dropped the pin from every model but the reranker and stored the bare id, which routes automatically. `datasources --help` says how a pin behaves.
24
+
25
+ ### Fixed
26
+
27
+ - `datasources --help` said extraction caches survive a delete. A document's extracted text goes once no document in the app holds the same bytes, and dropping a version deletes the extracted text of any model no other version uses. The help, and `admin.dataSources.deleteSource`'s docs, say so now.
28
+
29
+ ### Changed behavior
30
+
31
+ - A route the model doesn't declare is refused with `model_route_unavailable` (400), and `--rerank-model` refuses a model that doesn't rerank with `rerank_model_invalid` (422), on `config` and on `eval run`. Both were accepted before: an ingest model's pin was dropped, and a bad reranker left every search unreranked. Check for: a script that passed a pin or a reranker the model can't take, which now fails where it used to be ignored.
32
+
7
33
  ## 0.1.59
8
34
 
9
35
  ### Changed behavior
package/dist/index.js CHANGED
@@ -1707,6 +1707,7 @@ var db_exports = {};
1707
1707
  __export(db_exports, {
1708
1708
  history: () => history,
1709
1709
  historyAttach: () => historyAttach,
1710
+ historyPurge: () => historyPurge,
1710
1711
  historyQuery: () => historyQuery,
1711
1712
  query: () => query2
1712
1713
  });
@@ -1741,6 +1742,14 @@ function historyAttach(ctx, releaseId, sql) {
1741
1742
  { releaseId, queries: [{ sql }] }
1742
1743
  );
1743
1744
  }
1745
+ function historyPurge(ctx) {
1746
+ return call(
1747
+ ctx,
1748
+ "POST",
1749
+ `/_internal/v2/apps/${ctx.appId}/db/history/purge`,
1750
+ {}
1751
+ );
1752
+ }
1744
1753
 
1745
1754
  // src/ops/diagnostics.ts
1746
1755
  var diagnostics_exports = {};