Dashboard › opencode › Distillation
8bff28b7-5ba0-45cd-ba84-2e506aaacaa1["lore_tm_v1_EkXw_4zhCmhXR7VX7iwcRKAkQeO1N5ym45HeY7zjiWM"]
Date: Sep 8, 2026
bun typecheck from package directories such as packages/core, never invoking tsc directly.sdk composes Client, Core, and Server.import { foo as bar } from "..." and renamed imports such as resolve as pathResolve.import("...") references such as Schema.declare<import("@opencode/plugin/effect/plugin").Plugin["effect"]>. If two imports genuinely collide and no alternative exists, an aliased type import such as import type { Plugin as PluginDefinition } from "..." is permitted only as a last resort and remains strongly discouraged.import * as Foo from "..." and import type * as Foo from "...".import { Project } from "@opencode/core/project" followed by Project.ID.await import("./module").then((mod) => mod.value()) or (await import("./module")).value() should be avoided.PermissionAssertInput in /home/byk/Code/opencode-v2-pilot/packages/plugin/src/promise/permission.ts contains required fields sessionID: Session.ID, action: string, and resources: ReadonlyArray<string>, plus optional save?: ReadonlyArray<string>, metadata?: Record<string, unknown>, source?: Permission.Source, and agent?: Agent.ID.PermissionDomain in /home/byk/Code/opencode-v2-pilot/packages/plugin/src/promise/permission.ts is Pick<PermissionApi, "list" | "get" | "reply"> plus assert(input: PermissionAssertInput): Promise<void> and hook: Hooks<PermissionHooks>.HttpApi, bun run generate must be run from packages/client; generated client files must not be edited directly..changeset files must not be added.v2; new branches and worktrees should default to v2, or origin/v2 when the local v2 ref is unavailable, and pull requests should target v2 unless explicitly instructed otherwise. Diffs should use v2 or origin/v2 because a local main ref may not exist.