@maincode-ai/matilda-code 0.21.11 → 0.21.13-nightly.20261026.e0eae1d8c

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 (200) hide show
  1. package/bundled/mainy/SKILL.md +0 -2
  2. package/bundled/mainy/docs/_meta.ts +0 -2
  3. package/bundled/mainy/docs/configuration/auth.md +5 -10
  4. package/bundled/mainy/docs/configuration/model-providers.md +31 -217
  5. package/bundled/mainy/docs/configuration/settings.md +48 -9
  6. package/bundled/mainy/docs/configuration/trusted-folders.md +12 -6
  7. package/bundled/mainy/docs/features/auto-mode.md +1 -1
  8. package/bundled/mainy/docs/features/channels/_meta.ts +0 -3
  9. package/bundled/mainy/docs/features/channels/overview.md +8 -16
  10. package/bundled/mainy/docs/features/commands.md +4 -4
  11. package/bundled/mainy/docs/features/hooks.md +9 -7
  12. package/bundled/mainy/docs/features/language.md +2 -29
  13. package/bundled/mainy/docs/features/sub-agents.md +1 -1
  14. package/bundled/mainy/docs/features/worktree.md +3 -5
  15. package/bundled/mainy/docs/integration-github-action.md +3 -3
  16. package/bundled/mainy/docs/matilda-serve.md +1 -1
  17. package/bundled/mainy/docs/quickstart.md +2 -2
  18. package/bundled/mainy/docs/support/troubleshooting.md +3 -10
  19. package/chunks/agent-4FTU3WN6.js +3 -0
  20. package/chunks/agent-headless-QJUVHPFC.js +3 -0
  21. package/chunks/{askUserQuestion-XWHJY3DM.js → askUserQuestion-QKX4NEFX.js} +1 -1
  22. package/chunks/{ca-EUJBUYX5.js → ca-C2V7I65K.js} +6 -6
  23. package/chunks/{chunk-T4P4KEDW.js → chunk-2ONZZ46N.js} +2 -2
  24. package/chunks/chunk-36K4HBVM.js +7 -0
  25. package/chunks/{chunk-EQGA7LH7.js → chunk-3B2HABK7.js} +1 -1
  26. package/chunks/{chunk-5427BPR2.js → chunk-5NMK4Y7C.js} +1 -1
  27. package/chunks/chunk-5YT4GCK7.js +14 -0
  28. package/chunks/{chunk-MH2P4YXC.js → chunk-62AFAL4I.js} +10 -10
  29. package/chunks/chunk-75KP2FVD.js +81 -0
  30. package/chunks/chunk-7ZODGQO6.js +4 -0
  31. package/chunks/chunk-BZB7HYRC.js +37 -0
  32. package/chunks/{chunk-WHG6N5X2.js → chunk-EXNHJQCD.js} +1 -1
  33. package/chunks/chunk-FCGYRGV4.js +9 -0
  34. package/chunks/chunk-G4YMVWG4.js +8 -0
  35. package/chunks/{chunk-4FVBPNTZ.js → chunk-HDARIAVM.js} +1 -1
  36. package/chunks/{chunk-4YVN5HXG.js → chunk-HM5LCKDB.js} +2 -2
  37. package/chunks/chunk-IIQ5YERM.js +120 -0
  38. package/chunks/chunk-JGJ7BVZN.js +101 -0
  39. package/chunks/{chunk-FFFZ2QMG.js → chunk-JIKQI4MZ.js} +1 -1
  40. package/chunks/{chunk-SPW5DXX4.js → chunk-LHDCAN7Z.js} +1 -1
  41. package/chunks/chunk-LZDHANXA.js +89 -0
  42. package/chunks/{chunk-ELH4YHJR.js → chunk-NOE4UNQN.js} +1 -1
  43. package/chunks/chunk-OEZS5R3S.js +207 -0
  44. package/chunks/{chunk-OOEH6ZSV.js → chunk-PTMCLADZ.js} +1 -1
  45. package/chunks/{chunk-NYEWHSBL.js → chunk-PYZNGIIR.js} +1 -1
  46. package/chunks/chunk-QJJTUDDA.js +56 -0
  47. package/chunks/{chunk-GO2GA2GY.js → chunk-R34HYLL4.js} +1 -1
  48. package/chunks/{chunk-Q55AVE2N.js → chunk-RK4LPGBV.js} +11 -11
  49. package/chunks/{chunk-JXUDKX6D.js → chunk-RYHMPK5G.js} +1 -1
  50. package/chunks/chunk-SR7ARGUY.js +13 -0
  51. package/chunks/chunk-SY6JRCN3.js +2612 -0
  52. package/chunks/chunk-TUKNB5CQ.js +33 -0
  53. package/chunks/{chunk-YMIF2DMT.js → chunk-TZ4FRU6B.js} +1 -1
  54. package/chunks/chunk-U7V7APDV.js +9 -0
  55. package/chunks/{chunk-SNLH42QJ.js → chunk-UVWZ44ZW.js} +1 -1
  56. package/chunks/{chunk-HYVP4472.js → chunk-V6UPUMP3.js} +1 -1
  57. package/chunks/{chunk-4CSSDBOS.js → chunk-VLDZBRTL.js} +10 -10
  58. package/chunks/{computer-use-SXP25RZQ.js → computer-use-OXAMR75N.js} +1 -1
  59. package/chunks/contextCommand-ERLW5VWL.js +3 -0
  60. package/chunks/{cron-create-2UI4AT4Q.js → cron-create-AUDQ6STP.js} +1 -1
  61. package/chunks/{cron-delete-ZB6BOTFF.js → cron-delete-P5HE3PDD.js} +1 -1
  62. package/chunks/{cron-list-YYAXNHB6.js → cron-list-NR5FZBK2.js} +1 -1
  63. package/chunks/{de-DNEPG7S7.js → de-KOUI2CEW.js} +6 -6
  64. package/chunks/{devtools-5JRKK3E7.js → devtools-G5DWLP2N.js} +1 -1
  65. package/chunks/dist-XXTQNTKQ.js +42 -0
  66. package/chunks/dist-ZFZZLIQU.js +3 -0
  67. package/chunks/edit-REFR5ROS.js +43 -0
  68. package/chunks/{en-NOD6KQNM.js → en-RMYRLXC2.js} +4 -4
  69. package/chunks/{enter-worktree-X47BSJLE.js → enter-worktree-WO3DT2G7.js} +1 -1
  70. package/chunks/{enterPlanMode-F22ZNTYJ.js → enterPlanMode-PLRHEU5A.js} +1 -1
  71. package/chunks/{exit-worktree-XY5UMDHX.js → exit-worktree-J5PW6DCV.js} +1 -1
  72. package/chunks/exitPlanMode-KXUPNLCJ.js +120 -0
  73. package/chunks/{fr-2OE5WLJ4.js → fr-R3QF3LA2.js} +5 -5
  74. package/chunks/glob-ZVTVRDQO.js +22 -0
  75. package/chunks/{goal-tools-6QTC3UI7.js → goal-tools-XVKQJL5I.js} +1 -1
  76. package/chunks/{grep-6TTPZ524.js → grep-R7CWUNNE.js} +1 -1
  77. package/chunks/{ja-3B6V5KS7.js → ja-A5OQLXUZ.js} +6 -6
  78. package/chunks/{keychain-token-storage-54BNK6VH.js → keychain-token-storage-IM4UB4P4.js} +1 -1
  79. package/chunks/{ls-YWZU3FYL.js → ls-DEAFYDVV.js} +1 -1
  80. package/chunks/{lsp-4CJDKEEC.js → lsp-DL7W47VY.js} +1 -1
  81. package/chunks/matildaAgentContentGenerator-57EIU5XE.js +8 -0
  82. package/chunks/mcp-client-X7LEGSP3.js +3 -0
  83. package/chunks/monitor-KPWTMH3V.js +32 -0
  84. package/chunks/{multipart-parser-JI75T2O5.js → multipart-parser-FKHYAVGR.js} +1 -1
  85. package/chunks/notebook-edit-3ZH5M2TC.js +17 -0
  86. package/chunks/openaiContentGenerator-6PXSD3T7.js +37 -0
  87. package/chunks/{pt-KP2JCPUY.js → pt-RG3S3KA7.js} +6 -6
  88. package/chunks/read-file-JNS7WRUP.js +3 -0
  89. package/chunks/ripGrep-ICJDGIIV.js +3 -0
  90. package/chunks/{ru-K7IQQKHC.js → ru-5S5HLRT7.js} +5 -5
  91. package/chunks/scheduler-QC2PPMFP.js +8 -0
  92. package/chunks/{send-message-OO2HAKCC.js → send-message-V2WYLN5X.js} +1 -1
  93. package/chunks/{serve-ZQX2WBLF.js → serve-NUVQULZJ.js} +59 -48
  94. package/chunks/shell-5LNI7URE.js +3 -0
  95. package/chunks/{skill-KDM3UUML.js → skill-QFATRHQW.js} +1 -1
  96. package/chunks/src-6UPZ7TVB.js +3 -0
  97. package/chunks/src-LZEU4AYF.js +5 -0
  98. package/chunks/{symbol-search-ALYOX5JN.js → symbol-search-WL6ZHUUN.js} +1 -1
  99. package/chunks/{syntheticOutput-UASKABJH.js → syntheticOutput-3KW6SQAF.js} +1 -1
  100. package/chunks/task-create-PNW5SN27.js +3 -0
  101. package/chunks/{task-detach-I67ZE5MX.js → task-detach-B7PDPFBA.js} +1 -1
  102. package/chunks/task-list-GGZATGK5.js +9 -0
  103. package/chunks/{task-stop-ERI5X4AO.js → task-stop-UKBBE2KG.js} +1 -1
  104. package/chunks/{task-update-CD3W556L.js → task-update-4RHVUBUV.js} +1 -1
  105. package/chunks/{team-create-F4KQRGMB.js → team-create-2TJC3X57.js} +1 -1
  106. package/chunks/team-delete-4UJ7SU65.js +8 -0
  107. package/chunks/todoWrite-NEBVKOSG.js +3 -0
  108. package/chunks/{tool-search-JFCD5W5M.js → tool-search-R5GS64YR.js} +1 -1
  109. package/chunks/tree-sitter-bash-2SWKO5B7.js +3 -0
  110. package/chunks/{web-fetch-REWGIRWQ.js → web-fetch-H3XJMAEF.js} +17 -17
  111. package/chunks/{web-search-OX2DPEVN.js → web-search-Q6RWPEIB.js} +1 -1
  112. package/chunks/{workflow-SEFYGBED.js → workflow-3A7KN3E3.js} +2 -2
  113. package/chunks/write-file-O7Q6SKZC.js +15 -0
  114. package/cli.js +509 -495
  115. package/locales/ca.js +2 -28
  116. package/locales/de.js +2 -28
  117. package/locales/en.js +2 -30
  118. package/locales/fr.js +2 -30
  119. package/locales/ja.js +2 -28
  120. package/locales/pt.js +2 -28
  121. package/locales/ru.js +2 -28
  122. package/package.json +2 -2
  123. package/sandbox-macos-permissive-closed.sb +0 -1
  124. package/sandbox-macos-permissive-open.sb +0 -1
  125. package/sandbox-macos-permissive-proxied.sb +0 -1
  126. package/sandbox-macos-restrictive-closed.sb +3 -1
  127. package/sandbox-macos-restrictive-open.sb +3 -1
  128. package/sandbox-macos-restrictive-proxied.sb +3 -1
  129. package/bundled/mainy/docs/features/channels/dingtalk.md +0 -134
  130. package/bundled/mainy/docs/features/channels/feishu.md +0 -186
  131. package/bundled/mainy/docs/features/channels/weixin.md +0 -106
  132. package/bundled/mainy/docs/integration-jetbrains.md +0 -81
  133. package/bundled/mainy/docs/integration-zed.md +0 -72
  134. package/chunks/agent-ZFZ4HJQC.js +0 -3
  135. package/chunks/agent-headless-KH2BKLP7.js +0 -3
  136. package/chunks/anthropicContentGenerator-IYZILRDW.js +0 -39
  137. package/chunks/chunk-25NCTG5H.js +0 -184
  138. package/chunks/chunk-2HQMJ2IU.js +0 -8
  139. package/chunks/chunk-3YLXGE6T.js +0 -8
  140. package/chunks/chunk-4F4DA5UI.js +0 -8
  141. package/chunks/chunk-4J6DC24J.js +0 -59
  142. package/chunks/chunk-4Q2SNBUH.js +0 -18
  143. package/chunks/chunk-6GBNB5Z2.js +0 -3
  144. package/chunks/chunk-G7R2XEEF.js +0 -7
  145. package/chunks/chunk-GHBKFIHC.js +0 -35
  146. package/chunks/chunk-GUFIMKF5.js +0 -65
  147. package/chunks/chunk-HWOQNYAO.js +0 -27
  148. package/chunks/chunk-LJR4RZZ2.js +0 -3
  149. package/chunks/chunk-NIQK6NX3.js +0 -37
  150. package/chunks/chunk-NVM7W7TG.js +0 -101
  151. package/chunks/chunk-O44XK65C.js +0 -8
  152. package/chunks/chunk-OA56BXPD.js +0 -3
  153. package/chunks/chunk-ODZOYHIC.js +0 -8
  154. package/chunks/chunk-PA6532AY.js +0 -6
  155. package/chunks/chunk-QFNFLE2I.js +0 -2625
  156. package/chunks/chunk-QH7736R5.js +0 -8
  157. package/chunks/chunk-QN6WSWMM.js +0 -9
  158. package/chunks/chunk-QN6Y6NPA.js +0 -3
  159. package/chunks/chunk-RK2AKQAX.js +0 -39
  160. package/chunks/chunk-SDTWBD62.js +0 -8
  161. package/chunks/chunk-SUH3UUWZ.js +0 -25
  162. package/chunks/chunk-U347OO7S.js +0 -9
  163. package/chunks/chunk-UIRBHC5X.js +0 -3
  164. package/chunks/chunk-VI74YQQO.js +0 -8
  165. package/chunks/chunk-VYZOOSMP.js +0 -30
  166. package/chunks/chunk-W5CGKUM4.js +0 -15
  167. package/chunks/chunk-WRQLIPXW.js +0 -113
  168. package/chunks/chunk-WVY2P6WH.js +0 -26
  169. package/chunks/chunk-WZ75OGYY.js +0 -14
  170. package/chunks/chunk-XCFLI3OC.js +0 -9
  171. package/chunks/chunk-XMZIY7XX.js +0 -13
  172. package/chunks/contextCommand-3GN5CAOK.js +0 -3
  173. package/chunks/dist-7UYRLSLE.js +0 -3
  174. package/chunks/dist-ME6647DQ.js +0 -195
  175. package/chunks/dist-P6SLWL5V.js +0 -42
  176. package/chunks/dist-VG3ZDJ2A.js +0 -28
  177. package/chunks/dist-YTCHM57U.js +0 -23
  178. package/chunks/edit-KX6V4PH3.js +0 -39
  179. package/chunks/exitPlanMode-G3QLIWJ4.js +0 -90
  180. package/chunks/fileFromPath-7UCWPD4W.js +0 -3
  181. package/chunks/geminiContentGenerator-EQEGOXOV.js +0 -8
  182. package/chunks/glob-KSBEWI3E.js +0 -22
  183. package/chunks/matildaAgentContentGenerator-OV4U6DJD.js +0 -8
  184. package/chunks/matildaContentGenerator-ETIAWE22.js +0 -8
  185. package/chunks/matildaOAuth2-WOY7ZS43.js +0 -3
  186. package/chunks/monitor-F4K5HOZX.js +0 -32
  187. package/chunks/notebook-edit-TL7CI5EA.js +0 -17
  188. package/chunks/openaiContentGenerator-MGASUFQL.js +0 -3
  189. package/chunks/read-file-6EAPS2KG.js +0 -3
  190. package/chunks/ripGrep-K6SFFUIE.js +0 -3
  191. package/chunks/scheduler-TKWPD4LP.js +0 -8
  192. package/chunks/shell-AZRK5GIO.js +0 -3
  193. package/chunks/src-SGI6VLOS.js +0 -3
  194. package/chunks/src-WZTRMETQ.js +0 -5
  195. package/chunks/task-create-EBJD55TB.js +0 -3
  196. package/chunks/task-list-5BGX4G5N.js +0 -9
  197. package/chunks/team-delete-5U3GBFKJ.js +0 -8
  198. package/chunks/todoWrite-YGG6AZ3A.js +0 -3
  199. package/chunks/tree-sitter-bash-XNCMPQBK.js +0 -3
  200. package/chunks/write-file-UAGVBZMC.js +0 -15
