@xenosystem/agent-sdk 0.10.42 → 0.10.43

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.
@@ -860,6 +860,7 @@ declare class ToolRegistry {
860
860
  private validateInputs;
861
861
  private readonly toolSchemaMode;
862
862
  private readonly activatedDefinitions;
863
+ private readonly hiddenFromModel;
863
864
  private memoryRuntime?;
864
865
  private memoryBindingScope?;
865
866
  constructor(options?: ToolRegistryOptions);
@@ -876,6 +877,7 @@ declare class ToolRegistry {
876
877
  private emitChange;
877
878
  get(name: string): RegisteredTool | undefined;
878
879
  getDefinitions(): ToolDefinition[];
880
+ hideFromModel(names: readonly string[]): this;
879
881
  getDefinitionsForRequest(): ToolDefinition[];
880
882
  getCapabilityCatalog(): string;
881
883
  activateMatchingDefinitions(query: string, limit?: number): ToolDefinition[];
@@ -1736,11 +1738,18 @@ interface CompletionGuardEvaluationContext {
1736
1738
  }
1737
1739
  type CompletionGuardDecision = {
1738
1740
  allow: true;
1741
+ final?: boolean;
1739
1742
  } | {
1740
1743
  allow: false;
1741
1744
  guidance: string;
1742
1745
  stop?: boolean;
1746
+ blocking?: boolean;
1747
+ toolPolicy?: CompletionGuardToolPolicy$1;
1743
1748
  };
1749
+ interface CompletionGuardToolPolicy$1 {
1750
+ mode: string;
1751
+ [key: string]: unknown;
1752
+ }
1744
1753
  interface CompletionGuard {
1745
1754
  name: string;
1746
1755
  order?: number;
@@ -1840,6 +1849,9 @@ interface AgentLoopConfig {
1840
1849
  onTurnDiff?: (summary: TurnDiffSummary) => void | Promise<void>;
1841
1850
  completionGuard?: (context: CompletionGuardContext) => Promise<CompletionGuardResult | null> | CompletionGuardResult | null;
1842
1851
  maxCompletionGuardReminders?: number;
1852
+ maxStalledCompletionGuardBlocks?: number;
1853
+ awaitOperationsInline?: boolean;
1854
+ inlineAwaitTimeoutMs?: number;
1843
1855
  progressGuardEveryIterations?: number;
1844
1856
  apiRequestTimeoutMs?: number;
1845
1857
  apiFirstResponseTimeoutMs?: number;
@@ -1898,7 +1910,7 @@ interface CompletionGuardToolPolicy {
1898
1910
  message?: string;
1899
1911
  }
1900
1912
  type AgentRunTerminationStatus = "completed" | "incomplete" | "suspended" | "interrupted" | "error";
1901
- type AgentRunTerminationReason = "end_turn" | "empty_response" | "max_tokens" | "completion_guard_stop" | "max_iterations" | "token_budget" | "awaiting_operation" | "continuation_exhausted" | "interrupted" | "watchdog_idle" | "watchdog_lease" | "watchdog_hard" | "error";
1913
+ type AgentRunTerminationReason = "end_turn" | "empty_response" | "max_tokens" | "completion_guard_stop" | "completion_guard_stalled" | "max_iterations" | "token_budget" | "awaiting_operation" | "continuation_exhausted" | "interrupted" | "watchdog_idle" | "watchdog_lease" | "watchdog_hard" | "error";
1902
1914
  interface AgentRunTermination {
1903
1915
  status: AgentRunTerminationStatus;
1904
1916
  reason: AgentRunTerminationReason;
@@ -860,6 +860,7 @@ declare class ToolRegistry {
860
860
  private validateInputs;
861
861
  private readonly toolSchemaMode;
862
862
  private readonly activatedDefinitions;
863
+ private readonly hiddenFromModel;
863
864
  private memoryRuntime?;
864
865
  private memoryBindingScope?;
865
866
  constructor(options?: ToolRegistryOptions);
@@ -876,6 +877,7 @@ declare class ToolRegistry {
876
877
  private emitChange;
877
878
  get(name: string): RegisteredTool | undefined;
878
879
  getDefinitions(): ToolDefinition[];
880
+ hideFromModel(names: readonly string[]): this;
879
881
  getDefinitionsForRequest(): ToolDefinition[];
880
882
  getCapabilityCatalog(): string;
881
883
  activateMatchingDefinitions(query: string, limit?: number): ToolDefinition[];
@@ -1736,11 +1738,18 @@ interface CompletionGuardEvaluationContext {
1736
1738
  }
1737
1739
  type CompletionGuardDecision = {
1738
1740
  allow: true;
1741
+ final?: boolean;
1739
1742
  } | {
1740
1743
  allow: false;
1741
1744
  guidance: string;
1742
1745
  stop?: boolean;
1746
+ blocking?: boolean;
1747
+ toolPolicy?: CompletionGuardToolPolicy$1;
1743
1748
  };
1749
+ interface CompletionGuardToolPolicy$1 {
1750
+ mode: string;
1751
+ [key: string]: unknown;
1752
+ }
1744
1753
  interface CompletionGuard {
1745
1754
  name: string;
1746
1755
  order?: number;
@@ -1840,6 +1849,9 @@ interface AgentLoopConfig {
1840
1849
  onTurnDiff?: (summary: TurnDiffSummary) => void | Promise<void>;
1841
1850
  completionGuard?: (context: CompletionGuardContext) => Promise<CompletionGuardResult | null> | CompletionGuardResult | null;
1842
1851
  maxCompletionGuardReminders?: number;
1852
+ maxStalledCompletionGuardBlocks?: number;
1853
+ awaitOperationsInline?: boolean;
1854
+ inlineAwaitTimeoutMs?: number;
1843
1855
  progressGuardEveryIterations?: number;
1844
1856
  apiRequestTimeoutMs?: number;
1845
1857
  apiFirstResponseTimeoutMs?: number;
@@ -1898,7 +1910,7 @@ interface CompletionGuardToolPolicy {
1898
1910
  message?: string;
1899
1911
  }
1900
1912
  type AgentRunTerminationStatus = "completed" | "incomplete" | "suspended" | "interrupted" | "error";
1901
- type AgentRunTerminationReason = "end_turn" | "empty_response" | "max_tokens" | "completion_guard_stop" | "max_iterations" | "token_budget" | "awaiting_operation" | "continuation_exhausted" | "interrupted" | "watchdog_idle" | "watchdog_lease" | "watchdog_hard" | "error";
1913
+ type AgentRunTerminationReason = "end_turn" | "empty_response" | "max_tokens" | "completion_guard_stop" | "completion_guard_stalled" | "max_iterations" | "token_budget" | "awaiting_operation" | "continuation_exhausted" | "interrupted" | "watchdog_idle" | "watchdog_lease" | "watchdog_hard" | "error";
1902
1914
  interface AgentRunTermination {
1903
1915
  status: AgentRunTerminationStatus;
1904
1916
  reason: AgentRunTerminationReason;