agent-sessions / Exports
agent-sessions
Table of contents
Classes
- CompactionOrchestrator
- ContextWindowTracker
- PermissionEnforcer
- FileSessionLogger
- SilentSessionLogger
- SessionStore
- Session
Interfaces
Type Aliases
Type Aliases
TPermissionResult
Ƭ TPermissionResult: boolean | "allow-session"
Permission handler result:
- true: allow this invocation
- false: deny this invocation
- 'allow-session': allow this invocation and auto-approve this tool for the rest of the session
Defined in
agent-sessions/src/permission-enforcer.ts:42
TPermissionHandler
Ƭ TPermissionHandler: (toolName: string, toolArgs: TToolArgs) => Promise<TPermissionResult>
Custom permission handler — called when a tool needs user approval. Returns true to allow, false to deny, or 'allow-session' to remember for the session.
Type declaration
▸ (toolName, toolArgs): Promise<TPermissionResult>
Parameters
| Name | Type |
|---|---|
toolName | string |
toolArgs | TToolArgs |
Returns
Promise<TPermissionResult>
Defined in
agent-sessions/src/permission-enforcer.ts:48
TSessionLogData
Ƭ TSessionLogData: Record<string, string | number | boolean | object>
Session log event data — extensible record of event metadata.