@@ -1,18 +1,18 @@
1
1
  # Trusted Folders
2
2
 
3
- The Trusted Folders feature is a security setting that gives you control over which projects can use the full capabilities of the Matilda Code. It prevents potentially malicious code from running by asking you to approve a folder before the CLI loads any project-specific configurations from it.
3
+ The Trusted Folders feature is a security setting that gives you control over which projects can use the full capabilities of the Matilda Code. It asks you to approve a folder before the CLI admits its workspace settings and project hooks.
4
4
 
5
- ## Enabling the Feature
5
+ ## Default Policy
6
6
 
7
- The Trusted Folders feature is **disabled by default**. To use it, you must first enable it in your settings.
7
+ Folder trust is **enabled by default** for interactive CLI sessions. An unknown folder uses the existing trust dialog before its workspace settings and project hooks are admitted.
8
8
 
9
- Add the following to your user `settings.json` file:
9
+ To disable folder trust explicitly, add the following to your user `settings.json` file:
10
10
 
11
11
  ```json
12
12
  {
13
13
  "security": {
14
14
  "folderTrust": {
15
- "enabled": true
15
+ "enabled": false
16
16
  }
17
17
  }
18
18
  }
@@ -28,13 +28,15 @@ Once the feature is enabled, the first time you run the Matilda Code from a fold
28
28
 
29
29
  Your choice is saved in a central file (`~/.matilda/trustedFolders.json`), so you will only be asked once per folder.
30
30
 
31
+ Explicit headless requests, including `-p` and piped input, retain implicit consent for unknown folders. Desktop uses its approved workspace and additional-directory manifest. These runtime decisions do not rewrite saved trust rules, and explicit rejections still apply. Generic ACP requests do not receive blanket consent.
32
+
31
33
  ## Why Trust Matters: The Impact of an Untrusted Workspace
32
34
 
33
35
  When a folder is **untrusted**, the Matilda Code runs in a restricted "safe mode" to protect you. In this mode, the following features are disabled:
34
36
 
35
37
  1. **Workspace Settings are Ignored**: The CLI will **not** load the `.matilda/settings.json` file from the project. This prevents the loading of custom tools and other potentially dangerous configurations.
36
38
 
37
- 2. **Environment Variables are Ignored**: The CLI will **not** load any `.env` files from the project.
39
+ 2. **Project Environment Files Need Trust**: Unknown and rejected folders do not load project `.env` files. User-level environment files remain available.
38
40
 
39
41
  3. **Extension Management is Restricted**: You **cannot install, update, or uninstall** extensions.
40
42
 
@@ -44,6 +46,8 @@ When a folder is **untrusted**, the Matilda Code runs in a restricted "safe mode
44
46
 
45
47
  Granting trust to a folder unlocks the full functionality of the Matilda Code for that workspace.
46
48
 
49
+ Even in trusted folders, project `.env`, `.matilda/.env` and workspace `settings.env` cannot change process bootstrap or policy variables, including `NODE_OPTIONS`, `NODE_PATH`, `BASH_ENV`, `LD_PRELOAD`, `PATH`, storage locations, trust-file locations and Desktop directory consent. Ordinary variables, including gateway `*_BASE_URL` values, remain available. User-level files keep their initial loading behavior.
50
+
47
51
  ## Managing Your Trust Settings
48
52
 
49
53
  If you need to change a decision or see all your settings, you have a couple of options:
@@ -59,3 +63,5 @@ For advanced users, it's helpful to know the exact order of operations for how t
59
63
  1. **IDE Trust Signal**: If you are using the [IDE Integration](../ide-integration/ide-integration), the CLI first asks the IDE if the workspace is trusted. The IDE's response takes highest priority.
60
64
 
61
65
  2. **Local Trust File**: If the IDE is not connected, the CLI checks the central `~/.matilda/trustedFolders.json` file.
66
+
67
+ 3. **Runtime Consent**: If no saved decision exists, explicit headless use or Desktop's approved-directory manifest can grant trust for that runtime. Other unknown folders remain unresolved until the interactive choice.
@@ -173,7 +173,7 @@ ask you for explicit approval rather than route around the denial.
173
173
 
174
174
  Classifier reasons are produced by the LLM and are not translated. If you
175
175
  want non-English reasons, add a hint like
176
- `Respond reasons in Chinese` to `permissions.autoMode.environment`.
176
+ `Respond reasons in Japanese` to `permissions.autoMode.environment`.
177
177
 
178
178
  ## Fallback to manual approval
179
179
 
@@ -1,8 +1,5 @@
1
1
  export default {
2
2
  overview: 'Overview',
3
3
  telegram: 'Telegram',
4
- weixin: 'WeChat',
5
- dingtalk: 'DingTalk',
6
- feishu: 'Feishu',
7
4
  plugins: 'Plugins',
8
5
  };
@@ -1,6 +1,6 @@
1
1
  # Channels
2
2
 
3
- Channels let you interact with a Matilda Code agent from messaging platforms like Telegram, WeChat, or DingTalk, instead of the terminal. You send messages from your phone or desktop chat app, and the agent responds just like it would in the CLI.
3
+ Channels let you interact with a Matilda Code agent from messaging platforms like Telegram, instead of the terminal. You send messages from your phone or desktop chat app, and the agent responds just like it would in the CLI.
4
4
 
5
5
  ## How It Works
6
6
 
@@ -15,7 +15,7 @@ All channels share one agent process with isolated sessions per user. Each chann
15
15
 
16
16
  ## Quick Start
17
17
 
18
- 1. Set up a bot on your messaging platform (see channel-specific guides: [Telegram](./telegram), [WeChat](./weixin), [DingTalk](./dingtalk))
18
+ 1. Set up a bot on your messaging platform (see the [Telegram](./telegram) guide)
19
19
  2. Add the channel configuration to `~/.matilda/settings.json`
20
20
  3. Run `matilda channel start` to start all channels, or `matilda channel start <name>` for a single channel
21
21
 
@@ -49,10 +49,10 @@ Channels are configured under the `channels` key in `settings.json`. Each channe
49
49
 
50
50
  | Option | Required | Description |
51
51
  | ------------------------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
52
- | `type` | Yes | Channel type: `telegram`, `weixin`, `dingtalk`, or a custom type from an extension (see [Plugins](./plugins)) |
53
- | `token` | Telegram | Bot token. Supports `$ENV_VAR` syntax to read from environment variables. Not needed for WeChat or DingTalk |
54
- | `clientId` | DingTalk | DingTalk AppKey. Supports `$ENV_VAR` syntax |
55
- | `clientSecret` | DingTalk | DingTalk AppSecret. Supports `$ENV_VAR` syntax |
52
+ | `type` | Yes | Channel type: `telegram`, or a custom type from an extension (see [Plugins](./plugins)) |
53
+ | `token` | Telegram | Bot token. Supports `$ENV_VAR` syntax to read from environment variables |
54
+ | `clientId` | No | Client ID, for extension channels that need one. Supports `$ENV_VAR` syntax |
55
+ | `clientSecret` | No | Client secret, for extension channels that need one. Supports `$ENV_VAR` syntax |
56
56
  | `model` | No | Model to use for this channel (e.g., `matilda3.5-plus`). Overrides the default model. Useful for multimodal models that support image input |
57
57
  | `senderPolicy` | No | Who can talk to the bot: `allowlist` (default), `open`, or `pairing` |
58
58
  | `allowedUsers` | No | List of user IDs allowed to use the bot (used by `allowlist` and `pairing` policies) |
@@ -215,14 +215,6 @@ Send a document (PDF, code file, text file, etc.) to the bot. The file is downlo
215
215
 
216
216
  Files work with any model — no multimodal support required.
217
217
 
218
- ### Platform differences
219
-
220
- | Feature | Telegram | WeChat | DingTalk |
221
- | -------- | -------------------------------------------- | -------------------------------- | --------------------------------------------- |
222
- | Images | Direct download via Bot API | CDN download with AES decryption | downloadCode API (two-step) |
223
- | Files | Direct download via Bot API (20MB limit) | CDN download with AES decryption | downloadCode API (two-step) |
224
- | Captions | Photo/file captions included as message text | Not applicable | Rich text: mixed text + images in one message |
225
-
226
218
  ## Dispatch Modes
227
219
 
228
220
  Controls what happens when you send a new message while the bot is still processing a previous one.
@@ -292,7 +284,7 @@ Channels support slash commands. These are handled locally (no agent round-trip)
292
284
 
293
285
  All other slash commands (e.g., `/compress`, `/summary`) are forwarded to the agent.
294
286
 
295
- These commands work on all channel types (Telegram, WeChat, DingTalk).
287
+ These commands work on all channel types.
296
288
 
297
289
  ## Running
298
290
 
@@ -314,7 +306,7 @@ The bot runs in the foreground. Press `Ctrl+C` to stop, or use `matilda channel
314
306
 
