opencode/packages
Developer ff6f032faa refactor(mcp): use Effect-native catch + tryPromise instead of try/catch
Per CLAUDE.md style guide ("Avoid try/catch where possible") and the
opencode Effect rules ("Use Effect.tryPromise for promise-based APIs",
"Use Effect.fnUntraced for internal helpers"), replace the plain
async function + try/catch in listTools with an Effect-native
listToolsTolerant that composes via Effect.tryPromise + Effect.catch.

Also drops the no-op `Effect.map((tools) => tools)` identity in defs(),
and extracts a tiny `wrapAsError` helper to remove the duplicated
"err instanceof Error ? ... : new Error(String(err))" expression.

No behavior change. 20/20 tests still green.
2026-05-09 19:15:36 -04:00
..
app fix(session): accept legacy summary diffs (#26579) 2026-05-09 16:44:24 -04:00
console sync release versions for v1.14.44 2026-05-09 19:33:26 +00:00
containers chore: bump Bun to 1.3.13 (#23791) 2026-04-23 00:25:36 -04:00
core Move schema utilities into core (#26565) 2026-05-09 19:51:09 +00:00
desktop sync release versions for v1.14.44 2026-05-09 19:33:26 +00:00
docs fix(web): favicon rename again 2026-01-21 14:36:21 -06:00
enterprise sync release versions for v1.14.44 2026-05-09 19:33:26 +00:00
extensions/zed sync release versions for v1.14.44 2026-05-09 19:33:26 +00:00
function sync release versions for v1.14.44 2026-05-09 19:33:26 +00:00
http-recorder sync release versions for v1.14.44 2026-05-09 19:33:26 +00:00
identity
llm sync release versions for v1.14.44 2026-05-09 19:33:26 +00:00
opencode refactor(mcp): use Effect-native catch + tryPromise instead of try/catch 2026-05-09 19:15:36 -04:00
plugin Plugin command API shim (#26564) 2026-05-09 21:56:49 +02:00
script refactor: replace bun semver with npm semver package 2026-03-09 15:29:55 -04:00
sdk fix(sdk): wrap thrown error bodies in Error 2026-05-09 18:46:43 -04:00
slack sync release versions for v1.14.44 2026-05-09 19:33:26 +00:00
storybook feat(prompt): add shell mode UI with cancel button, custom icon, and example placeholder (#24105) 2026-04-24 14:04:55 +08:00
ui fix(session): accept legacy summary diffs (#26579) 2026-05-09 16:44:24 -04:00
web sync release versions for v1.14.44 2026-05-09 19:33:26 +00:00