mastracode 0.3.0 → 0.4.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.
Files changed (102) hide show
  1. package/CHANGELOG.md +132 -0
  2. package/README.md +60 -12
  3. package/dist/agents/instructions.d.ts.map +1 -1
  4. package/dist/agents/model.d.ts +4 -1
  5. package/dist/agents/model.d.ts.map +1 -1
  6. package/dist/auth/claude-max-warning.d.ts +9 -0
  7. package/dist/auth/claude-max-warning.d.ts.map +1 -0
  8. package/dist/{chunk-7TFV3VBB.cjs → chunk-C4X3C2DL.cjs} +1091 -607
  9. package/dist/chunk-C4X3C2DL.cjs.map +1 -0
  10. package/dist/{chunk-7K5VFY2N.cjs → chunk-K4WJUBEC.cjs} +151 -48
  11. package/dist/chunk-K4WJUBEC.cjs.map +1 -0
  12. package/dist/{chunk-HHX6BKLR.js → chunk-M5LKPQB4.js} +12 -11
  13. package/dist/chunk-M5LKPQB4.js.map +1 -0
  14. package/dist/{chunk-V4HZ2AVV.js → chunk-REVOTI2T.js} +143 -38
  15. package/dist/chunk-REVOTI2T.js.map +1 -0
  16. package/dist/{chunk-C6XKRHRK.cjs → chunk-S5ZLN7DR.cjs} +6 -2
  17. package/dist/chunk-S5ZLN7DR.cjs.map +1 -0
  18. package/dist/{chunk-VRZZSUQE.js → chunk-SM3QCOA7.js} +6 -3
  19. package/dist/chunk-SM3QCOA7.js.map +1 -0
  20. package/dist/{chunk-LYETHS2L.js → chunk-X3BGE7CL.js} +877 -394
  21. package/dist/chunk-X3BGE7CL.js.map +1 -0
  22. package/dist/{chunk-VZFPT5N7.cjs → chunk-Z4QRXVST.cjs} +62 -61
  23. package/dist/chunk-Z4QRXVST.cjs.map +1 -0
  24. package/dist/cli.cjs +20 -10
  25. package/dist/cli.cjs.map +1 -1
  26. package/dist/cli.js +14 -4
  27. package/dist/cli.js.map +1 -1
  28. package/dist/docs/SKILL.md +30 -0
  29. package/dist/docs/assets/SOURCE_MAP.json +11 -0
  30. package/dist/docs/references/docs-mastra-code-configuration.md +299 -0
  31. package/dist/docs/references/docs-mastra-code-customization.md +228 -0
  32. package/dist/docs/references/docs-mastra-code-modes.md +104 -0
  33. package/dist/docs/references/docs-mastra-code-overview.md +135 -0
  34. package/dist/docs/references/docs-mastra-code-tools.md +229 -0
  35. package/dist/docs/references/reference-mastra-code-createMastraCode.md +108 -0
  36. package/dist/index.cjs +2 -2
  37. package/dist/index.js +1 -1
  38. package/dist/onboarding/onboarding-inline.d.ts +5 -0
  39. package/dist/onboarding/onboarding-inline.d.ts.map +1 -1
  40. package/dist/onboarding/settings.d.ts +3 -0
  41. package/dist/onboarding/settings.d.ts.map +1 -1
  42. package/dist/providers/openai-codex.d.ts +5 -1
  43. package/dist/providers/openai-codex.d.ts.map +1 -1
  44. package/dist/schema.d.ts +7 -1
  45. package/dist/schema.d.ts.map +1 -1
  46. package/dist/storage-PO4VN5NF.cjs +24 -0
  47. package/dist/{storage-JFFX7LJJ.cjs.map → storage-PO4VN5NF.cjs.map} +1 -1
  48. package/dist/storage-PQOHJLBI.js +3 -0
  49. package/dist/{storage-52Y5MKTG.js.map → storage-PQOHJLBI.js.map} +1 -1
  50. package/dist/tui/claude-max-warning.d.ts +18 -0
  51. package/dist/tui/claude-max-warning.d.ts.map +1 -0
  52. package/dist/tui/command-dispatch.d.ts.map +1 -1
  53. package/dist/tui/commands/index.d.ts +1 -0
  54. package/dist/tui/commands/index.d.ts.map +1 -1
  55. package/dist/tui/commands/login.d.ts.map +1 -1
  56. package/dist/tui/commands/models-pack.d.ts.map +1 -1
  57. package/dist/tui/commands/settings.d.ts.map +1 -1
  58. package/dist/tui/commands/skills.d.ts.map +1 -1
  59. package/dist/tui/commands/theme.d.ts +6 -0
  60. package/dist/tui/commands/theme.d.ts.map +1 -0
  61. package/dist/tui/commands/think.d.ts +1 -1
  62. package/dist/tui/commands/think.d.ts.map +1 -1
  63. package/dist/tui/components/banner.d.ts.map +1 -1
  64. package/dist/tui/components/diff-output.d.ts.map +1 -1
  65. package/dist/tui/components/help-overlay.d.ts.map +1 -1
  66. package/dist/tui/components/obi-loader.d.ts.map +1 -1
  67. package/dist/tui/components/settings.d.ts +1 -0
  68. package/dist/tui/components/settings.d.ts.map +1 -1
  69. package/dist/tui/components/shell-output.d.ts.map +1 -1
  70. package/dist/tui/components/task-progress.d.ts.map +1 -1
  71. package/dist/tui/components/thinking-settings.d.ts +11 -22
  72. package/dist/tui/components/thinking-settings.d.ts.map +1 -1
  73. package/dist/tui/components/tool-execution-enhanced.d.ts.map +1 -1
  74. package/dist/tui/detect-theme.d.ts +17 -0
  75. package/dist/tui/detect-theme.d.ts.map +1 -0
  76. package/dist/tui/event-dispatch.d.ts.map +1 -1
  77. package/dist/tui/handlers/agent-lifecycle.d.ts.map +1 -1
  78. package/dist/tui/index.d.ts +2 -2
  79. package/dist/tui/index.d.ts.map +1 -1
  80. package/dist/tui/mastra-tui.d.ts +8 -0
  81. package/dist/tui/mastra-tui.d.ts.map +1 -1
  82. package/dist/tui/render-messages.d.ts.map +1 -1
  83. package/dist/tui/setup.d.ts.map +1 -1
  84. package/dist/tui/status-line.d.ts.map +1 -1
  85. package/dist/tui/theme.d.ts +33 -20
  86. package/dist/tui/theme.d.ts.map +1 -1
  87. package/dist/tui.cjs +27 -19
  88. package/dist/tui.js +2 -2
  89. package/dist/utils/project.d.ts +5 -0
  90. package/dist/utils/project.d.ts.map +1 -1
  91. package/dist/utils/slash-command-processor.d.ts.map +1 -1
  92. package/package.json +8 -8
  93. package/dist/chunk-7K5VFY2N.cjs.map +0 -1
  94. package/dist/chunk-7TFV3VBB.cjs.map +0 -1
  95. package/dist/chunk-C6XKRHRK.cjs.map +0 -1
  96. package/dist/chunk-HHX6BKLR.js.map +0 -1
  97. package/dist/chunk-LYETHS2L.js.map +0 -1
  98. package/dist/chunk-V4HZ2AVV.js.map +0 -1
  99. package/dist/chunk-VRZZSUQE.js.map +0 -1
  100. package/dist/chunk-VZFPT5N7.cjs.map +0 -1
  101. package/dist/storage-52Y5MKTG.js +0 -3
  102. package/dist/storage-JFFX7LJJ.cjs +0 -24
