@mastra/cloudflare 1.4.0-alpha.0 → 1.4.1-alpha.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.
- package/CHANGELOG.md +69 -0
- package/dist/{chunk-WWZZ4U63.js → chunk-24DONDTR.js} +2 -2
- package/dist/{chunk-WWZZ4U63.js.map → chunk-24DONDTR.js.map} +1 -1
- package/dist/{chunk-FKPQX2PY.cjs → chunk-3L5KXJIJ.cjs} +2 -2
- package/dist/{chunk-FKPQX2PY.cjs.map → chunk-3L5KXJIJ.cjs.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +6 -6
- package/dist/index.cjs +6 -6
- package/dist/index.js +1 -1
- package/dist/kv/index.cjs +7 -7
- package/dist/kv/index.js +1 -1
- package/dist/kv/storage/types.d.ts +2 -1
- package/dist/kv/storage/types.d.ts.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,74 @@
|
|
|
1
1
|
# @mastra/cloudflare
|
|
2
2
|
|
|
3
|
+
## 1.4.1-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Added the `tool_provider_connections` storage domain. Stored agents can now persist per-agent ToolProvider config that round-trips on read/write/create. Runtime connection resolution (per-author, shared, caller-supplied) ships in a follow-up PR. ([#17247](https://github.com/mastra-ai/mastra/pull/17247))
|
|
8
|
+
|
|
9
|
+
**What you can do**
|
|
10
|
+
- Pin a connection on a stored agent's config and have it round-trip on read/write/create.
|
|
11
|
+
- Persist multiple connections per toolkit so a follow-up runtime PR can fan-out to the right one at execution time.
|
|
12
|
+
|
|
13
|
+
**Example**
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { LibSQLStore } from '@mastra/libsql';
|
|
17
|
+
|
|
18
|
+
const storage = new LibSQLStore({ url: process.env.DATABASE_URL });
|
|
19
|
+
|
|
20
|
+
// Persist an OAuth connection that an agent can pin later
|
|
21
|
+
await storage.toolProviders.upsertConnection({
|
|
22
|
+
authorId: 'user-123',
|
|
23
|
+
providerId: 'composio',
|
|
24
|
+
connectionId: 'auth_abc',
|
|
25
|
+
toolkit: 'gmail',
|
|
26
|
+
label: 'Work inbox',
|
|
27
|
+
scope: 'per-author',
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
// List a user's own connections (admin can omit authorId to list across users)
|
|
31
|
+
const { items } = await storage.toolProviders.listConnectionsByAuthor({
|
|
32
|
+
authorId: 'user-123',
|
|
33
|
+
providerId: 'composio',
|
|
34
|
+
});
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Additive — existing stored agents continue to work unchanged. The runtime that consumes this domain ships in a follow-up PR.
|
|
38
|
+
|
|
39
|
+
PR 1 of 3 split from #17224.
|
|
40
|
+
|
|
41
|
+
- Updated dependencies [[`8ace89d`](https://github.com/mastra-ai/mastra/commit/8ace89df77f762e622d3b9f7f65ad7524350d050), [`fa63872`](https://github.com/mastra-ai/mastra/commit/fa6387280954e6b667bec5714b55ba082bc627ff), [`f07b646`](https://github.com/mastra-ai/mastra/commit/f07b64604ab7d25391179790b7fd4823df9e2dff), [`d8838ae`](https://github.com/mastra-ai/mastra/commit/d8838ae80b69780361693d27098f7f6684af12fe), [`40f9297`](https://github.com/mastra-ai/mastra/commit/40f9297003b921c62373d3e8d3a4bda76c9f6de3), [`0f0d1ba`](https://github.com/mastra-ai/mastra/commit/0f0d1ba67bfcb2204e571401662f1eceefc03357), [`8c31bcd`](https://github.com/mastra-ai/mastra/commit/8c31bcdb00e597880d5939b1b7d7566fbe5dacae), [`95b14cd`](https://github.com/mastra-ai/mastra/commit/95b14cdd820e86d97ac05fe568424c513a252e31), [`aa36be2`](https://github.com/mastra-ai/mastra/commit/aa36be23aa513b7dc53cb8ca16b7fab8f20e43ad), [`212c635`](https://github.com/mastra-ai/mastra/commit/212c635203e61d036ab41db8ff86c3893dc795b3), [`d8838ae`](https://github.com/mastra-ai/mastra/commit/d8838ae80b69780361693d27098f7f6684af12fe), [`9aa5a73`](https://github.com/mastra-ai/mastra/commit/9aa5a73e7e110f6e9365eec69364a33d5f03bb56), [`f73c789`](https://github.com/mastra-ai/mastra/commit/f73c789e8ef21561580395d2c410119cab5848c8), [`8bd16da`](https://github.com/mastra-ai/mastra/commit/8bd16da73a4cb874d739373643dbd6a6e7f88684), [`c8630f8`](https://github.com/mastra-ai/mastra/commit/c8630f80d4f40cb5d22e60ab162b618b1907167a), [`47f71dc`](https://github.com/mastra-ai/mastra/commit/47f71dc6fbcbd12d71e21a979e676e20a02bd77d), [`50ceae2`](https://github.com/mastra-ai/mastra/commit/50ceae270878e2f8fb2b2c6c2faab09df0007c8a), [`8cdde58`](https://github.com/mastra-ai/mastra/commit/8cdde5875bbba6702d9df226f2b20232b8d75d6c), [`847ff1e`](https://github.com/mastra-ai/mastra/commit/847ff1e0d94368d94b2e173e4e0908e115568ef3), [`259d409`](https://github.com/mastra-ai/mastra/commit/259d409a514174299dbde1ff5e1121209b3ba850), [`9e16c68`](https://github.com/mastra-ai/mastra/commit/9e16c6818b6485ccb43df28aba6f3a2219d28662), [`cefca33`](https://github.com/mastra-ai/mastra/commit/cefca33ae666e69810c935fedf95a929c173d1d7), [`d00e8c5`](https://github.com/mastra-ai/mastra/commit/d00e8c50daebe5bce5bf2f48bde39c86fc3d2fe4), [`36fa7e2`](https://github.com/mastra-ai/mastra/commit/36fa7e24d14e58a1eb46147097b32f583e5b8775), [`87e9774`](https://github.com/mastra-ai/mastra/commit/87e97741c1e493cd6d62f478eb810b49bda4d57c), [`65a72e7`](https://github.com/mastra-ai/mastra/commit/65a72e70c25eedea8ff985a6624b96be2850236b), [`0f77241`](https://github.com/mastra-ai/mastra/commit/0f7724108806703799a8ba80ad0f09414afd5066), [`92ff509`](https://github.com/mastra-ai/mastra/commit/92ff5098ef8a990438ca038077021a5f7541ec1d), [`3fce5e7`](https://github.com/mastra-ai/mastra/commit/3fce5e70d011d289043e75003ef3336ed4aa43c3), [`a763592`](https://github.com/mastra-ai/mastra/commit/a763592c3db46963ef1011cfe16fe372816e775e), [`80c7737`](https://github.com/mastra-ai/mastra/commit/80c7737e32d7917b5f356957d67c169d01744fd3), [`3f1cf47`](https://github.com/mastra-ai/mastra/commit/3f1cf476f74c1e4cc2df908837e05853a5347e31)]:
|
|
42
|
+
- @mastra/core@1.38.0-alpha.3
|
|
43
|
+
|
|
44
|
+
## 1.4.0
|
|
45
|
+
|
|
46
|
+
### Minor Changes
|
|
47
|
+
|
|
48
|
+
- Added favorites support to storage adapters so callers can favorite/unfavorite stored agents and skills, query favorite state alongside list results, and filter listings by visibility. ([#16580](https://github.com/mastra-ai/mastra/pull/16580))
|
|
49
|
+
|
|
50
|
+
**Example**
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
const storage = new LibSQLStore({
|
|
54
|
+
/* config */
|
|
55
|
+
});
|
|
56
|
+
const favorites = await storage.getStore('favorites');
|
|
57
|
+
|
|
58
|
+
await favorites?.favorite({
|
|
59
|
+
userId: 'user-1',
|
|
60
|
+
entityType: 'agent',
|
|
61
|
+
entityId: 'agent-42',
|
|
62
|
+
});
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Patch Changes
|
|
66
|
+
|
|
67
|
+
- Bumped `@mastra/core` peer dependency floor to `>=1.34.0-0` so the new `@mastra/core/storage/domains/favorites` subpath is available. Older `@mastra/core` versions don't ship the `FavoritesStorage` base class these adapters now extend. ([#16580](https://github.com/mastra-ai/mastra/pull/16580))
|
|
68
|
+
|
|
69
|
+
- Updated dependencies [[`b661349`](https://github.com/mastra-ai/mastra/commit/b661349281514691db78941a9044e6e4f1cde7a7), [`816b974`](https://github.com/mastra-ai/mastra/commit/816b974b424e4a1bfae3af30cc41263b6f1c0344), [`271c044`](https://github.com/mastra-ai/mastra/commit/271c044f6b79ff38cfa3409f4385fbd26a0f3185), [`bad08e9`](https://github.com/mastra-ai/mastra/commit/bad08e99c5291884c3ac76743c78c74f53a302c2), [`816b974`](https://github.com/mastra-ai/mastra/commit/816b974b424e4a1bfae3af30cc41263b6f1c0344), [`b32ba5f`](https://github.com/mastra-ai/mastra/commit/b32ba5fde524b46a4ff1bdf38e30d62a2bb29b04), [`75c7c38`](https://github.com/mastra-ai/mastra/commit/75c7c38a4e9af9821931539dd339f57fcc6414e3)]:
|
|
70
|
+
- @mastra/core@1.35.0
|
|
71
|
+
|
|
3
72
|
## 1.4.0-alpha.0
|
|
4
73
|
|
|
5
74
|
### Minor Changes
|
|
@@ -2405,5 +2405,5 @@ var CloudflareKVStorage = class extends MastraCompositeStore {
|
|
|
2405
2405
|
var CloudflareStore = CloudflareKVStorage;
|
|
2406
2406
|
|
|
2407
2407
|
export { BackgroundTasksStorageCloudflare, CloudflareKVStorage, CloudflareStore, MemoryStorageCloudflare, ScoresStorageCloudflare, WorkflowsStorageCloudflare };
|
|
2408
|
-
//# sourceMappingURL=chunk-
|
|
2409
|
-
//# sourceMappingURL=chunk-
|
|
2408
|
+
//# sourceMappingURL=chunk-24DONDTR.js.map
|
|
2409
|
+
//# sourceMappingURL=chunk-24DONDTR.js.map
|