@signetai/core 0.140.1
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/agents.d.ts +45 -0
- package/dist/agents.d.ts.map +1 -0
- package/dist/connector-types.d.ts +90 -0
- package/dist/connector-types.d.ts.map +1 -0
- package/dist/constants.d.ts +9 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/daemon-url.d.ts +7 -0
- package/dist/daemon-url.d.ts.map +1 -0
- package/dist/database.d.ts +41 -0
- package/dist/database.d.ts.map +1 -0
- package/dist/export.d.ts +84 -0
- package/dist/export.d.ts.map +1 -0
- package/dist/fts-schema.d.ts +13 -0
- package/dist/fts-schema.d.ts.map +1 -0
- package/dist/gitignore.d.ts +3 -0
- package/dist/gitignore.d.ts.map +1 -0
- package/dist/graphiq.d.ts +40 -0
- package/dist/graphiq.d.ts.map +1 -0
- package/dist/harness-config.d.ts +3 -0
- package/dist/harness-config.d.ts.map +1 -0
- package/dist/identity.d.ts +193 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/import.d.ts +86 -0
- package/dist/import.d.ts.map +1 -0
- package/dist/index.d.ts +67 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20057 -0
- package/dist/ingest/chat-extractor.d.ts +35 -0
- package/dist/ingest/chat-extractor.d.ts.map +1 -0
- package/dist/ingest/chat-utils.d.ts +18 -0
- package/dist/ingest/chat-utils.d.ts.map +1 -0
- package/dist/ingest/chunker.d.ts +27 -0
- package/dist/ingest/chunker.d.ts.map +1 -0
- package/dist/ingest/code-parser.d.ts +30 -0
- package/dist/ingest/code-parser.d.ts.map +1 -0
- package/dist/ingest/discord-parser.d.ts +30 -0
- package/dist/ingest/discord-parser.d.ts.map +1 -0
- package/dist/ingest/entire-extractor.d.ts +33 -0
- package/dist/ingest/entire-extractor.d.ts.map +1 -0
- package/dist/ingest/entire-parser.d.ts +51 -0
- package/dist/ingest/entire-parser.d.ts.map +1 -0
- package/dist/ingest/extractor.d.ts +27 -0
- package/dist/ingest/extractor.d.ts.map +1 -0
- package/dist/ingest/git-utils.d.ts +9 -0
- package/dist/ingest/git-utils.d.ts.map +1 -0
- package/dist/ingest/index.d.ts +52 -0
- package/dist/ingest/index.d.ts.map +1 -0
- package/dist/ingest/markdown-parser.d.ts +26 -0
- package/dist/ingest/markdown-parser.d.ts.map +1 -0
- package/dist/ingest/pdf-parser.d.ts +14 -0
- package/dist/ingest/pdf-parser.d.ts.map +1 -0
- package/dist/ingest/provenance.d.ts +55 -0
- package/dist/ingest/provenance.d.ts.map +1 -0
- package/dist/ingest/response-parser.d.ts +40 -0
- package/dist/ingest/response-parser.d.ts.map +1 -0
- package/dist/ingest/slack-parser.d.ts +34 -0
- package/dist/ingest/slack-parser.d.ts.map +1 -0
- package/dist/ingest/types.d.ts +163 -0
- package/dist/ingest/types.d.ts.map +1 -0
- package/dist/llm-model-catalog.d.ts +176 -0
- package/dist/llm-model-catalog.d.ts.map +1 -0
- package/dist/llm-model-catalog.js +110 -0
- package/dist/manifest.d.ts +4 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/markdown.d.ts +40 -0
- package/dist/markdown.d.ts.map +1 -0
- package/dist/memory.d.ts +23 -0
- package/dist/memory.d.ts.map +1 -0
- package/dist/migrate.d.ts +8 -0
- package/dist/migrate.d.ts.map +1 -0
- package/dist/migration.d.ts +58 -0
- package/dist/migration.d.ts.map +1 -0
- package/dist/migrations/001-baseline.d.ts +10 -0
- package/dist/migrations/001-baseline.d.ts.map +1 -0
- package/dist/migrations/002-pipeline-v2.d.ts +10 -0
- package/dist/migrations/002-pipeline-v2.d.ts.map +1 -0
- package/dist/migrations/003-unique-content-hash.d.ts +13 -0
- package/dist/migrations/003-unique-content-hash.d.ts.map +1 -0
- package/dist/migrations/004-history-actor-and-retention.d.ts +10 -0
- package/dist/migrations/004-history-actor-and-retention.d.ts.map +1 -0
- package/dist/migrations/005-graph-extended.d.ts +3 -0
- package/dist/migrations/005-graph-extended.d.ts.map +1 -0
- package/dist/migrations/006-idempotency-key.d.ts +3 -0
- package/dist/migrations/006-idempotency-key.d.ts.map +1 -0
- package/dist/migrations/007-documents-and-connectors.d.ts +3 -0
- package/dist/migrations/007-documents-and-connectors.d.ts.map +1 -0
- package/dist/migrations/008-embeddings-unique-hash.d.ts +11 -0
- package/dist/migrations/008-embeddings-unique-hash.d.ts.map +1 -0
- package/dist/migrations/009-summary-jobs.d.ts +3 -0
- package/dist/migrations/009-summary-jobs.d.ts.map +1 -0
- package/dist/migrations/010-umap-cache.d.ts +3 -0
- package/dist/migrations/010-umap-cache.d.ts.map +1 -0
- package/dist/migrations/011-session-scores.d.ts +3 -0
- package/dist/migrations/011-session-scores.d.ts.map +1 -0
- package/dist/migrations/012-scheduled-tasks.d.ts +3 -0
- package/dist/migrations/012-scheduled-tasks.d.ts.map +1 -0
- package/dist/migrations/013-ingestion-tracking.d.ts +11 -0
- package/dist/migrations/013-ingestion-tracking.d.ts.map +1 -0
- package/dist/migrations/014-telemetry.d.ts +11 -0
- package/dist/migrations/014-telemetry.d.ts.map +1 -0
- package/dist/migrations/015-session-memories.d.ts +11 -0
- package/dist/migrations/015-session-memories.d.ts.map +1 -0
- package/dist/migrations/016-session-checkpoints.d.ts +10 -0
- package/dist/migrations/016-session-checkpoints.d.ts.map +1 -0
- package/dist/migrations/017-task-skills.d.ts +10 -0
- package/dist/migrations/017-task-skills.d.ts.map +1 -0
- package/dist/migrations/018-skill-meta.d.ts +10 -0
- package/dist/migrations/018-skill-meta.d.ts.map +1 -0
- package/dist/migrations/019-knowledge-structure.d.ts +12 -0
- package/dist/migrations/019-knowledge-structure.d.ts.map +1 -0
- package/dist/migrations/020-predictor-comparisons.d.ts +3 -0
- package/dist/migrations/020-predictor-comparisons.d.ts.map +1 -0
- package/dist/migrations/021-checkpoint-structural.d.ts +10 -0
- package/dist/migrations/021-checkpoint-structural.d.ts.map +1 -0
- package/dist/migrations/022-entity-pinning.d.ts +3 -0
- package/dist/migrations/022-entity-pinning.d.ts.map +1 -0
- package/dist/migrations/023-predictor-columns.d.ts +3 -0
- package/dist/migrations/023-predictor-columns.d.ts.map +1 -0
- package/dist/migrations/024-predictor-comparison-columns.d.ts +3 -0
- package/dist/migrations/024-predictor-comparison-columns.d.ts.map +1 -0
- package/dist/migrations/025-agent-feedback.d.ts +10 -0
- package/dist/migrations/025-agent-feedback.d.ts.map +1 -0
- package/dist/migrations/026-predictor-training-pairs.d.ts +3 -0
- package/dist/migrations/026-predictor-training-pairs.d.ts.map +1 -0
- package/dist/migrations/027-backfill-canonical-names.d.ts +12 -0
- package/dist/migrations/027-backfill-canonical-names.d.ts.map +1 -0
- package/dist/migrations/028-lossless-retention.d.ts +10 -0
- package/dist/migrations/028-lossless-retention.d.ts.map +1 -0
- package/dist/migrations/029-session-summary-dag.d.ts +3 -0
- package/dist/migrations/029-session-summary-dag.d.ts.map +1 -0
- package/dist/migrations/030-nullable-memory-job-memory-id.d.ts +18 -0
- package/dist/migrations/030-nullable-memory-job-memory-id.d.ts.map +1 -0
- package/dist/migrations/031-dependency-reason.d.ts +11 -0
- package/dist/migrations/031-dependency-reason.d.ts.map +1 -0
- package/dist/migrations/032-embeddings-vector-column.d.ts +11 -0
- package/dist/migrations/032-embeddings-vector-column.d.ts.map +1 -0
- package/dist/migrations/033-scope.d.ts +10 -0
- package/dist/migrations/033-scope.d.ts.map +1 -0
- package/dist/migrations/034-scope-aware-dedup.d.ts +12 -0
- package/dist/migrations/034-scope-aware-dedup.d.ts.map +1 -0
- package/dist/migrations/035-entity-fts.d.ts +10 -0
- package/dist/migrations/035-entity-fts.d.ts.map +1 -0
- package/dist/migrations/036-dependency-confidence.d.ts +15 -0
- package/dist/migrations/036-dependency-confidence.d.ts.map +1 -0
- package/dist/migrations/037-entity-communities.d.ts +10 -0
- package/dist/migrations/037-entity-communities.d.ts.map +1 -0
- package/dist/migrations/038-memory-hints.d.ts +11 -0
- package/dist/migrations/038-memory-hints.d.ts.map +1 -0
- package/dist/migrations/039-dedup-entity-dependencies.d.ts +11 -0
- package/dist/migrations/039-dedup-entity-dependencies.d.ts.map +1 -0
- package/dist/migrations/040-session-transcripts.d.ts +10 -0
- package/dist/migrations/040-session-transcripts.d.ts.map +1 -0
- package/dist/migrations/041-path-feedback.d.ts +3 -0
- package/dist/migrations/041-path-feedback.d.ts.map +1 -0
- package/dist/migrations/042-session-memories-agent-id.d.ts +10 -0
- package/dist/migrations/042-session-memories-agent-id.d.ts.map +1 -0
- package/dist/migrations/043-agents-table.d.ts +15 -0
- package/dist/migrations/043-agents-table.d.ts.map +1 -0
- package/dist/migrations/044-memory-md-temporal-head.d.ts +10 -0
- package/dist/migrations/044-memory-md-temporal-head.d.ts.map +1 -0
- package/dist/migrations/045-lossless-working-memory-hardening.d.ts +11 -0
- package/dist/migrations/045-lossless-working-memory-hardening.d.ts.map +1 -0
- package/dist/migrations/046-session-summary-uniqueness.d.ts +3 -0
- package/dist/migrations/046-session-summary-uniqueness.d.ts.map +1 -0
- package/dist/migrations/047-agent-scoped-temporal-uniqueness.d.ts +9 -0
- package/dist/migrations/047-agent-scoped-temporal-uniqueness.d.ts.map +1 -0
- package/dist/migrations/048-thread-heads.d.ts +9 -0
- package/dist/migrations/048-thread-heads.d.ts.map +1 -0
- package/dist/migrations/049-session-extract-cursors.d.ts +11 -0
- package/dist/migrations/049-session-extract-cursors.d.ts.map +1 -0
- package/dist/migrations/050-related-to-audit.d.ts +3 -0
- package/dist/migrations/050-related-to-audit.d.ts.map +1 -0
- package/dist/migrations/051-memory-md-rolling-window-lineage.d.ts +12 -0
- package/dist/migrations/051-memory-md-rolling-window-lineage.d.ts.map +1 -0
- package/dist/migrations/052-mcp-invocations.d.ts +10 -0
- package/dist/migrations/052-mcp-invocations.d.ts.map +1 -0
- package/dist/migrations/053-skill-invocations.d.ts +10 -0
- package/dist/migrations/053-skill-invocations.d.ts.map +1 -0
- package/dist/migrations/054-task-agent-scope.d.ts +3 -0
- package/dist/migrations/054-task-agent-scope.d.ts.map +1 -0
- package/dist/migrations/055-dreaming-state.d.ts +9 -0
- package/dist/migrations/055-dreaming-state.d.ts.map +1 -0
- package/dist/migrations/056-agent-scoped-content-hash.d.ts +11 -0
- package/dist/migrations/056-agent-scoped-content-hash.d.ts.map +1 -0
- package/dist/migrations/057-memories-fts-tokenizer-repair.d.ts +12 -0
- package/dist/migrations/057-memories-fts-tokenizer-repair.d.ts.map +1 -0
- package/dist/migrations/058-knowledge-graph-indices.d.ts +16 -0
- package/dist/migrations/058-knowledge-graph-indices.d.ts.map +1 -0
- package/dist/migrations/059-entity-attribute-claim-key.d.ts +11 -0
- package/dist/migrations/059-entity-attribute-claim-key.d.ts.map +1 -0
- package/dist/migrations/060-entity-attribute-group-key.d.ts +10 -0
- package/dist/migrations/060-entity-attribute-group-key.d.ts.map +1 -0
- package/dist/migrations/061-memory-artifact-source-mtime.d.ts +12 -0
- package/dist/migrations/061-memory-artifact-source-mtime.d.ts.map +1 -0
- package/dist/migrations/062-memory-artifact-soft-delete.d.ts +10 -0
- package/dist/migrations/062-memory-artifact-soft-delete.d.ts.map +1 -0
- package/dist/migrations/063-content-only-memories-fts-update.d.ts +13 -0
- package/dist/migrations/063-content-only-memories-fts-update.d.ts.map +1 -0
- package/dist/migrations/064-source-graph-provenance.d.ts +11 -0
- package/dist/migrations/064-source-graph-provenance.d.ts.map +1 -0
- package/dist/migrations/065-source-embedding-agent-scope.d.ts +10 -0
- package/dist/migrations/065-source-embedding-agent-scope.d.ts.map +1 -0
- package/dist/migrations/066-memory-search-telemetry.d.ts +10 -0
- package/dist/migrations/066-memory-search-telemetry.d.ts.map +1 -0
- package/dist/migrations/067-ontology-proposals.d.ts +10 -0
- package/dist/migrations/067-ontology-proposals.d.ts.map +1 -0
- package/dist/migrations/068-daily-reflections.d.ts +9 -0
- package/dist/migrations/068-daily-reflections.d.ts.map +1 -0
- package/dist/migrations/069-daily-reflections-multiple-insights.d.ts +11 -0
- package/dist/migrations/069-daily-reflections-multiple-insights.d.ts.map +1 -0
- package/dist/migrations/070-ontology-control-plane-state.d.ts +9 -0
- package/dist/migrations/070-ontology-control-plane-state.d.ts.map +1 -0
- package/dist/migrations/071-epistemic-assertions.d.ts +10 -0
- package/dist/migrations/071-epistemic-assertions.d.ts.map +1 -0
- package/dist/migrations/072-agent-scoped-idempotency-key.d.ts +9 -0
- package/dist/migrations/072-agent-scoped-idempotency-key.d.ts.map +1 -0
- package/dist/migrations/073-recall-context-dedupe.d.ts +10 -0
- package/dist/migrations/073-recall-context-dedupe.d.ts.map +1 -0
- package/dist/migrations/074-aggregate-memory-links.d.ts +7 -0
- package/dist/migrations/074-aggregate-memory-links.d.ts.map +1 -0
- package/dist/migrations/075-memory-artifact-source-provenance.d.ts +3 -0
- package/dist/migrations/075-memory-artifact-source-provenance.d.ts.map +1 -0
- package/dist/migrations/076-temporal-edges.d.ts +3 -0
- package/dist/migrations/076-temporal-edges.d.ts.map +1 -0
- package/dist/migrations/077-entity-aliases.d.ts +3 -0
- package/dist/migrations/077-entity-aliases.d.ts.map +1 -0
- package/dist/migrations/078-api-keys.d.ts +3 -0
- package/dist/migrations/078-api-keys.d.ts.map +1 -0
- package/dist/migrations/index.d.ts +54 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/network.d.ts +10 -0
- package/dist/network.d.ts.map +1 -0
- package/dist/oh-my-pi.d.ts +15 -0
- package/dist/oh-my-pi.d.ts.map +1 -0
- package/dist/package-manager.d.ts +33 -0
- package/dist/package-manager.d.ts.map +1 -0
- package/dist/pi.d.ts +15 -0
- package/dist/pi.d.ts.map +1 -0
- package/dist/pipeline-pause.d.ts +18 -0
- package/dist/pipeline-pause.d.ts.map +1 -0
- package/dist/pipeline-providers.d.ts +11 -0
- package/dist/pipeline-providers.d.ts.map +1 -0
- package/dist/pipeline-providers.js +144 -0
- package/dist/plugins.d.ts +6 -0
- package/dist/plugins.d.ts.map +1 -0
- package/dist/recall.d.ts +188 -0
- package/dist/recall.d.ts.map +1 -0
- package/dist/routing.d.ts +221 -0
- package/dist/routing.d.ts.map +1 -0
- package/dist/search.d.ts +75 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/signet-os-types.d.ts +116 -0
- package/dist/signet-os-types.d.ts.map +1 -0
- package/dist/signet.d.ts +36 -0
- package/dist/signet.d.ts.map +1 -0
- package/dist/skills.d.ts +111 -0
- package/dist/skills.d.ts.map +1 -0
- package/dist/soul.d.ts +3 -0
- package/dist/soul.d.ts.map +1 -0
- package/dist/source-substrate.d.ts +63 -0
- package/dist/source-substrate.d.ts.map +1 -0
- package/dist/sources-config.d.ts +131 -0
- package/dist/sources-config.d.ts.map +1 -0
- package/dist/symlinks.d.ts +45 -0
- package/dist/symlinks.d.ts.map +1 -0
- package/dist/types.d.ts +731 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/workspace-source-repo.d.ts +19 -0
- package/dist/workspace-source-repo.d.ts.map +1 -0
- package/dist/yaml.d.ts +29 -0
- package/dist/yaml.d.ts.map +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types for the document ingestion engine.
|
|
3
|
+
*
|
|
4
|
+
* The ingestion pipeline: detect → parse → chunk → extract → store
|
|
5
|
+
*/
|
|
6
|
+
export interface DatabaseLike {
|
|
7
|
+
prepare(sql: string): {
|
|
8
|
+
run(...args: unknown[]): void;
|
|
9
|
+
get(...args: unknown[]): Record<string, unknown> | undefined;
|
|
10
|
+
all(...args: unknown[]): Record<string, unknown>[];
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface IngestOptions {
|
|
14
|
+
/** Force file type detection */
|
|
15
|
+
readonly type?: "markdown" | "pdf" | "txt" | "code" | "slack" | "discord" | "repo" | "entire";
|
|
16
|
+
/** Show what would be extracted without saving */
|
|
17
|
+
readonly dryRun?: boolean;
|
|
18
|
+
/** Show each extracted fact */
|
|
19
|
+
readonly verbose?: boolean;
|
|
20
|
+
/** Skip LLM extraction (store raw chunks only) */
|
|
21
|
+
readonly skipExtraction?: boolean;
|
|
22
|
+
/** Maximum chunks to process (for testing) */
|
|
23
|
+
readonly maxChunks?: number;
|
|
24
|
+
/** Database instance (required unless dryRun) */
|
|
25
|
+
readonly db?: DatabaseLike | undefined;
|
|
26
|
+
/** Agent DID for signing */
|
|
27
|
+
readonly signerDid?: string;
|
|
28
|
+
/** Workspace name for memory attribution */
|
|
29
|
+
readonly workspace?: string;
|
|
30
|
+
/** Force re-ingestion even if file was already ingested */
|
|
31
|
+
readonly force?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface IngestResult {
|
|
34
|
+
/** Total files processed */
|
|
35
|
+
readonly filesProcessed: number;
|
|
36
|
+
/** Total files that errored */
|
|
37
|
+
readonly filesErrored: number;
|
|
38
|
+
/** Total chunks generated */
|
|
39
|
+
readonly totalChunks: number;
|
|
40
|
+
/** Total memories created */
|
|
41
|
+
readonly memoriesCreated: number;
|
|
42
|
+
/** Breakdown by memory type */
|
|
43
|
+
readonly byType: Record<string, number>;
|
|
44
|
+
/** Per-file results */
|
|
45
|
+
readonly files: readonly FileIngestResult[];
|
|
46
|
+
/** Ingestion job ID (if tracking enabled) */
|
|
47
|
+
readonly jobId?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface FileIngestResult {
|
|
50
|
+
readonly filePath: string;
|
|
51
|
+
readonly status: "success" | "error" | "skipped";
|
|
52
|
+
readonly error?: string;
|
|
53
|
+
readonly chunks: number;
|
|
54
|
+
readonly memoriesCreated: number;
|
|
55
|
+
readonly byType: Record<string, number>;
|
|
56
|
+
}
|
|
57
|
+
export interface ParsedSection {
|
|
58
|
+
/** Heading text, or null for top-level content */
|
|
59
|
+
readonly heading: string | null;
|
|
60
|
+
/** Nesting depth (1 = H1, 2 = H2, etc.) */
|
|
61
|
+
readonly depth: number;
|
|
62
|
+
/** Raw text content of this section */
|
|
63
|
+
readonly content: string;
|
|
64
|
+
/** Content type hint */
|
|
65
|
+
readonly contentType: "text" | "code" | "table" | "list" | "blockquote";
|
|
66
|
+
/** Language hint for code blocks */
|
|
67
|
+
readonly language?: string;
|
|
68
|
+
/** Page number (for PDFs) */
|
|
69
|
+
readonly page?: number;
|
|
70
|
+
/** Line range in original file */
|
|
71
|
+
readonly lineStart?: number;
|
|
72
|
+
readonly lineEnd?: number;
|
|
73
|
+
}
|
|
74
|
+
export interface ParsedDocument {
|
|
75
|
+
/** Source format */
|
|
76
|
+
readonly format: string;
|
|
77
|
+
/** Document title (if available) */
|
|
78
|
+
readonly title: string | null;
|
|
79
|
+
/** Sections */
|
|
80
|
+
readonly sections: readonly ParsedSection[];
|
|
81
|
+
/** Raw metadata from the original file */
|
|
82
|
+
readonly metadata: Record<string, unknown>;
|
|
83
|
+
/** Total character count of extracted text */
|
|
84
|
+
readonly totalChars: number;
|
|
85
|
+
}
|
|
86
|
+
export interface ChunkResult {
|
|
87
|
+
/** Unique chunk index within the source */
|
|
88
|
+
readonly index: number;
|
|
89
|
+
/** The text content of this chunk */
|
|
90
|
+
readonly text: string;
|
|
91
|
+
/** Content type */
|
|
92
|
+
readonly chunkType: "text" | "code" | "table" | "heading" | "conversation";
|
|
93
|
+
/** Estimated token count (chars / 4 rough estimate) */
|
|
94
|
+
readonly tokenCount: number;
|
|
95
|
+
/** Provenance: which section heading this came from */
|
|
96
|
+
readonly sourceSection: string | null;
|
|
97
|
+
/** Provenance: page number (PDF) */
|
|
98
|
+
readonly sourcePage: number | null;
|
|
99
|
+
/** Provenance: line range */
|
|
100
|
+
readonly sourceLineStart: number | null;
|
|
101
|
+
readonly sourceLineEnd: number | null;
|
|
102
|
+
/** Provenance: speaker (chat/email) */
|
|
103
|
+
readonly speaker?: string | null;
|
|
104
|
+
/** Provenance: thread ID (chat/email) */
|
|
105
|
+
readonly threadId?: string | null;
|
|
106
|
+
}
|
|
107
|
+
export interface ExtractedItem {
|
|
108
|
+
readonly content: string;
|
|
109
|
+
readonly type: string;
|
|
110
|
+
readonly confidence: number;
|
|
111
|
+
readonly metadata?: Record<string, unknown>;
|
|
112
|
+
}
|
|
113
|
+
export interface ExtractedRelation {
|
|
114
|
+
readonly source: string;
|
|
115
|
+
readonly relationship: string;
|
|
116
|
+
readonly target: string;
|
|
117
|
+
readonly confidence: number;
|
|
118
|
+
}
|
|
119
|
+
export interface ExtractionResult {
|
|
120
|
+
readonly chunkIndex: number;
|
|
121
|
+
readonly items: readonly ExtractedItem[];
|
|
122
|
+
readonly relations: readonly ExtractedRelation[];
|
|
123
|
+
readonly warnings: readonly string[];
|
|
124
|
+
}
|
|
125
|
+
export interface ProvenanceRecord {
|
|
126
|
+
readonly sourcePath: string;
|
|
127
|
+
readonly sourceType: string;
|
|
128
|
+
readonly sourceSection: string | null;
|
|
129
|
+
readonly sourcePage: number | null;
|
|
130
|
+
readonly sourceLineStart: number | null;
|
|
131
|
+
readonly sourceLineEnd: number | null;
|
|
132
|
+
readonly fileHash: string;
|
|
133
|
+
readonly ingestedAt: string;
|
|
134
|
+
readonly chunkIndex: number;
|
|
135
|
+
}
|
|
136
|
+
export type ProgressCallback = (event: ProgressEvent) => void;
|
|
137
|
+
export type ProgressEvent = {
|
|
138
|
+
type: "file-start";
|
|
139
|
+
filePath: string;
|
|
140
|
+
fileIndex: number;
|
|
141
|
+
totalFiles: number;
|
|
142
|
+
} | {
|
|
143
|
+
type: "file-done";
|
|
144
|
+
filePath: string;
|
|
145
|
+
chunks: number;
|
|
146
|
+
memories: number;
|
|
147
|
+
} | {
|
|
148
|
+
type: "file-error";
|
|
149
|
+
filePath: string;
|
|
150
|
+
error: string;
|
|
151
|
+
} | {
|
|
152
|
+
type: "chunk-start";
|
|
153
|
+
chunkIndex: number;
|
|
154
|
+
totalChunks: number;
|
|
155
|
+
} | {
|
|
156
|
+
type: "chunk-done";
|
|
157
|
+
chunkIndex: number;
|
|
158
|
+
items: number;
|
|
159
|
+
} | {
|
|
160
|
+
type: "complete";
|
|
161
|
+
result: IngestResult;
|
|
162
|
+
};
|
|
163
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0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C,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;AAE9D,MAAM,MAAM,aAAa,GACtB;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAC/E;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACzE;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACvD;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GAChE;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACzD;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,YAAY,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
export interface PipelineModelPreset {
|
|
2
|
+
readonly value: string;
|
|
3
|
+
readonly label: string;
|
|
4
|
+
readonly tier: "low" | "mid" | "high";
|
|
5
|
+
readonly source: "provider" | "harness" | "local";
|
|
6
|
+
}
|
|
7
|
+
export type ModelCatalogProvider = "none" | "acpx" | "llama-cpp" | "ollama" | "claude-code" | "codex" | "opencode" | "anthropic" | "openrouter" | "openai-compatible" | "command";
|
|
8
|
+
export declare const PIPELINE_MODEL_CATALOG: {
|
|
9
|
+
readonly none: readonly [];
|
|
10
|
+
readonly command: readonly [];
|
|
11
|
+
readonly acpx: readonly [{
|
|
12
|
+
readonly value: "haiku";
|
|
13
|
+
readonly label: "Claude Code · haiku";
|
|
14
|
+
readonly tier: "low";
|
|
15
|
+
readonly source: "harness";
|
|
16
|
+
}, {
|
|
17
|
+
readonly value: "gpt-5.4-mini";
|
|
18
|
+
readonly label: "Codex CLI · gpt-5.4-mini";
|
|
19
|
+
readonly tier: "low";
|
|
20
|
+
readonly source: "harness";
|
|
21
|
+
}, {
|
|
22
|
+
readonly value: "google/gemini-2.5-flash";
|
|
23
|
+
readonly label: "OpenCode · google/gemini-2.5-flash";
|
|
24
|
+
readonly tier: "low";
|
|
25
|
+
readonly source: "harness";
|
|
26
|
+
}];
|
|
27
|
+
readonly "llama-cpp": readonly [{
|
|
28
|
+
readonly value: "qwen3:4b";
|
|
29
|
+
readonly label: "qwen3:4b";
|
|
30
|
+
readonly tier: "low";
|
|
31
|
+
readonly source: "local";
|
|
32
|
+
}, {
|
|
33
|
+
readonly value: "qwen3:8b";
|
|
34
|
+
readonly label: "qwen3:8b";
|
|
35
|
+
readonly tier: "low";
|
|
36
|
+
readonly source: "local";
|
|
37
|
+
}];
|
|
38
|
+
readonly ollama: readonly [{
|
|
39
|
+
readonly value: "qwen3:4b";
|
|
40
|
+
readonly label: "qwen3:4b";
|
|
41
|
+
readonly tier: "low";
|
|
42
|
+
readonly source: "local";
|
|
43
|
+
}, {
|
|
44
|
+
readonly value: "llama3";
|
|
45
|
+
readonly label: "llama3";
|
|
46
|
+
readonly tier: "low";
|
|
47
|
+
readonly source: "local";
|
|
48
|
+
}];
|
|
49
|
+
readonly "claude-code": readonly [{
|
|
50
|
+
readonly value: "haiku";
|
|
51
|
+
readonly label: "Haiku";
|
|
52
|
+
readonly tier: "low";
|
|
53
|
+
readonly source: "harness";
|
|
54
|
+
}, {
|
|
55
|
+
readonly value: "sonnet";
|
|
56
|
+
readonly label: "Sonnet";
|
|
57
|
+
readonly tier: "mid";
|
|
58
|
+
readonly source: "harness";
|
|
59
|
+
}, {
|
|
60
|
+
readonly value: "opus";
|
|
61
|
+
readonly label: "Opus";
|
|
62
|
+
readonly tier: "high";
|
|
63
|
+
readonly source: "harness";
|
|
64
|
+
}];
|
|
65
|
+
readonly codex: readonly [{
|
|
66
|
+
readonly value: "gpt-5.4-mini";
|
|
67
|
+
readonly label: "gpt-5.4-mini";
|
|
68
|
+
readonly tier: "low";
|
|
69
|
+
readonly source: "harness";
|
|
70
|
+
}, {
|
|
71
|
+
readonly value: "gpt-5.4";
|
|
72
|
+
readonly label: "gpt-5.4";
|
|
73
|
+
readonly tier: "mid";
|
|
74
|
+
readonly source: "harness";
|
|
75
|
+
}, {
|
|
76
|
+
readonly value: "gpt-5.5";
|
|
77
|
+
readonly label: "gpt-5.5";
|
|
78
|
+
readonly tier: "high";
|
|
79
|
+
readonly source: "harness";
|
|
80
|
+
}, {
|
|
81
|
+
readonly value: "gpt-5.3-codex";
|
|
82
|
+
readonly label: "gpt-5.3-codex";
|
|
83
|
+
readonly tier: "mid";
|
|
84
|
+
readonly source: "harness";
|
|
85
|
+
}, {
|
|
86
|
+
readonly value: "gpt-5.3-codex-spark";
|
|
87
|
+
readonly label: "gpt-5.3-codex-spark";
|
|
88
|
+
readonly tier: "low";
|
|
89
|
+
readonly source: "harness";
|
|
90
|
+
}, {
|
|
91
|
+
readonly value: "gpt-5.2";
|
|
92
|
+
readonly label: "gpt-5.2";
|
|
93
|
+
readonly tier: "mid";
|
|
94
|
+
readonly source: "harness";
|
|
95
|
+
}];
|
|
96
|
+
readonly opencode: readonly [{
|
|
97
|
+
readonly value: "google/gemini-2.5-flash";
|
|
98
|
+
readonly label: "google/gemini-2.5-flash";
|
|
99
|
+
readonly tier: "low";
|
|
100
|
+
readonly source: "harness";
|
|
101
|
+
}, {
|
|
102
|
+
readonly value: "openai/gpt-5.4-mini";
|
|
103
|
+
readonly label: "openai/gpt-5.4-mini";
|
|
104
|
+
readonly tier: "low";
|
|
105
|
+
readonly source: "harness";
|
|
106
|
+
}, {
|
|
107
|
+
readonly value: "openai/gpt-5.4";
|
|
108
|
+
readonly label: "openai/gpt-5.4";
|
|
109
|
+
readonly tier: "mid";
|
|
110
|
+
readonly source: "harness";
|
|
111
|
+
}];
|
|
112
|
+
readonly anthropic: readonly [{
|
|
113
|
+
readonly value: "claude-3-5-haiku-20241022";
|
|
114
|
+
readonly label: "Claude 3.5 Haiku";
|
|
115
|
+
readonly tier: "low";
|
|
116
|
+
readonly source: "provider";
|
|
117
|
+
}, {
|
|
118
|
+
readonly value: "claude-sonnet-4-20250514";
|
|
119
|
+
readonly label: "Claude Sonnet 4";
|
|
120
|
+
readonly tier: "mid";
|
|
121
|
+
readonly source: "provider";
|
|
122
|
+
}];
|
|
123
|
+
readonly openrouter: readonly [{
|
|
124
|
+
readonly value: "openai/gpt-4o-mini";
|
|
125
|
+
readonly label: "openai/gpt-4o-mini";
|
|
126
|
+
readonly tier: "low";
|
|
127
|
+
readonly source: "provider";
|
|
128
|
+
}, {
|
|
129
|
+
readonly value: "openai/gpt-5.4-mini";
|
|
130
|
+
readonly label: "openai/gpt-5.4-mini";
|
|
131
|
+
readonly tier: "low";
|
|
132
|
+
readonly source: "provider";
|
|
133
|
+
}, {
|
|
134
|
+
readonly value: "anthropic/claude-3.5-haiku";
|
|
135
|
+
readonly label: "anthropic/claude-3.5-haiku";
|
|
136
|
+
readonly tier: "low";
|
|
137
|
+
readonly source: "provider";
|
|
138
|
+
}, {
|
|
139
|
+
readonly value: "google/gemini-2.5-flash";
|
|
140
|
+
readonly label: "google/gemini-2.5-flash";
|
|
141
|
+
readonly tier: "low";
|
|
142
|
+
readonly source: "provider";
|
|
143
|
+
}];
|
|
144
|
+
readonly "openai-compatible": readonly [{
|
|
145
|
+
readonly value: "gpt-4o-mini";
|
|
146
|
+
readonly label: "gpt-4o-mini";
|
|
147
|
+
readonly tier: "low";
|
|
148
|
+
readonly source: "provider";
|
|
149
|
+
}, {
|
|
150
|
+
readonly value: "gpt-4.1-mini";
|
|
151
|
+
readonly label: "gpt-4.1-mini";
|
|
152
|
+
readonly tier: "low";
|
|
153
|
+
readonly source: "provider";
|
|
154
|
+
}, {
|
|
155
|
+
readonly value: "local-model";
|
|
156
|
+
readonly label: "local-model";
|
|
157
|
+
readonly tier: "low";
|
|
158
|
+
readonly source: "provider";
|
|
159
|
+
}];
|
|
160
|
+
};
|
|
161
|
+
export declare const MODEL_DEFAULTS: {
|
|
162
|
+
readonly none: "";
|
|
163
|
+
readonly acpx: "haiku";
|
|
164
|
+
readonly "llama-cpp": "qwen3:4b";
|
|
165
|
+
readonly ollama: "qwen3:4b";
|
|
166
|
+
readonly "claude-code": "haiku";
|
|
167
|
+
readonly codex: "gpt-5.4-mini";
|
|
168
|
+
readonly opencode: "google/gemini-2.5-flash";
|
|
169
|
+
readonly anthropic: "claude-3-5-haiku-20241022";
|
|
170
|
+
readonly openrouter: "openai/gpt-4o-mini";
|
|
171
|
+
readonly "openai-compatible": "gpt-4o-mini";
|
|
172
|
+
readonly command: "";
|
|
173
|
+
};
|
|
174
|
+
export declare function modelPresetsForProvider(provider: string): readonly PipelineModelPreset[];
|
|
175
|
+
export declare function modelDefaultForProvider(provider: ModelCatalogProvider): string;
|
|
176
|
+
//# sourceMappingURL=llm-model-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-model-catalog.d.ts","sourceRoot":"","sources":["../src/llm-model-catalog.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;CAClD;AAED,MAAM,MAAM,oBAAoB,GAC7B,MAAM,GACN,MAAM,GACN,WAAW,GACX,QAAQ,GACR,aAAa,GACb,OAAO,GACP,UAAU,GACV,WAAW,GACX,YAAY,GACZ,mBAAmB,GACnB,SAAS,CAAC;AAEb,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiD8C,CAAC;AAElF,eAAO,MAAM,cAAc;;;;;;;;;;;;CAY8B,CAAC;AAE1D,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,mBAAmB,EAAE,CAIxF;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,oBAAoB,GAAG,MAAM,CAE9E"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
function __accessProp(key) {
|
|
8
|
+
return this[key];
|
|
9
|
+
}
|
|
10
|
+
var __toESMCache_node;
|
|
11
|
+
var __toESMCache_esm;
|
|
12
|
+
var __toESM = (mod, isNodeMode, target) => {
|
|
13
|
+
var canCache = mod != null && typeof mod === "object";
|
|
14
|
+
if (canCache) {
|
|
15
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
16
|
+
var cached = cache.get(mod);
|
|
17
|
+
if (cached)
|
|
18
|
+
return cached;
|
|
19
|
+
}
|
|
20
|
+
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
21
|
+
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
22
|
+
for (let key of __getOwnPropNames(mod))
|
|
23
|
+
if (!__hasOwnProp.call(to, key))
|
|
24
|
+
__defProp(to, key, {
|
|
25
|
+
get: __accessProp.bind(mod, key),
|
|
26
|
+
enumerable: true
|
|
27
|
+
});
|
|
28
|
+
if (canCache)
|
|
29
|
+
cache.set(mod, to);
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
32
|
+
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
33
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
34
|
+
|
|
35
|
+
// src/llm-model-catalog.ts
|
|
36
|
+
var PIPELINE_MODEL_CATALOG = {
|
|
37
|
+
none: [],
|
|
38
|
+
command: [],
|
|
39
|
+
acpx: [
|
|
40
|
+
{ value: "haiku", label: "Claude Code · haiku", tier: "low", source: "harness" },
|
|
41
|
+
{ value: "gpt-5.4-mini", label: "Codex CLI · gpt-5.4-mini", tier: "low", source: "harness" },
|
|
42
|
+
{ value: "google/gemini-2.5-flash", label: "OpenCode · google/gemini-2.5-flash", tier: "low", source: "harness" }
|
|
43
|
+
],
|
|
44
|
+
"llama-cpp": [
|
|
45
|
+
{ value: "qwen3:4b", label: "qwen3:4b", tier: "low", source: "local" },
|
|
46
|
+
{ value: "qwen3:8b", label: "qwen3:8b", tier: "low", source: "local" }
|
|
47
|
+
],
|
|
48
|
+
ollama: [
|
|
49
|
+
{ value: "qwen3:4b", label: "qwen3:4b", tier: "low", source: "local" },
|
|
50
|
+
{ value: "llama3", label: "llama3", tier: "low", source: "local" }
|
|
51
|
+
],
|
|
52
|
+
"claude-code": [
|
|
53
|
+
{ value: "haiku", label: "Haiku", tier: "low", source: "harness" },
|
|
54
|
+
{ value: "sonnet", label: "Sonnet", tier: "mid", source: "harness" },
|
|
55
|
+
{ value: "opus", label: "Opus", tier: "high", source: "harness" }
|
|
56
|
+
],
|
|
57
|
+
codex: [
|
|
58
|
+
{ value: "gpt-5.4-mini", label: "gpt-5.4-mini", tier: "low", source: "harness" },
|
|
59
|
+
{ value: "gpt-5.4", label: "gpt-5.4", tier: "mid", source: "harness" },
|
|
60
|
+
{ value: "gpt-5.5", label: "gpt-5.5", tier: "high", source: "harness" },
|
|
61
|
+
{ value: "gpt-5.3-codex", label: "gpt-5.3-codex", tier: "mid", source: "harness" },
|
|
62
|
+
{ value: "gpt-5.3-codex-spark", label: "gpt-5.3-codex-spark", tier: "low", source: "harness" },
|
|
63
|
+
{ value: "gpt-5.2", label: "gpt-5.2", tier: "mid", source: "harness" }
|
|
64
|
+
],
|
|
65
|
+
opencode: [
|
|
66
|
+
{ value: "google/gemini-2.5-flash", label: "google/gemini-2.5-flash", tier: "low", source: "harness" },
|
|
67
|
+
{ value: "openai/gpt-5.4-mini", label: "openai/gpt-5.4-mini", tier: "low", source: "harness" },
|
|
68
|
+
{ value: "openai/gpt-5.4", label: "openai/gpt-5.4", tier: "mid", source: "harness" }
|
|
69
|
+
],
|
|
70
|
+
anthropic: [
|
|
71
|
+
{ value: "claude-3-5-haiku-20241022", label: "Claude 3.5 Haiku", tier: "low", source: "provider" },
|
|
72
|
+
{ value: "claude-sonnet-4-20250514", label: "Claude Sonnet 4", tier: "mid", source: "provider" }
|
|
73
|
+
],
|
|
74
|
+
openrouter: [
|
|
75
|
+
{ value: "openai/gpt-4o-mini", label: "openai/gpt-4o-mini", tier: "low", source: "provider" },
|
|
76
|
+
{ value: "openai/gpt-5.4-mini", label: "openai/gpt-5.4-mini", tier: "low", source: "provider" },
|
|
77
|
+
{ value: "anthropic/claude-3.5-haiku", label: "anthropic/claude-3.5-haiku", tier: "low", source: "provider" },
|
|
78
|
+
{ value: "google/gemini-2.5-flash", label: "google/gemini-2.5-flash", tier: "low", source: "provider" }
|
|
79
|
+
],
|
|
80
|
+
"openai-compatible": [
|
|
81
|
+
{ value: "gpt-4o-mini", label: "gpt-4o-mini", tier: "low", source: "provider" },
|
|
82
|
+
{ value: "gpt-4.1-mini", label: "gpt-4.1-mini", tier: "low", source: "provider" },
|
|
83
|
+
{ value: "local-model", label: "local-model", tier: "low", source: "provider" }
|
|
84
|
+
]
|
|
85
|
+
};
|
|
86
|
+
var MODEL_DEFAULTS = {
|
|
87
|
+
none: "",
|
|
88
|
+
acpx: "haiku",
|
|
89
|
+
"llama-cpp": "qwen3:4b",
|
|
90
|
+
ollama: "qwen3:4b",
|
|
91
|
+
"claude-code": "haiku",
|
|
92
|
+
codex: "gpt-5.4-mini",
|
|
93
|
+
opencode: "google/gemini-2.5-flash",
|
|
94
|
+
anthropic: "claude-3-5-haiku-20241022",
|
|
95
|
+
openrouter: "openai/gpt-4o-mini",
|
|
96
|
+
"openai-compatible": "gpt-4o-mini",
|
|
97
|
+
command: ""
|
|
98
|
+
};
|
|
99
|
+
function modelPresetsForProvider(provider) {
|
|
100
|
+
return Object.prototype.hasOwnProperty.call(PIPELINE_MODEL_CATALOG, provider) ? PIPELINE_MODEL_CATALOG[provider] : [];
|
|
101
|
+
}
|
|
102
|
+
function modelDefaultForProvider(provider) {
|
|
103
|
+
return MODEL_DEFAULTS[provider];
|
|
104
|
+
}
|
|
105
|
+
export {
|
|
106
|
+
modelPresetsForProvider,
|
|
107
|
+
modelDefaultForProvider,
|
|
108
|
+
PIPELINE_MODEL_CATALOG,
|
|
109
|
+
MODEL_DEFAULTS
|
|
110
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAEzD;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM,CAgBhE"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @signetai/core - Markdown utilities
|
|
3
|
+
*
|
|
4
|
+
* Functions for managing legacy Signet blocks in markdown files.
|
|
5
|
+
* The block markers are kept for migration and cleanup compatibility.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SIGNET_BLOCK_START = "<!-- SIGNET:START -->";
|
|
8
|
+
export declare const SIGNET_BLOCK_END = "<!-- SIGNET:END -->";
|
|
9
|
+
/**
|
|
10
|
+
* Build the Signet system block.
|
|
11
|
+
*
|
|
12
|
+
* Deprecated: system prompt injection now lives in the session-start hook.
|
|
13
|
+
* This function intentionally returns an empty string to preserve API
|
|
14
|
+
* compatibility for downstream imports during migration.
|
|
15
|
+
*/
|
|
16
|
+
export declare function buildSignetBlock(workspace?: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Build the SIGNET-ARCHITECTURE.md content — an agent-facing explainer
|
|
19
|
+
* of how the memory pipeline works. This file lives in the Signet workspace and
|
|
20
|
+
* is referenced from the Signet block so agents can read it on demand.
|
|
21
|
+
*/
|
|
22
|
+
export declare function buildArchitectureDoc(workspace?: string): string;
|
|
23
|
+
/**
|
|
24
|
+
* Strip any existing Signet block from content to prevent duplication
|
|
25
|
+
* when re-generating files.
|
|
26
|
+
*
|
|
27
|
+
* This handles the case where users' AGENTS.md was copied from a template
|
|
28
|
+
* that already contains the Signet block, ensuring we don't create duplicates
|
|
29
|
+
* on subsequent sync operations.
|
|
30
|
+
*/
|
|
31
|
+
export declare function stripSignetBlock(content: string): string;
|
|
32
|
+
/**
|
|
33
|
+
* Check if content contains a Signet block
|
|
34
|
+
*/
|
|
35
|
+
export declare function hasSignetBlock(content: string): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Extract the Signet block content (without delimiters) if present
|
|
38
|
+
*/
|
|
39
|
+
export declare function extractSignetBlock(content: string): string | null;
|
|
40
|
+
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../src/markdown.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AAC1D,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AAEtD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,SAAsB,GAAG,MAAM,CAGxE;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,SAAsB,GAAG,MAAM,CA0F5E;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGxD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAIjE"}
|
package/dist/memory.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface ParsedMemory {
|
|
2
|
+
/** Content under the "## User Profile" section. */
|
|
3
|
+
userProfile: string;
|
|
4
|
+
/** Content under the "## Key Facts" section. */
|
|
5
|
+
keyFacts: string;
|
|
6
|
+
/** Content under the "## Ongoing Context" section. */
|
|
7
|
+
ongoingContext: string;
|
|
8
|
+
/** Content between MANUAL:START and MANUAL:END markers. */
|
|
9
|
+
manualNotes: string;
|
|
10
|
+
/** The full raw markdown input, preserved for round-tripping. */
|
|
11
|
+
raw: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Parse a Signet memory markdown file into structured sections.
|
|
15
|
+
*
|
|
16
|
+
* Extracts content from well-known `## ` headings and the
|
|
17
|
+
* `<!-- MANUAL:START -->` / `<!-- MANUAL:END -->` block. Any content
|
|
18
|
+
* outside recognized sections is ignored — the `raw` field always
|
|
19
|
+
* contains the original markdown for lossless round-tripping.
|
|
20
|
+
*/
|
|
21
|
+
export declare function parseMemory(markdown: string): ParsedMemory;
|
|
22
|
+
export declare function generateMemory(): string;
|
|
23
|
+
//# sourceMappingURL=memory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../src/memory.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC5B,mDAAmD;IACnD,WAAW,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,cAAc,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,WAAW,EAAE,MAAM,CAAC;IACpB,iEAAiE;IACjE,GAAG,EAAE,MAAM,CAAC;CACZ;AAmBD;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,YAAY,CAmD1D;AAED,wBAAgB,cAAc,IAAI,MAAM,CAmBvC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type MigrationSource = "chatgpt" | "claude" | "gemini";
|
|
2
|
+
export interface MigrationOptions {
|
|
3
|
+
source: MigrationSource;
|
|
4
|
+
inputPath: string;
|
|
5
|
+
outputPath?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function migrate(options: MigrationOptions): Promise<void>;
|
|
8
|
+
//# sourceMappingURL=migrate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../src/migrate.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE9D,MAAM,WAAW,gBAAgB;IAChC,MAAM,EAAE,eAAe,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAsB,OAAO,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBtE"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Schema migration system for Signet
|
|
3
|
+
* Detects and migrates between different memory database schemas
|
|
4
|
+
*/
|
|
5
|
+
export type SchemaType = "python" | "cli-v1" | "core" | "unknown";
|
|
6
|
+
export interface SchemaInfo {
|
|
7
|
+
type: SchemaType;
|
|
8
|
+
version: number;
|
|
9
|
+
hasMemories: boolean;
|
|
10
|
+
hasConversations: boolean;
|
|
11
|
+
hasEmbeddings: boolean;
|
|
12
|
+
hasFts: boolean;
|
|
13
|
+
memoryCount: number;
|
|
14
|
+
columns: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface MigrationResult {
|
|
17
|
+
migrated: boolean;
|
|
18
|
+
fromSchema: SchemaType;
|
|
19
|
+
toSchema: SchemaType;
|
|
20
|
+
memoriesMigrated: number;
|
|
21
|
+
errors: string[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Detect the current schema type by examining table structure
|
|
25
|
+
*/
|
|
26
|
+
export declare function detectSchema(db: {
|
|
27
|
+
prepare(sql: string): {
|
|
28
|
+
get(...args: unknown[]): Record<string, unknown> | undefined;
|
|
29
|
+
all(...args: unknown[]): Record<string, unknown>[];
|
|
30
|
+
};
|
|
31
|
+
exec?(sql: string): void;
|
|
32
|
+
}): SchemaInfo;
|
|
33
|
+
/**
|
|
34
|
+
* Ensure schema_migrations table has all required columns
|
|
35
|
+
* Handles migration from old schema that was missing checksum column
|
|
36
|
+
*/
|
|
37
|
+
export declare function ensureMigrationsTableSchema(db: {
|
|
38
|
+
exec(sql: string): void;
|
|
39
|
+
prepare(sql: string): {
|
|
40
|
+
all(...args: unknown[]): Record<string, unknown>[];
|
|
41
|
+
};
|
|
42
|
+
}): void;
|
|
43
|
+
/**
|
|
44
|
+
* The unified schema that all migrations target
|
|
45
|
+
*/
|
|
46
|
+
export declare const UNIFIED_SCHEMA = "\n -- Schema version tracking\n CREATE TABLE IF NOT EXISTS schema_migrations (\n version INTEGER PRIMARY KEY,\n applied_at TEXT NOT NULL,\n checksum TEXT NOT NULL\n );\n\n -- Conversations table\n CREATE TABLE IF NOT EXISTS conversations (\n id TEXT PRIMARY KEY,\n session_id TEXT NOT NULL,\n harness TEXT NOT NULL,\n started_at TEXT NOT NULL,\n ended_at TEXT,\n summary TEXT,\n topics TEXT,\n decisions TEXT,\n created_at TEXT NOT NULL,\n updated_at TEXT NOT NULL,\n updated_by TEXT NOT NULL,\n vector_clock TEXT NOT NULL DEFAULT '{}',\n version INTEGER DEFAULT 1,\n manual_override INTEGER DEFAULT 0\n );\n\n -- Unified memories table with all fields from all schemas\n CREATE TABLE IF NOT EXISTS memories (\n id TEXT PRIMARY KEY,\n type TEXT NOT NULL DEFAULT 'fact',\n category TEXT,\n content TEXT NOT NULL,\n confidence REAL DEFAULT 1.0,\n importance REAL DEFAULT 0.5,\n source_id TEXT,\n source_type TEXT,\n tags TEXT,\n created_at TEXT NOT NULL,\n updated_at TEXT NOT NULL,\n updated_by TEXT NOT NULL,\n last_accessed TEXT,\n access_count INTEGER DEFAULT 0,\n vector_clock TEXT NOT NULL DEFAULT '{}',\n version INTEGER DEFAULT 1,\n manual_override INTEGER DEFAULT 0,\n pinned INTEGER DEFAULT 0\n );\n\n -- Embeddings table\n CREATE TABLE IF NOT EXISTS embeddings (\n id TEXT PRIMARY KEY,\n content_hash TEXT NOT NULL UNIQUE,\n vector BLOB NOT NULL,\n dimensions INTEGER NOT NULL,\n source_type TEXT NOT NULL,\n source_id TEXT NOT NULL,\n chunk_text TEXT NOT NULL,\n created_at TEXT NOT NULL\n );\n\n -- Indexes\n CREATE INDEX IF NOT EXISTS idx_conversations_session ON conversations(session_id);\n CREATE INDEX IF NOT EXISTS idx_conversations_harness ON conversations(harness);\n CREATE INDEX IF NOT EXISTS idx_memories_type ON memories(type);\n CREATE INDEX IF NOT EXISTS idx_memories_category ON memories(category);\n CREATE INDEX IF NOT EXISTS idx_memories_pinned ON memories(pinned);\n CREATE INDEX IF NOT EXISTS idx_memories_importance ON memories(importance DESC);\n CREATE INDEX IF NOT EXISTS idx_memories_created ON memories(created_at DESC);\n CREATE INDEX IF NOT EXISTS idx_embeddings_source ON embeddings(source_type, source_id);\n CREATE INDEX IF NOT EXISTS idx_embeddings_hash ON embeddings(content_hash);\n";
|
|
47
|
+
/**
|
|
48
|
+
* Ensure database has the unified schema, migrating if necessary
|
|
49
|
+
*/
|
|
50
|
+
export declare function ensureUnifiedSchema(db: {
|
|
51
|
+
exec(sql: string): void;
|
|
52
|
+
prepare(sql: string): {
|
|
53
|
+
run(...args: unknown[]): void;
|
|
54
|
+
all(...args: unknown[]): Record<string, unknown>[];
|
|
55
|
+
get(...args: unknown[]): Record<string, unknown> | undefined;
|
|
56
|
+
};
|
|
57
|
+
}): MigrationResult;
|
|
58
|
+
//# sourceMappingURL=migration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration.d.ts","sourceRoot":"","sources":["../src/migration.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAElE,MAAM,WAAW,UAAU;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,UAAU,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE;IAChC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG;QACrB,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;QAC7D,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;KACnD,CAAC;IACF,IAAI,CAAC,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,GAAG,UAAU,CAgGb;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,EAAE,EAAE;IAC/C,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG;QACrB,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;KACnD,CAAC;CACF,GAAG,IAAI,CAsBP;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,+0EAsE1B,CAAC;AA8NF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,EAAE;IACvC,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG;QACrB,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAC9B,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;QACnD,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;KAC7D,CAAC;CACF,GAAG,eAAe,CA+HlB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 001: Baseline schema
|
|
3
|
+
*
|
|
4
|
+
* Captures the unified schema as migration version 1.
|
|
5
|
+
* All statements use IF NOT EXISTS so this is safe to run
|
|
6
|
+
* against databases that already have these tables.
|
|
7
|
+
*/
|
|
8
|
+
import type { MigrationDb } from "./index";
|
|
9
|
+
export declare function up(db: MigrationDb): void;
|
|
10
|
+
//# sourceMappingURL=001-baseline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"001-baseline.d.ts","sourceRoot":"","sources":["../../src/migrations/001-baseline.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CA+FxC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 002: Pipeline v2 schema
|
|
3
|
+
*
|
|
4
|
+
* Adds columns for the memory pipeline (content hashing, soft delete,
|
|
5
|
+
* extraction tracking), plus new tables for history, jobs, and the
|
|
6
|
+
* entity graph.
|
|
7
|
+
*/
|
|
8
|
+
import type { MigrationDb } from "./index";
|
|
9
|
+
export declare function up(db: MigrationDb): void;
|
|
10
|
+
//# sourceMappingURL=002-pipeline-v2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"002-pipeline-v2.d.ts","sourceRoot":"","sources":["../../src/migrations/002-pipeline-v2.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAe3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CA4HxC"}
|