aemeathcli 1.0.10 → 1.0.12

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 (184) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +66 -54
  3. package/dist/App-JQ622M66.js +4431 -0
  4. package/dist/App-JQ622M66.js.map +1 -0
  5. package/dist/agent-store/architect.md +32 -0
  6. package/dist/agent-store/debugger.md +32 -0
  7. package/dist/agent-store/developer.md +29 -0
  8. package/dist/agent-store/documenter.md +30 -0
  9. package/dist/agent-store/researcher.md +31 -0
  10. package/dist/agent-store/reviewer.md +28 -0
  11. package/dist/agent-store/supervisor.md +37 -0
  12. package/dist/agent-store/tester.md +30 -0
  13. package/dist/api-key-fallback-RJLPM3KH.js +11 -0
  14. package/dist/{api-key-fallback-YQQBOQIL.js.map → api-key-fallback-RJLPM3KH.js.map} +1 -1
  15. package/dist/auth-status-JQJOKUPF.js +13 -0
  16. package/dist/auth-status-JQJOKUPF.js.map +1 -0
  17. package/dist/{chunk-RWCNNAL7.js → chunk-2KMA5RBC.js} +25 -48
  18. package/dist/chunk-2KMA5RBC.js.map +1 -0
  19. package/dist/{chunk-CYQNBB25.js → chunk-2Y7TR6BS.js} +28 -5
  20. package/dist/chunk-2Y7TR6BS.js.map +1 -0
  21. package/dist/{chunk-DAHGLHNR.js → chunk-2ZYK5IJG.js} +6 -141
  22. package/dist/chunk-2ZYK5IJG.js.map +1 -0
  23. package/dist/chunk-36RXCZOV.js +88 -0
  24. package/dist/chunk-36RXCZOV.js.map +1 -0
  25. package/dist/{chunk-DMBPX3RG.js → chunk-7EBLXPL4.js} +9 -9
  26. package/dist/{chunk-DMBPX3RG.js.map → chunk-7EBLXPL4.js.map} +1 -1
  27. package/dist/chunk-BIMQL4AG.js +186 -0
  28. package/dist/chunk-BIMQL4AG.js.map +1 -0
  29. package/dist/{chunk-NBR3GHMT.js → chunk-D275MCIH.js} +39 -7
  30. package/dist/chunk-D275MCIH.js.map +1 -0
  31. package/dist/{chunk-Y5XVD2CD.js → chunk-FFS4T7BZ.js} +109 -82
  32. package/dist/chunk-FFS4T7BZ.js.map +1 -0
  33. package/dist/{chunk-CARHU3DO.js → chunk-GXAJGP2T.js} +64 -16
  34. package/dist/chunk-GXAJGP2T.js.map +1 -0
  35. package/dist/{chunk-I5PZ4JTS.js → chunk-HESQLCLU.js} +4 -4
  36. package/dist/{chunk-I5PZ4JTS.js.map → chunk-HESQLCLU.js.map} +1 -1
  37. package/dist/{chunk-JAXXTYID.js → chunk-IR5HLBMH.js} +2 -2
  38. package/dist/{chunk-JAXXTYID.js.map → chunk-IR5HLBMH.js.map} +1 -1
  39. package/dist/{chunk-MFBHNWGV.js → chunk-K2FCMRXH.js} +11 -19
  40. package/dist/chunk-K2FCMRXH.js.map +1 -0
  41. package/dist/{chunk-H66O5Z2V.js → chunk-KIC7UI5U.js} +41 -6
  42. package/dist/chunk-KIC7UI5U.js.map +1 -0
  43. package/dist/{chunk-MXZSI3AY.js → chunk-KMOAJRDE.js} +42 -10
  44. package/dist/chunk-KMOAJRDE.js.map +1 -0
  45. package/dist/chunk-LQBALETG.js +71 -0
  46. package/dist/chunk-LQBALETG.js.map +1 -0
  47. package/dist/chunk-M3FPQSRU.js +12 -0
  48. package/dist/chunk-M3FPQSRU.js.map +1 -0
  49. package/dist/chunk-NQEUK763.js +26 -0
  50. package/dist/chunk-NQEUK763.js.map +1 -0
  51. package/dist/chunk-OPWAFS6Y.js +38 -0
  52. package/dist/chunk-OPWAFS6Y.js.map +1 -0
  53. package/dist/{chunk-6PDJ45T4.js → chunk-PS4WEFW6.js} +50 -25
  54. package/dist/chunk-PS4WEFW6.js.map +1 -0
  55. package/dist/{chunk-HMJRPNPZ.js → chunk-QK7TKNHV.js} +93 -21
  56. package/dist/chunk-QK7TKNHV.js.map +1 -0
  57. package/dist/{chunk-LSOYPSAT.js → chunk-RADJSEG5.js} +4 -4
  58. package/dist/chunk-RADJSEG5.js.map +1 -0
  59. package/dist/{chunk-4IJD72YB.js → chunk-SNWPI6XJ.js} +7 -7
  60. package/dist/chunk-SNWPI6XJ.js.map +1 -0
  61. package/dist/{chunk-TEVZS4FA.js → chunk-UM7MSLOV.js} +16 -9
  62. package/dist/chunk-UM7MSLOV.js.map +1 -0
  63. package/dist/chunk-VNZ3YTQD.js +232 -0
  64. package/dist/chunk-VNZ3YTQD.js.map +1 -0
  65. package/dist/{chunk-IYW62KKR.js → chunk-WXIN65UG.js} +66 -23
  66. package/dist/chunk-WXIN65UG.js.map +1 -0
  67. package/dist/chunk-XEXWX7C7.js +241 -0
  68. package/dist/chunk-XEXWX7C7.js.map +1 -0
  69. package/dist/{chunk-CGEV3ARR.js → chunk-YCCYXDW7.js} +3 -3
  70. package/dist/chunk-YCCYXDW7.js.map +1 -0
  71. package/dist/chunk-YPQ2MLAV.js +140 -0
  72. package/dist/chunk-YPQ2MLAV.js.map +1 -0
  73. package/dist/chunk-ZCOVMVK4.js +26 -0
  74. package/dist/chunk-ZCOVMVK4.js.map +1 -0
  75. package/dist/{claude-login-5WELXPKT.js → claude-login-AIFIWTYF.js} +9 -9
  76. package/dist/{claude-login-5WELXPKT.js.map → claude-login-AIFIWTYF.js.map} +1 -1
  77. package/dist/cli.js +370 -171
  78. package/dist/cli.js.map +1 -1
  79. package/dist/{codex-login-GZIFXUWD.js → codex-login-LW5X7GAM.js} +10 -10
  80. package/dist/codex-login-LW5X7GAM.js.map +1 -0
  81. package/dist/config-store-NF56VHFU.js +7 -0
  82. package/dist/{config-store-W6FBCQAQ.js.map → config-store-NF56VHFU.js.map} +1 -1
  83. package/dist/conversation-store-7GRDQZD2.js +4 -0
  84. package/dist/conversation-store-7GRDQZD2.js.map +1 -0
  85. package/dist/detect-providers-QICJ5U3R.js +4 -0
  86. package/dist/detect-providers-QICJ5U3R.js.map +1 -0
  87. package/dist/executor-FTABX2AW.js +4 -0
  88. package/dist/{executor-6RIKIGXK.js.map → executor-FTABX2AW.js.map} +1 -1
  89. package/dist/first-run-ADROZVYF.js +230 -0
  90. package/dist/first-run-ADROZVYF.js.map +1 -0
  91. package/dist/{gemini-login-AZGL3CE7.js → gemini-login-TST454MX.js} +9 -9
  92. package/dist/{gemini-login-AZGL3CE7.js.map → gemini-login-TST454MX.js.map} +1 -1
  93. package/dist/index.d.ts +46 -70
  94. package/dist/index.js +79 -468
  95. package/dist/index.js.map +1 -1
  96. package/dist/input-history-BEICE7PT.js +57 -0
  97. package/dist/input-history-BEICE7PT.js.map +1 -0
  98. package/dist/kimi-adapter-7FYOAKOI.js +6 -0
  99. package/dist/{kimi-adapter-JN4HFFHU.js.map → kimi-adapter-7FYOAKOI.js.map} +1 -1
  100. package/dist/{kimi-login-6LUWB7P6.js → kimi-login-3IGVOBJI.js} +9 -9
  101. package/dist/{kimi-login-6LUWB7P6.js.map → kimi-login-3IGVOBJI.js.map} +1 -1
  102. package/dist/logger-KGHUQ4VE.js +3 -0
  103. package/dist/logger-KGHUQ4VE.js.map +1 -0
  104. package/dist/model-discovery-AAJDHRFO.js +6 -0
  105. package/dist/model-discovery-AAJDHRFO.js.map +1 -0
  106. package/dist/native-cli-adapters-CLONTZOA.js +8 -0
  107. package/dist/{native-cli-adapters-OLW3XX57.js.map → native-cli-adapters-CLONTZOA.js.map} +1 -1
  108. package/dist/ollama-adapter-2N5OQIEV.js +5 -0
  109. package/dist/{ollama-adapter-OJQ3FKWK.js.map → ollama-adapter-2N5OQIEV.js.map} +1 -1
  110. package/dist/pathResolver-UVAB2FCW.js +3 -0
  111. package/dist/pathResolver-UVAB2FCW.js.map +1 -0
  112. package/dist/profile-loader-EMLV4J7S.js +162 -0
  113. package/dist/profile-loader-EMLV4J7S.js.map +1 -0
  114. package/dist/registry-LRURZVUL.js +5 -0
  115. package/dist/{registry-AZ2LOHHJ.js.map → registry-LRURZVUL.js.map} +1 -1
  116. package/dist/registry-MVNSXCEF.js +6 -0
  117. package/dist/{registry-H7B3AHPQ.js.map → registry-MVNSXCEF.js.map} +1 -1
  118. package/dist/server-manager-THGZBBZB.js +5 -0
  119. package/dist/{server-manager-PTGBHCLS.js.map → server-manager-THGZBBZB.js.map} +1 -1
  120. package/dist/session-manager-X3DXT53M.js +12 -0
  121. package/dist/{session-manager-XOMDMC77.js.map → session-manager-X3DXT53M.js.map} +1 -1
  122. package/dist/skills/built-in/code-review/SKILL.md +85 -0
  123. package/dist/skills/built-in/commit/SKILL.md +83 -0
  124. package/dist/skills/built-in/debug/SKILL.md +119 -0
  125. package/dist/skills/built-in/plan/SKILL.md +123 -0
  126. package/dist/skills/built-in/refactor/SKILL.md +132 -0
  127. package/dist/skills/built-in/test/SKILL.md +128 -0
  128. package/dist/sqlite-store-7OECRTXM.js +5 -0
  129. package/dist/sqlite-store-7OECRTXM.js.map +1 -0
  130. package/dist/team-manager-2VSMALAA.js +11 -0
  131. package/dist/{team-manager-HC4XGCFY.js.map → team-manager-2VSMALAA.js.map} +1 -1
  132. package/dist/team-state-HZNVMQHT.js +3 -0
  133. package/dist/team-state-HZNVMQHT.js.map +1 -0
  134. package/dist/tmux-manager-57QCUVHU.js +6 -0
  135. package/dist/{tmux-manager-GPYZ3WQH.js.map → tmux-manager-57QCUVHU.js.map} +1 -1
  136. package/dist/tools-KWFSYT56.js +6 -0
  137. package/dist/{tools-TSMXMHIF.js.map → tools-KWFSYT56.js.map} +1 -1
  138. package/package.json +11 -11
  139. package/dist/App-FKRSMFMB.js +0 -2789
  140. package/dist/App-FKRSMFMB.js.map +0 -1
  141. package/dist/api-key-fallback-YQQBOQIL.js +0 -11
  142. package/dist/chunk-4IJD72YB.js.map +0 -1
  143. package/dist/chunk-6PDJ45T4.js.map +0 -1
  144. package/dist/chunk-CARHU3DO.js.map +0 -1
  145. package/dist/chunk-CGEV3ARR.js.map +0 -1
  146. package/dist/chunk-CS5X3BWX.js +0 -27
  147. package/dist/chunk-CS5X3BWX.js.map +0 -1
  148. package/dist/chunk-CYQNBB25.js.map +0 -1
  149. package/dist/chunk-DAHGLHNR.js.map +0 -1
  150. package/dist/chunk-H66O5Z2V.js.map +0 -1
  151. package/dist/chunk-HMJRPNPZ.js.map +0 -1
  152. package/dist/chunk-IYW62KKR.js.map +0 -1
  153. package/dist/chunk-LSOYPSAT.js.map +0 -1
  154. package/dist/chunk-MFBHNWGV.js.map +0 -1
  155. package/dist/chunk-MXZSI3AY.js.map +0 -1
  156. package/dist/chunk-NBR3GHMT.js.map +0 -1
  157. package/dist/chunk-RWCNNAL7.js.map +0 -1
  158. package/dist/chunk-TEVZS4FA.js.map +0 -1
  159. package/dist/chunk-UY2SYSEZ.js +0 -211
  160. package/dist/chunk-UY2SYSEZ.js.map +0 -1
  161. package/dist/chunk-WAHVZH7V.js +0 -260
  162. package/dist/chunk-WAHVZH7V.js.map +0 -1
  163. package/dist/chunk-WPP3PEDE.js +0 -234
  164. package/dist/chunk-WPP3PEDE.js.map +0 -1
  165. package/dist/chunk-Y5XVD2CD.js.map +0 -1
  166. package/dist/claude-adapter-QMLFMSP3.js +0 -6
  167. package/dist/claude-adapter-QMLFMSP3.js.map +0 -1
  168. package/dist/codex-login-GZIFXUWD.js.map +0 -1
  169. package/dist/config-store-W6FBCQAQ.js +0 -6
  170. package/dist/executor-6RIKIGXK.js +0 -4
  171. package/dist/gemini-adapter-6JIHZ7WI.js +0 -6
  172. package/dist/gemini-adapter-6JIHZ7WI.js.map +0 -1
  173. package/dist/kimi-adapter-JN4HFFHU.js +0 -6
  174. package/dist/native-cli-adapters-OLW3XX57.js +0 -6
  175. package/dist/ollama-adapter-OJQ3FKWK.js +0 -6
  176. package/dist/openai-adapter-XU46EN7B.js +0 -6
  177. package/dist/openai-adapter-XU46EN7B.js.map +0 -1
  178. package/dist/registry-AZ2LOHHJ.js +0 -6
  179. package/dist/registry-H7B3AHPQ.js +0 -5
  180. package/dist/server-manager-PTGBHCLS.js +0 -5
  181. package/dist/session-manager-XOMDMC77.js +0 -12
  182. package/dist/team-manager-HC4XGCFY.js +0 -11
  183. package/dist/tmux-manager-GPYZ3WQH.js +0 -6
  184. package/dist/tools-TSMXMHIF.js +0 -6
