open-livex-wiki 0.2.1 → 0.2.3

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 (47) hide show
  1. package/dist/commands/coverage.d.ts +1 -0
  2. package/dist/commands/coverage.d.ts.map +1 -1
  3. package/dist/commands/coverage.js +5 -1
  4. package/dist/commands/coverage.js.map +1 -1
  5. package/dist/commands/discover.d.ts +2 -0
  6. package/dist/commands/discover.d.ts.map +1 -1
  7. package/dist/commands/discover.js +7 -0
  8. package/dist/commands/discover.js.map +1 -1
  9. package/dist/commands/ingest-docs/documents.d.ts +25 -0
  10. package/dist/commands/ingest-docs/documents.d.ts.map +1 -0
  11. package/dist/commands/ingest-docs/documents.js +183 -0
  12. package/dist/commands/ingest-docs/documents.js.map +1 -0
  13. package/dist/commands/ingest-docs/manifest.d.ts +41 -0
  14. package/dist/commands/ingest-docs/manifest.d.ts.map +1 -0
  15. package/dist/commands/ingest-docs/manifest.js +143 -0
  16. package/dist/commands/ingest-docs/manifest.js.map +1 -0
  17. package/dist/commands/ingest-docs.d.ts +6 -37
  18. package/dist/commands/ingest-docs.d.ts.map +1 -1
  19. package/dist/commands/ingest-docs.js +81 -312
  20. package/dist/commands/ingest-docs.js.map +1 -1
  21. package/dist/commands/init/skill-templates.d.ts +2 -0
  22. package/dist/commands/init/skill-templates.d.ts.map +1 -0
  23. package/dist/commands/init/skill-templates.js +266 -0
  24. package/dist/commands/init/skill-templates.js.map +1 -0
  25. package/dist/commands/init/templates.d.ts +7 -0
  26. package/dist/commands/init/templates.d.ts.map +1 -0
  27. package/dist/commands/init/templates.js +268 -0
  28. package/dist/commands/init/templates.js.map +1 -0
  29. package/dist/commands/init/workflow-templates.d.ts +2 -0
  30. package/dist/commands/init/workflow-templates.d.ts.map +1 -0
  31. package/dist/commands/init/workflow-templates.js +273 -0
  32. package/dist/commands/init/workflow-templates.js.map +1 -0
  33. package/dist/commands/init.d.ts +1 -5
  34. package/dist/commands/init.d.ts.map +1 -1
  35. package/dist/commands/init.js +2 -791
  36. package/dist/commands/init.js.map +1 -1
  37. package/dist/commands/schema.js +2 -2
  38. package/dist/commands/schema.js.map +1 -1
  39. package/dist/index.d.ts +1 -1
  40. package/dist/index.d.ts.map +1 -1
  41. package/dist/index.js +7 -2
  42. package/dist/index.js.map +1 -1
  43. package/dist/templates/starter-bundle.json +3 -3
  44. package/dist/templates/wiki-starter/.agents/skills/wiki-bootstrap/SKILL.md +15 -14
  45. package/dist/templates/wiki-starter/.agents/skills/wiki-consume/SKILL.md +2 -2
  46. package/dist/templates/wiki-starter/AGENTS.md +3 -3
  47. package/package.json +5 -5
@@ -14,11 +14,11 @@ Read this contract before searching, reading, or proposing any change.
14
14
 
15
15
  Do NOT bulk-load `domains/**` or start with broad codebase `rg` scans. Query this wiki FIRST via `@open-livex-wiki/mcp` or `olw` CLI (`--json`):
16
16
 
17
- 1. **Discover Domains & Check Coverage**: Call `discover_domains` (`olw discover --json`) using concise **1–3 keyword queries** (never full sentences). For multi-claim, multi-report, or visual/figure-dependent audits, decompose into **one focused sub-query per required claim/entity** in `queries: [...]` (e.g. `["FFG-62 Program Performance", "FFG-62 design commonality", "SSBN-826 Program Performance"]`) and run `evaluate_route_coverage` (`olw coverage --json`) to verify target-×-section modality sufficiency; **escalate immediately** whenever `decision === "escalate_to_agent"`.
17
+ 1. **Discover Domains & Check Coverage**: Call `discover_domains` (`olw discover --json`) using concise **1–3 keyword queries** (never full sentences). For multi-claim, multi-report, or visual/figure-dependent audits, decompose into **one focused sub-query per required claim/entity** in `queries: [...]` (e.g. `["AX-12 throughput", "AX-12 power draw", "BX-24 throughput"]`) and run `evaluate_route_coverage` (`olw coverage --json`) to verify target-×-section modality sufficiency; **escalate immediately** whenever `decision === "escalate_to_agent"`.
18
18
  2. **Select Scene & Sub-Scene Slice (or Stop Early on Catalog Questions)**: Call `discover_scenes` (`olw discover --domain <domainId> --json`) for candidate domain(s) and inspect `matchedChains`, `matchedDetails`, and `matchedAnchors`. If answering a high-level catalog/overview question, summarize directly from `discover_domains` + `discover_scenes` and **DO NOT** bulk-call `read_scene` on every scene. Otherwise read the domain boundary (`read_domain`) and ONLY the 1–3 relevant scenes or sibling detail docs via `read_scene` (`chainId` / `detailName`) or batch `read_scenes`.