@@ -0,0 +1,229 @@
1
+ # Tools
2
+
3
+ Mastra Code provides built-in tools that the agent uses to interact with your codebase. Each tool is designed for a specific task, and the agent selects the right one based on what it needs to do.
4
+
5
+ ## File tools
6
+
7
+ ### `view`
8
+
9
+ Read file contents with line numbers or list directory contents. The agent uses this tool before editing a file.
10
+
11
+ - Displays line-numbered output (like `cat -n`) for easy reference.
12
+ - For directories, lists files up to 2 levels deep, excluding hidden items.
13
+ - Supports `view_range` to read specific line ranges in large files.
14
+ - Output is truncated if the file exceeds the token limit. Use `view_range` to read specific sections.
15
+
16
+ | Parameter | Type | Required | Description |
17
+ | ------------ | ------------------ | -------- | -------------------------------------------------------- |
18
+ | `path` | `string` | Yes | Path to the file or directory (relative to project root) |
19
+ | `view_range` | `[number, number]` | No | Line range `[start, end]` to view a section of the file |
20
+
21
+ ### `string_replace_lsp`
22
+
23
+ Edit a file by replacing an exact text match with new content. Returns Language Server Protocol (LSP) diagnostics showing any errors or warnings introduced by the edit.
24
+
25
+ - The agent reads the file first with `view` before editing.
26
+ - `old_str` must be an exact substring of the current file content.
27
+ - Include enough surrounding context to uniquely identify the replacement location.
28
+ - When `new_str` is omitted or empty, the matched text is deleted.
29
+ - After editing, TypeScript errors, linting warnings, and other diagnostics are returned automatically.
30
+
31
+ | Parameter | Type | Required | Description |
32
+ | ------------ | -------- | -------- | -------------------------------------------------- |
33
+ | `path` | `string` | Yes | Path to the file |
34
+ | `old_str` | `string` | Yes | Exact text to find and replace |
35
+ | `new_str` | `string` | No | Replacement text (omit to delete the matched text) |
36
+ | `start_line` | `number` | No | Line number to narrow the search region |
37
+
38
+ ### `ast_smart_edit`
39
+
40
+ Edit code using abstract syntax tree (AST) analysis for intelligent, structure-aware transformations. Powered by [ast-grep](https://ast-grep.github.io/), this tool understands code structure rather than treating files as raw text.
41
+
42
+ Supported transformations:
43
+
44
+ - **Pattern-based search and replace**: Find and replace code using AST patterns with `$VARIABLE` placeholders (e.g., replace `console.log($ARG)` with `logger.debug($ARG)`).
45
+ - **Add/remove imports**: Intelligently insert or remove import statements.
46
+ - **Rename functions**: Rename function declarations and all call sites with scope awareness.
47
+ - **Rename variables**: Rename variable declarations and all references.
48
+ - **Selector queries**: Find AST nodes matching a CSS-like selector (e.g., `"FunctionDeclaration"`).
49
+
50
+ | Parameter | Type | Required | Description |
51
+ | ------------- | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------- |
52
+ | `path` | `string` | Yes | File path relative to project root |
53
+ | `pattern` | `string` | No | AST pattern to search for (supports `$VARIABLE` placeholders) |
54
+ | `replacement` | `string` | No | Replacement pattern (can use captured `$VARIABLES`) |
55
+ | `selector` | `string` | No | CSS-like selector for AST nodes |
56
+ | `transform` | `string` | No | Transformation type: `add-import`, `remove-import`, `rename-function`, `rename-variable`, `extract-function`, `inline-variable` |
57
+ | `targetName` | `string` | No | Name of the target element (for rename/remove operations) |
58
+ | `newName` | `string` | No | New name (for rename operations) |
59
+ | `importSpec` | `object` | No | Import specification for `add-import`: `{ module, names, isDefault? }` |
60
+
61
+ ### `write_file`
62
+
63
+ Create a new file or overwrite an existing file entirely.
64
+
65
+ - Use for creating new files. For editing existing files, prefer `string_replace_lsp`.
66
+ - Parent directories are created automatically if they don't exist.
67
+ - If overwriting an existing file, the agent reads it first with `view`.
68
+
69
+ | Parameter | Type | Required | Description |
70
+ | --------- | -------- | -------- | ------------------------------------------------ |
71
+ | `path` | `string` | Yes | File path to write to (relative to project root) |
72
+ | `content` | `string` | Yes | Full content to write to the file |
73
+
74
+ ## Search tools
75
+
76
+ ### `search_content`
77
+
78
+ Search file contents using regular expressions. Uses ripgrep when available, falling back to grep.
79
+
80
+ - Supports full regex syntax (e.g., `"function\\s+\\w+"`, `"import.*from"`).
81
+ - Respects `.gitignore` automatically in Git repositories.
82
+ - Always preferred over running `grep` or `rg` via `execute_command`.
83
+
84
+ | Parameter | Type | Required | Description |
85
+ | --------------- | --------- | -------- | ----------------------------------------------------------------------------------- |
86
+ | `pattern` | `string` | Yes | Regex pattern to search for in file contents |
87
+ | `path` | `string` | No | Directory or file to search in (relative to project root, defaults to project root) |
88
+ | `glob` | `string` | No | Glob pattern to filter files (e.g., `"*.ts"`, `"*.{js,jsx}"`, `"test/**"`) |
89
+ | `contextLines` | `number` | No | Number of lines to show before and after each match (default: 0) |
90
+ | `maxResults` | `number` | No | Maximum number of matching lines to return (default: 100) |
91
+ | `caseSensitive` | `boolean` | No | Whether the search is case-sensitive (default: true) |
92
+
93
+ ### `find_files`
94
+
95
+ Find files by name pattern using glob matching. Results are sorted by modification time (most recent first).
96
+
97
+ - Supports standard glob syntax: `*` (any characters), `**` (any path segments), `?` (single character), `{a,b}` (alternatives).
98
+ - Respects `.gitignore` automatically in Git repositories.
99
+ - Always preferred over running `find` or `ls` via `execute_command`.
100
+
101
+ | Parameter | Type | Required | Description |
102
+ | --------- | -------- | -------- | --------------------------------------------------------------------------- |
103
+ | `pattern` | `string` | Yes | Glob pattern (e.g., `"**/*.ts"`, `"src/**/*.test.*"`, `"**/package.json"`) |
104
+ | `path` | `string` | No | Directory to search in (relative to project root, defaults to project root) |
105
+
106
+ ## Shell execution
107
+
108
+ ### `execute_command`
109
+
110
+ Execute a shell command in the project directory.
111
+
112
+ - Use for Git commands, package managers (`npm`, `pnpm`), build tools, test runners, Docker, and other terminal operations.
113
+ - Commands run with a 30-second default timeout. Use the `timeout` parameter for longer operations.
114
+ - Output is stripped of ANSI codes and streamed to the TUI in real time.
115
+ - Pipe to `| tail -N` for commands with long output — full output streams to the user, but only the last N lines are returned to the agent.
116
+ - The `CI=true` environment variable is set automatically to prevent interactive prompts.
117
+
118
+ | Parameter | Type | Required | Description |
119
+ | --------- | -------- | -------- | -------------------------------------------- |
120
+ | `command` | `string` | Yes | Shell command to execute |
121
+ | `cwd` | `string` | No | Working directory (defaults to project root) |
122
+ | `timeout` | `number` | No | Timeout in seconds (default: 30) |
123
+
124
+ ### `request_sandbox_access`
125
+
126
+ Request access to directories outside the project root. The user is prompted to approve or deny the request.
127
+
128
+ | Parameter | Type | Required | Description |
129
+ | --------- | -------- | -------- | --------------------------------------------- |
130
+ | `path` | `string` | Yes | Absolute path to the directory needing access |
131
+ | `reason` | `string` | Yes | Explanation of why access is needed |
132
+
133
+ ## Web tools
134
+
135
+ ### `web_search`
136
+
137
+ Search the web for documentation, error messages, package APIs, and other information.
138
+
139
+ This tool is available through two providers:
140
+
141
+ - **Tavily**: When the `TAVILY_API_KEY` environment variable is set.
142
+ - **Anthropic web search**: Built into Anthropic models, used as a fallback when no Tavily key is configured.
143
+
144
+ | Parameter | Type | Required | Description |
145
+ | --------------- | ----------------------- | -------- | --------------------------------------- |
146
+ | `query` | `string` | Yes | The search query |
147
+ | `searchDepth` | `"basic" \| "advanced"` | No | Search depth (default: `"basic"`) |
148
+ | `maxResults` | `number` | No | Maximum number of results (default: 10) |
149
+ | `includeImages` | `boolean` | No | Include related images (default: false) |
150
+
151
+ ### `web_extract`
152
+
153
+ Extract the full content of one or more web pages. Requires a Tavily API key (`TAVILY_API_KEY`).
154
+
155
+ | Parameter | Type | Required | Description |
156
+ | --------------- | ----------------------- | -------- | --------------------------------------------- |
157
+ | `urls` | `string[]` | Yes | URLs to extract content from (max 20) |
158
+ | `extractDepth` | `"basic" \| "advanced"` | No | Extraction depth (default: `"basic"`) |
159
+ | `includeImages` | `boolean` | No | Include extracted image URLs (default: false) |
160
+
161
+ ## Task management
162
+
163
+ ### `task_write`
164
+
165
+ Create or update a structured task list for tracking progress on complex, multi-step work.
166
+
167
+ - Each task has a `content` (imperative form), `status` (`pending`, `in_progress`, `completed`), and `activeForm` (present continuous form shown during execution).
168
+ - Pass the full task list each time — it replaces the previous list.
169
+ - Only one task should be `in_progress` at a time.
170
+
171
+ ### `task_check`
172
+
173
+ Check the completion status of the current task list. The agent uses this before finishing to verify all tasks are complete.
174
+
175
+ ## Interactive tools
176
+
177
+ ### `ask_user`
178
+
179
+ Ask the user a structured question. The agent uses this when it needs clarification, wants to validate assumptions, or needs the user to make a decision. Questions render inline in the conversation flow and support optional multiple-choice options.
180
+
181
+ ### `submit_plan`
182
+
183
+ Submit a structured implementation plan for user review and approval (Plan mode only). The plan renders inline, and the user can approve, reject, or request changes.
184
+
185
+ ## MCP tools
186
+
187
+ When [MCP servers](https://mastra.ai/docs/mastra-code/configuration) are configured, their tools are automatically available to the agent. MCP tools are namespaced as `serverName_toolName` to avoid collisions with built-in tools.
188
+
189
+ MCP tools fall under the `mcp` permission category. When YOLO mode is disabled, they require approval before execution.
190
+
191
+ ## Tool availability by mode
192
+
193
+ Not all tools are available in every mode:
194
+
195
+ | Tool | Build | Plan | Fast |
196
+ | ------------------------ | ----- | --------- | ---- |
197
+ | `view` | Yes | Yes | Yes |
198
+ | `search_content` | Yes | Yes | Yes |
199
+ | `find_files` | Yes | Yes | Yes |
200
+ | `execute_command` | Yes | Read-only | Yes |
201
+ | `string_replace_lsp` | Yes | No | Yes |
202
+ | `ast_smart_edit` | Yes | No | Yes |
203
+ | `write_file` | Yes | No | Yes |
204
+ | `web_search` | Yes | Yes | Yes |
205
+ | `web_extract` | Yes | Yes | Yes |
206
+ | `task_write` | Yes | Yes | Yes |
207
+ | `task_check` | Yes | Yes | Yes |
208
+ | `ask_user` | Yes | Yes | Yes |
209
+ | `submit_plan` | No | Yes | No |
210
+ | `request_sandbox_access` | Yes | Yes | Yes |
211
+
212
+ In Plan mode, `execute_command` is available but restricted to read-only commands (`git status`, `git log`, `git diff`, etc.).
213
+
214
+ ## Permission system
215
+
216
+ Tools are grouped into four categories, each with a configurable approval policy:
217
+
218
+ | Category | Tools | Default policy |
219
+ | ----------- | ------------------------------------------------------------------- | -------------- |
220
+ | **Read** | `view`, `search_content`, `find_files`, `web_search`, `web_extract` | `allow` |
221
+ | **Edit** | `string_replace_lsp`, `ast_smart_edit`, `write_file`, `subagent` | `ask` |
222
+ | **Execute** | `execute_command` | `ask` |
223
+ | **MCP** | All MCP server tools | `ask` |
224
+
225
+ When YOLO mode is enabled (the default), all categories are set to `allow`. When disabled, the agent prompts for approval based on the category policy.
226
+
227
+ You can configure per-category or per-tool overrides through `/settings`, and session-level grants let you approve a category once for the rest of the session.
228
+
229
+ > **Note:** Visit [Modes](https://mastra.ai/docs/mastra-code/modes) for details on how modes affect tool access and approval behavior.
@@ -0,0 +1,108 @@
1
+ # createMastraCode()
2
+
3
+ `createMastraCode()` is the main factory function that bootstraps the Mastra Code coding agent. It wires together project detection, storage, authentication, MCP servers, hooks, modes, subagents, and the [Harness](https://mastra.ai/reference/harness/harness-class) that drives the TUI or any other frontend.
4
+
5
+ ## Usage example
6
+
7
+ ```typescript
8
+ import { createMastraCode } from 'mastracode'
9
+
10
+ const { harness, mcpManager, hookManager, authStorage } = createMastraCode()
11
+ ```
12
+
13
+ Pass a config object to customize behavior:
14
+
15
+ ```typescript
16
+ import { createMastraCode } from 'mastracode'
17
+
18
+ const { harness } = createMastraCode({
19
+ cwd: '/path/to/project',
20
+ disableMcp: true,
21
+ initialState: { yolo: false },
22
+ })
23
+
24
+ await harness.init()
25
+ await harness.selectOrCreateThread()
26
+ await harness.sendMessage({ content: 'Explain the auth flow' })
27
+ ```
28
+
29
+ ## Parameters
30
+
31
+ `createMastraCode()` accepts an optional `MastraCodeConfig` object:
32
+
33
+ **cwd?:** (`string`): Working directory for project detection. Mastra Code uses this path to find the Git root, determine the project name, and scope threads. (Default: `process.cwd()`)
34
+
35
+ **modes?:** (`HarnessMode[]`): Override the default agent modes. Each mode defines an agent, a default model, and a display color. When omitted, Mastra Code ships with Build, Plan, and Fast modes.
36
+
37
+ **subagents?:** (`HarnessSubagent[]`): Override the default subagent definitions. When omitted, Mastra Code includes Explore (read-only codebase exploration), Plan (read-only analysis and planning), and Execute (task execution with write access).
38
+
39
+ **extraTools?:** (`Record<string, any>`): Additional tools merged into the dynamic tool set available to the agent.
40
+
41
+ **storage?:** (`{ url: string; authToken?: string }`): Custom LibSQL storage configuration. When omitted, Mastra Code auto-detects storage from environment variables, project config, global config, or falls back to a local SQLite database.
42
+
43
+ **initialState?:** (`Record<string, unknown>`): Initial harness state overrides. Merged with defaults like \`yolo\`, \`thinkingLevel\`, and project info.
44
+
45
+ **heartbeatHandlers?:** (`HeartbeatHandler[]`): Override the default periodic background tasks. The default handler syncs model gateways every 5 minutes.
46
+
47
+ **disableMcp?:** (`boolean`): Disable MCP server discovery and connection. (Default: `false`)
48
+
49
+ **disableHooks?:** (`boolean`): Disable the hooks system (lifecycle shell commands). (Default: `false`)
50
+
51
+ ## Return value
52
+
53
+ `createMastraCode()` returns an object with four properties:
54
+
55
+ **harness:** (`Harness`): The Harness instance that orchestrates modes, threads, state, memory, and agent interactions. This is the primary interface for sending messages, switching models, and managing conversations.
56
+
57
+ **mcpManager:** (`McpManager | undefined`): The MCP manager for connecting to external MCP servers. \`undefined\` when \`disableMcp\` is \`true\`.
58
+
59
+ **hookManager:** (`HookManager | undefined`): The hook manager for executing lifecycle shell commands. \`undefined\` when \`disableHooks\` is \`true\`.
60
+
61
+ **authStorage:** (`AuthStorage`): The authentication storage instance. Manages OAuth credentials for AI providers (Anthropic Claude Max, OpenAI Codex).
62
+
63
+ ## Default modes
64
+
65
+ When no `modes` are specified, Mastra Code creates three modes:
66
+
67
+ | Mode | Default model | Description |
68
+ | ------------------- | --------------------------- | ---------------------------------------------------------------------- |
69
+ | **Build** (default) | `anthropic/claude-opus-4-6` | Full tool access. Read, write, edit files, and execute commands. |
70
+ | **Plan** | `openai/gpt-5.2-codex` | Read-only mode. Explore the codebase and produce implementation plans. |
71
+ | **Fast** | `cerebras/zai-glm-4.7` | Quick answers and small edits with minimal overhead. |
72
+
73
+ ## Default subagents
74
+
75
+ When no `subagents` are specified, Mastra Code creates three subagent types:
76
+
77
+ | Subagent | Tools | Description |
78
+ | ----------- | -------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
79
+ | **Explore** | `view`, `search_content`, `find_files` | Read-only codebase exploration for answering questions about code structure. |
80
+ | **Plan** | `view`, `search_content`, `find_files` | Read-only analysis and planning with structured plan output. |
81
+ | **Execute** | All read tools + `string_replace_lsp`, `write_file`, `execute_command`, `task_write`, `task_check` | Focused task execution with full write capabilities. |
82
+
83
+ ## Project detection
84
+
85
+ Mastra Code automatically detects project identity from the working directory:
86
+
87
+ 1. **Git remote URL** — if available, normalizes SSH and HTTPS URLs to create a stable identifier shared across clones and worktrees.
88
+ 2. **Absolute path** — falls back to the filesystem path when Git isn't available.
89
+
90
+ The resulting `resourceId` scopes threads to the project, so conversations are shared across clones, worktrees, and SSH/HTTPS URLs of the same repository.
91
+
92
+ ## Storage resolution
93
+
94
+ Storage configuration is resolved in priority order:
95
+
96
+ 1. `storage` parameter passed to `createMastraCode()`
97
+ 2. `MASTRA_DB_URL` and `MASTRA_DB_AUTH_TOKEN` environment variables
98
+ 3. Project config at `.mastracode/database.json`
99
+ 4. Global config at `~/.mastracode/database.json`
100
+ 5. Local SQLite database at the platform-specific app data directory
101
+
102
+ > **Note:** The returned `harness` object is a full [Harness](https://mastra.ai/reference/harness/harness-class) instance with methods for sending messages, switching modes and models, managing threads, and subscribing to events.
103
+
104
+ ## Related
105
+
106
+ - [Mastra Code overview](https://mastra.ai/docs/mastra-code/overview)
107
+ - [Harness Class reference](https://mastra.ai/reference/harness/harness-class)
108
+ - [Mastra Code configuration](https://mastra.ai/docs/mastra-code/configuration)
package/dist/index.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkVZFPT5N7_cjs = require('./chunk-VZFPT5N7.cjs');
3
+ var chunkZ4QRXVST_cjs = require('./chunk-Z4QRXVST.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createMastraCode", {
8
8
  enumerable: true,
9
- get: function () { return chunkVZFPT5N7_cjs.createMastraCode; }
9
+ get: function () { return chunkZ4QRXVST_cjs.createMastraCode; }
10
10
  });
11
11
  //# sourceMappingURL=index.cjs.map
12
12
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { createMastraCode } from './chunk-HHX6BKLR.js';
1
+ export { createMastraCode } from './chunk-M5LKPQB4.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -40,6 +40,8 @@ export interface OnboardingOptions {
40
40
  modePacks: ModePack[];
41
41
  /** Available OM packs (pre-filtered by provider access). */
42
42
  omPacks: OMPack[];
43
+ /** Whether the user has any provider access (API key or OAuth) — even for providers without a built-in pack. */
44
+ hasProviderAccess: boolean;
43
45
  /** Previously saved choices — used to highlight current selections when re-running. */
44
46
  previous?: PreviousSetupChoices;
45
47
  /** Called when the wizard completes. */
@@ -74,12 +76,15 @@ export declare class OnboardingInlineComponent extends Container implements Focu
74
76
  updateModePacks(packs: ModePack[]): void;
75
77
  /** Refresh the available OM packs (e.g. after a login grants new provider access). */
76
78
  updateOmPacks(packs: OMPack[]): void;
79
+ /** Update whether the user has any provider access (e.g. after a login). */
80
+ updateHasProviderAccess(hasAccess: boolean): void;
77
81
  private clearStep;
78
82
  private renderStep;
79
83
  private stepCount;
80
84
  private makeBox;
81
85
  private renderWelcome;
82
86
  private renderAuth;
87
+ private renderClaudeMaxWarning;
83
88
  /** Text component showing details for the currently highlighted mode pack. */
84
89
  private modePackDetail?;
85
90
  private renderModePack;
@@ -1 +1 @@
1
- {"version":3,"file":"onboarding-inline.d.ts","sourceRoot":"","sources":["../../src/onboarding/onboarding-inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAO,SAAS,EAA4B,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAc,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAGvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAMnD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAA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AiDN,eAAe;IA0B7B,OAAO,CAAC,UAAU;IA8ClB,OAAO,CAAC,UAAU;IAiClB,OAAO,CAAC,YAAY;IAYpB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAQhC"}
@@ -44,6 +44,8 @@ export interface GlobalSettings {
44
44
  version: number;
45
45
  modePackId: string | null;
46
46
  omPackId: string | null;
47
+ /** ISO timestamp when the user acknowledged the Claude Max OAuth ToS warning. */
48
+ claudeMaxOAuthWarningAcknowledgedAt: string | null;
47
49
  };
48
50
  models: {
49
51
  /**
@@ -70,6 +72,7 @@ export interface GlobalSettings {
70
72
  };
71
73
  preferences: {
72
74
  yolo: boolean | null;
75
+ theme: 'auto' | 'dark' | 'light';
73
76
  };
74
77
  storage: StorageSettings;
75
78
  customModelPacks: CustomPack[];
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/onboarding/settings.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,yEAAyE;AACzE,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,4BAA4B;AAC5B,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,IAAI,CAAC;AAE7C,wCAAwC;AACxC,MAAM,WAAW,qBAAqB;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,4CAA4C;AAC5C,MAAM,WAAW,iBAAiB;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CA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,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,gBAAgB,EAAE,eAI9B,CAAC;AA2BF,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAuFD,wBAAgB,YAAY,CAAC,QAAQ,GAAE,MAA0B,GAAG,cAAc,CA+BjF;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,cAAc,EACxB,YAAY,EAAE,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC,GAClE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAmBxB;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,cAAc,EACxB,cAAc,EAAE,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,GACrD,MAAM,GAAG,IAAI,CAWf;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,cAAc,EAAE,QAAQ,GAAE,MAA0B,GAAG,IAAI,CAMjG"}
@@ -17,6 +17,8 @@ export declare function getAuthStorage(): AuthStorage;
17
17
  * Set a custom AuthStorage instance (useful for TUI integration)
18
18
  */
19
19
  export declare function setAuthStorage(storage: AuthStorage): void;
20
+ /** Valid thinking level values. */
21
+ export type ThinkingLevel = 'off' | 'low' | 'medium' | 'high' | 'xhigh';
20
22
  /**
21
23
  * Creates an OpenAI model using ChatGPT OAuth authentication
22
24
  * Uses OAuth tokens from AuthStorage (auto-refreshes when needed)
@@ -24,5 +26,7 @@ export declare function setAuthStorage(storage: AuthStorage): void;
24
26
  * IMPORTANT: This uses the Codex API endpoint, not the standard OpenAI API.
25
27
  * URLs are rewritten from /v1/responses or /chat/completions to the Codex endpoint.
26
28
  */
27
- export declare function openaiCodexProvider(modelId?: string): MastraModelConfig;
29
+ export declare function openaiCodexProvider(modelId?: string, options?: {
30
+ thinkingLevel?: ThinkingLevel;
31
+ }): MastraModelConfig;
28
32
  //# sourceMappingURL=openai-codex.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"openai-codex.d.ts","sourceRoot":"","sources":["../../src/providers/openai-codex.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG1D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAQjD;;GAEG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAK5C;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAEzD;AAmCD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,MAA4B,GAAG,iBAAiB,CAkG5F"}
1
+ {"version":3,"file":"openai-codex.d.ts","sourceRoot":"","sources":["../../src/providers/openai-codex.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG1D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAQjD;;GAEG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAK5C;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAEzD;AAOD,mCAAmC;AACnC,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AA6CxE;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,GAAE,MAA4B,EACrC,OAAO,CAAC,EAAE;IAAE,aAAa,CAAC,EAAE,aAAa,CAAA;CAAE,GAC1C,iBAAiB,CAwGnB"}
package/dist/schema.d.ts CHANGED
@@ -10,7 +10,13 @@ export declare const stateSchema: z.ZodObject<{
10
10
  reflectorModelId: z.ZodDefault<z.ZodString>;
11
11
  observationThreshold: z.ZodDefault<z.ZodNumber>;
12
12
  reflectionThreshold: z.ZodDefault<z.ZodNumber>;
13
- thinkingLevel: z.ZodDefault<z.ZodString>;
13
+ thinkingLevel: z.ZodDefault<z.ZodEnum<{
14
+ off: "off";
15
+ low: "low";
16
+ medium: "medium";
17
+ high: "high";
18
+ xhigh: "xhigh";
19
+ }>>;
14
20
  yolo: z.ZodDefault<z.ZodBoolean>;
15
21
  permissionRules: z.ZodDefault<z.ZodObject<{
16
22
  categories: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkDtB,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkDtB,CAAC"}
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ var chunkS5ZLN7DR_cjs = require('./chunk-S5ZLN7DR.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "AuthStorage", {
8
+ enumerable: true,
9
+ get: function () { return chunkS5ZLN7DR_cjs.AuthStorage; }
10
+ });
11
+ Object.defineProperty(exports, "PROVIDER_DEFAULT_MODELS", {
12
+ enumerable: true,
13
+ get: function () { return chunkS5ZLN7DR_cjs.PROVIDER_DEFAULT_MODELS; }
14
+ });
15
+ Object.defineProperty(exports, "getOAuthProvider", {
16
+ enumerable: true,
17
+ get: function () { return chunkS5ZLN7DR_cjs.getOAuthProvider; }
18
+ });
19
+ Object.defineProperty(exports, "getOAuthProviders", {
20
+ enumerable: true,
21
+ get: function () { return chunkS5ZLN7DR_cjs.getOAuthProviders; }
22
+ });
23
+ //# sourceMappingURL=storage-PO4VN5NF.cjs.map
24
+ //# sourceMappingURL=storage-PO4VN5NF.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"storage-JFFX7LJJ.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"storage-PO4VN5NF.cjs"}
@@ -0,0 +1,3 @@
1
+ export { AuthStorage, PROVIDER_DEFAULT_MODELS, getOAuthProvider, getOAuthProviders } from './chunk-SM3QCOA7.js';
2
+ //# sourceMappingURL=storage-PQOHJLBI.js.map
3
+ //# sourceMappingURL=storage-PQOHJLBI.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"storage-52Y5MKTG.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"storage-PQOHJLBI.js"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Claude Max OAuth warning prompt.
3
+ *
4
+ * Renders an inline question asking the user whether to proceed with
5
+ * Anthropic OAuth (grey-area ToS), with different options depending on
6
+ * whether we're in the login/onboarding flow or the startup check.
7
+ */
8
+ import type { TUIState } from './state.js';
9
+ export type ClaudeMaxWarningMode = 'login' | 'startup';
10
+ export type ClaudeMaxWarningResult = 'continue' | 'cancel' | 'remove';
11
+ /**
12
+ * Show the Claude Max OAuth warning inline and return the user's choice.
13
+ *
14
+ * - **login** mode: "Continue" / "Cancel"
15
+ * - **startup** mode: "Continue" / "Remove OAuth"
16
+ */
17
+ export declare function showClaudeMaxOAuthWarning(state: TUIState, mode: ClaudeMaxWarningMode): Promise<ClaudeMaxWarningResult>;
18
+ //# sourceMappingURL=claude-max-warning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claude-max-warning.d.ts","sourceRoot":"","sources":["../../src/tui/claude-max-warning.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,SAAS,CAAC;AACvD,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEtE;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,oBAAoB,GACzB,OAAO,CAAC,sBAAsB,CAAC,CA2CjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"command-dispatch.d.ts","sourceRoot":"","sources":["../../src/tui/command-dispatch.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;GAGG;AACH,wBAAsB,oBAAoB,CACxC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,MAAM,mBAAmB,GAClC,OAAO,CAAC,OAAO,CAAC,CA2GlB"}
1
+ {"version":3,"file":"command-dispatch.d.ts","sourceRoot":"","sources":["../../src/tui/command-dispatch.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;GAGG;AACH,wBAAsB,oBAAoB,CACxC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,MAAM,mBAAmB,GAClC,OAAO,CAAC,OAAO,CAAC,CA8GlB"}
@@ -24,4 +24,5 @@ export { handleSettingsCommand } from './settings.js';
24
24
  export { handleLoginCommand } from './login.js';
25
25
  export { handleReviewCommand } from './review.js';
26
26
  export { handleSetupCommand } from './setup.js';
27
+ export { handleThemeCommand } from './theme.js';
27
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,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cAAc,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/login.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAiEtD,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CA6D1G"}
1
+ {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/login.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AA4EtD,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CA6D1G"}
@@ -1 +1 @@
1
- {"version":3,"file":"models-pack.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/models-pack.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAyHtD,wBAAsB,uBAAuB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAwHrF"}
1
+ {"version":3,"file":"models-pack.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/models-pack.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAgItD,wBAAsB,uBAAuB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAwHrF"}
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/settings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0DnF"}
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/settings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2DnF"}
@@ -1 +1 @@
1
- {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/skills.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0CjF"}
1
+ {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/skills.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmDjF"}
@@ -0,0 +1,6 @@
1
+ import type { SlashCommandContext } from './types.js';
2
+ /**
3
+ * /theme [auto|dark|light] — show or change the color theme.
4
+ */
5
+ export declare function handleThemeCommand(ctx: SlashCommandContext, args: string[]): Promise<void>;
6
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/theme.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA2BhG"}
@@ -1,3 +1,3 @@
1
1
  import type { SlashCommandContext } from './types.js';
2
- export declare function handleThinkCommand(ctx: SlashCommandContext): Promise<void>;
2
+ export declare function handleThinkCommand(ctx: SlashCommandContext, args?: string[]): Promise<void>;
3
3
  //# sourceMappingURL=think.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"think.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/think.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAchF"}
1
+ {"version":3,"file":"think.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/think.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAqBtD,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,mBAAmB,EAAE,IAAI,GAAE,MAAM,EAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAoGrG"}
@@ -1 +1 @@
1
- {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/tui/components/banner.ts"],"names":[],"mappings":"AAuDA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAuBtE"}
1
+ {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/tui/components/banner.ts"],"names":[],"mappings":"AAuDA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAyBtE"}
@@ -1 +1 @@
1
- {"version":3,"file":"diff-output.d.ts","sourceRoot":"","sources":["../../../src/tui/components/diff-output.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAgB,MAAM,sBAAsB,CAAC;AAqD/D,qBAAa,mBAAoB,SAAQ,SAAS;gBACpC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;CAehD"}
1
+ {"version":3,"file":"diff-output.d.ts","sourceRoot":"","sources":["../../../src/tui/components/diff-output.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAgB,MAAM,sBAAsB,CAAC;AAkD/D,qBAAa,mBAAoB,SAAQ,SAAS;gBACpC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;CAiBhD"}
@@ -1 +1 @@
1
- {"version":3,"file":"help-overlay.d.ts","sourceRoot":"","sources":["../../../src/tui/components/help-overlay.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAEhF,MAAM,WAAW,eAAe;IAC9B,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,mBAAmB,EAAE,oBAAoB,EAAE,CAAC;CAC7C;AA6ED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,CAkB9D"}
1
+ {"version":3,"file":"help-overlay.d.ts","sourceRoot":"","sources":["../../../src/tui/components/help-overlay.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAEhF,MAAM,WAAW,eAAe;IAC9B,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,mBAAmB,EAAE,oBAAoB,EAAE,CAAC;CAC7C;AA8ED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,CAkB9D"}