mirror of
https://github.com/Heretek-AI/openclaw.git
synced 2026-07-19 21:53:30 -04:00
a9ae1a6778
Matrix Protocol: - docker-compose.matrix.yml: Dendrite homeserver + PostgreSQL + Nginx TLS - src/channels/plugins/matrix-channel.ts: OpenClaw plugin implementation - docs/matrix-triad-setup.md: Setup guide with auth scheme (@tm1-4:triad.local) MCP Server Integration: - docs/mcp-triad-integration.md: SearXNG, Playwright, GitHub MCP configs - docs/mcp-curiosity-mapping.md: Gap-to-capability mapping Node Sync Architecture: - src/services/node-sync-service.ts: WebSocket peer sync + presence detection - src/services/node-sync-service.test.ts: Unit tests - docs/node-sync-architecture.md: Architecture docs Triad Resilience: - scripts/triad-corruption-check.mjs: SQLite + log + config + git integrity - docs/triad-resilience.md: Recovery procedures - .secure/deployment-logs/README.md: Schema v2 - skills/triad-heartbeat/SKILL.md: Corruption check integration NPM Publish Workflow: - scripts/npm-publish.mjs: version, changelog, validate, publish, rollback - .github/workflows/npm-publish.yml: GitHub Actions with provenance - docs/npm-publish-guide.md: Complete documentation All deliverables tested in Docker before production.
45 lines
1.4 KiB
JavaScript
Executable File
45 lines
1.4 KiB
JavaScript
Executable File
#!/usr/bin/env node
|
|
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
import { writeConfigDocBaselineStatefile } from "../src/config/doc-baseline.js";
|
|
|
|
const args = new Set(process.argv.slice(2));
|
|
const checkOnly = args.has("--check");
|
|
|
|
if (checkOnly && args.has("--write")) {
|
|
console.error("Use either --check or --write, not both.");
|
|
process.exit(1);
|
|
}
|
|
|
|
const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
|
const result = await writeConfigDocBaselineStatefile({
|
|
repoRoot,
|
|
check: checkOnly,
|
|
});
|
|
|
|
if (checkOnly) {
|
|
if (!result.changed) {
|
|
console.log(
|
|
`OK ${path.relative(repoRoot, result.jsonPath)} ${path.relative(repoRoot, result.statefilePath)}`,
|
|
);
|
|
process.exit(0);
|
|
}
|
|
console.error(
|
|
[
|
|
"Config baseline drift detected.",
|
|
`Expected current: ${path.relative(repoRoot, result.jsonPath)}`,
|
|
`Expected current: ${path.relative(repoRoot, result.statefilePath)}`,
|
|
"If this config-surface change is intentional, run `pnpm config:docs:gen` and commit the updated baseline files.",
|
|
"If not intentional, treat this as docs drift or a possible breaking config change and fix the schema/help changes first.",
|
|
].join("\n"),
|
|
);
|
|
process.exit(1);
|
|
}
|
|
|
|
console.log(
|
|
[
|
|
`Wrote ${path.relative(repoRoot, result.jsonPath)}`,
|
|
`Wrote ${path.relative(repoRoot, result.statefilePath)}`,
|
|
].join("\n"),
|
|
);
|