@mastra/code-sdk 1.22.0-alpha.2 → 1.22.0-alpha.5
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.
|
@@ -125,16 +125,23 @@ var FastembedWorker = class {
|
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
127
|
this.#active = job;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
128
|
+
try {
|
|
129
|
+
const child = this.#child ?? this.#spawn();
|
|
130
|
+
child.ref();
|
|
131
|
+
child.channel?.ref?.();
|
|
132
|
+
child.send({
|
|
133
|
+
id: job.id,
|
|
134
|
+
entry: this.#entry,
|
|
135
|
+
values: job.options.values
|
|
136
|
+
}, (error) => {
|
|
137
|
+
if (error) this.#onChildGone(child, error);
|
|
138
|
+
});
|
|
139
|
+
} catch (error) {
|
|
140
|
+
this.#stopChild();
|
|
141
|
+
this.#active = void 0;
|
|
142
|
+
this.#settle(job, () => job.reject(error));
|
|
143
|
+
this.#pump();
|
|
144
|
+
}
|
|
138
145
|
}
|
|
139
146
|
#spawn() {
|
|
140
147
|
const child = spawn(process.execPath, ["-e", WORKER_SOURCE], {
|
|
@@ -201,7 +208,7 @@ var FastembedWorker = class {
|
|
|
201
208
|
const child = this.#child;
|
|
202
209
|
if (!child) return;
|
|
203
210
|
child.unref();
|
|
204
|
-
child.channel?.unref();
|
|
211
|
+
child.channel?.unref?.();
|
|
205
212
|
this.#clearIdleTimer();
|
|
206
213
|
this.#idleTimer = setTimeout(() => {
|
|
207
214
|
this.#idleTimer = void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/code-sdk",
|
|
3
|
-
"version": "1.22.0-alpha.
|
|
3
|
+
"version": "1.22.0-alpha.5",
|
|
4
4
|
"description": "Mastra Code SDK: the agent core behind Mastra Code (everything except the TUI) — build your own UIs and surfaces on top of it",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -65,16 +65,16 @@
|
|
|
65
65
|
"yaml": "^2.9.1",
|
|
66
66
|
"zod": "^4.6.7",
|
|
67
67
|
"@mastra/agent-browser": "0.7.0",
|
|
68
|
-
"@mastra/client-js": "1.
|
|
69
|
-
"@mastra/duckdb": "1.19.
|
|
68
|
+
"@mastra/client-js": "1.63.0-alpha.5",
|
|
69
|
+
"@mastra/duckdb": "1.19.3-alpha.0",
|
|
70
70
|
"@mastra/fastembed": "1.4.0",
|
|
71
71
|
"@mastra/github-signals": "0.5.4",
|
|
72
|
-
"@mastra/libsql": "1.33.0-alpha.
|
|
73
|
-
"@mastra/mcp": "2.11.0",
|
|
74
|
-
"@mastra/memory": "1.41.
|
|
75
|
-
"@mastra/observability": "1.24.4-alpha.
|
|
72
|
+
"@mastra/libsql": "1.33.0-alpha.2",
|
|
73
|
+
"@mastra/mcp": "2.11.1-alpha.0",
|
|
74
|
+
"@mastra/memory": "1.41.4-alpha.0",
|
|
75
|
+
"@mastra/observability": "1.24.4-alpha.1",
|
|
76
76
|
"@mastra/parallel": "0.1.6",
|
|
77
|
-
"@mastra/pg": "1.39.0-alpha.
|
|
77
|
+
"@mastra/pg": "1.39.0-alpha.1",
|
|
78
78
|
"@mastra/schema-compat": "1.4.1",
|
|
79
79
|
"@mastra/stagehand": "0.4.1",
|
|
80
80
|
"@mastra/tavily": "1.1.4",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"tsx": "^4.23.15",
|
|
93
93
|
"typescript": "^6.0.3",
|
|
94
94
|
"vitest": "5.1.0",
|
|
95
|
-
"@mastra/core": "1.87.0-alpha.2",
|
|
96
95
|
"@internal/types-builder": "0.0.127",
|
|
96
|
+
"@mastra/core": "1.87.0-alpha.5",
|
|
97
97
|
"@internal/workspace-test-utils": "0.0.96",
|
|
98
98
|
"@internal/lint": "0.0.152"
|
|
99
99
|
},
|