@sortedyuan/maybecode 0.3.2 → 0.5.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 (295) hide show
  1. package/README.md +166 -55
  2. package/README.zh-CN.md +267 -0
  3. package/dist/application.d.ts +40 -34
  4. package/dist/application.d.ts.map +1 -1
  5. package/dist/application.js +290 -170
  6. package/dist/application.js.map +1 -1
  7. package/dist/args.d.ts +2 -2
  8. package/dist/args.d.ts.map +1 -1
  9. package/dist/args.js +50 -27
  10. package/dist/args.js.map +1 -1
  11. package/dist/bin.js +82 -71
  12. package/dist/bin.js.map +4 -4
  13. package/dist/cli/chunk-3IORPKBL.js +3572 -0
  14. package/dist/cli/chunk-3IORPKBL.js.map +7 -0
  15. package/dist/cli/{chunk-LVTRXPDS.js → chunk-4B2Z6KW7.js} +1547 -1536
  16. package/dist/cli/chunk-4B2Z6KW7.js.map +7 -0
  17. package/dist/cli/{chunk-JT6VBKOM.js → chunk-4WG6JIJJ.js} +127 -33
  18. package/dist/cli/{chunk-JT6VBKOM.js.map → chunk-4WG6JIJJ.js.map} +3 -3
  19. package/dist/cli/{chunk-K5JWPNSY.js → chunk-5SLWALZK.js} +3521 -16164
  20. package/dist/cli/chunk-5SLWALZK.js.map +7 -0
  21. package/dist/cli/chunk-MNBYXL5Y.js +132 -0
  22. package/dist/cli/chunk-MNBYXL5Y.js.map +7 -0
  23. package/dist/cli/{chunk-F4XRPLUM.js → chunk-SLWLUEHQ.js} +226 -86
  24. package/dist/cli/chunk-SLWLUEHQ.js.map +7 -0
  25. package/dist/cli/chunk-UQDZ55LQ.js +199 -0
  26. package/dist/cli/chunk-UQDZ55LQ.js.map +7 -0
  27. package/dist/cli/{chunk-7ISOHFS7.js → chunk-WMSG5ZTR.js} +717 -388
  28. package/dist/cli/chunk-WMSG5ZTR.js.map +7 -0
  29. package/dist/cli/chunk-WVIRS76R.js +4057 -0
  30. package/dist/cli/chunk-WVIRS76R.js.map +7 -0
  31. package/dist/cli/{chunk-HOU5ITUK.js → chunk-XTEMRAQW.js} +1 -1
  32. package/dist/cli/chunk-XTEMRAQW.js.map +7 -0
  33. package/dist/cli/chunk-Z3BOPBVU.js +91 -0
  34. package/dist/cli/chunk-Z3BOPBVU.js.map +7 -0
  35. package/dist/cli/{configured-WHY3GGAJ.js → configured-ACNM6TRQ.js} +10 -9
  36. package/dist/cli/{file-type-R2T7TBHI.js → file-type-HLHPV7WC.js} +817 -13
  37. package/dist/cli/file-type-HLHPV7WC.js.map +7 -0
  38. package/dist/cli/mcp-auth-XD5U7WCV.js +74 -0
  39. package/dist/cli/mcp-auth-XD5U7WCV.js.map +7 -0
  40. package/dist/cli/onboarding-WQWCPYEO.js +530 -0
  41. package/dist/cli/onboarding-WQWCPYEO.js.map +7 -0
  42. package/dist/cli/onboarding-check-HRRI5OJ7.js +32 -0
  43. package/dist/cli/onboarding-check-HRRI5OJ7.js.map +7 -0
  44. package/dist/cli/{retained-tui-VJ3VX4R3.js → retained-tui-QF5VMYLC.js} +788 -332
  45. package/dist/cli/retained-tui-QF5VMYLC.js.map +7 -0
  46. package/dist/cli/{sixel-LWTCM76G.js → sixel-ISZ4FZ3U.js} +37 -37
  47. package/dist/cli/{sixel-LWTCM76G.js.map → sixel-ISZ4FZ3U.js.map} +1 -1
  48. package/dist/cli/{team-T7G7PPNN.js → team-O2I5BXHM.js} +7 -6
  49. package/dist/cli/{team-v2-JGBBQ7FR.js → team-v2-YYO2G7DJ.js} +816 -390
  50. package/dist/cli/team-v2-YYO2G7DJ.js.map +7 -0
  51. package/dist/cli/{web-server-FOMNPY7Q.js → web-server-SXMH6FGA.js} +55 -19
  52. package/dist/cli/web-server-SXMH6FGA.js.map +7 -0
  53. package/dist/cli/{web-ui-COB6PKC5.js → web-ui-UWQUFE4W.js} +7 -6
  54. package/dist/config-schema.json +337 -0
  55. package/dist/configured.d.ts +18 -11
  56. package/dist/configured.d.ts.map +1 -1
  57. package/dist/configured.js +213 -390
  58. package/dist/configured.js.map +1 -1
  59. package/dist/controller.d.ts +19 -18
  60. package/dist/controller.d.ts.map +1 -1
  61. package/dist/delegation-commands.d.ts +1 -1
  62. package/dist/delegation-commands.d.ts.map +1 -1
  63. package/dist/delegation-commands.js +8 -8
  64. package/dist/delegation-commands.js.map +1 -1
  65. package/dist/errors.d.ts +2 -1
  66. package/dist/errors.d.ts.map +1 -1
  67. package/dist/errors.js +2 -1
  68. package/dist/errors.js.map +1 -1
  69. package/dist/events.d.ts +8 -6
  70. package/dist/events.d.ts.map +1 -1
  71. package/dist/fork-picker.d.ts.map +1 -1
  72. package/dist/fork-picker.js +19 -5
  73. package/dist/fork-picker.js.map +1 -1
  74. package/dist/git-request.d.ts +6 -6
  75. package/dist/git-request.d.ts.map +1 -1
  76. package/dist/git-request.js +28 -15
  77. package/dist/git-request.js.map +1 -1
  78. package/dist/goal-commands.d.ts +1 -1
  79. package/dist/goal-commands.d.ts.map +1 -1
  80. package/dist/goal-commands.js +12 -5
  81. package/dist/goal-commands.js.map +1 -1
  82. package/dist/index.d.ts +5 -37
  83. package/dist/index.d.ts.map +1 -1
  84. package/dist/index.js +3 -36
  85. package/dist/index.js.map +1 -1
  86. package/dist/instructions.d.ts +2 -7
  87. package/dist/instructions.d.ts.map +1 -1
  88. package/dist/instructions.js +7 -15
  89. package/dist/instructions.js.map +1 -1
  90. package/dist/keymap.d.ts +2 -2
  91. package/dist/keymap.d.ts.map +1 -1
  92. package/dist/keymap.js +2 -2
  93. package/dist/keymap.js.map +1 -1
  94. package/dist/maybecode-config.schema.json +1765 -0
  95. package/dist/mcp-auth.d.ts +1 -1
  96. package/dist/mcp-auth.d.ts.map +1 -1
  97. package/dist/mcp-auth.js +11 -8
  98. package/dist/mcp-auth.js.map +1 -1
  99. package/dist/mcp-commands.d.ts.map +1 -1
  100. package/dist/mcp-commands.js +18 -4
  101. package/dist/mcp-commands.js.map +1 -1
  102. package/dist/mcp-interaction-ui.d.ts.map +1 -1
  103. package/dist/mcp-interaction-ui.js +11 -4
  104. package/dist/mcp-interaction-ui.js.map +1 -1
  105. package/dist/media-history.d.ts +1 -1
  106. package/dist/media-history.d.ts.map +1 -1
  107. package/dist/media-history.js +8 -2
  108. package/dist/media-history.js.map +1 -1
  109. package/dist/model-picker.d.ts.map +1 -1
  110. package/dist/model-picker.js +10 -11
  111. package/dist/model-picker.js.map +1 -1
  112. package/dist/model-transition.d.ts +11 -0
  113. package/dist/model-transition.d.ts.map +1 -0
  114. package/dist/model-transition.js +48 -0
  115. package/dist/model-transition.js.map +1 -0
  116. package/dist/model.d.ts +2 -2
  117. package/dist/model.d.ts.map +1 -1
  118. package/dist/model.js +8 -4
  119. package/dist/model.js.map +1 -1
  120. package/dist/onboarding-check.d.ts +3 -0
  121. package/dist/onboarding-check.d.ts.map +1 -0
  122. package/dist/onboarding-check.js +22 -0
  123. package/dist/onboarding-check.js.map +1 -0
  124. package/dist/onboarding.d.ts +6 -0
  125. package/dist/onboarding.d.ts.map +1 -0
  126. package/dist/onboarding.js +463 -0
  127. package/dist/onboarding.js.map +1 -0
  128. package/dist/plugins/application.d.ts +6 -4
  129. package/dist/plugins/application.d.ts.map +1 -1
  130. package/dist/plugins/application.js +106 -52
  131. package/dist/plugins/application.js.map +1 -1
  132. package/dist/plugins/instructions.d.ts +1 -1
  133. package/dist/plugins/instructions.d.ts.map +1 -1
  134. package/dist/plugins/instructions.js +24 -11
  135. package/dist/plugins/instructions.js.map +1 -1
  136. package/dist/plugins/resources.d.ts +2 -2
  137. package/dist/plugins/resources.d.ts.map +1 -1
  138. package/dist/plugins/resources.js +22 -12
  139. package/dist/plugins/resources.js.map +1 -1
  140. package/dist/policy.d.ts +1 -1
  141. package/dist/policy.d.ts.map +1 -1
  142. package/dist/policy.js +59 -11
  143. package/dist/policy.js.map +1 -1
  144. package/dist/run.d.ts +2 -0
  145. package/dist/run.d.ts.map +1 -1
  146. package/dist/run.js +38 -33
  147. package/dist/run.js.map +1 -1
  148. package/dist/runtime-instructions.d.ts +1 -1
  149. package/dist/runtime-instructions.d.ts.map +1 -1
  150. package/dist/runtime-instructions.js +15 -7
  151. package/dist/runtime-instructions.js.map +1 -1
  152. package/dist/session-navigation.d.ts +6 -0
  153. package/dist/session-navigation.d.ts.map +1 -0
  154. package/dist/session-navigation.js +64 -0
  155. package/dist/session-navigation.js.map +1 -0
  156. package/dist/session-picker.d.ts +1 -1
  157. package/dist/session-picker.d.ts.map +1 -1
  158. package/dist/session-picker.js +23 -32
  159. package/dist/session-picker.js.map +1 -1
  160. package/dist/settings.d.ts +718 -0
  161. package/dist/settings.d.ts.map +1 -0
  162. package/dist/settings.js +14 -0
  163. package/dist/settings.js.map +1 -0
  164. package/dist/skills.d.ts +1 -1
  165. package/dist/skills.d.ts.map +1 -1
  166. package/dist/skills.js +10 -12
  167. package/dist/skills.js.map +1 -1
  168. package/dist/slash-commands.d.ts +2 -2
  169. package/dist/slash-commands.d.ts.map +1 -1
  170. package/dist/slash-commands.js +149 -67
  171. package/dist/slash-commands.js.map +1 -1
  172. package/dist/team-execution.d.ts +10 -0
  173. package/dist/team-execution.d.ts.map +1 -0
  174. package/dist/team-execution.js +29 -0
  175. package/dist/team-execution.js.map +1 -0
  176. package/dist/team-patches.d.ts.map +1 -1
  177. package/dist/team-patches.js +149 -52
  178. package/dist/team-patches.js.map +1 -1
  179. package/dist/team-plan.d.ts +2 -2
  180. package/dist/team-plan.d.ts.map +1 -1
  181. package/dist/team-plan.js +115 -34
  182. package/dist/team-plan.js.map +1 -1
  183. package/dist/team-recovery.d.ts +1 -1
  184. package/dist/team-recovery.d.ts.map +1 -1
  185. package/dist/team-recovery.js +40 -10
  186. package/dist/team-recovery.js.map +1 -1
  187. package/dist/team-v2.d.ts.map +1 -1
  188. package/dist/team-v2.js +335 -104
  189. package/dist/team-v2.js.map +1 -1
  190. package/dist/team-verification.d.ts +4 -2
  191. package/dist/team-verification.d.ts.map +1 -1
  192. package/dist/team-verification.js +300 -97
  193. package/dist/team-verification.js.map +1 -1
  194. package/dist/team.d.ts +2 -2
  195. package/dist/team.d.ts.map +1 -1
  196. package/dist/team.js +172 -62
  197. package/dist/team.js.map +1 -1
  198. package/dist/terminal-web.d.ts +1 -0
  199. package/dist/terminal-web.d.ts.map +1 -1
  200. package/dist/terminal-web.js +28 -10
  201. package/dist/terminal-web.js.map +1 -1
  202. package/dist/ui/actions.d.ts.map +1 -1
  203. package/dist/ui/actions.js.map +1 -1
  204. package/dist/ui/retained-tui.d.ts.map +1 -1
  205. package/dist/ui/retained-tui.js +231 -173
  206. package/dist/ui/retained-tui.js.map +1 -1
  207. package/dist/ui/{prototype-view.d.ts → terminal-view.d.ts} +7 -7
  208. package/dist/ui/terminal-view.d.ts.map +1 -0
  209. package/dist/ui/{prototype-view.js → terminal-view.js} +185 -98
  210. package/dist/ui/terminal-view.js.map +1 -0
  211. package/dist/web-commands.d.ts.map +1 -1
  212. package/dist/web-commands.js +160 -57
  213. package/dist/web-commands.js.map +1 -1
  214. package/dist/web-extension.d.ts.map +1 -1
  215. package/dist/web-extension.js +14 -4
  216. package/dist/web-extension.js.map +1 -1
  217. package/dist/web-server.d.ts.map +1 -1
  218. package/dist/web-server.js +2 -1
  219. package/dist/web-server.js.map +1 -1
  220. package/dist/web-ui.d.ts.map +1 -1
  221. package/dist/web-ui.js +167 -40
  222. package/dist/web-ui.js.map +1 -1
  223. package/dist/workspace-configuration.d.ts +7 -0
  224. package/dist/workspace-configuration.d.ts.map +1 -0
  225. package/dist/workspace-configuration.js +134 -0
  226. package/dist/workspace-configuration.js.map +1 -0
  227. package/dist/workspace-state.d.ts +20 -0
  228. package/dist/workspace-state.d.ts.map +1 -0
  229. package/dist/workspace-state.js +2 -0
  230. package/dist/workspace-state.js.map +1 -0
  231. package/dist/workspace.d.ts +26 -43
  232. package/dist/workspace.d.ts.map +1 -1
  233. package/dist/workspace.js +261 -323
  234. package/dist/workspace.js.map +1 -1
  235. package/package.json +21 -31
  236. package/dist/cli/chunk-7ISOHFS7.js.map +0 -7
  237. package/dist/cli/chunk-F4XRPLUM.js.map +0 -7
  238. package/dist/cli/chunk-H7SNBFO4.js +0 -5522
  239. package/dist/cli/chunk-H7SNBFO4.js.map +0 -7
  240. package/dist/cli/chunk-HOU5ITUK.js.map +0 -7
  241. package/dist/cli/chunk-K5JWPNSY.js.map +0 -7
  242. package/dist/cli/chunk-LVTRXPDS.js.map +0 -7
  243. package/dist/cli/chunk-VAZMCNBB.js +0 -686
  244. package/dist/cli/chunk-VAZMCNBB.js.map +0 -7
  245. package/dist/cli/chunk-WOFEI42C.js +0 -7820
  246. package/dist/cli/chunk-WOFEI42C.js.map +0 -7
  247. package/dist/cli/file-type-R2T7TBHI.js.map +0 -7
  248. package/dist/cli/mcp-auth-UNRHSIKJ.js +0 -63
  249. package/dist/cli/mcp-auth-UNRHSIKJ.js.map +0 -7
  250. package/dist/cli/retained-tui-VJ3VX4R3.js.map +0 -7
  251. package/dist/cli/team-v2-JGBBQ7FR.js.map +0 -7
  252. package/dist/cli/tui-SA74DKMA.js +0 -1705
  253. package/dist/cli/tui-SA74DKMA.js.map +0 -7
  254. package/dist/cli/web-server-FOMNPY7Q.js.map +0 -7
  255. package/dist/delegation.d.ts +0 -2
  256. package/dist/delegation.d.ts.map +0 -1
  257. package/dist/delegation.js +0 -2
  258. package/dist/delegation.js.map +0 -1
  259. package/dist/history-memory.d.ts +0 -2
  260. package/dist/history-memory.d.ts.map +0 -1
  261. package/dist/history-memory.js +0 -2
  262. package/dist/history-memory.js.map +0 -1
  263. package/dist/subagent-budget.d.ts +0 -2
  264. package/dist/subagent-budget.d.ts.map +0 -1
  265. package/dist/subagent-budget.js +0 -2
  266. package/dist/subagent-budget.js.map +0 -1
  267. package/dist/subagent-files.d.ts +0 -2
  268. package/dist/subagent-files.d.ts.map +0 -1
  269. package/dist/subagent-files.js +0 -2
  270. package/dist/subagent-files.js.map +0 -1
  271. package/dist/subagent-host.d.ts +0 -2
  272. package/dist/subagent-host.d.ts.map +0 -1
  273. package/dist/subagent-host.js +0 -2
  274. package/dist/subagent-host.js.map +0 -1
  275. package/dist/subagent-instructions.d.ts +0 -2
  276. package/dist/subagent-instructions.d.ts.map +0 -1
  277. package/dist/subagent-instructions.js +0 -2
  278. package/dist/subagent-instructions.js.map +0 -1
  279. package/dist/subagents.d.ts +0 -2
  280. package/dist/subagents.d.ts.map +0 -1
  281. package/dist/subagents.js +0 -2
  282. package/dist/subagents.js.map +0 -1
  283. package/dist/summarizer.d.ts +0 -2
  284. package/dist/summarizer.d.ts.map +0 -1
  285. package/dist/summarizer.js +0 -2
  286. package/dist/summarizer.js.map +0 -1
  287. package/dist/tui.d.ts +0 -7
  288. package/dist/tui.d.ts.map +0 -1
  289. package/dist/tui.js +0 -1109
  290. package/dist/tui.js.map +0 -1
  291. package/dist/ui/prototype-view.d.ts.map +0 -1
  292. package/dist/ui/prototype-view.js.map +0 -1
  293. /package/dist/cli/{configured-WHY3GGAJ.js.map → configured-ACNM6TRQ.js.map} +0 -0
  294. /package/dist/cli/{team-T7G7PPNN.js.map → team-O2I5BXHM.js.map} +0 -0
  295. /package/dist/cli/{web-ui-COB6PKC5.js.map → web-ui-UWQUFE4W.js.map} +0 -0
