Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
315 commits
Select commit Hold shift + click to select a range
683b3e9
chore(assets): add canonical brand logo source
letnull19A Oct 24, 2026
479dce7
chore(prompts): migrate commit command to copilot prompt
letnull19A Oct 24, 2026
50d1a80
chore(assets): replace brand logos with canonical logo.png
letnull19A Oct 24, 2026
a8f36a2
feat(frontend): add Tailwind CSS v4 setup and adjust shell gaps
letnull19A Oct 24, 2026
ab37cb2
docs(design): relax gradient/shadow rules
letnull19A Oct 24, 2026
125e790
refactor(frontend): migrate custom CSS classes to Tailwind utilities
letnull19A Oct 24, 2026
f8ef22a
feat(backend): expose versioned health alias for api clients
letnull19A Oct 24, 2026
0a63cbb
feat(cli): route cloud chat through backend opencode api
letnull19A Oct 25, 2026
98cb69a
feat(cli): show backend health on home screen
letnull19A Oct 25, 2026
fe396f8
refactor(frontend): use collapsible sidebar and inline org empty state
letnull19A Oct 25, 2026
bc48c4b
refactor(cli): drop serve password plumbing
letnull19A Oct 25, 2026
c2b7010
feat(contracts): enforce nested project 1:1 model with status and eff…
letnull19A Oct 25, 2026
6b444d5
feat(backend): migrate projects to org-owned 1:1 with soft-delete index
letnull19A Oct 25, 2026
1b41095
feat(backend): serve canonical nested org project API with restore an…
letnull19A Oct 25, 2026
1dc1c10
feat(frontend): route org-nested project shell with legacy global red…
letnull19A Oct 25, 2026
f5dde58
feat(frontend): bind data layer to nested org project endpoints
letnull19A Oct 25, 2026
92fac63
feat(cli): drop local ref resolution for thin cloud client
letnull19A Oct 25, 2026
89d3c03
docs(cli): document thin cloud client without local file reading
letnull19A Oct 25, 2026
5d66671
feat(cli): simplify home menu to chat and exit with connecting status
letnull19A Oct 25, 2026
6e404e7
test(cli): align home and tui tests with two-item menu
letnull19A Oct 25, 2026
e95da16
fix(backend): code-first drizzle migration chain with integrity checker
letnull19A Oct 28, 2026
61407a2
feat(frontend): restore org pages dashboard shell
letnull19A Oct 28, 2026
6d8de38
feat(chat): port opencode chat to web with wire contract
letnull19A Oct 28, 2026
6ae2038
chore(root): add dev:logs pm2 shortcut
letnull19A Oct 28, 2026
c353861
docs: document pm2 dev stand in README
letnull19A Oct 28, 2026
0d96af5
feat(contracts): add session list response to wire contract
letnull19A Oct 28, 2026
a8b85ed
feat(backend): scope opencode proxy by project and add v1 session end…
letnull19A Oct 28, 2026
5e912de
docs: document react query data hook conventions
letnull19A Oct 28, 2026
51f9ffd
chore(env): align opencode environment contract
letnull19A Oct 28, 2026
a771d59
refactor(frontend): migrate data hooks to react query and scope sessi…
letnull19A Oct 28, 2026
b9cce8a
feat(backend): unify opencode stand password contract
letnull19A Oct 28, 2026
81ec6ea
chore(compose): pass the stand password to the backend service
letnull19A Oct 28, 2026
863885c
feat(backend): distinguish upstream auth failures from outages
letnull19A Oct 28, 2026
584f51f
docs: document the local opencode stand and pm2 env trap
letnull19A Oct 28, 2026
0aeda2b
fix(backend): create opencode session with the gated project dir as v…
letnull19A Oct 28, 2026
4c9c42a
fix(backend): opencode liveness on /api/info, stop masking upstream 4…
letnull19A Oct 28, 2026
2586da0
fix(backend): serialize external cause on the transport path and docu…
letnull19A Oct 29, 2026
57be2e6
feat(contracts): mirror the real opencode Session/SessionStatus/Event…
letnull19A Oct 29, 2026
65398fe
fix(backend): align mirror route error metadata with actually reachab…
letnull19A Oct 29, 2026
87d8c35
docs(backend): mark /api/health as sdk-surface inventory, not our hea…
letnull19A Oct 29, 2026
aa5c6cc
test(backend): drop redundant inline restoreDoFetch in cause-serializ…
letnull19A Oct 29, 2026
acb1770
docs(contracts): add live-stand provenance artifact and resolve dispu…
letnull19A Oct 29, 2026
4291b8e
feat(contracts): add domain session contracts for /api/sessions (card 4)
letnull19A Oct 29, 2026
918f4a3
feat(backend): add domain /api/sessions routes translating the sessio…
letnull19A Oct 29, 2026
afb05dc
docs(contracts): extend provenance artifact with v2 SSE frame shapes …
letnull19A Oct 29, 2026
68c9347
refactor(backend): extract the SSE relay mechanics into common/sse-relay
letnull19A Oct 29, 2026
49944c3
feat(contracts): add domain message and SSE frame contracts (card 4)
letnull19A Oct 29, 2026
bfacbf7
feat(backend): add domain messages and SSE events on /api/sessions
letnull19A Oct 29, 2026
e449b40
test(backend): cover domain messages, SSE translation and stranger gate
letnull19A Oct 29, 2026
31e8d39
fix(sessions): close card-4 review findings (frame schemas, hoist pro…
letnull19A Oct 29, 2026
280779c
feat(frontend): add the domain sessions api layer, drop @opencode-ai/sdk
letnull19A Oct 29, 2026
78975eb
refactor(frontend): session hooks and tabs ride the domain contract
letnull19A Oct 29, 2026
0e8fa7d
test(frontend): cover the domain session layer end-to-end at the boun…
letnull19A Oct 29, 2026
28c3033
docs(contracts): capture the live interrupt path into the provenance …
letnull19A Oct 29, 2026
ab9d023
feat(contracts): domain interrupt + provider inventory contract
letnull19A Oct 29, 2026
8475544
feat(backend): domain interrupt + provider inventory on /api/sessions
letnull19A Oct 29, 2026
efc897b
refactor(frontend): domain interrupt/providers replace the last mirro…
letnull19A Oct 29, 2026
06e4a4f
test(frontend): architecture guard — no runner sdk, no mirror transport
letnull19A Oct 29, 2026
658bac7
fix(backend): send the server Basic credentials on the global/health …
letnull19A Oct 29, 2026
344a818
chore(project): rename project tag from devbox-backend to rush-code
letnull19A Oct 29, 2026
39ab8b1
docs: sync AGENTS.md with rush-code naming and opencode backend/front…
letnull19A Oct 29, 2026
141da83
fix(chat): stop losing streamed agent answers
letnull19A Oct 29, 2026
3acaab8
feat(sessions): optional model on create + prompt (SessionInfoModel ref)
letnull19A Oct 29, 2026
b3bcc63
feat(chat): provider->model picker (domain providers, survives reload)
letnull19A Oct 29, 2026
1021b1f
feat(frontend): filter chat model selector to opencode go/zen providers
letnull19A Oct 29, 2026
cf130e6
feat(sessions): add GET /api/sessions/models + single-dropdown ModelS…
letnull19A Oct 29, 2026
d5bd557
fix(chat): handle opencode 2.2.0 native stream frames (text.delta/end…
letnull19A Oct 30, 2026
17003ca
fix(sessions): don't send model in prompt body (upstream rejects it)
letnull19A Oct 30, 2026
a4bf91f
fix(chat): forward selected model into session creation (was silently…
letnull19A Oct 30, 2026
5e71324
test(chat): fix createSession model arg index after ensureSession fix
letnull19A Oct 30, 2026
787f269
fix(chat): finalize on session.step.ended (opencode 2.2.3 completion …
letnull19A Oct 30, 2026
040afb0
docs: run opencode stand from REPOS_ROOT (projects dir)
letnull19A Oct 30, 2026
3d73822
fix(chat): drop SSE frames after user stop (no post-cancel append)
letnull19A Oct 30, 2026
fbeca6b
docs: sync AGENTS.md with domain sessions, stream events, model and s…
letnull19A Oct 30, 2026
1e065b7
docs(agents): refresh structure and architecture (domain sessions, SS…
letnull19A Oct 30, 2026
4041c77
chore(backend): checkpoint pre-domain-restructure tree
letnull19A Nov 1, 2026
a4c0885
refactor(backend): consolidate common scope (crypto, keys, storage ja…
letnull19A Nov 1, 2026
278df2d
refactor(backend): invert health probes and move keys HTTP surface to ai
letnull19A Nov 1, 2026
ba3a0ce
docs(plan): record phase-6 decisions and phase-0/1 evolution log
letnull19A Nov 1, 2026
6489f85
refactor(backend): move auth to common scope as sibling of users
letnull19A Nov 1, 2026
07abc10
refactor(backend): split organization members and invites out of orga…
letnull19A Nov 1, 2026
040e197
refactor(backend): move projects under organizations/projects and ext…
letnull19A Nov 1, 2026
4b83856
refactor(backend): move ai runtime and workers into processes scope
letnull19A Nov 1, 2026
f7e8dfd
refactor(backend): collapse repos and workspaces into organizations/p…
letnull19A Nov 1, 2026
c71e021
docs(backend): document scope layers and refresh paths after restructure
letnull19A Nov 1, 2026
c3a4455
docs(plan): mark backend-domain-restructure as implemented
letnull19A Nov 1, 2026
f258587
revert(backend): reset tree to pre-restructure checkpoint
letnull19A Nov 1, 2026
638766b
refactor(backend): consolidate common scope (crypto, keys, storage, h…
letnull19A Nov 1, 2026
c4fabcc
refactor(backend): merge org-projects routes into a single ProjectsCo…
letnull19A Nov 1, 2026
3c5db23
refactor(backend): move auth to common scope as sibling of users
letnull19A Nov 1, 2026
1f9facc
refactor(backend): drop version-bound V1Endpoint docs helper
letnull19A Nov 1, 2026
51fcb4c
test(repos): align stale e2e checks with uuid names and strict REPOS_…
letnull19A Nov 1, 2026
056a76f
refactor(backend): extract organization members and invites from Orga…
letnull19A Nov 1, 2026
702c082
refactor(backend): real organizations guard, nested members/invites m…
letnull19A Nov 1, 2026
2c53908
refactor(backend): drop uuid-v7 util and call Bun.randomUUIDv7 directly
letnull19A Nov 1, 2026
eba0b43
refactor(backend): move project access gate into projects domain
letnull19A Nov 1, 2026
166f534
refactor(backend): move ai runtime and workers into processes scope
letnull19A Nov 1, 2026
8699a96
refactor(backend): consolidate repos and workspaces into repository m…
letnull19A Nov 1, 2026
3c92096
docs(backend): adopt CODE_OF_CONDUCT v2 (utils, readonly, module layout)
letnull19A Nov 1, 2026
2dd43ed
docs: record domain-restructure decisions and refresh architecture/SD…
letnull19A Nov 1, 2026
9c70ac4
docs(backend): correct storage layout path in ARCHITECTURE
letnull19A Nov 1, 2026
e2675f5
refactor(backend): name DTO files by their module (CoC §6)
letnull19A Nov 1, 2026
53eeb77
docs(backend): align DTO filenames in ARCHITECTURE tree
letnull19A Nov 1, 2026
222cde0
refactor(backend): restructure users domain into types, repository an…
letnull19A Nov 1, 2026
b5a6358
test(backend): cover users service and password service
letnull19A Nov 1, 2026
b497299
docs(plan): record users domain refactor plan and decisions
letnull19A Nov 1, 2026
0ab8ad6
refactor(backend): turn password service into a users domain util
letnull19A Nov 1, 2026
c08a168
docs(backend): record password util conversion in plan and architecture
letnull19A Nov 1, 2026
e2879b2
fix(backend): require signed install state and enforce installation o…
letnull19A Nov 2, 2026
e312837
fix(backend): scope session events to the project and lock clone sour…
letnull19A Nov 2, 2026
463fd4f
feat(backend): switch organization and project deletion to soft delet…
letnull19A Nov 2, 2026
0d66d23
feat(backend): persist refresh tokens in Postgres with atomic rotation
letnull19A Nov 2, 2026
69f8c58
fix(backend): fail closed on missing identity across guards and services
letnull19A Nov 2, 2026
354b693
fix(backend): bound GitHub calls, require raw webhook body and env-dr…
letnull19A Nov 2, 2026
d2b56d7
refactor(backend): extract the project gate and jail into ProjectAcce…
letnull19A Nov 2, 2026
b04ff43
refactor(backend): route opencode upstream calls through a single runner
letnull19A Nov 2, 2026
f97cd9c
refactor(backend): move opencode upstream logic into OpencodeService
letnull19A Nov 2, 2026
aaab9d9
refactor(backend): split organization controllers by owned entity
letnull19A Nov 2, 2026
c4b7356
refactor(backend): move registry routes into their own module control…
letnull19A Nov 2, 2026
77ee673
refactor(backend): move the usage route into the billing module
letnull19A Nov 2, 2026
5c10319
feat(contracts): sync project contract and drop dead project routes
letnull19A Nov 2, 2026
f77b048
test(backend): cover health, module wiring, jwt guard and api error f…
letnull19A Nov 2, 2026
69fd83c
refactor: apply Code of Conduct mechanics across backend and contracts
letnull19A Nov 2, 2026
6337638
refactor(backend): align file names with their exported classes
letnull19A Nov 2, 2026
739a8aa
test(backend): run e2e postgres in testcontainers
letnull19A Nov 2, 2026
4f412e5
fix(backend): store local account emails lowercased
letnull19A Nov 2, 2026
1a9b3b2
fix(backend): break the github-projects module import cycle
letnull19A Nov 2, 2026
59db389
docs: record testcontainers rollout and live e2e findings
letnull19A Nov 2, 2026
7ecaabd
fix(test): bound the sessions SSE reader wait
letnull19A Nov 2, 2026
25a2cb9
test(backend): run e2e suites with a per-suite timeout
letnull19A Nov 2, 2026
8a76a46
chore(deps): bump @web2bizz/ui to 0.26.3
letnull19A Nov 3, 2026
a5d08d4
feat(frontend): move the project chat list into the sidebar
letnull19A Nov 3, 2026
4969427
feat(frontend): rebuild the chat on ui-kit primitives
letnull19A Nov 3, 2026
98e73de
feat(frontend): make the layer own its outer gutters
letnull19A Nov 3, 2026
8633aec
feat(frontend): finalize the chat layer layout
letnull19A Nov 3, 2026
319b06e
fix(frontend): use valid calc() spacing in the auth shell
letnull19A Nov 3, 2026
6cda463
feat(backend): add own session harness runner with direct model calls
letnull19A Nov 3, 2026
b645234
feat(backend): ask fallback chain over user-ordered paid models
letnull19A Nov 3, 2026
e904e11
feat(contracts): expose agent registry and session agent binding
letnull19A Nov 4, 2026
d765f13
feat(backend): route auto requests with jev to domain agents
letnull19A Nov 4, 2026
ab4bf22
feat(backend): persist session history in postgres
letnull19A Nov 4, 2026
5db5ad0
feat(frontend): replace the chat model picker with agent modes
letnull19A Nov 4, 2026
4f6383d
feat(frontend): add agent status and message feedback to the chat
letnull19A Nov 4, 2026
00c3c39
fix(frontend): wait for the whole turn before timing out a send
letnull19A Nov 4, 2026
0db751e
chore: ignore tavily research captures
letnull19A Nov 5, 2026
86876d6
docs(adr): add cloud agent harness research and prototype ADRs
letnull19A Nov 5, 2026
326ca7f
docs(plans): add agent harness prototype plan
letnull19A Nov 5, 2026
0ddf54a
docs(plans): add iron-branch-v1 multigraph plan
letnull19A Nov 5, 2026
b06c3af
docs(plans): add org-only projects migration plan
letnull19A Nov 5, 2026
b1d2220
chore(contracts): type bun:test globals for schema tests
letnull19A Nov 5, 2026
330ff4e
feat(contracts): add runs domain contract and /api/runs docs
letnull19A Nov 5, 2026
e0a6e64
feat(backend): add run journal schema and migration
letnull19A Nov 5, 2026
7daaad9
feat(backend): add runs API and SSE journal stream
letnull19A Nov 5, 2026
7c3b5dd
feat(backend): add run claim loop, model gateway and git worktree engine
letnull19A Nov 5, 2026
de35725
test(backend): add runs e2e for journal and SSE
letnull19A Nov 5, 2026
d602b4d
feat(backend): add sandbox exec step and stateless MCP tool source
letnull19A Nov 5, 2026
d33a5c9
feat(backend): pin skills by definition set and add executor registry
letnull19A Nov 5, 2026
4b38a99
feat(backend): list project runs
letnull19A Nov 5, 2026
f2efe35
feat(frontend): add runs client and SSE hooks
letnull19A Nov 5, 2026
c7e5bc9
docs(backend): describe the runs domain and worker engine
letnull19A Nov 5, 2026
eb639c6
feat(backend): embed opencode host and run sandbox in-process
letnull19A Nov 5, 2026
d29b4b2
refactor(backend): remove unversioned /api/opencode mirror
letnull19A Nov 5, 2026
4d03692
fix(backend): serve sessions from durable store when runner is down
letnull19A Nov 5, 2026
341b7ec
refactor(api): version sessions and runs under /api/v1
letnull19A Nov 5, 2026
7b61c41
test(backend): drop assertions for removed unversioned session paths
letnull19A Nov 5, 2026
6e4e316
feat(backend): cut over sessions to embedded opencode host
letnull19A Nov 5, 2026
c0dee12
chore(dev): harden dev stop script process matching
letnull19A Nov 6, 2026
1f78cba
chore(repo): update workspace config and lockfile
letnull19A Nov 7, 2026
0acf0d3
feat(contracts): session stream frames and updatedAt
letnull19A Nov 7, 2026
c2ad31e
fix(backend): allow last-event-id in CORS preflight
letnull19A Nov 7, 2026
2476858
feat(backend): resilient session streaming and agent file execution
letnull19A Nov 7, 2026
03abb0d
feat(frontend): chat streaming, footer actions and activity sort
letnull19A Nov 7, 2026
08c4276
refactor(backend): organizations and projects scope
letnull19A Nov 7, 2026
0284a84
refactor(backend): auth, users and bootstrap hardening
letnull19A Nov 7, 2026
8f5e185
chore(submodule): bump .opencode agent pack
letnull19A Nov 7, 2026
f657aca
fix(frontend): use row skeletons for chat list, drop chevrons
letnull19A Nov 7, 2026
4234c00
docs: Updated (AGENTS.md)
letnull19A Nov 7, 2026
66bf7bc
docs: Updated (CODE_OF_CONDUCT.md)
letnull19A Nov 7, 2026
6d139ad
refactor(frontend): split chat window into flat thread feature and ro…
letnull19A Nov 7, 2026
0987b1f
docs: Updated (AGENTS.md)
letnull19A Nov 7, 2026
67b0ab4
docs: Updated (CODE_OF_CONDUCT.md)
letnull19A Nov 7, 2026
b1664bd
docs: Updated (DESIGN.md)
letnull19A Nov 7, 2026
52488cb
refactor(frontend): decompose chat-window into layout, widgets, compo…
letnull19A Nov 7, 2026
4c8a4b0
docs: Updated (AGENTS.md)
letnull19A Nov 7, 2026
3688c83
docs: Updated (DESIGN.md)
letnull19A Nov 7, 2026
14c1e75
refactor(frontend): settle chat thread layers, scroll geometry and fe…
letnull19A Nov 7, 2026
faa8870
refactor(frontend): apply code conventions to session list without be…
letnull19A Nov 7, 2026
0300575
feat: chat thread layers backend frontend contracts
letnull19A Nov 7, 2026
d8e8785
chore(backend): pin @opencode/ai to 2.2.5
letnull19A Nov 8, 2026
f05cf7d
feat(backend): add S0 draft stand for opencode model probe
letnull19A Nov 8, 2026
e8df5f3
docs(plans): record langchain migration plans and s0 proof
letnull19A Nov 8, 2026
2404d9e
feat(backend): project tool registry into native ToolView catalog
letnull19A Nov 10, 2026
09d1d00
chore(backend): drop stale tool-runtime duplicate paths
letnull19A Nov 10, 2026
9aada6c
feat(backend): add LangChain step executor for the session runner
letnull19A Nov 10, 2026
ee41b62
feat(backend): run the auto turn in process with LangChain tools
letnull19A Nov 10, 2026
549c59e
feat(backend): route auto turns to the in-process transport
letnull19A Nov 10, 2026
647a389
fix(frontend): treat failed turn frames as terminal
letnull19A Nov 10, 2026
1bba248
docs(frontend): document failed turn terminators in useChat
letnull19A Nov 10, 2026
0b89793
fix(backend): keep in-process step retries in the model router
letnull19A Nov 10, 2026
2da31ff
fix(backend): keep DI value imports in the in-process turn
letnull19A Nov 10, 2026
cfef651
fix(backend): type the step executor's tool binding and step meta
letnull19A Nov 10, 2026
f8dc5ec
fix(backend): prepend the agent system prompt in the step executor
letnull19A Nov 10, 2026
588a277
test(frontend): export DEFAULT_AGENT_ID from the sessions-client mock
letnull19A Nov 10, 2026
a0cf10a
chore(deps): add LangChain deps and backend scaffold
letnull19A Nov 10, 2026
a926f1d
feat(backend): add in-process LLM layer, LangChain tools and sessions
letnull19A Nov 10, 2026
b66d80a
feat(backend): add vault secrets and user-keys provider migration
letnull19A Nov 10, 2026
0eb3e9c
refactor(backend): align auth, users, organizations and common modules
letnull19A Nov 10, 2026
a4f61bb
feat(cli,frontend): add session chat TUI screens and web chat wiring
letnull19A Nov 10, 2026
5cb28c8
docs: Updated (AGENTS.md)
letnull19A Nov 10, 2026
c9b35ce
docs: Updated (CODE_OF_CONDUCT.md)
letnull19A Nov 10, 2026
63a0002
docs: Updated (DESIGN.md)
letnull19A Nov 10, 2026
f1c5c21
docs(backend): document architecture and plans
letnull19A Nov 10, 2026
ccbe6ce
refactor(backend): rename storage path locals in versioning e2e
letnull19A Nov 10, 2026
e01d360
docs: Updated (AGENTS.md)
letnull19A Nov 14, 2026
e7bf21d
feat(db): add agent_checkpoints table and squash migration
letnull19A Nov 14, 2026
a999648
chore(deps): pin langchain packages for createAgent runner
letnull19A Nov 14, 2026
4488398
feat(backend): migrate session runner to LangChain with segments and …
letnull19A Nov 14, 2026
b31e219
feat(contracts): add ceiling and approval gate to sessions wire contract
letnull19A Nov 14, 2026
4530eb7
feat(frontend): add approval flow and tool-call timeline to chat
letnull19A Nov 14, 2026
06c3bda
docs: add LangChain API notes
letnull19A Nov 14, 2026
ec4fa81
refactor(backend): align modules, guards and storage paths
letnull19A Nov 14, 2026
f3fbd74
test(backend): sync specs with sessions and runner changes
letnull19A Nov 14, 2026
07abe1e
test(frontend): sync chat specs with approval flow and tool timeline
letnull19A Nov 14, 2026
9347b9b
fix(frontend): gate replay failures and move errors to kit toast
letnull19A Nov 14, 2026
c183eca
refactor(frontend): use kit SSR-safe theme and extract toaster host
letnull19A Nov 14, 2026
e6dd27e
chore(frontend): move images to public/assets with explicit icons
letnull19A Nov 14, 2026
a8053ef
docs: Updated (AGENTS.md)
letnull19A Nov 14, 2026
7daa356
docs: Updated (DESIGN.md)
letnull19A Nov 14, 2026
ad495c6
chore(frontend): regenerate next-env.d.ts for next 16 output
letnull19A Nov 14, 2026
b68d99c
chore(frontend): pin @web2bizz/ui to 0.26.5
letnull19A Nov 14, 2026
ddcd000
refactor(frontend): move providers to lib and order i18n after theme
letnull19A Nov 14, 2026
e6e4380
refactor(chat): remove legacy streaming and tool-timeline rows
letnull19A Nov 14, 2026
cae0007
refactor(chat): rename agents to work modes
letnull19A Nov 14, 2026
9a4996a
docs: Updated (AGENTS.md)
letnull19A Nov 14, 2026
d76e208
docs: Updated (DESIGN.md)
letnull19A Nov 14, 2026
2e87211
docs: Updated (CODE_OF_CONDUCT.md)
letnull19A Nov 14, 2026
e6408dc
docs: note ThemeProvider is not SSR-safe
letnull19A Nov 14, 2026
26ddeb1
fix(chat): suture tool called-done by callId and gate replay live row
letnull19A Nov 15, 2026
3474632
style(chat): constrain tool and thinking rows to assistant width
letnull19A Nov 15, 2026
818379b
chore(skills): lock imported agent skills versions
letnull19A Nov 15, 2026
e02d6e6
chore(repo): ignore graphify indexes and playwright artifacts
letnull19A Nov 15, 2026
0dd778e
chore(deps): update bun lockfile
letnull19A Nov 15, 2026
32addc5
chore(opencode): point subproject to skills import
letnull19A Nov 15, 2026
e676a0b
docs(plans): add chat linked-nodes plan
letnull19A Nov 15, 2026
5e38005
chore(repo): add commitlint and husky from scaffold template
letnull19A Nov 15, 2026
3c0f53b
ci(e2e): run emulator suite post-merge only, no apk on pr
letnull19A Nov 15, 2026
caf44f7
chore(prompts): drop obsolete copilot commit prompt
letnull19A Nov 15, 2026
57f2687
chore(repo): add typecheck script for husky pre-commit hook
letnull19A Nov 15, 2026
027af2d
chore(ci): drop unused scheduled mobile workflows
letnull19A Nov 15, 2026
c13b532
ci: mirror scaffold fullstack workflow verbatim
letnull19A Nov 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .devbox
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# .devbox-project — тег проекта для Trello-задач (task-manager pipeline, ранее .trello-project).
# Сгенерировано scripts/task-manager/init.sh. Без секретов — можно коммитить.
# BOARD/LIST — дефолтные доска/лист (точные имена); запоминаются через create.sh --save-defaults.
NAME=Web2Bizz/devbox-backend
NAME=Web2Bizz/rush-code
PROFILE_MONOREPO=yes
PROFILE_MICROSERVICES=yes
PROFILE_FRONTEND=react
Expand Down
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ npm-debug.log*
**/tmp/opencode
**/.opencode/.cache
apps/mobile
apps/opencode-server
contracts/
2 changes: 1 addition & 1 deletion .env.develop
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# credentials, ...) — stays OUTSIDE git (repo vars / protected CI stores /
# external environment). This file is the ONLY source of build values in CI
# (no vars-override). Never add sensitive values here.
NEXT_PUBLIC_API_URL=https://devbox-app-ijn8k6-backend-194-163-150-160.sslip.io
NEXT_PUBLIC_API_URL=https://rush-code-app-ijn8k6-backend-194-163-150-160.sslip.io
112 changes: 64 additions & 48 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@
# Validation rules (zod@4, ERROR vs WARN taxonomy, [env] format, never-log-secrets):
# docs/env-validation.md — enforced by apps/backend/src/env.ts + env.spec.ts.
# Precedence everywhere: shell process.env > .env file > built-in defaults.
# Interpolation: ${VAR} / ${VAR:-default} (dotenv-expand / docker-compose / ecosystem.config.cjs).
# Empty HOSTs fall back to `localhost` in code (backend src/env.ts) and pm2 defaults,
# Interpolation: ${VAR} / ${VAR:-default} (dotenv-expand / docker-compose / scripts/dev/with-env.ts).
# Empty HOSTs fall back to `localhost` in code (backend src/env.ts) and dev defaults,
# so the composites below never boot as broken `http://:`.
#
# DEV (local .env): leave APP_BACKEND_HOST empty and either
# unset APP_BACKEND_SOCKET or remove that line —
# code fills localhost dev-fallbacks (DB via POSTGRES_*/localhost composition).
# Compose has no local postgres service: DATABASE_URL is REQUIRED there
# (fail-fast, external postgres only).
# OPENCODE_* ships with stand defaults below (0.0.0.0:4096).
# PROD (external env / Dokploy): set DATABASE_URL to the external postgres URL
# (or set POSTGRES_HOST to the real host, e.g. pg.db.web2bizzz.store,
# and let DATABASE_URL compose from POSTGRES_* for host-local/PM2 runs —
# and let DATABASE_URL compose from POSTGRES_* for host-local runs —
# compose itself still requires DATABASE_URL explicitly),
# and set APP_BACKEND_SOCKET / NEXT_PUBLIC_API_URL to the public backend URL.
# Compose reads a SINGLE docker-compose.yml; there are no
Expand All @@ -28,48 +27,44 @@ APP_BACKEND_HOST=
APP_BACKEND_PROTOCOL=http
APP_BACKEND_SOCKET=${APP_BACKEND_PROTOCOL}://${APP_BACKEND_HOST}:${APP_BACKEND_PORT}


# OpenCode connection data (stand: `opencode serve` listens on 0.0.0.0:4096 —
# all interfaces. The composed URL keeps 0.0.0.0 verbatim; the backend remaps
# it to 127.0.0.1 for outbound dialing in OpencodeService.dialUrl()).
OPENCODE_HOST=0.0.0.0
OPENCODE_PORT=4096
OPENCODE_PROTOCOL=http
OPENCODE_URL=${OPENCODE_PROTOCOL}://${OPENCODE_HOST}:${OPENCODE_PORT}
# Optional bearer token for the opencode server ('' = unauthenticated).
# Sent as `Authorization: Bearer …` by the sdk reverse-proxy (/api/opencode/*).
# Never logged, never committed — set locally / via secrets only.
# OPENCODE_TOKEN=
# Server password for the opencode service in docker-compose (REQUIRED there —
# compose fail-fasts if unset; host-local `opencode serve` takes it via env too).
# Inside the compose network the backend reaches opencode at
# http://opencode:4096 (compose default) — an explicit OPENCODE_URL above
# overrides it, so leave OPENCODE_* unset for `docker compose up`.
# OPENCODE_SERVER_PASSWORD=

# Per-user OpenCode keys (GET/PUT/DELETE /api/v1/key + GET /api/v1/usage).
# Per-user vault secrets (GET/POST/PUT/DELETE /api/v1/vault/secrets + GET /api/v1/usage).
# Each user stores their OWN opencode.ai API key; the backend keeps ONLY the
# AES-256-GCM ciphertext (user_opencode_keys table) and proxies usage with the
# AES-256-GCM ciphertext (vault_secrets table) and proxies usage with the
# per-user Bearer. Plaintext keys are never logged, never returned.
# OPENCODE_KEYS_ENCRYPTION_KEY: server secret for at-rest encryption (≥32 chars,
# REQUIRED for the key endpoints — unset → they answer 500 opencode_keys_unconfigured;
# short → boot ERROR). One key per deploy, no rotation/re-encrypt in this iteration.
# OPENCODE_KEYS_ENCRYPTION_KEY: ACTIVE server secret for at-rest encryption
# (≥32 chars, REQUIRED for the key endpoints — unset → they answer 500
# opencode_keys_unconfigured; short → boot ERROR). New rows are wrapped with
# it under OPENCODE_KEYS_ACTIVE_KEY_ID ("v1" default).
# Generate: bun -e "console.log(require('node:crypto').randomBytes(48).toString('base64url'))".
# Never log it, never commit it — set locally / via secrets only.
# OPENCODE_KEYS_ENCRYPTION_KEY=
# OPENCODE_BILLING_URL: upstream usage endpoint (GET, per-user Bearer).
# Default https://api.opencode.ai/usage is UNVERIFIED (no public billing path was
# discoverable) — override when the real endpoint is known. Unreachable/bad-shape
# upstream answers 503 EXTERNAL_UNAVAILABLE (Retry-After 30), timeouts 504.
# OPENCODE_BILLING_URL=https://api.opencode.ai/usage
# KEK rotation (no downtime, no data loss):
# 1. Deploy the new secret as OPENCODE_KEYS_ENCRYPTION_KEY (+ bump
# OPENCODE_KEYS_ACTIVE_KEY_ID, e.g. "v2") and keep the old secret as
# OPENCODE_KEYS_ENCRYPTION_KEY_PREVIOUS (+ OPENCODE_KEYS_PREVIOUS_KEY_ID
# matching the old rows). Old rows keep decrypting (dual-read by key_id;
# version-less legacy rows fall back to active → previous).
# 2. Converge: GET /api/v1/usage lazily re-wraps stale rows on read; run
# `bun run keys:reencrypt` (backend package script) for rows never read.
# 3. Drop OPENCODE_KEYS_ENCRYPTION_KEY_PREVIOUS once no stale rows remain.
# (stale = vault_secrets.key_id != active id).
# OPENCODE_KEYS_ACTIVE_KEY_ID=v1
# OPENCODE_KEYS_ENCRYPTION_KEY_PREVIOUS=
# OPENCODE_KEYS_PREVIOUS_KEY_ID=v0
# OPENCODE_BILLING_URL removed (breaking): the upstream usage endpoint is a
# hard-coded module constant (apps/backend/src/opencode/modules/billing/opencode-billing.service.ts
# OPENCODE_BILLING_URL = https://opencode.ai/zen/go/v1/usage — Zen Go, per spec
# https://opencode.ai/v2/docs/api has no billing surface) — env override is no
# longer read. Unreachable/bad-shape upstream answers 503 EXTERNAL_UNAVAILABLE
# (Retry-After 30), timeouts 504.

# Postgres — always EXTERNAL (no postgres service in docker-compose).
# Compose requires DATABASE_URL explicitly (fail-fast when unset).
# Host-local / PM2 runs may leave DATABASE_URL unset and let the backend
# compose it from POSTGRES_* (POSTGRES_HOST empty → localhost dev fallback).
POSTGRES_USER=devbox
# Host-local dev runs (nx `bun run dev`, dotenv without path) may leave
# DATABASE_URL unset and let the backend compose it from POSTGRES_*
POSTGRES_USER=rushcode
POSTGRES_PASSWORD=changeme
POSTGRES_DB=devbox
POSTGRES_DB=rushcode
POSTGRES_PORT=5432
POSTGRES_HOST=pg.db.web2bizzz.store

Expand All @@ -89,13 +84,16 @@ REQUEST_TIMEOUT_MS=10000
# JWT_REFRESH_SECRET=
# JWT_ACCESS_TTL=15m (formats: 15m | 1h | 7d | seconds 60-7776000)
# JWT_REFRESH_TTL=7d
# Legacy x-user-id / ?userId mock identity fallback (dev default unset→true+WARN).
# Set "false" for production (JwtAuthGuard then requires Bearer everywhere).
# AUTH_LEGACY_MOCK_FALLBACK=true
# Legacy x-user-id / ?userId mock identity fallback (strict default unset→false+WARN:
# JwtAuthGuard requires Bearer everywhere). Set "true" for local dev only (WARN,
# never for production — header/query spoofing is ignored by all controllers).
# AUTH_LEGACY_MOCK_FALLBACK=false
# Session cookie SameSite policy: lax (default) | strict | none.
# "none" forces Secure regardless of NODE_ENV (needed for cross-site cookies).
# AUTH_COOKIE_SAMESITE=lax

# Organizations: single-use invite-token TTL in seconds (default 86400 = 24h,
# range 60-7776000). No per-invite override — one server-wide policy.
# ORG_INVITE_TTL_SEC=86400
# Organizations: invites are persistent uuidv7 rows (no TTL — links never
# expire, single-use, replay → 404). No env tuning.

# Upstream retry: idempotent GET + 429/5xx/timeout only (POST runs once;
# backoff base doubles per attempt, capped at max, equal jitter).
Expand Down Expand Up @@ -123,6 +121,14 @@ PROJECTS_ROOT=
# Must exist + be readable when set explicitly, otherwise boot fails fast with [env] REPOS_ROOT.
# REPOS_ROOT=

# Clone source allow-list (POST /api/v1/workspaces/clone): only https://, ssh://
# and git@host:path URLs whose host matches the list are accepted. file://,
# http://, git://, absolute local paths and ../ are rejected with
# 400 REPO_URL_NOT_ALLOWED; the clone destination is jailed to REPOS_ROOT (403).
# Built-in hosts (always allowed, exact match): github.com, gitlab.com, bitbucket.org.
# CLONE_ALLOWED_HOSTS appends extra bare hostnames (comma-separated).
# CLONE_ALLOWED_HOSTS=

# GitHub link (optional defaults only — tokens are NEVER stored; link endpoints
# validate owner/repo/branch format and assemble https://github.com URLs)
# GITHUB_OWNER=
Expand All @@ -140,15 +146,20 @@ PROJECTS_ROOT=
# empty pair → github endpoints answer 401/503.
# GITHUB_APP_ID=123456
# Preferred: keep the PEM out of env — point at a file (avoids multiline
# quoted PEM breaking dotenv/compose/pm2 parsers). Path wins when set; may be
# quoted PEM breaking dotenv/compose parsers). Path wins when set; may be
# absolute or relative to the backend cwd (e.g. ./keys/github-app.pem).
# GITHUB_APP_PRIVATE_KEY_PATH=./keys/github-app.pem
# Fallback: inline key (raw PEM with \n escapes ok, or base64-encoded PEM).
# GITHUB_APP_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----"
# (raw PEM, \n escapes ok, or base64-encoded PEM)
# GITHUB_APP_SLUG=my-devbox-app (https://github.com/apps/<slug>/installations/new)
# GITHUB_APP_SLUG=my-rush-code-app (https://github.com/apps/<slug>/installations/new)
# GITHUB_WEBHOOK_SECRET=change-me (must match the App webhook secret; X-Hub-Signature-256)
# GITHUB_STATE_SECRET=change-me (optional: HMAC key for the signed install state;
# empty → falls back to GITHUB_WEBHOOK_SECRET)
# GITHUB_API_URL=https://api.github.com (override for GitHub Enterprise)
# Per-attempt budget ms for GitHub API calls (default 15000; positive int).
# Enforced via AbortSignal.timeout — octokit@5 ignores request.timeout.
# GITHUB_REQUEST_TIMEOUT_MS=15000
# Legacy dev fallback (deprecated, single install without the install flow):
# GITHUB_APP_INSTALLATION_ID=789012

Expand Down Expand Up @@ -223,9 +234,9 @@ NEXT_PUBLIC_API_URL=${APP_BACKEND_SOCKET}
# Frontend UI kit: @web2bizz/ui pinned exact in apps/frontend/package.json
# (currently 0.25.7 — bump via `bun add @web2bizz/ui@<ver>` in apps/frontend).
# Peer deps: react>=19, react-dom>=19 (frontend is on React 19; do NOT
# downgrade to 18 — the kit's ThemeProvider/components require 19).
# Consumer wiring: `@web2bizz/ui/styles.css` once in app/layout.tsx +
# <ThemeProvider> via src/providers.tsx (mount-guarded for SSR).
# downgrade to 18 — the kit's components require 19).
# Consumer wiring: `@web2bizz/ui/styles.css` once in app/layout.tsx
# (no <ThemeProvider> — NOT SSR-safe, mount-guard banned).
# Full registry/auth/publish guide: docs/npm-registry.md.
#
# CI-only: Dokploy compose redeploy (НЕ читается compose/backend — только
Expand All @@ -235,3 +246,8 @@ NEXT_PUBLIC_API_URL=${APP_BACKEND_SOCKET}
# создать webhook в Dokploy (Compose → Deployments → Webhook) и добавить его
# URL как GitHub secret. Локально не нужен (намеренно закомментировано).
# DOKPLOY_COMPOSE_WEBHOOK=
#
# Web-поиск для агентов: pack-тул `tavily` (Tavily Search API).
# Ключ — только env, в git не коммитится: console.tavily.com → API Keys (tvly-...).
# Без ключа тул падает с понятной ошибкой, агенты откатываются на `websearch`.
# TAVILY_API_KEY=
28 changes: 14 additions & 14 deletions .github/workflows/activation-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ name: Activation E2E (Maestro)
# devices against a real server, so asserting on it here would be asserting
# on the harness rather than the app.
#
# NOTE: this workflow intentionally has NO `push:` trigger. The pull_request
# check is the only gate for the activation suite. With `push:` present the
# same commit was tested twice — once as pull_request, and then again as `push`
# to dev/main the moment the PR merged — and the emulator jobs below are
# budgeted by the tens of minutes, so that second run was a full duplicate of
# a suite that had already passed on that exact tree. Removing `push:` means a
# direct push to dev/main (i.e. bypassing a PR) will NOT run E2E.
# POLICY: no APK assembly on pull_request. The PR stage runs only fast checks
# (mobile.yml `test` + ci.yml lint/build/test); the emulator suite below needs
# a freshly assembled APK, so it runs ONLY after merge — on `push` to
# dev/main — exactly once per merged tree. With a `pull_request` trigger the
# same tree would pay emulator time twice (tens of minutes per half), so it
# is deliberately absent here.
#
# That is deliberate, not a hole: neither branch is protected today, but branch
# protection is the documented way to make the PR check mandatory, and once it
# is enabled every change to dev/main must arrive through a pull_request —
# exactly where this workflow runs. Until then, workflow_dispatch stays the
# manual escape hatch for an on-demand run.
# Direct pushes to dev/main (bypassing a PR) WILL run E2E — that is the price
# of the post-merge gate, not a hole. Neither branch is protected today, but
# once branch protection is enabled every change must arrive through a
# pull_request, and the fast checks above are the mandatory PR gate (do NOT
# list apk/core/newer as required PR checks — they never report on a PR).
# workflow_dispatch stays the manual escape hatch for an on-demand run.
#
# WHY THIS IS THREE JOBS (and not one 90-minute job anymore):
# The old single job was CANCELLED at its timeout-minutes: 90 ceiling on run
Expand Down Expand Up @@ -76,7 +76,7 @@ name: Activation E2E (Maestro)
# suite behaviour in the middle of a flake investigation).

on:
pull_request:
push:
branches: [main, dev]
paths:
- "apps/mobile/app/**"
Expand Down Expand Up @@ -294,7 +294,7 @@ jobs:
# =====================================================================
# core — the regression gate. Boots ONE emulator, runs CORE_FLOWS only
# (run-e2e-flows.sh core: blocking semantics, break-on-failure, rc=1).
# Runs in PARALLEL with `newer`; its failure blocks the PR check, its
# Runs in PARALLEL with `newer`; its failure fails the post-merge run, its
# artifacts are independent of newer's.
# =====================================================================
core:
Expand Down
59 changes: 13 additions & 46 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,31 @@
name: ci

# Monorepo (backend + frontend bun workspace). apps/mobile is intentionally NOT
# covered here: it is a standalone npm/Expo project with its own package-lock.json
# and its own workflows (mobile.yml, activation-e2e.yml).
on:
push:
paths:
- "apps/backend/**"
- "apps/frontend/**"
- "package.json"
- "bun.lock"
- "bunfig.toml"
- ".npmrc"
- ".bun-version"
- "tsconfig.base.json"
- ".github/workflows/ci.yml"
branches: [main]
pull_request:
paths:
- "apps/backend/**"
- "apps/frontend/**"
- "package.json"
- "bun.lock"
- "bunfig.toml"
- ".npmrc"
- ".bun-version"
- "tsconfig.base.json"

jobs:
build:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/checkout@v5

- uses: oven-sh/setup-bun@v2
with:
# Single source of truth for the pin is .bun-version
# (mirrored in packageManager/engines/oven-bun Docker tags).
bun-version-file: ".bun-version"
bun-version: 1.4.2

- name: Install
run: bun install
env:
# Private scope @web2bizz → https://npm.registry.web2bizz.team.
# GitHub masks secrets.* in logs automatically; empty → public-only install.
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: bun install --frozen-lockfile

- uses: nrwl/nx-set-shas@v4
id: setshas
with:
main-branch-name: main
- name: Typecheck
run: bun run typecheck

# no-console in backend src is enforced by biome (backend lint script),
# scoped to runtime sources — spec/e2e/test reporters are excluded.
- name: Lint affected (tsc --noEmit)
run: bunx nx affected -t lint --base=${{ steps.setshas.outputs.base }} --head=${{ steps.setshas.outputs.head }}
- name: Lint
run: bun run lint

- name: Build affected
run: bunx nx affected -t build --base=${{ steps.setshas.outputs.base }} --head=${{ steps.setshas.outputs.head }}
- name: Test
run: bun run test

- name: Test affected
run: bunx nx affected -t test --base=${{ steps.setshas.outputs.base }} --head=${{ steps.setshas.outputs.head }}
- name: Build
run: bun run build
Loading
Loading