@wiki0/core 0.0.3 → 0.0.4
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/README.md +38 -23
- package/dist/events.d.ts +9 -0
- package/dist/events.js +56 -0
- package/dist/events.js.map +1 -0
- package/dist/facts.js +78 -16
- package/dist/facts.js.map +1 -1
- package/dist/graph.js +14 -2
- package/dist/graph.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/indexer.d.ts +11 -1
- package/dist/indexer.js +132 -21
- package/dist/indexer.js.map +1 -1
- package/dist/lint.js +1 -1
- package/dist/lint.js.map +1 -1
- package/dist/pages.js +25 -3
- package/dist/pages.js.map +1 -1
- package/dist/schema.sql +32 -0
- package/dist/search.d.ts +4 -2
- package/dist/search.js +162 -6
- package/dist/search.js.map +1 -1
- package/dist/topics.d.ts +2 -0
- package/dist/topics.js +55 -0
- package/dist/topics.js.map +1 -0
- package/dist/types.d.ts +67 -22
- package/dist/workflow.js +107 -9
- package/dist/workflow.js.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type WikiConfig = {
|
|
2
2
|
root: string;
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
wiki_dir?: string;
|
|
4
|
+
db_path?: string;
|
|
5
5
|
};
|
|
6
6
|
export type WikiLink = {
|
|
7
7
|
raw: string;
|
|
@@ -35,21 +35,24 @@ export type PageFrontmatterOptions = {
|
|
|
35
35
|
};
|
|
36
36
|
export type IndexResult = {
|
|
37
37
|
root: string;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
db_path: string;
|
|
39
|
+
page_count: number;
|
|
40
|
+
link_count: number;
|
|
41
|
+
indexed_at: string;
|
|
42
|
+
schema_version: number;
|
|
43
|
+
package_version: string;
|
|
43
44
|
};
|
|
44
45
|
export type IndexStatus = {
|
|
45
46
|
root: string;
|
|
46
|
-
|
|
47
|
+
db_path: string;
|
|
47
48
|
exists: boolean;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
indexed_at: string | null;
|
|
50
|
+
schema_version: number | null;
|
|
51
|
+
current_schema_version: number;
|
|
52
|
+
package_version: string | null;
|
|
53
|
+
current_package_version: string;
|
|
54
|
+
page_count: number;
|
|
55
|
+
indexed_page_count: number;
|
|
53
56
|
stale: boolean;
|
|
54
57
|
reasons: string[];
|
|
55
58
|
};
|
|
@@ -59,15 +62,27 @@ export type SearchResult = {
|
|
|
59
62
|
snippet: string;
|
|
60
63
|
rank: number;
|
|
61
64
|
};
|
|
65
|
+
export type ChunkSearchResult = SearchResult & {
|
|
66
|
+
chunk_id: number;
|
|
67
|
+
heading: string | null;
|
|
68
|
+
body: string;
|
|
69
|
+
start_line: number;
|
|
70
|
+
end_line: number;
|
|
71
|
+
page_priority?: number;
|
|
72
|
+
page_status?: string | null;
|
|
73
|
+
page_tags?: string[];
|
|
74
|
+
};
|
|
75
|
+
export type ShowChunkResult = ChunkSearchResult;
|
|
62
76
|
export type ContextResult = {
|
|
63
77
|
query: string;
|
|
64
|
-
results:
|
|
78
|
+
results: ChunkSearchResult[];
|
|
79
|
+
warnings: string[];
|
|
65
80
|
markdown: string;
|
|
66
81
|
};
|
|
67
82
|
export type BacklinkResult = {
|
|
68
83
|
path: string;
|
|
69
84
|
title: string;
|
|
70
|
-
|
|
85
|
+
raw_text: string;
|
|
71
86
|
alias: string | null;
|
|
72
87
|
embed: boolean;
|
|
73
88
|
};
|
|
@@ -79,7 +94,7 @@ export type GraphEdge = {
|
|
|
79
94
|
from: string;
|
|
80
95
|
to: string;
|
|
81
96
|
target: string;
|
|
82
|
-
|
|
97
|
+
raw_text: string;
|
|
83
98
|
alias: string | null;
|
|
84
99
|
embed: boolean;
|
|
85
100
|
status: 'resolved' | 'unresolved';
|
|
@@ -92,12 +107,17 @@ export type GraphResult = {
|
|
|
92
107
|
export type FactConfidence = 'unknown' | 'low' | 'medium' | 'high' | 'verified';
|
|
93
108
|
export type Fact = {
|
|
94
109
|
id: number;
|
|
95
|
-
|
|
110
|
+
page_path: string | null;
|
|
96
111
|
category: string;
|
|
97
112
|
summary: string;
|
|
98
113
|
body: string | null;
|
|
99
114
|
confidence: FactConfidence;
|
|
100
|
-
|
|
115
|
+
source_path: string | null;
|
|
116
|
+
source_heading: string | null;
|
|
117
|
+
source_start_line: number | null;
|
|
118
|
+
source_end_line: number | null;
|
|
119
|
+
source_quote: string | null;
|
|
120
|
+
created_at: string;
|
|
101
121
|
};
|
|
102
122
|
export type FactWriteOptions = {
|
|
103
123
|
root?: string;
|
|
@@ -106,6 +126,8 @@ export type FactWriteOptions = {
|
|
|
106
126
|
summary: string;
|
|
107
127
|
body?: string;
|
|
108
128
|
confidence?: FactConfidence;
|
|
129
|
+
source?: string;
|
|
130
|
+
source_quote?: string;
|
|
109
131
|
};
|
|
110
132
|
export type ReviewResult = {
|
|
111
133
|
path: string;
|
|
@@ -124,17 +146,19 @@ export type LintIssue = {
|
|
|
124
146
|
export type LintResult = {
|
|
125
147
|
root: string;
|
|
126
148
|
ok: boolean;
|
|
127
|
-
|
|
149
|
+
issue_count: number;
|
|
128
150
|
issues: LintIssue[];
|
|
129
151
|
};
|
|
130
152
|
export type WikiSourceType = 'general' | 'codebase' | 'docs' | 'research' | 'notes';
|
|
131
153
|
export type WikiPlanOptions = {
|
|
132
|
-
|
|
154
|
+
source_type?: WikiSourceType;
|
|
133
155
|
scope?: string;
|
|
156
|
+
sources?: string[];
|
|
134
157
|
};
|
|
135
158
|
export type WikiBootstrapOptions = WikiPlanOptions & {
|
|
136
159
|
root?: string;
|
|
137
160
|
overwrite?: boolean;
|
|
161
|
+
ingest_sources?: boolean;
|
|
138
162
|
};
|
|
139
163
|
export type WikiPlanPage = {
|
|
140
164
|
title: string;
|
|
@@ -143,16 +167,37 @@ export type WikiPlanPage = {
|
|
|
143
167
|
tags: string[];
|
|
144
168
|
};
|
|
145
169
|
export type WikiPlanResult = {
|
|
146
|
-
|
|
170
|
+
source_type: WikiSourceType;
|
|
147
171
|
scope: string;
|
|
148
172
|
workflow: string;
|
|
149
173
|
pages: WikiPlanPage[];
|
|
150
|
-
|
|
174
|
+
next_steps: string[];
|
|
175
|
+
};
|
|
176
|
+
export type WikiSourceIngestion = {
|
|
177
|
+
source: string;
|
|
178
|
+
page: string;
|
|
179
|
+
kind: 'file' | 'url' | 'missing';
|
|
151
180
|
};
|
|
152
181
|
export type WikiBootstrapResult = {
|
|
153
182
|
root: string;
|
|
154
183
|
plan: WikiPlanResult;
|
|
155
184
|
created: string[];
|
|
156
185
|
skipped: string[];
|
|
186
|
+
ingested_sources: WikiSourceIngestion[];
|
|
157
187
|
indexed: IndexResult;
|
|
158
188
|
};
|
|
189
|
+
export type WikiEvent = {
|
|
190
|
+
id: number;
|
|
191
|
+
operation: string;
|
|
192
|
+
summary: string;
|
|
193
|
+
target: string | null;
|
|
194
|
+
details: string | null;
|
|
195
|
+
created_at: string;
|
|
196
|
+
};
|
|
197
|
+
export type TopicThreadResult = {
|
|
198
|
+
topic: string;
|
|
199
|
+
reference_count: number;
|
|
200
|
+
page_count: number;
|
|
201
|
+
paths: string[];
|
|
202
|
+
summary: string;
|
|
203
|
+
};
|
package/dist/workflow.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { existsSync, readdirSync } from 'node:fs';
|
|
1
|
+
import { existsSync, readFileSync, readdirSync, statSync, } from 'node:fs';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
|
+
import { log_wiki_event } from './events.js';
|
|
3
4
|
import { index_wiki } from './indexer.js';
|
|
4
5
|
import { serialize_frontmatter } from './markdown.js';
|
|
5
6
|
import { create_page } from './pages.js';
|
|
@@ -103,15 +104,15 @@ const source_pages = {
|
|
|
103
104
|
],
|
|
104
105
|
};
|
|
105
106
|
export function plan_wiki(options = {}) {
|
|
106
|
-
const source_type = options.
|
|
107
|
+
const source_type = options.source_type ?? 'general';
|
|
107
108
|
const scope = options.scope ?? 'user-provided source material';
|
|
108
109
|
const pages = [...common_pages, ...source_pages[source_type]];
|
|
109
110
|
return {
|
|
110
|
-
|
|
111
|
+
source_type: source_type,
|
|
111
112
|
scope,
|
|
112
113
|
workflow: wiki_building_workflow_markdown,
|
|
113
114
|
pages,
|
|
114
|
-
|
|
115
|
+
next_steps: [
|
|
115
116
|
'Inspect the source material and adjust this plan before writing pages.',
|
|
116
117
|
'Create or update the index page first so later pages have a navigation target.',
|
|
117
118
|
'Create focused pages with frontmatter and wikilinks.',
|
|
@@ -124,7 +125,7 @@ export function bootstrap_wiki(options = {}) {
|
|
|
124
125
|
const plan = plan_wiki(options);
|
|
125
126
|
const created = [];
|
|
126
127
|
const skipped = [];
|
|
127
|
-
const detected_sources = detect_source_inventory(root, plan.
|
|
128
|
+
const detected_sources = detect_source_inventory(root, plan.source_type, options.sources, plan.scope);
|
|
128
129
|
for (const page of plan.pages) {
|
|
129
130
|
if (!options.overwrite &&
|
|
130
131
|
existsSync(page_file_path(page.path, root))) {
|
|
@@ -137,12 +138,24 @@ export function bootstrap_wiki(options = {}) {
|
|
|
137
138
|
});
|
|
138
139
|
created.push(page.path);
|
|
139
140
|
}
|
|
141
|
+
const ingested_sources = options.ingest_sources
|
|
142
|
+
? ingest_sources(root, detected_sources, options.overwrite, created, skipped)
|
|
143
|
+
: [];
|
|
144
|
+
const indexed = index_wiki(root);
|
|
145
|
+
log_wiki_event({
|
|
146
|
+
root,
|
|
147
|
+
operation: 'bootstrap_wiki',
|
|
148
|
+
summary: `Bootstrapped ${created.length} pages and ${ingested_sources.length} sources`,
|
|
149
|
+
target: root,
|
|
150
|
+
details: { created, skipped, ingested_sources },
|
|
151
|
+
});
|
|
140
152
|
return {
|
|
141
153
|
root,
|
|
142
154
|
plan,
|
|
143
155
|
created,
|
|
144
156
|
skipped,
|
|
145
|
-
|
|
157
|
+
ingested_sources: ingested_sources,
|
|
158
|
+
indexed,
|
|
146
159
|
};
|
|
147
160
|
}
|
|
148
161
|
function page_template(page, plan, detected_sources) {
|
|
@@ -171,11 +184,14 @@ function index_template(page, plan) {
|
|
|
171
184
|
.join('\n');
|
|
172
185
|
return `${frontmatter}# ${page.title}\n\nWiki for ${plan.scope}.\n\n## Start here\n\n${links}\n\n## Workflow\n\nUse [[workflows/index|Workflows]] to capture repeatable processes, [[sources/index|Sources]] to track inspected material, and [[questions/open-questions|Open questions]] for uncertain claims.\n`;
|
|
173
186
|
}
|
|
174
|
-
function detect_source_inventory(root, source_type) {
|
|
187
|
+
function detect_source_inventory(root, source_type, explicit_sources = [], scope = '') {
|
|
175
188
|
const candidates = ['README.md', 'package.json', 'docs'];
|
|
176
189
|
if (source_type === 'codebase')
|
|
177
190
|
candidates.push('packages');
|
|
178
|
-
const sources = [
|
|
191
|
+
const sources = [
|
|
192
|
+
...explicit_sources,
|
|
193
|
+
...extract_urls(scope),
|
|
194
|
+
];
|
|
179
195
|
for (const candidate of candidates) {
|
|
180
196
|
const candidate_path = join(root, candidate);
|
|
181
197
|
if (!existsSync(candidate_path))
|
|
@@ -192,7 +208,89 @@ function detect_source_inventory(root, source_type) {
|
|
|
192
208
|
}
|
|
193
209
|
sources.push(candidate);
|
|
194
210
|
}
|
|
195
|
-
return sources;
|
|
211
|
+
return [...new Set(sources)];
|
|
212
|
+
}
|
|
213
|
+
function ingest_sources(root, sources, overwrite, created, skipped) {
|
|
214
|
+
const ingested = [];
|
|
215
|
+
for (const source of sources) {
|
|
216
|
+
const source_page = `sources/detected/${source_slug(source)}`;
|
|
217
|
+
if (!overwrite && existsSync(page_file_path(source_page, root))) {
|
|
218
|
+
skipped.push(source_page);
|
|
219
|
+
continue;
|
|
220
|
+
}
|
|
221
|
+
const source_kind = source.startsWith('http')
|
|
222
|
+
? 'url'
|
|
223
|
+
: existsSync(join(root, source))
|
|
224
|
+
? 'file'
|
|
225
|
+
: 'missing';
|
|
226
|
+
create_page(source_page, source_template(root, source, source_kind), {
|
|
227
|
+
root,
|
|
228
|
+
overwrite,
|
|
229
|
+
});
|
|
230
|
+
created.push(source_page);
|
|
231
|
+
ingested.push({
|
|
232
|
+
source,
|
|
233
|
+
page: `${source_page}.md`,
|
|
234
|
+
kind: source_kind,
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
return ingested;
|
|
238
|
+
}
|
|
239
|
+
function source_template(root, source, kind) {
|
|
240
|
+
const frontmatter = serialize_frontmatter({
|
|
241
|
+
title: `Source: ${source}`,
|
|
242
|
+
tags: ['source', kind],
|
|
243
|
+
status: kind === 'missing' ? 'review' : 'draft',
|
|
244
|
+
});
|
|
245
|
+
const source_path = join(root, source);
|
|
246
|
+
const excerpt = kind === 'file' ? source_excerpt(source_path) : '';
|
|
247
|
+
const candidate_facts = kind === 'file' ? source_candidate_facts(source_path) : [];
|
|
248
|
+
const evidence = kind === 'file'
|
|
249
|
+
? `## Extracted excerpt\n\n${excerpt}\n\n`
|
|
250
|
+
: kind === 'url'
|
|
251
|
+
? '## Extraction\n\n- URL ingestion is registered; fetch and summarize this source before promoting facts.\n\n'
|
|
252
|
+
: '## Extraction\n\n- Source was listed but not found locally; confirm the path or URL.\n\n';
|
|
253
|
+
return `${frontmatter}# Source: ${source}\n\nSource kind: ${kind}\n\n${evidence}## Candidate facts\n\n${format_candidate_facts(candidate_facts)}\n\n## Open questions\n\n- What claims from this source should become stable wiki pages?\n- What needs citation, owner confirmation, or freshness review?\n`;
|
|
254
|
+
}
|
|
255
|
+
function source_excerpt(file_path) {
|
|
256
|
+
const stats = statSync(file_path);
|
|
257
|
+
if (stats.isDirectory())
|
|
258
|
+
return '- Directory source; inspect child files before extracting facts.';
|
|
259
|
+
const content = readFileSync(file_path, 'utf-8')
|
|
260
|
+
.slice(0, 2000)
|
|
261
|
+
.trim();
|
|
262
|
+
return content.length > 0
|
|
263
|
+
? `\`\`\`\n${content}\n\`\`\``
|
|
264
|
+
: '- Source file is empty.';
|
|
265
|
+
}
|
|
266
|
+
function source_candidate_facts(file_path) {
|
|
267
|
+
const stats = statSync(file_path);
|
|
268
|
+
if (stats.isDirectory())
|
|
269
|
+
return [];
|
|
270
|
+
const lines = readFileSync(file_path, 'utf-8').split(/\r?\n/u);
|
|
271
|
+
return lines
|
|
272
|
+
.map((line, index) => ({
|
|
273
|
+
line: line.trim(),
|
|
274
|
+
line_number: index + 1,
|
|
275
|
+
}))
|
|
276
|
+
.filter(({ line }) => /\b(should|must|required|requirement|decision|constraint|risk|assumption|fact)\b/iu.test(line))
|
|
277
|
+
.slice(0, 10)
|
|
278
|
+
.map(({ line, line_number }) => `- Candidate from line ${line_number}: ${line}`);
|
|
279
|
+
}
|
|
280
|
+
function format_candidate_facts(candidate_facts) {
|
|
281
|
+
return candidate_facts.length > 0
|
|
282
|
+
? candidate_facts.join('\n')
|
|
283
|
+
: '- Review this source and promote durable claims with add_fact.';
|
|
284
|
+
}
|
|
285
|
+
function source_slug(source) {
|
|
286
|
+
return (source
|
|
287
|
+
.replace(/^https?:\/\//u, '')
|
|
288
|
+
.replace(/[^A-Za-z0-9]+/gu, '-')
|
|
289
|
+
.replace(/^-+|-+$/gu, '')
|
|
290
|
+
.toLowerCase() || 'source');
|
|
291
|
+
}
|
|
292
|
+
function extract_urls(scope) {
|
|
293
|
+
return scope.match(/https?:\/\/[^\s)]+/gu) ?? [];
|
|
196
294
|
}
|
|
197
295
|
function format_source_inventory(sources) {
|
|
198
296
|
if (sources.length === 0) {
|
package/dist/workflow.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../src/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../src/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EACV,YAAY,EACZ,WAAW,EACX,QAAQ,GACR,MAAM,SAAS,CAAC;AACjB,OAAO,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