The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.
JavaScript aiai-agentsclaudeclaude-codeclicodexdeveloper-toolslazylazycodexoh-my-openagentomoopenaiorchestrationtypescript
chore: sync Codex marketplace v5.1.47
YeonGyu-Kimc5e8181bd049
diff --git a/plugins/omo/.codex-plugin/plugin.json b/plugins/omo/.codex-plugin/plugin.jsonindex 53c968a2..3e2f7be9 100644--- a/plugins/omo/.codex-plugin/plugin.json+++ b/plugins/omo/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "omo",- "version": "5.1.46",+ "version": "5.1.47","description": "One Codex plugin namespace for Yeongyu's local Codex components.","author": {"name": "Yeongyu Kim",diff --git a/plugins/omo/components/bootstrap/dist/cli.js b/plugins/omo/components/bootstrap/dist/cli.jsindex bbe939f9..9ef7652f 100755--- a/plugins/omo/components/bootstrap/dist/cli.js+++ b/plugins/omo/components/bootstrap/dist/cli.js@@ -10820,8 +10820,7 @@ function windowsNodeDiscoveryLines() {' for /f "tokens=* delims= " %%N in ("!OMO_NODE_BINARY!") do set "OMO_NODE_BINARY=%%N"',` if "!OMO_NODE_BINARY:~0,1!"=="'" set "OMO_NODE_BINARY=!OMO_NODE_BINARY:~1!"`,` if "!OMO_NODE_BINARY:~-1!"=="'" set "OMO_NODE_BINARY=!OMO_NODE_BINARY:~0,-1!"`,- ' if "!OMO_NODE_BINARY:~0,1!"=="^"" set "OMO_NODE_BINARY=!OMO_NODE_BINARY:~1!"',- ' if "!OMO_NODE_BINARY:~-1!"=="^"" set "OMO_NODE_BINARY=!OMO_NODE_BINARY:~0,-1!"',+ ' set "OMO_NODE_BINARY=!OMO_NODE_BINARY:"=!"',' if defined OMO_NODE_BINARY if not exist "!OMO_NODE_BINARY!" set "OMO_NODE_BINARY="',")",'if not defined OMO_NODE_BINARY where node >nul 2>nul && set "OMO_NODE_BINARY=node"'diff --git a/plugins/omo/components/bootstrap/hooks/hooks.json b/plugins/omo/components/bootstrap/hooks/hooks.jsonindex cd104c25..844ded97 100644--- a/plugins/omo/components/bootstrap/hooks/hooks.json+++ b/plugins/omo/components/bootstrap/hooks/hooks.json@@ -8,7 +8,7 @@"command": "node \"${PLUGIN_ROOT}/components/bootstrap/dist/cli.js\" hook session-start","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\bootstrap.ps1\"","timeout": 30,- "statusMessage": "(OmO 5.1.46) Checking Bootstrap Provisioning"+ "statusMessage": "(OmO 5.1.47) Checking Bootstrap Provisioning"}]}diff --git a/plugins/omo/components/bootstrap/package.json b/plugins/omo/components/bootstrap/package.jsonindex 2f880735..2f9c21c0 100644--- a/plugins/omo/components/bootstrap/package.json+++ b/plugins/omo/components/bootstrap/package.json@@ -1,6 +1,6 @@{"name": "@sisyphuslabs/codex-bootstrap",- "version": "5.1.46",+ "version": "5.1.47","description": "Codex SessionStart bootstrap component that provisions LazyCodex runtime dependencies from a detached worker.","type": "module","private": true,diff --git a/plugins/omo/components/comment-checker/hooks/hooks.json b/plugins/omo/components/comment-checker/hooks/hooks.jsonindex ac5e146c..e8ebc73e 100644--- a/plugins/omo/components/comment-checker/hooks/hooks.json+++ b/plugins/omo/components/comment-checker/hooks/hooks.json@@ -8,7 +8,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-tool-use","timeout": 30,- "statusMessage": "(OmO 5.1.46) Checking Comments"+ "statusMessage": "(OmO 5.1.47) Checking Comments"}]}diff --git a/plugins/omo/components/comment-checker/package.json b/plugins/omo/components/comment-checker/package.jsonindex 590ab436..be582291 100644--- a/plugins/omo/components/comment-checker/package.json+++ b/plugins/omo/components/comment-checker/package.json@@ -1,6 +1,6 @@{"name": "@code-yeongyu/codex-comment-checker",- "version": "5.1.46",+ "version": "5.1.47","description": "Codex plugin that runs comment-checker after edit-like PostToolUse hooks.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/components/git-bash/hooks/hooks.json b/plugins/omo/components/git-bash/hooks/hooks.jsonindex 6c9e22f3..72755495 100644--- a/plugins/omo/components/git-bash/hooks/hooks.json+++ b/plugins/omo/components/git-bash/hooks/hooks.json@@ -8,7 +8,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook pre-tool-use","timeout": 5,- "statusMessage": "(OmO 5.1.46) Recommending Git Bash MCP"+ "statusMessage": "(OmO 5.1.47) Recommending Git Bash MCP"}]}@@ -20,7 +20,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-compact","timeout": 5,- "statusMessage": "(OmO 5.1.46) Resetting Git Bash MCP Reminder"+ "statusMessage": "(OmO 5.1.47) Resetting Git Bash MCP Reminder"}]}diff --git a/plugins/omo/components/git-bash/package.json b/plugins/omo/components/git-bash/package.jsonindex b036f82f..141d963c 100644--- a/plugins/omo/components/git-bash/package.json+++ b/plugins/omo/components/git-bash/package.json@@ -1,6 +1,6 @@{"name": "@sisyphuslabs/codex-git-bash-hook",- "version": "5.1.46",+ "version": "5.1.47","description": "Codex hook component that reminds Windows sessions to prefer the OMO git_bash MCP.","type": "module","private": true,diff --git a/plugins/omo/components/lazycodex-executor-verify/hooks/hooks.json b/plugins/omo/components/lazycodex-executor-verify/hooks/hooks.jsonindex 971f76fa..f3aee413 100644--- a/plugins/omo/components/lazycodex-executor-verify/hooks/hooks.json+++ b/plugins/omo/components/lazycodex-executor-verify/hooks/hooks.json@@ -8,7 +8,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/lazycodex-executor-verify/dist/cli.js\" hook subagent-stop","timeout": 10,- "statusMessage": "(OmO 5.1.46) Verifying LazyCodex Executor Evidence"+ "statusMessage": "(OmO 5.1.47) Verifying LazyCodex Executor Evidence"}]}diff --git a/plugins/omo/components/lazycodex-executor-verify/package.json b/plugins/omo/components/lazycodex-executor-verify/package.jsonindex 46194f99..bd65b7bb 100644--- a/plugins/omo/components/lazycodex-executor-verify/package.json+++ b/plugins/omo/components/lazycodex-executor-verify/package.json@@ -1,6 +1,6 @@{"name": "@code-yeongyu/codex-lazycodex-executor-verify",- "version": "5.1.46",+ "version": "5.1.47","description": "Codex SubagentStop evidence verifier for LazyCodex executor completions.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/components/lsp/dist/.omo-runtime-manifest.json b/plugins/omo/components/lsp/dist/.omo-runtime-manifest.jsonindex 6a424ef1..6ed29bc3 100644--- a/plugins/omo/components/lsp/dist/.omo-runtime-manifest.json+++ b/plugins/omo/components/lsp/dist/.omo-runtime-manifest.json@@ -1,7 +1,7 @@{"schemaVersion": 1,- "version": "5.1.46",- "inputDigest": "sha256:a4cbfb8ffa442b654814e1d86e70434c1d19d06f473eccc93bf7bbc7485336e7",+ "version": "5.1.47",+ "inputDigest": "sha256:6cabf483e0820d8ebb42944ea3df97bedb1fcc9362a46f2659007ffa48225e10","outputs": [{"path": "cli.d.ts",diff --git a/plugins/omo/components/lsp/hooks/hooks.json b/plugins/omo/components/lsp/hooks/hooks.jsonindex 155bf95a..ee01cd38 100644--- a/plugins/omo/components/lsp/hooks/hooks.json+++ b/plugins/omo/components/lsp/hooks/hooks.json@@ -8,7 +8,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-tool-use","timeout": 60,- "statusMessage": "(OmO 5.1.46) Checking LSP Diagnostics"+ "statusMessage": "(OmO 5.1.47) Checking LSP Diagnostics"}]}@@ -21,7 +21,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-compact","timeout": 5,- "statusMessage": "(OmO 5.1.46) Resetting LSP Diagnostics Cache"+ "statusMessage": "(OmO 5.1.47) Resetting LSP Diagnostics Cache"}]}diff --git a/plugins/omo/components/lsp/package.json b/plugins/omo/components/lsp/package.jsonindex b8a3b2c5..7dfae669 100644--- a/plugins/omo/components/lsp/package.json+++ b/plugins/omo/components/lsp/package.json@@ -1,6 +1,6 @@{"name": "@code-yeongyu/codex-lsp",- "version": "5.1.46",+ "version": "5.1.47","description": "Codex plugin that exposes Language Server Protocol tools and post-edit diagnostics.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/components/rules/hooks/hooks.json b/plugins/omo/components/rules/hooks/hooks.jsonindex 1cc77abb..e52d58ac 100644--- a/plugins/omo/components/rules/hooks/hooks.json+++ b/plugins/omo/components/rules/hooks/hooks.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook session-start","timeout": 10,- "statusMessage": "(OmO 5.1.46) Loading Project Rules"+ "statusMessage": "(OmO 5.1.47) Loading Project Rules"}]}@@ -19,7 +19,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook user-prompt-submit","timeout": 10,- "statusMessage": "(OmO 5.1.46) Loading Project Rules"+ "statusMessage": "(OmO 5.1.47) Loading Project Rules"}]}@@ -32,7 +32,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-tool-use","timeout": 10,- "statusMessage": "(OmO 5.1.46) Matching Project Rules"+ "statusMessage": "(OmO 5.1.47) Matching Project Rules"}]}@@ -45,7 +45,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-compact","timeout": 10,- "statusMessage": "(OmO 5.1.46) Resetting Project Rule Cache"+ "statusMessage": "(OmO 5.1.47) Resetting Project Rule Cache"}]}diff --git a/plugins/omo/components/rules/package.json b/plugins/omo/components/rules/package.jsonindex e622df9c..6d6dceda 100644--- a/plugins/omo/components/rules/package.json+++ b/plugins/omo/components/rules/package.json@@ -1,6 +1,6 @@{"name": "@code-yeongyu/codex-rules",- "version": "5.1.46",+ "version": "5.1.47","description": "Codex plugin that injects project rule files into model context through lifecycle hooks.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/components/teammode/hooks/hooks.json b/plugins/omo/components/teammode/hooks/hooks.jsonindex 468789a5..d43cb77b 100644--- a/plugins/omo/components/teammode/hooks/hooks.json+++ b/plugins/omo/components/teammode/hooks/hooks.json@@ -8,7 +8,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-tool-use","timeout": 10,- "statusMessage": "(OmO 5.1.46) Checking Thread Title Hygiene"+ "statusMessage": "(OmO 5.1.47) Checking Thread Title Hygiene"}]}diff --git a/plugins/omo/components/teammode/package.json b/plugins/omo/components/teammode/package.jsonindex 482fc459..c631051b 100644--- a/plugins/omo/components/teammode/package.json+++ b/plugins/omo/components/teammode/package.json@@ -1,6 +1,6 @@{"name": "@sisyphuslabs/codex-teammode",- "version": "5.1.46",+ "version": "5.1.47","description": "Codex team-mode hook component that keeps background thread titles descriptive after create_thread.","type": "module","private": true,diff --git a/plugins/omo/components/telemetry/hooks/hooks.json b/plugins/omo/components/telemetry/hooks/hooks.jsonindex ad6d88b6..aec0d2f4 100644--- a/plugins/omo/components/telemetry/hooks/hooks.json+++ b/plugins/omo/components/telemetry/hooks/hooks.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook session-start","timeout": 5,- "statusMessage": "(OmO 5.1.46) Recording Session Telemetry"+ "statusMessage": "(OmO 5.1.47) Recording Session Telemetry"}]}diff --git a/plugins/omo/components/telemetry/package.json b/plugins/omo/components/telemetry/package.jsonindex e8cabf2e..1badf7bd 100644--- a/plugins/omo/components/telemetry/package.json+++ b/plugins/omo/components/telemetry/package.json@@ -1,6 +1,6 @@{"name": "@code-yeongyu/codex-telemetry",- "version": "5.1.46",+ "version": "5.1.47","description": "Codex plugin component that emits omo-codex anonymous daily-active telemetry on SessionStart.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/components/ultrawork/hooks/hooks.json b/plugins/omo/components/ultrawork/hooks/hooks.jsonindex 50d1ccdf..77900e53 100644--- a/plugins/omo/components/ultrawork/hooks/hooks.json+++ b/plugins/omo/components/ultrawork/hooks/hooks.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook user-prompt-submit","timeout": 5,- "statusMessage": "(OmO 5.1.46) Checking Ultrawork Trigger"+ "statusMessage": "(OmO 5.1.47) Checking Ultrawork Trigger"}]}diff --git a/plugins/omo/components/ultrawork/package.json b/plugins/omo/components/ultrawork/package.jsonindex 35ff32f5..3ad769ba 100644--- a/plugins/omo/components/ultrawork/package.json+++ b/plugins/omo/components/ultrawork/package.json@@ -1,6 +1,6 @@{"name": "@code-yeongyu/codex-ultrawork",- "version": "5.1.46",+ "version": "5.1.47","description": "Codex plugin that injects the ultrawork orchestration directive and ships LazyCodex planning, review, QA, and gate agent roles.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/components/ulw-execute-continuation/hooks/hooks.json b/plugins/omo/components/ulw-execute-continuation/hooks/hooks.jsonindex 0182d653..f6b40f68 100644--- a/plugins/omo/components/ulw-execute-continuation/hooks/hooks.json+++ b/plugins/omo/components/ulw-execute-continuation/hooks/hooks.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/ulw-execute-continuation/dist/cli.js\" hook stop","timeout": 10,- "statusMessage": "(OmO 5.1.46) Checking Ulw-Execute Continuation"+ "statusMessage": "(OmO 5.1.47) Checking Ulw-Execute Continuation"}]}diff --git a/plugins/omo/components/ulw-execute-continuation/package.json b/plugins/omo/components/ulw-execute-continuation/package.jsonindex fc3c6960..56d6125b 100644--- a/plugins/omo/components/ulw-execute-continuation/package.json+++ b/plugins/omo/components/ulw-execute-continuation/package.json@@ -1,6 +1,6 @@{"name": "@code-yeongyu/codex-ulw-execute-continuation",- "version": "5.1.46",+ "version": "5.1.47","description": "Codex Stop hook continuation injector for omo-codex ulw-execute plans.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/components/ulw-loop/hooks/hooks.json b/plugins/omo/components/ulw-loop/hooks/hooks.jsonindex a7b47bc8..30edb020 100644--- a/plugins/omo/components/ulw-loop/hooks/hooks.json+++ b/plugins/omo/components/ulw-loop/hooks/hooks.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook user-prompt-submit --with-ultrawork","timeout": 10,- "statusMessage": "(OmO 5.1.46) Checking Ulw-Loop Steering"+ "statusMessage": "(OmO 5.1.47) Checking Ulw-Loop Steering"}]}@@ -20,7 +20,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-tool-use-spawn","timeout": 5,- "statusMessage": "(OmO 5.1.46) Recording Spawn Admission"+ "statusMessage": "(OmO 5.1.47) Recording Spawn Admission"}]}@@ -33,7 +33,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook pre-tool-use","timeout": 5,- "statusMessage": "(OmO 5.1.46) Enforcing Unlimited Ulw-Loop Budget"+ "statusMessage": "(OmO 5.1.47) Enforcing Unlimited Ulw-Loop Budget"}]},@@ -44,7 +44,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook pre-tool-use-spawn","timeout": 5,- "statusMessage": "(OmO 5.1.46) Guarding Ulw-Loop Spawns"+ "statusMessage": "(OmO 5.1.47) Guarding Ulw-Loop Spawns"}]}@@ -56,7 +56,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook stop","timeout": 10,- "statusMessage": "(OmO 5.1.46) Checking Ulw-Loop Resume"+ "statusMessage": "(OmO 5.1.47) Checking Ulw-Loop Resume"}]}diff --git a/plugins/omo/components/ulw-loop/package.json b/plugins/omo/components/ulw-loop/package.jsonindex 91e0170b..2190b6d8 100644--- a/plugins/omo/components/ulw-loop/package.json+++ b/plugins/omo/components/ulw-loop/package.json@@ -1,6 +1,6 @@{"name": "@code-yeongyu/codex-ulw-loop",- "version": "5.1.46",+ "version": "5.1.47","description": "Codex plugin: durable repo-native multi-goal orchestration with embedded success criteria and observable evidence audit.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/dist/cli-node/index.js b/plugins/omo/dist/cli-node/index.jsindex 96821d22..f01608f7 100755--- a/plugins/omo/dist/cli-node/index.js+++ b/plugins/omo/dist/cli-node/index.js@@ -2133,7 +2133,7 @@ var package_default;var init_package = __esm(() => {package_default = {name: "oh-my-opencode",- version: "5.1.46",+ version: "5.1.47",description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",main: "./dist/index.js",types: "dist/index.d.ts",@@ -2379,18 +2379,18 @@ var init_package = __esm(() => {typescript: "^7.0.2"},optionalDependencies: {- "oh-my-opencode-darwin-arm64": "5.1.46",- "oh-my-opencode-darwin-x64": "5.1.46",- "oh-my-opencode-darwin-x64-baseline": "5.1.46",- "oh-my-opencode-linux-arm64": "5.1.46",- "oh-my-opencode-linux-arm64-musl": "5.1.46",- "oh-my-opencode-linux-x64": "5.1.46",- "oh-my-opencode-linux-x64-baseline": "5.1.46",- "oh-my-opencode-linux-x64-musl": "5.1.46",- "oh-my-opencode-linux-x64-musl-baseline": "5.1.46",- "oh-my-opencode-windows-arm64": "5.1.46",- "oh-my-opencode-windows-x64": "5.1.46",- "oh-my-opencode-windows-x64-baseline": "5.1.46"+ "oh-my-opencode-darwin-arm64": "5.1.47",+ "oh-my-opencode-darwin-x64": "5.1.47",+ "oh-my-opencode-darwin-x64-baseline": "5.1.47",+ "oh-my-opencode-linux-arm64": "5.1.47",+ "oh-my-opencode-linux-arm64-musl": "5.1.47",+ "oh-my-opencode-linux-x64": "5.1.47",+ "oh-my-opencode-linux-x64-baseline": "5.1.47",+ "oh-my-opencode-linux-x64-musl": "5.1.47",+ "oh-my-opencode-linux-x64-musl-baseline": "5.1.47",+ "oh-my-opencode-windows-arm64": "5.1.47",+ "oh-my-opencode-windows-x64": "5.1.47",+ "oh-my-opencode-windows-x64-baseline": "5.1.47"},overrides: {hono: "^4.13.8",@@ -7164,7 +7164,7 @@ function resolveStdio(options) {return [options.stdin ?? "ignore", options.stdout ?? "pipe", options.stderr ?? "inherit"];}function createBunSpawnOptions(options) {- return { ...options, windowsHide: true };+ return { ...options, env: options.env ?? process.env, windowsHide: true };}function createNodeSpawnOptions(options, platform = process.platform) {const nodeOptions = {@@ -10185,6 +10185,10 @@ function transformModelForProviderUsingAnthropicBehavior(provider, model) {return "k3";if (model === "kimi-k3-256k")return "k3-256k";+ if (model === "kimi-k3.1-pro")+ return "k3.1-pro";+ if (model === "kimi-k3.1-pro-highspeed")+ return "k3.1-pro-highspeed";}return model;}@@ -92460,7 +92464,7 @@ var package_default2;var init_package2 = __esm(() => {package_default2 = {name: "@oh-my-opencode/omo-codex",- version: "5.1.46",+ version: "5.1.47",type: "module",private: true,description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",@@ -94033,8 +94037,7 @@ function windowsNodeDiscoveryLines() {' for /f "tokens=* delims= " %%N in ("!OMO_NODE_BINARY!") do set "OMO_NODE_BINARY=%%N"',` if "!OMO_NODE_BINARY:~0,1!"=="'" set "OMO_NODE_BINARY=!OMO_NODE_BINARY:~1!"`,` if "!OMO_NODE_BINARY:~-1!"=="'" set "OMO_NODE_BINARY=!OMO_NODE_BINARY:~0,-1!"`,- ' if "!OMO_NODE_BINARY:~0,1!"=="^"" set "OMO_NODE_BINARY=!OMO_NODE_BINARY:~1!"',- ' if "!OMO_NODE_BINARY:~-1!"=="^"" set "OMO_NODE_BINARY=!OMO_NODE_BINARY:~0,-1!"',+ ' set "OMO_NODE_BINARY=!OMO_NODE_BINARY:"=!"',' if defined OMO_NODE_BINARY if not exist "!OMO_NODE_BINARY!" set "OMO_NODE_BINARY="',")",'if not defined OMO_NODE_BINARY where node >nul 2>nul && set "OMO_NODE_BINARY=node"'@@ -112144,6 +112147,8 @@ class CredentialStoreError extends SignInError {class KeychainLockedError extends CredentialStoreError {}+class InvalidCredentialState extends SignInError {+}var LOCKED = /-25308|errSecInteractionNotAllowed|interaction is not allowed|locked collection/i;var UNLOCKED_REUSE_MS = 30000;var fallbackNoticed = false;@@ -112159,12 +112164,15 @@ function credentialId(api) {return createHash10("sha256").update(serviceOrigin(api)).digest("hex");}function createCredentialStore(api, secrets = typeof Bun === "undefined" ? null : Bun.secrets, platform = process.platform, lockProbe = probeSecretServiceLock, notice = stderrNoticeOncePerProcess) {+ return createSealedStore(api, "omo-cli", credentialSchema, secrets, platform, lockProbe, notice);+}+function createSealedStore(api, namespace, schema, secrets = typeof Bun === "undefined" ? null : Bun.secrets, platform = process.platform, lockProbe = probeSecretServiceLock, notice = stderrNoticeOncePerProcess) {if (!secrets)throw new SignInError("OmO sign-in needs Bun 1.4 or newer with OS credential storage. No file fallback is available.");const platformName = platform === "darwin" ? "macOS Keychain" : platform === "linux" ? "Linux Secret Service (libsecret and an unlocked keyring)" : platform === "win32" ? "Windows Credential Manager" : null;if (platformName === null)throw new SignInError("This platform has no supported OS credential store.");- const key = { service: "omo-cli", name: credentialId(api) };+ const key = { service: namespace, name: credentialId(api) };const unavailable = (error) => isLocked(error) ? new KeychainLockedError(`${platformName} is locked. Unlock it, then try again. Credentials are never saved to a file.`) : new CredentialStoreError(`Cannot access ${platformName}. Unlock or enable the OS credential store and try again. Credentials are never saved to a file.`);let unlockedUntil = 0;let noticed = false;@@ -112195,15 +112203,15 @@ function createCredentialStore(api, secrets = typeof Bun === "undefined" ? nullif (value === null)return null;try {- return credentialSchema.parse(JSON.parse(value));+ return schema.parse(JSON.parse(value));} catch {- throw new SignInError("Stored sign-in data is invalid. Run omo logout, then omo login.");+ throw new InvalidCredentialState("Stored sign-in data is invalid. Run omo logout, then omo login.");}},async write(value) {await assertUsable();try {- await secrets.set({ ...key, value: JSON.stringify(credentialSchema.parse(value)) });+ await secrets.set({ ...key, value: JSON.stringify(schema.parse(value)) });} catch (error) {throw unavailable(error);}diff --git a/plugins/omo/dist/cli/index.js b/plugins/omo/dist/cli/index.jsindex 19af7029..1a67b121 100755--- a/plugins/omo/dist/cli/index.js+++ b/plugins/omo/dist/cli/index.js@@ -2132,7 +2132,7 @@ var package_default;var init_package = __esm(() => {package_default = {name: "oh-my-opencode",- version: "5.1.46",+ version: "5.1.47",description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",main: "./dist/index.js",types: "dist/index.d.ts",@@ -2378,18 +2378,18 @@ var init_package = __esm(() => {typescript: "^7.0.2"},optionalDependencies: {- "oh-my-opencode-darwin-arm64": "5.1.46",- "oh-my-opencode-darwin-x64": "5.1.46",- "oh-my-opencode-darwin-x64-baseline": "5.1.46",- "oh-my-opencode-linux-arm64": "5.1.46",- "oh-my-opencode-linux-arm64-musl": "5.1.46",- "oh-my-opencode-linux-x64": "5.1.46",- "oh-my-opencode-linux-x64-baseline": "5.1.46",- "oh-my-opencode-linux-x64-musl": "5.1.46",- "oh-my-opencode-linux-x64-musl-baseline": "5.1.46",- "oh-my-opencode-windows-arm64": "5.1.46",- "oh-my-opencode-windows-x64": "5.1.46",- "oh-my-opencode-windows-x64-baseline": "5.1.46"+ "oh-my-opencode-darwin-arm64": "5.1.47",+ "oh-my-opencode-darwin-x64": "5.1.47",+ "oh-my-opencode-darwin-x64-baseline": "5.1.47",+ "oh-my-opencode-linux-arm64": "5.1.47",+ "oh-my-opencode-linux-arm64-musl": "5.1.47",+ "oh-my-opencode-linux-x64": "5.1.47",+ "oh-my-opencode-linux-x64-baseline": "5.1.47",+ "oh-my-opencode-linux-x64-musl": "5.1.47",+ "oh-my-opencode-linux-x64-musl-baseline": "5.1.47",+ "oh-my-opencode-windows-arm64": "5.1.47",+ "oh-my-opencode-windows-x64": "5.1.47",+ "oh-my-opencode-windows-x64-baseline": "5.1.47"},overrides: {hono: "^4.13.8",@@ -7163,7 +7163,7 @@ function resolveStdio(options) {return [options.stdin ?? "ignore", options.stdout ?? "pipe", options.stderr ?? "inherit"];}function createBunSpawnOptions(options) {- return { ...options, windowsHide: true };+ return { ...options, env: options.env ?? process.env, windowsHide: true };}function createNodeSpawnOptions(options, platform = process.platform) {const nodeOptions = {@@ -10184,6 +10184,10 @@ function transformModelForProviderUsingAnthropicBehavior(provider, model) {return "k3";if (model === "kimi-k3-256k")return "k3-256k";+ if (model === "kimi-k3.1-pro")+ return "k3.1-pro";+ if (model === "kimi-k3.1-pro-highspeed")+ return "k3.1-pro-highspeed";}return model;}@@ -92381,7 +92385,7 @@ var package_default2;var init_package2 = __esm(() => {package_default2 = {name: "@oh-my-opencode/omo-codex",- version: "5.1.46",+ version: "5.1.47",type: "module",private: true,description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",@@ -93954,8 +93958,7 @@ function windowsNodeDiscoveryLines() {' for /f "tokens=* delims= " %%N in ("!OMO_NODE_BINARY!") do set "OMO_NODE_BINARY=%%N"',` if "!OMO_NODE_BINARY:~0,1!"=="'" set "OMO_NODE_BINARY=!OMO_NODE_BINARY:~1!"`,` if "!OMO_NODE_BINARY:~-1!"=="'" set "OMO_NODE_BINARY=!OMO_NODE_BINARY:~0,-1!"`,- ' if "!OMO_NODE_BINARY:~0,1!"=="^"" set "OMO_NODE_BINARY=!OMO_NODE_BINARY:~1!"',- ' if "!OMO_NODE_BINARY:~-1!"=="^"" set "OMO_NODE_BINARY=!OMO_NODE_BINARY:~0,-1!"',+ ' set "OMO_NODE_BINARY=!OMO_NODE_BINARY:"=!"',' if defined OMO_NODE_BINARY if not exist "!OMO_NODE_BINARY!" set "OMO_NODE_BINARY="',")",'if not defined OMO_NODE_BINARY where node >nul 2>nul && set "OMO_NODE_BINARY=node"'@@ -112065,6 +112068,8 @@ class CredentialStoreError extends SignInError {class KeychainLockedError extends CredentialStoreError {}+class InvalidCredentialState extends SignInError {+}var LOCKED = /-25308|errSecInteractionNotAllowed|interaction is not allowed|locked collection/i;var UNLOCKED_REUSE_MS = 30000;var fallbackNoticed = false;@@ -112080,12 +112085,15 @@ function credentialId(api) {return createHash10("sha256").update(serviceOrigin(api)).digest("hex");}function createCredentialStore(api, secrets = typeof Bun === "undefined" ? null : Bun.secrets, platform = process.platform, lockProbe = probeSecretServiceLock, notice = stderrNoticeOncePerProcess) {+ return createSealedStore(api, "omo-cli", credentialSchema, secrets, platform, lockProbe, notice);+}+function createSealedStore(api, namespace, schema, secrets = typeof Bun === "undefined" ? null : Bun.secrets, platform = process.platform, lockProbe = probeSecretServiceLock, notice = stderrNoticeOncePerProcess) {if (!secrets)throw new SignInError("OmO sign-in needs Bun 1.4 or newer with OS credential storage. No file fallback is available.");const platformName = platform === "darwin" ? "macOS Keychain" : platform === "linux" ? "Linux Secret Service (libsecret and an unlocked keyring)" : platform === "win32" ? "Windows Credential Manager" : null;if (platformName === null)throw new SignInError("This platform has no supported OS credential store.");- const key = { service: "omo-cli", name: credentialId(api) };+ const key = { service: namespace, name: credentialId(api) };const unavailable = (error) => isLocked(error) ? new KeychainLockedError(`${platformName} is locked. Unlock it, then try again. Credentials are never saved to a file.`) : new CredentialStoreError(`Cannot access ${platformName}. Unlock or enable the OS credential store and try again. Credentials are never saved to a file.`);let unlockedUntil = 0;let noticed = false;@@ -112116,15 +112124,15 @@ function createCredentialStore(api, secrets = typeof Bun === "undefined" ? nullif (value === null)return null;try {- return credentialSchema.parse(JSON.parse(value));+ return schema.parse(JSON.parse(value));} catch {- throw new SignInError("Stored sign-in data is invalid. Run omo logout, then omo login.");+ throw new InvalidCredentialState("Stored sign-in data is invalid. Run omo logout, then omo login.");}},async write(value) {await assertUsable();try {- await secrets.set({ ...key, value: JSON.stringify(credentialSchema.parse(value)) });+ await secrets.set({ ...key, value: JSON.stringify(schema.parse(value)) });} catch (error) {throw unavailable(error);}diff --git a/plugins/omo/hooks/post-compact-resetting-git-bash-mcp-reminder.json b/plugins/omo/hooks/post-compact-resetting-git-bash-mcp-reminder.jsonindex eb903cfc..53dedf01 100644--- a/plugins/omo/hooks/post-compact-resetting-git-bash-mcp-reminder.json+++ b/plugins/omo/hooks/post-compact-resetting-git-bash-mcp-reminder.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/git-bash/dist/cli.js\" hook post-compact","timeout": 5,- "statusMessage": "(OmO 5.1.46) Resetting Git Bash MCP Reminder",+ "statusMessage": "(OmO 5.1.47) Resetting Git Bash MCP Reminder","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\git-bash\\dist\\cli.js\" hook post-compact"}],diff --git a/plugins/omo/hooks/post-compact-resetting-lsp-diagnostics-cache.json b/plugins/omo/hooks/post-compact-resetting-lsp-diagnostics-cache.jsonindex 8efd972c..9b20ad89 100644--- a/plugins/omo/hooks/post-compact-resetting-lsp-diagnostics-cache.json+++ b/plugins/omo/hooks/post-compact-resetting-lsp-diagnostics-cache.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/lsp/dist/cli.js\" hook post-compact","timeout": 5,- "statusMessage": "(OmO 5.1.46) Resetting LSP Diagnostics Cache",+ "statusMessage": "(OmO 5.1.47) Resetting LSP Diagnostics Cache","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\lsp\\dist\\cli.js\" hook post-compact"}],diff --git a/plugins/omo/hooks/post-compact-resetting-project-rule-cache.json b/plugins/omo/hooks/post-compact-resetting-project-rule-cache.jsonindex 08adcd1a..2ffbd662 100644--- a/plugins/omo/hooks/post-compact-resetting-project-rule-cache.json+++ b/plugins/omo/hooks/post-compact-resetting-project-rule-cache.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/rules/dist/cli.js\" hook post-compact","timeout": 10,- "statusMessage": "(OmO 5.1.46) Resetting Project Rule Cache",+ "statusMessage": "(OmO 5.1.47) Resetting Project Rule Cache","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\rules\\dist\\cli.js\" hook post-compact"}],diff --git a/plugins/omo/hooks/post-tool-use-checking-comments.json b/plugins/omo/hooks/post-tool-use-checking-comments.jsonindex 948c34a5..8ae2e2c1 100644--- a/plugins/omo/hooks/post-tool-use-checking-comments.json+++ b/plugins/omo/hooks/post-tool-use-checking-comments.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/comment-checker/dist/cli.js\" hook post-tool-use","timeout": 30,- "statusMessage": "(OmO 5.1.46) Checking Comments",+ "statusMessage": "(OmO 5.1.47) Checking Comments","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\comment-checker\\dist\\cli.js\" hook post-tool-use"}],diff --git a/plugins/omo/hooks/post-tool-use-checking-lsp-diagnostics.json b/plugins/omo/hooks/post-tool-use-checking-lsp-diagnostics.jsonindex 66488198..0133c981 100644--- a/plugins/omo/hooks/post-tool-use-checking-lsp-diagnostics.json+++ b/plugins/omo/hooks/post-tool-use-checking-lsp-diagnostics.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/lsp/dist/cli.js\" hook post-tool-use","timeout": 60,- "statusMessage": "(OmO 5.1.46) Checking LSP Diagnostics",+ "statusMessage": "(OmO 5.1.47) Checking LSP Diagnostics","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\lsp\\dist\\cli.js\" hook post-tool-use"}],diff --git a/plugins/omo/hooks/post-tool-use-checking-thread-title-hygiene.json b/plugins/omo/hooks/post-tool-use-checking-thread-title-hygiene.jsonindex 23c538fd..efc5079d 100644--- a/plugins/omo/hooks/post-tool-use-checking-thread-title-hygiene.json+++ b/plugins/omo/hooks/post-tool-use-checking-thread-title-hygiene.json@@ -8,7 +8,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/teammode/dist/cli.js\" hook post-tool-use","timeout": 10,- "statusMessage": "(OmO 5.1.46) Checking Thread Title Hygiene",+ "statusMessage": "(OmO 5.1.47) Checking Thread Title Hygiene","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\teammode\\dist\\cli.js\" hook post-tool-use"}]diff --git a/plugins/omo/hooks/post-tool-use-matching-project-rules.json b/plugins/omo/hooks/post-tool-use-matching-project-rules.jsonindex 1c36b61b..e871a27c 100644--- a/plugins/omo/hooks/post-tool-use-matching-project-rules.json+++ b/plugins/omo/hooks/post-tool-use-matching-project-rules.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/rules/dist/cli.js\" hook post-tool-use","timeout": 10,- "statusMessage": "(OmO 5.1.46) Matching Project Rules",+ "statusMessage": "(OmO 5.1.47) Matching Project Rules","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\rules\\dist\\cli.js\" hook post-tool-use"}],diff --git a/plugins/omo/hooks/post-tool-use-recording-spawn-admission.json b/plugins/omo/hooks/post-tool-use-recording-spawn-admission.jsonindex b5354c1e..5d35512f 100644--- a/plugins/omo/hooks/post-tool-use-recording-spawn-admission.json+++ b/plugins/omo/hooks/post-tool-use-recording-spawn-admission.json@@ -8,7 +8,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/ulw-loop/dist/cli.js\" hook post-tool-use-spawn","timeout": 5,- "statusMessage": "(OmO 5.1.46) Recording Spawn Admission",+ "statusMessage": "(OmO 5.1.47) Recording Spawn Admission","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-loop\\dist\\cli.js\" hook post-tool-use-spawn"}]diff --git a/plugins/omo/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json b/plugins/omo/hooks/pre-tool-use-enforcing-unlimited-goal-budget.jsonindex 836cf82d..a8a6753f 100644--- a/plugins/omo/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json+++ b/plugins/omo/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/ulw-loop/dist/cli.js\" hook pre-tool-use","timeout": 5,- "statusMessage": "(OmO 5.1.46) Enforcing Unlimited Goal Budget",+ "statusMessage": "(OmO 5.1.47) Enforcing Unlimited Goal Budget","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-loop\\dist\\cli.js\" hook pre-tool-use"}],diff --git a/plugins/omo/hooks/pre-tool-use-guarding-ulw-loop-spawns.json b/plugins/omo/hooks/pre-tool-use-guarding-ulw-loop-spawns.jsonindex 6f45d55f..e3b8d818 100644--- a/plugins/omo/hooks/pre-tool-use-guarding-ulw-loop-spawns.json+++ b/plugins/omo/hooks/pre-tool-use-guarding-ulw-loop-spawns.json@@ -8,7 +8,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/ulw-loop/dist/cli.js\" hook pre-tool-use-spawn","timeout": 5,- "statusMessage": "(OmO 5.1.46) Guarding Ulw-Loop Spawns",+ "statusMessage": "(OmO 5.1.47) Guarding Ulw-Loop Spawns","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-loop\\dist\\cli.js\" hook pre-tool-use-spawn"}]diff --git a/plugins/omo/hooks/pre-tool-use-recommending-git-bash-mcp.json b/plugins/omo/hooks/pre-tool-use-recommending-git-bash-mcp.jsonindex 988d6b0d..17449c9e 100644--- a/plugins/omo/hooks/pre-tool-use-recommending-git-bash-mcp.json+++ b/plugins/omo/hooks/pre-tool-use-recommending-git-bash-mcp.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/git-bash/dist/cli.js\" hook pre-tool-use","timeout": 5,- "statusMessage": "(OmO 5.1.46) Recommending Git Bash MCP",+ "statusMessage": "(OmO 5.1.47) Recommending Git Bash MCP","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\git-bash\\dist\\cli.js\" hook pre-tool-use"}],diff --git a/plugins/omo/hooks/session-start-checking-auto-update.json b/plugins/omo/hooks/session-start-checking-auto-update.jsonindex 06b94dba..3de24323 100644--- a/plugins/omo/hooks/session-start-checking-auto-update.json+++ b/plugins/omo/hooks/session-start-checking-auto-update.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/scripts/auto-update.mjs\" hook session-start","timeout": 15,- "statusMessage": "(OmO 5.1.46) Checking Auto Update",+ "statusMessage": "(OmO 5.1.47) Checking Auto Update","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\scripts\\auto-update.mjs\" hook session-start"}],diff --git a/plugins/omo/hooks/session-start-checking-bootstrap-provisioning.json b/plugins/omo/hooks/session-start-checking-bootstrap-provisioning.jsonindex cd104c25..844ded97 100644--- a/plugins/omo/hooks/session-start-checking-bootstrap-provisioning.json+++ b/plugins/omo/hooks/session-start-checking-bootstrap-provisioning.json@@ -8,7 +8,7 @@"command": "node \"${PLUGIN_ROOT}/components/bootstrap/dist/cli.js\" hook session-start","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\bootstrap.ps1\"","timeout": 30,- "statusMessage": "(OmO 5.1.46) Checking Bootstrap Provisioning"+ "statusMessage": "(OmO 5.1.47) Checking Bootstrap Provisioning"}]}diff --git a/plugins/omo/hooks/session-start-loading-project-rules.json b/plugins/omo/hooks/session-start-loading-project-rules.jsonindex 871d0591..84a575ea 100644--- a/plugins/omo/hooks/session-start-loading-project-rules.json+++ b/plugins/omo/hooks/session-start-loading-project-rules.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/rules/dist/cli.js\" hook session-start","timeout": 10,- "statusMessage": "(OmO 5.1.46) Loading Project Rules",+ "statusMessage": "(OmO 5.1.47) Loading Project Rules","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\rules\\dist\\cli.js\" hook session-start"}]diff --git a/plugins/omo/hooks/session-start-recording-session-telemetry.json b/plugins/omo/hooks/session-start-recording-session-telemetry.jsonindex c3843c6b..2bece2d6 100644--- a/plugins/omo/hooks/session-start-recording-session-telemetry.json+++ b/plugins/omo/hooks/session-start-recording-session-telemetry.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/telemetry/dist/cli.js\" hook session-start","timeout": 15,- "statusMessage": "(OmO 5.1.46) Recording Session Telemetry",+ "statusMessage": "(OmO 5.1.47) Recording Session Telemetry","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\telemetry\\dist\\cli.js\" hook session-start"}]diff --git a/plugins/omo/hooks/stop-checking-ulw-execute-continuation.json b/plugins/omo/hooks/stop-checking-ulw-execute-continuation.jsonindex 96889699..08666b66 100644--- a/plugins/omo/hooks/stop-checking-ulw-execute-continuation.json+++ b/plugins/omo/hooks/stop-checking-ulw-execute-continuation.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/ulw-execute-continuation/dist/cli.js\" hook stop","timeout": 10,- "statusMessage": "(OmO 5.1.46) Checking Ulw-Execute Continuation",+ "statusMessage": "(OmO 5.1.47) Checking Ulw-Execute Continuation","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-execute-continuation\\dist\\cli.js\" hook stop"}]diff --git a/plugins/omo/hooks/stop-checking-ulw-loop-resume.json b/plugins/omo/hooks/stop-checking-ulw-loop-resume.jsonindex 87e753b5..cfafebae 100644--- a/plugins/omo/hooks/stop-checking-ulw-loop-resume.json+++ b/plugins/omo/hooks/stop-checking-ulw-loop-resume.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/ulw-loop/dist/cli.js\" hook stop","timeout": 10,- "statusMessage": "(OmO 5.1.46) Checking Ulw-Loop Resume",+ "statusMessage": "(OmO 5.1.47) Checking Ulw-Loop Resume","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-loop\\dist\\cli.js\" hook stop"}]diff --git a/plugins/omo/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json b/plugins/omo/hooks/subagent-stop-verifying-lazycodex-executor-evidence.jsonindex 86c50518..d6aeec6a 100644--- a/plugins/omo/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json+++ b/plugins/omo/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/lazycodex-executor-verify/dist/cli.js\" hook subagent-stop","timeout": 10,- "statusMessage": "(OmO 5.1.46) Verifying LazyCodex Executor Evidence",+ "statusMessage": "(OmO 5.1.47) Verifying LazyCodex Executor Evidence","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\lazycodex-executor-verify\\dist\\cli.js\" hook subagent-stop"}],diff --git a/plugins/omo/hooks/user-prompt-submit-checking-ultrawork-trigger.json b/plugins/omo/hooks/user-prompt-submit-checking-ultrawork-trigger.jsonindex 99c2de45..74713e51 100644--- a/plugins/omo/hooks/user-prompt-submit-checking-ultrawork-trigger.json+++ b/plugins/omo/hooks/user-prompt-submit-checking-ultrawork-trigger.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/ultrawork/dist/cli.js\" hook user-prompt-submit","timeout": 5,- "statusMessage": "(OmO 5.1.46) Checking Ultrawork Trigger",+ "statusMessage": "(OmO 5.1.47) Checking Ultrawork Trigger","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ultrawork\\dist\\cli.js\" hook user-prompt-submit"}]diff --git a/plugins/omo/hooks/user-prompt-submit-checking-ulw-loop-steering.json b/plugins/omo/hooks/user-prompt-submit-checking-ulw-loop-steering.jsonindex 80e25174..10ec4bac 100644--- a/plugins/omo/hooks/user-prompt-submit-checking-ulw-loop-steering.json+++ b/plugins/omo/hooks/user-prompt-submit-checking-ulw-loop-steering.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/ulw-loop/dist/cli.js\" hook user-prompt-submit","timeout": 10,- "statusMessage": "(OmO 5.1.46) Checking Ulw-Loop Steering",+ "statusMessage": "(OmO 5.1.47) Checking Ulw-Loop Steering","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-loop\\dist\\cli.js\" hook user-prompt-submit"}]diff --git a/plugins/omo/hooks/user-prompt-submit-loading-project-rules.json b/plugins/omo/hooks/user-prompt-submit-loading-project-rules.jsonindex 8bcbd4a8..3f594e94 100644--- a/plugins/omo/hooks/user-prompt-submit-loading-project-rules.json+++ b/plugins/omo/hooks/user-prompt-submit-loading-project-rules.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/rules/dist/cli.js\" hook user-prompt-submit","timeout": 10,- "statusMessage": "(OmO 5.1.46) Loading Project Rules",+ "statusMessage": "(OmO 5.1.47) Loading Project Rules","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\rules\\dist\\cli.js\" hook user-prompt-submit"}]diff --git a/plugins/omo/package-lock.json b/plugins/omo/package-lock.jsonindex 3b66741a..98b59ad8 100644--- a/plugins/omo/package-lock.json+++ b/plugins/omo/package-lock.json@@ -1,12 +1,12 @@{"name": "@sisyphuslabs/omo-codex-plugin",- "version": "5.1.46",+ "version": "5.1.47","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "@sisyphuslabs/omo-codex-plugin",- "version": "5.1.46",+ "version": "5.1.47","workspaces": ["components/comment-checker","components/git-bash",@@ -100,7 +100,7 @@},"components/comment-checker": {"name": "@code-yeongyu/codex-comment-checker",- "version": "5.1.46",+ "version": "5.1.47","license": "MIT","bin": {"omo-comment-checker": "dist/cli.js"@@ -122,7 +122,7 @@},"components/git-bash": {"name": "@sisyphuslabs/codex-git-bash-hook",- "version": "5.1.46",+ "version": "5.1.47","bin": {"omo-git-bash-hook": "dist/cli.js"},@@ -136,7 +136,7 @@},"components/lazycodex-executor-verify": {"name": "@code-yeongyu/codex-lazycodex-executor-verify",- "version": "5.1.46",+ "version": "5.1.47","license": "MIT","bin": {"lazycodex-executor-verify": "dist/cli.js"@@ -154,7 +154,7 @@},"components/lsp": {"name": "@code-yeongyu/codex-lsp",- "version": "5.1.46",+ "version": "5.1.47","license": "MIT","dependencies": {"@code-yeongyu/lsp-daemon": "file:../../../../lsp-daemon",@@ -176,7 +176,7 @@},"components/rules": {"name": "@code-yeongyu/codex-rules",- "version": "5.1.46",+ "version": "5.1.47","license": "MIT","dependencies": {"picomatch": "^4.0.7"@@ -199,7 +199,7 @@},"components/teammode": {"name": "@sisyphuslabs/codex-teammode",- "version": "5.1.46",+ "version": "5.1.47","devDependencies": {"@types/node": "^26.6.2","@vitest/coverage-v8": "5.0.1",@@ -213,7 +213,7 @@},"components/telemetry": {"name": "@code-yeongyu/codex-telemetry",- "version": "5.1.46",+ "version": "5.1.47","license": "MIT","bin": {"omo-telemetry": "dist/cli.js"@@ -232,7 +232,7 @@},"components/ultrawork": {"name": "@code-yeongyu/codex-ultrawork",- "version": "5.1.46",+ "version": "5.1.47","license": "MIT","bin": {"omo-ultrawork": "dist/cli.js"@@ -251,7 +251,7 @@},"components/ulw-execute-continuation": {"name": "@code-yeongyu/codex-ulw-execute-continuation",- "version": "5.1.46",+ "version": "5.1.47","license": "MIT","bin": {"omo-ulw-execute-continuation": "dist/cli.js"@@ -269,7 +269,7 @@},"components/ulw-loop": {"name": "@code-yeongyu/codex-ulw-loop",- "version": "5.1.46",+ "version": "5.1.47","license": "MIT","bin": {"omo-ulw-loop": "dist/cli.js",diff --git a/plugins/omo/package.json b/plugins/omo/package.jsonindex 24e95767..5ac9dd1f 100644--- a/plugins/omo/package.json+++ b/plugins/omo/package.json@@ -1,6 +1,6 @@{"name": "@sisyphuslabs/omo-codex-plugin",- "version": "5.1.46",+ "version": "5.1.47","description": "Aggregate Codex plugin root for OMO components.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/scripts/sync-skills.mjs b/plugins/omo/scripts/sync-skills.mjsindex 8e353f4f..5ca60e6d 100644--- a/plugins/omo/scripts/sync-skills.mjs+++ b/plugins/omo/scripts/sync-skills.mjs@@ -175,7 +175,7 @@ prefixes when identity is needed.// and keeps every tool-based delivery gate (static, fidelity, layout, visual QA). The item is matched by// its text right after the Visual QA sentence, not by its list numeral, so adding or removing an earlier// delivery gate does not unhook the overlay.-const ulwResearchProofreadGate = "**Proofread gate: `task(category=\"writing\", ...)`.** Hand the final text to a dedicated `writing` worker whose only job is language: grammar, spelling, punctuation, terminology consistency, and whether the prose reads NATIVELY in the report's own language. It proofreads only and never composes. It returns a defect list; fix every item and re-run the gate on the delta. Deliver only on a clean pass. This gate runs BEFORE the first delivery, not after the user finds the typo.";+const ulwResearchProofreadGate = "**Proofread gate: `task(category=\"writing\", ...)`.** Hand the final text to a dedicated `writing` worker whose only job is language: grammar, spelling, punctuation, terminology consistency, and whether the prose reads NATIVELY in the report's own language. It proofreads only and never composes, and it never edits the file: it returns `$SESSION_DIR/polish-edits.json`, an array of `{\"before\": ..., \"after\": ..., \"reason\": ...}` where `before` is the exact current text of one or more adjacent sentences. Edits change text only; an edit whose before/after would alter any tag, attribute, comment, or script/style content is rejected, and markup changes go through the full fidelity gates instead. Apply it with `node \"$SKILL_DIR/scripts/report-tools.mjs\" fact polish-apply \"$SESSION_DIR/report.html\" --edits \"$SESSION_DIR/polish-edits.json\" --out \"$SESSION_DIR/report.polished.html\" --session-dir \"$SESSION_DIR\"`: each edit is applied alone, and an edit that changes a fact span, a numeral, a link, or a claim id, or drops a hedge or qualifier the source carries, is `polish_edit_rejected` (a `before` not found exactly once is `polish_edit_unlocated`) and leaves its text unchanged. Send the rejected and unlocated edits back to the same worker with their reasons, plus `$SESSION_DIR/polish-defects.json` and the pre-polish `report.html` the backstop compared against, so the worker sees why each edit was refused; it returns either a rewritten sentence or a new edit list, and the repair round re-runs `fact polish-apply` with `\"$SESSION_DIR/report.polished.html\"` as both input and output, within the repair budget. Then run the backstop `fact polish-diff --before \"$SESSION_DIR/report.html\" --after \"$SESSION_DIR/report.polished.html\" --session-dir \"$SESSION_DIR\"` (exit `1` on `polish_diff_fail`), `fact verify` on `report.polished.html`, and `fact pairs \"$SESSION_DIR/report.polished.html\" --changed-since \"$SESSION_DIR/report.html.fill-map.json\" --session-dir \"$SESSION_DIR\"`, which keeps only the quote and claim pairs whose sentence text changed during polish; run the meaning readers above (cheap, then strong on the flagged pairs) on exactly those pairs and `fact meaning-check` before recording `outcome gate fidelity`. A rewording that keeps every number, hedge, qualifier, and link but swaps who did what to whom therefore still reaches a meaning reader on the delivered text. `report.polished.html` is the report that is delivered. Deliver only on a clean pass. This gate runs BEFORE the first delivery, not after the user finds the typo. Edits must not span entities (such as & or <) or markup; narrow the edit to the surrounding words instead, and a rejected edit comes back with the reason to act on.";const ulwResearchProofreadGateSource = ulwResearchProofreadGate.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");const ulwResearchProofreadGatePattern = new RegExp(`(inspect the pixels\\.)\\n\\d+\\. ${ulwResearchProofreadGateSource}`);diff --git a/plugins/omo/skills/browser/runtime/omowright/manifest.json b/plugins/omo/skills/browser/runtime/omowright/manifest.jsonindex 048d90fc..239fc8b9 100644--- a/plugins/omo/skills/browser/runtime/omowright/manifest.json+++ b/plugins/omo/skills/browser/runtime/omowright/manifest.json@@ -5,5 +5,5 @@"index.js": "d67d3a847fe0bbc43e824feded48b280890d31879538309e671cd5f671133995","page-bundle.js": "bfd51e8383cf47200d57387bbbed258bce5a3a3d00c38fc108034d2888e23f0c"},- "stagedAtUtc": "2026-10-25T01:05:33.130Z"+ "stagedAtUtc": "2026-10-25T11:01:10.118Z"}diff --git a/plugins/omo/skills/ulw-research/references/deliverable-phase.md b/plugins/omo/skills/ulw-research/references/deliverable-phase.mdindex 0f52c3fc..f5649d28 100644--- a/plugins/omo/skills/ulw-research/references/deliverable-phase.md+++ b/plugins/omo/skills/ulw-research/references/deliverable-phase.md@@ -133,7 +133,12 @@ Nothing reaches the requester until the gates for its QA tier pass, in this ordenode "$SKILL_DIR/scripts/report-tools.mjs" layout-probe --json # .source is one async expression```4. **Visual QA.** Render the artifact to images (PDF pages to PNG, the HTML in the browser skill's engine at desktop and phone widths) and look at the pixels for what a machine cannot see: composition, hierarchy, page breaks, figure legibility.-5. **Proofread.** A dedicated writing lane proofreads the final text only (grammar, spelling, punctuation, terminology, native register); it never composes or rewrites content.+5. **Proofread.** A dedicated writing lane proofreads the final text only (grammar, spelling, punctuation, terminology, native register); it never composes or rewrites content and never edits the file. Edits change text only; an edit whose before/after would alter any tag, attribute, comment, or script/style content is rejected, and markup changes go through the full fidelity gates instead. It returns `polish-edits.json` (`[{before, after, reason}]`), which the orchestrator applies edit by edit; a rejected or unlocated edit goes back to the lane with its reason, within the repair budget. The backstop diff, `fact verify` on the polished file, and the meaning readers on the pairs whose sentences polish changed run before the fidelity gate is recorded again. Edits must not span entities (such as & or <) or markup; narrow the edit to the surrounding words instead, and a rejected edit comes back with the reason to act on.+ ```bash+ node "$SKILL_DIR/scripts/report-tools.mjs" fact polish-apply "$SESSION_DIR/report.html" --edits "$SESSION_DIR/polish-edits.json" --out "$SESSION_DIR/report.polished.html" --session-dir "$SESSION_DIR"+ node "$SKILL_DIR/scripts/report-tools.mjs" fact polish-diff --before "$SESSION_DIR/report.html" --after "$SESSION_DIR/report.polished.html" --session-dir "$SESSION_DIR" # writes polish-defects.json+ node "$SKILL_DIR/scripts/report-tools.mjs" fact pairs "$SESSION_DIR/report.polished.html" --changed-since "$SESSION_DIR/report.html.fill-map.json" --session-dir "$SESSION_DIR"+ ```**Every reader-facing edition is verified.** The main report, the inline edition (section 9), LaTeX per-section sources, and slide sources are filled by `fact fill` from one placeholder source and each is verified by `fact verify` into its own record; PDF and DOCX are renders of a verified source. A delivered row is recorded with `outcome set <format> delivered --path <file> --verified-by <record>`, where the record's `artifact_sha256` equals the sha256 of the delivered source; a PDF or DOCX adds `--rendered-from <source>` and is matched against that source. In a session with a fact ledger, `outcome verify` refuses a delivered row without a matching record (`edition_unverified`, blocker, integrity). Markdown and LaTeX verification arrive with the Markdown stage; until then `fact verify --format md|tex` exits `2`, and such an edition is recorded `blocked_capability` with that reason rather than delivered unverified.@@ -216,7 +221,9 @@ Invoke every command as `node "$SKILL_DIR/scripts/report-tools.mjs" <command>`.| `fact export` | `--csv`, `--out <file>`, `--session-dir <dir>` | never || `fact fill <src>` | `--out <file>` or `--view`, `--format html\|md\|tex`, `--inline`, `--replace-failed`, `--session-dir <dir>` | a fill error (nothing is written) || `fact verify <report>` | `--format html\|md` (from the extension by default), `--sources <dir>`, `--claims <claims.json>`, `--fill-map <file>` (a Markdown edition reads `<report>.fill-map.json` by default), `--brief <brief.md>`, `--out <record>`, `--session-dir <dir>` | any blocker or major defect |-| `fact pairs <report>` | `--format html\|md`, `--ledger <fact-ledger.json>`, `--claims <claims.json>`, `--changed-since <fill-map.json>` (pair only the facts that map filled), `--brief <brief.md>`, `--out <pairs.json>`, `--session-dir <dir>` | the brief has no locked `## Fidelity` block (with `meaning check: off` it writes `{"skipped": true}` and exits `0`) |+| `fact pairs <report>` | `--format html\|md`, `--ledger <fact-ledger.json>`, `--claims <claims.json>`, `--changed-since <fill-map.json>` (keep only the pairs whose sentence text is not in the pre-polish artifact that map names, so the readers re-check exactly what polish rewrote; the map must carry `artifact_sha256` and the artifact must still hash to it, otherwise the command exits `2`), `--brief <brief.md>`, `--out <pairs.json>`, `--session-dir <dir>` | the brief has no locked `## Fidelity` block (with `meaning check: off` it writes `{"skipped": true}` and exits `0`) |+| `fact polish-apply <report.html>` | `--edits <polish-edits.json>` and `--out <report.polished.html>` (both required; a missing flag or a Markdown edition exits `2`), `--format html`, `--ledger <fact-ledger.json>`, `--session-dir <dir>` | never: it exits `0` whenever it wrote the output. Each rejected (`polish_edit_rejected`) or unlocated (`polish_edit_unlocated`) edit leaves its text unchanged and is printed verbatim, one line per rejection, in the summary and in `data.rejected_reasons`; `data` also carries `applied`, `rejected`, `unlocated`, `applied_indexes`, `input_sha256`, `edits_sha256`, and `out_sha256` |+| `fact polish-diff` | `--before <pre-polish.html>` and `--after <polished.html>` (both required; a missing flag exits `2`), `--ledger <fact-ledger.json>`, `--out <record>` (default `$SESSION_DIR/polish-defects.json`), `--session-dir <dir>` | a registry blocker in the diff (majors and minors are reported and exit `0`; a defect code the registry does not know refuses with `unknown defect code <code>`). The record is `{command, status, exitCode, before, artifact, artifact_sha256, defects[], counts}`, with `counts` in contract buckets || `fact meaning-check` | `--pairs <pairs.json>` and `--verdicts <file>` (required; repeatable, one per reader tier), `--dispute P<n> --reason <text>`, `--run-id <id>`, `--calibration <file>` (default `fidelity-calibration.jsonl`), `--out <record>` (default `fidelity-meaning-defects.json`), `--session-dir <dir>` | `meaning_drift_confirmed` (stderr carries one JSON line with the defect and dropped-verdict counts) || `fact derive` | `--op <op>` (required) with the operation's operands (section 11), `--unit`, `--to`, `--rationale`, `--disjoint`, `--label`, `--json`, `--session-dir <dir>` | `incompatible_operands` (no row written) || `claims index <claim-graph.md>` | `--out <claims.json>` (required) | never (a malformed claim table exits `2`) |diff --git a/plugins/omo/skills/ulw-research/scripts/fact-commands-meaning.mjs b/plugins/omo/skills/ulw-research/scripts/fact-commands-meaning.mjsindex ba03f979..74f0b659 100644--- a/plugins/omo/skills/ulw-research/scripts/fact-commands-meaning.mjs+++ b/plugins/omo/skills/ulw-research/scripts/fact-commands-meaning.mjs@@ -1,6 +1,7 @@// fact-commands-meaning.mjs - `fact pairs` and `fact meaning-check`, the script half of the// separate-session meaning verifier. fact pairs writes the (source, report sentence) pairs a-// reader lane gets and nothing else; it honours the brief's `meaning check` field and writes+// reader lane gets and nothing else (with --changed-since, only the pairs whose sentence polish+// rewrote); it honours the brief's `meaning check` field and writes// `{ skipped: true }` when it is off. fact meaning-check ingests the readers' verdict files// (meaning-check.mjs), writes fidelity-meaning-defects.json (a fidelity record bound to the pairs'// artifact_sha256 and report, through writeFidelityRecord), and records the run in@@ -14,9 +15,8 @@ import { dirname, join, resolve } from "node:path"import { CliError, parseArgs, readJsonFile, sha256Of, writeJsonAtomic, writeTextAtomic } from "./cli-support.mjs"import { countDefects } from "./contracts.mjs"-import { markdownAsHtml, readEdition } from "./fact-commands-verify.mjs"-import { readLedger } from "./fact-ledger.mjs"-import { validateLedger } from "./fact-ledger-schema.mjs"+import { ledgerFrom, markdownAsHtml, readEdition, sessionOf } from "./fact-commands-verify.mjs"+import { pairsChangedSince } from "./fact-commands-polish.mjs"import { extractPairs, PAIR_KINDS } from "./fact-pairs.mjs"import { FIDELITY_INCOMPLETE, meaningCheckEnabled, requireLockedBrief } from "./fidelity-brief.mjs"import { MEANING_RECORD, writeFidelityRecord } from "./fidelity-records.mjs"@@ -31,26 +31,11 @@ export const PROMOTION = Object.freeze({ code: "meaning_drift_confirmed", to: "i/** The command status: fail when any defect blocks delivery under the registry policy. */export const meaningStatus = (defects) => (defects.some(blocksDelivery) ? "fail" : "pass")-const sessionOf = (flags) => {- const dir = flags["session-dir"] ?? process.env.SESSION_DIR- return dir && dir !== true ? resolve(dir) : null-}const inSession = (session, name, flag) => {if (session === null) throw new CliError(`${flag} is required without --session-dir (or SESSION_DIR)`)return join(session, name)}-function readLedgerFrom(flags, session) {- if (flags.ledger === undefined) {- if (session === null) throw new CliError("--ledger is required without --session-dir (or SESSION_DIR)")- return readLedger(session)- }- const ledger = readJsonFile(flags.ledger)- const errors = validateLedger(ledger)- if (errors.length > 0) throw new CliError(`${flags.ledger} is not a valid fact ledger: ${errors[0]}`)- return ledger-}-function briefState(flags, session) {const path = flags.brief ?? inSession(session, "brief.md", "--brief")const lock = requireLockedBrief(path)@@ -77,10 +62,10 @@ function runPairs(args) {const edition = readEdition(report, flags)const claimsPath = flags.claims ?? (session === null ? null : join(session, "claims.json"))const claims = claimsPath !== null && (flags.claims !== undefined || existsSync(claimsPath)) ? readJsonFile(claimsPath) : null- const changed = flags["changed-since"] === undefined ? undefined : readJsonFile(flags["changed-since"]).entries- const ledger = readLedgerFrom(flags, session)+ const ledger = ledgerFrom(flags, session)const html = edition.format === "md" ? markdownAsHtml(edition.text, edition.entries, ledger).html : edition.text- const pairs = extractPairs(html, ledger, claims, changed)+ const all = extractPairs(html, ledger, claims)+ const pairs = flags["changed-since"] === undefined ? all : pairsChangedSince(all, flags["changed-since"], ledger, claims)const counts = { total: pairs.length, force_strong: pairs.filter((pair) => pair.force_strong).length }for (const kind of PAIR_KINDS) counts[kind] = pairs.filter((pair) => pair.kind === kind).lengthconst record = { schemaVersion: 1, skipped: false, report: resolve(report), format: edition.format, artifact_sha256: sha256Of(edition.text), pairs_sha256: sha256Of(JSON.stringify(pairs)), counts, verdict_schema: VERDICT_SCHEMA, pairs }diff --git a/plugins/omo/skills/ulw-research/scripts/fact-commands-polish.mjs b/plugins/omo/skills/ulw-research/scripts/fact-commands-polish.mjsnew file mode 100644index 00000000..faa1fab3--- /dev/null+++ b/plugins/omo/skills/ulw-research/scripts/fact-commands-polish.mjs@@ -0,0 +1,127 @@+// fact-commands-polish.mjs - `fact polish-apply` and `fact polish-diff`, the script half of the+// proofread gate, plus the --changed-since filter of `fact pairs`.+//+// The writing lane returns polish-edits.json ([{before, after, reason}]) and never edits the+// report. polish-apply applies each edit through polish-apply.mjs and writes the result; a+// rejected (major) or unlocated (minor) edit leaves its region unchanged and is listed with its+// index and reason so the orchestrator can re-send it; every rejection reason is printed verbatim, one+// line per rejected edit (index and the first 60 characters of its before), in the summary and in+// data.rejected_reasons. It exits 0 whenever it wrote the output.+// polish-diff is the whole-document backstop (polish-diff.mjs) between the pre-polish artifact+// and any later copy; it exits 1 on a blocker. pairsChangedSince keeps only the pairs whose+// sentence text (normalized) is not in the pre-polish artifact that a fill map names, so the+// meaning readers re-check exactly what polish rewrote. No model, no network.++import { existsSync, readFileSync } from "node:fs"+import { join, resolve } from "node:path"++import { CliError, parseArgs, readJsonFile, sha256Of, writeJsonAtomic, writeTextAtomic } from "./cli-support.mjs"+import { countDefects, DEFECT_CODES } from "./contracts.mjs"+import { editionFormatOf, ledgerFrom, markdownAsHtml, sessionOf } from "./fact-commands-verify.mjs"+import { extractPairs } from "./fact-pairs.mjs"+import { applyEdits, POLISH_EDIT_FIELDS, validatePolishEdits } from "./polish-apply.mjs"+import { diffPolish } from "./polish-diff.mjs"+import { normalizeText } from "./text-normalize.mjs"++export { ledgerFrom, POLISH_EDIT_FIELDS, validatePolishEdits }++export const POLISH_RECORD = "polish-defects.json"++/**+ * The polish-diff exit policy: only a registry blocker fails the command; majors are reported.+ * Fail-closed like the delivery barrier: a code the registry does not know refuses outright,+ * because a caller-claimed severity may not demote it.+ */+export const polishDiffFails = (defects) =>+ defects.some((defect) => {+ if (!Object.hasOwn(DEFECT_CODES, defect?.code)) throw new CliError(`unknown defect code ${defect?.code}`)+ return DEFECT_CODES[defect.code].severity === "blocker"+ })++function readText(path) {+ try {+ return readFileSync(path, "utf8")+ } catch (error) {+ throw new CliError(`cannot read ${path}: ${error.code ?? error.message}`)+ }+}++const withSeverity = (entry) => ({ ...entry, severity: DEFECT_CODES[entry.code].severity, hint: DEFECT_CODES[entry.code].hint })++/** The first 60 characters of an edit's before, on one line. */+const beforePreview = (before) => (typeof before === "string" ? before : "").replace(/\s+/gu, " ").slice(0, 60)++/** One line per rejected edit: its index, the start of its before, and its reason verbatim. */+const rejectionLine = (entry, edit) => ` rejected edit ${entry.index} ("${beforePreview(edit?.before)}"): ${entry.reason}`++function runPolishApply(args) {+ const [report] = args.positionals+ const { flags } = args+ if (!report || flags.edits === undefined || flags.out === undefined) throw new CliError("usage: fact polish-apply <report.html> --edits polish-edits.json --out <report.polished.html> [--ledger F] [--session-dir D]")+ if (editionFormatOf(report, flags.format) === "md") throw new CliError("fact polish-apply takes the filled HTML edition; polish a Markdown edition through its HTML source")+ const html = readText(report)+ const editsText = readText(flags.edits)+ const edits = readJsonFile(flags.edits)+ try {+ validatePolishEdits(edits)+ } catch (error) {+ throw new CliError(`${flags.edits} must be an array of {${Object.keys(POLISH_EDIT_FIELDS).join(", ")}} objects: ${error.message}`)+ }+ const result = applyEdits(html, edits, ledgerFrom(flags))+ writeTextAtomic(flags.out, result.out)+ const defects = [...result.rejected, ...result.unlocated].sort((a, b) => a.index - b.index).map(withSeverity)+ const counts = { applied: result.applied.length, rejected: result.rejected.length, unlocated: result.unlocated.length }+ const data = { out: resolve(flags.out), ...counts, applied_indexes: result.applied, input_sha256: sha256Of(html), edits_sha256: sha256Of(editsText), out_sha256: sha256Of(result.out) }+ const rejected_reasons = result.rejected.map((entry) => rejectionLine(entry, edits[entry.index]))+ const summary = [`fact polish-apply: ${counts.applied} applied, ${counts.rejected} rejected, ${counts.unlocated} unlocated of ${edits.length} edit(s)`, ...rejected_reasons].join("\n")+ return { json: { command: "fact polish-apply", status: "pass", exitCode: 0, defects, data: { ...data, rejected_reasons } }, summary, exitCode: 0 }+}++function runPolishDiff(args) {+ const { flags } = args+ if (flags.before === undefined || flags.after === undefined) throw new CliError("usage: fact polish-diff --before <pre-polish.html> --after <polished.html> [--ledger F] [--out polish-defects.json] [--session-dir D]")+ const after = readText(flags.after)+ const defects = diffPolish(readText(flags.before), after, ledgerFrom(flags)).map((defect) => ({ ...defect, hint: DEFECT_CODES[defect.code]?.hint ?? null }))+ const counts = countDefects(defects)+ const status = polishDiffFails(defects) ? "fail" : "pass"+ const exitCode = status === "fail" ? 1 : 0+ const record = { command: "fact polish-diff", status, exitCode, before: resolve(flags.before), artifact: resolve(flags.after), artifact_sha256: sha256Of(after), defects, counts }+ const session = sessionOf(flags)+ const out = flags.out ?? (session === null ? null : join(session, POLISH_RECORD))+ if (out !== null) writeJsonAtomic(resolve(out), record)+ const summary = `fact polish-diff: ${status.toUpperCase()} - ${counts.blocker} blocker, ${counts.major} major, ${counts.minor} minor`+ return { json: { ...record, out: out === null ? null : resolve(out) }, summary, exitCode }+}++const pairKey = (pair) => [pair.kind, pair.sentence_key, pair.claim_id ?? "", normalizeText(pair.sentence)].join("\u0000")++/**+ * The pairs whose sentence text changed since the pre-polish artifact a fill map names: a pair is+ * kept unless the same (kind, sentence key, normalized sentence) occurs in that artifact. The map+ * must carry the artifact's `artifact_sha256` and the bytes must still match it, so the filter is+ * fail-closed on a hand-made or stale map.+ * @param {object[]} pairs extractPairs output on the polished edition+ * @param {string} mapPath the pre-polish fill map (fact fill's `<out>.fill-map.json`)+ */+export function pairsChangedSince(pairs, mapPath, ledger, claims) {+ const map = readJsonFile(mapPath)+ if (typeof map.artifact !== "string" || !existsSync(map.artifact)) throw new CliError(`${mapPath} names no readable pre-polish artifact`)+ const text = readText(map.artifact)+ if (typeof map.artifact_sha256 !== "string") throw new CliError(`${mapPath} fill map has no artifact_sha256; --changed-since needs the pre-polish hash`)+ if (sha256Of(text) !== map.artifact_sha256) throw new CliError(`${map.artifact} changed after fill; --changed-since needs the pre-polish bytes`)+ const html = map.format === "md" ? markdownAsHtml(text, map.entries, ledger).html : text+ const before = new Map()+ for (const pair of extractPairs(html, ledger, claims)) before.set(pairKey(pair), (before.get(pairKey(pair)) ?? 0) + 1)+ return pairs.filter((pair) => {+ const left = before.get(pairKey(pair)) ?? 0+ if (left === 0) return true+ before.set(pairKey(pair), left - 1)+ return false+ })+}++/** @param {string[]} argv the arguments after `fact polish-apply` or `fact polish-diff` */+export function runFactPolish(sub, argv) {+ const args = parseArgs(argv)+ return sub === "polish-apply" ? runPolishApply(args) : runPolishDiff(args)+}diff --git a/plugins/omo/skills/ulw-research/scripts/fact-commands-verify.mjs b/plugins/omo/skills/ulw-research/scripts/fact-commands-verify.mjsindex ce269796..c9fef75f 100644--- a/plugins/omo/skills/ulw-research/scripts/fact-commands-verify.mjs+++ b/plugins/omo/skills/ulw-research/scripts/fact-commands-verify.mjs@@ -18,6 +18,7 @@ import { CliError, readJsonFile, sha256Of } from "./cli-support.mjs"import { countDefects } from "./contracts.mjs"import { recompute } from "./fact-derive.mjs"import { readLedger } from "./fact-ledger.mjs"+import { validateLedger } from "./fact-ledger-schema.mjs"import { FIDELITY_RECORD, writeFidelityRecord } from "./fidelity-records.mjs"import { blocksDelivery, checkFidelity } from "./gates-fidelity.mjs"import { parseMarkdown } from "./md-lite.mjs"@@ -120,6 +121,24 @@ export function markdownAsHtml(text, entries, ledger) {return { html: `${html}${open ? MD_HTML_BLOCK_RULES[open].group[1] : ""}</body></html>\n`, stale: [...stale] }}+/** The session dir from --session-dir or SESSION_DIR, or null; a bare flag names no session. */+export const sessionOf = (flags) => {+ const dir = flags["session-dir"] ?? process.env.SESSION_DIR+ return dir && dir !== true ? resolve(dir) : null+}++/** The ledger from --ledger (validated) or from the session dir; every fact command loads it here. */+export function ledgerFrom(flags, session = sessionOf(flags)) {+ if (flags.ledger === undefined) {+ if (session === null) throw new CliError("--ledger is required without --session-dir (or SESSION_DIR)")+ return readLedger(session)+ }+ const ledger = readJsonFile(flags.ledger)+ const errors = validateLedger(ledger)+ if (errors.length > 0) throw new CliError(`${flags.ledger} is not a valid fact ledger: ${errors[0]}`)+ return ledger+}+const MARKDOWN_EXTENSION = /\.(md|markdown)$/iu/** The edition format: the explicit flag, else md for a .md or .markdown path (any case), else html. */export const editionFormatOf = (path, flag) => flag ?? (MARKDOWN_EXTENSION.test(path) ? "md" : "html")diff --git a/plugins/omo/skills/ulw-research/scripts/fact-commands.mjs b/plugins/omo/skills/ulw-research/scripts/fact-commands.mjsindex 233caf37..64c370f3 100644--- a/plugins/omo/skills/ulw-research/scripts/fact-commands.mjs+++ b/plugins/omo/skills/ulw-research/scripts/fact-commands.mjs@@ -1,5 +1,6 @@// fact-commands.mjs - the `fact` subcommands of report-tools: add, quote, retract, export, fill,-// derive, verify (fact-commands-verify.mjs), pairs and meaning-check (fact-commands-meaning.mjs). Every value reaches the ledger from a source+// derive, verify (fact-commands-verify.mjs), pairs and meaning-check (fact-commands-meaning.mjs), polish-apply and+// polish-diff (fact-commands-polish.mjs). Every value reaches the ledger from a source// snapshot through a deterministic locator or from a declared derivation; nothing here accepts a// typed value. add and quote print the row with 60 chars of source context on each side (JSON// with --json). Exit 0 ok, 1 semantic failure (fact_not_located, fill errors, a refused@@ -217,6 +218,7 @@ function runDerive(args) {export async function runFact(argv) {const [sub, ...rest] = argvif (sub === "pairs" || sub === "meaning-check") return (await import("./fact-commands-meaning.mjs")).runFactMeaning(sub, rest)+ if (sub === "polish-apply" || sub === "polish-diff") return (await import("./fact-commands-polish.mjs")).runFactPolish(sub, rest)const args = parseArgs(rest, { booleans: BOOLEANS })switch (sub) {case "add":@@ -234,6 +236,6 @@ export async function runFact(argv) {case "verify":return (await import("./fact-commands-verify.mjs")).runFactVerify(args)default:- throw new CliError("usage: fact <add|quote|retract|export|fill|verify|derive|pairs|meaning-check> ...")+ throw new CliError("usage: fact <add|quote|retract|export|fill|verify|derive|pairs|meaning-check|polish-apply|polish-diff> ...")}}diff --git a/plugins/omo/skills/ulw-research/scripts/fact-pairs.mjs b/plugins/omo/skills/ulw-research/scripts/fact-pairs.mjsindex bd7ac047..125312d3 100644--- a/plugins/omo/skills/ulw-research/scripts/fact-pairs.mjs+++ b/plugins/omo/skills/ulw-research/scripts/fact-pairs.mjs@@ -96,11 +96,11 @@ function lexiconRouted(group, sentence) {return lexiconChecks(probes).forceStrong.length > 0}-function quotePairs(sentence, rows, filled, slug, reportLang) {+function quotePairs(sentence, rows, slug, reportLang) {const groups = new Map()for (const fact of sentence.facts) {const row = rows.get(fact.id)- if (!row?.quote || (filled && !filled.has(fact.id))) continue+ if (!row?.quote) continueconst group = groups.get(row.quote) ?? { quote: row.quote, row, rows, facts: [], ids: [] }group.facts.push(fact)if (!group.ids.includes(fact.id)) group.ids.push(fact.id)@@ -136,11 +136,11 @@ function claimPairs(ctx, block, sentence, byClaim, slug, reportLang) {}))}-function translationPair(node, rows, filled, slug, reportLang) {+function translationPair(node, rows, slug, reportLang) {const id = node.attrs["data-translates"]const row = rows.get(id)const text = proseText(node)- if (!row?.quote || text === "" || (filled && !filled.has(id))) return null+ if (!row?.quote || text === "") return nullreturn {kind: "translation",sentence_key: sentenceKey(slug, [id]),@@ -157,13 +157,11 @@ function translationPair(node, rows, filled, slug, reportLang) {* @param {string} html the filled report* @param {{ rows: object[] }} ledger* @param {{ claims: object[] } | object[] | null} claims indexClaims(...) output or its claims array- * @param {{ fact_id: string }[]} [fillMap] fact fill's map; when given, only facts it filled are paired* @returns {object[]} pairs with pair_id P1, P2, ... in document order*/-export function extractPairs(html, ledger, claims, fillMap) {+export function extractPairs(html, ledger, claims) {const ctx = buildContext(parseHtml(html), {})const rows = new Map((ledger?.rows ?? []).map((row) => [row.fact_id, row]))- const filled = Array.isArray(fillMap) ? new Set(fillMap.map((entry) => entry.fact_id)) : nullconst byClaim = claimMap(claims)const htmlLang = ctx.all.find((node) => node.tag === "html")?.attrs.langconst reportLang = htmlLang ? htmlLang.toLowerCase().split("-")[0] : null@@ -174,12 +172,12 @@ export function extractPairs(html, ledger, claims, fillMap) {if (!findings) continueconst slug = slugOf(block.scope)for (const sentence of block.sentences) {- out.push(...quotePairs(sentence, rows, filled, slug, reportLang), ...claimPairs(ctx, block, sentence, byClaim, slug, reportLang))+ out.push(...quotePairs(sentence, rows, slug, reportLang), ...claimPairs(ctx, block, sentence, byClaim, slug, reportLang))}for (const node of ctx.util.descendants(block.owner)) {if (node.attrs?.["data-translates"] === undefined || seenSpans.has(node)) continueseenSpans.add(node)- const pair = translationPair(node, rows, filled, slug, reportLang)+ const pair = translationPair(node, rows, slug, reportLang)if (pair) out.push(pair)}}