315
307
  ### Multi-Channel Mode
316
308
 
317
- When you run `matilda channel start` without a name, all channels defined in `settings.json` start together sharing a single agent process. Each channel maintains its own sessions — a Telegram user and a WeChat user get separate conversations, even though they share the same agent.
309
+ When you run `matilda channel start` without a name, all channels defined in `settings.json` start together sharing a single agent process. Each channel maintains its own sessions, so users on different channels get separate conversations, even though they share the same agent.
318
310
 
319
311
  Each channel uses its own `cwd` from its config, so different channels can work on different projects simultaneously.
320
312
 
@@ -59,11 +59,11 @@ Commands specifically for controlling interface and output language.
59
59
  | Command | Description | Usage Examples |
60
60
  | --------------------- | -------------------------------- | -------------------------- |
61
61
  | `/language` | View or change language settings | `/language` |
62
- | → `ui [language]` | Set UI interface language | `/language ui zh-CN` |
63
- | → `output [language]` | Set LLM output language | `/language output Chinese` |
62
+ | → `ui [language]` | Set UI interface language | `/language ui de-DE` |
63
+ | → `output [language]` | Set LLM output language | `/language output English` |
64
64
 
65
- - Available built-in UI languages: `zh-CN` (Simplified Chinese), `en-US` (English), `ru-RU` (Russian), `de-DE` (German), `ja-JP` (Japanese), `pt-BR` (Portuguese - Brazil), `fr-FR` (French), `ca-ES` (Catalan)
66
- - Output language examples: `Chinese`, `English`, `Japanese`, etc.
65
+ - Available built-in UI languages: `en-US` (English), `ru-RU` (Russian), `de-DE` (German), `ja-JP` (Japanese), `pt-BR` (Portuguese - Brazil), `fr-FR` (French), `ca-ES` (Catalan)
66
+ - Output language examples: `English`, `Japanese`, `German`, etc.
67
67
 
