Fork
0
代码
介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
Fork
0
develop
deveco-code
/
packages
/
opencode
/
src
/
cli
/
cmd
/
tui
下载当前目录
can2
fix(tui): improve privacy onboarding layout on small terminals
7697bd66
创建于
19 小时前
历史提交
文件
最后提交记录
最后更新时间
component
fix(tui): improve privacy onboarding layout on small terminals Add a scrollable agreement panel with fixed action footer, top-align the home body slot during onboarding, and shrink horizontal padding as the terminal narrows. Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: can2 <279319529@qq.com> Co-authored-by: Cursor <cursoragent@cursor.com>
19 小时前
config
feat(tui): add user guide and open it via /help Add DevEco Code USER_GUIDE.md with screenshot assets and open the guide in the default browser from /help instead of the in-TUI help dialog. Centralize DevEco external links in deveco-links.ts. Signed-off-by: Josie_0306 <zhaojunjie15@h-partners.com> Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Josie_0306 <zhaojunjie15@h-partners.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 天前
context
feat(tui): sync upstream reasoning header styling with orange theme, Spinner animation and reasoningSummary() Signed-off-by: zhangyuchen45 <zhangyuchen45@huawei.com>
1 天前
feature-plugins
feat(tui): add user guide and open it via /help Add DevEco Code USER_GUIDE.md with screenshot assets and open the guide in the default browser from /help instead of the in-TUI help dialog. Centralize DevEco external links in deveco-links.ts. Signed-off-by: Josie_0306 <zhaojunjie15@h-partners.com> Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Josie_0306 <zhaojunjie15@h-partners.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 天前
plugin
sync: OpenCode v1.15.4 -> v1.15.5 Upstream commits: - Preview native LLM runtime stack (
#27114
) - feat(tui): add syntax highlighting for elixir, fsharp, r, make, vim, xml, agda - perf(app): virtualize session timeline rows (
#26949
) - fix(plugin):
ask
in tools from plugins returns promise instead of effect - fix(bus): acquire PubSub subscription eagerly to close /event race - refactor(session): move prompt reminders out of core loop - refactor(session): extract prompt tool resolution - refactor(session): extract reference prompt helpers - refactor(reference): split materialization state - refactor(repository): add cache service + type cache failures - fix(core): fix file references in workspaces - fix(ui): guard reasoning renderer, fix question dock overflow - fix(tui): copy pasted prompt content, collapse long tool output lines - Load models.dev snapshot from build global (models-snapshot.js deleted) - Upgrade Bun to final non-rust version - Multiple test migrations to instance fixtures Conflicts resolved: 28 files - package.json (17): version bump, accept upstream - packages/opencode/package.json: accept upstream + keep name/bin/deveco-codegenie deps - packages/web/package.json: accept upstream + fix deveco workspace dep - bun.lock/extension.toml/sdks/vscode/package.json: accept upstream - build scripts (3): DEVECO_MODELS_DEV define, generate.ts export - runtime-flags.ts: new experimentalNativeLlm flag with DEVECO_ prefix - session/llm.ts: accept upstream native LLM runtime architecture, keep DEVECO_ headers + debug logging - test files (3): DEVECO_TEST_HOME branding Brand identifiers preserved throughout, HarmonyOS tools and plugins retained Baseline updated in BASELINE.md Signed-off-by: OwenO <ouwen7@huawei.com>
13 天前
routes
fix(tui): improve privacy onboarding layout on small terminals Add a scrollable agreement panel with fixed action footer, top-align the home body slot during onboarding, and shrink horizontal padding as the terminal narrows. Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: can2 <279319529@qq.com> Co-authored-by: Cursor <cursoragent@cursor.com>
19 小时前
ui
feat(opencode): adjust provider priority for domestic AI models Signed-off-by: liujianghang <liujianghang@huawei.com>
4 天前
util
feat(tui): add home banner logo intro animation Animate scanlines from opaque white to 10% alpha over 1s, then reveal thick-top lettermark rows top-to-bottom before settling to the final palette. Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: can2 <279319529@qq.com> Co-authored-by: Cursor <cursoragent@cursor.com>
4 天前
app.tsx
feat(tui): add user guide and open it via /help Add DevEco Code USER_GUIDE.md with screenshot assets and open the guide in the default browser from /help instead of the in-TUI help dialog. Centralize DevEco external links in deveco-links.ts. Signed-off-by: Josie_0306 <zhaojunjie15@h-partners.com> Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Josie_0306 <zhaojunjie15@h-partners.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 天前
attach.ts
feat: migrate brand from CodeGenie to DevEco Code Signed-off-by: eline <eline-han@foxmail.com>
19 天前
attention.ts
sync: OpenCode v1.14.48 -> v1.14.49 Upstream commits: - fix keymap fallback priority and TUI config diagnostics (
#27384
) - fix(server): map busy sessions in http handlers (
#27375
) - fix(provider): restore model suggestions (
#27372
) - fix(run): restore non-interactive exit behavior (
#27371
) - refactor(flags): route installation/llm client through runtime flags (
#27368
,
#27369
) - effect(git/installation/worktree/format/snapshot): migrate to AppProcess.run (
#27185
-
#27190
) - refactor(flags): route control-plane/sync/session workspaces through runtime flags (
#27335
-
#27337
) - effect(core): add stdin option to AppProcess.run; migrate snapshot+clipboard (
#27224
) - chore: delete unused util/lock and util/color modules (
#27223
,
#27331
) - core: expose v2 model listing API (
#25821
) - feat: session switching (DEVECO_EXPERIMENTAL_SESSION_SWITCHING) - feat(app): ctrl/cmd+number keybinds to switch projects (
#26280
) - feat(tui): pin, quick-switch, and cycle recent sessions (
#26858
) - Tests migrated to Effect style (testEffect, it.instance, it.live) - Zod removal from core, replaced with Effect Schema Conflicts resolved: 74 files - package.json (18): accept upstream version, preserve name=deveco and workspace deps - bun.lock: accept upstream - extension.toml: accept upstream version URL - flag.ts: keep DEVECO_* naming, add DEVECO_EXPERIMENTAL_SESSION_SWITCHING - llm.ts: keep x-deveco-* headers and User-Agent brand - websearch.ts: keep DEVECO_WEBSEARCH_PROVIDER env var - logo.tsx/ui.ts: keep local branded UI (not upstream animated logo) - AGENTS.md: keep local doc index, upstream content -> OPENCODE-AGENTS.md - Source files: accept upstream Flag->RuntimeFlags refactor, replace OPENCODE_->DEVECO_ - Test files: accept upstream Effect migration, replace OPENCODE_->DEVECO_ Brand identifiers preserved throughout, DEVECO_* flags maintained Product rebranded from CodeGenie to DevEco Code Signed-off-by: OwenO <ouwen7@huawei.com>
15 天前
event.ts
sync: OpenCode v1.14.44 -> v1.14.45 Upstream commits: - fix(config): allow active provider model status (
#26592
) - refactor(provider): share model status schema (
#26595
) - fix(tui): aggregate bootstrap request failures - fix(sdk): wrap thrown error bodies in Error - fix(tool/read): match permission patterns against worktree-relative path - test(server): cover HttpApi context inheritance - fix(httpapi): align runtime query schemas with workspace routing params (
#26581
) - fix(session): accept legacy summary diffs (
#26579
) - test(session): regression test for
#26574
+ mirror loosening on Vcs.FileDiff (
#26578
) - fix(sessions): allow optional patch field in diff for migrated sessions (
#26574
) - test(session): cover workspace-routed messages (
#26576
) - fix(session): accept routing params in message list (
#26569
) - fix(tui): guard messages.data in session.sync against undefined (
#26566
) - Plugin command API shim (
#26564
) - Move schema utilities into core (
#26565
) - fix(provider): isolate plugin model mutations (
#26561
) Conflicts resolved: 22 files - package.json (18 files): accept upstream version, preserve name=codegenie - bun.lock: accept upstream - extension.toml: accept upstream version/URL - config.ts: accept core imports migration, preserve InstanceRef + containsPath - lsp.ts: accept core imports migration, preserve AppFileSystem + containsPath - packages/opencode/package.json: preserve name=codegenie, add mcp-bridge devDeps - packages/web/package.json: fix workspace dep to codegenie Brand identifiers preserved throughout, HarmonyOS tools and plugins retained Signed-off-by: zhangyuchen <zhangyuchen45@huawei.com>
20 天前
keymap.tsx
sync: OpenCode v1.14.46 -> v1.14.47 Upstream commits (50): - feat(scout): materialize configured reference repos (
#26692
) - feat: better image handling (auto resize & max size constraints) (
#26401
) - feat(http-recorder): default mode to "auto" (
#26719
) - Source HTTP API ID path patterns (
#26623
) - Source workspace path pattern (
#26632
) - Source diff message query pattern (
#26638
) - Persist session model switches outside event flag (
#26765
) - restore managed textarea keymap handling (
#26771
) - fix(server): return diagnosable body for schema rejections (
#26631
) - Add explicit LLM stream lifecycle events (
#26722
) - refactor(http-recorder): use Schema.TaggedErrorClass for cassette errors (
#26729
) - refactor(http-recorder): hide cassette format behind Cassette seam (
#26725
) - refactor(http-recorder): Redactor + Recorder seams, README (
#26636
) - Scope boolean query overrides - Drop unused ID Zod statics (
#26740
) - Drop compaction create facade (
#26739
) - Replace compaction create test fixtures (
#26738
) - Migrate compaction tool-call/plugin/LLM/overflow tests - Use Effect timeout in compaction test (
#26728
) - Format TUI paths relative to session directory (
#26648
) - Remove redundant ID Zod overrides (
#26633
) - Zen: Ring 2.6 1T, fix usage css, fix reasoning token - Go: hy3 preview, tencent icon - Various chore: generate commits - release: v1.14.47 Conflicts resolved: - 17 package.json: version bump, kept codegenie name - packages/opencode/package.json: version bump, kept name=codegenie - packages/web/package.json: version bump, fixed workspace dep - bun.lock: accepted upstream - extension.toml: version/URL upgrade - AGENTS.md: kept local CodeGenie docs index - agent.ts: accepted Reference.resolveAll refactor, kept CODEGENIE_ brand - read.ts: merged imports (isImageAttachment + Reference) - event.ts: accepted bypassExperimentalEventSystem option, kept CODEGENIE_ brand - prompt-traits.test.ts: accepted upstream new test file Brand cleanup: - reference.ts, reference.test.ts, read.test.ts: OPENCODE_ -> CODEGENIE_ Signed-off-by: zhangyuchen <zhangyuchen45@huawei.com>
20 天前
layer.ts
add codegenie cli
29 天前
terminal-screen.ts
fix(tui): clear alternate screen on enter and erase exit banner rows Clear the terminal when starting the TUI so stale logo frames do not persist in reused alternate-screen buffers. Erase matching rows before writing exit messages so prior session art does not bleed through. Signed-off-by: can2 <279319529@qq.com> Co-authored-by: Cursor <cursoragent@cursor.com>
5 天前
thread.ts
feat(agreement): implement TMS agreement signing and query for DevEco onboarding - Add AgreementService (deveco-agreement.ts) for TMS API query/sign - Replace local-only privacy check with remote agreement verification - Add agreement config section in deveco.json with override defaults - Improve onboarding flow: entry -> login -> privacy -> agreement check - Add checkbox + Space key toggle for privacy confirmation - Handle session timeout retry and network error states - Add requireLogin guard in TUI thread before startup - Improve auth flow: logout clears auth.json, login failed returns to entry Signed-off-by: liujianghang <liujianghang@huawei.com>
8 天前
validate-session.ts
sync: OpenCode v1.14.46 -> v1.14.47 Upstream commits (50): - feat(scout): materialize configured reference repos (
#26692
) - feat: better image handling (auto resize & max size constraints) (
#26401
) - feat(http-recorder): default mode to "auto" (
#26719
) - Source HTTP API ID path patterns (
#26623
) - Source workspace path pattern (
#26632
) - Source diff message query pattern (
#26638
) - Persist session model switches outside event flag (
#26765
) - restore managed textarea keymap handling (
#26771
) - fix(server): return diagnosable body for schema rejections (
#26631
) - Add explicit LLM stream lifecycle events (
#26722
) - refactor(http-recorder): use Schema.TaggedErrorClass for cassette errors (
#26729
) - refactor(http-recorder): hide cassette format behind Cassette seam (
#26725
) - refactor(http-recorder): Redactor + Recorder seams, README (
#26636
) - Scope boolean query overrides - Drop unused ID Zod statics (
#26740
) - Drop compaction create facade (
#26739
) - Replace compaction create test fixtures (
#26738
) - Migrate compaction tool-call/plugin/LLM/overflow tests - Use Effect timeout in compaction test (
#26728
) - Format TUI paths relative to session directory (
#26648
) - Remove redundant ID Zod overrides (
#26633
) - Zen: Ring 2.6 1T, fix usage css, fix reasoning token - Go: hy3 preview, tencent icon - Various chore: generate commits - release: v1.14.47 Conflicts resolved: - 17 package.json: version bump, kept codegenie name - packages/opencode/package.json: version bump, kept name=codegenie - packages/web/package.json: version bump, fixed workspace dep - bun.lock: accepted upstream - extension.toml: version/URL upgrade - AGENTS.md: kept local CodeGenie docs index - agent.ts: accepted Reference.resolveAll refactor, kept CODEGENIE_ brand - read.ts: merged imports (isImageAttachment + Reference) - event.ts: accepted bypassExperimentalEventSystem option, kept CODEGENIE_ brand - prompt-traits.test.ts: accepted upstream new test file Brand cleanup: - reference.ts, reference.test.ts, read.test.ts: OPENCODE_ -> CODEGENIE_ Signed-off-by: zhangyuchen <zhangyuchen45@huawei.com>
20 天前
win32.ts
fix: remove 8 more unnecessary
as any
casts in opencode core (
#22877
)
1 个月前
worker.ts
sync: OpenCode v1.15.0 -> v1.15.1 Upstream commits: - feat(tui): add minimal thinking mode with click-to-expand - feat(tui): enable pinned session switching - refactor(instance): retire WithInstance adapter - refactor(lsp): require explicit instance context - refactor(workspace): centralize adapter invocation - refactor(flags): migrate flags to runtime flags - fix(tui): dedupe consecutive prompt history entries - fix(tui): show config error details on startup - fix(tool): bridge custom tool zod metadata - fix: markdown table rendering - fix(watcher): resolve symlinked .git path - Various Effect instance context refactoring Conflicts resolved: 44 files - package.json/bun.lock: accept upstream versions - flag/flag.ts: accepted upstream removals, kept DEVECO_ prefix - runtime-flags.ts: accepted upstream new flags, kept DEVECO_ prefix - bridge.ts: accepted upstream refactoring (standalone bind/fromPromise) - lsp/server.ts: accepted upstream flags parameter refactoring - instance.ts: accepted upstream deletion (retired WithInstance adapter) - TUI files: accepted upstream features, kept DEVECO_ branding - Test files: accepted upstream test updates, kept DEVECO_ env vars - config.ts: accepted upstream import changes - instruction.ts, skill, db, workspace-routing: accepted upstream refactoring Brand identifiers preserved throughout, HarmonyOS tools and plugins retained Baseline updated in BASELINE.md Signed-off-by: OwenO <ouwen7@huawei.com>
14 天前