@everworker/oneringai 0.3.2 → 0.4.0

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.
@@ -1307,6 +1307,11 @@ declare class HookManager {
1307
1307
  * Register a hook
1308
1308
  */
1309
1309
  register(name: HookName, hook: Hook<any, any>): void;
1310
+ /**
1311
+ * Unregister a specific hook function by reference.
1312
+ * Returns true if the hook was found and removed.
1313
+ */
1314
+ unregister(name: HookName, hook: Hook<any, any>): boolean;
1310
1315
  /**
1311
1316
  * Execute hooks for a given name
1312
1317
  */
@@ -1349,4 +1354,4 @@ declare class HookManager {
1349
1354
  getDisabledHooks(): string[];
1350
1355
  }
1351
1356
 
1352
- export { type InputTextContent as $, type AgentEvents as A, type AgenticLoopEvents as B, type Content as C, type ApprovalResult as D, ExecutionContext as E, type FunctionToolDefinition as F, type ApproveToolContext as G, type HookConfig as H, type InputItem as I, type BeforeToolContext as J, type BuiltInTool as K, type LLMResponse as L, type MemoryEntry as M, type CompactionItem as N, type OutputItem as O, type PriorityCalculator as P, ContentType as Q, DEFAULT_MEMORY_CONFIG as R, type StreamEvent as S, type ToolFunction as T, type ErrorEvent as U, type ExecutionConfig as V, type WorkingMemoryConfig as W, type Hook as X, HookManager as Y, type HookName as Z, type InputImageContent as _, type MemoryScope as a, type IterationCompleteEvent$1 as a0, type JSONSchema as a1, MEMORY_PRIORITY_VALUES as a2, type MemoryEntryInput as a3, type MemoryIndexEntry as a4, type Message as a5, type ModifyingHook as a6, type OutputTextContent as a7, type OutputTextDeltaEvent as a8, type OutputTextDoneEvent as a9, isTaskAwareScope as aA, isTerminalMemoryStatus as aB, isToolCallArgumentsDelta as aC, isToolCallArgumentsDone as aD, isToolCallStart as aE, scopeEquals as aF, scopeMatches as aG, type ExecutionCompleteEvent as aH, type ExecutionStartEvent as aI, type LLMRequestEvent as aJ, type LLMResponseEvent as aK, type ToolCompleteEvent as aL, type ToolStartEvent as aM, type ReasoningItem as aa, type ResponseCompleteEvent as ab, type ResponseCreatedEvent as ac, type ResponseInProgressEvent as ad, type SimpleScope as ae, type TaskAwareScope as af, type ToolCallArgumentsDeltaEvent as ag, type ToolCallArgumentsDoneEvent as ah, type ToolCallStartEvent as ai, ToolCallState as aj, type ToolExecutionContext as ak, type ToolExecutionDoneEvent as al, type ToolExecutionStartEvent as am, type ToolModification as an, type ToolResultContent as ao, type ToolUseContent as ap, calculateEntrySize as aq, defaultDescribeCall as ar, forPlan as as, forTasks as at, getToolCallDescription as au, isErrorEvent as av, isOutputTextDelta as aw, isResponseComplete as ax, isSimpleScope as ay, isStreamEvent as az, type Tool as b, type ToolContext as c, type ToolPermissionConfig as d, type ToolCall as e, type MemoryPriority as f, type MemoryTier as g, type ToolResult as h, type ITextProvider as i, type HistoryMode as j, type AgentResponse as k, type ExecutionMetrics as l, type AuditEntry as m, type StaleEntryInfo as n, type PriorityContext as o, type MemoryIndex as p, type TaskStatusForMemory as q, type WorkingMemoryAccess as r, type TokenUsage as s, StreamEventType as t, type TextGenerateOptions as u, type ModelCapabilities as v, MessageRole as w, type AfterToolContext as x, type AgentEventName as y, type AgenticLoopEventName as z };
1357
+ export { type InputTextContent as $, type AgentEvents as A, type AgenticLoopEventName as B, type Content as C, type AgenticLoopEvents as D, ExecutionContext as E, type FunctionToolDefinition as F, type ApprovalResult as G, type HookConfig as H, type InputItem as I, type ApproveToolContext as J, type BeforeToolContext as K, type LLMResponse as L, type MemoryEntry as M, type BuiltInTool as N, type OutputItem as O, type PriorityCalculator as P, type CompactionItem as Q, ContentType as R, type StreamEvent as S, type ToolFunction as T, DEFAULT_MEMORY_CONFIG as U, type ErrorEvent as V, type WorkingMemoryConfig as W, type ExecutionConfig as X, type Hook as Y, HookManager as Z, type InputImageContent as _, type MemoryScope as a, type IterationCompleteEvent$1 as a0, type JSONSchema as a1, MEMORY_PRIORITY_VALUES as a2, type MemoryEntryInput as a3, type MemoryIndexEntry as a4, type Message as a5, type ModifyingHook as a6, type OutputTextContent as a7, type OutputTextDeltaEvent as a8, type OutputTextDoneEvent as a9, isTaskAwareScope as aA, isTerminalMemoryStatus as aB, isToolCallArgumentsDelta as aC, isToolCallArgumentsDone as aD, isToolCallStart as aE, scopeEquals as aF, scopeMatches as aG, type ExecutionCompleteEvent as aH, type ExecutionStartEvent as aI, type LLMRequestEvent as aJ, type LLMResponseEvent as aK, type ToolCompleteEvent as aL, type ToolStartEvent as aM, type ReasoningItem as aa, type ResponseCompleteEvent as ab, type ResponseCreatedEvent as ac, type ResponseInProgressEvent as ad, type SimpleScope as ae, type TaskAwareScope as af, type ToolCallArgumentsDeltaEvent as ag, type ToolCallArgumentsDoneEvent as ah, type ToolCallStartEvent as ai, ToolCallState as aj, type ToolExecutionContext as ak, type ToolExecutionDoneEvent as al, type ToolExecutionStartEvent as am, type ToolModification as an, type ToolResultContent as ao, type ToolUseContent as ap, calculateEntrySize as aq, defaultDescribeCall as ar, forPlan as as, forTasks as at, getToolCallDescription as au, isErrorEvent as av, isOutputTextDelta as aw, isResponseComplete as ax, isSimpleScope as ay, isStreamEvent as az, type Tool as b, type ToolContext as c, type ToolPermissionConfig as d, type ToolCall as e, type MemoryPriority as f, type MemoryTier as g, type ToolResult as h, type ITextProvider as i, type HistoryMode as j, type AgentResponse as k, type ExecutionMetrics as l, type AuditEntry as m, type HookName as n, type StaleEntryInfo as o, type PriorityContext as p, type MemoryIndex as q, type TaskStatusForMemory as r, type WorkingMemoryAccess as s, type TokenUsage as t, StreamEventType as u, type TextGenerateOptions as v, type ModelCapabilities as w, MessageRole as x, type AfterToolContext as y, type AgentEventName as z };
@@ -1307,6 +1307,11 @@ declare class HookManager {
1307
1307
  * Register a hook
1308
1308
  */
1309
1309
  register(name: HookName, hook: Hook<any, any>): void;
1310
+ /**
1311
+ * Unregister a specific hook function by reference.
1312
+ * Returns true if the hook was found and removed.
1313
+ */
1314
+ unregister(name: HookName, hook: Hook<any, any>): boolean;
1310
1315
  /**
1311
1316
  * Execute hooks for a given name
1312
1317
  */
@@ -1349,4 +1354,4 @@ declare class HookManager {
1349
1354
  getDisabledHooks(): string[];
1350
1355
  }
1351
1356
 
1352
- export { type InputTextContent as $, type AgentEvents as A, type AgenticLoopEvents as B, type Content as C, type ApprovalResult as D, ExecutionContext as E, type FunctionToolDefinition as F, type ApproveToolContext as G, type HookConfig as H, type InputItem as I, type BeforeToolContext as J, type BuiltInTool as K, type LLMResponse as L, type MemoryEntry as M, type CompactionItem as N, type OutputItem as O, type PriorityCalculator as P, ContentType as Q, DEFAULT_MEMORY_CONFIG as R, type StreamEvent as S, type ToolFunction as T, type ErrorEvent as U, type ExecutionConfig as V, type WorkingMemoryConfig as W, type Hook as X, HookManager as Y, type HookName as Z, type InputImageContent as _, type MemoryScope as a, type IterationCompleteEvent$1 as a0, type JSONSchema as a1, MEMORY_PRIORITY_VALUES as a2, type MemoryEntryInput as a3, type MemoryIndexEntry as a4, type Message as a5, type ModifyingHook as a6, type OutputTextContent as a7, type OutputTextDeltaEvent as a8, type OutputTextDoneEvent as a9, isTaskAwareScope as aA, isTerminalMemoryStatus as aB, isToolCallArgumentsDelta as aC, isToolCallArgumentsDone as aD, isToolCallStart as aE, scopeEquals as aF, scopeMatches as aG, type ExecutionCompleteEvent as aH, type ExecutionStartEvent as aI, type LLMRequestEvent as aJ, type LLMResponseEvent as aK, type ToolCompleteEvent as aL, type ToolStartEvent as aM, type ReasoningItem as aa, type ResponseCompleteEvent as ab, type ResponseCreatedEvent as ac, type ResponseInProgressEvent as ad, type SimpleScope as ae, type TaskAwareScope as af, type ToolCallArgumentsDeltaEvent as ag, type ToolCallArgumentsDoneEvent as ah, type ToolCallStartEvent as ai, ToolCallState as aj, type ToolExecutionContext as ak, type ToolExecutionDoneEvent as al, type ToolExecutionStartEvent as am, type ToolModification as an, type ToolResultContent as ao, type ToolUseContent as ap, calculateEntrySize as aq, defaultDescribeCall as ar, forPlan as as, forTasks as at, getToolCallDescription as au, isErrorEvent as av, isOutputTextDelta as aw, isResponseComplete as ax, isSimpleScope as ay, isStreamEvent as az, type Tool as b, type ToolContext as c, type ToolPermissionConfig as d, type ToolCall as e, type MemoryPriority as f, type MemoryTier as g, type ToolResult as h, type ITextProvider as i, type HistoryMode as j, type AgentResponse as k, type ExecutionMetrics as l, type AuditEntry as m, type StaleEntryInfo as n, type PriorityContext as o, type MemoryIndex as p, type TaskStatusForMemory as q, type WorkingMemoryAccess as r, type TokenUsage as s, StreamEventType as t, type TextGenerateOptions as u, type ModelCapabilities as v, MessageRole as w, type AfterToolContext as x, type AgentEventName as y, type AgenticLoopEventName as z };
1357
+ export { type InputTextContent as $, type AgentEvents as A, type AgenticLoopEventName as B, type Content as C, type AgenticLoopEvents as D, ExecutionContext as E, type FunctionToolDefinition as F, type ApprovalResult as G, type HookConfig as H, type InputItem as I, type ApproveToolContext as J, type BeforeToolContext as K, type LLMResponse as L, type MemoryEntry as M, type BuiltInTool as N, type OutputItem as O, type PriorityCalculator as P, type CompactionItem as Q, ContentType as R, type StreamEvent as S, type ToolFunction as T, DEFAULT_MEMORY_CONFIG as U, type ErrorEvent as V, type WorkingMemoryConfig as W, type ExecutionConfig as X, type Hook as Y, HookManager as Z, type InputImageContent as _, type MemoryScope as a, type IterationCompleteEvent$1 as a0, type JSONSchema as a1, MEMORY_PRIORITY_VALUES as a2, type MemoryEntryInput as a3, type MemoryIndexEntry as a4, type Message as a5, type ModifyingHook as a6, type OutputTextContent as a7, type OutputTextDeltaEvent as a8, type OutputTextDoneEvent as a9, isTaskAwareScope as aA, isTerminalMemoryStatus as aB, isToolCallArgumentsDelta as aC, isToolCallArgumentsDone as aD, isToolCallStart as aE, scopeEquals as aF, scopeMatches as aG, type ExecutionCompleteEvent as aH, type ExecutionStartEvent as aI, type LLMRequestEvent as aJ, type LLMResponseEvent as aK, type ToolCompleteEvent as aL, type ToolStartEvent as aM, type ReasoningItem as aa, type ResponseCompleteEvent as ab, type ResponseCreatedEvent as ac, type ResponseInProgressEvent as ad, type SimpleScope as ae, type TaskAwareScope as af, type ToolCallArgumentsDeltaEvent as ag, type ToolCallArgumentsDoneEvent as ah, type ToolCallStartEvent as ai, ToolCallState as aj, type ToolExecutionContext as ak, type ToolExecutionDoneEvent as al, type ToolExecutionStartEvent as am, type ToolModification as an, type ToolResultContent as ao, type ToolUseContent as ap, calculateEntrySize as aq, defaultDescribeCall as ar, forPlan as as, forTasks as at, getToolCallDescription as au, isErrorEvent as av, isOutputTextDelta as aw, isResponseComplete as ax, isSimpleScope as ay, isStreamEvent as az, type Tool as b, type ToolContext as c, type ToolPermissionConfig as d, type ToolCall as e, type MemoryPriority as f, type MemoryTier as g, type ToolResult as h, type ITextProvider as i, type HistoryMode as j, type AgentResponse as k, type ExecutionMetrics as l, type AuditEntry as m, type HookName as n, type StaleEntryInfo as o, type PriorityContext as p, type MemoryIndex as q, type TaskStatusForMemory as r, type WorkingMemoryAccess as s, type TokenUsage as t, StreamEventType as u, type TextGenerateOptions as v, type ModelCapabilities as w, MessageRole as x, type AfterToolContext as y, type AgentEventName as z };