@xnetjs/plugins 0.2.0 → 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.
package/dist/index.d.ts CHANGED
@@ -1949,6 +1949,13 @@ declare class AiSurfaceService {
1949
1949
  private readonly rollbackSnapshots;
1950
1950
  /** Contributed tools by name (exploration 0196), de-duped at construction. */
1951
1951
  private readonly extraTools;
1952
+ /**
1953
+ * The narrow surface handed to built-in tool handlers and resource routes
1954
+ * (`tools/`, `resources/`): closures over the private methods, so the class
1955
+ * stays the facade and its public type is unchanged. The closures are lazy —
1956
+ * nothing here runs until a tool call or resource read arrives.
1957
+ */
1958
+ private readonly host;
1952
1959
  constructor(config: AiSurfaceServiceConfig);
1953
1960
  /** The contributed (non-built-in) tools, with built-in name collisions removed. */
1954
1961
  private getExtraTools;
@@ -1956,6 +1963,11 @@ declare class AiSurfaceService {
1956
1963
  /** The full tool surface: built-in `xnet_*` tools plus contributed extras. */
1957
1964
  getTools(): AiToolDefinition[];
1958
1965
  private builtInTools;
1966
+ /**
1967
+ * Dispatch a tool call: the built-in registry first (a built-in `xnet_*`
1968
+ * name always wins), then contributed tools (plugin/connector `agentTools`,
1969
+ * exploration 0196).
1970
+ */
1959
1971
  callTool(name: string, args?: Record<string, unknown>): Promise<unknown>;
1960
1972
  readResource(uri: string): Promise<AiResourceContent>;
1961
1973
  toJsonText(value: unknown, format?: 'concise' | 'detailed'): string;