@stacksjs/ai 0.75.520 → 0.75.522

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.
@@ -109,3 +109,4 @@ export declare interface PostProcessOptions {
109
109
  */
110
110
  export type CompletionKind = 'note' | 'prompt' | 'todo' | 'text';
111
111
  declare type StreamFn = NonNullable<CompleteRuntime['stream']>;
112
+ export {};
package/dist/context.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- declare function representativeFiles(files: string[], maxFiles: number): string[];
2
1
  export declare function buildProjectContext(repoPath: string, options?: ProjectContextOptions): ProjectContextResult;
3
2
  export declare const STACKS_PROJECT_CONTEXT_SCHEMA: 'https://stacksjs.com/schemas/ai-project-context/v1';
4
3
  export declare interface ProjectContextOptions {
@@ -46,3 +46,4 @@ export declare interface BedrockDriverConfig {
46
46
  }
47
47
  declare type ConverseMessage = ConverseCommandInput['messages'][number];
48
48
  declare type ConverseBlock = ConverseMessage['content'][number];
49
+ export {};
@@ -69,3 +69,4 @@ declare class ProtocolError extends Error {
69
69
  readonly code: number;
70
70
  constructor(code: number, message: string);
71
71
  }
72
+ export {};
package/dist/mcp.d.ts CHANGED
@@ -85,8 +85,28 @@ export type MCPTransport = | { type: 'stdio'; command: string; args?: string[];
85
85
  * Provides tool discovery, invocation, resource reading, and prompt listing.
86
86
  */
87
87
  export declare class MCPClient {
88
+ private config;
89
+ private process;
90
+ private requestId;
91
+ private pendingRequests;
92
+ private tools;
93
+ private resources;
94
+ private prompts;
95
+ private initialized;
96
+ private buffer;
97
+ private protocolVersion;
98
+ private sessionId;
99
+ private serverCapabilities;
88
100
  constructor(config: MCPServerConfig);
89
101
  connect(): Promise<void>;
102
+ private connectStdio;
103
+ private connectHTTP;
104
+ private readStdout;
105
+ private processBuffer;
106
+ private nextId;
107
+ private sendRequest;
108
+ private sendNotification;
109
+ private discoverCapabilities;
90
110
  listTools(): MCPTool[];
91
111
  listResources(): MCPResource[];
92
112
  listPrompts(): MCPPrompt[];
@@ -106,6 +126,7 @@ export declare class MCPClient {
106
126
  * Manages connections to multiple MCP servers.
107
127
  */
108
128
  export declare class MCPManager {
129
+ private clients;
109
130
  addServer(config: MCPServerConfig): Promise<MCPClient>;
110
131
  removeServer(name: string): Promise<void>;
111
132
  getServer(name: string): MCPClient | undefined;
@@ -1,4 +1,3 @@
1
- import type { AIResult } from './types';
2
1
  /**
3
2
  * Analyze the sentiment of text using AI.
4
3
  */
@@ -15,15 +14,6 @@ export declare function classifyText(text: string, labels: string[], options?: {
15
14
  model?: string
16
15
  multiLabel?: boolean
17
16
  }): Promise<ClassificationResult>;
18
- /**
19
- * Generate an intelligent summary of text.
20
- *
21
- * Not exported as a bare top-level identifier because `text.ts` already
22
- * exposes `summarize`, and `index.ts` re-exports both via `export *`.
23
- * Reach this multi-provider variant through the `personalization`
24
- * namespace export below: `personalization.summarize(...)`.
25
- */
26
- declare function summarize(text: string, options?: SummaryOptions): Promise<AIResult>;
27
17
  /**
28
18
  * Generate personalized content recommendations based on user profile and available items.
29
19
  */
package/dist/search.d.ts CHANGED
@@ -89,6 +89,8 @@ export declare interface ChunkOptions {
89
89
  * For production, use a dedicated vector database.
90
90
  */
91
91
  export declare class VectorIndex {
92
+ private documents;
93
+ private embeddingOptions;
92
94
  constructor(options?: EmbeddingOptions);
93
95
  add(documents: SearchDocument[]): Promise<void>;
94
96
  addWithEmbedding(document: SearchDocument, embedding: number[]): void;
package/dist/speech.d.ts CHANGED
@@ -92,3 +92,4 @@ export declare class SpeechRequestError extends Error {
92
92
  readonly retryAfter: string | null;
93
93
  constructor(message: string, status: number, retryAfter?: string | null);
94
94
  }
95
+ export {};
package/dist/text.d.ts CHANGED
@@ -8,3 +8,4 @@ declare interface AiOptions {
8
8
  }
9
9
  export declare interface SummarizeOptions extends AiOptions {}
10
10
  export declare interface AskOptions extends AiOptions {}
11
+ export {};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/ai",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.520",
5
+ "version": "0.75.522",
6
6
  "description": "Stacks Artificial Intelligence.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -65,10 +65,10 @@
65
65
  "prepublishOnly": "bun run build"
66
66
  },
67
67
  "dependencies": {
68
- "@stacksjs/cli": "0.75.520",
69
- "@stacksjs/config": "0.75.520",
70
- "@stacksjs/router": "0.75.520",
71
- "@stacksjs/storage": "0.75.520",
68
+ "@stacksjs/cli": "0.75.522",
69
+ "@stacksjs/config": "0.75.522",
70
+ "@stacksjs/router": "0.75.522",
71
+ "@stacksjs/storage": "0.75.522",
72
72
  "@stacksjs/ts-cloud": "^0.16.109"
73
73
  },
74
74
  "peerDependencies": {