68
68
  ### 1.4 Tool and Model Management
69
69
 
@@ -51,12 +51,14 @@ Command hooks execute commands via child processes. Input JSON is passed through
51
51
  | `command` | `string` | Yes | Command to execute |
52
52
  | `name` | `string` | No | Hook name (for logging) |
53
53
  | `description` | `string` | No | Hook description |
54
- | `timeout` | `number` | No | Timeout in milliseconds, default 60000 |
54
+ | `timeout` | `number` | No | Timeout in seconds, default 60 |
55
55
  | `async` | `boolean` | No | Whether to run asynchronously in background |
56
56
  | `env` | `Record<string, string>` | No | Environment variables |
57
57
  | `shell` | `"bash" \| "powershell"` | No | Shell to use |
58
58
  | `statusMessage` | `string` | No | Status message displayed during execution |
59
59
 
60
+ `timeout` is in seconds for command, HTTP and prompt hooks, as in Claude Code; SDK-registered function hooks keep milliseconds. Earlier versions read command hook timeouts as milliseconds, so rewrite any such value in seconds, for example `10000` as `10`; otherwise it is read as 10000 seconds. A command hook `timeout` that is not a positive number, such as `"30s"`, is ignored and the 60 second default applies, and one longer than about 24.8 days, the longest a timer supports, is capped there.
61
+
60
62
  **Example:**
