@mastra/server 0.13.0-alpha.1 → 0.13.0-alpha.3
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/dist/server/a2a/tasks.d.ts +1 -1
- package/dist/server/handlers/a2a.d.ts +2 -2
- package/dist/server/handlers/agents.d.ts +1 -1
- package/dist/server/handlers/legacyWorkflows.d.ts +1 -1
- package/dist/server/handlers/memory.d.ts +2 -2
- package/dist/server/handlers/network.d.ts +1 -1
- package/dist/server/handlers/scores.d.ts +1 -1
- package/dist/server/handlers/telemetry.d.ts +1 -1
- package/dist/server/handlers/tools.d.ts +1 -1
- package/dist/server/handlers/vNextNetwork.d.ts +1 -1
- package/dist/server/handlers/vNextNetwork.d.ts.map +1 -1
- package/dist/server/handlers/vector.d.ts +1 -1
- package/dist/server/handlers/voice.d.ts +1 -1
- package/dist/server/handlers/workflows.d.ts +1 -1
- package/dist/server/handlers.d.ts +12 -12
- package/package.json +7 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Message, TaskContext, TaskAndHistory, Task, TaskStatus, Artifact } from '@mastra/core/a2a';
|
|
2
2
|
import type { IMastraLogger } from '@mastra/core/logger';
|
|
3
|
-
import type { InMemoryTaskStore } from './store';
|
|
3
|
+
import type { InMemoryTaskStore } from './store.js';
|
|
4
4
|
export declare function applyUpdateToTaskAndHistory(current: TaskAndHistory, update: Omit<TaskStatus, 'timestamp'> | Artifact): TaskAndHistory;
|
|
5
5
|
export declare function loadOrCreateTaskAndHistory({ agentId, taskId, taskStore, message, sessionId, metadata, logger, }: {
|
|
6
6
|
agentId: string;
|
|
@@ -2,8 +2,8 @@ import type { TaskSendParams, TaskQueryParams, TaskIdParams, AgentCard } from '@
|
|
|
2
2
|
import type { Agent } from '@mastra/core/agent';
|
|
3
3
|
import type { IMastraLogger } from '@mastra/core/logger';
|
|
4
4
|
import type { RuntimeContext } from '@mastra/core/runtime-context';
|
|
5
|
-
import { InMemoryTaskStore } from '../a2a/store';
|
|
6
|
-
import type { Context } from '../types';
|
|
5
|
+
import { InMemoryTaskStore } from '../a2a/store.js';
|
|
6
|
+
import type { Context } from '../types.js';
|
|
7
7
|
export declare function getAgentCardByIdHandler({ mastra, agentId, executionUrl, provider, version, runtimeContext, }: Context & {
|
|
8
8
|
runtimeContext: RuntimeContext;
|
|
9
9
|
agentId: keyof ReturnType<typeof mastra.getAgents>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Agent } from '@mastra/core/agent';
|
|
2
2
|
import { RuntimeContext } from '@mastra/core/runtime-context';
|
|
3
|
-
import type { Context } from '../types';
|
|
3
|
+
import type { Context } from '../types.js';
|
|
4
4
|
type GetBody<T extends keyof Agent & {
|
|
5
5
|
[K in keyof Agent]: Agent[K] extends (...args: any) => any ? K : never;
|
|
6
6
|
}[keyof Agent]> = {
|
|
@@ -2,7 +2,7 @@ import { ReadableStream } from 'node:stream/web';
|
|
|
2
2
|
import type { RuntimeContext } from '@mastra/core/runtime-context';
|
|
3
3
|
import type { LegacyWorkflowRuns } from '@mastra/core/storage';
|
|
4
4
|
import type { LegacyWorkflow } from '@mastra/core/workflows/legacy';
|
|
5
|
-
import type { Context } from '../types';
|
|
5
|
+
import type { Context } from '../types.js';
|
|
6
6
|
interface WorkflowContext extends Context {
|
|
7
7
|
workflowId?: string;
|
|
8
8
|
runId?: string;
|
|
@@ -2,8 +2,8 @@ import type { StorageGetMessagesArg } from '@mastra/core';
|
|
|
2
2
|
import type { RuntimeContext } from '@mastra/core/di';
|
|
3
3
|
import type { MastraMemory } from '@mastra/core/memory';
|
|
4
4
|
import type { ThreadSortOptions } from '@mastra/core/storage';
|
|
5
|
-
import type { Context } from '../types';
|
|
6
|
-
import { handleError } from './error';
|
|
5
|
+
import type { Context } from '../types.js';
|
|
6
|
+
import { handleError } from './error.js';
|
|
7
7
|
interface MemoryContext extends Context {
|
|
8
8
|
agentId?: string;
|
|
9
9
|
resourceId?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GenerateReturn } from '@mastra/core/llm';
|
|
2
2
|
import type { AgentNetwork } from '@mastra/core/network';
|
|
3
3
|
import type { RuntimeContext } from '@mastra/core/runtime-context';
|
|
4
|
-
import type { Context } from '../types';
|
|
4
|
+
import type { Context } from '../types.js';
|
|
5
5
|
interface NetworkContext extends Context {
|
|
6
6
|
networkId?: string;
|
|
7
7
|
runtimeContext: RuntimeContext;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RuntimeContext } from '@mastra/core/runtime-context';
|
|
2
2
|
import type { MastraScorerEntry, ScoreRowData } from '@mastra/core/scores';
|
|
3
3
|
import type { StoragePagination } from '@mastra/core/storage';
|
|
4
|
-
import type { Context } from '../types';
|
|
4
|
+
import type { Context } from '../types.js';
|
|
5
5
|
export declare function getScorersHandler({ mastra, runtimeContext }: Context & {
|
|
6
6
|
runtimeContext: RuntimeContext;
|
|
7
7
|
}): Promise<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RuntimeContext } from '@mastra/core/di';
|
|
2
2
|
import type { ToolAction, VercelTool } from '@mastra/core/tools';
|
|
3
|
-
import type { Context } from '../types';
|
|
3
|
+
import type { Context } from '../types.js';
|
|
4
4
|
interface ToolsContext extends Context {
|
|
5
5
|
tools?: Record<string, ToolAction | VercelTool>;
|
|
6
6
|
toolId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vNextNetwork.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/vNextNetwork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAInE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIxC,UAAU,cAAe,SAAQ,OAAO;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,cAAc,CAAC;CAChC;AAED,wBAAsB,uBAAuB,CAAC,EAC5C,MAAM,EACN,cAAc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ED,wBAAsB,6BAA6B,CAAC,EAClD,MAAM,EACN,SAAS,EACT,IAAI,EACJ,cAAc,GACf,EAAE,cAAc,GAAG;IAClB,cAAc,EAAE,cAAc,CAAC;IAC/B,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3F;;;;;;;;;;;;;;;;;;kBAvHiD,CAAC;wBAAmD,CAAC;;;;;;;;kBAa/F,CAAP;wBACO,CAAA;;GA+HP"}
|
|
@@ -2,7 +2,7 @@ import { ReadableStream } from 'node:stream/web';
|
|
|
2
2
|
import type { RuntimeContext } from '@mastra/core/di';
|
|
3
3
|
import type { WorkflowRuns } from '@mastra/core/storage';
|
|
4
4
|
import type { Workflow, SerializedStepFlowEntry, WatchEvent } from '@mastra/core/workflows';
|
|
5
|
-
import type { Context } from '../types';
|
|
5
|
+
import type { Context } from '../types.js';
|
|
6
6
|
interface WorkflowContext extends Context {
|
|
7
7
|
workflowId?: string;
|
|
8
8
|
runId?: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * as agents from './handlers/agents';
|
|
2
|
-
export * as a2a from './handlers/a2a';
|
|
3
|
-
export * as legacyWorkflows from './handlers/legacyWorkflows';
|
|
4
|
-
export * as logs from './handlers/logs';
|
|
5
|
-
export * as memory from './handlers/memory';
|
|
6
|
-
export * as network from './handlers/network';
|
|
7
|
-
export * as scores from './handlers/scores';
|
|
8
|
-
export * as telemetry from './handlers/telemetry';
|
|
9
|
-
export * as tools from './handlers/tools';
|
|
10
|
-
export * as vector from './handlers/vector';
|
|
11
|
-
export * as voice from './handlers/voice';
|
|
12
|
-
export * as workflows from './handlers/workflows';
|
|
1
|
+
export * as agents from './handlers/agents.js';
|
|
2
|
+
export * as a2a from './handlers/a2a.js';
|
|
3
|
+
export * as legacyWorkflows from './handlers/legacyWorkflows.js';
|
|
4
|
+
export * as logs from './handlers/logs.js';
|
|
5
|
+
export * as memory from './handlers/memory.js';
|
|
6
|
+
export * as network from './handlers/network.js';
|
|
7
|
+
export * as scores from './handlers/scores.js';
|
|
8
|
+
export * as telemetry from './handlers/telemetry.js';
|
|
9
|
+
export * as tools from './handlers/tools.js';
|
|
10
|
+
export * as vector from './handlers/vector.js';
|
|
11
|
+
export * as voice from './handlers/voice.js';
|
|
12
|
+
export * as workflows from './handlers/workflows.js';
|
|
13
13
|
//# sourceMappingURL=handlers.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/server",
|
|
3
|
-
"version": "0.13.0-alpha.
|
|
3
|
+
"version": "0.13.0-alpha.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"default": "./dist/index.js"
|
|
16
16
|
},
|
|
17
17
|
"require": {
|
|
18
|
-
"types": "./dist/index.d.
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
19
|
"default": "./dist/index.cjs"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"default": "./dist/server/handlers.js"
|
|
26
26
|
},
|
|
27
27
|
"require": {
|
|
28
|
-
"types": "./dist/server/handlers.d.
|
|
28
|
+
"types": "./dist/server/handlers.d.ts",
|
|
29
29
|
"default": "./dist/server/handlers.cjs"
|
|
30
30
|
}
|
|
31
31
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"default": "./dist/server/handlers/*.js"
|
|
36
36
|
},
|
|
37
37
|
"require": {
|
|
38
|
-
"types": "./dist/server/handlers/*.d.
|
|
38
|
+
"types": "./dist/server/handlers/*.d.ts",
|
|
39
39
|
"default": "./dist/server/handlers/*.cjs"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"author": "",
|
|
46
46
|
"license": "Apache-2.0",
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@mastra/core": ">=0.
|
|
48
|
+
"@mastra/core": ">=0.13.0-0 <0.14.0-0",
|
|
49
49
|
"zod": "^3.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
@@ -60,7 +60,8 @@
|
|
|
60
60
|
"zod": "^3.25.67",
|
|
61
61
|
"zod-to-json-schema": "^3.24.5",
|
|
62
62
|
"@internal/lint": "0.0.26",
|
|
63
|
-
"@
|
|
63
|
+
"@internal/types-builder": "0.0.1",
|
|
64
|
+
"@mastra/core": "0.13.0-alpha.3",
|
|
64
65
|
"@internal/storage-test-utils": "0.0.22"
|
|
65
66
|
},
|
|
66
67
|
"scripts": {
|