pmem-ai 0.5.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/CHANGELOG.md +57 -0
- package/LICENSE +21 -0
- package/README.md +349 -0
- package/dist/commands/ask.d.ts +3 -0
- package/dist/commands/ask.d.ts.map +1 -0
- package/dist/commands/ask.js +303 -0
- package/dist/commands/ask.js.map +1 -0
- package/dist/commands/distill.d.ts +6 -0
- package/dist/commands/distill.d.ts.map +1 -0
- package/dist/commands/distill.js +425 -0
- package/dist/commands/distill.js.map +1 -0
- package/dist/commands/graph.d.ts +6 -0
- package/dist/commands/graph.d.ts.map +1 -0
- package/dist/commands/graph.js +216 -0
- package/dist/commands/graph.js.map +1 -0
- package/dist/commands/init.d.ts +5 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +566 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/integration.d.ts +2 -0
- package/dist/commands/integration.d.ts.map +1 -0
- package/dist/commands/integration.js +216 -0
- package/dist/commands/integration.js.map +1 -0
- package/dist/commands/migrate.d.ts +6 -0
- package/dist/commands/migrate.d.ts.map +1 -0
- package/dist/commands/migrate.js +379 -0
- package/dist/commands/migrate.js.map +1 -0
- package/dist/commands/rebuild.d.ts +8 -0
- package/dist/commands/rebuild.d.ts.map +1 -0
- package/dist/commands/rebuild.js +299 -0
- package/dist/commands/rebuild.js.map +1 -0
- package/dist/commands/recall.d.ts +3 -0
- package/dist/commands/recall.d.ts.map +1 -0
- package/dist/commands/recall.js +140 -0
- package/dist/commands/recall.js.map +1 -0
- package/dist/commands/session.d.ts +3 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +147 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/commands/status.d.ts +5 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +275 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/update.d.ts +14 -0
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/commands/update.js +536 -0
- package/dist/commands/update.js.map +1 -0
- package/dist/commands/verify.d.ts +4 -0
- package/dist/commands/verify.d.ts.map +1 -0
- package/dist/commands/verify.js +296 -0
- package/dist/commands/verify.js.map +1 -0
- package/dist/core/db.d.ts +47 -0
- package/dist/core/db.d.ts.map +1 -0
- package/dist/core/db.js +326 -0
- package/dist/core/db.js.map +1 -0
- package/dist/core/format.d.ts +3 -0
- package/dist/core/format.d.ts.map +1 -0
- package/dist/core/format.js +221 -0
- package/dist/core/format.js.map +1 -0
- package/dist/core/fs.d.ts +16 -0
- package/dist/core/fs.d.ts.map +1 -0
- package/dist/core/fs.js +175 -0
- package/dist/core/fs.js.map +1 -0
- package/dist/core/git.d.ts +6 -0
- package/dist/core/git.d.ts.map +1 -0
- package/dist/core/git.js +20 -0
- package/dist/core/git.js.map +1 -0
- package/dist/core/hash.d.ts +10 -0
- package/dist/core/hash.d.ts.map +1 -0
- package/dist/core/hash.js +25 -0
- package/dist/core/hash.js.map +1 -0
- package/dist/core/manifest.d.ts +6 -0
- package/dist/core/manifest.d.ts.map +1 -0
- package/dist/core/manifest.js +207 -0
- package/dist/core/manifest.js.map +1 -0
- package/dist/core/yaml.d.ts +11 -0
- package/dist/core/yaml.d.ts.map +1 -0
- package/dist/core/yaml.js +94 -0
- package/dist/core/yaml.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +167 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +351 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -0
- package/docs/Voorlopige projekidee.md +695 -0
- package/docs/handover-v0.3.md +355 -0
- package/docs/handover-v0.4.md +367 -0
- package/docs/prd.md +318 -0
- package/docs/project-roadmap.md +279 -0
- package/docs/release-checklist-v0.5.md +109 -0
- package/docs/v0.2 pre-design.md +182 -0
- package/docs/v0.2 pre-roadmap.md +270 -0
- package/docs/v0.3 pre-design.md +686 -0
- package/docs/v0.4 pre-design.md +417 -0
- package/docs/v0.5 pre-design.md +481 -0
- package/package.json +67 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const commander_1 = require("commander");
|
|
5
|
+
const init_1 = require("./commands/init");
|
|
6
|
+
const rebuild_1 = require("./commands/rebuild");
|
|
7
|
+
const recall_1 = require("./commands/recall");
|
|
8
|
+
const verify_1 = require("./commands/verify");
|
|
9
|
+
const ask_1 = require("./commands/ask");
|
|
10
|
+
const graph_1 = require("./commands/graph");
|
|
11
|
+
const update_1 = require("./commands/update");
|
|
12
|
+
const integration_1 = require("./commands/integration");
|
|
13
|
+
const migrate_1 = require("./commands/migrate");
|
|
14
|
+
const distill_1 = require("./commands/distill");
|
|
15
|
+
const session_1 = require("./commands/session");
|
|
16
|
+
const status_1 = require("./commands/status");
|
|
17
|
+
const program = new commander_1.Command();
|
|
18
|
+
program
|
|
19
|
+
.name('pmem')
|
|
20
|
+
.description('Project Memory for AI Agents — graph-based project memory runtime')
|
|
21
|
+
.version('0.5.0');
|
|
22
|
+
program
|
|
23
|
+
.command('status')
|
|
24
|
+
.description('Detect changed files and affected memory cards')
|
|
25
|
+
.option('-s, --since <timestamp>', 'Check changes since timestamp')
|
|
26
|
+
.option('-f, --format <format>', 'Output format (compact, json)', 'compact')
|
|
27
|
+
.action((options) => {
|
|
28
|
+
(0, status_1.statusCommand)({ since: options.since, format: options.format });
|
|
29
|
+
});
|
|
30
|
+
program
|
|
31
|
+
.command('init [project-name]')
|
|
32
|
+
.description('Initialize pmem in the current project')
|
|
33
|
+
.option('--guided', 'Interactive guided initialization (recommended)')
|
|
34
|
+
.action((projectName, options) => {
|
|
35
|
+
const opts = options || {};
|
|
36
|
+
(0, init_1.initCommand)({ projectName, guided: opts.guided });
|
|
37
|
+
});
|
|
38
|
+
program
|
|
39
|
+
.command('recall')
|
|
40
|
+
.description('Quick project recall')
|
|
41
|
+
.option('-b, --budget <tokens>', 'Token budget for recall', '2000')
|
|
42
|
+
.option('-f, --format <format>', 'Output format (compact, json, paths, pack)', 'compact')
|
|
43
|
+
.action((options) => {
|
|
44
|
+
(0, recall_1.recallCommand)(parseInt(options.budget, 10), options.format);
|
|
45
|
+
});
|
|
46
|
+
program
|
|
47
|
+
.command('ask <query>')
|
|
48
|
+
.description('Graph-guided memory recall')
|
|
49
|
+
.option('-f, --format <format>', 'Output format (compact, json, paths, pack)', 'compact')
|
|
50
|
+
.action((query, options) => {
|
|
51
|
+
(0, ask_1.askCommand)(query, options.format);
|
|
52
|
+
});
|
|
53
|
+
program
|
|
54
|
+
.command('related <id>')
|
|
55
|
+
.description('Query graph neighbors')
|
|
56
|
+
.option('-d, --depth <n>', 'Traversal depth (1 = direct only)', '1')
|
|
57
|
+
.option('-t, --type <type>', 'Filter by edge type (e.g. depends_on)')
|
|
58
|
+
.action((id, options) => {
|
|
59
|
+
(0, graph_1.relatedCommand)(id, { depth: parseInt(options.depth, 10), type: options.type });
|
|
60
|
+
});
|
|
61
|
+
program
|
|
62
|
+
.command('trace <id>')
|
|
63
|
+
.description('Trace evidence for a node')
|
|
64
|
+
.action((id) => {
|
|
65
|
+
(0, graph_1.traceCommand)(id);
|
|
66
|
+
});
|
|
67
|
+
program
|
|
68
|
+
.command('update')
|
|
69
|
+
.description('Update project memory')
|
|
70
|
+
.option('--auto', 'Auto-detect changes, generate suggestions')
|
|
71
|
+
.option('--suggest', 'Suggest memory updates based on dirty flags and changes')
|
|
72
|
+
.option('--apply-suggestion <id>', 'Apply a specific suggestion by ID')
|
|
73
|
+
.option('--confirm', 'Confirm and write changes')
|
|
74
|
+
.option('--force', 'Force write without confirmation')
|
|
75
|
+
.option('-s, --summary <text>', 'Summary of changes')
|
|
76
|
+
.option('-n, --next <text>', 'Next step description')
|
|
77
|
+
.option('-f, --format <format>', 'Output format for --suggest (compact, json)', 'compact')
|
|
78
|
+
.action((options) => {
|
|
79
|
+
(0, update_1.updateCommand)(options);
|
|
80
|
+
});
|
|
81
|
+
program
|
|
82
|
+
.command('mark-dirty')
|
|
83
|
+
.description('Mark memory as potentially stale')
|
|
84
|
+
.option('-r, --reason <reason>', 'Reason for marking dirty', 'code_changed')
|
|
85
|
+
.option('--auto', 'Auto-detect changed files and mark related cards dirty')
|
|
86
|
+
.action((options) => {
|
|
87
|
+
(0, update_1.markDirtyCommand)(options.reason, { auto: options.auto });
|
|
88
|
+
});
|
|
89
|
+
program
|
|
90
|
+
.command('rebuild')
|
|
91
|
+
.description('Rebuild SQLite indexes from source cards')
|
|
92
|
+
.option('--changed', 'Incremental rebuild (hash comparison, default)')
|
|
93
|
+
.option('--full', 'Full rebuild (clear all tables first)')
|
|
94
|
+
.option('--card <id>', 'Rebuild a single card by ID')
|
|
95
|
+
.action((options) => {
|
|
96
|
+
(0, rebuild_1.rebuildCommand)({
|
|
97
|
+
changed: options.changed,
|
|
98
|
+
full: options.full,
|
|
99
|
+
card: options.card,
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
program
|
|
103
|
+
.command('verify')
|
|
104
|
+
.description('Check memory consistency and freshness')
|
|
105
|
+
.option('--fix', 'Auto-fix issues where possible')
|
|
106
|
+
.action((options) => {
|
|
107
|
+
(0, verify_1.verifyCommand)({ fix: options.fix });
|
|
108
|
+
});
|
|
109
|
+
program
|
|
110
|
+
.command('migrate')
|
|
111
|
+
.description('Migrate project memory to a newer schema version')
|
|
112
|
+
.option('--to <version>', 'Target schema version', '0.3')
|
|
113
|
+
.option('--dry-run', 'Preview migration without applying changes')
|
|
114
|
+
.option('--backup', 'Create backup before migrating', true)
|
|
115
|
+
.action((options) => {
|
|
116
|
+
(0, migrate_1.migrateCommand)({ to: options.to, dryRun: options.dryRun, backup: options.backup });
|
|
117
|
+
});
|
|
118
|
+
program
|
|
119
|
+
.command('distill')
|
|
120
|
+
.description('Consolidate trace files into stable memory cards')
|
|
121
|
+
.option('--suggest', 'Suggest memory distillation (dry-run, default behavior)')
|
|
122
|
+
.option('--confirm', 'Apply distillation changes')
|
|
123
|
+
.option('--apply-suggestion <id>', 'Apply distillation for a specific target card')
|
|
124
|
+
.option('--suggest-splits', 'Suggest splitting oversized cards')
|
|
125
|
+
.action((options) => {
|
|
126
|
+
(0, distill_1.distillCommand)({ confirm: options.confirm, applySuggestion: options.applySuggestion, suggestSplits: options.suggestSplits });
|
|
127
|
+
});
|
|
128
|
+
const session = program
|
|
129
|
+
.command('session')
|
|
130
|
+
.description('Manage development sessions');
|
|
131
|
+
session
|
|
132
|
+
.command('start')
|
|
133
|
+
.description('Start a new development session')
|
|
134
|
+
.option('-a, --agent <name>', 'Agent name')
|
|
135
|
+
.action((options) => {
|
|
136
|
+
(0, session_1.sessionStartCommand)(options.agent);
|
|
137
|
+
});
|
|
138
|
+
session
|
|
139
|
+
.command('end')
|
|
140
|
+
.description('End the current development session')
|
|
141
|
+
.option('-s, --summary <text>', 'Task summary')
|
|
142
|
+
.action((options) => {
|
|
143
|
+
(0, session_1.sessionEndCommand)(options.summary);
|
|
144
|
+
});
|
|
145
|
+
const integration = program
|
|
146
|
+
.command('integration')
|
|
147
|
+
.description('Manage agent framework integrations');
|
|
148
|
+
integration
|
|
149
|
+
.command('list')
|
|
150
|
+
.description('List active integrations')
|
|
151
|
+
.action(() => {
|
|
152
|
+
(0, integration_1.integrationCommand)('list');
|
|
153
|
+
});
|
|
154
|
+
integration
|
|
155
|
+
.command('install <framework>')
|
|
156
|
+
.description('Install integration for a framework')
|
|
157
|
+
.action((framework) => {
|
|
158
|
+
(0, integration_1.integrationCommand)('install', framework);
|
|
159
|
+
});
|
|
160
|
+
integration
|
|
161
|
+
.command('verify')
|
|
162
|
+
.description('Verify integration setup')
|
|
163
|
+
.action(() => {
|
|
164
|
+
(0, integration_1.integrationCommand)('verify');
|
|
165
|
+
});
|
|
166
|
+
program.parse();
|
|
167
|
+
//# source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EAAC,QAAQ,CAAC,CAAC;AAC/B,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
export type NodeType = 'project' | 'module' | 'feature' | 'task' | 'decision' | 'risk' | 'assumption' | 'constraint' | 'person' | 'resource' | 'file' | 'doc' | 'trace';
|
|
2
|
+
export type EdgeType = 'depends_on' | 'blocks' | 'implements' | 'constrains' | 'decided_by' | 'derived_from' | 'related_to' | 'supersedes' | 'conflicts_with' | 'next_step_of';
|
|
3
|
+
export type NodeStatus = 'active' | 'designing' | 'implementing' | 'completed' | 'archived' | 'blocked';
|
|
4
|
+
export type CardPriority = 'high' | 'medium' | 'low';
|
|
5
|
+
export interface CardFrontmatter {
|
|
6
|
+
id: string;
|
|
7
|
+
type: NodeType;
|
|
8
|
+
status?: NodeStatus;
|
|
9
|
+
priority?: CardPriority;
|
|
10
|
+
tags?: string[];
|
|
11
|
+
aliases?: string[];
|
|
12
|
+
schema_version?: string;
|
|
13
|
+
version?: number;
|
|
14
|
+
related?: string[];
|
|
15
|
+
depends_on?: string[];
|
|
16
|
+
updated?: string;
|
|
17
|
+
last_verified?: string;
|
|
18
|
+
freshness?: {
|
|
19
|
+
ttl: string;
|
|
20
|
+
policy: string;
|
|
21
|
+
};
|
|
22
|
+
source_files?: string[];
|
|
23
|
+
}
|
|
24
|
+
export interface MemoryCard {
|
|
25
|
+
frontmatter: CardFrontmatter;
|
|
26
|
+
body: string;
|
|
27
|
+
filePath: string;
|
|
28
|
+
}
|
|
29
|
+
export interface GraphNode {
|
|
30
|
+
id: string;
|
|
31
|
+
type: NodeType;
|
|
32
|
+
title: string;
|
|
33
|
+
status?: NodeStatus;
|
|
34
|
+
file: string;
|
|
35
|
+
tags?: string[];
|
|
36
|
+
aliases?: string[];
|
|
37
|
+
}
|
|
38
|
+
export interface GraphEdge {
|
|
39
|
+
from: string;
|
|
40
|
+
to: string;
|
|
41
|
+
type: EdgeType;
|
|
42
|
+
confidence?: number;
|
|
43
|
+
derived?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface GraphIndex {
|
|
46
|
+
kind: 'pmem.graph_index';
|
|
47
|
+
pmem_version: string;
|
|
48
|
+
generated_at: string;
|
|
49
|
+
source: {
|
|
50
|
+
type: 'markdown_frontmatter';
|
|
51
|
+
glob: string;
|
|
52
|
+
source_hash: string;
|
|
53
|
+
};
|
|
54
|
+
node_count: number;
|
|
55
|
+
edge_count: number;
|
|
56
|
+
nodes: GraphNode[];
|
|
57
|
+
edges: GraphEdge[];
|
|
58
|
+
}
|
|
59
|
+
export interface ManifestProject {
|
|
60
|
+
name: string;
|
|
61
|
+
language?: string;
|
|
62
|
+
status?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface ManifestSourceOfTruth {
|
|
65
|
+
type: 'markdown_cards';
|
|
66
|
+
path: string;
|
|
67
|
+
card_globs: string[];
|
|
68
|
+
}
|
|
69
|
+
export interface ManifestIndexes {
|
|
70
|
+
path: string;
|
|
71
|
+
generated: boolean;
|
|
72
|
+
graph: {
|
|
73
|
+
mode: 'single' | 'sharded';
|
|
74
|
+
path: string;
|
|
75
|
+
};
|
|
76
|
+
keyword?: {
|
|
77
|
+
mode: 'bm25';
|
|
78
|
+
path: string;
|
|
79
|
+
};
|
|
80
|
+
hashes?: {
|
|
81
|
+
path: string;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
export interface ManifestAutoUpdate {
|
|
85
|
+
enabled: boolean;
|
|
86
|
+
on_code_change: 'mark_dirty' | 'ignore';
|
|
87
|
+
on_doc_change: 'mark_dirty' | 'ignore';
|
|
88
|
+
on_memory_change: 'rebuild_indexes' | 'ignore';
|
|
89
|
+
on_session_end: 'prompt' | 'ignore';
|
|
90
|
+
on_git_commit: 'suggest_trace' | 'ignore';
|
|
91
|
+
min_trace_interval: string;
|
|
92
|
+
max_auto_traces_per_day: number;
|
|
93
|
+
ignore_patterns: string[];
|
|
94
|
+
trace_policy: {
|
|
95
|
+
require_meaningful_change: boolean;
|
|
96
|
+
require_summary: boolean;
|
|
97
|
+
require_related_node: boolean;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
export interface ManifestIntegration {
|
|
101
|
+
template_version: string;
|
|
102
|
+
files: string[];
|
|
103
|
+
hooks?: Record<string, string>;
|
|
104
|
+
}
|
|
105
|
+
export type ManifestSchemaVersion = '0.2' | '0.3';
|
|
106
|
+
export interface ManifestBase {
|
|
107
|
+
pmem: {
|
|
108
|
+
schema_version: ManifestSchemaVersion;
|
|
109
|
+
protocol_version: string;
|
|
110
|
+
created_by: string;
|
|
111
|
+
last_migrated_by: string | null;
|
|
112
|
+
};
|
|
113
|
+
project: ManifestProject;
|
|
114
|
+
source_of_truth: ManifestSourceOfTruth;
|
|
115
|
+
memory_status: MemoryStatus;
|
|
116
|
+
concurrency: ConcurrencyConfig;
|
|
117
|
+
card_policy: CardPolicy;
|
|
118
|
+
auto_update: ManifestAutoUpdate;
|
|
119
|
+
freshness: {
|
|
120
|
+
default_ttl: string;
|
|
121
|
+
stale_on_related_code_change: boolean;
|
|
122
|
+
require_last_verified: boolean;
|
|
123
|
+
};
|
|
124
|
+
distill: DistillConfig;
|
|
125
|
+
integrations: {
|
|
126
|
+
active: string[];
|
|
127
|
+
[key: string]: ManifestIntegration | string[] | undefined;
|
|
128
|
+
};
|
|
129
|
+
migrations: {
|
|
130
|
+
applied: MigrationRecord[];
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
export interface ManifestV02 extends ManifestBase {
|
|
134
|
+
pmem: ManifestBase['pmem'] & {
|
|
135
|
+
schema_version: '0.2';
|
|
136
|
+
protocol_version: '0.2';
|
|
137
|
+
};
|
|
138
|
+
indexes: ManifestIndexes;
|
|
139
|
+
}
|
|
140
|
+
export type Manifest = ManifestV02 | ManifestV03;
|
|
141
|
+
export interface RecallResult {
|
|
142
|
+
project: string;
|
|
143
|
+
stage?: string;
|
|
144
|
+
focus: string;
|
|
145
|
+
state: string[];
|
|
146
|
+
next: string;
|
|
147
|
+
mustRead: string[];
|
|
148
|
+
}
|
|
149
|
+
export type MatchType = 'exact_id' | 'exact_title' | 'alias' | 'tag' | 'graph_expansion' | 'keyword_fallback';
|
|
150
|
+
export interface AskMatch {
|
|
151
|
+
node: GraphNode;
|
|
152
|
+
matchType: MatchType;
|
|
153
|
+
confidence: number;
|
|
154
|
+
graphDistance?: number;
|
|
155
|
+
}
|
|
156
|
+
export interface AskResult {
|
|
157
|
+
query: string;
|
|
158
|
+
matches: AskMatch[];
|
|
159
|
+
recommendedRead: string[];
|
|
160
|
+
evidencePaths: string[];
|
|
161
|
+
}
|
|
162
|
+
export interface VerifyIssue {
|
|
163
|
+
severity: 'error' | 'warning';
|
|
164
|
+
type: string;
|
|
165
|
+
message: string;
|
|
166
|
+
fix: string;
|
|
167
|
+
}
|
|
168
|
+
export interface VerifyResult {
|
|
169
|
+
passed: boolean;
|
|
170
|
+
score: number;
|
|
171
|
+
issues: VerifyIssue[];
|
|
172
|
+
}
|
|
173
|
+
export type MemoryCompleteness = 'incomplete' | 'partial' | 'usable' | 'mature';
|
|
174
|
+
export type InitMode = 'minimal' | 'guided' | 'from_manifest' | 'imported';
|
|
175
|
+
export interface MemoryStatus {
|
|
176
|
+
completeness: MemoryCompleteness;
|
|
177
|
+
initialized_mode: InitMode;
|
|
178
|
+
dirty: boolean;
|
|
179
|
+
dirty_since: string | null;
|
|
180
|
+
dirty_reason: string | null;
|
|
181
|
+
}
|
|
182
|
+
export interface SchemaVersion {
|
|
183
|
+
schema_version: string;
|
|
184
|
+
protocol_version: string;
|
|
185
|
+
created_by: string;
|
|
186
|
+
last_migrated_by: string | null;
|
|
187
|
+
}
|
|
188
|
+
export interface CardPolicy {
|
|
189
|
+
id_pattern: string;
|
|
190
|
+
max_tokens: Record<string, number>;
|
|
191
|
+
max_sections: Record<string, number>;
|
|
192
|
+
warn_when_related_count_gt: number;
|
|
193
|
+
}
|
|
194
|
+
export interface ConcurrencyLockConfig {
|
|
195
|
+
enabled: boolean;
|
|
196
|
+
path: string;
|
|
197
|
+
timeout: string;
|
|
198
|
+
stale_after: string;
|
|
199
|
+
on_timeout: 'abort' | 'wait' | 'readonly';
|
|
200
|
+
}
|
|
201
|
+
export interface ConcurrencyConfig {
|
|
202
|
+
mode: 'file-basic';
|
|
203
|
+
atomic_write: boolean;
|
|
204
|
+
lock: ConcurrencyLockConfig;
|
|
205
|
+
optimistic_lock: {
|
|
206
|
+
enabled: boolean;
|
|
207
|
+
note: string;
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
export interface MigrationRecord {
|
|
211
|
+
id: string;
|
|
212
|
+
applied_at: string;
|
|
213
|
+
cli_version: string;
|
|
214
|
+
}
|
|
215
|
+
export interface DistillConfig {
|
|
216
|
+
enabled: boolean;
|
|
217
|
+
cadence: 'daily' | 'weekly';
|
|
218
|
+
max_undistilled_traces: number;
|
|
219
|
+
require_confirmation: boolean;
|
|
220
|
+
suggest_card_splits: boolean;
|
|
221
|
+
}
|
|
222
|
+
export interface InitScanCandidate {
|
|
223
|
+
suggestedId: string;
|
|
224
|
+
path: string;
|
|
225
|
+
confidence: 'high' | 'medium' | 'low';
|
|
226
|
+
}
|
|
227
|
+
export interface InitScanResult {
|
|
228
|
+
stack: string[];
|
|
229
|
+
sourceDirectories: string[];
|
|
230
|
+
candidates: InitScanCandidate[];
|
|
231
|
+
}
|
|
232
|
+
export interface RuntimeConfig {
|
|
233
|
+
mode: 'sqlite';
|
|
234
|
+
db_path: string;
|
|
235
|
+
markdown_source: boolean;
|
|
236
|
+
}
|
|
237
|
+
export interface RebuildHashConfig {
|
|
238
|
+
file_hash: boolean;
|
|
239
|
+
frontmatter_hash: boolean;
|
|
240
|
+
body_hash: boolean;
|
|
241
|
+
}
|
|
242
|
+
export interface RebuildConfig {
|
|
243
|
+
strategy: 'content_hash';
|
|
244
|
+
hash: RebuildHashConfig;
|
|
245
|
+
}
|
|
246
|
+
export interface CliConfig {
|
|
247
|
+
default_format: 'compact' | 'json' | 'paths' | 'pack';
|
|
248
|
+
supported_formats: string[];
|
|
249
|
+
default_budget: number;
|
|
250
|
+
}
|
|
251
|
+
export interface EmbeddingConfig {
|
|
252
|
+
enabled: boolean;
|
|
253
|
+
provider: 'none' | 'api' | 'local';
|
|
254
|
+
model: string | null;
|
|
255
|
+
dimension: number | null;
|
|
256
|
+
store: 'sqlite';
|
|
257
|
+
index: 'none';
|
|
258
|
+
}
|
|
259
|
+
export interface ServeExperimentalConfig {
|
|
260
|
+
mcp: boolean;
|
|
261
|
+
rest: boolean;
|
|
262
|
+
}
|
|
263
|
+
export interface ServeConfig {
|
|
264
|
+
enabled: boolean;
|
|
265
|
+
mode: 'none';
|
|
266
|
+
experimental: ServeExperimentalConfig;
|
|
267
|
+
}
|
|
268
|
+
export interface LegacyJsonConfig {
|
|
269
|
+
enabled: boolean;
|
|
270
|
+
retained: boolean;
|
|
271
|
+
path: string;
|
|
272
|
+
}
|
|
273
|
+
export interface IndexesConfigV03 {
|
|
274
|
+
primary: 'sqlite';
|
|
275
|
+
legacy_json: LegacyJsonConfig;
|
|
276
|
+
}
|
|
277
|
+
export interface ManifestV03 extends ManifestBase {
|
|
278
|
+
pmem: ManifestBase['pmem'] & {
|
|
279
|
+
schema_version: '0.3';
|
|
280
|
+
protocol_version: '0.3';
|
|
281
|
+
};
|
|
282
|
+
runtime: RuntimeConfig;
|
|
283
|
+
indexes: IndexesConfigV03;
|
|
284
|
+
rebuild: RebuildConfig;
|
|
285
|
+
cli: CliConfig;
|
|
286
|
+
embedding: EmbeddingConfig;
|
|
287
|
+
serve: ServeConfig;
|
|
288
|
+
}
|
|
289
|
+
export interface CardRow {
|
|
290
|
+
id: string;
|
|
291
|
+
type: string;
|
|
292
|
+
title: string;
|
|
293
|
+
status: string | null;
|
|
294
|
+
priority: string | null;
|
|
295
|
+
file_path: string;
|
|
296
|
+
summary: string | null;
|
|
297
|
+
schema_version: string | null;
|
|
298
|
+
card_version: number;
|
|
299
|
+
created_at: string | null;
|
|
300
|
+
updated_at: string | null;
|
|
301
|
+
last_verified_at: string | null;
|
|
302
|
+
file_hash: string;
|
|
303
|
+
frontmatter_hash: string;
|
|
304
|
+
body_hash: string;
|
|
305
|
+
token_count: number;
|
|
306
|
+
section_count: number;
|
|
307
|
+
is_deleted: number;
|
|
308
|
+
is_candidate: number;
|
|
309
|
+
}
|
|
310
|
+
export interface EdgeRow {
|
|
311
|
+
id?: number;
|
|
312
|
+
from_id: string;
|
|
313
|
+
to_id: string;
|
|
314
|
+
type: string;
|
|
315
|
+
source: 'explicit' | 'inferred' | 'mention';
|
|
316
|
+
confidence: number;
|
|
317
|
+
created_at?: string;
|
|
318
|
+
updated_at?: string;
|
|
319
|
+
}
|
|
320
|
+
export interface DirtyFlagRow {
|
|
321
|
+
id?: number;
|
|
322
|
+
scope: string;
|
|
323
|
+
target: string;
|
|
324
|
+
reason: string;
|
|
325
|
+
created_at: string;
|
|
326
|
+
resolved_at: string | null;
|
|
327
|
+
session_id: string | null;
|
|
328
|
+
}
|
|
329
|
+
export interface SessionRow {
|
|
330
|
+
id: string;
|
|
331
|
+
agent_name: string | null;
|
|
332
|
+
started_at: string;
|
|
333
|
+
ended_at: string | null;
|
|
334
|
+
task_summary: string | null;
|
|
335
|
+
base_index_hash: string | null;
|
|
336
|
+
status: string | null;
|
|
337
|
+
dirty: number;
|
|
338
|
+
}
|
|
339
|
+
export interface UpdateLogRow {
|
|
340
|
+
id?: number;
|
|
341
|
+
action: string;
|
|
342
|
+
summary: string | null;
|
|
343
|
+
session_id: string | null;
|
|
344
|
+
created_at: string;
|
|
345
|
+
affected_cards: string | null;
|
|
346
|
+
affected_paths: string | null;
|
|
347
|
+
success: number;
|
|
348
|
+
error: string | null;
|
|
349
|
+
}
|
|
350
|
+
export type CliFormat = 'compact' | 'json' | 'paths' | 'pack';
|
|
351
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1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