@hy-sde-org/dsh-openwiki
v0.2.0-rc.2
Published
The OpenWiki 0.4.3 deterministic engine (MIT) as an in-process library for DeepSeek Harness: resumable page-job lifecycle with durable .run.json/.page-manifest.json/.last-update.json, Grounded Claims store/session/evidence resolver with .claims/ sidecars,
Maintainers
Readme
@hy-sde-org/dsh-openwiki
Standalone port of the openwiki
0.4.3 deterministic engine core (MIT-licensed; attribution preserved in
the module headers): the model-free repository wiki machinery that upstream
pairs with DeepAgents. This port removed the DeepAgents/CLI coupling — the
engine runs in-process behind a minimal WikiFs filesystem seam, so no
external openwiki CLI is needed. Repositories written by either engine are
interoperable because the on-disk formats are identical.
Surface
Pure TypeScript library (only zod + yaml deps), organized as src/*:
- Lifecycle — resumable repository-page-job orchestration
(
begin/submit_plan/next_page/submit_page/finish) with a durable.run.jsoncheckpoint, git source fingerprinting, update no-op detection, and a.page-manifest.jsoncorrectness ledger (generation/*,agent/utils.ts). - Claims — Grounded Claims core (add/confirm/update/retract mutations),
the code-brain store/session/runtime with
.claims/sidecar persistence and verification, and the repository evidence resolver that mapsrepo://path#L20-L48resources to opaquerepo-lines-v1:sha256:versions with relocation anchors (claims/*). - OKF — OKF v0.2 front matter validation/repair, generated provenance,
index-labels, recursive concept-index synchronization, claim-sources, and
claims-verification projection (
okf/*). - Validation — Mermaid fence validation (jsdom/mermaid optional, graceful
heuristic fallback) and wiki-internal-link validation with broken-link
stamping (
mermaid/*,agent/wiki-link-validator.ts). - Setup + fs —
.openwikiignoreload, managed AGENTS.md/CLAUDE.md snippets +INSTRUCTIONS.mdwiki goal, recoverable init wiki replacement, and the standaloneWikiFs/createNodeWikiFsseam (agent/*,fs/*). - Integration — the transport-neutral
HostSessionManager+ zod protocol (openwiki_begin…openwiki_finish) and Git repository-root resolution (integrations/core/*).
Usage
The engine is normally consumed by @hy-sde-org/dsh-tool-openwiki, which
registers the five lifecycle tools. Direct use (e.g. an automated pipeline)
goes through HostSessionManager:
import { HostSessionManager, resolveRepositoryRoot } from '@hy-sde-org/dsh-openwiki'
const manager = HostSessionManager.create({ host: 'pipeline' })
const { view } = await manager.begin({ root: '/repo', mode: 'init' })
// ... submitPlan / nextPage / submitPage / finish over the same managerWikiFs
The engine touches the repository only through WikiFs (preset methods
ls / readRaw / write / edit / delete over virtual /openwiki/...
paths with root containment). createNodeWikiFs({ root }) provides the Node
implementation; custom backends can provide their own.
License
MIT — see the repository LICENSE. Ported from openwiki
0.4.3, Copyright (c) 2026 langchain-ai (MIT), attribution preserved per file.
