@mastra/code-sdk 1.15.1-alpha.4 → 1.15.1-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.
- package/dist/acp/agent.js +1 -2
- package/dist/acp/errors.js +1 -2
- package/dist/acp/event-mapper.js +1 -2
- package/dist/acp/index.js +1 -2
- package/dist/acp/runtime.js +1 -2
- package/dist/acp/server.js +1 -2
- package/dist/acp/skills.js +1 -2
- package/dist/agent-connections/messaging-processor.js +1 -2
- package/dist/agent-connections/ownership.js +1 -2
- package/dist/agent-connections/registry.js +1 -2
- package/dist/agent-connections/session-advertisement.js +1 -2
- package/dist/agent-connections/signal-provider.js +1 -2
- package/dist/agent-connections/state-processor.js +1 -2
- package/dist/agent-connections/thread-state.js +1 -2
- package/dist/agent-connections/tools.js +1 -2
- package/dist/agent-connections/types.js +1 -2
- package/dist/agent-connections/untrusted-text.js +1 -2
- package/dist/agents/background-completion-events.js +1 -2
- package/dist/agents/background-completion.js +1 -2
- package/dist/agents/context-audit.js +1 -2
- package/dist/agents/credential-resolver.js +1 -2
- package/dist/agents/custom-provider-source.js +1 -2
- package/dist/agents/instructions.js +1 -2
- package/dist/agents/mastracode-gateway.js +1 -2
- package/dist/agents/memory.js +1 -2
- package/dist/agents/model.js +1 -2
- package/dist/agents/modes/build.js +1 -2
- package/dist/agents/modes/explore.js +1 -2
- package/dist/agents/modes/plan.js +1 -2
- package/dist/agents/prompts/agent-instructions.js +1 -2
- package/dist/agents/prompts/build.js +1 -2
- package/dist/agents/prompts/fast.js +1 -2
- package/dist/agents/prompts/index.js +1 -2
- package/dist/agents/prompts/model.js +1 -2
- package/dist/agents/prompts/plan.js +1 -2
- package/dist/agents/prompts/tool-guidance.js +1 -2
- package/dist/agents/sandbox-filesystem.d.ts.map +1 -1
- package/dist/agents/sandbox-filesystem.js +9 -7
- package/dist/agents/sandbox-filesystem.js.map +1 -1
- package/dist/agents/subagents/execute.js +1 -2
- package/dist/agents/subagents/explore.js +1 -2
- package/dist/agents/subagents/plan.js +1 -2
- package/dist/agents/thread-caveman-state.js +1 -2
- package/dist/agents/tool-availability.js +1 -2
- package/dist/agents/tools.js +1 -2
- package/dist/agents/workflow-builder-agent.js +1 -2
- package/dist/agents/workspace.js +1 -2
- package/dist/analytics.js +1 -2
- package/dist/auth/account-rotation-processor.js +1 -2
- package/dist/auth/account-routing-context.js +1 -2
- package/dist/auth/authorization-input.js +1 -2
- package/dist/auth/device-code.js +1 -2
- package/dist/auth/pkce.js +1 -2
- package/dist/auth/provider-auth-error.d.ts +2 -0
- package/dist/auth/provider-auth-error.d.ts.map +1 -1
- package/dist/auth/provider-auth-error.js +8 -3
- package/dist/auth/provider-auth-error.js.map +1 -1
- package/dist/auth/providers/anthropic.js +1 -2
- package/dist/auth/providers/github-copilot.js +1 -2
- package/dist/auth/providers/kimi-coding.js +1 -2
- package/dist/auth/providers/openai-codex.js +1 -2
- package/dist/auth/providers/xai.js +1 -2
- package/dist/auth/storage.js +1 -2
- package/dist/clipboard/index.js +1 -2
- package/dist/constants.js +1 -2
- package/dist/error-classification.js +1 -2
- package/dist/evals/context-builder.js +1 -2
- package/dist/evals/scorers/classify-command.d.ts +1 -2
- package/dist/evals/scorers/classify-command.d.ts.map +1 -1
- package/dist/evals/scorers/classify-command.js +7 -17
- package/dist/evals/scorers/classify-command.js.map +1 -1
- package/dist/evals/scorers/efficiency.js +1 -2
- package/dist/evals/scorers/extract-tools.js +1 -2
- package/dist/evals/scorers/outcome.d.ts.map +1 -1
- package/dist/evals/scorers/outcome.js +36 -22
- package/dist/evals/scorers/outcome.js.map +1 -1
- package/dist/experimental-agent.js +1 -2
- package/dist/factory/client.js +1 -2
- package/dist/factory/remote-controller.js +1 -2
- package/dist/factory/remote-session.js +1 -2
- package/dist/goal-manager.js +1 -2
- package/dist/goal-signal.js +1 -2
- package/dist/headless/cli.js +1 -2
- package/dist/headless/flags.js +1 -2
- package/dist/headless/format.js +1 -2
- package/dist/headless/policy.js +1 -2
- package/dist/headless/run-mc.js +1 -2
- package/dist/headless/types.js +1 -2
- package/dist/hooks/config.js +1 -2
- package/dist/hooks/executor.js +1 -2
- package/dist/hooks/manager.js +1 -2
- package/dist/hooks/types.js +1 -2
- package/dist/index.js +1 -2
- package/dist/ipc/ipc-reporter.js +1 -2
- package/dist/knowledge-inspector.js +1 -2
- package/dist/knowledge-scope.js +1 -2
- package/dist/lsp/client.d.ts.map +1 -1
- package/dist/lsp/client.js +1 -2
- package/dist/lsp/client.js.map +1 -1
- package/dist/lsp/language.js +1 -2
- package/dist/lsp/manager.js +1 -2
- package/dist/lsp/server.js +1 -2
- package/dist/lsp/workspace.js +1 -2
- package/dist/mcp/config.js +1 -2
- package/dist/mcp/manager.js +1 -2
- package/dist/mcp/state.js +1 -2
- package/dist/onboarding/custom-packs.js +1 -2
- package/dist/onboarding/custom-providers.js +1 -2
- package/dist/onboarding/om-settings.js +1 -2
- package/dist/onboarding/pack-activation.js +1 -2
- package/dist/onboarding/packs.js +1 -2
- package/dist/onboarding/settings.js +1 -2
- package/dist/permissions.js +1 -2
- package/dist/platform/index.js +1 -2
- package/dist/plugin.js +1 -2
- package/dist/plugins/dependencies.js +1 -2
- package/dist/plugins/install.js +1 -2
- package/dist/plugins/loader.js +1 -2
- package/dist/plugins/manager.js +1 -2
- package/dist/plugins/manifest.js +1 -2
- package/dist/plugins/package-link.js +1 -2
- package/dist/plugins/paths.js +1 -2
- package/dist/plugins/registry.js +1 -2
- package/dist/plugins/scaffold.js +1 -2
- package/dist/plugins/signal-lane.js +1 -2
- package/dist/process-memory-diagnostics.js +1 -2
- package/dist/processors/plan-rejection-abort.js +1 -2
- package/dist/providers/amazon-bedrock-gateway.js +1 -2
- package/dist/providers/amazon-bedrock.js +1 -2
- package/dist/providers/anthropic-prompt-cache.js +1 -2
- package/dist/providers/anthropic-thinking.js +1 -2
- package/dist/providers/claude-max.d.ts.map +1 -1
- package/dist/providers/claude-max.js +4 -4
- package/dist/providers/claude-max.js.map +1 -1
- package/dist/providers/github-copilot-gateway.js +1 -2
- package/dist/providers/github-copilot.d.ts.map +1 -1
- package/dist/providers/github-copilot.js +5 -5
- package/dist/providers/github-copilot.js.map +1 -1
- package/dist/providers/google-thinking.js +1 -2
- package/dist/providers/kimi-coding.d.ts.map +1 -1
- package/dist/providers/kimi-coding.js +8 -7
- package/dist/providers/kimi-coding.js.map +1 -1
- package/dist/providers/model-ids.js +1 -2
- package/dist/providers/openai-codex.d.ts.map +1 -1
- package/dist/providers/openai-codex.js +7 -7
- package/dist/providers/openai-codex.js.map +1 -1
- package/dist/providers/provider-thinking.js +1 -2
- package/dist/providers/thinking-request.js +1 -2
- package/dist/providers/xai.d.ts.map +1 -1
- package/dist/providers/xai.js +5 -5
- package/dist/providers/xai.js.map +1 -1
- package/dist/schedules/interval.js +1 -2
- package/dist/schedules/prompt.js +1 -2
- package/dist/schedules/run-script.js +1 -2
- package/dist/schedules/scheduler.js +1 -2
- package/dist/schedules/tools.js +1 -2
- package/dist/schema.js +1 -2
- package/dist/theme-palette.js +1 -2
- package/dist/thinking-catalog.js +1 -2
- package/dist/thinking.js +1 -2
- package/dist/tool-names.js +1 -2
- package/dist/tools/request-sandbox-access.js +1 -2
- package/dist/tools/utils.js +1 -2
- package/dist/tools/web-search.js +1 -2
- package/dist/tools/workflows/create-workflow.js +1 -2
- package/dist/tools/workflows/delete-workflow.js +1 -2
- package/dist/tools/workflows/ephemeral-memory.js +1 -2
- package/dist/tools/workflows/extract-json-schema.js +1 -2
- package/dist/tools/workflows/get-workflow.js +1 -2
- package/dist/tools/workflows/list-available-agents.js +1 -2
- package/dist/tools/workflows/list-available-classifiers.js +1 -2
- package/dist/tools/workflows/list-available-tools.js +1 -2
- package/dist/tools/workflows/list-available-workflows.js +1 -2
- package/dist/tools/workflows/list-workflows.js +1 -2
- package/dist/tools/workflows/run-workflow.js +1 -2
- package/dist/tools/workflows/save-workflow.js +1 -2
- package/dist/tools/workflows/tool-ids.js +1 -2
- package/dist/utils/binaries.js +1 -2
- package/dist/utils/debug-log.js +1 -2
- package/dist/utils/discarding-scores-storage.js +1 -2
- package/dist/utils/errors.js +1 -2
- package/dist/utils/gateway-sync.js +1 -2
- package/dist/utils/local-observability.js +1 -2
- package/dist/utils/maintenance-lock.js +1 -2
- package/dist/utils/notification-dispatch.js +1 -2
- package/dist/utils/open-url.js +1 -2
- package/dist/utils/path-security.js +1 -2
- package/dist/utils/plan-diff.js +1 -2
- package/dist/utils/plans.js +1 -2
- package/dist/utils/project.js +1 -2
- package/dist/utils/prune-cli.js +1 -2
- package/dist/utils/signals-pubsub.js +1 -2
- package/dist/utils/slash-command-loader.js +1 -2
- package/dist/utils/slash-command-processor.js +1 -2
- package/dist/utils/stdin-pipe.js +1 -2
- package/dist/utils/storage-factory.js +1 -2
- package/dist/utils/storage-maintenance.js +1 -2
- package/dist/utils/thread-lock.js +1 -2
- package/dist/utils/token-estimator.js +1 -2
- package/dist/utils/update-check.js +1 -2
- package/dist/utils/wake-session.js +1 -2
- package/dist/voice/stt-registry.js +1 -2
- package/dist/workflows/register-primitives.js +1 -2
- package/dist/workflows/service.js +1 -2
- package/package.json +36 -32
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as path$1 from "path";
|
|
2
2
|
import * as fs$1 from "fs";
|
|
3
3
|
import { execFile } from "child_process";
|
|
4
|
-
|
|
4
|
+
// src/schedules/run-script.ts
|
|
5
5
|
/**
|
|
6
6
|
* Runs a schedule's script file at fire time.
|
|
7
7
|
*
|
|
@@ -77,7 +77,6 @@ const runScript = async (absPath, { cwd, timeoutMs }) => {
|
|
|
77
77
|
});
|
|
78
78
|
});
|
|
79
79
|
};
|
|
80
|
-
//#endregion
|
|
81
80
|
export { isExecutableFile, resolveScriptCommand, runScript };
|
|
82
81
|
|
|
83
82
|
//# sourceMappingURL=run-script.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { nextFireTime, validateInterval } from "./interval.js";
|
|
2
2
|
import { randomUUID } from "crypto";
|
|
3
|
-
|
|
3
|
+
// src/schedules/scheduler.ts
|
|
4
4
|
/**
|
|
5
5
|
* Process-local scheduler behind `/schedules`.
|
|
6
6
|
*
|
|
@@ -163,7 +163,6 @@ function scheduleSignalAttributes(schedule, assembled = {}) {
|
|
|
163
163
|
...assembled.outcome ? { scheduleOutcome: assembled.outcome } : {}
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
|
-
//#endregion
|
|
167
166
|
export { LATE_FIRE_GRACE_MS, SCHEDULE_SIGNAL_SOURCE, ThreadScheduler, describeScheduleSource, scheduleSignalAttributes, shortScheduleId };
|
|
168
167
|
|
|
169
168
|
//# sourceMappingURL=scheduler.js.map
|
package/dist/schedules/tools.js
CHANGED
|
@@ -4,7 +4,7 @@ import { resolveScriptCommand } from "./run-script.js";
|
|
|
4
4
|
import * as path$1 from "path";
|
|
5
5
|
import { createTool } from "@mastra/core/tools";
|
|
6
6
|
import { z } from "zod";
|
|
7
|
-
|
|
7
|
+
// src/schedules/tools.ts
|
|
8
8
|
/**
|
|
9
9
|
* Agent-facing tools for the process-local `/schedules` scheduler.
|
|
10
10
|
*
|
|
@@ -214,7 +214,6 @@ Pass exactly one source: "prompt" (text sent each fire), "promptFile" (a file re
|
|
|
214
214
|
[SCHEDULE_TOOL_IDS.run]: scheduleRunTool
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
//#endregion
|
|
218
217
|
export { SCHEDULE_TOOL_IDS, createScheduleTools };
|
|
219
218
|
|
|
220
219
|
//# sourceMappingURL=tools.js.map
|
package/dist/schema.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DEFAULT_CONFIG_DIR } from "./constants.js";
|
|
2
2
|
import { THINKING_LEVEL_VALUES } from "./thinking.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
|
|
4
|
+
// src/schema.ts
|
|
5
5
|
const stateSchema = z.object({
|
|
6
6
|
currentModelId: z.string().optional(),
|
|
7
7
|
modeId: z.string().optional(),
|
|
@@ -128,7 +128,6 @@ const stateSchema = z.object({
|
|
|
128
128
|
observerModelSelection: state.observerModelSelection ?? state.observerModelId ?? "auto",
|
|
129
129
|
reflectorModelSelection: state.reflectorModelSelection ?? state.reflectorModelId ?? "auto"
|
|
130
130
|
}));
|
|
131
|
-
//#endregion
|
|
132
131
|
export { stateSchema };
|
|
133
132
|
|
|
134
133
|
//# sourceMappingURL=schema.js.map
|
package/dist/theme-palette.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/theme-palette.ts
|
|
2
2
|
/**
|
|
3
3
|
* Mastra brand palette (immutable — stays constant regardless of theme).
|
|
4
4
|
*
|
|
@@ -15,7 +15,6 @@ const mastraBrand = {
|
|
|
15
15
|
red: "#DC5663",
|
|
16
16
|
yellow: "#e7e67b"
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
export { mastraBrand };
|
|
20
19
|
|
|
21
20
|
//# sourceMappingURL=theme-palette.js.map
|
package/dist/thinking-catalog.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { getAvailableThinkingLevelsForModel, runThinkingLevel } from "./thinking.js";
|
|
2
2
|
import { getModelReasoningOptions } from "@mastra/core/llm";
|
|
3
|
-
|
|
3
|
+
// src/thinking-catalog.ts
|
|
4
4
|
function runCatalogThinkingLevel(modelId, level) {
|
|
5
5
|
return runThinkingLevel(modelId, level, getModelReasoningOptions(modelId));
|
|
6
6
|
}
|
|
7
7
|
function getCatalogThinkingLevels(modelId) {
|
|
8
8
|
return getAvailableThinkingLevelsForModel(modelId, getModelReasoningOptions(modelId));
|
|
9
9
|
}
|
|
10
|
-
//#endregion
|
|
11
10
|
export { getCatalogThinkingLevels, runCatalogThinkingLevel };
|
|
12
11
|
|
|
13
12
|
//# sourceMappingURL=thinking-catalog.js.map
|
package/dist/thinking.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ANTHROPIC_THINKING_BUDGET_TOKENS, getAnthropicThinkingCapability, suppo
|
|
|
2
2
|
import { runGeminiThinkingLevel } from "./providers/google-thinking.js";
|
|
3
3
|
import { normalizeAnthropicModelId, stripMastraGatewayPrefix } from "./providers/model-ids.js";
|
|
4
4
|
import { isRoutedWithoutThinking, isThinkingAdapterProvider, thinkingRequestFormatFor } from "./providers/thinking-request.js";
|
|
5
|
-
|
|
5
|
+
// src/thinking.ts
|
|
6
6
|
const THINKING_LEVEL_VALUES = [
|
|
7
7
|
"off",
|
|
8
8
|
"low",
|
|
@@ -131,7 +131,6 @@ function resolveDefaultThinkingLevel(defaults, mode) {
|
|
|
131
131
|
source: "global"
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
//#endregion
|
|
135
134
|
export { THINKING_LEVEL_VALUES, THINK_COMMAND_DESCRIPTOR, getAvailableThinkingLevelsForModel, isThinkingLevelSetting, parseThinkCommand, requestableReasoningOptions, resolveDefaultThinkingLevel, runThinkingLevel, supportsMaxReasoningEffort };
|
|
136
135
|
|
|
137
136
|
//# sourceMappingURL=thinking.js.map
|
package/dist/tool-names.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WORKSPACE_TOOLS } from "@mastra/core/workspace";
|
|
2
|
-
|
|
2
|
+
// src/tool-names.ts
|
|
3
3
|
/**
|
|
4
4
|
* Mastracode tool name constants.
|
|
5
5
|
*
|
|
@@ -50,7 +50,6 @@ const TOOL_NAME_OVERRIDES = {
|
|
|
50
50
|
[WORKSPACE_TOOLS.SANDBOX.KILL_PROCESS]: { name: MC_TOOLS.KILL_PROCESS },
|
|
51
51
|
[WORKSPACE_TOOLS.LSP.LSP_INSPECT]: { name: MC_TOOLS.LSP_INSPECT }
|
|
52
52
|
};
|
|
53
|
-
//#endregion
|
|
54
53
|
export { MC_TOOLS, TOOL_NAME_OVERRIDES };
|
|
55
54
|
|
|
56
55
|
//# sourceMappingURL=tool-names.js.map
|
|
@@ -4,7 +4,7 @@ import * as os$1 from "os";
|
|
|
4
4
|
import { LocalFilesystem } from "@mastra/core/workspace";
|
|
5
5
|
import { createTool } from "@mastra/core/tools";
|
|
6
6
|
import { z } from "zod";
|
|
7
|
-
|
|
7
|
+
// src/tools/request-sandbox-access.ts
|
|
8
8
|
/**
|
|
9
9
|
* request_access tool — requests permission to access a directory outside the project root.
|
|
10
10
|
* The user can approve or deny the request via TUI dialog.
|
|
@@ -76,7 +76,6 @@ const requestSandboxAccessTool = createTool({
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
-
//#endregion
|
|
80
79
|
export { requestSandboxAccessTool };
|
|
81
80
|
|
|
82
81
|
//# sourceMappingURL=request-sandbox-access.js.map
|
package/dist/tools/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../constants.js";
|
|
2
2
|
import { buildSkillPaths } from "../agents/workspace.js";
|
|
3
3
|
import * as path$1 from "path";
|
|
4
|
-
|
|
4
|
+
// src/tools/utils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Check whether `targetPath` falls inside `projectRoot` or any of the
|
|
7
7
|
* additional `allowedPaths`. All arguments are expected to be absolute.
|
|
@@ -28,7 +28,6 @@ function getAllowedPathsFromContext(toolContext) {
|
|
|
28
28
|
const sandboxPaths = state?.sandboxAllowedPaths ?? [];
|
|
29
29
|
return [...skillPaths, ...sandboxPaths];
|
|
30
30
|
}
|
|
31
|
-
//#endregion
|
|
32
31
|
export { getAllowedPathsFromContext, isPathAllowed };
|
|
33
32
|
|
|
34
33
|
//# sourceMappingURL=utils.js.map
|
package/dist/tools/web-search.js
CHANGED
|
@@ -2,7 +2,7 @@ import { loadSettings } from "../onboarding/settings.js";
|
|
|
2
2
|
import { truncateStringForTokenEstimate } from "../utils/token-estimator.js";
|
|
3
3
|
import { createTool, isValidationError } from "@mastra/core/tools";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
|
|
5
|
+
// src/tools/web-search.ts
|
|
6
6
|
const MAX_WEB_SEARCH_TOKENS = 2e3;
|
|
7
7
|
const MAX_WEB_EXTRACT_TOKENS = 2e3;
|
|
8
8
|
const MIN_RELEVANCE_SCORE = .25;
|
|
@@ -155,7 +155,6 @@ async function loadWebTools(createSearch, createExtract) {
|
|
|
155
155
|
web_extract: await createExtract()
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
//#endregion
|
|
159
158
|
export { createConfiguredWebTools, createParallelWebExtractTool, createParallelWebSearchTool, createWebExtractTool, createWebSearchTool, hasParallelKey, hasTavilyKey, resolveWebSearchProvider };
|
|
160
159
|
|
|
161
160
|
//# sourceMappingURL=web-search.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MASTRA_RESOURCE_ID_KEY, MASTRA_THREAD_ID_KEY, RequestContext } from "@mastra/core/request-context";
|
|
2
2
|
import { createTool } from "@mastra/core/tools";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
|
|
4
|
+
// src/tools/workflows/create-workflow.ts
|
|
5
5
|
/**
|
|
6
6
|
* Coerce an unknown thrown value into a readable string. Sub-agent tool errors
|
|
7
7
|
* come through the stream in various shapes (Error, plain object, string) —
|
|
@@ -79,7 +79,6 @@ const createWorkflowTool = createTool({
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
|
-
//#endregion
|
|
83
82
|
export { createWorkflowTool };
|
|
84
83
|
|
|
85
84
|
//# sourceMappingURL=create-workflow.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { deleteWorkflow } from "../../workflows/service.js";
|
|
2
2
|
import { createTool } from "@mastra/core/tools";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
|
|
4
|
+
// src/tools/workflows/delete-workflow.ts
|
|
5
5
|
const deleteWorkflowTool = createTool({
|
|
6
6
|
id: "delete-workflow",
|
|
7
7
|
description: "Remove a saved workflow from storage and unregister the live in-process Workflow instance. Idempotent. Subsequent save-workflow calls with the same id re-register cleanly.",
|
|
@@ -15,7 +15,6 @@ const deleteWorkflowTool = createTool({
|
|
|
15
15
|
return deleteWorkflow(mastra, id);
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
//#endregion
|
|
19
18
|
export { deleteWorkflowTool };
|
|
20
19
|
|
|
21
20
|
//# sourceMappingURL=delete-workflow.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MASTRA_RESOURCE_ID_KEY, MASTRA_THREAD_ID_KEY, RequestContext } from "@mastra/core/request-context";
|
|
2
|
-
|
|
2
|
+
// src/tools/workflows/ephemeral-memory.ts
|
|
3
3
|
/**
|
|
4
4
|
* Sub-invocations launched from a parent chat turn (workflow agent steps,
|
|
5
5
|
* sub-agent tool calls) must run under a fresh isolated Mastra memory scope
|
|
@@ -38,7 +38,6 @@ async function withEphemeralMemory(requestContext, fn, options = {}) {
|
|
|
38
38
|
else childRequestContext.delete(MASTRA_RESOURCE_ID_KEY);
|
|
39
39
|
return fn(childRequestContext);
|
|
40
40
|
}
|
|
41
|
-
//#endregion
|
|
42
41
|
export { withEphemeralMemory };
|
|
43
42
|
|
|
44
43
|
//# sourceMappingURL=ephemeral-memory.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/tools/workflows/extract-json-schema.ts
|
|
2
2
|
/**
|
|
3
3
|
* Extract a JSON Schema from a Mastra tool's schema field. Tools created via
|
|
4
4
|
* `createTool({...})` wrap their Zod schemas with `toStandardSchema`, exposing
|
|
@@ -16,7 +16,6 @@ function extractJsonSchema(maybeSchema, direction) {
|
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { extractJsonSchema };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=extract-json-schema.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getWorkflow } from "../../workflows/service.js";
|
|
2
2
|
import { createTool } from "@mastra/core/tools";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
|
|
4
|
+
// src/tools/workflows/get-workflow.ts
|
|
5
5
|
const getWorkflowTool = createTool({
|
|
6
6
|
id: "get-workflow",
|
|
7
7
|
description: "Return the full stored definition of a workflow (input/output schemas + the step graph).",
|
|
@@ -28,7 +28,6 @@ const getWorkflowTool = createTool({
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
//#endregion
|
|
32
31
|
export { getWorkflowTool };
|
|
33
32
|
|
|
34
33
|
//# sourceMappingURL=get-workflow.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createTool } from "@mastra/core/tools";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
|
|
3
|
+
// src/tools/workflows/list-available-agents.ts
|
|
4
4
|
/**
|
|
5
5
|
* Sub-agent tool: list agents the workflow-builder can reference in agent-step
|
|
6
6
|
* entries of a Dynamic Workflow graph. Read-only.
|
|
@@ -26,7 +26,6 @@ const listAvailableAgentsTool = createTool({
|
|
|
26
26
|
})) };
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
-
//#endregion
|
|
30
29
|
export { listAvailableAgentsTool };
|
|
31
30
|
|
|
32
31
|
//# sourceMappingURL=list-available-agents.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createTool } from "@mastra/core/tools";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
|
|
3
|
+
// src/tools/workflows/list-available-classifiers.ts
|
|
4
4
|
function describeQuestions(questions) {
|
|
5
5
|
if (!questions) return void 0;
|
|
6
6
|
return Object.entries(questions).map(([id, question]) => ({
|
|
@@ -50,7 +50,6 @@ const listAvailableClassifiersTool = createTool({
|
|
|
50
50
|
})) };
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
|
-
//#endregion
|
|
54
53
|
export { listAvailableClassifiersTool };
|
|
55
54
|
|
|
56
55
|
//# sourceMappingURL=list-available-classifiers.js.map
|
|
@@ -2,7 +2,7 @@ import { WORKFLOW_BUILDER_NOISE_TOOL_IDS } from "./tool-ids.js";
|
|
|
2
2
|
import { extractJsonSchema } from "./extract-json-schema.js";
|
|
3
3
|
import { createTool } from "@mastra/core/tools";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
|
|
5
|
+
// src/tools/workflows/list-available-tools.ts
|
|
6
6
|
/**
|
|
7
7
|
* Sub-agent tool: list tools the workflow-builder can reference in tool-step
|
|
8
8
|
* entries of a Dynamic Workflow graph. Returns JSON Schema for inputs/outputs
|
|
@@ -34,7 +34,6 @@ const listAvailableToolsTool = createTool({
|
|
|
34
34
|
}) };
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
//#endregion
|
|
38
37
|
export { listAvailableToolsTool };
|
|
39
38
|
|
|
40
39
|
//# sourceMappingURL=list-available-tools.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { extractJsonSchema } from "./extract-json-schema.js";
|
|
2
2
|
import { createTool } from "@mastra/core/tools";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
|
|
4
|
+
// src/tools/workflows/list-available-workflows.ts
|
|
5
5
|
const listAvailableWorkflowsTool = createTool({
|
|
6
6
|
id: "list-available-workflows",
|
|
7
7
|
description: "Returns the workflows currently registered on the Mastra instance (both code-defined and dynamic). The ids returned here are the only valid values you can put in `{ type: \"workflow\", workflowId }` graph entries. Each row includes `inputSchema` and `outputSchema` as JSON Schema — read them to know what shape the nested workflow expects and produces; never invent field names.",
|
|
@@ -26,7 +26,6 @@ const listAvailableWorkflowsTool = createTool({
|
|
|
26
26
|
}) };
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
-
//#endregion
|
|
30
29
|
export { listAvailableWorkflowsTool };
|
|
31
30
|
|
|
32
31
|
//# sourceMappingURL=list-available-workflows.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { listWorkflows } from "../../workflows/service.js";
|
|
2
2
|
import { createTool } from "@mastra/core/tools";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
|
|
4
|
+
// src/tools/workflows/list-workflows.ts
|
|
5
5
|
const listWorkflowsTool = createTool({
|
|
6
6
|
id: "list-workflows",
|
|
7
7
|
description: "List active Dynamic Workflows persisted to storage. Returns id + description + status for each.",
|
|
@@ -27,7 +27,6 @@ const listWorkflowsTool = createTool({
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
//#endregion
|
|
31
30
|
export { listWorkflowsTool };
|
|
32
31
|
|
|
33
32
|
//# sourceMappingURL=list-workflows.js.map
|
|
@@ -2,7 +2,7 @@ import { runWorkflow } from "../../workflows/service.js";
|
|
|
2
2
|
import { withEphemeralMemory } from "./ephemeral-memory.js";
|
|
3
3
|
import { createTool } from "@mastra/core/tools";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
|
|
5
|
+
// src/tools/workflows/run-workflow.ts
|
|
6
6
|
const runWorkflowTool = createTool({
|
|
7
7
|
id: "run-workflow",
|
|
8
8
|
description: "Run a saved workflow by id with the provided input data. Returns the run result inline. Use when the user asks you to \"run X\", \"execute X\", or asks for the outcome of a saved workflow.",
|
|
@@ -46,7 +46,6 @@ const runWorkflowTool = createTool({
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
|
-
//#endregion
|
|
50
49
|
export { runWorkflowTool };
|
|
51
50
|
|
|
52
51
|
//# sourceMappingURL=run-workflow.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createTool } from "@mastra/core/tools";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION as MAPPING_CONFIG_DESCRIPTION, normalizeWorkflowBuilderDefinition, workflowBuilderDefinitionSchema } from "@mastra/core/workflows/builder";
|
|
4
|
-
|
|
4
|
+
// src/tools/workflows/save-workflow.ts
|
|
5
5
|
const workflowDefinitionInputSchema = z.preprocess(normalizeWorkflowBuilderDefinition, workflowBuilderDefinitionSchema);
|
|
6
6
|
const saveWorkflowTool = createTool({
|
|
7
7
|
id: "save-workflow",
|
|
@@ -22,7 +22,6 @@ const saveWorkflowTool = createTool({
|
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
//#endregion
|
|
26
25
|
export { MAPPING_CONFIG_DESCRIPTION, saveWorkflowTool, workflowDefinitionInputSchema };
|
|
27
26
|
|
|
28
27
|
//# sourceMappingURL=save-workflow.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/tools/workflows/tool-ids.ts
|
|
2
2
|
const WORKFLOW_AUTHORING_TOOL_IDS = {
|
|
3
3
|
listAgents: "list-available-agents",
|
|
4
4
|
listClassifiers: "list-available-classifiers",
|
|
@@ -14,7 +14,6 @@ const WORKFLOW_MANAGEMENT_TOOL_IDS = {
|
|
|
14
14
|
deleteWorkflow: "delete-workflow"
|
|
15
15
|
};
|
|
16
16
|
const WORKFLOW_BUILDER_NOISE_TOOL_IDS = [...Object.values(WORKFLOW_AUTHORING_TOOL_IDS), ...Object.values(WORKFLOW_MANAGEMENT_TOOL_IDS)];
|
|
17
|
-
//#endregion
|
|
18
17
|
export { WORKFLOW_AUTHORING_TOOL_IDS, WORKFLOW_BUILDER_NOISE_TOOL_IDS, WORKFLOW_MANAGEMENT_TOOL_IDS };
|
|
19
18
|
|
|
20
19
|
//# sourceMappingURL=tool-ids.js.map
|
package/dist/utils/binaries.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { execFile, execFileSync } from "child_process";
|
|
2
|
-
|
|
2
|
+
// src/utils/binaries.ts
|
|
3
3
|
const COMMON_BINARIES = [
|
|
4
4
|
"python",
|
|
5
5
|
"python3",
|
|
@@ -72,7 +72,6 @@ async function detectCommonBinariesAsync() {
|
|
|
72
72
|
inFlightPromise = null;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
//#endregion
|
|
76
75
|
export { detectCommonBinaries, detectCommonBinariesAsync };
|
|
77
76
|
|
|
78
77
|
//# sourceMappingURL=binaries.js.map
|
package/dist/utils/debug-log.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getAppDataDir } from "./project.js";
|
|
2
2
|
import * as path$1 from "path";
|
|
3
3
|
import * as fs$1 from "fs";
|
|
4
|
-
|
|
4
|
+
// src/utils/debug-log.ts
|
|
5
5
|
const MAX_LOG_SIZE = 5242880;
|
|
6
6
|
const KEEP_SIZE = 4194304;
|
|
7
7
|
/**
|
|
@@ -53,7 +53,6 @@ function setupDebugLogging() {
|
|
|
53
53
|
console.warn = noop;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
//#endregion
|
|
57
56
|
export { setupDebugLogging, truncateLogFile };
|
|
58
57
|
|
|
59
58
|
//# sourceMappingURL=debug-log.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScoresStorage } from "@mastra/core/storage";
|
|
2
|
-
|
|
2
|
+
// src/utils/discarding-scores-storage.ts
|
|
3
3
|
/**
|
|
4
4
|
* A scores domain that accepts writes and keeps nothing.
|
|
5
5
|
*
|
|
@@ -48,7 +48,6 @@ function empty(pagination) {
|
|
|
48
48
|
scores: []
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
//#endregion
|
|
52
51
|
export { DiscardingScoresStorage };
|
|
53
52
|
|
|
54
53
|
//# sourceMappingURL=discarding-scores-storage.js.map
|
package/dist/utils/errors.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../auth/provider-auth-error.js";
|
|
2
|
-
|
|
2
|
+
// src/utils/errors.ts
|
|
3
3
|
/**
|
|
4
4
|
* Error handling utilities for the Mastra Code TUI.
|
|
5
5
|
* Parses API errors and provides user-friendly messages.
|
|
@@ -190,7 +190,6 @@ async function withRetry(fn, options = {}) {
|
|
|
190
190
|
}
|
|
191
191
|
throw lastError?.originalError || /* @__PURE__ */ new Error("Retry failed");
|
|
192
192
|
}
|
|
193
|
-
//#endregion
|
|
194
193
|
export { parseError, sleep, withRetry };
|
|
195
194
|
|
|
196
195
|
//# sourceMappingURL=errors.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GatewayRegistry } from "@mastra/core/llm";
|
|
2
|
-
|
|
2
|
+
// src/utils/gateway-sync.ts
|
|
3
3
|
/**
|
|
4
4
|
* Gateway sync utility for keeping the model registry up to date.
|
|
5
5
|
*
|
|
@@ -55,7 +55,6 @@ function stopGatewaySync() {
|
|
|
55
55
|
syncInterval = null;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
//#endregion
|
|
59
58
|
export { startGatewaySync, stopGatewaySync, syncGateways };
|
|
60
59
|
|
|
61
60
|
//# sourceMappingURL=gateway-sync.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/local-observability.ts
|
|
2
2
|
/**
|
|
3
3
|
* Age limits for the local trace store: 14 days for spans, metrics and logs,
|
|
4
4
|
* 30 days for scores and feedback. Spans, logs and scores use the same windows
|
|
@@ -51,7 +51,6 @@ async function openLocalObservabilityStore(path) {
|
|
|
51
51
|
pruned: pruneExistingTables(store).catch(() => [])
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
//#endregion
|
|
55
54
|
export { LOCAL_OBSERVABILITY_RETENTION, openLocalObservabilityStore };
|
|
56
55
|
|
|
57
56
|
//# sourceMappingURL=local-observability.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getAppDataDir } from "./project.js";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import fs from "fs";
|
|
4
|
-
|
|
4
|
+
// src/utils/maintenance-lock.ts
|
|
5
5
|
/**
|
|
6
6
|
* Mutual exclusion between storage maintenance (`mastracode prune`) and running
|
|
7
7
|
* mastracode sessions, using the same pid-file / stale-PID pattern as
|
|
@@ -193,7 +193,6 @@ function acquireMaintenanceLock() {
|
|
|
193
193
|
}
|
|
194
194
|
return release;
|
|
195
195
|
}
|
|
196
|
-
//#endregion
|
|
197
196
|
export { MALFORMED_PID_FILE_GRACE_MS, MaintenanceLockError, UNKNOWN_OWNER, acquireMaintenanceLock, getLiveSessionPids, getMaintenanceLockOwner, getMaintenanceLockPath, registerSession, registerSessionAndWaitForMaintenance, resetSessionRegistrationsForTesting, unregisterSession };
|
|
198
197
|
|
|
199
198
|
//# sourceMappingURL=maintenance-lock.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { notificationDispatchLeaseKey } from "./signals-pubsub.js";
|
|
2
2
|
import { dispatchDueNotifications } from "@mastra/core/notifications";
|
|
3
3
|
import { AsyncLocalStorage } from "async_hooks";
|
|
4
|
-
|
|
4
|
+
// src/utils/notification-dispatch.ts
|
|
5
5
|
const DEFAULT_INTERVAL_MS = 1e4;
|
|
6
6
|
const DEFAULT_LEASE_TTL_MS = 6e4;
|
|
7
7
|
/**
|
|
@@ -125,7 +125,6 @@ function createResourceNotificationDispatcher(options) {
|
|
|
125
125
|
tick
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
//#endregion
|
|
129
128
|
export { createResourceNotificationDispatcher, isDispatchingNotificationsFor, shouldHoldNotificationDelivery };
|
|
130
129
|
|
|
131
130
|
//# sourceMappingURL=notification-dispatch.js.map
|
package/dist/utils/open-url.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { spawn } from "child_process";
|
|
2
|
-
|
|
2
|
+
// src/utils/open-url.ts
|
|
3
3
|
/**
|
|
4
4
|
* Best-effort browser opening for OAuth and other login flows.
|
|
5
5
|
*/
|
|
@@ -24,7 +24,6 @@ function openUrlInBrowser(url) {
|
|
|
24
24
|
child.on("error", () => {});
|
|
25
25
|
child.unref();
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
export { openUrlInBrowser };
|
|
29
28
|
|
|
30
29
|
//# sourceMappingURL=open-url.js.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import path from "path";
|
|
2
|
-
|
|
2
|
+
// src/utils/path-security.ts
|
|
3
3
|
function isPathWithinRoot(candidatePath, rootPath) {
|
|
4
4
|
const relativePath = path.relative(rootPath, candidatePath);
|
|
5
5
|
return relativePath === "" || !relativePath.startsWith(`..${path.sep}`) && relativePath !== ".." && !path.isAbsolute(relativePath);
|
|
6
6
|
}
|
|
7
|
-
//#endregion
|
|
8
7
|
export { isPathWithinRoot };
|
|
9
8
|
|
|
10
9
|
//# sourceMappingURL=path-security.js.map
|
package/dist/utils/plan-diff.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/plan-diff.ts
|
|
2
2
|
/** Produce structured diff entries between two plan texts using an LCS diff. */
|
|
3
3
|
function generatePlanDiff(oldText, newText) {
|
|
4
4
|
const oldLines = oldText.split(/\r?\n/);
|
|
@@ -56,7 +56,6 @@ function shouldShowDiff(previousPlan, plan, maxChangedRatio = .5) {
|
|
|
56
56
|
if (changed === 0) return false;
|
|
57
57
|
return changed / Math.max(entries.length, 1) <= maxChangedRatio;
|
|
58
58
|
}
|
|
59
|
-
//#endregion
|
|
60
59
|
export { generatePlanDiff, shouldShowDiff };
|
|
61
60
|
|
|
62
61
|
//# sourceMappingURL=plan-diff.js.map
|
package/dist/utils/plans.js
CHANGED
|
@@ -2,7 +2,7 @@ import { DEFAULT_CONFIG_DIR } from "../constants.js";
|
|
|
2
2
|
import { getAppDataDir } from "./project.js";
|
|
3
3
|
import path from "path";
|
|
4
4
|
import fs from "fs/promises";
|
|
5
|
-
|
|
5
|
+
// src/utils/plans.ts
|
|
6
6
|
/** Global plans directory for approved-plan archives. */
|
|
7
7
|
function getPlansDir() {
|
|
8
8
|
return process.env.MASTRA_PLANS_DIR ?? path.join(getAppDataDir(), "plans");
|
|
@@ -111,7 +111,6 @@ async function approvePlanFile(opts) {
|
|
|
111
111
|
});
|
|
112
112
|
return path.basename(planPath);
|
|
113
113
|
}
|
|
114
|
-
//#endregion
|
|
115
114
|
export { approvePlanFile, getLocalPlansDir, getLocalPlansRelativeDir, getPlanFilename, getPlansDir, getSuggestedPlanRelativePath, isPlanFilePath, readPlanFile, resolvePlanPath, savePlanToDisk };
|
|
116
115
|
|
|
117
116
|
//# sourceMappingURL=plans.js.map
|
package/dist/utils/project.js
CHANGED
|
@@ -4,7 +4,7 @@ import { createHash } from "crypto";
|
|
|
4
4
|
import fs from "fs";
|
|
5
5
|
import { execFile, execSync } from "child_process";
|
|
6
6
|
import os from "os";
|
|
7
|
-
|
|
7
|
+
// src/utils/project.ts
|
|
8
8
|
/**
|
|
9
9
|
* Project detection utilities
|
|
10
10
|
*
|
|
@@ -358,7 +358,6 @@ function loadStringField(filePath, field) {
|
|
|
358
358
|
return null;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
//#endregion
|
|
362
361
|
export { detectProject, getAppDataDir, getCurrentGitBranch, getCurrentGitBranchAsync, getDatabasePath, getObservabilityDatabasePath, getOmScope, getResourceIdOverride, getStorageConfig, getUserId, getUserName, getVectorDatabasePath };
|
|
363
362
|
|
|
364
363
|
//# sourceMappingURL=project.js.map
|
package/dist/utils/prune-cli.js
CHANGED
|
@@ -6,7 +6,7 @@ import { DEFAULT_RETENTION, createStorageMaintenance, resolveLocalDbFiles, runSt
|
|
|
6
6
|
import { createStorage, createVectorStore } from "./storage-factory.js";
|
|
7
7
|
import path from "path";
|
|
8
8
|
import { LibSQLVector } from "@mastra/libsql";
|
|
9
|
-
|
|
9
|
+
// src/utils/prune-cli.ts
|
|
10
10
|
/**
|
|
11
11
|
* `mastracode prune` — storage maintenance from a non-interactive shell.
|
|
12
12
|
*
|
|
@@ -121,7 +121,6 @@ function describeStorageTarget(config) {
|
|
|
121
121
|
if (config.connectionString) return `pg ${redactUrl(config.connectionString)}`;
|
|
122
122
|
return `pg postgres://${`${config.host ?? "localhost"}${config.port ? `:${config.port}` : ""}`}/${config.database ?? ""}`;
|
|
123
123
|
}
|
|
124
|
-
//#endregion
|
|
125
124
|
export { describeStorageTarget, runPruneCommand };
|
|
126
125
|
|
|
127
126
|
//# sourceMappingURL=prune-cli.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isAbsolute, join } from "path";
|
|
2
2
|
import { mkdir } from "fs/promises";
|
|
3
3
|
import { PubSub, UnixSocketPubSub } from "@mastra/core/events";
|
|
4
|
-
|
|
4
|
+
// src/utils/signals-pubsub.ts
|
|
5
5
|
const DEFAULT_SOCKET_ROOT = "/tmp/mc";
|
|
6
6
|
const SHARED_SCOPE_DIR = "_shared";
|
|
7
7
|
const THREAD_STREAM_PREFIX = "agent.thread-stream.";
|
|
@@ -406,7 +406,6 @@ var SignalsPubSub = class extends PubSub {
|
|
|
406
406
|
function createSignalsPubSub(resourceId, options) {
|
|
407
407
|
return new SignalsPubSub(resourceId, options);
|
|
408
408
|
}
|
|
409
|
-
//#endregion
|
|
410
409
|
export { createSignalsPubSub, notificationDispatchLeaseKey };
|
|
411
410
|
|
|
412
411
|
//# sourceMappingURL=signals-pubsub.js.map
|