@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.
- package/dist/complete.d.ts +1 -0
- package/dist/context.d.ts +0 -1
- package/dist/drivers/bedrock/index.d.ts +1 -0
- package/dist/mcp-server.d.ts +1 -0
- package/dist/mcp.d.ts +21 -0
- package/dist/personalization.d.ts +0 -10
- package/dist/search.d.ts +2 -0
- package/dist/speech.d.ts +1 -0
- package/dist/text.d.ts +1 -0
- package/package.json +5 -5
package/dist/complete.d.ts
CHANGED
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 {
|
package/dist/mcp-server.d.ts
CHANGED
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
package/dist/text.d.ts
CHANGED
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.
|
|
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.
|
|
69
|
-
"@stacksjs/config": "0.75.
|
|
70
|
-
"@stacksjs/router": "0.75.
|
|
71
|
-
"@stacksjs/storage": "0.75.
|
|
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": {
|