@mainsoft/agent-cms 0.10.1 → 0.11.0

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 (87) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +98 -2
  3. package/TODO.md +6 -6
  4. package/UPGRADE-0.11.md +43 -0
  5. package/dist/agent.d.cts +1 -1
  6. package/dist/agent.d.ts +1 -1
  7. package/dist/agent.js +7 -7
  8. package/dist/bin.js +236 -23
  9. package/dist/{chunk-IU2SMWAM.js → chunk-42PW3HQ3.js} +15 -1
  10. package/dist/{chunk-6PB4ZCHH.js → chunk-CIMW73L3.js} +58 -1
  11. package/dist/{chunk-7Y6TU2UA.js → chunk-HY4ED7LT.js} +2 -2
  12. package/dist/{chunk-DSJETZT4.js → chunk-I3DF6DMI.js} +15 -10
  13. package/dist/{chunk-KAO3Z3CF.js → chunk-I5UHTAAW.js} +3 -1
  14. package/dist/{chunk-7SCYDG2G.js → chunk-J25IKU7C.js} +164 -28
  15. package/dist/{chunk-BFVBHIHV.js → chunk-J5DW3RFQ.js} +4 -1
  16. package/dist/{chunk-7WJIIJCI.js → chunk-LELPCGDX.js} +8 -5
  17. package/dist/{chunk-QMPSOLLH.js → chunk-NO6S7KOL.js} +1 -1
  18. package/dist/{chunk-ZCUJ4MPT.js → chunk-OLHLSSTD.js} +3 -3
  19. package/dist/{chunk-3OPKTBEI.js → chunk-SV3ZA6XP.js} +1 -1
  20. package/dist/{chunk-PEQY4N73.js → chunk-TKKTEGHL.js} +1 -0
  21. package/dist/{chunk-PGV2QPIL.js → chunk-WWG7XDIZ.js} +2 -0
  22. package/dist/cli.cjs +236 -23
  23. package/dist/cli.d.cts +2 -2
  24. package/dist/cli.d.ts +2 -2
  25. package/dist/cli.js +18 -16
  26. package/dist/client.cjs +4 -1
  27. package/dist/client.d.cts +14 -2
  28. package/dist/client.d.ts +14 -2
  29. package/dist/client.js +1 -1
  30. package/dist/{cms-pqJyowu1.d.ts → cms-A9tmLmTP.d.ts} +100 -5
  31. package/dist/{cms-C_vkAxYV.d.cts → cms-CaB81PPX.d.cts} +100 -5
  32. package/dist/config.d.cts +1 -1
  33. package/dist/config.d.ts +1 -1
  34. package/dist/{drizzle-repo-DWLD0rWe.d.ts → drizzle-repo-BXV-hFkE.d.ts} +1 -1
  35. package/dist/{drizzle-repo-CviH3EX7.d.cts → drizzle-repo-CblPVYnK.d.cts} +1 -1
  36. package/dist/errors.cjs +4 -0
  37. package/dist/errors.d.cts +3 -1
  38. package/dist/errors.d.ts +3 -1
  39. package/dist/errors.js +2 -2
  40. package/dist/frontmatter.d.cts +1 -1
  41. package/dist/frontmatter.d.ts +1 -1
  42. package/dist/http.cjs +32 -12
  43. package/dist/http.d.cts +18 -4
  44. package/dist/http.d.ts +18 -4
  45. package/dist/http.js +30 -20
  46. package/dist/image-sharp.cjs +104 -0
  47. package/dist/image-sharp.d.cts +47 -0
  48. package/dist/image-sharp.d.ts +47 -0
  49. package/dist/image-sharp.js +70 -0
  50. package/dist/index.cjs +244 -27
  51. package/dist/index.d.cts +3 -3
  52. package/dist/index.d.ts +3 -3
  53. package/dist/index.js +21 -21
  54. package/dist/mcp.cjs +9 -4
  55. package/dist/mcp.d.cts +1 -1
  56. package/dist/mcp.d.ts +1 -1
  57. package/dist/mcp.js +11 -11
  58. package/dist/messages/en.cjs +2 -0
  59. package/dist/messages/en.js +1 -1
  60. package/dist/messages/ko.cjs +2 -0
  61. package/dist/messages/ko.js +2 -0
  62. package/dist/registry/cms-doc-editor.json +6 -1
  63. package/dist/registry/cms-lib.json +2 -2
  64. package/dist/registry/cms-media-picker.json +2 -2
  65. package/dist/registry/cms-media.json +1 -1
  66. package/dist/registry/registry.json +4 -0
  67. package/dist/storage-vercel-blob.cjs +199 -0
  68. package/dist/storage-vercel-blob.d.cts +98 -0
  69. package/dist/storage-vercel-blob.d.ts +98 -0
  70. package/dist/storage-vercel-blob.js +165 -0
  71. package/dist/storage.cjs +63 -3
  72. package/dist/storage.d.cts +27 -2
  73. package/dist/storage.d.ts +27 -2
  74. package/dist/storage.js +9 -3
  75. package/dist/tables.cjs +15 -1
  76. package/dist/tables.d.cts +154 -1
  77. package/dist/tables.d.ts +154 -1
  78. package/dist/tables.js +2 -2
  79. package/dist/tools.cjs +8 -3
  80. package/dist/tools.d.cts +1 -1
  81. package/dist/tools.d.ts +1 -1
  82. package/dist/tools.js +9 -9
  83. package/dist/types.cjs +5 -0
  84. package/dist/types.d.cts +6 -1
  85. package/dist/types.d.ts +6 -1
  86. package/dist/types.js +3 -3
  87. package/package.json +36 -2
