You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,29 @@ Only proceed with the commit if it passes. If it fails, fix the issues first.
8
8
9
9
**Exception:** If the commit contains only documentation and markdown changes (`.md` files), you may skip `just pre-commit`.
10
10
11
-
`just pre-commit`now runs the opencode generation flow (`packages/opencode/script/generate.ts`), which also runs formatting/linting steps in the submodule. It is expected that this can modify files you did not directly edit.
11
+
`just pre-commit`intentionally runs generation and formatting steps that may modify files you did not edit directly (including markdown). Treat these diffs as expected outputs of the check pipeline.
12
12
13
-
When this happens, review those extra diffs before committing and confirm they are mechanical generation/format/lint changes (no unintended behavior changes).
13
+
If those diffs are mechanical (generation/format/lint output only), they should be committed with the related change. Do not treat them as noise and do not leave them uncommitted.
2. Review all newly changed files and confirm they are mechanical (no unintended behavior changes).
24
+
3. Commit/push submodule generated changes first when present.
25
+
4. Run `just update-opencode-commit`.
26
+
5. Commit/push the superproject pointer + Dockerfile pin update when changed.
14
27
15
28
## Bun Lockfile Updates
16
29
17
30
`bun.lock` file updates are expected in this repository across all `bun.lock` files when changing versions of our own packages (for example `packages/cli-node`, `packages/core`, and related workspace packages). They can also be produced by normal `just pre-commit`/build flows.
18
31
19
32
When these `bun.lock` changes are tied to intended package/version updates, they are valid and should be committed with the related change. Do not treat them as unexpected noise.
33
+
This same expected-and-commit rule applies to other mechanical formatter/generator outputs from `just pre-commit`, including markdown rewrites.
Copy file name to clipboardExpand all lines: CLAUDE.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,29 @@ Only proceed with the commit if it passes. If it fails, fix the issues first.
8
8
9
9
**Exception:** If the commit contains only documentation and markdown changes (`.md` files), you may skip `just pre-commit`.
10
10
11
-
`just pre-commit`now runs the opencode generation flow (`packages/opencode/script/generate.ts`), which also runs formatting/linting steps in the submodule. It is expected that this can modify files you did not directly edit.
11
+
`just pre-commit`intentionally runs generation and formatting steps that may modify files you did not edit directly (including markdown). Treat these diffs as expected outputs of the check pipeline.
12
12
13
-
When this happens, review those extra diffs before committing and confirm they are mechanical generation/format/lint changes (no unintended behavior changes).
13
+
If those diffs are mechanical (generation/format/lint output only), they should be committed with the related change. Do not treat them as noise and do not leave them uncommitted.
2. Review all newly changed files and confirm they are mechanical (no unintended behavior changes).
24
+
3. Commit/push submodule generated changes first when present.
25
+
4. Run `just update-opencode-commit`.
26
+
5. Commit/push the superproject pointer + Dockerfile pin update when changed.
14
27
15
28
## Bun Lockfile Updates
16
29
17
30
`bun.lock` file updates are expected in this repository across all `bun.lock` files when changing versions of our own packages (for example `packages/cli-node`, `packages/core`, and related workspace packages). They can also be produced by normal `just pre-commit`/build flows.
18
31
19
32
When these `bun.lock` changes are tied to intended package/version updates, they are valid and should be committed with the related change. Do not treat them as unexpected noise.
33
+
This same expected-and-commit rule applies to other mechanical formatter/generator outputs from `just pre-commit`, including markdown rewrites.
0 commit comments