chattercatcher 0.1.3 → 0.1.6
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/cli.js +180 -238
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +6 -12
- package/dist/index.js +169 -245
- package/dist/index.js.map +1 -1
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -282,7 +282,7 @@ declare class FeishuResourceDownloader {
|
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
declare class MessageRepository {
|
|
285
|
-
|
|
285
|
+
readonly database: SqliteDatabase;
|
|
286
286
|
constructor(database: SqliteDatabase);
|
|
287
287
|
ingest(input: IngestMessageInput): string;
|
|
288
288
|
listRecentMessages(limit?: number): MessageSearchResult[];
|
|
@@ -737,19 +737,13 @@ declare function indexMessageChunks(input: {
|
|
|
737
737
|
messageIds?: string[];
|
|
738
738
|
}): Promise<VectorIndexStats>;
|
|
739
739
|
|
|
740
|
-
declare
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
private readonly tableName;
|
|
744
|
-
private constructor();
|
|
745
|
-
static connect(uri: string, tableName?: string): Promise<LanceDbVectorStore>;
|
|
746
|
-
static connectFromConfig(config: AppConfig, tableName?: string): Promise<LanceDbVectorStore>;
|
|
747
|
-
close(): void;
|
|
740
|
+
declare class SQLiteVectorStore implements VectorStore {
|
|
741
|
+
private readonly database;
|
|
742
|
+
constructor(database: SqliteDatabase);
|
|
748
743
|
upsert(records: VectorRecord[]): Promise<void>;
|
|
749
744
|
search(vector: number[], limit: number): Promise<VectorSearchResult[]>;
|
|
750
745
|
count(): Promise<number>;
|
|
751
|
-
|
|
752
|
-
private openTableIfExists;
|
|
746
|
+
close(): void;
|
|
753
747
|
}
|
|
754
748
|
|
|
755
749
|
declare function hasEmbeddingConfig(config: AppConfig, secrets: AppSecrets): boolean;
|
|
@@ -805,4 +799,4 @@ declare class VectorRetriever implements Retriever {
|
|
|
805
799
|
declare function createWebApp(config: AppConfig): FastifyInstance;
|
|
806
800
|
declare function startWebServer(config: AppConfig): Promise<void>;
|
|
807
801
|
|
|
808
|
-
export { type AppConfig, type AppSecrets, type AskWithRagInput, type BuildEvidencePromptOptions, type ChatMessage, type ChatModel, type ChatRecord, type Citation, type DataExportResult, type DataRestoreResult, type DeleteLocalDataResult, type DeleteTargetType, type DoctorCheck, type DoctorOptions, type DoctorStatus, type EmbeddingModel, type EvidenceBlock, type EvidencePrompt, type EvidenceSource, type FeishuAttachmentMetadata, type FeishuDownloadResourceInput, type FeishuDownloadedResource, type FeishuGatewayOptions, type FeishuGatewayRuntime, FeishuMessageSender, type FeishuQuestionDecision, FeishuQuestionHandler, type FeishuQuestionHandlerOptions, type FeishuReceiveMessageEvent, FeishuResourceDownloader, type FileJobRecord, FileJobRepository, type FileJobStatus, type FileRecord, type GatewayAttachmentIngestResult, type GatewayIngestAndDownloadResult, type GatewayIngestResult, GatewayIngestor, type GatewayPidRecord, type GatewayRuntimeState, type GroundedAnswer, HybridRetriever, type HybridRetrieverOptions, type IngestLocalFileResult, type IngestMessageInput,
|
|
802
|
+
export { type AppConfig, type AppSecrets, type AskWithRagInput, type BuildEvidencePromptOptions, type ChatMessage, type ChatModel, type ChatRecord, type Citation, type DataExportResult, type DataRestoreResult, type DeleteLocalDataResult, type DeleteTargetType, type DoctorCheck, type DoctorOptions, type DoctorStatus, type EmbeddingModel, type EvidenceBlock, type EvidencePrompt, type EvidenceSource, type FeishuAttachmentMetadata, type FeishuDownloadResourceInput, type FeishuDownloadedResource, type FeishuGatewayOptions, type FeishuGatewayRuntime, FeishuMessageSender, type FeishuQuestionDecision, FeishuQuestionHandler, type FeishuQuestionHandlerOptions, type FeishuReceiveMessageEvent, FeishuResourceDownloader, type FileJobRecord, FileJobRepository, type FileJobStatus, type FileRecord, type GatewayAttachmentIngestResult, type GatewayIngestAndDownloadResult, type GatewayIngestResult, GatewayIngestor, type GatewayPidRecord, type GatewayRuntimeState, type GroundedAnswer, HybridRetriever, type HybridRetrieverOptions, type IngestLocalFileResult, type IngestMessageInput, type LogFileInfo, type LogTailResult, type ManualMessageIndexResult, MemoryVectorStore, MessageFtsRetriever, type MessageRecord, MessageRepository, type MessageSearchResult, type MessageSender, OpenAICompatibleChatModel, type OpenAICompatibleChatOptions, OpenAICompatibleEmbeddingModel, type OpenAICompatibleEmbeddingOptions, type ParsedFile, SQLiteVectorStore, type SourceType, type SqliteDatabase, type StopGatewayResult, type TextChunk, type VectorIndexStats, type VectorRecord, VectorRetriever, type VectorSearchResult, type VectorStore, appConfigSchema, appSecretsSchema, applySecretInput, askWithRag, buildEvidencePrompt, chunkText, cosineSimilarity, createChatModel, createDefaultConfig, createDefaultSecrets, createEmbeddingModel, createFeishuEventDispatcher, createFeishuGateway, createHybridRetriever, createWebApp, deleteLocalData, describeSupportedParseTypes, ensureConfigFiles, exportLocalData, extractFeishuAttachment, followLogFile, formatCitation, formatCitations, formatDoctorChecks, generateGroundedAnswer, getDatabasePath, getFeishuQuestionDecision, getGatewayPidPath, getGatewayRuntimeState, getLogsDirectory, hasEmbeddingConfig, indexMessageChunks, ingestLocalFile, isFeishuMessageAddressedToBot, isProcessRunning, isSupportedParseFile, isSupportedTextFile, listLogFiles, loadConfig, loadSecrets, mapDomain, maskSecret, migrateDatabase, normalizeFeishuReceiveMessageEvent, normalizeLineCount, openDatabase, parseFileToText, processMessagesNow, rankEvidenceForPrompt, readGatewayPidRecord, readLatestLogTail, readLogTail, removeGatewayPidRecord, resetConfigFiles, resolveEmbeddingApiKey, resolveLogPath, restoreLocalData, runDoctor, saveConfig, saveSecrets, startWebServer, stopGatewayProcess, writeGatewayPidRecord };
|