@mastra/factory 0.2.0-alpha.0 → 0.2.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 +20 -0
- package/dist/factory.js +3 -3
- package/dist/factory.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/integrations/github/integration.js +1 -1
- package/dist/integrations/github/integration.js.map +1 -1
- package/dist/integrations/github/routes.js +1 -1
- package/dist/integrations/github/routes.js.map +1 -1
- package/dist/integrations/platform/api-client.js +1 -1
- package/dist/integrations/platform/api-client.js.map +1 -1
- package/dist/integrations/platform/github/event-worker.js.map +1 -1
- package/dist/integrations/platform/github/integration.js +2 -2
- package/dist/integrations/platform/github/integration.js.map +1 -1
- package/dist/integrations/platform/linear/integration.js +1 -1
- package/dist/integrations/platform/linear/integration.js.map +1 -1
- package/dist/server-error.js +1 -1
- package/dist/server-error.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -26444,7 +26444,7 @@ function buildGithubRoutes(options) {
|
|
|
26444
26444
|
list = await github.listInstallationRepos(Number(inst.externalId));
|
|
26445
26445
|
} catch (err) {
|
|
26446
26446
|
if (err.status !== 404) throw err;
|
|
26447
|
-
console.error(`[
|
|
26447
|
+
console.error(`[Mastra Factory] pruning stale GitHub installation ${inst.externalId} (404 from GitHub)`);
|
|
26448
26448
|
await github.sourceControlStorage.installations.delete({ orgId: resolved.tenant.orgId, id: inst.id });
|
|
26449
26449
|
continue;
|
|
26450
26450
|
}
|
|
@@ -27387,7 +27387,7 @@ function logPlatformError(message, fields) {
|
|
|
27387
27387
|
}
|
|
27388
27388
|
function writePlatformLog(level, message, fields) {
|
|
27389
27389
|
const metadata = fields ? ` ${JSON.stringify(stripUndefined(fields))}` : "";
|
|
27390
|
-
process.stderr.write(`[
|
|
27390
|
+
process.stderr.write(`[Mastra Factory] ${level.toUpperCase()} ${message}${metadata}
|
|
27391
27391
|
`);
|
|
27392
27392
|
}
|
|
27393
27393
|
function stripUndefined(fields) {
|
|
@@ -36627,7 +36627,7 @@ function handleServerError(err, c) {
|
|
|
36627
36627
|
return c.json({ error: err.message }, err.status);
|
|
36628
36628
|
}
|
|
36629
36629
|
const detail = err instanceof Error ? err.stack ?? err.message : String(err);
|
|
36630
|
-
console.error(`[
|
|
36630
|
+
console.error(`[Mastra Factory] ${c.req.method} ${c.req.path} failed: ${detail}`);
|
|
36631
36631
|
return c.json(
|
|
36632
36632
|
{
|
|
36633
36633
|
error: "internal_error",
|