61
63
 
62
64
  ```json
@@ -70,7 +72,7 @@ Command hooks execute commands via child processes. Input JSON is passed through
70
72
  "type": "command",
71
73
  "command": "$MATILDA_PROJECT_DIR/.matilda/hooks/security-check.sh",
72
74
  "name": "security-check",
73
- "timeout": 10000
75
+ "timeout": 10
74
76
  }
75
77
  ]
76
78
  }
@@ -942,7 +944,7 @@ exit 0
942
944
  "type": "command",
943
945
  "command": "$HOME/.matilda/hooks/todo-validator.sh",
944
946
  "name": "todo-validator",
945
- "timeout": 5000
947
+ "timeout": 5
946
948
  }
947
949
  ]
948
950
  }
@@ -1036,7 +1038,7 @@ exit 0
1036
1038
  "type": "command",
1037
1039
  "command": "$HOME/.matilda/hooks/todo-completion-validator.sh",
1038
1040
  "name": "completion-validator",
1039
- "timeout": 5000
1041
+ "timeout": 5
1040
1042
  }
1041
1043
  ]
1042
1044
  }
@@ -1069,7 +1071,7 @@ Hooks are configured in Matilda Code settings, typically in `.matilda/settings.j
1069
1071
  "command": "/path/to/security-check.sh",
1070
1072
  "name": "security-check",
1071
1073
  "description": "Run security checks before tool execution",
1072
- "timeout": 30000
1074
+ "timeout": 30
1073
1075
  }
1074
1076
  ]
1075
1077
  }
@@ -1120,7 +1122,7 @@ Only `command` type supports asynchronous execution. Setting `"async": true` run
1120
1122
  "type": "command",
1121
1123
  "command": "$MATILDA_PROJECT_DIR/.matilda/hooks/run-tests-async.sh",
1122
1124
  "async": true,
1123
- "timeout": 300000
1125
+ "timeout": 300
1124
1126
  }
1125
1127
  ]
1126
1128
  }
@@ -1206,7 +1208,7 @@ Configure in `.matilda/settings.json`:
1206
1208
  "command": "${SECURITY_CHECK_SCRIPT}",
1207
1209
  "name": "security-checker",
1208
1210
  "description": "Security validation for bash commands",
1209
- "timeout": 10000
1211
+ "timeout": 10
1210
1212
  }
1211
1213
  ]
1212
1214
  }
@@ -21,7 +21,6 @@ This is the CLI’s UI localization layer (i18n/l10n): it controls the language
21
21
  Use the `/language ui` command:
22
22
 
23
23
  ```bash
24
- /language ui zh-CN # Chinese
25
24
  /language ui en-US # English
26
25
  /language ui ru-RU # Russian
27
26
  /language ui de-DE # German
@@ -34,7 +33,6 @@ Use the `/language ui` command:
34
33
  Aliases are also supported:
35
34
 
36
35
  ```bash
37
- /language ui zh # Chinese
38
36
  /language ui en # English
39
37
  /language ui ru # Russian
40
38
  /language ui de # German
@@ -67,7 +65,6 @@ The LLM output language is controlled by a rule file at `~/.matilda/output-langu
67
65
 
68
66
  On first startup, if no `output-language.md` file exists, Matilda Code automatically creates one based on your system locale. For example:
69
67
 
70
- - System locale `zh` creates a rule for Chinese responses
71
68
  - System locale `en` creates a rule for English responses
72
69
  - System locale `ru` creates a rule for Russian responses
73
70
  - System locale `de` creates a rule for German responses
@@ -81,13 +78,12 @@ On first startup, if no `output-language.md` file exists, Matilda Code automatic
81
78
  Use `/language output <language>` to change:
82
79
 
83
80
  ```bash
84
- /language output Chinese
85
81
  /language output English
86
82
  /language output Japanese
