@absolutejs/absolute 0.19.0-beta.458 → 0.19.0-beta.460
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/ai/index.js +20 -9
- package/dist/ai/index.js.map +4 -4
- package/dist/angular/index.js +2 -2
- package/dist/angular/index.js.map +1 -1
- package/dist/angular/server.js +2 -2
- package/dist/angular/server.js.map +1 -1
- package/dist/build.js +2 -2
- package/dist/build.js.map +1 -1
- package/dist/index.js +19 -18
- package/dist/index.js.map +3 -3
- package/dist/src/ai/index.d.ts +1 -1
- package/dist/src/ai/rag/chat.d.ts +30 -0
- package/dist/src/ai/rag/index.d.ts +1 -1
- package/dist/src/ai/rag/types.d.ts +1 -1
- package/dist/src/core/prepare.d.ts +7 -8
- package/dist/types/ai.d.ts +12 -2
- package/package.json +7 -7
package/dist/src/ai/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { createSQLiteRAGStore } from './rag/adapters/sqlite';
|
|
|
7
7
|
export { resolveAbsoluteSQLiteVec, resolveAbsoluteSQLiteVecExtensionPath } from './rag/resolveAbsoluteSQLiteVec';
|
|
8
8
|
export { createRAGVector, normalizeVector, querySimilarity } from './rag/adapters/utils';
|
|
9
9
|
export type { GeminiEmbeddingsConfig, OllamaEmbeddingsConfig, OpenAICompatibleEmbeddingsConfig, OpenAIEmbeddingsConfig, NativeSQLiteRAGStoreOptions, SQLiteRAGStoreOptions } from './rag';
|
|
10
|
-
export type { RAGSource, RAGBackendCapabilities, RAGCitation, RAGChunkingOptions, RAGChunkingStrategy, RAGDocumentChunk, RAGDocumentChunkPreview, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, RAGEmbeddingFunction, RAGEmbeddingInput, RAGEmbeddingProvider, RAGEmbeddingProviderLike, RAGBackendDescriptor, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGHTMXConfig, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIndexedDocument, RAGQueryInput, RAGQueryResult, RAGIngestResponse, RAGPostgresNativeDiagnostics, RAGPreparedDocument, RAGSearchRequest, RAGSourceGroup, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGStreamStage, RAGMutationResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution, RAGChatPluginConfig } from '../../types/ai';
|
|
10
|
+
export type { AIHTMXRenderConfig, RAGSource, RAGBackendCapabilities, RAGCitation, RAGChunkingOptions, RAGChunkingStrategy, RAGDocumentChunk, RAGDocumentChunkPreview, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, RAGEmbeddingFunction, RAGEmbeddingInput, RAGEmbeddingProvider, RAGEmbeddingProviderLike, RAGBackendDescriptor, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGHTMXConfig, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIndexedDocument, RAGQueryInput, RAGQueryResult, RAGIngestResponse, RAGPostgresNativeDiagnostics, RAGPreparedDocument, RAGSearchRequest, RAGSourceGroup, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGStreamStage, RAGMutationResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution, RAGChatPluginConfig } from '../../types/ai';
|
|
11
11
|
export { createConversationManager } from './conversationManager';
|
|
12
12
|
export { createMemoryStore } from './memoryStore';
|
|
13
13
|
export { generateId, parseAIMessage, serializeAIMessage } from './protocol';
|
|
@@ -350,6 +350,36 @@ export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
|
|
|
350
350
|
};
|
|
351
351
|
};
|
|
352
352
|
};
|
|
353
|
+
} & {
|
|
354
|
+
[x: string]: {
|
|
355
|
+
cancel: {
|
|
356
|
+
":conversationId": {
|
|
357
|
+
":messageId": {
|
|
358
|
+
post: {
|
|
359
|
+
body: unknown;
|
|
360
|
+
params: {
|
|
361
|
+
conversationId: string;
|
|
362
|
+
messageId: string;
|
|
363
|
+
} & {};
|
|
364
|
+
query: unknown;
|
|
365
|
+
headers: unknown;
|
|
366
|
+
response: {
|
|
367
|
+
200: Response;
|
|
368
|
+
422: {
|
|
369
|
+
type: "validation";
|
|
370
|
+
on: string;
|
|
371
|
+
summary?: string;
|
|
372
|
+
message?: string;
|
|
373
|
+
found?: unknown;
|
|
374
|
+
property?: string;
|
|
375
|
+
expected?: string;
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
};
|
|
353
383
|
} & {
|
|
354
384
|
[x: string]: {
|
|
355
385
|
sse: {
|
|
@@ -11,5 +11,5 @@ export { resolveAbsoluteSQLiteVec, resolveAbsoluteSQLiteVecExtensionPath } from
|
|
|
11
11
|
export { createRAGVector, normalizeVector, querySimilarity } from './adapters/utils';
|
|
12
12
|
export type { GeminiEmbeddingsConfig, OllamaEmbeddingsConfig, OpenAICompatibleEmbeddingsConfig, OpenAIEmbeddingsConfig } from './embeddingProviders';
|
|
13
13
|
export type { NativeSQLiteRAGStoreOptions, SQLiteRAGStoreOptions } from './adapters/sqlite';
|
|
14
|
-
export type { RAGSource, RAGBackendCapabilities, RAGChunkingOptions, RAGChunkingStrategy, RAGDocumentChunk, RAGDocumentChunkPreview, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, RAGEmbeddingFunction, RAGEmbeddingInput, RAGEmbeddingProvider, RAGEmbeddingProviderLike, RAGBackendDescriptor, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGHTMXConfig, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIndexedDocument, RAGQueryInput, RAGQueryResult, RAGIngestResponse, RAGMutationResponse, RAGPreparedDocument, RAGSearchRequest, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from './types';
|
|
14
|
+
export type { AIHTMXRenderConfig, RAGSource, RAGBackendCapabilities, RAGChunkingOptions, RAGChunkingStrategy, RAGDocumentChunk, RAGDocumentChunkPreview, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, RAGEmbeddingFunction, RAGEmbeddingInput, RAGEmbeddingProvider, RAGEmbeddingProviderLike, RAGBackendDescriptor, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGHTMXConfig, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIndexedDocument, RAGQueryInput, RAGQueryResult, RAGIngestResponse, RAGMutationResponse, RAGPreparedDocument, RAGSearchRequest, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from './types';
|
|
15
15
|
export type { RAGPostgresNativeDiagnostics } from '../../../types/ai';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RAGDocumentChunk, RAGQueryInput, RAGQueryResult, RAGUpsertInput } from '../../../types/ai';
|
|
2
|
-
export type { RAGBackendCapabilities, RAGCitation, RAGChunkingOptions, RAGChunkingStrategy, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGHTMXConfig, RAGDocumentChunk, RAGDocumentChunkPreview, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, RAGEmbeddingFunction, RAGEmbeddingInput, RAGEmbeddingProvider, RAGEmbeddingProviderLike, RAGBackendDescriptor, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIndexedDocument, RAGPreparedDocument, RAGSource, RAGSourceGroup, RAGIngestResponse, RAGMutationResponse, RAGPostgresNativeDiagnostics, RAGQueryInput, RAGQueryResult, RAGSearchRequest, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGStreamStage, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from '../../../types/ai';
|
|
2
|
+
export type { AIHTMXRenderConfig, RAGBackendCapabilities, RAGCitation, RAGChunkingOptions, RAGChunkingStrategy, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGHTMXConfig, RAGDocumentChunk, RAGDocumentChunkPreview, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, RAGEmbeddingFunction, RAGEmbeddingInput, RAGEmbeddingProvider, RAGEmbeddingProviderLike, RAGBackendDescriptor, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIndexedDocument, RAGPreparedDocument, RAGSource, RAGSourceGroup, RAGIngestResponse, RAGMutationResponse, RAGPostgresNativeDiagnostics, RAGQueryInput, RAGQueryResult, RAGSearchRequest, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGStreamStage, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from '../../../types/ai';
|
|
3
3
|
export type InternalRAGStoredChunk = RAGDocumentChunk & {
|
|
4
4
|
vector: number[];
|
|
5
5
|
sourceId: string;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
2
|
export declare const prepare: (configOrPath?: string) => Promise<{
|
|
3
3
|
manifest: Record<string, string>;
|
|
4
|
-
absolutejs:
|
|
4
|
+
absolutejs: Elysia<"", {
|
|
5
|
+
decorator: any;
|
|
6
|
+
store: {
|
|
7
|
+
[x: string]: any;
|
|
8
|
+
};
|
|
5
9
|
derive: any;
|
|
6
10
|
resolve: any;
|
|
7
|
-
|
|
8
|
-
standaloneSchema: any;
|
|
9
|
-
response: {
|
|
10
|
-
200: Response;
|
|
11
|
-
};
|
|
12
|
-
}>;
|
|
11
|
+
}, any, any, any, any, any>;
|
|
13
12
|
}>;
|
package/dist/types/ai.d.ts
CHANGED
|
@@ -621,9 +621,19 @@ export type AIHTMXRenderConfig = {
|
|
|
621
621
|
toolRunning?: (name: string, input: unknown) => string;
|
|
622
622
|
toolComplete?: (name: string, result: string) => string;
|
|
623
623
|
image?: (data: string, format: string, revisedPrompt?: string) => string;
|
|
624
|
-
ragRetrieving?: (
|
|
624
|
+
ragRetrieving?: (input?: {
|
|
625
|
+
conversationId: string;
|
|
626
|
+
messageId: string;
|
|
627
|
+
retrievalStartedAt?: number;
|
|
628
|
+
}) => string;
|
|
625
629
|
complete?: (usage?: AIUsage, durationMs?: number, model?: string) => string;
|
|
626
|
-
ragRetrieved?: (sources: RAGSource[]
|
|
630
|
+
ragRetrieved?: (sources: RAGSource[], input?: {
|
|
631
|
+
conversationId: string;
|
|
632
|
+
messageId: string;
|
|
633
|
+
retrievalStartedAt?: number;
|
|
634
|
+
retrievedAt?: number;
|
|
635
|
+
retrievalDurationMs?: number;
|
|
636
|
+
}) => string;
|
|
627
637
|
error?: (message: string) => string;
|
|
628
638
|
};
|
|
629
639
|
export type RAGHTMXWorkflowRenderConfig = {
|
package/package.json
CHANGED
|
@@ -228,12 +228,12 @@
|
|
|
228
228
|
"main": "./dist/index.js",
|
|
229
229
|
"name": "@absolutejs/absolute",
|
|
230
230
|
"optionalDependencies": {
|
|
231
|
-
"@absolutejs/native-darwin-arm64": "0.19.0-beta.
|
|
232
|
-
"@absolutejs/native-darwin-x64": "0.19.0-beta.
|
|
233
|
-
"@absolutejs/native-linux-arm64": "0.19.0-beta.
|
|
234
|
-
"@absolutejs/native-linux-x64": "0.19.0-beta.
|
|
235
|
-
"@absolutejs/native-windows-arm64": "0.19.0-beta.
|
|
236
|
-
"@absolutejs/native-windows-x64": "0.19.0-beta.
|
|
231
|
+
"@absolutejs/native-darwin-arm64": "0.19.0-beta.459",
|
|
232
|
+
"@absolutejs/native-darwin-x64": "0.19.0-beta.459",
|
|
233
|
+
"@absolutejs/native-linux-arm64": "0.19.0-beta.459",
|
|
234
|
+
"@absolutejs/native-linux-x64": "0.19.0-beta.459",
|
|
235
|
+
"@absolutejs/native-windows-arm64": "0.19.0-beta.459",
|
|
236
|
+
"@absolutejs/native-windows-x64": "0.19.0-beta.459"
|
|
237
237
|
},
|
|
238
238
|
"overrides": {
|
|
239
239
|
"@typescript-eslint/utils": "8.56.1"
|
|
@@ -314,5 +314,5 @@
|
|
|
314
314
|
"typecheck": "bun run src/cli/index.ts typecheck --config example/absolute.config.ts"
|
|
315
315
|
},
|
|
316
316
|
"types": "./dist/src/index.d.ts",
|
|
317
|
-
"version": "0.19.0-beta.
|
|
317
|
+
"version": "0.19.0-beta.460"
|
|
318
318
|
}
|