@agentified/mastra 0.0.5-beta.3 → 0.0.5-beta.6

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @agentified/mastra
2
2
 
3
- Mastra adapter layer for [Agentified](../../../README.md) — wraps SDK classes with Mastra-typed shells via composition, plus AG-UI streaming. See the [Mastra guide](../../../docs/guides/mastra.md) for a full-stack walkthrough.
3
+ Mastra adapter layer for [Agentified](../../../README.md) — wraps SDK classes with Mastra-typed shells via composition, plus AG-UI streaming. See the [Mastra guide](../../../docs/typescript/integrations/mastra.md) for a full-stack walkthrough.
4
4
 
5
5
  ## Install
6
6
 
@@ -16,6 +16,7 @@ npm install @agentified/mastra agentified
16
16
  import { Agent } from "@mastra/core/agent";
17
17
  import { Agentified } from "agentified";
18
18
  import { mastra } from "@agentified/mastra";
19
+ import { openai } from "@ai-sdk/openai";
19
20
 
20
21
  const ag = new Agentified().adaptTo(mastra());
21
22
  await ag.connect("http://localhost:9119");
@@ -28,13 +29,15 @@ const dataset = await ag.dataset("my-agent").register({
28
29
 
29
30
  const agent = new Agent({
30
31
  name: "my-agent",
31
- model: google("gemini-3-flash-preview"),
32
+ model: openai("gpt-4o-mini"),
32
33
  instructions: "You are a helpful assistant.",
33
34
  tools: { discoverTool: dataset.discoverTool }, // Mastra createTool
34
35
  prepareStep: dataset.prepareStep,
35
36
  });
36
37
  ```
37
38
 
39
+ > **Note:** `@ai-sdk/openai` must be `^3.0.0` (AI SDK v4). Mastra 1.11+ rejects v1.x.
40
+
38
41
  ## Adapter Pattern
39
42
 
40
43
  The `mastra()` factory returns an adapter for `Agentified.adaptTo()`. This wraps SDK classes in Mastra-typed shells via composition (not inheritance):
@@ -77,10 +80,6 @@ Wraps SDK `Instance`. `discoverTool` is a Mastra `createTool` result instead of
77
80
 
78
81
  Wraps SDK `Session`. `discoverTool` is a Mastra `createTool` result. Delegates `context`, `conversation`, `getMessages`, `updateConversation` to the SDK session.
79
82
 
80
- ### `AgentifiedMastra` (legacy)
81
-
82
- The `AgentifiedMastra` class provides a standalone Mastra agent wrapper with prefetch, hydration, and AG-UI streaming. See the source for full API.
83
-
84
83
  ### `streamSSE(observable, res)`
85
84
 
86
85
  Pipes an AG-UI Observable into an HTTP SSE response.
@@ -101,11 +100,12 @@ import { jsonSchemaToZod } from "@agentified/mastra";
101
100
 
102
101
  - [Root README](../../../README.md)
103
102
  - [Documentation](../../../docs/)
104
- - [Mastra guide](../../../docs/guides/mastra.md) — Full-stack walkthrough
105
- - [Architecture](../../../docs/architecture.md)
103
+ - [Mastra guide](../../../docs/typescript/integrations/mastra.md) — Full-stack walkthrough
104
+ - [Architecture](../../../docs/server/architecture.md)
106
105
  - [TypeScript SDK](../sdk/README.md)
107
106
  - [Frontend Client](../fe-client/README.md)
108
107
  - [React Bindings](../react/README.md)
108
+ - [mastra-smoke example](../../../examples/mastra-smoke/) — runnable smoke test
109
109
  - [QuickHR Example](../../../examples/quickhr/) — full Mastra + React app
110
110
 
111
111
  ## License
package/dist/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- export { AgentifiedMastra } from "./adapter.js";
2
1
  export { mastra, MastraAgentified, MastraInstance, MastraSession, MastraNamespace, MastraDatasetRef } from "./agentified.js";
3
2
  export { streamSSE } from "./stream-sse.js";
4
3
  export { jsonSchemaToZod } from "./schema.js";
5
- export type { AgentifiedMastraConfig, RunOptions, GenerateOptions, GenerateResult } from "./adapter.js";
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC7H,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,YAAY,EAAE,sBAAsB,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC7H,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- export { AgentifiedMastra } from "./adapter.js";
2
1
  export { mastra, MastraAgentified, MastraInstance, MastraSession, MastraNamespace, MastraDatasetRef } from "./agentified.js";
3
2
  export { streamSSE } from "./stream-sse.js";
4
3
  export { jsonSchemaToZod } from "./schema.js";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC7H,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC7H,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentified/mastra",
3
- "version": "0.0.5-beta.3",
3
+ "version": "0.0.5-beta.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -27,7 +27,7 @@
27
27
  "@ag-ui/mastra": ">=1.0.0",
28
28
  "@mastra/core": ">=1.0.0",
29
29
  "zod": ">=3.0.0",
30
- "agentified": "0.0.5-beta.3"
30
+ "agentified": "0.0.5-beta.6"
31
31
  },
32
32
  "dependencies": {
33
33
  "rxjs": "^7.8.0"
@@ -40,7 +40,7 @@
40
40
  "typescript": "^5.9.0",
41
41
  "vitest": "^2.1.0",
42
42
  "zod": "^3.25.0",
43
- "agentified": "0.0.5-beta.3"
43
+ "agentified": "0.0.5-beta.6"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "tsc -p tsconfig.build.json",