87
83
  /language output German
88
84
  ```
89
85
 
90
- Any language name works. The LLM will be instructed to respond in that language.
86
+ The LLM will be instructed to respond in that language.
91
87
 
92
88
  > [!note]
93
89
  >
@@ -110,7 +106,7 @@ Any language name works. The LLM will be instructed to respond in that language.
110
106
  ### Via Environment Variable
111
107
 
112
108
  ```bash
113
- export MATILDA_CODE_LANG=zh
109
+ export MATILDA_CODE_LANG=de
114
110
  ```
115
111
 
116
112
  This influences auto-detection on first startup (if you haven’t set a UI language and no `output-language.md` file exists yet).
@@ -129,29 +125,6 @@ User directory takes precedence over built-in translations.
129
125
  > Contributions are welcome! If you’d like to improve built-in translations or add new languages.
130
126
  > For a concrete example, see [PR #1238: feat(i18n): add Russian language support](https://github.com/MaincodeHQ/matilda-code/pull/1238).
131
127
 
132
- ### Maintaining `zh-TW` (Traditional Chinese for Taiwan)
133
-
134
- `zh-TW` is **not** an automatic OpenCC s2t conversion of `zh.js` — it is a hand-maintained Taiwan-vocabulary translation. When adding or updating keys, please follow the conventions below.
135
-
136
- The "CI enforced?" column indicates whether `npm run check-i18n` will fail the build on a violation. Rows marked **No** are style guidance enforced by review only — typically because the offending form has a legitimate non-UI meaning (`文件` can mean "document", `打開` is colloquially fine in Taiwan).
137
-
138
- | Avoid | Use instead | CI enforced? | Reason |
139
- | --------------------- | --------------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
140
- | 文件 (file) | 檔案 | No | Taiwan term for filesystem files (but `文件` can legitimately mean "document") |
141
- | 服務器 / 服务器 | 伺服器 | Yes | Taiwan term for "server" |
142
- | 菜單 / 菜单 | 選單 | Yes | Taiwan term for "menu" |
143
- | 鏈接 / 链接 | 連結 | Yes | Taiwan term for "link" (bare `鏈` is fine — e.g. 區塊鏈) |
144
- | 打開 | 開啟 | No | Taiwan-preferred verb for "open" (UI); `打開` is colloquially common |
145
- | 爲 / 啓 / 曆史 / 鏈接 | 為 / 啟 / 歷史 / 連結 | Yes | Variant Traditional forms from raw OpenCC s2t. Note: `曆` is context-dependent and correct in calendar terms (日曆, 農曆, 西曆); CI only flags the bigram `曆史`, not bare `曆`. |
146
-
147
- If you are not a Traditional Chinese speaker and need to bootstrap a value, **do not paste raw OpenCC `s2t` output**: the default s2t profile emits variant Traditional characters (e.g. 爲, 啓) that Taiwan does not use, and never rewrites Mainland-Chinese vocabulary (服務器, 菜單). Prefer `s2twp.json` (Simplified → Taiwan with phrase mapping) as a starting point and then ask a Taiwan-Chinese speaker to review.
148
-
149
- The `check-i18n` script (run in CI via `npm run check-i18n`) will fail the build if any of the CI-enforced substrings above end up in a `zh-TW` value. See `scripts/check-i18n.ts → ZH_TW_FORBIDDEN_PATTERNS` for the full list. If a translation legitimately needs to contain a CI-forbidden substring, add its key to `ZH_TW_ALLOWED_EXCEPTIONS` in the same file with a brief justification.
150
-
151
- > [!note]
152
- >
153
- > The check uses plain substring matching, which does not understand Chinese word boundaries. A bigram pattern can therefore false-positive across compound-word boundaries — for example, `區塊鏈接口` (= `區塊鏈` + `接口`) contains the substring `鏈接` even though neither word is incorrect. If you hit a surprising CI failure of this kind, add the translation key to `ZH_TW_ALLOWED_EXCEPTIONS` rather than removing the pattern.
154
-
155
128
  ### Language Pack Format
156
129
 
157
130
  ```javascript
@@ -189,7 +189,7 @@ tools:
189
189
 
190
190
  The `fast` selector uses the same `fastModel` setting configured in
191
191
  `settings.json` or with `/model --fast`. That setting may itself refer to a
192
- model under another configured auth type, such as `openai:deepseek-v4-flash`.
192
+ model under another configured auth type, such as `openai:gpt-4o-mini`.
193
193
  When the selector resolves to another auth type, Matilda Code creates a dedicated
194
194
  runtime provider for that subagent request and sends the provider only the bare
195
195
  model ID.
@@ -36,7 +36,7 @@ matilda --resume <session-id> --worktree=my-feature
36
36
 
37
37
  `process.cwd()` and the model's workspace are switched to the worktree before the first turn runs. Exit with `Ctrl+C` twice and the [Exit Dialog](#exit-dialog-ctrlc--ctrld) prompts to keep or remove the worktree.
38
38
 
39
- The `--worktree` flag cannot be combined with `--acp`/`--experimental-acp` — for ACP hosts (like Zed), pass the worktree path as the `cwd` of the `loadSession`/`newSession` request instead.
39
+ The `--worktree` flag cannot be combined with `--acp`/`--experimental-acp`. For ACP hosts (like the VS Code companion), pass the worktree path as the `cwd` of the `loadSession`/`newSession` request instead.
40
40
 
41
41
  ### Or ask mid-session
42
42
 
@@ -148,7 +148,7 @@ The active worktree binding is persisted to a sidecar file alongside your sessio
148
148
  <chatsDir>/<sessionId>.worktree.json