package/dist/index.d.ts CHANGED
@@ -51,6 +51,7 @@ interface IChatMessage {
51
51
  readonly model?: string | undefined;
52
52
  readonly provider?: ProviderName | undefined;
53
53
  readonly toolCalls?: readonly IToolCall[] | undefined;
54
+ readonly toolCallId?: string | undefined;
54
55
  readonly tokenUsage?: ITokenUsage | undefined;
55
56
  readonly createdAt: Date;
56
57
  }
@@ -94,7 +95,7 @@ interface IToolParameter {
94
95
  readonly type: string;
95
96
  readonly description: string;
96
97
  readonly required: boolean;
97
- readonly default?: unknown | undefined;
98
+ readonly default?: unknown;
98
99
  readonly enum?: readonly string[] | undefined;
99
100
  }
100
101
  interface IToolDefinition {
@@ -123,8 +124,8 @@ type ToolCategory = "file" | "search" | "shell" | "web" | "git" | "mcp";
123
124
  interface IToolRegistration {
124
125
  readonly definition: IToolDefinition;
125
126
  readonly category: ToolCategory;
126
- readonly requiresApproval: (mode: PermissionMode, args: Record<string, unknown>) => boolean;
127
- readonly execute: (args: Record<string, unknown>) => Promise<IToolResult>;
127
+ readonly requiresApproval: (context: IToolExecutionContext, args: Record<string, unknown>) => boolean;
128
+ readonly execute: (args: Record<string, unknown>, context: IToolExecutionContext) => Promise<IToolResult>;
128
129
  }
129
130
  interface IToolExecutionContext {
130
131
  readonly workingDirectory: string;
@@ -189,7 +190,7 @@ interface IIPCMessage {
189
190
  readonly params: Record<string, unknown>;
190
191
  readonly id?: number | undefined;
191
192
  }
192
- type PaneLayout = "auto" | "horizontal" | "vertical" | "grid";
193
+ type PaneLayout = "auto" | "horizontal" | "vertical" | "grid" | "hub-spoke";
193
194
  interface IPaneConfig {
194
195
  readonly paneId: string;
195
196
  readonly agentName: string;
@@ -203,6 +204,12 @@ interface ILayoutConfig {
203
204
  readonly maxPanes: number;
204
205
  }
205
206
 
207
+ /**
208
+ * Orchestrator constants — shared across all orchestrator modules.
209
+ */
210
+
211
+ type CliProviderType = "claude-code" | "codex" | "gemini-cli" | "kimi-cli" | "ollama";
212
+
206
213
  /**
207
214
  * Configuration types per PRD section 17.3
208
215
  */
@@ -216,13 +223,19 @@ interface IPermissionConfig {
216
223
  readonly allowedPaths: readonly string[];
217
224
  readonly blockedCommands: readonly string[];
218
225
  }
219
- type PaneBackend = "tmux" | "iterm2";
226
+ type PaneBackend = "tmux" | "iterm2" | "ghostty" | "terminal-app";
220
227
  interface ISplitPanelConfig {
221
228
  readonly enabled: boolean;
222
229
  readonly backend: PaneBackend;
223
230
  readonly defaultLayout: PaneLayout;
224
231
  readonly maxPanes: number;
225
232
  }
233
+ interface ISwarmConfig {
234
+ readonly onboardingComplete: boolean;
235
+ readonly detectedProviders: readonly CliProviderType[];
236
+ readonly primaryMasterProvider?: CliProviderType | undefined;
237
+ readonly fallbackMasterProviders: readonly CliProviderType[];
238
+ }
226
239
  interface ICostConfig {
227
240
  readonly budgetWarning: number;
228
241
  readonly budgetHardStop: number;
@@ -252,6 +265,7 @@ interface IGlobalConfig {
252
265
  readonly providers: Partial<Record<ProviderName, IProviderConfig>>;
253
266
  readonly permissions: IPermissionConfig;
254
267
  readonly splitPanel: ISplitPanelConfig;
268
+ readonly swarm: ISwarmConfig;
255
269
  readonly cost: ICostConfig;
256
270
  readonly telemetry: ITelemetryConfig;
257
271
  readonly oauth?: IOAuthConfig | undefined;
@@ -801,6 +815,7 @@ declare class TaskOrchestrator {
801
815
  interface IModelProvider {
802
816
  readonly name: string;
803
817
  readonly supportedModels: readonly string[];
818
+ readonly supportsToolCalling: boolean;
804
819
  /** Send a non-streaming chat request. */
805
820
  chat(request: IChatRequest): Promise<IChatResponse>;
806
821
  /** Send a streaming chat request returning an async iterable of chunks. */
@@ -877,57 +892,6 @@ declare class ProviderRegistry {
877
892
  listAllAvailableModels(): Promise<Map<string, readonly string[]>>;
878
893
  }
879
894
 
880
- /**
881
- * Claude (Anthropic) adapter via Vercel AI SDK per PRD section 7.1
882
- * Supports Claude Opus 4.6, Sonnet 4.6, Haiku 4.5
883
- */
884
-
885
- declare class ClaudeAdapter implements IModelProvider {
886
- readonly name: ProviderName;
887
- readonly supportedModels: readonly string[];
888
- private readonly anthropic;
889
- constructor(options?: IProviderOptions);
890
- chat(request: IChatRequest): Promise<IChatResponse>;
891
- stream(request: IChatRequest): AsyncIterable<IStreamChunk>;
892
- countTokens(text: string, _model: string): Promise<number>;
893
- getModelInfo(model: string): IModelInfo;
894
- }
895
-
896
- /**
897
- * OpenAI adapter via Vercel AI SDK per PRD section 7.1
898
- * Supports GPT-5.3 Codex, GPT-5.2, GPT-5.1 Codex series
899
- */
900
-
901
- declare class OpenAIAdapter implements IModelProvider {
902
- readonly name: ProviderName;
903
- readonly supportedModels: readonly string[];
904
- private readonly openai;
905
- private readonly apiKey;
906
- private readonly baseUrl;
907
- constructor(options?: IProviderOptions);
908
- chat(request: IChatRequest): Promise<IChatResponse>;
909
- stream(request: IChatRequest): AsyncIterable<IStreamChunk>;
910
- countTokens(text: string, _model: string): Promise<number>;
911
- getModelInfo(model: string): IModelInfo;
912
- listAvailableModels(): Promise<readonly string[]>;
913
- }
914
-
915
- /**
916
- * Gemini (Google) adapter via Vercel AI SDK per PRD section 7.1
917
- * Supports Gemini 2.5 Pro, Gemini 2.5 Flash
918
- */
919
-
920
- declare class GeminiAdapter implements IModelProvider {
921
- readonly name: ProviderName;
922
- readonly supportedModels: readonly string[];
923
- private readonly google;
924
- constructor(options?: IProviderOptions);
925
- chat(request: IChatRequest): Promise<IChatResponse>;
926
- stream(request: IChatRequest): AsyncIterable<IStreamChunk>;
927
- countTokens(text: string, _model: string): Promise<number>;
928
- getModelInfo(model: string): IModelInfo;
929
- }
930
-
931
895
  /**
932
896
  * Kimi (Moonshot) adapter — custom HTTP per PRD section 7.1
933
897
  * Uses OpenAI-compatible API format via fetch().
@@ -937,6 +901,7 @@ declare class GeminiAdapter implements IModelProvider {
937
901
  declare class KimiAdapter implements IModelProvider {
938
902
  readonly name: ProviderName;
939
903
  readonly supportedModels: readonly string[];
904
+ readonly supportsToolCalling = true;
940
905
  private readonly baseUrl;
941
906
  private readonly apiKey;
942
907
  constructor(options?: IProviderOptions);
@@ -956,6 +921,7 @@ declare class KimiAdapter implements IModelProvider {
956
921
 
957
922
  declare class OllamaAdapter implements IModelProvider {
958
923
  readonly name: ProviderName;
924
+ readonly supportsToolCalling = true;
959
925
  private readonly baseUrl;
960
926
  private cachedModels;
961
927
  constructor(options?: IProviderOptions);
@@ -987,7 +953,8 @@ interface ICLIResult {
987
953
  declare abstract class BaseNativeCLIAdapter implements IModelProvider {
988
954
  abstract readonly name: ProviderName;
989
955
  abstract readonly supportedModels: readonly string[];
990
- protected abstract runCLI(model: string, prompt: string): Promise<ICLIResult>;
956
+ readonly supportsToolCalling = false;
957
+ protected abstract runCLI(model: string, prompt: string, systemPrompt?: string): Promise<ICLIResult>;
991
958
  chat(request: IChatRequest): Promise<IChatResponse>;
992
959
  stream(request: IChatRequest): AsyncIterable<IStreamChunk>;
993
960
  countTokens(text: string, _model: string): Promise<number>;
@@ -997,22 +964,24 @@ declare abstract class BaseNativeCLIAdapter implements IModelProvider {
997
964
  declare class ClaudeNativeCLIAdapter extends BaseNativeCLIAdapter {
998
965
  readonly name: ProviderName;
999
966
  readonly supportedModels: readonly ["claude-opus-4-6", "claude-opus-4-6-1m", "claude-sonnet-4-6", "claude-sonnet-4-6-1m", "claude-haiku-4-5"];
1000
- protected runCLI(model: string, prompt: string): Promise<ICLIResult>;
967
+ /** Map internal model IDs to valid Claude CLI model IDs. */
968
+ private toCLIModelId;
969
+ protected runCLI(model: string, prompt: string, systemPrompt?: string): Promise<ICLIResult>;
1001
970
  }
1002
971
  declare class CodexNativeCLIAdapter extends BaseNativeCLIAdapter {
1003
972
  readonly name: ProviderName;
1004
973
  readonly supportedModels: readonly ["gpt-5.3-codex", "gpt-5.3-codex-spark", "gpt-5.2-codex", "gpt-5.1-codex-max", "gpt-5.2", "gpt-5.1-codex-mini"];
1005
- protected runCLI(model: string, prompt: string): Promise<ICLIResult>;
974
+ protected runCLI(model: string, prompt: string, systemPrompt?: string): Promise<ICLIResult>;
1006
975
  }
1007
976
  declare class GeminiNativeCLIAdapter extends BaseNativeCLIAdapter {
1008
977
  readonly name: ProviderName;
1009
978
  readonly supportedModels: readonly ["gemini-3-pro-preview", "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite"];
1010
- protected runCLI(model: string, prompt: string): Promise<ICLIResult>;
979
+ protected runCLI(model: string, prompt: string, systemPrompt?: string): Promise<ICLIResult>;
1011
980
  }
1012
981
  declare class KimiNativeCLIAdapter extends BaseNativeCLIAdapter {
1013
982
  readonly name: ProviderName;
1014
983
  readonly supportedModels: readonly ["kimi-for-coding"];
1015
- protected runCLI(_model: string, prompt: string): Promise<ICLIResult>;
984
+ protected runCLI(_model: string, prompt: string, systemPrompt?: string): Promise<ICLIResult>;
1016
985
  }
1017
986
 
1018
987
  /**
@@ -1036,7 +1005,7 @@ declare class ToolRegistry implements IToolRegistry {
1036
1005
  * Per PRD section 5.1
1037
1006
  */
1038
1007
 
1039
- declare function createDefaultRegistry(context: IToolExecutionContext): ToolRegistry;
1008
+ declare function createDefaultRegistry(_context: IToolExecutionContext): ToolRegistry;
1040
1009
 
1041
1010
  /**
1042
1011
  * Credential storage per PRD section 13.6
@@ -1134,8 +1103,8 @@ declare class SqliteStore {
1134
1103
  private runMigrations;
1135
1104
  prepare(sql: string): Database.Statement;
1136
1105
  run(sql: string, ...params: readonly unknown[]): Database.RunResult;
1137
- get<T>(sql: string, ...params: readonly unknown[]): T | undefined;
1138
- all<T>(sql: string, ...params: readonly unknown[]): T[];
1106
+ get(sql: string, ...params: unknown[]): unknown;
1107
+ all(sql: string, ...params: unknown[]): unknown[];
1139
1108
  transaction<T>(fn: () => T): T;
1140
1109
  close(): void;
1141
1110
  private registerCleanupHandlers;
@@ -1436,11 +1405,12 @@ interface ITeamCreateOptions {
1436
1405
  readonly agents: readonly IAgentDefinition[];
1437
1406
  readonly sessionId?: string;
1438
1407
  readonly cliEntryPoint?: string;
1408
+ readonly agentEnv?: Readonly<Record<string, string>>;
1439
1409
  }
1440
1410
  declare class TeamManager {
1441
1411
  private readonly activeTeams;
1442
1412
  /** Create a new team: config, directories, and agent process handles. */
1443
- createTeam(name: string, options: ITeamCreateOptions): Promise<ITeamConfig>;
1413
+ createTeam(name: string, options: ITeamCreateOptions): ITeamConfig;
1444
1414
  /** Start all agent processes for a team. */
1445
1415
  startAgents(teamName: string): Promise<void>;
1446
1416
  /** Gracefully shutdown and remove a team. */
@@ -1506,6 +1476,7 @@ declare class AgentProcess {
1506
1476
  constructor(config: IAgentConfig, options: IAgentProcessOptions);
1507
1477
  /** Spawn the child process. Throws AgentSpawnError on failure. */
1508
1478
  start(): Promise<void>;
1479
+ private buildChildEnv;
1509
1480
  /** Gracefully stop the agent. Falls back to SIGTERM after timeout. */
1510
1481
  stop(): Promise<void>;
1511
1482
  /** Kill and restart the agent process. */
@@ -1593,6 +1564,7 @@ declare class LayoutEngine {
1593
1564
  * Compute per-pane geometries based on layout type.
1594
1565
  */
1595
1566
  private computeGeometries;
1567
+ private computeHubSpokeLayout;
1596
1568
  /**
1597
1569
  * Horizontal split: all panes side by side.
1598
1570
  */
@@ -1696,10 +1668,11 @@ declare class TmuxManager {
1696
1668
  getPanes(): ReadonlyMap<string, ITmuxPaneInfo>;
1697
1669
  private splitPane;
1698
1670
  private getFirstPaneId;
1699
- private equalizeLayout;
1671
+ private applyLayoutPreset;
1700
1672
  private killSessionSilent;
1701
1673
  private assertNotDisposed;
1702
1674
  private assertSession;
1675
+ private requireSessionName;
1703
1676
  }
1704
1677
 
1705
1678
  /**
@@ -1764,7 +1737,7 @@ declare class ITerm2Manager {
1764
1737
  * JSON-RPC 2.0 protocol with HMAC authentication per PRD section 9.4 & 14.5.
1765
1738
  */
1766
1739
 
1767
- type MethodHandler = (clientId: string, params: Record<string, unknown>, id: number | undefined, socket: Socket) => Promise<unknown>;
1740
+ type MethodHandler = (clientId: string, params: Record<string, unknown>, id: number | undefined, socket: Socket) => unknown;
1768
1741
  declare class IPCHub {
1769
1742
  private readonly sessionId;
1770
1743
  private readonly hmacSecret;
@@ -1787,7 +1760,7 @@ declare class IPCHub {
1787
1760
  /** Register a custom method handler. */
1788
1761
  onMethod(method: string, handler: MethodHandler): void;
1789
1762
  /** Compute HMAC-SHA256 for a message. */
1790
- computeHmac(message: IIPCMessage): string;
1763
+ computeHmac(message: unknown): string;
1791
1764
  /** Register a connected socket as a client (also called by agent.register). */
1792
1765
  registerClientSocket(agentId: string, agentName: string, socket: Socket): void;
1793
1766
  /** Gracefully shut down the hub and all connections. */
@@ -1797,6 +1770,8 @@ declare class IPCHub {
1797
1770
  private registerDefaultHandlers;
1798
1771
  private verifyHmac;
1799
1772
  private isAuthEnvelope;
1773
+ private isIPCMessage;
1774
+ private getRequestId;
1800
1775
  private write;
1801
1776
  private sendResult;
1802
1777
  private sendError;
@@ -1820,6 +1795,7 @@ interface IPaneProcessOptions {
1820
1795
  }
1821
1796
  type MessageHandler = (message: IIPCMessage) => void;
1822
1797
  declare class PaneProcess {
1798
+ private static readonly resolvedPromise;
1823
1799
  private readonly agentId;
1824
1800
  private readonly agentName;
1825
1801
  private readonly socketPath;
@@ -1903,7 +1879,7 @@ declare class SkillLoader {
1903
1879
  * Progressive loading: only name + description loaded initially (~100 tokens each).
1904
1880
  */
1905
1881
 
1906
- type SkillSource = "project" | "user" | "built-in";
1882
+ type SkillSource = "project" | "user" | "universal" | "built-in";
1907
1883
  interface ISkillSummary {
1908
1884
  readonly name: string;
1909
1885
  readonly description: string;
@@ -2207,4 +2183,4 @@ declare class MCPToolBridge {
2207
2183
  private createRegistration;
2208
2184
  }
2209
2185
 
2210
- export { AemeathError, type AgentMessageType, AgentProcess, AgentSpawnError, AuthenticationError, ClaudeAdapter, ClaudeNativeCLIAdapter, CodexNativeCLIAdapter, ConfigStore, ContextManager, ContextOverflowError, ConversationStore, CostTracker, CredentialStore, DEFAULT_CONFIG, DEFAULT_MODEL_ID, ExecutionTimeoutError, FileNotFoundError, GeminiAdapter, GeminiNativeCLIAdapter, type IAgentConfig, type IAgentMessage, type IAgentState, type IChatMessage, type IChatRequest, type IChatResponse, type ICredential, type IGlobalConfig, type ILayoutConfig, type IMCPConfig, type IModelInfo, type IModelProvider, type IModelResolution, IPCError, IPCHub, type IPaneConfig, type IProviderOptions, type IRoleConfig, type ISkillDefinition, type IStreamChunk, type ITask, type ITeamConfig, ITerm2Manager, type ITokenUsage, type IToolCall, type IToolDefinition, type IToolExecutionContext, type IToolParameter, type IToolRegistration, type IToolRegistry, type IToolResult, InvalidConfigError, KimiAdapter, KimiNativeCLIAdapter, LayoutEngine, MCPClient, MCPServerManager, MCPToolBridge, MessageBus, type MessageRole, MissingConfigError, ModelNotFoundError, type ModelRole, ModelRouter, OllamaAdapter, OpenAIAdapter, type PaneLayout, PaneProcess, PermissionDeniedError, PermissionManager, type PermissionMode, PlanApproval, type ProviderName, ProviderRegistry, RateLimitError, SUPPORTED_MODELS, ServerConnectionError, SessionManager, SkillExecutor, SkillLoader, SkillRegistry, SqliteStore, TaskOrchestrator, type TaskStatus, TaskStore, TeamManager, TmuxManager, ToolCallError, type ToolCategory, ToolRegistry, createDefaultRegistry, createModelRouter, getEventBus };
2186
+ export { AemeathError, type AgentMessageType, AgentProcess, AgentSpawnError, AuthenticationError, ClaudeNativeCLIAdapter, CodexNativeCLIAdapter, ConfigStore, ContextManager, ContextOverflowError, ConversationStore, CostTracker, CredentialStore, DEFAULT_CONFIG, DEFAULT_MODEL_ID, ExecutionTimeoutError, FileNotFoundError, GeminiNativeCLIAdapter, type IAgentConfig, type IAgentMessage, type IAgentState, type IChatMessage, type IChatRequest, type IChatResponse, type ICredential, type IGlobalConfig, type ILayoutConfig, type IMCPConfig, type IModelInfo, type IModelProvider, type IModelResolution, IPCError, IPCHub, type IPaneConfig, type IProviderOptions, type IRoleConfig, type ISkillDefinition, type IStreamChunk, type ITask, type ITeamConfig, ITerm2Manager, type ITokenUsage, type IToolCall, type IToolDefinition, type IToolExecutionContext, type IToolParameter, type IToolRegistration, type IToolRegistry, type IToolResult, InvalidConfigError, KimiAdapter, KimiNativeCLIAdapter, LayoutEngine, MCPClient, MCPServerManager, MCPToolBridge, MessageBus, type MessageRole, MissingConfigError, ModelNotFoundError, type ModelRole, ModelRouter, OllamaAdapter, type PaneLayout, PaneProcess, PermissionDeniedError, PermissionManager, type PermissionMode, PlanApproval, type ProviderName, ProviderRegistry, RateLimitError, SUPPORTED_MODELS, ServerConnectionError, SessionManager, SkillExecutor, SkillLoader, SkillRegistry, SqliteStore, TaskOrchestrator, type TaskStatus, TaskStore, TeamManager, TmuxManager, ToolCallError, type ToolCategory, ToolRegistry, createDefaultRegistry, createModelRouter, getEventBus };