agent-afk 5.219.3 → 5.219.4

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.
@@ -1,4 +1,4 @@
1
- export type { Surface, PhaseRole, SubagentStatusLite, SubagentStatusLiteValue, BgJobLite, BgJobStatus, McpServerSummary, RuntimeSelf, RuntimeTools, RuntimeSubagents, RuntimeWorkspace, RuntimeSnapshot, RuntimeView, RuntimeStateSource, } from './types.js';
1
+ export type { Surface, PhaseRole, SubagentStatusLite, SubagentStatusLiteValue, BgJobLite, BgJobStatus, McpServerSummary, McpFailedServer, RuntimeSelf, RuntimeTools, RuntimeSubagents, RuntimeWorkspace, RuntimeSnapshot, RuntimeView, RuntimeStateSource, } from './types.js';
2
2
  export { buildRuntimeSnapshot, parseView, formatEnvironmentFragment, formatEnvironmentDateLine, } from './runtime-snapshot.js';
3
3
  export { buildRuntimeStateSource, type RuntimeSourceDeps, } from './runtime-source.js';
4
4
  export { getRuntimeStateTool, AWARENESS_TOOL_NAMES, createGetRuntimeStateHandler, wrapDispatcherWithRuntimeState, } from './tool.js';
@@ -13,6 +13,11 @@ export interface RuntimeSourceDeps {
13
13
  phaseRole?: PhaseRole | undefined;
14
14
  getEnabledToolNames: () => string[];
15
15
  getMcpTools: () => readonly AnthropicToolDef[];
16
+ getMcpServerStates: () => readonly {
17
+ serverName: string;
18
+ status: string;
19
+ error?: string;
20
+ }[];
16
21
  getSubagents: () => RuntimeSubagents;
17
22
  }
18
23
  export declare function buildRuntimeStateSource(deps: RuntimeSourceDeps): RuntimeStateSource;
@@ -20,9 +20,14 @@ export interface McpServerSummary {
20
20
  name: string;
21
21
  toolCount: number;
22
22
  }
23
+ export interface McpFailedServer {
24
+ name: string;
25
+ reason: string;
26
+ }
23
27
  export interface RuntimeTools {
24
28
  enabled: string[];
25
29
  mcpServers: McpServerSummary[];
30
+ failedServers: McpFailedServer[];
26
31
  }
27
32
  export interface SubagentStatusLite {
28
33
  id: string;
@@ -16,6 +16,11 @@ export interface DispatcherWiringArgs {
16
16
  sharedWriteRoots: string[] | undefined;
17
17
  getCwd: () => string;
18
18
  getMcpTools: () => readonly AnthropicToolDef[];
19
+ getMcpServerStates: () => readonly {
20
+ serverName: string;
21
+ status: string;
22
+ error?: string;
23
+ }[];
19
24
  getSubagents: () => RuntimeSubagents;
20
25
  getMintedSessionId: () => string | null;
21
26
  setMintedSessionId: (value: string | null) => void;