@xenosystem/agent-sdk 0.10.42 → 0.10.44
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/artifacts/index.cjs +1 -1
- package/dist/artifacts/index.js +1 -1
- package/dist/automation/index.cjs +1 -1
- package/dist/automation/index.d.cts +3 -0
- package/dist/automation/index.d.ts +3 -0
- package/dist/automation/index.js +1 -1
- package/dist/control-plane/index.cjs +1 -1
- package/dist/control-plane/index.js +1 -1
- package/dist/electron/index.cjs +223 -305
- package/dist/electron/index.d.cts +14 -1
- package/dist/electron/index.d.ts +14 -1
- package/dist/electron/index.js +223 -305
- package/dist/electron/metafile-cjs.json +1 -1
- package/dist/electron/metafile-esm.json +1 -1
- package/dist/governance/index.cjs +22 -28
- package/dist/governance/index.d.cts +32 -17
- package/dist/governance/index.d.ts +32 -17
- package/dist/governance/index.js +22 -28
- package/dist/governance/metafile-cjs.json +1 -1
- package/dist/governance/metafile-esm.json +1 -1
- package/dist/index.cjs +420 -547
- package/dist/index.d.cts +116 -22
- package/dist/index.d.ts +116 -22
- package/dist/index.js +419 -546
- package/dist/mcp/index.d.cts +3 -0
- package/dist/mcp/index.d.ts +3 -0
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/session/index.cjs +1 -1
- package/dist/session/index.js +1 -1
- package/dist/utils/index.cjs +22 -23
- package/dist/utils/index.d.cts +3 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +18 -19
- package/dist/utils/metafile-cjs.json +1 -1
- package/dist/utils/metafile-esm.json +1 -1
- package/package.json +1 -1
|
@@ -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[];
|
|
@@ -884,6 +886,7 @@ declare class ToolRegistry {
|
|
|
884
886
|
listNamespaces(): string[];
|
|
885
887
|
execute(name: string, input: Record<string, unknown>, context?: ToolExecutionContext): Promise<ToolResult>;
|
|
886
888
|
listNames(): string[];
|
|
889
|
+
isAlias(name: string): boolean;
|
|
887
890
|
has(name: string): boolean;
|
|
888
891
|
projectPolicyInput(name: string, input: Record<string, unknown>, context?: ToolPolicyProjectionContext): ToolPolicyProjection | {
|
|
889
892
|
error: ToolResult;
|
|
@@ -1736,11 +1739,18 @@ interface CompletionGuardEvaluationContext {
|
|
|
1736
1739
|
}
|
|
1737
1740
|
type CompletionGuardDecision = {
|
|
1738
1741
|
allow: true;
|
|
1742
|
+
final?: boolean;
|
|
1739
1743
|
} | {
|
|
1740
1744
|
allow: false;
|
|
1741
1745
|
guidance: string;
|
|
1742
1746
|
stop?: boolean;
|
|
1747
|
+
blocking?: boolean;
|
|
1748
|
+
toolPolicy?: CompletionGuardToolPolicy$1;
|
|
1743
1749
|
};
|
|
1750
|
+
interface CompletionGuardToolPolicy$1 {
|
|
1751
|
+
mode: string;
|
|
1752
|
+
[key: string]: unknown;
|
|
1753
|
+
}
|
|
1744
1754
|
interface CompletionGuard {
|
|
1745
1755
|
name: string;
|
|
1746
1756
|
order?: number;
|
|
@@ -1840,6 +1850,9 @@ interface AgentLoopConfig {
|
|
|
1840
1850
|
onTurnDiff?: (summary: TurnDiffSummary) => void | Promise<void>;
|
|
1841
1851
|
completionGuard?: (context: CompletionGuardContext) => Promise<CompletionGuardResult | null> | CompletionGuardResult | null;
|
|
1842
1852
|
maxCompletionGuardReminders?: number;
|
|
1853
|
+
maxStalledCompletionGuardBlocks?: number;
|
|
1854
|
+
awaitOperationsInline?: boolean;
|
|
1855
|
+
inlineAwaitTimeoutMs?: number;
|
|
1843
1856
|
progressGuardEveryIterations?: number;
|
|
1844
1857
|
apiRequestTimeoutMs?: number;
|
|
1845
1858
|
apiFirstResponseTimeoutMs?: number;
|
|
@@ -1898,7 +1911,7 @@ interface CompletionGuardToolPolicy {
|
|
|
1898
1911
|
message?: string;
|
|
1899
1912
|
}
|
|
1900
1913
|
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";
|
|
1914
|
+
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
1915
|
interface AgentRunTermination {
|
|
1903
1916
|
status: AgentRunTerminationStatus;
|
|
1904
1917
|
reason: AgentRunTerminationReason;
|
package/dist/electron/index.d.ts
CHANGED
|
@@ -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[];
|
|
@@ -884,6 +886,7 @@ declare class ToolRegistry {
|
|
|
884
886
|
listNamespaces(): string[];
|
|
885
887
|
execute(name: string, input: Record<string, unknown>, context?: ToolExecutionContext): Promise<ToolResult>;
|
|
886
888
|
listNames(): string[];
|
|
889
|
+
isAlias(name: string): boolean;
|
|
887
890
|
has(name: string): boolean;
|
|
888
891
|
projectPolicyInput(name: string, input: Record<string, unknown>, context?: ToolPolicyProjectionContext): ToolPolicyProjection | {
|
|
889
892
|
error: ToolResult;
|
|
@@ -1736,11 +1739,18 @@ interface CompletionGuardEvaluationContext {
|
|
|
1736
1739
|
}
|
|
1737
1740
|
type CompletionGuardDecision = {
|
|
1738
1741
|
allow: true;
|
|
1742
|
+
final?: boolean;
|
|
1739
1743
|
} | {
|
|
1740
1744
|
allow: false;
|
|
1741
1745
|
guidance: string;
|
|
1742
1746
|
stop?: boolean;
|
|
1747
|
+
blocking?: boolean;
|
|
1748
|
+
toolPolicy?: CompletionGuardToolPolicy$1;
|
|
1743
1749
|
};
|
|
1750
|
+
interface CompletionGuardToolPolicy$1 {
|
|
1751
|
+
mode: string;
|
|
1752
|
+
[key: string]: unknown;
|
|
1753
|
+
}
|
|
1744
1754
|
interface CompletionGuard {
|
|
1745
1755
|
name: string;
|
|
1746
1756
|
order?: number;
|
|
@@ -1840,6 +1850,9 @@ interface AgentLoopConfig {
|
|
|
1840
1850
|
onTurnDiff?: (summary: TurnDiffSummary) => void | Promise<void>;
|
|
1841
1851
|
completionGuard?: (context: CompletionGuardContext) => Promise<CompletionGuardResult | null> | CompletionGuardResult | null;
|
|
1842
1852
|
maxCompletionGuardReminders?: number;
|
|
1853
|
+
maxStalledCompletionGuardBlocks?: number;
|
|
1854
|
+
awaitOperationsInline?: boolean;
|
|
1855
|
+
inlineAwaitTimeoutMs?: number;
|
|
1843
1856
|
progressGuardEveryIterations?: number;
|
|
1844
1857
|
apiRequestTimeoutMs?: number;
|
|
1845
1858
|
apiFirstResponseTimeoutMs?: number;
|
|
@@ -1898,7 +1911,7 @@ interface CompletionGuardToolPolicy {
|
|
|
1898
1911
|
message?: string;
|
|
1899
1912
|
}
|
|
1900
1913
|
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";
|
|
1914
|
+
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
1915
|
interface AgentRunTermination {
|
|
1903
1916
|
status: AgentRunTerminationStatus;
|
|
1904
1917
|
reason: AgentRunTerminationReason;
|