149
149
  ```
150
150
 
151
- When you launch the CLI with `--resume <sessionId>` (or pick the session from `/resume`), three things happen consistently across **interactive TUI**, **headless `-p`**, and **ACP/Zed** modes:
151
+ When you launch the CLI with `--resume <sessionId>` (or pick the session from `/resume`), three things happen consistently across **interactive TUI**, **headless `-p`**, and **ACP** modes:
152
152
 
153
153
  1. The sidecar is loaded and the worktree directory is verified to still exist on disk.
154
154
  2. If alive, the model receives a one-shot reminder on its very next prompt:
@@ -163,7 +163,7 @@ Each mode chooses its own injection mechanism, but the user-visible behavior is
163
163
  | ----------------- | ------------------------------------------------------------------------------------------------------ |
164
164
  | Interactive (TUI) | `INFO` history item + system-reminder prefix on the next user prompt. |
165
165
  | Headless (`-p`) | `<system-reminder>` prefix on the prompt + `worktree_restored` JSON system event in the output stream. |
166
- | ACP (e.g. Zed) | Pending notice attached to the next `prompt()` call. |
166
+ | ACP | Pending notice attached to the next `prompt()` call. |
167
167
 
168
168
  The model is **not** automatically `chdir`'d into the worktree — the reminder is what keeps it routing edits through the worktree path.
169
169
 
@@ -328,8 +328,6 @@ The following items are intentionally not implemented in the current phase:
328
328
  - **Mid-session `enter_worktree` does NOT switch `process.cwd()` or `Config.targetDir`.** That tool uses the model-context-only convention (see [Sub-Agents](./sub-agents.md)). Only the startup `--worktree` flag actually switches the process working directory.
329
329
  - **Relative paths in other arg fields are resolved BEFORE the worktree chdir.** Path-taking flags (`--mcp-config`, `--openai-logging-dir`, `--json-file`, `--input-file`, `--telemetry-outfile`, `--include-directories`) are normalized to absolute paths against the launch cwd when `--worktree` is set. Other path-shaped argv fields not in this list still resolve against the worktree cwd — use absolute paths to be safe.
330
330
 
331
- Track the roadmap in `docs/design/worktree.md`.
332
-
333
331
  ## Troubleshooting
334
332
 
335
333
  **The Footer shows no worktree indicator even though I just created one.**
@@ -21,7 +21,7 @@ Get started with Matilda Code CLI in your repository in just a few minutes:
21
21
 
22
22
  ### 1. Get a Matilda API Key
23
23
 
24
- Obtain your API key from [Matilda-compatible](https://help.matilda.com/zh/model-studio/matilda-code) (Matilda's AI platform)
24
+ Get a Matilda API token from the [Matilda external API guide][Matilda external API].
25
25
 
26
26
  ### 2. Add it as a GitHub Secret
27
27
 
@@ -175,7 +175,7 @@ You can set the following secrets in your repository:
175
175
 
176
176
  | Name | Description | Required | When Required |
177
177
  | ----------------- | --------------------------------------------- | -------- | --------------------------------------------- |
178
- | `MATILDA_API_KEY` | Your Matilda API key from Matilda-compatible. | Yes | Required for all workflows that call Matilda. |
178
+ | `MATILDA_API_KEY` | Your Matilda API token. | Yes | Required for all workflows that call Matilda. |
179
179
  | `APP_PRIVATE_KEY` | Private key for your GitHub App (PEM format). | No | Using a custom GitHub App. |
180
180
 
181
181
  To add a secret:
@@ -234,7 +234,7 @@ Contributions are welcome! Check out the Matilda Code CLI **Contributing Guide**
234
234
 
235
235
  [secrets]: https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions
236
236
  [Matilda Code]: https://github.com/MaincodeHQ/matilda-code
237
- [Matilda-compatible]: https://matilda.maincode.help/welcome/external-api
237
+ [Matilda external API]: https://matilda.maincode.help/welcome/external-api
238
238
  [Matilda Code CLI]: https://github.com/MaincodeHQ/matilda-code-action/
239
239
  [variables]: https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/use-variables#creating-configuration-variables-for-a-repository
240
240
  [GitHub CLI]: https://docs.github.com/en/github-cli/github-cli
@@ -497,7 +497,7 @@ const result = await flow.awaitCompletion({ signal: abortCtrl.signal });
497
497
 
498
498
  **`--require-auth` and dev convenience.** The device-flow routes use the strict mutation gate (PR 15), which means a token-less loopback default returns `401 token_required`. Locally, the simplest way around this during development is `matilda serve --token=dev-token`; you don't need `--require-auth` unless you're hardening the loopback default.
499
499
 
500
- **Cross-daemon limitation.** `oauth_creds.json` is daemon-shared (`~/.matilda/oauth_creds.json`), so a successful login in daemon A is automatically picked up by daemon B's next token refresh — but daemon B's SDK clients won't receive the `auth_device_flow_authorized` event (events are per-daemon).
500
+ **Cross-daemon limitation.** The account is stored in `~/.matilda/matilda-auth.json`, which every daemon on the machine shares, so a sign-in through daemon A is picked up by daemon B's sessions. Daemon B's SDK clients won't receive the `auth_device_flow_authorized` event, though: events are per-daemon.
501
501
 
502
502
  **Cross-client take-over.** Two SDK clients on the same daemon that both `POST /workspace/auth/device-flow` for the same provider get the per-provider singleton: the first call starts a fresh IdP request and returns `attached: false`; the second call returns the EXISTING in-flight entry with `attached: true`. The take-over is recorded on the audit trail (under the second client's `X-Matilda-Client-Id`) but does NOT emit a separate event — both clients eventually observe the SAME `auth_device_flow_authorized` once the user finishes the IdP page. If your UI distinguishes "I started this" from "someone else's flow I joined", branch on the `attached` field returned by `start()`.
503
503
 
@@ -185,8 +185,8 @@ Here are the most important commands for daily use:
185
185
  | `/clear` | Clear terminal screen content | `/clear` (shortcut: `Ctrl+L`) |
186
186
  | `/theme` | Change Matilda Code visual theme | `/theme` |
187
187
  | `/language` | View or change language settings | `/language` |
188
- | → `ui [language]` | Set UI interface language | `/language ui zh-CN` |
189
- | → `output [language]` | Set LLM output language | `/language output Chinese` |
188
+ | → `ui [language]` | Set UI interface language | `/language ui de-DE` |
189
+ | → `output [language]` | Set LLM output language | `/language output German` |
190
190
  | `/quit` | Exit Matilda Code immediately | `/quit` or `/exit` |
191
191
 
192
192
  See the [CLI reference](./features/commands) for a complete list of commands.
@@ -9,22 +9,15 @@ This guide provides solutions to common issues and debugging tips, including top
9
9
 
10
10
  ## Authentication or login errors
11
11
 
12
- - **Error: `Matilda OAuth free tier was discontinued on 2026-04-15`**
13
- - **Cause:** Matilda OAuth is no longer available as of April 15, 2026.
14
- - **Solution:** Switch to a different authentication method. Run `matilda` → `/auth` and choose one of:
12
+ - **Error: `Invalid auth method selected.`**
13
+ - **Cause:** `security.auth.selectedType` in `settings.json` names an auth type Matilda Code no longer supports, such as the retired `matilda-oauth`.
14
+ - **Solution:** Run `matilda auth login`, or `/auth` in an interactive session, and sign in with your Matilda account.
15
15
 
16
16
  - **Error: `UNABLE_TO_GET_ISSUER_CERT_LOCALLY`, `UNABLE_TO_VERIFY_LEAF_SIGNATURE`, or `unable to get local issuer certificate`**
17
17
  - **Cause:** You may be on a corporate network with a firewall that intercepts and inspects SSL/TLS traffic. This often requires a custom root CA certificate to be trusted by Node.js.
18
18
  - **Solution:** Set the `NODE_EXTRA_CA_CERTS` environment variable to the absolute path of your corporate root CA certificate file.
19
19
  - Example: `export NODE_EXTRA_CA_CERTS=/path/to/your/corporate-ca.crt`
20
20
 
21
- - **Error: `Device authorization flow failed: fetch failed`**
22
- - **Cause:** Node.js could not reach Matilda OAuth endpoints (often a proxy or SSL/TLS trust issue). When available, Matilda Code will also print the underlying error cause (for example: `UNABLE_TO_VERIFY_LEAF_SIGNATURE`). Note: this error is specific to the legacy Matilda OAuth flow.
23
- - **Solution:**
24
- - If you are still using Matilda OAuth, switch to API Key or Coding Plan via `/auth`.
25
- - If you are behind a proxy, set it via `matilda --proxy <url>` (or the `proxy` setting in `settings.json`).
26
- - If your network uses a corporate TLS inspection CA, set `NODE_EXTRA_CA_CERTS` as described above.
27
-
28
21
  - **Issue: Unable to display UI after authentication failure**
29
22
  - **Cause:** If authentication fails after selecting an authentication type, the `security.auth.selectedType` setting may be persisted in `settings.json`. On restart, the CLI may get stuck trying to authenticate with the failed auth type and fail to display the UI.
30
23
  - **Solution:** Clear the `security.auth.selectedType` configuration item in your `settings.json` file:
@@ -0,0 +1,3 @@
1
+ // Force strict mode and setup for ESM
2
+ "use strict";
3
+ import{Fg as a,Gg as b,Hg as c,Ig as d,Jg as e,Kg as f}from"./chunk-SY6JRCN3.js";import"./chunk-M53RP3YP.js";import"./chunk-FCGYRGV4.js";import"./chunk-G4YMVWG4.js";import"./chunk-5YT4GCK7.js";import"./chunk-MTMU7JYZ.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-PYZNGIIR.js";import"./chunk-QJJTUDDA.js";import"./chunk-5NMK4Y7C.js";import"./chunk-47XR7IMP.js";import"./chunk-UVWZ44ZW.js";import"./chunk-QKYGQLWC.js";import"./chunk-LHDCAN7Z.js";import"./chunk-V6UPUMP3.js";import"./chunk-RNKDFE2S.js";import"./chunk-VLDZBRTL.js";import"./chunk-RYHMPK5G.js";import"./chunk-JIKQI4MZ.js";import"./chunk-RK4LPGBV.js";import"./chunk-75KP2FVD.js";import"./chunk-7ZODGQO6.js";import"./chunk-TISQNFB5.js";import"./chunk-IIQ5YERM.js";import"./chunk-DC7LAFZZ.js";import"./chunk-LZDHANXA.js";import"./chunk-U7V7APDV.js";import"./chunk-SR7ARGUY.js";import"./chunk-OEZS5R3S.js";import"./chunk-NOE4UNQN.js";import"./chunk-R34HYLL4.js";import"./chunk-EXNHJQCD.js";import"./chunk-2ONZZ46N.js";import"./chunk-62AFAL4I.js";import"./chunk-36K4HBVM.js";import"./chunk-FWDMPRKU.js";import"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";export{f as AgentTool,b as TOOL_REGISTRY_REBUILT,e as createApprovalModeOverride,c as hasRebuiltToolRegistry,d as rebuildToolRegistryOnOverride,a as resolveSubagentApprovalMode};
@@ -0,0 +1,3 @@
1
+ // Force strict mode and setup for ESM
2
+ "use strict";
3
+ import{dg as a,eg as b,fg as c}from"./chunk-SY6JRCN3.js";import"./chunk-M53RP3YP.js";import"./chunk-FCGYRGV4.js";import"./chunk-G4YMVWG4.js";import"./chunk-5YT4GCK7.js";import"./chunk-MTMU7JYZ.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-PYZNGIIR.js";import"./chunk-QJJTUDDA.js";import"./chunk-5NMK4Y7C.js";import"./chunk-47XR7IMP.js";import"./chunk-UVWZ44ZW.js";import"./chunk-QKYGQLWC.js";import"./chunk-LHDCAN7Z.js";import"./chunk-V6UPUMP3.js";import"./chunk-RNKDFE2S.js";import"./chunk-VLDZBRTL.js";import"./chunk-RYHMPK5G.js";import"./chunk-JIKQI4MZ.js";import"./chunk-RK4LPGBV.js";import"./chunk-75KP2FVD.js";import"./chunk-7ZODGQO6.js";import"./chunk-TISQNFB5.js";import"./chunk-IIQ5YERM.js";import"./chunk-DC7LAFZZ.js";import"./chunk-LZDHANXA.js";import"./chunk-U7V7APDV.js";import"./chunk-SR7ARGUY.js";import"./chunk-OEZS5R3S.js";import"./chunk-NOE4UNQN.js";import"./chunk-R34HYLL4.js";import"./chunk-EXNHJQCD.js";import"./chunk-2ONZZ46N.js";import"./chunk-62AFAL4I.js";import"./chunk-36K4HBVM.js";import"./chunk-FWDMPRKU.js";import"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";export{c as AgentHeadless,a as ContextState,b as templateString};
@@ -1,6 +1,6 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
- import{a as r}from"./chunk-ILBTI4K5.js";import"./chunk-47XR7IMP.js";import{g as m,i as h,p as f,q as g}from"./chunk-T4P4KEDW.js";import{ba as d}from"./chunk-MH2P4YXC.js";import"./chunk-FWDMPRKU.js";import{b as p}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";p();var a=d("ASK_USER_QUESTION"),b=`Use this tool when you need to ask the user questions during execution. This allows you to:
3
+ import{a as r}from"./chunk-ILBTI4K5.js";import"./chunk-47XR7IMP.js";import{g as m,i as h,p as f,q as g}from"./chunk-2ONZZ46N.js";import{ba as d}from"./chunk-62AFAL4I.js";import"./chunk-FWDMPRKU.js";import{b as p}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";p();var a=d("ASK_USER_QUESTION"),b=`Use this tool when you need to ask the user questions during execution. This allows you to:
4
4
  1. Gather user preferences or requirements
5
5
  2. Clarify ambiguous instructions
6
6
  3. Get decisions on implementation choices as you work