oh-my-opencode 4.17.1 → 4.18.1
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.
- package/.agents/skills/codex-qa/SKILL.md +2 -0
- package/.agents/skills/codex-qa/scripts/lsp-e2e.sh +3654 -0
- package/.agents/skills/opencode-qa/scripts/lsp-e2e.sh +3071 -0
- package/.agents/skills/work-with-pr/SKILL.md +16 -37
- package/.agents/skills/work-with-pr-workspace/evals/evals.json +3 -3
- package/.opencode/skills/work-with-pr/SKILL.md +16 -37
- package/.opencode/skills/work-with-pr-workspace/evals/evals.json +3 -3
- package/dist/cli/get-local-version/types.d.ts +1 -1
- package/dist/cli/index.js +498 -165
- package/dist/cli-node/index.js +498 -165
- package/dist/index.js +425 -392
- package/dist/skills/frontend/SKILL.md +1 -1
- package/dist/skills/frontend/references/design/README.md +9 -0
- package/dist/skills/frontend/references/design/design-system-architecture.md +4 -2
- package/dist/skills/frontend/references/design/layout-skill.md +107 -0
- package/dist/skills/programming/SKILL.md +12 -2
- package/package.json +17 -16
- package/packages/lsp-core/package.json +4 -0
- package/packages/lsp-core/src/index.ts +1 -0
- package/packages/lsp-core/src/lsp/cleanup-errors.test.ts +18 -0
- package/packages/lsp-core/src/lsp/cleanup-errors.ts +12 -3
- package/packages/lsp-core/src/lsp/client-diagnostics-freshness.integration.test.ts +261 -0
- package/packages/lsp-core/src/lsp/client-wrapper.test.ts +63 -0
- package/packages/lsp-core/src/lsp/client-wrapper.ts +35 -5
- package/packages/lsp-core/src/lsp/client.ts +262 -80
- package/packages/lsp-core/src/lsp/config-loader.ts +5 -17
- package/packages/lsp-core/src/lsp/connection.ts +12 -6
- package/packages/lsp-core/src/lsp/directory-diagnostics.test.ts +104 -0
- package/packages/lsp-core/src/lsp/directory-diagnostics.ts +60 -27
- package/packages/lsp-core/src/lsp/errors.ts +11 -0
- package/packages/lsp-core/src/lsp/fixtures/diagnostics-freshness-contract-probe.ts +283 -0
- package/packages/lsp-core/src/lsp/fixtures/workspace-edit-contract-probe.ts +196 -0
- package/packages/lsp-core/src/lsp/fixtures/workspace-edit-server.mjs +215 -0
- package/packages/lsp-core/src/lsp/formatters.ts +3 -0
- package/packages/lsp-core/src/lsp/json-rpc-connection-cancellation.test.ts +97 -0
- package/packages/lsp-core/src/lsp/json-rpc-connection.ts +73 -5
- package/packages/lsp-core/src/lsp/server-install-state.ts +3 -6
- package/packages/lsp-core/src/lsp/transport-protocol.ts +52 -0
- package/packages/lsp-core/src/lsp/transport.ts +96 -70
- package/packages/lsp-core/src/lsp/workspace-apply-edit-failure.ts +19 -0
- package/packages/lsp-core/src/lsp/workspace-apply-edit-lease.integration.test.ts +214 -0
- package/packages/lsp-core/src/lsp/workspace-apply-edit-sync.integration.test.ts +113 -0
- package/packages/lsp-core/src/lsp/workspace-apply-edit-test-support.ts +163 -0
- package/packages/lsp-core/src/lsp/workspace-apply-edit.integration.test.ts +163 -0
- package/packages/lsp-core/src/lsp/workspace-document-state.test.ts +67 -0
- package/packages/lsp-core/src/lsp/workspace-document-state.ts +368 -0
- package/packages/lsp-core/src/lsp/workspace-edit-adversarial.test.ts +113 -0
- package/packages/lsp-core/src/lsp/workspace-edit-commit.test.ts +140 -0
- package/packages/lsp-core/src/lsp/workspace-edit-commit.ts +220 -0
- package/packages/lsp-core/src/lsp/workspace-edit-contract-evidence.test.ts +56 -0
- package/packages/lsp-core/src/lsp/workspace-edit-contract-evidence.ts +30 -0
- package/packages/lsp-core/src/lsp/workspace-edit-fingerprint.ts +44 -0
- package/packages/lsp-core/src/lsp/workspace-edit-options.test.ts +147 -0
- package/packages/lsp-core/src/lsp/workspace-edit-parse-helpers.ts +59 -0
- package/packages/lsp-core/src/lsp/workspace-edit-parser.ts +130 -0
- package/packages/lsp-core/src/lsp/workspace-edit-path.ts +98 -0
- package/packages/lsp-core/src/lsp/workspace-edit-plan-types.ts +60 -0
- package/packages/lsp-core/src/lsp/workspace-edit-plan.ts +73 -0
- package/packages/lsp-core/src/lsp/workspace-edit-prevalidation.test.ts +174 -0
- package/packages/lsp-core/src/lsp/workspace-edit-resource-parser.ts +89 -0
- package/packages/lsp-core/src/lsp/workspace-edit-simulation.ts +183 -0
- package/packages/lsp-core/src/lsp/workspace-edit-snapshot.ts +53 -0
- package/packages/lsp-core/src/lsp/workspace-edit-text.ts +125 -0
- package/packages/lsp-core/src/lsp/workspace-edit-types.ts +121 -0
- package/packages/lsp-core/src/lsp/workspace-edit.characterization.test.ts +95 -0
- package/packages/lsp-core/src/lsp/workspace-edit.ts +49 -200
- package/packages/lsp-core/src/lsp/workspace-mutation-controller.ts +182 -0
- package/packages/lsp-core/src/mcp.ts +18 -7
- package/packages/lsp-core/src/missing-dependency-result.test.ts +105 -0
- package/packages/lsp-core/src/missing-dependency-result.ts +57 -0
- package/packages/lsp-core/src/post-edit/index.ts +1 -0
- package/packages/lsp-core/src/post-edit/orchestration.test.ts +157 -0
- package/packages/lsp-core/src/post-edit/orchestration.ts +178 -0
- package/packages/lsp-core/src/request-context.test.ts +171 -0
- package/packages/lsp-core/src/request-context.ts +222 -9
- package/packages/lsp-core/src/tool-surface.test.ts +4 -1
- package/packages/lsp-core/src/tools/diagnostics.ts +32 -13
- package/packages/lsp-core/src/tools/navigation.ts +12 -12
- package/packages/lsp-core/src/tools/rename.ts +10 -15
- package/packages/lsp-core/src/tools/symbols.ts +11 -11
- package/packages/lsp-core/src/tools/types.ts +2 -1
- package/packages/lsp-daemon/dist/cli.js +3114 -747
- package/packages/lsp-daemon/dist/client.d.ts +105 -0
- package/packages/lsp-daemon/dist/client.js +5851 -0
- package/packages/lsp-daemon/dist/daemon-client.d.ts +11 -6
- package/packages/lsp-daemon/dist/daemon-client.js +113 -30
- package/packages/lsp-daemon/dist/daemon-server.d.ts +1 -0
- package/packages/lsp-daemon/dist/daemon-server.js +40 -15
- package/packages/lsp-daemon/dist/ensure-daemon.d.ts +8 -7
- package/packages/lsp-daemon/dist/ensure-daemon.js +67 -44
- package/packages/lsp-daemon/dist/index.d.ts +2 -2
- package/packages/lsp-daemon/dist/index.js +2862 -754
- package/packages/lsp-daemon/dist/ipc-protocol.d.ts +46 -0
- package/packages/lsp-daemon/dist/ipc-protocol.js +187 -0
- package/packages/lsp-daemon/dist/lock.js +14 -4
- package/packages/lsp-daemon/dist/ownership.d.ts +49 -0
- package/packages/lsp-daemon/dist/ownership.js +168 -0
- package/packages/lsp-daemon/dist/paths.d.ts +33 -9
- package/packages/lsp-daemon/dist/paths.js +72 -33
- package/packages/lsp-daemon/dist/proxy.d.ts +3 -0
- package/packages/lsp-daemon/dist/proxy.js +54 -3
- package/packages/lsp-daemon/dist/request-routing.d.ts +7 -2
- package/packages/lsp-daemon/dist/request-routing.js +71 -22
- package/packages/lsp-daemon/dist/run-daemon.js +9 -2
- package/packages/lsp-daemon/dist/runtime-contract.d.ts +21 -0
- package/packages/lsp-daemon/dist/runtime-contract.js +58 -0
- package/packages/lsp-daemon/dist/socket-jsonrpc.js +6 -1
- package/packages/lsp-daemon/package.json +12 -3
- package/packages/lsp-tools-mcp/dist/cli.js +2115 -442
- package/packages/lsp-tools-mcp/dist/lsp/manager.js +1741 -148
- package/packages/lsp-tools-mcp/dist/mcp.js +2127 -454
- package/packages/lsp-tools-mcp/dist/request-context.js +176 -6
- package/packages/lsp-tools-mcp/dist/tools.js +2118 -446
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
- package/packages/omo-codex/plugin/components/codegraph/package.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
- package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
- package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +55 -0
- package/packages/omo-codex/plugin/components/lsp/dist/cli.js +2959 -944
- package/packages/omo-codex/plugin/components/lsp/dist/codex-hook-cli.js +0 -4
- package/packages/omo-codex/plugin/components/lsp/dist/codex-hook.d.ts +5 -2
- package/packages/omo-codex/plugin/components/lsp/dist/codex-hook.js +41 -62
- package/packages/omo-codex/plugin/components/lsp/dist/daemon-cli-path.d.ts +1 -1
- package/packages/omo-codex/plugin/components/lsp/dist/daemon-cli-path.js +24 -15
- package/packages/omo-codex/plugin/components/lsp/dist/lsp-session-state.d.ts +3 -7
- package/packages/omo-codex/plugin/components/lsp/dist/lsp-session-state.js +23 -49
- package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/package.json +3 -2
- package/packages/omo-codex/plugin/components/lsp/scripts/build-lsp-daemon.mjs +31 -1
- package/packages/omo-codex/plugin/components/lsp/scripts/build-lsp-daemon.test.mjs +76 -0
- package/packages/omo-codex/plugin/components/lsp/scripts/build-runtime.mjs +201 -0
- package/packages/omo-codex/plugin/components/lsp/scripts/build-runtime.test.mjs +55 -0
- package/packages/omo-codex/plugin/components/lsp/src/codex-hook-cli.ts +0 -4
- package/packages/omo-codex/plugin/components/lsp/src/codex-hook.ts +49 -71
- package/packages/omo-codex/plugin/components/lsp/src/daemon-cli-path.ts +26 -15
- package/packages/omo-codex/plugin/components/lsp/src/lsp-session-state.ts +26 -64
- package/packages/omo-codex/plugin/components/lsp/test/codex-hook-unavailable.test.ts +16 -17
- package/packages/omo-codex/plugin/components/lsp/test/codex-hook.test.ts +30 -4
- package/packages/omo-codex/plugin/components/lsp/test/package-smoke.test.ts +19 -5
- package/packages/omo-codex/plugin/components/rules/bundled-rules/hephaestus/gpt-5.5.md +1 -1
- package/packages/omo-codex/plugin/components/rules/bundled-rules/hephaestus/gpt-5.6.md +8 -6
- package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/package.json +1 -1
- package/packages/omo-codex/plugin/components/start-work-continuation/directive.md +1 -1
- package/packages/omo-codex/plugin/components/start-work-continuation/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/start-work-continuation/package.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/directive.md +37 -10
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/skills/ultrawork/SKILL.md +37 -10
- package/packages/omo-codex/plugin/components/ulw-loop/directive.md +37 -10
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/SKILL.md +2 -2
- package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/full-workflow.md +10 -9
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-codegraph-init-guidance.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-codegraph-bootstrap.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-start-work-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-checking-start-work-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/package-lock.json +26 -14
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/plugin/scripts/build-bundled-mcp-runtimes.mjs +2 -3
- package/packages/omo-codex/plugin/scripts/build-components.mjs +13 -1
- package/packages/omo-codex/plugin/scripts/sync-skills.mjs +1 -1
- package/packages/omo-codex/plugin/skills/frontend/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/frontend/references/design/README.md +9 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/design-system-architecture.md +4 -2
- package/packages/omo-codex/plugin/skills/frontend/references/design/layout-skill.md +107 -0
- package/packages/omo-codex/plugin/skills/programming/SKILL.md +12 -2
- package/packages/omo-codex/plugin/skills/start-work/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/ultrawork/SKILL.md +37 -10
- package/packages/omo-codex/plugin/skills/ulw-loop/SKILL.md +2 -2
- package/packages/omo-codex/plugin/skills/ulw-loop/references/full-workflow.md +10 -9
- package/packages/omo-codex/plugin/test/aggregate-build.test.mjs +8 -0
- package/packages/omo-codex/plugin/test/component-bundled-cli.test.mjs +128 -15
- package/packages/omo-codex/plugin/test/install-time-build-runtime.test.mjs +10 -0
- package/packages/omo-codex/plugin/test/lsp-prebuild-layouts.test.mjs +2 -0
- package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +1 -1
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +351 -74
- package/packages/shared-skills/skills/frontend/SKILL.md +1 -1
- package/packages/shared-skills/skills/frontend/references/design/README.md +9 -0
- package/packages/shared-skills/skills/frontend/references/design/design-system-architecture.md +4 -2
- package/packages/shared-skills/skills/frontend/references/design/layout-skill.md +107 -0
- package/packages/shared-skills/skills/programming/SKILL.md +12 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sisyphuslabs/omo-codex-plugin",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.18.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@sisyphuslabs/omo-codex-plugin",
|
|
9
|
-
"version": "4.
|
|
9
|
+
"version": "4.18.1",
|
|
10
10
|
"workspaces": [
|
|
11
11
|
"components/codegraph",
|
|
12
12
|
"components/comment-checker",
|
|
@@ -32,6 +32,13 @@
|
|
|
32
32
|
"@oh-my-opencode/utils": "workspace:*"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
+
"../../lsp-core": {
|
|
36
|
+
"name": "@oh-my-opencode/lsp-core",
|
|
37
|
+
"version": "0.1.0",
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@oh-my-opencode/mcp-stdio-core": "workspace:*"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
35
42
|
"../../lsp-daemon": {
|
|
36
43
|
"name": "@code-yeongyu/lsp-daemon",
|
|
37
44
|
"version": "0.1.0",
|
|
@@ -93,7 +100,7 @@
|
|
|
93
100
|
},
|
|
94
101
|
"components/codegraph": {
|
|
95
102
|
"name": "@sisyphuslabs/codex-codegraph",
|
|
96
|
-
"version": "4.
|
|
103
|
+
"version": "4.18.1",
|
|
97
104
|
"bin": {
|
|
98
105
|
"omo-codegraph": "dist/cli.js"
|
|
99
106
|
},
|
|
@@ -112,7 +119,7 @@
|
|
|
112
119
|
},
|
|
113
120
|
"components/comment-checker": {
|
|
114
121
|
"name": "@code-yeongyu/codex-comment-checker",
|
|
115
|
-
"version": "4.
|
|
122
|
+
"version": "4.18.1",
|
|
116
123
|
"license": "MIT",
|
|
117
124
|
"bin": {
|
|
118
125
|
"omo-comment-checker": "dist/cli.js"
|
|
@@ -133,7 +140,7 @@
|
|
|
133
140
|
},
|
|
134
141
|
"components/git-bash": {
|
|
135
142
|
"name": "@sisyphuslabs/codex-git-bash-hook",
|
|
136
|
-
"version": "4.
|
|
143
|
+
"version": "4.18.1",
|
|
137
144
|
"bin": {
|
|
138
145
|
"omo-git-bash-hook": "dist/cli.js"
|
|
139
146
|
},
|
|
@@ -148,7 +155,7 @@
|
|
|
148
155
|
},
|
|
149
156
|
"components/lazycodex-executor-verify": {
|
|
150
157
|
"name": "@code-yeongyu/codex-lazycodex-executor-verify",
|
|
151
|
-
"version": "4.
|
|
158
|
+
"version": "4.18.1",
|
|
152
159
|
"license": "MIT",
|
|
153
160
|
"bin": {
|
|
154
161
|
"lazycodex-executor-verify": "dist/cli.js"
|
|
@@ -165,10 +172,11 @@
|
|
|
165
172
|
},
|
|
166
173
|
"components/lsp": {
|
|
167
174
|
"name": "@code-yeongyu/codex-lsp",
|
|
168
|
-
"version": "4.
|
|
175
|
+
"version": "4.18.1",
|
|
169
176
|
"license": "MIT",
|
|
170
177
|
"dependencies": {
|
|
171
|
-
"@code-yeongyu/lsp-daemon": "file:../../../../lsp-daemon"
|
|
178
|
+
"@code-yeongyu/lsp-daemon": "file:../../../../lsp-daemon",
|
|
179
|
+
"@oh-my-opencode/lsp-core": "file:../../../../lsp-core"
|
|
172
180
|
},
|
|
173
181
|
"bin": {
|
|
174
182
|
"omo-lsp": "dist/cli.js"
|
|
@@ -185,7 +193,7 @@
|
|
|
185
193
|
},
|
|
186
194
|
"components/rules": {
|
|
187
195
|
"name": "@code-yeongyu/codex-rules",
|
|
188
|
-
"version": "4.
|
|
196
|
+
"version": "4.18.1",
|
|
189
197
|
"license": "MIT",
|
|
190
198
|
"dependencies": {
|
|
191
199
|
"picomatch": "^4.0.3"
|
|
@@ -207,7 +215,7 @@
|
|
|
207
215
|
},
|
|
208
216
|
"components/start-work-continuation": {
|
|
209
217
|
"name": "@code-yeongyu/codex-start-work-continuation",
|
|
210
|
-
"version": "4.
|
|
218
|
+
"version": "4.18.1",
|
|
211
219
|
"license": "MIT",
|
|
212
220
|
"bin": {
|
|
213
221
|
"omo-start-work-continuation": "dist/cli.js"
|
|
@@ -224,7 +232,7 @@
|
|
|
224
232
|
},
|
|
225
233
|
"components/teammode": {
|
|
226
234
|
"name": "@sisyphuslabs/codex-teammode",
|
|
227
|
-
"version": "4.
|
|
235
|
+
"version": "4.18.1",
|
|
228
236
|
"devDependencies": {
|
|
229
237
|
"@types/node": "^25.9.3",
|
|
230
238
|
"bun-types": "^1.3.1",
|
|
@@ -237,7 +245,7 @@
|
|
|
237
245
|
},
|
|
238
246
|
"components/telemetry": {
|
|
239
247
|
"name": "@code-yeongyu/codex-telemetry",
|
|
240
|
-
"version": "4.
|
|
248
|
+
"version": "4.18.1",
|
|
241
249
|
"license": "MIT",
|
|
242
250
|
"bin": {
|
|
243
251
|
"omo-telemetry": "dist/cli.js"
|
|
@@ -255,7 +263,7 @@
|
|
|
255
263
|
},
|
|
256
264
|
"components/ultrawork": {
|
|
257
265
|
"name": "@code-yeongyu/codex-ultrawork",
|
|
258
|
-
"version": "4.
|
|
266
|
+
"version": "4.18.1",
|
|
259
267
|
"license": "MIT",
|
|
260
268
|
"bin": {
|
|
261
269
|
"omo-ultrawork": "dist/cli.js"
|
|
@@ -273,7 +281,7 @@
|
|
|
273
281
|
},
|
|
274
282
|
"components/ulw-loop": {
|
|
275
283
|
"name": "@code-yeongyu/codex-ulw-loop",
|
|
276
|
-
"version": "4.
|
|
284
|
+
"version": "4.18.1",
|
|
277
285
|
"license": "MIT",
|
|
278
286
|
"bin": {
|
|
279
287
|
"omo-ulw-loop": "dist/cli.js",
|
|
@@ -663,6 +671,10 @@
|
|
|
663
671
|
"resolved": "../../comment-checker-core",
|
|
664
672
|
"link": true
|
|
665
673
|
},
|
|
674
|
+
"node_modules/@oh-my-opencode/lsp-core": {
|
|
675
|
+
"resolved": "../../lsp-core",
|
|
676
|
+
"link": true
|
|
677
|
+
},
|
|
666
678
|
"node_modules/@oh-my-opencode/prompts-core": {
|
|
667
679
|
"resolved": "../../prompts-core",
|
|
668
680
|
"link": true
|
|
@@ -16,8 +16,7 @@ const runtimes = [
|
|
|
16
16
|
{
|
|
17
17
|
label: "lsp-daemon",
|
|
18
18
|
packageRoot: join(repoPackagesRoot, "lsp-daemon"),
|
|
19
|
-
requiredOutputs: ["dist/cli.js", "dist/index.js", "dist/index.d.ts"],
|
|
20
|
-
install: true,
|
|
19
|
+
requiredOutputs: ["dist/cli.js", "dist/client.js", "dist/client.d.ts", "dist/index.js", "dist/index.d.ts"],
|
|
21
20
|
},
|
|
22
21
|
{
|
|
23
22
|
label: "git-bash-mcp",
|
|
@@ -42,7 +41,7 @@ function buildRuntime(runtime) {
|
|
|
42
41
|
return;
|
|
43
42
|
}
|
|
44
43
|
|
|
45
|
-
if (runtime.
|
|
44
|
+
if (existsSync(join(runtime.packageRoot, "package-lock.json")) && !existsSync(join(runtime.packageRoot, "node_modules"))) {
|
|
46
45
|
const install = spawnSync("npm", ["ci"], {
|
|
47
46
|
cwd: runtime.packageRoot,
|
|
48
47
|
shell: process.platform === "win32",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { spawn } from "node:child_process";
|
|
3
3
|
import { availableParallelism } from "node:os";
|
|
4
|
-
import { readdir, readFile, writeFile } from "node:fs/promises";
|
|
4
|
+
import { readdir, readFile, stat, writeFile } from "node:fs/promises";
|
|
5
5
|
import { builtinModules } from "node:module";
|
|
6
6
|
import { dirname, join } from "node:path";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
@@ -55,6 +55,7 @@ async function runTasksWithConcurrency(items, limit) {
|
|
|
55
55
|
|
|
56
56
|
async function buildComponent(task) {
|
|
57
57
|
await runCaptured(task.buildCommand, task.buildArgs, task.buildCwd, `Building ${task.componentPath}`);
|
|
58
|
+
if (await hasComponentOwnedBundle(task.componentPath)) return;
|
|
58
59
|
await bundleCli(task.componentPath);
|
|
59
60
|
}
|
|
60
61
|
|
|
@@ -84,6 +85,17 @@ async function bundleCli(workspace) {
|
|
|
84
85
|
await normalizeBuiltinImports(output);
|
|
85
86
|
}
|
|
86
87
|
|
|
88
|
+
async function hasComponentOwnedBundle(workspace) {
|
|
89
|
+
try {
|
|
90
|
+
const manifest = JSON.parse(await readFile(join(root, workspace, "dist", ".omo-runtime-manifest.json"), "utf8"));
|
|
91
|
+
const cli = await stat(join(root, workspace, "dist", "cli.js"));
|
|
92
|
+
return manifest?.schemaVersion === 1 && cli.isFile() && cli.size > 0;
|
|
93
|
+
} catch (error) {
|
|
94
|
+
if (error instanceof Error && "code" in error && error.code === "ENOENT") return false;
|
|
95
|
+
throw error;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
87
99
|
// Buffers each child's stdout/stderr and flushes it as one contiguous block so
|
|
88
100
|
// concurrent builds never interleave, keeping a failing component's output readable.
|
|
89
101
|
function runCaptured(command, args, cwd, label) {
|
|
@@ -132,7 +132,7 @@ const startWorkOriginalCompletion = `When all top-level checkboxes in \`## TODOs
|
|
|
132
132
|
const startWorkCodexCompletion = `When all top-level checkboxes in \`## TODOs\` and \`## Final Verification Wave\` are complete:
|
|
133
133
|
|
|
134
134
|
1. Run the plan's final verification commands.
|
|
135
|
-
2. Complete the **Global Review and Debugging Gate** before any completion claim, PR creation, PR handoff, branch handoff, or merge:
|
|
135
|
+
2. Complete the **Global Review and Debugging Gate** before any completion claim, PR creation, PR handoff, branch handoff, or merge. The gate's pass binds to the commit SHA it reviewed and covers every later checkpoint at that same SHA — never re-run it on an already-passed SHA; re-run only when new commits land:
|
|
136
136
|
- Invoke the \`review-work\` skill with the final diff, changed files, user goal, constraints, run command, and verification evidence. All five review lanes must return PASS. A timeout, missing deliverable, ack-only child, \`BLOCKED:\`, or inconclusive lane is a gate failure, not approval.
|
|
137
137
|
- Run a debugging-oriented runtime audit even when the review passes: name at least three plausible failure hypotheses for the changed surface, run the distinguishing checks against the actual artifact, and append the ruled-out or confirmed result to \`.omo/start-work/ledger.jsonl\`.
|
|
138
138
|
- If any review lane or debugging hypothesis fails, invoke the \`debugging\` skill, confirm root cause with runtime evidence, add the minimal failing test or reproduction, fix it, rerun the affected verification, then rerun the Global Review and Debugging Gate.
|
|
@@ -32,7 +32,7 @@ Every implementation must choose one of these branches before UI code changes:
|
|
|
32
32
|
- **Embedded references:** use `references/design/_INDEX.md` to shortlist 2-3 plausible Layer B references, then read exactly one Layer A style skill and one Layer B reference in full — every line, no partial reads (they are 200-500 lines; a sliced read produces the flattened token set this gate exists to prevent). Log the shortlist, the pick, and why. Use `open-design` only when the curated set has no fit; add `ui-ux-db` lookups for palette/type/domain questions.
|
|
33
33
|
- **Lazyweb real-product screens:** READ `references/design/lazyweb.md` FIRST and run its recipe verbatim — do not improvise curl calls against lazyweb.com; the recipe mints its own anonymous token. Log the queries run, how many screens you actually VIEWED, and the layout grammar harvested — never pixel copies.
|
|
34
34
|
- **Imagen concept drafts:** generate 2-3 imagen concept drafts, each seeded with the loaded Layer A + Layer B tokens (palette, type, material); pick the strongest and treat the chosen draft as the reference-fidelity contract. Log the draft paths and the pick.
|
|
35
|
-
Synthesize every lane into `DESIGN.md`. Treat sources as source material, not mood labels: extract tokens, layout grammar, component anatomy, interaction states, motion, and taste decisions, then recombine them into project-specific primitives. Never freestyle past the selected references, never copy logos or brand-specific copy. Then run the Primitive Showcase Gate (`references/design/README.md` Phase 0) before any product screen.
|
|
35
|
+
Synthesize every lane into `DESIGN.md`. Treat sources as source material, not mood labels: extract tokens, layout grammar, component anatomy, interaction states, motion, and taste decisions, then recombine them into project-specific primitives. Before laying out sections, inventory the content blocks and assign each a job — hook, explain, prove, compare, convert, navigate, retain — then order sections by the visitor's decision path, not by visual symmetry. Never freestyle past the selected references, never copy logos or brand-specific copy. Then run the Primitive Showcase Gate (`references/design/README.md` Phase 0) before any product screen.
|
|
36
36
|
3. **Existing project with `DESIGN.md` or a component system:** read it, follow it, and update it before implementation only when the requested work needs a new token, primitive, state, motion rule, accessibility constraint, accepted debt, or reference-fidelity requirement.
|
|
37
37
|
4. **Existing project with UI but no `DESIGN.md` and no reusable component layer:** STOP and ask the user one focused question: should you preserve the current look with copy-nearby styling, or extract a real `DESIGN.md` plus reusable components before continuing? Do not silently choose.
|
|
38
38
|
|
|
@@ -169,6 +169,12 @@ Triggers (mid-conversation, not initial): "you keep leaving placeholders", "stop
|
|
|
169
169
|
|
|
170
170
|
**Action:** Add `output-skill.md` on top of whatever is currently loaded. This stacks cleanly — it is purely about output completeness, not visual style.
|
|
171
171
|
|
|
172
|
+
### Step 8 — Is the screen an app shell, not a scroll-the-page site?
|
|
173
|
+
|
|
174
|
+
Triggers: dashboard, settings, mail/inbox, list-detail, command surface, split panes, fixed sidebar + scrolling body, admin console — or the user reports a layout that breaks when content gets long, empty, or unbroken (panel won't scroll, footer pushed off-screen, horizontal overflow on mobile).
|
|
175
|
+
|
|
176
|
+
**Action:** Add `layout-skill.md` on top of whatever style skill you selected in Steps 1-2. It carries scroll-ownership doctrine, the two silently-failing CSS contracts (`min-block-size: 0` scroll shells, `minmax(min(…),100%)` grids), the named-primitive vocabulary, container-vs-viewport routing, and the content-stress matrix. It adds no visual direction — the style skill still owns taste. Skip it for pure scroll-the-document marketing pages, where `taste-skill` layout guidance already fits.
|
|
177
|
+
|
|
172
178
|
## Stacking rules (read this once, internalize it)
|
|
173
179
|
|
|
174
180
|
1. **At most one Layer A *style* skill at a time.** A layout cannot be both `minimalist-skill` and `brutalist-skill` simultaneously — they encode opposite spacing and typography philosophies. Pick one.
|
|
@@ -177,6 +183,7 @@ Triggers (mid-conversation, not initial): "you keep leaving placeholders", "stop
|
|
|
177
183
|
4. **`redesign-skill.md` replaces a style-skill** when the task is auditing, not building. Stack a Layer B brand if the user wants a specific direction.
|
|
178
184
|
5. **`image-to-code-skill.md` pairs with one imagegen skill** for the full flow.
|
|
179
185
|
6. **Layer B (brand DESIGN.md) is orthogonal to Layer A.** You can pair any Layer A skill with any Layer B brand. Use Layer B as the source of color/type/component tokens; let Layer A drive the execution discipline.
|
|
186
|
+
7. **`layout-skill.md` stacks on top of any style skill** for app-shell / dashboard / split-pane work. It owns spatial structure and scroll ownership only — no visual direction — so it never conflicts with the style skill you picked.
|
|
180
187
|
|
|
181
188
|
## Anti-patterns — do not do these
|
|
182
189
|
|
|
@@ -218,6 +225,8 @@ Once references are loaded, before writing any UI code:
|
|
|
218
225
|
| "Generate a brand identity board for {company}" | `imagegen-brandkit.md` |
|
|
219
226
|
| "Stop using placeholders" | Add `output-skill.md` to current stack |
|
|
220
227
|
| "Also output a DESIGN.md doc" | Add `stitch-skill.md` to current stack |
|
|
228
|
+
| "Build a dashboard / settings / inbox / app shell" | one style skill (usually `taste-skill.md`) + `layout-skill.md` |
|
|
229
|
+
| "Panel won't scroll / footer pushed off-screen / mobile overflow" | Add `layout-skill.md` to current stack |
|
|
221
230
|
|
|
222
231
|
## Phase Final — Design QA (MANDATORY, runs after implementation)
|
|
223
232
|
|
package/packages/omo-codex/plugin/skills/frontend/references/design/design-system-architecture.md
CHANGED
|
@@ -116,7 +116,7 @@ All spacing derives from a base of **4px**.
|
|
|
116
116
|
- Breakpoints: sm 640px, md 768px, lg 1024px, xl 1280px, 2xl 1536px
|
|
117
117
|
|
|
118
118
|
### Rules
|
|
119
|
-
-
|
|
119
|
+
- Tokenize design *intent* — spacing steps, content width, gutters, section gaps, density steps. Keep browser *mechanics* raw: `auto`, `%`, `min-content`, `max-content`, `fit-content`, `clamp()`, viewport/container units, intrinsic sizing. A `clamp(1rem, 4vw, 2rem)` gap or a `minmax(min(16rem, 100%), 1fr)` track is mechanics, not a magic number — do not force it into a token.
|
|
120
120
|
- Asymmetric spacing is intentional, not accidental — document why.
|
|
121
121
|
|
|
122
122
|
## 5. Components
|
|
@@ -130,6 +130,7 @@ Document reusable patterns before implementation for greenfield work, and as the
|
|
|
130
130
|
- **States**: default, hover, active, focus, disabled, loading, empty, error
|
|
131
131
|
- **Accessibility**: keyboard, ARIA, contrast
|
|
132
132
|
- **Motion**: entry/exit animations
|
|
133
|
+
- **Layout**: spatial primitive (stack / cluster / sidebar / grid / shell…) and, if the component scrolls or pins anything, its scroll owner
|
|
133
134
|
|
|
134
135
|
Greenfield starts with the primitives you are about to build, assembled from
|
|
135
136
|
the selected references' component anatomy and adapted to the user's product.
|
|
@@ -214,13 +215,14 @@ After every component implementation, check:
|
|
|
214
215
|
|
|
215
216
|
- [ ] All colors reference tokens from Section 2. No raw hex outside `DESIGN.md`.
|
|
216
217
|
- [ ] All font sizes match Section 3 scale. No arbitrary sizes.
|
|
217
|
-
- [ ]
|
|
218
|
+
- [ ] Spacing intent maps to a token (Section 4); browser mechanics (`clamp()`, intrinsic sizing, container units) stay raw. No arbitrary px.
|
|
218
219
|
- [ ] Interactive elements have all required states from Section 5 and Section 6.
|
|
219
220
|
- [ ] Depth treatment matches the chosen strategy from Section 7.
|
|
220
221
|
- [ ] Component reused 2+ times? Documented in Section 5.
|
|
221
222
|
- [ ] Motion follows the timing table. No arbitrary durations.
|
|
222
223
|
- [ ] Component visual QA passed for each primitive and required state before product screens were composed.
|
|
223
224
|
- [ ] Section 8 accessibility constraints hold for the new component; any new debt is recorded in Section 8, not silently accepted.
|
|
225
|
+
- [ ] Survives content stress: empty, long label, unbroken string. Reflows to one readable column at 375px with no horizontal scroll of primary content.
|
|
224
226
|
|
|
225
227
|
## Memory Management
|
|
226
228
|
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: layout-skill
|
|
3
|
+
description: "Layer A layout-mechanics reference. Stacks on any style skill when the screen is an app shell, dashboard, settings, list-detail, mail/inbox, or any layout with fixed regions plus a scrolling body — or when a layout breaks under long, empty, or unbroken content. Owns spatial structure and scroll ownership; owns zero visual taste. Load it alongside a style skill; it does not replace one."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Layout Mechanics
|
|
7
|
+
|
|
8
|
+
Style skills decide how a surface looks. This file decides how it is *built to hold content* — what scrolls, what stays fixed, how regions shrink, and which layouts survive real data. It stacks on top of any Layer A style skill (`taste-skill`, `minimalist-skill`, `soft-skill`, `brutalist-skill`, `gpt-tasteskill`) and any Layer B brand. It adds ZERO visual direction — color, type, shadow, radius, and motion still come from the style skill and `DESIGN.md`.
|
|
9
|
+
|
|
10
|
+
Load this when the screen is an **application shell**, not a scroll-the-whole-document marketing page: dashboards, settings, list-detail, mail/inbox, command surfaces, split panes, sidebars — or when a page that looked fine breaks the moment content gets long, empty, or unbroken.
|
|
11
|
+
|
|
12
|
+
## 1. Scroll ownership — decide this BEFORE writing layout CSS
|
|
13
|
+
|
|
14
|
+
The single most common agent-built layout bug is an app shell where the wrong thing scrolls: the whole page scrolls when only a panel should, two panels fight over the scrollbar, or a "fixed" header scrolls away. Prevent it by naming ownership up front, in `DESIGN.md` and in the component:
|
|
15
|
+
|
|
16
|
+
- **What scrolls?** Name the ONE element that owns vertical scroll for this region.
|
|
17
|
+
- **What stays fixed?** Header, sidebar, footer, toolbar — list them.
|
|
18
|
+
- **Where is height determined?** The scroll container needs a bounded height ancestor, or it will grow instead of scroll.
|
|
19
|
+
|
|
20
|
+
Rules:
|
|
21
|
+
|
|
22
|
+
- **One scroll container per region unless each extra one has a named job.** Nested scrollbars with no declared responsibility are a defect — the user loses track of what a wheel/trackpad gesture will move.
|
|
23
|
+
- Full-height shells are bounded by `100dvh`/`100dvb` (dynamic viewport units), never `100vh` — `vh` causes the iOS Safari address-bar jump.
|
|
24
|
+
- A sticky element (`position: sticky`) follows document scroll; a fixed shell region (grid row/column with `overflow: auto` body) owns its own scroll. Do not mix the two models in one region without reason.
|
|
25
|
+
|
|
26
|
+
## 2. The two CSS contracts agents get wrong
|
|
27
|
+
|
|
28
|
+
These two are worth memorizing verbatim. They fail *silently* — the layout looks right until content arrives.
|
|
29
|
+
|
|
30
|
+
**Bounded scroll shell** (fixed header/footer, scrolling body):
|
|
31
|
+
|
|
32
|
+
```css
|
|
33
|
+
.shell {
|
|
34
|
+
display: grid;
|
|
35
|
+
grid-template-rows: auto minmax(0, 1fr) auto; /* header / body / footer */
|
|
36
|
+
max-block-size: 100dvb;
|
|
37
|
+
}
|
|
38
|
+
.shell__body {
|
|
39
|
+
min-block-size: 0; /* WITHOUT THIS the grid child refuses to shrink and overflow never fires */
|
|
40
|
+
overflow: auto;
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
The `min-block-size: 0` (or `min-height: 0`) on the scroll child is the fix for "why won't my panel scroll — it just pushes the footer off-screen." A grid/flex child's default `min-*-size: auto` refuses to shrink below its content. The same applies to a flex column: the scrollable child needs `min-height: 0`.
|
|
45
|
+
|
|
46
|
+
**Overflow-safe intrinsic grid** (repeat as many columns as fit, no media queries):
|
|
47
|
+
|
|
48
|
+
```css
|
|
49
|
+
.grid {
|
|
50
|
+
display: grid;
|
|
51
|
+
gap: var(--gap);
|
|
52
|
+
grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
The inner `min(16rem, 100%)` is load-bearing: plain `minmax(16rem, 1fr)` forces a 16rem track even when the container is 12rem wide, causing horizontal overflow on narrow screens. `min(…, 100%)` lets the track collapse below its floor when space is genuinely tight. Use `auto-fit` to stretch the last row, `auto-fill` to keep empty tracks.
|
|
57
|
+
|
|
58
|
+
## 3. Named layout primitives (shared vocabulary)
|
|
59
|
+
|
|
60
|
+
Build shells from these named primitives instead of ad-hoc fl/grid. Naming them makes `DESIGN.md` Section 5 and subagent handoffs precise ("wrap it in a `sidebar` with a 20rem aside" beats "put it on the left, roughly"). Lineage: Every Layout + web.dev one-line layouts.
|
|
61
|
+
|
|
62
|
+
| Primitive | Spatial job | Core mechanic |
|
|
63
|
+
|---|---|---|
|
|
64
|
+
| **stack** | Vertical rhythm between siblings | flex column + `gap`, or `> * + *` margin |
|
|
65
|
+
| **cluster** | Wrapping row of items (tags, actions) | `flex-wrap: wrap` + `gap`; wraps before overflow |
|
|
66
|
+
| **content-limiter** | Readable prose measure inside a fluid parent | `max-inline-size: ~65ch; margin-inline: auto` |
|
|
67
|
+
| **sidebar** | Narrow aside + fluid main, wraps when tight | flex; aside fixed basis, main `min-inline-size` floor, both `flex-wrap` |
|
|
68
|
+
| **switcher** | N equal regions: row when roomy, stack when tight, NO breakpoint | flex + `min()` basis so it flips at a content threshold |
|
|
69
|
+
| **cover** | Centered region between optional header/footer, min viewport tall | grid rows `auto 1fr auto`, `min-block-size: 100dvb` |
|
|
70
|
+
| **frame** | Media held to an aspect ratio | `aspect-ratio` + `object-fit: cover` |
|
|
71
|
+
| **reel** | Row that scrolls horizontally instead of wrapping | `overflow-inline: auto` + `scroll-snap`; declare keyboard access |
|
|
72
|
+
| **imposter** | Overlay centered over a parent without changing document order | `position: absolute` + translate; do not use to reorder focus |
|
|
73
|
+
| **overlay-stack** | Several layers intentionally in one cell | single grid cell, all children `grid-area: 1/1` |
|
|
74
|
+
| **scroll-body-shell** | Fixed shell regions, only the body scrolls | §2 bounded scroll shell |
|
|
75
|
+
| **fixed-sidenav-shell** | Side nav stays put, main scrolls | grid columns `auto 1fr`, main is the scroll owner |
|
|
76
|
+
| **list-detail** | Explorable list beside its detail region | two-column grid, each pane's scroll ownership named |
|
|
77
|
+
| **sticky-aside** | Support content stays visible during a long read | `position: sticky; top:` on the aside, document scroll |
|
|
78
|
+
|
|
79
|
+
## 4. Container-local vs viewport-level responsiveness
|
|
80
|
+
|
|
81
|
+
Ask **what the layout is responding to** before reaching for a breakpoint:
|
|
82
|
+
|
|
83
|
+
- The component should adapt to *its own available width* (a card that's wide in main but narrow in a rail) → wrap it in `container-type: inline-size` and use `@container`. This is correct far more often than agents assume, because a component rarely knows the viewport it lands in.
|
|
84
|
+
- The *page frame itself* changes (sidebar collapses, columns drop) → `@media`.
|
|
85
|
+
|
|
86
|
+
Prefer intrinsic adaptation (`switcher`, `sidebar`, intrinsic grid, `clamp()`) over any query — the best breakpoint is often none. Use breakpoint *names* for layout states, never device names (`--bp-wide`, not `--bp-ipad`).
|
|
87
|
+
|
|
88
|
+
## 5. Recipes are spatial models, not product categories
|
|
89
|
+
|
|
90
|
+
Choose a layout by the screen's spatial shape, not its product label. A settings page and a docs app both want `fixed-sidenav-shell`; a support inbox and a file browser both want `list-detail`; a metrics view and a photo gallery both want an intrinsic grid. Do not invent a bespoke "dashboard layout" when `page-grid + intrinsic grid + cluster` already covers it — and do not force marketing-page structure (hero, zigzag, bento) onto a task app.
|
|
91
|
+
|
|
92
|
+
## 6. Content stress — the layout is not done until it survives this
|
|
93
|
+
|
|
94
|
+
Landing pages fail on taste; app shells fail on *content*. Before declaring any layout done, stress every region against:
|
|
95
|
+
|
|
96
|
+
- **Empty** — no rows, no avatar, no value. Does the region collapse gracefully or leave a broken frame?
|
|
97
|
+
- **Long label** — a 40-char name in a 12-char slot. Truncate (`text-overflow: ellipsis`) or wrap by design, never by accident.
|
|
98
|
+
- **Long paragraph** — does the measure stay readable, or does text run 200 chars wide?
|
|
99
|
+
- **Unbroken string** — a URL or token with no spaces. Needs `overflow-wrap: anywhere` / `min-inline-size: 0`, or it forces horizontal scroll.
|
|
100
|
+
- **Reflow** — at 375px width the layout reflows to a single readable column with NO horizontal scrollbar. Two-dimensional scrolling of primary content is a fail.
|
|
101
|
+
- **Direction** — if the app supports RTL, the layout uses logical properties (`margin-inline`, `inset-inline-start`) so it mirrors correctly.
|
|
102
|
+
|
|
103
|
+
A layout that only holds the happy-path mock is not finished. Drive these states in `/visual-qa` alongside the interaction states the style skill requires.
|
|
104
|
+
|
|
105
|
+
## Boundary
|
|
106
|
+
|
|
107
|
+
This file owns spatial structure only. It never sets color, typography, shadow, radius, or motion values — those trace to `DESIGN.md` and the loaded style skill. If you find yourself adding a brand color to a layout primitive, stop: the primitive stays layout-only and the styling wraps or composes around it.
|
|
@@ -104,9 +104,17 @@ Mocks are a last resort, not a default. The priority order:
|
|
|
104
104
|
- **Deterministic**: no `sleep`, no wall-clock dependence, no order dependence (`-shuffle=on`, pytest-randomly, vitest random seed). Inject a `Clock`. Subscribe to the event, do not poll for it. Time-based flake is a bug, not a test issue.
|
|
105
105
|
- **Isolated**: every test starts from a known fixture and tears down. `t.TempDir()`, `t.Setenv()`, transactional rollback for DB tests. Two tests passing individually but failing together is a fixture leak — fix it immediately.
|
|
106
106
|
|
|
107
|
-
### Prompt tests
|
|
107
|
+
### Prompt tests: NEVER assert prose
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
**FORBIDDEN — NO EXCEPTIONS: a test MUST NOT assert natural-language prompt text.** `expect(prompt).toContain("based on GPT-5.6")`, `not.toContain("old wording")`, `toMatchSnapshot()` on prose, grepping a sentence fragment — every one of these is pretend-coverage. It stays green while the behavior it claims to guard breaks, then blocks every legitimate rewording until someone bumps the pinned string. A reviewer MUST block it as HIGH; deleting such a test is a fix, not a coverage loss. "A nearby test already does it" is not a defense — that test is the disease, not the convention.
|
|
110
|
+
|
|
111
|
+
Assert ONLY what a machine consumes:
|
|
112
|
+
|
|
113
|
+
- the builder's routing decision — `expect(getPromptSource(model)).toBe("gpt-5-6")`, never the sentence that routing produces
|
|
114
|
+
- a structural token the runtime dispatches on — a tool name, a tag like `<agent-identity>`, a parsed frontmatter field
|
|
115
|
+
- the conditional the code enforces — skill loaded → tool present; `verbose=false` → directive absent
|
|
116
|
+
|
|
117
|
+
If no machine consumes the text, there is no seam: write NO test and say so in the PR; review guards prose. When you DELEGATE test-writing, hand the child the behavior the test must distinguish ("fails if override precedence breaks"), never a ready-made assertion string, prompt fragment, or marker to copy — a prescribed mechanism that is wrong gets implemented faithfully, and the error ships with a green suite.
|
|
110
118
|
|
|
111
119
|
### Anti-patterns the skill rejects
|
|
112
120
|
|
|
@@ -119,6 +127,8 @@ When tests cover LLM prompts or agent outputs, assert on **parsed structure, dec
|
|
|
119
127
|
| Snapshot tests for everything | Locks formatting, not behavior. | Snapshots for *structure* (CLI help, JSON shape). Assertions for *behavior*. |
|
|
120
128
|
| Removing a failing test to "unblock CI" | You just deleted a bug report. | Fix the code or fix the test — never delete to silence. |
|
|
121
129
|
| `assert result is not None` and stopping there | Passes when result is garbage. | Assert the *value*, not its existence. |
|
|
130
|
+
| Expected value derived from the output under test (`expect(config.prompt).toBe(getPrompt(config.model))` when the criterion is about `config.prompt`) | Recomputes a projection of the output and compares it to itself — passes even when the artifact is built from the wrong input. | Derive the expected value from the test's *input*: `expect(config.prompt).toBe(getPrompt(inputModel))` (independent known-good builder fed the fixture's input), or a stable builder routing decision. |
|
|
131
|
+
| Override/precedence fixture equal to its fallback (override == system default) | The assertion passes whether or not the code honored the override — precedence is never exercised. | Make every value the code must select, preserve, or override differ from its fallback. Prove it: temporarily force the regression the test names, watch it fail, revert. |
|
|
122
132
|
| Single happy-path E2E, no edges | Most bugs live on edges. | Edges are unit-test territory — but include at least one E2E that exercises an error path. |
|
|
123
133
|
|
|
124
134
|
---
|
|
@@ -176,7 +176,7 @@ Only after verification passes:
|
|
|
176
176
|
When all top-level checkboxes in `## TODOs` and `## Final Verification Wave` are complete:
|
|
177
177
|
|
|
178
178
|
1. Run the plan's final verification commands.
|
|
179
|
-
2. Complete the **Global Review and Debugging Gate** before any completion claim, PR creation, PR handoff, branch handoff, or merge:
|
|
179
|
+
2. Complete the **Global Review and Debugging Gate** before any completion claim, PR creation, PR handoff, branch handoff, or merge. The gate's pass binds to the commit SHA it reviewed and covers every later checkpoint at that same SHA — never re-run it on an already-passed SHA; re-run only when new commits land:
|
|
180
180
|
- Invoke the `review-work` skill with the final diff, changed files, user goal, constraints, run command, and verification evidence. All five review lanes must return PASS. A timeout, missing deliverable, ack-only child, `BLOCKED:`, or inconclusive lane is a gate failure, not approval.
|
|
181
181
|
- Run a debugging-oriented runtime audit even when the review passes: name at least three plausible failure hypotheses for the changed surface, run the distinguishing checks against the actual artifact, and append the ruled-out or confirmed result to `.omo/start-work/ledger.jsonl`.
|
|
182
182
|
- If any review lane or debugging hypothesis fails, invoke the `debugging` skill, confirm root cause with runtime evidence, add the minimal failing test or reproduction, fix it, rerun the affected verification, then rerun the Global Review and Debugging Gate.
|
|
@@ -128,9 +128,13 @@ are delegating never justify a planner: plan directly in the notepad.
|
|
|
128
128
|
Never spawn `plan` before the discovery wave has returned.
|
|
129
129
|
|
|
130
130
|
## 1. Create the goal with binding success criteria
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
You MUST register the goal with the `create_goal` tool — NOT prose,
|
|
132
|
+
NOT the notepad, NOT the plan: the registered goal is the binding
|
|
133
|
+
contract for the whole run, and skipping it is a defect. Call it with
|
|
134
|
+
exactly `objective`; do not include `status`. Only when no goal tool
|
|
135
|
+
exists on this surface, open your reply with a `# Goal` block treated
|
|
136
|
+
as binding. Goals are unlimited; never invent a numeric budget or
|
|
137
|
+
limit.
|
|
134
138
|
The criteria MUST list, upfront:
|
|
135
139
|
- The user-visible deliverable in one line, and the tier with its
|
|
136
140
|
justification.
|
|
@@ -143,6 +147,9 @@ The criteria MUST list, upfront:
|
|
|
143
147
|
- For each criterion, the failing-first proof (test id or scenario)
|
|
144
148
|
that will be captured RED BEFORE the implementation and GREEN after.
|
|
145
149
|
Evidence added after the green code does NOT satisfy this.
|
|
150
|
+
- WHEN TO STOP, in one line: "I'll stop right away when <the exact
|
|
151
|
+
observable state that ends this run>". The Stop rules bind to this
|
|
152
|
+
line — the moment it holds, you stop.
|
|
146
153
|
|
|
147
154
|
These scenarios are the contract. You are not done until every one of
|
|
148
155
|
them PASSES with its evidence captured.
|
|
@@ -243,6 +250,18 @@ Until every success criterion PASSES with its evidence captured:
|
|
|
243
250
|
scenario captured failing when no test seam exists. It must fail
|
|
244
251
|
for the RIGHT reason (not a syntax error, not a missing import).
|
|
245
252
|
Paste RED output into the notepad. No production code yet.
|
|
253
|
+
TEST-ONLY TARGET (regression coverage for behavior that is already
|
|
254
|
+
correct): there is no natural RED and no production change to make
|
|
255
|
+
— this is the sole exception to the production-RED/GREEN steps.
|
|
256
|
+
Substitute a mutation proof: temporarily force the exact regression
|
|
257
|
+
each new assertion names (revert the fix commit or break the seam,
|
|
258
|
+
never committed), capture the assertion failing, then revert the
|
|
259
|
+
mutation and capture GREEN. An assertion that stays green under its
|
|
260
|
+
mutation is not coverage — fix the fixture (a value equal to the
|
|
261
|
+
default it must override proves nothing) or assert the artifact the
|
|
262
|
+
criterion names, never an expected value re-derived from the output
|
|
263
|
+
under test. Reverting the probe IS the GREEN; skip step 3's
|
|
264
|
+
production change for a TEST-ONLY task and go to step 4.
|
|
246
265
|
PROSE TARGET (prompt, SKILL.md, rule, markdown): the wording is
|
|
247
266
|
NOT the behavior — never pin sentences, phrase presence/absence,
|
|
248
267
|
or word/char counts. PIN only a machine-consumed value (parsed
|
|
@@ -251,7 +270,8 @@ Until every success criterion PASSES with its evidence captured:
|
|
|
251
270
|
two shipped copies. A pure-prose change with no machine consumer
|
|
252
271
|
has NO seam: ship it on review + QA-by-read, NO test — a text grep
|
|
253
272
|
is pretend-coverage, not RED proof.
|
|
254
|
-
3. GREEN
|
|
273
|
+
3. GREEN (skip for TEST-ONLY — reverting the mutation is GREEN): write
|
|
274
|
+
the SMALLEST production change that flips RED→GREEN.
|
|
255
275
|
Before GREEN work that depends on external review, PR, issue, or
|
|
256
276
|
branch state, refresh current branch/PR/issue state and preserve existing ordering/policy;
|
|
257
277
|
separate compatibility detection from policy changes unless the goal
|
|
@@ -389,10 +409,11 @@ message + present for approval.
|
|
|
389
409
|
revert, capture the proof failing, then redo the change. Exempt
|
|
390
410
|
only: pure formatting, comment-only edits, dependency bumps with no
|
|
391
411
|
behavior delta, rename-only moves — justify each in `## Findings`.
|
|
392
|
-
- A test that
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
412
|
+
- A test that cannot fail for the regression it names is NOT
|
|
413
|
+
evidence: mock-call assertions, pinned constants, a fixture equal
|
|
414
|
+
to the default it must override, an expected value re-derived from
|
|
415
|
+
the output under test. Prefer a real-surface proof with no new
|
|
416
|
+
test over a tautological one.
|
|
396
417
|
- Refactors: characterization tests pinning current observable
|
|
397
418
|
behavior FIRST, green against the old code, green throughout.
|
|
398
419
|
- Smallest correct change. No drive-by refactors.
|
|
@@ -414,9 +435,15 @@ message + present for approval.
|
|
|
414
435
|
- After each result, ask whether the user's core request can now be
|
|
415
436
|
answered with useful evidence in hand. If yes, answer now — skip any
|
|
416
437
|
remaining retrieval, ceremony, or verification that adds no evidence.
|
|
417
|
-
-
|
|
438
|
+
- The STOP GOAL: every scenario PASSES with captured evidence, every
|
|
418
439
|
cleanup receipt is recorded, notepad is current, and (if gate
|
|
419
|
-
triggered) reviewer approved unconditionally.
|
|
440
|
+
triggered) reviewer approved unconditionally. Above ALL of that, the
|
|
441
|
+
decisive test — outranking every other consideration — is: are the
|
|
442
|
+
completion conditions FUNDAMENTALLY fulfilled, is the user's problem
|
|
443
|
+
ACTUALLY SOLVED in observable behavior? If no, you are NOT done,
|
|
444
|
+
whatever the ledger says. If yes, deliver the final message and STOP
|
|
445
|
+
— no hesitation, no extra verification pass, no polish loop. Work
|
|
446
|
+
past the stop goal is scope creep, not diligence.
|
|
420
447
|
- Leftover QA state (live process, `tmux` session, browser context,
|
|
421
448
|
bound port, temp file / dir) means NOT done. Tear it down, record
|
|
422
449
|
the receipt, then continue.
|
|
@@ -14,7 +14,7 @@ This skill is intentionally compact. The full workflow lives in `references/full
|
|
|
14
14
|
## Required First Steps
|
|
15
15
|
|
|
16
16
|
1. Open `references/full-workflow.md`.
|
|
17
|
-
2. Read through **Bootstrap** (including its tier triage), **Execution Loop**,
|
|
17
|
+
2. Read through **Bootstrap** (including its tier triage), **Execution Loop**, the **Manual-QA channels** table, and the **Stop Rules** before running any ULW command or recording evidence.
|
|
18
18
|
3. If the task has code edits, tests, QA, or commit work, follow the full workflow's delegation and evidence rules. Tests alone never prove done.
|
|
19
19
|
|
|
20
20
|
## Non-Negotiables
|
|
@@ -23,7 +23,7 @@ This skill is intentionally compact. The full workflow lives in `references/full
|
|
|
23
23
|
- After any compaction or context loss, re-read brief + goals + ledger FIRST plus `omo ulw-loop status --json`, then resume; never re-plan from scratch.
|
|
24
24
|
- If `omo ulw-loop create-goals` says the existing aggregate is already complete, start unrelated new work with a fresh `--session-id <new-id>` instead of steering or forcing the completed default state. Use `--force` only to intentionally overwrite completed evidence.
|
|
25
25
|
- Every success criterion needs observable evidence from a real surface: a channel (terminal/TUI via the xterm.js web terminal, HTTP, browser, computer-use) or, for CLI- or data-shaped criteria, an auxiliary surface (CLI stdout, DB diff, parsed config dump).
|
|
26
|
-
- Evidence is bound to
|
|
26
|
+
- Evidence is bound to the tree it was captured at (`git rev-parse --short "HEAD^{tree}"`); it goes stale only when tracked content changes — a rebase or amend that keeps the tree identical keeps it valid. When the tree differs, re-run at the current HEAD and re-record, never relabel or regenerate. Record only after cleanup receipts exist.
|
|
27
27
|
- Delegate code edits, test writes, fixes, and QA execution to right-sized Codex subagents when the workflow requires it.
|
|
28
28
|
- Every `spawn_agent` message starts with `TASK:`, then names `DELIVERABLE`, `SCOPE`, and `VERIFY`; put role and specialty instructions inside `message`; use `fork_turns: "none"` (v1: `fork_context: false`) unless full history is truly required.
|
|
29
29
|
- Plan and reviewer agents may run for a long time; spawn them in the background and keep doing independent root work. Between `wait_agent` calls, back off — double the timeout up to ~5 minutes — instead of spinning short cycles.
|