@@ -0,0 +1,718 @@
1
+ import { type MayConfig } from "@sortedyuan/may/config";
2
+ import type { RunBudget } from "@sortedyuan/may/core";
3
+ import type { PluginModuleSelection } from "@sortedyuan/may/plugin";
4
+ import type { MaybeCodeSubagentSettings } from "@sortedyuan/coordination/delegation/configuration";
5
+ import type { CodingExecutionIsolation, FetchToolOptions } from "@sortedyuan/coding-tools";
6
+ export declare const MAYBECODE_APPLICATION_ID = "maybecode";
7
+ export interface MaybeCodeGitSettings {
8
+ readonly autoCommit?: boolean;
9
+ readonly readOnly?: boolean;
10
+ readonly dataRoot?: string;
11
+ readonly worktreesRoot?: string;
12
+ readonly excludedPaths?: readonly string[];
13
+ }
14
+ export interface MaybeCodeMcpHostSettings {
15
+ readonly roots?: boolean;
16
+ readonly sampling?: boolean;
17
+ readonly legacyRequests?: "isolated";
18
+ }
19
+ interface MaybeCodeMcpServerBaseSettings {
20
+ readonly enabled?: boolean;
21
+ readonly required?: boolean;
22
+ readonly protocolMode?: "legacy" | "auto";
23
+ readonly host?: MaybeCodeMcpHostSettings;
24
+ readonly tasks?: boolean;
25
+ readonly requestTimeoutMs?: number;
26
+ readonly maxTotalTimeoutMs?: number;
27
+ }
28
+ export interface MaybeCodeMcpStdioServerSettings extends MaybeCodeMcpServerBaseSettings {
29
+ readonly transport?: "stdio";
30
+ readonly command?: string;
31
+ readonly args?: readonly string[];
32
+ readonly cwd?: string;
33
+ readonly env?: Readonly<Record<string, string>>;
34
+ readonly maxBufferSize?: number;
35
+ readonly stderrMaxBytes?: number;
36
+ }
37
+ export interface MaybeCodeMcpOAuthSettings {
38
+ readonly type: "oauth";
39
+ readonly account?: string;
40
+ readonly clientId?: string;
41
+ readonly expectedIssuer?: string;
42
+ readonly clientMetadataUrl?: string;
43
+ readonly scopes?: readonly string[];
44
+ readonly authorizationOrigins?: readonly string[];
45
+ readonly callbackPort?: number;
46
+ }
47
+ export interface MaybeCodeMcpHttpServerSettings extends MaybeCodeMcpServerBaseSettings {
48
+ readonly transport: "streamable-http";
49
+ readonly url?: string;
50
+ readonly headers?: Readonly<Record<string, string>>;
51
+ readonly auth?: MaybeCodeMcpOAuthSettings;
52
+ }
53
+ export type MaybeCodeMcpServerSettings = MaybeCodeMcpStdioServerSettings | MaybeCodeMcpHttpServerSettings;
54
+ export interface MaybeCodeObservabilitySettings {
55
+ readonly enabled?: boolean;
56
+ readonly exporter?: "file";
57
+ readonly file?: string;
58
+ readonly samplingRatio?: number;
59
+ readonly retentionDays?: number;
60
+ readonly batch?: {
61
+ readonly maxQueueSize?: number;
62
+ readonly maxExportBatchSize?: number;
63
+ readonly scheduledDelayMs?: number;
64
+ };
65
+ }
66
+ export interface MaybeCodeRetrySettings {
67
+ readonly maxAttempts?: number;
68
+ readonly baseDelayMs?: number;
69
+ readonly maxDelayMs?: number;
70
+ readonly jitterRatio?: number;
71
+ }
72
+ /** The `apps.maybecode` entry of a May configuration file, validated against `config-schema.json`. */
73
+ export interface MaybeCodeSettings {
74
+ readonly execution?: CodingExecutionIsolation;
75
+ readonly fetch?: FetchToolOptions;
76
+ readonly requestRecording?: "off" | "required";
77
+ readonly providerBodyRecording?: boolean;
78
+ readonly git?: false | MaybeCodeGitSettings;
79
+ readonly plugins?: readonly PluginModuleSelection[];
80
+ readonly permissionMode?: "default" | "yolo";
81
+ readonly persistentRules?: boolean;
82
+ readonly delegationNotifications?: boolean;
83
+ readonly instructionsDirectory?: string;
84
+ readonly skills?: false | {
85
+ readonly directories?: readonly string[];
86
+ };
87
+ readonly runBudget?: RunBudget;
88
+ readonly subagents?: false | MaybeCodeSubagentSettings;
89
+ readonly autoCompaction?: {
90
+ readonly mode?: "prune-summary" | "history-reference" | "provider-native";
91
+ };
92
+ readonly retry?: false | MaybeCodeRetrySettings;
93
+ readonly observability?: false | MaybeCodeObservabilitySettings;
94
+ readonly mcpServers?: false | Readonly<Record<string, MaybeCodeMcpServerSettings>>;
95
+ }
96
+ export declare const maybeCodeConfigSection: {
97
+ type: string;
98
+ description: string;
99
+ properties: {
100
+ execution: {
101
+ default: {
102
+ mode: string;
103
+ };
104
+ oneOf: ({
105
+ type: string;
106
+ properties: {
107
+ mode: {
108
+ const: string;
109
+ };
110
+ image?: never;
111
+ network?: never;
112
+ memoryBytes?: never;
113
+ cpuCount?: never;
114
+ };
115
+ required: string[];
116
+ additionalProperties: boolean;
117
+ } | {
118
+ type: string;
119
+ properties: {
120
+ mode: {
121
+ const: string;
122
+ };
123
+ image: {
124
+ $ref: string;
125
+ };
126
+ network: {
127
+ const: string;
128
+ };
129
+ memoryBytes: {
130
+ $ref: string;
131
+ };
132
+ cpuCount: {
133
+ type: string;
134
+ exclusiveMinimum: number;
135
+ };
136
+ };
137
+ required: string[];
138
+ additionalProperties: boolean;
139
+ })[];
140
+ };
141
+ fetch: {
142
+ type: string;
143
+ properties: {
144
+ allowedOrigins: {
145
+ type: string;
146
+ uniqueItems: boolean;
147
+ items: {
148
+ type: string;
149
+ pattern: string;
150
+ };
151
+ };
152
+ maxBytes: {
153
+ $ref: string;
154
+ };
155
+ timeoutMs: {
156
+ $ref: string;
157
+ };
158
+ maxRedirects: {
159
+ type: string;
160
+ minimum: number;
161
+ };
162
+ };
163
+ additionalProperties: boolean;
164
+ };
165
+ requestRecording: {
166
+ enum: string[];
167
+ default: string;
168
+ };
169
+ providerBodyRecording: {
170
+ type: string;
171
+ default: boolean;
172
+ };
173
+ git: {
174
+ oneOf: ({
175
+ const: boolean;
176
+ type?: never;
177
+ properties?: never;
178
+ additionalProperties?: never;
179
+ } | {
180
+ const?: never;
181
+ type: string;
182
+ properties: {
183
+ autoCommit: {
184
+ type: string;
185
+ default: boolean;
186
+ };
187
+ readOnly: {
188
+ type: string;
189
+ default: boolean;
190
+ };
191
+ dataRoot: {
192
+ $ref: string;
193
+ };
194
+ worktreesRoot: {
195
+ $ref: string;
196
+ };
197
+ excludedPaths: {
198
+ type: string;
199
+ items: {
200
+ $ref: string;
201
+ };
202
+ };
203
+ };
204
+ additionalProperties: boolean;
205
+ })[];
206
+ };
207
+ plugins: {
208
+ $ref: string;
209
+ };
210
+ permissionMode: {
211
+ enum: string[];
212
+ default: string;
213
+ description: string;
214
+ };
215
+ persistentRules: {
216
+ type: string;
217
+ default: boolean;
218
+ description: string;
219
+ };
220
+ delegationNotifications: {
221
+ type: string;
222
+ default: boolean;
223
+ description: string;
224
+ };
225
+ instructionsDirectory: {
226
+ $ref: string;
227
+ };
228
+ skills: {
229
+ oneOf: ({
230
+ type?: never;
231
+ properties?: never;
232
+ additionalProperties?: never;
233
+ const: boolean;
234
+ } | {
235
+ const?: never;
236
+ type: string;
237
+ properties: {
238
+ directories: {
239
+ type: string;
240
+ maxItems: number;
241
+ items: {
242
+ $ref: string;
243
+ };
244
+ };
245
+ };
246
+ additionalProperties: boolean;
247
+ })[];
248
+ };
249
+ runBudget: {
250
+ $ref: string;
251
+ };
252
+ subagents: {
253
+ oneOf: ({
254
+ type?: never;
255
+ properties?: never;
256
+ additionalProperties?: never;
257
+ const: boolean;
258
+ } | {
259
+ const?: never;
260
+ type: string;
261
+ properties: {
262
+ enabled: {
263
+ type: string;
264
+ default: boolean;
265
+ description: string;
266
+ };
267
+ roles: {
268
+ type: string;
269
+ minProperties: number;
270
+ maxProperties: number;
271
+ propertyNames: {
272
+ $ref: string;
273
+ };
274
+ additionalProperties: {
275
+ $ref: string;
276
+ };
277
+ };
278
+ defaultRole: {
279
+ $ref: string;
280
+ };
281
+ limits: {
282
+ type: string;
283
+ properties: {
284
+ maxConcurrent: {
285
+ type: string;
286
+ minimum: number;
287
+ maximum: number;
288
+ default: number;
289
+ };
290
+ maxTasks: {
291
+ type: string;
292
+ minimum: number;
293
+ maximum: number;
294
+ default: number;
295
+ };
296
+ maxDepth: {
297
+ type: string;
298
+ minimum: number;
299
+ maximum: number;
300
+ default: number;
301
+ };
302
+ maxTaskTurns: {
303
+ type: string;
304
+ minimum: number;
305
+ maximum: number;
306
+ default: number;
307
+ };
308
+ maxDurationMs: {
309
+ type: string;
310
+ minimum: number;
311
+ maximum: number;
312
+ default: number;
313
+ };
314
+ maxInputBytes: {
315
+ type: string;
316
+ minimum: number;
317
+ maximum: number;
318
+ default: number;
319
+ };
320
+ maxOutputBytes: {
321
+ type: string;
322
+ minimum: number;
323
+ maximum: number;
324
+ default: number;
325
+ };
326
+ };
327
+ additionalProperties: boolean;
328
+ };
329
+ runBudget: {
330
+ $ref: string;
331
+ description: string;
332
+ };
333
+ maxModelCalls: {
334
+ type: string;
335
+ minimum: number;
336
+ maximum: number;
337
+ default: number;
338
+ description: string;
339
+ };
340
+ maxTotalTokens: {
341
+ $ref: string;
342
+ description: string;
343
+ };
344
+ reservationTokens: {
345
+ type: string;
346
+ minimum: number;
347
+ maximum: number;
348
+ default: number;
349
+ };
350
+ };
351
+ additionalProperties: boolean;
352
+ })[];
353
+ };
354
+ autoCompaction: {
355
+ type: string;
356
+ properties: {
357
+ mode: {
358
+ enum: string[];
359
+ default: string;
360
+ };
361
+ };
362
+ additionalProperties: boolean;
363
+ };
364
+ retry: {
365
+ oneOf: ({
366
+ type?: never;
367
+ properties?: never;
368
+ additionalProperties?: never;
369
+ const: boolean;
370
+ } | {
371
+ const?: never;
372
+ type: string;
373
+ properties: {
374
+ maxAttempts: {
375
+ $ref: string;
376
+ };
377
+ baseDelayMs: {
378
+ type: string;
379
+ minimum: number;
380
+ };
381
+ maxDelayMs: {
382
+ type: string;
383
+ minimum: number;
384
+ };
385
+ jitterRatio: {
386
+ type: string;
387
+ minimum: number;
388
+ maximum: number;
389
+ };
390
+ };
391
+ additionalProperties: boolean;
392
+ })[];
393
+ };
394
+ observability: {
395
+ oneOf: ({
396
+ type?: never;
397
+ properties?: never;
398
+ additionalProperties?: never;
399
+ const: boolean;
400
+ } | {
401
+ const?: never;
402
+ type: string;
403
+ properties: {
404
+ enabled: {
405
+ type: string;
406
+ default: boolean;
407
+ };
408
+ exporter: {
409
+ const: string;
410
+ default: string;
411
+ };
412
+ file: {
413
+ $ref: string;
414
+ };
415
+ samplingRatio: {
416
+ type: string;
417
+ minimum: number;
418
+ maximum: number;
419
+ };
420
+ retentionDays: {
421
+ $ref: string;
422
+ default: number;
423
+ };
424
+ batch: {
425
+ type: string;
426
+ properties: {
427
+ maxQueueSize: {
428
+ $ref: string;
429
+ };
430
+ maxExportBatchSize: {
431
+ $ref: string;
432
+ };
433
+ scheduledDelayMs: {
434
+ type: string;
435
+ minimum: number;
436
+ };
437
+ };
438
+ additionalProperties: boolean;
439
+ };
440
+ };
441
+ additionalProperties: boolean;
442
+ })[];
443
+ };
444
+ mcpServers: {
445
+ oneOf: ({
446
+ type?: never;
447
+ additionalProperties?: never;
448
+ const: boolean;
449
+ propertyNames?: never;
450
+ } | {
451
+ const?: never;
452
+ type: string;
453
+ propertyNames: {
454
+ pattern: string;
455
+ };
456
+ additionalProperties: {
457
+ oneOf: {
458
+ $ref: string;
459
+ }[];
460
+ };
461
+ })[];
462
+ };
463
+ };
464
+ additionalProperties: boolean;
465
+ $defs: {
466
+ subagentIdentifier: {
467
+ type: string;
468
+ pattern: string;
469
+ not: {
470
+ enum: string[];
471
+ };
472
+ };
473
+ subagentRole: {
474
+ type: string;
475
+ properties: {
476
+ model: {
477
+ $ref: string;
478
+ description: string;
479
+ };
480
+ reasoningEffort: {
481
+ type: string;
482
+ pattern: string;
483
+ maxLength: number;
484
+ };
485
+ instructions: {
486
+ type: string;
487
+ pattern: string;
488
+ maxLength: number;
489
+ };
490
+ tools: {
491
+ type: string;
492
+ maxItems: number;
493
+ uniqueItems: boolean;
494
+ items: {
495
+ enum: string[];
496
+ };
497
+ };
498
+ delegateTo: {
499
+ type: string;
500
+ maxItems: number;
501
+ uniqueItems: boolean;
502
+ items: {
503
+ $ref: string;
504
+ };
505
+ };
506
+ runBudget: {
507
+ $ref: string;
508
+ };
509
+ };
510
+ additionalProperties: boolean;
511
+ };
512
+ mcpStdioServer: {
513
+ type: string;
514
+ properties: {
515
+ enabled: {
516
+ type: string;
517
+ default: boolean;
518
+ };
519
+ required: {
520
+ type: string;
521
+ default: boolean;
522
+ };
523
+ transport: {
524
+ const: string;
525
+ default: string;
526
+ };
527
+ protocolMode: {
528
+ enum: string[];
529
+ default: string;
530
+ };
531
+ host: {
532
+ $ref: string;
533
+ };
534
+ tasks: {
535
+ type: string;
536
+ default: boolean;
537
+ description: string;
538
+ };
539
+ command: {
540
+ $ref: string;
541
+ };
542
+ args: {
543
+ type: string;
544
+ items: {
545
+ type: string;
546
+ };
547
+ };
548
+ cwd: {
549
+ $ref: string;
550
+ };
551
+ env: {
552
+ type: string;
553
+ propertyNames: {
554
+ minLength: number;
555
+ };
556
+ additionalProperties: {
557
+ type: string;
558
+ };
559
+ };
560
+ requestTimeoutMs: {
561
+ $ref: string;
562
+ };
563
+ maxTotalTimeoutMs: {
564
+ $ref: string;
565
+ };
566
+ maxBufferSize: {
567
+ $ref: string;
568
+ };
569
+ stderrMaxBytes: {
570
+ $ref: string;
571
+ default: number;
572
+ };
573
+ };
574
+ anyOf: ({
575
+ required: string[];
576
+ properties: {
577
+ enabled: {
578
+ const: boolean;
579
+ };
580
+ };
581
+ } | {
582
+ properties?: never;
583
+ required: string[];
584
+ })[];
585
+ additionalProperties: boolean;
586
+ };
587
+ mcpHttpServer: {
588
+ type: string;
589
+ required: string[];
590
+ properties: {
591
+ enabled: {
592
+ type: string;
593
+ default: boolean;
594
+ };
595
+ required: {
596
+ type: string;
597
+ default: boolean;
598
+ };
599
+ transport: {
600
+ const: string;
601
+ };
602
+ url: {
603
+ $ref: string;
604
+ description: string;
605
+ };
606
+ headers: {
607
+ type: string;
608
+ propertyNames: {
609
+ minLength: number;
610
+ };
611
+ additionalProperties: {
612
+ type: string;
613
+ };
614
+ };
615
+ auth: {
616
+ $ref: string;
617
+ };
618
+ protocolMode: {
619
+ enum: string[];
620
+ default: string;
621
+ };
622
+ host: {
623
+ $ref: string;
624
+ };
625
+ tasks: {
626
+ type: string;
627
+ default: boolean;
628
+ description: string;
629
+ };
630
+ requestTimeoutMs: {
631
+ $ref: string;
632
+ };
633
+ maxTotalTimeoutMs: {
634
+ $ref: string;
635
+ };
636
+ };
637
+ anyOf: ({
638
+ required: string[];
639
+ properties: {
640
+ enabled: {
641
+ const: boolean;
642
+ };
643
+ };
644
+ } | {
645
+ properties?: never;
646
+ required: string[];
647
+ })[];
648
+ additionalProperties: boolean;
649
+ };
650
+ mcpHostOptions: {
651
+ type: string;
652
+ description: string;
653
+ properties: {
654
+ roots: {
655
+ type: string;
656
+ default: boolean;
657
+ };
658
+ sampling: {
659
+ type: string;
660
+ default: boolean;
661
+ };
662
+ legacyRequests: {
663
+ const: string;
664
+ description: string;
665
+ };
666
+ };
667
+ additionalProperties: boolean;
668
+ };
669
+ mcpOAuthOptions: {
670
+ type: string;
671
+ required: string[];
672
+ properties: {
673
+ type: {
674
+ const: string;
675
+ };
676
+ account: {
677
+ $ref: string;
678
+ };
679
+ clientId: {
680
+ $ref: string;
681
+ };
682
+ expectedIssuer: {
683
+ $ref: string;
684
+ };
685
+ clientMetadataUrl: {
686
+ $ref: string;
687
+ };
688
+ scopes: {
689
+ type: string;
690
+ items: {
691
+ $ref: string;
692
+ };
693
+ };
694
+ authorizationOrigins: {
695
+ type: string;
696
+ items: {
697
+ $ref: string;
698
+ };
699
+ };
700
+ callbackPort: {
701
+ type: string;
702
+ minimum: number;
703
+ maximum: number;
704
+ };
705
+ };
706
+ dependentRequired: {
707
+ clientId: string[];
708
+ };
709
+ not: {
710
+ required: string[];
711
+ };
712
+ additionalProperties: boolean;
713
+ };
714
+ };
715
+ };
716
+ export declare function readMaybeCodeSettings(config: MayConfig): MaybeCodeSettings;
717
+ export {};
718
+ //# sourceMappingURL=settings.d.ts.map