@c3-oss/prosa 0.2.0 → 0.3.0
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/bin/prosa.js +233 -98
- package/dist/bin/prosa.js.map +1 -1
- package/dist/cli/main.js +233 -98
- package/dist/cli/main.js.map +1 -1
- package/dist/index.d.ts +57 -6
- package/dist/index.js +2256 -2125
- package/dist/index.js.map +1 -1
- package/package.json +18 -2
package/dist/index.d.ts
CHANGED
|
@@ -274,6 +274,62 @@ interface SearchOptions {
|
|
|
274
274
|
*/
|
|
275
275
|
declare function searchFullText(bundle: Bundle, options: SearchOptions): SearchHit[];
|
|
276
276
|
|
|
277
|
+
type CompileLogger = Pick<Logger, 'child' | 'debug' | 'error' | 'info' | 'warn'>;
|
|
278
|
+
interface CompileOptions {
|
|
279
|
+
logger?: CompileLogger;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
interface CompileResult$4 {
|
|
283
|
+
batch: ImportBatch;
|
|
284
|
+
counts: ImportCounts;
|
|
285
|
+
}
|
|
286
|
+
interface CompileProviderConfig {
|
|
287
|
+
name: SourceTool;
|
|
288
|
+
description: string;
|
|
289
|
+
pathHelp: string;
|
|
290
|
+
defaultSessionsPath: () => string;
|
|
291
|
+
compile: (bundle: Bundle, root: string, options?: CompileOptions) => Promise<CompileResult$4>;
|
|
292
|
+
}
|
|
293
|
+
interface ProviderCompileSummary {
|
|
294
|
+
source: SourceTool;
|
|
295
|
+
sourcePath: string;
|
|
296
|
+
batchId: string;
|
|
297
|
+
batch: ImportBatch;
|
|
298
|
+
counts: ImportCounts;
|
|
299
|
+
}
|
|
300
|
+
interface TantivyCompileSummary {
|
|
301
|
+
indexedDocCount: number;
|
|
302
|
+
}
|
|
303
|
+
interface CompileImportSummary {
|
|
304
|
+
providers: ProviderCompileSummary[];
|
|
305
|
+
importedAny: boolean;
|
|
306
|
+
tantivy: TantivyCompileSummary | null;
|
|
307
|
+
tantivyError: string | null;
|
|
308
|
+
}
|
|
309
|
+
interface ParquetCompileSummary {
|
|
310
|
+
outDir: string;
|
|
311
|
+
manifestPath: string;
|
|
312
|
+
tableCount: number;
|
|
313
|
+
files: Record<string, string>;
|
|
314
|
+
counts: Record<string, number>;
|
|
315
|
+
}
|
|
316
|
+
declare const COMPILE_PROVIDERS: CompileProviderConfig[];
|
|
317
|
+
declare function getCompileProvider(source: SourceTool): CompileProviderConfig;
|
|
318
|
+
declare function resolveCompilePath(p: string): string;
|
|
319
|
+
declare function runCompileImports(options: {
|
|
320
|
+
bundle: Bundle;
|
|
321
|
+
providers: CompileProviderConfig[];
|
|
322
|
+
deferIndex: boolean;
|
|
323
|
+
sessionsPath?: string;
|
|
324
|
+
logger?: CompileLogger;
|
|
325
|
+
onProviderComplete?: (summary: ProviderCompileSummary) => void;
|
|
326
|
+
onTantivyComplete?: (summary: TantivyCompileSummary) => void;
|
|
327
|
+
}): Promise<CompileImportSummary>;
|
|
328
|
+
declare function exportCompileParquet(options: {
|
|
329
|
+
storePath: string;
|
|
330
|
+
logger?: CompileLogger;
|
|
331
|
+
}): Promise<ParquetCompileSummary>;
|
|
332
|
+
|
|
277
333
|
/**
|
|
278
334
|
* Render a session into Markdown. Big tool outputs aren't dumped inline:
|
|
279
335
|
* we show a preview line plus a `[object: blake3:…]` reference, leaving the
|
|
@@ -304,11 +360,6 @@ interface DuckDbQueryResult {
|
|
|
304
360
|
declare function exportBundleParquet(options: ParquetExportOptions): Promise<ParquetExportResult>;
|
|
305
361
|
declare function queryDuckDbParquet(options: DuckDbQueryOptions): Promise<DuckDbQueryResult>;
|
|
306
362
|
|
|
307
|
-
type CompileLogger = Pick<Logger, 'child' | 'debug' | 'error' | 'info' | 'warn'>;
|
|
308
|
-
interface CompileOptions {
|
|
309
|
-
logger?: CompileLogger;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
363
|
interface CompileResult$3 {
|
|
313
364
|
batch: ImportBatch;
|
|
314
365
|
counts: ImportCounts;
|
|
@@ -333,4 +384,4 @@ interface CompileResult {
|
|
|
333
384
|
}
|
|
334
385
|
declare function compileCursor(bundle: Bundle, root: string, options?: CompileOptions): Promise<CompileResult>;
|
|
335
386
|
|
|
336
|
-
export { type Bundle, type BundleManifest, type CanonicalToolType, type CompileResult$2 as ClaudeCompileResult, type CompileResult$3 as CodexCompileResult, type CompileLogger, type CompileOptions, type Confidence, type CompileResult as CursorCompileResult, type DuckDbQueryOptions, type DuckDbQueryResult, type EdgeType, type CompileResult$1 as GeminiCompileResult, type ImportBatch, type ImportCounts, type MessageRole, type ObjectId, type ObjectMeta, PARQUET_TABLES, PROSA_PARSER_VERSION, PROSA_SCHEMA_VERSION, type ParquetExportOptions, type ParquetExportResult, type ParquetTable, type RegisterResult, type SearchEngine, type SearchHit, type SearchIndexStatus, type SearchOptions, type SessionDetail, type SessionDetailEvent, type SessionListFilters, type SessionRow, type SessionRowFull, type SourceFileRow, type SourceTool, type ToolCallStatus, closeBundle, compileClaude, compileCodex, compileCursor, compileGemini, countSessions, currentSchemaVersion, defaultBundlePath, disableFts5Triggers, emptyCounts, enableFts5Triggers, exportBundleParquet, exportSessionMarkdown, finishBatch, getBytes, getJson, getObjectMeta, getSearchIndexStatus, getSearchIndexStatuses, getSession, getText, initBundle, listSessions, markIndexesAfterImport, openBundle, putBytes, putJson, putText, queryDuckDbParquet, rebuildFts5Index, rebuildTantivyIndex, recordError, registerSourceFile, runMigrations, searchFullText, startBatch };
|
|
387
|
+
export { type Bundle, type BundleManifest, COMPILE_PROVIDERS, type CanonicalToolType, type CompileResult$2 as ClaudeCompileResult, type CompileResult$3 as CodexCompileResult, type CompileImportSummary, type CompileLogger, type CompileOptions, type CompileProviderConfig, type Confidence, type CompileResult as CursorCompileResult, type DuckDbQueryOptions, type DuckDbQueryResult, type EdgeType, type CompileResult$1 as GeminiCompileResult, type ImportBatch, type ImportCounts, type MessageRole, type ObjectId, type ObjectMeta, PARQUET_TABLES, PROSA_PARSER_VERSION, PROSA_SCHEMA_VERSION, type ParquetCompileSummary, type ParquetExportOptions, type ParquetExportResult, type ParquetTable, type ProviderCompileSummary, type RegisterResult, type SearchEngine, type SearchHit, type SearchIndexStatus, type SearchOptions, type SessionDetail, type SessionDetailEvent, type SessionListFilters, type SessionRow, type SessionRowFull, type SourceFileRow, type SourceTool, type TantivyCompileSummary, type ToolCallStatus, closeBundle, compileClaude, compileCodex, compileCursor, compileGemini, countSessions, currentSchemaVersion, defaultBundlePath, disableFts5Triggers, emptyCounts, enableFts5Triggers, exportBundleParquet, exportCompileParquet, exportSessionMarkdown, finishBatch, getBytes, getCompileProvider, getJson, getObjectMeta, getSearchIndexStatus, getSearchIndexStatuses, getSession, getText, initBundle, listSessions, markIndexesAfterImport, openBundle, putBytes, putJson, putText, queryDuckDbParquet, rebuildFts5Index, rebuildTantivyIndex, recordError, registerSourceFile, resolveCompilePath, runCompileImports, runMigrations, searchFullText, startBatch };
|