Files
openclaw/extensions/memory-wiki/openclaw.plugin.json
T
Peter Steinberger da4a656cdb improve: doctor migration checks no longer load every bundled plugin runtime (#120678)
* perf(plugins): declare doctor contract surfaces

* perf(doctor): slim migration import closures

* perf(plugins): narrow doctor declaration record surface and wire owner-test lane

Registry records carry only the doctorContract declaration instead of the whole
parsed manifest, and check:changed now selects the src/plugins-owned declaration
honesty and closure-guard tests for extension module/manifest changes so
cross-lane drift cannot pass PR classification.

* fix(doctor): keep control-plane dist imports require-safe

Keep doctor and channel control-plane chunks off exec-class dependencies, and enforce native require(esm) loading during postbuild.

* chore(plugin-sdk): regenerate API baseline

* chore(plugin-sdk): sync export ordering

* fix(plugins): satisfy doctor contract CI boundaries

* perf(doctor): make qqbot doctor closure dependency-light

qqbot was the last plugin above 5s in doctor state-migration enumeration
(~8s under tsx/jiti). The cost was not the state-key builder (already a
leaf): its doctor closure value-imported the runtime-doctor SDK barrel,
whose plugin-state-store/state-db re-exports pull kysely (~330 modules),
plus security-runtime for one fileExists (~200 modules), all resolved
per-module by jiti during enumeration.

Split the migration-define helpers and light re-exports into a new
private-local plugin-sdk/runtime-doctor-migrations subpath; runtime-doctor
re-exports it so its public surface is byte-identical (API baseline hash
unchanged). qqbot's doctor-contract and state-migrations now import only
the light subpath, swapping fileExists for the equivalent async
legacyStateFileExists already in the closure.

qqbot enumeration: ~8.0s/531 modules -> ~0.25s/18 modules.

* chore(plugin-sdk): drop private-local subpath from API baseline

runtime-doctor-migrations is private-local-only; the baseline tracks public
modules, and the earlier line was generated before the classification.

* fix(plugins): register runtime-doctor-migrations boundary paths

The private-local subpath list feeds the extension package boundary map;
the shared paths config and xai's derived overrides must carry the same
entry or the boundary contract test fails.
2026-08-08 13:29:18 -07:00

242 lines
6.2 KiB
JSON

{
"id": "memory-wiki",
"doctorContract": {
"legacyConfigRules": true,
"normalizeCompatibilityConfig": true,
"stateMigrations": true
},
"activation": {
"onStartup": true
},
"name": "Memory Wiki",
"description": "Persistent wiki compiler and Obsidian-friendly knowledge vault for OpenClaw.",
"catalog": { "featured": true, "order": 30 },
"contracts": {
"tools": ["wiki_apply", "wiki_get", "wiki_lint", "wiki_search", "wiki_status"]
},
"skills": ["./skills"],
"uiHints": {
"vaultMode": {
"label": "Vault Mode",
"help": "Choose isolated, bridge, or unsafe-local mode for the wiki vault."
},
"vault.path": {
"label": "Vault Path",
"help": "Exact vault path in global scope, or the parent directory for per-agent vaults."
},
"vault.scope": {
"label": "Vault Scope",
"help": "Use one global vault or a separate child vault for each agent."
},
"vault.renderMode": {
"label": "Render Mode",
"help": "Render markdown in native OpenClaw format or Obsidian-friendly format."
},
"obsidian.useOfficialCli": {
"label": "Use Obsidian CLI",
"help": "Probe and use the official Obsidian CLI when available."
},
"bridge.enabled": {
"label": "Enable Bridge Mode",
"help": "Read public memory artifacts and events from the active memory plugin in bridge mode."
},
"bridge.readMemoryArtifacts": {
"label": "Read Memory Artifacts",
"help": "Enable bridge reads from the active memory plugin's public artifact export."
},
"unsafeLocal.allowPrivateMemoryCoreAccess": {
"label": "Allow Private Memory Access",
"help": "Experimental same-repo escape hatch for reading memory-core private paths."
},
"context.includeCompiledDigestPrompt": {
"label": "Include Compiled Digest In Prompt",
"help": "Append a compact compiled wiki digest snapshot to memory prompt sections for context engines and legacy prompt assembly."
}
},
"configSchema": {
"type": "object",
"additionalProperties": false,
"allOf": [
{
"not": {
"required": ["vaultMode", "vault"],
"properties": {
"vaultMode": {
"const": "unsafe-local"
},
"vault": {
"required": ["scope"],
"properties": {
"scope": {
"const": "agent"
}
}
}
}
}
},
{
"not": {
"required": ["vault", "obsidian"],
"properties": {
"vault": {
"required": ["scope"],
"properties": {
"scope": {
"const": "agent"
}
}
},
"obsidian": {
"required": ["useOfficialCli"],
"properties": {
"useOfficialCli": {
"const": true
}
}
}
}
}
}
],
"properties": {
"vaultMode": {
"type": "string",
"enum": ["isolated", "bridge", "unsafe-local"]
},
"vault": {
"type": "object",
"additionalProperties": false,
"properties": {
"scope": {
"type": "string",
"enum": ["global", "agent"]
},
"path": {
"type": "string"
},
"renderMode": {
"type": "string",
"enum": ["native", "obsidian"]
}
}
},
"obsidian": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
},
"useOfficialCli": {
"type": "boolean"
},
"vaultName": {
"type": "string"
},
"openAfterWrites": {
"type": "boolean"
}
}
},
"bridge": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
},
"readMemoryArtifacts": {
"type": "boolean"
},
"indexDreamReports": {
"type": "boolean"
},
"indexDailyNotes": {
"type": "boolean"
},
"indexMemoryRoot": {
"type": "boolean"
},
"followMemoryEvents": {
"type": "boolean"
}
}
},
"unsafeLocal": {
"type": "object",
"additionalProperties": false,
"properties": {
"allowPrivateMemoryCoreAccess": {
"type": "boolean"
},
"paths": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"ingest": {
"type": "object",
"additionalProperties": false,
"properties": {
"autoCompile": {
"type": "boolean"
},
"maxConcurrentJobs": {
"type": "number",
"minimum": 1
},
"allowUrlIngest": {
"type": "boolean"
}
}
},
"search": {
"type": "object",
"additionalProperties": false,
"properties": {
"backend": {
"type": "string",
"enum": ["shared", "local"]
},
"corpus": {
"type": "string",
"enum": ["wiki", "memory", "all"]
}
}
},
"context": {
"type": "object",
"additionalProperties": false,
"properties": {
"includeCompiledDigestPrompt": {
"type": "boolean"
}
}
},
"render": {
"type": "object",
"additionalProperties": false,
"properties": {
"preserveHumanBlocks": {
"type": "boolean"
},
"createBacklinks": {
"type": "boolean"
},
"createDashboards": {
"type": "boolean"
}
}
}
}
},
"configContracts": {
"compatibilityMigrationPaths": ["plugins.entries.memory-wiki.config.bridge.readMemoryCore"]
},
"commandAliases": [{ "name": "wiki" }]
}