19
19
  3. **Select Core Chain**: From Section `3. Chain Details` (`3. 链路详解`), pick only the `###` interface chain(s) relevant to the current requirement (L1 Interface -> L2 Orchestration -> L3 Core Module -> L4 Downstream/Config/Experiment/DB).
20
20
  4. **Expand Direct Dependencies**: Query `get_relations` (`olw relations <domainId>/<sceneId> --direction deps --depth 1 --json`) for declared `dependsOn` targets. Track a `visited` set and expand only dependencies needed for the task.
21
- 5. **Verify Against Live Sources**: Treat wiki entries as a **navigation map**, not a substitute for current code or source documents. Inspect the reported `localPath` for pinned Git `repositories` (`commitId`) or content-addressed corpus `sources` (`sha256`), preserve citation handles (`[FIG-1]`, `[SEC-1]`), canonical `assetId`s, `scopeNote` qualifiers, and **verbatim source numbers + units** alongside any unit conversion (e.g. `$126,495 million (1,264.95 亿美元)`; `1,000 million = 1 billion = 10 亿`), and emit an explicit `Assertion -> Live Evidence -> Verdict` table before writing code or final answers.
21
+ 5. **Verify Against Live Sources**: Treat wiki entries as a **navigation map**, not a substitute for current code or source documents. Inspect the reported `localPath` for pinned Git `repositories` (`commitId`) or content-addressed corpus `sources` (`sha256`), preserve citation handles (`[FIG-1]`, `[SEC-1]`), canonical `assetId`s, `scopeNote` qualifiers, and **verbatim source numbers + units** alongside any unit conversion (e.g. `$250 million (2.5 亿美元)`; `1,000 million = 1 billion = 10 亿`), and emit an explicit `Assertion -> Live Evidence -> Verdict` table before writing code or final answers.
22
22
 
23
23
  ## 3. Hard Stop & Hybrid Authoring Rules
24
24
 
@@ -27,7 +27,7 @@ Do NOT bulk-load `domains/**` or start with broad codebase `rg` scans. Query thi
27
27
  - **Stop on cycle, duplicate, or miss**: Never revisit a scene already in `visited`. If no domain or scene matches, stop and report a **knowledge coverage gap** instead of hallucinating.
28
28
  - **Never trust Pending Confirmations**: Items under Section `4. Pending Confirmations` (`4. 待确认项`) are explicitly unverified. Never treat them as implementation facts; verify them against live sources or escalate to scene maintainers.
29
29
  - **Never infer "no impact" on unreachable sources**: If a referenced repository checkout or corpus source is missing or an anchor is broken, report the verification block explicitly.
30
- - **Hybrid Source Pinning & Anchor Hygiene (Maintenance Sessions)**: Pin Git code checkouts with `repositories[].commitId` and non-Git document/dataset corpora with `sources[].sha256` + `wiki.config.yaml` `sources[].localPath` (scaffold via `olw ingest-docs`). Align document `anchors` (`kind: "document" | "section" | "figure" | "dataset"`) to native TOC/bookmark `pageRange`s (avoid 1-page-per-scene folders), include `sectionTitle`, `assetId`, `handle`, and `scopeNote`, and record designator punctuation variants (e.g. `FFG-62` / `FFG 62`) in `aliases`.
30
+ - **Hybrid Source Pinning & Anchor Hygiene (Maintenance Sessions)**: Pin Git code checkouts with `repositories[].commitId` and non-Git document/dataset corpora with `sources[].sha256` + `wiki.config.yaml` `sources[].localPath` (scaffold via `olw ingest-docs`). Align document `anchors` (`kind: "document" | "section" | "figure" | "dataset"`) to native TOC/bookmark `pageRange`s (avoid 1-page-per-scene folders), include `sectionTitle`, asset `caption` when available, `assetId`, `handle`, and `scopeNote`, and record designator punctuation variants (e.g. `AX-12` / `AX 12`) in `aliases`.
31
31
 
32
32
  ## 4. Available Agent Skills
33
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-livex-wiki",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "CLI toolkit (`olw`) for OKF-compatible, Git-native Agent Knowledge Bases.",
5
5
  "author": "AndersonBY",
6
6
  "license": "MIT",
@@ -32,10 +32,10 @@
32
32
  "dist"
33
33
  ],
34
34
  "dependencies": {
35
- "@open-livex-wiki/core": "0.2.1",
36
- "@open-livex-wiki/eval": "0.2.1",
37
- "@open-livex-wiki/graph-ui": "0.2.1",
38
- "@open-livex-wiki/mcp": "0.2.1",
35
+ "@open-livex-wiki/core": "0.2.3",
36
+ "@open-livex-wiki/eval": "0.2.3",
37
+ "@open-livex-wiki/graph-ui": "0.2.3",
38
+ "@open-livex-wiki/mcp": "0.2.3",
39
39
  "commander": "^13.1.0",
40
40
  "picocolors": "^1.1.1"
41
41
  },