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: .opencode/command/sync-upstream.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,19 @@ Workflow:
27
27
- never drop local PRO/custom behavior just to make the sync easier
28
28
- do not use destructive git commands
29
29
9. After the batch is applied, run verification:
30
-
-`bun typecheck` from `packages/opencode`
31
-
-`bun run test:ci` from `packages/opencode`
32
-
- if the batch touches SDK generation inputs or SDK package code, also run `./packages/sdk/js/script/build.ts` from repo root
30
+
- always run `bun --cwd packages/opencode typecheck`
31
+
- always run `bun --cwd packages/opencode test:ci`
32
+
- always run `bun lint` from repo root
33
+
- if the batch touches shared packages, cross-package contracts, schemas, or anything broad, also run `bun typecheck` from repo root
34
+
- if the batch touches `packages/core`, also run `bun --cwd packages/core test:ci` and `bun --cwd packages/core typecheck`
35
+
- if the batch touches `packages/ui`, also run `bun --cwd packages/ui test:ci` and `bun --cwd packages/ui typecheck`
36
+
- if the batch touches `packages/app`, also run `bun --cwd packages/app test:ci`, `bun --cwd packages/app typecheck`, and `bun --cwd packages/app build`
37
+
- if the batch touches frontend behavior, routes, UI components, or browser-facing contracts, also run `bun --cwd packages/app test:e2e:local`
38
+
- if the batch touches `packages/sdk/js` or SDK generation inputs, also run `bun --cwd packages/sdk/js build`
39
+
- if the batch touches `packages/plugin`, also run `bun --cwd packages/plugin build`
40
+
- if the batch touches `packages/desktop`, also run `bun --cwd packages/desktop build`
41
+
- if the batch touches storybook or design-system-facing files, also run `bun --cwd packages/storybook build`
42
+
- if the batch touches CLI packaging/build pipeline code, also run `bun --cwd packages/opencode build`
33
43
10. If verification fails, stop immediately. Do not push. Do not silently revert. Report:
34
44
- which commits were applied
35
45
- where it failed
@@ -46,6 +56,7 @@ Execution rules:
46
56
- Do not create a final commit unless the git operation itself requires it and the batch is valid.
47
57
- If no safe small batch can be identified, explain why and propose the next safest candidate commits.
48
58
- Keep the response focused on: selected commits, conflict decisions, test results, and next batch recommendation.
59
+
- Choose the verification set from the actual changed paths. Prefer more coverage when unsure.
49
60
- Be extremely concise. Prefer fragments over prose.
50
61
- Do not write long explanations, introductions, retrospectives, or motivational text.
51
62
- Keep the final user-facing response under 8 short lines unless there is a blocker or test failure.
0 commit comments