Fork
0
代码
介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
Fork
0
develop
deveco-code
/
packages
/
opencode
/
src
/
util
下载当前目录
zkl2281343710
fix: validate resolved cwd before switching
5f84ff52
创建于
12 天前
历史提交
文件
最后提交记录
最后更新时间
archive.ts
add codegenie cli
29 天前
bom.ts
add codegenie cli
29 天前
data-url.ts
fix(app): support text attachments (
#17335
)
2 个月前
defer.ts
fix: remove 7 unnecessary
as any
casts in opencode core (
#22840
)
1 个月前
effect-http-client.ts
core: make account login upgrades safe while adding multi-account workspace auth (
#15487
) Co-authored-by: Kit Langton <kit.langton@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2 个月前
error.ts
sync: OpenCode v1.14.33 -> v1.14.34 Upstream commits: - release: v1.14.34 - fix: ensure effect server middleware properly parses errors (
#25717
) - test(agent): skip InstanceBootstrap in plugin-agent regression test (
#25737
) - fix(server): provide fresh ConfigProvider per HttpApi listener (
#25726
) - fix(worktree): fork workspace worktree boot (
#25723
) - chore(docs): rename firmware provider to frogbot (
#25453
) - fix: ensure anthropic sdk properly resolves when using azure (
#25721
) - test(server): regression reproducers for
#25698
(
#25714
) - fix(opencode): strip transfer-encoding in UI proxy and allow public manifest assets (
#25698
) - fix(app): prevent terminal recovery loops (
#25710
) - feat(server): pty websocket auth tickets (
#25660
) - fix: allow Codex Spark with Codex OAuth (
#25640
) - Effectify plugin agent regression test (
#25646
) - fix(app): preserve auth token credentials (
#25636
) - refactor(cli): effectify provider commands (
#25633
) - fix(server): serve embedded UI from bunfs (
#25632
) - Add v2 session failure events (
#25628
) - fix(server): support desktop PTY websockets with HttpApi (
#25598
) - fix(auth): add username option for basic auth in RunCommand (
#25600
) - refactor(cli/providers): flatten — Effect-native handlers end-to-end (
#25537
) - refactor(cli/github+run): Stage 4 — drop AppRuntime.runPromise bridges (
#25539
) - refactor(config+core): drop ConfigPaths.readFile, add AppFileSystem.readFileStringSafe, flatten TuiConfig.loadState (
#25602
) - fix(auth): respect server username in clients (
#25596
) - feat: group changelog bugfixes (
#25597
) - fix(httpapi): add basic auth challenge for browser login - fix(sdk+cli): surface real errors instead of bare {} when server returns empty body (
#25592
) - fix(acp): pass server auth to internal client (
#25591
) - feat(server): native HttpApi listener with Bun.serve + WS upgrade (
#25547
) - feat(server): Server.openapi() backed by HttpApi spec, parity-checked against Hono output (
#25545
) - refactor(server): extract Hono-coupled utilities to backend-neutral modules (
#25542
) - fix(vcs): avoid unbounded diff memory usage (
#25581
) - Add debug info command (
#25550
) - fix(cli): bridge Instance.current ALS in effectCmd handlers (regression from
#25522
) (
#25546
) - refactor(cli/providers): Stage 4 — drop inline AppRuntime.runPromise calls (
#25532
) - refactor(cli/mcp+agent): Stage 4 — drop AppRuntime.runPromise bridges (
#25530
) - fix: regression w/ auth login where stderr was ignored instead of inherited (
#25529
) - feat: refactor bash tool with shell-aware prompts for bash, pwsh+powershell, and cmd (
#20039
) - refactor(lifecycle): bootstrap as pure orchestration (
#25510
) - Refactor v2 session events as schemas (
#24512
) - feat(cli): auto-dispose InstanceContext after effectCmd handlers (
#25481
) - fix(instance): run bootstrap from instance store (
#25475
) - Normalize instance lifecycle wiring (
#25501
) - feat(cli): add instance: false opt-out to effectCmd (
#25507
) - feat: default HTTP API backend to on for dev/beta channels - feat(cli): allow effectCmd instance to be a function of args (
#25517
) - refactor(cli): convert all commands to effectCmd (
#25465
-
#25525
) - refactor(cli/stats): Stage 4 — fully Effect-native body (
#25523
) - chore: bump Effect beta (
#25524
) - refactor(acp): drop async from synchronous ACP.init (
#25520
) - refactor(cli): drop redundant explicit Effect.ensuring(store.dispose) (
#25503
) - fix(session): encode v2 session responses (
#25528
) - fix(httpapi): pagination Link header echoes request host (
#25527
) - ci: only build electron desktop (
#19067
) - test(httpapi): add route exerciser Conflicts resolved: 62 files - package.json (17 files): version bump to 1.14.34, name preserved as codegenie - packages/web/package.json: workspace dep opencode→codegenie - bun.lock: accepted upstream - packages/core/src/flag/flag.ts: accepted upstream HTTPAPI channel defaults + new flags, preserved CODEGENIE_ branding - packages/opencode/src/config/config.ts: preserved Instance/InstanceStore imports - packages/opencode/src/project/instance.ts: preserved containsPath + AppFileSystem import - packages/opencode/src/plugin/index.ts: adopted ServerAuth.headers(), preserved CodegenieAuthPlugin/HarmonyNapiDynamicToolsPlugin - CLI commands (12 files): accepted upstream effectCmd migration, brand identifiers CODEGENIE_ preserved - Server files (6 files): accepted upstream HttpApi refactor, CODEGENIE_ brand preserved - Test files (10 files): accepted upstream, OPENCODE_→CODEGENIE_ brand fix - Auto-merged files: batch-fixed OPENCODE_→CODEGENIE_ residuals in test fixtures and scripts - shell.ts: fixed containsPath import to use Instance.containsPath - fixture/db.ts: fixed disposeAllInstances import path to instance-runtime - extension.toml: version URL updated to v1.14.34 Brand identifiers preserved throughout, HarmonyOS tools and plugins retained Signed-off-by: zhangyuchen <zhangyuchen45@huawei.com>
21 天前
filesystem.ts
fix: validate resolved cwd before switching Prevent path traversal and symlink-based cwd changes from bypassing the confirmation prompt by validating the resolved target path consistently. Signed-off-by: zkl2281343710 <2281343710@qq.com>
12 天前
format.ts
Prettify retry duration display in TUI (
#8608
) Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
4 个月前
iife.ts
OpenTUI is here (
#2685
)
6 个月前
lazy.ts
sync: OpenCode v1.14.33 -> v1.14.34 Upstream commits: - release: v1.14.34 - fix: ensure effect server middleware properly parses errors (
#25717
) - test(agent): skip InstanceBootstrap in plugin-agent regression test (
#25737
) - fix(server): provide fresh ConfigProvider per HttpApi listener (
#25726
) - fix(worktree): fork workspace worktree boot (
#25723
) - chore(docs): rename firmware provider to frogbot (
#25453
) - fix: ensure anthropic sdk properly resolves when using azure (
#25721
) - test(server): regression reproducers for
#25698
(
#25714
) - fix(opencode): strip transfer-encoding in UI proxy and allow public manifest assets (
#25698
) - fix(app): prevent terminal recovery loops (
#25710
) - feat(server): pty websocket auth tickets (
#25660
) - fix: allow Codex Spark with Codex OAuth (
#25640
) - Effectify plugin agent regression test (
#25646
) - fix(app): preserve auth token credentials (
#25636
) - refactor(cli): effectify provider commands (
#25633
) - fix(server): serve embedded UI from bunfs (
#25632
) - Add v2 session failure events (
#25628
) - fix(server): support desktop PTY websockets with HttpApi (
#25598
) - fix(auth): add username option for basic auth in RunCommand (
#25600
) - refactor(cli/providers): flatten — Effect-native handlers end-to-end (
#25537
) - refactor(cli/github+run): Stage 4 — drop AppRuntime.runPromise bridges (
#25539
) - refactor(config+core): drop ConfigPaths.readFile, add AppFileSystem.readFileStringSafe, flatten TuiConfig.loadState (
#25602
) - fix(auth): respect server username in clients (
#25596
) - feat: group changelog bugfixes (
#25597
) - fix(httpapi): add basic auth challenge for browser login - fix(sdk+cli): surface real errors instead of bare {} when server returns empty body (
#25592
) - fix(acp): pass server auth to internal client (
#25591
) - feat(server): native HttpApi listener with Bun.serve + WS upgrade (
#25547
) - feat(server): Server.openapi() backed by HttpApi spec, parity-checked against Hono output (
#25545
) - refactor(server): extract Hono-coupled utilities to backend-neutral modules (
#25542
) - fix(vcs): avoid unbounded diff memory usage (
#25581
) - Add debug info command (
#25550
) - fix(cli): bridge Instance.current ALS in effectCmd handlers (regression from
#25522
) (
#25546
) - refactor(cli/providers): Stage 4 — drop inline AppRuntime.runPromise calls (
#25532
) - refactor(cli/mcp+agent): Stage 4 — drop AppRuntime.runPromise bridges (
#25530
) - fix: regression w/ auth login where stderr was ignored instead of inherited (
#25529
) - feat: refactor bash tool with shell-aware prompts for bash, pwsh+powershell, and cmd (
#20039
) - refactor(lifecycle): bootstrap as pure orchestration (
#25510
) - Refactor v2 session events as schemas (
#24512
) - feat(cli): auto-dispose InstanceContext after effectCmd handlers (
#25481
) - fix(instance): run bootstrap from instance store (
#25475
) - Normalize instance lifecycle wiring (
#25501
) - feat(cli): add instance: false opt-out to effectCmd (
#25507
) - feat: default HTTP API backend to on for dev/beta channels - feat(cli): allow effectCmd instance to be a function of args (
#25517
) - refactor(cli): convert all commands to effectCmd (
#25465
-
#25525
) - refactor(cli/stats): Stage 4 — fully Effect-native body (
#25523
) - chore: bump Effect beta (
#25524
) - refactor(acp): drop async from synchronous ACP.init (
#25520
) - refactor(cli): drop redundant explicit Effect.ensuring(store.dispose) (
#25503
) - fix(session): encode v2 session responses (
#25528
) - fix(httpapi): pagination Link header echoes request host (
#25527
) - ci: only build electron desktop (
#19067
) - test(httpapi): add route exerciser Conflicts resolved: 62 files - package.json (17 files): version bump to 1.14.34, name preserved as codegenie - packages/web/package.json: workspace dep opencode→codegenie - bun.lock: accepted upstream - packages/core/src/flag/flag.ts: accepted upstream HTTPAPI channel defaults + new flags, preserved CODEGENIE_ branding - packages/opencode/src/config/config.ts: preserved Instance/InstanceStore imports - packages/opencode/src/project/instance.ts: preserved containsPath + AppFileSystem import - packages/opencode/src/plugin/index.ts: adopted ServerAuth.headers(), preserved CodegenieAuthPlugin/HarmonyNapiDynamicToolsPlugin - CLI commands (12 files): accepted upstream effectCmd migration, brand identifiers CODEGENIE_ preserved - Server files (6 files): accepted upstream HttpApi refactor, CODEGENIE_ brand preserved - Test files (10 files): accepted upstream, OPENCODE_→CODEGENIE_ brand fix - Auto-merged files: batch-fixed OPENCODE_→CODEGENIE_ residuals in test fixtures and scripts - shell.ts: fixed containsPath import to use Instance.containsPath - fixture/db.ts: fixed disposeAllInstances import path to instance-runtime - extension.toml: version URL updated to v1.14.34 Brand identifiers preserved throughout, HarmonyOS tools and plugins retained Signed-off-by: zhangyuchen <zhangyuchen45@huawei.com>
21 天前
local-context.ts
add codegenie cli
29 天前
locale.ts
sync: OpenCode v1.14.40 -> v1.14.41 Upstream commits: - feat(core): copy file changes when warping (
#26190
) - feat(desktop): move server to utilityProcess (
#25962
) - feat: Update ACP support, modernize and fix misc issues (
#25663
) - fix(tui): restore custom provider in /connect (
#26168
) - fix: guard undefined contents in diff renderer to fix share viewer SSR crash (
#21763
) - fix(format): restore stdout/stderr ignore for formatter processes (
#26037
) - fix(desktop): add macOS settings menu entry (
#26081
) - docs(desktop): update README from Tauri to Electron (
#26146
) - docs: add opencode-jfrog-plugin to ecosystem list for JFrog integration (
#26019
) - chore: monitoring/alerting improvements - chore: update nix hashes and generated files Conflicts resolved: 21 files - packages/*/package.json (13): accept upstream version - packages/opencode/package.json: accept version, retain name=codegenie - packages/web/package.json: accept version - packages/extensions/zed/extension.toml: accept upstream version and URLs - bun.lock: accept upstream, regenerate via bun install - packages/desktop/src/main/server.ts: accept upstream utilityProcess/sidecar refactor, preserve CODEGENIE_* flags in preferAppEnv, drop old prepareServerEnv - packages/opencode/test/server/httpapi-session.test.ts: accept upstream workspaceLayer, preserve CODEGENIE_* flags - packages/opencode/test/server/httpapi-workspace.test.ts: accept upstream workspaceLayer, preserve CODEGENIE_* flags Brand identifiers preserved throughout, HarmonyOS tools and plugins retained Signed-off-by: zhangyuchen <zhangyuchen45@huawei.com>
21 天前
media.ts
chore: generate
1 个月前
process.ts
add codegenie cli
29 天前
queue.ts
fix: ensure projects that go from having no commits to having commits have sessions migrated (
#5105
) Co-authored-by: GitHub Action <action@github.com>
5 个月前
record.ts
tui plugins (
#19347
)
2 个月前
repository.ts
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 天前
rpc.ts
add codegenie cli
29 天前
signal.ts
OpenTUI is here (
#2685
)
6 个月前
timeout.ts
sync: OpenCode v1.14.33 -> v1.14.34 Upstream commits: - release: v1.14.34 - fix: ensure effect server middleware properly parses errors (
#25717
) - test(agent): skip InstanceBootstrap in plugin-agent regression test (
#25737
) - fix(server): provide fresh ConfigProvider per HttpApi listener (
#25726
) - fix(worktree): fork workspace worktree boot (
#25723
) - chore(docs): rename firmware provider to frogbot (
#25453
) - fix: ensure anthropic sdk properly resolves when using azure (
#25721
) - test(server): regression reproducers for
#25698
(
#25714
) - fix(opencode): strip transfer-encoding in UI proxy and allow public manifest assets (
#25698
) - fix(app): prevent terminal recovery loops (
#25710
) - feat(server): pty websocket auth tickets (
#25660
) - fix: allow Codex Spark with Codex OAuth (
#25640
) - Effectify plugin agent regression test (
#25646
) - fix(app): preserve auth token credentials (
#25636
) - refactor(cli): effectify provider commands (
#25633
) - fix(server): serve embedded UI from bunfs (
#25632
) - Add v2 session failure events (
#25628
) - fix(server): support desktop PTY websockets with HttpApi (
#25598
) - fix(auth): add username option for basic auth in RunCommand (
#25600
) - refactor(cli/providers): flatten — Effect-native handlers end-to-end (
#25537
) - refactor(cli/github+run): Stage 4 — drop AppRuntime.runPromise bridges (
#25539
) - refactor(config+core): drop ConfigPaths.readFile, add AppFileSystem.readFileStringSafe, flatten TuiConfig.loadState (
#25602
) - fix(auth): respect server username in clients (
#25596
) - feat: group changelog bugfixes (
#25597
) - fix(httpapi): add basic auth challenge for browser login - fix(sdk+cli): surface real errors instead of bare {} when server returns empty body (
#25592
) - fix(acp): pass server auth to internal client (
#25591
) - feat(server): native HttpApi listener with Bun.serve + WS upgrade (
#25547
) - feat(server): Server.openapi() backed by HttpApi spec, parity-checked against Hono output (
#25545
) - refactor(server): extract Hono-coupled utilities to backend-neutral modules (
#25542
) - fix(vcs): avoid unbounded diff memory usage (
#25581
) - Add debug info command (
#25550
) - fix(cli): bridge Instance.current ALS in effectCmd handlers (regression from
#25522
) (
#25546
) - refactor(cli/providers): Stage 4 — drop inline AppRuntime.runPromise calls (
#25532
) - refactor(cli/mcp+agent): Stage 4 — drop AppRuntime.runPromise bridges (
#25530
) - fix: regression w/ auth login where stderr was ignored instead of inherited (
#25529
) - feat: refactor bash tool with shell-aware prompts for bash, pwsh+powershell, and cmd (
#20039
) - refactor(lifecycle): bootstrap as pure orchestration (
#25510
) - Refactor v2 session events as schemas (
#24512
) - feat(cli): auto-dispose InstanceContext after effectCmd handlers (
#25481
) - fix(instance): run bootstrap from instance store (
#25475
) - Normalize instance lifecycle wiring (
#25501
) - feat(cli): add instance: false opt-out to effectCmd (
#25507
) - feat: default HTTP API backend to on for dev/beta channels - feat(cli): allow effectCmd instance to be a function of args (
#25517
) - refactor(cli): convert all commands to effectCmd (
#25465
-
#25525
) - refactor(cli/stats): Stage 4 — fully Effect-native body (
#25523
) - chore: bump Effect beta (
#25524
) - refactor(acp): drop async from synchronous ACP.init (
#25520
) - refactor(cli): drop redundant explicit Effect.ensuring(store.dispose) (
#25503
) - fix(session): encode v2 session responses (
#25528
) - fix(httpapi): pagination Link header echoes request host (
#25527
) - ci: only build electron desktop (
#19067
) - test(httpapi): add route exerciser Conflicts resolved: 62 files - package.json (17 files): version bump to 1.14.34, name preserved as codegenie - packages/web/package.json: workspace dep opencode→codegenie - bun.lock: accepted upstream - packages/core/src/flag/flag.ts: accepted upstream HTTPAPI channel defaults + new flags, preserved CODEGENIE_ branding - packages/opencode/src/config/config.ts: preserved Instance/InstanceStore imports - packages/opencode/src/project/instance.ts: preserved containsPath + AppFileSystem import - packages/opencode/src/plugin/index.ts: adopted ServerAuth.headers(), preserved CodegenieAuthPlugin/HarmonyNapiDynamicToolsPlugin - CLI commands (12 files): accepted upstream effectCmd migration, brand identifiers CODEGENIE_ preserved - Server files (6 files): accepted upstream HttpApi refactor, CODEGENIE_ brand preserved - Test files (10 files): accepted upstream, OPENCODE_→CODEGENIE_ brand fix - Auto-merged files: batch-fixed OPENCODE_→CODEGENIE_ residuals in test fixtures and scripts - shell.ts: fixed containsPath import to use Instance.containsPath - fixture/db.ts: fixed disposeAllInstances import path to instance-runtime - extension.toml: version URL updated to v1.14.34 Brand identifiers preserved throughout, HarmonyOS tools and plugins retained Signed-off-by: zhangyuchen <zhangyuchen45@huawei.com>
21 天前
token.ts
add codegenie cli
29 天前
which.ts
add codegenie cli
29 天前
wildcard.ts
add codegenie cli
29 天前