@mastra/code-sdk 1.18.0-alpha.2 → 1.18.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/agents/credential-resolver.d.ts +4 -3
- package/dist/agents/credential-resolver.d.ts.map +1 -1
- package/dist/agents/credential-resolver.js.map +1 -1
- package/dist/agents/instructions.d.ts +6 -2
- package/dist/agents/instructions.d.ts.map +1 -1
- package/dist/agents/instructions.js +11 -5
- package/dist/agents/instructions.js.map +1 -1
- package/dist/agents/memory.js +1 -1
- package/dist/agents/model.d.ts +25 -1
- package/dist/agents/model.d.ts.map +1 -1
- package/dist/agents/model.js +35 -1
- package/dist/agents/model.js.map +1 -1
- package/dist/agents/prompts/index.d.ts +5 -0
- package/dist/agents/prompts/index.d.ts.map +1 -1
- package/dist/agents/prompts/index.js +5 -2
- package/dist/agents/prompts/index.js.map +1 -1
- package/dist/agents/prompts/tool-guidance.d.ts +2 -0
- package/dist/agents/prompts/tool-guidance.d.ts.map +1 -1
- package/dist/agents/prompts/tool-guidance.js +6 -3
- package/dist/agents/prompts/tool-guidance.js.map +1 -1
- package/dist/agents/tools.d.ts.map +1 -1
- package/dist/agents/tools.js +27 -7
- package/dist/agents/tools.js.map +1 -1
- package/dist/auth/account-routing-context.d.ts +6 -2
- package/dist/auth/account-routing-context.d.ts.map +1 -1
- package/dist/auth/account-routing-context.js.map +1 -1
- package/dist/headless/run-mc.js +3 -3
- package/dist/headless/run-mc.js.map +1 -1
- package/dist/headless/types.d.ts +1 -0
- package/dist/headless/types.d.ts.map +1 -1
- package/dist/headless/types.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/onboarding/settings.d.ts.map +1 -1
- package/dist/onboarding/settings.js +13 -1
- package/dist/onboarding/settings.js.map +1 -1
- package/package.json +14 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":[],"sources":["../../src/headless/types.ts"],"sourcesContent":["/**\n * Shared types for the headless / programmatic MastraCode API.\n *\n * These types are consumed by the core runner (`runMC`), the resolution policy,\n * the output formatters, and the CLI adapter. They are intentionally free of any\n * `process.*` access so the core API is usable from CI / Node code.\n */\nimport type { AgentController, AgentControllerEvent, Session } from '@mastra/core/agent-controller';\n\nimport type { GoalManager } from '../goal-manager.js';\nimport type { PackSelection } from '../onboarding/pack-activation.js';\n\nexport type RunMode = 'build' | 'plan' | 'fast';\nexport type ThinkingLevel = 'off' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';\n\nexport const VALID_MODES = ['build', 'plan', 'fast'] as const;\nexport const VALID_THINKING_LEVELS = ['off', 'low', 'medium', 'high', 'xhigh', 'max'] as const;\n\n/**\n * Named permission modes for non-interactive runs. Maps to a built-in\n * {@link ResolutionPolicy}:\n * - `auto` — approve every tool and auto-resolve suspensions (the default).\n * - `deny` — refuse every tool approval and abort on any suspension.\n */\nexport type PermissionMode = 'auto' | 'deny';\nexport const VALID_PERMISSION_MODES = ['auto', 'deny'] as const;\n\n/** How `runMC` should resume `tool_approval_required` and `tool_suspended` events. */\nexport interface ResolutionPolicy {\n /**\n * Called for every `tool_approval_required` event. Return the decision; the\n * runner forwards it to `session.respondToToolApproval`.\n */\n onToolApproval(event: Extract<AgentControllerEvent, { type: 'tool_approval_required' }>): 'approve' | 'deny';\n /**\n * Called for every `tool_suspended` event. Return `resumeData` to resume the\n * tool, or `{ abort: true }` to abort the run.\n */\n onSuspension(\n event: Extract<AgentControllerEvent, { type: 'tool_suspended' }>,\n ): { resumeData: unknown } | { abort: true };\n}\n\n/** Thread selection / mutation options resolved up front by `runMC`. */\nexport interface RunMCThreadOptions {\n /** Resume a specific thread by its exact id. */\n id?: string;\n /** Resume the most recently updated thread instead of creating a new one. */\n continueLatest?: boolean;\n /** Clone the resolved (or current) thread before running — work on a copy. */\n clone?: boolean;\n}\n\ninterface RunMCBaseOptions<TState extends Record<string, unknown> = Record<string, unknown>> {\n /** Controller built via `createMastraCode(...)`. */\n controller: AgentController<TState>;\n /** Session built via `createMastraCode(...)`. */\n session: Session<TState>;\n\n /** Explicit model id override. Takes precedence over `mode` and `pack`. */\n model?: string;\n /** Execution mode; resolves a model from `modeDefaults` when `model` is absent. */\n mode?: RunMode;\n /** Per-mode default model ids (resolved from settings at startup). */\n modeDefaults?: Record<string, string>;\n /**\n * A model pack to activate for the run (canonical id from\n * `resolveModePackArg`). The selection is resolved via `resolve` only after\n * thread selection, because a resumed thread restores its persisted mode —\n * the mode that decides which model the pack provides. Sets the thread's\n * activeModelPackId, the subagent models, and the model route; `model`\n * still wins for the active mode's session model. `onApplied` fires once\n * the pack has been applied to the session (used by the CLI to persist the\n * activation as the global default only when it actually took effect).\n */\n pack?: {\n id: string;\n resolve: (modeId: string) => PackSelection | undefined;\n onApplied?: () => void;\n };\n /** Thinking-effort level. */\n thinkingLevel?: ThinkingLevel;\n /** Thread selection / mutation. */\n thread?: RunMCThreadOptions;\n /** Resource id for thread scoping. */\n resourceId?: string;\n /** Set or rename the thread title before running. */\n title?: string;\n /** Abort with `status: 'timeout'` (exit code 2) after this many ms without an event. */\n timeoutMs?: number;\n /**\n * Maximum number of agentic turns (assistant responses). When the limit is\n * reached the run aborts with `status: 'max_turns'` (exit code 1). No limit\n * by default.\n */\n maxTurns?: number;\n /** How approvals / suspensions are resolved. Defaults to {@link autoApprovePolicy}. */\n policy?: ResolutionPolicy;\n /** External abort signal; aborting it aborts the run. */\n signal?: AbortSignal;\n}\n\nexport interface RunMCGoalOptions {\n objective: string;\n judgeModelId: string;\n maxRuns: number;\n goalManager?: GoalManager;\n}\n\nexport type RunMCOptions<TState extends Record<string, unknown> = Record<string, unknown>> = RunMCBaseOptions<TState> &\n (\n | {\n /** The task to run as a regular headless turn. */\n prompt: string;\n goal?: never;\n }\n | {\n prompt?: never;\n /** Run a persisted goal instead of a regular prompt. */\n goal: RunMCGoalOptions;\n }\n );\n\nexport type RunMCStatus = 'completed' | 'done' | 'paused' | 'error' | 'aborted' | 'timeout' | 'max_turns';\n\nexport interface RunMCUsage {\n inputTokens?: number;\n outputTokens?: number;\n totalTokens?: number;\n}\n\nexport interface RunMCToolCall {\n id: string;\n name: string;\n args: unknown;\n}\n\nexport interface RunMCToolResult {\n id: string;\n name: string;\n result: unknown;\n isError: boolean;\n}\n\nexport interface RunMCError {\n name: string;\n message: string;\n stack?: string;\n}\n\nexport interface RunMCResult {\n status: RunMCStatus;\n /** Aggregated assistant text across all message_end events. */\n text: string;\n /** Goal objective when this was a goal run. */\n objective?: string;\n /** Terminal goal evaluation when this was a goal run. */\n goalEvent?: Extract<AgentControllerEvent, { type: 'goal_evaluation' }>;\n reason?: string;\n iterations?: number;\n maxRuns?: number;\n /** Underlying finish reason from `agent_end`, when the run finished normally. */\n finishReason?: string;\n usage?: RunMCUsage;\n toolCalls: RunMCToolCall[];\n toolResults: RunMCToolResult[];\n threadId?: string;\n error?: RunMCError;\n /** 0 success, 1 error/aborted/max_turns, 2 timeout. */\n exitCode: number;\n}\n\n/**\n * A handle to an in-flight `runMC` run. It is async-iterable over controller\n * events and also resolves to a final {@link RunMCResult} via `result`.\n *\n * Both `for await (const e of run)` and `await run.result` work on the same run;\n * awaiting `result` without iterating still drains events internally.\n */\nexport interface MCRun extends AsyncIterable<AgentControllerEvent> {\n /** Resolves once the run completes, times out, errors, or is aborted. */\n result: Promise<RunMCResult>;\n /** Abort the in-flight run. */\n abort(): void;\n}\n"],"mappings":";AAeA,MAAa,cAAc;CAAC;CAAS;CAAQ;AAAM;AACnD,MAAa,wBAAwB;CAAC;CAAO;CAAO;CAAU;CAAQ;CAAS;AAAK;AASpF,MAAa,yBAAyB,CAAC,QAAQ,MAAM"}
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../src/headless/types.ts"],"sourcesContent":["/**\n * Shared types for the headless / programmatic MastraCode API.\n *\n * These types are consumed by the core runner (`runMC`), the resolution policy,\n * the output formatters, and the CLI adapter. They are intentionally free of any\n * `process.*` access so the core API is usable from CI / Node code.\n */\nimport type { AgentController, AgentControllerEvent, Session } from '@mastra/core/agent-controller';\n\nimport type { GoalManager } from '../goal-manager.js';\nimport type { PackSelection } from '../onboarding/pack-activation.js';\n\nexport type RunMode = 'build' | 'plan' | 'fast';\nexport type ThinkingLevel = 'off' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';\n\nexport const VALID_MODES = ['build', 'plan', 'fast'] as const;\nexport const VALID_THINKING_LEVELS = ['off', 'low', 'medium', 'high', 'xhigh', 'max'] as const;\n\n/**\n * Named permission modes for non-interactive runs. Maps to a built-in\n * {@link ResolutionPolicy}:\n * - `auto` — approve every tool and auto-resolve suspensions (the default).\n * - `deny` — refuse every tool approval and abort on any suspension.\n */\nexport type PermissionMode = 'auto' | 'deny';\nexport const VALID_PERMISSION_MODES = ['auto', 'deny'] as const;\n\n/** How `runMC` should resume `tool_approval_required` and `tool_suspended` events. */\nexport interface ResolutionPolicy {\n /**\n * Called for every `tool_approval_required` event. Return the decision; the\n * runner forwards it to `session.respondToToolApproval`.\n */\n onToolApproval(event: Extract<AgentControllerEvent, { type: 'tool_approval_required' }>): 'approve' | 'deny';\n /**\n * Called for every `tool_suspended` event. Return `resumeData` to resume the\n * tool, or `{ abort: true }` to abort the run.\n */\n onSuspension(\n event: Extract<AgentControllerEvent, { type: 'tool_suspended' }>,\n ): { resumeData: unknown } | { abort: true };\n}\n\n/** Thread selection / mutation options resolved up front by `runMC`. */\nexport interface RunMCThreadOptions {\n /** Resume a specific thread by its exact id. */\n id?: string;\n /** Resume the most recently updated thread instead of creating a new one. */\n continueLatest?: boolean;\n /** Clone the resolved (or current) thread before running — work on a copy. */\n clone?: boolean;\n}\n\ninterface RunMCBaseOptions<TState extends Record<string, unknown> = Record<string, unknown>> {\n /** Controller built via `createMastraCode(...)`. */\n controller: AgentController<TState>;\n /** Session built via `createMastraCode(...)`. */\n session: Session<TState>;\n\n /** Explicit model id override. Takes precedence over `mode` and `pack`. */\n model?: string;\n /** Execution mode; resolves a model from `modeDefaults` when `model` is absent. */\n mode?: RunMode;\n /** Per-mode default model ids (resolved from settings at startup). */\n modeDefaults?: Record<string, string>;\n /**\n * A model pack to activate for the run (canonical id from\n * `resolveModePackArg`). The selection is resolved via `resolve` only after\n * thread selection, because a resumed thread restores its persisted mode —\n * the mode that decides which model the pack provides. Sets the thread's\n * activeModelPackId, the subagent models, and the model route; `model`\n * still wins for the active mode's session model. `onApplied` fires once\n * the pack has been applied to the session (used by the CLI to persist the\n * activation as the global default only when it actually took effect).\n */\n pack?: {\n id: string;\n resolve: (modeId: string) => PackSelection | undefined;\n onApplied?: () => void;\n };\n /** Thinking-effort level. */\n thinkingLevel?: ThinkingLevel;\n /** Thread selection / mutation. */\n thread?: RunMCThreadOptions;\n /** Resource id for thread scoping. */\n resourceId?: string;\n /** Set or rename the thread title before running. */\n title?: string;\n /** Abort with `status: 'timeout'` (exit code 2) after this many ms without an event. */\n timeoutMs?: number;\n /**\n * Maximum number of agentic turns (assistant responses). When the limit is\n * reached the run aborts with `status: 'max_turns'` (exit code 1). No limit\n * by default.\n */\n maxTurns?: number;\n /** How approvals / suspensions are resolved. Defaults to {@link autoApprovePolicy}. */\n policy?: ResolutionPolicy;\n /** External abort signal; aborting it aborts the run. */\n signal?: AbortSignal;\n}\n\nexport interface RunMCGoalOptions {\n objective: string;\n judgeModelId: string;\n maxRuns: number;\n goalManager?: GoalManager;\n}\n\nexport type RunMCOptions<TState extends Record<string, unknown> = Record<string, unknown>> = RunMCBaseOptions<TState> &\n (\n | {\n /** The task to run as a regular headless turn. */\n prompt: string;\n goal?: never;\n }\n | {\n prompt?: never;\n /** Run a persisted goal instead of a regular prompt. */\n goal: RunMCGoalOptions;\n }\n );\n\nexport type RunMCStatus = 'completed' | 'done' | 'paused' | 'error' | 'aborted' | 'timeout' | 'max_turns';\n\nexport interface RunMCUsage {\n inputTokens?: number;\n outputTokens?: number;\n totalTokens?: number;\n}\n\nexport interface RunMCToolCall {\n id: string;\n name: string;\n args: unknown;\n}\n\nexport interface RunMCToolResult {\n id: string;\n name: string;\n result: unknown;\n isError: boolean;\n}\n\nexport interface RunMCError {\n name: string;\n message: string;\n stack?: string;\n}\n\nexport interface RunMCResult {\n status: RunMCStatus;\n /** Aggregated assistant text across all message_end events. */\n text: string;\n /** Goal objective when this was a goal run. */\n objective?: string;\n /** Terminal goal evaluation when this was a goal run. */\n goalEvent?: Extract<AgentControllerEvent, { type: 'goal_evaluation' }>;\n reason?: string;\n iterations?: number;\n maxRuns?: number;\n /** Underlying finish reason from `agent_end`, when the run finished normally. */\n finishReason?: string;\n /** Cumulative token usage for this run, summed from per-step usage events. */\n usage?: RunMCUsage;\n toolCalls: RunMCToolCall[];\n toolResults: RunMCToolResult[];\n threadId?: string;\n error?: RunMCError;\n /** 0 success, 1 error/aborted/max_turns, 2 timeout. */\n exitCode: number;\n}\n\n/**\n * A handle to an in-flight `runMC` run. It is async-iterable over controller\n * events and also resolves to a final {@link RunMCResult} via `result`.\n *\n * Both `for await (const e of run)` and `await run.result` work on the same run;\n * awaiting `result` without iterating still drains events internally.\n */\nexport interface MCRun extends AsyncIterable<AgentControllerEvent> {\n /** Resolves once the run completes, times out, errors, or is aborted. */\n result: Promise<RunMCResult>;\n /** Abort the in-flight run. */\n abort(): void;\n}\n"],"mappings":";AAeA,MAAa,cAAc;CAAC;CAAS;CAAQ;AAAM;AACnD,MAAa,wBAAwB;CAAC;CAAO;CAAO;CAAU;CAAQ;CAAS;AAAK;AASpF,MAAa,yBAAyB,CAAC,QAAQ,MAAM"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAkC,MAAM,+BAA+B,CAAC;AAChG,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EAEr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AC,qBAAqB,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC,CAAC;CACzF,GACA,OAAO,CAAC;IACT,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAAC,CAAC;IAClE,UAAU,EAAE,WAAW,CAAC,qBAAqB,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACjE,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B,CAAC,CAqED;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,iCAA2B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACxF,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;;GAIG;AACH,OAAO,EACL,KAAK,EACL,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,sBAAsB,EACtB,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,aAAa,EACb,eAAe,EACf,UAAU,EACV,kBAAkB,EAClB,KAAK,EACL,gBAAgB,EAChB,cAAc,GACf,MAAM,qBAAqB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -12,10 +12,6 @@ import { AgentConnectionsSignalProvider } from "./agent-connections/signal-provi
|
|
|
12
12
|
import { createBackgroundCompletionEvents } from "./agents/background-completion-events.js";
|
|
13
13
|
import { createBackgroundCompletionCallbacks } from "./agents/background-completion.js";
|
|
14
14
|
import { hasCredentialStoreProvider, setCredentialLogger, withCredentialTenantPreparation } from "./agents/credential-resolver.js";
|
|
15
|
-
import { getDynamicWorkspace, getGoalJudgeTools } from "./agents/workspace.js";
|
|
16
|
-
import { createGitRefReminderReader, instructionSourcePaths, loadSessionInstructions, sessionInstructionRoots } from "./agents/prompts/agent-instructions.js";
|
|
17
|
-
import { getDynamicInstructions } from "./agents/instructions.js";
|
|
18
|
-
import { LOCAL_KNOWLEDGE_ORG_ID, knowledgeUnresolvedScopes, resolveKnowledgeSessionScopes } from "./knowledge-scope.js";
|
|
19
15
|
import { createAmazonBedrockGateway } from "./providers/amazon-bedrock-gateway.js";
|
|
20
16
|
import { createGoogleVertexGateway } from "./providers/google-vertex-gateway.js";
|
|
21
17
|
import { setAuthStorage as setAuthStorage$1 } from "./providers/claude-max.js";
|
|
@@ -23,6 +19,10 @@ import { setAuthStorage as setAuthStorage$2 } from "./providers/github-copilot.j
|
|
|
23
19
|
import { setAuthStorage as setAuthStorage$3 } from "./providers/kimi-coding.js";
|
|
24
20
|
import { setAuthStorage as setAuthStorage$4 } from "./providers/xai.js";
|
|
25
21
|
import { canUseProvider, createMastraCodeGateway, getDynamicModel, getGoalJudgeModel, resolveModel } from "./agents/model.js";
|
|
22
|
+
import { getDynamicWorkspace, getGoalJudgeTools } from "./agents/workspace.js";
|
|
23
|
+
import { createGitRefReminderReader, instructionSourcePaths, loadSessionInstructions, sessionInstructionRoots } from "./agents/prompts/agent-instructions.js";
|
|
24
|
+
import { getDynamicInstructions } from "./agents/instructions.js";
|
|
25
|
+
import { LOCAL_KNOWLEDGE_ORG_ID, knowledgeUnresolvedScopes, resolveKnowledgeSessionScopes } from "./knowledge-scope.js";
|
|
26
26
|
import { getDynamicMemory } from "./agents/memory.js";
|
|
27
27
|
import { buildMode } from "./agents/modes/build.js";
|
|
28
28
|
import { fastMode } from "./agents/modes/explore.js";
|
|
@@ -726,7 +726,8 @@ async function createMastraCodeAgentController(config) {
|
|
|
726
726
|
hostInstructions,
|
|
727
727
|
coAuthor: config?.coAuthor,
|
|
728
728
|
hasSubagents: subagents.length > 0,
|
|
729
|
-
disabledBuiltinTools: config?.disableBuiltinTools
|
|
729
|
+
disabledBuiltinTools: config?.disableBuiltinTools,
|
|
730
|
+
disabledTools: config?.disabledTools
|
|
730
731
|
});
|
|
731
732
|
},
|
|
732
733
|
model: async (ctx) => ctx.requestContext.get("controller") ? resolveTenantSessionModel(ctx) : getDynamicModel(ctx, config?.settingsPath, { modeless }),
|