@absolutejs/absolute 0.19.0-beta.448 → 0.19.0-beta.449
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 +8 -2
- package/dist/ai/index.js.map +6 -5
- package/dist/build.js +60 -9
- package/dist/build.js.map +4 -4
- package/dist/index.js +64 -10
- package/dist/index.js.map +5 -5
- package/dist/src/ai/index.d.ts +2 -2
- package/dist/src/ai/rag/htmxConfig.d.ts +3 -0
- package/dist/src/ai/rag/index.d.ts +2 -1
- package/dist/src/ai/rag/types.d.ts +1 -1
- package/dist/src/build/staticIslandPages.d.ts +2 -0
- package/dist/types/ai.d.ts +2 -0
- package/package.json +1 -1
package/dist/src/ai/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export { aiChat } from '../plugins/aiChat';
|
|
2
2
|
export { streamAI } from './streamAI';
|
|
3
3
|
export { ragChat } from './rag';
|
|
4
|
-
export { buildRAGCitations, buildRAGSourceGroups, buildRAGUpsertInputFromDirectory, buildRAGUpsertInputFromDocuments, createRAGCollection, getLatestAssistantMessage, getLatestRAGSources, ingestDocuments, ingestRAGDocuments, loadRAGDocumentFile, loadRAGDocumentsFromDirectory, prepareRAGDirectoryDocuments, prepareRAGDocument, prepareRAGDocumentFile, prepareRAGDocuments, ragPlugin, resolveRAGStreamStage, searchDocuments } from './rag';
|
|
4
|
+
export { buildRAGCitations, buildRAGSourceGroups, buildRAGUpsertInputFromDirectory, buildRAGUpsertInputFromDocuments, createRAGCollection, createRAGHTMXConfig, createRAGHTMXWorkflowRenderConfig, getLatestAssistantMessage, getLatestRAGSources, ingestDocuments, ingestRAGDocuments, loadRAGDocumentFile, loadRAGDocumentsFromDirectory, prepareRAGDirectoryDocuments, prepareRAGDocument, prepareRAGDocumentFile, prepareRAGDocuments, ragPlugin, resolveRAGStreamStage, searchDocuments } from './rag';
|
|
5
5
|
export { createInMemoryRAGStore } from './rag/adapters/inMemory';
|
|
6
6
|
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 { NativeSQLiteRAGStoreOptions, SQLiteRAGStoreOptions } from './rag/adapters/sqlite';
|
|
10
|
-
export type { RAGSource, RAGBackendCapabilities, RAGCitation, RAGChunkingOptions, RAGChunkingStrategy, RAGDocumentChunk, RAGDocumentChunkPreview, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, RAGBackendDescriptor, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, 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 { RAGSource, RAGBackendCapabilities, RAGCitation, RAGChunkingOptions, RAGChunkingStrategy, RAGDocumentChunk, RAGDocumentChunkPreview, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, 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';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { RAGHTMXConfig, RAGHTMXWorkflowRenderConfig } from '../../../types/ai';
|
|
2
|
+
export declare const createRAGHTMXConfig: (config: RAGHTMXConfig) => RAGHTMXConfig;
|
|
3
|
+
export declare const createRAGHTMXWorkflowRenderConfig: (config: RAGHTMXWorkflowRenderConfig) => RAGHTMXWorkflowRenderConfig;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { ragChat, ragChat as ragPlugin } from './chat';
|
|
2
|
+
export { createRAGHTMXConfig, createRAGHTMXWorkflowRenderConfig } from './htmxConfig';
|
|
2
3
|
export { buildRAGUpsertInputFromDirectory, buildRAGUpsertInputFromDocuments, loadRAGDocumentFile, loadRAGDocumentsFromDirectory, prepareRAGDirectoryDocuments, prepareRAGDocument, prepareRAGDocumentFile, prepareRAGDocuments } from './ingestion';
|
|
3
4
|
export { buildRAGCitations, buildRAGSourceGroups, getLatestAssistantMessage, getLatestRAGSources, resolveRAGStreamStage } from './presentation';
|
|
4
5
|
export { createRAGCollection, ingestDocuments, ingestRAGDocuments, searchDocuments } from './collection';
|
|
@@ -7,5 +8,5 @@ export { createSQLiteRAGStore } from './adapters/sqlite';
|
|
|
7
8
|
export { resolveAbsoluteSQLiteVec, resolveAbsoluteSQLiteVecExtensionPath } from './resolveAbsoluteSQLiteVec';
|
|
8
9
|
export { createRAGVector, normalizeVector, querySimilarity } from './adapters/utils';
|
|
9
10
|
export type { NativeSQLiteRAGStoreOptions, SQLiteRAGStoreOptions } from './adapters/sqlite';
|
|
10
|
-
export type { RAGSource, RAGBackendCapabilities, RAGChunkingOptions, RAGChunkingStrategy, RAGDocumentChunk, RAGDocumentChunkPreview, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, RAGBackendDescriptor, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIndexedDocument, RAGQueryInput, RAGQueryResult, RAGIngestResponse, RAGMutationResponse, RAGPreparedDocument, RAGSearchRequest, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from './types';
|
|
11
|
+
export type { RAGSource, RAGBackendCapabilities, RAGChunkingOptions, RAGChunkingStrategy, RAGDocumentChunk, RAGDocumentChunkPreview, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, RAGBackendDescriptor, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGHTMXConfig, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIndexedDocument, RAGQueryInput, RAGQueryResult, RAGIngestResponse, RAGMutationResponse, RAGPreparedDocument, RAGSearchRequest, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from './types';
|
|
11
12
|
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, RAGDocumentChunk, RAGDocumentChunkPreview, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, 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 { RAGBackendCapabilities, RAGCitation, RAGChunkingOptions, RAGChunkingStrategy, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGHTMXConfig, RAGDocumentChunk, RAGDocumentChunkPreview, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, 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,7 +1,9 @@
|
|
|
1
1
|
import type { IslandRegistryInput } from '../../types/island';
|
|
2
2
|
export declare const transformStaticPageHtml: (originalHtml: string, registry: IslandRegistryInput) => Promise<string>;
|
|
3
|
+
export declare const transformStaticHTMXStreamSlotHtml: (originalHtml: string) => string;
|
|
3
4
|
export declare const transformStaticStreamingSlotHtml: (originalHtml: string) => string;
|
|
4
5
|
export declare const transformCurrentStaticPageHtml: (html: string, options?: {
|
|
6
|
+
enableHTMXStreaming?: boolean;
|
|
5
7
|
enableStaticStreaming?: boolean;
|
|
6
8
|
}) => Promise<string>;
|
|
7
9
|
export declare const transformStaticPagesWithIslands: (registryPath: string | undefined, pagePaths: string[]) => Promise<void>;
|
package/dist/types/ai.d.ts
CHANGED
|
@@ -611,6 +611,8 @@ export type RAGHTMXWorkflowRenderConfig = {
|
|
|
611
611
|
};
|
|
612
612
|
export type RAGHTMXConfig = {
|
|
613
613
|
render?: AIHTMXRenderConfig;
|
|
614
|
+
workflowRender?: RAGHTMXWorkflowRenderConfig;
|
|
615
|
+
/** @deprecated Use workflowRender instead. */
|
|
614
616
|
workflow?: {
|
|
615
617
|
render?: RAGHTMXWorkflowRenderConfig;
|
|
616
618
|
};
|
package/package.json
CHANGED