aisnitch 0.2.20 → 0.2.21
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/cli/index.cjs +849 -87
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +825 -63
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +7182 -6485
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +156 -4
- package/dist/index.d.ts +156 -4
- package/dist/index.js +7154 -6464
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
/**
|
|
@@ -248,6 +280,11 @@ declare const EventDataSchema: z.ZodObject<{
|
|
|
248
280
|
instanceId: z.ZodOptional<z.ZodString>;
|
|
249
281
|
instanceIndex: z.ZodOptional<z.ZodNumber>;
|
|
250
282
|
instanceTotal: z.ZodOptional<z.ZodNumber>;
|
|
283
|
+
thinkingContent: z.ZodOptional<z.ZodString>;
|
|
284
|
+
toolCallName: z.ZodOptional<z.ZodString>;
|
|
285
|
+
finalMessage: z.ZodOptional<z.ZodString>;
|
|
286
|
+
toolResult: z.ZodOptional<z.ZodString>;
|
|
287
|
+
messageContent: z.ZodOptional<z.ZodString>;
|
|
251
288
|
}, z.core.$strict>;
|
|
252
289
|
/**
|
|
253
290
|
* Runtime schema for the full normalized AISnitch event envelope.
|
|
@@ -292,6 +329,8 @@ declare const AISnitchEventSchema: z.ZodObject<{
|
|
|
292
329
|
kiro: "kiro";
|
|
293
330
|
"augment-code": "augment-code";
|
|
294
331
|
mistral: "mistral";
|
|
332
|
+
zed: "zed";
|
|
333
|
+
pi: "pi";
|
|
295
334
|
unknown: "unknown";
|
|
296
335
|
}>;
|
|
297
336
|
'aisnitch.sessionid': z.ZodString;
|
|
@@ -336,6 +375,11 @@ declare const AISnitchEventSchema: z.ZodObject<{
|
|
|
336
375
|
instanceId: z.ZodOptional<z.ZodString>;
|
|
337
376
|
instanceIndex: z.ZodOptional<z.ZodNumber>;
|
|
338
377
|
instanceTotal: z.ZodOptional<z.ZodNumber>;
|
|
378
|
+
thinkingContent: z.ZodOptional<z.ZodString>;
|
|
379
|
+
toolCallName: z.ZodOptional<z.ZodString>;
|
|
380
|
+
finalMessage: z.ZodOptional<z.ZodString>;
|
|
381
|
+
toolResult: z.ZodOptional<z.ZodString>;
|
|
382
|
+
messageContent: z.ZodOptional<z.ZodString>;
|
|
339
383
|
}, z.core.$strict>;
|
|
340
384
|
}, z.core.$strict>;
|
|
341
385
|
|
|
@@ -440,6 +484,11 @@ declare const NormalizedAdapterHookPayloadSchema: z.ZodObject<{
|
|
|
440
484
|
instanceId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
441
485
|
instanceIndex: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
442
486
|
instanceTotal: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
487
|
+
thinkingContent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
488
|
+
toolCallName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
489
|
+
finalMessage: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
490
|
+
toolResult: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
491
|
+
messageContent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
443
492
|
}, z.core.$strict>>;
|
|
444
493
|
pid: z.ZodOptional<z.ZodNumber>;
|
|
445
494
|
transcriptPath: z.ZodOptional<z.ZodString>;
|
|
@@ -1036,6 +1085,91 @@ declare class OpenCodeAdapter extends BaseAdapter {
|
|
|
1036
1085
|
private pollOpenCodeProcesses;
|
|
1037
1086
|
}
|
|
1038
1087
|
|
|
1088
|
+
/**
|
|
1089
|
+
* @file src/adapters/pi.ts
|
|
1090
|
+
* @description Pi AI Agent adapter using Pi's local API and log monitoring.
|
|
1091
|
+
* @functions
|
|
1092
|
+
* → detectPiInstance
|
|
1093
|
+
* @exports PiAdapter
|
|
1094
|
+
* @see ./base.ts
|
|
1095
|
+
* @see ../core/events/types.ts
|
|
1096
|
+
*/
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* 📖 Pi is a coding agent by MiniMax. This adapter detects Pi activity through:
|
|
1100
|
+
* 1. Process detection (pgrep for pi processes)
|
|
1101
|
+
* 2. MiniMax API / local socket detection
|
|
1102
|
+
* 3. Log file monitoring
|
|
1103
|
+
*/
|
|
1104
|
+
declare class PiAdapter extends BaseAdapter {
|
|
1105
|
+
readonly displayName = "Pi (MiniMax)";
|
|
1106
|
+
readonly name: "pi";
|
|
1107
|
+
readonly strategies: readonly InterceptionStrategy[];
|
|
1108
|
+
private readonly apiPort;
|
|
1109
|
+
private readonly logPath;
|
|
1110
|
+
private poller;
|
|
1111
|
+
private activePiSessions;
|
|
1112
|
+
private lastCheckedTime;
|
|
1113
|
+
constructor(options: AdapterRuntimeOptions);
|
|
1114
|
+
start(): Promise<void>;
|
|
1115
|
+
stop(): Promise<void>;
|
|
1116
|
+
handleHook(payload: unknown): Promise<void>;
|
|
1117
|
+
private startPolling;
|
|
1118
|
+
private pollPiActivity;
|
|
1119
|
+
private detectPiInstance;
|
|
1120
|
+
private checkMiniMaxApi;
|
|
1121
|
+
private processPiApiResponse;
|
|
1122
|
+
private emitSessionStart;
|
|
1123
|
+
private emitThinking;
|
|
1124
|
+
private emitToolCall;
|
|
1125
|
+
private emitOutput;
|
|
1126
|
+
private emitError;
|
|
1127
|
+
private emitIdle;
|
|
1128
|
+
private mapEventType;
|
|
1129
|
+
private buildEventData;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* @file src/adapters/zed.ts
|
|
1134
|
+
* @description Zed AI Agent adapter using log file monitoring and IPC detection.
|
|
1135
|
+
* @functions
|
|
1136
|
+
* → extractZedEventFromLog
|
|
1137
|
+
* @exports ZedAdapter
|
|
1138
|
+
* @see ./base.ts
|
|
1139
|
+
* @see ../core/events/types.ts
|
|
1140
|
+
*/
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* 📖 Zed Agent (zed.dev) exposes a local HTTP API on port 9876 for its agent.
|
|
1144
|
+
* This adapter polls that endpoint and watches Zed's log file for activity.
|
|
1145
|
+
*/
|
|
1146
|
+
declare class ZedAdapter extends BaseAdapter {
|
|
1147
|
+
readonly displayName = "Zed AI";
|
|
1148
|
+
readonly name: "zed";
|
|
1149
|
+
readonly strategies: readonly InterceptionStrategy[];
|
|
1150
|
+
private readonly logPaths;
|
|
1151
|
+
private readonly apiPort;
|
|
1152
|
+
private readonly pollIntervalMs;
|
|
1153
|
+
private poller;
|
|
1154
|
+
private lastEventTime;
|
|
1155
|
+
private activeZedSessions;
|
|
1156
|
+
constructor(options: AdapterRuntimeOptions);
|
|
1157
|
+
start(): Promise<void>;
|
|
1158
|
+
stop(): Promise<void>;
|
|
1159
|
+
handleHook(payload: unknown): Promise<void>;
|
|
1160
|
+
private startPolling;
|
|
1161
|
+
private pollZedStatus;
|
|
1162
|
+
private checkLogFiles;
|
|
1163
|
+
private parseLogContent;
|
|
1164
|
+
private extractZedEventFromLog;
|
|
1165
|
+
private emitSessionStart;
|
|
1166
|
+
private emitThinking;
|
|
1167
|
+
private emitToolCall;
|
|
1168
|
+
private emitIdle;
|
|
1169
|
+
private mapEventType;
|
|
1170
|
+
private buildEventData;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1039
1173
|
/**
|
|
1040
1174
|
* @file src/adapters/registry.ts
|
|
1041
1175
|
* @description Adapter registry that owns built-in adapter instances and orchestrates their lifecycle.
|
|
@@ -1164,12 +1298,14 @@ declare function analyzeTerminalOutputChunk(input: {
|
|
|
1164
1298
|
* @see ./codex.ts
|
|
1165
1299
|
* @see ./openclaw.ts
|
|
1166
1300
|
* @see ./opencode.ts
|
|
1301
|
+
* @see ./pi.ts
|
|
1302
|
+
* @see ./zed.ts
|
|
1167
1303
|
*/
|
|
1168
1304
|
|
|
1169
1305
|
/**
|
|
1170
1306
|
* Instantiates the built-in adapters that ship with AISnitch.
|
|
1171
1307
|
*/
|
|
1172
|
-
declare function createDefaultAdapters(options: AdapterRuntimeOptions): readonly [AiderAdapter, ClaudeCodeAdapter, CopilotCLIAdapter, CursorAdapter, DevinAdapter, GeminiCLIAdapter, GooseAdapter, KiloAdapter, CodexAdapter, OpenClawAdapter, OpenCodeAdapter];
|
|
1308
|
+
declare function createDefaultAdapters(options: AdapterRuntimeOptions): readonly [AiderAdapter, ClaudeCodeAdapter, CopilotCLIAdapter, CursorAdapter, DevinAdapter, GeminiCLIAdapter, GooseAdapter, KiloAdapter, CodexAdapter, OpenClawAdapter, OpenCodeAdapter, PiAdapter, ZedAdapter];
|
|
1173
1309
|
|
|
1174
1310
|
/**
|
|
1175
1311
|
* @file src/core/errors.ts
|
|
@@ -2150,6 +2286,22 @@ declare class Pipeline {
|
|
|
2150
2286
|
* Returns the in-process event bus for direct wiring in tests or future TUI code.
|
|
2151
2287
|
*/
|
|
2152
2288
|
getEventBus(): EventBus;
|
|
2289
|
+
/**
|
|
2290
|
+
* Returns the adapter registry for graceful shutdown coordination.
|
|
2291
|
+
*/
|
|
2292
|
+
getAdapterRegistry(): AdapterRegistry | undefined;
|
|
2293
|
+
/**
|
|
2294
|
+
* Returns the HTTP receiver for graceful shutdown coordination.
|
|
2295
|
+
*/
|
|
2296
|
+
getHttpReceiver(): HTTPReceiver;
|
|
2297
|
+
/**
|
|
2298
|
+
* Returns the UDS server for graceful shutdown coordination.
|
|
2299
|
+
*/
|
|
2300
|
+
getUdsServer(): UDSServer;
|
|
2301
|
+
/**
|
|
2302
|
+
* Returns the WebSocket server for graceful shutdown coordination.
|
|
2303
|
+
*/
|
|
2304
|
+
getWsServer(): WSServer;
|
|
2153
2305
|
private getHealthSnapshot;
|
|
2154
2306
|
private handleHook;
|
|
2155
2307
|
private handleHookInner;
|
|
@@ -3931,4 +4083,4 @@ declare function renderAttachedTui(options: AttachedTuiOptions): Promise<void>;
|
|
|
3931
4083
|
*/
|
|
3932
4084
|
declare function renderManagedTui(options: ManagedTuiOptions): Promise<void>;
|
|
3933
4085
|
|
|
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 };
|
|
4086
|
+
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
|
/**
|
|
@@ -248,6 +280,11 @@ declare const EventDataSchema: z.ZodObject<{
|
|
|
248
280
|
instanceId: z.ZodOptional<z.ZodString>;
|
|
249
281
|
instanceIndex: z.ZodOptional<z.ZodNumber>;
|
|
250
282
|
instanceTotal: z.ZodOptional<z.ZodNumber>;
|
|
283
|
+
thinkingContent: z.ZodOptional<z.ZodString>;
|
|
284
|
+
toolCallName: z.ZodOptional<z.ZodString>;
|
|
285
|
+
finalMessage: z.ZodOptional<z.ZodString>;
|
|
286
|
+
toolResult: z.ZodOptional<z.ZodString>;
|
|
287
|
+
messageContent: z.ZodOptional<z.ZodString>;
|
|
251
288
|
}, z.core.$strict>;
|
|
252
289
|
/**
|
|
253
290
|
* Runtime schema for the full normalized AISnitch event envelope.
|
|
@@ -292,6 +329,8 @@ declare const AISnitchEventSchema: z.ZodObject<{
|
|
|
292
329
|
kiro: "kiro";
|
|
293
330
|
"augment-code": "augment-code";
|
|
294
331
|
mistral: "mistral";
|
|
332
|
+
zed: "zed";
|
|
333
|
+
pi: "pi";
|
|
295
334
|
unknown: "unknown";
|
|
296
335
|
}>;
|
|
297
336
|
'aisnitch.sessionid': z.ZodString;
|
|
@@ -336,6 +375,11 @@ declare const AISnitchEventSchema: z.ZodObject<{
|
|
|
336
375
|
instanceId: z.ZodOptional<z.ZodString>;
|
|
337
376
|
instanceIndex: z.ZodOptional<z.ZodNumber>;
|
|
338
377
|
instanceTotal: z.ZodOptional<z.ZodNumber>;
|
|
378
|
+
thinkingContent: z.ZodOptional<z.ZodString>;
|
|
379
|
+
toolCallName: z.ZodOptional<z.ZodString>;
|
|
380
|
+
finalMessage: z.ZodOptional<z.ZodString>;
|
|
381
|
+
toolResult: z.ZodOptional<z.ZodString>;
|
|
382
|
+
messageContent: z.ZodOptional<z.ZodString>;
|
|
339
383
|
}, z.core.$strict>;
|
|
340
384
|
}, z.core.$strict>;
|
|
341
385
|
|
|
@@ -440,6 +484,11 @@ declare const NormalizedAdapterHookPayloadSchema: z.ZodObject<{
|
|
|
440
484
|
instanceId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
441
485
|
instanceIndex: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
442
486
|
instanceTotal: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
487
|
+
thinkingContent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
488
|
+
toolCallName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
489
|
+
finalMessage: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
490
|
+
toolResult: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
491
|
+
messageContent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
443
492
|
}, z.core.$strict>>;
|
|
444
493
|
pid: z.ZodOptional<z.ZodNumber>;
|
|
445
494
|
transcriptPath: z.ZodOptional<z.ZodString>;
|
|
@@ -1036,6 +1085,91 @@ declare class OpenCodeAdapter extends BaseAdapter {
|
|
|
1036
1085
|
private pollOpenCodeProcesses;
|
|
1037
1086
|
}
|
|
1038
1087
|
|
|
1088
|
+
/**
|
|
1089
|
+
* @file src/adapters/pi.ts
|
|
1090
|
+
* @description Pi AI Agent adapter using Pi's local API and log monitoring.
|
|
1091
|
+
* @functions
|
|
1092
|
+
* → detectPiInstance
|
|
1093
|
+
* @exports PiAdapter
|
|
1094
|
+
* @see ./base.ts
|
|
1095
|
+
* @see ../core/events/types.ts
|
|
1096
|
+
*/
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* 📖 Pi is a coding agent by MiniMax. This adapter detects Pi activity through:
|
|
1100
|
+
* 1. Process detection (pgrep for pi processes)
|
|
1101
|
+
* 2. MiniMax API / local socket detection
|
|
1102
|
+
* 3. Log file monitoring
|
|
1103
|
+
*/
|
|
1104
|
+
declare class PiAdapter extends BaseAdapter {
|
|
1105
|
+
readonly displayName = "Pi (MiniMax)";
|
|
1106
|
+
readonly name: "pi";
|
|
1107
|
+
readonly strategies: readonly InterceptionStrategy[];
|
|
1108
|
+
private readonly apiPort;
|
|
1109
|
+
private readonly logPath;
|
|
1110
|
+
private poller;
|
|
1111
|
+
private activePiSessions;
|
|
1112
|
+
private lastCheckedTime;
|
|
1113
|
+
constructor(options: AdapterRuntimeOptions);
|
|
1114
|
+
start(): Promise<void>;
|
|
1115
|
+
stop(): Promise<void>;
|
|
1116
|
+
handleHook(payload: unknown): Promise<void>;
|
|
1117
|
+
private startPolling;
|
|
1118
|
+
private pollPiActivity;
|
|
1119
|
+
private detectPiInstance;
|
|
1120
|
+
private checkMiniMaxApi;
|
|
1121
|
+
private processPiApiResponse;
|
|
1122
|
+
private emitSessionStart;
|
|
1123
|
+
private emitThinking;
|
|
1124
|
+
private emitToolCall;
|
|
1125
|
+
private emitOutput;
|
|
1126
|
+
private emitError;
|
|
1127
|
+
private emitIdle;
|
|
1128
|
+
private mapEventType;
|
|
1129
|
+
private buildEventData;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* @file src/adapters/zed.ts
|
|
1134
|
+
* @description Zed AI Agent adapter using log file monitoring and IPC detection.
|
|
1135
|
+
* @functions
|
|
1136
|
+
* → extractZedEventFromLog
|
|
1137
|
+
* @exports ZedAdapter
|
|
1138
|
+
* @see ./base.ts
|
|
1139
|
+
* @see ../core/events/types.ts
|
|
1140
|
+
*/
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* 📖 Zed Agent (zed.dev) exposes a local HTTP API on port 9876 for its agent.
|
|
1144
|
+
* This adapter polls that endpoint and watches Zed's log file for activity.
|
|
1145
|
+
*/
|
|
1146
|
+
declare class ZedAdapter extends BaseAdapter {
|
|
1147
|
+
readonly displayName = "Zed AI";
|
|
1148
|
+
readonly name: "zed";
|
|
1149
|
+
readonly strategies: readonly InterceptionStrategy[];
|
|
1150
|
+
private readonly logPaths;
|
|
1151
|
+
private readonly apiPort;
|
|
1152
|
+
private readonly pollIntervalMs;
|
|
1153
|
+
private poller;
|
|
1154
|
+
private lastEventTime;
|
|
1155
|
+
private activeZedSessions;
|
|
1156
|
+
constructor(options: AdapterRuntimeOptions);
|
|
1157
|
+
start(): Promise<void>;
|
|
1158
|
+
stop(): Promise<void>;
|
|
1159
|
+
handleHook(payload: unknown): Promise<void>;
|
|
1160
|
+
private startPolling;
|
|
1161
|
+
private pollZedStatus;
|
|
1162
|
+
private checkLogFiles;
|
|
1163
|
+
private parseLogContent;
|
|
1164
|
+
private extractZedEventFromLog;
|
|
1165
|
+
private emitSessionStart;
|
|
1166
|
+
private emitThinking;
|
|
1167
|
+
private emitToolCall;
|
|
1168
|
+
private emitIdle;
|
|
1169
|
+
private mapEventType;
|
|
1170
|
+
private buildEventData;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1039
1173
|
/**
|
|
1040
1174
|
* @file src/adapters/registry.ts
|
|
1041
1175
|
* @description Adapter registry that owns built-in adapter instances and orchestrates their lifecycle.
|
|
@@ -1164,12 +1298,14 @@ declare function analyzeTerminalOutputChunk(input: {
|
|
|
1164
1298
|
* @see ./codex.ts
|
|
1165
1299
|
* @see ./openclaw.ts
|
|
1166
1300
|
* @see ./opencode.ts
|
|
1301
|
+
* @see ./pi.ts
|
|
1302
|
+
* @see ./zed.ts
|
|
1167
1303
|
*/
|
|
1168
1304
|
|
|
1169
1305
|
/**
|
|
1170
1306
|
* Instantiates the built-in adapters that ship with AISnitch.
|
|
1171
1307
|
*/
|
|
1172
|
-
declare function createDefaultAdapters(options: AdapterRuntimeOptions): readonly [AiderAdapter, ClaudeCodeAdapter, CopilotCLIAdapter, CursorAdapter, DevinAdapter, GeminiCLIAdapter, GooseAdapter, KiloAdapter, CodexAdapter, OpenClawAdapter, OpenCodeAdapter];
|
|
1308
|
+
declare function createDefaultAdapters(options: AdapterRuntimeOptions): readonly [AiderAdapter, ClaudeCodeAdapter, CopilotCLIAdapter, CursorAdapter, DevinAdapter, GeminiCLIAdapter, GooseAdapter, KiloAdapter, CodexAdapter, OpenClawAdapter, OpenCodeAdapter, PiAdapter, ZedAdapter];
|
|
1173
1309
|
|
|
1174
1310
|
/**
|
|
1175
1311
|
* @file src/core/errors.ts
|
|
@@ -2150,6 +2286,22 @@ declare class Pipeline {
|
|
|
2150
2286
|
* Returns the in-process event bus for direct wiring in tests or future TUI code.
|
|
2151
2287
|
*/
|
|
2152
2288
|
getEventBus(): EventBus;
|
|
2289
|
+
/**
|
|
2290
|
+
* Returns the adapter registry for graceful shutdown coordination.
|
|
2291
|
+
*/
|
|
2292
|
+
getAdapterRegistry(): AdapterRegistry | undefined;
|
|
2293
|
+
/**
|
|
2294
|
+
* Returns the HTTP receiver for graceful shutdown coordination.
|
|
2295
|
+
*/
|
|
2296
|
+
getHttpReceiver(): HTTPReceiver;
|
|
2297
|
+
/**
|
|
2298
|
+
* Returns the UDS server for graceful shutdown coordination.
|
|
2299
|
+
*/
|
|
2300
|
+
getUdsServer(): UDSServer;
|
|
2301
|
+
/**
|
|
2302
|
+
* Returns the WebSocket server for graceful shutdown coordination.
|
|
2303
|
+
*/
|
|
2304
|
+
getWsServer(): WSServer;
|
|
2153
2305
|
private getHealthSnapshot;
|
|
2154
2306
|
private handleHook;
|
|
2155
2307
|
private handleHookInner;
|
|
@@ -3931,4 +4083,4 @@ declare function renderAttachedTui(options: AttachedTuiOptions): Promise<void>;
|
|
|
3931
4083
|
*/
|
|
3932
4084
|
declare function renderManagedTui(options: ManagedTuiOptions): Promise<void>;
|
|
3933
4085
|
|
|
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 };
|
|
4086
|
+
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 };
|