open-livex-wiki 0.2.0 → 0.2.2

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.
Files changed (42) hide show
  1. package/dist/commands/discover.d.ts +1 -0
  2. package/dist/commands/discover.d.ts.map +1 -1
  3. package/dist/commands/discover.js +2 -0
  4. package/dist/commands/discover.js.map +1 -1
  5. package/dist/commands/ingest-docs/documents.d.ts +24 -0
  6. package/dist/commands/ingest-docs/documents.d.ts.map +1 -0
  7. package/dist/commands/ingest-docs/documents.js +176 -0
  8. package/dist/commands/ingest-docs/documents.js.map +1 -0
  9. package/dist/commands/ingest-docs/manifest.d.ts +41 -0
  10. package/dist/commands/ingest-docs/manifest.d.ts.map +1 -0
  11. package/dist/commands/ingest-docs/manifest.js +143 -0
  12. package/dist/commands/ingest-docs/manifest.js.map +1 -0
  13. package/dist/commands/ingest-docs.d.ts +2 -37
  14. package/dist/commands/ingest-docs.d.ts.map +1 -1
  15. package/dist/commands/ingest-docs.js +7 -309
  16. package/dist/commands/ingest-docs.js.map +1 -1
  17. package/dist/commands/init/skill-templates.d.ts +2 -0
  18. package/dist/commands/init/skill-templates.d.ts.map +1 -0
  19. package/dist/commands/init/skill-templates.js +266 -0
  20. package/dist/commands/init/skill-templates.js.map +1 -0
  21. package/dist/commands/init/templates.d.ts +7 -0
  22. package/dist/commands/init/templates.d.ts.map +1 -0
  23. package/dist/commands/init/templates.js +268 -0
  24. package/dist/commands/init/templates.js.map +1 -0
  25. package/dist/commands/init/workflow-templates.d.ts +2 -0
  26. package/dist/commands/init/workflow-templates.d.ts.map +1 -0
  27. package/dist/commands/init/workflow-templates.js +273 -0
  28. package/dist/commands/init/workflow-templates.js.map +1 -0
  29. package/dist/commands/init.d.ts +1 -5
  30. package/dist/commands/init.d.ts.map +1 -1
  31. package/dist/commands/init.js +2 -791
  32. package/dist/commands/init.js.map +1 -1
  33. package/dist/commands/schema.js +2 -2
  34. package/dist/commands/schema.js.map +1 -1
  35. package/dist/index.d.ts +1 -1
  36. package/dist/index.js +2 -2
  37. package/dist/index.js.map +1 -1
  38. package/dist/templates/starter-bundle.json +3 -3
  39. package/dist/templates/wiki-starter/.agents/skills/wiki-bootstrap/SKILL.md +15 -14
  40. package/dist/templates/wiki-starter/.agents/skills/wiki-consume/SKILL.md +6 -5
  41. package/dist/templates/wiki-starter/AGENTS.md +3 -3
  42. package/package.json +5 -5