package/dist/tables.d.ts CHANGED
@@ -4,7 +4,7 @@ import 'zod';
4
4
  import './errors.js';
5
5
 
6
6
  /** Bump when a release changes the tables; `doctor` and boot compare it with `cms_meta.schema_version`. */
7
- declare const SCHEMA_VERSION = 4;
7
+ declare const SCHEMA_VERSION = 5;
8
8
 
9
9
  interface CmsTablesOptions {
10
10
  /** Table name prefix. Default "cms_". */
@@ -1615,6 +1615,57 @@ declare function cmsTables(o?: CmsTablesOptions): {
1615
1615
  identity: undefined;
1616
1616
  generated: undefined;
1617
1617
  }, {}, {}>;
1618
+ focalX: drizzle_orm_pg_core.PgColumn<{
1619
+ name: "focal_x";
1620
+ tableName: string;
1621
+ dataType: "number";
1622
+ columnType: "PgReal";
1623
+ data: number;
1624
+ driverParam: string | number;
1625
+ notNull: false;
1626
+ hasDefault: false;
1627
+ isPrimaryKey: false;
1628
+ isAutoincrement: false;
1629
+ hasRuntimeDefault: false;
1630
+ enumValues: undefined;
1631
+ baseColumn: never;
1632
+ identity: undefined;
1633
+ generated: undefined;
1634
+ }, {}, {}>;
1635
+ focalY: drizzle_orm_pg_core.PgColumn<{
1636
+ name: "focal_y";
1637
+ tableName: string;
1638
+ dataType: "number";
1639
+ columnType: "PgReal";
1640
+ data: number;
1641
+ driverParam: string | number;
1642
+ notNull: false;
1643
+ hasDefault: false;
1644
+ isPrimaryKey: false;
1645
+ isAutoincrement: false;
1646
+ hasRuntimeDefault: false;
1647
+ enumValues: undefined;
1648
+ baseColumn: never;
1649
+ identity: undefined;
1650
+ generated: undefined;
1651
+ }, {}, {}>;
1652
+ rev: drizzle_orm_pg_core.PgColumn<{
1653
+ name: "rev";
1654
+ tableName: string;
1655
+ dataType: "number";
1656
+ columnType: "PgInteger";
1657
+ data: number;
1658
+ driverParam: string | number;
1659
+ notNull: true;
1660
+ hasDefault: true;
1661
+ isPrimaryKey: false;
1662
+ isAutoincrement: false;
1663
+ hasRuntimeDefault: false;
1664
+ enumValues: undefined;
1665
+ baseColumn: never;
1666
+ identity: undefined;
1667
+ generated: undefined;
1668
+ }, {}, {}>;
1618
1669
  status: drizzle_orm_pg_core.PgColumn<{
1619
1670
  name: "status";
1620
1671
  tableName: string;
@@ -4201,6 +4252,57 @@ declare const defaultTables: {
4201
4252
  identity: undefined;
4202
4253
  generated: undefined;
4203
4254
  }, {}, {}>;
4255
+ focalX: drizzle_orm_pg_core.PgColumn<{
4256
+ name: "focal_x";
4257
+ tableName: string;
4258
+ dataType: "number";
4259
+ columnType: "PgReal";
4260
+ data: number;
4261
+ driverParam: string | number;
4262
+ notNull: false;
4263
+ hasDefault: false;
4264
+ isPrimaryKey: false;
4265
+ isAutoincrement: false;
4266
+ hasRuntimeDefault: false;
4267
+ enumValues: undefined;
4268
+ baseColumn: never;
4269
+ identity: undefined;
4270
+ generated: undefined;
4271
+ }, {}, {}>;
4272
+ focalY: drizzle_orm_pg_core.PgColumn<{
4273
+ name: "focal_y";
4274
+ tableName: string;
4275
+ dataType: "number";
4276
+ columnType: "PgReal";
4277
+ data: number;
4278
+ driverParam: string | number;
4279
+ notNull: false;
4280
+ hasDefault: false;
4281
+ isPrimaryKey: false;
4282
+ isAutoincrement: false;
4283
+ hasRuntimeDefault: false;
4284
+ enumValues: undefined;
4285
+ baseColumn: never;
4286
+ identity: undefined;
4287
+ generated: undefined;
4288
+ }, {}, {}>;
4289
+ rev: drizzle_orm_pg_core.PgColumn<{
4290
+ name: "rev";
4291
+ tableName: string;
4292
+ dataType: "number";
4293
+ columnType: "PgInteger";
4294
+ data: number;
4295
+ driverParam: string | number;
4296
+ notNull: true;
4297
+ hasDefault: true;
4298
+ isPrimaryKey: false;
4299
+ isAutoincrement: false;
4300
+ hasRuntimeDefault: false;
4301
+ enumValues: undefined;
4302
+ baseColumn: never;
4303
+ identity: undefined;
4304
+ generated: undefined;
4305
+ }, {}, {}>;
4204
4306
  status: drizzle_orm_pg_core.PgColumn<{
4205
4307
  name: "status";
4206
4308
  tableName: string;
@@ -6784,6 +6886,57 @@ declare const cmsAssets: drizzle_orm_pg_core.PgTableWithColumns<{
6784
6886
  identity: undefined;
6785
6887
  generated: undefined;
6786
6888
  }, {}, {}>;
6889
+ focalX: drizzle_orm_pg_core.PgColumn<{
6890
+ name: "focal_x";
6891
+ tableName: string;
6892
+ dataType: "number";
6893
+ columnType: "PgReal";
6894
+ data: number;
6895
+ driverParam: string | number;
6896
+ notNull: false;
6897
+ hasDefault: false;
6898
+ isPrimaryKey: false;
6899
+ isAutoincrement: false;
6900
+ hasRuntimeDefault: false;
6901
+ enumValues: undefined;
6902
+ baseColumn: never;
6903
+ identity: undefined;
6904
+ generated: undefined;
6905
+ }, {}, {}>;
6906
+ focalY: drizzle_orm_pg_core.PgColumn<{
6907
+ name: "focal_y";
6908
+ tableName: string;
6909
+ dataType: "number";
6910
+ columnType: "PgReal";
6911
+ data: number;
6912
+ driverParam: string | number;
6913
+ notNull: false;
6914
+ hasDefault: false;
6915
+ isPrimaryKey: false;
6916
+ isAutoincrement: false;
6917
+ hasRuntimeDefault: false;
6918
+ enumValues: undefined;
6919
+ baseColumn: never;
6920
+ identity: undefined;
6921
+ generated: undefined;
6922
+ }, {}, {}>;
6923
+ rev: drizzle_orm_pg_core.PgColumn<{
6924
+ name: "rev";
6925
+ tableName: string;
6926
+ dataType: "number";
6927
+ columnType: "PgInteger";
6928
+ data: number;
6929
+ driverParam: string | number;
6930
+ notNull: true;
6931
+ hasDefault: true;
6932
+ isPrimaryKey: false;
6933
+ isAutoincrement: false;
6934
+ hasRuntimeDefault: false;
6935
+ enumValues: undefined;
6936
+ baseColumn: never;
6937
+ identity: undefined;
6938
+ generated: undefined;
6939
+ }, {}, {}>;
6787
6940
  status: drizzle_orm_pg_core.PgColumn<{
6788
6941
  name: "status";
6789
6942
  tableName: string;
package/dist/tables.js CHANGED
@@ -18,10 +18,10 @@ import {
18
18
  schemaVersionSql,
19
19
  splitSql,
20
20
  upgradeSteps
21
- } from "./chunk-IU2SMWAM.js";
21
+ } from "./chunk-42PW3HQ3.js";
22
22
  import {
23
23
  SCHEMA_VERSION
24
- } from "./chunk-3OPKTBEI.js";
24
+ } from "./chunk-SV3ZA6XP.js";
25
25
  import "./chunk-2NTK7H4W.js";
26
26
  export {
27
27
  LEGACY_COLUMNS,
package/dist/tools.cjs CHANGED
@@ -633,9 +633,14 @@ var CMS_TOOLS = [
633
633
  {
634
634
  name: "update_asset",
635
635
  media: "write",
636
- description: "Change a file's alt text or tags. Documents that use the file without their own alt text show the new one.",
637
- input: import_zod.z.object({ id: assetId, alt: import_zod.z.string().optional(), tags: import_zod.z.array(import_zod.z.string()).optional() }),
638
- run: async (cms, actor, a) => assetOut(await cms.assets.update(actor, a.id, { alt: a.alt, tags: a.tags }))
636
+ description: "Change a file's alt text, tags or focal point. Documents that use the file without their own alt text show the new one.",
637
+ input: import_zod.z.object({
638
+ id: assetId,
639
+ alt: import_zod.z.string().optional(),
640
+ tags: import_zod.z.array(import_zod.z.string()).optional(),
641
+ focal: import_zod.z.object({ x: import_zod.z.number().min(0).max(1), y: import_zod.z.number().min(0).max(1) }).nullable().optional().describe("Images: the point that stays in view when the picture is cropped, from the left and from the top (0..1). null clears it.")
642
+ }),
643
+ run: async (cms, actor, a) => assetOut(await cms.assets.update(actor, a.id, { alt: a.alt, tags: a.tags, focal: a.focal }))
639
644
  },
640
645
  {
641
646
  name: "move_asset",
package/dist/tools.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { n as CmsCore, C as CmsLike } from './cms-C_vkAxYV.cjs';
2
+ import { p as CmsCore, C as CmsLike } from './cms-CaB81PPX.cjs';
3
3
  import { Actor } from './types.cjs';
4
4
  import { Diagnostic } from './errors.cjs';
5
5
  import './storage.cjs';
package/dist/tools.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { n as CmsCore, C as CmsLike } from './cms-pqJyowu1.js';
2
+ import { p as CmsCore, C as CmsLike } from './cms-A9tmLmTP.js';
3
3
  import { Actor } from './types.js';
4
4
  import { Diagnostic } from './errors.js';
5
5
  import './storage.js';
package/dist/tools.js CHANGED
@@ -5,17 +5,17 @@ import {
5
5
  runTool,
6
6
  toolErrorResult,
7
7
  toolsFor
8
- } from "./chunk-DSJETZT4.js";
9
- import "./chunk-BFVBHIHV.js";
10
- import "./chunk-7Y6TU2UA.js";
11
- import "./chunk-7SCYDG2G.js";
8
+ } from "./chunk-I3DF6DMI.js";
9
+ import "./chunk-HY4ED7LT.js";
10
+ import "./chunk-J25IKU7C.js";
12
11
  import "./chunk-MA6VKJ3F.js";
13
- import "./chunk-PEQY4N73.js";
14
- import "./chunk-3OPKTBEI.js";
12
+ import "./chunk-TKKTEGHL.js";
13
+ import "./chunk-I5UHTAAW.js";
14
+ import "./chunk-WWG7XDIZ.js";
15
+ import "./chunk-SV3ZA6XP.js";
15
16
  import "./chunk-AKN7SUXU.js";
16
- import "./chunk-KAO3Z3CF.js";
17
- import "./chunk-PGV2QPIL.js";
18
- import "./chunk-6PB4ZCHH.js";
17
+ import "./chunk-J5DW3RFQ.js";
18
+ import "./chunk-CIMW73L3.js";
19
19
  import "./chunk-2NTK7H4W.js";
20
20
  export {
21
21
  CMS_TOOLS,
package/dist/types.cjs CHANGED
@@ -91,6 +91,8 @@ var en = {
91
91
  import_blocked: "That address cannot be fetched",
92
92
  import_failed: "Could not fetch the file ({reason})",
93
93
  asset_rejected: "This file did not pass the check",
94
+ asset_replace_type: "A file can only be replaced by one of the same type ({mime})",
95
+ unknown_image_size: "There is no image size named \u201C{size}\u201D",
94
96
  asset_missing: "The file {id} does not exist",
95
97
  asset_wrong_kind: "The file {id} is not a kind this field takes",
96
98
  asset_alt_missing: "The image on line {line} has no alt text",
@@ -181,6 +183,8 @@ var ERROR_CODES = {
181
183
  import_blocked: "invalid",
182
184
  import_failed: "invalid",
183
185
  asset_rejected: "invalid",
186
+ asset_replace_type: "invalid",
187
+ unknown_image_size: "not_found",
184
188
  asset_missing: "invalid",
185
189
  asset_wrong_kind: "invalid",
186
190
  asset_alt_missing: "invalid",
@@ -293,6 +297,7 @@ var AUDIT_ACTIONS = [
293
297
  "review.reject",
294
298
  "release.publish",
295
299
  "asset.restore",
300
+ "asset.replace",
296
301
  "preview.create",
297
302
  "asset.upload",
298
303
  "asset.move",
package/dist/types.d.cts CHANGED
@@ -260,7 +260,7 @@ interface CmsKey {
260
260
  expiresAt: string | null;
261
261
  createdAt: string;
262
262
  }
263
- declare const AUDIT_ACTIONS: readonly ["key.create", "key.revoke", "doc.publish", "doc.unpublish", "doc.archive", "doc.unarchive", "doc.delete", "doc.restore", "doc.undelete", "doc.purge", "doc.schedule", "doc.unschedule", "review.request", "review.approve", "review.reject", "release.publish", "asset.restore", "preview.create", "asset.upload", "asset.move", "asset.delete", "asset.register", "asset.share", "access.denied", "auth.failed"];
263
+ declare const AUDIT_ACTIONS: readonly ["key.create", "key.revoke", "doc.publish", "doc.unpublish", "doc.archive", "doc.unarchive", "doc.delete", "doc.restore", "doc.undelete", "doc.purge", "doc.schedule", "doc.unschedule", "review.request", "review.approve", "review.reject", "release.publish", "asset.restore", "asset.replace", "preview.create", "asset.upload", "asset.move", "asset.delete", "asset.register", "asset.share", "access.denied", "auth.failed"];
264
264
  type AuditAction = (typeof AUDIT_ACTIONS)[number];
265
265
  interface AuditEntry {
266
266
  id: string;
@@ -342,6 +342,11 @@ interface CmsAsset {
342
342
  alt: string;
343
343
  tags: string[];
344
344
  thumbKey: string | null;
345
+ /** The point of an image that must stay in view when it is cropped (0..1 from the left and from the top), or null. */
346
+ focalX: number | null;
347
+ focalY: number | null;
348
+ /** How many times the content was replaced at the same address. */
349
+ rev: number;
345
350
  /** `pending` while it is being uploaded. */
346
351
  status: "pending" | "ready";
347
352
  uploadId: string | null;
package/dist/types.d.ts CHANGED
@@ -260,7 +260,7 @@ interface CmsKey {
260
260
  expiresAt: string | null;
261
261
  createdAt: string;
262
262
  }
263
- declare const AUDIT_ACTIONS: readonly ["key.create", "key.revoke", "doc.publish", "doc.unpublish", "doc.archive", "doc.unarchive", "doc.delete", "doc.restore", "doc.undelete", "doc.purge", "doc.schedule", "doc.unschedule", "review.request", "review.approve", "review.reject", "release.publish", "asset.restore", "preview.create", "asset.upload", "asset.move", "asset.delete", "asset.register", "asset.share", "access.denied", "auth.failed"];
263
+ declare const AUDIT_ACTIONS: readonly ["key.create", "key.revoke", "doc.publish", "doc.unpublish", "doc.archive", "doc.unarchive", "doc.delete", "doc.restore", "doc.undelete", "doc.purge", "doc.schedule", "doc.unschedule", "review.request", "review.approve", "review.reject", "release.publish", "asset.restore", "asset.replace", "preview.create", "asset.upload", "asset.move", "asset.delete", "asset.register", "asset.share", "access.denied", "auth.failed"];
264
264
  type AuditAction = (typeof AUDIT_ACTIONS)[number];
265
265
  interface AuditEntry {
266
266
  id: string;
@@ -342,6 +342,11 @@ interface CmsAsset {
342
342
  alt: string;
343
343
  tags: string[];
344
344
  thumbKey: string | null;
345
+ /** The point of an image that must stay in view when it is cropped (0..1 from the left and from the top), or null. */
346
+ focalX: number | null;
347
+ focalY: number | null;
348
+ /** How many times the content was replaced at the same address. */
349
+ rev: number;
345
350
  /** `pending` while it is being uploaded. */
346
351
  status: "pending" | "ready";
347
352
  uploadId: string | null;
package/dist/types.js CHANGED
@@ -5,15 +5,15 @@ import {
5
5
  KEY_SCOPES,
6
6
  VIAS,
7
7
  docState
8
- } from "./chunk-PEQY4N73.js";
8
+ } from "./chunk-TKKTEGHL.js";
9
9
  import {
10
10
  CmsError,
11
11
  ERROR_CODES,
12
12
  ERROR_KINDS,
13
13
  formatMessage,
14
14
  isCmsError
15
- } from "./chunk-KAO3Z3CF.js";
16
- import "./chunk-PGV2QPIL.js";
15
+ } from "./chunk-I5UHTAAW.js";
16
+ import "./chunk-WWG7XDIZ.js";
17
17
  import "./chunk-2NTK7H4W.js";
18
18
  export {
19
19
  ASSET_KINDS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mainsoft/agent-cms",
3
- "version": "0.10.1",
3
+ "version": "0.11.0",
4
4
  "description": "An add-on CMS that runs inside your web app, edited by people (admin UI) and AI agents (MCP, REST, CLI) together.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -20,6 +20,7 @@
20
20
  "UPGRADE-0.6.md",
21
21
  "UPGRADE-0.8.md",
22
22
  "UPGRADE-0.10.md",
23
+ "UPGRADE-0.11.md",
23
24
  "CHANGELOG.md",
24
25
  "TODO.md",
25
26
  "LICENSE"
@@ -102,6 +103,26 @@
102
103
  "default": "./dist/storage-s3.cjs"
103
104
  }
104
105
  },
106
+ "./storage-vercel-blob": {
107
+ "import": {
108
+ "types": "./dist/storage-vercel-blob.d.ts",
109
+ "default": "./dist/storage-vercel-blob.js"
110
+ },
111
+ "require": {
112
+ "types": "./dist/storage-vercel-blob.d.cts",
113
+ "default": "./dist/storage-vercel-blob.cjs"
114
+ }
115
+ },
116
+ "./image-sharp": {
117
+ "import": {
118
+ "types": "./dist/image-sharp.d.ts",
119
+ "default": "./dist/image-sharp.js"
120
+ },
121
+ "require": {
122
+ "types": "./dist/image-sharp.d.cts",
123
+ "default": "./dist/image-sharp.cjs"
124
+ }
125
+ },
105
126
  "./agent": {
106
127
  "import": {
107
128
  "types": "./dist/agent.d.ts",
@@ -227,12 +248,23 @@
227
248
  "check:pack": "publint --strict && attw --pack . --profile node16",
228
249
  "prepublishOnly": "npm run typecheck && npm test && npm run build",
229
250
  "build:registry": "tsx scripts/build-registry.ts",
230
- "test:shadcn": "bash scripts/shadcn-smoke.sh"
251
+ "test:shadcn": "bash scripts/shadcn-smoke.sh",
252
+ "test:blob": "tsx --test src/storage-vercel-blob.test.ts"
231
253
  },
232
254
  "peerDependencies": {
255
+ "@vercel/blob": ">=2.9.0",
233
256
  "drizzle-orm": ">=0.36.0",
257
+ "sharp": ">=0.33.0",
234
258
  "zod": "^3.25.0 || ^4.0.0"
235
259
  },
260
+ "peerDependenciesMeta": {
261
+ "@vercel/blob": {
262
+ "optional": true
263
+ },
264
+ "sharp": {
265
+ "optional": true
266
+ }
267
+ },
236
268
  "devDependencies": {
237
269
  "@arethetypeswrong/cli": "0.18.5",
238
270
  "@electric-sql/pglite": "0.5.16",
@@ -245,6 +277,7 @@
245
277
  "@types/pg": "8.23.1",
246
278
  "@types/react": "18.3.31",
247
279
  "@types/react-dom": "18.3.7",
280
+ "@vercel/blob": "2.9.0",
248
281
  "axe-core": "4.14.1",
249
282
  "drizzle-orm": "0.45.2",
250
283
  "global-jsdom": "26.0.0",
@@ -253,6 +286,7 @@
253
286
  "publint": "0.3.25",
254
287
  "react": "18.3.1",
255
288
  "react-dom": "18.3.1",
289
+ "sharp": "0.35.5",
256
290
  "tsup": "^8.3.5",
257
291
  "tsx": "^4.19.2",
258
292
  "typescript": "^5.7.2",