aisnitch 0.2.20 → 0.2.22

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.
package/dist/index.d.cts CHANGED
@@ -68,6 +68,8 @@ declare const ConfigSchema: z.ZodObject<{
68
68
  kiro: "kiro";
69
69
  "augment-code": "augment-code";
70
70
  mistral: "mistral";
71
+ zed: "zed";
72
+ pi: "pi";
71
73
  unknown: "unknown";
72
74
  }> & z.core.$partial, z.ZodObject<{
73
75
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -106,7 +108,7 @@ type AISnitchConfig = infer<typeof ConfigSchema>;
106
108
  * @description Runtime Zod schemas and constants for the AISnitch CloudEvents-based event contract.
107
109
  * @functions
108
110
  * → createUuidV7
109
- * @exports AISNITCH_EVENT_TYPES, TOOL_NAMES, ERROR_TYPES, CESP_CATEGORIES, ToolInputSchema, EventDataSchema, AISnitchEventTypeSchema, ToolNameSchema, ErrorTypeSchema, CESPCategorySchema, AISnitchEventSchema, createUuidV7
111
+ * @exports AISNITCH_EVENT_TYPES, TOOL_NAMES, ERROR_TYPES, CESP_CATEGORIES, ToolInputSchema, ToolCallNameSchema, ThinkingContentSchema, FinalMessageSchema, ToolResultSchema, MessageContentSchema, EventDataSchema, AISnitchEventTypeSchema, ToolNameSchema, ErrorTypeSchema, CESPCategorySchema, AISnitchEventSchema, createUuidV7
110
112
  * @see ./types.ts
111
113
  * @see ./cesp.ts
112
114
  * @see ./factory.ts
@@ -119,7 +121,7 @@ declare const AISNITCH_EVENT_TYPES: readonly ["session.start", "session.end", "t
119
121
  /**
120
122
  * Supported AI tool identifiers recognized by AISnitch.
121
123
  */
122
- declare const TOOL_NAMES: readonly ["claude-code", "opencode", "gemini-cli", "codex", "goose", "copilot-cli", "cursor", "aider", "amp", "cline", "continue", "windsurf", "qwen-code", "openclaw", "openhands", "kilo", "devin", "kiro", "augment-code", "mistral", "unknown"];
124
+ declare const TOOL_NAMES: readonly ["claude-code", "opencode", "gemini-cli", "codex", "goose", "copilot-cli", "cursor", "aider", "amp", "cline", "continue", "windsurf", "qwen-code", "openclaw", "openhands", "kilo", "devin", "kiro", "augment-code", "mistral", "zed", "pi", "unknown"];
123
125
  /**
124
126
  * Normalized error categories attached to `agent.error` events.
125
127
  */
@@ -139,6 +141,34 @@ declare const ToolInputSchema: z.ZodObject<{
139
141
  filePath: z.ZodOptional<z.ZodString>;
140
142
  command: z.ZodOptional<z.ZodString>;
141
143
  }, z.core.$strict>;
144
+ /**
145
+ * 📖 Thinking content extracted from AI model reasoning chains.
146
+ * This field captures the internal "thinking" or reasoning output that
147
+ * models like Claude produce before generating their final response.
148
+ */
149
+ declare const ThinkingContentSchema: z.ZodString;
150
+ /**
151
+ * 📖 Tool call name — the specific tool being invoked.
152
+ * Examples: "Edit", "Bash", "Grep", "Read", "Write", "WebSearch"
153
+ * Different from `toolInput` which contains the tool's parameters.
154
+ */
155
+ declare const ToolCallNameSchema: z.ZodString;
156
+ /**
157
+ * 📖 Final message shown at the end of an AI run.
158
+ * This is typically a summary, completion message, or result text
159
+ * displayed to the user after the agent finishes its work.
160
+ */
161
+ declare const FinalMessageSchema: z.ZodString;
162
+ /**
163
+ * 📖 Tool execution result — short result from a tool call.
164
+ * Can include success messages, error messages, or short outputs.
165
+ */
166
+ declare const ToolResultSchema: z.ZodString;
167
+ /**
168
+ * 📖 Raw message content from AI responses.
169
+ * Captures the actual text generated by the model before tool calls.
170
+ */
171
+ declare const MessageContentSchema: z.ZodString;
142
172
  /**
143
173
  * Runtime schema for the supported tool names.
144
174
  */
@@ -163,6 +193,8 @@ declare const ToolNameSchema: z.ZodEnum<{
163
193
  kiro: "kiro";
164
194
  "augment-code": "augment-code";
165
195
  mistral: "mistral";
196
+ zed: "zed";
197
+ pi: "pi";
166
198
  unknown: "unknown";
167
199
  }>;
168
200
  /**
@@ -234,6 +266,9 @@ declare const EventDataSchema: z.ZodObject<{
234
266
  activeFile: z.ZodOptional<z.ZodString>;
235
267
  model: z.ZodOptional<z.ZodString>;
236
268
  tokensUsed: z.ZodOptional<z.ZodNumber>;
269
+ inputTokens: z.ZodOptional<z.ZodNumber>;
270
+ outputTokens: z.ZodOptional<z.ZodNumber>;
271
+ cachedTokens: z.ZodOptional<z.ZodNumber>;
237
272
  errorMessage: z.ZodOptional<z.ZodString>;
238
273
  errorType: z.ZodOptional<z.ZodEnum<{
239
274
  rate_limit: "rate_limit";
@@ -248,6 +283,11 @@ declare const EventDataSchema: z.ZodObject<{
248
283
  instanceId: z.ZodOptional<z.ZodString>;
249
284
  instanceIndex: z.ZodOptional<z.ZodNumber>;
250
285
  instanceTotal: z.ZodOptional<z.ZodNumber>;
286
+ thinkingContent: z.ZodOptional<z.ZodString>;
287
+ toolCallName: z.ZodOptional<z.ZodString>;
288
+ finalMessage: z.ZodOptional<z.ZodString>;
289
+ toolResult: z.ZodOptional<z.ZodString>;
290
+ messageContent: z.ZodOptional<z.ZodString>;
251
291
  }, z.core.$strict>;
252
292
  /**
253
293
  * Runtime schema for the full normalized AISnitch event envelope.
@@ -292,6 +332,8 @@ declare const AISnitchEventSchema: z.ZodObject<{
292
332
  kiro: "kiro";
293
333
  "augment-code": "augment-code";
294
334
  mistral: "mistral";
335
+ zed: "zed";
336
+ pi: "pi";
295
337
  unknown: "unknown";
296
338
  }>;
297
339
  'aisnitch.sessionid': z.ZodString;
@@ -322,6 +364,9 @@ declare const AISnitchEventSchema: z.ZodObject<{
322
364
  activeFile: z.ZodOptional<z.ZodString>;
323
365
  model: z.ZodOptional<z.ZodString>;
324
366
  tokensUsed: z.ZodOptional<z.ZodNumber>;
367
+ inputTokens: z.ZodOptional<z.ZodNumber>;
368
+ outputTokens: z.ZodOptional<z.ZodNumber>;
369
+ cachedTokens: z.ZodOptional<z.ZodNumber>;
325
370
  errorMessage: z.ZodOptional<z.ZodString>;
326
371
  errorType: z.ZodOptional<z.ZodEnum<{
327
372
  rate_limit: "rate_limit";
@@ -336,6 +381,11 @@ declare const AISnitchEventSchema: z.ZodObject<{
336
381
  instanceId: z.ZodOptional<z.ZodString>;
337
382
  instanceIndex: z.ZodOptional<z.ZodNumber>;
338
383
  instanceTotal: z.ZodOptional<z.ZodNumber>;
384
+ thinkingContent: z.ZodOptional<z.ZodString>;
385
+ toolCallName: z.ZodOptional<z.ZodString>;
386
+ finalMessage: z.ZodOptional<z.ZodString>;
387
+ toolResult: z.ZodOptional<z.ZodString>;
388
+ messageContent: z.ZodOptional<z.ZodString>;
339
389
  }, z.core.$strict>;
340
390
  }, z.core.$strict>;
341
391
 
@@ -426,6 +476,9 @@ declare const NormalizedAdapterHookPayloadSchema: z.ZodObject<{
426
476
  activeFile: z.ZodOptional<z.ZodOptional<z.ZodString>>;
427
477
  model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
428
478
  tokensUsed: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
479
+ inputTokens: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
480
+ outputTokens: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
481
+ cachedTokens: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
429
482
  errorMessage: z.ZodOptional<z.ZodOptional<z.ZodString>>;
430
483
  errorType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
431
484
  rate_limit: "rate_limit";
@@ -440,6 +493,11 @@ declare const NormalizedAdapterHookPayloadSchema: z.ZodObject<{
440
493
  instanceId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
441
494
  instanceIndex: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
442
495
  instanceTotal: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
496
+ thinkingContent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
497
+ toolCallName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
498
+ finalMessage: z.ZodOptional<z.ZodOptional<z.ZodString>>;
499
+ toolResult: z.ZodOptional<z.ZodOptional<z.ZodString>>;
500
+ messageContent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
443
501
  }, z.core.$strict>>;
444
502
  pid: z.ZodOptional<z.ZodNumber>;
445
503
  transcriptPath: z.ZodOptional<z.ZodString>;
@@ -1036,6 +1094,91 @@ declare class OpenCodeAdapter extends BaseAdapter {
1036
1094
  private pollOpenCodeProcesses;
1037
1095
  }
1038
1096
 
1097
+ /**
1098
+ * @file src/adapters/pi.ts
1099
+ * @description Pi AI Agent adapter using Pi's local API and log monitoring.
1100
+ * @functions
1101
+ * → detectPiInstance
1102
+ * @exports PiAdapter
1103
+ * @see ./base.ts
1104
+ * @see ../core/events/types.ts
1105
+ */
1106
+
1107
+ /**
1108
+ * 📖 Pi is a coding agent by MiniMax. This adapter detects Pi activity through:
1109
+ * 1. Process detection (pgrep for pi processes)
1110
+ * 2. MiniMax API / local socket detection
1111
+ * 3. Log file monitoring
1112
+ */
1113
+ declare class PiAdapter extends BaseAdapter {
1114
+ readonly displayName = "Pi (MiniMax)";
1115
+ readonly name: "pi";
1116
+ readonly strategies: readonly InterceptionStrategy[];
1117
+ private readonly apiPort;
1118
+ private readonly logPath;
1119
+ private poller;
1120
+ private activePiSessions;
1121
+ private lastCheckedTime;
1122
+ constructor(options: AdapterRuntimeOptions);
1123
+ start(): Promise<void>;
1124
+ stop(): Promise<void>;
1125
+ handleHook(payload: unknown): Promise<void>;
1126
+ private startPolling;
1127
+ private pollPiActivity;
1128
+ private detectPiInstance;
1129
+ private checkMiniMaxApi;
1130
+ private processPiApiResponse;
1131
+ private emitSessionStart;
1132
+ private emitThinking;
1133
+ private emitToolCall;
1134
+ private emitOutput;
1135
+ private emitError;
1136
+ private emitIdle;
1137
+ private mapEventType;
1138
+ private buildEventData;
1139
+ }
1140
+
1141
+ /**
1142
+ * @file src/adapters/zed.ts
1143
+ * @description Zed AI Agent adapter using log file monitoring and IPC detection.
1144
+ * @functions
1145
+ * → extractZedEventFromLog
1146
+ * @exports ZedAdapter
1147
+ * @see ./base.ts
1148
+ * @see ../core/events/types.ts
1149
+ */
1150
+
1151
+ /**
1152
+ * 📖 Zed Agent (zed.dev) exposes a local HTTP API on port 9876 for its agent.
1153
+ * This adapter polls that endpoint and watches Zed's log file for activity.
1154
+ */
1155
+ declare class ZedAdapter extends BaseAdapter {
1156
+ readonly displayName = "Zed AI";
1157
+ readonly name: "zed";
1158
+ readonly strategies: readonly InterceptionStrategy[];
1159
+ private readonly logPaths;
1160
+ private readonly apiPort;
1161
+ private readonly pollIntervalMs;
1162
+ private poller;
1163
+ private lastEventTime;
1164
+ private activeZedSessions;
1165
+ constructor(options: AdapterRuntimeOptions);
1166
+ start(): Promise<void>;
1167
+ stop(): Promise<void>;
1168
+ handleHook(payload: unknown): Promise<void>;
1169
+ private startPolling;
1170
+ private pollZedStatus;
1171
+ private checkLogFiles;
1172
+ private parseLogContent;
1173
+ private extractZedEventFromLog;
1174
+ private emitSessionStart;
1175
+ private emitThinking;
1176
+ private emitToolCall;
1177
+ private emitIdle;
1178
+ private mapEventType;
1179
+ private buildEventData;
1180
+ }
1181
+
1039
1182
  /**
1040
1183
  * @file src/adapters/registry.ts
1041
1184
  * @description Adapter registry that owns built-in adapter instances and orchestrates their lifecycle.
@@ -1164,12 +1307,14 @@ declare function analyzeTerminalOutputChunk(input: {
1164
1307
  * @see ./codex.ts
1165
1308
  * @see ./openclaw.ts
1166
1309
  * @see ./opencode.ts
1310
+ * @see ./pi.ts
1311
+ * @see ./zed.ts
1167
1312
  */
1168
1313
 
1169
1314
  /**
1170
1315
  * Instantiates the built-in adapters that ship with AISnitch.
1171
1316
  */
1172
- declare function createDefaultAdapters(options: AdapterRuntimeOptions): readonly [AiderAdapter, ClaudeCodeAdapter, CopilotCLIAdapter, CursorAdapter, DevinAdapter, GeminiCLIAdapter, GooseAdapter, KiloAdapter, CodexAdapter, OpenClawAdapter, OpenCodeAdapter];
1317
+ declare function createDefaultAdapters(options: AdapterRuntimeOptions): readonly [AiderAdapter, ClaudeCodeAdapter, CopilotCLIAdapter, CursorAdapter, DevinAdapter, GeminiCLIAdapter, GooseAdapter, KiloAdapter, CodexAdapter, OpenClawAdapter, OpenCodeAdapter, PiAdapter, ZedAdapter];
1173
1318
 
1174
1319
  /**
1175
1320
  * @file src/core/errors.ts
@@ -2150,6 +2295,22 @@ declare class Pipeline {
2150
2295
  * Returns the in-process event bus for direct wiring in tests or future TUI code.
2151
2296
  */
2152
2297
  getEventBus(): EventBus;
2298
+ /**
2299
+ * Returns the adapter registry for graceful shutdown coordination.
2300
+ */
2301
+ getAdapterRegistry(): AdapterRegistry | undefined;
2302
+ /**
2303
+ * Returns the HTTP receiver for graceful shutdown coordination.
2304
+ */
2305
+ getHttpReceiver(): HTTPReceiver;
2306
+ /**
2307
+ * Returns the UDS server for graceful shutdown coordination.
2308
+ */
2309
+ getUdsServer(): UDSServer;
2310
+ /**
2311
+ * Returns the WebSocket server for graceful shutdown coordination.
2312
+ */
2313
+ getWsServer(): WSServer;
2153
2314
  private getHealthSnapshot;
2154
2315
  private handleHook;
2155
2316
  private handleHookInner;
@@ -3931,4 +4092,4 @@ declare function renderAttachedTui(options: AttachedTuiOptions): Promise<void>;
3931
4092
  */
3932
4093
  declare function renderManagedTui(options: ManagedTuiOptions): Promise<void>;
3933
4094
 
3934
- export { AISNITCH_DESCRIPTION, AISNITCH_EVENT_TYPES, AISNITCH_PACKAGE_NAME, AISNITCH_VERSION, type AISnitchConfig, AISnitchError, type AISnitchEvent, AISnitchEventSchema, type AISnitchEventType, AISnitchEventTypeSchema, type AISnitchLoggerLevel, type AISnitchScaffoldInfo, AUTO_UPDATE_MANAGERS, type AdapterConfig, AdapterConfigSchema, AdapterError, type AdapterPublishContext, AdapterRegistry, type AdapterRuntimeOptions, type AdapterStatus, AiderAdapter, type AiderAdapterOptions, type AiderHistoryObservation, type AiderHistoryParseResult, App, type AppProps, type AttachedTuiOptions, type AutoUpdateConfig, AutoUpdateConfigSchema, BaseAdapter, type CESPCategory, CESPCategorySchema, CESP_CATEGORIES, CESP_MAP, CircuitBreaker, type CircuitBreakerOptions, CircuitOpenError, type CircuitState, ClaudeCodeAdapter, type ClaudeCodeAdapterOptions, CodexAdapter, type CodexAdapterOptions, type ConfigPathOptions, ConfigSchema, ContextDetector, CopilotCLIAdapter, type CopilotCLIAdapterOptions, type CreateEventInput, CursorAdapter, type CursorAdapterOptions, DEFAULT_CONFIG, DEFAULT_TIMEOUTS, DEFAULT_TUI_FILTERS, DEFAULT_VISIBLE_EVENT_COUNT, DefaultRetryOptions, DevinAdapter, type DevinAdapterOptions, ERROR_TYPES, EVENT_COLORS, EVENT_ICONS, EVENT_STREAM_LIMIT, type EnrichedContextFields, type ErrorType, ErrorTypeSchema, EventBus, type EventBusStats, type EventData, EventDataSchema, type EventHandler, EventLine, type EventLineProps, EventStream, type EventStreamProps, type EventStreamSource, FilterBar, type FilterBarProps, type FocusedPanel, type ForegroundTuiOptions, GeminiCLIAdapter, type GeminiCLIAdapterOptions, type GenericPTYObservation, GenericPTYSession, type GenericPTYSessionOptions, type GlobalActivityStatus, GlobalBadge, type GlobalBadgeProps, GooseAdapter, type GooseAdapterOptions, GracefulShutdownManager, HTTPReceiver, type HTTPReceiverStartOptions, type HTTPReceiverStats, Header, type HeaderProps, type HealthSnapshot, HelpOverlay, type HookHandler, type InterceptionStrategy, KiloAdapter, type KiloAdapterOptions, LOG_LEVELS, MAX_GENERIC_STRING_LENGTH, MAX_LABEL_LENGTH, MAX_PATH_LENGTH, MAX_PORT, MIN_PORT, ManagedDaemonApp, type ManagedDaemonAppProps, type ManagedTuiOptions, type ManagedTuiSnapshot, type MonitorCloseHandler, type MonitorOutput, NetworkError, type NormalizedAdapterHookPayload, OpenClawAdapter, type OpenClawAdapterOptions, OpenCodeAdapter, type OpenCodeAdapterOptions, Panel, type PanelProps, PanelStack, type PanelStackProps, Pipeline, PipelineError, type PipelineStartOptions, type PipelineStatus, type PortResolutionOptions, type ProcessContext, type ProcessInfo, type Result, type RetryOptions, RingBuffer, SESSION_STALE_AFTER_MS, SHARED_BREAKERS, type SelectorOption, type SessionFilterTarget, type SessionIdentityInput, SessionPanel, type SessionPanelProps, type SessionState, type ShutdownComponents, StatusBar, type StatusBarProps, TOOL_COLORS, TOOL_NAMES, TUI_THEME, TUI_VIEW_MODES, TimeoutError, type TimeoutName, type ToolInput, ToolInputSchema, type ToolName, ToolNameSchema, type TuiDaemonSnapshot, type TuiFilters, type TuiInitialFilters, type TuiInteractionMode, type TuiStatusSnapshot, type TuiThemeColor, type TuiViewMode, UDSServer, type UDSServerStartOptions, type UDSServerStats, type UseEventStreamOptions, type UseEventStreamState, type UseKeyBindsOptions, type UseKeyBindsState, ValidationError, WSServer, type WSServerStartOptions, type WSServerStats, type WelcomeMessage, analyzeTerminalOutputChunk, appendEventToStream, applyEventFilters, applySessionFilters, attachEventBusMonitor, attachWebSocketMonitor, countActiveFilters, createDefaultAdapters, createEvent, createUuidV7, deriveGlobalActivityStatus, deriveSessions, ensureConfigDir, err, fireAndForgetRetry, flatMap, formatEventDetail, formatEventLine, formatEventTime, formatSessionLabel, formatSessionLabelFromEvent, formatSessionShortId, formatWelcomeLine, fromPromise, fromSync, getAISnitchHomePath, getArray, getBoolean, getCESPCategory, getConfigPath, getNumber, getObject, getPackageScaffoldInfo, getPendingFrozenEventCount, getPort, getPositiveNumber, getSafeInteger, getSeqnum, getSocketPath, getString, getStringWithMaxLength, getTimeout, getVisibleEventWindow, isAISnitchError, isErr, isGenericSessionId, isNotNull, isOk, isRecord, isRetryableError, isTimeoutError, isValidPathLength, isValidPort, isValidStringLength, loadConfig, logger, mapErr, mapOk, ok, parseAiderHistoryMarkdown, renderAttachedTui, renderForegroundTui, renderManagedTui, resolveAvailablePort, resolveSessionId, saveConfig, setLoggerLevel, shutdownInOrder, sleep, timeoutWarning, useEventStream, useKeyBinds, useSessions, withOverallShutdownTimeout, withRetry, withRetryOn, withShutdownTimeout, withTimeout };
4095
+ export { AISNITCH_DESCRIPTION, AISNITCH_EVENT_TYPES, AISNITCH_PACKAGE_NAME, AISNITCH_VERSION, type AISnitchConfig, AISnitchError, type AISnitchEvent, AISnitchEventSchema, type AISnitchEventType, AISnitchEventTypeSchema, type AISnitchLoggerLevel, type AISnitchScaffoldInfo, AUTO_UPDATE_MANAGERS, type AdapterConfig, AdapterConfigSchema, AdapterError, type AdapterPublishContext, AdapterRegistry, type AdapterRuntimeOptions, type AdapterStatus, AiderAdapter, type AiderAdapterOptions, type AiderHistoryObservation, type AiderHistoryParseResult, App, type AppProps, type AttachedTuiOptions, type AutoUpdateConfig, AutoUpdateConfigSchema, BaseAdapter, type CESPCategory, CESPCategorySchema, CESP_CATEGORIES, CESP_MAP, CircuitBreaker, type CircuitBreakerOptions, CircuitOpenError, type CircuitState, ClaudeCodeAdapter, type ClaudeCodeAdapterOptions, CodexAdapter, type CodexAdapterOptions, type ConfigPathOptions, ConfigSchema, ContextDetector, CopilotCLIAdapter, type CopilotCLIAdapterOptions, type CreateEventInput, CursorAdapter, type CursorAdapterOptions, DEFAULT_CONFIG, DEFAULT_TIMEOUTS, DEFAULT_TUI_FILTERS, DEFAULT_VISIBLE_EVENT_COUNT, DefaultRetryOptions, DevinAdapter, type DevinAdapterOptions, ERROR_TYPES, EVENT_COLORS, EVENT_ICONS, EVENT_STREAM_LIMIT, type EnrichedContextFields, type ErrorType, ErrorTypeSchema, EventBus, type EventBusStats, type EventData, EventDataSchema, type EventHandler, EventLine, type EventLineProps, EventStream, type EventStreamProps, type EventStreamSource, FilterBar, type FilterBarProps, FinalMessageSchema, type FocusedPanel, type ForegroundTuiOptions, GeminiCLIAdapter, type GeminiCLIAdapterOptions, type GenericPTYObservation, GenericPTYSession, type GenericPTYSessionOptions, type GlobalActivityStatus, GlobalBadge, type GlobalBadgeProps, GooseAdapter, type GooseAdapterOptions, GracefulShutdownManager, HTTPReceiver, type HTTPReceiverStartOptions, type HTTPReceiverStats, Header, type HeaderProps, type HealthSnapshot, HelpOverlay, type HookHandler, type InterceptionStrategy, KiloAdapter, type KiloAdapterOptions, LOG_LEVELS, MAX_GENERIC_STRING_LENGTH, MAX_LABEL_LENGTH, MAX_PATH_LENGTH, MAX_PORT, MIN_PORT, ManagedDaemonApp, type ManagedDaemonAppProps, type ManagedTuiOptions, type ManagedTuiSnapshot, MessageContentSchema, type MonitorCloseHandler, type MonitorOutput, NetworkError, type NormalizedAdapterHookPayload, OpenClawAdapter, type OpenClawAdapterOptions, OpenCodeAdapter, type OpenCodeAdapterOptions, Panel, type PanelProps, PanelStack, type PanelStackProps, PiAdapter, Pipeline, PipelineError, type PipelineStartOptions, type PipelineStatus, type PortResolutionOptions, type ProcessContext, type ProcessInfo, type Result, type RetryOptions, RingBuffer, SESSION_STALE_AFTER_MS, SHARED_BREAKERS, type SelectorOption, type SessionFilterTarget, type SessionIdentityInput, SessionPanel, type SessionPanelProps, type SessionState, type ShutdownComponents, StatusBar, type StatusBarProps, TOOL_COLORS, TOOL_NAMES, TUI_THEME, TUI_VIEW_MODES, ThinkingContentSchema, TimeoutError, type TimeoutName, ToolCallNameSchema, type ToolInput, ToolInputSchema, type ToolName, ToolNameSchema, ToolResultSchema, type TuiDaemonSnapshot, type TuiFilters, type TuiInitialFilters, type TuiInteractionMode, type TuiStatusSnapshot, type TuiThemeColor, type TuiViewMode, UDSServer, type UDSServerStartOptions, type UDSServerStats, type UseEventStreamOptions, type UseEventStreamState, type UseKeyBindsOptions, type UseKeyBindsState, ValidationError, WSServer, type WSServerStartOptions, type WSServerStats, type WelcomeMessage, ZedAdapter, analyzeTerminalOutputChunk, appendEventToStream, applyEventFilters, applySessionFilters, attachEventBusMonitor, attachWebSocketMonitor, countActiveFilters, createDefaultAdapters, createEvent, createUuidV7, deriveGlobalActivityStatus, deriveSessions, ensureConfigDir, err, fireAndForgetRetry, flatMap, formatEventDetail, formatEventLine, formatEventTime, formatSessionLabel, formatSessionLabelFromEvent, formatSessionShortId, formatWelcomeLine, fromPromise, fromSync, getAISnitchHomePath, getArray, getBoolean, getCESPCategory, getConfigPath, getNumber, getObject, getPackageScaffoldInfo, getPendingFrozenEventCount, getPort, getPositiveNumber, getSafeInteger, getSeqnum, getSocketPath, getString, getStringWithMaxLength, getTimeout, getVisibleEventWindow, isAISnitchError, isErr, isGenericSessionId, isNotNull, isOk, isRecord, isRetryableError, isTimeoutError, isValidPathLength, isValidPort, isValidStringLength, loadConfig, logger, mapErr, mapOk, ok, parseAiderHistoryMarkdown, renderAttachedTui, renderForegroundTui, renderManagedTui, resolveAvailablePort, resolveSessionId, saveConfig, setLoggerLevel, shutdownInOrder, sleep, timeoutWarning, useEventStream, useKeyBinds, useSessions, withOverallShutdownTimeout, withRetry, withRetryOn, withShutdownTimeout, withTimeout };
package/dist/index.d.ts CHANGED
@@ -68,6 +68,8 @@ declare const ConfigSchema: z.ZodObject<{
68
68
  kiro: "kiro";
69
69
  "augment-code": "augment-code";
70
70
  mistral: "mistral";
71
+ zed: "zed";
72
+ pi: "pi";
71
73
  unknown: "unknown";
72
74
  }> & z.core.$partial, z.ZodObject<{
73
75
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -106,7 +108,7 @@ type AISnitchConfig = infer<typeof ConfigSchema>;
106
108
  * @description Runtime Zod schemas and constants for the AISnitch CloudEvents-based event contract.
107
109
  * @functions
108
110
  * → createUuidV7
109
- * @exports AISNITCH_EVENT_TYPES, TOOL_NAMES, ERROR_TYPES, CESP_CATEGORIES, ToolInputSchema, EventDataSchema, AISnitchEventTypeSchema, ToolNameSchema, ErrorTypeSchema, CESPCategorySchema, AISnitchEventSchema, createUuidV7
111
+ * @exports AISNITCH_EVENT_TYPES, TOOL_NAMES, ERROR_TYPES, CESP_CATEGORIES, ToolInputSchema, ToolCallNameSchema, ThinkingContentSchema, FinalMessageSchema, ToolResultSchema, MessageContentSchema, EventDataSchema, AISnitchEventTypeSchema, ToolNameSchema, ErrorTypeSchema, CESPCategorySchema, AISnitchEventSchema, createUuidV7
110
112
  * @see ./types.ts
111
113
  * @see ./cesp.ts
112
114
  * @see ./factory.ts
@@ -119,7 +121,7 @@ declare const AISNITCH_EVENT_TYPES: readonly ["session.start", "session.end", "t
119
121
  /**
120
122
  * Supported AI tool identifiers recognized by AISnitch.
121
123
  */
122
- declare const TOOL_NAMES: readonly ["claude-code", "opencode", "gemini-cli", "codex", "goose", "copilot-cli", "cursor", "aider", "amp", "cline", "continue", "windsurf", "qwen-code", "openclaw", "openhands", "kilo", "devin", "kiro", "augment-code", "mistral", "unknown"];
124
+ declare const TOOL_NAMES: readonly ["claude-code", "opencode", "gemini-cli", "codex", "goose", "copilot-cli", "cursor", "aider", "amp", "cline", "continue", "windsurf", "qwen-code", "openclaw", "openhands", "kilo", "devin", "kiro", "augment-code", "mistral", "zed", "pi", "unknown"];
123
125
  /**
124
126
  * Normalized error categories attached to `agent.error` events.
125
127
  */
@@ -139,6 +141,34 @@ declare const ToolInputSchema: z.ZodObject<{
139
141
  filePath: z.ZodOptional<z.ZodString>;
140
142
  command: z.ZodOptional<z.ZodString>;
141
143
  }, z.core.$strict>;
144
+ /**
145
+ * 📖 Thinking content extracted from AI model reasoning chains.
146
+ * This field captures the internal "thinking" or reasoning output that
147
+ * models like Claude produce before generating their final response.
148
+ */
149
+ declare const ThinkingContentSchema: z.ZodString;
150
+ /**
151
+ * 📖 Tool call name — the specific tool being invoked.
152
+ * Examples: "Edit", "Bash", "Grep", "Read", "Write", "WebSearch"
153
+ * Different from `toolInput` which contains the tool's parameters.
154
+ */
155
+ declare const ToolCallNameSchema: z.ZodString;
156
+ /**
157
+ * 📖 Final message shown at the end of an AI run.
158
+ * This is typically a summary, completion message, or result text
159
+ * displayed to the user after the agent finishes its work.
160
+ */
161
+ declare const FinalMessageSchema: z.ZodString;
162
+ /**
163
+ * 📖 Tool execution result — short result from a tool call.
164
+ * Can include success messages, error messages, or short outputs.
165
+ */
166
+ declare const ToolResultSchema: z.ZodString;
167
+ /**
168
+ * 📖 Raw message content from AI responses.
169
+ * Captures the actual text generated by the model before tool calls.
170
+ */
171
+ declare const MessageContentSchema: z.ZodString;
142
172
  /**
143
173
  * Runtime schema for the supported tool names.
144
174
  */
@@ -163,6 +193,8 @@ declare const ToolNameSchema: z.ZodEnum<{
163
193
  kiro: "kiro";
164
194
  "augment-code": "augment-code";
165
195
  mistral: "mistral";
196
+ zed: "zed";
197
+ pi: "pi";
166
198
  unknown: "unknown";
167
199
  }>;
168
200
  /**
@@ -234,6 +266,9 @@ declare const EventDataSchema: z.ZodObject<{
234
266
  activeFile: z.ZodOptional<z.ZodString>;
235
267
  model: z.ZodOptional<z.ZodString>;
236
268
  tokensUsed: z.ZodOptional<z.ZodNumber>;
269
+ inputTokens: z.ZodOptional<z.ZodNumber>;
270
+ outputTokens: z.ZodOptional<z.ZodNumber>;
271
+ cachedTokens: z.ZodOptional<z.ZodNumber>;
237
272
  errorMessage: z.ZodOptional<z.ZodString>;
238
273
  errorType: z.ZodOptional<z.ZodEnum<{
239
274
  rate_limit: "rate_limit";
@@ -248,6 +283,11 @@ declare const EventDataSchema: z.ZodObject<{
248
283
  instanceId: z.ZodOptional<z.ZodString>;
249
284
  instanceIndex: z.ZodOptional<z.ZodNumber>;
250
285
  instanceTotal: z.ZodOptional<z.ZodNumber>;
286
+ thinkingContent: z.ZodOptional<z.ZodString>;
287
+ toolCallName: z.ZodOptional<z.ZodString>;
288
+ finalMessage: z.ZodOptional<z.ZodString>;
289
+ toolResult: z.ZodOptional<z.ZodString>;
290
+ messageContent: z.ZodOptional<z.ZodString>;
251
291
  }, z.core.$strict>;
252
292
  /**
253
293
  * Runtime schema for the full normalized AISnitch event envelope.
@@ -292,6 +332,8 @@ declare const AISnitchEventSchema: z.ZodObject<{
292
332
  kiro: "kiro";
293
333
  "augment-code": "augment-code";
294
334
  mistral: "mistral";
335
+ zed: "zed";
336
+ pi: "pi";
295
337
  unknown: "unknown";
296
338
  }>;
297
339
  'aisnitch.sessionid': z.ZodString;
@@ -322,6 +364,9 @@ declare const AISnitchEventSchema: z.ZodObject<{
322
364
  activeFile: z.ZodOptional<z.ZodString>;
323
365
  model: z.ZodOptional<z.ZodString>;
324
366
  tokensUsed: z.ZodOptional<z.ZodNumber>;
367
+ inputTokens: z.ZodOptional<z.ZodNumber>;
368
+ outputTokens: z.ZodOptional<z.ZodNumber>;
369
+ cachedTokens: z.ZodOptional<z.ZodNumber>;
325
370
  errorMessage: z.ZodOptional<z.ZodString>;
326
371
  errorType: z.ZodOptional<z.ZodEnum<{
327
372
  rate_limit: "rate_limit";
@@ -336,6 +381,11 @@ declare const AISnitchEventSchema: z.ZodObject<{
336
381
  instanceId: z.ZodOptional<z.ZodString>;
337
382
  instanceIndex: z.ZodOptional<z.ZodNumber>;
338
383
  instanceTotal: z.ZodOptional<z.ZodNumber>;
384
+ thinkingContent: z.ZodOptional<z.ZodString>;
385
+ toolCallName: z.ZodOptional<z.ZodString>;
386
+ finalMessage: z.ZodOptional<z.ZodString>;
387
+ toolResult: z.ZodOptional<z.ZodString>;
388
+ messageContent: z.ZodOptional<z.ZodString>;
339
389
  }, z.core.$strict>;
340
390
  }, z.core.$strict>;
341
391
 
@@ -426,6 +476,9 @@ declare const NormalizedAdapterHookPayloadSchema: z.ZodObject<{
426
476
  activeFile: z.ZodOptional<z.ZodOptional<z.ZodString>>;
427
477
  model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
428
478
  tokensUsed: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
479
+ inputTokens: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
480
+ outputTokens: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
481
+ cachedTokens: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
429
482
  errorMessage: z.ZodOptional<z.ZodOptional<z.ZodString>>;
430
483
  errorType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
431
484
  rate_limit: "rate_limit";
@@ -440,6 +493,11 @@ declare const NormalizedAdapterHookPayloadSchema: z.ZodObject<{
440
493
  instanceId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
441
494
  instanceIndex: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
442
495
  instanceTotal: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
496
+ thinkingContent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
497
+ toolCallName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
498
+ finalMessage: z.ZodOptional<z.ZodOptional<z.ZodString>>;
499
+ toolResult: z.ZodOptional<z.ZodOptional<z.ZodString>>;
500
+ messageContent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
443
501
  }, z.core.$strict>>;
444
502
  pid: z.ZodOptional<z.ZodNumber>;
445
503
  transcriptPath: z.ZodOptional<z.ZodString>;
@@ -1036,6 +1094,91 @@ declare class OpenCodeAdapter extends BaseAdapter {
1036
1094
  private pollOpenCodeProcesses;
1037
1095
  }
1038
1096
 
1097
+ /**
1098
+ * @file src/adapters/pi.ts
1099
+ * @description Pi AI Agent adapter using Pi's local API and log monitoring.
1100
+ * @functions
1101
+ * → detectPiInstance
1102
+ * @exports PiAdapter
1103
+ * @see ./base.ts
1104
+ * @see ../core/events/types.ts
1105
+ */
1106
+
1107
+ /**
1108
+ * 📖 Pi is a coding agent by MiniMax. This adapter detects Pi activity through:
1109
+ * 1. Process detection (pgrep for pi processes)
1110
+ * 2. MiniMax API / local socket detection
1111
+ * 3. Log file monitoring
1112
+ */
1113
+ declare class PiAdapter extends BaseAdapter {
1114
+ readonly displayName = "Pi (MiniMax)";
1115
+ readonly name: "pi";
1116
+ readonly strategies: readonly InterceptionStrategy[];
1117
+ private readonly apiPort;
1118
+ private readonly logPath;
1119
+ private poller;
1120
+ private activePiSessions;
1121
+ private lastCheckedTime;
1122
+ constructor(options: AdapterRuntimeOptions);
1123
+ start(): Promise<void>;
1124
+ stop(): Promise<void>;
1125
+ handleHook(payload: unknown): Promise<void>;
1126
+ private startPolling;
1127
+ private pollPiActivity;
1128
+ private detectPiInstance;
1129
+ private checkMiniMaxApi;
1130
+ private processPiApiResponse;
1131
+ private emitSessionStart;
1132
+ private emitThinking;
1133
+ private emitToolCall;
1134
+ private emitOutput;
1135
+ private emitError;
1136
+ private emitIdle;
1137
+ private mapEventType;
1138
+ private buildEventData;
1139
+ }
1140
+
1141
+ /**
1142
+ * @file src/adapters/zed.ts
1143
+ * @description Zed AI Agent adapter using log file monitoring and IPC detection.
1144
+ * @functions
1145
+ * → extractZedEventFromLog
1146
+ * @exports ZedAdapter
1147
+ * @see ./base.ts
1148
+ * @see ../core/events/types.ts
1149
+ */
1150
+
1151
+ /**
1152
+ * 📖 Zed Agent (zed.dev) exposes a local HTTP API on port 9876 for its agent.
1153
+ * This adapter polls that endpoint and watches Zed's log file for activity.
1154
+ */
1155
+ declare class ZedAdapter extends BaseAdapter {
1156
+ readonly displayName = "Zed AI";
1157
+ readonly name: "zed";
1158
+ readonly strategies: readonly InterceptionStrategy[];
1159
+ private readonly logPaths;
1160
+ private readonly apiPort;
1161
+ private readonly pollIntervalMs;
1162
+ private poller;
1163
+ private lastEventTime;
1164
+ private activeZedSessions;
1165
+ constructor(options: AdapterRuntimeOptions);
1166
+ start(): Promise<void>;
1167
+ stop(): Promise<void>;
1168
+ handleHook(payload: unknown): Promise<void>;
1169
+ private startPolling;
1170
+ private pollZedStatus;
1171
+ private checkLogFiles;
1172
+ private parseLogContent;
1173
+ private extractZedEventFromLog;
1174
+ private emitSessionStart;
1175
+ private emitThinking;
1176
+ private emitToolCall;
1177
+ private emitIdle;
1178
+ private mapEventType;
1179
+ private buildEventData;
1180
+ }
1181
+
1039
1182
  /**
1040
1183
  * @file src/adapters/registry.ts
1041
1184
  * @description Adapter registry that owns built-in adapter instances and orchestrates their lifecycle.
@@ -1164,12 +1307,14 @@ declare function analyzeTerminalOutputChunk(input: {
1164
1307
  * @see ./codex.ts
1165
1308
  * @see ./openclaw.ts
1166
1309
  * @see ./opencode.ts
1310
+ * @see ./pi.ts
1311
+ * @see ./zed.ts
1167
1312
  */
1168
1313
 
1169
1314
  /**
1170
1315
  * Instantiates the built-in adapters that ship with AISnitch.
1171
1316
  */
1172
- declare function createDefaultAdapters(options: AdapterRuntimeOptions): readonly [AiderAdapter, ClaudeCodeAdapter, CopilotCLIAdapter, CursorAdapter, DevinAdapter, GeminiCLIAdapter, GooseAdapter, KiloAdapter, CodexAdapter, OpenClawAdapter, OpenCodeAdapter];
1317
+ declare function createDefaultAdapters(options: AdapterRuntimeOptions): readonly [AiderAdapter, ClaudeCodeAdapter, CopilotCLIAdapter, CursorAdapter, DevinAdapter, GeminiCLIAdapter, GooseAdapter, KiloAdapter, CodexAdapter, OpenClawAdapter, OpenCodeAdapter, PiAdapter, ZedAdapter];
1173
1318
 
1174
1319
  /**
1175
1320
  * @file src/core/errors.ts
@@ -2150,6 +2295,22 @@ declare class Pipeline {
2150
2295
  * Returns the in-process event bus for direct wiring in tests or future TUI code.
2151
2296
  */
2152
2297
  getEventBus(): EventBus;
2298
+ /**
2299
+ * Returns the adapter registry for graceful shutdown coordination.
2300
+ */
2301
+ getAdapterRegistry(): AdapterRegistry | undefined;
2302
+ /**
2303
+ * Returns the HTTP receiver for graceful shutdown coordination.
2304
+ */
2305
+ getHttpReceiver(): HTTPReceiver;
2306
+ /**
2307
+ * Returns the UDS server for graceful shutdown coordination.
2308
+ */
2309
+ getUdsServer(): UDSServer;
2310
+ /**
2311
+ * Returns the WebSocket server for graceful shutdown coordination.
2312
+ */
2313
+ getWsServer(): WSServer;
2153
2314
  private getHealthSnapshot;
2154
2315
  private handleHook;
2155
2316
  private handleHookInner;
@@ -3931,4 +4092,4 @@ declare function renderAttachedTui(options: AttachedTuiOptions): Promise<void>;
3931
4092
  */
3932
4093
  declare function renderManagedTui(options: ManagedTuiOptions): Promise<void>;
3933
4094
 
3934
- export { AISNITCH_DESCRIPTION, AISNITCH_EVENT_TYPES, AISNITCH_PACKAGE_NAME, AISNITCH_VERSION, type AISnitchConfig, AISnitchError, type AISnitchEvent, AISnitchEventSchema, type AISnitchEventType, AISnitchEventTypeSchema, type AISnitchLoggerLevel, type AISnitchScaffoldInfo, AUTO_UPDATE_MANAGERS, type AdapterConfig, AdapterConfigSchema, AdapterError, type AdapterPublishContext, AdapterRegistry, type AdapterRuntimeOptions, type AdapterStatus, AiderAdapter, type AiderAdapterOptions, type AiderHistoryObservation, type AiderHistoryParseResult, App, type AppProps, type AttachedTuiOptions, type AutoUpdateConfig, AutoUpdateConfigSchema, BaseAdapter, type CESPCategory, CESPCategorySchema, CESP_CATEGORIES, CESP_MAP, CircuitBreaker, type CircuitBreakerOptions, CircuitOpenError, type CircuitState, ClaudeCodeAdapter, type ClaudeCodeAdapterOptions, CodexAdapter, type CodexAdapterOptions, type ConfigPathOptions, ConfigSchema, ContextDetector, CopilotCLIAdapter, type CopilotCLIAdapterOptions, type CreateEventInput, CursorAdapter, type CursorAdapterOptions, DEFAULT_CONFIG, DEFAULT_TIMEOUTS, DEFAULT_TUI_FILTERS, DEFAULT_VISIBLE_EVENT_COUNT, DefaultRetryOptions, DevinAdapter, type DevinAdapterOptions, ERROR_TYPES, EVENT_COLORS, EVENT_ICONS, EVENT_STREAM_LIMIT, type EnrichedContextFields, type ErrorType, ErrorTypeSchema, EventBus, type EventBusStats, type EventData, EventDataSchema, type EventHandler, EventLine, type EventLineProps, EventStream, type EventStreamProps, type EventStreamSource, FilterBar, type FilterBarProps, type FocusedPanel, type ForegroundTuiOptions, GeminiCLIAdapter, type GeminiCLIAdapterOptions, type GenericPTYObservation, GenericPTYSession, type GenericPTYSessionOptions, type GlobalActivityStatus, GlobalBadge, type GlobalBadgeProps, GooseAdapter, type GooseAdapterOptions, GracefulShutdownManager, HTTPReceiver, type HTTPReceiverStartOptions, type HTTPReceiverStats, Header, type HeaderProps, type HealthSnapshot, HelpOverlay, type HookHandler, type InterceptionStrategy, KiloAdapter, type KiloAdapterOptions, LOG_LEVELS, MAX_GENERIC_STRING_LENGTH, MAX_LABEL_LENGTH, MAX_PATH_LENGTH, MAX_PORT, MIN_PORT, ManagedDaemonApp, type ManagedDaemonAppProps, type ManagedTuiOptions, type ManagedTuiSnapshot, type MonitorCloseHandler, type MonitorOutput, NetworkError, type NormalizedAdapterHookPayload, OpenClawAdapter, type OpenClawAdapterOptions, OpenCodeAdapter, type OpenCodeAdapterOptions, Panel, type PanelProps, PanelStack, type PanelStackProps, Pipeline, PipelineError, type PipelineStartOptions, type PipelineStatus, type PortResolutionOptions, type ProcessContext, type ProcessInfo, type Result, type RetryOptions, RingBuffer, SESSION_STALE_AFTER_MS, SHARED_BREAKERS, type SelectorOption, type SessionFilterTarget, type SessionIdentityInput, SessionPanel, type SessionPanelProps, type SessionState, type ShutdownComponents, StatusBar, type StatusBarProps, TOOL_COLORS, TOOL_NAMES, TUI_THEME, TUI_VIEW_MODES, TimeoutError, type TimeoutName, type ToolInput, ToolInputSchema, type ToolName, ToolNameSchema, type TuiDaemonSnapshot, type TuiFilters, type TuiInitialFilters, type TuiInteractionMode, type TuiStatusSnapshot, type TuiThemeColor, type TuiViewMode, UDSServer, type UDSServerStartOptions, type UDSServerStats, type UseEventStreamOptions, type UseEventStreamState, type UseKeyBindsOptions, type UseKeyBindsState, ValidationError, WSServer, type WSServerStartOptions, type WSServerStats, type WelcomeMessage, analyzeTerminalOutputChunk, appendEventToStream, applyEventFilters, applySessionFilters, attachEventBusMonitor, attachWebSocketMonitor, countActiveFilters, createDefaultAdapters, createEvent, createUuidV7, deriveGlobalActivityStatus, deriveSessions, ensureConfigDir, err, fireAndForgetRetry, flatMap, formatEventDetail, formatEventLine, formatEventTime, formatSessionLabel, formatSessionLabelFromEvent, formatSessionShortId, formatWelcomeLine, fromPromise, fromSync, getAISnitchHomePath, getArray, getBoolean, getCESPCategory, getConfigPath, getNumber, getObject, getPackageScaffoldInfo, getPendingFrozenEventCount, getPort, getPositiveNumber, getSafeInteger, getSeqnum, getSocketPath, getString, getStringWithMaxLength, getTimeout, getVisibleEventWindow, isAISnitchError, isErr, isGenericSessionId, isNotNull, isOk, isRecord, isRetryableError, isTimeoutError, isValidPathLength, isValidPort, isValidStringLength, loadConfig, logger, mapErr, mapOk, ok, parseAiderHistoryMarkdown, renderAttachedTui, renderForegroundTui, renderManagedTui, resolveAvailablePort, resolveSessionId, saveConfig, setLoggerLevel, shutdownInOrder, sleep, timeoutWarning, useEventStream, useKeyBinds, useSessions, withOverallShutdownTimeout, withRetry, withRetryOn, withShutdownTimeout, withTimeout };
4095
+ export { AISNITCH_DESCRIPTION, AISNITCH_EVENT_TYPES, AISNITCH_PACKAGE_NAME, AISNITCH_VERSION, type AISnitchConfig, AISnitchError, type AISnitchEvent, AISnitchEventSchema, type AISnitchEventType, AISnitchEventTypeSchema, type AISnitchLoggerLevel, type AISnitchScaffoldInfo, AUTO_UPDATE_MANAGERS, type AdapterConfig, AdapterConfigSchema, AdapterError, type AdapterPublishContext, AdapterRegistry, type AdapterRuntimeOptions, type AdapterStatus, AiderAdapter, type AiderAdapterOptions, type AiderHistoryObservation, type AiderHistoryParseResult, App, type AppProps, type AttachedTuiOptions, type AutoUpdateConfig, AutoUpdateConfigSchema, BaseAdapter, type CESPCategory, CESPCategorySchema, CESP_CATEGORIES, CESP_MAP, CircuitBreaker, type CircuitBreakerOptions, CircuitOpenError, type CircuitState, ClaudeCodeAdapter, type ClaudeCodeAdapterOptions, CodexAdapter, type CodexAdapterOptions, type ConfigPathOptions, ConfigSchema, ContextDetector, CopilotCLIAdapter, type CopilotCLIAdapterOptions, type CreateEventInput, CursorAdapter, type CursorAdapterOptions, DEFAULT_CONFIG, DEFAULT_TIMEOUTS, DEFAULT_TUI_FILTERS, DEFAULT_VISIBLE_EVENT_COUNT, DefaultRetryOptions, DevinAdapter, type DevinAdapterOptions, ERROR_TYPES, EVENT_COLORS, EVENT_ICONS, EVENT_STREAM_LIMIT, type EnrichedContextFields, type ErrorType, ErrorTypeSchema, EventBus, type EventBusStats, type EventData, EventDataSchema, type EventHandler, EventLine, type EventLineProps, EventStream, type EventStreamProps, type EventStreamSource, FilterBar, type FilterBarProps, FinalMessageSchema, type FocusedPanel, type ForegroundTuiOptions, GeminiCLIAdapter, type GeminiCLIAdapterOptions, type GenericPTYObservation, GenericPTYSession, type GenericPTYSessionOptions, type GlobalActivityStatus, GlobalBadge, type GlobalBadgeProps, GooseAdapter, type GooseAdapterOptions, GracefulShutdownManager, HTTPReceiver, type HTTPReceiverStartOptions, type HTTPReceiverStats, Header, type HeaderProps, type HealthSnapshot, HelpOverlay, type HookHandler, type InterceptionStrategy, KiloAdapter, type KiloAdapterOptions, LOG_LEVELS, MAX_GENERIC_STRING_LENGTH, MAX_LABEL_LENGTH, MAX_PATH_LENGTH, MAX_PORT, MIN_PORT, ManagedDaemonApp, type ManagedDaemonAppProps, type ManagedTuiOptions, type ManagedTuiSnapshot, MessageContentSchema, type MonitorCloseHandler, type MonitorOutput, NetworkError, type NormalizedAdapterHookPayload, OpenClawAdapter, type OpenClawAdapterOptions, OpenCodeAdapter, type OpenCodeAdapterOptions, Panel, type PanelProps, PanelStack, type PanelStackProps, PiAdapter, Pipeline, PipelineError, type PipelineStartOptions, type PipelineStatus, type PortResolutionOptions, type ProcessContext, type ProcessInfo, type Result, type RetryOptions, RingBuffer, SESSION_STALE_AFTER_MS, SHARED_BREAKERS, type SelectorOption, type SessionFilterTarget, type SessionIdentityInput, SessionPanel, type SessionPanelProps, type SessionState, type ShutdownComponents, StatusBar, type StatusBarProps, TOOL_COLORS, TOOL_NAMES, TUI_THEME, TUI_VIEW_MODES, ThinkingContentSchema, TimeoutError, type TimeoutName, ToolCallNameSchema, type ToolInput, ToolInputSchema, type ToolName, ToolNameSchema, ToolResultSchema, type TuiDaemonSnapshot, type TuiFilters, type TuiInitialFilters, type TuiInteractionMode, type TuiStatusSnapshot, type TuiThemeColor, type TuiViewMode, UDSServer, type UDSServerStartOptions, type UDSServerStats, type UseEventStreamOptions, type UseEventStreamState, type UseKeyBindsOptions, type UseKeyBindsState, ValidationError, WSServer, type WSServerStartOptions, type WSServerStats, type WelcomeMessage, ZedAdapter, analyzeTerminalOutputChunk, appendEventToStream, applyEventFilters, applySessionFilters, attachEventBusMonitor, attachWebSocketMonitor, countActiveFilters, createDefaultAdapters, createEvent, createUuidV7, deriveGlobalActivityStatus, deriveSessions, ensureConfigDir, err, fireAndForgetRetry, flatMap, formatEventDetail, formatEventLine, formatEventTime, formatSessionLabel, formatSessionLabelFromEvent, formatSessionShortId, formatWelcomeLine, fromPromise, fromSync, getAISnitchHomePath, getArray, getBoolean, getCESPCategory, getConfigPath, getNumber, getObject, getPackageScaffoldInfo, getPendingFrozenEventCount, getPort, getPositiveNumber, getSafeInteger, getSeqnum, getSocketPath, getString, getStringWithMaxLength, getTimeout, getVisibleEventWindow, isAISnitchError, isErr, isGenericSessionId, isNotNull, isOk, isRecord, isRetryableError, isTimeoutError, isValidPathLength, isValidPort, isValidStringLength, loadConfig, logger, mapErr, mapOk, ok, parseAiderHistoryMarkdown, renderAttachedTui, renderForegroundTui, renderManagedTui, resolveAvailablePort, resolveSessionId, saveConfig, setLoggerLevel, shutdownInOrder, sleep, timeoutWarning, useEventStream, useKeyBinds, useSessions, withOverallShutdownTimeout, withRetry, withRetryOn, withShutdownTimeout, withTimeout };