@@ -0,0 +1,266 @@
1
+ export function buildSkillTemplates() {
2
+ return {
3
+ ".agents/skills/wiki-consume/SKILL.md": [
4
+ "---",
5
+ "name: wiki-consume",
6
+ "description: Read-only progressive consumption of a LiveX Wiki to locate business domains, scenes, interface chains, and direct dependencies, then verify assertions against live source checkouts before coding.",
7
+ "---",
8
+ "",
9
+ "# Skill: `wiki-consume` (Read-Only Progressive Consumption)",
10
+ "",
11
+ "Use this skill whenever a coding, debugging, QA, or impact-analysis task needs business context from this wiki.",
12
+ "**Never modify wiki files during a consumption session.**",
13
+ "",
14
+ "> **Linking a Business Code / QA Repo**: Run `olw link <projectDir> --wiki <wikiDir> [--repos-dir <dir>]` once to install this skill, `.codex/config.toml`, `.mcp.json`, and bounded `AGENTS.md` instructions into your app repository.",
15
+ "",
16
+ "## Prerequisites & Tool Mapping",
17
+ "",
18
+ "| Step | MCP Tool | CLI Equivalent |",
19
+ "| --- | --- | --- |",
20
+ "| Discover domains | `discover_domains` | `olw discover --json` |",
21
+ '| Discover scenes | `discover_scenes` | `olw discover --domain <domainId> --query "<q>" --json` |',
22
+ "| Read domain / scene(s) | `read_domain`, `read_scene`, `read_scenes` | Read `domains/<domainId>/index.md` or scene `index.md` |",
23
+ "| Expand dependencies | `get_relations` | `olw relations <domainId>/<sceneId> --direction both --depth 1 --json` |",
24
+ "| Check repo freshness | `analyze_diff_impact` | `olw diff-impact --repos-dir <dir> --json` |",
25
+ "",
26
+ "## Query & Token Efficiency Rules",
27
+ "",
28
+ "1. **Query Wiki BEFORE Grepping Code**: Always call `discover_domains` / `discover_scenes` first before running broad `rg` / `grep` scans across repositories.",
29
+ '2. **Use Short 1–3 Keyword Queries**: Pass concise domain, feature, or code-symbol terms to `query` (e.g. `"check-in"`, `"settings_api"`, `"高超音速"`), **never** full natural-language sentences.',
30
+ "3. **Catalog Overview Fast-Path (Stop Early!)**: When the user asks what domains or scenes the wiki covers, `discover_domains()` + `discover_scenes()` ALREADY returns the complete catalog — summarize directly and **DO NOT** call `read_scene` on every scene.",
31
+ '4. **Batch Multi-Scene Reads (`read_scenes`)**: When 2–10 scenes are relevant, call `read_scenes({ sceneIds: [...], detailLevel: "chains" })` to fetch them in a single envelope instead of firing repeated per-scene calls.',
32
+ "",
33
+ "## 5-Step Progressive Flow",
34
+ "",
35
+ "1. **Discover Domains**: Call `discover_domains` (`olw discover --json`) and select 1–2 candidate domains.",
36
+ '2. **Select Scene**: Call `discover_scenes` for candidate domain(s). Read the parent domain (`read_domain`) and ONLY the 1–3 task-relevant scenes via `read_scene` or `read_scenes` (`detailLevel: "chains"` or `chainId` for token efficiency).',
37
+ "3. **Select Core Chain**: Pick only the relevant `###` chain(s) under Section `3. Chain Details` (`3. 链路详解`).",
38
+ '4. **Expand Direct Dependencies**: Call `get_relations` (`direction: "deps"`, `depth: 1`) with a `visited` set.',
39
+ "5. **Verify Against Live Sources & Check Baseline Drift**: Call MCP `analyze_diff_impact` first to check baseline `commitId` drift, changed files, and 1-hop dependents in 1 step, then use the reported absolute `localPath` to verify exact files/symbols (`Assertion -> Live Evidence -> Verdict`; never blind-crawl `..`).",
40
+ "",
41
+ "## Hard Stop Rules",
42
+ "",
43
+ "- Stop expanding once evidence is sufficient; stop on cycle/duplicate or miss and report a **knowledge coverage gap**.",
44
+ "- Strictly read-only: do not modify wiki files during consumption.",
45
+ "- Never treat Section 4 (`Pending Confirmations` / `待确认项`) as verified facts.",
46
+ '- Never infer "no impact" if sources are unreachable or anchors are broken.',
47
+ "",
48
+ ].join("\n"),
49
+ ".agents/skills/wiki-bootstrap/SKILL.md": [
50
+ "---",
51
+ "name: wiki-bootstrap",
52
+ "description: Cold-start production of a new OKF-compliant domain, business scene, or shared infrastructure knowledge entry via CLI scaffolding, two-round cross-repo investigation, forward/reverse tracing, and strict validation.",
53
+ "---",
54
+ "",
55
+ "# Skill: `wiki-bootstrap` (Cold-Start Knowledge Production)",
56
+ "",
57
+ "Use this skill ONLY in an explicit maintenance session to initialize a wiki or author `domain-index/v1`, `scene-index/v1`, and `infrastructure-index/v1` entries.",
58
+ "",
59
+ "## 1. Scaffold via `olw` CLI (Never Hand-Roll Boilerplate or Delete Demo Files Manually)",
60
+ "",
61
+ "```bash",
62
+ "# Initialize a clean empty wiki pre-wired to real local Git checkouts (zero starter demo files):",
63
+ "olw init <wikiDir> --bare --repo <localRepoDir1> --repo <localRepoDir2>",
64
+ "",
65
+ "# Inspect canonical YAML/Markdown templates & JSON Schemas anytime without reading source code:",
66
+ "olw schema",
67
+ "olw schema scene-index/v1",
68
+ "",
69
+ "# Create domains (pass --infra for shared infrastructure domains):",
70
+ 'olw domain new <domainId> --title "<Domain Title>" --aliases "alias1,alias2" --maintainers "@team" --wiki <wikiDir>',
71
+ 'olw domain new business-infrastructure --title "Business Infrastructure" --infra --maintainers "@infra-maintainers" --wiki <wikiDir>',
72
+ "",
73
+ "# Create scenes (auto-pins 40-char HEAD commitId, gitUrl, branch, localPath, and auto-selects infrastructure-index/v1 in infra domains; pass --paths when multiple scenes share a repo):",
74
+ 'olw scene new <domainId>/<sceneId> --title "<Scene Title>" --repo <localRepoDir1> --paths "src/<module>/" --depends-on "business-infrastructure/<sdk>" --wiki <wikiDir>',
75
+ "```",
76
+ "",
77
+ "## 2. Four-Step Investigation & Authoring Workflow",
78
+ "",
79
+ "1. **Pin Source Versions**: `olw scene new --repo <dir>` pins the exact 40-char `HEAD` SHA automatically; never mix findings from unpinned commits.",
80
+ "2. **Two-Round Search**: Round 1 searches business terms, routes, and PRDs (`aliases`); Round 2 pivots from confirmed APIs, classes, config keys, and DB tables.",
81
+ "3. **Top-Down & Bottom-Up Tracing**: Trace L1 Entry -> L2 Orchestration -> L3 Core Module -> L4 Downstream/Config/Experiment/DB, and check reverse callers/fallbacks.",
82
+ "4. **Mandatory Structural Rules** (do NOT inspect `olw` or `node_modules` dist files — complete rules below):",
83
+ " - **Infrastructure Schema Rule**: Every entry under `business-infrastructure` (or any domain in `wiki.config.yaml` `infrastructureDomains`) MUST use `schema: infrastructure-index/v1` (supports `repositories[].paths`, `anchors`, `dependsOn`, and free-form `##` sections).",
84
+ " - **Explicit `###` Chain Subheadings & Clean Pending Marker**: Section `## 3. Chain Details` (`## 3. 链路详解`) in `scene-index/v1` MUST break each call flow into `### Chain N: <Name> (<Entry API/Handler>)` subheadings; Section 4 uses `None` or `无` (with no bullets) once live verification is complete and `confidence` is raised `>= 0.9`.",
85
+ " - **Code Anchors & Repo Lookup**: Populate `anchors:` (`{ repo, file, symbol?, kind? }`) where `symbol` is an identifier (`doCheckin`) or `Owner#member` (`CheckinController#doDailyCheckin`), and `kind` is `interface | class | function | config | table`. Lookup order: `wiki.config.yaml` `localPath` -> `<reposDir>/<org>/<name>` -> `<reposDir>/<name>`.",
86
+ " - **Bilingual `aliases` Hygiene**: Include both business-language terms (e.g. Chinese jargon) and English code terms in `aliases`.",
87
+ " - **Confidence Math**: `confidence` MUST equal `min(confidenceBreakdown)`.",
88
+ " - **Windows PowerShell Pitfall Warning**: Avoid PowerShell heredocs or single-quoted `` `n `` string replacements that corrupt YAML indentation or UTF-8 encoding; scaffold with `olw domain new` / `olw scene new` and edit files with UTF-8 tools (`[System.IO.File]::WriteAllText(..., [System.Text.UTF8Encoding]::new($false))` or Node `fs.writeFileSync`).",
89
+ "",
90
+ "## 3. Canonical Copy-Paste Templates",
91
+ "",
92
+ "### `scene-index/v1` (`domains/<domainId>/<sceneId>/index.md`)",
93
+ "",
94
+ "```markdown",
95
+ "---",
96
+ "schema: scene-index/v1",
97
+ "sceneId: daily-check-in",
98
+ "title: Daily Check-In",
99
+ "aliases:",
100
+ " - check-in",
101
+ " - user-attendance",
102
+ "summary: Handles daily check-in eligibility, streak calculation, and reward dispatch.",
103
+ "maintainers:",
104
+ ' - "@growth-maintainers"',
105
+ "confidence: 0.95",
106
+ "confidenceBreakdown:",
107
+ " architecture: 0.95",
108
+ " chain: 0.95",
109
+ " config: 0.95",
110
+ " experiment: 1.0",
111
+ "dependsOn:",
112
+ " - business-infrastructure/shared-config",
113
+ "repositories:",
114
+ " - repo: example/core-service",
115
+ " gitUrl: https://example.com/example/core-service.git",
116
+ " branch: main",
117
+ ' commitId: "222222222222222222222222222222222222222b"',
118
+ " paths:",
119
+ " - src/checkin/",
120
+ "anchors:",
121
+ " - repo: example/core-service",
122
+ " file: src/checkin/CheckinController.ts",
123
+ " symbol: postDailyCheckin",
124
+ " kind: function",
125
+ "---",
126
+ "",
127
+ "# Daily Check-In",
128
+ "",
129
+ "## 1. Business Background",
130
+ "",
131
+ "Core retention scene rewarding daily active users.",
132
+ "",
133
+ "## 2. Change History",
134
+ "",
135
+ "| Date | Summary | Source Baseline |",
136
+ "| --- | --- | --- |",
137
+ "| 2026-01-01 | Initial bootstrap | `example/core-service@22222222` |",
138
+ "",
139
+ "## 3. Chain Details",
140
+ "",
141
+ "### Chain 1: Submit Check-In (POST /api/v1/checkin)",
142
+ "",
143
+ "- **L1 Entry Interface**: `POST /api/v1/checkin` (`src/checkin/CheckinController.ts#postDailyCheckin`)",
144
+ "- **L2 Service Orchestration**: `CheckinService#execute` validates idempotency and streak state.",
145
+ "- **L3 Core Module**: `RewardGrantEngine#dispatch` issues points.",
146
+ "- **L4 Downstream / Config / Experiment / DB**: Reads `checkin.rules` via `business-infrastructure/shared-config`; writes `user_checkin_log`.",
147
+ "",
148
+ "## 4. Pending Confirmations",
149
+ "",
150
+ "None",
151
+ "```",
152
+ "",
153
+ "### `infrastructure-index/v1` (`domains/business-infrastructure/<sceneId>/index.md`)",
154
+ "",
155
+ "```markdown",
156
+ "---",
157
+ "schema: infrastructure-index/v1",
158
+ "sceneId: shared-config",
159
+ "title: Shared Config SDK",
160
+ "aliases:",
161
+ " - config-sdk",
162
+ "summary: Typed runtime configuration client with local snapshot fallback.",
163
+ "maintainers:",
164
+ ' - "@infra-maintainers"',
165
+ "confidence: 0.95",
166
+ "dependsOn: []",
167
+ "repositories:",
168
+ " - repo: example/shared-sdk",
169
+ " gitUrl: https://example.com/example/shared-sdk.git",
170
+ " branch: main",
171
+ ' commitId: "111111111111111111111111111111111111111a"',
172
+ " paths:",
173
+ " - src/config/",
174
+ "anchors:",
175
+ " - repo: example/shared-sdk",
176
+ " file: src/config/SharedConfig.ts",
177
+ " symbol: getData",
178
+ " kind: function",
179
+ "---",
180
+ "",
181
+ "# Shared Config SDK",
182
+ "",
183
+ "## Integration Guide",
184
+ "",
185
+ "Call `SharedConfig.initBiz(bizCode)` on startup and `SharedConfig.getData(key, fallback)` on reads.",
186
+ "",
187
+ "## Shared Constraints",
188
+ "",
189
+ "1. Always pass a deterministic fallback value.",
190
+ "```",
191
+ "",
192
+ "## 4. Mandatory Validation Before Opening PR",
193
+ "",
194
+ "```bash",
195
+ "olw validate --wiki <wikiDir> --strict --check-anchors",
196
+ "olw relations <domainId>/<sceneId> --wiki <wikiDir> --direction both --depth 1 --json",
197
+ "```",
198
+ "",
199
+ ].join("\n"),
200
+ ".agents/skills/wiki-incremental-update/SKILL.md": [
201
+ "---",
202
+ "name: wiki-incremental-update",
203
+ "description: Perform diff-impact-driven incremental wiki updates by comparing pinned scene commitIds against target repository HEADs, re-verifying impacted chains and 1-hop dependents, and submitting a gated PR.",
204
+ "---",
205
+ "",
206
+ "# Skill: `wiki-incremental-update` (Diff-Impact Self-Update)",
207
+ "",
208
+ "Use this skill during daily syncs or post-release maintenance to keep scenes synchronized with source repository changes.",
209
+ "",
210
+ "## 1. Detect Impacted Scenes Deterministically",
211
+ "",
212
+ "```bash",
213
+ "olw diff-impact --repos-dir <reposDir> --json",
214
+ "```",
215
+ "",
216
+ "Inspect `direct`, `dependent` (1-hop), and `unverified_source` scenes. Never assume zero impact when a source is unreachable.",
217
+ "",
218
+ "## 2. Investigate & Re-Verify Per Scene",
219
+ "",
220
+ "1. Inspect `git diff <pinnedCommitId>..<headCommitId> -- <paths>` in each impacted repository.",
221
+ "2. Update changed `###` chains, `anchors`, `2. Change History`, `repositories[].commitId`, and `confidenceBreakdown` (`confidence = min(...)`).",
222
+ "3. Isolate any unverified runtime config or ambiguous change under `4. Pending Confirmations` (`4. 待确认项`).",
223
+ "",
224
+ "## 3. Quality Gate & Release Check",
225
+ "",
226
+ "```bash",
227
+ "olw validate --strict --check-anchors --repos-dir <reposDir>",
228
+ "olw gate --base origin/main --head HEAD --json",
229
+ "```",
230
+ "",
231
+ ].join("\n"),
232
+ ".agents/skills/wiki-full-review/SKILL.md": [
233
+ "---",
234
+ "name: wiki-full-review",
235
+ "description: Conduct a periodic full source re-verification and coverage audit across wiki scenes, checking anchors, hidden entry points, runtime config drift, and alias/dependency hygiene.",
236
+ "---",
237
+ "",
238
+ "# Skill: `wiki-full-review` (Periodic Full Self-Review)",
239
+ "",
240
+ "Run this skill weekly or before major releases to catch undocumented entry points, config drift, and stale anchors even on scenes with no recent commits.",
241
+ "",
242
+ "## 1. Baseline Structural & Anchor Audit",
243
+ "",
244
+ "```bash",
245
+ "olw validate --strict --check-anchors --repos-dir <reposDir> --json",
246
+ "olw diff-impact --repos-dir <reposDir> --json",
247
+ "```",
248
+ "",
249
+ "## 2. Two-Direction Deep Audit Per Target Scene",
250
+ "",
251
+ "1. **Inside-Out**: Re-verify every recorded L1–L4 call hop, config key, experiment flag, DB table, `dependsOn` target, and sibling detail doc.",
252
+ "2. **Outside-In**: Re-enumerate HTTP/RPC controllers, MQ listeners, scheduled tasks, and feature flags in watched repos to catch undocumented chains.",
253
+ "3. **Calibrate Discoverability & Confidence**: Update aliases/summaries, recompute `confidence = min(confidenceBreakdown)`, and resolve closed `Pending Confirmations`.",
254
+ "",
255
+ "## 3. Produce Candidate Revision & Audit Summary",
256
+ "",
257
+ "```bash",
258
+ "olw validate --strict --check-anchors --repos-dir <reposDir>",
259
+ "olw gate --base origin/main --head HEAD --json",
260
+ "olw graph build --out .olw-graph",
261
+ "```",
262
+ "",
263
+ ].join("\n"),
264
+ };
265
+ }
266
+ //# sourceMappingURL=skill-templates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-templates.js","sourceRoot":"","sources":["../../../src/commands/init/skill-templates.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,mBAAmB;IACjC,OAAO;QACL,sCAAsC,EAAE;YACtC,KAAK;YACL,oBAAoB;YACpB,mNAAmN;YACnN,KAAK;YACL,EAAE;YACF,6DAA6D;YAC7D,EAAE;YACF,iHAAiH;YACjH,2DAA2D;YAC3D,EAAE;YACF,yOAAyO;YACzO,EAAE;YACF,iCAAiC;YACjC,EAAE;YACF,sCAAsC;YACtC,qBAAqB;YACrB,mEAAmE;YACnE,mGAAmG;YACnG,kIAAkI;YAClI,oHAAoH;YACpH,+FAA+F;YAC/F,EAAE;YACF,mCAAmC;YACnC,EAAE;YACF,gKAAgK;YAChK,iMAAiM;YACjM,mQAAmQ;YACnQ,8NAA8N;YAC9N,EAAE;YACF,4BAA4B;YAC5B,EAAE;YACF,4GAA4G;YAC5G,kPAAkP;YAClP,+GAA+G;YAC/G,iHAAiH;YACjH,gUAAgU;YAChU,EAAE;YACF,oBAAoB;YACpB,EAAE;YACF,wHAAwH;YACxH,oEAAoE;YACpE,+EAA+E;YAC/E,6EAA6E;YAC7E,EAAE;SACH,CAAC,IAAI,CAAC,IAAI,CAAC;QAEZ,wCAAwC,EAAE;YACxC,KAAK;YACL,sBAAsB;YACtB,qOAAqO;YACrO,KAAK;YACL,EAAE;YACF,6DAA6D;YAC7D,EAAE;YACF,mKAAmK;YACnK,EAAE;YACF,0FAA0F;YAC1F,EAAE;YACF,SAAS;YACT,kGAAkG;YAClG,yEAAyE;YACzE,EAAE;YACF,iGAAiG;YACjG,YAAY;YACZ,2BAA2B;YAC3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JAAgJ;YAChJ,uJAAuJ;YACvJ,yKAAyK;YACzK,EAAE;YACF,kDAAkD;YAClD,EAAE;YACF,SAAS;YACT,8DAA8D;YAC9D,gDAAgD;YAChD,kCAAkC;YAClC,KAAK;YACL,EAAE;SACH,CAAC,IAAI,CAAC,IAAI,CAAC;KACb,CAAC;AACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { WikiRepoConfig } from "@open-livex-wiki/core";
2
+ export interface BuildBuiltinStarterOptions {
3
+ bare?: boolean;
4
+ repositories?: WikiRepoConfig[];
5
+ }
6
+ export declare function buildBuiltinStarterFiles(wikiName: string, options?: BuildBuiltinStarterOptions): Record<string, string>;
7
+ //# sourceMappingURL=templates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/commands/init/templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAK5D,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,cAAc,EAAE,CAAC;CACjC;AAED,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,0BAA+B,GACvC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAiRxB"}
@@ -0,0 +1,268 @@
1
+ import { serializeWikiConfigYaml } from "../../repo-utils.js";
2
+ import { buildSkillTemplates } from "./skill-templates.js";
3
+ import { buildWorkflowTemplates } from "./workflow-templates.js";
4
+ export function buildBuiltinStarterFiles(wikiName, options = {}) {
5
+ const bare = Boolean(options.bare);
6
+ const defaultStarterRepos = [
7
+ {
8
+ repo: "example/core-service",
9
+ gitUrl: "https://example.com/example/core-service.git",
10
+ branch: "main",
11
+ },
12
+ {
13
+ repo: "example/shared-sdk",
14
+ gitUrl: "https://example.com/example/shared-sdk.git",
15
+ branch: "main",
16
+ },
17
+ ];
18
+ const configuredRepos = options.repositories ?? (bare ? [] : defaultStarterRepos);
19
+ const baseFiles = {
20
+ "wiki.config.yaml": serializeWikiConfigYaml({
21
+ version: 1,
22
+ name: wikiName,
23
+ description: "Git-native, OKF-compatible Agent Knowledge Base",
24
+ domainsDir: "domains",
25
+ infrastructureDomains: ["business-infrastructure"],
26
+ repositories: configuredRepos,
27
+ governance: {
28
+ autoMergeMinConfidence: 0.9,
29
+ requireZeroPendingForAutoMerge: true,
30
+ protectedSchemas: ["domain-index/v1", "infrastructure-index/v1"],
31
+ },
32
+ }),
33
+ "AGENTS.md": [
34
+ `# ${wikiName} — Agent Knowledge Base Entry Contract`,
35
+ "",
36
+ "> **Consumption sessions against this wiki repository are strictly read-only.**",
37
+ "",
38
+ "## 5-Step Progressive Consumption Protocol",
39
+ "",
40
+ "1. **Discover Domains**: Start with `olw discover` (or MCP `discover_domains`) using short 1–3 keyword queries (never full sentences).",
41
+ "2. **Select Scene (or Stop Early on Catalog Questions)**: Expand candidate domain(s) via `discover_scenes`. If answering a high-level catalog/overview question, summarize from `discover_domains` + `discover_scenes` directly without bulk-reading every scene. Otherwise call `read_domain` and `read_scene` (or batch `read_scenes`) ONLY on the 1–3 relevant scenes.",
42
+ "3. **Select Core Chain**: Focus on the relevant `###` chain(s) under Section 3 (`Chain Details` / `链路详解`).",
43
+ "4. **Expand Direct Dependencies**: Run `olw relations <domain>/<scene> --direction deps --depth 1` (or MCP `get_relations`) while maintaining a `visited` set.",
44
+ "5. **Verify Against Live Sources**: Verify assertions against the reported `localPath` source repository checkouts and output `Assertion -> Live Evidence -> Verdict`.",
45
+ "",
46
+ "## Hard Stop Rules",
47
+ "",
48
+ "- Stop expanding once evidence is sufficient.",
49
+ "- Stop on cycle/duplicate or miss and report the knowledge gap.",
50
+ "- **NEVER** treat items under `4. Pending Confirmations` (`待确认项`) as verified facts.",
51
+ '- **NEVER** infer "no impact" when a source repository is unreachable or an anchor is broken.',
52
+ "",
53
+ "## Maintenance & Governance",
54
+ "",
55
+ "See `MAINTENANCE.md`, `olw schema`, and `.agents/skills/` (`wiki-consume`, `wiki-bootstrap`, `wiki-incremental-update`, `wiki-full-review`).",
56
+ "",
57
+ ].join("\n"),
58
+ "MAINTENANCE.md": [
59
+ "# MAINTENANCE.md — Knowledge Lifecycle, Production Rubric & Git Governance",
60
+ "",
61
+ "This document defines how knowledge in this wiki is **produced**, **updated**, **reviewed**, and **released** via Git and CI.",
62
+ "",
63
+ "## 1. Authoring Quick Commands",
64
+ "",
65
+ "- Empty wiki initialization: `olw init <dir> --bare --repo <localRepoDir>`",
66
+ '- Create domain: `olw domain new <domainId> --title "..." [--infra]`',
67
+ '- Create scene / shared infra: `olw scene new <domainId>/<sceneId> --title "..." --repo <localRepoDir>`',
68
+ "- View canonical YAML/Markdown contracts & JSON Schemas: `olw schema [domain|scene|infrastructure|wiki-config]`",
69
+ "- Link a business code/QA repo to this wiki: `olw link <projectDir> --wiki <wikiDir>`",
70
+ "",
71
+ "## 2. Directory & OKF Schema Contracts",
72
+ "",
73
+ "All knowledge lives under `domains/` using POSIX forward-slash IDs (`<domainId>/<sceneId>`):",
74
+ "",
75
+ "- `domains/<domainId>/index.md` — `schema: domain-index/v1`",
76
+ " - Required section: `Domain Identity & Boundaries` (or `域身份与边界`).",
77
+ "- `domains/<domainId>/<sceneId>/index.md` — `schema: scene-index/v1`",
78
+ " - Required 4-part structure:",
79
+ " 1. `1. Business Background` (`1. 业务背景`)",
80
+ " 2. `2. Change History` (`2. 变更历史`)",
81
+ " 3. `3. Chain Details` (`3. 链路详解`) — MUST include `### <Chain Name>` subheadings for each interface chain!",
82
+ " 4. `4. Pending Confirmations` (`4. 待确认项` — use `None` or `无` when clean)",
83
+ " - Confidence rubric: when `confidenceBreakdown` (`architecture`, `chain`, `config`, `experiment`) is specified, `confidence` MUST equal `min(confidenceBreakdown)`. Scenes with `confidence < 0.9` require `maintainer_review`.",
84
+ " - Every `repositories[]` entry MUST pin an immutable Git SHA (`commitId`, 7–40 hex chars) and high-confidence scenes should attach `anchors[]`.",
85
+ "- `domains/business-infrastructure/<sceneId>/index.md` — `schema: infrastructure-index/v1`",
86
+ " - Every scene inside any domain listed in `wiki.config.yaml` `infrastructureDomains` MUST use `schema: infrastructure-index/v1`. **Never auto-merged.**",
87
+ "",
88
+ "## 3. Cold-Start 4-Step Production Protocol (`wiki-bootstrap`)",
89
+ "",
90
+ "1. **Pin Source Commit SHAs & Runtime Environment**: Record immutable 40-char Git SHAs (`git rev-parse HEAD`), branch, and target environment before reading code.",
91
+ "2. **Two-Pass Cross-Terminology Search**: Pass 1 searches business terms/PRDs/routes (`aliases`); Pass 2 pivots from confirmed APIs, classes/methods, config keys, and DB tables across related repos.",
92
+ "3. **Forward + Reverse Tracing**: Trace L1 Entry -> L2 Orchestration -> L3 Core Module -> L4 Downstream/Config/Experiment/DB, and reverse-check callers, strategy registries, and compensation paths.",
93
+ "4. **Compile L1–L4 `###` Chains & Isolate Uncertainty**: Attach `anchors[]` for deterministic symbol checks and quarantine all unverified items strictly inside `4. Pending Confirmations`.",
94
+ "",
95
+ "## 4. Incremental Self-Update & Periodic Full Self-Review",
96
+ "",
97
+ "- **Incremental Self-Update** (`wiki-incremental-update`): Run `olw diff-impact --repos-dir <path> --json` (or set `OLW_REPOS_DIR`) to detect drifted `commitId` pins, broken anchors, and 1-hop dependents. Never infer zero impact when a repository is unreachable.",
98
+ "- **Periodic Full Self-Review** (`wiki-full-review`): Run `olw validate --strict --check-anchors --repos-dir <path> --json` and audit inside-out & outside-in.",
99
+ "- **`repositories[].localPath` Resolution**: Relative paths in `wiki.config.yaml` resolve from the directory containing `wiki.config.yaml` using POSIX `/` slashes; `--repos-dir <dir>` or `OLW_REPOS_DIR` acts as the fallback.",
100
+ "",
101
+ "## 5. Quality Gate & Tiered Git Governance",
102
+ "",
103
+ "Every PR runs `olw validate --strict` and `olw gate --base <base> --head <head> --strict --json` (evaluating governance thresholds from `baseRef:wiki.config.yaml`):",
104
+ "",
105
+ "- **`blocked`**: Any schema error, folder-ID mismatch, missing required section, dangling `dependsOn`, or strict warning.",
106
+ "- **`maintainer_review`**: Any file deletion, sibling detail/other file edit, governance config/workflow/skill/CODEOWNERS edit, `domain-index/v1` edit, `infrastructure-index/v1` edit, scene with `confidence < 0.9`, or active item in `4. Pending Confirmations`.",
107
+ "- **`auto_merge`**: Only `scene-index/v1` additions/updates, all touched scenes have `confidence >= 0.9`, zero unresolved pending confirmations, and all structural/graph checks pass.",
108
+ "",
109
+ ].join("\n"),
110
+ CODEOWNERS: [
111
+ "# LiveX Wiki CODEOWNERS — Tiered Governance & Ownership Mapping",
112
+ "/AGENTS.md @wiki-maintainers",
113
+ "/MAINTENANCE.md @wiki-maintainers",
114
+ "/wiki.config.yaml @wiki-maintainers",
115
+ "/CODEOWNERS @wiki-maintainers",
116
+ "/.github/** @wiki-maintainers",
117
+ "/.agents/** @wiki-maintainers",
118
+ "/domains/*/index.md @wiki-maintainers",
119
+ "/domains/*/*/index.md @wiki-maintainers",
120
+ "/domains/business-infrastructure/** @infra-maintainers",
121
+ "",
122
+ ].join("\n"),
123
+ ...buildSkillTemplates(),
124
+ ...buildWorkflowTemplates(),
125
+ };
126
+ if (bare) {
127
+ return baseFiles;
128
+ }
129
+ return {
130
+ ...baseFiles,
131
+ "domains/core-business/index.md": [
132
+ "---",
133
+ "schema: domain-index/v1",
134
+ "domainId: core-business",
135
+ "title: Core Business Domain",
136
+ "aliases:",
137
+ " - core-biz",
138
+ " - starter-domain",
139
+ "summary: Primary business domain containing starter workflows and scene documentation.",
140
+ "maintainers:",
141
+ " - '@wiki-maintainers'",
142
+ "---",
143
+ "",
144
+ "# Core Business Domain",
145
+ "",
146
+ "## Domain Identity & Boundaries",
147
+ "",
148
+ "- **In Scope**: Core end-user business workflows, onboarding scenes, and domain orchestration.",
149
+ "- **Out of Scope**: Cross-domain runtime SDKs and shared configuration primitives (owned by `business-infrastructure`).",
150
+ "",
151
+ ].join("\n"),
152
+ "domains/core-business/getting-started/index.md": [
153
+ "---",
154
+ "schema: scene-index/v1",
155
+ "sceneId: getting-started",
156
+ "title: Getting Started Feature",
157
+ "aliases:",
158
+ " - sample-scene",
159
+ " - onboarding-flow",
160
+ "summary: Minimal starter business scene illustrating the 4-part OKF structure, L1-L4 interface chain, and direct shared dependency.",
161
+ "maintainers:",
162
+ " - '@wiki-maintainers'",
163
+ "confidence: 0.95",
164
+ "confidenceBreakdown:",
165
+ " architecture: 0.95",
166
+ " chain: 0.95",
167
+ " config: 0.95",
168
+ " experiment: 1.0",
169
+ "dependsOn:",
170
+ " - business-infrastructure/shared-config",
171
+ "repositories:",
172
+ " - repo: example/core-service",
173
+ " gitUrl: https://example.com/example/core-service.git",
174
+ " branch: main",
175
+ " commitId: 222222222222222222222222222222222222222b",
176
+ " paths:",
177
+ " - src/onboarding/",
178
+ "anchors:",
179
+ " - repo: example/core-service",
180
+ " file: src/onboarding/OnboardingController.ts",
181
+ " symbol: getOnboardingStatus",
182
+ " kind: function",
183
+ "---",
184
+ "",
185
+ "# Getting Started Feature",
186
+ "",
187
+ "## 1. Business Background",
188
+ "",
189
+ "Provides the starter business workflow demonstrating how domain scenes link to shared infrastructure.",
190
+ "",
191
+ "## 2. Change History",
192
+ "",
193
+ "| Date | Summary | Source Baseline |",
194
+ "| --- | --- | --- |",
195
+ "| 2026-01-01 | Initial starter scene scaffolded via `olw init` | `example/core-service@22222222` |",
196
+ "",
197
+ "## 3. Chain Details",
198
+ "",
199
+ "### Chain 1: Query Onboarding Status (/api/v1/onboarding/status)",
200
+ "",
201
+ "- **L1 Entry Interface**: `GET /api/v1/onboarding/status` (`src/onboarding/OnboardingController.ts#getOnboardingStatus`)",
202
+ "- **L2 Service Orchestration**: `OnboardingService#loadUserProgress`",
203
+ "- **L3 Core Module**: `StepEvaluator#computeNextStep`",
204
+ "- **L4 Downstream / Config / Experiment / DB**: Loads runtime flags via `business-infrastructure/shared-config`; reads `onboarding_state`.",
205
+ "",
206
+ "## 4. Pending Confirmations",
207
+ "",
208
+ "None",
209
+ "",
210
+ ].join("\n"),
211
+ "domains/business-infrastructure/index.md": [
212
+ "---",
213
+ "schema: domain-index/v1",
214
+ "domainId: business-infrastructure",
215
+ "title: Business Infrastructure",
216
+ "aliases:",
217
+ " - shared-infra",
218
+ " - platform-sdk",
219
+ "summary: Reusable cross-domain infrastructure, SDKs, and shared runtime capabilities.",
220
+ "maintainers:",
221
+ " - '@platform-owners'",
222
+ "---",
223
+ "",
224
+ "# Business Infrastructure",
225
+ "",
226
+ "## Domain Identity & Boundaries",
227
+ "",
228
+ "- **In Scope**: Cross-domain SDKs, shared configuration loaders, and platform runtime components.",
229
+ "- **Governance**: Changes under this domain require explicit maintainer approval and are never auto-merged.",
230
+ "",
231
+ ].join("\n"),
232
+ "domains/business-infrastructure/shared-config/index.md": [
233
+ "---",
234
+ "schema: infrastructure-index/v1",
235
+ "sceneId: shared-config",
236
+ "title: Shared Config SDK",
237
+ "aliases:",
238
+ " - config-sdk",
239
+ " - runtime-config",
240
+ "summary: Shared runtime configuration and feature-flag resolution library consumed by business scenes.",
241
+ "maintainers:",
242
+ " - '@infra-maintainers'",
243
+ "confidence: 0.95",
244
+ "dependsOn: []",
245
+ "repositories:",
246
+ " - repo: example/shared-sdk",
247
+ " gitUrl: https://example.com/example/shared-sdk.git",
248
+ " branch: main",
249
+ " commitId: 111111111111111111111111111111111111111a",
250
+ " paths:",
251
+ " - src/config/",
252
+ "---",
253
+ "",
254
+ "# Shared Config SDK",
255
+ "",
256
+ "## Integration Guide",
257
+ "",
258
+ "Business scenes resolve typed runtime feature flags and namespace defaults via `SharedConfig.getData(key, fallback)`.",
259
+ "",
260
+ "## Shared Constraints",
261
+ "",
262
+ "- All namespace keys must declare explicit fallback defaults.",
263
+ "- Schema updates require backward-compatible rollout across dependent scenes.",
264
+ "",
265
+ ].join("\n"),
266
+ };
267
+ }
268
+ //# sourceMappingURL=templates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates.js","sourceRoot":"","sources":["../../../src/commands/init/templates.ts"],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C,gCAAgC;YAChC,UAAU;YACV,kBAAkB;YAClB,kBAAkB;YAClB,uFAAuF;YACvF,cAAc;YACd,wBAAwB;YACxB,KAAK;YACL,EAAE;YACF,2BAA2B;YAC3B,EAAE;YACF,iCAAiC;YACjC,EAAE;YACF,mGAAmG;YACnG,6GAA6G;YAC7G,EAAE;SACH,CAAC,IAAI,CAAC,IAAI,CAAC;QAEZ,wDAAwD,EAAE;YACxD,KAAK;YACL,iCAAiC;YACjC,wBAAwB;YACxB,0BAA0B;YAC1B,UAAU;YACV,gBAAgB;YAChB,oBAAoB;YACpB,wGAAwG;YACxG,cAAc;YACd,0BAA0B;YAC1B,kBAAkB;YAClB,eAAe;YACf,eAAe;YACf,8BAA8B;YAC9B,wDAAwD;YACxD,kBAAkB;YAClB,wDAAwD;YACxD,YAAY;YACZ,qBAAqB;YACrB,KAAK;YACL,EAAE;YACF,qBAAqB;YACrB,EAAE;YACF,sBAAsB;YACtB,EAAE;YACF,uHAAuH;YACvH,EAAE;YACF,uBAAuB;YACvB,EAAE;YACF,+DAA+D;YAC/D,+EAA+E;YAC/E,EAAE;SACH,CAAC,IAAI,CAAC,IAAI,CAAC;KACb,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function buildWorkflowTemplates(): Record<string, string>;
2
+ //# sourceMappingURL=workflow-templates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-templates.d.ts","sourceRoot":"","sources":["../../../src/commands/init/workflow-templates.ts"],"names":[],"mappings":"AAAA,wBAAgB,sBAAsB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAiR/D"}